@selfeesas/shared-components 1.20.1 → 1.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),Mi={xs:18,sm:24,md:32,lg:38,xl:46},Ur={size:String};function Wr(i,M=Mi){return h.computed(()=>i.size!==void 0?{fontSize:i.size in M?`${M[i.size]}px`:i.size}:null)}function qt(i,M,t,b){return Object.defineProperty(i,M,{get:t,set:b,enumerable:!0}),i}function qs(i,M){for(const t in M)qt(i,t,M[t]);return i}function Ze(i){return h.markRaw(h.defineComponent(i))}function zi(i){return h.markRaw(i)}const zs=(i,M)=>{const t=h.reactive(i);for(const b in i)qt(M,b,()=>t[b],m=>{t[b]=m});return M};function dt(i,M){return i!==void 0&&i()||M}function Ui(i,M){if(i!==void 0){const t=i();if(t!=null)return t.slice()}return M}function Dt(i,M){return i!==void 0?M.concat(i()):M}function wo(i,M){return i===void 0?M:M!==void 0?M.concat(i()):i()}function Ti(i,M,t,b,m,c){M.key=b+m;const a=h.h(i,M,t);return m===!0?h.withDirectives(a,c()):a}const ba="0 0 24 24",li=i=>i,ui=i=>`ionicons ${i}`,xo={"mdi-":i=>`mdi ${i}`,"icon-":li,"bt-":i=>`bt ${i}`,"eva-":i=>`eva ${i}`,"ion-md":ui,"ion-ios":ui,"ion-logo":ui,"iconfont ":li,"ti-":i=>`themify-icon ${i}`,"bi-":i=>`bootstrap-icons ${i}`,"i-":li},So={o_:"-outlined",r_:"-round",s_:"-sharp"},ko={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Us=new RegExp("^("+Object.keys(xo).join("|")+")"),Ws=new RegExp("^("+Object.keys(So).join("|")+")"),ya=new RegExp("^("+Object.keys(ko).join("|")+")"),Hs=/^[Mm]\s?[-+]?\.?\d/,Ys=/^img:/,Qs=/^svguse:/,Ks=/^ion-/,Xs=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,ct=Ze({name:"QIcon",props:{...Ur,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(i,{slots:M}){const{proxy:{$q:t}}=h.getCurrentInstance(),b=Wr(i),m=h.computed(()=>"q-icon"+(i.left===!0?" on-left":"")+(i.right===!0?" on-right":"")+(i.color!==void 0?` text-${i.color}`:"")),c=h.computed(()=>{let a,o=i.name;if(o==="none"||!o)return{none:!0};if(t.iconMapFn!==null){const r=t.iconMapFn(o);if(r!==void 0)if(r.icon!==void 0){if(o=r.icon,o==="none"||!o)return{none:!0}}else return{cls:r.cls,content:r.content!==void 0?r.content:" "}}if(Hs.test(o)===!0){const[r,u=ba]=o.split("|");return{svg:!0,viewBox:u,nodes:r.split("&&").map(s=>{const[l,f,p]=s.split("@@");return h.h("path",{style:f,d:l,transform:p})})}}if(Ys.test(o)===!0)return{img:!0,src:o.substring(4)};if(Qs.test(o)===!0){const[r,u=ba]=o.split("|");return{svguse:!0,src:r.substring(7),viewBox:u}}let n=" ";const e=o.match(Us);if(e!==null)a=xo[e[1]](o);else if(Xs.test(o)===!0)a=o;else if(Ks.test(o)===!0)a=`ionicons ion-${t.platform.is.ios===!0?"ios":"md"}${o.substring(3)}`;else if(ya.test(o)===!0){a="notranslate material-symbols";const r=o.match(ya);r!==null&&(o=o.substring(6),a+=ko[r[1]]),n=o}else{a="notranslate material-icons";const r=o.match(Ws);r!==null&&(o=o.substring(2),a+=So[r[1]]),n=o}return{cls:a,content:n}});return()=>{const a={class:m.value,style:b.value,"aria-hidden":"true"};return c.value.none===!0?h.h(i.tag,a,dt(M.default)):c.value.img===!0?h.h(i.tag,a,Dt(M.default,[h.h("img",{src:c.value.src})])):c.value.svg===!0?h.h(i.tag,a,Dt(M.default,[h.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?h.h(i.tag,a,Dt(M.default,[h.h("svg",{viewBox:c.value.viewBox},[h.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(a.class+=" "+c.value.cls),h.h(i.tag,a,Dt(M.default,[c.value.content])))}}});function Bn(i){if(Object(i.$parent)===i.$parent)return i.$parent;let{parent:M}=i.$;for(;Object(M)===M;){if(Object(M.proxy)===M.proxy)return M.proxy;M=M.parent}}function _o(i,M){typeof M.type=="symbol"?Array.isArray(M.children)===!0&&M.children.forEach(t=>{_o(i,t)}):i.add(M)}function Gs(i){const M=new Set;return i.forEach(t=>{_o(M,t)}),Array.from(M)}function Wi(i){return i.appContext.config.globalProperties.$router!==void 0}function Jn(i){return i.isUnmounted===!0||i.isDeactivated===!0}function wa(i){return i?i.aliasOf?i.aliasOf.path:i.path:""}function xa(i,M){return(i.aliasOf||i)===(M.aliasOf||M)}function Js(i,M){for(const t in M){const b=M[t],m=i[t];if(typeof b=="string"){if(b!==m)return!1}else if(Array.isArray(m)===!1||m.length!==b.length||b.some((c,a)=>c!==m[a]))return!1}return!0}function Sa(i,M){return Array.isArray(M)===!0?i.length===M.length&&i.every((t,b)=>t===M[b]):i.length===1&&i[0]===M}function Zs(i,M){return Array.isArray(i)===!0?Sa(i,M):Array.isArray(M)===!0?Sa(M,i):i===M}function $s(i,M){if(Object.keys(i).length!==Object.keys(M).length)return!1;for(const t in i)if(Zs(i[t],M[t])===!1)return!1;return!0}const Co={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Zn={...Co,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Hi({fallbackTag:i,useDisableForRouterLinkProps:M=!0}={}){const t=h.getCurrentInstance(),{props:b,proxy:m,emit:c}=t,a=Wi(t),o=h.computed(()=>b.disable!==!0&&b.href!==void 0),n=M===!0?h.computed(()=>a===!0&&b.disable!==!0&&o.value!==!0&&b.to!==void 0&&b.to!==null&&b.to!==""):h.computed(()=>a===!0&&o.value!==!0&&b.to!==void 0&&b.to!==null&&b.to!==""),e=h.computed(()=>n.value===!0?g(b.to):null),r=h.computed(()=>e.value!==null),u=h.computed(()=>o.value===!0||r.value===!0),s=h.computed(()=>b.type==="a"||u.value===!0?"a":b.tag||i||"div"),l=h.computed(()=>o.value===!0?{href:b.href,target:b.target}:r.value===!0?{href:e.value.href,target:b.target}:{}),f=h.computed(()=>{if(r.value===!1)return-1;const{matched:B}=e.value,{length:N}=B,q=B[N-1];if(q===void 0)return-1;const j=m.$route.matched;if(j.length===0)return-1;const P=j.findIndex(xa.bind(null,q));if(P!==-1)return P;const V=wa(B[N-2]);return N>1&&wa(q)===V&&j[j.length-1].path!==V?j.findIndex(xa.bind(null,B[N-2])):P}),p=h.computed(()=>r.value===!0&&f.value!==-1&&Js(m.$route.params,e.value.params)),d=h.computed(()=>p.value===!0&&f.value===m.$route.matched.length-1&&$s(m.$route.params,e.value.params)),v=h.computed(()=>r.value===!0?d.value===!0?` ${b.exactActiveClass} ${b.activeClass}`:b.exact===!0?"":p.value===!0?` ${b.activeClass}`:"":"");function g(B){try{return m.$router.resolve(B)}catch{}return null}function k(B,{returnRouterError:N,to:q=b.to,replace:j=b.replace}={}){if(b.disable===!0)return B.preventDefault(),Promise.resolve(!1);if(B.metaKey||B.altKey||B.ctrlKey||B.shiftKey||B.button!==void 0&&B.button!==0||b.target==="_blank")return Promise.resolve(!1);B.preventDefault();const P=m.$router[j===!0?"replace":"push"](q);return N===!0?P:P.then(()=>{}).catch(()=>{})}function C(B){if(r.value===!0){const N=q=>k(B,q);c("click",B,N),B.defaultPrevented!==!0&&N()}else c("click",B)}return{hasRouterLink:r,hasHrefLink:o,hasLink:u,linkTag:s,resolvedLink:e,linkIsActive:p,linkIsExactActive:d,linkClass:v,linkAttrs:l,getLink:g,navigateToRouterLink:k,navigateOnClick:C}}const el=Ze({name:"QBreadcrumbsEl",props:{...Zn,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(i,{slots:M}){const{linkTag:t,linkAttrs:b,linkClass:m,navigateOnClick:c}=Hi(),a=h.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(i.disable!==!0?"q-link--focusable"+m.value:"q-breadcrumbs__el--disable"),...b.value,onClick:c})),o=h.computed(()=>"q-breadcrumbs__el-icon"+(i.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const n=[];return i.icon!==void 0&&n.push(h.h(ct,{class:o.value,name:i.icon})),i.label!==void 0&&n.push(i.label),h.h(t.value,{...a.value},Dt(M.default,n))}}}),Ao={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},tl=Object.keys(Ao),Yi={align:{type:String,validator:i=>tl.includes(i)}};function Qi(i){return h.computed(()=>{const M=i.align===void 0?i.vertical===!0?"stretch":"left":i.align;return`${i.vertical===!0?"items":"justify"}-${Ao[M]}`})}const rl=["",!0],nl=Ze({name:"QBreadcrumbs",props:{...Yi,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:i=>["none","xs","sm","md","lg","xl"].includes(i),default:"sm"}},setup(i,{slots:M}){const t=Qi(i),b=h.computed(()=>`flex items-center ${t.value}${i.gutter==="none"?"":` q-gutter-${i.gutter}`}`),m=h.computed(()=>i.separatorColor?` text-${i.separatorColor}`:""),c=h.computed(()=>` text-${i.activeColor}`);return()=>{if(M.default===void 0)return;const a=Gs(dt(M.default));if(a.length===0)return;let o=1;const n=[],e=a.filter(u=>u.type?.name==="QBreadcrumbsEl").length,r=M.separator!==void 0?M.separator:()=>i.separator;return a.forEach(u=>{if(u.type?.name==="QBreadcrumbsEl"){const s=o<e,l=u.props!==null&&rl.includes(u.props.disable),f=(s===!0?"":" q-breadcrumbs--last")+(l!==!0&&s===!0?c.value:"");o++,n.push(h.h("div",{class:`flex items-center${f}`},[u])),s===!0&&n.push(h.h("div",{class:"q-breadcrumbs__separator"+m.value},r()))}else n.push(u)}),h.h("div",{class:"q-breadcrumbs"},[h.h("div",{class:b.value},n)])}}}),il=h.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(i){const M=i,t=h.useAttrs(),b=h.computed(()=>{const{activeColor:s,separatorIcon:l,separatorSize:f,separatorColor:p,...d}=t;return d}),m=s=>({"data-cy":s.dataCy,class:"cursor-pointer text-h5",color:s.color}),c=h.computed(()=>M.activeColor||"primary"),a=h.computed(()=>M.separatorIcon||"chevron_right"),o=h.computed(()=>M.separatorSize||"2em"),n=h.computed(()=>M.separatorColor||"primary"),e=h.computed(()=>({store:M.store,route:M.route,navStore:M.navStore||{}})),r=h.computed(()=>{const s=[];return M.breadcrumbConfig.forEach(l=>{if(!l.shouldRender(e.value))return;const f=l.getLabel?l.getLabel(e.value):l.defaultLabel,p=l.getColor?l.getColor(e.value):"dark",d={name:l.routeName,...l.getRouteParams&&{params:l.getRouteParams(e.value)}},v=l.clearActions?l.clearActions.map(g=>()=>g(e.value)):[];s.push({label:f,dataCy:l.dataCy,color:p,route:d,clearActions:v})}),s}),u=s=>{s.clearActions&&s.clearActions.forEach(l=>l()),M.router.push(s.route)};return(s,l)=>(h.openBlock(),h.createBlock(nl,h.mergeProps({"active-color":c.value,class:"text-brown"},b.value),{separator:h.withCtx(()=>[h.createVNode(ct,{size:o.value,name:a.value,color:n.value},null,8,["size","name","color"])]),default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(r.value,(f,p)=>(h.openBlock(),h.createBlock(el,h.mergeProps({key:p,to:f.route},{ref_for:!0},m(f),{label:f.label,onClick:d=>u(f)}),null,16,["to","label","onClick"]))),128))]),_:1},16,["active-color"]))}}),al={size:{type:[String,Number],default:"1em"},color:String};function ol(i){return{cSize:h.computed(()=>i.size in Mi?`${Mi[i.size]}px`:i.size),classes:h.computed(()=>"q-spinner"+(i.color?` text-${i.color}`:""))}}const Eo=Ze({name:"QSpinner",props:{...al,thickness:{type:Number,default:5}},setup(i){const{cSize:M,classes:t}=ol(i);return()=>h.h("svg",{class:t.value+" q-spinner-mat",width:M.value,height:M.value,viewBox:"25 25 50 50"},[h.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":i.thickness,"stroke-miterlimit":"10"})])}});function Bi(i,M){const t=i.style;for(const b in M)t[b]=M[b]}function sl(i){if(i==null)return;if(typeof i=="string")try{return document.querySelector(i)||void 0}catch{return}const M=h.unref(i);if(M)return M.$el||M}function Mo(i,M){if(i==null||i.contains(M)===!0)return!0;for(let t=i.nextElementSibling;t!==null;t=t.nextElementSibling)if(t.contains(M))return!0;return!1}const _t={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const i=Object.defineProperty({},"passive",{get(){Object.assign(_t,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,i),window.removeEventListener("qtest",null,i)}catch{}function $n(){}function ll(i){return i.button===0}function Pr(i){return i.touches&&i.touches[0]?i=i.touches[0]:i.changedTouches&&i.changedTouches[0]?i=i.changedTouches[0]:i.targetTouches&&i.targetTouches[0]&&(i=i.targetTouches[0]),{top:i.clientY,left:i.clientX}}function ul(i){if(i.path)return i.path;if(i.composedPath)return i.composedPath();const M=[];let t=i.target;for(;t;){if(M.push(t),t.tagName==="HTML")return M.push(document),M.push(window),M;t=t.parentElement}}function Pt(i){i.stopPropagation()}function Ot(i){i.cancelable!==!1&&i.preventDefault()}function xt(i){i.cancelable!==!1&&i.preventDefault(),i.stopPropagation()}function ci(i,M){if(i===void 0||M===!0&&i.__dragPrevented===!0)return;const t=M===!0?b=>{b.__dragPrevented=!0,b.addEventListener("dragstart",Ot,_t.notPassiveCapture)}:b=>{delete b.__dragPrevented,b.removeEventListener("dragstart",Ot,_t.notPassiveCapture)};i.querySelectorAll("a, img").forEach(t)}function er(i,M,t){const b=`__q_${M}_evt`;i[b]=i[b]!==void 0?i[b].concat(t):t,t.forEach(m=>{m[0].addEventListener(m[1],i[m[2]],_t[m[3]])})}function yr(i,M){const t=`__q_${M}_evt`;i[t]!==void 0&&(i[t].forEach(b=>{b[0].removeEventListener(b[1],i[b[2]],_t[b[3]])}),i[t]=void 0)}function Ki(i){return i!==Object(i)||i.isComposing===!0||i.qKeyEvent===!0}function cr(i,M){return Ki(i)===!0?!1:[].concat(M).includes(i.keyCode)}function cl(i,M=250){let t=!1,b;return function(){return t===!1&&(t=!0,setTimeout(()=>{t=!1},M),b=i.apply(this,arguments)),b}}function ka(i,M,t,b){t.modifiers.stop===!0&&Pt(i);const m=t.modifiers.color;let c=t.modifiers.center;c=c===!0||b===!0;const a=document.createElement("span"),o=document.createElement("span"),n=Pr(i),{left:e,top:r,width:u,height:s}=M.getBoundingClientRect(),l=Math.sqrt(u*u+s*s),f=l/2,p=`${(u-l)/2}px`,d=c?p:`${n.left-e-f}px`,v=`${(s-l)/2}px`,g=c?v:`${n.top-r-f}px`;o.className="q-ripple__inner",Bi(o,{height:`${l}px`,width:`${l}px`,transform:`translate3d(${d},${g},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${m?" text-"+m:""}`,a.setAttribute("dir","ltr"),a.appendChild(o),M.appendChild(a);const k=()=>{a.remove(),clearTimeout(C)};t.abort.push(k);let C=setTimeout(()=>{o.classList.add("q-ripple__inner--enter"),o.style.transform=`translate3d(${p},${v},0) scale3d(1,1,1)`,o.style.opacity=.2,C=setTimeout(()=>{o.classList.remove("q-ripple__inner--enter"),o.classList.add("q-ripple__inner--leave"),o.style.opacity=0,C=setTimeout(()=>{a.remove(),t.abort.splice(t.abort.indexOf(k),1)},275)},250)},50)}function _a(i,{modifiers:M,value:t,arg:b}){const m=Object.assign({},i.cfg.ripple,M,t);i.modifiers={early:m.early===!0,stop:m.stop===!0,center:m.center===!0,color:m.color||b,keyCodes:[].concat(m.keyCodes||13)}}const To=zi({name:"ripple",beforeMount(i,M){const t=M.instance.$.appContext.config.globalProperties.$q.config||{};if(t.ripple===!1)return;const b={cfg:t,enabled:M.value!==!1,modifiers:{},abort:[],start(m){b.enabled===!0&&m.qSkipRipple!==!0&&m.type===(b.modifiers.early===!0?"pointerdown":"click")&&ka(m,i,b,m.qKeyEvent===!0)},keystart:cl(m=>{b.enabled===!0&&m.qSkipRipple!==!0&&cr(m,b.modifiers.keyCodes)===!0&&m.type===`key${b.modifiers.early===!0?"down":"up"}`&&ka(m,i,b,!0)},300)};_a(b,M),i.__qripple=b,er(b,"main",[[i,"pointerdown","start","passive"],[i,"click","start","passive"],[i,"keydown","keystart","passive"],[i,"keyup","keystart","passive"]])},updated(i,M){if(M.oldValue!==M.value){const t=i.__qripple;t!==void 0&&(t.enabled=M.value!==!1,t.enabled===!0&&Object(M.value)===M.value&&_a(t,M))}},beforeUnmount(i){const M=i.__qripple;M!==void 0&&(M.abort.forEach(t=>{t()}),yr(M,"main"),delete i._qripple)}}),Ca={none:0,xs:4,sm:8,md:16,lg:24,xl:32},dl={xs:8,sm:10,md:14,lg:20,xl:24},fl=["button","submit","reset"],hl=/[^\s]\/[^\s]/,pl=["flat","outline","push","unelevated"];function ml(i,M){return i.flat===!0?"flat":i.outline===!0?"outline":i.push===!0?"push":i.unelevated===!0?"unelevated":M}const gl={...Ur,...Co,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...pl.reduce((i,M)=>(i[M]=Boolean)&&i,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Yi.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},vl={...gl,round:Boolean};function bl(i){const M=Wr(i,dl),t=Qi(i),{hasRouterLink:b,hasLink:m,linkTag:c,linkAttrs:a,navigateOnClick:o}=Hi({fallbackTag:"button"}),n=h.computed(()=>{const d=i.fab===!1&&i.fabMini===!1?M.value:{};return i.padding!==void 0?Object.assign({},d,{padding:i.padding.split(/\s+/).map(v=>v in Ca?Ca[v]+"px":v).join(" "),minWidth:"0",minHeight:"0"}):d}),e=h.computed(()=>i.rounded===!0||i.fab===!0||i.fabMini===!0),r=h.computed(()=>i.disable!==!0&&i.loading!==!0),u=h.computed(()=>r.value===!0?i.tabindex||0:-1),s=h.computed(()=>ml(i,"standard")),l=h.computed(()=>{const d={tabindex:u.value};return m.value===!0?Object.assign(d,a.value):fl.includes(i.type)===!0&&(d.type=i.type),c.value==="a"?(i.disable===!0?d["aria-disabled"]="true":d.href===void 0&&(d.role="button"),b.value!==!0&&hl.test(i.type)===!0&&(d.type=i.type)):i.disable===!0&&(d.disabled="",d["aria-disabled"]="true"),i.loading===!0&&i.percentage!==void 0&&Object.assign(d,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":i.percentage}),d}),f=h.computed(()=>{let d;i.color!==void 0?i.flat===!0||i.outline===!0?d=`text-${i.textColor||i.color}`:d=`bg-${i.color} text-${i.textColor||"white"}`:i.textColor&&(d=`text-${i.textColor}`);const v=i.round===!0?"round":`rectangle${e.value===!0?" q-btn--rounded":i.square===!0?" q-btn--square":""}`;return`q-btn--${s.value} q-btn--${v}`+(d!==void 0?" "+d:"")+(r.value===!0?" q-btn--actionable q-focusable q-hoverable":i.disable===!0?" disabled":"")+(i.fab===!0?" q-btn--fab":i.fabMini===!0?" q-btn--fab-mini":"")+(i.noCaps===!0?" q-btn--no-uppercase":"")+(i.dense===!0?" q-btn--dense":"")+(i.stretch===!0?" no-border-radius self-stretch":"")+(i.glossy===!0?" glossy":"")+(i.square?" q-btn--square":"")}),p=h.computed(()=>t.value+(i.stack===!0?" column":" row")+(i.noWrap===!0?" no-wrap text-no-wrap":"")+(i.loading===!0?" q-btn__content--hidden":""));return{classes:f,style:n,innerClasses:p,attributes:l,hasLink:m,linkTag:c,navigateOnClick:o,isActionable:r}}const{passiveCapture:Vt}=_t;let Er=null,Mr=null,Tr=null;const at=Ze({name:"QBtn",props:{...vl,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(i,{slots:M,emit:t}){const{proxy:b}=h.getCurrentInstance(),{classes:m,style:c,innerClasses:a,attributes:o,hasLink:n,linkTag:e,navigateOnClick:r,isActionable:u}=bl(i),s=h.ref(null),l=h.ref(null);let f=null,p,d=null;const v=h.computed(()=>i.label!==void 0&&i.label!==null&&i.label!==""),g=h.computed(()=>i.disable===!0||i.ripple===!1?!1:{keyCodes:n.value===!0?[13,32]:[13],...i.ripple===!0?{}:i.ripple}),k=h.computed(()=>({center:i.round})),C=h.computed(()=>{const T=Math.max(0,Math.min(100,i.percentage));return T>0?{transition:"transform 0.6s",transform:`translateX(${T-100}%)`}:{}}),B=h.computed(()=>{if(i.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(u.value===!0){const T={onClick:q,onKeydown:j,onMousedown:V};if(b.$q.platform.has.touch===!0){const _=i.onTouchstart!==void 0?"":"Passive";T[`onTouchstart${_}`]=P}return T}return{onClick:xt}}),N=h.computed(()=>({ref:s,class:"q-btn q-btn-item non-selectable no-outline "+m.value,style:c.value,...o.value,...B.value}));function q(T){if(s.value!==null){if(T!==void 0){if(T.defaultPrevented===!0)return;const _=document.activeElement;if(i.type==="submit"&&_!==document.body&&s.value.contains(_)===!1&&_.contains(s.value)===!1){T.qAvoidFocus!==!0&&s.value.focus();const y=()=>{document.removeEventListener("keydown",xt,!0),document.removeEventListener("keyup",y,Vt),s.value?.removeEventListener("blur",y,Vt)};document.addEventListener("keydown",xt,!0),document.addEventListener("keyup",y,Vt),s.value.addEventListener("blur",y,Vt)}}r(T)}}function j(T){s.value!==null&&(t("keydown",T),cr(T,[13,32])===!0&&Mr!==s.value&&(Mr!==null&&L(),T.defaultPrevented!==!0&&(T.qAvoidFocus!==!0&&s.value.focus(),Mr=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("keyup",z,!0),s.value.addEventListener("blur",z,Vt)),xt(T)))}function P(T){s.value!==null&&(t("touchstart",T),T.defaultPrevented!==!0&&(Er!==s.value&&(Er!==null&&L(),Er=s.value,f=T.target,f.addEventListener("touchcancel",z,Vt),f.addEventListener("touchend",z,Vt)),p=!0,d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,p=!1},200)))}function V(T){s.value!==null&&(T.qSkipRipple=p===!0,t("mousedown",T),T.defaultPrevented!==!0&&Tr!==s.value&&(Tr!==null&&L(),Tr=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("mouseup",z,Vt)))}function z(T){if(s.value!==null&&!(T?.type==="blur"&&document.activeElement===s.value)){if(T?.type==="keyup"){if(Mr===s.value&&cr(T,[13,32])===!0){const _=new MouseEvent("click",T);_.qKeyEvent=!0,T.defaultPrevented===!0&&Ot(_),T.cancelBubble===!0&&Pt(_),s.value.dispatchEvent(_),xt(T),T.qKeyEvent=!0}t("keyup",T)}L()}}function L(T){const _=l.value;T!==!0&&(Er===s.value||Tr===s.value)&&_!==null&&_!==document.activeElement&&(_.setAttribute("tabindex",-1),_.focus()),Er===s.value&&(f!==null&&(f.removeEventListener("touchcancel",z,Vt),f.removeEventListener("touchend",z,Vt)),Er=f=null),Tr===s.value&&(document.removeEventListener("mouseup",z,Vt),Tr=null),Mr===s.value&&(document.removeEventListener("keyup",z,!0),s.value?.removeEventListener("blur",z,Vt),Mr=null),s.value?.classList.remove("q-btn--active")}function A(T){xt(T),T.qSkipRipple=!0}return h.onBeforeUnmount(()=>{L(!0)}),Object.assign(b,{click:T=>{u.value===!0&&q(T)}}),()=>{let T=[];i.icon!==void 0&&T.push(h.h(ct,{name:i.icon,left:i.stack!==!0&&v.value===!0,role:"img"})),v.value===!0&&T.push(h.h("span",{class:"block"},[i.label])),T=Dt(M.default,T),i.iconRight!==void 0&&i.round===!1&&T.push(h.h(ct,{name:i.iconRight,right:i.stack!==!0&&v.value===!0,role:"img"}));const _=[h.h("span",{class:"q-focus-helper",ref:l})];return i.loading===!0&&i.percentage!==void 0&&_.push(h.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(i.darkPercentage===!0?" q-btn__progress--dark":"")},[h.h("span",{class:"q-btn__progress-indicator fit block",style:C.value})])),_.push(h.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},T)),i.loading!==null&&_.push(h.h(h.Transition,{name:"q-transition--fade"},()=>i.loading===!0?[h.h("span",{key:"loading",class:"absolute-full flex flex-center"},M.loading!==void 0?M.loading():[h.h(Eo)])]:null)),h.withDirectives(h.h(e.value,N.value,_),[[To,g.value,void 0,k.value]])}}}),yl={class:"row justify-between"},wl=h.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})},query:{default:()=>({})}},setup(i){const M=i,t=h.inject("navContext",null),b=h.inject("router");function m(c){if(!b){console.warn("Dependencies not available:",{router:b});return}t?.setTabs();const a=c==="back"?M.from:M.to;if(!a){console.warn("Destination not provided:",c);return}b.push({name:a,params:M.params,query:M.query})}return(c,a)=>(h.openBlock(),h.createElementBlock("div",yl,[h.createVNode(at,{icon:"chevron_left","rounded-sm":"",label:c.labelFrom,"data-cy":"go-back","data-testid":"go-back",onClick:a[0]||(a[0]=o=>m("back"))},null,8,["label"]),c.labelTo?(h.openBlock(),h.createBlock(at,{key:0,label:c.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next","data-testid":"go-next",onClick:a[1]||(a[1]=o=>m("next"))},null,8,["label"])):h.createCommentVNode("",!0)]))}}),jt=(i,M)=>{const t=i.__vccOpts||i;for(const[b,m]of M)t[b]=m;return t},xl=jt(wl,[["__scopeId","data-v-8dd99f80"]]),Tt={dark:{type:Boolean,default:null}};function Bt(i,M){return h.computed(()=>i.dark===null?M.dark.isActive:i.dark)}const Sl={xs:8,sm:10,md:14,lg:20,xl:24},Dn=Ze({name:"QChip",props:{...Tt,...Ur,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(i,{slots:M,emit:t}){const{proxy:{$q:b}}=h.getCurrentInstance(),m=Bt(i,b),c=Wr(i,Sl),a=h.computed(()=>i.selected===!0||i.icon!==void 0),o=h.computed(()=>i.selected===!0?i.iconSelected||b.iconSet.chip.selected:i.icon),n=h.computed(()=>i.iconRemove||b.iconSet.chip.remove),e=h.computed(()=>i.disable===!1&&(i.clickable===!0||i.selected!==null)),r=h.computed(()=>{const d=i.outline===!0&&i.color||i.textColor;return"q-chip row inline no-wrap items-center"+(i.outline===!1&&i.color!==void 0?` bg-${i.color}`:"")+(d?` text-${d} q-chip--colored`:"")+(i.disable===!0?" disabled":"")+(i.dense===!0?" q-chip--dense":"")+(i.outline===!0?" q-chip--outline":"")+(i.selected===!0?" q-chip--selected":"")+(e.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(i.square===!0?" q-chip--square":"")+(m.value===!0?" q-chip--dark q-dark":"")}),u=h.computed(()=>{const d=i.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:i.tabindex||0},v={...d,role:"button","aria-hidden":"false","aria-label":i.removeAriaLabel||b.lang.label.remove};return{chip:d,remove:v}});function s(d){d.keyCode===13&&l(d)}function l(d){i.disable||(t("update:selected",!i.selected),t("click",d))}function f(d){(d.keyCode===void 0||d.keyCode===13)&&(xt(d),i.disable===!1&&(t("update:modelValue",!1),t("remove")))}function p(){const d=[];e.value===!0&&d.push(h.h("div",{class:"q-focus-helper"})),a.value===!0&&d.push(h.h(ct,{class:"q-chip__icon q-chip__icon--left",name:o.value}));const v=i.label!==void 0?[h.h("div",{class:"ellipsis"},[i.label])]:void 0;return d.push(h.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},wo(M.default,v))),i.iconRight&&d.push(h.h(ct,{class:"q-chip__icon q-chip__icon--right",name:i.iconRight})),i.removable===!0&&d.push(h.h(ct,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:n.value,...u.value.remove,onClick:f,onKeyup:f})),d}return()=>{if(i.modelValue===!1)return;const d={class:r.value,style:c.value};return e.value===!0&&Object.assign(d,u.value.chip,{onClick:l,onKeyup:s}),Ti("div",d,p(),"ripple",i.ripple!==!1&&i.disable!==!0,()=>[[To,i.ripple]])}}}),dr=h.ref(!1);let Ri;function kl(i,M){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(i)||/(opr)[\/]([\w.]+)/.exec(i)||/(vivaldi)[\/]([\w.]+)/.exec(i)||/(chrome|crios)[\/]([\w.]+)/.exec(i)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(i)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(i)||/(firefox|fxios)[\/]([\w.]+)/.exec(i)||/(webkit)[\/]([\w.]+)/.exec(i)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(i)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:M[0]||""}}function _l(i){return/(ipad)/.exec(i)||/(ipod)/.exec(i)||/(windows phone)/.exec(i)||/(iphone)/.exec(i)||/(kindle)/.exec(i)||/(silk)/.exec(i)||/(android)/.exec(i)||/(win)/.exec(i)||/(mac)/.exec(i)||/(linux)/.exec(i)||/(cros)/.exec(i)||/(playbook)/.exec(i)||/(bb)/.exec(i)||/(blackberry)/.exec(i)||[]}const Bo="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Cl(i){const M=i.toLowerCase(),t=_l(M),b=kl(M,t),m={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};b.browser&&(m[b.browser]=!0,m.version=b.version,m.versionNumber=parseInt(b.version,10)),b.platform&&(m[b.platform]=!0);const c=m.android||m.ios||m.bb||m.blackberry||m.ipad||m.iphone||m.ipod||m.kindle||m.playbook||m.silk||m["windows phone"];if(c===!0||M.indexOf("mobile")!==-1?m.mobile=!0:m.desktop=!0,m["windows phone"]&&(m.winphone=!0,delete m["windows phone"]),m.edga||m.edgios||m.edg?(m.edge=!0,b.browser="edge"):m.crios?(m.chrome=!0,b.browser="chrome"):m.fxios&&(m.firefox=!0,b.browser="firefox"),(m.ipod||m.ipad||m.iphone)&&(m.ios=!0),m.vivaldi&&(b.browser="vivaldi",m.vivaldi=!0),(m.chrome||m.opr||m.safari||m.vivaldi||m.mobile===!0&&m.ios!==!0&&c!==!0)&&(m.webkit=!0),m.opr&&(b.browser="opera",m.opera=!0),m.safari&&(m.blackberry||m.bb?(b.browser="blackberry",m.blackberry=!0):m.playbook?(b.browser="playbook",m.playbook=!0):m.android?(b.browser="android",m.android=!0):m.kindle?(b.browser="kindle",m.kindle=!0):m.silk&&(b.browser="silk",m.silk=!0)),m.name=b.browser,m.platform=b.platform,M.indexOf("electron")!==-1)m.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)m.bex=!0;else{if(window.Capacitor!==void 0?(m.capacitor=!0,m.nativeMobile=!0,m.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(m.cordova=!0,m.nativeMobile=!0,m.nativeMobileWrapper="cordova"),dr.value===!0&&(Ri={is:{...m}}),Bo===!0&&m.mac===!0&&(m.desktop===!0&&m.safari===!0||m.nativeMobile===!0&&m.android!==!0&&m.ios!==!0&&m.ipad!==!0)){delete m.mac,delete m.desktop;const a=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(m,{mobile:!0,ios:!0,platform:a,[a]:!0})}m.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete m.desktop,m.mobile=!0)}return m}const Aa=navigator.userAgent||navigator.vendor||window.opera,Al={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Mt={userAgent:Aa,is:Cl(Aa),has:{touch:Bo},within:{iframe:window.self!==window.top}},Ii={install(i){const{$q:M}=i;dr.value===!0?(i.onSSRHydrated.push(()=>{Object.assign(M.platform,Mt),dr.value=!1}),M.platform=h.reactive(this)):M.platform=this}};{let i;qt(Mt.has,"webStorage",()=>{if(i!==void 0)return i;try{if(window.localStorage)return i=!0,!0}catch{}return i=!1,!1}),Object.assign(Ii,Mt),dr.value===!0&&(Object.assign(Ii,Ri,Al),Ri=null)}function jn(){if(window.getSelection!==void 0){const i=window.getSelection();i.empty!==void 0?i.empty():i.removeAllRanges!==void 0&&(i.removeAllRanges(),Ii.is.mobile!==!0&&i.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ro={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Io={...Ro,contextMenu:Boolean};function Xi({showing:i,avoidEmit:M,configureAnchorEl:t}){const{props:b,proxy:m,emit:c}=h.getCurrentInstance(),a=h.ref(null);let o=null;function n(l){return a.value===null?!1:l===void 0||l.touches===void 0||l.touches.length<=1}const e={};t===void 0&&(Object.assign(e,{hide(l){m.hide(l)},toggle(l){m.toggle(l),l.qAnchorHandled=!0},toggleKey(l){cr(l,13)===!0&&e.toggle(l)},contextClick(l){m.hide(l),Ot(l),h.nextTick(()=>{m.show(l),l.qAnchorHandled=!0})},prevent:Ot,mobileTouch(l){if(e.mobileCleanup(l),n(l)!==!0)return;m.hide(l),a.value.classList.add("non-selectable");const f=l.target;er(e,"anchor",[[f,"touchmove","mobileCleanup","passive"],[f,"touchend","mobileCleanup","passive"],[f,"touchcancel","mobileCleanup","passive"],[a.value,"contextmenu","prevent","notPassive"]]),o=setTimeout(()=>{o=null,m.show(l),l.qAnchorHandled=!0},300)},mobileCleanup(l){a.value.classList.remove("non-selectable"),o!==null&&(clearTimeout(o),o=null),i.value===!0&&l!==void 0&&jn()}}),t=function(l=b.contextMenu){if(b.noParentEvent===!0||a.value===null)return;let f;l===!0?m.$q.platform.is.mobile===!0?f=[[a.value,"touchstart","mobileTouch","passive"]]:f=[[a.value,"mousedown","hide","passive"],[a.value,"contextmenu","contextClick","notPassive"]]:f=[[a.value,"click","toggle","passive"],[a.value,"keyup","toggleKey","passive"]],er(e,"anchor",f)});function r(){yr(e,"anchor")}function u(l){for(a.value=l;a.value.classList.contains("q-anchor--skip");)a.value=a.value.parentNode;t()}function s(){if(b.target===!1||b.target===""||m.$el.parentNode===null)a.value=null;else if(b.target===!0)u(m.$el.parentNode);else{let l=b.target;if(typeof b.target=="string")try{l=document.querySelector(b.target)}catch{l=void 0}l!=null?(a.value=l.$el||l,t()):(a.value=null,console.error(`Anchor: target "${b.target}" not found`))}}return h.watch(()=>b.contextMenu,l=>{a.value!==null&&(r(),t(l))}),h.watch(()=>b.target,()=>{a.value!==null&&r(),s()}),h.watch(()=>b.noParentEvent,l=>{a.value!==null&&(l===!0?r():t())}),h.onMounted(()=>{s(),M!==!0&&b.modelValue===!0&&a.value===null&&c("update:modelValue",!1)}),h.onBeforeUnmount(()=>{o!==null&&clearTimeout(o),r()}),{anchorEl:a,canShow:n,anchorEvents:e}}function Oo(i,M){const t=h.ref(null);let b;function m(o,n){const e=`${n!==void 0?"add":"remove"}EventListener`,r=n!==void 0?n:b;o!==window&&o[e]("scroll",r,_t.passive),window[e]("scroll",r,_t.passive),b=n}function c(){t.value!==null&&(m(t.value),t.value=null)}const a=h.watch(()=>i.noParentEvent,()=>{t.value!==null&&(c(),M())});return h.onBeforeUnmount(a),{localScrollTarget:t,unconfigureScrollTarget:c,changeScrollEvent:m}}const on={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},sn=["beforeShow","show","beforeHide","hide"];function ln({showing:i,canShow:M,hideOnRouteChange:t,handleShow:b,handleHide:m,processOnMount:c}){const a=h.getCurrentInstance(),{props:o,emit:n,proxy:e}=a;let r;function u(g){i.value===!0?f(g):s(g)}function s(g){if(o.disable===!0||g?.qAnchorHandled===!0||M!==void 0&&M(g)!==!0)return;const k=o["onUpdate:modelValue"]!==void 0;k===!0&&(n("update:modelValue",!0),r=g,h.nextTick(()=>{r===g&&(r=void 0)})),(o.modelValue===null||k===!1)&&l(g)}function l(g){i.value!==!0&&(i.value=!0,n("beforeShow",g),b!==void 0?b(g):n("show",g))}function f(g){if(o.disable===!0)return;const k=o["onUpdate:modelValue"]!==void 0;k===!0&&(n("update:modelValue",!1),r=g,h.nextTick(()=>{r===g&&(r=void 0)})),(o.modelValue===null||k===!1)&&p(g)}function p(g){i.value!==!1&&(i.value=!1,n("beforeHide",g),m!==void 0?m(g):n("hide",g))}function d(g){o.disable===!0&&g===!0?o["onUpdate:modelValue"]!==void 0&&n("update:modelValue",!1):g===!0!==i.value&&(g===!0?l:p)(r)}h.watch(()=>o.modelValue,d),t!==void 0&&Wi(a)===!0&&h.watch(()=>e.$route.fullPath,()=>{t.value===!0&&i.value===!0&&f()}),c===!0&&h.onMounted(()=>{d(o.modelValue)});const v={show:s,hide:f,toggle:u};return Object.assign(e,v),v}let br=[],tn=[];function Fo(i){tn=tn.filter(M=>M!==i)}function El(i){Fo(i),tn.push(i)}function Ea(i){Fo(i),tn.length===0&&br.length!==0&&(br[br.length-1](),br=[])}function un(i){tn.length===0?i():br.push(i)}function Ml(i){br=br.filter(M=>M!==i)}const Ma={};let Tl=1,Bl=document.body;function Rl(i,M){const t=document.createElement("div");if(t.id=M!==void 0?`q-portal--${M}--${Tl++}`:i,Ma.globalNodes!==void 0){const b=Ma.globalNodes.class;b!==void 0&&(t.className=b)}return Bl.appendChild(t),t}function Il(i){i.remove()}const Or=[];function Ol(i){return Or.find(M=>M.contentEl!==null&&M.contentEl.contains(i))}function Do(i,M){do{if(i.$options.name==="QMenu"){if(i.hide(M),i.$props.separateClosePopup===!0)return Bn(i)}else if(i.__qPortal===!0){const t=Bn(i);return t?.$options.name==="QPopupProxy"?(i.hide(M),t):i}i=Bn(i)}while(i!=null)}function Fl(i,M,t){for(;t!==0&&i!==void 0&&i!==null;){if(i.__qPortal===!0){if(t--,i.$options.name==="QMenu"){i=Do(i,M);continue}i.hide(M)}i=Bn(i)}}const Dl=Ze({name:"QPortal",setup(i,{slots:M}){return()=>M.default()}});function jl(i){for(i=i.parent;i!=null;){if(i.type.name==="QGlobalDialog")return!0;if(i.type.name==="QDialog"||i.type.name==="QMenu")return!1;i=i.parent}return!1}function Gi(i,M,t,b){const m=h.ref(!1),c=h.ref(!1);let a=null;const o={},n=b==="dialog"&&jl(i);function e(u){if(u===!0){Ea(o),c.value=!0;return}c.value=!1,m.value===!1&&(n===!1&&a===null&&(a=Rl(!1,b)),m.value=!0,Or.push(i.proxy),El(o))}function r(u){if(c.value=!1,u!==!0)return;Ea(o),m.value=!1;const s=Or.indexOf(i.proxy);s!==-1&&Or.splice(s,1),a!==null&&(Il(a),a=null)}return h.onUnmounted(()=>{r(!0)}),i.proxy.__qPortal=!0,qt(i.proxy,"contentEl",()=>M.value),{showPortal:e,hidePortal:r,portalIsActive:m,portalIsAccessible:c,renderPortal:()=>n===!0?t():m.value===!0?[h.h(h.Teleport,{to:a},h.h(Dl,t))]:void 0}}const en={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Ji(i,M=()=>{},t=()=>{}){return{transitionProps:h.computed(()=>{const b=`q-transition--${i.transitionShow||M()}`,m=`q-transition--${i.transitionHide||t()}`;return{appear:!0,enterFromClass:`${b}-enter-from`,enterActiveClass:`${b}-enter-active`,enterToClass:`${b}-enter-to`,leaveFromClass:`${m}-leave-from`,leaveActiveClass:`${m}-leave-active`,leaveToClass:`${m}-leave-to`}}),transitionStyle:h.computed(()=>`--q-transition-duration: ${i.transitionDuration}ms`)}}function Zi(){let i;const M=h.getCurrentInstance();function t(){i=void 0}return h.onDeactivated(t),h.onBeforeUnmount(t),{removeTick:t,registerTick(b){i=b,h.nextTick(()=>{i===b&&(Jn(M)===!1&&i(),i=void 0)})}}}function ei(){let i=null;const M=h.getCurrentInstance();function t(){i!==null&&(clearTimeout(i),i=null)}return h.onDeactivated(t),h.onBeforeUnmount(t),{removeTimeout:t,registerTimeout(b,m){t(),Jn(M)===!1&&(i=setTimeout(()=>{i=null,b()},m))}}}const ti=[Element,String],Nl=[null,document,document.body,document.scrollingElement,document.documentElement];function ri(i,M){let t=sl(M);if(t===void 0){if(i==null)return window;t=i.closest(".scroll,.scroll-y,.overflow-auto")}return Nl.includes(t)?window:t}function $i(i){return i===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:i.scrollTop}function ea(i){return i===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:i.scrollLeft}function jo(i,M,t=0){const b=arguments[3]===void 0?performance.now():arguments[3],m=$i(i);if(t<=0){m!==M&&Oi(i,M);return}requestAnimationFrame(c=>{const a=c-b,o=m+(M-m)/Math.max(a,t)*a;Oi(i,o),o!==M&&jo(i,M,t-a,c)})}function No(i,M,t=0){const b=arguments[3]===void 0?performance.now():arguments[3],m=ea(i);if(t<=0){m!==M&&Fi(i,M);return}requestAnimationFrame(c=>{const a=c-b,o=m+(M-m)/Math.max(a,t)*a;Fi(i,o),o!==M&&No(i,M,t-a,c)})}function Oi(i,M){if(i===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,M);return}i.scrollTop=M}function Fi(i,M){if(i===window){window.scrollTo(M,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}i.scrollLeft=M}function Ta(i,M,t){if(t){jo(i,M,t);return}Oi(i,M)}function di(i,M,t){if(t){No(i,M,t);return}Fi(i,M)}let wn;function Rn(){if(wn!==void 0)return wn;const i=document.createElement("p"),M=document.createElement("div");Bi(i,{width:"100%",height:"200px"}),Bi(M,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),M.appendChild(i),document.body.appendChild(M);const t=i.offsetWidth;M.style.overflow="scroll";let b=i.offsetWidth;return t===b&&(b=M.clientWidth),M.remove(),wn=t-b,wn}function Pl(i,M=!0){return!i||i.nodeType!==Node.ELEMENT_NODE?!1:M?i.scrollHeight>i.clientHeight&&(i.classList.contains("scroll")||i.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(i)["overflow-y"])):i.scrollWidth>i.clientWidth&&(i.classList.contains("scroll")||i.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(i)["overflow-x"]))}const{notPassiveCapture:Nn}=_t,wr=[];function Pn(i){const M=i.target;if(M===void 0||M.nodeType===8||M.classList.contains("no-pointer-events")===!0)return;let t=Or.length-1;for(;t>=0;){const b=Or[t].$;if(b.type.name==="QTooltip"){t--;continue}if(b.type.name!=="QDialog")break;if(b.props.seamless!==!0)return;t--}for(let b=wr.length-1;b>=0;b--){const m=wr[b];if((m.anchorEl.value===null||m.anchorEl.value.contains(M)===!1)&&(M===document.body||m.innerRef.value!==null&&m.innerRef.value.contains(M)===!1))i.qClickOutside=!0,m.onClickOutside(i);else return}}function Po(i){wr.push(i),wr.length===1&&(document.addEventListener("mousedown",Pn,Nn),document.addEventListener("touchstart",Pn,Nn))}function Ln(i){const M=wr.findIndex(t=>t===i);M!==-1&&(wr.splice(M,1),wr.length===0&&(document.removeEventListener("mousedown",Pn,Nn),document.removeEventListener("touchstart",Pn,Nn)))}let Ba,Ra;function Vn(i){const M=i.split(" ");return M.length!==2?!1:["top","center","bottom"].includes(M[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(M[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Lo(i){return i?!(i.length!==2||typeof i[0]!="number"||typeof i[1]!="number"):!0}const Di={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(i=>{Di[`${i}#ltr`]=i,Di[`${i}#rtl`]=i});function qn(i,M){const t=i.split(" ");return{vertical:t[0],horizontal:Di[`${t[1]}#${M===!0?"rtl":"ltr"}`]}}function Ll(i,M){let{top:t,left:b,right:m,bottom:c,width:a,height:o}=i.getBoundingClientRect();return M!==void 0&&(t-=M[1],b-=M[0],c+=M[1],m+=M[0],a+=M[0],o+=M[1]),{top:t,bottom:c,height:o,left:b,right:m,width:a,middle:b+(m-b)/2,center:t+(c-t)/2}}function Vl(i,M,t){let{top:b,left:m}=i.getBoundingClientRect();return b+=M.top,m+=M.left,t!==void 0&&(b+=t[1],m+=t[0]),{top:b,bottom:b+1,height:1,left:m,right:m+1,width:1,middle:m,center:b}}function ql(i,M){return{top:0,center:M/2,bottom:M,left:0,middle:i/2,right:i}}function Ia(i,M,t,b){return{top:i[t.vertical]-M[b.vertical],left:i[t.horizontal]-M[b.horizontal]}}function ta(i,M=0){if(i.targetEl===null||i.anchorEl===null||M>5)return;if(i.targetEl.offsetHeight===0||i.targetEl.offsetWidth===0){setTimeout(()=>{ta(i,M+1)},10);return}const{targetEl:t,offset:b,anchorEl:m,anchorOrigin:c,selfOrigin:a,absoluteOffset:o,fit:n,cover:e,maxHeight:r,maxWidth:u}=i;if(Mt.is.ios===!0&&window.visualViewport!==void 0){const N=document.body.style,{offsetLeft:q,offsetTop:j}=window.visualViewport;q!==Ba&&(N.setProperty("--q-pe-left",q+"px"),Ba=q),j!==Ra&&(N.setProperty("--q-pe-top",j+"px"),Ra=j)}const{scrollLeft:s,scrollTop:l}=t,f=o===void 0?Ll(m,e===!0?[0,0]:b):Vl(m,o,b);Object.assign(t.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:u,maxHeight:r,visibility:"visible"});const{offsetWidth:p,offsetHeight:d}=t,{elWidth:v,elHeight:g}=n===!0||e===!0?{elWidth:Math.max(f.width,p),elHeight:e===!0?Math.max(f.height,d):d}:{elWidth:p,elHeight:d};let k={maxWidth:u,maxHeight:r};(n===!0||e===!0)&&(k.minWidth=f.width+"px",e===!0&&(k.minHeight=f.height+"px")),Object.assign(t.style,k);const C=ql(v,g);let B=Ia(f,C,c,a);if(o===void 0||b===void 0)fi(B,f,C,c,a);else{const{top:N,left:q}=B;fi(B,f,C,c,a);let j=!1;if(B.top!==N){j=!0;const P=2*b[1];f.center=f.top-=P,f.bottom-=P+2}if(B.left!==q){j=!0;const P=2*b[0];f.middle=f.left-=P,f.right-=P+2}j===!0&&(B=Ia(f,C,c,a),fi(B,f,C,c,a))}k={top:B.top+"px",left:B.left+"px"},B.maxHeight!==void 0&&(k.maxHeight=B.maxHeight+"px",f.height>B.maxHeight&&(k.minHeight=k.maxHeight)),B.maxWidth!==void 0&&(k.maxWidth=B.maxWidth+"px",f.width>B.maxWidth&&(k.minWidth=k.maxWidth)),Object.assign(t.style,k),t.scrollTop!==l&&(t.scrollTop=l),t.scrollLeft!==s&&(t.scrollLeft=s)}function fi(i,M,t,b,m){const c=t.bottom,a=t.right,o=Rn(),n=window.innerHeight-o,e=document.body.clientWidth;if(i.top<0||i.top+c>n)if(m.vertical==="center")i.top=M[b.vertical]>n/2?Math.max(0,n-c):0,i.maxHeight=Math.min(c,n);else if(M[b.vertical]>n/2){const r=Math.min(n,b.vertical==="center"?M.center:b.vertical===m.vertical?M.bottom:M.top);i.maxHeight=Math.min(c,r),i.top=Math.max(0,r-c)}else i.top=Math.max(0,b.vertical==="center"?M.center:b.vertical===m.vertical?M.top:M.bottom),i.maxHeight=Math.min(c,n-i.top);if(i.left<0||i.left+a>e)if(i.maxWidth=Math.min(a,e),m.horizontal==="middle")i.left=M[b.horizontal]>e/2?Math.max(0,e-a):0;else if(M[b.horizontal]>e/2){const r=Math.min(e,b.horizontal==="middle"?M.middle:b.horizontal===m.horizontal?M.right:M.left);i.maxWidth=Math.min(a,r),i.left=Math.max(0,r-i.maxWidth)}else i.left=Math.max(0,b.horizontal==="middle"?M.middle:b.horizontal===m.horizontal?M.left:M.right),i.maxWidth=Math.min(a,e-i.left)}const tr=Ze({name:"QTooltip",inheritAttrs:!1,props:{...Ro,...on,...en,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...en.transitionShow,default:"jump-down"},transitionHide:{...en.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Vn},self:{type:String,default:"top middle",validator:Vn},offset:{type:Array,default:()=>[14,14],validator:Lo},scrollTarget:ti,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...sn],setup(i,{slots:M,emit:t,attrs:b}){let m,c;const a=h.getCurrentInstance(),{proxy:{$q:o}}=a,n=h.ref(null),e=h.ref(!1),r=h.computed(()=>qn(i.anchor,o.lang.rtl)),u=h.computed(()=>qn(i.self,o.lang.rtl)),s=h.computed(()=>i.persistent!==!0),{registerTick:l,removeTick:f}=Zi(),{registerTimeout:p}=ei(),{transitionProps:d,transitionStyle:v}=Ji(i),{localScrollTarget:g,changeScrollEvent:k,unconfigureScrollTarget:C}=Oo(i,E),{anchorEl:B,canShow:N,anchorEvents:q}=Xi({showing:e,configureAnchorEl:S}),{show:j,hide:P}=ln({showing:e,canShow:N,handleShow:A,handleHide:T,hideOnRouteChange:s,processOnMount:!0});Object.assign(q,{delayShow:w,delayHide:x});const{showPortal:V,hidePortal:z,renderPortal:L}=Gi(a,n,O,"tooltip");if(o.platform.is.mobile===!0){const W={anchorEl:B,innerRef:n,onClickOutside(K){return P(K),K.target.classList.contains("q-dialog__backdrop")&&xt(K),!0}},H=h.computed(()=>i.modelValue===null&&i.persistent!==!0&&e.value===!0);h.watch(H,K=>{(K===!0?Po:Ln)(W)}),h.onBeforeUnmount(()=>{Ln(W)})}function A(W){V(),l(()=>{c=new MutationObserver(()=>y()),c.observe(n.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),y(),E()}),m===void 0&&(m=h.watch(()=>o.screen.width+"|"+o.screen.height+"|"+i.self+"|"+i.anchor+"|"+o.lang.rtl,y)),p(()=>{V(!0),t("show",W)},i.transitionDuration)}function T(W){f(),z(),_(),p(()=>{z(!0),t("hide",W)},i.transitionDuration)}function _(){c!==void 0&&(c.disconnect(),c=void 0),m!==void 0&&(m(),m=void 0),C(),yr(q,"tooltipTemp")}function y(){ta({targetEl:n.value,offset:i.offset,anchorEl:B.value,anchorOrigin:r.value,selfOrigin:u.value,maxHeight:i.maxHeight,maxWidth:i.maxWidth})}function w(W){if(o.platform.is.mobile===!0){jn(),document.body.classList.add("non-selectable");const H=B.value,K=["touchmove","touchcancel","touchend","click"].map(D=>[H,D,"delayHide","passiveCapture"]);er(q,"tooltipTemp",K)}p(()=>{j(W)},i.delay)}function x(W){o.platform.is.mobile===!0&&(yr(q,"tooltipTemp"),jn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),p(()=>{P(W)},i.hideDelay)}function S(){if(i.noParentEvent===!0||B.value===null)return;const W=o.platform.is.mobile===!0?[[B.value,"touchstart","delayShow","passive"]]:[[B.value,"mouseenter","delayShow","passive"],[B.value,"mouseleave","delayHide","passive"]];er(q,"anchor",W)}function E(){if(B.value!==null||i.scrollTarget!==void 0){g.value=ri(B.value,i.scrollTarget);const W=i.noParentEvent===!0?y:P;k(g.value,W)}}function I(){return e.value===!0?h.h("div",{...b,ref:n,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",b.class],style:[b.style,v.value],role:"tooltip"},dt(M.default)):null}function O(){return h.h(h.Transition,d.value,I)}return h.onBeforeUnmount(_),Object.assign(a.proxy,{updatePosition:y}),L}});function zl(i,M){const t=h.ref(null),b=h.computed(()=>i.disable===!0?null:h.h("span",{ref:t,class:"no-outline",tabindex:-1}));function m(c){const a=M.value;c?.qAvoidFocus!==!0&&(c?.type.indexOf("key")===0?document.activeElement!==a&&a?.contains(document.activeElement)===!0&&a.focus():t.value!==null&&(c===void 0||a?.contains(c.target)===!0)&&t.value.focus())}return{refocusTargetEl:b,refocusTarget:m}}const cn={name:String};function Vo(i){return h.computed(()=>({type:"hidden",name:i.name,value:i.modelValue}))}function ra(i={}){return(M,t,b)=>{M[t](h.h("input",{class:"hidden"+(b||""),...i.value}))}}function qo(i){return h.computed(()=>i.name||i.for)}const Ul={xs:30,sm:35,md:40,lg:50,xl:60},zo={...Tt,...Ur,...cn,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:i=>i==="tf"||i==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Uo=["update:modelValue"];function Wo(i,M){const{props:t,slots:b,emit:m,proxy:c}=h.getCurrentInstance(),{$q:a}=c,o=Bt(t,a),n=h.ref(null),{refocusTargetEl:e,refocusTarget:r}=zl(t,n),u=Wr(t,Ul),s=h.computed(()=>t.val!==void 0&&Array.isArray(t.modelValue)),l=h.computed(()=>{const L=h.toRaw(t.val);return s.value===!0?t.modelValue.findIndex(A=>h.toRaw(A)===L):-1}),f=h.computed(()=>s.value===!0?l.value!==-1:h.toRaw(t.modelValue)===h.toRaw(t.trueValue)),p=h.computed(()=>s.value===!0?l.value===-1:h.toRaw(t.modelValue)===h.toRaw(t.falseValue)),d=h.computed(()=>f.value===!1&&p.value===!1),v=h.computed(()=>t.disable===!0?-1:t.tabindex||0),g=h.computed(()=>`q-${i} cursor-pointer no-outline row inline no-wrap items-center`+(t.disable===!0?" disabled":"")+(o.value===!0?` q-${i}--dark`:"")+(t.dense===!0?` q-${i}--dense`:"")+(t.leftLabel===!0?" reverse":"")),k=h.computed(()=>{const L=f.value===!0?"truthy":p.value===!0?"falsy":"indet",A=t.color!==void 0&&(t.keepColor===!0||(i==="toggle"?f.value===!0:p.value!==!0))?` text-${t.color}`:"";return`q-${i}__inner relative-position non-selectable q-${i}__inner--${L}${A}`}),C=h.computed(()=>{const L={type:"checkbox"};return t.name!==void 0&&Object.assign(L,{".checked":f.value,"^checked":f.value===!0?"checked":void 0,name:t.name,value:s.value===!0?t.val:t.trueValue}),L}),B=ra(C),N=h.computed(()=>{const L={tabindex:v.value,role:i==="toggle"?"switch":"checkbox","aria-label":t.label,"aria-checked":d.value===!0?"mixed":f.value===!0?"true":"false"};return t.disable===!0&&(L["aria-disabled"]="true"),L});function q(L){L!==void 0&&(xt(L),r(L)),t.disable!==!0&&m("update:modelValue",j(),L)}function j(){if(s.value===!0){if(f.value===!0){const L=t.modelValue.slice();return L.splice(l.value,1),L}return t.modelValue.concat([t.val])}if(f.value===!0){if(t.toggleOrder!=="ft"||t.toggleIndeterminate===!1)return t.falseValue}else if(p.value===!0){if(t.toggleOrder==="ft"||t.toggleIndeterminate===!1)return t.trueValue}else return t.toggleOrder!=="ft"?t.trueValue:t.falseValue;return t.indeterminateValue}function P(L){(L.keyCode===13||L.keyCode===32)&&xt(L)}function V(L){(L.keyCode===13||L.keyCode===32)&&q(L)}const z=M(f,d);return Object.assign(c,{toggle:q}),()=>{const L=z();t.disable!==!0&&B(L,"unshift",` q-${i}__native absolute q-ma-none q-pa-none`);const A=[h.h("div",{class:k.value,style:u.value,"aria-hidden":"true"},L)];e.value!==null&&A.push(e.value);const T=t.label!==void 0?Dt(b.default,[t.label]):dt(b.default);return T!==void 0&&A.push(h.h("div",{class:`q-${i}__label q-anchor--skip`},T)),h.h("div",{ref:n,class:g.value,...N.value,onClick:q,onKeydown:P,onKeyup:V},A)}}const Wl=()=>h.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[h.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[h.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),h.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Fr=Ze({name:"QCheckbox",props:zo,emits:Uo,setup(i){const M=Wl();function t(b,m){const c=h.computed(()=>(b.value===!0?i.checkedIcon:m.value===!0?i.indeterminateIcon:i.uncheckedIcon)||null);return()=>c.value!==null?[h.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[h.h(ct,{class:"q-checkbox__icon",name:c.value})])]:[M]}return Wo("checkbox",t)}}),Hl=Ze({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(i){return()=>[h.h("div",{class:i.store.scroll.vertical.barClass.value,style:[i.barStyle,i.verticalBarStyle],"aria-hidden":"true",onMousedown:i.store.onVerticalMousedown}),h.h("div",{class:i.store.scroll.horizontal.barClass.value,style:[i.barStyle,i.horizontalBarStyle],"aria-hidden":"true",onMousedown:i.store.onHorizontalMousedown}),h.withDirectives(h.h("div",{ref:i.store.scroll.vertical.ref,class:i.store.scroll.vertical.thumbClass.value,style:i.store.scroll.vertical.style.value,"aria-hidden":"true"}),i.store.thumbVertDir),h.withDirectives(h.h("div",{ref:i.store.scroll.horizontal.ref,class:i.store.scroll.horizontal.thumbClass.value,style:i.store.scroll.horizontal.style.value,"aria-hidden":"true"}),i.store.thumbHorizDir)]}});function Yl(){const i=h.ref(!dr.value);return i.value===!1&&h.onMounted(()=>{i.value=!0}),{isHydrated:i}}const Ho=typeof ResizeObserver<"u",Oa=Ho===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},Lr=Ze({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(i,{emit:M}){let t=null,b,m={width:-1,height:-1};function c(n){n===!0||i.debounce===0||i.debounce==="0"?a():t===null&&(t=setTimeout(a,i.debounce))}function a(){if(t!==null&&(clearTimeout(t),t=null),b){const{offsetWidth:n,offsetHeight:e}=b;(n!==m.width||e!==m.height)&&(m={width:n,height:e},M("resize",m))}}const{proxy:o}=h.getCurrentInstance();if(o.trigger=c,Ho===!0){let n;const e=r=>{b=o.$el.parentNode,b?(n=new ResizeObserver(c),n.observe(b),a()):r!==!0&&h.nextTick(()=>{e(!0)})};return h.onMounted(()=>{e()}),h.onBeforeUnmount(()=>{t!==null&&clearTimeout(t),n!==void 0&&(n.disconnect!==void 0?n.disconnect():b&&n.unobserve(b))}),$n}else{let n=function(){t!==null&&(clearTimeout(t),t=null),u!==void 0&&(u.removeEventListener!==void 0&&u.removeEventListener("resize",c,_t.passive),u=void 0)},e=function(){n(),b?.contentDocument&&(u=b.contentDocument.defaultView,u.addEventListener("resize",c,_t.passive),a())};const{isHydrated:r}=Yl();let u;return h.onMounted(()=>{h.nextTick(()=>{b=o.$el,b&&e()})}),h.onBeforeUnmount(n),()=>{if(r.value===!0)return h.h("object",{class:"q--avoid-card-border",style:Oa.style,tabindex:-1,type:"text/html",data:Oa.url,"aria-hidden":"true",onLoad:e})}}}}),{passive:Fa}=_t,Ql=["both","horizontal","vertical"],Yo=Ze({name:"QScrollObserver",props:{axis:{type:String,validator:i=>Ql.includes(i),default:"vertical"},debounce:[String,Number],scrollTarget:ti},emits:["scroll"],setup(i,{emit:M}){const t={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let b=null,m,c;h.watch(()=>i.scrollTarget,()=>{n(),o()});function a(){b?.();const u=Math.max(0,$i(m)),s=ea(m),l={top:u-t.position.top,left:s-t.position.left};if(i.axis==="vertical"&&l.top===0||i.axis==="horizontal"&&l.left===0)return;const f=Math.abs(l.top)>=Math.abs(l.left)?l.top<0?"up":"down":l.left<0?"left":"right";t.position={top:u,left:s},t.directionChanged=t.direction!==f,t.delta=l,t.directionChanged===!0&&(t.direction=f,t.inflectionPoint=t.position),M("scroll",{...t})}function o(){m=ri(c,i.scrollTarget),m.addEventListener("scroll",e,Fa),e(!0)}function n(){m!==void 0&&(m.removeEventListener("scroll",e,Fa),m=void 0)}function e(u){if(u===!0||i.debounce===0||i.debounce==="0")a();else if(b===null){const[s,l]=i.debounce?[setTimeout(a,i.debounce),clearTimeout]:[requestAnimationFrame(a),cancelAnimationFrame];b=()=>{l(s),b=null}}}const{proxy:r}=h.getCurrentInstance();return h.watch(()=>r.$q.lang.rtl,a),h.onMounted(()=>{c=r.$el.parentNode,o()}),h.onBeforeUnmount(()=>{b?.(),n()}),Object.assign(r,{trigger:e,getPosition:()=>t}),$n}}),na={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},Kl=Object.keys(na);na.all=!0;function Da(i){const M={};for(const t of Kl)i[t]===!0&&(M[t]=!0);return Object.keys(M).length===0?na:(M.horizontal===!0?M.left=M.right=!0:M.left===!0&&M.right===!0&&(M.horizontal=!0),M.vertical===!0?M.up=M.down=!0:M.up===!0&&M.down===!0&&(M.vertical=!0),M.horizontal===!0&&M.vertical===!0&&(M.all=!0),M)}const Xl=["INPUT","TEXTAREA"];function ja(i,M){return M.event===void 0&&i.target!==void 0&&i.target.draggable!==!0&&typeof M.handler=="function"&&Xl.includes(i.target.nodeName.toUpperCase())===!1&&(i.qClonedBy===void 0||i.qClonedBy.indexOf(M.uid)===-1)}function hi(i,M,t){const b=Pr(i);let m,c=b.left-M.event.x,a=b.top-M.event.y,o=Math.abs(c),n=Math.abs(a);const e=M.direction;e.horizontal===!0&&e.vertical!==!0?m=c<0?"left":"right":e.horizontal!==!0&&e.vertical===!0?m=a<0?"up":"down":e.up===!0&&a<0?(m="up",o>n&&(e.left===!0&&c<0?m="left":e.right===!0&&c>0&&(m="right"))):e.down===!0&&a>0?(m="down",o>n&&(e.left===!0&&c<0?m="left":e.right===!0&&c>0&&(m="right"))):e.left===!0&&c<0?(m="left",o<n&&(e.up===!0&&a<0?m="up":e.down===!0&&a>0&&(m="down"))):e.right===!0&&c>0&&(m="right",o<n&&(e.up===!0&&a<0?m="up":e.down===!0&&a>0&&(m="down")));let r=!1;if(m===void 0&&t===!1){if(M.event.isFirst===!0||M.event.lastDir===void 0)return{};m=M.event.lastDir,r=!0,m==="left"||m==="right"?(b.left-=c,o=0,c=0):(b.top-=a,n=0,a=0)}return{synthetic:r,payload:{evt:i,touch:M.event.mouse!==!0,mouse:M.event.mouse===!0,position:b,direction:m,isFirst:M.event.isFirst,isFinal:t===!0,duration:Date.now()-M.event.time,distance:{x:o,y:n},offset:{x:c,y:a},delta:{x:b.left-M.event.lastX,y:b.top-M.event.lastY}}}}let Gl=0;const Dr=zi({name:"touch-pan",beforeMount(i,{value:M,modifiers:t}){if(t.mouse!==!0&&Mt.has.touch!==!0)return;function b(c,a){t.mouse===!0&&a===!0?xt(c):(t.stop===!0&&Pt(c),t.prevent===!0&&Ot(c))}const m={uid:"qvtp_"+Gl++,handler:M,modifiers:t,direction:Da(t),noop:$n,mouseStart(c){ja(c,m)&&ll(c)&&(er(m,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),m.start(c,!0))},touchStart(c){if(ja(c,m)){const a=c.target;er(m,"temp",[[a,"touchmove","move","notPassiveCapture"],[a,"touchcancel","end","passiveCapture"],[a,"touchend","end","passiveCapture"]]),m.start(c)}},start(c,a){if(Mt.is.firefox===!0&&ci(i,!0),m.lastEvt=c,a===!0||t.stop===!0){if(m.direction.all!==!0&&(a!==!0||m.modifiers.mouseAllDir!==!0&&m.modifiers.mousealldir!==!0)){const e=c.type.indexOf("mouse")!==-1?new MouseEvent(c.type,c):new TouchEvent(c.type,c);c.defaultPrevented===!0&&Ot(e),c.cancelBubble===!0&&Pt(e),Object.assign(e,{qKeyEvent:c.qKeyEvent,qClickOutside:c.qClickOutside,qAnchorHandled:c.qAnchorHandled,qClonedBy:c.qClonedBy===void 0?[m.uid]:c.qClonedBy.concat(m.uid)}),m.initialEvent={target:c.target,event:e}}Pt(c)}const{left:o,top:n}=Pr(c);m.event={x:o,y:n,time:Date.now(),mouse:a===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:o,lastY:n}},move(c){if(m.event===void 0)return;const a=Pr(c),o=a.left-m.event.x,n=a.top-m.event.y;if(o===0&&n===0)return;m.lastEvt=c;const e=m.event.mouse===!0,r=()=>{b(c,e);let l;t.preserveCursor!==!0&&t.preservecursor!==!0&&(l=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),e===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),jn(),m.styleCleanup=f=>{if(m.styleCleanup=void 0,l!==void 0&&(document.documentElement.style.cursor=l),document.body.classList.remove("non-selectable"),e===!0){const p=()=>{document.body.classList.remove("no-pointer-events--children")};f!==void 0?setTimeout(()=>{p(),f()},50):p()}else f!==void 0&&f()}};if(m.event.detected===!0){m.event.isFirst!==!0&&b(c,m.event.mouse);const{payload:l,synthetic:f}=hi(c,m,!1);l!==void 0&&(m.handler(l)===!1?m.end(c):(m.styleCleanup===void 0&&m.event.isFirst===!0&&r(),m.event.lastX=l.position.left,m.event.lastY=l.position.top,m.event.lastDir=f===!0?void 0:l.direction,m.event.isFirst=!1));return}if(m.direction.all===!0||e===!0&&(m.modifiers.mouseAllDir===!0||m.modifiers.mousealldir===!0)){r(),m.event.detected=!0,m.move(c);return}const u=Math.abs(o),s=Math.abs(n);u!==s&&(m.direction.horizontal===!0&&u>s||m.direction.vertical===!0&&u<s||m.direction.up===!0&&u<s&&n<0||m.direction.down===!0&&u<s&&n>0||m.direction.left===!0&&u>s&&o<0||m.direction.right===!0&&u>s&&o>0?(m.event.detected=!0,m.move(c)):m.end(c,!0))},end(c,a){if(m.event!==void 0){if(yr(m,"temp"),Mt.is.firefox===!0&&ci(i,!1),a===!0)m.styleCleanup?.(),m.event.detected!==!0&&m.initialEvent!==void 0&&m.initialEvent.target.dispatchEvent(m.initialEvent.event);else if(m.event.detected===!0){m.event.isFirst===!0&&m.handler(hi(c===void 0?m.lastEvt:c,m).payload);const{payload:o}=hi(c===void 0?m.lastEvt:c,m,!0),n=()=>{m.handler(o)};m.styleCleanup!==void 0?m.styleCleanup(n):n()}m.event=void 0,m.initialEvent=void 0,m.lastEvt=void 0}}};if(i.__qtouchpan=m,t.mouse===!0){const c=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";er(m,"main",[[i,"mousedown","mouseStart",`passive${c}`]])}Mt.has.touch===!0&&er(m,"main",[[i,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[i,"touchmove","noop","notPassiveCapture"]])},updated(i,M){const t=i.__qtouchpan;t!==void 0&&(M.oldValue!==M.value&&(typeof value!="function"&&t.end(),t.handler=M.value),t.direction=Da(M.modifiers))},beforeUnmount(i){const M=i.__qtouchpan;M!==void 0&&(M.event!==void 0&&M.end(),yr(M,"main"),yr(M,"temp"),Mt.is.firefox===!0&&ci(i,!1),M.styleCleanup?.(),delete i.__qtouchpan)}});function Jl(i){return i.charAt(0).toUpperCase()+i.slice(1)}function $t(i,M,t){return t<=M?M:Math.min(t,Math.max(M,i))}function Na(i,M,t){if(t<=M)return M;const b=t-M+1;let m=M+(i-M)%b;return m<M&&(m=b+m),m===0?0:m}function ht(i,M=2,t="0"){if(i==null)return i;const b=""+i;return b.length>=M?b:new Array(M-b.length+1).join(t)+b}function ia(i,M=250,t){let b=null;function m(){const c=arguments,a=()=>{b=null,i.apply(this,c)};b!==null&&clearTimeout(b),b=setTimeout(a,M)}return m.cancel=()=>{b!==null&&clearTimeout(b)},m}const Pa=["vertical","horizontal"],pi={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},La={prevent:!0,mouse:!0,mouseAllDir:!0},Va=i=>i>=250?50:Math.ceil(i/5),Zl=Ze({name:"QScrollArea",props:{...Tt,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(i,{slots:M,emit:t}){const b=h.ref(!1),m=h.ref(!1),c=h.ref(!1),a={vertical:h.ref(0),horizontal:h.ref(0)},o={vertical:{ref:h.ref(null),position:h.ref(0),size:h.ref(0)},horizontal:{ref:h.ref(null),position:h.ref(0),size:h.ref(0)}},{proxy:n}=h.getCurrentInstance(),e=Bt(i,n.$q);let r=null,u;const s=h.ref(null),l=h.computed(()=>"q-scrollarea"+(e.value===!0?" q-scrollarea--dark":""));Object.assign(a,{verticalInner:h.computed(()=>a.vertical.value-i.verticalOffset[0]-i.verticalOffset[1]),horizontalInner:h.computed(()=>a.horizontal.value-i.horizontalOffset[0]-i.horizontalOffset[1])}),o.vertical.percentage=h.computed(()=>{const T=o.vertical.size.value-a.vertical.value;if(T<=0)return 0;const _=$t(o.vertical.position.value/T,0,1);return Math.round(_*1e4)/1e4}),o.vertical.thumbHidden=h.computed(()=>(i.visible===null?c.value:i.visible)!==!0&&b.value===!1&&m.value===!1||o.vertical.size.value<=a.vertical.value+1),o.vertical.thumbStart=h.computed(()=>i.verticalOffset[0]+o.vertical.percentage.value*(a.verticalInner.value-o.vertical.thumbSize.value)),o.vertical.thumbSize=h.computed(()=>Math.round($t(a.verticalInner.value*a.verticalInner.value/o.vertical.size.value,Va(a.verticalInner.value),a.verticalInner.value))),o.vertical.style=h.computed(()=>({...i.thumbStyle,...i.verticalThumbStyle,top:`${o.vertical.thumbStart.value}px`,height:`${o.vertical.thumbSize.value}px`,right:`${i.horizontalOffset[1]}px`})),o.vertical.thumbClass=h.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(o.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),o.vertical.barClass=h.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(o.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),o.horizontal.percentage=h.computed(()=>{const T=o.horizontal.size.value-a.horizontal.value;if(T<=0)return 0;const _=$t(Math.abs(o.horizontal.position.value)/T,0,1);return Math.round(_*1e4)/1e4}),o.horizontal.thumbHidden=h.computed(()=>(i.visible===null?c.value:i.visible)!==!0&&b.value===!1&&m.value===!1||o.horizontal.size.value<=a.horizontal.value+1),o.horizontal.thumbStart=h.computed(()=>i.horizontalOffset[0]+o.horizontal.percentage.value*(a.horizontalInner.value-o.horizontal.thumbSize.value)),o.horizontal.thumbSize=h.computed(()=>Math.round($t(a.horizontalInner.value*a.horizontalInner.value/o.horizontal.size.value,Va(a.horizontalInner.value),a.horizontalInner.value))),o.horizontal.style=h.computed(()=>({...i.thumbStyle,...i.horizontalThumbStyle,[n.$q.lang.rtl===!0?"right":"left"]:`${o.horizontal.thumbStart.value}px`,width:`${o.horizontal.thumbSize.value}px`,bottom:`${i.verticalOffset[1]}px`})),o.horizontal.thumbClass=h.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(o.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),o.horizontal.barClass=h.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(o.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const f=h.computed(()=>o.vertical.thumbHidden.value===!0&&o.horizontal.thumbHidden.value===!0?i.contentStyle:i.contentActiveStyle);function p(){const T={};return Pa.forEach(_=>{const y=o[_];Object.assign(T,{[_+"Position"]:y.position.value,[_+"Percentage"]:y.percentage.value,[_+"Size"]:y.size.value,[_+"ContainerSize"]:a[_].value,[_+"ContainerInnerSize"]:a[_+"Inner"].value})}),T}const d=ia(()=>{const T=p();T.ref=n,t("scroll",T)},0);function v(T,_,y){if(Pa.includes(T)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(T==="vertical"?Ta:di)(s.value,_,y)}function g({height:T,width:_}){let y=!1;a.vertical.value!==T&&(a.vertical.value=T,y=!0),a.horizontal.value!==_&&(a.horizontal.value=_,y=!0),y===!0&&q()}function k({position:T}){let _=!1;o.vertical.position.value!==T.top&&(o.vertical.position.value=T.top,_=!0),o.horizontal.position.value!==T.left&&(o.horizontal.position.value=T.left,_=!0),_===!0&&q()}function C({height:T,width:_}){o.horizontal.size.value!==_&&(o.horizontal.size.value=_,q()),o.vertical.size.value!==T&&(o.vertical.size.value=T,q())}function B(T,_){const y=o[_];if(T.isFirst===!0){if(y.thumbHidden.value===!0)return;u=y.position.value,m.value=!0}else if(m.value!==!0)return;T.isFinal===!0&&(m.value=!1);const w=pi[_],x=(y.size.value-a[_].value)/(a[_+"Inner"].value-y.thumbSize.value),S=T.distance[w.dist],E=u+(T.direction===w.dir?1:-1)*S*x;j(E,_)}function N(T,_){const y=o[_];if(y.thumbHidden.value!==!0){const w=_==="vertical"?i.verticalOffset[0]:i.horizontalOffset[0],x=T[pi[_].offset]-w,S=y.thumbStart.value-w;if(x<S||x>S+y.thumbSize.value){const E=x-y.thumbSize.value/2,I=$t(E/(a[_+"Inner"].value-y.thumbSize.value),0,1);j(I*Math.max(0,y.size.value-a[_].value),_)}y.ref.value!==null&&y.ref.value.dispatchEvent(new MouseEvent(T.type,T))}}function q(){b.value=!0,r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,b.value=!1},i.delay),i.onScroll!==void 0&&d()}function j(T,_){s.value[pi[_].scroll]=T}let P=null;function V(){P!==null&&clearTimeout(P),P=setTimeout(()=>{P=null,c.value=!0},n.$q.platform.is.ios?50:0)}function z(){P!==null&&(clearTimeout(P),P=null),c.value=!1}let L=null;h.watch(()=>n.$q.lang.rtl,T=>{s.value!==null&&di(s.value,Math.abs(o.horizontal.position.value)*(T===!0?-1:1))}),h.onDeactivated(()=>{L={top:o.vertical.position.value,left:o.horizontal.position.value}}),h.onActivated(()=>{if(L===null)return;const T=s.value;T!==null&&(di(T,L.left),Ta(T,L.top))}),h.onBeforeUnmount(d.cancel),Object.assign(n,{getScrollTarget:()=>s.value,getScroll:p,getScrollPosition:()=>({top:o.vertical.position.value,left:o.horizontal.position.value}),getScrollPercentage:()=>({top:o.vertical.percentage.value,left:o.horizontal.percentage.value}),setScrollPosition:v,setScrollPercentage(T,_,y){v(T,_*(o[T].size.value-a[T].value)*(T==="horizontal"&&n.$q.lang.rtl===!0?-1:1),y)}});const A={scroll:o,thumbVertDir:[[Dr,T=>{B(T,"vertical")},void 0,{vertical:!0,...La}]],thumbHorizDir:[[Dr,T=>{B(T,"horizontal")},void 0,{horizontal:!0,...La}]],onVerticalMousedown(T){N(T,"vertical")},onHorizontalMousedown(T){N(T,"horizontal")}};return()=>h.h("div",{class:l.value,onMouseenter:V,onMouseleave:z},[h.h("div",{ref:s,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:i.tabindex!==void 0?i.tabindex:void 0},[h.h("div",{class:"q-scrollarea__content absolute",style:f.value},Dt(M.default,[h.h(Lr,{debounce:0,onResize:C})])),h.h(Yo,{axis:"both",onScroll:k})]),h.h(Lr,{debounce:0,onResize:g}),h.h(Hl,{store:A,barStyle:i.barStyle,verticalBarStyle:i.verticalBarStyle,horizontalBarStyle:i.horizontalBarStyle})])}}),Hr=Ze({name:"QCard",props:{...Tt,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(i,{slots:M}){const{proxy:{$q:t}}=h.getCurrentInstance(),b=Bt(i,t),m=h.computed(()=>"q-card"+(b.value===!0?" q-card--dark q-dark":"")+(i.bordered===!0?" q-card--bordered":"")+(i.square===!0?" q-card--square no-border-radius":"")+(i.flat===!0?" q-card--flat no-shadow":""));return()=>h.h(i.tag,{class:m.value},dt(M.default))}}),xr=[];let Vr;function $l(i){Vr=i.keyCode===27}function eu(){Vr===!0&&(Vr=!1)}function tu(i){Vr===!0&&(Vr=!1,cr(i,27)===!0&&xr[xr.length-1](i))}function Qo(i){window[i]("keydown",$l),window[i]("blur",eu),window[i]("keyup",tu),Vr=!1}function Ko(i){Mt.is.desktop===!0&&(xr.push(i),xr.length===1&&Qo("addEventListener"))}function zn(i){const M=xr.indexOf(i);M!==-1&&(xr.splice(M,1),xr.length===0&&Qo("removeEventListener"))}const Sr=[];function Xo(i){Sr[Sr.length-1](i)}function Go(i){Mt.is.desktop===!0&&(Sr.push(i),Sr.length===1&&document.body.addEventListener("focusin",Xo))}function ji(i){const M=Sr.indexOf(i);M!==-1&&(Sr.splice(M,1),Sr.length===0&&document.body.removeEventListener("focusin",Xo))}const dn=Ze({name:"QMenu",inheritAttrs:!1,props:{...Io,...on,...Tt,...en,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Vn},self:{type:String,validator:Vn},offset:{type:Array,validator:Lo},scrollTarget:ti,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...sn,"click","escapeKey"],setup(i,{slots:M,emit:t,attrs:b}){let m=null,c,a,o;const n=h.getCurrentInstance(),{proxy:e}=n,{$q:r}=e,u=h.ref(null),s=h.ref(!1),l=h.computed(()=>i.persistent!==!0&&i.noRouteDismiss!==!0),f=Bt(i,r),{registerTick:p,removeTick:d}=Zi(),{registerTimeout:v}=ei(),{transitionProps:g,transitionStyle:k}=Ji(i),{localScrollTarget:C,changeScrollEvent:B,unconfigureScrollTarget:N}=Oo(i,W),{anchorEl:q,canShow:j}=Xi({showing:s}),{hide:P}=ln({showing:s,canShow:j,handleShow:E,handleHide:I,hideOnRouteChange:l,processOnMount:!0}),{showPortal:V,hidePortal:z,renderPortal:L}=Gi(n,u,F,"menu"),A={anchorEl:q,innerRef:u,onClickOutside(R){if(i.persistent!==!0&&s.value===!0)return P(R),(R.type==="touchstart"||R.target.classList.contains("q-dialog__backdrop"))&&xt(R),!0}},T=h.computed(()=>qn(i.anchor||(i.cover===!0?"center middle":"bottom start"),r.lang.rtl)),_=h.computed(()=>i.cover===!0?T.value:qn(i.self||"top start",r.lang.rtl)),y=h.computed(()=>(i.square===!0?" q-menu--square":"")+(f.value===!0?" q-menu--dark q-dark":"")),w=h.computed(()=>i.autoClose===!0?{onClick:H}:{}),x=h.computed(()=>s.value===!0&&i.persistent!==!0);h.watch(x,R=>{R===!0?(Ko(D),Po(A)):(zn(D),Ln(A))});function S(){un(()=>{let R=u.value;R&&R.contains(document.activeElement)!==!0&&(R=R.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||R.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||R.querySelector("[autofocus], [data-autofocus]")||R,R.focus({preventScroll:!0}))})}function E(R){if(m=i.noRefocus===!1?document.activeElement:null,Go(K),V(),W(),c=void 0,R!==void 0&&(i.touchPosition||i.contextMenu)){const U=Pr(R);if(U.left!==void 0){const{top:Q,left:$}=q.value.getBoundingClientRect();c={left:U.left-$,top:U.top-Q}}}a===void 0&&(a=h.watch(()=>r.screen.width+"|"+r.screen.height+"|"+i.self+"|"+i.anchor+"|"+r.lang.rtl,Y)),i.noFocus!==!0&&document.activeElement.blur(),p(()=>{Y(),i.noFocus!==!0&&S()}),v(()=>{r.platform.is.ios===!0&&(o=i.autoClose,u.value.click()),Y(),V(!0),t("show",R)},i.transitionDuration)}function I(R){d(),z(),O(!0),m!==null&&(R===void 0||R.qClickOutside!==!0)&&(((R?.type.indexOf("key")===0?m.closest('[tabindex]:not([tabindex^="-"])'):void 0)||m).focus(),m=null),v(()=>{z(!0),t("hide",R)},i.transitionDuration)}function O(R){c=void 0,a!==void 0&&(a(),a=void 0),(R===!0||s.value===!0)&&(ji(K),N(),Ln(A),zn(D)),R!==!0&&(m=null)}function W(){(q.value!==null||i.scrollTarget!==void 0)&&(C.value=ri(q.value,i.scrollTarget),B(C.value,Y))}function H(R){o!==!0?(Do(e,R),t("click",R)):o=!1}function K(R){x.value===!0&&i.noFocus!==!0&&Mo(u.value,R.target)!==!0&&S()}function D(R){i.noEscDismiss!==!0&&(t("escapeKey"),P(R))}function Y(){ta({targetEl:u.value,offset:i.offset,anchorEl:q.value,anchorOrigin:T.value,selfOrigin:_.value,absoluteOffset:c,fit:i.fit,cover:i.cover,maxHeight:i.maxHeight,maxWidth:i.maxWidth})}function F(){return h.h(h.Transition,g.value,()=>s.value===!0?h.h("div",{role:"menu",...b,ref:u,tabindex:-1,class:["q-menu q-position-engine scroll"+y.value,b.class],style:[b.style,k.value],...w.value},dt(M.default)):null)}return h.onBeforeUnmount(O),Object.assign(e,{focus:S,updatePosition:Y}),L}});let mi,xn=0;const Rt=new Array(256);for(let i=0;i<256;i++)Rt[i]=(i+256).toString(16).substring(1);const ru=(()=>{const i=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(i!==void 0){if(i.randomBytes!==void 0)return i.randomBytes;if(i.getRandomValues!==void 0)return M=>{const t=new Uint8Array(M);return i.getRandomValues(t),t}}return M=>{const t=[];for(let b=M;b>0;b--)t.push(Math.floor(Math.random()*256));return t}})(),qa=4096;function Un(){(mi===void 0||xn+16>qa)&&(xn=0,mi=ru(qa));const i=Array.prototype.slice.call(mi,xn,xn+=16);return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Rt[i[0]]+Rt[i[1]]+Rt[i[2]]+Rt[i[3]]+"-"+Rt[i[4]]+Rt[i[5]]+"-"+Rt[i[6]]+Rt[i[7]]+"-"+Rt[i[8]]+Rt[i[9]]+"-"+Rt[i[10]]+Rt[i[11]]+Rt[i[12]]+Rt[i[13]]+Rt[i[14]]+Rt[i[15]]}function nu(i){return i??null}function za(i,M){return i??(M===!0?`f_${Un()}`:null)}function Jo({getValue:i,required:M=!0}={}){if(dr.value===!0){const t=i!==void 0?h.ref(nu(i())):h.ref(null);return M===!0&&t.value===null&&h.onMounted(()=>{t.value=`f_${Un()}`}),i!==void 0&&h.watch(i,b=>{t.value=za(b,M)}),t}return i!==void 0?h.computed(()=>za(i(),M)):h.ref(`f_${Un()}`)}const Ua=/^on[A-Z]/;function iu(){const{attrs:i,vnode:M}=h.getCurrentInstance(),t={listeners:h.ref({}),attributes:h.ref({})};function b(){const m={},c={};for(const a in i)a!=="class"&&a!=="style"&&Ua.test(a)===!1&&(m[a]=i[a]);for(const a in M.props)Ua.test(a)===!0&&(c[a]=M.props[a]);t.attributes.value=m,t.listeners.value=c}return h.onBeforeUpdate(b),b(),t}const au="_q_",Yr="_q_l_",Zo="_q_pc_",$o="_q_fo_";function Et(){}function ou({validate:i,resetValidation:M,requiresQForm:t}){const b=h.inject($o,!1);if(b!==!1){const{props:m,proxy:c}=h.getCurrentInstance();Object.assign(c,{validate:i,resetValidation:M}),h.watch(()=>m.disable,a=>{a===!0?(typeof M=="function"&&M(),b.unbindComponent(c)):b.bindComponent(c)}),h.onMounted(()=>{m.disable!==!0&&b.bindComponent(c)}),h.onBeforeUnmount(()=>{m.disable!==!0&&b.unbindComponent(c)})}else t===!0&&console.error("Parent QForm not found on useFormChild()!")}const Wa=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ha=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Ya=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Sn=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,kn=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,gi={date:i=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(i),time:i=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(i),fulltime:i=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(i),timeOrFulltime:i=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(i),email:i=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(i),hexColor:i=>Wa.test(i),hexaColor:i=>Ha.test(i),hexOrHexaColor:i=>Ya.test(i),rgbColor:i=>Sn.test(i),rgbaColor:i=>kn.test(i),rgbOrRgbaColor:i=>Sn.test(i)||kn.test(i),hexOrRgbColor:i=>Wa.test(i)||Sn.test(i),hexaOrRgbaColor:i=>Ha.test(i)||kn.test(i),anyColor:i=>Ya.test(i)||Sn.test(i)||kn.test(i)},su=[!0,!1,"ondemand"],lu={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:i=>su.includes(i)}};function uu(i,M){const{props:t,proxy:b}=h.getCurrentInstance(),m=h.ref(!1),c=h.ref(null),a=h.ref(!1);ou({validate:p,resetValidation:f});let o=0,n;const e=h.computed(()=>t.rules!==void 0&&t.rules!==null&&t.rules.length!==0),r=h.computed(()=>t.disable!==!0&&e.value===!0&&M.value===!1),u=h.computed(()=>t.error===!0||m.value===!0),s=h.computed(()=>typeof t.errorMessage=="string"&&t.errorMessage.length!==0?t.errorMessage:c.value);h.watch(()=>t.modelValue,()=>{a.value=!0,r.value===!0&&t.lazyRules===!1&&d()});function l(){t.lazyRules!=="ondemand"&&r.value===!0&&a.value===!0&&d()}h.watch(()=>t.reactiveRules,v=>{v===!0?n===void 0&&(n=h.watch(()=>t.rules,l,{immediate:!0,deep:!0})):n!==void 0&&(n(),n=void 0)},{immediate:!0}),h.watch(()=>t.lazyRules,l),h.watch(i,v=>{v===!0?a.value=!0:r.value===!0&&t.lazyRules!=="ondemand"&&d()});function f(){o++,M.value=!1,a.value=!1,m.value=!1,c.value=null,d.cancel()}function p(v=t.modelValue){if(t.disable===!0||e.value===!1)return!0;const g=++o,k=M.value!==!0?()=>{a.value=!0}:()=>{},C=(N,q)=>{N===!0&&k(),m.value=N,c.value=q||null,M.value=!1},B=[];for(let N=0;N<t.rules.length;N++){const q=t.rules[N];let j;if(typeof q=="function"?j=q(v,gi):typeof q=="string"&&gi[q]!==void 0&&(j=gi[q](v)),j===!1||typeof j=="string")return C(!0,j),!1;j!==!0&&j!==void 0&&B.push(j)}return B.length===0?(C(!1),!0):(M.value=!0,Promise.all(B).then(N=>{if(N===void 0||Array.isArray(N)===!1||N.length===0)return g===o&&C(!1),!0;const q=N.find(j=>j===!1||typeof j=="string");return g===o&&C(q!==void 0,q),q===void 0},N=>(g===o&&(console.error(N),C(!0)),!1)))}const d=ia(p,0);return h.onBeforeUnmount(()=>{n?.(),d.cancel()}),Object.assign(b,{resetValidation:f,validate:p}),qt(b,"hasError",()=>u.value),{isDirtyModel:a,hasRules:e,hasError:u,errorMessage:s,validate:p,resetValidation:f}}function rn(i){return i!=null&&(""+i).length!==0}const cu={...Tt,...lu,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},ni={...cu,maxlength:[Number,String]},aa=["update:modelValue","clear","focus","blur"];function oa({requiredForAttr:i=!0,tagProp:M,changeEvent:t=!1}={}){const{props:b,proxy:m}=h.getCurrentInstance(),c=Bt(b,m.$q),a=Jo({required:i,getValue:()=>b.for});return{requiredForAttr:i,changeEvent:t,tag:M===!0?h.computed(()=>b.tag):{value:"label"},isDark:c,editable:h.computed(()=>b.disable!==!0&&b.readonly!==!0),innerLoading:h.ref(!1),focused:h.ref(!1),hasPopupOpen:!1,splitAttrs:iu(),targetUid:a,rootRef:h.ref(null),targetRef:h.ref(null),controlRef:h.ref(null)}}function sa(i){const{props:M,emit:t,slots:b,attrs:m,proxy:c}=h.getCurrentInstance(),{$q:a}=c;let o=null;i.hasValue===void 0&&(i.hasValue=h.computed(()=>rn(M.modelValue))),i.emitValue===void 0&&(i.emitValue=x=>{t("update:modelValue",x)}),i.controlEvents===void 0&&(i.controlEvents={onFocusin:P,onFocusout:V}),Object.assign(i,{clearValue:z,onControlFocusin:P,onControlFocusout:V,focus:q}),i.computedCounter===void 0&&(i.computedCounter=h.computed(()=>{if(M.counter!==!1){const x=typeof M.modelValue=="string"||typeof M.modelValue=="number"?(""+M.modelValue).length:Array.isArray(M.modelValue)===!0?M.modelValue.length:0,S=M.maxlength!==void 0?M.maxlength:M.maxValues;return x+(S!==void 0?" / "+S:"")}}));const{isDirtyModel:n,hasRules:e,hasError:r,errorMessage:u,resetValidation:s}=uu(i.focused,i.innerLoading),l=i.floatingLabel!==void 0?h.computed(()=>M.stackLabel===!0||i.focused.value===!0||i.floatingLabel.value===!0):h.computed(()=>M.stackLabel===!0||i.focused.value===!0||i.hasValue.value===!0),f=h.computed(()=>M.bottomSlots===!0||M.hint!==void 0||e.value===!0||M.counter===!0||M.error!==null),p=h.computed(()=>M.filled===!0?"filled":M.outlined===!0?"outlined":M.borderless===!0?"borderless":M.standout?"standout":"standard"),d=h.computed(()=>`q-field row no-wrap items-start q-field--${p.value}`+(i.fieldClass!==void 0?` ${i.fieldClass.value}`:"")+(M.rounded===!0?" q-field--rounded":"")+(M.square===!0?" q-field--square":"")+(l.value===!0?" q-field--float":"")+(g.value===!0?" q-field--labeled":"")+(M.dense===!0?" q-field--dense":"")+(M.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(i.isDark.value===!0?" q-field--dark":"")+(i.getControl===void 0?" q-field--auto-height":"")+(i.focused.value===!0?" q-field--focused":"")+(r.value===!0?" q-field--error":"")+(r.value===!0||i.focused.value===!0?" q-field--highlighted":"")+(M.hideBottomSpace!==!0&&f.value===!0?" q-field--with-bottom":"")+(M.disable===!0?" q-field--disabled":M.readonly===!0?" q-field--readonly":"")),v=h.computed(()=>"q-field__control relative-position row no-wrap"+(M.bgColor!==void 0?` bg-${M.bgColor}`:"")+(r.value===!0?" text-negative":typeof M.standout=="string"&&M.standout.length!==0&&i.focused.value===!0?` ${M.standout}`:M.color!==void 0?` text-${M.color}`:"")),g=h.computed(()=>M.labelSlot===!0||M.label!==void 0),k=h.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(M.labelColor!==void 0&&r.value!==!0?` text-${M.labelColor}`:"")),C=h.computed(()=>({id:i.targetUid.value,editable:i.editable.value,focused:i.focused.value,floatingLabel:l.value,modelValue:M.modelValue,emitValue:i.emitValue})),B=h.computed(()=>{const x={};return i.targetUid.value&&(x.for=i.targetUid.value),M.disable===!0&&(x["aria-disabled"]="true"),x});function N(){const x=document.activeElement;let S=i.targetRef?.value;S&&(x===null||x.id!==i.targetUid.value)&&(S.hasAttribute("tabindex")===!0||(S=S.querySelector("[tabindex]")),S!==x&&S?.focus({preventScroll:!0}))}function q(){un(N)}function j(){Ml(N);const x=document.activeElement;x!==null&&i.rootRef.value.contains(x)&&x.blur()}function P(x){o!==null&&(clearTimeout(o),o=null),i.editable.value===!0&&i.focused.value===!1&&(i.focused.value=!0,t("focus",x))}function V(x,S){o!==null&&clearTimeout(o),o=setTimeout(()=>{o=null,!(document.hasFocus()===!0&&(i.hasPopupOpen===!0||i.controlRef===void 0||i.controlRef.value===null||i.controlRef.value.contains(document.activeElement)!==!1))&&(i.focused.value===!0&&(i.focused.value=!1,t("blur",x)),S?.())})}function z(x){xt(x),a.platform.is.mobile!==!0?(i.targetRef?.value||i.rootRef.value).focus():i.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),M.type==="file"&&(i.inputRef.value.value=null),t("update:modelValue",null),i.changeEvent===!0&&t("change",null),t("clear",M.modelValue),h.nextTick(()=>{const S=n.value;s(),n.value=S})}function L(x){[13,32].includes(x.keyCode)&&z(x)}function A(){const x=[];return b.prepend!==void 0&&x.push(h.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Ot},b.prepend())),x.push(h.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},T())),r.value===!0&&M.noErrorIcon===!1&&x.push(y("error",[h.h(ct,{name:a.iconSet.field.error,color:"negative"})])),M.loading===!0||i.innerLoading.value===!0?x.push(y("inner-loading-append",b.loading!==void 0?b.loading():[h.h(Eo,{color:M.color})])):M.clearable===!0&&i.hasValue.value===!0&&i.editable.value===!0&&x.push(y("inner-clearable-append",[h.h(ct,{class:"q-field__focusable-action",name:M.clearIcon||a.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":a.lang.label.clear,onKeyup:L,onClick:z})])),b.append!==void 0&&x.push(h.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Ot},b.append())),i.getInnerAppend!==void 0&&x.push(y("inner-append",i.getInnerAppend())),i.getControlChild!==void 0&&x.push(i.getControlChild()),x}function T(){const x=[];return M.prefix!==void 0&&M.prefix!==null&&x.push(h.h("div",{class:"q-field__prefix no-pointer-events row items-center"},M.prefix)),i.getShadowControl!==void 0&&i.hasShadow.value===!0&&x.push(i.getShadowControl()),i.getControl!==void 0?x.push(i.getControl()):b.rawControl!==void 0?x.push(b.rawControl()):b.control!==void 0&&x.push(h.h("div",{ref:i.targetRef,class:"q-field__native row",tabindex:-1,...i.splitAttrs.attributes.value,"data-autofocus":M.autofocus===!0||void 0},b.control(C.value))),g.value===!0&&x.push(h.h("div",{class:k.value},dt(b.label,M.label))),M.suffix!==void 0&&M.suffix!==null&&x.push(h.h("div",{class:"q-field__suffix no-pointer-events row items-center"},M.suffix)),x.concat(dt(b.default))}function _(){let x,S;r.value===!0?u.value!==null?(x=[h.h("div",{role:"alert"},u.value)],S=`q--slot-error-${u.value}`):(x=dt(b.error),S="q--slot-error"):(M.hideHint!==!0||i.focused.value===!0)&&(M.hint!==void 0?(x=[h.h("div",M.hint)],S=`q--slot-hint-${M.hint}`):(x=dt(b.hint),S="q--slot-hint"));const E=M.counter===!0||b.counter!==void 0;if(M.hideBottomSpace===!0&&E===!1&&x===void 0)return;const I=h.h("div",{key:S,class:"q-field__messages col"},x);return h.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(M.hideBottomSpace!==!0?"animated":"stale"),onClick:Ot},[M.hideBottomSpace===!0?I:h.h(h.Transition,{name:"q-transition--field-message"},()=>I),E===!0?h.h("div",{class:"q-field__counter"},b.counter!==void 0?b.counter():i.computedCounter.value):null])}function y(x,S){return S===null?null:h.h("div",{key:x,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},S)}let w=!1;return h.onDeactivated(()=>{w=!0}),h.onActivated(()=>{w===!0&&M.autofocus===!0&&c.focus()}),M.autofocus===!0&&h.onMounted(()=>{c.focus()}),h.onBeforeUnmount(()=>{o!==null&&clearTimeout(o)}),Object.assign(c,{focus:q,blur:j}),function(){const S=i.getControl===void 0&&b.control===void 0?{...i.splitAttrs.attributes.value,"data-autofocus":M.autofocus===!0||void 0,...B.value}:B.value;return h.h(i.tag.value,{ref:i.rootRef,class:[d.value,m.class],style:m.style,...S},[b.before!==void 0?h.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Ot},b.before()):null,h.h("div",{class:"q-field__inner relative-position col self-stretch"},[h.h("div",{ref:i.controlRef,class:v.value,tabindex:-1,...i.controlEvents},A()),f.value===!0?_():null]),b.after!==void 0?h.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Ot},b.after()):null])}}const du=Ze({name:"QField",inheritAttrs:!1,props:{...ni,tag:{type:String,default:"label"}},emits:aa,setup(){return sa(oa({tagProp:!0}))}}),Yt=Ze({name:"QItem",props:{...Tt,...Zn,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(i,{slots:M,emit:t}){const{proxy:{$q:b}}=h.getCurrentInstance(),m=Bt(i,b),{hasLink:c,linkAttrs:a,linkClass:o,linkTag:n,navigateOnClick:e}=Hi(),r=h.ref(null),u=h.ref(null),s=h.computed(()=>i.clickable===!0||c.value===!0||i.tag==="label"),l=h.computed(()=>i.disable!==!0&&s.value===!0),f=h.computed(()=>"q-item q-item-type row no-wrap"+(i.dense===!0?" q-item--dense":"")+(m.value===!0?" q-item--dark":"")+(c.value===!0&&i.active===null?o.value:i.active===!0?` q-item--active${i.activeClass!==void 0?` ${i.activeClass}`:""}`:"")+(i.disable===!0?" disabled":"")+(l.value===!0?" q-item--clickable q-link cursor-pointer "+(i.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(i.focused===!0?" q-manual-focusable--focused":""):"")),p=h.computed(()=>i.insetLevel===void 0?null:{["padding"+(b.lang.rtl===!0?"Right":"Left")]:16+i.insetLevel*56+"px"});function d(k){l.value===!0&&(u.value!==null&&k.qAvoidFocus!==!0&&(k.qKeyEvent!==!0&&document.activeElement===r.value?u.value.focus():document.activeElement===u.value&&r.value.focus()),e(k))}function v(k){if(l.value===!0&&cr(k,[13,32])===!0){xt(k),k.qKeyEvent=!0;const C=new MouseEvent("click",k);C.qKeyEvent=!0,r.value.dispatchEvent(C)}t("keyup",k)}function g(){const k=Ui(M.default,[]);return l.value===!0&&k.unshift(h.h("div",{class:"q-focus-helper",tabindex:-1,ref:u})),k}return()=>{const k={ref:r,class:f.value,style:p.value,role:"listitem",onClick:d,onKeyup:v};return l.value===!0?(k.tabindex=i.tabindex||"0",Object.assign(k,a.value)):s.value===!0&&(k["aria-disabled"]="true"),h.h(n.value,k,g())}}}),Ft=Ze({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(i,{slots:M}){const t=h.computed(()=>`q-item__section column q-item__section--${i.avatar===!0||i.side===!0||i.thumbnail===!0?"side":"main"}`+(i.top===!0?" q-item__section--top justify-start":" justify-center")+(i.avatar===!0?" q-item__section--avatar":"")+(i.thumbnail===!0?" q-item__section--thumbnail":"")+(i.noWrap===!0?" q-item__section--nowrap":""));return()=>h.h("div",{class:t.value},dt(M.default))}}),nn=Ze({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(i,{slots:M}){const t=h.computed(()=>parseInt(i.lines,10)),b=h.computed(()=>"q-item__label"+(i.overline===!0?" q-item__label--overline text-overline":"")+(i.caption===!0?" q-item__label--caption text-caption":"")+(i.header===!0?" q-item__label--header":"")+(t.value===1?" ellipsis":"")),m=h.computed(()=>i.lines!==void 0&&t.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t.value}:null);return()=>h.h("div",{style:m.value,class:b.value},dt(M.default))}});function es(i,M,t){function b(){}return h.onBeforeUnmount(()=>{i.value===!0&&void 0}),{removeFromHistory:b,addToHistory(){}}}let Kr=0,vi,bi,Jr,yi=!1,Qa,Ka,Xa,mr=null;function fu(i){hu(i)&&xt(i)}function hu(i){if(i.target===document.body||i.target.classList.contains("q-layout__backdrop"))return!0;const M=ul(i),t=i.shiftKey&&!i.deltaX,b=!t&&Math.abs(i.deltaX)<=Math.abs(i.deltaY),m=t||b?i.deltaY:i.deltaX;for(let c=0;c<M.length;c++){const a=M[c];if(Pl(a,b))return b?m<0&&a.scrollTop===0?!0:m>0&&a.scrollTop+a.clientHeight===a.scrollHeight:m<0&&a.scrollLeft===0?!0:m>0&&a.scrollLeft+a.clientWidth===a.scrollWidth}return!0}function Ga(i){i.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function _n(i){yi!==!0&&(yi=!0,requestAnimationFrame(()=>{yi=!1;const{height:M}=i.target,{clientHeight:t,scrollTop:b}=document.scrollingElement;(Jr===void 0||M!==window.innerHeight)&&(Jr=t-M,document.scrollingElement.scrollTop=b),b>Jr&&(document.scrollingElement.scrollTop-=Math.ceil((b-Jr)/8))}))}function Ja(i){const M=document.body,t=window.visualViewport!==void 0;if(i==="add"){const{overflowY:b,overflowX:m}=window.getComputedStyle(M);vi=ea(window),bi=$i(window),Qa=M.style.left,Ka=M.style.top,Xa=window.location.href,M.style.left=`-${vi}px`,M.style.top=`-${bi}px`,m!=="hidden"&&(m==="scroll"||M.scrollWidth>window.innerWidth)&&M.classList.add("q-body--force-scrollbar-x"),b!=="hidden"&&(b==="scroll"||M.scrollHeight>window.innerHeight)&&M.classList.add("q-body--force-scrollbar-y"),M.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Mt.is.ios===!0&&(t===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",_n,_t.passiveCapture),window.visualViewport.addEventListener("scroll",_n,_t.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Ga,_t.passiveCapture))}Mt.is.desktop===!0&&Mt.is.mac===!0&&window[`${i}EventListener`]("wheel",fu,_t.notPassive),i==="remove"&&(Mt.is.ios===!0&&(t===!0?(window.visualViewport.removeEventListener("resize",_n,_t.passiveCapture),window.visualViewport.removeEventListener("scroll",_n,_t.passiveCapture)):window.removeEventListener("scroll",Ga,_t.passiveCapture)),M.classList.remove("q-body--prevent-scroll"),M.classList.remove("q-body--force-scrollbar-x"),M.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,M.style.left=Qa,M.style.top=Ka,window.location.href===Xa&&window.scrollTo(vi,bi),Jr=void 0)}function pu(i){let M="add";if(i===!0){if(Kr++,mr!==null){clearTimeout(mr),mr=null;return}if(Kr>1)return}else{if(Kr===0||(Kr--,Kr>0))return;if(M="remove",Mt.is.ios===!0&&Mt.is.nativeMobile===!0){mr!==null&&clearTimeout(mr),mr=setTimeout(()=>{Ja(M),mr=null},100);return}}Ja(M)}function ts(){let i;return{preventBodyScroll(M){M!==i&&(i!==void 0||M===!0)&&(i=M,pu(M))}}}let Cn=0;const mu={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},Za={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},fn=Ze({name:"QDialog",inheritAttrs:!1,props:{...on,...en,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:i=>["standard","top","bottom","left","right"].includes(i)}},emits:[...sn,"shake","click","escapeKey"],setup(i,{slots:M,emit:t,attrs:b}){const m=h.getCurrentInstance(),c=h.ref(null),a=h.ref(!1),o=h.ref(!1);let n=null,e=null,r,u;const s=h.computed(()=>i.persistent!==!0&&i.noRouteDismiss!==!0&&i.seamless!==!0),{preventBodyScroll:l}=ts(),{registerTimeout:f}=ei(),{registerTick:p,removeTick:d}=Zi(),{transitionProps:v,transitionStyle:g}=Ji(i,()=>Za[i.position][0],()=>Za[i.position][1]),k=h.computed(()=>g.value+(i.backdropFilter!==void 0?`;backdrop-filter:${i.backdropFilter};-webkit-backdrop-filter:${i.backdropFilter}`:"")),{showPortal:C,hidePortal:B,portalIsAccessible:N,renderPortal:q}=Gi(m,c,W,"dialog"),{hide:j}=ln({showing:a,hideOnRouteChange:s,handleShow:A,handleHide:T,processOnMount:!0});es(a);const P=h.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${i.maximized===!0?"maximized":"minimized"} q-dialog__inner--${i.position} ${mu[i.position]}`+(o.value===!0?" q-dialog__inner--animating":"")+(i.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(i.fullHeight===!0?" q-dialog__inner--fullheight":"")+(i.square===!0?" q-dialog__inner--square":"")),V=h.computed(()=>a.value===!0&&i.seamless!==!0),z=h.computed(()=>i.autoClose===!0?{onClick:E}:{}),L=h.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${V.value===!0?"modal":"seamless"}`,b.class]);h.watch(()=>i.maximized,H=>{a.value===!0&&S(H)}),h.watch(V,H=>{l(H),H===!0?(Go(O),Ko(w)):(ji(O),zn(w))});function A(H){e=i.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,S(i.maximized),C(),o.value=!0,i.noFocus!==!0?(document.activeElement?.blur(),p(_)):d(),f(()=>{if(m.proxy.$q.platform.is.ios===!0){if(i.seamless!==!0&&document.activeElement){const{top:K,bottom:D}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,F=window.visualViewport!==void 0?window.visualViewport.height:Y;K>0&&D>F/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-F,D>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+D-F/2))),document.activeElement.scrollIntoView()}u=!0,c.value.click(),u=!1}C(!0),o.value=!1,t("show",H)},i.transitionDuration)}function T(H){d(),x(!0),o.value=!0,B(),e!==null&&(((H?.type.indexOf("key")===0?e.closest('[tabindex]:not([tabindex^="-"])'):void 0)||e).focus(),e=null),f(()=>{B(!0),o.value=!1,t("hide",H)},i.transitionDuration)}function _(H){un(()=>{let K=c.value;if(K!==null){if(H!==void 0){const D=K.querySelector(H);if(D!==null){D.focus({preventScroll:!0});return}}K.contains(document.activeElement)!==!0&&(K=K.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||K.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||K.querySelector("[autofocus], [data-autofocus]")||K,K.focus({preventScroll:!0}))}})}function y(H){H&&typeof H.focus=="function"?H.focus({preventScroll:!0}):_(),t("shake");const K=c.value;K!==null&&(K.classList.remove("q-animate--scale"),K.classList.add("q-animate--scale"),n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,c.value!==null&&(K.classList.remove("q-animate--scale"),_())},170))}function w(){i.seamless!==!0&&(i.persistent===!0||i.noEscDismiss===!0?i.maximized!==!0&&i.noShake!==!0&&y():(t("escapeKey"),j()))}function x(H){n!==null&&(clearTimeout(n),n=null),(H===!0||a.value===!0)&&(S(!1),i.seamless!==!0&&(l(!1),ji(O),zn(w))),H!==!0&&(e=null)}function S(H){H===!0?r!==!0&&(Cn<1&&document.body.classList.add("q-body--dialog"),Cn++,r=!0):r===!0&&(Cn<2&&document.body.classList.remove("q-body--dialog"),Cn--,r=!1)}function E(H){u!==!0&&(j(H),t("click",H))}function I(H){i.persistent!==!0&&i.noBackdropDismiss!==!0?j(H):i.noShake!==!0&&y()}function O(H){i.allowFocusOutside!==!0&&N.value===!0&&Mo(c.value,H.target)!==!0&&_('[tabindex]:not([tabindex="-1"])')}Object.assign(m.proxy,{focus:_,shake:y,__updateRefocusTarget(H){e=H||null}}),h.onBeforeUnmount(x);function W(){return h.h("div",{role:"dialog","aria-modal":V.value===!0?"true":"false",...b,class:L.value},[h.h(h.Transition,{name:"q-transition--fade",appear:!0},()=>V.value===!0?h.h("div",{class:"q-dialog__backdrop fixed-full",style:k.value,"aria-hidden":"true",tabindex:-1,onClick:I}):null),h.h(h.Transition,v.value,()=>a.value===!0?h.h("div",{ref:c,class:P.value,style:g.value,tabindex:-1,...z.value},dt(M.default)):null)])}return q}});let Wn=!1;{const i=document.createElement("div");i.setAttribute("dir","rtl"),Object.assign(i.style,{width:"1px",height:"1px",overflow:"auto"});const M=document.createElement("div");Object.assign(M.style,{width:"1000px",height:"1px"}),document.body.appendChild(i),i.appendChild(M),i.scrollLeft=-1e3,Wn=i.scrollLeft>=0,i.remove()}const Ht=1e3,gu=["start","center","end","start-force","center-force","end-force"],rs=Array.prototype.filter,vu=window.getComputedStyle(document.body).overflowAnchor===void 0?$n:function(i,M){i!==null&&(i._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(i._qOverflowAnimationFrame),i._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(i===null)return;i._qOverflowAnimationFrame=void 0;const t=i.children||[];rs.call(t,m=>m.dataset&&m.dataset.qVsAnchor!==void 0).forEach(m=>{delete m.dataset.qVsAnchor});const b=t[M];b?.dataset&&(b.dataset.qVsAnchor="")}))};function jr(i,M){return i+M}function wi(i,M,t,b,m,c,a,o){const n=i===window?document.scrollingElement||document.documentElement:i,e=m===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-a-o,scrollMaxSize:0,offsetStart:-a,offsetEnd:-o};if(m===!0?(i===window?(r.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,r.scrollViewSize+=document.documentElement.clientWidth):(r.scrollStart=n.scrollLeft,r.scrollViewSize+=n.clientWidth),r.scrollMaxSize=n.scrollWidth,c===!0&&(r.scrollStart=(Wn===!0?r.scrollMaxSize-r.scrollViewSize:0)-r.scrollStart)):(i===window?(r.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,r.scrollViewSize+=document.documentElement.clientHeight):(r.scrollStart=n.scrollTop,r.scrollViewSize+=n.clientHeight),r.scrollMaxSize=n.scrollHeight),t!==null)for(let u=t.previousElementSibling;u!==null;u=u.previousElementSibling)u.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetStart+=u[e]);if(b!==null)for(let u=b.nextElementSibling;u!==null;u=u.nextElementSibling)u.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetEnd+=u[e]);if(M!==i){const u=n.getBoundingClientRect(),s=M.getBoundingClientRect();m===!0?(r.offsetStart+=s.left-u.left,r.offsetEnd-=s.width):(r.offsetStart+=s.top-u.top,r.offsetEnd-=s.height),i!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function $a(i,M,t,b){M==="end"&&(M=(i===window?document.body:i)[t===!0?"scrollWidth":"scrollHeight"]),i===window?t===!0?(b===!0&&(M=(Wn===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-M),window.scrollTo(M,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,M):t===!0?(b===!0&&(M=(Wn===!0?i.scrollWidth-i.offsetWidth:0)-M),i.scrollLeft=M):i.scrollTop=M}function Xr(i,M,t,b){if(t>=b)return 0;const m=M.length,c=Math.floor(t/Ht),a=Math.floor((b-1)/Ht)+1;let o=i.slice(c,a).reduce(jr,0);return t%Ht!==0&&(o-=M.slice(c*Ht,t).reduce(jr,0)),b%Ht!==0&&b!==m&&(o-=M.slice(b,a*Ht).reduce(jr,0)),o}const ns={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},is=Object.keys(ns),Ni={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...ns};function as({virtualScrollLength:i,getVirtualScrollTarget:M,getVirtualScrollEl:t,virtualScrollItemSizeComputed:b}){const m=h.getCurrentInstance(),{props:c,emit:a,proxy:o}=m,{$q:n}=o;let e,r,u,s=[],l;const f=h.ref(0),p=h.ref(0),d=h.ref({}),v=h.ref(null),g=h.ref(null),k=h.ref(null),C=h.ref({from:0,to:0}),B=h.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);b===void 0&&(b=h.computed(()=>c.virtualScrollItemSize));const N=h.computed(()=>b.value+";"+c.virtualScrollHorizontal),q=h.computed(()=>N.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);h.watch(q,()=>{y()}),h.watch(N,j);function j(){_(r,!0)}function P(I){_(I===void 0?r:I)}function V(I,O){const W=M();if(W==null||W.nodeType===8)return;const H=wi(W,t(),v.value,g.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);u!==H.scrollViewSize&&y(H.scrollViewSize),L(W,H,Math.min(i.value-1,Math.max(0,parseInt(I,10)||0)),0,gu.indexOf(O)!==-1?O:r!==-1&&I>r?"end":"start")}function z(){const I=M();if(I==null||I.nodeType===8)return;const O=wi(I,t(),v.value,g.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),W=i.value-1,H=O.scrollMaxSize-O.offsetStart-O.offsetEnd-p.value;if(e===O.scrollStart)return;if(O.scrollMaxSize<=0){L(I,O,0,0);return}u!==O.scrollViewSize&&y(O.scrollViewSize),A(C.value.from);const K=Math.floor(O.scrollMaxSize-Math.max(O.scrollViewSize,O.offsetEnd)-Math.min(l[W],O.scrollViewSize/2));if(K>0&&Math.ceil(O.scrollStart)>=K){L(I,O,W,O.scrollMaxSize-O.offsetEnd-s.reduce(jr,0));return}let D=0,Y=O.scrollStart-O.offsetStart,F=Y;if(Y<=H&&Y+O.scrollViewSize>=f.value)Y-=f.value,D=C.value.from,F=Y;else for(let R=0;Y>=s[R]&&D<W;R++)Y-=s[R],D+=Ht;for(;Y>0&&D<W;)Y-=l[D],Y>-O.scrollViewSize?(D++,F=Y):F=l[D]+Y;L(I,O,D,F)}function L(I,O,W,H,K){const D=typeof K=="string"&&K.indexOf("-force")!==-1,Y=D===!0?K.replace("-force",""):K,F=Y!==void 0?Y:"start";let R=Math.max(0,W-d.value[F]),U=R+d.value.total;U>i.value&&(U=i.value,R=Math.max(0,U-d.value.total)),e=O.scrollStart;const Q=R!==C.value.from||U!==C.value.to;if(Q===!1&&Y===void 0){x(W);return}const{activeElement:$}=document,J=k.value;Q===!0&&J!==null&&J!==$&&J.contains($)===!0&&(J.addEventListener("focusout",T),setTimeout(()=>{J?.removeEventListener("focusout",T)})),vu(J,W-R);const te=Y!==void 0?l.slice(R,W).reduce(jr,0):0;if(Q===!0){const ce=U>=C.value.from&&R<=C.value.to?C.value.to:U;C.value={from:R,to:ce},f.value=Xr(s,l,0,R),p.value=Xr(s,l,U,i.value),requestAnimationFrame(()=>{C.value.to!==U&&e===O.scrollStart&&(C.value={from:C.value.from,to:U},p.value=Xr(s,l,U,i.value))})}requestAnimationFrame(()=>{if(e!==O.scrollStart)return;Q===!0&&A(R);const ce=l.slice(R,W).reduce(jr,0),ue=ce+O.offsetStart+f.value,Z=ue+l[W];let oe=ue+H;if(Y!==void 0){const se=ce-te,he=O.scrollStart+se;oe=D!==!0&&he<ue&&Z<he+O.scrollViewSize?he:Y==="end"?Z-O.scrollViewSize:ue-(Y==="start"?0:Math.round((O.scrollViewSize-l[W])/2))}e=oe,$a(I,oe,c.virtualScrollHorizontal,n.lang.rtl),x(W)})}function A(I){const O=k.value;if(O){const W=rs.call(O.children,R=>R.classList&&R.classList.contains("q-virtual-scroll--skip")===!1),H=W.length,K=c.virtualScrollHorizontal===!0?R=>R.getBoundingClientRect().width:R=>R.offsetHeight;let D=I,Y,F;for(let R=0;R<H;){for(Y=K(W[R]),R++;R<H&&W[R].classList.contains("q-virtual-scroll--with-prev")===!0;)Y+=K(W[R]),R++;F=Y-l[D],F!==0&&(l[D]+=F,s[Math.floor(D/Ht)]+=F),D++}}}function T(){k.value?.focus()}function _(I,O){const W=1*b.value;(O===!0||Array.isArray(l)===!1)&&(l=[]);const H=l.length;l.length=i.value;for(let D=i.value-1;D>=H;D--)l[D]=W;const K=Math.floor((i.value-1)/Ht);s=[];for(let D=0;D<=K;D++){let Y=0;const F=Math.min((D+1)*Ht,i.value);for(let R=D*Ht;R<F;R++)Y+=l[R];s.push(Y)}r=-1,e=void 0,f.value=Xr(s,l,0,C.value.from),p.value=Xr(s,l,C.value.to,i.value),I>=0?(A(C.value.from),h.nextTick(()=>{V(I)})):S()}function y(I){if(I===void 0&&typeof window<"u"){const Y=M();Y!=null&&Y.nodeType!==8&&(I=wi(Y,t(),v.value,g.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}u=I;const O=parseFloat(c.virtualScrollSliceRatioBefore)||0,W=parseFloat(c.virtualScrollSliceRatioAfter)||0,H=1+O+W,K=I===void 0||I<=0?1:Math.ceil(I/b.value),D=Math.max(1,K,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/H));d.value={total:Math.ceil(D*H),start:Math.ceil(D*O),center:Math.ceil(D*(.5+O)),end:Math.ceil(D*(1+O)),view:K}}function w(I,O){const W=c.virtualScrollHorizontal===!0?"width":"height",H={["--q-virtual-scroll-item-"+W]:b.value+"px"};return[I==="tbody"?h.h(I,{class:"q-virtual-scroll__padding",key:"before",ref:v},[h.h("tr",[h.h("td",{style:{[W]:`${f.value}px`,...H},colspan:B.value})])]):h.h(I,{class:"q-virtual-scroll__padding",key:"before",ref:v,style:{[W]:`${f.value}px`,...H}}),h.h(I,{class:"q-virtual-scroll__content",key:"content",ref:k,tabindex:-1},O.flat()),I==="tbody"?h.h(I,{class:"q-virtual-scroll__padding",key:"after",ref:g},[h.h("tr",[h.h("td",{style:{[W]:`${p.value}px`,...H},colspan:B.value})])]):h.h(I,{class:"q-virtual-scroll__padding",key:"after",ref:g,style:{[W]:`${p.value}px`,...H}})]}function x(I){r!==I&&(c.onVirtualScroll!==void 0&&a("virtualScroll",{index:I,from:C.value.from,to:C.value.to-1,direction:I<r?"decrease":"increase",ref:o}),r=I)}y();const S=ia(z,n.platform.is.ios===!0?120:35);h.onBeforeMount(()=>{y()});let E=!1;return h.onDeactivated(()=>{E=!0}),h.onActivated(()=>{if(E!==!0)return;const I=M();e!==void 0&&I!==void 0&&I!==null&&I.nodeType!==8?$a(I,e,c.virtualScrollHorizontal,n.lang.rtl):V(r)}),h.onBeforeUnmount(()=>{S.cancel()}),Object.assign(o,{scrollTo:V,reset:j,refresh:P}),{virtualScrollSliceRange:C,virtualScrollSliceSizeComputed:d,setVirtualScrollSize:y,onVirtualScrollEvt:S,localResetVirtualScroll:_,padVirtualScroll:w,scrollTo:V,reset:j,refresh:P}}const bu=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,yu=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,wu=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,xu=/[a-z0-9_ -]$/i;function os(i){return function(t){if(t.type==="compositionend"||t.type==="change"){if(t.target.qComposing!==!0)return;t.target.qComposing=!1,i(t)}else t.type==="compositionupdate"&&t.target.qComposing!==!0&&typeof t.data=="string"&&(Mt.is.firefox===!0?xu.test(t.data)===!1:bu.test(t.data)===!0||yu.test(t.data)===!0||wu.test(t.data)===!0)===!0&&(t.target.qComposing=!0)}}function sr(i,M){if(i===M)return!0;if(i!==null&&M!==null&&typeof i=="object"&&typeof M=="object"){if(i.constructor!==M.constructor)return!1;let t,b;if(i.constructor===Array){if(t=i.length,t!==M.length)return!1;for(b=t;b--!==0;)if(sr(i[b],M[b])!==!0)return!1;return!0}if(i.constructor===Map){if(i.size!==M.size)return!1;let c=i.entries();for(b=c.next();b.done!==!0;){if(M.has(b.value[0])!==!0)return!1;b=c.next()}for(c=i.entries(),b=c.next();b.done!==!0;){if(sr(b.value[1],M.get(b.value[0]))!==!0)return!1;b=c.next()}return!0}if(i.constructor===Set){if(i.size!==M.size)return!1;const c=i.entries();for(b=c.next();b.done!==!0;){if(M.has(b.value[0])!==!0)return!1;b=c.next()}return!0}if(i.buffer!=null&&i.buffer.constructor===ArrayBuffer){if(t=i.length,t!==M.length)return!1;for(b=t;b--!==0;)if(i[b]!==M[b])return!1;return!0}if(i.constructor===RegExp)return i.source===M.source&&i.flags===M.flags;if(i.valueOf!==Object.prototype.valueOf)return i.valueOf()===M.valueOf();if(i.toString!==Object.prototype.toString)return i.toString()===M.toString();const m=Object.keys(i).filter(c=>i[c]!==void 0);if(t=m.length,t!==Object.keys(M).filter(c=>M[c]!==void 0).length)return!1;for(b=t;b--!==0;){const c=m[b];if(sr(i[c],M[c])!==!0)return!1}return!0}return i!==i&&M!==M}function ss(i){return i!==null&&typeof i=="object"&&Array.isArray(i)!==!0}function Hn(i){return Object.prototype.toString.call(i)==="[object Date]"}function Pi(i){return typeof i=="number"&&isFinite(i)}const eo=i=>["add","add-unique","toggle"].includes(i),Su=".*+?^${}()|[]\\",ku=Object.keys(ni);function xi(i,M){if(typeof i=="function")return i;const t=i!==void 0?i:M;return b=>b!==null&&typeof b=="object"&&t in b?b[t]:b}const ii=Ze({name:"QSelect",inheritAttrs:!1,props:{...Ni,...cn,...ni,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:eo},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:i=>["default","menu","dialog"].includes(i),default:"default"},virtualScrollItemSize:Ni.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...aa,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(i,{slots:M,emit:t}){const{proxy:b}=h.getCurrentInstance(),{$q:m}=b,c=h.ref(!1),a=h.ref(!1),o=h.ref(-1),n=h.ref(""),e=h.ref(!1),r=h.ref(!1);let u=null,s=null,l,f,p,d=null,v,g,k,C;const B=h.ref(null),N=h.ref(null),q=h.ref(null),j=h.ref(null),P=h.ref(null),V=qo(i),z=os(ge),L=h.computed(()=>Array.isArray(i.options)?i.options.length:0),A=h.computed(()=>i.virtualScrollItemSize===void 0?i.optionsDense===!0?24:48:i.virtualScrollItemSize),{virtualScrollSliceRange:T,virtualScrollSliceSizeComputed:_,localResetVirtualScroll:y,padVirtualScroll:w,onVirtualScrollEvt:x,scrollTo:S,setVirtualScrollSize:E}=as({virtualScrollLength:L,getVirtualScrollTarget:rt,getVirtualScrollEl:Ye,virtualScrollItemSizeComputed:A}),I=oa(),O=h.computed(()=>{const de=i.mapOptions===!0&&i.multiple!==!0,Le=i.modelValue!==void 0&&(i.modelValue!==null||de===!0)?i.multiple===!0&&Array.isArray(i.modelValue)?i.modelValue:[i.modelValue]:[];if(i.mapOptions===!0&&Array.isArray(i.options)===!0){const ee=i.mapOptions===!0&&l!==void 0?l:[],pe=Le.map(xe=>ke(xe,ee));return i.modelValue===null&&de===!0?pe.filter(xe=>xe!==null):pe}return Le}),W=h.computed(()=>{const de={};return ku.forEach(Le=>{const ee=i[Le];ee!==void 0&&(de[Le]=ee)}),de}),H=h.computed(()=>i.optionsDark===null?I.isDark.value:i.optionsDark),K=h.computed(()=>rn(O.value)),D=h.computed(()=>{let de="q-field__input q-placeholder col";return i.hideSelected===!0||O.value.length===0?[de,i.inputClass]:(de+=" q-field__input--padding",i.inputClass===void 0?de:[de,i.inputClass])}),Y=h.computed(()=>(i.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(i.popupContentClass?" "+i.popupContentClass:"")),F=h.computed(()=>L.value===0),R=h.computed(()=>O.value.map(de=>re.value(de)).join(", ")),U=h.computed(()=>i.displayValue!==void 0?i.displayValue:R.value),Q=h.computed(()=>i.optionsHtml===!0?()=>!0:de=>de?.html===!0),$=h.computed(()=>i.displayValueHtml===!0||i.displayValue===void 0&&(i.optionsHtml===!0||O.value.some(Q.value))),J=h.computed(()=>I.focused.value===!0?i.tabindex:-1),te=h.computed(()=>{const de={tabindex:i.tabindex,role:"combobox","aria-label":i.label,"aria-readonly":i.readonly===!0?"true":"false","aria-autocomplete":i.useInput===!0?"list":"none","aria-expanded":c.value===!0?"true":"false","aria-controls":`${I.targetUid.value}_lb`};return o.value>=0&&(de["aria-activedescendant"]=`${I.targetUid.value}_${o.value}`),de}),ce=h.computed(()=>({id:`${I.targetUid.value}_lb`,role:"listbox","aria-multiselectable":i.multiple===!0?"true":"false"})),ue=h.computed(()=>O.value.map((de,Le)=>({index:Le,opt:de,html:Q.value(de),selected:!0,removeAtIndex:Re,toggleOption:ze,tabindex:J.value}))),Z=h.computed(()=>{if(L.value===0)return[];const{from:de,to:Le}=T.value;return i.options.slice(de,Le).map((ee,pe)=>{const xe=ae.value(ee)===!0,_e=Se(ee)===!0,qe=de+pe,Ee={clickable:!0,active:_e,activeClass:he.value,manualFocus:!0,focused:!1,disable:xe,tabindex:-1,dense:i.optionsDense,dark:H.value,role:"option","aria-selected":_e===!0?"true":"false",id:`${I.targetUid.value}_${qe}`,onClick:()=>{ze(ee)}};return xe!==!0&&(o.value===qe&&(Ee.focused=!0),m.platform.is.desktop===!0&&(Ee.onMousemove=()=>{c.value===!0&&me(qe)})),{index:qe,opt:ee,html:Q.value(ee),label:re.value(ee),selected:Ee.active,focused:Ee.focused,toggleOption:ze,setOptionIndex:me,itemProps:Ee}})}),oe=h.computed(()=>i.dropdownIcon!==void 0?i.dropdownIcon:m.iconSet.arrow.dropdown),se=h.computed(()=>i.optionsCover===!1&&i.outlined!==!0&&i.standout!==!0&&i.borderless!==!0&&i.rounded!==!0),he=h.computed(()=>i.optionsSelectedClass!==void 0?i.optionsSelectedClass:i.color!==void 0?`text-${i.color}`:""),X=h.computed(()=>xi(i.optionValue,"value")),re=h.computed(()=>xi(i.optionLabel,"label")),ae=h.computed(()=>xi(i.optionDisable,"disable")),le=h.computed(()=>O.value.map(X.value)),ye=h.computed(()=>{const de={onInput:ge,onChange:z,onKeydown:Ge,onKeyup:Ae,onKeypress:He,onFocus:Me,onClick(Le){f===!0&&Pt(Le)}};return de.onCompositionstart=de.onCompositionupdate=de.onCompositionend=z,de});h.watch(O,de=>{l=de,i.useInput===!0&&i.fillInput===!0&&i.multiple!==!0&&I.innerLoading.value!==!0&&(a.value!==!0&&c.value!==!0||K.value!==!0)&&(p!==!0&&Ue(),(a.value===!0||c.value===!0)&&Pe(""))},{immediate:!0}),h.watch(()=>i.fillInput,Ue),h.watch(c,$e),h.watch(L,et);function Be(de){return i.emitValue===!0?X.value(de):de}function Te(de){if(de!==-1&&de<O.value.length)if(i.multiple===!0){const Le=i.modelValue.slice();t("remove",{index:de,value:Le.splice(de,1)[0]}),t("update:modelValue",Le)}else t("update:modelValue",null)}function Re(de){Te(de),I.focus()}function We(de,Le){const ee=Be(de);if(i.multiple!==!0){i.fillInput===!0&&De(re.value(de),!0,!0),t("update:modelValue",ee);return}if(O.value.length===0){t("add",{index:0,value:ee}),t("update:modelValue",i.multiple===!0?[ee]:ee);return}if(Le===!0&&Se(de)===!0||i.maxValues!==void 0&&i.modelValue.length>=i.maxValues)return;const pe=i.modelValue.slice();t("add",{index:pe.length,value:ee}),pe.push(ee),t("update:modelValue",pe)}function ze(de,Le){if(I.editable.value!==!0||de===void 0||ae.value(de)===!0)return;const ee=X.value(de);if(i.multiple!==!0){Le!==!0&&(De(i.fillInput===!0?re.value(de):"",!0,!0),je()),N.value?.focus(),(O.value.length===0||sr(X.value(O.value[0]),ee)!==!0)&&t("update:modelValue",i.emitValue===!0?ee:de);return}if((f!==!0||e.value===!0)&&I.focus(),Me(),O.value.length===0){const _e=i.emitValue===!0?ee:de;t("add",{index:0,value:_e}),t("update:modelValue",i.multiple===!0?[_e]:_e);return}const pe=i.modelValue.slice(),xe=le.value.findIndex(_e=>sr(_e,ee));if(xe!==-1)t("remove",{index:xe,value:pe.splice(xe,1)[0]});else{if(i.maxValues!==void 0&&pe.length>=i.maxValues)return;const _e=i.emitValue===!0?ee:de;t("add",{index:pe.length,value:_e}),pe.push(_e)}t("update:modelValue",pe)}function me(de){if(m.platform.is.desktop!==!0)return;const Le=de!==-1&&de<L.value?de:-1;o.value!==Le&&(o.value=Le)}function be(de=1,Le){if(c.value===!0){let ee=o.value;do ee=Na(ee+de,-1,L.value-1);while(ee!==-1&&ee!==o.value&&ae.value(i.options[ee])===!0);o.value!==ee&&(me(ee),S(ee),Le!==!0&&i.useInput===!0&&i.fillInput===!0&&Ce(ee>=0?re.value(i.options[ee]):v,!0))}}function ke(de,Le){const ee=pe=>sr(X.value(pe),de);return i.options.find(ee)||Le.find(ee)||de}function Se(de){const Le=X.value(de);return le.value.find(ee=>sr(ee,Le))!==void 0}function Me(de){i.useInput===!0&&N.value!==null&&(de===void 0||N.value===de.target&&de.target.value===R.value)&&N.value.select()}function Ve(de){cr(de,27)===!0&&c.value===!0&&(Pt(de),je(),Ue()),t("keyup",de)}function Ae(de){const{value:Le}=de.target;if(de.keyCode!==void 0){Ve(de);return}if(de.target.value="",u!==null&&(clearTimeout(u),u=null),s!==null&&(clearTimeout(s),s=null),Ue(),typeof Le=="string"&&Le.length!==0){const ee=Le.toLocaleLowerCase(),pe=_e=>{const qe=i.options.find(Ee=>String(_e.value(Ee)).toLocaleLowerCase()===ee);return qe===void 0?!1:(O.value.indexOf(qe)===-1?ze(qe):je(),!0)},xe=_e=>{pe(X)!==!0&&_e!==!0&&pe(re)!==!0&&Pe(Le,!0,()=>xe(!0))};xe()}else I.clearValue(de)}function He(de){t("keypress",de)}function Ge(de){if(t("keydown",de),Ki(de)===!0)return;const Le=n.value.length!==0&&(i.newValueMode!==void 0||i.onNewValue!==void 0),ee=de.shiftKey!==!0&&i.disableTabSelection!==!0&&i.multiple!==!0&&(o.value!==-1||Le===!0);if(de.keyCode===27){Ot(de);return}if(de.keyCode===9&&ee===!1){we();return}if(de.target===void 0||de.target.id!==I.targetUid.value||I.editable.value!==!0)return;if(de.keyCode===40&&I.innerLoading.value!==!0&&c.value===!1){xt(de),Ie();return}if(de.keyCode===8&&(i.useChips===!0||i.clearable===!0)&&i.hideSelected!==!0&&n.value.length===0){i.multiple===!0&&Array.isArray(i.modelValue)===!0?Te(i.modelValue.length-1):i.multiple!==!0&&i.modelValue!==null&&t("update:modelValue",null);return}(de.keyCode===35||de.keyCode===36)&&(typeof n.value!="string"||n.value.length===0)&&(xt(de),o.value=-1,be(de.keyCode===36?1:-1,i.multiple)),(de.keyCode===33||de.keyCode===34)&&_.value!==void 0&&(xt(de),o.value=Math.max(-1,Math.min(L.value,o.value+(de.keyCode===33?-1:1)*_.value.view)),be(de.keyCode===33?1:-1,i.multiple)),(de.keyCode===38||de.keyCode===40)&&(xt(de),be(de.keyCode===38?-1:1,i.multiple));const pe=L.value;if((k===void 0||C<Date.now())&&(k=""),pe>0&&i.useInput!==!0&&de.key!==void 0&&de.key.length===1&&de.altKey===!1&&de.ctrlKey===!1&&de.metaKey===!1&&(de.keyCode!==32||k.length!==0)){c.value!==!0&&Ie(de);const xe=de.key.toLocaleLowerCase(),_e=k.length===1&&k[0]===xe;C=Date.now()+1500,_e===!1&&(xt(de),k+=xe);const qe=new RegExp("^"+k.split("").map(Ne=>Su.indexOf(Ne)!==-1?"\\"+Ne:Ne).join(".*"),"i");let Ee=o.value;if(_e===!0||Ee<0||qe.test(re.value(i.options[Ee]))!==!0)do Ee=Na(Ee+1,-1,pe-1);while(Ee!==o.value&&(ae.value(i.options[Ee])===!0||qe.test(re.value(i.options[Ee]))!==!0));o.value!==Ee&&h.nextTick(()=>{me(Ee),S(Ee),Ee>=0&&i.useInput===!0&&i.fillInput===!0&&Ce(re.value(i.options[Ee]),!0)});return}if(!(de.keyCode!==13&&(de.keyCode!==32||i.useInput===!0||k!=="")&&(de.keyCode!==9||ee===!1))){if(de.keyCode!==9&&xt(de),o.value!==-1&&o.value<pe){ze(i.options[o.value]);return}if(Le===!0){const xe=(_e,qe)=>{if(qe){if(eo(qe)!==!0)return}else qe=i.newValueMode;if(De("",i.multiple!==!0,!0),_e==null)return;(qe==="toggle"?ze:We)(_e,qe==="add-unique"),i.multiple!==!0&&(N.value?.focus(),je())};if(i.onNewValue!==void 0?t("newValue",n.value,xe):xe(n.value),i.multiple!==!0)return}c.value===!0?we():I.innerLoading.value!==!0&&Ie()}}function Ye(){return f===!0?P.value:q.value!==null&&q.value.contentEl!==null?q.value.contentEl:void 0}function rt(){return Ye()}function tt(){return i.hideSelected===!0?[]:M["selected-item"]!==void 0?ue.value.map(de=>M["selected-item"](de)).slice():M.selected!==void 0?[].concat(M.selected()):i.useChips===!0?ue.value.map((de,Le)=>h.h(Dn,{key:"option-"+Le,removable:I.editable.value===!0&&ae.value(de.opt)!==!0,dense:!0,textColor:i.color,tabindex:J.value,onRemove(){de.removeAtIndex(Le)}},()=>h.h("span",{class:"ellipsis",[de.html===!0?"innerHTML":"textContent"]:re.value(de.opt)}))):[h.h("span",{class:"ellipsis",[$.value===!0?"innerHTML":"textContent"]:U.value})]}function Qe(){if(F.value===!0)return M["no-option"]!==void 0?M["no-option"]({inputValue:n.value}):void 0;const de=M.option!==void 0?M.option:ee=>h.h(Yt,{key:ee.index,...ee.itemProps},()=>h.h(Ft,()=>h.h(nn,()=>h.h("span",{[ee.html===!0?"innerHTML":"textContent"]:ee.label}))));let Le=w("div",Z.value.map(de));return M["before-options"]!==void 0&&(Le=M["before-options"]().concat(Le)),Dt(M["after-options"],Le)}function st(de,Le){const ee=Le===!0?{...te.value,...I.splitAttrs.attributes.value}:void 0,pe={ref:Le===!0?N:void 0,key:"i_t",class:D.value,style:i.inputStyle,value:n.value!==void 0?n.value:"",type:"search",...ee,id:Le===!0?I.targetUid.value:void 0,maxlength:i.maxlength,autocomplete:i.autocomplete,"data-autofocus":de===!0||i.autofocus===!0||void 0,disabled:i.disable===!0,readonly:i.readonly===!0,...ye.value};return de!==!0&&f===!0&&(Array.isArray(pe.class)===!0?pe.class=[...pe.class,"no-pointer-events"]:pe.class+=" no-pointer-events"),h.h("input",pe)}function ge(de){u!==null&&(clearTimeout(u),u=null),s!==null&&(clearTimeout(s),s=null),!(de&&de.target&&de.target.qComposing===!0)&&(Ce(de.target.value||""),p=!0,v=n.value,I.focused.value!==!0&&(f!==!0||e.value===!0)&&I.focus(),i.onFilter!==void 0&&(u=setTimeout(()=>{u=null,Pe(n.value)},i.inputDebounce)))}function Ce(de,Le){n.value!==de&&(n.value=de,Le===!0||i.inputDebounce===0||i.inputDebounce==="0"?t("inputValue",de):s=setTimeout(()=>{s=null,t("inputValue",de)},i.inputDebounce))}function De(de,Le,ee){p=ee!==!0,i.useInput===!0&&(Ce(de,!0),(Le===!0||ee!==!0)&&(v=de),Le!==!0&&Pe(de))}function Pe(de,Le,ee){if(i.onFilter===void 0||Le!==!0&&I.focused.value!==!0)return;I.innerLoading.value===!0?t("filterAbort"):(I.innerLoading.value=!0,r.value=!0),de!==""&&i.multiple!==!0&&O.value.length!==0&&p!==!0&&de===re.value(O.value[0])&&(de="");const pe=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);d!==null&&clearTimeout(d),d=pe,t("filter",de,(xe,_e)=>{(Le===!0||I.focused.value===!0)&&d===pe&&(clearTimeout(d),typeof xe=="function"&&xe(),r.value=!1,h.nextTick(()=>{I.innerLoading.value=!1,I.editable.value===!0&&(Le===!0?c.value===!0&&je():c.value===!0?$e(!0):c.value=!0),typeof _e=="function"&&h.nextTick(()=>{_e(b)}),typeof ee=="function"&&h.nextTick(()=>{ee(b)})}))},()=>{I.focused.value===!0&&d===pe&&(clearTimeout(d),I.innerLoading.value=!1,r.value=!1),c.value===!0&&(c.value=!1)})}function Oe(){return h.h(dn,{ref:q,class:Y.value,style:i.popupContentStyle,modelValue:c.value,fit:i.menuShrink!==!0,cover:i.optionsCover===!0&&F.value!==!0&&i.useInput!==!0,anchor:i.menuAnchor,self:i.menuSelf,offset:i.menuOffset,dark:H.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:i.popupNoRouteDismiss,square:se.value,transitionShow:i.transitionShow,transitionHide:i.transitionHide,transitionDuration:i.transitionDuration,separateClosePopup:!0,...ce.value,onScrollPassive:x,onBeforeShow:yt,onBeforeHide:Ke,onShow:Xe},Qe)}function Ke(de){pt(de),we()}function Xe(){E()}function ne(de){Pt(de),N.value?.focus(),e.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function G(de){Pt(de),h.nextTick(()=>{e.value=!1})}function ie(){const de=[h.h(du,{class:`col-auto ${I.fieldClass.value}`,...W.value,for:I.targetUid.value,dark:H.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:n.value.length!==0,...I.splitAttrs.listeners.value,onFocus:ne,onBlur:G},{...M,rawControl:()=>I.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&de.push(h.h("div",{ref:P,class:Y.value+" scroll",style:i.popupContentStyle,...ce.value,onClick:Ot,onScrollPassive:x},Qe())),h.h(fn,{ref:j,modelValue:a.value,position:i.useInput===!0?"top":void 0,transitionShow:g,transitionHide:i.transitionHide,transitionDuration:i.transitionDuration,noRouteDismiss:i.popupNoRouteDismiss,onBeforeShow:yt,onBeforeHide:fe,onHide:ve,onShow:Fe},()=>h.h("div",{class:"q-select__dialog"+(H.value===!0?" q-select__dialog--dark q-dark":"")+(e.value===!0?" q-select__dialog--focused":"")},de))}function fe(de){pt(de),j.value!==null&&j.value.__updateRefocusTarget(I.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),I.focused.value=!1}function ve(de){je(),I.focused.value===!1&&t("blur",de),Ue()}function Fe(){const de=document.activeElement;(de===null||de.id!==I.targetUid.value)&&N.value!==null&&N.value!==de&&N.value.focus(),E()}function we(){a.value!==!0&&(o.value=-1,c.value===!0&&(c.value=!1),I.focused.value===!1&&(d!==null&&(clearTimeout(d),d=null),I.innerLoading.value===!0&&(t("filterAbort"),I.innerLoading.value=!1,r.value=!1)))}function Ie(de){I.editable.value===!0&&(f===!0?(I.onControlFocusin(de),a.value=!0,h.nextTick(()=>{I.focus()})):I.focus(),i.onFilter!==void 0?Pe(n.value):(F.value!==!0||M["no-option"]!==void 0)&&(c.value=!0))}function je(){a.value=!1,we()}function Ue(){i.useInput===!0&&De(i.multiple!==!0&&i.fillInput===!0&&O.value.length!==0&&re.value(O.value[0])||"",!0,!0)}function $e(de){let Le=-1;if(de===!0){if(O.value.length!==0){const ee=X.value(O.value[0]);Le=i.options.findIndex(pe=>sr(X.value(pe),ee))}y(Le)}me(Le)}function et(de,Le){c.value===!0&&I.innerLoading.value===!1&&(y(-1,!0),h.nextTick(()=>{c.value===!0&&I.innerLoading.value===!1&&(de>Le?y():$e(!0))}))}function nt(){a.value===!1&&q.value!==null&&q.value.updatePosition()}function yt(de){de!==void 0&&Pt(de),t("popupShow",de),I.hasPopupOpen=!0,I.onControlFocusin(de)}function pt(de){de!==void 0&&Pt(de),t("popupHide",de),I.hasPopupOpen=!1,I.onControlFocusout(de)}function kt(){f=m.platform.is.mobile!==!0&&i.behavior!=="dialog"?!1:i.behavior!=="menu"&&(i.useInput===!0?M["no-option"]!==void 0||i.onFilter!==void 0||F.value===!1:!0),g=m.platform.is.ios===!0&&f===!0&&i.useInput===!0?"fade":i.transitionShow}return h.onBeforeUpdate(kt),h.onUpdated(nt),kt(),h.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),s!==null&&clearTimeout(s)}),Object.assign(b,{showPopup:Ie,hidePopup:je,removeAtIndex:Te,add:We,toggleOption:ze,getOptionIndex:()=>o.value,setOptionIndex:me,moveOptionSelection:be,filter:Pe,updateMenuPosition:nt,updateInputValue:De,isOptionSelected:Se,getEmittingOptionValue:Be,isOptionDisabled:(...de)=>ae.value.apply(null,de)===!0,getOptionValue:(...de)=>X.value.apply(null,de),getOptionLabel:(...de)=>re.value.apply(null,de)}),Object.assign(I,{innerValue:O,fieldClass:h.computed(()=>`q-select q-field--auto-height q-select--with${i.useInput!==!0?"out":""}-input q-select--with${i.useChips!==!0?"out":""}-chips q-select--${i.multiple===!0?"multiple":"single"}`),inputRef:B,targetRef:N,hasValue:K,showPopup:Ie,floatingLabel:h.computed(()=>i.hideSelected!==!0&&K.value===!0||typeof n.value=="number"||n.value.length!==0||rn(i.displayValue)),getControlChild:()=>{if(I.editable.value!==!1&&(a.value===!0||F.value!==!0||M["no-option"]!==void 0))return f===!0?ie():Oe();I.hasPopupOpen===!0&&(I.hasPopupOpen=!1)},controlEvents:{onFocusin(de){I.onControlFocusin(de)},onFocusout(de){I.onControlFocusout(de,()=>{Ue(),we()})},onClick(de){if(Ot(de),f!==!0&&c.value===!0){we(),N.value?.focus();return}Ie(de)}},getControl:de=>{const Le=tt(),ee=de===!0||a.value!==!0||f!==!0;if(i.useInput===!0)Le.push(st(de,ee));else if(I.editable.value===!0){const xe=ee===!0?te.value:void 0;Le.push(h.h("input",{ref:ee===!0?N:void 0,key:"d_t",class:"q-select__focus-target",id:ee===!0?I.targetUid.value:void 0,value:U.value,readonly:!0,"data-autofocus":de===!0||i.autofocus===!0||void 0,...xe,onKeydown:Ge,onKeyup:Ve,onKeypress:He})),ee===!0&&typeof i.autocomplete=="string"&&i.autocomplete.length!==0&&Le.push(h.h("input",{class:"q-select__autocomplete-input",autocomplete:i.autocomplete,tabindex:-1,onKeyup:Ae}))}if(V.value!==void 0&&i.disable!==!0&&le.value.length!==0){const xe=le.value.map(_e=>h.h("option",{value:_e,selected:!0}));Le.push(h.h("select",{class:"hidden",name:V.value,multiple:i.multiple},xe))}const pe=i.useInput===!0||ee!==!0?void 0:I.splitAttrs.attributes.value;return h.h("div",{class:"q-field__native row items-center",...pe,...I.splitAttrs.listeners.value},Le)},getInnerAppend:()=>i.loading!==!0&&r.value!==!0&&i.hideDropdownIcon!==!0?[h.h(ct,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:oe.value})]:null}),sa(I)}}),_u={class:"q-pa-none"},Cu={key:0,class:"row q-gutter-xs q-mb-xs"},Au=h.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"},useInput:{type:Boolean,default:!1},serverSideFilter:{type:Boolean,default:!1},debounceMs:{default:0},maxChips:{},dataCy:{default:"checkbox-filter"}},emits:["update:modelValue","search"],setup(i,{emit:M}){const t=[],b=i,m=M,c=h.ref(!1),a=h.ref(b.modelValue||[]),o=h.ref(b.options);h.watch(()=>b.options,f=>{o.value=f},{immediate:!0});const n=(f,p)=>{m("search",f),p(()=>{if(b.serverSideFilter)return;const d=f.toLowerCase();o.value=b.options.filter(v=>v.label.toLowerCase().includes(d))})},e=h.computed(()=>a.value.slice(0,b.maxChips)),r=h.computed(()=>b.maxChips===void 0?[]:a.value.slice(b.maxChips)),u=h.computed(()=>({height:b.scrollAreaHeight,width:b.scrollAreaWidth})),s=h.computed(()=>b.dataCy||"checkbox-filter");h.watch(a,f=>{m("update:modelValue",f)});const l=f=>{a.value=a.value.filter(p=>p.value!==f.value)};return h.watch(()=>b.modelValue,f=>{f&&(a.value=f)},{immediate:!0}),(f,p)=>(h.openBlock(),h.createElementBlock("div",_u,[a.value.length?(h.openBlock(),h.createElementBlock("div",Cu,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.value,d=>(h.openBlock(),h.createBlock(Dn,{key:d.value,removable:"",dense:"",color:"primary","text-color":"white","data-cy":`${s.value}-selected-${d.label}`,onRemove:v=>l(d)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(d.label),1)]),_:2},1032,["data-cy","onRemove"]))),128)),r.value.length?(h.openBlock(),h.createBlock(Dn,{key:0,dense:"",clickable:"",color:"primary","text-color":"white","data-cy":`${s.value}-selected-more`,onClick:p[0]||(p[0]=d=>c.value=!0)},{default:h.withCtx(()=>[p[5]||(p[5]=h.createTextVNode(" … ")),h.createVNode(tr,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(r.value.map(d=>d.label).join(", ")),1)]),_:1})]),_:1,__:[5]},8,["data-cy"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0),h.createVNode(ii,h.mergeProps({outlined:"",dense:"",label:b.label,class:["full-width","cursor-pointer"],"data-cy":s.value,"model-value":null,options:t,"use-input":b.useInput,"input-debounce":b.debounceMs,"hide-dropdown-icon":""},f.$attrs,{onFilter:n,onClick:p[4]||(p[4]=d=>c.value=!0)}),{append:h.withCtx(()=>[h.createVNode(ct,{name:"arrow_drop_down",class:h.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":c.value}]),onClick:p[1]||(p[1]=h.withModifiers(d=>c.value=!c.value,["stop"]))},null,8,["class"])]),default:h.withCtx(()=>[h.createVNode(dn,{modelValue:c.value,"onUpdate:modelValue":p[3]||(p[3]=d=>c.value=d),"no-parent-event":"","no-focus":b.useInput,anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:h.withCtx(()=>[h.createVNode(Hr,{class:"q-pa-sm"},{default:h.withCtx(()=>[h.createVNode(Zl,{style:h.normalizeStyle(u.value)},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(o.value,d=>(h.openBlock(),h.createBlock(Fr,{key:d.value,modelValue:a.value,"onUpdate:modelValue":p[2]||(p[2]=v=>a.value=v),val:d,disable:d.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`${s.value}-option-${d.label}`},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass({"text-italic":d.italic})},h.toDisplayString(d.label),3)]),_:2},1032,["modelValue","val","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue","no-focus"])]),_:1},16,["label","data-cy","use-input","input-debounce"])]))}}),Eu=jt(Au,[["__scopeId","data-v-6ab1c851"]]),Mu=h.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null},rules:{},updateInputOnModelChange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(i,{emit:M}){const t=i,b=M,m=h.ref(),c=h.ref(t.modelValue??null),a=h.ref(""),o=h.ref(t.options??[]),n=h.ref(!1),e=h.ref(!0),r=h.ref(!1);h.watch(()=>t.options,v=>{o.value=v??[],u()},{immediate:!0}),h.watch(()=>t.modelValue,async v=>{if(t.updateInputOnModelChange){if(r.value=!0,t.fetchOptions&&v){const g=await t.fetchOptions("");o.value=g}c.value=v,u(),n.value=!1,await h.nextTick(),m.value?.updateInputValue(a.value,!0),setTimeout(()=>{r.value=!1},100)}else c.value=v});function u(){const v=o.value.find(g=>g.value===c.value);a.value=v?.label??""}function s(v){r.value||(c.value=v,b("update:modelValue",v),u(),n.value=!1)}function l(v){a.value=v,v===""&&(n.value=!0)}function f(){if(e.value){e.value=!1;return}c.value!==null&&!n.value?(a.value="",n.value=!0,m.value?.showPopup()):n.value&&(a.value="")}function p(){e.value=!0;const v=a.value.trim();if(v==="")n.value&&(c.value=null,b("update:modelValue",null));else{const g=o.value.find(k=>k.label.toLowerCase()===v.toLowerCase());g?(c.value=g.value,b("update:modelValue",g.value),a.value=g.label):u()}n.value=!1}function d(v,g,k){if(t.fetchOptions)t.fetchOptions(v).then(C=>{o.value=C,g(()=>{})}).catch(k).finally(()=>{});else{const C=t.options??[];o.value=C.filter(B=>B.label.toLowerCase().includes(v.toLowerCase())),g(()=>{})}}return h.onMounted(async()=>{if(t.fetchOptions&&t.modelValue){const v=await t.fetchOptions("");o.value=v,u()}}),(v,g)=>(h.openBlock(),h.createBlock(ii,h.mergeProps({ref_key:"selectRef",ref:m,"model-value":c.value,"input-value":a.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:v.label,options:o.value,"map-options":"",dense:"",outlined:"",class:"full-width cursor-pointer"},v.$attrs,{"onUpdate:modelValue":s,"onUpdate:inputValue":l,onFocus:f,onBlur:p,onFilter:d}),null,16,["model-value","input-value","label","options"]))}}),Tu=h.defineComponent({__name:"SelectYear",props:{modelValue:{},label:{default:"Sélectionner une année"},startYear:{default:2015},endYear:{default:void 0}},emits:["update:modelValue"],setup(i,{emit:M}){const t=i,b=M,m=h.computed(()=>{const o=t.startYear??new Date().getFullYear()-5,n=t.endYear??new Date().getFullYear(),e=[];for(let r=n;r>=o;r--)e.push({label:String(r),value:r});return e});function c(o){b("update:modelValue",o)}function a(){t.modelValue!==null&&b("update:modelValue",null)}return(o,n)=>(h.openBlock(),h.createBlock(ii,h.mergeProps({"model-value":o.modelValue,options:m.value,"option-value":"value","option-label":"label",label:o.label,dense:"","emit-value":"",outlined:"",class:"full-width cursor-pointer"},o.$attrs,{"onUpdate:modelValue":c,onFocus:a}),null,16,["model-value","options","label"]))}}),ls=Ze({name:"QAvatar",props:{...Ur,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(i,{slots:M}){const t=Wr(i),b=h.computed(()=>"q-avatar"+(i.color?` bg-${i.color}`:"")+(i.textColor?` text-${i.textColor} q-chip--colored`:"")+(i.square===!0?" q-avatar--square":i.rounded===!0?" rounded-borders":"")),m=h.computed(()=>i.fontSize?{fontSize:i.fontSize}:null);return()=>{const c=i.icon!==void 0?[h.h(ct,{name:i.icon})]:void 0;return h.h("div",{class:b.value,style:t.value},[h.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:m.value},wo(M.default,c))])}}}),Bu=Ze({name:"QSpace",setup(){const i=h.h("div",{class:"q-space"});return()=>i}}),Ru=["ul","ol"],qr=Ze({name:"QList",props:{...Tt,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(i,{slots:M}){const t=h.getCurrentInstance(),b=Bt(i,t.proxy.$q),m=h.computed(()=>Ru.includes(i.tag)?null:"list"),c=h.computed(()=>"q-list"+(i.bordered===!0?" q-list--bordered":"")+(i.dense===!0?" q-list--dense":"")+(i.separator===!0?" q-list--separator":"")+(b.value===!0?" q-list--dark":"")+(i.padding===!0?" q-list--padding":""));return()=>h.h(i.tag,{class:c.value,role:m.value},dt(M.default))}}),us=Ze({name:"QToolbar",props:{inset:Boolean},setup(i,{slots:M}){const t=h.computed(()=>"q-toolbar row no-wrap items-center"+(i.inset===!0?" q-toolbar--inset":""));return()=>h.h("div",{class:t.value,role:"toolbar"},dt(M.default))}}),Iu=Ze({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(i,{slots:M,emit:t}){const{proxy:{$q:b}}=h.getCurrentInstance(),m=h.inject(Yr,Et);if(m===Et)return console.error("QHeader needs to be child of QLayout"),Et;const c=h.ref(parseInt(i.heightHint,10)),a=h.ref(!0),o=h.computed(()=>i.reveal===!0||m.view.value.indexOf("H")!==-1||b.platform.is.ios&&m.isContainer.value===!0),n=h.computed(()=>{if(i.modelValue!==!0)return 0;if(o.value===!0)return a.value===!0?c.value:0;const g=c.value-m.scroll.value.position;return g>0?g:0}),e=h.computed(()=>i.modelValue!==!0||o.value===!0&&a.value!==!0),r=h.computed(()=>i.modelValue===!0&&e.value===!0&&i.reveal===!0),u=h.computed(()=>"q-header q-layout__section--marginal "+(o.value===!0?"fixed":"absolute")+"-top"+(i.bordered===!0?" q-header--bordered":"")+(e.value===!0?" q-header--hidden":"")+(i.modelValue!==!0?" q-layout--prevent-focus":"")),s=h.computed(()=>{const g=m.rows.value.top,k={};return g[0]==="l"&&m.left.space===!0&&(k[b.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),g[2]==="r"&&m.right.space===!0&&(k[b.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),k});function l(g,k){m.update("header",g,k)}function f(g,k){g.value!==k&&(g.value=k)}function p({height:g}){f(c,g),l("size",g)}function d(g){r.value===!0&&f(a,!0),t("focusin",g)}h.watch(()=>i.modelValue,g=>{l("space",g),f(a,!0),m.animate()}),h.watch(n,g=>{l("offset",g)}),h.watch(()=>i.reveal,g=>{g===!1&&f(a,i.modelValue)}),h.watch(a,g=>{m.animate(),t("reveal",g)}),h.watch(m.scroll,g=>{i.reveal===!0&&f(a,g.direction==="up"||g.position<=i.revealOffset||g.position-g.inflectionPoint<100)});const v={};return m.instances.header=v,i.modelValue===!0&&l("size",c.value),l("space",i.modelValue),l("offset",n.value),h.onBeforeUnmount(()=>{m.instances.header===v&&(m.instances.header=void 0,l("size",0),l("offset",0),l("space",!1))}),()=>{const g=Ui(M.default,[]);return i.elevated===!0&&g.push(h.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),g.push(h.h(Lr,{debounce:0,onResize:p})),h.h("header",{class:u.value,style:s.value,onFocusin:d},g)}}});function to(i){if(i===!1)return 0;if(i===!0||i===void 0)return 1;const M=parseInt(i,10);return isNaN(M)?0:M}const ai=zi({name:"close-popup",beforeMount(i,{value:M}){const t={depth:to(M),handler(b){t.depth!==0&&setTimeout(()=>{const m=Ol(i);m!==void 0&&Fl(m,b,t.depth)})},handlerKey(b){cr(b,13)===!0&&t.handler(b)}};i.__qclosepopup=t,i.addEventListener("click",t.handler),i.addEventListener("keyup",t.handlerKey)},updated(i,{value:M,oldValue:t}){M!==t&&(i.__qclosepopup.depth=to(M))},beforeUnmount(i){const M=i.__qclosepopup;i.removeEventListener("click",M.handler),i.removeEventListener("keyup",M.handlerKey),delete i.__qclosepopup}}),Ou=["src","alt"],Fu={key:1,class:"project-environment-container row items-center q-mr-md"},Du=h.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{},showProjectSwitch:{type:Boolean},currentProjectLabel:{},availableProjects:{},currentPath:{},environment:{},showMenuToggle:{type:Boolean}},emits:["project-change","menu-toggle"],setup(i,{emit:M}){const t=i,b=t.logoAlt??"Logo",m=t.logoTo??"/",c=h.computed(()=>({width:"170px",height:"auto",borderRadius:"0"})),a=h.computed(()=>t.environment?t.environment.toUpperCase()!=="PROD":!1),o=h.computed(()=>`environment-badge--${t.environment?.toUpperCase()?.toLowerCase()}`),n=e=>t.currentPath?.startsWith(e);return(e,r)=>{const u=h.resolveComponent("router-link");return h.openBlock(),h.createBlock(Iu,h.mergeProps({elevated:""},e.$attrs),{default:h.withCtx(()=>[h.createVNode(us,null,{default:h.withCtx(()=>[e.showMenuToggle?(h.openBlock(),h.createBlock(at,{key:0,flat:"",dense:"",icon:"menu",class:"q-mr-sm","data-testid":"menu-toggle-btn",onClick:r[0]||(r[0]=s=>e.$emit("menu-toggle"))})):h.createCommentVNode("",!0),h.createVNode(u,{to:h.unref(m),class:"q-mr-lg"},{default:h.withCtx(()=>[h.createVNode(ls,{class:"logo",style:h.normalizeStyle(c.value),"data-testid":"header-logo"},{default:h.withCtx(()=>[h.createElementVNode("img",{src:e.logoSrc,alt:h.unref(b)},null,8,Ou)]),_:1},8,["style"])]),_:1},8,["to"]),h.createVNode(Bu),e.showProjectSwitch||a.value?(h.openBlock(),h.createElementBlock("div",Fu,[a.value?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(["environment-badge",o.value]),"data-testid":"environment-badge"},h.toDisplayString(e.environment),3)):h.createCommentVNode("",!0),e.showProjectSwitch?(h.openBlock(),h.createBlock(at,{key:1,dense:"",unelevated:"",color:"primary",label:e.currentProjectLabel,"data-testid":"project-switch-btn",class:"project-switch-btn q-mr-md bg-info"},{default:h.withCtx(()=>[h.createVNode(dn,{anchor:"bottom right",self:"top right"},{default:h.withCtx(()=>[h.createVNode(qr,{dense:"",class:"project-menu"},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.availableProjects,s=>h.withDirectives((h.openBlock(),h.createBlock(Yt,{key:s.path,clickable:"",disable:n(s.path),onClick:l=>e.$emit("project-change",s.path)},{default:h.withCtx(()=>[h.createVNode(Ft,{class:"q-mr-lg"},{default:h.withCtx(()=>[h.createVNode(nn,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(s.label),1)]),_:2},1024),n(s.path)?(h.openBlock(),h.createBlock(nn,{key:0,caption:""},{default:h.withCtx(()=>r[1]||(r[1]=[h.createTextVNode(" Actuel ")])),_:1,__:[1]})):h.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["disable","onClick"])),[[ai]])),128))]),_:1})]),_:1})]),_:1},8,["label"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0),h.renderSlot(e.$slots,"user-avatar",{},void 0,!0)]),_:3})]),_:3},16)}}}),ju=jt(Du,[["__scopeId","data-v-a7cc4135"]]),Nu=Ze({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(i,{slots:M,emit:t}){const{proxy:{$q:b}}=h.getCurrentInstance(),m=h.inject(Yr,Et);if(m===Et)return console.error("QFooter needs to be child of QLayout"),Et;const c=h.ref(parseInt(i.heightHint,10)),a=h.ref(!0),o=h.ref(dr.value===!0||m.isContainer.value===!0?0:window.innerHeight),n=h.computed(()=>i.reveal===!0||m.view.value.indexOf("F")!==-1||b.platform.is.ios&&m.isContainer.value===!0),e=h.computed(()=>m.isContainer.value===!0?m.containerHeight.value:o.value),r=h.computed(()=>{if(i.modelValue!==!0)return 0;if(n.value===!0)return a.value===!0?c.value:0;const B=m.scroll.value.position+e.value+c.value-m.height.value;return B>0?B:0}),u=h.computed(()=>i.modelValue!==!0||n.value===!0&&a.value!==!0),s=h.computed(()=>i.modelValue===!0&&u.value===!0&&i.reveal===!0),l=h.computed(()=>"q-footer q-layout__section--marginal "+(n.value===!0?"fixed":"absolute")+"-bottom"+(i.bordered===!0?" q-footer--bordered":"")+(u.value===!0?" q-footer--hidden":"")+(i.modelValue!==!0?" q-layout--prevent-focus"+(n.value!==!0?" hidden":""):"")),f=h.computed(()=>{const B=m.rows.value.bottom,N={};return B[0]==="l"&&m.left.space===!0&&(N[b.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),B[2]==="r"&&m.right.space===!0&&(N[b.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),N});function p(B,N){m.update("footer",B,N)}function d(B,N){B.value!==N&&(B.value=N)}function v({height:B}){d(c,B),p("size",B)}function g(){if(i.reveal!==!0)return;const{direction:B,position:N,inflectionPoint:q}=m.scroll.value;d(a,B==="up"||N-q<100||m.height.value-e.value-N-c.value<300)}function k(B){s.value===!0&&d(a,!0),t("focusin",B)}h.watch(()=>i.modelValue,B=>{p("space",B),d(a,!0),m.animate()}),h.watch(r,B=>{p("offset",B)}),h.watch(()=>i.reveal,B=>{B===!1&&d(a,i.modelValue)}),h.watch(a,B=>{m.animate(),t("reveal",B)}),h.watch([c,m.scroll,m.height],g),h.watch(()=>b.screen.height,B=>{m.isContainer.value!==!0&&d(o,B)});const C={};return m.instances.footer=C,i.modelValue===!0&&p("size",c.value),p("space",i.modelValue),p("offset",r.value),h.onBeforeUnmount(()=>{m.instances.footer===C&&(m.instances.footer=void 0,p("size",0),p("offset",0),p("space",!1))}),()=>{const B=Dt(M.default,[h.h(Lr,{debounce:0,onResize:v})]);return i.elevated===!0&&B.push(h.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),h.h("footer",{class:l.value,style:f.value,onFocusin:k},B)}}}),Pu={class:"row justify-between"},Lu={class:"col-3 q-py-md flex justify-center"},Vu={class:"col-3 q-py-md flex justify-center"},qu={class:"col-3 q-py-md flex justify-center"},zu=h.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(i){return(M,t)=>(h.openBlock(),h.createBlock(Nu,h.mergeProps({elevated:""},M.$attrs),{default:h.withCtx(()=>[h.createElementVNode("div",Pu,[h.createElementVNode("div",Lu," Front: "+h.toDisplayString(M.frontVersion),1),h.createElementVNode("div",Vu," Back: "+h.toDisplayString(M.backVersion),1),h.createElementVNode("div",qu," Platform: "+h.toDisplayString(M.platform),1)])]),_:1},16))}}),Uu={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Si={xs:2,sm:4,md:8,lg:16,xl:24},ur=Ze({name:"QSeparator",props:{...Tt,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(i){const M=h.getCurrentInstance(),t=Bt(i,M.proxy.$q),b=h.computed(()=>i.vertical===!0?"vertical":"horizontal"),m=h.computed(()=>` q-separator--${b.value}`),c=h.computed(()=>i.inset!==!1?`${m.value}-${Uu[i.inset]}`:""),a=h.computed(()=>`q-separator${m.value}${c.value}`+(i.color!==void 0?` bg-${i.color}`:"")+(t.value===!0?" q-separator--dark":"")),o=h.computed(()=>{const n={};if(i.size!==void 0&&(n[i.vertical===!0?"width":"height"]=i.size),i.spaced!==!1){const e=i.spaced===!0?`${Si.md}px`:i.spaced in Si?`${Si[i.spaced]}px`:i.spaced,r=i.vertical===!0?["Left","Right"]:["Top","Bottom"];n[`margin${r[0]}`]=n[`margin${r[1]}`]=e}return n});return()=>h.h("hr",{class:a.value,style:o.value,"aria-orientation":b.value})}}),Wu=Ze({name:"QToggle",props:{...zo,icon:String,iconColor:String},emits:Uo,setup(i){function M(t,b){const m=h.computed(()=>(t.value===!0?i.checkedIcon:b.value===!0?i.indeterminateIcon:i.uncheckedIcon)||i.icon),c=h.computed(()=>t.value===!0?i.iconColor:null);return()=>[h.h("div",{class:"q-toggle__track"}),h.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},m.value!==void 0?[h.h(ct,{name:m.value,color:c.value})]:void 0)]}return Wo("toggle",M)}}),Hu={class:"text-h6 text-primary","data-testid":"avatar-initial"},Yu={class:"text-weight-bold"},Qu={class:"row items-center q-gutter-sm"},Ku={class:"version-info"},Xu={class:"text-caption"},Gu={class:"text-caption"},Ju={class:"text-caption"},Zu=h.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{},logoutLabel:{default:"Déconnexion"},frontVersion:{default:"N/A"},backVersion:{default:"N/A"},platform:{default:"N/A"},showVersionInfo:{type:Boolean,default:!0},showFilterToggle:{type:Boolean,default:!1},persistFilters:{type:Boolean,default:!1}},emits:["toggle-filter-persistence"],setup(i,{emit:M}){const t=i,b=h.computed(()=>t.username?.charAt(0).toUpperCase()??"");return(m,c)=>(h.openBlock(),h.createElementBlock("div",null,[h.createVNode(ls,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar","data-testid":"cy-avatar"},{default:h.withCtx(()=>[h.createElementVNode("span",Hu,h.toDisplayString(b.value),1),h.createVNode(dn,{"transition-show":"flip-right","transition-hide":"flip-left",class:"user-avatar-menu"},{default:h.withCtx(()=>[h.createVNode(qr,{class:"user-menu-list"},{default:h.withCtx(()=>[h.createVNode(Yt,{class:"user-info-section"},{default:h.withCtx(()=>[h.createVNode(Ft,null,{default:h.withCtx(()=>[h.createElementVNode("div",Yu,h.toDisplayString(m.username),1)]),_:1})]),_:1}),h.createVNode(ur),m.showFilterToggle?(h.openBlock(),h.createBlock(Yt,{key:0,class:"filter-toggle-section"},{default:h.withCtx(()=>[h.createVNode(Ft,null,{default:h.withCtx(()=>[h.createElementVNode("div",Qu,[c[1]||(c[1]=h.createElementVNode("span",{class:"text-caption"},"Filtres persistants",-1)),h.createVNode(Wu,{"model-value":m.persistFilters,"onUpdate:modelValue":c[0]||(c[0]=a=>m.$emit("toggle-filter-persistence",a)),size:"sm","data-cy":"filter-persistence-toggle"},null,8,["model-value"])])]),_:1})]),_:1})):h.createCommentVNode("",!0),m.showFilterToggle?(h.openBlock(),h.createBlock(ur,{key:1})):h.createCommentVNode("",!0),m.showVersionInfo?(h.openBlock(),h.createBlock(Yt,{key:2,class:"version-info-section"},{default:h.withCtx(()=>[h.createVNode(Ft,null,{default:h.withCtx(()=>[h.createElementVNode("div",Ku,[c[2]||(c[2]=h.createElementVNode("div",{class:"text-caption text-grey-7"},"Informations de version",-1)),h.createElementVNode("div",Xu,"Front: "+h.toDisplayString(m.frontVersion),1),h.createElementVNode("div",Gu,"Back: "+h.toDisplayString(m.backVersion),1),h.createElementVNode("div",Ju,"Plateforme: "+h.toDisplayString(m.platform),1)])]),_:1})]),_:1})):h.createCommentVNode("",!0),m.showVersionInfo?(h.openBlock(),h.createBlock(ur,{key:3})):h.createCommentVNode("",!0),h.createVNode(Yt,{clickable:"",class:"logout-section","data-cy":"cy-logout-button","data-testid":"cy-logout-button",onClick:m.onLogout},{default:h.withCtx(()=>[h.createVNode(Ft,null,{default:h.withCtx(()=>[h.createElementVNode("div",null,h.toDisplayString(m.logoutLabel),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),$u=jt(Zu,[["__scopeId","data-v-d9b256cf"]]),ec=Ze({name:"QPageContainer",setup(i,{slots:M}){const{proxy:{$q:t}}=h.getCurrentInstance(),b=h.inject(Yr,Et);if(b===Et)return console.error("QPageContainer needs to be child of QLayout"),Et;h.provide(Zo,!0);const m=h.computed(()=>{const c={};return b.header.space===!0&&(c.paddingTop=`${b.header.size}px`),b.right.space===!0&&(c[`padding${t.lang.rtl===!0?"Left":"Right"}`]=`${b.right.size}px`),b.footer.space===!0&&(c.paddingBottom=`${b.footer.size}px`),b.left.space===!0&&(c[`padding${t.lang.rtl===!0?"Right":"Left"}`]=`${b.left.size}px`),c});return()=>h.h("div",{class:"q-page-container",style:m.value},dt(M.default))}}),tc=Ze({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:i=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(i.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(i,{slots:M,emit:t}){const{proxy:{$q:b}}=h.getCurrentInstance(),m=h.ref(null),c=h.ref(b.screen.height),a=h.ref(i.container===!0?0:b.screen.width),o=h.ref({position:0,direction:"down",inflectionPoint:0}),n=h.ref(0),e=h.ref(dr.value===!0?0:Rn()),r=h.computed(()=>"q-layout q-layout--"+(i.container===!0?"containerized":"standard")),u=h.computed(()=>i.container===!1?{minHeight:b.screen.height+"px"}:null),s=h.computed(()=>e.value!==0?{[b.lang.rtl===!0?"left":"right"]:`${e.value}px`}:null),l=h.computed(()=>e.value!==0?{[b.lang.rtl===!0?"right":"left"]:0,[b.lang.rtl===!0?"left":"right"]:`-${e.value}px`,width:`calc(100% + ${e.value}px)`}:null);function f(C){if(i.container===!0||document.qScrollPrevented!==!0){const B={position:C.position.top,direction:C.direction,directionChanged:C.directionChanged,inflectionPoint:C.inflectionPoint.top,delta:C.delta.top};o.value=B,i.onScroll!==void 0&&t("scroll",B)}}function p(C){const{height:B,width:N}=C;let q=!1;c.value!==B&&(q=!0,c.value=B,i.onScrollHeight!==void 0&&t("scrollHeight",B),v()),a.value!==N&&(q=!0,a.value=N),q===!0&&i.onResize!==void 0&&t("resize",C)}function d({height:C}){n.value!==C&&(n.value=C,v())}function v(){if(i.container===!0){const C=c.value>n.value?Rn():0;e.value!==C&&(e.value=C)}}let g=null;const k={instances:{},view:h.computed(()=>i.view),isContainer:h.computed(()=>i.container),rootRef:m,height:c,containerHeight:n,scrollbarWidth:e,totalWidth:h.computed(()=>a.value+e.value),rows:h.computed(()=>{const C=i.view.toLowerCase().split(" ");return{top:C[0].split(""),middle:C[1].split(""),bottom:C[2].split("")}}),header:h.reactive({size:0,offset:0,space:!1}),right:h.reactive({size:300,offset:0,space:!1}),footer:h.reactive({size:0,offset:0,space:!1}),left:h.reactive({size:300,offset:0,space:!1}),scroll:o,animate(){g!==null?clearTimeout(g):document.body.classList.add("q-body--layout-animate"),g=setTimeout(()=>{g=null,document.body.classList.remove("q-body--layout-animate")},155)},update(C,B,N){k[C][B]=N}};if(h.provide(Yr,k),Rn()>0){let C=function(){q=null,j.classList.remove("hide-scrollbar")},B=function(){if(q===null){if(j.scrollHeight>b.screen.height)return;j.classList.add("hide-scrollbar")}else clearTimeout(q);q=setTimeout(C,300)},N=function(P){q!==null&&P==="remove"&&(clearTimeout(q),C()),window[`${P}EventListener`]("resize",B)},q=null;const j=document.body;h.watch(()=>i.container!==!0?"add":"remove",N),i.container!==!0&&N("add"),h.onUnmounted(()=>{N("remove")})}return()=>{const C=Dt(M.default,[h.h(Yo,{onScroll:f}),h.h(Lr,{onResize:p})]),B=h.h("div",{class:r.value,style:u.value,ref:i.container===!0?void 0:m,tabindex:-1},C);return i.container===!0?h.h("div",{class:"q-layout-container overflow-hidden",ref:m},[h.h(Lr,{onResize:d}),h.h("div",{class:"absolute-full",style:s.value},[h.h("div",{class:"scroll",style:l.value},[B])])]):B}}}),la=h.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-white"},pageContainerClass:{default:""}},setup(i){return(M,t)=>(h.openBlock(),h.createBlock(tc,{view:M.view,class:h.normalizeClass(M.layoutClass),style:{minHeight:"auto !important"}},{default:h.withCtx(()=>[h.renderSlot(M.$slots,"header"),h.createVNode(ec,{class:h.normalizeClass(M.pageContainerClass),style:{paddingBottom:"0 !important"}},{default:h.withCtx(()=>[h.renderSlot(M.$slots,"default")]),_:3},8,["class"]),h.renderSlot(M.$slots,"footer")]),_:3},8,["view","class"]))}});function rc(){let i=Object.create(null);return{getCache:(M,t)=>i[M]===void 0?i[M]=typeof t=="function"?t():t:i[M],setCache(M,t){i[M]=t},hasCache(M){return Object.hasOwnProperty.call(i,M)},clearCache(M){M!==void 0?delete i[M]:i=Object.create(null)}}}const lr=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function nc(i,M,t){return Object.prototype.toString.call(i)==="[object Date]"&&(t=i.getDate(),M=i.getMonth()+1,i=i.getFullYear()),sc(ua(i,M,t))}function ro(i,M,t){return ds(oc(i,M,t))}function ic(i){return ac(i)===0}function In(i,M){return M<=6?31:M<=11||ic(i)?30:29}function ac(i){const M=lr.length;let t=lr[0],b,m,c,a,o;if(i<t||i>=lr[M-1])throw new Error("Invalid Jalaali year "+i);for(o=1;o<M&&(b=lr[o],m=b-t,!(i<b));o+=1)t=b;return a=i-t,m-a<6&&(a=a-m+wt(m+4,33)*33),c=Lt(Lt(a+1,33)-1,4),c===-1&&(c=4),c}function cs(i,M){const t=lr.length,b=i+621;let m=-14,c=lr[0],a,o,n,e,r;if(i<c||i>=lr[t-1])throw new Error("Invalid Jalaali year "+i);for(r=1;r<t&&(a=lr[r],o=a-c,!(i<a));r+=1)m=m+wt(o,33)*8+wt(Lt(o,33),4),c=a;e=i-c,m=m+wt(e,33)*8+wt(Lt(e,33)+3,4),Lt(o,33)===4&&o-e===4&&(m+=1);const u=wt(b,4)-wt((wt(b,100)+1)*3,4)-150,s=20+m-u;return M||(o-e<6&&(e=e-o+wt(o+4,33)*33),n=Lt(Lt(e+1,33)-1,4),n===-1&&(n=4)),{leap:n,gy:b,march:s}}function oc(i,M,t){const b=cs(i,!0);return ua(b.gy,3,b.march)+(M-1)*31-wt(M,7)*(M-7)+t-1}function sc(i){const M=ds(i).gy;let t=M-621,b,m,c;const a=cs(t,!1),o=ua(M,3,a.march);if(c=i-o,c>=0){if(c<=185)return m=1+wt(c,31),b=Lt(c,31)+1,{jy:t,jm:m,jd:b};c-=186}else t-=1,c+=179,a.leap===1&&(c+=1);return m=7+wt(c,30),b=Lt(c,30)+1,{jy:t,jm:m,jd:b}}function ua(i,M,t){let b=wt((i+wt(M-8,6)+100100)*1461,4)+wt(153*Lt(M+9,12)+2,5)+t-34840408;return b=b-wt(wt(i+100100+wt(M-8,6),100)*3,4)+752,b}function ds(i){let M=4*i+139361631;M=M+wt(wt(4*i+183187720,146097)*3,4)*4-3908;const t=wt(Lt(M,1461),4)*5+308,b=wt(Lt(t,153),5)+1,m=Lt(wt(t,153),12)+1;return{gy:wt(M,1461)-100100+wt(8-m,6),gm:m,gd:b}}function wt(i,M){return~~(i/M)}function Lt(i,M){return i-~~(i/M)*M}const lc=["gregorian","persian"],Yn={mask:{type:String},locale:Object,calendar:{type:String,validator:i=>lc.includes(i),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},fs=["update:modelValue"];function Gt(i){return i.year+"/"+ht(i.month)+"/"+ht(i.day)}function hs(i,M){const t=h.computed(()=>i.disable!==!0&&i.readonly!==!0),b=h.computed(()=>t.value===!0?0:-1),m=h.computed(()=>{const o=[];return i.color!==void 0&&o.push(`bg-${i.color}`),i.textColor!==void 0&&o.push(`text-${i.textColor}`),o.join(" ")});function c(){return i.locale!==void 0?{...M.lang.date,...i.locale}:M.lang.date}function a(o){const n=new Date,e=o===!0?null:0;if(i.calendar==="persian"){const r=nc(n);return{year:r.jy,month:r.jm,day:r.jd}}return{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:e,minute:e,second:e,millisecond:e}}return{editable:t,tabindex:b,headerClass:m,getLocale:c,getCurrentDate:a}}const Li={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:i=>i?`Expand "${i}"`:"Expand",collapse:i=>i?`Collapse "${i}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days",prevMonth:"Previous month",nextMonth:"Next month",prevYear:"Previous year",nextYear:"Next year",today:"Today",prevRangeYears:i=>`Previous ${i} years`,nextRangeYears:i=>`Next ${i} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:i=>i===1?"1 record selected.":(i===0?"No":i)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(i,M,t)=>i+"-"+M+" of "+t,columns:"Columns"},pagination:{first:"First page",prev:"Previous page",next:"Next page",last:"Last page"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function no(){const i=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof i=="string")return i.split(/[-_]/).map((M,t)=>t===0?M.toLowerCase():t>1||M.length<4?M.toUpperCase():M[0].toUpperCase()+M.slice(1).toLowerCase()).join("-")}const or=zs({__qLang:{}},{getLocale:no,set(i=Li,M){const t={...i,rtl:i.rtl===!0,getLocale:no};{if(t.set=or.set,or.__langConfig===void 0||or.__langConfig.noHtmlAttrs!==!0){const b=document.documentElement;b.setAttribute("dir",t.rtl===!0?"rtl":"ltr"),b.setAttribute("lang",t.isoName)}Object.assign(or.__qLang,t)}},install({$q:i,lang:M,ssrContext:t}){i.lang=or.__qLang,or.__langConfig=i.config.lang,this.__installed===!0?M!==void 0&&this.set(M):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(b){return Reflect.ownKeys(b).filter(m=>m!=="set"&&m!=="getLocale")}}),this.set(M||Li))}}),ps=864e5,uc=36e5,Vi=6e4,ms="YYYY-MM-DDTHH:mm:ss.SSSZ",cc=/\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,dc=/(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,ki={};function fc(i,M){const t="("+M.days.join("|")+")",b=i+t;if(ki[b]!==void 0)return ki[b];const m="("+M.daysShort.join("|")+")",c="("+M.months.join("|")+")",a="("+M.monthsShort.join("|")+")",o={};let n=0;const e=i.replace(dc,u=>{switch(n++,u){case"YY":return o.YY=n,"(-?\\d{1,2})";case"YYYY":return o.YYYY=n,"(-?\\d{1,4})";case"M":return o.M=n,"(\\d{1,2})";case"Mo":return o.M=n++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return o.M=n,"(\\d{2})";case"MMM":return o.MMM=n,a;case"MMMM":return o.MMMM=n,c;case"D":return o.D=n,"(\\d{1,2})";case"Do":return o.D=n++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return o.D=n,"(\\d{2})";case"H":return o.H=n,"(\\d{1,2})";case"HH":return o.H=n,"(\\d{2})";case"h":return o.h=n,"(\\d{1,2})";case"hh":return o.h=n,"(\\d{2})";case"m":return o.m=n,"(\\d{1,2})";case"mm":return o.m=n,"(\\d{2})";case"s":return o.s=n,"(\\d{1,2})";case"ss":return o.s=n,"(\\d{2})";case"S":return o.S=n,"(\\d{1})";case"SS":return o.S=n,"(\\d{2})";case"SSS":return o.S=n,"(\\d{3})";case"A":return o.A=n,"(AM|PM)";case"a":return o.a=n,"(am|pm)";case"aa":return o.aa=n,"(a\\.m\\.|p\\.m\\.)";case"ddd":return m;case"dddd":return t;case"Q":case"d":case"E":return"(\\d{1})";case"do":return n++,"(\\d{1}(st|nd|rd|th))";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"DDDo":return n++,"(\\d{1,3}(st|nd|rd|th))";case"w":return"(\\d{1,2})";case"wo":return n++,"(\\d{1,2}(st|nd|rd|th))";case"ww":return"(\\d{2})";case"Z":return o.Z=n,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return o.ZZ=n,"(Z|[+-]\\d{2}\\d{2})";case"X":return o.X=n,"(-?\\d+)";case"x":return o.x=n,"(-?\\d{4,})";default:return n--,u[0]==="["&&(u=u.substring(1,u.length-1)),u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),r={map:o,regex:new RegExp("^"+e)};return ki[b]=r,r}function gs(i,M){return i!==void 0?i:M!==void 0?M.date:Li.date}function io(i,M=""){const t=i>0?"-":"+",b=Math.abs(i),m=Math.floor(b/60),c=b%60;return t+ht(m)+M+ht(c)}function hc(i,M,t){let b=i.getFullYear(),m=i.getMonth();const c=i.getDate();return M.year!==void 0&&(b+=t*M.year,delete M.year),M.month!==void 0&&(m+=t*M.month,delete M.month),i.setDate(1),i.setMonth(2),i.setFullYear(b),i.setMonth(m),i.setDate(Math.min(c,fa(i))),M.date!==void 0&&(i.setDate(i.getDate()+t*M.date),delete M.date),i}function pc(i,M,t){const b=M.year!==void 0?M.year:i[`get${t}FullYear`](),m=M.month!==void 0?M.month-1:i[`get${t}Month`](),c=new Date(b,m+1,0).getDate(),a=Math.min(c,M.date!==void 0?M.date:i[`get${t}Date`]());return i[`set${t}Date`](1),i[`set${t}Month`](2),i[`set${t}FullYear`](b),i[`set${t}Month`](m),i[`set${t}Date`](a),delete M.year,delete M.month,delete M.date,i}function ca(i,M,t){const b=vs(M),m=new Date(i),c=b.year!==void 0||b.month!==void 0||b.date!==void 0?hc(m,b,t):m;for(const a in b){const o=Jl(a);c[`set${o}`](c[`get${o}`]()+t*b[a])}return c}function vs(i){const M={...i};return i.years!==void 0&&(M.year=i.years,delete M.years),i.months!==void 0&&(M.month=i.months,delete M.months),i.days!==void 0&&(M.date=i.days,delete M.days),i.day!==void 0&&(M.date=i.day,delete M.day),i.hour!==void 0&&(M.hours=i.hour,delete M.hour),i.minute!==void 0&&(M.minutes=i.minute,delete M.minute),i.second!==void 0&&(M.seconds=i.second,delete M.second),i.millisecond!==void 0&&(M.milliseconds=i.millisecond,delete M.millisecond),M}function bs(i,M,t){const b=vs(M),m=t===!0?"UTC":"",c=new Date(i),a=b.year!==void 0||b.month!==void 0||b.date!==void 0?pc(c,b,m):c;for(const o in b){const n=o.charAt(0).toUpperCase()+o.slice(1);a[`set${m}${n}`](b[o])}return a}function mc(i,M,t){const b=Ir(i,M,t),m=new Date(b.year,b.month===null?null:b.month-1,b.day===null?1:b.day,b.hour,b.minute,b.second,b.millisecond),c=m.getTimezoneOffset();return b.timezoneOffset===null||b.timezoneOffset===c?m:ca(m,{minutes:b.timezoneOffset-c},1)}function Ir(i,M,t,b,m){const c={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(m!==void 0&&Object.assign(c,m),i==null||i===""||typeof i!="string")return c;M===void 0&&(M=ms);const a=gs(t,or.props),o=a.months,n=a.monthsShort,{regex:e,map:r}=fc(M,a),u=i.match(e);if(u===null)return c;let s="";if(r.X!==void 0||r.x!==void 0){const l=parseInt(u[r.X!==void 0?r.X:r.x],10);if(isNaN(l)===!0||l<0)return c;const f=new Date(l*(r.X!==void 0?1e3:1));c.year=f.getFullYear(),c.month=f.getMonth()+1,c.day=f.getDate(),c.hour=f.getHours(),c.minute=f.getMinutes(),c.second=f.getSeconds(),c.millisecond=f.getMilliseconds()}else{if(r.YYYY!==void 0)c.year=parseInt(u[r.YYYY],10);else if(r.YY!==void 0){const l=parseInt(u[r.YY],10);c.year=l<0?l:2e3+l}if(r.M!==void 0){if(c.month=parseInt(u[r.M],10),c.month<1||c.month>12)return c}else r.MMM!==void 0?c.month=n.indexOf(u[r.MMM])+1:r.MMMM!==void 0&&(c.month=o.indexOf(u[r.MMMM])+1);if(r.D!==void 0){if(c.day=parseInt(u[r.D],10),c.year===null||c.month===null||c.day<1)return c;const l=b!=="persian"?new Date(c.year,c.month,0).getDate():In(c.year,c.month);if(c.day>l)return c}r.H!==void 0?c.hour=parseInt(u[r.H],10)%24:r.h!==void 0&&(c.hour=parseInt(u[r.h],10)%12,(r.A&&u[r.A]==="PM"||r.a&&u[r.a]==="pm"||r.aa&&u[r.aa]==="p.m.")&&(c.hour+=12),c.hour=c.hour%24),r.m!==void 0&&(c.minute=parseInt(u[r.m],10)%60),r.s!==void 0&&(c.second=parseInt(u[r.s],10)%60),r.S!==void 0&&(c.millisecond=parseInt(u[r.S],10)*10**(3-u[r.S].length)),(r.Z!==void 0||r.ZZ!==void 0)&&(s=r.Z!==void 0?u[r.Z].replace(":",""):u[r.ZZ],c.timezoneOffset=(s[0]==="+"?-1:1)*(60*s.slice(1,3)+1*s.slice(3,5)))}return c.dateHash=ht(c.year,4)+"/"+ht(c.month)+"/"+ht(c.day),c.timeHash=ht(c.hour)+":"+ht(c.minute)+":"+ht(c.second)+s,c}function gc(i){return typeof i=="number"?!0:isNaN(Date.parse(i))===!1}function vc(i,M){return bs(new Date,i,M)}function bc(i){const M=new Date(i).getDay();return M===0?7:M}function On(i){const M=new Date(i.getFullYear(),i.getMonth(),i.getDate());M.setDate(M.getDate()-(M.getDay()+6)%7+3);const t=new Date(M.getFullYear(),0,4);t.setDate(t.getDate()-(t.getDay()+6)%7+3);const b=M.getTimezoneOffset()-t.getTimezoneOffset();M.setHours(M.getHours()-b);const m=(M-t)/(ps*7);return 1+Math.floor(m)}function yc(i){return i.getFullYear()*1e4+i.getMonth()*100+i.getDate()}function _i(i,M){const t=new Date(i);return M===!0?yc(t):t.getTime()}function wc(i,M,t,b={}){const m=_i(M,b.onlyDate),c=_i(t,b.onlyDate),a=_i(i,b.onlyDate);return(a>m||b.inclusiveFrom===!0&&a===m)&&(a<c||b.inclusiveTo===!0&&a===c)}function xc(i,M){return ca(i,M,1)}function Sc(i,M){return ca(i,M,-1)}function Qt(i,M,t){const b=new Date(i),m=`set${t===!0?"UTC":""}`;switch(M){case"year":case"years":b[`${m}Month`](0);case"month":case"months":b[`${m}Date`](1);case"day":case"days":case"date":b[`${m}Hours`](0);case"hour":case"hours":b[`${m}Minutes`](0);case"minute":case"minutes":b[`${m}Seconds`](0);case"second":case"seconds":b[`${m}Milliseconds`](0)}return b}function kc(i,M,t){const b=new Date(i),m=`set${t===!0?"UTC":""}`;switch(M){case"year":case"years":b[`${m}Month`](11);case"month":case"months":b[`${m}Date`](fa(b));case"day":case"days":case"date":b[`${m}Hours`](23);case"hour":case"hours":b[`${m}Minutes`](59);case"minute":case"minutes":b[`${m}Seconds`](59);case"second":case"seconds":b[`${m}Milliseconds`](999)}return b}function _c(i){let M=new Date(i);return Array.prototype.slice.call(arguments,1).forEach(t=>{M=Math.max(M,new Date(t))}),M}function Cc(i){let M=new Date(i);return Array.prototype.slice.call(arguments,1).forEach(t=>{M=Math.min(M,new Date(t))}),M}function An(i,M,t){return(i.getTime()-i.getTimezoneOffset()*Vi-(M.getTime()-M.getTimezoneOffset()*Vi))/t}function da(i,M,t="days"){const b=new Date(i),m=new Date(M);switch(t){case"years":case"year":return b.getFullYear()-m.getFullYear();case"months":case"month":return(b.getFullYear()-m.getFullYear())*12+b.getMonth()-m.getMonth();case"days":case"day":case"date":return An(Qt(b,"day"),Qt(m,"day"),ps);case"hours":case"hour":return An(Qt(b,"hour"),Qt(m,"hour"),uc);case"minutes":case"minute":return An(Qt(b,"minute"),Qt(m,"minute"),Vi);case"seconds":case"second":return An(Qt(b,"second"),Qt(m,"second"),1e3)}}function Fn(i){return da(i,Qt(i,"year"),"days")+1}function Ac(i){return Hn(i)===!0?"date":typeof i=="number"?"number":"string"}function Ec(i,M,t){const b=new Date(i);if(M){const m=new Date(M);if(b<m)return m}if(t){const m=new Date(t);if(b>m)return m}return b}function Mc(i,M,t){const b=new Date(i),m=new Date(M);if(t===void 0)return b.getTime()===m.getTime();switch(t){case"second":case"seconds":if(b.getSeconds()!==m.getSeconds())return!1;case"minute":case"minutes":if(b.getMinutes()!==m.getMinutes())return!1;case"hour":case"hours":if(b.getHours()!==m.getHours())return!1;case"day":case"days":case"date":if(b.getDate()!==m.getDate())return!1;case"month":case"months":if(b.getMonth()!==m.getMonth())return!1;case"year":case"years":if(b.getFullYear()!==m.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${t}`)}return!0}function fa(i){return new Date(i.getFullYear(),i.getMonth()+1,0).getDate()}function Br(i){if(i>=11&&i<=13)return`${i}th`;switch(i%10){case 1:return`${i}st`;case 2:return`${i}nd`;case 3:return`${i}rd`}return`${i}th`}const ao={YY(i,M,t){const b=this.YYYY(i,M,t)%100;return b>=0?ht(b):"-"+ht(Math.abs(b))},YYYY(i,M,t){return t??i.getFullYear()},M(i){return i.getMonth()+1},Mo(i){return Br(i.getMonth()+1)},MM(i){return ht(i.getMonth()+1)},MMM(i,M){return M.monthsShort[i.getMonth()]},MMMM(i,M){return M.months[i.getMonth()]},Q(i){return Math.ceil((i.getMonth()+1)/3)},Qo(i){return Br(this.Q(i))},D(i){return i.getDate()},Do(i){return Br(i.getDate())},DD(i){return ht(i.getDate())},DDD(i){return Fn(i)},DDDo(i){return Br(Fn(i))},DDDD(i){return ht(Fn(i),3)},d(i){return i.getDay()},do(i){return Br(i.getDay())},dd(i,M){return M.days[i.getDay()].slice(0,2)},ddd(i,M){return M.daysShort[i.getDay()]},dddd(i,M){return M.days[i.getDay()]},E(i){return i.getDay()||7},w(i){return On(i)},wo(i){return Br(On(i))},ww(i){return ht(On(i))},H(i){return i.getHours()},HH(i){return ht(i.getHours())},h(i){const M=i.getHours();return M===0?12:M>12?M%12:M},hh(i){return ht(this.h(i))},m(i){return i.getMinutes()},mm(i){return ht(i.getMinutes())},s(i){return i.getSeconds()},ss(i){return ht(i.getSeconds())},S(i){return Math.floor(i.getMilliseconds()/100)},SS(i){return ht(Math.floor(i.getMilliseconds()/10))},SSS(i){return ht(i.getMilliseconds(),3)},A(i){return i.getHours()<12?"AM":"PM"},a(i){return i.getHours()<12?"am":"pm"},aa(i){return i.getHours()<12?"a.m.":"p.m."},Z(i,M,t,b){const m=b??i.getTimezoneOffset();return io(m,":")},ZZ(i,M,t,b){const m=b??i.getTimezoneOffset();return io(m)},X(i){return Math.floor(i.getTime()/1e3)},x(i){return i.getTime()}};function ha(i,M,t,b,m){if(i!==0&&!i||i===1/0||i===-1/0)return;const c=new Date(i);if(isNaN(c))return;M===void 0&&(M=ms);const a=gs(t,or.props);return M.replace(cc,(o,n)=>o in ao?ao[o](c,a,b,m):n===void 0?o:n.split("\\]").join("]"))}function Tc(i){return Hn(i)===!0?new Date(i.getTime()):i}const ys={isValid:gc,extractDate:mc,buildDate:vc,getDayOfWeek:bc,getWeekOfYear:On,isBetweenDates:wc,addToDate:xc,subtractFromDate:Sc,adjustDate:bs,startOfDate:Qt,endOfDate:kc,getMaxDate:_c,getMinDate:Cc,getDateDiff:da,getDayOfYear:Fn,inferDateFormat:Ac,getDateBetween:Ec,isSameDate:Mc,daysInMonth:fa,formatDate:ha,clone:Tc},Xt=20,Bc=["Calendar","Years","Months"],oo=i=>Bc.includes(i),Ci=i=>/^-?[\d]+\/[0-1]\d$/.test(i),Rr=" — ";function ar(i){return i.year+"/"+ht(i.month)}const ws=Ze({name:"QDate",props:{...Yn,...cn,...Tt,modelValue:{required:!0,validator:i=>typeof i=="string"||Array.isArray(i)===!0||Object(i)===i||i===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...Yn.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:Ci},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:Ci},navigationMaxYearMonth:{type:String,validator:Ci},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:oo}},emits:[...fs,"rangeStart","rangeEnd","navigation"],setup(i,{slots:M,emit:t}){const{proxy:b}=h.getCurrentInstance(),{$q:m}=b,c=Bt(i,m),{getCache:a}=rc(),{tabindex:o,headerClass:n,getLocale:e,getCurrentDate:r}=hs(i,m);let u;const s=Vo(i),l=ra(s),f=h.ref(null),p=h.ref(We()),d=h.ref(e()),v=h.computed(()=>We()),g=h.computed(()=>e()),k=h.computed(()=>r()),C=h.ref(me(p.value,d.value)),B=h.ref(i.defaultView),N=h.computed(()=>m.lang.rtl===!0?"right":"left"),q=h.ref(N.value),j=h.ref(N.value),P=C.value.year,V=h.ref(P-P%Xt-(P<0?Xt:0)),z=h.ref(null),L=h.computed(()=>{const ne=i.landscape===!0?"landscape":"portrait";return`q-date q-date--${ne} q-date--${ne}-${i.minimal===!0?"minimal":"standard"}`+(c.value===!0?" q-date--dark q-dark":"")+(i.bordered===!0?" q-date--bordered":"")+(i.square===!0?" q-date--square no-border-radius":"")+(i.flat===!0?" q-date--flat no-shadow":"")+(i.disable===!0?" disabled":i.readonly===!0?" q-date--readonly":"")}),A=h.computed(()=>i.color||"primary"),T=h.computed(()=>i.textColor||"white"),_=h.computed(()=>i.emitImmediately===!0&&i.multiple!==!0&&i.range!==!0),y=h.computed(()=>Array.isArray(i.modelValue)===!0?i.modelValue:i.modelValue!==null&&i.modelValue!==void 0?[i.modelValue]:[]),w=h.computed(()=>y.value.filter(ne=>typeof ne=="string").map(ne=>ze(ne,p.value,d.value)).filter(ne=>ne.dateHash!==null&&ne.day!==null&&ne.month!==null&&ne.year!==null)),x=h.computed(()=>{const ne=G=>ze(G,p.value,d.value);return y.value.filter(G=>ss(G)===!0&&G.from!==void 0&&G.to!==void 0).map(G=>({from:ne(G.from),to:ne(G.to)})).filter(G=>G.from.dateHash!==null&&G.to.dateHash!==null&&G.from.dateHash<G.to.dateHash)}),S=h.computed(()=>i.calendar!=="persian"?ne=>new Date(ne.year,ne.month-1,ne.day):ne=>{const G=ro(ne.year,ne.month,ne.day);return new Date(G.gy,G.gm-1,G.gd)}),E=h.computed(()=>i.calendar==="persian"?Gt:(ne,G,ie)=>ha(new Date(ne.year,ne.month-1,ne.day,ne.hour,ne.minute,ne.second,ne.millisecond),G===void 0?p.value:G,ie===void 0?d.value:ie,ne.year,ne.timezoneOffset)),I=h.computed(()=>w.value.length+x.value.reduce((ne,G)=>ne+1+da(S.value(G.to),S.value(G.from)),0)),O=h.computed(()=>{if(i.title!==void 0&&i.title!==null&&i.title.length!==0)return i.title;if(z.value!==null){const ie=z.value.init,fe=S.value(ie);return d.value.daysShort[fe.getDay()]+", "+d.value.monthsShort[ie.month-1]+" "+ie.day+Rr+"?"}if(I.value===0)return Rr;if(I.value>1)return`${I.value} ${d.value.pluralDay}`;const ne=w.value[0],G=S.value(ne);return isNaN(G.valueOf())===!0?Rr:d.value.headerTitle!==void 0?d.value.headerTitle(G,ne):d.value.daysShort[G.getDay()]+", "+d.value.monthsShort[ne.month-1]+" "+ne.day}),W=h.computed(()=>w.value.concat(x.value.map(G=>G.from)).sort((G,ie)=>G.year-ie.year||G.month-ie.month)[0]),H=h.computed(()=>w.value.concat(x.value.map(G=>G.to)).sort((G,ie)=>ie.year-G.year||ie.month-G.month)[0]),K=h.computed(()=>{if(i.subtitle!==void 0&&i.subtitle!==null&&i.subtitle.length!==0)return i.subtitle;if(I.value===0)return Rr;if(I.value>1){const ne=W.value,G=H.value,ie=d.value.monthsShort;return ie[ne.month-1]+(ne.year!==G.year?" "+ne.year+Rr+ie[G.month-1]+" ":ne.month!==G.month?Rr+ie[G.month-1]:"")+" "+G.year}return w.value[0].year}),D=h.computed(()=>{const ne=[m.iconSet.datetime.arrowLeft,m.iconSet.datetime.arrowRight];return m.lang.rtl===!0?ne.reverse():ne}),Y=h.computed(()=>i.firstDayOfWeek!==void 0?Number(i.firstDayOfWeek):d.value.firstDayOfWeek),F=h.computed(()=>{const ne=d.value.daysShort,G=Y.value;return G>0?ne.slice(G,7).concat(ne.slice(0,G)):ne}),R=h.computed(()=>{const ne=C.value;return i.calendar!=="persian"?new Date(ne.year,ne.month,0).getDate():In(ne.year,ne.month)}),U=h.computed(()=>typeof i.eventColor=="function"?i.eventColor:()=>i.eventColor),Q=h.computed(()=>{if(i.navigationMinYearMonth===void 0)return null;const ne=i.navigationMinYearMonth.split("/");return{year:parseInt(ne[0],10),month:parseInt(ne[1],10)}}),$=h.computed(()=>{if(i.navigationMaxYearMonth===void 0)return null;const ne=i.navigationMaxYearMonth.split("/");return{year:parseInt(ne[0],10),month:parseInt(ne[1],10)}}),J=h.computed(()=>{const ne={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return Q.value!==null&&Q.value.year>=C.value.year&&(ne.year.prev=!1,Q.value.year===C.value.year&&Q.value.month>=C.value.month&&(ne.month.prev=!1)),$.value!==null&&$.value.year<=C.value.year&&(ne.year.next=!1,$.value.year===C.value.year&&$.value.month<=C.value.month&&(ne.month.next=!1)),ne}),te=h.computed(()=>{const ne={};return w.value.forEach(G=>{const ie=ar(G);ne[ie]===void 0&&(ne[ie]=[]),ne[ie].push(G.day)}),ne}),ce=h.computed(()=>{const ne={};return x.value.forEach(G=>{const ie=ar(G.from),fe=ar(G.to);if(ne[ie]===void 0&&(ne[ie]=[]),ne[ie].push({from:G.from.day,to:ie===fe?G.to.day:void 0,range:G}),ie<fe){let ve;const{year:Fe,month:we}=G.from,Ie=we<12?{year:Fe,month:we+1}:{year:Fe+1,month:1};for(;(ve=ar(Ie))<=fe;)ne[ve]===void 0&&(ne[ve]=[]),ne[ve].push({from:void 0,to:ve===fe?G.to.day:void 0,range:G}),Ie.month++,Ie.month>12&&(Ie.year++,Ie.month=1)}}),ne}),ue=h.computed(()=>{if(z.value===null)return;const{init:ne,initHash:G,final:ie,finalHash:fe}=z.value,[ve,Fe]=G<=fe?[ne,ie]:[ie,ne],we=ar(ve),Ie=ar(Fe);if(we!==Z.value&&Ie!==Z.value)return;const je={};return we===Z.value?(je.from=ve.day,je.includeFrom=!0):je.from=1,Ie===Z.value?(je.to=Fe.day,je.includeTo=!0):je.to=R.value,je}),Z=h.computed(()=>ar(C.value)),oe=h.computed(()=>{const ne={};if(i.options===void 0){for(let ie=1;ie<=R.value;ie++)ne[ie]=!0;return ne}const G=typeof i.options=="function"?i.options:ie=>i.options.includes(ie);for(let ie=1;ie<=R.value;ie++){const fe=Z.value+"/"+ht(ie);ne[ie]=G(fe)}return ne}),se=h.computed(()=>{const ne={};if(i.events===void 0)for(let G=1;G<=R.value;G++)ne[G]=!1;else{const G=typeof i.events=="function"?i.events:ie=>i.events.includes(ie);for(let ie=1;ie<=R.value;ie++){const fe=Z.value+"/"+ht(ie);ne[ie]=G(fe)===!0&&U.value(fe)}}return ne}),he=h.computed(()=>{let ne,G;const{year:ie,month:fe}=C.value;if(i.calendar!=="persian")ne=new Date(ie,fe-1,1),G=new Date(ie,fe-1,0).getDate();else{const ve=ro(ie,fe,1);ne=new Date(ve.gy,ve.gm-1,ve.gd);let Fe=fe-1,we=ie;Fe===0&&(Fe=12,we--),G=In(we,Fe)}return{days:ne.getDay()-Y.value-1,endDay:G}}),X=h.computed(()=>{const ne=[],{days:G,endDay:ie}=he.value,fe=G<0?G+7:G;if(fe<6)for(let we=ie-fe;we<=ie;we++)ne.push({i:we,fill:!0});const ve=ne.length;for(let we=1;we<=R.value;we++){const Ie={i:we,event:se.value[we],classes:[]};oe.value[we]===!0&&(Ie.in=!0,Ie.flat=!0),ne.push(Ie)}if(te.value[Z.value]!==void 0&&te.value[Z.value].forEach(we=>{const Ie=ve+we-1;Object.assign(ne[Ie],{selected:!0,unelevated:!0,flat:!1,color:A.value,textColor:T.value})}),ce.value[Z.value]!==void 0&&ce.value[Z.value].forEach(we=>{if(we.from!==void 0){const Ie=ve+we.from-1,je=ve+(we.to||R.value)-1;for(let Ue=Ie;Ue<=je;Ue++)Object.assign(ne[Ue],{range:we.range,unelevated:!0,color:A.value,textColor:T.value});Object.assign(ne[Ie],{rangeFrom:!0,flat:!1}),we.to!==void 0&&Object.assign(ne[je],{rangeTo:!0,flat:!1})}else if(we.to!==void 0){const Ie=ve+we.to-1;for(let je=ve;je<=Ie;je++)Object.assign(ne[je],{range:we.range,unelevated:!0,color:A.value,textColor:T.value});Object.assign(ne[Ie],{flat:!1,rangeTo:!0})}else{const Ie=ve+R.value-1;for(let je=ve;je<=Ie;je++)Object.assign(ne[je],{range:we.range,unelevated:!0,color:A.value,textColor:T.value})}}),ue.value!==void 0){const we=ve+ue.value.from-1,Ie=ve+ue.value.to-1;for(let je=we;je<=Ie;je++)ne[je].color=A.value,ne[je].editRange=!0;ue.value.includeFrom===!0&&(ne[we].editRangeFrom=!0),ue.value.includeTo===!0&&(ne[Ie].editRangeTo=!0)}C.value.year===k.value.year&&C.value.month===k.value.month&&(ne[ve+k.value.day-1].today=!0);const Fe=ne.length%7;if(Fe>0){const we=7-Fe;for(let Ie=1;Ie<=we;Ie++)ne.push({i:Ie,fill:!0})}return ne.forEach(we=>{let Ie="q-date__calendar-item ";we.fill===!0?Ie+="q-date__calendar-item--fill":(Ie+=`q-date__calendar-item--${we.in===!0?"in":"out"}`,we.range!==void 0&&(Ie+=` q-date__range${we.rangeTo===!0?"-to":we.rangeFrom===!0?"-from":""}`),we.editRange===!0&&(Ie+=` q-date__edit-range${we.editRangeFrom===!0?"-from":""}${we.editRangeTo===!0?"-to":""}`),(we.range!==void 0||we.editRange===!0)&&(Ie+=` text-${we.color}`)),we.classes=Ie}),ne}),re=h.computed(()=>i.disable===!0?{"aria-disabled":"true"}:{});h.watch(()=>i.modelValue,ne=>{if(u===JSON.stringify(ne))u=0;else{const G=me(p.value,d.value);Ge(G.year,G.month,G)}}),h.watch(B,()=>{f.value!==null&&b.$el.contains(document.activeElement)===!0&&f.value.focus()}),h.watch(()=>C.value.year+"|"+C.value.month,()=>{t("navigation",{year:C.value.year,month:C.value.month})}),h.watch(v,ne=>{Ce(ne,d.value,"mask"),p.value=ne}),h.watch(g,ne=>{Ce(p.value,ne,"locale"),d.value=ne});function ae(ne){u=JSON.stringify(ne)}function le(){const{year:ne,month:G,day:ie}=k.value,fe={...C.value,year:ne,month:G,day:ie},ve=te.value[ar(fe)];(ve===void 0||ve.includes(fe.day)===!1)&&st(fe),Te(fe.year,fe.month)}function ye(ne){oo(ne)===!0&&(B.value=ne)}function Be(ne,G){["month","year"].includes(ne)&&(ne==="month"?ke:Se)(G===!0?-1:1)}function Te(ne,G){B.value="Calendar",Ge(ne,G)}function Re(ne,G){if(i.range===!1||!ne){z.value=null;return}const ie=Object.assign({...C.value},ne),fe=G!==void 0?Object.assign({...C.value},G):ie;z.value={init:ie,initHash:Gt(ie),final:fe,finalHash:Gt(fe)},Te(ie.year,ie.month)}function We(){return i.calendar==="persian"?"YYYY/MM/DD":i.mask}function ze(ne,G,ie){return Ir(ne,G,ie,i.calendar,{hour:0,minute:0,second:0,millisecond:0})}function me(ne,G){const ie=Array.isArray(i.modelValue)===!0?i.modelValue:i.modelValue?[i.modelValue]:[];if(ie.length===0)return be();const fe=ie[ie.length-1],ve=ze(fe.from!==void 0?fe.from:fe,ne,G);return ve.dateHash===null?be():ve}function be(){let ne,G;if(i.defaultYearMonth!==void 0){const ie=i.defaultYearMonth.split("/");ne=parseInt(ie[0],10),G=parseInt(ie[1],10)}else{const ie=k.value!==void 0?k.value:r();ne=ie.year,G=ie.month}return{year:ne,month:G,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:ne+"/"+ht(G)+"/01"}}function ke(ne){let G=C.value.year,ie=Number(C.value.month)+ne;ie===13?(ie=1,G++):ie===0&&(ie=12,G--),Ge(G,ie),_.value===!0&&rt("month")}function Se(ne){const G=Number(C.value.year)+ne;Ge(G,C.value.month),_.value===!0&&rt("year")}function Me(ne){Ge(ne,C.value.month),B.value=i.defaultView==="Years"?"Months":"Calendar",_.value===!0&&rt("year")}function Ve(ne){Ge(C.value.year,ne),B.value="Calendar",_.value===!0&&rt("month")}function Ae(ne,G){(te.value[G]?.includes(ne.day)===!0?ge:st)(ne)}function He(ne){return{year:ne.year,month:ne.month,day:ne.day}}function Ge(ne,G,ie){if(Q.value!==null&&ne<=Q.value.year&&((G<Q.value.month||ne<Q.value.year)&&(G=Q.value.month),ne=Q.value.year),$.value!==null&&ne>=$.value.year&&((G>$.value.month||ne>$.value.year)&&(G=$.value.month),ne=$.value.year),ie!==void 0){const{hour:ve,minute:Fe,second:we,millisecond:Ie,timezoneOffset:je,timeHash:Ue}=ie;Object.assign(C.value,{hour:ve,minute:Fe,second:we,millisecond:Ie,timezoneOffset:je,timeHash:Ue})}const fe=ne+"/"+ht(G)+"/01";fe!==C.value.dateHash&&(q.value=C.value.dateHash<fe==(m.lang.rtl!==!0)?"left":"right",ne!==C.value.year&&(j.value=q.value),h.nextTick(()=>{V.value=ne-ne%Xt-(ne<0?Xt:0),Object.assign(C.value,{year:ne,month:G,day:1,dateHash:fe})}))}function Ye(ne,G,ie){const fe=ne!==null&&ne.length===1&&i.multiple===!1?ne[0]:ne,{reason:ve,details:Fe}=tt(G,ie);ae(fe),t("update:modelValue",fe,ve,Fe)}function rt(ne){const G=w.value[0]!==void 0&&w.value[0].dateHash!==null?{...w.value[0]}:{...C.value};h.nextTick(()=>{G.year=C.value.year,G.month=C.value.month;const ie=i.calendar!=="persian"?new Date(G.year,G.month,0).getDate():In(G.year,G.month);G.day=Math.min(Math.max(1,G.day),ie);const fe=Qe(G),{details:ve}=tt("",G);ae(fe),t("update:modelValue",fe,ne,ve)})}function tt(ne,G){return G.from!==void 0?{reason:`${ne}-range`,details:{...He(G.target),from:He(G.from),to:He(G.to)}}:{reason:`${ne}-day`,details:He(G)}}function Qe(ne,G,ie){return ne.from!==void 0?{from:E.value(ne.from,G,ie),to:E.value(ne.to,G,ie)}:E.value(ne,G,ie)}function st(ne){let G;if(i.multiple===!0)if(ne.from!==void 0){const ie=Gt(ne.from),fe=Gt(ne.to),ve=w.value.filter(we=>we.dateHash<ie||we.dateHash>fe),Fe=x.value.filter(({from:we,to:Ie})=>Ie.dateHash<ie||we.dateHash>fe);G=ve.concat(Fe).concat(ne).map(we=>Qe(we))}else{const ie=y.value.slice();ie.push(Qe(ne)),G=ie}else G=Qe(ne);Ye(G,"add",ne)}function ge(ne){if(i.noUnset===!0)return;let G=null;if(i.multiple===!0&&Array.isArray(i.modelValue)===!0){const ie=Qe(ne);ne.from!==void 0?G=i.modelValue.filter(fe=>fe.from!==void 0?fe.from!==ie.from&&fe.to!==ie.to:!0):G=i.modelValue.filter(fe=>fe!==ie),G.length===0&&(G=null)}Ye(G,"remove",ne)}function Ce(ne,G,ie){const fe=w.value.concat(x.value).map(Fe=>Qe(Fe,ne,G)).filter(Fe=>Fe.from!==void 0?Fe.from.dateHash!==null&&Fe.to.dateHash!==null:Fe.dateHash!==null),ve=(i.multiple===!0?fe:fe[0])||null;ae(ve),t("update:modelValue",ve,ie)}function De(){if(i.minimal!==!0)return h.h("div",{class:"q-date__header "+n.value},[h.h("div",{class:"relative-position"},[h.h(h.Transition,{name:"q-transition--fade"},()=>h.h("div",{key:"h-yr-"+K.value,class:"q-date__header-subtitle q-date__header-link "+(B.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:o.value,...a("vY",{onClick(){B.value="Years"},onKeyup(ne){ne.keyCode===13&&(B.value="Years")}})},[K.value]))]),h.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[h.h("div",{class:"relative-position col"},[h.h(h.Transition,{name:"q-transition--fade"},()=>h.h("div",{key:"h-sub"+O.value,class:"q-date__header-title-label q-date__header-link "+(B.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:o.value,...a("vC",{onClick(){B.value="Calendar"},onKeyup(ne){ne.keyCode===13&&(B.value="Calendar")}})},[O.value]))]),i.todayBtn===!0?h.h(at,{class:"q-date__header-today self-start",icon:m.iconSet.datetime.today,"aria-label":m.lang.date.today,flat:!0,size:"sm",round:!0,tabindex:o.value,onClick:le}):null])])}function Pe({label:ne,type:G,key:ie,dir:fe,goTo:ve,boundaries:Fe,cls:we}){return[h.h("div",{class:"row items-center q-date__arrow"},[h.h(at,{round:!0,dense:!0,size:"sm",flat:!0,icon:D.value[0],"aria-label":G==="Years"?m.lang.date.prevYear:m.lang.date.prevMonth,tabindex:o.value,disable:Fe.prev===!1,...a("go-#"+G,{onClick(){ve(-1)}})})]),h.h("div",{class:"relative-position overflow-hidden flex flex-center"+we},[h.h(h.Transition,{name:"q-transition--jump-"+fe},()=>h.h("div",{key:ie},[h.h(at,{flat:!0,dense:!0,noCaps:!0,label:ne,tabindex:o.value,...a("view#"+G,{onClick:()=>{B.value=G}})})]))]),h.h("div",{class:"row items-center q-date__arrow"},[h.h(at,{round:!0,dense:!0,size:"sm",flat:!0,icon:D.value[1],"aria-label":G==="Years"?m.lang.date.nextYear:m.lang.date.nextMonth,tabindex:o.value,disable:Fe.next===!1,...a("go+#"+G,{onClick(){ve(1)}})})])]}const Oe={Calendar:()=>[h.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[h.h("div",{class:"q-date__navigation row items-center no-wrap"},Pe({label:d.value.months[C.value.month-1],type:"Months",key:C.value.month,dir:q.value,goTo:ke,boundaries:J.value.month,cls:" col"}).concat(Pe({label:C.value.year,type:"Years",key:C.value.year,dir:j.value,goTo:Se,boundaries:J.value.year,cls:""}))),h.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},F.value.map(ne=>h.h("div",{class:"q-date__calendar-item"},[h.h("div",ne)]))),h.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[h.h(h.Transition,{name:"q-transition--slide-"+q.value},()=>h.h("div",{key:Z.value,class:"q-date__calendar-days fit"},X.value.map(ne=>h.h("div",{class:ne.classes},[ne.in===!0?h.h(at,{class:ne.today===!0?"q-date__today":"",dense:!0,flat:ne.flat,unelevated:ne.unelevated,color:ne.color,textColor:ne.textColor,label:ne.i,tabindex:o.value,...a("day#"+ne.i,{onClick:()=>{Ke(ne.i)},onMouseover:()=>{Xe(ne.i)}})},ne.event!==!1?()=>h.h("div",{class:"q-date__event bg-"+ne.event}):null):h.h("div",""+ne.i)]))))])])],Months(){const ne=C.value.year===k.value.year,G=fe=>Q.value!==null&&C.value.year===Q.value.year&&Q.value.month>fe||$.value!==null&&C.value.year===$.value.year&&$.value.month<fe,ie=d.value.monthsShort.map((fe,ve)=>{const Fe=C.value.month===ve+1;return h.h("div",{class:"q-date__months-item flex flex-center"},[h.h(at,{class:ne===!0&&k.value.month===ve+1?"q-date__today":null,flat:Fe!==!0,label:fe,unelevated:Fe,color:Fe===!0?A.value:null,textColor:Fe===!0?T.value:null,tabindex:o.value,disable:G(ve+1),...a("month#"+ve,{onClick:()=>{Ve(ve+1)}})})])});return i.yearsInMonthView===!0&&ie.unshift(h.h("div",{class:"row no-wrap full-width"},[Pe({label:C.value.year,type:"Years",key:C.value.year,dir:j.value,goTo:Se,boundaries:J.value.year,cls:" col"})])),h.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},ie)},Years(){const ne=V.value,G=ne+Xt,ie=[],fe=ve=>Q.value!==null&&Q.value.year>ve||$.value!==null&&$.value.year<ve;for(let ve=ne;ve<=G;ve++){const Fe=C.value.year===ve;ie.push(h.h("div",{class:"q-date__years-item flex flex-center"},[h.h(at,{key:"yr"+ve,class:k.value.year===ve?"q-date__today":null,flat:!Fe,label:ve,dense:!0,unelevated:Fe,color:Fe===!0?A.value:null,textColor:Fe===!0?T.value:null,tabindex:o.value,disable:fe(ve),...a("yr#"+ve,{onClick:()=>{Me(ve)}})})]))}return h.h("div",{class:"q-date__view q-date__years flex flex-center"},[h.h("div",{class:"col-auto"},[h.h(at,{round:!0,dense:!0,flat:!0,icon:D.value[0],"aria-label":m.lang.date.prevRangeYears(Xt),tabindex:o.value,disable:fe(ne),...a("y-",{onClick:()=>{V.value-=Xt}})})]),h.h("div",{class:"q-date__years-content col self-stretch row items-center"},ie),h.h("div",{class:"col-auto"},[h.h(at,{round:!0,dense:!0,flat:!0,icon:D.value[1],"aria-label":m.lang.date.nextRangeYears(Xt),tabindex:o.value,disable:fe(G),...a("y+",{onClick:()=>{V.value+=Xt}})})])])}};function Ke(ne){const G={...C.value,day:ne};if(i.range===!1){Ae(G,Z.value);return}if(z.value===null){const ie=X.value.find(ve=>ve.fill!==!0&&ve.i===ne);if(i.noUnset!==!0&&ie.range!==void 0){ge({target:G,from:ie.range.from,to:ie.range.to});return}if(ie.selected===!0){ge(G);return}const fe=Gt(G);z.value={init:G,initHash:fe,final:G,finalHash:fe},t("rangeStart",He(G))}else{const ie=z.value.initHash,fe=Gt(G),ve=ie<=fe?{from:z.value.init,to:G}:{from:G,to:z.value.init};z.value=null,st(ie===fe?G:{target:G,...ve}),t("rangeEnd",{from:He(ve.from),to:He(ve.to)})}}function Xe(ne){if(z.value!==null){const G={...C.value,day:ne};Object.assign(z.value,{final:G,finalHash:Gt(G)})}}return Object.assign(b,{setToday:le,setView:ye,offsetCalendar:Be,setCalendarTo:Te,setEditingRange:Re}),()=>{const ne=[h.h("div",{class:"q-date__content col relative-position"},[h.h(h.Transition,{name:"q-transition--fade"},Oe[B.value])])],G=dt(M.default);return G!==void 0&&ne.push(h.h("div",{class:"q-date__actions"},G)),i.name!==void 0&&i.disable!==!0&&l(ne,"push"),h.h("div",{class:L.value,...re.value},[De(),h.h("div",{ref:f,class:"q-date__main col column",tabindex:-1},ne)])}}}),pa=Ze({name:"QPopupProxy",props:{...Io,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(i,{slots:M,emit:t,attrs:b}){const{proxy:m}=h.getCurrentInstance(),{$q:c}=m,a=h.ref(!1),o=h.ref(null),n=h.computed(()=>parseInt(i.breakpoint,10)),{canShow:e}=Xi({showing:a});function r(){return c.screen.width<n.value||c.screen.height<n.value?"dialog":"menu"}const u=h.ref(r()),s=h.computed(()=>u.value==="menu"?{maxHeight:"99vh"}:{});h.watch(()=>r(),p=>{a.value!==!0&&(u.value=p)});function l(p){a.value=!0,t("show",p)}function f(p){a.value=!1,u.value=r(),t("hide",p)}return Object.assign(m,{show(p){e(p)===!0&&o.value.show(p)},hide(p){o.value.hide(p)},toggle(p){o.value.toggle(p)}}),qt(m,"currentComponent",()=>({type:u.value,ref:o.value})),()=>{const p={ref:o,...s.value,...b,onShow:l,onHide:f};let d;return u.value==="dialog"?d=fn:(d=dn,Object.assign(p,{target:i.target,contextMenu:i.contextMenu,noParentEvent:!0,separateClosePopup:!0})),h.h(d,p,M.default)}}}),so={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Qn={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:i=>i.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:i=>i.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:i=>i.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:i=>i.toLocaleLowerCase()}},xs=Object.keys(Qn);xs.forEach(i=>{Qn[i].regex=new RegExp(Qn[i].pattern)});const Rc=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+xs.join("")+"])|(.)","g"),lo=/[.*+?^${}()|[\]\\]/g,Ct="",Ic={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Oc(i,M,t,b){let m,c,a,o,n,e;const r=h.ref(null),u=h.ref(l());function s(){return i.autogrow===!0||["textarea","text","search","url","tel","password"].includes(i.type)}h.watch(()=>i.type+i.autogrow,p),h.watch(()=>i.mask,P=>{if(P!==void 0)d(u.value,!0);else{const V=q(u.value);p(),i.modelValue!==V&&M("update:modelValue",V)}}),h.watch(()=>i.fillMask+i.reverseFillMask,()=>{r.value===!0&&d(u.value,!0)}),h.watch(()=>i.unmaskedValue,()=>{r.value===!0&&d(u.value)});function l(){if(p(),r.value===!0){const P=B(q(i.modelValue));return i.fillMask!==!1?j(P):P}return i.modelValue}function f(P){if(P<m.length)return m.slice(-P);let V="",z=m;const L=z.indexOf(Ct);if(L!==-1){for(let A=P-z.length;A>0;A--)V+=Ct;z=z.slice(0,L)+V+z.slice(L)}return z}function p(){if(r.value=i.mask!==void 0&&i.mask.length!==0&&s(),r.value===!1){o=void 0,m="",c="";return}const P=so[i.mask]===void 0?i.mask:so[i.mask],V=typeof i.fillMask=="string"&&i.fillMask.length!==0?i.fillMask.slice(0,1):"_",z=V.replace(lo,"\\$&"),L=[],A=[],T=[];let _=i.reverseFillMask===!0,y="",w="";P.replace(Rc,(I,O,W,H,K)=>{if(H!==void 0){const D=Qn[H];T.push(D),w=D.negate,_===!0&&(A.push("(?:"+w+"+)?("+D.pattern+"+)?(?:"+w+"+)?("+D.pattern+"+)?"),_=!1),A.push("(?:"+w+"+)?("+D.pattern+")?")}else if(W!==void 0)y="\\"+(W==="\\"?"":W),T.push(W),L.push("([^"+y+"]+)?"+y+"?");else{const D=O!==void 0?O:K;y=D==="\\"?"\\\\\\\\":D.replace(lo,"\\\\$&"),T.push(D),L.push("([^"+y+"]+)?"+y+"?")}});const x=new RegExp("^"+L.join("")+"("+(y===""?".":"[^"+y+"]")+"+)?"+(y===""?"":"["+y+"]*")+"$"),S=A.length-1,E=A.map((I,O)=>O===0&&i.reverseFillMask===!0?new RegExp("^"+z+"*"+I):O===S?new RegExp("^"+I+"("+(w===""?".":w)+"+)?"+(i.reverseFillMask===!0?"$":z+"*")):new RegExp("^"+I));a=T,o=I=>{const O=x.exec(i.reverseFillMask===!0?I:I.slice(0,T.length+1));O!==null&&(I=O.slice(1).join(""));const W=[],H=E.length;for(let K=0,D=I;K<H;K++){const Y=E[K].exec(D);if(Y===null)break;D=D.slice(Y.shift().length),W.push(...Y)}return W.length!==0?W.join(""):I},m=T.map(I=>typeof I=="string"?I:Ct).join(""),c=m.split(Ct).join(V)}function d(P,V,z){const L=b.value,A=L.selectionEnd,T=L.value.length-A,_=q(P);V===!0&&p();const y=B(_),w=i.fillMask!==!1?j(y):y,x=u.value!==w;L.value!==w&&(L.value=w),x===!0&&(u.value=w),document.activeElement===L&&h.nextTick(()=>{if(w===c){const E=i.reverseFillMask===!0?c.length:0;L.setSelectionRange(E,E,"forward");return}if(z==="insertFromPaste"&&i.reverseFillMask!==!0){const E=L.selectionEnd;let I=A-1;for(let O=n;O<=I&&O<E;O++)m[O]!==Ct&&I++;g.right(L,I);return}if(["deleteContentBackward","deleteContentForward"].indexOf(z)!==-1){const E=i.reverseFillMask===!0?A===0?w.length>y.length?1:0:Math.max(0,w.length-(w===c?0:Math.min(y.length,T)+1))+1:A;L.setSelectionRange(E,E,"forward");return}if(i.reverseFillMask===!0)if(x===!0){const E=Math.max(0,w.length-(w===c?0:Math.min(y.length,T+1)));E===1&&A===1?L.setSelectionRange(E,E,"forward"):g.rightReverse(L,E)}else{const E=w.length-T;L.setSelectionRange(E,E,"backward")}else if(x===!0){const E=Math.max(0,m.indexOf(Ct),Math.min(y.length,A)-1);g.right(L,E)}else{const E=A-1;g.right(L,E)}});const S=i.unmaskedValue===!0?q(w):w;String(i.modelValue)!==S&&(i.modelValue!==null||S!=="")&&t(S,!0)}function v(P,V,z){const L=B(q(P.value));V=Math.max(0,m.indexOf(Ct),Math.min(L.length,V)),n=V,P.setSelectionRange(V,z,"forward")}const g={left(P,V){const z=m.slice(V-1).indexOf(Ct)===-1;let L=Math.max(0,V-1);for(;L>=0;L--)if(m[L]===Ct){V=L,z===!0&&V++;break}if(L<0&&m[V]!==void 0&&m[V]!==Ct)return g.right(P,0);V>=0&&P.setSelectionRange(V,V,"backward")},right(P,V){const z=P.value.length;let L=Math.min(z,V+1);for(;L<=z;L++)if(m[L]===Ct){V=L;break}else m[L-1]===Ct&&(V=L);if(L>z&&m[V-1]!==void 0&&m[V-1]!==Ct)return g.left(P,z);P.setSelectionRange(V,V,"forward")},leftReverse(P,V){const z=f(P.value.length);let L=Math.max(0,V-1);for(;L>=0;L--)if(z[L-1]===Ct){V=L;break}else if(z[L]===Ct&&(V=L,L===0))break;if(L<0&&z[V]!==void 0&&z[V]!==Ct)return g.rightReverse(P,0);V>=0&&P.setSelectionRange(V,V,"backward")},rightReverse(P,V){const z=P.value.length,L=f(z),A=L.slice(0,V+1).indexOf(Ct)===-1;let T=Math.min(z,V+1);for(;T<=z;T++)if(L[T-1]===Ct){V=T,V>0&&A===!0&&V--;break}if(T>z&&L[V-1]!==void 0&&L[V-1]!==Ct)return g.leftReverse(P,z);P.setSelectionRange(V,V,"forward")}};function k(P){M("click",P),e=void 0}function C(P){if(M("keydown",P),Ki(P)===!0||P.altKey===!0)return;const V=b.value,z=V.selectionStart,L=V.selectionEnd;if(P.shiftKey||(e=void 0),P.keyCode===37||P.keyCode===39){P.shiftKey&&e===void 0&&(e=V.selectionDirection==="forward"?z:L);const A=g[(P.keyCode===39?"right":"left")+(i.reverseFillMask===!0?"Reverse":"")];if(P.preventDefault(),A(V,e===z?L:z),P.shiftKey){const T=V.selectionStart;V.setSelectionRange(Math.min(e,T),Math.max(e,T),"forward")}}else P.keyCode===8&&i.reverseFillMask!==!0&&z===L?(g.left(V,z),V.setSelectionRange(V.selectionStart,L,"backward")):P.keyCode===46&&i.reverseFillMask===!0&&z===L&&(g.rightReverse(V,L),V.setSelectionRange(z,V.selectionEnd,"forward"))}function B(P){if(P==null||P==="")return"";if(i.reverseFillMask===!0)return N(P);const V=a;let z=0,L="";for(let A=0;A<V.length;A++){const T=P[z],_=V[A];if(typeof _=="string")L+=_;else if(T!==void 0&&_.regex.test(T))L+=_.transform!==void 0?_.transform(T):T,z++;else return L}return L}function N(P){const V=a,z=m.indexOf(Ct);let L=P.length-1,A="";for(let T=V.length-1;T>=0&&L!==-1;T--){const _=V[T];let y=P[L];if(typeof _=="string")A=_+A;else if(y!==void 0&&_.regex.test(y))do A=(_.transform!==void 0?_.transform(y):y)+A,L--,y=P[L];while(z===T&&y!==void 0&&_.regex.test(y));else return A}return A}function q(P){return typeof P!="string"||o===void 0?typeof P=="number"?o(""+P):P:o(P)}function j(P){return c.length-P.length<=0?P:i.reverseFillMask===!0&&P.length!==0?c.slice(0,-P.length)+P:P+c.slice(P.length)}return{innerValue:u,hasMask:r,moveCursorForPaste:v,updateMaskValue:d,onMaskedKeydown:C,onMaskedClick:k}}function Fc(i,M){function t(){const b=i.modelValue;try{const m="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(b)===b&&("length"in b?Array.from(b):[b]).forEach(c=>{m.items.add(c)}),{files:m.files}}catch{return{files:void 0}}}return h.computed(()=>{if(i.type==="file")return t()})}const zr=Ze({name:"QInput",inheritAttrs:!1,props:{...ni,...Ic,...cn,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...aa,"paste","change","keydown","click","animationend"],setup(i,{emit:M,attrs:t}){const{proxy:b}=h.getCurrentInstance(),{$q:m}=b,c={};let a=NaN,o,n,e=null,r;const u=h.ref(null),s=qo(i),{innerValue:l,hasMask:f,moveCursorForPaste:p,updateMaskValue:d,onMaskedKeydown:v,onMaskedClick:g}=Oc(i,M,y,u),k=Fc(i),C=h.computed(()=>rn(l.value)),B=os(T),N=oa({changeEvent:!0}),q=h.computed(()=>i.type==="textarea"||i.autogrow===!0),j=h.computed(()=>q.value===!0||["text","search","url","tel","password"].includes(i.type)),P=h.computed(()=>{const O={...N.splitAttrs.listeners.value,onInput:T,onPaste:A,onChange:x,onBlur:S,onFocus:Pt};return O.onCompositionstart=O.onCompositionupdate=O.onCompositionend=B,f.value===!0&&(O.onKeydown=v,O.onClick=g),i.autogrow===!0&&(O.onAnimationend=_),O}),V=h.computed(()=>{const O={tabindex:0,"data-autofocus":i.autofocus===!0||void 0,rows:i.type==="textarea"?6:void 0,"aria-label":i.label,name:s.value,...N.splitAttrs.attributes.value,id:N.targetUid.value,maxlength:i.maxlength,disabled:i.disable===!0,readonly:i.readonly===!0};return q.value===!1&&(O.type=i.type),i.autogrow===!0&&(O.rows=1),O});h.watch(()=>i.type,()=>{u.value&&(u.value.value=i.modelValue)}),h.watch(()=>i.modelValue,O=>{if(f.value===!0){if(n===!0&&(n=!1,String(O)===a))return;d(O)}else l.value!==O&&(l.value=O,i.type==="number"&&c.hasOwnProperty("value")===!0&&(o===!0?o=!1:delete c.value));i.autogrow===!0&&h.nextTick(w)}),h.watch(()=>i.autogrow,O=>{O===!0?h.nextTick(w):u.value!==null&&t.rows>0&&(u.value.style.height="auto")}),h.watch(()=>i.dense,()=>{i.autogrow===!0&&h.nextTick(w)});function z(){un(()=>{const O=document.activeElement;u.value!==null&&u.value!==O&&(O===null||O.id!==N.targetUid.value)&&u.value.focus({preventScroll:!0})})}function L(){u.value?.select()}function A(O){if(f.value===!0&&i.reverseFillMask!==!0){const W=O.target;p(W,W.selectionStart,W.selectionEnd)}M("paste",O)}function T(O){if(!O||!O.target)return;if(i.type==="file"){M("update:modelValue",O.target.files);return}const W=O.target.value;if(O.target.qComposing===!0){c.value=W;return}if(f.value===!0)d(W,!1,O.inputType);else if(y(W),j.value===!0&&O.target===document.activeElement){const{selectionStart:H,selectionEnd:K}=O.target;H!==void 0&&K!==void 0&&h.nextTick(()=>{O.target===document.activeElement&&W.indexOf(O.target.value)===0&&O.target.setSelectionRange(H,K)})}i.autogrow===!0&&w()}function _(O){M("animationend",O),w()}function y(O,W){r=()=>{e=null,i.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,i.modelValue!==O&&a!==O&&(a=O,W===!0&&(n=!0),M("update:modelValue",O),h.nextTick(()=>{a===O&&(a=NaN)})),r=void 0},i.type==="number"&&(o=!0,c.value=O),i.debounce!==void 0?(e!==null&&clearTimeout(e),c.value=O,e=setTimeout(r,i.debounce)):r()}function w(){requestAnimationFrame(()=>{const O=u.value;if(O!==null){const W=O.parentNode.style,{scrollTop:H}=O,{overflowY:K,maxHeight:D}=m.platform.is.firefox===!0?{}:window.getComputedStyle(O),Y=K!==void 0&&K!=="scroll";Y===!0&&(O.style.overflowY="hidden"),W.marginBottom=O.scrollHeight-1+"px",O.style.height="1px",O.style.height=O.scrollHeight+"px",Y===!0&&(O.style.overflowY=parseInt(D,10)<O.scrollHeight?"auto":"hidden"),W.marginBottom="",O.scrollTop=H}})}function x(O){B(O),e!==null&&(clearTimeout(e),e=null),r?.(),M("change",O.target.value)}function S(O){O!==void 0&&Pt(O),e!==null&&(clearTimeout(e),e=null),r?.(),o=!1,n=!1,delete c.value,i.type!=="file"&&setTimeout(()=>{u.value!==null&&(u.value.value=l.value!==void 0?l.value:"")})}function E(){return c.hasOwnProperty("value")===!0?c.value:l.value!==void 0?l.value:""}h.onBeforeUnmount(()=>{S()}),h.onMounted(()=>{i.autogrow===!0&&w()}),Object.assign(N,{innerValue:l,fieldClass:h.computed(()=>`q-${q.value===!0?"textarea":"input"}`+(i.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:h.computed(()=>i.type!=="file"&&typeof i.shadowText=="string"&&i.shadowText.length!==0),inputRef:u,emitValue:y,hasValue:C,floatingLabel:h.computed(()=>C.value===!0&&(i.type!=="number"||isNaN(l.value)===!1)||rn(i.displayValue)),getControl:()=>h.h(q.value===!0?"textarea":"input",{ref:u,class:["q-field__native q-placeholder",i.inputClass],style:i.inputStyle,...V.value,...P.value,...i.type!=="file"?{value:E()}:k.value}),getShadowControl:()=>h.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(q.value===!0?"":" text-no-wrap")},[h.h("span",{class:"invisible"},E()),h.h("span",i.shadowText)])});const I=sa(N);return Object.assign(b,{focus:z,select:L,getNativeElement:()=>u.value}),qt(b,"nativeEl",()=>u.value),I}});function Dc(i){return{entity:i.entity,dataCy:i.dataCy,defaultLabel:i.defaultLabel,routeName:i.routeName,shouldRender:i.customShouldRender||(({store:M})=>i.storeField?!!M[i.storeField]:!0),getLabel:i.getLabel||(i.labelField?({store:M})=>i.storeField&&M[i.storeField]?.[i.labelField]||i.defaultLabel:void 0),getColor:i.customGetColor||(({store:M})=>i.storeField&&M[i.storeField]?"primary":"dark"),getRouteParams:i.routeParamKey&&i.routeParamField?({store:M})=>({[i.routeParamKey]:i.storeField&&M[i.storeField]?.[i.routeParamField]}):void 0,clearActions:[...i.clearMethods?.map(M=>({store:t})=>t[M]?.())||[],...i.navActions?.map(M=>({navStore:t})=>M(t))||[]]}}const Ss=/^\d{2}-\d{2}-\d{4}$/;function jc(i){const M=i.getTimezoneOffset()*6e4;return new Date(i.getTime()+M)}function Zr(i){const M=/^\d{4}-\d{2}-\d{2}$/,t=/^\d{2}-\d{2}-\d{4}$/;if(M.test(i))return i;if(t.test(i)){const b=i.split("-");return`${b[2]}-${b[1]}-${b[0]}`}return console.warn("'Invalid date format. Expected DD-MM-YYYY' or 'YYYY-MM-DD' but got: "+i),""}function ma(i,M,t,b=[]){const m=typeof i=="string"?new Date(Zr(i)):new Date(i);if(Number.isNaN(m.getTime()))return!1;if(M){const o=typeof M=="string"?new Date(Zr(M)):new Date(M);if(m<o)return!1}if(t){const o=typeof t=="string"?new Date(Zr(t)):new Date(t);if(m>o)return!1}return b.some(o=>{if(typeof o=="string"){const n=new Date(Zr(o));return m.getFullYear()===n.getFullYear()&&m.getMonth()===n.getMonth()&&m.getDate()===n.getDate()}else{if(o instanceof Date)return m.getFullYear()===o.getFullYear()&&m.getMonth()===o.getMonth()&&m.getDate()===o.getDate();{const n=new Date(o.start_date),e=new Date(o.end_date);return m>=n&&m<=e}}})?!1:!b.some(o=>{if(typeof o=="object"&&!(o instanceof Date)&&o.start_date&&o.end_date){const n=new Date(o.start_date),e=new Date(o.end_date);if(n.getTime()===e.getTime())return m.getTime()===n.getTime()||m.getTime()===e.getTime()}return!1})}const Jt={validateAndUpdate(i,M,t){return Ss.test(M)?{...i,[t?"from":"to"]:M}:i},isEndDateValid(i,M,t=!1){if(!i||!M)return!0;try{const[b,m,c]=i.split("-"),[a,o,n]=M.split("-"),e=new Date(Number(c),Number(m)-1,Number(b)),r=new Date(Number(n),Number(o)-1,Number(a));return t?r>=e:r>e}catch{return!1}},handlePickerUpdate(i){return i===null?{from:"",to:""}:typeof i=="string"?{from:i,to:i}:i},reset(){return{from:"",to:""}},handleInput(i,M){typeof i=="string"&&M(i)}},ks={days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],daysShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsShort:["Janv","Févr","Mars","Avr","Mai","Juin","Juil","Août","Sept","Oct","Nov","Dec"],firstDayOfWeek:1,format24h:!0,pluralDay:"jours"};function Nc(i){if(!i||!/^\d{2}-\d{2}-\d{4}$/.test(i))return new Date(Number.NaN);const[M,t,b]=i.split("-").map(Number);return new Date(b,t-1,M)}function Wt(i){if(!i)return"";const M=new Date(i),t=M.getFullYear(),b=String(M.getMonth()+1).padStart(2,"0");return`${String(M.getDate()).padStart(2,"0")}-${b}-${t}`}function Kn(i,M){return new Date(i,M-1,1)}function Xn(i,M){return new Date(i,M,0)}function _s(i=new Date){const M=i.getFullYear(),t=i.getMonth()+1;let b=t-3,m=M;b<=0&&(b+=12,m-=1);const c=Kn(m,b);let a=t-1,o=M;a<=0&&(a+=12,o-=1);const n=Xn(o,a);return{from:Wt(c),to:Wt(n)}}const Cs={currentMonth:(i=new Date)=>{const M=i.getFullYear(),t=i.getMonth()+1;return{from:Wt(Kn(M,t)),to:Wt(Xn(M,t))}},previousMonth:(i=new Date)=>{const M=i.getFullYear();let b=i.getMonth()+1-1,m=M;return b===0&&(b=12,m=M-1),{from:Wt(Kn(m,b)),to:Wt(Xn(m,b))}},last3Months:_s,currentYear:(i=new Date)=>{const M=i.getFullYear();return{from:Wt(new Date(M,0,1)),to:Wt(new Date(M,11,31))}},previousYear:(i=new Date)=>{const M=i.getFullYear()-1;return{from:Wt(new Date(M,0,1)),to:Wt(new Date(M,11,31))}}};function Pc(i){if(!i)return{date:"",time:""};try{const M=new Date(i);if(Number.isNaN(M.getTime()))return console.error("Invalid date:",i),{date:"",time:""};const b=new Intl.DateTimeFormat("fr-FR",{timeZone:"Europe/Paris",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(M),m=f=>b.find(p=>p.type===f)?.value||"",c=m("day"),a=m("month"),o=m("year"),n=m("hour"),e=m("minute"),r=m("second"),u=`${c}-${a}-${o}`,l=i.includes("T")&&i.split("T")[1]?.split(":").length>=3&&i.split("T")[1].split(":")[2]!=="00"?`${n}:${e}:${r}`:`${n}:${e}`;return{date:u,time:l}}catch(M){return console.error("Error parsing ISO datetime:",M,"Input:",i),{date:"",time:""}}}function Lc(i){if(!i)return"";if(new RegExp(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/).exec(i))return i;if(new RegExp(/^\d{4}-\d{2}-\d{2}$/).exec(i))return`${i}T00:00:00Z`;if(new RegExp(/^\d{2}-\d{2}-\d{4}$/).exec(i)){const[t,b,m]=i.split("-");return`${m}-${b}-${t}T00:00:00Z`}if(new RegExp(/^\d{2}\/\d{2}\/\d{4}$/).exec(i)){const[t,b,m]=i.split("/");return`${m}-${b}-${t}T00:00:00Z`}if(new RegExp(/^\d{2}\.\d{2}\.\d{4}$/).exec(i)){const[t,b,m]=i.split(".");return`${m}-${b}-${t}T00:00:00Z`}const M=new Date(i);return Number.isNaN(M.getTime())?i:M.toISOString()}function an(i){if(!i||i.length!==10)return!1;const M=/^(\d{2})-(\d{2})-(\d{4})$/,t=i.match(M);if(!t)return!1;const b=Number.parseInt(t[1],10),m=Number.parseInt(t[2],10),c=Number.parseInt(t[3],10);return m<1||m>12||b<1||b>31?!1:As(b,m,c)}function Zt(i){if(!i)return null;if(i.length!==10)return"Le format doit être JJ-MM-AAAA";const M=/^(\d{2})-(\d{2})-(\d{4})$/,t=i.match(M);if(!t)return"Format invalide. Utilisez JJ-MM-AAAA";const b=Number.parseInt(t[1],10),m=Number.parseInt(t[2],10),c=Number.parseInt(t[3],10),a=Vc(m);if(a)return a;const o=qc(b,m,c);return o||(As(b,m,c)?null:"Date inexistante")}function Vc(i){return i<1||i>12?"Le mois doit être entre 01 et 12":null}function qc(i,M,t){return i<1||i>31?"Le jour doit être entre 01 et 31":[4,6,9,11].includes(M)&&i>30?`Le mois ${M} n'a que 30 jours`:M===2?zc(i,t):null}function zc(i,M){const t=M%4===0&&M%100!==0||M%400===0;return t&&i>29?"Février a maximum 29 jours pour les années bissextiles":!t&&i>28?"Février a maximum 28 jours":null}function As(i,M,t){const b=new Date(t,M-1,i);return b.getFullYear()===t&&b.getMonth()===M-1&&b.getDate()===i}const Uc={class:"columns justify-end"},Es=h.defineComponent({__name:"DatePicker",props:{label:{default:"Date"},date:{default:""},required:{type:Boolean,default:!1},minDate:{default:void 0},maxDate:{default:void 0},datesDisabled:{default:()=>[]},requiredErrorMessage:{default:"Ce champ est obligatoire !"},invalidDateErrorMessage:{default:"Date invalide!"},disabled:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},placeholder:{default:void 0},closeLabel:{default:"Close"},rules:{default:()=>[]}},emits:["update:modelValue","update:date"],setup(i,{emit:M}){const t=i,b=M,m=h.useAttrs(),c=h.ref(),a=h.ref(t.date),o=h.ref(null),n=h.computed(()=>a.value),e=()=>{n.value?o.value=Zt(n.value):o.value=null},r=h.computed(()=>f=>{const p=f.replaceAll("/","-");return ma(p,t.minDate,t.maxDate,t.datesDisabled)}),u=f=>{an(f)&&(a.value=f,o.value=null,b("update:date",f),b("update:modelValue",f),setTimeout(()=>{c.value?.hide?.()},0))},s=f=>{if(typeof f=="string")if(a.value=f,b("update:date",f),b("update:modelValue",f),f.length===10){const p=Zt(f);o.value=p}else f===""&&(o.value=null);else f===null&&(a.value="",o.value=null,b("update:date",""),b("update:modelValue",""))},l=h.computed(()=>{const f=[...t.rules];return t.required&&f.push(p=>!!p||t.requiredErrorMessage),f.push(p=>p?an(p)||o.value||t.invalidDateErrorMessage:!0),f});return h.watch(()=>[t.date],([f,p])=>{const d=p??f;d&&d!==a.value&&(a.value=d,e())}),(f,p)=>(h.openBlock(),h.createElementBlock("div",Uc,[h.createVNode(zr,h.mergeProps(h.unref(m),{class:"full-width","model-value":n.value,mask:"##-##-####",dense:"",label:f.label,"data-cy":"datePick",rules:l.value,disable:f.disabled,required:f.required,outlined:f.outlined,placeholder:f.placeholder,"onUpdate:modelValue":s,onBlur:e}),{append:h.withCtx(()=>[h.createVNode(ct,{name:"event",class:"cursor-pointer","data-testid":"calendar-icon-picker"},{default:h.withCtx(()=>[h.createVNode(pa,{ref_key:"popupRef",ref:c,cover:"","transition-show":"scale","transition-hide":"scale","no-focus":""},{default:h.withCtx(()=>[h.createVNode(ws,{mask:"DD-MM-YYYY","model-value":a.value,options:r.value,disable:f.disabled,"onUpdate:modelValue":u},null,8,["model-value","options","disable"])]),_:1},512)]),_:1})]),_:1},16,["model-value","label","rules","disable","required","outlined","placeholder"])]))}}),Wc={class:"date-range-wrapper"},Hc={class:"date-range-flex"},Yc={key:0,class:"actions-group"},Qc={class:"date-range-popup"},Kc={key:0,class:"presets-section"},Xc={class:"presets-grid"},Gc={class:"presets-row"},Jc={class:"presets-row"},Zc={class:"calendar-container"},$c={class:"popup-actions"},ed={key:0,class:"hint"},td={class:"text-warning text-caption q-mb-none"},rd=h.defineComponent({__name:"DateRange",props:{allowSameDate:{type:Boolean,default:!0},from:{default:""},to:{default:""},labelStart:{default:"De"},labelEnd:{default:"À"},startDateHint:{default:""},resetLabel:{default:"Reinitialiser"},closeLabel:{default:"Fermer"},locale:{default:()=>ks},required:{type:Boolean,default:!1},requiredErrorMessage:{default:"Ce champ est obligatoire !"},invalidDateErrorMessage:{default:"Date invalide!"},rules:{default:()=>[]},minDate:{default:void 0},maxDate:{default:void 0},datesDisabled:{default:()=>[]},highlightEvents:{default:()=>[]},disabled:{type:Boolean,default:!1},idCy:{default:"dateRange"},isIconCalendar:{type:Boolean},resetPosition:{},hideActions:{type:Boolean,default:!1},hideShortcuts:{type:Boolean,default:!1},shortcuts:{default:()=>[{id:"currentMonth",label:"Mois courant"},{id:"previousMonth",label:"Mois précédent"},{id:"last3Months",label:"3 derniers mois"},{id:"currentYear",label:"Année courante"},{id:"previousYear",label:"Année précédente"}]}},emits:["update:dateRange","clear"],setup(i,{expose:M,emit:t}){const b=i,m=t,c=h.ref({from:b.from,to:b.to}),a=h.ref(null),o=h.computed(()=>`from-date-${b.idCy}`),n=h.computed(()=>`to-date-${b.idCy}`),e=h.ref(null),r=h.computed(()=>b.shortcuts.map(y=>({...y,getRange:Cs[y.id]}))),u=h.computed(()=>r.value.slice(0,3)),s=h.computed(()=>r.value.slice(3)),l=()=>{c.value=Jt.reset(),d.value=null,v.value=null,e.value=null,L(),m("clear")},f=()=>{a.value&&a.value.hide()},p=()=>{if(e.value=null,!(!c.value.from||!c.value.to))for(const y of r.value)try{const w=y.getRange(new Date);if(w.from===c.value.from&&w.to===c.value.to){e.value=y.id;break}}catch(w){console.error("Error checking preset:",w)}},d=h.ref(null),v=h.ref(null),g=()=>{c.value.from?d.value=Zt(c.value.from):d.value=null},k=()=>{c.value.to?v.value=Zt(c.value.to):v.value=null},C=h.computed(()=>y=>{const w=y.replaceAll("/","-");return ma(w,b.minDate,b.maxDate,b.datesDisabled)});let B=!1;const N=()=>{B=!0,c.value.from="",d.value=null,e.value=null,L(),setTimeout(()=>{B=!1},100)},q=()=>{B=!0,c.value.to="",v.value=null,e.value=null,L(),setTimeout(()=>{B=!1},100)},j=y=>{if(y===null||y===""){const w=c.value.from;c.value.from="",d.value=null,e.value=null,L(),!c.value.to&&w&&!c.value.from&&m("clear");return}Jt.handleInput(y,w=>{const x=c.value.from;if(w&&w.length===10){const S=Zt(w);if(d.value=S,S){c.value.from=w,L();return}}else d.value=null;c.value=Jt.validateAndUpdate(c.value,w,!0),p(),L(),!w&&!c.value.to&&x&&m("clear")})},P=y=>{if(y===null||y===""){const w=c.value.to;c.value.to="",v.value=null,e.value=null,L(),!c.value.from&&w&&!c.value.to&&m("clear");return}Jt.handleInput(y,w=>{const x=c.value.to;if(w&&w.length===10){const S=Zt(w);if(v.value=S,S){c.value.to=w,L();return}}else v.value=null;c.value=Jt.validateAndUpdate(c.value,w,!1),p(),L(),!w&&!c.value.from&&x&&m("clear")})},V=()=>{setTimeout(()=>{c.value.from&&c.value.from.length===10?d.value=Zt(c.value.from):d.value=null,c.value.to&&c.value.to.length===10?v.value=Zt(c.value.to):v.value=null,!b.allowSameDate&&c.value.from&&c.value.to&&c.value.from===c.value.to&&(c.value.to=""),p()},10)},z=y=>{const w=Jt.handlePickerUpdate(y);(w.from!==c.value.from||w.to!==c.value.to)&&(e.value=null),c.value=w,L(),p()},L=()=>{m("update:dateRange",{...c.value})},A=h.computed(()=>[...b.required?[y=>!!y||b.requiredErrorMessage]:[],...b.rules,y=>{if(y&&!an(y))return d.value||b.invalidDateErrorMessage||"Date invalide!";const w=c.value.to;if(!y||!w)return!0;const x=Jt.isEndDateValid(y,w,b.allowSameDate);return b.allowSameDate?x||"La date de début doit être avant ou égale à la date de fin":x||"La date de début doit être strictement avant la date de fin"}]),T=h.computed(()=>[...b.required?[y=>!!y||b.requiredErrorMessage]:[],...b.rules,y=>{if(y&&!an(y))return v.value||b.invalidDateErrorMessage||"Date invalide!";const w=c.value.from;if(!y||!w)return!0;const x=Jt.isEndDateValid(w,y,b.allowSameDate);return b.allowSameDate?x||"La date de fin doit être après ou égale à la date de début":x||"La date de fin doit être strictement après la date de début"}]);h.watch([()=>c.value.from,()=>c.value.to],([y,w],[x,S])=>{!y&&!w&&(x||S)&&!B&&(d.value=null,v.value=null,e.value=null,m("clear"))}),h.watch(()=>b.from,y=>{y!==c.value.from&&(c.value.from=y,g(),p())}),h.watch(()=>b.to,y=>{y!==c.value.to&&(c.value.to=y,k(),p())}),M({setDateRange:y=>{c.value={from:y.from,to:y.to},g(),k(),p(),L()},getCurrentRange:()=>({from:c.value.from,to:c.value.to}),resetDate:()=>{l()}});const _=y=>{try{const w=y.getRange(new Date);c.value={from:w.from,to:w.to},e.value=y.id,g(),k(),L()}catch(w){console.error("Error applying date preset:",w)}};return h.onMounted(()=>{g(),k(),p()}),(y,w)=>(h.openBlock(),h.createElementBlock("div",Wc,[h.createElementVNode("div",Hc,[h.createVNode(zr,h.mergeProps(y.$attrs,{"data-cy":o.value,"model-value":c.value.from,mask:"##-##-####",label:y.labelStart,rules:A.value,disable:y.disabled,required:y.required,"hide-bottom-space":"","onUpdate:modelValue":j,onClear:N,onBlur:g,class:"date-input",clearable:""}),null,16,["data-cy","model-value","label","rules","disable","required"]),h.createVNode(zr,h.mergeProps(y.$attrs,{"model-value":c.value.to,mask:"##-##-####",label:y.labelEnd,"hide-bottom-space":"","data-cy":n.value,rules:T.value,disable:y.disabled,required:y.required,"onUpdate:modelValue":P,onClear:q,onBlur:k,class:"date-input",clearable:""}),null,16,["model-value","label","data-cy","rules","disable","required"]),y.hideActions?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",Yc,[h.createVNode(ct,{name:"event",size:"30px",class:"cursor-pointer calendar-icon",style:{opacity:"0.55"},"data-cy":"calendar-icon-range"},{default:h.withCtx(()=>[h.createVNode(pa,{cover:"","transition-show":"scale","transition-hide":"scale",ref_key:"popupRef",ref:a,"no-focus":""},{default:h.withCtx(()=>[h.createElementVNode("div",Qc,[y.hideShortcuts?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",Kc,[w[0]||(w[0]=h.createElementVNode("div",{class:"presets-title"},"Périodes rapides :",-1)),h.createElementVNode("div",Xc,[h.createElementVNode("div",Gc,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(u.value,x=>(h.openBlock(),h.createBlock(at,{key:x.id,label:x.label,color:e.value===x.id?"primary":"grey-7",outline:e.value!==x.id,flat:"",dense:"",size:"sm",class:"preset-btn",onClick:S=>_(x),"data-cy":`date-preset-${x.id}`},null,8,["label","color","outline","onClick","data-cy"]))),128))]),h.createElementVNode("div",Jc,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(s.value,x=>(h.openBlock(),h.createBlock(at,{key:x.id,label:x.label,color:e.value===x.id?"primary":"grey-7",outline:e.value!==x.id,flat:"",dense:"",size:"sm",class:"preset-btn",onClick:S=>_(x),"data-cy":`date-preset-${x.id}`},null,8,["label","color","outline","onClick","data-cy"]))),128))])])])),h.createElementVNode("div",Zc,[h.createVNode(ws,{"model-value":c.value,mask:"DD-MM-YYYY","today-btn":"",range:"","data-cy":"date-picker-range",locale:y.locale,options:C.value,events:y.highlightEvents,"event-color":"warning",disable:y.disabled,"onUpdate:modelValue":z,onRangeEnd:V,"no-unset":""},null,8,["model-value","locale","options","events","disable"])]),h.createElementVNode("div",$c,[h.createVNode(at,{label:y.resetLabel,color:"grey-7",flat:"",dense:"",onClick:l,class:"q-mr-sm"},null,8,["label"]),h.createVNode(at,{label:y.closeLabel,color:"primary",flat:"",dense:"",onClick:f},null,8,["label"])])])]),_:1},512)]),_:1})]))]),y.startDateHint?(h.openBlock(),h.createElementBlock("div",ed,[h.createElementVNode("p",td,h.toDisplayString(y.startDateHint),1)])):h.createCommentVNode("",!0)]))}}),Ms=jt(rd,[["__scopeId","data-v-ba826f27"]]);var ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nd(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function En(i){throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ai={exports:{}};/*! ExcelJS 19-10-2023 */var uo;function id(){return uo||(uo=1,function(i,M){(function(t){i.exports=t()})(function(){return function t(b,m,c){function a(e,r){if(!m[e]){if(!b[e]){var u=typeof En=="function"&&En;if(!r&&u)return u(e,!0);if(o)return o(e,!0);var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}var l=m[e]={exports:{}};b[e][0].call(l.exports,function(f){return a(b[e][1][f]||f)},l,l.exports,t,b,m,c)}return m[e].exports}for(var o=typeof En=="function"&&En,n=0;n<c.length;n++)a(c[n]);return a}({1:[function(t,b,m){const c=t("fs"),a=t("fast-csv"),o=t("dayjs/plugin/customParseFormat"),n=t("dayjs/plugin/utc"),e=t("dayjs").extend(o).extend(n),r=t("../utils/stream-buf"),{fs:{exists:u}}=t("../utils/utils"),s={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};b.exports=class{constructor(l){this.workbook=l,this.worksheet=null}async readFile(l,f){if(f=f||{},!await u(l))throw new Error("File not found: "+l);const p=c.createReadStream(l),d=await this.read(p,f);return p.close(),d}read(l,f){return f=f||{},new Promise((p,d)=>{const v=this.workbook.addWorksheet(f.sheetName),g=f.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],k=f.map||function(B){if(B==="")return null;const N=Number(B);if(!Number.isNaN(N)&&N!==1/0)return N;const q=g.reduce((P,V)=>{if(P)return P;const z=e(B,V,!0);return z.isValid()?z:null},null);if(q)return new Date(q.valueOf());const j=s[B];return j!==void 0?j:B},C=a.parse(f.parserOptions).on("data",B=>{v.addRow(B.map(k))}).on("end",()=>{C.emit("worksheet",v)});C.on("worksheet",p).on("error",d),l.pipe(C)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(l,f){return new Promise((p,d)=>{f=f||{};const v=this.workbook.getWorksheet(f.sheetName||f.sheetId),g=a.format(f.formatterOptions);l.on("finish",()=>{p()}),g.on("error",d),g.pipe(l);const{dateFormat:k,dateUTC:C}=f,B=f.map||(j=>{if(j){if(j.text||j.hyperlink)return j.hyperlink||j.text||"";if(j.formula||j.result)return j.result||"";if(j instanceof Date)return k?C?e.utc(j).format(k):e(j).format(k):C?e.utc(j).format():e(j).format();if(j.error)return j.error;if(typeof j=="object")return JSON.stringify(j)}return j}),N=f.includeEmptyRows===void 0||f.includeEmptyRows;let q=1;v&&v.eachRow((j,P)=>{if(N)for(;q++<P-1;)g.write([]);const{values:V}=j;V.shift(),g.write(V.map(B)),q=P}),g.end()})}writeFile(l,f){const p={encoding:(f=f||{}).encoding||"utf8"},d=c.createWriteStream(l,p);return this.write(d,f)}async writeBuffer(l){const f=new r;return await this.write(f,l),f.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(t,b,m){const c=t("../utils/col-cache");class a{constructor(n,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=n,e)if(typeof e=="string"){const u=c.decodeAddress(e);this.nativeCol=u.col+r,this.nativeColOff=0,this.nativeRow=u.row+r,this.nativeRowOff=0}else e.nativeCol!==void 0?(this.nativeCol=e.nativeCol||0,this.nativeColOff=e.nativeColOff||0,this.nativeRow=e.nativeRow||0,this.nativeRowOff=e.nativeRowOff||0):e.col!==void 0?(this.col=e.col+r,this.row=e.row+r):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(n){return n instanceof a||n==null?n:new a(n)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(n){this.nativeCol=Math.floor(n),this.nativeColOff=Math.floor((n-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(n){this.nativeRow=Math.floor(n),this.nativeRowOff=Math.floor((n-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(n){this.nativeCol=n.nativeCol,this.nativeColOff=n.nativeColOff,this.nativeRow=n.nativeRow,this.nativeRowOff=n.nativeRowOff}}b.exports=a},{"../utils/col-cache":19}],3:[function(t,b,m){const c=t("../utils/col-cache"),a=t("../utils/under-dash"),o=t("./enums"),{slideFormula:n}=t("../utils/shared-formula"),e=t("./note");class r{constructor(l,f,p){if(!l||!f)throw new Error("A Cell needs a Row");this._row=l,this._column=f,c.validateAddress(p),this._address=p,this._value=u.create(r.Types.Null,this),this.style=this._mergeStyle(l.style,f.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(l){this.style.numFmt=l}get font(){return this.style.font}set font(l){this.style.font=l}get alignment(){return this.style.alignment}set alignment(l){this.style.alignment=l}get border(){return this.style.border}set border(l){this.style.border=l}get fill(){return this.style.fill}set fill(l){this.style.fill=l}get protection(){return this.style.protection}set protection(l){this.style.protection=l}_mergeStyle(l,f,p){const d=l&&l.numFmt||f&&f.numFmt;d&&(p.numFmt=d);const v=l&&l.font||f&&f.font;v&&(p.font=v);const g=l&&l.alignment||f&&f.alignment;g&&(p.alignment=g);const k=l&&l.border||f&&f.border;k&&(p.border=k);const C=l&&l.fill||f&&f.fill;C&&(p.fill=C);const B=l&&l.protection||f&&f.protection;return B&&(p.protection=B),p}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===r.Types.Merge}merge(l,f){this._value.release(),this._value=u.create(r.Types.Merge,this,l),f||(this.style=l.style)}unmerge(){this.type===r.Types.Merge&&(this._value.release(),this._value=u.create(r.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(l){return this._value.type===r.Types.Merge&&this._value.isMergedTo(l)}get master(){return this.type===r.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===r.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(l){this.type!==r.Types.Merge?(this._value.release(),this._value=u.create(u.getType(l),this,l)):this._value.master.value=l}get note(){return this._comment&&this._comment.note}set note(l){this._comment=new e(l)}get text(){return this._value.toString()}get html(){return a.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(l){this.type===r.Types.String&&(this._value=u.create(r.Types.Hyperlink,this,{text:this._value.value,hyperlink:l}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:l}=this._row;return{sheetName:l.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(l){this.names=[l]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(l){const{definedNames:f}=this.workbook;f.removeAllNames(this.fullAddress),l.forEach(p=>{f.addEx(this.fullAddress,p)})}addName(l){this.workbook.definedNames.addEx(this.fullAddress,l)}removeName(l){this.workbook.definedNames.removeEx(this.fullAddress,l)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(l){this._dataValidations.add(this.address,l)}get model(){const{model:l}=this._value;return l.style=this.style,this._comment&&(l.comment=this._comment.model),l}set model(l){if(this._value.release(),this._value=u.create(l.type,this),this._value.model=l,l.comment)switch(l.comment.type){case"note":this._comment=e.fromModel(l.comment)}l.style?this.style=l.style:this.style={}}}r.Types=o.ValueType;const u={getType:s=>s==null?r.Types.Null:s instanceof String||typeof s=="string"?r.Types.String:typeof s=="number"?r.Types.Number:typeof s=="boolean"?r.Types.Boolean:s instanceof Date?r.Types.Date:s.text&&s.hyperlink?r.Types.Hyperlink:s.formula||s.sharedFormula?r.Types.Formula:s.richText?r.Types.RichText:s.sharedString?r.Types.SharedString:s.error?r.Types.Error:r.Types.JSON,types:[{t:r.Types.Null,f:class{constructor(s){this.model={address:s.address,type:r.Types.Null}}get value(){return null}set value(s){}get type(){return r.Types.Null}get effectiveType(){return r.Types.Null}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return""}release(){}toString(){return""}}},{t:r.Types.Number,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.Number,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Number}get effectiveType(){return r.Types.Number}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.String,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.String,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:r.Types.Date,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.Date,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Date}get effectiveType(){return r.Types.Date}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Hyperlink,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.Hyperlink,text:l?l.text:void 0,hyperlink:l?l.hyperlink:void 0},l&&l.tooltip&&(this.model.tooltip=l.tooltip)}get value(){const s={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(s.tooltip=this.model.tooltip),s}set value(s){this.model={text:s.text,hyperlink:s.hyperlink},s.tooltip&&(this.model.tooltip=s.tooltip)}get text(){return this.model.text}set text(s){this.model.text=s}get hyperlink(){return this.model.hyperlink}set hyperlink(s){this.model.hyperlink=s}get type(){return r.Types.Hyperlink}get effectiveType(){return r.Types.Hyperlink}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:r.Types.Formula,f:class{constructor(s,l){this.cell=s,this.model={address:s.address,type:r.Types.Formula,shareType:l?l.shareType:void 0,ref:l?l.ref:void 0,formula:l?l.formula:void 0,sharedFormula:l?l.sharedFormula:void 0,result:l?l.result:void 0}}_copyModel(s){const l={},f=p=>{const d=s[p];d&&(l[p]=d)};return f("formula"),f("result"),f("ref"),f("shareType"),f("sharedFormula"),l}get value(){return this._copyModel(this.model)}set value(s){this.model=this._copyModel(s)}validate(s){switch(u.getType(s)){case r.Types.Null:case r.Types.String:case r.Types.Number:case r.Types.Date:break;case r.Types.Hyperlink:case r.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(s){this.model.formula=s}get formulaType(){return this.model.formula?o.FormulaType.Master:this.model.sharedFormula?o.FormulaType.Shared:o.FormulaType.None}get result(){return this.model.result}set result(s){this.model.result=s}get type(){return r.Types.Formula}get effectiveType(){const s=this.model.result;return s==null?o.ValueType.Null:s instanceof String||typeof s=="string"?o.ValueType.String:typeof s=="number"?o.ValueType.Number:s instanceof Date?o.ValueType.Date:s.text&&s.hyperlink?o.ValueType.Hyperlink:s.formula?o.ValueType.Formula:o.ValueType.Null}get address(){return this.model.address}set address(s){this.model.address=s}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:s}=this.cell,l=s.findCell(this.model.sharedFormula);this._translatedFormula=l&&n(l.formula,l.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:r.Types.Merge,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.Merge,master:l?l.address:void 0},this._master=l,l&&l.addMergeRef()}get value(){return this._master.value}set value(s){s instanceof r?(this._master&&this._master.releaseMergeRef(),s.addMergeRef(),this._master=s):this._master.value=s}isMergedTo(s){return s===this._master}get master(){return this._master}get type(){return r.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:r.Types.JSON,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.String,value:JSON.stringify(l),rawValue:l}}get value(){return this.model.rawValue}set value(s){this.model.rawValue=s,this.model.value=JSON.stringify(s)}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:r.Types.SharedString,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.SharedString,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.SharedString}get effectiveType(){return r.Types.SharedString}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.RichText,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.String,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}toString(){return this.model.value.richText.map(s=>s.text).join("")}get type(){return r.Types.RichText}get effectiveType(){return r.Types.RichText}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:r.Types.Boolean,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.Boolean,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Boolean}get effectiveType(){return r.Types.Boolean}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Error,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.Error,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Error}get effectiveType(){return r.Types.Error}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((s,l)=>(s[l.t]=l.f,s),[]),create(s,l,f){const p=this.types[s];if(!p)throw new Error("Could not create Value of type "+s);return new p(l,f)}};b.exports=r},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,b,m){const c=t("../utils/under-dash"),a=t("./enums"),o=t("../utils/col-cache");class n{constructor(r,u,s){this._worksheet=r,this._number=u,s!==!1&&(this.defn=s)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return o.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(r){r?(this.key=r.key,this.width=r.width!==void 0?r.width:9,this.outlineLevel=r.outlineLevel,r.style?this.style=r.style:this.style={},this.header=r.header,this._hidden=!!r.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(r){r!==void 0?(this._header=r,this.headers.forEach((u,s)=>{this._worksheet.getCell(s+1,this.number).value=u})):this._header=void 0}get key(){return this._key}set key(r){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=r,r&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(r){this._hidden=r}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(r){this._outlineLevel=r}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(r){return this.width===r.width&&this.hidden===r.hidden&&this.outlineLevel===r.outlineLevel&&c.isEqual(this.style,r.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const r=this.style;return!r||!(r.font||r.numFmt||r.alignment||r.border||r.fill||r.protection)}get headerCount(){return this.headers.length}eachCell(r,u){const s=this.number;u||(u=r,r=null),this._worksheet.eachRow(r,(l,f)=>{u(l.getCell(s),f)})}get values(){const r=[];return this.eachCell((u,s)=>{u&&u.type!==a.ValueType.Null&&(r[s]=u.value)}),r}set values(r){if(!r)return;const u=this.number;let s=0;r.hasOwnProperty("0")&&(s=1),r.forEach((l,f)=>{this._worksheet.getCell(f+s,u).value=l})}_applyStyle(r,u){return this.style[r]=u,this.eachCell(s=>{s[r]=u}),u}get numFmt(){return this.style.numFmt}set numFmt(r){this._applyStyle("numFmt",r)}get font(){return this.style.font}set font(r){this._applyStyle("font",r)}get alignment(){return this.style.alignment}set alignment(r){this._applyStyle("alignment",r)}get protection(){return this.style.protection}set protection(r){this._applyStyle("protection",r)}get border(){return this.style.border}set border(r){this._applyStyle("border",r)}get fill(){return this.style.fill}set fill(r){this._applyStyle("fill",r)}static toModel(r){const u=[];let s=null;return r&&r.forEach((l,f)=>{l.isDefault?s&&(s=null):s&&l.equivalentTo(s)?s.max=f+1:(s={min:f+1,max:f+1,width:l.width!==void 0?l.width:9,style:l.style,isCustomWidth:l.isCustomWidth,hidden:l.hidden,outlineLevel:l.outlineLevel,collapsed:l.collapsed},u.push(s))}),u.length?u:void 0}static fromModel(r,u){const s=[];let l=1,f=0;for(u=(u=u||[]).sort(function(p,d){return p.min-d.min});f<u.length;){const p=u[f++];for(;l<p.min;)s.push(new n(r,l++));for(;l<=p.max;)s.push(new n(r,l++,p))}return s.length?s:null}}b.exports=n},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,b,m){b.exports=class{constructor(c){this.model=c||{}}add(c,a){return this.model[c]=a}find(c){return this.model[c]}remove(c){this.model[c]=void 0}}},{}],6:[function(t,b,m){const c=t("../utils/under-dash"),a=t("../utils/col-cache"),o=t("../utils/cell-matrix"),n=t("./range"),e=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;b.exports=class{constructor(){this.matrixMap={}}getMatrix(r){return this.matrixMap[r]||(this.matrixMap[r]=new o)}add(r,u){const s=a.decodeEx(r);this.addEx(s,u)}addEx(r,u){const s=this.getMatrix(u);if(r.top)for(let l=r.left;l<=r.right;l++)for(let f=r.top;f<=r.bottom;f++){const p={sheetName:r.sheetName,address:a.n2l(l)+f,row:f,col:l};s.addCellEx(p)}else s.addCellEx(r)}remove(r,u){const s=a.decodeEx(r);this.removeEx(s,u)}removeEx(r,u){this.getMatrix(u).removeCellEx(r)}removeAllNames(r){c.each(this.matrixMap,u=>{u.removeCellEx(r)})}forEach(r){c.each(this.matrixMap,(u,s)=>{u.forEach(l=>{r(s,l)})})}getNames(r){return this.getNamesEx(a.decodeEx(r))}getNamesEx(r){return c.map(this.matrixMap,(u,s)=>u.findCellEx(r)&&s).filter(Boolean)}_explore(r,u){u.mark=!1;const{sheetName:s}=u,l=new n(u.row,u.col,u.row,u.col,s);let f,p;function d(g,k){const C=r.findCellAt(s,g,u.col);return!(!C||!C.mark)&&(l[k]=g,C.mark=!1,!0)}for(p=u.row-1;d(p,"top");p--);for(p=u.row+1;d(p,"bottom");p++);function v(g,k){const C=[];for(p=l.top;p<=l.bottom;p++){const B=r.findCellAt(s,p,g);if(!B||!B.mark)return!1;C.push(B)}l[k]=g;for(let B=0;B<C.length;B++)C[B].mark=!1;return!0}for(f=u.col-1;v(f,"left");f--);for(f=u.col+1;v(f,"right");f++);return l}getRanges(r,u){return(u=u||this.matrixMap[r])?(u.forEach(s=>{s.mark=!0}),{name:r,ranges:u.map(s=>s.mark&&this._explore(u,s)).filter(Boolean).map(s=>s.$shortRange)}):{name:r,ranges:[]}}normaliseMatrix(r,u){r.forEachInSheet(u,(s,l,f)=>{s&&(s.row===l&&s.col===f||(s.row=l,s.col=f,s.address=a.n2l(f)+l))})}spliceRows(r,u,s,l){c.each(this.matrixMap,f=>{f.spliceRows(r,u,s,l),this.normaliseMatrix(f,r)})}spliceColumns(r,u,s,l){c.each(this.matrixMap,f=>{f.spliceColumns(r,u,s,l),this.normaliseMatrix(f,r)})}get model(){return c.map(this.matrixMap,(r,u)=>this.getRanges(u,r)).filter(r=>r.ranges.length)}set model(r){const u=this.matrixMap={};r.forEach(s=>{const l=u[s.name]=new o;s.ranges.forEach(f=>{e.test(f.split("!").pop()||"")&&l.addCell(f)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,b,m){b.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(t,b,m){const c=t("../utils/col-cache"),a=t("./anchor");b.exports=class{constructor(o,n){this.worksheet=o,this.model=n}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(o){let{type:n,imageId:e,range:r,hyperlinks:u}=o;if(this.type=n,this.imageId=e,n==="image")if(typeof r=="string"){const s=c.decode(r);this.range={tl:new a(this.worksheet,{col:s.left,row:s.top},-1),br:new a(this.worksheet,{col:s.right,row:s.bottom},0),editAs:"oneCell"}}else this.range={tl:new a(this.worksheet,r.tl,0),br:r.br&&new a(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:u||r.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,b,m){const c=t("../utils/under-dash");class a{constructor(n){this.note=n}get model(){let n=null;switch(typeof this.note){case"string":n={type:"note",note:{texts:[{text:this.note}]}};break;default:n={type:"note",note:this.note}}return c.deepMerge({},a.DEFAULT_CONFIGS,n)}set model(n){const{note:e}=n,{texts:r}=e;r.length===1&&Object.keys(r[0]).length===1?this.note=r[0].text:this.note=e}static fromModel(n){const e=new a;return e.model=n,e}}a.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},b.exports=a},{"../utils/under-dash":26}],10:[function(t,b,m){const c=t("../utils/col-cache");class a{constructor(){this.decode(arguments)}setTLBR(n,e,r,u,s){if(arguments.length<4){const l=c.decodeAddress(n),f=c.decodeAddress(e);this.model={top:Math.min(l.row,f.row),left:Math.min(l.col,f.col),bottom:Math.max(l.row,f.row),right:Math.max(l.col,f.col),sheetName:r},this.setTLBR(l.row,l.col,f.row,f.col,s)}else this.model={top:Math.min(n,r),left:Math.min(e,u),bottom:Math.max(n,r),right:Math.max(e,u),sheetName:s}}decode(n){switch(n.length){case 5:this.setTLBR(n[0],n[1],n[2],n[3],n[4]);break;case 4:this.setTLBR(n[0],n[1],n[2],n[3]);break;case 3:this.setTLBR(n[0],n[1],n[2]);break;case 2:this.setTLBR(n[0],n[1]);break;case 1:{const e=n[0];if(e instanceof a)this.model={top:e.model.top,left:e.model.left,bottom:e.model.bottom,right:e.model.right,sheetName:e.sheetName};else if(e instanceof Array)this.decode(e);else if(e.top&&e.left&&e.bottom&&e.right)this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName};else{const r=c.decodeEx(e);r.top?this.model={top:r.top,left:r.left,bottom:r.bottom,right:r.right,sheetName:r.sheetName}:this.model={top:r.row,left:r.col,bottom:r.row,right:r.col,sheetName:r.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+n.length)}}get top(){return this.model.top||1}set top(n){this.model.top=n}get left(){return this.model.left||1}set left(n){this.model.left=n}get bottom(){return this.model.bottom||1}set bottom(n){this.model.bottom=n}get right(){return this.model.right||1}set right(n){this.model.right=n}get sheetName(){return this.model.sheetName}set sheetName(n){this.model.sheetName=n}get _serialisedSheetName(){const{sheetName:n}=this.model;return n?/^[a-zA-Z0-9]*$/.test(n)?n+"!":`'${n}'!`:""}expand(n,e,r,u){(!this.model.top||n<this.top)&&(this.top=n),(!this.model.left||e<this.left)&&(this.left=e),(!this.model.bottom||r>this.bottom)&&(this.bottom=r),(!this.model.right||u>this.right)&&(this.right=u)}expandRow(n){if(n){const{dimensions:e,number:r}=n;e&&this.expand(r,e.min,r,e.max)}}expandToAddress(n){const e=c.decodeEx(n);this.expand(e.row,e.col,e.row,e.col)}get tl(){return c.n2l(this.left)+this.top}get $t$l(){return`$${c.n2l(this.left)}$${this.top}`}get br(){return c.n2l(this.right)+this.bottom}get $b$r(){return`$${c.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&!(n.bottom<this.top)&&!(n.top>this.bottom)&&!(n.right<this.left)&&!(n.left>this.right)}contains(n){const e=c.decodeEx(n);return this.containsEx(e)}containsEx(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&n.row>=this.top&&n.row<=this.bottom&&n.col>=this.left&&n.col<=this.right}forEachAddress(n){for(let e=this.left;e<=this.right;e++)for(let r=this.top;r<=this.bottom;r++)n(c.encodeAddress(r,e),r,e)}}b.exports=a},{"../utils/col-cache":19}],11:[function(t,b,m){const c=t("../utils/under-dash"),a=t("./enums"),o=t("../utils/col-cache"),n=t("./cell");b.exports=class{constructor(e,r){this._worksheet=e,this._number=r,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let r=this._cells[e.col-1];if(!r){const u=this._worksheet.getColumn(e.col);r=new n(this,u,e.address),this._cells[e.col-1]=r}return r}getCell(e){if(typeof e=="string"){const r=this._worksheet.getColumnKey(e);e=r?r.number:o.l2n(e)}return this._cells[e-1]||this.getCellEx({address:o.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,r){const u=e+r;for(var s=arguments.length,l=new Array(s>2?s-2:0),f=2;f<s;f++)l[f-2]=arguments[f];const p=l.length-r,d=this._cells.length;let v,g,k;if(p<0)for(v=e+l.length;v<=d;v++)k=this._cells[v-1],g=this._cells[v-p-1],g?(k=this.getCell(v),k.value=g.value,k.style=g.style,k._comment=g._comment):k&&(k.value=null,k.style={},k._comment=void 0);else if(p>0)for(v=d;v>=u;v--)g=this._cells[v-1],g?(k=this.getCell(v+p),k.value=g.value,k.style=g.style,k._comment=g._comment):this._cells[v+p-1]=void 0;for(v=0;v<l.length;v++)k=this.getCell(e+v),k.value=l[v],k.style={},k._comment=void 0}eachCell(e,r){if(r||(r=e,e=null),e&&e.includeEmpty){const u=this._cells.length;for(let s=1;s<=u;s++)r(this.getCell(s),s)}else this._cells.forEach((u,s)=>{u&&u.type!==a.ValueType.Null&&r(u,s+1)})}addPageBreak(e,r){const u=this._worksheet,s=Math.max(0,e-1)||0,l=Math.max(0,r-1)||16838,f={id:this._number,max:l,man:1};s&&(f.min=s),u.rowBreaks.push(f)}get values(){const e=[];return this._cells.forEach(r=>{r&&r.type!==a.ValueType.Null&&(e[r.col]=r.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let r=0;e.hasOwnProperty("0")&&(r=1),e.forEach((u,s)=>{u!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,s+r),row:this._number,col:s+r}).value=u)})}else this._worksheet.eachColumnKey((r,u)=>{e[u]!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,r.number),row:this._number,col:r.number}).value=e[u])})}get hasValues(){return c.some(this._cells,e=>e&&e.type!==a.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,r=0;return this._cells.forEach(u=>{u&&u.type!==a.ValueType.Null&&((!e||e>u.col)&&(e=u.col),r<u.col&&(r=u.col))}),e>0?{min:e,max:r}:null}_applyStyle(e,r){return this.style[e]=r,this._cells.forEach(u=>{u&&(u[e]=r)}),r}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let r=0,u=0;return this._cells.forEach(s=>{if(s){const l=s.model;l&&((!r||r>s.col)&&(r=s.col),u<s.col&&(u=s.col),e.push(l))}}),this.height||e.length?{cells:e,number:this.number,min:r,max:u,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let r;this._cells=[],e.cells.forEach(u=>{switch(u.type){case n.Types.Merge:break;default:{let s;if(u.address)s=o.decodeAddress(u.address);else if(r){const{row:l}=r,f=r.col+1;s={row:l,col:f,address:o.encodeAddress(l,f),$col$row:`$${o.n2l(f)}$${l}`}}r=s,this.getCellEx(s).model=u;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(t,b,m){const c=t("../utils/col-cache");class a{constructor(n,e,r){this.table=n,this.column=e,this.index=r}_set(n,e){this.table.cacheState(),this.column[n]=e}get name(){return this.column.name}set name(n){this._set("name",n)}get filterButton(){return this.column.filterButton}set filterButton(n){this.column.filterButton=n}get style(){return this.column.style}set style(n){this.column.style=n}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(n){this._set("totalsRowLabel",n)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(n){this._set("totalsRowFunction",n)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(n){this._set("totalsRowResult",n)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(n){this._set("totalsRowFormula",n)}}b.exports=class{constructor(o,n){this.worksheet=o,n&&(this.table=n,this.validate(),this.store())}getFormula(o){switch(o.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${o.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${o.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${o.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${o.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${o.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${o.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${o.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${o.name}])`;case"custom":return o.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+o.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:o}=this,n=(p,d,v)=>{p[d]===void 0&&(p[d]=v)};n(o,"headerRow",!0),n(o,"totalsRow",!1),n(o,"style",{}),n(o.style,"theme","TableStyleMedium2"),n(o.style,"showFirstColumn",!1),n(o.style,"showLastColumn",!1),n(o.style,"showRowStripes",!1),n(o.style,"showColumnStripes",!1);const e=(p,d)=>{if(!p)throw new Error(d)};e(o.ref,"Table must have ref"),e(o.columns,"Table must have column definitions"),e(o.rows,"Table must have row definitions"),o.tl=c.decodeAddress(o.ref);const{row:r,col:u}=o.tl;e(r>0,"Table must be on valid row"),e(u>0,"Table must be on valid col");const{width:s,filterHeight:l,tableHeight:f}=this;o.autoFilterRef=c.encode(r,u,r+l-1,u+s-1),o.tableRef=c.encode(r,u,r+f-1,u+s-1),o.columns.forEach((p,d)=>{e(p.name,`Column ${d} must have a name`),d===0?n(p,"totalsRowLabel","Total"):(n(p,"totalsRowFunction","none"),p.totalsRowFormula=this.getFormula(p))})}store(){const o=(l,f)=>{f&&Object.keys(f).forEach(p=>{l[p]=f[p]})},{worksheet:n,table:e}=this,{row:r,col:u}=e.tl;let s=0;if(e.headerRow){const l=n.getRow(r+s++);e.columns.forEach((f,p)=>{const{style:d,name:v}=f,g=l.getCell(u+p);g.value=v,o(g,d)})}if(e.rows.forEach(l=>{const f=n.getRow(r+s++);l.forEach((p,d)=>{const v=f.getCell(u+d);v.value=p,o(v,e.columns[d].style)})}),e.totalsRow){const l=n.getRow(r+s++);e.columns.forEach((f,p)=>{const d=l.getCell(u+p);if(p===0)d.value=f.totalsRowLabel;else{const v=this.getFormula(f);d.value=v?{formula:f.totalsRowFormula,result:f.totalsRowResult}:null}o(d,f.style)})}}load(o){const{table:n}=this,{row:e,col:r}=n.tl;let u=0;if(n.headerRow){const s=o.getRow(e+u++);n.columns.forEach((l,f)=>{s.getCell(r+f).value=l.name})}if(n.rows.forEach(s=>{const l=o.getRow(e+u++);s.forEach((f,p)=>{l.getCell(r+p).value=f})}),n.totalsRow){const s=o.getRow(e+u++);n.columns.forEach((l,f)=>{const p=s.getCell(r+f);f===0?p.value=l.totalsRowLabel:this.getFormula(l)&&(p.value={formula:l.totalsRowFormula,result:l.totalsRowResult})})}}get model(){return this.table}set model(o){this.table=o}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const o=c.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let n=0;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(o.col+r).value=null}else{for(let n=this.tableHeight;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(o.col+r).value=null}for(let n=0;n<this.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=this.width;r<this._cache.width;r++)e.getCell(o.col+r).value=null}}this.store()}addRow(o,n){this.cacheState(),n===void 0?this.table.rows.push(o):this.table.rows.splice(n,0,o)}removeRows(o){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(o,n)}getColumn(o){const n=this.table.columns[o];return new a(this,n,o)}addColumn(o,n,e){this.cacheState(),e===void 0?(this.table.columns.push(o),this.table.rows.forEach((r,u)=>{r.push(n[u])})):(this.table.columns.splice(e,0,o),this.table.rows.forEach((r,u)=>{r.splice(e,0,n[u])}))}removeColumns(o){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(o,n),this.table.rows.forEach(e=>{e.splice(o,n)})}_assign(o,n,e){this.cacheState(),o[n]=e}get ref(){return this.table.ref}set ref(o){this._assign(this.table,"ref",o)}get name(){return this.table.name}set name(o){this.table.name=o}get displayName(){return this.table.displyName||this.table.name}set displayNamename(o){this.table.displayName=o}get headerRow(){return this.table.headerRow}set headerRow(o){this._assign(this.table,"headerRow",o)}get totalsRow(){return this.table.totalsRow}set totalsRow(o){this._assign(this.table,"totalsRow",o)}get theme(){return this.table.style.name}set theme(o){this.table.style.name=o}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(o){this.table.style.showFirstColumn=o}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(o){this.table.style.showLastColumn=o}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(o){this.table.style.showRowStripes=o}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(o){this.table.style.showColumnStripes=o}}},{"../utils/col-cache":19}],13:[function(t,b,m){const c=t("./worksheet"),a=t("./defined-names"),o=t("../xlsx/xlsx"),n=t("../csv/csv");b.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new a}get xlsx(){return this._xlsx||(this._xlsx=new o(this)),this._xlsx}get csv(){return this._csv||(this._csv=new n(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,r){const u=this.nextId;r&&(typeof r=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),r={properties:{tabColor:{argb:r}}}):(r.argb||r.theme||r.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),r={properties:{tabColor:r}}));const s=this._worksheets.reduce((p,d)=>(d&&d.orderNo)>p?d.orderNo:p,0),l=Object.assign({},r,{id:u,name:e,orderNo:s+1,workbook:this}),f=new c(l);return this._worksheets[u]=f,f}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const r=this.getWorksheet(e);r&&r.destroy()}getWorksheet(e){return e===void 0?this._worksheets.find(Boolean):typeof e=="number"?this._worksheets[e]:typeof e=="string"?this._worksheets.find(r=>r&&r.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,r)=>e.orderNo-r.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(r=>{e(r,r.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const r=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),r}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(e=>e.model),sheets:this.worksheets.map(e=>e.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(r=>{const{id:u,name:s,state:l}=r,f=e.sheets&&e.sheets.findIndex(p=>p.id===u);(this._worksheets[u]=new c({id:u,name:s,orderNo:f,state:l,workbook:this})).model=r}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(t,b,m){const c=t("../utils/under-dash"),a=t("../utils/col-cache"),o=t("./range"),n=t("./row"),e=t("./column"),r=t("./enums"),u=t("./image"),s=t("./table"),l=t("./data-validations"),f=t("../utils/encryptor"),{copyStyle:p}=t("../utils/copy-style");b.exports=class{constructor(d){d=d||{},this._workbook=d.workbook,this.id=d.id,this.orderNo=d.orderNo,this.name=d.name,this.state=d.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},d.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!d.pageSetup||!d.pageSetup.fitToWidth&&!d.pageSetup.fitToHeight||d.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},d.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},d.headerFooter),this.dataValidations=new l,this.views=d.views||[],this.autoFilter=d.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(d){if(d===void 0&&(d="sheet"+this.id),this._name!==d){if(typeof d!="string")throw new Error("The name has to be a string.");if(d==="")throw new Error("The name can't be empty.");if(d==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(d))throw new Error(`Worksheet name ${d} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(d))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+d);if(d&&d.length>31&&(console.warn(`Worksheet name ${d} exceeds 31 chars. This will be truncated`),d=d.substring(0,31)),this._workbook._worksheets.find(v=>v&&v.name.toLowerCase()===d.toLowerCase()))throw new Error("Worksheet name already exists: "+d);this._name=d}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const d=new o;return this._rows.forEach(v=>{if(v){const g=v.dimensions;g&&d.expand(v.number,g.min,v.number,g.max)}}),d}get columns(){return this._columns}set columns(d){this._headerRowCount=d.reduce((k,C)=>{const B=(C.header?1:C.headers&&C.headers.length)||0;return Math.max(k,B)},0);let v=1;const g=this._columns=[];d.forEach(k=>{const C=new e(this,v++,!1);g.push(C),C.defn=k})}getColumnKey(d){return this._keys[d]}setColumnKey(d,v){this._keys[d]=v}deleteColumnKey(d){delete this._keys[d]}eachColumnKey(d){c.each(this._keys,d)}getColumn(d){if(typeof d=="string"){const v=this._keys[d];if(v)return v;d=a.l2n(d)}if(this._columns||(this._columns=[]),d>this._columns.length){let v=this._columns.length+1;for(;v<=d;)this._columns.push(new e(this,v++))}return this._columns[d-1]}spliceColumns(d,v){const g=this._rows.length;for(var k=arguments.length,C=new Array(k>2?k-2:0),B=2;B<k;B++)C[B-2]=arguments[B];if(C.length>0)for(let P=0;P<g;P++){const V=[d,v];C.forEach(L=>{V.push(L[P]||null)});const z=this.getRow(P+1);z.splice.apply(z,V)}else this._rows.forEach(P=>{P&&P.splice(d,v)});const N=C.length-v,q=d+v,j=this._columns.length;if(N<0)for(let P=d+C.length;P<=j;P++)this.getColumn(P).defn=this.getColumn(P-N).defn;else if(N>0)for(let P=j;P>=q;P--)this.getColumn(P+N).defn=this.getColumn(P).defn;for(let P=d;P<d+C.length;P++)this.getColumn(P).defn=null;this.workbook.definedNames.spliceColumns(this.name,d,v,C.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let d=0;return this.eachRow(v=>{d=Math.max(d,v.cellCount)}),d}get actualColumnCount(){const d=[];let v=0;return this.eachRow(g=>{g.eachCell(k=>{let{col:C}=k;d[C]||(d[C]=!0,v++)})}),v}_commitRow(){}get _lastRowNumber(){const d=this._rows;let v=d.length;for(;v>0&&d[v-1]===void 0;)v--;return v}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(d){return this._rows[d-1]}findRows(d,v){return this._rows.slice(d-1,d-1+v)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let d=0;return this.eachRow(()=>{d++}),d}getRow(d){let v=this._rows[d-1];return v||(v=this._rows[d-1]=new n(this,d)),v}getRows(d,v){if(v<1)return;const g=[];for(let k=d;k<d+v;k++)g.push(this.getRow(k));return g}addRow(d){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const g=this._nextRow,k=this.getRow(g);return k.values=d,this._setStyleOption(g,v[0]==="i"?v:"n"),k}addRows(d){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const g=[];return d.forEach(k=>{g.push(this.addRow(k,v))}),g}insertRow(d,v){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(d,0,v),this._setStyleOption(d,g),this.getRow(d)}insertRows(d,v){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(d,0,...v),g!=="n")for(let k=0;k<v.length;k++)g[0]==="o"&&this.findRow(v.length+d+k)!==void 0?this._copyStyle(v.length+d+k,d+k,g[1]==="+"):g[0]==="i"&&this.findRow(d-1)!==void 0&&this._copyStyle(d-1,d+k,g[1]==="+");return this.getRows(d,v.length)}_setStyleOption(d){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";v[0]==="o"&&this.findRow(d+1)!==void 0?this._copyStyle(d+1,d,v[1]==="+"):v[0]==="i"&&this.findRow(d-1)!==void 0&&this._copyStyle(d-1,d,v[1]==="+")}_copyStyle(d,v){let g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const k=this.getRow(d),C=this.getRow(v);C.style=p(k.style),k.eachCell({includeEmpty:g},(B,N)=>{C.getCell(N).style=p(B.style)}),C.height=k.height}duplicateRow(d,v){let g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const k=this._rows[d-1],C=new Array(v).fill(k.values);this.spliceRows(d+1,g?0:v,...C);for(let B=0;B<v;B++){const N=this._rows[d+B];N.style=k.style,N.height=k.height,k.eachCell({includeEmpty:!0},(q,j)=>{N.getCell(j).style=q.style})}}spliceRows(d,v){const g=d+v;for(var k=arguments.length,C=new Array(k>2?k-2:0),B=2;B<k;B++)C[B-2]=arguments[B];const N=C.length,q=N-v,j=this._rows.length;let P,V;if(q<0)for(d===j&&(this._rows[j-1]=void 0),P=g;P<=j;P++)if(V=this._rows[P-1],V){const z=this.getRow(P+q);z.values=V.values,z.style=V.style,z.height=V.height,V.eachCell({includeEmpty:!0},(L,A)=>{z.getCell(A).style=L.style}),this._rows[P-1]=void 0}else this._rows[P+q-1]=void 0;else if(q>0)for(P=j;P>=g;P--)if(V=this._rows[P-1],V){const z=this.getRow(P+q);z.values=V.values,z.style=V.style,z.height=V.height,V.eachCell({includeEmpty:!0},(L,A)=>{if(z.getCell(A).style=L.style,L._value.constructor.name==="MergeValue"){const T=this.getRow(L._row._number+N).getCell(A),_=L._value._master,y=this.getRow(_._row._number+N).getCell(_._column._number);T.merge(y)}})}else this._rows[P+q-1]=void 0;for(P=0;P<N;P++){const z=this.getRow(d+P);z.style={},z.values=C[P]}this.workbook.definedNames.spliceRows(this.name,d,v,N)}eachRow(d,v){if(v||(v=d,d=void 0),d&&d.includeEmpty){const g=this._rows.length;for(let k=1;k<=g;k++)v(this.getRow(k),k)}else this._rows.forEach(g=>{g&&g.hasValues&&v(g,g.number)})}getSheetValues(){const d=[];return this._rows.forEach(v=>{v&&(d[v.number]=v.values)}),d}findCell(d,v){const g=a.getAddress(d,v),k=this._rows[g.row-1];return k?k.findCell(g.col):void 0}getCell(d,v){const g=a.getAddress(d,v);return this.getRow(g.row).getCellEx(g)}mergeCells(){for(var d=arguments.length,v=new Array(d),g=0;g<d;g++)v[g]=arguments[g];const k=new o(v);this._mergeCellsInternal(k)}mergeCellsWithoutStyle(){for(var d=arguments.length,v=new Array(d),g=0;g<d;g++)v[g]=arguments[g];const k=new o(v);this._mergeCellsInternal(k,!0)}_mergeCellsInternal(d,v){c.each(this._merges,k=>{if(k.intersects(d))throw new Error("Cannot merge already merged cells")});const g=this.getCell(d.top,d.left);for(let k=d.top;k<=d.bottom;k++)for(let C=d.left;C<=d.right;C++)(k>d.top||C>d.left)&&this.getCell(k,C).merge(g,v);this._merges[g.address]=d}_unMergeMaster(d){const v=this._merges[d.address];if(v){for(let g=v.top;g<=v.bottom;g++)for(let k=v.left;k<=v.right;k++)this.getCell(g,k).unmerge();delete this._merges[d.address]}}get hasMerges(){return c.some(this._merges,Boolean)}unMergeCells(){for(var d=arguments.length,v=new Array(d),g=0;g<d;g++)v[g]=arguments[g];const k=new o(v);for(let C=k.top;C<=k.bottom;C++)for(let B=k.left;B<=k.right;B++){const N=this.findCell(C,B);N&&(N.type===r.ValueType.Merge?this._unMergeMaster(N.master):this._merges[N.address]&&this._unMergeMaster(N))}}fillFormula(d,v,g){let k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const C=a.decode(d),{top:B,left:N,bottom:q,right:j}=C,P=j-N+1,V=a.encodeAddress(B,N),z=k==="shared";let L;L=typeof g=="function"?g:Array.isArray(g)?Array.isArray(g[0])?(T,_)=>g[T-B][_-N]:(T,_)=>g[(T-B)*P+(_-N)]:()=>{};let A=!0;for(let T=B;T<=q;T++)for(let _=N;_<=j;_++)A?(this.getCell(T,_).value={shareType:k,formula:v,ref:d,result:L(T,_)},A=!1):this.getCell(T,_).value=z?{sharedFormula:V,result:L(T,_)}:L(T,_)}addImage(d,v){const g={type:"image",imageId:d,range:v};this._media.push(new u(this,g))}getImages(){return this._media.filter(d=>d.type==="image")}addBackgroundImage(d){const v={type:"background",imageId:d};this._media.push(new u(this,v))}getBackgroundImageId(){const d=this._media.find(v=>v.type==="background");return d&&d.imageId}protect(d,v){return new Promise(g=>{this.sheetProtection={sheet:!0},v&&"spinCount"in v&&(v.spinCount=Number.isFinite(v.spinCount)?Math.round(Math.max(0,v.spinCount)):1e5),d&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=f.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=v&&"spinCount"in v?v.spinCount:1e5,this.sheetProtection.hashValue=f.convertPasswordToHash(d,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),v&&(this.sheetProtection=Object.assign(this.sheetProtection,v),!d&&"spinCount"in v&&delete this.sheetProtection.spinCount),g()})}unprotect(){this.sheetProtection=null}addTable(d){const v=new s(this,d);return this.tables[d.name]=v,v}getTable(d){return this.tables[d]}removeTable(d){delete this.tables[d]}getTables(){return Object.values(this.tables)}addConditionalFormatting(d){this.conditionalFormattings.push(d)}removeConditionalFormatting(d){typeof d=="number"?this.conditionalFormattings.splice(d,1):this.conditionalFormattings=d instanceof Function?this.conditionalFormattings.filter(d):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(d){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=d}get model(){const d={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(k=>k.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(k=>k.model),conditionalFormattings:this.conditionalFormattings};d.cols=e.toModel(this.columns);const v=d.rows=[],g=d.dimensions=new o;return this._rows.forEach(k=>{const C=k&&k.model;C&&(g.expand(C.number,C.min,C.number,C.max),v.push(C))}),d.merges=[],c.each(this._merges,k=>{d.merges.push(k.range)}),d}_parseRows(d){this._rows=[],d.rows.forEach(v=>{const g=new n(this,v.number);this._rows[g.number-1]=g,g.model=v})}_parseMergeCells(d){c.each(d.mergeCells,v=>{this.mergeCellsWithoutStyle(v)})}set model(d){this.name=d.name,this._columns=e.fromModel(this,d.cols),this._parseRows(d),this._parseMergeCells(d),this.dataValidations=new l(d.dataValidations),this.properties=d.properties,this.pageSetup=d.pageSetup,this.headerFooter=d.headerFooter,this.views=d.views,this.autoFilter=d.autoFilter,this._media=d.media.map(v=>new u(this,v)),this.sheetProtection=d.sheetProtection,this.tables=d.tables.reduce((v,g)=>{const k=new s;return k.model=g,v[g.name]=k,v},{}),this.conditionalFormattings=d.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(t,b,m){t("core-js/modules/es.promise"),t("core-js/modules/es.promise.finally"),t("core-js/modules/es.object.assign"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.values"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.async-iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.find"),t("core-js/modules/es.string.from-code-point"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.number.is-nan"),t("regenerator-runtime/runtime");const c={Workbook:t("./doc/workbook")},a=t("./doc/enums");Object.keys(a).forEach(o=>{c[o]=a[o]}),b.exports=c},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(t,b,m){const c=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");m.bufferToString=function(a){return typeof a=="string"?a:c?c.decode(a):a.toString()}},{}],17:[function(t,b,m){const c=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:a}=t("buffer");m.stringToBuffer=function(o){return typeof o!="string"?o:c?a.from(c.encode(o).buffer):a.from(o)}},{buffer:220}],18:[function(t,b,m){const c=t("./under-dash"),a=t("./col-cache");b.exports=class{constructor(o){this.template=o,this.sheets={}}addCell(o){this.addCellEx(a.decodeEx(o))}getCell(o){return this.findCellEx(a.decodeEx(o),!0)}findCell(o){return this.findCellEx(a.decodeEx(o),!1)}findCellAt(o,n,e){const r=this.sheets[o],u=r&&r[n];return u&&u[e]}addCellEx(o){if(o.top)for(let n=o.top;n<=o.bottom;n++)for(let e=o.left;e<=o.right;e++)this.getCellAt(o.sheetName,n,e);else this.findCellEx(o,!0)}getCellEx(o){return this.findCellEx(o,!0)}findCellEx(o,n){const e=this.findSheet(o,n),r=this.findSheetRow(e,o,n);return this.findRowCell(r,o,n)}getCellAt(o,n,e){const r=this.sheets[o]||(this.sheets[o]=[]),u=r[n]||(r[n]=[]);return u[e]||(u[e]={sheetName:o,address:a.n2l(e)+n,row:n,col:e})}removeCellEx(o){const n=this.findSheet(o);if(!n)return;const e=this.findSheetRow(n,o);e&&delete e[o.col]}forEachInSheet(o,n){const e=this.sheets[o];e&&e.forEach((r,u)=>{r&&r.forEach((s,l)=>{s&&n(s,u,l)})})}forEach(o){c.each(this.sheets,(n,e)=>{this.forEachInSheet(e,o)})}map(o){const n=[];return this.forEach(e=>{n.push(o(e))}),n}findSheet(o,n){const e=o.sheetName;return this.sheets[e]?this.sheets[e]:n?this.sheets[e]=[]:void 0}findSheetRow(o,n,e){const{row:r}=n;return o&&o[r]?o[r]:e?o[r]=[]:void 0}findRowCell(o,n,e){const{col:r}=n;return o&&o[r]?o[r]:e?o[r]=this.template?Object.assign(n,JSON.parse(JSON.stringify(this.template))):n:void 0}spliceRows(o,n,e,r){const u=this.sheets[o];if(u){const s=[];for(let l=0;l<r;l++)s.push([]);u.splice(n,e,...s)}}spliceColumns(o,n,e,r){const u=this.sheets[o];if(u){const s=[];for(let l=0;l<r;l++)s.push(null);c.each(u,l=>{l.splice(n,e,...s)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,b,m){const c=/^[A-Z]+\d+$/,a={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:o=>o<=26?1:o<=676?2:3,_fill(o){let n,e,r,u,s,l=1;if(o>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&o>=1){for(;l<=26;)n=this._dictionary[l-1],this._n2l[l]=n,this._l2n[n]=l,l++;this._l2nFill=1}if(this._l2nFill<2&&o>=2){for(l=27;l<=702;)e=l-27,r=e%26,u=Math.floor(e/26),n=this._dictionary[u]+this._dictionary[r],this._n2l[l]=n,this._l2n[n]=l,l++;this._l2nFill=2}if(this._l2nFill<3&&o>=3){for(l=703;l<=16384;)e=l-703,r=e%26,u=Math.floor(e/26)%26,s=Math.floor(e/676),n=this._dictionary[s]+this._dictionary[u]+this._dictionary[r],this._n2l[l]=n,this._l2n[n]=l,l++;this._l2nFill=3}},l2n(o){if(this._l2n[o]||this._fill(o.length),!this._l2n[o])throw new Error("Out of bounds. Invalid column letter: "+o);return this._l2n[o]},n2l(o){if(o<1||o>16384)throw new Error(o+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[o]||this._fill(this._level(o)),this._n2l[o]},_hash:{},validateAddress(o){if(!c.test(o))throw new Error("Invalid Address: "+o);return!0},decodeAddress(o){const n=o.length<5&&this._hash[o];if(n)return n;let e=!1,r="",u=0,s=!1,l="",f=0;for(let d,v=0;v<o.length;v++)if(d=o.charCodeAt(v),!s&&d>=65&&d<=90)e=!0,r+=o[v],u=26*u+d-64;else if(d>=48&&d<=57)s=!0,l+=o[v],f=10*f+d-48;else if(s&&e&&d!==36)break;if(e){if(u>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else u=void 0;s||(f=void 0);const p={address:o=r+l,col:u,row:f,$col$row:`$${r}$${l}`};return u<=100&&f<=100&&(this._hash[o]=p,this._hash[p.$col$row]=p),p},getAddress(o,n){if(n){const e=this.n2l(n)+o;return this.decodeAddress(e)}return this.decodeAddress(o)},decode(o){const n=o.split(":");if(n.length===2){const e=this.decodeAddress(n[0]),r=this.decodeAddress(n[1]),u={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};return u.tl=this.n2l(u.left)+u.top,u.br=this.n2l(u.right)+u.bottom,u.dimensions=`${u.tl}:${u.br}`,u}return this.decodeAddress(o)},decodeEx(o){const n=o.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),e=n[1]||n[2],r=n[3],u=r.split(":");if(u.length>1){let l=this.decodeAddress(u[0]),f=this.decodeAddress(u[1]);const p=Math.min(l.row,f.row),d=Math.min(l.col,f.col),v=Math.max(l.row,f.row),g=Math.max(l.col,f.col);return l=this.n2l(d)+p,f=this.n2l(g)+v,{top:p,left:d,bottom:v,right:g,sheetName:e,tl:{address:l,col:d,row:p,$col$row:`$${this.n2l(d)}$${p}`,sheetName:e},br:{address:f,col:g,row:v,$col$row:`$${this.n2l(g)}$${v}`,sheetName:e},dimensions:`${l}:${f}`}}if(r.startsWith("#"))return e?{sheetName:e,error:r}:{error:r};const s=this.decodeAddress(r);return e?{sheetName:e,...s}:s},encodeAddress:(o,n)=>a.n2l(n)+o,encode(){switch(arguments.length){case 2:return a.encodeAddress(arguments[0],arguments[1]);case 4:return`${a.encodeAddress(arguments[0],arguments[1])}:${a.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(o,n){const[e,r,,u,s]=o,[l,f]=n;return l>=e&&l<=u&&f>=r&&f<=s}};b.exports=a},{}],20:[function(t,b,m){const c=(o,n)=>({...o,...n.reduce((e,r)=>(o[r]&&(e[r]={...o[r]}),e),{})}),a=function(o,n,e){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];o[e]&&(n[e]=c(o[e],r))};m.copyStyle=o=>{if(!o)return o;if(n=o,Object.keys(n).length===0)return{};var n;const e={...o};return a(o,e,"font",["color"]),a(o,e,"alignment"),a(o,e,"protection"),o.border&&(a(o,e,"border"),a(o.border,e.border,"top",["color"]),a(o.border,e.border,"left",["color"]),a(o.border,e.border,"bottom",["color"]),a(o.border,e.border,"right",["color"]),a(o.border,e.border,"diagonal",["color"])),o.fill&&(a(o,e,"fill",["fgColor","bgColor","center"]),o.fill.stops&&(e.fill.stops=o.fill.stops.map(r=>c(r,["color"])))),e}},{}],21:[function(t,b,m){(function(c){(function(){const a=t("crypto"),o={hash(n){const e=a.createHash(n);for(var r=arguments.length,u=new Array(r>1?r-1:0),s=1;s<r;s++)u[s-1]=arguments[s];return e.update(c.concat(u)),e.digest()},convertPasswordToHash(n,e,r,u){if(e=e.toLowerCase(),a.getHashes().indexOf(e)<0)throw new Error(`Hash algorithm '${e}' not supported!`);const s=c.from(n,"utf16le");let l=this.hash(e,c.from(r,"base64"),s);for(let f=0;f<u;f++){const p=c.alloc(4);p.writeUInt32LE(f,0),l=this.hash(e,l,p)}return l.toString("base64")},randomBytes:n=>a.randomBytes(n)};b.exports=o}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,b,m){const{SaxesParser:c}=t("saxes"),{PassThrough:a}=t("readable-stream"),{bufferToString:o}=t("./browser-buffer-decode");b.exports=async function*(n){n.pipe&&!n[Symbol.asyncIterator]&&(n=n.pipe(new a));const e=new c;let r;e.on("error",s=>{r=s});let u=[];e.on("opentag",s=>u.push({eventType:"opentag",value:s})),e.on("text",s=>u.push({eventType:"text",value:s})),e.on("closetag",s=>u.push({eventType:"closetag",value:s}));for await(const s of n){if(e.write(o(s)),r)throw r;yield u,u=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,b,m){const c=t("./col-cache"),a=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,o=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;b.exports={slideFormula:function(n,e,r){const u=c.decode(e),s=c.decode(r);return n.replace(a,(l,f,p,d,v)=>{if(v)return l;const g=o.exec(d);if(g){const k=g[1],C=g[2].toUpperCase(),B=g[3],N=g[4];if(C.length>3||C.length===3&&C>"XFD")return l;let q=c.l2n(C),j=parseInt(N,10);return k||(q+=s.col-u.col),B||(j+=s.row-u.row),(f||"")+(k||"")+c.n2l(q)+(B||"")+j}return l})}}},{"./col-cache":19}],24:[function(t,b,m){(function(c,a){(function(){const o=t("readable-stream"),n=t("./utils"),e=t("./string-buf");class r{constructor(d,v){this._data=d,this._encoding=v}get length(){return this.toBuffer().length}copy(d,v,g,k){return this.toBuffer().copy(d,v,g,k)}toBuffer(){return this._buffer||(this._buffer=a.from(this._data,this._encoding)),this._buffer}}class u{constructor(d){this._data=d}get length(){return this._data.length}copy(d,v,g,k){return this._data._buf.copy(d,v,g,k)}toBuffer(){return this._data.toBuffer()}}class s{constructor(d){this._data=d}get length(){return this._data.length}copy(d,v,g,k){this._data.copy(d,v,g,k)}toBuffer(){return this._data}}class l{constructor(d){this.size=d,this.buffer=a.alloc(d),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const d=a.alloc(this.iWrite-this.iRead);return this.buffer.copy(d,0,this.iRead,this.iWrite),d}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(d){let v;return d===0?null:d===void 0||d>=this.length?(v=this.toBuffer(),this.iRead=this.iWrite,v):(v=a.alloc(d),this.buffer.copy(v,0,this.iRead,d),this.iRead+=d,v)}write(d,v,g){const k=Math.min(g,this.size-this.iWrite);return d.copy(this.buffer,this.iWrite,v,v+k),this.iWrite+=k,k}}const f=function(p){p=p||{},this.bufSize=p.bufSize||1048576,this.buffers=[],this.batch=p.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};n.inherits(f,o.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return a.concat(this.buffers.map(p=>p.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const d=this.buffers[this.buffers.length-1];if(!d.full)return d}const p=new l(this.bufSize);return this.buffers.push(p),p},async _pipe(p){await Promise.all(this.pipes.map(function(d){return new Promise(v=>{d.write(p.toBuffer(),()=>{v()})})}))},_writeToBuffers(p){let d=0;const v=p.length;for(;d<v;)d+=this._getWritableBuffer().write(p,d,v-d)},async write(p,d,v){let g;if(d instanceof Function&&(v=d,d="utf8"),v=v||n.nop,p instanceof e)g=new u(p);else if(p instanceof a)g=new s(p);else{if(!(typeof p=="string"||p instanceof String||p instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");g=new r(p,d)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(g);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(g),c.nextTick(v)):(await this._pipe(g),v());else this.paused||this.emit("data",g.toBuffer()),this._writeToBuffers(g),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(p,d,v){const g=k=>{k?v(k):(this._flush(),this.pipes.forEach(C=>{C.end()}),this.emit("finish"))};p?this.write(p,d,g):g()},read(p){let d;if(p){for(d=[];p&&this.buffers.length&&!this.buffers[0].eod;){const v=this.buffers[0],g=v.read(p);p-=g.length,d.push(g),v.eod&&v.full&&this.buffers.shift()}return a.concat(d)}return d=this.buffers.map(v=>v.toBuffer()).filter(Boolean),this.buffers=[],a.concat(d)},setEncoding(p){this.encoding=p},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(p){this.pipes.push(p),!this.paused&&this.buffers.length&&this.end()},unpipe(p){this.pipes=this.pipes.filter(d=>d!==p)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),b.exports=f}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,b,m){(function(c){(function(){b.exports=class{constructor(a){this._buf=c.alloc(a&&a.size||16384),this._encoding=a&&a.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=c.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(a){a=a||0,this._buffer=void 0,this._inPos=a}_grow(a){let o=2*this._buf.length;for(;o<a;)o*=2;const n=c.alloc(o);this._buf.copy(n,0),this._buf=n}addText(a){this._buffer=void 0;let o=this._inPos+this._buf.write(a,this._inPos,this._encoding);for(;o>=this._buf.length-4;)this._grow(this._inPos+a.length),o=this._inPos+this._buf.write(a,this._inPos,this._encoding);this._inPos=o}addStringBuf(a){a.length&&(this._buffer=void 0,this.length+a.length>this.capacity&&this._grow(this.length+a.length),a._buf.copy(this._buf,this._inPos,0,a.length),this._inPos+=a.length)}}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,b,m){const{toString:c}=Object.prototype,a=/["&<>]/,o={each:function(n,e){n&&(Array.isArray(n)?n.forEach(e):Object.keys(n).forEach(r=>{e(n[r],r)}))},some:function(n,e){return!!n&&(Array.isArray(n)?n.some(e):Object.keys(n).some(r=>e(n[r],r)))},every:function(n,e){return!n||(Array.isArray(n)?n.every(e):Object.keys(n).every(r=>e(n[r],r)))},map:function(n,e){return n?Array.isArray(n)?n.map(e):Object.keys(n).map(r=>e(n[r],r)):[]},keyBy:(n,e)=>n.reduce((r,u)=>(r[u[e]]=u,r),{}),isEqual:function(n,e){const r=typeof n,u=typeof e,s=Array.isArray(n),l=Array.isArray(e);let f;if(r!==u)return!1;switch(typeof n){case"object":if(s||l)return!(!s||!l)&&n.length===e.length&&n.every((p,d)=>{const v=e[d];return o.isEqual(p,v)});if(n===null||e===null)return n===e;if(f=Object.keys(n),Object.keys(e).length!==f.length)return!1;for(const p of f)if(!e.hasOwnProperty(p))return!1;return o.every(n,(p,d)=>{const v=e[d];return o.isEqual(p,v)});default:return n===e}},escapeHtml(n){const e=a.exec(n);if(!e)return n;let r="",u="",s=0,l=e.index;for(;l<n.length;l++){switch(n.charAt(l)){case'"':u="&quot;";break;case"&":u="&amp;";break;case"'":u="&apos;";break;case"<":u="&lt;";break;case">":u="&gt;";break;default:continue}s!==l&&(r+=n.substring(s,l)),s=l+1,r+=u}return s!==l?r+n.substring(s,l):r},strcmp:(n,e)=>n<e?-1:n>e?1:0,isUndefined:n=>c.call(n)==="[object Undefined]",isObject:n=>c.call(n)==="[object Object]",deepMerge(){const n=arguments[0]||{},{length:e}=arguments;let r,u,s;function l(f,p){r=n[p],s=Array.isArray(f),o.isObject(f)||s?(s?(s=!1,u=r&&Array.isArray(r)?r:[]):u=r&&o.isObject(r)?r:{},n[p]=o.deepMerge(u,f)):o.isUndefined(f)||(n[p]=f)}for(let f=0;f<e;f++)o.each(arguments[f],l);return n}};b.exports=o},{}],27:[function(t,b,m){(function(c,a){(function(){const o=t("fs"),n=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:r=>new Promise(u=>{c.setImmediate?a(()=>{u(r)}):setTimeout(()=>{u(r)},1)}),inherits:function(r,u,s,l){r.super_=u,l||(l=s,s=null),s&&Object.keys(s).forEach(p=>{Object.defineProperty(r,p,Object.getOwnPropertyDescriptor(s,p))});const f={constructor:{value:r,enumerable:!1,writable:!1,configurable:!0}};l&&Object.keys(l).forEach(p=>{f[p]=Object.getOwnPropertyDescriptor(l,p)}),r.prototype=Object.create(u.prototype,f)},dateToExcel:(r,u)=>25569+r.getTime()/864e5-(u?1462:0),excelToDate(r,u){const s=Math.round(24*(r-25569+(u?1462:0))*3600*1e3);return new Date(s)},parsePath(r){const u=r.lastIndexOf("/");return{path:r.substring(0,u),name:r.substring(u+1)}},getRelsPath(r){const u=e.parsePath(r);return`${u.path}/_rels/${u.name}.rels`},xmlEncode(r){const u=n.exec(r);if(!u)return r;let s="",l="",f=0,p=u.index;for(;p<r.length;p++){const d=r.charCodeAt(p);switch(d){case 34:l="&quot;";break;case 38:l="&amp;";break;case 39:l="&apos;";break;case 60:l="&lt;";break;case 62:l="&gt;";break;case 127:l="";break;default:if(d<=31&&(d<=8||d>=11&&d!==13)){l="";break}continue}f!==p&&(s+=r.substring(f,p)),f=p+1,l&&(s+=l)}return f!==p?s+r.substring(f,p):s},xmlDecode:r=>r.replace(/&([a-z]*);/g,u=>{switch(u){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return u}}),validInt(r){const u=parseInt(r,10);return Number.isNaN(u)?0:u},isDateFmt(r){return r?(r=(r=r.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:r=>new Promise(u=>{o.access(r,o.constants.F_OK,s=>{u(!s)})})},toIsoDateString:r=>r.toIsoString().subsstr(0,10),parseBoolean:r=>r===!0||r==="true"||r===1||r==="1"};b.exports=e}).call(this)}).call(this,typeof ut<"u"?ut:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,b,m){const c=t("./under-dash"),a=t("./utils");function o(r,u,s){r.push(` ${u}="${a.xmlEncode(s.toString())}"`)}function n(r,u){if(u){const s=[];c.each(u,(l,f)=>{l!==void 0&&o(s,f,l)}),r.push(s.join(""))}}class e{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(u){const s=this._xml;s.push("<?xml"),n(s,u),s.push(`?>
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),Mi={xs:18,sm:24,md:32,lg:38,xl:46},Ur={size:String};function Wr(i,M=Mi){return h.computed(()=>i.size!==void 0?{fontSize:i.size in M?`${M[i.size]}px`:i.size}:null)}function qt(i,M,t,b){return Object.defineProperty(i,M,{get:t,set:b,enumerable:!0}),i}function qs(i,M){for(const t in M)qt(i,t,M[t]);return i}function Ze(i){return h.markRaw(h.defineComponent(i))}function zi(i){return h.markRaw(i)}const zs=(i,M)=>{const t=h.reactive(i);for(const b in i)qt(M,b,()=>t[b],m=>{t[b]=m});return M};function dt(i,M){return i!==void 0&&i()||M}function Ui(i,M){if(i!==void 0){const t=i();if(t!=null)return t.slice()}return M}function Dt(i,M){return i!==void 0?M.concat(i()):M}function wo(i,M){return i===void 0?M:M!==void 0?M.concat(i()):i()}function Ti(i,M,t,b,m,c){M.key=b+m;const a=h.h(i,M,t);return m===!0?h.withDirectives(a,c()):a}const ba="0 0 24 24",li=i=>i,ui=i=>`ionicons ${i}`,xo={"mdi-":i=>`mdi ${i}`,"icon-":li,"bt-":i=>`bt ${i}`,"eva-":i=>`eva ${i}`,"ion-md":ui,"ion-ios":ui,"ion-logo":ui,"iconfont ":li,"ti-":i=>`themify-icon ${i}`,"bi-":i=>`bootstrap-icons ${i}`,"i-":li},So={o_:"-outlined",r_:"-round",s_:"-sharp"},ko={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Us=new RegExp("^("+Object.keys(xo).join("|")+")"),Ws=new RegExp("^("+Object.keys(So).join("|")+")"),ya=new RegExp("^("+Object.keys(ko).join("|")+")"),Hs=/^[Mm]\s?[-+]?\.?\d/,Ys=/^img:/,Qs=/^svguse:/,Ks=/^ion-/,Xs=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,ct=Ze({name:"QIcon",props:{...Ur,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(i,{slots:M}){const{proxy:{$q:t}}=h.getCurrentInstance(),b=Wr(i),m=h.computed(()=>"q-icon"+(i.left===!0?" on-left":"")+(i.right===!0?" on-right":"")+(i.color!==void 0?` text-${i.color}`:"")),c=h.computed(()=>{let a,o=i.name;if(o==="none"||!o)return{none:!0};if(t.iconMapFn!==null){const r=t.iconMapFn(o);if(r!==void 0)if(r.icon!==void 0){if(o=r.icon,o==="none"||!o)return{none:!0}}else return{cls:r.cls,content:r.content!==void 0?r.content:" "}}if(Hs.test(o)===!0){const[r,u=ba]=o.split("|");return{svg:!0,viewBox:u,nodes:r.split("&&").map(s=>{const[l,f,p]=s.split("@@");return h.h("path",{style:f,d:l,transform:p})})}}if(Ys.test(o)===!0)return{img:!0,src:o.substring(4)};if(Qs.test(o)===!0){const[r,u=ba]=o.split("|");return{svguse:!0,src:r.substring(7),viewBox:u}}let n=" ";const e=o.match(Us);if(e!==null)a=xo[e[1]](o);else if(Xs.test(o)===!0)a=o;else if(Ks.test(o)===!0)a=`ionicons ion-${t.platform.is.ios===!0?"ios":"md"}${o.substring(3)}`;else if(ya.test(o)===!0){a="notranslate material-symbols";const r=o.match(ya);r!==null&&(o=o.substring(6),a+=ko[r[1]]),n=o}else{a="notranslate material-icons";const r=o.match(Ws);r!==null&&(o=o.substring(2),a+=So[r[1]]),n=o}return{cls:a,content:n}});return()=>{const a={class:m.value,style:b.value,"aria-hidden":"true"};return c.value.none===!0?h.h(i.tag,a,dt(M.default)):c.value.img===!0?h.h(i.tag,a,Dt(M.default,[h.h("img",{src:c.value.src})])):c.value.svg===!0?h.h(i.tag,a,Dt(M.default,[h.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?h.h(i.tag,a,Dt(M.default,[h.h("svg",{viewBox:c.value.viewBox},[h.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(a.class+=" "+c.value.cls),h.h(i.tag,a,Dt(M.default,[c.value.content])))}}});function Bn(i){if(Object(i.$parent)===i.$parent)return i.$parent;let{parent:M}=i.$;for(;Object(M)===M;){if(Object(M.proxy)===M.proxy)return M.proxy;M=M.parent}}function _o(i,M){typeof M.type=="symbol"?Array.isArray(M.children)===!0&&M.children.forEach(t=>{_o(i,t)}):i.add(M)}function Gs(i){const M=new Set;return i.forEach(t=>{_o(M,t)}),Array.from(M)}function Wi(i){return i.appContext.config.globalProperties.$router!==void 0}function Jn(i){return i.isUnmounted===!0||i.isDeactivated===!0}function wa(i){return i?i.aliasOf?i.aliasOf.path:i.path:""}function xa(i,M){return(i.aliasOf||i)===(M.aliasOf||M)}function Js(i,M){for(const t in M){const b=M[t],m=i[t];if(typeof b=="string"){if(b!==m)return!1}else if(Array.isArray(m)===!1||m.length!==b.length||b.some((c,a)=>c!==m[a]))return!1}return!0}function Sa(i,M){return Array.isArray(M)===!0?i.length===M.length&&i.every((t,b)=>t===M[b]):i.length===1&&i[0]===M}function Zs(i,M){return Array.isArray(i)===!0?Sa(i,M):Array.isArray(M)===!0?Sa(M,i):i===M}function $s(i,M){if(Object.keys(i).length!==Object.keys(M).length)return!1;for(const t in i)if(Zs(i[t],M[t])===!1)return!1;return!0}const Co={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Zn={...Co,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Hi({fallbackTag:i,useDisableForRouterLinkProps:M=!0}={}){const t=h.getCurrentInstance(),{props:b,proxy:m,emit:c}=t,a=Wi(t),o=h.computed(()=>b.disable!==!0&&b.href!==void 0),n=M===!0?h.computed(()=>a===!0&&b.disable!==!0&&o.value!==!0&&b.to!==void 0&&b.to!==null&&b.to!==""):h.computed(()=>a===!0&&o.value!==!0&&b.to!==void 0&&b.to!==null&&b.to!==""),e=h.computed(()=>n.value===!0?g(b.to):null),r=h.computed(()=>e.value!==null),u=h.computed(()=>o.value===!0||r.value===!0),s=h.computed(()=>b.type==="a"||u.value===!0?"a":b.tag||i||"div"),l=h.computed(()=>o.value===!0?{href:b.href,target:b.target}:r.value===!0?{href:e.value.href,target:b.target}:{}),f=h.computed(()=>{if(r.value===!1)return-1;const{matched:B}=e.value,{length:N}=B,q=B[N-1];if(q===void 0)return-1;const j=m.$route.matched;if(j.length===0)return-1;const P=j.findIndex(xa.bind(null,q));if(P!==-1)return P;const V=wa(B[N-2]);return N>1&&wa(q)===V&&j[j.length-1].path!==V?j.findIndex(xa.bind(null,B[N-2])):P}),p=h.computed(()=>r.value===!0&&f.value!==-1&&Js(m.$route.params,e.value.params)),d=h.computed(()=>p.value===!0&&f.value===m.$route.matched.length-1&&$s(m.$route.params,e.value.params)),v=h.computed(()=>r.value===!0?d.value===!0?` ${b.exactActiveClass} ${b.activeClass}`:b.exact===!0?"":p.value===!0?` ${b.activeClass}`:"":"");function g(B){try{return m.$router.resolve(B)}catch{}return null}function k(B,{returnRouterError:N,to:q=b.to,replace:j=b.replace}={}){if(b.disable===!0)return B.preventDefault(),Promise.resolve(!1);if(B.metaKey||B.altKey||B.ctrlKey||B.shiftKey||B.button!==void 0&&B.button!==0||b.target==="_blank")return Promise.resolve(!1);B.preventDefault();const P=m.$router[j===!0?"replace":"push"](q);return N===!0?P:P.then(()=>{}).catch(()=>{})}function C(B){if(r.value===!0){const N=q=>k(B,q);c("click",B,N),B.defaultPrevented!==!0&&N()}else c("click",B)}return{hasRouterLink:r,hasHrefLink:o,hasLink:u,linkTag:s,resolvedLink:e,linkIsActive:p,linkIsExactActive:d,linkClass:v,linkAttrs:l,getLink:g,navigateToRouterLink:k,navigateOnClick:C}}const el=Ze({name:"QBreadcrumbsEl",props:{...Zn,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(i,{slots:M}){const{linkTag:t,linkAttrs:b,linkClass:m,navigateOnClick:c}=Hi(),a=h.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(i.disable!==!0?"q-link--focusable"+m.value:"q-breadcrumbs__el--disable"),...b.value,onClick:c})),o=h.computed(()=>"q-breadcrumbs__el-icon"+(i.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const n=[];return i.icon!==void 0&&n.push(h.h(ct,{class:o.value,name:i.icon})),i.label!==void 0&&n.push(i.label),h.h(t.value,{...a.value},Dt(M.default,n))}}}),Ao={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},tl=Object.keys(Ao),Yi={align:{type:String,validator:i=>tl.includes(i)}};function Qi(i){return h.computed(()=>{const M=i.align===void 0?i.vertical===!0?"stretch":"left":i.align;return`${i.vertical===!0?"items":"justify"}-${Ao[M]}`})}const rl=["",!0],nl=Ze({name:"QBreadcrumbs",props:{...Yi,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:i=>["none","xs","sm","md","lg","xl"].includes(i),default:"sm"}},setup(i,{slots:M}){const t=Qi(i),b=h.computed(()=>`flex items-center ${t.value}${i.gutter==="none"?"":` q-gutter-${i.gutter}`}`),m=h.computed(()=>i.separatorColor?` text-${i.separatorColor}`:""),c=h.computed(()=>` text-${i.activeColor}`);return()=>{if(M.default===void 0)return;const a=Gs(dt(M.default));if(a.length===0)return;let o=1;const n=[],e=a.filter(u=>u.type?.name==="QBreadcrumbsEl").length,r=M.separator!==void 0?M.separator:()=>i.separator;return a.forEach(u=>{if(u.type?.name==="QBreadcrumbsEl"){const s=o<e,l=u.props!==null&&rl.includes(u.props.disable),f=(s===!0?"":" q-breadcrumbs--last")+(l!==!0&&s===!0?c.value:"");o++,n.push(h.h("div",{class:`flex items-center${f}`},[u])),s===!0&&n.push(h.h("div",{class:"q-breadcrumbs__separator"+m.value},r()))}else n.push(u)}),h.h("div",{class:"q-breadcrumbs"},[h.h("div",{class:b.value},n)])}}}),il=h.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(i){const M=i,t=h.useAttrs(),b=h.computed(()=>{const{activeColor:s,separatorIcon:l,separatorSize:f,separatorColor:p,...d}=t;return d}),m=s=>({"data-cy":s.dataCy,class:"cursor-pointer text-h5",color:s.color}),c=h.computed(()=>M.activeColor||"primary"),a=h.computed(()=>M.separatorIcon||"chevron_right"),o=h.computed(()=>M.separatorSize||"2em"),n=h.computed(()=>M.separatorColor||"primary"),e=h.computed(()=>({store:M.store,route:M.route,navStore:M.navStore||{}})),r=h.computed(()=>{const s=[];return M.breadcrumbConfig.forEach(l=>{if(!l.shouldRender(e.value))return;const f=l.getLabel?l.getLabel(e.value):l.defaultLabel,p=l.getColor?l.getColor(e.value):"dark",d={name:l.routeName,...l.getRouteParams&&{params:l.getRouteParams(e.value)}},v=l.clearActions?l.clearActions.map(g=>()=>g(e.value)):[];s.push({label:f,dataCy:l.dataCy,color:p,route:d,clearActions:v})}),s}),u=s=>{s.clearActions&&s.clearActions.forEach(l=>l()),M.router.push(s.route)};return(s,l)=>(h.openBlock(),h.createBlock(nl,h.mergeProps({"active-color":c.value,class:"text-brown"},b.value),{separator:h.withCtx(()=>[h.createVNode(ct,{size:o.value,name:a.value,color:n.value},null,8,["size","name","color"])]),default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(r.value,(f,p)=>(h.openBlock(),h.createBlock(el,h.mergeProps({key:p,to:f.route},{ref_for:!0},m(f),{label:f.label,onClick:d=>u(f)}),null,16,["to","label","onClick"]))),128))]),_:1},16,["active-color"]))}}),al={size:{type:[String,Number],default:"1em"},color:String};function ol(i){return{cSize:h.computed(()=>i.size in Mi?`${Mi[i.size]}px`:i.size),classes:h.computed(()=>"q-spinner"+(i.color?` text-${i.color}`:""))}}const Eo=Ze({name:"QSpinner",props:{...al,thickness:{type:Number,default:5}},setup(i){const{cSize:M,classes:t}=ol(i);return()=>h.h("svg",{class:t.value+" q-spinner-mat",width:M.value,height:M.value,viewBox:"25 25 50 50"},[h.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":i.thickness,"stroke-miterlimit":"10"})])}});function Bi(i,M){const t=i.style;for(const b in M)t[b]=M[b]}function sl(i){if(i==null)return;if(typeof i=="string")try{return document.querySelector(i)||void 0}catch{return}const M=h.unref(i);if(M)return M.$el||M}function Mo(i,M){if(i==null||i.contains(M)===!0)return!0;for(let t=i.nextElementSibling;t!==null;t=t.nextElementSibling)if(t.contains(M))return!0;return!1}const _t={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const i=Object.defineProperty({},"passive",{get(){Object.assign(_t,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,i),window.removeEventListener("qtest",null,i)}catch{}function $n(){}function ll(i){return i.button===0}function Pr(i){return i.touches&&i.touches[0]?i=i.touches[0]:i.changedTouches&&i.changedTouches[0]?i=i.changedTouches[0]:i.targetTouches&&i.targetTouches[0]&&(i=i.targetTouches[0]),{top:i.clientY,left:i.clientX}}function ul(i){if(i.path)return i.path;if(i.composedPath)return i.composedPath();const M=[];let t=i.target;for(;t;){if(M.push(t),t.tagName==="HTML")return M.push(document),M.push(window),M;t=t.parentElement}}function Pt(i){i.stopPropagation()}function Ot(i){i.cancelable!==!1&&i.preventDefault()}function xt(i){i.cancelable!==!1&&i.preventDefault(),i.stopPropagation()}function ci(i,M){if(i===void 0||M===!0&&i.__dragPrevented===!0)return;const t=M===!0?b=>{b.__dragPrevented=!0,b.addEventListener("dragstart",Ot,_t.notPassiveCapture)}:b=>{delete b.__dragPrevented,b.removeEventListener("dragstart",Ot,_t.notPassiveCapture)};i.querySelectorAll("a, img").forEach(t)}function er(i,M,t){const b=`__q_${M}_evt`;i[b]=i[b]!==void 0?i[b].concat(t):t,t.forEach(m=>{m[0].addEventListener(m[1],i[m[2]],_t[m[3]])})}function yr(i,M){const t=`__q_${M}_evt`;i[t]!==void 0&&(i[t].forEach(b=>{b[0].removeEventListener(b[1],i[b[2]],_t[b[3]])}),i[t]=void 0)}function Ki(i){return i!==Object(i)||i.isComposing===!0||i.qKeyEvent===!0}function cr(i,M){return Ki(i)===!0?!1:[].concat(M).includes(i.keyCode)}function cl(i,M=250){let t=!1,b;return function(){return t===!1&&(t=!0,setTimeout(()=>{t=!1},M),b=i.apply(this,arguments)),b}}function ka(i,M,t,b){t.modifiers.stop===!0&&Pt(i);const m=t.modifiers.color;let c=t.modifiers.center;c=c===!0||b===!0;const a=document.createElement("span"),o=document.createElement("span"),n=Pr(i),{left:e,top:r,width:u,height:s}=M.getBoundingClientRect(),l=Math.sqrt(u*u+s*s),f=l/2,p=`${(u-l)/2}px`,d=c?p:`${n.left-e-f}px`,v=`${(s-l)/2}px`,g=c?v:`${n.top-r-f}px`;o.className="q-ripple__inner",Bi(o,{height:`${l}px`,width:`${l}px`,transform:`translate3d(${d},${g},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${m?" text-"+m:""}`,a.setAttribute("dir","ltr"),a.appendChild(o),M.appendChild(a);const k=()=>{a.remove(),clearTimeout(C)};t.abort.push(k);let C=setTimeout(()=>{o.classList.add("q-ripple__inner--enter"),o.style.transform=`translate3d(${p},${v},0) scale3d(1,1,1)`,o.style.opacity=.2,C=setTimeout(()=>{o.classList.remove("q-ripple__inner--enter"),o.classList.add("q-ripple__inner--leave"),o.style.opacity=0,C=setTimeout(()=>{a.remove(),t.abort.splice(t.abort.indexOf(k),1)},275)},250)},50)}function _a(i,{modifiers:M,value:t,arg:b}){const m=Object.assign({},i.cfg.ripple,M,t);i.modifiers={early:m.early===!0,stop:m.stop===!0,center:m.center===!0,color:m.color||b,keyCodes:[].concat(m.keyCodes||13)}}const To=zi({name:"ripple",beforeMount(i,M){const t=M.instance.$.appContext.config.globalProperties.$q.config||{};if(t.ripple===!1)return;const b={cfg:t,enabled:M.value!==!1,modifiers:{},abort:[],start(m){b.enabled===!0&&m.qSkipRipple!==!0&&m.type===(b.modifiers.early===!0?"pointerdown":"click")&&ka(m,i,b,m.qKeyEvent===!0)},keystart:cl(m=>{b.enabled===!0&&m.qSkipRipple!==!0&&cr(m,b.modifiers.keyCodes)===!0&&m.type===`key${b.modifiers.early===!0?"down":"up"}`&&ka(m,i,b,!0)},300)};_a(b,M),i.__qripple=b,er(b,"main",[[i,"pointerdown","start","passive"],[i,"click","start","passive"],[i,"keydown","keystart","passive"],[i,"keyup","keystart","passive"]])},updated(i,M){if(M.oldValue!==M.value){const t=i.__qripple;t!==void 0&&(t.enabled=M.value!==!1,t.enabled===!0&&Object(M.value)===M.value&&_a(t,M))}},beforeUnmount(i){const M=i.__qripple;M!==void 0&&(M.abort.forEach(t=>{t()}),yr(M,"main"),delete i._qripple)}}),Ca={none:0,xs:4,sm:8,md:16,lg:24,xl:32},dl={xs:8,sm:10,md:14,lg:20,xl:24},fl=["button","submit","reset"],hl=/[^\s]\/[^\s]/,pl=["flat","outline","push","unelevated"];function ml(i,M){return i.flat===!0?"flat":i.outline===!0?"outline":i.push===!0?"push":i.unelevated===!0?"unelevated":M}const gl={...Ur,...Co,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...pl.reduce((i,M)=>(i[M]=Boolean)&&i,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Yi.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},vl={...gl,round:Boolean};function bl(i){const M=Wr(i,dl),t=Qi(i),{hasRouterLink:b,hasLink:m,linkTag:c,linkAttrs:a,navigateOnClick:o}=Hi({fallbackTag:"button"}),n=h.computed(()=>{const d=i.fab===!1&&i.fabMini===!1?M.value:{};return i.padding!==void 0?Object.assign({},d,{padding:i.padding.split(/\s+/).map(v=>v in Ca?Ca[v]+"px":v).join(" "),minWidth:"0",minHeight:"0"}):d}),e=h.computed(()=>i.rounded===!0||i.fab===!0||i.fabMini===!0),r=h.computed(()=>i.disable!==!0&&i.loading!==!0),u=h.computed(()=>r.value===!0?i.tabindex||0:-1),s=h.computed(()=>ml(i,"standard")),l=h.computed(()=>{const d={tabindex:u.value};return m.value===!0?Object.assign(d,a.value):fl.includes(i.type)===!0&&(d.type=i.type),c.value==="a"?(i.disable===!0?d["aria-disabled"]="true":d.href===void 0&&(d.role="button"),b.value!==!0&&hl.test(i.type)===!0&&(d.type=i.type)):i.disable===!0&&(d.disabled="",d["aria-disabled"]="true"),i.loading===!0&&i.percentage!==void 0&&Object.assign(d,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":i.percentage}),d}),f=h.computed(()=>{let d;i.color!==void 0?i.flat===!0||i.outline===!0?d=`text-${i.textColor||i.color}`:d=`bg-${i.color} text-${i.textColor||"white"}`:i.textColor&&(d=`text-${i.textColor}`);const v=i.round===!0?"round":`rectangle${e.value===!0?" q-btn--rounded":i.square===!0?" q-btn--square":""}`;return`q-btn--${s.value} q-btn--${v}`+(d!==void 0?" "+d:"")+(r.value===!0?" q-btn--actionable q-focusable q-hoverable":i.disable===!0?" disabled":"")+(i.fab===!0?" q-btn--fab":i.fabMini===!0?" q-btn--fab-mini":"")+(i.noCaps===!0?" q-btn--no-uppercase":"")+(i.dense===!0?" q-btn--dense":"")+(i.stretch===!0?" no-border-radius self-stretch":"")+(i.glossy===!0?" glossy":"")+(i.square?" q-btn--square":"")}),p=h.computed(()=>t.value+(i.stack===!0?" column":" row")+(i.noWrap===!0?" no-wrap text-no-wrap":"")+(i.loading===!0?" q-btn__content--hidden":""));return{classes:f,style:n,innerClasses:p,attributes:l,hasLink:m,linkTag:c,navigateOnClick:o,isActionable:r}}const{passiveCapture:Vt}=_t;let Er=null,Mr=null,Tr=null;const at=Ze({name:"QBtn",props:{...vl,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(i,{slots:M,emit:t}){const{proxy:b}=h.getCurrentInstance(),{classes:m,style:c,innerClasses:a,attributes:o,hasLink:n,linkTag:e,navigateOnClick:r,isActionable:u}=bl(i),s=h.ref(null),l=h.ref(null);let f=null,p,d=null;const v=h.computed(()=>i.label!==void 0&&i.label!==null&&i.label!==""),g=h.computed(()=>i.disable===!0||i.ripple===!1?!1:{keyCodes:n.value===!0?[13,32]:[13],...i.ripple===!0?{}:i.ripple}),k=h.computed(()=>({center:i.round})),C=h.computed(()=>{const T=Math.max(0,Math.min(100,i.percentage));return T>0?{transition:"transform 0.6s",transform:`translateX(${T-100}%)`}:{}}),B=h.computed(()=>{if(i.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(u.value===!0){const T={onClick:q,onKeydown:j,onMousedown:V};if(b.$q.platform.has.touch===!0){const _=i.onTouchstart!==void 0?"":"Passive";T[`onTouchstart${_}`]=P}return T}return{onClick:xt}}),N=h.computed(()=>({ref:s,class:"q-btn q-btn-item non-selectable no-outline "+m.value,style:c.value,...o.value,...B.value}));function q(T){if(s.value!==null){if(T!==void 0){if(T.defaultPrevented===!0)return;const _=document.activeElement;if(i.type==="submit"&&_!==document.body&&s.value.contains(_)===!1&&_.contains(s.value)===!1){T.qAvoidFocus!==!0&&s.value.focus();const y=()=>{document.removeEventListener("keydown",xt,!0),document.removeEventListener("keyup",y,Vt),s.value?.removeEventListener("blur",y,Vt)};document.addEventListener("keydown",xt,!0),document.addEventListener("keyup",y,Vt),s.value.addEventListener("blur",y,Vt)}}r(T)}}function j(T){s.value!==null&&(t("keydown",T),cr(T,[13,32])===!0&&Mr!==s.value&&(Mr!==null&&L(),T.defaultPrevented!==!0&&(T.qAvoidFocus!==!0&&s.value.focus(),Mr=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("keyup",z,!0),s.value.addEventListener("blur",z,Vt)),xt(T)))}function P(T){s.value!==null&&(t("touchstart",T),T.defaultPrevented!==!0&&(Er!==s.value&&(Er!==null&&L(),Er=s.value,f=T.target,f.addEventListener("touchcancel",z,Vt),f.addEventListener("touchend",z,Vt)),p=!0,d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,p=!1},200)))}function V(T){s.value!==null&&(T.qSkipRipple=p===!0,t("mousedown",T),T.defaultPrevented!==!0&&Tr!==s.value&&(Tr!==null&&L(),Tr=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("mouseup",z,Vt)))}function z(T){if(s.value!==null&&!(T?.type==="blur"&&document.activeElement===s.value)){if(T?.type==="keyup"){if(Mr===s.value&&cr(T,[13,32])===!0){const _=new MouseEvent("click",T);_.qKeyEvent=!0,T.defaultPrevented===!0&&Ot(_),T.cancelBubble===!0&&Pt(_),s.value.dispatchEvent(_),xt(T),T.qKeyEvent=!0}t("keyup",T)}L()}}function L(T){const _=l.value;T!==!0&&(Er===s.value||Tr===s.value)&&_!==null&&_!==document.activeElement&&(_.setAttribute("tabindex",-1),_.focus()),Er===s.value&&(f!==null&&(f.removeEventListener("touchcancel",z,Vt),f.removeEventListener("touchend",z,Vt)),Er=f=null),Tr===s.value&&(document.removeEventListener("mouseup",z,Vt),Tr=null),Mr===s.value&&(document.removeEventListener("keyup",z,!0),s.value?.removeEventListener("blur",z,Vt),Mr=null),s.value?.classList.remove("q-btn--active")}function A(T){xt(T),T.qSkipRipple=!0}return h.onBeforeUnmount(()=>{L(!0)}),Object.assign(b,{click:T=>{u.value===!0&&q(T)}}),()=>{let T=[];i.icon!==void 0&&T.push(h.h(ct,{name:i.icon,left:i.stack!==!0&&v.value===!0,role:"img"})),v.value===!0&&T.push(h.h("span",{class:"block"},[i.label])),T=Dt(M.default,T),i.iconRight!==void 0&&i.round===!1&&T.push(h.h(ct,{name:i.iconRight,right:i.stack!==!0&&v.value===!0,role:"img"}));const _=[h.h("span",{class:"q-focus-helper",ref:l})];return i.loading===!0&&i.percentage!==void 0&&_.push(h.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(i.darkPercentage===!0?" q-btn__progress--dark":"")},[h.h("span",{class:"q-btn__progress-indicator fit block",style:C.value})])),_.push(h.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},T)),i.loading!==null&&_.push(h.h(h.Transition,{name:"q-transition--fade"},()=>i.loading===!0?[h.h("span",{key:"loading",class:"absolute-full flex flex-center"},M.loading!==void 0?M.loading():[h.h(Eo)])]:null)),h.withDirectives(h.h(e.value,N.value,_),[[To,g.value,void 0,k.value]])}}}),yl={class:"row justify-between"},wl=h.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})},query:{default:()=>({})}},setup(i){const M=i,t=h.inject("navContext",null),b=h.inject("router");function m(c){if(!b){console.warn("Dependencies not available:",{router:b});return}t?.setTabs();const a=c==="back"?M.from:M.to;if(!a){console.warn("Destination not provided:",c);return}b.push({name:a,params:M.params,query:M.query})}return(c,a)=>(h.openBlock(),h.createElementBlock("div",yl,[h.createVNode(at,{icon:"chevron_left","rounded-sm":"",label:c.labelFrom,"data-cy":"go-back","data-testid":"go-back",onClick:a[0]||(a[0]=o=>m("back"))},null,8,["label"]),c.labelTo?(h.openBlock(),h.createBlock(at,{key:0,label:c.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next","data-testid":"go-next",onClick:a[1]||(a[1]=o=>m("next"))},null,8,["label"])):h.createCommentVNode("",!0)]))}}),jt=(i,M)=>{const t=i.__vccOpts||i;for(const[b,m]of M)t[b]=m;return t},xl=jt(wl,[["__scopeId","data-v-8dd99f80"]]),Tt={dark:{type:Boolean,default:null}};function Bt(i,M){return h.computed(()=>i.dark===null?M.dark.isActive:i.dark)}const Sl={xs:8,sm:10,md:14,lg:20,xl:24},Dn=Ze({name:"QChip",props:{...Tt,...Ur,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(i,{slots:M,emit:t}){const{proxy:{$q:b}}=h.getCurrentInstance(),m=Bt(i,b),c=Wr(i,Sl),a=h.computed(()=>i.selected===!0||i.icon!==void 0),o=h.computed(()=>i.selected===!0?i.iconSelected||b.iconSet.chip.selected:i.icon),n=h.computed(()=>i.iconRemove||b.iconSet.chip.remove),e=h.computed(()=>i.disable===!1&&(i.clickable===!0||i.selected!==null)),r=h.computed(()=>{const d=i.outline===!0&&i.color||i.textColor;return"q-chip row inline no-wrap items-center"+(i.outline===!1&&i.color!==void 0?` bg-${i.color}`:"")+(d?` text-${d} q-chip--colored`:"")+(i.disable===!0?" disabled":"")+(i.dense===!0?" q-chip--dense":"")+(i.outline===!0?" q-chip--outline":"")+(i.selected===!0?" q-chip--selected":"")+(e.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(i.square===!0?" q-chip--square":"")+(m.value===!0?" q-chip--dark q-dark":"")}),u=h.computed(()=>{const d=i.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:i.tabindex||0},v={...d,role:"button","aria-hidden":"false","aria-label":i.removeAriaLabel||b.lang.label.remove};return{chip:d,remove:v}});function s(d){d.keyCode===13&&l(d)}function l(d){i.disable||(t("update:selected",!i.selected),t("click",d))}function f(d){(d.keyCode===void 0||d.keyCode===13)&&(xt(d),i.disable===!1&&(t("update:modelValue",!1),t("remove")))}function p(){const d=[];e.value===!0&&d.push(h.h("div",{class:"q-focus-helper"})),a.value===!0&&d.push(h.h(ct,{class:"q-chip__icon q-chip__icon--left",name:o.value}));const v=i.label!==void 0?[h.h("div",{class:"ellipsis"},[i.label])]:void 0;return d.push(h.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},wo(M.default,v))),i.iconRight&&d.push(h.h(ct,{class:"q-chip__icon q-chip__icon--right",name:i.iconRight})),i.removable===!0&&d.push(h.h(ct,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:n.value,...u.value.remove,onClick:f,onKeyup:f})),d}return()=>{if(i.modelValue===!1)return;const d={class:r.value,style:c.value};return e.value===!0&&Object.assign(d,u.value.chip,{onClick:l,onKeyup:s}),Ti("div",d,p(),"ripple",i.ripple!==!1&&i.disable!==!0,()=>[[To,i.ripple]])}}}),dr=h.ref(!1);let Ri;function kl(i,M){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(i)||/(opr)[\/]([\w.]+)/.exec(i)||/(vivaldi)[\/]([\w.]+)/.exec(i)||/(chrome|crios)[\/]([\w.]+)/.exec(i)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(i)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(i)||/(firefox|fxios)[\/]([\w.]+)/.exec(i)||/(webkit)[\/]([\w.]+)/.exec(i)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(i)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:M[0]||""}}function _l(i){return/(ipad)/.exec(i)||/(ipod)/.exec(i)||/(windows phone)/.exec(i)||/(iphone)/.exec(i)||/(kindle)/.exec(i)||/(silk)/.exec(i)||/(android)/.exec(i)||/(win)/.exec(i)||/(mac)/.exec(i)||/(linux)/.exec(i)||/(cros)/.exec(i)||/(playbook)/.exec(i)||/(bb)/.exec(i)||/(blackberry)/.exec(i)||[]}const Bo="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Cl(i){const M=i.toLowerCase(),t=_l(M),b=kl(M,t),m={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};b.browser&&(m[b.browser]=!0,m.version=b.version,m.versionNumber=parseInt(b.version,10)),b.platform&&(m[b.platform]=!0);const c=m.android||m.ios||m.bb||m.blackberry||m.ipad||m.iphone||m.ipod||m.kindle||m.playbook||m.silk||m["windows phone"];if(c===!0||M.indexOf("mobile")!==-1?m.mobile=!0:m.desktop=!0,m["windows phone"]&&(m.winphone=!0,delete m["windows phone"]),m.edga||m.edgios||m.edg?(m.edge=!0,b.browser="edge"):m.crios?(m.chrome=!0,b.browser="chrome"):m.fxios&&(m.firefox=!0,b.browser="firefox"),(m.ipod||m.ipad||m.iphone)&&(m.ios=!0),m.vivaldi&&(b.browser="vivaldi",m.vivaldi=!0),(m.chrome||m.opr||m.safari||m.vivaldi||m.mobile===!0&&m.ios!==!0&&c!==!0)&&(m.webkit=!0),m.opr&&(b.browser="opera",m.opera=!0),m.safari&&(m.blackberry||m.bb?(b.browser="blackberry",m.blackberry=!0):m.playbook?(b.browser="playbook",m.playbook=!0):m.android?(b.browser="android",m.android=!0):m.kindle?(b.browser="kindle",m.kindle=!0):m.silk&&(b.browser="silk",m.silk=!0)),m.name=b.browser,m.platform=b.platform,M.indexOf("electron")!==-1)m.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)m.bex=!0;else{if(window.Capacitor!==void 0?(m.capacitor=!0,m.nativeMobile=!0,m.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(m.cordova=!0,m.nativeMobile=!0,m.nativeMobileWrapper="cordova"),dr.value===!0&&(Ri={is:{...m}}),Bo===!0&&m.mac===!0&&(m.desktop===!0&&m.safari===!0||m.nativeMobile===!0&&m.android!==!0&&m.ios!==!0&&m.ipad!==!0)){delete m.mac,delete m.desktop;const a=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(m,{mobile:!0,ios:!0,platform:a,[a]:!0})}m.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete m.desktop,m.mobile=!0)}return m}const Aa=navigator.userAgent||navigator.vendor||window.opera,Al={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Mt={userAgent:Aa,is:Cl(Aa),has:{touch:Bo},within:{iframe:window.self!==window.top}},Ii={install(i){const{$q:M}=i;dr.value===!0?(i.onSSRHydrated.push(()=>{Object.assign(M.platform,Mt),dr.value=!1}),M.platform=h.reactive(this)):M.platform=this}};{let i;qt(Mt.has,"webStorage",()=>{if(i!==void 0)return i;try{if(window.localStorage)return i=!0,!0}catch{}return i=!1,!1}),Object.assign(Ii,Mt),dr.value===!0&&(Object.assign(Ii,Ri,Al),Ri=null)}function jn(){if(window.getSelection!==void 0){const i=window.getSelection();i.empty!==void 0?i.empty():i.removeAllRanges!==void 0&&(i.removeAllRanges(),Ii.is.mobile!==!0&&i.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const Ro={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Io={...Ro,contextMenu:Boolean};function Xi({showing:i,avoidEmit:M,configureAnchorEl:t}){const{props:b,proxy:m,emit:c}=h.getCurrentInstance(),a=h.ref(null);let o=null;function n(l){return a.value===null?!1:l===void 0||l.touches===void 0||l.touches.length<=1}const e={};t===void 0&&(Object.assign(e,{hide(l){m.hide(l)},toggle(l){m.toggle(l),l.qAnchorHandled=!0},toggleKey(l){cr(l,13)===!0&&e.toggle(l)},contextClick(l){m.hide(l),Ot(l),h.nextTick(()=>{m.show(l),l.qAnchorHandled=!0})},prevent:Ot,mobileTouch(l){if(e.mobileCleanup(l),n(l)!==!0)return;m.hide(l),a.value.classList.add("non-selectable");const f=l.target;er(e,"anchor",[[f,"touchmove","mobileCleanup","passive"],[f,"touchend","mobileCleanup","passive"],[f,"touchcancel","mobileCleanup","passive"],[a.value,"contextmenu","prevent","notPassive"]]),o=setTimeout(()=>{o=null,m.show(l),l.qAnchorHandled=!0},300)},mobileCleanup(l){a.value.classList.remove("non-selectable"),o!==null&&(clearTimeout(o),o=null),i.value===!0&&l!==void 0&&jn()}}),t=function(l=b.contextMenu){if(b.noParentEvent===!0||a.value===null)return;let f;l===!0?m.$q.platform.is.mobile===!0?f=[[a.value,"touchstart","mobileTouch","passive"]]:f=[[a.value,"mousedown","hide","passive"],[a.value,"contextmenu","contextClick","notPassive"]]:f=[[a.value,"click","toggle","passive"],[a.value,"keyup","toggleKey","passive"]],er(e,"anchor",f)});function r(){yr(e,"anchor")}function u(l){for(a.value=l;a.value.classList.contains("q-anchor--skip");)a.value=a.value.parentNode;t()}function s(){if(b.target===!1||b.target===""||m.$el.parentNode===null)a.value=null;else if(b.target===!0)u(m.$el.parentNode);else{let l=b.target;if(typeof b.target=="string")try{l=document.querySelector(b.target)}catch{l=void 0}l!=null?(a.value=l.$el||l,t()):(a.value=null,console.error(`Anchor: target "${b.target}" not found`))}}return h.watch(()=>b.contextMenu,l=>{a.value!==null&&(r(),t(l))}),h.watch(()=>b.target,()=>{a.value!==null&&r(),s()}),h.watch(()=>b.noParentEvent,l=>{a.value!==null&&(l===!0?r():t())}),h.onMounted(()=>{s(),M!==!0&&b.modelValue===!0&&a.value===null&&c("update:modelValue",!1)}),h.onBeforeUnmount(()=>{o!==null&&clearTimeout(o),r()}),{anchorEl:a,canShow:n,anchorEvents:e}}function Oo(i,M){const t=h.ref(null);let b;function m(o,n){const e=`${n!==void 0?"add":"remove"}EventListener`,r=n!==void 0?n:b;o!==window&&o[e]("scroll",r,_t.passive),window[e]("scroll",r,_t.passive),b=n}function c(){t.value!==null&&(m(t.value),t.value=null)}const a=h.watch(()=>i.noParentEvent,()=>{t.value!==null&&(c(),M())});return h.onBeforeUnmount(a),{localScrollTarget:t,unconfigureScrollTarget:c,changeScrollEvent:m}}const on={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},sn=["beforeShow","show","beforeHide","hide"];function ln({showing:i,canShow:M,hideOnRouteChange:t,handleShow:b,handleHide:m,processOnMount:c}){const a=h.getCurrentInstance(),{props:o,emit:n,proxy:e}=a;let r;function u(g){i.value===!0?f(g):s(g)}function s(g){if(o.disable===!0||g?.qAnchorHandled===!0||M!==void 0&&M(g)!==!0)return;const k=o["onUpdate:modelValue"]!==void 0;k===!0&&(n("update:modelValue",!0),r=g,h.nextTick(()=>{r===g&&(r=void 0)})),(o.modelValue===null||k===!1)&&l(g)}function l(g){i.value!==!0&&(i.value=!0,n("beforeShow",g),b!==void 0?b(g):n("show",g))}function f(g){if(o.disable===!0)return;const k=o["onUpdate:modelValue"]!==void 0;k===!0&&(n("update:modelValue",!1),r=g,h.nextTick(()=>{r===g&&(r=void 0)})),(o.modelValue===null||k===!1)&&p(g)}function p(g){i.value!==!1&&(i.value=!1,n("beforeHide",g),m!==void 0?m(g):n("hide",g))}function d(g){o.disable===!0&&g===!0?o["onUpdate:modelValue"]!==void 0&&n("update:modelValue",!1):g===!0!==i.value&&(g===!0?l:p)(r)}h.watch(()=>o.modelValue,d),t!==void 0&&Wi(a)===!0&&h.watch(()=>e.$route.fullPath,()=>{t.value===!0&&i.value===!0&&f()}),c===!0&&h.onMounted(()=>{d(o.modelValue)});const v={show:s,hide:f,toggle:u};return Object.assign(e,v),v}let br=[],tn=[];function Fo(i){tn=tn.filter(M=>M!==i)}function El(i){Fo(i),tn.push(i)}function Ea(i){Fo(i),tn.length===0&&br.length!==0&&(br[br.length-1](),br=[])}function un(i){tn.length===0?i():br.push(i)}function Ml(i){br=br.filter(M=>M!==i)}const Ma={};let Tl=1,Bl=document.body;function Rl(i,M){const t=document.createElement("div");if(t.id=M!==void 0?`q-portal--${M}--${Tl++}`:i,Ma.globalNodes!==void 0){const b=Ma.globalNodes.class;b!==void 0&&(t.className=b)}return Bl.appendChild(t),t}function Il(i){i.remove()}const Or=[];function Ol(i){return Or.find(M=>M.contentEl!==null&&M.contentEl.contains(i))}function Do(i,M){do{if(i.$options.name==="QMenu"){if(i.hide(M),i.$props.separateClosePopup===!0)return Bn(i)}else if(i.__qPortal===!0){const t=Bn(i);return t?.$options.name==="QPopupProxy"?(i.hide(M),t):i}i=Bn(i)}while(i!=null)}function Fl(i,M,t){for(;t!==0&&i!==void 0&&i!==null;){if(i.__qPortal===!0){if(t--,i.$options.name==="QMenu"){i=Do(i,M);continue}i.hide(M)}i=Bn(i)}}const Dl=Ze({name:"QPortal",setup(i,{slots:M}){return()=>M.default()}});function jl(i){for(i=i.parent;i!=null;){if(i.type.name==="QGlobalDialog")return!0;if(i.type.name==="QDialog"||i.type.name==="QMenu")return!1;i=i.parent}return!1}function Gi(i,M,t,b){const m=h.ref(!1),c=h.ref(!1);let a=null;const o={},n=b==="dialog"&&jl(i);function e(u){if(u===!0){Ea(o),c.value=!0;return}c.value=!1,m.value===!1&&(n===!1&&a===null&&(a=Rl(!1,b)),m.value=!0,Or.push(i.proxy),El(o))}function r(u){if(c.value=!1,u!==!0)return;Ea(o),m.value=!1;const s=Or.indexOf(i.proxy);s!==-1&&Or.splice(s,1),a!==null&&(Il(a),a=null)}return h.onUnmounted(()=>{r(!0)}),i.proxy.__qPortal=!0,qt(i.proxy,"contentEl",()=>M.value),{showPortal:e,hidePortal:r,portalIsActive:m,portalIsAccessible:c,renderPortal:()=>n===!0?t():m.value===!0?[h.h(h.Teleport,{to:a},h.h(Dl,t))]:void 0}}const en={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Ji(i,M=()=>{},t=()=>{}){return{transitionProps:h.computed(()=>{const b=`q-transition--${i.transitionShow||M()}`,m=`q-transition--${i.transitionHide||t()}`;return{appear:!0,enterFromClass:`${b}-enter-from`,enterActiveClass:`${b}-enter-active`,enterToClass:`${b}-enter-to`,leaveFromClass:`${m}-leave-from`,leaveActiveClass:`${m}-leave-active`,leaveToClass:`${m}-leave-to`}}),transitionStyle:h.computed(()=>`--q-transition-duration: ${i.transitionDuration}ms`)}}function Zi(){let i;const M=h.getCurrentInstance();function t(){i=void 0}return h.onDeactivated(t),h.onBeforeUnmount(t),{removeTick:t,registerTick(b){i=b,h.nextTick(()=>{i===b&&(Jn(M)===!1&&i(),i=void 0)})}}}function ei(){let i=null;const M=h.getCurrentInstance();function t(){i!==null&&(clearTimeout(i),i=null)}return h.onDeactivated(t),h.onBeforeUnmount(t),{removeTimeout:t,registerTimeout(b,m){t(),Jn(M)===!1&&(i=setTimeout(()=>{i=null,b()},m))}}}const ti=[Element,String],Nl=[null,document,document.body,document.scrollingElement,document.documentElement];function ri(i,M){let t=sl(M);if(t===void 0){if(i==null)return window;t=i.closest(".scroll,.scroll-y,.overflow-auto")}return Nl.includes(t)?window:t}function $i(i){return i===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:i.scrollTop}function ea(i){return i===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:i.scrollLeft}function jo(i,M,t=0){const b=arguments[3]===void 0?performance.now():arguments[3],m=$i(i);if(t<=0){m!==M&&Oi(i,M);return}requestAnimationFrame(c=>{const a=c-b,o=m+(M-m)/Math.max(a,t)*a;Oi(i,o),o!==M&&jo(i,M,t-a,c)})}function No(i,M,t=0){const b=arguments[3]===void 0?performance.now():arguments[3],m=ea(i);if(t<=0){m!==M&&Fi(i,M);return}requestAnimationFrame(c=>{const a=c-b,o=m+(M-m)/Math.max(a,t)*a;Fi(i,o),o!==M&&No(i,M,t-a,c)})}function Oi(i,M){if(i===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,M);return}i.scrollTop=M}function Fi(i,M){if(i===window){window.scrollTo(M,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}i.scrollLeft=M}function Ta(i,M,t){if(t){jo(i,M,t);return}Oi(i,M)}function di(i,M,t){if(t){No(i,M,t);return}Fi(i,M)}let wn;function Rn(){if(wn!==void 0)return wn;const i=document.createElement("p"),M=document.createElement("div");Bi(i,{width:"100%",height:"200px"}),Bi(M,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),M.appendChild(i),document.body.appendChild(M);const t=i.offsetWidth;M.style.overflow="scroll";let b=i.offsetWidth;return t===b&&(b=M.clientWidth),M.remove(),wn=t-b,wn}function Pl(i,M=!0){return!i||i.nodeType!==Node.ELEMENT_NODE?!1:M?i.scrollHeight>i.clientHeight&&(i.classList.contains("scroll")||i.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(i)["overflow-y"])):i.scrollWidth>i.clientWidth&&(i.classList.contains("scroll")||i.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(i)["overflow-x"]))}const{notPassiveCapture:Nn}=_t,wr=[];function Pn(i){const M=i.target;if(M===void 0||M.nodeType===8||M.classList.contains("no-pointer-events")===!0)return;let t=Or.length-1;for(;t>=0;){const b=Or[t].$;if(b.type.name==="QTooltip"){t--;continue}if(b.type.name!=="QDialog")break;if(b.props.seamless!==!0)return;t--}for(let b=wr.length-1;b>=0;b--){const m=wr[b];if((m.anchorEl.value===null||m.anchorEl.value.contains(M)===!1)&&(M===document.body||m.innerRef.value!==null&&m.innerRef.value.contains(M)===!1))i.qClickOutside=!0,m.onClickOutside(i);else return}}function Po(i){wr.push(i),wr.length===1&&(document.addEventListener("mousedown",Pn,Nn),document.addEventListener("touchstart",Pn,Nn))}function Ln(i){const M=wr.findIndex(t=>t===i);M!==-1&&(wr.splice(M,1),wr.length===0&&(document.removeEventListener("mousedown",Pn,Nn),document.removeEventListener("touchstart",Pn,Nn)))}let Ba,Ra;function Vn(i){const M=i.split(" ");return M.length!==2?!1:["top","center","bottom"].includes(M[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(M[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Lo(i){return i?!(i.length!==2||typeof i[0]!="number"||typeof i[1]!="number"):!0}const Di={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(i=>{Di[`${i}#ltr`]=i,Di[`${i}#rtl`]=i});function qn(i,M){const t=i.split(" ");return{vertical:t[0],horizontal:Di[`${t[1]}#${M===!0?"rtl":"ltr"}`]}}function Ll(i,M){let{top:t,left:b,right:m,bottom:c,width:a,height:o}=i.getBoundingClientRect();return M!==void 0&&(t-=M[1],b-=M[0],c+=M[1],m+=M[0],a+=M[0],o+=M[1]),{top:t,bottom:c,height:o,left:b,right:m,width:a,middle:b+(m-b)/2,center:t+(c-t)/2}}function Vl(i,M,t){let{top:b,left:m}=i.getBoundingClientRect();return b+=M.top,m+=M.left,t!==void 0&&(b+=t[1],m+=t[0]),{top:b,bottom:b+1,height:1,left:m,right:m+1,width:1,middle:m,center:b}}function ql(i,M){return{top:0,center:M/2,bottom:M,left:0,middle:i/2,right:i}}function Ia(i,M,t,b){return{top:i[t.vertical]-M[b.vertical],left:i[t.horizontal]-M[b.horizontal]}}function ta(i,M=0){if(i.targetEl===null||i.anchorEl===null||M>5)return;if(i.targetEl.offsetHeight===0||i.targetEl.offsetWidth===0){setTimeout(()=>{ta(i,M+1)},10);return}const{targetEl:t,offset:b,anchorEl:m,anchorOrigin:c,selfOrigin:a,absoluteOffset:o,fit:n,cover:e,maxHeight:r,maxWidth:u}=i;if(Mt.is.ios===!0&&window.visualViewport!==void 0){const N=document.body.style,{offsetLeft:q,offsetTop:j}=window.visualViewport;q!==Ba&&(N.setProperty("--q-pe-left",q+"px"),Ba=q),j!==Ra&&(N.setProperty("--q-pe-top",j+"px"),Ra=j)}const{scrollLeft:s,scrollTop:l}=t,f=o===void 0?Ll(m,e===!0?[0,0]:b):Vl(m,o,b);Object.assign(t.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:u,maxHeight:r,visibility:"visible"});const{offsetWidth:p,offsetHeight:d}=t,{elWidth:v,elHeight:g}=n===!0||e===!0?{elWidth:Math.max(f.width,p),elHeight:e===!0?Math.max(f.height,d):d}:{elWidth:p,elHeight:d};let k={maxWidth:u,maxHeight:r};(n===!0||e===!0)&&(k.minWidth=f.width+"px",e===!0&&(k.minHeight=f.height+"px")),Object.assign(t.style,k);const C=ql(v,g);let B=Ia(f,C,c,a);if(o===void 0||b===void 0)fi(B,f,C,c,a);else{const{top:N,left:q}=B;fi(B,f,C,c,a);let j=!1;if(B.top!==N){j=!0;const P=2*b[1];f.center=f.top-=P,f.bottom-=P+2}if(B.left!==q){j=!0;const P=2*b[0];f.middle=f.left-=P,f.right-=P+2}j===!0&&(B=Ia(f,C,c,a),fi(B,f,C,c,a))}k={top:B.top+"px",left:B.left+"px"},B.maxHeight!==void 0&&(k.maxHeight=B.maxHeight+"px",f.height>B.maxHeight&&(k.minHeight=k.maxHeight)),B.maxWidth!==void 0&&(k.maxWidth=B.maxWidth+"px",f.width>B.maxWidth&&(k.minWidth=k.maxWidth)),Object.assign(t.style,k),t.scrollTop!==l&&(t.scrollTop=l),t.scrollLeft!==s&&(t.scrollLeft=s)}function fi(i,M,t,b,m){const c=t.bottom,a=t.right,o=Rn(),n=window.innerHeight-o,e=document.body.clientWidth;if(i.top<0||i.top+c>n)if(m.vertical==="center")i.top=M[b.vertical]>n/2?Math.max(0,n-c):0,i.maxHeight=Math.min(c,n);else if(M[b.vertical]>n/2){const r=Math.min(n,b.vertical==="center"?M.center:b.vertical===m.vertical?M.bottom:M.top);i.maxHeight=Math.min(c,r),i.top=Math.max(0,r-c)}else i.top=Math.max(0,b.vertical==="center"?M.center:b.vertical===m.vertical?M.top:M.bottom),i.maxHeight=Math.min(c,n-i.top);if(i.left<0||i.left+a>e)if(i.maxWidth=Math.min(a,e),m.horizontal==="middle")i.left=M[b.horizontal]>e/2?Math.max(0,e-a):0;else if(M[b.horizontal]>e/2){const r=Math.min(e,b.horizontal==="middle"?M.middle:b.horizontal===m.horizontal?M.right:M.left);i.maxWidth=Math.min(a,r),i.left=Math.max(0,r-i.maxWidth)}else i.left=Math.max(0,b.horizontal==="middle"?M.middle:b.horizontal===m.horizontal?M.left:M.right),i.maxWidth=Math.min(a,e-i.left)}const tr=Ze({name:"QTooltip",inheritAttrs:!1,props:{...Ro,...on,...en,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...en.transitionShow,default:"jump-down"},transitionHide:{...en.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Vn},self:{type:String,default:"top middle",validator:Vn},offset:{type:Array,default:()=>[14,14],validator:Lo},scrollTarget:ti,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...sn],setup(i,{slots:M,emit:t,attrs:b}){let m,c;const a=h.getCurrentInstance(),{proxy:{$q:o}}=a,n=h.ref(null),e=h.ref(!1),r=h.computed(()=>qn(i.anchor,o.lang.rtl)),u=h.computed(()=>qn(i.self,o.lang.rtl)),s=h.computed(()=>i.persistent!==!0),{registerTick:l,removeTick:f}=Zi(),{registerTimeout:p}=ei(),{transitionProps:d,transitionStyle:v}=Ji(i),{localScrollTarget:g,changeScrollEvent:k,unconfigureScrollTarget:C}=Oo(i,E),{anchorEl:B,canShow:N,anchorEvents:q}=Xi({showing:e,configureAnchorEl:S}),{show:j,hide:P}=ln({showing:e,canShow:N,handleShow:A,handleHide:T,hideOnRouteChange:s,processOnMount:!0});Object.assign(q,{delayShow:w,delayHide:x});const{showPortal:V,hidePortal:z,renderPortal:L}=Gi(a,n,O,"tooltip");if(o.platform.is.mobile===!0){const W={anchorEl:B,innerRef:n,onClickOutside(K){return P(K),K.target.classList.contains("q-dialog__backdrop")&&xt(K),!0}},H=h.computed(()=>i.modelValue===null&&i.persistent!==!0&&e.value===!0);h.watch(H,K=>{(K===!0?Po:Ln)(W)}),h.onBeforeUnmount(()=>{Ln(W)})}function A(W){V(),l(()=>{c=new MutationObserver(()=>y()),c.observe(n.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),y(),E()}),m===void 0&&(m=h.watch(()=>o.screen.width+"|"+o.screen.height+"|"+i.self+"|"+i.anchor+"|"+o.lang.rtl,y)),p(()=>{V(!0),t("show",W)},i.transitionDuration)}function T(W){f(),z(),_(),p(()=>{z(!0),t("hide",W)},i.transitionDuration)}function _(){c!==void 0&&(c.disconnect(),c=void 0),m!==void 0&&(m(),m=void 0),C(),yr(q,"tooltipTemp")}function y(){ta({targetEl:n.value,offset:i.offset,anchorEl:B.value,anchorOrigin:r.value,selfOrigin:u.value,maxHeight:i.maxHeight,maxWidth:i.maxWidth})}function w(W){if(o.platform.is.mobile===!0){jn(),document.body.classList.add("non-selectable");const H=B.value,K=["touchmove","touchcancel","touchend","click"].map(D=>[H,D,"delayHide","passiveCapture"]);er(q,"tooltipTemp",K)}p(()=>{j(W)},i.delay)}function x(W){o.platform.is.mobile===!0&&(yr(q,"tooltipTemp"),jn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),p(()=>{P(W)},i.hideDelay)}function S(){if(i.noParentEvent===!0||B.value===null)return;const W=o.platform.is.mobile===!0?[[B.value,"touchstart","delayShow","passive"]]:[[B.value,"mouseenter","delayShow","passive"],[B.value,"mouseleave","delayHide","passive"]];er(q,"anchor",W)}function E(){if(B.value!==null||i.scrollTarget!==void 0){g.value=ri(B.value,i.scrollTarget);const W=i.noParentEvent===!0?y:P;k(g.value,W)}}function I(){return e.value===!0?h.h("div",{...b,ref:n,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",b.class],style:[b.style,v.value],role:"tooltip"},dt(M.default)):null}function O(){return h.h(h.Transition,d.value,I)}return h.onBeforeUnmount(_),Object.assign(a.proxy,{updatePosition:y}),L}});function zl(i,M){const t=h.ref(null),b=h.computed(()=>i.disable===!0?null:h.h("span",{ref:t,class:"no-outline",tabindex:-1}));function m(c){const a=M.value;c?.qAvoidFocus!==!0&&(c?.type.indexOf("key")===0?document.activeElement!==a&&a?.contains(document.activeElement)===!0&&a.focus():t.value!==null&&(c===void 0||a?.contains(c.target)===!0)&&t.value.focus())}return{refocusTargetEl:b,refocusTarget:m}}const cn={name:String};function Vo(i){return h.computed(()=>({type:"hidden",name:i.name,value:i.modelValue}))}function ra(i={}){return(M,t,b)=>{M[t](h.h("input",{class:"hidden"+(b||""),...i.value}))}}function qo(i){return h.computed(()=>i.name||i.for)}const Ul={xs:30,sm:35,md:40,lg:50,xl:60},zo={...Tt,...Ur,...cn,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:i=>i==="tf"||i==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Uo=["update:modelValue"];function Wo(i,M){const{props:t,slots:b,emit:m,proxy:c}=h.getCurrentInstance(),{$q:a}=c,o=Bt(t,a),n=h.ref(null),{refocusTargetEl:e,refocusTarget:r}=zl(t,n),u=Wr(t,Ul),s=h.computed(()=>t.val!==void 0&&Array.isArray(t.modelValue)),l=h.computed(()=>{const L=h.toRaw(t.val);return s.value===!0?t.modelValue.findIndex(A=>h.toRaw(A)===L):-1}),f=h.computed(()=>s.value===!0?l.value!==-1:h.toRaw(t.modelValue)===h.toRaw(t.trueValue)),p=h.computed(()=>s.value===!0?l.value===-1:h.toRaw(t.modelValue)===h.toRaw(t.falseValue)),d=h.computed(()=>f.value===!1&&p.value===!1),v=h.computed(()=>t.disable===!0?-1:t.tabindex||0),g=h.computed(()=>`q-${i} cursor-pointer no-outline row inline no-wrap items-center`+(t.disable===!0?" disabled":"")+(o.value===!0?` q-${i}--dark`:"")+(t.dense===!0?` q-${i}--dense`:"")+(t.leftLabel===!0?" reverse":"")),k=h.computed(()=>{const L=f.value===!0?"truthy":p.value===!0?"falsy":"indet",A=t.color!==void 0&&(t.keepColor===!0||(i==="toggle"?f.value===!0:p.value!==!0))?` text-${t.color}`:"";return`q-${i}__inner relative-position non-selectable q-${i}__inner--${L}${A}`}),C=h.computed(()=>{const L={type:"checkbox"};return t.name!==void 0&&Object.assign(L,{".checked":f.value,"^checked":f.value===!0?"checked":void 0,name:t.name,value:s.value===!0?t.val:t.trueValue}),L}),B=ra(C),N=h.computed(()=>{const L={tabindex:v.value,role:i==="toggle"?"switch":"checkbox","aria-label":t.label,"aria-checked":d.value===!0?"mixed":f.value===!0?"true":"false"};return t.disable===!0&&(L["aria-disabled"]="true"),L});function q(L){L!==void 0&&(xt(L),r(L)),t.disable!==!0&&m("update:modelValue",j(),L)}function j(){if(s.value===!0){if(f.value===!0){const L=t.modelValue.slice();return L.splice(l.value,1),L}return t.modelValue.concat([t.val])}if(f.value===!0){if(t.toggleOrder!=="ft"||t.toggleIndeterminate===!1)return t.falseValue}else if(p.value===!0){if(t.toggleOrder==="ft"||t.toggleIndeterminate===!1)return t.trueValue}else return t.toggleOrder!=="ft"?t.trueValue:t.falseValue;return t.indeterminateValue}function P(L){(L.keyCode===13||L.keyCode===32)&&xt(L)}function V(L){(L.keyCode===13||L.keyCode===32)&&q(L)}const z=M(f,d);return Object.assign(c,{toggle:q}),()=>{const L=z();t.disable!==!0&&B(L,"unshift",` q-${i}__native absolute q-ma-none q-pa-none`);const A=[h.h("div",{class:k.value,style:u.value,"aria-hidden":"true"},L)];e.value!==null&&A.push(e.value);const T=t.label!==void 0?Dt(b.default,[t.label]):dt(b.default);return T!==void 0&&A.push(h.h("div",{class:`q-${i}__label q-anchor--skip`},T)),h.h("div",{ref:n,class:g.value,...N.value,onClick:q,onKeydown:P,onKeyup:V},A)}}const Wl=()=>h.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[h.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[h.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),h.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Fr=Ze({name:"QCheckbox",props:zo,emits:Uo,setup(i){const M=Wl();function t(b,m){const c=h.computed(()=>(b.value===!0?i.checkedIcon:m.value===!0?i.indeterminateIcon:i.uncheckedIcon)||null);return()=>c.value!==null?[h.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[h.h(ct,{class:"q-checkbox__icon",name:c.value})])]:[M]}return Wo("checkbox",t)}}),Hl=Ze({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(i){return()=>[h.h("div",{class:i.store.scroll.vertical.barClass.value,style:[i.barStyle,i.verticalBarStyle],"aria-hidden":"true",onMousedown:i.store.onVerticalMousedown}),h.h("div",{class:i.store.scroll.horizontal.barClass.value,style:[i.barStyle,i.horizontalBarStyle],"aria-hidden":"true",onMousedown:i.store.onHorizontalMousedown}),h.withDirectives(h.h("div",{ref:i.store.scroll.vertical.ref,class:i.store.scroll.vertical.thumbClass.value,style:i.store.scroll.vertical.style.value,"aria-hidden":"true"}),i.store.thumbVertDir),h.withDirectives(h.h("div",{ref:i.store.scroll.horizontal.ref,class:i.store.scroll.horizontal.thumbClass.value,style:i.store.scroll.horizontal.style.value,"aria-hidden":"true"}),i.store.thumbHorizDir)]}});function Yl(){const i=h.ref(!dr.value);return i.value===!1&&h.onMounted(()=>{i.value=!0}),{isHydrated:i}}const Ho=typeof ResizeObserver<"u",Oa=Ho===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},Lr=Ze({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(i,{emit:M}){let t=null,b,m={width:-1,height:-1};function c(n){n===!0||i.debounce===0||i.debounce==="0"?a():t===null&&(t=setTimeout(a,i.debounce))}function a(){if(t!==null&&(clearTimeout(t),t=null),b){const{offsetWidth:n,offsetHeight:e}=b;(n!==m.width||e!==m.height)&&(m={width:n,height:e},M("resize",m))}}const{proxy:o}=h.getCurrentInstance();if(o.trigger=c,Ho===!0){let n;const e=r=>{b=o.$el.parentNode,b?(n=new ResizeObserver(c),n.observe(b),a()):r!==!0&&h.nextTick(()=>{e(!0)})};return h.onMounted(()=>{e()}),h.onBeforeUnmount(()=>{t!==null&&clearTimeout(t),n!==void 0&&(n.disconnect!==void 0?n.disconnect():b&&n.unobserve(b))}),$n}else{let n=function(){t!==null&&(clearTimeout(t),t=null),u!==void 0&&(u.removeEventListener!==void 0&&u.removeEventListener("resize",c,_t.passive),u=void 0)},e=function(){n(),b?.contentDocument&&(u=b.contentDocument.defaultView,u.addEventListener("resize",c,_t.passive),a())};const{isHydrated:r}=Yl();let u;return h.onMounted(()=>{h.nextTick(()=>{b=o.$el,b&&e()})}),h.onBeforeUnmount(n),()=>{if(r.value===!0)return h.h("object",{class:"q--avoid-card-border",style:Oa.style,tabindex:-1,type:"text/html",data:Oa.url,"aria-hidden":"true",onLoad:e})}}}}),{passive:Fa}=_t,Ql=["both","horizontal","vertical"],Yo=Ze({name:"QScrollObserver",props:{axis:{type:String,validator:i=>Ql.includes(i),default:"vertical"},debounce:[String,Number],scrollTarget:ti},emits:["scroll"],setup(i,{emit:M}){const t={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let b=null,m,c;h.watch(()=>i.scrollTarget,()=>{n(),o()});function a(){b?.();const u=Math.max(0,$i(m)),s=ea(m),l={top:u-t.position.top,left:s-t.position.left};if(i.axis==="vertical"&&l.top===0||i.axis==="horizontal"&&l.left===0)return;const f=Math.abs(l.top)>=Math.abs(l.left)?l.top<0?"up":"down":l.left<0?"left":"right";t.position={top:u,left:s},t.directionChanged=t.direction!==f,t.delta=l,t.directionChanged===!0&&(t.direction=f,t.inflectionPoint=t.position),M("scroll",{...t})}function o(){m=ri(c,i.scrollTarget),m.addEventListener("scroll",e,Fa),e(!0)}function n(){m!==void 0&&(m.removeEventListener("scroll",e,Fa),m=void 0)}function e(u){if(u===!0||i.debounce===0||i.debounce==="0")a();else if(b===null){const[s,l]=i.debounce?[setTimeout(a,i.debounce),clearTimeout]:[requestAnimationFrame(a),cancelAnimationFrame];b=()=>{l(s),b=null}}}const{proxy:r}=h.getCurrentInstance();return h.watch(()=>r.$q.lang.rtl,a),h.onMounted(()=>{c=r.$el.parentNode,o()}),h.onBeforeUnmount(()=>{b?.(),n()}),Object.assign(r,{trigger:e,getPosition:()=>t}),$n}}),na={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},Kl=Object.keys(na);na.all=!0;function Da(i){const M={};for(const t of Kl)i[t]===!0&&(M[t]=!0);return Object.keys(M).length===0?na:(M.horizontal===!0?M.left=M.right=!0:M.left===!0&&M.right===!0&&(M.horizontal=!0),M.vertical===!0?M.up=M.down=!0:M.up===!0&&M.down===!0&&(M.vertical=!0),M.horizontal===!0&&M.vertical===!0&&(M.all=!0),M)}const Xl=["INPUT","TEXTAREA"];function ja(i,M){return M.event===void 0&&i.target!==void 0&&i.target.draggable!==!0&&typeof M.handler=="function"&&Xl.includes(i.target.nodeName.toUpperCase())===!1&&(i.qClonedBy===void 0||i.qClonedBy.indexOf(M.uid)===-1)}function hi(i,M,t){const b=Pr(i);let m,c=b.left-M.event.x,a=b.top-M.event.y,o=Math.abs(c),n=Math.abs(a);const e=M.direction;e.horizontal===!0&&e.vertical!==!0?m=c<0?"left":"right":e.horizontal!==!0&&e.vertical===!0?m=a<0?"up":"down":e.up===!0&&a<0?(m="up",o>n&&(e.left===!0&&c<0?m="left":e.right===!0&&c>0&&(m="right"))):e.down===!0&&a>0?(m="down",o>n&&(e.left===!0&&c<0?m="left":e.right===!0&&c>0&&(m="right"))):e.left===!0&&c<0?(m="left",o<n&&(e.up===!0&&a<0?m="up":e.down===!0&&a>0&&(m="down"))):e.right===!0&&c>0&&(m="right",o<n&&(e.up===!0&&a<0?m="up":e.down===!0&&a>0&&(m="down")));let r=!1;if(m===void 0&&t===!1){if(M.event.isFirst===!0||M.event.lastDir===void 0)return{};m=M.event.lastDir,r=!0,m==="left"||m==="right"?(b.left-=c,o=0,c=0):(b.top-=a,n=0,a=0)}return{synthetic:r,payload:{evt:i,touch:M.event.mouse!==!0,mouse:M.event.mouse===!0,position:b,direction:m,isFirst:M.event.isFirst,isFinal:t===!0,duration:Date.now()-M.event.time,distance:{x:o,y:n},offset:{x:c,y:a},delta:{x:b.left-M.event.lastX,y:b.top-M.event.lastY}}}}let Gl=0;const Dr=zi({name:"touch-pan",beforeMount(i,{value:M,modifiers:t}){if(t.mouse!==!0&&Mt.has.touch!==!0)return;function b(c,a){t.mouse===!0&&a===!0?xt(c):(t.stop===!0&&Pt(c),t.prevent===!0&&Ot(c))}const m={uid:"qvtp_"+Gl++,handler:M,modifiers:t,direction:Da(t),noop:$n,mouseStart(c){ja(c,m)&&ll(c)&&(er(m,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),m.start(c,!0))},touchStart(c){if(ja(c,m)){const a=c.target;er(m,"temp",[[a,"touchmove","move","notPassiveCapture"],[a,"touchcancel","end","passiveCapture"],[a,"touchend","end","passiveCapture"]]),m.start(c)}},start(c,a){if(Mt.is.firefox===!0&&ci(i,!0),m.lastEvt=c,a===!0||t.stop===!0){if(m.direction.all!==!0&&(a!==!0||m.modifiers.mouseAllDir!==!0&&m.modifiers.mousealldir!==!0)){const e=c.type.indexOf("mouse")!==-1?new MouseEvent(c.type,c):new TouchEvent(c.type,c);c.defaultPrevented===!0&&Ot(e),c.cancelBubble===!0&&Pt(e),Object.assign(e,{qKeyEvent:c.qKeyEvent,qClickOutside:c.qClickOutside,qAnchorHandled:c.qAnchorHandled,qClonedBy:c.qClonedBy===void 0?[m.uid]:c.qClonedBy.concat(m.uid)}),m.initialEvent={target:c.target,event:e}}Pt(c)}const{left:o,top:n}=Pr(c);m.event={x:o,y:n,time:Date.now(),mouse:a===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:o,lastY:n}},move(c){if(m.event===void 0)return;const a=Pr(c),o=a.left-m.event.x,n=a.top-m.event.y;if(o===0&&n===0)return;m.lastEvt=c;const e=m.event.mouse===!0,r=()=>{b(c,e);let l;t.preserveCursor!==!0&&t.preservecursor!==!0&&(l=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),e===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),jn(),m.styleCleanup=f=>{if(m.styleCleanup=void 0,l!==void 0&&(document.documentElement.style.cursor=l),document.body.classList.remove("non-selectable"),e===!0){const p=()=>{document.body.classList.remove("no-pointer-events--children")};f!==void 0?setTimeout(()=>{p(),f()},50):p()}else f!==void 0&&f()}};if(m.event.detected===!0){m.event.isFirst!==!0&&b(c,m.event.mouse);const{payload:l,synthetic:f}=hi(c,m,!1);l!==void 0&&(m.handler(l)===!1?m.end(c):(m.styleCleanup===void 0&&m.event.isFirst===!0&&r(),m.event.lastX=l.position.left,m.event.lastY=l.position.top,m.event.lastDir=f===!0?void 0:l.direction,m.event.isFirst=!1));return}if(m.direction.all===!0||e===!0&&(m.modifiers.mouseAllDir===!0||m.modifiers.mousealldir===!0)){r(),m.event.detected=!0,m.move(c);return}const u=Math.abs(o),s=Math.abs(n);u!==s&&(m.direction.horizontal===!0&&u>s||m.direction.vertical===!0&&u<s||m.direction.up===!0&&u<s&&n<0||m.direction.down===!0&&u<s&&n>0||m.direction.left===!0&&u>s&&o<0||m.direction.right===!0&&u>s&&o>0?(m.event.detected=!0,m.move(c)):m.end(c,!0))},end(c,a){if(m.event!==void 0){if(yr(m,"temp"),Mt.is.firefox===!0&&ci(i,!1),a===!0)m.styleCleanup?.(),m.event.detected!==!0&&m.initialEvent!==void 0&&m.initialEvent.target.dispatchEvent(m.initialEvent.event);else if(m.event.detected===!0){m.event.isFirst===!0&&m.handler(hi(c===void 0?m.lastEvt:c,m).payload);const{payload:o}=hi(c===void 0?m.lastEvt:c,m,!0),n=()=>{m.handler(o)};m.styleCleanup!==void 0?m.styleCleanup(n):n()}m.event=void 0,m.initialEvent=void 0,m.lastEvt=void 0}}};if(i.__qtouchpan=m,t.mouse===!0){const c=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";er(m,"main",[[i,"mousedown","mouseStart",`passive${c}`]])}Mt.has.touch===!0&&er(m,"main",[[i,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[i,"touchmove","noop","notPassiveCapture"]])},updated(i,M){const t=i.__qtouchpan;t!==void 0&&(M.oldValue!==M.value&&(typeof value!="function"&&t.end(),t.handler=M.value),t.direction=Da(M.modifiers))},beforeUnmount(i){const M=i.__qtouchpan;M!==void 0&&(M.event!==void 0&&M.end(),yr(M,"main"),yr(M,"temp"),Mt.is.firefox===!0&&ci(i,!1),M.styleCleanup?.(),delete i.__qtouchpan)}});function Jl(i){return i.charAt(0).toUpperCase()+i.slice(1)}function $t(i,M,t){return t<=M?M:Math.min(t,Math.max(M,i))}function Na(i,M,t){if(t<=M)return M;const b=t-M+1;let m=M+(i-M)%b;return m<M&&(m=b+m),m===0?0:m}function ht(i,M=2,t="0"){if(i==null)return i;const b=""+i;return b.length>=M?b:new Array(M-b.length+1).join(t)+b}function ia(i,M=250,t){let b=null;function m(){const c=arguments,a=()=>{b=null,i.apply(this,c)};b!==null&&clearTimeout(b),b=setTimeout(a,M)}return m.cancel=()=>{b!==null&&clearTimeout(b)},m}const Pa=["vertical","horizontal"],pi={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},La={prevent:!0,mouse:!0,mouseAllDir:!0},Va=i=>i>=250?50:Math.ceil(i/5),Zl=Ze({name:"QScrollArea",props:{...Tt,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(i,{slots:M,emit:t}){const b=h.ref(!1),m=h.ref(!1),c=h.ref(!1),a={vertical:h.ref(0),horizontal:h.ref(0)},o={vertical:{ref:h.ref(null),position:h.ref(0),size:h.ref(0)},horizontal:{ref:h.ref(null),position:h.ref(0),size:h.ref(0)}},{proxy:n}=h.getCurrentInstance(),e=Bt(i,n.$q);let r=null,u;const s=h.ref(null),l=h.computed(()=>"q-scrollarea"+(e.value===!0?" q-scrollarea--dark":""));Object.assign(a,{verticalInner:h.computed(()=>a.vertical.value-i.verticalOffset[0]-i.verticalOffset[1]),horizontalInner:h.computed(()=>a.horizontal.value-i.horizontalOffset[0]-i.horizontalOffset[1])}),o.vertical.percentage=h.computed(()=>{const T=o.vertical.size.value-a.vertical.value;if(T<=0)return 0;const _=$t(o.vertical.position.value/T,0,1);return Math.round(_*1e4)/1e4}),o.vertical.thumbHidden=h.computed(()=>(i.visible===null?c.value:i.visible)!==!0&&b.value===!1&&m.value===!1||o.vertical.size.value<=a.vertical.value+1),o.vertical.thumbStart=h.computed(()=>i.verticalOffset[0]+o.vertical.percentage.value*(a.verticalInner.value-o.vertical.thumbSize.value)),o.vertical.thumbSize=h.computed(()=>Math.round($t(a.verticalInner.value*a.verticalInner.value/o.vertical.size.value,Va(a.verticalInner.value),a.verticalInner.value))),o.vertical.style=h.computed(()=>({...i.thumbStyle,...i.verticalThumbStyle,top:`${o.vertical.thumbStart.value}px`,height:`${o.vertical.thumbSize.value}px`,right:`${i.horizontalOffset[1]}px`})),o.vertical.thumbClass=h.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(o.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),o.vertical.barClass=h.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(o.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),o.horizontal.percentage=h.computed(()=>{const T=o.horizontal.size.value-a.horizontal.value;if(T<=0)return 0;const _=$t(Math.abs(o.horizontal.position.value)/T,0,1);return Math.round(_*1e4)/1e4}),o.horizontal.thumbHidden=h.computed(()=>(i.visible===null?c.value:i.visible)!==!0&&b.value===!1&&m.value===!1||o.horizontal.size.value<=a.horizontal.value+1),o.horizontal.thumbStart=h.computed(()=>i.horizontalOffset[0]+o.horizontal.percentage.value*(a.horizontalInner.value-o.horizontal.thumbSize.value)),o.horizontal.thumbSize=h.computed(()=>Math.round($t(a.horizontalInner.value*a.horizontalInner.value/o.horizontal.size.value,Va(a.horizontalInner.value),a.horizontalInner.value))),o.horizontal.style=h.computed(()=>({...i.thumbStyle,...i.horizontalThumbStyle,[n.$q.lang.rtl===!0?"right":"left"]:`${o.horizontal.thumbStart.value}px`,width:`${o.horizontal.thumbSize.value}px`,bottom:`${i.verticalOffset[1]}px`})),o.horizontal.thumbClass=h.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(o.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),o.horizontal.barClass=h.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(o.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const f=h.computed(()=>o.vertical.thumbHidden.value===!0&&o.horizontal.thumbHidden.value===!0?i.contentStyle:i.contentActiveStyle);function p(){const T={};return Pa.forEach(_=>{const y=o[_];Object.assign(T,{[_+"Position"]:y.position.value,[_+"Percentage"]:y.percentage.value,[_+"Size"]:y.size.value,[_+"ContainerSize"]:a[_].value,[_+"ContainerInnerSize"]:a[_+"Inner"].value})}),T}const d=ia(()=>{const T=p();T.ref=n,t("scroll",T)},0);function v(T,_,y){if(Pa.includes(T)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(T==="vertical"?Ta:di)(s.value,_,y)}function g({height:T,width:_}){let y=!1;a.vertical.value!==T&&(a.vertical.value=T,y=!0),a.horizontal.value!==_&&(a.horizontal.value=_,y=!0),y===!0&&q()}function k({position:T}){let _=!1;o.vertical.position.value!==T.top&&(o.vertical.position.value=T.top,_=!0),o.horizontal.position.value!==T.left&&(o.horizontal.position.value=T.left,_=!0),_===!0&&q()}function C({height:T,width:_}){o.horizontal.size.value!==_&&(o.horizontal.size.value=_,q()),o.vertical.size.value!==T&&(o.vertical.size.value=T,q())}function B(T,_){const y=o[_];if(T.isFirst===!0){if(y.thumbHidden.value===!0)return;u=y.position.value,m.value=!0}else if(m.value!==!0)return;T.isFinal===!0&&(m.value=!1);const w=pi[_],x=(y.size.value-a[_].value)/(a[_+"Inner"].value-y.thumbSize.value),S=T.distance[w.dist],E=u+(T.direction===w.dir?1:-1)*S*x;j(E,_)}function N(T,_){const y=o[_];if(y.thumbHidden.value!==!0){const w=_==="vertical"?i.verticalOffset[0]:i.horizontalOffset[0],x=T[pi[_].offset]-w,S=y.thumbStart.value-w;if(x<S||x>S+y.thumbSize.value){const E=x-y.thumbSize.value/2,I=$t(E/(a[_+"Inner"].value-y.thumbSize.value),0,1);j(I*Math.max(0,y.size.value-a[_].value),_)}y.ref.value!==null&&y.ref.value.dispatchEvent(new MouseEvent(T.type,T))}}function q(){b.value=!0,r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,b.value=!1},i.delay),i.onScroll!==void 0&&d()}function j(T,_){s.value[pi[_].scroll]=T}let P=null;function V(){P!==null&&clearTimeout(P),P=setTimeout(()=>{P=null,c.value=!0},n.$q.platform.is.ios?50:0)}function z(){P!==null&&(clearTimeout(P),P=null),c.value=!1}let L=null;h.watch(()=>n.$q.lang.rtl,T=>{s.value!==null&&di(s.value,Math.abs(o.horizontal.position.value)*(T===!0?-1:1))}),h.onDeactivated(()=>{L={top:o.vertical.position.value,left:o.horizontal.position.value}}),h.onActivated(()=>{if(L===null)return;const T=s.value;T!==null&&(di(T,L.left),Ta(T,L.top))}),h.onBeforeUnmount(d.cancel),Object.assign(n,{getScrollTarget:()=>s.value,getScroll:p,getScrollPosition:()=>({top:o.vertical.position.value,left:o.horizontal.position.value}),getScrollPercentage:()=>({top:o.vertical.percentage.value,left:o.horizontal.percentage.value}),setScrollPosition:v,setScrollPercentage(T,_,y){v(T,_*(o[T].size.value-a[T].value)*(T==="horizontal"&&n.$q.lang.rtl===!0?-1:1),y)}});const A={scroll:o,thumbVertDir:[[Dr,T=>{B(T,"vertical")},void 0,{vertical:!0,...La}]],thumbHorizDir:[[Dr,T=>{B(T,"horizontal")},void 0,{horizontal:!0,...La}]],onVerticalMousedown(T){N(T,"vertical")},onHorizontalMousedown(T){N(T,"horizontal")}};return()=>h.h("div",{class:l.value,onMouseenter:V,onMouseleave:z},[h.h("div",{ref:s,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:i.tabindex!==void 0?i.tabindex:void 0},[h.h("div",{class:"q-scrollarea__content absolute",style:f.value},Dt(M.default,[h.h(Lr,{debounce:0,onResize:C})])),h.h(Yo,{axis:"both",onScroll:k})]),h.h(Lr,{debounce:0,onResize:g}),h.h(Hl,{store:A,barStyle:i.barStyle,verticalBarStyle:i.verticalBarStyle,horizontalBarStyle:i.horizontalBarStyle})])}}),Hr=Ze({name:"QCard",props:{...Tt,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(i,{slots:M}){const{proxy:{$q:t}}=h.getCurrentInstance(),b=Bt(i,t),m=h.computed(()=>"q-card"+(b.value===!0?" q-card--dark q-dark":"")+(i.bordered===!0?" q-card--bordered":"")+(i.square===!0?" q-card--square no-border-radius":"")+(i.flat===!0?" q-card--flat no-shadow":""));return()=>h.h(i.tag,{class:m.value},dt(M.default))}}),xr=[];let Vr;function $l(i){Vr=i.keyCode===27}function eu(){Vr===!0&&(Vr=!1)}function tu(i){Vr===!0&&(Vr=!1,cr(i,27)===!0&&xr[xr.length-1](i))}function Qo(i){window[i]("keydown",$l),window[i]("blur",eu),window[i]("keyup",tu),Vr=!1}function Ko(i){Mt.is.desktop===!0&&(xr.push(i),xr.length===1&&Qo("addEventListener"))}function zn(i){const M=xr.indexOf(i);M!==-1&&(xr.splice(M,1),xr.length===0&&Qo("removeEventListener"))}const Sr=[];function Xo(i){Sr[Sr.length-1](i)}function Go(i){Mt.is.desktop===!0&&(Sr.push(i),Sr.length===1&&document.body.addEventListener("focusin",Xo))}function ji(i){const M=Sr.indexOf(i);M!==-1&&(Sr.splice(M,1),Sr.length===0&&document.body.removeEventListener("focusin",Xo))}const dn=Ze({name:"QMenu",inheritAttrs:!1,props:{...Io,...on,...Tt,...en,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Vn},self:{type:String,validator:Vn},offset:{type:Array,validator:Lo},scrollTarget:ti,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...sn,"click","escapeKey"],setup(i,{slots:M,emit:t,attrs:b}){let m=null,c,a,o;const n=h.getCurrentInstance(),{proxy:e}=n,{$q:r}=e,u=h.ref(null),s=h.ref(!1),l=h.computed(()=>i.persistent!==!0&&i.noRouteDismiss!==!0),f=Bt(i,r),{registerTick:p,removeTick:d}=Zi(),{registerTimeout:v}=ei(),{transitionProps:g,transitionStyle:k}=Ji(i),{localScrollTarget:C,changeScrollEvent:B,unconfigureScrollTarget:N}=Oo(i,W),{anchorEl:q,canShow:j}=Xi({showing:s}),{hide:P}=ln({showing:s,canShow:j,handleShow:E,handleHide:I,hideOnRouteChange:l,processOnMount:!0}),{showPortal:V,hidePortal:z,renderPortal:L}=Gi(n,u,F,"menu"),A={anchorEl:q,innerRef:u,onClickOutside(R){if(i.persistent!==!0&&s.value===!0)return P(R),(R.type==="touchstart"||R.target.classList.contains("q-dialog__backdrop"))&&xt(R),!0}},T=h.computed(()=>qn(i.anchor||(i.cover===!0?"center middle":"bottom start"),r.lang.rtl)),_=h.computed(()=>i.cover===!0?T.value:qn(i.self||"top start",r.lang.rtl)),y=h.computed(()=>(i.square===!0?" q-menu--square":"")+(f.value===!0?" q-menu--dark q-dark":"")),w=h.computed(()=>i.autoClose===!0?{onClick:H}:{}),x=h.computed(()=>s.value===!0&&i.persistent!==!0);h.watch(x,R=>{R===!0?(Ko(D),Po(A)):(zn(D),Ln(A))});function S(){un(()=>{let R=u.value;R&&R.contains(document.activeElement)!==!0&&(R=R.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||R.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||R.querySelector("[autofocus], [data-autofocus]")||R,R.focus({preventScroll:!0}))})}function E(R){if(m=i.noRefocus===!1?document.activeElement:null,Go(K),V(),W(),c=void 0,R!==void 0&&(i.touchPosition||i.contextMenu)){const U=Pr(R);if(U.left!==void 0){const{top:Q,left:$}=q.value.getBoundingClientRect();c={left:U.left-$,top:U.top-Q}}}a===void 0&&(a=h.watch(()=>r.screen.width+"|"+r.screen.height+"|"+i.self+"|"+i.anchor+"|"+r.lang.rtl,Y)),i.noFocus!==!0&&document.activeElement.blur(),p(()=>{Y(),i.noFocus!==!0&&S()}),v(()=>{r.platform.is.ios===!0&&(o=i.autoClose,u.value.click()),Y(),V(!0),t("show",R)},i.transitionDuration)}function I(R){d(),z(),O(!0),m!==null&&(R===void 0||R.qClickOutside!==!0)&&(((R?.type.indexOf("key")===0?m.closest('[tabindex]:not([tabindex^="-"])'):void 0)||m).focus(),m=null),v(()=>{z(!0),t("hide",R)},i.transitionDuration)}function O(R){c=void 0,a!==void 0&&(a(),a=void 0),(R===!0||s.value===!0)&&(ji(K),N(),Ln(A),zn(D)),R!==!0&&(m=null)}function W(){(q.value!==null||i.scrollTarget!==void 0)&&(C.value=ri(q.value,i.scrollTarget),B(C.value,Y))}function H(R){o!==!0?(Do(e,R),t("click",R)):o=!1}function K(R){x.value===!0&&i.noFocus!==!0&&Mo(u.value,R.target)!==!0&&S()}function D(R){i.noEscDismiss!==!0&&(t("escapeKey"),P(R))}function Y(){ta({targetEl:u.value,offset:i.offset,anchorEl:q.value,anchorOrigin:T.value,selfOrigin:_.value,absoluteOffset:c,fit:i.fit,cover:i.cover,maxHeight:i.maxHeight,maxWidth:i.maxWidth})}function F(){return h.h(h.Transition,g.value,()=>s.value===!0?h.h("div",{role:"menu",...b,ref:u,tabindex:-1,class:["q-menu q-position-engine scroll"+y.value,b.class],style:[b.style,k.value],...w.value},dt(M.default)):null)}return h.onBeforeUnmount(O),Object.assign(e,{focus:S,updatePosition:Y}),L}});let mi,xn=0;const Rt=new Array(256);for(let i=0;i<256;i++)Rt[i]=(i+256).toString(16).substring(1);const ru=(()=>{const i=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(i!==void 0){if(i.randomBytes!==void 0)return i.randomBytes;if(i.getRandomValues!==void 0)return M=>{const t=new Uint8Array(M);return i.getRandomValues(t),t}}return M=>{const t=[];for(let b=M;b>0;b--)t.push(Math.floor(Math.random()*256));return t}})(),qa=4096;function Un(){(mi===void 0||xn+16>qa)&&(xn=0,mi=ru(qa));const i=Array.prototype.slice.call(mi,xn,xn+=16);return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Rt[i[0]]+Rt[i[1]]+Rt[i[2]]+Rt[i[3]]+"-"+Rt[i[4]]+Rt[i[5]]+"-"+Rt[i[6]]+Rt[i[7]]+"-"+Rt[i[8]]+Rt[i[9]]+"-"+Rt[i[10]]+Rt[i[11]]+Rt[i[12]]+Rt[i[13]]+Rt[i[14]]+Rt[i[15]]}function nu(i){return i??null}function za(i,M){return i??(M===!0?`f_${Un()}`:null)}function Jo({getValue:i,required:M=!0}={}){if(dr.value===!0){const t=i!==void 0?h.ref(nu(i())):h.ref(null);return M===!0&&t.value===null&&h.onMounted(()=>{t.value=`f_${Un()}`}),i!==void 0&&h.watch(i,b=>{t.value=za(b,M)}),t}return i!==void 0?h.computed(()=>za(i(),M)):h.ref(`f_${Un()}`)}const Ua=/^on[A-Z]/;function iu(){const{attrs:i,vnode:M}=h.getCurrentInstance(),t={listeners:h.ref({}),attributes:h.ref({})};function b(){const m={},c={};for(const a in i)a!=="class"&&a!=="style"&&Ua.test(a)===!1&&(m[a]=i[a]);for(const a in M.props)Ua.test(a)===!0&&(c[a]=M.props[a]);t.attributes.value=m,t.listeners.value=c}return h.onBeforeUpdate(b),b(),t}const au="_q_",Yr="_q_l_",Zo="_q_pc_",$o="_q_fo_";function Et(){}function ou({validate:i,resetValidation:M,requiresQForm:t}){const b=h.inject($o,!1);if(b!==!1){const{props:m,proxy:c}=h.getCurrentInstance();Object.assign(c,{validate:i,resetValidation:M}),h.watch(()=>m.disable,a=>{a===!0?(typeof M=="function"&&M(),b.unbindComponent(c)):b.bindComponent(c)}),h.onMounted(()=>{m.disable!==!0&&b.bindComponent(c)}),h.onBeforeUnmount(()=>{m.disable!==!0&&b.unbindComponent(c)})}else t===!0&&console.error("Parent QForm not found on useFormChild()!")}const Wa=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Ha=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Ya=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Sn=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,kn=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,gi={date:i=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(i),time:i=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(i),fulltime:i=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(i),timeOrFulltime:i=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(i),email:i=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(i),hexColor:i=>Wa.test(i),hexaColor:i=>Ha.test(i),hexOrHexaColor:i=>Ya.test(i),rgbColor:i=>Sn.test(i),rgbaColor:i=>kn.test(i),rgbOrRgbaColor:i=>Sn.test(i)||kn.test(i),hexOrRgbColor:i=>Wa.test(i)||Sn.test(i),hexaOrRgbaColor:i=>Ha.test(i)||kn.test(i),anyColor:i=>Ya.test(i)||Sn.test(i)||kn.test(i)},su=[!0,!1,"ondemand"],lu={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:i=>su.includes(i)}};function uu(i,M){const{props:t,proxy:b}=h.getCurrentInstance(),m=h.ref(!1),c=h.ref(null),a=h.ref(!1);ou({validate:p,resetValidation:f});let o=0,n;const e=h.computed(()=>t.rules!==void 0&&t.rules!==null&&t.rules.length!==0),r=h.computed(()=>t.disable!==!0&&e.value===!0&&M.value===!1),u=h.computed(()=>t.error===!0||m.value===!0),s=h.computed(()=>typeof t.errorMessage=="string"&&t.errorMessage.length!==0?t.errorMessage:c.value);h.watch(()=>t.modelValue,()=>{a.value=!0,r.value===!0&&t.lazyRules===!1&&d()});function l(){t.lazyRules!=="ondemand"&&r.value===!0&&a.value===!0&&d()}h.watch(()=>t.reactiveRules,v=>{v===!0?n===void 0&&(n=h.watch(()=>t.rules,l,{immediate:!0,deep:!0})):n!==void 0&&(n(),n=void 0)},{immediate:!0}),h.watch(()=>t.lazyRules,l),h.watch(i,v=>{v===!0?a.value=!0:r.value===!0&&t.lazyRules!=="ondemand"&&d()});function f(){o++,M.value=!1,a.value=!1,m.value=!1,c.value=null,d.cancel()}function p(v=t.modelValue){if(t.disable===!0||e.value===!1)return!0;const g=++o,k=M.value!==!0?()=>{a.value=!0}:()=>{},C=(N,q)=>{N===!0&&k(),m.value=N,c.value=q||null,M.value=!1},B=[];for(let N=0;N<t.rules.length;N++){const q=t.rules[N];let j;if(typeof q=="function"?j=q(v,gi):typeof q=="string"&&gi[q]!==void 0&&(j=gi[q](v)),j===!1||typeof j=="string")return C(!0,j),!1;j!==!0&&j!==void 0&&B.push(j)}return B.length===0?(C(!1),!0):(M.value=!0,Promise.all(B).then(N=>{if(N===void 0||Array.isArray(N)===!1||N.length===0)return g===o&&C(!1),!0;const q=N.find(j=>j===!1||typeof j=="string");return g===o&&C(q!==void 0,q),q===void 0},N=>(g===o&&(console.error(N),C(!0)),!1)))}const d=ia(p,0);return h.onBeforeUnmount(()=>{n?.(),d.cancel()}),Object.assign(b,{resetValidation:f,validate:p}),qt(b,"hasError",()=>u.value),{isDirtyModel:a,hasRules:e,hasError:u,errorMessage:s,validate:p,resetValidation:f}}function rn(i){return i!=null&&(""+i).length!==0}const cu={...Tt,...lu,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},ni={...cu,maxlength:[Number,String]},aa=["update:modelValue","clear","focus","blur"];function oa({requiredForAttr:i=!0,tagProp:M,changeEvent:t=!1}={}){const{props:b,proxy:m}=h.getCurrentInstance(),c=Bt(b,m.$q),a=Jo({required:i,getValue:()=>b.for});return{requiredForAttr:i,changeEvent:t,tag:M===!0?h.computed(()=>b.tag):{value:"label"},isDark:c,editable:h.computed(()=>b.disable!==!0&&b.readonly!==!0),innerLoading:h.ref(!1),focused:h.ref(!1),hasPopupOpen:!1,splitAttrs:iu(),targetUid:a,rootRef:h.ref(null),targetRef:h.ref(null),controlRef:h.ref(null)}}function sa(i){const{props:M,emit:t,slots:b,attrs:m,proxy:c}=h.getCurrentInstance(),{$q:a}=c;let o=null;i.hasValue===void 0&&(i.hasValue=h.computed(()=>rn(M.modelValue))),i.emitValue===void 0&&(i.emitValue=x=>{t("update:modelValue",x)}),i.controlEvents===void 0&&(i.controlEvents={onFocusin:P,onFocusout:V}),Object.assign(i,{clearValue:z,onControlFocusin:P,onControlFocusout:V,focus:q}),i.computedCounter===void 0&&(i.computedCounter=h.computed(()=>{if(M.counter!==!1){const x=typeof M.modelValue=="string"||typeof M.modelValue=="number"?(""+M.modelValue).length:Array.isArray(M.modelValue)===!0?M.modelValue.length:0,S=M.maxlength!==void 0?M.maxlength:M.maxValues;return x+(S!==void 0?" / "+S:"")}}));const{isDirtyModel:n,hasRules:e,hasError:r,errorMessage:u,resetValidation:s}=uu(i.focused,i.innerLoading),l=i.floatingLabel!==void 0?h.computed(()=>M.stackLabel===!0||i.focused.value===!0||i.floatingLabel.value===!0):h.computed(()=>M.stackLabel===!0||i.focused.value===!0||i.hasValue.value===!0),f=h.computed(()=>M.bottomSlots===!0||M.hint!==void 0||e.value===!0||M.counter===!0||M.error!==null),p=h.computed(()=>M.filled===!0?"filled":M.outlined===!0?"outlined":M.borderless===!0?"borderless":M.standout?"standout":"standard"),d=h.computed(()=>`q-field row no-wrap items-start q-field--${p.value}`+(i.fieldClass!==void 0?` ${i.fieldClass.value}`:"")+(M.rounded===!0?" q-field--rounded":"")+(M.square===!0?" q-field--square":"")+(l.value===!0?" q-field--float":"")+(g.value===!0?" q-field--labeled":"")+(M.dense===!0?" q-field--dense":"")+(M.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(i.isDark.value===!0?" q-field--dark":"")+(i.getControl===void 0?" q-field--auto-height":"")+(i.focused.value===!0?" q-field--focused":"")+(r.value===!0?" q-field--error":"")+(r.value===!0||i.focused.value===!0?" q-field--highlighted":"")+(M.hideBottomSpace!==!0&&f.value===!0?" q-field--with-bottom":"")+(M.disable===!0?" q-field--disabled":M.readonly===!0?" q-field--readonly":"")),v=h.computed(()=>"q-field__control relative-position row no-wrap"+(M.bgColor!==void 0?` bg-${M.bgColor}`:"")+(r.value===!0?" text-negative":typeof M.standout=="string"&&M.standout.length!==0&&i.focused.value===!0?` ${M.standout}`:M.color!==void 0?` text-${M.color}`:"")),g=h.computed(()=>M.labelSlot===!0||M.label!==void 0),k=h.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(M.labelColor!==void 0&&r.value!==!0?` text-${M.labelColor}`:"")),C=h.computed(()=>({id:i.targetUid.value,editable:i.editable.value,focused:i.focused.value,floatingLabel:l.value,modelValue:M.modelValue,emitValue:i.emitValue})),B=h.computed(()=>{const x={};return i.targetUid.value&&(x.for=i.targetUid.value),M.disable===!0&&(x["aria-disabled"]="true"),x});function N(){const x=document.activeElement;let S=i.targetRef?.value;S&&(x===null||x.id!==i.targetUid.value)&&(S.hasAttribute("tabindex")===!0||(S=S.querySelector("[tabindex]")),S!==x&&S?.focus({preventScroll:!0}))}function q(){un(N)}function j(){Ml(N);const x=document.activeElement;x!==null&&i.rootRef.value.contains(x)&&x.blur()}function P(x){o!==null&&(clearTimeout(o),o=null),i.editable.value===!0&&i.focused.value===!1&&(i.focused.value=!0,t("focus",x))}function V(x,S){o!==null&&clearTimeout(o),o=setTimeout(()=>{o=null,!(document.hasFocus()===!0&&(i.hasPopupOpen===!0||i.controlRef===void 0||i.controlRef.value===null||i.controlRef.value.contains(document.activeElement)!==!1))&&(i.focused.value===!0&&(i.focused.value=!1,t("blur",x)),S?.())})}function z(x){xt(x),a.platform.is.mobile!==!0?(i.targetRef?.value||i.rootRef.value).focus():i.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),M.type==="file"&&(i.inputRef.value.value=null),t("update:modelValue",null),i.changeEvent===!0&&t("change",null),t("clear",M.modelValue),h.nextTick(()=>{const S=n.value;s(),n.value=S})}function L(x){[13,32].includes(x.keyCode)&&z(x)}function A(){const x=[];return b.prepend!==void 0&&x.push(h.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Ot},b.prepend())),x.push(h.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},T())),r.value===!0&&M.noErrorIcon===!1&&x.push(y("error",[h.h(ct,{name:a.iconSet.field.error,color:"negative"})])),M.loading===!0||i.innerLoading.value===!0?x.push(y("inner-loading-append",b.loading!==void 0?b.loading():[h.h(Eo,{color:M.color})])):M.clearable===!0&&i.hasValue.value===!0&&i.editable.value===!0&&x.push(y("inner-clearable-append",[h.h(ct,{class:"q-field__focusable-action",name:M.clearIcon||a.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":a.lang.label.clear,onKeyup:L,onClick:z})])),b.append!==void 0&&x.push(h.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Ot},b.append())),i.getInnerAppend!==void 0&&x.push(y("inner-append",i.getInnerAppend())),i.getControlChild!==void 0&&x.push(i.getControlChild()),x}function T(){const x=[];return M.prefix!==void 0&&M.prefix!==null&&x.push(h.h("div",{class:"q-field__prefix no-pointer-events row items-center"},M.prefix)),i.getShadowControl!==void 0&&i.hasShadow.value===!0&&x.push(i.getShadowControl()),i.getControl!==void 0?x.push(i.getControl()):b.rawControl!==void 0?x.push(b.rawControl()):b.control!==void 0&&x.push(h.h("div",{ref:i.targetRef,class:"q-field__native row",tabindex:-1,...i.splitAttrs.attributes.value,"data-autofocus":M.autofocus===!0||void 0},b.control(C.value))),g.value===!0&&x.push(h.h("div",{class:k.value},dt(b.label,M.label))),M.suffix!==void 0&&M.suffix!==null&&x.push(h.h("div",{class:"q-field__suffix no-pointer-events row items-center"},M.suffix)),x.concat(dt(b.default))}function _(){let x,S;r.value===!0?u.value!==null?(x=[h.h("div",{role:"alert"},u.value)],S=`q--slot-error-${u.value}`):(x=dt(b.error),S="q--slot-error"):(M.hideHint!==!0||i.focused.value===!0)&&(M.hint!==void 0?(x=[h.h("div",M.hint)],S=`q--slot-hint-${M.hint}`):(x=dt(b.hint),S="q--slot-hint"));const E=M.counter===!0||b.counter!==void 0;if(M.hideBottomSpace===!0&&E===!1&&x===void 0)return;const I=h.h("div",{key:S,class:"q-field__messages col"},x);return h.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(M.hideBottomSpace!==!0?"animated":"stale"),onClick:Ot},[M.hideBottomSpace===!0?I:h.h(h.Transition,{name:"q-transition--field-message"},()=>I),E===!0?h.h("div",{class:"q-field__counter"},b.counter!==void 0?b.counter():i.computedCounter.value):null])}function y(x,S){return S===null?null:h.h("div",{key:x,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},S)}let w=!1;return h.onDeactivated(()=>{w=!0}),h.onActivated(()=>{w===!0&&M.autofocus===!0&&c.focus()}),M.autofocus===!0&&h.onMounted(()=>{c.focus()}),h.onBeforeUnmount(()=>{o!==null&&clearTimeout(o)}),Object.assign(c,{focus:q,blur:j}),function(){const S=i.getControl===void 0&&b.control===void 0?{...i.splitAttrs.attributes.value,"data-autofocus":M.autofocus===!0||void 0,...B.value}:B.value;return h.h(i.tag.value,{ref:i.rootRef,class:[d.value,m.class],style:m.style,...S},[b.before!==void 0?h.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Ot},b.before()):null,h.h("div",{class:"q-field__inner relative-position col self-stretch"},[h.h("div",{ref:i.controlRef,class:v.value,tabindex:-1,...i.controlEvents},A()),f.value===!0?_():null]),b.after!==void 0?h.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Ot},b.after()):null])}}const du=Ze({name:"QField",inheritAttrs:!1,props:{...ni,tag:{type:String,default:"label"}},emits:aa,setup(){return sa(oa({tagProp:!0}))}}),Yt=Ze({name:"QItem",props:{...Tt,...Zn,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(i,{slots:M,emit:t}){const{proxy:{$q:b}}=h.getCurrentInstance(),m=Bt(i,b),{hasLink:c,linkAttrs:a,linkClass:o,linkTag:n,navigateOnClick:e}=Hi(),r=h.ref(null),u=h.ref(null),s=h.computed(()=>i.clickable===!0||c.value===!0||i.tag==="label"),l=h.computed(()=>i.disable!==!0&&s.value===!0),f=h.computed(()=>"q-item q-item-type row no-wrap"+(i.dense===!0?" q-item--dense":"")+(m.value===!0?" q-item--dark":"")+(c.value===!0&&i.active===null?o.value:i.active===!0?` q-item--active${i.activeClass!==void 0?` ${i.activeClass}`:""}`:"")+(i.disable===!0?" disabled":"")+(l.value===!0?" q-item--clickable q-link cursor-pointer "+(i.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(i.focused===!0?" q-manual-focusable--focused":""):"")),p=h.computed(()=>i.insetLevel===void 0?null:{["padding"+(b.lang.rtl===!0?"Right":"Left")]:16+i.insetLevel*56+"px"});function d(k){l.value===!0&&(u.value!==null&&k.qAvoidFocus!==!0&&(k.qKeyEvent!==!0&&document.activeElement===r.value?u.value.focus():document.activeElement===u.value&&r.value.focus()),e(k))}function v(k){if(l.value===!0&&cr(k,[13,32])===!0){xt(k),k.qKeyEvent=!0;const C=new MouseEvent("click",k);C.qKeyEvent=!0,r.value.dispatchEvent(C)}t("keyup",k)}function g(){const k=Ui(M.default,[]);return l.value===!0&&k.unshift(h.h("div",{class:"q-focus-helper",tabindex:-1,ref:u})),k}return()=>{const k={ref:r,class:f.value,style:p.value,role:"listitem",onClick:d,onKeyup:v};return l.value===!0?(k.tabindex=i.tabindex||"0",Object.assign(k,a.value)):s.value===!0&&(k["aria-disabled"]="true"),h.h(n.value,k,g())}}}),Ft=Ze({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(i,{slots:M}){const t=h.computed(()=>`q-item__section column q-item__section--${i.avatar===!0||i.side===!0||i.thumbnail===!0?"side":"main"}`+(i.top===!0?" q-item__section--top justify-start":" justify-center")+(i.avatar===!0?" q-item__section--avatar":"")+(i.thumbnail===!0?" q-item__section--thumbnail":"")+(i.noWrap===!0?" q-item__section--nowrap":""));return()=>h.h("div",{class:t.value},dt(M.default))}}),nn=Ze({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(i,{slots:M}){const t=h.computed(()=>parseInt(i.lines,10)),b=h.computed(()=>"q-item__label"+(i.overline===!0?" q-item__label--overline text-overline":"")+(i.caption===!0?" q-item__label--caption text-caption":"")+(i.header===!0?" q-item__label--header":"")+(t.value===1?" ellipsis":"")),m=h.computed(()=>i.lines!==void 0&&t.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t.value}:null);return()=>h.h("div",{style:m.value,class:b.value},dt(M.default))}});function es(i,M,t){function b(){}return h.onBeforeUnmount(()=>{i.value===!0&&void 0}),{removeFromHistory:b,addToHistory(){}}}let Kr=0,vi,bi,Jr,yi=!1,Qa,Ka,Xa,mr=null;function fu(i){hu(i)&&xt(i)}function hu(i){if(i.target===document.body||i.target.classList.contains("q-layout__backdrop"))return!0;const M=ul(i),t=i.shiftKey&&!i.deltaX,b=!t&&Math.abs(i.deltaX)<=Math.abs(i.deltaY),m=t||b?i.deltaY:i.deltaX;for(let c=0;c<M.length;c++){const a=M[c];if(Pl(a,b))return b?m<0&&a.scrollTop===0?!0:m>0&&a.scrollTop+a.clientHeight===a.scrollHeight:m<0&&a.scrollLeft===0?!0:m>0&&a.scrollLeft+a.clientWidth===a.scrollWidth}return!0}function Ga(i){i.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function _n(i){yi!==!0&&(yi=!0,requestAnimationFrame(()=>{yi=!1;const{height:M}=i.target,{clientHeight:t,scrollTop:b}=document.scrollingElement;(Jr===void 0||M!==window.innerHeight)&&(Jr=t-M,document.scrollingElement.scrollTop=b),b>Jr&&(document.scrollingElement.scrollTop-=Math.ceil((b-Jr)/8))}))}function Ja(i){const M=document.body,t=window.visualViewport!==void 0;if(i==="add"){const{overflowY:b,overflowX:m}=window.getComputedStyle(M);vi=ea(window),bi=$i(window),Qa=M.style.left,Ka=M.style.top,Xa=window.location.href,M.style.left=`-${vi}px`,M.style.top=`-${bi}px`,m!=="hidden"&&(m==="scroll"||M.scrollWidth>window.innerWidth)&&M.classList.add("q-body--force-scrollbar-x"),b!=="hidden"&&(b==="scroll"||M.scrollHeight>window.innerHeight)&&M.classList.add("q-body--force-scrollbar-y"),M.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Mt.is.ios===!0&&(t===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",_n,_t.passiveCapture),window.visualViewport.addEventListener("scroll",_n,_t.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Ga,_t.passiveCapture))}Mt.is.desktop===!0&&Mt.is.mac===!0&&window[`${i}EventListener`]("wheel",fu,_t.notPassive),i==="remove"&&(Mt.is.ios===!0&&(t===!0?(window.visualViewport.removeEventListener("resize",_n,_t.passiveCapture),window.visualViewport.removeEventListener("scroll",_n,_t.passiveCapture)):window.removeEventListener("scroll",Ga,_t.passiveCapture)),M.classList.remove("q-body--prevent-scroll"),M.classList.remove("q-body--force-scrollbar-x"),M.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,M.style.left=Qa,M.style.top=Ka,window.location.href===Xa&&window.scrollTo(vi,bi),Jr=void 0)}function pu(i){let M="add";if(i===!0){if(Kr++,mr!==null){clearTimeout(mr),mr=null;return}if(Kr>1)return}else{if(Kr===0||(Kr--,Kr>0))return;if(M="remove",Mt.is.ios===!0&&Mt.is.nativeMobile===!0){mr!==null&&clearTimeout(mr),mr=setTimeout(()=>{Ja(M),mr=null},100);return}}Ja(M)}function ts(){let i;return{preventBodyScroll(M){M!==i&&(i!==void 0||M===!0)&&(i=M,pu(M))}}}let Cn=0;const mu={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},Za={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},fn=Ze({name:"QDialog",inheritAttrs:!1,props:{...on,...en,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:i=>["standard","top","bottom","left","right"].includes(i)}},emits:[...sn,"shake","click","escapeKey"],setup(i,{slots:M,emit:t,attrs:b}){const m=h.getCurrentInstance(),c=h.ref(null),a=h.ref(!1),o=h.ref(!1);let n=null,e=null,r,u;const s=h.computed(()=>i.persistent!==!0&&i.noRouteDismiss!==!0&&i.seamless!==!0),{preventBodyScroll:l}=ts(),{registerTimeout:f}=ei(),{registerTick:p,removeTick:d}=Zi(),{transitionProps:v,transitionStyle:g}=Ji(i,()=>Za[i.position][0],()=>Za[i.position][1]),k=h.computed(()=>g.value+(i.backdropFilter!==void 0?`;backdrop-filter:${i.backdropFilter};-webkit-backdrop-filter:${i.backdropFilter}`:"")),{showPortal:C,hidePortal:B,portalIsAccessible:N,renderPortal:q}=Gi(m,c,W,"dialog"),{hide:j}=ln({showing:a,hideOnRouteChange:s,handleShow:A,handleHide:T,processOnMount:!0});es(a);const P=h.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${i.maximized===!0?"maximized":"minimized"} q-dialog__inner--${i.position} ${mu[i.position]}`+(o.value===!0?" q-dialog__inner--animating":"")+(i.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(i.fullHeight===!0?" q-dialog__inner--fullheight":"")+(i.square===!0?" q-dialog__inner--square":"")),V=h.computed(()=>a.value===!0&&i.seamless!==!0),z=h.computed(()=>i.autoClose===!0?{onClick:E}:{}),L=h.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${V.value===!0?"modal":"seamless"}`,b.class]);h.watch(()=>i.maximized,H=>{a.value===!0&&S(H)}),h.watch(V,H=>{l(H),H===!0?(Go(O),Ko(w)):(ji(O),zn(w))});function A(H){e=i.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,S(i.maximized),C(),o.value=!0,i.noFocus!==!0?(document.activeElement?.blur(),p(_)):d(),f(()=>{if(m.proxy.$q.platform.is.ios===!0){if(i.seamless!==!0&&document.activeElement){const{top:K,bottom:D}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,F=window.visualViewport!==void 0?window.visualViewport.height:Y;K>0&&D>F/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-F,D>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+D-F/2))),document.activeElement.scrollIntoView()}u=!0,c.value.click(),u=!1}C(!0),o.value=!1,t("show",H)},i.transitionDuration)}function T(H){d(),x(!0),o.value=!0,B(),e!==null&&(((H?.type.indexOf("key")===0?e.closest('[tabindex]:not([tabindex^="-"])'):void 0)||e).focus(),e=null),f(()=>{B(!0),o.value=!1,t("hide",H)},i.transitionDuration)}function _(H){un(()=>{let K=c.value;if(K!==null){if(H!==void 0){const D=K.querySelector(H);if(D!==null){D.focus({preventScroll:!0});return}}K.contains(document.activeElement)!==!0&&(K=K.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||K.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||K.querySelector("[autofocus], [data-autofocus]")||K,K.focus({preventScroll:!0}))}})}function y(H){H&&typeof H.focus=="function"?H.focus({preventScroll:!0}):_(),t("shake");const K=c.value;K!==null&&(K.classList.remove("q-animate--scale"),K.classList.add("q-animate--scale"),n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,c.value!==null&&(K.classList.remove("q-animate--scale"),_())},170))}function w(){i.seamless!==!0&&(i.persistent===!0||i.noEscDismiss===!0?i.maximized!==!0&&i.noShake!==!0&&y():(t("escapeKey"),j()))}function x(H){n!==null&&(clearTimeout(n),n=null),(H===!0||a.value===!0)&&(S(!1),i.seamless!==!0&&(l(!1),ji(O),zn(w))),H!==!0&&(e=null)}function S(H){H===!0?r!==!0&&(Cn<1&&document.body.classList.add("q-body--dialog"),Cn++,r=!0):r===!0&&(Cn<2&&document.body.classList.remove("q-body--dialog"),Cn--,r=!1)}function E(H){u!==!0&&(j(H),t("click",H))}function I(H){i.persistent!==!0&&i.noBackdropDismiss!==!0?j(H):i.noShake!==!0&&y()}function O(H){i.allowFocusOutside!==!0&&N.value===!0&&Mo(c.value,H.target)!==!0&&_('[tabindex]:not([tabindex="-1"])')}Object.assign(m.proxy,{focus:_,shake:y,__updateRefocusTarget(H){e=H||null}}),h.onBeforeUnmount(x);function W(){return h.h("div",{role:"dialog","aria-modal":V.value===!0?"true":"false",...b,class:L.value},[h.h(h.Transition,{name:"q-transition--fade",appear:!0},()=>V.value===!0?h.h("div",{class:"q-dialog__backdrop fixed-full",style:k.value,"aria-hidden":"true",tabindex:-1,onClick:I}):null),h.h(h.Transition,v.value,()=>a.value===!0?h.h("div",{ref:c,class:P.value,style:g.value,tabindex:-1,...z.value},dt(M.default)):null)])}return q}});let Wn=!1;{const i=document.createElement("div");i.setAttribute("dir","rtl"),Object.assign(i.style,{width:"1px",height:"1px",overflow:"auto"});const M=document.createElement("div");Object.assign(M.style,{width:"1000px",height:"1px"}),document.body.appendChild(i),i.appendChild(M),i.scrollLeft=-1e3,Wn=i.scrollLeft>=0,i.remove()}const Ht=1e3,gu=["start","center","end","start-force","center-force","end-force"],rs=Array.prototype.filter,vu=window.getComputedStyle(document.body).overflowAnchor===void 0?$n:function(i,M){i!==null&&(i._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(i._qOverflowAnimationFrame),i._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(i===null)return;i._qOverflowAnimationFrame=void 0;const t=i.children||[];rs.call(t,m=>m.dataset&&m.dataset.qVsAnchor!==void 0).forEach(m=>{delete m.dataset.qVsAnchor});const b=t[M];b?.dataset&&(b.dataset.qVsAnchor="")}))};function jr(i,M){return i+M}function wi(i,M,t,b,m,c,a,o){const n=i===window?document.scrollingElement||document.documentElement:i,e=m===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-a-o,scrollMaxSize:0,offsetStart:-a,offsetEnd:-o};if(m===!0?(i===window?(r.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,r.scrollViewSize+=document.documentElement.clientWidth):(r.scrollStart=n.scrollLeft,r.scrollViewSize+=n.clientWidth),r.scrollMaxSize=n.scrollWidth,c===!0&&(r.scrollStart=(Wn===!0?r.scrollMaxSize-r.scrollViewSize:0)-r.scrollStart)):(i===window?(r.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,r.scrollViewSize+=document.documentElement.clientHeight):(r.scrollStart=n.scrollTop,r.scrollViewSize+=n.clientHeight),r.scrollMaxSize=n.scrollHeight),t!==null)for(let u=t.previousElementSibling;u!==null;u=u.previousElementSibling)u.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetStart+=u[e]);if(b!==null)for(let u=b.nextElementSibling;u!==null;u=u.nextElementSibling)u.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetEnd+=u[e]);if(M!==i){const u=n.getBoundingClientRect(),s=M.getBoundingClientRect();m===!0?(r.offsetStart+=s.left-u.left,r.offsetEnd-=s.width):(r.offsetStart+=s.top-u.top,r.offsetEnd-=s.height),i!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function $a(i,M,t,b){M==="end"&&(M=(i===window?document.body:i)[t===!0?"scrollWidth":"scrollHeight"]),i===window?t===!0?(b===!0&&(M=(Wn===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-M),window.scrollTo(M,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,M):t===!0?(b===!0&&(M=(Wn===!0?i.scrollWidth-i.offsetWidth:0)-M),i.scrollLeft=M):i.scrollTop=M}function Xr(i,M,t,b){if(t>=b)return 0;const m=M.length,c=Math.floor(t/Ht),a=Math.floor((b-1)/Ht)+1;let o=i.slice(c,a).reduce(jr,0);return t%Ht!==0&&(o-=M.slice(c*Ht,t).reduce(jr,0)),b%Ht!==0&&b!==m&&(o-=M.slice(b,a*Ht).reduce(jr,0)),o}const ns={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},is=Object.keys(ns),Ni={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...ns};function as({virtualScrollLength:i,getVirtualScrollTarget:M,getVirtualScrollEl:t,virtualScrollItemSizeComputed:b}){const m=h.getCurrentInstance(),{props:c,emit:a,proxy:o}=m,{$q:n}=o;let e,r,u,s=[],l;const f=h.ref(0),p=h.ref(0),d=h.ref({}),v=h.ref(null),g=h.ref(null),k=h.ref(null),C=h.ref({from:0,to:0}),B=h.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);b===void 0&&(b=h.computed(()=>c.virtualScrollItemSize));const N=h.computed(()=>b.value+";"+c.virtualScrollHorizontal),q=h.computed(()=>N.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);h.watch(q,()=>{y()}),h.watch(N,j);function j(){_(r,!0)}function P(I){_(I===void 0?r:I)}function V(I,O){const W=M();if(W==null||W.nodeType===8)return;const H=wi(W,t(),v.value,g.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);u!==H.scrollViewSize&&y(H.scrollViewSize),L(W,H,Math.min(i.value-1,Math.max(0,parseInt(I,10)||0)),0,gu.indexOf(O)!==-1?O:r!==-1&&I>r?"end":"start")}function z(){const I=M();if(I==null||I.nodeType===8)return;const O=wi(I,t(),v.value,g.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),W=i.value-1,H=O.scrollMaxSize-O.offsetStart-O.offsetEnd-p.value;if(e===O.scrollStart)return;if(O.scrollMaxSize<=0){L(I,O,0,0);return}u!==O.scrollViewSize&&y(O.scrollViewSize),A(C.value.from);const K=Math.floor(O.scrollMaxSize-Math.max(O.scrollViewSize,O.offsetEnd)-Math.min(l[W],O.scrollViewSize/2));if(K>0&&Math.ceil(O.scrollStart)>=K){L(I,O,W,O.scrollMaxSize-O.offsetEnd-s.reduce(jr,0));return}let D=0,Y=O.scrollStart-O.offsetStart,F=Y;if(Y<=H&&Y+O.scrollViewSize>=f.value)Y-=f.value,D=C.value.from,F=Y;else for(let R=0;Y>=s[R]&&D<W;R++)Y-=s[R],D+=Ht;for(;Y>0&&D<W;)Y-=l[D],Y>-O.scrollViewSize?(D++,F=Y):F=l[D]+Y;L(I,O,D,F)}function L(I,O,W,H,K){const D=typeof K=="string"&&K.indexOf("-force")!==-1,Y=D===!0?K.replace("-force",""):K,F=Y!==void 0?Y:"start";let R=Math.max(0,W-d.value[F]),U=R+d.value.total;U>i.value&&(U=i.value,R=Math.max(0,U-d.value.total)),e=O.scrollStart;const Q=R!==C.value.from||U!==C.value.to;if(Q===!1&&Y===void 0){x(W);return}const{activeElement:$}=document,J=k.value;Q===!0&&J!==null&&J!==$&&J.contains($)===!0&&(J.addEventListener("focusout",T),setTimeout(()=>{J?.removeEventListener("focusout",T)})),vu(J,W-R);const te=Y!==void 0?l.slice(R,W).reduce(jr,0):0;if(Q===!0){const ce=U>=C.value.from&&R<=C.value.to?C.value.to:U;C.value={from:R,to:ce},f.value=Xr(s,l,0,R),p.value=Xr(s,l,U,i.value),requestAnimationFrame(()=>{C.value.to!==U&&e===O.scrollStart&&(C.value={from:C.value.from,to:U},p.value=Xr(s,l,U,i.value))})}requestAnimationFrame(()=>{if(e!==O.scrollStart)return;Q===!0&&A(R);const ce=l.slice(R,W).reduce(jr,0),ue=ce+O.offsetStart+f.value,Z=ue+l[W];let oe=ue+H;if(Y!==void 0){const se=ce-te,he=O.scrollStart+se;oe=D!==!0&&he<ue&&Z<he+O.scrollViewSize?he:Y==="end"?Z-O.scrollViewSize:ue-(Y==="start"?0:Math.round((O.scrollViewSize-l[W])/2))}e=oe,$a(I,oe,c.virtualScrollHorizontal,n.lang.rtl),x(W)})}function A(I){const O=k.value;if(O){const W=rs.call(O.children,R=>R.classList&&R.classList.contains("q-virtual-scroll--skip")===!1),H=W.length,K=c.virtualScrollHorizontal===!0?R=>R.getBoundingClientRect().width:R=>R.offsetHeight;let D=I,Y,F;for(let R=0;R<H;){for(Y=K(W[R]),R++;R<H&&W[R].classList.contains("q-virtual-scroll--with-prev")===!0;)Y+=K(W[R]),R++;F=Y-l[D],F!==0&&(l[D]+=F,s[Math.floor(D/Ht)]+=F),D++}}}function T(){k.value?.focus()}function _(I,O){const W=1*b.value;(O===!0||Array.isArray(l)===!1)&&(l=[]);const H=l.length;l.length=i.value;for(let D=i.value-1;D>=H;D--)l[D]=W;const K=Math.floor((i.value-1)/Ht);s=[];for(let D=0;D<=K;D++){let Y=0;const F=Math.min((D+1)*Ht,i.value);for(let R=D*Ht;R<F;R++)Y+=l[R];s.push(Y)}r=-1,e=void 0,f.value=Xr(s,l,0,C.value.from),p.value=Xr(s,l,C.value.to,i.value),I>=0?(A(C.value.from),h.nextTick(()=>{V(I)})):S()}function y(I){if(I===void 0&&typeof window<"u"){const Y=M();Y!=null&&Y.nodeType!==8&&(I=wi(Y,t(),v.value,g.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}u=I;const O=parseFloat(c.virtualScrollSliceRatioBefore)||0,W=parseFloat(c.virtualScrollSliceRatioAfter)||0,H=1+O+W,K=I===void 0||I<=0?1:Math.ceil(I/b.value),D=Math.max(1,K,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/H));d.value={total:Math.ceil(D*H),start:Math.ceil(D*O),center:Math.ceil(D*(.5+O)),end:Math.ceil(D*(1+O)),view:K}}function w(I,O){const W=c.virtualScrollHorizontal===!0?"width":"height",H={["--q-virtual-scroll-item-"+W]:b.value+"px"};return[I==="tbody"?h.h(I,{class:"q-virtual-scroll__padding",key:"before",ref:v},[h.h("tr",[h.h("td",{style:{[W]:`${f.value}px`,...H},colspan:B.value})])]):h.h(I,{class:"q-virtual-scroll__padding",key:"before",ref:v,style:{[W]:`${f.value}px`,...H}}),h.h(I,{class:"q-virtual-scroll__content",key:"content",ref:k,tabindex:-1},O.flat()),I==="tbody"?h.h(I,{class:"q-virtual-scroll__padding",key:"after",ref:g},[h.h("tr",[h.h("td",{style:{[W]:`${p.value}px`,...H},colspan:B.value})])]):h.h(I,{class:"q-virtual-scroll__padding",key:"after",ref:g,style:{[W]:`${p.value}px`,...H}})]}function x(I){r!==I&&(c.onVirtualScroll!==void 0&&a("virtualScroll",{index:I,from:C.value.from,to:C.value.to-1,direction:I<r?"decrease":"increase",ref:o}),r=I)}y();const S=ia(z,n.platform.is.ios===!0?120:35);h.onBeforeMount(()=>{y()});let E=!1;return h.onDeactivated(()=>{E=!0}),h.onActivated(()=>{if(E!==!0)return;const I=M();e!==void 0&&I!==void 0&&I!==null&&I.nodeType!==8?$a(I,e,c.virtualScrollHorizontal,n.lang.rtl):V(r)}),h.onBeforeUnmount(()=>{S.cancel()}),Object.assign(o,{scrollTo:V,reset:j,refresh:P}),{virtualScrollSliceRange:C,virtualScrollSliceSizeComputed:d,setVirtualScrollSize:y,onVirtualScrollEvt:S,localResetVirtualScroll:_,padVirtualScroll:w,scrollTo:V,reset:j,refresh:P}}const bu=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,yu=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,wu=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,xu=/[a-z0-9_ -]$/i;function os(i){return function(t){if(t.type==="compositionend"||t.type==="change"){if(t.target.qComposing!==!0)return;t.target.qComposing=!1,i(t)}else t.type==="compositionupdate"&&t.target.qComposing!==!0&&typeof t.data=="string"&&(Mt.is.firefox===!0?xu.test(t.data)===!1:bu.test(t.data)===!0||yu.test(t.data)===!0||wu.test(t.data)===!0)===!0&&(t.target.qComposing=!0)}}function sr(i,M){if(i===M)return!0;if(i!==null&&M!==null&&typeof i=="object"&&typeof M=="object"){if(i.constructor!==M.constructor)return!1;let t,b;if(i.constructor===Array){if(t=i.length,t!==M.length)return!1;for(b=t;b--!==0;)if(sr(i[b],M[b])!==!0)return!1;return!0}if(i.constructor===Map){if(i.size!==M.size)return!1;let c=i.entries();for(b=c.next();b.done!==!0;){if(M.has(b.value[0])!==!0)return!1;b=c.next()}for(c=i.entries(),b=c.next();b.done!==!0;){if(sr(b.value[1],M.get(b.value[0]))!==!0)return!1;b=c.next()}return!0}if(i.constructor===Set){if(i.size!==M.size)return!1;const c=i.entries();for(b=c.next();b.done!==!0;){if(M.has(b.value[0])!==!0)return!1;b=c.next()}return!0}if(i.buffer!=null&&i.buffer.constructor===ArrayBuffer){if(t=i.length,t!==M.length)return!1;for(b=t;b--!==0;)if(i[b]!==M[b])return!1;return!0}if(i.constructor===RegExp)return i.source===M.source&&i.flags===M.flags;if(i.valueOf!==Object.prototype.valueOf)return i.valueOf()===M.valueOf();if(i.toString!==Object.prototype.toString)return i.toString()===M.toString();const m=Object.keys(i).filter(c=>i[c]!==void 0);if(t=m.length,t!==Object.keys(M).filter(c=>M[c]!==void 0).length)return!1;for(b=t;b--!==0;){const c=m[b];if(sr(i[c],M[c])!==!0)return!1}return!0}return i!==i&&M!==M}function ss(i){return i!==null&&typeof i=="object"&&Array.isArray(i)!==!0}function Hn(i){return Object.prototype.toString.call(i)==="[object Date]"}function Pi(i){return typeof i=="number"&&isFinite(i)}const eo=i=>["add","add-unique","toggle"].includes(i),Su=".*+?^${}()|[]\\",ku=Object.keys(ni);function xi(i,M){if(typeof i=="function")return i;const t=i!==void 0?i:M;return b=>b!==null&&typeof b=="object"&&t in b?b[t]:b}const ii=Ze({name:"QSelect",inheritAttrs:!1,props:{...Ni,...cn,...ni,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:eo},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:i=>["default","menu","dialog"].includes(i),default:"default"},virtualScrollItemSize:Ni.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...aa,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(i,{slots:M,emit:t}){const{proxy:b}=h.getCurrentInstance(),{$q:m}=b,c=h.ref(!1),a=h.ref(!1),o=h.ref(-1),n=h.ref(""),e=h.ref(!1),r=h.ref(!1);let u=null,s=null,l,f,p,d=null,v,g,k,C;const B=h.ref(null),N=h.ref(null),q=h.ref(null),j=h.ref(null),P=h.ref(null),V=qo(i),z=os(ge),L=h.computed(()=>Array.isArray(i.options)?i.options.length:0),A=h.computed(()=>i.virtualScrollItemSize===void 0?i.optionsDense===!0?24:48:i.virtualScrollItemSize),{virtualScrollSliceRange:T,virtualScrollSliceSizeComputed:_,localResetVirtualScroll:y,padVirtualScroll:w,onVirtualScrollEvt:x,scrollTo:S,setVirtualScrollSize:E}=as({virtualScrollLength:L,getVirtualScrollTarget:rt,getVirtualScrollEl:Ye,virtualScrollItemSizeComputed:A}),I=oa(),O=h.computed(()=>{const de=i.mapOptions===!0&&i.multiple!==!0,Le=i.modelValue!==void 0&&(i.modelValue!==null||de===!0)?i.multiple===!0&&Array.isArray(i.modelValue)?i.modelValue:[i.modelValue]:[];if(i.mapOptions===!0&&Array.isArray(i.options)===!0){const ee=i.mapOptions===!0&&l!==void 0?l:[],pe=Le.map(xe=>ke(xe,ee));return i.modelValue===null&&de===!0?pe.filter(xe=>xe!==null):pe}return Le}),W=h.computed(()=>{const de={};return ku.forEach(Le=>{const ee=i[Le];ee!==void 0&&(de[Le]=ee)}),de}),H=h.computed(()=>i.optionsDark===null?I.isDark.value:i.optionsDark),K=h.computed(()=>rn(O.value)),D=h.computed(()=>{let de="q-field__input q-placeholder col";return i.hideSelected===!0||O.value.length===0?[de,i.inputClass]:(de+=" q-field__input--padding",i.inputClass===void 0?de:[de,i.inputClass])}),Y=h.computed(()=>(i.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(i.popupContentClass?" "+i.popupContentClass:"")),F=h.computed(()=>L.value===0),R=h.computed(()=>O.value.map(de=>re.value(de)).join(", ")),U=h.computed(()=>i.displayValue!==void 0?i.displayValue:R.value),Q=h.computed(()=>i.optionsHtml===!0?()=>!0:de=>de?.html===!0),$=h.computed(()=>i.displayValueHtml===!0||i.displayValue===void 0&&(i.optionsHtml===!0||O.value.some(Q.value))),J=h.computed(()=>I.focused.value===!0?i.tabindex:-1),te=h.computed(()=>{const de={tabindex:i.tabindex,role:"combobox","aria-label":i.label,"aria-readonly":i.readonly===!0?"true":"false","aria-autocomplete":i.useInput===!0?"list":"none","aria-expanded":c.value===!0?"true":"false","aria-controls":`${I.targetUid.value}_lb`};return o.value>=0&&(de["aria-activedescendant"]=`${I.targetUid.value}_${o.value}`),de}),ce=h.computed(()=>({id:`${I.targetUid.value}_lb`,role:"listbox","aria-multiselectable":i.multiple===!0?"true":"false"})),ue=h.computed(()=>O.value.map((de,Le)=>({index:Le,opt:de,html:Q.value(de),selected:!0,removeAtIndex:Re,toggleOption:ze,tabindex:J.value}))),Z=h.computed(()=>{if(L.value===0)return[];const{from:de,to:Le}=T.value;return i.options.slice(de,Le).map((ee,pe)=>{const xe=ae.value(ee)===!0,_e=Se(ee)===!0,qe=de+pe,Ee={clickable:!0,active:_e,activeClass:he.value,manualFocus:!0,focused:!1,disable:xe,tabindex:-1,dense:i.optionsDense,dark:H.value,role:"option","aria-selected":_e===!0?"true":"false",id:`${I.targetUid.value}_${qe}`,onClick:()=>{ze(ee)}};return xe!==!0&&(o.value===qe&&(Ee.focused=!0),m.platform.is.desktop===!0&&(Ee.onMousemove=()=>{c.value===!0&&me(qe)})),{index:qe,opt:ee,html:Q.value(ee),label:re.value(ee),selected:Ee.active,focused:Ee.focused,toggleOption:ze,setOptionIndex:me,itemProps:Ee}})}),oe=h.computed(()=>i.dropdownIcon!==void 0?i.dropdownIcon:m.iconSet.arrow.dropdown),se=h.computed(()=>i.optionsCover===!1&&i.outlined!==!0&&i.standout!==!0&&i.borderless!==!0&&i.rounded!==!0),he=h.computed(()=>i.optionsSelectedClass!==void 0?i.optionsSelectedClass:i.color!==void 0?`text-${i.color}`:""),X=h.computed(()=>xi(i.optionValue,"value")),re=h.computed(()=>xi(i.optionLabel,"label")),ae=h.computed(()=>xi(i.optionDisable,"disable")),le=h.computed(()=>O.value.map(X.value)),ye=h.computed(()=>{const de={onInput:ge,onChange:z,onKeydown:Ge,onKeyup:Ae,onKeypress:He,onFocus:Me,onClick(Le){f===!0&&Pt(Le)}};return de.onCompositionstart=de.onCompositionupdate=de.onCompositionend=z,de});h.watch(O,de=>{l=de,i.useInput===!0&&i.fillInput===!0&&i.multiple!==!0&&I.innerLoading.value!==!0&&(a.value!==!0&&c.value!==!0||K.value!==!0)&&(p!==!0&&Ue(),(a.value===!0||c.value===!0)&&Pe(""))},{immediate:!0}),h.watch(()=>i.fillInput,Ue),h.watch(c,$e),h.watch(L,et);function Be(de){return i.emitValue===!0?X.value(de):de}function Te(de){if(de!==-1&&de<O.value.length)if(i.multiple===!0){const Le=i.modelValue.slice();t("remove",{index:de,value:Le.splice(de,1)[0]}),t("update:modelValue",Le)}else t("update:modelValue",null)}function Re(de){Te(de),I.focus()}function We(de,Le){const ee=Be(de);if(i.multiple!==!0){i.fillInput===!0&&De(re.value(de),!0,!0),t("update:modelValue",ee);return}if(O.value.length===0){t("add",{index:0,value:ee}),t("update:modelValue",i.multiple===!0?[ee]:ee);return}if(Le===!0&&Se(de)===!0||i.maxValues!==void 0&&i.modelValue.length>=i.maxValues)return;const pe=i.modelValue.slice();t("add",{index:pe.length,value:ee}),pe.push(ee),t("update:modelValue",pe)}function ze(de,Le){if(I.editable.value!==!0||de===void 0||ae.value(de)===!0)return;const ee=X.value(de);if(i.multiple!==!0){Le!==!0&&(De(i.fillInput===!0?re.value(de):"",!0,!0),je()),N.value?.focus(),(O.value.length===0||sr(X.value(O.value[0]),ee)!==!0)&&t("update:modelValue",i.emitValue===!0?ee:de);return}if((f!==!0||e.value===!0)&&I.focus(),Me(),O.value.length===0){const _e=i.emitValue===!0?ee:de;t("add",{index:0,value:_e}),t("update:modelValue",i.multiple===!0?[_e]:_e);return}const pe=i.modelValue.slice(),xe=le.value.findIndex(_e=>sr(_e,ee));if(xe!==-1)t("remove",{index:xe,value:pe.splice(xe,1)[0]});else{if(i.maxValues!==void 0&&pe.length>=i.maxValues)return;const _e=i.emitValue===!0?ee:de;t("add",{index:pe.length,value:_e}),pe.push(_e)}t("update:modelValue",pe)}function me(de){if(m.platform.is.desktop!==!0)return;const Le=de!==-1&&de<L.value?de:-1;o.value!==Le&&(o.value=Le)}function be(de=1,Le){if(c.value===!0){let ee=o.value;do ee=Na(ee+de,-1,L.value-1);while(ee!==-1&&ee!==o.value&&ae.value(i.options[ee])===!0);o.value!==ee&&(me(ee),S(ee),Le!==!0&&i.useInput===!0&&i.fillInput===!0&&Ce(ee>=0?re.value(i.options[ee]):v,!0))}}function ke(de,Le){const ee=pe=>sr(X.value(pe),de);return i.options.find(ee)||Le.find(ee)||de}function Se(de){const Le=X.value(de);return le.value.find(ee=>sr(ee,Le))!==void 0}function Me(de){i.useInput===!0&&N.value!==null&&(de===void 0||N.value===de.target&&de.target.value===R.value)&&N.value.select()}function Ve(de){cr(de,27)===!0&&c.value===!0&&(Pt(de),je(),Ue()),t("keyup",de)}function Ae(de){const{value:Le}=de.target;if(de.keyCode!==void 0){Ve(de);return}if(de.target.value="",u!==null&&(clearTimeout(u),u=null),s!==null&&(clearTimeout(s),s=null),Ue(),typeof Le=="string"&&Le.length!==0){const ee=Le.toLocaleLowerCase(),pe=_e=>{const qe=i.options.find(Ee=>String(_e.value(Ee)).toLocaleLowerCase()===ee);return qe===void 0?!1:(O.value.indexOf(qe)===-1?ze(qe):je(),!0)},xe=_e=>{pe(X)!==!0&&_e!==!0&&pe(re)!==!0&&Pe(Le,!0,()=>xe(!0))};xe()}else I.clearValue(de)}function He(de){t("keypress",de)}function Ge(de){if(t("keydown",de),Ki(de)===!0)return;const Le=n.value.length!==0&&(i.newValueMode!==void 0||i.onNewValue!==void 0),ee=de.shiftKey!==!0&&i.disableTabSelection!==!0&&i.multiple!==!0&&(o.value!==-1||Le===!0);if(de.keyCode===27){Ot(de);return}if(de.keyCode===9&&ee===!1){we();return}if(de.target===void 0||de.target.id!==I.targetUid.value||I.editable.value!==!0)return;if(de.keyCode===40&&I.innerLoading.value!==!0&&c.value===!1){xt(de),Ie();return}if(de.keyCode===8&&(i.useChips===!0||i.clearable===!0)&&i.hideSelected!==!0&&n.value.length===0){i.multiple===!0&&Array.isArray(i.modelValue)===!0?Te(i.modelValue.length-1):i.multiple!==!0&&i.modelValue!==null&&t("update:modelValue",null);return}(de.keyCode===35||de.keyCode===36)&&(typeof n.value!="string"||n.value.length===0)&&(xt(de),o.value=-1,be(de.keyCode===36?1:-1,i.multiple)),(de.keyCode===33||de.keyCode===34)&&_.value!==void 0&&(xt(de),o.value=Math.max(-1,Math.min(L.value,o.value+(de.keyCode===33?-1:1)*_.value.view)),be(de.keyCode===33?1:-1,i.multiple)),(de.keyCode===38||de.keyCode===40)&&(xt(de),be(de.keyCode===38?-1:1,i.multiple));const pe=L.value;if((k===void 0||C<Date.now())&&(k=""),pe>0&&i.useInput!==!0&&de.key!==void 0&&de.key.length===1&&de.altKey===!1&&de.ctrlKey===!1&&de.metaKey===!1&&(de.keyCode!==32||k.length!==0)){c.value!==!0&&Ie(de);const xe=de.key.toLocaleLowerCase(),_e=k.length===1&&k[0]===xe;C=Date.now()+1500,_e===!1&&(xt(de),k+=xe);const qe=new RegExp("^"+k.split("").map(Ne=>Su.indexOf(Ne)!==-1?"\\"+Ne:Ne).join(".*"),"i");let Ee=o.value;if(_e===!0||Ee<0||qe.test(re.value(i.options[Ee]))!==!0)do Ee=Na(Ee+1,-1,pe-1);while(Ee!==o.value&&(ae.value(i.options[Ee])===!0||qe.test(re.value(i.options[Ee]))!==!0));o.value!==Ee&&h.nextTick(()=>{me(Ee),S(Ee),Ee>=0&&i.useInput===!0&&i.fillInput===!0&&Ce(re.value(i.options[Ee]),!0)});return}if(!(de.keyCode!==13&&(de.keyCode!==32||i.useInput===!0||k!=="")&&(de.keyCode!==9||ee===!1))){if(de.keyCode!==9&&xt(de),o.value!==-1&&o.value<pe){ze(i.options[o.value]);return}if(Le===!0){const xe=(_e,qe)=>{if(qe){if(eo(qe)!==!0)return}else qe=i.newValueMode;if(De("",i.multiple!==!0,!0),_e==null)return;(qe==="toggle"?ze:We)(_e,qe==="add-unique"),i.multiple!==!0&&(N.value?.focus(),je())};if(i.onNewValue!==void 0?t("newValue",n.value,xe):xe(n.value),i.multiple!==!0)return}c.value===!0?we():I.innerLoading.value!==!0&&Ie()}}function Ye(){return f===!0?P.value:q.value!==null&&q.value.contentEl!==null?q.value.contentEl:void 0}function rt(){return Ye()}function tt(){return i.hideSelected===!0?[]:M["selected-item"]!==void 0?ue.value.map(de=>M["selected-item"](de)).slice():M.selected!==void 0?[].concat(M.selected()):i.useChips===!0?ue.value.map((de,Le)=>h.h(Dn,{key:"option-"+Le,removable:I.editable.value===!0&&ae.value(de.opt)!==!0,dense:!0,textColor:i.color,tabindex:J.value,onRemove(){de.removeAtIndex(Le)}},()=>h.h("span",{class:"ellipsis",[de.html===!0?"innerHTML":"textContent"]:re.value(de.opt)}))):[h.h("span",{class:"ellipsis",[$.value===!0?"innerHTML":"textContent"]:U.value})]}function Qe(){if(F.value===!0)return M["no-option"]!==void 0?M["no-option"]({inputValue:n.value}):void 0;const de=M.option!==void 0?M.option:ee=>h.h(Yt,{key:ee.index,...ee.itemProps},()=>h.h(Ft,()=>h.h(nn,()=>h.h("span",{[ee.html===!0?"innerHTML":"textContent"]:ee.label}))));let Le=w("div",Z.value.map(de));return M["before-options"]!==void 0&&(Le=M["before-options"]().concat(Le)),Dt(M["after-options"],Le)}function st(de,Le){const ee=Le===!0?{...te.value,...I.splitAttrs.attributes.value}:void 0,pe={ref:Le===!0?N:void 0,key:"i_t",class:D.value,style:i.inputStyle,value:n.value!==void 0?n.value:"",type:"search",...ee,id:Le===!0?I.targetUid.value:void 0,maxlength:i.maxlength,autocomplete:i.autocomplete,"data-autofocus":de===!0||i.autofocus===!0||void 0,disabled:i.disable===!0,readonly:i.readonly===!0,...ye.value};return de!==!0&&f===!0&&(Array.isArray(pe.class)===!0?pe.class=[...pe.class,"no-pointer-events"]:pe.class+=" no-pointer-events"),h.h("input",pe)}function ge(de){u!==null&&(clearTimeout(u),u=null),s!==null&&(clearTimeout(s),s=null),!(de&&de.target&&de.target.qComposing===!0)&&(Ce(de.target.value||""),p=!0,v=n.value,I.focused.value!==!0&&(f!==!0||e.value===!0)&&I.focus(),i.onFilter!==void 0&&(u=setTimeout(()=>{u=null,Pe(n.value)},i.inputDebounce)))}function Ce(de,Le){n.value!==de&&(n.value=de,Le===!0||i.inputDebounce===0||i.inputDebounce==="0"?t("inputValue",de):s=setTimeout(()=>{s=null,t("inputValue",de)},i.inputDebounce))}function De(de,Le,ee){p=ee!==!0,i.useInput===!0&&(Ce(de,!0),(Le===!0||ee!==!0)&&(v=de),Le!==!0&&Pe(de))}function Pe(de,Le,ee){if(i.onFilter===void 0||Le!==!0&&I.focused.value!==!0)return;I.innerLoading.value===!0?t("filterAbort"):(I.innerLoading.value=!0,r.value=!0),de!==""&&i.multiple!==!0&&O.value.length!==0&&p!==!0&&de===re.value(O.value[0])&&(de="");const pe=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);d!==null&&clearTimeout(d),d=pe,t("filter",de,(xe,_e)=>{(Le===!0||I.focused.value===!0)&&d===pe&&(clearTimeout(d),typeof xe=="function"&&xe(),r.value=!1,h.nextTick(()=>{I.innerLoading.value=!1,I.editable.value===!0&&(Le===!0?c.value===!0&&je():c.value===!0?$e(!0):c.value=!0),typeof _e=="function"&&h.nextTick(()=>{_e(b)}),typeof ee=="function"&&h.nextTick(()=>{ee(b)})}))},()=>{I.focused.value===!0&&d===pe&&(clearTimeout(d),I.innerLoading.value=!1,r.value=!1),c.value===!0&&(c.value=!1)})}function Oe(){return h.h(dn,{ref:q,class:Y.value,style:i.popupContentStyle,modelValue:c.value,fit:i.menuShrink!==!0,cover:i.optionsCover===!0&&F.value!==!0&&i.useInput!==!0,anchor:i.menuAnchor,self:i.menuSelf,offset:i.menuOffset,dark:H.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:i.popupNoRouteDismiss,square:se.value,transitionShow:i.transitionShow,transitionHide:i.transitionHide,transitionDuration:i.transitionDuration,separateClosePopup:!0,...ce.value,onScrollPassive:x,onBeforeShow:yt,onBeforeHide:Ke,onShow:Xe},Qe)}function Ke(de){pt(de),we()}function Xe(){E()}function ne(de){Pt(de),N.value?.focus(),e.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function G(de){Pt(de),h.nextTick(()=>{e.value=!1})}function ie(){const de=[h.h(du,{class:`col-auto ${I.fieldClass.value}`,...W.value,for:I.targetUid.value,dark:H.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:n.value.length!==0,...I.splitAttrs.listeners.value,onFocus:ne,onBlur:G},{...M,rawControl:()=>I.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&de.push(h.h("div",{ref:P,class:Y.value+" scroll",style:i.popupContentStyle,...ce.value,onClick:Ot,onScrollPassive:x},Qe())),h.h(fn,{ref:j,modelValue:a.value,position:i.useInput===!0?"top":void 0,transitionShow:g,transitionHide:i.transitionHide,transitionDuration:i.transitionDuration,noRouteDismiss:i.popupNoRouteDismiss,onBeforeShow:yt,onBeforeHide:fe,onHide:ve,onShow:Fe},()=>h.h("div",{class:"q-select__dialog"+(H.value===!0?" q-select__dialog--dark q-dark":"")+(e.value===!0?" q-select__dialog--focused":"")},de))}function fe(de){pt(de),j.value!==null&&j.value.__updateRefocusTarget(I.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),I.focused.value=!1}function ve(de){je(),I.focused.value===!1&&t("blur",de),Ue()}function Fe(){const de=document.activeElement;(de===null||de.id!==I.targetUid.value)&&N.value!==null&&N.value!==de&&N.value.focus(),E()}function we(){a.value!==!0&&(o.value=-1,c.value===!0&&(c.value=!1),I.focused.value===!1&&(d!==null&&(clearTimeout(d),d=null),I.innerLoading.value===!0&&(t("filterAbort"),I.innerLoading.value=!1,r.value=!1)))}function Ie(de){I.editable.value===!0&&(f===!0?(I.onControlFocusin(de),a.value=!0,h.nextTick(()=>{I.focus()})):I.focus(),i.onFilter!==void 0?Pe(n.value):(F.value!==!0||M["no-option"]!==void 0)&&(c.value=!0))}function je(){a.value=!1,we()}function Ue(){i.useInput===!0&&De(i.multiple!==!0&&i.fillInput===!0&&O.value.length!==0&&re.value(O.value[0])||"",!0,!0)}function $e(de){let Le=-1;if(de===!0){if(O.value.length!==0){const ee=X.value(O.value[0]);Le=i.options.findIndex(pe=>sr(X.value(pe),ee))}y(Le)}me(Le)}function et(de,Le){c.value===!0&&I.innerLoading.value===!1&&(y(-1,!0),h.nextTick(()=>{c.value===!0&&I.innerLoading.value===!1&&(de>Le?y():$e(!0))}))}function nt(){a.value===!1&&q.value!==null&&q.value.updatePosition()}function yt(de){de!==void 0&&Pt(de),t("popupShow",de),I.hasPopupOpen=!0,I.onControlFocusin(de)}function pt(de){de!==void 0&&Pt(de),t("popupHide",de),I.hasPopupOpen=!1,I.onControlFocusout(de)}function kt(){f=m.platform.is.mobile!==!0&&i.behavior!=="dialog"?!1:i.behavior!=="menu"&&(i.useInput===!0?M["no-option"]!==void 0||i.onFilter!==void 0||F.value===!1:!0),g=m.platform.is.ios===!0&&f===!0&&i.useInput===!0?"fade":i.transitionShow}return h.onBeforeUpdate(kt),h.onUpdated(nt),kt(),h.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),s!==null&&clearTimeout(s)}),Object.assign(b,{showPopup:Ie,hidePopup:je,removeAtIndex:Te,add:We,toggleOption:ze,getOptionIndex:()=>o.value,setOptionIndex:me,moveOptionSelection:be,filter:Pe,updateMenuPosition:nt,updateInputValue:De,isOptionSelected:Se,getEmittingOptionValue:Be,isOptionDisabled:(...de)=>ae.value.apply(null,de)===!0,getOptionValue:(...de)=>X.value.apply(null,de),getOptionLabel:(...de)=>re.value.apply(null,de)}),Object.assign(I,{innerValue:O,fieldClass:h.computed(()=>`q-select q-field--auto-height q-select--with${i.useInput!==!0?"out":""}-input q-select--with${i.useChips!==!0?"out":""}-chips q-select--${i.multiple===!0?"multiple":"single"}`),inputRef:B,targetRef:N,hasValue:K,showPopup:Ie,floatingLabel:h.computed(()=>i.hideSelected!==!0&&K.value===!0||typeof n.value=="number"||n.value.length!==0||rn(i.displayValue)),getControlChild:()=>{if(I.editable.value!==!1&&(a.value===!0||F.value!==!0||M["no-option"]!==void 0))return f===!0?ie():Oe();I.hasPopupOpen===!0&&(I.hasPopupOpen=!1)},controlEvents:{onFocusin(de){I.onControlFocusin(de)},onFocusout(de){I.onControlFocusout(de,()=>{Ue(),we()})},onClick(de){if(Ot(de),f!==!0&&c.value===!0){we(),N.value?.focus();return}Ie(de)}},getControl:de=>{const Le=tt(),ee=de===!0||a.value!==!0||f!==!0;if(i.useInput===!0)Le.push(st(de,ee));else if(I.editable.value===!0){const xe=ee===!0?te.value:void 0;Le.push(h.h("input",{ref:ee===!0?N:void 0,key:"d_t",class:"q-select__focus-target",id:ee===!0?I.targetUid.value:void 0,value:U.value,readonly:!0,"data-autofocus":de===!0||i.autofocus===!0||void 0,...xe,onKeydown:Ge,onKeyup:Ve,onKeypress:He})),ee===!0&&typeof i.autocomplete=="string"&&i.autocomplete.length!==0&&Le.push(h.h("input",{class:"q-select__autocomplete-input",autocomplete:i.autocomplete,tabindex:-1,onKeyup:Ae}))}if(V.value!==void 0&&i.disable!==!0&&le.value.length!==0){const xe=le.value.map(_e=>h.h("option",{value:_e,selected:!0}));Le.push(h.h("select",{class:"hidden",name:V.value,multiple:i.multiple},xe))}const pe=i.useInput===!0||ee!==!0?void 0:I.splitAttrs.attributes.value;return h.h("div",{class:"q-field__native row items-center",...pe,...I.splitAttrs.listeners.value},Le)},getInnerAppend:()=>i.loading!==!0&&r.value!==!0&&i.hideDropdownIcon!==!0?[h.h(ct,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:oe.value})]:null}),sa(I)}}),_u={class:"q-pa-none"},Cu={key:0,class:"row q-gutter-xs q-mb-xs"},Au=h.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"},useInput:{type:Boolean,default:!1},serverSideFilter:{type:Boolean,default:!1},debounceMs:{default:0},maxChips:{},dataCy:{default:"checkbox-filter"}},emits:["update:modelValue","search"],setup(i,{emit:M}){const t=[],b=i,m=M,c=h.ref(!1),a=h.ref(b.modelValue||[]),o=h.ref(b.options);h.watch(()=>b.options,f=>{o.value=f},{immediate:!0});const n=(f,p)=>{m("search",f),p(()=>{if(b.serverSideFilter)return;const d=f.toLowerCase();o.value=b.options.filter(v=>v.label.toLowerCase().includes(d))})},e=h.computed(()=>a.value.slice(0,b.maxChips)),r=h.computed(()=>b.maxChips===void 0?[]:a.value.slice(b.maxChips)),u=h.computed(()=>({height:b.scrollAreaHeight,width:b.scrollAreaWidth})),s=h.computed(()=>b.dataCy||"checkbox-filter");h.watch(a,f=>{m("update:modelValue",f)});const l=f=>{a.value=a.value.filter(p=>p.value!==f.value)};return h.watch(()=>b.modelValue,f=>{f&&(a.value=f)},{immediate:!0}),(f,p)=>(h.openBlock(),h.createElementBlock("div",_u,[a.value.length?(h.openBlock(),h.createElementBlock("div",Cu,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.value,d=>(h.openBlock(),h.createBlock(Dn,{key:d.value,removable:"",dense:"",color:"primary","text-color":"white","data-cy":`${s.value}-selected-${d.label}`,onRemove:v=>l(d)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(d.label),1)]),_:2},1032,["data-cy","onRemove"]))),128)),r.value.length?(h.openBlock(),h.createBlock(Dn,{key:0,dense:"",clickable:"",color:"primary","text-color":"white","data-cy":`${s.value}-selected-more`,onClick:p[0]||(p[0]=d=>c.value=!0)},{default:h.withCtx(()=>[p[5]||(p[5]=h.createTextVNode(" … ")),h.createVNode(tr,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(r.value.map(d=>d.label).join(", ")),1)]),_:1})]),_:1,__:[5]},8,["data-cy"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0),h.createVNode(ii,h.mergeProps({outlined:"",dense:"",label:b.label,class:["full-width","cursor-pointer"],"data-cy":s.value,"model-value":null,options:t,"use-input":b.useInput,"input-debounce":b.debounceMs,"hide-dropdown-icon":""},f.$attrs,{onFilter:n,onClick:p[4]||(p[4]=d=>c.value=!0)}),{append:h.withCtx(()=>[h.createVNode(ct,{name:"arrow_drop_down",class:h.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":c.value}]),onClick:p[1]||(p[1]=h.withModifiers(d=>c.value=!c.value,["stop"]))},null,8,["class"])]),default:h.withCtx(()=>[h.createVNode(dn,{modelValue:c.value,"onUpdate:modelValue":p[3]||(p[3]=d=>c.value=d),"no-parent-event":"","no-focus":b.useInput,anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:h.withCtx(()=>[h.createVNode(Hr,{class:"q-pa-sm"},{default:h.withCtx(()=>[h.createVNode(Zl,{style:h.normalizeStyle(u.value)},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(o.value,d=>(h.openBlock(),h.createBlock(Fr,{key:d.value,modelValue:a.value,"onUpdate:modelValue":p[2]||(p[2]=v=>a.value=v),val:d,disable:d.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`${s.value}-option-${d.label}`},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass({"text-italic":d.italic})},h.toDisplayString(d.label),3)]),_:2},1032,["modelValue","val","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue","no-focus"])]),_:1},16,["label","data-cy","use-input","input-debounce"])]))}}),Eu=jt(Au,[["__scopeId","data-v-6ab1c851"]]),Mu=h.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null},rules:{},updateInputOnModelChange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(i,{emit:M}){const t=i,b=M,m=h.ref(),c=h.ref(t.modelValue??null),a=h.ref(""),o=h.ref(t.options??[]),n=h.ref(!1),e=h.ref(!0),r=h.ref(!1);h.watch(()=>t.options,v=>{o.value=v??[],u()},{immediate:!0}),h.watch(()=>t.modelValue,async v=>{if(t.updateInputOnModelChange){if(r.value=!0,t.fetchOptions&&v){const g=await t.fetchOptions("");o.value=g}c.value=v,u(),n.value=!1,await h.nextTick(),m.value?.updateInputValue(a.value,!0),setTimeout(()=>{r.value=!1},100)}else c.value=v});function u(){const v=o.value.find(g=>g.value===c.value);a.value=v?.label??""}function s(v){r.value||(c.value=v,b("update:modelValue",v),u(),n.value=!1)}function l(v){a.value=v,v===""&&(n.value=!0)}function f(){if(e.value){e.value=!1;return}c.value!==null&&!n.value?(a.value="",n.value=!0,m.value?.showPopup()):n.value&&(a.value="")}function p(){e.value=!0;const v=a.value.trim();if(v==="")n.value&&(c.value=null,b("update:modelValue",null));else{const g=o.value.find(k=>k.label.toLowerCase()===v.toLowerCase());g?(c.value=g.value,b("update:modelValue",g.value),a.value=g.label):u()}n.value=!1}function d(v,g,k){if(t.fetchOptions)t.fetchOptions(v).then(C=>{o.value=C,g(()=>{})}).catch(k).finally(()=>{});else{const C=t.options??[];o.value=C.filter(B=>B.label.toLowerCase().includes(v.toLowerCase())),g(()=>{})}}return h.onMounted(async()=>{if(t.fetchOptions&&t.modelValue){const v=await t.fetchOptions("");o.value=v,u()}}),(v,g)=>(h.openBlock(),h.createBlock(ii,h.mergeProps({ref_key:"selectRef",ref:m,"model-value":c.value,"input-value":a.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:v.label,options:o.value,"map-options":"",dense:"",outlined:"",class:"full-width cursor-pointer"},v.$attrs,{"onUpdate:modelValue":s,"onUpdate:inputValue":l,onFocus:f,onBlur:p,onFilter:d}),null,16,["model-value","input-value","label","options"]))}}),Tu=h.defineComponent({__name:"SelectYear",props:{modelValue:{},label:{default:"Sélectionner une année"},startYear:{default:2015},endYear:{default:void 0}},emits:["update:modelValue"],setup(i,{emit:M}){const t=i,b=M,m=h.computed(()=>{const o=t.startYear??new Date().getFullYear()-5,n=t.endYear??new Date().getFullYear(),e=[];for(let r=n;r>=o;r--)e.push({label:String(r),value:r});return e});function c(o){b("update:modelValue",o)}function a(){t.modelValue!==null&&b("update:modelValue",null)}return(o,n)=>(h.openBlock(),h.createBlock(ii,h.mergeProps({"model-value":o.modelValue,options:m.value,"option-value":"value","option-label":"label",label:o.label,dense:"","emit-value":"",outlined:"",class:"full-width cursor-pointer"},o.$attrs,{"onUpdate:modelValue":c,onFocus:a}),null,16,["model-value","options","label"]))}}),ls=Ze({name:"QAvatar",props:{...Ur,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(i,{slots:M}){const t=Wr(i),b=h.computed(()=>"q-avatar"+(i.color?` bg-${i.color}`:"")+(i.textColor?` text-${i.textColor} q-chip--colored`:"")+(i.square===!0?" q-avatar--square":i.rounded===!0?" rounded-borders":"")),m=h.computed(()=>i.fontSize?{fontSize:i.fontSize}:null);return()=>{const c=i.icon!==void 0?[h.h(ct,{name:i.icon})]:void 0;return h.h("div",{class:b.value,style:t.value},[h.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:m.value},wo(M.default,c))])}}}),Bu=Ze({name:"QSpace",setup(){const i=h.h("div",{class:"q-space"});return()=>i}}),Ru=["ul","ol"],qr=Ze({name:"QList",props:{...Tt,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(i,{slots:M}){const t=h.getCurrentInstance(),b=Bt(i,t.proxy.$q),m=h.computed(()=>Ru.includes(i.tag)?null:"list"),c=h.computed(()=>"q-list"+(i.bordered===!0?" q-list--bordered":"")+(i.dense===!0?" q-list--dense":"")+(i.separator===!0?" q-list--separator":"")+(b.value===!0?" q-list--dark":"")+(i.padding===!0?" q-list--padding":""));return()=>h.h(i.tag,{class:c.value,role:m.value},dt(M.default))}}),us=Ze({name:"QToolbar",props:{inset:Boolean},setup(i,{slots:M}){const t=h.computed(()=>"q-toolbar row no-wrap items-center"+(i.inset===!0?" q-toolbar--inset":""));return()=>h.h("div",{class:t.value,role:"toolbar"},dt(M.default))}}),Iu=Ze({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(i,{slots:M,emit:t}){const{proxy:{$q:b}}=h.getCurrentInstance(),m=h.inject(Yr,Et);if(m===Et)return console.error("QHeader needs to be child of QLayout"),Et;const c=h.ref(parseInt(i.heightHint,10)),a=h.ref(!0),o=h.computed(()=>i.reveal===!0||m.view.value.indexOf("H")!==-1||b.platform.is.ios&&m.isContainer.value===!0),n=h.computed(()=>{if(i.modelValue!==!0)return 0;if(o.value===!0)return a.value===!0?c.value:0;const g=c.value-m.scroll.value.position;return g>0?g:0}),e=h.computed(()=>i.modelValue!==!0||o.value===!0&&a.value!==!0),r=h.computed(()=>i.modelValue===!0&&e.value===!0&&i.reveal===!0),u=h.computed(()=>"q-header q-layout__section--marginal "+(o.value===!0?"fixed":"absolute")+"-top"+(i.bordered===!0?" q-header--bordered":"")+(e.value===!0?" q-header--hidden":"")+(i.modelValue!==!0?" q-layout--prevent-focus":"")),s=h.computed(()=>{const g=m.rows.value.top,k={};return g[0]==="l"&&m.left.space===!0&&(k[b.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),g[2]==="r"&&m.right.space===!0&&(k[b.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),k});function l(g,k){m.update("header",g,k)}function f(g,k){g.value!==k&&(g.value=k)}function p({height:g}){f(c,g),l("size",g)}function d(g){r.value===!0&&f(a,!0),t("focusin",g)}h.watch(()=>i.modelValue,g=>{l("space",g),f(a,!0),m.animate()}),h.watch(n,g=>{l("offset",g)}),h.watch(()=>i.reveal,g=>{g===!1&&f(a,i.modelValue)}),h.watch(a,g=>{m.animate(),t("reveal",g)}),h.watch(m.scroll,g=>{i.reveal===!0&&f(a,g.direction==="up"||g.position<=i.revealOffset||g.position-g.inflectionPoint<100)});const v={};return m.instances.header=v,i.modelValue===!0&&l("size",c.value),l("space",i.modelValue),l("offset",n.value),h.onBeforeUnmount(()=>{m.instances.header===v&&(m.instances.header=void 0,l("size",0),l("offset",0),l("space",!1))}),()=>{const g=Ui(M.default,[]);return i.elevated===!0&&g.push(h.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),g.push(h.h(Lr,{debounce:0,onResize:p})),h.h("header",{class:u.value,style:s.value,onFocusin:d},g)}}});function to(i){if(i===!1)return 0;if(i===!0||i===void 0)return 1;const M=parseInt(i,10);return isNaN(M)?0:M}const ai=zi({name:"close-popup",beforeMount(i,{value:M}){const t={depth:to(M),handler(b){t.depth!==0&&setTimeout(()=>{const m=Ol(i);m!==void 0&&Fl(m,b,t.depth)})},handlerKey(b){cr(b,13)===!0&&t.handler(b)}};i.__qclosepopup=t,i.addEventListener("click",t.handler),i.addEventListener("keyup",t.handlerKey)},updated(i,{value:M,oldValue:t}){M!==t&&(i.__qclosepopup.depth=to(M))},beforeUnmount(i){const M=i.__qclosepopup;i.removeEventListener("click",M.handler),i.removeEventListener("keyup",M.handlerKey),delete i.__qclosepopup}}),Ou=["src","alt"],Fu={key:1,class:"project-environment-container row items-center q-mr-md"},Du=h.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{},showProjectSwitch:{type:Boolean},currentProjectLabel:{},availableProjects:{},currentPath:{},environment:{},showMenuToggle:{type:Boolean}},emits:["project-change","menu-toggle"],setup(i,{emit:M}){const t=i,b=t.logoAlt??"Logo",m=t.logoTo??"/",c=h.computed(()=>({width:"170px",height:"auto",borderRadius:"0"})),a=h.computed(()=>t.environment?t.environment.toUpperCase()!=="PROD":!1),o=h.computed(()=>`environment-badge--${t.environment?.toUpperCase()?.toLowerCase()}`),n=e=>t.currentPath?.startsWith(e);return(e,r)=>{const u=h.resolveComponent("router-link");return h.openBlock(),h.createBlock(Iu,h.mergeProps({elevated:""},e.$attrs),{default:h.withCtx(()=>[h.createVNode(us,null,{default:h.withCtx(()=>[e.showMenuToggle?(h.openBlock(),h.createBlock(at,{key:0,flat:"",dense:"",icon:"menu",class:"q-mr-sm","data-testid":"menu-toggle-btn",onClick:r[0]||(r[0]=s=>e.$emit("menu-toggle"))})):h.createCommentVNode("",!0),h.createVNode(u,{to:h.unref(m),class:"q-mr-lg"},{default:h.withCtx(()=>[h.createVNode(ls,{class:"logo",style:h.normalizeStyle(c.value),"data-testid":"header-logo"},{default:h.withCtx(()=>[h.createElementVNode("img",{src:e.logoSrc,alt:h.unref(b)},null,8,Ou)]),_:1},8,["style"])]),_:1},8,["to"]),h.createVNode(Bu),e.showProjectSwitch||a.value?(h.openBlock(),h.createElementBlock("div",Fu,[a.value?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(["environment-badge",o.value]),"data-testid":"environment-badge"},h.toDisplayString(e.environment),3)):h.createCommentVNode("",!0),e.showProjectSwitch?(h.openBlock(),h.createBlock(at,{key:1,dense:"",unelevated:"",color:"primary",label:e.currentProjectLabel,"data-testid":"project-switch-btn",class:"project-switch-btn q-mr-md bg-info"},{default:h.withCtx(()=>[h.createVNode(dn,{anchor:"bottom right",self:"top right"},{default:h.withCtx(()=>[h.createVNode(qr,{dense:"",class:"project-menu"},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.availableProjects,s=>h.withDirectives((h.openBlock(),h.createBlock(Yt,{key:s.path,clickable:"",disable:n(s.path),onClick:l=>e.$emit("project-change",s.path)},{default:h.withCtx(()=>[h.createVNode(Ft,{class:"q-mr-lg"},{default:h.withCtx(()=>[h.createVNode(nn,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(s.label),1)]),_:2},1024),n(s.path)?(h.openBlock(),h.createBlock(nn,{key:0,caption:""},{default:h.withCtx(()=>r[1]||(r[1]=[h.createTextVNode(" Actuel ")])),_:1,__:[1]})):h.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["disable","onClick"])),[[ai]])),128))]),_:1})]),_:1})]),_:1},8,["label"])):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0),h.renderSlot(e.$slots,"user-avatar",{},void 0,!0)]),_:3})]),_:3},16)}}}),ju=jt(Du,[["__scopeId","data-v-a7cc4135"]]),Nu=Ze({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(i,{slots:M,emit:t}){const{proxy:{$q:b}}=h.getCurrentInstance(),m=h.inject(Yr,Et);if(m===Et)return console.error("QFooter needs to be child of QLayout"),Et;const c=h.ref(parseInt(i.heightHint,10)),a=h.ref(!0),o=h.ref(dr.value===!0||m.isContainer.value===!0?0:window.innerHeight),n=h.computed(()=>i.reveal===!0||m.view.value.indexOf("F")!==-1||b.platform.is.ios&&m.isContainer.value===!0),e=h.computed(()=>m.isContainer.value===!0?m.containerHeight.value:o.value),r=h.computed(()=>{if(i.modelValue!==!0)return 0;if(n.value===!0)return a.value===!0?c.value:0;const B=m.scroll.value.position+e.value+c.value-m.height.value;return B>0?B:0}),u=h.computed(()=>i.modelValue!==!0||n.value===!0&&a.value!==!0),s=h.computed(()=>i.modelValue===!0&&u.value===!0&&i.reveal===!0),l=h.computed(()=>"q-footer q-layout__section--marginal "+(n.value===!0?"fixed":"absolute")+"-bottom"+(i.bordered===!0?" q-footer--bordered":"")+(u.value===!0?" q-footer--hidden":"")+(i.modelValue!==!0?" q-layout--prevent-focus"+(n.value!==!0?" hidden":""):"")),f=h.computed(()=>{const B=m.rows.value.bottom,N={};return B[0]==="l"&&m.left.space===!0&&(N[b.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),B[2]==="r"&&m.right.space===!0&&(N[b.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),N});function p(B,N){m.update("footer",B,N)}function d(B,N){B.value!==N&&(B.value=N)}function v({height:B}){d(c,B),p("size",B)}function g(){if(i.reveal!==!0)return;const{direction:B,position:N,inflectionPoint:q}=m.scroll.value;d(a,B==="up"||N-q<100||m.height.value-e.value-N-c.value<300)}function k(B){s.value===!0&&d(a,!0),t("focusin",B)}h.watch(()=>i.modelValue,B=>{p("space",B),d(a,!0),m.animate()}),h.watch(r,B=>{p("offset",B)}),h.watch(()=>i.reveal,B=>{B===!1&&d(a,i.modelValue)}),h.watch(a,B=>{m.animate(),t("reveal",B)}),h.watch([c,m.scroll,m.height],g),h.watch(()=>b.screen.height,B=>{m.isContainer.value!==!0&&d(o,B)});const C={};return m.instances.footer=C,i.modelValue===!0&&p("size",c.value),p("space",i.modelValue),p("offset",r.value),h.onBeforeUnmount(()=>{m.instances.footer===C&&(m.instances.footer=void 0,p("size",0),p("offset",0),p("space",!1))}),()=>{const B=Dt(M.default,[h.h(Lr,{debounce:0,onResize:v})]);return i.elevated===!0&&B.push(h.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),h.h("footer",{class:l.value,style:f.value,onFocusin:k},B)}}}),Pu={class:"row justify-between"},Lu={class:"col-3 q-py-md flex justify-center"},Vu={class:"col-3 q-py-md flex justify-center"},qu={class:"col-3 q-py-md flex justify-center"},zu=h.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(i){return(M,t)=>(h.openBlock(),h.createBlock(Nu,h.mergeProps({elevated:""},M.$attrs),{default:h.withCtx(()=>[h.createElementVNode("div",Pu,[h.createElementVNode("div",Lu," Front: "+h.toDisplayString(M.frontVersion),1),h.createElementVNode("div",Vu," Back: "+h.toDisplayString(M.backVersion),1),h.createElementVNode("div",qu," Platform: "+h.toDisplayString(M.platform),1)])]),_:1},16))}}),Uu={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Si={xs:2,sm:4,md:8,lg:16,xl:24},ur=Ze({name:"QSeparator",props:{...Tt,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(i){const M=h.getCurrentInstance(),t=Bt(i,M.proxy.$q),b=h.computed(()=>i.vertical===!0?"vertical":"horizontal"),m=h.computed(()=>` q-separator--${b.value}`),c=h.computed(()=>i.inset!==!1?`${m.value}-${Uu[i.inset]}`:""),a=h.computed(()=>`q-separator${m.value}${c.value}`+(i.color!==void 0?` bg-${i.color}`:"")+(t.value===!0?" q-separator--dark":"")),o=h.computed(()=>{const n={};if(i.size!==void 0&&(n[i.vertical===!0?"width":"height"]=i.size),i.spaced!==!1){const e=i.spaced===!0?`${Si.md}px`:i.spaced in Si?`${Si[i.spaced]}px`:i.spaced,r=i.vertical===!0?["Left","Right"]:["Top","Bottom"];n[`margin${r[0]}`]=n[`margin${r[1]}`]=e}return n});return()=>h.h("hr",{class:a.value,style:o.value,"aria-orientation":b.value})}}),Wu=Ze({name:"QToggle",props:{...zo,icon:String,iconColor:String},emits:Uo,setup(i){function M(t,b){const m=h.computed(()=>(t.value===!0?i.checkedIcon:b.value===!0?i.indeterminateIcon:i.uncheckedIcon)||i.icon),c=h.computed(()=>t.value===!0?i.iconColor:null);return()=>[h.h("div",{class:"q-toggle__track"}),h.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},m.value!==void 0?[h.h(ct,{name:m.value,color:c.value})]:void 0)]}return Wo("toggle",M)}}),Hu={class:"text-h6 text-primary","data-testid":"avatar-initial"},Yu={class:"text-weight-bold"},Qu={class:"row items-center q-gutter-sm"},Ku={class:"version-info"},Xu={class:"text-caption"},Gu={class:"text-caption"},Ju={class:"text-caption"},Zu=h.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{},logoutLabel:{default:"Déconnexion"},frontVersion:{default:"N/A"},backVersion:{default:"N/A"},platform:{default:"N/A"},showVersionInfo:{type:Boolean,default:!0},showFilterToggle:{type:Boolean,default:!1},persistFilters:{type:Boolean,default:!1}},emits:["toggle-filter-persistence"],setup(i,{emit:M}){const t=i,b=h.computed(()=>t.username?.charAt(0).toUpperCase()??"");return(m,c)=>(h.openBlock(),h.createElementBlock("div",null,[h.createVNode(ls,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar","data-testid":"cy-avatar"},{default:h.withCtx(()=>[h.createElementVNode("span",Hu,h.toDisplayString(b.value),1),h.createVNode(dn,{"transition-show":"flip-right","transition-hide":"flip-left",class:"user-avatar-menu"},{default:h.withCtx(()=>[h.createVNode(qr,{class:"user-menu-list"},{default:h.withCtx(()=>[h.createVNode(Yt,{class:"user-info-section"},{default:h.withCtx(()=>[h.createVNode(Ft,null,{default:h.withCtx(()=>[h.createElementVNode("div",Yu,h.toDisplayString(m.username),1)]),_:1})]),_:1}),h.createVNode(ur),m.showFilterToggle?(h.openBlock(),h.createBlock(Yt,{key:0,class:"filter-toggle-section"},{default:h.withCtx(()=>[h.createVNode(Ft,null,{default:h.withCtx(()=>[h.createElementVNode("div",Qu,[c[1]||(c[1]=h.createElementVNode("span",{class:"text-caption"},"Filtres persistants",-1)),h.createVNode(Wu,{"model-value":m.persistFilters,"onUpdate:modelValue":c[0]||(c[0]=a=>m.$emit("toggle-filter-persistence",a)),size:"sm","data-cy":"filter-persistence-toggle"},null,8,["model-value"])])]),_:1})]),_:1})):h.createCommentVNode("",!0),m.showFilterToggle?(h.openBlock(),h.createBlock(ur,{key:1})):h.createCommentVNode("",!0),m.showVersionInfo?(h.openBlock(),h.createBlock(Yt,{key:2,class:"version-info-section"},{default:h.withCtx(()=>[h.createVNode(Ft,null,{default:h.withCtx(()=>[h.createElementVNode("div",Ku,[c[2]||(c[2]=h.createElementVNode("div",{class:"text-caption text-grey-7"},"Informations de version",-1)),h.createElementVNode("div",Xu,"Front: "+h.toDisplayString(m.frontVersion),1),h.createElementVNode("div",Gu,"Back: "+h.toDisplayString(m.backVersion),1),h.createElementVNode("div",Ju,"Plateforme: "+h.toDisplayString(m.platform),1)])]),_:1})]),_:1})):h.createCommentVNode("",!0),m.showVersionInfo?(h.openBlock(),h.createBlock(ur,{key:3})):h.createCommentVNode("",!0),h.createVNode(Yt,{clickable:"",class:"logout-section","data-cy":"cy-logout-button","data-testid":"cy-logout-button",onClick:m.onLogout},{default:h.withCtx(()=>[h.createVNode(Ft,null,{default:h.withCtx(()=>[h.createElementVNode("div",null,h.toDisplayString(m.logoutLabel),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),$u=jt(Zu,[["__scopeId","data-v-d9b256cf"]]),ec=Ze({name:"QPageContainer",setup(i,{slots:M}){const{proxy:{$q:t}}=h.getCurrentInstance(),b=h.inject(Yr,Et);if(b===Et)return console.error("QPageContainer needs to be child of QLayout"),Et;h.provide(Zo,!0);const m=h.computed(()=>{const c={};return b.header.space===!0&&(c.paddingTop=`${b.header.size}px`),b.right.space===!0&&(c[`padding${t.lang.rtl===!0?"Left":"Right"}`]=`${b.right.size}px`),b.footer.space===!0&&(c.paddingBottom=`${b.footer.size}px`),b.left.space===!0&&(c[`padding${t.lang.rtl===!0?"Right":"Left"}`]=`${b.left.size}px`),c});return()=>h.h("div",{class:"q-page-container",style:m.value},dt(M.default))}}),tc=Ze({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:i=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(i.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(i,{slots:M,emit:t}){const{proxy:{$q:b}}=h.getCurrentInstance(),m=h.ref(null),c=h.ref(b.screen.height),a=h.ref(i.container===!0?0:b.screen.width),o=h.ref({position:0,direction:"down",inflectionPoint:0}),n=h.ref(0),e=h.ref(dr.value===!0?0:Rn()),r=h.computed(()=>"q-layout q-layout--"+(i.container===!0?"containerized":"standard")),u=h.computed(()=>i.container===!1?{minHeight:b.screen.height+"px"}:null),s=h.computed(()=>e.value!==0?{[b.lang.rtl===!0?"left":"right"]:`${e.value}px`}:null),l=h.computed(()=>e.value!==0?{[b.lang.rtl===!0?"right":"left"]:0,[b.lang.rtl===!0?"left":"right"]:`-${e.value}px`,width:`calc(100% + ${e.value}px)`}:null);function f(C){if(i.container===!0||document.qScrollPrevented!==!0){const B={position:C.position.top,direction:C.direction,directionChanged:C.directionChanged,inflectionPoint:C.inflectionPoint.top,delta:C.delta.top};o.value=B,i.onScroll!==void 0&&t("scroll",B)}}function p(C){const{height:B,width:N}=C;let q=!1;c.value!==B&&(q=!0,c.value=B,i.onScrollHeight!==void 0&&t("scrollHeight",B),v()),a.value!==N&&(q=!0,a.value=N),q===!0&&i.onResize!==void 0&&t("resize",C)}function d({height:C}){n.value!==C&&(n.value=C,v())}function v(){if(i.container===!0){const C=c.value>n.value?Rn():0;e.value!==C&&(e.value=C)}}let g=null;const k={instances:{},view:h.computed(()=>i.view),isContainer:h.computed(()=>i.container),rootRef:m,height:c,containerHeight:n,scrollbarWidth:e,totalWidth:h.computed(()=>a.value+e.value),rows:h.computed(()=>{const C=i.view.toLowerCase().split(" ");return{top:C[0].split(""),middle:C[1].split(""),bottom:C[2].split("")}}),header:h.reactive({size:0,offset:0,space:!1}),right:h.reactive({size:300,offset:0,space:!1}),footer:h.reactive({size:0,offset:0,space:!1}),left:h.reactive({size:300,offset:0,space:!1}),scroll:o,animate(){g!==null?clearTimeout(g):document.body.classList.add("q-body--layout-animate"),g=setTimeout(()=>{g=null,document.body.classList.remove("q-body--layout-animate")},155)},update(C,B,N){k[C][B]=N}};if(h.provide(Yr,k),Rn()>0){let C=function(){q=null,j.classList.remove("hide-scrollbar")},B=function(){if(q===null){if(j.scrollHeight>b.screen.height)return;j.classList.add("hide-scrollbar")}else clearTimeout(q);q=setTimeout(C,300)},N=function(P){q!==null&&P==="remove"&&(clearTimeout(q),C()),window[`${P}EventListener`]("resize",B)},q=null;const j=document.body;h.watch(()=>i.container!==!0?"add":"remove",N),i.container!==!0&&N("add"),h.onUnmounted(()=>{N("remove")})}return()=>{const C=Dt(M.default,[h.h(Yo,{onScroll:f}),h.h(Lr,{onResize:p})]),B=h.h("div",{class:r.value,style:u.value,ref:i.container===!0?void 0:m,tabindex:-1},C);return i.container===!0?h.h("div",{class:"q-layout-container overflow-hidden",ref:m},[h.h(Lr,{onResize:d}),h.h("div",{class:"absolute-full",style:s.value},[h.h("div",{class:"scroll",style:l.value},[B])])]):B}}}),la=h.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-white"},pageContainerClass:{default:""}},setup(i){return(M,t)=>(h.openBlock(),h.createBlock(tc,{view:M.view,class:h.normalizeClass(M.layoutClass),style:{minHeight:"auto !important"}},{default:h.withCtx(()=>[h.renderSlot(M.$slots,"header"),h.createVNode(ec,{class:h.normalizeClass(M.pageContainerClass),style:{paddingBottom:"0 !important"}},{default:h.withCtx(()=>[h.renderSlot(M.$slots,"default")]),_:3},8,["class"]),h.renderSlot(M.$slots,"footer")]),_:3},8,["view","class"]))}});function rc(){let i=Object.create(null);return{getCache:(M,t)=>i[M]===void 0?i[M]=typeof t=="function"?t():t:i[M],setCache(M,t){i[M]=t},hasCache(M){return Object.hasOwnProperty.call(i,M)},clearCache(M){M!==void 0?delete i[M]:i=Object.create(null)}}}const lr=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function nc(i,M,t){return Object.prototype.toString.call(i)==="[object Date]"&&(t=i.getDate(),M=i.getMonth()+1,i=i.getFullYear()),sc(ua(i,M,t))}function ro(i,M,t){return ds(oc(i,M,t))}function ic(i){return ac(i)===0}function In(i,M){return M<=6?31:M<=11||ic(i)?30:29}function ac(i){const M=lr.length;let t=lr[0],b,m,c,a,o;if(i<t||i>=lr[M-1])throw new Error("Invalid Jalaali year "+i);for(o=1;o<M&&(b=lr[o],m=b-t,!(i<b));o+=1)t=b;return a=i-t,m-a<6&&(a=a-m+wt(m+4,33)*33),c=Lt(Lt(a+1,33)-1,4),c===-1&&(c=4),c}function cs(i,M){const t=lr.length,b=i+621;let m=-14,c=lr[0],a,o,n,e,r;if(i<c||i>=lr[t-1])throw new Error("Invalid Jalaali year "+i);for(r=1;r<t&&(a=lr[r],o=a-c,!(i<a));r+=1)m=m+wt(o,33)*8+wt(Lt(o,33),4),c=a;e=i-c,m=m+wt(e,33)*8+wt(Lt(e,33)+3,4),Lt(o,33)===4&&o-e===4&&(m+=1);const u=wt(b,4)-wt((wt(b,100)+1)*3,4)-150,s=20+m-u;return M||(o-e<6&&(e=e-o+wt(o+4,33)*33),n=Lt(Lt(e+1,33)-1,4),n===-1&&(n=4)),{leap:n,gy:b,march:s}}function oc(i,M,t){const b=cs(i,!0);return ua(b.gy,3,b.march)+(M-1)*31-wt(M,7)*(M-7)+t-1}function sc(i){const M=ds(i).gy;let t=M-621,b,m,c;const a=cs(t,!1),o=ua(M,3,a.march);if(c=i-o,c>=0){if(c<=185)return m=1+wt(c,31),b=Lt(c,31)+1,{jy:t,jm:m,jd:b};c-=186}else t-=1,c+=179,a.leap===1&&(c+=1);return m=7+wt(c,30),b=Lt(c,30)+1,{jy:t,jm:m,jd:b}}function ua(i,M,t){let b=wt((i+wt(M-8,6)+100100)*1461,4)+wt(153*Lt(M+9,12)+2,5)+t-34840408;return b=b-wt(wt(i+100100+wt(M-8,6),100)*3,4)+752,b}function ds(i){let M=4*i+139361631;M=M+wt(wt(4*i+183187720,146097)*3,4)*4-3908;const t=wt(Lt(M,1461),4)*5+308,b=wt(Lt(t,153),5)+1,m=Lt(wt(t,153),12)+1;return{gy:wt(M,1461)-100100+wt(8-m,6),gm:m,gd:b}}function wt(i,M){return~~(i/M)}function Lt(i,M){return i-~~(i/M)*M}const lc=["gregorian","persian"],Yn={mask:{type:String},locale:Object,calendar:{type:String,validator:i=>lc.includes(i),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},fs=["update:modelValue"];function Gt(i){return i.year+"/"+ht(i.month)+"/"+ht(i.day)}function hs(i,M){const t=h.computed(()=>i.disable!==!0&&i.readonly!==!0),b=h.computed(()=>t.value===!0?0:-1),m=h.computed(()=>{const o=[];return i.color!==void 0&&o.push(`bg-${i.color}`),i.textColor!==void 0&&o.push(`text-${i.textColor}`),o.join(" ")});function c(){return i.locale!==void 0?{...M.lang.date,...i.locale}:M.lang.date}function a(o){const n=new Date,e=o===!0?null:0;if(i.calendar==="persian"){const r=nc(n);return{year:r.jy,month:r.jm,day:r.jd}}return{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:e,minute:e,second:e,millisecond:e}}return{editable:t,tabindex:b,headerClass:m,getLocale:c,getCurrentDate:a}}const Li={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:i=>i?`Expand "${i}"`:"Expand",collapse:i=>i?`Collapse "${i}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days",prevMonth:"Previous month",nextMonth:"Next month",prevYear:"Previous year",nextYear:"Next year",today:"Today",prevRangeYears:i=>`Previous ${i} years`,nextRangeYears:i=>`Next ${i} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:i=>i===1?"1 record selected.":(i===0?"No":i)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(i,M,t)=>i+"-"+M+" of "+t,columns:"Columns"},pagination:{first:"First page",prev:"Previous page",next:"Next page",last:"Last page"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function no(){const i=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof i=="string")return i.split(/[-_]/).map((M,t)=>t===0?M.toLowerCase():t>1||M.length<4?M.toUpperCase():M[0].toUpperCase()+M.slice(1).toLowerCase()).join("-")}const or=zs({__qLang:{}},{getLocale:no,set(i=Li,M){const t={...i,rtl:i.rtl===!0,getLocale:no};{if(t.set=or.set,or.__langConfig===void 0||or.__langConfig.noHtmlAttrs!==!0){const b=document.documentElement;b.setAttribute("dir",t.rtl===!0?"rtl":"ltr"),b.setAttribute("lang",t.isoName)}Object.assign(or.__qLang,t)}},install({$q:i,lang:M,ssrContext:t}){i.lang=or.__qLang,or.__langConfig=i.config.lang,this.__installed===!0?M!==void 0&&this.set(M):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(b){return Reflect.ownKeys(b).filter(m=>m!=="set"&&m!=="getLocale")}}),this.set(M||Li))}}),ps=864e5,uc=36e5,Vi=6e4,ms="YYYY-MM-DDTHH:mm:ss.SSSZ",cc=/\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,dc=/(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,ki={};function fc(i,M){const t="("+M.days.join("|")+")",b=i+t;if(ki[b]!==void 0)return ki[b];const m="("+M.daysShort.join("|")+")",c="("+M.months.join("|")+")",a="("+M.monthsShort.join("|")+")",o={};let n=0;const e=i.replace(dc,u=>{switch(n++,u){case"YY":return o.YY=n,"(-?\\d{1,2})";case"YYYY":return o.YYYY=n,"(-?\\d{1,4})";case"M":return o.M=n,"(\\d{1,2})";case"Mo":return o.M=n++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return o.M=n,"(\\d{2})";case"MMM":return o.MMM=n,a;case"MMMM":return o.MMMM=n,c;case"D":return o.D=n,"(\\d{1,2})";case"Do":return o.D=n++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return o.D=n,"(\\d{2})";case"H":return o.H=n,"(\\d{1,2})";case"HH":return o.H=n,"(\\d{2})";case"h":return o.h=n,"(\\d{1,2})";case"hh":return o.h=n,"(\\d{2})";case"m":return o.m=n,"(\\d{1,2})";case"mm":return o.m=n,"(\\d{2})";case"s":return o.s=n,"(\\d{1,2})";case"ss":return o.s=n,"(\\d{2})";case"S":return o.S=n,"(\\d{1})";case"SS":return o.S=n,"(\\d{2})";case"SSS":return o.S=n,"(\\d{3})";case"A":return o.A=n,"(AM|PM)";case"a":return o.a=n,"(am|pm)";case"aa":return o.aa=n,"(a\\.m\\.|p\\.m\\.)";case"ddd":return m;case"dddd":return t;case"Q":case"d":case"E":return"(\\d{1})";case"do":return n++,"(\\d{1}(st|nd|rd|th))";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"DDDo":return n++,"(\\d{1,3}(st|nd|rd|th))";case"w":return"(\\d{1,2})";case"wo":return n++,"(\\d{1,2}(st|nd|rd|th))";case"ww":return"(\\d{2})";case"Z":return o.Z=n,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return o.ZZ=n,"(Z|[+-]\\d{2}\\d{2})";case"X":return o.X=n,"(-?\\d+)";case"x":return o.x=n,"(-?\\d{4,})";default:return n--,u[0]==="["&&(u=u.substring(1,u.length-1)),u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),r={map:o,regex:new RegExp("^"+e)};return ki[b]=r,r}function gs(i,M){return i!==void 0?i:M!==void 0?M.date:Li.date}function io(i,M=""){const t=i>0?"-":"+",b=Math.abs(i),m=Math.floor(b/60),c=b%60;return t+ht(m)+M+ht(c)}function hc(i,M,t){let b=i.getFullYear(),m=i.getMonth();const c=i.getDate();return M.year!==void 0&&(b+=t*M.year,delete M.year),M.month!==void 0&&(m+=t*M.month,delete M.month),i.setDate(1),i.setMonth(2),i.setFullYear(b),i.setMonth(m),i.setDate(Math.min(c,fa(i))),M.date!==void 0&&(i.setDate(i.getDate()+t*M.date),delete M.date),i}function pc(i,M,t){const b=M.year!==void 0?M.year:i[`get${t}FullYear`](),m=M.month!==void 0?M.month-1:i[`get${t}Month`](),c=new Date(b,m+1,0).getDate(),a=Math.min(c,M.date!==void 0?M.date:i[`get${t}Date`]());return i[`set${t}Date`](1),i[`set${t}Month`](2),i[`set${t}FullYear`](b),i[`set${t}Month`](m),i[`set${t}Date`](a),delete M.year,delete M.month,delete M.date,i}function ca(i,M,t){const b=vs(M),m=new Date(i),c=b.year!==void 0||b.month!==void 0||b.date!==void 0?hc(m,b,t):m;for(const a in b){const o=Jl(a);c[`set${o}`](c[`get${o}`]()+t*b[a])}return c}function vs(i){const M={...i};return i.years!==void 0&&(M.year=i.years,delete M.years),i.months!==void 0&&(M.month=i.months,delete M.months),i.days!==void 0&&(M.date=i.days,delete M.days),i.day!==void 0&&(M.date=i.day,delete M.day),i.hour!==void 0&&(M.hours=i.hour,delete M.hour),i.minute!==void 0&&(M.minutes=i.minute,delete M.minute),i.second!==void 0&&(M.seconds=i.second,delete M.second),i.millisecond!==void 0&&(M.milliseconds=i.millisecond,delete M.millisecond),M}function bs(i,M,t){const b=vs(M),m=t===!0?"UTC":"",c=new Date(i),a=b.year!==void 0||b.month!==void 0||b.date!==void 0?pc(c,b,m):c;for(const o in b){const n=o.charAt(0).toUpperCase()+o.slice(1);a[`set${m}${n}`](b[o])}return a}function mc(i,M,t){const b=Ir(i,M,t),m=new Date(b.year,b.month===null?null:b.month-1,b.day===null?1:b.day,b.hour,b.minute,b.second,b.millisecond),c=m.getTimezoneOffset();return b.timezoneOffset===null||b.timezoneOffset===c?m:ca(m,{minutes:b.timezoneOffset-c},1)}function Ir(i,M,t,b,m){const c={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(m!==void 0&&Object.assign(c,m),i==null||i===""||typeof i!="string")return c;M===void 0&&(M=ms);const a=gs(t,or.props),o=a.months,n=a.monthsShort,{regex:e,map:r}=fc(M,a),u=i.match(e);if(u===null)return c;let s="";if(r.X!==void 0||r.x!==void 0){const l=parseInt(u[r.X!==void 0?r.X:r.x],10);if(isNaN(l)===!0||l<0)return c;const f=new Date(l*(r.X!==void 0?1e3:1));c.year=f.getFullYear(),c.month=f.getMonth()+1,c.day=f.getDate(),c.hour=f.getHours(),c.minute=f.getMinutes(),c.second=f.getSeconds(),c.millisecond=f.getMilliseconds()}else{if(r.YYYY!==void 0)c.year=parseInt(u[r.YYYY],10);else if(r.YY!==void 0){const l=parseInt(u[r.YY],10);c.year=l<0?l:2e3+l}if(r.M!==void 0){if(c.month=parseInt(u[r.M],10),c.month<1||c.month>12)return c}else r.MMM!==void 0?c.month=n.indexOf(u[r.MMM])+1:r.MMMM!==void 0&&(c.month=o.indexOf(u[r.MMMM])+1);if(r.D!==void 0){if(c.day=parseInt(u[r.D],10),c.year===null||c.month===null||c.day<1)return c;const l=b!=="persian"?new Date(c.year,c.month,0).getDate():In(c.year,c.month);if(c.day>l)return c}r.H!==void 0?c.hour=parseInt(u[r.H],10)%24:r.h!==void 0&&(c.hour=parseInt(u[r.h],10)%12,(r.A&&u[r.A]==="PM"||r.a&&u[r.a]==="pm"||r.aa&&u[r.aa]==="p.m.")&&(c.hour+=12),c.hour=c.hour%24),r.m!==void 0&&(c.minute=parseInt(u[r.m],10)%60),r.s!==void 0&&(c.second=parseInt(u[r.s],10)%60),r.S!==void 0&&(c.millisecond=parseInt(u[r.S],10)*10**(3-u[r.S].length)),(r.Z!==void 0||r.ZZ!==void 0)&&(s=r.Z!==void 0?u[r.Z].replace(":",""):u[r.ZZ],c.timezoneOffset=(s[0]==="+"?-1:1)*(60*s.slice(1,3)+1*s.slice(3,5)))}return c.dateHash=ht(c.year,4)+"/"+ht(c.month)+"/"+ht(c.day),c.timeHash=ht(c.hour)+":"+ht(c.minute)+":"+ht(c.second)+s,c}function gc(i){return typeof i=="number"?!0:isNaN(Date.parse(i))===!1}function vc(i,M){return bs(new Date,i,M)}function bc(i){const M=new Date(i).getDay();return M===0?7:M}function On(i){const M=new Date(i.getFullYear(),i.getMonth(),i.getDate());M.setDate(M.getDate()-(M.getDay()+6)%7+3);const t=new Date(M.getFullYear(),0,4);t.setDate(t.getDate()-(t.getDay()+6)%7+3);const b=M.getTimezoneOffset()-t.getTimezoneOffset();M.setHours(M.getHours()-b);const m=(M-t)/(ps*7);return 1+Math.floor(m)}function yc(i){return i.getFullYear()*1e4+i.getMonth()*100+i.getDate()}function _i(i,M){const t=new Date(i);return M===!0?yc(t):t.getTime()}function wc(i,M,t,b={}){const m=_i(M,b.onlyDate),c=_i(t,b.onlyDate),a=_i(i,b.onlyDate);return(a>m||b.inclusiveFrom===!0&&a===m)&&(a<c||b.inclusiveTo===!0&&a===c)}function xc(i,M){return ca(i,M,1)}function Sc(i,M){return ca(i,M,-1)}function Qt(i,M,t){const b=new Date(i),m=`set${t===!0?"UTC":""}`;switch(M){case"year":case"years":b[`${m}Month`](0);case"month":case"months":b[`${m}Date`](1);case"day":case"days":case"date":b[`${m}Hours`](0);case"hour":case"hours":b[`${m}Minutes`](0);case"minute":case"minutes":b[`${m}Seconds`](0);case"second":case"seconds":b[`${m}Milliseconds`](0)}return b}function kc(i,M,t){const b=new Date(i),m=`set${t===!0?"UTC":""}`;switch(M){case"year":case"years":b[`${m}Month`](11);case"month":case"months":b[`${m}Date`](fa(b));case"day":case"days":case"date":b[`${m}Hours`](23);case"hour":case"hours":b[`${m}Minutes`](59);case"minute":case"minutes":b[`${m}Seconds`](59);case"second":case"seconds":b[`${m}Milliseconds`](999)}return b}function _c(i){let M=new Date(i);return Array.prototype.slice.call(arguments,1).forEach(t=>{M=Math.max(M,new Date(t))}),M}function Cc(i){let M=new Date(i);return Array.prototype.slice.call(arguments,1).forEach(t=>{M=Math.min(M,new Date(t))}),M}function An(i,M,t){return(i.getTime()-i.getTimezoneOffset()*Vi-(M.getTime()-M.getTimezoneOffset()*Vi))/t}function da(i,M,t="days"){const b=new Date(i),m=new Date(M);switch(t){case"years":case"year":return b.getFullYear()-m.getFullYear();case"months":case"month":return(b.getFullYear()-m.getFullYear())*12+b.getMonth()-m.getMonth();case"days":case"day":case"date":return An(Qt(b,"day"),Qt(m,"day"),ps);case"hours":case"hour":return An(Qt(b,"hour"),Qt(m,"hour"),uc);case"minutes":case"minute":return An(Qt(b,"minute"),Qt(m,"minute"),Vi);case"seconds":case"second":return An(Qt(b,"second"),Qt(m,"second"),1e3)}}function Fn(i){return da(i,Qt(i,"year"),"days")+1}function Ac(i){return Hn(i)===!0?"date":typeof i=="number"?"number":"string"}function Ec(i,M,t){const b=new Date(i);if(M){const m=new Date(M);if(b<m)return m}if(t){const m=new Date(t);if(b>m)return m}return b}function Mc(i,M,t){const b=new Date(i),m=new Date(M);if(t===void 0)return b.getTime()===m.getTime();switch(t){case"second":case"seconds":if(b.getSeconds()!==m.getSeconds())return!1;case"minute":case"minutes":if(b.getMinutes()!==m.getMinutes())return!1;case"hour":case"hours":if(b.getHours()!==m.getHours())return!1;case"day":case"days":case"date":if(b.getDate()!==m.getDate())return!1;case"month":case"months":if(b.getMonth()!==m.getMonth())return!1;case"year":case"years":if(b.getFullYear()!==m.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${t}`)}return!0}function fa(i){return new Date(i.getFullYear(),i.getMonth()+1,0).getDate()}function Br(i){if(i>=11&&i<=13)return`${i}th`;switch(i%10){case 1:return`${i}st`;case 2:return`${i}nd`;case 3:return`${i}rd`}return`${i}th`}const ao={YY(i,M,t){const b=this.YYYY(i,M,t)%100;return b>=0?ht(b):"-"+ht(Math.abs(b))},YYYY(i,M,t){return t??i.getFullYear()},M(i){return i.getMonth()+1},Mo(i){return Br(i.getMonth()+1)},MM(i){return ht(i.getMonth()+1)},MMM(i,M){return M.monthsShort[i.getMonth()]},MMMM(i,M){return M.months[i.getMonth()]},Q(i){return Math.ceil((i.getMonth()+1)/3)},Qo(i){return Br(this.Q(i))},D(i){return i.getDate()},Do(i){return Br(i.getDate())},DD(i){return ht(i.getDate())},DDD(i){return Fn(i)},DDDo(i){return Br(Fn(i))},DDDD(i){return ht(Fn(i),3)},d(i){return i.getDay()},do(i){return Br(i.getDay())},dd(i,M){return M.days[i.getDay()].slice(0,2)},ddd(i,M){return M.daysShort[i.getDay()]},dddd(i,M){return M.days[i.getDay()]},E(i){return i.getDay()||7},w(i){return On(i)},wo(i){return Br(On(i))},ww(i){return ht(On(i))},H(i){return i.getHours()},HH(i){return ht(i.getHours())},h(i){const M=i.getHours();return M===0?12:M>12?M%12:M},hh(i){return ht(this.h(i))},m(i){return i.getMinutes()},mm(i){return ht(i.getMinutes())},s(i){return i.getSeconds()},ss(i){return ht(i.getSeconds())},S(i){return Math.floor(i.getMilliseconds()/100)},SS(i){return ht(Math.floor(i.getMilliseconds()/10))},SSS(i){return ht(i.getMilliseconds(),3)},A(i){return i.getHours()<12?"AM":"PM"},a(i){return i.getHours()<12?"am":"pm"},aa(i){return i.getHours()<12?"a.m.":"p.m."},Z(i,M,t,b){const m=b??i.getTimezoneOffset();return io(m,":")},ZZ(i,M,t,b){const m=b??i.getTimezoneOffset();return io(m)},X(i){return Math.floor(i.getTime()/1e3)},x(i){return i.getTime()}};function ha(i,M,t,b,m){if(i!==0&&!i||i===1/0||i===-1/0)return;const c=new Date(i);if(isNaN(c))return;M===void 0&&(M=ms);const a=gs(t,or.props);return M.replace(cc,(o,n)=>o in ao?ao[o](c,a,b,m):n===void 0?o:n.split("\\]").join("]"))}function Tc(i){return Hn(i)===!0?new Date(i.getTime()):i}const ys={isValid:gc,extractDate:mc,buildDate:vc,getDayOfWeek:bc,getWeekOfYear:On,isBetweenDates:wc,addToDate:xc,subtractFromDate:Sc,adjustDate:bs,startOfDate:Qt,endOfDate:kc,getMaxDate:_c,getMinDate:Cc,getDateDiff:da,getDayOfYear:Fn,inferDateFormat:Ac,getDateBetween:Ec,isSameDate:Mc,daysInMonth:fa,formatDate:ha,clone:Tc},Xt=20,Bc=["Calendar","Years","Months"],oo=i=>Bc.includes(i),Ci=i=>/^-?[\d]+\/[0-1]\d$/.test(i),Rr=" — ";function ar(i){return i.year+"/"+ht(i.month)}const ws=Ze({name:"QDate",props:{...Yn,...cn,...Tt,modelValue:{required:!0,validator:i=>typeof i=="string"||Array.isArray(i)===!0||Object(i)===i||i===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...Yn.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:Ci},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:Ci},navigationMaxYearMonth:{type:String,validator:Ci},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:oo}},emits:[...fs,"rangeStart","rangeEnd","navigation"],setup(i,{slots:M,emit:t}){const{proxy:b}=h.getCurrentInstance(),{$q:m}=b,c=Bt(i,m),{getCache:a}=rc(),{tabindex:o,headerClass:n,getLocale:e,getCurrentDate:r}=hs(i,m);let u;const s=Vo(i),l=ra(s),f=h.ref(null),p=h.ref(We()),d=h.ref(e()),v=h.computed(()=>We()),g=h.computed(()=>e()),k=h.computed(()=>r()),C=h.ref(me(p.value,d.value)),B=h.ref(i.defaultView),N=h.computed(()=>m.lang.rtl===!0?"right":"left"),q=h.ref(N.value),j=h.ref(N.value),P=C.value.year,V=h.ref(P-P%Xt-(P<0?Xt:0)),z=h.ref(null),L=h.computed(()=>{const ne=i.landscape===!0?"landscape":"portrait";return`q-date q-date--${ne} q-date--${ne}-${i.minimal===!0?"minimal":"standard"}`+(c.value===!0?" q-date--dark q-dark":"")+(i.bordered===!0?" q-date--bordered":"")+(i.square===!0?" q-date--square no-border-radius":"")+(i.flat===!0?" q-date--flat no-shadow":"")+(i.disable===!0?" disabled":i.readonly===!0?" q-date--readonly":"")}),A=h.computed(()=>i.color||"primary"),T=h.computed(()=>i.textColor||"white"),_=h.computed(()=>i.emitImmediately===!0&&i.multiple!==!0&&i.range!==!0),y=h.computed(()=>Array.isArray(i.modelValue)===!0?i.modelValue:i.modelValue!==null&&i.modelValue!==void 0?[i.modelValue]:[]),w=h.computed(()=>y.value.filter(ne=>typeof ne=="string").map(ne=>ze(ne,p.value,d.value)).filter(ne=>ne.dateHash!==null&&ne.day!==null&&ne.month!==null&&ne.year!==null)),x=h.computed(()=>{const ne=G=>ze(G,p.value,d.value);return y.value.filter(G=>ss(G)===!0&&G.from!==void 0&&G.to!==void 0).map(G=>({from:ne(G.from),to:ne(G.to)})).filter(G=>G.from.dateHash!==null&&G.to.dateHash!==null&&G.from.dateHash<G.to.dateHash)}),S=h.computed(()=>i.calendar!=="persian"?ne=>new Date(ne.year,ne.month-1,ne.day):ne=>{const G=ro(ne.year,ne.month,ne.day);return new Date(G.gy,G.gm-1,G.gd)}),E=h.computed(()=>i.calendar==="persian"?Gt:(ne,G,ie)=>ha(new Date(ne.year,ne.month-1,ne.day,ne.hour,ne.minute,ne.second,ne.millisecond),G===void 0?p.value:G,ie===void 0?d.value:ie,ne.year,ne.timezoneOffset)),I=h.computed(()=>w.value.length+x.value.reduce((ne,G)=>ne+1+da(S.value(G.to),S.value(G.from)),0)),O=h.computed(()=>{if(i.title!==void 0&&i.title!==null&&i.title.length!==0)return i.title;if(z.value!==null){const ie=z.value.init,fe=S.value(ie);return d.value.daysShort[fe.getDay()]+", "+d.value.monthsShort[ie.month-1]+" "+ie.day+Rr+"?"}if(I.value===0)return Rr;if(I.value>1)return`${I.value} ${d.value.pluralDay}`;const ne=w.value[0],G=S.value(ne);return isNaN(G.valueOf())===!0?Rr:d.value.headerTitle!==void 0?d.value.headerTitle(G,ne):d.value.daysShort[G.getDay()]+", "+d.value.monthsShort[ne.month-1]+" "+ne.day}),W=h.computed(()=>w.value.concat(x.value.map(G=>G.from)).sort((G,ie)=>G.year-ie.year||G.month-ie.month)[0]),H=h.computed(()=>w.value.concat(x.value.map(G=>G.to)).sort((G,ie)=>ie.year-G.year||ie.month-G.month)[0]),K=h.computed(()=>{if(i.subtitle!==void 0&&i.subtitle!==null&&i.subtitle.length!==0)return i.subtitle;if(I.value===0)return Rr;if(I.value>1){const ne=W.value,G=H.value,ie=d.value.monthsShort;return ie[ne.month-1]+(ne.year!==G.year?" "+ne.year+Rr+ie[G.month-1]+" ":ne.month!==G.month?Rr+ie[G.month-1]:"")+" "+G.year}return w.value[0].year}),D=h.computed(()=>{const ne=[m.iconSet.datetime.arrowLeft,m.iconSet.datetime.arrowRight];return m.lang.rtl===!0?ne.reverse():ne}),Y=h.computed(()=>i.firstDayOfWeek!==void 0?Number(i.firstDayOfWeek):d.value.firstDayOfWeek),F=h.computed(()=>{const ne=d.value.daysShort,G=Y.value;return G>0?ne.slice(G,7).concat(ne.slice(0,G)):ne}),R=h.computed(()=>{const ne=C.value;return i.calendar!=="persian"?new Date(ne.year,ne.month,0).getDate():In(ne.year,ne.month)}),U=h.computed(()=>typeof i.eventColor=="function"?i.eventColor:()=>i.eventColor),Q=h.computed(()=>{if(i.navigationMinYearMonth===void 0)return null;const ne=i.navigationMinYearMonth.split("/");return{year:parseInt(ne[0],10),month:parseInt(ne[1],10)}}),$=h.computed(()=>{if(i.navigationMaxYearMonth===void 0)return null;const ne=i.navigationMaxYearMonth.split("/");return{year:parseInt(ne[0],10),month:parseInt(ne[1],10)}}),J=h.computed(()=>{const ne={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return Q.value!==null&&Q.value.year>=C.value.year&&(ne.year.prev=!1,Q.value.year===C.value.year&&Q.value.month>=C.value.month&&(ne.month.prev=!1)),$.value!==null&&$.value.year<=C.value.year&&(ne.year.next=!1,$.value.year===C.value.year&&$.value.month<=C.value.month&&(ne.month.next=!1)),ne}),te=h.computed(()=>{const ne={};return w.value.forEach(G=>{const ie=ar(G);ne[ie]===void 0&&(ne[ie]=[]),ne[ie].push(G.day)}),ne}),ce=h.computed(()=>{const ne={};return x.value.forEach(G=>{const ie=ar(G.from),fe=ar(G.to);if(ne[ie]===void 0&&(ne[ie]=[]),ne[ie].push({from:G.from.day,to:ie===fe?G.to.day:void 0,range:G}),ie<fe){let ve;const{year:Fe,month:we}=G.from,Ie=we<12?{year:Fe,month:we+1}:{year:Fe+1,month:1};for(;(ve=ar(Ie))<=fe;)ne[ve]===void 0&&(ne[ve]=[]),ne[ve].push({from:void 0,to:ve===fe?G.to.day:void 0,range:G}),Ie.month++,Ie.month>12&&(Ie.year++,Ie.month=1)}}),ne}),ue=h.computed(()=>{if(z.value===null)return;const{init:ne,initHash:G,final:ie,finalHash:fe}=z.value,[ve,Fe]=G<=fe?[ne,ie]:[ie,ne],we=ar(ve),Ie=ar(Fe);if(we!==Z.value&&Ie!==Z.value)return;const je={};return we===Z.value?(je.from=ve.day,je.includeFrom=!0):je.from=1,Ie===Z.value?(je.to=Fe.day,je.includeTo=!0):je.to=R.value,je}),Z=h.computed(()=>ar(C.value)),oe=h.computed(()=>{const ne={};if(i.options===void 0){for(let ie=1;ie<=R.value;ie++)ne[ie]=!0;return ne}const G=typeof i.options=="function"?i.options:ie=>i.options.includes(ie);for(let ie=1;ie<=R.value;ie++){const fe=Z.value+"/"+ht(ie);ne[ie]=G(fe)}return ne}),se=h.computed(()=>{const ne={};if(i.events===void 0)for(let G=1;G<=R.value;G++)ne[G]=!1;else{const G=typeof i.events=="function"?i.events:ie=>i.events.includes(ie);for(let ie=1;ie<=R.value;ie++){const fe=Z.value+"/"+ht(ie);ne[ie]=G(fe)===!0&&U.value(fe)}}return ne}),he=h.computed(()=>{let ne,G;const{year:ie,month:fe}=C.value;if(i.calendar!=="persian")ne=new Date(ie,fe-1,1),G=new Date(ie,fe-1,0).getDate();else{const ve=ro(ie,fe,1);ne=new Date(ve.gy,ve.gm-1,ve.gd);let Fe=fe-1,we=ie;Fe===0&&(Fe=12,we--),G=In(we,Fe)}return{days:ne.getDay()-Y.value-1,endDay:G}}),X=h.computed(()=>{const ne=[],{days:G,endDay:ie}=he.value,fe=G<0?G+7:G;if(fe<6)for(let we=ie-fe;we<=ie;we++)ne.push({i:we,fill:!0});const ve=ne.length;for(let we=1;we<=R.value;we++){const Ie={i:we,event:se.value[we],classes:[]};oe.value[we]===!0&&(Ie.in=!0,Ie.flat=!0),ne.push(Ie)}if(te.value[Z.value]!==void 0&&te.value[Z.value].forEach(we=>{const Ie=ve+we-1;Object.assign(ne[Ie],{selected:!0,unelevated:!0,flat:!1,color:A.value,textColor:T.value})}),ce.value[Z.value]!==void 0&&ce.value[Z.value].forEach(we=>{if(we.from!==void 0){const Ie=ve+we.from-1,je=ve+(we.to||R.value)-1;for(let Ue=Ie;Ue<=je;Ue++)Object.assign(ne[Ue],{range:we.range,unelevated:!0,color:A.value,textColor:T.value});Object.assign(ne[Ie],{rangeFrom:!0,flat:!1}),we.to!==void 0&&Object.assign(ne[je],{rangeTo:!0,flat:!1})}else if(we.to!==void 0){const Ie=ve+we.to-1;for(let je=ve;je<=Ie;je++)Object.assign(ne[je],{range:we.range,unelevated:!0,color:A.value,textColor:T.value});Object.assign(ne[Ie],{flat:!1,rangeTo:!0})}else{const Ie=ve+R.value-1;for(let je=ve;je<=Ie;je++)Object.assign(ne[je],{range:we.range,unelevated:!0,color:A.value,textColor:T.value})}}),ue.value!==void 0){const we=ve+ue.value.from-1,Ie=ve+ue.value.to-1;for(let je=we;je<=Ie;je++)ne[je].color=A.value,ne[je].editRange=!0;ue.value.includeFrom===!0&&(ne[we].editRangeFrom=!0),ue.value.includeTo===!0&&(ne[Ie].editRangeTo=!0)}C.value.year===k.value.year&&C.value.month===k.value.month&&(ne[ve+k.value.day-1].today=!0);const Fe=ne.length%7;if(Fe>0){const we=7-Fe;for(let Ie=1;Ie<=we;Ie++)ne.push({i:Ie,fill:!0})}return ne.forEach(we=>{let Ie="q-date__calendar-item ";we.fill===!0?Ie+="q-date__calendar-item--fill":(Ie+=`q-date__calendar-item--${we.in===!0?"in":"out"}`,we.range!==void 0&&(Ie+=` q-date__range${we.rangeTo===!0?"-to":we.rangeFrom===!0?"-from":""}`),we.editRange===!0&&(Ie+=` q-date__edit-range${we.editRangeFrom===!0?"-from":""}${we.editRangeTo===!0?"-to":""}`),(we.range!==void 0||we.editRange===!0)&&(Ie+=` text-${we.color}`)),we.classes=Ie}),ne}),re=h.computed(()=>i.disable===!0?{"aria-disabled":"true"}:{});h.watch(()=>i.modelValue,ne=>{if(u===JSON.stringify(ne))u=0;else{const G=me(p.value,d.value);Ge(G.year,G.month,G)}}),h.watch(B,()=>{f.value!==null&&b.$el.contains(document.activeElement)===!0&&f.value.focus()}),h.watch(()=>C.value.year+"|"+C.value.month,()=>{t("navigation",{year:C.value.year,month:C.value.month})}),h.watch(v,ne=>{Ce(ne,d.value,"mask"),p.value=ne}),h.watch(g,ne=>{Ce(p.value,ne,"locale"),d.value=ne});function ae(ne){u=JSON.stringify(ne)}function le(){const{year:ne,month:G,day:ie}=k.value,fe={...C.value,year:ne,month:G,day:ie},ve=te.value[ar(fe)];(ve===void 0||ve.includes(fe.day)===!1)&&st(fe),Te(fe.year,fe.month)}function ye(ne){oo(ne)===!0&&(B.value=ne)}function Be(ne,G){["month","year"].includes(ne)&&(ne==="month"?ke:Se)(G===!0?-1:1)}function Te(ne,G){B.value="Calendar",Ge(ne,G)}function Re(ne,G){if(i.range===!1||!ne){z.value=null;return}const ie=Object.assign({...C.value},ne),fe=G!==void 0?Object.assign({...C.value},G):ie;z.value={init:ie,initHash:Gt(ie),final:fe,finalHash:Gt(fe)},Te(ie.year,ie.month)}function We(){return i.calendar==="persian"?"YYYY/MM/DD":i.mask}function ze(ne,G,ie){return Ir(ne,G,ie,i.calendar,{hour:0,minute:0,second:0,millisecond:0})}function me(ne,G){const ie=Array.isArray(i.modelValue)===!0?i.modelValue:i.modelValue?[i.modelValue]:[];if(ie.length===0)return be();const fe=ie[ie.length-1],ve=ze(fe.from!==void 0?fe.from:fe,ne,G);return ve.dateHash===null?be():ve}function be(){let ne,G;if(i.defaultYearMonth!==void 0){const ie=i.defaultYearMonth.split("/");ne=parseInt(ie[0],10),G=parseInt(ie[1],10)}else{const ie=k.value!==void 0?k.value:r();ne=ie.year,G=ie.month}return{year:ne,month:G,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:ne+"/"+ht(G)+"/01"}}function ke(ne){let G=C.value.year,ie=Number(C.value.month)+ne;ie===13?(ie=1,G++):ie===0&&(ie=12,G--),Ge(G,ie),_.value===!0&&rt("month")}function Se(ne){const G=Number(C.value.year)+ne;Ge(G,C.value.month),_.value===!0&&rt("year")}function Me(ne){Ge(ne,C.value.month),B.value=i.defaultView==="Years"?"Months":"Calendar",_.value===!0&&rt("year")}function Ve(ne){Ge(C.value.year,ne),B.value="Calendar",_.value===!0&&rt("month")}function Ae(ne,G){(te.value[G]?.includes(ne.day)===!0?ge:st)(ne)}function He(ne){return{year:ne.year,month:ne.month,day:ne.day}}function Ge(ne,G,ie){if(Q.value!==null&&ne<=Q.value.year&&((G<Q.value.month||ne<Q.value.year)&&(G=Q.value.month),ne=Q.value.year),$.value!==null&&ne>=$.value.year&&((G>$.value.month||ne>$.value.year)&&(G=$.value.month),ne=$.value.year),ie!==void 0){const{hour:ve,minute:Fe,second:we,millisecond:Ie,timezoneOffset:je,timeHash:Ue}=ie;Object.assign(C.value,{hour:ve,minute:Fe,second:we,millisecond:Ie,timezoneOffset:je,timeHash:Ue})}const fe=ne+"/"+ht(G)+"/01";fe!==C.value.dateHash&&(q.value=C.value.dateHash<fe==(m.lang.rtl!==!0)?"left":"right",ne!==C.value.year&&(j.value=q.value),h.nextTick(()=>{V.value=ne-ne%Xt-(ne<0?Xt:0),Object.assign(C.value,{year:ne,month:G,day:1,dateHash:fe})}))}function Ye(ne,G,ie){const fe=ne!==null&&ne.length===1&&i.multiple===!1?ne[0]:ne,{reason:ve,details:Fe}=tt(G,ie);ae(fe),t("update:modelValue",fe,ve,Fe)}function rt(ne){const G=w.value[0]!==void 0&&w.value[0].dateHash!==null?{...w.value[0]}:{...C.value};h.nextTick(()=>{G.year=C.value.year,G.month=C.value.month;const ie=i.calendar!=="persian"?new Date(G.year,G.month,0).getDate():In(G.year,G.month);G.day=Math.min(Math.max(1,G.day),ie);const fe=Qe(G),{details:ve}=tt("",G);ae(fe),t("update:modelValue",fe,ne,ve)})}function tt(ne,G){return G.from!==void 0?{reason:`${ne}-range`,details:{...He(G.target),from:He(G.from),to:He(G.to)}}:{reason:`${ne}-day`,details:He(G)}}function Qe(ne,G,ie){return ne.from!==void 0?{from:E.value(ne.from,G,ie),to:E.value(ne.to,G,ie)}:E.value(ne,G,ie)}function st(ne){let G;if(i.multiple===!0)if(ne.from!==void 0){const ie=Gt(ne.from),fe=Gt(ne.to),ve=w.value.filter(we=>we.dateHash<ie||we.dateHash>fe),Fe=x.value.filter(({from:we,to:Ie})=>Ie.dateHash<ie||we.dateHash>fe);G=ve.concat(Fe).concat(ne).map(we=>Qe(we))}else{const ie=y.value.slice();ie.push(Qe(ne)),G=ie}else G=Qe(ne);Ye(G,"add",ne)}function ge(ne){if(i.noUnset===!0)return;let G=null;if(i.multiple===!0&&Array.isArray(i.modelValue)===!0){const ie=Qe(ne);ne.from!==void 0?G=i.modelValue.filter(fe=>fe.from!==void 0?fe.from!==ie.from&&fe.to!==ie.to:!0):G=i.modelValue.filter(fe=>fe!==ie),G.length===0&&(G=null)}Ye(G,"remove",ne)}function Ce(ne,G,ie){const fe=w.value.concat(x.value).map(Fe=>Qe(Fe,ne,G)).filter(Fe=>Fe.from!==void 0?Fe.from.dateHash!==null&&Fe.to.dateHash!==null:Fe.dateHash!==null),ve=(i.multiple===!0?fe:fe[0])||null;ae(ve),t("update:modelValue",ve,ie)}function De(){if(i.minimal!==!0)return h.h("div",{class:"q-date__header "+n.value},[h.h("div",{class:"relative-position"},[h.h(h.Transition,{name:"q-transition--fade"},()=>h.h("div",{key:"h-yr-"+K.value,class:"q-date__header-subtitle q-date__header-link "+(B.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:o.value,...a("vY",{onClick(){B.value="Years"},onKeyup(ne){ne.keyCode===13&&(B.value="Years")}})},[K.value]))]),h.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[h.h("div",{class:"relative-position col"},[h.h(h.Transition,{name:"q-transition--fade"},()=>h.h("div",{key:"h-sub"+O.value,class:"q-date__header-title-label q-date__header-link "+(B.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:o.value,...a("vC",{onClick(){B.value="Calendar"},onKeyup(ne){ne.keyCode===13&&(B.value="Calendar")}})},[O.value]))]),i.todayBtn===!0?h.h(at,{class:"q-date__header-today self-start",icon:m.iconSet.datetime.today,"aria-label":m.lang.date.today,flat:!0,size:"sm",round:!0,tabindex:o.value,onClick:le}):null])])}function Pe({label:ne,type:G,key:ie,dir:fe,goTo:ve,boundaries:Fe,cls:we}){return[h.h("div",{class:"row items-center q-date__arrow"},[h.h(at,{round:!0,dense:!0,size:"sm",flat:!0,icon:D.value[0],"aria-label":G==="Years"?m.lang.date.prevYear:m.lang.date.prevMonth,tabindex:o.value,disable:Fe.prev===!1,...a("go-#"+G,{onClick(){ve(-1)}})})]),h.h("div",{class:"relative-position overflow-hidden flex flex-center"+we},[h.h(h.Transition,{name:"q-transition--jump-"+fe},()=>h.h("div",{key:ie},[h.h(at,{flat:!0,dense:!0,noCaps:!0,label:ne,tabindex:o.value,...a("view#"+G,{onClick:()=>{B.value=G}})})]))]),h.h("div",{class:"row items-center q-date__arrow"},[h.h(at,{round:!0,dense:!0,size:"sm",flat:!0,icon:D.value[1],"aria-label":G==="Years"?m.lang.date.nextYear:m.lang.date.nextMonth,tabindex:o.value,disable:Fe.next===!1,...a("go+#"+G,{onClick(){ve(1)}})})])]}const Oe={Calendar:()=>[h.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[h.h("div",{class:"q-date__navigation row items-center no-wrap"},Pe({label:d.value.months[C.value.month-1],type:"Months",key:C.value.month,dir:q.value,goTo:ke,boundaries:J.value.month,cls:" col"}).concat(Pe({label:C.value.year,type:"Years",key:C.value.year,dir:j.value,goTo:Se,boundaries:J.value.year,cls:""}))),h.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},F.value.map(ne=>h.h("div",{class:"q-date__calendar-item"},[h.h("div",ne)]))),h.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[h.h(h.Transition,{name:"q-transition--slide-"+q.value},()=>h.h("div",{key:Z.value,class:"q-date__calendar-days fit"},X.value.map(ne=>h.h("div",{class:ne.classes},[ne.in===!0?h.h(at,{class:ne.today===!0?"q-date__today":"",dense:!0,flat:ne.flat,unelevated:ne.unelevated,color:ne.color,textColor:ne.textColor,label:ne.i,tabindex:o.value,...a("day#"+ne.i,{onClick:()=>{Ke(ne.i)},onMouseover:()=>{Xe(ne.i)}})},ne.event!==!1?()=>h.h("div",{class:"q-date__event bg-"+ne.event}):null):h.h("div",""+ne.i)]))))])])],Months(){const ne=C.value.year===k.value.year,G=fe=>Q.value!==null&&C.value.year===Q.value.year&&Q.value.month>fe||$.value!==null&&C.value.year===$.value.year&&$.value.month<fe,ie=d.value.monthsShort.map((fe,ve)=>{const Fe=C.value.month===ve+1;return h.h("div",{class:"q-date__months-item flex flex-center"},[h.h(at,{class:ne===!0&&k.value.month===ve+1?"q-date__today":null,flat:Fe!==!0,label:fe,unelevated:Fe,color:Fe===!0?A.value:null,textColor:Fe===!0?T.value:null,tabindex:o.value,disable:G(ve+1),...a("month#"+ve,{onClick:()=>{Ve(ve+1)}})})])});return i.yearsInMonthView===!0&&ie.unshift(h.h("div",{class:"row no-wrap full-width"},[Pe({label:C.value.year,type:"Years",key:C.value.year,dir:j.value,goTo:Se,boundaries:J.value.year,cls:" col"})])),h.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},ie)},Years(){const ne=V.value,G=ne+Xt,ie=[],fe=ve=>Q.value!==null&&Q.value.year>ve||$.value!==null&&$.value.year<ve;for(let ve=ne;ve<=G;ve++){const Fe=C.value.year===ve;ie.push(h.h("div",{class:"q-date__years-item flex flex-center"},[h.h(at,{key:"yr"+ve,class:k.value.year===ve?"q-date__today":null,flat:!Fe,label:ve,dense:!0,unelevated:Fe,color:Fe===!0?A.value:null,textColor:Fe===!0?T.value:null,tabindex:o.value,disable:fe(ve),...a("yr#"+ve,{onClick:()=>{Me(ve)}})})]))}return h.h("div",{class:"q-date__view q-date__years flex flex-center"},[h.h("div",{class:"col-auto"},[h.h(at,{round:!0,dense:!0,flat:!0,icon:D.value[0],"aria-label":m.lang.date.prevRangeYears(Xt),tabindex:o.value,disable:fe(ne),...a("y-",{onClick:()=>{V.value-=Xt}})})]),h.h("div",{class:"q-date__years-content col self-stretch row items-center"},ie),h.h("div",{class:"col-auto"},[h.h(at,{round:!0,dense:!0,flat:!0,icon:D.value[1],"aria-label":m.lang.date.nextRangeYears(Xt),tabindex:o.value,disable:fe(G),...a("y+",{onClick:()=>{V.value+=Xt}})})])])}};function Ke(ne){const G={...C.value,day:ne};if(i.range===!1){Ae(G,Z.value);return}if(z.value===null){const ie=X.value.find(ve=>ve.fill!==!0&&ve.i===ne);if(i.noUnset!==!0&&ie.range!==void 0){ge({target:G,from:ie.range.from,to:ie.range.to});return}if(ie.selected===!0){ge(G);return}const fe=Gt(G);z.value={init:G,initHash:fe,final:G,finalHash:fe},t("rangeStart",He(G))}else{const ie=z.value.initHash,fe=Gt(G),ve=ie<=fe?{from:z.value.init,to:G}:{from:G,to:z.value.init};z.value=null,st(ie===fe?G:{target:G,...ve}),t("rangeEnd",{from:He(ve.from),to:He(ve.to)})}}function Xe(ne){if(z.value!==null){const G={...C.value,day:ne};Object.assign(z.value,{final:G,finalHash:Gt(G)})}}return Object.assign(b,{setToday:le,setView:ye,offsetCalendar:Be,setCalendarTo:Te,setEditingRange:Re}),()=>{const ne=[h.h("div",{class:"q-date__content col relative-position"},[h.h(h.Transition,{name:"q-transition--fade"},Oe[B.value])])],G=dt(M.default);return G!==void 0&&ne.push(h.h("div",{class:"q-date__actions"},G)),i.name!==void 0&&i.disable!==!0&&l(ne,"push"),h.h("div",{class:L.value,...re.value},[De(),h.h("div",{ref:f,class:"q-date__main col column",tabindex:-1},ne)])}}}),pa=Ze({name:"QPopupProxy",props:{...Io,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(i,{slots:M,emit:t,attrs:b}){const{proxy:m}=h.getCurrentInstance(),{$q:c}=m,a=h.ref(!1),o=h.ref(null),n=h.computed(()=>parseInt(i.breakpoint,10)),{canShow:e}=Xi({showing:a});function r(){return c.screen.width<n.value||c.screen.height<n.value?"dialog":"menu"}const u=h.ref(r()),s=h.computed(()=>u.value==="menu"?{maxHeight:"99vh"}:{});h.watch(()=>r(),p=>{a.value!==!0&&(u.value=p)});function l(p){a.value=!0,t("show",p)}function f(p){a.value=!1,u.value=r(),t("hide",p)}return Object.assign(m,{show(p){e(p)===!0&&o.value.show(p)},hide(p){o.value.hide(p)},toggle(p){o.value.toggle(p)}}),qt(m,"currentComponent",()=>({type:u.value,ref:o.value})),()=>{const p={ref:o,...s.value,...b,onShow:l,onHide:f};let d;return u.value==="dialog"?d=fn:(d=dn,Object.assign(p,{target:i.target,contextMenu:i.contextMenu,noParentEvent:!0,separateClosePopup:!0})),h.h(d,p,M.default)}}}),so={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Qn={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:i=>i.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:i=>i.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:i=>i.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:i=>i.toLocaleLowerCase()}},xs=Object.keys(Qn);xs.forEach(i=>{Qn[i].regex=new RegExp(Qn[i].pattern)});const Rc=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+xs.join("")+"])|(.)","g"),lo=/[.*+?^${}()|[\]\\]/g,Ct="",Ic={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Oc(i,M,t,b){let m,c,a,o,n,e;const r=h.ref(null),u=h.ref(l());function s(){return i.autogrow===!0||["textarea","text","search","url","tel","password"].includes(i.type)}h.watch(()=>i.type+i.autogrow,p),h.watch(()=>i.mask,P=>{if(P!==void 0)d(u.value,!0);else{const V=q(u.value);p(),i.modelValue!==V&&M("update:modelValue",V)}}),h.watch(()=>i.fillMask+i.reverseFillMask,()=>{r.value===!0&&d(u.value,!0)}),h.watch(()=>i.unmaskedValue,()=>{r.value===!0&&d(u.value)});function l(){if(p(),r.value===!0){const P=B(q(i.modelValue));return i.fillMask!==!1?j(P):P}return i.modelValue}function f(P){if(P<m.length)return m.slice(-P);let V="",z=m;const L=z.indexOf(Ct);if(L!==-1){for(let A=P-z.length;A>0;A--)V+=Ct;z=z.slice(0,L)+V+z.slice(L)}return z}function p(){if(r.value=i.mask!==void 0&&i.mask.length!==0&&s(),r.value===!1){o=void 0,m="",c="";return}const P=so[i.mask]===void 0?i.mask:so[i.mask],V=typeof i.fillMask=="string"&&i.fillMask.length!==0?i.fillMask.slice(0,1):"_",z=V.replace(lo,"\\$&"),L=[],A=[],T=[];let _=i.reverseFillMask===!0,y="",w="";P.replace(Rc,(I,O,W,H,K)=>{if(H!==void 0){const D=Qn[H];T.push(D),w=D.negate,_===!0&&(A.push("(?:"+w+"+)?("+D.pattern+"+)?(?:"+w+"+)?("+D.pattern+"+)?"),_=!1),A.push("(?:"+w+"+)?("+D.pattern+")?")}else if(W!==void 0)y="\\"+(W==="\\"?"":W),T.push(W),L.push("([^"+y+"]+)?"+y+"?");else{const D=O!==void 0?O:K;y=D==="\\"?"\\\\\\\\":D.replace(lo,"\\\\$&"),T.push(D),L.push("([^"+y+"]+)?"+y+"?")}});const x=new RegExp("^"+L.join("")+"("+(y===""?".":"[^"+y+"]")+"+)?"+(y===""?"":"["+y+"]*")+"$"),S=A.length-1,E=A.map((I,O)=>O===0&&i.reverseFillMask===!0?new RegExp("^"+z+"*"+I):O===S?new RegExp("^"+I+"("+(w===""?".":w)+"+)?"+(i.reverseFillMask===!0?"$":z+"*")):new RegExp("^"+I));a=T,o=I=>{const O=x.exec(i.reverseFillMask===!0?I:I.slice(0,T.length+1));O!==null&&(I=O.slice(1).join(""));const W=[],H=E.length;for(let K=0,D=I;K<H;K++){const Y=E[K].exec(D);if(Y===null)break;D=D.slice(Y.shift().length),W.push(...Y)}return W.length!==0?W.join(""):I},m=T.map(I=>typeof I=="string"?I:Ct).join(""),c=m.split(Ct).join(V)}function d(P,V,z){const L=b.value,A=L.selectionEnd,T=L.value.length-A,_=q(P);V===!0&&p();const y=B(_),w=i.fillMask!==!1?j(y):y,x=u.value!==w;L.value!==w&&(L.value=w),x===!0&&(u.value=w),document.activeElement===L&&h.nextTick(()=>{if(w===c){const E=i.reverseFillMask===!0?c.length:0;L.setSelectionRange(E,E,"forward");return}if(z==="insertFromPaste"&&i.reverseFillMask!==!0){const E=L.selectionEnd;let I=A-1;for(let O=n;O<=I&&O<E;O++)m[O]!==Ct&&I++;g.right(L,I);return}if(["deleteContentBackward","deleteContentForward"].indexOf(z)!==-1){const E=i.reverseFillMask===!0?A===0?w.length>y.length?1:0:Math.max(0,w.length-(w===c?0:Math.min(y.length,T)+1))+1:A;L.setSelectionRange(E,E,"forward");return}if(i.reverseFillMask===!0)if(x===!0){const E=Math.max(0,w.length-(w===c?0:Math.min(y.length,T+1)));E===1&&A===1?L.setSelectionRange(E,E,"forward"):g.rightReverse(L,E)}else{const E=w.length-T;L.setSelectionRange(E,E,"backward")}else if(x===!0){const E=Math.max(0,m.indexOf(Ct),Math.min(y.length,A)-1);g.right(L,E)}else{const E=A-1;g.right(L,E)}});const S=i.unmaskedValue===!0?q(w):w;String(i.modelValue)!==S&&(i.modelValue!==null||S!=="")&&t(S,!0)}function v(P,V,z){const L=B(q(P.value));V=Math.max(0,m.indexOf(Ct),Math.min(L.length,V)),n=V,P.setSelectionRange(V,z,"forward")}const g={left(P,V){const z=m.slice(V-1).indexOf(Ct)===-1;let L=Math.max(0,V-1);for(;L>=0;L--)if(m[L]===Ct){V=L,z===!0&&V++;break}if(L<0&&m[V]!==void 0&&m[V]!==Ct)return g.right(P,0);V>=0&&P.setSelectionRange(V,V,"backward")},right(P,V){const z=P.value.length;let L=Math.min(z,V+1);for(;L<=z;L++)if(m[L]===Ct){V=L;break}else m[L-1]===Ct&&(V=L);if(L>z&&m[V-1]!==void 0&&m[V-1]!==Ct)return g.left(P,z);P.setSelectionRange(V,V,"forward")},leftReverse(P,V){const z=f(P.value.length);let L=Math.max(0,V-1);for(;L>=0;L--)if(z[L-1]===Ct){V=L;break}else if(z[L]===Ct&&(V=L,L===0))break;if(L<0&&z[V]!==void 0&&z[V]!==Ct)return g.rightReverse(P,0);V>=0&&P.setSelectionRange(V,V,"backward")},rightReverse(P,V){const z=P.value.length,L=f(z),A=L.slice(0,V+1).indexOf(Ct)===-1;let T=Math.min(z,V+1);for(;T<=z;T++)if(L[T-1]===Ct){V=T,V>0&&A===!0&&V--;break}if(T>z&&L[V-1]!==void 0&&L[V-1]!==Ct)return g.leftReverse(P,z);P.setSelectionRange(V,V,"forward")}};function k(P){M("click",P),e=void 0}function C(P){if(M("keydown",P),Ki(P)===!0||P.altKey===!0)return;const V=b.value,z=V.selectionStart,L=V.selectionEnd;if(P.shiftKey||(e=void 0),P.keyCode===37||P.keyCode===39){P.shiftKey&&e===void 0&&(e=V.selectionDirection==="forward"?z:L);const A=g[(P.keyCode===39?"right":"left")+(i.reverseFillMask===!0?"Reverse":"")];if(P.preventDefault(),A(V,e===z?L:z),P.shiftKey){const T=V.selectionStart;V.setSelectionRange(Math.min(e,T),Math.max(e,T),"forward")}}else P.keyCode===8&&i.reverseFillMask!==!0&&z===L?(g.left(V,z),V.setSelectionRange(V.selectionStart,L,"backward")):P.keyCode===46&&i.reverseFillMask===!0&&z===L&&(g.rightReverse(V,L),V.setSelectionRange(z,V.selectionEnd,"forward"))}function B(P){if(P==null||P==="")return"";if(i.reverseFillMask===!0)return N(P);const V=a;let z=0,L="";for(let A=0;A<V.length;A++){const T=P[z],_=V[A];if(typeof _=="string")L+=_;else if(T!==void 0&&_.regex.test(T))L+=_.transform!==void 0?_.transform(T):T,z++;else return L}return L}function N(P){const V=a,z=m.indexOf(Ct);let L=P.length-1,A="";for(let T=V.length-1;T>=0&&L!==-1;T--){const _=V[T];let y=P[L];if(typeof _=="string")A=_+A;else if(y!==void 0&&_.regex.test(y))do A=(_.transform!==void 0?_.transform(y):y)+A,L--,y=P[L];while(z===T&&y!==void 0&&_.regex.test(y));else return A}return A}function q(P){return typeof P!="string"||o===void 0?typeof P=="number"?o(""+P):P:o(P)}function j(P){return c.length-P.length<=0?P:i.reverseFillMask===!0&&P.length!==0?c.slice(0,-P.length)+P:P+c.slice(P.length)}return{innerValue:u,hasMask:r,moveCursorForPaste:v,updateMaskValue:d,onMaskedKeydown:C,onMaskedClick:k}}function Fc(i,M){function t(){const b=i.modelValue;try{const m="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(b)===b&&("length"in b?Array.from(b):[b]).forEach(c=>{m.items.add(c)}),{files:m.files}}catch{return{files:void 0}}}return h.computed(()=>{if(i.type==="file")return t()})}const zr=Ze({name:"QInput",inheritAttrs:!1,props:{...ni,...Ic,...cn,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...aa,"paste","change","keydown","click","animationend"],setup(i,{emit:M,attrs:t}){const{proxy:b}=h.getCurrentInstance(),{$q:m}=b,c={};let a=NaN,o,n,e=null,r;const u=h.ref(null),s=qo(i),{innerValue:l,hasMask:f,moveCursorForPaste:p,updateMaskValue:d,onMaskedKeydown:v,onMaskedClick:g}=Oc(i,M,y,u),k=Fc(i),C=h.computed(()=>rn(l.value)),B=os(T),N=oa({changeEvent:!0}),q=h.computed(()=>i.type==="textarea"||i.autogrow===!0),j=h.computed(()=>q.value===!0||["text","search","url","tel","password"].includes(i.type)),P=h.computed(()=>{const O={...N.splitAttrs.listeners.value,onInput:T,onPaste:A,onChange:x,onBlur:S,onFocus:Pt};return O.onCompositionstart=O.onCompositionupdate=O.onCompositionend=B,f.value===!0&&(O.onKeydown=v,O.onClick=g),i.autogrow===!0&&(O.onAnimationend=_),O}),V=h.computed(()=>{const O={tabindex:0,"data-autofocus":i.autofocus===!0||void 0,rows:i.type==="textarea"?6:void 0,"aria-label":i.label,name:s.value,...N.splitAttrs.attributes.value,id:N.targetUid.value,maxlength:i.maxlength,disabled:i.disable===!0,readonly:i.readonly===!0};return q.value===!1&&(O.type=i.type),i.autogrow===!0&&(O.rows=1),O});h.watch(()=>i.type,()=>{u.value&&(u.value.value=i.modelValue)}),h.watch(()=>i.modelValue,O=>{if(f.value===!0){if(n===!0&&(n=!1,String(O)===a))return;d(O)}else l.value!==O&&(l.value=O,i.type==="number"&&c.hasOwnProperty("value")===!0&&(o===!0?o=!1:delete c.value));i.autogrow===!0&&h.nextTick(w)}),h.watch(()=>i.autogrow,O=>{O===!0?h.nextTick(w):u.value!==null&&t.rows>0&&(u.value.style.height="auto")}),h.watch(()=>i.dense,()=>{i.autogrow===!0&&h.nextTick(w)});function z(){un(()=>{const O=document.activeElement;u.value!==null&&u.value!==O&&(O===null||O.id!==N.targetUid.value)&&u.value.focus({preventScroll:!0})})}function L(){u.value?.select()}function A(O){if(f.value===!0&&i.reverseFillMask!==!0){const W=O.target;p(W,W.selectionStart,W.selectionEnd)}M("paste",O)}function T(O){if(!O||!O.target)return;if(i.type==="file"){M("update:modelValue",O.target.files);return}const W=O.target.value;if(O.target.qComposing===!0){c.value=W;return}if(f.value===!0)d(W,!1,O.inputType);else if(y(W),j.value===!0&&O.target===document.activeElement){const{selectionStart:H,selectionEnd:K}=O.target;H!==void 0&&K!==void 0&&h.nextTick(()=>{O.target===document.activeElement&&W.indexOf(O.target.value)===0&&O.target.setSelectionRange(H,K)})}i.autogrow===!0&&w()}function _(O){M("animationend",O),w()}function y(O,W){r=()=>{e=null,i.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,i.modelValue!==O&&a!==O&&(a=O,W===!0&&(n=!0),M("update:modelValue",O),h.nextTick(()=>{a===O&&(a=NaN)})),r=void 0},i.type==="number"&&(o=!0,c.value=O),i.debounce!==void 0?(e!==null&&clearTimeout(e),c.value=O,e=setTimeout(r,i.debounce)):r()}function w(){requestAnimationFrame(()=>{const O=u.value;if(O!==null){const W=O.parentNode.style,{scrollTop:H}=O,{overflowY:K,maxHeight:D}=m.platform.is.firefox===!0?{}:window.getComputedStyle(O),Y=K!==void 0&&K!=="scroll";Y===!0&&(O.style.overflowY="hidden"),W.marginBottom=O.scrollHeight-1+"px",O.style.height="1px",O.style.height=O.scrollHeight+"px",Y===!0&&(O.style.overflowY=parseInt(D,10)<O.scrollHeight?"auto":"hidden"),W.marginBottom="",O.scrollTop=H}})}function x(O){B(O),e!==null&&(clearTimeout(e),e=null),r?.(),M("change",O.target.value)}function S(O){O!==void 0&&Pt(O),e!==null&&(clearTimeout(e),e=null),r?.(),o=!1,n=!1,delete c.value,i.type!=="file"&&setTimeout(()=>{u.value!==null&&(u.value.value=l.value!==void 0?l.value:"")})}function E(){return c.hasOwnProperty("value")===!0?c.value:l.value!==void 0?l.value:""}h.onBeforeUnmount(()=>{S()}),h.onMounted(()=>{i.autogrow===!0&&w()}),Object.assign(N,{innerValue:l,fieldClass:h.computed(()=>`q-${q.value===!0?"textarea":"input"}`+(i.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:h.computed(()=>i.type!=="file"&&typeof i.shadowText=="string"&&i.shadowText.length!==0),inputRef:u,emitValue:y,hasValue:C,floatingLabel:h.computed(()=>C.value===!0&&(i.type!=="number"||isNaN(l.value)===!1)||rn(i.displayValue)),getControl:()=>h.h(q.value===!0?"textarea":"input",{ref:u,class:["q-field__native q-placeholder",i.inputClass],style:i.inputStyle,...V.value,...P.value,...i.type!=="file"?{value:E()}:k.value}),getShadowControl:()=>h.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(q.value===!0?"":" text-no-wrap")},[h.h("span",{class:"invisible"},E()),h.h("span",i.shadowText)])});const I=sa(N);return Object.assign(b,{focus:z,select:L,getNativeElement:()=>u.value}),qt(b,"nativeEl",()=>u.value),I}});function Dc(i){return{entity:i.entity,dataCy:i.dataCy,defaultLabel:i.defaultLabel,routeName:i.routeName,shouldRender:i.customShouldRender||(({store:M})=>i.storeField?!!M[i.storeField]:!0),getLabel:i.getLabel||(i.labelField?({store:M})=>i.storeField&&M[i.storeField]?.[i.labelField]||i.defaultLabel:void 0),getColor:i.customGetColor||(({store:M})=>i.storeField&&M[i.storeField]?"primary":"dark"),getRouteParams:i.routeParamKey&&i.routeParamField?({store:M})=>({[i.routeParamKey]:i.storeField&&M[i.storeField]?.[i.routeParamField]}):void 0,clearActions:[...i.clearMethods?.map(M=>({store:t})=>t[M]?.())||[],...i.navActions?.map(M=>({navStore:t})=>M(t))||[]]}}const Ss=/^\d{2}-\d{2}-\d{4}$/;function jc(i){const M=i.getTimezoneOffset()*6e4;return new Date(i.getTime()+M)}function Zr(i){const M=/^\d{4}-\d{2}-\d{2}$/,t=/^\d{2}-\d{2}-\d{4}$/;if(M.test(i))return i;if(t.test(i)){const b=i.split("-");return`${b[2]}-${b[1]}-${b[0]}`}return console.warn("'Invalid date format. Expected DD-MM-YYYY' or 'YYYY-MM-DD' but got: "+i),""}function ma(i,M,t,b=[]){const m=typeof i=="string"?new Date(Zr(i)):new Date(i);if(Number.isNaN(m.getTime()))return!1;if(M){const o=typeof M=="string"?new Date(Zr(M)):new Date(M);if(m<o)return!1}if(t){const o=typeof t=="string"?new Date(Zr(t)):new Date(t);if(m>o)return!1}return b.some(o=>{if(typeof o=="string"){const n=new Date(Zr(o));return m.getFullYear()===n.getFullYear()&&m.getMonth()===n.getMonth()&&m.getDate()===n.getDate()}else{if(o instanceof Date)return m.getFullYear()===o.getFullYear()&&m.getMonth()===o.getMonth()&&m.getDate()===o.getDate();{const n=new Date(o.start_date),e=new Date(o.end_date);return m>=n&&m<=e}}})?!1:!b.some(o=>{if(typeof o=="object"&&!(o instanceof Date)&&o.start_date&&o.end_date){const n=new Date(o.start_date),e=new Date(o.end_date);if(n.getTime()===e.getTime())return m.getTime()===n.getTime()||m.getTime()===e.getTime()}return!1})}const Jt={validateAndUpdate(i,M,t){return Ss.test(M)?{...i,[t?"from":"to"]:M}:i},isEndDateValid(i,M,t=!1){if(!i||!M)return!0;try{const[b,m,c]=i.split("-"),[a,o,n]=M.split("-"),e=new Date(Number(c),Number(m)-1,Number(b)),r=new Date(Number(n),Number(o)-1,Number(a));return t?r>=e:r>e}catch{return!1}},handlePickerUpdate(i){return i===null?{from:"",to:""}:typeof i=="string"?{from:i,to:i}:i},reset(){return{from:"",to:""}},handleInput(i,M){typeof i=="string"&&M(i)}},ks={days:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],daysShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthsShort:["Janv","Févr","Mars","Avr","Mai","Juin","Juil","Août","Sept","Oct","Nov","Dec"],firstDayOfWeek:1,format24h:!0,pluralDay:"jours"};function Nc(i){if(!i||!/^\d{2}-\d{2}-\d{4}$/.test(i))return new Date(Number.NaN);const[M,t,b]=i.split("-").map(Number);return new Date(b,t-1,M)}function Wt(i){if(!i)return"";const M=new Date(i),t=M.getFullYear(),b=String(M.getMonth()+1).padStart(2,"0");return`${String(M.getDate()).padStart(2,"0")}-${b}-${t}`}function Kn(i,M){return new Date(i,M-1,1)}function Xn(i,M){return new Date(i,M,0)}function _s(i=new Date){const M=i.getFullYear(),t=i.getMonth()+1;let b=t-3,m=M;b<=0&&(b+=12,m-=1);const c=Kn(m,b);let a=t-1,o=M;a<=0&&(a+=12,o-=1);const n=Xn(o,a);return{from:Wt(c),to:Wt(n)}}const Cs={currentMonth:(i=new Date)=>{const M=i.getFullYear(),t=i.getMonth()+1;return{from:Wt(Kn(M,t)),to:Wt(Xn(M,t))}},previousMonth:(i=new Date)=>{const M=i.getFullYear();let b=i.getMonth()+1-1,m=M;return b===0&&(b=12,m=M-1),{from:Wt(Kn(m,b)),to:Wt(Xn(m,b))}},last3Months:_s,currentYear:(i=new Date)=>{const M=i.getFullYear();return{from:Wt(new Date(M,0,1)),to:Wt(new Date(M,11,31))}},previousYear:(i=new Date)=>{const M=i.getFullYear()-1;return{from:Wt(new Date(M,0,1)),to:Wt(new Date(M,11,31))}}};function Pc(i){if(!i)return{date:"",time:""};try{const M=new Date(i);if(Number.isNaN(M.getTime()))return console.error("Invalid date:",i),{date:"",time:""};const b=new Intl.DateTimeFormat("fr-FR",{timeZone:"Europe/Paris",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(M),m=f=>b.find(p=>p.type===f)?.value||"",c=m("day"),a=m("month"),o=m("year"),n=m("hour"),e=m("minute"),r=m("second"),u=`${c}-${a}-${o}`,l=i.includes("T")&&i.split("T")[1]?.split(":").length>=3&&i.split("T")[1].split(":")[2]!=="00"?`${n}:${e}:${r}`:`${n}:${e}`;return{date:u,time:l}}catch(M){return console.error("Error parsing ISO datetime:",M,"Input:",i),{date:"",time:""}}}function Lc(i){if(!i)return"";if(new RegExp(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/).exec(i))return i;if(new RegExp(/^\d{4}-\d{2}-\d{2}$/).exec(i))return`${i}T00:00:00Z`;if(new RegExp(/^\d{2}-\d{2}-\d{4}$/).exec(i)){const[t,b,m]=i.split("-");return`${m}-${b}-${t}T00:00:00Z`}if(new RegExp(/^\d{2}\/\d{2}\/\d{4}$/).exec(i)){const[t,b,m]=i.split("/");return`${m}-${b}-${t}T00:00:00Z`}if(new RegExp(/^\d{2}\.\d{2}\.\d{4}$/).exec(i)){const[t,b,m]=i.split(".");return`${m}-${b}-${t}T00:00:00Z`}const M=new Date(i);return Number.isNaN(M.getTime())?i:M.toISOString()}function an(i){if(i?.length!==10)return!1;const t=/^(\d{2})-(\d{2})-(\d{4})$/.exec(i);if(!t)return!1;const b=Number.parseInt(t[1],10),m=Number.parseInt(t[2],10),c=Number.parseInt(t[3],10);return m<1||m>12||b<1||b>31?!1:As(b,m,c)}function Zt(i){if(!i)return null;if(i.length!==10)return"Le format doit être JJ-MM-AAAA";const t=/^(\d{2})-(\d{2})-(\d{4})$/.exec(i);if(!t)return"Format invalide. Utilisez JJ-MM-AAAA";const b=Number.parseInt(t[1],10),m=Number.parseInt(t[2],10),c=Number.parseInt(t[3],10),a=Vc(m);if(a)return a;const o=qc(b,m,c);return o||(As(b,m,c)?null:"Date inexistante")}function Vc(i){return i<1||i>12?"Le mois doit être entre 01 et 12":null}function qc(i,M,t){return i<1||i>31?"Le jour doit être entre 01 et 31":[4,6,9,11].includes(M)&&i>30?`Le mois ${M} n'a que 30 jours`:M===2?zc(i,t):null}function zc(i,M){const t=M%4===0&&M%100!==0||M%400===0;return t&&i>29?"Février a maximum 29 jours pour les années bissextiles":!t&&i>28?"Février a maximum 28 jours":null}function As(i,M,t){const b=new Date(t,M-1,i);return b.getFullYear()===t&&b.getMonth()===M-1&&b.getDate()===i}const Uc={class:"columns justify-end"},Es=h.defineComponent({__name:"DatePicker",props:{label:{default:"Date"},date:{default:""},required:{type:Boolean,default:!1},minDate:{default:void 0},maxDate:{default:void 0},datesDisabled:{default:()=>[]},requiredErrorMessage:{default:"Ce champ est obligatoire !"},invalidDateErrorMessage:{default:"Date invalide!"},disabled:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},placeholder:{default:void 0},closeLabel:{default:"Close"},rules:{default:()=>[]}},emits:["update:modelValue","update:date"],setup(i,{emit:M}){const t=i,b=M,m=h.useAttrs(),c=h.ref(),a=h.ref(t.date),o=h.ref(null),n=h.computed(()=>a.value),e=()=>{n.value?o.value=Zt(n.value):o.value=null},r=h.computed(()=>f=>{const p=f.replaceAll("/","-");return ma(p,t.minDate,t.maxDate,t.datesDisabled)}),u=f=>{an(f)&&(a.value=f,o.value=null,b("update:date",f),b("update:modelValue",f),setTimeout(()=>{c.value?.hide?.()},0))},s=f=>{if(typeof f=="string")if(a.value=f,b("update:date",f),b("update:modelValue",f),f.length===10){const p=Zt(f);o.value=p}else f===""&&(o.value=null);else f===null&&(a.value="",o.value=null,b("update:date",""),b("update:modelValue",""))},l=h.computed(()=>{const f=[...t.rules];return t.required&&f.push(p=>!!p||t.requiredErrorMessage),f.push(p=>p?an(p)||o.value||t.invalidDateErrorMessage:!0),f});return h.watch(()=>[t.date],([f,p])=>{const d=p??f;d&&d!==a.value&&(a.value=d,e())}),(f,p)=>(h.openBlock(),h.createElementBlock("div",Uc,[h.createVNode(zr,h.mergeProps(h.unref(m),{class:"full-width","model-value":n.value,mask:"##-##-####",dense:"",label:f.label,"data-cy":"datePick",rules:l.value,disable:f.disabled,required:f.required,outlined:f.outlined,placeholder:f.placeholder,"onUpdate:modelValue":s,onBlur:e}),{append:h.withCtx(()=>[h.createVNode(ct,{name:"event",class:"cursor-pointer","data-testid":"calendar-icon-picker"},{default:h.withCtx(()=>[h.createVNode(pa,{ref_key:"popupRef",ref:c,cover:"","transition-show":"scale","transition-hide":"scale","no-focus":""},{default:h.withCtx(()=>[h.createVNode(ws,{mask:"DD-MM-YYYY","model-value":a.value,options:r.value,disable:f.disabled,"onUpdate:modelValue":u},null,8,["model-value","options","disable"])]),_:1},512)]),_:1})]),_:1},16,["model-value","label","rules","disable","required","outlined","placeholder"])]))}}),Wc={class:"date-range-wrapper"},Hc={class:"date-range-flex"},Yc={key:0,class:"actions-group"},Qc={class:"date-range-popup"},Kc={key:0,class:"presets-section"},Xc={class:"presets-grid"},Gc={class:"presets-row"},Jc={class:"presets-row"},Zc={class:"calendar-container"},$c={class:"popup-actions"},ed={key:0,class:"hint"},td={class:"text-warning text-caption q-mb-none"},rd=h.defineComponent({__name:"DateRange",props:{allowSameDate:{type:Boolean,default:!0},from:{default:""},to:{default:""},labelStart:{default:"De"},labelEnd:{default:"À"},startDateHint:{default:""},resetLabel:{default:"Reinitialiser"},closeLabel:{default:"Fermer"},locale:{default:()=>ks},required:{type:Boolean,default:!1},requiredErrorMessage:{default:"Ce champ est obligatoire !"},invalidDateErrorMessage:{default:"Date invalide!"},rules:{default:()=>[]},minDate:{default:void 0},maxDate:{default:void 0},datesDisabled:{default:()=>[]},highlightEvents:{default:()=>[]},disabled:{type:Boolean,default:!1},idCy:{default:"dateRange"},isIconCalendar:{type:Boolean},resetPosition:{},hideActions:{type:Boolean,default:!1},hideShortcuts:{type:Boolean,default:!1},shortcuts:{default:()=>[{id:"currentMonth",label:"Mois courant"},{id:"previousMonth",label:"Mois précédent"},{id:"last3Months",label:"3 derniers mois"},{id:"currentYear",label:"Année courante"},{id:"previousYear",label:"Année précédente"}]}},emits:["update:dateRange","clear"],setup(i,{expose:M,emit:t}){const b=i,m=t,c=h.ref({from:b.from,to:b.to}),a=h.ref(null),o=h.computed(()=>`from-date-${b.idCy}`),n=h.computed(()=>`to-date-${b.idCy}`),e=h.ref(null),r=h.computed(()=>b.shortcuts.map(y=>({...y,getRange:Cs[y.id]}))),u=h.computed(()=>r.value.slice(0,3)),s=h.computed(()=>r.value.slice(3)),l=()=>{c.value=Jt.reset(),d.value=null,v.value=null,e.value=null,L(),m("clear")},f=()=>{a.value&&a.value.hide()},p=()=>{if(e.value=null,!(!c.value.from||!c.value.to))for(const y of r.value)try{const w=y.getRange(new Date);if(w.from===c.value.from&&w.to===c.value.to){e.value=y.id;break}}catch(w){console.error("Error checking preset:",w)}},d=h.ref(null),v=h.ref(null),g=()=>{c.value.from?d.value=Zt(c.value.from):d.value=null},k=()=>{c.value.to?v.value=Zt(c.value.to):v.value=null},C=h.computed(()=>y=>{const w=y.replaceAll("/","-");return ma(w,b.minDate,b.maxDate,b.datesDisabled)});let B=!1;const N=()=>{B=!0,c.value.from="",d.value=null,e.value=null,L(),setTimeout(()=>{B=!1},100)},q=()=>{B=!0,c.value.to="",v.value=null,e.value=null,L(),setTimeout(()=>{B=!1},100)},j=y=>{if(y===null||y===""){const w=c.value.from;c.value.from="",d.value=null,e.value=null,L(),!c.value.to&&w&&!c.value.from&&m("clear");return}Jt.handleInput(y,w=>{const x=c.value.from;if(w&&w.length===10){const S=Zt(w);if(d.value=S,S){c.value.from=w,L();return}}else d.value=null;c.value=Jt.validateAndUpdate(c.value,w,!0),p(),L(),!w&&!c.value.to&&x&&m("clear")})},P=y=>{if(y===null||y===""){const w=c.value.to;c.value.to="",v.value=null,e.value=null,L(),!c.value.from&&w&&!c.value.to&&m("clear");return}Jt.handleInput(y,w=>{const x=c.value.to;if(w&&w.length===10){const S=Zt(w);if(v.value=S,S){c.value.to=w,L();return}}else v.value=null;c.value=Jt.validateAndUpdate(c.value,w,!1),p(),L(),!w&&!c.value.from&&x&&m("clear")})},V=()=>{setTimeout(()=>{c.value.from&&c.value.from.length===10?d.value=Zt(c.value.from):d.value=null,c.value.to&&c.value.to.length===10?v.value=Zt(c.value.to):v.value=null,!b.allowSameDate&&c.value.from&&c.value.to&&c.value.from===c.value.to&&(c.value.to=""),p()},10)},z=y=>{const w=Jt.handlePickerUpdate(y);(w.from!==c.value.from||w.to!==c.value.to)&&(e.value=null),c.value=w,L(),p()},L=()=>{m("update:dateRange",{...c.value})},A=h.computed(()=>[...b.required?[y=>!!y||b.requiredErrorMessage]:[],...b.rules,y=>{if(y&&!an(y))return d.value||b.invalidDateErrorMessage||"Date invalide!";const w=c.value.to;if(!y||!w)return!0;const x=Jt.isEndDateValid(y,w,b.allowSameDate);return b.allowSameDate?x||"La date de début doit être avant ou égale à la date de fin":x||"La date de début doit être strictement avant la date de fin"}]),T=h.computed(()=>[...b.required?[y=>!!y||b.requiredErrorMessage]:[],...b.rules,y=>{if(y&&!an(y))return v.value||b.invalidDateErrorMessage||"Date invalide!";const w=c.value.from;if(!y||!w)return!0;const x=Jt.isEndDateValid(w,y,b.allowSameDate);return b.allowSameDate?x||"La date de fin doit être après ou égale à la date de début":x||"La date de fin doit être strictement après la date de début"}]);h.watch([()=>c.value.from,()=>c.value.to],([y,w],[x,S])=>{!y&&!w&&(x||S)&&!B&&(d.value=null,v.value=null,e.value=null,m("clear"))}),h.watch(()=>b.from,y=>{y!==c.value.from&&(c.value.from=y,g(),p())}),h.watch(()=>b.to,y=>{y!==c.value.to&&(c.value.to=y,k(),p())}),M({setDateRange:y=>{c.value={from:y.from,to:y.to},g(),k(),p(),L()},getCurrentRange:()=>({from:c.value.from,to:c.value.to}),resetDate:()=>{l()}});const _=y=>{try{const w=y.getRange(new Date);c.value={from:w.from,to:w.to},e.value=y.id,g(),k(),L()}catch(w){console.error("Error applying date preset:",w)}};return h.onMounted(()=>{g(),k(),p()}),(y,w)=>(h.openBlock(),h.createElementBlock("div",Wc,[h.createElementVNode("div",Hc,[h.createVNode(zr,h.mergeProps(y.$attrs,{"data-cy":o.value,"model-value":c.value.from,mask:"##-##-####",label:y.labelStart,rules:A.value,disable:y.disabled,required:y.required,"hide-bottom-space":"","onUpdate:modelValue":j,onClear:N,onBlur:g,class:"date-input",clearable:""}),null,16,["data-cy","model-value","label","rules","disable","required"]),h.createVNode(zr,h.mergeProps(y.$attrs,{"model-value":c.value.to,mask:"##-##-####",label:y.labelEnd,"hide-bottom-space":"","data-cy":n.value,rules:T.value,disable:y.disabled,required:y.required,"onUpdate:modelValue":P,onClear:q,onBlur:k,class:"date-input",clearable:""}),null,16,["model-value","label","data-cy","rules","disable","required"]),y.hideActions?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",Yc,[h.createVNode(ct,{name:"event",size:"30px",class:"cursor-pointer calendar-icon",style:{opacity:"0.55"},"data-cy":"calendar-icon-range"},{default:h.withCtx(()=>[h.createVNode(pa,{cover:"","transition-show":"scale","transition-hide":"scale",ref_key:"popupRef",ref:a,"no-focus":""},{default:h.withCtx(()=>[h.createElementVNode("div",Qc,[y.hideShortcuts?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",Kc,[w[0]||(w[0]=h.createElementVNode("div",{class:"presets-title"},"Périodes rapides :",-1)),h.createElementVNode("div",Xc,[h.createElementVNode("div",Gc,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(u.value,x=>(h.openBlock(),h.createBlock(at,{key:x.id,label:x.label,color:e.value===x.id?"primary":"grey-7",outline:e.value!==x.id,flat:"",dense:"",size:"sm",class:"preset-btn",onClick:S=>_(x),"data-cy":`date-preset-${x.id}`},null,8,["label","color","outline","onClick","data-cy"]))),128))]),h.createElementVNode("div",Jc,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(s.value,x=>(h.openBlock(),h.createBlock(at,{key:x.id,label:x.label,color:e.value===x.id?"primary":"grey-7",outline:e.value!==x.id,flat:"",dense:"",size:"sm",class:"preset-btn",onClick:S=>_(x),"data-cy":`date-preset-${x.id}`},null,8,["label","color","outline","onClick","data-cy"]))),128))])])])),h.createElementVNode("div",Zc,[h.createVNode(ws,{"model-value":c.value,mask:"DD-MM-YYYY","today-btn":"",range:"","data-cy":"date-picker-range",locale:y.locale,options:C.value,events:y.highlightEvents,"event-color":"warning",disable:y.disabled,"onUpdate:modelValue":z,onRangeEnd:V,"no-unset":""},null,8,["model-value","locale","options","events","disable"])]),h.createElementVNode("div",$c,[h.createVNode(at,{label:y.resetLabel,color:"grey-7",flat:"",dense:"",onClick:l,class:"q-mr-sm"},null,8,["label"]),h.createVNode(at,{label:y.closeLabel,color:"primary",flat:"",dense:"",onClick:f},null,8,["label"])])])]),_:1},512)]),_:1})]))]),y.startDateHint?(h.openBlock(),h.createElementBlock("div",ed,[h.createElementVNode("p",td,h.toDisplayString(y.startDateHint),1)])):h.createCommentVNode("",!0)]))}}),Ms=jt(rd,[["__scopeId","data-v-ba826f27"]]);var ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nd(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function En(i){throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ai={exports:{}};/*! ExcelJS 19-10-2023 */var uo;function id(){return uo||(uo=1,function(i,M){(function(t){i.exports=t()})(function(){return function t(b,m,c){function a(e,r){if(!m[e]){if(!b[e]){var u=typeof En=="function"&&En;if(!r&&u)return u(e,!0);if(o)return o(e,!0);var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}var l=m[e]={exports:{}};b[e][0].call(l.exports,function(f){return a(b[e][1][f]||f)},l,l.exports,t,b,m,c)}return m[e].exports}for(var o=typeof En=="function"&&En,n=0;n<c.length;n++)a(c[n]);return a}({1:[function(t,b,m){const c=t("fs"),a=t("fast-csv"),o=t("dayjs/plugin/customParseFormat"),n=t("dayjs/plugin/utc"),e=t("dayjs").extend(o).extend(n),r=t("../utils/stream-buf"),{fs:{exists:u}}=t("../utils/utils"),s={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};b.exports=class{constructor(l){this.workbook=l,this.worksheet=null}async readFile(l,f){if(f=f||{},!await u(l))throw new Error("File not found: "+l);const p=c.createReadStream(l),d=await this.read(p,f);return p.close(),d}read(l,f){return f=f||{},new Promise((p,d)=>{const v=this.workbook.addWorksheet(f.sheetName),g=f.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],k=f.map||function(B){if(B==="")return null;const N=Number(B);if(!Number.isNaN(N)&&N!==1/0)return N;const q=g.reduce((P,V)=>{if(P)return P;const z=e(B,V,!0);return z.isValid()?z:null},null);if(q)return new Date(q.valueOf());const j=s[B];return j!==void 0?j:B},C=a.parse(f.parserOptions).on("data",B=>{v.addRow(B.map(k))}).on("end",()=>{C.emit("worksheet",v)});C.on("worksheet",p).on("error",d),l.pipe(C)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(l,f){return new Promise((p,d)=>{f=f||{};const v=this.workbook.getWorksheet(f.sheetName||f.sheetId),g=a.format(f.formatterOptions);l.on("finish",()=>{p()}),g.on("error",d),g.pipe(l);const{dateFormat:k,dateUTC:C}=f,B=f.map||(j=>{if(j){if(j.text||j.hyperlink)return j.hyperlink||j.text||"";if(j.formula||j.result)return j.result||"";if(j instanceof Date)return k?C?e.utc(j).format(k):e(j).format(k):C?e.utc(j).format():e(j).format();if(j.error)return j.error;if(typeof j=="object")return JSON.stringify(j)}return j}),N=f.includeEmptyRows===void 0||f.includeEmptyRows;let q=1;v&&v.eachRow((j,P)=>{if(N)for(;q++<P-1;)g.write([]);const{values:V}=j;V.shift(),g.write(V.map(B)),q=P}),g.end()})}writeFile(l,f){const p={encoding:(f=f||{}).encoding||"utf8"},d=c.createWriteStream(l,p);return this.write(d,f)}async writeBuffer(l){const f=new r;return await this.write(f,l),f.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(t,b,m){const c=t("../utils/col-cache");class a{constructor(n,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=n,e)if(typeof e=="string"){const u=c.decodeAddress(e);this.nativeCol=u.col+r,this.nativeColOff=0,this.nativeRow=u.row+r,this.nativeRowOff=0}else e.nativeCol!==void 0?(this.nativeCol=e.nativeCol||0,this.nativeColOff=e.nativeColOff||0,this.nativeRow=e.nativeRow||0,this.nativeRowOff=e.nativeRowOff||0):e.col!==void 0?(this.col=e.col+r,this.row=e.row+r):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(n){return n instanceof a||n==null?n:new a(n)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(n){this.nativeCol=Math.floor(n),this.nativeColOff=Math.floor((n-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(n){this.nativeRow=Math.floor(n),this.nativeRowOff=Math.floor((n-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(n){this.nativeCol=n.nativeCol,this.nativeColOff=n.nativeColOff,this.nativeRow=n.nativeRow,this.nativeRowOff=n.nativeRowOff}}b.exports=a},{"../utils/col-cache":19}],3:[function(t,b,m){const c=t("../utils/col-cache"),a=t("../utils/under-dash"),o=t("./enums"),{slideFormula:n}=t("../utils/shared-formula"),e=t("./note");class r{constructor(l,f,p){if(!l||!f)throw new Error("A Cell needs a Row");this._row=l,this._column=f,c.validateAddress(p),this._address=p,this._value=u.create(r.Types.Null,this),this.style=this._mergeStyle(l.style,f.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(l){this.style.numFmt=l}get font(){return this.style.font}set font(l){this.style.font=l}get alignment(){return this.style.alignment}set alignment(l){this.style.alignment=l}get border(){return this.style.border}set border(l){this.style.border=l}get fill(){return this.style.fill}set fill(l){this.style.fill=l}get protection(){return this.style.protection}set protection(l){this.style.protection=l}_mergeStyle(l,f,p){const d=l&&l.numFmt||f&&f.numFmt;d&&(p.numFmt=d);const v=l&&l.font||f&&f.font;v&&(p.font=v);const g=l&&l.alignment||f&&f.alignment;g&&(p.alignment=g);const k=l&&l.border||f&&f.border;k&&(p.border=k);const C=l&&l.fill||f&&f.fill;C&&(p.fill=C);const B=l&&l.protection||f&&f.protection;return B&&(p.protection=B),p}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===r.Types.Merge}merge(l,f){this._value.release(),this._value=u.create(r.Types.Merge,this,l),f||(this.style=l.style)}unmerge(){this.type===r.Types.Merge&&(this._value.release(),this._value=u.create(r.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(l){return this._value.type===r.Types.Merge&&this._value.isMergedTo(l)}get master(){return this.type===r.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===r.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(l){this.type!==r.Types.Merge?(this._value.release(),this._value=u.create(u.getType(l),this,l)):this._value.master.value=l}get note(){return this._comment&&this._comment.note}set note(l){this._comment=new e(l)}get text(){return this._value.toString()}get html(){return a.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(l){this.type===r.Types.String&&(this._value=u.create(r.Types.Hyperlink,this,{text:this._value.value,hyperlink:l}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:l}=this._row;return{sheetName:l.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(l){this.names=[l]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(l){const{definedNames:f}=this.workbook;f.removeAllNames(this.fullAddress),l.forEach(p=>{f.addEx(this.fullAddress,p)})}addName(l){this.workbook.definedNames.addEx(this.fullAddress,l)}removeName(l){this.workbook.definedNames.removeEx(this.fullAddress,l)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(l){this._dataValidations.add(this.address,l)}get model(){const{model:l}=this._value;return l.style=this.style,this._comment&&(l.comment=this._comment.model),l}set model(l){if(this._value.release(),this._value=u.create(l.type,this),this._value.model=l,l.comment)switch(l.comment.type){case"note":this._comment=e.fromModel(l.comment)}l.style?this.style=l.style:this.style={}}}r.Types=o.ValueType;const u={getType:s=>s==null?r.Types.Null:s instanceof String||typeof s=="string"?r.Types.String:typeof s=="number"?r.Types.Number:typeof s=="boolean"?r.Types.Boolean:s instanceof Date?r.Types.Date:s.text&&s.hyperlink?r.Types.Hyperlink:s.formula||s.sharedFormula?r.Types.Formula:s.richText?r.Types.RichText:s.sharedString?r.Types.SharedString:s.error?r.Types.Error:r.Types.JSON,types:[{t:r.Types.Null,f:class{constructor(s){this.model={address:s.address,type:r.Types.Null}}get value(){return null}set value(s){}get type(){return r.Types.Null}get effectiveType(){return r.Types.Null}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return""}release(){}toString(){return""}}},{t:r.Types.Number,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.Number,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Number}get effectiveType(){return r.Types.Number}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.String,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.String,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:r.Types.Date,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.Date,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Date}get effectiveType(){return r.Types.Date}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Hyperlink,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.Hyperlink,text:l?l.text:void 0,hyperlink:l?l.hyperlink:void 0},l&&l.tooltip&&(this.model.tooltip=l.tooltip)}get value(){const s={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(s.tooltip=this.model.tooltip),s}set value(s){this.model={text:s.text,hyperlink:s.hyperlink},s.tooltip&&(this.model.tooltip=s.tooltip)}get text(){return this.model.text}set text(s){this.model.text=s}get hyperlink(){return this.model.hyperlink}set hyperlink(s){this.model.hyperlink=s}get type(){return r.Types.Hyperlink}get effectiveType(){return r.Types.Hyperlink}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:r.Types.Formula,f:class{constructor(s,l){this.cell=s,this.model={address:s.address,type:r.Types.Formula,shareType:l?l.shareType:void 0,ref:l?l.ref:void 0,formula:l?l.formula:void 0,sharedFormula:l?l.sharedFormula:void 0,result:l?l.result:void 0}}_copyModel(s){const l={},f=p=>{const d=s[p];d&&(l[p]=d)};return f("formula"),f("result"),f("ref"),f("shareType"),f("sharedFormula"),l}get value(){return this._copyModel(this.model)}set value(s){this.model=this._copyModel(s)}validate(s){switch(u.getType(s)){case r.Types.Null:case r.Types.String:case r.Types.Number:case r.Types.Date:break;case r.Types.Hyperlink:case r.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(s){this.model.formula=s}get formulaType(){return this.model.formula?o.FormulaType.Master:this.model.sharedFormula?o.FormulaType.Shared:o.FormulaType.None}get result(){return this.model.result}set result(s){this.model.result=s}get type(){return r.Types.Formula}get effectiveType(){const s=this.model.result;return s==null?o.ValueType.Null:s instanceof String||typeof s=="string"?o.ValueType.String:typeof s=="number"?o.ValueType.Number:s instanceof Date?o.ValueType.Date:s.text&&s.hyperlink?o.ValueType.Hyperlink:s.formula?o.ValueType.Formula:o.ValueType.Null}get address(){return this.model.address}set address(s){this.model.address=s}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:s}=this.cell,l=s.findCell(this.model.sharedFormula);this._translatedFormula=l&&n(l.formula,l.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:r.Types.Merge,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.Merge,master:l?l.address:void 0},this._master=l,l&&l.addMergeRef()}get value(){return this._master.value}set value(s){s instanceof r?(this._master&&this._master.releaseMergeRef(),s.addMergeRef(),this._master=s):this._master.value=s}isMergedTo(s){return s===this._master}get master(){return this._master}get type(){return r.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:r.Types.JSON,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.String,value:JSON.stringify(l),rawValue:l}}get value(){return this.model.rawValue}set value(s){this.model.rawValue=s,this.model.value=JSON.stringify(s)}get type(){return r.Types.String}get effectiveType(){return r.Types.String}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:r.Types.SharedString,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.SharedString,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.SharedString}get effectiveType(){return r.Types.SharedString}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.RichText,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.String,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}toString(){return this.model.value.richText.map(s=>s.text).join("")}get type(){return r.Types.RichText}get effectiveType(){return r.Types.RichText}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:r.Types.Boolean,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.Boolean,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Boolean}get effectiveType(){return r.Types.Boolean}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:r.Types.Error,f:class{constructor(s,l){this.model={address:s.address,type:r.Types.Error,value:l}}get value(){return this.model.value}set value(s){this.model.value=s}get type(){return r.Types.Error}get effectiveType(){return r.Types.Error}get address(){return this.model.address}set address(s){this.model.address=s}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((s,l)=>(s[l.t]=l.f,s),[]),create(s,l,f){const p=this.types[s];if(!p)throw new Error("Could not create Value of type "+s);return new p(l,f)}};b.exports=r},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,b,m){const c=t("../utils/under-dash"),a=t("./enums"),o=t("../utils/col-cache");class n{constructor(r,u,s){this._worksheet=r,this._number=u,s!==!1&&(this.defn=s)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return o.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(r){r?(this.key=r.key,this.width=r.width!==void 0?r.width:9,this.outlineLevel=r.outlineLevel,r.style?this.style=r.style:this.style={},this.header=r.header,this._hidden=!!r.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(r){r!==void 0?(this._header=r,this.headers.forEach((u,s)=>{this._worksheet.getCell(s+1,this.number).value=u})):this._header=void 0}get key(){return this._key}set key(r){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=r,r&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(r){this._hidden=r}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(r){this._outlineLevel=r}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(r){return this.width===r.width&&this.hidden===r.hidden&&this.outlineLevel===r.outlineLevel&&c.isEqual(this.style,r.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const r=this.style;return!r||!(r.font||r.numFmt||r.alignment||r.border||r.fill||r.protection)}get headerCount(){return this.headers.length}eachCell(r,u){const s=this.number;u||(u=r,r=null),this._worksheet.eachRow(r,(l,f)=>{u(l.getCell(s),f)})}get values(){const r=[];return this.eachCell((u,s)=>{u&&u.type!==a.ValueType.Null&&(r[s]=u.value)}),r}set values(r){if(!r)return;const u=this.number;let s=0;r.hasOwnProperty("0")&&(s=1),r.forEach((l,f)=>{this._worksheet.getCell(f+s,u).value=l})}_applyStyle(r,u){return this.style[r]=u,this.eachCell(s=>{s[r]=u}),u}get numFmt(){return this.style.numFmt}set numFmt(r){this._applyStyle("numFmt",r)}get font(){return this.style.font}set font(r){this._applyStyle("font",r)}get alignment(){return this.style.alignment}set alignment(r){this._applyStyle("alignment",r)}get protection(){return this.style.protection}set protection(r){this._applyStyle("protection",r)}get border(){return this.style.border}set border(r){this._applyStyle("border",r)}get fill(){return this.style.fill}set fill(r){this._applyStyle("fill",r)}static toModel(r){const u=[];let s=null;return r&&r.forEach((l,f)=>{l.isDefault?s&&(s=null):s&&l.equivalentTo(s)?s.max=f+1:(s={min:f+1,max:f+1,width:l.width!==void 0?l.width:9,style:l.style,isCustomWidth:l.isCustomWidth,hidden:l.hidden,outlineLevel:l.outlineLevel,collapsed:l.collapsed},u.push(s))}),u.length?u:void 0}static fromModel(r,u){const s=[];let l=1,f=0;for(u=(u=u||[]).sort(function(p,d){return p.min-d.min});f<u.length;){const p=u[f++];for(;l<p.min;)s.push(new n(r,l++));for(;l<=p.max;)s.push(new n(r,l++,p))}return s.length?s:null}}b.exports=n},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,b,m){b.exports=class{constructor(c){this.model=c||{}}add(c,a){return this.model[c]=a}find(c){return this.model[c]}remove(c){this.model[c]=void 0}}},{}],6:[function(t,b,m){const c=t("../utils/under-dash"),a=t("../utils/col-cache"),o=t("../utils/cell-matrix"),n=t("./range"),e=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;b.exports=class{constructor(){this.matrixMap={}}getMatrix(r){return this.matrixMap[r]||(this.matrixMap[r]=new o)}add(r,u){const s=a.decodeEx(r);this.addEx(s,u)}addEx(r,u){const s=this.getMatrix(u);if(r.top)for(let l=r.left;l<=r.right;l++)for(let f=r.top;f<=r.bottom;f++){const p={sheetName:r.sheetName,address:a.n2l(l)+f,row:f,col:l};s.addCellEx(p)}else s.addCellEx(r)}remove(r,u){const s=a.decodeEx(r);this.removeEx(s,u)}removeEx(r,u){this.getMatrix(u).removeCellEx(r)}removeAllNames(r){c.each(this.matrixMap,u=>{u.removeCellEx(r)})}forEach(r){c.each(this.matrixMap,(u,s)=>{u.forEach(l=>{r(s,l)})})}getNames(r){return this.getNamesEx(a.decodeEx(r))}getNamesEx(r){return c.map(this.matrixMap,(u,s)=>u.findCellEx(r)&&s).filter(Boolean)}_explore(r,u){u.mark=!1;const{sheetName:s}=u,l=new n(u.row,u.col,u.row,u.col,s);let f,p;function d(g,k){const C=r.findCellAt(s,g,u.col);return!(!C||!C.mark)&&(l[k]=g,C.mark=!1,!0)}for(p=u.row-1;d(p,"top");p--);for(p=u.row+1;d(p,"bottom");p++);function v(g,k){const C=[];for(p=l.top;p<=l.bottom;p++){const B=r.findCellAt(s,p,g);if(!B||!B.mark)return!1;C.push(B)}l[k]=g;for(let B=0;B<C.length;B++)C[B].mark=!1;return!0}for(f=u.col-1;v(f,"left");f--);for(f=u.col+1;v(f,"right");f++);return l}getRanges(r,u){return(u=u||this.matrixMap[r])?(u.forEach(s=>{s.mark=!0}),{name:r,ranges:u.map(s=>s.mark&&this._explore(u,s)).filter(Boolean).map(s=>s.$shortRange)}):{name:r,ranges:[]}}normaliseMatrix(r,u){r.forEachInSheet(u,(s,l,f)=>{s&&(s.row===l&&s.col===f||(s.row=l,s.col=f,s.address=a.n2l(f)+l))})}spliceRows(r,u,s,l){c.each(this.matrixMap,f=>{f.spliceRows(r,u,s,l),this.normaliseMatrix(f,r)})}spliceColumns(r,u,s,l){c.each(this.matrixMap,f=>{f.spliceColumns(r,u,s,l),this.normaliseMatrix(f,r)})}get model(){return c.map(this.matrixMap,(r,u)=>this.getRanges(u,r)).filter(r=>r.ranges.length)}set model(r){const u=this.matrixMap={};r.forEach(s=>{const l=u[s.name]=new o;s.ranges.forEach(f=>{e.test(f.split("!").pop()||"")&&l.addCell(f)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,b,m){b.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(t,b,m){const c=t("../utils/col-cache"),a=t("./anchor");b.exports=class{constructor(o,n){this.worksheet=o,this.model=n}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(o){let{type:n,imageId:e,range:r,hyperlinks:u}=o;if(this.type=n,this.imageId=e,n==="image")if(typeof r=="string"){const s=c.decode(r);this.range={tl:new a(this.worksheet,{col:s.left,row:s.top},-1),br:new a(this.worksheet,{col:s.right,row:s.bottom},0),editAs:"oneCell"}}else this.range={tl:new a(this.worksheet,r.tl,0),br:r.br&&new a(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:u||r.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,b,m){const c=t("../utils/under-dash");class a{constructor(n){this.note=n}get model(){let n=null;switch(typeof this.note){case"string":n={type:"note",note:{texts:[{text:this.note}]}};break;default:n={type:"note",note:this.note}}return c.deepMerge({},a.DEFAULT_CONFIGS,n)}set model(n){const{note:e}=n,{texts:r}=e;r.length===1&&Object.keys(r[0]).length===1?this.note=r[0].text:this.note=e}static fromModel(n){const e=new a;return e.model=n,e}}a.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},b.exports=a},{"../utils/under-dash":26}],10:[function(t,b,m){const c=t("../utils/col-cache");class a{constructor(){this.decode(arguments)}setTLBR(n,e,r,u,s){if(arguments.length<4){const l=c.decodeAddress(n),f=c.decodeAddress(e);this.model={top:Math.min(l.row,f.row),left:Math.min(l.col,f.col),bottom:Math.max(l.row,f.row),right:Math.max(l.col,f.col),sheetName:r},this.setTLBR(l.row,l.col,f.row,f.col,s)}else this.model={top:Math.min(n,r),left:Math.min(e,u),bottom:Math.max(n,r),right:Math.max(e,u),sheetName:s}}decode(n){switch(n.length){case 5:this.setTLBR(n[0],n[1],n[2],n[3],n[4]);break;case 4:this.setTLBR(n[0],n[1],n[2],n[3]);break;case 3:this.setTLBR(n[0],n[1],n[2]);break;case 2:this.setTLBR(n[0],n[1]);break;case 1:{const e=n[0];if(e instanceof a)this.model={top:e.model.top,left:e.model.left,bottom:e.model.bottom,right:e.model.right,sheetName:e.sheetName};else if(e instanceof Array)this.decode(e);else if(e.top&&e.left&&e.bottom&&e.right)this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName};else{const r=c.decodeEx(e);r.top?this.model={top:r.top,left:r.left,bottom:r.bottom,right:r.right,sheetName:r.sheetName}:this.model={top:r.row,left:r.col,bottom:r.row,right:r.col,sheetName:r.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+n.length)}}get top(){return this.model.top||1}set top(n){this.model.top=n}get left(){return this.model.left||1}set left(n){this.model.left=n}get bottom(){return this.model.bottom||1}set bottom(n){this.model.bottom=n}get right(){return this.model.right||1}set right(n){this.model.right=n}get sheetName(){return this.model.sheetName}set sheetName(n){this.model.sheetName=n}get _serialisedSheetName(){const{sheetName:n}=this.model;return n?/^[a-zA-Z0-9]*$/.test(n)?n+"!":`'${n}'!`:""}expand(n,e,r,u){(!this.model.top||n<this.top)&&(this.top=n),(!this.model.left||e<this.left)&&(this.left=e),(!this.model.bottom||r>this.bottom)&&(this.bottom=r),(!this.model.right||u>this.right)&&(this.right=u)}expandRow(n){if(n){const{dimensions:e,number:r}=n;e&&this.expand(r,e.min,r,e.max)}}expandToAddress(n){const e=c.decodeEx(n);this.expand(e.row,e.col,e.row,e.col)}get tl(){return c.n2l(this.left)+this.top}get $t$l(){return`$${c.n2l(this.left)}$${this.top}`}get br(){return c.n2l(this.right)+this.bottom}get $b$r(){return`$${c.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&!(n.bottom<this.top)&&!(n.top>this.bottom)&&!(n.right<this.left)&&!(n.left>this.right)}contains(n){const e=c.decodeEx(n);return this.containsEx(e)}containsEx(n){return(!n.sheetName||!this.sheetName||n.sheetName===this.sheetName)&&n.row>=this.top&&n.row<=this.bottom&&n.col>=this.left&&n.col<=this.right}forEachAddress(n){for(let e=this.left;e<=this.right;e++)for(let r=this.top;r<=this.bottom;r++)n(c.encodeAddress(r,e),r,e)}}b.exports=a},{"../utils/col-cache":19}],11:[function(t,b,m){const c=t("../utils/under-dash"),a=t("./enums"),o=t("../utils/col-cache"),n=t("./cell");b.exports=class{constructor(e,r){this._worksheet=e,this._number=r,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let r=this._cells[e.col-1];if(!r){const u=this._worksheet.getColumn(e.col);r=new n(this,u,e.address),this._cells[e.col-1]=r}return r}getCell(e){if(typeof e=="string"){const r=this._worksheet.getColumnKey(e);e=r?r.number:o.l2n(e)}return this._cells[e-1]||this.getCellEx({address:o.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,r){const u=e+r;for(var s=arguments.length,l=new Array(s>2?s-2:0),f=2;f<s;f++)l[f-2]=arguments[f];const p=l.length-r,d=this._cells.length;let v,g,k;if(p<0)for(v=e+l.length;v<=d;v++)k=this._cells[v-1],g=this._cells[v-p-1],g?(k=this.getCell(v),k.value=g.value,k.style=g.style,k._comment=g._comment):k&&(k.value=null,k.style={},k._comment=void 0);else if(p>0)for(v=d;v>=u;v--)g=this._cells[v-1],g?(k=this.getCell(v+p),k.value=g.value,k.style=g.style,k._comment=g._comment):this._cells[v+p-1]=void 0;for(v=0;v<l.length;v++)k=this.getCell(e+v),k.value=l[v],k.style={},k._comment=void 0}eachCell(e,r){if(r||(r=e,e=null),e&&e.includeEmpty){const u=this._cells.length;for(let s=1;s<=u;s++)r(this.getCell(s),s)}else this._cells.forEach((u,s)=>{u&&u.type!==a.ValueType.Null&&r(u,s+1)})}addPageBreak(e,r){const u=this._worksheet,s=Math.max(0,e-1)||0,l=Math.max(0,r-1)||16838,f={id:this._number,max:l,man:1};s&&(f.min=s),u.rowBreaks.push(f)}get values(){const e=[];return this._cells.forEach(r=>{r&&r.type!==a.ValueType.Null&&(e[r.col]=r.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let r=0;e.hasOwnProperty("0")&&(r=1),e.forEach((u,s)=>{u!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,s+r),row:this._number,col:s+r}).value=u)})}else this._worksheet.eachColumnKey((r,u)=>{e[u]!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,r.number),row:this._number,col:r.number}).value=e[u])})}get hasValues(){return c.some(this._cells,e=>e&&e.type!==a.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,r=0;return this._cells.forEach(u=>{u&&u.type!==a.ValueType.Null&&((!e||e>u.col)&&(e=u.col),r<u.col&&(r=u.col))}),e>0?{min:e,max:r}:null}_applyStyle(e,r){return this.style[e]=r,this._cells.forEach(u=>{u&&(u[e]=r)}),r}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let r=0,u=0;return this._cells.forEach(s=>{if(s){const l=s.model;l&&((!r||r>s.col)&&(r=s.col),u<s.col&&(u=s.col),e.push(l))}}),this.height||e.length?{cells:e,number:this.number,min:r,max:u,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let r;this._cells=[],e.cells.forEach(u=>{switch(u.type){case n.Types.Merge:break;default:{let s;if(u.address)s=o.decodeAddress(u.address);else if(r){const{row:l}=r,f=r.col+1;s={row:l,col:f,address:o.encodeAddress(l,f),$col$row:`$${o.n2l(f)}$${l}`}}r=s,this.getCellEx(s).model=u;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(t,b,m){const c=t("../utils/col-cache");class a{constructor(n,e,r){this.table=n,this.column=e,this.index=r}_set(n,e){this.table.cacheState(),this.column[n]=e}get name(){return this.column.name}set name(n){this._set("name",n)}get filterButton(){return this.column.filterButton}set filterButton(n){this.column.filterButton=n}get style(){return this.column.style}set style(n){this.column.style=n}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(n){this._set("totalsRowLabel",n)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(n){this._set("totalsRowFunction",n)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(n){this._set("totalsRowResult",n)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(n){this._set("totalsRowFormula",n)}}b.exports=class{constructor(o,n){this.worksheet=o,n&&(this.table=n,this.validate(),this.store())}getFormula(o){switch(o.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${o.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${o.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${o.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${o.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${o.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${o.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${o.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${o.name}])`;case"custom":return o.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+o.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:o}=this,n=(p,d,v)=>{p[d]===void 0&&(p[d]=v)};n(o,"headerRow",!0),n(o,"totalsRow",!1),n(o,"style",{}),n(o.style,"theme","TableStyleMedium2"),n(o.style,"showFirstColumn",!1),n(o.style,"showLastColumn",!1),n(o.style,"showRowStripes",!1),n(o.style,"showColumnStripes",!1);const e=(p,d)=>{if(!p)throw new Error(d)};e(o.ref,"Table must have ref"),e(o.columns,"Table must have column definitions"),e(o.rows,"Table must have row definitions"),o.tl=c.decodeAddress(o.ref);const{row:r,col:u}=o.tl;e(r>0,"Table must be on valid row"),e(u>0,"Table must be on valid col");const{width:s,filterHeight:l,tableHeight:f}=this;o.autoFilterRef=c.encode(r,u,r+l-1,u+s-1),o.tableRef=c.encode(r,u,r+f-1,u+s-1),o.columns.forEach((p,d)=>{e(p.name,`Column ${d} must have a name`),d===0?n(p,"totalsRowLabel","Total"):(n(p,"totalsRowFunction","none"),p.totalsRowFormula=this.getFormula(p))})}store(){const o=(l,f)=>{f&&Object.keys(f).forEach(p=>{l[p]=f[p]})},{worksheet:n,table:e}=this,{row:r,col:u}=e.tl;let s=0;if(e.headerRow){const l=n.getRow(r+s++);e.columns.forEach((f,p)=>{const{style:d,name:v}=f,g=l.getCell(u+p);g.value=v,o(g,d)})}if(e.rows.forEach(l=>{const f=n.getRow(r+s++);l.forEach((p,d)=>{const v=f.getCell(u+d);v.value=p,o(v,e.columns[d].style)})}),e.totalsRow){const l=n.getRow(r+s++);e.columns.forEach((f,p)=>{const d=l.getCell(u+p);if(p===0)d.value=f.totalsRowLabel;else{const v=this.getFormula(f);d.value=v?{formula:f.totalsRowFormula,result:f.totalsRowResult}:null}o(d,f.style)})}}load(o){const{table:n}=this,{row:e,col:r}=n.tl;let u=0;if(n.headerRow){const s=o.getRow(e+u++);n.columns.forEach((l,f)=>{s.getCell(r+f).value=l.name})}if(n.rows.forEach(s=>{const l=o.getRow(e+u++);s.forEach((f,p)=>{l.getCell(r+p).value=f})}),n.totalsRow){const s=o.getRow(e+u++);n.columns.forEach((l,f)=>{const p=s.getCell(r+f);f===0?p.value=l.totalsRowLabel:this.getFormula(l)&&(p.value={formula:l.totalsRowFormula,result:l.totalsRowResult})})}}get model(){return this.table}set model(o){this.table=o}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const o=c.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let n=0;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(o.col+r).value=null}else{for(let n=this.tableHeight;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(o.col+r).value=null}for(let n=0;n<this.tableHeight;n++){const e=this.worksheet.getRow(o.row+n);for(let r=this.width;r<this._cache.width;r++)e.getCell(o.col+r).value=null}}this.store()}addRow(o,n){this.cacheState(),n===void 0?this.table.rows.push(o):this.table.rows.splice(n,0,o)}removeRows(o){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(o,n)}getColumn(o){const n=this.table.columns[o];return new a(this,n,o)}addColumn(o,n,e){this.cacheState(),e===void 0?(this.table.columns.push(o),this.table.rows.forEach((r,u)=>{r.push(n[u])})):(this.table.columns.splice(e,0,o),this.table.rows.forEach((r,u)=>{r.splice(e,0,n[u])}))}removeColumns(o){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(o,n),this.table.rows.forEach(e=>{e.splice(o,n)})}_assign(o,n,e){this.cacheState(),o[n]=e}get ref(){return this.table.ref}set ref(o){this._assign(this.table,"ref",o)}get name(){return this.table.name}set name(o){this.table.name=o}get displayName(){return this.table.displyName||this.table.name}set displayNamename(o){this.table.displayName=o}get headerRow(){return this.table.headerRow}set headerRow(o){this._assign(this.table,"headerRow",o)}get totalsRow(){return this.table.totalsRow}set totalsRow(o){this._assign(this.table,"totalsRow",o)}get theme(){return this.table.style.name}set theme(o){this.table.style.name=o}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(o){this.table.style.showFirstColumn=o}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(o){this.table.style.showLastColumn=o}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(o){this.table.style.showRowStripes=o}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(o){this.table.style.showColumnStripes=o}}},{"../utils/col-cache":19}],13:[function(t,b,m){const c=t("./worksheet"),a=t("./defined-names"),o=t("../xlsx/xlsx"),n=t("../csv/csv");b.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new a}get xlsx(){return this._xlsx||(this._xlsx=new o(this)),this._xlsx}get csv(){return this._csv||(this._csv=new n(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,r){const u=this.nextId;r&&(typeof r=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),r={properties:{tabColor:{argb:r}}}):(r.argb||r.theme||r.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),r={properties:{tabColor:r}}));const s=this._worksheets.reduce((p,d)=>(d&&d.orderNo)>p?d.orderNo:p,0),l=Object.assign({},r,{id:u,name:e,orderNo:s+1,workbook:this}),f=new c(l);return this._worksheets[u]=f,f}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const r=this.getWorksheet(e);r&&r.destroy()}getWorksheet(e){return e===void 0?this._worksheets.find(Boolean):typeof e=="number"?this._worksheets[e]:typeof e=="string"?this._worksheets.find(r=>r&&r.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,r)=>e.orderNo-r.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(r=>{e(r,r.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const r=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),r}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(e=>e.model),sheets:this.worksheets.map(e=>e.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(r=>{const{id:u,name:s,state:l}=r,f=e.sheets&&e.sheets.findIndex(p=>p.id===u);(this._worksheets[u]=new c({id:u,name:s,orderNo:f,state:l,workbook:this})).model=r}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(t,b,m){const c=t("../utils/under-dash"),a=t("../utils/col-cache"),o=t("./range"),n=t("./row"),e=t("./column"),r=t("./enums"),u=t("./image"),s=t("./table"),l=t("./data-validations"),f=t("../utils/encryptor"),{copyStyle:p}=t("../utils/copy-style");b.exports=class{constructor(d){d=d||{},this._workbook=d.workbook,this.id=d.id,this.orderNo=d.orderNo,this.name=d.name,this.state=d.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},d.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!d.pageSetup||!d.pageSetup.fitToWidth&&!d.pageSetup.fitToHeight||d.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},d.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},d.headerFooter),this.dataValidations=new l,this.views=d.views||[],this.autoFilter=d.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(d){if(d===void 0&&(d="sheet"+this.id),this._name!==d){if(typeof d!="string")throw new Error("The name has to be a string.");if(d==="")throw new Error("The name can't be empty.");if(d==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(d))throw new Error(`Worksheet name ${d} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(d))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+d);if(d&&d.length>31&&(console.warn(`Worksheet name ${d} exceeds 31 chars. This will be truncated`),d=d.substring(0,31)),this._workbook._worksheets.find(v=>v&&v.name.toLowerCase()===d.toLowerCase()))throw new Error("Worksheet name already exists: "+d);this._name=d}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const d=new o;return this._rows.forEach(v=>{if(v){const g=v.dimensions;g&&d.expand(v.number,g.min,v.number,g.max)}}),d}get columns(){return this._columns}set columns(d){this._headerRowCount=d.reduce((k,C)=>{const B=(C.header?1:C.headers&&C.headers.length)||0;return Math.max(k,B)},0);let v=1;const g=this._columns=[];d.forEach(k=>{const C=new e(this,v++,!1);g.push(C),C.defn=k})}getColumnKey(d){return this._keys[d]}setColumnKey(d,v){this._keys[d]=v}deleteColumnKey(d){delete this._keys[d]}eachColumnKey(d){c.each(this._keys,d)}getColumn(d){if(typeof d=="string"){const v=this._keys[d];if(v)return v;d=a.l2n(d)}if(this._columns||(this._columns=[]),d>this._columns.length){let v=this._columns.length+1;for(;v<=d;)this._columns.push(new e(this,v++))}return this._columns[d-1]}spliceColumns(d,v){const g=this._rows.length;for(var k=arguments.length,C=new Array(k>2?k-2:0),B=2;B<k;B++)C[B-2]=arguments[B];if(C.length>0)for(let P=0;P<g;P++){const V=[d,v];C.forEach(L=>{V.push(L[P]||null)});const z=this.getRow(P+1);z.splice.apply(z,V)}else this._rows.forEach(P=>{P&&P.splice(d,v)});const N=C.length-v,q=d+v,j=this._columns.length;if(N<0)for(let P=d+C.length;P<=j;P++)this.getColumn(P).defn=this.getColumn(P-N).defn;else if(N>0)for(let P=j;P>=q;P--)this.getColumn(P+N).defn=this.getColumn(P).defn;for(let P=d;P<d+C.length;P++)this.getColumn(P).defn=null;this.workbook.definedNames.spliceColumns(this.name,d,v,C.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let d=0;return this.eachRow(v=>{d=Math.max(d,v.cellCount)}),d}get actualColumnCount(){const d=[];let v=0;return this.eachRow(g=>{g.eachCell(k=>{let{col:C}=k;d[C]||(d[C]=!0,v++)})}),v}_commitRow(){}get _lastRowNumber(){const d=this._rows;let v=d.length;for(;v>0&&d[v-1]===void 0;)v--;return v}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(d){return this._rows[d-1]}findRows(d,v){return this._rows.slice(d-1,d-1+v)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let d=0;return this.eachRow(()=>{d++}),d}getRow(d){let v=this._rows[d-1];return v||(v=this._rows[d-1]=new n(this,d)),v}getRows(d,v){if(v<1)return;const g=[];for(let k=d;k<d+v;k++)g.push(this.getRow(k));return g}addRow(d){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const g=this._nextRow,k=this.getRow(g);return k.values=d,this._setStyleOption(g,v[0]==="i"?v:"n"),k}addRows(d){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const g=[];return d.forEach(k=>{g.push(this.addRow(k,v))}),g}insertRow(d,v){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(d,0,v),this._setStyleOption(d,g),this.getRow(d)}insertRows(d,v){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(d,0,...v),g!=="n")for(let k=0;k<v.length;k++)g[0]==="o"&&this.findRow(v.length+d+k)!==void 0?this._copyStyle(v.length+d+k,d+k,g[1]==="+"):g[0]==="i"&&this.findRow(d-1)!==void 0&&this._copyStyle(d-1,d+k,g[1]==="+");return this.getRows(d,v.length)}_setStyleOption(d){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";v[0]==="o"&&this.findRow(d+1)!==void 0?this._copyStyle(d+1,d,v[1]==="+"):v[0]==="i"&&this.findRow(d-1)!==void 0&&this._copyStyle(d-1,d,v[1]==="+")}_copyStyle(d,v){let g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const k=this.getRow(d),C=this.getRow(v);C.style=p(k.style),k.eachCell({includeEmpty:g},(B,N)=>{C.getCell(N).style=p(B.style)}),C.height=k.height}duplicateRow(d,v){let g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const k=this._rows[d-1],C=new Array(v).fill(k.values);this.spliceRows(d+1,g?0:v,...C);for(let B=0;B<v;B++){const N=this._rows[d+B];N.style=k.style,N.height=k.height,k.eachCell({includeEmpty:!0},(q,j)=>{N.getCell(j).style=q.style})}}spliceRows(d,v){const g=d+v;for(var k=arguments.length,C=new Array(k>2?k-2:0),B=2;B<k;B++)C[B-2]=arguments[B];const N=C.length,q=N-v,j=this._rows.length;let P,V;if(q<0)for(d===j&&(this._rows[j-1]=void 0),P=g;P<=j;P++)if(V=this._rows[P-1],V){const z=this.getRow(P+q);z.values=V.values,z.style=V.style,z.height=V.height,V.eachCell({includeEmpty:!0},(L,A)=>{z.getCell(A).style=L.style}),this._rows[P-1]=void 0}else this._rows[P+q-1]=void 0;else if(q>0)for(P=j;P>=g;P--)if(V=this._rows[P-1],V){const z=this.getRow(P+q);z.values=V.values,z.style=V.style,z.height=V.height,V.eachCell({includeEmpty:!0},(L,A)=>{if(z.getCell(A).style=L.style,L._value.constructor.name==="MergeValue"){const T=this.getRow(L._row._number+N).getCell(A),_=L._value._master,y=this.getRow(_._row._number+N).getCell(_._column._number);T.merge(y)}})}else this._rows[P+q-1]=void 0;for(P=0;P<N;P++){const z=this.getRow(d+P);z.style={},z.values=C[P]}this.workbook.definedNames.spliceRows(this.name,d,v,N)}eachRow(d,v){if(v||(v=d,d=void 0),d&&d.includeEmpty){const g=this._rows.length;for(let k=1;k<=g;k++)v(this.getRow(k),k)}else this._rows.forEach(g=>{g&&g.hasValues&&v(g,g.number)})}getSheetValues(){const d=[];return this._rows.forEach(v=>{v&&(d[v.number]=v.values)}),d}findCell(d,v){const g=a.getAddress(d,v),k=this._rows[g.row-1];return k?k.findCell(g.col):void 0}getCell(d,v){const g=a.getAddress(d,v);return this.getRow(g.row).getCellEx(g)}mergeCells(){for(var d=arguments.length,v=new Array(d),g=0;g<d;g++)v[g]=arguments[g];const k=new o(v);this._mergeCellsInternal(k)}mergeCellsWithoutStyle(){for(var d=arguments.length,v=new Array(d),g=0;g<d;g++)v[g]=arguments[g];const k=new o(v);this._mergeCellsInternal(k,!0)}_mergeCellsInternal(d,v){c.each(this._merges,k=>{if(k.intersects(d))throw new Error("Cannot merge already merged cells")});const g=this.getCell(d.top,d.left);for(let k=d.top;k<=d.bottom;k++)for(let C=d.left;C<=d.right;C++)(k>d.top||C>d.left)&&this.getCell(k,C).merge(g,v);this._merges[g.address]=d}_unMergeMaster(d){const v=this._merges[d.address];if(v){for(let g=v.top;g<=v.bottom;g++)for(let k=v.left;k<=v.right;k++)this.getCell(g,k).unmerge();delete this._merges[d.address]}}get hasMerges(){return c.some(this._merges,Boolean)}unMergeCells(){for(var d=arguments.length,v=new Array(d),g=0;g<d;g++)v[g]=arguments[g];const k=new o(v);for(let C=k.top;C<=k.bottom;C++)for(let B=k.left;B<=k.right;B++){const N=this.findCell(C,B);N&&(N.type===r.ValueType.Merge?this._unMergeMaster(N.master):this._merges[N.address]&&this._unMergeMaster(N))}}fillFormula(d,v,g){let k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const C=a.decode(d),{top:B,left:N,bottom:q,right:j}=C,P=j-N+1,V=a.encodeAddress(B,N),z=k==="shared";let L;L=typeof g=="function"?g:Array.isArray(g)?Array.isArray(g[0])?(T,_)=>g[T-B][_-N]:(T,_)=>g[(T-B)*P+(_-N)]:()=>{};let A=!0;for(let T=B;T<=q;T++)for(let _=N;_<=j;_++)A?(this.getCell(T,_).value={shareType:k,formula:v,ref:d,result:L(T,_)},A=!1):this.getCell(T,_).value=z?{sharedFormula:V,result:L(T,_)}:L(T,_)}addImage(d,v){const g={type:"image",imageId:d,range:v};this._media.push(new u(this,g))}getImages(){return this._media.filter(d=>d.type==="image")}addBackgroundImage(d){const v={type:"background",imageId:d};this._media.push(new u(this,v))}getBackgroundImageId(){const d=this._media.find(v=>v.type==="background");return d&&d.imageId}protect(d,v){return new Promise(g=>{this.sheetProtection={sheet:!0},v&&"spinCount"in v&&(v.spinCount=Number.isFinite(v.spinCount)?Math.round(Math.max(0,v.spinCount)):1e5),d&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=f.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=v&&"spinCount"in v?v.spinCount:1e5,this.sheetProtection.hashValue=f.convertPasswordToHash(d,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),v&&(this.sheetProtection=Object.assign(this.sheetProtection,v),!d&&"spinCount"in v&&delete this.sheetProtection.spinCount),g()})}unprotect(){this.sheetProtection=null}addTable(d){const v=new s(this,d);return this.tables[d.name]=v,v}getTable(d){return this.tables[d]}removeTable(d){delete this.tables[d]}getTables(){return Object.values(this.tables)}addConditionalFormatting(d){this.conditionalFormattings.push(d)}removeConditionalFormatting(d){typeof d=="number"?this.conditionalFormattings.splice(d,1):this.conditionalFormattings=d instanceof Function?this.conditionalFormattings.filter(d):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(d){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=d}get model(){const d={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(k=>k.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(k=>k.model),conditionalFormattings:this.conditionalFormattings};d.cols=e.toModel(this.columns);const v=d.rows=[],g=d.dimensions=new o;return this._rows.forEach(k=>{const C=k&&k.model;C&&(g.expand(C.number,C.min,C.number,C.max),v.push(C))}),d.merges=[],c.each(this._merges,k=>{d.merges.push(k.range)}),d}_parseRows(d){this._rows=[],d.rows.forEach(v=>{const g=new n(this,v.number);this._rows[g.number-1]=g,g.model=v})}_parseMergeCells(d){c.each(d.mergeCells,v=>{this.mergeCellsWithoutStyle(v)})}set model(d){this.name=d.name,this._columns=e.fromModel(this,d.cols),this._parseRows(d),this._parseMergeCells(d),this.dataValidations=new l(d.dataValidations),this.properties=d.properties,this.pageSetup=d.pageSetup,this.headerFooter=d.headerFooter,this.views=d.views,this.autoFilter=d.autoFilter,this._media=d.media.map(v=>new u(this,v)),this.sheetProtection=d.sheetProtection,this.tables=d.tables.reduce((v,g)=>{const k=new s;return k.model=g,v[g.name]=k,v},{}),this.conditionalFormattings=d.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(t,b,m){t("core-js/modules/es.promise"),t("core-js/modules/es.promise.finally"),t("core-js/modules/es.object.assign"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.values"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.async-iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.find"),t("core-js/modules/es.string.from-code-point"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.number.is-nan"),t("regenerator-runtime/runtime");const c={Workbook:t("./doc/workbook")},a=t("./doc/enums");Object.keys(a).forEach(o=>{c[o]=a[o]}),b.exports=c},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(t,b,m){const c=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");m.bufferToString=function(a){return typeof a=="string"?a:c?c.decode(a):a.toString()}},{}],17:[function(t,b,m){const c=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:a}=t("buffer");m.stringToBuffer=function(o){return typeof o!="string"?o:c?a.from(c.encode(o).buffer):a.from(o)}},{buffer:220}],18:[function(t,b,m){const c=t("./under-dash"),a=t("./col-cache");b.exports=class{constructor(o){this.template=o,this.sheets={}}addCell(o){this.addCellEx(a.decodeEx(o))}getCell(o){return this.findCellEx(a.decodeEx(o),!0)}findCell(o){return this.findCellEx(a.decodeEx(o),!1)}findCellAt(o,n,e){const r=this.sheets[o],u=r&&r[n];return u&&u[e]}addCellEx(o){if(o.top)for(let n=o.top;n<=o.bottom;n++)for(let e=o.left;e<=o.right;e++)this.getCellAt(o.sheetName,n,e);else this.findCellEx(o,!0)}getCellEx(o){return this.findCellEx(o,!0)}findCellEx(o,n){const e=this.findSheet(o,n),r=this.findSheetRow(e,o,n);return this.findRowCell(r,o,n)}getCellAt(o,n,e){const r=this.sheets[o]||(this.sheets[o]=[]),u=r[n]||(r[n]=[]);return u[e]||(u[e]={sheetName:o,address:a.n2l(e)+n,row:n,col:e})}removeCellEx(o){const n=this.findSheet(o);if(!n)return;const e=this.findSheetRow(n,o);e&&delete e[o.col]}forEachInSheet(o,n){const e=this.sheets[o];e&&e.forEach((r,u)=>{r&&r.forEach((s,l)=>{s&&n(s,u,l)})})}forEach(o){c.each(this.sheets,(n,e)=>{this.forEachInSheet(e,o)})}map(o){const n=[];return this.forEach(e=>{n.push(o(e))}),n}findSheet(o,n){const e=o.sheetName;return this.sheets[e]?this.sheets[e]:n?this.sheets[e]=[]:void 0}findSheetRow(o,n,e){const{row:r}=n;return o&&o[r]?o[r]:e?o[r]=[]:void 0}findRowCell(o,n,e){const{col:r}=n;return o&&o[r]?o[r]:e?o[r]=this.template?Object.assign(n,JSON.parse(JSON.stringify(this.template))):n:void 0}spliceRows(o,n,e,r){const u=this.sheets[o];if(u){const s=[];for(let l=0;l<r;l++)s.push([]);u.splice(n,e,...s)}}spliceColumns(o,n,e,r){const u=this.sheets[o];if(u){const s=[];for(let l=0;l<r;l++)s.push(null);c.each(u,l=>{l.splice(n,e,...s)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,b,m){const c=/^[A-Z]+\d+$/,a={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:o=>o<=26?1:o<=676?2:3,_fill(o){let n,e,r,u,s,l=1;if(o>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&o>=1){for(;l<=26;)n=this._dictionary[l-1],this._n2l[l]=n,this._l2n[n]=l,l++;this._l2nFill=1}if(this._l2nFill<2&&o>=2){for(l=27;l<=702;)e=l-27,r=e%26,u=Math.floor(e/26),n=this._dictionary[u]+this._dictionary[r],this._n2l[l]=n,this._l2n[n]=l,l++;this._l2nFill=2}if(this._l2nFill<3&&o>=3){for(l=703;l<=16384;)e=l-703,r=e%26,u=Math.floor(e/26)%26,s=Math.floor(e/676),n=this._dictionary[s]+this._dictionary[u]+this._dictionary[r],this._n2l[l]=n,this._l2n[n]=l,l++;this._l2nFill=3}},l2n(o){if(this._l2n[o]||this._fill(o.length),!this._l2n[o])throw new Error("Out of bounds. Invalid column letter: "+o);return this._l2n[o]},n2l(o){if(o<1||o>16384)throw new Error(o+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[o]||this._fill(this._level(o)),this._n2l[o]},_hash:{},validateAddress(o){if(!c.test(o))throw new Error("Invalid Address: "+o);return!0},decodeAddress(o){const n=o.length<5&&this._hash[o];if(n)return n;let e=!1,r="",u=0,s=!1,l="",f=0;for(let d,v=0;v<o.length;v++)if(d=o.charCodeAt(v),!s&&d>=65&&d<=90)e=!0,r+=o[v],u=26*u+d-64;else if(d>=48&&d<=57)s=!0,l+=o[v],f=10*f+d-48;else if(s&&e&&d!==36)break;if(e){if(u>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else u=void 0;s||(f=void 0);const p={address:o=r+l,col:u,row:f,$col$row:`$${r}$${l}`};return u<=100&&f<=100&&(this._hash[o]=p,this._hash[p.$col$row]=p),p},getAddress(o,n){if(n){const e=this.n2l(n)+o;return this.decodeAddress(e)}return this.decodeAddress(o)},decode(o){const n=o.split(":");if(n.length===2){const e=this.decodeAddress(n[0]),r=this.decodeAddress(n[1]),u={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};return u.tl=this.n2l(u.left)+u.top,u.br=this.n2l(u.right)+u.bottom,u.dimensions=`${u.tl}:${u.br}`,u}return this.decodeAddress(o)},decodeEx(o){const n=o.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),e=n[1]||n[2],r=n[3],u=r.split(":");if(u.length>1){let l=this.decodeAddress(u[0]),f=this.decodeAddress(u[1]);const p=Math.min(l.row,f.row),d=Math.min(l.col,f.col),v=Math.max(l.row,f.row),g=Math.max(l.col,f.col);return l=this.n2l(d)+p,f=this.n2l(g)+v,{top:p,left:d,bottom:v,right:g,sheetName:e,tl:{address:l,col:d,row:p,$col$row:`$${this.n2l(d)}$${p}`,sheetName:e},br:{address:f,col:g,row:v,$col$row:`$${this.n2l(g)}$${v}`,sheetName:e},dimensions:`${l}:${f}`}}if(r.startsWith("#"))return e?{sheetName:e,error:r}:{error:r};const s=this.decodeAddress(r);return e?{sheetName:e,...s}:s},encodeAddress:(o,n)=>a.n2l(n)+o,encode(){switch(arguments.length){case 2:return a.encodeAddress(arguments[0],arguments[1]);case 4:return`${a.encodeAddress(arguments[0],arguments[1])}:${a.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(o,n){const[e,r,,u,s]=o,[l,f]=n;return l>=e&&l<=u&&f>=r&&f<=s}};b.exports=a},{}],20:[function(t,b,m){const c=(o,n)=>({...o,...n.reduce((e,r)=>(o[r]&&(e[r]={...o[r]}),e),{})}),a=function(o,n,e){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];o[e]&&(n[e]=c(o[e],r))};m.copyStyle=o=>{if(!o)return o;if(n=o,Object.keys(n).length===0)return{};var n;const e={...o};return a(o,e,"font",["color"]),a(o,e,"alignment"),a(o,e,"protection"),o.border&&(a(o,e,"border"),a(o.border,e.border,"top",["color"]),a(o.border,e.border,"left",["color"]),a(o.border,e.border,"bottom",["color"]),a(o.border,e.border,"right",["color"]),a(o.border,e.border,"diagonal",["color"])),o.fill&&(a(o,e,"fill",["fgColor","bgColor","center"]),o.fill.stops&&(e.fill.stops=o.fill.stops.map(r=>c(r,["color"])))),e}},{}],21:[function(t,b,m){(function(c){(function(){const a=t("crypto"),o={hash(n){const e=a.createHash(n);for(var r=arguments.length,u=new Array(r>1?r-1:0),s=1;s<r;s++)u[s-1]=arguments[s];return e.update(c.concat(u)),e.digest()},convertPasswordToHash(n,e,r,u){if(e=e.toLowerCase(),a.getHashes().indexOf(e)<0)throw new Error(`Hash algorithm '${e}' not supported!`);const s=c.from(n,"utf16le");let l=this.hash(e,c.from(r,"base64"),s);for(let f=0;f<u;f++){const p=c.alloc(4);p.writeUInt32LE(f,0),l=this.hash(e,l,p)}return l.toString("base64")},randomBytes:n=>a.randomBytes(n)};b.exports=o}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,b,m){const{SaxesParser:c}=t("saxes"),{PassThrough:a}=t("readable-stream"),{bufferToString:o}=t("./browser-buffer-decode");b.exports=async function*(n){n.pipe&&!n[Symbol.asyncIterator]&&(n=n.pipe(new a));const e=new c;let r;e.on("error",s=>{r=s});let u=[];e.on("opentag",s=>u.push({eventType:"opentag",value:s})),e.on("text",s=>u.push({eventType:"text",value:s})),e.on("closetag",s=>u.push({eventType:"closetag",value:s}));for await(const s of n){if(e.write(o(s)),r)throw r;yield u,u=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,b,m){const c=t("./col-cache"),a=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,o=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;b.exports={slideFormula:function(n,e,r){const u=c.decode(e),s=c.decode(r);return n.replace(a,(l,f,p,d,v)=>{if(v)return l;const g=o.exec(d);if(g){const k=g[1],C=g[2].toUpperCase(),B=g[3],N=g[4];if(C.length>3||C.length===3&&C>"XFD")return l;let q=c.l2n(C),j=parseInt(N,10);return k||(q+=s.col-u.col),B||(j+=s.row-u.row),(f||"")+(k||"")+c.n2l(q)+(B||"")+j}return l})}}},{"./col-cache":19}],24:[function(t,b,m){(function(c,a){(function(){const o=t("readable-stream"),n=t("./utils"),e=t("./string-buf");class r{constructor(d,v){this._data=d,this._encoding=v}get length(){return this.toBuffer().length}copy(d,v,g,k){return this.toBuffer().copy(d,v,g,k)}toBuffer(){return this._buffer||(this._buffer=a.from(this._data,this._encoding)),this._buffer}}class u{constructor(d){this._data=d}get length(){return this._data.length}copy(d,v,g,k){return this._data._buf.copy(d,v,g,k)}toBuffer(){return this._data.toBuffer()}}class s{constructor(d){this._data=d}get length(){return this._data.length}copy(d,v,g,k){this._data.copy(d,v,g,k)}toBuffer(){return this._data}}class l{constructor(d){this.size=d,this.buffer=a.alloc(d),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const d=a.alloc(this.iWrite-this.iRead);return this.buffer.copy(d,0,this.iRead,this.iWrite),d}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(d){let v;return d===0?null:d===void 0||d>=this.length?(v=this.toBuffer(),this.iRead=this.iWrite,v):(v=a.alloc(d),this.buffer.copy(v,0,this.iRead,d),this.iRead+=d,v)}write(d,v,g){const k=Math.min(g,this.size-this.iWrite);return d.copy(this.buffer,this.iWrite,v,v+k),this.iWrite+=k,k}}const f=function(p){p=p||{},this.bufSize=p.bufSize||1048576,this.buffers=[],this.batch=p.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};n.inherits(f,o.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return a.concat(this.buffers.map(p=>p.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const d=this.buffers[this.buffers.length-1];if(!d.full)return d}const p=new l(this.bufSize);return this.buffers.push(p),p},async _pipe(p){await Promise.all(this.pipes.map(function(d){return new Promise(v=>{d.write(p.toBuffer(),()=>{v()})})}))},_writeToBuffers(p){let d=0;const v=p.length;for(;d<v;)d+=this._getWritableBuffer().write(p,d,v-d)},async write(p,d,v){let g;if(d instanceof Function&&(v=d,d="utf8"),v=v||n.nop,p instanceof e)g=new u(p);else if(p instanceof a)g=new s(p);else{if(!(typeof p=="string"||p instanceof String||p instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");g=new r(p,d)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(g);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(g),c.nextTick(v)):(await this._pipe(g),v());else this.paused||this.emit("data",g.toBuffer()),this._writeToBuffers(g),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(p,d,v){const g=k=>{k?v(k):(this._flush(),this.pipes.forEach(C=>{C.end()}),this.emit("finish"))};p?this.write(p,d,g):g()},read(p){let d;if(p){for(d=[];p&&this.buffers.length&&!this.buffers[0].eod;){const v=this.buffers[0],g=v.read(p);p-=g.length,d.push(g),v.eod&&v.full&&this.buffers.shift()}return a.concat(d)}return d=this.buffers.map(v=>v.toBuffer()).filter(Boolean),this.buffers=[],a.concat(d)},setEncoding(p){this.encoding=p},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(p){this.pipes.push(p),!this.paused&&this.buffers.length&&this.end()},unpipe(p){this.pipes=this.pipes.filter(d=>d!==p)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),b.exports=f}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,b,m){(function(c){(function(){b.exports=class{constructor(a){this._buf=c.alloc(a&&a.size||16384),this._encoding=a&&a.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=c.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(a){a=a||0,this._buffer=void 0,this._inPos=a}_grow(a){let o=2*this._buf.length;for(;o<a;)o*=2;const n=c.alloc(o);this._buf.copy(n,0),this._buf=n}addText(a){this._buffer=void 0;let o=this._inPos+this._buf.write(a,this._inPos,this._encoding);for(;o>=this._buf.length-4;)this._grow(this._inPos+a.length),o=this._inPos+this._buf.write(a,this._inPos,this._encoding);this._inPos=o}addStringBuf(a){a.length&&(this._buffer=void 0,this.length+a.length>this.capacity&&this._grow(this.length+a.length),a._buf.copy(this._buf,this._inPos,0,a.length),this._inPos+=a.length)}}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,b,m){const{toString:c}=Object.prototype,a=/["&<>]/,o={each:function(n,e){n&&(Array.isArray(n)?n.forEach(e):Object.keys(n).forEach(r=>{e(n[r],r)}))},some:function(n,e){return!!n&&(Array.isArray(n)?n.some(e):Object.keys(n).some(r=>e(n[r],r)))},every:function(n,e){return!n||(Array.isArray(n)?n.every(e):Object.keys(n).every(r=>e(n[r],r)))},map:function(n,e){return n?Array.isArray(n)?n.map(e):Object.keys(n).map(r=>e(n[r],r)):[]},keyBy:(n,e)=>n.reduce((r,u)=>(r[u[e]]=u,r),{}),isEqual:function(n,e){const r=typeof n,u=typeof e,s=Array.isArray(n),l=Array.isArray(e);let f;if(r!==u)return!1;switch(typeof n){case"object":if(s||l)return!(!s||!l)&&n.length===e.length&&n.every((p,d)=>{const v=e[d];return o.isEqual(p,v)});if(n===null||e===null)return n===e;if(f=Object.keys(n),Object.keys(e).length!==f.length)return!1;for(const p of f)if(!e.hasOwnProperty(p))return!1;return o.every(n,(p,d)=>{const v=e[d];return o.isEqual(p,v)});default:return n===e}},escapeHtml(n){const e=a.exec(n);if(!e)return n;let r="",u="",s=0,l=e.index;for(;l<n.length;l++){switch(n.charAt(l)){case'"':u="&quot;";break;case"&":u="&amp;";break;case"'":u="&apos;";break;case"<":u="&lt;";break;case">":u="&gt;";break;default:continue}s!==l&&(r+=n.substring(s,l)),s=l+1,r+=u}return s!==l?r+n.substring(s,l):r},strcmp:(n,e)=>n<e?-1:n>e?1:0,isUndefined:n=>c.call(n)==="[object Undefined]",isObject:n=>c.call(n)==="[object Object]",deepMerge(){const n=arguments[0]||{},{length:e}=arguments;let r,u,s;function l(f,p){r=n[p],s=Array.isArray(f),o.isObject(f)||s?(s?(s=!1,u=r&&Array.isArray(r)?r:[]):u=r&&o.isObject(r)?r:{},n[p]=o.deepMerge(u,f)):o.isUndefined(f)||(n[p]=f)}for(let f=0;f<e;f++)o.each(arguments[f],l);return n}};b.exports=o},{}],27:[function(t,b,m){(function(c,a){(function(){const o=t("fs"),n=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:r=>new Promise(u=>{c.setImmediate?a(()=>{u(r)}):setTimeout(()=>{u(r)},1)}),inherits:function(r,u,s,l){r.super_=u,l||(l=s,s=null),s&&Object.keys(s).forEach(p=>{Object.defineProperty(r,p,Object.getOwnPropertyDescriptor(s,p))});const f={constructor:{value:r,enumerable:!1,writable:!1,configurable:!0}};l&&Object.keys(l).forEach(p=>{f[p]=Object.getOwnPropertyDescriptor(l,p)}),r.prototype=Object.create(u.prototype,f)},dateToExcel:(r,u)=>25569+r.getTime()/864e5-(u?1462:0),excelToDate(r,u){const s=Math.round(24*(r-25569+(u?1462:0))*3600*1e3);return new Date(s)},parsePath(r){const u=r.lastIndexOf("/");return{path:r.substring(0,u),name:r.substring(u+1)}},getRelsPath(r){const u=e.parsePath(r);return`${u.path}/_rels/${u.name}.rels`},xmlEncode(r){const u=n.exec(r);if(!u)return r;let s="",l="",f=0,p=u.index;for(;p<r.length;p++){const d=r.charCodeAt(p);switch(d){case 34:l="&quot;";break;case 38:l="&amp;";break;case 39:l="&apos;";break;case 60:l="&lt;";break;case 62:l="&gt;";break;case 127:l="";break;default:if(d<=31&&(d<=8||d>=11&&d!==13)){l="";break}continue}f!==p&&(s+=r.substring(f,p)),f=p+1,l&&(s+=l)}return f!==p?s+r.substring(f,p):s},xmlDecode:r=>r.replace(/&([a-z]*);/g,u=>{switch(u){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return u}}),validInt(r){const u=parseInt(r,10);return Number.isNaN(u)?0:u},isDateFmt(r){return r?(r=(r=r.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:r=>new Promise(u=>{o.access(r,o.constants.F_OK,s=>{u(!s)})})},toIsoDateString:r=>r.toIsoString().subsstr(0,10),parseBoolean:r=>r===!0||r==="true"||r===1||r==="1"};b.exports=e}).call(this)}).call(this,typeof ut<"u"?ut:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,b,m){const c=t("./under-dash"),a=t("./utils");function o(r,u,s){r.push(` ${u}="${a.xmlEncode(s.toString())}"`)}function n(r,u){if(u){const s=[];c.each(u,(l,f)=>{l!==void 0&&o(s,f,l)}),r.push(s.join(""))}}class e{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(u){const s=this._xml;s.push("<?xml"),n(s,u),s.push(`?>
2
2
  `)}openNode(u,s){const l=this.tos,f=this._xml;l&&this.open&&f.push(">"),this._stack.push(u),f.push("<"),f.push(u),n(f,s),this.leaf=!0,this.open=!0}addAttribute(u,s){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");s!==void 0&&o(this._xml,u,s)}addAttributes(u){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");n(this._xml,u)}writeText(u){const s=this._xml;this.open&&(s.push(">"),this.open=!1),this.leaf=!1,s.push(a.xmlEncode(u.toString()))}writeXml(u){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(u)}closeNode(){const u=this._stack.pop(),s=this._xml;this.leaf?s.push("/>"):(s.push("</"),s.push(u),s.push(">")),this.open=!1,this.leaf=!1}leafNode(u,s,l){this.openNode(u,s),l!==void 0&&this.writeText(l),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const u=this._rollbacks.pop();this._xml.length>u.xml&&this._xml.splice(u.xml,this._xml.length-u.xml),this._stack.length>u.stack&&this._stack.splice(u.stack,this._stack.length-u.stack),this.leaf=u.leaf,this.open=u.open}get xml(){return this.closeAll(),this._xml.join("")}}e.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},b.exports=e},{"./under-dash":26,"./utils":27}],29:[function(t,b,m){(function(c){(function(){const a=t("events"),o=t("jszip"),n=t("./stream-buf"),{stringToBuffer:e}=t("./browser-buffer-encode");class r extends a.EventEmitter{constructor(s){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},s),this.zip=new o,this.stream=new n}append(s,l){l.hasOwnProperty("base64")&&l.base64?this.zip.file(l.name,s,{base64:!0}):(c.browser&&typeof s=="string"&&(s=e(s)),this.zip.file(l.name,s))}async finalize(){const s=await this.zip.generateAsync(this.options);this.stream.end(s),this.emit("finish")}read(s){return this.stream.read(s)}setEncoding(s){return this.stream.setEncoding(s)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(s,l){return this.stream.pipe(s,l)}unpipe(s){return this.stream.unpipe(s)}unshift(s){return this.stream.unshift(s)}wrap(s){return this.stream.wrap(s)}}b.exports={ZipWriter:r}}).call(this)}).call(this,t("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(t,b,m){b.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(t,b,m){b.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(t,b,m){const c=t("../../utils/parse-sax"),a=t("../../utils/xml-stream");class o{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,r){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(e=>{e instanceof o?e.reset():e.xform&&e.xform.reset()})}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const r of e)for(const{eventType:u,value:s}of r)if(u==="opentag")this.parseOpen(s);else if(u==="text")this.parseText(s);else if(u==="closetag"&&!this.parseClose(s.name))return this.model;return this.model}async parseStream(e){return this.parse(c(e))}get xml(){return this.toXml(this.model)}toXml(e){const r=new a;return this.render(r,e),r.xml}static toAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(u)return r}else if(u||e!==r)return e.toString()}static toStringAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(e,r,u)}static toStringValue(e,r){return e===void 0?r:e}static toBoolAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(u)return r}else if(u||e!==r)return e?"1":"0"}static toBoolValue(e,r){return e===void 0?r:e==="1"}static toIntAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(e,r,u)}static toIntValue(e,r){return e===void 0?r:parseInt(e,10)}static toFloatAttribute(e,r){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(e,r,u)}static toFloatValue(e,r){return e===void 0?r:parseFloat(e)}}b.exports=o},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(t,b,m){const c=t("../base-xform"),a=t("../../../utils/col-cache");function o(e){try{return a.decodeEx(e),!0}catch{return!1}}function n(e){const r=[];let u=!1,s="";return e.split(",").forEach(l=>{if(!l)return;const f=(l.match(/'/g)||[]).length;if(!f)return void(u?s+=l+",":o(l)&&r.push(l));const p=f%2==0;!u&&p&&o(l)?r.push(l):u&&!p?(u=!1,o(s+l)&&r.push(s+l),s=""):(u=!0,s+=l+",")}),r}b.exports=class extends c{render(e,r){e.openNode("definedName",{name:r.name,localSheetId:r.localSheetId}),e.writeText(r.ranges.join(",")),e.closeNode()}parseOpen(e){switch(e.name){case"definedName":return this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:n(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(t,b,m){const c=t("../../../utils/utils"),a=t("../base-xform");b.exports=class extends a{render(o,n){o.leafNode("sheet",{sheetId:n.id,name:n.name,state:n.state,"r:id":n.rId})}parseOpen(o){return o.name==="sheet"&&(this.model={name:c.xmlDecode(o.attributes.name),id:parseInt(o.attributes.sheetId,10),state:o.attributes.state,rId:o.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{render(a,o){a.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:o.fullCalcOnLoad?1:void 0})}parseOpen(a){return a.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{render(a,o){a.leafNode("workbookPr",{date1904:o.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(a){return a.name==="workbookPr"&&(this.model={date1904:a.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{render(a,o){const n={xWindow:o.x||0,yWindow:o.y||0,windowWidth:o.width||12e3,windowHeight:o.height||24e3,firstSheet:o.firstSheet,activeTab:o.activeTab};o.visibility&&o.visibility!=="visible"&&(n.visibility=o.visibility),a.leafNode("workbookView",n)}parseOpen(a){if(a.name==="workbookView"){const o=this.model={},n=function(r,u,s){const l=u!==void 0?o[r]=u:s;l!==void 0&&(o[r]=l)},e=function(r,u,s){const l=u!==void 0?o[r]=parseInt(u,10):s;l!==void 0&&(o[r]=l)};return e("x",a.attributes.xWindow,0),e("y",a.attributes.yWindow,0),e("width",a.attributes.windowWidth,25e3),e("height",a.attributes.windowHeight,1e4),n("visibility",a.attributes.visibility,"visible"),e("activeTab",a.attributes.activeTab,void 0),e("firstSheet",a.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(t,b,m){const c=t("../../../utils/under-dash"),a=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),n=t("../base-xform"),e=t("../static-xform"),r=t("../list-xform"),u=t("./defined-name-xform"),s=t("./sheet-xform"),l=t("./workbook-view-xform"),f=t("./workbook-properties-xform"),p=t("./workbook-calc-properties-xform");class d extends n{constructor(){super(),this.map={fileVersion:d.STATIC_XFORMS.fileVersion,workbookPr:new f,bookViews:new r({tag:"bookViews",count:!1,childXform:new l}),sheets:new r({tag:"sheets",count:!1,childXform:new s}),definedNames:new r({tag:"definedNames",count:!1,childXform:new u}),calcPr:new p}}prepare(g){g.sheets=g.worksheets;const k=[];let C=0;g.sheets.forEach(B=>{if(B.pageSetup&&B.pageSetup.printArea&&B.pageSetup.printArea.split("&&").forEach(N=>{const q=N.split(":"),j={name:"_xlnm.Print_Area",ranges:[`'${B.name}'!$${q[0]}:$${q[1]}`],localSheetId:C};k.push(j)}),B.pageSetup&&(B.pageSetup.printTitlesRow||B.pageSetup.printTitlesColumn)){const N=[];if(B.pageSetup.printTitlesColumn){const j=B.pageSetup.printTitlesColumn.split(":");N.push(`'${B.name}'!$${j[0]}:$${j[1]}`)}if(B.pageSetup.printTitlesRow){const j=B.pageSetup.printTitlesRow.split(":");N.push(`'${B.name}'!$${j[0]}:$${j[1]}`)}const q={name:"_xlnm.Print_Titles",ranges:N,localSheetId:C};k.push(q)}C++}),k.length&&(g.definedNames=g.definedNames.concat(k)),(g.media||[]).forEach((B,N)=>{B.name=B.type+(N+1)})}render(g,k){g.openXml(o.StdDocAttributes),g.openNode("workbook",d.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(g),this.map.workbookPr.render(g,k.properties),this.map.bookViews.render(g,k.views),this.map.sheets.render(g,k.sheets),this.map.definedNames.render(g,k.definedNames),this.map.calcPr.render(g,k.calcProperties),g.closeNode()}parseOpen(g){if(this.parser)return this.parser.parseOpen(g),!0;switch(g.name){case"workbook":return!0;default:return this.parser=this.map[g.name],this.parser&&this.parser.parseOpen(g),!0}}parseText(g){this.parser&&this.parser.parseText(g)}parseClose(g){if(this.parser)return this.parser.parseClose(g)||(this.parser=void 0),!0;switch(g){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(g){const k=(g.workbookRels||[]).reduce((j,P)=>(j[P.Id]=P,j),{}),C=[];let B,N=0;(g.sheets||[]).forEach(j=>{const P=k[j.rId];P&&(B=g.worksheetHash["xl/"+P.Target.replace(/^(\s|\/xl\/)+/,"")],B&&(B.name=j.name,B.id=j.id,B.state=j.state,C[N++]=B))});const q=[];c.each(g.definedNames,j=>{if(j.name==="_xlnm.Print_Area"){if(B=C[j.localSheetId],B){B.pageSetup||(B.pageSetup={});const P=a.decodeEx(j.ranges[0]);B.pageSetup.printArea=B.pageSetup.printArea?`${B.pageSetup.printArea}&&${P.dimensions}`:P.dimensions}}else if(j.name==="_xlnm.Print_Titles"){if(B=C[j.localSheetId],B){B.pageSetup||(B.pageSetup={});const P=j.ranges.join(","),V=/\$/g,z=/\$\d+:\$\d+/,L=P.match(z);if(L&&L.length){const _=L[0];B.pageSetup.printTitlesRow=_.replace(V,"")}const A=/\$[A-Z]+:\$[A-Z]+/,T=P.match(A);if(T&&T.length){const _=T[0];B.pageSetup.printTitlesColumn=_.replace(V,"")}}}else q.push(j)}),g.definedNames=q,g.media.forEach((j,P)=>{j.index=P})}}d.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},d.STATIC_XFORMS={fileVersion:new e({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},b.exports=d},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(t,b,m){const c=t("../strings/rich-text-xform"),a=t("../../../utils/utils"),o=t("../base-xform"),n=b.exports=function(e){this.model=e};a.inherits(n,o,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new c),this._richTextXform},render(e,r){r=r||this.model,e.openNode("comment",{ref:r.ref,authorId:0}),e.openNode("text"),r&&r.note&&r.note.texts&&r.note.texts.forEach(u=>{this.richTextXform.render(e,u)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model={type:"note",note:{texts:[]},...e.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(t,b,m){const c=t("../../../utils/xml-stream"),a=t("../../../utils/utils"),o=t("../base-xform"),n=t("./comment-xform"),e=b.exports=function(){this.map={comment:new n}};a.inherits(e,o,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(r,u){u=u||this.model,r.openXml(c.StdDocAttributes),r.openNode("comments",e.COMMENTS_ATTRIBUTES),r.openNode("authors"),r.leafNode("author",null,"Author"),r.closeNode(),r.openNode("commentList"),u.comments.forEach(s=>{this.map.comment.render(r,s)}),r.closeNode(),r.closeNode()},parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(r),!0;default:return!1}},parseText(r){this.parser&&this.parser.parseText(r)},parseClose(r){switch(r){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(r),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(t,b,m){const c=t("../../base-xform");b.exports=class extends c{constructor(a){super(),this._model=a}get tag(){return this._model&&this._model.tag}render(a,o,n){(o===n[2]||this.tag==="x:SizeWithCells"&&o===n[1])&&a.leafNode(this.tag)}parseOpen(a){switch(a.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(t,b,m){const c=t("../../base-xform");b.exports=class extends c{constructor(a){super(),this._model=a}get tag(){return this._model&&this._model.tag}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(a){switch(a.name){case this.tag:return this.text="",!0;default:return!1}}parseText(a){this.text=a}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"x:Anchor"}getAnchorRect(a){const o=Math.floor(a.left),n=Math.floor(68*(a.left-o)),e=Math.floor(a.top),r=Math.floor(18*(a.top-e)),u=Math.floor(a.right),s=Math.floor(68*(a.right-u)),l=Math.floor(a.bottom);return[o,n,e,r,u,s,l,Math.floor(18*(a.bottom-l))]}getDefaultRect(a){const o=a.col,n=Math.max(a.row-2,0);return[o,6,n,14,o+2,2,n+4,16]}render(a,o){const n=o.anchor?this.getAnchorRect(o.anchor):this.getDefaultRect(o.refAddress);a.leafNode("x:Anchor",null,n.join(", "))}parseOpen(a){switch(a.name){case this.tag:return this.text="",!0;default:return!1}}parseText(a){this.text=a}parseClose(){return!1}}},{"../base-xform":32}],44:[function(t,b,m){const c=t("../base-xform"),a=t("./vml-anchor-xform"),o=t("./style/vml-protection-xform"),n=t("./style/vml-position-xform"),e=["twoCells","oneCells","absolute"];b.exports=class extends c{constructor(){super(),this.map={"x:Anchor":new a,"x:Locked":new o({tag:"x:Locked"}),"x:LockText":new o({tag:"x:LockText"}),"x:SizeWithCells":new n({tag:"x:SizeWithCells"}),"x:MoveWithCells":new n({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(r,u){const{protection:s,editAs:l}=u.note;r.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(r,l,e),this.map["x:SizeWithCells"].render(r,l,e),this.map["x:Anchor"].render(r,u),this.map["x:Locked"].render(r,s.locked),r.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(r,s.lockText),r.leafNode("x:Row",null,u.refAddress.row-1),r.leafNode("x:Column",null,u.refAddress.col-1),r.closeNode()}parseOpen(r){switch(r.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const r=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),u=Object.keys(r).length;this.model.editAs=e[u],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(t,b,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./vml-shape-xform");class n extends a{constructor(){super(),this.map={"v:shape":new o}}get tag(){return"xml"}render(r,u){r.openXml(c.StdDocAttributes),r.openNode(this.tag,n.DRAWING_ATTRIBUTES),r.openNode("o:shapelayout",{"v:ext":"edit"}),r.leafNode("o:idmap",{"v:ext":"edit",data:1}),r.closeNode(),r.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),r.leafNode("v:stroke",{joinstyle:"miter"}),r.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),r.closeNode(),u.comments.forEach((s,l)=>{this.map["v:shape"].render(r,s,l)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(r){case this.tag:return!1;default:return!0}}reconcile(r,u){r.anchors.forEach(s=>{s.br?this.map["xdr:twoCellAnchor"].reconcile(s,u):this.map["xdr:oneCellAnchor"].reconcile(s,u)})}}n.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},b.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(t,b,m){const c=t("../base-xform"),a=t("./vml-textbox-xform"),o=t("./vml-client-data-xform");class n extends c{constructor(){super(),this.map={"v:textbox":new a,"x:ClientData":new o}}get tag(){return"v:shape"}render(r,u,s){r.openNode("v:shape",n.V_SHAPE_ATTRIBUTES(u,s)),r.leafNode("v:fill",{color2:"infoBackground [80]"}),r.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),r.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(r,u),this.map["x:ClientData"].render(r,u),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset(),this.model={margins:{insetmode:r.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}n.V_SHAPE_ATTRIBUTES=(e,r)=>({id:"_x0000_s"+(1025+r),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}),b.exports=n},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"v:textbox"}conversionUnit(a,o,n){return`${parseFloat(a)*o.toFixed(2)}${n}`}reverseConversionUnit(a){return(a||"").split(",").map(o=>Number(parseFloat(this.conversionUnit(parseFloat(o),.1,"")).toFixed(2)))}render(a,o){const n={style:"mso-direction-alt:auto"};if(o&&o.note){let{inset:e}=o.note&&o.note.margins;Array.isArray(e)&&(e=e.map(r=>this.conversionUnit(r,10,"mm")).join(",")),e&&(n.inset=e)}a.openNode("v:textbox",n),a.leafNode("div",{style:"text-align:left"}),a.closeNode()}parseOpen(a){switch(a.name){case this.tag:return this.model={inset:this.reverseConversionUnit(a.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(a){switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(t,b,m){const c=t("./base-xform");b.exports=class extends c{createNewModel(a){return{}}parseOpen(a){return this.parser=this.parser||this.map[a.name],this.parser?(this.parser.parseOpen(a),!0):a.name===this.tag&&(this.model=this.createNewModel(a),!0)}parseText(a){this.parser&&this.parser.parseText(a)}onParserClose(a,o){this.model[a]=o.model}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.onParserClose(a,this.parser),this.parser=void 0),!0):a!==this.tag}}},{"./base-xform":32}],49:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{render(a,o){a.openNode("HeadingPairs"),a.openNode("vt:vector",{size:2,baseType:"variant"}),a.openNode("vt:variant"),a.leafNode("vt:lpstr",void 0,"Worksheets"),a.closeNode(),a.openNode("vt:variant"),a.leafNode("vt:i4",void 0,o.length),a.closeNode(),a.closeNode(),a.closeNode()}parseOpen(a){return a.name==="HeadingPairs"}parseText(){}parseClose(a){return a!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{render(a,o){a.openNode("TitlesOfParts"),a.openNode("vt:vector",{size:o.length,baseType:"lpstr"}),o.forEach(n=>{a.leafNode("vt:lpstr",void 0,n.name)}),a.closeNode(),a.closeNode()}parseOpen(a){return a.name==="TitlesOfParts"}parseText(){}parseClose(a){return a!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(t,b,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("../simple/string-xform"),n=t("./app-heading-pairs-xform"),e=t("./app-titles-of-parts-xform");class r extends a{constructor(){super(),this.map={Company:new o({tag:"Company"}),Manager:new o({tag:"Manager"}),HeadingPairs:new n,TitleOfParts:new e}}render(s,l){s.openXml(c.StdDocAttributes),s.openNode("Properties",r.PROPERTY_ATTRIBUTES),s.leafNode("Application",void 0,"Microsoft Excel"),s.leafNode("DocSecurity",void 0,"0"),s.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(s,l.worksheets),this.map.TitleOfParts.render(s,l.worksheets),this.map.Company.render(s,l.company||""),this.map.Manager.render(s,l.manager),s.leafNode("LinksUpToDate",void 0,"false"),s.leafNode("SharedDoc",void 0,"false"),s.leafNode("HyperlinksChanged",void 0,"false"),s.leafNode("AppVersion",void 0,"16.0300"),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"Properties":return!0;default:return this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!0)}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}r.DateFormat=function(u){return u.toISOString().replace(/[.]\d{3,6}/,"")},r.DateAttrs={"xsi:type":"dcterms:W3CDTF"},r.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},b.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(t,b,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform");class o extends a{render(e,r){e.openXml(c.StdDocAttributes),e.openNode("Types",o.PROPERTY_ATTRIBUTES);const u={};(r.media||[]).forEach(s=>{if(s.type==="image"){const l=s.extension;u[l]||(u[l]=!0,e.leafNode("Default",{Extension:l,ContentType:"image/"+l}))}}),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),r.worksheets.forEach(s=>{const l=`/xl/worksheets/sheet${s.id}.xml`;e.leafNode("Override",{PartName:l,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),r.sharedStrings&&r.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),r.tables&&r.tables.forEach(s=>{e.leafNode("Override",{PartName:"/xl/tables/"+s.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),r.drawings&&r.drawings.forEach(s=>{e.leafNode("Override",{PartName:`/xl/drawings/${s.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),r.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),r.commentRefs.forEach(s=>{let{commentName:l}=s;e.leafNode("Override",{PartName:`/xl/${l}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}o.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},b.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(t,b,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("../simple/date-xform"),n=t("../simple/string-xform"),e=t("../simple/integer-xform");class r extends a{constructor(){super(),this.map={"dc:creator":new n({tag:"dc:creator"}),"dc:title":new n({tag:"dc:title"}),"dc:subject":new n({tag:"dc:subject"}),"dc:description":new n({tag:"dc:description"}),"dc:identifier":new n({tag:"dc:identifier"}),"dc:language":new n({tag:"dc:language"}),"cp:keywords":new n({tag:"cp:keywords"}),"cp:category":new n({tag:"cp:category"}),"cp:lastModifiedBy":new n({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new o({tag:"cp:lastPrinted",format:r.DateFormat}),"cp:revision":new e({tag:"cp:revision"}),"cp:version":new n({tag:"cp:version"}),"cp:contentStatus":new n({tag:"cp:contentStatus"}),"cp:contentType":new n({tag:"cp:contentType"}),"dcterms:created":new o({tag:"dcterms:created",attrs:r.DateAttrs,format:r.DateFormat}),"dcterms:modified":new o({tag:"dcterms:modified",attrs:r.DateAttrs,format:r.DateFormat})}}render(s,l){s.openXml(c.StdDocAttributes),s.openNode("cp:coreProperties",r.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(s,l.creator),this.map["dc:title"].render(s,l.title),this.map["dc:subject"].render(s,l.subject),this.map["dc:description"].render(s,l.description),this.map["dc:identifier"].render(s,l.identifier),this.map["dc:language"].render(s,l.language),this.map["cp:keywords"].render(s,l.keywords),this.map["cp:category"].render(s,l.category),this.map["cp:lastModifiedBy"].render(s,l.lastModifiedBy),this.map["cp:lastPrinted"].render(s,l.lastPrinted),this.map["cp:revision"].render(s,l.revision),this.map["cp:version"].render(s,l.version),this.map["cp:contentStatus"].render(s,l.contentStatus),this.map["cp:contentType"].render(s,l.contentType),this.map["dcterms:created"].render(s,l.created),this.map["dcterms:modified"].render(s,l.modified),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[s.name],this.parser)return this.parser.parseOpen(s),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(s))}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+s)}}}r.DateFormat=function(u){return u.toISOString().replace(/[.]\d{3}/,"")},r.DateAttrs={"xsi:type":"dcterms:W3CDTF"},r.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},b.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{render(a,o){a.leafNode("Relationship",o)}parseOpen(a){switch(a.name){case"Relationship":return this.model=a.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(t,b,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./relationship-xform");class n extends a{constructor(){super(),this.map={Relationship:new o}}render(r,u){u=u||this._values,r.openXml(c.StdDocAttributes),r.openNode("Relationships",n.RELATIONSHIPS_ATTRIBUTES),u.forEach(s=>{this.map.Relationship.render(r,s)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[r.name],this.parser)return this.parser.parseOpen(r),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(r))}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(r){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+r)}}}n.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},b.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset(),this.model={range:{editAs:a.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(a){this.parser&&this.parser.parseText(a)}reconcilePicture(a,o){if(a&&a.rId){const n=o.rels[a.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n){const e=n[1],r=o.mediaIndex[e];return o.media[r]}}}}},{"../base-xform":32}],57:[function(t,b,m){const c=t("../base-xform"),a=t("./blip-xform");b.exports=class extends c{constructor(){super(),this.map={"a:blip":new a}}get tag(){return"xdr:blipFill"}render(o,n){o.openNode(this.tag),this.map["a:blip"].render(o,n),o.openNode("a:stretch"),o.leafNode("a:fillRect"),o.closeNode(),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset();break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(){}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"a:blip"}render(a,o){a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":o.rId,cstate:"print"})}parseOpen(a){switch(a.name){case this.tag:return this.model={rId:a.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(a){switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"xdr:cNvPicPr"}render(a){a.openNode(this.tag),a.leafNode("a:picLocks",{noChangeAspect:"1"}),a.closeNode()}parseOpen(a){switch(a.name){case this.tag:default:return!0}}parseText(){}parseClose(a){switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(t,b,m){const c=t("../base-xform"),a=t("./hlink-click-xform"),o=t("./ext-lst-xform");b.exports=class extends c{constructor(){super(),this.map={"a:hlinkClick":new a,"a:extLst":new o}}get tag(){return"xdr:cNvPr"}render(n,e){n.openNode(this.tag,{id:e.index,name:"Picture "+e.index}),this.map["a:hlinkClick"].render(n,e),this.map["a:extLst"].render(n,e),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset();break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(){}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(t,b,m){const c=t("../base-xform"),a=t("../simple/integer-xform");b.exports=class extends c{constructor(o){super(),this.tag=o.tag,this.map={"xdr:col":new a({tag:"xdr:col",zero:!0}),"xdr:colOff":new a({tag:"xdr:colOff",zero:!0}),"xdr:row":new a({tag:"xdr:row",zero:!0}),"xdr:rowOff":new a({tag:"xdr:rowOff",zero:!0})}}render(o,n){o.openNode(this.tag),this.map["xdr:col"].render(o,n.nativeCol),this.map["xdr:colOff"].render(o,n.nativeColOff),this.map["xdr:row"].render(o,n.nativeRow),this.map["xdr:rowOff"].render(o,n.nativeRowOff),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset();break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(t,b,m){const c=t("../../../utils/col-cache"),a=t("../../../utils/xml-stream"),o=t("../base-xform"),n=t("./two-cell-anchor-xform"),e=t("./one-cell-anchor-xform");class r extends o{constructor(){super(),this.map={"xdr:twoCellAnchor":new n,"xdr:oneCellAnchor":new e}}prepare(s){s.anchors.forEach((l,f)=>{l.anchorType=function(p){return(typeof p.range=="string"?c.decode(p.range):p.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(l),this.map[l.anchorType].prepare(l,{index:f})})}get tag(){return"xdr:wsDr"}render(s,l){s.openXml(a.StdDocAttributes),s.openNode(this.tag,r.DRAWING_ATTRIBUTES),l.anchors.forEach(f=>{this.map[f.anchorType].render(s,f)}),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(s){case this.tag:return!1;default:return!0}}reconcile(s,l){s.anchors.forEach(f=>{f.br?this.map["xdr:twoCellAnchor"].reconcile(f,l):this.map["xdr:oneCellAnchor"].reconcile(f,l)})}}r.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},b.exports=r},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"a:extLst"}render(a){a.openNode(this.tag),a.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),a.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),a.closeNode(),a.closeNode()}parseOpen(a){switch(a.name){case this.tag:default:return!0}}parseText(){}parseClose(a){switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.map={}}render(a,o){a.openNode(this.tag);const n=Math.floor(9525*o.width),e=Math.floor(9525*o.height);a.addAttribute("cx",n),a.addAttribute("cy",e),a.closeNode()}parseOpen(a){return a.name===this.tag&&(this.model={width:parseInt(a.attributes.cx||"0",10)/9525,height:parseInt(a.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"a:hlinkClick"}render(a,o){o.hyperlinks&&o.hyperlinks.rId&&a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":o.hyperlinks.rId,tooltip:o.hyperlinks.tooltip})}parseOpen(a){switch(a.name){case this.tag:return this.model={hyperlinks:{rId:a.attributes["r:id"],tooltip:a.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(t,b,m){const c=t("../base-xform"),a=t("./c-nv-pr-xform"),o=t("./c-nv-pic-pr-xform");b.exports=class extends c{constructor(){super(),this.map={"xdr:cNvPr":new a,"xdr:cNvPicPr":new o}}get tag(){return"xdr:nvPicPr"}render(n,e){n.openNode(this.tag),this.map["xdr:cNvPr"].render(n,e),this.map["xdr:cNvPicPr"].render(n,e),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset();break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(){}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(t,b,m){const c=t("./base-cell-anchor-xform"),a=t("../static-xform"),o=t("./cell-position-xform"),n=t("./ext-xform"),e=t("./pic-xform");b.exports=class extends c{constructor(){super(),this.map={"xdr:from":new o({tag:"xdr:from"}),"xdr:ext":new n({tag:"xdr:ext"}),"xdr:pic":new e,"xdr:clientData":new a({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(r,u){this.map["xdr:pic"].prepare(r.picture,u)}render(r,u){r.openNode(this.tag,{editAs:u.range.editAs||"oneCell"}),this.map["xdr:from"].render(r,u.range.tl),this.map["xdr:ext"].render(r,u.range.ext),this.map["xdr:pic"].render(r,u.picture),this.map["xdr:clientData"].render(r,{}),r.closeNode()}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(r,u){r.medium=this.reconcilePicture(r.picture,u)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(t,b,m){const c=t("../base-xform"),a=t("../static-xform"),o=t("./blip-fill-xform"),n=t("./nv-pic-pr-xform"),e=t("./sp-pr");b.exports=class extends c{constructor(){super(),this.map={"xdr:nvPicPr":new n,"xdr:blipFill":new o,"xdr:spPr":new a(e)}}get tag(){return"xdr:pic"}prepare(r,u){r.index=u.index+1}render(r,u){r.openNode(this.tag),this.map["xdr:nvPicPr"].render(r,u),this.map["xdr:blipFill"].render(r,u),this.map["xdr:spPr"].render(r,u),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset();break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(t,b,m){b.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(t,b,m){const c=t("./base-cell-anchor-xform"),a=t("../static-xform"),o=t("./cell-position-xform"),n=t("./pic-xform");b.exports=class extends c{constructor(){super(),this.map={"xdr:from":new o({tag:"xdr:from"}),"xdr:to":new o({tag:"xdr:to"}),"xdr:pic":new n,"xdr:clientData":new a({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,r){this.map["xdr:pic"].prepare(e.picture,r)}render(e,r){e.openNode(this.tag,{editAs:r.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,r.range.tl),this.map["xdr:to"].render(e,r.range.br),this.map["xdr:pic"].render(e,r.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(e,r){e.medium=this.reconcilePicture(e.picture,r)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(t,b,m){const c=t("./base-xform");b.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.always=!!a.always,this.count=a.count,this.empty=a.empty,this.$count=a.$count||"count",this.$=a.$,this.childXform=a.childXform,this.maxItems=a.maxItems}prepare(a,o){const{childXform:n}=this;a&&a.forEach((e,r)=>{o.index=r,n.prepare(e,o)})}render(a,o){if(this.always||o&&o.length){a.openNode(this.tag,this.$),this.count&&a.addAttribute(this.$count,o&&o.length||0);const{childXform:n}=this;(o||[]).forEach((e,r)=>{n.render(a,e,r)}),a.closeNode()}else this.empty&&a.leafNode(this.tag)}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(a)&&(this.parser=this.childXform,!0)}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser){if(!this.parser.parseClose(a)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(a,o){if(a){const{childXform:n}=this;a.forEach(e=>{n.reconcile(e,o)})}}}},{"./base-xform":32}],72:[function(t,b,m){const c=t("../../../utils/col-cache"),a=t("../base-xform");b.exports=class extends a{get tag(){return"autoFilter"}render(o,n){if(n)if(typeof n=="string")o.leafNode("autoFilter",{ref:n});else{const e=function(s){return typeof s=="string"?s:c.getAddress(s.row,s.column).address},r=e(n.from),u=e(n.to);r&&u&&o.leafNode("autoFilter",{ref:`${r}:${u}`})}}parseOpen(o){o.name==="autoFilter"&&(this.model=o.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(t,b,m){const c=t("../../../utils/utils"),a=t("../base-xform"),o=t("../../../doc/range"),n=t("../../../doc/enums"),e=t("../strings/rich-text-xform");function r(u){if(u==null)return n.ValueType.Null;if(u instanceof String||typeof u=="string")return n.ValueType.String;if(typeof u=="number")return n.ValueType.Number;if(typeof u=="boolean")return n.ValueType.Boolean;if(u instanceof Date)return n.ValueType.Date;if(u.text&&u.hyperlink)return n.ValueType.Hyperlink;if(u.formula)return n.ValueType.Formula;if(u.error)return n.ValueType.Error;throw new Error("I could not understand type of value")}b.exports=class extends a{constructor(){super(),this.richTextXForm=new e}get tag(){return"c"}prepare(u,s){const l=s.styles.addStyleModel(u.style||{},function(f){switch(f.type){case n.ValueType.Formula:return r(f.result);default:return f.type}}(u));switch(l&&(u.styleId=l),u.comment&&s.comments.push({...u.comment,ref:u.address}),u.type){case n.ValueType.String:case n.ValueType.RichText:s.sharedStrings&&(u.ssId=s.sharedStrings.add(u.value));break;case n.ValueType.Date:s.date1904&&(u.date1904=!0);break;case n.ValueType.Hyperlink:s.sharedStrings&&u.text!==void 0&&u.text!==null&&(u.ssId=s.sharedStrings.add(u.text)),s.hyperlinks.push({address:u.address,target:u.hyperlink,tooltip:u.tooltip});break;case n.ValueType.Merge:s.merges.add(u);break;case n.ValueType.Formula:if(s.date1904&&(u.date1904=!0),u.shareType==="shared"&&(u.si=s.siFormulae++),u.formula)s.formulae[u.address]=u;else if(u.sharedFormula){const f=s.formulae[u.sharedFormula];if(!f)throw new Error("Shared Formula master must exist above and or left of clone for cell "+u.address);f.si===void 0?(f.shareType="shared",f.si=s.siFormulae++,f.range=new o(f.address,u.address)):f.range&&f.range.expandToAddress(u.address),u.si=f.si}}}renderFormula(u,s){let l=null;switch(s.shareType){case"shared":l={t:"shared",ref:s.ref||s.range.range,si:s.si};break;case"array":l={t:"array",ref:s.ref};break;default:s.si!==void 0&&(l={t:"shared",si:s.si})}switch(r(s.result)){case n.ValueType.Null:u.leafNode("f",l,s.formula);break;case n.ValueType.String:u.addAttribute("t","str"),u.leafNode("f",l,s.formula),u.leafNode("v",null,s.result);break;case n.ValueType.Number:u.leafNode("f",l,s.formula),u.leafNode("v",null,s.result);break;case n.ValueType.Boolean:u.addAttribute("t","b"),u.leafNode("f",l,s.formula),u.leafNode("v",null,s.result?1:0);break;case n.ValueType.Error:u.addAttribute("t","e"),u.leafNode("f",l,s.formula),u.leafNode("v",null,s.result.error);break;case n.ValueType.Date:u.leafNode("f",l,s.formula),u.leafNode("v",null,c.dateToExcel(s.result,s.date1904));break;default:throw new Error("I could not understand type of value")}}render(u,s){if(s.type!==n.ValueType.Null||s.styleId){switch(u.openNode("c"),u.addAttribute("r",s.address),s.styleId&&u.addAttribute("s",s.styleId),s.type){case n.ValueType.Null:break;case n.ValueType.Number:u.leafNode("v",null,s.value);break;case n.ValueType.Boolean:u.addAttribute("t","b"),u.leafNode("v",null,s.value?"1":"0");break;case n.ValueType.Error:u.addAttribute("t","e"),u.leafNode("v",null,s.value.error);break;case n.ValueType.String:case n.ValueType.RichText:s.ssId!==void 0?(u.addAttribute("t","s"),u.leafNode("v",null,s.ssId)):s.value&&s.value.richText?(u.addAttribute("t","inlineStr"),u.openNode("is"),s.value.richText.forEach(l=>{this.richTextXForm.render(u,l)}),u.closeNode("is")):(u.addAttribute("t","str"),u.leafNode("v",null,s.value));break;case n.ValueType.Date:u.leafNode("v",null,c.dateToExcel(s.value,s.date1904));break;case n.ValueType.Hyperlink:s.ssId!==void 0?(u.addAttribute("t","s"),u.leafNode("v",null,s.ssId)):(u.addAttribute("t","str"),u.leafNode("v",null,s.text));break;case n.ValueType.Formula:this.renderFormula(u,s);break;case n.ValueType.Merge:}u.closeNode()}}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"c":return this.model={address:u.attributes.r},this.t=u.attributes.t,u.attributes.s&&(this.model.styleId=parseInt(u.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=u.attributes.si,this.model.shareType=u.attributes.t,this.model.ref=u.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(u),!0;default:return!1}}parseText(u){if(this.parser)this.parser.parseText(u);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+u:u;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+u:u:this.model.value=this.model.value?this.model.value+u:u}}parseClose(u){switch(u){case"c":{const{model:s}=this;if(s.formula||s.shareType)s.type=n.ValueType.Formula,s.value&&(this.t==="str"?s.result=c.xmlDecode(s.value):this.t==="b"?s.result=parseInt(s.value,10)!==0:this.t==="e"?s.result={error:s.value}:s.result=parseFloat(s.value),s.value=void 0);else if(s.value!==void 0)switch(this.t){case"s":s.type=n.ValueType.String,s.value=parseInt(s.value,10);break;case"str":s.type=n.ValueType.String,s.value=c.xmlDecode(s.value);break;case"inlineStr":s.type=n.ValueType.String;break;case"b":s.type=n.ValueType.Boolean,s.value=parseInt(s.value,10)!==0;break;case"e":s.type=n.ValueType.Error,s.value={error:s.value};break;default:s.type=n.ValueType.Number,s.value=parseFloat(s.value)}else s.styleId?s.type=n.ValueType.Null:s.type=n.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(u),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(u),!0)}}reconcile(u,s){const l=u.styleId&&s.styles&&s.styles.getStyleModel(u.styleId);switch(l&&(u.style=l),u.styleId!==void 0&&(u.styleId=void 0),u.type){case n.ValueType.String:typeof u.value=="number"&&s.sharedStrings&&(u.value=s.sharedStrings.getString(u.value)),u.value.richText&&(u.type=n.ValueType.RichText);break;case n.ValueType.Number:l&&c.isDateFmt(l.numFmt)&&(u.type=n.ValueType.Date,u.value=c.excelToDate(u.value,s.date1904));break;case n.ValueType.Formula:u.result!==void 0&&l&&c.isDateFmt(l.numFmt)&&(u.result=c.excelToDate(u.result,s.date1904)),u.shareType==="shared"&&(u.ref?s.formulae[u.si]=u.address:(u.sharedFormula=s.formulae[u.si],delete u.shareType),delete u.si)}const f=s.hyperlinkMap[u.address];f&&(u.type===n.ValueType.Formula?(u.text=u.result,u.result=void 0):(u.text=u.value,u.value=void 0),u.type=n.ValueType.Hyperlink,u.hyperlink=f);const p=s.commentsMap&&s.commentsMap[u.address];p&&(u.comment=p)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(t,b,m){const c=t("../../base-xform");b.exports=class extends c{get tag(){return"x14:cfIcon"}render(a,o){a.leafNode(this.tag,{iconSet:o.iconSet,iconId:o.iconId})}parseOpen(a){let{attributes:o}=a;this.model={iconSet:o.iconSet,iconId:c.toIntValue(o.iconId)}}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],75:[function(t,b,m){const{v4:c}=t("uuid"),a=t("../../base-xform"),o=t("../../composite-xform"),n=t("./databar-ext-xform"),e=t("./icon-set-ext-xform"),r={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class u extends o{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new n,"x14:iconSet":this.iconSetXform=new e}}get tag(){return"x14:cfRule"}static isExt(l){return l.type==="dataBar"?n.isExt(l):!(l.type!=="iconSet"||!l.custom&&!r[l.iconSet])}prepare(l){u.isExt(l)&&(l.x14Id=`{${c()}}`.toUpperCase())}render(l,f){if(u.isExt(f))switch(f.type){case"dataBar":this.renderDataBar(l,f);break;case"iconSet":this.renderIconSet(l,f)}}renderDataBar(l,f){l.openNode(this.tag,{type:"dataBar",id:f.x14Id}),this.databarXform.render(l,f),l.closeNode()}renderIconSet(l,f){l.openNode(this.tag,{type:"iconSet",priority:f.priority,id:f.x14Id||`{${c()}}`}),this.iconSetXform.render(l,f),l.closeNode()}createNewModel(l){let{attributes:f}=l;return{type:f.type,x14Id:f.id,priority:a.toIntValue(f.priority)}}onParserClose(l,f){Object.assign(this.model,f.model)}}b.exports=u},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(t,b,m){const c=t("../../composite-xform"),a=t("./f-ext-xform");b.exports=class extends c{constructor(){super(),this.map={"xm:f":this.fExtXform=new a}}get tag(){return"x14:cfvo"}render(o,n){o.openNode(this.tag,{type:n.type}),n.value!==void 0&&this.fExtXform.render(o,n.value),o.closeNode()}createNewModel(o){return{type:o.attributes.type}}onParserClose(o,n){switch(o){case"xm:f":this.model.value=n.model?parseFloat(n.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(t,b,m){const c=t("../../composite-xform"),a=t("./sqref-ext-xform"),o=t("./cf-rule-ext-xform");b.exports=class extends c{constructor(){super(),this.map={"xm:sqref":this.sqRef=new a,"x14:cfRule":this.cfRule=new o}}get tag(){return"x14:conditionalFormatting"}prepare(n,e){n.rules.forEach(r=>{this.cfRule.prepare(r,e)})}render(n,e){e.rules.some(o.isExt)&&(n.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),e.rules.filter(o.isExt).forEach(r=>this.cfRule.render(n,r)),this.sqRef.render(n,e.ref),n.closeNode())}createNewModel(){return{rules:[]}}onParserClose(n,e){switch(n){case"xm:sqref":this.model.ref=e.model;break;case"x14:cfRule":this.model.rules.push(e.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(t,b,m){const c=t("../../composite-xform"),a=t("./cf-rule-ext-xform"),o=t("./conditional-formatting-ext-xform");b.exports=class extends c{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new o}}get tag(){return"x14:conditionalFormattings"}hasContent(n){return n.hasExtContent===void 0&&(n.hasExtContent=n.some(e=>e.rules.some(a.isExt))),n.hasExtContent}prepare(n,e){n.forEach(r=>{this.cfXform.prepare(r,e)})}render(n,e){this.hasContent(e)&&(n.openNode(this.tag),e.forEach(r=>this.cfXform.render(n,r)),n.closeNode())}createNewModel(){return[]}onParserClose(n,e){this.model.push(e.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(t,b,m){const c=t("../../base-xform"),a=t("../../composite-xform"),o=t("../../style/color-xform"),n=t("./cfvo-ext-xform");b.exports=class extends a{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new n,"x14:borderColor":this.borderColorXform=new o("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new o("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new o("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new o("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,r){e.openNode(this.tag,{minLength:c.toIntAttribute(r.minLength,0,!0),maxLength:c.toIntAttribute(r.maxLength,100,!0),border:c.toBoolAttribute(r.border,!1),gradient:c.toBoolAttribute(r.gradient,!0),negativeBarColorSameAsPositive:c.toBoolAttribute(r.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:c.toBoolAttribute(r.negativeBarBorderColorSameAsPositive,!0),axisPosition:c.toAttribute(r.axisPosition,"auto"),direction:c.toAttribute(r.direction,"leftToRight")}),r.cfvo.forEach(u=>{this.cfvoXform.render(e,u)}),this.borderColorXform.render(e,r.borderColor),this.negativeBorderColorXform.render(e,r.negativeBorderColor),this.negativeFillColorXform.render(e,r.negativeFillColor),this.axisColorXform.render(e,r.axisColor),e.closeNode()}createNewModel(e){let{attributes:r}=e;return{cfvo:[],minLength:c.toIntValue(r.minLength,0),maxLength:c.toIntValue(r.maxLength,100),border:c.toBoolValue(r.border,!1),gradient:c.toBoolValue(r.gradient,!0),negativeBarColorSameAsPositive:c.toBoolValue(r.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:c.toBoolValue(r.negativeBarBorderColorSameAsPositive,!0),axisPosition:c.toStringValue(r.axisPosition,"auto"),direction:c.toStringValue(r.direction,"leftToRight")}}onParserClose(e,r){const[,u]=e.split(":");switch(u){case"cfvo":this.model.cfvo.push(r.model);break;default:this.model[u]=r.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(t,b,m){const c=t("../../base-xform");b.exports=class extends c{get tag(){return"xm:f"}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],81:[function(t,b,m){const c=t("../../base-xform"),a=t("../../composite-xform"),o=t("./cfvo-ext-xform"),n=t("./cf-icon-ext-xform");b.exports=class extends a{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new o,"x14:cfIcon":this.cfIconXform=new n}}get tag(){return"x14:iconSet"}render(e,r){e.openNode(this.tag,{iconSet:c.toStringAttribute(r.iconSet),reverse:c.toBoolAttribute(r.reverse,!1),showValue:c.toBoolAttribute(r.showValue,!0),custom:c.toBoolAttribute(r.icons,!1)}),r.cfvo.forEach(u=>{this.cfvoXform.render(e,u)}),r.icons&&r.icons.forEach((u,s)=>{u.iconId=s,this.cfIconXform.render(e,u)}),e.closeNode()}createNewModel(e){let{attributes:r}=e;return{cfvo:[],iconSet:c.toStringValue(r.iconSet,"3TrafficLights"),reverse:c.toBoolValue(r.reverse,!1),showValue:c.toBoolValue(r.showValue,!0)}}onParserClose(e,r){const[,u]=e.split(":");switch(u){case"cfvo":this.model.cfvo.push(r.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(r.model);break;default:this.model[u]=r.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(t,b,m){const c=t("../../base-xform");b.exports=class extends c{get tag(){return"xm:sqref"}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],83:[function(t,b,m){const c=t("../../base-xform"),a=t("../../composite-xform"),o=t("../../../../doc/range"),n=t("./databar-xform"),e=t("./ext-lst-ref-xform"),r=t("./formula-xform"),u=t("./color-scale-xform"),s=t("./icon-set-xform"),l={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},f=d=>{const{type:v,operator:g}=d;switch(v){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:v};default:return{type:v,operator:g}}};class p extends a{constructor(){super(),this.map={dataBar:this.databarXform=new n,extLst:this.extLstRefXform=new e,formula:this.formulaXform=new r,colorScale:this.colorScaleXform=new u,iconSet:this.iconSetXform=new s}}get tag(){return"cfRule"}static isPrimitive(v){return v.type!=="iconSet"||!v.custom&&!l[v.iconSet]}render(v,g){switch(g.type){case"expression":this.renderExpression(v,g);break;case"cellIs":this.renderCellIs(v,g);break;case"top10":this.renderTop10(v,g);break;case"aboveAverage":this.renderAboveAverage(v,g);break;case"dataBar":this.renderDataBar(v,g);break;case"colorScale":this.renderColorScale(v,g);break;case"iconSet":this.renderIconSet(v,g);break;case"containsText":this.renderText(v,g);break;case"timePeriod":this.renderTimePeriod(v,g)}}renderExpression(v,g){v.openNode(this.tag,{type:"expression",dxfId:g.dxfId,priority:g.priority}),this.formulaXform.render(v,g.formulae[0]),v.closeNode()}renderCellIs(v,g){v.openNode(this.tag,{type:"cellIs",dxfId:g.dxfId,priority:g.priority,operator:g.operator}),g.formulae.forEach(k=>{this.formulaXform.render(v,k)}),v.closeNode()}renderTop10(v,g){v.leafNode(this.tag,{type:"top10",dxfId:g.dxfId,priority:g.priority,percent:c.toBoolAttribute(g.percent,!1),bottom:c.toBoolAttribute(g.bottom,!1),rank:c.toIntValue(g.rank,10,!0)})}renderAboveAverage(v,g){v.leafNode(this.tag,{type:"aboveAverage",dxfId:g.dxfId,priority:g.priority,aboveAverage:c.toBoolAttribute(g.aboveAverage,!0)})}renderDataBar(v,g){v.openNode(this.tag,{type:"dataBar",priority:g.priority}),this.databarXform.render(v,g),this.extLstRefXform.render(v,g),v.closeNode()}renderColorScale(v,g){v.openNode(this.tag,{type:"colorScale",priority:g.priority}),this.colorScaleXform.render(v,g),v.closeNode()}renderIconSet(v,g){p.isPrimitive(g)&&(v.openNode(this.tag,{type:"iconSet",priority:g.priority}),this.iconSetXform.render(v,g),v.closeNode())}renderText(v,g){v.openNode(this.tag,{type:g.operator,dxfId:g.dxfId,priority:g.priority,operator:c.toStringAttribute(g.operator,"containsText")});const k=(C=>{if(C.formulae&&C.formulae[0])return C.formulae[0];const B=new o(C.ref),{tl:N}=B;switch(C.operator){case"containsText":return`NOT(ISERROR(SEARCH("${C.text}",${N})))`;case"containsBlanks":return`LEN(TRIM(${N}))=0`;case"notContainsBlanks":return`LEN(TRIM(${N}))>0`;case"containsErrors":return`ISERROR(${N})`;case"notContainsErrors":return`NOT(ISERROR(${N}))`;default:return}})(g);k&&this.formulaXform.render(v,k),v.closeNode()}renderTimePeriod(v,g){v.openNode(this.tag,{type:"timePeriod",dxfId:g.dxfId,priority:g.priority,timePeriod:g.timePeriod});const k=(C=>{if(C.formulae&&C.formulae[0])return C.formulae[0];const B=new o(C.ref),{tl:N}=B;switch(C.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${N},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${N},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${N},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${N},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${N},1)=TODAY()-1`;case"today":return`FLOOR(${N},1)=TODAY()`;case"tomorrow":return`FLOOR(${N},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${N},1)<=6,FLOOR(${N},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0-1)),YEAR(${N})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${N})=MONTH(TODAY()),YEAR(${N})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0+1)),YEAR(${N})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(g);k&&this.formulaXform.render(v,k),v.closeNode()}createNewModel(v){let{attributes:g}=v;return{...f(g),dxfId:c.toIntValue(g.dxfId),priority:c.toIntValue(g.priority),timePeriod:g.timePeriod,percent:c.toBoolValue(g.percent),bottom:c.toBoolValue(g.bottom),rank:c.toIntValue(g.rank),aboveAverage:c.toBoolValue(g.aboveAverage)}}onParserClose(v,g){switch(v){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,g.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(g.model)}}}b.exports=p},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(t,b,m){const c=t("../../base-xform");b.exports=class extends c{get tag(){return"cfvo"}render(a,o){a.leafNode(this.tag,{type:o.type,val:o.value})}parseOpen(a){this.model={type:a.attributes.type,value:c.toFloatValue(a.attributes.val)}}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],85:[function(t,b,m){const c=t("../../composite-xform"),a=t("../../style/color-xform"),o=t("./cfvo-xform");b.exports=class extends c{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,color:this.colorXform=new a}}get tag(){return"colorScale"}render(n,e){n.openNode(this.tag),e.cfvo.forEach(r=>{this.cfvoXform.render(n,r)}),e.color.forEach(r=>{this.colorXform.render(n,r)}),n.closeNode()}createNewModel(n){return{cfvo:[],color:[]}}onParserClose(n,e){this.model[n].push(e.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(t,b,m){const c=t("../../composite-xform"),a=t("./cf-rule-xform");b.exports=class extends c{constructor(){super(),this.map={cfRule:new a}}get tag(){return"conditionalFormatting"}render(o,n){n.rules.some(a.isPrimitive)&&(o.openNode(this.tag,{sqref:n.ref}),n.rules.forEach(e=>{a.isPrimitive(e)&&(e.ref=n.ref,this.map.cfRule.render(o,e))}),o.closeNode())}createNewModel(o){let{attributes:n}=o;return{ref:n.sqref,rules:[]}}onParserClose(o,n){this.model.rules.push(n.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(t,b,m){const c=t("../../base-xform"),a=t("./conditional-formatting-xform");b.exports=class extends c{constructor(){super(),this.cfXform=new a}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(o,n){let e=o.reduce((r,u)=>Math.max(r,...u.rules.map(s=>s.priority||0)),1);o.forEach(r=>{r.rules.forEach(u=>{u.priority||(u.priority=e++),u.style&&(u.dxfId=n.styles.addDxfStyle(u.style))})})}render(o,n){n.forEach(e=>{this.cfXform.render(o,e)})}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(o),!0;default:return!1}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){return!!this.parser&&(!!this.parser.parseClose(o)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(o,n){o.forEach(e=>{e.rules.forEach(r=>{r.dxfId!==void 0&&(r.style=n.styles.getDxfStyle(r.dxfId),delete r.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(t,b,m){const c=t("../../composite-xform"),a=t("../../style/color-xform"),o=t("./cfvo-xform");b.exports=class extends c{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,color:this.colorXform=new a}}get tag(){return"dataBar"}render(n,e){n.openNode(this.tag),e.cfvo.forEach(r=>{this.cfvoXform.render(n,r)}),this.colorXform.render(n,e.color),n.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(n,e){switch(n){case"cfvo":this.model.cfvo.push(e.model);break;case"color":this.model.color=e.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(t,b,m){const c=t("../../base-xform"),a=t("../../composite-xform");class o extends c{get tag(){return"x14:id"}render(r,u){r.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(r){this.model+=r}parseClose(r){return r!==this.tag}}class n extends a{constructor(){super(),this.map={"x14:id":this.idXform=new o}}get tag(){return"ext"}render(r,u){r.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(r,u.x14Id),r.closeNode()}createNewModel(){return{}}onParserClose(r,u){this.model.x14Id=u.model}}b.exports=class extends a{constructor(){super(),this.map={ext:new n}}get tag(){return"extLst"}render(e,r){e.openNode(this.tag),this.map.ext.render(e,r),e.closeNode()}createNewModel(){return{}}onParserClose(e,r){Object.assign(this.model,r.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(t,b,m){const c=t("../../base-xform");b.exports=class extends c{get tag(){return"formula"}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],91:[function(t,b,m){const c=t("../../base-xform"),a=t("../../composite-xform"),o=t("./cfvo-xform");b.exports=class extends a{constructor(){super(),this.map={cfvo:this.cfvoXform=new o}}get tag(){return"iconSet"}render(n,e){n.openNode(this.tag,{iconSet:c.toStringAttribute(e.iconSet,"3TrafficLights"),reverse:c.toBoolAttribute(e.reverse,!1),showValue:c.toBoolAttribute(e.showValue,!0)}),e.cfvo.forEach(r=>{this.cfvoXform.render(n,r)}),n.closeNode()}createNewModel(n){let{attributes:e}=n;return{iconSet:c.toStringValue(e.iconSet,"3TrafficLights"),reverse:c.toBoolValue(e.reverse),showValue:c.toBoolValue(e.showValue),cfvo:[]}}onParserClose(n,e){this.model[n].push(e.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(t,b,m){const c=t("../../../utils/utils"),a=t("../base-xform");b.exports=class extends a{get tag(){return"col"}prepare(o,n){const e=n.styles.addStyleModel(o.style||{});e&&(o.styleId=e)}render(o,n){o.openNode("col"),o.addAttribute("min",n.min),o.addAttribute("max",n.max),n.width&&o.addAttribute("width",n.width),n.styleId&&o.addAttribute("style",n.styleId),n.hidden&&o.addAttribute("hidden","1"),n.bestFit&&o.addAttribute("bestFit","1"),n.outlineLevel&&o.addAttribute("outlineLevel",n.outlineLevel),n.collapsed&&o.addAttribute("collapsed","1"),o.addAttribute("customWidth","1"),o.closeNode()}parseOpen(o){if(o.name==="col"){const n=this.model={min:parseInt(o.attributes.min||"0",10),max:parseInt(o.attributes.max||"0",10),width:o.attributes.width===void 0?void 0:parseFloat(o.attributes.width||"0")};return o.attributes.style&&(n.styleId=parseInt(o.attributes.style,10)),c.parseBoolean(o.attributes.hidden)&&(n.hidden=!0),c.parseBoolean(o.attributes.bestFit)&&(n.bestFit=!0),o.attributes.outlineLevel&&(n.outlineLevel=parseInt(o.attributes.outlineLevel,10)),c.parseBoolean(o.attributes.collapsed)&&(n.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(o,n){o.styleId&&(o.style=n.styles.getStyleModel(o.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(t,b,m){const c=t("../../../utils/under-dash"),a=t("../../../utils/utils"),o=t("../../../utils/col-cache"),n=t("../base-xform"),e=t("../../../doc/range");function r(s,l,f,p){const d=l[f];d!==void 0?s[f]=d:p!==void 0&&(s[f]=p)}function u(s,l,f,p){const d=l[f];d!==void 0&&(s[f]=a.parseBoolean(d))}b.exports=class extends n{get tag(){return"dataValidations"}render(s,l){const f=function(p){const d=c.map(p,(k,C)=>({address:C,dataValidation:k,marked:!1})).sort((k,C)=>c.strcmp(k.address,C.address)),v=c.keyBy(d,"address"),g=(k,C,B)=>{for(let N=0;N<C;N++){const q=o.encodeAddress(k.row+N,B);if(!p[q]||!c.isEqual(p[k.address],p[q]))return!1}return!0};return d.map(k=>{if(!k.marked){const C=o.decodeEx(k.address);if(C.dimensions)return v[C.dimensions].marked=!0,{...k.dataValidation,sqref:k.address};let B=1,N=o.encodeAddress(C.row+B,C.col);for(;p[N]&&c.isEqual(k.dataValidation,p[N]);)B++,N=o.encodeAddress(C.row+B,C.col);let q=1;for(;g(C,B,C.col+q);)q++;for(let j=0;j<B;j++)for(let P=0;P<q;P++)N=o.encodeAddress(C.row+j,C.col+P),v[N].marked=!0;if(B>1||q>1){const j=C.row+(B-1),P=C.col+(q-1);return{...k.dataValidation,sqref:`${k.address}:${o.encodeAddress(j,P)}`}}return{...k.dataValidation,sqref:k.address}}return null}).filter(Boolean)}(l);f.length&&(s.openNode("dataValidations",{count:f.length}),f.forEach(p=>{s.openNode("dataValidation"),p.type!=="any"&&(s.addAttribute("type",p.type),p.operator&&p.type!=="list"&&p.operator!=="between"&&s.addAttribute("operator",p.operator),p.allowBlank&&s.addAttribute("allowBlank","1")),p.showInputMessage&&s.addAttribute("showInputMessage","1"),p.promptTitle&&s.addAttribute("promptTitle",p.promptTitle),p.prompt&&s.addAttribute("prompt",p.prompt),p.showErrorMessage&&s.addAttribute("showErrorMessage","1"),p.errorStyle&&s.addAttribute("errorStyle",p.errorStyle),p.errorTitle&&s.addAttribute("errorTitle",p.errorTitle),p.error&&s.addAttribute("error",p.error),s.addAttribute("sqref",p.sqref),(p.formulae||[]).forEach((d,v)=>{s.openNode("formula"+(v+1)),p.type==="date"?s.writeText(a.dateToExcel(new Date(d))):s.writeText(d),s.closeNode()}),s.closeNode()}),s.closeNode())}parseOpen(s){switch(s.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=s.attributes.sqref;const l={type:s.attributes.type||"any",formulae:[]};switch(s.attributes.type&&u(l,s.attributes,"allowBlank"),u(l,s.attributes,"showInputMessage"),u(l,s.attributes,"showErrorMessage"),l.type){case"any":case"list":case"custom":break;default:r(l,s.attributes,"operator","between")}return r(l,s.attributes,"promptTitle"),r(l,s.attributes,"prompt"),r(l,s.attributes,"errorStyle"),r(l,s.attributes,"errorTitle"),r(l,s.attributes,"error"),this._dataValidation=l,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(s){this._formula&&this._formula.push(s)}parseClose(s){switch(s){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(l=>{l.includes(":")?new e(l).forEachAddress(f=>{this.model[f]=this._dataValidation}):this.model[l]=this._dataValidation}),!0;case"formula1":case"formula2":{let l=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":l=parseInt(l,10);break;case"decimal":l=parseFloat(l);break;case"date":l=a.excelToDate(parseFloat(l))}return this._dataValidation.formulae.push(l),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"dimension"}render(a,o){o&&a.leafNode("dimension",{ref:o})}parseOpen(a){return a.name==="dimension"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"drawing"}render(a,o){o&&a.leafNode(this.tag,{"r:id":o.rId})}parseOpen(a){switch(a.name){case this.tag:return this.model={rId:a.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(t,b,m){const c=t("../composite-xform"),a=t("./cf-ext/conditional-formattings-ext-xform");class o extends c{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new a}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,r){this.conditionalFormattings.prepare(e.conditionalFormattings,r)}render(e,r){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,r.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,r){this.model[e]=r.model}}b.exports=class extends c{constructor(){super(),this.map={ext:this.ext=new o}}get tag(){return"extLst"}prepare(n,e){this.ext.prepare(n,e)}hasContent(n){return this.ext.hasContent(n)}render(n,e){this.hasContent(e)&&(n.openNode("extLst"),this.ext.render(n,e),n.closeNode())}createNewModel(){return{}}onParserClose(n,e){Object.assign(this.model,e.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"headerFooter"}render(a,o){if(o){a.addRollback();let n=!1;a.openNode("headerFooter"),o.differentFirst&&(a.addAttribute("differentFirst","1"),n=!0),o.differentOddEven&&(a.addAttribute("differentOddEven","1"),n=!0),o.oddHeader&&typeof o.oddHeader=="string"&&(a.leafNode("oddHeader",null,o.oddHeader),n=!0),o.oddFooter&&typeof o.oddFooter=="string"&&(a.leafNode("oddFooter",null,o.oddFooter),n=!0),o.evenHeader&&typeof o.evenHeader=="string"&&(a.leafNode("evenHeader",null,o.evenHeader),n=!0),o.evenFooter&&typeof o.evenFooter=="string"&&(a.leafNode("evenFooter",null,o.evenFooter),n=!0),o.firstHeader&&typeof o.firstHeader=="string"&&(a.leafNode("firstHeader",null,o.firstHeader),n=!0),o.firstFooter&&typeof o.firstFooter=="string"&&(a.leafNode("firstFooter",null,o.firstFooter),n=!0),n?(a.closeNode(),a.commit()):a.rollback()}}parseOpen(a){switch(a.name){case"headerFooter":return this.model={},a.attributes.differentFirst&&(this.model.differentFirst=parseInt(a.attributes.differentFirst,0)===1),a.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(a.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(a){switch(this.currentNode){case"oddHeader":this.model.oddHeader=a;break;case"oddFooter":this.model.oddFooter=a;break;case"evenHeader":this.model.evenHeader=a;break;case"evenFooter":this.model.evenFooter=a;break;case"firstHeader":this.model.firstHeader=a;break;case"firstFooter":this.model.firstFooter=a}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"hyperlink"}render(a,o){this.isInternalLink(o)?a.leafNode("hyperlink",{ref:o.address,"r:id":o.rId,tooltip:o.tooltip,location:o.target}):a.leafNode("hyperlink",{ref:o.address,"r:id":o.rId,tooltip:o.tooltip})}parseOpen(a){return a.name==="hyperlink"&&(this.model={address:a.attributes.ref,rId:a.attributes["r:id"],tooltip:a.attributes.tooltip},a.attributes.location&&(this.model.target=a.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(a){return a.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(a.target)}}},{"../base-xform":32}],99:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"mergeCell"}render(a,o){a.leafNode("mergeCell",{ref:o})}parseOpen(a){return a.name==="mergeCell"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(t,b,m){const c=t("../../../utils/under-dash"),a=t("../../../doc/range"),o=t("../../../utils/col-cache"),n=t("../../../doc/enums");b.exports=class{constructor(){this.merges={}}add(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{const r=`${e.master}:${e.address}`;this.merges[e.master]=new a(r)}}get mergeCells(){return c.map(this.merges,e=>e.range)}reconcile(e,r){c.each(e,u=>{const s=o.decode(u);for(let l=s.top;l<=s.bottom;l++){const f=r[l-1];for(let p=s.left;p<=s.right;p++){const d=f.cells[p-1];d?d.type===n.ValueType.Merge&&(d.master=s.tl):f.cells[p]={type:n.ValueType.Null,address:o.encodeAddress(l,p)}}}})}getMasterAddress(e){const r=this.hash[e];return r&&r.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(t,b,m){const c=t("../base-xform"),a=o=>o!==void 0;b.exports=class extends c{get tag(){return"outlinePr"}render(o,n){return!(!n||!a(n.summaryBelow)&&!a(n.summaryRight))&&(o.leafNode(this.tag,{summaryBelow:a(n.summaryBelow)?Number(n.summaryBelow):void 0,summaryRight:a(n.summaryRight)?Number(n.summaryRight):void 0}),!0)}parseOpen(o){return o.name===this.tag&&(this.model={summaryBelow:a(o.attributes.summaryBelow)?!!Number(o.attributes.summaryBelow):void 0,summaryRight:a(o.attributes.summaryRight)?!!Number(o.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"brk"}render(a,o){a.leafNode("brk",o)}parseOpen(a){return a.name==="brk"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(t,b,m){const c=t("../../../utils/under-dash"),a=t("../base-xform");b.exports=class extends a{get tag(){return"pageMargins"}render(o,n){if(n){const e={left:n.left,right:n.right,top:n.top,bottom:n.bottom,header:n.header,footer:n.footer};c.some(e,r=>r!==void 0)&&o.leafNode(this.tag,e)}}parseOpen(o){switch(o.name){case this.tag:return this.model={left:parseFloat(o.attributes.left||.7),right:parseFloat(o.attributes.right||.7),top:parseFloat(o.attributes.top||.75),bottom:parseFloat(o.attributes.bottom||.75),header:parseFloat(o.attributes.header||.3),footer:parseFloat(o.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"pageSetUpPr"}render(a,o){return!(!o||!o.fitToPage)&&(a.leafNode(this.tag,{fitToPage:o.fitToPage?"1":void 0}),!0)}parseOpen(a){return a.name===this.tag&&(this.model={fitToPage:a.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(t,b,m){const c=t("../../../utils/under-dash"),a=t("../base-xform");function o(u){return u?"1":void 0}function n(u){switch(u){case"overThenDown":return u;default:return}}function e(u){switch(u){case"atEnd":case"asDisplyed":return u;default:return}}function r(u){switch(u){case"dash":case"blank":case"NA":return u;default:return}}b.exports=class extends a{get tag(){return"pageSetup"}render(u,s){if(s){const l={paperSize:s.paperSize,orientation:s.orientation,horizontalDpi:s.horizontalDpi,verticalDpi:s.verticalDpi,pageOrder:n(s.pageOrder),blackAndWhite:o(s.blackAndWhite),draft:o(s.draft),cellComments:e(s.cellComments),errors:r(s.errors),scale:s.scale,fitToWidth:s.fitToWidth,fitToHeight:s.fitToHeight,firstPageNumber:s.firstPageNumber,useFirstPageNumber:o(s.firstPageNumber),usePrinterDefaults:o(s.usePrinterDefaults),copies:s.copies};c.some(l,f=>f!==void 0)&&u.leafNode(this.tag,l)}}parseOpen(u){switch(u.name){case this.tag:return this.model={paperSize:(s=u.attributes.paperSize,s!==void 0?parseInt(s,10):void 0),orientation:u.attributes.orientation||"portrait",horizontalDpi:parseInt(u.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(u.attributes.verticalDpi||"4294967295",10),pageOrder:u.attributes.pageOrder||"downThenOver",blackAndWhite:u.attributes.blackAndWhite==="1",draft:u.attributes.draft==="1",cellComments:u.attributes.cellComments||"None",errors:u.attributes.errors||"displayed",scale:parseInt(u.attributes.scale||"100",10),fitToWidth:parseInt(u.attributes.fitToWidth||"1",10),fitToHeight:parseInt(u.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(u.attributes.firstPageNumber||"1",10),useFirstPageNumber:u.attributes.useFirstPageNumber==="1",usePrinterDefaults:u.attributes.usePrinterDefaults==="1",copies:parseInt(u.attributes.copies||"1",10)},!0;default:return!1}var s}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"picture"}render(a,o){o&&a.leafNode(this.tag,{"r:id":o.rId})}parseOpen(a){switch(a.name){case this.tag:return this.model={rId:a.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(t,b,m){const c=t("../../../utils/under-dash"),a=t("../base-xform");function o(n){return n?"1":void 0}b.exports=class extends a{get tag(){return"printOptions"}render(n,e){if(e){const r={headings:o(e.showRowColHeaders),gridLines:o(e.showGridLines),horizontalCentered:o(e.horizontalCentered),verticalCentered:o(e.verticalCentered)};c.some(r,u=>u!==void 0)&&n.leafNode(this.tag,r)}}parseOpen(n){switch(n.name){case this.tag:return this.model={showRowColHeaders:n.attributes.headings==="1",showGridLines:n.attributes.gridLines==="1",horizontalCentered:n.attributes.horizontalCentered==="1",verticalCentered:n.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(t,b,m){const c=t("./page-breaks-xform"),a=t("../list-xform");b.exports=class extends a{constructor(){super({tag:"rowBreaks",count:!0,childXform:new c})}render(o,n){if(n&&n.length){o.openNode(this.tag,this.$),this.count&&(o.addAttribute(this.$count,n.length),o.addAttribute("manualBreakCount",n.length));const{childXform:e}=this;n.forEach(r=>{e.render(o,r)}),o.closeNode()}else this.empty&&o.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(t,b,m){const c=t("../base-xform"),a=t("../../../utils/utils"),o=t("./cell-xform");b.exports=class extends c{constructor(n){super(),this.maxItems=n&&n.maxItems,this.map={c:new o}}get tag(){return"row"}prepare(n,e){const r=e.styles.addStyleModel(n.style);r&&(n.styleId=r);const u=this.map.c;n.cells.forEach(s=>{u.prepare(s,e)})}render(n,e,r){n.openNode("row"),n.addAttribute("r",e.number),e.height&&(n.addAttribute("ht",e.height),n.addAttribute("customHeight","1")),e.hidden&&n.addAttribute("hidden","1"),e.min>0&&e.max>0&&e.min<=e.max&&n.addAttribute("spans",`${e.min}:${e.max}`),e.styleId&&(n.addAttribute("s",e.styleId),n.addAttribute("customFormat","1")),n.addAttribute("x14ac:dyDescent","0.25"),e.outlineLevel&&n.addAttribute("outlineLevel",e.outlineLevel),e.collapsed&&n.addAttribute("collapsed","1");const u=this.map.c;e.cells.forEach(s=>{u.render(n,s,r)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;if(n.name==="row"){this.numRowsSeen+=1;const e=n.attributes.spans?n.attributes.spans.split(":").map(u=>parseInt(u,10)):[void 0,void 0],r=this.model={number:parseInt(n.attributes.r,10),min:e[0],max:e[1],cells:[]};return n.attributes.s&&(r.styleId=parseInt(n.attributes.s,10)),a.parseBoolean(n.attributes.hidden)&&(r.hidden=!0),a.parseBoolean(n.attributes.bestFit)&&(r.bestFit=!0),n.attributes.ht&&(r.height=parseFloat(n.attributes.ht)),n.attributes.outlineLevel&&(r.outlineLevel=parseInt(n.attributes.outlineLevel,10)),a.parseBoolean(n.attributes.collapsed)&&(r.collapsed=!0),!0}return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser){if(!this.parser.parseClose(n)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(n,e){n.style=n.styleId?e.styles.getStyleModel(n.styleId):{},n.styleId!==void 0&&(n.styleId=void 0);const r=this.map.c;n.cells.forEach(u=>{r.reconcile(u,e)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(t,b,m){const c=t("../../../utils/under-dash"),a=t("../base-xform");b.exports=class extends a{get tag(){return"sheetFormatPr"}render(o,n){if(n){const e={defaultRowHeight:n.defaultRowHeight,outlineLevelRow:n.outlineLevelRow,outlineLevelCol:n.outlineLevelCol,"x14ac:dyDescent":n.dyDescent};n.defaultColWidth&&(e.defaultColWidth=n.defaultColWidth),n.defaultRowHeight&&n.defaultRowHeight===15||(e.customHeight="1"),c.some(e,r=>r!==void 0)&&o.leafNode("sheetFormatPr",e)}}parseOpen(o){return o.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(o.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(o.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(o.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(o.attributes.outlineLevelCol||"0",10)},o.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(o.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(t,b,m){const c=t("../base-xform"),a=t("../style/color-xform"),o=t("./page-setup-properties-xform"),n=t("./outline-properties-xform");b.exports=class extends c{constructor(){super(),this.map={tabColor:new a("tabColor"),pageSetUpPr:new o,outlinePr:new n}}get tag(){return"sheetPr"}render(e,r){if(r){e.addRollback(),e.openNode("sheetPr");let u=!1;u=this.map.tabColor.render(e,r.tabColor)||u,u=this.map.pageSetUpPr.render(e,r.pageSetup)||u,u=this.map.outlinePr.render(e,r.outlineProperties)||u,u?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(t,b,m){const c=t("../../../utils/under-dash"),a=t("../base-xform");function o(e,r){return e?r:void 0}function n(e,r){return e===r||void 0}b.exports=class extends a{get tag(){return"sheetProtection"}render(e,r){if(r){const u={sheet:o(r.sheet,"1"),selectLockedCells:r.selectLockedCells===!1?"1":void 0,selectUnlockedCells:r.selectUnlockedCells===!1?"1":void 0,formatCells:o(r.formatCells,"0"),formatColumns:o(r.formatColumns,"0"),formatRows:o(r.formatRows,"0"),insertColumns:o(r.insertColumns,"0"),insertRows:o(r.insertRows,"0"),insertHyperlinks:o(r.insertHyperlinks,"0"),deleteColumns:o(r.deleteColumns,"0"),deleteRows:o(r.deleteRows,"0"),sort:o(r.sort,"0"),autoFilter:o(r.autoFilter,"0"),pivotTables:o(r.pivotTables,"0")};r.sheet&&(u.algorithmName=r.algorithmName,u.hashValue=r.hashValue,u.saltValue=r.saltValue,u.spinCount=r.spinCount,u.objects=o(r.objects===!1,"1"),u.scenarios=o(r.scenarios===!1,"1")),c.some(u,s=>s!==void 0)&&e.leafNode(this.tag,u)}}parseOpen(e){switch(e.name){case this.tag:return this.model={sheet:n(e.attributes.sheet,"1"),objects:e.attributes.objects!=="1"&&void 0,scenarios:e.attributes.scenarios!=="1"&&void 0,selectLockedCells:e.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:e.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:n(e.attributes.formatCells,"0"),formatColumns:n(e.attributes.formatColumns,"0"),formatRows:n(e.attributes.formatRows,"0"),insertColumns:n(e.attributes.insertColumns,"0"),insertRows:n(e.attributes.insertRows,"0"),insertHyperlinks:n(e.attributes.insertHyperlinks,"0"),deleteColumns:n(e.attributes.deleteColumns,"0"),deleteRows:n(e.attributes.deleteRows,"0"),sort:n(e.attributes.sort,"0"),autoFilter:n(e.attributes.autoFilter,"0"),pivotTables:n(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(t,b,m){const c=t("../../../utils/col-cache"),a=t("../base-xform"),o={frozen:"frozen",frozenSplit:"frozen",split:"split"};b.exports=class extends a{get tag(){return"sheetView"}prepare(n){switch(n.state){case"frozen":case"split":break;default:n.state="normal"}}render(n,e){n.openNode("sheetView",{workbookViewId:e.workbookViewId||0});const r=function(p,d,v){v&&n.addAttribute(p,d)};let u,s,l,f;switch(r("rightToLeft","1",e.rightToLeft===!0),r("tabSelected","1",e.tabSelected),r("showRuler","0",e.showRuler===!1),r("showRowColHeaders","0",e.showRowColHeaders===!1),r("showGridLines","0",e.showGridLines===!1),r("zoomScale",e.zoomScale,e.zoomScale),r("zoomScaleNormal",e.zoomScaleNormal,e.zoomScaleNormal),r("view",e.style,e.style),e.state){case"frozen":s=e.xSplit||0,l=e.ySplit||0,u=e.topLeftCell||c.getAddress(l+1,s+1).address,f=(e.xSplit&&e.ySplit?"bottomRight":e.xSplit&&"topRight")||"bottomLeft",n.leafNode("pane",{xSplit:e.xSplit||void 0,ySplit:e.ySplit||void 0,topLeftCell:u,activePane:f,state:"frozen"}),n.leafNode("selection",{pane:f,activeCell:e.activeCell,sqref:e.activeCell});break;case"split":e.activePane==="topLeft"&&(e.activePane=void 0),n.leafNode("pane",{xSplit:e.xSplit||void 0,ySplit:e.ySplit||void 0,topLeftCell:e.topLeftCell,activePane:e.activePane}),n.leafNode("selection",{pane:e.activePane,activeCell:e.activeCell,sqref:e.activeCell});break;case"normal":e.activeCell&&n.leafNode("selection",{activeCell:e.activeCell,sqref:e.activeCell})}n.closeNode()}parseOpen(n){switch(n.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(n.attributes.workbookViewId,10),rightToLeft:n.attributes.rightToLeft==="1",tabSelected:n.attributes.tabSelected==="1",showRuler:n.attributes.showRuler!=="0",showRowColHeaders:n.attributes.showRowColHeaders!=="0",showGridLines:n.attributes.showGridLines!=="0",zoomScale:parseInt(n.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(n.attributes.zoomScaleNormal||"100",10),style:n.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(n.attributes.xSplit||"0",10),ySplit:parseInt(n.attributes.ySplit||"0",10),topLeftCell:n.attributes.topLeftCell,activePane:n.attributes.activePane||"topLeft",state:n.attributes.state},!0;case"selection":{const e=n.attributes.pane||"topLeft";return this.selections[e]={pane:e,activeCell:n.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(n){let e,r;switch(n){case"sheetView":return this.sheetView&&this.pane?(e=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:o[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(e.activePane=this.pane.activePane),r=this.selections[this.pane.activePane],r&&r.activeCell&&(e.activeCell=r.activeCell),this.sheetView.style&&(e.style=this.sheetView.style)):(e=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},r=this.selections.topLeft,r&&r.activeCell&&(e.activeCell=r.activeCell),this.sheetView.style&&(e.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"tablePart"}render(a,o){o&&a.leafNode(this.tag,{"r:id":o.rId})}parseOpen(a){switch(a.name){case this.tag:return this.model={rId:a.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(t,b,m){const c=t("../../../utils/under-dash"),a=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),n=t("../../rel-type"),e=t("./merges"),r=t("../base-xform"),u=t("../list-xform"),s=t("./row-xform"),l=t("./col-xform"),f=t("./dimension-xform"),p=t("./hyperlink-xform"),d=t("./merge-cell-xform"),v=t("./data-validations-xform"),g=t("./sheet-properties-xform"),k=t("./sheet-format-properties-xform"),C=t("./sheet-view-xform"),B=t("./sheet-protection-xform"),N=t("./page-margins-xform"),q=t("./page-setup-xform"),j=t("./print-options-xform"),P=t("./auto-filter-xform"),V=t("./picture-xform"),z=t("./drawing-xform"),L=t("./table-part-xform"),A=t("./row-breaks-xform"),T=t("./header-footer-xform"),_=t("./cf/conditional-formattings-xform"),y=t("./ext-lst-xform"),w=(S,E)=>{if(!E||!E.length)return S;if(!S||!S.length)return E;const I={},O={};return S.forEach(W=>{I[W.ref]=W,W.rules.forEach(H=>{const{x14Id:K}=H;K&&(O[K]=H)})}),E.forEach(W=>{W.rules.forEach(H=>{const K=O[H.x14Id];K?((D,Y)=>{Object.keys(Y).forEach(F=>{const R=D[F],U=Y[F];R===void 0&&U!==void 0&&(D[F]=U)})})(K,H):I[W.ref]?I[W.ref].rules.push(H):S.push({ref:W.ref,rules:[H]})})}),S};class x extends r{constructor(E){super();const{maxRows:I,maxCols:O,ignoreNodes:W}=E||{};this.ignoreNodes=W||[],this.map={sheetPr:new g,dimension:new f,sheetViews:new u({tag:"sheetViews",count:!1,childXform:new C}),sheetFormatPr:new k,cols:new u({tag:"cols",count:!1,childXform:new l}),sheetData:new u({tag:"sheetData",count:!1,empty:!0,childXform:new s({maxItems:O}),maxItems:I}),autoFilter:new P,mergeCells:new u({tag:"mergeCells",count:!0,childXform:new d}),rowBreaks:new A,hyperlinks:new u({tag:"hyperlinks",count:!1,childXform:new p}),pageMargins:new N,dataValidations:new v,pageSetup:new q,headerFooter:new T,printOptions:new j,picture:new V,drawing:new z,sheetProtection:new B,tableParts:new u({tag:"tableParts",count:!0,childXform:new L}),conditionalFormatting:new _,extLst:new y}}prepare(E,I){I.merges=new e,E.hyperlinks=I.hyperlinks=[],E.comments=I.comments=[],I.formulae={},I.siFormulae=0,this.map.cols.prepare(E.cols,I),this.map.sheetData.prepare(E.rows,I),this.map.conditionalFormatting.prepare(E.conditionalFormattings,I),E.mergeCells=I.merges.mergeCells;const O=E.rels=[];function W(D){return"rId"+(D.length+1)}if(E.hyperlinks.forEach(D=>{const Y=W(O);D.rId=Y,O.push({Id:Y,Type:n.Hyperlink,Target:D.target,TargetMode:"External"})}),E.comments.length>0){const D={Id:W(O),Type:n.Comments,Target:`../comments${E.id}.xml`};O.push(D);const Y={Id:W(O),Type:n.VmlDrawing,Target:`../drawings/vmlDrawing${E.id}.vml`};O.push(Y),E.comments.forEach(F=>{F.refAddress=a.decodeAddress(F.ref)}),I.commentRefs.push({commentName:"comments"+E.id,vmlDrawing:"vmlDrawing"+E.id})}const H=[];let K;E.media.forEach(D=>{if(D.type==="background"){const Y=W(O);K=I.media[D.imageId],O.push({Id:Y,Type:n.Image,Target:`../media/${K.name}.${K.extension}`}),E.background={rId:Y},E.image=I.media[D.imageId]}else if(D.type==="image"){let{drawing:Y}=E;K=I.media[D.imageId],Y||(Y=E.drawing={rId:W(O),name:"drawing"+ ++I.drawingsCount,anchors:[],rels:[]},I.drawings.push(Y),O.push({Id:Y.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${Y.name}.xml`}));let F=this.preImageId===D.imageId?H[D.imageId]:H[Y.rels.length];F||(F=W(Y.rels),H[Y.rels.length]=F,Y.rels.push({Id:F,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${K.name}.${K.extension}`}));const R={picture:{rId:F},range:D.range};if(D.hyperlinks&&D.hyperlinks.hyperlink){const U=W(Y.rels);H[Y.rels.length]=U,R.picture.hyperlinks={tooltip:D.hyperlinks.tooltip,rId:U},Y.rels.push({Id:U,Type:n.Hyperlink,Target:D.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=D.imageId,Y.anchors.push(R)}}),E.tables.forEach(D=>{const Y=W(O);D.rId=Y,O.push({Id:Y,Type:n.Table,Target:"../tables/"+D.target}),D.columns.forEach(F=>{const{style:R}=F;R&&(F.dxfId=I.styles.addDxfStyle(R))})}),this.map.extLst.prepare(E,I)}render(E,I){E.openXml(o.StdDocAttributes),E.openNode("worksheet",x.WORKSHEET_ATTRIBUTES);const O=I.properties?{defaultRowHeight:I.properties.defaultRowHeight,dyDescent:I.properties.dyDescent,outlineLevelCol:I.properties.outlineLevelCol,outlineLevelRow:I.properties.outlineLevelRow}:void 0;I.properties&&I.properties.defaultColWidth&&(O.defaultColWidth=I.properties.defaultColWidth);const W={outlineProperties:I.properties&&I.properties.outlineProperties,tabColor:I.properties&&I.properties.tabColor,pageSetup:I.pageSetup&&I.pageSetup.fitToPage?{fitToPage:I.pageSetup.fitToPage}:void 0},H=I.pageSetup&&I.pageSetup.margins,K={showRowColHeaders:I.pageSetup&&I.pageSetup.showRowColHeaders,showGridLines:I.pageSetup&&I.pageSetup.showGridLines,horizontalCentered:I.pageSetup&&I.pageSetup.horizontalCentered,verticalCentered:I.pageSetup&&I.pageSetup.verticalCentered},D=I.sheetProtection;this.map.sheetPr.render(E,W),this.map.dimension.render(E,I.dimensions),this.map.sheetViews.render(E,I.views),this.map.sheetFormatPr.render(E,O),this.map.cols.render(E,I.cols),this.map.sheetData.render(E,I.rows),this.map.sheetProtection.render(E,D),this.map.autoFilter.render(E,I.autoFilter),this.map.mergeCells.render(E,I.mergeCells),this.map.conditionalFormatting.render(E,I.conditionalFormattings),this.map.dataValidations.render(E,I.dataValidations),this.map.hyperlinks.render(E,I.hyperlinks),this.map.printOptions.render(E,K),this.map.pageMargins.render(E,H),this.map.pageSetup.render(E,I.pageSetup),this.map.headerFooter.render(E,I.headerFooter),this.map.rowBreaks.render(E,I.rowBreaks),this.map.drawing.render(E,I.drawing),this.map.picture.render(E,I.background),this.map.tableParts.render(E,I.tables),this.map.extLst.render(E,I),I.rels&&I.rels.forEach(Y=>{Y.Type===n.VmlDrawing&&E.leafNode("legacyDrawing",{"r:id":Y.Id})}),E.closeNode()}parseOpen(E){return this.parser?(this.parser.parseOpen(E),!0):E.name==="worksheet"?(c.each(this.map,I=>{I.reset()}),!0):(this.map[E.name]&&!this.ignoreNodes.includes(E.name)&&(this.parser=this.map[E.name],this.parser.parseOpen(E)),!0)}parseText(E){this.parser&&this.parser.parseText(E)}parseClose(E){if(this.parser)return this.parser.parseClose(E)||(this.parser=void 0),!0;switch(E){case"worksheet":{const I=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(I.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(I.outlineProperties=this.map.sheetPr.model.outlineProperties);const O={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},W=Object.assign(O,this.map.pageSetup.model,this.map.printOptions.model),H=w(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:I,views:this.map.sheetViews.model,pageSetup:W,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:H},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(E,I){const O=(E.relationships||[]).reduce((H,K)=>{if(H[K.Id]=K,K.Type===n.Comments&&(E.comments=I.comments[K.Target].comments),K.Type===n.VmlDrawing&&E.comments&&E.comments.length){const D=I.vmlDrawings[K.Target].comments;E.comments.forEach((Y,F)=>{Y.note=Object.assign({},Y.note,D[F])})}return H},{});if(I.commentsMap=(E.comments||[]).reduce((H,K)=>(K.ref&&(H[K.ref]=K),H),{}),I.hyperlinkMap=(E.hyperlinks||[]).reduce((H,K)=>(K.rId&&(H[K.address]=O[K.rId].Target),H),{}),I.formulae={},E.rows=E.rows&&E.rows.filter(Boolean)||[],E.rows.forEach(H=>{H.cells=H.cells&&H.cells.filter(Boolean)||[]}),this.map.cols.reconcile(E.cols,I),this.map.sheetData.reconcile(E.rows,I),this.map.conditionalFormatting.reconcile(E.conditionalFormattings,I),E.media=[],E.drawing){const H=O[E.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(H){const K=H[1];I.drawings[K].anchors.forEach(D=>{if(D.medium){const Y={type:"image",imageId:D.medium.index,range:D.range,hyperlinks:D.picture.hyperlinks};E.media.push(Y)}})}}const W=E.background&&O[E.background.rId];if(W){const H=W.Target.split("/media/")[1],K=I.mediaIndex&&I.mediaIndex[H];K!==void 0&&E.media.push({type:"background",imageId:K})}E.tables=(E.tables||[]).map(H=>{const K=O[H.rId];return I.tables[K.Target]}),delete E.relationships,delete E.hyperlinks,delete E.comments}}x.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},b.exports=x},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.attr=a.attr}render(a,o){o&&(a.openNode(this.tag),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs,this._format=a.format||function(o){try{return Number.isNaN(o.getTime())?"":o.toISOString()}catch{return""}},this._parse=a.parse||function(o){return new Date(o)}}render(a,o){o&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,this._format(o)):a.writeText(this._format(o)),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.attr?this.model=this._parse(a.attributes[this.attr]):this.text=[])}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs,this.zero=a.zero}render(a,o){(o||this.zero)&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,o):a.writeText(o),a.closeNode())}parseOpen(a){return a.name===this.tag&&(this.attr?this.model=parseInt(a.attributes[this.attr],10):this.text=[],!0)}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs}render(a,o){o!==void 0&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,o):a.writeText(o),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.attr?this.model=a.attributes[this.attr]:this.text=[])}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(t,b,m){const c=t("./base-xform"),a=t("../../utils/xml-stream");b.exports=class extends c{constructor(o){super(),this._model=o}render(o){if(!this._xml){const n=new a;(function e(r,u){r.openNode(u.tag,u.$),u.c&&u.c.forEach(s=>{e(r,s)}),u.t&&r.writeText(u.t),r.closeNode()})(n,this._model),this._xml=n.xml}o.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(o){switch(o){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(t,b,m){const c=t("./text-xform"),a=t("./rich-text-xform"),o=t("../base-xform");b.exports=class extends o{constructor(){super(),this.map={r:new a,t:new c}}get tag(){return"rPh"}render(n,e){if(n.openNode(this.tag,{sb:e.sb||0,eb:e.eb||0}),e&&e.hasOwnProperty("richText")&&e.richText){const{r}=this.map;e.richText.forEach(u=>{r.render(n,u)})}else e&&this.map.t.render(n,e.text);n.closeNode()}parseOpen(n){const{name:e}=n;return this.parser?(this.parser.parseOpen(n),!0):e===this.tag?(this.model={sb:parseInt(n.attributes.sb,10),eb:parseInt(n.attributes.eb,10)},!0):(this.parser=this.map[e],!!this.parser&&(this.parser.parseOpen(n),!0))}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser){if(!this.parser.parseClose(n)){switch(n){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(n){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(t,b,m){const c=t("./text-xform"),a=t("../style/font-xform"),o=t("../base-xform");class n extends o{constructor(r){super(),this.model=r}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new c)}get fontXform(){return this._fontXform||(this._fontXform=new a(n.FONT_OPTIONS))}render(r,u){u=u||this.model,r.openNode("r"),u.font&&this.fontXform.render(r,u.font),this.textXform.render(r,u.text),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(r),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){switch(r){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(r),!0}}}n.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},b.exports=n},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(t,b,m){const c=t("./text-xform"),a=t("./rich-text-xform"),o=t("./phonetic-text-xform"),n=t("../base-xform");b.exports=class extends n{constructor(e){super(),this.model=e,this.map={r:new a,t:new c,rPh:new o}}get tag(){return"si"}render(e,r){e.openNode(this.tag),r&&r.hasOwnProperty("richText")&&r.richText?r.richText.length?r.richText.forEach(u=>{this.map.r.render(e,u)}):this.map.t.render(e,""):r!=null&&this.map.t.render(e,r),e.closeNode()}parseOpen(e){const{name:r}=e;return this.parser?(this.parser.parseOpen(e),!0):r===this.tag?(this.model={},!0):(this.parser=this.map[r],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let r=this.model.richText;r||(r=this.model.richText=[]),r.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(t,b,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./shared-string-xform");b.exports=class extends a{constructor(n){super(),this.model=n||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new o)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(n){return this.model.values[n]}add(n){return n.richText?this.addRichText(n):this.addText(n)}addText(n){let e=this.hash[n];return e===void 0&&(e=this.hash[n]=this.model.values.length,this.model.values.push(n)),this.model.count++,e}addRichText(n){const e=this.sharedStringXform.toXml(n);let r=this.rich[e];return r===void 0&&(r=this.rich[e]=this.model.values.length,this.model.values.push(n)),this.model.count++,r}render(n,e){e=e||this._values,n.openXml(c.StdDocAttributes),n.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.count,uniqueCount:e.values.length});const r=this.sharedStringXform;e.values.forEach(u=>{r.render(n,u)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(n),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(n))}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(n){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+n)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"t"}render(a,o){a.openNode("t"),/^\s|\n|\s$/.test(o)&&a.addAttribute("xml:space","preserve"),a.writeText(o),a.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(a,o)=>String.fromCharCode(parseInt(o,16)))}parseOpen(a){switch(a.name){case"t":return this._text=[],!0;default:return!1}}parseText(a){this._text.push(a)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(t,b,m){const c=t("../../../doc/enums"),a=t("../../../utils/utils"),o=t("../base-xform"),n={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((r,u)=>(r[u]=!0,r),{}),horizontal(r){return this.horizontalValues[r]?r:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((r,u)=>(r[u]=!0,r),{}),vertical(r){return r==="middle"?"center":this.verticalValues[r]?r:void 0},wrapText:r=>!!r||void 0,shrinkToFit:r=>!!r||void 0,textRotation(r){switch(r){case"vertical":return r;default:return(r=a.validInt(r))>=-90&&r<=90?r:void 0}},indent:r=>(r=a.validInt(r),Math.max(0,r)),readingOrder(r){switch(r){case"ltr":return c.ReadingOrder.LeftToRight;case"rtl":return c.ReadingOrder.RightToLeft;default:return}}},e={toXml(r){if(r=n.textRotation(r)){if(r==="vertical")return 255;const u=Math.round(r);if(u>=0&&u<=90)return u;if(u<0&&u>=-90)return 90-u}},toModel(r){const u=a.validInt(r);if(u!==void 0){if(u===255)return"vertical";if(u>=0&&u<=90)return u;if(u>90&&u<=180)return 90-u}}};b.exports=class extends o{get tag(){return"alignment"}render(r,u){r.addRollback(),r.openNode("alignment");let s=!1;function l(f,p){p&&(r.addAttribute(f,p),s=!0)}l("horizontal",n.horizontal(u.horizontal)),l("vertical",n.vertical(u.vertical)),l("wrapText",!!n.wrapText(u.wrapText)&&"1"),l("shrinkToFit",!!n.shrinkToFit(u.shrinkToFit)&&"1"),l("indent",n.indent(u.indent)),l("textRotation",e.toXml(u.textRotation)),l("readingOrder",n.readingOrder(u.readingOrder)),r.closeNode(),s?r.commit():r.rollback()}parseOpen(r){const u={};let s=!1;function l(f,p,d){f&&(u[p]=d,s=!0)}l(r.attributes.horizontal,"horizontal",r.attributes.horizontal),l(r.attributes.vertical,"vertical",r.attributes.vertical==="center"?"middle":r.attributes.vertical),l(r.attributes.wrapText,"wrapText",a.parseBoolean(r.attributes.wrapText)),l(r.attributes.shrinkToFit,"shrinkToFit",a.parseBoolean(r.attributes.shrinkToFit)),l(r.attributes.indent,"indent",parseInt(r.attributes.indent,10)),l(r.attributes.textRotation,"textRotation",e.toModel(r.attributes.textRotation)),l(r.attributes.readingOrder,"readingOrder",r.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=s?u:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(t,b,m){const c=t("../base-xform"),a=t("../../../utils/utils"),o=t("./color-xform");class n extends c{constructor(r){super(),this.name=r,this.map={color:new o}}get tag(){return this.name}render(r,u,s){const l=u&&u.color||s||this.defaultColor;r.openNode(this.name),u&&u.style&&(r.addAttribute("style",u.style),l&&this.map.color.render(r,l)),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.name:{const{style:u}=r.attributes;return this.model=u?{style:u}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.parser=void 0),!0):(r===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(r){return n.validStyleValues[r]}}n.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((e,r)=>(e[r]=!0,e),{}),b.exports=class extends c{constructor(){super(),this.map={top:new n("top"),left:new n("left"),bottom:new n("bottom"),right:new n("right"),diagonal:new n("diagonal")}}render(e,r){const{color:u}=r;function s(l,f){l&&!l.color&&r.color&&(l={...l,color:r.color}),f.render(e,l,u)}e.openNode("border"),r.diagonal&&r.diagonal.style&&(r.diagonal.up&&e.addAttribute("diagonalUp","1"),r.diagonal.down&&e.addAttribute("diagonalDown","1")),s(r.left,this.map.left),s(r.right,this.map.right),s(r.top,this.map.top),s(r.bottom,this.map.bottom),s(r.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"border":return this.reset(),this.diagonalUp=a.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=a.parseBoolean(e.attributes.diagonalDown),!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if(e==="border"){const r=this.model={},u=function(s,l,f){l&&(f&&Object.assign(l,f),r[s]=l)};u("left",this.map.left.model),u("right",this.map.right.model),u("top",this.map.top.model),u("bottom",this.map.bottom.model),u("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{constructor(a){super(),this.name=a||"color"}get tag(){return this.name}render(a,o){return!!o&&(a.openNode(this.name),o.argb?a.addAttribute("rgb",o.argb):o.theme!==void 0?(a.addAttribute("theme",o.theme),o.tint!==void 0&&a.addAttribute("tint",o.tint)):o.indexed!==void 0?a.addAttribute("indexed",o.indexed):a.addAttribute("auto","1"),a.closeNode(),!0)}parseOpen(a){return a.name===this.name&&(a.attributes.rgb?this.model={argb:a.attributes.rgb}:a.attributes.theme?(this.model={theme:parseInt(a.attributes.theme,10)},a.attributes.tint&&(this.model.tint=parseFloat(a.attributes.tint))):a.attributes.indexed?this.model={indexed:parseInt(a.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(t,b,m){const c=t("../base-xform"),a=t("./alignment-xform"),o=t("./border-xform"),n=t("./fill-xform"),e=t("./font-xform"),r=t("./numfmt-xform"),u=t("./protection-xform");b.exports=class extends c{constructor(){super(),this.map={alignment:new a,border:new o,fill:new n,font:new e,numFmt:new r,protection:new u}}get tag(){return"dxf"}render(s,l){if(s.openNode(this.tag),l.font&&this.map.font.render(s,l.font),l.numFmt&&l.numFmtId){const f={id:l.numFmtId,formatCode:l.numFmt};this.map.numFmt.render(s,f)}l.fill&&this.map.fill.render(s,l.fill),l.alignment&&this.map.alignment.render(s,l.alignment),l.border&&this.map.border.render(s,l.border),l.protection&&this.map.protection.render(s,l.protection),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s),!0}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.parser=void 0),!0):s!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(t,b,m){const c=t("../base-xform"),a=t("./color-xform");class o extends c{constructor(){super(),this.map={color:new a}}get tag(){return"stop"}render(s,l){s.openNode("stop"),s.addAttribute("position",l.position),this.map.color.render(s,l.color),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"stop":return this.model={position:parseFloat(s.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(s),!0;default:return!1}}parseText(){}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class n extends c{constructor(){super(),this.map={fgColor:new a("fgColor"),bgColor:new a("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(s,l){s.openNode("patternFill"),s.addAttribute("patternType",l.pattern),l.fgColor&&this.map.fgColor.render(s,l.fgColor),l.bgColor&&this.map.bgColor.render(s,l.bgColor),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"patternFill":return this.model={type:"pattern",pattern:s.attributes.patternType},!0;default:return this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!0)}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.parser.model&&(this.model[s]=this.parser.model),this.parser=void 0),!0)}}class e extends c{constructor(){super(),this.map={stop:new o}}get name(){return"gradient"}get tag(){return"gradientFill"}render(s,l){switch(s.openNode("gradientFill"),l.gradient){case"angle":s.addAttribute("degree",l.degree);break;case"path":s.addAttribute("type","path"),l.center.left&&(s.addAttribute("left",l.center.left),l.center.right===void 0&&s.addAttribute("right",l.center.left)),l.center.right&&s.addAttribute("right",l.center.right),l.center.top&&(s.addAttribute("top",l.center.top),l.center.bottom===void 0&&s.addAttribute("bottom",l.center.top)),l.center.bottom&&s.addAttribute("bottom",l.center.bottom)}const f=this.map.stop;l.stops.forEach(p=>{f.render(s,p)}),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"gradientFill":{const l=this.model={stops:[]};return s.attributes.degree?(l.gradient="angle",l.degree=parseInt(s.attributes.degree,10)):s.attributes.type==="path"&&(l.gradient="path",l.center={left:s.attributes.left?parseFloat(s.attributes.left):0,top:s.attributes.top?parseFloat(s.attributes.top):0},s.attributes.right!==s.attributes.left&&(l.center.right=s.attributes.right?parseFloat(s.attributes.right):0),s.attributes.bottom!==s.attributes.top&&(l.center.bottom=s.attributes.bottom?parseFloat(s.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(s),!0;default:return!1}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class r extends c{constructor(){super(),this.map={patternFill:new n,gradientFill:new e}}get tag(){return"fill"}render(s,l){switch(s.addRollback(),s.openNode("fill"),l.type){case"pattern":this.map.patternFill.render(s,l);break;case"gradient":this.map.gradientFill.render(s,l);break;default:return void s.rollback()}s.closeNode(),s.commit()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"fill":return this.model={},!0;default:return this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!0)}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(this.parser.parseClose(s)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(s){return r.validPatternValues[s]}}r.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((u,s)=>(u[s]=!0,u),{}),r.StopXform=o,r.PatternFillXform=n,r.GradientFillXform=e,b.exports=r},{"../base-xform":32,"./color-xform":128}],131:[function(t,b,m){const c=t("./color-xform"),a=t("../simple/boolean-xform"),o=t("../simple/integer-xform"),n=t("../simple/string-xform"),e=t("./underline-xform"),r=t("../../../utils/under-dash"),u=t("../base-xform");class s extends u{constructor(f){super(),this.options=f||s.OPTIONS,this.map={b:{prop:"bold",xform:new a({tag:"b",attr:"val"})},i:{prop:"italic",xform:new a({tag:"i",attr:"val"})},u:{prop:"underline",xform:new e},charset:{prop:"charset",xform:new o({tag:"charset",attr:"val"})},color:{prop:"color",xform:new c},condense:{prop:"condense",xform:new a({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new a({tag:"extend",attr:"val"})},family:{prop:"family",xform:new o({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new a({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new n({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new n({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new a({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new a({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new o({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new n({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(f,p){const{map:d}=this;f.openNode(this.options.tagName),r.each(this.map,(v,g)=>{d[g].xform.render(f,p[v.prop])}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;if(this.map[f.name])return this.parser=this.map[f.name].xform,this.parser.parseOpen(f);switch(f.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser&&!this.parser.parseClose(f)){const p=this.map[f];return this.parser.model&&(this.model[p.prop]=this.parser.model),this.parser=void 0,!0}switch(f){case this.options.tagName:return!1;default:return!0}}}s.OPTIONS={tagName:"font",fontNameTag:"name"},b.exports=s},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(t,b,m){const c=t("../../../utils/under-dash"),a=t("../../defaultnumformats"),o=t("../base-xform"),n=function(){const r={};return c.each(a,(u,s)=>{u.f&&(r[u.f]=parseInt(s,10))}),r}();class e extends o{constructor(u,s){super(),this.id=u,this.formatCode=s}get tag(){return"numFmt"}render(u,s){u.leafNode("numFmt",{numFmtId:s.id,formatCode:s.formatCode})}parseOpen(u){switch(u.name){case"numFmt":return this.model={id:parseInt(u.attributes.numFmtId,10),formatCode:u.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}e.getDefaultFmtId=function(r){return n[r]},e.getDefaultFmtCode=function(r){return a[r]&&a[r].f},b.exports=e},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(t,b,m){const c=t("../base-xform"),a={boolean:(o,n)=>o===void 0?n:o};b.exports=class extends c{get tag(){return"protection"}render(o,n){o.addRollback(),o.openNode("protection");let e=!1;function r(u,s){s!==void 0&&(o.addAttribute(u,s),e=!0)}r("locked",a.boolean(n.locked,!0)?void 0:"0"),r("hidden",a.boolean(n.hidden,!1)?"1":void 0),o.closeNode(),e?o.commit():o.rollback()}parseOpen(o){const n={locked:o.attributes.locked!=="0",hidden:o.attributes.hidden==="1"},e=!n.locked||n.hidden;this.model=e?n:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(t,b,m){const c=t("../base-xform"),a=t("./alignment-xform"),o=t("./protection-xform");b.exports=class extends c{constructor(n){super(),this.xfId=!(!n||!n.xfId),this.map={alignment:new a,protection:new o}}get tag(){return"xf"}render(n,e){n.openNode("xf",{numFmtId:e.numFmtId||0,fontId:e.fontId||0,fillId:e.fillId||0,borderId:e.borderId||0}),this.xfId&&n.addAttribute("xfId",e.xfId||0),e.numFmtId&&n.addAttribute("applyNumberFormat","1"),e.fontId&&n.addAttribute("applyFont","1"),e.fillId&&n.addAttribute("applyFill","1"),e.borderId&&n.addAttribute("applyBorder","1"),e.alignment&&n.addAttribute("applyAlignment","1"),e.protection&&n.addAttribute("applyProtection","1"),e.alignment&&this.map.alignment.render(n,e.alignment),e.protection&&this.map.protection.render(n,e.protection),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"xf":return this.model={numFmtId:parseInt(n.attributes.numFmtId,10),fontId:parseInt(n.attributes.fontId,10),fillId:parseInt(n.attributes.fillId,10),borderId:parseInt(n.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(n.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(n),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(n),!0;default:return!1}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):n!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(t,b,m){const c=t("../../../doc/enums"),a=t("../../../utils/xml-stream"),o=t("../base-xform"),n=t("../static-xform"),e=t("../list-xform"),r=t("./font-xform"),u=t("./fill-xform"),s=t("./border-xform"),l=t("./numfmt-xform"),f=t("./style-xform"),p=t("./dxf-xform");class d extends o{constructor(g){super(),this.map={numFmts:new e({tag:"numFmts",count:!0,childXform:new l}),fonts:new e({tag:"fonts",count:!0,childXform:new r,$:{"x14ac:knownFonts":1}}),fills:new e({tag:"fills",count:!0,childXform:new u}),borders:new e({tag:"borders",count:!0,childXform:new s}),cellStyleXfs:new e({tag:"cellStyleXfs",count:!0,childXform:new f}),cellXfs:new e({tag:"cellXfs",count:!0,childXform:new f({xfId:!0})}),dxfs:new e({tag:"dxfs",always:!0,count:!0,childXform:new p}),numFmt:new l,font:new r,fill:new u,border:new s,style:new f({xfId:!0}),cellStyles:d.STATIC_XFORMS.cellStyles,tableStyles:d.STATIC_XFORMS.tableStyles,extLst:d.STATIC_XFORMS.extLst},g&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(g,k){k=k||this.model,g.openXml(a.StdDocAttributes),g.openNode("styleSheet",d.STYLESHEET_ATTRIBUTES),this.index?(k.numFmts&&k.numFmts.length&&(g.openNode("numFmts",{count:k.numFmts.length}),k.numFmts.forEach(C=>{g.writeXml(C)}),g.closeNode()),k.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),g.openNode("fonts",{count:k.fonts.length,"x14ac:knownFonts":1}),k.fonts.forEach(C=>{g.writeXml(C)}),g.closeNode(),g.openNode("fills",{count:k.fills.length}),k.fills.forEach(C=>{g.writeXml(C)}),g.closeNode(),g.openNode("borders",{count:k.borders.length}),k.borders.forEach(C=>{g.writeXml(C)}),g.closeNode(),this.map.cellStyleXfs.render(g,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),g.openNode("cellXfs",{count:k.styles.length}),k.styles.forEach(C=>{g.writeXml(C)}),g.closeNode()):(this.map.numFmts.render(g,k.numFmts),this.map.fonts.render(g,k.fonts),this.map.fills.render(g,k.fills),this.map.borders.render(g,k.borders),this.map.cellStyleXfs.render(g,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(g,k.styles)),d.STATIC_XFORMS.cellStyles.render(g),this.map.dxfs.render(g,k.dxfs),d.STATIC_XFORMS.tableStyles.render(g),d.STATIC_XFORMS.extLst.render(g),g.closeNode()}parseOpen(g){if(this.parser)return this.parser.parseOpen(g),!0;switch(g.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[g.name],this.parser&&this.parser.parseOpen(g),!0}}parseText(g){this.parser&&this.parser.parseText(g)}parseClose(g){if(this.parser)return this.parser.parseClose(g)||(this.parser=void 0),!0;switch(g){case"styleSheet":{this.model={};const k=(C,B)=>{B.model&&B.model.length&&(this.model[C]=B.model)};if(k("numFmts",this.map.numFmts),k("fonts",this.map.fonts),k("fills",this.map.fills),k("borders",this.map.borders),k("styles",this.map.cellXfs),k("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const C=this.index.numFmt;this.model.numFmts.forEach(B=>{C[B.id]=B.formatCode})}return!1}default:return!0}}addStyleModel(g,k){if(!g)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(g))return this.weakMap.get(g);const C={};if(k=k||c.ValueType.Number,g.numFmt)C.numFmtId=this._addNumFmtStr(g.numFmt);else switch(k){case c.ValueType.Number:C.numFmtId=this._addNumFmtStr("General");break;case c.ValueType.Date:C.numFmtId=this._addNumFmtStr("mm-dd-yy")}g.font&&(C.fontId=this._addFont(g.font)),g.border&&(C.borderId=this._addBorder(g.border)),g.fill&&(C.fillId=this._addFill(g.fill)),g.alignment&&(C.alignment=g.alignment),g.protection&&(C.protection=g.protection);const B=this._addStyle(C);return this.weakMap&&this.weakMap.set(g,B),B}getStyleModel(g){const k=this.model.styles[g];if(!k)return null;let C=this.index.model[g];if(C)return C;if(C=this.index.model[g]={},k.numFmtId){const N=this.index.numFmt[k.numFmtId]||l.getDefaultFmtCode(k.numFmtId);N&&(C.numFmt=N)}function B(N,q,j){if(j||j===0){const P=q[j];P&&(C[N]=P)}}return B("font",this.model.fonts,k.fontId),B("border",this.model.borders,k.borderId),B("fill",this.model.fills,k.fillId),k.alignment&&(C.alignment=k.alignment),k.protection&&(C.protection=k.protection),C}addDxfStyle(g){return g.numFmt&&(g.numFmtId=this._addNumFmtStr(g.numFmt)),this.model.dxfs.push(g),this.model.dxfs.length-1}getDxfStyle(g){return this.model.dxfs[g]}_addStyle(g){const k=this.map.style.toXml(g);let C=this.index.style[k];return C===void 0&&(C=this.index.style[k]=this.model.styles.length,this.model.styles.push(k)),C}_addNumFmtStr(g){let k=l.getDefaultFmtId(g);if(k!==void 0||(k=this.index.numFmt[g],k!==void 0))return k;k=this.index.numFmt[g]=164+this.model.numFmts.length;const C=this.map.numFmt.toXml({id:k,formatCode:g});return this.model.numFmts.push(C),k}_addFont(g){const k=this.map.font.toXml(g);let C=this.index.font[k];return C===void 0&&(C=this.index.font[k]=this.model.fonts.length,this.model.fonts.push(k)),C}_addBorder(g){const k=this.map.border.toXml(g);let C=this.index.border[k];return C===void 0&&(C=this.index.border[k]=this.model.borders.length,this.model.borders.push(k)),C}_addFill(g){const k=this.map.fill.toXml(g);let C=this.index.fill[k];return C===void 0&&(C=this.index.fill[k]=this.model.fills.length,this.model.fills.push(k)),C}}d.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},d.STATIC_XFORMS={cellStyles:new n({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new n({tag:"dxfs",$:{count:0}}),tableStyles:new n({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new n({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},d.Mock=class extends d{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(v){return v.autodrain(),Promise.resolve()}addStyleModel(v,g){switch(g){case c.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const v={numFmtId:l.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(v)}return this._dateStyleId}getStyleModel(){return{}}},b.exports=d},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(t,b,m){const c=t("../base-xform");class a extends c{constructor(n){super(),this.model=n}get tag(){return"u"}render(n,e){if((e=e||this.model)===!0)n.leafNode("u");else{const r=a.Attributes[e];r&&n.leafNode("u",r)}}parseOpen(n){n.name==="u"&&(this.model=n.attributes.val||!0)}parseText(){}parseClose(){return!1}}a.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},b.exports=a},{"../base-xform":32}],137:[function(t,b,m){const c=t("../base-xform"),a=t("./filter-column-xform");b.exports=class extends c{constructor(){super(),this.map={filterColumn:new a}}get tag(){return"autoFilter"}prepare(o){o.columns.forEach((n,e)=>{this.map.filterColumn.prepare(n,{index:e})})}render(o,n){return o.openNode(this.tag,{ref:n.autoFilterRef}),n.columns.forEach(e=>{this.map.filterColumn.render(o,e)}),o.closeNode(),!0}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:return this.model={autoFilterRef:o.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[o.name],this.parser)return this.parseOpen(o),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(o))}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(o){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+o)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"customFilter"}render(a,o){a.leafNode(this.tag,{val:o.val,operator:o.operator})}parseOpen(a){return a.name===this.tag&&(this.model={val:a.attributes.val,operator:a.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(t,b,m){const c=t("../base-xform"),a=t("../list-xform"),o=t("./custom-filter-xform"),n=t("./filter-xform");b.exports=class extends c{constructor(){super(),this.map={customFilters:new a({tag:"customFilters",count:!1,empty:!0,childXform:new o}),filters:new a({tag:"filters",count:!1,empty:!0,childXform:new n})}}get tag(){return"filterColumn"}prepare(e,r){e.colId=r.index.toString()}render(e,r){return r.customFilters?(e.openNode(this.tag,{colId:r.colId,hiddenButton:r.filterButton?"0":"1"}),this.map.customFilters.render(e,r.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:r.colId,hiddenButton:r.filterButton?"0":"1"}),!0)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{attributes:r}=e;switch(e.name){case this.tag:return this.model={filterButton:r.hiddenButton==="0"},!0;default:if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"filter"}render(a,o){a.leafNode(this.tag,{val:o.val})}parseOpen(a){return a.name===this.tag&&(this.model={val:a.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"tableColumn"}prepare(a,o){a.id=o.index+1}render(a,o){return a.leafNode(this.tag,{id:o.id.toString(),name:o.name,totalsRowLabel:o.totalsRowLabel,totalsRowFunction:o.totalsRowFunction,dxfId:o.dxfId}),!0}parseOpen(a){if(a.name===this.tag){const{attributes:o}=a;return this.model={name:o.name,totalsRowLabel:o.totalsRowLabel,totalsRowFunction:o.totalsRowFunction,dxfId:o.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(t,b,m){const c=t("../base-xform");b.exports=class extends c{get tag(){return"tableStyleInfo"}render(a,o){return a.leafNode(this.tag,{name:o.theme?o.theme:void 0,showFirstColumn:o.showFirstColumn?"1":"0",showLastColumn:o.showLastColumn?"1":"0",showRowStripes:o.showRowStripes?"1":"0",showColumnStripes:o.showColumnStripes?"1":"0"}),!0}parseOpen(a){if(a.name===this.tag){const{attributes:o}=a;return this.model={theme:o.name?o.name:null,showFirstColumn:o.showFirstColumn==="1",showLastColumn:o.showLastColumn==="1",showRowStripes:o.showRowStripes==="1",showColumnStripes:o.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(t,b,m){const c=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("../list-xform"),n=t("./auto-filter-xform"),e=t("./table-column-xform"),r=t("./table-style-info-xform");class u extends a{constructor(){super(),this.map={autoFilter:new n,tableColumns:new o({tag:"tableColumns",count:!0,empty:!0,childXform:new e}),tableStyleInfo:new r}}prepare(l,f){this.map.autoFilter.prepare(l),this.map.tableColumns.prepare(l.columns,f)}get tag(){return"table"}render(l,f){l.openXml(c.StdDocAttributes),l.openNode(this.tag,{...u.TABLE_ATTRIBUTES,id:f.id,name:f.name,displayName:f.displayName||f.name,ref:f.tableRef,totalsRowCount:f.totalsRow?"1":void 0,totalsRowShown:f.totalsRow?void 0:"1",headerRowCount:f.headerRow?"1":"0"}),this.map.autoFilter.render(l,f),this.map.tableColumns.render(l,f.columns),this.map.tableStyleInfo.render(l,f.style),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;const{name:f,attributes:p}=l;switch(f){case this.tag:this.reset(),this.model={name:p.name,displayName:p.displayName||p.name,tableRef:p.ref,totalsRow:p.totalsRowCount==="1",headerRow:p.headerRowCount==="1"};break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((f,p)=>{this.model.columns[p].filterButton=f.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(l,f){l.columns.forEach(p=>{p.dxfId!==void 0&&(p.style=f.styles.getDxfStyle(p.dxfId))})}}u.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},b.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(t,b,m){(function(c,a){(function(){const o=t("fs"),n=t("jszip"),{PassThrough:e}=t("readable-stream"),r=t("../utils/zip-stream"),u=t("../utils/stream-buf"),s=t("../utils/utils"),l=t("../utils/xml-stream"),{bufferToString:f}=t("../utils/browser-buffer-decode"),p=t("./xform/style/styles-xform"),d=t("./xform/core/core-xform"),v=t("./xform/strings/shared-strings-xform"),g=t("./xform/core/relationships-xform"),k=t("./xform/core/content-types-xform"),C=t("./xform/core/app-xform"),B=t("./xform/book/workbook-xform"),N=t("./xform/sheet/worksheet-xform"),q=t("./xform/drawing/drawing-xform"),j=t("./xform/table/table-xform"),P=t("./xform/comment/comments-xform"),V=t("./xform/comment/vml-notes-xform"),z=t("./xml/theme1");class L{constructor(T){this.workbook=T}async readFile(T,_){if(!await s.fs.exists(T))throw new Error("File not found: "+T);const y=o.createReadStream(T);try{const w=await this.read(y,_);return y.close(),w}catch(w){throw y.close(),w}}parseRels(T){return new g().parseStream(T)}parseWorkbook(T){return new B().parseStream(T)}parseSharedStrings(T){return new v().parseStream(T)}reconcile(T,_){const y=new B,w=new N(_),x=new q,S=new j;y.reconcile(T);const E={media:T.media,mediaIndex:T.mediaIndex};Object.keys(T.drawings).forEach(W=>{const H=T.drawings[W],K=T.drawingRels[W];K&&(E.rels=K.reduce((D,Y)=>(D[Y.Id]=Y,D),{}),(H.anchors||[]).forEach(D=>{const Y=D.picture&&D.picture.hyperlinks;Y&&E.rels[Y.rId]&&(Y.hyperlink=E.rels[Y.rId].Target,delete Y.rId)}),x.reconcile(H,E))});const I={styles:T.styles};Object.values(T.tables).forEach(W=>{S.reconcile(W,I)});const O={styles:T.styles,sharedStrings:T.sharedStrings,media:T.media,mediaIndex:T.mediaIndex,date1904:T.properties&&T.properties.date1904,drawings:T.drawings,comments:T.comments,tables:T.tables,vmlDrawings:T.vmlDrawings};T.worksheets.forEach(W=>{W.relationships=T.worksheetRels[W.sheetNo],w.reconcile(W,O)}),delete T.worksheetHash,delete T.worksheetRels,delete T.globalRels,delete T.sharedStrings,delete T.workbookRels,delete T.sheetDefs,delete T.styles,delete T.mediaIndex,delete T.drawings,delete T.drawingRels,delete T.vmlDrawings}async _processWorksheetEntry(T,_,y,w,x){const S=new N(w),E=await S.parseStream(T);E.sheetNo=y,_.worksheetHash[x]=E,_.worksheets.push(E)}async _processCommentEntry(T,_,y){const w=new P,x=await w.parseStream(T);_.comments[`../${y}.xml`]=x}async _processTableEntry(T,_,y){const w=new j,x=await w.parseStream(T);_.tables[`../tables/${y}.xml`]=x}async _processWorksheetRelsEntry(T,_,y){const w=new g,x=await w.parseStream(T);_.worksheetRels[y]=x}async _processMediaEntry(T,_,y){const w=y.lastIndexOf(".");if(w>=1){const x=y.substr(w+1),S=y.substr(0,w);await new Promise((E,I)=>{const O=new u;O.on("finish",()=>{_.mediaIndex[y]=_.media.length,_.mediaIndex[S]=_.media.length;const W={type:"image",name:S,extension:x,buffer:O.toBuffer()};_.media.push(W),E()}),T.on("error",W=>{I(W)}),T.pipe(O)})}}async _processDrawingEntry(T,_,y){const w=new q,x=await w.parseStream(T);_.drawings[y]=x}async _processDrawingRelsEntry(T,_,y){const w=new g,x=await w.parseStream(T);_.drawingRels[y]=x}async _processVmlDrawingEntry(T,_,y){const w=new V,x=await w.parseStream(T);_.vmlDrawings[`../drawings/${y}.vml`]=x}async _processThemeEntry(T,_,y){await new Promise((w,x)=>{const S=new u;T.on("error",x),S.on("error",x),S.on("finish",()=>{_.themes[y]=S.read().toString(),w()}),T.pipe(S)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(T,_){!T[Symbol.asyncIterator]&&T.pipe&&(T=T.pipe(new e));const y=[];for await(const w of T)y.push(w);return this.load(a.concat(y),_)}async load(T,_){let y;y=_&&_.base64?a.from(T.toString(),"base64"):T;const w={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},x=await n.loadAsync(y);for(const S of Object.values(x.files))if(!S.dir){let E,I=S.name;if(I[0]==="/"&&(I=I.substr(1)),I.match(/xl\/media\//)||I.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))E=new e,E.write(await S.async("nodebuffer"));else{let O;E=new e({writableObjectMode:!0,readableObjectMode:!0}),O=c.browser?f(await S.async("nodebuffer")):await S.async("string");const W=16384;for(let H=0;H<O.length;H+=W)E.write(O.substring(H,H+W))}switch(E.end(),I){case"_rels/.rels":w.globalRels=await this.parseRels(E);break;case"xl/workbook.xml":{const O=await this.parseWorkbook(E);w.sheets=O.sheets,w.definedNames=O.definedNames,w.views=O.views,w.properties=O.properties,w.calcProperties=O.calcProperties;break}case"xl/_rels/workbook.xml.rels":w.workbookRels=await this.parseRels(E);break;case"xl/sharedStrings.xml":w.sharedStrings=new v,await w.sharedStrings.parseStream(E);break;case"xl/styles.xml":w.styles=new p,await w.styles.parseStream(E);break;case"docProps/app.xml":{const O=new C,W=await O.parseStream(E);w.company=W.company,w.manager=W.manager;break}case"docProps/core.xml":{const O=new d,W=await O.parseStream(E);Object.assign(w,W);break}default:{let O=I.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(O){await this._processWorksheetEntry(E,w,O[1],_,I);break}if(O=I.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),O){await this._processWorksheetRelsEntry(E,w,O[1]);break}if(O=I.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),O){await this._processThemeEntry(E,w,O[1]);break}if(O=I.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),O){await this._processMediaEntry(E,w,O[1]);break}if(O=I.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),O){await this._processDrawingEntry(E,w,O[1]);break}if(O=I.match(/xl\/(comments\d+)[.]xml/),O){await this._processCommentEntry(E,w,O[1]);break}if(O=I.match(/xl\/tables\/(table\d+)[.]xml/),O){await this._processTableEntry(E,w,O[1]);break}if(O=I.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),O){await this._processDrawingRelsEntry(E,w,O[1]);break}if(O=I.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),O){await this._processVmlDrawingEntry(E,w,O[1]);break}}}}return this.reconcile(w,_),this.workbook.model=w,this.workbook}async addMedia(T,_){await Promise.all(_.media.map(async y=>{if(y.type==="image"){const w=`xl/media/${y.name}.${y.extension}`;if(y.filename){const x=await function(S,E){return new Promise((I,O)=>{o.readFile(S,E,(W,H)=>{W?O(W):I(H)})})}(y.filename);return T.append(x,{name:w})}if(y.buffer)return T.append(y.buffer,{name:w});if(y.base64){const x=y.base64,S=x.substring(x.indexOf(",")+1);return T.append(S,{name:w,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(T,_){const y=new q,w=new g;_.worksheets.forEach(x=>{const{drawing:S}=x;if(S){y.prepare(S,{});let E=y.toXml(S);T.append(E,{name:`xl/drawings/${S.name}.xml`}),E=w.toXml(S.rels),T.append(E,{name:`xl/drawings/_rels/${S.name}.xml.rels`})}})}addTables(T,_){const y=new j;_.worksheets.forEach(w=>{const{tables:x}=w;x.forEach(S=>{y.prepare(S,{});const E=y.toXml(S);T.append(E,{name:"xl/tables/"+S.target})})})}async addContentTypes(T,_){const y=new k().toXml(_);T.append(y,{name:"[Content_Types].xml"})}async addApp(T,_){const y=new C().toXml(_);T.append(y,{name:"docProps/app.xml"})}async addCore(T,_){const y=new d;T.append(y.toXml(_),{name:"docProps/core.xml"})}async addThemes(T,_){const y=_.themes||{theme1:z};Object.keys(y).forEach(w=>{const x=y[w],S=`xl/theme/${w}.xml`;T.append(x,{name:S})})}async addOfficeRels(T){const _=new g().toXml([{Id:"rId1",Type:L.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:L.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:L.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);T.append(_,{name:"_rels/.rels"})}async addWorkbookRels(T,_){let y=1;const w=[{Id:"rId"+y++,Type:L.RelType.Styles,Target:"styles.xml"},{Id:"rId"+y++,Type:L.RelType.Theme,Target:"theme/theme1.xml"}];_.sharedStrings.count&&w.push({Id:"rId"+y++,Type:L.RelType.SharedStrings,Target:"sharedStrings.xml"}),_.worksheets.forEach(S=>{S.rId="rId"+y++,w.push({Id:S.rId,Type:L.RelType.Worksheet,Target:`worksheets/sheet${S.id}.xml`})});const x=new g().toXml(w);T.append(x,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(T,_){_.sharedStrings&&_.sharedStrings.count&&T.append(_.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(T,_){const{xml:y}=_.styles;y&&T.append(y,{name:"xl/styles.xml"})}async addWorkbook(T,_){const y=new B;T.append(y.toXml(_),{name:"xl/workbook.xml"})}async addWorksheets(T,_){const y=new N,w=new g,x=new P,S=new V;_.worksheets.forEach(E=>{let I=new l;y.render(I,E),T.append(I.xml,{name:`xl/worksheets/sheet${E.id}.xml`}),E.rels&&E.rels.length&&(I=new l,w.render(I,E.rels),T.append(I.xml,{name:`xl/worksheets/_rels/sheet${E.id}.xml.rels`})),E.comments.length>0&&(I=new l,x.render(I,E),T.append(I.xml,{name:`xl/comments${E.id}.xml`}),I=new l,S.render(I,E),T.append(I.xml,{name:`xl/drawings/vmlDrawing${E.id}.vml`}))})}_finalize(T){return new Promise((_,y)=>{T.on("finish",()=>{_(this)}),T.on("error",y),T.finalize()})}prepareModel(T,_){T.creator=T.creator||"ExcelJS",T.lastModifiedBy=T.lastModifiedBy||"ExcelJS",T.created=T.created||new Date,T.modified=T.modified||new Date,T.useSharedStrings=_.useSharedStrings===void 0||_.useSharedStrings,T.useStyles=_.useStyles===void 0||_.useStyles,T.sharedStrings=new v,T.styles=T.useStyles?new p(!0):new p.Mock;const y=new B,w=new N;y.prepare(T);const x={sharedStrings:T.sharedStrings,styles:T.styles,date1904:T.properties.date1904,drawingsCount:0,media:T.media};x.drawings=T.drawings=[],x.commentRefs=T.commentRefs=[];let S=0;T.tables=[],T.worksheets.forEach(E=>{E.tables.forEach(I=>{S++,I.target=`table${S}.xml`,I.id=S,T.tables.push(I)}),w.prepare(E,x)})}async write(T,_){_=_||{};const{model:y}=this.workbook,w=new r.ZipWriter(_.zip);return w.pipe(T),this.prepareModel(y,_),await this.addContentTypes(w,y),await this.addOfficeRels(w,y),await this.addWorkbookRels(w,y),await this.addWorksheets(w,y),await this.addSharedStrings(w,y),await this.addDrawings(w,y),await this.addTables(w,y),await Promise.all([this.addThemes(w,y),this.addStyles(w,y)]),await this.addMedia(w,y),await Promise.all([this.addApp(w,y),this.addCore(w,y)]),await this.addWorkbook(w,y),this._finalize(w)}writeFile(T,_){const y=o.createWriteStream(T);return new Promise((w,x)=>{y.on("finish",()=>{w()}),y.on("error",S=>{x(S)}),this.write(y,_).then(()=>{y.end()}).catch(S=>{x(S)})})}async writeBuffer(T){const _=new u;return await this.write(_,T),_.read()}}L.RelType=t("./rel-type"),b.exports=L}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(t,b,m){b.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3
3
  <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>`},{}],146:[function(t,b,m){(function(c){(function(){Object.defineProperty(m,"__esModule",{value:!0}),m.CsvFormatterStream=void 0;const a=t("stream"),o=t("./formatter");class n extends a.Transform{constructor(r){super({writableObjectMode:r.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=r,this.rowFormatter=new o.RowFormatter(r),this.hasWrittenBOM=!r.writeBOM}transform(r){return this.rowFormatter.rowTransform=r,this}_transform(r,u,s){let l=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(r,(f,p)=>f?(l=!0,s(f)):(p&&p.forEach(d=>{this.push(c.from(d,"utf8"))}),l=!0,s()))}catch(f){if(l)throw f;s(f)}}_flush(r){this.rowFormatter.finish((u,s)=>u?r(u):(s&&s.forEach(l=>{this.push(c.from(l,"utf8"))}),r()))}}m.CsvFormatterStream=n}).call(this)}).call(this,t("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(t,b,m){Object.defineProperty(m,"__esModule",{value:!0}),m.FormatterOptions=void 0,m.FormatterOptions=class{constructor(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var a;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=`
4
4
  `,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,c||{}),c?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),c?.quote===!0?this.quote='"':c?.quote===!1&&(this.quote=""),typeof c?.escape!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((a=c.writeHeaders)===null||a===void 0||a),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(t,b,m){var c=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(m,"__esModule",{value:!0}),m.FieldFormatter=void 0;const a=c(t("lodash.isboolean")),o=c(t("lodash.isnil")),n=c(t("lodash.escaperegexp"));m.FieldFormatter=class{constructor(e){this._headers=null,this.formatterOptions=e,e.headers!==null&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g");const r=`[${e.delimiter}${n.default(e.rowDelimiter)}|\r|