@selfeesas/shared-components 1.0.5 → 1.0.6
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 k=require("vue"),ui={xs:18,sm:24,md:32,lg:38,xl:46},Rr={size:String};function Br(l,I=ui){return k.computed(()=>l.size!==void 0?{fontSize:l.size in I?`${I[l.size]}px`:l.size}:null)}function Lt(l,I,t,v){return Object.defineProperty(l,I,{get:t,set:v,enumerable:!0}),l}function pa(l,I){for(const t in I)Lt(l,t,I[t]);return l}function $e(l){return k.markRaw(k.defineComponent(l))}function Ci(l){return k.markRaw(l)}const ma=(l,I)=>{const t=k.reactive(l);for(const v in l)Lt(I,v,()=>t[v],m=>{t[v]=m});return I};function gt(l,I){return l!==void 0&&l()||I}function Ai(l,I){if(l!==void 0){const t=l();if(t!=null)return t.slice()}return I}function It(l,I){return l!==void 0?I.concat(l()):I}function io(l,I){return l===void 0?I:I!==void 0?I.concat(l()):l()}function ga(l,I,t,v,m,c){I.key=v+m;const o=k.h(l,I,t);return m===!0?k.withDirectives(o,c()):o}const ss="0 0 24 24",Un=l=>l,Wn=l=>`ionicons ${l}`,so={"mdi-":l=>`mdi ${l}`,"icon-":Un,"bt-":l=>`bt ${l}`,"eva-":l=>`eva ${l}`,"ion-md":Wn,"ion-ios":Wn,"ion-logo":Wn,"iconfont ":Un,"ti-":l=>`themify-icon ${l}`,"bi-":l=>`bootstrap-icons ${l}`,"i-":Un},oo={o_:"-outlined",r_:"-round",s_:"-sharp"},ao={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ba=new RegExp("^("+Object.keys(so).join("|")+")"),va=new RegExp("^("+Object.keys(oo).join("|")+")"),os=new RegExp("^("+Object.keys(ao).join("|")+")"),ya=/^[Mm]\s?[-+]?\.?\d/,wa=/^img:/,xa=/^svguse:/,Sa=/^ion-/,ka=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,wt=$e({name:"QIcon",props:{...Rr,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(l,{slots:I}){const{proxy:{$q:t}}=k.getCurrentInstance(),v=Br(l),m=k.computed(()=>"q-icon"+(l.left===!0?" on-left":"")+(l.right===!0?" on-right":"")+(l.color!==void 0?` text-${l.color}`:"")),c=k.computed(()=>{let o,a=l.name;if(a==="none"||!a)return{none:!0};if(t.iconMapFn!==null){const r=t.iconMapFn(a);if(r!==void 0)if(r.icon!==void 0){if(a=r.icon,a==="none"||!a)return{none:!0}}else return{cls:r.cls,content:r.content!==void 0?r.content:" "}}if(ya.test(a)===!0){const[r,u=ss]=a.split("|");return{svg:!0,viewBox:u,nodes:r.split("&&").map(s=>{const[i,d,h]=s.split("@@");return k.h("path",{style:d,d:i,transform:h})})}}if(wa.test(a)===!0)return{img:!0,src:a.substring(4)};if(xa.test(a)===!0){const[r,u=ss]=a.split("|");return{svguse:!0,src:r.substring(7),viewBox:u}}let n=" ";const e=a.match(ba);if(e!==null)o=so[e[1]](a);else if(ka.test(a)===!0)o=a;else if(Sa.test(a)===!0)o=`ionicons ion-${t.platform.is.ios===!0?"ios":"md"}${a.substring(3)}`;else if(os.test(a)===!0){o="notranslate material-symbols";const r=a.match(os);r!==null&&(a=a.substring(6),o+=ao[r[1]]),n=a}else{o="notranslate material-icons";const r=a.match(va);r!==null&&(a=a.substring(2),o+=oo[r[1]]),n=a}return{cls:o,content:n}});return()=>{const o={class:m.value,style:v.value,"aria-hidden":"true"};return c.value.none===!0?k.h(l.tag,o,gt(I.default)):c.value.img===!0?k.h(l.tag,o,It(I.default,[k.h("img",{src:c.value.src})])):c.value.svg===!0?k.h(l.tag,o,It(I.default,[k.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?k.h(l.tag,o,It(I.default,[k.h("svg",{viewBox:c.value.viewBox},[k.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(o.class+=" "+c.value.cls),k.h(l.tag,o,It(I.default,[c.value.content])))}}});function vn(l){if(Object(l.$parent)===l.$parent)return l.$parent;let{parent:I}=l.$;for(;Object(I)===I;){if(Object(I.proxy)===I.proxy)return I.proxy;I=I.parent}}function lo(l,I){typeof I.type=="symbol"?Array.isArray(I.children)===!0&&I.children.forEach(t=>{lo(l,t)}):l.add(I)}function _a(l){const I=new Set;return l.forEach(t=>{lo(I,t)}),Array.from(I)}function Ei(l){return l.appContext.config.globalProperties.$router!==void 0}function Mi(l){return l.isUnmounted===!0||l.isDeactivated===!0}function as(l){return l?l.aliasOf?l.aliasOf.path:l.path:""}function ls(l,I){return(l.aliasOf||l)===(I.aliasOf||I)}function Ca(l,I){for(const t in I){const v=I[t],m=l[t];if(typeof v=="string"){if(v!==m)return!1}else if(Array.isArray(m)===!1||m.length!==v.length||v.some((c,o)=>c!==m[o]))return!1}return!0}function us(l,I){return Array.isArray(I)===!0?l.length===I.length&&l.every((t,v)=>t===I[v]):l.length===1&&l[0]===I}function Aa(l,I){return Array.isArray(l)===!0?us(l,I):Array.isArray(I)===!0?us(I,l):l===I}function Ea(l,I){if(Object.keys(l).length!==Object.keys(I).length)return!1;for(const t in l)if(Aa(l[t],I[t])===!1)return!1;return!0}const uo={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},co={...uo,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ti({fallbackTag:l,useDisableForRouterLinkProps:I=!0}={}){const t=k.getCurrentInstance(),{props:v,proxy:m,emit:c}=t,o=Ei(t),a=k.computed(()=>v.disable!==!0&&v.href!==void 0),n=I===!0?k.computed(()=>o===!0&&v.disable!==!0&&a.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""):k.computed(()=>o===!0&&a.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""),e=k.computed(()=>n.value===!0?p(v.to):null),r=k.computed(()=>e.value!==null),u=k.computed(()=>a.value===!0||r.value===!0),s=k.computed(()=>v.type==="a"||u.value===!0?"a":v.tag||l||"div"),i=k.computed(()=>a.value===!0?{href:v.href,target:v.target}:r.value===!0?{href:e.value.href,target:v.target}:{}),d=k.computed(()=>{if(r.value===!1)return-1;const{matched:T}=e.value,{length:D}=T,q=T[D-1];if(q===void 0)return-1;const N=m.$route.matched;if(N.length===0)return-1;const P=N.findIndex(ls.bind(null,q));if(P!==-1)return P;const V=as(T[D-2]);return D>1&&as(q)===V&&N[N.length-1].path!==V?N.findIndex(ls.bind(null,T[D-2])):P}),h=k.computed(()=>r.value===!0&&d.value!==-1&&Ca(m.$route.params,e.value.params)),f=k.computed(()=>h.value===!0&&d.value===m.$route.matched.length-1&&Ea(m.$route.params,e.value.params)),g=k.computed(()=>r.value===!0?f.value===!0?` ${v.exactActiveClass} ${v.activeClass}`:v.exact===!0?"":h.value===!0?` ${v.activeClass}`:"":"");function p(T){try{return m.$router.resolve(T)}catch{}return null}function x(T,{returnRouterError:D,to:q=v.to,replace:N=v.replace}={}){if(v.disable===!0)return T.preventDefault(),Promise.resolve(!1);if(T.metaKey||T.altKey||T.ctrlKey||T.shiftKey||T.button!==void 0&&T.button!==0||v.target==="_blank")return Promise.resolve(!1);T.preventDefault();const P=m.$router[N===!0?"replace":"push"](q);return D===!0?P:P.then(()=>{}).catch(()=>{})}function C(T){if(r.value===!0){const D=q=>x(T,q);c("click",T,D),T.defaultPrevented!==!0&&D()}else c("click",T)}return{hasRouterLink:r,hasHrefLink:a,hasLink:u,linkTag:s,resolvedLink:e,linkIsActive:h,linkIsExactActive:f,linkClass:g,linkAttrs:i,getLink:p,navigateToRouterLink:x,navigateOnClick:C}}const Ma=$e({name:"QBreadcrumbsEl",props:{...co,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(l,{slots:I}){const{linkTag:t,linkAttrs:v,linkClass:m,navigateOnClick:c}=Ti(),o=k.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(l.disable!==!0?"q-link--focusable"+m.value:"q-breadcrumbs__el--disable"),...v.value,onClick:c})),a=k.computed(()=>"q-breadcrumbs__el-icon"+(l.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const n=[];return l.icon!==void 0&&n.push(k.h(wt,{class:a.value,name:l.icon})),l.label!==void 0&&n.push(l.label),k.h(t.value,{...o.value},It(I.default,n))}}}),fo={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ta=Object.keys(fo),Ri={align:{type:String,validator:l=>Ta.includes(l)}};function Bi(l){return k.computed(()=>{const I=l.align===void 0?l.vertical===!0?"stretch":"left":l.align;return`${l.vertical===!0?"items":"justify"}-${fo[I]}`})}const Ra=["",!0],Ba=$e({name:"QBreadcrumbs",props:{...Ri,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:l=>["none","xs","sm","md","lg","xl"].includes(l),default:"sm"}},setup(l,{slots:I}){const t=Bi(l),v=k.computed(()=>`flex items-center ${t.value}${l.gutter==="none"?"":` q-gutter-${l.gutter}`}`),m=k.computed(()=>l.separatorColor?` text-${l.separatorColor}`:""),c=k.computed(()=>` text-${l.activeColor}`);return()=>{if(I.default===void 0)return;const o=_a(gt(I.default));if(o.length===0)return;let a=1;const n=[],e=o.filter(u=>u.type?.name==="QBreadcrumbsEl").length,r=I.separator!==void 0?I.separator:()=>l.separator;return o.forEach(u=>{if(u.type?.name==="QBreadcrumbsEl"){const s=a<e,i=u.props!==null&&Ra.includes(u.props.disable),d=(s===!0?"":" q-breadcrumbs--last")+(i!==!0&&s===!0?c.value:"");a++,n.push(k.h("div",{class:`flex items-center${d}`},[u])),s===!0&&n.push(k.h("div",{class:"q-breadcrumbs__separator"+m.value},r()))}else n.push(u)}),k.h("div",{class:"q-breadcrumbs"},[k.h("div",{class:v.value},n)])}}}),Ia=k.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(l){const I=l,t=k.useAttrs(),v=k.computed(()=>{const{activeColor:s,separatorIcon:i,separatorSize:d,separatorColor:h,...f}=t;return f}),m=s=>({"data-cy":s.dataCy,class:"cursor-pointer text-h5",color:s.color}),c=k.computed(()=>I.activeColor||"primary"),o=k.computed(()=>I.separatorIcon||"chevron_right"),a=k.computed(()=>I.separatorSize||"2em"),n=k.computed(()=>I.separatorColor||"primary"),e=k.computed(()=>({store:I.store,route:I.route,navStore:I.navStore||{}})),r=k.computed(()=>{const s=[];return I.breadcrumbConfig.forEach(i=>{if(!i.shouldRender(e.value))return;const d=i.getLabel?i.getLabel(e.value):i.defaultLabel,h=i.getColor?i.getColor(e.value):"dark",f={name:i.routeName,...i.getRouteParams&&{params:i.getRouteParams(e.value)}},g=i.clearActions?i.clearActions.map(p=>()=>p(e.value)):[];s.push({label:d,dataCy:i.dataCy,color:h,route:f,clearActions:g})}),s}),u=s=>{s.clearActions&&s.clearActions.forEach(i=>i()),I.router.push(s.route)};return(s,i)=>(k.openBlock(),k.createBlock(Ba,k.mergeProps({"active-color":c.value,class:"text-brown"},v.value),{separator:k.withCtx(()=>[k.createVNode(wt,{size:a.value,name:o.value,color:n.value},null,8,["size","name","color"])]),default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(r.value,(d,h)=>(k.openBlock(),k.createBlock(Ma,k.mergeProps({key:h},{ref_for:!0},m(d),{label:d.label,onClick:f=>u(d)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),Oa={size:{type:[String,Number],default:"1em"},color:String};function ja(l){return{cSize:k.computed(()=>l.size in ui?`${ui[l.size]}px`:l.size),classes:k.computed(()=>"q-spinner"+(l.color?` text-${l.color}`:""))}}const ho=$e({name:"QSpinner",props:{...Oa,thickness:{type:Number,default:5}},setup(l){const{cSize:I,classes:t}=ja(l);return()=>k.h("svg",{class:t.value+" q-spinner-mat",width:I.value,height:I.value,viewBox:"25 25 50 50"},[k.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":l.thickness,"stroke-miterlimit":"10"})])}});function ci(l,I){const t=l.style;for(const v in I)t[v]=I[v]}function Fa(l){if(l==null)return;if(typeof l=="string")try{return document.querySelector(l)||void 0}catch{return}const I=k.unref(l);if(I)return I.$el||I}function po(l,I){if(l==null||l.contains(I)===!0)return!0;for(let t=l.nextElementSibling;t!==null;t=t.nextElementSibling)if(t.contains(I))return!0;return!1}const _t={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const l=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,l),window.removeEventListener("qtest",null,l)}catch{}function jn(){}function Da(l){return l.button===0}function Ur(l){return l.touches&&l.touches[0]?l=l.touches[0]:l.changedTouches&&l.changedTouches[0]?l=l.changedTouches[0]:l.targetTouches&&l.targetTouches[0]&&(l=l.targetTouches[0]),{top:l.clientY,left:l.clientX}}function Na(l){if(l.path)return l.path;if(l.composedPath)return l.composedPath();const I=[];let t=l.target;for(;t;){if(I.push(t),t.tagName==="HTML")return I.push(document),I.push(window),I;t=t.parentElement}}function Dt(l){l.stopPropagation()}function Bt(l){l.cancelable!==!1&&l.preventDefault()}function St(l){l.cancelable!==!1&&l.preventDefault(),l.stopPropagation()}function Hn(l,I){if(l===void 0||I===!0&&l.__dragPrevented===!0)return;const t=I===!0?v=>{v.__dragPrevented=!0,v.addEventListener("dragstart",Bt,_t.notPassiveCapture)}:v=>{delete v.__dragPrevented,v.removeEventListener("dragstart",Bt,_t.notPassiveCapture)};l.querySelectorAll("a, img").forEach(t)}function Qt(l,I,t){const v=`__q_${I}_evt`;l[v]=l[v]!==void 0?l[v].concat(t):t,t.forEach(m=>{m[0].addEventListener(m[1],l[m[2]],_t[m[3]])})}function cr(l,I){const t=`__q_${I}_evt`;l[t]!==void 0&&(l[t].forEach(v=>{v[0].removeEventListener(v[1],l[v[2]],_t[v[3]])}),l[t]=void 0)}function Ii(l){return l!==Object(l)||l.isComposing===!0||l.qKeyEvent===!0}function nr(l,I){return Ii(l)===!0?!1:[].concat(I).includes(l.keyCode)}function Pa(l,I=250){let t=!1,v;return function(){return t===!1&&(t=!0,setTimeout(()=>{t=!1},I),v=l.apply(this,arguments)),v}}function cs(l,I,t,v){t.modifiers.stop===!0&&Dt(l);const m=t.modifiers.color;let c=t.modifiers.center;c=c===!0||v===!0;const o=document.createElement("span"),a=document.createElement("span"),n=Ur(l),{left:e,top:r,width:u,height:s}=I.getBoundingClientRect(),i=Math.sqrt(u*u+s*s),d=i/2,h=`${(u-i)/2}px`,f=c?h:`${n.left-e-d}px`,g=`${(s-i)/2}px`,p=c?g:`${n.top-r-d}px`;a.className="q-ripple__inner",ci(a,{height:`${i}px`,width:`${i}px`,transform:`translate3d(${f},${p},0) scale3d(.2,.2,1)`,opacity:0}),o.className=`q-ripple${m?" text-"+m:""}`,o.setAttribute("dir","ltr"),o.appendChild(a),I.appendChild(o);const x=()=>{o.remove(),clearTimeout(C)};t.abort.push(x);let C=setTimeout(()=>{a.classList.add("q-ripple__inner--enter"),a.style.transform=`translate3d(${h},${g},0) scale3d(1,1,1)`,a.style.opacity=.2,C=setTimeout(()=>{a.classList.remove("q-ripple__inner--enter"),a.classList.add("q-ripple__inner--leave"),a.style.opacity=0,C=setTimeout(()=>{o.remove(),t.abort.splice(t.abort.indexOf(x),1)},275)},250)},50)}function fs(l,{modifiers:I,value:t,arg:v}){const m=Object.assign({},l.cfg.ripple,I,t);l.modifiers={early:m.early===!0,stop:m.stop===!0,center:m.center===!0,color:m.color||v,keyCodes:[].concat(m.keyCodes||13)}}const mo=Ci({name:"ripple",beforeMount(l,I){const t=I.instance.$.appContext.config.globalProperties.$q.config||{};if(t.ripple===!1)return;const v={cfg:t,enabled:I.value!==!1,modifiers:{},abort:[],start(m){v.enabled===!0&&m.qSkipRipple!==!0&&m.type===(v.modifiers.early===!0?"pointerdown":"click")&&cs(m,l,v,m.qKeyEvent===!0)},keystart:Pa(m=>{v.enabled===!0&&m.qSkipRipple!==!0&&nr(m,v.modifiers.keyCodes)===!0&&m.type===`key${v.modifiers.early===!0?"down":"up"}`&&cs(m,l,v,!0)},300)};fs(v,I),l.__qripple=v,Qt(v,"main",[[l,"pointerdown","start","passive"],[l,"click","start","passive"],[l,"keydown","keystart","passive"],[l,"keyup","keystart","passive"]])},updated(l,I){if(I.oldValue!==I.value){const t=l.__qripple;t!==void 0&&(t.enabled=I.value!==!1,t.enabled===!0&&Object(I.value)===I.value&&fs(t,I))}},beforeUnmount(l){const I=l.__qripple;I!==void 0&&(I.abort.forEach(t=>{t()}),cr(I,"main"),delete l._qripple)}}),ds={none:0,xs:4,sm:8,md:16,lg:24,xl:32},La={xs:8,sm:10,md:14,lg:20,xl:24},Va=["button","submit","reset"],qa=/[^\s]\/[^\s]/,za=["flat","outline","push","unelevated"];function Ua(l,I){return l.flat===!0?"flat":l.outline===!0?"outline":l.push===!0?"push":l.unelevated===!0?"unelevated":I}const Wa={...Rr,...uo,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...za.reduce((l,I)=>(l[I]=Boolean)&&l,{}),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:{...Ri.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ha={...Wa,round:Boolean};function Ya(l){const I=Br(l,La),t=Bi(l),{hasRouterLink:v,hasLink:m,linkTag:c,linkAttrs:o,navigateOnClick:a}=Ti({fallbackTag:"button"}),n=k.computed(()=>{const f=l.fab===!1&&l.fabMini===!1?I.value:{};return l.padding!==void 0?Object.assign({},f,{padding:l.padding.split(/\s+/).map(g=>g in ds?ds[g]+"px":g).join(" "),minWidth:"0",minHeight:"0"}):f}),e=k.computed(()=>l.rounded===!0||l.fab===!0||l.fabMini===!0),r=k.computed(()=>l.disable!==!0&&l.loading!==!0),u=k.computed(()=>r.value===!0?l.tabindex||0:-1),s=k.computed(()=>Ua(l,"standard")),i=k.computed(()=>{const f={tabindex:u.value};return m.value===!0?Object.assign(f,o.value):Va.includes(l.type)===!0&&(f.type=l.type),c.value==="a"?(l.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),v.value!==!0&&qa.test(l.type)===!0&&(f.type=l.type)):l.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),l.loading===!0&&l.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l.percentage}),f}),d=k.computed(()=>{let f;l.color!==void 0?l.flat===!0||l.outline===!0?f=`text-${l.textColor||l.color}`:f=`bg-${l.color} text-${l.textColor||"white"}`:l.textColor&&(f=`text-${l.textColor}`);const g=l.round===!0?"round":`rectangle${e.value===!0?" q-btn--rounded":l.square===!0?" q-btn--square":""}`;return`q-btn--${s.value} q-btn--${g}`+(f!==void 0?" "+f:"")+(r.value===!0?" q-btn--actionable q-focusable q-hoverable":l.disable===!0?" disabled":"")+(l.fab===!0?" q-btn--fab":l.fabMini===!0?" q-btn--fab-mini":"")+(l.noCaps===!0?" q-btn--no-uppercase":"")+(l.dense===!0?" q-btn--dense":"")+(l.stretch===!0?" no-border-radius self-stretch":"")+(l.glossy===!0?" glossy":"")+(l.square?" q-btn--square":"")}),h=k.computed(()=>t.value+(l.stack===!0?" column":" row")+(l.noWrap===!0?" no-wrap text-no-wrap":"")+(l.loading===!0?" q-btn__content--hidden":""));return{classes:d,style:n,innerClasses:h,attributes:i,hasLink:m,linkTag:c,navigateOnClick:a,isActionable:r}}const{passiveCapture:Pt}=_t;let vr=null,yr=null,wr=null;const ct=$e({name:"QBtn",props:{...Ha,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(l,{slots:I,emit:t}){const{proxy:v}=k.getCurrentInstance(),{classes:m,style:c,innerClasses:o,attributes:a,hasLink:n,linkTag:e,navigateOnClick:r,isActionable:u}=Ya(l),s=k.ref(null),i=k.ref(null);let d=null,h,f=null;const g=k.computed(()=>l.label!==void 0&&l.label!==null&&l.label!==""),p=k.computed(()=>l.disable===!0||l.ripple===!1?!1:{keyCodes:n.value===!0?[13,32]:[13],...l.ripple===!0?{}:l.ripple}),x=k.computed(()=>({center:l.round})),C=k.computed(()=>{const E=Math.max(0,Math.min(100,l.percentage));return E>0?{transition:"transform 0.6s",transform:`translateX(${E-100}%)`}:{}}),T=k.computed(()=>{if(l.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(u.value===!0){const E={onClick:q,onKeydown:N,onMousedown:V};if(v.$q.platform.has.touch===!0){const _=l.onTouchstart!==void 0?"":"Passive";E[`onTouchstart${_}`]=P}return E}return{onClick:St}}),D=k.computed(()=>({ref:s,class:"q-btn q-btn-item non-selectable no-outline "+m.value,style:c.value,...a.value,...T.value}));function q(E){if(s.value!==null){if(E!==void 0){if(E.defaultPrevented===!0)return;const _=document.activeElement;if(l.type==="submit"&&_!==document.body&&s.value.contains(_)===!1&&_.contains(s.value)===!1){E.qAvoidFocus!==!0&&s.value.focus();const b=()=>{document.removeEventListener("keydown",St,!0),document.removeEventListener("keyup",b,Pt),s.value?.removeEventListener("blur",b,Pt)};document.addEventListener("keydown",St,!0),document.addEventListener("keyup",b,Pt),s.value.addEventListener("blur",b,Pt)}}r(E)}}function N(E){s.value!==null&&(t("keydown",E),nr(E,[13,32])===!0&&yr!==s.value&&(yr!==null&&L(),E.defaultPrevented!==!0&&(E.qAvoidFocus!==!0&&s.value.focus(),yr=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("keyup",W,!0),s.value.addEventListener("blur",W,Pt)),St(E)))}function P(E){s.value!==null&&(t("touchstart",E),E.defaultPrevented!==!0&&(vr!==s.value&&(vr!==null&&L(),vr=s.value,d=E.target,d.addEventListener("touchcancel",W,Pt),d.addEventListener("touchend",W,Pt)),h=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,h=!1},200)))}function V(E){s.value!==null&&(E.qSkipRipple=h===!0,t("mousedown",E),E.defaultPrevented!==!0&&wr!==s.value&&(wr!==null&&L(),wr=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("mouseup",W,Pt)))}function W(E){if(s.value!==null&&!(E?.type==="blur"&&document.activeElement===s.value)){if(E?.type==="keyup"){if(yr===s.value&&nr(E,[13,32])===!0){const _=new MouseEvent("click",E);_.qKeyEvent=!0,E.defaultPrevented===!0&&Bt(_),E.cancelBubble===!0&&Dt(_),s.value.dispatchEvent(_),St(E),E.qKeyEvent=!0}t("keyup",E)}L()}}function L(E){const _=i.value;E!==!0&&(vr===s.value||wr===s.value)&&_!==null&&_!==document.activeElement&&(_.setAttribute("tabindex",-1),_.focus()),vr===s.value&&(d!==null&&(d.removeEventListener("touchcancel",W,Pt),d.removeEventListener("touchend",W,Pt)),vr=d=null),wr===s.value&&(document.removeEventListener("mouseup",W,Pt),wr=null),yr===s.value&&(document.removeEventListener("keyup",W,!0),s.value?.removeEventListener("blur",W,Pt),yr=null),s.value?.classList.remove("q-btn--active")}function A(E){St(E),E.qSkipRipple=!0}return k.onBeforeUnmount(()=>{L(!0)}),Object.assign(v,{click:E=>{u.value===!0&&q(E)}}),()=>{let E=[];l.icon!==void 0&&E.push(k.h(wt,{name:l.icon,left:l.stack!==!0&&g.value===!0,role:"img"})),g.value===!0&&E.push(k.h("span",{class:"block"},[l.label])),E=It(I.default,E),l.iconRight!==void 0&&l.round===!1&&E.push(k.h(wt,{name:l.iconRight,right:l.stack!==!0&&g.value===!0,role:"img"}));const _=[k.h("span",{class:"q-focus-helper",ref:i})];return l.loading===!0&&l.percentage!==void 0&&_.push(k.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(l.darkPercentage===!0?" q-btn__progress--dark":"")},[k.h("span",{class:"q-btn__progress-indicator fit block",style:C.value})])),_.push(k.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+o.value},E)),l.loading!==null&&_.push(k.h(k.Transition,{name:"q-transition--fade"},()=>l.loading===!0?[k.h("span",{key:"loading",class:"absolute-full flex flex-center"},I.loading!==void 0?I.loading():[k.h(ho)])]:null)),k.withDirectives(k.h(e.value,D.value,_),[[mo,p.value,void 0,x.value]])}}}),Qa={class:"row justify-between"},Ka=k.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})},query:{default:()=>({})}},setup(l){const I=l,t=k.inject("navContext",null),v=k.inject("router");function m(c){if(!v){console.warn("Dependencies not available:",{router:v});return}t?.setTabs();const o=c==="back"?I.from:I.to;if(!o){console.warn("Destination not provided:",c);return}v.push({name:o,params:I.params,query:I.query})}return(c,o)=>(k.openBlock(),k.createElementBlock("div",Qa,[k.createVNode(ct,{icon:"chevron_left","rounded-sm":"",label:c.labelFrom,"data-cy":"go-back","data-testid":"go-back",onClick:o[0]||(o[0]=a=>m("back"))},null,8,["label"]),c.labelTo?(k.openBlock(),k.createBlock(ct,{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:o[1]||(o[1]=a=>m("next"))},null,8,["label"])):k.createCommentVNode("",!0)]))}}),Kt=(l,I)=>{const t=l.__vccOpts||l;for(const[v,m]of I)t[v]=m;return t},Xa=Kt(Ka,[["__scopeId","data-v-8dd99f80"]]),Ot={dark:{type:Boolean,default:null}};function jt(l,I){return k.computed(()=>l.dark===null?I.dark.isActive:l.dark)}function Ga(l,I){const t=k.ref(null),v=k.computed(()=>l.disable===!0?null:k.h("span",{ref:t,class:"no-outline",tabindex:-1}));function m(c){const o=I.value;c?.qAvoidFocus!==!0&&(c?.type.indexOf("key")===0?document.activeElement!==o&&o?.contains(document.activeElement)===!0&&o.focus():t.value!==null&&(c===void 0||o?.contains(c.target)===!0)&&t.value.focus())}return{refocusTargetEl:v,refocusTarget:m}}const Fn={name:String};function Ja(l){return k.computed(()=>({type:"hidden",name:l.name,value:l.modelValue}))}function go(l={}){return(I,t,v)=>{I[t](k.h("input",{class:"hidden"+(v||""),...l.value}))}}function bo(l){return k.computed(()=>l.name||l.for)}const Za={xs:30,sm:35,md:40,lg:50,xl:60},$a={...Ot,...Rr,...Fn,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:l=>l==="tf"||l==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},el=["update:modelValue"];function tl(l,I){const{props:t,slots:v,emit:m,proxy:c}=k.getCurrentInstance(),{$q:o}=c,a=jt(t,o),n=k.ref(null),{refocusTargetEl:e,refocusTarget:r}=Ga(t,n),u=Br(t,Za),s=k.computed(()=>t.val!==void 0&&Array.isArray(t.modelValue)),i=k.computed(()=>{const L=k.toRaw(t.val);return s.value===!0?t.modelValue.findIndex(A=>k.toRaw(A)===L):-1}),d=k.computed(()=>s.value===!0?i.value!==-1:k.toRaw(t.modelValue)===k.toRaw(t.trueValue)),h=k.computed(()=>s.value===!0?i.value===-1:k.toRaw(t.modelValue)===k.toRaw(t.falseValue)),f=k.computed(()=>d.value===!1&&h.value===!1),g=k.computed(()=>t.disable===!0?-1:t.tabindex||0),p=k.computed(()=>`q-${l} cursor-pointer no-outline row inline no-wrap items-center`+(t.disable===!0?" disabled":"")+(a.value===!0?` q-${l}--dark`:"")+(t.dense===!0?` q-${l}--dense`:"")+(t.leftLabel===!0?" reverse":"")),x=k.computed(()=>{const L=d.value===!0?"truthy":h.value===!0?"falsy":"indet",A=t.color!==void 0&&(t.keepColor===!0||h.value!==!0)?` text-${t.color}`:"";return`q-${l}__inner relative-position non-selectable q-${l}__inner--${L}${A}`}),C=k.computed(()=>{const L={type:"checkbox"};return t.name!==void 0&&Object.assign(L,{".checked":d.value,"^checked":d.value===!0?"checked":void 0,name:t.name,value:s.value===!0?t.val:t.trueValue}),L}),T=go(C),D=k.computed(()=>{const L={tabindex:g.value,role:"checkbox","aria-label":t.label,"aria-checked":f.value===!0?"mixed":d.value===!0?"true":"false"};return t.disable===!0&&(L["aria-disabled"]="true"),L});function q(L){L!==void 0&&(St(L),r(L)),t.disable!==!0&&m("update:modelValue",N(),L)}function N(){if(s.value===!0){if(d.value===!0){const L=t.modelValue.slice();return L.splice(i.value,1),L}return t.modelValue.concat([t.val])}if(d.value===!0){if(t.toggleOrder!=="ft"||t.toggleIndeterminate===!1)return t.falseValue}else if(h.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)&&St(L)}function V(L){(L.keyCode===13||L.keyCode===32)&&q(L)}const W=I(d,f);return Object.assign(c,{toggle:q}),()=>{const L=W();t.disable!==!0&&T(L,"unshift",` q-${l}__native absolute q-ma-none q-pa-none`);const A=[k.h("div",{class:x.value,style:u.value,"aria-hidden":"true"},L)];e.value!==null&&A.push(e.value);const E=t.label!==void 0?It(v.default,[t.label]):gt(v.default);return E!==void 0&&A.push(k.h("div",{class:`q-${l}__label q-anchor--skip`},E)),k.h("div",{ref:n,class:p.value,...D.value,onClick:q,onKeydown:P,onKeyup:V},A)}}const rl=()=>k.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[k.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[k.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),k.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),_r=$e({name:"QCheckbox",props:$a,emits:el,setup(l){const I=rl();function t(v,m){const c=k.computed(()=>(v.value===!0?l.checkedIcon:m.value===!0?l.indeterminateIcon:l.uncheckedIcon)||null);return()=>c.value!==null?[k.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[k.h(wt,{class:"q-checkbox__icon",name:c.value})])]:[I]}return tl("checkbox",t)}}),nl=$e({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(l){return()=>[k.h("div",{class:l.store.scroll.vertical.barClass.value,style:[l.barStyle,l.verticalBarStyle],"aria-hidden":"true",onMousedown:l.store.onVerticalMousedown}),k.h("div",{class:l.store.scroll.horizontal.barClass.value,style:[l.barStyle,l.horizontalBarStyle],"aria-hidden":"true",onMousedown:l.store.onHorizontalMousedown}),k.withDirectives(k.h("div",{ref:l.store.scroll.vertical.ref,class:l.store.scroll.vertical.thumbClass.value,style:l.store.scroll.vertical.style.value,"aria-hidden":"true"}),l.store.thumbVertDir),k.withDirectives(k.h("div",{ref:l.store.scroll.horizontal.ref,class:l.store.scroll.horizontal.thumbClass.value,style:l.store.scroll.horizontal.style.value,"aria-hidden":"true"}),l.store.thumbHorizDir)]}}),ir=k.ref(!1);let fi;function il(l,I){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(l)||/(opr)[\/]([\w.]+)/.exec(l)||/(vivaldi)[\/]([\w.]+)/.exec(l)||/(chrome|crios)[\/]([\w.]+)/.exec(l)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(l)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(l)||/(firefox|fxios)[\/]([\w.]+)/.exec(l)||/(webkit)[\/]([\w.]+)/.exec(l)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(l)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:I[0]||""}}function sl(l){return/(ipad)/.exec(l)||/(ipod)/.exec(l)||/(windows phone)/.exec(l)||/(iphone)/.exec(l)||/(kindle)/.exec(l)||/(silk)/.exec(l)||/(android)/.exec(l)||/(win)/.exec(l)||/(mac)/.exec(l)||/(linux)/.exec(l)||/(cros)/.exec(l)||/(playbook)/.exec(l)||/(bb)/.exec(l)||/(blackberry)/.exec(l)||[]}const vo="ontouchstart"in window||window.navigator.maxTouchPoints>0;function ol(l){const I=l.toLowerCase(),t=sl(I),v=il(I,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};v.browser&&(m[v.browser]=!0,m.version=v.version,m.versionNumber=parseInt(v.version,10)),v.platform&&(m[v.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||I.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,v.browser="edge"):m.crios?(m.chrome=!0,v.browser="chrome"):m.fxios&&(m.firefox=!0,v.browser="firefox"),(m.ipod||m.ipad||m.iphone)&&(m.ios=!0),m.vivaldi&&(v.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&&(v.browser="opera",m.opera=!0),m.safari&&(m.blackberry||m.bb?(v.browser="blackberry",m.blackberry=!0):m.playbook?(v.browser="playbook",m.playbook=!0):m.android?(v.browser="android",m.android=!0):m.kindle?(v.browser="kindle",m.kindle=!0):m.silk&&(v.browser="silk",m.silk=!0)),m.name=v.browser,m.platform=v.platform,I.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"),ir.value===!0&&(fi={is:{...m}}),vo===!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 o=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(m,{mobile:!0,ios:!0,platform:o,[o]:!0})}m.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete m.desktop,m.mobile=!0)}return m}const hs=navigator.userAgent||navigator.vendor||window.opera,al={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Et={userAgent:hs,is:ol(hs),has:{touch:vo},within:{iframe:window.self!==window.top}},di={install(l){const{$q:I}=l;ir.value===!0?(l.onSSRHydrated.push(()=>{Object.assign(I.platform,Et),ir.value=!1}),I.platform=k.reactive(this)):I.platform=this}};{let l;Lt(Et.has,"webStorage",()=>{if(l!==void 0)return l;try{if(window.localStorage)return l=!0,!0}catch{}return l=!1,!1}),Object.assign(di,Et),ir.value===!0&&(Object.assign(di,fi,al),fi=null)}function ll(){const l=k.ref(!ir.value);return l.value===!1&&k.onMounted(()=>{l.value=!0}),{isHydrated:l}}const yo=typeof ResizeObserver<"u",ps=yo===!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"},Er=$e({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(l,{emit:I}){let t=null,v,m={width:-1,height:-1};function c(n){n===!0||l.debounce===0||l.debounce==="0"?o():t===null&&(t=setTimeout(o,l.debounce))}function o(){if(t!==null&&(clearTimeout(t),t=null),v){const{offsetWidth:n,offsetHeight:e}=v;(n!==m.width||e!==m.height)&&(m={width:n,height:e},I("resize",m))}}const{proxy:a}=k.getCurrentInstance();if(a.trigger=c,yo===!0){let n;const e=r=>{v=a.$el.parentNode,v?(n=new ResizeObserver(c),n.observe(v),o()):r!==!0&&k.nextTick(()=>{e(!0)})};return k.onMounted(()=>{e()}),k.onBeforeUnmount(()=>{t!==null&&clearTimeout(t),n!==void 0&&(n.disconnect!==void 0?n.disconnect():v&&n.unobserve(v))}),jn}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(),v?.contentDocument&&(u=v.contentDocument.defaultView,u.addEventListener("resize",c,_t.passive),o())};const{isHydrated:r}=ll();let u;return k.onMounted(()=>{k.nextTick(()=>{v=a.$el,v&&e()})}),k.onBeforeUnmount(n),()=>{if(r.value===!0)return k.h("object",{class:"q--avoid-card-border",style:ps.style,tabindex:-1,type:"text/html",data:ps.url,"aria-hidden":"true",onLoad:e})}}}}),Dn=[Element,String],ul=[null,document,document.body,document.scrollingElement,document.documentElement];function Nn(l,I){let t=Fa(I);if(t===void 0){if(l==null)return window;t=l.closest(".scroll,.scroll-y,.overflow-auto")}return ul.includes(t)?window:t}function Oi(l){return l===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:l.scrollTop}function ji(l){return l===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:l.scrollLeft}function wo(l,I,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],m=Oi(l);if(t<=0){m!==I&&hi(l,I);return}requestAnimationFrame(c=>{const o=c-v,a=m+(I-m)/Math.max(o,t)*o;hi(l,a),a!==I&&wo(l,I,t-o,c)})}function xo(l,I,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],m=ji(l);if(t<=0){m!==I&&pi(l,I);return}requestAnimationFrame(c=>{const o=c-v,a=m+(I-m)/Math.max(o,t)*o;pi(l,a),a!==I&&xo(l,I,t-o,c)})}function hi(l,I){if(l===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,I);return}l.scrollTop=I}function pi(l,I){if(l===window){window.scrollTo(I,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}l.scrollLeft=I}function ms(l,I,t){if(t){wo(l,I,t);return}hi(l,I)}function Yn(l,I,t){if(t){xo(l,I,t);return}pi(l,I)}let sn;function yn(){if(sn!==void 0)return sn;const l=document.createElement("p"),I=document.createElement("div");ci(l,{width:"100%",height:"200px"}),ci(I,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),I.appendChild(l),document.body.appendChild(I);const t=l.offsetWidth;I.style.overflow="scroll";let v=l.offsetWidth;return t===v&&(v=I.clientWidth),I.remove(),sn=t-v,sn}function cl(l,I=!0){return!l||l.nodeType!==Node.ELEMENT_NODE?!1:I?l.scrollHeight>l.clientHeight&&(l.classList.contains("scroll")||l.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(l)["overflow-y"])):l.scrollWidth>l.clientWidth&&(l.classList.contains("scroll")||l.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(l)["overflow-x"]))}const{passive:gs}=_t,fl=["both","horizontal","vertical"],So=$e({name:"QScrollObserver",props:{axis:{type:String,validator:l=>fl.includes(l),default:"vertical"},debounce:[String,Number],scrollTarget:Dn},emits:["scroll"],setup(l,{emit:I}){const t={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let v=null,m,c;k.watch(()=>l.scrollTarget,()=>{n(),a()});function o(){v?.();const u=Math.max(0,Oi(m)),s=ji(m),i={top:u-t.position.top,left:s-t.position.left};if(l.axis==="vertical"&&i.top===0||l.axis==="horizontal"&&i.left===0)return;const d=Math.abs(i.top)>=Math.abs(i.left)?i.top<0?"up":"down":i.left<0?"left":"right";t.position={top:u,left:s},t.directionChanged=t.direction!==d,t.delta=i,t.directionChanged===!0&&(t.direction=d,t.inflectionPoint=t.position),I("scroll",{...t})}function a(){m=Nn(c,l.scrollTarget),m.addEventListener("scroll",e,gs),e(!0)}function n(){m!==void 0&&(m.removeEventListener("scroll",e,gs),m=void 0)}function e(u){if(u===!0||l.debounce===0||l.debounce==="0")o();else if(v===null){const[s,i]=l.debounce?[setTimeout(o,l.debounce),clearTimeout]:[requestAnimationFrame(o),cancelAnimationFrame];v=()=>{i(s),v=null}}}const{proxy:r}=k.getCurrentInstance();return k.watch(()=>r.$q.lang.rtl,o),k.onMounted(()=>{c=r.$el.parentNode,a()}),k.onBeforeUnmount(()=>{v?.(),n()}),Object.assign(r,{trigger:e,getPosition:()=>t}),jn}}),Fi={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},dl=Object.keys(Fi);Fi.all=!0;function bs(l){const I={};for(const t of dl)l[t]===!0&&(I[t]=!0);return Object.keys(I).length===0?Fi:(I.horizontal===!0?I.left=I.right=!0:I.left===!0&&I.right===!0&&(I.horizontal=!0),I.vertical===!0?I.up=I.down=!0:I.up===!0&&I.down===!0&&(I.vertical=!0),I.horizontal===!0&&I.vertical===!0&&(I.all=!0),I)}const hl=["INPUT","TEXTAREA"];function vs(l,I){return I.event===void 0&&l.target!==void 0&&l.target.draggable!==!0&&typeof I.handler=="function"&&hl.includes(l.target.nodeName.toUpperCase())===!1&&(l.qClonedBy===void 0||l.qClonedBy.indexOf(I.uid)===-1)}function kn(){if(window.getSelection!==void 0){const l=window.getSelection();l.empty!==void 0?l.empty():l.removeAllRanges!==void 0&&(l.removeAllRanges(),di.is.mobile!==!0&&l.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function Qn(l,I,t){const v=Ur(l);let m,c=v.left-I.event.x,o=v.top-I.event.y,a=Math.abs(c),n=Math.abs(o);const e=I.direction;e.horizontal===!0&&e.vertical!==!0?m=c<0?"left":"right":e.horizontal!==!0&&e.vertical===!0?m=o<0?"up":"down":e.up===!0&&o<0?(m="up",a>n&&(e.left===!0&&c<0?m="left":e.right===!0&&c>0&&(m="right"))):e.down===!0&&o>0?(m="down",a>n&&(e.left===!0&&c<0?m="left":e.right===!0&&c>0&&(m="right"))):e.left===!0&&c<0?(m="left",a<n&&(e.up===!0&&o<0?m="up":e.down===!0&&o>0&&(m="down"))):e.right===!0&&c>0&&(m="right",a<n&&(e.up===!0&&o<0?m="up":e.down===!0&&o>0&&(m="down")));let r=!1;if(m===void 0&&t===!1){if(I.event.isFirst===!0||I.event.lastDir===void 0)return{};m=I.event.lastDir,r=!0,m==="left"||m==="right"?(v.left-=c,a=0,c=0):(v.top-=o,n=0,o=0)}return{synthetic:r,payload:{evt:l,touch:I.event.mouse!==!0,mouse:I.event.mouse===!0,position:v,direction:m,isFirst:I.event.isFirst,isFinal:t===!0,duration:Date.now()-I.event.time,distance:{x:a,y:n},offset:{x:c,y:o},delta:{x:v.left-I.event.lastX,y:v.top-I.event.lastY}}}}let pl=0;const ys=Ci({name:"touch-pan",beforeMount(l,{value:I,modifiers:t}){if(t.mouse!==!0&&Et.has.touch!==!0)return;function v(c,o){t.mouse===!0&&o===!0?St(c):(t.stop===!0&&Dt(c),t.prevent===!0&&Bt(c))}const m={uid:"qvtp_"+pl++,handler:I,modifiers:t,direction:bs(t),noop:jn,mouseStart(c){vs(c,m)&&Da(c)&&(Qt(m,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),m.start(c,!0))},touchStart(c){if(vs(c,m)){const o=c.target;Qt(m,"temp",[[o,"touchmove","move","notPassiveCapture"],[o,"touchcancel","end","passiveCapture"],[o,"touchend","end","passiveCapture"]]),m.start(c)}},start(c,o){if(Et.is.firefox===!0&&Hn(l,!0),m.lastEvt=c,o===!0||t.stop===!0){if(m.direction.all!==!0&&(o!==!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&&Bt(e),c.cancelBubble===!0&&Dt(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}}Dt(c)}const{left:a,top:n}=Ur(c);m.event={x:a,y:n,time:Date.now(),mouse:o===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:a,lastY:n}},move(c){if(m.event===void 0)return;const o=Ur(c),a=o.left-m.event.x,n=o.top-m.event.y;if(a===0&&n===0)return;m.lastEvt=c;const e=m.event.mouse===!0,r=()=>{v(c,e);let i;t.preserveCursor!==!0&&t.preservecursor!==!0&&(i=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"),kn(),m.styleCleanup=d=>{if(m.styleCleanup=void 0,i!==void 0&&(document.documentElement.style.cursor=i),document.body.classList.remove("non-selectable"),e===!0){const h=()=>{document.body.classList.remove("no-pointer-events--children")};d!==void 0?setTimeout(()=>{h(),d()},50):h()}else d!==void 0&&d()}};if(m.event.detected===!0){m.event.isFirst!==!0&&v(c,m.event.mouse);const{payload:i,synthetic:d}=Qn(c,m,!1);i!==void 0&&(m.handler(i)===!1?m.end(c):(m.styleCleanup===void 0&&m.event.isFirst===!0&&r(),m.event.lastX=i.position.left,m.event.lastY=i.position.top,m.event.lastDir=d===!0?void 0:i.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(a),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&&a<0||m.direction.right===!0&&u>s&&a>0?(m.event.detected=!0,m.move(c)):m.end(c,!0))},end(c,o){if(m.event!==void 0){if(cr(m,"temp"),Et.is.firefox===!0&&Hn(l,!1),o===!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(Qn(c===void 0?m.lastEvt:c,m).payload);const{payload:a}=Qn(c===void 0?m.lastEvt:c,m,!0),n=()=>{m.handler(a)};m.styleCleanup!==void 0?m.styleCleanup(n):n()}m.event=void 0,m.initialEvent=void 0,m.lastEvt=void 0}}};if(l.__qtouchpan=m,t.mouse===!0){const c=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";Qt(m,"main",[[l,"mousedown","mouseStart",`passive${c}`]])}Et.has.touch===!0&&Qt(m,"main",[[l,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[l,"touchmove","noop","notPassiveCapture"]])},updated(l,I){const t=l.__qtouchpan;t!==void 0&&(I.oldValue!==I.value&&(typeof value!="function"&&t.end(),t.handler=I.value),t.direction=bs(I.modifiers))},beforeUnmount(l){const I=l.__qtouchpan;I!==void 0&&(I.event!==void 0&&I.end(),cr(I,"main"),cr(I,"temp"),Et.is.firefox===!0&&Hn(l,!1),I.styleCleanup?.(),delete l.__qtouchpan)}});function ml(l){return l.charAt(0).toUpperCase()+l.slice(1)}function Or(l,I,t){return t<=I?I:Math.min(t,Math.max(I,l))}function ws(l,I,t){if(t<=I)return I;const v=t-I+1;let m=I+(l-I)%v;return m<I&&(m=v+m),m===0?0:m}function bt(l,I=2,t="0"){if(l==null)return l;const v=""+l;return v.length>=I?v:new Array(I-v.length+1).join(t)+v}function Di(l,I=250,t){let v=null;function m(){const c=arguments,o=()=>{v=null,l.apply(this,c)};v!==null&&clearTimeout(v),v=setTimeout(o,I)}return m.cancel=()=>{v!==null&&clearTimeout(v)},m}const xs=["vertical","horizontal"],Kn={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},Ss={prevent:!0,mouse:!0,mouseAllDir:!0},ks=l=>l>=250?50:Math.ceil(l/5),gl=$e({name:"QScrollArea",props:{...Ot,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(l,{slots:I,emit:t}){const v=k.ref(!1),m=k.ref(!1),c=k.ref(!1),o={vertical:k.ref(0),horizontal:k.ref(0)},a={vertical:{ref:k.ref(null),position:k.ref(0),size:k.ref(0)},horizontal:{ref:k.ref(null),position:k.ref(0),size:k.ref(0)}},{proxy:n}=k.getCurrentInstance(),e=jt(l,n.$q);let r=null,u;const s=k.ref(null),i=k.computed(()=>"q-scrollarea"+(e.value===!0?" q-scrollarea--dark":""));Object.assign(o,{verticalInner:k.computed(()=>o.vertical.value-l.verticalOffset[0]-l.verticalOffset[1]),horizontalInner:k.computed(()=>o.horizontal.value-l.horizontalOffset[0]-l.horizontalOffset[1])}),a.vertical.percentage=k.computed(()=>{const E=a.vertical.size.value-o.vertical.value;if(E<=0)return 0;const _=Or(a.vertical.position.value/E,0,1);return Math.round(_*1e4)/1e4}),a.vertical.thumbHidden=k.computed(()=>(l.visible===null?c.value:l.visible)!==!0&&v.value===!1&&m.value===!1||a.vertical.size.value<=o.vertical.value+1),a.vertical.thumbStart=k.computed(()=>l.verticalOffset[0]+a.vertical.percentage.value*(o.verticalInner.value-a.vertical.thumbSize.value)),a.vertical.thumbSize=k.computed(()=>Math.round(Or(o.verticalInner.value*o.verticalInner.value/a.vertical.size.value,ks(o.verticalInner.value),o.verticalInner.value))),a.vertical.style=k.computed(()=>({...l.thumbStyle,...l.verticalThumbStyle,top:`${a.vertical.thumbStart.value}px`,height:`${a.vertical.thumbSize.value}px`,right:`${l.horizontalOffset[1]}px`})),a.vertical.thumbClass=k.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.vertical.barClass=k.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),a.horizontal.percentage=k.computed(()=>{const E=a.horizontal.size.value-o.horizontal.value;if(E<=0)return 0;const _=Or(Math.abs(a.horizontal.position.value)/E,0,1);return Math.round(_*1e4)/1e4}),a.horizontal.thumbHidden=k.computed(()=>(l.visible===null?c.value:l.visible)!==!0&&v.value===!1&&m.value===!1||a.horizontal.size.value<=o.horizontal.value+1),a.horizontal.thumbStart=k.computed(()=>l.horizontalOffset[0]+a.horizontal.percentage.value*(o.horizontalInner.value-a.horizontal.thumbSize.value)),a.horizontal.thumbSize=k.computed(()=>Math.round(Or(o.horizontalInner.value*o.horizontalInner.value/a.horizontal.size.value,ks(o.horizontalInner.value),o.horizontalInner.value))),a.horizontal.style=k.computed(()=>({...l.thumbStyle,...l.horizontalThumbStyle,[n.$q.lang.rtl===!0?"right":"left"]:`${a.horizontal.thumbStart.value}px`,width:`${a.horizontal.thumbSize.value}px`,bottom:`${l.verticalOffset[1]}px`})),a.horizontal.thumbClass=k.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.horizontal.barClass=k.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const d=k.computed(()=>a.vertical.thumbHidden.value===!0&&a.horizontal.thumbHidden.value===!0?l.contentStyle:l.contentActiveStyle);function h(){const E={};return xs.forEach(_=>{const b=a[_];Object.assign(E,{[_+"Position"]:b.position.value,[_+"Percentage"]:b.percentage.value,[_+"Size"]:b.size.value,[_+"ContainerSize"]:o[_].value,[_+"ContainerInnerSize"]:o[_+"Inner"].value})}),E}const f=Di(()=>{const E=h();E.ref=n,t("scroll",E)},0);function g(E,_,b){if(xs.includes(E)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(E==="vertical"?ms:Yn)(s.value,_,b)}function p({height:E,width:_}){let b=!1;o.vertical.value!==E&&(o.vertical.value=E,b=!0),o.horizontal.value!==_&&(o.horizontal.value=_,b=!0),b===!0&&q()}function x({position:E}){let _=!1;a.vertical.position.value!==E.top&&(a.vertical.position.value=E.top,_=!0),a.horizontal.position.value!==E.left&&(a.horizontal.position.value=E.left,_=!0),_===!0&&q()}function C({height:E,width:_}){a.horizontal.size.value!==_&&(a.horizontal.size.value=_,q()),a.vertical.size.value!==E&&(a.vertical.size.value=E,q())}function T(E,_){const b=a[_];if(E.isFirst===!0){if(b.thumbHidden.value===!0)return;u=b.position.value,m.value=!0}else if(m.value!==!0)return;E.isFinal===!0&&(m.value=!1);const y=Kn[_],w=(b.size.value-o[_].value)/(o[_+"Inner"].value-b.thumbSize.value),S=E.distance[y.dist],M=u+(E.direction===y.dir?1:-1)*S*w;N(M,_)}function D(E,_){const b=a[_];if(b.thumbHidden.value!==!0){const y=_==="vertical"?l.verticalOffset[0]:l.horizontalOffset[0],w=E[Kn[_].offset]-y,S=b.thumbStart.value-y;if(w<S||w>S+b.thumbSize.value){const M=w-b.thumbSize.value/2,B=Or(M/(o[_+"Inner"].value-b.thumbSize.value),0,1);N(B*Math.max(0,b.size.value-o[_].value),_)}b.ref.value!==null&&b.ref.value.dispatchEvent(new MouseEvent(E.type,E))}}function q(){v.value=!0,r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,v.value=!1},l.delay),l.onScroll!==void 0&&f()}function N(E,_){s.value[Kn[_].scroll]=E}let P=null;function V(){P!==null&&clearTimeout(P),P=setTimeout(()=>{P=null,c.value=!0},n.$q.platform.is.ios?50:0)}function W(){P!==null&&(clearTimeout(P),P=null),c.value=!1}let L=null;k.watch(()=>n.$q.lang.rtl,E=>{s.value!==null&&Yn(s.value,Math.abs(a.horizontal.position.value)*(E===!0?-1:1))}),k.onDeactivated(()=>{L={top:a.vertical.position.value,left:a.horizontal.position.value}}),k.onActivated(()=>{if(L===null)return;const E=s.value;E!==null&&(Yn(E,L.left),ms(E,L.top))}),k.onBeforeUnmount(f.cancel),Object.assign(n,{getScrollTarget:()=>s.value,getScroll:h,getScrollPosition:()=>({top:a.vertical.position.value,left:a.horizontal.position.value}),getScrollPercentage:()=>({top:a.vertical.percentage.value,left:a.horizontal.percentage.value}),setScrollPosition:g,setScrollPercentage(E,_,b){g(E,_*(a[E].size.value-o[E].value)*(E==="horizontal"&&n.$q.lang.rtl===!0?-1:1),b)}});const A={scroll:a,thumbVertDir:[[ys,E=>{T(E,"vertical")},void 0,{vertical:!0,...Ss}]],thumbHorizDir:[[ys,E=>{T(E,"horizontal")},void 0,{horizontal:!0,...Ss}]],onVerticalMousedown(E){D(E,"vertical")},onHorizontalMousedown(E){D(E,"horizontal")}};return()=>k.h("div",{class:i.value,onMouseenter:V,onMouseleave:W},[k.h("div",{ref:s,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:l.tabindex!==void 0?l.tabindex:void 0},[k.h("div",{class:"q-scrollarea__content absolute",style:d.value},It(I.default,[k.h(Er,{debounce:0,onResize:C})])),k.h(So,{axis:"both",onScroll:x})]),k.h(Er,{debounce:0,onResize:p}),k.h(nl,{store:A,barStyle:l.barStyle,verticalBarStyle:l.verticalBarStyle,horizontalBarStyle:l.horizontalBarStyle})])}}),Qr=$e({name:"QCard",props:{...Ot,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(l,{slots:I}){const{proxy:{$q:t}}=k.getCurrentInstance(),v=jt(l,t),m=k.computed(()=>"q-card"+(v.value===!0?" q-card--dark q-dark":"")+(l.bordered===!0?" q-card--bordered":"")+(l.square===!0?" q-card--square no-border-radius":"")+(l.flat===!0?" q-card--flat no-shadow":""));return()=>k.h(l.tag,{class:m.value},gt(I.default))}}),ko={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},_o={...ko,contextMenu:Boolean};function Ni({showing:l,avoidEmit:I,configureAnchorEl:t}){const{props:v,proxy:m,emit:c}=k.getCurrentInstance(),o=k.ref(null);let a=null;function n(i){return o.value===null?!1:i===void 0||i.touches===void 0||i.touches.length<=1}const e={};t===void 0&&(Object.assign(e,{hide(i){m.hide(i)},toggle(i){m.toggle(i),i.qAnchorHandled=!0},toggleKey(i){nr(i,13)===!0&&e.toggle(i)},contextClick(i){m.hide(i),Bt(i),k.nextTick(()=>{m.show(i),i.qAnchorHandled=!0})},prevent:Bt,mobileTouch(i){if(e.mobileCleanup(i),n(i)!==!0)return;m.hide(i),o.value.classList.add("non-selectable");const d=i.target;Qt(e,"anchor",[[d,"touchmove","mobileCleanup","passive"],[d,"touchend","mobileCleanup","passive"],[d,"touchcancel","mobileCleanup","passive"],[o.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,m.show(i),i.qAnchorHandled=!0},300)},mobileCleanup(i){o.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),l.value===!0&&i!==void 0&&kn()}}),t=function(i=v.contextMenu){if(v.noParentEvent===!0||o.value===null)return;let d;i===!0?m.$q.platform.is.mobile===!0?d=[[o.value,"touchstart","mobileTouch","passive"]]:d=[[o.value,"mousedown","hide","passive"],[o.value,"contextmenu","contextClick","notPassive"]]:d=[[o.value,"click","toggle","passive"],[o.value,"keyup","toggleKey","passive"]],Qt(e,"anchor",d)});function r(){cr(e,"anchor")}function u(i){for(o.value=i;o.value.classList.contains("q-anchor--skip");)o.value=o.value.parentNode;t()}function s(){if(v.target===!1||v.target===""||m.$el.parentNode===null)o.value=null;else if(v.target===!0)u(m.$el.parentNode);else{let i=v.target;if(typeof v.target=="string")try{i=document.querySelector(v.target)}catch{i=void 0}i!=null?(o.value=i.$el||i,t()):(o.value=null,console.error(`Anchor: target "${v.target}" not found`))}}return k.watch(()=>v.contextMenu,i=>{o.value!==null&&(r(),t(i))}),k.watch(()=>v.target,()=>{o.value!==null&&r(),s()}),k.watch(()=>v.noParentEvent,i=>{o.value!==null&&(i===!0?r():t())}),k.onMounted(()=>{s(),I!==!0&&v.modelValue===!0&&o.value===null&&c("update:modelValue",!1)}),k.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),r()}),{anchorEl:o,canShow:n,anchorEvents:e}}function Co(l,I){const t=k.ref(null);let v;function m(a,n){const e=`${n!==void 0?"add":"remove"}EventListener`,r=n!==void 0?n:v;a!==window&&a[e]("scroll",r,_t.passive),window[e]("scroll",r,_t.passive),v=n}function c(){t.value!==null&&(m(t.value),t.value=null)}const o=k.watch(()=>l.noParentEvent,()=>{t.value!==null&&(c(),I())});return k.onBeforeUnmount(o),{localScrollTarget:t,unconfigureScrollTarget:c,changeScrollEvent:m}}const Pi={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Li=["beforeShow","show","beforeHide","hide"];function Vi({showing:l,canShow:I,hideOnRouteChange:t,handleShow:v,handleHide:m,processOnMount:c}){const o=k.getCurrentInstance(),{props:a,emit:n,proxy:e}=o;let r;function u(p){l.value===!0?d(p):s(p)}function s(p){if(a.disable===!0||p?.qAnchorHandled===!0||I!==void 0&&I(p)!==!0)return;const x=a["onUpdate:modelValue"]!==void 0;x===!0&&(n("update:modelValue",!0),r=p,k.nextTick(()=>{r===p&&(r=void 0)})),(a.modelValue===null||x===!1)&&i(p)}function i(p){l.value!==!0&&(l.value=!0,n("beforeShow",p),v!==void 0?v(p):n("show",p))}function d(p){if(a.disable===!0)return;const x=a["onUpdate:modelValue"]!==void 0;x===!0&&(n("update:modelValue",!1),r=p,k.nextTick(()=>{r===p&&(r=void 0)})),(a.modelValue===null||x===!1)&&h(p)}function h(p){l.value!==!1&&(l.value=!1,n("beforeHide",p),m!==void 0?m(p):n("hide",p))}function f(p){a.disable===!0&&p===!0?a["onUpdate:modelValue"]!==void 0&&n("update:modelValue",!1):p===!0!==l.value&&(p===!0?i:h)(r)}k.watch(()=>a.modelValue,f),t!==void 0&&Ei(o)===!0&&k.watch(()=>e.$route.fullPath,()=>{t.value===!0&&l.value===!0&&d()}),k.onMounted(()=>{f(a.modelValue)});const g={show:s,hide:d,toggle:u};return Object.assign(e,g),g}let ur=[],Wr=[];function Ao(l){Wr=Wr.filter(I=>I!==l)}function bl(l){Ao(l),Wr.push(l)}function _s(l){Ao(l),Wr.length===0&&ur.length!==0&&(ur[ur.length-1](),ur=[])}function Kr(l){Wr.length===0?l():ur.push(l)}function vl(l){ur=ur.filter(I=>I!==l)}const Cs={};let yl=1,wl=document.body;function xl(l,I){const t=document.createElement("div");if(t.id=I!==void 0?`q-portal--${I}--${yl++}`:l,Cs.globalNodes!==void 0){const v=Cs.globalNodes.class;v!==void 0&&(t.className=v)}return wl.appendChild(t),t}function Sl(l){l.remove()}const Cr=[];function kl(l){return Cr.find(I=>I.contentEl!==null&&I.contentEl.contains(l))}function Eo(l,I){do{if(l.$options.name==="QMenu"){if(l.hide(I),l.$props.separateClosePopup===!0)return vn(l)}else if(l.__qPortal===!0){const t=vn(l);return t?.$options.name==="QPopupProxy"?(l.hide(I),t):l}l=vn(l)}while(l!=null)}function _l(l,I,t){for(;t!==0&&l!==void 0&&l!==null;){if(l.__qPortal===!0){if(t--,l.$options.name==="QMenu"){l=Eo(l,I);continue}l.hide(I)}l=vn(l)}}const Cl=$e({name:"QPortal",setup(l,{slots:I}){return()=>I.default()}});function Al(l){for(l=l.parent;l!=null;){if(l.type.name==="QGlobalDialog")return!0;if(l.type.name==="QDialog"||l.type.name==="QMenu")return!1;l=l.parent}return!1}function qi(l,I,t,v){const m=k.ref(!1),c=k.ref(!1);let o=null;const a={},n=v==="dialog"&&Al(l);function e(u){if(u===!0){_s(a),c.value=!0;return}c.value=!1,m.value===!1&&(n===!1&&o===null&&(o=xl(!1,v)),m.value=!0,Cr.push(l.proxy),bl(a))}function r(u){if(c.value=!1,u!==!0)return;_s(a),m.value=!1;const s=Cr.indexOf(l.proxy);s!==-1&&Cr.splice(s,1),o!==null&&(Sl(o),o=null)}return k.onUnmounted(()=>{r(!0)}),l.proxy.__qPortal=!0,Lt(l.proxy,"contentEl",()=>I.value),{showPortal:e,hidePortal:r,portalIsActive:m,portalIsAccessible:c,renderPortal:()=>n===!0?t():m.value===!0?[k.h(k.Teleport,{to:o},k.h(Cl,t))]:void 0}}const Vr={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function zi(l,I=()=>{},t=()=>{}){return{transitionProps:k.computed(()=>{const v=`q-transition--${l.transitionShow||I()}`,m=`q-transition--${l.transitionHide||t()}`;return{appear:!0,enterFromClass:`${v}-enter-from`,enterActiveClass:`${v}-enter-active`,enterToClass:`${v}-enter-to`,leaveFromClass:`${m}-leave-from`,leaveActiveClass:`${m}-leave-active`,leaveToClass:`${m}-leave-to`}}),transitionStyle:k.computed(()=>`--q-transition-duration: ${l.transitionDuration}ms`)}}function Ui(){let l;const I=k.getCurrentInstance();function t(){l=void 0}return k.onDeactivated(t),k.onBeforeUnmount(t),{removeTick:t,registerTick(v){l=v,k.nextTick(()=>{l===v&&(Mi(I)===!1&&l(),l=void 0)})}}}function Wi(){let l=null;const I=k.getCurrentInstance();function t(){l!==null&&(clearTimeout(l),l=null)}return k.onDeactivated(t),k.onBeforeUnmount(t),{removeTimeout:t,registerTimeout(v,m){t(),Mi(I)===!1&&(l=setTimeout(()=>{l=null,v()},m))}}}const fr=[];let Mr;function El(l){Mr=l.keyCode===27}function Ml(){Mr===!0&&(Mr=!1)}function Tl(l){Mr===!0&&(Mr=!1,nr(l,27)===!0&&fr[fr.length-1](l))}function Mo(l){window[l]("keydown",El),window[l]("blur",Ml),window[l]("keyup",Tl),Mr=!1}function To(l){Et.is.desktop===!0&&(fr.push(l),fr.length===1&&Mo("addEventListener"))}function _n(l){const I=fr.indexOf(l);I!==-1&&(fr.splice(I,1),fr.length===0&&Mo("removeEventListener"))}const dr=[];function Ro(l){dr[dr.length-1](l)}function Bo(l){Et.is.desktop===!0&&(dr.push(l),dr.length===1&&document.body.addEventListener("focusin",Ro))}function mi(l){const I=dr.indexOf(l);I!==-1&&(dr.splice(I,1),dr.length===0&&document.body.removeEventListener("focusin",Ro))}const{notPassiveCapture:Cn}=_t,hr=[];function An(l){const I=l.target;if(I===void 0||I.nodeType===8||I.classList.contains("no-pointer-events")===!0)return;let t=Cr.length-1;for(;t>=0;){const v=Cr[t].$;if(v.type.name==="QTooltip"){t--;continue}if(v.type.name!=="QDialog")break;if(v.props.seamless!==!0)return;t--}for(let v=hr.length-1;v>=0;v--){const m=hr[v];if((m.anchorEl.value===null||m.anchorEl.value.contains(I)===!1)&&(I===document.body||m.innerRef.value!==null&&m.innerRef.value.contains(I)===!1))l.qClickOutside=!0,m.onClickOutside(l);else return}}function Io(l){hr.push(l),hr.length===1&&(document.addEventListener("mousedown",An,Cn),document.addEventListener("touchstart",An,Cn))}function En(l){const I=hr.findIndex(t=>t===l);I!==-1&&(hr.splice(I,1),hr.length===0&&(document.removeEventListener("mousedown",An,Cn),document.removeEventListener("touchstart",An,Cn)))}let As,Es;function Mn(l){const I=l.split(" ");return I.length!==2?!1:["top","center","bottom"].includes(I[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(I[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Oo(l){return l?!(l.length!==2||typeof l[0]!="number"||typeof l[1]!="number"):!0}const gi={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(l=>{gi[`${l}#ltr`]=l,gi[`${l}#rtl`]=l});function Tn(l,I){const t=l.split(" ");return{vertical:t[0],horizontal:gi[`${t[1]}#${I===!0?"rtl":"ltr"}`]}}function Rl(l,I){let{top:t,left:v,right:m,bottom:c,width:o,height:a}=l.getBoundingClientRect();return I!==void 0&&(t-=I[1],v-=I[0],c+=I[1],m+=I[0],o+=I[0],a+=I[1]),{top:t,bottom:c,height:a,left:v,right:m,width:o,middle:v+(m-v)/2,center:t+(c-t)/2}}function Bl(l,I,t){let{top:v,left:m}=l.getBoundingClientRect();return v+=I.top,m+=I.left,t!==void 0&&(v+=t[1],m+=t[0]),{top:v,bottom:v+1,height:1,left:m,right:m+1,width:1,middle:m,center:v}}function Il(l,I){return{top:0,center:I/2,bottom:I,left:0,middle:l/2,right:l}}function Ms(l,I,t,v){return{top:l[t.vertical]-I[v.vertical],left:l[t.horizontal]-I[v.horizontal]}}function Hi(l,I=0){if(l.targetEl===null||l.anchorEl===null||I>5)return;if(l.targetEl.offsetHeight===0||l.targetEl.offsetWidth===0){setTimeout(()=>{Hi(l,I+1)},10);return}const{targetEl:t,offset:v,anchorEl:m,anchorOrigin:c,selfOrigin:o,absoluteOffset:a,fit:n,cover:e,maxHeight:r,maxWidth:u}=l;if(Et.is.ios===!0&&window.visualViewport!==void 0){const D=document.body.style,{offsetLeft:q,offsetTop:N}=window.visualViewport;q!==As&&(D.setProperty("--q-pe-left",q+"px"),As=q),N!==Es&&(D.setProperty("--q-pe-top",N+"px"),Es=N)}const{scrollLeft:s,scrollTop:i}=t,d=a===void 0?Rl(m,e===!0?[0,0]:v):Bl(m,a,v);Object.assign(t.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:u,maxHeight:r,visibility:"visible"});const{offsetWidth:h,offsetHeight:f}=t,{elWidth:g,elHeight:p}=n===!0||e===!0?{elWidth:Math.max(d.width,h),elHeight:e===!0?Math.max(d.height,f):f}:{elWidth:h,elHeight:f};let x={maxWidth:u,maxHeight:r};(n===!0||e===!0)&&(x.minWidth=d.width+"px",e===!0&&(x.minHeight=d.height+"px")),Object.assign(t.style,x);const C=Il(g,p);let T=Ms(d,C,c,o);if(a===void 0||v===void 0)Xn(T,d,C,c,o);else{const{top:D,left:q}=T;Xn(T,d,C,c,o);let N=!1;if(T.top!==D){N=!0;const P=2*v[1];d.center=d.top-=P,d.bottom-=P+2}if(T.left!==q){N=!0;const P=2*v[0];d.middle=d.left-=P,d.right-=P+2}N===!0&&(T=Ms(d,C,c,o),Xn(T,d,C,c,o))}x={top:T.top+"px",left:T.left+"px"},T.maxHeight!==void 0&&(x.maxHeight=T.maxHeight+"px",d.height>T.maxHeight&&(x.minHeight=x.maxHeight)),T.maxWidth!==void 0&&(x.maxWidth=T.maxWidth+"px",d.width>T.maxWidth&&(x.minWidth=x.maxWidth)),Object.assign(t.style,x),t.scrollTop!==i&&(t.scrollTop=i),t.scrollLeft!==s&&(t.scrollLeft=s)}function Xn(l,I,t,v,m){const c=t.bottom,o=t.right,a=yn(),n=window.innerHeight-a,e=document.body.clientWidth;if(l.top<0||l.top+c>n)if(m.vertical==="center")l.top=I[v.vertical]>n/2?Math.max(0,n-c):0,l.maxHeight=Math.min(c,n);else if(I[v.vertical]>n/2){const r=Math.min(n,v.vertical==="center"?I.center:v.vertical===m.vertical?I.bottom:I.top);l.maxHeight=Math.min(c,r),l.top=Math.max(0,r-c)}else l.top=Math.max(0,v.vertical==="center"?I.center:v.vertical===m.vertical?I.top:I.bottom),l.maxHeight=Math.min(c,n-l.top);if(l.left<0||l.left+o>e)if(l.maxWidth=Math.min(o,e),m.horizontal==="middle")l.left=I[v.horizontal]>e/2?Math.max(0,e-o):0;else if(I[v.horizontal]>e/2){const r=Math.min(e,v.horizontal==="middle"?I.middle:v.horizontal===m.horizontal?I.right:I.left);l.maxWidth=Math.min(o,r),l.left=Math.max(0,r-l.maxWidth)}else l.left=Math.max(0,v.horizontal==="middle"?I.middle:v.horizontal===m.horizontal?I.left:I.right),l.maxWidth=Math.min(o,e-l.left)}const Xr=$e({name:"QMenu",inheritAttrs:!1,props:{..._o,...Pi,...Ot,...Vr,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Mn},self:{type:String,validator:Mn},offset:{type:Array,validator:Oo},scrollTarget:Dn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Li,"click","escapeKey"],setup(l,{slots:I,emit:t,attrs:v}){let m=null,c,o,a;const n=k.getCurrentInstance(),{proxy:e}=n,{$q:r}=e,u=k.ref(null),s=k.ref(!1),i=k.computed(()=>l.persistent!==!0&&l.noRouteDismiss!==!0),d=jt(l,r),{registerTick:h,removeTick:f}=Ui(),{registerTimeout:g}=Wi(),{transitionProps:p,transitionStyle:x}=zi(l),{localScrollTarget:C,changeScrollEvent:T,unconfigureScrollTarget:D}=Co(l,H),{anchorEl:q,canShow:N}=Ni({showing:s}),{hide:P}=Vi({showing:s,canShow:N,handleShow:M,handleHide:B,hideOnRouteChange:i,processOnMount:!0}),{showPortal:V,hidePortal:W,renderPortal:L}=qi(n,u,j,"menu"),A={anchorEl:q,innerRef:u,onClickOutside(R){if(l.persistent!==!0&&s.value===!0)return P(R),(R.type==="touchstart"||R.target.classList.contains("q-dialog__backdrop"))&&St(R),!0}},E=k.computed(()=>Tn(l.anchor||(l.cover===!0?"center middle":"bottom start"),r.lang.rtl)),_=k.computed(()=>l.cover===!0?E.value:Tn(l.self||"top start",r.lang.rtl)),b=k.computed(()=>(l.square===!0?" q-menu--square":"")+(d.value===!0?" q-menu--dark q-dark":"")),y=k.computed(()=>l.autoClose===!0?{onClick:z}:{}),w=k.computed(()=>s.value===!0&&l.persistent!==!0);k.watch(w,R=>{R===!0?(To(F),Io(A)):(_n(F),En(A))});function S(){Kr(()=>{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 M(R){if(m=l.noRefocus===!1?document.activeElement:null,Bo(Q),V(),H(),c=void 0,R!==void 0&&(l.touchPosition||l.contextMenu)){const U=Ur(R);if(U.left!==void 0){const{top:K,left:$}=q.value.getBoundingClientRect();c={left:U.left-$,top:U.top-K}}}o===void 0&&(o=k.watch(()=>r.screen.width+"|"+r.screen.height+"|"+l.self+"|"+l.anchor+"|"+r.lang.rtl,Y)),l.noFocus!==!0&&document.activeElement.blur(),h(()=>{Y(),l.noFocus!==!0&&S()}),g(()=>{r.platform.is.ios===!0&&(a=l.autoClose,u.value.click()),Y(),V(!0),t("show",R)},l.transitionDuration)}function B(R){f(),W(),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),g(()=>{W(!0),t("hide",R)},l.transitionDuration)}function O(R){c=void 0,o!==void 0&&(o(),o=void 0),(R===!0||s.value===!0)&&(mi(Q),D(),En(A),_n(F)),R!==!0&&(m=null)}function H(){(q.value!==null||l.scrollTarget!==void 0)&&(C.value=Nn(q.value,l.scrollTarget),T(C.value,Y))}function z(R){a!==!0?(Eo(e,R),t("click",R)):a=!1}function Q(R){w.value===!0&&l.noFocus!==!0&&po(u.value,R.target)!==!0&&S()}function F(R){l.noEscDismiss!==!0&&(t("escapeKey"),P(R))}function Y(){Hi({targetEl:u.value,offset:l.offset,anchorEl:q.value,anchorOrigin:E.value,selfOrigin:_.value,absoluteOffset:c,fit:l.fit,cover:l.cover,maxHeight:l.maxHeight,maxWidth:l.maxWidth})}function j(){return k.h(k.Transition,p.value,()=>s.value===!0?k.h("div",{role:"menu",...v,ref:u,tabindex:-1,class:["q-menu q-position-engine scroll"+b.value,v.class],style:[v.style,x.value],...y.value},gt(I.default)):null)}return k.onBeforeUnmount(O),Object.assign(e,{focus:S,updatePosition:Y}),L}});let Gn,on=0;const Mt=new Array(256);for(let l=0;l<256;l++)Mt[l]=(l+256).toString(16).substring(1);const Ol=(()=>{const l=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(l!==void 0){if(l.randomBytes!==void 0)return l.randomBytes;if(l.getRandomValues!==void 0)return I=>{const t=new Uint8Array(I);return l.getRandomValues(t),t}}return I=>{const t=[];for(let v=I;v>0;v--)t.push(Math.floor(Math.random()*256));return t}})(),Ts=4096;function bi(){(Gn===void 0||on+16>Ts)&&(on=0,Gn=Ol(Ts));const l=Array.prototype.slice.call(Gn,on,on+=16);return l[6]=l[6]&15|64,l[8]=l[8]&63|128,Mt[l[0]]+Mt[l[1]]+Mt[l[2]]+Mt[l[3]]+"-"+Mt[l[4]]+Mt[l[5]]+"-"+Mt[l[6]]+Mt[l[7]]+"-"+Mt[l[8]]+Mt[l[9]]+"-"+Mt[l[10]]+Mt[l[11]]+Mt[l[12]]+Mt[l[13]]+Mt[l[14]]+Mt[l[15]]}function jl(l){return l??null}function Rs(l,I){return l??(I===!0?`f_${bi()}`:null)}function Fl({getValue:l,required:I=!0}={}){if(ir.value===!0){const t=l!==void 0?k.ref(jl(l())):k.ref(null);return I===!0&&t.value===null&&k.onMounted(()=>{t.value=`f_${bi()}`}),l!==void 0&&k.watch(l,v=>{t.value=Rs(v,I)}),t}return l!==void 0?k.computed(()=>Rs(l(),I)):k.ref(`f_${bi()}`)}const Bs=/^on[A-Z]/;function Dl(){const{attrs:l,vnode:I}=k.getCurrentInstance(),t={listeners:k.ref({}),attributes:k.ref({})};function v(){const m={},c={};for(const o in l)o!=="class"&&o!=="style"&&Bs.test(o)===!1&&(m[o]=l[o]);for(const o in I.props)Bs.test(o)===!0&&(c[o]=I.props[o]);t.attributes.value=m,t.listeners.value=c}return k.onBeforeUpdate(v),v(),t}const Nl="_q_",Gr="_q_l_",jo="_q_pc_",Fo="_q_fo_";function Rt(){}function Pl({validate:l,resetValidation:I,requiresQForm:t}){const v=k.inject(Fo,!1);if(v!==!1){const{props:m,proxy:c}=k.getCurrentInstance();Object.assign(c,{validate:l,resetValidation:I}),k.watch(()=>m.disable,o=>{o===!0?(typeof I=="function"&&I(),v.unbindComponent(c)):v.bindComponent(c)}),k.onMounted(()=>{m.disable!==!0&&v.bindComponent(c)}),k.onBeforeUnmount(()=>{m.disable!==!0&&v.unbindComponent(c)})}else t===!0&&console.error("Parent QForm not found on useFormChild()!")}const Is=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Os=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,js=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,an=/^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])\)$/,ln=/^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)\)$/,Jn={date:l=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(l),time:l=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(l),fulltime:l=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(l),timeOrFulltime:l=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(l),email:l=>/^(([^<>()\[\]\\.,;:\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(l),hexColor:l=>Is.test(l),hexaColor:l=>Os.test(l),hexOrHexaColor:l=>js.test(l),rgbColor:l=>an.test(l),rgbaColor:l=>ln.test(l),rgbOrRgbaColor:l=>an.test(l)||ln.test(l),hexOrRgbColor:l=>Is.test(l)||an.test(l),hexaOrRgbaColor:l=>Os.test(l)||ln.test(l),anyColor:l=>js.test(l)||an.test(l)||ln.test(l)},Ll=[!0,!1,"ondemand"],Vl={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:l=>Ll.includes(l)}};function ql(l,I){const{props:t,proxy:v}=k.getCurrentInstance(),m=k.ref(!1),c=k.ref(null),o=k.ref(!1);Pl({validate:h,resetValidation:d});let a=0,n;const e=k.computed(()=>t.rules!==void 0&&t.rules!==null&&t.rules.length!==0),r=k.computed(()=>t.disable!==!0&&e.value===!0&&I.value===!1),u=k.computed(()=>t.error===!0||m.value===!0),s=k.computed(()=>typeof t.errorMessage=="string"&&t.errorMessage.length!==0?t.errorMessage:c.value);k.watch(()=>t.modelValue,()=>{o.value=!0,r.value===!0&&t.lazyRules===!1&&f()});function i(){t.lazyRules!=="ondemand"&&r.value===!0&&o.value===!0&&f()}k.watch(()=>t.reactiveRules,g=>{g===!0?n===void 0&&(n=k.watch(()=>t.rules,i,{immediate:!0,deep:!0})):n!==void 0&&(n(),n=void 0)},{immediate:!0}),k.watch(()=>t.lazyRules,i),k.watch(l,g=>{g===!0?o.value=!0:r.value===!0&&t.lazyRules!=="ondemand"&&f()});function d(){a++,I.value=!1,o.value=!1,m.value=!1,c.value=null,f.cancel()}function h(g=t.modelValue){if(t.disable===!0||e.value===!1)return!0;const p=++a,x=I.value!==!0?()=>{o.value=!0}:()=>{},C=(D,q)=>{D===!0&&x(),m.value=D,c.value=q||null,I.value=!1},T=[];for(let D=0;D<t.rules.length;D++){const q=t.rules[D];let N;if(typeof q=="function"?N=q(g,Jn):typeof q=="string"&&Jn[q]!==void 0&&(N=Jn[q](g)),N===!1||typeof N=="string")return C(!0,N),!1;N!==!0&&N!==void 0&&T.push(N)}return T.length===0?(C(!1),!0):(I.value=!0,Promise.all(T).then(D=>{if(D===void 0||Array.isArray(D)===!1||D.length===0)return p===a&&C(!1),!0;const q=D.find(N=>N===!1||typeof N=="string");return p===a&&C(q!==void 0,q),q===void 0},D=>(p===a&&(console.error(D),C(!0)),!1)))}const f=Di(h,0);return k.onBeforeUnmount(()=>{n?.(),f.cancel()}),Object.assign(v,{resetValidation:d,validate:h}),Lt(v,"hasError",()=>u.value),{isDirtyModel:o,hasRules:e,hasError:u,errorMessage:s,validate:h,resetValidation:d}}function Hr(l){return l!=null&&(""+l).length!==0}const zl={...Ot,...Vl,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},Pn={...zl,maxlength:[Number,String]},Yi=["update:modelValue","clear","focus","blur"];function Qi({requiredForAttr:l=!0,tagProp:I,changeEvent:t=!1}={}){const{props:v,proxy:m}=k.getCurrentInstance(),c=jt(v,m.$q),o=Fl({required:l,getValue:()=>v.for});return{requiredForAttr:l,changeEvent:t,tag:I===!0?k.computed(()=>v.tag):{value:"label"},isDark:c,editable:k.computed(()=>v.disable!==!0&&v.readonly!==!0),innerLoading:k.ref(!1),focused:k.ref(!1),hasPopupOpen:!1,splitAttrs:Dl(),targetUid:o,rootRef:k.ref(null),targetRef:k.ref(null),controlRef:k.ref(null)}}function Ki(l){const{props:I,emit:t,slots:v,attrs:m,proxy:c}=k.getCurrentInstance(),{$q:o}=c;let a=null;l.hasValue===void 0&&(l.hasValue=k.computed(()=>Hr(I.modelValue))),l.emitValue===void 0&&(l.emitValue=w=>{t("update:modelValue",w)}),l.controlEvents===void 0&&(l.controlEvents={onFocusin:P,onFocusout:V}),Object.assign(l,{clearValue:W,onControlFocusin:P,onControlFocusout:V,focus:q}),l.computedCounter===void 0&&(l.computedCounter=k.computed(()=>{if(I.counter!==!1){const w=typeof I.modelValue=="string"||typeof I.modelValue=="number"?(""+I.modelValue).length:Array.isArray(I.modelValue)===!0?I.modelValue.length:0,S=I.maxlength!==void 0?I.maxlength:I.maxValues;return w+(S!==void 0?" / "+S:"")}}));const{isDirtyModel:n,hasRules:e,hasError:r,errorMessage:u,resetValidation:s}=ql(l.focused,l.innerLoading),i=l.floatingLabel!==void 0?k.computed(()=>I.stackLabel===!0||l.focused.value===!0||l.floatingLabel.value===!0):k.computed(()=>I.stackLabel===!0||l.focused.value===!0||l.hasValue.value===!0),d=k.computed(()=>I.bottomSlots===!0||I.hint!==void 0||e.value===!0||I.counter===!0||I.error!==null),h=k.computed(()=>I.filled===!0?"filled":I.outlined===!0?"outlined":I.borderless===!0?"borderless":I.standout?"standout":"standard"),f=k.computed(()=>`q-field row no-wrap items-start q-field--${h.value}`+(l.fieldClass!==void 0?` ${l.fieldClass.value}`:"")+(I.rounded===!0?" q-field--rounded":"")+(I.square===!0?" q-field--square":"")+(i.value===!0?" q-field--float":"")+(p.value===!0?" q-field--labeled":"")+(I.dense===!0?" q-field--dense":"")+(I.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(l.isDark.value===!0?" q-field--dark":"")+(l.getControl===void 0?" q-field--auto-height":"")+(l.focused.value===!0?" q-field--focused":"")+(r.value===!0?" q-field--error":"")+(r.value===!0||l.focused.value===!0?" q-field--highlighted":"")+(I.hideBottomSpace!==!0&&d.value===!0?" q-field--with-bottom":"")+(I.disable===!0?" q-field--disabled":I.readonly===!0?" q-field--readonly":"")),g=k.computed(()=>"q-field__control relative-position row no-wrap"+(I.bgColor!==void 0?` bg-${I.bgColor}`:"")+(r.value===!0?" text-negative":typeof I.standout=="string"&&I.standout.length!==0&&l.focused.value===!0?` ${I.standout}`:I.color!==void 0?` text-${I.color}`:"")),p=k.computed(()=>I.labelSlot===!0||I.label!==void 0),x=k.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(I.labelColor!==void 0&&r.value!==!0?` text-${I.labelColor}`:"")),C=k.computed(()=>({id:l.targetUid.value,editable:l.editable.value,focused:l.focused.value,floatingLabel:i.value,modelValue:I.modelValue,emitValue:l.emitValue})),T=k.computed(()=>{const w={};return l.targetUid.value&&(w.for=l.targetUid.value),I.disable===!0&&(w["aria-disabled"]="true"),w});function D(){const w=document.activeElement;let S=l.targetRef?.value;S&&(w===null||w.id!==l.targetUid.value)&&(S.hasAttribute("tabindex")===!0||(S=S.querySelector("[tabindex]")),S!==w&&S?.focus({preventScroll:!0}))}function q(){Kr(D)}function N(){vl(D);const w=document.activeElement;w!==null&&l.rootRef.value.contains(w)&&w.blur()}function P(w){a!==null&&(clearTimeout(a),a=null),l.editable.value===!0&&l.focused.value===!1&&(l.focused.value=!0,t("focus",w))}function V(w,S){a!==null&&clearTimeout(a),a=setTimeout(()=>{a=null,!(document.hasFocus()===!0&&(l.hasPopupOpen===!0||l.controlRef===void 0||l.controlRef.value===null||l.controlRef.value.contains(document.activeElement)!==!1))&&(l.focused.value===!0&&(l.focused.value=!1,t("blur",w)),S?.())})}function W(w){St(w),o.platform.is.mobile!==!0?(l.targetRef?.value||l.rootRef.value).focus():l.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),I.type==="file"&&(l.inputRef.value.value=null),t("update:modelValue",null),l.changeEvent===!0&&t("change",null),t("clear",I.modelValue),k.nextTick(()=>{const S=n.value;s(),n.value=S})}function L(w){[13,32].includes(w.keyCode)&&W(w)}function A(){const w=[];return v.prepend!==void 0&&w.push(k.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Bt},v.prepend())),w.push(k.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},E())),r.value===!0&&I.noErrorIcon===!1&&w.push(b("error",[k.h(wt,{name:o.iconSet.field.error,color:"negative"})])),I.loading===!0||l.innerLoading.value===!0?w.push(b("inner-loading-append",v.loading!==void 0?v.loading():[k.h(ho,{color:I.color})])):I.clearable===!0&&l.hasValue.value===!0&&l.editable.value===!0&&w.push(b("inner-clearable-append",[k.h(wt,{class:"q-field__focusable-action",name:I.clearIcon||o.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":o.lang.label.clear,onKeyup:L,onClick:W})])),v.append!==void 0&&w.push(k.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Bt},v.append())),l.getInnerAppend!==void 0&&w.push(b("inner-append",l.getInnerAppend())),l.getControlChild!==void 0&&w.push(l.getControlChild()),w}function E(){const w=[];return I.prefix!==void 0&&I.prefix!==null&&w.push(k.h("div",{class:"q-field__prefix no-pointer-events row items-center"},I.prefix)),l.getShadowControl!==void 0&&l.hasShadow.value===!0&&w.push(l.getShadowControl()),l.getControl!==void 0?w.push(l.getControl()):v.rawControl!==void 0?w.push(v.rawControl()):v.control!==void 0&&w.push(k.h("div",{ref:l.targetRef,class:"q-field__native row",tabindex:-1,...l.splitAttrs.attributes.value,"data-autofocus":I.autofocus===!0||void 0},v.control(C.value))),p.value===!0&&w.push(k.h("div",{class:x.value},gt(v.label,I.label))),I.suffix!==void 0&&I.suffix!==null&&w.push(k.h("div",{class:"q-field__suffix no-pointer-events row items-center"},I.suffix)),w.concat(gt(v.default))}function _(){let w,S;r.value===!0?u.value!==null?(w=[k.h("div",{role:"alert"},u.value)],S=`q--slot-error-${u.value}`):(w=gt(v.error),S="q--slot-error"):(I.hideHint!==!0||l.focused.value===!0)&&(I.hint!==void 0?(w=[k.h("div",I.hint)],S=`q--slot-hint-${I.hint}`):(w=gt(v.hint),S="q--slot-hint"));const M=I.counter===!0||v.counter!==void 0;if(I.hideBottomSpace===!0&&M===!1&&w===void 0)return;const B=k.h("div",{key:S,class:"q-field__messages col"},w);return k.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(I.hideBottomSpace!==!0?"animated":"stale"),onClick:Bt},[I.hideBottomSpace===!0?B:k.h(k.Transition,{name:"q-transition--field-message"},()=>B),M===!0?k.h("div",{class:"q-field__counter"},v.counter!==void 0?v.counter():l.computedCounter.value):null])}function b(w,S){return S===null?null:k.h("div",{key:w,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},S)}let y=!1;return k.onDeactivated(()=>{y=!0}),k.onActivated(()=>{y===!0&&I.autofocus===!0&&c.focus()}),I.autofocus===!0&&k.onMounted(()=>{c.focus()}),k.onBeforeUnmount(()=>{a!==null&&clearTimeout(a)}),Object.assign(c,{focus:q,blur:N}),function(){const S=l.getControl===void 0&&v.control===void 0?{...l.splitAttrs.attributes.value,"data-autofocus":I.autofocus===!0||void 0,...T.value}:T.value;return k.h(l.tag.value,{ref:l.rootRef,class:[f.value,m.class],style:m.style,...S},[v.before!==void 0?k.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Bt},v.before()):null,k.h("div",{class:"q-field__inner relative-position col self-stretch"},[k.h("div",{ref:l.controlRef,class:g.value,tabindex:-1,...l.controlEvents},A()),d.value===!0?_():null]),v.after!==void 0?k.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Bt},v.after()):null])}}const Ul=$e({name:"QField",inheritAttrs:!1,props:{...Pn,tag:{type:String,default:"label"}},emits:Yi,setup(){return Ki(Qi({tagProp:!0}))}}),Wl={xs:8,sm:10,md:14,lg:20,xl:24},Do=$e({name:"QChip",props:{...Ot,...Rr,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(l,{slots:I,emit:t}){const{proxy:{$q:v}}=k.getCurrentInstance(),m=jt(l,v),c=Br(l,Wl),o=k.computed(()=>l.selected===!0||l.icon!==void 0),a=k.computed(()=>l.selected===!0?l.iconSelected||v.iconSet.chip.selected:l.icon),n=k.computed(()=>l.iconRemove||v.iconSet.chip.remove),e=k.computed(()=>l.disable===!1&&(l.clickable===!0||l.selected!==null)),r=k.computed(()=>{const f=l.outline===!0&&l.color||l.textColor;return"q-chip row inline no-wrap items-center"+(l.outline===!1&&l.color!==void 0?` bg-${l.color}`:"")+(f?` text-${f} q-chip--colored`:"")+(l.disable===!0?" disabled":"")+(l.dense===!0?" q-chip--dense":"")+(l.outline===!0?" q-chip--outline":"")+(l.selected===!0?" q-chip--selected":"")+(e.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(l.square===!0?" q-chip--square":"")+(m.value===!0?" q-chip--dark q-dark":"")}),u=k.computed(()=>{const f=l.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:l.tabindex||0},g={...f,role:"button","aria-hidden":"false","aria-label":l.removeAriaLabel||v.lang.label.remove};return{chip:f,remove:g}});function s(f){f.keyCode===13&&i(f)}function i(f){l.disable||(t("update:selected",!l.selected),t("click",f))}function d(f){(f.keyCode===void 0||f.keyCode===13)&&(St(f),l.disable===!1&&(t("update:modelValue",!1),t("remove")))}function h(){const f=[];e.value===!0&&f.push(k.h("div",{class:"q-focus-helper"})),o.value===!0&&f.push(k.h(wt,{class:"q-chip__icon q-chip__icon--left",name:a.value}));const g=l.label!==void 0?[k.h("div",{class:"ellipsis"},[l.label])]:void 0;return f.push(k.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},io(I.default,g))),l.iconRight&&f.push(k.h(wt,{class:"q-chip__icon q-chip__icon--right",name:l.iconRight})),l.removable===!0&&f.push(k.h(wt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:n.value,...u.value.remove,onClick:d,onKeyup:d})),f}return()=>{if(l.modelValue===!1)return;const f={class:r.value,style:c.value};return e.value===!0&&Object.assign(f,u.value.chip,{onClick:i,onKeyup:s}),ga("div",f,h(),"ripple",l.ripple!==!1&&l.disable!==!0,()=>[[mo,l.ripple]])}}}),qr=$e({name:"QItem",props:{...Ot,...co,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(l,{slots:I,emit:t}){const{proxy:{$q:v}}=k.getCurrentInstance(),m=jt(l,v),{hasLink:c,linkAttrs:o,linkClass:a,linkTag:n,navigateOnClick:e}=Ti(),r=k.ref(null),u=k.ref(null),s=k.computed(()=>l.clickable===!0||c.value===!0||l.tag==="label"),i=k.computed(()=>l.disable!==!0&&s.value===!0),d=k.computed(()=>"q-item q-item-type row no-wrap"+(l.dense===!0?" q-item--dense":"")+(m.value===!0?" q-item--dark":"")+(c.value===!0&&l.active===null?a.value:l.active===!0?` q-item--active${l.activeClass!==void 0?` ${l.activeClass}`:""}`:"")+(l.disable===!0?" disabled":"")+(i.value===!0?" q-item--clickable q-link cursor-pointer "+(l.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(l.focused===!0?" q-manual-focusable--focused":""):"")),h=k.computed(()=>l.insetLevel===void 0?null:{["padding"+(v.lang.rtl===!0?"Right":"Left")]:16+l.insetLevel*56+"px"});function f(x){i.value===!0&&(u.value!==null&&x.qAvoidFocus!==!0&&(x.qKeyEvent!==!0&&document.activeElement===r.value?u.value.focus():document.activeElement===u.value&&r.value.focus()),e(x))}function g(x){if(i.value===!0&&nr(x,[13,32])===!0){St(x),x.qKeyEvent=!0;const C=new MouseEvent("click",x);C.qKeyEvent=!0,r.value.dispatchEvent(C)}t("keyup",x)}function p(){const x=Ai(I.default,[]);return i.value===!0&&x.unshift(k.h("div",{class:"q-focus-helper",tabindex:-1,ref:u})),x}return()=>{const x={ref:r,class:d.value,style:h.value,role:"listitem",onClick:f,onKeyup:g};return i.value===!0?(x.tabindex=l.tabindex||"0",Object.assign(x,o.value)):s.value===!0&&(x["aria-disabled"]="true"),k.h(n.value,x,p())}}}),zr=$e({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(l,{slots:I}){const t=k.computed(()=>`q-item__section column q-item__section--${l.avatar===!0||l.side===!0||l.thumbnail===!0?"side":"main"}`+(l.top===!0?" q-item__section--top justify-start":" justify-center")+(l.avatar===!0?" q-item__section--avatar":"")+(l.thumbnail===!0?" q-item__section--thumbnail":"")+(l.noWrap===!0?" q-item__section--nowrap":""));return()=>k.h("div",{class:t.value},gt(I.default))}}),vi=$e({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(l,{slots:I}){const t=k.computed(()=>parseInt(l.lines,10)),v=k.computed(()=>"q-item__label"+(l.overline===!0?" q-item__label--overline text-overline":"")+(l.caption===!0?" q-item__label--caption text-caption":"")+(l.header===!0?" q-item__label--header":"")+(t.value===1?" ellipsis":"")),m=k.computed(()=>l.lines!==void 0&&t.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t.value}:null);return()=>k.h("div",{style:m.value,class:v.value},gt(I.default))}});function Hl(l,I,t){function v(){}return k.onBeforeUnmount(()=>{l.value===!0&&void 0}),{removeFromHistory:v,addToHistory(){}}}let jr=0,Zn,$n,Nr,ei=!1,Fs,Ds,Ns,ar=null;function Yl(l){Ql(l)&&St(l)}function Ql(l){if(l.target===document.body||l.target.classList.contains("q-layout__backdrop"))return!0;const I=Na(l),t=l.shiftKey&&!l.deltaX,v=!t&&Math.abs(l.deltaX)<=Math.abs(l.deltaY),m=t||v?l.deltaY:l.deltaX;for(let c=0;c<I.length;c++){const o=I[c];if(cl(o,v))return v?m<0&&o.scrollTop===0?!0:m>0&&o.scrollTop+o.clientHeight===o.scrollHeight:m<0&&o.scrollLeft===0?!0:m>0&&o.scrollLeft+o.clientWidth===o.scrollWidth}return!0}function Ps(l){l.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function un(l){ei!==!0&&(ei=!0,requestAnimationFrame(()=>{ei=!1;const{height:I}=l.target,{clientHeight:t,scrollTop:v}=document.scrollingElement;(Nr===void 0||I!==window.innerHeight)&&(Nr=t-I,document.scrollingElement.scrollTop=v),v>Nr&&(document.scrollingElement.scrollTop-=Math.ceil((v-Nr)/8))}))}function Ls(l){const I=document.body,t=window.visualViewport!==void 0;if(l==="add"){const{overflowY:v,overflowX:m}=window.getComputedStyle(I);Zn=ji(window),$n=Oi(window),Fs=I.style.left,Ds=I.style.top,Ns=window.location.href,I.style.left=`-${Zn}px`,I.style.top=`-${$n}px`,m!=="hidden"&&(m==="scroll"||I.scrollWidth>window.innerWidth)&&I.classList.add("q-body--force-scrollbar-x"),v!=="hidden"&&(v==="scroll"||I.scrollHeight>window.innerHeight)&&I.classList.add("q-body--force-scrollbar-y"),I.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Et.is.ios===!0&&(t===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",un,_t.passiveCapture),window.visualViewport.addEventListener("scroll",un,_t.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Ps,_t.passiveCapture))}Et.is.desktop===!0&&Et.is.mac===!0&&window[`${l}EventListener`]("wheel",Yl,_t.notPassive),l==="remove"&&(Et.is.ios===!0&&(t===!0?(window.visualViewport.removeEventListener("resize",un,_t.passiveCapture),window.visualViewport.removeEventListener("scroll",un,_t.passiveCapture)):window.removeEventListener("scroll",Ps,_t.passiveCapture)),I.classList.remove("q-body--prevent-scroll"),I.classList.remove("q-body--force-scrollbar-x"),I.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,I.style.left=Fs,I.style.top=Ds,window.location.href===Ns&&window.scrollTo(Zn,$n),Nr=void 0)}function Kl(l){let I="add";if(l===!0){if(jr++,ar!==null){clearTimeout(ar),ar=null;return}if(jr>1)return}else{if(jr===0||(jr--,jr>0))return;if(I="remove",Et.is.ios===!0&&Et.is.nativeMobile===!0){ar!==null&&clearTimeout(ar),ar=setTimeout(()=>{Ls(I),ar=null},100);return}}Ls(I)}function Xl(){let l;return{preventBodyScroll(I){I!==l&&(l!==void 0||I===!0)&&(l=I,Kl(I))}}}let cn=0;const Gl={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"},Vs={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Ln=$e({name:"QDialog",inheritAttrs:!1,props:{...Pi,...Vr,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:l=>["standard","top","bottom","left","right"].includes(l)}},emits:[...Li,"shake","click","escapeKey"],setup(l,{slots:I,emit:t,attrs:v}){const m=k.getCurrentInstance(),c=k.ref(null),o=k.ref(!1),a=k.ref(!1);let n=null,e=null,r,u;const s=k.computed(()=>l.persistent!==!0&&l.noRouteDismiss!==!0&&l.seamless!==!0),{preventBodyScroll:i}=Xl(),{registerTimeout:d}=Wi(),{registerTick:h,removeTick:f}=Ui(),{transitionProps:g,transitionStyle:p}=zi(l,()=>Vs[l.position][0],()=>Vs[l.position][1]),x=k.computed(()=>p.value+(l.backdropFilter!==void 0?`;backdrop-filter:${l.backdropFilter};-webkit-backdrop-filter:${l.backdropFilter}`:"")),{showPortal:C,hidePortal:T,portalIsAccessible:D,renderPortal:q}=qi(m,c,H,"dialog"),{hide:N}=Vi({showing:o,hideOnRouteChange:s,handleShow:A,handleHide:E,processOnMount:!0});Hl(o);const P=k.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${l.maximized===!0?"maximized":"minimized"} q-dialog__inner--${l.position} ${Gl[l.position]}`+(a.value===!0?" q-dialog__inner--animating":"")+(l.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(l.fullHeight===!0?" q-dialog__inner--fullheight":"")+(l.square===!0?" q-dialog__inner--square":"")),V=k.computed(()=>o.value===!0&&l.seamless!==!0),W=k.computed(()=>l.autoClose===!0?{onClick:M}:{}),L=k.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${V.value===!0?"modal":"seamless"}`,v.class]);k.watch(()=>l.maximized,z=>{o.value===!0&&S(z)}),k.watch(V,z=>{i(z),z===!0?(Bo(O),To(y)):(mi(O),_n(y))});function A(z){e=l.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,S(l.maximized),C(),a.value=!0,l.noFocus!==!0?(document.activeElement?.blur(),h(_)):f(),d(()=>{if(m.proxy.$q.platform.is.ios===!0){if(l.seamless!==!0&&document.activeElement){const{top:Q,bottom:F}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,j=window.visualViewport!==void 0?window.visualViewport.height:Y;Q>0&&F>j/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-j,F>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+F-j/2))),document.activeElement.scrollIntoView()}u=!0,c.value.click(),u=!1}C(!0),a.value=!1,t("show",z)},l.transitionDuration)}function E(z){f(),w(!0),a.value=!0,T(),e!==null&&(((z?.type.indexOf("key")===0?e.closest('[tabindex]:not([tabindex^="-"])'):void 0)||e).focus(),e=null),d(()=>{T(!0),a.value=!1,t("hide",z)},l.transitionDuration)}function _(z){Kr(()=>{let Q=c.value;if(Q!==null){if(z!==void 0){const F=Q.querySelector(z);if(F!==null){F.focus({preventScroll:!0});return}}Q.contains(document.activeElement)!==!0&&(Q=Q.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||Q.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||Q.querySelector("[autofocus], [data-autofocus]")||Q,Q.focus({preventScroll:!0}))}})}function b(z){z&&typeof z.focus=="function"?z.focus({preventScroll:!0}):_(),t("shake");const Q=c.value;Q!==null&&(Q.classList.remove("q-animate--scale"),Q.classList.add("q-animate--scale"),n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,c.value!==null&&(Q.classList.remove("q-animate--scale"),_())},170))}function y(){l.seamless!==!0&&(l.persistent===!0||l.noEscDismiss===!0?l.maximized!==!0&&l.noShake!==!0&&b():(t("escapeKey"),N()))}function w(z){n!==null&&(clearTimeout(n),n=null),(z===!0||o.value===!0)&&(S(!1),l.seamless!==!0&&(i(!1),mi(O),_n(y))),z!==!0&&(e=null)}function S(z){z===!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 M(z){u!==!0&&(N(z),t("click",z))}function B(z){l.persistent!==!0&&l.noBackdropDismiss!==!0?N(z):l.noShake!==!0&&b()}function O(z){l.allowFocusOutside!==!0&&D.value===!0&&po(c.value,z.target)!==!0&&_('[tabindex]:not([tabindex="-1"])')}Object.assign(m.proxy,{focus:_,shake:b,__updateRefocusTarget(z){e=z||null}}),k.onBeforeUnmount(w);function H(){return k.h("div",{role:"dialog","aria-modal":V.value===!0?"true":"false",...v,class:L.value},[k.h(k.Transition,{name:"q-transition--fade",appear:!0},()=>V.value===!0?k.h("div",{class:"q-dialog__backdrop fixed-full",style:x.value,"aria-hidden":"true",tabindex:-1,onClick:B}):null),k.h(k.Transition,g.value,()=>o.value===!0?k.h("div",{ref:c,class:P.value,style:p.value,tabindex:-1,...W.value},gt(I.default)):null)])}return q}});let Rn=!1;{const l=document.createElement("div");l.setAttribute("dir","rtl"),Object.assign(l.style,{width:"1px",height:"1px",overflow:"auto"});const I=document.createElement("div");Object.assign(I.style,{width:"1000px",height:"1px"}),document.body.appendChild(l),l.appendChild(I),l.scrollLeft=-1e3,Rn=l.scrollLeft>=0,l.remove()}const zt=1e3,Jl=["start","center","end","start-force","center-force","end-force"],No=Array.prototype.filter,Zl=window.getComputedStyle(document.body).overflowAnchor===void 0?jn:function(l,I){l!==null&&(l._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(l._qOverflowAnimationFrame),l._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(l===null)return;l._qOverflowAnimationFrame=void 0;const t=l.children||[];No.call(t,m=>m.dataset&&m.dataset.qVsAnchor!==void 0).forEach(m=>{delete m.dataset.qVsAnchor});const v=t[I];v?.dataset&&(v.dataset.qVsAnchor="")}))};function Ar(l,I){return l+I}function ti(l,I,t,v,m,c,o,a){const n=l===window?document.scrollingElement||document.documentElement:l,e=m===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-o-a,scrollMaxSize:0,offsetStart:-o,offsetEnd:-a};if(m===!0?(l===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=(Rn===!0?r.scrollMaxSize-r.scrollViewSize:0)-r.scrollStart)):(l===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(v!==null)for(let u=v.nextElementSibling;u!==null;u=u.nextElementSibling)u.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetEnd+=u[e]);if(I!==l){const u=n.getBoundingClientRect(),s=I.getBoundingClientRect();m===!0?(r.offsetStart+=s.left-u.left,r.offsetEnd-=s.width):(r.offsetStart+=s.top-u.top,r.offsetEnd-=s.height),l!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function qs(l,I,t,v){I==="end"&&(I=(l===window?document.body:l)[t===!0?"scrollWidth":"scrollHeight"]),l===window?t===!0?(v===!0&&(I=(Rn===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-I),window.scrollTo(I,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,I):t===!0?(v===!0&&(I=(Rn===!0?l.scrollWidth-l.offsetWidth:0)-I),l.scrollLeft=I):l.scrollTop=I}function Fr(l,I,t,v){if(t>=v)return 0;const m=I.length,c=Math.floor(t/zt),o=Math.floor((v-1)/zt)+1;let a=l.slice(c,o).reduce(Ar,0);return t%zt!==0&&(a-=I.slice(c*zt,t).reduce(Ar,0)),v%zt!==0&&v!==m&&(a-=I.slice(v,o*zt).reduce(Ar,0)),a}const Po={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]},Lo=Object.keys(Po),yi={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Po};function Vo({virtualScrollLength:l,getVirtualScrollTarget:I,getVirtualScrollEl:t,virtualScrollItemSizeComputed:v}){const m=k.getCurrentInstance(),{props:c,emit:o,proxy:a}=m,{$q:n}=a;let e,r,u,s=[],i;const d=k.ref(0),h=k.ref(0),f=k.ref({}),g=k.ref(null),p=k.ref(null),x=k.ref(null),C=k.ref({from:0,to:0}),T=k.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);v===void 0&&(v=k.computed(()=>c.virtualScrollItemSize));const D=k.computed(()=>v.value+";"+c.virtualScrollHorizontal),q=k.computed(()=>D.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);k.watch(q,()=>{b()}),k.watch(D,N);function N(){_(r,!0)}function P(B){_(B===void 0?r:B)}function V(B,O){const H=I();if(H==null||H.nodeType===8)return;const z=ti(H,t(),g.value,p.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);u!==z.scrollViewSize&&b(z.scrollViewSize),L(H,z,Math.min(l.value-1,Math.max(0,parseInt(B,10)||0)),0,Jl.indexOf(O)!==-1?O:r!==-1&&B>r?"end":"start")}function W(){const B=I();if(B==null||B.nodeType===8)return;const O=ti(B,t(),g.value,p.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),H=l.value-1,z=O.scrollMaxSize-O.offsetStart-O.offsetEnd-h.value;if(e===O.scrollStart)return;if(O.scrollMaxSize<=0){L(B,O,0,0);return}u!==O.scrollViewSize&&b(O.scrollViewSize),A(C.value.from);const Q=Math.floor(O.scrollMaxSize-Math.max(O.scrollViewSize,O.offsetEnd)-Math.min(i[H],O.scrollViewSize/2));if(Q>0&&Math.ceil(O.scrollStart)>=Q){L(B,O,H,O.scrollMaxSize-O.offsetEnd-s.reduce(Ar,0));return}let F=0,Y=O.scrollStart-O.offsetStart,j=Y;if(Y<=z&&Y+O.scrollViewSize>=d.value)Y-=d.value,F=C.value.from,j=Y;else for(let R=0;Y>=s[R]&&F<H;R++)Y-=s[R],F+=zt;for(;Y>0&&F<H;)Y-=i[F],Y>-O.scrollViewSize?(F++,j=Y):j=i[F]+Y;L(B,O,F,j)}function L(B,O,H,z,Q){const F=typeof Q=="string"&&Q.indexOf("-force")!==-1,Y=F===!0?Q.replace("-force",""):Q,j=Y!==void 0?Y:"start";let R=Math.max(0,H-f.value[j]),U=R+f.value.total;U>l.value&&(U=l.value,R=Math.max(0,U-f.value.total)),e=O.scrollStart;const K=R!==C.value.from||U!==C.value.to;if(K===!1&&Y===void 0){w(H);return}const{activeElement:$}=document,G=x.value;K===!0&&G!==null&&G!==$&&G.contains($)===!0&&(G.addEventListener("focusout",E),setTimeout(()=>{G?.removeEventListener("focusout",E)})),Zl(G,H-R);const ee=Y!==void 0?i.slice(R,H).reduce(Ar,0):0;if(K===!0){const ae=U>=C.value.from&&R<=C.value.to?C.value.to:U;C.value={from:R,to:ae},d.value=Fr(s,i,0,R),h.value=Fr(s,i,U,l.value),requestAnimationFrame(()=>{C.value.to!==U&&e===O.scrollStart&&(C.value={from:C.value.from,to:U},h.value=Fr(s,i,U,l.value))})}requestAnimationFrame(()=>{if(e!==O.scrollStart)return;K===!0&&A(R);const ae=i.slice(R,H).reduce(Ar,0),se=ae+O.offsetStart+d.value,J=se+i[H];let ne=se+z;if(Y!==void 0){const ie=ae-ee,fe=O.scrollStart+ie;ne=F!==!0&&fe<se&&J<fe+O.scrollViewSize?fe:Y==="end"?J-O.scrollViewSize:se-(Y==="start"?0:Math.round((O.scrollViewSize-i[H])/2))}e=ne,qs(B,ne,c.virtualScrollHorizontal,n.lang.rtl),w(H)})}function A(B){const O=x.value;if(O){const H=No.call(O.children,R=>R.classList&&R.classList.contains("q-virtual-scroll--skip")===!1),z=H.length,Q=c.virtualScrollHorizontal===!0?R=>R.getBoundingClientRect().width:R=>R.offsetHeight;let F=B,Y,j;for(let R=0;R<z;){for(Y=Q(H[R]),R++;R<z&&H[R].classList.contains("q-virtual-scroll--with-prev")===!0;)Y+=Q(H[R]),R++;j=Y-i[F],j!==0&&(i[F]+=j,s[Math.floor(F/zt)]+=j),F++}}}function E(){x.value?.focus()}function _(B,O){const H=1*v.value;(O===!0||Array.isArray(i)===!1)&&(i=[]);const z=i.length;i.length=l.value;for(let F=l.value-1;F>=z;F--)i[F]=H;const Q=Math.floor((l.value-1)/zt);s=[];for(let F=0;F<=Q;F++){let Y=0;const j=Math.min((F+1)*zt,l.value);for(let R=F*zt;R<j;R++)Y+=i[R];s.push(Y)}r=-1,e=void 0,d.value=Fr(s,i,0,C.value.from),h.value=Fr(s,i,C.value.to,l.value),B>=0?(A(C.value.from),k.nextTick(()=>{V(B)})):S()}function b(B){if(B===void 0&&typeof window<"u"){const Y=I();Y!=null&&Y.nodeType!==8&&(B=ti(Y,t(),g.value,p.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}u=B;const O=parseFloat(c.virtualScrollSliceRatioBefore)||0,H=parseFloat(c.virtualScrollSliceRatioAfter)||0,z=1+O+H,Q=B===void 0||B<=0?1:Math.ceil(B/v.value),F=Math.max(1,Q,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/z));f.value={total:Math.ceil(F*z),start:Math.ceil(F*O),center:Math.ceil(F*(.5+O)),end:Math.ceil(F*(1+O)),view:Q}}function y(B,O){const H=c.virtualScrollHorizontal===!0?"width":"height",z={["--q-virtual-scroll-item-"+H]:v.value+"px"};return[B==="tbody"?k.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:g},[k.h("tr",[k.h("td",{style:{[H]:`${d.value}px`,...z},colspan:T.value})])]):k.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:g,style:{[H]:`${d.value}px`,...z}}),k.h(B,{class:"q-virtual-scroll__content",key:"content",ref:x,tabindex:-1},O.flat()),B==="tbody"?k.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:p},[k.h("tr",[k.h("td",{style:{[H]:`${h.value}px`,...z},colspan:T.value})])]):k.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:p,style:{[H]:`${h.value}px`,...z}})]}function w(B){r!==B&&(c.onVirtualScroll!==void 0&&o("virtualScroll",{index:B,from:C.value.from,to:C.value.to-1,direction:B<r?"decrease":"increase",ref:a}),r=B)}b();const S=Di(W,n.platform.is.ios===!0?120:35);k.onBeforeMount(()=>{b()});let M=!1;return k.onDeactivated(()=>{M=!0}),k.onActivated(()=>{if(M!==!0)return;const B=I();e!==void 0&&B!==void 0&&B!==null&&B.nodeType!==8?qs(B,e,c.virtualScrollHorizontal,n.lang.rtl):V(r)}),k.onBeforeUnmount(()=>{S.cancel()}),Object.assign(a,{scrollTo:V,reset:N,refresh:P}),{virtualScrollSliceRange:C,virtualScrollSliceSizeComputed:f,setVirtualScrollSize:b,onVirtualScrollEvt:S,localResetVirtualScroll:_,padVirtualScroll:y,scrollTo:V,reset:N,refresh:P}}const $l=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,eu=/[\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,tu=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,ru=/[a-z0-9_ -]$/i;function qo(l){return function(t){if(t.type==="compositionend"||t.type==="change"){if(t.target.qComposing!==!0)return;t.target.qComposing=!1,l(t)}else t.type==="compositionupdate"&&t.target.qComposing!==!0&&typeof t.data=="string"&&(Et.is.firefox===!0?ru.test(t.data)===!1:$l.test(t.data)===!0||eu.test(t.data)===!0||tu.test(t.data)===!0)===!0&&(t.target.qComposing=!0)}}function tr(l,I){if(l===I)return!0;if(l!==null&&I!==null&&typeof l=="object"&&typeof I=="object"){if(l.constructor!==I.constructor)return!1;let t,v;if(l.constructor===Array){if(t=l.length,t!==I.length)return!1;for(v=t;v--!==0;)if(tr(l[v],I[v])!==!0)return!1;return!0}if(l.constructor===Map){if(l.size!==I.size)return!1;let c=l.entries();for(v=c.next();v.done!==!0;){if(I.has(v.value[0])!==!0)return!1;v=c.next()}for(c=l.entries(),v=c.next();v.done!==!0;){if(tr(v.value[1],I.get(v.value[0]))!==!0)return!1;v=c.next()}return!0}if(l.constructor===Set){if(l.size!==I.size)return!1;const c=l.entries();for(v=c.next();v.done!==!0;){if(I.has(v.value[0])!==!0)return!1;v=c.next()}return!0}if(l.buffer!=null&&l.buffer.constructor===ArrayBuffer){if(t=l.length,t!==I.length)return!1;for(v=t;v--!==0;)if(l[v]!==I[v])return!1;return!0}if(l.constructor===RegExp)return l.source===I.source&&l.flags===I.flags;if(l.valueOf!==Object.prototype.valueOf)return l.valueOf()===I.valueOf();if(l.toString!==Object.prototype.toString)return l.toString()===I.toString();const m=Object.keys(l).filter(c=>l[c]!==void 0);if(t=m.length,t!==Object.keys(I).filter(c=>I[c]!==void 0).length)return!1;for(v=t;v--!==0;){const c=m[v];if(tr(l[c],I[c])!==!0)return!1}return!0}return l!==l&&I!==I}function zo(l){return l!==null&&typeof l=="object"&&Array.isArray(l)!==!0}function Bn(l){return Object.prototype.toString.call(l)==="[object Date]"}function wi(l){return typeof l=="number"&&isFinite(l)}const zs=l=>["add","add-unique","toggle"].includes(l),nu=".*+?^${}()|[]\\",iu=Object.keys(Pn);function ri(l,I){if(typeof l=="function")return l;const t=l!==void 0?l:I;return v=>v!==null&&typeof v=="object"&&t in v?v[t]:v}const Vn=$e({name:"QSelect",inheritAttrs:!1,props:{...yi,...Fn,...Pn,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:zs},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:l=>["default","menu","dialog"].includes(l),default:"default"},virtualScrollItemSize:yi.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Yi,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(l,{slots:I,emit:t}){const{proxy:v}=k.getCurrentInstance(),{$q:m}=v,c=k.ref(!1),o=k.ref(!1),a=k.ref(-1),n=k.ref(""),e=k.ref(!1),r=k.ref(!1);let u=null,s=null,i,d,h,f=null,g,p,x,C;const T=k.ref(null),D=k.ref(null),q=k.ref(null),N=k.ref(null),P=k.ref(null),V=bo(l),W=qo(he),L=k.computed(()=>Array.isArray(l.options)?l.options.length:0),A=k.computed(()=>l.virtualScrollItemSize===void 0?l.optionsDense===!0?24:48:l.virtualScrollItemSize),{virtualScrollSliceRange:E,virtualScrollSliceSizeComputed:_,localResetVirtualScroll:b,padVirtualScroll:y,onVirtualScrollEvt:w,scrollTo:S,setVirtualScrollSize:M}=Vo({virtualScrollLength:L,getVirtualScrollTarget:nt,getVirtualScrollEl:He,virtualScrollItemSizeComputed:A}),B=Qi(),O=k.computed(()=>{const oe=l.mapOptions===!0&&l.multiple!==!0,Fe=l.modelValue!==void 0&&(l.modelValue!==null||oe===!0)?l.multiple===!0&&Array.isArray(l.modelValue)?l.modelValue:[l.modelValue]:[];if(l.mapOptions===!0&&Array.isArray(l.options)===!0){const Z=l.mapOptions===!0&&i!==void 0?i:[],ue=Fe.map(ve=>je(ve,Z));return l.modelValue===null&&oe===!0?ue.filter(ve=>ve!==null):ue}return Fe}),H=k.computed(()=>{const oe={};return iu.forEach(Fe=>{const Z=l[Fe];Z!==void 0&&(oe[Fe]=Z)}),oe}),z=k.computed(()=>l.optionsDark===null?B.isDark.value:l.optionsDark),Q=k.computed(()=>Hr(O.value)),F=k.computed(()=>{let oe="q-field__input q-placeholder col";return l.hideSelected===!0||O.value.length===0?[oe,l.inputClass]:(oe+=" q-field__input--padding",l.inputClass===void 0?oe:[oe,l.inputClass])}),Y=k.computed(()=>(l.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(l.popupContentClass?" "+l.popupContentClass:"")),j=k.computed(()=>L.value===0),R=k.computed(()=>O.value.map(oe=>de.value(oe)).join(", ")),U=k.computed(()=>l.displayValue!==void 0?l.displayValue:R.value),K=k.computed(()=>l.optionsHtml===!0?()=>!0:oe=>oe?.html===!0),$=k.computed(()=>l.displayValueHtml===!0||l.displayValue===void 0&&(l.optionsHtml===!0||O.value.some(K.value))),G=k.computed(()=>B.focused.value===!0?l.tabindex:-1),ee=k.computed(()=>{const oe={tabindex:l.tabindex,role:"combobox","aria-label":l.label,"aria-readonly":l.readonly===!0?"true":"false","aria-autocomplete":l.useInput===!0?"list":"none","aria-expanded":c.value===!0?"true":"false","aria-controls":`${B.targetUid.value}_lb`};return a.value>=0&&(oe["aria-activedescendant"]=`${B.targetUid.value}_${a.value}`),oe}),ae=k.computed(()=>({id:`${B.targetUid.value}_lb`,role:"listbox","aria-multiselectable":l.multiple===!0?"true":"false"})),se=k.computed(()=>O.value.map((oe,Fe)=>({index:Fe,opt:oe,html:K.value(oe),selected:!0,removeAtIndex:Me,toggleOption:Ve,tabindex:G.value}))),J=k.computed(()=>{if(L.value===0)return[];const{from:oe,to:Fe}=E.value;return l.options.slice(oe,Fe).map((Z,ue)=>{const ve=me.value(Z)===!0,ye=ke(Z)===!0,Ne=oe+ue,Se={clickable:!0,active:ye,activeClass:fe.value,manualFocus:!0,focused:!1,disable:ve,tabindex:-1,dense:l.optionsDense,dark:z.value,role:"option","aria-selected":ye===!0?"true":"false",id:`${B.targetUid.value}_${Ne}`,onClick:()=>{Ve(Z)}};return ve!==!0&&(a.value===Ne&&(Se.focused=!0),m.platform.is.desktop===!0&&(Se.onMousemove=()=>{c.value===!0&&Pe(Ne)})),{index:Ne,opt:Z,html:K.value(Z),label:de.value(Z),selected:Se.active,focused:Se.focused,toggleOption:Ve,setOptionIndex:Pe,itemProps:Se}})}),ne=k.computed(()=>l.dropdownIcon!==void 0?l.dropdownIcon:m.iconSet.arrow.dropdown),ie=k.computed(()=>l.optionsCover===!1&&l.outlined!==!0&&l.standout!==!0&&l.borderless!==!0&&l.rounded!==!0),fe=k.computed(()=>l.optionsSelectedClass!==void 0?l.optionsSelectedClass:l.color!==void 0?`text-${l.color}`:""),ce=k.computed(()=>ri(l.optionValue,"value")),de=k.computed(()=>ri(l.optionLabel,"label")),me=k.computed(()=>ri(l.optionDisable,"disable")),be=k.computed(()=>O.value.map(ce.value)),xe=k.computed(()=>{const oe={onInput:he,onChange:W,onKeydown:et,onKeyup:Le,onKeypress:Ge,onFocus:De,onClick(Fe){d===!0&&Dt(Fe)}};return oe.onCompositionstart=oe.onCompositionupdate=oe.onCompositionend=W,oe});k.watch(O,oe=>{i=oe,l.useInput===!0&&l.fillInput===!0&&l.multiple!==!0&&B.innerLoading.value!==!0&&(o.value!==!0&&c.value!==!0||Q.value!==!0)&&(h!==!0&&ze(),(o.value===!0||c.value===!0)&&Oe(""))},{immediate:!0}),k.watch(()=>l.fillInput,ze),k.watch(c,Je),k.watch(L,Ze);function Ie(oe){return l.emitValue===!0?ce.value(oe):oe}function Ee(oe){if(oe!==-1&&oe<O.value.length)if(l.multiple===!0){const Fe=l.modelValue.slice();t("remove",{index:oe,value:Fe.splice(oe,1)[0]}),t("update:modelValue",Fe)}else t("update:modelValue",null)}function Me(oe){Ee(oe),B.focus()}function We(oe,Fe){const Z=Ie(oe);if(l.multiple!==!0){l.fillInput===!0&&Te(de.value(oe),!0,!0),t("update:modelValue",Z);return}if(O.value.length===0){t("add",{index:0,value:Z}),t("update:modelValue",l.multiple===!0?[Z]:Z);return}if(Fe===!0&&ke(oe)===!0||l.maxValues!==void 0&&l.modelValue.length>=l.maxValues)return;const ue=l.modelValue.slice();t("add",{index:ue.length,value:Z}),ue.push(Z),t("update:modelValue",ue)}function Ve(oe,Fe){if(B.editable.value!==!0||oe===void 0||me.value(oe)===!0)return;const Z=ce.value(oe);if(l.multiple!==!0){Fe!==!0&&(Te(l.fillInput===!0?de.value(oe):"",!0,!0),Re()),D.value?.focus(),(O.value.length===0||tr(ce.value(O.value[0]),Z)!==!0)&&t("update:modelValue",l.emitValue===!0?Z:oe);return}if((d!==!0||e.value===!0)&&B.focus(),De(),O.value.length===0){const ye=l.emitValue===!0?Z:oe;t("add",{index:0,value:ye}),t("update:modelValue",l.multiple===!0?[ye]:ye);return}const ue=l.modelValue.slice(),ve=be.value.findIndex(ye=>tr(ye,Z));if(ve!==-1)t("remove",{index:ve,value:ue.splice(ve,1)[0]});else{if(l.maxValues!==void 0&&ue.length>=l.maxValues)return;const ye=l.emitValue===!0?Z:oe;t("add",{index:ue.length,value:ye}),ue.push(ye)}t("update:modelValue",ue)}function Pe(oe){if(m.platform.is.desktop!==!0)return;const Fe=oe!==-1&&oe<L.value?oe:-1;a.value!==Fe&&(a.value=Fe)}function qe(oe=1,Fe){if(c.value===!0){let Z=a.value;do Z=ws(Z+oe,-1,L.value-1);while(Z!==-1&&Z!==a.value&&me.value(l.options[Z])===!0);a.value!==Z&&(Pe(Z),S(Z),Fe!==!0&&l.useInput===!0&&l.fillInput===!0&&we(Z>=0?de.value(l.options[Z]):g,!0))}}function je(oe,Fe){const Z=ue=>tr(ce.value(ue),oe);return l.options.find(Z)||Fe.find(Z)||oe}function ke(oe){const Fe=ce.value(oe);return be.value.find(Z=>tr(Z,Fe))!==void 0}function De(oe){l.useInput===!0&&D.value!==null&&(oe===void 0||D.value===oe.target&&oe.target.value===R.value)&&D.value.select()}function Ue(oe){nr(oe,27)===!0&&c.value===!0&&(Dt(oe),Re(),ze()),t("keyup",oe)}function Le(oe){const{value:Fe}=oe.target;if(oe.keyCode!==void 0){Ue(oe);return}if(oe.target.value="",u!==null&&(clearTimeout(u),u=null),s!==null&&(clearTimeout(s),s=null),ze(),typeof Fe=="string"&&Fe.length!==0){const Z=Fe.toLocaleLowerCase(),ue=ye=>{const Ne=l.options.find(Se=>String(ye.value(Se)).toLocaleLowerCase()===Z);return Ne===void 0?!1:(O.value.indexOf(Ne)===-1?Ve(Ne):Re(),!0)},ve=ye=>{ue(ce)!==!0&&ye!==!0&&ue(de)!==!0&&Oe(Fe,!0,()=>ve(!0))};ve()}else B.clearValue(oe)}function Ge(oe){t("keypress",oe)}function et(oe){if(t("keydown",oe),Ii(oe)===!0)return;const Fe=n.value.length!==0&&(l.newValueMode!==void 0||l.onNewValue!==void 0),Z=oe.shiftKey!==!0&&l.disableTabSelection!==!0&&l.multiple!==!0&&(a.value!==-1||Fe===!0);if(oe.keyCode===27){Bt(oe);return}if(oe.keyCode===9&&Z===!1){ge();return}if(oe.target===void 0||oe.target.id!==B.targetUid.value||B.editable.value!==!0)return;if(oe.keyCode===40&&B.innerLoading.value!==!0&&c.value===!1){St(oe),_e();return}if(oe.keyCode===8&&(l.useChips===!0||l.clearable===!0)&&l.hideSelected!==!0&&n.value.length===0){l.multiple===!0&&Array.isArray(l.modelValue)===!0?Ee(l.modelValue.length-1):l.multiple!==!0&&l.modelValue!==null&&t("update:modelValue",null);return}(oe.keyCode===35||oe.keyCode===36)&&(typeof n.value!="string"||n.value.length===0)&&(St(oe),a.value=-1,qe(oe.keyCode===36?1:-1,l.multiple)),(oe.keyCode===33||oe.keyCode===34)&&_.value!==void 0&&(St(oe),a.value=Math.max(-1,Math.min(L.value,a.value+(oe.keyCode===33?-1:1)*_.value.view)),qe(oe.keyCode===33?1:-1,l.multiple)),(oe.keyCode===38||oe.keyCode===40)&&(St(oe),qe(oe.keyCode===38?-1:1,l.multiple));const ue=L.value;if((x===void 0||C<Date.now())&&(x=""),ue>0&&l.useInput!==!0&&oe.key!==void 0&&oe.key.length===1&&oe.altKey===!1&&oe.ctrlKey===!1&&oe.metaKey===!1&&(oe.keyCode!==32||x.length!==0)){c.value!==!0&&_e(oe);const ve=oe.key.toLocaleLowerCase(),ye=x.length===1&&x[0]===ve;C=Date.now()+1500,ye===!1&&(St(oe),x+=ve);const Ne=new RegExp("^"+x.split("").map(Be=>nu.indexOf(Be)!==-1?"\\"+Be:Be).join(".*"),"i");let Se=a.value;if(ye===!0||Se<0||Ne.test(de.value(l.options[Se]))!==!0)do Se=ws(Se+1,-1,ue-1);while(Se!==a.value&&(me.value(l.options[Se])===!0||Ne.test(de.value(l.options[Se]))!==!0));a.value!==Se&&k.nextTick(()=>{Pe(Se),S(Se),Se>=0&&l.useInput===!0&&l.fillInput===!0&&we(de.value(l.options[Se]),!0)});return}if(!(oe.keyCode!==13&&(oe.keyCode!==32||l.useInput===!0||x!=="")&&(oe.keyCode!==9||Z===!1))){if(oe.keyCode!==9&&St(oe),a.value!==-1&&a.value<ue){Ve(l.options[a.value]);return}if(Fe===!0){const ve=(ye,Ne)=>{if(Ne){if(zs(Ne)!==!0)return}else Ne=l.newValueMode;if(Te("",l.multiple!==!0,!0),ye==null)return;(Ne==="toggle"?Ve:We)(ye,Ne==="add-unique"),l.multiple!==!0&&(D.value?.focus(),Re())};if(l.onNewValue!==void 0?t("newValue",n.value,ve):ve(n.value),l.multiple!==!0)return}c.value===!0?ge():B.innerLoading.value!==!0&&_e()}}function He(){return d===!0?P.value:q.value!==null&&q.value.contentEl!==null?q.value.contentEl:void 0}function nt(){return He()}function tt(){return l.hideSelected===!0?[]:I["selected-item"]!==void 0?se.value.map(oe=>I["selected-item"](oe)).slice():I.selected!==void 0?[].concat(I.selected()):l.useChips===!0?se.value.map((oe,Fe)=>k.h(Do,{key:"option-"+Fe,removable:B.editable.value===!0&&me.value(oe.opt)!==!0,dense:!0,textColor:l.color,tabindex:G.value,onRemove(){oe.removeAtIndex(Fe)}},()=>k.h("span",{class:"ellipsis",[oe.html===!0?"innerHTML":"textContent"]:de.value(oe.opt)}))):[k.h("span",{class:"ellipsis",[$.value===!0?"innerHTML":"textContent"]:U.value})]}function Ye(){if(j.value===!0)return I["no-option"]!==void 0?I["no-option"]({inputValue:n.value}):void 0;const oe=I.option!==void 0?I.option:Z=>k.h(qr,{key:Z.index,...Z.itemProps},()=>k.h(zr,()=>k.h(vi,()=>k.h("span",{[Z.html===!0?"innerHTML":"textContent"]:Z.label}))));let Fe=y("div",J.value.map(oe));return I["before-options"]!==void 0&&(Fe=I["before-options"]().concat(Fe)),It(I["after-options"],Fe)}function ot(oe,Fe){const Z=Fe===!0?{...ee.value,...B.splitAttrs.attributes.value}:void 0,ue={ref:Fe===!0?D:void 0,key:"i_t",class:F.value,style:l.inputStyle,value:n.value!==void 0?n.value:"",type:"search",...Z,id:Fe===!0?B.targetUid.value:void 0,maxlength:l.maxlength,autocomplete:l.autocomplete,"data-autofocus":oe===!0||l.autofocus===!0||void 0,disabled:l.disable===!0,readonly:l.readonly===!0,...xe.value};return oe!==!0&&d===!0&&(Array.isArray(ue.class)===!0?ue.class=[...ue.class,"no-pointer-events"]:ue.class+=" no-pointer-events"),k.h("input",ue)}function he(oe){u!==null&&(clearTimeout(u),u=null),s!==null&&(clearTimeout(s),s=null),!(oe&&oe.target&&oe.target.qComposing===!0)&&(we(oe.target.value||""),h=!0,g=n.value,B.focused.value!==!0&&(d!==!0||e.value===!0)&&B.focus(),l.onFilter!==void 0&&(u=setTimeout(()=>{u=null,Oe(n.value)},l.inputDebounce)))}function we(oe,Fe){n.value!==oe&&(n.value=oe,Fe===!0||l.inputDebounce===0||l.inputDebounce==="0"?t("inputValue",oe):s=setTimeout(()=>{s=null,t("inputValue",oe)},l.inputDebounce))}function Te(oe,Fe,Z){h=Z!==!0,l.useInput===!0&&(we(oe,!0),(Fe===!0||Z!==!0)&&(g=oe),Fe!==!0&&Oe(oe))}function Oe(oe,Fe,Z){if(l.onFilter===void 0||Fe!==!0&&B.focused.value!==!0)return;B.innerLoading.value===!0?t("filterAbort"):(B.innerLoading.value=!0,r.value=!0),oe!==""&&l.multiple!==!0&&O.value.length!==0&&h!==!0&&oe===de.value(O.value[0])&&(oe="");const ue=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);f!==null&&clearTimeout(f),f=ue,t("filter",oe,(ve,ye)=>{(Fe===!0||B.focused.value===!0)&&f===ue&&(clearTimeout(f),typeof ve=="function"&&ve(),r.value=!1,k.nextTick(()=>{B.innerLoading.value=!1,B.editable.value===!0&&(Fe===!0?c.value===!0&&Re():c.value===!0?Je(!0):c.value=!0),typeof ye=="function"&&k.nextTick(()=>{ye(v)}),typeof Z=="function"&&k.nextTick(()=>{Z(v)})}))},()=>{B.focused.value===!0&&f===ue&&(clearTimeout(f),B.innerLoading.value=!1,r.value=!1),c.value===!0&&(c.value=!1)})}function Ce(){return k.h(Xr,{ref:q,class:Y.value,style:l.popupContentStyle,modelValue:c.value,fit:l.menuShrink!==!0,cover:l.optionsCover===!0&&j.value!==!0&&l.useInput!==!0,anchor:l.menuAnchor,self:l.menuSelf,offset:l.menuOffset,dark:z.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:l.popupNoRouteDismiss,square:ie.value,transitionShow:l.transitionShow,transitionHide:l.transitionHide,transitionDuration:l.transitionDuration,separateClosePopup:!0,...ae.value,onScrollPassive:w,onBeforeShow:vt,onBeforeHide:Qe,onShow:Ke},Ye)}function Qe(oe){ft(oe),ge()}function Ke(){M()}function te(oe){Dt(oe),D.value?.focus(),e.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function X(oe){Dt(oe),k.nextTick(()=>{e.value=!1})}function re(){const oe=[k.h(Ul,{class:`col-auto ${B.fieldClass.value}`,...H.value,for:B.targetUid.value,dark:z.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:n.value.length!==0,...B.splitAttrs.listeners.value,onFocus:te,onBlur:X},{...I,rawControl:()=>B.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&oe.push(k.h("div",{ref:P,class:Y.value+" scroll",style:l.popupContentStyle,...ae.value,onClick:Bt,onScrollPassive:w},Ye())),k.h(Ln,{ref:N,modelValue:o.value,position:l.useInput===!0?"top":void 0,transitionShow:p,transitionHide:l.transitionHide,transitionDuration:l.transitionDuration,noRouteDismiss:l.popupNoRouteDismiss,onBeforeShow:vt,onBeforeHide:le,onHide:pe,onShow:Ae},()=>k.h("div",{class:"q-select__dialog"+(z.value===!0?" q-select__dialog--dark q-dark":"")+(e.value===!0?" q-select__dialog--focused":"")},oe))}function le(oe){ft(oe),N.value!==null&&N.value.__updateRefocusTarget(B.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),B.focused.value=!1}function pe(oe){Re(),B.focused.value===!1&&t("blur",oe),ze()}function Ae(){const oe=document.activeElement;(oe===null||oe.id!==B.targetUid.value)&&D.value!==null&&D.value!==oe&&D.value.focus(),M()}function ge(){o.value!==!0&&(a.value=-1,c.value===!0&&(c.value=!1),B.focused.value===!1&&(f!==null&&(clearTimeout(f),f=null),B.innerLoading.value===!0&&(t("filterAbort"),B.innerLoading.value=!1,r.value=!1)))}function _e(oe){B.editable.value===!0&&(d===!0?(B.onControlFocusin(oe),o.value=!0,k.nextTick(()=>{B.focus()})):B.focus(),l.onFilter!==void 0?Oe(n.value):(j.value!==!0||I["no-option"]!==void 0)&&(c.value=!0))}function Re(){o.value=!1,ge()}function ze(){l.useInput===!0&&Te(l.multiple!==!0&&l.fillInput===!0&&O.value.length!==0&&de.value(O.value[0])||"",!0,!0)}function Je(oe){let Fe=-1;if(oe===!0){if(O.value.length!==0){const Z=ce.value(O.value[0]);Fe=l.options.findIndex(ue=>tr(ce.value(ue),Z))}b(Fe)}Pe(Fe)}function Ze(oe,Fe){c.value===!0&&B.innerLoading.value===!1&&(b(-1,!0),k.nextTick(()=>{c.value===!0&&B.innerLoading.value===!1&&(oe>Fe?b():Je(!0))}))}function rt(){o.value===!1&&q.value!==null&&q.value.updatePosition()}function vt(oe){oe!==void 0&&Dt(oe),t("popupShow",oe),B.hasPopupOpen=!0,B.onControlFocusin(oe)}function ft(oe){oe!==void 0&&Dt(oe),t("popupHide",oe),B.hasPopupOpen=!1,B.onControlFocusout(oe)}function kt(){d=m.platform.is.mobile!==!0&&l.behavior!=="dialog"?!1:l.behavior!=="menu"&&(l.useInput===!0?I["no-option"]!==void 0||l.onFilter!==void 0||j.value===!1:!0),p=m.platform.is.ios===!0&&d===!0&&l.useInput===!0?"fade":l.transitionShow}return k.onBeforeUpdate(kt),k.onUpdated(rt),kt(),k.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),s!==null&&clearTimeout(s)}),Object.assign(v,{showPopup:_e,hidePopup:Re,removeAtIndex:Ee,add:We,toggleOption:Ve,getOptionIndex:()=>a.value,setOptionIndex:Pe,moveOptionSelection:qe,filter:Oe,updateMenuPosition:rt,updateInputValue:Te,isOptionSelected:ke,getEmittingOptionValue:Ie,isOptionDisabled:(...oe)=>me.value.apply(null,oe)===!0,getOptionValue:(...oe)=>ce.value.apply(null,oe),getOptionLabel:(...oe)=>de.value.apply(null,oe)}),Object.assign(B,{innerValue:O,fieldClass:k.computed(()=>`q-select q-field--auto-height q-select--with${l.useInput!==!0?"out":""}-input q-select--with${l.useChips!==!0?"out":""}-chips q-select--${l.multiple===!0?"multiple":"single"}`),inputRef:T,targetRef:D,hasValue:Q,showPopup:_e,floatingLabel:k.computed(()=>l.hideSelected!==!0&&Q.value===!0||typeof n.value=="number"||n.value.length!==0||Hr(l.displayValue)),getControlChild:()=>{if(B.editable.value!==!1&&(o.value===!0||j.value!==!0||I["no-option"]!==void 0))return d===!0?re():Ce();B.hasPopupOpen===!0&&(B.hasPopupOpen=!1)},controlEvents:{onFocusin(oe){B.onControlFocusin(oe)},onFocusout(oe){B.onControlFocusout(oe,()=>{ze(),ge()})},onClick(oe){if(Bt(oe),d!==!0&&c.value===!0){ge(),D.value?.focus();return}_e(oe)}},getControl:oe=>{const Fe=tt(),Z=oe===!0||o.value!==!0||d!==!0;if(l.useInput===!0)Fe.push(ot(oe,Z));else if(B.editable.value===!0){const ve=Z===!0?ee.value:void 0;Fe.push(k.h("input",{ref:Z===!0?D:void 0,key:"d_t",class:"q-select__focus-target",id:Z===!0?B.targetUid.value:void 0,value:U.value,readonly:!0,"data-autofocus":oe===!0||l.autofocus===!0||void 0,...ve,onKeydown:et,onKeyup:Ue,onKeypress:Ge})),Z===!0&&typeof l.autocomplete=="string"&&l.autocomplete.length!==0&&Fe.push(k.h("input",{class:"q-select__autocomplete-input",autocomplete:l.autocomplete,tabindex:-1,onKeyup:Le}))}if(V.value!==void 0&&l.disable!==!0&&be.value.length!==0){const ve=be.value.map(ye=>k.h("option",{value:ye,selected:!0}));Fe.push(k.h("select",{class:"hidden",name:V.value,multiple:l.multiple},ve))}const ue=l.useInput===!0||Z!==!0?void 0:B.splitAttrs.attributes.value;return k.h("div",{class:"q-field__native row items-center",...ue,...B.splitAttrs.listeners.value},Fe)},getInnerAppend:()=>l.loading!==!0&&r.value!==!0&&l.hideDropdownIcon!==!0?[k.h(wt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:ne.value})]:null}),Ki(B)}}),su={class:"q-pa-none"},ou=k.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"},dataCy:{default:"checkbox-filter"}},emits:["update:modelValue"],setup(l,{emit:I}){const t=l,v=I,m=k.ref(!1),c=k.ref(t.modelValue||[]),o=k.computed(()=>({height:t.scrollAreaHeight,width:t.scrollAreaWidth})),a=k.computed(()=>t.dataCy||"checkbox-filter");return k.watch(c,n=>{v("update:modelValue",n)}),k.watch(()=>t.modelValue,n=>{n&&(c.value=n)},{immediate:!0}),(n,e)=>(k.openBlock(),k.createElementBlock("div",su,[k.createVNode(Vn,k.mergeProps({outlined:"",dense:"",label:t.label,class:["full-width","cursor-pointer"],"data-cy":a.value,"model-value":null,options:[],"hide-dropdown-icon":""},n.$attrs),{append:k.withCtx(()=>[k.createVNode(wt,{name:"arrow_drop_down",class:k.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":m.value}])},null,8,["class"])]),default:k.withCtx(()=>[k.createVNode(Xr,{modelValue:m.value,"onUpdate:modelValue":e[1]||(e[1]=r=>m.value=r),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:k.withCtx(()=>[k.createVNode(Qr,{class:"q-pa-sm"},{default:k.withCtx(()=>[k.createVNode(gl,{style:k.normalizeStyle(o.value)},{default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(t.options,r=>(k.openBlock(),k.createBlock(_r,{key:r.value,modelValue:c.value,"onUpdate:modelValue":e[0]||(e[0]=u=>c.value=u),val:r,label:r.label,disable:r.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`${a.value}-option-${r.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label","data-cy"])]))}}),au=Kt(ou,[["__scopeId","data-v-0e12eb7b"]]),lu=k.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null}},emits:["update:modelValue"],setup(l,{emit:I}){const t=l,v=I,m=k.ref(),c=k.ref(t.modelValue??null),o=k.ref(""),a=k.ref(t.options??[]),n=k.ref(!1),e=k.ref(!0);k.watch(()=>t.options,f=>{a.value=f??[],r()},{immediate:!0}),k.watch(()=>t.modelValue,f=>{c.value=f,r(),n.value=!1});function r(){const f=a.value.find(g=>g.value===c.value);o.value=f?.label??""}function u(f){c.value=f,v("update:modelValue",f),r(),n.value=!1}function s(f){o.value=f,f===""&&(n.value=!0)}function i(){if(e.value){e.value=!1;return}c.value!==null&&!n.value?(o.value="",n.value=!0,m.value?.showPopup()):n.value&&(o.value="")}function d(){e.value=!0;const f=o.value.trim();if(f==="")n.value&&(c.value=null,v("update:modelValue",null));else{const g=a.value.find(p=>p.label.toLowerCase()===f.toLowerCase());g?(c.value=g.value,v("update:modelValue",g.value),o.value=g.label):r()}n.value=!1}function h(f,g,p){if(t.fetchOptions)t.fetchOptions(f).then(x=>{a.value=x,g(()=>{})}).catch(p).finally(()=>{});else{const x=t.options??[];a.value=x.filter(C=>C.label.toLowerCase().includes(f.toLowerCase())),g(()=>{})}}return(f,g)=>(k.openBlock(),k.createBlock(Vn,k.mergeProps({ref_key:"selectRef",ref:m,"model-value":c.value,"input-value":o.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:f.label,options:a.value,dense:"",outlined:"",class:"full-width cursor-pointer"},f.$attrs,{"onUpdate:modelValue":u,"onUpdate:inputValue":s,onFocus:i,onBlur:d,onFilter:h}),null,16,["model-value","input-value","label","options"]))}}),uu=k.defineComponent({__name:"SelectYear",props:{modelValue:{},label:{default:"Sélectionner une année"},startYear:{default:2015},endYear:{default:void 0}},emits:["update:modelValue"],setup(l,{emit:I}){const t=l,v=I,m=k.computed(()=>{const a=t.startYear??new Date().getFullYear()-5,n=t.endYear??new Date().getFullYear(),e=[];for(let r=n;r>=a;r--)e.push({label:String(r),value:r});return e});function c(a){v("update:modelValue",a)}function o(){t.modelValue!==null&&v("update:modelValue",null)}return(a,n)=>(k.openBlock(),k.createBlock(Vn,k.mergeProps({"model-value":a.modelValue,options:m.value,"option-value":"value","option-label":"label",label:a.label,dense:"","emit-value":"",outlined:"",class:"full-width cursor-pointer"},a.$attrs,{"onUpdate:modelValue":c,onFocus:o}),null,16,["model-value","options","label"]))}}),Uo=$e({name:"QAvatar",props:{...Rr,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(l,{slots:I}){const t=Br(l),v=k.computed(()=>"q-avatar"+(l.color?` bg-${l.color}`:"")+(l.textColor?` text-${l.textColor} q-chip--colored`:"")+(l.square===!0?" q-avatar--square":l.rounded===!0?" rounded-borders":"")),m=k.computed(()=>l.fontSize?{fontSize:l.fontSize}:null);return()=>{const c=l.icon!==void 0?[k.h(wt,{name:l.icon})]:void 0;return k.h("div",{class:v.value,style:t.value},[k.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:m.value},io(I.default,c))])}}}),cu=$e({name:"QSpace",setup(){const l=k.h("div",{class:"q-space"});return()=>l}}),fu=["ul","ol"],Xi=$e({name:"QList",props:{...Ot,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(l,{slots:I}){const t=k.getCurrentInstance(),v=jt(l,t.proxy.$q),m=k.computed(()=>fu.includes(l.tag)?null:"list"),c=k.computed(()=>"q-list"+(l.bordered===!0?" q-list--bordered":"")+(l.dense===!0?" q-list--dense":"")+(l.separator===!0?" q-list--separator":"")+(v.value===!0?" q-list--dark":"")+(l.padding===!0?" q-list--padding":""));return()=>k.h(l.tag,{class:c.value,role:m.value},gt(I.default))}}),Wo=$e({name:"QToolbar",props:{inset:Boolean},setup(l,{slots:I}){const t=k.computed(()=>"q-toolbar row no-wrap items-center"+(l.inset===!0?" q-toolbar--inset":""));return()=>k.h("div",{class:t.value,role:"toolbar"},gt(I.default))}}),du=$e({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(l,{slots:I,emit:t}){const{proxy:{$q:v}}=k.getCurrentInstance(),m=k.inject(Gr,Rt);if(m===Rt)return console.error("QHeader needs to be child of QLayout"),Rt;const c=k.ref(parseInt(l.heightHint,10)),o=k.ref(!0),a=k.computed(()=>l.reveal===!0||m.view.value.indexOf("H")!==-1||v.platform.is.ios&&m.isContainer.value===!0),n=k.computed(()=>{if(l.modelValue!==!0)return 0;if(a.value===!0)return o.value===!0?c.value:0;const p=c.value-m.scroll.value.position;return p>0?p:0}),e=k.computed(()=>l.modelValue!==!0||a.value===!0&&o.value!==!0),r=k.computed(()=>l.modelValue===!0&&e.value===!0&&l.reveal===!0),u=k.computed(()=>"q-header q-layout__section--marginal "+(a.value===!0?"fixed":"absolute")+"-top"+(l.bordered===!0?" q-header--bordered":"")+(e.value===!0?" q-header--hidden":"")+(l.modelValue!==!0?" q-layout--prevent-focus":"")),s=k.computed(()=>{const p=m.rows.value.top,x={};return p[0]==="l"&&m.left.space===!0&&(x[v.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),p[2]==="r"&&m.right.space===!0&&(x[v.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),x});function i(p,x){m.update("header",p,x)}function d(p,x){p.value!==x&&(p.value=x)}function h({height:p}){d(c,p),i("size",p)}function f(p){r.value===!0&&d(o,!0),t("focusin",p)}k.watch(()=>l.modelValue,p=>{i("space",p),d(o,!0),m.animate()}),k.watch(n,p=>{i("offset",p)}),k.watch(()=>l.reveal,p=>{p===!1&&d(o,l.modelValue)}),k.watch(o,p=>{m.animate(),t("reveal",p)}),k.watch(m.scroll,p=>{l.reveal===!0&&d(o,p.direction==="up"||p.position<=l.revealOffset||p.position-p.inflectionPoint<100)});const g={};return m.instances.header=g,l.modelValue===!0&&i("size",c.value),i("space",l.modelValue),i("offset",n.value),k.onBeforeUnmount(()=>{m.instances.header===g&&(m.instances.header=void 0,i("size",0),i("offset",0),i("space",!1))}),()=>{const p=Ai(I.default,[]);return l.elevated===!0&&p.push(k.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),p.push(k.h(Er,{debounce:0,onResize:h})),k.h("header",{class:u.value,style:s.value,onFocusin:f},p)}}});function Us(l){if(l===!1)return 0;if(l===!0||l===void 0)return 1;const I=parseInt(l,10);return isNaN(I)?0:I}const qn=Ci({name:"close-popup",beforeMount(l,{value:I}){const t={depth:Us(I),handler(v){t.depth!==0&&setTimeout(()=>{const m=kl(l);m!==void 0&&_l(m,v,t.depth)})},handlerKey(v){nr(v,13)===!0&&t.handler(v)}};l.__qclosepopup=t,l.addEventListener("click",t.handler),l.addEventListener("keyup",t.handlerKey)},updated(l,{value:I,oldValue:t}){I!==t&&(l.__qclosepopup.depth=Us(I))},beforeUnmount(l){const I=l.__qclosepopup;l.removeEventListener("click",I.handler),l.removeEventListener("keyup",I.handlerKey),delete l.__qclosepopup}}),hu=["src","alt"],pu={key:0,class:"project-environment-container row items-center q-mr-md"},mu=k.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{},showProjectSwitch:{type:Boolean},currentProjectLabel:{},availableProjects:{},currentPath:{},environment:{}},emits:["project-change"],setup(l,{emit:I}){const t=l,v=t.logoAlt??"Logo",m=t.logoTo??"/",c=k.computed(()=>({width:"260px",height:"auto",borderRadius:"0"})),o=k.computed(()=>t.environment?t.environment.toUpperCase()!=="PROD":!1),a=k.computed(()=>`environment-badge--${t.environment?.toUpperCase()?.toLowerCase()}`),n=e=>t.currentPath?.startsWith(e);return(e,r)=>{const u=k.resolveComponent("router-link");return k.openBlock(),k.createBlock(du,k.mergeProps({elevated:""},e.$attrs),{default:k.withCtx(()=>[k.createVNode(Wo,null,{default:k.withCtx(()=>[k.createVNode(u,{to:k.unref(m),class:"q-mr-lg"},{default:k.withCtx(()=>[k.createVNode(Uo,{class:"logo",style:k.normalizeStyle(c.value),"data-testid":"header-logo"},{default:k.withCtx(()=>[k.createElementVNode("img",{src:e.logoSrc,alt:k.unref(v)},null,8,hu)]),_:1},8,["style"])]),_:1},8,["to"]),k.createVNode(cu),e.showProjectSwitch||o.value?(k.openBlock(),k.createElementBlock("div",pu,[o.value?(k.openBlock(),k.createElementBlock("div",{key:0,class:k.normalizeClass(["environment-badge",a.value]),"data-testid":"environment-badge"},k.toDisplayString(e.environment),3)):k.createCommentVNode("",!0),e.showProjectSwitch?(k.openBlock(),k.createBlock(ct,{key:1,dense:"",unelevated:"",color:"primary",label:e.currentProjectLabel,"data-testid":"project-switch-btn",class:"project-switch-btn q-mr-md bg-info"},{default:k.withCtx(()=>[k.createVNode(Xr,{anchor:"bottom right",self:"top right"},{default:k.withCtx(()=>[k.createVNode(Xi,{dense:"",class:"project-menu"},{default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(e.availableProjects,s=>k.withDirectives((k.openBlock(),k.createBlock(qr,{key:s.path,clickable:"",disable:n(s.path),onClick:i=>e.$emit("project-change",s.path)},{default:k.withCtx(()=>[k.createVNode(zr,{class:"q-mr-lg"},{default:k.withCtx(()=>[k.createVNode(vi,null,{default:k.withCtx(()=>[k.createTextVNode(k.toDisplayString(s.label),1)]),_:2},1024),n(s.path)?(k.openBlock(),k.createBlock(vi,{key:0,caption:""},{default:k.withCtx(()=>r[0]||(r[0]=[k.createTextVNode(" Actuel ")])),_:1,__:[0]})):k.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["disable","onClick"])),[[qn]])),128))]),_:1})]),_:1})]),_:1},8,["label"])):k.createCommentVNode("",!0)])):k.createCommentVNode("",!0),k.renderSlot(e.$slots,"user-avatar",{},void 0,!0)]),_:3})]),_:3},16)}}}),gu=Kt(mu,[["__scopeId","data-v-a4df46a4"]]),bu=$e({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=k.getCurrentInstance(),m=k.inject(Gr,Rt);if(m===Rt)return console.error("QFooter needs to be child of QLayout"),Rt;const c=k.ref(parseInt(l.heightHint,10)),o=k.ref(!0),a=k.ref(ir.value===!0||m.isContainer.value===!0?0:window.innerHeight),n=k.computed(()=>l.reveal===!0||m.view.value.indexOf("F")!==-1||v.platform.is.ios&&m.isContainer.value===!0),e=k.computed(()=>m.isContainer.value===!0?m.containerHeight.value:a.value),r=k.computed(()=>{if(l.modelValue!==!0)return 0;if(n.value===!0)return o.value===!0?c.value:0;const T=m.scroll.value.position+e.value+c.value-m.height.value;return T>0?T:0}),u=k.computed(()=>l.modelValue!==!0||n.value===!0&&o.value!==!0),s=k.computed(()=>l.modelValue===!0&&u.value===!0&&l.reveal===!0),i=k.computed(()=>"q-footer q-layout__section--marginal "+(n.value===!0?"fixed":"absolute")+"-bottom"+(l.bordered===!0?" q-footer--bordered":"")+(u.value===!0?" q-footer--hidden":"")+(l.modelValue!==!0?" q-layout--prevent-focus"+(n.value!==!0?" hidden":""):"")),d=k.computed(()=>{const T=m.rows.value.bottom,D={};return T[0]==="l"&&m.left.space===!0&&(D[v.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),T[2]==="r"&&m.right.space===!0&&(D[v.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),D});function h(T,D){m.update("footer",T,D)}function f(T,D){T.value!==D&&(T.value=D)}function g({height:T}){f(c,T),h("size",T)}function p(){if(l.reveal!==!0)return;const{direction:T,position:D,inflectionPoint:q}=m.scroll.value;f(o,T==="up"||D-q<100||m.height.value-e.value-D-c.value<300)}function x(T){s.value===!0&&f(o,!0),t("focusin",T)}k.watch(()=>l.modelValue,T=>{h("space",T),f(o,!0),m.animate()}),k.watch(r,T=>{h("offset",T)}),k.watch(()=>l.reveal,T=>{T===!1&&f(o,l.modelValue)}),k.watch(o,T=>{m.animate(),t("reveal",T)}),k.watch([c,m.scroll,m.height],p),k.watch(()=>v.screen.height,T=>{m.isContainer.value!==!0&&f(a,T)});const C={};return m.instances.footer=C,l.modelValue===!0&&h("size",c.value),h("space",l.modelValue),h("offset",r.value),k.onBeforeUnmount(()=>{m.instances.footer===C&&(m.instances.footer=void 0,h("size",0),h("offset",0),h("space",!1))}),()=>{const T=It(I.default,[k.h(Er,{debounce:0,onResize:g})]);return l.elevated===!0&&T.push(k.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),k.h("footer",{class:i.value,style:d.value,onFocusin:x},T)}}}),vu={class:"row justify-between"},yu={class:"col-3 q-py-md flex justify-center"},wu={class:"col-3 q-py-md flex justify-center"},xu={class:"col-3 q-py-md flex justify-center"},Su=k.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(l){return(I,t)=>(k.openBlock(),k.createBlock(bu,k.mergeProps({elevated:""},I.$attrs),{default:k.withCtx(()=>[k.createElementVNode("div",vu,[k.createElementVNode("div",yu," Front: "+k.toDisplayString(I.frontVersion),1),k.createElementVNode("div",wu," Back: "+k.toDisplayString(I.backVersion),1),k.createElementVNode("div",xu," Platform: "+k.toDisplayString(I.platform),1)])]),_:1},16))}}),ku={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},ni={xs:2,sm:4,md:8,lg:16,xl:24},In=$e({name:"QSeparator",props:{...Ot,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(l){const I=k.getCurrentInstance(),t=jt(l,I.proxy.$q),v=k.computed(()=>l.vertical===!0?"vertical":"horizontal"),m=k.computed(()=>` q-separator--${v.value}`),c=k.computed(()=>l.inset!==!1?`${m.value}-${ku[l.inset]}`:""),o=k.computed(()=>`q-separator${m.value}${c.value}`+(l.color!==void 0?` bg-${l.color}`:"")+(t.value===!0?" q-separator--dark":"")),a=k.computed(()=>{const n={};if(l.size!==void 0&&(n[l.vertical===!0?"width":"height"]=l.size),l.spaced!==!1){const e=l.spaced===!0?`${ni.md}px`:l.spaced in ni?`${ni[l.spaced]}px`:l.spaced,r=l.vertical===!0?["Left","Right"]:["Top","Bottom"];n[`margin${r[0]}`]=n[`margin${r[1]}`]=e}return n});return()=>k.h("hr",{class:o.value,style:a.value,"aria-orientation":v.value})}}),_u={class:"text-h6 text-primary","data-testid":"avatar-initial"},Cu={class:"text-weight-bold"},Au={class:"version-info"},Eu={class:"text-caption"},Mu={class:"text-caption"},Tu={class:"text-caption"},Ru=k.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{},logoutLabel:{default:"Déconnexion"},frontVersion:{default:"N/A"},backVersion:{default:"N/A"},platform:{default:"dev"},showVersionInfo:{type:Boolean,default:!0}},setup(l){const I=l,t=k.computed(()=>I.username?.charAt(0).toUpperCase()??"");return(v,m)=>(k.openBlock(),k.createElementBlock("div",null,[k.createVNode(Uo,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar","data-testid":"cy-avatar"},{default:k.withCtx(()=>[k.createElementVNode("span",_u,k.toDisplayString(t.value),1),k.createVNode(Xr,{"transition-show":"flip-right","transition-hide":"flip-left",class:"user-avatar-menu"},{default:k.withCtx(()=>[k.createVNode(Xi,{class:"user-menu-list"},{default:k.withCtx(()=>[k.createVNode(qr,{class:"user-info-section"},{default:k.withCtx(()=>[k.createVNode(zr,null,{default:k.withCtx(()=>[k.createElementVNode("div",Cu,k.toDisplayString(v.username),1)]),_:1})]),_:1}),k.createVNode(In),v.showVersionInfo?(k.openBlock(),k.createBlock(qr,{key:0,class:"version-info-section"},{default:k.withCtx(()=>[k.createVNode(zr,null,{default:k.withCtx(()=>[k.createElementVNode("div",Au,[m[0]||(m[0]=k.createElementVNode("div",{class:"text-caption text-grey-7"},"Informations de version",-1)),k.createElementVNode("div",Eu,"Front: "+k.toDisplayString(v.frontVersion),1),k.createElementVNode("div",Mu,"Back: "+k.toDisplayString(v.backVersion),1),k.createElementVNode("div",Tu,"Plateforme: "+k.toDisplayString(v.platform),1)])]),_:1})]),_:1})):k.createCommentVNode("",!0),v.showVersionInfo?(k.openBlock(),k.createBlock(In,{key:1})):k.createCommentVNode("",!0),k.createVNode(qr,{clickable:"",class:"logout-section","data-cy":"cy-logout-button","data-testid":"cy-logout-button",onClick:v.onLogout},{default:k.withCtx(()=>[k.createVNode(zr,null,{default:k.withCtx(()=>[k.createElementVNode("div",null,k.toDisplayString(v.logoutLabel),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),Bu=Kt(Ru,[["__scopeId","data-v-18e2dcbc"]]),Iu=$e({name:"QPageContainer",setup(l,{slots:I}){const{proxy:{$q:t}}=k.getCurrentInstance(),v=k.inject(Gr,Rt);if(v===Rt)return console.error("QPageContainer needs to be child of QLayout"),Rt;k.provide(jo,!0);const m=k.computed(()=>{const c={};return v.header.space===!0&&(c.paddingTop=`${v.header.size}px`),v.right.space===!0&&(c[`padding${t.lang.rtl===!0?"Left":"Right"}`]=`${v.right.size}px`),v.footer.space===!0&&(c.paddingBottom=`${v.footer.size}px`),v.left.space===!0&&(c[`padding${t.lang.rtl===!0?"Right":"Left"}`]=`${v.left.size}px`),c});return()=>k.h("div",{class:"q-page-container",style:m.value},gt(I.default))}}),Ou=$e({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:l=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(l.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=k.getCurrentInstance(),m=k.ref(null),c=k.ref(v.screen.height),o=k.ref(l.container===!0?0:v.screen.width),a=k.ref({position:0,direction:"down",inflectionPoint:0}),n=k.ref(0),e=k.ref(ir.value===!0?0:yn()),r=k.computed(()=>"q-layout q-layout--"+(l.container===!0?"containerized":"standard")),u=k.computed(()=>l.container===!1?{minHeight:v.screen.height+"px"}:null),s=k.computed(()=>e.value!==0?{[v.lang.rtl===!0?"left":"right"]:`${e.value}px`}:null),i=k.computed(()=>e.value!==0?{[v.lang.rtl===!0?"right":"left"]:0,[v.lang.rtl===!0?"left":"right"]:`-${e.value}px`,width:`calc(100% + ${e.value}px)`}:null);function d(C){if(l.container===!0||document.qScrollPrevented!==!0){const T={position:C.position.top,direction:C.direction,directionChanged:C.directionChanged,inflectionPoint:C.inflectionPoint.top,delta:C.delta.top};a.value=T,l.onScroll!==void 0&&t("scroll",T)}}function h(C){const{height:T,width:D}=C;let q=!1;c.value!==T&&(q=!0,c.value=T,l.onScrollHeight!==void 0&&t("scrollHeight",T),g()),o.value!==D&&(q=!0,o.value=D),q===!0&&l.onResize!==void 0&&t("resize",C)}function f({height:C}){n.value!==C&&(n.value=C,g())}function g(){if(l.container===!0){const C=c.value>n.value?yn():0;e.value!==C&&(e.value=C)}}let p=null;const x={instances:{},view:k.computed(()=>l.view),isContainer:k.computed(()=>l.container),rootRef:m,height:c,containerHeight:n,scrollbarWidth:e,totalWidth:k.computed(()=>o.value+e.value),rows:k.computed(()=>{const C=l.view.toLowerCase().split(" ");return{top:C[0].split(""),middle:C[1].split(""),bottom:C[2].split("")}}),header:k.reactive({size:0,offset:0,space:!1}),right:k.reactive({size:300,offset:0,space:!1}),footer:k.reactive({size:0,offset:0,space:!1}),left:k.reactive({size:300,offset:0,space:!1}),scroll:a,animate(){p!==null?clearTimeout(p):document.body.classList.add("q-body--layout-animate"),p=setTimeout(()=>{p=null,document.body.classList.remove("q-body--layout-animate")},155)},update(C,T,D){x[C][T]=D}};if(k.provide(Gr,x),yn()>0){let C=function(){q=null,N.classList.remove("hide-scrollbar")},T=function(){if(q===null){if(N.scrollHeight>v.screen.height)return;N.classList.add("hide-scrollbar")}else clearTimeout(q);q=setTimeout(C,300)},D=function(P){q!==null&&P==="remove"&&(clearTimeout(q),C()),window[`${P}EventListener`]("resize",T)},q=null;const N=document.body;k.watch(()=>l.container!==!0?"add":"remove",D),l.container!==!0&&D("add"),k.onUnmounted(()=>{D("remove")})}return()=>{const C=It(I.default,[k.h(So,{onScroll:d}),k.h(Er,{onResize:h})]),T=k.h("div",{class:r.value,style:u.value,ref:l.container===!0?void 0:m,tabindex:-1},C);return l.container===!0?k.h("div",{class:"q-layout-container overflow-hidden",ref:m},[k.h(Er,{onResize:f}),k.h("div",{class:"absolute-full",style:s.value},[k.h("div",{class:"scroll",style:i.value},[T])])]):T}}}),Gi=k.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-white"},pageContainerClass:{default:""}},setup(l){return(I,t)=>(k.openBlock(),k.createBlock(Ou,{view:I.view,class:k.normalizeClass(I.layoutClass),style:{minHeight:"auto !important"}},{default:k.withCtx(()=>[k.renderSlot(I.$slots,"header"),k.createVNode(Iu,{class:k.normalizeClass(I.pageContainerClass),style:{paddingBottom:"0 !important"}},{default:k.withCtx(()=>[k.renderSlot(I.$slots,"default")]),_:3},8,["class"]),k.renderSlot(I.$slots,"footer")]),_:3},8,["view","class"]))}});function ju(){let l=Object.create(null);return{getCache:(I,t)=>l[I]===void 0?l[I]=typeof t=="function"?t():t:l[I],setCache(I,t){l[I]=t},hasCache(I){return Object.hasOwnProperty.call(l,I)},clearCache(I){I!==void 0?delete l[I]:l=Object.create(null)}}}const rr=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function Fu(l,I,t){return Object.prototype.toString.call(l)==="[object Date]"&&(t=l.getDate(),I=l.getMonth()+1,l=l.getFullYear()),Lu(Ji(l,I,t))}function Ws(l,I,t){return Yo(Pu(l,I,t))}function Du(l){return Nu(l)===0}function wn(l,I){return I<=6?31:I<=11||Du(l)?30:29}function Nu(l){const I=rr.length;let t=rr[0],v,m,c,o,a;if(l<t||l>=rr[I-1])throw new Error("Invalid Jalaali year "+l);for(a=1;a<I&&(v=rr[a],m=v-t,!(l<v));a+=1)t=v;return o=l-t,m-o<6&&(o=o-m+yt(m+4,33)*33),c=Nt(Nt(o+1,33)-1,4),c===-1&&(c=4),c}function Ho(l,I){const t=rr.length,v=l+621;let m=-14,c=rr[0],o,a,n,e,r;if(l<c||l>=rr[t-1])throw new Error("Invalid Jalaali year "+l);for(r=1;r<t&&(o=rr[r],a=o-c,!(l<o));r+=1)m=m+yt(a,33)*8+yt(Nt(a,33),4),c=o;e=l-c,m=m+yt(e,33)*8+yt(Nt(e,33)+3,4),Nt(a,33)===4&&a-e===4&&(m+=1);const u=yt(v,4)-yt((yt(v,100)+1)*3,4)-150,s=20+m-u;return I||(a-e<6&&(e=e-a+yt(a+4,33)*33),n=Nt(Nt(e+1,33)-1,4),n===-1&&(n=4)),{leap:n,gy:v,march:s}}function Pu(l,I,t){const v=Ho(l,!0);return Ji(v.gy,3,v.march)+(I-1)*31-yt(I,7)*(I-7)+t-1}function Lu(l){const I=Yo(l).gy;let t=I-621,v,m,c;const o=Ho(t,!1),a=Ji(I,3,o.march);if(c=l-a,c>=0){if(c<=185)return m=1+yt(c,31),v=Nt(c,31)+1,{jy:t,jm:m,jd:v};c-=186}else t-=1,c+=179,o.leap===1&&(c+=1);return m=7+yt(c,30),v=Nt(c,30)+1,{jy:t,jm:m,jd:v}}function Ji(l,I,t){let v=yt((l+yt(I-8,6)+100100)*1461,4)+yt(153*Nt(I+9,12)+2,5)+t-34840408;return v=v-yt(yt(l+100100+yt(I-8,6),100)*3,4)+752,v}function Yo(l){let I=4*l+139361631;I=I+yt(yt(4*l+183187720,146097)*3,4)*4-3908;const t=yt(Nt(I,1461),4)*5+308,v=yt(Nt(t,153),5)+1,m=Nt(yt(t,153),12)+1;return{gy:yt(I,1461)-100100+yt(8-m,6),gm:m,gd:v}}function yt(l,I){return~~(l/I)}function Nt(l,I){return l-~~(l/I)*I}const Vu=["gregorian","persian"],Hs={mask:{type:String},locale:Object,calendar:{type:String,validator:l=>Vu.includes(l),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},qu=["update:modelValue"];function Zt(l){return l.year+"/"+bt(l.month)+"/"+bt(l.day)}function zu(l,I){const t=k.computed(()=>l.disable!==!0&&l.readonly!==!0),v=k.computed(()=>t.value===!0?0:-1),m=k.computed(()=>{const a=[];return l.color!==void 0&&a.push(`bg-${l.color}`),l.textColor!==void 0&&a.push(`text-${l.textColor}`),a.join(" ")});function c(){return l.locale!==void 0?{...I.lang.date,...l.locale}:I.lang.date}function o(a){const n=new Date,e=a===!0?null:0;if(l.calendar==="persian"){const r=Fu(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:v,headerClass:m,getLocale:c,getCurrentDate:o}}const xi={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:l=>l?`Expand "${l}"`:"Expand",collapse:l=>l?`Collapse "${l}"`:"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:l=>`Previous ${l} years`,nextRangeYears:l=>`Next ${l} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:l=>l===1?"1 record selected.":(l===0?"No":l)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(l,I,t)=>l+"-"+I+" 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 Ys(){const l=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof l=="string")return l.split(/[-_]/).map((I,t)=>t===0?I.toLowerCase():t>1||I.length<4?I.toUpperCase():I[0].toUpperCase()+I.slice(1).toLowerCase()).join("-")}const er=ma({__qLang:{}},{getLocale:Ys,set(l=xi,I){const t={...l,rtl:l.rtl===!0,getLocale:Ys};{if(t.set=er.set,er.__langConfig===void 0||er.__langConfig.noHtmlAttrs!==!0){const v=document.documentElement;v.setAttribute("dir",t.rtl===!0?"rtl":"ltr"),v.setAttribute("lang",t.isoName)}Object.assign(er.__qLang,t)}},install({$q:l,lang:I,ssrContext:t}){l.lang=er.__qLang,er.__langConfig=l.config.lang,this.__installed===!0?I!==void 0&&this.set(I):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(v){return Reflect.ownKeys(v).filter(m=>m!=="set"&&m!=="getLocale")}}),this.set(I||xi))}}),Qo=864e5,Uu=36e5,Si=6e4,Ko="YYYY-MM-DDTHH:mm:ss.SSSZ",Wu=/\[((?:[^\]\\]|\\]|\\)*)\]|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,Hu=/(\[[^\]]*\])|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,ii={};function Yu(l,I){const t="("+I.days.join("|")+")",v=l+t;if(ii[v]!==void 0)return ii[v];const m="("+I.daysShort.join("|")+")",c="("+I.months.join("|")+")",o="("+I.monthsShort.join("|")+")",a={};let n=0;const e=l.replace(Hu,u=>{switch(n++,u){case"YY":return a.YY=n,"(-?\\d{1,2})";case"YYYY":return a.YYYY=n,"(-?\\d{1,4})";case"M":return a.M=n,"(\\d{1,2})";case"Mo":return a.M=n++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return a.M=n,"(\\d{2})";case"MMM":return a.MMM=n,o;case"MMMM":return a.MMMM=n,c;case"D":return a.D=n,"(\\d{1,2})";case"Do":return a.D=n++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return a.D=n,"(\\d{2})";case"H":return a.H=n,"(\\d{1,2})";case"HH":return a.H=n,"(\\d{2})";case"h":return a.h=n,"(\\d{1,2})";case"hh":return a.h=n,"(\\d{2})";case"m":return a.m=n,"(\\d{1,2})";case"mm":return a.m=n,"(\\d{2})";case"s":return a.s=n,"(\\d{1,2})";case"ss":return a.s=n,"(\\d{2})";case"S":return a.S=n,"(\\d{1})";case"SS":return a.S=n,"(\\d{2})";case"SSS":return a.S=n,"(\\d{3})";case"A":return a.A=n,"(AM|PM)";case"a":return a.a=n,"(am|pm)";case"aa":return a.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 a.Z=n,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return a.ZZ=n,"(Z|[+-]\\d{2}\\d{2})";case"X":return a.X=n,"(-?\\d+)";case"x":return a.x=n,"(-?\\d{4,})";default:return n--,u[0]==="["&&(u=u.substring(1,u.length-1)),u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),r={map:a,regex:new RegExp("^"+e)};return ii[v]=r,r}function Xo(l,I){return l!==void 0?l:I!==void 0?I.date:xi.date}function Qs(l,I=""){const t=l>0?"-":"+",v=Math.abs(l),m=Math.floor(v/60),c=v%60;return t+bt(m)+I+bt(c)}function Qu(l,I,t){let v=l.getFullYear(),m=l.getMonth();const c=l.getDate();return I.year!==void 0&&(v+=t*I.year,delete I.year),I.month!==void 0&&(m+=t*I.month,delete I.month),l.setDate(1),l.setMonth(2),l.setFullYear(v),l.setMonth(m),l.setDate(Math.min(c,es(l))),I.date!==void 0&&(l.setDate(l.getDate()+t*I.date),delete I.date),l}function Ku(l,I,t){const v=I.year!==void 0?I.year:l[`get${t}FullYear`](),m=I.month!==void 0?I.month-1:l[`get${t}Month`](),c=new Date(v,m+1,0).getDate(),o=Math.min(c,I.date!==void 0?I.date:l[`get${t}Date`]());return l[`set${t}Date`](1),l[`set${t}Month`](2),l[`set${t}FullYear`](v),l[`set${t}Month`](m),l[`set${t}Date`](o),delete I.year,delete I.month,delete I.date,l}function Zi(l,I,t){const v=Go(I),m=new Date(l),c=v.year!==void 0||v.month!==void 0||v.date!==void 0?Qu(m,v,t):m;for(const o in v){const a=ml(o);c[`set${a}`](c[`get${a}`]()+t*v[o])}return c}function Go(l){const I={...l};return l.years!==void 0&&(I.year=l.years,delete I.years),l.months!==void 0&&(I.month=l.months,delete I.months),l.days!==void 0&&(I.date=l.days,delete I.days),l.day!==void 0&&(I.date=l.day,delete I.day),l.hour!==void 0&&(I.hours=l.hour,delete I.hour),l.minute!==void 0&&(I.minutes=l.minute,delete I.minute),l.second!==void 0&&(I.seconds=l.second,delete I.second),l.millisecond!==void 0&&(I.milliseconds=l.millisecond,delete I.millisecond),I}function Jo(l,I,t){const v=Go(I),m=t===!0?"UTC":"",c=new Date(l),o=v.year!==void 0||v.month!==void 0||v.date!==void 0?Ku(c,v,m):c;for(const a in v){const n=a.charAt(0).toUpperCase()+a.slice(1);o[`set${m}${n}`](v[a])}return o}function Xu(l,I,t){const v=Zo(l,I,t),m=new Date(v.year,v.month===null?null:v.month-1,v.day===null?1:v.day,v.hour,v.minute,v.second,v.millisecond),c=m.getTimezoneOffset();return v.timezoneOffset===null||v.timezoneOffset===c?m:Zi(m,{minutes:v.timezoneOffset-c},1)}function Zo(l,I,t,v,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),l==null||l===""||typeof l!="string")return c;I===void 0&&(I=Ko);const o=Xo(t,er.props),a=o.months,n=o.monthsShort,{regex:e,map:r}=Yu(I,o),u=l.match(e);if(u===null)return c;let s="";if(r.X!==void 0||r.x!==void 0){const i=parseInt(u[r.X!==void 0?r.X:r.x],10);if(isNaN(i)===!0||i<0)return c;const d=new Date(i*(r.X!==void 0?1e3:1));c.year=d.getFullYear(),c.month=d.getMonth()+1,c.day=d.getDate(),c.hour=d.getHours(),c.minute=d.getMinutes(),c.second=d.getSeconds(),c.millisecond=d.getMilliseconds()}else{if(r.YYYY!==void 0)c.year=parseInt(u[r.YYYY],10);else if(r.YY!==void 0){const i=parseInt(u[r.YY],10);c.year=i<0?i:2e3+i}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=a.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 i=v!=="persian"?new Date(c.year,c.month,0).getDate():wn(c.year,c.month);if(c.day>i)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=bt(c.year,4)+"/"+bt(c.month)+"/"+bt(c.day),c.timeHash=bt(c.hour)+":"+bt(c.minute)+":"+bt(c.second)+s,c}function Gu(l){return typeof l=="number"?!0:isNaN(Date.parse(l))===!1}function Ju(l,I){return Jo(new Date,l,I)}function Zu(l){const I=new Date(l).getDay();return I===0?7:I}function xn(l){const I=new Date(l.getFullYear(),l.getMonth(),l.getDate());I.setDate(I.getDate()-(I.getDay()+6)%7+3);const t=new Date(I.getFullYear(),0,4);t.setDate(t.getDate()-(t.getDay()+6)%7+3);const v=I.getTimezoneOffset()-t.getTimezoneOffset();I.setHours(I.getHours()-v);const m=(I-t)/(Qo*7);return 1+Math.floor(m)}function $u(l){return l.getFullYear()*1e4+l.getMonth()*100+l.getDate()}function si(l,I){const t=new Date(l);return I===!0?$u(t):t.getTime()}function ec(l,I,t,v={}){const m=si(I,v.onlyDate),c=si(t,v.onlyDate),o=si(l,v.onlyDate);return(o>m||v.inclusiveFrom===!0&&o===m)&&(o<c||v.inclusiveTo===!0&&o===c)}function tc(l,I){return Zi(l,I,1)}function rc(l,I){return Zi(l,I,-1)}function Ut(l,I,t){const v=new Date(l),m=`set${t===!0?"UTC":""}`;switch(I){case"year":case"years":v[`${m}Month`](0);case"month":case"months":v[`${m}Date`](1);case"day":case"days":case"date":v[`${m}Hours`](0);case"hour":case"hours":v[`${m}Minutes`](0);case"minute":case"minutes":v[`${m}Seconds`](0);case"second":case"seconds":v[`${m}Milliseconds`](0)}return v}function nc(l,I,t){const v=new Date(l),m=`set${t===!0?"UTC":""}`;switch(I){case"year":case"years":v[`${m}Month`](11);case"month":case"months":v[`${m}Date`](es(v));case"day":case"days":case"date":v[`${m}Hours`](23);case"hour":case"hours":v[`${m}Minutes`](59);case"minute":case"minutes":v[`${m}Seconds`](59);case"second":case"seconds":v[`${m}Milliseconds`](999)}return v}function ic(l){let I=new Date(l);return Array.prototype.slice.call(arguments,1).forEach(t=>{I=Math.max(I,new Date(t))}),I}function sc(l){let I=new Date(l);return Array.prototype.slice.call(arguments,1).forEach(t=>{I=Math.min(I,new Date(t))}),I}function fn(l,I,t){return(l.getTime()-l.getTimezoneOffset()*Si-(I.getTime()-I.getTimezoneOffset()*Si))/t}function $i(l,I,t="days"){const v=new Date(l),m=new Date(I);switch(t){case"years":case"year":return v.getFullYear()-m.getFullYear();case"months":case"month":return(v.getFullYear()-m.getFullYear())*12+v.getMonth()-m.getMonth();case"days":case"day":case"date":return fn(Ut(v,"day"),Ut(m,"day"),Qo);case"hours":case"hour":return fn(Ut(v,"hour"),Ut(m,"hour"),Uu);case"minutes":case"minute":return fn(Ut(v,"minute"),Ut(m,"minute"),Si);case"seconds":case"second":return fn(Ut(v,"second"),Ut(m,"second"),1e3)}}function Sn(l){return $i(l,Ut(l,"year"),"days")+1}function oc(l){return Bn(l)===!0?"date":typeof l=="number"?"number":"string"}function ac(l,I,t){const v=new Date(l);if(I){const m=new Date(I);if(v<m)return m}if(t){const m=new Date(t);if(v>m)return m}return v}function lc(l,I,t){const v=new Date(l),m=new Date(I);if(t===void 0)return v.getTime()===m.getTime();switch(t){case"second":case"seconds":if(v.getSeconds()!==m.getSeconds())return!1;case"minute":case"minutes":if(v.getMinutes()!==m.getMinutes())return!1;case"hour":case"hours":if(v.getHours()!==m.getHours())return!1;case"day":case"days":case"date":if(v.getDate()!==m.getDate())return!1;case"month":case"months":if(v.getMonth()!==m.getMonth())return!1;case"year":case"years":if(v.getFullYear()!==m.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${t}`)}return!0}function es(l){return new Date(l.getFullYear(),l.getMonth()+1,0).getDate()}function xr(l){if(l>=11&&l<=13)return`${l}th`;switch(l%10){case 1:return`${l}st`;case 2:return`${l}nd`;case 3:return`${l}rd`}return`${l}th`}const Ks={YY(l,I,t){const v=this.YYYY(l,I,t)%100;return v>=0?bt(v):"-"+bt(Math.abs(v))},YYYY(l,I,t){return t??l.getFullYear()},M(l){return l.getMonth()+1},Mo(l){return xr(l.getMonth()+1)},MM(l){return bt(l.getMonth()+1)},MMM(l,I){return I.monthsShort[l.getMonth()]},MMMM(l,I){return I.months[l.getMonth()]},Q(l){return Math.ceil((l.getMonth()+1)/3)},Qo(l){return xr(this.Q(l))},D(l){return l.getDate()},Do(l){return xr(l.getDate())},DD(l){return bt(l.getDate())},DDD(l){return Sn(l)},DDDo(l){return xr(Sn(l))},DDDD(l){return bt(Sn(l),3)},d(l){return l.getDay()},do(l){return xr(l.getDay())},dd(l,I){return I.days[l.getDay()].slice(0,2)},ddd(l,I){return I.daysShort[l.getDay()]},dddd(l,I){return I.days[l.getDay()]},E(l){return l.getDay()||7},w(l){return xn(l)},wo(l){return xr(xn(l))},ww(l){return bt(xn(l))},H(l){return l.getHours()},HH(l){return bt(l.getHours())},h(l){const I=l.getHours();return I===0?12:I>12?I%12:I},hh(l){return bt(this.h(l))},m(l){return l.getMinutes()},mm(l){return bt(l.getMinutes())},s(l){return l.getSeconds()},ss(l){return bt(l.getSeconds())},S(l){return Math.floor(l.getMilliseconds()/100)},SS(l){return bt(Math.floor(l.getMilliseconds()/10))},SSS(l){return bt(l.getMilliseconds(),3)},A(l){return l.getHours()<12?"AM":"PM"},a(l){return l.getHours()<12?"am":"pm"},aa(l){return l.getHours()<12?"a.m.":"p.m."},Z(l,I,t,v){const m=v??l.getTimezoneOffset();return Qs(m,":")},ZZ(l,I,t,v){const m=v??l.getTimezoneOffset();return Qs(m)},X(l){return Math.floor(l.getTime()/1e3)},x(l){return l.getTime()}};function $o(l,I,t,v,m){if(l!==0&&!l||l===1/0||l===-1/0)return;const c=new Date(l);if(isNaN(c))return;I===void 0&&(I=Ko);const o=Xo(t,er.props);return I.replace(Wu,(a,n)=>a in Ks?Ks[a](c,o,v,m):n===void 0?a:n.split("\\]").join("]"))}function uc(l){return Bn(l)===!0?new Date(l.getTime()):l}const ea={isValid:Gu,extractDate:Xu,buildDate:Ju,getDayOfWeek:Zu,getWeekOfYear:xn,isBetweenDates:ec,addToDate:tc,subtractFromDate:rc,adjustDate:Jo,startOfDate:Ut,endOfDate:nc,getMaxDate:ic,getMinDate:sc,getDateDiff:$i,getDayOfYear:Sn,inferDateFormat:oc,getDateBetween:ac,isSameDate:lc,daysInMonth:es,formatDate:$o,clone:uc},Ht=20,cc=["Calendar","Years","Months"],Xs=l=>cc.includes(l),oi=l=>/^-?[\d]+\/[0-1]\d$/.test(l),Sr=" — ";function $t(l){return l.year+"/"+bt(l.month)}const ta=$e({name:"QDate",props:{...Hs,...Fn,...Ot,modelValue:{required:!0,validator:l=>typeof l=="string"||Array.isArray(l)===!0||Object(l)===l||l===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...Hs.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:oi},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:oi},navigationMaxYearMonth:{type:String,validator:oi},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:Xs}},emits:[...qu,"rangeStart","rangeEnd","navigation"],setup(l,{slots:I,emit:t}){const{proxy:v}=k.getCurrentInstance(),{$q:m}=v,c=jt(l,m),{getCache:o}=ju(),{tabindex:a,headerClass:n,getLocale:e,getCurrentDate:r}=zu(l,m);let u;const s=Ja(l),i=go(s),d=k.ref(null),h=k.ref(We()),f=k.ref(e()),g=k.computed(()=>We()),p=k.computed(()=>e()),x=k.computed(()=>r()),C=k.ref(Pe(h.value,f.value)),T=k.ref(l.defaultView),D=k.computed(()=>m.lang.rtl===!0?"right":"left"),q=k.ref(D.value),N=k.ref(D.value),P=C.value.year,V=k.ref(P-P%Ht-(P<0?Ht:0)),W=k.ref(null),L=k.computed(()=>{const te=l.landscape===!0?"landscape":"portrait";return`q-date q-date--${te} q-date--${te}-${l.minimal===!0?"minimal":"standard"}`+(c.value===!0?" q-date--dark q-dark":"")+(l.bordered===!0?" q-date--bordered":"")+(l.square===!0?" q-date--square no-border-radius":"")+(l.flat===!0?" q-date--flat no-shadow":"")+(l.disable===!0?" disabled":l.readonly===!0?" q-date--readonly":"")}),A=k.computed(()=>l.color||"primary"),E=k.computed(()=>l.textColor||"white"),_=k.computed(()=>l.emitImmediately===!0&&l.multiple!==!0&&l.range!==!0),b=k.computed(()=>Array.isArray(l.modelValue)===!0?l.modelValue:l.modelValue!==null&&l.modelValue!==void 0?[l.modelValue]:[]),y=k.computed(()=>b.value.filter(te=>typeof te=="string").map(te=>Ve(te,h.value,f.value)).filter(te=>te.dateHash!==null&&te.day!==null&&te.month!==null&&te.year!==null)),w=k.computed(()=>{const te=X=>Ve(X,h.value,f.value);return b.value.filter(X=>zo(X)===!0&&X.from!==void 0&&X.to!==void 0).map(X=>({from:te(X.from),to:te(X.to)})).filter(X=>X.from.dateHash!==null&&X.to.dateHash!==null&&X.from.dateHash<X.to.dateHash)}),S=k.computed(()=>l.calendar!=="persian"?te=>new Date(te.year,te.month-1,te.day):te=>{const X=Ws(te.year,te.month,te.day);return new Date(X.gy,X.gm-1,X.gd)}),M=k.computed(()=>l.calendar==="persian"?Zt:(te,X,re)=>$o(new Date(te.year,te.month-1,te.day,te.hour,te.minute,te.second,te.millisecond),X===void 0?h.value:X,re===void 0?f.value:re,te.year,te.timezoneOffset)),B=k.computed(()=>y.value.length+w.value.reduce((te,X)=>te+1+$i(S.value(X.to),S.value(X.from)),0)),O=k.computed(()=>{if(l.title!==void 0&&l.title!==null&&l.title.length!==0)return l.title;if(W.value!==null){const re=W.value.init,le=S.value(re);return f.value.daysShort[le.getDay()]+", "+f.value.monthsShort[re.month-1]+" "+re.day+Sr+"?"}if(B.value===0)return Sr;if(B.value>1)return`${B.value} ${f.value.pluralDay}`;const te=y.value[0],X=S.value(te);return isNaN(X.valueOf())===!0?Sr:f.value.headerTitle!==void 0?f.value.headerTitle(X,te):f.value.daysShort[X.getDay()]+", "+f.value.monthsShort[te.month-1]+" "+te.day}),H=k.computed(()=>y.value.concat(w.value.map(X=>X.from)).sort((X,re)=>X.year-re.year||X.month-re.month)[0]),z=k.computed(()=>y.value.concat(w.value.map(X=>X.to)).sort((X,re)=>re.year-X.year||re.month-X.month)[0]),Q=k.computed(()=>{if(l.subtitle!==void 0&&l.subtitle!==null&&l.subtitle.length!==0)return l.subtitle;if(B.value===0)return Sr;if(B.value>1){const te=H.value,X=z.value,re=f.value.monthsShort;return re[te.month-1]+(te.year!==X.year?" "+te.year+Sr+re[X.month-1]+" ":te.month!==X.month?Sr+re[X.month-1]:"")+" "+X.year}return y.value[0].year}),F=k.computed(()=>{const te=[m.iconSet.datetime.arrowLeft,m.iconSet.datetime.arrowRight];return m.lang.rtl===!0?te.reverse():te}),Y=k.computed(()=>l.firstDayOfWeek!==void 0?Number(l.firstDayOfWeek):f.value.firstDayOfWeek),j=k.computed(()=>{const te=f.value.daysShort,X=Y.value;return X>0?te.slice(X,7).concat(te.slice(0,X)):te}),R=k.computed(()=>{const te=C.value;return l.calendar!=="persian"?new Date(te.year,te.month,0).getDate():wn(te.year,te.month)}),U=k.computed(()=>typeof l.eventColor=="function"?l.eventColor:()=>l.eventColor),K=k.computed(()=>{if(l.navigationMinYearMonth===void 0)return null;const te=l.navigationMinYearMonth.split("/");return{year:parseInt(te[0],10),month:parseInt(te[1],10)}}),$=k.computed(()=>{if(l.navigationMaxYearMonth===void 0)return null;const te=l.navigationMaxYearMonth.split("/");return{year:parseInt(te[0],10),month:parseInt(te[1],10)}}),G=k.computed(()=>{const te={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return K.value!==null&&K.value.year>=C.value.year&&(te.year.prev=!1,K.value.year===C.value.year&&K.value.month>=C.value.month&&(te.month.prev=!1)),$.value!==null&&$.value.year<=C.value.year&&(te.year.next=!1,$.value.year===C.value.year&&$.value.month<=C.value.month&&(te.month.next=!1)),te}),ee=k.computed(()=>{const te={};return y.value.forEach(X=>{const re=$t(X);te[re]===void 0&&(te[re]=[]),te[re].push(X.day)}),te}),ae=k.computed(()=>{const te={};return w.value.forEach(X=>{const re=$t(X.from),le=$t(X.to);if(te[re]===void 0&&(te[re]=[]),te[re].push({from:X.from.day,to:re===le?X.to.day:void 0,range:X}),re<le){let pe;const{year:Ae,month:ge}=X.from,_e=ge<12?{year:Ae,month:ge+1}:{year:Ae+1,month:1};for(;(pe=$t(_e))<=le;)te[pe]===void 0&&(te[pe]=[]),te[pe].push({from:void 0,to:pe===le?X.to.day:void 0,range:X}),_e.month++,_e.month>12&&(_e.year++,_e.month=1)}}),te}),se=k.computed(()=>{if(W.value===null)return;const{init:te,initHash:X,final:re,finalHash:le}=W.value,[pe,Ae]=X<=le?[te,re]:[re,te],ge=$t(pe),_e=$t(Ae);if(ge!==J.value&&_e!==J.value)return;const Re={};return ge===J.value?(Re.from=pe.day,Re.includeFrom=!0):Re.from=1,_e===J.value?(Re.to=Ae.day,Re.includeTo=!0):Re.to=R.value,Re}),J=k.computed(()=>$t(C.value)),ne=k.computed(()=>{const te={};if(l.options===void 0){for(let re=1;re<=R.value;re++)te[re]=!0;return te}const X=typeof l.options=="function"?l.options:re=>l.options.includes(re);for(let re=1;re<=R.value;re++){const le=J.value+"/"+bt(re);te[re]=X(le)}return te}),ie=k.computed(()=>{const te={};if(l.events===void 0)for(let X=1;X<=R.value;X++)te[X]=!1;else{const X=typeof l.events=="function"?l.events:re=>l.events.includes(re);for(let re=1;re<=R.value;re++){const le=J.value+"/"+bt(re);te[re]=X(le)===!0&&U.value(le)}}return te}),fe=k.computed(()=>{let te,X;const{year:re,month:le}=C.value;if(l.calendar!=="persian")te=new Date(re,le-1,1),X=new Date(re,le-1,0).getDate();else{const pe=Ws(re,le,1);te=new Date(pe.gy,pe.gm-1,pe.gd);let Ae=le-1,ge=re;Ae===0&&(Ae=12,ge--),X=wn(ge,Ae)}return{days:te.getDay()-Y.value-1,endDay:X}}),ce=k.computed(()=>{const te=[],{days:X,endDay:re}=fe.value,le=X<0?X+7:X;if(le<6)for(let ge=re-le;ge<=re;ge++)te.push({i:ge,fill:!0});const pe=te.length;for(let ge=1;ge<=R.value;ge++){const _e={i:ge,event:ie.value[ge],classes:[]};ne.value[ge]===!0&&(_e.in=!0,_e.flat=!0),te.push(_e)}if(ee.value[J.value]!==void 0&&ee.value[J.value].forEach(ge=>{const _e=pe+ge-1;Object.assign(te[_e],{selected:!0,unelevated:!0,flat:!1,color:A.value,textColor:E.value})}),ae.value[J.value]!==void 0&&ae.value[J.value].forEach(ge=>{if(ge.from!==void 0){const _e=pe+ge.from-1,Re=pe+(ge.to||R.value)-1;for(let ze=_e;ze<=Re;ze++)Object.assign(te[ze],{range:ge.range,unelevated:!0,color:A.value,textColor:E.value});Object.assign(te[_e],{rangeFrom:!0,flat:!1}),ge.to!==void 0&&Object.assign(te[Re],{rangeTo:!0,flat:!1})}else if(ge.to!==void 0){const _e=pe+ge.to-1;for(let Re=pe;Re<=_e;Re++)Object.assign(te[Re],{range:ge.range,unelevated:!0,color:A.value,textColor:E.value});Object.assign(te[_e],{flat:!1,rangeTo:!0})}else{const _e=pe+R.value-1;for(let Re=pe;Re<=_e;Re++)Object.assign(te[Re],{range:ge.range,unelevated:!0,color:A.value,textColor:E.value})}}),se.value!==void 0){const ge=pe+se.value.from-1,_e=pe+se.value.to-1;for(let Re=ge;Re<=_e;Re++)te[Re].color=A.value,te[Re].editRange=!0;se.value.includeFrom===!0&&(te[ge].editRangeFrom=!0),se.value.includeTo===!0&&(te[_e].editRangeTo=!0)}C.value.year===x.value.year&&C.value.month===x.value.month&&(te[pe+x.value.day-1].today=!0);const Ae=te.length%7;if(Ae>0){const ge=7-Ae;for(let _e=1;_e<=ge;_e++)te.push({i:_e,fill:!0})}return te.forEach(ge=>{let _e="q-date__calendar-item ";ge.fill===!0?_e+="q-date__calendar-item--fill":(_e+=`q-date__calendar-item--${ge.in===!0?"in":"out"}`,ge.range!==void 0&&(_e+=` q-date__range${ge.rangeTo===!0?"-to":ge.rangeFrom===!0?"-from":""}`),ge.editRange===!0&&(_e+=` q-date__edit-range${ge.editRangeFrom===!0?"-from":""}${ge.editRangeTo===!0?"-to":""}`),(ge.range!==void 0||ge.editRange===!0)&&(_e+=` text-${ge.color}`)),ge.classes=_e}),te}),de=k.computed(()=>l.disable===!0?{"aria-disabled":"true"}:{});k.watch(()=>l.modelValue,te=>{if(u===JSON.stringify(te))u=0;else{const X=Pe(h.value,f.value);et(X.year,X.month,X)}}),k.watch(T,()=>{d.value!==null&&v.$el.contains(document.activeElement)===!0&&d.value.focus()}),k.watch(()=>C.value.year+"|"+C.value.month,()=>{t("navigation",{year:C.value.year,month:C.value.month})}),k.watch(g,te=>{we(te,f.value,"mask"),h.value=te}),k.watch(p,te=>{we(h.value,te,"locale"),f.value=te});function me(te){u=JSON.stringify(te)}function be(){const{year:te,month:X,day:re}=x.value,le={...C.value,year:te,month:X,day:re},pe=ee.value[$t(le)];(pe===void 0||pe.includes(le.day)===!1)&&ot(le),Ee(le.year,le.month)}function xe(te){Xs(te)===!0&&(T.value=te)}function Ie(te,X){["month","year"].includes(te)&&(te==="month"?je:ke)(X===!0?-1:1)}function Ee(te,X){T.value="Calendar",et(te,X)}function Me(te,X){if(l.range===!1||!te){W.value=null;return}const re=Object.assign({...C.value},te),le=X!==void 0?Object.assign({...C.value},X):re;W.value={init:re,initHash:Zt(re),final:le,finalHash:Zt(le)},Ee(re.year,re.month)}function We(){return l.calendar==="persian"?"YYYY/MM/DD":l.mask}function Ve(te,X,re){return Zo(te,X,re,l.calendar,{hour:0,minute:0,second:0,millisecond:0})}function Pe(te,X){const re=Array.isArray(l.modelValue)===!0?l.modelValue:l.modelValue?[l.modelValue]:[];if(re.length===0)return qe();const le=re[re.length-1],pe=Ve(le.from!==void 0?le.from:le,te,X);return pe.dateHash===null?qe():pe}function qe(){let te,X;if(l.defaultYearMonth!==void 0){const re=l.defaultYearMonth.split("/");te=parseInt(re[0],10),X=parseInt(re[1],10)}else{const re=x.value!==void 0?x.value:r();te=re.year,X=re.month}return{year:te,month:X,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:te+"/"+bt(X)+"/01"}}function je(te){let X=C.value.year,re=Number(C.value.month)+te;re===13?(re=1,X++):re===0&&(re=12,X--),et(X,re),_.value===!0&&nt("month")}function ke(te){const X=Number(C.value.year)+te;et(X,C.value.month),_.value===!0&&nt("year")}function De(te){et(te,C.value.month),T.value=l.defaultView==="Years"?"Months":"Calendar",_.value===!0&&nt("year")}function Ue(te){et(C.value.year,te),T.value="Calendar",_.value===!0&&nt("month")}function Le(te,X){(ee.value[X]?.includes(te.day)===!0?he:ot)(te)}function Ge(te){return{year:te.year,month:te.month,day:te.day}}function et(te,X,re){if(K.value!==null&&te<=K.value.year&&((X<K.value.month||te<K.value.year)&&(X=K.value.month),te=K.value.year),$.value!==null&&te>=$.value.year&&((X>$.value.month||te>$.value.year)&&(X=$.value.month),te=$.value.year),re!==void 0){const{hour:pe,minute:Ae,second:ge,millisecond:_e,timezoneOffset:Re,timeHash:ze}=re;Object.assign(C.value,{hour:pe,minute:Ae,second:ge,millisecond:_e,timezoneOffset:Re,timeHash:ze})}const le=te+"/"+bt(X)+"/01";le!==C.value.dateHash&&(q.value=C.value.dateHash<le==(m.lang.rtl!==!0)?"left":"right",te!==C.value.year&&(N.value=q.value),k.nextTick(()=>{V.value=te-te%Ht-(te<0?Ht:0),Object.assign(C.value,{year:te,month:X,day:1,dateHash:le})}))}function He(te,X,re){const le=te!==null&&te.length===1&&l.multiple===!1?te[0]:te,{reason:pe,details:Ae}=tt(X,re);me(le),t("update:modelValue",le,pe,Ae)}function nt(te){const X=y.value[0]!==void 0&&y.value[0].dateHash!==null?{...y.value[0]}:{...C.value};k.nextTick(()=>{X.year=C.value.year,X.month=C.value.month;const re=l.calendar!=="persian"?new Date(X.year,X.month,0).getDate():wn(X.year,X.month);X.day=Math.min(Math.max(1,X.day),re);const le=Ye(X),{details:pe}=tt("",X);me(le),t("update:modelValue",le,te,pe)})}function tt(te,X){return X.from!==void 0?{reason:`${te}-range`,details:{...Ge(X.target),from:Ge(X.from),to:Ge(X.to)}}:{reason:`${te}-day`,details:Ge(X)}}function Ye(te,X,re){return te.from!==void 0?{from:M.value(te.from,X,re),to:M.value(te.to,X,re)}:M.value(te,X,re)}function ot(te){let X;if(l.multiple===!0)if(te.from!==void 0){const re=Zt(te.from),le=Zt(te.to),pe=y.value.filter(ge=>ge.dateHash<re||ge.dateHash>le),Ae=w.value.filter(({from:ge,to:_e})=>_e.dateHash<re||ge.dateHash>le);X=pe.concat(Ae).concat(te).map(ge=>Ye(ge))}else{const re=b.value.slice();re.push(Ye(te)),X=re}else X=Ye(te);He(X,"add",te)}function he(te){if(l.noUnset===!0)return;let X=null;if(l.multiple===!0&&Array.isArray(l.modelValue)===!0){const re=Ye(te);te.from!==void 0?X=l.modelValue.filter(le=>le.from!==void 0?le.from!==re.from&&le.to!==re.to:!0):X=l.modelValue.filter(le=>le!==re),X.length===0&&(X=null)}He(X,"remove",te)}function we(te,X,re){const le=y.value.concat(w.value).map(Ae=>Ye(Ae,te,X)).filter(Ae=>Ae.from!==void 0?Ae.from.dateHash!==null&&Ae.to.dateHash!==null:Ae.dateHash!==null),pe=(l.multiple===!0?le:le[0])||null;me(pe),t("update:modelValue",pe,re)}function Te(){if(l.minimal!==!0)return k.h("div",{class:"q-date__header "+n.value},[k.h("div",{class:"relative-position"},[k.h(k.Transition,{name:"q-transition--fade"},()=>k.h("div",{key:"h-yr-"+Q.value,class:"q-date__header-subtitle q-date__header-link "+(T.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:a.value,...o("vY",{onClick(){T.value="Years"},onKeyup(te){te.keyCode===13&&(T.value="Years")}})},[Q.value]))]),k.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[k.h("div",{class:"relative-position col"},[k.h(k.Transition,{name:"q-transition--fade"},()=>k.h("div",{key:"h-sub"+O.value,class:"q-date__header-title-label q-date__header-link "+(T.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:a.value,...o("vC",{onClick(){T.value="Calendar"},onKeyup(te){te.keyCode===13&&(T.value="Calendar")}})},[O.value]))]),l.todayBtn===!0?k.h(ct,{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:a.value,onClick:be}):null])])}function Oe({label:te,type:X,key:re,dir:le,goTo:pe,boundaries:Ae,cls:ge}){return[k.h("div",{class:"row items-center q-date__arrow"},[k.h(ct,{round:!0,dense:!0,size:"sm",flat:!0,icon:F.value[0],"aria-label":X==="Years"?m.lang.date.prevYear:m.lang.date.prevMonth,tabindex:a.value,disable:Ae.prev===!1,...o("go-#"+X,{onClick(){pe(-1)}})})]),k.h("div",{class:"relative-position overflow-hidden flex flex-center"+ge},[k.h(k.Transition,{name:"q-transition--jump-"+le},()=>k.h("div",{key:re},[k.h(ct,{flat:!0,dense:!0,noCaps:!0,label:te,tabindex:a.value,...o("view#"+X,{onClick:()=>{T.value=X}})})]))]),k.h("div",{class:"row items-center q-date__arrow"},[k.h(ct,{round:!0,dense:!0,size:"sm",flat:!0,icon:F.value[1],"aria-label":X==="Years"?m.lang.date.nextYear:m.lang.date.nextMonth,tabindex:a.value,disable:Ae.next===!1,...o("go+#"+X,{onClick(){pe(1)}})})])]}const Ce={Calendar:()=>[k.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[k.h("div",{class:"q-date__navigation row items-center no-wrap"},Oe({label:f.value.months[C.value.month-1],type:"Months",key:C.value.month,dir:q.value,goTo:je,boundaries:G.value.month,cls:" col"}).concat(Oe({label:C.value.year,type:"Years",key:C.value.year,dir:N.value,goTo:ke,boundaries:G.value.year,cls:""}))),k.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},j.value.map(te=>k.h("div",{class:"q-date__calendar-item"},[k.h("div",te)]))),k.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[k.h(k.Transition,{name:"q-transition--slide-"+q.value},()=>k.h("div",{key:J.value,class:"q-date__calendar-days fit"},ce.value.map(te=>k.h("div",{class:te.classes},[te.in===!0?k.h(ct,{class:te.today===!0?"q-date__today":"",dense:!0,flat:te.flat,unelevated:te.unelevated,color:te.color,textColor:te.textColor,label:te.i,tabindex:a.value,...o("day#"+te.i,{onClick:()=>{Qe(te.i)},onMouseover:()=>{Ke(te.i)}})},te.event!==!1?()=>k.h("div",{class:"q-date__event bg-"+te.event}):null):k.h("div",""+te.i)]))))])])],Months(){const te=C.value.year===x.value.year,X=le=>K.value!==null&&C.value.year===K.value.year&&K.value.month>le||$.value!==null&&C.value.year===$.value.year&&$.value.month<le,re=f.value.monthsShort.map((le,pe)=>{const Ae=C.value.month===pe+1;return k.h("div",{class:"q-date__months-item flex flex-center"},[k.h(ct,{class:te===!0&&x.value.month===pe+1?"q-date__today":null,flat:Ae!==!0,label:le,unelevated:Ae,color:Ae===!0?A.value:null,textColor:Ae===!0?E.value:null,tabindex:a.value,disable:X(pe+1),...o("month#"+pe,{onClick:()=>{Ue(pe+1)}})})])});return l.yearsInMonthView===!0&&re.unshift(k.h("div",{class:"row no-wrap full-width"},[Oe({label:C.value.year,type:"Years",key:C.value.year,dir:N.value,goTo:ke,boundaries:G.value.year,cls:" col"})])),k.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},re)},Years(){const te=V.value,X=te+Ht,re=[],le=pe=>K.value!==null&&K.value.year>pe||$.value!==null&&$.value.year<pe;for(let pe=te;pe<=X;pe++){const Ae=C.value.year===pe;re.push(k.h("div",{class:"q-date__years-item flex flex-center"},[k.h(ct,{key:"yr"+pe,class:x.value.year===pe?"q-date__today":null,flat:!Ae,label:pe,dense:!0,unelevated:Ae,color:Ae===!0?A.value:null,textColor:Ae===!0?E.value:null,tabindex:a.value,disable:le(pe),...o("yr#"+pe,{onClick:()=>{De(pe)}})})]))}return k.h("div",{class:"q-date__view q-date__years flex flex-center"},[k.h("div",{class:"col-auto"},[k.h(ct,{round:!0,dense:!0,flat:!0,icon:F.value[0],"aria-label":m.lang.date.prevRangeYears(Ht),tabindex:a.value,disable:le(te),...o("y-",{onClick:()=>{V.value-=Ht}})})]),k.h("div",{class:"q-date__years-content col self-stretch row items-center"},re),k.h("div",{class:"col-auto"},[k.h(ct,{round:!0,dense:!0,flat:!0,icon:F.value[1],"aria-label":m.lang.date.nextRangeYears(Ht),tabindex:a.value,disable:le(X),...o("y+",{onClick:()=>{V.value+=Ht}})})])])}};function Qe(te){const X={...C.value,day:te};if(l.range===!1){Le(X,J.value);return}if(W.value===null){const re=ce.value.find(pe=>pe.fill!==!0&&pe.i===te);if(l.noUnset!==!0&&re.range!==void 0){he({target:X,from:re.range.from,to:re.range.to});return}if(re.selected===!0){he(X);return}const le=Zt(X);W.value={init:X,initHash:le,final:X,finalHash:le},t("rangeStart",Ge(X))}else{const re=W.value.initHash,le=Zt(X),pe=re<=le?{from:W.value.init,to:X}:{from:X,to:W.value.init};W.value=null,ot(re===le?X:{target:X,...pe}),t("rangeEnd",{from:Ge(pe.from),to:Ge(pe.to)})}}function Ke(te){if(W.value!==null){const X={...C.value,day:te};Object.assign(W.value,{final:X,finalHash:Zt(X)})}}return Object.assign(v,{setToday:be,setView:xe,offsetCalendar:Ie,setCalendarTo:Ee,setEditingRange:Me}),()=>{const te=[k.h("div",{class:"q-date__content col relative-position"},[k.h(k.Transition,{name:"q-transition--fade"},Ce[T.value])])],X=gt(I.default);return X!==void 0&&te.push(k.h("div",{class:"q-date__actions"},X)),l.name!==void 0&&l.disable!==!0&&i(te,"push"),k.h("div",{class:L.value,...de.value},[Te(),k.h("div",{ref:d,class:"q-date__main col column",tabindex:-1},te)])}}}),ra=$e({name:"QPopupProxy",props:{..._o,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(l,{slots:I,emit:t,attrs:v}){const{proxy:m}=k.getCurrentInstance(),{$q:c}=m,o=k.ref(!1),a=k.ref(null),n=k.computed(()=>parseInt(l.breakpoint,10)),{canShow:e}=Ni({showing:o});function r(){return c.screen.width<n.value||c.screen.height<n.value?"dialog":"menu"}const u=k.ref(r()),s=k.computed(()=>u.value==="menu"?{maxHeight:"99vh"}:{});k.watch(()=>r(),h=>{o.value!==!0&&(u.value=h)});function i(h){o.value=!0,t("show",h)}function d(h){o.value=!1,u.value=r(),t("hide",h)}return Object.assign(m,{show(h){e(h)===!0&&a.value.show(h)},hide(h){a.value.hide(h)},toggle(h){a.value.toggle(h)}}),Lt(m,"currentComponent",()=>({type:u.value,ref:a.value})),()=>{const h={ref:a,...s.value,...v,onShow:i,onHide:d};let f;return u.value==="dialog"?f=Ln:(f=Xr,Object.assign(h,{target:l.target,contextMenu:l.contextMenu,noParentEvent:!0,separateClosePopup:!0})),k.h(f,h,I.default)}}}),Gs={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},On={"#":{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:l=>l.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:l=>l.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:l=>l.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:l=>l.toLocaleLowerCase()}},na=Object.keys(On);na.forEach(l=>{On[l].regex=new RegExp(On[l].pattern)});const fc=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+na.join("")+"])|(.)","g"),Js=/[.*+?^${}()|[\]\\]/g,Ct="",dc={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function hc(l,I,t,v){let m,c,o,a,n,e;const r=k.ref(null),u=k.ref(i());function s(){return l.autogrow===!0||["textarea","text","search","url","tel","password"].includes(l.type)}k.watch(()=>l.type+l.autogrow,h),k.watch(()=>l.mask,P=>{if(P!==void 0)f(u.value,!0);else{const V=q(u.value);h(),l.modelValue!==V&&I("update:modelValue",V)}}),k.watch(()=>l.fillMask+l.reverseFillMask,()=>{r.value===!0&&f(u.value,!0)}),k.watch(()=>l.unmaskedValue,()=>{r.value===!0&&f(u.value)});function i(){if(h(),r.value===!0){const P=T(q(l.modelValue));return l.fillMask!==!1?N(P):P}return l.modelValue}function d(P){if(P<m.length)return m.slice(-P);let V="",W=m;const L=W.indexOf(Ct);if(L!==-1){for(let A=P-W.length;A>0;A--)V+=Ct;W=W.slice(0,L)+V+W.slice(L)}return W}function h(){if(r.value=l.mask!==void 0&&l.mask.length!==0&&s(),r.value===!1){a=void 0,m="",c="";return}const P=Gs[l.mask]===void 0?l.mask:Gs[l.mask],V=typeof l.fillMask=="string"&&l.fillMask.length!==0?l.fillMask.slice(0,1):"_",W=V.replace(Js,"\\$&"),L=[],A=[],E=[];let _=l.reverseFillMask===!0,b="",y="";P.replace(fc,(B,O,H,z,Q)=>{if(z!==void 0){const F=On[z];E.push(F),y=F.negate,_===!0&&(A.push("(?:"+y+"+)?("+F.pattern+"+)?(?:"+y+"+)?("+F.pattern+"+)?"),_=!1),A.push("(?:"+y+"+)?("+F.pattern+")?")}else if(H!==void 0)b="\\"+(H==="\\"?"":H),E.push(H),L.push("([^"+b+"]+)?"+b+"?");else{const F=O!==void 0?O:Q;b=F==="\\"?"\\\\\\\\":F.replace(Js,"\\\\$&"),E.push(F),L.push("([^"+b+"]+)?"+b+"?")}});const w=new RegExp("^"+L.join("")+"("+(b===""?".":"[^"+b+"]")+"+)?"+(b===""?"":"["+b+"]*")+"$"),S=A.length-1,M=A.map((B,O)=>O===0&&l.reverseFillMask===!0?new RegExp("^"+W+"*"+B):O===S?new RegExp("^"+B+"("+(y===""?".":y)+"+)?"+(l.reverseFillMask===!0?"$":W+"*")):new RegExp("^"+B));o=E,a=B=>{const O=w.exec(l.reverseFillMask===!0?B:B.slice(0,E.length+1));O!==null&&(B=O.slice(1).join(""));const H=[],z=M.length;for(let Q=0,F=B;Q<z;Q++){const Y=M[Q].exec(F);if(Y===null)break;F=F.slice(Y.shift().length),H.push(...Y)}return H.length!==0?H.join(""):B},m=E.map(B=>typeof B=="string"?B:Ct).join(""),c=m.split(Ct).join(V)}function f(P,V,W){const L=v.value,A=L.selectionEnd,E=L.value.length-A,_=q(P);V===!0&&h();const b=T(_),y=l.fillMask!==!1?N(b):b,w=u.value!==y;L.value!==y&&(L.value=y),w===!0&&(u.value=y),document.activeElement===L&&k.nextTick(()=>{if(y===c){const M=l.reverseFillMask===!0?c.length:0;L.setSelectionRange(M,M,"forward");return}if(W==="insertFromPaste"&&l.reverseFillMask!==!0){const M=L.selectionEnd;let B=A-1;for(let O=n;O<=B&&O<M;O++)m[O]!==Ct&&B++;p.right(L,B);return}if(["deleteContentBackward","deleteContentForward"].indexOf(W)!==-1){const M=l.reverseFillMask===!0?A===0?y.length>b.length?1:0:Math.max(0,y.length-(y===c?0:Math.min(b.length,E)+1))+1:A;L.setSelectionRange(M,M,"forward");return}if(l.reverseFillMask===!0)if(w===!0){const M=Math.max(0,y.length-(y===c?0:Math.min(b.length,E+1)));M===1&&A===1?L.setSelectionRange(M,M,"forward"):p.rightReverse(L,M)}else{const M=y.length-E;L.setSelectionRange(M,M,"backward")}else if(w===!0){const M=Math.max(0,m.indexOf(Ct),Math.min(b.length,A)-1);p.right(L,M)}else{const M=A-1;p.right(L,M)}});const S=l.unmaskedValue===!0?q(y):y;String(l.modelValue)!==S&&(l.modelValue!==null||S!=="")&&t(S,!0)}function g(P,V,W){const L=T(q(P.value));V=Math.max(0,m.indexOf(Ct),Math.min(L.length,V)),n=V,P.setSelectionRange(V,W,"forward")}const p={left(P,V){const W=m.slice(V-1).indexOf(Ct)===-1;let L=Math.max(0,V-1);for(;L>=0;L--)if(m[L]===Ct){V=L,W===!0&&V++;break}if(L<0&&m[V]!==void 0&&m[V]!==Ct)return p.right(P,0);V>=0&&P.setSelectionRange(V,V,"backward")},right(P,V){const W=P.value.length;let L=Math.min(W,V+1);for(;L<=W;L++)if(m[L]===Ct){V=L;break}else m[L-1]===Ct&&(V=L);if(L>W&&m[V-1]!==void 0&&m[V-1]!==Ct)return p.left(P,W);P.setSelectionRange(V,V,"forward")},leftReverse(P,V){const W=d(P.value.length);let L=Math.max(0,V-1);for(;L>=0;L--)if(W[L-1]===Ct){V=L;break}else if(W[L]===Ct&&(V=L,L===0))break;if(L<0&&W[V]!==void 0&&W[V]!==Ct)return p.rightReverse(P,0);V>=0&&P.setSelectionRange(V,V,"backward")},rightReverse(P,V){const W=P.value.length,L=d(W),A=L.slice(0,V+1).indexOf(Ct)===-1;let E=Math.min(W,V+1);for(;E<=W;E++)if(L[E-1]===Ct){V=E,V>0&&A===!0&&V--;break}if(E>W&&L[V-1]!==void 0&&L[V-1]!==Ct)return p.leftReverse(P,W);P.setSelectionRange(V,V,"forward")}};function x(P){I("click",P),e=void 0}function C(P){if(I("keydown",P),Ii(P)===!0||P.altKey===!0)return;const V=v.value,W=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"?W:L);const A=p[(P.keyCode===39?"right":"left")+(l.reverseFillMask===!0?"Reverse":"")];if(P.preventDefault(),A(V,e===W?L:W),P.shiftKey){const E=V.selectionStart;V.setSelectionRange(Math.min(e,E),Math.max(e,E),"forward")}}else P.keyCode===8&&l.reverseFillMask!==!0&&W===L?(p.left(V,W),V.setSelectionRange(V.selectionStart,L,"backward")):P.keyCode===46&&l.reverseFillMask===!0&&W===L&&(p.rightReverse(V,L),V.setSelectionRange(W,V.selectionEnd,"forward"))}function T(P){if(P==null||P==="")return"";if(l.reverseFillMask===!0)return D(P);const V=o;let W=0,L="";for(let A=0;A<V.length;A++){const E=P[W],_=V[A];if(typeof _=="string")L+=_;else if(E!==void 0&&_.regex.test(E))L+=_.transform!==void 0?_.transform(E):E,W++;else return L}return L}function D(P){const V=o,W=m.indexOf(Ct);let L=P.length-1,A="";for(let E=V.length-1;E>=0&&L!==-1;E--){const _=V[E];let b=P[L];if(typeof _=="string")A=_+A;else if(b!==void 0&&_.regex.test(b))do A=(_.transform!==void 0?_.transform(b):b)+A,L--,b=P[L];while(W===E&&b!==void 0&&_.regex.test(b));else return A}return A}function q(P){return typeof P!="string"||a===void 0?typeof P=="number"?a(""+P):P:a(P)}function N(P){return c.length-P.length<=0?P:l.reverseFillMask===!0&&P.length!==0?c.slice(0,-P.length)+P:P+c.slice(P.length)}return{innerValue:u,hasMask:r,moveCursorForPaste:g,updateMaskValue:f,onMaskedKeydown:C,onMaskedClick:x}}function pc(l,I){function t(){const v=l.modelValue;try{const m="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(v)===v&&("length"in v?Array.from(v):[v]).forEach(c=>{m.items.add(c)}),{files:m.files}}catch{return{files:void 0}}}return k.computed(()=>{if(l.type==="file")return t()})}const Yr=$e({name:"QInput",inheritAttrs:!1,props:{...Pn,...dc,...Fn,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:[...Yi,"paste","change","keydown","click","animationend"],setup(l,{emit:I,attrs:t}){const{proxy:v}=k.getCurrentInstance(),{$q:m}=v,c={};let o=NaN,a,n,e=null,r;const u=k.ref(null),s=bo(l),{innerValue:i,hasMask:d,moveCursorForPaste:h,updateMaskValue:f,onMaskedKeydown:g,onMaskedClick:p}=hc(l,I,b,u),x=pc(l),C=k.computed(()=>Hr(i.value)),T=qo(E),D=Qi({changeEvent:!0}),q=k.computed(()=>l.type==="textarea"||l.autogrow===!0),N=k.computed(()=>q.value===!0||["text","search","url","tel","password"].includes(l.type)),P=k.computed(()=>{const O={...D.splitAttrs.listeners.value,onInput:E,onPaste:A,onChange:w,onBlur:S,onFocus:Dt};return O.onCompositionstart=O.onCompositionupdate=O.onCompositionend=T,d.value===!0&&(O.onKeydown=g,O.onClick=p),l.autogrow===!0&&(O.onAnimationend=_),O}),V=k.computed(()=>{const O={tabindex:0,"data-autofocus":l.autofocus===!0||void 0,rows:l.type==="textarea"?6:void 0,"aria-label":l.label,name:s.value,...D.splitAttrs.attributes.value,id:D.targetUid.value,maxlength:l.maxlength,disabled:l.disable===!0,readonly:l.readonly===!0};return q.value===!1&&(O.type=l.type),l.autogrow===!0&&(O.rows=1),O});k.watch(()=>l.type,()=>{u.value&&(u.value.value=l.modelValue)}),k.watch(()=>l.modelValue,O=>{if(d.value===!0){if(n===!0&&(n=!1,String(O)===o))return;f(O)}else i.value!==O&&(i.value=O,l.type==="number"&&c.hasOwnProperty("value")===!0&&(a===!0?a=!1:delete c.value));l.autogrow===!0&&k.nextTick(y)}),k.watch(()=>l.autogrow,O=>{O===!0?k.nextTick(y):u.value!==null&&t.rows>0&&(u.value.style.height="auto")}),k.watch(()=>l.dense,()=>{l.autogrow===!0&&k.nextTick(y)});function W(){Kr(()=>{const O=document.activeElement;u.value!==null&&u.value!==O&&(O===null||O.id!==D.targetUid.value)&&u.value.focus({preventScroll:!0})})}function L(){u.value?.select()}function A(O){if(d.value===!0&&l.reverseFillMask!==!0){const H=O.target;h(H,H.selectionStart,H.selectionEnd)}I("paste",O)}function E(O){if(!O||!O.target)return;if(l.type==="file"){I("update:modelValue",O.target.files);return}const H=O.target.value;if(O.target.qComposing===!0){c.value=H;return}if(d.value===!0)f(H,!1,O.inputType);else if(b(H),N.value===!0&&O.target===document.activeElement){const{selectionStart:z,selectionEnd:Q}=O.target;z!==void 0&&Q!==void 0&&k.nextTick(()=>{O.target===document.activeElement&&H.indexOf(O.target.value)===0&&O.target.setSelectionRange(z,Q)})}l.autogrow===!0&&y()}function _(O){I("animationend",O),y()}function b(O,H){r=()=>{e=null,l.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,l.modelValue!==O&&o!==O&&(o=O,H===!0&&(n=!0),I("update:modelValue",O),k.nextTick(()=>{o===O&&(o=NaN)})),r=void 0},l.type==="number"&&(a=!0,c.value=O),l.debounce!==void 0?(e!==null&&clearTimeout(e),c.value=O,e=setTimeout(r,l.debounce)):r()}function y(){requestAnimationFrame(()=>{const O=u.value;if(O!==null){const H=O.parentNode.style,{scrollTop:z}=O,{overflowY:Q,maxHeight:F}=m.platform.is.firefox===!0?{}:window.getComputedStyle(O),Y=Q!==void 0&&Q!=="scroll";Y===!0&&(O.style.overflowY="hidden"),H.marginBottom=O.scrollHeight-1+"px",O.style.height="1px",O.style.height=O.scrollHeight+"px",Y===!0&&(O.style.overflowY=parseInt(F,10)<O.scrollHeight?"auto":"hidden"),H.marginBottom="",O.scrollTop=z}})}function w(O){T(O),e!==null&&(clearTimeout(e),e=null),r?.(),I("change",O.target.value)}function S(O){O!==void 0&&Dt(O),e!==null&&(clearTimeout(e),e=null),r?.(),a=!1,n=!1,delete c.value,l.type!=="file"&&setTimeout(()=>{u.value!==null&&(u.value.value=i.value!==void 0?i.value:"")})}function M(){return c.hasOwnProperty("value")===!0?c.value:i.value!==void 0?i.value:""}k.onBeforeUnmount(()=>{S()}),k.onMounted(()=>{l.autogrow===!0&&y()}),Object.assign(D,{innerValue:i,fieldClass:k.computed(()=>`q-${q.value===!0?"textarea":"input"}`+(l.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:k.computed(()=>l.type!=="file"&&typeof l.shadowText=="string"&&l.shadowText.length!==0),inputRef:u,emitValue:b,hasValue:C,floatingLabel:k.computed(()=>C.value===!0&&(l.type!=="number"||isNaN(i.value)===!1)||Hr(l.displayValue)),getControl:()=>k.h(q.value===!0?"textarea":"input",{ref:u,class:["q-field__native q-placeholder",l.inputClass],style:l.inputStyle,...V.value,...P.value,...l.type!=="file"?{value:M()}:x.value}),getShadowControl:()=>k.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(q.value===!0?"":" text-no-wrap")},[k.h("span",{class:"invisible"},M()),k.h("span",l.shadowText)])});const B=Ki(D);return Object.assign(v,{focus:W,select:L,getNativeElement:()=>u.value}),Lt(v,"nativeEl",()=>u.value),B}});function mc(l){return{entity:l.entity,dataCy:l.dataCy,defaultLabel:l.defaultLabel,routeName:l.routeName,shouldRender:l.customShouldRender||(({store:I})=>l.storeField?!!I[l.storeField]:!0),getLabel:l.getLabel||(l.labelField?({store:I})=>l.storeField&&I[l.storeField]?.[l.labelField]||l.defaultLabel:void 0),getColor:l.customGetColor||(({store:I})=>l.storeField&&I[l.storeField]?"primary":"dark"),getRouteParams:l.routeParamKey&&l.routeParamField?({store:I})=>({[l.routeParamKey]:l.storeField&&I[l.storeField]?.[l.routeParamField]}):void 0,clearActions:[...l.clearMethods?.map(I=>({store:t})=>t[I]?.())||[],...l.navActions?.map(I=>({navStore:t})=>I(t))||[]]}}const ia=/^\d{2}-\d{2}-\d{4}$/;function gc(l){const I=l.getTimezoneOffset()*6e4;return new Date(l.getTime()+I)}function Pr(l){const I=/^\d{4}-\d{2}-\d{2}$/,t=/^\d{2}-\d{2}-\d{4}$/;if(I.test(l))return l;if(t.test(l)){const v=l.split("-");return`${v[2]}-${v[1]}-${v[0]}`}return console.warn("'Invalid date format. Expected DD-MM-YYYY' or 'YYYY-MM-DD' but got: "+l),""}function ts(l,I,t,v=[]){const m=typeof l=="string"?new Date(Pr(l)):new Date(l);if(Number.isNaN(m.getTime()))return!1;if(I){const a=typeof I=="string"?new Date(Pr(I)):new Date(I);if(m<a)return!1}if(t){const a=typeof t=="string"?new Date(Pr(t)):new Date(t);if(m>a)return!1}return v.some(a=>{if(typeof a=="string"){const n=new Date(Pr(a));return m.getFullYear()===n.getFullYear()&&m.getMonth()===n.getMonth()&&m.getDate()===n.getDate()}else{if(a instanceof Date)return m.getFullYear()===a.getFullYear()&&m.getMonth()===a.getMonth()&&m.getDate()===a.getDate();{const n=new Date(a.start_date),e=new Date(a.end_date);return m>=n&&m<=e}}})?!1:!v.some(a=>{if(typeof a=="object"&&!(a instanceof Date)&&a.start_date&&a.end_date){const n=new Date(a.start_date),e=new Date(a.end_date);if(n.getTime()===e.getTime())return m.getTime()===n.getTime()||m.getTime()===e.getTime()}return!1})}const Yt={validateAndUpdate(l,I,t){return ia.test(I)?{...l,[t?"from":"to"]:I}:l},isEndDateValid(l,I,t=!1){if(!l||!I)return!0;try{const[v,m,c]=l.split("-"),[o,a,n]=I.split("-"),e=new Date(Number(c),Number(m)-1,Number(v)),r=new Date(Number(n),Number(a)-1,Number(o));return t?r>=e:r>e}catch{return!1}},handlePickerUpdate(l){return l===null?{from:"",to:""}:typeof l=="string"?{from:l,to:l}:l},reset(){return{from:"",to:""}},handleInput(l,I){typeof l=="string"&&I(l)}},sa={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"},bc={class:"columns justify-end"},vc={class:"row items-center justify-end"},yc=k.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:date"],setup(l,{emit:I}){const t=l,v=I,m=k.useAttrs(),c=k.ref(t.date),o=k.ref(t.date),a=k.ref(null),n=x=>{if(!x||x.length!==10)return!1;const C=/^(\d{2})-(\d{2})-(\d{4})$/,T=x.match(C);if(!T)return!1;const D=Number.parseInt(T[1],10),q=Number.parseInt(T[2],10),N=Number.parseInt(T[3],10);if(q<1||q>12||D<1||D>31)return!1;const P=new Date(N,q-1,D);return P.getFullYear()===N&&P.getMonth()===q-1&&P.getDate()===D},e=x=>{if(!x)return null;if(x.length!==10)return"Le format doit être JJ-MM-AAAA";const C=/^(\d{2})-(\d{2})-(\d{4})$/,T=x.match(C);if(!T)return"Format invalide. Utilisez JJ-MM-AAAA";const D=Number.parseInt(T[1],10),q=Number.parseInt(T[2],10),N=Number.parseInt(T[3],10),P=r(q);if(P)return P;const V=u(D,q,N);return V||(i(D,q,N)?null:"Date inexistante")},r=x=>x<1||x>12?"Le mois doit être entre 01 et 12":null,u=(x,C,T)=>x<1||x>31?"Le jour doit être entre 01 et 31":[4,6,9,11].includes(C)&&x>30?`Le mois ${C} n'a que 30 jours`:C===2?s(x,T):null,s=(x,C)=>{const T=C%4===0&&C%100!==0||C%400===0;return T&&x>29?"Février a maximum 29 jours pour les années bissextiles":!T&&x>28?"Février a maximum 28 jours":null},i=(x,C,T)=>{const D=new Date(T,C-1,x);return D.getFullYear()===T&&D.getMonth()===C-1&&D.getDate()===x},d=()=>{o.value?a.value=e(o.value):a.value=null},h=k.computed(()=>x=>{const C=x.replaceAll("/","-");return ts(C,t.minDate,t.maxDate,t.datesDisabled)}),f=x=>{n(x)&&(c.value=x,o.value=x,a.value=null,v("update:date",x))},g=x=>{if(typeof x=="string")if(o.value=x,v("update:date",x),x.length===10){const C=e(x);C||(c.value=x),a.value=C}else x===""&&(c.value="",a.value=null);else x===null&&(o.value="",c.value="",a.value=null,v("update:date",""))},p=k.computed(()=>{const x=[...t.rules];return t.required&&x.push(C=>!!C||t.requiredErrorMessage),x.push(C=>C?n(C)||a.value||t.invalidDateErrorMessage:!0),x});return k.watch(()=>t.date,x=>{x!==c.value&&(c.value=x,o.value=x,d())}),(x,C)=>(k.openBlock(),k.createElementBlock("div",bc,[k.createVNode(Yr,k.mergeProps(k.unref(m),{class:"full-width","model-value":o.value,mask:"##-##-####",dense:"",label:x.label,"data-cy":"datePick",rules:p.value,disable:x.disabled,required:x.required,outlined:x.outlined,placeholder:x.placeholder,"onUpdate:modelValue":g,onBlur:d}),{append:k.withCtx(()=>[k.createVNode(wt,{name:"event",class:"cursor-pointer","data-testid":"calendar-icon-picker"},{default:k.withCtx(()=>[k.createVNode(ra,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:k.withCtx(()=>[k.createVNode(ta,{mask:"DD-MM-YYYY","model-value":c.value,options:h.value,disable:x.disabled,"onUpdate:modelValue":f},{default:k.withCtx(()=>[k.createElementVNode("div",vc,[k.withDirectives(k.createVNode(ct,{label:x.closeLabel,color:"primary",flat:""},null,8,["label"]),[[qn]])])]),_:1},8,["model-value","options","disable"])]),_:1})]),_:1})]),_:1},16,["model-value","label","rules","disable","required","outlined","placeholder"])]))}}),wc={class:"date-range-wrapper"},xc={class:"date-range-flex"},Sc={key:0,class:"actions-group"},kc={class:"row items-center justify-end"},_c={key:0,class:"hint"},Cc={class:"text-warning text-caption q-mb-none"},Ac=k.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:()=>sa},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}},emits:["update:dateRange","clear"],setup(l,{expose:I,emit:t}){const v=l,m=t,c=k.ref({from:v.from,to:v.to}),o=k.computed(()=>`from-date-${v.idCy}`),a=k.computed(()=>`to-date-${v.idCy}`),n=A=>{if(!A||A.length!==10)return!1;const E=/^(\d{2})-(\d{2})-(\d{4})$/,_=A.match(E);if(!_)return!1;const b=Number.parseInt(_[1],10),y=Number.parseInt(_[2],10),w=Number.parseInt(_[3],10);if(y<1||y>12||b<1||b>31)return!1;const S=new Date(w,y-1,b);return S.getFullYear()===w&&S.getMonth()===y-1&&S.getDate()===b},e=A=>{if(!A)return null;if(A.length!==10)return"Le format doit être JJ-MM-AAAA";const E=/^(\d{2})-(\d{2})-(\d{4})$/,_=A.match(E);if(!_)return"Format invalide. Utilisez JJ-MM-AAAA";const b=Number.parseInt(_[1],10),y=Number.parseInt(_[2],10),w=Number.parseInt(_[3],10),S=r(y);if(S)return S;const M=u(b,y,w);return M||(i(b,y,w)?null:"Date inexistante")},r=A=>A<1||A>12?"Le mois doit être entre 01 et 12":null,u=(A,E,_)=>A<1||A>31?"Le jour doit être entre 01 et 31":[4,6,9,11].includes(E)&&A>30?`Le mois ${E} n'a que 30 jours`:E===2?s(A,_):null,s=(A,E)=>{const _=E%4===0&&E%100!==0||E%400===0;return _&&A>29?"Février a maximum 29 jours pour les années bissextiles":!_&&A>28?"Février a maximum 28 jours":null},i=(A,E,_)=>{const b=new Date(_,E-1,A);return b.getFullYear()===_&&b.getMonth()===E-1&&b.getDate()===A},d=k.ref(null),h=k.ref(null),f=()=>{c.value.from?d.value=e(c.value.from):d.value=null},g=()=>{c.value.to?h.value=e(c.value.to):h.value=null},p=k.computed(()=>A=>{const E=A.replaceAll("/","-");return ts(E,v.minDate,v.maxDate,v.datesDisabled)});let x=!1;const C=()=>{x=!0,c.value.from="",d.value=null,V(),m("clear"),setTimeout(()=>{x=!1},100)},T=()=>{x=!0,c.value.to="",h.value=null,V(),m("clear"),setTimeout(()=>{x=!1},100)},D=A=>{if(A===null||A===""){const E=c.value.from;c.value.from="",d.value=null,V(),!c.value.to&&E&&m("clear");return}Yt.handleInput(A,E=>{const _=c.value.from;if(E&&E.length===10){const b=e(E);if(d.value=b,b){c.value.from=E,V();return}}else d.value=null;c.value=Yt.validateAndUpdate(c.value,E,!0),V(),!E&&!c.value.to&&_&&m("clear")})},q=A=>{if(A===null||A===""){const E=c.value.to;c.value.to="",h.value=null,V(),!c.value.from&&E&&m("clear");return}Yt.handleInput(A,E=>{const _=c.value.to;if(E&&E.length===10){const b=e(E);if(h.value=b,b){c.value.to=E,V();return}}else h.value=null;c.value=Yt.validateAndUpdate(c.value,E,!1),V(),!E&&!c.value.from&&_&&m("clear")})},N=A=>{const E=Yt.handlePickerUpdate(A);E.from&&E.from.length===10?d.value=e(E.from):d.value=null,E.to&&E.to.length===10?h.value=e(E.to):h.value=null,!v.allowSameDate&&E.from&&E.to&&E.from===E.to&&(E.to=""),c.value=E,V()},P=()=>{x=!0,c.value=Yt.reset(),d.value=null,h.value=null,V(),m("clear"),setTimeout(()=>{x=!1},100)},V=()=>{m("update:dateRange",{...c.value})},W=k.computed(()=>[...v.required?[A=>!!A||v.requiredErrorMessage]:[],...v.rules,A=>{if(A&&!n(A))return d.value||v.invalidDateErrorMessage||"Date invalide!";const E=c.value.to;if(!A||!E)return!0;const _=Yt.isEndDateValid(A,E,v.allowSameDate);return v.allowSameDate?_||"La date de début doit être avant ou égale à la date de fin":_||"La date de début doit être strictement avant la date de fin"}]),L=k.computed(()=>[...v.required?[A=>!!A||v.requiredErrorMessage]:[],...v.rules,A=>{if(A&&!n(A))return h.value||v.invalidDateErrorMessage||"Date invalide!";const E=c.value.from;if(!A||!E)return!0;const _=Yt.isEndDateValid(E,A,v.allowSameDate);return v.allowSameDate?_||"La date de fin doit être après ou égale à la date de début":_||"La date de fin doit être strictement après la date de début"}]);return k.watch([()=>c.value.from,()=>c.value.to],([A,E],[_,b])=>{!A&&!E&&(_||b)&&!x&&(d.value=null,h.value=null,m("clear"))}),k.watch(()=>v.from,A=>{A!==c.value.from&&(c.value.from=A,f())}),k.watch(()=>v.to,A=>{A!==c.value.to&&(c.value.to=A,g())}),I({resetDate:P,setDateRange:A=>{c.value={from:A.from,to:A.to},f(),g(),V()}}),(A,E)=>(k.openBlock(),k.createElementBlock("div",wc,[k.createElementVNode("div",xc,[k.createVNode(Yr,k.mergeProps(A.$attrs,{"data-cy":o.value,"model-value":c.value.from,mask:"##-##-####",label:A.labelStart,rules:W.value,disable:A.disabled,required:A.required,"hide-bottom-space":"","onUpdate:modelValue":D,onClear:C,onBlur:f}),null,16,["data-cy","model-value","label","rules","disable","required"]),k.createVNode(Yr,k.mergeProps(A.$attrs,{"model-value":c.value.to,mask:"##-##-####",label:A.labelEnd,"hide-bottom-space":"","data-cy":a.value,rules:L.value,disable:A.disabled,required:A.required,"onUpdate:modelValue":q,onClear:T,onBlur:g}),null,16,["model-value","label","data-cy","rules","disable","required"]),A.hideActions?k.createCommentVNode("",!0):(k.openBlock(),k.createElementBlock("div",Sc,[k.createVNode(wt,{name:"event",size:"30px",class:"cursor-pointer",style:{opacity:"0.55"},"data-cy":"calendar-icon-range"},{default:k.withCtx(()=>[k.createVNode(ra,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:k.withCtx(()=>[k.createVNode(ta,{modelValue:c.value,"onUpdate:modelValue":[E[0]||(E[0]=_=>c.value=_),N],mask:"DD-MM-YYYY","today-btn":"",range:"","data-cy":"date-picker-range",locale:A.locale,options:p.value,events:A.highlightEvents,"event-color":"warning",disable:A.disabled},{default:k.withCtx(()=>[k.createElementVNode("div",kc,[k.withDirectives(k.createVNode(ct,{label:A.closeLabel,color:"primary",flat:""},null,8,["label"]),[[qn]])])]),_:1},8,["modelValue","locale","options","events","disable"])]),_:1})]),_:1}),k.createVNode(ct,{class:"q-pa-sm",outlined:"",dense:"","data-cy":"reset-date",label:A.resetLabel,onClick:P},null,8,["label"])]))]),A.startDateHint?(k.openBlock(),k.createElementBlock("div",_c,[k.createElementVNode("p",Cc,k.toDisplayString(A.startDateHint),1)])):k.createCommentVNode("",!0)]))}}),Ec=Kt(Ac,[["__scopeId","data-v-3121963b"]]),Mc=["top","middle","bottom"],ki=$e({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:l=>Mc.includes(l)}},setup(l,{slots:I}){const t=k.computed(()=>l.align!==void 0?{verticalAlign:l.align}:null),v=k.computed(()=>{const m=l.outline===!0&&l.color||l.textColor;return`q-badge flex inline items-center no-wrap q-badge--${l.multiLine===!0?"multi":"single"}-line`+(l.outline===!0?" q-badge--outline":l.color!==void 0?` bg-${l.color}`:"")+(m!==void 0?` text-${m}`:"")+(l.floating===!0?" q-badge--floating":"")+(l.rounded===!0?" q-badge--rounded":"")+(l.transparent===!0?" q-badge--transparent":"")});return()=>k.h("div",{class:v.value,style:t.value,role:"status","aria-label":l.label},It(I.default,l.label!==void 0?[l.label]:[]))}}),dn=$e({name:"QTooltip",inheritAttrs:!1,props:{...ko,...Pi,...Vr,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Vr.transitionShow,default:"jump-down"},transitionHide:{...Vr.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Mn},self:{type:String,default:"top middle",validator:Mn},offset:{type:Array,default:()=>[14,14],validator:Oo},scrollTarget:Dn,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...Li],setup(l,{slots:I,emit:t,attrs:v}){let m,c;const o=k.getCurrentInstance(),{proxy:{$q:a}}=o,n=k.ref(null),e=k.ref(!1),r=k.computed(()=>Tn(l.anchor,a.lang.rtl)),u=k.computed(()=>Tn(l.self,a.lang.rtl)),s=k.computed(()=>l.persistent!==!0),{registerTick:i,removeTick:d}=Ui(),{registerTimeout:h}=Wi(),{transitionProps:f,transitionStyle:g}=zi(l),{localScrollTarget:p,changeScrollEvent:x,unconfigureScrollTarget:C}=Co(l,M),{anchorEl:T,canShow:D,anchorEvents:q}=Ni({showing:e,configureAnchorEl:S}),{show:N,hide:P}=Vi({showing:e,canShow:D,handleShow:A,handleHide:E,hideOnRouteChange:s,processOnMount:!0});Object.assign(q,{delayShow:y,delayHide:w});const{showPortal:V,hidePortal:W,renderPortal:L}=qi(o,n,O,"tooltip");if(a.platform.is.mobile===!0){const H={anchorEl:T,innerRef:n,onClickOutside(Q){return P(Q),Q.target.classList.contains("q-dialog__backdrop")&&St(Q),!0}},z=k.computed(()=>l.modelValue===null&&l.persistent!==!0&&e.value===!0);k.watch(z,Q=>{(Q===!0?Io:En)(H)}),k.onBeforeUnmount(()=>{En(H)})}function A(H){V(),i(()=>{c=new MutationObserver(()=>b()),c.observe(n.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),b(),M()}),m===void 0&&(m=k.watch(()=>a.screen.width+"|"+a.screen.height+"|"+l.self+"|"+l.anchor+"|"+a.lang.rtl,b)),h(()=>{V(!0),t("show",H)},l.transitionDuration)}function E(H){d(),W(),_(),h(()=>{W(!0),t("hide",H)},l.transitionDuration)}function _(){c!==void 0&&(c.disconnect(),c=void 0),m!==void 0&&(m(),m=void 0),C(),cr(q,"tooltipTemp")}function b(){Hi({targetEl:n.value,offset:l.offset,anchorEl:T.value,anchorOrigin:r.value,selfOrigin:u.value,maxHeight:l.maxHeight,maxWidth:l.maxWidth})}function y(H){if(a.platform.is.mobile===!0){kn(),document.body.classList.add("non-selectable");const z=T.value,Q=["touchmove","touchcancel","touchend","click"].map(F=>[z,F,"delayHide","passiveCapture"]);Qt(q,"tooltipTemp",Q)}h(()=>{N(H)},l.delay)}function w(H){a.platform.is.mobile===!0&&(cr(q,"tooltipTemp"),kn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),h(()=>{P(H)},l.hideDelay)}function S(){if(l.noParentEvent===!0||T.value===null)return;const H=a.platform.is.mobile===!0?[[T.value,"touchstart","delayShow","passive"]]:[[T.value,"mouseenter","delayShow","passive"],[T.value,"mouseleave","delayHide","passive"]];Qt(q,"anchor",H)}function M(){if(T.value!==null||l.scrollTarget!==void 0){p.value=Nn(T.value,l.scrollTarget);const H=l.noParentEvent===!0?b:P;x(p.value,H)}}function B(){return e.value===!0?k.h("div",{...v,ref:n,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",v.class],style:[v.style,g.value],role:"tooltip"},gt(I.default)):null}function O(){return k.h(k.Transition,f.value,B)}return k.onBeforeUnmount(_),Object.assign(o.proxy,{updatePosition:b}),L}}),Lr=$e({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(l,{slots:I,emit:t}){const v=k.getCurrentInstance(),{proxy:{$q:m}}=v,c=o=>{t("click",o)};return()=>{if(l.props===void 0)return k.h("th",{class:l.autoWidth===!0?"q-table--col-auto-width":"",onClick:c},gt(I.default));let o,a;const n=v.vnode.key;if(n){if(o=l.props.colsMap[n],o===void 0)return}else o=l.props.col;if(o.sortable===!0){const r=o.align==="right"?"unshift":"push";a=Ai(I.default,[]),a[r](k.h(wt,{class:o.__iconClass,name:m.iconSet.table.arrowUp}))}else a=gt(I.default);const e={class:o.__thClass+(l.autoWidth===!0?" q-table--col-auto-width":""),style:o.headerStyle,onClick:r=>{o.sortable===!0&&l.props.sort(o),c(r)}};return k.h("th",e,a)}}}),hn=$e({name:"QTr",props:{props:Object,noHover:Boolean},setup(l,{slots:I}){const t=k.computed(()=>"q-tr"+(l.props===void 0||l.props.header===!0?"":" "+l.props.__trClass)+(l.noHover===!0?" q-tr--no-hover":""));return()=>k.h("tr",{style:l.props?.__trStyle,class:t.value},gt(I.default))}}),Tc=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],Rc=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],Zs=$e({name:"QSkeleton",props:{...Ot,tag:{type:String,default:"div"},type:{type:String,validator:l=>Tc.includes(l),default:"rect"},animation:{type:String,validator:l=>Rc.includes(l),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(l,{slots:I}){const t=k.getCurrentInstance(),v=jt(l,t.proxy.$q),m=k.computed(()=>{const o=l.size!==void 0?[l.size,l.size]:[l.width,l.height];return{"--q-skeleton-speed":`${l.animationSpeed}ms`,width:o[0],height:o[1]}}),c=k.computed(()=>`q-skeleton q-skeleton--${v.value===!0?"dark":"light"} q-skeleton--type-${l.type}`+(l.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${l.animation}`:"")+(l.square===!0?" q-skeleton--square":"")+(l.bordered===!0?" q-skeleton--bordered":""));return()=>k.h(l.tag,{class:c.value,style:m.value},gt(I.default))}}),ai=$e({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(l,{slots:I}){const t=k.getCurrentInstance(),v=k.computed(()=>"q-td"+(l.autoWidth===!0?" q-table--col-auto-width":"")+(l.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(l.props===void 0)return k.h("td",{class:v.value},gt(I.default));const m=t.vnode.key,c=(l.props.colsMap!==void 0?l.props.colsMap[m]:null)||l.props.col;if(c===void 0)return;const{row:o}=l.props;return k.h("td",{class:v.value+c.__tdClass(o),style:c.__tdStyle(o)},gt(I.default))}}}),Bc=["horizontal","vertical","cell","none"],Ic=$e({name:"QMarkupTable",props:{...Ot,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:l=>Bc.includes(l)}},setup(l,{slots:I}){const t=k.getCurrentInstance(),v=jt(l,t.proxy.$q),m=k.computed(()=>`q-markup-table q-table__container q-table__card q-table--${l.separator}-separator`+(v.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(l.dense===!0?" q-table--dense":"")+(l.flat===!0?" q-table--flat":"")+(l.bordered===!0?" q-table--bordered":"")+(l.square===!0?" q-table--square":"")+(l.wrapCells===!1?" q-table--no-wrap":""));return()=>k.h("div",{class:m.value},[k.h("table",{class:"q-table"},gt(I.default))])}});function oa(l,I){return k.h("div",l,[k.h("table",{class:"q-table"},I)])}const Oc={list:Xi,table:Ic},jc=["list","table","__qtable"],Fc=$e({name:"QVirtualScroll",props:{...yi,type:{type:String,default:"list",validator:l=>jc.includes(l)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Dn},setup(l,{slots:I,attrs:t}){let v;const m=k.ref(null),c=k.computed(()=>l.itemsSize>=0&&l.itemsFn!==void 0?parseInt(l.itemsSize,10):Array.isArray(l.items)?l.items.length:0),{virtualScrollSliceRange:o,localResetVirtualScroll:a,padVirtualScroll:n,onVirtualScrollEvt:e}=Vo({virtualScrollLength:c,getVirtualScrollTarget:d,getVirtualScrollEl:i}),r=k.computed(()=>{if(c.value===0)return[];const p=(x,C)=>({index:o.value.from+C,item:x});return l.itemsFn===void 0?l.items.slice(o.value.from,o.value.to).map(p):l.itemsFn(o.value.from,o.value.to-o.value.from).map(p)}),u=k.computed(()=>"q-virtual-scroll q-virtual-scroll"+(l.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(l.scrollTarget!==void 0?"":" scroll")),s=k.computed(()=>l.scrollTarget!==void 0?{}:{tabindex:0});k.watch(c,()=>{a()}),k.watch(()=>l.scrollTarget,()=>{f(),h()});function i(){return m.value.$el||m.value}function d(){return v}function h(){v=Nn(i(),l.scrollTarget),v.addEventListener("scroll",e,_t.passive)}function f(){v!==void 0&&(v.removeEventListener("scroll",e,_t.passive),v=void 0)}function g(){let p=n(l.type==="list"?"div":"tbody",r.value.map(I.default));return I.before!==void 0&&(p=I.before().concat(p)),It(I.after,p)}return k.onBeforeMount(()=>{a()}),k.onMounted(()=>{h()}),k.onActivated(()=>{h()}),k.onDeactivated(()=>{f()}),k.onBeforeUnmount(()=>{f()}),()=>{if(I.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return l.type==="__qtable"?oa({ref:m,class:"q-table__middle "+u.value},g()):k.h(Oc[l.type],{...t,ref:m,class:[t.class,u.value],...s.value},g)}}}),Dc={xs:2,sm:4,md:6,lg:10,xl:14};function $s(l,I,t){return{transform:I===!0?`translateX(${t.lang.rtl===!0?"-":""}100%) scale3d(${-l},1,1)`:`scale3d(${l},1,1)`}}const Nc=$e({name:"QLinearProgress",props:{...Ot,...Rr,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(l,{slots:I}){const{proxy:t}=k.getCurrentInstance(),v=jt(l,t.$q),m=Br(l,Dc),c=k.computed(()=>l.indeterminate===!0||l.query===!0),o=k.computed(()=>l.reverse!==l.query),a=k.computed(()=>({...m.value!==null?m.value:{},"--q-linear-progress-speed":`${l.animationSpeed}ms`})),n=k.computed(()=>"q-linear-progress"+(l.color!==void 0?` text-${l.color}`:"")+(l.reverse===!0||l.query===!0?" q-linear-progress--reverse":"")+(l.rounded===!0?" rounded-borders":"")),e=k.computed(()=>$s(l.buffer!==void 0?l.buffer:1,o.value,t.$q)),r=k.computed(()=>`with${l.instantFeedback===!0?"out":""}-transition`),u=k.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${r.value} q-linear-progress__track--${v.value===!0?"dark":"light"}`+(l.trackColor!==void 0?` bg-${l.trackColor}`:"")),s=k.computed(()=>$s(c.value===!0?1:l.value,o.value,t.$q)),i=k.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${r.value} q-linear-progress__model--${c.value===!0?"in":""}determinate`),d=k.computed(()=>({width:`${l.value*100}%`})),h=k.computed(()=>`q-linear-progress__stripe absolute-${l.reverse===!0?"right":"left"} q-linear-progress__stripe--${r.value}`);return()=>{const f=[k.h("div",{class:u.value,style:e.value}),k.h("div",{class:i.value,style:s.value})];return l.stripe===!0&&c.value===!1&&f.push(k.h("div",{class:h.value,style:d.value})),k.h("div",{class:n.value,style:a.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":l.indeterminate===!0?void 0:l.value},It(I.default,f))}}});let Dr=0;const Pc={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Lc=["update:fullscreen","fullscreen"];function Vc(){const l=k.getCurrentInstance(),{props:I,emit:t,proxy:v}=l;let m,c;const o=k.ref(!1);Ei(l)===!0&&k.watch(()=>v.$route.fullPath,()=>{I.noRouteFullscreenExit!==!0&&e()}),k.watch(()=>I.fullscreen,r=>{o.value!==r&&a()}),k.watch(o,r=>{t("update:fullscreen",r),t("fullscreen",r)});function a(){o.value===!0?e():n()}function n(){o.value!==!0&&(o.value=!0,c=v.$el.parentNode,c.replaceChild(m,v.$el),document.body.appendChild(v.$el),Dr++,Dr===1&&document.body.classList.add("q-body--fullscreen-mixin"))}function e(){o.value===!0&&(c.replaceChild(v.$el,m),o.value=!1,Dr=Math.max(0,Dr-1),Dr===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),v.$el.scrollIntoView!==void 0&&setTimeout(()=>{v.$el.scrollIntoView()})))}return k.onBeforeMount(()=>{m=document.createElement("span")}),k.onMounted(()=>{I.fullscreen===!0&&n()}),k.onBeforeUnmount(e),Object.assign(v,{toggleFullscreen:a,setFullscreen:n,exitFullscreen:e}),{inFullscreen:o,toggleFullscreen:a}}function qc(l,I){return new Date(l)-new Date(I)}const zc={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:l=>l==="ad"||l==="da",default:"ad"}};function Uc(l,I,t,v){const m=k.computed(()=>{const{sortBy:a}=I.value;return a&&t.value.find(n=>n.name===a)||null}),c=k.computed(()=>l.sortMethod!==void 0?l.sortMethod:(a,n,e)=>{const r=t.value.find(i=>i.name===n);if(r===void 0||r.field===void 0)return a;const u=e===!0?-1:1,s=typeof r.field=="function"?i=>r.field(i):i=>i[r.field];return a.sort((i,d)=>{let h=s(i),f=s(d);return r.rawSort!==void 0?r.rawSort(h,f,i,d)*u:h==null?-1*u:f==null?1*u:r.sort!==void 0?r.sort(h,f,i,d)*u:wi(h)===!0&&wi(f)===!0?(h-f)*u:Bn(h)===!0&&Bn(f)===!0?qc(h,f)*u:typeof h=="boolean"&&typeof f=="boolean"?(h-f)*u:([h,f]=[h,f].map(g=>(g+"").toLocaleString().toLowerCase()),h<f?-1*u:h===f?0:u)})});function o(a){let n=l.columnSortOrder;if(zo(a)===!0)a.sortOrder&&(n=a.sortOrder),a=a.name;else{const u=t.value.find(s=>s.name===a);u?.sortOrder&&(n=u.sortOrder)}let{sortBy:e,descending:r}=I.value;e!==a?(e=a,r=n==="da"):l.binaryStateSort===!0?r=!r:r===!0?n==="ad"?e=null:r=!1:n==="ad"?r=!0:e=null,v({sortBy:e,descending:r,page:1})}return{columnToSort:m,computedSortMethod:c,sort:o}}const Wc={filter:[String,Object],filterMethod:Function};function Hc(l,I){const t=k.computed(()=>l.filterMethod!==void 0?l.filterMethod:(v,m,c,o)=>{const a=m?m.toLowerCase():"";return v.filter(n=>c.some(e=>{const r=o(e,n)+"";return(r==="undefined"||r==="null"?"":r.toLowerCase()).indexOf(a)!==-1}))});return k.watch(()=>l.filter,()=>{k.nextTick(()=>{I({page:1},!0)})},{deep:!0}),{computedFilterMethod:t}}function Yc(l,I){for(const t in I)if(I[t]!==l[t])return!1;return!0}function eo(l){return l.page<1&&(l.page=1),l.rowsPerPage!==void 0&&l.rowsPerPage<1&&(l.rowsPerPage=0),l}const Qc={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function Kc(l,I){const{props:t,emit:v}=l,m=k.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:t.rowsPerPageOptions.length!==0?t.rowsPerPageOptions[0]:5},t.pagination)),c=k.computed(()=>{const r=t["onUpdate:pagination"]!==void 0?{...m.value,...t.pagination}:m.value;return eo(r)}),o=k.computed(()=>c.value.rowsNumber!==void 0);function a(r){n({pagination:r,filter:t.filter})}function n(r={}){k.nextTick(()=>{v("request",{pagination:r.pagination||c.value,filter:r.filter||t.filter,getCellValue:I})})}function e(r,u){const s=eo({...c.value,...r});if(Yc(c.value,s)===!0){o.value===!0&&u===!0&&a(s);return}if(o.value===!0){a(s);return}t.pagination!==void 0&&t["onUpdate:pagination"]!==void 0?v("update:pagination",s):m.value=s}return{innerPagination:m,computedPagination:c,isServerSide:o,requestServerInteraction:n,setPagination:e}}function Xc(l,I,t,v,m,c){const{props:o,emit:a,proxy:{$q:n}}=l,e=k.computed(()=>v.value===!0?t.value.rowsNumber||0:c.value),r=k.computed(()=>{const{page:C,rowsPerPage:T}=t.value;return(C-1)*T}),u=k.computed(()=>{const{page:C,rowsPerPage:T}=t.value;return C*T}),s=k.computed(()=>t.value.page===1),i=k.computed(()=>t.value.rowsPerPage===0?1:Math.max(1,Math.ceil(e.value/t.value.rowsPerPage))),d=k.computed(()=>u.value===0?!0:t.value.page>=i.value),h=k.computed(()=>(o.rowsPerPageOptions.includes(I.value.rowsPerPage)?o.rowsPerPageOptions:[I.value.rowsPerPage].concat(o.rowsPerPageOptions)).map(T=>({label:T===0?n.lang.table.allRows:""+T,value:T})));k.watch(i,(C,T)=>{if(C===T)return;const D=t.value.page;C&&!D?m({page:1}):C<D&&m({page:C})});function f(){m({page:1})}function g(){const{page:C}=t.value;C>1&&m({page:C-1})}function p(){const{page:C,rowsPerPage:T}=t.value;u.value>0&&C*T<e.value&&m({page:C+1})}function x(){m({page:i.value})}return o["onUpdate:pagination"]!==void 0&&a("update:pagination",{...t.value}),{firstRowIndex:r,lastRowIndex:u,isFirstPage:s,isLastPage:d,pagesNumber:i,computedRowsPerPageOptions:h,computedRowsNumber:e,firstPage:f,prevPage:g,nextPage:p,lastPage:x}}const Gc={selection:{type:String,default:"none",validator:l=>["single","multiple","none"].includes(l)},selected:{type:Array,default:()=>[]}},Jc=["update:selected","selection"];function Zc(l,I,t,v){const m=k.computed(()=>{const d={};return l.selected.map(v.value).forEach(h=>{d[h]=!0}),d}),c=k.computed(()=>l.selection!=="none"),o=k.computed(()=>l.selection==="single"),a=k.computed(()=>l.selection==="multiple"),n=k.computed(()=>t.value.length!==0&&t.value.every(d=>m.value[v.value(d)]===!0)),e=k.computed(()=>n.value!==!0&&t.value.some(d=>m.value[v.value(d)]===!0)),r=k.computed(()=>l.selected.length);function u(d){return m.value[d]===!0}function s(){I("update:selected",[])}function i(d,h,f,g){I("selection",{rows:h,added:f,keys:d,evt:g});const p=o.value===!0?f===!0?h:[]:f===!0?l.selected.concat(h):l.selected.filter(x=>d.includes(v.value(x))===!1);I("update:selected",p)}return{hasSelectionMode:c,singleSelection:o,multipleSelection:a,allRowsSelected:n,someRowsSelected:e,rowsSelectedNumber:r,isRowSelected:u,clearSelection:s,updateSelection:i}}function to(l){return Array.isArray(l)?l.slice():[]}const $c={expanded:Array},ef=["update:expanded"];function tf(l,I){const t=k.ref(to(l.expanded));k.watch(()=>l.expanded,o=>{t.value=to(o)});function v(o){return t.value.includes(o)}function m(o){l.expanded!==void 0?I("update:expanded",o):t.value=o}function c(o,a){const n=t.value.slice(),e=n.indexOf(o);a===!0?e===-1&&(n.push(o),m(n)):e!==-1&&(n.splice(e,1),m(n))}return{isRowExpanded:v,setExpanded:m,updateExpanded:c}}const rf={visibleColumns:Array};function nf(l,I,t){const v=k.computed(()=>{if(l.columns!==void 0)return l.columns;const a=l.rows[0];return a!==void 0?Object.keys(a).map(n=>({name:n,label:n.toUpperCase(),field:n,align:wi(a[n])?"right":"left",sortable:!0})):[]}),m=k.computed(()=>{const{sortBy:a,descending:n}=I.value;return(l.visibleColumns!==void 0?v.value.filter(r=>r.required===!0||l.visibleColumns.includes(r.name)===!0):v.value).map(r=>{const u=r.align||"right",s=`text-${u}`;return{...r,align:u,__iconClass:`q-table__sort-icon q-table__sort-icon--${u}`,__thClass:s+(r.headerClasses!==void 0?" "+r.headerClasses:"")+(r.sortable===!0?" sortable":"")+(r.name===a?` sorted ${n===!0?"sort-desc":""}`:""),__tdStyle:r.style!==void 0?typeof r.style!="function"?()=>r.style:r.style:()=>null,__tdClass:r.classes!==void 0?typeof r.classes!="function"?()=>s+" "+r.classes:i=>s+" "+r.classes(i):()=>s}})}),c=k.computed(()=>{const a={};return m.value.forEach(n=>{a[n.name]=n}),a}),o=k.computed(()=>l.tableColspan!==void 0?l.tableColspan:m.value.length+(t.value===!0?1:0));return{colList:v,computedCols:m,computedColsMap:c,computedColspan:o}}const pn="q-table__bottom row items-center",aa={};Lo.forEach(l=>{aa[l]={}});const sf=$e({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:l=>["horizontal","vertical","cell","none"].includes(l)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...aa,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],tableRowStyleFn:Function,tableRowClassFn:Function,cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],cardStyleFn:Function,cardClassFn:Function,hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...Ot,...Pc,...rf,...Wc,...Qc,...$c,...Gc,...zc},emits:["request","virtualScroll",...Lc,...ef,...Jc],setup(l,{slots:I,emit:t}){const v=k.getCurrentInstance(),{proxy:{$q:m}}=v,c=jt(l,m),{inFullscreen:o,toggleFullscreen:a}=Vc(),n=k.computed(()=>typeof l.rowKey=="function"?l.rowKey:he=>he[l.rowKey]),e=k.ref(null),r=k.ref(null),u=k.computed(()=>l.grid!==!0&&l.virtualScroll===!0),s=k.computed(()=>" q-table__card"+(c.value===!0?" q-table__card--dark q-dark":"")+(l.square===!0?" q-table--square":"")+(l.flat===!0?" q-table--flat":"")+(l.bordered===!0?" q-table--bordered":"")),i=k.computed(()=>`q-table__container q-table--${l.separator}-separator column no-wrap`+(l.grid===!0?" q-table--grid":s.value)+(c.value===!0?" q-table--dark":"")+(l.dense===!0?" q-table--dense":"")+(l.wrapCells===!1?" q-table--no-wrap":"")+(o.value===!0?" fullscreen scroll":"")),d=k.computed(()=>i.value+(l.loading===!0?" q-table--loading":""));k.watch(()=>l.tableStyle+l.tableClass+l.tableHeaderStyle+l.tableHeaderClass+i.value,()=>{u.value===!0&&r.value?.reset()});const{innerPagination:h,computedPagination:f,isServerSide:g,requestServerInteraction:p,setPagination:x}=Kc(v,Pe),{computedFilterMethod:C}=Hc(l,x),{isRowExpanded:T,setExpanded:D,updateExpanded:q}=tf(l,t),N=k.computed(()=>{let he=l.rows;if(g.value===!0||he.length===0)return he;const{sortBy:we,descending:Te}=f.value;return l.filter&&(he=C.value(he,l.filter,B.value,Pe)),z.value!==null&&(he=Q.value(l.rows===he?he.slice():he,we,Te)),he}),P=k.computed(()=>N.value.length),V=k.computed(()=>{let he=N.value;if(g.value===!0)return he;const{rowsPerPage:we}=f.value;return we!==0&&(Y.value===0&&l.rows!==he?he.length>j.value&&(he=he.slice(0,j.value)):he=he.slice(Y.value,j.value)),he}),{hasSelectionMode:W,singleSelection:L,multipleSelection:A,allRowsSelected:E,someRowsSelected:_,rowsSelectedNumber:b,isRowSelected:y,clearSelection:w,updateSelection:S}=Zc(l,t,V,n),{colList:M,computedCols:B,computedColsMap:O,computedColspan:H}=nf(l,f,W),{columnToSort:z,computedSortMethod:Q,sort:F}=Uc(l,f,M,x),{firstRowIndex:Y,lastRowIndex:j,isFirstPage:R,isLastPage:U,pagesNumber:K,computedRowsPerPageOptions:$,computedRowsNumber:G,firstPage:ee,prevPage:ae,nextPage:se,lastPage:J}=Xc(v,h,f,g,x,P),ne=k.computed(()=>V.value.length===0),ie=k.computed(()=>{const he={};return Lo.forEach(we=>{he[we]=l[we]}),he.virtualScrollItemSize===void 0&&(he.virtualScrollItemSize=l.dense===!0?28:48),he});function fe(){u.value===!0&&r.value.reset()}function ce(){if(l.grid===!0)return ot();const he=l.hideHeader!==!0?De:null;if(u.value===!0){const Te=I["top-row"],Oe=I["bottom-row"],Ce={default:Qe=>xe(Qe.item,I.body,Qe.index)};if(Te!==void 0){const Qe=k.h("tbody",Te({cols:B.value}));Ce.before=he===null?()=>Qe:()=>[he()].concat(Qe)}else he!==null&&(Ce.before=he);return Oe!==void 0&&(Ce.after=()=>k.h("tbody",Oe({cols:B.value}))),k.h(Fc,{ref:r,class:l.tableClass,style:l.tableStyle,...ie.value,scrollTarget:l.virtualScrollTarget,items:V.value,type:"__qtable",tableColspan:H.value,onVirtualScroll:me},Ce)}const we=[Ie()];return he!==null&&we.unshift(he()),oa({class:["q-table__middle scroll",l.tableClass],style:l.tableStyle},we)}function de(he,we){if(r.value!==null){r.value.scrollTo(he,we);return}he=parseInt(he,10);const Te=e.value.querySelector(`tbody tr:nth-of-type(${he+1})`);if(Te!==null){const Oe=e.value.querySelector(".q-table__middle.scroll"),Ce=Te.offsetTop-l.virtualScrollStickySizeStart,Qe=Ce<Oe.scrollTop?"decrease":"increase";Oe.scrollTop=Ce,t("virtualScroll",{index:he,from:0,to:h.value.rowsPerPage-1,direction:Qe})}}function me(he){t("virtualScroll",he)}function be(){return[k.h(Nc,{class:"q-table__linear-progress",color:l.color,dark:c.value,indeterminate:!0,trackColor:"transparent"})]}function xe(he,we,Te){const Oe=n.value(he),Ce=y(Oe);if(we!==void 0){const X={key:Oe,row:he,pageIndex:Te,__trClass:Ce?"selected":""};if(l.tableRowStyleFn!==void 0&&(X.__trStyle=l.tableRowStyleFn(he)),l.tableRowClassFn!==void 0){const re=l.tableRowClassFn(he);re&&(X.__trClass=`${re} ${X.__trClass}`)}return we(Ee(X))}const Qe=I["body-cell"],Ke=B.value.map(X=>{const re=I[`body-cell-${X.name}`],le=re!==void 0?re:Qe;return le!==void 0?le(Me({key:Oe,row:he,pageIndex:Te,col:X})):k.h("td",{class:X.__tdClass(he),style:X.__tdStyle(he)},Pe(X,he))});if(W.value===!0){const X=I["body-selection"],re=X!==void 0?X(We({key:Oe,row:he,pageIndex:Te})):[k.h(_r,{modelValue:Ce,color:l.color,dark:c.value,dense:l.dense,"onUpdate:modelValue":(le,pe)=>{S([Oe],[he],le,pe)}})];Ke.unshift(k.h("td",{class:"q-table--col-auto-width"},re))}const te={key:Oe,class:{selected:Ce}};if(l.onRowClick!==void 0&&(te.class["cursor-pointer"]=!0,te.onClick=X=>{t("rowClick",X,he,Te)}),l.onRowDblclick!==void 0&&(te.class["cursor-pointer"]=!0,te.onDblclick=X=>{t("rowDblclick",X,he,Te)}),l.onRowContextmenu!==void 0&&(te.class["cursor-pointer"]=!0,te.onContextmenu=X=>{t("rowContextmenu",X,he,Te)}),l.tableRowStyleFn!==void 0&&(te.style=l.tableRowStyleFn(he)),l.tableRowClassFn!==void 0){const X=l.tableRowClassFn(he);X&&(te.class[X]=!0)}return k.h("tr",te,Ke)}function Ie(){const he=I.body,we=I["top-row"],Te=I["bottom-row"];let Oe=V.value.map((Ce,Qe)=>xe(Ce,he,Qe));return we!==void 0&&(Oe=we({cols:B.value}).concat(Oe)),Te!==void 0&&(Oe=Oe.concat(Te({cols:B.value}))),k.h("tbody",Oe)}function Ee(he){return Ve(he),he.cols=he.cols.map(we=>Lt({...we},"value",()=>Pe(we,he.row))),he}function Me(he){return Ve(he),Lt(he,"value",()=>Pe(he.col,he.row)),he}function We(he){return Ve(he),he}function Ve(he){Object.assign(he,{cols:B.value,colsMap:O.value,sort:F,rowIndex:Y.value+he.pageIndex,color:l.color,dark:c.value,dense:l.dense}),W.value===!0&&Lt(he,"selected",()=>y(he.key),(we,Te)=>{S([he.key],[he.row],we,Te)}),Lt(he,"expand",()=>T(he.key),we=>{q(he.key,we)})}function Pe(he,we){const Te=typeof he.field=="function"?he.field(we):we[he.field];return he.format!==void 0?he.format(Te,we):Te}const qe=k.computed(()=>({pagination:f.value,pagesNumber:K.value,isFirstPage:R.value,isLastPage:U.value,firstPage:ee,prevPage:ae,nextPage:se,lastPage:J,inFullscreen:o.value,toggleFullscreen:a}));function je(){const he=I.top,we=I["top-left"],Te=I["top-right"],Oe=I["top-selection"],Ce=W.value===!0&&Oe!==void 0&&b.value>0,Qe="q-table__top relative-position row items-center";if(he!==void 0)return k.h("div",{class:Qe},[he(qe.value)]);let Ke;if(Ce===!0?Ke=Oe(qe.value).slice():(Ke=[],we!==void 0?Ke.push(k.h("div",{class:"q-table__control"},[we(qe.value)])):l.title&&Ke.push(k.h("div",{class:"q-table__control"},[k.h("div",{class:["q-table__title",l.titleClass]},l.title)]))),Te!==void 0&&(Ke.push(k.h("div",{class:"q-table__separator col"})),Ke.push(k.h("div",{class:"q-table__control"},[Te(qe.value)]))),Ke.length!==0)return k.h("div",{class:Qe},Ke)}const ke=k.computed(()=>_.value===!0?null:E.value);function De(){const he=Ue();return l.loading===!0&&I.loading===void 0&&he.push(k.h("tr",{class:"q-table__progress"},[k.h("th",{class:"relative-position",colspan:H.value},be())])),k.h("thead",he)}function Ue(){const he=I.header,we=I["header-cell"];if(he!==void 0)return he(Le({header:!0})).slice();const Te=B.value.map(Oe=>{const Ce=I[`header-cell-${Oe.name}`],Qe=Ce!==void 0?Ce:we,Ke=Le({col:Oe});return Qe!==void 0?Qe(Ke):k.h(Lr,{key:Oe.name,props:Ke},()=>Oe.label)});if(L.value===!0&&l.grid!==!0)Te.unshift(k.h("th",{class:"q-table--col-auto-width"}," "));else if(A.value===!0){const Oe=I["header-selection"],Ce=Oe!==void 0?Oe(Le({})):[k.h(_r,{color:l.color,modelValue:ke.value,dark:c.value,dense:l.dense,"onUpdate:modelValue":Ge})];Te.unshift(k.h("th",{class:"q-table--col-auto-width"},Ce))}return[k.h("tr",{class:l.tableHeaderClass,style:l.tableHeaderStyle},Te)]}function Le(he){return Object.assign(he,{cols:B.value,sort:F,colsMap:O.value,color:l.color,dark:c.value,dense:l.dense}),A.value===!0&&Lt(he,"selected",()=>ke.value,Ge),he}function Ge(he){_.value===!0&&(he=!1),S(V.value.map(n.value),V.value,he)}const et=k.computed(()=>{const he=[l.iconFirstPage||m.iconSet.table.firstPage,l.iconPrevPage||m.iconSet.table.prevPage,l.iconNextPage||m.iconSet.table.nextPage,l.iconLastPage||m.iconSet.table.lastPage];return m.lang.rtl===!0?he.reverse():he});function He(){if(l.hideBottom===!0)return;if(ne.value===!0){if(l.hideNoData===!0)return;const Te=l.loading===!0?l.loadingLabel||m.lang.table.loading:l.filter?l.noResultsLabel||m.lang.table.noResults:l.noDataLabel||m.lang.table.noData,Oe=I["no-data"],Ce=Oe!==void 0?[Oe({message:Te,icon:m.iconSet.table.warning,filter:l.filter})]:[k.h(wt,{class:"q-table__bottom-nodata-icon",name:m.iconSet.table.warning}),Te];return k.h("div",{class:pn+" q-table__bottom--nodata"},Ce)}const he=I.bottom;if(he!==void 0)return k.h("div",{class:pn},[he(qe.value)]);const we=l.hideSelectedBanner!==!0&&W.value===!0&&b.value>0?[k.h("div",{class:"q-table__control"},[k.h("div",[(l.selectedRowsLabel||m.lang.table.selectedRecords)(b.value)])])]:[];if(l.hidePagination!==!0)return k.h("div",{class:pn+" justify-end"},tt(we));if(we.length!==0)return k.h("div",{class:pn},we)}function nt(he){x({page:1,rowsPerPage:he.value})}function tt(he){let we;const{rowsPerPage:Te}=f.value,Oe=l.paginationLabel||m.lang.table.pagination,Ce=I.pagination,Qe=l.rowsPerPageOptions.length>1;if(he.push(k.h("div",{class:"q-table__separator col"})),Qe===!0&&he.push(k.h("div",{class:"q-table__control"},[k.h("span",{class:"q-table__bottom-item"},[l.rowsPerPageLabel||m.lang.table.recordsPerPage]),k.h(Vn,{class:"q-table__select inline q-table__bottom-item",color:l.color,modelValue:Te,options:$.value,displayValue:Te===0?m.lang.table.allRows:Te,dark:c.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":nt})])),Ce!==void 0)we=Ce(qe.value);else if(we=[k.h("span",Te!==0?{class:"q-table__bottom-item"}:{},[Te?Oe(Y.value+1,Math.min(j.value,G.value),G.value):Oe(1,P.value,G.value)])],Te!==0&&K.value>1){const Ke={color:l.color,round:!0,dense:!0,flat:!0};l.dense===!0&&(Ke.size="sm"),K.value>2&&we.push(k.h(ct,{key:"pgFirst",...Ke,icon:et.value[0],disable:R.value,"aria-label":m.lang.pagination.first,onClick:ee})),we.push(k.h(ct,{key:"pgPrev",...Ke,icon:et.value[1],disable:R.value,"aria-label":m.lang.pagination.prev,onClick:ae}),k.h(ct,{key:"pgNext",...Ke,icon:et.value[2],disable:U.value,"aria-label":m.lang.pagination.next,onClick:se})),K.value>2&&we.push(k.h(ct,{key:"pgLast",...Ke,icon:et.value[3],disable:U.value,"aria-label":m.lang.pagination.last,onClick:J}))}return he.push(k.h("div",{class:"q-table__control"},we)),he}function Ye(){const he=l.gridHeader===!0?[k.h("table",{class:"q-table"},[De()])]:l.loading===!0&&I.loading===void 0?be():void 0;return k.h("div",{class:"q-table__middle"},he)}function ot(){const he=I.item!==void 0?I.item:we=>{const Te=we.cols.map(Ce=>k.h("div",{class:"q-table__grid-item-row"},[k.h("div",{class:"q-table__grid-item-title"},[Ce.label]),k.h("div",{class:"q-table__grid-item-value"},[Ce.value])]));if(W.value===!0){const Ce=I["body-selection"],Qe=Ce!==void 0?Ce(we):[k.h(_r,{modelValue:we.selected,color:l.color,dark:c.value,dense:l.dense,"onUpdate:modelValue":(Ke,te)=>{S([we.key],[we.row],Ke,te)}})];Te.unshift(k.h("div",{class:"q-table__grid-item-row"},Qe),k.h(In,{dark:c.value}))}const Oe={class:["q-table__grid-item-card"+s.value,l.cardClass],style:l.cardStyle};if(l.cardStyleFn!==void 0&&(Oe.style=[Oe.style,l.cardStyleFn(we.row)]),l.cardClassFn!==void 0){const Ce=l.cardClassFn(we.row);Ce&&(Oe.class[0]+=` ${Ce}`)}return(l.onRowClick!==void 0||l.onRowDblclick!==void 0||l.onRowContextmenu!==void 0)&&(Oe.class[0]+=" cursor-pointer",l.onRowClick!==void 0&&(Oe.onClick=Ce=>{t("RowClick",Ce,we.row,we.pageIndex)}),l.onRowDblclick!==void 0&&(Oe.onDblclick=Ce=>{t("RowDblclick",Ce,we.row,we.pageIndex)}),l.onRowContextmenu!==void 0&&(Oe.onContextmenu=Ce=>{t("rowContextmenu",Ce,we.row,we.pageIndex)})),k.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(we.selected===!0?" q-table__grid-item--selected":"")},[k.h("div",Oe,Te)])};return k.h("div",{class:["q-table__grid-content row",l.cardContainerClass],style:l.cardContainerStyle},V.value.map((we,Te)=>he(Ee({key:n.value(we),row:we,pageIndex:Te}))))}return Object.assign(v.proxy,{requestServerInteraction:p,setPagination:x,firstPage:ee,prevPage:ae,nextPage:se,lastPage:J,isRowSelected:y,clearSelection:w,isRowExpanded:T,setExpanded:D,sort:F,resetVirtualScroll:fe,scrollTo:de,getCellValue:Pe}),pa(v.proxy,{filteredSortedRows:()=>N.value,computedRows:()=>V.value,computedRowsNumber:()=>G.value}),()=>{const he=[je()],we={ref:e,class:d.value};return l.grid===!0?he.push(Ye()):Object.assign(we,{class:[we.class,l.cardClass],style:l.cardStyle}),he.push(ce(),He()),l.loading===!0&&I.loading!==void 0&&he.push(I.loading()),k.h("div",we,he)}}});function of(l,I,t){if(!t.renderAsBadge)return null;const v={label:typeof t.format=="function"?t.format(l):String(l),outline:t.badgeOutline,rounded:t.badgeRounded,size:t.badgeSize||"md",class:t.badgeClass};if(t.badgeMapping){const m=String(l).toLowerCase(),c=t.badgeMapping[m]||t.badgeMapping[l];c&&(v.color=c.color,v.label=c.label||v.label,v.icon=c.icon,v.outline=c.outline??v.outline)}return typeof t.badgeColor=="function"?v.color=t.badgeColor(l,I):t.badgeColor?v.color=t.badgeColor:v.color||(v.color=af(l)),v}function af(l){const I=String(l).toLowerCase();return{active:"green",inactive:"grey",pending:"orange",approved:"blue",rejected:"red",completed:"green",cancelled:"red",success:"green",error:"red",warning:"orange",info:"blue",draft:"grey",published:"green",archived:"grey-7",true:"green",false:"grey",yes:"green",no:"grey",enabled:"green",disabled:"grey"}[I]||"primary"}function qt(l,I){const t=uf(l,I);return{value:t,badgeConfig:of(t,l,I)}}const lf={shouldShowExpandButton:()=>!0,shouldShowSelectionColumn:()=>!0};function uf(l,I){return typeof I.field=="function"?I.field(l):l[I.field]}function _i(l,I){return typeof l.visible=="function"?l.visible(I):l.visible!==!1}function kr(l,I){return typeof l.disabled=="function"?l.disabled(I):!!l.disabled}function ro(l,I,t,v){return l.filter(m=>_i(m,I)&&(m.position===t||m.position==="both")&&(!v||m.columnName===v))}function mn(l,I){return kr(l,I)?"grey":l.color||"primary"}function gn(l,I,t,v="action"){return l.testId?typeof l.testId=="function"?l.testId(I):l.testId:`${v}-${l.id}-${I[t]}`}function lr(l,I){return l[I]||String(l.id)||String(l._id)||JSON.stringify(l)}function cf(l,I,t){const v=lr(l,t);return I.some(m=>lr(m,t)===v)}function ff(l,I){const t=k.ref(new Set);return(()=>{if(I&&typeof localStorage<"u")try{const s=localStorage.getItem(I);if(s){const i=JSON.parse(s),d=new Set(Object.keys(i).filter(h=>i[h]));t.value=d;return}}catch(s){console.warn("Error loading column state from localStorage:",s)}l.forEach(s=>{!s.hidden&&!s.isSelectionColumn&&t.value.add(s.name)})})(),I&&k.watch(t,s=>{try{const i={};l.forEach(d=>{i[d.name]=s.has(d.name)}),localStorage.setItem(I,JSON.stringify(i))}catch(i){console.warn("Error saving column state to localStorage:",i)}},{deep:!0}),{visibleColumns:t,toggleColumnVisibility:s=>{const i=new Set(t.value);i.has(s)?i.delete(s):i.add(s),t.value=i},showColumn:s=>{t.value.add(s)},hideColumn:s=>{t.value.delete(s)},showAllColumns:()=>{const s=new Set;l.forEach(i=>{s.add(i.name)}),t.value=s},hideAllColumns:()=>{t.value.clear()},resetColumns:()=>{t.value.clear(),l.forEach(s=>{!s.hidden&&!s.isSelectionColumn&&t.value.add(s.name)}),I&&typeof localStorage<"u"&&localStorage.removeItem(I)},filteredColumns:s=>s.filter(i=>t.value.has(i.name)),isColumnVisible:s=>t.value.has(s)}}const df={key:0,class:"row items-center q-mb-md q-pa-sm bg-blue-1 rounded-borders"},hf={class:"col-auto q-mr-md"},pf={class:"col"},mf={class:"flex items-center gap-2"},gf={key:1,class:"row items-center q-mb-sm q-pa-xs bg-grey-2 rounded-borders"},bf={class:"col"},vf={class:"flex items-center flex-wrap gap-1"},yf={class:"column-container"},wf={class:"column-label ellipsis"},xf={key:0,"auto-width":"",class:"q-pa-xs selection-cell"},Sf={key:1,"auto-width":"",class:"expand-cell"},kf=["onClick"],_f={class:"flex items-center"},Cf={key:1,class:"text-no-wrap ellipsis"},Af={colspan:"100%"},Ef=k.defineComponent({__name:"CustomTable",props:{columns:{},results:{},filter:{default:""},pagination:{},loading:{type:Boolean,default:!1},onRequest:{},rowKey:{default:"id"},services:{default:()=>({})},conditionals:{default:()=>({})},actions:{type:[Array,Function],default:()=>[]},showSkeleton:{type:Boolean,default:!1},rowClasses:{type:[String,Function],default:void 0},selection:{default:"none"},selected:{default:()=>[]},onSelectionChange:{},selectable:{type:Function,default:()=>!0},showSelectAll:{type:Boolean,default:!0},showColumnToggle:{type:Boolean,default:!1},columnStorageKey:{default:void 0}},emits:["update:pagination","update:selected","selection-change"],setup(l,{expose:I,emit:t}){const v=l,m=t,c=k.ref([]),o=k.ref(v.selected||[]),a=k.useSlots(),n=k.computed(()=>!!a.expanded),{toggleColumnVisibility:e,resetColumns:r,filteredColumns:u,isColumnVisible:s}=ff(v.columns,v.columnStorageKey),i=k.computed(()=>u(v.columns)),d=k.computed({get(){return v.pagination},set(z){m("update:pagination",z)}}),h=k.computed(()=>({...lf,...v.conditionals})),f=z=>h.value.shouldShowExpandButton(z),g=z=>c.value.includes(z[v.rowKey]),p=k.computed(()=>{if(v.selection!=="none")return v.selection}),x=k.computed(()=>v.selection==="none"?!1:h.value.shouldShowSelectionColumn()),C=k.computed(()=>v.results.length===0?!1:typeof v.actions=="function"?!0:v.actions.some(z=>_i(z,v.results[0])&&(z.position==="row"||z.position==="both"))),T=k.computed(()=>x.value?[{name:"__selection",label:"",field:"__selection",align:"center",sortable:!1,isSelectionColumn:!0},...i.value]:i.value),D=z=>typeof v.selectable=="function"?v.selectable(z):v.selectable!==!1,q=z=>cf(z,o.value,v.rowKey),N=k.computed(()=>v.results.filter(z=>D(z))),P=k.computed(()=>N.value.length===0?!1:N.value.every(z=>q(z))),V=k.computed(()=>o.value.length===0?!1:!P.value&&N.value.some(z=>q(z)));k.watch(()=>v.selected,z=>{JSON.stringify(z)!==JSON.stringify(o.value)&&(o.value=z||[])},{deep:!0}),k.watch(o,z=>{m("update:selected",z),m("selection-change",z)},{deep:!0});function W(z,Q){if(!D(z))return;const F=lr(z,v.rowKey);Q?o.value.some(Y=>lr(Y,v.rowKey)===F)||(o.value=[...o.value,z]):o.value=o.value.filter(Y=>lr(Y,v.rowKey)!==F)}function L(z){if(z){const Q=[...o.value];N.value.forEach(F=>{q(F)||Q.push(F)}),o.value=Q}else{const Q=new Set(N.value.map(F=>lr(F,v.rowKey)));o.value=o.value.filter(F=>!Q.has(lr(F,v.rowKey)))}}function A(){o.value=[]}const E=z=>v.rowClasses&&typeof v.rowClasses=="function"?v.rowClasses(z):v.rowClasses||"";function _(z){return typeof v.actions=="function"?v.actions(z):v.actions.filter(Q=>_i(Q,z))}function b(z){return ro(_(z),z,"row")}function y(z,Q){return ro(_(z),z,"cell",Q)}function w(z){const Q=S(z);Q&&!kr(Q,z)&&Q.handler(z)}function S(z){return _(z).find(F=>F.id==="edit")}function M(z,Q){const F=y(z,Q);for(const Y of F)kr(Y,z)||Y.handler(z)}async function B(z,Q=!1){const F=z[v.rowKey];if(g(z)||Q)c.value=c.value.filter(Y=>Y!==F);else if(c.value=[F],v.services.fetchDetails)try{z.details=await v.services.fetchDetails(z)}catch(Y){console.error("Error fetching details:",Y)}}async function O(z,Q){if(!kr(z,Q))try{z.isCancel&&await B(Q,!0),z.handler(Q)}catch(F){console.error(`Error executing action ${z.id}:`,F)}}function H(z){d.value=z.pagination,v.onRequest&&v.onRequest(z)}return I({clearSelection:A,getSelectedRows:()=>o.value,toggleRowSelection:W,toggleSelectAll:L,toggleColumnVisibility:e,resetColumns:r}),(z,Q)=>(k.openBlock(),k.createElementBlock(k.Fragment,null,[o.value.length>0?(k.openBlock(),k.createElementBlock("div",df,[k.createElementVNode("div",hf,[k.createVNode(ki,{color:"primary",class:"q-pa-xs"},{default:k.withCtx(()=>[k.createTextVNode(k.toDisplayString(o.value.length)+" sélectionné(s) ",1)]),_:1})]),k.createElementVNode("div",pf,[k.createElementVNode("div",mf,[k.renderSlot(z.$slots,"selection-actions",{selected:o.value,clearSelection:A},()=>[k.createVNode(ct,{dense:"",icon:"mdi-close",label:"Effacer",onClick:A,size:"sm"})],!0)])])])):k.createCommentVNode("",!0),z.showColumnToggle&&z.columns.length>0?(k.openBlock(),k.createElementBlock("div",gf,[Q[2]||(Q[2]=k.createElementVNode("div",{class:"col-auto q-mr-sm"},[k.createElementVNode("span",{class:"text-caption text-grey-7"},"Colonnes:")],-1)),k.createElementVNode("div",bf,[k.createElementVNode("div",vf,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(z.columns.filter(F=>!F.isSelectionColumn),F=>(k.openBlock(),k.createBlock(Do,{key:F.name,clickable:"",color:k.unref(s)(F.name)?"primary":"grey-5","text-color":"white",icon:k.unref(s)(F.name)?"visibility":"visibility_off",size:"sm",onClick:Y=>k.unref(e)(F.name)},{default:k.withCtx(()=>[k.createTextVNode(k.toDisplayString(F.label),1)]),_:2},1032,["color","icon","onClick"]))),128)),z.columnStorageKey?(k.openBlock(),k.createBlock(ct,{key:0,flat:"",dense:"",size:"sm",icon:"refresh",color:"grey",onClick:k.unref(r)},{default:k.withCtx(()=>[k.createVNode(dn,null,{default:k.withCtx(()=>Q[1]||(Q[1]=[k.createTextVNode("Réinitialiser les colonnes")])),_:1,__:[1]})]),_:1},8,["onClick"])):k.createCommentVNode("",!0)])])])):k.createCommentVNode("",!0),k.createVNode(sf,{pagination:d.value,"onUpdate:pagination":Q[0]||(Q[0]=F=>d.value=F),columns:T.value,rows:z.results,filter:z.filter,"row-key":z.rowKey,"binary-state-sort":"","rows-per-page-options":d.value.rowsPerPageOptions,onRequest:H,loading:z.loading,"hide-no-data":z.loading,class:"q-mb-xl",flat:"",bordered:""},{header:k.withCtx(F=>[k.createVNode(hn,{props:F},{default:k.withCtx(()=>[x.value?(k.openBlock(),k.createBlock(Lr,{key:0,"auto-width":"",class:"selection-column"},{default:k.withCtx(()=>[p.value==="multiple"?(k.openBlock(),k.createBlock(_r,{key:0,"model-value":P.value,indeterminate:V.value,"onUpdate:modelValue":L,disabled:z.loading||N.value.length===0,"data-cy":"select-all-checkbox",dense:"",size:"sm"},null,8,["model-value","indeterminate","disabled"])):k.createCommentVNode("",!0)]),_:1})):k.createCommentVNode("",!0),n.value?(k.openBlock(),k.createBlock(Lr,{key:1,"auto-width":"",class:"expand-column"})):k.createCommentVNode("",!0),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(F.cols.filter(Y=>!Y.isSelectionColumn),Y=>(k.openBlock(),k.createBlock(Lr,{key:Y.name,props:F,class:"column-header"},{default:k.withCtx(()=>[k.createElementVNode("div",yf,[k.createElementVNode("span",wf,k.toDisplayString(Y.label),1),z.showColumnToggle?(k.openBlock(),k.createBlock(ct,{key:0,flat:"",dense:"",size:"xs",icon:"close",onClick:k.withModifiers(j=>k.unref(e)(Y.name),["stop"]),class:"column-close-btn"},{default:k.withCtx(()=>[k.createVNode(dn,null,{default:k.withCtx(()=>Q[3]||(Q[3]=[k.createTextVNode("Cacher cette colonne")])),_:1,__:[3]})]),_:2},1032,["onClick"])):k.createCommentVNode("",!0)])]),_:2},1032,["props"]))),128)),C.value?(k.openBlock(),k.createBlock(Lr,{key:2,"auto-width":"",class:"actions-column"},{default:k.withCtx(()=>Q[4]||(Q[4]=[k.createTextVNode(" Actions ")])),_:1,__:[4]})):k.createCommentVNode("",!0)]),_:2},1032,["props"])]),body:k.withCtx(F=>[z.showSkeleton?(k.openBlock(),k.createElementBlock(k.Fragment,{key:0},k.renderList(5,Y=>k.createVNode(hn,{key:`skeleton-${Y}`},{default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(T.value.filter(j=>!j.isSelectionColumn),j=>(k.openBlock(),k.createBlock(ai,{key:j.name},{default:k.withCtx(()=>[k.createVNode(Zs,{type:"text"})]),_:2},1024))),128)),C.value?(k.openBlock(),k.createBlock(ai,{key:0},{default:k.withCtx(()=>[k.createVNode(Zs,{type:"QBtn"})]),_:1})):k.createCommentVNode("",!0)]),_:2},1024)),64)):(k.openBlock(),k.createBlock(hn,{key:1,"data-cy":`row-${F.row[z.rowKey]}`,props:F,class:k.normalizeClass([{"bg-grey-3":F.row.archived},E(F.row),q(F.row)?"selected-row":""]),onDblclick:Y=>w(F.row)},{default:k.withCtx(()=>[x.value?(k.openBlock(),k.createElementBlock("td",xf,[k.createVNode(_r,{"model-value":q(F.row),"onUpdate:modelValue":Y=>W(F.row,Y),disabled:!D(F.row),"data-cy":`row-checkbox-${F.row[z.rowKey]}`,dense:"",size:"sm"},null,8,["model-value","onUpdate:modelValue","disabled","data-cy"])])):k.createCommentVNode("",!0),n.value?(k.openBlock(),k.createElementBlock("td",Sf,[k.renderSlot(z.$slots,"expand-button",{row:F.row,expanded:g(F.row),toggle:()=>B(F.row)},()=>[f(F.row)?(k.openBlock(),k.createBlock(ct,{key:0,"data-cy":`expand-button-${F.row[z.rowKey]}`,size:"sm",color:"primary",round:"",dense:"",icon:g(F.row)?"remove":"add",onClick:Y=>B(F.row)},null,8,["data-cy","icon","onClick"])):k.createCommentVNode("",!0)],!0)])):k.createCommentVNode("",!0),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(F.cols.filter(Y=>!Y.isSelectionColumn),Y=>(k.openBlock(),k.createElementBlock("td",{key:Y.name,onClick:k.withModifiers(j=>M(F.row,Y.name),["stop"]),class:"data-cell"},[k.renderSlot(z.$slots,"body-cell",{row:F.row,col:Y,value:k.unref(qt)(F.row,Y).value,badgeConfig:k.unref(qt)(F.row,Y).badgeConfig},()=>[k.createElementVNode("div",_f,[k.unref(qt)(F.row,Y).badgeConfig?(k.openBlock(),k.createBlock(ki,{key:0,color:k.unref(qt)(F.row,Y).badgeConfig?.color,outline:k.unref(qt)(F.row,Y).badgeConfig?.outline,rounded:k.unref(qt)(F.row,Y).badgeConfig?.rounded,size:k.unref(qt)(F.row,Y).badgeConfig?.size,icon:k.unref(qt)(F.row,Y).badgeConfig?.icon,class:k.normalizeClass(k.unref(qt)(F.row,Y).badgeConfig?.class)},{default:k.withCtx(()=>[k.createTextVNode(k.toDisplayString(k.unref(qt)(F.row,Y).badgeConfig?.label),1)]),_:2},1032,["color","outline","rounded","size","icon","class"])):(k.openBlock(),k.createElementBlock("span",Cf,k.toDisplayString(k.unref(qt)(F.row,Y).value),1)),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(y(F.row,Y.name),j=>(k.openBlock(),k.createElementBlock(k.Fragment,{key:j.id},[j.isButton?(k.openBlock(),k.createBlock(ct,k.mergeProps({key:0,color:k.unref(mn)(j,F.row),size:j.size||"sm",class:j.class,disabled:k.unref(kr)(j,F.row),label:j.label},{ref_for:!0},j.buttonProps||{},{"data-cy":k.unref(gn)(j,F.row,z.rowKey),onClick:k.withModifiers(R=>O(j,F.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(k.openBlock(),k.createBlock(wt,{key:1,class:"cursor-pointer q-ml-sm",name:j.icon,color:k.unref(mn)(j,F.row),size:j.size||"20px","data-cy":k.unref(gn)(j,F.row,z.rowKey,"cell-icon"),onClick:k.withModifiers(R=>O(j,F.row),["stop"])},{default:k.withCtx(()=>[j.label?(k.openBlock(),k.createBlock(dn,{key:0},{default:k.withCtx(()=>[k.createTextVNode(k.toDisplayString(j.label),1)]),_:2},1024)):k.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))])],!0)],8,kf))),128)),k.createVNode(ai,{class:k.normalizeClass(["row items-center justify-center no-wrap actions-cell",E(F.row)])},{default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(b(F.row),Y=>(k.openBlock(),k.createElementBlock(k.Fragment,{key:Y.id},[Y.isButton?(k.openBlock(),k.createBlock(ct,k.mergeProps({key:0,color:k.unref(mn)(Y,F.row),size:Y.size||"sm",class:Y.class,disabled:k.unref(kr)(Y,F.row),label:Y.label},{ref_for:!0},Y.buttonProps||{},{"data-cy":k.unref(gn)(Y,F.row,z.rowKey),onClick:k.withModifiers(j=>O(Y,F.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(k.openBlock(),k.createBlock(wt,{key:1,class:"cursor-pointer q-mr-sm",name:Y.icon,color:k.unref(mn)(Y,F.row),size:Y.size||"25px","data-cy":k.unref(gn)(Y,F.row,z.rowKey,"icon"),onClick:k.withModifiers(j=>O(Y,F.row),["stop"])},{default:k.withCtx(()=>[Y.label?(k.openBlock(),k.createBlock(dn,{key:0},{default:k.withCtx(()=>[k.createTextVNode(k.toDisplayString(Y.label),1)]),_:2},1024)):k.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))]),_:2},1032,["class"])]),_:2},1032,["data-cy","props","class","onDblclick"])),n.value&&g(F.row)?(k.openBlock(),k.createBlock(hn,{key:2},{default:k.withCtx(()=>[k.createElementVNode("td",Af,[k.renderSlot(z.$slots,"expanded",{row:F.row},void 0,!0)])]),_:2},1024)):k.createCommentVNode("",!0)]),_:3},8,["pagination","columns","rows","filter","row-key","rows-per-page-options","loading","hide-no-data"])],64))}}),Mf=Kt(Ef,[["__scopeId","data-v-2f5107de"]]);var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tf(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function bn(l){throw new Error('Could not dynamically require "'+l+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var li={exports:{}};/*! ExcelJS 19-10-2023 */var no;function Rf(){return no||(no=1,function(l,I){(function(t){l.exports=t()})(function(){return function t(v,m,c){function o(e,r){if(!m[e]){if(!v[e]){var u=typeof bn=="function"&&bn;if(!r&&u)return u(e,!0);if(a)return a(e,!0);var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}var i=m[e]={exports:{}};v[e][0].call(i.exports,function(d){return o(v[e][1][d]||d)},i,i.exports,t,v,m,c)}return m[e].exports}for(var a=typeof bn=="function"&&bn,n=0;n<c.length;n++)o(c[n]);return o}({1:[function(t,v,m){const c=t("fs"),o=t("fast-csv"),a=t("dayjs/plugin/customParseFormat"),n=t("dayjs/plugin/utc"),e=t("dayjs").extend(a).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!"}};v.exports=class{constructor(i){this.workbook=i,this.worksheet=null}async readFile(i,d){if(d=d||{},!await u(i))throw new Error("File not found: "+i);const h=c.createReadStream(i),f=await this.read(h,d);return h.close(),f}read(i,d){return d=d||{},new Promise((h,f)=>{const g=this.workbook.addWorksheet(d.sheetName),p=d.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],x=d.map||function(T){if(T==="")return null;const D=Number(T);if(!Number.isNaN(D)&&D!==1/0)return D;const q=p.reduce((P,V)=>{if(P)return P;const W=e(T,V,!0);return W.isValid()?W:null},null);if(q)return new Date(q.valueOf());const N=s[T];return N!==void 0?N:T},C=o.parse(d.parserOptions).on("data",T=>{g.addRow(T.map(x))}).on("end",()=>{C.emit("worksheet",g)});C.on("worksheet",h).on("error",f),i.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(i,d){return new Promise((h,f)=>{d=d||{};const g=this.workbook.getWorksheet(d.sheetName||d.sheetId),p=o.format(d.formatterOptions);i.on("finish",()=>{h()}),p.on("error",f),p.pipe(i);const{dateFormat:x,dateUTC:C}=d,T=d.map||(N=>{if(N){if(N.text||N.hyperlink)return N.hyperlink||N.text||"";if(N.formula||N.result)return N.result||"";if(N instanceof Date)return x?C?e.utc(N).format(x):e(N).format(x):C?e.utc(N).format():e(N).format();if(N.error)return N.error;if(typeof N=="object")return JSON.stringify(N)}return N}),D=d.includeEmptyRows===void 0||d.includeEmptyRows;let q=1;g&&g.eachRow((N,P)=>{if(D)for(;q++<P-1;)p.write([]);const{values:V}=N;V.shift(),p.write(V.map(T)),q=P}),p.end()})}writeFile(i,d){const h={encoding:(d=d||{}).encoding||"utf8"},f=c.createWriteStream(i,h);return this.write(f,d)}async writeBuffer(i){const d=new r;return await this.write(d,i),d.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,v,m){const c=t("../utils/col-cache");class o{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 o||n==null?n:new o(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}}v.exports=o},{"../utils/col-cache":19}],3:[function(t,v,m){const c=t("../utils/col-cache"),o=t("../utils/under-dash"),a=t("./enums"),{slideFormula:n}=t("../utils/shared-formula"),e=t("./note");class r{constructor(i,d,h){if(!i||!d)throw new Error("A Cell needs a Row");this._row=i,this._column=d,c.validateAddress(h),this._address=h,this._value=u.create(r.Types.Null,this),this.style=this._mergeStyle(i.style,d.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(i){this.style.numFmt=i}get font(){return this.style.font}set font(i){this.style.font=i}get alignment(){return this.style.alignment}set alignment(i){this.style.alignment=i}get border(){return this.style.border}set border(i){this.style.border=i}get fill(){return this.style.fill}set fill(i){this.style.fill=i}get protection(){return this.style.protection}set protection(i){this.style.protection=i}_mergeStyle(i,d,h){const f=i&&i.numFmt||d&&d.numFmt;f&&(h.numFmt=f);const g=i&&i.font||d&&d.font;g&&(h.font=g);const p=i&&i.alignment||d&&d.alignment;p&&(h.alignment=p);const x=i&&i.border||d&&d.border;x&&(h.border=x);const C=i&&i.fill||d&&d.fill;C&&(h.fill=C);const T=i&&i.protection||d&&d.protection;return T&&(h.protection=T),h}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(i,d){this._value.release(),this._value=u.create(r.Types.Merge,this,i),d||(this.style=i.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(i){return this._value.type===r.Types.Merge&&this._value.isMergedTo(i)}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(i){this.type!==r.Types.Merge?(this._value.release(),this._value=u.create(u.getType(i),this,i)):this._value.master.value=i}get note(){return this._comment&&this._comment.note}set note(i){this._comment=new e(i)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(i){this.type===r.Types.String&&(this._value=u.create(r.Types.Hyperlink,this,{text:this._value.value,hyperlink:i}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:i}=this._row;return{sheetName:i.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(i){this.names=[i]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(i){const{definedNames:d}=this.workbook;d.removeAllNames(this.fullAddress),i.forEach(h=>{d.addEx(this.fullAddress,h)})}addName(i){this.workbook.definedNames.addEx(this.fullAddress,i)}removeName(i){this.workbook.definedNames.removeEx(this.fullAddress,i)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(i){this._dataValidations.add(this.address,i)}get model(){const{model:i}=this._value;return i.style=this.style,this._comment&&(i.comment=this._comment.model),i}set model(i){if(this._value.release(),this._value=u.create(i.type,this),this._value.model=i,i.comment)switch(i.comment.type){case"note":this._comment=e.fromModel(i.comment)}i.style?this.style=i.style:this.style={}}}r.Types=a.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,i){this.model={address:s.address,type:r.Types.Number,value:i}}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,i){this.model={address:s.address,type:r.Types.String,value:i}}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,i){this.model={address:s.address,type:r.Types.Date,value:i}}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,i){this.model={address:s.address,type:r.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.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,i){this.cell=s,this.model={address:s.address,type:r.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}_copyModel(s){const i={},d=h=>{const f=s[h];f&&(i[h]=f)};return d("formula"),d("result"),d("ref"),d("shareType"),d("sharedFormula"),i}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?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.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?a.ValueType.Null:s instanceof String||typeof s=="string"?a.ValueType.String:typeof s=="number"?a.ValueType.Number:s instanceof Date?a.ValueType.Date:s.text&&s.hyperlink?a.ValueType.Hyperlink:s.formula?a.ValueType.Formula:a.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,i=s.findCell(this.model.sharedFormula);this._translatedFormula=i&&n(i.formula,i.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,i){this.model={address:s.address,type:r.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.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,i){this.model={address:s.address,type:r.Types.String,value:JSON.stringify(i),rawValue:i}}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,i){this.model={address:s.address,type:r.Types.SharedString,value:i}}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,i){this.model={address:s.address,type:r.Types.String,value:i}}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,i){this.model={address:s.address,type:r.Types.Boolean,value:i}}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,i){this.model={address:s.address,type:r.Types.Error,value:i}}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,i)=>(s[i.t]=i.f,s),[]),create(s,i,d){const h=this.types[s];if(!h)throw new Error("Could not create Value of type "+s);return new h(i,d)}};v.exports=r},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,v,m){const c=t("../utils/under-dash"),o=t("./enums"),a=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 a.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,(i,d)=>{u(i.getCell(s),d)})}get values(){const r=[];return this.eachCell((u,s)=>{u&&u.type!==o.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((i,d)=>{this._worksheet.getCell(d+s,u).value=i})}_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((i,d)=>{i.isDefault?s&&(s=null):s&&i.equivalentTo(s)?s.max=d+1:(s={min:d+1,max:d+1,width:i.width!==void 0?i.width:9,style:i.style,isCustomWidth:i.isCustomWidth,hidden:i.hidden,outlineLevel:i.outlineLevel,collapsed:i.collapsed},u.push(s))}),u.length?u:void 0}static fromModel(r,u){const s=[];let i=1,d=0;for(u=(u=u||[]).sort(function(h,f){return h.min-f.min});d<u.length;){const h=u[d++];for(;i<h.min;)s.push(new n(r,i++));for(;i<=h.max;)s.push(new n(r,i++,h))}return s.length?s:null}}v.exports=n},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,v,m){v.exports=class{constructor(c){this.model=c||{}}add(c,o){return this.model[c]=o}find(c){return this.model[c]}remove(c){this.model[c]=void 0}}},{}],6:[function(t,v,m){const c=t("../utils/under-dash"),o=t("../utils/col-cache"),a=t("../utils/cell-matrix"),n=t("./range"),e=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;v.exports=class{constructor(){this.matrixMap={}}getMatrix(r){return this.matrixMap[r]||(this.matrixMap[r]=new a)}add(r,u){const s=o.decodeEx(r);this.addEx(s,u)}addEx(r,u){const s=this.getMatrix(u);if(r.top)for(let i=r.left;i<=r.right;i++)for(let d=r.top;d<=r.bottom;d++){const h={sheetName:r.sheetName,address:o.n2l(i)+d,row:d,col:i};s.addCellEx(h)}else s.addCellEx(r)}remove(r,u){const s=o.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(i=>{r(s,i)})})}getNames(r){return this.getNamesEx(o.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,i=new n(u.row,u.col,u.row,u.col,s);let d,h;function f(p,x){const C=r.findCellAt(s,p,u.col);return!(!C||!C.mark)&&(i[x]=p,C.mark=!1,!0)}for(h=u.row-1;f(h,"top");h--);for(h=u.row+1;f(h,"bottom");h++);function g(p,x){const C=[];for(h=i.top;h<=i.bottom;h++){const T=r.findCellAt(s,h,p);if(!T||!T.mark)return!1;C.push(T)}i[x]=p;for(let T=0;T<C.length;T++)C[T].mark=!1;return!0}for(d=u.col-1;g(d,"left");d--);for(d=u.col+1;g(d,"right");d++);return i}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,i,d)=>{s&&(s.row===i&&s.col===d||(s.row=i,s.col=d,s.address=o.n2l(d)+i))})}spliceRows(r,u,s,i){c.each(this.matrixMap,d=>{d.spliceRows(r,u,s,i),this.normaliseMatrix(d,r)})}spliceColumns(r,u,s,i){c.each(this.matrixMap,d=>{d.spliceColumns(r,u,s,i),this.normaliseMatrix(d,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 i=u[s.name]=new a;s.ranges.forEach(d=>{e.test(d.split("!").pop()||"")&&i.addCell(d)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,v,m){v.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,v,m){const c=t("../utils/col-cache"),o=t("./anchor");v.exports=class{constructor(a,n){this.worksheet=a,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(a){let{type:n,imageId:e,range:r,hyperlinks:u}=a;if(this.type=n,this.imageId=e,n==="image")if(typeof r=="string"){const s=c.decode(r);this.range={tl:new o(this.worksheet,{col:s.left,row:s.top},-1),br:new o(this.worksheet,{col:s.right,row:s.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,r.tl,0),br:r.br&&new o(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:u||r.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,v,m){const c=t("../utils/under-dash");class o{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({},o.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 o;return e.model=n,e}}o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},v.exports=o},{"../utils/under-dash":26}],10:[function(t,v,m){const c=t("../utils/col-cache");class o{constructor(){this.decode(arguments)}setTLBR(n,e,r,u,s){if(arguments.length<4){const i=c.decodeAddress(n),d=c.decodeAddress(e);this.model={top:Math.min(i.row,d.row),left:Math.min(i.col,d.col),bottom:Math.max(i.row,d.row),right:Math.max(i.col,d.col),sheetName:r},this.setTLBR(i.row,i.col,d.row,d.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 o)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)}}v.exports=o},{"../utils/col-cache":19}],11:[function(t,v,m){const c=t("../utils/under-dash"),o=t("./enums"),a=t("../utils/col-cache"),n=t("./cell");v.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:a.l2n(e)}return this._cells[e-1]||this.getCellEx({address:a.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,r){const u=e+r;for(var s=arguments.length,i=new Array(s>2?s-2:0),d=2;d<s;d++)i[d-2]=arguments[d];const h=i.length-r,f=this._cells.length;let g,p,x;if(h<0)for(g=e+i.length;g<=f;g++)x=this._cells[g-1],p=this._cells[g-h-1],p?(x=this.getCell(g),x.value=p.value,x.style=p.style,x._comment=p._comment):x&&(x.value=null,x.style={},x._comment=void 0);else if(h>0)for(g=f;g>=u;g--)p=this._cells[g-1],p?(x=this.getCell(g+h),x.value=p.value,x.style=p.style,x._comment=p._comment):this._cells[g+h-1]=void 0;for(g=0;g<i.length;g++)x=this.getCell(e+g),x.value=i[g],x.style={},x._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!==o.ValueType.Null&&r(u,s+1)})}addPageBreak(e,r){const u=this._worksheet,s=Math.max(0,e-1)||0,i=Math.max(0,r-1)||16838,d={id:this._number,max:i,man:1};s&&(d.min=s),u.rowBreaks.push(d)}get values(){const e=[];return this._cells.forEach(r=>{r&&r.type!==o.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:a.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:a.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!==o.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!==o.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 i=s.model;i&&((!r||r>s.col)&&(r=s.col),u<s.col&&(u=s.col),e.push(i))}}),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=a.decodeAddress(u.address);else if(r){const{row:i}=r,d=r.col+1;s={row:i,col:d,address:a.encodeAddress(i,d),$col$row:`$${a.n2l(d)}$${i}`}}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,v,m){const c=t("../utils/col-cache");class o{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)}}v.exports=class{constructor(a,n){this.worksheet=a,n&&(this.table=n,this.validate(),this.store())}getFormula(a){switch(a.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${a.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${a.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${a.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${a.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${a.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${a.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${a.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${a.name}])`;case"custom":return a.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+a.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:a}=this,n=(h,f,g)=>{h[f]===void 0&&(h[f]=g)};n(a,"headerRow",!0),n(a,"totalsRow",!1),n(a,"style",{}),n(a.style,"theme","TableStyleMedium2"),n(a.style,"showFirstColumn",!1),n(a.style,"showLastColumn",!1),n(a.style,"showRowStripes",!1),n(a.style,"showColumnStripes",!1);const e=(h,f)=>{if(!h)throw new Error(f)};e(a.ref,"Table must have ref"),e(a.columns,"Table must have column definitions"),e(a.rows,"Table must have row definitions"),a.tl=c.decodeAddress(a.ref);const{row:r,col:u}=a.tl;e(r>0,"Table must be on valid row"),e(u>0,"Table must be on valid col");const{width:s,filterHeight:i,tableHeight:d}=this;a.autoFilterRef=c.encode(r,u,r+i-1,u+s-1),a.tableRef=c.encode(r,u,r+d-1,u+s-1),a.columns.forEach((h,f)=>{e(h.name,`Column ${f} must have a name`),f===0?n(h,"totalsRowLabel","Total"):(n(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const a=(i,d)=>{d&&Object.keys(d).forEach(h=>{i[h]=d[h]})},{worksheet:n,table:e}=this,{row:r,col:u}=e.tl;let s=0;if(e.headerRow){const i=n.getRow(r+s++);e.columns.forEach((d,h)=>{const{style:f,name:g}=d,p=i.getCell(u+h);p.value=g,a(p,f)})}if(e.rows.forEach(i=>{const d=n.getRow(r+s++);i.forEach((h,f)=>{const g=d.getCell(u+f);g.value=h,a(g,e.columns[f].style)})}),e.totalsRow){const i=n.getRow(r+s++);e.columns.forEach((d,h)=>{const f=i.getCell(u+h);if(h===0)f.value=d.totalsRowLabel;else{const g=this.getFormula(d);f.value=g?{formula:d.totalsRowFormula,result:d.totalsRowResult}:null}a(f,d.style)})}}load(a){const{table:n}=this,{row:e,col:r}=n.tl;let u=0;if(n.headerRow){const s=a.getRow(e+u++);n.columns.forEach((i,d)=>{s.getCell(r+d).value=i.name})}if(n.rows.forEach(s=>{const i=a.getRow(e+u++);s.forEach((d,h)=>{i.getCell(r+h).value=d})}),n.totalsRow){const s=a.getRow(e+u++);n.columns.forEach((i,d)=>{const h=s.getCell(r+d);d===0?h.value=i.totalsRowLabel:this.getFormula(i)&&(h.value={formula:i.totalsRowFormula,result:i.totalsRowResult})})}}get model(){return this.table}set model(a){this.table=a}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const a=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(a.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(a.col+r).value=null}else{for(let n=this.tableHeight;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(a.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(a.col+r).value=null}for(let n=0;n<this.tableHeight;n++){const e=this.worksheet.getRow(a.row+n);for(let r=this.width;r<this._cache.width;r++)e.getCell(a.col+r).value=null}}this.store()}addRow(a,n){this.cacheState(),n===void 0?this.table.rows.push(a):this.table.rows.splice(n,0,a)}removeRows(a){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(a,n)}getColumn(a){const n=this.table.columns[a];return new o(this,n,a)}addColumn(a,n,e){this.cacheState(),e===void 0?(this.table.columns.push(a),this.table.rows.forEach((r,u)=>{r.push(n[u])})):(this.table.columns.splice(e,0,a),this.table.rows.forEach((r,u)=>{r.splice(e,0,n[u])}))}removeColumns(a){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(a,n),this.table.rows.forEach(e=>{e.splice(a,n)})}_assign(a,n,e){this.cacheState(),a[n]=e}get ref(){return this.table.ref}set ref(a){this._assign(this.table,"ref",a)}get name(){return this.table.name}set name(a){this.table.name=a}get displayName(){return this.table.displyName||this.table.name}set displayNamename(a){this.table.displayName=a}get headerRow(){return this.table.headerRow}set headerRow(a){this._assign(this.table,"headerRow",a)}get totalsRow(){return this.table.totalsRow}set totalsRow(a){this._assign(this.table,"totalsRow",a)}get theme(){return this.table.style.name}set theme(a){this.table.style.name=a}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(a){this.table.style.showFirstColumn=a}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(a){this.table.style.showLastColumn=a}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(a){this.table.style.showRowStripes=a}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(a){this.table.style.showColumnStripes=a}}},{"../utils/col-cache":19}],13:[function(t,v,m){const c=t("./worksheet"),o=t("./defined-names"),a=t("../xlsx/xlsx"),n=t("../csv/csv");v.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 o}get xlsx(){return this._xlsx||(this._xlsx=new a(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((h,f)=>(f&&f.orderNo)>h?f.orderNo:h,0),i=Object.assign({},r,{id:u,name:e,orderNo:s+1,workbook:this}),d=new c(i);return this._worksheets[u]=d,d}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:i}=r,d=e.sheets&&e.sheets.findIndex(h=>h.id===u);(this._worksheets[u]=new c({id:u,name:s,orderNo:d,state:i,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,v,m){const c=t("../utils/under-dash"),o=t("../utils/col-cache"),a=t("./range"),n=t("./row"),e=t("./column"),r=t("./enums"),u=t("./image"),s=t("./table"),i=t("./data-validations"),d=t("../utils/encryptor"),{copyStyle:h}=t("../utils/copy-style");v.exports=class{constructor(f){f=f||{},this._workbook=f.workbook,this.id=f.id,this.orderNo=f.orderNo,this.name=f.name,this.state=f.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},f.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:!(!f.pageSetup||!f.pageSetup.fitToWidth&&!f.pageSetup.fitToHeight||f.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},f.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},f.headerFooter),this.dataValidations=new i,this.views=f.views||[],this.autoFilter=f.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(f){if(f===void 0&&(f="sheet"+this.id),this._name!==f){if(typeof f!="string")throw new Error("The name has to be a string.");if(f==="")throw new Error("The name can't be empty.");if(f==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(f))throw new Error(`Worksheet name ${f} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(f))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+f);if(f&&f.length>31&&(console.warn(`Worksheet name ${f} exceeds 31 chars. This will be truncated`),f=f.substring(0,31)),this._workbook._worksheets.find(g=>g&&g.name.toLowerCase()===f.toLowerCase()))throw new Error("Worksheet name already exists: "+f);this._name=f}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const f=new a;return this._rows.forEach(g=>{if(g){const p=g.dimensions;p&&f.expand(g.number,p.min,g.number,p.max)}}),f}get columns(){return this._columns}set columns(f){this._headerRowCount=f.reduce((x,C)=>{const T=(C.header?1:C.headers&&C.headers.length)||0;return Math.max(x,T)},0);let g=1;const p=this._columns=[];f.forEach(x=>{const C=new e(this,g++,!1);p.push(C),C.defn=x})}getColumnKey(f){return this._keys[f]}setColumnKey(f,g){this._keys[f]=g}deleteColumnKey(f){delete this._keys[f]}eachColumnKey(f){c.each(this._keys,f)}getColumn(f){if(typeof f=="string"){const g=this._keys[f];if(g)return g;f=o.l2n(f)}if(this._columns||(this._columns=[]),f>this._columns.length){let g=this._columns.length+1;for(;g<=f;)this._columns.push(new e(this,g++))}return this._columns[f-1]}spliceColumns(f,g){const p=this._rows.length;for(var x=arguments.length,C=new Array(x>2?x-2:0),T=2;T<x;T++)C[T-2]=arguments[T];if(C.length>0)for(let P=0;P<p;P++){const V=[f,g];C.forEach(L=>{V.push(L[P]||null)});const W=this.getRow(P+1);W.splice.apply(W,V)}else this._rows.forEach(P=>{P&&P.splice(f,g)});const D=C.length-g,q=f+g,N=this._columns.length;if(D<0)for(let P=f+C.length;P<=N;P++)this.getColumn(P).defn=this.getColumn(P-D).defn;else if(D>0)for(let P=N;P>=q;P--)this.getColumn(P+D).defn=this.getColumn(P).defn;for(let P=f;P<f+C.length;P++)this.getColumn(P).defn=null;this.workbook.definedNames.spliceColumns(this.name,f,g,C.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let f=0;return this.eachRow(g=>{f=Math.max(f,g.cellCount)}),f}get actualColumnCount(){const f=[];let g=0;return this.eachRow(p=>{p.eachCell(x=>{let{col:C}=x;f[C]||(f[C]=!0,g++)})}),g}_commitRow(){}get _lastRowNumber(){const f=this._rows;let g=f.length;for(;g>0&&f[g-1]===void 0;)g--;return g}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(f){return this._rows[f-1]}findRows(f,g){return this._rows.slice(f-1,f-1+g)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let f=0;return this.eachRow(()=>{f++}),f}getRow(f){let g=this._rows[f-1];return g||(g=this._rows[f-1]=new n(this,f)),g}getRows(f,g){if(g<1)return;const p=[];for(let x=f;x<f+g;x++)p.push(this.getRow(x));return p}addRow(f){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=this._nextRow,x=this.getRow(p);return x.values=f,this._setStyleOption(p,g[0]==="i"?g:"n"),x}addRows(f){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=[];return f.forEach(x=>{p.push(this.addRow(x,g))}),p}insertRow(f,g){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(f,0,g),this._setStyleOption(f,p),this.getRow(f)}insertRows(f,g){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(f,0,...g),p!=="n")for(let x=0;x<g.length;x++)p[0]==="o"&&this.findRow(g.length+f+x)!==void 0?this._copyStyle(g.length+f+x,f+x,p[1]==="+"):p[0]==="i"&&this.findRow(f-1)!==void 0&&this._copyStyle(f-1,f+x,p[1]==="+");return this.getRows(f,g.length)}_setStyleOption(f){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";g[0]==="o"&&this.findRow(f+1)!==void 0?this._copyStyle(f+1,f,g[1]==="+"):g[0]==="i"&&this.findRow(f-1)!==void 0&&this._copyStyle(f-1,f,g[1]==="+")}_copyStyle(f,g){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const x=this.getRow(f),C=this.getRow(g);C.style=h(x.style),x.eachCell({includeEmpty:p},(T,D)=>{C.getCell(D).style=h(T.style)}),C.height=x.height}duplicateRow(f,g){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const x=this._rows[f-1],C=new Array(g).fill(x.values);this.spliceRows(f+1,p?0:g,...C);for(let T=0;T<g;T++){const D=this._rows[f+T];D.style=x.style,D.height=x.height,x.eachCell({includeEmpty:!0},(q,N)=>{D.getCell(N).style=q.style})}}spliceRows(f,g){const p=f+g;for(var x=arguments.length,C=new Array(x>2?x-2:0),T=2;T<x;T++)C[T-2]=arguments[T];const D=C.length,q=D-g,N=this._rows.length;let P,V;if(q<0)for(f===N&&(this._rows[N-1]=void 0),P=p;P<=N;P++)if(V=this._rows[P-1],V){const W=this.getRow(P+q);W.values=V.values,W.style=V.style,W.height=V.height,V.eachCell({includeEmpty:!0},(L,A)=>{W.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=N;P>=p;P--)if(V=this._rows[P-1],V){const W=this.getRow(P+q);W.values=V.values,W.style=V.style,W.height=V.height,V.eachCell({includeEmpty:!0},(L,A)=>{if(W.getCell(A).style=L.style,L._value.constructor.name==="MergeValue"){const E=this.getRow(L._row._number+D).getCell(A),_=L._value._master,b=this.getRow(_._row._number+D).getCell(_._column._number);E.merge(b)}})}else this._rows[P+q-1]=void 0;for(P=0;P<D;P++){const W=this.getRow(f+P);W.style={},W.values=C[P]}this.workbook.definedNames.spliceRows(this.name,f,g,D)}eachRow(f,g){if(g||(g=f,f=void 0),f&&f.includeEmpty){const p=this._rows.length;for(let x=1;x<=p;x++)g(this.getRow(x),x)}else this._rows.forEach(p=>{p&&p.hasValues&&g(p,p.number)})}getSheetValues(){const f=[];return this._rows.forEach(g=>{g&&(f[g.number]=g.values)}),f}findCell(f,g){const p=o.getAddress(f,g),x=this._rows[p.row-1];return x?x.findCell(p.col):void 0}getCell(f,g){const p=o.getAddress(f,g);return this.getRow(p.row).getCellEx(p)}mergeCells(){for(var f=arguments.length,g=new Array(f),p=0;p<f;p++)g[p]=arguments[p];const x=new a(g);this._mergeCellsInternal(x)}mergeCellsWithoutStyle(){for(var f=arguments.length,g=new Array(f),p=0;p<f;p++)g[p]=arguments[p];const x=new a(g);this._mergeCellsInternal(x,!0)}_mergeCellsInternal(f,g){c.each(this._merges,x=>{if(x.intersects(f))throw new Error("Cannot merge already merged cells")});const p=this.getCell(f.top,f.left);for(let x=f.top;x<=f.bottom;x++)for(let C=f.left;C<=f.right;C++)(x>f.top||C>f.left)&&this.getCell(x,C).merge(p,g);this._merges[p.address]=f}_unMergeMaster(f){const g=this._merges[f.address];if(g){for(let p=g.top;p<=g.bottom;p++)for(let x=g.left;x<=g.right;x++)this.getCell(p,x).unmerge();delete this._merges[f.address]}}get hasMerges(){return c.some(this._merges,Boolean)}unMergeCells(){for(var f=arguments.length,g=new Array(f),p=0;p<f;p++)g[p]=arguments[p];const x=new a(g);for(let C=x.top;C<=x.bottom;C++)for(let T=x.left;T<=x.right;T++){const D=this.findCell(C,T);D&&(D.type===r.ValueType.Merge?this._unMergeMaster(D.master):this._merges[D.address]&&this._unMergeMaster(D))}}fillFormula(f,g,p){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const C=o.decode(f),{top:T,left:D,bottom:q,right:N}=C,P=N-D+1,V=o.encodeAddress(T,D),W=x==="shared";let L;L=typeof p=="function"?p:Array.isArray(p)?Array.isArray(p[0])?(E,_)=>p[E-T][_-D]:(E,_)=>p[(E-T)*P+(_-D)]:()=>{};let A=!0;for(let E=T;E<=q;E++)for(let _=D;_<=N;_++)A?(this.getCell(E,_).value={shareType:x,formula:g,ref:f,result:L(E,_)},A=!1):this.getCell(E,_).value=W?{sharedFormula:V,result:L(E,_)}:L(E,_)}addImage(f,g){const p={type:"image",imageId:f,range:g};this._media.push(new u(this,p))}getImages(){return this._media.filter(f=>f.type==="image")}addBackgroundImage(f){const g={type:"background",imageId:f};this._media.push(new u(this,g))}getBackgroundImageId(){const f=this._media.find(g=>g.type==="background");return f&&f.imageId}protect(f,g){return new Promise(p=>{this.sheetProtection={sheet:!0},g&&"spinCount"in g&&(g.spinCount=Number.isFinite(g.spinCount)?Math.round(Math.max(0,g.spinCount)):1e5),f&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=d.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=g&&"spinCount"in g?g.spinCount:1e5,this.sheetProtection.hashValue=d.convertPasswordToHash(f,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),g&&(this.sheetProtection=Object.assign(this.sheetProtection,g),!f&&"spinCount"in g&&delete this.sheetProtection.spinCount),p()})}unprotect(){this.sheetProtection=null}addTable(f){const g=new s(this,f);return this.tables[f.name]=g,g}getTable(f){return this.tables[f]}removeTable(f){delete this.tables[f]}getTables(){return Object.values(this.tables)}addConditionalFormatting(f){this.conditionalFormattings.push(f)}removeConditionalFormatting(f){typeof f=="number"?this.conditionalFormattings.splice(f,1):this.conditionalFormattings=f instanceof Function?this.conditionalFormattings.filter(f):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(f){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=f}get model(){const f={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(x=>x.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(x=>x.model),conditionalFormattings:this.conditionalFormattings};f.cols=e.toModel(this.columns);const g=f.rows=[],p=f.dimensions=new a;return this._rows.forEach(x=>{const C=x&&x.model;C&&(p.expand(C.number,C.min,C.number,C.max),g.push(C))}),f.merges=[],c.each(this._merges,x=>{f.merges.push(x.range)}),f}_parseRows(f){this._rows=[],f.rows.forEach(g=>{const p=new n(this,g.number);this._rows[p.number-1]=p,p.model=g})}_parseMergeCells(f){c.each(f.mergeCells,g=>{this.mergeCellsWithoutStyle(g)})}set model(f){this.name=f.name,this._columns=e.fromModel(this,f.cols),this._parseRows(f),this._parseMergeCells(f),this.dataValidations=new i(f.dataValidations),this.properties=f.properties,this.pageSetup=f.pageSetup,this.headerFooter=f.headerFooter,this.views=f.views,this.autoFilter=f.autoFilter,this._media=f.media.map(g=>new u(this,g)),this.sheetProtection=f.sheetProtection,this.tables=f.tables.reduce((g,p)=>{const x=new s;return x.model=p,g[p.name]=x,g},{}),this.conditionalFormattings=f.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,v,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")},o=t("./doc/enums");Object.keys(o).forEach(a=>{c[a]=o[a]}),v.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,v,m){const c=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");m.bufferToString=function(o){return typeof o=="string"?o:c?c.decode(o):o.toString()}},{}],17:[function(t,v,m){const c=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:o}=t("buffer");m.stringToBuffer=function(a){return typeof a!="string"?a:c?o.from(c.encode(a).buffer):o.from(a)}},{buffer:220}],18:[function(t,v,m){const c=t("./under-dash"),o=t("./col-cache");v.exports=class{constructor(a){this.template=a,this.sheets={}}addCell(a){this.addCellEx(o.decodeEx(a))}getCell(a){return this.findCellEx(o.decodeEx(a),!0)}findCell(a){return this.findCellEx(o.decodeEx(a),!1)}findCellAt(a,n,e){const r=this.sheets[a],u=r&&r[n];return u&&u[e]}addCellEx(a){if(a.top)for(let n=a.top;n<=a.bottom;n++)for(let e=a.left;e<=a.right;e++)this.getCellAt(a.sheetName,n,e);else this.findCellEx(a,!0)}getCellEx(a){return this.findCellEx(a,!0)}findCellEx(a,n){const e=this.findSheet(a,n),r=this.findSheetRow(e,a,n);return this.findRowCell(r,a,n)}getCellAt(a,n,e){const r=this.sheets[a]||(this.sheets[a]=[]),u=r[n]||(r[n]=[]);return u[e]||(u[e]={sheetName:a,address:o.n2l(e)+n,row:n,col:e})}removeCellEx(a){const n=this.findSheet(a);if(!n)return;const e=this.findSheetRow(n,a);e&&delete e[a.col]}forEachInSheet(a,n){const e=this.sheets[a];e&&e.forEach((r,u)=>{r&&r.forEach((s,i)=>{s&&n(s,u,i)})})}forEach(a){c.each(this.sheets,(n,e)=>{this.forEachInSheet(e,a)})}map(a){const n=[];return this.forEach(e=>{n.push(a(e))}),n}findSheet(a,n){const e=a.sheetName;return this.sheets[e]?this.sheets[e]:n?this.sheets[e]=[]:void 0}findSheetRow(a,n,e){const{row:r}=n;return a&&a[r]?a[r]:e?a[r]=[]:void 0}findRowCell(a,n,e){const{col:r}=n;return a&&a[r]?a[r]:e?a[r]=this.template?Object.assign(n,JSON.parse(JSON.stringify(this.template))):n:void 0}spliceRows(a,n,e,r){const u=this.sheets[a];if(u){const s=[];for(let i=0;i<r;i++)s.push([]);u.splice(n,e,...s)}}spliceColumns(a,n,e,r){const u=this.sheets[a];if(u){const s=[];for(let i=0;i<r;i++)s.push(null);c.each(u,i=>{i.splice(n,e,...s)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,v,m){const c=/^[A-Z]+\d+$/,o={_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:a=>a<=26?1:a<=676?2:3,_fill(a){let n,e,r,u,s,i=1;if(a>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&a>=1){for(;i<=26;)n=this._dictionary[i-1],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=1}if(this._l2nFill<2&&a>=2){for(i=27;i<=702;)e=i-27,r=e%26,u=Math.floor(e/26),n=this._dictionary[u]+this._dictionary[r],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=2}if(this._l2nFill<3&&a>=3){for(i=703;i<=16384;)e=i-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[i]=n,this._l2n[n]=i,i++;this._l2nFill=3}},l2n(a){if(this._l2n[a]||this._fill(a.length),!this._l2n[a])throw new Error("Out of bounds. Invalid column letter: "+a);return this._l2n[a]},n2l(a){if(a<1||a>16384)throw new Error(a+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[a]||this._fill(this._level(a)),this._n2l[a]},_hash:{},validateAddress(a){if(!c.test(a))throw new Error("Invalid Address: "+a);return!0},decodeAddress(a){const n=a.length<5&&this._hash[a];if(n)return n;let e=!1,r="",u=0,s=!1,i="",d=0;for(let f,g=0;g<a.length;g++)if(f=a.charCodeAt(g),!s&&f>=65&&f<=90)e=!0,r+=a[g],u=26*u+f-64;else if(f>=48&&f<=57)s=!0,i+=a[g],d=10*d+f-48;else if(s&&e&&f!==36)break;if(e){if(u>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else u=void 0;s||(d=void 0);const h={address:a=r+i,col:u,row:d,$col$row:`$${r}$${i}`};return u<=100&&d<=100&&(this._hash[a]=h,this._hash[h.$col$row]=h),h},getAddress(a,n){if(n){const e=this.n2l(n)+a;return this.decodeAddress(e)}return this.decodeAddress(a)},decode(a){const n=a.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(a)},decodeEx(a){const n=a.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),e=n[1]||n[2],r=n[3],u=r.split(":");if(u.length>1){let i=this.decodeAddress(u[0]),d=this.decodeAddress(u[1]);const h=Math.min(i.row,d.row),f=Math.min(i.col,d.col),g=Math.max(i.row,d.row),p=Math.max(i.col,d.col);return i=this.n2l(f)+h,d=this.n2l(p)+g,{top:h,left:f,bottom:g,right:p,sheetName:e,tl:{address:i,col:f,row:h,$col$row:`$${this.n2l(f)}$${h}`,sheetName:e},br:{address:d,col:p,row:g,$col$row:`$${this.n2l(p)}$${g}`,sheetName:e},dimensions:`${i}:${d}`}}if(r.startsWith("#"))return e?{sheetName:e,error:r}:{error:r};const s=this.decodeAddress(r);return e?{sheetName:e,...s}:s},encodeAddress:(a,n)=>o.n2l(n)+a,encode(){switch(arguments.length){case 2:return o.encodeAddress(arguments[0],arguments[1]);case 4:return`${o.encodeAddress(arguments[0],arguments[1])}:${o.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(a,n){const[e,r,,u,s]=a,[i,d]=n;return i>=e&&i<=u&&d>=r&&d<=s}};v.exports=o},{}],20:[function(t,v,m){const c=(a,n)=>({...a,...n.reduce((e,r)=>(a[r]&&(e[r]={...a[r]}),e),{})}),o=function(a,n,e){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];a[e]&&(n[e]=c(a[e],r))};m.copyStyle=a=>{if(!a)return a;if(n=a,Object.keys(n).length===0)return{};var n;const e={...a};return o(a,e,"font",["color"]),o(a,e,"alignment"),o(a,e,"protection"),a.border&&(o(a,e,"border"),o(a.border,e.border,"top",["color"]),o(a.border,e.border,"left",["color"]),o(a.border,e.border,"bottom",["color"]),o(a.border,e.border,"right",["color"]),o(a.border,e.border,"diagonal",["color"])),a.fill&&(o(a,e,"fill",["fgColor","bgColor","center"]),a.fill.stops&&(e.fill.stops=a.fill.stops.map(r=>c(r,["color"])))),e}},{}],21:[function(t,v,m){(function(c){(function(){const o=t("crypto"),a={hash(n){const e=o.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(),o.getHashes().indexOf(e)<0)throw new Error(`Hash algorithm '${e}' not supported!`);const s=c.from(n,"utf16le");let i=this.hash(e,c.from(r,"base64"),s);for(let d=0;d<u;d++){const h=c.alloc(4);h.writeUInt32LE(d,0),i=this.hash(e,i,h)}return i.toString("base64")},randomBytes:n=>o.randomBytes(n)};v.exports=a}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,v,m){const{SaxesParser:c}=t("saxes"),{PassThrough:o}=t("readable-stream"),{bufferToString:a}=t("./browser-buffer-decode");v.exports=async function*(n){n.pipe&&!n[Symbol.asyncIterator]&&(n=n.pipe(new o));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(a(s)),r)throw r;yield u,u=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,v,m){const c=t("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;v.exports={slideFormula:function(n,e,r){const u=c.decode(e),s=c.decode(r);return n.replace(o,(i,d,h,f,g)=>{if(g)return i;const p=a.exec(f);if(p){const x=p[1],C=p[2].toUpperCase(),T=p[3],D=p[4];if(C.length>3||C.length===3&&C>"XFD")return i;let q=c.l2n(C),N=parseInt(D,10);return x||(q+=s.col-u.col),T||(N+=s.row-u.row),(d||"")+(x||"")+c.n2l(q)+(T||"")+N}return i})}}},{"./col-cache":19}],24:[function(t,v,m){(function(c,o){(function(){const a=t("readable-stream"),n=t("./utils"),e=t("./string-buf");class r{constructor(f,g){this._data=f,this._encoding=g}get length(){return this.toBuffer().length}copy(f,g,p,x){return this.toBuffer().copy(f,g,p,x)}toBuffer(){return this._buffer||(this._buffer=o.from(this._data,this._encoding)),this._buffer}}class u{constructor(f){this._data=f}get length(){return this._data.length}copy(f,g,p,x){return this._data._buf.copy(f,g,p,x)}toBuffer(){return this._data.toBuffer()}}class s{constructor(f){this._data=f}get length(){return this._data.length}copy(f,g,p,x){this._data.copy(f,g,p,x)}toBuffer(){return this._data}}class i{constructor(f){this.size=f,this.buffer=o.alloc(f),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const f=o.alloc(this.iWrite-this.iRead);return this.buffer.copy(f,0,this.iRead,this.iWrite),f}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(f){let g;return f===0?null:f===void 0||f>=this.length?(g=this.toBuffer(),this.iRead=this.iWrite,g):(g=o.alloc(f),this.buffer.copy(g,0,this.iRead,f),this.iRead+=f,g)}write(f,g,p){const x=Math.min(p,this.size-this.iWrite);return f.copy(this.buffer,this.iWrite,g,g+x),this.iWrite+=x,x}}const d=function(h){h=h||{},this.bufSize=h.bufSize||1048576,this.buffers=[],this.batch=h.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};n.inherits(d,a.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return o.concat(this.buffers.map(h=>h.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const f=this.buffers[this.buffers.length-1];if(!f.full)return f}const h=new i(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(f){return new Promise(g=>{f.write(h.toBuffer(),()=>{g()})})}))},_writeToBuffers(h){let f=0;const g=h.length;for(;f<g;)f+=this._getWritableBuffer().write(h,f,g-f)},async write(h,f,g){let p;if(f instanceof Function&&(g=f,f="utf8"),g=g||n.nop,h instanceof e)p=new u(h);else if(h instanceof o)p=new s(h);else{if(!(typeof h=="string"||h instanceof String||h instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");p=new r(h,f)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(p);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(p),c.nextTick(g)):(await this._pipe(p),g());else this.paused||this.emit("data",p.toBuffer()),this._writeToBuffers(p),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(h,f,g){const p=x=>{x?g(x):(this._flush(),this.pipes.forEach(C=>{C.end()}),this.emit("finish"))};h?this.write(h,f,p):p()},read(h){let f;if(h){for(f=[];h&&this.buffers.length&&!this.buffers[0].eod;){const g=this.buffers[0],p=g.read(h);h-=p.length,f.push(p),g.eod&&g.full&&this.buffers.shift()}return o.concat(f)}return f=this.buffers.map(g=>g.toBuffer()).filter(Boolean),this.buffers=[],o.concat(f)},setEncoding(h){this.encoding=h},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(h){this.pipes.push(h),!this.paused&&this.buffers.length&&this.end()},unpipe(h){this.pipes=this.pipes.filter(f=>f!==h)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),v.exports=d}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,v,m){(function(c){(function(){v.exports=class{constructor(o){this._buf=c.alloc(o&&o.size||16384),this._encoding=o&&o.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(o){o=o||0,this._buffer=void 0,this._inPos=o}_grow(o){let a=2*this._buf.length;for(;a<o;)a*=2;const n=c.alloc(a);this._buf.copy(n,0),this._buf=n}addText(o){this._buffer=void 0;let a=this._inPos+this._buf.write(o,this._inPos,this._encoding);for(;a>=this._buf.length-4;)this._grow(this._inPos+o.length),a=this._inPos+this._buf.write(o,this._inPos,this._encoding);this._inPos=a}addStringBuf(o){o.length&&(this._buffer=void 0,this.length+o.length>this.capacity&&this._grow(this.length+o.length),o._buf.copy(this._buf,this._inPos,0,o.length),this._inPos+=o.length)}}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,v,m){const{toString:c}=Object.prototype,o=/["&<>]/,a={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),i=Array.isArray(e);let d;if(r!==u)return!1;switch(typeof n){case"object":if(s||i)return!(!s||!i)&&n.length===e.length&&n.every((h,f)=>{const g=e[f];return a.isEqual(h,g)});if(n===null||e===null)return n===e;if(d=Object.keys(n),Object.keys(e).length!==d.length)return!1;for(const h of d)if(!e.hasOwnProperty(h))return!1;return a.every(n,(h,f)=>{const g=e[f];return a.isEqual(h,g)});default:return n===e}},escapeHtml(n){const e=o.exec(n);if(!e)return n;let r="",u="",s=0,i=e.index;for(;i<n.length;i++){switch(n.charAt(i)){case'"':u=""";break;case"&":u="&";break;case"'":u="'";break;case"<":u="<";break;case">":u=">";break;default:continue}s!==i&&(r+=n.substring(s,i)),s=i+1,r+=u}return s!==i?r+n.substring(s,i):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 i(d,h){r=n[h],s=Array.isArray(d),a.isObject(d)||s?(s?(s=!1,u=r&&Array.isArray(r)?r:[]):u=r&&a.isObject(r)?r:{},n[h]=a.deepMerge(u,d)):a.isUndefined(d)||(n[h]=d)}for(let d=0;d<e;d++)a.each(arguments[d],i);return n}};v.exports=a},{}],27:[function(t,v,m){(function(c,o){(function(){const a=t("fs"),n=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:r=>new Promise(u=>{c.setImmediate?o(()=>{u(r)}):setTimeout(()=>{u(r)},1)}),inherits:function(r,u,s,i){r.super_=u,i||(i=s,s=null),s&&Object.keys(s).forEach(h=>{Object.defineProperty(r,h,Object.getOwnPropertyDescriptor(s,h))});const d={constructor:{value:r,enumerable:!1,writable:!1,configurable:!0}};i&&Object.keys(i).forEach(h=>{d[h]=Object.getOwnPropertyDescriptor(i,h)}),r.prototype=Object.create(u.prototype,d)},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="",i="",d=0,h=u.index;for(;h<r.length;h++){const f=r.charCodeAt(h);switch(f){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;case 127:i="";break;default:if(f<=31&&(f<=8||f>=11&&f!==13)){i="";break}continue}d!==h&&(s+=r.substring(d,h)),d=h+1,i&&(s+=i)}return d!==h?s+r.substring(d,h):s},xmlDecode:r=>r.replace(/&([a-z]*);/g,u=>{switch(u){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":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=>{a.access(r,a.constants.F_OK,s=>{u(!s)})})},toIsoDateString:r=>r.toIsoString().subsstr(0,10),parseBoolean:r=>r===!0||r==="true"||r===1||r==="1"};v.exports=e}).call(this)}).call(this,typeof lt<"u"?lt:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,v,m){const c=t("./under-dash"),o=t("./utils");function a(r,u,s){r.push(` ${u}="${o.xmlEncode(s.toString())}"`)}function n(r,u){if(u){const s=[];c.each(u,(i,d)=>{i!==void 0&&a(s,d,i)}),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 k=require("vue"),ui={xs:18,sm:24,md:32,lg:38,xl:46},Rr={size:String};function Br(l,I=ui){return k.computed(()=>l.size!==void 0?{fontSize:l.size in I?`${I[l.size]}px`:l.size}:null)}function Lt(l,I,t,v){return Object.defineProperty(l,I,{get:t,set:v,enumerable:!0}),l}function pa(l,I){for(const t in I)Lt(l,t,I[t]);return l}function $e(l){return k.markRaw(k.defineComponent(l))}function Ci(l){return k.markRaw(l)}const ma=(l,I)=>{const t=k.reactive(l);for(const v in l)Lt(I,v,()=>t[v],m=>{t[v]=m});return I};function gt(l,I){return l!==void 0&&l()||I}function Ai(l,I){if(l!==void 0){const t=l();if(t!=null)return t.slice()}return I}function It(l,I){return l!==void 0?I.concat(l()):I}function io(l,I){return l===void 0?I:I!==void 0?I.concat(l()):l()}function ga(l,I,t,v,m,c){I.key=v+m;const o=k.h(l,I,t);return m===!0?k.withDirectives(o,c()):o}const ss="0 0 24 24",Un=l=>l,Wn=l=>`ionicons ${l}`,so={"mdi-":l=>`mdi ${l}`,"icon-":Un,"bt-":l=>`bt ${l}`,"eva-":l=>`eva ${l}`,"ion-md":Wn,"ion-ios":Wn,"ion-logo":Wn,"iconfont ":Un,"ti-":l=>`themify-icon ${l}`,"bi-":l=>`bootstrap-icons ${l}`,"i-":Un},oo={o_:"-outlined",r_:"-round",s_:"-sharp"},ao={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ba=new RegExp("^("+Object.keys(so).join("|")+")"),va=new RegExp("^("+Object.keys(oo).join("|")+")"),os=new RegExp("^("+Object.keys(ao).join("|")+")"),ya=/^[Mm]\s?[-+]?\.?\d/,wa=/^img:/,xa=/^svguse:/,Sa=/^ion-/,ka=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,wt=$e({name:"QIcon",props:{...Rr,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(l,{slots:I}){const{proxy:{$q:t}}=k.getCurrentInstance(),v=Br(l),m=k.computed(()=>"q-icon"+(l.left===!0?" on-left":"")+(l.right===!0?" on-right":"")+(l.color!==void 0?` text-${l.color}`:"")),c=k.computed(()=>{let o,a=l.name;if(a==="none"||!a)return{none:!0};if(t.iconMapFn!==null){const r=t.iconMapFn(a);if(r!==void 0)if(r.icon!==void 0){if(a=r.icon,a==="none"||!a)return{none:!0}}else return{cls:r.cls,content:r.content!==void 0?r.content:" "}}if(ya.test(a)===!0){const[r,u=ss]=a.split("|");return{svg:!0,viewBox:u,nodes:r.split("&&").map(s=>{const[i,d,h]=s.split("@@");return k.h("path",{style:d,d:i,transform:h})})}}if(wa.test(a)===!0)return{img:!0,src:a.substring(4)};if(xa.test(a)===!0){const[r,u=ss]=a.split("|");return{svguse:!0,src:r.substring(7),viewBox:u}}let n=" ";const e=a.match(ba);if(e!==null)o=so[e[1]](a);else if(ka.test(a)===!0)o=a;else if(Sa.test(a)===!0)o=`ionicons ion-${t.platform.is.ios===!0?"ios":"md"}${a.substring(3)}`;else if(os.test(a)===!0){o="notranslate material-symbols";const r=a.match(os);r!==null&&(a=a.substring(6),o+=ao[r[1]]),n=a}else{o="notranslate material-icons";const r=a.match(va);r!==null&&(a=a.substring(2),o+=oo[r[1]]),n=a}return{cls:o,content:n}});return()=>{const o={class:m.value,style:v.value,"aria-hidden":"true"};return c.value.none===!0?k.h(l.tag,o,gt(I.default)):c.value.img===!0?k.h(l.tag,o,It(I.default,[k.h("img",{src:c.value.src})])):c.value.svg===!0?k.h(l.tag,o,It(I.default,[k.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?k.h(l.tag,o,It(I.default,[k.h("svg",{viewBox:c.value.viewBox},[k.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(o.class+=" "+c.value.cls),k.h(l.tag,o,It(I.default,[c.value.content])))}}});function vn(l){if(Object(l.$parent)===l.$parent)return l.$parent;let{parent:I}=l.$;for(;Object(I)===I;){if(Object(I.proxy)===I.proxy)return I.proxy;I=I.parent}}function lo(l,I){typeof I.type=="symbol"?Array.isArray(I.children)===!0&&I.children.forEach(t=>{lo(l,t)}):l.add(I)}function _a(l){const I=new Set;return l.forEach(t=>{lo(I,t)}),Array.from(I)}function Ei(l){return l.appContext.config.globalProperties.$router!==void 0}function Mi(l){return l.isUnmounted===!0||l.isDeactivated===!0}function as(l){return l?l.aliasOf?l.aliasOf.path:l.path:""}function ls(l,I){return(l.aliasOf||l)===(I.aliasOf||I)}function Ca(l,I){for(const t in I){const v=I[t],m=l[t];if(typeof v=="string"){if(v!==m)return!1}else if(Array.isArray(m)===!1||m.length!==v.length||v.some((c,o)=>c!==m[o]))return!1}return!0}function us(l,I){return Array.isArray(I)===!0?l.length===I.length&&l.every((t,v)=>t===I[v]):l.length===1&&l[0]===I}function Aa(l,I){return Array.isArray(l)===!0?us(l,I):Array.isArray(I)===!0?us(I,l):l===I}function Ea(l,I){if(Object.keys(l).length!==Object.keys(I).length)return!1;for(const t in l)if(Aa(l[t],I[t])===!1)return!1;return!0}const uo={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},co={...uo,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ti({fallbackTag:l,useDisableForRouterLinkProps:I=!0}={}){const t=k.getCurrentInstance(),{props:v,proxy:m,emit:c}=t,o=Ei(t),a=k.computed(()=>v.disable!==!0&&v.href!==void 0),n=I===!0?k.computed(()=>o===!0&&v.disable!==!0&&a.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""):k.computed(()=>o===!0&&a.value!==!0&&v.to!==void 0&&v.to!==null&&v.to!==""),e=k.computed(()=>n.value===!0?p(v.to):null),r=k.computed(()=>e.value!==null),u=k.computed(()=>a.value===!0||r.value===!0),s=k.computed(()=>v.type==="a"||u.value===!0?"a":v.tag||l||"div"),i=k.computed(()=>a.value===!0?{href:v.href,target:v.target}:r.value===!0?{href:e.value.href,target:v.target}:{}),d=k.computed(()=>{if(r.value===!1)return-1;const{matched:T}=e.value,{length:D}=T,q=T[D-1];if(q===void 0)return-1;const N=m.$route.matched;if(N.length===0)return-1;const P=N.findIndex(ls.bind(null,q));if(P!==-1)return P;const V=as(T[D-2]);return D>1&&as(q)===V&&N[N.length-1].path!==V?N.findIndex(ls.bind(null,T[D-2])):P}),h=k.computed(()=>r.value===!0&&d.value!==-1&&Ca(m.$route.params,e.value.params)),f=k.computed(()=>h.value===!0&&d.value===m.$route.matched.length-1&&Ea(m.$route.params,e.value.params)),g=k.computed(()=>r.value===!0?f.value===!0?` ${v.exactActiveClass} ${v.activeClass}`:v.exact===!0?"":h.value===!0?` ${v.activeClass}`:"":"");function p(T){try{return m.$router.resolve(T)}catch{}return null}function x(T,{returnRouterError:D,to:q=v.to,replace:N=v.replace}={}){if(v.disable===!0)return T.preventDefault(),Promise.resolve(!1);if(T.metaKey||T.altKey||T.ctrlKey||T.shiftKey||T.button!==void 0&&T.button!==0||v.target==="_blank")return Promise.resolve(!1);T.preventDefault();const P=m.$router[N===!0?"replace":"push"](q);return D===!0?P:P.then(()=>{}).catch(()=>{})}function C(T){if(r.value===!0){const D=q=>x(T,q);c("click",T,D),T.defaultPrevented!==!0&&D()}else c("click",T)}return{hasRouterLink:r,hasHrefLink:a,hasLink:u,linkTag:s,resolvedLink:e,linkIsActive:h,linkIsExactActive:f,linkClass:g,linkAttrs:i,getLink:p,navigateToRouterLink:x,navigateOnClick:C}}const Ma=$e({name:"QBreadcrumbsEl",props:{...co,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(l,{slots:I}){const{linkTag:t,linkAttrs:v,linkClass:m,navigateOnClick:c}=Ti(),o=k.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(l.disable!==!0?"q-link--focusable"+m.value:"q-breadcrumbs__el--disable"),...v.value,onClick:c})),a=k.computed(()=>"q-breadcrumbs__el-icon"+(l.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const n=[];return l.icon!==void 0&&n.push(k.h(wt,{class:a.value,name:l.icon})),l.label!==void 0&&n.push(l.label),k.h(t.value,{...o.value},It(I.default,n))}}}),fo={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ta=Object.keys(fo),Ri={align:{type:String,validator:l=>Ta.includes(l)}};function Bi(l){return k.computed(()=>{const I=l.align===void 0?l.vertical===!0?"stretch":"left":l.align;return`${l.vertical===!0?"items":"justify"}-${fo[I]}`})}const Ra=["",!0],Ba=$e({name:"QBreadcrumbs",props:{...Ri,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:l=>["none","xs","sm","md","lg","xl"].includes(l),default:"sm"}},setup(l,{slots:I}){const t=Bi(l),v=k.computed(()=>`flex items-center ${t.value}${l.gutter==="none"?"":` q-gutter-${l.gutter}`}`),m=k.computed(()=>l.separatorColor?` text-${l.separatorColor}`:""),c=k.computed(()=>` text-${l.activeColor}`);return()=>{if(I.default===void 0)return;const o=_a(gt(I.default));if(o.length===0)return;let a=1;const n=[],e=o.filter(u=>u.type?.name==="QBreadcrumbsEl").length,r=I.separator!==void 0?I.separator:()=>l.separator;return o.forEach(u=>{if(u.type?.name==="QBreadcrumbsEl"){const s=a<e,i=u.props!==null&&Ra.includes(u.props.disable),d=(s===!0?"":" q-breadcrumbs--last")+(i!==!0&&s===!0?c.value:"");a++,n.push(k.h("div",{class:`flex items-center${d}`},[u])),s===!0&&n.push(k.h("div",{class:"q-breadcrumbs__separator"+m.value},r()))}else n.push(u)}),k.h("div",{class:"q-breadcrumbs"},[k.h("div",{class:v.value},n)])}}}),Ia=k.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(l){const I=l,t=k.useAttrs(),v=k.computed(()=>{const{activeColor:s,separatorIcon:i,separatorSize:d,separatorColor:h,...f}=t;return f}),m=s=>({"data-cy":s.dataCy,class:"cursor-pointer text-h5",color:s.color}),c=k.computed(()=>I.activeColor||"primary"),o=k.computed(()=>I.separatorIcon||"chevron_right"),a=k.computed(()=>I.separatorSize||"2em"),n=k.computed(()=>I.separatorColor||"primary"),e=k.computed(()=>({store:I.store,route:I.route,navStore:I.navStore||{}})),r=k.computed(()=>{const s=[];return I.breadcrumbConfig.forEach(i=>{if(!i.shouldRender(e.value))return;const d=i.getLabel?i.getLabel(e.value):i.defaultLabel,h=i.getColor?i.getColor(e.value):"dark",f={name:i.routeName,...i.getRouteParams&&{params:i.getRouteParams(e.value)}},g=i.clearActions?i.clearActions.map(p=>()=>p(e.value)):[];s.push({label:d,dataCy:i.dataCy,color:h,route:f,clearActions:g})}),s}),u=s=>{s.clearActions&&s.clearActions.forEach(i=>i()),I.router.push(s.route)};return(s,i)=>(k.openBlock(),k.createBlock(Ba,k.mergeProps({"active-color":c.value,class:"text-brown"},v.value),{separator:k.withCtx(()=>[k.createVNode(wt,{size:a.value,name:o.value,color:n.value},null,8,["size","name","color"])]),default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(r.value,(d,h)=>(k.openBlock(),k.createBlock(Ma,k.mergeProps({key:h},{ref_for:!0},m(d),{label:d.label,onClick:f=>u(d)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),Oa={size:{type:[String,Number],default:"1em"},color:String};function ja(l){return{cSize:k.computed(()=>l.size in ui?`${ui[l.size]}px`:l.size),classes:k.computed(()=>"q-spinner"+(l.color?` text-${l.color}`:""))}}const ho=$e({name:"QSpinner",props:{...Oa,thickness:{type:Number,default:5}},setup(l){const{cSize:I,classes:t}=ja(l);return()=>k.h("svg",{class:t.value+" q-spinner-mat",width:I.value,height:I.value,viewBox:"25 25 50 50"},[k.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":l.thickness,"stroke-miterlimit":"10"})])}});function ci(l,I){const t=l.style;for(const v in I)t[v]=I[v]}function Fa(l){if(l==null)return;if(typeof l=="string")try{return document.querySelector(l)||void 0}catch{return}const I=k.unref(l);if(I)return I.$el||I}function po(l,I){if(l==null||l.contains(I)===!0)return!0;for(let t=l.nextElementSibling;t!==null;t=t.nextElementSibling)if(t.contains(I))return!0;return!1}const _t={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const l=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,l),window.removeEventListener("qtest",null,l)}catch{}function jn(){}function Da(l){return l.button===0}function Ur(l){return l.touches&&l.touches[0]?l=l.touches[0]:l.changedTouches&&l.changedTouches[0]?l=l.changedTouches[0]:l.targetTouches&&l.targetTouches[0]&&(l=l.targetTouches[0]),{top:l.clientY,left:l.clientX}}function Na(l){if(l.path)return l.path;if(l.composedPath)return l.composedPath();const I=[];let t=l.target;for(;t;){if(I.push(t),t.tagName==="HTML")return I.push(document),I.push(window),I;t=t.parentElement}}function Dt(l){l.stopPropagation()}function Bt(l){l.cancelable!==!1&&l.preventDefault()}function St(l){l.cancelable!==!1&&l.preventDefault(),l.stopPropagation()}function Hn(l,I){if(l===void 0||I===!0&&l.__dragPrevented===!0)return;const t=I===!0?v=>{v.__dragPrevented=!0,v.addEventListener("dragstart",Bt,_t.notPassiveCapture)}:v=>{delete v.__dragPrevented,v.removeEventListener("dragstart",Bt,_t.notPassiveCapture)};l.querySelectorAll("a, img").forEach(t)}function Qt(l,I,t){const v=`__q_${I}_evt`;l[v]=l[v]!==void 0?l[v].concat(t):t,t.forEach(m=>{m[0].addEventListener(m[1],l[m[2]],_t[m[3]])})}function cr(l,I){const t=`__q_${I}_evt`;l[t]!==void 0&&(l[t].forEach(v=>{v[0].removeEventListener(v[1],l[v[2]],_t[v[3]])}),l[t]=void 0)}function Ii(l){return l!==Object(l)||l.isComposing===!0||l.qKeyEvent===!0}function nr(l,I){return Ii(l)===!0?!1:[].concat(I).includes(l.keyCode)}function Pa(l,I=250){let t=!1,v;return function(){return t===!1&&(t=!0,setTimeout(()=>{t=!1},I),v=l.apply(this,arguments)),v}}function cs(l,I,t,v){t.modifiers.stop===!0&&Dt(l);const m=t.modifiers.color;let c=t.modifiers.center;c=c===!0||v===!0;const o=document.createElement("span"),a=document.createElement("span"),n=Ur(l),{left:e,top:r,width:u,height:s}=I.getBoundingClientRect(),i=Math.sqrt(u*u+s*s),d=i/2,h=`${(u-i)/2}px`,f=c?h:`${n.left-e-d}px`,g=`${(s-i)/2}px`,p=c?g:`${n.top-r-d}px`;a.className="q-ripple__inner",ci(a,{height:`${i}px`,width:`${i}px`,transform:`translate3d(${f},${p},0) scale3d(.2,.2,1)`,opacity:0}),o.className=`q-ripple${m?" text-"+m:""}`,o.setAttribute("dir","ltr"),o.appendChild(a),I.appendChild(o);const x=()=>{o.remove(),clearTimeout(C)};t.abort.push(x);let C=setTimeout(()=>{a.classList.add("q-ripple__inner--enter"),a.style.transform=`translate3d(${h},${g},0) scale3d(1,1,1)`,a.style.opacity=.2,C=setTimeout(()=>{a.classList.remove("q-ripple__inner--enter"),a.classList.add("q-ripple__inner--leave"),a.style.opacity=0,C=setTimeout(()=>{o.remove(),t.abort.splice(t.abort.indexOf(x),1)},275)},250)},50)}function fs(l,{modifiers:I,value:t,arg:v}){const m=Object.assign({},l.cfg.ripple,I,t);l.modifiers={early:m.early===!0,stop:m.stop===!0,center:m.center===!0,color:m.color||v,keyCodes:[].concat(m.keyCodes||13)}}const mo=Ci({name:"ripple",beforeMount(l,I){const t=I.instance.$.appContext.config.globalProperties.$q.config||{};if(t.ripple===!1)return;const v={cfg:t,enabled:I.value!==!1,modifiers:{},abort:[],start(m){v.enabled===!0&&m.qSkipRipple!==!0&&m.type===(v.modifiers.early===!0?"pointerdown":"click")&&cs(m,l,v,m.qKeyEvent===!0)},keystart:Pa(m=>{v.enabled===!0&&m.qSkipRipple!==!0&&nr(m,v.modifiers.keyCodes)===!0&&m.type===`key${v.modifiers.early===!0?"down":"up"}`&&cs(m,l,v,!0)},300)};fs(v,I),l.__qripple=v,Qt(v,"main",[[l,"pointerdown","start","passive"],[l,"click","start","passive"],[l,"keydown","keystart","passive"],[l,"keyup","keystart","passive"]])},updated(l,I){if(I.oldValue!==I.value){const t=l.__qripple;t!==void 0&&(t.enabled=I.value!==!1,t.enabled===!0&&Object(I.value)===I.value&&fs(t,I))}},beforeUnmount(l){const I=l.__qripple;I!==void 0&&(I.abort.forEach(t=>{t()}),cr(I,"main"),delete l._qripple)}}),ds={none:0,xs:4,sm:8,md:16,lg:24,xl:32},La={xs:8,sm:10,md:14,lg:20,xl:24},Va=["button","submit","reset"],qa=/[^\s]\/[^\s]/,za=["flat","outline","push","unelevated"];function Ua(l,I){return l.flat===!0?"flat":l.outline===!0?"outline":l.push===!0?"push":l.unelevated===!0?"unelevated":I}const Wa={...Rr,...uo,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...za.reduce((l,I)=>(l[I]=Boolean)&&l,{}),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:{...Ri.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Ha={...Wa,round:Boolean};function Ya(l){const I=Br(l,La),t=Bi(l),{hasRouterLink:v,hasLink:m,linkTag:c,linkAttrs:o,navigateOnClick:a}=Ti({fallbackTag:"button"}),n=k.computed(()=>{const f=l.fab===!1&&l.fabMini===!1?I.value:{};return l.padding!==void 0?Object.assign({},f,{padding:l.padding.split(/\s+/).map(g=>g in ds?ds[g]+"px":g).join(" "),minWidth:"0",minHeight:"0"}):f}),e=k.computed(()=>l.rounded===!0||l.fab===!0||l.fabMini===!0),r=k.computed(()=>l.disable!==!0&&l.loading!==!0),u=k.computed(()=>r.value===!0?l.tabindex||0:-1),s=k.computed(()=>Ua(l,"standard")),i=k.computed(()=>{const f={tabindex:u.value};return m.value===!0?Object.assign(f,o.value):Va.includes(l.type)===!0&&(f.type=l.type),c.value==="a"?(l.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),v.value!==!0&&qa.test(l.type)===!0&&(f.type=l.type)):l.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),l.loading===!0&&l.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l.percentage}),f}),d=k.computed(()=>{let f;l.color!==void 0?l.flat===!0||l.outline===!0?f=`text-${l.textColor||l.color}`:f=`bg-${l.color} text-${l.textColor||"white"}`:l.textColor&&(f=`text-${l.textColor}`);const g=l.round===!0?"round":`rectangle${e.value===!0?" q-btn--rounded":l.square===!0?" q-btn--square":""}`;return`q-btn--${s.value} q-btn--${g}`+(f!==void 0?" "+f:"")+(r.value===!0?" q-btn--actionable q-focusable q-hoverable":l.disable===!0?" disabled":"")+(l.fab===!0?" q-btn--fab":l.fabMini===!0?" q-btn--fab-mini":"")+(l.noCaps===!0?" q-btn--no-uppercase":"")+(l.dense===!0?" q-btn--dense":"")+(l.stretch===!0?" no-border-radius self-stretch":"")+(l.glossy===!0?" glossy":"")+(l.square?" q-btn--square":"")}),h=k.computed(()=>t.value+(l.stack===!0?" column":" row")+(l.noWrap===!0?" no-wrap text-no-wrap":"")+(l.loading===!0?" q-btn__content--hidden":""));return{classes:d,style:n,innerClasses:h,attributes:i,hasLink:m,linkTag:c,navigateOnClick:a,isActionable:r}}const{passiveCapture:Pt}=_t;let vr=null,yr=null,wr=null;const ct=$e({name:"QBtn",props:{...Ha,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(l,{slots:I,emit:t}){const{proxy:v}=k.getCurrentInstance(),{classes:m,style:c,innerClasses:o,attributes:a,hasLink:n,linkTag:e,navigateOnClick:r,isActionable:u}=Ya(l),s=k.ref(null),i=k.ref(null);let d=null,h,f=null;const g=k.computed(()=>l.label!==void 0&&l.label!==null&&l.label!==""),p=k.computed(()=>l.disable===!0||l.ripple===!1?!1:{keyCodes:n.value===!0?[13,32]:[13],...l.ripple===!0?{}:l.ripple}),x=k.computed(()=>({center:l.round})),C=k.computed(()=>{const E=Math.max(0,Math.min(100,l.percentage));return E>0?{transition:"transform 0.6s",transform:`translateX(${E-100}%)`}:{}}),T=k.computed(()=>{if(l.loading===!0)return{onMousedown:A,onTouchstart:A,onClick:A,onKeydown:A,onKeyup:A};if(u.value===!0){const E={onClick:q,onKeydown:N,onMousedown:V};if(v.$q.platform.has.touch===!0){const _=l.onTouchstart!==void 0?"":"Passive";E[`onTouchstart${_}`]=P}return E}return{onClick:St}}),D=k.computed(()=>({ref:s,class:"q-btn q-btn-item non-selectable no-outline "+m.value,style:c.value,...a.value,...T.value}));function q(E){if(s.value!==null){if(E!==void 0){if(E.defaultPrevented===!0)return;const _=document.activeElement;if(l.type==="submit"&&_!==document.body&&s.value.contains(_)===!1&&_.contains(s.value)===!1){E.qAvoidFocus!==!0&&s.value.focus();const b=()=>{document.removeEventListener("keydown",St,!0),document.removeEventListener("keyup",b,Pt),s.value?.removeEventListener("blur",b,Pt)};document.addEventListener("keydown",St,!0),document.addEventListener("keyup",b,Pt),s.value.addEventListener("blur",b,Pt)}}r(E)}}function N(E){s.value!==null&&(t("keydown",E),nr(E,[13,32])===!0&&yr!==s.value&&(yr!==null&&L(),E.defaultPrevented!==!0&&(E.qAvoidFocus!==!0&&s.value.focus(),yr=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("keyup",W,!0),s.value.addEventListener("blur",W,Pt)),St(E)))}function P(E){s.value!==null&&(t("touchstart",E),E.defaultPrevented!==!0&&(vr!==s.value&&(vr!==null&&L(),vr=s.value,d=E.target,d.addEventListener("touchcancel",W,Pt),d.addEventListener("touchend",W,Pt)),h=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,h=!1},200)))}function V(E){s.value!==null&&(E.qSkipRipple=h===!0,t("mousedown",E),E.defaultPrevented!==!0&&wr!==s.value&&(wr!==null&&L(),wr=s.value,s.value.classList.add("q-btn--active"),document.addEventListener("mouseup",W,Pt)))}function W(E){if(s.value!==null&&!(E?.type==="blur"&&document.activeElement===s.value)){if(E?.type==="keyup"){if(yr===s.value&&nr(E,[13,32])===!0){const _=new MouseEvent("click",E);_.qKeyEvent=!0,E.defaultPrevented===!0&&Bt(_),E.cancelBubble===!0&&Dt(_),s.value.dispatchEvent(_),St(E),E.qKeyEvent=!0}t("keyup",E)}L()}}function L(E){const _=i.value;E!==!0&&(vr===s.value||wr===s.value)&&_!==null&&_!==document.activeElement&&(_.setAttribute("tabindex",-1),_.focus()),vr===s.value&&(d!==null&&(d.removeEventListener("touchcancel",W,Pt),d.removeEventListener("touchend",W,Pt)),vr=d=null),wr===s.value&&(document.removeEventListener("mouseup",W,Pt),wr=null),yr===s.value&&(document.removeEventListener("keyup",W,!0),s.value?.removeEventListener("blur",W,Pt),yr=null),s.value?.classList.remove("q-btn--active")}function A(E){St(E),E.qSkipRipple=!0}return k.onBeforeUnmount(()=>{L(!0)}),Object.assign(v,{click:E=>{u.value===!0&&q(E)}}),()=>{let E=[];l.icon!==void 0&&E.push(k.h(wt,{name:l.icon,left:l.stack!==!0&&g.value===!0,role:"img"})),g.value===!0&&E.push(k.h("span",{class:"block"},[l.label])),E=It(I.default,E),l.iconRight!==void 0&&l.round===!1&&E.push(k.h(wt,{name:l.iconRight,right:l.stack!==!0&&g.value===!0,role:"img"}));const _=[k.h("span",{class:"q-focus-helper",ref:i})];return l.loading===!0&&l.percentage!==void 0&&_.push(k.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(l.darkPercentage===!0?" q-btn__progress--dark":"")},[k.h("span",{class:"q-btn__progress-indicator fit block",style:C.value})])),_.push(k.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+o.value},E)),l.loading!==null&&_.push(k.h(k.Transition,{name:"q-transition--fade"},()=>l.loading===!0?[k.h("span",{key:"loading",class:"absolute-full flex flex-center"},I.loading!==void 0?I.loading():[k.h(ho)])]:null)),k.withDirectives(k.h(e.value,D.value,_),[[mo,p.value,void 0,x.value]])}}}),Qa={class:"row justify-between"},Ka=k.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})},query:{default:()=>({})}},setup(l){const I=l,t=k.inject("navContext",null),v=k.inject("router");function m(c){if(!v){console.warn("Dependencies not available:",{router:v});return}t?.setTabs();const o=c==="back"?I.from:I.to;if(!o){console.warn("Destination not provided:",c);return}v.push({name:o,params:I.params,query:I.query})}return(c,o)=>(k.openBlock(),k.createElementBlock("div",Qa,[k.createVNode(ct,{icon:"chevron_left","rounded-sm":"",label:c.labelFrom,"data-cy":"go-back","data-testid":"go-back",onClick:o[0]||(o[0]=a=>m("back"))},null,8,["label"]),c.labelTo?(k.openBlock(),k.createBlock(ct,{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:o[1]||(o[1]=a=>m("next"))},null,8,["label"])):k.createCommentVNode("",!0)]))}}),Kt=(l,I)=>{const t=l.__vccOpts||l;for(const[v,m]of I)t[v]=m;return t},Xa=Kt(Ka,[["__scopeId","data-v-8dd99f80"]]),Ot={dark:{type:Boolean,default:null}};function jt(l,I){return k.computed(()=>l.dark===null?I.dark.isActive:l.dark)}function Ga(l,I){const t=k.ref(null),v=k.computed(()=>l.disable===!0?null:k.h("span",{ref:t,class:"no-outline",tabindex:-1}));function m(c){const o=I.value;c?.qAvoidFocus!==!0&&(c?.type.indexOf("key")===0?document.activeElement!==o&&o?.contains(document.activeElement)===!0&&o.focus():t.value!==null&&(c===void 0||o?.contains(c.target)===!0)&&t.value.focus())}return{refocusTargetEl:v,refocusTarget:m}}const Fn={name:String};function Ja(l){return k.computed(()=>({type:"hidden",name:l.name,value:l.modelValue}))}function go(l={}){return(I,t,v)=>{I[t](k.h("input",{class:"hidden"+(v||""),...l.value}))}}function bo(l){return k.computed(()=>l.name||l.for)}const Za={xs:30,sm:35,md:40,lg:50,xl:60},$a={...Ot,...Rr,...Fn,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:l=>l==="tf"||l==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},el=["update:modelValue"];function tl(l,I){const{props:t,slots:v,emit:m,proxy:c}=k.getCurrentInstance(),{$q:o}=c,a=jt(t,o),n=k.ref(null),{refocusTargetEl:e,refocusTarget:r}=Ga(t,n),u=Br(t,Za),s=k.computed(()=>t.val!==void 0&&Array.isArray(t.modelValue)),i=k.computed(()=>{const L=k.toRaw(t.val);return s.value===!0?t.modelValue.findIndex(A=>k.toRaw(A)===L):-1}),d=k.computed(()=>s.value===!0?i.value!==-1:k.toRaw(t.modelValue)===k.toRaw(t.trueValue)),h=k.computed(()=>s.value===!0?i.value===-1:k.toRaw(t.modelValue)===k.toRaw(t.falseValue)),f=k.computed(()=>d.value===!1&&h.value===!1),g=k.computed(()=>t.disable===!0?-1:t.tabindex||0),p=k.computed(()=>`q-${l} cursor-pointer no-outline row inline no-wrap items-center`+(t.disable===!0?" disabled":"")+(a.value===!0?` q-${l}--dark`:"")+(t.dense===!0?` q-${l}--dense`:"")+(t.leftLabel===!0?" reverse":"")),x=k.computed(()=>{const L=d.value===!0?"truthy":h.value===!0?"falsy":"indet",A=t.color!==void 0&&(t.keepColor===!0||h.value!==!0)?` text-${t.color}`:"";return`q-${l}__inner relative-position non-selectable q-${l}__inner--${L}${A}`}),C=k.computed(()=>{const L={type:"checkbox"};return t.name!==void 0&&Object.assign(L,{".checked":d.value,"^checked":d.value===!0?"checked":void 0,name:t.name,value:s.value===!0?t.val:t.trueValue}),L}),T=go(C),D=k.computed(()=>{const L={tabindex:g.value,role:"checkbox","aria-label":t.label,"aria-checked":f.value===!0?"mixed":d.value===!0?"true":"false"};return t.disable===!0&&(L["aria-disabled"]="true"),L});function q(L){L!==void 0&&(St(L),r(L)),t.disable!==!0&&m("update:modelValue",N(),L)}function N(){if(s.value===!0){if(d.value===!0){const L=t.modelValue.slice();return L.splice(i.value,1),L}return t.modelValue.concat([t.val])}if(d.value===!0){if(t.toggleOrder!=="ft"||t.toggleIndeterminate===!1)return t.falseValue}else if(h.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)&&St(L)}function V(L){(L.keyCode===13||L.keyCode===32)&&q(L)}const W=I(d,f);return Object.assign(c,{toggle:q}),()=>{const L=W();t.disable!==!0&&T(L,"unshift",` q-${l}__native absolute q-ma-none q-pa-none`);const A=[k.h("div",{class:x.value,style:u.value,"aria-hidden":"true"},L)];e.value!==null&&A.push(e.value);const E=t.label!==void 0?It(v.default,[t.label]):gt(v.default);return E!==void 0&&A.push(k.h("div",{class:`q-${l}__label q-anchor--skip`},E)),k.h("div",{ref:n,class:p.value,...D.value,onClick:q,onKeydown:P,onKeyup:V},A)}}const rl=()=>k.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[k.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[k.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),k.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),_r=$e({name:"QCheckbox",props:$a,emits:el,setup(l){const I=rl();function t(v,m){const c=k.computed(()=>(v.value===!0?l.checkedIcon:m.value===!0?l.indeterminateIcon:l.uncheckedIcon)||null);return()=>c.value!==null?[k.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[k.h(wt,{class:"q-checkbox__icon",name:c.value})])]:[I]}return tl("checkbox",t)}}),nl=$e({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(l){return()=>[k.h("div",{class:l.store.scroll.vertical.barClass.value,style:[l.barStyle,l.verticalBarStyle],"aria-hidden":"true",onMousedown:l.store.onVerticalMousedown}),k.h("div",{class:l.store.scroll.horizontal.barClass.value,style:[l.barStyle,l.horizontalBarStyle],"aria-hidden":"true",onMousedown:l.store.onHorizontalMousedown}),k.withDirectives(k.h("div",{ref:l.store.scroll.vertical.ref,class:l.store.scroll.vertical.thumbClass.value,style:l.store.scroll.vertical.style.value,"aria-hidden":"true"}),l.store.thumbVertDir),k.withDirectives(k.h("div",{ref:l.store.scroll.horizontal.ref,class:l.store.scroll.horizontal.thumbClass.value,style:l.store.scroll.horizontal.style.value,"aria-hidden":"true"}),l.store.thumbHorizDir)]}}),ir=k.ref(!1);let fi;function il(l,I){const t=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(l)||/(opr)[\/]([\w.]+)/.exec(l)||/(vivaldi)[\/]([\w.]+)/.exec(l)||/(chrome|crios)[\/]([\w.]+)/.exec(l)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(l)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(l)||/(firefox|fxios)[\/]([\w.]+)/.exec(l)||/(webkit)[\/]([\w.]+)/.exec(l)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(l)||[];return{browser:t[5]||t[3]||t[1]||"",version:t[4]||t[2]||"0",platform:I[0]||""}}function sl(l){return/(ipad)/.exec(l)||/(ipod)/.exec(l)||/(windows phone)/.exec(l)||/(iphone)/.exec(l)||/(kindle)/.exec(l)||/(silk)/.exec(l)||/(android)/.exec(l)||/(win)/.exec(l)||/(mac)/.exec(l)||/(linux)/.exec(l)||/(cros)/.exec(l)||/(playbook)/.exec(l)||/(bb)/.exec(l)||/(blackberry)/.exec(l)||[]}const vo="ontouchstart"in window||window.navigator.maxTouchPoints>0;function ol(l){const I=l.toLowerCase(),t=sl(I),v=il(I,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};v.browser&&(m[v.browser]=!0,m.version=v.version,m.versionNumber=parseInt(v.version,10)),v.platform&&(m[v.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||I.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,v.browser="edge"):m.crios?(m.chrome=!0,v.browser="chrome"):m.fxios&&(m.firefox=!0,v.browser="firefox"),(m.ipod||m.ipad||m.iphone)&&(m.ios=!0),m.vivaldi&&(v.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&&(v.browser="opera",m.opera=!0),m.safari&&(m.blackberry||m.bb?(v.browser="blackberry",m.blackberry=!0):m.playbook?(v.browser="playbook",m.playbook=!0):m.android?(v.browser="android",m.android=!0):m.kindle?(v.browser="kindle",m.kindle=!0):m.silk&&(v.browser="silk",m.silk=!0)),m.name=v.browser,m.platform=v.platform,I.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"),ir.value===!0&&(fi={is:{...m}}),vo===!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 o=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(m,{mobile:!0,ios:!0,platform:o,[o]:!0})}m.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete m.desktop,m.mobile=!0)}return m}const hs=navigator.userAgent||navigator.vendor||window.opera,al={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Et={userAgent:hs,is:ol(hs),has:{touch:vo},within:{iframe:window.self!==window.top}},di={install(l){const{$q:I}=l;ir.value===!0?(l.onSSRHydrated.push(()=>{Object.assign(I.platform,Et),ir.value=!1}),I.platform=k.reactive(this)):I.platform=this}};{let l;Lt(Et.has,"webStorage",()=>{if(l!==void 0)return l;try{if(window.localStorage)return l=!0,!0}catch{}return l=!1,!1}),Object.assign(di,Et),ir.value===!0&&(Object.assign(di,fi,al),fi=null)}function ll(){const l=k.ref(!ir.value);return l.value===!1&&k.onMounted(()=>{l.value=!0}),{isHydrated:l}}const yo=typeof ResizeObserver<"u",ps=yo===!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"},Er=$e({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(l,{emit:I}){let t=null,v,m={width:-1,height:-1};function c(n){n===!0||l.debounce===0||l.debounce==="0"?o():t===null&&(t=setTimeout(o,l.debounce))}function o(){if(t!==null&&(clearTimeout(t),t=null),v){const{offsetWidth:n,offsetHeight:e}=v;(n!==m.width||e!==m.height)&&(m={width:n,height:e},I("resize",m))}}const{proxy:a}=k.getCurrentInstance();if(a.trigger=c,yo===!0){let n;const e=r=>{v=a.$el.parentNode,v?(n=new ResizeObserver(c),n.observe(v),o()):r!==!0&&k.nextTick(()=>{e(!0)})};return k.onMounted(()=>{e()}),k.onBeforeUnmount(()=>{t!==null&&clearTimeout(t),n!==void 0&&(n.disconnect!==void 0?n.disconnect():v&&n.unobserve(v))}),jn}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(),v?.contentDocument&&(u=v.contentDocument.defaultView,u.addEventListener("resize",c,_t.passive),o())};const{isHydrated:r}=ll();let u;return k.onMounted(()=>{k.nextTick(()=>{v=a.$el,v&&e()})}),k.onBeforeUnmount(n),()=>{if(r.value===!0)return k.h("object",{class:"q--avoid-card-border",style:ps.style,tabindex:-1,type:"text/html",data:ps.url,"aria-hidden":"true",onLoad:e})}}}}),Dn=[Element,String],ul=[null,document,document.body,document.scrollingElement,document.documentElement];function Nn(l,I){let t=Fa(I);if(t===void 0){if(l==null)return window;t=l.closest(".scroll,.scroll-y,.overflow-auto")}return ul.includes(t)?window:t}function Oi(l){return l===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:l.scrollTop}function ji(l){return l===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:l.scrollLeft}function wo(l,I,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],m=Oi(l);if(t<=0){m!==I&&hi(l,I);return}requestAnimationFrame(c=>{const o=c-v,a=m+(I-m)/Math.max(o,t)*o;hi(l,a),a!==I&&wo(l,I,t-o,c)})}function xo(l,I,t=0){const v=arguments[3]===void 0?performance.now():arguments[3],m=ji(l);if(t<=0){m!==I&&pi(l,I);return}requestAnimationFrame(c=>{const o=c-v,a=m+(I-m)/Math.max(o,t)*o;pi(l,a),a!==I&&xo(l,I,t-o,c)})}function hi(l,I){if(l===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,I);return}l.scrollTop=I}function pi(l,I){if(l===window){window.scrollTo(I,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}l.scrollLeft=I}function ms(l,I,t){if(t){wo(l,I,t);return}hi(l,I)}function Yn(l,I,t){if(t){xo(l,I,t);return}pi(l,I)}let sn;function yn(){if(sn!==void 0)return sn;const l=document.createElement("p"),I=document.createElement("div");ci(l,{width:"100%",height:"200px"}),ci(I,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),I.appendChild(l),document.body.appendChild(I);const t=l.offsetWidth;I.style.overflow="scroll";let v=l.offsetWidth;return t===v&&(v=I.clientWidth),I.remove(),sn=t-v,sn}function cl(l,I=!0){return!l||l.nodeType!==Node.ELEMENT_NODE?!1:I?l.scrollHeight>l.clientHeight&&(l.classList.contains("scroll")||l.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(l)["overflow-y"])):l.scrollWidth>l.clientWidth&&(l.classList.contains("scroll")||l.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(l)["overflow-x"]))}const{passive:gs}=_t,fl=["both","horizontal","vertical"],So=$e({name:"QScrollObserver",props:{axis:{type:String,validator:l=>fl.includes(l),default:"vertical"},debounce:[String,Number],scrollTarget:Dn},emits:["scroll"],setup(l,{emit:I}){const t={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let v=null,m,c;k.watch(()=>l.scrollTarget,()=>{n(),a()});function o(){v?.();const u=Math.max(0,Oi(m)),s=ji(m),i={top:u-t.position.top,left:s-t.position.left};if(l.axis==="vertical"&&i.top===0||l.axis==="horizontal"&&i.left===0)return;const d=Math.abs(i.top)>=Math.abs(i.left)?i.top<0?"up":"down":i.left<0?"left":"right";t.position={top:u,left:s},t.directionChanged=t.direction!==d,t.delta=i,t.directionChanged===!0&&(t.direction=d,t.inflectionPoint=t.position),I("scroll",{...t})}function a(){m=Nn(c,l.scrollTarget),m.addEventListener("scroll",e,gs),e(!0)}function n(){m!==void 0&&(m.removeEventListener("scroll",e,gs),m=void 0)}function e(u){if(u===!0||l.debounce===0||l.debounce==="0")o();else if(v===null){const[s,i]=l.debounce?[setTimeout(o,l.debounce),clearTimeout]:[requestAnimationFrame(o),cancelAnimationFrame];v=()=>{i(s),v=null}}}const{proxy:r}=k.getCurrentInstance();return k.watch(()=>r.$q.lang.rtl,o),k.onMounted(()=>{c=r.$el.parentNode,a()}),k.onBeforeUnmount(()=>{v?.(),n()}),Object.assign(r,{trigger:e,getPosition:()=>t}),jn}}),Fi={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},dl=Object.keys(Fi);Fi.all=!0;function bs(l){const I={};for(const t of dl)l[t]===!0&&(I[t]=!0);return Object.keys(I).length===0?Fi:(I.horizontal===!0?I.left=I.right=!0:I.left===!0&&I.right===!0&&(I.horizontal=!0),I.vertical===!0?I.up=I.down=!0:I.up===!0&&I.down===!0&&(I.vertical=!0),I.horizontal===!0&&I.vertical===!0&&(I.all=!0),I)}const hl=["INPUT","TEXTAREA"];function vs(l,I){return I.event===void 0&&l.target!==void 0&&l.target.draggable!==!0&&typeof I.handler=="function"&&hl.includes(l.target.nodeName.toUpperCase())===!1&&(l.qClonedBy===void 0||l.qClonedBy.indexOf(I.uid)===-1)}function kn(){if(window.getSelection!==void 0){const l=window.getSelection();l.empty!==void 0?l.empty():l.removeAllRanges!==void 0&&(l.removeAllRanges(),di.is.mobile!==!0&&l.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function Qn(l,I,t){const v=Ur(l);let m,c=v.left-I.event.x,o=v.top-I.event.y,a=Math.abs(c),n=Math.abs(o);const e=I.direction;e.horizontal===!0&&e.vertical!==!0?m=c<0?"left":"right":e.horizontal!==!0&&e.vertical===!0?m=o<0?"up":"down":e.up===!0&&o<0?(m="up",a>n&&(e.left===!0&&c<0?m="left":e.right===!0&&c>0&&(m="right"))):e.down===!0&&o>0?(m="down",a>n&&(e.left===!0&&c<0?m="left":e.right===!0&&c>0&&(m="right"))):e.left===!0&&c<0?(m="left",a<n&&(e.up===!0&&o<0?m="up":e.down===!0&&o>0&&(m="down"))):e.right===!0&&c>0&&(m="right",a<n&&(e.up===!0&&o<0?m="up":e.down===!0&&o>0&&(m="down")));let r=!1;if(m===void 0&&t===!1){if(I.event.isFirst===!0||I.event.lastDir===void 0)return{};m=I.event.lastDir,r=!0,m==="left"||m==="right"?(v.left-=c,a=0,c=0):(v.top-=o,n=0,o=0)}return{synthetic:r,payload:{evt:l,touch:I.event.mouse!==!0,mouse:I.event.mouse===!0,position:v,direction:m,isFirst:I.event.isFirst,isFinal:t===!0,duration:Date.now()-I.event.time,distance:{x:a,y:n},offset:{x:c,y:o},delta:{x:v.left-I.event.lastX,y:v.top-I.event.lastY}}}}let pl=0;const ys=Ci({name:"touch-pan",beforeMount(l,{value:I,modifiers:t}){if(t.mouse!==!0&&Et.has.touch!==!0)return;function v(c,o){t.mouse===!0&&o===!0?St(c):(t.stop===!0&&Dt(c),t.prevent===!0&&Bt(c))}const m={uid:"qvtp_"+pl++,handler:I,modifiers:t,direction:bs(t),noop:jn,mouseStart(c){vs(c,m)&&Da(c)&&(Qt(m,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),m.start(c,!0))},touchStart(c){if(vs(c,m)){const o=c.target;Qt(m,"temp",[[o,"touchmove","move","notPassiveCapture"],[o,"touchcancel","end","passiveCapture"],[o,"touchend","end","passiveCapture"]]),m.start(c)}},start(c,o){if(Et.is.firefox===!0&&Hn(l,!0),m.lastEvt=c,o===!0||t.stop===!0){if(m.direction.all!==!0&&(o!==!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&&Bt(e),c.cancelBubble===!0&&Dt(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}}Dt(c)}const{left:a,top:n}=Ur(c);m.event={x:a,y:n,time:Date.now(),mouse:o===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:a,lastY:n}},move(c){if(m.event===void 0)return;const o=Ur(c),a=o.left-m.event.x,n=o.top-m.event.y;if(a===0&&n===0)return;m.lastEvt=c;const e=m.event.mouse===!0,r=()=>{v(c,e);let i;t.preserveCursor!==!0&&t.preservecursor!==!0&&(i=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"),kn(),m.styleCleanup=d=>{if(m.styleCleanup=void 0,i!==void 0&&(document.documentElement.style.cursor=i),document.body.classList.remove("non-selectable"),e===!0){const h=()=>{document.body.classList.remove("no-pointer-events--children")};d!==void 0?setTimeout(()=>{h(),d()},50):h()}else d!==void 0&&d()}};if(m.event.detected===!0){m.event.isFirst!==!0&&v(c,m.event.mouse);const{payload:i,synthetic:d}=Qn(c,m,!1);i!==void 0&&(m.handler(i)===!1?m.end(c):(m.styleCleanup===void 0&&m.event.isFirst===!0&&r(),m.event.lastX=i.position.left,m.event.lastY=i.position.top,m.event.lastDir=d===!0?void 0:i.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(a),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&&a<0||m.direction.right===!0&&u>s&&a>0?(m.event.detected=!0,m.move(c)):m.end(c,!0))},end(c,o){if(m.event!==void 0){if(cr(m,"temp"),Et.is.firefox===!0&&Hn(l,!1),o===!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(Qn(c===void 0?m.lastEvt:c,m).payload);const{payload:a}=Qn(c===void 0?m.lastEvt:c,m,!0),n=()=>{m.handler(a)};m.styleCleanup!==void 0?m.styleCleanup(n):n()}m.event=void 0,m.initialEvent=void 0,m.lastEvt=void 0}}};if(l.__qtouchpan=m,t.mouse===!0){const c=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";Qt(m,"main",[[l,"mousedown","mouseStart",`passive${c}`]])}Et.has.touch===!0&&Qt(m,"main",[[l,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[l,"touchmove","noop","notPassiveCapture"]])},updated(l,I){const t=l.__qtouchpan;t!==void 0&&(I.oldValue!==I.value&&(typeof value!="function"&&t.end(),t.handler=I.value),t.direction=bs(I.modifiers))},beforeUnmount(l){const I=l.__qtouchpan;I!==void 0&&(I.event!==void 0&&I.end(),cr(I,"main"),cr(I,"temp"),Et.is.firefox===!0&&Hn(l,!1),I.styleCleanup?.(),delete l.__qtouchpan)}});function ml(l){return l.charAt(0).toUpperCase()+l.slice(1)}function Or(l,I,t){return t<=I?I:Math.min(t,Math.max(I,l))}function ws(l,I,t){if(t<=I)return I;const v=t-I+1;let m=I+(l-I)%v;return m<I&&(m=v+m),m===0?0:m}function bt(l,I=2,t="0"){if(l==null)return l;const v=""+l;return v.length>=I?v:new Array(I-v.length+1).join(t)+v}function Di(l,I=250,t){let v=null;function m(){const c=arguments,o=()=>{v=null,l.apply(this,c)};v!==null&&clearTimeout(v),v=setTimeout(o,I)}return m.cancel=()=>{v!==null&&clearTimeout(v)},m}const xs=["vertical","horizontal"],Kn={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},Ss={prevent:!0,mouse:!0,mouseAllDir:!0},ks=l=>l>=250?50:Math.ceil(l/5),gl=$e({name:"QScrollArea",props:{...Ot,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(l,{slots:I,emit:t}){const v=k.ref(!1),m=k.ref(!1),c=k.ref(!1),o={vertical:k.ref(0),horizontal:k.ref(0)},a={vertical:{ref:k.ref(null),position:k.ref(0),size:k.ref(0)},horizontal:{ref:k.ref(null),position:k.ref(0),size:k.ref(0)}},{proxy:n}=k.getCurrentInstance(),e=jt(l,n.$q);let r=null,u;const s=k.ref(null),i=k.computed(()=>"q-scrollarea"+(e.value===!0?" q-scrollarea--dark":""));Object.assign(o,{verticalInner:k.computed(()=>o.vertical.value-l.verticalOffset[0]-l.verticalOffset[1]),horizontalInner:k.computed(()=>o.horizontal.value-l.horizontalOffset[0]-l.horizontalOffset[1])}),a.vertical.percentage=k.computed(()=>{const E=a.vertical.size.value-o.vertical.value;if(E<=0)return 0;const _=Or(a.vertical.position.value/E,0,1);return Math.round(_*1e4)/1e4}),a.vertical.thumbHidden=k.computed(()=>(l.visible===null?c.value:l.visible)!==!0&&v.value===!1&&m.value===!1||a.vertical.size.value<=o.vertical.value+1),a.vertical.thumbStart=k.computed(()=>l.verticalOffset[0]+a.vertical.percentage.value*(o.verticalInner.value-a.vertical.thumbSize.value)),a.vertical.thumbSize=k.computed(()=>Math.round(Or(o.verticalInner.value*o.verticalInner.value/a.vertical.size.value,ks(o.verticalInner.value),o.verticalInner.value))),a.vertical.style=k.computed(()=>({...l.thumbStyle,...l.verticalThumbStyle,top:`${a.vertical.thumbStart.value}px`,height:`${a.vertical.thumbSize.value}px`,right:`${l.horizontalOffset[1]}px`})),a.vertical.thumbClass=k.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.vertical.barClass=k.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),a.horizontal.percentage=k.computed(()=>{const E=a.horizontal.size.value-o.horizontal.value;if(E<=0)return 0;const _=Or(Math.abs(a.horizontal.position.value)/E,0,1);return Math.round(_*1e4)/1e4}),a.horizontal.thumbHidden=k.computed(()=>(l.visible===null?c.value:l.visible)!==!0&&v.value===!1&&m.value===!1||a.horizontal.size.value<=o.horizontal.value+1),a.horizontal.thumbStart=k.computed(()=>l.horizontalOffset[0]+a.horizontal.percentage.value*(o.horizontalInner.value-a.horizontal.thumbSize.value)),a.horizontal.thumbSize=k.computed(()=>Math.round(Or(o.horizontalInner.value*o.horizontalInner.value/a.horizontal.size.value,ks(o.horizontalInner.value),o.horizontalInner.value))),a.horizontal.style=k.computed(()=>({...l.thumbStyle,...l.horizontalThumbStyle,[n.$q.lang.rtl===!0?"right":"left"]:`${a.horizontal.thumbStart.value}px`,width:`${a.horizontal.thumbSize.value}px`,bottom:`${l.verticalOffset[1]}px`})),a.horizontal.thumbClass=k.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.horizontal.barClass=k.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const d=k.computed(()=>a.vertical.thumbHidden.value===!0&&a.horizontal.thumbHidden.value===!0?l.contentStyle:l.contentActiveStyle);function h(){const E={};return xs.forEach(_=>{const b=a[_];Object.assign(E,{[_+"Position"]:b.position.value,[_+"Percentage"]:b.percentage.value,[_+"Size"]:b.size.value,[_+"ContainerSize"]:o[_].value,[_+"ContainerInnerSize"]:o[_+"Inner"].value})}),E}const f=Di(()=>{const E=h();E.ref=n,t("scroll",E)},0);function g(E,_,b){if(xs.includes(E)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(E==="vertical"?ms:Yn)(s.value,_,b)}function p({height:E,width:_}){let b=!1;o.vertical.value!==E&&(o.vertical.value=E,b=!0),o.horizontal.value!==_&&(o.horizontal.value=_,b=!0),b===!0&&q()}function x({position:E}){let _=!1;a.vertical.position.value!==E.top&&(a.vertical.position.value=E.top,_=!0),a.horizontal.position.value!==E.left&&(a.horizontal.position.value=E.left,_=!0),_===!0&&q()}function C({height:E,width:_}){a.horizontal.size.value!==_&&(a.horizontal.size.value=_,q()),a.vertical.size.value!==E&&(a.vertical.size.value=E,q())}function T(E,_){const b=a[_];if(E.isFirst===!0){if(b.thumbHidden.value===!0)return;u=b.position.value,m.value=!0}else if(m.value!==!0)return;E.isFinal===!0&&(m.value=!1);const y=Kn[_],w=(b.size.value-o[_].value)/(o[_+"Inner"].value-b.thumbSize.value),S=E.distance[y.dist],M=u+(E.direction===y.dir?1:-1)*S*w;N(M,_)}function D(E,_){const b=a[_];if(b.thumbHidden.value!==!0){const y=_==="vertical"?l.verticalOffset[0]:l.horizontalOffset[0],w=E[Kn[_].offset]-y,S=b.thumbStart.value-y;if(w<S||w>S+b.thumbSize.value){const M=w-b.thumbSize.value/2,B=Or(M/(o[_+"Inner"].value-b.thumbSize.value),0,1);N(B*Math.max(0,b.size.value-o[_].value),_)}b.ref.value!==null&&b.ref.value.dispatchEvent(new MouseEvent(E.type,E))}}function q(){v.value=!0,r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,v.value=!1},l.delay),l.onScroll!==void 0&&f()}function N(E,_){s.value[Kn[_].scroll]=E}let P=null;function V(){P!==null&&clearTimeout(P),P=setTimeout(()=>{P=null,c.value=!0},n.$q.platform.is.ios?50:0)}function W(){P!==null&&(clearTimeout(P),P=null),c.value=!1}let L=null;k.watch(()=>n.$q.lang.rtl,E=>{s.value!==null&&Yn(s.value,Math.abs(a.horizontal.position.value)*(E===!0?-1:1))}),k.onDeactivated(()=>{L={top:a.vertical.position.value,left:a.horizontal.position.value}}),k.onActivated(()=>{if(L===null)return;const E=s.value;E!==null&&(Yn(E,L.left),ms(E,L.top))}),k.onBeforeUnmount(f.cancel),Object.assign(n,{getScrollTarget:()=>s.value,getScroll:h,getScrollPosition:()=>({top:a.vertical.position.value,left:a.horizontal.position.value}),getScrollPercentage:()=>({top:a.vertical.percentage.value,left:a.horizontal.percentage.value}),setScrollPosition:g,setScrollPercentage(E,_,b){g(E,_*(a[E].size.value-o[E].value)*(E==="horizontal"&&n.$q.lang.rtl===!0?-1:1),b)}});const A={scroll:a,thumbVertDir:[[ys,E=>{T(E,"vertical")},void 0,{vertical:!0,...Ss}]],thumbHorizDir:[[ys,E=>{T(E,"horizontal")},void 0,{horizontal:!0,...Ss}]],onVerticalMousedown(E){D(E,"vertical")},onHorizontalMousedown(E){D(E,"horizontal")}};return()=>k.h("div",{class:i.value,onMouseenter:V,onMouseleave:W},[k.h("div",{ref:s,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:l.tabindex!==void 0?l.tabindex:void 0},[k.h("div",{class:"q-scrollarea__content absolute",style:d.value},It(I.default,[k.h(Er,{debounce:0,onResize:C})])),k.h(So,{axis:"both",onScroll:x})]),k.h(Er,{debounce:0,onResize:p}),k.h(nl,{store:A,barStyle:l.barStyle,verticalBarStyle:l.verticalBarStyle,horizontalBarStyle:l.horizontalBarStyle})])}}),Qr=$e({name:"QCard",props:{...Ot,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(l,{slots:I}){const{proxy:{$q:t}}=k.getCurrentInstance(),v=jt(l,t),m=k.computed(()=>"q-card"+(v.value===!0?" q-card--dark q-dark":"")+(l.bordered===!0?" q-card--bordered":"")+(l.square===!0?" q-card--square no-border-radius":"")+(l.flat===!0?" q-card--flat no-shadow":""));return()=>k.h(l.tag,{class:m.value},gt(I.default))}}),ko={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},_o={...ko,contextMenu:Boolean};function Ni({showing:l,avoidEmit:I,configureAnchorEl:t}){const{props:v,proxy:m,emit:c}=k.getCurrentInstance(),o=k.ref(null);let a=null;function n(i){return o.value===null?!1:i===void 0||i.touches===void 0||i.touches.length<=1}const e={};t===void 0&&(Object.assign(e,{hide(i){m.hide(i)},toggle(i){m.toggle(i),i.qAnchorHandled=!0},toggleKey(i){nr(i,13)===!0&&e.toggle(i)},contextClick(i){m.hide(i),Bt(i),k.nextTick(()=>{m.show(i),i.qAnchorHandled=!0})},prevent:Bt,mobileTouch(i){if(e.mobileCleanup(i),n(i)!==!0)return;m.hide(i),o.value.classList.add("non-selectable");const d=i.target;Qt(e,"anchor",[[d,"touchmove","mobileCleanup","passive"],[d,"touchend","mobileCleanup","passive"],[d,"touchcancel","mobileCleanup","passive"],[o.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,m.show(i),i.qAnchorHandled=!0},300)},mobileCleanup(i){o.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),l.value===!0&&i!==void 0&&kn()}}),t=function(i=v.contextMenu){if(v.noParentEvent===!0||o.value===null)return;let d;i===!0?m.$q.platform.is.mobile===!0?d=[[o.value,"touchstart","mobileTouch","passive"]]:d=[[o.value,"mousedown","hide","passive"],[o.value,"contextmenu","contextClick","notPassive"]]:d=[[o.value,"click","toggle","passive"],[o.value,"keyup","toggleKey","passive"]],Qt(e,"anchor",d)});function r(){cr(e,"anchor")}function u(i){for(o.value=i;o.value.classList.contains("q-anchor--skip");)o.value=o.value.parentNode;t()}function s(){if(v.target===!1||v.target===""||m.$el.parentNode===null)o.value=null;else if(v.target===!0)u(m.$el.parentNode);else{let i=v.target;if(typeof v.target=="string")try{i=document.querySelector(v.target)}catch{i=void 0}i!=null?(o.value=i.$el||i,t()):(o.value=null,console.error(`Anchor: target "${v.target}" not found`))}}return k.watch(()=>v.contextMenu,i=>{o.value!==null&&(r(),t(i))}),k.watch(()=>v.target,()=>{o.value!==null&&r(),s()}),k.watch(()=>v.noParentEvent,i=>{o.value!==null&&(i===!0?r():t())}),k.onMounted(()=>{s(),I!==!0&&v.modelValue===!0&&o.value===null&&c("update:modelValue",!1)}),k.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),r()}),{anchorEl:o,canShow:n,anchorEvents:e}}function Co(l,I){const t=k.ref(null);let v;function m(a,n){const e=`${n!==void 0?"add":"remove"}EventListener`,r=n!==void 0?n:v;a!==window&&a[e]("scroll",r,_t.passive),window[e]("scroll",r,_t.passive),v=n}function c(){t.value!==null&&(m(t.value),t.value=null)}const o=k.watch(()=>l.noParentEvent,()=>{t.value!==null&&(c(),I())});return k.onBeforeUnmount(o),{localScrollTarget:t,unconfigureScrollTarget:c,changeScrollEvent:m}}const Pi={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Li=["beforeShow","show","beforeHide","hide"];function Vi({showing:l,canShow:I,hideOnRouteChange:t,handleShow:v,handleHide:m,processOnMount:c}){const o=k.getCurrentInstance(),{props:a,emit:n,proxy:e}=o;let r;function u(p){l.value===!0?d(p):s(p)}function s(p){if(a.disable===!0||p?.qAnchorHandled===!0||I!==void 0&&I(p)!==!0)return;const x=a["onUpdate:modelValue"]!==void 0;x===!0&&(n("update:modelValue",!0),r=p,k.nextTick(()=>{r===p&&(r=void 0)})),(a.modelValue===null||x===!1)&&i(p)}function i(p){l.value!==!0&&(l.value=!0,n("beforeShow",p),v!==void 0?v(p):n("show",p))}function d(p){if(a.disable===!0)return;const x=a["onUpdate:modelValue"]!==void 0;x===!0&&(n("update:modelValue",!1),r=p,k.nextTick(()=>{r===p&&(r=void 0)})),(a.modelValue===null||x===!1)&&h(p)}function h(p){l.value!==!1&&(l.value=!1,n("beforeHide",p),m!==void 0?m(p):n("hide",p))}function f(p){a.disable===!0&&p===!0?a["onUpdate:modelValue"]!==void 0&&n("update:modelValue",!1):p===!0!==l.value&&(p===!0?i:h)(r)}k.watch(()=>a.modelValue,f),t!==void 0&&Ei(o)===!0&&k.watch(()=>e.$route.fullPath,()=>{t.value===!0&&l.value===!0&&d()}),k.onMounted(()=>{f(a.modelValue)});const g={show:s,hide:d,toggle:u};return Object.assign(e,g),g}let ur=[],Wr=[];function Ao(l){Wr=Wr.filter(I=>I!==l)}function bl(l){Ao(l),Wr.push(l)}function _s(l){Ao(l),Wr.length===0&&ur.length!==0&&(ur[ur.length-1](),ur=[])}function Kr(l){Wr.length===0?l():ur.push(l)}function vl(l){ur=ur.filter(I=>I!==l)}const Cs={};let yl=1,wl=document.body;function xl(l,I){const t=document.createElement("div");if(t.id=I!==void 0?`q-portal--${I}--${yl++}`:l,Cs.globalNodes!==void 0){const v=Cs.globalNodes.class;v!==void 0&&(t.className=v)}return wl.appendChild(t),t}function Sl(l){l.remove()}const Cr=[];function kl(l){return Cr.find(I=>I.contentEl!==null&&I.contentEl.contains(l))}function Eo(l,I){do{if(l.$options.name==="QMenu"){if(l.hide(I),l.$props.separateClosePopup===!0)return vn(l)}else if(l.__qPortal===!0){const t=vn(l);return t?.$options.name==="QPopupProxy"?(l.hide(I),t):l}l=vn(l)}while(l!=null)}function _l(l,I,t){for(;t!==0&&l!==void 0&&l!==null;){if(l.__qPortal===!0){if(t--,l.$options.name==="QMenu"){l=Eo(l,I);continue}l.hide(I)}l=vn(l)}}const Cl=$e({name:"QPortal",setup(l,{slots:I}){return()=>I.default()}});function Al(l){for(l=l.parent;l!=null;){if(l.type.name==="QGlobalDialog")return!0;if(l.type.name==="QDialog"||l.type.name==="QMenu")return!1;l=l.parent}return!1}function qi(l,I,t,v){const m=k.ref(!1),c=k.ref(!1);let o=null;const a={},n=v==="dialog"&&Al(l);function e(u){if(u===!0){_s(a),c.value=!0;return}c.value=!1,m.value===!1&&(n===!1&&o===null&&(o=xl(!1,v)),m.value=!0,Cr.push(l.proxy),bl(a))}function r(u){if(c.value=!1,u!==!0)return;_s(a),m.value=!1;const s=Cr.indexOf(l.proxy);s!==-1&&Cr.splice(s,1),o!==null&&(Sl(o),o=null)}return k.onUnmounted(()=>{r(!0)}),l.proxy.__qPortal=!0,Lt(l.proxy,"contentEl",()=>I.value),{showPortal:e,hidePortal:r,portalIsActive:m,portalIsAccessible:c,renderPortal:()=>n===!0?t():m.value===!0?[k.h(k.Teleport,{to:o},k.h(Cl,t))]:void 0}}const Vr={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function zi(l,I=()=>{},t=()=>{}){return{transitionProps:k.computed(()=>{const v=`q-transition--${l.transitionShow||I()}`,m=`q-transition--${l.transitionHide||t()}`;return{appear:!0,enterFromClass:`${v}-enter-from`,enterActiveClass:`${v}-enter-active`,enterToClass:`${v}-enter-to`,leaveFromClass:`${m}-leave-from`,leaveActiveClass:`${m}-leave-active`,leaveToClass:`${m}-leave-to`}}),transitionStyle:k.computed(()=>`--q-transition-duration: ${l.transitionDuration}ms`)}}function Ui(){let l;const I=k.getCurrentInstance();function t(){l=void 0}return k.onDeactivated(t),k.onBeforeUnmount(t),{removeTick:t,registerTick(v){l=v,k.nextTick(()=>{l===v&&(Mi(I)===!1&&l(),l=void 0)})}}}function Wi(){let l=null;const I=k.getCurrentInstance();function t(){l!==null&&(clearTimeout(l),l=null)}return k.onDeactivated(t),k.onBeforeUnmount(t),{removeTimeout:t,registerTimeout(v,m){t(),Mi(I)===!1&&(l=setTimeout(()=>{l=null,v()},m))}}}const fr=[];let Mr;function El(l){Mr=l.keyCode===27}function Ml(){Mr===!0&&(Mr=!1)}function Tl(l){Mr===!0&&(Mr=!1,nr(l,27)===!0&&fr[fr.length-1](l))}function Mo(l){window[l]("keydown",El),window[l]("blur",Ml),window[l]("keyup",Tl),Mr=!1}function To(l){Et.is.desktop===!0&&(fr.push(l),fr.length===1&&Mo("addEventListener"))}function _n(l){const I=fr.indexOf(l);I!==-1&&(fr.splice(I,1),fr.length===0&&Mo("removeEventListener"))}const dr=[];function Ro(l){dr[dr.length-1](l)}function Bo(l){Et.is.desktop===!0&&(dr.push(l),dr.length===1&&document.body.addEventListener("focusin",Ro))}function mi(l){const I=dr.indexOf(l);I!==-1&&(dr.splice(I,1),dr.length===0&&document.body.removeEventListener("focusin",Ro))}const{notPassiveCapture:Cn}=_t,hr=[];function An(l){const I=l.target;if(I===void 0||I.nodeType===8||I.classList.contains("no-pointer-events")===!0)return;let t=Cr.length-1;for(;t>=0;){const v=Cr[t].$;if(v.type.name==="QTooltip"){t--;continue}if(v.type.name!=="QDialog")break;if(v.props.seamless!==!0)return;t--}for(let v=hr.length-1;v>=0;v--){const m=hr[v];if((m.anchorEl.value===null||m.anchorEl.value.contains(I)===!1)&&(I===document.body||m.innerRef.value!==null&&m.innerRef.value.contains(I)===!1))l.qClickOutside=!0,m.onClickOutside(l);else return}}function Io(l){hr.push(l),hr.length===1&&(document.addEventListener("mousedown",An,Cn),document.addEventListener("touchstart",An,Cn))}function En(l){const I=hr.findIndex(t=>t===l);I!==-1&&(hr.splice(I,1),hr.length===0&&(document.removeEventListener("mousedown",An,Cn),document.removeEventListener("touchstart",An,Cn)))}let As,Es;function Mn(l){const I=l.split(" ");return I.length!==2?!1:["top","center","bottom"].includes(I[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(I[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Oo(l){return l?!(l.length!==2||typeof l[0]!="number"||typeof l[1]!="number"):!0}const gi={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(l=>{gi[`${l}#ltr`]=l,gi[`${l}#rtl`]=l});function Tn(l,I){const t=l.split(" ");return{vertical:t[0],horizontal:gi[`${t[1]}#${I===!0?"rtl":"ltr"}`]}}function Rl(l,I){let{top:t,left:v,right:m,bottom:c,width:o,height:a}=l.getBoundingClientRect();return I!==void 0&&(t-=I[1],v-=I[0],c+=I[1],m+=I[0],o+=I[0],a+=I[1]),{top:t,bottom:c,height:a,left:v,right:m,width:o,middle:v+(m-v)/2,center:t+(c-t)/2}}function Bl(l,I,t){let{top:v,left:m}=l.getBoundingClientRect();return v+=I.top,m+=I.left,t!==void 0&&(v+=t[1],m+=t[0]),{top:v,bottom:v+1,height:1,left:m,right:m+1,width:1,middle:m,center:v}}function Il(l,I){return{top:0,center:I/2,bottom:I,left:0,middle:l/2,right:l}}function Ms(l,I,t,v){return{top:l[t.vertical]-I[v.vertical],left:l[t.horizontal]-I[v.horizontal]}}function Hi(l,I=0){if(l.targetEl===null||l.anchorEl===null||I>5)return;if(l.targetEl.offsetHeight===0||l.targetEl.offsetWidth===0){setTimeout(()=>{Hi(l,I+1)},10);return}const{targetEl:t,offset:v,anchorEl:m,anchorOrigin:c,selfOrigin:o,absoluteOffset:a,fit:n,cover:e,maxHeight:r,maxWidth:u}=l;if(Et.is.ios===!0&&window.visualViewport!==void 0){const D=document.body.style,{offsetLeft:q,offsetTop:N}=window.visualViewport;q!==As&&(D.setProperty("--q-pe-left",q+"px"),As=q),N!==Es&&(D.setProperty("--q-pe-top",N+"px"),Es=N)}const{scrollLeft:s,scrollTop:i}=t,d=a===void 0?Rl(m,e===!0?[0,0]:v):Bl(m,a,v);Object.assign(t.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:u,maxHeight:r,visibility:"visible"});const{offsetWidth:h,offsetHeight:f}=t,{elWidth:g,elHeight:p}=n===!0||e===!0?{elWidth:Math.max(d.width,h),elHeight:e===!0?Math.max(d.height,f):f}:{elWidth:h,elHeight:f};let x={maxWidth:u,maxHeight:r};(n===!0||e===!0)&&(x.minWidth=d.width+"px",e===!0&&(x.minHeight=d.height+"px")),Object.assign(t.style,x);const C=Il(g,p);let T=Ms(d,C,c,o);if(a===void 0||v===void 0)Xn(T,d,C,c,o);else{const{top:D,left:q}=T;Xn(T,d,C,c,o);let N=!1;if(T.top!==D){N=!0;const P=2*v[1];d.center=d.top-=P,d.bottom-=P+2}if(T.left!==q){N=!0;const P=2*v[0];d.middle=d.left-=P,d.right-=P+2}N===!0&&(T=Ms(d,C,c,o),Xn(T,d,C,c,o))}x={top:T.top+"px",left:T.left+"px"},T.maxHeight!==void 0&&(x.maxHeight=T.maxHeight+"px",d.height>T.maxHeight&&(x.minHeight=x.maxHeight)),T.maxWidth!==void 0&&(x.maxWidth=T.maxWidth+"px",d.width>T.maxWidth&&(x.minWidth=x.maxWidth)),Object.assign(t.style,x),t.scrollTop!==i&&(t.scrollTop=i),t.scrollLeft!==s&&(t.scrollLeft=s)}function Xn(l,I,t,v,m){const c=t.bottom,o=t.right,a=yn(),n=window.innerHeight-a,e=document.body.clientWidth;if(l.top<0||l.top+c>n)if(m.vertical==="center")l.top=I[v.vertical]>n/2?Math.max(0,n-c):0,l.maxHeight=Math.min(c,n);else if(I[v.vertical]>n/2){const r=Math.min(n,v.vertical==="center"?I.center:v.vertical===m.vertical?I.bottom:I.top);l.maxHeight=Math.min(c,r),l.top=Math.max(0,r-c)}else l.top=Math.max(0,v.vertical==="center"?I.center:v.vertical===m.vertical?I.top:I.bottom),l.maxHeight=Math.min(c,n-l.top);if(l.left<0||l.left+o>e)if(l.maxWidth=Math.min(o,e),m.horizontal==="middle")l.left=I[v.horizontal]>e/2?Math.max(0,e-o):0;else if(I[v.horizontal]>e/2){const r=Math.min(e,v.horizontal==="middle"?I.middle:v.horizontal===m.horizontal?I.right:I.left);l.maxWidth=Math.min(o,r),l.left=Math.max(0,r-l.maxWidth)}else l.left=Math.max(0,v.horizontal==="middle"?I.middle:v.horizontal===m.horizontal?I.left:I.right),l.maxWidth=Math.min(o,e-l.left)}const Xr=$e({name:"QMenu",inheritAttrs:!1,props:{..._o,...Pi,...Ot,...Vr,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Mn},self:{type:String,validator:Mn},offset:{type:Array,validator:Oo},scrollTarget:Dn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Li,"click","escapeKey"],setup(l,{slots:I,emit:t,attrs:v}){let m=null,c,o,a;const n=k.getCurrentInstance(),{proxy:e}=n,{$q:r}=e,u=k.ref(null),s=k.ref(!1),i=k.computed(()=>l.persistent!==!0&&l.noRouteDismiss!==!0),d=jt(l,r),{registerTick:h,removeTick:f}=Ui(),{registerTimeout:g}=Wi(),{transitionProps:p,transitionStyle:x}=zi(l),{localScrollTarget:C,changeScrollEvent:T,unconfigureScrollTarget:D}=Co(l,H),{anchorEl:q,canShow:N}=Ni({showing:s}),{hide:P}=Vi({showing:s,canShow:N,handleShow:M,handleHide:B,hideOnRouteChange:i,processOnMount:!0}),{showPortal:V,hidePortal:W,renderPortal:L}=qi(n,u,j,"menu"),A={anchorEl:q,innerRef:u,onClickOutside(R){if(l.persistent!==!0&&s.value===!0)return P(R),(R.type==="touchstart"||R.target.classList.contains("q-dialog__backdrop"))&&St(R),!0}},E=k.computed(()=>Tn(l.anchor||(l.cover===!0?"center middle":"bottom start"),r.lang.rtl)),_=k.computed(()=>l.cover===!0?E.value:Tn(l.self||"top start",r.lang.rtl)),b=k.computed(()=>(l.square===!0?" q-menu--square":"")+(d.value===!0?" q-menu--dark q-dark":"")),y=k.computed(()=>l.autoClose===!0?{onClick:z}:{}),w=k.computed(()=>s.value===!0&&l.persistent!==!0);k.watch(w,R=>{R===!0?(To(F),Io(A)):(_n(F),En(A))});function S(){Kr(()=>{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 M(R){if(m=l.noRefocus===!1?document.activeElement:null,Bo(Q),V(),H(),c=void 0,R!==void 0&&(l.touchPosition||l.contextMenu)){const U=Ur(R);if(U.left!==void 0){const{top:K,left:$}=q.value.getBoundingClientRect();c={left:U.left-$,top:U.top-K}}}o===void 0&&(o=k.watch(()=>r.screen.width+"|"+r.screen.height+"|"+l.self+"|"+l.anchor+"|"+r.lang.rtl,Y)),l.noFocus!==!0&&document.activeElement.blur(),h(()=>{Y(),l.noFocus!==!0&&S()}),g(()=>{r.platform.is.ios===!0&&(a=l.autoClose,u.value.click()),Y(),V(!0),t("show",R)},l.transitionDuration)}function B(R){f(),W(),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),g(()=>{W(!0),t("hide",R)},l.transitionDuration)}function O(R){c=void 0,o!==void 0&&(o(),o=void 0),(R===!0||s.value===!0)&&(mi(Q),D(),En(A),_n(F)),R!==!0&&(m=null)}function H(){(q.value!==null||l.scrollTarget!==void 0)&&(C.value=Nn(q.value,l.scrollTarget),T(C.value,Y))}function z(R){a!==!0?(Eo(e,R),t("click",R)):a=!1}function Q(R){w.value===!0&&l.noFocus!==!0&&po(u.value,R.target)!==!0&&S()}function F(R){l.noEscDismiss!==!0&&(t("escapeKey"),P(R))}function Y(){Hi({targetEl:u.value,offset:l.offset,anchorEl:q.value,anchorOrigin:E.value,selfOrigin:_.value,absoluteOffset:c,fit:l.fit,cover:l.cover,maxHeight:l.maxHeight,maxWidth:l.maxWidth})}function j(){return k.h(k.Transition,p.value,()=>s.value===!0?k.h("div",{role:"menu",...v,ref:u,tabindex:-1,class:["q-menu q-position-engine scroll"+b.value,v.class],style:[v.style,x.value],...y.value},gt(I.default)):null)}return k.onBeforeUnmount(O),Object.assign(e,{focus:S,updatePosition:Y}),L}});let Gn,on=0;const Mt=new Array(256);for(let l=0;l<256;l++)Mt[l]=(l+256).toString(16).substring(1);const Ol=(()=>{const l=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(l!==void 0){if(l.randomBytes!==void 0)return l.randomBytes;if(l.getRandomValues!==void 0)return I=>{const t=new Uint8Array(I);return l.getRandomValues(t),t}}return I=>{const t=[];for(let v=I;v>0;v--)t.push(Math.floor(Math.random()*256));return t}})(),Ts=4096;function bi(){(Gn===void 0||on+16>Ts)&&(on=0,Gn=Ol(Ts));const l=Array.prototype.slice.call(Gn,on,on+=16);return l[6]=l[6]&15|64,l[8]=l[8]&63|128,Mt[l[0]]+Mt[l[1]]+Mt[l[2]]+Mt[l[3]]+"-"+Mt[l[4]]+Mt[l[5]]+"-"+Mt[l[6]]+Mt[l[7]]+"-"+Mt[l[8]]+Mt[l[9]]+"-"+Mt[l[10]]+Mt[l[11]]+Mt[l[12]]+Mt[l[13]]+Mt[l[14]]+Mt[l[15]]}function jl(l){return l??null}function Rs(l,I){return l??(I===!0?`f_${bi()}`:null)}function Fl({getValue:l,required:I=!0}={}){if(ir.value===!0){const t=l!==void 0?k.ref(jl(l())):k.ref(null);return I===!0&&t.value===null&&k.onMounted(()=>{t.value=`f_${bi()}`}),l!==void 0&&k.watch(l,v=>{t.value=Rs(v,I)}),t}return l!==void 0?k.computed(()=>Rs(l(),I)):k.ref(`f_${bi()}`)}const Bs=/^on[A-Z]/;function Dl(){const{attrs:l,vnode:I}=k.getCurrentInstance(),t={listeners:k.ref({}),attributes:k.ref({})};function v(){const m={},c={};for(const o in l)o!=="class"&&o!=="style"&&Bs.test(o)===!1&&(m[o]=l[o]);for(const o in I.props)Bs.test(o)===!0&&(c[o]=I.props[o]);t.attributes.value=m,t.listeners.value=c}return k.onBeforeUpdate(v),v(),t}const Nl="_q_",Gr="_q_l_",jo="_q_pc_",Fo="_q_fo_";function Rt(){}function Pl({validate:l,resetValidation:I,requiresQForm:t}){const v=k.inject(Fo,!1);if(v!==!1){const{props:m,proxy:c}=k.getCurrentInstance();Object.assign(c,{validate:l,resetValidation:I}),k.watch(()=>m.disable,o=>{o===!0?(typeof I=="function"&&I(),v.unbindComponent(c)):v.bindComponent(c)}),k.onMounted(()=>{m.disable!==!0&&v.bindComponent(c)}),k.onBeforeUnmount(()=>{m.disable!==!0&&v.unbindComponent(c)})}else t===!0&&console.error("Parent QForm not found on useFormChild()!")}const Is=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Os=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,js=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,an=/^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])\)$/,ln=/^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)\)$/,Jn={date:l=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(l),time:l=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(l),fulltime:l=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(l),timeOrFulltime:l=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(l),email:l=>/^(([^<>()\[\]\\.,;:\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(l),hexColor:l=>Is.test(l),hexaColor:l=>Os.test(l),hexOrHexaColor:l=>js.test(l),rgbColor:l=>an.test(l),rgbaColor:l=>ln.test(l),rgbOrRgbaColor:l=>an.test(l)||ln.test(l),hexOrRgbColor:l=>Is.test(l)||an.test(l),hexaOrRgbaColor:l=>Os.test(l)||ln.test(l),anyColor:l=>js.test(l)||an.test(l)||ln.test(l)},Ll=[!0,!1,"ondemand"],Vl={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:l=>Ll.includes(l)}};function ql(l,I){const{props:t,proxy:v}=k.getCurrentInstance(),m=k.ref(!1),c=k.ref(null),o=k.ref(!1);Pl({validate:h,resetValidation:d});let a=0,n;const e=k.computed(()=>t.rules!==void 0&&t.rules!==null&&t.rules.length!==0),r=k.computed(()=>t.disable!==!0&&e.value===!0&&I.value===!1),u=k.computed(()=>t.error===!0||m.value===!0),s=k.computed(()=>typeof t.errorMessage=="string"&&t.errorMessage.length!==0?t.errorMessage:c.value);k.watch(()=>t.modelValue,()=>{o.value=!0,r.value===!0&&t.lazyRules===!1&&f()});function i(){t.lazyRules!=="ondemand"&&r.value===!0&&o.value===!0&&f()}k.watch(()=>t.reactiveRules,g=>{g===!0?n===void 0&&(n=k.watch(()=>t.rules,i,{immediate:!0,deep:!0})):n!==void 0&&(n(),n=void 0)},{immediate:!0}),k.watch(()=>t.lazyRules,i),k.watch(l,g=>{g===!0?o.value=!0:r.value===!0&&t.lazyRules!=="ondemand"&&f()});function d(){a++,I.value=!1,o.value=!1,m.value=!1,c.value=null,f.cancel()}function h(g=t.modelValue){if(t.disable===!0||e.value===!1)return!0;const p=++a,x=I.value!==!0?()=>{o.value=!0}:()=>{},C=(D,q)=>{D===!0&&x(),m.value=D,c.value=q||null,I.value=!1},T=[];for(let D=0;D<t.rules.length;D++){const q=t.rules[D];let N;if(typeof q=="function"?N=q(g,Jn):typeof q=="string"&&Jn[q]!==void 0&&(N=Jn[q](g)),N===!1||typeof N=="string")return C(!0,N),!1;N!==!0&&N!==void 0&&T.push(N)}return T.length===0?(C(!1),!0):(I.value=!0,Promise.all(T).then(D=>{if(D===void 0||Array.isArray(D)===!1||D.length===0)return p===a&&C(!1),!0;const q=D.find(N=>N===!1||typeof N=="string");return p===a&&C(q!==void 0,q),q===void 0},D=>(p===a&&(console.error(D),C(!0)),!1)))}const f=Di(h,0);return k.onBeforeUnmount(()=>{n?.(),f.cancel()}),Object.assign(v,{resetValidation:d,validate:h}),Lt(v,"hasError",()=>u.value),{isDirtyModel:o,hasRules:e,hasError:u,errorMessage:s,validate:h,resetValidation:d}}function Hr(l){return l!=null&&(""+l).length!==0}const zl={...Ot,...Vl,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},Pn={...zl,maxlength:[Number,String]},Yi=["update:modelValue","clear","focus","blur"];function Qi({requiredForAttr:l=!0,tagProp:I,changeEvent:t=!1}={}){const{props:v,proxy:m}=k.getCurrentInstance(),c=jt(v,m.$q),o=Fl({required:l,getValue:()=>v.for});return{requiredForAttr:l,changeEvent:t,tag:I===!0?k.computed(()=>v.tag):{value:"label"},isDark:c,editable:k.computed(()=>v.disable!==!0&&v.readonly!==!0),innerLoading:k.ref(!1),focused:k.ref(!1),hasPopupOpen:!1,splitAttrs:Dl(),targetUid:o,rootRef:k.ref(null),targetRef:k.ref(null),controlRef:k.ref(null)}}function Ki(l){const{props:I,emit:t,slots:v,attrs:m,proxy:c}=k.getCurrentInstance(),{$q:o}=c;let a=null;l.hasValue===void 0&&(l.hasValue=k.computed(()=>Hr(I.modelValue))),l.emitValue===void 0&&(l.emitValue=w=>{t("update:modelValue",w)}),l.controlEvents===void 0&&(l.controlEvents={onFocusin:P,onFocusout:V}),Object.assign(l,{clearValue:W,onControlFocusin:P,onControlFocusout:V,focus:q}),l.computedCounter===void 0&&(l.computedCounter=k.computed(()=>{if(I.counter!==!1){const w=typeof I.modelValue=="string"||typeof I.modelValue=="number"?(""+I.modelValue).length:Array.isArray(I.modelValue)===!0?I.modelValue.length:0,S=I.maxlength!==void 0?I.maxlength:I.maxValues;return w+(S!==void 0?" / "+S:"")}}));const{isDirtyModel:n,hasRules:e,hasError:r,errorMessage:u,resetValidation:s}=ql(l.focused,l.innerLoading),i=l.floatingLabel!==void 0?k.computed(()=>I.stackLabel===!0||l.focused.value===!0||l.floatingLabel.value===!0):k.computed(()=>I.stackLabel===!0||l.focused.value===!0||l.hasValue.value===!0),d=k.computed(()=>I.bottomSlots===!0||I.hint!==void 0||e.value===!0||I.counter===!0||I.error!==null),h=k.computed(()=>I.filled===!0?"filled":I.outlined===!0?"outlined":I.borderless===!0?"borderless":I.standout?"standout":"standard"),f=k.computed(()=>`q-field row no-wrap items-start q-field--${h.value}`+(l.fieldClass!==void 0?` ${l.fieldClass.value}`:"")+(I.rounded===!0?" q-field--rounded":"")+(I.square===!0?" q-field--square":"")+(i.value===!0?" q-field--float":"")+(p.value===!0?" q-field--labeled":"")+(I.dense===!0?" q-field--dense":"")+(I.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(l.isDark.value===!0?" q-field--dark":"")+(l.getControl===void 0?" q-field--auto-height":"")+(l.focused.value===!0?" q-field--focused":"")+(r.value===!0?" q-field--error":"")+(r.value===!0||l.focused.value===!0?" q-field--highlighted":"")+(I.hideBottomSpace!==!0&&d.value===!0?" q-field--with-bottom":"")+(I.disable===!0?" q-field--disabled":I.readonly===!0?" q-field--readonly":"")),g=k.computed(()=>"q-field__control relative-position row no-wrap"+(I.bgColor!==void 0?` bg-${I.bgColor}`:"")+(r.value===!0?" text-negative":typeof I.standout=="string"&&I.standout.length!==0&&l.focused.value===!0?` ${I.standout}`:I.color!==void 0?` text-${I.color}`:"")),p=k.computed(()=>I.labelSlot===!0||I.label!==void 0),x=k.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(I.labelColor!==void 0&&r.value!==!0?` text-${I.labelColor}`:"")),C=k.computed(()=>({id:l.targetUid.value,editable:l.editable.value,focused:l.focused.value,floatingLabel:i.value,modelValue:I.modelValue,emitValue:l.emitValue})),T=k.computed(()=>{const w={};return l.targetUid.value&&(w.for=l.targetUid.value),I.disable===!0&&(w["aria-disabled"]="true"),w});function D(){const w=document.activeElement;let S=l.targetRef?.value;S&&(w===null||w.id!==l.targetUid.value)&&(S.hasAttribute("tabindex")===!0||(S=S.querySelector("[tabindex]")),S!==w&&S?.focus({preventScroll:!0}))}function q(){Kr(D)}function N(){vl(D);const w=document.activeElement;w!==null&&l.rootRef.value.contains(w)&&w.blur()}function P(w){a!==null&&(clearTimeout(a),a=null),l.editable.value===!0&&l.focused.value===!1&&(l.focused.value=!0,t("focus",w))}function V(w,S){a!==null&&clearTimeout(a),a=setTimeout(()=>{a=null,!(document.hasFocus()===!0&&(l.hasPopupOpen===!0||l.controlRef===void 0||l.controlRef.value===null||l.controlRef.value.contains(document.activeElement)!==!1))&&(l.focused.value===!0&&(l.focused.value=!1,t("blur",w)),S?.())})}function W(w){St(w),o.platform.is.mobile!==!0?(l.targetRef?.value||l.rootRef.value).focus():l.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),I.type==="file"&&(l.inputRef.value.value=null),t("update:modelValue",null),l.changeEvent===!0&&t("change",null),t("clear",I.modelValue),k.nextTick(()=>{const S=n.value;s(),n.value=S})}function L(w){[13,32].includes(w.keyCode)&&W(w)}function A(){const w=[];return v.prepend!==void 0&&w.push(k.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Bt},v.prepend())),w.push(k.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},E())),r.value===!0&&I.noErrorIcon===!1&&w.push(b("error",[k.h(wt,{name:o.iconSet.field.error,color:"negative"})])),I.loading===!0||l.innerLoading.value===!0?w.push(b("inner-loading-append",v.loading!==void 0?v.loading():[k.h(ho,{color:I.color})])):I.clearable===!0&&l.hasValue.value===!0&&l.editable.value===!0&&w.push(b("inner-clearable-append",[k.h(wt,{class:"q-field__focusable-action",name:I.clearIcon||o.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":o.lang.label.clear,onKeyup:L,onClick:W})])),v.append!==void 0&&w.push(k.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Bt},v.append())),l.getInnerAppend!==void 0&&w.push(b("inner-append",l.getInnerAppend())),l.getControlChild!==void 0&&w.push(l.getControlChild()),w}function E(){const w=[];return I.prefix!==void 0&&I.prefix!==null&&w.push(k.h("div",{class:"q-field__prefix no-pointer-events row items-center"},I.prefix)),l.getShadowControl!==void 0&&l.hasShadow.value===!0&&w.push(l.getShadowControl()),l.getControl!==void 0?w.push(l.getControl()):v.rawControl!==void 0?w.push(v.rawControl()):v.control!==void 0&&w.push(k.h("div",{ref:l.targetRef,class:"q-field__native row",tabindex:-1,...l.splitAttrs.attributes.value,"data-autofocus":I.autofocus===!0||void 0},v.control(C.value))),p.value===!0&&w.push(k.h("div",{class:x.value},gt(v.label,I.label))),I.suffix!==void 0&&I.suffix!==null&&w.push(k.h("div",{class:"q-field__suffix no-pointer-events row items-center"},I.suffix)),w.concat(gt(v.default))}function _(){let w,S;r.value===!0?u.value!==null?(w=[k.h("div",{role:"alert"},u.value)],S=`q--slot-error-${u.value}`):(w=gt(v.error),S="q--slot-error"):(I.hideHint!==!0||l.focused.value===!0)&&(I.hint!==void 0?(w=[k.h("div",I.hint)],S=`q--slot-hint-${I.hint}`):(w=gt(v.hint),S="q--slot-hint"));const M=I.counter===!0||v.counter!==void 0;if(I.hideBottomSpace===!0&&M===!1&&w===void 0)return;const B=k.h("div",{key:S,class:"q-field__messages col"},w);return k.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(I.hideBottomSpace!==!0?"animated":"stale"),onClick:Bt},[I.hideBottomSpace===!0?B:k.h(k.Transition,{name:"q-transition--field-message"},()=>B),M===!0?k.h("div",{class:"q-field__counter"},v.counter!==void 0?v.counter():l.computedCounter.value):null])}function b(w,S){return S===null?null:k.h("div",{key:w,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},S)}let y=!1;return k.onDeactivated(()=>{y=!0}),k.onActivated(()=>{y===!0&&I.autofocus===!0&&c.focus()}),I.autofocus===!0&&k.onMounted(()=>{c.focus()}),k.onBeforeUnmount(()=>{a!==null&&clearTimeout(a)}),Object.assign(c,{focus:q,blur:N}),function(){const S=l.getControl===void 0&&v.control===void 0?{...l.splitAttrs.attributes.value,"data-autofocus":I.autofocus===!0||void 0,...T.value}:T.value;return k.h(l.tag.value,{ref:l.rootRef,class:[f.value,m.class],style:m.style,...S},[v.before!==void 0?k.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Bt},v.before()):null,k.h("div",{class:"q-field__inner relative-position col self-stretch"},[k.h("div",{ref:l.controlRef,class:g.value,tabindex:-1,...l.controlEvents},A()),d.value===!0?_():null]),v.after!==void 0?k.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Bt},v.after()):null])}}const Ul=$e({name:"QField",inheritAttrs:!1,props:{...Pn,tag:{type:String,default:"label"}},emits:Yi,setup(){return Ki(Qi({tagProp:!0}))}}),Wl={xs:8,sm:10,md:14,lg:20,xl:24},Do=$e({name:"QChip",props:{...Ot,...Rr,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(l,{slots:I,emit:t}){const{proxy:{$q:v}}=k.getCurrentInstance(),m=jt(l,v),c=Br(l,Wl),o=k.computed(()=>l.selected===!0||l.icon!==void 0),a=k.computed(()=>l.selected===!0?l.iconSelected||v.iconSet.chip.selected:l.icon),n=k.computed(()=>l.iconRemove||v.iconSet.chip.remove),e=k.computed(()=>l.disable===!1&&(l.clickable===!0||l.selected!==null)),r=k.computed(()=>{const f=l.outline===!0&&l.color||l.textColor;return"q-chip row inline no-wrap items-center"+(l.outline===!1&&l.color!==void 0?` bg-${l.color}`:"")+(f?` text-${f} q-chip--colored`:"")+(l.disable===!0?" disabled":"")+(l.dense===!0?" q-chip--dense":"")+(l.outline===!0?" q-chip--outline":"")+(l.selected===!0?" q-chip--selected":"")+(e.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(l.square===!0?" q-chip--square":"")+(m.value===!0?" q-chip--dark q-dark":"")}),u=k.computed(()=>{const f=l.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:l.tabindex||0},g={...f,role:"button","aria-hidden":"false","aria-label":l.removeAriaLabel||v.lang.label.remove};return{chip:f,remove:g}});function s(f){f.keyCode===13&&i(f)}function i(f){l.disable||(t("update:selected",!l.selected),t("click",f))}function d(f){(f.keyCode===void 0||f.keyCode===13)&&(St(f),l.disable===!1&&(t("update:modelValue",!1),t("remove")))}function h(){const f=[];e.value===!0&&f.push(k.h("div",{class:"q-focus-helper"})),o.value===!0&&f.push(k.h(wt,{class:"q-chip__icon q-chip__icon--left",name:a.value}));const g=l.label!==void 0?[k.h("div",{class:"ellipsis"},[l.label])]:void 0;return f.push(k.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},io(I.default,g))),l.iconRight&&f.push(k.h(wt,{class:"q-chip__icon q-chip__icon--right",name:l.iconRight})),l.removable===!0&&f.push(k.h(wt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:n.value,...u.value.remove,onClick:d,onKeyup:d})),f}return()=>{if(l.modelValue===!1)return;const f={class:r.value,style:c.value};return e.value===!0&&Object.assign(f,u.value.chip,{onClick:i,onKeyup:s}),ga("div",f,h(),"ripple",l.ripple!==!1&&l.disable!==!0,()=>[[mo,l.ripple]])}}}),qr=$e({name:"QItem",props:{...Ot,...co,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(l,{slots:I,emit:t}){const{proxy:{$q:v}}=k.getCurrentInstance(),m=jt(l,v),{hasLink:c,linkAttrs:o,linkClass:a,linkTag:n,navigateOnClick:e}=Ti(),r=k.ref(null),u=k.ref(null),s=k.computed(()=>l.clickable===!0||c.value===!0||l.tag==="label"),i=k.computed(()=>l.disable!==!0&&s.value===!0),d=k.computed(()=>"q-item q-item-type row no-wrap"+(l.dense===!0?" q-item--dense":"")+(m.value===!0?" q-item--dark":"")+(c.value===!0&&l.active===null?a.value:l.active===!0?` q-item--active${l.activeClass!==void 0?` ${l.activeClass}`:""}`:"")+(l.disable===!0?" disabled":"")+(i.value===!0?" q-item--clickable q-link cursor-pointer "+(l.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(l.focused===!0?" q-manual-focusable--focused":""):"")),h=k.computed(()=>l.insetLevel===void 0?null:{["padding"+(v.lang.rtl===!0?"Right":"Left")]:16+l.insetLevel*56+"px"});function f(x){i.value===!0&&(u.value!==null&&x.qAvoidFocus!==!0&&(x.qKeyEvent!==!0&&document.activeElement===r.value?u.value.focus():document.activeElement===u.value&&r.value.focus()),e(x))}function g(x){if(i.value===!0&&nr(x,[13,32])===!0){St(x),x.qKeyEvent=!0;const C=new MouseEvent("click",x);C.qKeyEvent=!0,r.value.dispatchEvent(C)}t("keyup",x)}function p(){const x=Ai(I.default,[]);return i.value===!0&&x.unshift(k.h("div",{class:"q-focus-helper",tabindex:-1,ref:u})),x}return()=>{const x={ref:r,class:d.value,style:h.value,role:"listitem",onClick:f,onKeyup:g};return i.value===!0?(x.tabindex=l.tabindex||"0",Object.assign(x,o.value)):s.value===!0&&(x["aria-disabled"]="true"),k.h(n.value,x,p())}}}),zr=$e({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(l,{slots:I}){const t=k.computed(()=>`q-item__section column q-item__section--${l.avatar===!0||l.side===!0||l.thumbnail===!0?"side":"main"}`+(l.top===!0?" q-item__section--top justify-start":" justify-center")+(l.avatar===!0?" q-item__section--avatar":"")+(l.thumbnail===!0?" q-item__section--thumbnail":"")+(l.noWrap===!0?" q-item__section--nowrap":""));return()=>k.h("div",{class:t.value},gt(I.default))}}),vi=$e({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(l,{slots:I}){const t=k.computed(()=>parseInt(l.lines,10)),v=k.computed(()=>"q-item__label"+(l.overline===!0?" q-item__label--overline text-overline":"")+(l.caption===!0?" q-item__label--caption text-caption":"")+(l.header===!0?" q-item__label--header":"")+(t.value===1?" ellipsis":"")),m=k.computed(()=>l.lines!==void 0&&t.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t.value}:null);return()=>k.h("div",{style:m.value,class:v.value},gt(I.default))}});function Hl(l,I,t){function v(){}return k.onBeforeUnmount(()=>{l.value===!0&&void 0}),{removeFromHistory:v,addToHistory(){}}}let jr=0,Zn,$n,Nr,ei=!1,Fs,Ds,Ns,ar=null;function Yl(l){Ql(l)&&St(l)}function Ql(l){if(l.target===document.body||l.target.classList.contains("q-layout__backdrop"))return!0;const I=Na(l),t=l.shiftKey&&!l.deltaX,v=!t&&Math.abs(l.deltaX)<=Math.abs(l.deltaY),m=t||v?l.deltaY:l.deltaX;for(let c=0;c<I.length;c++){const o=I[c];if(cl(o,v))return v?m<0&&o.scrollTop===0?!0:m>0&&o.scrollTop+o.clientHeight===o.scrollHeight:m<0&&o.scrollLeft===0?!0:m>0&&o.scrollLeft+o.clientWidth===o.scrollWidth}return!0}function Ps(l){l.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function un(l){ei!==!0&&(ei=!0,requestAnimationFrame(()=>{ei=!1;const{height:I}=l.target,{clientHeight:t,scrollTop:v}=document.scrollingElement;(Nr===void 0||I!==window.innerHeight)&&(Nr=t-I,document.scrollingElement.scrollTop=v),v>Nr&&(document.scrollingElement.scrollTop-=Math.ceil((v-Nr)/8))}))}function Ls(l){const I=document.body,t=window.visualViewport!==void 0;if(l==="add"){const{overflowY:v,overflowX:m}=window.getComputedStyle(I);Zn=ji(window),$n=Oi(window),Fs=I.style.left,Ds=I.style.top,Ns=window.location.href,I.style.left=`-${Zn}px`,I.style.top=`-${$n}px`,m!=="hidden"&&(m==="scroll"||I.scrollWidth>window.innerWidth)&&I.classList.add("q-body--force-scrollbar-x"),v!=="hidden"&&(v==="scroll"||I.scrollHeight>window.innerHeight)&&I.classList.add("q-body--force-scrollbar-y"),I.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Et.is.ios===!0&&(t===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",un,_t.passiveCapture),window.visualViewport.addEventListener("scroll",un,_t.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Ps,_t.passiveCapture))}Et.is.desktop===!0&&Et.is.mac===!0&&window[`${l}EventListener`]("wheel",Yl,_t.notPassive),l==="remove"&&(Et.is.ios===!0&&(t===!0?(window.visualViewport.removeEventListener("resize",un,_t.passiveCapture),window.visualViewport.removeEventListener("scroll",un,_t.passiveCapture)):window.removeEventListener("scroll",Ps,_t.passiveCapture)),I.classList.remove("q-body--prevent-scroll"),I.classList.remove("q-body--force-scrollbar-x"),I.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,I.style.left=Fs,I.style.top=Ds,window.location.href===Ns&&window.scrollTo(Zn,$n),Nr=void 0)}function Kl(l){let I="add";if(l===!0){if(jr++,ar!==null){clearTimeout(ar),ar=null;return}if(jr>1)return}else{if(jr===0||(jr--,jr>0))return;if(I="remove",Et.is.ios===!0&&Et.is.nativeMobile===!0){ar!==null&&clearTimeout(ar),ar=setTimeout(()=>{Ls(I),ar=null},100);return}}Ls(I)}function Xl(){let l;return{preventBodyScroll(I){I!==l&&(l!==void 0||I===!0)&&(l=I,Kl(I))}}}let cn=0;const Gl={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"},Vs={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Ln=$e({name:"QDialog",inheritAttrs:!1,props:{...Pi,...Vr,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:l=>["standard","top","bottom","left","right"].includes(l)}},emits:[...Li,"shake","click","escapeKey"],setup(l,{slots:I,emit:t,attrs:v}){const m=k.getCurrentInstance(),c=k.ref(null),o=k.ref(!1),a=k.ref(!1);let n=null,e=null,r,u;const s=k.computed(()=>l.persistent!==!0&&l.noRouteDismiss!==!0&&l.seamless!==!0),{preventBodyScroll:i}=Xl(),{registerTimeout:d}=Wi(),{registerTick:h,removeTick:f}=Ui(),{transitionProps:g,transitionStyle:p}=zi(l,()=>Vs[l.position][0],()=>Vs[l.position][1]),x=k.computed(()=>p.value+(l.backdropFilter!==void 0?`;backdrop-filter:${l.backdropFilter};-webkit-backdrop-filter:${l.backdropFilter}`:"")),{showPortal:C,hidePortal:T,portalIsAccessible:D,renderPortal:q}=qi(m,c,H,"dialog"),{hide:N}=Vi({showing:o,hideOnRouteChange:s,handleShow:A,handleHide:E,processOnMount:!0});Hl(o);const P=k.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${l.maximized===!0?"maximized":"minimized"} q-dialog__inner--${l.position} ${Gl[l.position]}`+(a.value===!0?" q-dialog__inner--animating":"")+(l.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(l.fullHeight===!0?" q-dialog__inner--fullheight":"")+(l.square===!0?" q-dialog__inner--square":"")),V=k.computed(()=>o.value===!0&&l.seamless!==!0),W=k.computed(()=>l.autoClose===!0?{onClick:M}:{}),L=k.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${V.value===!0?"modal":"seamless"}`,v.class]);k.watch(()=>l.maximized,z=>{o.value===!0&&S(z)}),k.watch(V,z=>{i(z),z===!0?(Bo(O),To(y)):(mi(O),_n(y))});function A(z){e=l.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,S(l.maximized),C(),a.value=!0,l.noFocus!==!0?(document.activeElement?.blur(),h(_)):f(),d(()=>{if(m.proxy.$q.platform.is.ios===!0){if(l.seamless!==!0&&document.activeElement){const{top:Q,bottom:F}=document.activeElement.getBoundingClientRect(),{innerHeight:Y}=window,j=window.visualViewport!==void 0?window.visualViewport.height:Y;Q>0&&F>j/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-j,F>=Y?1/0:Math.ceil(document.scrollingElement.scrollTop+F-j/2))),document.activeElement.scrollIntoView()}u=!0,c.value.click(),u=!1}C(!0),a.value=!1,t("show",z)},l.transitionDuration)}function E(z){f(),w(!0),a.value=!0,T(),e!==null&&(((z?.type.indexOf("key")===0?e.closest('[tabindex]:not([tabindex^="-"])'):void 0)||e).focus(),e=null),d(()=>{T(!0),a.value=!1,t("hide",z)},l.transitionDuration)}function _(z){Kr(()=>{let Q=c.value;if(Q!==null){if(z!==void 0){const F=Q.querySelector(z);if(F!==null){F.focus({preventScroll:!0});return}}Q.contains(document.activeElement)!==!0&&(Q=Q.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||Q.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||Q.querySelector("[autofocus], [data-autofocus]")||Q,Q.focus({preventScroll:!0}))}})}function b(z){z&&typeof z.focus=="function"?z.focus({preventScroll:!0}):_(),t("shake");const Q=c.value;Q!==null&&(Q.classList.remove("q-animate--scale"),Q.classList.add("q-animate--scale"),n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,c.value!==null&&(Q.classList.remove("q-animate--scale"),_())},170))}function y(){l.seamless!==!0&&(l.persistent===!0||l.noEscDismiss===!0?l.maximized!==!0&&l.noShake!==!0&&b():(t("escapeKey"),N()))}function w(z){n!==null&&(clearTimeout(n),n=null),(z===!0||o.value===!0)&&(S(!1),l.seamless!==!0&&(i(!1),mi(O),_n(y))),z!==!0&&(e=null)}function S(z){z===!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 M(z){u!==!0&&(N(z),t("click",z))}function B(z){l.persistent!==!0&&l.noBackdropDismiss!==!0?N(z):l.noShake!==!0&&b()}function O(z){l.allowFocusOutside!==!0&&D.value===!0&&po(c.value,z.target)!==!0&&_('[tabindex]:not([tabindex="-1"])')}Object.assign(m.proxy,{focus:_,shake:b,__updateRefocusTarget(z){e=z||null}}),k.onBeforeUnmount(w);function H(){return k.h("div",{role:"dialog","aria-modal":V.value===!0?"true":"false",...v,class:L.value},[k.h(k.Transition,{name:"q-transition--fade",appear:!0},()=>V.value===!0?k.h("div",{class:"q-dialog__backdrop fixed-full",style:x.value,"aria-hidden":"true",tabindex:-1,onClick:B}):null),k.h(k.Transition,g.value,()=>o.value===!0?k.h("div",{ref:c,class:P.value,style:p.value,tabindex:-1,...W.value},gt(I.default)):null)])}return q}});let Rn=!1;{const l=document.createElement("div");l.setAttribute("dir","rtl"),Object.assign(l.style,{width:"1px",height:"1px",overflow:"auto"});const I=document.createElement("div");Object.assign(I.style,{width:"1000px",height:"1px"}),document.body.appendChild(l),l.appendChild(I),l.scrollLeft=-1e3,Rn=l.scrollLeft>=0,l.remove()}const zt=1e3,Jl=["start","center","end","start-force","center-force","end-force"],No=Array.prototype.filter,Zl=window.getComputedStyle(document.body).overflowAnchor===void 0?jn:function(l,I){l!==null&&(l._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(l._qOverflowAnimationFrame),l._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(l===null)return;l._qOverflowAnimationFrame=void 0;const t=l.children||[];No.call(t,m=>m.dataset&&m.dataset.qVsAnchor!==void 0).forEach(m=>{delete m.dataset.qVsAnchor});const v=t[I];v?.dataset&&(v.dataset.qVsAnchor="")}))};function Ar(l,I){return l+I}function ti(l,I,t,v,m,c,o,a){const n=l===window?document.scrollingElement||document.documentElement:l,e=m===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-o-a,scrollMaxSize:0,offsetStart:-o,offsetEnd:-a};if(m===!0?(l===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=(Rn===!0?r.scrollMaxSize-r.scrollViewSize:0)-r.scrollStart)):(l===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(v!==null)for(let u=v.nextElementSibling;u!==null;u=u.nextElementSibling)u.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetEnd+=u[e]);if(I!==l){const u=n.getBoundingClientRect(),s=I.getBoundingClientRect();m===!0?(r.offsetStart+=s.left-u.left,r.offsetEnd-=s.width):(r.offsetStart+=s.top-u.top,r.offsetEnd-=s.height),l!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function qs(l,I,t,v){I==="end"&&(I=(l===window?document.body:l)[t===!0?"scrollWidth":"scrollHeight"]),l===window?t===!0?(v===!0&&(I=(Rn===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-I),window.scrollTo(I,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,I):t===!0?(v===!0&&(I=(Rn===!0?l.scrollWidth-l.offsetWidth:0)-I),l.scrollLeft=I):l.scrollTop=I}function Fr(l,I,t,v){if(t>=v)return 0;const m=I.length,c=Math.floor(t/zt),o=Math.floor((v-1)/zt)+1;let a=l.slice(c,o).reduce(Ar,0);return t%zt!==0&&(a-=I.slice(c*zt,t).reduce(Ar,0)),v%zt!==0&&v!==m&&(a-=I.slice(v,o*zt).reduce(Ar,0)),a}const Po={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]},Lo=Object.keys(Po),yi={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Po};function Vo({virtualScrollLength:l,getVirtualScrollTarget:I,getVirtualScrollEl:t,virtualScrollItemSizeComputed:v}){const m=k.getCurrentInstance(),{props:c,emit:o,proxy:a}=m,{$q:n}=a;let e,r,u,s=[],i;const d=k.ref(0),h=k.ref(0),f=k.ref({}),g=k.ref(null),p=k.ref(null),x=k.ref(null),C=k.ref({from:0,to:0}),T=k.computed(()=>c.tableColspan!==void 0?c.tableColspan:100);v===void 0&&(v=k.computed(()=>c.virtualScrollItemSize));const D=k.computed(()=>v.value+";"+c.virtualScrollHorizontal),q=k.computed(()=>D.value+";"+c.virtualScrollSliceRatioBefore+";"+c.virtualScrollSliceRatioAfter);k.watch(q,()=>{b()}),k.watch(D,N);function N(){_(r,!0)}function P(B){_(B===void 0?r:B)}function V(B,O){const H=I();if(H==null||H.nodeType===8)return;const z=ti(H,t(),g.value,p.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd);u!==z.scrollViewSize&&b(z.scrollViewSize),L(H,z,Math.min(l.value-1,Math.max(0,parseInt(B,10)||0)),0,Jl.indexOf(O)!==-1?O:r!==-1&&B>r?"end":"start")}function W(){const B=I();if(B==null||B.nodeType===8)return;const O=ti(B,t(),g.value,p.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd),H=l.value-1,z=O.scrollMaxSize-O.offsetStart-O.offsetEnd-h.value;if(e===O.scrollStart)return;if(O.scrollMaxSize<=0){L(B,O,0,0);return}u!==O.scrollViewSize&&b(O.scrollViewSize),A(C.value.from);const Q=Math.floor(O.scrollMaxSize-Math.max(O.scrollViewSize,O.offsetEnd)-Math.min(i[H],O.scrollViewSize/2));if(Q>0&&Math.ceil(O.scrollStart)>=Q){L(B,O,H,O.scrollMaxSize-O.offsetEnd-s.reduce(Ar,0));return}let F=0,Y=O.scrollStart-O.offsetStart,j=Y;if(Y<=z&&Y+O.scrollViewSize>=d.value)Y-=d.value,F=C.value.from,j=Y;else for(let R=0;Y>=s[R]&&F<H;R++)Y-=s[R],F+=zt;for(;Y>0&&F<H;)Y-=i[F],Y>-O.scrollViewSize?(F++,j=Y):j=i[F]+Y;L(B,O,F,j)}function L(B,O,H,z,Q){const F=typeof Q=="string"&&Q.indexOf("-force")!==-1,Y=F===!0?Q.replace("-force",""):Q,j=Y!==void 0?Y:"start";let R=Math.max(0,H-f.value[j]),U=R+f.value.total;U>l.value&&(U=l.value,R=Math.max(0,U-f.value.total)),e=O.scrollStart;const K=R!==C.value.from||U!==C.value.to;if(K===!1&&Y===void 0){w(H);return}const{activeElement:$}=document,G=x.value;K===!0&&G!==null&&G!==$&&G.contains($)===!0&&(G.addEventListener("focusout",E),setTimeout(()=>{G?.removeEventListener("focusout",E)})),Zl(G,H-R);const ee=Y!==void 0?i.slice(R,H).reduce(Ar,0):0;if(K===!0){const ae=U>=C.value.from&&R<=C.value.to?C.value.to:U;C.value={from:R,to:ae},d.value=Fr(s,i,0,R),h.value=Fr(s,i,U,l.value),requestAnimationFrame(()=>{C.value.to!==U&&e===O.scrollStart&&(C.value={from:C.value.from,to:U},h.value=Fr(s,i,U,l.value))})}requestAnimationFrame(()=>{if(e!==O.scrollStart)return;K===!0&&A(R);const ae=i.slice(R,H).reduce(Ar,0),se=ae+O.offsetStart+d.value,J=se+i[H];let ne=se+z;if(Y!==void 0){const ie=ae-ee,fe=O.scrollStart+ie;ne=F!==!0&&fe<se&&J<fe+O.scrollViewSize?fe:Y==="end"?J-O.scrollViewSize:se-(Y==="start"?0:Math.round((O.scrollViewSize-i[H])/2))}e=ne,qs(B,ne,c.virtualScrollHorizontal,n.lang.rtl),w(H)})}function A(B){const O=x.value;if(O){const H=No.call(O.children,R=>R.classList&&R.classList.contains("q-virtual-scroll--skip")===!1),z=H.length,Q=c.virtualScrollHorizontal===!0?R=>R.getBoundingClientRect().width:R=>R.offsetHeight;let F=B,Y,j;for(let R=0;R<z;){for(Y=Q(H[R]),R++;R<z&&H[R].classList.contains("q-virtual-scroll--with-prev")===!0;)Y+=Q(H[R]),R++;j=Y-i[F],j!==0&&(i[F]+=j,s[Math.floor(F/zt)]+=j),F++}}}function E(){x.value?.focus()}function _(B,O){const H=1*v.value;(O===!0||Array.isArray(i)===!1)&&(i=[]);const z=i.length;i.length=l.value;for(let F=l.value-1;F>=z;F--)i[F]=H;const Q=Math.floor((l.value-1)/zt);s=[];for(let F=0;F<=Q;F++){let Y=0;const j=Math.min((F+1)*zt,l.value);for(let R=F*zt;R<j;R++)Y+=i[R];s.push(Y)}r=-1,e=void 0,d.value=Fr(s,i,0,C.value.from),h.value=Fr(s,i,C.value.to,l.value),B>=0?(A(C.value.from),k.nextTick(()=>{V(B)})):S()}function b(B){if(B===void 0&&typeof window<"u"){const Y=I();Y!=null&&Y.nodeType!==8&&(B=ti(Y,t(),g.value,p.value,c.virtualScrollHorizontal,n.lang.rtl,c.virtualScrollStickySizeStart,c.virtualScrollStickySizeEnd).scrollViewSize)}u=B;const O=parseFloat(c.virtualScrollSliceRatioBefore)||0,H=parseFloat(c.virtualScrollSliceRatioAfter)||0,z=1+O+H,Q=B===void 0||B<=0?1:Math.ceil(B/v.value),F=Math.max(1,Q,Math.ceil((c.virtualScrollSliceSize>0?c.virtualScrollSliceSize:10)/z));f.value={total:Math.ceil(F*z),start:Math.ceil(F*O),center:Math.ceil(F*(.5+O)),end:Math.ceil(F*(1+O)),view:Q}}function y(B,O){const H=c.virtualScrollHorizontal===!0?"width":"height",z={["--q-virtual-scroll-item-"+H]:v.value+"px"};return[B==="tbody"?k.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:g},[k.h("tr",[k.h("td",{style:{[H]:`${d.value}px`,...z},colspan:T.value})])]):k.h(B,{class:"q-virtual-scroll__padding",key:"before",ref:g,style:{[H]:`${d.value}px`,...z}}),k.h(B,{class:"q-virtual-scroll__content",key:"content",ref:x,tabindex:-1},O.flat()),B==="tbody"?k.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:p},[k.h("tr",[k.h("td",{style:{[H]:`${h.value}px`,...z},colspan:T.value})])]):k.h(B,{class:"q-virtual-scroll__padding",key:"after",ref:p,style:{[H]:`${h.value}px`,...z}})]}function w(B){r!==B&&(c.onVirtualScroll!==void 0&&o("virtualScroll",{index:B,from:C.value.from,to:C.value.to-1,direction:B<r?"decrease":"increase",ref:a}),r=B)}b();const S=Di(W,n.platform.is.ios===!0?120:35);k.onBeforeMount(()=>{b()});let M=!1;return k.onDeactivated(()=>{M=!0}),k.onActivated(()=>{if(M!==!0)return;const B=I();e!==void 0&&B!==void 0&&B!==null&&B.nodeType!==8?qs(B,e,c.virtualScrollHorizontal,n.lang.rtl):V(r)}),k.onBeforeUnmount(()=>{S.cancel()}),Object.assign(a,{scrollTo:V,reset:N,refresh:P}),{virtualScrollSliceRange:C,virtualScrollSliceSizeComputed:f,setVirtualScrollSize:b,onVirtualScrollEvt:S,localResetVirtualScroll:_,padVirtualScroll:y,scrollTo:V,reset:N,refresh:P}}const $l=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,eu=/[\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,tu=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,ru=/[a-z0-9_ -]$/i;function qo(l){return function(t){if(t.type==="compositionend"||t.type==="change"){if(t.target.qComposing!==!0)return;t.target.qComposing=!1,l(t)}else t.type==="compositionupdate"&&t.target.qComposing!==!0&&typeof t.data=="string"&&(Et.is.firefox===!0?ru.test(t.data)===!1:$l.test(t.data)===!0||eu.test(t.data)===!0||tu.test(t.data)===!0)===!0&&(t.target.qComposing=!0)}}function tr(l,I){if(l===I)return!0;if(l!==null&&I!==null&&typeof l=="object"&&typeof I=="object"){if(l.constructor!==I.constructor)return!1;let t,v;if(l.constructor===Array){if(t=l.length,t!==I.length)return!1;for(v=t;v--!==0;)if(tr(l[v],I[v])!==!0)return!1;return!0}if(l.constructor===Map){if(l.size!==I.size)return!1;let c=l.entries();for(v=c.next();v.done!==!0;){if(I.has(v.value[0])!==!0)return!1;v=c.next()}for(c=l.entries(),v=c.next();v.done!==!0;){if(tr(v.value[1],I.get(v.value[0]))!==!0)return!1;v=c.next()}return!0}if(l.constructor===Set){if(l.size!==I.size)return!1;const c=l.entries();for(v=c.next();v.done!==!0;){if(I.has(v.value[0])!==!0)return!1;v=c.next()}return!0}if(l.buffer!=null&&l.buffer.constructor===ArrayBuffer){if(t=l.length,t!==I.length)return!1;for(v=t;v--!==0;)if(l[v]!==I[v])return!1;return!0}if(l.constructor===RegExp)return l.source===I.source&&l.flags===I.flags;if(l.valueOf!==Object.prototype.valueOf)return l.valueOf()===I.valueOf();if(l.toString!==Object.prototype.toString)return l.toString()===I.toString();const m=Object.keys(l).filter(c=>l[c]!==void 0);if(t=m.length,t!==Object.keys(I).filter(c=>I[c]!==void 0).length)return!1;for(v=t;v--!==0;){const c=m[v];if(tr(l[c],I[c])!==!0)return!1}return!0}return l!==l&&I!==I}function zo(l){return l!==null&&typeof l=="object"&&Array.isArray(l)!==!0}function Bn(l){return Object.prototype.toString.call(l)==="[object Date]"}function wi(l){return typeof l=="number"&&isFinite(l)}const zs=l=>["add","add-unique","toggle"].includes(l),nu=".*+?^${}()|[]\\",iu=Object.keys(Pn);function ri(l,I){if(typeof l=="function")return l;const t=l!==void 0?l:I;return v=>v!==null&&typeof v=="object"&&t in v?v[t]:v}const Vn=$e({name:"QSelect",inheritAttrs:!1,props:{...yi,...Fn,...Pn,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:zs},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:l=>["default","menu","dialog"].includes(l),default:"default"},virtualScrollItemSize:yi.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Yi,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(l,{slots:I,emit:t}){const{proxy:v}=k.getCurrentInstance(),{$q:m}=v,c=k.ref(!1),o=k.ref(!1),a=k.ref(-1),n=k.ref(""),e=k.ref(!1),r=k.ref(!1);let u=null,s=null,i,d,h,f=null,g,p,x,C;const T=k.ref(null),D=k.ref(null),q=k.ref(null),N=k.ref(null),P=k.ref(null),V=bo(l),W=qo(he),L=k.computed(()=>Array.isArray(l.options)?l.options.length:0),A=k.computed(()=>l.virtualScrollItemSize===void 0?l.optionsDense===!0?24:48:l.virtualScrollItemSize),{virtualScrollSliceRange:E,virtualScrollSliceSizeComputed:_,localResetVirtualScroll:b,padVirtualScroll:y,onVirtualScrollEvt:w,scrollTo:S,setVirtualScrollSize:M}=Vo({virtualScrollLength:L,getVirtualScrollTarget:nt,getVirtualScrollEl:He,virtualScrollItemSizeComputed:A}),B=Qi(),O=k.computed(()=>{const oe=l.mapOptions===!0&&l.multiple!==!0,Fe=l.modelValue!==void 0&&(l.modelValue!==null||oe===!0)?l.multiple===!0&&Array.isArray(l.modelValue)?l.modelValue:[l.modelValue]:[];if(l.mapOptions===!0&&Array.isArray(l.options)===!0){const Z=l.mapOptions===!0&&i!==void 0?i:[],ue=Fe.map(ve=>je(ve,Z));return l.modelValue===null&&oe===!0?ue.filter(ve=>ve!==null):ue}return Fe}),H=k.computed(()=>{const oe={};return iu.forEach(Fe=>{const Z=l[Fe];Z!==void 0&&(oe[Fe]=Z)}),oe}),z=k.computed(()=>l.optionsDark===null?B.isDark.value:l.optionsDark),Q=k.computed(()=>Hr(O.value)),F=k.computed(()=>{let oe="q-field__input q-placeholder col";return l.hideSelected===!0||O.value.length===0?[oe,l.inputClass]:(oe+=" q-field__input--padding",l.inputClass===void 0?oe:[oe,l.inputClass])}),Y=k.computed(()=>(l.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(l.popupContentClass?" "+l.popupContentClass:"")),j=k.computed(()=>L.value===0),R=k.computed(()=>O.value.map(oe=>de.value(oe)).join(", ")),U=k.computed(()=>l.displayValue!==void 0?l.displayValue:R.value),K=k.computed(()=>l.optionsHtml===!0?()=>!0:oe=>oe?.html===!0),$=k.computed(()=>l.displayValueHtml===!0||l.displayValue===void 0&&(l.optionsHtml===!0||O.value.some(K.value))),G=k.computed(()=>B.focused.value===!0?l.tabindex:-1),ee=k.computed(()=>{const oe={tabindex:l.tabindex,role:"combobox","aria-label":l.label,"aria-readonly":l.readonly===!0?"true":"false","aria-autocomplete":l.useInput===!0?"list":"none","aria-expanded":c.value===!0?"true":"false","aria-controls":`${B.targetUid.value}_lb`};return a.value>=0&&(oe["aria-activedescendant"]=`${B.targetUid.value}_${a.value}`),oe}),ae=k.computed(()=>({id:`${B.targetUid.value}_lb`,role:"listbox","aria-multiselectable":l.multiple===!0?"true":"false"})),se=k.computed(()=>O.value.map((oe,Fe)=>({index:Fe,opt:oe,html:K.value(oe),selected:!0,removeAtIndex:Me,toggleOption:Ve,tabindex:G.value}))),J=k.computed(()=>{if(L.value===0)return[];const{from:oe,to:Fe}=E.value;return l.options.slice(oe,Fe).map((Z,ue)=>{const ve=me.value(Z)===!0,ye=ke(Z)===!0,Ne=oe+ue,Se={clickable:!0,active:ye,activeClass:fe.value,manualFocus:!0,focused:!1,disable:ve,tabindex:-1,dense:l.optionsDense,dark:z.value,role:"option","aria-selected":ye===!0?"true":"false",id:`${B.targetUid.value}_${Ne}`,onClick:()=>{Ve(Z)}};return ve!==!0&&(a.value===Ne&&(Se.focused=!0),m.platform.is.desktop===!0&&(Se.onMousemove=()=>{c.value===!0&&Pe(Ne)})),{index:Ne,opt:Z,html:K.value(Z),label:de.value(Z),selected:Se.active,focused:Se.focused,toggleOption:Ve,setOptionIndex:Pe,itemProps:Se}})}),ne=k.computed(()=>l.dropdownIcon!==void 0?l.dropdownIcon:m.iconSet.arrow.dropdown),ie=k.computed(()=>l.optionsCover===!1&&l.outlined!==!0&&l.standout!==!0&&l.borderless!==!0&&l.rounded!==!0),fe=k.computed(()=>l.optionsSelectedClass!==void 0?l.optionsSelectedClass:l.color!==void 0?`text-${l.color}`:""),ce=k.computed(()=>ri(l.optionValue,"value")),de=k.computed(()=>ri(l.optionLabel,"label")),me=k.computed(()=>ri(l.optionDisable,"disable")),be=k.computed(()=>O.value.map(ce.value)),xe=k.computed(()=>{const oe={onInput:he,onChange:W,onKeydown:et,onKeyup:Le,onKeypress:Ge,onFocus:De,onClick(Fe){d===!0&&Dt(Fe)}};return oe.onCompositionstart=oe.onCompositionupdate=oe.onCompositionend=W,oe});k.watch(O,oe=>{i=oe,l.useInput===!0&&l.fillInput===!0&&l.multiple!==!0&&B.innerLoading.value!==!0&&(o.value!==!0&&c.value!==!0||Q.value!==!0)&&(h!==!0&&ze(),(o.value===!0||c.value===!0)&&Oe(""))},{immediate:!0}),k.watch(()=>l.fillInput,ze),k.watch(c,Je),k.watch(L,Ze);function Ie(oe){return l.emitValue===!0?ce.value(oe):oe}function Ee(oe){if(oe!==-1&&oe<O.value.length)if(l.multiple===!0){const Fe=l.modelValue.slice();t("remove",{index:oe,value:Fe.splice(oe,1)[0]}),t("update:modelValue",Fe)}else t("update:modelValue",null)}function Me(oe){Ee(oe),B.focus()}function We(oe,Fe){const Z=Ie(oe);if(l.multiple!==!0){l.fillInput===!0&&Te(de.value(oe),!0,!0),t("update:modelValue",Z);return}if(O.value.length===0){t("add",{index:0,value:Z}),t("update:modelValue",l.multiple===!0?[Z]:Z);return}if(Fe===!0&&ke(oe)===!0||l.maxValues!==void 0&&l.modelValue.length>=l.maxValues)return;const ue=l.modelValue.slice();t("add",{index:ue.length,value:Z}),ue.push(Z),t("update:modelValue",ue)}function Ve(oe,Fe){if(B.editable.value!==!0||oe===void 0||me.value(oe)===!0)return;const Z=ce.value(oe);if(l.multiple!==!0){Fe!==!0&&(Te(l.fillInput===!0?de.value(oe):"",!0,!0),Re()),D.value?.focus(),(O.value.length===0||tr(ce.value(O.value[0]),Z)!==!0)&&t("update:modelValue",l.emitValue===!0?Z:oe);return}if((d!==!0||e.value===!0)&&B.focus(),De(),O.value.length===0){const ye=l.emitValue===!0?Z:oe;t("add",{index:0,value:ye}),t("update:modelValue",l.multiple===!0?[ye]:ye);return}const ue=l.modelValue.slice(),ve=be.value.findIndex(ye=>tr(ye,Z));if(ve!==-1)t("remove",{index:ve,value:ue.splice(ve,1)[0]});else{if(l.maxValues!==void 0&&ue.length>=l.maxValues)return;const ye=l.emitValue===!0?Z:oe;t("add",{index:ue.length,value:ye}),ue.push(ye)}t("update:modelValue",ue)}function Pe(oe){if(m.platform.is.desktop!==!0)return;const Fe=oe!==-1&&oe<L.value?oe:-1;a.value!==Fe&&(a.value=Fe)}function qe(oe=1,Fe){if(c.value===!0){let Z=a.value;do Z=ws(Z+oe,-1,L.value-1);while(Z!==-1&&Z!==a.value&&me.value(l.options[Z])===!0);a.value!==Z&&(Pe(Z),S(Z),Fe!==!0&&l.useInput===!0&&l.fillInput===!0&&we(Z>=0?de.value(l.options[Z]):g,!0))}}function je(oe,Fe){const Z=ue=>tr(ce.value(ue),oe);return l.options.find(Z)||Fe.find(Z)||oe}function ke(oe){const Fe=ce.value(oe);return be.value.find(Z=>tr(Z,Fe))!==void 0}function De(oe){l.useInput===!0&&D.value!==null&&(oe===void 0||D.value===oe.target&&oe.target.value===R.value)&&D.value.select()}function Ue(oe){nr(oe,27)===!0&&c.value===!0&&(Dt(oe),Re(),ze()),t("keyup",oe)}function Le(oe){const{value:Fe}=oe.target;if(oe.keyCode!==void 0){Ue(oe);return}if(oe.target.value="",u!==null&&(clearTimeout(u),u=null),s!==null&&(clearTimeout(s),s=null),ze(),typeof Fe=="string"&&Fe.length!==0){const Z=Fe.toLocaleLowerCase(),ue=ye=>{const Ne=l.options.find(Se=>String(ye.value(Se)).toLocaleLowerCase()===Z);return Ne===void 0?!1:(O.value.indexOf(Ne)===-1?Ve(Ne):Re(),!0)},ve=ye=>{ue(ce)!==!0&&ye!==!0&&ue(de)!==!0&&Oe(Fe,!0,()=>ve(!0))};ve()}else B.clearValue(oe)}function Ge(oe){t("keypress",oe)}function et(oe){if(t("keydown",oe),Ii(oe)===!0)return;const Fe=n.value.length!==0&&(l.newValueMode!==void 0||l.onNewValue!==void 0),Z=oe.shiftKey!==!0&&l.disableTabSelection!==!0&&l.multiple!==!0&&(a.value!==-1||Fe===!0);if(oe.keyCode===27){Bt(oe);return}if(oe.keyCode===9&&Z===!1){ge();return}if(oe.target===void 0||oe.target.id!==B.targetUid.value||B.editable.value!==!0)return;if(oe.keyCode===40&&B.innerLoading.value!==!0&&c.value===!1){St(oe),_e();return}if(oe.keyCode===8&&(l.useChips===!0||l.clearable===!0)&&l.hideSelected!==!0&&n.value.length===0){l.multiple===!0&&Array.isArray(l.modelValue)===!0?Ee(l.modelValue.length-1):l.multiple!==!0&&l.modelValue!==null&&t("update:modelValue",null);return}(oe.keyCode===35||oe.keyCode===36)&&(typeof n.value!="string"||n.value.length===0)&&(St(oe),a.value=-1,qe(oe.keyCode===36?1:-1,l.multiple)),(oe.keyCode===33||oe.keyCode===34)&&_.value!==void 0&&(St(oe),a.value=Math.max(-1,Math.min(L.value,a.value+(oe.keyCode===33?-1:1)*_.value.view)),qe(oe.keyCode===33?1:-1,l.multiple)),(oe.keyCode===38||oe.keyCode===40)&&(St(oe),qe(oe.keyCode===38?-1:1,l.multiple));const ue=L.value;if((x===void 0||C<Date.now())&&(x=""),ue>0&&l.useInput!==!0&&oe.key!==void 0&&oe.key.length===1&&oe.altKey===!1&&oe.ctrlKey===!1&&oe.metaKey===!1&&(oe.keyCode!==32||x.length!==0)){c.value!==!0&&_e(oe);const ve=oe.key.toLocaleLowerCase(),ye=x.length===1&&x[0]===ve;C=Date.now()+1500,ye===!1&&(St(oe),x+=ve);const Ne=new RegExp("^"+x.split("").map(Be=>nu.indexOf(Be)!==-1?"\\"+Be:Be).join(".*"),"i");let Se=a.value;if(ye===!0||Se<0||Ne.test(de.value(l.options[Se]))!==!0)do Se=ws(Se+1,-1,ue-1);while(Se!==a.value&&(me.value(l.options[Se])===!0||Ne.test(de.value(l.options[Se]))!==!0));a.value!==Se&&k.nextTick(()=>{Pe(Se),S(Se),Se>=0&&l.useInput===!0&&l.fillInput===!0&&we(de.value(l.options[Se]),!0)});return}if(!(oe.keyCode!==13&&(oe.keyCode!==32||l.useInput===!0||x!=="")&&(oe.keyCode!==9||Z===!1))){if(oe.keyCode!==9&&St(oe),a.value!==-1&&a.value<ue){Ve(l.options[a.value]);return}if(Fe===!0){const ve=(ye,Ne)=>{if(Ne){if(zs(Ne)!==!0)return}else Ne=l.newValueMode;if(Te("",l.multiple!==!0,!0),ye==null)return;(Ne==="toggle"?Ve:We)(ye,Ne==="add-unique"),l.multiple!==!0&&(D.value?.focus(),Re())};if(l.onNewValue!==void 0?t("newValue",n.value,ve):ve(n.value),l.multiple!==!0)return}c.value===!0?ge():B.innerLoading.value!==!0&&_e()}}function He(){return d===!0?P.value:q.value!==null&&q.value.contentEl!==null?q.value.contentEl:void 0}function nt(){return He()}function tt(){return l.hideSelected===!0?[]:I["selected-item"]!==void 0?se.value.map(oe=>I["selected-item"](oe)).slice():I.selected!==void 0?[].concat(I.selected()):l.useChips===!0?se.value.map((oe,Fe)=>k.h(Do,{key:"option-"+Fe,removable:B.editable.value===!0&&me.value(oe.opt)!==!0,dense:!0,textColor:l.color,tabindex:G.value,onRemove(){oe.removeAtIndex(Fe)}},()=>k.h("span",{class:"ellipsis",[oe.html===!0?"innerHTML":"textContent"]:de.value(oe.opt)}))):[k.h("span",{class:"ellipsis",[$.value===!0?"innerHTML":"textContent"]:U.value})]}function Ye(){if(j.value===!0)return I["no-option"]!==void 0?I["no-option"]({inputValue:n.value}):void 0;const oe=I.option!==void 0?I.option:Z=>k.h(qr,{key:Z.index,...Z.itemProps},()=>k.h(zr,()=>k.h(vi,()=>k.h("span",{[Z.html===!0?"innerHTML":"textContent"]:Z.label}))));let Fe=y("div",J.value.map(oe));return I["before-options"]!==void 0&&(Fe=I["before-options"]().concat(Fe)),It(I["after-options"],Fe)}function ot(oe,Fe){const Z=Fe===!0?{...ee.value,...B.splitAttrs.attributes.value}:void 0,ue={ref:Fe===!0?D:void 0,key:"i_t",class:F.value,style:l.inputStyle,value:n.value!==void 0?n.value:"",type:"search",...Z,id:Fe===!0?B.targetUid.value:void 0,maxlength:l.maxlength,autocomplete:l.autocomplete,"data-autofocus":oe===!0||l.autofocus===!0||void 0,disabled:l.disable===!0,readonly:l.readonly===!0,...xe.value};return oe!==!0&&d===!0&&(Array.isArray(ue.class)===!0?ue.class=[...ue.class,"no-pointer-events"]:ue.class+=" no-pointer-events"),k.h("input",ue)}function he(oe){u!==null&&(clearTimeout(u),u=null),s!==null&&(clearTimeout(s),s=null),!(oe&&oe.target&&oe.target.qComposing===!0)&&(we(oe.target.value||""),h=!0,g=n.value,B.focused.value!==!0&&(d!==!0||e.value===!0)&&B.focus(),l.onFilter!==void 0&&(u=setTimeout(()=>{u=null,Oe(n.value)},l.inputDebounce)))}function we(oe,Fe){n.value!==oe&&(n.value=oe,Fe===!0||l.inputDebounce===0||l.inputDebounce==="0"?t("inputValue",oe):s=setTimeout(()=>{s=null,t("inputValue",oe)},l.inputDebounce))}function Te(oe,Fe,Z){h=Z!==!0,l.useInput===!0&&(we(oe,!0),(Fe===!0||Z!==!0)&&(g=oe),Fe!==!0&&Oe(oe))}function Oe(oe,Fe,Z){if(l.onFilter===void 0||Fe!==!0&&B.focused.value!==!0)return;B.innerLoading.value===!0?t("filterAbort"):(B.innerLoading.value=!0,r.value=!0),oe!==""&&l.multiple!==!0&&O.value.length!==0&&h!==!0&&oe===de.value(O.value[0])&&(oe="");const ue=setTimeout(()=>{c.value===!0&&(c.value=!1)},10);f!==null&&clearTimeout(f),f=ue,t("filter",oe,(ve,ye)=>{(Fe===!0||B.focused.value===!0)&&f===ue&&(clearTimeout(f),typeof ve=="function"&&ve(),r.value=!1,k.nextTick(()=>{B.innerLoading.value=!1,B.editable.value===!0&&(Fe===!0?c.value===!0&&Re():c.value===!0?Je(!0):c.value=!0),typeof ye=="function"&&k.nextTick(()=>{ye(v)}),typeof Z=="function"&&k.nextTick(()=>{Z(v)})}))},()=>{B.focused.value===!0&&f===ue&&(clearTimeout(f),B.innerLoading.value=!1,r.value=!1),c.value===!0&&(c.value=!1)})}function Ce(){return k.h(Xr,{ref:q,class:Y.value,style:l.popupContentStyle,modelValue:c.value,fit:l.menuShrink!==!0,cover:l.optionsCover===!0&&j.value!==!0&&l.useInput!==!0,anchor:l.menuAnchor,self:l.menuSelf,offset:l.menuOffset,dark:z.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:l.popupNoRouteDismiss,square:ie.value,transitionShow:l.transitionShow,transitionHide:l.transitionHide,transitionDuration:l.transitionDuration,separateClosePopup:!0,...ae.value,onScrollPassive:w,onBeforeShow:vt,onBeforeHide:Qe,onShow:Ke},Ye)}function Qe(oe){ft(oe),ge()}function Ke(){M()}function te(oe){Dt(oe),D.value?.focus(),e.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function X(oe){Dt(oe),k.nextTick(()=>{e.value=!1})}function re(){const oe=[k.h(Ul,{class:`col-auto ${B.fieldClass.value}`,...H.value,for:B.targetUid.value,dark:z.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:n.value.length!==0,...B.splitAttrs.listeners.value,onFocus:te,onBlur:X},{...I,rawControl:()=>B.getControl(!0),before:void 0,after:void 0})];return c.value===!0&&oe.push(k.h("div",{ref:P,class:Y.value+" scroll",style:l.popupContentStyle,...ae.value,onClick:Bt,onScrollPassive:w},Ye())),k.h(Ln,{ref:N,modelValue:o.value,position:l.useInput===!0?"top":void 0,transitionShow:p,transitionHide:l.transitionHide,transitionDuration:l.transitionDuration,noRouteDismiss:l.popupNoRouteDismiss,onBeforeShow:vt,onBeforeHide:le,onHide:pe,onShow:Ae},()=>k.h("div",{class:"q-select__dialog"+(z.value===!0?" q-select__dialog--dark q-dark":"")+(e.value===!0?" q-select__dialog--focused":"")},oe))}function le(oe){ft(oe),N.value!==null&&N.value.__updateRefocusTarget(B.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),B.focused.value=!1}function pe(oe){Re(),B.focused.value===!1&&t("blur",oe),ze()}function Ae(){const oe=document.activeElement;(oe===null||oe.id!==B.targetUid.value)&&D.value!==null&&D.value!==oe&&D.value.focus(),M()}function ge(){o.value!==!0&&(a.value=-1,c.value===!0&&(c.value=!1),B.focused.value===!1&&(f!==null&&(clearTimeout(f),f=null),B.innerLoading.value===!0&&(t("filterAbort"),B.innerLoading.value=!1,r.value=!1)))}function _e(oe){B.editable.value===!0&&(d===!0?(B.onControlFocusin(oe),o.value=!0,k.nextTick(()=>{B.focus()})):B.focus(),l.onFilter!==void 0?Oe(n.value):(j.value!==!0||I["no-option"]!==void 0)&&(c.value=!0))}function Re(){o.value=!1,ge()}function ze(){l.useInput===!0&&Te(l.multiple!==!0&&l.fillInput===!0&&O.value.length!==0&&de.value(O.value[0])||"",!0,!0)}function Je(oe){let Fe=-1;if(oe===!0){if(O.value.length!==0){const Z=ce.value(O.value[0]);Fe=l.options.findIndex(ue=>tr(ce.value(ue),Z))}b(Fe)}Pe(Fe)}function Ze(oe,Fe){c.value===!0&&B.innerLoading.value===!1&&(b(-1,!0),k.nextTick(()=>{c.value===!0&&B.innerLoading.value===!1&&(oe>Fe?b():Je(!0))}))}function rt(){o.value===!1&&q.value!==null&&q.value.updatePosition()}function vt(oe){oe!==void 0&&Dt(oe),t("popupShow",oe),B.hasPopupOpen=!0,B.onControlFocusin(oe)}function ft(oe){oe!==void 0&&Dt(oe),t("popupHide",oe),B.hasPopupOpen=!1,B.onControlFocusout(oe)}function kt(){d=m.platform.is.mobile!==!0&&l.behavior!=="dialog"?!1:l.behavior!=="menu"&&(l.useInput===!0?I["no-option"]!==void 0||l.onFilter!==void 0||j.value===!1:!0),p=m.platform.is.ios===!0&&d===!0&&l.useInput===!0?"fade":l.transitionShow}return k.onBeforeUpdate(kt),k.onUpdated(rt),kt(),k.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),s!==null&&clearTimeout(s)}),Object.assign(v,{showPopup:_e,hidePopup:Re,removeAtIndex:Ee,add:We,toggleOption:Ve,getOptionIndex:()=>a.value,setOptionIndex:Pe,moveOptionSelection:qe,filter:Oe,updateMenuPosition:rt,updateInputValue:Te,isOptionSelected:ke,getEmittingOptionValue:Ie,isOptionDisabled:(...oe)=>me.value.apply(null,oe)===!0,getOptionValue:(...oe)=>ce.value.apply(null,oe),getOptionLabel:(...oe)=>de.value.apply(null,oe)}),Object.assign(B,{innerValue:O,fieldClass:k.computed(()=>`q-select q-field--auto-height q-select--with${l.useInput!==!0?"out":""}-input q-select--with${l.useChips!==!0?"out":""}-chips q-select--${l.multiple===!0?"multiple":"single"}`),inputRef:T,targetRef:D,hasValue:Q,showPopup:_e,floatingLabel:k.computed(()=>l.hideSelected!==!0&&Q.value===!0||typeof n.value=="number"||n.value.length!==0||Hr(l.displayValue)),getControlChild:()=>{if(B.editable.value!==!1&&(o.value===!0||j.value!==!0||I["no-option"]!==void 0))return d===!0?re():Ce();B.hasPopupOpen===!0&&(B.hasPopupOpen=!1)},controlEvents:{onFocusin(oe){B.onControlFocusin(oe)},onFocusout(oe){B.onControlFocusout(oe,()=>{ze(),ge()})},onClick(oe){if(Bt(oe),d!==!0&&c.value===!0){ge(),D.value?.focus();return}_e(oe)}},getControl:oe=>{const Fe=tt(),Z=oe===!0||o.value!==!0||d!==!0;if(l.useInput===!0)Fe.push(ot(oe,Z));else if(B.editable.value===!0){const ve=Z===!0?ee.value:void 0;Fe.push(k.h("input",{ref:Z===!0?D:void 0,key:"d_t",class:"q-select__focus-target",id:Z===!0?B.targetUid.value:void 0,value:U.value,readonly:!0,"data-autofocus":oe===!0||l.autofocus===!0||void 0,...ve,onKeydown:et,onKeyup:Ue,onKeypress:Ge})),Z===!0&&typeof l.autocomplete=="string"&&l.autocomplete.length!==0&&Fe.push(k.h("input",{class:"q-select__autocomplete-input",autocomplete:l.autocomplete,tabindex:-1,onKeyup:Le}))}if(V.value!==void 0&&l.disable!==!0&&be.value.length!==0){const ve=be.value.map(ye=>k.h("option",{value:ye,selected:!0}));Fe.push(k.h("select",{class:"hidden",name:V.value,multiple:l.multiple},ve))}const ue=l.useInput===!0||Z!==!0?void 0:B.splitAttrs.attributes.value;return k.h("div",{class:"q-field__native row items-center",...ue,...B.splitAttrs.listeners.value},Fe)},getInnerAppend:()=>l.loading!==!0&&r.value!==!0&&l.hideDropdownIcon!==!0?[k.h(wt,{class:"q-select__dropdown-icon"+(c.value===!0?" rotate-180":""),name:ne.value})]:null}),Ki(B)}}),su={class:"q-pa-none"},ou=k.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"},dataCy:{default:"checkbox-filter"}},emits:["update:modelValue"],setup(l,{emit:I}){const t=l,v=I,m=k.ref(!1),c=k.ref(t.modelValue||[]),o=k.computed(()=>({height:t.scrollAreaHeight,width:t.scrollAreaWidth})),a=k.computed(()=>t.dataCy||"checkbox-filter");return k.watch(c,n=>{v("update:modelValue",n)}),k.watch(()=>t.modelValue,n=>{n&&(c.value=n)},{immediate:!0}),(n,e)=>(k.openBlock(),k.createElementBlock("div",su,[k.createVNode(Vn,k.mergeProps({outlined:"",dense:"",label:t.label,class:["full-width","cursor-pointer"],"data-cy":a.value,"model-value":null,options:[],"hide-dropdown-icon":""},n.$attrs),{append:k.withCtx(()=>[k.createVNode(wt,{name:"arrow_drop_down",class:k.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":m.value}])},null,8,["class"])]),default:k.withCtx(()=>[k.createVNode(Xr,{modelValue:m.value,"onUpdate:modelValue":e[1]||(e[1]=r=>m.value=r),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:k.withCtx(()=>[k.createVNode(Qr,{class:"q-pa-sm"},{default:k.withCtx(()=>[k.createVNode(gl,{style:k.normalizeStyle(o.value)},{default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(t.options,r=>(k.openBlock(),k.createBlock(_r,{key:r.value,modelValue:c.value,"onUpdate:modelValue":e[0]||(e[0]=u=>c.value=u),val:r,label:r.label,disable:r.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`${a.value}-option-${r.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label","data-cy"])]))}}),au=Kt(ou,[["__scopeId","data-v-0e12eb7b"]]),lu=k.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null}},emits:["update:modelValue"],setup(l,{emit:I}){const t=l,v=I,m=k.ref(),c=k.ref(t.modelValue??null),o=k.ref(""),a=k.ref(t.options??[]),n=k.ref(!1),e=k.ref(!0);k.watch(()=>t.options,f=>{a.value=f??[],r()},{immediate:!0}),k.watch(()=>t.modelValue,f=>{c.value=f,r(),n.value=!1});function r(){const f=a.value.find(g=>g.value===c.value);o.value=f?.label??""}function u(f){c.value=f,v("update:modelValue",f),r(),n.value=!1}function s(f){o.value=f,f===""&&(n.value=!0)}function i(){if(e.value){e.value=!1;return}c.value!==null&&!n.value?(o.value="",n.value=!0,m.value?.showPopup()):n.value&&(o.value="")}function d(){e.value=!0;const f=o.value.trim();if(f==="")n.value&&(c.value=null,v("update:modelValue",null));else{const g=a.value.find(p=>p.label.toLowerCase()===f.toLowerCase());g?(c.value=g.value,v("update:modelValue",g.value),o.value=g.label):r()}n.value=!1}function h(f,g,p){if(t.fetchOptions)t.fetchOptions(f).then(x=>{a.value=x,g(()=>{})}).catch(p).finally(()=>{});else{const x=t.options??[];a.value=x.filter(C=>C.label.toLowerCase().includes(f.toLowerCase())),g(()=>{})}}return(f,g)=>(k.openBlock(),k.createBlock(Vn,k.mergeProps({ref_key:"selectRef",ref:m,"model-value":c.value,"input-value":o.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:f.label,options:a.value,dense:"",outlined:"",class:"full-width cursor-pointer"},f.$attrs,{"onUpdate:modelValue":u,"onUpdate:inputValue":s,onFocus:i,onBlur:d,onFilter:h}),null,16,["model-value","input-value","label","options"]))}}),uu=k.defineComponent({__name:"SelectYear",props:{modelValue:{},label:{default:"Sélectionner une année"},startYear:{default:2015},endYear:{default:void 0}},emits:["update:modelValue"],setup(l,{emit:I}){const t=l,v=I,m=k.computed(()=>{const a=t.startYear??new Date().getFullYear()-5,n=t.endYear??new Date().getFullYear(),e=[];for(let r=n;r>=a;r--)e.push({label:String(r),value:r});return e});function c(a){v("update:modelValue",a)}function o(){t.modelValue!==null&&v("update:modelValue",null)}return(a,n)=>(k.openBlock(),k.createBlock(Vn,k.mergeProps({"model-value":a.modelValue,options:m.value,"option-value":"value","option-label":"label",label:a.label,dense:"","emit-value":"",outlined:"",class:"full-width cursor-pointer"},a.$attrs,{"onUpdate:modelValue":c,onFocus:o}),null,16,["model-value","options","label"]))}}),Uo=$e({name:"QAvatar",props:{...Rr,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(l,{slots:I}){const t=Br(l),v=k.computed(()=>"q-avatar"+(l.color?` bg-${l.color}`:"")+(l.textColor?` text-${l.textColor} q-chip--colored`:"")+(l.square===!0?" q-avatar--square":l.rounded===!0?" rounded-borders":"")),m=k.computed(()=>l.fontSize?{fontSize:l.fontSize}:null);return()=>{const c=l.icon!==void 0?[k.h(wt,{name:l.icon})]:void 0;return k.h("div",{class:v.value,style:t.value},[k.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:m.value},io(I.default,c))])}}}),cu=$e({name:"QSpace",setup(){const l=k.h("div",{class:"q-space"});return()=>l}}),fu=["ul","ol"],Xi=$e({name:"QList",props:{...Ot,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(l,{slots:I}){const t=k.getCurrentInstance(),v=jt(l,t.proxy.$q),m=k.computed(()=>fu.includes(l.tag)?null:"list"),c=k.computed(()=>"q-list"+(l.bordered===!0?" q-list--bordered":"")+(l.dense===!0?" q-list--dense":"")+(l.separator===!0?" q-list--separator":"")+(v.value===!0?" q-list--dark":"")+(l.padding===!0?" q-list--padding":""));return()=>k.h(l.tag,{class:c.value,role:m.value},gt(I.default))}}),Wo=$e({name:"QToolbar",props:{inset:Boolean},setup(l,{slots:I}){const t=k.computed(()=>"q-toolbar row no-wrap items-center"+(l.inset===!0?" q-toolbar--inset":""));return()=>k.h("div",{class:t.value,role:"toolbar"},gt(I.default))}}),du=$e({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(l,{slots:I,emit:t}){const{proxy:{$q:v}}=k.getCurrentInstance(),m=k.inject(Gr,Rt);if(m===Rt)return console.error("QHeader needs to be child of QLayout"),Rt;const c=k.ref(parseInt(l.heightHint,10)),o=k.ref(!0),a=k.computed(()=>l.reveal===!0||m.view.value.indexOf("H")!==-1||v.platform.is.ios&&m.isContainer.value===!0),n=k.computed(()=>{if(l.modelValue!==!0)return 0;if(a.value===!0)return o.value===!0?c.value:0;const p=c.value-m.scroll.value.position;return p>0?p:0}),e=k.computed(()=>l.modelValue!==!0||a.value===!0&&o.value!==!0),r=k.computed(()=>l.modelValue===!0&&e.value===!0&&l.reveal===!0),u=k.computed(()=>"q-header q-layout__section--marginal "+(a.value===!0?"fixed":"absolute")+"-top"+(l.bordered===!0?" q-header--bordered":"")+(e.value===!0?" q-header--hidden":"")+(l.modelValue!==!0?" q-layout--prevent-focus":"")),s=k.computed(()=>{const p=m.rows.value.top,x={};return p[0]==="l"&&m.left.space===!0&&(x[v.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),p[2]==="r"&&m.right.space===!0&&(x[v.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),x});function i(p,x){m.update("header",p,x)}function d(p,x){p.value!==x&&(p.value=x)}function h({height:p}){d(c,p),i("size",p)}function f(p){r.value===!0&&d(o,!0),t("focusin",p)}k.watch(()=>l.modelValue,p=>{i("space",p),d(o,!0),m.animate()}),k.watch(n,p=>{i("offset",p)}),k.watch(()=>l.reveal,p=>{p===!1&&d(o,l.modelValue)}),k.watch(o,p=>{m.animate(),t("reveal",p)}),k.watch(m.scroll,p=>{l.reveal===!0&&d(o,p.direction==="up"||p.position<=l.revealOffset||p.position-p.inflectionPoint<100)});const g={};return m.instances.header=g,l.modelValue===!0&&i("size",c.value),i("space",l.modelValue),i("offset",n.value),k.onBeforeUnmount(()=>{m.instances.header===g&&(m.instances.header=void 0,i("size",0),i("offset",0),i("space",!1))}),()=>{const p=Ai(I.default,[]);return l.elevated===!0&&p.push(k.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),p.push(k.h(Er,{debounce:0,onResize:h})),k.h("header",{class:u.value,style:s.value,onFocusin:f},p)}}});function Us(l){if(l===!1)return 0;if(l===!0||l===void 0)return 1;const I=parseInt(l,10);return isNaN(I)?0:I}const qn=Ci({name:"close-popup",beforeMount(l,{value:I}){const t={depth:Us(I),handler(v){t.depth!==0&&setTimeout(()=>{const m=kl(l);m!==void 0&&_l(m,v,t.depth)})},handlerKey(v){nr(v,13)===!0&&t.handler(v)}};l.__qclosepopup=t,l.addEventListener("click",t.handler),l.addEventListener("keyup",t.handlerKey)},updated(l,{value:I,oldValue:t}){I!==t&&(l.__qclosepopup.depth=Us(I))},beforeUnmount(l){const I=l.__qclosepopup;l.removeEventListener("click",I.handler),l.removeEventListener("keyup",I.handlerKey),delete l.__qclosepopup}}),hu=["src","alt"],pu={key:0,class:"project-environment-container row items-center q-mr-md"},mu=k.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{},showProjectSwitch:{type:Boolean},currentProjectLabel:{},availableProjects:{},currentPath:{},environment:{}},emits:["project-change"],setup(l,{emit:I}){const t=l,v=t.logoAlt??"Logo",m=t.logoTo??"/",c=k.computed(()=>({width:"260px",height:"auto",borderRadius:"0"})),o=k.computed(()=>t.environment?t.environment.toUpperCase()!=="PROD":!1),a=k.computed(()=>`environment-badge--${t.environment?.toUpperCase()?.toLowerCase()}`),n=e=>t.currentPath?.startsWith(e);return(e,r)=>{const u=k.resolveComponent("router-link");return k.openBlock(),k.createBlock(du,k.mergeProps({elevated:""},e.$attrs),{default:k.withCtx(()=>[k.createVNode(Wo,null,{default:k.withCtx(()=>[k.createVNode(u,{to:k.unref(m),class:"q-mr-lg"},{default:k.withCtx(()=>[k.createVNode(Uo,{class:"logo",style:k.normalizeStyle(c.value),"data-testid":"header-logo"},{default:k.withCtx(()=>[k.createElementVNode("img",{src:e.logoSrc,alt:k.unref(v)},null,8,hu)]),_:1},8,["style"])]),_:1},8,["to"]),k.createVNode(cu),e.showProjectSwitch||o.value?(k.openBlock(),k.createElementBlock("div",pu,[o.value?(k.openBlock(),k.createElementBlock("div",{key:0,class:k.normalizeClass(["environment-badge",a.value]),"data-testid":"environment-badge"},k.toDisplayString(e.environment),3)):k.createCommentVNode("",!0),e.showProjectSwitch?(k.openBlock(),k.createBlock(ct,{key:1,dense:"",unelevated:"",color:"primary",label:e.currentProjectLabel,"data-testid":"project-switch-btn",class:"project-switch-btn q-mr-md bg-info"},{default:k.withCtx(()=>[k.createVNode(Xr,{anchor:"bottom right",self:"top right"},{default:k.withCtx(()=>[k.createVNode(Xi,{dense:"",class:"project-menu"},{default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(e.availableProjects,s=>k.withDirectives((k.openBlock(),k.createBlock(qr,{key:s.path,clickable:"",disable:n(s.path),onClick:i=>e.$emit("project-change",s.path)},{default:k.withCtx(()=>[k.createVNode(zr,{class:"q-mr-lg"},{default:k.withCtx(()=>[k.createVNode(vi,null,{default:k.withCtx(()=>[k.createTextVNode(k.toDisplayString(s.label),1)]),_:2},1024),n(s.path)?(k.openBlock(),k.createBlock(vi,{key:0,caption:""},{default:k.withCtx(()=>r[0]||(r[0]=[k.createTextVNode(" Actuel ")])),_:1,__:[0]})):k.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["disable","onClick"])),[[qn]])),128))]),_:1})]),_:1})]),_:1},8,["label"])):k.createCommentVNode("",!0)])):k.createCommentVNode("",!0),k.renderSlot(e.$slots,"user-avatar",{},void 0,!0)]),_:3})]),_:3},16)}}}),gu=Kt(mu,[["__scopeId","data-v-a4df46a4"]]),bu=$e({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=k.getCurrentInstance(),m=k.inject(Gr,Rt);if(m===Rt)return console.error("QFooter needs to be child of QLayout"),Rt;const c=k.ref(parseInt(l.heightHint,10)),o=k.ref(!0),a=k.ref(ir.value===!0||m.isContainer.value===!0?0:window.innerHeight),n=k.computed(()=>l.reveal===!0||m.view.value.indexOf("F")!==-1||v.platform.is.ios&&m.isContainer.value===!0),e=k.computed(()=>m.isContainer.value===!0?m.containerHeight.value:a.value),r=k.computed(()=>{if(l.modelValue!==!0)return 0;if(n.value===!0)return o.value===!0?c.value:0;const T=m.scroll.value.position+e.value+c.value-m.height.value;return T>0?T:0}),u=k.computed(()=>l.modelValue!==!0||n.value===!0&&o.value!==!0),s=k.computed(()=>l.modelValue===!0&&u.value===!0&&l.reveal===!0),i=k.computed(()=>"q-footer q-layout__section--marginal "+(n.value===!0?"fixed":"absolute")+"-bottom"+(l.bordered===!0?" q-footer--bordered":"")+(u.value===!0?" q-footer--hidden":"")+(l.modelValue!==!0?" q-layout--prevent-focus"+(n.value!==!0?" hidden":""):"")),d=k.computed(()=>{const T=m.rows.value.bottom,D={};return T[0]==="l"&&m.left.space===!0&&(D[v.lang.rtl===!0?"right":"left"]=`${m.left.size}px`),T[2]==="r"&&m.right.space===!0&&(D[v.lang.rtl===!0?"left":"right"]=`${m.right.size}px`),D});function h(T,D){m.update("footer",T,D)}function f(T,D){T.value!==D&&(T.value=D)}function g({height:T}){f(c,T),h("size",T)}function p(){if(l.reveal!==!0)return;const{direction:T,position:D,inflectionPoint:q}=m.scroll.value;f(o,T==="up"||D-q<100||m.height.value-e.value-D-c.value<300)}function x(T){s.value===!0&&f(o,!0),t("focusin",T)}k.watch(()=>l.modelValue,T=>{h("space",T),f(o,!0),m.animate()}),k.watch(r,T=>{h("offset",T)}),k.watch(()=>l.reveal,T=>{T===!1&&f(o,l.modelValue)}),k.watch(o,T=>{m.animate(),t("reveal",T)}),k.watch([c,m.scroll,m.height],p),k.watch(()=>v.screen.height,T=>{m.isContainer.value!==!0&&f(a,T)});const C={};return m.instances.footer=C,l.modelValue===!0&&h("size",c.value),h("space",l.modelValue),h("offset",r.value),k.onBeforeUnmount(()=>{m.instances.footer===C&&(m.instances.footer=void 0,h("size",0),h("offset",0),h("space",!1))}),()=>{const T=It(I.default,[k.h(Er,{debounce:0,onResize:g})]);return l.elevated===!0&&T.push(k.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),k.h("footer",{class:i.value,style:d.value,onFocusin:x},T)}}}),vu={class:"row justify-between"},yu={class:"col-3 q-py-md flex justify-center"},wu={class:"col-3 q-py-md flex justify-center"},xu={class:"col-3 q-py-md flex justify-center"},Su=k.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(l){return(I,t)=>(k.openBlock(),k.createBlock(bu,k.mergeProps({elevated:""},I.$attrs),{default:k.withCtx(()=>[k.createElementVNode("div",vu,[k.createElementVNode("div",yu," Front: "+k.toDisplayString(I.frontVersion),1),k.createElementVNode("div",wu," Back: "+k.toDisplayString(I.backVersion),1),k.createElementVNode("div",xu," Platform: "+k.toDisplayString(I.platform),1)])]),_:1},16))}}),ku={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},ni={xs:2,sm:4,md:8,lg:16,xl:24},In=$e({name:"QSeparator",props:{...Ot,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(l){const I=k.getCurrentInstance(),t=jt(l,I.proxy.$q),v=k.computed(()=>l.vertical===!0?"vertical":"horizontal"),m=k.computed(()=>` q-separator--${v.value}`),c=k.computed(()=>l.inset!==!1?`${m.value}-${ku[l.inset]}`:""),o=k.computed(()=>`q-separator${m.value}${c.value}`+(l.color!==void 0?` bg-${l.color}`:"")+(t.value===!0?" q-separator--dark":"")),a=k.computed(()=>{const n={};if(l.size!==void 0&&(n[l.vertical===!0?"width":"height"]=l.size),l.spaced!==!1){const e=l.spaced===!0?`${ni.md}px`:l.spaced in ni?`${ni[l.spaced]}px`:l.spaced,r=l.vertical===!0?["Left","Right"]:["Top","Bottom"];n[`margin${r[0]}`]=n[`margin${r[1]}`]=e}return n});return()=>k.h("hr",{class:o.value,style:a.value,"aria-orientation":v.value})}}),_u={class:"text-h6 text-primary","data-testid":"avatar-initial"},Cu={class:"text-weight-bold"},Au={class:"version-info"},Eu={class:"text-caption"},Mu={class:"text-caption"},Tu={class:"text-caption"},Ru=k.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{},logoutLabel:{default:"Déconnexion"},frontVersion:{default:"N/A"},backVersion:{default:"N/A"},platform:{default:"dev"},showVersionInfo:{type:Boolean,default:!0}},setup(l){const I=l,t=k.computed(()=>I.username?.charAt(0).toUpperCase()??"");return(v,m)=>(k.openBlock(),k.createElementBlock("div",null,[k.createVNode(Uo,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar","data-testid":"cy-avatar"},{default:k.withCtx(()=>[k.createElementVNode("span",_u,k.toDisplayString(t.value),1),k.createVNode(Xr,{"transition-show":"flip-right","transition-hide":"flip-left",class:"user-avatar-menu"},{default:k.withCtx(()=>[k.createVNode(Xi,{class:"user-menu-list"},{default:k.withCtx(()=>[k.createVNode(qr,{class:"user-info-section"},{default:k.withCtx(()=>[k.createVNode(zr,null,{default:k.withCtx(()=>[k.createElementVNode("div",Cu,k.toDisplayString(v.username),1)]),_:1})]),_:1}),k.createVNode(In),v.showVersionInfo?(k.openBlock(),k.createBlock(qr,{key:0,class:"version-info-section"},{default:k.withCtx(()=>[k.createVNode(zr,null,{default:k.withCtx(()=>[k.createElementVNode("div",Au,[m[0]||(m[0]=k.createElementVNode("div",{class:"text-caption text-grey-7"},"Informations de version",-1)),k.createElementVNode("div",Eu,"Front: "+k.toDisplayString(v.frontVersion),1),k.createElementVNode("div",Mu,"Back: "+k.toDisplayString(v.backVersion),1),k.createElementVNode("div",Tu,"Plateforme: "+k.toDisplayString(v.platform),1)])]),_:1})]),_:1})):k.createCommentVNode("",!0),v.showVersionInfo?(k.openBlock(),k.createBlock(In,{key:1})):k.createCommentVNode("",!0),k.createVNode(qr,{clickable:"",class:"logout-section","data-cy":"cy-logout-button","data-testid":"cy-logout-button",onClick:v.onLogout},{default:k.withCtx(()=>[k.createVNode(zr,null,{default:k.withCtx(()=>[k.createElementVNode("div",null,k.toDisplayString(v.logoutLabel),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),Bu=Kt(Ru,[["__scopeId","data-v-18e2dcbc"]]),Iu=$e({name:"QPageContainer",setup(l,{slots:I}){const{proxy:{$q:t}}=k.getCurrentInstance(),v=k.inject(Gr,Rt);if(v===Rt)return console.error("QPageContainer needs to be child of QLayout"),Rt;k.provide(jo,!0);const m=k.computed(()=>{const c={};return v.header.space===!0&&(c.paddingTop=`${v.header.size}px`),v.right.space===!0&&(c[`padding${t.lang.rtl===!0?"Left":"Right"}`]=`${v.right.size}px`),v.footer.space===!0&&(c.paddingBottom=`${v.footer.size}px`),v.left.space===!0&&(c[`padding${t.lang.rtl===!0?"Right":"Left"}`]=`${v.left.size}px`),c});return()=>k.h("div",{class:"q-page-container",style:m.value},gt(I.default))}}),Ou=$e({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:l=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(l.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(l,{slots:I,emit:t}){const{proxy:{$q:v}}=k.getCurrentInstance(),m=k.ref(null),c=k.ref(v.screen.height),o=k.ref(l.container===!0?0:v.screen.width),a=k.ref({position:0,direction:"down",inflectionPoint:0}),n=k.ref(0),e=k.ref(ir.value===!0?0:yn()),r=k.computed(()=>"q-layout q-layout--"+(l.container===!0?"containerized":"standard")),u=k.computed(()=>l.container===!1?{minHeight:v.screen.height+"px"}:null),s=k.computed(()=>e.value!==0?{[v.lang.rtl===!0?"left":"right"]:`${e.value}px`}:null),i=k.computed(()=>e.value!==0?{[v.lang.rtl===!0?"right":"left"]:0,[v.lang.rtl===!0?"left":"right"]:`-${e.value}px`,width:`calc(100% + ${e.value}px)`}:null);function d(C){if(l.container===!0||document.qScrollPrevented!==!0){const T={position:C.position.top,direction:C.direction,directionChanged:C.directionChanged,inflectionPoint:C.inflectionPoint.top,delta:C.delta.top};a.value=T,l.onScroll!==void 0&&t("scroll",T)}}function h(C){const{height:T,width:D}=C;let q=!1;c.value!==T&&(q=!0,c.value=T,l.onScrollHeight!==void 0&&t("scrollHeight",T),g()),o.value!==D&&(q=!0,o.value=D),q===!0&&l.onResize!==void 0&&t("resize",C)}function f({height:C}){n.value!==C&&(n.value=C,g())}function g(){if(l.container===!0){const C=c.value>n.value?yn():0;e.value!==C&&(e.value=C)}}let p=null;const x={instances:{},view:k.computed(()=>l.view),isContainer:k.computed(()=>l.container),rootRef:m,height:c,containerHeight:n,scrollbarWidth:e,totalWidth:k.computed(()=>o.value+e.value),rows:k.computed(()=>{const C=l.view.toLowerCase().split(" ");return{top:C[0].split(""),middle:C[1].split(""),bottom:C[2].split("")}}),header:k.reactive({size:0,offset:0,space:!1}),right:k.reactive({size:300,offset:0,space:!1}),footer:k.reactive({size:0,offset:0,space:!1}),left:k.reactive({size:300,offset:0,space:!1}),scroll:a,animate(){p!==null?clearTimeout(p):document.body.classList.add("q-body--layout-animate"),p=setTimeout(()=>{p=null,document.body.classList.remove("q-body--layout-animate")},155)},update(C,T,D){x[C][T]=D}};if(k.provide(Gr,x),yn()>0){let C=function(){q=null,N.classList.remove("hide-scrollbar")},T=function(){if(q===null){if(N.scrollHeight>v.screen.height)return;N.classList.add("hide-scrollbar")}else clearTimeout(q);q=setTimeout(C,300)},D=function(P){q!==null&&P==="remove"&&(clearTimeout(q),C()),window[`${P}EventListener`]("resize",T)},q=null;const N=document.body;k.watch(()=>l.container!==!0?"add":"remove",D),l.container!==!0&&D("add"),k.onUnmounted(()=>{D("remove")})}return()=>{const C=It(I.default,[k.h(So,{onScroll:d}),k.h(Er,{onResize:h})]),T=k.h("div",{class:r.value,style:u.value,ref:l.container===!0?void 0:m,tabindex:-1},C);return l.container===!0?k.h("div",{class:"q-layout-container overflow-hidden",ref:m},[k.h(Er,{onResize:f}),k.h("div",{class:"absolute-full",style:s.value},[k.h("div",{class:"scroll",style:i.value},[T])])]):T}}}),Gi=k.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-white"},pageContainerClass:{default:""}},setup(l){return(I,t)=>(k.openBlock(),k.createBlock(Ou,{view:I.view,class:k.normalizeClass(I.layoutClass),style:{minHeight:"auto !important"}},{default:k.withCtx(()=>[k.renderSlot(I.$slots,"header"),k.createVNode(Iu,{class:k.normalizeClass(I.pageContainerClass),style:{paddingBottom:"0 !important"}},{default:k.withCtx(()=>[k.renderSlot(I.$slots,"default")]),_:3},8,["class"]),k.renderSlot(I.$slots,"footer")]),_:3},8,["view","class"]))}});function ju(){let l=Object.create(null);return{getCache:(I,t)=>l[I]===void 0?l[I]=typeof t=="function"?t():t:l[I],setCache(I,t){l[I]=t},hasCache(I){return Object.hasOwnProperty.call(l,I)},clearCache(I){I!==void 0?delete l[I]:l=Object.create(null)}}}const rr=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function Fu(l,I,t){return Object.prototype.toString.call(l)==="[object Date]"&&(t=l.getDate(),I=l.getMonth()+1,l=l.getFullYear()),Lu(Ji(l,I,t))}function Ws(l,I,t){return Yo(Pu(l,I,t))}function Du(l){return Nu(l)===0}function wn(l,I){return I<=6?31:I<=11||Du(l)?30:29}function Nu(l){const I=rr.length;let t=rr[0],v,m,c,o,a;if(l<t||l>=rr[I-1])throw new Error("Invalid Jalaali year "+l);for(a=1;a<I&&(v=rr[a],m=v-t,!(l<v));a+=1)t=v;return o=l-t,m-o<6&&(o=o-m+yt(m+4,33)*33),c=Nt(Nt(o+1,33)-1,4),c===-1&&(c=4),c}function Ho(l,I){const t=rr.length,v=l+621;let m=-14,c=rr[0],o,a,n,e,r;if(l<c||l>=rr[t-1])throw new Error("Invalid Jalaali year "+l);for(r=1;r<t&&(o=rr[r],a=o-c,!(l<o));r+=1)m=m+yt(a,33)*8+yt(Nt(a,33),4),c=o;e=l-c,m=m+yt(e,33)*8+yt(Nt(e,33)+3,4),Nt(a,33)===4&&a-e===4&&(m+=1);const u=yt(v,4)-yt((yt(v,100)+1)*3,4)-150,s=20+m-u;return I||(a-e<6&&(e=e-a+yt(a+4,33)*33),n=Nt(Nt(e+1,33)-1,4),n===-1&&(n=4)),{leap:n,gy:v,march:s}}function Pu(l,I,t){const v=Ho(l,!0);return Ji(v.gy,3,v.march)+(I-1)*31-yt(I,7)*(I-7)+t-1}function Lu(l){const I=Yo(l).gy;let t=I-621,v,m,c;const o=Ho(t,!1),a=Ji(I,3,o.march);if(c=l-a,c>=0){if(c<=185)return m=1+yt(c,31),v=Nt(c,31)+1,{jy:t,jm:m,jd:v};c-=186}else t-=1,c+=179,o.leap===1&&(c+=1);return m=7+yt(c,30),v=Nt(c,30)+1,{jy:t,jm:m,jd:v}}function Ji(l,I,t){let v=yt((l+yt(I-8,6)+100100)*1461,4)+yt(153*Nt(I+9,12)+2,5)+t-34840408;return v=v-yt(yt(l+100100+yt(I-8,6),100)*3,4)+752,v}function Yo(l){let I=4*l+139361631;I=I+yt(yt(4*l+183187720,146097)*3,4)*4-3908;const t=yt(Nt(I,1461),4)*5+308,v=yt(Nt(t,153),5)+1,m=Nt(yt(t,153),12)+1;return{gy:yt(I,1461)-100100+yt(8-m,6),gm:m,gd:v}}function yt(l,I){return~~(l/I)}function Nt(l,I){return l-~~(l/I)*I}const Vu=["gregorian","persian"],Hs={mask:{type:String},locale:Object,calendar:{type:String,validator:l=>Vu.includes(l),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},qu=["update:modelValue"];function Zt(l){return l.year+"/"+bt(l.month)+"/"+bt(l.day)}function zu(l,I){const t=k.computed(()=>l.disable!==!0&&l.readonly!==!0),v=k.computed(()=>t.value===!0?0:-1),m=k.computed(()=>{const a=[];return l.color!==void 0&&a.push(`bg-${l.color}`),l.textColor!==void 0&&a.push(`text-${l.textColor}`),a.join(" ")});function c(){return l.locale!==void 0?{...I.lang.date,...l.locale}:I.lang.date}function o(a){const n=new Date,e=a===!0?null:0;if(l.calendar==="persian"){const r=Fu(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:v,headerClass:m,getLocale:c,getCurrentDate:o}}const xi={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:l=>l?`Expand "${l}"`:"Expand",collapse:l=>l?`Collapse "${l}"`:"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:l=>`Previous ${l} years`,nextRangeYears:l=>`Next ${l} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:l=>l===1?"1 record selected.":(l===0?"No":l)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(l,I,t)=>l+"-"+I+" 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 Ys(){const l=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof l=="string")return l.split(/[-_]/).map((I,t)=>t===0?I.toLowerCase():t>1||I.length<4?I.toUpperCase():I[0].toUpperCase()+I.slice(1).toLowerCase()).join("-")}const er=ma({__qLang:{}},{getLocale:Ys,set(l=xi,I){const t={...l,rtl:l.rtl===!0,getLocale:Ys};{if(t.set=er.set,er.__langConfig===void 0||er.__langConfig.noHtmlAttrs!==!0){const v=document.documentElement;v.setAttribute("dir",t.rtl===!0?"rtl":"ltr"),v.setAttribute("lang",t.isoName)}Object.assign(er.__qLang,t)}},install({$q:l,lang:I,ssrContext:t}){l.lang=er.__qLang,er.__langConfig=l.config.lang,this.__installed===!0?I!==void 0&&this.set(I):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(v){return Reflect.ownKeys(v).filter(m=>m!=="set"&&m!=="getLocale")}}),this.set(I||xi))}}),Qo=864e5,Uu=36e5,Si=6e4,Ko="YYYY-MM-DDTHH:mm:ss.SSSZ",Wu=/\[((?:[^\]\\]|\\]|\\)*)\]|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,Hu=/(\[[^\]]*\])|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,ii={};function Yu(l,I){const t="("+I.days.join("|")+")",v=l+t;if(ii[v]!==void 0)return ii[v];const m="("+I.daysShort.join("|")+")",c="("+I.months.join("|")+")",o="("+I.monthsShort.join("|")+")",a={};let n=0;const e=l.replace(Hu,u=>{switch(n++,u){case"YY":return a.YY=n,"(-?\\d{1,2})";case"YYYY":return a.YYYY=n,"(-?\\d{1,4})";case"M":return a.M=n,"(\\d{1,2})";case"Mo":return a.M=n++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return a.M=n,"(\\d{2})";case"MMM":return a.MMM=n,o;case"MMMM":return a.MMMM=n,c;case"D":return a.D=n,"(\\d{1,2})";case"Do":return a.D=n++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return a.D=n,"(\\d{2})";case"H":return a.H=n,"(\\d{1,2})";case"HH":return a.H=n,"(\\d{2})";case"h":return a.h=n,"(\\d{1,2})";case"hh":return a.h=n,"(\\d{2})";case"m":return a.m=n,"(\\d{1,2})";case"mm":return a.m=n,"(\\d{2})";case"s":return a.s=n,"(\\d{1,2})";case"ss":return a.s=n,"(\\d{2})";case"S":return a.S=n,"(\\d{1})";case"SS":return a.S=n,"(\\d{2})";case"SSS":return a.S=n,"(\\d{3})";case"A":return a.A=n,"(AM|PM)";case"a":return a.a=n,"(am|pm)";case"aa":return a.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 a.Z=n,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return a.ZZ=n,"(Z|[+-]\\d{2}\\d{2})";case"X":return a.X=n,"(-?\\d+)";case"x":return a.x=n,"(-?\\d{4,})";default:return n--,u[0]==="["&&(u=u.substring(1,u.length-1)),u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),r={map:a,regex:new RegExp("^"+e)};return ii[v]=r,r}function Xo(l,I){return l!==void 0?l:I!==void 0?I.date:xi.date}function Qs(l,I=""){const t=l>0?"-":"+",v=Math.abs(l),m=Math.floor(v/60),c=v%60;return t+bt(m)+I+bt(c)}function Qu(l,I,t){let v=l.getFullYear(),m=l.getMonth();const c=l.getDate();return I.year!==void 0&&(v+=t*I.year,delete I.year),I.month!==void 0&&(m+=t*I.month,delete I.month),l.setDate(1),l.setMonth(2),l.setFullYear(v),l.setMonth(m),l.setDate(Math.min(c,es(l))),I.date!==void 0&&(l.setDate(l.getDate()+t*I.date),delete I.date),l}function Ku(l,I,t){const v=I.year!==void 0?I.year:l[`get${t}FullYear`](),m=I.month!==void 0?I.month-1:l[`get${t}Month`](),c=new Date(v,m+1,0).getDate(),o=Math.min(c,I.date!==void 0?I.date:l[`get${t}Date`]());return l[`set${t}Date`](1),l[`set${t}Month`](2),l[`set${t}FullYear`](v),l[`set${t}Month`](m),l[`set${t}Date`](o),delete I.year,delete I.month,delete I.date,l}function Zi(l,I,t){const v=Go(I),m=new Date(l),c=v.year!==void 0||v.month!==void 0||v.date!==void 0?Qu(m,v,t):m;for(const o in v){const a=ml(o);c[`set${a}`](c[`get${a}`]()+t*v[o])}return c}function Go(l){const I={...l};return l.years!==void 0&&(I.year=l.years,delete I.years),l.months!==void 0&&(I.month=l.months,delete I.months),l.days!==void 0&&(I.date=l.days,delete I.days),l.day!==void 0&&(I.date=l.day,delete I.day),l.hour!==void 0&&(I.hours=l.hour,delete I.hour),l.minute!==void 0&&(I.minutes=l.minute,delete I.minute),l.second!==void 0&&(I.seconds=l.second,delete I.second),l.millisecond!==void 0&&(I.milliseconds=l.millisecond,delete I.millisecond),I}function Jo(l,I,t){const v=Go(I),m=t===!0?"UTC":"",c=new Date(l),o=v.year!==void 0||v.month!==void 0||v.date!==void 0?Ku(c,v,m):c;for(const a in v){const n=a.charAt(0).toUpperCase()+a.slice(1);o[`set${m}${n}`](v[a])}return o}function Xu(l,I,t){const v=Zo(l,I,t),m=new Date(v.year,v.month===null?null:v.month-1,v.day===null?1:v.day,v.hour,v.minute,v.second,v.millisecond),c=m.getTimezoneOffset();return v.timezoneOffset===null||v.timezoneOffset===c?m:Zi(m,{minutes:v.timezoneOffset-c},1)}function Zo(l,I,t,v,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),l==null||l===""||typeof l!="string")return c;I===void 0&&(I=Ko);const o=Xo(t,er.props),a=o.months,n=o.monthsShort,{regex:e,map:r}=Yu(I,o),u=l.match(e);if(u===null)return c;let s="";if(r.X!==void 0||r.x!==void 0){const i=parseInt(u[r.X!==void 0?r.X:r.x],10);if(isNaN(i)===!0||i<0)return c;const d=new Date(i*(r.X!==void 0?1e3:1));c.year=d.getFullYear(),c.month=d.getMonth()+1,c.day=d.getDate(),c.hour=d.getHours(),c.minute=d.getMinutes(),c.second=d.getSeconds(),c.millisecond=d.getMilliseconds()}else{if(r.YYYY!==void 0)c.year=parseInt(u[r.YYYY],10);else if(r.YY!==void 0){const i=parseInt(u[r.YY],10);c.year=i<0?i:2e3+i}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=a.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 i=v!=="persian"?new Date(c.year,c.month,0).getDate():wn(c.year,c.month);if(c.day>i)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=bt(c.year,4)+"/"+bt(c.month)+"/"+bt(c.day),c.timeHash=bt(c.hour)+":"+bt(c.minute)+":"+bt(c.second)+s,c}function Gu(l){return typeof l=="number"?!0:isNaN(Date.parse(l))===!1}function Ju(l,I){return Jo(new Date,l,I)}function Zu(l){const I=new Date(l).getDay();return I===0?7:I}function xn(l){const I=new Date(l.getFullYear(),l.getMonth(),l.getDate());I.setDate(I.getDate()-(I.getDay()+6)%7+3);const t=new Date(I.getFullYear(),0,4);t.setDate(t.getDate()-(t.getDay()+6)%7+3);const v=I.getTimezoneOffset()-t.getTimezoneOffset();I.setHours(I.getHours()-v);const m=(I-t)/(Qo*7);return 1+Math.floor(m)}function $u(l){return l.getFullYear()*1e4+l.getMonth()*100+l.getDate()}function si(l,I){const t=new Date(l);return I===!0?$u(t):t.getTime()}function ec(l,I,t,v={}){const m=si(I,v.onlyDate),c=si(t,v.onlyDate),o=si(l,v.onlyDate);return(o>m||v.inclusiveFrom===!0&&o===m)&&(o<c||v.inclusiveTo===!0&&o===c)}function tc(l,I){return Zi(l,I,1)}function rc(l,I){return Zi(l,I,-1)}function Ut(l,I,t){const v=new Date(l),m=`set${t===!0?"UTC":""}`;switch(I){case"year":case"years":v[`${m}Month`](0);case"month":case"months":v[`${m}Date`](1);case"day":case"days":case"date":v[`${m}Hours`](0);case"hour":case"hours":v[`${m}Minutes`](0);case"minute":case"minutes":v[`${m}Seconds`](0);case"second":case"seconds":v[`${m}Milliseconds`](0)}return v}function nc(l,I,t){const v=new Date(l),m=`set${t===!0?"UTC":""}`;switch(I){case"year":case"years":v[`${m}Month`](11);case"month":case"months":v[`${m}Date`](es(v));case"day":case"days":case"date":v[`${m}Hours`](23);case"hour":case"hours":v[`${m}Minutes`](59);case"minute":case"minutes":v[`${m}Seconds`](59);case"second":case"seconds":v[`${m}Milliseconds`](999)}return v}function ic(l){let I=new Date(l);return Array.prototype.slice.call(arguments,1).forEach(t=>{I=Math.max(I,new Date(t))}),I}function sc(l){let I=new Date(l);return Array.prototype.slice.call(arguments,1).forEach(t=>{I=Math.min(I,new Date(t))}),I}function fn(l,I,t){return(l.getTime()-l.getTimezoneOffset()*Si-(I.getTime()-I.getTimezoneOffset()*Si))/t}function $i(l,I,t="days"){const v=new Date(l),m=new Date(I);switch(t){case"years":case"year":return v.getFullYear()-m.getFullYear();case"months":case"month":return(v.getFullYear()-m.getFullYear())*12+v.getMonth()-m.getMonth();case"days":case"day":case"date":return fn(Ut(v,"day"),Ut(m,"day"),Qo);case"hours":case"hour":return fn(Ut(v,"hour"),Ut(m,"hour"),Uu);case"minutes":case"minute":return fn(Ut(v,"minute"),Ut(m,"minute"),Si);case"seconds":case"second":return fn(Ut(v,"second"),Ut(m,"second"),1e3)}}function Sn(l){return $i(l,Ut(l,"year"),"days")+1}function oc(l){return Bn(l)===!0?"date":typeof l=="number"?"number":"string"}function ac(l,I,t){const v=new Date(l);if(I){const m=new Date(I);if(v<m)return m}if(t){const m=new Date(t);if(v>m)return m}return v}function lc(l,I,t){const v=new Date(l),m=new Date(I);if(t===void 0)return v.getTime()===m.getTime();switch(t){case"second":case"seconds":if(v.getSeconds()!==m.getSeconds())return!1;case"minute":case"minutes":if(v.getMinutes()!==m.getMinutes())return!1;case"hour":case"hours":if(v.getHours()!==m.getHours())return!1;case"day":case"days":case"date":if(v.getDate()!==m.getDate())return!1;case"month":case"months":if(v.getMonth()!==m.getMonth())return!1;case"year":case"years":if(v.getFullYear()!==m.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${t}`)}return!0}function es(l){return new Date(l.getFullYear(),l.getMonth()+1,0).getDate()}function xr(l){if(l>=11&&l<=13)return`${l}th`;switch(l%10){case 1:return`${l}st`;case 2:return`${l}nd`;case 3:return`${l}rd`}return`${l}th`}const Ks={YY(l,I,t){const v=this.YYYY(l,I,t)%100;return v>=0?bt(v):"-"+bt(Math.abs(v))},YYYY(l,I,t){return t??l.getFullYear()},M(l){return l.getMonth()+1},Mo(l){return xr(l.getMonth()+1)},MM(l){return bt(l.getMonth()+1)},MMM(l,I){return I.monthsShort[l.getMonth()]},MMMM(l,I){return I.months[l.getMonth()]},Q(l){return Math.ceil((l.getMonth()+1)/3)},Qo(l){return xr(this.Q(l))},D(l){return l.getDate()},Do(l){return xr(l.getDate())},DD(l){return bt(l.getDate())},DDD(l){return Sn(l)},DDDo(l){return xr(Sn(l))},DDDD(l){return bt(Sn(l),3)},d(l){return l.getDay()},do(l){return xr(l.getDay())},dd(l,I){return I.days[l.getDay()].slice(0,2)},ddd(l,I){return I.daysShort[l.getDay()]},dddd(l,I){return I.days[l.getDay()]},E(l){return l.getDay()||7},w(l){return xn(l)},wo(l){return xr(xn(l))},ww(l){return bt(xn(l))},H(l){return l.getHours()},HH(l){return bt(l.getHours())},h(l){const I=l.getHours();return I===0?12:I>12?I%12:I},hh(l){return bt(this.h(l))},m(l){return l.getMinutes()},mm(l){return bt(l.getMinutes())},s(l){return l.getSeconds()},ss(l){return bt(l.getSeconds())},S(l){return Math.floor(l.getMilliseconds()/100)},SS(l){return bt(Math.floor(l.getMilliseconds()/10))},SSS(l){return bt(l.getMilliseconds(),3)},A(l){return l.getHours()<12?"AM":"PM"},a(l){return l.getHours()<12?"am":"pm"},aa(l){return l.getHours()<12?"a.m.":"p.m."},Z(l,I,t,v){const m=v??l.getTimezoneOffset();return Qs(m,":")},ZZ(l,I,t,v){const m=v??l.getTimezoneOffset();return Qs(m)},X(l){return Math.floor(l.getTime()/1e3)},x(l){return l.getTime()}};function $o(l,I,t,v,m){if(l!==0&&!l||l===1/0||l===-1/0)return;const c=new Date(l);if(isNaN(c))return;I===void 0&&(I=Ko);const o=Xo(t,er.props);return I.replace(Wu,(a,n)=>a in Ks?Ks[a](c,o,v,m):n===void 0?a:n.split("\\]").join("]"))}function uc(l){return Bn(l)===!0?new Date(l.getTime()):l}const ea={isValid:Gu,extractDate:Xu,buildDate:Ju,getDayOfWeek:Zu,getWeekOfYear:xn,isBetweenDates:ec,addToDate:tc,subtractFromDate:rc,adjustDate:Jo,startOfDate:Ut,endOfDate:nc,getMaxDate:ic,getMinDate:sc,getDateDiff:$i,getDayOfYear:Sn,inferDateFormat:oc,getDateBetween:ac,isSameDate:lc,daysInMonth:es,formatDate:$o,clone:uc},Ht=20,cc=["Calendar","Years","Months"],Xs=l=>cc.includes(l),oi=l=>/^-?[\d]+\/[0-1]\d$/.test(l),Sr=" — ";function $t(l){return l.year+"/"+bt(l.month)}const ta=$e({name:"QDate",props:{...Hs,...Fn,...Ot,modelValue:{required:!0,validator:l=>typeof l=="string"||Array.isArray(l)===!0||Object(l)===l||l===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...Hs.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:oi},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:oi},navigationMaxYearMonth:{type:String,validator:oi},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:Xs}},emits:[...qu,"rangeStart","rangeEnd","navigation"],setup(l,{slots:I,emit:t}){const{proxy:v}=k.getCurrentInstance(),{$q:m}=v,c=jt(l,m),{getCache:o}=ju(),{tabindex:a,headerClass:n,getLocale:e,getCurrentDate:r}=zu(l,m);let u;const s=Ja(l),i=go(s),d=k.ref(null),h=k.ref(We()),f=k.ref(e()),g=k.computed(()=>We()),p=k.computed(()=>e()),x=k.computed(()=>r()),C=k.ref(Pe(h.value,f.value)),T=k.ref(l.defaultView),D=k.computed(()=>m.lang.rtl===!0?"right":"left"),q=k.ref(D.value),N=k.ref(D.value),P=C.value.year,V=k.ref(P-P%Ht-(P<0?Ht:0)),W=k.ref(null),L=k.computed(()=>{const te=l.landscape===!0?"landscape":"portrait";return`q-date q-date--${te} q-date--${te}-${l.minimal===!0?"minimal":"standard"}`+(c.value===!0?" q-date--dark q-dark":"")+(l.bordered===!0?" q-date--bordered":"")+(l.square===!0?" q-date--square no-border-radius":"")+(l.flat===!0?" q-date--flat no-shadow":"")+(l.disable===!0?" disabled":l.readonly===!0?" q-date--readonly":"")}),A=k.computed(()=>l.color||"primary"),E=k.computed(()=>l.textColor||"white"),_=k.computed(()=>l.emitImmediately===!0&&l.multiple!==!0&&l.range!==!0),b=k.computed(()=>Array.isArray(l.modelValue)===!0?l.modelValue:l.modelValue!==null&&l.modelValue!==void 0?[l.modelValue]:[]),y=k.computed(()=>b.value.filter(te=>typeof te=="string").map(te=>Ve(te,h.value,f.value)).filter(te=>te.dateHash!==null&&te.day!==null&&te.month!==null&&te.year!==null)),w=k.computed(()=>{const te=X=>Ve(X,h.value,f.value);return b.value.filter(X=>zo(X)===!0&&X.from!==void 0&&X.to!==void 0).map(X=>({from:te(X.from),to:te(X.to)})).filter(X=>X.from.dateHash!==null&&X.to.dateHash!==null&&X.from.dateHash<X.to.dateHash)}),S=k.computed(()=>l.calendar!=="persian"?te=>new Date(te.year,te.month-1,te.day):te=>{const X=Ws(te.year,te.month,te.day);return new Date(X.gy,X.gm-1,X.gd)}),M=k.computed(()=>l.calendar==="persian"?Zt:(te,X,re)=>$o(new Date(te.year,te.month-1,te.day,te.hour,te.minute,te.second,te.millisecond),X===void 0?h.value:X,re===void 0?f.value:re,te.year,te.timezoneOffset)),B=k.computed(()=>y.value.length+w.value.reduce((te,X)=>te+1+$i(S.value(X.to),S.value(X.from)),0)),O=k.computed(()=>{if(l.title!==void 0&&l.title!==null&&l.title.length!==0)return l.title;if(W.value!==null){const re=W.value.init,le=S.value(re);return f.value.daysShort[le.getDay()]+", "+f.value.monthsShort[re.month-1]+" "+re.day+Sr+"?"}if(B.value===0)return Sr;if(B.value>1)return`${B.value} ${f.value.pluralDay}`;const te=y.value[0],X=S.value(te);return isNaN(X.valueOf())===!0?Sr:f.value.headerTitle!==void 0?f.value.headerTitle(X,te):f.value.daysShort[X.getDay()]+", "+f.value.monthsShort[te.month-1]+" "+te.day}),H=k.computed(()=>y.value.concat(w.value.map(X=>X.from)).sort((X,re)=>X.year-re.year||X.month-re.month)[0]),z=k.computed(()=>y.value.concat(w.value.map(X=>X.to)).sort((X,re)=>re.year-X.year||re.month-X.month)[0]),Q=k.computed(()=>{if(l.subtitle!==void 0&&l.subtitle!==null&&l.subtitle.length!==0)return l.subtitle;if(B.value===0)return Sr;if(B.value>1){const te=H.value,X=z.value,re=f.value.monthsShort;return re[te.month-1]+(te.year!==X.year?" "+te.year+Sr+re[X.month-1]+" ":te.month!==X.month?Sr+re[X.month-1]:"")+" "+X.year}return y.value[0].year}),F=k.computed(()=>{const te=[m.iconSet.datetime.arrowLeft,m.iconSet.datetime.arrowRight];return m.lang.rtl===!0?te.reverse():te}),Y=k.computed(()=>l.firstDayOfWeek!==void 0?Number(l.firstDayOfWeek):f.value.firstDayOfWeek),j=k.computed(()=>{const te=f.value.daysShort,X=Y.value;return X>0?te.slice(X,7).concat(te.slice(0,X)):te}),R=k.computed(()=>{const te=C.value;return l.calendar!=="persian"?new Date(te.year,te.month,0).getDate():wn(te.year,te.month)}),U=k.computed(()=>typeof l.eventColor=="function"?l.eventColor:()=>l.eventColor),K=k.computed(()=>{if(l.navigationMinYearMonth===void 0)return null;const te=l.navigationMinYearMonth.split("/");return{year:parseInt(te[0],10),month:parseInt(te[1],10)}}),$=k.computed(()=>{if(l.navigationMaxYearMonth===void 0)return null;const te=l.navigationMaxYearMonth.split("/");return{year:parseInt(te[0],10),month:parseInt(te[1],10)}}),G=k.computed(()=>{const te={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return K.value!==null&&K.value.year>=C.value.year&&(te.year.prev=!1,K.value.year===C.value.year&&K.value.month>=C.value.month&&(te.month.prev=!1)),$.value!==null&&$.value.year<=C.value.year&&(te.year.next=!1,$.value.year===C.value.year&&$.value.month<=C.value.month&&(te.month.next=!1)),te}),ee=k.computed(()=>{const te={};return y.value.forEach(X=>{const re=$t(X);te[re]===void 0&&(te[re]=[]),te[re].push(X.day)}),te}),ae=k.computed(()=>{const te={};return w.value.forEach(X=>{const re=$t(X.from),le=$t(X.to);if(te[re]===void 0&&(te[re]=[]),te[re].push({from:X.from.day,to:re===le?X.to.day:void 0,range:X}),re<le){let pe;const{year:Ae,month:ge}=X.from,_e=ge<12?{year:Ae,month:ge+1}:{year:Ae+1,month:1};for(;(pe=$t(_e))<=le;)te[pe]===void 0&&(te[pe]=[]),te[pe].push({from:void 0,to:pe===le?X.to.day:void 0,range:X}),_e.month++,_e.month>12&&(_e.year++,_e.month=1)}}),te}),se=k.computed(()=>{if(W.value===null)return;const{init:te,initHash:X,final:re,finalHash:le}=W.value,[pe,Ae]=X<=le?[te,re]:[re,te],ge=$t(pe),_e=$t(Ae);if(ge!==J.value&&_e!==J.value)return;const Re={};return ge===J.value?(Re.from=pe.day,Re.includeFrom=!0):Re.from=1,_e===J.value?(Re.to=Ae.day,Re.includeTo=!0):Re.to=R.value,Re}),J=k.computed(()=>$t(C.value)),ne=k.computed(()=>{const te={};if(l.options===void 0){for(let re=1;re<=R.value;re++)te[re]=!0;return te}const X=typeof l.options=="function"?l.options:re=>l.options.includes(re);for(let re=1;re<=R.value;re++){const le=J.value+"/"+bt(re);te[re]=X(le)}return te}),ie=k.computed(()=>{const te={};if(l.events===void 0)for(let X=1;X<=R.value;X++)te[X]=!1;else{const X=typeof l.events=="function"?l.events:re=>l.events.includes(re);for(let re=1;re<=R.value;re++){const le=J.value+"/"+bt(re);te[re]=X(le)===!0&&U.value(le)}}return te}),fe=k.computed(()=>{let te,X;const{year:re,month:le}=C.value;if(l.calendar!=="persian")te=new Date(re,le-1,1),X=new Date(re,le-1,0).getDate();else{const pe=Ws(re,le,1);te=new Date(pe.gy,pe.gm-1,pe.gd);let Ae=le-1,ge=re;Ae===0&&(Ae=12,ge--),X=wn(ge,Ae)}return{days:te.getDay()-Y.value-1,endDay:X}}),ce=k.computed(()=>{const te=[],{days:X,endDay:re}=fe.value,le=X<0?X+7:X;if(le<6)for(let ge=re-le;ge<=re;ge++)te.push({i:ge,fill:!0});const pe=te.length;for(let ge=1;ge<=R.value;ge++){const _e={i:ge,event:ie.value[ge],classes:[]};ne.value[ge]===!0&&(_e.in=!0,_e.flat=!0),te.push(_e)}if(ee.value[J.value]!==void 0&&ee.value[J.value].forEach(ge=>{const _e=pe+ge-1;Object.assign(te[_e],{selected:!0,unelevated:!0,flat:!1,color:A.value,textColor:E.value})}),ae.value[J.value]!==void 0&&ae.value[J.value].forEach(ge=>{if(ge.from!==void 0){const _e=pe+ge.from-1,Re=pe+(ge.to||R.value)-1;for(let ze=_e;ze<=Re;ze++)Object.assign(te[ze],{range:ge.range,unelevated:!0,color:A.value,textColor:E.value});Object.assign(te[_e],{rangeFrom:!0,flat:!1}),ge.to!==void 0&&Object.assign(te[Re],{rangeTo:!0,flat:!1})}else if(ge.to!==void 0){const _e=pe+ge.to-1;for(let Re=pe;Re<=_e;Re++)Object.assign(te[Re],{range:ge.range,unelevated:!0,color:A.value,textColor:E.value});Object.assign(te[_e],{flat:!1,rangeTo:!0})}else{const _e=pe+R.value-1;for(let Re=pe;Re<=_e;Re++)Object.assign(te[Re],{range:ge.range,unelevated:!0,color:A.value,textColor:E.value})}}),se.value!==void 0){const ge=pe+se.value.from-1,_e=pe+se.value.to-1;for(let Re=ge;Re<=_e;Re++)te[Re].color=A.value,te[Re].editRange=!0;se.value.includeFrom===!0&&(te[ge].editRangeFrom=!0),se.value.includeTo===!0&&(te[_e].editRangeTo=!0)}C.value.year===x.value.year&&C.value.month===x.value.month&&(te[pe+x.value.day-1].today=!0);const Ae=te.length%7;if(Ae>0){const ge=7-Ae;for(let _e=1;_e<=ge;_e++)te.push({i:_e,fill:!0})}return te.forEach(ge=>{let _e="q-date__calendar-item ";ge.fill===!0?_e+="q-date__calendar-item--fill":(_e+=`q-date__calendar-item--${ge.in===!0?"in":"out"}`,ge.range!==void 0&&(_e+=` q-date__range${ge.rangeTo===!0?"-to":ge.rangeFrom===!0?"-from":""}`),ge.editRange===!0&&(_e+=` q-date__edit-range${ge.editRangeFrom===!0?"-from":""}${ge.editRangeTo===!0?"-to":""}`),(ge.range!==void 0||ge.editRange===!0)&&(_e+=` text-${ge.color}`)),ge.classes=_e}),te}),de=k.computed(()=>l.disable===!0?{"aria-disabled":"true"}:{});k.watch(()=>l.modelValue,te=>{if(u===JSON.stringify(te))u=0;else{const X=Pe(h.value,f.value);et(X.year,X.month,X)}}),k.watch(T,()=>{d.value!==null&&v.$el.contains(document.activeElement)===!0&&d.value.focus()}),k.watch(()=>C.value.year+"|"+C.value.month,()=>{t("navigation",{year:C.value.year,month:C.value.month})}),k.watch(g,te=>{we(te,f.value,"mask"),h.value=te}),k.watch(p,te=>{we(h.value,te,"locale"),f.value=te});function me(te){u=JSON.stringify(te)}function be(){const{year:te,month:X,day:re}=x.value,le={...C.value,year:te,month:X,day:re},pe=ee.value[$t(le)];(pe===void 0||pe.includes(le.day)===!1)&&ot(le),Ee(le.year,le.month)}function xe(te){Xs(te)===!0&&(T.value=te)}function Ie(te,X){["month","year"].includes(te)&&(te==="month"?je:ke)(X===!0?-1:1)}function Ee(te,X){T.value="Calendar",et(te,X)}function Me(te,X){if(l.range===!1||!te){W.value=null;return}const re=Object.assign({...C.value},te),le=X!==void 0?Object.assign({...C.value},X):re;W.value={init:re,initHash:Zt(re),final:le,finalHash:Zt(le)},Ee(re.year,re.month)}function We(){return l.calendar==="persian"?"YYYY/MM/DD":l.mask}function Ve(te,X,re){return Zo(te,X,re,l.calendar,{hour:0,minute:0,second:0,millisecond:0})}function Pe(te,X){const re=Array.isArray(l.modelValue)===!0?l.modelValue:l.modelValue?[l.modelValue]:[];if(re.length===0)return qe();const le=re[re.length-1],pe=Ve(le.from!==void 0?le.from:le,te,X);return pe.dateHash===null?qe():pe}function qe(){let te,X;if(l.defaultYearMonth!==void 0){const re=l.defaultYearMonth.split("/");te=parseInt(re[0],10),X=parseInt(re[1],10)}else{const re=x.value!==void 0?x.value:r();te=re.year,X=re.month}return{year:te,month:X,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:te+"/"+bt(X)+"/01"}}function je(te){let X=C.value.year,re=Number(C.value.month)+te;re===13?(re=1,X++):re===0&&(re=12,X--),et(X,re),_.value===!0&&nt("month")}function ke(te){const X=Number(C.value.year)+te;et(X,C.value.month),_.value===!0&&nt("year")}function De(te){et(te,C.value.month),T.value=l.defaultView==="Years"?"Months":"Calendar",_.value===!0&&nt("year")}function Ue(te){et(C.value.year,te),T.value="Calendar",_.value===!0&&nt("month")}function Le(te,X){(ee.value[X]?.includes(te.day)===!0?he:ot)(te)}function Ge(te){return{year:te.year,month:te.month,day:te.day}}function et(te,X,re){if(K.value!==null&&te<=K.value.year&&((X<K.value.month||te<K.value.year)&&(X=K.value.month),te=K.value.year),$.value!==null&&te>=$.value.year&&((X>$.value.month||te>$.value.year)&&(X=$.value.month),te=$.value.year),re!==void 0){const{hour:pe,minute:Ae,second:ge,millisecond:_e,timezoneOffset:Re,timeHash:ze}=re;Object.assign(C.value,{hour:pe,minute:Ae,second:ge,millisecond:_e,timezoneOffset:Re,timeHash:ze})}const le=te+"/"+bt(X)+"/01";le!==C.value.dateHash&&(q.value=C.value.dateHash<le==(m.lang.rtl!==!0)?"left":"right",te!==C.value.year&&(N.value=q.value),k.nextTick(()=>{V.value=te-te%Ht-(te<0?Ht:0),Object.assign(C.value,{year:te,month:X,day:1,dateHash:le})}))}function He(te,X,re){const le=te!==null&&te.length===1&&l.multiple===!1?te[0]:te,{reason:pe,details:Ae}=tt(X,re);me(le),t("update:modelValue",le,pe,Ae)}function nt(te){const X=y.value[0]!==void 0&&y.value[0].dateHash!==null?{...y.value[0]}:{...C.value};k.nextTick(()=>{X.year=C.value.year,X.month=C.value.month;const re=l.calendar!=="persian"?new Date(X.year,X.month,0).getDate():wn(X.year,X.month);X.day=Math.min(Math.max(1,X.day),re);const le=Ye(X),{details:pe}=tt("",X);me(le),t("update:modelValue",le,te,pe)})}function tt(te,X){return X.from!==void 0?{reason:`${te}-range`,details:{...Ge(X.target),from:Ge(X.from),to:Ge(X.to)}}:{reason:`${te}-day`,details:Ge(X)}}function Ye(te,X,re){return te.from!==void 0?{from:M.value(te.from,X,re),to:M.value(te.to,X,re)}:M.value(te,X,re)}function ot(te){let X;if(l.multiple===!0)if(te.from!==void 0){const re=Zt(te.from),le=Zt(te.to),pe=y.value.filter(ge=>ge.dateHash<re||ge.dateHash>le),Ae=w.value.filter(({from:ge,to:_e})=>_e.dateHash<re||ge.dateHash>le);X=pe.concat(Ae).concat(te).map(ge=>Ye(ge))}else{const re=b.value.slice();re.push(Ye(te)),X=re}else X=Ye(te);He(X,"add",te)}function he(te){if(l.noUnset===!0)return;let X=null;if(l.multiple===!0&&Array.isArray(l.modelValue)===!0){const re=Ye(te);te.from!==void 0?X=l.modelValue.filter(le=>le.from!==void 0?le.from!==re.from&&le.to!==re.to:!0):X=l.modelValue.filter(le=>le!==re),X.length===0&&(X=null)}He(X,"remove",te)}function we(te,X,re){const le=y.value.concat(w.value).map(Ae=>Ye(Ae,te,X)).filter(Ae=>Ae.from!==void 0?Ae.from.dateHash!==null&&Ae.to.dateHash!==null:Ae.dateHash!==null),pe=(l.multiple===!0?le:le[0])||null;me(pe),t("update:modelValue",pe,re)}function Te(){if(l.minimal!==!0)return k.h("div",{class:"q-date__header "+n.value},[k.h("div",{class:"relative-position"},[k.h(k.Transition,{name:"q-transition--fade"},()=>k.h("div",{key:"h-yr-"+Q.value,class:"q-date__header-subtitle q-date__header-link "+(T.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:a.value,...o("vY",{onClick(){T.value="Years"},onKeyup(te){te.keyCode===13&&(T.value="Years")}})},[Q.value]))]),k.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[k.h("div",{class:"relative-position col"},[k.h(k.Transition,{name:"q-transition--fade"},()=>k.h("div",{key:"h-sub"+O.value,class:"q-date__header-title-label q-date__header-link "+(T.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:a.value,...o("vC",{onClick(){T.value="Calendar"},onKeyup(te){te.keyCode===13&&(T.value="Calendar")}})},[O.value]))]),l.todayBtn===!0?k.h(ct,{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:a.value,onClick:be}):null])])}function Oe({label:te,type:X,key:re,dir:le,goTo:pe,boundaries:Ae,cls:ge}){return[k.h("div",{class:"row items-center q-date__arrow"},[k.h(ct,{round:!0,dense:!0,size:"sm",flat:!0,icon:F.value[0],"aria-label":X==="Years"?m.lang.date.prevYear:m.lang.date.prevMonth,tabindex:a.value,disable:Ae.prev===!1,...o("go-#"+X,{onClick(){pe(-1)}})})]),k.h("div",{class:"relative-position overflow-hidden flex flex-center"+ge},[k.h(k.Transition,{name:"q-transition--jump-"+le},()=>k.h("div",{key:re},[k.h(ct,{flat:!0,dense:!0,noCaps:!0,label:te,tabindex:a.value,...o("view#"+X,{onClick:()=>{T.value=X}})})]))]),k.h("div",{class:"row items-center q-date__arrow"},[k.h(ct,{round:!0,dense:!0,size:"sm",flat:!0,icon:F.value[1],"aria-label":X==="Years"?m.lang.date.nextYear:m.lang.date.nextMonth,tabindex:a.value,disable:Ae.next===!1,...o("go+#"+X,{onClick(){pe(1)}})})])]}const Ce={Calendar:()=>[k.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[k.h("div",{class:"q-date__navigation row items-center no-wrap"},Oe({label:f.value.months[C.value.month-1],type:"Months",key:C.value.month,dir:q.value,goTo:je,boundaries:G.value.month,cls:" col"}).concat(Oe({label:C.value.year,type:"Years",key:C.value.year,dir:N.value,goTo:ke,boundaries:G.value.year,cls:""}))),k.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},j.value.map(te=>k.h("div",{class:"q-date__calendar-item"},[k.h("div",te)]))),k.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[k.h(k.Transition,{name:"q-transition--slide-"+q.value},()=>k.h("div",{key:J.value,class:"q-date__calendar-days fit"},ce.value.map(te=>k.h("div",{class:te.classes},[te.in===!0?k.h(ct,{class:te.today===!0?"q-date__today":"",dense:!0,flat:te.flat,unelevated:te.unelevated,color:te.color,textColor:te.textColor,label:te.i,tabindex:a.value,...o("day#"+te.i,{onClick:()=>{Qe(te.i)},onMouseover:()=>{Ke(te.i)}})},te.event!==!1?()=>k.h("div",{class:"q-date__event bg-"+te.event}):null):k.h("div",""+te.i)]))))])])],Months(){const te=C.value.year===x.value.year,X=le=>K.value!==null&&C.value.year===K.value.year&&K.value.month>le||$.value!==null&&C.value.year===$.value.year&&$.value.month<le,re=f.value.monthsShort.map((le,pe)=>{const Ae=C.value.month===pe+1;return k.h("div",{class:"q-date__months-item flex flex-center"},[k.h(ct,{class:te===!0&&x.value.month===pe+1?"q-date__today":null,flat:Ae!==!0,label:le,unelevated:Ae,color:Ae===!0?A.value:null,textColor:Ae===!0?E.value:null,tabindex:a.value,disable:X(pe+1),...o("month#"+pe,{onClick:()=>{Ue(pe+1)}})})])});return l.yearsInMonthView===!0&&re.unshift(k.h("div",{class:"row no-wrap full-width"},[Oe({label:C.value.year,type:"Years",key:C.value.year,dir:N.value,goTo:ke,boundaries:G.value.year,cls:" col"})])),k.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},re)},Years(){const te=V.value,X=te+Ht,re=[],le=pe=>K.value!==null&&K.value.year>pe||$.value!==null&&$.value.year<pe;for(let pe=te;pe<=X;pe++){const Ae=C.value.year===pe;re.push(k.h("div",{class:"q-date__years-item flex flex-center"},[k.h(ct,{key:"yr"+pe,class:x.value.year===pe?"q-date__today":null,flat:!Ae,label:pe,dense:!0,unelevated:Ae,color:Ae===!0?A.value:null,textColor:Ae===!0?E.value:null,tabindex:a.value,disable:le(pe),...o("yr#"+pe,{onClick:()=>{De(pe)}})})]))}return k.h("div",{class:"q-date__view q-date__years flex flex-center"},[k.h("div",{class:"col-auto"},[k.h(ct,{round:!0,dense:!0,flat:!0,icon:F.value[0],"aria-label":m.lang.date.prevRangeYears(Ht),tabindex:a.value,disable:le(te),...o("y-",{onClick:()=>{V.value-=Ht}})})]),k.h("div",{class:"q-date__years-content col self-stretch row items-center"},re),k.h("div",{class:"col-auto"},[k.h(ct,{round:!0,dense:!0,flat:!0,icon:F.value[1],"aria-label":m.lang.date.nextRangeYears(Ht),tabindex:a.value,disable:le(X),...o("y+",{onClick:()=>{V.value+=Ht}})})])])}};function Qe(te){const X={...C.value,day:te};if(l.range===!1){Le(X,J.value);return}if(W.value===null){const re=ce.value.find(pe=>pe.fill!==!0&&pe.i===te);if(l.noUnset!==!0&&re.range!==void 0){he({target:X,from:re.range.from,to:re.range.to});return}if(re.selected===!0){he(X);return}const le=Zt(X);W.value={init:X,initHash:le,final:X,finalHash:le},t("rangeStart",Ge(X))}else{const re=W.value.initHash,le=Zt(X),pe=re<=le?{from:W.value.init,to:X}:{from:X,to:W.value.init};W.value=null,ot(re===le?X:{target:X,...pe}),t("rangeEnd",{from:Ge(pe.from),to:Ge(pe.to)})}}function Ke(te){if(W.value!==null){const X={...C.value,day:te};Object.assign(W.value,{final:X,finalHash:Zt(X)})}}return Object.assign(v,{setToday:be,setView:xe,offsetCalendar:Ie,setCalendarTo:Ee,setEditingRange:Me}),()=>{const te=[k.h("div",{class:"q-date__content col relative-position"},[k.h(k.Transition,{name:"q-transition--fade"},Ce[T.value])])],X=gt(I.default);return X!==void 0&&te.push(k.h("div",{class:"q-date__actions"},X)),l.name!==void 0&&l.disable!==!0&&i(te,"push"),k.h("div",{class:L.value,...de.value},[Te(),k.h("div",{ref:d,class:"q-date__main col column",tabindex:-1},te)])}}}),ra=$e({name:"QPopupProxy",props:{..._o,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(l,{slots:I,emit:t,attrs:v}){const{proxy:m}=k.getCurrentInstance(),{$q:c}=m,o=k.ref(!1),a=k.ref(null),n=k.computed(()=>parseInt(l.breakpoint,10)),{canShow:e}=Ni({showing:o});function r(){return c.screen.width<n.value||c.screen.height<n.value?"dialog":"menu"}const u=k.ref(r()),s=k.computed(()=>u.value==="menu"?{maxHeight:"99vh"}:{});k.watch(()=>r(),h=>{o.value!==!0&&(u.value=h)});function i(h){o.value=!0,t("show",h)}function d(h){o.value=!1,u.value=r(),t("hide",h)}return Object.assign(m,{show(h){e(h)===!0&&a.value.show(h)},hide(h){a.value.hide(h)},toggle(h){a.value.toggle(h)}}),Lt(m,"currentComponent",()=>({type:u.value,ref:a.value})),()=>{const h={ref:a,...s.value,...v,onShow:i,onHide:d};let f;return u.value==="dialog"?f=Ln:(f=Xr,Object.assign(h,{target:l.target,contextMenu:l.contextMenu,noParentEvent:!0,separateClosePopup:!0})),k.h(f,h,I.default)}}}),Gs={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},On={"#":{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:l=>l.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:l=>l.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:l=>l.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:l=>l.toLocaleLowerCase()}},na=Object.keys(On);na.forEach(l=>{On[l].regex=new RegExp(On[l].pattern)});const fc=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+na.join("")+"])|(.)","g"),Js=/[.*+?^${}()|[\]\\]/g,Ct="",dc={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function hc(l,I,t,v){let m,c,o,a,n,e;const r=k.ref(null),u=k.ref(i());function s(){return l.autogrow===!0||["textarea","text","search","url","tel","password"].includes(l.type)}k.watch(()=>l.type+l.autogrow,h),k.watch(()=>l.mask,P=>{if(P!==void 0)f(u.value,!0);else{const V=q(u.value);h(),l.modelValue!==V&&I("update:modelValue",V)}}),k.watch(()=>l.fillMask+l.reverseFillMask,()=>{r.value===!0&&f(u.value,!0)}),k.watch(()=>l.unmaskedValue,()=>{r.value===!0&&f(u.value)});function i(){if(h(),r.value===!0){const P=T(q(l.modelValue));return l.fillMask!==!1?N(P):P}return l.modelValue}function d(P){if(P<m.length)return m.slice(-P);let V="",W=m;const L=W.indexOf(Ct);if(L!==-1){for(let A=P-W.length;A>0;A--)V+=Ct;W=W.slice(0,L)+V+W.slice(L)}return W}function h(){if(r.value=l.mask!==void 0&&l.mask.length!==0&&s(),r.value===!1){a=void 0,m="",c="";return}const P=Gs[l.mask]===void 0?l.mask:Gs[l.mask],V=typeof l.fillMask=="string"&&l.fillMask.length!==0?l.fillMask.slice(0,1):"_",W=V.replace(Js,"\\$&"),L=[],A=[],E=[];let _=l.reverseFillMask===!0,b="",y="";P.replace(fc,(B,O,H,z,Q)=>{if(z!==void 0){const F=On[z];E.push(F),y=F.negate,_===!0&&(A.push("(?:"+y+"+)?("+F.pattern+"+)?(?:"+y+"+)?("+F.pattern+"+)?"),_=!1),A.push("(?:"+y+"+)?("+F.pattern+")?")}else if(H!==void 0)b="\\"+(H==="\\"?"":H),E.push(H),L.push("([^"+b+"]+)?"+b+"?");else{const F=O!==void 0?O:Q;b=F==="\\"?"\\\\\\\\":F.replace(Js,"\\\\$&"),E.push(F),L.push("([^"+b+"]+)?"+b+"?")}});const w=new RegExp("^"+L.join("")+"("+(b===""?".":"[^"+b+"]")+"+)?"+(b===""?"":"["+b+"]*")+"$"),S=A.length-1,M=A.map((B,O)=>O===0&&l.reverseFillMask===!0?new RegExp("^"+W+"*"+B):O===S?new RegExp("^"+B+"("+(y===""?".":y)+"+)?"+(l.reverseFillMask===!0?"$":W+"*")):new RegExp("^"+B));o=E,a=B=>{const O=w.exec(l.reverseFillMask===!0?B:B.slice(0,E.length+1));O!==null&&(B=O.slice(1).join(""));const H=[],z=M.length;for(let Q=0,F=B;Q<z;Q++){const Y=M[Q].exec(F);if(Y===null)break;F=F.slice(Y.shift().length),H.push(...Y)}return H.length!==0?H.join(""):B},m=E.map(B=>typeof B=="string"?B:Ct).join(""),c=m.split(Ct).join(V)}function f(P,V,W){const L=v.value,A=L.selectionEnd,E=L.value.length-A,_=q(P);V===!0&&h();const b=T(_),y=l.fillMask!==!1?N(b):b,w=u.value!==y;L.value!==y&&(L.value=y),w===!0&&(u.value=y),document.activeElement===L&&k.nextTick(()=>{if(y===c){const M=l.reverseFillMask===!0?c.length:0;L.setSelectionRange(M,M,"forward");return}if(W==="insertFromPaste"&&l.reverseFillMask!==!0){const M=L.selectionEnd;let B=A-1;for(let O=n;O<=B&&O<M;O++)m[O]!==Ct&&B++;p.right(L,B);return}if(["deleteContentBackward","deleteContentForward"].indexOf(W)!==-1){const M=l.reverseFillMask===!0?A===0?y.length>b.length?1:0:Math.max(0,y.length-(y===c?0:Math.min(b.length,E)+1))+1:A;L.setSelectionRange(M,M,"forward");return}if(l.reverseFillMask===!0)if(w===!0){const M=Math.max(0,y.length-(y===c?0:Math.min(b.length,E+1)));M===1&&A===1?L.setSelectionRange(M,M,"forward"):p.rightReverse(L,M)}else{const M=y.length-E;L.setSelectionRange(M,M,"backward")}else if(w===!0){const M=Math.max(0,m.indexOf(Ct),Math.min(b.length,A)-1);p.right(L,M)}else{const M=A-1;p.right(L,M)}});const S=l.unmaskedValue===!0?q(y):y;String(l.modelValue)!==S&&(l.modelValue!==null||S!=="")&&t(S,!0)}function g(P,V,W){const L=T(q(P.value));V=Math.max(0,m.indexOf(Ct),Math.min(L.length,V)),n=V,P.setSelectionRange(V,W,"forward")}const p={left(P,V){const W=m.slice(V-1).indexOf(Ct)===-1;let L=Math.max(0,V-1);for(;L>=0;L--)if(m[L]===Ct){V=L,W===!0&&V++;break}if(L<0&&m[V]!==void 0&&m[V]!==Ct)return p.right(P,0);V>=0&&P.setSelectionRange(V,V,"backward")},right(P,V){const W=P.value.length;let L=Math.min(W,V+1);for(;L<=W;L++)if(m[L]===Ct){V=L;break}else m[L-1]===Ct&&(V=L);if(L>W&&m[V-1]!==void 0&&m[V-1]!==Ct)return p.left(P,W);P.setSelectionRange(V,V,"forward")},leftReverse(P,V){const W=d(P.value.length);let L=Math.max(0,V-1);for(;L>=0;L--)if(W[L-1]===Ct){V=L;break}else if(W[L]===Ct&&(V=L,L===0))break;if(L<0&&W[V]!==void 0&&W[V]!==Ct)return p.rightReverse(P,0);V>=0&&P.setSelectionRange(V,V,"backward")},rightReverse(P,V){const W=P.value.length,L=d(W),A=L.slice(0,V+1).indexOf(Ct)===-1;let E=Math.min(W,V+1);for(;E<=W;E++)if(L[E-1]===Ct){V=E,V>0&&A===!0&&V--;break}if(E>W&&L[V-1]!==void 0&&L[V-1]!==Ct)return p.leftReverse(P,W);P.setSelectionRange(V,V,"forward")}};function x(P){I("click",P),e=void 0}function C(P){if(I("keydown",P),Ii(P)===!0||P.altKey===!0)return;const V=v.value,W=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"?W:L);const A=p[(P.keyCode===39?"right":"left")+(l.reverseFillMask===!0?"Reverse":"")];if(P.preventDefault(),A(V,e===W?L:W),P.shiftKey){const E=V.selectionStart;V.setSelectionRange(Math.min(e,E),Math.max(e,E),"forward")}}else P.keyCode===8&&l.reverseFillMask!==!0&&W===L?(p.left(V,W),V.setSelectionRange(V.selectionStart,L,"backward")):P.keyCode===46&&l.reverseFillMask===!0&&W===L&&(p.rightReverse(V,L),V.setSelectionRange(W,V.selectionEnd,"forward"))}function T(P){if(P==null||P==="")return"";if(l.reverseFillMask===!0)return D(P);const V=o;let W=0,L="";for(let A=0;A<V.length;A++){const E=P[W],_=V[A];if(typeof _=="string")L+=_;else if(E!==void 0&&_.regex.test(E))L+=_.transform!==void 0?_.transform(E):E,W++;else return L}return L}function D(P){const V=o,W=m.indexOf(Ct);let L=P.length-1,A="";for(let E=V.length-1;E>=0&&L!==-1;E--){const _=V[E];let b=P[L];if(typeof _=="string")A=_+A;else if(b!==void 0&&_.regex.test(b))do A=(_.transform!==void 0?_.transform(b):b)+A,L--,b=P[L];while(W===E&&b!==void 0&&_.regex.test(b));else return A}return A}function q(P){return typeof P!="string"||a===void 0?typeof P=="number"?a(""+P):P:a(P)}function N(P){return c.length-P.length<=0?P:l.reverseFillMask===!0&&P.length!==0?c.slice(0,-P.length)+P:P+c.slice(P.length)}return{innerValue:u,hasMask:r,moveCursorForPaste:g,updateMaskValue:f,onMaskedKeydown:C,onMaskedClick:x}}function pc(l,I){function t(){const v=l.modelValue;try{const m="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(v)===v&&("length"in v?Array.from(v):[v]).forEach(c=>{m.items.add(c)}),{files:m.files}}catch{return{files:void 0}}}return k.computed(()=>{if(l.type==="file")return t()})}const Yr=$e({name:"QInput",inheritAttrs:!1,props:{...Pn,...dc,...Fn,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:[...Yi,"paste","change","keydown","click","animationend"],setup(l,{emit:I,attrs:t}){const{proxy:v}=k.getCurrentInstance(),{$q:m}=v,c={};let o=NaN,a,n,e=null,r;const u=k.ref(null),s=bo(l),{innerValue:i,hasMask:d,moveCursorForPaste:h,updateMaskValue:f,onMaskedKeydown:g,onMaskedClick:p}=hc(l,I,b,u),x=pc(l),C=k.computed(()=>Hr(i.value)),T=qo(E),D=Qi({changeEvent:!0}),q=k.computed(()=>l.type==="textarea"||l.autogrow===!0),N=k.computed(()=>q.value===!0||["text","search","url","tel","password"].includes(l.type)),P=k.computed(()=>{const O={...D.splitAttrs.listeners.value,onInput:E,onPaste:A,onChange:w,onBlur:S,onFocus:Dt};return O.onCompositionstart=O.onCompositionupdate=O.onCompositionend=T,d.value===!0&&(O.onKeydown=g,O.onClick=p),l.autogrow===!0&&(O.onAnimationend=_),O}),V=k.computed(()=>{const O={tabindex:0,"data-autofocus":l.autofocus===!0||void 0,rows:l.type==="textarea"?6:void 0,"aria-label":l.label,name:s.value,...D.splitAttrs.attributes.value,id:D.targetUid.value,maxlength:l.maxlength,disabled:l.disable===!0,readonly:l.readonly===!0};return q.value===!1&&(O.type=l.type),l.autogrow===!0&&(O.rows=1),O});k.watch(()=>l.type,()=>{u.value&&(u.value.value=l.modelValue)}),k.watch(()=>l.modelValue,O=>{if(d.value===!0){if(n===!0&&(n=!1,String(O)===o))return;f(O)}else i.value!==O&&(i.value=O,l.type==="number"&&c.hasOwnProperty("value")===!0&&(a===!0?a=!1:delete c.value));l.autogrow===!0&&k.nextTick(y)}),k.watch(()=>l.autogrow,O=>{O===!0?k.nextTick(y):u.value!==null&&t.rows>0&&(u.value.style.height="auto")}),k.watch(()=>l.dense,()=>{l.autogrow===!0&&k.nextTick(y)});function W(){Kr(()=>{const O=document.activeElement;u.value!==null&&u.value!==O&&(O===null||O.id!==D.targetUid.value)&&u.value.focus({preventScroll:!0})})}function L(){u.value?.select()}function A(O){if(d.value===!0&&l.reverseFillMask!==!0){const H=O.target;h(H,H.selectionStart,H.selectionEnd)}I("paste",O)}function E(O){if(!O||!O.target)return;if(l.type==="file"){I("update:modelValue",O.target.files);return}const H=O.target.value;if(O.target.qComposing===!0){c.value=H;return}if(d.value===!0)f(H,!1,O.inputType);else if(b(H),N.value===!0&&O.target===document.activeElement){const{selectionStart:z,selectionEnd:Q}=O.target;z!==void 0&&Q!==void 0&&k.nextTick(()=>{O.target===document.activeElement&&H.indexOf(O.target.value)===0&&O.target.setSelectionRange(z,Q)})}l.autogrow===!0&&y()}function _(O){I("animationend",O),y()}function b(O,H){r=()=>{e=null,l.type!=="number"&&c.hasOwnProperty("value")===!0&&delete c.value,l.modelValue!==O&&o!==O&&(o=O,H===!0&&(n=!0),I("update:modelValue",O),k.nextTick(()=>{o===O&&(o=NaN)})),r=void 0},l.type==="number"&&(a=!0,c.value=O),l.debounce!==void 0?(e!==null&&clearTimeout(e),c.value=O,e=setTimeout(r,l.debounce)):r()}function y(){requestAnimationFrame(()=>{const O=u.value;if(O!==null){const H=O.parentNode.style,{scrollTop:z}=O,{overflowY:Q,maxHeight:F}=m.platform.is.firefox===!0?{}:window.getComputedStyle(O),Y=Q!==void 0&&Q!=="scroll";Y===!0&&(O.style.overflowY="hidden"),H.marginBottom=O.scrollHeight-1+"px",O.style.height="1px",O.style.height=O.scrollHeight+"px",Y===!0&&(O.style.overflowY=parseInt(F,10)<O.scrollHeight?"auto":"hidden"),H.marginBottom="",O.scrollTop=z}})}function w(O){T(O),e!==null&&(clearTimeout(e),e=null),r?.(),I("change",O.target.value)}function S(O){O!==void 0&&Dt(O),e!==null&&(clearTimeout(e),e=null),r?.(),a=!1,n=!1,delete c.value,l.type!=="file"&&setTimeout(()=>{u.value!==null&&(u.value.value=i.value!==void 0?i.value:"")})}function M(){return c.hasOwnProperty("value")===!0?c.value:i.value!==void 0?i.value:""}k.onBeforeUnmount(()=>{S()}),k.onMounted(()=>{l.autogrow===!0&&y()}),Object.assign(D,{innerValue:i,fieldClass:k.computed(()=>`q-${q.value===!0?"textarea":"input"}`+(l.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:k.computed(()=>l.type!=="file"&&typeof l.shadowText=="string"&&l.shadowText.length!==0),inputRef:u,emitValue:b,hasValue:C,floatingLabel:k.computed(()=>C.value===!0&&(l.type!=="number"||isNaN(i.value)===!1)||Hr(l.displayValue)),getControl:()=>k.h(q.value===!0?"textarea":"input",{ref:u,class:["q-field__native q-placeholder",l.inputClass],style:l.inputStyle,...V.value,...P.value,...l.type!=="file"?{value:M()}:x.value}),getShadowControl:()=>k.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(q.value===!0?"":" text-no-wrap")},[k.h("span",{class:"invisible"},M()),k.h("span",l.shadowText)])});const B=Ki(D);return Object.assign(v,{focus:W,select:L,getNativeElement:()=>u.value}),Lt(v,"nativeEl",()=>u.value),B}});function mc(l){return{entity:l.entity,dataCy:l.dataCy,defaultLabel:l.defaultLabel,routeName:l.routeName,shouldRender:l.customShouldRender||(({store:I})=>l.storeField?!!I[l.storeField]:!0),getLabel:l.getLabel||(l.labelField?({store:I})=>l.storeField&&I[l.storeField]?.[l.labelField]||l.defaultLabel:void 0),getColor:l.customGetColor||(({store:I})=>l.storeField&&I[l.storeField]?"primary":"dark"),getRouteParams:l.routeParamKey&&l.routeParamField?({store:I})=>({[l.routeParamKey]:l.storeField&&I[l.storeField]?.[l.routeParamField]}):void 0,clearActions:[...l.clearMethods?.map(I=>({store:t})=>t[I]?.())||[],...l.navActions?.map(I=>({navStore:t})=>I(t))||[]]}}const ia=/^\d{2}-\d{2}-\d{4}$/;function gc(l){const I=l.getTimezoneOffset()*6e4;return new Date(l.getTime()+I)}function Pr(l){const I=/^\d{4}-\d{2}-\d{2}$/,t=/^\d{2}-\d{2}-\d{4}$/;if(I.test(l))return l;if(t.test(l)){const v=l.split("-");return`${v[2]}-${v[1]}-${v[0]}`}return console.warn("'Invalid date format. Expected DD-MM-YYYY' or 'YYYY-MM-DD' but got: "+l),""}function ts(l,I,t,v=[]){const m=typeof l=="string"?new Date(Pr(l)):new Date(l);if(Number.isNaN(m.getTime()))return!1;if(I){const a=typeof I=="string"?new Date(Pr(I)):new Date(I);if(m<a)return!1}if(t){const a=typeof t=="string"?new Date(Pr(t)):new Date(t);if(m>a)return!1}return v.some(a=>{if(typeof a=="string"){const n=new Date(Pr(a));return m.getFullYear()===n.getFullYear()&&m.getMonth()===n.getMonth()&&m.getDate()===n.getDate()}else{if(a instanceof Date)return m.getFullYear()===a.getFullYear()&&m.getMonth()===a.getMonth()&&m.getDate()===a.getDate();{const n=new Date(a.start_date),e=new Date(a.end_date);return m>=n&&m<=e}}})?!1:!v.some(a=>{if(typeof a=="object"&&!(a instanceof Date)&&a.start_date&&a.end_date){const n=new Date(a.start_date),e=new Date(a.end_date);if(n.getTime()===e.getTime())return m.getTime()===n.getTime()||m.getTime()===e.getTime()}return!1})}const Yt={validateAndUpdate(l,I,t){return ia.test(I)?{...l,[t?"from":"to"]:I}:l},isEndDateValid(l,I,t=!1){if(!l||!I)return!0;try{const[v,m,c]=l.split("-"),[o,a,n]=I.split("-"),e=new Date(Number(c),Number(m)-1,Number(v)),r=new Date(Number(n),Number(a)-1,Number(o));return t?r>=e:r>e}catch{return!1}},handlePickerUpdate(l){return l===null?{from:"",to:""}:typeof l=="string"?{from:l,to:l}:l},reset(){return{from:"",to:""}},handleInput(l,I){typeof l=="string"&&I(l)}},sa={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"},bc={class:"columns justify-end"},vc={class:"row items-center justify-end"},yc=k.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:date"],setup(l,{emit:I}){const t=l,v=I,m=k.useAttrs(),c=k.ref(t.date),o=k.ref(t.date),a=k.ref(null),n=x=>{if(!x||x.length!==10)return!1;const C=/^(\d{2})-(\d{2})-(\d{4})$/,T=x.match(C);if(!T)return!1;const D=Number.parseInt(T[1],10),q=Number.parseInt(T[2],10),N=Number.parseInt(T[3],10);if(q<1||q>12||D<1||D>31)return!1;const P=new Date(N,q-1,D);return P.getFullYear()===N&&P.getMonth()===q-1&&P.getDate()===D},e=x=>{if(!x)return null;if(x.length!==10)return"Le format doit être JJ-MM-AAAA";const C=/^(\d{2})-(\d{2})-(\d{4})$/,T=x.match(C);if(!T)return"Format invalide. Utilisez JJ-MM-AAAA";const D=Number.parseInt(T[1],10),q=Number.parseInt(T[2],10),N=Number.parseInt(T[3],10),P=r(q);if(P)return P;const V=u(D,q,N);return V||(i(D,q,N)?null:"Date inexistante")},r=x=>x<1||x>12?"Le mois doit être entre 01 et 12":null,u=(x,C,T)=>x<1||x>31?"Le jour doit être entre 01 et 31":[4,6,9,11].includes(C)&&x>30?`Le mois ${C} n'a que 30 jours`:C===2?s(x,T):null,s=(x,C)=>{const T=C%4===0&&C%100!==0||C%400===0;return T&&x>29?"Février a maximum 29 jours pour les années bissextiles":!T&&x>28?"Février a maximum 28 jours":null},i=(x,C,T)=>{const D=new Date(T,C-1,x);return D.getFullYear()===T&&D.getMonth()===C-1&&D.getDate()===x},d=()=>{o.value?a.value=e(o.value):a.value=null},h=k.computed(()=>x=>{const C=x.replaceAll("/","-");return ts(C,t.minDate,t.maxDate,t.datesDisabled)}),f=x=>{n(x)&&(c.value=x,o.value=x,a.value=null,v("update:date",x))},g=x=>{if(typeof x=="string")if(o.value=x,v("update:date",x),x.length===10){const C=e(x);C||(c.value=x),a.value=C}else x===""&&(c.value="",a.value=null);else x===null&&(o.value="",c.value="",a.value=null,v("update:date",""))},p=k.computed(()=>{const x=[...t.rules];return t.required&&x.push(C=>!!C||t.requiredErrorMessage),x.push(C=>C?n(C)||a.value||t.invalidDateErrorMessage:!0),x});return k.watch(()=>t.date,x=>{x!==c.value&&(c.value=x,o.value=x,d())}),(x,C)=>(k.openBlock(),k.createElementBlock("div",bc,[k.createVNode(Yr,k.mergeProps(k.unref(m),{class:"full-width","model-value":o.value,mask:"##-##-####",dense:"",label:x.label,"data-cy":"datePick",rules:p.value,disable:x.disabled,required:x.required,outlined:x.outlined,placeholder:x.placeholder,"onUpdate:modelValue":g,onBlur:d}),{append:k.withCtx(()=>[k.createVNode(wt,{name:"event",class:"cursor-pointer","data-testid":"calendar-icon-picker"},{default:k.withCtx(()=>[k.createVNode(ra,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:k.withCtx(()=>[k.createVNode(ta,{mask:"DD-MM-YYYY","model-value":c.value,options:h.value,disable:x.disabled,"onUpdate:modelValue":f},{default:k.withCtx(()=>[k.createElementVNode("div",vc,[k.withDirectives(k.createVNode(ct,{label:x.closeLabel,color:"primary",flat:""},null,8,["label"]),[[qn]])])]),_:1},8,["model-value","options","disable"])]),_:1})]),_:1})]),_:1},16,["model-value","label","rules","disable","required","outlined","placeholder"])]))}}),wc={class:"date-range-wrapper"},xc={class:"date-range-flex"},Sc={key:0,class:"actions-group"},kc={class:"row items-center justify-end"},_c={key:0,class:"hint"},Cc={class:"text-warning text-caption q-mb-none"},Ac=k.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:()=>sa},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}},emits:["update:dateRange","clear"],setup(l,{expose:I,emit:t}){const v=l,m=t,c=k.ref({from:v.from,to:v.to}),o=k.computed(()=>`from-date-${v.idCy}`),a=k.computed(()=>`to-date-${v.idCy}`),n=A=>{if(!A||A.length!==10)return!1;const E=/^(\d{2})-(\d{2})-(\d{4})$/,_=A.match(E);if(!_)return!1;const b=Number.parseInt(_[1],10),y=Number.parseInt(_[2],10),w=Number.parseInt(_[3],10);if(y<1||y>12||b<1||b>31)return!1;const S=new Date(w,y-1,b);return S.getFullYear()===w&&S.getMonth()===y-1&&S.getDate()===b},e=A=>{if(!A)return null;if(A.length!==10)return"Le format doit être JJ-MM-AAAA";const E=/^(\d{2})-(\d{2})-(\d{4})$/,_=A.match(E);if(!_)return"Format invalide. Utilisez JJ-MM-AAAA";const b=Number.parseInt(_[1],10),y=Number.parseInt(_[2],10),w=Number.parseInt(_[3],10),S=r(y);if(S)return S;const M=u(b,y,w);return M||(i(b,y,w)?null:"Date inexistante")},r=A=>A<1||A>12?"Le mois doit être entre 01 et 12":null,u=(A,E,_)=>A<1||A>31?"Le jour doit être entre 01 et 31":[4,6,9,11].includes(E)&&A>30?`Le mois ${E} n'a que 30 jours`:E===2?s(A,_):null,s=(A,E)=>{const _=E%4===0&&E%100!==0||E%400===0;return _&&A>29?"Février a maximum 29 jours pour les années bissextiles":!_&&A>28?"Février a maximum 28 jours":null},i=(A,E,_)=>{const b=new Date(_,E-1,A);return b.getFullYear()===_&&b.getMonth()===E-1&&b.getDate()===A},d=k.ref(null),h=k.ref(null),f=()=>{c.value.from?d.value=e(c.value.from):d.value=null},g=()=>{c.value.to?h.value=e(c.value.to):h.value=null},p=k.computed(()=>A=>{const E=A.replaceAll("/","-");return ts(E,v.minDate,v.maxDate,v.datesDisabled)});let x=!1;const C=()=>{x=!0,c.value.from="",d.value=null,V(),m("clear"),setTimeout(()=>{x=!1},100)},T=()=>{x=!0,c.value.to="",h.value=null,V(),m("clear"),setTimeout(()=>{x=!1},100)},D=A=>{if(A===null||A===""){const E=c.value.from;c.value.from="",d.value=null,V(),!c.value.to&&E&&m("clear");return}Yt.handleInput(A,E=>{const _=c.value.from;if(E&&E.length===10){const b=e(E);if(d.value=b,b){c.value.from=E,V();return}}else d.value=null;c.value=Yt.validateAndUpdate(c.value,E,!0),V(),!E&&!c.value.to&&_&&m("clear")})},q=A=>{if(A===null||A===""){const E=c.value.to;c.value.to="",h.value=null,V(),!c.value.from&&E&&m("clear");return}Yt.handleInput(A,E=>{const _=c.value.to;if(E&&E.length===10){const b=e(E);if(h.value=b,b){c.value.to=E,V();return}}else h.value=null;c.value=Yt.validateAndUpdate(c.value,E,!1),V(),!E&&!c.value.from&&_&&m("clear")})},N=A=>{const E=Yt.handlePickerUpdate(A);E.from&&E.from.length===10?d.value=e(E.from):d.value=null,E.to&&E.to.length===10?h.value=e(E.to):h.value=null,!v.allowSameDate&&E.from&&E.to&&E.from===E.to&&(E.to=""),c.value=E,V()},P=()=>{x=!0,c.value=Yt.reset(),d.value=null,h.value=null,V(),m("clear"),setTimeout(()=>{x=!1},100)},V=()=>{m("update:dateRange",{...c.value})},W=k.computed(()=>[...v.required?[A=>!!A||v.requiredErrorMessage]:[],...v.rules,A=>{if(A&&!n(A))return d.value||v.invalidDateErrorMessage||"Date invalide!";const E=c.value.to;if(!A||!E)return!0;const _=Yt.isEndDateValid(A,E,v.allowSameDate);return v.allowSameDate?_||"La date de début doit être avant ou égale à la date de fin":_||"La date de début doit être strictement avant la date de fin"}]),L=k.computed(()=>[...v.required?[A=>!!A||v.requiredErrorMessage]:[],...v.rules,A=>{if(A&&!n(A))return h.value||v.invalidDateErrorMessage||"Date invalide!";const E=c.value.from;if(!A||!E)return!0;const _=Yt.isEndDateValid(E,A,v.allowSameDate);return v.allowSameDate?_||"La date de fin doit être après ou égale à la date de début":_||"La date de fin doit être strictement après la date de début"}]);return k.watch([()=>c.value.from,()=>c.value.to],([A,E],[_,b])=>{!A&&!E&&(_||b)&&!x&&(d.value=null,h.value=null,m("clear"))}),k.watch(()=>v.from,A=>{A!==c.value.from&&(c.value.from=A,f())}),k.watch(()=>v.to,A=>{A!==c.value.to&&(c.value.to=A,g())}),I({resetDate:P,setDateRange:A=>{c.value={from:A.from,to:A.to},f(),g(),V()}}),(A,E)=>(k.openBlock(),k.createElementBlock("div",wc,[k.createElementVNode("div",xc,[k.createVNode(Yr,k.mergeProps(A.$attrs,{"data-cy":o.value,"model-value":c.value.from,mask:"##-##-####",label:A.labelStart,rules:W.value,disable:A.disabled,required:A.required,"hide-bottom-space":"","onUpdate:modelValue":D,onClear:C,onBlur:f}),null,16,["data-cy","model-value","label","rules","disable","required"]),k.createVNode(Yr,k.mergeProps(A.$attrs,{"model-value":c.value.to,mask:"##-##-####",label:A.labelEnd,"hide-bottom-space":"","data-cy":a.value,rules:L.value,disable:A.disabled,required:A.required,"onUpdate:modelValue":q,onClear:T,onBlur:g}),null,16,["model-value","label","data-cy","rules","disable","required"]),A.hideActions?k.createCommentVNode("",!0):(k.openBlock(),k.createElementBlock("div",Sc,[k.createVNode(wt,{name:"event",size:"30px",class:"cursor-pointer",style:{opacity:"0.55"},"data-cy":"calendar-icon-range"},{default:k.withCtx(()=>[k.createVNode(ra,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:k.withCtx(()=>[k.createVNode(ta,{modelValue:c.value,"onUpdate:modelValue":[E[0]||(E[0]=_=>c.value=_),N],mask:"DD-MM-YYYY","today-btn":"",range:"","data-cy":"date-picker-range",locale:A.locale,options:p.value,events:A.highlightEvents,"event-color":"warning",disable:A.disabled},{default:k.withCtx(()=>[k.createElementVNode("div",kc,[k.withDirectives(k.createVNode(ct,{label:A.closeLabel,color:"primary",flat:""},null,8,["label"]),[[qn]])])]),_:1},8,["modelValue","locale","options","events","disable"])]),_:1})]),_:1}),k.createVNode(ct,{class:"q-pa-sm",outlined:"",dense:"","data-cy":"reset-date",label:A.resetLabel,onClick:P},null,8,["label"])]))]),A.startDateHint?(k.openBlock(),k.createElementBlock("div",_c,[k.createElementVNode("p",Cc,k.toDisplayString(A.startDateHint),1)])):k.createCommentVNode("",!0)]))}}),Ec=Kt(Ac,[["__scopeId","data-v-3121963b"]]),Mc=["top","middle","bottom"],ki=$e({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:l=>Mc.includes(l)}},setup(l,{slots:I}){const t=k.computed(()=>l.align!==void 0?{verticalAlign:l.align}:null),v=k.computed(()=>{const m=l.outline===!0&&l.color||l.textColor;return`q-badge flex inline items-center no-wrap q-badge--${l.multiLine===!0?"multi":"single"}-line`+(l.outline===!0?" q-badge--outline":l.color!==void 0?` bg-${l.color}`:"")+(m!==void 0?` text-${m}`:"")+(l.floating===!0?" q-badge--floating":"")+(l.rounded===!0?" q-badge--rounded":"")+(l.transparent===!0?" q-badge--transparent":"")});return()=>k.h("div",{class:v.value,style:t.value,role:"status","aria-label":l.label},It(I.default,l.label!==void 0?[l.label]:[]))}}),dn=$e({name:"QTooltip",inheritAttrs:!1,props:{...ko,...Pi,...Vr,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Vr.transitionShow,default:"jump-down"},transitionHide:{...Vr.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Mn},self:{type:String,default:"top middle",validator:Mn},offset:{type:Array,default:()=>[14,14],validator:Oo},scrollTarget:Dn,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...Li],setup(l,{slots:I,emit:t,attrs:v}){let m,c;const o=k.getCurrentInstance(),{proxy:{$q:a}}=o,n=k.ref(null),e=k.ref(!1),r=k.computed(()=>Tn(l.anchor,a.lang.rtl)),u=k.computed(()=>Tn(l.self,a.lang.rtl)),s=k.computed(()=>l.persistent!==!0),{registerTick:i,removeTick:d}=Ui(),{registerTimeout:h}=Wi(),{transitionProps:f,transitionStyle:g}=zi(l),{localScrollTarget:p,changeScrollEvent:x,unconfigureScrollTarget:C}=Co(l,M),{anchorEl:T,canShow:D,anchorEvents:q}=Ni({showing:e,configureAnchorEl:S}),{show:N,hide:P}=Vi({showing:e,canShow:D,handleShow:A,handleHide:E,hideOnRouteChange:s,processOnMount:!0});Object.assign(q,{delayShow:y,delayHide:w});const{showPortal:V,hidePortal:W,renderPortal:L}=qi(o,n,O,"tooltip");if(a.platform.is.mobile===!0){const H={anchorEl:T,innerRef:n,onClickOutside(Q){return P(Q),Q.target.classList.contains("q-dialog__backdrop")&&St(Q),!0}},z=k.computed(()=>l.modelValue===null&&l.persistent!==!0&&e.value===!0);k.watch(z,Q=>{(Q===!0?Io:En)(H)}),k.onBeforeUnmount(()=>{En(H)})}function A(H){V(),i(()=>{c=new MutationObserver(()=>b()),c.observe(n.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),b(),M()}),m===void 0&&(m=k.watch(()=>a.screen.width+"|"+a.screen.height+"|"+l.self+"|"+l.anchor+"|"+a.lang.rtl,b)),h(()=>{V(!0),t("show",H)},l.transitionDuration)}function E(H){d(),W(),_(),h(()=>{W(!0),t("hide",H)},l.transitionDuration)}function _(){c!==void 0&&(c.disconnect(),c=void 0),m!==void 0&&(m(),m=void 0),C(),cr(q,"tooltipTemp")}function b(){Hi({targetEl:n.value,offset:l.offset,anchorEl:T.value,anchorOrigin:r.value,selfOrigin:u.value,maxHeight:l.maxHeight,maxWidth:l.maxWidth})}function y(H){if(a.platform.is.mobile===!0){kn(),document.body.classList.add("non-selectable");const z=T.value,Q=["touchmove","touchcancel","touchend","click"].map(F=>[z,F,"delayHide","passiveCapture"]);Qt(q,"tooltipTemp",Q)}h(()=>{N(H)},l.delay)}function w(H){a.platform.is.mobile===!0&&(cr(q,"tooltipTemp"),kn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),h(()=>{P(H)},l.hideDelay)}function S(){if(l.noParentEvent===!0||T.value===null)return;const H=a.platform.is.mobile===!0?[[T.value,"touchstart","delayShow","passive"]]:[[T.value,"mouseenter","delayShow","passive"],[T.value,"mouseleave","delayHide","passive"]];Qt(q,"anchor",H)}function M(){if(T.value!==null||l.scrollTarget!==void 0){p.value=Nn(T.value,l.scrollTarget);const H=l.noParentEvent===!0?b:P;x(p.value,H)}}function B(){return e.value===!0?k.h("div",{...v,ref:n,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",v.class],style:[v.style,g.value],role:"tooltip"},gt(I.default)):null}function O(){return k.h(k.Transition,f.value,B)}return k.onBeforeUnmount(_),Object.assign(o.proxy,{updatePosition:b}),L}}),Lr=$e({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(l,{slots:I,emit:t}){const v=k.getCurrentInstance(),{proxy:{$q:m}}=v,c=o=>{t("click",o)};return()=>{if(l.props===void 0)return k.h("th",{class:l.autoWidth===!0?"q-table--col-auto-width":"",onClick:c},gt(I.default));let o,a;const n=v.vnode.key;if(n){if(o=l.props.colsMap[n],o===void 0)return}else o=l.props.col;if(o.sortable===!0){const r=o.align==="right"?"unshift":"push";a=Ai(I.default,[]),a[r](k.h(wt,{class:o.__iconClass,name:m.iconSet.table.arrowUp}))}else a=gt(I.default);const e={class:o.__thClass+(l.autoWidth===!0?" q-table--col-auto-width":""),style:o.headerStyle,onClick:r=>{o.sortable===!0&&l.props.sort(o),c(r)}};return k.h("th",e,a)}}}),hn=$e({name:"QTr",props:{props:Object,noHover:Boolean},setup(l,{slots:I}){const t=k.computed(()=>"q-tr"+(l.props===void 0||l.props.header===!0?"":" "+l.props.__trClass)+(l.noHover===!0?" q-tr--no-hover":""));return()=>k.h("tr",{style:l.props?.__trStyle,class:t.value},gt(I.default))}}),Tc=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],Rc=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],Zs=$e({name:"QSkeleton",props:{...Ot,tag:{type:String,default:"div"},type:{type:String,validator:l=>Tc.includes(l),default:"rect"},animation:{type:String,validator:l=>Rc.includes(l),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(l,{slots:I}){const t=k.getCurrentInstance(),v=jt(l,t.proxy.$q),m=k.computed(()=>{const o=l.size!==void 0?[l.size,l.size]:[l.width,l.height];return{"--q-skeleton-speed":`${l.animationSpeed}ms`,width:o[0],height:o[1]}}),c=k.computed(()=>`q-skeleton q-skeleton--${v.value===!0?"dark":"light"} q-skeleton--type-${l.type}`+(l.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${l.animation}`:"")+(l.square===!0?" q-skeleton--square":"")+(l.bordered===!0?" q-skeleton--bordered":""));return()=>k.h(l.tag,{class:c.value,style:m.value},gt(I.default))}}),ai=$e({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(l,{slots:I}){const t=k.getCurrentInstance(),v=k.computed(()=>"q-td"+(l.autoWidth===!0?" q-table--col-auto-width":"")+(l.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(l.props===void 0)return k.h("td",{class:v.value},gt(I.default));const m=t.vnode.key,c=(l.props.colsMap!==void 0?l.props.colsMap[m]:null)||l.props.col;if(c===void 0)return;const{row:o}=l.props;return k.h("td",{class:v.value+c.__tdClass(o),style:c.__tdStyle(o)},gt(I.default))}}}),Bc=["horizontal","vertical","cell","none"],Ic=$e({name:"QMarkupTable",props:{...Ot,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:l=>Bc.includes(l)}},setup(l,{slots:I}){const t=k.getCurrentInstance(),v=jt(l,t.proxy.$q),m=k.computed(()=>`q-markup-table q-table__container q-table__card q-table--${l.separator}-separator`+(v.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(l.dense===!0?" q-table--dense":"")+(l.flat===!0?" q-table--flat":"")+(l.bordered===!0?" q-table--bordered":"")+(l.square===!0?" q-table--square":"")+(l.wrapCells===!1?" q-table--no-wrap":""));return()=>k.h("div",{class:m.value},[k.h("table",{class:"q-table"},gt(I.default))])}});function oa(l,I){return k.h("div",l,[k.h("table",{class:"q-table"},I)])}const Oc={list:Xi,table:Ic},jc=["list","table","__qtable"],Fc=$e({name:"QVirtualScroll",props:{...yi,type:{type:String,default:"list",validator:l=>jc.includes(l)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Dn},setup(l,{slots:I,attrs:t}){let v;const m=k.ref(null),c=k.computed(()=>l.itemsSize>=0&&l.itemsFn!==void 0?parseInt(l.itemsSize,10):Array.isArray(l.items)?l.items.length:0),{virtualScrollSliceRange:o,localResetVirtualScroll:a,padVirtualScroll:n,onVirtualScrollEvt:e}=Vo({virtualScrollLength:c,getVirtualScrollTarget:d,getVirtualScrollEl:i}),r=k.computed(()=>{if(c.value===0)return[];const p=(x,C)=>({index:o.value.from+C,item:x});return l.itemsFn===void 0?l.items.slice(o.value.from,o.value.to).map(p):l.itemsFn(o.value.from,o.value.to-o.value.from).map(p)}),u=k.computed(()=>"q-virtual-scroll q-virtual-scroll"+(l.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(l.scrollTarget!==void 0?"":" scroll")),s=k.computed(()=>l.scrollTarget!==void 0?{}:{tabindex:0});k.watch(c,()=>{a()}),k.watch(()=>l.scrollTarget,()=>{f(),h()});function i(){return m.value.$el||m.value}function d(){return v}function h(){v=Nn(i(),l.scrollTarget),v.addEventListener("scroll",e,_t.passive)}function f(){v!==void 0&&(v.removeEventListener("scroll",e,_t.passive),v=void 0)}function g(){let p=n(l.type==="list"?"div":"tbody",r.value.map(I.default));return I.before!==void 0&&(p=I.before().concat(p)),It(I.after,p)}return k.onBeforeMount(()=>{a()}),k.onMounted(()=>{h()}),k.onActivated(()=>{h()}),k.onDeactivated(()=>{f()}),k.onBeforeUnmount(()=>{f()}),()=>{if(I.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return l.type==="__qtable"?oa({ref:m,class:"q-table__middle "+u.value},g()):k.h(Oc[l.type],{...t,ref:m,class:[t.class,u.value],...s.value},g)}}}),Dc={xs:2,sm:4,md:6,lg:10,xl:14};function $s(l,I,t){return{transform:I===!0?`translateX(${t.lang.rtl===!0?"-":""}100%) scale3d(${-l},1,1)`:`scale3d(${l},1,1)`}}const Nc=$e({name:"QLinearProgress",props:{...Ot,...Rr,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(l,{slots:I}){const{proxy:t}=k.getCurrentInstance(),v=jt(l,t.$q),m=Br(l,Dc),c=k.computed(()=>l.indeterminate===!0||l.query===!0),o=k.computed(()=>l.reverse!==l.query),a=k.computed(()=>({...m.value!==null?m.value:{},"--q-linear-progress-speed":`${l.animationSpeed}ms`})),n=k.computed(()=>"q-linear-progress"+(l.color!==void 0?` text-${l.color}`:"")+(l.reverse===!0||l.query===!0?" q-linear-progress--reverse":"")+(l.rounded===!0?" rounded-borders":"")),e=k.computed(()=>$s(l.buffer!==void 0?l.buffer:1,o.value,t.$q)),r=k.computed(()=>`with${l.instantFeedback===!0?"out":""}-transition`),u=k.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${r.value} q-linear-progress__track--${v.value===!0?"dark":"light"}`+(l.trackColor!==void 0?` bg-${l.trackColor}`:"")),s=k.computed(()=>$s(c.value===!0?1:l.value,o.value,t.$q)),i=k.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${r.value} q-linear-progress__model--${c.value===!0?"in":""}determinate`),d=k.computed(()=>({width:`${l.value*100}%`})),h=k.computed(()=>`q-linear-progress__stripe absolute-${l.reverse===!0?"right":"left"} q-linear-progress__stripe--${r.value}`);return()=>{const f=[k.h("div",{class:u.value,style:e.value}),k.h("div",{class:i.value,style:s.value})];return l.stripe===!0&&c.value===!1&&f.push(k.h("div",{class:h.value,style:d.value})),k.h("div",{class:n.value,style:a.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":l.indeterminate===!0?void 0:l.value},It(I.default,f))}}});let Dr=0;const Pc={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Lc=["update:fullscreen","fullscreen"];function Vc(){const l=k.getCurrentInstance(),{props:I,emit:t,proxy:v}=l;let m,c;const o=k.ref(!1);Ei(l)===!0&&k.watch(()=>v.$route.fullPath,()=>{I.noRouteFullscreenExit!==!0&&e()}),k.watch(()=>I.fullscreen,r=>{o.value!==r&&a()}),k.watch(o,r=>{t("update:fullscreen",r),t("fullscreen",r)});function a(){o.value===!0?e():n()}function n(){o.value!==!0&&(o.value=!0,c=v.$el.parentNode,c.replaceChild(m,v.$el),document.body.appendChild(v.$el),Dr++,Dr===1&&document.body.classList.add("q-body--fullscreen-mixin"))}function e(){o.value===!0&&(c.replaceChild(v.$el,m),o.value=!1,Dr=Math.max(0,Dr-1),Dr===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),v.$el.scrollIntoView!==void 0&&setTimeout(()=>{v.$el.scrollIntoView()})))}return k.onBeforeMount(()=>{m=document.createElement("span")}),k.onMounted(()=>{I.fullscreen===!0&&n()}),k.onBeforeUnmount(e),Object.assign(v,{toggleFullscreen:a,setFullscreen:n,exitFullscreen:e}),{inFullscreen:o,toggleFullscreen:a}}function qc(l,I){return new Date(l)-new Date(I)}const zc={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:l=>l==="ad"||l==="da",default:"ad"}};function Uc(l,I,t,v){const m=k.computed(()=>{const{sortBy:a}=I.value;return a&&t.value.find(n=>n.name===a)||null}),c=k.computed(()=>l.sortMethod!==void 0?l.sortMethod:(a,n,e)=>{const r=t.value.find(i=>i.name===n);if(r===void 0||r.field===void 0)return a;const u=e===!0?-1:1,s=typeof r.field=="function"?i=>r.field(i):i=>i[r.field];return a.sort((i,d)=>{let h=s(i),f=s(d);return r.rawSort!==void 0?r.rawSort(h,f,i,d)*u:h==null?-1*u:f==null?1*u:r.sort!==void 0?r.sort(h,f,i,d)*u:wi(h)===!0&&wi(f)===!0?(h-f)*u:Bn(h)===!0&&Bn(f)===!0?qc(h,f)*u:typeof h=="boolean"&&typeof f=="boolean"?(h-f)*u:([h,f]=[h,f].map(g=>(g+"").toLocaleString().toLowerCase()),h<f?-1*u:h===f?0:u)})});function o(a){let n=l.columnSortOrder;if(zo(a)===!0)a.sortOrder&&(n=a.sortOrder),a=a.name;else{const u=t.value.find(s=>s.name===a);u?.sortOrder&&(n=u.sortOrder)}let{sortBy:e,descending:r}=I.value;e!==a?(e=a,r=n==="da"):l.binaryStateSort===!0?r=!r:r===!0?n==="ad"?e=null:r=!1:n==="ad"?r=!0:e=null,v({sortBy:e,descending:r,page:1})}return{columnToSort:m,computedSortMethod:c,sort:o}}const Wc={filter:[String,Object],filterMethod:Function};function Hc(l,I){const t=k.computed(()=>l.filterMethod!==void 0?l.filterMethod:(v,m,c,o)=>{const a=m?m.toLowerCase():"";return v.filter(n=>c.some(e=>{const r=o(e,n)+"";return(r==="undefined"||r==="null"?"":r.toLowerCase()).indexOf(a)!==-1}))});return k.watch(()=>l.filter,()=>{k.nextTick(()=>{I({page:1},!0)})},{deep:!0}),{computedFilterMethod:t}}function Yc(l,I){for(const t in I)if(I[t]!==l[t])return!1;return!0}function eo(l){return l.page<1&&(l.page=1),l.rowsPerPage!==void 0&&l.rowsPerPage<1&&(l.rowsPerPage=0),l}const Qc={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function Kc(l,I){const{props:t,emit:v}=l,m=k.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:t.rowsPerPageOptions.length!==0?t.rowsPerPageOptions[0]:5},t.pagination)),c=k.computed(()=>{const r=t["onUpdate:pagination"]!==void 0?{...m.value,...t.pagination}:m.value;return eo(r)}),o=k.computed(()=>c.value.rowsNumber!==void 0);function a(r){n({pagination:r,filter:t.filter})}function n(r={}){k.nextTick(()=>{v("request",{pagination:r.pagination||c.value,filter:r.filter||t.filter,getCellValue:I})})}function e(r,u){const s=eo({...c.value,...r});if(Yc(c.value,s)===!0){o.value===!0&&u===!0&&a(s);return}if(o.value===!0){a(s);return}t.pagination!==void 0&&t["onUpdate:pagination"]!==void 0?v("update:pagination",s):m.value=s}return{innerPagination:m,computedPagination:c,isServerSide:o,requestServerInteraction:n,setPagination:e}}function Xc(l,I,t,v,m,c){const{props:o,emit:a,proxy:{$q:n}}=l,e=k.computed(()=>v.value===!0?t.value.rowsNumber||0:c.value),r=k.computed(()=>{const{page:C,rowsPerPage:T}=t.value;return(C-1)*T}),u=k.computed(()=>{const{page:C,rowsPerPage:T}=t.value;return C*T}),s=k.computed(()=>t.value.page===1),i=k.computed(()=>t.value.rowsPerPage===0?1:Math.max(1,Math.ceil(e.value/t.value.rowsPerPage))),d=k.computed(()=>u.value===0?!0:t.value.page>=i.value),h=k.computed(()=>(o.rowsPerPageOptions.includes(I.value.rowsPerPage)?o.rowsPerPageOptions:[I.value.rowsPerPage].concat(o.rowsPerPageOptions)).map(T=>({label:T===0?n.lang.table.allRows:""+T,value:T})));k.watch(i,(C,T)=>{if(C===T)return;const D=t.value.page;C&&!D?m({page:1}):C<D&&m({page:C})});function f(){m({page:1})}function g(){const{page:C}=t.value;C>1&&m({page:C-1})}function p(){const{page:C,rowsPerPage:T}=t.value;u.value>0&&C*T<e.value&&m({page:C+1})}function x(){m({page:i.value})}return o["onUpdate:pagination"]!==void 0&&a("update:pagination",{...t.value}),{firstRowIndex:r,lastRowIndex:u,isFirstPage:s,isLastPage:d,pagesNumber:i,computedRowsPerPageOptions:h,computedRowsNumber:e,firstPage:f,prevPage:g,nextPage:p,lastPage:x}}const Gc={selection:{type:String,default:"none",validator:l=>["single","multiple","none"].includes(l)},selected:{type:Array,default:()=>[]}},Jc=["update:selected","selection"];function Zc(l,I,t,v){const m=k.computed(()=>{const d={};return l.selected.map(v.value).forEach(h=>{d[h]=!0}),d}),c=k.computed(()=>l.selection!=="none"),o=k.computed(()=>l.selection==="single"),a=k.computed(()=>l.selection==="multiple"),n=k.computed(()=>t.value.length!==0&&t.value.every(d=>m.value[v.value(d)]===!0)),e=k.computed(()=>n.value!==!0&&t.value.some(d=>m.value[v.value(d)]===!0)),r=k.computed(()=>l.selected.length);function u(d){return m.value[d]===!0}function s(){I("update:selected",[])}function i(d,h,f,g){I("selection",{rows:h,added:f,keys:d,evt:g});const p=o.value===!0?f===!0?h:[]:f===!0?l.selected.concat(h):l.selected.filter(x=>d.includes(v.value(x))===!1);I("update:selected",p)}return{hasSelectionMode:c,singleSelection:o,multipleSelection:a,allRowsSelected:n,someRowsSelected:e,rowsSelectedNumber:r,isRowSelected:u,clearSelection:s,updateSelection:i}}function to(l){return Array.isArray(l)?l.slice():[]}const $c={expanded:Array},ef=["update:expanded"];function tf(l,I){const t=k.ref(to(l.expanded));k.watch(()=>l.expanded,o=>{t.value=to(o)});function v(o){return t.value.includes(o)}function m(o){l.expanded!==void 0?I("update:expanded",o):t.value=o}function c(o,a){const n=t.value.slice(),e=n.indexOf(o);a===!0?e===-1&&(n.push(o),m(n)):e!==-1&&(n.splice(e,1),m(n))}return{isRowExpanded:v,setExpanded:m,updateExpanded:c}}const rf={visibleColumns:Array};function nf(l,I,t){const v=k.computed(()=>{if(l.columns!==void 0)return l.columns;const a=l.rows[0];return a!==void 0?Object.keys(a).map(n=>({name:n,label:n.toUpperCase(),field:n,align:wi(a[n])?"right":"left",sortable:!0})):[]}),m=k.computed(()=>{const{sortBy:a,descending:n}=I.value;return(l.visibleColumns!==void 0?v.value.filter(r=>r.required===!0||l.visibleColumns.includes(r.name)===!0):v.value).map(r=>{const u=r.align||"right",s=`text-${u}`;return{...r,align:u,__iconClass:`q-table__sort-icon q-table__sort-icon--${u}`,__thClass:s+(r.headerClasses!==void 0?" "+r.headerClasses:"")+(r.sortable===!0?" sortable":"")+(r.name===a?` sorted ${n===!0?"sort-desc":""}`:""),__tdStyle:r.style!==void 0?typeof r.style!="function"?()=>r.style:r.style:()=>null,__tdClass:r.classes!==void 0?typeof r.classes!="function"?()=>s+" "+r.classes:i=>s+" "+r.classes(i):()=>s}})}),c=k.computed(()=>{const a={};return m.value.forEach(n=>{a[n.name]=n}),a}),o=k.computed(()=>l.tableColspan!==void 0?l.tableColspan:m.value.length+(t.value===!0?1:0));return{colList:v,computedCols:m,computedColsMap:c,computedColspan:o}}const pn="q-table__bottom row items-center",aa={};Lo.forEach(l=>{aa[l]={}});const sf=$e({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:l=>["horizontal","vertical","cell","none"].includes(l)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...aa,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],tableRowStyleFn:Function,tableRowClassFn:Function,cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],cardStyleFn:Function,cardClassFn:Function,hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...Ot,...Pc,...rf,...Wc,...Qc,...$c,...Gc,...zc},emits:["request","virtualScroll",...Lc,...ef,...Jc],setup(l,{slots:I,emit:t}){const v=k.getCurrentInstance(),{proxy:{$q:m}}=v,c=jt(l,m),{inFullscreen:o,toggleFullscreen:a}=Vc(),n=k.computed(()=>typeof l.rowKey=="function"?l.rowKey:he=>he[l.rowKey]),e=k.ref(null),r=k.ref(null),u=k.computed(()=>l.grid!==!0&&l.virtualScroll===!0),s=k.computed(()=>" q-table__card"+(c.value===!0?" q-table__card--dark q-dark":"")+(l.square===!0?" q-table--square":"")+(l.flat===!0?" q-table--flat":"")+(l.bordered===!0?" q-table--bordered":"")),i=k.computed(()=>`q-table__container q-table--${l.separator}-separator column no-wrap`+(l.grid===!0?" q-table--grid":s.value)+(c.value===!0?" q-table--dark":"")+(l.dense===!0?" q-table--dense":"")+(l.wrapCells===!1?" q-table--no-wrap":"")+(o.value===!0?" fullscreen scroll":"")),d=k.computed(()=>i.value+(l.loading===!0?" q-table--loading":""));k.watch(()=>l.tableStyle+l.tableClass+l.tableHeaderStyle+l.tableHeaderClass+i.value,()=>{u.value===!0&&r.value?.reset()});const{innerPagination:h,computedPagination:f,isServerSide:g,requestServerInteraction:p,setPagination:x}=Kc(v,Pe),{computedFilterMethod:C}=Hc(l,x),{isRowExpanded:T,setExpanded:D,updateExpanded:q}=tf(l,t),N=k.computed(()=>{let he=l.rows;if(g.value===!0||he.length===0)return he;const{sortBy:we,descending:Te}=f.value;return l.filter&&(he=C.value(he,l.filter,B.value,Pe)),z.value!==null&&(he=Q.value(l.rows===he?he.slice():he,we,Te)),he}),P=k.computed(()=>N.value.length),V=k.computed(()=>{let he=N.value;if(g.value===!0)return he;const{rowsPerPage:we}=f.value;return we!==0&&(Y.value===0&&l.rows!==he?he.length>j.value&&(he=he.slice(0,j.value)):he=he.slice(Y.value,j.value)),he}),{hasSelectionMode:W,singleSelection:L,multipleSelection:A,allRowsSelected:E,someRowsSelected:_,rowsSelectedNumber:b,isRowSelected:y,clearSelection:w,updateSelection:S}=Zc(l,t,V,n),{colList:M,computedCols:B,computedColsMap:O,computedColspan:H}=nf(l,f,W),{columnToSort:z,computedSortMethod:Q,sort:F}=Uc(l,f,M,x),{firstRowIndex:Y,lastRowIndex:j,isFirstPage:R,isLastPage:U,pagesNumber:K,computedRowsPerPageOptions:$,computedRowsNumber:G,firstPage:ee,prevPage:ae,nextPage:se,lastPage:J}=Xc(v,h,f,g,x,P),ne=k.computed(()=>V.value.length===0),ie=k.computed(()=>{const he={};return Lo.forEach(we=>{he[we]=l[we]}),he.virtualScrollItemSize===void 0&&(he.virtualScrollItemSize=l.dense===!0?28:48),he});function fe(){u.value===!0&&r.value.reset()}function ce(){if(l.grid===!0)return ot();const he=l.hideHeader!==!0?De:null;if(u.value===!0){const Te=I["top-row"],Oe=I["bottom-row"],Ce={default:Qe=>xe(Qe.item,I.body,Qe.index)};if(Te!==void 0){const Qe=k.h("tbody",Te({cols:B.value}));Ce.before=he===null?()=>Qe:()=>[he()].concat(Qe)}else he!==null&&(Ce.before=he);return Oe!==void 0&&(Ce.after=()=>k.h("tbody",Oe({cols:B.value}))),k.h(Fc,{ref:r,class:l.tableClass,style:l.tableStyle,...ie.value,scrollTarget:l.virtualScrollTarget,items:V.value,type:"__qtable",tableColspan:H.value,onVirtualScroll:me},Ce)}const we=[Ie()];return he!==null&&we.unshift(he()),oa({class:["q-table__middle scroll",l.tableClass],style:l.tableStyle},we)}function de(he,we){if(r.value!==null){r.value.scrollTo(he,we);return}he=parseInt(he,10);const Te=e.value.querySelector(`tbody tr:nth-of-type(${he+1})`);if(Te!==null){const Oe=e.value.querySelector(".q-table__middle.scroll"),Ce=Te.offsetTop-l.virtualScrollStickySizeStart,Qe=Ce<Oe.scrollTop?"decrease":"increase";Oe.scrollTop=Ce,t("virtualScroll",{index:he,from:0,to:h.value.rowsPerPage-1,direction:Qe})}}function me(he){t("virtualScroll",he)}function be(){return[k.h(Nc,{class:"q-table__linear-progress",color:l.color,dark:c.value,indeterminate:!0,trackColor:"transparent"})]}function xe(he,we,Te){const Oe=n.value(he),Ce=y(Oe);if(we!==void 0){const X={key:Oe,row:he,pageIndex:Te,__trClass:Ce?"selected":""};if(l.tableRowStyleFn!==void 0&&(X.__trStyle=l.tableRowStyleFn(he)),l.tableRowClassFn!==void 0){const re=l.tableRowClassFn(he);re&&(X.__trClass=`${re} ${X.__trClass}`)}return we(Ee(X))}const Qe=I["body-cell"],Ke=B.value.map(X=>{const re=I[`body-cell-${X.name}`],le=re!==void 0?re:Qe;return le!==void 0?le(Me({key:Oe,row:he,pageIndex:Te,col:X})):k.h("td",{class:X.__tdClass(he),style:X.__tdStyle(he)},Pe(X,he))});if(W.value===!0){const X=I["body-selection"],re=X!==void 0?X(We({key:Oe,row:he,pageIndex:Te})):[k.h(_r,{modelValue:Ce,color:l.color,dark:c.value,dense:l.dense,"onUpdate:modelValue":(le,pe)=>{S([Oe],[he],le,pe)}})];Ke.unshift(k.h("td",{class:"q-table--col-auto-width"},re))}const te={key:Oe,class:{selected:Ce}};if(l.onRowClick!==void 0&&(te.class["cursor-pointer"]=!0,te.onClick=X=>{t("rowClick",X,he,Te)}),l.onRowDblclick!==void 0&&(te.class["cursor-pointer"]=!0,te.onDblclick=X=>{t("rowDblclick",X,he,Te)}),l.onRowContextmenu!==void 0&&(te.class["cursor-pointer"]=!0,te.onContextmenu=X=>{t("rowContextmenu",X,he,Te)}),l.tableRowStyleFn!==void 0&&(te.style=l.tableRowStyleFn(he)),l.tableRowClassFn!==void 0){const X=l.tableRowClassFn(he);X&&(te.class[X]=!0)}return k.h("tr",te,Ke)}function Ie(){const he=I.body,we=I["top-row"],Te=I["bottom-row"];let Oe=V.value.map((Ce,Qe)=>xe(Ce,he,Qe));return we!==void 0&&(Oe=we({cols:B.value}).concat(Oe)),Te!==void 0&&(Oe=Oe.concat(Te({cols:B.value}))),k.h("tbody",Oe)}function Ee(he){return Ve(he),he.cols=he.cols.map(we=>Lt({...we},"value",()=>Pe(we,he.row))),he}function Me(he){return Ve(he),Lt(he,"value",()=>Pe(he.col,he.row)),he}function We(he){return Ve(he),he}function Ve(he){Object.assign(he,{cols:B.value,colsMap:O.value,sort:F,rowIndex:Y.value+he.pageIndex,color:l.color,dark:c.value,dense:l.dense}),W.value===!0&&Lt(he,"selected",()=>y(he.key),(we,Te)=>{S([he.key],[he.row],we,Te)}),Lt(he,"expand",()=>T(he.key),we=>{q(he.key,we)})}function Pe(he,we){const Te=typeof he.field=="function"?he.field(we):we[he.field];return he.format!==void 0?he.format(Te,we):Te}const qe=k.computed(()=>({pagination:f.value,pagesNumber:K.value,isFirstPage:R.value,isLastPage:U.value,firstPage:ee,prevPage:ae,nextPage:se,lastPage:J,inFullscreen:o.value,toggleFullscreen:a}));function je(){const he=I.top,we=I["top-left"],Te=I["top-right"],Oe=I["top-selection"],Ce=W.value===!0&&Oe!==void 0&&b.value>0,Qe="q-table__top relative-position row items-center";if(he!==void 0)return k.h("div",{class:Qe},[he(qe.value)]);let Ke;if(Ce===!0?Ke=Oe(qe.value).slice():(Ke=[],we!==void 0?Ke.push(k.h("div",{class:"q-table__control"},[we(qe.value)])):l.title&&Ke.push(k.h("div",{class:"q-table__control"},[k.h("div",{class:["q-table__title",l.titleClass]},l.title)]))),Te!==void 0&&(Ke.push(k.h("div",{class:"q-table__separator col"})),Ke.push(k.h("div",{class:"q-table__control"},[Te(qe.value)]))),Ke.length!==0)return k.h("div",{class:Qe},Ke)}const ke=k.computed(()=>_.value===!0?null:E.value);function De(){const he=Ue();return l.loading===!0&&I.loading===void 0&&he.push(k.h("tr",{class:"q-table__progress"},[k.h("th",{class:"relative-position",colspan:H.value},be())])),k.h("thead",he)}function Ue(){const he=I.header,we=I["header-cell"];if(he!==void 0)return he(Le({header:!0})).slice();const Te=B.value.map(Oe=>{const Ce=I[`header-cell-${Oe.name}`],Qe=Ce!==void 0?Ce:we,Ke=Le({col:Oe});return Qe!==void 0?Qe(Ke):k.h(Lr,{key:Oe.name,props:Ke},()=>Oe.label)});if(L.value===!0&&l.grid!==!0)Te.unshift(k.h("th",{class:"q-table--col-auto-width"}," "));else if(A.value===!0){const Oe=I["header-selection"],Ce=Oe!==void 0?Oe(Le({})):[k.h(_r,{color:l.color,modelValue:ke.value,dark:c.value,dense:l.dense,"onUpdate:modelValue":Ge})];Te.unshift(k.h("th",{class:"q-table--col-auto-width"},Ce))}return[k.h("tr",{class:l.tableHeaderClass,style:l.tableHeaderStyle},Te)]}function Le(he){return Object.assign(he,{cols:B.value,sort:F,colsMap:O.value,color:l.color,dark:c.value,dense:l.dense}),A.value===!0&&Lt(he,"selected",()=>ke.value,Ge),he}function Ge(he){_.value===!0&&(he=!1),S(V.value.map(n.value),V.value,he)}const et=k.computed(()=>{const he=[l.iconFirstPage||m.iconSet.table.firstPage,l.iconPrevPage||m.iconSet.table.prevPage,l.iconNextPage||m.iconSet.table.nextPage,l.iconLastPage||m.iconSet.table.lastPage];return m.lang.rtl===!0?he.reverse():he});function He(){if(l.hideBottom===!0)return;if(ne.value===!0){if(l.hideNoData===!0)return;const Te=l.loading===!0?l.loadingLabel||m.lang.table.loading:l.filter?l.noResultsLabel||m.lang.table.noResults:l.noDataLabel||m.lang.table.noData,Oe=I["no-data"],Ce=Oe!==void 0?[Oe({message:Te,icon:m.iconSet.table.warning,filter:l.filter})]:[k.h(wt,{class:"q-table__bottom-nodata-icon",name:m.iconSet.table.warning}),Te];return k.h("div",{class:pn+" q-table__bottom--nodata"},Ce)}const he=I.bottom;if(he!==void 0)return k.h("div",{class:pn},[he(qe.value)]);const we=l.hideSelectedBanner!==!0&&W.value===!0&&b.value>0?[k.h("div",{class:"q-table__control"},[k.h("div",[(l.selectedRowsLabel||m.lang.table.selectedRecords)(b.value)])])]:[];if(l.hidePagination!==!0)return k.h("div",{class:pn+" justify-end"},tt(we));if(we.length!==0)return k.h("div",{class:pn},we)}function nt(he){x({page:1,rowsPerPage:he.value})}function tt(he){let we;const{rowsPerPage:Te}=f.value,Oe=l.paginationLabel||m.lang.table.pagination,Ce=I.pagination,Qe=l.rowsPerPageOptions.length>1;if(he.push(k.h("div",{class:"q-table__separator col"})),Qe===!0&&he.push(k.h("div",{class:"q-table__control"},[k.h("span",{class:"q-table__bottom-item"},[l.rowsPerPageLabel||m.lang.table.recordsPerPage]),k.h(Vn,{class:"q-table__select inline q-table__bottom-item",color:l.color,modelValue:Te,options:$.value,displayValue:Te===0?m.lang.table.allRows:Te,dark:c.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":nt})])),Ce!==void 0)we=Ce(qe.value);else if(we=[k.h("span",Te!==0?{class:"q-table__bottom-item"}:{},[Te?Oe(Y.value+1,Math.min(j.value,G.value),G.value):Oe(1,P.value,G.value)])],Te!==0&&K.value>1){const Ke={color:l.color,round:!0,dense:!0,flat:!0};l.dense===!0&&(Ke.size="sm"),K.value>2&&we.push(k.h(ct,{key:"pgFirst",...Ke,icon:et.value[0],disable:R.value,"aria-label":m.lang.pagination.first,onClick:ee})),we.push(k.h(ct,{key:"pgPrev",...Ke,icon:et.value[1],disable:R.value,"aria-label":m.lang.pagination.prev,onClick:ae}),k.h(ct,{key:"pgNext",...Ke,icon:et.value[2],disable:U.value,"aria-label":m.lang.pagination.next,onClick:se})),K.value>2&&we.push(k.h(ct,{key:"pgLast",...Ke,icon:et.value[3],disable:U.value,"aria-label":m.lang.pagination.last,onClick:J}))}return he.push(k.h("div",{class:"q-table__control"},we)),he}function Ye(){const he=l.gridHeader===!0?[k.h("table",{class:"q-table"},[De()])]:l.loading===!0&&I.loading===void 0?be():void 0;return k.h("div",{class:"q-table__middle"},he)}function ot(){const he=I.item!==void 0?I.item:we=>{const Te=we.cols.map(Ce=>k.h("div",{class:"q-table__grid-item-row"},[k.h("div",{class:"q-table__grid-item-title"},[Ce.label]),k.h("div",{class:"q-table__grid-item-value"},[Ce.value])]));if(W.value===!0){const Ce=I["body-selection"],Qe=Ce!==void 0?Ce(we):[k.h(_r,{modelValue:we.selected,color:l.color,dark:c.value,dense:l.dense,"onUpdate:modelValue":(Ke,te)=>{S([we.key],[we.row],Ke,te)}})];Te.unshift(k.h("div",{class:"q-table__grid-item-row"},Qe),k.h(In,{dark:c.value}))}const Oe={class:["q-table__grid-item-card"+s.value,l.cardClass],style:l.cardStyle};if(l.cardStyleFn!==void 0&&(Oe.style=[Oe.style,l.cardStyleFn(we.row)]),l.cardClassFn!==void 0){const Ce=l.cardClassFn(we.row);Ce&&(Oe.class[0]+=` ${Ce}`)}return(l.onRowClick!==void 0||l.onRowDblclick!==void 0||l.onRowContextmenu!==void 0)&&(Oe.class[0]+=" cursor-pointer",l.onRowClick!==void 0&&(Oe.onClick=Ce=>{t("RowClick",Ce,we.row,we.pageIndex)}),l.onRowDblclick!==void 0&&(Oe.onDblclick=Ce=>{t("RowDblclick",Ce,we.row,we.pageIndex)}),l.onRowContextmenu!==void 0&&(Oe.onContextmenu=Ce=>{t("rowContextmenu",Ce,we.row,we.pageIndex)})),k.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(we.selected===!0?" q-table__grid-item--selected":"")},[k.h("div",Oe,Te)])};return k.h("div",{class:["q-table__grid-content row",l.cardContainerClass],style:l.cardContainerStyle},V.value.map((we,Te)=>he(Ee({key:n.value(we),row:we,pageIndex:Te}))))}return Object.assign(v.proxy,{requestServerInteraction:p,setPagination:x,firstPage:ee,prevPage:ae,nextPage:se,lastPage:J,isRowSelected:y,clearSelection:w,isRowExpanded:T,setExpanded:D,sort:F,resetVirtualScroll:fe,scrollTo:de,getCellValue:Pe}),pa(v.proxy,{filteredSortedRows:()=>N.value,computedRows:()=>V.value,computedRowsNumber:()=>G.value}),()=>{const he=[je()],we={ref:e,class:d.value};return l.grid===!0?he.push(Ye()):Object.assign(we,{class:[we.class,l.cardClass],style:l.cardStyle}),he.push(ce(),He()),l.loading===!0&&I.loading!==void 0&&he.push(I.loading()),k.h("div",we,he)}}});function of(l,I,t){if(!t.renderAsBadge)return null;const v={label:typeof t.format=="function"?t.format(l):String(l),outline:t.badgeOutline,rounded:t.badgeRounded,size:t.badgeSize||"md",class:t.badgeClass};if(t.badgeMapping){const m=String(l).toLowerCase(),c=t.badgeMapping[m]||t.badgeMapping[l];c&&(v.color=c.color,v.label=c.label||v.label,v.icon=c.icon,v.outline=c.outline??v.outline)}return typeof t.badgeColor=="function"?v.color=t.badgeColor(l,I):t.badgeColor?v.color=t.badgeColor:v.color||(v.color=af(l)),v}function af(l){const I=String(l).toLowerCase();return{active:"green",inactive:"grey",pending:"orange",approved:"blue",rejected:"red",completed:"green",cancelled:"red",success:"green",error:"red",warning:"orange",info:"blue",draft:"grey",published:"green",archived:"grey-7",true:"green",false:"grey",yes:"green",no:"grey",enabled:"green",disabled:"grey"}[I]||"primary"}function qt(l,I){const t=uf(l,I);return{value:t,badgeConfig:of(t,l,I)}}const lf={shouldShowExpandButton:()=>!0,shouldShowSelectionColumn:()=>!0};function uf(l,I){return typeof I.field=="function"?I.field(l):l[I.field]}function _i(l,I){return typeof l.visible=="function"?l.visible(I):l.visible!==!1}function kr(l,I){return typeof l.disabled=="function"?l.disabled(I):!!l.disabled}function ro(l,I,t,v){return l.filter(m=>_i(m,I)&&(m.position===t||m.position==="both")&&(!v||m.columnName===v))}function mn(l,I){return kr(l,I)?"grey":l.color||"primary"}function gn(l,I,t,v="action"){return l.testId?typeof l.testId=="function"?l.testId(I):l.testId:`${v}-${l.id}-${I[t]}`}function lr(l,I){return l[I]||String(l.id)||String(l._id)||JSON.stringify(l)}function cf(l,I,t){const v=lr(l,t);return I.some(m=>lr(m,t)===v)}function ff(l,I){const t=k.ref(new Set);return(()=>{if(I&&typeof localStorage<"u")try{const s=localStorage.getItem(I);if(s){const i=JSON.parse(s),d=new Set(Object.keys(i).filter(h=>i[h]));t.value=d;return}}catch(s){console.warn("Error loading column state from localStorage:",s)}l.forEach(s=>{!s.hidden&&!s.isSelectionColumn&&t.value.add(s.name)})})(),I&&k.watch(t,s=>{try{const i={};l.forEach(d=>{i[d.name]=s.has(d.name)}),localStorage.setItem(I,JSON.stringify(i))}catch(i){console.warn("Error saving column state to localStorage:",i)}},{deep:!0}),{visibleColumns:t,toggleColumnVisibility:s=>{const i=new Set(t.value);i.has(s)?i.delete(s):i.add(s),t.value=i},showColumn:s=>{t.value.add(s)},hideColumn:s=>{t.value.delete(s)},showAllColumns:()=>{const s=new Set;l.forEach(i=>{s.add(i.name)}),t.value=s},hideAllColumns:()=>{t.value.clear()},resetColumns:()=>{t.value.clear(),l.forEach(s=>{!s.hidden&&!s.isSelectionColumn&&t.value.add(s.name)}),I&&typeof localStorage<"u"&&localStorage.removeItem(I)},filteredColumns:s=>s.filter(i=>t.value.has(i.name)),isColumnVisible:s=>t.value.has(s)}}const df={key:0,class:"row items-center q-mb-md q-pa-sm bg-blue-1 rounded-borders"},hf={class:"col-auto q-mr-md"},pf={class:"col"},mf={class:"flex items-center gap-2"},gf={key:1,class:"row items-center q-mb-sm q-pa-xs bg-grey-2 rounded-borders"},bf={class:"col"},vf={class:"flex items-center flex-wrap gap-1"},yf={class:"column-container"},wf={class:"column-label ellipsis"},xf={key:0,"auto-width":"",class:"q-pa-xs selection-cell"},Sf={key:1,"auto-width":"",class:"expand-cell"},kf=["onClick"],_f={class:"flex items-center"},Cf={key:1,class:"text-no-wrap ellipsis"},Af={colspan:"100%"},Ef=k.defineComponent({__name:"CustomTable",props:{columns:{},results:{},filter:{default:null},pagination:{},loading:{type:Boolean,default:!1},onRequest:{},rowKey:{default:"id"},services:{default:()=>({})},conditionals:{default:()=>({})},actions:{type:[Array,Function],default:()=>[]},showSkeleton:{type:Boolean,default:!1},rowClasses:{type:[String,Function],default:void 0},selection:{default:"none"},selected:{default:()=>[]},onSelectionChange:{},selectable:{type:Function,default:()=>!0},showSelectAll:{type:Boolean,default:!0},showColumnToggle:{type:Boolean,default:!1},columnStorageKey:{default:void 0}},emits:["update:pagination","update:selected","selection-change"],setup(l,{expose:I,emit:t}){const v=l,m=t,c=k.ref([]),o=k.ref(v.selected||[]),a=k.useSlots(),n=k.computed(()=>!!a.expanded),{toggleColumnVisibility:e,resetColumns:r,filteredColumns:u,isColumnVisible:s}=ff(v.columns,v.columnStorageKey),i=k.computed(()=>u(v.columns)),d=k.computed({get(){return v.pagination},set(z){m("update:pagination",z)}}),h=k.computed(()=>({...lf,...v.conditionals})),f=z=>h.value.shouldShowExpandButton(z),g=z=>c.value.includes(z[v.rowKey]),p=k.computed(()=>{if(v.selection!=="none")return v.selection}),x=k.computed(()=>v.selection==="none"?!1:h.value.shouldShowSelectionColumn()),C=k.computed(()=>v.results.length===0?!1:typeof v.actions=="function"?!0:v.actions.some(z=>_i(z,v.results[0])&&(z.position==="row"||z.position==="both"))),T=k.computed(()=>x.value?[{name:"__selection",label:"",field:"__selection",align:"center",sortable:!1,isSelectionColumn:!0},...i.value]:i.value),D=z=>typeof v.selectable=="function"?v.selectable(z):v.selectable!==!1,q=z=>cf(z,o.value,v.rowKey),N=k.computed(()=>v.results.filter(z=>D(z))),P=k.computed(()=>N.value.length===0?!1:N.value.every(z=>q(z))),V=k.computed(()=>o.value.length===0?!1:!P.value&&N.value.some(z=>q(z)));k.watch(()=>v.selected,z=>{JSON.stringify(z)!==JSON.stringify(o.value)&&(o.value=z||[])},{deep:!0}),k.watch(o,z=>{m("update:selected",z),m("selection-change",z)},{deep:!0});function W(z,Q){if(!D(z))return;const F=lr(z,v.rowKey);Q?o.value.some(Y=>lr(Y,v.rowKey)===F)||(o.value=[...o.value,z]):o.value=o.value.filter(Y=>lr(Y,v.rowKey)!==F)}function L(z){if(z){const Q=[...o.value];N.value.forEach(F=>{q(F)||Q.push(F)}),o.value=Q}else{const Q=new Set(N.value.map(F=>lr(F,v.rowKey)));o.value=o.value.filter(F=>!Q.has(lr(F,v.rowKey)))}}function A(){o.value=[]}const E=z=>v.rowClasses&&typeof v.rowClasses=="function"?v.rowClasses(z):v.rowClasses||"";function _(z){return typeof v.actions=="function"?v.actions(z):v.actions.filter(Q=>_i(Q,z))}function b(z){return ro(_(z),z,"row")}function y(z,Q){return ro(_(z),z,"cell",Q)}function w(z){const Q=S(z);Q&&!kr(Q,z)&&Q.handler(z)}function S(z){return _(z).find(F=>F.id==="edit")}function M(z,Q){const F=y(z,Q);for(const Y of F)kr(Y,z)||Y.handler(z)}async function B(z,Q=!1){const F=z[v.rowKey];if(g(z)||Q)c.value=c.value.filter(Y=>Y!==F);else if(c.value=[F],v.services.fetchDetails)try{z.details=await v.services.fetchDetails(z)}catch(Y){console.error("Error fetching details:",Y)}}async function O(z,Q){if(!kr(z,Q))try{z.isCancel&&await B(Q,!0),z.handler(Q)}catch(F){console.error(`Error executing action ${z.id}:`,F)}}function H(z){d.value=z.pagination,v.onRequest&&v.onRequest(z)}return I({clearSelection:A,getSelectedRows:()=>o.value,toggleRowSelection:W,toggleSelectAll:L,toggleColumnVisibility:e,resetColumns:r}),(z,Q)=>(k.openBlock(),k.createElementBlock(k.Fragment,null,[o.value.length>0?(k.openBlock(),k.createElementBlock("div",df,[k.createElementVNode("div",hf,[k.createVNode(ki,{color:"primary",class:"q-pa-xs"},{default:k.withCtx(()=>[k.createTextVNode(k.toDisplayString(o.value.length)+" sélectionné(s) ",1)]),_:1})]),k.createElementVNode("div",pf,[k.createElementVNode("div",mf,[k.renderSlot(z.$slots,"selection-actions",{selected:o.value,clearSelection:A},()=>[k.createVNode(ct,{dense:"",icon:"mdi-close",label:"Effacer",onClick:A,size:"sm"})],!0)])])])):k.createCommentVNode("",!0),z.showColumnToggle&&z.columns.length>0?(k.openBlock(),k.createElementBlock("div",gf,[Q[2]||(Q[2]=k.createElementVNode("div",{class:"col-auto q-mr-sm"},[k.createElementVNode("span",{class:"text-caption text-grey-7"},"Colonnes:")],-1)),k.createElementVNode("div",bf,[k.createElementVNode("div",vf,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(z.columns.filter(F=>!F.isSelectionColumn),F=>(k.openBlock(),k.createBlock(Do,{key:F.name,clickable:"",color:k.unref(s)(F.name)?"primary":"grey-5","text-color":"white",icon:k.unref(s)(F.name)?"visibility":"visibility_off",size:"sm",onClick:Y=>k.unref(e)(F.name)},{default:k.withCtx(()=>[k.createTextVNode(k.toDisplayString(F.label),1)]),_:2},1032,["color","icon","onClick"]))),128)),z.columnStorageKey?(k.openBlock(),k.createBlock(ct,{key:0,flat:"",dense:"",size:"sm",icon:"refresh",color:"grey",onClick:k.unref(r)},{default:k.withCtx(()=>[k.createVNode(dn,null,{default:k.withCtx(()=>Q[1]||(Q[1]=[k.createTextVNode("Réinitialiser les colonnes")])),_:1,__:[1]})]),_:1},8,["onClick"])):k.createCommentVNode("",!0)])])])):k.createCommentVNode("",!0),k.createVNode(sf,{pagination:d.value,"onUpdate:pagination":Q[0]||(Q[0]=F=>d.value=F),columns:T.value,rows:z.results,filter:z.filter,"row-key":z.rowKey,"binary-state-sort":"","rows-per-page-options":d.value.rowsPerPageOptions,onRequest:H,loading:z.loading,"hide-no-data":z.loading,class:"q-mb-xl",flat:"",bordered:""},{header:k.withCtx(F=>[k.createVNode(hn,{props:F},{default:k.withCtx(()=>[x.value?(k.openBlock(),k.createBlock(Lr,{key:0,"auto-width":"",class:"selection-column"},{default:k.withCtx(()=>[p.value==="multiple"?(k.openBlock(),k.createBlock(_r,{key:0,"model-value":P.value,indeterminate:V.value,"onUpdate:modelValue":L,disabled:z.loading||N.value.length===0,"data-cy":"select-all-checkbox",dense:"",size:"sm"},null,8,["model-value","indeterminate","disabled"])):k.createCommentVNode("",!0)]),_:1})):k.createCommentVNode("",!0),n.value?(k.openBlock(),k.createBlock(Lr,{key:1,"auto-width":"",class:"expand-column"})):k.createCommentVNode("",!0),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(F.cols.filter(Y=>!Y.isSelectionColumn),Y=>(k.openBlock(),k.createBlock(Lr,{key:Y.name,props:F,class:"column-header"},{default:k.withCtx(()=>[k.createElementVNode("div",yf,[k.createElementVNode("span",wf,k.toDisplayString(Y.label),1),z.showColumnToggle?(k.openBlock(),k.createBlock(ct,{key:0,flat:"",dense:"",size:"xs",icon:"close",onClick:k.withModifiers(j=>k.unref(e)(Y.name),["stop"]),class:"column-close-btn"},{default:k.withCtx(()=>[k.createVNode(dn,null,{default:k.withCtx(()=>Q[3]||(Q[3]=[k.createTextVNode("Cacher cette colonne")])),_:1,__:[3]})]),_:2},1032,["onClick"])):k.createCommentVNode("",!0)])]),_:2},1032,["props"]))),128)),C.value?(k.openBlock(),k.createBlock(Lr,{key:2,"auto-width":"",class:"actions-column"},{default:k.withCtx(()=>Q[4]||(Q[4]=[k.createTextVNode(" Actions ")])),_:1,__:[4]})):k.createCommentVNode("",!0)]),_:2},1032,["props"])]),body:k.withCtx(F=>[z.showSkeleton?(k.openBlock(),k.createElementBlock(k.Fragment,{key:0},k.renderList(5,Y=>k.createVNode(hn,{key:`skeleton-${Y}`},{default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(T.value.filter(j=>!j.isSelectionColumn),j=>(k.openBlock(),k.createBlock(ai,{key:j.name},{default:k.withCtx(()=>[k.createVNode(Zs,{type:"text"})]),_:2},1024))),128)),C.value?(k.openBlock(),k.createBlock(ai,{key:0},{default:k.withCtx(()=>[k.createVNode(Zs,{type:"QBtn"})]),_:1})):k.createCommentVNode("",!0)]),_:2},1024)),64)):(k.openBlock(),k.createBlock(hn,{key:1,"data-cy":`row-${F.row[z.rowKey]}`,props:F,class:k.normalizeClass([{"bg-grey-3":F.row.archived},E(F.row),q(F.row)?"selected-row":""]),onDblclick:Y=>w(F.row)},{default:k.withCtx(()=>[x.value?(k.openBlock(),k.createElementBlock("td",xf,[k.createVNode(_r,{"model-value":q(F.row),"onUpdate:modelValue":Y=>W(F.row,Y),disabled:!D(F.row),"data-cy":`row-checkbox-${F.row[z.rowKey]}`,dense:"",size:"sm"},null,8,["model-value","onUpdate:modelValue","disabled","data-cy"])])):k.createCommentVNode("",!0),n.value?(k.openBlock(),k.createElementBlock("td",Sf,[k.renderSlot(z.$slots,"expand-button",{row:F.row,expanded:g(F.row),toggle:()=>B(F.row)},()=>[f(F.row)?(k.openBlock(),k.createBlock(ct,{key:0,"data-cy":`expand-button-${F.row[z.rowKey]}`,size:"sm",color:"primary",round:"",dense:"",icon:g(F.row)?"remove":"add",onClick:Y=>B(F.row)},null,8,["data-cy","icon","onClick"])):k.createCommentVNode("",!0)],!0)])):k.createCommentVNode("",!0),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(F.cols.filter(Y=>!Y.isSelectionColumn),Y=>(k.openBlock(),k.createElementBlock("td",{key:Y.name,onClick:k.withModifiers(j=>M(F.row,Y.name),["stop"]),class:"data-cell"},[k.renderSlot(z.$slots,"body-cell",{row:F.row,col:Y,value:k.unref(qt)(F.row,Y).value,badgeConfig:k.unref(qt)(F.row,Y).badgeConfig},()=>[k.createElementVNode("div",_f,[k.unref(qt)(F.row,Y).badgeConfig?(k.openBlock(),k.createBlock(ki,{key:0,color:k.unref(qt)(F.row,Y).badgeConfig?.color,outline:k.unref(qt)(F.row,Y).badgeConfig?.outline,rounded:k.unref(qt)(F.row,Y).badgeConfig?.rounded,size:k.unref(qt)(F.row,Y).badgeConfig?.size,icon:k.unref(qt)(F.row,Y).badgeConfig?.icon,class:k.normalizeClass(k.unref(qt)(F.row,Y).badgeConfig?.class)},{default:k.withCtx(()=>[k.createTextVNode(k.toDisplayString(k.unref(qt)(F.row,Y).badgeConfig?.label),1)]),_:2},1032,["color","outline","rounded","size","icon","class"])):(k.openBlock(),k.createElementBlock("span",Cf,k.toDisplayString(k.unref(qt)(F.row,Y).value),1)),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(y(F.row,Y.name),j=>(k.openBlock(),k.createElementBlock(k.Fragment,{key:j.id},[j.isButton?(k.openBlock(),k.createBlock(ct,k.mergeProps({key:0,color:k.unref(mn)(j,F.row),size:j.size||"sm",class:j.class,disabled:k.unref(kr)(j,F.row),label:j.label},{ref_for:!0},j.buttonProps||{},{"data-cy":k.unref(gn)(j,F.row,z.rowKey),onClick:k.withModifiers(R=>O(j,F.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(k.openBlock(),k.createBlock(wt,{key:1,class:"cursor-pointer q-ml-sm",name:j.icon,color:k.unref(mn)(j,F.row),size:j.size||"20px","data-cy":k.unref(gn)(j,F.row,z.rowKey,"cell-icon"),onClick:k.withModifiers(R=>O(j,F.row),["stop"])},{default:k.withCtx(()=>[j.label?(k.openBlock(),k.createBlock(dn,{key:0},{default:k.withCtx(()=>[k.createTextVNode(k.toDisplayString(j.label),1)]),_:2},1024)):k.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))])],!0)],8,kf))),128)),k.createVNode(ai,{class:k.normalizeClass(["row items-center justify-center no-wrap actions-cell",E(F.row)])},{default:k.withCtx(()=>[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(b(F.row),Y=>(k.openBlock(),k.createElementBlock(k.Fragment,{key:Y.id},[Y.isButton?(k.openBlock(),k.createBlock(ct,k.mergeProps({key:0,color:k.unref(mn)(Y,F.row),size:Y.size||"sm",class:Y.class,disabled:k.unref(kr)(Y,F.row),label:Y.label},{ref_for:!0},Y.buttonProps||{},{"data-cy":k.unref(gn)(Y,F.row,z.rowKey),onClick:k.withModifiers(j=>O(Y,F.row),["stop"])}),null,16,["color","size","class","disabled","label","data-cy","onClick"])):(k.openBlock(),k.createBlock(wt,{key:1,class:"cursor-pointer q-mr-sm",name:Y.icon,color:k.unref(mn)(Y,F.row),size:Y.size||"25px","data-cy":k.unref(gn)(Y,F.row,z.rowKey,"icon"),onClick:k.withModifiers(j=>O(Y,F.row),["stop"])},{default:k.withCtx(()=>[Y.label?(k.openBlock(),k.createBlock(dn,{key:0},{default:k.withCtx(()=>[k.createTextVNode(k.toDisplayString(Y.label),1)]),_:2},1024)):k.createCommentVNode("",!0)]),_:2},1032,["name","color","size","data-cy","onClick"]))],64))),128))]),_:2},1032,["class"])]),_:2},1032,["data-cy","props","class","onDblclick"])),n.value&&g(F.row)?(k.openBlock(),k.createBlock(hn,{key:2},{default:k.withCtx(()=>[k.createElementVNode("td",Af,[k.renderSlot(z.$slots,"expanded",{row:F.row},void 0,!0)])]),_:2},1024)):k.createCommentVNode("",!0)]),_:3},8,["pagination","columns","rows","filter","row-key","rows-per-page-options","loading","hide-no-data"])],64))}}),Mf=Kt(Ef,[["__scopeId","data-v-fd6c2900"]]);var lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tf(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function bn(l){throw new Error('Could not dynamically require "'+l+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var li={exports:{}};/*! ExcelJS 19-10-2023 */var no;function Rf(){return no||(no=1,function(l,I){(function(t){l.exports=t()})(function(){return function t(v,m,c){function o(e,r){if(!m[e]){if(!v[e]){var u=typeof bn=="function"&&bn;if(!r&&u)return u(e,!0);if(a)return a(e,!0);var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}var i=m[e]={exports:{}};v[e][0].call(i.exports,function(d){return o(v[e][1][d]||d)},i,i.exports,t,v,m,c)}return m[e].exports}for(var a=typeof bn=="function"&&bn,n=0;n<c.length;n++)o(c[n]);return o}({1:[function(t,v,m){const c=t("fs"),o=t("fast-csv"),a=t("dayjs/plugin/customParseFormat"),n=t("dayjs/plugin/utc"),e=t("dayjs").extend(a).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!"}};v.exports=class{constructor(i){this.workbook=i,this.worksheet=null}async readFile(i,d){if(d=d||{},!await u(i))throw new Error("File not found: "+i);const h=c.createReadStream(i),f=await this.read(h,d);return h.close(),f}read(i,d){return d=d||{},new Promise((h,f)=>{const g=this.workbook.addWorksheet(d.sheetName),p=d.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],x=d.map||function(T){if(T==="")return null;const D=Number(T);if(!Number.isNaN(D)&&D!==1/0)return D;const q=p.reduce((P,V)=>{if(P)return P;const W=e(T,V,!0);return W.isValid()?W:null},null);if(q)return new Date(q.valueOf());const N=s[T];return N!==void 0?N:T},C=o.parse(d.parserOptions).on("data",T=>{g.addRow(T.map(x))}).on("end",()=>{C.emit("worksheet",g)});C.on("worksheet",h).on("error",f),i.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(i,d){return new Promise((h,f)=>{d=d||{};const g=this.workbook.getWorksheet(d.sheetName||d.sheetId),p=o.format(d.formatterOptions);i.on("finish",()=>{h()}),p.on("error",f),p.pipe(i);const{dateFormat:x,dateUTC:C}=d,T=d.map||(N=>{if(N){if(N.text||N.hyperlink)return N.hyperlink||N.text||"";if(N.formula||N.result)return N.result||"";if(N instanceof Date)return x?C?e.utc(N).format(x):e(N).format(x):C?e.utc(N).format():e(N).format();if(N.error)return N.error;if(typeof N=="object")return JSON.stringify(N)}return N}),D=d.includeEmptyRows===void 0||d.includeEmptyRows;let q=1;g&&g.eachRow((N,P)=>{if(D)for(;q++<P-1;)p.write([]);const{values:V}=N;V.shift(),p.write(V.map(T)),q=P}),p.end()})}writeFile(i,d){const h={encoding:(d=d||{}).encoding||"utf8"},f=c.createWriteStream(i,h);return this.write(f,d)}async writeBuffer(i){const d=new r;return await this.write(d,i),d.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,v,m){const c=t("../utils/col-cache");class o{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 o||n==null?n:new o(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}}v.exports=o},{"../utils/col-cache":19}],3:[function(t,v,m){const c=t("../utils/col-cache"),o=t("../utils/under-dash"),a=t("./enums"),{slideFormula:n}=t("../utils/shared-formula"),e=t("./note");class r{constructor(i,d,h){if(!i||!d)throw new Error("A Cell needs a Row");this._row=i,this._column=d,c.validateAddress(h),this._address=h,this._value=u.create(r.Types.Null,this),this.style=this._mergeStyle(i.style,d.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(i){this.style.numFmt=i}get font(){return this.style.font}set font(i){this.style.font=i}get alignment(){return this.style.alignment}set alignment(i){this.style.alignment=i}get border(){return this.style.border}set border(i){this.style.border=i}get fill(){return this.style.fill}set fill(i){this.style.fill=i}get protection(){return this.style.protection}set protection(i){this.style.protection=i}_mergeStyle(i,d,h){const f=i&&i.numFmt||d&&d.numFmt;f&&(h.numFmt=f);const g=i&&i.font||d&&d.font;g&&(h.font=g);const p=i&&i.alignment||d&&d.alignment;p&&(h.alignment=p);const x=i&&i.border||d&&d.border;x&&(h.border=x);const C=i&&i.fill||d&&d.fill;C&&(h.fill=C);const T=i&&i.protection||d&&d.protection;return T&&(h.protection=T),h}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(i,d){this._value.release(),this._value=u.create(r.Types.Merge,this,i),d||(this.style=i.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(i){return this._value.type===r.Types.Merge&&this._value.isMergedTo(i)}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(i){this.type!==r.Types.Merge?(this._value.release(),this._value=u.create(u.getType(i),this,i)):this._value.master.value=i}get note(){return this._comment&&this._comment.note}set note(i){this._comment=new e(i)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(i){this.type===r.Types.String&&(this._value=u.create(r.Types.Hyperlink,this,{text:this._value.value,hyperlink:i}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:i}=this._row;return{sheetName:i.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(i){this.names=[i]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(i){const{definedNames:d}=this.workbook;d.removeAllNames(this.fullAddress),i.forEach(h=>{d.addEx(this.fullAddress,h)})}addName(i){this.workbook.definedNames.addEx(this.fullAddress,i)}removeName(i){this.workbook.definedNames.removeEx(this.fullAddress,i)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(i){this._dataValidations.add(this.address,i)}get model(){const{model:i}=this._value;return i.style=this.style,this._comment&&(i.comment=this._comment.model),i}set model(i){if(this._value.release(),this._value=u.create(i.type,this),this._value.model=i,i.comment)switch(i.comment.type){case"note":this._comment=e.fromModel(i.comment)}i.style?this.style=i.style:this.style={}}}r.Types=a.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,i){this.model={address:s.address,type:r.Types.Number,value:i}}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,i){this.model={address:s.address,type:r.Types.String,value:i}}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,i){this.model={address:s.address,type:r.Types.Date,value:i}}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,i){this.model={address:s.address,type:r.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.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,i){this.cell=s,this.model={address:s.address,type:r.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}_copyModel(s){const i={},d=h=>{const f=s[h];f&&(i[h]=f)};return d("formula"),d("result"),d("ref"),d("shareType"),d("sharedFormula"),i}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?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.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?a.ValueType.Null:s instanceof String||typeof s=="string"?a.ValueType.String:typeof s=="number"?a.ValueType.Number:s instanceof Date?a.ValueType.Date:s.text&&s.hyperlink?a.ValueType.Hyperlink:s.formula?a.ValueType.Formula:a.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,i=s.findCell(this.model.sharedFormula);this._translatedFormula=i&&n(i.formula,i.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,i){this.model={address:s.address,type:r.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.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,i){this.model={address:s.address,type:r.Types.String,value:JSON.stringify(i),rawValue:i}}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,i){this.model={address:s.address,type:r.Types.SharedString,value:i}}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,i){this.model={address:s.address,type:r.Types.String,value:i}}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,i){this.model={address:s.address,type:r.Types.Boolean,value:i}}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,i){this.model={address:s.address,type:r.Types.Error,value:i}}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,i)=>(s[i.t]=i.f,s),[]),create(s,i,d){const h=this.types[s];if(!h)throw new Error("Could not create Value of type "+s);return new h(i,d)}};v.exports=r},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,v,m){const c=t("../utils/under-dash"),o=t("./enums"),a=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 a.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,(i,d)=>{u(i.getCell(s),d)})}get values(){const r=[];return this.eachCell((u,s)=>{u&&u.type!==o.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((i,d)=>{this._worksheet.getCell(d+s,u).value=i})}_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((i,d)=>{i.isDefault?s&&(s=null):s&&i.equivalentTo(s)?s.max=d+1:(s={min:d+1,max:d+1,width:i.width!==void 0?i.width:9,style:i.style,isCustomWidth:i.isCustomWidth,hidden:i.hidden,outlineLevel:i.outlineLevel,collapsed:i.collapsed},u.push(s))}),u.length?u:void 0}static fromModel(r,u){const s=[];let i=1,d=0;for(u=(u=u||[]).sort(function(h,f){return h.min-f.min});d<u.length;){const h=u[d++];for(;i<h.min;)s.push(new n(r,i++));for(;i<=h.max;)s.push(new n(r,i++,h))}return s.length?s:null}}v.exports=n},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,v,m){v.exports=class{constructor(c){this.model=c||{}}add(c,o){return this.model[c]=o}find(c){return this.model[c]}remove(c){this.model[c]=void 0}}},{}],6:[function(t,v,m){const c=t("../utils/under-dash"),o=t("../utils/col-cache"),a=t("../utils/cell-matrix"),n=t("./range"),e=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;v.exports=class{constructor(){this.matrixMap={}}getMatrix(r){return this.matrixMap[r]||(this.matrixMap[r]=new a)}add(r,u){const s=o.decodeEx(r);this.addEx(s,u)}addEx(r,u){const s=this.getMatrix(u);if(r.top)for(let i=r.left;i<=r.right;i++)for(let d=r.top;d<=r.bottom;d++){const h={sheetName:r.sheetName,address:o.n2l(i)+d,row:d,col:i};s.addCellEx(h)}else s.addCellEx(r)}remove(r,u){const s=o.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(i=>{r(s,i)})})}getNames(r){return this.getNamesEx(o.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,i=new n(u.row,u.col,u.row,u.col,s);let d,h;function f(p,x){const C=r.findCellAt(s,p,u.col);return!(!C||!C.mark)&&(i[x]=p,C.mark=!1,!0)}for(h=u.row-1;f(h,"top");h--);for(h=u.row+1;f(h,"bottom");h++);function g(p,x){const C=[];for(h=i.top;h<=i.bottom;h++){const T=r.findCellAt(s,h,p);if(!T||!T.mark)return!1;C.push(T)}i[x]=p;for(let T=0;T<C.length;T++)C[T].mark=!1;return!0}for(d=u.col-1;g(d,"left");d--);for(d=u.col+1;g(d,"right");d++);return i}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,i,d)=>{s&&(s.row===i&&s.col===d||(s.row=i,s.col=d,s.address=o.n2l(d)+i))})}spliceRows(r,u,s,i){c.each(this.matrixMap,d=>{d.spliceRows(r,u,s,i),this.normaliseMatrix(d,r)})}spliceColumns(r,u,s,i){c.each(this.matrixMap,d=>{d.spliceColumns(r,u,s,i),this.normaliseMatrix(d,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 i=u[s.name]=new a;s.ranges.forEach(d=>{e.test(d.split("!").pop()||"")&&i.addCell(d)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,v,m){v.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,v,m){const c=t("../utils/col-cache"),o=t("./anchor");v.exports=class{constructor(a,n){this.worksheet=a,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(a){let{type:n,imageId:e,range:r,hyperlinks:u}=a;if(this.type=n,this.imageId=e,n==="image")if(typeof r=="string"){const s=c.decode(r);this.range={tl:new o(this.worksheet,{col:s.left,row:s.top},-1),br:new o(this.worksheet,{col:s.right,row:s.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,r.tl,0),br:r.br&&new o(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:u||r.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,v,m){const c=t("../utils/under-dash");class o{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({},o.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 o;return e.model=n,e}}o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},v.exports=o},{"../utils/under-dash":26}],10:[function(t,v,m){const c=t("../utils/col-cache");class o{constructor(){this.decode(arguments)}setTLBR(n,e,r,u,s){if(arguments.length<4){const i=c.decodeAddress(n),d=c.decodeAddress(e);this.model={top:Math.min(i.row,d.row),left:Math.min(i.col,d.col),bottom:Math.max(i.row,d.row),right:Math.max(i.col,d.col),sheetName:r},this.setTLBR(i.row,i.col,d.row,d.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 o)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)}}v.exports=o},{"../utils/col-cache":19}],11:[function(t,v,m){const c=t("../utils/under-dash"),o=t("./enums"),a=t("../utils/col-cache"),n=t("./cell");v.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:a.l2n(e)}return this._cells[e-1]||this.getCellEx({address:a.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,r){const u=e+r;for(var s=arguments.length,i=new Array(s>2?s-2:0),d=2;d<s;d++)i[d-2]=arguments[d];const h=i.length-r,f=this._cells.length;let g,p,x;if(h<0)for(g=e+i.length;g<=f;g++)x=this._cells[g-1],p=this._cells[g-h-1],p?(x=this.getCell(g),x.value=p.value,x.style=p.style,x._comment=p._comment):x&&(x.value=null,x.style={},x._comment=void 0);else if(h>0)for(g=f;g>=u;g--)p=this._cells[g-1],p?(x=this.getCell(g+h),x.value=p.value,x.style=p.style,x._comment=p._comment):this._cells[g+h-1]=void 0;for(g=0;g<i.length;g++)x=this.getCell(e+g),x.value=i[g],x.style={},x._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!==o.ValueType.Null&&r(u,s+1)})}addPageBreak(e,r){const u=this._worksheet,s=Math.max(0,e-1)||0,i=Math.max(0,r-1)||16838,d={id:this._number,max:i,man:1};s&&(d.min=s),u.rowBreaks.push(d)}get values(){const e=[];return this._cells.forEach(r=>{r&&r.type!==o.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:a.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:a.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!==o.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!==o.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 i=s.model;i&&((!r||r>s.col)&&(r=s.col),u<s.col&&(u=s.col),e.push(i))}}),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=a.decodeAddress(u.address);else if(r){const{row:i}=r,d=r.col+1;s={row:i,col:d,address:a.encodeAddress(i,d),$col$row:`$${a.n2l(d)}$${i}`}}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,v,m){const c=t("../utils/col-cache");class o{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)}}v.exports=class{constructor(a,n){this.worksheet=a,n&&(this.table=n,this.validate(),this.store())}getFormula(a){switch(a.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${a.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${a.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${a.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${a.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${a.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${a.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${a.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${a.name}])`;case"custom":return a.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+a.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:a}=this,n=(h,f,g)=>{h[f]===void 0&&(h[f]=g)};n(a,"headerRow",!0),n(a,"totalsRow",!1),n(a,"style",{}),n(a.style,"theme","TableStyleMedium2"),n(a.style,"showFirstColumn",!1),n(a.style,"showLastColumn",!1),n(a.style,"showRowStripes",!1),n(a.style,"showColumnStripes",!1);const e=(h,f)=>{if(!h)throw new Error(f)};e(a.ref,"Table must have ref"),e(a.columns,"Table must have column definitions"),e(a.rows,"Table must have row definitions"),a.tl=c.decodeAddress(a.ref);const{row:r,col:u}=a.tl;e(r>0,"Table must be on valid row"),e(u>0,"Table must be on valid col");const{width:s,filterHeight:i,tableHeight:d}=this;a.autoFilterRef=c.encode(r,u,r+i-1,u+s-1),a.tableRef=c.encode(r,u,r+d-1,u+s-1),a.columns.forEach((h,f)=>{e(h.name,`Column ${f} must have a name`),f===0?n(h,"totalsRowLabel","Total"):(n(h,"totalsRowFunction","none"),h.totalsRowFormula=this.getFormula(h))})}store(){const a=(i,d)=>{d&&Object.keys(d).forEach(h=>{i[h]=d[h]})},{worksheet:n,table:e}=this,{row:r,col:u}=e.tl;let s=0;if(e.headerRow){const i=n.getRow(r+s++);e.columns.forEach((d,h)=>{const{style:f,name:g}=d,p=i.getCell(u+h);p.value=g,a(p,f)})}if(e.rows.forEach(i=>{const d=n.getRow(r+s++);i.forEach((h,f)=>{const g=d.getCell(u+f);g.value=h,a(g,e.columns[f].style)})}),e.totalsRow){const i=n.getRow(r+s++);e.columns.forEach((d,h)=>{const f=i.getCell(u+h);if(h===0)f.value=d.totalsRowLabel;else{const g=this.getFormula(d);f.value=g?{formula:d.totalsRowFormula,result:d.totalsRowResult}:null}a(f,d.style)})}}load(a){const{table:n}=this,{row:e,col:r}=n.tl;let u=0;if(n.headerRow){const s=a.getRow(e+u++);n.columns.forEach((i,d)=>{s.getCell(r+d).value=i.name})}if(n.rows.forEach(s=>{const i=a.getRow(e+u++);s.forEach((d,h)=>{i.getCell(r+h).value=d})}),n.totalsRow){const s=a.getRow(e+u++);n.columns.forEach((i,d)=>{const h=s.getCell(r+d);d===0?h.value=i.totalsRowLabel:this.getFormula(i)&&(h.value={formula:i.totalsRowFormula,result:i.totalsRowResult})})}}get model(){return this.table}set model(a){this.table=a}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const a=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(a.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(a.col+r).value=null}else{for(let n=this.tableHeight;n<this._cache.tableHeight;n++){const e=this.worksheet.getRow(a.row+n);for(let r=0;r<this._cache.width;r++)e.getCell(a.col+r).value=null}for(let n=0;n<this.tableHeight;n++){const e=this.worksheet.getRow(a.row+n);for(let r=this.width;r<this._cache.width;r++)e.getCell(a.col+r).value=null}}this.store()}addRow(a,n){this.cacheState(),n===void 0?this.table.rows.push(a):this.table.rows.splice(n,0,a)}removeRows(a){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(a,n)}getColumn(a){const n=this.table.columns[a];return new o(this,n,a)}addColumn(a,n,e){this.cacheState(),e===void 0?(this.table.columns.push(a),this.table.rows.forEach((r,u)=>{r.push(n[u])})):(this.table.columns.splice(e,0,a),this.table.rows.forEach((r,u)=>{r.splice(e,0,n[u])}))}removeColumns(a){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(a,n),this.table.rows.forEach(e=>{e.splice(a,n)})}_assign(a,n,e){this.cacheState(),a[n]=e}get ref(){return this.table.ref}set ref(a){this._assign(this.table,"ref",a)}get name(){return this.table.name}set name(a){this.table.name=a}get displayName(){return this.table.displyName||this.table.name}set displayNamename(a){this.table.displayName=a}get headerRow(){return this.table.headerRow}set headerRow(a){this._assign(this.table,"headerRow",a)}get totalsRow(){return this.table.totalsRow}set totalsRow(a){this._assign(this.table,"totalsRow",a)}get theme(){return this.table.style.name}set theme(a){this.table.style.name=a}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(a){this.table.style.showFirstColumn=a}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(a){this.table.style.showLastColumn=a}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(a){this.table.style.showRowStripes=a}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(a){this.table.style.showColumnStripes=a}}},{"../utils/col-cache":19}],13:[function(t,v,m){const c=t("./worksheet"),o=t("./defined-names"),a=t("../xlsx/xlsx"),n=t("../csv/csv");v.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 o}get xlsx(){return this._xlsx||(this._xlsx=new a(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((h,f)=>(f&&f.orderNo)>h?f.orderNo:h,0),i=Object.assign({},r,{id:u,name:e,orderNo:s+1,workbook:this}),d=new c(i);return this._worksheets[u]=d,d}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:i}=r,d=e.sheets&&e.sheets.findIndex(h=>h.id===u);(this._worksheets[u]=new c({id:u,name:s,orderNo:d,state:i,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,v,m){const c=t("../utils/under-dash"),o=t("../utils/col-cache"),a=t("./range"),n=t("./row"),e=t("./column"),r=t("./enums"),u=t("./image"),s=t("./table"),i=t("./data-validations"),d=t("../utils/encryptor"),{copyStyle:h}=t("../utils/copy-style");v.exports=class{constructor(f){f=f||{},this._workbook=f.workbook,this.id=f.id,this.orderNo=f.orderNo,this.name=f.name,this.state=f.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},f.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:!(!f.pageSetup||!f.pageSetup.fitToWidth&&!f.pageSetup.fitToHeight||f.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},f.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},f.headerFooter),this.dataValidations=new i,this.views=f.views||[],this.autoFilter=f.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(f){if(f===void 0&&(f="sheet"+this.id),this._name!==f){if(typeof f!="string")throw new Error("The name has to be a string.");if(f==="")throw new Error("The name can't be empty.");if(f==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(f))throw new Error(`Worksheet name ${f} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(f))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+f);if(f&&f.length>31&&(console.warn(`Worksheet name ${f} exceeds 31 chars. This will be truncated`),f=f.substring(0,31)),this._workbook._worksheets.find(g=>g&&g.name.toLowerCase()===f.toLowerCase()))throw new Error("Worksheet name already exists: "+f);this._name=f}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const f=new a;return this._rows.forEach(g=>{if(g){const p=g.dimensions;p&&f.expand(g.number,p.min,g.number,p.max)}}),f}get columns(){return this._columns}set columns(f){this._headerRowCount=f.reduce((x,C)=>{const T=(C.header?1:C.headers&&C.headers.length)||0;return Math.max(x,T)},0);let g=1;const p=this._columns=[];f.forEach(x=>{const C=new e(this,g++,!1);p.push(C),C.defn=x})}getColumnKey(f){return this._keys[f]}setColumnKey(f,g){this._keys[f]=g}deleteColumnKey(f){delete this._keys[f]}eachColumnKey(f){c.each(this._keys,f)}getColumn(f){if(typeof f=="string"){const g=this._keys[f];if(g)return g;f=o.l2n(f)}if(this._columns||(this._columns=[]),f>this._columns.length){let g=this._columns.length+1;for(;g<=f;)this._columns.push(new e(this,g++))}return this._columns[f-1]}spliceColumns(f,g){const p=this._rows.length;for(var x=arguments.length,C=new Array(x>2?x-2:0),T=2;T<x;T++)C[T-2]=arguments[T];if(C.length>0)for(let P=0;P<p;P++){const V=[f,g];C.forEach(L=>{V.push(L[P]||null)});const W=this.getRow(P+1);W.splice.apply(W,V)}else this._rows.forEach(P=>{P&&P.splice(f,g)});const D=C.length-g,q=f+g,N=this._columns.length;if(D<0)for(let P=f+C.length;P<=N;P++)this.getColumn(P).defn=this.getColumn(P-D).defn;else if(D>0)for(let P=N;P>=q;P--)this.getColumn(P+D).defn=this.getColumn(P).defn;for(let P=f;P<f+C.length;P++)this.getColumn(P).defn=null;this.workbook.definedNames.spliceColumns(this.name,f,g,C.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let f=0;return this.eachRow(g=>{f=Math.max(f,g.cellCount)}),f}get actualColumnCount(){const f=[];let g=0;return this.eachRow(p=>{p.eachCell(x=>{let{col:C}=x;f[C]||(f[C]=!0,g++)})}),g}_commitRow(){}get _lastRowNumber(){const f=this._rows;let g=f.length;for(;g>0&&f[g-1]===void 0;)g--;return g}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(f){return this._rows[f-1]}findRows(f,g){return this._rows.slice(f-1,f-1+g)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let f=0;return this.eachRow(()=>{f++}),f}getRow(f){let g=this._rows[f-1];return g||(g=this._rows[f-1]=new n(this,f)),g}getRows(f,g){if(g<1)return;const p=[];for(let x=f;x<f+g;x++)p.push(this.getRow(x));return p}addRow(f){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=this._nextRow,x=this.getRow(p);return x.values=f,this._setStyleOption(p,g[0]==="i"?g:"n"),x}addRows(f){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const p=[];return f.forEach(x=>{p.push(this.addRow(x,g))}),p}insertRow(f,g){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(f,0,g),this._setStyleOption(f,p),this.getRow(f)}insertRows(f,g){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(f,0,...g),p!=="n")for(let x=0;x<g.length;x++)p[0]==="o"&&this.findRow(g.length+f+x)!==void 0?this._copyStyle(g.length+f+x,f+x,p[1]==="+"):p[0]==="i"&&this.findRow(f-1)!==void 0&&this._copyStyle(f-1,f+x,p[1]==="+");return this.getRows(f,g.length)}_setStyleOption(f){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";g[0]==="o"&&this.findRow(f+1)!==void 0?this._copyStyle(f+1,f,g[1]==="+"):g[0]==="i"&&this.findRow(f-1)!==void 0&&this._copyStyle(f-1,f,g[1]==="+")}_copyStyle(f,g){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const x=this.getRow(f),C=this.getRow(g);C.style=h(x.style),x.eachCell({includeEmpty:p},(T,D)=>{C.getCell(D).style=h(T.style)}),C.height=x.height}duplicateRow(f,g){let p=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const x=this._rows[f-1],C=new Array(g).fill(x.values);this.spliceRows(f+1,p?0:g,...C);for(let T=0;T<g;T++){const D=this._rows[f+T];D.style=x.style,D.height=x.height,x.eachCell({includeEmpty:!0},(q,N)=>{D.getCell(N).style=q.style})}}spliceRows(f,g){const p=f+g;for(var x=arguments.length,C=new Array(x>2?x-2:0),T=2;T<x;T++)C[T-2]=arguments[T];const D=C.length,q=D-g,N=this._rows.length;let P,V;if(q<0)for(f===N&&(this._rows[N-1]=void 0),P=p;P<=N;P++)if(V=this._rows[P-1],V){const W=this.getRow(P+q);W.values=V.values,W.style=V.style,W.height=V.height,V.eachCell({includeEmpty:!0},(L,A)=>{W.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=N;P>=p;P--)if(V=this._rows[P-1],V){const W=this.getRow(P+q);W.values=V.values,W.style=V.style,W.height=V.height,V.eachCell({includeEmpty:!0},(L,A)=>{if(W.getCell(A).style=L.style,L._value.constructor.name==="MergeValue"){const E=this.getRow(L._row._number+D).getCell(A),_=L._value._master,b=this.getRow(_._row._number+D).getCell(_._column._number);E.merge(b)}})}else this._rows[P+q-1]=void 0;for(P=0;P<D;P++){const W=this.getRow(f+P);W.style={},W.values=C[P]}this.workbook.definedNames.spliceRows(this.name,f,g,D)}eachRow(f,g){if(g||(g=f,f=void 0),f&&f.includeEmpty){const p=this._rows.length;for(let x=1;x<=p;x++)g(this.getRow(x),x)}else this._rows.forEach(p=>{p&&p.hasValues&&g(p,p.number)})}getSheetValues(){const f=[];return this._rows.forEach(g=>{g&&(f[g.number]=g.values)}),f}findCell(f,g){const p=o.getAddress(f,g),x=this._rows[p.row-1];return x?x.findCell(p.col):void 0}getCell(f,g){const p=o.getAddress(f,g);return this.getRow(p.row).getCellEx(p)}mergeCells(){for(var f=arguments.length,g=new Array(f),p=0;p<f;p++)g[p]=arguments[p];const x=new a(g);this._mergeCellsInternal(x)}mergeCellsWithoutStyle(){for(var f=arguments.length,g=new Array(f),p=0;p<f;p++)g[p]=arguments[p];const x=new a(g);this._mergeCellsInternal(x,!0)}_mergeCellsInternal(f,g){c.each(this._merges,x=>{if(x.intersects(f))throw new Error("Cannot merge already merged cells")});const p=this.getCell(f.top,f.left);for(let x=f.top;x<=f.bottom;x++)for(let C=f.left;C<=f.right;C++)(x>f.top||C>f.left)&&this.getCell(x,C).merge(p,g);this._merges[p.address]=f}_unMergeMaster(f){const g=this._merges[f.address];if(g){for(let p=g.top;p<=g.bottom;p++)for(let x=g.left;x<=g.right;x++)this.getCell(p,x).unmerge();delete this._merges[f.address]}}get hasMerges(){return c.some(this._merges,Boolean)}unMergeCells(){for(var f=arguments.length,g=new Array(f),p=0;p<f;p++)g[p]=arguments[p];const x=new a(g);for(let C=x.top;C<=x.bottom;C++)for(let T=x.left;T<=x.right;T++){const D=this.findCell(C,T);D&&(D.type===r.ValueType.Merge?this._unMergeMaster(D.master):this._merges[D.address]&&this._unMergeMaster(D))}}fillFormula(f,g,p){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const C=o.decode(f),{top:T,left:D,bottom:q,right:N}=C,P=N-D+1,V=o.encodeAddress(T,D),W=x==="shared";let L;L=typeof p=="function"?p:Array.isArray(p)?Array.isArray(p[0])?(E,_)=>p[E-T][_-D]:(E,_)=>p[(E-T)*P+(_-D)]:()=>{};let A=!0;for(let E=T;E<=q;E++)for(let _=D;_<=N;_++)A?(this.getCell(E,_).value={shareType:x,formula:g,ref:f,result:L(E,_)},A=!1):this.getCell(E,_).value=W?{sharedFormula:V,result:L(E,_)}:L(E,_)}addImage(f,g){const p={type:"image",imageId:f,range:g};this._media.push(new u(this,p))}getImages(){return this._media.filter(f=>f.type==="image")}addBackgroundImage(f){const g={type:"background",imageId:f};this._media.push(new u(this,g))}getBackgroundImageId(){const f=this._media.find(g=>g.type==="background");return f&&f.imageId}protect(f,g){return new Promise(p=>{this.sheetProtection={sheet:!0},g&&"spinCount"in g&&(g.spinCount=Number.isFinite(g.spinCount)?Math.round(Math.max(0,g.spinCount)):1e5),f&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=d.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=g&&"spinCount"in g?g.spinCount:1e5,this.sheetProtection.hashValue=d.convertPasswordToHash(f,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),g&&(this.sheetProtection=Object.assign(this.sheetProtection,g),!f&&"spinCount"in g&&delete this.sheetProtection.spinCount),p()})}unprotect(){this.sheetProtection=null}addTable(f){const g=new s(this,f);return this.tables[f.name]=g,g}getTable(f){return this.tables[f]}removeTable(f){delete this.tables[f]}getTables(){return Object.values(this.tables)}addConditionalFormatting(f){this.conditionalFormattings.push(f)}removeConditionalFormatting(f){typeof f=="number"?this.conditionalFormattings.splice(f,1):this.conditionalFormattings=f instanceof Function?this.conditionalFormattings.filter(f):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(f){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=f}get model(){const f={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(x=>x.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(x=>x.model),conditionalFormattings:this.conditionalFormattings};f.cols=e.toModel(this.columns);const g=f.rows=[],p=f.dimensions=new a;return this._rows.forEach(x=>{const C=x&&x.model;C&&(p.expand(C.number,C.min,C.number,C.max),g.push(C))}),f.merges=[],c.each(this._merges,x=>{f.merges.push(x.range)}),f}_parseRows(f){this._rows=[],f.rows.forEach(g=>{const p=new n(this,g.number);this._rows[p.number-1]=p,p.model=g})}_parseMergeCells(f){c.each(f.mergeCells,g=>{this.mergeCellsWithoutStyle(g)})}set model(f){this.name=f.name,this._columns=e.fromModel(this,f.cols),this._parseRows(f),this._parseMergeCells(f),this.dataValidations=new i(f.dataValidations),this.properties=f.properties,this.pageSetup=f.pageSetup,this.headerFooter=f.headerFooter,this.views=f.views,this.autoFilter=f.autoFilter,this._media=f.media.map(g=>new u(this,g)),this.sheetProtection=f.sheetProtection,this.tables=f.tables.reduce((g,p)=>{const x=new s;return x.model=p,g[p.name]=x,g},{}),this.conditionalFormattings=f.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,v,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")},o=t("./doc/enums");Object.keys(o).forEach(a=>{c[a]=o[a]}),v.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,v,m){const c=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");m.bufferToString=function(o){return typeof o=="string"?o:c?c.decode(o):o.toString()}},{}],17:[function(t,v,m){const c=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:o}=t("buffer");m.stringToBuffer=function(a){return typeof a!="string"?a:c?o.from(c.encode(a).buffer):o.from(a)}},{buffer:220}],18:[function(t,v,m){const c=t("./under-dash"),o=t("./col-cache");v.exports=class{constructor(a){this.template=a,this.sheets={}}addCell(a){this.addCellEx(o.decodeEx(a))}getCell(a){return this.findCellEx(o.decodeEx(a),!0)}findCell(a){return this.findCellEx(o.decodeEx(a),!1)}findCellAt(a,n,e){const r=this.sheets[a],u=r&&r[n];return u&&u[e]}addCellEx(a){if(a.top)for(let n=a.top;n<=a.bottom;n++)for(let e=a.left;e<=a.right;e++)this.getCellAt(a.sheetName,n,e);else this.findCellEx(a,!0)}getCellEx(a){return this.findCellEx(a,!0)}findCellEx(a,n){const e=this.findSheet(a,n),r=this.findSheetRow(e,a,n);return this.findRowCell(r,a,n)}getCellAt(a,n,e){const r=this.sheets[a]||(this.sheets[a]=[]),u=r[n]||(r[n]=[]);return u[e]||(u[e]={sheetName:a,address:o.n2l(e)+n,row:n,col:e})}removeCellEx(a){const n=this.findSheet(a);if(!n)return;const e=this.findSheetRow(n,a);e&&delete e[a.col]}forEachInSheet(a,n){const e=this.sheets[a];e&&e.forEach((r,u)=>{r&&r.forEach((s,i)=>{s&&n(s,u,i)})})}forEach(a){c.each(this.sheets,(n,e)=>{this.forEachInSheet(e,a)})}map(a){const n=[];return this.forEach(e=>{n.push(a(e))}),n}findSheet(a,n){const e=a.sheetName;return this.sheets[e]?this.sheets[e]:n?this.sheets[e]=[]:void 0}findSheetRow(a,n,e){const{row:r}=n;return a&&a[r]?a[r]:e?a[r]=[]:void 0}findRowCell(a,n,e){const{col:r}=n;return a&&a[r]?a[r]:e?a[r]=this.template?Object.assign(n,JSON.parse(JSON.stringify(this.template))):n:void 0}spliceRows(a,n,e,r){const u=this.sheets[a];if(u){const s=[];for(let i=0;i<r;i++)s.push([]);u.splice(n,e,...s)}}spliceColumns(a,n,e,r){const u=this.sheets[a];if(u){const s=[];for(let i=0;i<r;i++)s.push(null);c.each(u,i=>{i.splice(n,e,...s)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,v,m){const c=/^[A-Z]+\d+$/,o={_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:a=>a<=26?1:a<=676?2:3,_fill(a){let n,e,r,u,s,i=1;if(a>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&a>=1){for(;i<=26;)n=this._dictionary[i-1],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=1}if(this._l2nFill<2&&a>=2){for(i=27;i<=702;)e=i-27,r=e%26,u=Math.floor(e/26),n=this._dictionary[u]+this._dictionary[r],this._n2l[i]=n,this._l2n[n]=i,i++;this._l2nFill=2}if(this._l2nFill<3&&a>=3){for(i=703;i<=16384;)e=i-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[i]=n,this._l2n[n]=i,i++;this._l2nFill=3}},l2n(a){if(this._l2n[a]||this._fill(a.length),!this._l2n[a])throw new Error("Out of bounds. Invalid column letter: "+a);return this._l2n[a]},n2l(a){if(a<1||a>16384)throw new Error(a+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[a]||this._fill(this._level(a)),this._n2l[a]},_hash:{},validateAddress(a){if(!c.test(a))throw new Error("Invalid Address: "+a);return!0},decodeAddress(a){const n=a.length<5&&this._hash[a];if(n)return n;let e=!1,r="",u=0,s=!1,i="",d=0;for(let f,g=0;g<a.length;g++)if(f=a.charCodeAt(g),!s&&f>=65&&f<=90)e=!0,r+=a[g],u=26*u+f-64;else if(f>=48&&f<=57)s=!0,i+=a[g],d=10*d+f-48;else if(s&&e&&f!==36)break;if(e){if(u>16384)throw new Error("Out of bounds. Invalid column letter: "+r)}else u=void 0;s||(d=void 0);const h={address:a=r+i,col:u,row:d,$col$row:`$${r}$${i}`};return u<=100&&d<=100&&(this._hash[a]=h,this._hash[h.$col$row]=h),h},getAddress(a,n){if(n){const e=this.n2l(n)+a;return this.decodeAddress(e)}return this.decodeAddress(a)},decode(a){const n=a.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(a)},decodeEx(a){const n=a.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),e=n[1]||n[2],r=n[3],u=r.split(":");if(u.length>1){let i=this.decodeAddress(u[0]),d=this.decodeAddress(u[1]);const h=Math.min(i.row,d.row),f=Math.min(i.col,d.col),g=Math.max(i.row,d.row),p=Math.max(i.col,d.col);return i=this.n2l(f)+h,d=this.n2l(p)+g,{top:h,left:f,bottom:g,right:p,sheetName:e,tl:{address:i,col:f,row:h,$col$row:`$${this.n2l(f)}$${h}`,sheetName:e},br:{address:d,col:p,row:g,$col$row:`$${this.n2l(p)}$${g}`,sheetName:e},dimensions:`${i}:${d}`}}if(r.startsWith("#"))return e?{sheetName:e,error:r}:{error:r};const s=this.decodeAddress(r);return e?{sheetName:e,...s}:s},encodeAddress:(a,n)=>o.n2l(n)+a,encode(){switch(arguments.length){case 2:return o.encodeAddress(arguments[0],arguments[1]);case 4:return`${o.encodeAddress(arguments[0],arguments[1])}:${o.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(a,n){const[e,r,,u,s]=a,[i,d]=n;return i>=e&&i<=u&&d>=r&&d<=s}};v.exports=o},{}],20:[function(t,v,m){const c=(a,n)=>({...a,...n.reduce((e,r)=>(a[r]&&(e[r]={...a[r]}),e),{})}),o=function(a,n,e){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];a[e]&&(n[e]=c(a[e],r))};m.copyStyle=a=>{if(!a)return a;if(n=a,Object.keys(n).length===0)return{};var n;const e={...a};return o(a,e,"font",["color"]),o(a,e,"alignment"),o(a,e,"protection"),a.border&&(o(a,e,"border"),o(a.border,e.border,"top",["color"]),o(a.border,e.border,"left",["color"]),o(a.border,e.border,"bottom",["color"]),o(a.border,e.border,"right",["color"]),o(a.border,e.border,"diagonal",["color"])),a.fill&&(o(a,e,"fill",["fgColor","bgColor","center"]),a.fill.stops&&(e.fill.stops=a.fill.stops.map(r=>c(r,["color"])))),e}},{}],21:[function(t,v,m){(function(c){(function(){const o=t("crypto"),a={hash(n){const e=o.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(),o.getHashes().indexOf(e)<0)throw new Error(`Hash algorithm '${e}' not supported!`);const s=c.from(n,"utf16le");let i=this.hash(e,c.from(r,"base64"),s);for(let d=0;d<u;d++){const h=c.alloc(4);h.writeUInt32LE(d,0),i=this.hash(e,i,h)}return i.toString("base64")},randomBytes:n=>o.randomBytes(n)};v.exports=a}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,v,m){const{SaxesParser:c}=t("saxes"),{PassThrough:o}=t("readable-stream"),{bufferToString:a}=t("./browser-buffer-decode");v.exports=async function*(n){n.pipe&&!n[Symbol.asyncIterator]&&(n=n.pipe(new o));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(a(s)),r)throw r;yield u,u=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,v,m){const c=t("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;v.exports={slideFormula:function(n,e,r){const u=c.decode(e),s=c.decode(r);return n.replace(o,(i,d,h,f,g)=>{if(g)return i;const p=a.exec(f);if(p){const x=p[1],C=p[2].toUpperCase(),T=p[3],D=p[4];if(C.length>3||C.length===3&&C>"XFD")return i;let q=c.l2n(C),N=parseInt(D,10);return x||(q+=s.col-u.col),T||(N+=s.row-u.row),(d||"")+(x||"")+c.n2l(q)+(T||"")+N}return i})}}},{"./col-cache":19}],24:[function(t,v,m){(function(c,o){(function(){const a=t("readable-stream"),n=t("./utils"),e=t("./string-buf");class r{constructor(f,g){this._data=f,this._encoding=g}get length(){return this.toBuffer().length}copy(f,g,p,x){return this.toBuffer().copy(f,g,p,x)}toBuffer(){return this._buffer||(this._buffer=o.from(this._data,this._encoding)),this._buffer}}class u{constructor(f){this._data=f}get length(){return this._data.length}copy(f,g,p,x){return this._data._buf.copy(f,g,p,x)}toBuffer(){return this._data.toBuffer()}}class s{constructor(f){this._data=f}get length(){return this._data.length}copy(f,g,p,x){this._data.copy(f,g,p,x)}toBuffer(){return this._data}}class i{constructor(f){this.size=f,this.buffer=o.alloc(f),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const f=o.alloc(this.iWrite-this.iRead);return this.buffer.copy(f,0,this.iRead,this.iWrite),f}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(f){let g;return f===0?null:f===void 0||f>=this.length?(g=this.toBuffer(),this.iRead=this.iWrite,g):(g=o.alloc(f),this.buffer.copy(g,0,this.iRead,f),this.iRead+=f,g)}write(f,g,p){const x=Math.min(p,this.size-this.iWrite);return f.copy(this.buffer,this.iWrite,g,g+x),this.iWrite+=x,x}}const d=function(h){h=h||{},this.bufSize=h.bufSize||1048576,this.buffers=[],this.batch=h.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};n.inherits(d,a.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return o.concat(this.buffers.map(h=>h.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const f=this.buffers[this.buffers.length-1];if(!f.full)return f}const h=new i(this.bufSize);return this.buffers.push(h),h},async _pipe(h){await Promise.all(this.pipes.map(function(f){return new Promise(g=>{f.write(h.toBuffer(),()=>{g()})})}))},_writeToBuffers(h){let f=0;const g=h.length;for(;f<g;)f+=this._getWritableBuffer().write(h,f,g-f)},async write(h,f,g){let p;if(f instanceof Function&&(g=f,f="utf8"),g=g||n.nop,h instanceof e)p=new u(h);else if(h instanceof o)p=new s(h);else{if(!(typeof h=="string"||h instanceof String||h instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");p=new r(h,f)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(p);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(p),c.nextTick(g)):(await this._pipe(p),g());else this.paused||this.emit("data",p.toBuffer()),this._writeToBuffers(p),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(h,f,g){const p=x=>{x?g(x):(this._flush(),this.pipes.forEach(C=>{C.end()}),this.emit("finish"))};h?this.write(h,f,p):p()},read(h){let f;if(h){for(f=[];h&&this.buffers.length&&!this.buffers[0].eod;){const g=this.buffers[0],p=g.read(h);h-=p.length,f.push(p),g.eod&&g.full&&this.buffers.shift()}return o.concat(f)}return f=this.buffers.map(g=>g.toBuffer()).filter(Boolean),this.buffers=[],o.concat(f)},setEncoding(h){this.encoding=h},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(h){this.pipes.push(h),!this.paused&&this.buffers.length&&this.end()},unpipe(h){this.pipes=this.pipes.filter(f=>f!==h)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),v.exports=d}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,v,m){(function(c){(function(){v.exports=class{constructor(o){this._buf=c.alloc(o&&o.size||16384),this._encoding=o&&o.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(o){o=o||0,this._buffer=void 0,this._inPos=o}_grow(o){let a=2*this._buf.length;for(;a<o;)a*=2;const n=c.alloc(a);this._buf.copy(n,0),this._buf=n}addText(o){this._buffer=void 0;let a=this._inPos+this._buf.write(o,this._inPos,this._encoding);for(;a>=this._buf.length-4;)this._grow(this._inPos+o.length),a=this._inPos+this._buf.write(o,this._inPos,this._encoding);this._inPos=a}addStringBuf(o){o.length&&(this._buffer=void 0,this.length+o.length>this.capacity&&this._grow(this.length+o.length),o._buf.copy(this._buf,this._inPos,0,o.length),this._inPos+=o.length)}}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,v,m){const{toString:c}=Object.prototype,o=/["&<>]/,a={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),i=Array.isArray(e);let d;if(r!==u)return!1;switch(typeof n){case"object":if(s||i)return!(!s||!i)&&n.length===e.length&&n.every((h,f)=>{const g=e[f];return a.isEqual(h,g)});if(n===null||e===null)return n===e;if(d=Object.keys(n),Object.keys(e).length!==d.length)return!1;for(const h of d)if(!e.hasOwnProperty(h))return!1;return a.every(n,(h,f)=>{const g=e[f];return a.isEqual(h,g)});default:return n===e}},escapeHtml(n){const e=o.exec(n);if(!e)return n;let r="",u="",s=0,i=e.index;for(;i<n.length;i++){switch(n.charAt(i)){case'"':u=""";break;case"&":u="&";break;case"'":u="'";break;case"<":u="<";break;case">":u=">";break;default:continue}s!==i&&(r+=n.substring(s,i)),s=i+1,r+=u}return s!==i?r+n.substring(s,i):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 i(d,h){r=n[h],s=Array.isArray(d),a.isObject(d)||s?(s?(s=!1,u=r&&Array.isArray(r)?r:[]):u=r&&a.isObject(r)?r:{},n[h]=a.deepMerge(u,d)):a.isUndefined(d)||(n[h]=d)}for(let d=0;d<e;d++)a.each(arguments[d],i);return n}};v.exports=a},{}],27:[function(t,v,m){(function(c,o){(function(){const a=t("fs"),n=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:r=>new Promise(u=>{c.setImmediate?o(()=>{u(r)}):setTimeout(()=>{u(r)},1)}),inherits:function(r,u,s,i){r.super_=u,i||(i=s,s=null),s&&Object.keys(s).forEach(h=>{Object.defineProperty(r,h,Object.getOwnPropertyDescriptor(s,h))});const d={constructor:{value:r,enumerable:!1,writable:!1,configurable:!0}};i&&Object.keys(i).forEach(h=>{d[h]=Object.getOwnPropertyDescriptor(i,h)}),r.prototype=Object.create(u.prototype,d)},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="",i="",d=0,h=u.index;for(;h<r.length;h++){const f=r.charCodeAt(h);switch(f){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;case 127:i="";break;default:if(f<=31&&(f<=8||f>=11&&f!==13)){i="";break}continue}d!==h&&(s+=r.substring(d,h)),d=h+1,i&&(s+=i)}return d!==h?s+r.substring(d,h):s},xmlDecode:r=>r.replace(/&([a-z]*);/g,u=>{switch(u){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":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=>{a.access(r,a.constants.F_OK,s=>{u(!s)})})},toIsoDateString:r=>r.toIsoString().subsstr(0,10),parseBoolean:r=>r===!0||r==="true"||r===1||r==="1"};v.exports=e}).call(this)}).call(this,typeof lt<"u"?lt:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,v,m){const c=t("./under-dash"),o=t("./utils");function a(r,u,s){r.push(` ${u}="${o.xmlEncode(s.toString())}"`)}function n(r,u){if(u){const s=[];c.each(u,(i,d)=>{i!==void 0&&a(s,d,i)}),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 i=this.tos,d=this._xml;i&&this.open&&d.push(">"),this._stack.push(u),d.push("<"),d.push(u),n(d,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&&a(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(o.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,i){this.openNode(u,s),i!==void 0&&this.writeText(i),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"},v.exports=e},{"./under-dash":26,"./utils":27}],29:[function(t,v,m){(function(c){(function(){const o=t("events"),a=t("jszip"),n=t("./stream-buf"),{stringToBuffer:e}=t("./browser-buffer-encode");class r extends o.EventEmitter{constructor(s){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},s),this.zip=new a,this.stream=new n}append(s,i){i.hasOwnProperty("base64")&&i.base64?this.zip.file(i.name,s,{base64:!0}):(c.browser&&typeof s=="string"&&(s=e(s)),this.zip.file(i.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,i){return this.stream.pipe(s,i)}unpipe(s){return this.stream.unpipe(s)}unshift(s){return this.stream.unshift(s)}wrap(s){return this.stream.wrap(s)}}v.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,v,m){v.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,v,m){v.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,v,m){const c=t("../../utils/parse-sax"),o=t("../../utils/xml-stream");class a{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 a?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 o;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 a.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 a.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 a.toAttribute(e,r,u)}static toFloatValue(e,r){return e===void 0?r:parseFloat(e)}}v.exports=a},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(t,v,m){const c=t("../base-xform"),o=t("../../../utils/col-cache");function a(e){try{return o.decodeEx(e),!0}catch{return!1}}function n(e){const r=[];let u=!1,s="";return e.split(",").forEach(i=>{if(!i)return;const d=(i.match(/'/g)||[]).length;if(!d)return void(u?s+=i+",":a(i)&&r.push(i));const h=d%2==0;!u&&h&&a(i)?r.push(i):u&&!h?(u=!1,a(s+i)&&r.push(s+i),s=""):(u=!0,s+=i+",")}),r}v.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,v,m){const c=t("../../../utils/utils"),o=t("../base-xform");v.exports=class extends o{render(a,n){a.leafNode("sheet",{sheetId:n.id,name:n.name,state:n.state,"r:id":n.rId})}parseOpen(a){return a.name==="sheet"&&(this.model={name:c.xmlDecode(a.attributes.name),id:parseInt(a.attributes.sheetId,10),state:a.attributes.state,rId:a.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{render(o,a){o.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:a.fullCalcOnLoad?1:void 0})}parseOpen(o){return o.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{render(o,a){o.leafNode("workbookPr",{date1904:a.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(o){return o.name==="workbookPr"&&(this.model={date1904:o.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{render(o,a){const n={xWindow:a.x||0,yWindow:a.y||0,windowWidth:a.width||12e3,windowHeight:a.height||24e3,firstSheet:a.firstSheet,activeTab:a.activeTab};a.visibility&&a.visibility!=="visible"&&(n.visibility=a.visibility),o.leafNode("workbookView",n)}parseOpen(o){if(o.name==="workbookView"){const a=this.model={},n=function(r,u,s){const i=u!==void 0?a[r]=u:s;i!==void 0&&(a[r]=i)},e=function(r,u,s){const i=u!==void 0?a[r]=parseInt(u,10):s;i!==void 0&&(a[r]=i)};return e("x",o.attributes.xWindow,0),e("y",o.attributes.yWindow,0),e("width",o.attributes.windowWidth,25e3),e("height",o.attributes.windowHeight,1e4),n("visibility",o.attributes.visibility,"visible"),e("activeTab",o.attributes.activeTab,void 0),e("firstSheet",o.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(t,v,m){const c=t("../../../utils/under-dash"),o=t("../../../utils/col-cache"),a=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"),i=t("./workbook-view-xform"),d=t("./workbook-properties-xform"),h=t("./workbook-calc-properties-xform");class f extends n{constructor(){super(),this.map={fileVersion:f.STATIC_XFORMS.fileVersion,workbookPr:new d,bookViews:new r({tag:"bookViews",count:!1,childXform:new i}),sheets:new r({tag:"sheets",count:!1,childXform:new s}),definedNames:new r({tag:"definedNames",count:!1,childXform:new u}),calcPr:new h}}prepare(p){p.sheets=p.worksheets;const x=[];let C=0;p.sheets.forEach(T=>{if(T.pageSetup&&T.pageSetup.printArea&&T.pageSetup.printArea.split("&&").forEach(D=>{const q=D.split(":"),N={name:"_xlnm.Print_Area",ranges:[`'${T.name}'!$${q[0]}:$${q[1]}`],localSheetId:C};x.push(N)}),T.pageSetup&&(T.pageSetup.printTitlesRow||T.pageSetup.printTitlesColumn)){const D=[];if(T.pageSetup.printTitlesColumn){const N=T.pageSetup.printTitlesColumn.split(":");D.push(`'${T.name}'!$${N[0]}:$${N[1]}`)}if(T.pageSetup.printTitlesRow){const N=T.pageSetup.printTitlesRow.split(":");D.push(`'${T.name}'!$${N[0]}:$${N[1]}`)}const q={name:"_xlnm.Print_Titles",ranges:D,localSheetId:C};x.push(q)}C++}),x.length&&(p.definedNames=p.definedNames.concat(x)),(p.media||[]).forEach((T,D)=>{T.name=T.type+(D+1)})}render(p,x){p.openXml(a.StdDocAttributes),p.openNode("workbook",f.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(p),this.map.workbookPr.render(p,x.properties),this.map.bookViews.render(p,x.views),this.map.sheets.render(p,x.sheets),this.map.definedNames.render(p,x.definedNames),this.map.calcPr.render(p,x.calcProperties),p.closeNode()}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case"workbook":return!0;default:return this.parser=this.map[p.name],this.parser&&this.parser.parseOpen(p),!0}}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser)return this.parser.parseClose(p)||(this.parser=void 0),!0;switch(p){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(p){const x=(p.workbookRels||[]).reduce((N,P)=>(N[P.Id]=P,N),{}),C=[];let T,D=0;(p.sheets||[]).forEach(N=>{const P=x[N.rId];P&&(T=p.worksheetHash["xl/"+P.Target.replace(/^(\s|\/xl\/)+/,"")],T&&(T.name=N.name,T.id=N.id,T.state=N.state,C[D++]=T))});const q=[];c.each(p.definedNames,N=>{if(N.name==="_xlnm.Print_Area"){if(T=C[N.localSheetId],T){T.pageSetup||(T.pageSetup={});const P=o.decodeEx(N.ranges[0]);T.pageSetup.printArea=T.pageSetup.printArea?`${T.pageSetup.printArea}&&${P.dimensions}`:P.dimensions}}else if(N.name==="_xlnm.Print_Titles"){if(T=C[N.localSheetId],T){T.pageSetup||(T.pageSetup={});const P=N.ranges.join(","),V=/\$/g,W=/\$\d+:\$\d+/,L=P.match(W);if(L&&L.length){const _=L[0];T.pageSetup.printTitlesRow=_.replace(V,"")}const A=/\$[A-Z]+:\$[A-Z]+/,E=P.match(A);if(E&&E.length){const _=E[0];T.pageSetup.printTitlesColumn=_.replace(V,"")}}}else q.push(N)}),p.definedNames=q,p.media.forEach((N,P)=>{N.index=P})}}f.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"},f.STATIC_XFORMS={fileVersion:new e({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},v.exports=f},{"../../../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,v,m){const c=t("../strings/rich-text-xform"),o=t("../../../utils/utils"),a=t("../base-xform"),n=v.exports=function(e){this.model=e};o.inherits(n,a,{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,v,m){const c=t("../../../utils/xml-stream"),o=t("../../../utils/utils"),a=t("../base-xform"),n=t("./comment-xform"),e=v.exports=function(){this.map={comment:new n}};o.inherits(e,a,{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,v,m){const c=t("../../base-xform");v.exports=class extends c{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,a,n){(a===n[2]||this.tag==="x:SizeWithCells"&&a===n[1])&&o.leafNode(this.tag)}parseOpen(o){switch(o.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,v,m){const c=t("../../base-xform");v.exports=class extends c{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(o){switch(o.name){case this.tag:return this.text="",!0;default:return!1}}parseText(o){this.text=o}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"x:Anchor"}getAnchorRect(o){const a=Math.floor(o.left),n=Math.floor(68*(o.left-a)),e=Math.floor(o.top),r=Math.floor(18*(o.top-e)),u=Math.floor(o.right),s=Math.floor(68*(o.right-u)),i=Math.floor(o.bottom);return[a,n,e,r,u,s,i,Math.floor(18*(o.bottom-i))]}getDefaultRect(o){const a=o.col,n=Math.max(o.row-2,0);return[a,6,n,14,a+2,2,n+4,16]}render(o,a){const n=a.anchor?this.getAnchorRect(a.anchor):this.getDefaultRect(a.refAddress);o.leafNode("x:Anchor",null,n.join(", "))}parseOpen(o){switch(o.name){case this.tag:return this.text="",!0;default:return!1}}parseText(o){this.text=o}parseClose(){return!1}}},{"../base-xform":32}],44:[function(t,v,m){const c=t("../base-xform"),o=t("./vml-anchor-xform"),a=t("./style/vml-protection-xform"),n=t("./style/vml-position-xform"),e=["twoCells","oneCells","absolute"];v.exports=class extends c{constructor(){super(),this.map={"x:Anchor":new o,"x:Locked":new a({tag:"x:Locked"}),"x:LockText":new a({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:i}=u.note;r.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(r,i,e),this.map["x:SizeWithCells"].render(r,i,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,v,m){const c=t("../../../utils/xml-stream"),o=t("../base-xform"),a=t("./vml-shape-xform");class n extends o{constructor(){super(),this.map={"v:shape":new a}}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,i)=>{this.map["v:shape"].render(r,s,i)}),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"},v.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(t,v,m){const c=t("../base-xform"),o=t("./vml-textbox-xform"),a=t("./vml-client-data-xform");class n extends c{constructor(){super(),this.map={"v:textbox":new o,"x:ClientData":new a}}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}),v.exports=n},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"v:textbox"}conversionUnit(o,a,n){return`${parseFloat(o)*a.toFixed(2)}${n}`}reverseConversionUnit(o){return(o||"").split(",").map(a=>Number(parseFloat(this.conversionUnit(parseFloat(a),.1,"")).toFixed(2)))}render(o,a){const n={style:"mso-direction-alt:auto"};if(a&&a.note){let{inset:e}=a.note&&a.note.margins;Array.isArray(e)&&(e=e.map(r=>this.conversionUnit(r,10,"mm")).join(",")),e&&(n.inset=e)}o.openNode("v:textbox",n),o.leafNode("div",{style:"text-align:left"}),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:return this.model={inset:this.reverseConversionUnit(o.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(t,v,m){const c=t("./base-xform");v.exports=class extends c{createNewModel(o){return{}}parseOpen(o){return this.parser=this.parser||this.map[o.name],this.parser?(this.parser.parseOpen(o),!0):o.name===this.tag&&(this.model=this.createNewModel(o),!0)}parseText(o){this.parser&&this.parser.parseText(o)}onParserClose(o,a){this.model[o]=a.model}parseClose(o){return this.parser?(this.parser.parseClose(o)||(this.onParserClose(o,this.parser),this.parser=void 0),!0):o!==this.tag}}},{"./base-xform":32}],49:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{render(o,a){o.openNode("HeadingPairs"),o.openNode("vt:vector",{size:2,baseType:"variant"}),o.openNode("vt:variant"),o.leafNode("vt:lpstr",void 0,"Worksheets"),o.closeNode(),o.openNode("vt:variant"),o.leafNode("vt:i4",void 0,a.length),o.closeNode(),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="HeadingPairs"}parseText(){}parseClose(o){return o!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{render(o,a){o.openNode("TitlesOfParts"),o.openNode("vt:vector",{size:a.length,baseType:"lpstr"}),a.forEach(n=>{o.leafNode("vt:lpstr",void 0,n.name)}),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="TitlesOfParts"}parseText(){}parseClose(o){return o!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(t,v,m){const c=t("../../../utils/xml-stream"),o=t("../base-xform"),a=t("../simple/string-xform"),n=t("./app-heading-pairs-xform"),e=t("./app-titles-of-parts-xform");class r extends o{constructor(){super(),this.map={Company:new a({tag:"Company"}),Manager:new a({tag:"Manager"}),HeadingPairs:new n,TitleOfParts:new e}}render(s,i){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,i.worksheets),this.map.TitleOfParts.render(s,i.worksheets),this.map.Company.render(s,i.company||""),this.map.Manager.render(s,i.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"},v.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,v,m){const c=t("../../../utils/xml-stream"),o=t("../base-xform");class a extends o{render(e,r){e.openXml(c.StdDocAttributes),e.openNode("Types",a.PROPERTY_ATTRIBUTES);const u={};(r.media||[]).forEach(s=>{if(s.type==="image"){const i=s.extension;u[i]||(u[i]=!0,e.leafNode("Default",{Extension:i,ContentType:"image/"+i}))}}),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 i=`/xl/worksheets/sheet${s.id}.xml`;e.leafNode("Override",{PartName:i,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:i}=s;e.leafNode("Override",{PartName:`/xl/${i}.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}}a.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},v.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(t,v,m){const c=t("../../../utils/xml-stream"),o=t("../base-xform"),a=t("../simple/date-xform"),n=t("../simple/string-xform"),e=t("../simple/integer-xform");class r extends o{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 a({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 a({tag:"dcterms:created",attrs:r.DateAttrs,format:r.DateFormat}),"dcterms:modified":new a({tag:"dcterms:modified",attrs:r.DateAttrs,format:r.DateFormat})}}render(s,i){s.openXml(c.StdDocAttributes),s.openNode("cp:coreProperties",r.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(s,i.creator),this.map["dc:title"].render(s,i.title),this.map["dc:subject"].render(s,i.subject),this.map["dc:description"].render(s,i.description),this.map["dc:identifier"].render(s,i.identifier),this.map["dc:language"].render(s,i.language),this.map["cp:keywords"].render(s,i.keywords),this.map["cp:category"].render(s,i.category),this.map["cp:lastModifiedBy"].render(s,i.lastModifiedBy),this.map["cp:lastPrinted"].render(s,i.lastPrinted),this.map["cp:revision"].render(s,i.revision),this.map["cp:version"].render(s,i.version),this.map["cp:contentStatus"].render(s,i.contentStatus),this.map["cp:contentType"].render(s,i.contentType),this.map["dcterms:created"].render(s,i.created),this.map["dcterms:modified"].render(s,i.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"},v.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{render(o,a){o.leafNode("Relationship",a)}parseOpen(o){switch(o.name){case"Relationship":return this.model=o.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(t,v,m){const c=t("../../../utils/xml-stream"),o=t("../base-xform"),a=t("./relationship-xform");class n extends o{constructor(){super(),this.map={Relationship:new a}}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"},v.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset(),this.model={range:{editAs:o.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(o){this.parser&&this.parser.parseText(o)}reconcilePicture(o,a){if(o&&o.rId){const n=a.rels[o.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(n){const e=n[1],r=a.mediaIndex[e];return a.media[r]}}}}},{"../base-xform":32}],57:[function(t,v,m){const c=t("../base-xform"),o=t("./blip-xform");v.exports=class extends c{constructor(){super(),this.map={"a:blip":new o}}get tag(){return"xdr:blipFill"}render(a,n){a.openNode(this.tag),this.map["a:blip"].render(a,n),a.openNode("a:stretch"),a.leafNode("a:fillRect"),a.closeNode(),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(){}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"a:blip"}render(o,a){o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":a.rId,cstate:"print"})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"xdr:cNvPicPr"}render(o){o.openNode(this.tag),o.leafNode("a:picLocks",{noChangeAspect:"1"}),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(t,v,m){const c=t("../base-xform"),o=t("./hlink-click-xform"),a=t("./ext-lst-xform");v.exports=class extends c{constructor(){super(),this.map={"a:hlinkClick":new o,"a:extLst":new a}}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,v,m){const c=t("../base-xform"),o=t("../simple/integer-xform");v.exports=class extends c{constructor(a){super(),this.tag=a.tag,this.map={"xdr:col":new o({tag:"xdr:col",zero:!0}),"xdr:colOff":new o({tag:"xdr:colOff",zero:!0}),"xdr:row":new o({tag:"xdr:row",zero:!0}),"xdr:rowOff":new o({tag:"xdr:rowOff",zero:!0})}}render(a,n){a.openNode(this.tag),this.map["xdr:col"].render(a,n.nativeCol),this.map["xdr:colOff"].render(a,n.nativeColOff),this.map["xdr:row"].render(a,n.nativeRow),this.map["xdr:rowOff"].render(a,n.nativeRowOff),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){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,v,m){const c=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),a=t("../base-xform"),n=t("./two-cell-anchor-xform"),e=t("./one-cell-anchor-xform");class r extends a{constructor(){super(),this.map={"xdr:twoCellAnchor":new n,"xdr:oneCellAnchor":new e}}prepare(s){s.anchors.forEach((i,d)=>{i.anchorType=function(h){return(typeof h.range=="string"?c.decode(h.range):h.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(i),this.map[i.anchorType].prepare(i,{index:d})})}get tag(){return"xdr:wsDr"}render(s,i){s.openXml(o.StdDocAttributes),s.openNode(this.tag,r.DRAWING_ATTRIBUTES),i.anchors.forEach(d=>{this.map[d.anchorType].render(s,d)}),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,i){s.anchors.forEach(d=>{d.br?this.map["xdr:twoCellAnchor"].reconcile(d,i):this.map["xdr:oneCellAnchor"].reconcile(d,i)})}}r.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},v.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,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"a:extLst"}render(o){o.openNode(this.tag),o.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),o.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),o.closeNode(),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{constructor(o){super(),this.tag=o.tag,this.map={}}render(o,a){o.openNode(this.tag);const n=Math.floor(9525*a.width),e=Math.floor(9525*a.height);o.addAttribute("cx",n),o.addAttribute("cy",e),o.closeNode()}parseOpen(o){return o.name===this.tag&&(this.model={width:parseInt(o.attributes.cx||"0",10)/9525,height:parseInt(o.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"a:hlinkClick"}render(o,a){a.hyperlinks&&a.hyperlinks.rId&&o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":a.hyperlinks.rId,tooltip:a.hyperlinks.tooltip})}parseOpen(o){switch(o.name){case this.tag:return this.model={hyperlinks:{rId:o.attributes["r:id"],tooltip:o.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(t,v,m){const c=t("../base-xform"),o=t("./c-nv-pr-xform"),a=t("./c-nv-pic-pr-xform");v.exports=class extends c{constructor(){super(),this.map={"xdr:cNvPr":new o,"xdr:cNvPicPr":new a}}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,v,m){const c=t("./base-cell-anchor-xform"),o=t("../static-xform"),a=t("./cell-position-xform"),n=t("./ext-xform"),e=t("./pic-xform");v.exports=class extends c{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:ext":new n({tag:"xdr:ext"}),"xdr:pic":new e,"xdr:clientData":new o({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,v,m){const c=t("../base-xform"),o=t("../static-xform"),a=t("./blip-fill-xform"),n=t("./nv-pic-pr-xform"),e=t("./sp-pr");v.exports=class extends c{constructor(){super(),this.map={"xdr:nvPicPr":new n,"xdr:blipFill":new a,"xdr:spPr":new o(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,v,m){v.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,v,m){const c=t("./base-cell-anchor-xform"),o=t("../static-xform"),a=t("./cell-position-xform"),n=t("./pic-xform");v.exports=class extends c{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:to":new a({tag:"xdr:to"}),"xdr:pic":new n,"xdr:clientData":new o({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,v,m){const c=t("./base-xform");v.exports=class extends c{constructor(o){super(),this.tag=o.tag,this.always=!!o.always,this.count=o.count,this.empty=o.empty,this.$count=o.$count||"count",this.$=o.$,this.childXform=o.childXform,this.maxItems=o.maxItems}prepare(o,a){const{childXform:n}=this;o&&o.forEach((e,r)=>{a.index=r,n.prepare(e,a)})}render(o,a){if(this.always||a&&a.length){o.openNode(this.tag,this.$),this.count&&o.addAttribute(this.$count,a&&a.length||0);const{childXform:n}=this;(a||[]).forEach((e,r)=>{n.render(o,e,r)}),o.closeNode()}else this.empty&&o.leafNode(this.tag)}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(o)&&(this.parser=this.childXform,!0)}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser){if(!this.parser.parseClose(o)&&(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(o,a){if(o){const{childXform:n}=this;o.forEach(e=>{n.reconcile(e,a)})}}}},{"./base-xform":32}],72:[function(t,v,m){const c=t("../../../utils/col-cache"),o=t("../base-xform");v.exports=class extends o{get tag(){return"autoFilter"}render(a,n){if(n)if(typeof n=="string")a.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&&a.leafNode("autoFilter",{ref:`${r}:${u}`})}}parseOpen(a){a.name==="autoFilter"&&(this.model=a.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(t,v,m){const c=t("../../../utils/utils"),o=t("../base-xform"),a=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")}v.exports=class extends o{constructor(){super(),this.richTextXForm=new e}get tag(){return"c"}prepare(u,s){const i=s.styles.addStyleModel(u.style||{},function(d){switch(d.type){case n.ValueType.Formula:return r(d.result);default:return d.type}}(u));switch(i&&(u.styleId=i),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 d=s.formulae[u.sharedFormula];if(!d)throw new Error("Shared Formula master must exist above and or left of clone for cell "+u.address);d.si===void 0?(d.shareType="shared",d.si=s.siFormulae++,d.range=new a(d.address,u.address)):d.range&&d.range.expandToAddress(u.address),u.si=d.si}}}renderFormula(u,s){let i=null;switch(s.shareType){case"shared":i={t:"shared",ref:s.ref||s.range.range,si:s.si};break;case"array":i={t:"array",ref:s.ref};break;default:s.si!==void 0&&(i={t:"shared",si:s.si})}switch(r(s.result)){case n.ValueType.Null:u.leafNode("f",i,s.formula);break;case n.ValueType.String:u.addAttribute("t","str"),u.leafNode("f",i,s.formula),u.leafNode("v",null,s.result);break;case n.ValueType.Number:u.leafNode("f",i,s.formula),u.leafNode("v",null,s.result);break;case n.ValueType.Boolean:u.addAttribute("t","b"),u.leafNode("f",i,s.formula),u.leafNode("v",null,s.result?1:0);break;case n.ValueType.Error:u.addAttribute("t","e"),u.leafNode("f",i,s.formula),u.leafNode("v",null,s.result.error);break;case n.ValueType.Date:u.leafNode("f",i,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(i=>{this.richTextXForm.render(u,i)}),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 i=u.styleId&&s.styles&&s.styles.getStyleModel(u.styleId);switch(i&&(u.style=i),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:i&&c.isDateFmt(i.numFmt)&&(u.type=n.ValueType.Date,u.value=c.excelToDate(u.value,s.date1904));break;case n.ValueType.Formula:u.result!==void 0&&i&&c.isDateFmt(i.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 d=s.hyperlinkMap[u.address];d&&(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=d);const h=s.commentsMap&&s.commentsMap[u.address];h&&(u.comment=h)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(t,v,m){const c=t("../../base-xform");v.exports=class extends c{get tag(){return"x14:cfIcon"}render(o,a){o.leafNode(this.tag,{iconSet:a.iconSet,iconId:a.iconId})}parseOpen(o){let{attributes:a}=o;this.model={iconSet:a.iconSet,iconId:c.toIntValue(a.iconId)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],75:[function(t,v,m){const{v4:c}=t("uuid"),o=t("../../base-xform"),a=t("../../composite-xform"),n=t("./databar-ext-xform"),e=t("./icon-set-ext-xform"),r={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class u extends a{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new n,"x14:iconSet":this.iconSetXform=new e}}get tag(){return"x14:cfRule"}static isExt(i){return i.type==="dataBar"?n.isExt(i):!(i.type!=="iconSet"||!i.custom&&!r[i.iconSet])}prepare(i){u.isExt(i)&&(i.x14Id=`{${c()}}`.toUpperCase())}render(i,d){if(u.isExt(d))switch(d.type){case"dataBar":this.renderDataBar(i,d);break;case"iconSet":this.renderIconSet(i,d)}}renderDataBar(i,d){i.openNode(this.tag,{type:"dataBar",id:d.x14Id}),this.databarXform.render(i,d),i.closeNode()}renderIconSet(i,d){i.openNode(this.tag,{type:"iconSet",priority:d.priority,id:d.x14Id||`{${c()}}`}),this.iconSetXform.render(i,d),i.closeNode()}createNewModel(i){let{attributes:d}=i;return{type:d.type,x14Id:d.id,priority:o.toIntValue(d.priority)}}onParserClose(i,d){Object.assign(this.model,d.model)}}v.exports=u},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(t,v,m){const c=t("../../composite-xform"),o=t("./f-ext-xform");v.exports=class extends c{constructor(){super(),this.map={"xm:f":this.fExtXform=new o}}get tag(){return"x14:cfvo"}render(a,n){a.openNode(this.tag,{type:n.type}),n.value!==void 0&&this.fExtXform.render(a,n.value),a.closeNode()}createNewModel(a){return{type:a.attributes.type}}onParserClose(a,n){switch(a){case"xm:f":this.model.value=n.model?parseFloat(n.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(t,v,m){const c=t("../../composite-xform"),o=t("./sqref-ext-xform"),a=t("./cf-rule-ext-xform");v.exports=class extends c{constructor(){super(),this.map={"xm:sqref":this.sqRef=new o,"x14:cfRule":this.cfRule=new a}}get tag(){return"x14:conditionalFormatting"}prepare(n,e){n.rules.forEach(r=>{this.cfRule.prepare(r,e)})}render(n,e){e.rules.some(a.isExt)&&(n.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),e.rules.filter(a.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,v,m){const c=t("../../composite-xform"),o=t("./cf-rule-ext-xform"),a=t("./conditional-formatting-ext-xform");v.exports=class extends c{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new a}}get tag(){return"x14:conditionalFormattings"}hasContent(n){return n.hasExtContent===void 0&&(n.hasExtContent=n.some(e=>e.rules.some(o.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,v,m){const c=t("../../base-xform"),o=t("../../composite-xform"),a=t("../../style/color-xform"),n=t("./cfvo-ext-xform");v.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new n,"x14:borderColor":this.borderColorXform=new a("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new a("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new a("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new a("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,v,m){const c=t("../../base-xform");v.exports=class extends c{get tag(){return"xm:f"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],81:[function(t,v,m){const c=t("../../base-xform"),o=t("../../composite-xform"),a=t("./cfvo-ext-xform"),n=t("./cf-icon-ext-xform");v.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new a,"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,v,m){const c=t("../../base-xform");v.exports=class extends c{get tag(){return"xm:sqref"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],83:[function(t,v,m){const c=t("../../base-xform"),o=t("../../composite-xform"),a=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"),i={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},d=f=>{const{type:g,operator:p}=f;switch(g){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:g};default:return{type:g,operator:p}}};class h extends o{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(g){return g.type!=="iconSet"||!g.custom&&!i[g.iconSet]}render(g,p){switch(p.type){case"expression":this.renderExpression(g,p);break;case"cellIs":this.renderCellIs(g,p);break;case"top10":this.renderTop10(g,p);break;case"aboveAverage":this.renderAboveAverage(g,p);break;case"dataBar":this.renderDataBar(g,p);break;case"colorScale":this.renderColorScale(g,p);break;case"iconSet":this.renderIconSet(g,p);break;case"containsText":this.renderText(g,p);break;case"timePeriod":this.renderTimePeriod(g,p)}}renderExpression(g,p){g.openNode(this.tag,{type:"expression",dxfId:p.dxfId,priority:p.priority}),this.formulaXform.render(g,p.formulae[0]),g.closeNode()}renderCellIs(g,p){g.openNode(this.tag,{type:"cellIs",dxfId:p.dxfId,priority:p.priority,operator:p.operator}),p.formulae.forEach(x=>{this.formulaXform.render(g,x)}),g.closeNode()}renderTop10(g,p){g.leafNode(this.tag,{type:"top10",dxfId:p.dxfId,priority:p.priority,percent:c.toBoolAttribute(p.percent,!1),bottom:c.toBoolAttribute(p.bottom,!1),rank:c.toIntValue(p.rank,10,!0)})}renderAboveAverage(g,p){g.leafNode(this.tag,{type:"aboveAverage",dxfId:p.dxfId,priority:p.priority,aboveAverage:c.toBoolAttribute(p.aboveAverage,!0)})}renderDataBar(g,p){g.openNode(this.tag,{type:"dataBar",priority:p.priority}),this.databarXform.render(g,p),this.extLstRefXform.render(g,p),g.closeNode()}renderColorScale(g,p){g.openNode(this.tag,{type:"colorScale",priority:p.priority}),this.colorScaleXform.render(g,p),g.closeNode()}renderIconSet(g,p){h.isPrimitive(p)&&(g.openNode(this.tag,{type:"iconSet",priority:p.priority}),this.iconSetXform.render(g,p),g.closeNode())}renderText(g,p){g.openNode(this.tag,{type:p.operator,dxfId:p.dxfId,priority:p.priority,operator:c.toStringAttribute(p.operator,"containsText")});const x=(C=>{if(C.formulae&&C.formulae[0])return C.formulae[0];const T=new a(C.ref),{tl:D}=T;switch(C.operator){case"containsText":return`NOT(ISERROR(SEARCH("${C.text}",${D})))`;case"containsBlanks":return`LEN(TRIM(${D}))=0`;case"notContainsBlanks":return`LEN(TRIM(${D}))>0`;case"containsErrors":return`ISERROR(${D})`;case"notContainsErrors":return`NOT(ISERROR(${D}))`;default:return}})(p);x&&this.formulaXform.render(g,x),g.closeNode()}renderTimePeriod(g,p){g.openNode(this.tag,{type:"timePeriod",dxfId:p.dxfId,priority:p.priority,timePeriod:p.timePeriod});const x=(C=>{if(C.formulae&&C.formulae[0])return C.formulae[0];const T=new a(C.ref),{tl:D}=T;switch(C.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${D},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${D},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${D},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${D},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${D},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${D},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${D},1)=TODAY()-1`;case"today":return`FLOOR(${D},1)=TODAY()`;case"tomorrow":return`FLOOR(${D},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${D},1)<=6,FLOOR(${D},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${D})=MONTH(EDATE(TODAY(),0-1)),YEAR(${D})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${D})=MONTH(TODAY()),YEAR(${D})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${D})=MONTH(EDATE(TODAY(),0+1)),YEAR(${D})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(p);x&&this.formulaXform.render(g,x),g.closeNode()}createNewModel(g){let{attributes:p}=g;return{...d(p),dxfId:c.toIntValue(p.dxfId),priority:c.toIntValue(p.priority),timePeriod:p.timePeriod,percent:c.toBoolValue(p.percent),bottom:c.toBoolValue(p.bottom),rank:c.toIntValue(p.rank),aboveAverage:c.toBoolValue(p.aboveAverage)}}onParserClose(g,p){switch(g){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,p.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(p.model)}}}v.exports=h},{"../../../../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,v,m){const c=t("../../base-xform");v.exports=class extends c{get tag(){return"cfvo"}render(o,a){o.leafNode(this.tag,{type:a.type,val:a.value})}parseOpen(o){this.model={type:o.attributes.type,value:c.toFloatValue(o.attributes.val)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],85:[function(t,v,m){const c=t("../../composite-xform"),o=t("../../style/color-xform"),a=t("./cfvo-xform");v.exports=class extends c{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new o}}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,v,m){const c=t("../../composite-xform"),o=t("./cf-rule-xform");v.exports=class extends c{constructor(){super(),this.map={cfRule:new o}}get tag(){return"conditionalFormatting"}render(a,n){n.rules.some(o.isPrimitive)&&(a.openNode(this.tag,{sqref:n.ref}),n.rules.forEach(e=>{o.isPrimitive(e)&&(e.ref=n.ref,this.map.cfRule.render(a,e))}),a.closeNode())}createNewModel(a){let{attributes:n}=a;return{ref:n.sqref,rules:[]}}onParserClose(a,n){this.model.rules.push(n.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(t,v,m){const c=t("../../base-xform"),o=t("./conditional-formatting-xform");v.exports=class extends c{constructor(){super(),this.cfXform=new o}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(a,n){let e=a.reduce((r,u)=>Math.max(r,...u.rules.map(s=>s.priority||0)),1);a.forEach(r=>{r.rules.forEach(u=>{u.priority||(u.priority=e++),u.style&&(u.dxfId=n.styles.addDxfStyle(u.style))})})}render(a,n){n.forEach(e=>{this.cfXform.render(a,e)})}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(a),!0;default:return!1}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){return!!this.parser&&(!!this.parser.parseClose(a)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(a,n){a.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,v,m){const c=t("../../composite-xform"),o=t("../../style/color-xform"),a=t("./cfvo-xform");v.exports=class extends c{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new o}}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,v,m){const c=t("../../base-xform"),o=t("../../composite-xform");class a 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 o{constructor(){super(),this.map={"x14:id":this.idXform=new a}}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}}v.exports=class extends o{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,v,m){const c=t("../../base-xform");v.exports=class extends c{get tag(){return"formula"}render(o,a){o.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],91:[function(t,v,m){const c=t("../../base-xform"),o=t("../../composite-xform"),a=t("./cfvo-xform");v.exports=class extends o{constructor(){super(),this.map={cfvo:this.cfvoXform=new a}}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,v,m){const c=t("../../../utils/utils"),o=t("../base-xform");v.exports=class extends o{get tag(){return"col"}prepare(a,n){const e=n.styles.addStyleModel(a.style||{});e&&(a.styleId=e)}render(a,n){a.openNode("col"),a.addAttribute("min",n.min),a.addAttribute("max",n.max),n.width&&a.addAttribute("width",n.width),n.styleId&&a.addAttribute("style",n.styleId),n.hidden&&a.addAttribute("hidden","1"),n.bestFit&&a.addAttribute("bestFit","1"),n.outlineLevel&&a.addAttribute("outlineLevel",n.outlineLevel),n.collapsed&&a.addAttribute("collapsed","1"),a.addAttribute("customWidth","1"),a.closeNode()}parseOpen(a){if(a.name==="col"){const n=this.model={min:parseInt(a.attributes.min||"0",10),max:parseInt(a.attributes.max||"0",10),width:a.attributes.width===void 0?void 0:parseFloat(a.attributes.width||"0")};return a.attributes.style&&(n.styleId=parseInt(a.attributes.style,10)),c.parseBoolean(a.attributes.hidden)&&(n.hidden=!0),c.parseBoolean(a.attributes.bestFit)&&(n.bestFit=!0),a.attributes.outlineLevel&&(n.outlineLevel=parseInt(a.attributes.outlineLevel,10)),c.parseBoolean(a.attributes.collapsed)&&(n.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(a,n){a.styleId&&(a.style=n.styles.getStyleModel(a.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(t,v,m){const c=t("../../../utils/under-dash"),o=t("../../../utils/utils"),a=t("../../../utils/col-cache"),n=t("../base-xform"),e=t("../../../doc/range");function r(s,i,d,h){const f=i[d];f!==void 0?s[d]=f:h!==void 0&&(s[d]=h)}function u(s,i,d,h){const f=i[d];f!==void 0&&(s[d]=o.parseBoolean(f))}v.exports=class extends n{get tag(){return"dataValidations"}render(s,i){const d=function(h){const f=c.map(h,(x,C)=>({address:C,dataValidation:x,marked:!1})).sort((x,C)=>c.strcmp(x.address,C.address)),g=c.keyBy(f,"address"),p=(x,C,T)=>{for(let D=0;D<C;D++){const q=a.encodeAddress(x.row+D,T);if(!h[q]||!c.isEqual(h[x.address],h[q]))return!1}return!0};return f.map(x=>{if(!x.marked){const C=a.decodeEx(x.address);if(C.dimensions)return g[C.dimensions].marked=!0,{...x.dataValidation,sqref:x.address};let T=1,D=a.encodeAddress(C.row+T,C.col);for(;h[D]&&c.isEqual(x.dataValidation,h[D]);)T++,D=a.encodeAddress(C.row+T,C.col);let q=1;for(;p(C,T,C.col+q);)q++;for(let N=0;N<T;N++)for(let P=0;P<q;P++)D=a.encodeAddress(C.row+N,C.col+P),g[D].marked=!0;if(T>1||q>1){const N=C.row+(T-1),P=C.col+(q-1);return{...x.dataValidation,sqref:`${x.address}:${a.encodeAddress(N,P)}`}}return{...x.dataValidation,sqref:x.address}}return null}).filter(Boolean)}(i);d.length&&(s.openNode("dataValidations",{count:d.length}),d.forEach(h=>{s.openNode("dataValidation"),h.type!=="any"&&(s.addAttribute("type",h.type),h.operator&&h.type!=="list"&&h.operator!=="between"&&s.addAttribute("operator",h.operator),h.allowBlank&&s.addAttribute("allowBlank","1")),h.showInputMessage&&s.addAttribute("showInputMessage","1"),h.promptTitle&&s.addAttribute("promptTitle",h.promptTitle),h.prompt&&s.addAttribute("prompt",h.prompt),h.showErrorMessage&&s.addAttribute("showErrorMessage","1"),h.errorStyle&&s.addAttribute("errorStyle",h.errorStyle),h.errorTitle&&s.addAttribute("errorTitle",h.errorTitle),h.error&&s.addAttribute("error",h.error),s.addAttribute("sqref",h.sqref),(h.formulae||[]).forEach((f,g)=>{s.openNode("formula"+(g+1)),h.type==="date"?s.writeText(o.dateToExcel(new Date(f))):s.writeText(f),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 i={type:s.attributes.type||"any",formulae:[]};switch(s.attributes.type&&u(i,s.attributes,"allowBlank"),u(i,s.attributes,"showInputMessage"),u(i,s.attributes,"showErrorMessage"),i.type){case"any":case"list":case"custom":break;default:r(i,s.attributes,"operator","between")}return r(i,s.attributes,"promptTitle"),r(i,s.attributes,"prompt"),r(i,s.attributes,"errorStyle"),r(i,s.attributes,"errorTitle"),r(i,s.attributes,"error"),this._dataValidation=i,!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(i=>{i.includes(":")?new e(i).forEachAddress(d=>{this.model[d]=this._dataValidation}):this.model[i]=this._dataValidation}),!0;case"formula1":case"formula2":{let i=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":i=parseInt(i,10);break;case"decimal":i=parseFloat(i);break;case"date":i=o.excelToDate(parseFloat(i))}return this._dataValidation.formulae.push(i),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,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"dimension"}render(o,a){a&&o.leafNode("dimension",{ref:a})}parseOpen(o){return o.name==="dimension"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"drawing"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(t,v,m){const c=t("../composite-xform"),o=t("./cf-ext/conditional-formattings-ext-xform");class a extends c{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new o}}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}}v.exports=class extends c{constructor(){super(),this.map={ext:this.ext=new a}}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,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"headerFooter"}render(o,a){if(a){o.addRollback();let n=!1;o.openNode("headerFooter"),a.differentFirst&&(o.addAttribute("differentFirst","1"),n=!0),a.differentOddEven&&(o.addAttribute("differentOddEven","1"),n=!0),a.oddHeader&&typeof a.oddHeader=="string"&&(o.leafNode("oddHeader",null,a.oddHeader),n=!0),a.oddFooter&&typeof a.oddFooter=="string"&&(o.leafNode("oddFooter",null,a.oddFooter),n=!0),a.evenHeader&&typeof a.evenHeader=="string"&&(o.leafNode("evenHeader",null,a.evenHeader),n=!0),a.evenFooter&&typeof a.evenFooter=="string"&&(o.leafNode("evenFooter",null,a.evenFooter),n=!0),a.firstHeader&&typeof a.firstHeader=="string"&&(o.leafNode("firstHeader",null,a.firstHeader),n=!0),a.firstFooter&&typeof a.firstFooter=="string"&&(o.leafNode("firstFooter",null,a.firstFooter),n=!0),n?(o.closeNode(),o.commit()):o.rollback()}}parseOpen(o){switch(o.name){case"headerFooter":return this.model={},o.attributes.differentFirst&&(this.model.differentFirst=parseInt(o.attributes.differentFirst,0)===1),o.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(o.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(o){switch(this.currentNode){case"oddHeader":this.model.oddHeader=o;break;case"oddFooter":this.model.oddFooter=o;break;case"evenHeader":this.model.evenHeader=o;break;case"evenFooter":this.model.evenFooter=o;break;case"firstHeader":this.model.firstHeader=o;break;case"firstFooter":this.model.firstFooter=o}}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,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"hyperlink"}render(o,a){this.isInternalLink(a)?o.leafNode("hyperlink",{ref:a.address,"r:id":a.rId,tooltip:a.tooltip,location:a.target}):o.leafNode("hyperlink",{ref:a.address,"r:id":a.rId,tooltip:a.tooltip})}parseOpen(o){return o.name==="hyperlink"&&(this.model={address:o.attributes.ref,rId:o.attributes["r:id"],tooltip:o.attributes.tooltip},o.attributes.location&&(this.model.target=o.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(o){return o.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(o.target)}}},{"../base-xform":32}],99:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"mergeCell"}render(o,a){o.leafNode("mergeCell",{ref:a})}parseOpen(o){return o.name==="mergeCell"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(t,v,m){const c=t("../../../utils/under-dash"),o=t("../../../doc/range"),a=t("../../../utils/col-cache"),n=t("../../../doc/enums");v.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 o(r)}}get mergeCells(){return c.map(this.merges,e=>e.range)}reconcile(e,r){c.each(e,u=>{const s=a.decode(u);for(let i=s.top;i<=s.bottom;i++){const d=r[i-1];for(let h=s.left;h<=s.right;h++){const f=d.cells[h-1];f?f.type===n.ValueType.Merge&&(f.master=s.tl):d.cells[h]={type:n.ValueType.Null,address:a.encodeAddress(i,h)}}}})}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,v,m){const c=t("../base-xform"),o=a=>a!==void 0;v.exports=class extends c{get tag(){return"outlinePr"}render(a,n){return!(!n||!o(n.summaryBelow)&&!o(n.summaryRight))&&(a.leafNode(this.tag,{summaryBelow:o(n.summaryBelow)?Number(n.summaryBelow):void 0,summaryRight:o(n.summaryRight)?Number(n.summaryRight):void 0}),!0)}parseOpen(a){return a.name===this.tag&&(this.model={summaryBelow:o(a.attributes.summaryBelow)?!!Number(a.attributes.summaryBelow):void 0,summaryRight:o(a.attributes.summaryRight)?!!Number(a.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"brk"}render(o,a){o.leafNode("brk",a)}parseOpen(o){return o.name==="brk"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(t,v,m){const c=t("../../../utils/under-dash"),o=t("../base-xform");v.exports=class extends o{get tag(){return"pageMargins"}render(a,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)&&a.leafNode(this.tag,e)}}parseOpen(a){switch(a.name){case this.tag:return this.model={left:parseFloat(a.attributes.left||.7),right:parseFloat(a.attributes.right||.7),top:parseFloat(a.attributes.top||.75),bottom:parseFloat(a.attributes.bottom||.75),header:parseFloat(a.attributes.header||.3),footer:parseFloat(a.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"pageSetUpPr"}render(o,a){return!(!a||!a.fitToPage)&&(o.leafNode(this.tag,{fitToPage:a.fitToPage?"1":void 0}),!0)}parseOpen(o){return o.name===this.tag&&(this.model={fitToPage:o.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(t,v,m){const c=t("../../../utils/under-dash"),o=t("../base-xform");function a(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}}v.exports=class extends o{get tag(){return"pageSetup"}render(u,s){if(s){const i={paperSize:s.paperSize,orientation:s.orientation,horizontalDpi:s.horizontalDpi,verticalDpi:s.verticalDpi,pageOrder:n(s.pageOrder),blackAndWhite:a(s.blackAndWhite),draft:a(s.draft),cellComments:e(s.cellComments),errors:r(s.errors),scale:s.scale,fitToWidth:s.fitToWidth,fitToHeight:s.fitToHeight,firstPageNumber:s.firstPageNumber,useFirstPageNumber:a(s.firstPageNumber),usePrinterDefaults:a(s.usePrinterDefaults),copies:s.copies};c.some(i,d=>d!==void 0)&&u.leafNode(this.tag,i)}}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,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"picture"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(t,v,m){const c=t("../../../utils/under-dash"),o=t("../base-xform");function a(n){return n?"1":void 0}v.exports=class extends o{get tag(){return"printOptions"}render(n,e){if(e){const r={headings:a(e.showRowColHeaders),gridLines:a(e.showGridLines),horizontalCentered:a(e.horizontalCentered),verticalCentered:a(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,v,m){const c=t("./page-breaks-xform"),o=t("../list-xform");v.exports=class extends o{constructor(){super({tag:"rowBreaks",count:!0,childXform:new c})}render(a,n){if(n&&n.length){a.openNode(this.tag,this.$),this.count&&(a.addAttribute(this.$count,n.length),a.addAttribute("manualBreakCount",n.length));const{childXform:e}=this;n.forEach(r=>{e.render(a,r)}),a.closeNode()}else this.empty&&a.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(t,v,m){const c=t("../base-xform"),o=t("../../../utils/utils"),a=t("./cell-xform");v.exports=class extends c{constructor(n){super(),this.maxItems=n&&n.maxItems,this.map={c:new a}}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)),o.parseBoolean(n.attributes.hidden)&&(r.hidden=!0),o.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)),o.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,v,m){const c=t("../../../utils/under-dash"),o=t("../base-xform");v.exports=class extends o{get tag(){return"sheetFormatPr"}render(a,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)&&a.leafNode("sheetFormatPr",e)}}parseOpen(a){return a.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(a.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(a.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(a.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(a.attributes.outlineLevelCol||"0",10)},a.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(a.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(t,v,m){const c=t("../base-xform"),o=t("../style/color-xform"),a=t("./page-setup-properties-xform"),n=t("./outline-properties-xform");v.exports=class extends c{constructor(){super(),this.map={tabColor:new o("tabColor"),pageSetUpPr:new a,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,v,m){const c=t("../../../utils/under-dash"),o=t("../base-xform");function a(e,r){return e?r:void 0}function n(e,r){return e===r||void 0}v.exports=class extends o{get tag(){return"sheetProtection"}render(e,r){if(r){const u={sheet:a(r.sheet,"1"),selectLockedCells:r.selectLockedCells===!1?"1":void 0,selectUnlockedCells:r.selectUnlockedCells===!1?"1":void 0,formatCells:a(r.formatCells,"0"),formatColumns:a(r.formatColumns,"0"),formatRows:a(r.formatRows,"0"),insertColumns:a(r.insertColumns,"0"),insertRows:a(r.insertRows,"0"),insertHyperlinks:a(r.insertHyperlinks,"0"),deleteColumns:a(r.deleteColumns,"0"),deleteRows:a(r.deleteRows,"0"),sort:a(r.sort,"0"),autoFilter:a(r.autoFilter,"0"),pivotTables:a(r.pivotTables,"0")};r.sheet&&(u.algorithmName=r.algorithmName,u.hashValue=r.hashValue,u.saltValue=r.saltValue,u.spinCount=r.spinCount,u.objects=a(r.objects===!1,"1"),u.scenarios=a(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,v,m){const c=t("../../../utils/col-cache"),o=t("../base-xform"),a={frozen:"frozen",frozenSplit:"frozen",split:"split"};v.exports=class extends o{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(h,f,g){g&&n.addAttribute(h,f)};let u,s,i,d;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,i=e.ySplit||0,u=e.topLeftCell||c.getAddress(i+1,s+1).address,d=(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:d,state:"frozen"}),n.leafNode("selection",{pane:d,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:a[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,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"tablePart"}render(o,a){a&&o.leafNode(this.tag,{"r:id":a.rId})}parseOpen(o){switch(o.name){case this.tag:return this.model={rId:o.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(t,v,m){const c=t("../../../utils/under-dash"),o=t("../../../utils/col-cache"),a=t("../../../utils/xml-stream"),n=t("../../rel-type"),e=t("./merges"),r=t("../base-xform"),u=t("../list-xform"),s=t("./row-xform"),i=t("./col-xform"),d=t("./dimension-xform"),h=t("./hyperlink-xform"),f=t("./merge-cell-xform"),g=t("./data-validations-xform"),p=t("./sheet-properties-xform"),x=t("./sheet-format-properties-xform"),C=t("./sheet-view-xform"),T=t("./sheet-protection-xform"),D=t("./page-margins-xform"),q=t("./page-setup-xform"),N=t("./print-options-xform"),P=t("./auto-filter-xform"),V=t("./picture-xform"),W=t("./drawing-xform"),L=t("./table-part-xform"),A=t("./row-breaks-xform"),E=t("./header-footer-xform"),_=t("./cf/conditional-formattings-xform"),b=t("./ext-lst-xform"),y=(S,M)=>{if(!M||!M.length)return S;if(!S||!S.length)return M;const B={},O={};return S.forEach(H=>{B[H.ref]=H,H.rules.forEach(z=>{const{x14Id:Q}=z;Q&&(O[Q]=z)})}),M.forEach(H=>{H.rules.forEach(z=>{const Q=O[z.x14Id];Q?((F,Y)=>{Object.keys(Y).forEach(j=>{const R=F[j],U=Y[j];R===void 0&&U!==void 0&&(F[j]=U)})})(Q,z):B[H.ref]?B[H.ref].rules.push(z):S.push({ref:H.ref,rules:[z]})})}),S};class w extends r{constructor(M){super();const{maxRows:B,maxCols:O,ignoreNodes:H}=M||{};this.ignoreNodes=H||[],this.map={sheetPr:new p,dimension:new d,sheetViews:new u({tag:"sheetViews",count:!1,childXform:new C}),sheetFormatPr:new x,cols:new u({tag:"cols",count:!1,childXform:new i}),sheetData:new u({tag:"sheetData",count:!1,empty:!0,childXform:new s({maxItems:O}),maxItems:B}),autoFilter:new P,mergeCells:new u({tag:"mergeCells",count:!0,childXform:new f}),rowBreaks:new A,hyperlinks:new u({tag:"hyperlinks",count:!1,childXform:new h}),pageMargins:new D,dataValidations:new g,pageSetup:new q,headerFooter:new E,printOptions:new N,picture:new V,drawing:new W,sheetProtection:new T,tableParts:new u({tag:"tableParts",count:!0,childXform:new L}),conditionalFormatting:new _,extLst:new b}}prepare(M,B){B.merges=new e,M.hyperlinks=B.hyperlinks=[],M.comments=B.comments=[],B.formulae={},B.siFormulae=0,this.map.cols.prepare(M.cols,B),this.map.sheetData.prepare(M.rows,B),this.map.conditionalFormatting.prepare(M.conditionalFormattings,B),M.mergeCells=B.merges.mergeCells;const O=M.rels=[];function H(F){return"rId"+(F.length+1)}if(M.hyperlinks.forEach(F=>{const Y=H(O);F.rId=Y,O.push({Id:Y,Type:n.Hyperlink,Target:F.target,TargetMode:"External"})}),M.comments.length>0){const F={Id:H(O),Type:n.Comments,Target:`../comments${M.id}.xml`};O.push(F);const Y={Id:H(O),Type:n.VmlDrawing,Target:`../drawings/vmlDrawing${M.id}.vml`};O.push(Y),M.comments.forEach(j=>{j.refAddress=o.decodeAddress(j.ref)}),B.commentRefs.push({commentName:"comments"+M.id,vmlDrawing:"vmlDrawing"+M.id})}const z=[];let Q;M.media.forEach(F=>{if(F.type==="background"){const Y=H(O);Q=B.media[F.imageId],O.push({Id:Y,Type:n.Image,Target:`../media/${Q.name}.${Q.extension}`}),M.background={rId:Y},M.image=B.media[F.imageId]}else if(F.type==="image"){let{drawing:Y}=M;Q=B.media[F.imageId],Y||(Y=M.drawing={rId:H(O),name:"drawing"+ ++B.drawingsCount,anchors:[],rels:[]},B.drawings.push(Y),O.push({Id:Y.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${Y.name}.xml`}));let j=this.preImageId===F.imageId?z[F.imageId]:z[Y.rels.length];j||(j=H(Y.rels),z[Y.rels.length]=j,Y.rels.push({Id:j,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${Q.name}.${Q.extension}`}));const R={picture:{rId:j},range:F.range};if(F.hyperlinks&&F.hyperlinks.hyperlink){const U=H(Y.rels);z[Y.rels.length]=U,R.picture.hyperlinks={tooltip:F.hyperlinks.tooltip,rId:U},Y.rels.push({Id:U,Type:n.Hyperlink,Target:F.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=F.imageId,Y.anchors.push(R)}}),M.tables.forEach(F=>{const Y=H(O);F.rId=Y,O.push({Id:Y,Type:n.Table,Target:"../tables/"+F.target}),F.columns.forEach(j=>{const{style:R}=j;R&&(j.dxfId=B.styles.addDxfStyle(R))})}),this.map.extLst.prepare(M,B)}render(M,B){M.openXml(a.StdDocAttributes),M.openNode("worksheet",w.WORKSHEET_ATTRIBUTES);const O=B.properties?{defaultRowHeight:B.properties.defaultRowHeight,dyDescent:B.properties.dyDescent,outlineLevelCol:B.properties.outlineLevelCol,outlineLevelRow:B.properties.outlineLevelRow}:void 0;B.properties&&B.properties.defaultColWidth&&(O.defaultColWidth=B.properties.defaultColWidth);const H={outlineProperties:B.properties&&B.properties.outlineProperties,tabColor:B.properties&&B.properties.tabColor,pageSetup:B.pageSetup&&B.pageSetup.fitToPage?{fitToPage:B.pageSetup.fitToPage}:void 0},z=B.pageSetup&&B.pageSetup.margins,Q={showRowColHeaders:B.pageSetup&&B.pageSetup.showRowColHeaders,showGridLines:B.pageSetup&&B.pageSetup.showGridLines,horizontalCentered:B.pageSetup&&B.pageSetup.horizontalCentered,verticalCentered:B.pageSetup&&B.pageSetup.verticalCentered},F=B.sheetProtection;this.map.sheetPr.render(M,H),this.map.dimension.render(M,B.dimensions),this.map.sheetViews.render(M,B.views),this.map.sheetFormatPr.render(M,O),this.map.cols.render(M,B.cols),this.map.sheetData.render(M,B.rows),this.map.sheetProtection.render(M,F),this.map.autoFilter.render(M,B.autoFilter),this.map.mergeCells.render(M,B.mergeCells),this.map.conditionalFormatting.render(M,B.conditionalFormattings),this.map.dataValidations.render(M,B.dataValidations),this.map.hyperlinks.render(M,B.hyperlinks),this.map.printOptions.render(M,Q),this.map.pageMargins.render(M,z),this.map.pageSetup.render(M,B.pageSetup),this.map.headerFooter.render(M,B.headerFooter),this.map.rowBreaks.render(M,B.rowBreaks),this.map.drawing.render(M,B.drawing),this.map.picture.render(M,B.background),this.map.tableParts.render(M,B.tables),this.map.extLst.render(M,B),B.rels&&B.rels.forEach(Y=>{Y.Type===n.VmlDrawing&&M.leafNode("legacyDrawing",{"r:id":Y.Id})}),M.closeNode()}parseOpen(M){return this.parser?(this.parser.parseOpen(M),!0):M.name==="worksheet"?(c.each(this.map,B=>{B.reset()}),!0):(this.map[M.name]&&!this.ignoreNodes.includes(M.name)&&(this.parser=this.map[M.name],this.parser.parseOpen(M)),!0)}parseText(M){this.parser&&this.parser.parseText(M)}parseClose(M){if(this.parser)return this.parser.parseClose(M)||(this.parser=void 0),!0;switch(M){case"worksheet":{const B=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(B.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(B.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},H=Object.assign(O,this.map.pageSetup.model,this.map.printOptions.model),z=y(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:B,views:this.map.sheetViews.model,pageSetup:H,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:z},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(M,B){const O=(M.relationships||[]).reduce((z,Q)=>{if(z[Q.Id]=Q,Q.Type===n.Comments&&(M.comments=B.comments[Q.Target].comments),Q.Type===n.VmlDrawing&&M.comments&&M.comments.length){const F=B.vmlDrawings[Q.Target].comments;M.comments.forEach((Y,j)=>{Y.note=Object.assign({},Y.note,F[j])})}return z},{});if(B.commentsMap=(M.comments||[]).reduce((z,Q)=>(Q.ref&&(z[Q.ref]=Q),z),{}),B.hyperlinkMap=(M.hyperlinks||[]).reduce((z,Q)=>(Q.rId&&(z[Q.address]=O[Q.rId].Target),z),{}),B.formulae={},M.rows=M.rows&&M.rows.filter(Boolean)||[],M.rows.forEach(z=>{z.cells=z.cells&&z.cells.filter(Boolean)||[]}),this.map.cols.reconcile(M.cols,B),this.map.sheetData.reconcile(M.rows,B),this.map.conditionalFormatting.reconcile(M.conditionalFormattings,B),M.media=[],M.drawing){const z=O[M.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(z){const Q=z[1];B.drawings[Q].anchors.forEach(F=>{if(F.medium){const Y={type:"image",imageId:F.medium.index,range:F.range,hyperlinks:F.picture.hyperlinks};M.media.push(Y)}})}}const H=M.background&&O[M.background.rId];if(H){const z=H.Target.split("/media/")[1],Q=B.mediaIndex&&B.mediaIndex[z];Q!==void 0&&M.media.push({type:"background",imageId:Q})}M.tables=(M.tables||[]).map(z=>{const Q=O[z.rId];return B.tables[Q.Target]}),delete M.relationships,delete M.hyperlinks,delete M.comments}}w.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"},v.exports=w},{"../../../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,v,m){const c=t("../base-xform");v.exports=class extends c{constructor(o){super(),this.tag=o.tag,this.attr=o.attr}render(o,a){a&&(o.openNode(this.tag),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this._format=o.format||function(a){try{return Number.isNaN(a.getTime())?"":a.toISOString()}catch{return""}},this._parse=o.parse||function(a){return new Date(a)}}render(o,a){a&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,this._format(a)):o.writeText(this._format(a)),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=this._parse(o.attributes[this.attr]):this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this.zero=o.zero}render(o,a){(a||this.zero)&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,a):o.writeText(a),o.closeNode())}parseOpen(o){return o.name===this.tag&&(this.attr?this.model=parseInt(o.attributes[this.attr],10):this.text=[],!0)}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs}render(o,a){a!==void 0&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,a):o.writeText(a),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=o.attributes[this.attr]:this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(t,v,m){const c=t("./base-xform"),o=t("../../utils/xml-stream");v.exports=class extends c{constructor(a){super(),this._model=a}render(a){if(!this._xml){const n=new o;(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}a.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(a){switch(a){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(t,v,m){const c=t("./text-xform"),o=t("./rich-text-xform"),a=t("../base-xform");v.exports=class extends a{constructor(){super(),this.map={r:new o,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,v,m){const c=t("./text-xform"),o=t("../style/font-xform"),a=t("../base-xform");class n extends a{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 o(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"},v.exports=n},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(t,v,m){const c=t("./text-xform"),o=t("./rich-text-xform"),a=t("./phonetic-text-xform"),n=t("../base-xform");v.exports=class extends n{constructor(e){super(),this.model=e,this.map={r:new o,t:new c,rPh:new a}}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,v,m){const c=t("../../../utils/xml-stream"),o=t("../base-xform"),a=t("./shared-string-xform");v.exports=class extends o{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 a)}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,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"t"}render(o,a){o.openNode("t"),/^\s|\n|\s$/.test(a)&&o.addAttribute("xml:space","preserve"),o.writeText(a),o.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(o,a)=>String.fromCharCode(parseInt(a,16)))}parseOpen(o){switch(o.name){case"t":return this._text=[],!0;default:return!1}}parseText(o){this._text.push(o)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(t,v,m){const c=t("../../../doc/enums"),o=t("../../../utils/utils"),a=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=o.validInt(r))>=-90&&r<=90?r:void 0}},indent:r=>(r=o.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=o.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}}};v.exports=class extends a{get tag(){return"alignment"}render(r,u){r.addRollback(),r.openNode("alignment");let s=!1;function i(d,h){h&&(r.addAttribute(d,h),s=!0)}i("horizontal",n.horizontal(u.horizontal)),i("vertical",n.vertical(u.vertical)),i("wrapText",!!n.wrapText(u.wrapText)&&"1"),i("shrinkToFit",!!n.shrinkToFit(u.shrinkToFit)&&"1"),i("indent",n.indent(u.indent)),i("textRotation",e.toXml(u.textRotation)),i("readingOrder",n.readingOrder(u.readingOrder)),r.closeNode(),s?r.commit():r.rollback()}parseOpen(r){const u={};let s=!1;function i(d,h,f){d&&(u[h]=f,s=!0)}i(r.attributes.horizontal,"horizontal",r.attributes.horizontal),i(r.attributes.vertical,"vertical",r.attributes.vertical==="center"?"middle":r.attributes.vertical),i(r.attributes.wrapText,"wrapText",o.parseBoolean(r.attributes.wrapText)),i(r.attributes.shrinkToFit,"shrinkToFit",o.parseBoolean(r.attributes.shrinkToFit)),i(r.attributes.indent,"indent",parseInt(r.attributes.indent,10)),i(r.attributes.textRotation,"textRotation",e.toModel(r.attributes.textRotation)),i(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,v,m){const c=t("../base-xform"),o=t("../../../utils/utils"),a=t("./color-xform");class n extends c{constructor(r){super(),this.name=r,this.map={color:new a}}get tag(){return this.name}render(r,u,s){const i=u&&u.color||s||this.defaultColor;r.openNode(this.name),u&&u.style&&(r.addAttribute("style",u.style),i&&this.map.color.render(r,i)),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),{}),v.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(i,d){i&&!i.color&&r.color&&(i={...i,color:r.color}),d.render(e,i,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=o.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=o.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,i,d){i&&(d&&Object.assign(i,d),r[s]=i)};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,v,m){const c=t("../base-xform");v.exports=class extends c{constructor(o){super(),this.name=o||"color"}get tag(){return this.name}render(o,a){return!!a&&(o.openNode(this.name),a.argb?o.addAttribute("rgb",a.argb):a.theme!==void 0?(o.addAttribute("theme",a.theme),a.tint!==void 0&&o.addAttribute("tint",a.tint)):a.indexed!==void 0?o.addAttribute("indexed",a.indexed):o.addAttribute("auto","1"),o.closeNode(),!0)}parseOpen(o){return o.name===this.name&&(o.attributes.rgb?this.model={argb:o.attributes.rgb}:o.attributes.theme?(this.model={theme:parseInt(o.attributes.theme,10)},o.attributes.tint&&(this.model.tint=parseFloat(o.attributes.tint))):o.attributes.indexed?this.model={indexed:parseInt(o.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(t,v,m){const c=t("../base-xform"),o=t("./alignment-xform"),a=t("./border-xform"),n=t("./fill-xform"),e=t("./font-xform"),r=t("./numfmt-xform"),u=t("./protection-xform");v.exports=class extends c{constructor(){super(),this.map={alignment:new o,border:new a,fill:new n,font:new e,numFmt:new r,protection:new u}}get tag(){return"dxf"}render(s,i){if(s.openNode(this.tag),i.font&&this.map.font.render(s,i.font),i.numFmt&&i.numFmtId){const d={id:i.numFmtId,formatCode:i.numFmt};this.map.numFmt.render(s,d)}i.fill&&this.map.fill.render(s,i.fill),i.alignment&&this.map.alignment.render(s,i.alignment),i.border&&this.map.border.render(s,i.border),i.protection&&this.map.protection.render(s,i.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,v,m){const c=t("../base-xform"),o=t("./color-xform");class a extends c{constructor(){super(),this.map={color:new o}}get tag(){return"stop"}render(s,i){s.openNode("stop"),s.addAttribute("position",i.position),this.map.color.render(s,i.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 o("fgColor"),bgColor:new o("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(s,i){s.openNode("patternFill"),s.addAttribute("patternType",i.pattern),i.fgColor&&this.map.fgColor.render(s,i.fgColor),i.bgColor&&this.map.bgColor.render(s,i.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 a}}get name(){return"gradient"}get tag(){return"gradientFill"}render(s,i){switch(s.openNode("gradientFill"),i.gradient){case"angle":s.addAttribute("degree",i.degree);break;case"path":s.addAttribute("type","path"),i.center.left&&(s.addAttribute("left",i.center.left),i.center.right===void 0&&s.addAttribute("right",i.center.left)),i.center.right&&s.addAttribute("right",i.center.right),i.center.top&&(s.addAttribute("top",i.center.top),i.center.bottom===void 0&&s.addAttribute("bottom",i.center.top)),i.center.bottom&&s.addAttribute("bottom",i.center.bottom)}const d=this.map.stop;i.stops.forEach(h=>{d.render(s,h)}),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"gradientFill":{const i=this.model={stops:[]};return s.attributes.degree?(i.gradient="angle",i.degree=parseInt(s.attributes.degree,10)):s.attributes.type==="path"&&(i.gradient="path",i.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&&(i.center.right=s.attributes.right?parseFloat(s.attributes.right):0),s.attributes.bottom!==s.attributes.top&&(i.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,i){switch(s.addRollback(),s.openNode("fill"),i.type){case"pattern":this.map.patternFill.render(s,i);break;case"gradient":this.map.gradientFill.render(s,i);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=a,r.PatternFillXform=n,r.GradientFillXform=e,v.exports=r},{"../base-xform":32,"./color-xform":128}],131:[function(t,v,m){const c=t("./color-xform"),o=t("../simple/boolean-xform"),a=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(d){super(),this.options=d||s.OPTIONS,this.map={b:{prop:"bold",xform:new o({tag:"b",attr:"val"})},i:{prop:"italic",xform:new o({tag:"i",attr:"val"})},u:{prop:"underline",xform:new e},charset:{prop:"charset",xform:new a({tag:"charset",attr:"val"})},color:{prop:"color",xform:new c},condense:{prop:"condense",xform:new o({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new o({tag:"extend",attr:"val"})},family:{prop:"family",xform:new a({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new o({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 o({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new o({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new a({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(d,h){const{map:f}=this;d.openNode(this.options.tagName),r.each(this.map,(g,p)=>{f[p].xform.render(d,h[g.prop])}),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;if(this.map[d.name])return this.parser=this.map[d.name].xform,this.parser.parseOpen(d);switch(d.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){if(this.parser&&!this.parser.parseClose(d)){const h=this.map[d];return this.parser.model&&(this.model[h.prop]=this.parser.model),this.parser=void 0,!0}switch(d){case this.options.tagName:return!1;default:return!0}}}s.OPTIONS={tagName:"font",fontNameTag:"name"},v.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,v,m){const c=t("../../../utils/under-dash"),o=t("../../defaultnumformats"),a=t("../base-xform"),n=function(){const r={};return c.each(o,(u,s)=>{u.f&&(r[u.f]=parseInt(s,10))}),r}();class e extends a{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 o[r]&&o[r].f},v.exports=e},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(t,v,m){const c=t("../base-xform"),o={boolean:(a,n)=>a===void 0?n:a};v.exports=class extends c{get tag(){return"protection"}render(a,n){a.addRollback(),a.openNode("protection");let e=!1;function r(u,s){s!==void 0&&(a.addAttribute(u,s),e=!0)}r("locked",o.boolean(n.locked,!0)?void 0:"0"),r("hidden",o.boolean(n.hidden,!1)?"1":void 0),a.closeNode(),e?a.commit():a.rollback()}parseOpen(a){const n={locked:a.attributes.locked!=="0",hidden:a.attributes.hidden==="1"},e=!n.locked||n.hidden;this.model=e?n:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(t,v,m){const c=t("../base-xform"),o=t("./alignment-xform"),a=t("./protection-xform");v.exports=class extends c{constructor(n){super(),this.xfId=!(!n||!n.xfId),this.map={alignment:new o,protection:new a}}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,v,m){const c=t("../../../doc/enums"),o=t("../../../utils/xml-stream"),a=t("../base-xform"),n=t("../static-xform"),e=t("../list-xform"),r=t("./font-xform"),u=t("./fill-xform"),s=t("./border-xform"),i=t("./numfmt-xform"),d=t("./style-xform"),h=t("./dxf-xform");class f extends a{constructor(p){super(),this.map={numFmts:new e({tag:"numFmts",count:!0,childXform:new i}),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 d}),cellXfs:new e({tag:"cellXfs",count:!0,childXform:new d({xfId:!0})}),dxfs:new e({tag:"dxfs",always:!0,count:!0,childXform:new h}),numFmt:new i,font:new r,fill:new u,border:new s,style:new d({xfId:!0}),cellStyles:f.STATIC_XFORMS.cellStyles,tableStyles:f.STATIC_XFORMS.tableStyles,extLst:f.STATIC_XFORMS.extLst},p&&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(p,x){x=x||this.model,p.openXml(o.StdDocAttributes),p.openNode("styleSheet",f.STYLESHEET_ATTRIBUTES),this.index?(x.numFmts&&x.numFmts.length&&(p.openNode("numFmts",{count:x.numFmts.length}),x.numFmts.forEach(C=>{p.writeXml(C)}),p.closeNode()),x.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),p.openNode("fonts",{count:x.fonts.length,"x14ac:knownFonts":1}),x.fonts.forEach(C=>{p.writeXml(C)}),p.closeNode(),p.openNode("fills",{count:x.fills.length}),x.fills.forEach(C=>{p.writeXml(C)}),p.closeNode(),p.openNode("borders",{count:x.borders.length}),x.borders.forEach(C=>{p.writeXml(C)}),p.closeNode(),this.map.cellStyleXfs.render(p,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),p.openNode("cellXfs",{count:x.styles.length}),x.styles.forEach(C=>{p.writeXml(C)}),p.closeNode()):(this.map.numFmts.render(p,x.numFmts),this.map.fonts.render(p,x.fonts),this.map.fills.render(p,x.fills),this.map.borders.render(p,x.borders),this.map.cellStyleXfs.render(p,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(p,x.styles)),f.STATIC_XFORMS.cellStyles.render(p),this.map.dxfs.render(p,x.dxfs),f.STATIC_XFORMS.tableStyles.render(p),f.STATIC_XFORMS.extLst.render(p),p.closeNode()}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[p.name],this.parser&&this.parser.parseOpen(p),!0}}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser)return this.parser.parseClose(p)||(this.parser=void 0),!0;switch(p){case"styleSheet":{this.model={};const x=(C,T)=>{T.model&&T.model.length&&(this.model[C]=T.model)};if(x("numFmts",this.map.numFmts),x("fonts",this.map.fonts),x("fills",this.map.fills),x("borders",this.map.borders),x("styles",this.map.cellXfs),x("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const C=this.index.numFmt;this.model.numFmts.forEach(T=>{C[T.id]=T.formatCode})}return!1}default:return!0}}addStyleModel(p,x){if(!p)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(p))return this.weakMap.get(p);const C={};if(x=x||c.ValueType.Number,p.numFmt)C.numFmtId=this._addNumFmtStr(p.numFmt);else switch(x){case c.ValueType.Number:C.numFmtId=this._addNumFmtStr("General");break;case c.ValueType.Date:C.numFmtId=this._addNumFmtStr("mm-dd-yy")}p.font&&(C.fontId=this._addFont(p.font)),p.border&&(C.borderId=this._addBorder(p.border)),p.fill&&(C.fillId=this._addFill(p.fill)),p.alignment&&(C.alignment=p.alignment),p.protection&&(C.protection=p.protection);const T=this._addStyle(C);return this.weakMap&&this.weakMap.set(p,T),T}getStyleModel(p){const x=this.model.styles[p];if(!x)return null;let C=this.index.model[p];if(C)return C;if(C=this.index.model[p]={},x.numFmtId){const D=this.index.numFmt[x.numFmtId]||i.getDefaultFmtCode(x.numFmtId);D&&(C.numFmt=D)}function T(D,q,N){if(N||N===0){const P=q[N];P&&(C[D]=P)}}return T("font",this.model.fonts,x.fontId),T("border",this.model.borders,x.borderId),T("fill",this.model.fills,x.fillId),x.alignment&&(C.alignment=x.alignment),x.protection&&(C.protection=x.protection),C}addDxfStyle(p){return p.numFmt&&(p.numFmtId=this._addNumFmtStr(p.numFmt)),this.model.dxfs.push(p),this.model.dxfs.length-1}getDxfStyle(p){return this.model.dxfs[p]}_addStyle(p){const x=this.map.style.toXml(p);let C=this.index.style[x];return C===void 0&&(C=this.index.style[x]=this.model.styles.length,this.model.styles.push(x)),C}_addNumFmtStr(p){let x=i.getDefaultFmtId(p);if(x!==void 0||(x=this.index.numFmt[p],x!==void 0))return x;x=this.index.numFmt[p]=164+this.model.numFmts.length;const C=this.map.numFmt.toXml({id:x,formatCode:p});return this.model.numFmts.push(C),x}_addFont(p){const x=this.map.font.toXml(p);let C=this.index.font[x];return C===void 0&&(C=this.index.font[x]=this.model.fonts.length,this.model.fonts.push(x)),C}_addBorder(p){const x=this.map.border.toXml(p);let C=this.index.border[x];return C===void 0&&(C=this.index.border[x]=this.model.borders.length,this.model.borders.push(x)),C}_addFill(p){const x=this.map.fill.toXml(p);let C=this.index.fill[x];return C===void 0&&(C=this.index.fill[x]=this.model.fills.length,this.model.fills.push(x)),C}}f.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"},f.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"}}]}]})},f.Mock=class extends f{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(g){return g.autodrain(),Promise.resolve()}addStyleModel(g,p){switch(p){case c.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const g={numFmtId:i.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(g)}return this._dateStyleId}getStyleModel(){return{}}},v.exports=f},{"../../../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,v,m){const c=t("../base-xform");class o 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=o.Attributes[e];r&&n.leafNode("u",r)}}parseOpen(n){n.name==="u"&&(this.model=n.attributes.val||!0)}parseText(){}parseClose(){return!1}}o.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},v.exports=o},{"../base-xform":32}],137:[function(t,v,m){const c=t("../base-xform"),o=t("./filter-column-xform");v.exports=class extends c{constructor(){super(),this.map={filterColumn:new o}}get tag(){return"autoFilter"}prepare(a){a.columns.forEach((n,e)=>{this.map.filterColumn.prepare(n,{index:e})})}render(a,n){return a.openNode(this.tag,{ref:n.autoFilterRef}),n.columns.forEach(e=>{this.map.filterColumn.render(a,e)}),a.closeNode(),!0}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:return this.model={autoFilterRef:a.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[a.name],this.parser)return this.parseOpen(a),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(a))}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(a){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+a)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"customFilter"}render(o,a){o.leafNode(this.tag,{val:a.val,operator:a.operator})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val,operator:o.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(t,v,m){const c=t("../base-xform"),o=t("../list-xform"),a=t("./custom-filter-xform"),n=t("./filter-xform");v.exports=class extends c{constructor(){super(),this.map={customFilters:new o({tag:"customFilters",count:!1,empty:!0,childXform:new a}),filters:new o({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,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"filter"}render(o,a){o.leafNode(this.tag,{val:a.val})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"tableColumn"}prepare(o,a){o.id=a.index+1}render(o,a){return o.leafNode(this.tag,{id:a.id.toString(),name:a.name,totalsRowLabel:a.totalsRowLabel,totalsRowFunction:a.totalsRowFunction,dxfId:a.dxfId}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:a}=o;return this.model={name:a.name,totalsRowLabel:a.totalsRowLabel,totalsRowFunction:a.totalsRowFunction,dxfId:a.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(t,v,m){const c=t("../base-xform");v.exports=class extends c{get tag(){return"tableStyleInfo"}render(o,a){return o.leafNode(this.tag,{name:a.theme?a.theme:void 0,showFirstColumn:a.showFirstColumn?"1":"0",showLastColumn:a.showLastColumn?"1":"0",showRowStripes:a.showRowStripes?"1":"0",showColumnStripes:a.showColumnStripes?"1":"0"}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:a}=o;return this.model={theme:a.name?a.name:null,showFirstColumn:a.showFirstColumn==="1",showLastColumn:a.showLastColumn==="1",showRowStripes:a.showRowStripes==="1",showColumnStripes:a.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(t,v,m){const c=t("../../../utils/xml-stream"),o=t("../base-xform"),a=t("../list-xform"),n=t("./auto-filter-xform"),e=t("./table-column-xform"),r=t("./table-style-info-xform");class u extends o{constructor(){super(),this.map={autoFilter:new n,tableColumns:new a({tag:"tableColumns",count:!0,empty:!0,childXform:new e}),tableStyleInfo:new r}}prepare(i,d){this.map.autoFilter.prepare(i),this.map.tableColumns.prepare(i.columns,d)}get tag(){return"table"}render(i,d){i.openXml(c.StdDocAttributes),i.openNode(this.tag,{...u.TABLE_ATTRIBUTES,id:d.id,name:d.name,displayName:d.displayName||d.name,ref:d.tableRef,totalsRowCount:d.totalsRow?"1":void 0,totalsRowShown:d.totalsRow?void 0:"1",headerRowCount:d.headerRow?"1":"0"}),this.map.autoFilter.render(i,d),this.map.tableColumns.render(i,d.columns),this.map.tableStyleInfo.render(i,d.style),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;const{name:d,attributes:h}=i;switch(d){case this.tag:this.reset(),this.model={name:h.name,displayName:h.displayName||h.name,tableRef:h.ref,totalsRow:h.totalsRowCount==="1",headerRow:h.headerRowCount==="1"};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){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((d,h)=>{this.model.columns[h].filterButton=d.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(i,d){i.columns.forEach(h=>{h.dxfId!==void 0&&(h.style=d.styles.getDxfStyle(h.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"},v.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,v,m){(function(c,o){(function(){const a=t("fs"),n=t("jszip"),{PassThrough:e}=t("readable-stream"),r=t("../utils/zip-stream"),u=t("../utils/stream-buf"),s=t("../utils/utils"),i=t("../utils/xml-stream"),{bufferToString:d}=t("../utils/browser-buffer-decode"),h=t("./xform/style/styles-xform"),f=t("./xform/core/core-xform"),g=t("./xform/strings/shared-strings-xform"),p=t("./xform/core/relationships-xform"),x=t("./xform/core/content-types-xform"),C=t("./xform/core/app-xform"),T=t("./xform/book/workbook-xform"),D=t("./xform/sheet/worksheet-xform"),q=t("./xform/drawing/drawing-xform"),N=t("./xform/table/table-xform"),P=t("./xform/comment/comments-xform"),V=t("./xform/comment/vml-notes-xform"),W=t("./xml/theme1");class L{constructor(E){this.workbook=E}async readFile(E,_){if(!await s.fs.exists(E))throw new Error("File not found: "+E);const b=a.createReadStream(E);try{const y=await this.read(b,_);return b.close(),y}catch(y){throw b.close(),y}}parseRels(E){return new p().parseStream(E)}parseWorkbook(E){return new T().parseStream(E)}parseSharedStrings(E){return new g().parseStream(E)}reconcile(E,_){const b=new T,y=new D(_),w=new q,S=new N;b.reconcile(E);const M={media:E.media,mediaIndex:E.mediaIndex};Object.keys(E.drawings).forEach(H=>{const z=E.drawings[H],Q=E.drawingRels[H];Q&&(M.rels=Q.reduce((F,Y)=>(F[Y.Id]=Y,F),{}),(z.anchors||[]).forEach(F=>{const Y=F.picture&&F.picture.hyperlinks;Y&&M.rels[Y.rId]&&(Y.hyperlink=M.rels[Y.rId].Target,delete Y.rId)}),w.reconcile(z,M))});const B={styles:E.styles};Object.values(E.tables).forEach(H=>{S.reconcile(H,B)});const O={styles:E.styles,sharedStrings:E.sharedStrings,media:E.media,mediaIndex:E.mediaIndex,date1904:E.properties&&E.properties.date1904,drawings:E.drawings,comments:E.comments,tables:E.tables,vmlDrawings:E.vmlDrawings};E.worksheets.forEach(H=>{H.relationships=E.worksheetRels[H.sheetNo],y.reconcile(H,O)}),delete E.worksheetHash,delete E.worksheetRels,delete E.globalRels,delete E.sharedStrings,delete E.workbookRels,delete E.sheetDefs,delete E.styles,delete E.mediaIndex,delete E.drawings,delete E.drawingRels,delete E.vmlDrawings}async _processWorksheetEntry(E,_,b,y,w){const S=new D(y),M=await S.parseStream(E);M.sheetNo=b,_.worksheetHash[w]=M,_.worksheets.push(M)}async _processCommentEntry(E,_,b){const y=new P,w=await y.parseStream(E);_.comments[`../${b}.xml`]=w}async _processTableEntry(E,_,b){const y=new N,w=await y.parseStream(E);_.tables[`../tables/${b}.xml`]=w}async _processWorksheetRelsEntry(E,_,b){const y=new p,w=await y.parseStream(E);_.worksheetRels[b]=w}async _processMediaEntry(E,_,b){const y=b.lastIndexOf(".");if(y>=1){const w=b.substr(y+1),S=b.substr(0,y);await new Promise((M,B)=>{const O=new u;O.on("finish",()=>{_.mediaIndex[b]=_.media.length,_.mediaIndex[S]=_.media.length;const H={type:"image",name:S,extension:w,buffer:O.toBuffer()};_.media.push(H),M()}),E.on("error",H=>{B(H)}),E.pipe(O)})}}async _processDrawingEntry(E,_,b){const y=new q,w=await y.parseStream(E);_.drawings[b]=w}async _processDrawingRelsEntry(E,_,b){const y=new p,w=await y.parseStream(E);_.drawingRels[b]=w}async _processVmlDrawingEntry(E,_,b){const y=new V,w=await y.parseStream(E);_.vmlDrawings[`../drawings/${b}.vml`]=w}async _processThemeEntry(E,_,b){await new Promise((y,w)=>{const S=new u;E.on("error",w),S.on("error",w),S.on("finish",()=>{_.themes[b]=S.read().toString(),y()}),E.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(E,_){!E[Symbol.asyncIterator]&&E.pipe&&(E=E.pipe(new e));const b=[];for await(const y of E)b.push(y);return this.load(o.concat(b),_)}async load(E,_){let b;b=_&&_.base64?o.from(E.toString(),"base64"):E;const y={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},w=await n.loadAsync(b);for(const S of Object.values(w.files))if(!S.dir){let M,B=S.name;if(B[0]==="/"&&(B=B.substr(1)),B.match(/xl\/media\//)||B.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))M=new e,M.write(await S.async("nodebuffer"));else{let O;M=new e({writableObjectMode:!0,readableObjectMode:!0}),O=c.browser?d(await S.async("nodebuffer")):await S.async("string");const H=16384;for(let z=0;z<O.length;z+=H)M.write(O.substring(z,z+H))}switch(M.end(),B){case"_rels/.rels":y.globalRels=await this.parseRels(M);break;case"xl/workbook.xml":{const O=await this.parseWorkbook(M);y.sheets=O.sheets,y.definedNames=O.definedNames,y.views=O.views,y.properties=O.properties,y.calcProperties=O.calcProperties;break}case"xl/_rels/workbook.xml.rels":y.workbookRels=await this.parseRels(M);break;case"xl/sharedStrings.xml":y.sharedStrings=new g,await y.sharedStrings.parseStream(M);break;case"xl/styles.xml":y.styles=new h,await y.styles.parseStream(M);break;case"docProps/app.xml":{const O=new C,H=await O.parseStream(M);y.company=H.company,y.manager=H.manager;break}case"docProps/core.xml":{const O=new f,H=await O.parseStream(M);Object.assign(y,H);break}default:{let O=B.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(O){await this._processWorksheetEntry(M,y,O[1],_,B);break}if(O=B.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),O){await this._processWorksheetRelsEntry(M,y,O[1]);break}if(O=B.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),O){await this._processThemeEntry(M,y,O[1]);break}if(O=B.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),O){await this._processMediaEntry(M,y,O[1]);break}if(O=B.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),O){await this._processDrawingEntry(M,y,O[1]);break}if(O=B.match(/xl\/(comments\d+)[.]xml/),O){await this._processCommentEntry(M,y,O[1]);break}if(O=B.match(/xl\/tables\/(table\d+)[.]xml/),O){await this._processTableEntry(M,y,O[1]);break}if(O=B.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),O){await this._processDrawingRelsEntry(M,y,O[1]);break}if(O=B.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),O){await this._processVmlDrawingEntry(M,y,O[1]);break}}}}return this.reconcile(y,_),this.workbook.model=y,this.workbook}async addMedia(E,_){await Promise.all(_.media.map(async b=>{if(b.type==="image"){const y=`xl/media/${b.name}.${b.extension}`;if(b.filename){const w=await function(S,M){return new Promise((B,O)=>{a.readFile(S,M,(H,z)=>{H?O(H):B(z)})})}(b.filename);return E.append(w,{name:y})}if(b.buffer)return E.append(b.buffer,{name:y});if(b.base64){const w=b.base64,S=w.substring(w.indexOf(",")+1);return E.append(S,{name:y,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(E,_){const b=new q,y=new p;_.worksheets.forEach(w=>{const{drawing:S}=w;if(S){b.prepare(S,{});let M=b.toXml(S);E.append(M,{name:`xl/drawings/${S.name}.xml`}),M=y.toXml(S.rels),E.append(M,{name:`xl/drawings/_rels/${S.name}.xml.rels`})}})}addTables(E,_){const b=new N;_.worksheets.forEach(y=>{const{tables:w}=y;w.forEach(S=>{b.prepare(S,{});const M=b.toXml(S);E.append(M,{name:"xl/tables/"+S.target})})})}async addContentTypes(E,_){const b=new x().toXml(_);E.append(b,{name:"[Content_Types].xml"})}async addApp(E,_){const b=new C().toXml(_);E.append(b,{name:"docProps/app.xml"})}async addCore(E,_){const b=new f;E.append(b.toXml(_),{name:"docProps/core.xml"})}async addThemes(E,_){const b=_.themes||{theme1:W};Object.keys(b).forEach(y=>{const w=b[y],S=`xl/theme/${y}.xml`;E.append(w,{name:S})})}async addOfficeRels(E){const _=new p().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"}]);E.append(_,{name:"_rels/.rels"})}async addWorkbookRels(E,_){let b=1;const y=[{Id:"rId"+b++,Type:L.RelType.Styles,Target:"styles.xml"},{Id:"rId"+b++,Type:L.RelType.Theme,Target:"theme/theme1.xml"}];_.sharedStrings.count&&y.push({Id:"rId"+b++,Type:L.RelType.SharedStrings,Target:"sharedStrings.xml"}),_.worksheets.forEach(S=>{S.rId="rId"+b++,y.push({Id:S.rId,Type:L.RelType.Worksheet,Target:`worksheets/sheet${S.id}.xml`})});const w=new p().toXml(y);E.append(w,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(E,_){_.sharedStrings&&_.sharedStrings.count&&E.append(_.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(E,_){const{xml:b}=_.styles;b&&E.append(b,{name:"xl/styles.xml"})}async addWorkbook(E,_){const b=new T;E.append(b.toXml(_),{name:"xl/workbook.xml"})}async addWorksheets(E,_){const b=new D,y=new p,w=new P,S=new V;_.worksheets.forEach(M=>{let B=new i;b.render(B,M),E.append(B.xml,{name:`xl/worksheets/sheet${M.id}.xml`}),M.rels&&M.rels.length&&(B=new i,y.render(B,M.rels),E.append(B.xml,{name:`xl/worksheets/_rels/sheet${M.id}.xml.rels`})),M.comments.length>0&&(B=new i,w.render(B,M),E.append(B.xml,{name:`xl/comments${M.id}.xml`}),B=new i,S.render(B,M),E.append(B.xml,{name:`xl/drawings/vmlDrawing${M.id}.vml`}))})}_finalize(E){return new Promise((_,b)=>{E.on("finish",()=>{_(this)}),E.on("error",b),E.finalize()})}prepareModel(E,_){E.creator=E.creator||"ExcelJS",E.lastModifiedBy=E.lastModifiedBy||"ExcelJS",E.created=E.created||new Date,E.modified=E.modified||new Date,E.useSharedStrings=_.useSharedStrings===void 0||_.useSharedStrings,E.useStyles=_.useStyles===void 0||_.useStyles,E.sharedStrings=new g,E.styles=E.useStyles?new h(!0):new h.Mock;const b=new T,y=new D;b.prepare(E);const w={sharedStrings:E.sharedStrings,styles:E.styles,date1904:E.properties.date1904,drawingsCount:0,media:E.media};w.drawings=E.drawings=[],w.commentRefs=E.commentRefs=[];let S=0;E.tables=[],E.worksheets.forEach(M=>{M.tables.forEach(B=>{S++,B.target=`table${S}.xml`,B.id=S,E.tables.push(B)}),y.prepare(M,w)})}async write(E,_){_=_||{};const{model:b}=this.workbook,y=new r.ZipWriter(_.zip);return y.pipe(E),this.prepareModel(b,_),await this.addContentTypes(y,b),await this.addOfficeRels(y,b),await this.addWorkbookRels(y,b),await this.addWorksheets(y,b),await this.addSharedStrings(y,b),await this.addDrawings(y,b),await this.addTables(y,b),await Promise.all([this.addThemes(y,b),this.addStyles(y,b)]),await this.addMedia(y,b),await Promise.all([this.addApp(y,b),this.addCore(y,b)]),await this.addWorkbook(y,b),this._finalize(y)}writeFile(E,_){const b=a.createWriteStream(E);return new Promise((y,w)=>{b.on("finish",()=>{y()}),b.on("error",S=>{w(S)}),this.write(b,_).then(()=>{b.end()}).catch(S=>{w(S)})})}async writeBuffer(E){const _=new u;return await this.write(_,E),_.read()}}L.RelType=t("./rel-type"),v.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,v,m){v.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,v,m){(function(c){(function(){Object.defineProperty(m,"__esModule",{value:!0}),m.CsvFormatterStream=void 0;const o=t("stream"),a=t("./formatter");class n extends o.Transform{constructor(r){super({writableObjectMode:r.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=r,this.rowFormatter=new a.RowFormatter(r),this.hasWrittenBOM=!r.writeBOM}transform(r){return this.rowFormatter.rowTransform=r,this}_transform(r,u,s){let i=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(r,(d,h)=>d?(i=!0,s(d)):(h&&h.forEach(f=>{this.push(c.from(f,"utf8"))}),i=!0,s()))}catch(d){if(i)throw d;s(d)}}_flush(r){this.rowFormatter.finish((u,s)=>u?r(u):(s&&s.forEach(i=>{this.push(c.from(i,"utf8"))}),r()))}}m.CsvFormatterStream=n}).call(this)}).call(this,t("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(t,v,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 o;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&&((o=c.writeHeaders)===null||o===void 0||o),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(t,v,m){var c=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(m,"__esModule",{value:!0}),m.FieldFormatter=void 0;const o=c(t("lodash.isboolean")),a=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|
|