@selfeesas/shared-components 0.3.4 → 0.3.5
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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),Yn={xs:18,sm:24,md:32,lg:38,xl:46},Nt={size:String};function jt(e,n=Yn){return t.computed(()=>e.size!==void 0?{fontSize:e.size in n?`${n[e.size]}px`:e.size}:null)}function Dt(e,n,l,a){return Object.defineProperty(e,n,{get:l,set:a,enumerable:!0}),e}function ae(e){return t.markRaw(t.defineComponent(e))}function rl(e){return t.markRaw(e)}const Ma=(e,n)=>{const l=t.reactive(e);for(const a in e)Dt(n,a,()=>l[a],o=>{l[a]=o});return n};function ke(e,n){return e!==void 0&&e()||n}function wo(e,n){if(e!==void 0){const l=e();if(l!=null)return l.slice()}return n}function Ae(e,n){return e!==void 0?n.concat(e()):n}function So(e,n){return e===void 0?n:n!==void 0?n.concat(e()):e()}function Va(e,n,l,a,o,r){n.key=a+o;const i=t.h(e,n,l);return o===!0?t.withDirectives(i,r()):i}const kl="0 0 24 24",qn=e=>e,Mn=e=>`ionicons ${e}`,ko={"mdi-":e=>`mdi ${e}`,"icon-":qn,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Mn,"ion-ios":Mn,"ion-logo":Mn,"iconfont ":qn,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":qn},xo={o_:"-outlined",r_:"-round",s_:"-sharp"},Co={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Ea=new RegExp("^("+Object.keys(ko).join("|")+")"),Da=new RegExp("^("+Object.keys(xo).join("|")+")"),xl=new RegExp("^("+Object.keys(Co).join("|")+")"),za=/^[Mm]\s?[-+]?\.?\d/,Ta=/^img:/,Ba=/^svguse:/,$a=/^ion-/,Oa=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,qe=ae({name:"QIcon",props:{...Nt,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:n}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=jt(e),o=t.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=t.computed(()=>{let i,u=e.name;if(u==="none"||!u)return{none:!0};if(l.iconMapFn!==null){const s=l.iconMapFn(u);if(s!==void 0)if(s.icon!==void 0){if(u=s.icon,u==="none"||!u)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(za.test(u)===!0){const[s,h=kl]=u.split("|");return{svg:!0,viewBox:h,nodes:s.split("&&").map(y=>{const[m,b,V]=y.split("@@");return t.h("path",{style:b,d:m,transform:V})})}}if(Ta.test(u)===!0)return{img:!0,src:u.substring(4)};if(Ba.test(u)===!0){const[s,h=kl]=u.split("|");return{svguse:!0,src:s.substring(7),viewBox:h}}let c=" ";const f=u.match(Ea);if(f!==null)i=ko[f[1]](u);else if(Oa.test(u)===!0)i=u;else if($a.test(u)===!0)i=`ionicons ion-${l.platform.is.ios===!0?"ios":"md"}${u.substring(3)}`;else if(xl.test(u)===!0){i="notranslate material-symbols";const s=u.match(xl);s!==null&&(u=u.substring(6),i+=Co[s[1]]),c=u}else{i="notranslate material-icons";const s=u.match(Da);s!==null&&(u=u.substring(2),i+=xo[s[1]]),c=u}return{cls:i,content:c}});return()=>{const i={class:o.value,style:a.value,"aria-hidden":"true"};return r.value.none===!0?t.h(e.tag,i,ke(n.default)):r.value.img===!0?t.h(e.tag,i,Ae(n.default,[t.h("img",{src:r.value.src})])):r.value.svg===!0?t.h(e.tag,i,Ae(n.default,[t.h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?t.h(e.tag,i,Ae(n.default,[t.h("svg",{viewBox:r.value.viewBox},[t.h("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(i.class+=" "+r.value.cls),t.h(e.tag,i,Ae(n.default,[r.value.content])))}}});function an(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:n}=e.$;for(;Object(n)===n;){if(Object(n.proxy)===n.proxy)return n.proxy;n=n.parent}}function _o(e,n){typeof n.type=="symbol"?Array.isArray(n.children)===!0&&n.children.forEach(l=>{_o(e,l)}):e.add(n)}function Aa(e){const n=new Set;return e.forEach(l=>{_o(n,l)}),Array.from(n)}function qo(e){return e.appContext.config.globalProperties.$router!==void 0}function Mo(e){return e.isUnmounted===!0||e.isDeactivated===!0}function Cl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function _l(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function La(e,n){for(const l in n){const a=n[l],o=e[l];if(typeof a=="string"){if(a!==o)return!1}else if(Array.isArray(o)===!1||o.length!==a.length||a.some((r,i)=>r!==o[i]))return!1}return!0}function ql(e,n){return Array.isArray(n)===!0?e.length===n.length&&e.every((l,a)=>l===n[a]):e.length===1&&e[0]===n}function Ra(e,n){return Array.isArray(e)===!0?ql(e,n):Array.isArray(n)===!0?ql(n,e):e===n}function Fa(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const l in e)if(Ra(e[l],n[l])===!1)return!1;return!0}const Vo={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Eo={...Vo,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function il({fallbackTag:e,useDisableForRouterLinkProps:n=!0}={}){const l=t.getCurrentInstance(),{props:a,proxy:o,emit:r}=l,i=qo(l),u=t.computed(()=>a.disable!==!0&&a.href!==void 0),c=n===!0?t.computed(()=>i===!0&&a.disable!==!0&&u.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):t.computed(()=>i===!0&&u.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),f=t.computed(()=>c.value===!0?M(a.to):null),s=t.computed(()=>f.value!==null),h=t.computed(()=>u.value===!0||s.value===!0),y=t.computed(()=>a.type==="a"||h.value===!0?"a":a.tag||e||"div"),m=t.computed(()=>u.value===!0?{href:a.href,target:a.target}:s.value===!0?{href:f.value.href,target:a.target}:{}),b=t.computed(()=>{if(s.value===!1)return-1;const{matched:q}=f.value,{length:B}=q,A=q[B-1];if(A===void 0)return-1;const K=o.$route.matched;if(K.length===0)return-1;const E=K.findIndex(_l.bind(null,A));if(E!==-1)return E;const D=Cl(q[B-2]);return B>1&&Cl(A)===D&&K[K.length-1].path!==D?K.findIndex(_l.bind(null,q[B-2])):E}),V=t.computed(()=>s.value===!0&&b.value!==-1&&La(o.$route.params,f.value.params)),p=t.computed(()=>V.value===!0&&b.value===o.$route.matched.length-1&&Fa(o.$route.params,f.value.params)),F=t.computed(()=>s.value===!0?p.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":V.value===!0?` ${a.activeClass}`:"":"");function M(q){try{return o.$router.resolve(q)}catch{}return null}function T(q,{returnRouterError:B,to:A=a.to,replace:K=a.replace}={}){if(a.disable===!0)return q.preventDefault(),Promise.resolve(!1);if(q.metaKey||q.altKey||q.ctrlKey||q.shiftKey||q.button!==void 0&&q.button!==0||a.target==="_blank")return Promise.resolve(!1);q.preventDefault();const E=o.$router[K===!0?"replace":"push"](A);return B===!0?E:E.then(()=>{}).catch(()=>{})}function x(q){if(s.value===!0){const B=A=>T(q,A);r("click",q,B),q.defaultPrevented!==!0&&B()}else r("click",q)}return{hasRouterLink:s,hasHrefLink:u,hasLink:h,linkTag:y,resolvedLink:f,linkIsActive:V,linkIsExactActive:p,linkClass:F,linkAttrs:m,getLink:M,navigateToRouterLink:T,navigateOnClick:x}}const Ha=ae({name:"QBreadcrumbsEl",props:{...Eo,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:n}){const{linkTag:l,linkAttrs:a,linkClass:o,navigateOnClick:r}=il(),i=t.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(e.disable!==!0?"q-link--focusable"+o.value:"q-breadcrumbs__el--disable"),...a.value,onClick:r})),u=t.computed(()=>"q-breadcrumbs__el-icon"+(e.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const c=[];return e.icon!==void 0&&c.push(t.h(qe,{class:u.value,name:e.icon})),e.label!==void 0&&c.push(e.label),t.h(l.value,{...i.value},Ae(n.default,c))}}}),Do={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Pa=Object.keys(Do),zo={align:{type:String,validator:e=>Pa.includes(e)}};function To(e){return t.computed(()=>{const n=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Do[n]}`})}const Ia=["",!0],Na=ae({name:"QBreadcrumbs",props:{...zo,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:n}){const l=To(e),a=t.computed(()=>`flex items-center ${l.value}${e.gutter==="none"?"":` q-gutter-${e.gutter}`}`),o=t.computed(()=>e.separatorColor?` text-${e.separatorColor}`:""),r=t.computed(()=>` text-${e.activeColor}`);return()=>{if(n.default===void 0)return;const i=Aa(ke(n.default));if(i.length===0)return;let u=1;const c=[],f=i.filter(h=>{var y;return((y=h.type)==null?void 0:y.name)==="QBreadcrumbsEl"}).length,s=n.separator!==void 0?n.separator:()=>e.separator;return i.forEach(h=>{var y;if(((y=h.type)==null?void 0:y.name)==="QBreadcrumbsEl"){const m=u<f,b=h.props!==null&&Ia.includes(h.props.disable),V=(m===!0?"":" q-breadcrumbs--last")+(b!==!0&&m===!0?r.value:"");u++,c.push(t.h("div",{class:`flex items-center${V}`},[h])),m===!0&&c.push(t.h("div",{class:"q-breadcrumbs__separator"+o.value},s()))}else c.push(h)}),t.h("div",{class:"q-breadcrumbs"},[t.h("div",{class:a.value},c)])}}}),ja=t.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(e){const n=e,l=t.useAttrs(),a=t.computed(()=>{const{activeColor:y,separatorIcon:m,separatorSize:b,separatorColor:V,...p}=l;return p}),o=y=>({"data-cy":y.dataCy,class:"cursor-pointer text-h5",color:y.color}),r=t.computed(()=>n.activeColor||"primary"),i=t.computed(()=>n.separatorIcon||"chevron_right"),u=t.computed(()=>n.separatorSize||"2em"),c=t.computed(()=>n.separatorColor||"primary"),f=t.computed(()=>({store:n.store,route:n.route,navStore:n.navStore||{}})),s=t.computed(()=>{const y=[];return n.breadcrumbConfig.forEach(m=>{if(!m.shouldRender(f.value))return;const b=m.getLabel?m.getLabel(f.value):m.defaultLabel,V=m.getColor?m.getColor(f.value):"dark",p={name:m.routeName,...m.getRouteParams&&{params:m.getRouteParams(f.value)}},F=m.clearActions?m.clearActions.map(M=>()=>M(f.value)):[];y.push({label:b,dataCy:m.dataCy,color:V,route:p,clearActions:F})}),y}),h=y=>{y.clearActions&&y.clearActions.forEach(m=>m()),n.router.push(y.route)};return(y,m)=>(t.openBlock(),t.createBlock(Na,t.mergeProps({"active-color":r.value,class:"text-brown"},a.value),{separator:t.withCtx(()=>[t.createVNode(qe,{size:u.value,name:i.value,color:c.value},null,8,["size","name","color"])]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(b,V)=>(t.openBlock(),t.createBlock(Ha,t.mergeProps({key:V},{ref_for:!0},o(b),{label:b.label,onClick:p=>h(b)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),Ya={size:{type:[String,Number],default:"1em"},color:String};function Ua(e){return{cSize:t.computed(()=>e.size in Yn?`${Yn[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Bo=ae({name:"QSpinner",props:{...Ya,thickness:{type:Number,default:5}},setup(e){const{cSize:n,classes:l}=Ua(e);return()=>t.h("svg",{class:l.value+" q-spinner-mat",width:n.value,height:n.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Un(e,n){const l=e.style;for(const a in n)l[a]=n[a]}function Qa(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const n=t.unref(e);if(n)return n.$el||n}function $o(e,n){if(e==null||e.contains(n)===!0)return!0;for(let l=e.nextElementSibling;l!==null;l=l.nextElementSibling)if(l.contains(n))return!0;return!1}const pe={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(pe,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function mn(){}function Wa(e){return e.button===0}function Ht(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function Ka(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const n=[];let l=e.target;for(;l;){if(n.push(l),l.tagName==="HTML")return n.push(document),n.push(window),n;l=l.parentElement}}function De(e){e.stopPropagation()}function _e(e){e.cancelable!==!1&&e.preventDefault()}function ge(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Vn(e,n){if(e===void 0||n===!0&&e.__dragPrevented===!0)return;const l=n===!0?a=>{a.__dragPrevented=!0,a.addEventListener("dragstart",_e,pe.notPassiveCapture)}:a=>{delete a.__dragPrevented,a.removeEventListener("dragstart",_e,pe.notPassiveCapture)};e.querySelectorAll("a, img").forEach(l)}function vt(e,n,l){const a=`__q_${n}_evt`;e[a]=e[a]!==void 0?e[a].concat(l):l,l.forEach(o=>{o[0].addEventListener(o[1],e[o[2]],pe[o[3]])})}function Ft(e,n){const l=`__q_${n}_evt`;e[l]!==void 0&&(e[l].forEach(a=>{a[0].removeEventListener(a[1],e[a[2]],pe[a[3]])}),e[l]=void 0)}function ul(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function tt(e,n){return ul(e)===!0?!1:[].concat(n).includes(e.keyCode)}function Xa(e,n=250){let l=!1,a;return function(){return l===!1&&(l=!0,setTimeout(()=>{l=!1},n),a=e.apply(this,arguments)),a}}function Ml(e,n,l,a){l.modifiers.stop===!0&&De(e);const o=l.modifiers.color;let r=l.modifiers.center;r=r===!0||a===!0;const i=document.createElement("span"),u=document.createElement("span"),c=Ht(e),{left:f,top:s,width:h,height:y}=n.getBoundingClientRect(),m=Math.sqrt(h*h+y*y),b=m/2,V=`${(h-m)/2}px`,p=r?V:`${c.left-f-b}px`,F=`${(y-m)/2}px`,M=r?F:`${c.top-s-b}px`;u.className="q-ripple__inner",Un(u,{height:`${m}px`,width:`${m}px`,transform:`translate3d(${p},${M},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${o?" text-"+o:""}`,i.setAttribute("dir","ltr"),i.appendChild(u),n.appendChild(i);const T=()=>{i.remove(),clearTimeout(x)};l.abort.push(T);let x=setTimeout(()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${V},${F},0) scale3d(1,1,1)`,u.style.opacity=.2,x=setTimeout(()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,x=setTimeout(()=>{i.remove(),l.abort.splice(l.abort.indexOf(T),1)},275)},250)},50)}function Vl(e,{modifiers:n,value:l,arg:a}){const o=Object.assign({},e.cfg.ripple,n,l);e.modifiers={early:o.early===!0,stop:o.stop===!0,center:o.center===!0,color:o.color||a,keyCodes:[].concat(o.keyCodes||13)}}const Oo=rl({name:"ripple",beforeMount(e,n){const l=n.instance.$.appContext.config.globalProperties.$q.config||{};if(l.ripple===!1)return;const a={cfg:l,enabled:n.value!==!1,modifiers:{},abort:[],start(o){a.enabled===!0&&o.qSkipRipple!==!0&&o.type===(a.modifiers.early===!0?"pointerdown":"click")&&Ml(o,e,a,o.qKeyEvent===!0)},keystart:Xa(o=>{a.enabled===!0&&o.qSkipRipple!==!0&&tt(o,a.modifiers.keyCodes)===!0&&o.type===`key${a.modifiers.early===!0?"down":"up"}`&&Ml(o,e,a,!0)},300)};Vl(a,n),e.__qripple=a,vt(a,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,n){if(n.oldValue!==n.value){const l=e.__qripple;l!==void 0&&(l.enabled=n.value!==!1,l.enabled===!0&&Object(n.value)===n.value&&Vl(l,n))}},beforeUnmount(e){const n=e.__qripple;n!==void 0&&(n.abort.forEach(l=>{l()}),Ft(n,"main"),delete e._qripple)}}),El={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Za={xs:8,sm:10,md:14,lg:20,xl:24},Ja=["button","submit","reset"],Ga=/[^\s]\/[^\s]/,er=["flat","outline","push","unelevated"];function tr(e,n){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":n}const nr={...Nt,...Vo,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...er.reduce((e,n)=>(e[n]=Boolean)&&e,{}),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:{...zo.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},lr={...nr,round:Boolean};function or(e){const n=jt(e,Za),l=To(e),{hasRouterLink:a,hasLink:o,linkTag:r,linkAttrs:i,navigateOnClick:u}=il({fallbackTag:"button"}),c=t.computed(()=>{const p=e.fab===!1&&e.fabMini===!1?n.value:{};return e.padding!==void 0?Object.assign({},p,{padding:e.padding.split(/\s+/).map(F=>F in El?El[F]+"px":F).join(" "),minWidth:"0",minHeight:"0"}):p}),f=t.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=t.computed(()=>e.disable!==!0&&e.loading!==!0),h=t.computed(()=>s.value===!0?e.tabindex||0:-1),y=t.computed(()=>tr(e,"standard")),m=t.computed(()=>{const p={tabindex:h.value};return o.value===!0?Object.assign(p,i.value):Ja.includes(e.type)===!0&&(p.type=e.type),r.value==="a"?(e.disable===!0?p["aria-disabled"]="true":p.href===void 0&&(p.role="button"),a.value!==!0&&Ga.test(e.type)===!0&&(p.type=e.type)):e.disable===!0&&(p.disabled="",p["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(p,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),p}),b=t.computed(()=>{let p;e.color!==void 0?e.flat===!0||e.outline===!0?p=`text-${e.textColor||e.color}`:p=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(p=`text-${e.textColor}`);const F=e.round===!0?"round":`rectangle${f.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${y.value} q-btn--${F}`+(p!==void 0?" "+p:"")+(s.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),V=t.computed(()=>l.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:b,style:c,innerClasses:V,attributes:m,hasLink:o,linkTag:r,navigateOnClick:u,isActionable:s}}const{passiveCapture:Be}=pe;let St=null,kt=null,xt=null;const Me=ae({name:"QBtn",props:{...lr,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:n,emit:l}){const{proxy:a}=t.getCurrentInstance(),{classes:o,style:r,innerClasses:i,attributes:u,hasLink:c,linkTag:f,navigateOnClick:s,isActionable:h}=or(e),y=t.ref(null),m=t.ref(null);let b=null,V,p=null;const F=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),M=t.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:c.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),T=t.computed(()=>({center:e.round})),x=t.computed(()=>{const w=Math.max(0,Math.min(100,e.percentage));return w>0?{transition:"transform 0.6s",transform:`translateX(${w-100}%)`}:{}}),q=t.computed(()=>{if(e.loading===!0)return{onMousedown:j,onTouchstart:j,onClick:j,onKeydown:j,onKeyup:j};if(h.value===!0){const w={onClick:A,onKeydown:K,onMousedown:D};if(a.$q.platform.has.touch===!0){const z=e.onTouchstart!==void 0?"":"Passive";w[`onTouchstart${z}`]=E}return w}return{onClick:ge}}),B=t.computed(()=>({ref:y,class:"q-btn q-btn-item non-selectable no-outline "+o.value,style:r.value,...u.value,...q.value}));function A(w){if(y.value!==null){if(w!==void 0){if(w.defaultPrevented===!0)return;const z=document.activeElement;if(e.type==="submit"&&z!==document.body&&y.value.contains(z)===!1&&z.contains(y.value)===!1){w.qAvoidFocus!==!0&&y.value.focus();const O=()=>{var W;document.removeEventListener("keydown",ge,!0),document.removeEventListener("keyup",O,Be),(W=y.value)==null||W.removeEventListener("blur",O,Be)};document.addEventListener("keydown",ge,!0),document.addEventListener("keyup",O,Be),y.value.addEventListener("blur",O,Be)}}s(w)}}function K(w){y.value!==null&&(l("keydown",w),tt(w,[13,32])===!0&&kt!==y.value&&(kt!==null&&C(),w.defaultPrevented!==!0&&(w.qAvoidFocus!==!0&&y.value.focus(),kt=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("keyup",$,!0),y.value.addEventListener("blur",$,Be)),ge(w)))}function E(w){y.value!==null&&(l("touchstart",w),w.defaultPrevented!==!0&&(St!==y.value&&(St!==null&&C(),St=y.value,b=w.target,b.addEventListener("touchcancel",$,Be),b.addEventListener("touchend",$,Be)),V=!0,p!==null&&clearTimeout(p),p=setTimeout(()=>{p=null,V=!1},200)))}function D(w){y.value!==null&&(w.qSkipRipple=V===!0,l("mousedown",w),w.defaultPrevented!==!0&&xt!==y.value&&(xt!==null&&C(),xt=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("mouseup",$,Be)))}function $(w){if(y.value!==null&&!((w==null?void 0:w.type)==="blur"&&document.activeElement===y.value)){if((w==null?void 0:w.type)==="keyup"){if(kt===y.value&&tt(w,[13,32])===!0){const z=new MouseEvent("click",w);z.qKeyEvent=!0,w.defaultPrevented===!0&&_e(z),w.cancelBubble===!0&&De(z),y.value.dispatchEvent(z),ge(w),w.qKeyEvent=!0}l("keyup",w)}C()}}function C(w){var O,W;const z=m.value;w!==!0&&(St===y.value||xt===y.value)&&z!==null&&z!==document.activeElement&&(z.setAttribute("tabindex",-1),z.focus()),St===y.value&&(b!==null&&(b.removeEventListener("touchcancel",$,Be),b.removeEventListener("touchend",$,Be)),St=b=null),xt===y.value&&(document.removeEventListener("mouseup",$,Be),xt=null),kt===y.value&&(document.removeEventListener("keyup",$,!0),(O=y.value)==null||O.removeEventListener("blur",$,Be),kt=null),(W=y.value)==null||W.classList.remove("q-btn--active")}function j(w){ge(w),w.qSkipRipple=!0}return t.onBeforeUnmount(()=>{C(!0)}),Object.assign(a,{click:w=>{h.value===!0&&A(w)}}),()=>{let w=[];e.icon!==void 0&&w.push(t.h(qe,{name:e.icon,left:e.stack!==!0&&F.value===!0,role:"img"})),F.value===!0&&w.push(t.h("span",{class:"block"},[e.label])),w=Ae(n.default,w),e.iconRight!==void 0&&e.round===!1&&w.push(t.h(qe,{name:e.iconRight,right:e.stack!==!0&&F.value===!0,role:"img"}));const z=[t.h("span",{class:"q-focus-helper",ref:m})];return e.loading===!0&&e.percentage!==void 0&&z.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:x.value})])),z.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+i.value},w)),e.loading!==null&&z.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},n.loading!==void 0?n.loading():[t.h(Bo)])]:null)),t.withDirectives(t.h(f.value,B.value,z),[[Oo,M.value,void 0,T.value]])}}}),ar={class:"row justify-between"},rr=t.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})}},setup(e){const n=e,l=t.inject("navContext",null),a=t.inject("router");function o(r){if(!a){console.warn("Dependencies not available:",{router:a});return}l==null||l.setTabs();const i=r==="back"?n.from:n.to;if(!i){console.warn("Destination not provided:",r);return}a.push({name:i,params:n.params})}return(r,i)=>(t.openBlock(),t.createElementBlock("div",ar,[t.createVNode(Me,{icon:"chevron_left","rounded-sm":"",label:r.labelFrom,onClick:i[0]||(i[0]=u=>o("back")),"data-cy":"go-back"},null,8,["label"]),r.labelTo?(t.openBlock(),t.createBlock(Me,{key:0,label:r.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next",onClick:i[1]||(i[1]=u=>o("next"))},null,8,["label"])):t.createCommentVNode("",!0)]))}}),Yt=(e,n)=>{const l=e.__vccOpts||e;for(const[a,o]of n)l[a]=o;return l},ir=Yt(rr,[["__scopeId","data-v-c5e3fee0"]]),Pe={dark:{type:Boolean,default:null}};function Ie(e,n){return t.computed(()=>e.dark===null?n.dark.isActive:e.dark)}function ur(e,n){const l=t.ref(null),a=t.computed(()=>e.disable===!0?null:t.h("span",{ref:l,class:"no-outline",tabindex:-1}));function o(r){const i=n.value;(r==null?void 0:r.qAvoidFocus)!==!0&&((r==null?void 0:r.type.indexOf("key"))===0?document.activeElement!==i&&(i==null?void 0:i.contains(document.activeElement))===!0&&i.focus():l.value!==null&&(r===void 0||(i==null?void 0:i.contains(r.target))===!0)&&l.value.focus())}return{refocusTargetEl:a,refocusTarget:o}}const hn={name:String};function sr(e){return t.computed(()=>({type:"hidden",name:e.name,value:e.modelValue}))}function Ao(e={}){return(n,l,a)=>{n[l](t.h("input",{class:"hidden"+(a||""),...e.value}))}}function Lo(e){return t.computed(()=>e.name||e.for)}const cr={xs:30,sm:35,md:40,lg:50,xl:60},dr={...Pe,...Nt,...hn,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:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},fr=["update:modelValue"];function vr(e,n){const{props:l,slots:a,emit:o,proxy:r}=t.getCurrentInstance(),{$q:i}=r,u=Ie(l,i),c=t.ref(null),{refocusTargetEl:f,refocusTarget:s}=ur(l,c),h=jt(l,cr),y=t.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),m=t.computed(()=>{const C=t.toRaw(l.val);return y.value===!0?l.modelValue.findIndex(j=>t.toRaw(j)===C):-1}),b=t.computed(()=>y.value===!0?m.value!==-1:t.toRaw(l.modelValue)===t.toRaw(l.trueValue)),V=t.computed(()=>y.value===!0?m.value===-1:t.toRaw(l.modelValue)===t.toRaw(l.falseValue)),p=t.computed(()=>b.value===!1&&V.value===!1),F=t.computed(()=>l.disable===!0?-1:l.tabindex||0),M=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(u.value===!0?` q-${e}--dark`:"")+(l.dense===!0?` q-${e}--dense`:"")+(l.leftLabel===!0?" reverse":"")),T=t.computed(()=>{const C=b.value===!0?"truthy":V.value===!0?"falsy":"indet",j=l.color!==void 0&&(l.keepColor===!0||V.value!==!0)?` text-${l.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${C}${j}`}),x=t.computed(()=>{const C={type:"checkbox"};return l.name!==void 0&&Object.assign(C,{".checked":b.value,"^checked":b.value===!0?"checked":void 0,name:l.name,value:y.value===!0?l.val:l.trueValue}),C}),q=Ao(x),B=t.computed(()=>{const C={tabindex:F.value,role:"checkbox","aria-label":l.label,"aria-checked":p.value===!0?"mixed":b.value===!0?"true":"false"};return l.disable===!0&&(C["aria-disabled"]="true"),C});function A(C){C!==void 0&&(ge(C),s(C)),l.disable!==!0&&o("update:modelValue",K(),C)}function K(){if(y.value===!0){if(b.value===!0){const C=l.modelValue.slice();return C.splice(m.value,1),C}return l.modelValue.concat([l.val])}if(b.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(V.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function E(C){(C.keyCode===13||C.keyCode===32)&&ge(C)}function D(C){(C.keyCode===13||C.keyCode===32)&&A(C)}const $=n(b,p);return Object.assign(r,{toggle:A}),()=>{const C=$();l.disable!==!0&&q(C,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const j=[t.h("div",{class:T.value,style:h.value,"aria-hidden":"true"},C)];f.value!==null&&j.push(f.value);const w=l.label!==void 0?Ae(a.default,[l.label]):ke(a.default);return w!==void 0&&j.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},w)),t.h("div",{ref:c,class:M.value,...B.value,onClick:A,onKeydown:E,onKeyup:D},j)}}const mr=()=>t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),hr=ae({name:"QCheckbox",props:dr,emits:fr,setup(e){const n=mr();function l(a,o){const r=t.computed(()=>(a.value===!0?e.checkedIcon:o.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>r.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(qe,{class:"q-checkbox__icon",name:r.value})])]:[n]}return vr("checkbox",l)}}),gr=ae({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[t.h("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),t.h("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),t.withDirectives(t.h("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),t.withDirectives(t.h("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}}),nt=t.ref(!1);let Qn;function br(e,n){const l=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:l[5]||l[3]||l[1]||"",version:l[4]||l[2]||"0",platform:n[0]||""}}function pr(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const Ro="ontouchstart"in window||window.navigator.maxTouchPoints>0;function yr(e){const n=e.toLowerCase(),l=pr(n),a=br(n,l),o={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};a.browser&&(o[a.browser]=!0,o.version=a.version,o.versionNumber=parseInt(a.version,10)),a.platform&&(o[a.platform]=!0);const r=o.android||o.ios||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"];if(r===!0||n.indexOf("mobile")!==-1?o.mobile=!0:o.desktop=!0,o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),o.edga||o.edgios||o.edg?(o.edge=!0,a.browser="edge"):o.crios?(o.chrome=!0,a.browser="chrome"):o.fxios&&(o.firefox=!0,a.browser="firefox"),(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(a.browser="vivaldi",o.vivaldi=!0),(o.chrome||o.opr||o.safari||o.vivaldi||o.mobile===!0&&o.ios!==!0&&r!==!0)&&(o.webkit=!0),o.opr&&(a.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(a.browser="blackberry",o.blackberry=!0):o.playbook?(a.browser="playbook",o.playbook=!0):o.android?(a.browser="android",o.android=!0):o.kindle?(a.browser="kindle",o.kindle=!0):o.silk&&(a.browser="silk",o.silk=!0)),o.name=a.browser,o.platform=a.platform,n.indexOf("electron")!==-1)o.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)o.bex=!0;else{if(window.Capacitor!==void 0?(o.capacitor=!0,o.nativeMobile=!0,o.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(o.cordova=!0,o.nativeMobile=!0,o.nativeMobileWrapper="cordova"),nt.value===!0&&(Qn={is:{...o}}),Ro===!0&&o.mac===!0&&(o.desktop===!0&&o.safari===!0||o.nativeMobile===!0&&o.android!==!0&&o.ios!==!0&&o.ipad!==!0)){delete o.mac,delete o.desktop;const i=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:i,[i]:!0})}o.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}const Dl=navigator.userAgent||navigator.vendor||window.opera,wr={has:{touch:!1,webStorage:!1},within:{iframe:!1}},ye={userAgent:Dl,is:yr(Dl),has:{touch:Ro},within:{iframe:window.self!==window.top}},Wn={install(e){const{$q:n}=e;nt.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(n.platform,ye),nt.value=!1}),n.platform=t.reactive(this)):n.platform=this}};{let e;Dt(ye.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Wn,ye),nt.value===!0&&(Object.assign(Wn,Qn,wr),Qn=null)}function Sr(){const e=t.ref(!nt.value);return e.value===!1&&t.onMounted(()=>{e.value=!0}),{isHydrated:e}}const Fo=typeof ResizeObserver<"u",zl=Fo===!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"},Vt=ae({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:n}){let l=null,a,o={width:-1,height:-1};function r(c){c===!0||e.debounce===0||e.debounce==="0"?i():l===null&&(l=setTimeout(i,e.debounce))}function i(){if(l!==null&&(clearTimeout(l),l=null),a){const{offsetWidth:c,offsetHeight:f}=a;(c!==o.width||f!==o.height)&&(o={width:c,height:f},n("resize",o))}}const{proxy:u}=t.getCurrentInstance();if(u.trigger=r,Fo===!0){let c;const f=s=>{a=u.$el.parentNode,a?(c=new ResizeObserver(r),c.observe(a),i()):s!==!0&&t.nextTick(()=>{f(!0)})};return t.onMounted(()=>{f()}),t.onBeforeUnmount(()=>{l!==null&&clearTimeout(l),c!==void 0&&(c.disconnect!==void 0?c.disconnect():a&&c.unobserve(a))}),mn}else{let c=function(){l!==null&&(clearTimeout(l),l=null),h!==void 0&&(h.removeEventListener!==void 0&&h.removeEventListener("resize",r,pe.passive),h=void 0)},f=function(){c(),a!=null&&a.contentDocument&&(h=a.contentDocument.defaultView,h.addEventListener("resize",r,pe.passive),i())};const{isHydrated:s}=Sr();let h;return t.onMounted(()=>{t.nextTick(()=>{a=u.$el,a&&f()})}),t.onBeforeUnmount(c),()=>{if(s.value===!0)return t.h("object",{class:"q--avoid-card-border",style:zl.style,tabindex:-1,type:"text/html",data:zl.url,"aria-hidden":"true",onLoad:f})}}}}),Ho=[Element,String],kr=[null,document,document.body,document.scrollingElement,document.documentElement];function Po(e,n){let l=Qa(n);if(l===void 0){if(e==null)return window;l=e.closest(".scroll,.scroll-y,.overflow-auto")}return kr.includes(l)?window:l}function sl(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function cl(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Io(e,n,l=0){const a=arguments[3]===void 0?performance.now():arguments[3],o=sl(e);if(l<=0){o!==n&&Kn(e,n);return}requestAnimationFrame(r=>{const i=r-a,u=o+(n-o)/Math.max(i,l)*i;Kn(e,u),u!==n&&Io(e,n,l-i,r)})}function No(e,n,l=0){const a=arguments[3]===void 0?performance.now():arguments[3],o=cl(e);if(l<=0){o!==n&&Xn(e,n);return}requestAnimationFrame(r=>{const i=r-a,u=o+(n-o)/Math.max(i,l)*i;Xn(e,u),u!==n&&No(e,n,l-i,r)})}function Kn(e,n){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,n);return}e.scrollTop=n}function Xn(e,n){if(e===window){window.scrollTo(n,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=n}function Tl(e,n,l){if(l){Io(e,n,l);return}Kn(e,n)}function En(e,n,l){if(l){No(e,n,l);return}Xn(e,n)}let Jt;function rn(){if(Jt!==void 0)return Jt;const e=document.createElement("p"),n=document.createElement("div");Un(e,{width:"100%",height:"200px"}),Un(n,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),n.appendChild(e),document.body.appendChild(n);const l=e.offsetWidth;n.style.overflow="scroll";let a=e.offsetWidth;return l===a&&(a=n.clientWidth),n.remove(),Jt=l-a,Jt}function xr(e,n=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:n?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const{passive:Bl}=pe,Cr=["both","horizontal","vertical"],jo=ae({name:"QScrollObserver",props:{axis:{type:String,validator:e=>Cr.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:Ho},emits:["scroll"],setup(e,{emit:n}){const l={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let a=null,o,r;t.watch(()=>e.scrollTarget,()=>{c(),u()});function i(){a==null||a();const h=Math.max(0,sl(o)),y=cl(o),m={top:h-l.position.top,left:y-l.position.left};if(e.axis==="vertical"&&m.top===0||e.axis==="horizontal"&&m.left===0)return;const b=Math.abs(m.top)>=Math.abs(m.left)?m.top<0?"up":"down":m.left<0?"left":"right";l.position={top:h,left:y},l.directionChanged=l.direction!==b,l.delta=m,l.directionChanged===!0&&(l.direction=b,l.inflectionPoint=l.position),n("scroll",{...l})}function u(){o=Po(r,e.scrollTarget),o.addEventListener("scroll",f,Bl),f(!0)}function c(){o!==void 0&&(o.removeEventListener("scroll",f,Bl),o=void 0)}function f(h){if(h===!0||e.debounce===0||e.debounce==="0")i();else if(a===null){const[y,m]=e.debounce?[setTimeout(i,e.debounce),clearTimeout]:[requestAnimationFrame(i),cancelAnimationFrame];a=()=>{m(y),a=null}}}const{proxy:s}=t.getCurrentInstance();return t.watch(()=>s.$q.lang.rtl,i),t.onMounted(()=>{r=s.$el.parentNode,u()}),t.onBeforeUnmount(()=>{a==null||a(),c()}),Object.assign(s,{trigger:f,getPosition:()=>l}),mn}}),dl={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},_r=Object.keys(dl);dl.all=!0;function $l(e){const n={};for(const l of _r)e[l]===!0&&(n[l]=!0);return Object.keys(n).length===0?dl:(n.horizontal===!0?n.left=n.right=!0:n.left===!0&&n.right===!0&&(n.horizontal=!0),n.vertical===!0?n.up=n.down=!0:n.up===!0&&n.down===!0&&(n.vertical=!0),n.horizontal===!0&&n.vertical===!0&&(n.all=!0),n)}const qr=["INPUT","TEXTAREA"];function Ol(e,n){return n.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof n.handler=="function"&&qr.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(n.uid)===-1)}function Yo(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Wn.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function Dn(e,n,l){const a=Ht(e);let o,r=a.left-n.event.x,i=a.top-n.event.y,u=Math.abs(r),c=Math.abs(i);const f=n.direction;f.horizontal===!0&&f.vertical!==!0?o=r<0?"left":"right":f.horizontal!==!0&&f.vertical===!0?o=i<0?"up":"down":f.up===!0&&i<0?(o="up",u>c&&(f.left===!0&&r<0?o="left":f.right===!0&&r>0&&(o="right"))):f.down===!0&&i>0?(o="down",u>c&&(f.left===!0&&r<0?o="left":f.right===!0&&r>0&&(o="right"))):f.left===!0&&r<0?(o="left",u<c&&(f.up===!0&&i<0?o="up":f.down===!0&&i>0&&(o="down"))):f.right===!0&&r>0&&(o="right",u<c&&(f.up===!0&&i<0?o="up":f.down===!0&&i>0&&(o="down")));let s=!1;if(o===void 0&&l===!1){if(n.event.isFirst===!0||n.event.lastDir===void 0)return{};o=n.event.lastDir,s=!0,o==="left"||o==="right"?(a.left-=r,u=0,r=0):(a.top-=i,c=0,i=0)}return{synthetic:s,payload:{evt:e,touch:n.event.mouse!==!0,mouse:n.event.mouse===!0,position:a,direction:o,isFirst:n.event.isFirst,isFinal:l===!0,duration:Date.now()-n.event.time,distance:{x:u,y:c},offset:{x:r,y:i},delta:{x:a.left-n.event.lastX,y:a.top-n.event.lastY}}}}let Mr=0;const Al=rl({name:"touch-pan",beforeMount(e,{value:n,modifiers:l}){if(l.mouse!==!0&&ye.has.touch!==!0)return;function a(r,i){l.mouse===!0&&i===!0?ge(r):(l.stop===!0&&De(r),l.prevent===!0&&_e(r))}const o={uid:"qvtp_"+Mr++,handler:n,modifiers:l,direction:$l(l),noop:mn,mouseStart(r){Ol(r,o)&&Wa(r)&&(vt(o,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),o.start(r,!0))},touchStart(r){if(Ol(r,o)){const i=r.target;vt(o,"temp",[[i,"touchmove","move","notPassiveCapture"],[i,"touchcancel","end","passiveCapture"],[i,"touchend","end","passiveCapture"]]),o.start(r)}},start(r,i){if(ye.is.firefox===!0&&Vn(e,!0),o.lastEvt=r,i===!0||l.stop===!0){if(o.direction.all!==!0&&(i!==!0||o.modifiers.mouseAllDir!==!0&&o.modifiers.mousealldir!==!0)){const f=r.type.indexOf("mouse")!==-1?new MouseEvent(r.type,r):new TouchEvent(r.type,r);r.defaultPrevented===!0&&_e(f),r.cancelBubble===!0&&De(f),Object.assign(f,{qKeyEvent:r.qKeyEvent,qClickOutside:r.qClickOutside,qAnchorHandled:r.qAnchorHandled,qClonedBy:r.qClonedBy===void 0?[o.uid]:r.qClonedBy.concat(o.uid)}),o.initialEvent={target:r.target,event:f}}De(r)}const{left:u,top:c}=Ht(r);o.event={x:u,y:c,time:Date.now(),mouse:i===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:u,lastY:c}},move(r){if(o.event===void 0)return;const i=Ht(r),u=i.left-o.event.x,c=i.top-o.event.y;if(u===0&&c===0)return;o.lastEvt=r;const f=o.event.mouse===!0,s=()=>{a(r,f);let m;l.preserveCursor!==!0&&l.preservecursor!==!0&&(m=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),f===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Yo(),o.styleCleanup=b=>{if(o.styleCleanup=void 0,m!==void 0&&(document.documentElement.style.cursor=m),document.body.classList.remove("non-selectable"),f===!0){const V=()=>{document.body.classList.remove("no-pointer-events--children")};b!==void 0?setTimeout(()=>{V(),b()},50):V()}else b!==void 0&&b()}};if(o.event.detected===!0){o.event.isFirst!==!0&&a(r,o.event.mouse);const{payload:m,synthetic:b}=Dn(r,o,!1);m!==void 0&&(o.handler(m)===!1?o.end(r):(o.styleCleanup===void 0&&o.event.isFirst===!0&&s(),o.event.lastX=m.position.left,o.event.lastY=m.position.top,o.event.lastDir=b===!0?void 0:m.direction,o.event.isFirst=!1));return}if(o.direction.all===!0||f===!0&&(o.modifiers.mouseAllDir===!0||o.modifiers.mousealldir===!0)){s(),o.event.detected=!0,o.move(r);return}const h=Math.abs(u),y=Math.abs(c);h!==y&&(o.direction.horizontal===!0&&h>y||o.direction.vertical===!0&&h<y||o.direction.up===!0&&h<y&&c<0||o.direction.down===!0&&h<y&&c>0||o.direction.left===!0&&h>y&&u<0||o.direction.right===!0&&h>y&&u>0?(o.event.detected=!0,o.move(r)):o.end(r,!0))},end(r,i){var u;if(o.event!==void 0){if(Ft(o,"temp"),ye.is.firefox===!0&&Vn(e,!1),i===!0)(u=o.styleCleanup)==null||u.call(o),o.event.detected!==!0&&o.initialEvent!==void 0&&o.initialEvent.target.dispatchEvent(o.initialEvent.event);else if(o.event.detected===!0){o.event.isFirst===!0&&o.handler(Dn(r===void 0?o.lastEvt:r,o).payload);const{payload:c}=Dn(r===void 0?o.lastEvt:r,o,!0),f=()=>{o.handler(c)};o.styleCleanup!==void 0?o.styleCleanup(f):f()}o.event=void 0,o.initialEvent=void 0,o.lastEvt=void 0}}};if(e.__qtouchpan=o,l.mouse===!0){const r=l.mouseCapture===!0||l.mousecapture===!0?"Capture":"";vt(o,"main",[[e,"mousedown","mouseStart",`passive${r}`]])}ye.has.touch===!0&&vt(o,"main",[[e,"touchstart","touchStart",`passive${l.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,n){const l=e.__qtouchpan;l!==void 0&&(n.oldValue!==n.value&&(typeof value!="function"&&l.end(),l.handler=n.value),l.direction=$l(n.modifiers))},beforeUnmount(e){var l;const n=e.__qtouchpan;n!==void 0&&(n.event!==void 0&&n.end(),Ft(n,"main"),Ft(n,"temp"),ye.is.firefox===!0&&Vn(e,!1),(l=n.styleCleanup)==null||l.call(n),delete e.__qtouchpan)}});function Ot(e,n,l){return l<=n?n:Math.min(l,Math.max(n,e))}function Ll(e,n,l){if(l<=n)return n;const a=l-n+1;let o=n+(e-n)%a;return o<n&&(o=a+o),o===0?0:o}function re(e,n=2,l="0"){if(e==null)return e;const a=""+e;return a.length>=n?a:new Array(n-a.length+1).join(l)+a}function fl(e,n=250,l){let a=null;function o(){const r=arguments,i=()=>{a=null,e.apply(this,r)};a!==null&&clearTimeout(a),a=setTimeout(i,n)}return o.cancel=()=>{a!==null&&clearTimeout(a)},o}const Rl=["vertical","horizontal"],zn={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},Fl={prevent:!0,mouse:!0,mouseAllDir:!0},Hl=e=>e>=250?50:Math.ceil(e/5),Vr=ae({name:"QScrollArea",props:{...Pe,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(e,{slots:n,emit:l}){const a=t.ref(!1),o=t.ref(!1),r=t.ref(!1),i={vertical:t.ref(0),horizontal:t.ref(0)},u={vertical:{ref:t.ref(null),position:t.ref(0),size:t.ref(0)},horizontal:{ref:t.ref(null),position:t.ref(0),size:t.ref(0)}},{proxy:c}=t.getCurrentInstance(),f=Ie(e,c.$q);let s=null,h;const y=t.ref(null),m=t.computed(()=>"q-scrollarea"+(f.value===!0?" q-scrollarea--dark":""));Object.assign(i,{verticalInner:t.computed(()=>i.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:t.computed(()=>i.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),u.vertical.percentage=t.computed(()=>{const w=u.vertical.size.value-i.vertical.value;if(w<=0)return 0;const z=Ot(u.vertical.position.value/w,0,1);return Math.round(z*1e4)/1e4}),u.vertical.thumbHidden=t.computed(()=>(e.visible===null?r.value:e.visible)!==!0&&a.value===!1&&o.value===!1||u.vertical.size.value<=i.vertical.value+1),u.vertical.thumbStart=t.computed(()=>e.verticalOffset[0]+u.vertical.percentage.value*(i.verticalInner.value-u.vertical.thumbSize.value)),u.vertical.thumbSize=t.computed(()=>Math.round(Ot(i.verticalInner.value*i.verticalInner.value/u.vertical.size.value,Hl(i.verticalInner.value),i.verticalInner.value))),u.vertical.style=t.computed(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${u.vertical.thumbStart.value}px`,height:`${u.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),u.vertical.thumbClass=t.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(u.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),u.vertical.barClass=t.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(u.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),u.horizontal.percentage=t.computed(()=>{const w=u.horizontal.size.value-i.horizontal.value;if(w<=0)return 0;const z=Ot(Math.abs(u.horizontal.position.value)/w,0,1);return Math.round(z*1e4)/1e4}),u.horizontal.thumbHidden=t.computed(()=>(e.visible===null?r.value:e.visible)!==!0&&a.value===!1&&o.value===!1||u.horizontal.size.value<=i.horizontal.value+1),u.horizontal.thumbStart=t.computed(()=>e.horizontalOffset[0]+u.horizontal.percentage.value*(i.horizontalInner.value-u.horizontal.thumbSize.value)),u.horizontal.thumbSize=t.computed(()=>Math.round(Ot(i.horizontalInner.value*i.horizontalInner.value/u.horizontal.size.value,Hl(i.horizontalInner.value),i.horizontalInner.value))),u.horizontal.style=t.computed(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[c.$q.lang.rtl===!0?"right":"left"]:`${u.horizontal.thumbStart.value}px`,width:`${u.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),u.horizontal.thumbClass=t.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(u.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),u.horizontal.barClass=t.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(u.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const b=t.computed(()=>u.vertical.thumbHidden.value===!0&&u.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function V(){const w={};return Rl.forEach(z=>{const O=u[z];Object.assign(w,{[z+"Position"]:O.position.value,[z+"Percentage"]:O.percentage.value,[z+"Size"]:O.size.value,[z+"ContainerSize"]:i[z].value,[z+"ContainerInnerSize"]:i[z+"Inner"].value})}),w}const p=fl(()=>{const w=V();w.ref=c,l("scroll",w)},0);function F(w,z,O){if(Rl.includes(w)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(w==="vertical"?Tl:En)(y.value,z,O)}function M({height:w,width:z}){let O=!1;i.vertical.value!==w&&(i.vertical.value=w,O=!0),i.horizontal.value!==z&&(i.horizontal.value=z,O=!0),O===!0&&A()}function T({position:w}){let z=!1;u.vertical.position.value!==w.top&&(u.vertical.position.value=w.top,z=!0),u.horizontal.position.value!==w.left&&(u.horizontal.position.value=w.left,z=!0),z===!0&&A()}function x({height:w,width:z}){u.horizontal.size.value!==z&&(u.horizontal.size.value=z,A()),u.vertical.size.value!==w&&(u.vertical.size.value=w,A())}function q(w,z){const O=u[z];if(w.isFirst===!0){if(O.thumbHidden.value===!0)return;h=O.position.value,o.value=!0}else if(o.value!==!0)return;w.isFinal===!0&&(o.value=!1);const W=zn[z],L=(O.size.value-i[z].value)/(i[z+"Inner"].value-O.thumbSize.value),X=w.distance[W.dist],ee=h+(w.direction===W.dir?1:-1)*X*L;K(ee,z)}function B(w,z){const O=u[z];if(O.thumbHidden.value!==!0){const W=z==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],L=w[zn[z].offset]-W,X=O.thumbStart.value-W;if(L<X||L>X+O.thumbSize.value){const ee=L-O.thumbSize.value/2,k=Ot(ee/(i[z+"Inner"].value-O.thumbSize.value),0,1);K(k*Math.max(0,O.size.value-i[z].value),z)}O.ref.value!==null&&O.ref.value.dispatchEvent(new MouseEvent(w.type,w))}}function A(){a.value=!0,s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,a.value=!1},e.delay),e.onScroll!==void 0&&p()}function K(w,z){y.value[zn[z].scroll]=w}let E=null;function D(){E!==null&&clearTimeout(E),E=setTimeout(()=>{E=null,r.value=!0},c.$q.platform.is.ios?50:0)}function $(){E!==null&&(clearTimeout(E),E=null),r.value=!1}let C=null;t.watch(()=>c.$q.lang.rtl,w=>{y.value!==null&&En(y.value,Math.abs(u.horizontal.position.value)*(w===!0?-1:1))}),t.onDeactivated(()=>{C={top:u.vertical.position.value,left:u.horizontal.position.value}}),t.onActivated(()=>{if(C===null)return;const w=y.value;w!==null&&(En(w,C.left),Tl(w,C.top))}),t.onBeforeUnmount(p.cancel),Object.assign(c,{getScrollTarget:()=>y.value,getScroll:V,getScrollPosition:()=>({top:u.vertical.position.value,left:u.horizontal.position.value}),getScrollPercentage:()=>({top:u.vertical.percentage.value,left:u.horizontal.percentage.value}),setScrollPosition:F,setScrollPercentage(w,z,O){F(w,z*(u[w].size.value-i[w].value)*(w==="horizontal"&&c.$q.lang.rtl===!0?-1:1),O)}});const j={scroll:u,thumbVertDir:[[Al,w=>{q(w,"vertical")},void 0,{vertical:!0,...Fl}]],thumbHorizDir:[[Al,w=>{q(w,"horizontal")},void 0,{horizontal:!0,...Fl}]],onVerticalMousedown(w){B(w,"vertical")},onHorizontalMousedown(w){B(w,"horizontal")}};return()=>t.h("div",{class:m.value,onMouseenter:D,onMouseleave:$},[t.h("div",{ref:y,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[t.h("div",{class:"q-scrollarea__content absolute",style:b.value},Ae(n.default,[t.h(Vt,{debounce:0,onResize:x})])),t.h(jo,{axis:"both",onScroll:T})]),t.h(Vt,{debounce:0,onResize:M}),t.h(gr,{store:j,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}}),Er=ae({name:"QCard",props:{...Pe,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:n}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=Ie(e,l),o=t.computed(()=>"q-card"+(a.value===!0?" q-card--dark q-dark":"")+(e.bordered===!0?" q-card--bordered":"")+(e.square===!0?" q-card--square no-border-radius":"")+(e.flat===!0?" q-card--flat no-shadow":""));return()=>t.h(e.tag,{class:o.value},ke(n.default))}}),Dr={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Uo={...Dr,contextMenu:Boolean};function Qo({showing:e,avoidEmit:n,configureAnchorEl:l}){const{props:a,proxy:o,emit:r}=t.getCurrentInstance(),i=t.ref(null);let u=null;function c(m){return i.value===null?!1:m===void 0||m.touches===void 0||m.touches.length<=1}const f={};l===void 0&&(Object.assign(f,{hide(m){o.hide(m)},toggle(m){o.toggle(m),m.qAnchorHandled=!0},toggleKey(m){tt(m,13)===!0&&f.toggle(m)},contextClick(m){o.hide(m),_e(m),t.nextTick(()=>{o.show(m),m.qAnchorHandled=!0})},prevent:_e,mobileTouch(m){if(f.mobileCleanup(m),c(m)!==!0)return;o.hide(m),i.value.classList.add("non-selectable");const b=m.target;vt(f,"anchor",[[b,"touchmove","mobileCleanup","passive"],[b,"touchend","mobileCleanup","passive"],[b,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),u=setTimeout(()=>{u=null,o.show(m),m.qAnchorHandled=!0},300)},mobileCleanup(m){i.value.classList.remove("non-selectable"),u!==null&&(clearTimeout(u),u=null),e.value===!0&&m!==void 0&&Yo()}}),l=function(m=a.contextMenu){if(a.noParentEvent===!0||i.value===null)return;let b;m===!0?o.$q.platform.is.mobile===!0?b=[[i.value,"touchstart","mobileTouch","passive"]]:b=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:b=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],vt(f,"anchor",b)});function s(){Ft(f,"anchor")}function h(m){for(i.value=m;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;l()}function y(){if(a.target===!1||a.target===""||o.$el.parentNode===null)i.value=null;else if(a.target===!0)h(o.$el.parentNode);else{let m=a.target;if(typeof a.target=="string")try{m=document.querySelector(a.target)}catch{m=void 0}m!=null?(i.value=m.$el||m,l()):(i.value=null,console.error(`Anchor: target "${a.target}" not found`))}}return t.watch(()=>a.contextMenu,m=>{i.value!==null&&(s(),l(m))}),t.watch(()=>a.target,()=>{i.value!==null&&s(),y()}),t.watch(()=>a.noParentEvent,m=>{i.value!==null&&(m===!0?s():l())}),t.onMounted(()=>{y(),n!==!0&&a.modelValue===!0&&i.value===null&&r("update:modelValue",!1)}),t.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),s()}),{anchorEl:i,canShow:c,anchorEvents:f}}function zr(e,n){const l=t.ref(null);let a;function o(u,c){const f=`${c!==void 0?"add":"remove"}EventListener`,s=c!==void 0?c:a;u!==window&&u[f]("scroll",s,pe.passive),window[f]("scroll",s,pe.passive),a=c}function r(){l.value!==null&&(o(l.value),l.value=null)}const i=t.watch(()=>e.noParentEvent,()=>{l.value!==null&&(r(),n())});return t.onBeforeUnmount(i),{localScrollTarget:l,unconfigureScrollTarget:r,changeScrollEvent:o}}const Wo={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Ko=["beforeShow","show","beforeHide","hide"];function Xo({showing:e,canShow:n,hideOnRouteChange:l,handleShow:a,handleHide:o,processOnMount:r}){const i=t.getCurrentInstance(),{props:u,emit:c,proxy:f}=i;let s;function h(M){e.value===!0?b(M):y(M)}function y(M){if(u.disable===!0||(M==null?void 0:M.qAnchorHandled)===!0||n!==void 0&&n(M)!==!0)return;const T=u["onUpdate:modelValue"]!==void 0;T===!0&&(c("update:modelValue",!0),s=M,t.nextTick(()=>{s===M&&(s=void 0)})),(u.modelValue===null||T===!1)&&m(M)}function m(M){e.value!==!0&&(e.value=!0,c("beforeShow",M),a!==void 0?a(M):c("show",M))}function b(M){if(u.disable===!0)return;const T=u["onUpdate:modelValue"]!==void 0;T===!0&&(c("update:modelValue",!1),s=M,t.nextTick(()=>{s===M&&(s=void 0)})),(u.modelValue===null||T===!1)&&V(M)}function V(M){e.value!==!1&&(e.value=!1,c("beforeHide",M),o!==void 0?o(M):c("hide",M))}function p(M){u.disable===!0&&M===!0?u["onUpdate:modelValue"]!==void 0&&c("update:modelValue",!1):M===!0!==e.value&&(M===!0?m:V)(s)}t.watch(()=>u.modelValue,p),l!==void 0&&qo(i)===!0&&t.watch(()=>f.$route.fullPath,()=>{l.value===!0&&e.value===!0&&b()}),t.onMounted(()=>{p(u.modelValue)});const F={show:y,hide:b,toggle:h};return Object.assign(f,F),F}let mt=[],Pt=[];function Zo(e){Pt=Pt.filter(n=>n!==e)}function Tr(e){Zo(e),Pt.push(e)}function Pl(e){Zo(e),Pt.length===0&&mt.length!==0&&(mt[mt.length-1](),mt=[])}function gn(e){Pt.length===0?e():mt.push(e)}function Br(e){mt=mt.filter(n=>n!==e)}const Il={};let $r=1,Or=document.body;function Ar(e,n){const l=document.createElement("div");if(l.id=n!==void 0?`q-portal--${n}--${$r++}`:e,Il.globalNodes!==void 0){const a=Il.globalNodes.class;a!==void 0&&(l.className=a)}return Or.appendChild(l),l}function Lr(e){e.remove()}const qt=[];function Rr(e){return qt.find(n=>n.contentEl!==null&&n.contentEl.contains(e))}function Jo(e,n){do{if(e.$options.name==="QMenu"){if(e.hide(n),e.$props.separateClosePopup===!0)return an(e)}else if(e.__qPortal===!0){const l=an(e);return(l==null?void 0:l.$options.name)==="QPopupProxy"?(e.hide(n),l):e}e=an(e)}while(e!=null)}function Fr(e,n,l){for(;l!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(l--,e.$options.name==="QMenu"){e=Jo(e,n);continue}e.hide(n)}e=an(e)}}const Hr=ae({name:"QPortal",setup(e,{slots:n}){return()=>n.default()}});function Pr(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Go(e,n,l,a){const o=t.ref(!1),r=t.ref(!1);let i=null;const u={},c=a==="dialog"&&Pr(e);function f(h){if(h===!0){Pl(u),r.value=!0;return}r.value=!1,o.value===!1&&(c===!1&&i===null&&(i=Ar(!1,a)),o.value=!0,qt.push(e.proxy),Tr(u))}function s(h){if(r.value=!1,h!==!0)return;Pl(u),o.value=!1;const y=qt.indexOf(e.proxy);y!==-1&&qt.splice(y,1),i!==null&&(Lr(i),i=null)}return t.onUnmounted(()=>{s(!0)}),e.proxy.__qPortal=!0,Dt(e.proxy,"contentEl",()=>n.value),{showPortal:f,hidePortal:s,portalIsActive:o,portalIsAccessible:r,renderPortal:()=>c===!0?l():o.value===!0?[t.h(t.Teleport,{to:i},t.h(Hr,l))]:void 0}}const ea={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function ta(e,n=()=>{},l=()=>{}){return{transitionProps:t.computed(()=>{const a=`q-transition--${e.transitionShow||n()}`,o=`q-transition--${e.transitionHide||l()}`;return{appear:!0,enterFromClass:`${a}-enter-from`,enterActiveClass:`${a}-enter-active`,enterToClass:`${a}-enter-to`,leaveFromClass:`${o}-leave-from`,leaveActiveClass:`${o}-leave-active`,leaveToClass:`${o}-leave-to`}}),transitionStyle:t.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function na(){let e;const n=t.getCurrentInstance();function l(){e=void 0}return t.onDeactivated(l),t.onBeforeUnmount(l),{removeTick:l,registerTick(a){e=a,t.nextTick(()=>{e===a&&(Mo(n)===!1&&e(),e=void 0)})}}}function la(){let e=null;const n=t.getCurrentInstance();function l(){e!==null&&(clearTimeout(e),e=null)}return t.onDeactivated(l),t.onBeforeUnmount(l),{removeTimeout:l,registerTimeout(a,o){l(),Mo(n)===!1&&(e=setTimeout(()=>{e=null,a()},o))}}}const ht=[];let Et;function Ir(e){Et=e.keyCode===27}function Nr(){Et===!0&&(Et=!1)}function jr(e){Et===!0&&(Et=!1,tt(e,27)===!0&&ht[ht.length-1](e))}function oa(e){window[e]("keydown",Ir),window[e]("blur",Nr),window[e]("keyup",jr),Et=!1}function aa(e){ye.is.desktop===!0&&(ht.push(e),ht.length===1&&oa("addEventListener"))}function sn(e){const n=ht.indexOf(e);n!==-1&&(ht.splice(n,1),ht.length===0&&oa("removeEventListener"))}const gt=[];function ra(e){gt[gt.length-1](e)}function ia(e){ye.is.desktop===!0&&(gt.push(e),gt.length===1&&document.body.addEventListener("focusin",ra))}function Zn(e){const n=gt.indexOf(e);n!==-1&&(gt.splice(n,1),gt.length===0&&document.body.removeEventListener("focusin",ra))}const{notPassiveCapture:cn}=pe,bt=[];function dn(e){const n=e.target;if(n===void 0||n.nodeType===8||n.classList.contains("no-pointer-events")===!0)return;let l=qt.length-1;for(;l>=0;){const a=qt[l].$;if(a.type.name==="QTooltip"){l--;continue}if(a.type.name!=="QDialog")break;if(a.props.seamless!==!0)return;l--}for(let a=bt.length-1;a>=0;a--){const o=bt[a];if((o.anchorEl.value===null||o.anchorEl.value.contains(n)===!1)&&(n===document.body||o.innerRef.value!==null&&o.innerRef.value.contains(n)===!1))e.qClickOutside=!0,o.onClickOutside(e);else return}}function Yr(e){bt.push(e),bt.length===1&&(document.addEventListener("mousedown",dn,cn),document.addEventListener("touchstart",dn,cn))}function Nl(e){const n=bt.findIndex(l=>l===e);n!==-1&&(bt.splice(n,1),bt.length===0&&(document.removeEventListener("mousedown",dn,cn),document.removeEventListener("touchstart",dn,cn)))}let jl,Yl;function Ul(e){const n=e.split(" ");return n.length!==2?!1:["top","center","bottom"].includes(n[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(n[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Ur(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Jn={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Jn[`${e}#ltr`]=e,Jn[`${e}#rtl`]=e});function Ql(e,n){const l=e.split(" ");return{vertical:l[0],horizontal:Jn[`${l[1]}#${n===!0?"rtl":"ltr"}`]}}function Qr(e,n){let{top:l,left:a,right:o,bottom:r,width:i,height:u}=e.getBoundingClientRect();return n!==void 0&&(l-=n[1],a-=n[0],r+=n[1],o+=n[0],i+=n[0],u+=n[1]),{top:l,bottom:r,height:u,left:a,right:o,width:i,middle:a+(o-a)/2,center:l+(r-l)/2}}function Wr(e,n,l){let{top:a,left:o}=e.getBoundingClientRect();return a+=n.top,o+=n.left,l!==void 0&&(a+=l[1],o+=l[0]),{top:a,bottom:a+1,height:1,left:o,right:o+1,width:1,middle:o,center:a}}function Kr(e,n){return{top:0,center:n/2,bottom:n,left:0,middle:e/2,right:e}}function Wl(e,n,l,a){return{top:e[l.vertical]-n[a.vertical],left:e[l.horizontal]-n[a.horizontal]}}function ua(e,n=0){if(e.targetEl===null||e.anchorEl===null||n>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{ua(e,n+1)},10);return}const{targetEl:l,offset:a,anchorEl:o,anchorOrigin:r,selfOrigin:i,absoluteOffset:u,fit:c,cover:f,maxHeight:s,maxWidth:h}=e;if(ye.is.ios===!0&&window.visualViewport!==void 0){const B=document.body.style,{offsetLeft:A,offsetTop:K}=window.visualViewport;A!==jl&&(B.setProperty("--q-pe-left",A+"px"),jl=A),K!==Yl&&(B.setProperty("--q-pe-top",K+"px"),Yl=K)}const{scrollLeft:y,scrollTop:m}=l,b=u===void 0?Qr(o,f===!0?[0,0]:a):Wr(o,u,a);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:h,maxHeight:s,visibility:"visible"});const{offsetWidth:V,offsetHeight:p}=l,{elWidth:F,elHeight:M}=c===!0||f===!0?{elWidth:Math.max(b.width,V),elHeight:f===!0?Math.max(b.height,p):p}:{elWidth:V,elHeight:p};let T={maxWidth:h,maxHeight:s};(c===!0||f===!0)&&(T.minWidth=b.width+"px",f===!0&&(T.minHeight=b.height+"px")),Object.assign(l.style,T);const x=Kr(F,M);let q=Wl(b,x,r,i);if(u===void 0||a===void 0)Tn(q,b,x,r,i);else{const{top:B,left:A}=q;Tn(q,b,x,r,i);let K=!1;if(q.top!==B){K=!0;const E=2*a[1];b.center=b.top-=E,b.bottom-=E+2}if(q.left!==A){K=!0;const E=2*a[0];b.middle=b.left-=E,b.right-=E+2}K===!0&&(q=Wl(b,x,r,i),Tn(q,b,x,r,i))}T={top:q.top+"px",left:q.left+"px"},q.maxHeight!==void 0&&(T.maxHeight=q.maxHeight+"px",b.height>q.maxHeight&&(T.minHeight=T.maxHeight)),q.maxWidth!==void 0&&(T.maxWidth=q.maxWidth+"px",b.width>q.maxWidth&&(T.minWidth=T.maxWidth)),Object.assign(l.style,T),l.scrollTop!==m&&(l.scrollTop=m),l.scrollLeft!==y&&(l.scrollLeft=y)}function Tn(e,n,l,a,o){const r=l.bottom,i=l.right,u=rn(),c=window.innerHeight-u,f=document.body.clientWidth;if(e.top<0||e.top+r>c)if(o.vertical==="center")e.top=n[a.vertical]>c/2?Math.max(0,c-r):0,e.maxHeight=Math.min(r,c);else if(n[a.vertical]>c/2){const s=Math.min(c,a.vertical==="center"?n.center:a.vertical===o.vertical?n.bottom:n.top);e.maxHeight=Math.min(r,s),e.top=Math.max(0,s-r)}else e.top=Math.max(0,a.vertical==="center"?n.center:a.vertical===o.vertical?n.top:n.bottom),e.maxHeight=Math.min(r,c-e.top);if(e.left<0||e.left+i>f)if(e.maxWidth=Math.min(i,f),o.horizontal==="middle")e.left=n[a.horizontal]>f/2?Math.max(0,f-i):0;else if(n[a.horizontal]>f/2){const s=Math.min(f,a.horizontal==="middle"?n.middle:a.horizontal===o.horizontal?n.right:n.left);e.maxWidth=Math.min(i,s),e.left=Math.max(0,s-e.maxWidth)}else e.left=Math.max(0,a.horizontal==="middle"?n.middle:a.horizontal===o.horizontal?n.left:n.right),e.maxWidth=Math.min(i,f-e.left)}const bn=ae({name:"QMenu",inheritAttrs:!1,props:{...Uo,...Wo,...Pe,...ea,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Ul},self:{type:String,validator:Ul},offset:{type:Array,validator:Ur},scrollTarget:Ho,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Ko,"click","escapeKey"],setup(e,{slots:n,emit:l,attrs:a}){let o=null,r,i,u;const c=t.getCurrentInstance(),{proxy:f}=c,{$q:s}=f,h=t.ref(null),y=t.ref(!1),m=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),b=Ie(e,s),{registerTick:V,removeTick:p}=na(),{registerTimeout:F}=la(),{transitionProps:M,transitionStyle:T}=ta(e),{localScrollTarget:x,changeScrollEvent:q,unconfigureScrollTarget:B}=zr(e,U),{anchorEl:A,canShow:K}=Qo({showing:y}),{hide:E}=Xo({showing:y,canShow:K,handleShow:ee,handleHide:k,hideOnRouteChange:m,processOnMount:!0}),{showPortal:D,hidePortal:$,renderPortal:C}=Go(c,h,ie,"menu"),j={anchorEl:A,innerRef:h,onClickOutside(R){if(e.persistent!==!0&&y.value===!0)return E(R),(R.type==="touchstart"||R.target.classList.contains("q-dialog__backdrop"))&&ge(R),!0}},w=t.computed(()=>Ql(e.anchor||(e.cover===!0?"center middle":"bottom start"),s.lang.rtl)),z=t.computed(()=>e.cover===!0?w.value:Ql(e.self||"top start",s.lang.rtl)),O=t.computed(()=>(e.square===!0?" q-menu--square":"")+(b.value===!0?" q-menu--dark q-dark":"")),W=t.computed(()=>e.autoClose===!0?{onClick:I}:{}),L=t.computed(()=>y.value===!0&&e.persistent!==!0);t.watch(L,R=>{R===!0?(aa(Z),Yr(j)):(sn(Z),Nl(j))});function X(){gn(()=>{let R=h.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 ee(R){if(o=e.noRefocus===!1?document.activeElement:null,ia(J),D(),U(),r=void 0,R!==void 0&&(e.touchPosition||e.contextMenu)){const be=Ht(R);if(be.left!==void 0){const{top:ue,left:fe}=A.value.getBoundingClientRect();r={left:be.left-fe,top:be.top-ue}}}i===void 0&&(i=t.watch(()=>s.screen.width+"|"+s.screen.height+"|"+e.self+"|"+e.anchor+"|"+s.lang.rtl,G)),e.noFocus!==!0&&document.activeElement.blur(),V(()=>{G(),e.noFocus!==!0&&X()}),F(()=>{s.platform.is.ios===!0&&(u=e.autoClose,h.value.click()),G(),D(!0),l("show",R)},e.transitionDuration)}function k(R){p(),$(),S(!0),o!==null&&(R===void 0||R.qClickOutside!==!0)&&((((R==null?void 0:R.type.indexOf("key"))===0?o.closest('[tabindex]:not([tabindex^="-"])'):void 0)||o).focus(),o=null),F(()=>{$(!0),l("hide",R)},e.transitionDuration)}function S(R){r=void 0,i!==void 0&&(i(),i=void 0),(R===!0||y.value===!0)&&(Zn(J),B(),Nl(j),sn(Z)),R!==!0&&(o=null)}function U(){(A.value!==null||e.scrollTarget!==void 0)&&(x.value=Po(A.value,e.scrollTarget),q(x.value,G))}function I(R){u!==!0?(Jo(f,R),l("click",R)):u=!1}function J(R){L.value===!0&&e.noFocus!==!0&&$o(h.value,R.target)!==!0&&X()}function Z(R){e.noEscDismiss!==!0&&(l("escapeKey"),E(R))}function G(){ua({targetEl:h.value,offset:e.offset,anchorEl:A.value,anchorOrigin:w.value,selfOrigin:z.value,absoluteOffset:r,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function ie(){return t.h(t.Transition,M.value,()=>y.value===!0?t.h("div",{role:"menu",...a,ref:h,tabindex:-1,class:["q-menu q-position-engine scroll"+O.value,a.class],style:[a.style,T.value],...W.value},ke(n.default)):null)}return t.onBeforeUnmount(S),Object.assign(f,{focus:X,updatePosition:G}),C}});let Bn,Gt=0;const Se=new Array(256);for(let e=0;e<256;e++)Se[e]=(e+256).toString(16).substring(1);const Xr=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return n=>{const l=new Uint8Array(n);return e.getRandomValues(l),l}}return n=>{const l=[];for(let a=n;a>0;a--)l.push(Math.floor(Math.random()*256));return l}})(),Kl=4096;function Gn(){(Bn===void 0||Gt+16>Kl)&&(Gt=0,Bn=Xr(Kl));const e=Array.prototype.slice.call(Bn,Gt,Gt+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Se[e[0]]+Se[e[1]]+Se[e[2]]+Se[e[3]]+"-"+Se[e[4]]+Se[e[5]]+"-"+Se[e[6]]+Se[e[7]]+"-"+Se[e[8]]+Se[e[9]]+"-"+Se[e[10]]+Se[e[11]]+Se[e[12]]+Se[e[13]]+Se[e[14]]+Se[e[15]]}function Zr(e){return e??null}function Xl(e,n){return e??(n===!0?`f_${Gn()}`:null)}function Jr({getValue:e,required:n=!0}={}){if(nt.value===!0){const l=e!==void 0?t.ref(Zr(e())):t.ref(null);return n===!0&&l.value===null&&t.onMounted(()=>{l.value=`f_${Gn()}`}),e!==void 0&&t.watch(e,a=>{l.value=Xl(a,n)}),l}return e!==void 0?t.computed(()=>Xl(e(),n)):t.ref(`f_${Gn()}`)}const Zl=/^on[A-Z]/;function Gr(){const{attrs:e,vnode:n}=t.getCurrentInstance(),l={listeners:t.ref({}),attributes:t.ref({})};function a(){const o={},r={};for(const i in e)i!=="class"&&i!=="style"&&Zl.test(i)===!1&&(o[i]=e[i]);for(const i in n.props)Zl.test(i)===!0&&(r[i]=n.props[i]);l.attributes.value=o,l.listeners.value=r}return t.onBeforeUpdate(a),a(),l}const pn="_q_l_",ei="_q_pc_",ti="_q_fo_";function Ke(){}function ni({validate:e,resetValidation:n,requiresQForm:l}){const a=t.inject(ti,!1);if(a!==!1){const{props:o,proxy:r}=t.getCurrentInstance();Object.assign(r,{validate:e,resetValidation:n}),t.watch(()=>o.disable,i=>{i===!0?(typeof n=="function"&&n(),a.unbindComponent(r)):a.bindComponent(r)}),t.onMounted(()=>{o.disable!==!0&&a.bindComponent(r)}),t.onBeforeUnmount(()=>{o.disable!==!0&&a.unbindComponent(r)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Jl=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Gl=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,eo=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,en=/^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])\)$/,tn=/^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)\)$/,$n={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\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(e),hexColor:e=>Jl.test(e),hexaColor:e=>Gl.test(e),hexOrHexaColor:e=>eo.test(e),rgbColor:e=>en.test(e),rgbaColor:e=>tn.test(e),rgbOrRgbaColor:e=>en.test(e)||tn.test(e),hexOrRgbColor:e=>Jl.test(e)||en.test(e),hexaOrRgbaColor:e=>Gl.test(e)||tn.test(e),anyColor:e=>eo.test(e)||en.test(e)||tn.test(e)},li=[!0,!1,"ondemand"],oi={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>li.includes(e)}};function ai(e,n){const{props:l,proxy:a}=t.getCurrentInstance(),o=t.ref(!1),r=t.ref(null),i=t.ref(!1);ni({validate:V,resetValidation:b});let u=0,c;const f=t.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),s=t.computed(()=>l.disable!==!0&&f.value===!0&&n.value===!1),h=t.computed(()=>l.error===!0||o.value===!0),y=t.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:r.value);t.watch(()=>l.modelValue,()=>{i.value=!0,s.value===!0&&l.lazyRules===!1&&p()});function m(){l.lazyRules!=="ondemand"&&s.value===!0&&i.value===!0&&p()}t.watch(()=>l.reactiveRules,F=>{F===!0?c===void 0&&(c=t.watch(()=>l.rules,m,{immediate:!0,deep:!0})):c!==void 0&&(c(),c=void 0)},{immediate:!0}),t.watch(()=>l.lazyRules,m),t.watch(e,F=>{F===!0?i.value=!0:s.value===!0&&l.lazyRules!=="ondemand"&&p()});function b(){u++,n.value=!1,i.value=!1,o.value=!1,r.value=null,p.cancel()}function V(F=l.modelValue){if(l.disable===!0||f.value===!1)return!0;const M=++u,T=n.value!==!0?()=>{i.value=!0}:()=>{},x=(B,A)=>{B===!0&&T(),o.value=B,r.value=A||null,n.value=!1},q=[];for(let B=0;B<l.rules.length;B++){const A=l.rules[B];let K;if(typeof A=="function"?K=A(F,$n):typeof A=="string"&&$n[A]!==void 0&&(K=$n[A](F)),K===!1||typeof K=="string")return x(!0,K),!1;K!==!0&&K!==void 0&&q.push(K)}return q.length===0?(x(!1),!0):(n.value=!0,Promise.all(q).then(B=>{if(B===void 0||Array.isArray(B)===!1||B.length===0)return M===u&&x(!1),!0;const A=B.find(K=>K===!1||typeof K=="string");return M===u&&x(A!==void 0,A),A===void 0},B=>(M===u&&(console.error(B),x(!0)),!1)))}const p=fl(V,0);return t.onBeforeUnmount(()=>{c==null||c(),p.cancel()}),Object.assign(a,{resetValidation:b,validate:V}),Dt(a,"hasError",()=>h.value),{isDirtyModel:i,hasRules:f,hasError:h,errorMessage:y,validate:V,resetValidation:b}}function It(e){return e!=null&&(""+e).length!==0}const ri={...Pe,...oi,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},yn={...ri,maxlength:[Number,String]},vl=["update:modelValue","clear","focus","blur"];function ml({requiredForAttr:e=!0,tagProp:n,changeEvent:l=!1}={}){const{props:a,proxy:o}=t.getCurrentInstance(),r=Ie(a,o.$q),i=Jr({required:e,getValue:()=>a.for});return{requiredForAttr:e,changeEvent:l,tag:n===!0?t.computed(()=>a.tag):{value:"label"},isDark:r,editable:t.computed(()=>a.disable!==!0&&a.readonly!==!0),innerLoading:t.ref(!1),focused:t.ref(!1),hasPopupOpen:!1,splitAttrs:Gr(),targetUid:i,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function hl(e){const{props:n,emit:l,slots:a,attrs:o,proxy:r}=t.getCurrentInstance(),{$q:i}=r;let u=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>It(n.modelValue))),e.emitValue===void 0&&(e.emitValue=L=>{l("update:modelValue",L)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:E,onFocusout:D}),Object.assign(e,{clearValue:$,onControlFocusin:E,onControlFocusout:D,focus:A}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(n.counter!==!1){const L=typeof n.modelValue=="string"||typeof n.modelValue=="number"?(""+n.modelValue).length:Array.isArray(n.modelValue)===!0?n.modelValue.length:0,X=n.maxlength!==void 0?n.maxlength:n.maxValues;return L+(X!==void 0?" / "+X:"")}}));const{isDirtyModel:c,hasRules:f,hasError:s,errorMessage:h,resetValidation:y}=ai(e.focused,e.innerLoading),m=e.floatingLabel!==void 0?t.computed(()=>n.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):t.computed(()=>n.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),b=t.computed(()=>n.bottomSlots===!0||n.hint!==void 0||f.value===!0||n.counter===!0||n.error!==null),V=t.computed(()=>n.filled===!0?"filled":n.outlined===!0?"outlined":n.borderless===!0?"borderless":n.standout?"standout":"standard"),p=t.computed(()=>`q-field row no-wrap items-start q-field--${V.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(n.rounded===!0?" q-field--rounded":"")+(n.square===!0?" q-field--square":"")+(m.value===!0?" q-field--float":"")+(M.value===!0?" q-field--labeled":"")+(n.dense===!0?" q-field--dense":"")+(n.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(s.value===!0?" q-field--error":"")+(s.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(n.hideBottomSpace!==!0&&b.value===!0?" q-field--with-bottom":"")+(n.disable===!0?" q-field--disabled":n.readonly===!0?" q-field--readonly":"")),F=t.computed(()=>"q-field__control relative-position row no-wrap"+(n.bgColor!==void 0?` bg-${n.bgColor}`:"")+(s.value===!0?" text-negative":typeof n.standout=="string"&&n.standout.length!==0&&e.focused.value===!0?` ${n.standout}`:n.color!==void 0?` text-${n.color}`:"")),M=t.computed(()=>n.labelSlot===!0||n.label!==void 0),T=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(n.labelColor!==void 0&&s.value!==!0?` text-${n.labelColor}`:"")),x=t.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:m.value,modelValue:n.modelValue,emitValue:e.emitValue})),q=t.computed(()=>{const L={};return e.targetUid.value&&(L.for=e.targetUid.value),n.disable===!0&&(L["aria-disabled"]="true"),L});function B(){var ee;const L=document.activeElement;let X=(ee=e.targetRef)==null?void 0:ee.value;X&&(L===null||L.id!==e.targetUid.value)&&(X.hasAttribute("tabindex")===!0||(X=X.querySelector("[tabindex]")),X!==L&&(X==null||X.focus({preventScroll:!0})))}function A(){gn(B)}function K(){Br(B);const L=document.activeElement;L!==null&&e.rootRef.value.contains(L)&&L.blur()}function E(L){u!==null&&(clearTimeout(u),u=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,l("focus",L))}function D(L,X){u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,l("blur",L)),X==null||X())})}function $(L){var X;ge(L),i.platform.is.mobile!==!0?(((X=e.targetRef)==null?void 0:X.value)||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),n.type==="file"&&(e.inputRef.value.value=null),l("update:modelValue",null),e.changeEvent===!0&&l("change",null),l("clear",n.modelValue),t.nextTick(()=>{const ee=c.value;y(),c.value=ee})}function C(L){[13,32].includes(L.keyCode)&&$(L)}function j(){const L=[];return a.prepend!==void 0&&L.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:_e},a.prepend())),L.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},w())),s.value===!0&&n.noErrorIcon===!1&&L.push(O("error",[t.h(qe,{name:i.iconSet.field.error,color:"negative"})])),n.loading===!0||e.innerLoading.value===!0?L.push(O("inner-loading-append",a.loading!==void 0?a.loading():[t.h(Bo,{color:n.color})])):n.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&L.push(O("inner-clearable-append",[t.h(qe,{class:"q-field__focusable-action",name:n.clearIcon||i.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":i.lang.label.clear,onKeyup:C,onClick:$})])),a.append!==void 0&&L.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:_e},a.append())),e.getInnerAppend!==void 0&&L.push(O("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&L.push(e.getControlChild()),L}function w(){const L=[];return n.prefix!==void 0&&n.prefix!==null&&L.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},n.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&L.push(e.getShadowControl()),e.getControl!==void 0?L.push(e.getControl()):a.rawControl!==void 0?L.push(a.rawControl()):a.control!==void 0&&L.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":n.autofocus===!0||void 0},a.control(x.value))),M.value===!0&&L.push(t.h("div",{class:T.value},ke(a.label,n.label))),n.suffix!==void 0&&n.suffix!==null&&L.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},n.suffix)),L.concat(ke(a.default))}function z(){let L,X;s.value===!0?h.value!==null?(L=[t.h("div",{role:"alert"},h.value)],X=`q--slot-error-${h.value}`):(L=ke(a.error),X="q--slot-error"):(n.hideHint!==!0||e.focused.value===!0)&&(n.hint!==void 0?(L=[t.h("div",n.hint)],X=`q--slot-hint-${n.hint}`):(L=ke(a.hint),X="q--slot-hint"));const ee=n.counter===!0||a.counter!==void 0;if(n.hideBottomSpace===!0&&ee===!1&&L===void 0)return;const k=t.h("div",{key:X,class:"q-field__messages col"},L);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(n.hideBottomSpace!==!0?"animated":"stale"),onClick:_e},[n.hideBottomSpace===!0?k:t.h(t.Transition,{name:"q-transition--field-message"},()=>k),ee===!0?t.h("div",{class:"q-field__counter"},a.counter!==void 0?a.counter():e.computedCounter.value):null])}function O(L,X){return X===null?null:t.h("div",{key:L,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},X)}let W=!1;return t.onDeactivated(()=>{W=!0}),t.onActivated(()=>{W===!0&&n.autofocus===!0&&r.focus()}),n.autofocus===!0&&t.onMounted(()=>{r.focus()}),t.onBeforeUnmount(()=>{u!==null&&clearTimeout(u)}),Object.assign(r,{focus:A,blur:K}),function(){const X=e.getControl===void 0&&a.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":n.autofocus===!0||void 0,...q.value}:q.value;return t.h(e.tag.value,{ref:e.rootRef,class:[p.value,o.class],style:o.style,...X},[a.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:_e},a.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:F.value,tabindex:-1,...e.controlEvents},j()),b.value===!0?z():null]),a.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:_e},a.after()):null])}}const ii=ae({name:"QField",inheritAttrs:!1,props:{...yn,tag:{type:String,default:"label"}},emits:vl,setup(){return hl(ml({tagProp:!0}))}}),ui={xs:8,sm:10,md:14,lg:20,xl:24},si=ae({name:"QChip",props:{...Pe,...Nt,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(e,{slots:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=Ie(e,a),r=jt(e,ui),i=t.computed(()=>e.selected===!0||e.icon!==void 0),u=t.computed(()=>e.selected===!0?e.iconSelected||a.iconSet.chip.selected:e.icon),c=t.computed(()=>e.iconRemove||a.iconSet.chip.remove),f=t.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),s=t.computed(()=>{const p=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(p?` text-${p} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(f.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(o.value===!0?" q-chip--dark q-dark":"")}),h=t.computed(()=>{const p=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},F={...p,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||a.lang.label.remove};return{chip:p,remove:F}});function y(p){p.keyCode===13&&m(p)}function m(p){e.disable||(l("update:selected",!e.selected),l("click",p))}function b(p){(p.keyCode===void 0||p.keyCode===13)&&(ge(p),e.disable===!1&&(l("update:modelValue",!1),l("remove")))}function V(){const p=[];f.value===!0&&p.push(t.h("div",{class:"q-focus-helper"})),i.value===!0&&p.push(t.h(qe,{class:"q-chip__icon q-chip__icon--left",name:u.value}));const F=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return p.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},So(n.default,F))),e.iconRight&&p.push(t.h(qe,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&p.push(t.h(qe,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:c.value,...h.value.remove,onClick:b,onKeyup:b})),p}return()=>{if(e.modelValue===!1)return;const p={class:s.value,style:r.value};return f.value===!0&&Object.assign(p,h.value.chip,{onClick:m,onKeyup:y}),Va("div",p,V(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Oo,e.ripple]])}}}),el=ae({name:"QItem",props:{...Pe,...Eo,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(e,{slots:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=Ie(e,a),{hasLink:r,linkAttrs:i,linkClass:u,linkTag:c,navigateOnClick:f}=il(),s=t.ref(null),h=t.ref(null),y=t.computed(()=>e.clickable===!0||r.value===!0||e.tag==="label"),m=t.computed(()=>e.disable!==!0&&y.value===!0),b=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(o.value===!0?" q-item--dark":"")+(r.value===!0&&e.active===null?u.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(m.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),V=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(a.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function p(T){m.value===!0&&(h.value!==null&&T.qAvoidFocus!==!0&&(T.qKeyEvent!==!0&&document.activeElement===s.value?h.value.focus():document.activeElement===h.value&&s.value.focus()),f(T))}function F(T){if(m.value===!0&&tt(T,[13,32])===!0){ge(T),T.qKeyEvent=!0;const x=new MouseEvent("click",T);x.qKeyEvent=!0,s.value.dispatchEvent(x)}l("keyup",T)}function M(){const T=wo(n.default,[]);return m.value===!0&&T.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:h})),T}return()=>{const T={ref:s,class:b.value,style:V.value,role:"listitem",onClick:p,onKeyup:F};return m.value===!0?(T.tabindex=e.tabindex||"0",Object.assign(T,i.value)):y.value===!0&&(T["aria-disabled"]="true"),t.h(c.value,T,M())}}}),tl=ae({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:n}){const l=t.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>t.h("div",{class:l.value},ke(n.default))}}),ci=ae({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:n}){const l=t.computed(()=>parseInt(e.lines,10)),a=t.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(l.value===1?" ellipsis":"")),o=t.computed(()=>e.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>t.h("div",{style:o.value,class:a.value},ke(n.default))}});function di(e,n,l){function a(){}return t.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:a,addToHistory(){}}}let At=0,On,An,Rt,Ln=!1,to,no,lo,dt=null;function fi(e){vi(e)&&ge(e)}function vi(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const n=Ka(e),l=e.shiftKey&&!e.deltaX,a=!l&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),o=l||a?e.deltaY:e.deltaX;for(let r=0;r<n.length;r++){const i=n[r];if(xr(i,a))return a?o<0&&i.scrollTop===0?!0:o>0&&i.scrollTop+i.clientHeight===i.scrollHeight:o<0&&i.scrollLeft===0?!0:o>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function oo(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function nn(e){Ln!==!0&&(Ln=!0,requestAnimationFrame(()=>{Ln=!1;const{height:n}=e.target,{clientHeight:l,scrollTop:a}=document.scrollingElement;(Rt===void 0||n!==window.innerHeight)&&(Rt=l-n,document.scrollingElement.scrollTop=a),a>Rt&&(document.scrollingElement.scrollTop-=Math.ceil((a-Rt)/8))}))}function ao(e){const n=document.body,l=window.visualViewport!==void 0;if(e==="add"){const{overflowY:a,overflowX:o}=window.getComputedStyle(n);On=cl(window),An=sl(window),to=n.style.left,no=n.style.top,lo=window.location.href,n.style.left=`-${On}px`,n.style.top=`-${An}px`,o!=="hidden"&&(o==="scroll"||n.scrollWidth>window.innerWidth)&&n.classList.add("q-body--force-scrollbar-x"),a!=="hidden"&&(a==="scroll"||n.scrollHeight>window.innerHeight)&&n.classList.add("q-body--force-scrollbar-y"),n.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,ye.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",nn,pe.passiveCapture),window.visualViewport.addEventListener("scroll",nn,pe.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",oo,pe.passiveCapture))}ye.is.desktop===!0&&ye.is.mac===!0&&window[`${e}EventListener`]("wheel",fi,pe.notPassive),e==="remove"&&(ye.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",nn,pe.passiveCapture),window.visualViewport.removeEventListener("scroll",nn,pe.passiveCapture)):window.removeEventListener("scroll",oo,pe.passiveCapture)),n.classList.remove("q-body--prevent-scroll"),n.classList.remove("q-body--force-scrollbar-x"),n.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,n.style.left=to,n.style.top=no,window.location.href===lo&&window.scrollTo(On,An),Rt=void 0)}function mi(e){let n="add";if(e===!0){if(At++,dt!==null){clearTimeout(dt),dt=null;return}if(At>1)return}else{if(At===0||(At--,At>0))return;if(n="remove",ye.is.ios===!0&&ye.is.nativeMobile===!0){dt!==null&&clearTimeout(dt),dt=setTimeout(()=>{ao(n),dt=null},100);return}}ao(n)}function hi(){let e;return{preventBodyScroll(n){n!==e&&(e!==void 0||n===!0)&&(e=n,mi(n))}}}let ln=0;const gi={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"},ro={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},sa=ae({name:"QDialog",inheritAttrs:!1,props:{...Wo,...ea,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:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...Ko,"shake","click","escapeKey"],setup(e,{slots:n,emit:l,attrs:a}){const o=t.getCurrentInstance(),r=t.ref(null),i=t.ref(!1),u=t.ref(!1);let c=null,f=null,s,h;const y=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:m}=hi(),{registerTimeout:b}=la(),{registerTick:V,removeTick:p}=na(),{transitionProps:F,transitionStyle:M}=ta(e,()=>ro[e.position][0],()=>ro[e.position][1]),T=t.computed(()=>M.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:x,hidePortal:q,portalIsAccessible:B,renderPortal:A}=Go(o,r,U,"dialog"),{hide:K}=Xo({showing:i,hideOnRouteChange:y,handleShow:j,handleHide:w,processOnMount:!0});di(i);const E=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${gi[e.position]}`+(u.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),D=t.computed(()=>i.value===!0&&e.seamless!==!0),$=t.computed(()=>e.autoClose===!0?{onClick:ee}:{}),C=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${D.value===!0?"modal":"seamless"}`,a.class]);t.watch(()=>e.maximized,I=>{i.value===!0&&X(I)}),t.watch(D,I=>{m(I),I===!0?(ia(S),aa(W)):(Zn(S),sn(W))});function j(I){var J;f=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,X(e.maximized),x(),u.value=!0,e.noFocus!==!0?((J=document.activeElement)==null||J.blur(),V(z)):p(),b(()=>{if(o.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:Z,bottom:G}=document.activeElement.getBoundingClientRect(),{innerHeight:ie}=window,R=window.visualViewport!==void 0?window.visualViewport.height:ie;Z>0&&G>R/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-R,G>=ie?1/0:Math.ceil(document.scrollingElement.scrollTop+G-R/2))),document.activeElement.scrollIntoView()}h=!0,r.value.click(),h=!1}x(!0),u.value=!1,l("show",I)},e.transitionDuration)}function w(I){p(),L(!0),u.value=!0,q(),f!==null&&((((I==null?void 0:I.type.indexOf("key"))===0?f.closest('[tabindex]:not([tabindex^="-"])'):void 0)||f).focus(),f=null),b(()=>{q(!0),u.value=!1,l("hide",I)},e.transitionDuration)}function z(I){gn(()=>{let J=r.value;if(J!==null){if(I!==void 0){const Z=J.querySelector(I);if(Z!==null){Z.focus({preventScroll:!0});return}}J.contains(document.activeElement)!==!0&&(J=J.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||J.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||J.querySelector("[autofocus], [data-autofocus]")||J,J.focus({preventScroll:!0}))}})}function O(I){I&&typeof I.focus=="function"?I.focus({preventScroll:!0}):z(),l("shake");const J=r.value;J!==null&&(J.classList.remove("q-animate--scale"),J.classList.add("q-animate--scale"),c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,r.value!==null&&(J.classList.remove("q-animate--scale"),z())},170))}function W(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&O():(l("escapeKey"),K()))}function L(I){c!==null&&(clearTimeout(c),c=null),(I===!0||i.value===!0)&&(X(!1),e.seamless!==!0&&(m(!1),Zn(S),sn(W))),I!==!0&&(f=null)}function X(I){I===!0?s!==!0&&(ln<1&&document.body.classList.add("q-body--dialog"),ln++,s=!0):s===!0&&(ln<2&&document.body.classList.remove("q-body--dialog"),ln--,s=!1)}function ee(I){h!==!0&&(K(I),l("click",I))}function k(I){e.persistent!==!0&&e.noBackdropDismiss!==!0?K(I):e.noShake!==!0&&O()}function S(I){e.allowFocusOutside!==!0&&B.value===!0&&$o(r.value,I.target)!==!0&&z('[tabindex]:not([tabindex="-1"])')}Object.assign(o.proxy,{focus:z,shake:O,__updateRefocusTarget(I){f=I||null}}),t.onBeforeUnmount(L);function U(){return t.h("div",{role:"dialog","aria-modal":D.value===!0?"true":"false",...a,class:C.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>D.value===!0?t.h("div",{class:"q-dialog__backdrop fixed-full",style:T.value,"aria-hidden":"true",tabindex:-1,onClick:k}):null),t.h(t.Transition,F.value,()=>i.value===!0?t.h("div",{ref:r,class:E.value,style:M.value,tabindex:-1,...$.value},ke(n.default)):null)])}return A}});let fn=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const n=document.createElement("div");Object.assign(n.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(n),e.scrollLeft=-1e3,fn=e.scrollLeft>=0,e.remove()}const Oe=1e3,bi=["start","center","end","start-force","center-force","end-force"],ca=Array.prototype.filter,pi=window.getComputedStyle(document.body).overflowAnchor===void 0?mn:function(e,n){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const l=e.children||[];ca.call(l,o=>o.dataset&&o.dataset.qVsAnchor!==void 0).forEach(o=>{delete o.dataset.qVsAnchor});const a=l[n];a!=null&&a.dataset&&(a.dataset.qVsAnchor="")}))};function Mt(e,n){return e+n}function Rn(e,n,l,a,o,r,i,u){const c=e===window?document.scrollingElement||document.documentElement:e,f=o===!0?"offsetWidth":"offsetHeight",s={scrollStart:0,scrollViewSize:-i-u,scrollMaxSize:0,offsetStart:-i,offsetEnd:-u};if(o===!0?(e===window?(s.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,s.scrollViewSize+=document.documentElement.clientWidth):(s.scrollStart=c.scrollLeft,s.scrollViewSize+=c.clientWidth),s.scrollMaxSize=c.scrollWidth,r===!0&&(s.scrollStart=(fn===!0?s.scrollMaxSize-s.scrollViewSize:0)-s.scrollStart)):(e===window?(s.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,s.scrollViewSize+=document.documentElement.clientHeight):(s.scrollStart=c.scrollTop,s.scrollViewSize+=c.clientHeight),s.scrollMaxSize=c.scrollHeight),l!==null)for(let h=l.previousElementSibling;h!==null;h=h.previousElementSibling)h.classList.contains("q-virtual-scroll--skip")===!1&&(s.offsetStart+=h[f]);if(a!==null)for(let h=a.nextElementSibling;h!==null;h=h.nextElementSibling)h.classList.contains("q-virtual-scroll--skip")===!1&&(s.offsetEnd+=h[f]);if(n!==e){const h=c.getBoundingClientRect(),y=n.getBoundingClientRect();o===!0?(s.offsetStart+=y.left-h.left,s.offsetEnd-=y.width):(s.offsetStart+=y.top-h.top,s.offsetEnd-=y.height),e!==window&&(s.offsetStart+=s.scrollStart),s.offsetEnd+=s.scrollMaxSize-s.offsetStart}return s}function io(e,n,l,a){n==="end"&&(n=(e===window?document.body:e)[l===!0?"scrollWidth":"scrollHeight"]),e===window?l===!0?(a===!0&&(n=(fn===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-n),window.scrollTo(n,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,n):l===!0?(a===!0&&(n=(fn===!0?e.scrollWidth-e.offsetWidth:0)-n),e.scrollLeft=n):e.scrollTop=n}function Lt(e,n,l,a){if(l>=a)return 0;const o=n.length,r=Math.floor(l/Oe),i=Math.floor((a-1)/Oe)+1;let u=e.slice(r,i).reduce(Mt,0);return l%Oe!==0&&(u-=n.slice(r*Oe,l).reduce(Mt,0)),a%Oe!==0&&a!==o&&(u-=n.slice(a,i*Oe).reduce(Mt,0)),u}const yi={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]},uo={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...yi};function wi({virtualScrollLength:e,getVirtualScrollTarget:n,getVirtualScrollEl:l,virtualScrollItemSizeComputed:a}){const o=t.getCurrentInstance(),{props:r,emit:i,proxy:u}=o,{$q:c}=u;let f,s,h,y=[],m;const b=t.ref(0),V=t.ref(0),p=t.ref({}),F=t.ref(null),M=t.ref(null),T=t.ref(null),x=t.ref({from:0,to:0}),q=t.computed(()=>r.tableColspan!==void 0?r.tableColspan:100);a===void 0&&(a=t.computed(()=>r.virtualScrollItemSize));const B=t.computed(()=>a.value+";"+r.virtualScrollHorizontal),A=t.computed(()=>B.value+";"+r.virtualScrollSliceRatioBefore+";"+r.virtualScrollSliceRatioAfter);t.watch(A,()=>{O()}),t.watch(B,K);function K(){z(s,!0)}function E(k){z(k===void 0?s:k)}function D(k,S){const U=n();if(U==null||U.nodeType===8)return;const I=Rn(U,l(),F.value,M.value,r.virtualScrollHorizontal,c.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd);h!==I.scrollViewSize&&O(I.scrollViewSize),C(U,I,Math.min(e.value-1,Math.max(0,parseInt(k,10)||0)),0,bi.indexOf(S)!==-1?S:s!==-1&&k>s?"end":"start")}function $(){const k=n();if(k==null||k.nodeType===8)return;const S=Rn(k,l(),F.value,M.value,r.virtualScrollHorizontal,c.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd),U=e.value-1,I=S.scrollMaxSize-S.offsetStart-S.offsetEnd-V.value;if(f===S.scrollStart)return;if(S.scrollMaxSize<=0){C(k,S,0,0);return}h!==S.scrollViewSize&&O(S.scrollViewSize),j(x.value.from);const J=Math.floor(S.scrollMaxSize-Math.max(S.scrollViewSize,S.offsetEnd)-Math.min(m[U],S.scrollViewSize/2));if(J>0&&Math.ceil(S.scrollStart)>=J){C(k,S,U,S.scrollMaxSize-S.offsetEnd-y.reduce(Mt,0));return}let Z=0,G=S.scrollStart-S.offsetStart,ie=G;if(G<=I&&G+S.scrollViewSize>=b.value)G-=b.value,Z=x.value.from,ie=G;else for(let R=0;G>=y[R]&&Z<U;R++)G-=y[R],Z+=Oe;for(;G>0&&Z<U;)G-=m[Z],G>-S.scrollViewSize?(Z++,ie=G):ie=m[Z]+G;C(k,S,Z,ie)}function C(k,S,U,I,J){const Z=typeof J=="string"&&J.indexOf("-force")!==-1,G=Z===!0?J.replace("-force",""):J,ie=G!==void 0?G:"start";let R=Math.max(0,U-p.value[ie]),be=R+p.value.total;be>e.value&&(be=e.value,R=Math.max(0,be-p.value.total)),f=S.scrollStart;const ue=R!==x.value.from||be!==x.value.to;if(ue===!1&&G===void 0){L(U);return}const{activeElement:fe}=document,xe=T.value;ue===!0&&xe!==null&&xe!==fe&&xe.contains(fe)===!0&&(xe.addEventListener("focusout",w),setTimeout(()=>{xe==null||xe.removeEventListener("focusout",w)})),pi(xe,U-R);const Ne=G!==void 0?m.slice(R,U).reduce(Mt,0):0;if(ue===!0){const Le=be>=x.value.from&&R<=x.value.to?x.value.to:be;x.value={from:R,to:Le},b.value=Lt(y,m,0,R),V.value=Lt(y,m,be,e.value),requestAnimationFrame(()=>{x.value.to!==be&&f===S.scrollStart&&(x.value={from:x.value.from,to:be},V.value=Lt(y,m,be,e.value))})}requestAnimationFrame(()=>{if(f!==S.scrollStart)return;ue===!0&&j(R);const Le=m.slice(R,U).reduce(Mt,0),Ve=Le+S.offsetStart+b.value,we=Ve+m[U];let lt=Ve+I;if(G!==void 0){const zt=Le-Ne,ot=S.scrollStart+zt;lt=Z!==!0&&ot<Ve&&we<ot+S.scrollViewSize?ot:G==="end"?we-S.scrollViewSize:Ve-(G==="start"?0:Math.round((S.scrollViewSize-m[U])/2))}f=lt,io(k,lt,r.virtualScrollHorizontal,c.lang.rtl),L(U)})}function j(k){const S=T.value;if(S){const U=ca.call(S.children,R=>R.classList&&R.classList.contains("q-virtual-scroll--skip")===!1),I=U.length,J=r.virtualScrollHorizontal===!0?R=>R.getBoundingClientRect().width:R=>R.offsetHeight;let Z=k,G,ie;for(let R=0;R<I;){for(G=J(U[R]),R++;R<I&&U[R].classList.contains("q-virtual-scroll--with-prev")===!0;)G+=J(U[R]),R++;ie=G-m[Z],ie!==0&&(m[Z]+=ie,y[Math.floor(Z/Oe)]+=ie),Z++}}}function w(){var k;(k=T.value)==null||k.focus()}function z(k,S){const U=1*a.value;(S===!0||Array.isArray(m)===!1)&&(m=[]);const I=m.length;m.length=e.value;for(let Z=e.value-1;Z>=I;Z--)m[Z]=U;const J=Math.floor((e.value-1)/Oe);y=[];for(let Z=0;Z<=J;Z++){let G=0;const ie=Math.min((Z+1)*Oe,e.value);for(let R=Z*Oe;R<ie;R++)G+=m[R];y.push(G)}s=-1,f=void 0,b.value=Lt(y,m,0,x.value.from),V.value=Lt(y,m,x.value.to,e.value),k>=0?(j(x.value.from),t.nextTick(()=>{D(k)})):X()}function O(k){if(k===void 0&&typeof window<"u"){const G=n();G!=null&&G.nodeType!==8&&(k=Rn(G,l(),F.value,M.value,r.virtualScrollHorizontal,c.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd).scrollViewSize)}h=k;const S=parseFloat(r.virtualScrollSliceRatioBefore)||0,U=parseFloat(r.virtualScrollSliceRatioAfter)||0,I=1+S+U,J=k===void 0||k<=0?1:Math.ceil(k/a.value),Z=Math.max(1,J,Math.ceil((r.virtualScrollSliceSize>0?r.virtualScrollSliceSize:10)/I));p.value={total:Math.ceil(Z*I),start:Math.ceil(Z*S),center:Math.ceil(Z*(.5+S)),end:Math.ceil(Z*(1+S)),view:J}}function W(k,S){const U=r.virtualScrollHorizontal===!0?"width":"height",I={["--q-virtual-scroll-item-"+U]:a.value+"px"};return[k==="tbody"?t.h(k,{class:"q-virtual-scroll__padding",key:"before",ref:F},[t.h("tr",[t.h("td",{style:{[U]:`${b.value}px`,...I},colspan:q.value})])]):t.h(k,{class:"q-virtual-scroll__padding",key:"before",ref:F,style:{[U]:`${b.value}px`,...I}}),t.h(k,{class:"q-virtual-scroll__content",key:"content",ref:T,tabindex:-1},S.flat()),k==="tbody"?t.h(k,{class:"q-virtual-scroll__padding",key:"after",ref:M},[t.h("tr",[t.h("td",{style:{[U]:`${V.value}px`,...I},colspan:q.value})])]):t.h(k,{class:"q-virtual-scroll__padding",key:"after",ref:M,style:{[U]:`${V.value}px`,...I}})]}function L(k){s!==k&&(r.onVirtualScroll!==void 0&&i("virtualScroll",{index:k,from:x.value.from,to:x.value.to-1,direction:k<s?"decrease":"increase",ref:u}),s=k)}O();const X=fl($,c.platform.is.ios===!0?120:35);t.onBeforeMount(()=>{O()});let ee=!1;return t.onDeactivated(()=>{ee=!0}),t.onActivated(()=>{if(ee!==!0)return;const k=n();f!==void 0&&k!==void 0&&k!==null&&k.nodeType!==8?io(k,f,r.virtualScrollHorizontal,c.lang.rtl):D(s)}),t.onBeforeUnmount(()=>{X.cancel()}),Object.assign(u,{scrollTo:D,reset:K,refresh:E}),{virtualScrollSliceRange:x,virtualScrollSliceSizeComputed:p,setVirtualScrollSize:O,onVirtualScrollEvt:X,localResetVirtualScroll:z,padVirtualScroll:W,scrollTo:D,reset:K,refresh:E}}const Si=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,ki=/[\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,xi=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Ci=/[a-z0-9_ -]$/i;function da(e){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,e(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(ye.is.firefox===!0?Ci.test(l.data)===!1:Si.test(l.data)===!0||ki.test(l.data)===!0||xi.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}function Ge(e,n){if(e===n)return!0;if(e!==null&&n!==null&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;let l,a;if(e.constructor===Array){if(l=e.length,l!==n.length)return!1;for(a=l;a--!==0;)if(Ge(e[a],n[a])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==n.size)return!1;let r=e.entries();for(a=r.next();a.done!==!0;){if(n.has(a.value[0])!==!0)return!1;a=r.next()}for(r=e.entries(),a=r.next();a.done!==!0;){if(Ge(a.value[1],n.get(a.value[0]))!==!0)return!1;a=r.next()}return!0}if(e.constructor===Set){if(e.size!==n.size)return!1;const r=e.entries();for(a=r.next();a.done!==!0;){if(n.has(a.value[0])!==!0)return!1;a=r.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(l=e.length,l!==n.length)return!1;for(a=l;a--!==0;)if(e[a]!==n[a])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();const o=Object.keys(e).filter(r=>e[r]!==void 0);if(l=o.length,l!==Object.keys(n).filter(r=>n[r]!==void 0).length)return!1;for(a=l;a--!==0;){const r=o[a];if(Ge(e[r],n[r])!==!0)return!1}return!0}return e!==e&&n!==n}function _i(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}const so=e=>["add","add-unique","toggle"].includes(e),qi=".*+?^${}()|[]\\",Mi=Object.keys(yn);function Fn(e,n){if(typeof e=="function")return e;const l=e!==void 0?e:n;return a=>a!==null&&typeof a=="object"&&l in a?a[l]:a}const fa=ae({name:"QSelect",inheritAttrs:!1,props:{...uo,...hn,...yn,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:so},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:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:uo.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...vl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:n,emit:l}){const{proxy:a}=t.getCurrentInstance(),{$q:o}=a,r=t.ref(!1),i=t.ref(!1),u=t.ref(-1),c=t.ref(""),f=t.ref(!1),s=t.ref(!1);let h=null,y=null,m,b,V,p=null,F,M,T,x;const q=t.ref(null),B=t.ref(null),A=t.ref(null),K=t.ref(null),E=t.ref(null),D=Lo(e),$=da(yt),C=t.computed(()=>Array.isArray(e.options)?e.options.length:0),j=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:w,virtualScrollSliceSizeComputed:z,localResetVirtualScroll:O,padVirtualScroll:W,onVirtualScrollEvt:L,scrollTo:X,setVirtualScrollSize:ee}=wi({virtualScrollLength:C,getVirtualScrollTarget:pt,getVirtualScrollEl:Bt,virtualScrollItemSizeComputed:j}),k=ml(),S=t.computed(()=>{const v=e.mapOptions===!0&&e.multiple!==!0,P=e.modelValue!==void 0&&(e.modelValue!==null||v===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const Y=e.mapOptions===!0&&m!==void 0?m:[],le=P.map(se=>Qt(se,Y));return e.modelValue===null&&v===!0?le.filter(se=>se!==null):le}return P}),U=t.computed(()=>{const v={};return Mi.forEach(P=>{const Y=e[P];Y!==void 0&&(v[P]=Y)}),v}),I=t.computed(()=>e.optionsDark===null?k.isDark.value:e.optionsDark),J=t.computed(()=>It(S.value)),Z=t.computed(()=>{let v="q-field__input q-placeholder col";return e.hideSelected===!0||S.value.length===0?[v,e.inputClass]:(v+=" q-field__input--padding",e.inputClass===void 0?v:[v,e.inputClass])}),G=t.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),ie=t.computed(()=>C.value===0),R=t.computed(()=>S.value.map(v=>Ce.value(v)).join(", ")),be=t.computed(()=>e.displayValue!==void 0?e.displayValue:R.value),ue=t.computed(()=>e.optionsHtml===!0?()=>!0:v=>(v==null?void 0:v.html)===!0),fe=t.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||S.value.some(ue.value))),xe=t.computed(()=>k.focused.value===!0?e.tabindex:-1),Ne=t.computed(()=>{const v={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly===!0?"true":"false","aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":r.value===!0?"true":"false","aria-controls":`${k.targetUid.value}_lb`};return u.value>=0&&(v["aria-activedescendant"]=`${k.targetUid.value}_${u.value}`),v}),Le=t.computed(()=>({id:`${k.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),Ve=t.computed(()=>S.value.map((v,P)=>({index:P,opt:v,html:ue.value(v),selected:!0,removeAtIndex:Sn,toggleOption:$e,tabindex:xe.value}))),we=t.computed(()=>{if(C.value===0)return[];const{from:v,to:P}=w.value;return e.options.slice(v,P).map((Y,le)=>{const se=Re.value(Y)===!0,ve=ut(Y)===!0,ce=v+le,me={clickable:!0,active:ve,activeClass:ot.value,manualFocus:!0,focused:!1,disable:se,tabindex:-1,dense:e.optionsDense,dark:I.value,role:"option","aria-selected":ve===!0?"true":"false",id:`${k.targetUid.value}_${ce}`,onClick:()=>{$e(Y)}};return se!==!0&&(u.value===ce&&(me.focused=!0),o.platform.is.desktop===!0&&(me.onMousemove=()=>{r.value===!0&&je(ce)})),{index:ce,opt:Y,html:ue.value(Y),label:Ce.value(Y),selected:me.active,focused:me.focused,toggleOption:$e,setOptionIndex:je,itemProps:me}})}),lt=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:o.iconSet.arrow.dropdown),zt=t.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),ot=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),Ee=t.computed(()=>Fn(e.optionValue,"value")),Ce=t.computed(()=>Fn(e.optionLabel,"label")),Re=t.computed(()=>Fn(e.optionDisable,"disable")),at=t.computed(()=>S.value.map(Ee.value)),wn=t.computed(()=>{const v={onInput:yt,onChange:$,onKeydown:Ye,onKeyup:Xt,onKeypress:Fe,onFocus:Wt,onClick(P){b===!0&&De(P)}};return v.onCompositionstart=v.onCompositionupdate=v.onCompositionend=$,v});t.watch(S,v=>{m=v,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&k.innerLoading.value!==!0&&(i.value!==!0&&r.value!==!0||J.value!==!0)&&(V!==!0&&Te(),(i.value===!0||r.value===!0)&&He(""))},{immediate:!0}),t.watch(()=>e.fillInput,Te),t.watch(r,_n),t.watch(C,qa);function Ut(v){return e.emitValue===!0?Ee.value(v):v}function rt(v){if(v!==-1&&v<S.value.length)if(e.multiple===!0){const P=e.modelValue.slice();l("remove",{index:v,value:P.splice(v,1)[0]}),l("update:modelValue",P)}else l("update:modelValue",null)}function Sn(v){rt(v),k.focus()}function Tt(v,P){const Y=Ut(v);if(e.multiple!==!0){e.fillInput===!0&&ct(Ce.value(v),!0,!0),l("update:modelValue",Y);return}if(S.value.length===0){l("add",{index:0,value:Y}),l("update:modelValue",e.multiple===!0?[Y]:Y);return}if(P===!0&&ut(v)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const le=e.modelValue.slice();l("add",{index:le.length,value:Y}),le.push(Y),l("update:modelValue",le)}function $e(v,P){var ve;if(k.editable.value!==!0||v===void 0||Re.value(v)===!0)return;const Y=Ee.value(v);if(e.multiple!==!0){P!==!0&&(ct(e.fillInput===!0?Ce.value(v):"",!0,!0),oe()),(ve=B.value)==null||ve.focus(),(S.value.length===0||Ge(Ee.value(S.value[0]),Y)!==!0)&&l("update:modelValue",e.emitValue===!0?Y:v);return}if((b!==!0||f.value===!0)&&k.focus(),Wt(),S.value.length===0){const ce=e.emitValue===!0?Y:v;l("add",{index:0,value:ce}),l("update:modelValue",e.multiple===!0?[ce]:ce);return}const le=e.modelValue.slice(),se=at.value.findIndex(ce=>Ge(ce,Y));if(se!==-1)l("remove",{index:se,value:le.splice(se,1)[0]});else{if(e.maxValues!==void 0&&le.length>=e.maxValues)return;const ce=e.emitValue===!0?Y:v;l("add",{index:le.length,value:ce}),le.push(ce)}l("update:modelValue",le)}function je(v){if(o.platform.is.desktop!==!0)return;const P=v!==-1&&v<C.value?v:-1;u.value!==P&&(u.value=P)}function it(v=1,P){if(r.value===!0){let Y=u.value;do Y=Ll(Y+v,-1,C.value-1);while(Y!==-1&&Y!==u.value&&Re.value(e.options[Y])===!0);u.value!==Y&&(je(Y),X(Y),P!==!0&&e.useInput===!0&&e.fillInput===!0&&st(Y>=0?Ce.value(e.options[Y]):F,!0))}}function Qt(v,P){const Y=le=>Ge(Ee.value(le),v);return e.options.find(Y)||P.find(Y)||v}function ut(v){const P=Ee.value(v);return at.value.find(Y=>Ge(Y,P))!==void 0}function Wt(v){e.useInput===!0&&B.value!==null&&(v===void 0||B.value===v.target&&v.target.value===R.value)&&B.value.select()}function Kt(v){tt(v,27)===!0&&r.value===!0&&(De(v),oe(),Te()),l("keyup",v)}function Xt(v){const{value:P}=v.target;if(v.keyCode!==void 0){Kt(v);return}if(v.target.value="",h!==null&&(clearTimeout(h),h=null),y!==null&&(clearTimeout(y),y=null),Te(),typeof P=="string"&&P.length!==0){const Y=P.toLocaleLowerCase(),le=ve=>{const ce=e.options.find(me=>String(ve.value(me)).toLocaleLowerCase()===Y);return ce===void 0?!1:(S.value.indexOf(ce)===-1?$e(ce):oe(),!0)},se=ve=>{le(Ee)!==!0&&ve!==!0&&le(Ce)!==!0&&He(P,!0,()=>se(!0))};se()}else k.clearValue(v)}function Fe(v){l("keypress",v)}function Ye(v){if(l("keydown",v),ul(v)===!0)return;const P=c.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),Y=v.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(u.value!==-1||P===!0);if(v.keyCode===27){_e(v);return}if(v.keyCode===9&&Y===!1){Q();return}if(v.target===void 0||v.target.id!==k.targetUid.value||k.editable.value!==!0)return;if(v.keyCode===40&&k.innerLoading.value!==!0&&r.value===!1){ge(v),te();return}if(v.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&c.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?rt(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&l("update:modelValue",null);return}(v.keyCode===35||v.keyCode===36)&&(typeof c.value!="string"||c.value.length===0)&&(ge(v),u.value=-1,it(v.keyCode===36?1:-1,e.multiple)),(v.keyCode===33||v.keyCode===34)&&z.value!==void 0&&(ge(v),u.value=Math.max(-1,Math.min(C.value,u.value+(v.keyCode===33?-1:1)*z.value.view)),it(v.keyCode===33?1:-1,e.multiple)),(v.keyCode===38||v.keyCode===40)&&(ge(v),it(v.keyCode===38?-1:1,e.multiple));const le=C.value;if((T===void 0||x<Date.now())&&(T=""),le>0&&e.useInput!==!0&&v.key!==void 0&&v.key.length===1&&v.altKey===!1&&v.ctrlKey===!1&&v.metaKey===!1&&(v.keyCode!==32||T.length!==0)){r.value!==!0&&te(v);const se=v.key.toLocaleLowerCase(),ve=T.length===1&&T[0]===se;x=Date.now()+1500,ve===!1&&(ge(v),T+=se);const ce=new RegExp("^"+T.split("").map(wt=>qi.indexOf(wt)!==-1?"\\"+wt:wt).join(".*"),"i");let me=u.value;if(ve===!0||me<0||ce.test(Ce.value(e.options[me]))!==!0)do me=Ll(me+1,-1,le-1);while(me!==u.value&&(Re.value(e.options[me])===!0||ce.test(Ce.value(e.options[me]))!==!0));u.value!==me&&t.nextTick(()=>{je(me),X(me),me>=0&&e.useInput===!0&&e.fillInput===!0&&st(Ce.value(e.options[me]),!0)});return}if(!(v.keyCode!==13&&(v.keyCode!==32||e.useInput===!0||T!=="")&&(v.keyCode!==9||Y===!1))){if(v.keyCode!==9&&ge(v),u.value!==-1&&u.value<le){$e(e.options[u.value]);return}if(P===!0){const se=(ve,ce)=>{var wt;if(ce){if(so(ce)!==!0)return}else ce=e.newValueMode;if(ct("",e.multiple!==!0,!0),ve==null)return;(ce==="toggle"?$e:Tt)(ve,ce==="add-unique"),e.multiple!==!0&&((wt=B.value)==null||wt.focus(),oe())};if(e.onNewValue!==void 0?l("newValue",c.value,se):se(c.value),e.multiple!==!0)return}r.value===!0?Q():k.innerLoading.value!==!0&&te()}}function Bt(){return b===!0?E.value:A.value!==null&&A.value.contentEl!==null?A.value.contentEl:void 0}function pt(){return Bt()}function Zt(){return e.hideSelected===!0?[]:n["selected-item"]!==void 0?Ve.value.map(v=>n["selected-item"](v)).slice():n.selected!==void 0?[].concat(n.selected()):e.useChips===!0?Ve.value.map((v,P)=>t.h(si,{key:"option-"+P,removable:k.editable.value===!0&&Re.value(v.opt)!==!0,dense:!0,textColor:e.color,tabindex:xe.value,onRemove(){v.removeAtIndex(P)}},()=>t.h("span",{class:"ellipsis",[v.html===!0?"innerHTML":"textContent"]:Ce.value(v.opt)}))):[t.h("span",{class:"ellipsis",[fe.value===!0?"innerHTML":"textContent"]:be.value})]}function Ue(){if(ie.value===!0)return n["no-option"]!==void 0?n["no-option"]({inputValue:c.value}):void 0;const v=n.option!==void 0?n.option:Y=>t.h(el,{key:Y.index,...Y.itemProps},()=>t.h(tl,()=>t.h(ci,()=>t.h("span",{[Y.html===!0?"innerHTML":"textContent"]:Y.label}))));let P=W("div",we.value.map(v));return n["before-options"]!==void 0&&(P=n["before-options"]().concat(P)),Ae(n["after-options"],P)}function $t(v,P){const Y=P===!0?{...Ne.value,...k.splitAttrs.attributes.value}:void 0,le={ref:P===!0?B:void 0,key:"i_t",class:Z.value,style:e.inputStyle,value:c.value!==void 0?c.value:"",type:"search",...Y,id:P===!0?k.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":v===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...wn.value};return v!==!0&&b===!0&&(Array.isArray(le.class)===!0?le.class=[...le.class,"no-pointer-events"]:le.class+=" no-pointer-events"),t.h("input",le)}function yt(v){h!==null&&(clearTimeout(h),h=null),y!==null&&(clearTimeout(y),y=null),!(v&&v.target&&v.target.qComposing===!0)&&(st(v.target.value||""),V=!0,F=c.value,k.focused.value!==!0&&(b!==!0||f.value===!0)&&k.focus(),e.onFilter!==void 0&&(h=setTimeout(()=>{h=null,He(c.value)},e.inputDebounce)))}function st(v,P){c.value!==v&&(c.value=v,P===!0||e.inputDebounce===0||e.inputDebounce==="0"?l("inputValue",v):y=setTimeout(()=>{y=null,l("inputValue",v)},e.inputDebounce))}function ct(v,P,Y){V=Y!==!0,e.useInput===!0&&(st(v,!0),(P===!0||Y!==!0)&&(F=v),P!==!0&&He(v))}function He(v,P,Y){if(e.onFilter===void 0||P!==!0&&k.focused.value!==!0)return;k.innerLoading.value===!0?l("filterAbort"):(k.innerLoading.value=!0,s.value=!0),v!==""&&e.multiple!==!0&&S.value.length!==0&&V!==!0&&v===Ce.value(S.value[0])&&(v="");const le=setTimeout(()=>{r.value===!0&&(r.value=!1)},10);p!==null&&clearTimeout(p),p=le,l("filter",v,(se,ve)=>{(P===!0||k.focused.value===!0)&&p===le&&(clearTimeout(p),typeof se=="function"&&se(),s.value=!1,t.nextTick(()=>{k.innerLoading.value=!1,k.editable.value===!0&&(P===!0?r.value===!0&&oe():r.value===!0?_n(!0):r.value=!0),typeof ve=="function"&&t.nextTick(()=>{ve(a)}),typeof Y=="function"&&t.nextTick(()=>{Y(a)})}))},()=>{k.focused.value===!0&&p===le&&(clearTimeout(p),k.innerLoading.value=!1,s.value=!1),r.value===!0&&(r.value=!1)})}function kn(){return t.h(bn,{ref:A,class:G.value,style:e.popupContentStyle,modelValue:r.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&ie.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:I.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:zt.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Le.value,onScrollPassive:L,onBeforeShow:yl,onBeforeHide:xn,onShow:Cn},Ue)}function xn(v){wl(v),Q()}function Cn(){ee()}function d(v){var P;De(v),(P=B.value)==null||P.focus(),f.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function g(v){De(v),t.nextTick(()=>{f.value=!1})}function _(){const v=[t.h(ii,{class:`col-auto ${k.fieldClass.value}`,...U.value,for:k.targetUid.value,dark:I.value,square:!0,loading:s.value,itemAligned:!1,filled:!0,stackLabel:c.value.length!==0,...k.splitAttrs.listeners.value,onFocus:d,onBlur:g},{...n,rawControl:()=>k.getControl(!0),before:void 0,after:void 0})];return r.value===!0&&v.push(t.h("div",{ref:E,class:G.value+" scroll",style:e.popupContentStyle,...Le.value,onClick:_e,onScrollPassive:L},Ue())),t.h(sa,{ref:K,modelValue:i.value,position:e.useInput===!0?"top":void 0,transitionShow:M,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:yl,onBeforeHide:H,onHide:N,onShow:ne},()=>t.h("div",{class:"q-select__dialog"+(I.value===!0?" q-select__dialog--dark q-dark":"")+(f.value===!0?" q-select__dialog--focused":"")},v))}function H(v){wl(v),K.value!==null&&K.value.__updateRefocusTarget(k.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),k.focused.value=!1}function N(v){oe(),k.focused.value===!1&&l("blur",v),Te()}function ne(){const v=document.activeElement;(v===null||v.id!==k.targetUid.value)&&B.value!==null&&B.value!==v&&B.value.focus(),ee()}function Q(){i.value!==!0&&(u.value=-1,r.value===!0&&(r.value=!1),k.focused.value===!1&&(p!==null&&(clearTimeout(p),p=null),k.innerLoading.value===!0&&(l("filterAbort"),k.innerLoading.value=!1,s.value=!1)))}function te(v){k.editable.value===!0&&(b===!0?(k.onControlFocusin(v),i.value=!0,t.nextTick(()=>{k.focus()})):k.focus(),e.onFilter!==void 0?He(c.value):(ie.value!==!0||n["no-option"]!==void 0)&&(r.value=!0))}function oe(){i.value=!1,Q()}function Te(){e.useInput===!0&&ct(e.multiple!==!0&&e.fillInput===!0&&S.value.length!==0&&Ce.value(S.value[0])||"",!0,!0)}function _n(v){let P=-1;if(v===!0){if(S.value.length!==0){const Y=Ee.value(S.value[0]);P=e.options.findIndex(le=>Ge(Ee.value(le),Y))}O(P)}je(P)}function qa(v,P){r.value===!0&&k.innerLoading.value===!1&&(O(-1,!0),t.nextTick(()=>{r.value===!0&&k.innerLoading.value===!1&&(v>P?O():_n(!0))}))}function pl(){i.value===!1&&A.value!==null&&A.value.updatePosition()}function yl(v){v!==void 0&&De(v),l("popupShow",v),k.hasPopupOpen=!0,k.onControlFocusin(v)}function wl(v){v!==void 0&&De(v),l("popupHide",v),k.hasPopupOpen=!1,k.onControlFocusout(v)}function Sl(){b=o.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?n["no-option"]!==void 0||e.onFilter!==void 0||ie.value===!1:!0),M=o.platform.is.ios===!0&&b===!0&&e.useInput===!0?"fade":e.transitionShow}return t.onBeforeUpdate(Sl),t.onUpdated(pl),Sl(),t.onBeforeUnmount(()=>{h!==null&&clearTimeout(h),y!==null&&clearTimeout(y)}),Object.assign(a,{showPopup:te,hidePopup:oe,removeAtIndex:rt,add:Tt,toggleOption:$e,getOptionIndex:()=>u.value,setOptionIndex:je,moveOptionSelection:it,filter:He,updateMenuPosition:pl,updateInputValue:ct,isOptionSelected:ut,getEmittingOptionValue:Ut,isOptionDisabled:(...v)=>Re.value.apply(null,v)===!0,getOptionValue:(...v)=>Ee.value.apply(null,v),getOptionLabel:(...v)=>Ce.value.apply(null,v)}),Object.assign(k,{innerValue:S,fieldClass:t.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:q,targetRef:B,hasValue:J,showPopup:te,floatingLabel:t.computed(()=>e.hideSelected!==!0&&J.value===!0||typeof c.value=="number"||c.value.length!==0||It(e.displayValue)),getControlChild:()=>{if(k.editable.value!==!1&&(i.value===!0||ie.value!==!0||n["no-option"]!==void 0))return b===!0?_():kn();k.hasPopupOpen===!0&&(k.hasPopupOpen=!1)},controlEvents:{onFocusin(v){k.onControlFocusin(v)},onFocusout(v){k.onControlFocusout(v,()=>{Te(),Q()})},onClick(v){var P;if(_e(v),b!==!0&&r.value===!0){Q(),(P=B.value)==null||P.focus();return}te(v)}},getControl:v=>{const P=Zt(),Y=v===!0||i.value!==!0||b!==!0;if(e.useInput===!0)P.push($t(v,Y));else if(k.editable.value===!0){const se=Y===!0?Ne.value:void 0;P.push(t.h("input",{ref:Y===!0?B:void 0,key:"d_t",class:"q-select__focus-target",id:Y===!0?k.targetUid.value:void 0,value:be.value,readonly:!0,"data-autofocus":v===!0||e.autofocus===!0||void 0,...se,onKeydown:Ye,onKeyup:Kt,onKeypress:Fe})),Y===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&P.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:Xt}))}if(D.value!==void 0&&e.disable!==!0&&at.value.length!==0){const se=at.value.map(ve=>t.h("option",{value:ve,selected:!0}));P.push(t.h("select",{class:"hidden",name:D.value,multiple:e.multiple},se))}const le=e.useInput===!0||Y!==!0?void 0:k.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...le,...k.splitAttrs.listeners.value},P)},getInnerAppend:()=>e.loading!==!0&&s.value!==!0&&e.hideDropdownIcon!==!0?[t.h(qe,{class:"q-select__dropdown-icon"+(r.value===!0?" rotate-180":""),name:lt.value})]:null}),hl(k)}}),Vi={class:"q-pa-none"},Ei=t.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(e,{emit:n}){const l=e,a=n,o=t.ref(!1),r=t.ref(l.modelValue||[]),i=t.computed(()=>({height:l.scrollAreaHeight,width:l.scrollAreaWidth})),u=t.computed(()=>l.dataCy||"checkbox-filter");return t.watch(r,c=>{a("update:modelValue",c)}),t.watch(()=>l.modelValue,c=>{c&&(r.value=c)}),(c,f)=>(t.openBlock(),t.createElementBlock("div",Vi,[t.createVNode(fa,t.mergeProps({outlined:"",dense:"",label:l.label,class:["full-width","cursor-pointer"],"data-cy":u.value,"model-value":null,options:[],"hide-dropdown-icon":""},c.$attrs),{append:t.withCtx(()=>[t.createVNode(qe,{name:"arrow_drop_down",class:t.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":o.value}])},null,8,["class"])]),default:t.withCtx(()=>[t.createVNode(bn,{modelValue:o.value,"onUpdate:modelValue":f[1]||(f[1]=s=>o.value=s),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:t.withCtx(()=>[t.createVNode(Er,{class:"q-pa-sm"},{default:t.withCtx(()=>[t.createVNode(Vr,{style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.options,s=>(t.openBlock(),t.createBlock(hr,{key:s.value,modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=h=>r.value=h),val:s,label:s.label,disable:s.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`${u.value}-option-${s.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label","data-cy"])]))}}),Di=Yt(Ei,[["__scopeId","data-v-0094cb2e"]]),zi=t.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null}},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,a=n,o=t.ref(),r=t.ref(l.modelValue??null),i=t.ref(""),u=t.ref(l.options??[]),c=t.ref(!1),f=t.ref(!0);t.watch(()=>l.options,p=>{u.value=p??[],s()},{immediate:!0}),t.watch(()=>l.modelValue,p=>{r.value=p,s(),c.value=!1});function s(){const p=u.value.find(F=>F.value===r.value);i.value=(p==null?void 0:p.label)??""}function h(p){r.value=p,a("update:modelValue",p),s(),c.value=!1}function y(p){i.value=p,p===""&&(c.value=!0)}function m(){var p;if(f.value){f.value=!1;return}r.value!==null&&!c.value?(i.value="",c.value=!0,(p=o.value)==null||p.showPopup()):c.value&&(i.value="")}function b(){f.value=!0;const p=i.value.trim();if(p==="")c.value&&(r.value=null,a("update:modelValue",null));else{const F=u.value.find(M=>M.label.toLowerCase()===p.toLowerCase());F?(r.value=F.value,a("update:modelValue",F.value),i.value=F.label):s()}c.value=!1}function V(p,F,M){if(l.fetchOptions)l.fetchOptions(p).then(T=>{u.value=T,F(()=>{})}).catch(M).finally(()=>{});else{const T=l.options??[];u.value=T.filter(x=>x.label.toLowerCase().includes(p.toLowerCase())),F(()=>{})}}return(p,F)=>(t.openBlock(),t.createBlock(fa,t.mergeProps({ref_key:"selectRef",ref:o,"model-value":r.value,"input-value":i.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:p.label,options:u.value,"onUpdate:modelValue":h,"onUpdate:inputValue":y,onFocus:m,onBlur:b,onFilter:V,dense:"",outlined:"",class:"full-width cursor-pointer"},p.$attrs),null,16,["model-value","input-value","label","options"]))}}),va=ae({name:"QAvatar",props:{...Nt,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:n}){const l=jt(e),a=t.computed(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(e.square===!0?" q-avatar--square":e.rounded===!0?" rounded-borders":"")),o=t.computed(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const r=e.icon!==void 0?[t.h(qe,{name:e.icon})]:void 0;return t.h("div",{class:a.value,style:l.value},[t.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:o.value},So(n.default,r))])}}}),Ti=ae({name:"QSpace",setup(){const e=t.h("div",{class:"q-space"});return()=>e}}),Bi=ae({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:n}){const l=t.computed(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>t.h("div",{class:l.value,role:"toolbar"},ke(n.default))}}),$i=ae({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(e,{slots:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=t.inject(pn,Ke);if(o===Ke)return console.error("QHeader needs to be child of QLayout"),Ke;const r=t.ref(parseInt(e.heightHint,10)),i=t.ref(!0),u=t.computed(()=>e.reveal===!0||o.view.value.indexOf("H")!==-1||a.platform.is.ios&&o.isContainer.value===!0),c=t.computed(()=>{if(e.modelValue!==!0)return 0;if(u.value===!0)return i.value===!0?r.value:0;const M=r.value-o.scroll.value.position;return M>0?M:0}),f=t.computed(()=>e.modelValue!==!0||u.value===!0&&i.value!==!0),s=t.computed(()=>e.modelValue===!0&&f.value===!0&&e.reveal===!0),h=t.computed(()=>"q-header q-layout__section--marginal "+(u.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(f.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),y=t.computed(()=>{const M=o.rows.value.top,T={};return M[0]==="l"&&o.left.space===!0&&(T[a.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),M[2]==="r"&&o.right.space===!0&&(T[a.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),T});function m(M,T){o.update("header",M,T)}function b(M,T){M.value!==T&&(M.value=T)}function V({height:M}){b(r,M),m("size",M)}function p(M){s.value===!0&&b(i,!0),l("focusin",M)}t.watch(()=>e.modelValue,M=>{m("space",M),b(i,!0),o.animate()}),t.watch(c,M=>{m("offset",M)}),t.watch(()=>e.reveal,M=>{M===!1&&b(i,e.modelValue)}),t.watch(i,M=>{o.animate(),l("reveal",M)}),t.watch(o.scroll,M=>{e.reveal===!0&&b(i,M.direction==="up"||M.position<=e.revealOffset||M.position-M.inflectionPoint<100)});const F={};return o.instances.header=F,e.modelValue===!0&&m("size",r.value),m("space",e.modelValue),m("offset",c.value),t.onBeforeUnmount(()=>{o.instances.header===F&&(o.instances.header=void 0,m("size",0),m("offset",0),m("space",!1))}),()=>{const M=wo(n.default,[]);return e.elevated===!0&&M.push(t.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),M.push(t.h(Vt,{debounce:0,onResize:V})),t.h("header",{class:h.value,style:y.value,onFocusin:p},M)}}}),Oi=["src","alt"],Ai=t.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{}},setup(e){const n=e,l=n.logoAlt??"Logo",a=n.logoTo??"/";return(o,r)=>{const i=t.resolveComponent("router-link");return t.openBlock(),t.createBlock($i,t.mergeProps({elevated:""},o.$attrs),{default:t.withCtx(()=>[t.createVNode(Bi,null,{default:t.withCtx(()=>[t.createVNode(i,{to:t.unref(a),class:"q-mr-md"},{default:t.withCtx(()=>[t.createVNode(va,{class:"logo"},{default:t.withCtx(()=>[t.createElementVNode("img",{src:o.logoSrc,alt:t.unref(l)},null,8,Oi)]),_:1})]),_:1},8,["to"]),t.createVNode(Ti),t.renderSlot(o.$slots,"user-avatar",{},void 0,!0)]),_:3})]),_:3},16)}}}),Li=Yt(Ai,[["__scopeId","data-v-ab7c0ff6"]]),Ri=ae({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=t.inject(pn,Ke);if(o===Ke)return console.error("QFooter needs to be child of QLayout"),Ke;const r=t.ref(parseInt(e.heightHint,10)),i=t.ref(!0),u=t.ref(nt.value===!0||o.isContainer.value===!0?0:window.innerHeight),c=t.computed(()=>e.reveal===!0||o.view.value.indexOf("F")!==-1||a.platform.is.ios&&o.isContainer.value===!0),f=t.computed(()=>o.isContainer.value===!0?o.containerHeight.value:u.value),s=t.computed(()=>{if(e.modelValue!==!0)return 0;if(c.value===!0)return i.value===!0?r.value:0;const q=o.scroll.value.position+f.value+r.value-o.height.value;return q>0?q:0}),h=t.computed(()=>e.modelValue!==!0||c.value===!0&&i.value!==!0),y=t.computed(()=>e.modelValue===!0&&h.value===!0&&e.reveal===!0),m=t.computed(()=>"q-footer q-layout__section--marginal "+(c.value===!0?"fixed":"absolute")+"-bottom"+(e.bordered===!0?" q-footer--bordered":"")+(h.value===!0?" q-footer--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus"+(c.value!==!0?" hidden":""):"")),b=t.computed(()=>{const q=o.rows.value.bottom,B={};return q[0]==="l"&&o.left.space===!0&&(B[a.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),q[2]==="r"&&o.right.space===!0&&(B[a.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),B});function V(q,B){o.update("footer",q,B)}function p(q,B){q.value!==B&&(q.value=B)}function F({height:q}){p(r,q),V("size",q)}function M(){if(e.reveal!==!0)return;const{direction:q,position:B,inflectionPoint:A}=o.scroll.value;p(i,q==="up"||B-A<100||o.height.value-f.value-B-r.value<300)}function T(q){y.value===!0&&p(i,!0),l("focusin",q)}t.watch(()=>e.modelValue,q=>{V("space",q),p(i,!0),o.animate()}),t.watch(s,q=>{V("offset",q)}),t.watch(()=>e.reveal,q=>{q===!1&&p(i,e.modelValue)}),t.watch(i,q=>{o.animate(),l("reveal",q)}),t.watch([r,o.scroll,o.height],M),t.watch(()=>a.screen.height,q=>{o.isContainer.value!==!0&&p(u,q)});const x={};return o.instances.footer=x,e.modelValue===!0&&V("size",r.value),V("space",e.modelValue),V("offset",s.value),t.onBeforeUnmount(()=>{o.instances.footer===x&&(o.instances.footer=void 0,V("size",0),V("offset",0),V("space",!1))}),()=>{const q=Ae(n.default,[t.h(Vt,{debounce:0,onResize:F})]);return e.elevated===!0&&q.push(t.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),t.h("footer",{class:m.value,style:b.value,onFocusin:T},q)}}}),Fi={class:"row justify-between"},Hi={class:"col-3 q-py-md flex justify-center"},Pi={class:"col-3 q-py-md flex justify-center"},Ii={class:"col-3 q-py-md flex justify-center"},Ni=t.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(Ri,t.mergeProps({elevated:""},n.$attrs),{default:t.withCtx(()=>[t.createElementVNode("div",Fi,[t.createElementVNode("div",Hi,"Front: "+t.toDisplayString(n.frontVersion),1),t.createElementVNode("div",Pi,"Back: "+t.toDisplayString(n.backVersion),1),t.createElementVNode("div",Ii,"Platform: "+t.toDisplayString(n.platform),1)])]),_:1},16))}}),ji={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Hn={xs:2,sm:4,md:8,lg:16,xl:24},Yi=ae({name:"QSeparator",props:{...Pe,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const n=t.getCurrentInstance(),l=Ie(e,n.proxy.$q),a=t.computed(()=>e.vertical===!0?"vertical":"horizontal"),o=t.computed(()=>` q-separator--${a.value}`),r=t.computed(()=>e.inset!==!1?`${o.value}-${ji[e.inset]}`:""),i=t.computed(()=>`q-separator${o.value}${r.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(l.value===!0?" q-separator--dark":"")),u=t.computed(()=>{const c={};if(e.size!==void 0&&(c[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const f=e.spaced===!0?`${Hn.md}px`:e.spaced in Hn?`${Hn[e.spaced]}px`:e.spaced,s=e.vertical===!0?["Left","Right"]:["Top","Bottom"];c[`margin${s[0]}`]=c[`margin${s[1]}`]=f}return c});return()=>t.h("hr",{class:i.value,style:u.value,"aria-orientation":a.value})}}),Ui=["ul","ol"],Qi=ae({name:"QList",props:{...Pe,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:n}){const l=t.getCurrentInstance(),a=Ie(e,l.proxy.$q),o=t.computed(()=>Ui.includes(e.tag)?null:"list"),r=t.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(a.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>t.h(e.tag,{class:r.value,role:o.value},ke(n.default))}}),Wi={class:"text-h6 text-primary"},Ki=t.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{type:Function},logoutLabel:{}},setup(e){const n=e,l=t.computed(()=>{var o;return((o=n.username)==null?void 0:o.charAt(0).toUpperCase())??""}),a=n.logoutLabel??"Logout";return(o,r)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(va,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar"},{default:t.withCtx(()=>[t.createElementVNode("span",Wi,t.toDisplayString(l.value),1),t.createVNode(bn,{"transition-show":"flip-right","transition-hide":"flip-left"},{default:t.withCtx(()=>[t.createVNode(Qi,null,{default:t.withCtx(()=>[t.createVNode(el,null,{default:t.withCtx(()=>[t.createVNode(tl,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(o.username),1)]),_:1})]),_:1}),t.createVNode(Yi),t.createVNode(el,{clickable:"",onClick:o.onLogout,"data-cy":"cy-logout-button"},{default:t.withCtx(()=>[t.createVNode(tl,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(a)),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),Xi=ae({name:"QPageContainer",setup(e,{slots:n}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=t.inject(pn,Ke);if(a===Ke)return console.error("QPageContainer needs to be child of QLayout"),Ke;t.provide(ei,!0);const o=t.computed(()=>{const r={};return a.header.space===!0&&(r.paddingTop=`${a.header.size}px`),a.right.space===!0&&(r[`padding${l.lang.rtl===!0?"Left":"Right"}`]=`${a.right.size}px`),a.footer.space===!0&&(r.paddingBottom=`${a.footer.size}px`),a.left.space===!0&&(r[`padding${l.lang.rtl===!0?"Right":"Left"}`]=`${a.left.size}px`),r});return()=>t.h("div",{class:"q-page-container",style:o.value},ke(n.default))}}),Zi=ae({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=t.ref(null),r=t.ref(a.screen.height),i=t.ref(e.container===!0?0:a.screen.width),u=t.ref({position:0,direction:"down",inflectionPoint:0}),c=t.ref(0),f=t.ref(nt.value===!0?0:rn()),s=t.computed(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),h=t.computed(()=>e.container===!1?{minHeight:a.screen.height+"px"}:null),y=t.computed(()=>f.value!==0?{[a.lang.rtl===!0?"left":"right"]:`${f.value}px`}:null),m=t.computed(()=>f.value!==0?{[a.lang.rtl===!0?"right":"left"]:0,[a.lang.rtl===!0?"left":"right"]:`-${f.value}px`,width:`calc(100% + ${f.value}px)`}:null);function b(x){if(e.container===!0||document.qScrollPrevented!==!0){const q={position:x.position.top,direction:x.direction,directionChanged:x.directionChanged,inflectionPoint:x.inflectionPoint.top,delta:x.delta.top};u.value=q,e.onScroll!==void 0&&l("scroll",q)}}function V(x){const{height:q,width:B}=x;let A=!1;r.value!==q&&(A=!0,r.value=q,e.onScrollHeight!==void 0&&l("scrollHeight",q),F()),i.value!==B&&(A=!0,i.value=B),A===!0&&e.onResize!==void 0&&l("resize",x)}function p({height:x}){c.value!==x&&(c.value=x,F())}function F(){if(e.container===!0){const x=r.value>c.value?rn():0;f.value!==x&&(f.value=x)}}let M=null;const T={instances:{},view:t.computed(()=>e.view),isContainer:t.computed(()=>e.container),rootRef:o,height:r,containerHeight:c,scrollbarWidth:f,totalWidth:t.computed(()=>i.value+f.value),rows:t.computed(()=>{const x=e.view.toLowerCase().split(" ");return{top:x[0].split(""),middle:x[1].split(""),bottom:x[2].split("")}}),header:t.reactive({size:0,offset:0,space:!1}),right:t.reactive({size:300,offset:0,space:!1}),footer:t.reactive({size:0,offset:0,space:!1}),left:t.reactive({size:300,offset:0,space:!1}),scroll:u,animate(){M!==null?clearTimeout(M):document.body.classList.add("q-body--layout-animate"),M=setTimeout(()=>{M=null,document.body.classList.remove("q-body--layout-animate")},155)},update(x,q,B){T[x][q]=B}};if(t.provide(pn,T),rn()>0){let x=function(){A=null,K.classList.remove("hide-scrollbar")},q=function(){if(A===null){if(K.scrollHeight>a.screen.height)return;K.classList.add("hide-scrollbar")}else clearTimeout(A);A=setTimeout(x,300)},B=function(E){A!==null&&E==="remove"&&(clearTimeout(A),x()),window[`${E}EventListener`]("resize",q)},A=null;const K=document.body;t.watch(()=>e.container!==!0?"add":"remove",B),e.container!==!0&&B("add"),t.onUnmounted(()=>{B("remove")})}return()=>{const x=Ae(n.default,[t.h(jo,{onScroll:b}),t.h(Vt,{onResize:V})]),q=t.h("div",{class:s.value,style:h.value,ref:e.container===!0?void 0:o,tabindex:-1},x);return e.container===!0?t.h("div",{class:"q-layout-container overflow-hidden",ref:o},[t.h(Vt,{onResize:p}),t.h("div",{class:"absolute-full",style:y.value},[t.h("div",{class:"scroll",style:m.value},[q])])]):q}}}),Ji=t.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-dark"},pageContainerClass:{default:"q-pa-sm"}},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(Zi,{view:n.view,class:t.normalizeClass(n.layoutClass)},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"header"),t.createVNode(Xi,{class:t.normalizeClass(n.pageContainerClass)},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["class"]),t.renderSlot(n.$slots,"footer")]),_:3},8,["view","class"]))}});function Gi(){let e=Object.create(null);return{getCache:(n,l)=>e[n]===void 0?e[n]=typeof l=="function"?l():l:e[n],setCache(n,l){e[n]=l},hasCache(n){return Object.hasOwnProperty.call(e,n)},clearCache(n){n!==void 0?delete e[n]:e=Object.create(null)}}}const et=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function eu(e,n,l){return Object.prototype.toString.call(e)==="[object Date]"&&(l=e.getDate(),n=e.getMonth()+1,e=e.getFullYear()),ou(gl(e,n,l))}function co(e,n,l){return ha(lu(e,n,l))}function tu(e){return nu(e)===0}function un(e,n){return n<=6?31:n<=11||tu(e)?30:29}function nu(e){const n=et.length;let l=et[0],a,o,r,i,u;if(e<l||e>=et[n-1])throw new Error("Invalid Jalaali year "+e);for(u=1;u<n&&(a=et[u],o=a-l,!(e<a));u+=1)l=a;return i=e-l,o-i<6&&(i=i-o+de(o+4,33)*33),r=ze(ze(i+1,33)-1,4),r===-1&&(r=4),r}function ma(e,n){const l=et.length,a=e+621;let o=-14,r=et[0],i,u,c,f,s;if(e<r||e>=et[l-1])throw new Error("Invalid Jalaali year "+e);for(s=1;s<l&&(i=et[s],u=i-r,!(e<i));s+=1)o=o+de(u,33)*8+de(ze(u,33),4),r=i;f=e-r,o=o+de(f,33)*8+de(ze(f,33)+3,4),ze(u,33)===4&&u-f===4&&(o+=1);const h=de(a,4)-de((de(a,100)+1)*3,4)-150,y=20+o-h;return n||(u-f<6&&(f=f-u+de(u+4,33)*33),c=ze(ze(f+1,33)-1,4),c===-1&&(c=4)),{leap:c,gy:a,march:y}}function lu(e,n,l){const a=ma(e,!0);return gl(a.gy,3,a.march)+(n-1)*31-de(n,7)*(n-7)+l-1}function ou(e){const n=ha(e).gy;let l=n-621,a,o,r;const i=ma(l,!1),u=gl(n,3,i.march);if(r=e-u,r>=0){if(r<=185)return o=1+de(r,31),a=ze(r,31)+1,{jy:l,jm:o,jd:a};r-=186}else l-=1,r+=179,i.leap===1&&(r+=1);return o=7+de(r,30),a=ze(r,30)+1,{jy:l,jm:o,jd:a}}function gl(e,n,l){let a=de((e+de(n-8,6)+100100)*1461,4)+de(153*ze(n+9,12)+2,5)+l-34840408;return a=a-de(de(e+100100+de(n-8,6),100)*3,4)+752,a}function ha(e){let n=4*e+139361631;n=n+de(de(4*e+183187720,146097)*3,4)*4-3908;const l=de(ze(n,1461),4)*5+308,a=de(ze(l,153),5)+1,o=ze(de(l,153),12)+1;return{gy:de(n,1461)-100100+de(8-o,6),gm:o,gd:a}}function de(e,n){return~~(e/n)}function ze(e,n){return e-~~(e/n)*n}const au=["gregorian","persian"],fo={mask:{type:String},locale:Object,calendar:{type:String,validator:e=>au.includes(e),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},ru=["update:modelValue"];function Xe(e){return e.year+"/"+re(e.month)+"/"+re(e.day)}function iu(e,n){const l=t.computed(()=>e.disable!==!0&&e.readonly!==!0),a=t.computed(()=>l.value===!0?0:-1),o=t.computed(()=>{const u=[];return e.color!==void 0&&u.push(`bg-${e.color}`),e.textColor!==void 0&&u.push(`text-${e.textColor}`),u.join(" ")});function r(){return e.locale!==void 0?{...n.lang.date,...e.locale}:n.lang.date}function i(u){const c=new Date,f=u===!0?null:0;if(e.calendar==="persian"){const s=eu(c);return{year:s.jy,month:s.jm,day:s.jd}}return{year:c.getFullYear(),month:c.getMonth()+1,day:c.getDate(),hour:f,minute:f,second:f,millisecond:f}}return{editable:l,tabindex:a,headerClass:o,getLocale:r,getCurrentDate:i}}const nl={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:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"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:e=>`Previous ${e} years`,nextRangeYears:e=>`Next ${e} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>e===1?"1 record selected.":(e===0?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,n,l)=>e+"-"+n+" of "+l,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 vo(){const e=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof e=="string")return e.split(/[-_]/).map((n,l)=>l===0?n.toLowerCase():l>1||n.length<4?n.toUpperCase():n[0].toUpperCase()+n.slice(1).toLowerCase()).join("-")}const Je=Ma({__qLang:{}},{getLocale:vo,set(e=nl,n){const l={...e,rtl:e.rtl===!0,getLocale:vo};{if(l.set=Je.set,Je.__langConfig===void 0||Je.__langConfig.noHtmlAttrs!==!0){const a=document.documentElement;a.setAttribute("dir",l.rtl===!0?"rtl":"ltr"),a.setAttribute("lang",l.isoName)}Object.assign(Je.__qLang,l)}},install({$q:e,lang:n,ssrContext:l}){e.lang=Je.__qLang,Je.__langConfig=e.config.lang,this.__installed===!0?n!==void 0&&this.set(n):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(a){return Reflect.ownKeys(a).filter(o=>o!=="set"&&o!=="getLocale")}}),this.set(n||nl))}}),ga=864e5,uu=36e5,ll=6e4,ba="YYYY-MM-DDTHH:mm:ss.SSSZ",su=/\[((?:[^\]\\]|\\]|\\)*)\]|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,cu=/(\[[^\]]*\])|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,Pn={};function du(e,n){const l="("+n.days.join("|")+")",a=e+l;if(Pn[a]!==void 0)return Pn[a];const o="("+n.daysShort.join("|")+")",r="("+n.months.join("|")+")",i="("+n.monthsShort.join("|")+")",u={};let c=0;const f=e.replace(cu,h=>{switch(c++,h){case"YY":return u.YY=c,"(-?\\d{1,2})";case"YYYY":return u.YYYY=c,"(-?\\d{1,4})";case"M":return u.M=c,"(\\d{1,2})";case"Mo":return u.M=c++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return u.M=c,"(\\d{2})";case"MMM":return u.MMM=c,i;case"MMMM":return u.MMMM=c,r;case"D":return u.D=c,"(\\d{1,2})";case"Do":return u.D=c++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return u.D=c,"(\\d{2})";case"H":return u.H=c,"(\\d{1,2})";case"HH":return u.H=c,"(\\d{2})";case"h":return u.h=c,"(\\d{1,2})";case"hh":return u.h=c,"(\\d{2})";case"m":return u.m=c,"(\\d{1,2})";case"mm":return u.m=c,"(\\d{2})";case"s":return u.s=c,"(\\d{1,2})";case"ss":return u.s=c,"(\\d{2})";case"S":return u.S=c,"(\\d{1})";case"SS":return u.S=c,"(\\d{2})";case"SSS":return u.S=c,"(\\d{3})";case"A":return u.A=c,"(AM|PM)";case"a":return u.a=c,"(am|pm)";case"aa":return u.aa=c,"(a\\.m\\.|p\\.m\\.)";case"ddd":return o;case"dddd":return l;case"Q":case"d":case"E":return"(\\d{1})";case"do":return c++,"(\\d{1}(st|nd|rd|th))";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"DDDo":return c++,"(\\d{1,3}(st|nd|rd|th))";case"w":return"(\\d{1,2})";case"wo":return c++,"(\\d{1,2}(st|nd|rd|th))";case"ww":return"(\\d{2})";case"Z":return u.Z=c,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return u.ZZ=c,"(Z|[+-]\\d{2}\\d{2})";case"X":return u.X=c,"(-?\\d+)";case"x":return u.x=c,"(-?\\d{4,})";default:return c--,h[0]==="["&&(h=h.substring(1,h.length-1)),h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),s={map:u,regex:new RegExp("^"+f)};return Pn[a]=s,s}function pa(e,n){return e!==void 0?e:n!==void 0?n.date:nl.date}function mo(e,n=""){const l=e>0?"-":"+",a=Math.abs(e),o=Math.floor(a/60),r=a%60;return l+re(o)+n+re(r)}function fu(e,n,l,a,o){const r={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(o!==void 0&&Object.assign(r,o),e==null||e===""||typeof e!="string")return r;n===void 0&&(n=ba);const i=pa(l,Je.props),u=i.months,c=i.monthsShort,{regex:f,map:s}=du(n,i),h=e.match(f);if(h===null)return r;let y="";if(s.X!==void 0||s.x!==void 0){const m=parseInt(h[s.X!==void 0?s.X:s.x],10);if(isNaN(m)===!0||m<0)return r;const b=new Date(m*(s.X!==void 0?1e3:1));r.year=b.getFullYear(),r.month=b.getMonth()+1,r.day=b.getDate(),r.hour=b.getHours(),r.minute=b.getMinutes(),r.second=b.getSeconds(),r.millisecond=b.getMilliseconds()}else{if(s.YYYY!==void 0)r.year=parseInt(h[s.YYYY],10);else if(s.YY!==void 0){const m=parseInt(h[s.YY],10);r.year=m<0?m:2e3+m}if(s.M!==void 0){if(r.month=parseInt(h[s.M],10),r.month<1||r.month>12)return r}else s.MMM!==void 0?r.month=c.indexOf(h[s.MMM])+1:s.MMMM!==void 0&&(r.month=u.indexOf(h[s.MMMM])+1);if(s.D!==void 0){if(r.day=parseInt(h[s.D],10),r.year===null||r.month===null||r.day<1)return r;const m=a!=="persian"?new Date(r.year,r.month,0).getDate():un(r.year,r.month);if(r.day>m)return r}s.H!==void 0?r.hour=parseInt(h[s.H],10)%24:s.h!==void 0&&(r.hour=parseInt(h[s.h],10)%12,(s.A&&h[s.A]==="PM"||s.a&&h[s.a]==="pm"||s.aa&&h[s.aa]==="p.m.")&&(r.hour+=12),r.hour=r.hour%24),s.m!==void 0&&(r.minute=parseInt(h[s.m],10)%60),s.s!==void 0&&(r.second=parseInt(h[s.s],10)%60),s.S!==void 0&&(r.millisecond=parseInt(h[s.S],10)*10**(3-h[s.S].length)),(s.Z!==void 0||s.ZZ!==void 0)&&(y=s.Z!==void 0?h[s.Z].replace(":",""):h[s.ZZ],r.timezoneOffset=(y[0]==="+"?-1:1)*(60*y.slice(1,3)+1*y.slice(3,5)))}return r.dateHash=re(r.year,6)+"/"+re(r.month)+"/"+re(r.day),r.timeHash=re(r.hour)+":"+re(r.minute)+":"+re(r.second)+y,r}function In(e){const n=new Date(e.getFullYear(),e.getMonth(),e.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);const l=new Date(n.getFullYear(),0,4);l.setDate(l.getDate()-(l.getDay()+6)%7+3);const a=n.getTimezoneOffset()-l.getTimezoneOffset();n.setHours(n.getHours()-a);const o=(n-l)/(ga*7);return 1+Math.floor(o)}function We(e,n,l){const a=new Date(e),o=`set${l===!0?"UTC":""}`;switch(n){case"year":case"years":a[`${o}Month`](0);case"month":case"months":a[`${o}Date`](1);case"day":case"days":case"date":a[`${o}Hours`](0);case"hour":case"hours":a[`${o}Minutes`](0);case"minute":case"minutes":a[`${o}Seconds`](0);case"second":case"seconds":a[`${o}Milliseconds`](0)}return a}function on(e,n,l){return(e.getTime()-e.getTimezoneOffset()*ll-(n.getTime()-n.getTimezoneOffset()*ll))/l}function ya(e,n,l="days"){const a=new Date(e),o=new Date(n);switch(l){case"years":case"year":return a.getFullYear()-o.getFullYear();case"months":case"month":return(a.getFullYear()-o.getFullYear())*12+a.getMonth()-o.getMonth();case"days":case"day":case"date":return on(We(a,"day"),We(o,"day"),ga);case"hours":case"hour":return on(We(a,"hour"),We(o,"hour"),uu);case"minutes":case"minute":return on(We(a,"minute"),We(o,"minute"),ll);case"seconds":case"second":return on(We(a,"second"),We(o,"second"),1e3)}}function Nn(e){return ya(e,We(e,"year"),"days")+1}function Ct(e){if(e>=11&&e<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`}return`${e}th`}const ho={YY(e,n,l){const a=this.YYYY(e,n,l)%100;return a>=0?re(a):"-"+re(Math.abs(a))},YYYY(e,n,l){return l??e.getFullYear()},M(e){return e.getMonth()+1},Mo(e){return Ct(e.getMonth()+1)},MM(e){return re(e.getMonth()+1)},MMM(e,n){return n.monthsShort[e.getMonth()]},MMMM(e,n){return n.months[e.getMonth()]},Q(e){return Math.ceil((e.getMonth()+1)/3)},Qo(e){return Ct(this.Q(e))},D(e){return e.getDate()},Do(e){return Ct(e.getDate())},DD(e){return re(e.getDate())},DDD(e){return Nn(e)},DDDo(e){return Ct(Nn(e))},DDDD(e){return re(Nn(e),3)},d(e){return e.getDay()},do(e){return Ct(e.getDay())},dd(e,n){return n.days[e.getDay()].slice(0,2)},ddd(e,n){return n.daysShort[e.getDay()]},dddd(e,n){return n.days[e.getDay()]},E(e){return e.getDay()||7},w(e){return In(e)},wo(e){return Ct(In(e))},ww(e){return re(In(e))},H(e){return e.getHours()},HH(e){return re(e.getHours())},h(e){const n=e.getHours();return n===0?12:n>12?n%12:n},hh(e){return re(this.h(e))},m(e){return e.getMinutes()},mm(e){return re(e.getMinutes())},s(e){return e.getSeconds()},ss(e){return re(e.getSeconds())},S(e){return Math.floor(e.getMilliseconds()/100)},SS(e){return re(Math.floor(e.getMilliseconds()/10))},SSS(e){return re(e.getMilliseconds(),3)},A(e){return e.getHours()<12?"AM":"PM"},a(e){return e.getHours()<12?"am":"pm"},aa(e){return e.getHours()<12?"a.m.":"p.m."},Z(e,n,l,a){const o=a??e.getTimezoneOffset();return mo(o,":")},ZZ(e,n,l,a){const o=a??e.getTimezoneOffset();return mo(o)},X(e){return Math.floor(e.getTime()/1e3)},x(e){return e.getTime()}};function vu(e,n,l,a,o){if(e!==0&&!e||e===1/0||e===-1/0)return;const r=new Date(e);if(isNaN(r))return;n===void 0&&(n=ba);const i=pa(l,Je.props);return n.replace(su,(u,c)=>u in ho?ho[u](r,i,a,o):c===void 0?u:c.split("\\]").join("]"))}const Qe=20,mu=["Calendar","Years","Months"],go=e=>mu.includes(e),jn=e=>/^-?[\d]+\/[0-1]\d$/.test(e),_t=" — ";function Ze(e){return e.year+"/"+re(e.month)}const wa=ae({name:"QDate",props:{...fo,...hn,...Pe,modelValue:{required:!0,validator:e=>typeof e=="string"||Array.isArray(e)===!0||Object(e)===e||e===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...fo.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:jn},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:jn},navigationMaxYearMonth:{type:String,validator:jn},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:go}},emits:[...ru,"rangeStart","rangeEnd","navigation"],setup(e,{slots:n,emit:l}){const{proxy:a}=t.getCurrentInstance(),{$q:o}=a,r=Ie(e,o),{getCache:i}=Gi(),{tabindex:u,headerClass:c,getLocale:f,getCurrentDate:s}=iu(e,o);let h;const y=sr(e),m=Ao(y),b=t.ref(null),V=t.ref(Tt()),p=t.ref(f()),F=t.computed(()=>Tt()),M=t.computed(()=>f()),T=t.computed(()=>s()),x=t.ref(je(V.value,p.value)),q=t.ref(e.defaultView),B=t.computed(()=>o.lang.rtl===!0?"right":"left"),A=t.ref(B.value),K=t.ref(B.value),E=x.value.year,D=t.ref(E-E%Qe-(E<0?Qe:0)),$=t.ref(null),C=t.computed(()=>{const d=e.landscape===!0?"landscape":"portrait";return`q-date q-date--${d} q-date--${d}-${e.minimal===!0?"minimal":"standard"}`+(r.value===!0?" q-date--dark q-dark":"")+(e.bordered===!0?" q-date--bordered":"")+(e.square===!0?" q-date--square no-border-radius":"")+(e.flat===!0?" q-date--flat no-shadow":"")+(e.disable===!0?" disabled":e.readonly===!0?" q-date--readonly":"")}),j=t.computed(()=>e.color||"primary"),w=t.computed(()=>e.textColor||"white"),z=t.computed(()=>e.emitImmediately===!0&&e.multiple!==!0&&e.range!==!0),O=t.computed(()=>Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue!==null&&e.modelValue!==void 0?[e.modelValue]:[]),W=t.computed(()=>O.value.filter(d=>typeof d=="string").map(d=>$e(d,V.value,p.value)).filter(d=>d.dateHash!==null&&d.day!==null&&d.month!==null&&d.year!==null)),L=t.computed(()=>{const d=g=>$e(g,V.value,p.value);return O.value.filter(g=>_i(g)===!0&&g.from!==void 0&&g.to!==void 0).map(g=>({from:d(g.from),to:d(g.to)})).filter(g=>g.from.dateHash!==null&&g.to.dateHash!==null&&g.from.dateHash<g.to.dateHash)}),X=t.computed(()=>e.calendar!=="persian"?d=>new Date(d.year,d.month-1,d.day):d=>{const g=co(d.year,d.month,d.day);return new Date(g.gy,g.gm-1,g.gd)}),ee=t.computed(()=>e.calendar==="persian"?Xe:(d,g,_)=>vu(new Date(d.year,d.month-1,d.day,d.hour,d.minute,d.second,d.millisecond),g===void 0?V.value:g,_===void 0?p.value:_,d.year,d.timezoneOffset)),k=t.computed(()=>W.value.length+L.value.reduce((d,g)=>d+1+ya(X.value(g.to),X.value(g.from)),0)),S=t.computed(()=>{if(e.title!==void 0&&e.title!==null&&e.title.length!==0)return e.title;if($.value!==null){const _=$.value.init,H=X.value(_);return p.value.daysShort[H.getDay()]+", "+p.value.monthsShort[_.month-1]+" "+_.day+_t+"?"}if(k.value===0)return _t;if(k.value>1)return`${k.value} ${p.value.pluralDay}`;const d=W.value[0],g=X.value(d);return isNaN(g.valueOf())===!0?_t:p.value.headerTitle!==void 0?p.value.headerTitle(g,d):p.value.daysShort[g.getDay()]+", "+p.value.monthsShort[d.month-1]+" "+d.day}),U=t.computed(()=>W.value.concat(L.value.map(g=>g.from)).sort((g,_)=>g.year-_.year||g.month-_.month)[0]),I=t.computed(()=>W.value.concat(L.value.map(g=>g.to)).sort((g,_)=>_.year-g.year||_.month-g.month)[0]),J=t.computed(()=>{if(e.subtitle!==void 0&&e.subtitle!==null&&e.subtitle.length!==0)return e.subtitle;if(k.value===0)return _t;if(k.value>1){const d=U.value,g=I.value,_=p.value.monthsShort;return _[d.month-1]+(d.year!==g.year?" "+d.year+_t+_[g.month-1]+" ":d.month!==g.month?_t+_[g.month-1]:"")+" "+g.year}return W.value[0].year}),Z=t.computed(()=>{const d=[o.iconSet.datetime.arrowLeft,o.iconSet.datetime.arrowRight];return o.lang.rtl===!0?d.reverse():d}),G=t.computed(()=>e.firstDayOfWeek!==void 0?Number(e.firstDayOfWeek):p.value.firstDayOfWeek),ie=t.computed(()=>{const d=p.value.daysShort,g=G.value;return g>0?d.slice(g,7).concat(d.slice(0,g)):d}),R=t.computed(()=>{const d=x.value;return e.calendar!=="persian"?new Date(d.year,d.month,0).getDate():un(d.year,d.month)}),be=t.computed(()=>typeof e.eventColor=="function"?e.eventColor:()=>e.eventColor),ue=t.computed(()=>{if(e.navigationMinYearMonth===void 0)return null;const d=e.navigationMinYearMonth.split("/");return{year:parseInt(d[0],10),month:parseInt(d[1],10)}}),fe=t.computed(()=>{if(e.navigationMaxYearMonth===void 0)return null;const d=e.navigationMaxYearMonth.split("/");return{year:parseInt(d[0],10),month:parseInt(d[1],10)}}),xe=t.computed(()=>{const d={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return ue.value!==null&&ue.value.year>=x.value.year&&(d.year.prev=!1,ue.value.year===x.value.year&&ue.value.month>=x.value.month&&(d.month.prev=!1)),fe.value!==null&&fe.value.year<=x.value.year&&(d.year.next=!1,fe.value.year===x.value.year&&fe.value.month<=x.value.month&&(d.month.next=!1)),d}),Ne=t.computed(()=>{const d={};return W.value.forEach(g=>{const _=Ze(g);d[_]===void 0&&(d[_]=[]),d[_].push(g.day)}),d}),Le=t.computed(()=>{const d={};return L.value.forEach(g=>{const _=Ze(g.from),H=Ze(g.to);if(d[_]===void 0&&(d[_]=[]),d[_].push({from:g.from.day,to:_===H?g.to.day:void 0,range:g}),_<H){let N;const{year:ne,month:Q}=g.from,te=Q<12?{year:ne,month:Q+1}:{year:ne+1,month:1};for(;(N=Ze(te))<=H;)d[N]===void 0&&(d[N]=[]),d[N].push({from:void 0,to:N===H?g.to.day:void 0,range:g}),te.month++,te.month>12&&(te.year++,te.month=1)}}),d}),Ve=t.computed(()=>{if($.value===null)return;const{init:d,initHash:g,final:_,finalHash:H}=$.value,[N,ne]=g<=H?[d,_]:[_,d],Q=Ze(N),te=Ze(ne);if(Q!==we.value&&te!==we.value)return;const oe={};return Q===we.value?(oe.from=N.day,oe.includeFrom=!0):oe.from=1,te===we.value?(oe.to=ne.day,oe.includeTo=!0):oe.to=R.value,oe}),we=t.computed(()=>Ze(x.value)),lt=t.computed(()=>{const d={};if(e.options===void 0){for(let _=1;_<=R.value;_++)d[_]=!0;return d}const g=typeof e.options=="function"?e.options:_=>e.options.includes(_);for(let _=1;_<=R.value;_++){const H=we.value+"/"+re(_);d[_]=g(H)}return d}),zt=t.computed(()=>{const d={};if(e.events===void 0)for(let g=1;g<=R.value;g++)d[g]=!1;else{const g=typeof e.events=="function"?e.events:_=>e.events.includes(_);for(let _=1;_<=R.value;_++){const H=we.value+"/"+re(_);d[_]=g(H)===!0&&be.value(H)}}return d}),ot=t.computed(()=>{let d,g;const{year:_,month:H}=x.value;if(e.calendar!=="persian")d=new Date(_,H-1,1),g=new Date(_,H-1,0).getDate();else{const N=co(_,H,1);d=new Date(N.gy,N.gm-1,N.gd);let ne=H-1,Q=_;ne===0&&(ne=12,Q--),g=un(Q,ne)}return{days:d.getDay()-G.value-1,endDay:g}}),Ee=t.computed(()=>{const d=[],{days:g,endDay:_}=ot.value,H=g<0?g+7:g;if(H<6)for(let Q=_-H;Q<=_;Q++)d.push({i:Q,fill:!0});const N=d.length;for(let Q=1;Q<=R.value;Q++){const te={i:Q,event:zt.value[Q],classes:[]};lt.value[Q]===!0&&(te.in=!0,te.flat=!0),d.push(te)}if(Ne.value[we.value]!==void 0&&Ne.value[we.value].forEach(Q=>{const te=N+Q-1;Object.assign(d[te],{selected:!0,unelevated:!0,flat:!1,color:j.value,textColor:w.value})}),Le.value[we.value]!==void 0&&Le.value[we.value].forEach(Q=>{if(Q.from!==void 0){const te=N+Q.from-1,oe=N+(Q.to||R.value)-1;for(let Te=te;Te<=oe;Te++)Object.assign(d[Te],{range:Q.range,unelevated:!0,color:j.value,textColor:w.value});Object.assign(d[te],{rangeFrom:!0,flat:!1}),Q.to!==void 0&&Object.assign(d[oe],{rangeTo:!0,flat:!1})}else if(Q.to!==void 0){const te=N+Q.to-1;for(let oe=N;oe<=te;oe++)Object.assign(d[oe],{range:Q.range,unelevated:!0,color:j.value,textColor:w.value});Object.assign(d[te],{flat:!1,rangeTo:!0})}else{const te=N+R.value-1;for(let oe=N;oe<=te;oe++)Object.assign(d[oe],{range:Q.range,unelevated:!0,color:j.value,textColor:w.value})}}),Ve.value!==void 0){const Q=N+Ve.value.from-1,te=N+Ve.value.to-1;for(let oe=Q;oe<=te;oe++)d[oe].color=j.value,d[oe].editRange=!0;Ve.value.includeFrom===!0&&(d[Q].editRangeFrom=!0),Ve.value.includeTo===!0&&(d[te].editRangeTo=!0)}x.value.year===T.value.year&&x.value.month===T.value.month&&(d[N+T.value.day-1].today=!0);const ne=d.length%7;if(ne>0){const Q=7-ne;for(let te=1;te<=Q;te++)d.push({i:te,fill:!0})}return d.forEach(Q=>{let te="q-date__calendar-item ";Q.fill===!0?te+="q-date__calendar-item--fill":(te+=`q-date__calendar-item--${Q.in===!0?"in":"out"}`,Q.range!==void 0&&(te+=` q-date__range${Q.rangeTo===!0?"-to":Q.rangeFrom===!0?"-from":""}`),Q.editRange===!0&&(te+=` q-date__edit-range${Q.editRangeFrom===!0?"-from":""}${Q.editRangeTo===!0?"-to":""}`),(Q.range!==void 0||Q.editRange===!0)&&(te+=` text-${Q.color}`)),Q.classes=te}),d}),Ce=t.computed(()=>e.disable===!0?{"aria-disabled":"true"}:{});t.watch(()=>e.modelValue,d=>{if(h===JSON.stringify(d))h=0;else{const g=je(V.value,p.value);Ye(g.year,g.month,g)}}),t.watch(q,()=>{b.value!==null&&a.$el.contains(document.activeElement)===!0&&b.value.focus()}),t.watch(()=>x.value.year+"|"+x.value.month,()=>{l("navigation",{year:x.value.year,month:x.value.month})}),t.watch(F,d=>{st(d,p.value,"mask"),V.value=d}),t.watch(M,d=>{st(V.value,d,"locale"),p.value=d});function Re(d){h=JSON.stringify(d)}function at(){const{year:d,month:g,day:_}=T.value,H={...x.value,year:d,month:g,day:_},N=Ne.value[Ze(H)];(N===void 0||N.includes(H.day)===!1)&&$t(H),rt(H.year,H.month)}function wn(d){go(d)===!0&&(q.value=d)}function Ut(d,g){["month","year"].includes(d)&&(d==="month"?Qt:ut)(g===!0?-1:1)}function rt(d,g){q.value="Calendar",Ye(d,g)}function Sn(d,g){if(e.range===!1||!d){$.value=null;return}const _=Object.assign({...x.value},d),H=g!==void 0?Object.assign({...x.value},g):_;$.value={init:_,initHash:Xe(_),final:H,finalHash:Xe(H)},rt(_.year,_.month)}function Tt(){return e.calendar==="persian"?"YYYY/MM/DD":e.mask}function $e(d,g,_){return fu(d,g,_,e.calendar,{hour:0,minute:0,second:0,millisecond:0})}function je(d,g){const _=Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue?[e.modelValue]:[];if(_.length===0)return it();const H=_[_.length-1],N=$e(H.from!==void 0?H.from:H,d,g);return N.dateHash===null?it():N}function it(){let d,g;if(e.defaultYearMonth!==void 0){const _=e.defaultYearMonth.split("/");d=parseInt(_[0],10),g=parseInt(_[1],10)}else{const _=T.value!==void 0?T.value:s();d=_.year,g=_.month}return{year:d,month:g,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:d+"/"+re(g)+"/01"}}function Qt(d){let g=x.value.year,_=Number(x.value.month)+d;_===13?(_=1,g++):_===0&&(_=12,g--),Ye(g,_),z.value===!0&&pt("month")}function ut(d){const g=Number(x.value.year)+d;Ye(g,x.value.month),z.value===!0&&pt("year")}function Wt(d){Ye(d,x.value.month),q.value=e.defaultView==="Years"?"Months":"Calendar",z.value===!0&&pt("year")}function Kt(d){Ye(x.value.year,d),q.value="Calendar",z.value===!0&&pt("month")}function Xt(d,g){const _=Ne.value[g];((_==null?void 0:_.includes(d.day))===!0?yt:$t)(d)}function Fe(d){return{year:d.year,month:d.month,day:d.day}}function Ye(d,g,_){if(ue.value!==null&&d<=ue.value.year&&((g<ue.value.month||d<ue.value.year)&&(g=ue.value.month),d=ue.value.year),fe.value!==null&&d>=fe.value.year&&((g>fe.value.month||d>fe.value.year)&&(g=fe.value.month),d=fe.value.year),_!==void 0){const{hour:N,minute:ne,second:Q,millisecond:te,timezoneOffset:oe,timeHash:Te}=_;Object.assign(x.value,{hour:N,minute:ne,second:Q,millisecond:te,timezoneOffset:oe,timeHash:Te})}const H=d+"/"+re(g)+"/01";H!==x.value.dateHash&&(A.value=x.value.dateHash<H==(o.lang.rtl!==!0)?"left":"right",d!==x.value.year&&(K.value=A.value),t.nextTick(()=>{D.value=d-d%Qe-(d<0?Qe:0),Object.assign(x.value,{year:d,month:g,day:1,dateHash:H})}))}function Bt(d,g,_){const H=d!==null&&d.length===1&&e.multiple===!1?d[0]:d,{reason:N,details:ne}=Zt(g,_);Re(H),l("update:modelValue",H,N,ne)}function pt(d){const g=W.value[0]!==void 0&&W.value[0].dateHash!==null?{...W.value[0]}:{...x.value};t.nextTick(()=>{g.year=x.value.year,g.month=x.value.month;const _=e.calendar!=="persian"?new Date(g.year,g.month,0).getDate():un(g.year,g.month);g.day=Math.min(Math.max(1,g.day),_);const H=Ue(g),{details:N}=Zt("",g);Re(H),l("update:modelValue",H,d,N)})}function Zt(d,g){return g.from!==void 0?{reason:`${d}-range`,details:{...Fe(g.target),from:Fe(g.from),to:Fe(g.to)}}:{reason:`${d}-day`,details:Fe(g)}}function Ue(d,g,_){return d.from!==void 0?{from:ee.value(d.from,g,_),to:ee.value(d.to,g,_)}:ee.value(d,g,_)}function $t(d){let g;if(e.multiple===!0)if(d.from!==void 0){const _=Xe(d.from),H=Xe(d.to),N=W.value.filter(Q=>Q.dateHash<_||Q.dateHash>H),ne=L.value.filter(({from:Q,to:te})=>te.dateHash<_||Q.dateHash>H);g=N.concat(ne).concat(d).map(Q=>Ue(Q))}else{const _=O.value.slice();_.push(Ue(d)),g=_}else g=Ue(d);Bt(g,"add",d)}function yt(d){if(e.noUnset===!0)return;let g=null;if(e.multiple===!0&&Array.isArray(e.modelValue)===!0){const _=Ue(d);d.from!==void 0?g=e.modelValue.filter(H=>H.from!==void 0?H.from!==_.from&&H.to!==_.to:!0):g=e.modelValue.filter(H=>H!==_),g.length===0&&(g=null)}Bt(g,"remove",d)}function st(d,g,_){const H=W.value.concat(L.value).map(ne=>Ue(ne,d,g)).filter(ne=>ne.from!==void 0?ne.from.dateHash!==null&&ne.to.dateHash!==null:ne.dateHash!==null),N=(e.multiple===!0?H:H[0])||null;Re(N),l("update:modelValue",N,_)}function ct(){if(e.minimal!==!0)return t.h("div",{class:"q-date__header "+c.value},[t.h("div",{class:"relative-position"},[t.h(t.Transition,{name:"q-transition--fade"},()=>t.h("div",{key:"h-yr-"+J.value,class:"q-date__header-subtitle q-date__header-link "+(q.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:u.value,...i("vY",{onClick(){q.value="Years"},onKeyup(d){d.keyCode===13&&(q.value="Years")}})},[J.value]))]),t.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[t.h("div",{class:"relative-position col"},[t.h(t.Transition,{name:"q-transition--fade"},()=>t.h("div",{key:"h-sub"+S.value,class:"q-date__header-title-label q-date__header-link "+(q.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:u.value,...i("vC",{onClick(){q.value="Calendar"},onKeyup(d){d.keyCode===13&&(q.value="Calendar")}})},[S.value]))]),e.todayBtn===!0?t.h(Me,{class:"q-date__header-today self-start",icon:o.iconSet.datetime.today,ariaLabel:o.lang.date.today,flat:!0,size:"sm",round:!0,tabindex:u.value,onClick:at}):null])])}function He({label:d,type:g,key:_,dir:H,goTo:N,boundaries:ne,cls:Q}){return[t.h("div",{class:"row items-center q-date__arrow"},[t.h(Me,{round:!0,dense:!0,size:"sm",flat:!0,icon:Z.value[0],ariaLabel:g==="Years"?o.lang.date.prevYear:o.lang.date.prevMonth,tabindex:u.value,disable:ne.prev===!1,...i("go-#"+g,{onClick(){N(-1)}})})]),t.h("div",{class:"relative-position overflow-hidden flex flex-center"+Q},[t.h(t.Transition,{name:"q-transition--jump-"+H},()=>t.h("div",{key:_},[t.h(Me,{flat:!0,dense:!0,noCaps:!0,label:d,tabindex:u.value,...i("view#"+g,{onClick:()=>{q.value=g}})})]))]),t.h("div",{class:"row items-center q-date__arrow"},[t.h(Me,{round:!0,dense:!0,size:"sm",flat:!0,icon:Z.value[1],ariaLabel:g==="Years"?o.lang.date.nextYear:o.lang.date.nextMonth,tabindex:u.value,disable:ne.next===!1,...i("go+#"+g,{onClick(){N(1)}})})])]}const kn={Calendar:()=>[t.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[t.h("div",{class:"q-date__navigation row items-center no-wrap"},He({label:p.value.months[x.value.month-1],type:"Months",key:x.value.month,dir:A.value,goTo:Qt,boundaries:xe.value.month,cls:" col"}).concat(He({label:x.value.year,type:"Years",key:x.value.year,dir:K.value,goTo:ut,boundaries:xe.value.year,cls:""}))),t.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},ie.value.map(d=>t.h("div",{class:"q-date__calendar-item"},[t.h("div",d)]))),t.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[t.h(t.Transition,{name:"q-transition--slide-"+A.value},()=>t.h("div",{key:we.value,class:"q-date__calendar-days fit"},Ee.value.map(d=>t.h("div",{class:d.classes},[d.in===!0?t.h(Me,{class:d.today===!0?"q-date__today":"",dense:!0,flat:d.flat,unelevated:d.unelevated,color:d.color,textColor:d.textColor,label:d.i,tabindex:u.value,...i("day#"+d.i,{onClick:()=>{xn(d.i)},onMouseover:()=>{Cn(d.i)}})},d.event!==!1?()=>t.h("div",{class:"q-date__event bg-"+d.event}):null):t.h("div",""+d.i)]))))])])],Months(){const d=x.value.year===T.value.year,g=H=>ue.value!==null&&x.value.year===ue.value.year&&ue.value.month>H||fe.value!==null&&x.value.year===fe.value.year&&fe.value.month<H,_=p.value.monthsShort.map((H,N)=>{const ne=x.value.month===N+1;return t.h("div",{class:"q-date__months-item flex flex-center"},[t.h(Me,{class:d===!0&&T.value.month===N+1?"q-date__today":null,flat:ne!==!0,label:H,unelevated:ne,color:ne===!0?j.value:null,textColor:ne===!0?w.value:null,tabindex:u.value,disable:g(N+1),...i("month#"+N,{onClick:()=>{Kt(N+1)}})})])});return e.yearsInMonthView===!0&&_.unshift(t.h("div",{class:"row no-wrap full-width"},[He({label:x.value.year,type:"Years",key:x.value.year,dir:K.value,goTo:ut,boundaries:xe.value.year,cls:" col"})])),t.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},_)},Years(){const d=D.value,g=d+Qe,_=[],H=N=>ue.value!==null&&ue.value.year>N||fe.value!==null&&fe.value.year<N;for(let N=d;N<=g;N++){const ne=x.value.year===N;_.push(t.h("div",{class:"q-date__years-item flex flex-center"},[t.h(Me,{key:"yr"+N,class:T.value.year===N?"q-date__today":null,flat:!ne,label:N,dense:!0,unelevated:ne,color:ne===!0?j.value:null,textColor:ne===!0?w.value:null,tabindex:u.value,disable:H(N),...i("yr#"+N,{onClick:()=>{Wt(N)}})})]))}return t.h("div",{class:"q-date__view q-date__years flex flex-center"},[t.h("div",{class:"col-auto"},[t.h(Me,{round:!0,dense:!0,flat:!0,icon:Z.value[0],ariaLabel:o.lang.date.prevRangeYears(Qe),tabindex:u.value,disable:H(d),...i("y-",{onClick:()=>{D.value-=Qe}})})]),t.h("div",{class:"q-date__years-content col self-stretch row items-center"},_),t.h("div",{class:"col-auto"},[t.h(Me,{round:!0,dense:!0,flat:!0,icon:Z.value[1],ariaLabel:o.lang.date.nextRangeYears(Qe),tabindex:u.value,disable:H(g),...i("y+",{onClick:()=>{D.value+=Qe}})})])])}};function xn(d){const g={...x.value,day:d};if(e.range===!1){Xt(g,we.value);return}if($.value===null){const _=Ee.value.find(N=>N.fill!==!0&&N.i===d);if(e.noUnset!==!0&&_.range!==void 0){yt({target:g,from:_.range.from,to:_.range.to});return}if(_.selected===!0){yt(g);return}const H=Xe(g);$.value={init:g,initHash:H,final:g,finalHash:H},l("rangeStart",Fe(g))}else{const _=$.value.initHash,H=Xe(g),N=_<=H?{from:$.value.init,to:g}:{from:g,to:$.value.init};$.value=null,$t(_===H?g:{target:g,...N}),l("rangeEnd",{from:Fe(N.from),to:Fe(N.to)})}}function Cn(d){if($.value!==null){const g={...x.value,day:d};Object.assign($.value,{final:g,finalHash:Xe(g)})}}return Object.assign(a,{setToday:at,setView:wn,offsetCalendar:Ut,setCalendarTo:rt,setEditingRange:Sn}),()=>{const d=[t.h("div",{class:"q-date__content col relative-position"},[t.h(t.Transition,{name:"q-transition--fade"},kn[q.value])])],g=ke(n.default);return g!==void 0&&d.push(t.h("div",{class:"q-date__actions"},g)),e.name!==void 0&&e.disable!==!0&&m(d,"push"),t.h("div",{class:C.value,...Ce.value},[ct(),t.h("div",{ref:b,class:"q-date__main col column",tabindex:-1},d)])}}}),Sa=ae({name:"QPopupProxy",props:{...Uo,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(e,{slots:n,emit:l,attrs:a}){const{proxy:o}=t.getCurrentInstance(),{$q:r}=o,i=t.ref(!1),u=t.ref(null),c=t.computed(()=>parseInt(e.breakpoint,10)),{canShow:f}=Qo({showing:i});function s(){return r.screen.width<c.value||r.screen.height<c.value?"dialog":"menu"}const h=t.ref(s()),y=t.computed(()=>h.value==="menu"?{maxHeight:"99vh"}:{});t.watch(()=>s(),V=>{i.value!==!0&&(h.value=V)});function m(V){i.value=!0,l("show",V)}function b(V){i.value=!1,h.value=s(),l("hide",V)}return Object.assign(o,{show(V){f(V)===!0&&u.value.show(V)},hide(V){u.value.hide(V)},toggle(V){u.value.toggle(V)}}),Dt(o,"currentComponent",()=>({type:h.value,ref:u.value})),()=>{const V={ref:u,...y.value,...a,onShow:m,onHide:b};let p;return h.value==="dialog"?p=sa:(p=bn,Object.assign(V,{target:e.target,contextMenu:e.contextMenu,noParentEvent:!0,separateClosePopup:!0})),t.h(p,V,n.default)}}}),bo={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},vn={"#":{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:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},ka=Object.keys(vn);ka.forEach(e=>{vn[e].regex=new RegExp(vn[e].pattern)});const hu=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+ka.join("")+"])|(.)","g"),po=/[.*+?^${}()|[\]\\]/g,he="",gu={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function bu(e,n,l,a){let o,r,i,u,c,f;const s=t.ref(null),h=t.ref(m());function y(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}t.watch(()=>e.type+e.autogrow,V),t.watch(()=>e.mask,E=>{if(E!==void 0)p(h.value,!0);else{const D=A(h.value);V(),e.modelValue!==D&&n("update:modelValue",D)}}),t.watch(()=>e.fillMask+e.reverseFillMask,()=>{s.value===!0&&p(h.value,!0)}),t.watch(()=>e.unmaskedValue,()=>{s.value===!0&&p(h.value)});function m(){if(V(),s.value===!0){const E=q(A(e.modelValue));return e.fillMask!==!1?K(E):E}return e.modelValue}function b(E){if(E<o.length)return o.slice(-E);let D="",$=o;const C=$.indexOf(he);if(C!==-1){for(let j=E-$.length;j>0;j--)D+=he;$=$.slice(0,C)+D+$.slice(C)}return $}function V(){if(s.value=e.mask!==void 0&&e.mask.length!==0&&y(),s.value===!1){u=void 0,o="",r="";return}const E=bo[e.mask]===void 0?e.mask:bo[e.mask],D=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",$=D.replace(po,"\\$&"),C=[],j=[],w=[];let z=e.reverseFillMask===!0,O="",W="";E.replace(hu,(k,S,U,I,J)=>{if(I!==void 0){const Z=vn[I];w.push(Z),W=Z.negate,z===!0&&(j.push("(?:"+W+"+)?("+Z.pattern+"+)?(?:"+W+"+)?("+Z.pattern+"+)?"),z=!1),j.push("(?:"+W+"+)?("+Z.pattern+")?")}else if(U!==void 0)O="\\"+(U==="\\"?"":U),w.push(U),C.push("([^"+O+"]+)?"+O+"?");else{const Z=S!==void 0?S:J;O=Z==="\\"?"\\\\\\\\":Z.replace(po,"\\\\$&"),w.push(Z),C.push("([^"+O+"]+)?"+O+"?")}});const L=new RegExp("^"+C.join("")+"("+(O===""?".":"[^"+O+"]")+"+)?"+(O===""?"":"["+O+"]*")+"$"),X=j.length-1,ee=j.map((k,S)=>S===0&&e.reverseFillMask===!0?new RegExp("^"+$+"*"+k):S===X?new RegExp("^"+k+"("+(W===""?".":W)+"+)?"+(e.reverseFillMask===!0?"$":$+"*")):new RegExp("^"+k));i=w,u=k=>{const S=L.exec(e.reverseFillMask===!0?k:k.slice(0,w.length+1));S!==null&&(k=S.slice(1).join(""));const U=[],I=ee.length;for(let J=0,Z=k;J<I;J++){const G=ee[J].exec(Z);if(G===null)break;Z=Z.slice(G.shift().length),U.push(...G)}return U.length!==0?U.join(""):k},o=w.map(k=>typeof k=="string"?k:he).join(""),r=o.split(he).join(D)}function p(E,D,$){const C=a.value,j=C.selectionEnd,w=C.value.length-j,z=A(E);D===!0&&V();const O=q(z),W=e.fillMask!==!1?K(O):O,L=h.value!==W;C.value!==W&&(C.value=W),L===!0&&(h.value=W),document.activeElement===C&&t.nextTick(()=>{if(W===r){const ee=e.reverseFillMask===!0?r.length:0;C.setSelectionRange(ee,ee,"forward");return}if($==="insertFromPaste"&&e.reverseFillMask!==!0){const ee=C.selectionEnd;let k=j-1;for(let S=c;S<=k&&S<ee;S++)o[S]!==he&&k++;M.right(C,k);return}if(["deleteContentBackward","deleteContentForward"].indexOf($)!==-1){const ee=e.reverseFillMask===!0?j===0?W.length>O.length?1:0:Math.max(0,W.length-(W===r?0:Math.min(O.length,w)+1))+1:j;C.setSelectionRange(ee,ee,"forward");return}if(e.reverseFillMask===!0)if(L===!0){const ee=Math.max(0,W.length-(W===r?0:Math.min(O.length,w+1)));ee===1&&j===1?C.setSelectionRange(ee,ee,"forward"):M.rightReverse(C,ee)}else{const ee=W.length-w;C.setSelectionRange(ee,ee,"backward")}else if(L===!0){const ee=Math.max(0,o.indexOf(he),Math.min(O.length,j)-1);M.right(C,ee)}else{const ee=j-1;M.right(C,ee)}});const X=e.unmaskedValue===!0?A(W):W;String(e.modelValue)!==X&&(e.modelValue!==null||X!=="")&&l(X,!0)}function F(E,D,$){const C=q(A(E.value));D=Math.max(0,o.indexOf(he),Math.min(C.length,D)),c=D,E.setSelectionRange(D,$,"forward")}const M={left(E,D){const $=o.slice(D-1).indexOf(he)===-1;let C=Math.max(0,D-1);for(;C>=0;C--)if(o[C]===he){D=C,$===!0&&D++;break}if(C<0&&o[D]!==void 0&&o[D]!==he)return M.right(E,0);D>=0&&E.setSelectionRange(D,D,"backward")},right(E,D){const $=E.value.length;let C=Math.min($,D+1);for(;C<=$;C++)if(o[C]===he){D=C;break}else o[C-1]===he&&(D=C);if(C>$&&o[D-1]!==void 0&&o[D-1]!==he)return M.left(E,$);E.setSelectionRange(D,D,"forward")},leftReverse(E,D){const $=b(E.value.length);let C=Math.max(0,D-1);for(;C>=0;C--)if($[C-1]===he){D=C;break}else if($[C]===he&&(D=C,C===0))break;if(C<0&&$[D]!==void 0&&$[D]!==he)return M.rightReverse(E,0);D>=0&&E.setSelectionRange(D,D,"backward")},rightReverse(E,D){const $=E.value.length,C=b($),j=C.slice(0,D+1).indexOf(he)===-1;let w=Math.min($,D+1);for(;w<=$;w++)if(C[w-1]===he){D=w,D>0&&j===!0&&D--;break}if(w>$&&C[D-1]!==void 0&&C[D-1]!==he)return M.leftReverse(E,$);E.setSelectionRange(D,D,"forward")}};function T(E){n("click",E),f=void 0}function x(E){if(n("keydown",E),ul(E)===!0||E.altKey===!0)return;const D=a.value,$=D.selectionStart,C=D.selectionEnd;if(E.shiftKey||(f=void 0),E.keyCode===37||E.keyCode===39){E.shiftKey&&f===void 0&&(f=D.selectionDirection==="forward"?$:C);const j=M[(E.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(E.preventDefault(),j(D,f===$?C:$),E.shiftKey){const w=D.selectionStart;D.setSelectionRange(Math.min(f,w),Math.max(f,w),"forward")}}else E.keyCode===8&&e.reverseFillMask!==!0&&$===C?(M.left(D,$),D.setSelectionRange(D.selectionStart,C,"backward")):E.keyCode===46&&e.reverseFillMask===!0&&$===C&&(M.rightReverse(D,C),D.setSelectionRange($,D.selectionEnd,"forward"))}function q(E){if(E==null||E==="")return"";if(e.reverseFillMask===!0)return B(E);const D=i;let $=0,C="";for(let j=0;j<D.length;j++){const w=E[$],z=D[j];if(typeof z=="string")C+=z,w===z&&$++;else if(w!==void 0&&z.regex.test(w))C+=z.transform!==void 0?z.transform(w):w,$++;else return C}return C}function B(E){const D=i,$=o.indexOf(he);let C=E.length-1,j="";for(let w=D.length-1;w>=0&&C!==-1;w--){const z=D[w];let O=E[C];if(typeof z=="string")j=z+j,O===z&&C--;else if(O!==void 0&&z.regex.test(O))do j=(z.transform!==void 0?z.transform(O):O)+j,C--,O=E[C];while($===w&&O!==void 0&&z.regex.test(O));else return j}return j}function A(E){return typeof E!="string"||u===void 0?typeof E=="number"?u(""+E):E:u(E)}function K(E){return r.length-E.length<=0?E:e.reverseFillMask===!0&&E.length!==0?r.slice(0,-E.length)+E:E+r.slice(E.length)}return{innerValue:h,hasMask:s,moveCursorForPaste:F,updateMaskValue:p,onMaskedKeydown:x,onMaskedClick:T}}function pu(e,n){function l(){const a=e.modelValue;try{const o="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(a)===a&&("length"in a?Array.from(a):[a]).forEach(r=>{o.items.add(r)}),{files:o.files}}catch{return{files:void 0}}}return t.computed(()=>{if(e.type==="file")return l()})}const ol=ae({name:"QInput",inheritAttrs:!1,props:{...yn,...gu,...hn,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:[...vl,"paste","change","keydown","click","animationend"],setup(e,{emit:n,attrs:l}){const{proxy:a}=t.getCurrentInstance(),{$q:o}=a,r={};let i=NaN,u,c,f=null,s;const h=t.ref(null),y=Lo(e),{innerValue:m,hasMask:b,moveCursorForPaste:V,updateMaskValue:p,onMaskedKeydown:F,onMaskedClick:M}=bu(e,n,O,h),T=pu(e),x=t.computed(()=>It(m.value)),q=da(w),B=ml({changeEvent:!0}),A=t.computed(()=>e.type==="textarea"||e.autogrow===!0),K=t.computed(()=>A.value===!0||["text","search","url","tel","password"].includes(e.type)),E=t.computed(()=>{const S={...B.splitAttrs.listeners.value,onInput:w,onPaste:j,onChange:L,onBlur:X,onFocus:De};return S.onCompositionstart=S.onCompositionupdate=S.onCompositionend=q,b.value===!0&&(S.onKeydown=F,S.onClick=M),e.autogrow===!0&&(S.onAnimationend=z),S}),D=t.computed(()=>{const S={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:y.value,...B.splitAttrs.attributes.value,id:B.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return A.value===!1&&(S.type=e.type),e.autogrow===!0&&(S.rows=1),S});t.watch(()=>e.type,()=>{h.value&&(h.value.value=e.modelValue)}),t.watch(()=>e.modelValue,S=>{if(b.value===!0){if(c===!0&&(c=!1,String(S)===i))return;p(S)}else m.value!==S&&(m.value=S,e.type==="number"&&r.hasOwnProperty("value")===!0&&(u===!0?u=!1:delete r.value));e.autogrow===!0&&t.nextTick(W)}),t.watch(()=>e.autogrow,S=>{S===!0?t.nextTick(W):h.value!==null&&l.rows>0&&(h.value.style.height="auto")}),t.watch(()=>e.dense,()=>{e.autogrow===!0&&t.nextTick(W)});function $(){gn(()=>{const S=document.activeElement;h.value!==null&&h.value!==S&&(S===null||S.id!==B.targetUid.value)&&h.value.focus({preventScroll:!0})})}function C(){var S;(S=h.value)==null||S.select()}function j(S){if(b.value===!0&&e.reverseFillMask!==!0){const U=S.target;V(U,U.selectionStart,U.selectionEnd)}n("paste",S)}function w(S){if(!S||!S.target)return;if(e.type==="file"){n("update:modelValue",S.target.files);return}const U=S.target.value;if(S.target.qComposing===!0){r.value=U;return}if(b.value===!0)p(U,!1,S.inputType);else if(O(U),K.value===!0&&S.target===document.activeElement){const{selectionStart:I,selectionEnd:J}=S.target;I!==void 0&&J!==void 0&&t.nextTick(()=>{S.target===document.activeElement&&U.indexOf(S.target.value)===0&&S.target.setSelectionRange(I,J)})}e.autogrow===!0&&W()}function z(S){n("animationend",S),W()}function O(S,U){s=()=>{f=null,e.type!=="number"&&r.hasOwnProperty("value")===!0&&delete r.value,e.modelValue!==S&&i!==S&&(i=S,U===!0&&(c=!0),n("update:modelValue",S),t.nextTick(()=>{i===S&&(i=NaN)})),s=void 0},e.type==="number"&&(u=!0,r.value=S),e.debounce!==void 0?(f!==null&&clearTimeout(f),r.value=S,f=setTimeout(s,e.debounce)):s()}function W(){requestAnimationFrame(()=>{const S=h.value;if(S!==null){const U=S.parentNode.style,{scrollTop:I}=S,{overflowY:J,maxHeight:Z}=o.platform.is.firefox===!0?{}:window.getComputedStyle(S),G=J!==void 0&&J!=="scroll";G===!0&&(S.style.overflowY="hidden"),U.marginBottom=S.scrollHeight-1+"px",S.style.height="1px",S.style.height=S.scrollHeight+"px",G===!0&&(S.style.overflowY=parseInt(Z,10)<S.scrollHeight?"auto":"hidden"),U.marginBottom="",S.scrollTop=I}})}function L(S){q(S),f!==null&&(clearTimeout(f),f=null),s==null||s(),n("change",S.target.value)}function X(S){S!==void 0&&De(S),f!==null&&(clearTimeout(f),f=null),s==null||s(),u=!1,c=!1,delete r.value,e.type!=="file"&&setTimeout(()=>{h.value!==null&&(h.value.value=m.value!==void 0?m.value:"")})}function ee(){return r.hasOwnProperty("value")===!0?r.value:m.value!==void 0?m.value:""}t.onBeforeUnmount(()=>{X()}),t.onMounted(()=>{e.autogrow===!0&&W()}),Object.assign(B,{innerValue:m,fieldClass:t.computed(()=>`q-${A.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:t.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:h,emitValue:O,hasValue:x,floatingLabel:t.computed(()=>x.value===!0&&(e.type!=="number"||isNaN(m.value)===!1)||It(e.displayValue)),getControl:()=>t.h(A.value===!0?"textarea":"input",{ref:h,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...D.value,...E.value,...e.type!=="file"?{value:ee()}:T.value}),getShadowControl:()=>t.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(A.value===!0?"":" text-no-wrap")},[t.h("span",{class:"invisible"},ee()),t.h("span",e.shadowText)])});const k=hl(B);return Object.assign(a,{focus:$,select:C,getNativeElement:()=>h.value}),Dt(a,"nativeEl",()=>h.value),k}});function yo(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;const n=parseInt(e,10);return isNaN(n)?0:n}const xa=rl({name:"close-popup",beforeMount(e,{value:n}){const l={depth:yo(n),handler(a){l.depth!==0&&setTimeout(()=>{const o=Rr(e);o!==void 0&&Fr(o,a,l.depth)})},handlerKey(a){tt(a,13)===!0&&l.handler(a)}};e.__qclosepopup=l,e.addEventListener("click",l.handler),e.addEventListener("keyup",l.handlerKey)},updated(e,{value:n,oldValue:l}){n!==l&&(e.__qclosepopup.depth=yo(n))},beforeUnmount(e){const n=e.__qclosepopup;e.removeEventListener("click",n.handler),e.removeEventListener("keyup",n.handlerKey),delete e.__qclosepopup}});function yu(e){var n,l;return{entity:e.entity,dataCy:e.dataCy,defaultLabel:e.defaultLabel,routeName:e.routeName,shouldRender:e.customShouldRender||(({store:a})=>e.storeField?!!a[e.storeField]:!0),getLabel:e.getLabel||(e.labelField?({store:a})=>{var o;return e.storeField&&((o=a[e.storeField])==null?void 0:o[e.labelField])||e.defaultLabel}:void 0),getColor:e.customGetColor||(({store:a})=>e.storeField&&a[e.storeField]?"primary":"dark"),getRouteParams:e.routeParamKey&&e.routeParamField?({store:a})=>{var o;return{[e.routeParamKey]:e.storeField&&((o=a[e.storeField])==null?void 0:o[e.routeParamField])}}:void 0,clearActions:[...((n=e.clearMethods)==null?void 0:n.map(a=>({store:o})=>{var r;return(r=o[a])==null?void 0:r.call(o)}))||[],...((l=e.navActions)==null?void 0:l.map(a=>({navStore:o})=>a(o)))||[]]}}const Ca=/^\d{2}-\d{2}-\d{4}$/;function al(e){const n=e.getTimezoneOffset()*6e4;return new Date(e.getTime()+n)}function wu(e){const n=/^\d{4}-\d{2}-\d{2}$/,l=/^\d{2}-\d{2}-\d{4}$/;if(n.test(e))return e;if(l.test(e)){const a=e.split("-");return`${a[2]}-${a[1]}-${a[0]}`}return console.warn("'Invalid date format. Expected DD-MM-YYYY' or 'YYYY-MM-DD' but got: "+e),""}function bl(e,n,l,a=[]){const o=new Date(e);if(n){const r=al(new Date(n));if(o<r)return!1}if(l){const r=al(new Date(l));if(o>r)return!1}return!a.some(r=>{if(typeof r=="string"||r instanceof Date){const i=new Date(r);return o.getFullYear()===i.getFullYear()&&o.getMonth()===i.getMonth()&&o.getDate()===i.getDate()}else{const i=new Date(r.start_date);i.setDate(i.getDate()-1);const u=new Date(r.end_date);return o>=i&&o<=u}})}const ft={validateAndUpdate(e,n,l){if(!Ca.test(n))return e;const a=new Date(n),o=new Date(l?e.to:e.from);return l?a>o?{from:n,to:n}:{...e,from:n}:a<o?{from:n,to:n}:{...e,to:n}},handlePickerUpdate(e){return e===null?{from:"",to:""}:typeof e=="string"?{from:e,to:e}:e},reset(){return{from:"",to:""}},handleInput(e,n){typeof e=="string"&&n(e)}},_a={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"},Su={class:"columns justify-end"},ku={class:"row items-center justify-end"},xu=t.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:"Field is required"},disabled:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},placeholder:{default:void 0},closeLabel:{default:"Close"}},emits:["update:date"],setup(e,{emit:n}){const l=e,a=n,o=t.useAttrs(),r=t.ref(l.date),i=t.ref(l.date),u=t.computed(()=>s=>bl(s,l.minDate,l.maxDate,l.datesDisabled)),c=s=>{r.value=s,i.value=s,a("update:date",s)},f=s=>{typeof s=="string"&&(r.value=s,i.value=s,a("update:date",s))};return t.watch(()=>l.date,s=>{s!==r.value&&(r.value=s,i.value=s)}),(s,h)=>(t.openBlock(),t.createElementBlock("div",Su,[t.createVNode(ol,t.mergeProps(t.unref(o),{class:"full-width","model-value":i.value,mask:"##-##-####",dense:"",label:s.label,"data-cy":"datePick","onUpdate:modelValue":f,rules:s.required?[y=>!!y||s.requiredErrorMessage]:[],disable:s.disabled,outlined:s.outlined,placeholder:s.placeholder}),{append:t.withCtx(()=>[t.createVNode(qe,{name:"event",class:"cursor-pointer"},{default:t.withCtx(()=>[t.createVNode(Sa,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:t.withCtx(()=>[t.createVNode(wa,{mask:"DD-MM-YYYY","model-value":r.value,options:u.value,disable:s.disabled,"onUpdate:modelValue":c},{default:t.withCtx(()=>[t.createElementVNode("div",ku,[t.withDirectives(t.createVNode(Me,{label:s.closeLabel,color:"primary",flat:""},null,8,["label"]),[[xa]])])]),_:1},8,["model-value","options","disable"])]),_:1})]),_:1})]),_:1},16,["model-value","label","rules","disable","outlined","placeholder"])]))}}),Cu=Yt(xu,[["__scopeId","data-v-618766fa"]]),_u={class:"row"},qu={class:"row no-wrap items-center"},Mu={class:"row items-center justify-end"},Vu={key:0,class:"row items-center text-warning text-caption"},Eu={class:"row items-center justify-end q-ml-sm"},Du=t.defineComponent({__name:"DateRange",props:{from:{default:""},to:{default:""},labelStart:{default:"De"},labelEnd:{default:"à"},startDateHint:{default:""},resetLabel:{default:"Reset"},closeLabel:{default:"Close"},locale:{default:()=>_a},required:{type:Boolean,default:!1},requiredErrorMessage:{default:"Field is required"},rules:{default:()=>[]},minDate:{default:void 0},maxDate:{default:void 0},datesDisabled:{default:()=>[]},highlightEvents:{default:()=>[]},disabled:{type:Boolean,default:!1},idCy:{default:"dateRange"}},emits:["update:dateRange"],setup(e,{expose:n,emit:l}){const a=e,o=l,r=t.ref({from:a.from,to:a.to}),i=t.computed(()=>`from-date-${a.idCy}`),u=t.computed(()=>`to-date-${a.idCy}`),c=t.computed(()=>[...a.required?[b=>!!b||a.requiredErrorMessage]:[],...a.rules]),f=t.computed(()=>b=>bl(b,a.minDate,a.maxDate,a.datesDisabled)),s=b=>{ft.handleInput(b,V=>{r.value=ft.validateAndUpdate(r.value,V,!0)})},h=b=>{ft.handleInput(b,V=>{r.value=ft.validateAndUpdate(r.value,V,!1)})},y=b=>{r.value=ft.handlePickerUpdate(b)},m=()=>{r.value=ft.reset()};return t.watch(r,b=>{o("update:dateRange",{...b})},{deep:!0}),t.watch(()=>a.from,b=>{b!==r.value.from&&(r.value.from=b)}),t.watch(()=>a.to,b=>{b!==r.value.to&&(r.value.to=b)}),n({resetDate:m}),(b,V)=>(t.openBlock(),t.createElementBlock("div",_u,[t.createElementVNode("div",qu,[t.createVNode(ol,{"data-cy":i.value,"model-value":r.value.from,mask:"##-##-####",label:b.labelStart,"onUpdate:modelValue":s,rules:c.value,disable:b.disabled,"hide-bottom-space":""},null,8,["data-cy","model-value","label","rules","disable"]),t.createVNode(ol,{"model-value":r.value.to,mask:"##-##-####",label:b.labelEnd,"hide-bottom-space":"",style:{"margin-left":"10px"},"onUpdate:modelValue":h,"data-cy":u.value,rules:c.value,disable:b.disabled},null,8,["model-value","label","data-cy","rules","disable"]),t.createVNode(qe,{name:"event",class:"cursor-pointer icon-same-size"},{default:t.withCtx(()=>[t.createVNode(Sa,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:t.withCtx(()=>[t.createVNode(wa,{mask:"DD-MM-YYYY","today-btn":"",range:"",locale:b.locale,modelValue:r.value,"onUpdate:modelValue":[V[0]||(V[0]=p=>r.value=p),y],options:f.value,events:b.highlightEvents,"event-color":"warning",disable:b.disabled},{default:t.withCtx(()=>[t.createElementVNode("div",Mu,[t.withDirectives(t.createVNode(Me,{label:b.closeLabel,color:"primary",flat:""},null,8,["label"]),[[xa]])])]),_:1},8,["locale","modelValue","options","events","disable"])]),_:1})]),_:1})]),b.startDateHint?(t.openBlock(),t.createElementBlock("p",Vu,t.toDisplayString(b.startDateHint),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Eu,[t.createVNode(Me,{class:"q-pa-sm",outlined:"",dense:"","data-cy":"reset-date",onClick:m,label:b.resetLabel},null,8,["label"])])]))}}),zu=Yt(Du,[["__scopeId","data-v-e97e0b6e"]]);exports.Breadcrumbs=ja;exports.CheckboxFilter=Di;exports.DATE_FORMAT_REGEX=Ca;exports.DatePicker=Cu;exports.DateRange=zu;exports.Layout=Ji;exports.NavButton=ir;exports.SelectSearch=zi;exports.SelfeeFooter=Ni;exports.SelfeeHeader=Li;exports.UserAvatar=Ki;exports.createBreadcrumb=yu;exports.dateRangeUtils=ft;exports.dateWithoutTimezone=al;exports.defaultLocale=_a;exports.formatDate=wu;exports.isDateSelectable=bl;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),Yn={xs:18,sm:24,md:32,lg:38,xl:46},Nt={size:String};function jt(e,n=Yn){return t.computed(()=>e.size!==void 0?{fontSize:e.size in n?`${n[e.size]}px`:e.size}:null)}function Dt(e,n,l,a){return Object.defineProperty(e,n,{get:l,set:a,enumerable:!0}),e}function ae(e){return t.markRaw(t.defineComponent(e))}function rl(e){return t.markRaw(e)}const Ma=(e,n)=>{const l=t.reactive(e);for(const a in e)Dt(n,a,()=>l[a],o=>{l[a]=o});return n};function ke(e,n){return e!==void 0&&e()||n}function wo(e,n){if(e!==void 0){const l=e();if(l!=null)return l.slice()}return n}function Ae(e,n){return e!==void 0?n.concat(e()):n}function So(e,n){return e===void 0?n:n!==void 0?n.concat(e()):e()}function Va(e,n,l,a,o,r){n.key=a+o;const i=t.h(e,n,l);return o===!0?t.withDirectives(i,r()):i}const kl="0 0 24 24",qn=e=>e,Mn=e=>`ionicons ${e}`,ko={"mdi-":e=>`mdi ${e}`,"icon-":qn,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Mn,"ion-ios":Mn,"ion-logo":Mn,"iconfont ":qn,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":qn},xo={o_:"-outlined",r_:"-round",s_:"-sharp"},Co={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Ea=new RegExp("^("+Object.keys(ko).join("|")+")"),Da=new RegExp("^("+Object.keys(xo).join("|")+")"),xl=new RegExp("^("+Object.keys(Co).join("|")+")"),za=/^[Mm]\s?[-+]?\.?\d/,Ta=/^img:/,Ba=/^svguse:/,$a=/^ion-/,Oa=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,qe=ae({name:"QIcon",props:{...Nt,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:n}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=jt(e),o=t.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=t.computed(()=>{let i,u=e.name;if(u==="none"||!u)return{none:!0};if(l.iconMapFn!==null){const s=l.iconMapFn(u);if(s!==void 0)if(s.icon!==void 0){if(u=s.icon,u==="none"||!u)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(za.test(u)===!0){const[s,h=kl]=u.split("|");return{svg:!0,viewBox:h,nodes:s.split("&&").map(y=>{const[m,b,V]=y.split("@@");return t.h("path",{style:b,d:m,transform:V})})}}if(Ta.test(u)===!0)return{img:!0,src:u.substring(4)};if(Ba.test(u)===!0){const[s,h=kl]=u.split("|");return{svguse:!0,src:s.substring(7),viewBox:h}}let c=" ";const f=u.match(Ea);if(f!==null)i=ko[f[1]](u);else if(Oa.test(u)===!0)i=u;else if($a.test(u)===!0)i=`ionicons ion-${l.platform.is.ios===!0?"ios":"md"}${u.substring(3)}`;else if(xl.test(u)===!0){i="notranslate material-symbols";const s=u.match(xl);s!==null&&(u=u.substring(6),i+=Co[s[1]]),c=u}else{i="notranslate material-icons";const s=u.match(Da);s!==null&&(u=u.substring(2),i+=xo[s[1]]),c=u}return{cls:i,content:c}});return()=>{const i={class:o.value,style:a.value,"aria-hidden":"true"};return r.value.none===!0?t.h(e.tag,i,ke(n.default)):r.value.img===!0?t.h(e.tag,i,Ae(n.default,[t.h("img",{src:r.value.src})])):r.value.svg===!0?t.h(e.tag,i,Ae(n.default,[t.h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?t.h(e.tag,i,Ae(n.default,[t.h("svg",{viewBox:r.value.viewBox},[t.h("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(i.class+=" "+r.value.cls),t.h(e.tag,i,Ae(n.default,[r.value.content])))}}});function on(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:n}=e.$;for(;Object(n)===n;){if(Object(n.proxy)===n.proxy)return n.proxy;n=n.parent}}function _o(e,n){typeof n.type=="symbol"?Array.isArray(n.children)===!0&&n.children.forEach(l=>{_o(e,l)}):e.add(n)}function Aa(e){const n=new Set;return e.forEach(l=>{_o(n,l)}),Array.from(n)}function qo(e){return e.appContext.config.globalProperties.$router!==void 0}function Mo(e){return e.isUnmounted===!0||e.isDeactivated===!0}function Cl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function _l(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function La(e,n){for(const l in n){const a=n[l],o=e[l];if(typeof a=="string"){if(a!==o)return!1}else if(Array.isArray(o)===!1||o.length!==a.length||a.some((r,i)=>r!==o[i]))return!1}return!0}function ql(e,n){return Array.isArray(n)===!0?e.length===n.length&&e.every((l,a)=>l===n[a]):e.length===1&&e[0]===n}function Ra(e,n){return Array.isArray(e)===!0?ql(e,n):Array.isArray(n)===!0?ql(n,e):e===n}function Fa(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const l in e)if(Ra(e[l],n[l])===!1)return!1;return!0}const Vo={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Eo={...Vo,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function il({fallbackTag:e,useDisableForRouterLinkProps:n=!0}={}){const l=t.getCurrentInstance(),{props:a,proxy:o,emit:r}=l,i=qo(l),u=t.computed(()=>a.disable!==!0&&a.href!==void 0),c=n===!0?t.computed(()=>i===!0&&a.disable!==!0&&u.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):t.computed(()=>i===!0&&u.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),f=t.computed(()=>c.value===!0?M(a.to):null),s=t.computed(()=>f.value!==null),h=t.computed(()=>u.value===!0||s.value===!0),y=t.computed(()=>a.type==="a"||h.value===!0?"a":a.tag||e||"div"),m=t.computed(()=>u.value===!0?{href:a.href,target:a.target}:s.value===!0?{href:f.value.href,target:a.target}:{}),b=t.computed(()=>{if(s.value===!1)return-1;const{matched:q}=f.value,{length:B}=q,A=q[B-1];if(A===void 0)return-1;const K=o.$route.matched;if(K.length===0)return-1;const E=K.findIndex(_l.bind(null,A));if(E!==-1)return E;const D=Cl(q[B-2]);return B>1&&Cl(A)===D&&K[K.length-1].path!==D?K.findIndex(_l.bind(null,q[B-2])):E}),V=t.computed(()=>s.value===!0&&b.value!==-1&&La(o.$route.params,f.value.params)),p=t.computed(()=>V.value===!0&&b.value===o.$route.matched.length-1&&Fa(o.$route.params,f.value.params)),F=t.computed(()=>s.value===!0?p.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":V.value===!0?` ${a.activeClass}`:"":"");function M(q){try{return o.$router.resolve(q)}catch{}return null}function T(q,{returnRouterError:B,to:A=a.to,replace:K=a.replace}={}){if(a.disable===!0)return q.preventDefault(),Promise.resolve(!1);if(q.metaKey||q.altKey||q.ctrlKey||q.shiftKey||q.button!==void 0&&q.button!==0||a.target==="_blank")return Promise.resolve(!1);q.preventDefault();const E=o.$router[K===!0?"replace":"push"](A);return B===!0?E:E.then(()=>{}).catch(()=>{})}function x(q){if(s.value===!0){const B=A=>T(q,A);r("click",q,B),q.defaultPrevented!==!0&&B()}else r("click",q)}return{hasRouterLink:s,hasHrefLink:u,hasLink:h,linkTag:y,resolvedLink:f,linkIsActive:V,linkIsExactActive:p,linkClass:F,linkAttrs:m,getLink:M,navigateToRouterLink:T,navigateOnClick:x}}const Ha=ae({name:"QBreadcrumbsEl",props:{...Eo,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:n}){const{linkTag:l,linkAttrs:a,linkClass:o,navigateOnClick:r}=il(),i=t.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(e.disable!==!0?"q-link--focusable"+o.value:"q-breadcrumbs__el--disable"),...a.value,onClick:r})),u=t.computed(()=>"q-breadcrumbs__el-icon"+(e.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const c=[];return e.icon!==void 0&&c.push(t.h(qe,{class:u.value,name:e.icon})),e.label!==void 0&&c.push(e.label),t.h(l.value,{...i.value},Ae(n.default,c))}}}),Do={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Pa=Object.keys(Do),zo={align:{type:String,validator:e=>Pa.includes(e)}};function To(e){return t.computed(()=>{const n=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Do[n]}`})}const Ia=["",!0],Na=ae({name:"QBreadcrumbs",props:{...zo,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:n}){const l=To(e),a=t.computed(()=>`flex items-center ${l.value}${e.gutter==="none"?"":` q-gutter-${e.gutter}`}`),o=t.computed(()=>e.separatorColor?` text-${e.separatorColor}`:""),r=t.computed(()=>` text-${e.activeColor}`);return()=>{if(n.default===void 0)return;const i=Aa(ke(n.default));if(i.length===0)return;let u=1;const c=[],f=i.filter(h=>{var y;return((y=h.type)==null?void 0:y.name)==="QBreadcrumbsEl"}).length,s=n.separator!==void 0?n.separator:()=>e.separator;return i.forEach(h=>{var y;if(((y=h.type)==null?void 0:y.name)==="QBreadcrumbsEl"){const m=u<f,b=h.props!==null&&Ia.includes(h.props.disable),V=(m===!0?"":" q-breadcrumbs--last")+(b!==!0&&m===!0?r.value:"");u++,c.push(t.h("div",{class:`flex items-center${V}`},[h])),m===!0&&c.push(t.h("div",{class:"q-breadcrumbs__separator"+o.value},s()))}else c.push(h)}),t.h("div",{class:"q-breadcrumbs"},[t.h("div",{class:a.value},c)])}}}),ja=t.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(e){const n=e,l=t.useAttrs(),a=t.computed(()=>{const{activeColor:y,separatorIcon:m,separatorSize:b,separatorColor:V,...p}=l;return p}),o=y=>({"data-cy":y.dataCy,class:"cursor-pointer text-h5",color:y.color}),r=t.computed(()=>n.activeColor||"primary"),i=t.computed(()=>n.separatorIcon||"chevron_right"),u=t.computed(()=>n.separatorSize||"2em"),c=t.computed(()=>n.separatorColor||"primary"),f=t.computed(()=>({store:n.store,route:n.route,navStore:n.navStore||{}})),s=t.computed(()=>{const y=[];return n.breadcrumbConfig.forEach(m=>{if(!m.shouldRender(f.value))return;const b=m.getLabel?m.getLabel(f.value):m.defaultLabel,V=m.getColor?m.getColor(f.value):"dark",p={name:m.routeName,...m.getRouteParams&&{params:m.getRouteParams(f.value)}},F=m.clearActions?m.clearActions.map(M=>()=>M(f.value)):[];y.push({label:b,dataCy:m.dataCy,color:V,route:p,clearActions:F})}),y}),h=y=>{y.clearActions&&y.clearActions.forEach(m=>m()),n.router.push(y.route)};return(y,m)=>(t.openBlock(),t.createBlock(Na,t.mergeProps({"active-color":r.value,class:"text-brown"},a.value),{separator:t.withCtx(()=>[t.createVNode(qe,{size:u.value,name:i.value,color:c.value},null,8,["size","name","color"])]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(b,V)=>(t.openBlock(),t.createBlock(Ha,t.mergeProps({key:V},{ref_for:!0},o(b),{label:b.label,onClick:p=>h(b)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),Ya={size:{type:[String,Number],default:"1em"},color:String};function Ua(e){return{cSize:t.computed(()=>e.size in Yn?`${Yn[e.size]}px`:e.size),classes:t.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Bo=ae({name:"QSpinner",props:{...Ya,thickness:{type:Number,default:5}},setup(e){const{cSize:n,classes:l}=Ua(e);return()=>t.h("svg",{class:l.value+" q-spinner-mat",width:n.value,height:n.value,viewBox:"25 25 50 50"},[t.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Un(e,n){const l=e.style;for(const a in n)l[a]=n[a]}function Qa(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const n=t.unref(e);if(n)return n.$el||n}function $o(e,n){if(e==null||e.contains(n)===!0)return!0;for(let l=e.nextElementSibling;l!==null;l=l.nextElementSibling)if(l.contains(n))return!0;return!1}const pe={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(pe,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function vn(){}function Wa(e){return e.button===0}function Ht(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function Ka(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const n=[];let l=e.target;for(;l;){if(n.push(l),l.tagName==="HTML")return n.push(document),n.push(window),n;l=l.parentElement}}function De(e){e.stopPropagation()}function _e(e){e.cancelable!==!1&&e.preventDefault()}function ge(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Vn(e,n){if(e===void 0||n===!0&&e.__dragPrevented===!0)return;const l=n===!0?a=>{a.__dragPrevented=!0,a.addEventListener("dragstart",_e,pe.notPassiveCapture)}:a=>{delete a.__dragPrevented,a.removeEventListener("dragstart",_e,pe.notPassiveCapture)};e.querySelectorAll("a, img").forEach(l)}function vt(e,n,l){const a=`__q_${n}_evt`;e[a]=e[a]!==void 0?e[a].concat(l):l,l.forEach(o=>{o[0].addEventListener(o[1],e[o[2]],pe[o[3]])})}function Ft(e,n){const l=`__q_${n}_evt`;e[l]!==void 0&&(e[l].forEach(a=>{a[0].removeEventListener(a[1],e[a[2]],pe[a[3]])}),e[l]=void 0)}function ul(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function tt(e,n){return ul(e)===!0?!1:[].concat(n).includes(e.keyCode)}function Xa(e,n=250){let l=!1,a;return function(){return l===!1&&(l=!0,setTimeout(()=>{l=!1},n),a=e.apply(this,arguments)),a}}function Ml(e,n,l,a){l.modifiers.stop===!0&&De(e);const o=l.modifiers.color;let r=l.modifiers.center;r=r===!0||a===!0;const i=document.createElement("span"),u=document.createElement("span"),c=Ht(e),{left:f,top:s,width:h,height:y}=n.getBoundingClientRect(),m=Math.sqrt(h*h+y*y),b=m/2,V=`${(h-m)/2}px`,p=r?V:`${c.left-f-b}px`,F=`${(y-m)/2}px`,M=r?F:`${c.top-s-b}px`;u.className="q-ripple__inner",Un(u,{height:`${m}px`,width:`${m}px`,transform:`translate3d(${p},${M},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${o?" text-"+o:""}`,i.setAttribute("dir","ltr"),i.appendChild(u),n.appendChild(i);const T=()=>{i.remove(),clearTimeout(x)};l.abort.push(T);let x=setTimeout(()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${V},${F},0) scale3d(1,1,1)`,u.style.opacity=.2,x=setTimeout(()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,x=setTimeout(()=>{i.remove(),l.abort.splice(l.abort.indexOf(T),1)},275)},250)},50)}function Vl(e,{modifiers:n,value:l,arg:a}){const o=Object.assign({},e.cfg.ripple,n,l);e.modifiers={early:o.early===!0,stop:o.stop===!0,center:o.center===!0,color:o.color||a,keyCodes:[].concat(o.keyCodes||13)}}const Oo=rl({name:"ripple",beforeMount(e,n){const l=n.instance.$.appContext.config.globalProperties.$q.config||{};if(l.ripple===!1)return;const a={cfg:l,enabled:n.value!==!1,modifiers:{},abort:[],start(o){a.enabled===!0&&o.qSkipRipple!==!0&&o.type===(a.modifiers.early===!0?"pointerdown":"click")&&Ml(o,e,a,o.qKeyEvent===!0)},keystart:Xa(o=>{a.enabled===!0&&o.qSkipRipple!==!0&&tt(o,a.modifiers.keyCodes)===!0&&o.type===`key${a.modifiers.early===!0?"down":"up"}`&&Ml(o,e,a,!0)},300)};Vl(a,n),e.__qripple=a,vt(a,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,n){if(n.oldValue!==n.value){const l=e.__qripple;l!==void 0&&(l.enabled=n.value!==!1,l.enabled===!0&&Object(n.value)===n.value&&Vl(l,n))}},beforeUnmount(e){const n=e.__qripple;n!==void 0&&(n.abort.forEach(l=>{l()}),Ft(n,"main"),delete e._qripple)}}),El={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Za={xs:8,sm:10,md:14,lg:20,xl:24},Ja=["button","submit","reset"],Ga=/[^\s]\/[^\s]/,er=["flat","outline","push","unelevated"];function tr(e,n){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":n}const nr={...Nt,...Vo,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...er.reduce((e,n)=>(e[n]=Boolean)&&e,{}),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:{...zo.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},lr={...nr,round:Boolean};function or(e){const n=jt(e,Za),l=To(e),{hasRouterLink:a,hasLink:o,linkTag:r,linkAttrs:i,navigateOnClick:u}=il({fallbackTag:"button"}),c=t.computed(()=>{const p=e.fab===!1&&e.fabMini===!1?n.value:{};return e.padding!==void 0?Object.assign({},p,{padding:e.padding.split(/\s+/).map(F=>F in El?El[F]+"px":F).join(" "),minWidth:"0",minHeight:"0"}):p}),f=t.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=t.computed(()=>e.disable!==!0&&e.loading!==!0),h=t.computed(()=>s.value===!0?e.tabindex||0:-1),y=t.computed(()=>tr(e,"standard")),m=t.computed(()=>{const p={tabindex:h.value};return o.value===!0?Object.assign(p,i.value):Ja.includes(e.type)===!0&&(p.type=e.type),r.value==="a"?(e.disable===!0?p["aria-disabled"]="true":p.href===void 0&&(p.role="button"),a.value!==!0&&Ga.test(e.type)===!0&&(p.type=e.type)):e.disable===!0&&(p.disabled="",p["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(p,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),p}),b=t.computed(()=>{let p;e.color!==void 0?e.flat===!0||e.outline===!0?p=`text-${e.textColor||e.color}`:p=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(p=`text-${e.textColor}`);const F=e.round===!0?"round":`rectangle${f.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${y.value} q-btn--${F}`+(p!==void 0?" "+p:"")+(s.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),V=t.computed(()=>l.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:b,style:c,innerClasses:V,attributes:m,hasLink:o,linkTag:r,navigateOnClick:u,isActionable:s}}const{passiveCapture:Be}=pe;let St=null,kt=null,xt=null;const Me=ae({name:"QBtn",props:{...lr,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:n,emit:l}){const{proxy:a}=t.getCurrentInstance(),{classes:o,style:r,innerClasses:i,attributes:u,hasLink:c,linkTag:f,navigateOnClick:s,isActionable:h}=or(e),y=t.ref(null),m=t.ref(null);let b=null,V,p=null;const F=t.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),M=t.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:c.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),T=t.computed(()=>({center:e.round})),x=t.computed(()=>{const w=Math.max(0,Math.min(100,e.percentage));return w>0?{transition:"transform 0.6s",transform:`translateX(${w-100}%)`}:{}}),q=t.computed(()=>{if(e.loading===!0)return{onMousedown:j,onTouchstart:j,onClick:j,onKeydown:j,onKeyup:j};if(h.value===!0){const w={onClick:A,onKeydown:K,onMousedown:D};if(a.$q.platform.has.touch===!0){const z=e.onTouchstart!==void 0?"":"Passive";w[`onTouchstart${z}`]=E}return w}return{onClick:ge}}),B=t.computed(()=>({ref:y,class:"q-btn q-btn-item non-selectable no-outline "+o.value,style:r.value,...u.value,...q.value}));function A(w){if(y.value!==null){if(w!==void 0){if(w.defaultPrevented===!0)return;const z=document.activeElement;if(e.type==="submit"&&z!==document.body&&y.value.contains(z)===!1&&z.contains(y.value)===!1){w.qAvoidFocus!==!0&&y.value.focus();const O=()=>{var W;document.removeEventListener("keydown",ge,!0),document.removeEventListener("keyup",O,Be),(W=y.value)==null||W.removeEventListener("blur",O,Be)};document.addEventListener("keydown",ge,!0),document.addEventListener("keyup",O,Be),y.value.addEventListener("blur",O,Be)}}s(w)}}function K(w){y.value!==null&&(l("keydown",w),tt(w,[13,32])===!0&&kt!==y.value&&(kt!==null&&C(),w.defaultPrevented!==!0&&(w.qAvoidFocus!==!0&&y.value.focus(),kt=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("keyup",$,!0),y.value.addEventListener("blur",$,Be)),ge(w)))}function E(w){y.value!==null&&(l("touchstart",w),w.defaultPrevented!==!0&&(St!==y.value&&(St!==null&&C(),St=y.value,b=w.target,b.addEventListener("touchcancel",$,Be),b.addEventListener("touchend",$,Be)),V=!0,p!==null&&clearTimeout(p),p=setTimeout(()=>{p=null,V=!1},200)))}function D(w){y.value!==null&&(w.qSkipRipple=V===!0,l("mousedown",w),w.defaultPrevented!==!0&&xt!==y.value&&(xt!==null&&C(),xt=y.value,y.value.classList.add("q-btn--active"),document.addEventListener("mouseup",$,Be)))}function $(w){if(y.value!==null&&!((w==null?void 0:w.type)==="blur"&&document.activeElement===y.value)){if((w==null?void 0:w.type)==="keyup"){if(kt===y.value&&tt(w,[13,32])===!0){const z=new MouseEvent("click",w);z.qKeyEvent=!0,w.defaultPrevented===!0&&_e(z),w.cancelBubble===!0&&De(z),y.value.dispatchEvent(z),ge(w),w.qKeyEvent=!0}l("keyup",w)}C()}}function C(w){var O,W;const z=m.value;w!==!0&&(St===y.value||xt===y.value)&&z!==null&&z!==document.activeElement&&(z.setAttribute("tabindex",-1),z.focus()),St===y.value&&(b!==null&&(b.removeEventListener("touchcancel",$,Be),b.removeEventListener("touchend",$,Be)),St=b=null),xt===y.value&&(document.removeEventListener("mouseup",$,Be),xt=null),kt===y.value&&(document.removeEventListener("keyup",$,!0),(O=y.value)==null||O.removeEventListener("blur",$,Be),kt=null),(W=y.value)==null||W.classList.remove("q-btn--active")}function j(w){ge(w),w.qSkipRipple=!0}return t.onBeforeUnmount(()=>{C(!0)}),Object.assign(a,{click:w=>{h.value===!0&&A(w)}}),()=>{let w=[];e.icon!==void 0&&w.push(t.h(qe,{name:e.icon,left:e.stack!==!0&&F.value===!0,role:"img"})),F.value===!0&&w.push(t.h("span",{class:"block"},[e.label])),w=Ae(n.default,w),e.iconRight!==void 0&&e.round===!1&&w.push(t.h(qe,{name:e.iconRight,right:e.stack!==!0&&F.value===!0,role:"img"}));const z=[t.h("span",{class:"q-focus-helper",ref:m})];return e.loading===!0&&e.percentage!==void 0&&z.push(t.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[t.h("span",{class:"q-btn__progress-indicator fit block",style:x.value})])),z.push(t.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+i.value},w)),e.loading!==null&&z.push(t.h(t.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[t.h("span",{key:"loading",class:"absolute-full flex flex-center"},n.loading!==void 0?n.loading():[t.h(Bo)])]:null)),t.withDirectives(t.h(f.value,B.value,z),[[Oo,M.value,void 0,T.value]])}}}),ar={class:"row justify-between"},rr=t.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})}},setup(e){const n=e,l=t.inject("navContext",null),a=t.inject("router");function o(r){if(!a){console.warn("Dependencies not available:",{router:a});return}l==null||l.setTabs();const i=r==="back"?n.from:n.to;if(!i){console.warn("Destination not provided:",r);return}a.push({name:i,params:n.params})}return(r,i)=>(t.openBlock(),t.createElementBlock("div",ar,[t.createVNode(Me,{icon:"chevron_left","rounded-sm":"",label:r.labelFrom,onClick:i[0]||(i[0]=u=>o("back")),"data-cy":"go-back"},null,8,["label"]),r.labelTo?(t.openBlock(),t.createBlock(Me,{key:0,label:r.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next",onClick:i[1]||(i[1]=u=>o("next"))},null,8,["label"])):t.createCommentVNode("",!0)]))}}),mn=(e,n)=>{const l=e.__vccOpts||e;for(const[a,o]of n)l[a]=o;return l},ir=mn(rr,[["__scopeId","data-v-c5e3fee0"]]),Pe={dark:{type:Boolean,default:null}};function Ie(e,n){return t.computed(()=>e.dark===null?n.dark.isActive:e.dark)}function ur(e,n){const l=t.ref(null),a=t.computed(()=>e.disable===!0?null:t.h("span",{ref:l,class:"no-outline",tabindex:-1}));function o(r){const i=n.value;(r==null?void 0:r.qAvoidFocus)!==!0&&((r==null?void 0:r.type.indexOf("key"))===0?document.activeElement!==i&&(i==null?void 0:i.contains(document.activeElement))===!0&&i.focus():l.value!==null&&(r===void 0||(i==null?void 0:i.contains(r.target))===!0)&&l.value.focus())}return{refocusTargetEl:a,refocusTarget:o}}const hn={name:String};function sr(e){return t.computed(()=>({type:"hidden",name:e.name,value:e.modelValue}))}function Ao(e={}){return(n,l,a)=>{n[l](t.h("input",{class:"hidden"+(a||""),...e.value}))}}function Lo(e){return t.computed(()=>e.name||e.for)}const cr={xs:30,sm:35,md:40,lg:50,xl:60},dr={...Pe,...Nt,...hn,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:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},fr=["update:modelValue"];function vr(e,n){const{props:l,slots:a,emit:o,proxy:r}=t.getCurrentInstance(),{$q:i}=r,u=Ie(l,i),c=t.ref(null),{refocusTargetEl:f,refocusTarget:s}=ur(l,c),h=jt(l,cr),y=t.computed(()=>l.val!==void 0&&Array.isArray(l.modelValue)),m=t.computed(()=>{const C=t.toRaw(l.val);return y.value===!0?l.modelValue.findIndex(j=>t.toRaw(j)===C):-1}),b=t.computed(()=>y.value===!0?m.value!==-1:t.toRaw(l.modelValue)===t.toRaw(l.trueValue)),V=t.computed(()=>y.value===!0?m.value===-1:t.toRaw(l.modelValue)===t.toRaw(l.falseValue)),p=t.computed(()=>b.value===!1&&V.value===!1),F=t.computed(()=>l.disable===!0?-1:l.tabindex||0),M=t.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(u.value===!0?` q-${e}--dark`:"")+(l.dense===!0?` q-${e}--dense`:"")+(l.leftLabel===!0?" reverse":"")),T=t.computed(()=>{const C=b.value===!0?"truthy":V.value===!0?"falsy":"indet",j=l.color!==void 0&&(l.keepColor===!0||V.value!==!0)?` text-${l.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${C}${j}`}),x=t.computed(()=>{const C={type:"checkbox"};return l.name!==void 0&&Object.assign(C,{".checked":b.value,"^checked":b.value===!0?"checked":void 0,name:l.name,value:y.value===!0?l.val:l.trueValue}),C}),q=Ao(x),B=t.computed(()=>{const C={tabindex:F.value,role:"checkbox","aria-label":l.label,"aria-checked":p.value===!0?"mixed":b.value===!0?"true":"false"};return l.disable===!0&&(C["aria-disabled"]="true"),C});function A(C){C!==void 0&&(ge(C),s(C)),l.disable!==!0&&o("update:modelValue",K(),C)}function K(){if(y.value===!0){if(b.value===!0){const C=l.modelValue.slice();return C.splice(m.value,1),C}return l.modelValue.concat([l.val])}if(b.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(V.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function E(C){(C.keyCode===13||C.keyCode===32)&&ge(C)}function D(C){(C.keyCode===13||C.keyCode===32)&&A(C)}const $=n(b,p);return Object.assign(r,{toggle:A}),()=>{const C=$();l.disable!==!0&&q(C,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const j=[t.h("div",{class:T.value,style:h.value,"aria-hidden":"true"},C)];f.value!==null&&j.push(f.value);const w=l.label!==void 0?Ae(a.default,[l.label]):ke(a.default);return w!==void 0&&j.push(t.h("div",{class:`q-${e}__label q-anchor--skip`},w)),t.h("div",{ref:c,class:M.value,...B.value,onClick:A,onKeydown:E,onKeyup:D},j)}}const mr=()=>t.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[t.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[t.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),t.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),hr=ae({name:"QCheckbox",props:dr,emits:fr,setup(e){const n=mr();function l(a,o){const r=t.computed(()=>(a.value===!0?e.checkedIcon:o.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>r.value!==null?[t.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[t.h(qe,{class:"q-checkbox__icon",name:r.value})])]:[n]}return vr("checkbox",l)}}),gr=ae({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[t.h("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),t.h("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),t.withDirectives(t.h("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),t.withDirectives(t.h("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}}),nt=t.ref(!1);let Qn;function br(e,n){const l=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:l[5]||l[3]||l[1]||"",version:l[4]||l[2]||"0",platform:n[0]||""}}function pr(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const Ro="ontouchstart"in window||window.navigator.maxTouchPoints>0;function yr(e){const n=e.toLowerCase(),l=pr(n),a=br(n,l),o={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};a.browser&&(o[a.browser]=!0,o.version=a.version,o.versionNumber=parseInt(a.version,10)),a.platform&&(o[a.platform]=!0);const r=o.android||o.ios||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"];if(r===!0||n.indexOf("mobile")!==-1?o.mobile=!0:o.desktop=!0,o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),o.edga||o.edgios||o.edg?(o.edge=!0,a.browser="edge"):o.crios?(o.chrome=!0,a.browser="chrome"):o.fxios&&(o.firefox=!0,a.browser="firefox"),(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(a.browser="vivaldi",o.vivaldi=!0),(o.chrome||o.opr||o.safari||o.vivaldi||o.mobile===!0&&o.ios!==!0&&r!==!0)&&(o.webkit=!0),o.opr&&(a.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(a.browser="blackberry",o.blackberry=!0):o.playbook?(a.browser="playbook",o.playbook=!0):o.android?(a.browser="android",o.android=!0):o.kindle?(a.browser="kindle",o.kindle=!0):o.silk&&(a.browser="silk",o.silk=!0)),o.name=a.browser,o.platform=a.platform,n.indexOf("electron")!==-1)o.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)o.bex=!0;else{if(window.Capacitor!==void 0?(o.capacitor=!0,o.nativeMobile=!0,o.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(o.cordova=!0,o.nativeMobile=!0,o.nativeMobileWrapper="cordova"),nt.value===!0&&(Qn={is:{...o}}),Ro===!0&&o.mac===!0&&(o.desktop===!0&&o.safari===!0||o.nativeMobile===!0&&o.android!==!0&&o.ios!==!0&&o.ipad!==!0)){delete o.mac,delete o.desktop;const i=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:i,[i]:!0})}o.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}const Dl=navigator.userAgent||navigator.vendor||window.opera,wr={has:{touch:!1,webStorage:!1},within:{iframe:!1}},ye={userAgent:Dl,is:yr(Dl),has:{touch:Ro},within:{iframe:window.self!==window.top}},Wn={install(e){const{$q:n}=e;nt.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(n.platform,ye),nt.value=!1}),n.platform=t.reactive(this)):n.platform=this}};{let e;Dt(ye.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Wn,ye),nt.value===!0&&(Object.assign(Wn,Qn,wr),Qn=null)}function Sr(){const e=t.ref(!nt.value);return e.value===!1&&t.onMounted(()=>{e.value=!0}),{isHydrated:e}}const Fo=typeof ResizeObserver<"u",zl=Fo===!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"},Vt=ae({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:n}){let l=null,a,o={width:-1,height:-1};function r(c){c===!0||e.debounce===0||e.debounce==="0"?i():l===null&&(l=setTimeout(i,e.debounce))}function i(){if(l!==null&&(clearTimeout(l),l=null),a){const{offsetWidth:c,offsetHeight:f}=a;(c!==o.width||f!==o.height)&&(o={width:c,height:f},n("resize",o))}}const{proxy:u}=t.getCurrentInstance();if(u.trigger=r,Fo===!0){let c;const f=s=>{a=u.$el.parentNode,a?(c=new ResizeObserver(r),c.observe(a),i()):s!==!0&&t.nextTick(()=>{f(!0)})};return t.onMounted(()=>{f()}),t.onBeforeUnmount(()=>{l!==null&&clearTimeout(l),c!==void 0&&(c.disconnect!==void 0?c.disconnect():a&&c.unobserve(a))}),vn}else{let c=function(){l!==null&&(clearTimeout(l),l=null),h!==void 0&&(h.removeEventListener!==void 0&&h.removeEventListener("resize",r,pe.passive),h=void 0)},f=function(){c(),a!=null&&a.contentDocument&&(h=a.contentDocument.defaultView,h.addEventListener("resize",r,pe.passive),i())};const{isHydrated:s}=Sr();let h;return t.onMounted(()=>{t.nextTick(()=>{a=u.$el,a&&f()})}),t.onBeforeUnmount(c),()=>{if(s.value===!0)return t.h("object",{class:"q--avoid-card-border",style:zl.style,tabindex:-1,type:"text/html",data:zl.url,"aria-hidden":"true",onLoad:f})}}}}),Ho=[Element,String],kr=[null,document,document.body,document.scrollingElement,document.documentElement];function Po(e,n){let l=Qa(n);if(l===void 0){if(e==null)return window;l=e.closest(".scroll,.scroll-y,.overflow-auto")}return kr.includes(l)?window:l}function sl(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function cl(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Io(e,n,l=0){const a=arguments[3]===void 0?performance.now():arguments[3],o=sl(e);if(l<=0){o!==n&&Kn(e,n);return}requestAnimationFrame(r=>{const i=r-a,u=o+(n-o)/Math.max(i,l)*i;Kn(e,u),u!==n&&Io(e,n,l-i,r)})}function No(e,n,l=0){const a=arguments[3]===void 0?performance.now():arguments[3],o=cl(e);if(l<=0){o!==n&&Xn(e,n);return}requestAnimationFrame(r=>{const i=r-a,u=o+(n-o)/Math.max(i,l)*i;Xn(e,u),u!==n&&No(e,n,l-i,r)})}function Kn(e,n){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,n);return}e.scrollTop=n}function Xn(e,n){if(e===window){window.scrollTo(n,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=n}function Tl(e,n,l){if(l){Io(e,n,l);return}Kn(e,n)}function En(e,n,l){if(l){No(e,n,l);return}Xn(e,n)}let Zt;function an(){if(Zt!==void 0)return Zt;const e=document.createElement("p"),n=document.createElement("div");Un(e,{width:"100%",height:"200px"}),Un(n,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),n.appendChild(e),document.body.appendChild(n);const l=e.offsetWidth;n.style.overflow="scroll";let a=e.offsetWidth;return l===a&&(a=n.clientWidth),n.remove(),Zt=l-a,Zt}function xr(e,n=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:n?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}const{passive:Bl}=pe,Cr=["both","horizontal","vertical"],jo=ae({name:"QScrollObserver",props:{axis:{type:String,validator:e=>Cr.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:Ho},emits:["scroll"],setup(e,{emit:n}){const l={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let a=null,o,r;t.watch(()=>e.scrollTarget,()=>{c(),u()});function i(){a==null||a();const h=Math.max(0,sl(o)),y=cl(o),m={top:h-l.position.top,left:y-l.position.left};if(e.axis==="vertical"&&m.top===0||e.axis==="horizontal"&&m.left===0)return;const b=Math.abs(m.top)>=Math.abs(m.left)?m.top<0?"up":"down":m.left<0?"left":"right";l.position={top:h,left:y},l.directionChanged=l.direction!==b,l.delta=m,l.directionChanged===!0&&(l.direction=b,l.inflectionPoint=l.position),n("scroll",{...l})}function u(){o=Po(r,e.scrollTarget),o.addEventListener("scroll",f,Bl),f(!0)}function c(){o!==void 0&&(o.removeEventListener("scroll",f,Bl),o=void 0)}function f(h){if(h===!0||e.debounce===0||e.debounce==="0")i();else if(a===null){const[y,m]=e.debounce?[setTimeout(i,e.debounce),clearTimeout]:[requestAnimationFrame(i),cancelAnimationFrame];a=()=>{m(y),a=null}}}const{proxy:s}=t.getCurrentInstance();return t.watch(()=>s.$q.lang.rtl,i),t.onMounted(()=>{r=s.$el.parentNode,u()}),t.onBeforeUnmount(()=>{a==null||a(),c()}),Object.assign(s,{trigger:f,getPosition:()=>l}),vn}}),dl={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},_r=Object.keys(dl);dl.all=!0;function $l(e){const n={};for(const l of _r)e[l]===!0&&(n[l]=!0);return Object.keys(n).length===0?dl:(n.horizontal===!0?n.left=n.right=!0:n.left===!0&&n.right===!0&&(n.horizontal=!0),n.vertical===!0?n.up=n.down=!0:n.up===!0&&n.down===!0&&(n.vertical=!0),n.horizontal===!0&&n.vertical===!0&&(n.all=!0),n)}const qr=["INPUT","TEXTAREA"];function Ol(e,n){return n.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof n.handler=="function"&&qr.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(n.uid)===-1)}function Yo(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),Wn.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function Dn(e,n,l){const a=Ht(e);let o,r=a.left-n.event.x,i=a.top-n.event.y,u=Math.abs(r),c=Math.abs(i);const f=n.direction;f.horizontal===!0&&f.vertical!==!0?o=r<0?"left":"right":f.horizontal!==!0&&f.vertical===!0?o=i<0?"up":"down":f.up===!0&&i<0?(o="up",u>c&&(f.left===!0&&r<0?o="left":f.right===!0&&r>0&&(o="right"))):f.down===!0&&i>0?(o="down",u>c&&(f.left===!0&&r<0?o="left":f.right===!0&&r>0&&(o="right"))):f.left===!0&&r<0?(o="left",u<c&&(f.up===!0&&i<0?o="up":f.down===!0&&i>0&&(o="down"))):f.right===!0&&r>0&&(o="right",u<c&&(f.up===!0&&i<0?o="up":f.down===!0&&i>0&&(o="down")));let s=!1;if(o===void 0&&l===!1){if(n.event.isFirst===!0||n.event.lastDir===void 0)return{};o=n.event.lastDir,s=!0,o==="left"||o==="right"?(a.left-=r,u=0,r=0):(a.top-=i,c=0,i=0)}return{synthetic:s,payload:{evt:e,touch:n.event.mouse!==!0,mouse:n.event.mouse===!0,position:a,direction:o,isFirst:n.event.isFirst,isFinal:l===!0,duration:Date.now()-n.event.time,distance:{x:u,y:c},offset:{x:r,y:i},delta:{x:a.left-n.event.lastX,y:a.top-n.event.lastY}}}}let Mr=0;const Al=rl({name:"touch-pan",beforeMount(e,{value:n,modifiers:l}){if(l.mouse!==!0&&ye.has.touch!==!0)return;function a(r,i){l.mouse===!0&&i===!0?ge(r):(l.stop===!0&&De(r),l.prevent===!0&&_e(r))}const o={uid:"qvtp_"+Mr++,handler:n,modifiers:l,direction:$l(l),noop:vn,mouseStart(r){Ol(r,o)&&Wa(r)&&(vt(o,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),o.start(r,!0))},touchStart(r){if(Ol(r,o)){const i=r.target;vt(o,"temp",[[i,"touchmove","move","notPassiveCapture"],[i,"touchcancel","end","passiveCapture"],[i,"touchend","end","passiveCapture"]]),o.start(r)}},start(r,i){if(ye.is.firefox===!0&&Vn(e,!0),o.lastEvt=r,i===!0||l.stop===!0){if(o.direction.all!==!0&&(i!==!0||o.modifiers.mouseAllDir!==!0&&o.modifiers.mousealldir!==!0)){const f=r.type.indexOf("mouse")!==-1?new MouseEvent(r.type,r):new TouchEvent(r.type,r);r.defaultPrevented===!0&&_e(f),r.cancelBubble===!0&&De(f),Object.assign(f,{qKeyEvent:r.qKeyEvent,qClickOutside:r.qClickOutside,qAnchorHandled:r.qAnchorHandled,qClonedBy:r.qClonedBy===void 0?[o.uid]:r.qClonedBy.concat(o.uid)}),o.initialEvent={target:r.target,event:f}}De(r)}const{left:u,top:c}=Ht(r);o.event={x:u,y:c,time:Date.now(),mouse:i===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:u,lastY:c}},move(r){if(o.event===void 0)return;const i=Ht(r),u=i.left-o.event.x,c=i.top-o.event.y;if(u===0&&c===0)return;o.lastEvt=r;const f=o.event.mouse===!0,s=()=>{a(r,f);let m;l.preserveCursor!==!0&&l.preservecursor!==!0&&(m=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),f===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Yo(),o.styleCleanup=b=>{if(o.styleCleanup=void 0,m!==void 0&&(document.documentElement.style.cursor=m),document.body.classList.remove("non-selectable"),f===!0){const V=()=>{document.body.classList.remove("no-pointer-events--children")};b!==void 0?setTimeout(()=>{V(),b()},50):V()}else b!==void 0&&b()}};if(o.event.detected===!0){o.event.isFirst!==!0&&a(r,o.event.mouse);const{payload:m,synthetic:b}=Dn(r,o,!1);m!==void 0&&(o.handler(m)===!1?o.end(r):(o.styleCleanup===void 0&&o.event.isFirst===!0&&s(),o.event.lastX=m.position.left,o.event.lastY=m.position.top,o.event.lastDir=b===!0?void 0:m.direction,o.event.isFirst=!1));return}if(o.direction.all===!0||f===!0&&(o.modifiers.mouseAllDir===!0||o.modifiers.mousealldir===!0)){s(),o.event.detected=!0,o.move(r);return}const h=Math.abs(u),y=Math.abs(c);h!==y&&(o.direction.horizontal===!0&&h>y||o.direction.vertical===!0&&h<y||o.direction.up===!0&&h<y&&c<0||o.direction.down===!0&&h<y&&c>0||o.direction.left===!0&&h>y&&u<0||o.direction.right===!0&&h>y&&u>0?(o.event.detected=!0,o.move(r)):o.end(r,!0))},end(r,i){var u;if(o.event!==void 0){if(Ft(o,"temp"),ye.is.firefox===!0&&Vn(e,!1),i===!0)(u=o.styleCleanup)==null||u.call(o),o.event.detected!==!0&&o.initialEvent!==void 0&&o.initialEvent.target.dispatchEvent(o.initialEvent.event);else if(o.event.detected===!0){o.event.isFirst===!0&&o.handler(Dn(r===void 0?o.lastEvt:r,o).payload);const{payload:c}=Dn(r===void 0?o.lastEvt:r,o,!0),f=()=>{o.handler(c)};o.styleCleanup!==void 0?o.styleCleanup(f):f()}o.event=void 0,o.initialEvent=void 0,o.lastEvt=void 0}}};if(e.__qtouchpan=o,l.mouse===!0){const r=l.mouseCapture===!0||l.mousecapture===!0?"Capture":"";vt(o,"main",[[e,"mousedown","mouseStart",`passive${r}`]])}ye.has.touch===!0&&vt(o,"main",[[e,"touchstart","touchStart",`passive${l.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,n){const l=e.__qtouchpan;l!==void 0&&(n.oldValue!==n.value&&(typeof value!="function"&&l.end(),l.handler=n.value),l.direction=$l(n.modifiers))},beforeUnmount(e){var l;const n=e.__qtouchpan;n!==void 0&&(n.event!==void 0&&n.end(),Ft(n,"main"),Ft(n,"temp"),ye.is.firefox===!0&&Vn(e,!1),(l=n.styleCleanup)==null||l.call(n),delete e.__qtouchpan)}});function Ot(e,n,l){return l<=n?n:Math.min(l,Math.max(n,e))}function Ll(e,n,l){if(l<=n)return n;const a=l-n+1;let o=n+(e-n)%a;return o<n&&(o=a+o),o===0?0:o}function re(e,n=2,l="0"){if(e==null)return e;const a=""+e;return a.length>=n?a:new Array(n-a.length+1).join(l)+a}function fl(e,n=250,l){let a=null;function o(){const r=arguments,i=()=>{a=null,e.apply(this,r)};a!==null&&clearTimeout(a),a=setTimeout(i,n)}return o.cancel=()=>{a!==null&&clearTimeout(a)},o}const Rl=["vertical","horizontal"],zn={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},Fl={prevent:!0,mouse:!0,mouseAllDir:!0},Hl=e=>e>=250?50:Math.ceil(e/5),Vr=ae({name:"QScrollArea",props:{...Pe,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(e,{slots:n,emit:l}){const a=t.ref(!1),o=t.ref(!1),r=t.ref(!1),i={vertical:t.ref(0),horizontal:t.ref(0)},u={vertical:{ref:t.ref(null),position:t.ref(0),size:t.ref(0)},horizontal:{ref:t.ref(null),position:t.ref(0),size:t.ref(0)}},{proxy:c}=t.getCurrentInstance(),f=Ie(e,c.$q);let s=null,h;const y=t.ref(null),m=t.computed(()=>"q-scrollarea"+(f.value===!0?" q-scrollarea--dark":""));Object.assign(i,{verticalInner:t.computed(()=>i.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:t.computed(()=>i.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),u.vertical.percentage=t.computed(()=>{const w=u.vertical.size.value-i.vertical.value;if(w<=0)return 0;const z=Ot(u.vertical.position.value/w,0,1);return Math.round(z*1e4)/1e4}),u.vertical.thumbHidden=t.computed(()=>(e.visible===null?r.value:e.visible)!==!0&&a.value===!1&&o.value===!1||u.vertical.size.value<=i.vertical.value+1),u.vertical.thumbStart=t.computed(()=>e.verticalOffset[0]+u.vertical.percentage.value*(i.verticalInner.value-u.vertical.thumbSize.value)),u.vertical.thumbSize=t.computed(()=>Math.round(Ot(i.verticalInner.value*i.verticalInner.value/u.vertical.size.value,Hl(i.verticalInner.value),i.verticalInner.value))),u.vertical.style=t.computed(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${u.vertical.thumbStart.value}px`,height:`${u.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),u.vertical.thumbClass=t.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(u.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),u.vertical.barClass=t.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(u.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),u.horizontal.percentage=t.computed(()=>{const w=u.horizontal.size.value-i.horizontal.value;if(w<=0)return 0;const z=Ot(Math.abs(u.horizontal.position.value)/w,0,1);return Math.round(z*1e4)/1e4}),u.horizontal.thumbHidden=t.computed(()=>(e.visible===null?r.value:e.visible)!==!0&&a.value===!1&&o.value===!1||u.horizontal.size.value<=i.horizontal.value+1),u.horizontal.thumbStart=t.computed(()=>e.horizontalOffset[0]+u.horizontal.percentage.value*(i.horizontalInner.value-u.horizontal.thumbSize.value)),u.horizontal.thumbSize=t.computed(()=>Math.round(Ot(i.horizontalInner.value*i.horizontalInner.value/u.horizontal.size.value,Hl(i.horizontalInner.value),i.horizontalInner.value))),u.horizontal.style=t.computed(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[c.$q.lang.rtl===!0?"right":"left"]:`${u.horizontal.thumbStart.value}px`,width:`${u.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),u.horizontal.thumbClass=t.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(u.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),u.horizontal.barClass=t.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(u.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const b=t.computed(()=>u.vertical.thumbHidden.value===!0&&u.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function V(){const w={};return Rl.forEach(z=>{const O=u[z];Object.assign(w,{[z+"Position"]:O.position.value,[z+"Percentage"]:O.percentage.value,[z+"Size"]:O.size.value,[z+"ContainerSize"]:i[z].value,[z+"ContainerInnerSize"]:i[z+"Inner"].value})}),w}const p=fl(()=>{const w=V();w.ref=c,l("scroll",w)},0);function F(w,z,O){if(Rl.includes(w)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(w==="vertical"?Tl:En)(y.value,z,O)}function M({height:w,width:z}){let O=!1;i.vertical.value!==w&&(i.vertical.value=w,O=!0),i.horizontal.value!==z&&(i.horizontal.value=z,O=!0),O===!0&&A()}function T({position:w}){let z=!1;u.vertical.position.value!==w.top&&(u.vertical.position.value=w.top,z=!0),u.horizontal.position.value!==w.left&&(u.horizontal.position.value=w.left,z=!0),z===!0&&A()}function x({height:w,width:z}){u.horizontal.size.value!==z&&(u.horizontal.size.value=z,A()),u.vertical.size.value!==w&&(u.vertical.size.value=w,A())}function q(w,z){const O=u[z];if(w.isFirst===!0){if(O.thumbHidden.value===!0)return;h=O.position.value,o.value=!0}else if(o.value!==!0)return;w.isFinal===!0&&(o.value=!1);const W=zn[z],L=(O.size.value-i[z].value)/(i[z+"Inner"].value-O.thumbSize.value),X=w.distance[W.dist],ee=h+(w.direction===W.dir?1:-1)*X*L;K(ee,z)}function B(w,z){const O=u[z];if(O.thumbHidden.value!==!0){const W=z==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],L=w[zn[z].offset]-W,X=O.thumbStart.value-W;if(L<X||L>X+O.thumbSize.value){const ee=L-O.thumbSize.value/2,k=Ot(ee/(i[z+"Inner"].value-O.thumbSize.value),0,1);K(k*Math.max(0,O.size.value-i[z].value),z)}O.ref.value!==null&&O.ref.value.dispatchEvent(new MouseEvent(w.type,w))}}function A(){a.value=!0,s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,a.value=!1},e.delay),e.onScroll!==void 0&&p()}function K(w,z){y.value[zn[z].scroll]=w}let E=null;function D(){E!==null&&clearTimeout(E),E=setTimeout(()=>{E=null,r.value=!0},c.$q.platform.is.ios?50:0)}function $(){E!==null&&(clearTimeout(E),E=null),r.value=!1}let C=null;t.watch(()=>c.$q.lang.rtl,w=>{y.value!==null&&En(y.value,Math.abs(u.horizontal.position.value)*(w===!0?-1:1))}),t.onDeactivated(()=>{C={top:u.vertical.position.value,left:u.horizontal.position.value}}),t.onActivated(()=>{if(C===null)return;const w=y.value;w!==null&&(En(w,C.left),Tl(w,C.top))}),t.onBeforeUnmount(p.cancel),Object.assign(c,{getScrollTarget:()=>y.value,getScroll:V,getScrollPosition:()=>({top:u.vertical.position.value,left:u.horizontal.position.value}),getScrollPercentage:()=>({top:u.vertical.percentage.value,left:u.horizontal.percentage.value}),setScrollPosition:F,setScrollPercentage(w,z,O){F(w,z*(u[w].size.value-i[w].value)*(w==="horizontal"&&c.$q.lang.rtl===!0?-1:1),O)}});const j={scroll:u,thumbVertDir:[[Al,w=>{q(w,"vertical")},void 0,{vertical:!0,...Fl}]],thumbHorizDir:[[Al,w=>{q(w,"horizontal")},void 0,{horizontal:!0,...Fl}]],onVerticalMousedown(w){B(w,"vertical")},onHorizontalMousedown(w){B(w,"horizontal")}};return()=>t.h("div",{class:m.value,onMouseenter:D,onMouseleave:$},[t.h("div",{ref:y,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[t.h("div",{class:"q-scrollarea__content absolute",style:b.value},Ae(n.default,[t.h(Vt,{debounce:0,onResize:x})])),t.h(jo,{axis:"both",onScroll:T})]),t.h(Vt,{debounce:0,onResize:M}),t.h(gr,{store:j,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}}),Er=ae({name:"QCard",props:{...Pe,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:n}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=Ie(e,l),o=t.computed(()=>"q-card"+(a.value===!0?" q-card--dark q-dark":"")+(e.bordered===!0?" q-card--bordered":"")+(e.square===!0?" q-card--square no-border-radius":"")+(e.flat===!0?" q-card--flat no-shadow":""));return()=>t.h(e.tag,{class:o.value},ke(n.default))}}),Dr={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Uo={...Dr,contextMenu:Boolean};function Qo({showing:e,avoidEmit:n,configureAnchorEl:l}){const{props:a,proxy:o,emit:r}=t.getCurrentInstance(),i=t.ref(null);let u=null;function c(m){return i.value===null?!1:m===void 0||m.touches===void 0||m.touches.length<=1}const f={};l===void 0&&(Object.assign(f,{hide(m){o.hide(m)},toggle(m){o.toggle(m),m.qAnchorHandled=!0},toggleKey(m){tt(m,13)===!0&&f.toggle(m)},contextClick(m){o.hide(m),_e(m),t.nextTick(()=>{o.show(m),m.qAnchorHandled=!0})},prevent:_e,mobileTouch(m){if(f.mobileCleanup(m),c(m)!==!0)return;o.hide(m),i.value.classList.add("non-selectable");const b=m.target;vt(f,"anchor",[[b,"touchmove","mobileCleanup","passive"],[b,"touchend","mobileCleanup","passive"],[b,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),u=setTimeout(()=>{u=null,o.show(m),m.qAnchorHandled=!0},300)},mobileCleanup(m){i.value.classList.remove("non-selectable"),u!==null&&(clearTimeout(u),u=null),e.value===!0&&m!==void 0&&Yo()}}),l=function(m=a.contextMenu){if(a.noParentEvent===!0||i.value===null)return;let b;m===!0?o.$q.platform.is.mobile===!0?b=[[i.value,"touchstart","mobileTouch","passive"]]:b=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:b=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],vt(f,"anchor",b)});function s(){Ft(f,"anchor")}function h(m){for(i.value=m;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;l()}function y(){if(a.target===!1||a.target===""||o.$el.parentNode===null)i.value=null;else if(a.target===!0)h(o.$el.parentNode);else{let m=a.target;if(typeof a.target=="string")try{m=document.querySelector(a.target)}catch{m=void 0}m!=null?(i.value=m.$el||m,l()):(i.value=null,console.error(`Anchor: target "${a.target}" not found`))}}return t.watch(()=>a.contextMenu,m=>{i.value!==null&&(s(),l(m))}),t.watch(()=>a.target,()=>{i.value!==null&&s(),y()}),t.watch(()=>a.noParentEvent,m=>{i.value!==null&&(m===!0?s():l())}),t.onMounted(()=>{y(),n!==!0&&a.modelValue===!0&&i.value===null&&r("update:modelValue",!1)}),t.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),s()}),{anchorEl:i,canShow:c,anchorEvents:f}}function zr(e,n){const l=t.ref(null);let a;function o(u,c){const f=`${c!==void 0?"add":"remove"}EventListener`,s=c!==void 0?c:a;u!==window&&u[f]("scroll",s,pe.passive),window[f]("scroll",s,pe.passive),a=c}function r(){l.value!==null&&(o(l.value),l.value=null)}const i=t.watch(()=>e.noParentEvent,()=>{l.value!==null&&(r(),n())});return t.onBeforeUnmount(i),{localScrollTarget:l,unconfigureScrollTarget:r,changeScrollEvent:o}}const Wo={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Ko=["beforeShow","show","beforeHide","hide"];function Xo({showing:e,canShow:n,hideOnRouteChange:l,handleShow:a,handleHide:o,processOnMount:r}){const i=t.getCurrentInstance(),{props:u,emit:c,proxy:f}=i;let s;function h(M){e.value===!0?b(M):y(M)}function y(M){if(u.disable===!0||(M==null?void 0:M.qAnchorHandled)===!0||n!==void 0&&n(M)!==!0)return;const T=u["onUpdate:modelValue"]!==void 0;T===!0&&(c("update:modelValue",!0),s=M,t.nextTick(()=>{s===M&&(s=void 0)})),(u.modelValue===null||T===!1)&&m(M)}function m(M){e.value!==!0&&(e.value=!0,c("beforeShow",M),a!==void 0?a(M):c("show",M))}function b(M){if(u.disable===!0)return;const T=u["onUpdate:modelValue"]!==void 0;T===!0&&(c("update:modelValue",!1),s=M,t.nextTick(()=>{s===M&&(s=void 0)})),(u.modelValue===null||T===!1)&&V(M)}function V(M){e.value!==!1&&(e.value=!1,c("beforeHide",M),o!==void 0?o(M):c("hide",M))}function p(M){u.disable===!0&&M===!0?u["onUpdate:modelValue"]!==void 0&&c("update:modelValue",!1):M===!0!==e.value&&(M===!0?m:V)(s)}t.watch(()=>u.modelValue,p),l!==void 0&&qo(i)===!0&&t.watch(()=>f.$route.fullPath,()=>{l.value===!0&&e.value===!0&&b()}),t.onMounted(()=>{p(u.modelValue)});const F={show:y,hide:b,toggle:h};return Object.assign(f,F),F}let mt=[],Pt=[];function Zo(e){Pt=Pt.filter(n=>n!==e)}function Tr(e){Zo(e),Pt.push(e)}function Pl(e){Zo(e),Pt.length===0&&mt.length!==0&&(mt[mt.length-1](),mt=[])}function gn(e){Pt.length===0?e():mt.push(e)}function Br(e){mt=mt.filter(n=>n!==e)}const Il={};let $r=1,Or=document.body;function Ar(e,n){const l=document.createElement("div");if(l.id=n!==void 0?`q-portal--${n}--${$r++}`:e,Il.globalNodes!==void 0){const a=Il.globalNodes.class;a!==void 0&&(l.className=a)}return Or.appendChild(l),l}function Lr(e){e.remove()}const qt=[];function Rr(e){return qt.find(n=>n.contentEl!==null&&n.contentEl.contains(e))}function Jo(e,n){do{if(e.$options.name==="QMenu"){if(e.hide(n),e.$props.separateClosePopup===!0)return on(e)}else if(e.__qPortal===!0){const l=on(e);return(l==null?void 0:l.$options.name)==="QPopupProxy"?(e.hide(n),l):e}e=on(e)}while(e!=null)}function Fr(e,n,l){for(;l!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(l--,e.$options.name==="QMenu"){e=Jo(e,n);continue}e.hide(n)}e=on(e)}}const Hr=ae({name:"QPortal",setup(e,{slots:n}){return()=>n.default()}});function Pr(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Go(e,n,l,a){const o=t.ref(!1),r=t.ref(!1);let i=null;const u={},c=a==="dialog"&&Pr(e);function f(h){if(h===!0){Pl(u),r.value=!0;return}r.value=!1,o.value===!1&&(c===!1&&i===null&&(i=Ar(!1,a)),o.value=!0,qt.push(e.proxy),Tr(u))}function s(h){if(r.value=!1,h!==!0)return;Pl(u),o.value=!1;const y=qt.indexOf(e.proxy);y!==-1&&qt.splice(y,1),i!==null&&(Lr(i),i=null)}return t.onUnmounted(()=>{s(!0)}),e.proxy.__qPortal=!0,Dt(e.proxy,"contentEl",()=>n.value),{showPortal:f,hidePortal:s,portalIsActive:o,portalIsAccessible:r,renderPortal:()=>c===!0?l():o.value===!0?[t.h(t.Teleport,{to:i},t.h(Hr,l))]:void 0}}const ea={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function ta(e,n=()=>{},l=()=>{}){return{transitionProps:t.computed(()=>{const a=`q-transition--${e.transitionShow||n()}`,o=`q-transition--${e.transitionHide||l()}`;return{appear:!0,enterFromClass:`${a}-enter-from`,enterActiveClass:`${a}-enter-active`,enterToClass:`${a}-enter-to`,leaveFromClass:`${o}-leave-from`,leaveActiveClass:`${o}-leave-active`,leaveToClass:`${o}-leave-to`}}),transitionStyle:t.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function na(){let e;const n=t.getCurrentInstance();function l(){e=void 0}return t.onDeactivated(l),t.onBeforeUnmount(l),{removeTick:l,registerTick(a){e=a,t.nextTick(()=>{e===a&&(Mo(n)===!1&&e(),e=void 0)})}}}function la(){let e=null;const n=t.getCurrentInstance();function l(){e!==null&&(clearTimeout(e),e=null)}return t.onDeactivated(l),t.onBeforeUnmount(l),{removeTimeout:l,registerTimeout(a,o){l(),Mo(n)===!1&&(e=setTimeout(()=>{e=null,a()},o))}}}const ht=[];let Et;function Ir(e){Et=e.keyCode===27}function Nr(){Et===!0&&(Et=!1)}function jr(e){Et===!0&&(Et=!1,tt(e,27)===!0&&ht[ht.length-1](e))}function oa(e){window[e]("keydown",Ir),window[e]("blur",Nr),window[e]("keyup",jr),Et=!1}function aa(e){ye.is.desktop===!0&&(ht.push(e),ht.length===1&&oa("addEventListener"))}function un(e){const n=ht.indexOf(e);n!==-1&&(ht.splice(n,1),ht.length===0&&oa("removeEventListener"))}const gt=[];function ra(e){gt[gt.length-1](e)}function ia(e){ye.is.desktop===!0&&(gt.push(e),gt.length===1&&document.body.addEventListener("focusin",ra))}function Zn(e){const n=gt.indexOf(e);n!==-1&&(gt.splice(n,1),gt.length===0&&document.body.removeEventListener("focusin",ra))}const{notPassiveCapture:sn}=pe,bt=[];function cn(e){const n=e.target;if(n===void 0||n.nodeType===8||n.classList.contains("no-pointer-events")===!0)return;let l=qt.length-1;for(;l>=0;){const a=qt[l].$;if(a.type.name==="QTooltip"){l--;continue}if(a.type.name!=="QDialog")break;if(a.props.seamless!==!0)return;l--}for(let a=bt.length-1;a>=0;a--){const o=bt[a];if((o.anchorEl.value===null||o.anchorEl.value.contains(n)===!1)&&(n===document.body||o.innerRef.value!==null&&o.innerRef.value.contains(n)===!1))e.qClickOutside=!0,o.onClickOutside(e);else return}}function Yr(e){bt.push(e),bt.length===1&&(document.addEventListener("mousedown",cn,sn),document.addEventListener("touchstart",cn,sn))}function Nl(e){const n=bt.findIndex(l=>l===e);n!==-1&&(bt.splice(n,1),bt.length===0&&(document.removeEventListener("mousedown",cn,sn),document.removeEventListener("touchstart",cn,sn)))}let jl,Yl;function Ul(e){const n=e.split(" ");return n.length!==2?!1:["top","center","bottom"].includes(n[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(n[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Ur(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Jn={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Jn[`${e}#ltr`]=e,Jn[`${e}#rtl`]=e});function Ql(e,n){const l=e.split(" ");return{vertical:l[0],horizontal:Jn[`${l[1]}#${n===!0?"rtl":"ltr"}`]}}function Qr(e,n){let{top:l,left:a,right:o,bottom:r,width:i,height:u}=e.getBoundingClientRect();return n!==void 0&&(l-=n[1],a-=n[0],r+=n[1],o+=n[0],i+=n[0],u+=n[1]),{top:l,bottom:r,height:u,left:a,right:o,width:i,middle:a+(o-a)/2,center:l+(r-l)/2}}function Wr(e,n,l){let{top:a,left:o}=e.getBoundingClientRect();return a+=n.top,o+=n.left,l!==void 0&&(a+=l[1],o+=l[0]),{top:a,bottom:a+1,height:1,left:o,right:o+1,width:1,middle:o,center:a}}function Kr(e,n){return{top:0,center:n/2,bottom:n,left:0,middle:e/2,right:e}}function Wl(e,n,l,a){return{top:e[l.vertical]-n[a.vertical],left:e[l.horizontal]-n[a.horizontal]}}function ua(e,n=0){if(e.targetEl===null||e.anchorEl===null||n>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{ua(e,n+1)},10);return}const{targetEl:l,offset:a,anchorEl:o,anchorOrigin:r,selfOrigin:i,absoluteOffset:u,fit:c,cover:f,maxHeight:s,maxWidth:h}=e;if(ye.is.ios===!0&&window.visualViewport!==void 0){const B=document.body.style,{offsetLeft:A,offsetTop:K}=window.visualViewport;A!==jl&&(B.setProperty("--q-pe-left",A+"px"),jl=A),K!==Yl&&(B.setProperty("--q-pe-top",K+"px"),Yl=K)}const{scrollLeft:y,scrollTop:m}=l,b=u===void 0?Qr(o,f===!0?[0,0]:a):Wr(o,u,a);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:h,maxHeight:s,visibility:"visible"});const{offsetWidth:V,offsetHeight:p}=l,{elWidth:F,elHeight:M}=c===!0||f===!0?{elWidth:Math.max(b.width,V),elHeight:f===!0?Math.max(b.height,p):p}:{elWidth:V,elHeight:p};let T={maxWidth:h,maxHeight:s};(c===!0||f===!0)&&(T.minWidth=b.width+"px",f===!0&&(T.minHeight=b.height+"px")),Object.assign(l.style,T);const x=Kr(F,M);let q=Wl(b,x,r,i);if(u===void 0||a===void 0)Tn(q,b,x,r,i);else{const{top:B,left:A}=q;Tn(q,b,x,r,i);let K=!1;if(q.top!==B){K=!0;const E=2*a[1];b.center=b.top-=E,b.bottom-=E+2}if(q.left!==A){K=!0;const E=2*a[0];b.middle=b.left-=E,b.right-=E+2}K===!0&&(q=Wl(b,x,r,i),Tn(q,b,x,r,i))}T={top:q.top+"px",left:q.left+"px"},q.maxHeight!==void 0&&(T.maxHeight=q.maxHeight+"px",b.height>q.maxHeight&&(T.minHeight=T.maxHeight)),q.maxWidth!==void 0&&(T.maxWidth=q.maxWidth+"px",b.width>q.maxWidth&&(T.minWidth=T.maxWidth)),Object.assign(l.style,T),l.scrollTop!==m&&(l.scrollTop=m),l.scrollLeft!==y&&(l.scrollLeft=y)}function Tn(e,n,l,a,o){const r=l.bottom,i=l.right,u=an(),c=window.innerHeight-u,f=document.body.clientWidth;if(e.top<0||e.top+r>c)if(o.vertical==="center")e.top=n[a.vertical]>c/2?Math.max(0,c-r):0,e.maxHeight=Math.min(r,c);else if(n[a.vertical]>c/2){const s=Math.min(c,a.vertical==="center"?n.center:a.vertical===o.vertical?n.bottom:n.top);e.maxHeight=Math.min(r,s),e.top=Math.max(0,s-r)}else e.top=Math.max(0,a.vertical==="center"?n.center:a.vertical===o.vertical?n.top:n.bottom),e.maxHeight=Math.min(r,c-e.top);if(e.left<0||e.left+i>f)if(e.maxWidth=Math.min(i,f),o.horizontal==="middle")e.left=n[a.horizontal]>f/2?Math.max(0,f-i):0;else if(n[a.horizontal]>f/2){const s=Math.min(f,a.horizontal==="middle"?n.middle:a.horizontal===o.horizontal?n.right:n.left);e.maxWidth=Math.min(i,s),e.left=Math.max(0,s-e.maxWidth)}else e.left=Math.max(0,a.horizontal==="middle"?n.middle:a.horizontal===o.horizontal?n.left:n.right),e.maxWidth=Math.min(i,f-e.left)}const bn=ae({name:"QMenu",inheritAttrs:!1,props:{...Uo,...Wo,...Pe,...ea,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Ul},self:{type:String,validator:Ul},offset:{type:Array,validator:Ur},scrollTarget:Ho,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Ko,"click","escapeKey"],setup(e,{slots:n,emit:l,attrs:a}){let o=null,r,i,u;const c=t.getCurrentInstance(),{proxy:f}=c,{$q:s}=f,h=t.ref(null),y=t.ref(!1),m=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),b=Ie(e,s),{registerTick:V,removeTick:p}=na(),{registerTimeout:F}=la(),{transitionProps:M,transitionStyle:T}=ta(e),{localScrollTarget:x,changeScrollEvent:q,unconfigureScrollTarget:B}=zr(e,U),{anchorEl:A,canShow:K}=Qo({showing:y}),{hide:E}=Xo({showing:y,canShow:K,handleShow:ee,handleHide:k,hideOnRouteChange:m,processOnMount:!0}),{showPortal:D,hidePortal:$,renderPortal:C}=Go(c,h,ie,"menu"),j={anchorEl:A,innerRef:h,onClickOutside(R){if(e.persistent!==!0&&y.value===!0)return E(R),(R.type==="touchstart"||R.target.classList.contains("q-dialog__backdrop"))&&ge(R),!0}},w=t.computed(()=>Ql(e.anchor||(e.cover===!0?"center middle":"bottom start"),s.lang.rtl)),z=t.computed(()=>e.cover===!0?w.value:Ql(e.self||"top start",s.lang.rtl)),O=t.computed(()=>(e.square===!0?" q-menu--square":"")+(b.value===!0?" q-menu--dark q-dark":"")),W=t.computed(()=>e.autoClose===!0?{onClick:I}:{}),L=t.computed(()=>y.value===!0&&e.persistent!==!0);t.watch(L,R=>{R===!0?(aa(Z),Yr(j)):(un(Z),Nl(j))});function X(){gn(()=>{let R=h.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 ee(R){if(o=e.noRefocus===!1?document.activeElement:null,ia(J),D(),U(),r=void 0,R!==void 0&&(e.touchPosition||e.contextMenu)){const be=Ht(R);if(be.left!==void 0){const{top:ue,left:fe}=A.value.getBoundingClientRect();r={left:be.left-fe,top:be.top-ue}}}i===void 0&&(i=t.watch(()=>s.screen.width+"|"+s.screen.height+"|"+e.self+"|"+e.anchor+"|"+s.lang.rtl,G)),e.noFocus!==!0&&document.activeElement.blur(),V(()=>{G(),e.noFocus!==!0&&X()}),F(()=>{s.platform.is.ios===!0&&(u=e.autoClose,h.value.click()),G(),D(!0),l("show",R)},e.transitionDuration)}function k(R){p(),$(),S(!0),o!==null&&(R===void 0||R.qClickOutside!==!0)&&((((R==null?void 0:R.type.indexOf("key"))===0?o.closest('[tabindex]:not([tabindex^="-"])'):void 0)||o).focus(),o=null),F(()=>{$(!0),l("hide",R)},e.transitionDuration)}function S(R){r=void 0,i!==void 0&&(i(),i=void 0),(R===!0||y.value===!0)&&(Zn(J),B(),Nl(j),un(Z)),R!==!0&&(o=null)}function U(){(A.value!==null||e.scrollTarget!==void 0)&&(x.value=Po(A.value,e.scrollTarget),q(x.value,G))}function I(R){u!==!0?(Jo(f,R),l("click",R)):u=!1}function J(R){L.value===!0&&e.noFocus!==!0&&$o(h.value,R.target)!==!0&&X()}function Z(R){e.noEscDismiss!==!0&&(l("escapeKey"),E(R))}function G(){ua({targetEl:h.value,offset:e.offset,anchorEl:A.value,anchorOrigin:w.value,selfOrigin:z.value,absoluteOffset:r,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function ie(){return t.h(t.Transition,M.value,()=>y.value===!0?t.h("div",{role:"menu",...a,ref:h,tabindex:-1,class:["q-menu q-position-engine scroll"+O.value,a.class],style:[a.style,T.value],...W.value},ke(n.default)):null)}return t.onBeforeUnmount(S),Object.assign(f,{focus:X,updatePosition:G}),C}});let Bn,Jt=0;const Se=new Array(256);for(let e=0;e<256;e++)Se[e]=(e+256).toString(16).substring(1);const Xr=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return n=>{const l=new Uint8Array(n);return e.getRandomValues(l),l}}return n=>{const l=[];for(let a=n;a>0;a--)l.push(Math.floor(Math.random()*256));return l}})(),Kl=4096;function Gn(){(Bn===void 0||Jt+16>Kl)&&(Jt=0,Bn=Xr(Kl));const e=Array.prototype.slice.call(Bn,Jt,Jt+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Se[e[0]]+Se[e[1]]+Se[e[2]]+Se[e[3]]+"-"+Se[e[4]]+Se[e[5]]+"-"+Se[e[6]]+Se[e[7]]+"-"+Se[e[8]]+Se[e[9]]+"-"+Se[e[10]]+Se[e[11]]+Se[e[12]]+Se[e[13]]+Se[e[14]]+Se[e[15]]}function Zr(e){return e??null}function Xl(e,n){return e??(n===!0?`f_${Gn()}`:null)}function Jr({getValue:e,required:n=!0}={}){if(nt.value===!0){const l=e!==void 0?t.ref(Zr(e())):t.ref(null);return n===!0&&l.value===null&&t.onMounted(()=>{l.value=`f_${Gn()}`}),e!==void 0&&t.watch(e,a=>{l.value=Xl(a,n)}),l}return e!==void 0?t.computed(()=>Xl(e(),n)):t.ref(`f_${Gn()}`)}const Zl=/^on[A-Z]/;function Gr(){const{attrs:e,vnode:n}=t.getCurrentInstance(),l={listeners:t.ref({}),attributes:t.ref({})};function a(){const o={},r={};for(const i in e)i!=="class"&&i!=="style"&&Zl.test(i)===!1&&(o[i]=e[i]);for(const i in n.props)Zl.test(i)===!0&&(r[i]=n.props[i]);l.attributes.value=o,l.listeners.value=r}return t.onBeforeUpdate(a),a(),l}const pn="_q_l_",ei="_q_pc_",ti="_q_fo_";function Ke(){}function ni({validate:e,resetValidation:n,requiresQForm:l}){const a=t.inject(ti,!1);if(a!==!1){const{props:o,proxy:r}=t.getCurrentInstance();Object.assign(r,{validate:e,resetValidation:n}),t.watch(()=>o.disable,i=>{i===!0?(typeof n=="function"&&n(),a.unbindComponent(r)):a.bindComponent(r)}),t.onMounted(()=>{o.disable!==!0&&a.bindComponent(r)}),t.onBeforeUnmount(()=>{o.disable!==!0&&a.unbindComponent(r)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Jl=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Gl=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,eo=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Gt=/^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])\)$/,en=/^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)\)$/,$n={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\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(e),hexColor:e=>Jl.test(e),hexaColor:e=>Gl.test(e),hexOrHexaColor:e=>eo.test(e),rgbColor:e=>Gt.test(e),rgbaColor:e=>en.test(e),rgbOrRgbaColor:e=>Gt.test(e)||en.test(e),hexOrRgbColor:e=>Jl.test(e)||Gt.test(e),hexaOrRgbaColor:e=>Gl.test(e)||en.test(e),anyColor:e=>eo.test(e)||Gt.test(e)||en.test(e)},li=[!0,!1,"ondemand"],oi={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>li.includes(e)}};function ai(e,n){const{props:l,proxy:a}=t.getCurrentInstance(),o=t.ref(!1),r=t.ref(null),i=t.ref(!1);ni({validate:V,resetValidation:b});let u=0,c;const f=t.computed(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),s=t.computed(()=>l.disable!==!0&&f.value===!0&&n.value===!1),h=t.computed(()=>l.error===!0||o.value===!0),y=t.computed(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:r.value);t.watch(()=>l.modelValue,()=>{i.value=!0,s.value===!0&&l.lazyRules===!1&&p()});function m(){l.lazyRules!=="ondemand"&&s.value===!0&&i.value===!0&&p()}t.watch(()=>l.reactiveRules,F=>{F===!0?c===void 0&&(c=t.watch(()=>l.rules,m,{immediate:!0,deep:!0})):c!==void 0&&(c(),c=void 0)},{immediate:!0}),t.watch(()=>l.lazyRules,m),t.watch(e,F=>{F===!0?i.value=!0:s.value===!0&&l.lazyRules!=="ondemand"&&p()});function b(){u++,n.value=!1,i.value=!1,o.value=!1,r.value=null,p.cancel()}function V(F=l.modelValue){if(l.disable===!0||f.value===!1)return!0;const M=++u,T=n.value!==!0?()=>{i.value=!0}:()=>{},x=(B,A)=>{B===!0&&T(),o.value=B,r.value=A||null,n.value=!1},q=[];for(let B=0;B<l.rules.length;B++){const A=l.rules[B];let K;if(typeof A=="function"?K=A(F,$n):typeof A=="string"&&$n[A]!==void 0&&(K=$n[A](F)),K===!1||typeof K=="string")return x(!0,K),!1;K!==!0&&K!==void 0&&q.push(K)}return q.length===0?(x(!1),!0):(n.value=!0,Promise.all(q).then(B=>{if(B===void 0||Array.isArray(B)===!1||B.length===0)return M===u&&x(!1),!0;const A=B.find(K=>K===!1||typeof K=="string");return M===u&&x(A!==void 0,A),A===void 0},B=>(M===u&&(console.error(B),x(!0)),!1)))}const p=fl(V,0);return t.onBeforeUnmount(()=>{c==null||c(),p.cancel()}),Object.assign(a,{resetValidation:b,validate:V}),Dt(a,"hasError",()=>h.value),{isDirtyModel:i,hasRules:f,hasError:h,errorMessage:y,validate:V,resetValidation:b}}function It(e){return e!=null&&(""+e).length!==0}const ri={...Pe,...oi,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},yn={...ri,maxlength:[Number,String]},vl=["update:modelValue","clear","focus","blur"];function ml({requiredForAttr:e=!0,tagProp:n,changeEvent:l=!1}={}){const{props:a,proxy:o}=t.getCurrentInstance(),r=Ie(a,o.$q),i=Jr({required:e,getValue:()=>a.for});return{requiredForAttr:e,changeEvent:l,tag:n===!0?t.computed(()=>a.tag):{value:"label"},isDark:r,editable:t.computed(()=>a.disable!==!0&&a.readonly!==!0),innerLoading:t.ref(!1),focused:t.ref(!1),hasPopupOpen:!1,splitAttrs:Gr(),targetUid:i,rootRef:t.ref(null),targetRef:t.ref(null),controlRef:t.ref(null)}}function hl(e){const{props:n,emit:l,slots:a,attrs:o,proxy:r}=t.getCurrentInstance(),{$q:i}=r;let u=null;e.hasValue===void 0&&(e.hasValue=t.computed(()=>It(n.modelValue))),e.emitValue===void 0&&(e.emitValue=L=>{l("update:modelValue",L)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:E,onFocusout:D}),Object.assign(e,{clearValue:$,onControlFocusin:E,onControlFocusout:D,focus:A}),e.computedCounter===void 0&&(e.computedCounter=t.computed(()=>{if(n.counter!==!1){const L=typeof n.modelValue=="string"||typeof n.modelValue=="number"?(""+n.modelValue).length:Array.isArray(n.modelValue)===!0?n.modelValue.length:0,X=n.maxlength!==void 0?n.maxlength:n.maxValues;return L+(X!==void 0?" / "+X:"")}}));const{isDirtyModel:c,hasRules:f,hasError:s,errorMessage:h,resetValidation:y}=ai(e.focused,e.innerLoading),m=e.floatingLabel!==void 0?t.computed(()=>n.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):t.computed(()=>n.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),b=t.computed(()=>n.bottomSlots===!0||n.hint!==void 0||f.value===!0||n.counter===!0||n.error!==null),V=t.computed(()=>n.filled===!0?"filled":n.outlined===!0?"outlined":n.borderless===!0?"borderless":n.standout?"standout":"standard"),p=t.computed(()=>`q-field row no-wrap items-start q-field--${V.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(n.rounded===!0?" q-field--rounded":"")+(n.square===!0?" q-field--square":"")+(m.value===!0?" q-field--float":"")+(M.value===!0?" q-field--labeled":"")+(n.dense===!0?" q-field--dense":"")+(n.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(s.value===!0?" q-field--error":"")+(s.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(n.hideBottomSpace!==!0&&b.value===!0?" q-field--with-bottom":"")+(n.disable===!0?" q-field--disabled":n.readonly===!0?" q-field--readonly":"")),F=t.computed(()=>"q-field__control relative-position row no-wrap"+(n.bgColor!==void 0?` bg-${n.bgColor}`:"")+(s.value===!0?" text-negative":typeof n.standout=="string"&&n.standout.length!==0&&e.focused.value===!0?` ${n.standout}`:n.color!==void 0?` text-${n.color}`:"")),M=t.computed(()=>n.labelSlot===!0||n.label!==void 0),T=t.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(n.labelColor!==void 0&&s.value!==!0?` text-${n.labelColor}`:"")),x=t.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:m.value,modelValue:n.modelValue,emitValue:e.emitValue})),q=t.computed(()=>{const L={};return e.targetUid.value&&(L.for=e.targetUid.value),n.disable===!0&&(L["aria-disabled"]="true"),L});function B(){var ee;const L=document.activeElement;let X=(ee=e.targetRef)==null?void 0:ee.value;X&&(L===null||L.id!==e.targetUid.value)&&(X.hasAttribute("tabindex")===!0||(X=X.querySelector("[tabindex]")),X!==L&&(X==null||X.focus({preventScroll:!0})))}function A(){gn(B)}function K(){Br(B);const L=document.activeElement;L!==null&&e.rootRef.value.contains(L)&&L.blur()}function E(L){u!==null&&(clearTimeout(u),u=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,l("focus",L))}function D(L,X){u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,l("blur",L)),X==null||X())})}function $(L){var X;ge(L),i.platform.is.mobile!==!0?(((X=e.targetRef)==null?void 0:X.value)||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),n.type==="file"&&(e.inputRef.value.value=null),l("update:modelValue",null),e.changeEvent===!0&&l("change",null),l("clear",n.modelValue),t.nextTick(()=>{const ee=c.value;y(),c.value=ee})}function C(L){[13,32].includes(L.keyCode)&&$(L)}function j(){const L=[];return a.prepend!==void 0&&L.push(t.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:_e},a.prepend())),L.push(t.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},w())),s.value===!0&&n.noErrorIcon===!1&&L.push(O("error",[t.h(qe,{name:i.iconSet.field.error,color:"negative"})])),n.loading===!0||e.innerLoading.value===!0?L.push(O("inner-loading-append",a.loading!==void 0?a.loading():[t.h(Bo,{color:n.color})])):n.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&L.push(O("inner-clearable-append",[t.h(qe,{class:"q-field__focusable-action",name:n.clearIcon||i.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":i.lang.label.clear,onKeyup:C,onClick:$})])),a.append!==void 0&&L.push(t.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:_e},a.append())),e.getInnerAppend!==void 0&&L.push(O("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&L.push(e.getControlChild()),L}function w(){const L=[];return n.prefix!==void 0&&n.prefix!==null&&L.push(t.h("div",{class:"q-field__prefix no-pointer-events row items-center"},n.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&L.push(e.getShadowControl()),e.getControl!==void 0?L.push(e.getControl()):a.rawControl!==void 0?L.push(a.rawControl()):a.control!==void 0&&L.push(t.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":n.autofocus===!0||void 0},a.control(x.value))),M.value===!0&&L.push(t.h("div",{class:T.value},ke(a.label,n.label))),n.suffix!==void 0&&n.suffix!==null&&L.push(t.h("div",{class:"q-field__suffix no-pointer-events row items-center"},n.suffix)),L.concat(ke(a.default))}function z(){let L,X;s.value===!0?h.value!==null?(L=[t.h("div",{role:"alert"},h.value)],X=`q--slot-error-${h.value}`):(L=ke(a.error),X="q--slot-error"):(n.hideHint!==!0||e.focused.value===!0)&&(n.hint!==void 0?(L=[t.h("div",n.hint)],X=`q--slot-hint-${n.hint}`):(L=ke(a.hint),X="q--slot-hint"));const ee=n.counter===!0||a.counter!==void 0;if(n.hideBottomSpace===!0&&ee===!1&&L===void 0)return;const k=t.h("div",{key:X,class:"q-field__messages col"},L);return t.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(n.hideBottomSpace!==!0?"animated":"stale"),onClick:_e},[n.hideBottomSpace===!0?k:t.h(t.Transition,{name:"q-transition--field-message"},()=>k),ee===!0?t.h("div",{class:"q-field__counter"},a.counter!==void 0?a.counter():e.computedCounter.value):null])}function O(L,X){return X===null?null:t.h("div",{key:L,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},X)}let W=!1;return t.onDeactivated(()=>{W=!0}),t.onActivated(()=>{W===!0&&n.autofocus===!0&&r.focus()}),n.autofocus===!0&&t.onMounted(()=>{r.focus()}),t.onBeforeUnmount(()=>{u!==null&&clearTimeout(u)}),Object.assign(r,{focus:A,blur:K}),function(){const X=e.getControl===void 0&&a.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":n.autofocus===!0||void 0,...q.value}:q.value;return t.h(e.tag.value,{ref:e.rootRef,class:[p.value,o.class],style:o.style,...X},[a.before!==void 0?t.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:_e},a.before()):null,t.h("div",{class:"q-field__inner relative-position col self-stretch"},[t.h("div",{ref:e.controlRef,class:F.value,tabindex:-1,...e.controlEvents},j()),b.value===!0?z():null]),a.after!==void 0?t.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:_e},a.after()):null])}}const ii=ae({name:"QField",inheritAttrs:!1,props:{...yn,tag:{type:String,default:"label"}},emits:vl,setup(){return hl(ml({tagProp:!0}))}}),ui={xs:8,sm:10,md:14,lg:20,xl:24},si=ae({name:"QChip",props:{...Pe,...Nt,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(e,{slots:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=Ie(e,a),r=jt(e,ui),i=t.computed(()=>e.selected===!0||e.icon!==void 0),u=t.computed(()=>e.selected===!0?e.iconSelected||a.iconSet.chip.selected:e.icon),c=t.computed(()=>e.iconRemove||a.iconSet.chip.remove),f=t.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),s=t.computed(()=>{const p=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(p?` text-${p} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(f.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(o.value===!0?" q-chip--dark q-dark":"")}),h=t.computed(()=>{const p=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},F={...p,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||a.lang.label.remove};return{chip:p,remove:F}});function y(p){p.keyCode===13&&m(p)}function m(p){e.disable||(l("update:selected",!e.selected),l("click",p))}function b(p){(p.keyCode===void 0||p.keyCode===13)&&(ge(p),e.disable===!1&&(l("update:modelValue",!1),l("remove")))}function V(){const p=[];f.value===!0&&p.push(t.h("div",{class:"q-focus-helper"})),i.value===!0&&p.push(t.h(qe,{class:"q-chip__icon q-chip__icon--left",name:u.value}));const F=e.label!==void 0?[t.h("div",{class:"ellipsis"},[e.label])]:void 0;return p.push(t.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},So(n.default,F))),e.iconRight&&p.push(t.h(qe,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&p.push(t.h(qe,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:c.value,...h.value.remove,onClick:b,onKeyup:b})),p}return()=>{if(e.modelValue===!1)return;const p={class:s.value,style:r.value};return f.value===!0&&Object.assign(p,h.value.chip,{onClick:m,onKeyup:y}),Va("div",p,V(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Oo,e.ripple]])}}}),el=ae({name:"QItem",props:{...Pe,...Eo,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(e,{slots:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=Ie(e,a),{hasLink:r,linkAttrs:i,linkClass:u,linkTag:c,navigateOnClick:f}=il(),s=t.ref(null),h=t.ref(null),y=t.computed(()=>e.clickable===!0||r.value===!0||e.tag==="label"),m=t.computed(()=>e.disable!==!0&&y.value===!0),b=t.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(o.value===!0?" q-item--dark":"")+(r.value===!0&&e.active===null?u.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(m.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),V=t.computed(()=>e.insetLevel===void 0?null:{["padding"+(a.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function p(T){m.value===!0&&(h.value!==null&&T.qAvoidFocus!==!0&&(T.qKeyEvent!==!0&&document.activeElement===s.value?h.value.focus():document.activeElement===h.value&&s.value.focus()),f(T))}function F(T){if(m.value===!0&&tt(T,[13,32])===!0){ge(T),T.qKeyEvent=!0;const x=new MouseEvent("click",T);x.qKeyEvent=!0,s.value.dispatchEvent(x)}l("keyup",T)}function M(){const T=wo(n.default,[]);return m.value===!0&&T.unshift(t.h("div",{class:"q-focus-helper",tabindex:-1,ref:h})),T}return()=>{const T={ref:s,class:b.value,style:V.value,role:"listitem",onClick:p,onKeyup:F};return m.value===!0?(T.tabindex=e.tabindex||"0",Object.assign(T,i.value)):y.value===!0&&(T["aria-disabled"]="true"),t.h(c.value,T,M())}}}),tl=ae({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:n}){const l=t.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>t.h("div",{class:l.value},ke(n.default))}}),ci=ae({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:n}){const l=t.computed(()=>parseInt(e.lines,10)),a=t.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(l.value===1?" ellipsis":"")),o=t.computed(()=>e.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>t.h("div",{style:o.value,class:a.value},ke(n.default))}});function di(e,n,l){function a(){}return t.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:a,addToHistory(){}}}let At=0,On,An,Rt,Ln=!1,to,no,lo,dt=null;function fi(e){vi(e)&&ge(e)}function vi(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const n=Ka(e),l=e.shiftKey&&!e.deltaX,a=!l&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),o=l||a?e.deltaY:e.deltaX;for(let r=0;r<n.length;r++){const i=n[r];if(xr(i,a))return a?o<0&&i.scrollTop===0?!0:o>0&&i.scrollTop+i.clientHeight===i.scrollHeight:o<0&&i.scrollLeft===0?!0:o>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function oo(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function tn(e){Ln!==!0&&(Ln=!0,requestAnimationFrame(()=>{Ln=!1;const{height:n}=e.target,{clientHeight:l,scrollTop:a}=document.scrollingElement;(Rt===void 0||n!==window.innerHeight)&&(Rt=l-n,document.scrollingElement.scrollTop=a),a>Rt&&(document.scrollingElement.scrollTop-=Math.ceil((a-Rt)/8))}))}function ao(e){const n=document.body,l=window.visualViewport!==void 0;if(e==="add"){const{overflowY:a,overflowX:o}=window.getComputedStyle(n);On=cl(window),An=sl(window),to=n.style.left,no=n.style.top,lo=window.location.href,n.style.left=`-${On}px`,n.style.top=`-${An}px`,o!=="hidden"&&(o==="scroll"||n.scrollWidth>window.innerWidth)&&n.classList.add("q-body--force-scrollbar-x"),a!=="hidden"&&(a==="scroll"||n.scrollHeight>window.innerHeight)&&n.classList.add("q-body--force-scrollbar-y"),n.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,ye.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",tn,pe.passiveCapture),window.visualViewport.addEventListener("scroll",tn,pe.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",oo,pe.passiveCapture))}ye.is.desktop===!0&&ye.is.mac===!0&&window[`${e}EventListener`]("wheel",fi,pe.notPassive),e==="remove"&&(ye.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",tn,pe.passiveCapture),window.visualViewport.removeEventListener("scroll",tn,pe.passiveCapture)):window.removeEventListener("scroll",oo,pe.passiveCapture)),n.classList.remove("q-body--prevent-scroll"),n.classList.remove("q-body--force-scrollbar-x"),n.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,n.style.left=to,n.style.top=no,window.location.href===lo&&window.scrollTo(On,An),Rt=void 0)}function mi(e){let n="add";if(e===!0){if(At++,dt!==null){clearTimeout(dt),dt=null;return}if(At>1)return}else{if(At===0||(At--,At>0))return;if(n="remove",ye.is.ios===!0&&ye.is.nativeMobile===!0){dt!==null&&clearTimeout(dt),dt=setTimeout(()=>{ao(n),dt=null},100);return}}ao(n)}function hi(){let e;return{preventBodyScroll(n){n!==e&&(e!==void 0||n===!0)&&(e=n,mi(n))}}}let nn=0;const gi={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"},ro={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},sa=ae({name:"QDialog",inheritAttrs:!1,props:{...Wo,...ea,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:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...Ko,"shake","click","escapeKey"],setup(e,{slots:n,emit:l,attrs:a}){const o=t.getCurrentInstance(),r=t.ref(null),i=t.ref(!1),u=t.ref(!1);let c=null,f=null,s,h;const y=t.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:m}=hi(),{registerTimeout:b}=la(),{registerTick:V,removeTick:p}=na(),{transitionProps:F,transitionStyle:M}=ta(e,()=>ro[e.position][0],()=>ro[e.position][1]),T=t.computed(()=>M.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:x,hidePortal:q,portalIsAccessible:B,renderPortal:A}=Go(o,r,U,"dialog"),{hide:K}=Xo({showing:i,hideOnRouteChange:y,handleShow:j,handleHide:w,processOnMount:!0});di(i);const E=t.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${gi[e.position]}`+(u.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),D=t.computed(()=>i.value===!0&&e.seamless!==!0),$=t.computed(()=>e.autoClose===!0?{onClick:ee}:{}),C=t.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${D.value===!0?"modal":"seamless"}`,a.class]);t.watch(()=>e.maximized,I=>{i.value===!0&&X(I)}),t.watch(D,I=>{m(I),I===!0?(ia(S),aa(W)):(Zn(S),un(W))});function j(I){var J;f=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,X(e.maximized),x(),u.value=!0,e.noFocus!==!0?((J=document.activeElement)==null||J.blur(),V(z)):p(),b(()=>{if(o.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:Z,bottom:G}=document.activeElement.getBoundingClientRect(),{innerHeight:ie}=window,R=window.visualViewport!==void 0?window.visualViewport.height:ie;Z>0&&G>R/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-R,G>=ie?1/0:Math.ceil(document.scrollingElement.scrollTop+G-R/2))),document.activeElement.scrollIntoView()}h=!0,r.value.click(),h=!1}x(!0),u.value=!1,l("show",I)},e.transitionDuration)}function w(I){p(),L(!0),u.value=!0,q(),f!==null&&((((I==null?void 0:I.type.indexOf("key"))===0?f.closest('[tabindex]:not([tabindex^="-"])'):void 0)||f).focus(),f=null),b(()=>{q(!0),u.value=!1,l("hide",I)},e.transitionDuration)}function z(I){gn(()=>{let J=r.value;if(J!==null){if(I!==void 0){const Z=J.querySelector(I);if(Z!==null){Z.focus({preventScroll:!0});return}}J.contains(document.activeElement)!==!0&&(J=J.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||J.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||J.querySelector("[autofocus], [data-autofocus]")||J,J.focus({preventScroll:!0}))}})}function O(I){I&&typeof I.focus=="function"?I.focus({preventScroll:!0}):z(),l("shake");const J=r.value;J!==null&&(J.classList.remove("q-animate--scale"),J.classList.add("q-animate--scale"),c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,r.value!==null&&(J.classList.remove("q-animate--scale"),z())},170))}function W(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&O():(l("escapeKey"),K()))}function L(I){c!==null&&(clearTimeout(c),c=null),(I===!0||i.value===!0)&&(X(!1),e.seamless!==!0&&(m(!1),Zn(S),un(W))),I!==!0&&(f=null)}function X(I){I===!0?s!==!0&&(nn<1&&document.body.classList.add("q-body--dialog"),nn++,s=!0):s===!0&&(nn<2&&document.body.classList.remove("q-body--dialog"),nn--,s=!1)}function ee(I){h!==!0&&(K(I),l("click",I))}function k(I){e.persistent!==!0&&e.noBackdropDismiss!==!0?K(I):e.noShake!==!0&&O()}function S(I){e.allowFocusOutside!==!0&&B.value===!0&&$o(r.value,I.target)!==!0&&z('[tabindex]:not([tabindex="-1"])')}Object.assign(o.proxy,{focus:z,shake:O,__updateRefocusTarget(I){f=I||null}}),t.onBeforeUnmount(L);function U(){return t.h("div",{role:"dialog","aria-modal":D.value===!0?"true":"false",...a,class:C.value},[t.h(t.Transition,{name:"q-transition--fade",appear:!0},()=>D.value===!0?t.h("div",{class:"q-dialog__backdrop fixed-full",style:T.value,"aria-hidden":"true",tabindex:-1,onClick:k}):null),t.h(t.Transition,F.value,()=>i.value===!0?t.h("div",{ref:r,class:E.value,style:M.value,tabindex:-1,...$.value},ke(n.default)):null)])}return A}});let dn=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const n=document.createElement("div");Object.assign(n.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(n),e.scrollLeft=-1e3,dn=e.scrollLeft>=0,e.remove()}const Oe=1e3,bi=["start","center","end","start-force","center-force","end-force"],ca=Array.prototype.filter,pi=window.getComputedStyle(document.body).overflowAnchor===void 0?vn:function(e,n){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const l=e.children||[];ca.call(l,o=>o.dataset&&o.dataset.qVsAnchor!==void 0).forEach(o=>{delete o.dataset.qVsAnchor});const a=l[n];a!=null&&a.dataset&&(a.dataset.qVsAnchor="")}))};function Mt(e,n){return e+n}function Rn(e,n,l,a,o,r,i,u){const c=e===window?document.scrollingElement||document.documentElement:e,f=o===!0?"offsetWidth":"offsetHeight",s={scrollStart:0,scrollViewSize:-i-u,scrollMaxSize:0,offsetStart:-i,offsetEnd:-u};if(o===!0?(e===window?(s.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,s.scrollViewSize+=document.documentElement.clientWidth):(s.scrollStart=c.scrollLeft,s.scrollViewSize+=c.clientWidth),s.scrollMaxSize=c.scrollWidth,r===!0&&(s.scrollStart=(dn===!0?s.scrollMaxSize-s.scrollViewSize:0)-s.scrollStart)):(e===window?(s.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,s.scrollViewSize+=document.documentElement.clientHeight):(s.scrollStart=c.scrollTop,s.scrollViewSize+=c.clientHeight),s.scrollMaxSize=c.scrollHeight),l!==null)for(let h=l.previousElementSibling;h!==null;h=h.previousElementSibling)h.classList.contains("q-virtual-scroll--skip")===!1&&(s.offsetStart+=h[f]);if(a!==null)for(let h=a.nextElementSibling;h!==null;h=h.nextElementSibling)h.classList.contains("q-virtual-scroll--skip")===!1&&(s.offsetEnd+=h[f]);if(n!==e){const h=c.getBoundingClientRect(),y=n.getBoundingClientRect();o===!0?(s.offsetStart+=y.left-h.left,s.offsetEnd-=y.width):(s.offsetStart+=y.top-h.top,s.offsetEnd-=y.height),e!==window&&(s.offsetStart+=s.scrollStart),s.offsetEnd+=s.scrollMaxSize-s.offsetStart}return s}function io(e,n,l,a){n==="end"&&(n=(e===window?document.body:e)[l===!0?"scrollWidth":"scrollHeight"]),e===window?l===!0?(a===!0&&(n=(dn===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-n),window.scrollTo(n,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,n):l===!0?(a===!0&&(n=(dn===!0?e.scrollWidth-e.offsetWidth:0)-n),e.scrollLeft=n):e.scrollTop=n}function Lt(e,n,l,a){if(l>=a)return 0;const o=n.length,r=Math.floor(l/Oe),i=Math.floor((a-1)/Oe)+1;let u=e.slice(r,i).reduce(Mt,0);return l%Oe!==0&&(u-=n.slice(r*Oe,l).reduce(Mt,0)),a%Oe!==0&&a!==o&&(u-=n.slice(a,i*Oe).reduce(Mt,0)),u}const yi={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]},uo={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...yi};function wi({virtualScrollLength:e,getVirtualScrollTarget:n,getVirtualScrollEl:l,virtualScrollItemSizeComputed:a}){const o=t.getCurrentInstance(),{props:r,emit:i,proxy:u}=o,{$q:c}=u;let f,s,h,y=[],m;const b=t.ref(0),V=t.ref(0),p=t.ref({}),F=t.ref(null),M=t.ref(null),T=t.ref(null),x=t.ref({from:0,to:0}),q=t.computed(()=>r.tableColspan!==void 0?r.tableColspan:100);a===void 0&&(a=t.computed(()=>r.virtualScrollItemSize));const B=t.computed(()=>a.value+";"+r.virtualScrollHorizontal),A=t.computed(()=>B.value+";"+r.virtualScrollSliceRatioBefore+";"+r.virtualScrollSliceRatioAfter);t.watch(A,()=>{O()}),t.watch(B,K);function K(){z(s,!0)}function E(k){z(k===void 0?s:k)}function D(k,S){const U=n();if(U==null||U.nodeType===8)return;const I=Rn(U,l(),F.value,M.value,r.virtualScrollHorizontal,c.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd);h!==I.scrollViewSize&&O(I.scrollViewSize),C(U,I,Math.min(e.value-1,Math.max(0,parseInt(k,10)||0)),0,bi.indexOf(S)!==-1?S:s!==-1&&k>s?"end":"start")}function $(){const k=n();if(k==null||k.nodeType===8)return;const S=Rn(k,l(),F.value,M.value,r.virtualScrollHorizontal,c.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd),U=e.value-1,I=S.scrollMaxSize-S.offsetStart-S.offsetEnd-V.value;if(f===S.scrollStart)return;if(S.scrollMaxSize<=0){C(k,S,0,0);return}h!==S.scrollViewSize&&O(S.scrollViewSize),j(x.value.from);const J=Math.floor(S.scrollMaxSize-Math.max(S.scrollViewSize,S.offsetEnd)-Math.min(m[U],S.scrollViewSize/2));if(J>0&&Math.ceil(S.scrollStart)>=J){C(k,S,U,S.scrollMaxSize-S.offsetEnd-y.reduce(Mt,0));return}let Z=0,G=S.scrollStart-S.offsetStart,ie=G;if(G<=I&&G+S.scrollViewSize>=b.value)G-=b.value,Z=x.value.from,ie=G;else for(let R=0;G>=y[R]&&Z<U;R++)G-=y[R],Z+=Oe;for(;G>0&&Z<U;)G-=m[Z],G>-S.scrollViewSize?(Z++,ie=G):ie=m[Z]+G;C(k,S,Z,ie)}function C(k,S,U,I,J){const Z=typeof J=="string"&&J.indexOf("-force")!==-1,G=Z===!0?J.replace("-force",""):J,ie=G!==void 0?G:"start";let R=Math.max(0,U-p.value[ie]),be=R+p.value.total;be>e.value&&(be=e.value,R=Math.max(0,be-p.value.total)),f=S.scrollStart;const ue=R!==x.value.from||be!==x.value.to;if(ue===!1&&G===void 0){L(U);return}const{activeElement:fe}=document,xe=T.value;ue===!0&&xe!==null&&xe!==fe&&xe.contains(fe)===!0&&(xe.addEventListener("focusout",w),setTimeout(()=>{xe==null||xe.removeEventListener("focusout",w)})),pi(xe,U-R);const Ne=G!==void 0?m.slice(R,U).reduce(Mt,0):0;if(ue===!0){const Le=be>=x.value.from&&R<=x.value.to?x.value.to:be;x.value={from:R,to:Le},b.value=Lt(y,m,0,R),V.value=Lt(y,m,be,e.value),requestAnimationFrame(()=>{x.value.to!==be&&f===S.scrollStart&&(x.value={from:x.value.from,to:be},V.value=Lt(y,m,be,e.value))})}requestAnimationFrame(()=>{if(f!==S.scrollStart)return;ue===!0&&j(R);const Le=m.slice(R,U).reduce(Mt,0),Ve=Le+S.offsetStart+b.value,we=Ve+m[U];let lt=Ve+I;if(G!==void 0){const zt=Le-Ne,ot=S.scrollStart+zt;lt=Z!==!0&&ot<Ve&&we<ot+S.scrollViewSize?ot:G==="end"?we-S.scrollViewSize:Ve-(G==="start"?0:Math.round((S.scrollViewSize-m[U])/2))}f=lt,io(k,lt,r.virtualScrollHorizontal,c.lang.rtl),L(U)})}function j(k){const S=T.value;if(S){const U=ca.call(S.children,R=>R.classList&&R.classList.contains("q-virtual-scroll--skip")===!1),I=U.length,J=r.virtualScrollHorizontal===!0?R=>R.getBoundingClientRect().width:R=>R.offsetHeight;let Z=k,G,ie;for(let R=0;R<I;){for(G=J(U[R]),R++;R<I&&U[R].classList.contains("q-virtual-scroll--with-prev")===!0;)G+=J(U[R]),R++;ie=G-m[Z],ie!==0&&(m[Z]+=ie,y[Math.floor(Z/Oe)]+=ie),Z++}}}function w(){var k;(k=T.value)==null||k.focus()}function z(k,S){const U=1*a.value;(S===!0||Array.isArray(m)===!1)&&(m=[]);const I=m.length;m.length=e.value;for(let Z=e.value-1;Z>=I;Z--)m[Z]=U;const J=Math.floor((e.value-1)/Oe);y=[];for(let Z=0;Z<=J;Z++){let G=0;const ie=Math.min((Z+1)*Oe,e.value);for(let R=Z*Oe;R<ie;R++)G+=m[R];y.push(G)}s=-1,f=void 0,b.value=Lt(y,m,0,x.value.from),V.value=Lt(y,m,x.value.to,e.value),k>=0?(j(x.value.from),t.nextTick(()=>{D(k)})):X()}function O(k){if(k===void 0&&typeof window<"u"){const G=n();G!=null&&G.nodeType!==8&&(k=Rn(G,l(),F.value,M.value,r.virtualScrollHorizontal,c.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd).scrollViewSize)}h=k;const S=parseFloat(r.virtualScrollSliceRatioBefore)||0,U=parseFloat(r.virtualScrollSliceRatioAfter)||0,I=1+S+U,J=k===void 0||k<=0?1:Math.ceil(k/a.value),Z=Math.max(1,J,Math.ceil((r.virtualScrollSliceSize>0?r.virtualScrollSliceSize:10)/I));p.value={total:Math.ceil(Z*I),start:Math.ceil(Z*S),center:Math.ceil(Z*(.5+S)),end:Math.ceil(Z*(1+S)),view:J}}function W(k,S){const U=r.virtualScrollHorizontal===!0?"width":"height",I={["--q-virtual-scroll-item-"+U]:a.value+"px"};return[k==="tbody"?t.h(k,{class:"q-virtual-scroll__padding",key:"before",ref:F},[t.h("tr",[t.h("td",{style:{[U]:`${b.value}px`,...I},colspan:q.value})])]):t.h(k,{class:"q-virtual-scroll__padding",key:"before",ref:F,style:{[U]:`${b.value}px`,...I}}),t.h(k,{class:"q-virtual-scroll__content",key:"content",ref:T,tabindex:-1},S.flat()),k==="tbody"?t.h(k,{class:"q-virtual-scroll__padding",key:"after",ref:M},[t.h("tr",[t.h("td",{style:{[U]:`${V.value}px`,...I},colspan:q.value})])]):t.h(k,{class:"q-virtual-scroll__padding",key:"after",ref:M,style:{[U]:`${V.value}px`,...I}})]}function L(k){s!==k&&(r.onVirtualScroll!==void 0&&i("virtualScroll",{index:k,from:x.value.from,to:x.value.to-1,direction:k<s?"decrease":"increase",ref:u}),s=k)}O();const X=fl($,c.platform.is.ios===!0?120:35);t.onBeforeMount(()=>{O()});let ee=!1;return t.onDeactivated(()=>{ee=!0}),t.onActivated(()=>{if(ee!==!0)return;const k=n();f!==void 0&&k!==void 0&&k!==null&&k.nodeType!==8?io(k,f,r.virtualScrollHorizontal,c.lang.rtl):D(s)}),t.onBeforeUnmount(()=>{X.cancel()}),Object.assign(u,{scrollTo:D,reset:K,refresh:E}),{virtualScrollSliceRange:x,virtualScrollSliceSizeComputed:p,setVirtualScrollSize:O,onVirtualScrollEvt:X,localResetVirtualScroll:z,padVirtualScroll:W,scrollTo:D,reset:K,refresh:E}}const Si=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,ki=/[\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,xi=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Ci=/[a-z0-9_ -]$/i;function da(e){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,e(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(ye.is.firefox===!0?Ci.test(l.data)===!1:Si.test(l.data)===!0||ki.test(l.data)===!0||xi.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}function Ge(e,n){if(e===n)return!0;if(e!==null&&n!==null&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;let l,a;if(e.constructor===Array){if(l=e.length,l!==n.length)return!1;for(a=l;a--!==0;)if(Ge(e[a],n[a])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==n.size)return!1;let r=e.entries();for(a=r.next();a.done!==!0;){if(n.has(a.value[0])!==!0)return!1;a=r.next()}for(r=e.entries(),a=r.next();a.done!==!0;){if(Ge(a.value[1],n.get(a.value[0]))!==!0)return!1;a=r.next()}return!0}if(e.constructor===Set){if(e.size!==n.size)return!1;const r=e.entries();for(a=r.next();a.done!==!0;){if(n.has(a.value[0])!==!0)return!1;a=r.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(l=e.length,l!==n.length)return!1;for(a=l;a--!==0;)if(e[a]!==n[a])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();const o=Object.keys(e).filter(r=>e[r]!==void 0);if(l=o.length,l!==Object.keys(n).filter(r=>n[r]!==void 0).length)return!1;for(a=l;a--!==0;){const r=o[a];if(Ge(e[r],n[r])!==!0)return!1}return!0}return e!==e&&n!==n}function _i(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}const so=e=>["add","add-unique","toggle"].includes(e),qi=".*+?^${}()|[]\\",Mi=Object.keys(yn);function Fn(e,n){if(typeof e=="function")return e;const l=e!==void 0?e:n;return a=>a!==null&&typeof a=="object"&&l in a?a[l]:a}const fa=ae({name:"QSelect",inheritAttrs:!1,props:{...uo,...hn,...yn,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:so},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:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:uo.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...vl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:n,emit:l}){const{proxy:a}=t.getCurrentInstance(),{$q:o}=a,r=t.ref(!1),i=t.ref(!1),u=t.ref(-1),c=t.ref(""),f=t.ref(!1),s=t.ref(!1);let h=null,y=null,m,b,V,p=null,F,M,T,x;const q=t.ref(null),B=t.ref(null),A=t.ref(null),K=t.ref(null),E=t.ref(null),D=Lo(e),$=da(yt),C=t.computed(()=>Array.isArray(e.options)?e.options.length:0),j=t.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:w,virtualScrollSliceSizeComputed:z,localResetVirtualScroll:O,padVirtualScroll:W,onVirtualScrollEvt:L,scrollTo:X,setVirtualScrollSize:ee}=wi({virtualScrollLength:C,getVirtualScrollTarget:pt,getVirtualScrollEl:Bt,virtualScrollItemSizeComputed:j}),k=ml(),S=t.computed(()=>{const v=e.mapOptions===!0&&e.multiple!==!0,P=e.modelValue!==void 0&&(e.modelValue!==null||v===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const Y=e.mapOptions===!0&&m!==void 0?m:[],le=P.map(se=>Ut(se,Y));return e.modelValue===null&&v===!0?le.filter(se=>se!==null):le}return P}),U=t.computed(()=>{const v={};return Mi.forEach(P=>{const Y=e[P];Y!==void 0&&(v[P]=Y)}),v}),I=t.computed(()=>e.optionsDark===null?k.isDark.value:e.optionsDark),J=t.computed(()=>It(S.value)),Z=t.computed(()=>{let v="q-field__input q-placeholder col";return e.hideSelected===!0||S.value.length===0?[v,e.inputClass]:(v+=" q-field__input--padding",e.inputClass===void 0?v:[v,e.inputClass])}),G=t.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),ie=t.computed(()=>C.value===0),R=t.computed(()=>S.value.map(v=>Ce.value(v)).join(", ")),be=t.computed(()=>e.displayValue!==void 0?e.displayValue:R.value),ue=t.computed(()=>e.optionsHtml===!0?()=>!0:v=>(v==null?void 0:v.html)===!0),fe=t.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||S.value.some(ue.value))),xe=t.computed(()=>k.focused.value===!0?e.tabindex:-1),Ne=t.computed(()=>{const v={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly===!0?"true":"false","aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":r.value===!0?"true":"false","aria-controls":`${k.targetUid.value}_lb`};return u.value>=0&&(v["aria-activedescendant"]=`${k.targetUid.value}_${u.value}`),v}),Le=t.computed(()=>({id:`${k.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),Ve=t.computed(()=>S.value.map((v,P)=>({index:P,opt:v,html:ue.value(v),selected:!0,removeAtIndex:Sn,toggleOption:$e,tabindex:xe.value}))),we=t.computed(()=>{if(C.value===0)return[];const{from:v,to:P}=w.value;return e.options.slice(v,P).map((Y,le)=>{const se=Re.value(Y)===!0,ve=ut(Y)===!0,ce=v+le,me={clickable:!0,active:ve,activeClass:ot.value,manualFocus:!0,focused:!1,disable:se,tabindex:-1,dense:e.optionsDense,dark:I.value,role:"option","aria-selected":ve===!0?"true":"false",id:`${k.targetUid.value}_${ce}`,onClick:()=>{$e(Y)}};return se!==!0&&(u.value===ce&&(me.focused=!0),o.platform.is.desktop===!0&&(me.onMousemove=()=>{r.value===!0&&je(ce)})),{index:ce,opt:Y,html:ue.value(Y),label:Ce.value(Y),selected:me.active,focused:me.focused,toggleOption:$e,setOptionIndex:je,itemProps:me}})}),lt=t.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:o.iconSet.arrow.dropdown),zt=t.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),ot=t.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),Ee=t.computed(()=>Fn(e.optionValue,"value")),Ce=t.computed(()=>Fn(e.optionLabel,"label")),Re=t.computed(()=>Fn(e.optionDisable,"disable")),at=t.computed(()=>S.value.map(Ee.value)),wn=t.computed(()=>{const v={onInput:yt,onChange:$,onKeydown:Ye,onKeyup:Kt,onKeypress:Fe,onFocus:Qt,onClick(P){b===!0&&De(P)}};return v.onCompositionstart=v.onCompositionupdate=v.onCompositionend=$,v});t.watch(S,v=>{m=v,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&k.innerLoading.value!==!0&&(i.value!==!0&&r.value!==!0||J.value!==!0)&&(V!==!0&&Te(),(i.value===!0||r.value===!0)&&He(""))},{immediate:!0}),t.watch(()=>e.fillInput,Te),t.watch(r,_n),t.watch(C,qa);function Yt(v){return e.emitValue===!0?Ee.value(v):v}function rt(v){if(v!==-1&&v<S.value.length)if(e.multiple===!0){const P=e.modelValue.slice();l("remove",{index:v,value:P.splice(v,1)[0]}),l("update:modelValue",P)}else l("update:modelValue",null)}function Sn(v){rt(v),k.focus()}function Tt(v,P){const Y=Yt(v);if(e.multiple!==!0){e.fillInput===!0&&ct(Ce.value(v),!0,!0),l("update:modelValue",Y);return}if(S.value.length===0){l("add",{index:0,value:Y}),l("update:modelValue",e.multiple===!0?[Y]:Y);return}if(P===!0&&ut(v)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const le=e.modelValue.slice();l("add",{index:le.length,value:Y}),le.push(Y),l("update:modelValue",le)}function $e(v,P){var ve;if(k.editable.value!==!0||v===void 0||Re.value(v)===!0)return;const Y=Ee.value(v);if(e.multiple!==!0){P!==!0&&(ct(e.fillInput===!0?Ce.value(v):"",!0,!0),oe()),(ve=B.value)==null||ve.focus(),(S.value.length===0||Ge(Ee.value(S.value[0]),Y)!==!0)&&l("update:modelValue",e.emitValue===!0?Y:v);return}if((b!==!0||f.value===!0)&&k.focus(),Qt(),S.value.length===0){const ce=e.emitValue===!0?Y:v;l("add",{index:0,value:ce}),l("update:modelValue",e.multiple===!0?[ce]:ce);return}const le=e.modelValue.slice(),se=at.value.findIndex(ce=>Ge(ce,Y));if(se!==-1)l("remove",{index:se,value:le.splice(se,1)[0]});else{if(e.maxValues!==void 0&&le.length>=e.maxValues)return;const ce=e.emitValue===!0?Y:v;l("add",{index:le.length,value:ce}),le.push(ce)}l("update:modelValue",le)}function je(v){if(o.platform.is.desktop!==!0)return;const P=v!==-1&&v<C.value?v:-1;u.value!==P&&(u.value=P)}function it(v=1,P){if(r.value===!0){let Y=u.value;do Y=Ll(Y+v,-1,C.value-1);while(Y!==-1&&Y!==u.value&&Re.value(e.options[Y])===!0);u.value!==Y&&(je(Y),X(Y),P!==!0&&e.useInput===!0&&e.fillInput===!0&&st(Y>=0?Ce.value(e.options[Y]):F,!0))}}function Ut(v,P){const Y=le=>Ge(Ee.value(le),v);return e.options.find(Y)||P.find(Y)||v}function ut(v){const P=Ee.value(v);return at.value.find(Y=>Ge(Y,P))!==void 0}function Qt(v){e.useInput===!0&&B.value!==null&&(v===void 0||B.value===v.target&&v.target.value===R.value)&&B.value.select()}function Wt(v){tt(v,27)===!0&&r.value===!0&&(De(v),oe(),Te()),l("keyup",v)}function Kt(v){const{value:P}=v.target;if(v.keyCode!==void 0){Wt(v);return}if(v.target.value="",h!==null&&(clearTimeout(h),h=null),y!==null&&(clearTimeout(y),y=null),Te(),typeof P=="string"&&P.length!==0){const Y=P.toLocaleLowerCase(),le=ve=>{const ce=e.options.find(me=>String(ve.value(me)).toLocaleLowerCase()===Y);return ce===void 0?!1:(S.value.indexOf(ce)===-1?$e(ce):oe(),!0)},se=ve=>{le(Ee)!==!0&&ve!==!0&&le(Ce)!==!0&&He(P,!0,()=>se(!0))};se()}else k.clearValue(v)}function Fe(v){l("keypress",v)}function Ye(v){if(l("keydown",v),ul(v)===!0)return;const P=c.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),Y=v.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(u.value!==-1||P===!0);if(v.keyCode===27){_e(v);return}if(v.keyCode===9&&Y===!1){Q();return}if(v.target===void 0||v.target.id!==k.targetUid.value||k.editable.value!==!0)return;if(v.keyCode===40&&k.innerLoading.value!==!0&&r.value===!1){ge(v),te();return}if(v.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&c.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?rt(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&l("update:modelValue",null);return}(v.keyCode===35||v.keyCode===36)&&(typeof c.value!="string"||c.value.length===0)&&(ge(v),u.value=-1,it(v.keyCode===36?1:-1,e.multiple)),(v.keyCode===33||v.keyCode===34)&&z.value!==void 0&&(ge(v),u.value=Math.max(-1,Math.min(C.value,u.value+(v.keyCode===33?-1:1)*z.value.view)),it(v.keyCode===33?1:-1,e.multiple)),(v.keyCode===38||v.keyCode===40)&&(ge(v),it(v.keyCode===38?-1:1,e.multiple));const le=C.value;if((T===void 0||x<Date.now())&&(T=""),le>0&&e.useInput!==!0&&v.key!==void 0&&v.key.length===1&&v.altKey===!1&&v.ctrlKey===!1&&v.metaKey===!1&&(v.keyCode!==32||T.length!==0)){r.value!==!0&&te(v);const se=v.key.toLocaleLowerCase(),ve=T.length===1&&T[0]===se;x=Date.now()+1500,ve===!1&&(ge(v),T+=se);const ce=new RegExp("^"+T.split("").map(wt=>qi.indexOf(wt)!==-1?"\\"+wt:wt).join(".*"),"i");let me=u.value;if(ve===!0||me<0||ce.test(Ce.value(e.options[me]))!==!0)do me=Ll(me+1,-1,le-1);while(me!==u.value&&(Re.value(e.options[me])===!0||ce.test(Ce.value(e.options[me]))!==!0));u.value!==me&&t.nextTick(()=>{je(me),X(me),me>=0&&e.useInput===!0&&e.fillInput===!0&&st(Ce.value(e.options[me]),!0)});return}if(!(v.keyCode!==13&&(v.keyCode!==32||e.useInput===!0||T!=="")&&(v.keyCode!==9||Y===!1))){if(v.keyCode!==9&&ge(v),u.value!==-1&&u.value<le){$e(e.options[u.value]);return}if(P===!0){const se=(ve,ce)=>{var wt;if(ce){if(so(ce)!==!0)return}else ce=e.newValueMode;if(ct("",e.multiple!==!0,!0),ve==null)return;(ce==="toggle"?$e:Tt)(ve,ce==="add-unique"),e.multiple!==!0&&((wt=B.value)==null||wt.focus(),oe())};if(e.onNewValue!==void 0?l("newValue",c.value,se):se(c.value),e.multiple!==!0)return}r.value===!0?Q():k.innerLoading.value!==!0&&te()}}function Bt(){return b===!0?E.value:A.value!==null&&A.value.contentEl!==null?A.value.contentEl:void 0}function pt(){return Bt()}function Xt(){return e.hideSelected===!0?[]:n["selected-item"]!==void 0?Ve.value.map(v=>n["selected-item"](v)).slice():n.selected!==void 0?[].concat(n.selected()):e.useChips===!0?Ve.value.map((v,P)=>t.h(si,{key:"option-"+P,removable:k.editable.value===!0&&Re.value(v.opt)!==!0,dense:!0,textColor:e.color,tabindex:xe.value,onRemove(){v.removeAtIndex(P)}},()=>t.h("span",{class:"ellipsis",[v.html===!0?"innerHTML":"textContent"]:Ce.value(v.opt)}))):[t.h("span",{class:"ellipsis",[fe.value===!0?"innerHTML":"textContent"]:be.value})]}function Ue(){if(ie.value===!0)return n["no-option"]!==void 0?n["no-option"]({inputValue:c.value}):void 0;const v=n.option!==void 0?n.option:Y=>t.h(el,{key:Y.index,...Y.itemProps},()=>t.h(tl,()=>t.h(ci,()=>t.h("span",{[Y.html===!0?"innerHTML":"textContent"]:Y.label}))));let P=W("div",we.value.map(v));return n["before-options"]!==void 0&&(P=n["before-options"]().concat(P)),Ae(n["after-options"],P)}function $t(v,P){const Y=P===!0?{...Ne.value,...k.splitAttrs.attributes.value}:void 0,le={ref:P===!0?B:void 0,key:"i_t",class:Z.value,style:e.inputStyle,value:c.value!==void 0?c.value:"",type:"search",...Y,id:P===!0?k.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":v===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...wn.value};return v!==!0&&b===!0&&(Array.isArray(le.class)===!0?le.class=[...le.class,"no-pointer-events"]:le.class+=" no-pointer-events"),t.h("input",le)}function yt(v){h!==null&&(clearTimeout(h),h=null),y!==null&&(clearTimeout(y),y=null),!(v&&v.target&&v.target.qComposing===!0)&&(st(v.target.value||""),V=!0,F=c.value,k.focused.value!==!0&&(b!==!0||f.value===!0)&&k.focus(),e.onFilter!==void 0&&(h=setTimeout(()=>{h=null,He(c.value)},e.inputDebounce)))}function st(v,P){c.value!==v&&(c.value=v,P===!0||e.inputDebounce===0||e.inputDebounce==="0"?l("inputValue",v):y=setTimeout(()=>{y=null,l("inputValue",v)},e.inputDebounce))}function ct(v,P,Y){V=Y!==!0,e.useInput===!0&&(st(v,!0),(P===!0||Y!==!0)&&(F=v),P!==!0&&He(v))}function He(v,P,Y){if(e.onFilter===void 0||P!==!0&&k.focused.value!==!0)return;k.innerLoading.value===!0?l("filterAbort"):(k.innerLoading.value=!0,s.value=!0),v!==""&&e.multiple!==!0&&S.value.length!==0&&V!==!0&&v===Ce.value(S.value[0])&&(v="");const le=setTimeout(()=>{r.value===!0&&(r.value=!1)},10);p!==null&&clearTimeout(p),p=le,l("filter",v,(se,ve)=>{(P===!0||k.focused.value===!0)&&p===le&&(clearTimeout(p),typeof se=="function"&&se(),s.value=!1,t.nextTick(()=>{k.innerLoading.value=!1,k.editable.value===!0&&(P===!0?r.value===!0&&oe():r.value===!0?_n(!0):r.value=!0),typeof ve=="function"&&t.nextTick(()=>{ve(a)}),typeof Y=="function"&&t.nextTick(()=>{Y(a)})}))},()=>{k.focused.value===!0&&p===le&&(clearTimeout(p),k.innerLoading.value=!1,s.value=!1),r.value===!0&&(r.value=!1)})}function kn(){return t.h(bn,{ref:A,class:G.value,style:e.popupContentStyle,modelValue:r.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&ie.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:I.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:zt.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Le.value,onScrollPassive:L,onBeforeShow:yl,onBeforeHide:xn,onShow:Cn},Ue)}function xn(v){wl(v),Q()}function Cn(){ee()}function d(v){var P;De(v),(P=B.value)==null||P.focus(),f.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function g(v){De(v),t.nextTick(()=>{f.value=!1})}function _(){const v=[t.h(ii,{class:`col-auto ${k.fieldClass.value}`,...U.value,for:k.targetUid.value,dark:I.value,square:!0,loading:s.value,itemAligned:!1,filled:!0,stackLabel:c.value.length!==0,...k.splitAttrs.listeners.value,onFocus:d,onBlur:g},{...n,rawControl:()=>k.getControl(!0),before:void 0,after:void 0})];return r.value===!0&&v.push(t.h("div",{ref:E,class:G.value+" scroll",style:e.popupContentStyle,...Le.value,onClick:_e,onScrollPassive:L},Ue())),t.h(sa,{ref:K,modelValue:i.value,position:e.useInput===!0?"top":void 0,transitionShow:M,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:yl,onBeforeHide:H,onHide:N,onShow:ne},()=>t.h("div",{class:"q-select__dialog"+(I.value===!0?" q-select__dialog--dark q-dark":"")+(f.value===!0?" q-select__dialog--focused":"")},v))}function H(v){wl(v),K.value!==null&&K.value.__updateRefocusTarget(k.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),k.focused.value=!1}function N(v){oe(),k.focused.value===!1&&l("blur",v),Te()}function ne(){const v=document.activeElement;(v===null||v.id!==k.targetUid.value)&&B.value!==null&&B.value!==v&&B.value.focus(),ee()}function Q(){i.value!==!0&&(u.value=-1,r.value===!0&&(r.value=!1),k.focused.value===!1&&(p!==null&&(clearTimeout(p),p=null),k.innerLoading.value===!0&&(l("filterAbort"),k.innerLoading.value=!1,s.value=!1)))}function te(v){k.editable.value===!0&&(b===!0?(k.onControlFocusin(v),i.value=!0,t.nextTick(()=>{k.focus()})):k.focus(),e.onFilter!==void 0?He(c.value):(ie.value!==!0||n["no-option"]!==void 0)&&(r.value=!0))}function oe(){i.value=!1,Q()}function Te(){e.useInput===!0&&ct(e.multiple!==!0&&e.fillInput===!0&&S.value.length!==0&&Ce.value(S.value[0])||"",!0,!0)}function _n(v){let P=-1;if(v===!0){if(S.value.length!==0){const Y=Ee.value(S.value[0]);P=e.options.findIndex(le=>Ge(Ee.value(le),Y))}O(P)}je(P)}function qa(v,P){r.value===!0&&k.innerLoading.value===!1&&(O(-1,!0),t.nextTick(()=>{r.value===!0&&k.innerLoading.value===!1&&(v>P?O():_n(!0))}))}function pl(){i.value===!1&&A.value!==null&&A.value.updatePosition()}function yl(v){v!==void 0&&De(v),l("popupShow",v),k.hasPopupOpen=!0,k.onControlFocusin(v)}function wl(v){v!==void 0&&De(v),l("popupHide",v),k.hasPopupOpen=!1,k.onControlFocusout(v)}function Sl(){b=o.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?n["no-option"]!==void 0||e.onFilter!==void 0||ie.value===!1:!0),M=o.platform.is.ios===!0&&b===!0&&e.useInput===!0?"fade":e.transitionShow}return t.onBeforeUpdate(Sl),t.onUpdated(pl),Sl(),t.onBeforeUnmount(()=>{h!==null&&clearTimeout(h),y!==null&&clearTimeout(y)}),Object.assign(a,{showPopup:te,hidePopup:oe,removeAtIndex:rt,add:Tt,toggleOption:$e,getOptionIndex:()=>u.value,setOptionIndex:je,moveOptionSelection:it,filter:He,updateMenuPosition:pl,updateInputValue:ct,isOptionSelected:ut,getEmittingOptionValue:Yt,isOptionDisabled:(...v)=>Re.value.apply(null,v)===!0,getOptionValue:(...v)=>Ee.value.apply(null,v),getOptionLabel:(...v)=>Ce.value.apply(null,v)}),Object.assign(k,{innerValue:S,fieldClass:t.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:q,targetRef:B,hasValue:J,showPopup:te,floatingLabel:t.computed(()=>e.hideSelected!==!0&&J.value===!0||typeof c.value=="number"||c.value.length!==0||It(e.displayValue)),getControlChild:()=>{if(k.editable.value!==!1&&(i.value===!0||ie.value!==!0||n["no-option"]!==void 0))return b===!0?_():kn();k.hasPopupOpen===!0&&(k.hasPopupOpen=!1)},controlEvents:{onFocusin(v){k.onControlFocusin(v)},onFocusout(v){k.onControlFocusout(v,()=>{Te(),Q()})},onClick(v){var P;if(_e(v),b!==!0&&r.value===!0){Q(),(P=B.value)==null||P.focus();return}te(v)}},getControl:v=>{const P=Xt(),Y=v===!0||i.value!==!0||b!==!0;if(e.useInput===!0)P.push($t(v,Y));else if(k.editable.value===!0){const se=Y===!0?Ne.value:void 0;P.push(t.h("input",{ref:Y===!0?B:void 0,key:"d_t",class:"q-select__focus-target",id:Y===!0?k.targetUid.value:void 0,value:be.value,readonly:!0,"data-autofocus":v===!0||e.autofocus===!0||void 0,...se,onKeydown:Ye,onKeyup:Wt,onKeypress:Fe})),Y===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&P.push(t.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:Kt}))}if(D.value!==void 0&&e.disable!==!0&&at.value.length!==0){const se=at.value.map(ve=>t.h("option",{value:ve,selected:!0}));P.push(t.h("select",{class:"hidden",name:D.value,multiple:e.multiple},se))}const le=e.useInput===!0||Y!==!0?void 0:k.splitAttrs.attributes.value;return t.h("div",{class:"q-field__native row items-center",...le,...k.splitAttrs.listeners.value},P)},getInnerAppend:()=>e.loading!==!0&&s.value!==!0&&e.hideDropdownIcon!==!0?[t.h(qe,{class:"q-select__dropdown-icon"+(r.value===!0?" rotate-180":""),name:lt.value})]:null}),hl(k)}}),Vi={class:"q-pa-none"},Ei=t.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(e,{emit:n}){const l=e,a=n,o=t.ref(!1),r=t.ref(l.modelValue||[]),i=t.computed(()=>({height:l.scrollAreaHeight,width:l.scrollAreaWidth})),u=t.computed(()=>l.dataCy||"checkbox-filter");return t.watch(r,c=>{a("update:modelValue",c)}),t.watch(()=>l.modelValue,c=>{c&&(r.value=c)}),(c,f)=>(t.openBlock(),t.createElementBlock("div",Vi,[t.createVNode(fa,t.mergeProps({outlined:"",dense:"",label:l.label,class:["full-width","cursor-pointer"],"data-cy":u.value,"model-value":null,options:[],"hide-dropdown-icon":""},c.$attrs),{append:t.withCtx(()=>[t.createVNode(qe,{name:"arrow_drop_down",class:t.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":o.value}])},null,8,["class"])]),default:t.withCtx(()=>[t.createVNode(bn,{modelValue:o.value,"onUpdate:modelValue":f[1]||(f[1]=s=>o.value=s),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:t.withCtx(()=>[t.createVNode(Er,{class:"q-pa-sm"},{default:t.withCtx(()=>[t.createVNode(Vr,{style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.options,s=>(t.openBlock(),t.createBlock(hr,{key:s.value,modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=h=>r.value=h),val:s,label:s.label,disable:s.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`${u.value}-option-${s.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label","data-cy"])]))}}),Di=mn(Ei,[["__scopeId","data-v-0094cb2e"]]),zi=t.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Selectionner un option"},modelValue:{default:null}},emits:["update:modelValue"],setup(e,{emit:n}){const l=e,a=n,o=t.ref(),r=t.ref(l.modelValue??null),i=t.ref(""),u=t.ref(l.options??[]),c=t.ref(!1),f=t.ref(!0);t.watch(()=>l.options,p=>{u.value=p??[],s()},{immediate:!0}),t.watch(()=>l.modelValue,p=>{r.value=p,s(),c.value=!1});function s(){const p=u.value.find(F=>F.value===r.value);i.value=(p==null?void 0:p.label)??""}function h(p){r.value=p,a("update:modelValue",p),s(),c.value=!1}function y(p){i.value=p,p===""&&(c.value=!0)}function m(){var p;if(f.value){f.value=!1;return}r.value!==null&&!c.value?(i.value="",c.value=!0,(p=o.value)==null||p.showPopup()):c.value&&(i.value="")}function b(){f.value=!0;const p=i.value.trim();if(p==="")c.value&&(r.value=null,a("update:modelValue",null));else{const F=u.value.find(M=>M.label.toLowerCase()===p.toLowerCase());F?(r.value=F.value,a("update:modelValue",F.value),i.value=F.label):s()}c.value=!1}function V(p,F,M){if(l.fetchOptions)l.fetchOptions(p).then(T=>{u.value=T,F(()=>{})}).catch(M).finally(()=>{});else{const T=l.options??[];u.value=T.filter(x=>x.label.toLowerCase().includes(p.toLowerCase())),F(()=>{})}}return(p,F)=>(t.openBlock(),t.createBlock(fa,t.mergeProps({ref_key:"selectRef",ref:o,"model-value":r.value,"input-value":i.value,"use-input":"","fill-input":"","hide-selected":"","input-debounce":"300",label:p.label,options:u.value,"onUpdate:modelValue":h,"onUpdate:inputValue":y,onFocus:m,onBlur:b,onFilter:V,dense:"",outlined:"",class:"full-width cursor-pointer"},p.$attrs),null,16,["model-value","input-value","label","options"]))}}),va=ae({name:"QAvatar",props:{...Nt,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:n}){const l=jt(e),a=t.computed(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(e.square===!0?" q-avatar--square":e.rounded===!0?" rounded-borders":"")),o=t.computed(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const r=e.icon!==void 0?[t.h(qe,{name:e.icon})]:void 0;return t.h("div",{class:a.value,style:l.value},[t.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:o.value},So(n.default,r))])}}}),Ti=ae({name:"QSpace",setup(){const e=t.h("div",{class:"q-space"});return()=>e}}),Bi=ae({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:n}){const l=t.computed(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>t.h("div",{class:l.value,role:"toolbar"},ke(n.default))}}),$i=ae({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(e,{slots:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=t.inject(pn,Ke);if(o===Ke)return console.error("QHeader needs to be child of QLayout"),Ke;const r=t.ref(parseInt(e.heightHint,10)),i=t.ref(!0),u=t.computed(()=>e.reveal===!0||o.view.value.indexOf("H")!==-1||a.platform.is.ios&&o.isContainer.value===!0),c=t.computed(()=>{if(e.modelValue!==!0)return 0;if(u.value===!0)return i.value===!0?r.value:0;const M=r.value-o.scroll.value.position;return M>0?M:0}),f=t.computed(()=>e.modelValue!==!0||u.value===!0&&i.value!==!0),s=t.computed(()=>e.modelValue===!0&&f.value===!0&&e.reveal===!0),h=t.computed(()=>"q-header q-layout__section--marginal "+(u.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(f.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),y=t.computed(()=>{const M=o.rows.value.top,T={};return M[0]==="l"&&o.left.space===!0&&(T[a.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),M[2]==="r"&&o.right.space===!0&&(T[a.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),T});function m(M,T){o.update("header",M,T)}function b(M,T){M.value!==T&&(M.value=T)}function V({height:M}){b(r,M),m("size",M)}function p(M){s.value===!0&&b(i,!0),l("focusin",M)}t.watch(()=>e.modelValue,M=>{m("space",M),b(i,!0),o.animate()}),t.watch(c,M=>{m("offset",M)}),t.watch(()=>e.reveal,M=>{M===!1&&b(i,e.modelValue)}),t.watch(i,M=>{o.animate(),l("reveal",M)}),t.watch(o.scroll,M=>{e.reveal===!0&&b(i,M.direction==="up"||M.position<=e.revealOffset||M.position-M.inflectionPoint<100)});const F={};return o.instances.header=F,e.modelValue===!0&&m("size",r.value),m("space",e.modelValue),m("offset",c.value),t.onBeforeUnmount(()=>{o.instances.header===F&&(o.instances.header=void 0,m("size",0),m("offset",0),m("space",!1))}),()=>{const M=wo(n.default,[]);return e.elevated===!0&&M.push(t.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),M.push(t.h(Vt,{debounce:0,onResize:V})),t.h("header",{class:h.value,style:y.value,onFocusin:p},M)}}}),Oi=["src","alt"],Ai=t.defineComponent({__name:"SelfeeHeader",props:{logoSrc:{},logoAlt:{},logoTo:{}},setup(e){const n=e,l=n.logoAlt??"Logo",a=n.logoTo??"/";return(o,r)=>{const i=t.resolveComponent("router-link");return t.openBlock(),t.createBlock($i,t.mergeProps({elevated:""},o.$attrs),{default:t.withCtx(()=>[t.createVNode(Bi,null,{default:t.withCtx(()=>[t.createVNode(i,{to:t.unref(a),class:"q-mr-md"},{default:t.withCtx(()=>[t.createVNode(va,{class:"logo"},{default:t.withCtx(()=>[t.createElementVNode("img",{src:o.logoSrc,alt:t.unref(l)},null,8,Oi)]),_:1})]),_:1},8,["to"]),t.createVNode(Ti),t.renderSlot(o.$slots,"user-avatar",{},void 0,!0)]),_:3})]),_:3},16)}}}),Li=mn(Ai,[["__scopeId","data-v-ab7c0ff6"]]),Ri=ae({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=t.inject(pn,Ke);if(o===Ke)return console.error("QFooter needs to be child of QLayout"),Ke;const r=t.ref(parseInt(e.heightHint,10)),i=t.ref(!0),u=t.ref(nt.value===!0||o.isContainer.value===!0?0:window.innerHeight),c=t.computed(()=>e.reveal===!0||o.view.value.indexOf("F")!==-1||a.platform.is.ios&&o.isContainer.value===!0),f=t.computed(()=>o.isContainer.value===!0?o.containerHeight.value:u.value),s=t.computed(()=>{if(e.modelValue!==!0)return 0;if(c.value===!0)return i.value===!0?r.value:0;const q=o.scroll.value.position+f.value+r.value-o.height.value;return q>0?q:0}),h=t.computed(()=>e.modelValue!==!0||c.value===!0&&i.value!==!0),y=t.computed(()=>e.modelValue===!0&&h.value===!0&&e.reveal===!0),m=t.computed(()=>"q-footer q-layout__section--marginal "+(c.value===!0?"fixed":"absolute")+"-bottom"+(e.bordered===!0?" q-footer--bordered":"")+(h.value===!0?" q-footer--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus"+(c.value!==!0?" hidden":""):"")),b=t.computed(()=>{const q=o.rows.value.bottom,B={};return q[0]==="l"&&o.left.space===!0&&(B[a.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),q[2]==="r"&&o.right.space===!0&&(B[a.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),B});function V(q,B){o.update("footer",q,B)}function p(q,B){q.value!==B&&(q.value=B)}function F({height:q}){p(r,q),V("size",q)}function M(){if(e.reveal!==!0)return;const{direction:q,position:B,inflectionPoint:A}=o.scroll.value;p(i,q==="up"||B-A<100||o.height.value-f.value-B-r.value<300)}function T(q){y.value===!0&&p(i,!0),l("focusin",q)}t.watch(()=>e.modelValue,q=>{V("space",q),p(i,!0),o.animate()}),t.watch(s,q=>{V("offset",q)}),t.watch(()=>e.reveal,q=>{q===!1&&p(i,e.modelValue)}),t.watch(i,q=>{o.animate(),l("reveal",q)}),t.watch([r,o.scroll,o.height],M),t.watch(()=>a.screen.height,q=>{o.isContainer.value!==!0&&p(u,q)});const x={};return o.instances.footer=x,e.modelValue===!0&&V("size",r.value),V("space",e.modelValue),V("offset",s.value),t.onBeforeUnmount(()=>{o.instances.footer===x&&(o.instances.footer=void 0,V("size",0),V("offset",0),V("space",!1))}),()=>{const q=Ae(n.default,[t.h(Vt,{debounce:0,onResize:F})]);return e.elevated===!0&&q.push(t.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),t.h("footer",{class:m.value,style:b.value,onFocusin:T},q)}}}),Fi={class:"row justify-between"},Hi={class:"col-3 q-py-md flex justify-center"},Pi={class:"col-3 q-py-md flex justify-center"},Ii={class:"col-3 q-py-md flex justify-center"},Ni=t.defineComponent({__name:"SelfeeFooter",props:{frontVersion:{},backVersion:{},platform:{}},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(Ri,t.mergeProps({elevated:""},n.$attrs),{default:t.withCtx(()=>[t.createElementVNode("div",Fi,[t.createElementVNode("div",Hi,"Front: "+t.toDisplayString(n.frontVersion),1),t.createElementVNode("div",Pi,"Back: "+t.toDisplayString(n.backVersion),1),t.createElementVNode("div",Ii,"Platform: "+t.toDisplayString(n.platform),1)])]),_:1},16))}}),ji={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},Hn={xs:2,sm:4,md:8,lg:16,xl:24},Yi=ae({name:"QSeparator",props:{...Pe,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const n=t.getCurrentInstance(),l=Ie(e,n.proxy.$q),a=t.computed(()=>e.vertical===!0?"vertical":"horizontal"),o=t.computed(()=>` q-separator--${a.value}`),r=t.computed(()=>e.inset!==!1?`${o.value}-${ji[e.inset]}`:""),i=t.computed(()=>`q-separator${o.value}${r.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(l.value===!0?" q-separator--dark":"")),u=t.computed(()=>{const c={};if(e.size!==void 0&&(c[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const f=e.spaced===!0?`${Hn.md}px`:e.spaced in Hn?`${Hn[e.spaced]}px`:e.spaced,s=e.vertical===!0?["Left","Right"]:["Top","Bottom"];c[`margin${s[0]}`]=c[`margin${s[1]}`]=f}return c});return()=>t.h("hr",{class:i.value,style:u.value,"aria-orientation":a.value})}}),Ui=["ul","ol"],Qi=ae({name:"QList",props:{...Pe,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:n}){const l=t.getCurrentInstance(),a=Ie(e,l.proxy.$q),o=t.computed(()=>Ui.includes(e.tag)?null:"list"),r=t.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(a.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>t.h(e.tag,{class:r.value,role:o.value},ke(n.default))}}),Wi={class:"text-h6 text-primary"},Ki=t.defineComponent({__name:"UserAvatar",props:{username:{},onLogout:{type:Function},logoutLabel:{}},setup(e){const n=e,l=t.computed(()=>{var o;return((o=n.username)==null?void 0:o.charAt(0).toUpperCase())??""}),a=n.logoutLabel??"Logout";return(o,r)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(va,{class:"cursor-pointer",size:"40px",color:"white","data-cy":"cy-avatar"},{default:t.withCtx(()=>[t.createElementVNode("span",Wi,t.toDisplayString(l.value),1),t.createVNode(bn,{"transition-show":"flip-right","transition-hide":"flip-left"},{default:t.withCtx(()=>[t.createVNode(Qi,null,{default:t.withCtx(()=>[t.createVNode(el,null,{default:t.withCtx(()=>[t.createVNode(tl,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(o.username),1)]),_:1})]),_:1}),t.createVNode(Yi),t.createVNode(el,{clickable:"",onClick:o.onLogout,"data-cy":"cy-logout-button"},{default:t.withCtx(()=>[t.createVNode(tl,null,{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(a)),1)]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]))}}),Xi=ae({name:"QPageContainer",setup(e,{slots:n}){const{proxy:{$q:l}}=t.getCurrentInstance(),a=t.inject(pn,Ke);if(a===Ke)return console.error("QPageContainer needs to be child of QLayout"),Ke;t.provide(ei,!0);const o=t.computed(()=>{const r={};return a.header.space===!0&&(r.paddingTop=`${a.header.size}px`),a.right.space===!0&&(r[`padding${l.lang.rtl===!0?"Left":"Right"}`]=`${a.right.size}px`),a.footer.space===!0&&(r.paddingBottom=`${a.footer.size}px`),a.left.space===!0&&(r[`padding${l.lang.rtl===!0?"Right":"Left"}`]=`${a.left.size}px`),r});return()=>t.h("div",{class:"q-page-container",style:o.value},ke(n.default))}}),Zi=ae({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:n,emit:l}){const{proxy:{$q:a}}=t.getCurrentInstance(),o=t.ref(null),r=t.ref(a.screen.height),i=t.ref(e.container===!0?0:a.screen.width),u=t.ref({position:0,direction:"down",inflectionPoint:0}),c=t.ref(0),f=t.ref(nt.value===!0?0:an()),s=t.computed(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),h=t.computed(()=>e.container===!1?{minHeight:a.screen.height+"px"}:null),y=t.computed(()=>f.value!==0?{[a.lang.rtl===!0?"left":"right"]:`${f.value}px`}:null),m=t.computed(()=>f.value!==0?{[a.lang.rtl===!0?"right":"left"]:0,[a.lang.rtl===!0?"left":"right"]:`-${f.value}px`,width:`calc(100% + ${f.value}px)`}:null);function b(x){if(e.container===!0||document.qScrollPrevented!==!0){const q={position:x.position.top,direction:x.direction,directionChanged:x.directionChanged,inflectionPoint:x.inflectionPoint.top,delta:x.delta.top};u.value=q,e.onScroll!==void 0&&l("scroll",q)}}function V(x){const{height:q,width:B}=x;let A=!1;r.value!==q&&(A=!0,r.value=q,e.onScrollHeight!==void 0&&l("scrollHeight",q),F()),i.value!==B&&(A=!0,i.value=B),A===!0&&e.onResize!==void 0&&l("resize",x)}function p({height:x}){c.value!==x&&(c.value=x,F())}function F(){if(e.container===!0){const x=r.value>c.value?an():0;f.value!==x&&(f.value=x)}}let M=null;const T={instances:{},view:t.computed(()=>e.view),isContainer:t.computed(()=>e.container),rootRef:o,height:r,containerHeight:c,scrollbarWidth:f,totalWidth:t.computed(()=>i.value+f.value),rows:t.computed(()=>{const x=e.view.toLowerCase().split(" ");return{top:x[0].split(""),middle:x[1].split(""),bottom:x[2].split("")}}),header:t.reactive({size:0,offset:0,space:!1}),right:t.reactive({size:300,offset:0,space:!1}),footer:t.reactive({size:0,offset:0,space:!1}),left:t.reactive({size:300,offset:0,space:!1}),scroll:u,animate(){M!==null?clearTimeout(M):document.body.classList.add("q-body--layout-animate"),M=setTimeout(()=>{M=null,document.body.classList.remove("q-body--layout-animate")},155)},update(x,q,B){T[x][q]=B}};if(t.provide(pn,T),an()>0){let x=function(){A=null,K.classList.remove("hide-scrollbar")},q=function(){if(A===null){if(K.scrollHeight>a.screen.height)return;K.classList.add("hide-scrollbar")}else clearTimeout(A);A=setTimeout(x,300)},B=function(E){A!==null&&E==="remove"&&(clearTimeout(A),x()),window[`${E}EventListener`]("resize",q)},A=null;const K=document.body;t.watch(()=>e.container!==!0?"add":"remove",B),e.container!==!0&&B("add"),t.onUnmounted(()=>{B("remove")})}return()=>{const x=Ae(n.default,[t.h(jo,{onScroll:b}),t.h(Vt,{onResize:V})]),q=t.h("div",{class:s.value,style:h.value,ref:e.container===!0?void 0:o,tabindex:-1},x);return e.container===!0?t.h("div",{class:"q-layout-container overflow-hidden",ref:o},[t.h(Vt,{onResize:p}),t.h("div",{class:"absolute-full",style:y.value},[t.h("div",{class:"scroll",style:m.value},[q])])]):q}}}),Ji=t.defineComponent({name:"Layout",__name:"Layout",props:{view:{default:"HHh Lpr Fff"},layoutClass:{default:"bg-dark"},pageContainerClass:{default:"q-pa-sm"}},setup(e){return(n,l)=>(t.openBlock(),t.createBlock(Zi,{view:n.view,class:t.normalizeClass(n.layoutClass)},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"header"),t.createVNode(Xi,{class:t.normalizeClass(n.pageContainerClass)},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["class"]),t.renderSlot(n.$slots,"footer")]),_:3},8,["view","class"]))}});function Gi(){let e=Object.create(null);return{getCache:(n,l)=>e[n]===void 0?e[n]=typeof l=="function"?l():l:e[n],setCache(n,l){e[n]=l},hasCache(n){return Object.hasOwnProperty.call(e,n)},clearCache(n){n!==void 0?delete e[n]:e=Object.create(null)}}}const et=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function eu(e,n,l){return Object.prototype.toString.call(e)==="[object Date]"&&(l=e.getDate(),n=e.getMonth()+1,e=e.getFullYear()),ou(gl(e,n,l))}function co(e,n,l){return ha(lu(e,n,l))}function tu(e){return nu(e)===0}function rn(e,n){return n<=6?31:n<=11||tu(e)?30:29}function nu(e){const n=et.length;let l=et[0],a,o,r,i,u;if(e<l||e>=et[n-1])throw new Error("Invalid Jalaali year "+e);for(u=1;u<n&&(a=et[u],o=a-l,!(e<a));u+=1)l=a;return i=e-l,o-i<6&&(i=i-o+de(o+4,33)*33),r=ze(ze(i+1,33)-1,4),r===-1&&(r=4),r}function ma(e,n){const l=et.length,a=e+621;let o=-14,r=et[0],i,u,c,f,s;if(e<r||e>=et[l-1])throw new Error("Invalid Jalaali year "+e);for(s=1;s<l&&(i=et[s],u=i-r,!(e<i));s+=1)o=o+de(u,33)*8+de(ze(u,33),4),r=i;f=e-r,o=o+de(f,33)*8+de(ze(f,33)+3,4),ze(u,33)===4&&u-f===4&&(o+=1);const h=de(a,4)-de((de(a,100)+1)*3,4)-150,y=20+o-h;return n||(u-f<6&&(f=f-u+de(u+4,33)*33),c=ze(ze(f+1,33)-1,4),c===-1&&(c=4)),{leap:c,gy:a,march:y}}function lu(e,n,l){const a=ma(e,!0);return gl(a.gy,3,a.march)+(n-1)*31-de(n,7)*(n-7)+l-1}function ou(e){const n=ha(e).gy;let l=n-621,a,o,r;const i=ma(l,!1),u=gl(n,3,i.march);if(r=e-u,r>=0){if(r<=185)return o=1+de(r,31),a=ze(r,31)+1,{jy:l,jm:o,jd:a};r-=186}else l-=1,r+=179,i.leap===1&&(r+=1);return o=7+de(r,30),a=ze(r,30)+1,{jy:l,jm:o,jd:a}}function gl(e,n,l){let a=de((e+de(n-8,6)+100100)*1461,4)+de(153*ze(n+9,12)+2,5)+l-34840408;return a=a-de(de(e+100100+de(n-8,6),100)*3,4)+752,a}function ha(e){let n=4*e+139361631;n=n+de(de(4*e+183187720,146097)*3,4)*4-3908;const l=de(ze(n,1461),4)*5+308,a=de(ze(l,153),5)+1,o=ze(de(l,153),12)+1;return{gy:de(n,1461)-100100+de(8-o,6),gm:o,gd:a}}function de(e,n){return~~(e/n)}function ze(e,n){return e-~~(e/n)*n}const au=["gregorian","persian"],fo={mask:{type:String},locale:Object,calendar:{type:String,validator:e=>au.includes(e),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},ru=["update:modelValue"];function Xe(e){return e.year+"/"+re(e.month)+"/"+re(e.day)}function iu(e,n){const l=t.computed(()=>e.disable!==!0&&e.readonly!==!0),a=t.computed(()=>l.value===!0?0:-1),o=t.computed(()=>{const u=[];return e.color!==void 0&&u.push(`bg-${e.color}`),e.textColor!==void 0&&u.push(`text-${e.textColor}`),u.join(" ")});function r(){return e.locale!==void 0?{...n.lang.date,...e.locale}:n.lang.date}function i(u){const c=new Date,f=u===!0?null:0;if(e.calendar==="persian"){const s=eu(c);return{year:s.jy,month:s.jm,day:s.jd}}return{year:c.getFullYear(),month:c.getMonth()+1,day:c.getDate(),hour:f,minute:f,second:f,millisecond:f}}return{editable:l,tabindex:a,headerClass:o,getLocale:r,getCurrentDate:i}}const nl={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:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"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:e=>`Previous ${e} years`,nextRangeYears:e=>`Next ${e} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>e===1?"1 record selected.":(e===0?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,n,l)=>e+"-"+n+" of "+l,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 vo(){const e=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof e=="string")return e.split(/[-_]/).map((n,l)=>l===0?n.toLowerCase():l>1||n.length<4?n.toUpperCase():n[0].toUpperCase()+n.slice(1).toLowerCase()).join("-")}const Je=Ma({__qLang:{}},{getLocale:vo,set(e=nl,n){const l={...e,rtl:e.rtl===!0,getLocale:vo};{if(l.set=Je.set,Je.__langConfig===void 0||Je.__langConfig.noHtmlAttrs!==!0){const a=document.documentElement;a.setAttribute("dir",l.rtl===!0?"rtl":"ltr"),a.setAttribute("lang",l.isoName)}Object.assign(Je.__qLang,l)}},install({$q:e,lang:n,ssrContext:l}){e.lang=Je.__qLang,Je.__langConfig=e.config.lang,this.__installed===!0?n!==void 0&&this.set(n):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(a){return Reflect.ownKeys(a).filter(o=>o!=="set"&&o!=="getLocale")}}),this.set(n||nl))}}),ga=864e5,uu=36e5,ll=6e4,ba="YYYY-MM-DDTHH:mm:ss.SSSZ",su=/\[((?:[^\]\\]|\\]|\\)*)\]|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,cu=/(\[[^\]]*\])|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,Pn={};function du(e,n){const l="("+n.days.join("|")+")",a=e+l;if(Pn[a]!==void 0)return Pn[a];const o="("+n.daysShort.join("|")+")",r="("+n.months.join("|")+")",i="("+n.monthsShort.join("|")+")",u={};let c=0;const f=e.replace(cu,h=>{switch(c++,h){case"YY":return u.YY=c,"(-?\\d{1,2})";case"YYYY":return u.YYYY=c,"(-?\\d{1,4})";case"M":return u.M=c,"(\\d{1,2})";case"Mo":return u.M=c++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return u.M=c,"(\\d{2})";case"MMM":return u.MMM=c,i;case"MMMM":return u.MMMM=c,r;case"D":return u.D=c,"(\\d{1,2})";case"Do":return u.D=c++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return u.D=c,"(\\d{2})";case"H":return u.H=c,"(\\d{1,2})";case"HH":return u.H=c,"(\\d{2})";case"h":return u.h=c,"(\\d{1,2})";case"hh":return u.h=c,"(\\d{2})";case"m":return u.m=c,"(\\d{1,2})";case"mm":return u.m=c,"(\\d{2})";case"s":return u.s=c,"(\\d{1,2})";case"ss":return u.s=c,"(\\d{2})";case"S":return u.S=c,"(\\d{1})";case"SS":return u.S=c,"(\\d{2})";case"SSS":return u.S=c,"(\\d{3})";case"A":return u.A=c,"(AM|PM)";case"a":return u.a=c,"(am|pm)";case"aa":return u.aa=c,"(a\\.m\\.|p\\.m\\.)";case"ddd":return o;case"dddd":return l;case"Q":case"d":case"E":return"(\\d{1})";case"do":return c++,"(\\d{1}(st|nd|rd|th))";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"DDDo":return c++,"(\\d{1,3}(st|nd|rd|th))";case"w":return"(\\d{1,2})";case"wo":return c++,"(\\d{1,2}(st|nd|rd|th))";case"ww":return"(\\d{2})";case"Z":return u.Z=c,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return u.ZZ=c,"(Z|[+-]\\d{2}\\d{2})";case"X":return u.X=c,"(-?\\d+)";case"x":return u.x=c,"(-?\\d{4,})";default:return c--,h[0]==="["&&(h=h.substring(1,h.length-1)),h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),s={map:u,regex:new RegExp("^"+f)};return Pn[a]=s,s}function pa(e,n){return e!==void 0?e:n!==void 0?n.date:nl.date}function mo(e,n=""){const l=e>0?"-":"+",a=Math.abs(e),o=Math.floor(a/60),r=a%60;return l+re(o)+n+re(r)}function fu(e,n,l,a,o){const r={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(o!==void 0&&Object.assign(r,o),e==null||e===""||typeof e!="string")return r;n===void 0&&(n=ba);const i=pa(l,Je.props),u=i.months,c=i.monthsShort,{regex:f,map:s}=du(n,i),h=e.match(f);if(h===null)return r;let y="";if(s.X!==void 0||s.x!==void 0){const m=parseInt(h[s.X!==void 0?s.X:s.x],10);if(isNaN(m)===!0||m<0)return r;const b=new Date(m*(s.X!==void 0?1e3:1));r.year=b.getFullYear(),r.month=b.getMonth()+1,r.day=b.getDate(),r.hour=b.getHours(),r.minute=b.getMinutes(),r.second=b.getSeconds(),r.millisecond=b.getMilliseconds()}else{if(s.YYYY!==void 0)r.year=parseInt(h[s.YYYY],10);else if(s.YY!==void 0){const m=parseInt(h[s.YY],10);r.year=m<0?m:2e3+m}if(s.M!==void 0){if(r.month=parseInt(h[s.M],10),r.month<1||r.month>12)return r}else s.MMM!==void 0?r.month=c.indexOf(h[s.MMM])+1:s.MMMM!==void 0&&(r.month=u.indexOf(h[s.MMMM])+1);if(s.D!==void 0){if(r.day=parseInt(h[s.D],10),r.year===null||r.month===null||r.day<1)return r;const m=a!=="persian"?new Date(r.year,r.month,0).getDate():rn(r.year,r.month);if(r.day>m)return r}s.H!==void 0?r.hour=parseInt(h[s.H],10)%24:s.h!==void 0&&(r.hour=parseInt(h[s.h],10)%12,(s.A&&h[s.A]==="PM"||s.a&&h[s.a]==="pm"||s.aa&&h[s.aa]==="p.m.")&&(r.hour+=12),r.hour=r.hour%24),s.m!==void 0&&(r.minute=parseInt(h[s.m],10)%60),s.s!==void 0&&(r.second=parseInt(h[s.s],10)%60),s.S!==void 0&&(r.millisecond=parseInt(h[s.S],10)*10**(3-h[s.S].length)),(s.Z!==void 0||s.ZZ!==void 0)&&(y=s.Z!==void 0?h[s.Z].replace(":",""):h[s.ZZ],r.timezoneOffset=(y[0]==="+"?-1:1)*(60*y.slice(1,3)+1*y.slice(3,5)))}return r.dateHash=re(r.year,6)+"/"+re(r.month)+"/"+re(r.day),r.timeHash=re(r.hour)+":"+re(r.minute)+":"+re(r.second)+y,r}function In(e){const n=new Date(e.getFullYear(),e.getMonth(),e.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);const l=new Date(n.getFullYear(),0,4);l.setDate(l.getDate()-(l.getDay()+6)%7+3);const a=n.getTimezoneOffset()-l.getTimezoneOffset();n.setHours(n.getHours()-a);const o=(n-l)/(ga*7);return 1+Math.floor(o)}function We(e,n,l){const a=new Date(e),o=`set${l===!0?"UTC":""}`;switch(n){case"year":case"years":a[`${o}Month`](0);case"month":case"months":a[`${o}Date`](1);case"day":case"days":case"date":a[`${o}Hours`](0);case"hour":case"hours":a[`${o}Minutes`](0);case"minute":case"minutes":a[`${o}Seconds`](0);case"second":case"seconds":a[`${o}Milliseconds`](0)}return a}function ln(e,n,l){return(e.getTime()-e.getTimezoneOffset()*ll-(n.getTime()-n.getTimezoneOffset()*ll))/l}function ya(e,n,l="days"){const a=new Date(e),o=new Date(n);switch(l){case"years":case"year":return a.getFullYear()-o.getFullYear();case"months":case"month":return(a.getFullYear()-o.getFullYear())*12+a.getMonth()-o.getMonth();case"days":case"day":case"date":return ln(We(a,"day"),We(o,"day"),ga);case"hours":case"hour":return ln(We(a,"hour"),We(o,"hour"),uu);case"minutes":case"minute":return ln(We(a,"minute"),We(o,"minute"),ll);case"seconds":case"second":return ln(We(a,"second"),We(o,"second"),1e3)}}function Nn(e){return ya(e,We(e,"year"),"days")+1}function Ct(e){if(e>=11&&e<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`}return`${e}th`}const ho={YY(e,n,l){const a=this.YYYY(e,n,l)%100;return a>=0?re(a):"-"+re(Math.abs(a))},YYYY(e,n,l){return l??e.getFullYear()},M(e){return e.getMonth()+1},Mo(e){return Ct(e.getMonth()+1)},MM(e){return re(e.getMonth()+1)},MMM(e,n){return n.monthsShort[e.getMonth()]},MMMM(e,n){return n.months[e.getMonth()]},Q(e){return Math.ceil((e.getMonth()+1)/3)},Qo(e){return Ct(this.Q(e))},D(e){return e.getDate()},Do(e){return Ct(e.getDate())},DD(e){return re(e.getDate())},DDD(e){return Nn(e)},DDDo(e){return Ct(Nn(e))},DDDD(e){return re(Nn(e),3)},d(e){return e.getDay()},do(e){return Ct(e.getDay())},dd(e,n){return n.days[e.getDay()].slice(0,2)},ddd(e,n){return n.daysShort[e.getDay()]},dddd(e,n){return n.days[e.getDay()]},E(e){return e.getDay()||7},w(e){return In(e)},wo(e){return Ct(In(e))},ww(e){return re(In(e))},H(e){return e.getHours()},HH(e){return re(e.getHours())},h(e){const n=e.getHours();return n===0?12:n>12?n%12:n},hh(e){return re(this.h(e))},m(e){return e.getMinutes()},mm(e){return re(e.getMinutes())},s(e){return e.getSeconds()},ss(e){return re(e.getSeconds())},S(e){return Math.floor(e.getMilliseconds()/100)},SS(e){return re(Math.floor(e.getMilliseconds()/10))},SSS(e){return re(e.getMilliseconds(),3)},A(e){return e.getHours()<12?"AM":"PM"},a(e){return e.getHours()<12?"am":"pm"},aa(e){return e.getHours()<12?"a.m.":"p.m."},Z(e,n,l,a){const o=a??e.getTimezoneOffset();return mo(o,":")},ZZ(e,n,l,a){const o=a??e.getTimezoneOffset();return mo(o)},X(e){return Math.floor(e.getTime()/1e3)},x(e){return e.getTime()}};function vu(e,n,l,a,o){if(e!==0&&!e||e===1/0||e===-1/0)return;const r=new Date(e);if(isNaN(r))return;n===void 0&&(n=ba);const i=pa(l,Je.props);return n.replace(su,(u,c)=>u in ho?ho[u](r,i,a,o):c===void 0?u:c.split("\\]").join("]"))}const Qe=20,mu=["Calendar","Years","Months"],go=e=>mu.includes(e),jn=e=>/^-?[\d]+\/[0-1]\d$/.test(e),_t=" — ";function Ze(e){return e.year+"/"+re(e.month)}const wa=ae({name:"QDate",props:{...fo,...hn,...Pe,modelValue:{required:!0,validator:e=>typeof e=="string"||Array.isArray(e)===!0||Object(e)===e||e===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...fo.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:jn},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:jn},navigationMaxYearMonth:{type:String,validator:jn},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:go}},emits:[...ru,"rangeStart","rangeEnd","navigation"],setup(e,{slots:n,emit:l}){const{proxy:a}=t.getCurrentInstance(),{$q:o}=a,r=Ie(e,o),{getCache:i}=Gi(),{tabindex:u,headerClass:c,getLocale:f,getCurrentDate:s}=iu(e,o);let h;const y=sr(e),m=Ao(y),b=t.ref(null),V=t.ref(Tt()),p=t.ref(f()),F=t.computed(()=>Tt()),M=t.computed(()=>f()),T=t.computed(()=>s()),x=t.ref(je(V.value,p.value)),q=t.ref(e.defaultView),B=t.computed(()=>o.lang.rtl===!0?"right":"left"),A=t.ref(B.value),K=t.ref(B.value),E=x.value.year,D=t.ref(E-E%Qe-(E<0?Qe:0)),$=t.ref(null),C=t.computed(()=>{const d=e.landscape===!0?"landscape":"portrait";return`q-date q-date--${d} q-date--${d}-${e.minimal===!0?"minimal":"standard"}`+(r.value===!0?" q-date--dark q-dark":"")+(e.bordered===!0?" q-date--bordered":"")+(e.square===!0?" q-date--square no-border-radius":"")+(e.flat===!0?" q-date--flat no-shadow":"")+(e.disable===!0?" disabled":e.readonly===!0?" q-date--readonly":"")}),j=t.computed(()=>e.color||"primary"),w=t.computed(()=>e.textColor||"white"),z=t.computed(()=>e.emitImmediately===!0&&e.multiple!==!0&&e.range!==!0),O=t.computed(()=>Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue!==null&&e.modelValue!==void 0?[e.modelValue]:[]),W=t.computed(()=>O.value.filter(d=>typeof d=="string").map(d=>$e(d,V.value,p.value)).filter(d=>d.dateHash!==null&&d.day!==null&&d.month!==null&&d.year!==null)),L=t.computed(()=>{const d=g=>$e(g,V.value,p.value);return O.value.filter(g=>_i(g)===!0&&g.from!==void 0&&g.to!==void 0).map(g=>({from:d(g.from),to:d(g.to)})).filter(g=>g.from.dateHash!==null&&g.to.dateHash!==null&&g.from.dateHash<g.to.dateHash)}),X=t.computed(()=>e.calendar!=="persian"?d=>new Date(d.year,d.month-1,d.day):d=>{const g=co(d.year,d.month,d.day);return new Date(g.gy,g.gm-1,g.gd)}),ee=t.computed(()=>e.calendar==="persian"?Xe:(d,g,_)=>vu(new Date(d.year,d.month-1,d.day,d.hour,d.minute,d.second,d.millisecond),g===void 0?V.value:g,_===void 0?p.value:_,d.year,d.timezoneOffset)),k=t.computed(()=>W.value.length+L.value.reduce((d,g)=>d+1+ya(X.value(g.to),X.value(g.from)),0)),S=t.computed(()=>{if(e.title!==void 0&&e.title!==null&&e.title.length!==0)return e.title;if($.value!==null){const _=$.value.init,H=X.value(_);return p.value.daysShort[H.getDay()]+", "+p.value.monthsShort[_.month-1]+" "+_.day+_t+"?"}if(k.value===0)return _t;if(k.value>1)return`${k.value} ${p.value.pluralDay}`;const d=W.value[0],g=X.value(d);return isNaN(g.valueOf())===!0?_t:p.value.headerTitle!==void 0?p.value.headerTitle(g,d):p.value.daysShort[g.getDay()]+", "+p.value.monthsShort[d.month-1]+" "+d.day}),U=t.computed(()=>W.value.concat(L.value.map(g=>g.from)).sort((g,_)=>g.year-_.year||g.month-_.month)[0]),I=t.computed(()=>W.value.concat(L.value.map(g=>g.to)).sort((g,_)=>_.year-g.year||_.month-g.month)[0]),J=t.computed(()=>{if(e.subtitle!==void 0&&e.subtitle!==null&&e.subtitle.length!==0)return e.subtitle;if(k.value===0)return _t;if(k.value>1){const d=U.value,g=I.value,_=p.value.monthsShort;return _[d.month-1]+(d.year!==g.year?" "+d.year+_t+_[g.month-1]+" ":d.month!==g.month?_t+_[g.month-1]:"")+" "+g.year}return W.value[0].year}),Z=t.computed(()=>{const d=[o.iconSet.datetime.arrowLeft,o.iconSet.datetime.arrowRight];return o.lang.rtl===!0?d.reverse():d}),G=t.computed(()=>e.firstDayOfWeek!==void 0?Number(e.firstDayOfWeek):p.value.firstDayOfWeek),ie=t.computed(()=>{const d=p.value.daysShort,g=G.value;return g>0?d.slice(g,7).concat(d.slice(0,g)):d}),R=t.computed(()=>{const d=x.value;return e.calendar!=="persian"?new Date(d.year,d.month,0).getDate():rn(d.year,d.month)}),be=t.computed(()=>typeof e.eventColor=="function"?e.eventColor:()=>e.eventColor),ue=t.computed(()=>{if(e.navigationMinYearMonth===void 0)return null;const d=e.navigationMinYearMonth.split("/");return{year:parseInt(d[0],10),month:parseInt(d[1],10)}}),fe=t.computed(()=>{if(e.navigationMaxYearMonth===void 0)return null;const d=e.navigationMaxYearMonth.split("/");return{year:parseInt(d[0],10),month:parseInt(d[1],10)}}),xe=t.computed(()=>{const d={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return ue.value!==null&&ue.value.year>=x.value.year&&(d.year.prev=!1,ue.value.year===x.value.year&&ue.value.month>=x.value.month&&(d.month.prev=!1)),fe.value!==null&&fe.value.year<=x.value.year&&(d.year.next=!1,fe.value.year===x.value.year&&fe.value.month<=x.value.month&&(d.month.next=!1)),d}),Ne=t.computed(()=>{const d={};return W.value.forEach(g=>{const _=Ze(g);d[_]===void 0&&(d[_]=[]),d[_].push(g.day)}),d}),Le=t.computed(()=>{const d={};return L.value.forEach(g=>{const _=Ze(g.from),H=Ze(g.to);if(d[_]===void 0&&(d[_]=[]),d[_].push({from:g.from.day,to:_===H?g.to.day:void 0,range:g}),_<H){let N;const{year:ne,month:Q}=g.from,te=Q<12?{year:ne,month:Q+1}:{year:ne+1,month:1};for(;(N=Ze(te))<=H;)d[N]===void 0&&(d[N]=[]),d[N].push({from:void 0,to:N===H?g.to.day:void 0,range:g}),te.month++,te.month>12&&(te.year++,te.month=1)}}),d}),Ve=t.computed(()=>{if($.value===null)return;const{init:d,initHash:g,final:_,finalHash:H}=$.value,[N,ne]=g<=H?[d,_]:[_,d],Q=Ze(N),te=Ze(ne);if(Q!==we.value&&te!==we.value)return;const oe={};return Q===we.value?(oe.from=N.day,oe.includeFrom=!0):oe.from=1,te===we.value?(oe.to=ne.day,oe.includeTo=!0):oe.to=R.value,oe}),we=t.computed(()=>Ze(x.value)),lt=t.computed(()=>{const d={};if(e.options===void 0){for(let _=1;_<=R.value;_++)d[_]=!0;return d}const g=typeof e.options=="function"?e.options:_=>e.options.includes(_);for(let _=1;_<=R.value;_++){const H=we.value+"/"+re(_);d[_]=g(H)}return d}),zt=t.computed(()=>{const d={};if(e.events===void 0)for(let g=1;g<=R.value;g++)d[g]=!1;else{const g=typeof e.events=="function"?e.events:_=>e.events.includes(_);for(let _=1;_<=R.value;_++){const H=we.value+"/"+re(_);d[_]=g(H)===!0&&be.value(H)}}return d}),ot=t.computed(()=>{let d,g;const{year:_,month:H}=x.value;if(e.calendar!=="persian")d=new Date(_,H-1,1),g=new Date(_,H-1,0).getDate();else{const N=co(_,H,1);d=new Date(N.gy,N.gm-1,N.gd);let ne=H-1,Q=_;ne===0&&(ne=12,Q--),g=rn(Q,ne)}return{days:d.getDay()-G.value-1,endDay:g}}),Ee=t.computed(()=>{const d=[],{days:g,endDay:_}=ot.value,H=g<0?g+7:g;if(H<6)for(let Q=_-H;Q<=_;Q++)d.push({i:Q,fill:!0});const N=d.length;for(let Q=1;Q<=R.value;Q++){const te={i:Q,event:zt.value[Q],classes:[]};lt.value[Q]===!0&&(te.in=!0,te.flat=!0),d.push(te)}if(Ne.value[we.value]!==void 0&&Ne.value[we.value].forEach(Q=>{const te=N+Q-1;Object.assign(d[te],{selected:!0,unelevated:!0,flat:!1,color:j.value,textColor:w.value})}),Le.value[we.value]!==void 0&&Le.value[we.value].forEach(Q=>{if(Q.from!==void 0){const te=N+Q.from-1,oe=N+(Q.to||R.value)-1;for(let Te=te;Te<=oe;Te++)Object.assign(d[Te],{range:Q.range,unelevated:!0,color:j.value,textColor:w.value});Object.assign(d[te],{rangeFrom:!0,flat:!1}),Q.to!==void 0&&Object.assign(d[oe],{rangeTo:!0,flat:!1})}else if(Q.to!==void 0){const te=N+Q.to-1;for(let oe=N;oe<=te;oe++)Object.assign(d[oe],{range:Q.range,unelevated:!0,color:j.value,textColor:w.value});Object.assign(d[te],{flat:!1,rangeTo:!0})}else{const te=N+R.value-1;for(let oe=N;oe<=te;oe++)Object.assign(d[oe],{range:Q.range,unelevated:!0,color:j.value,textColor:w.value})}}),Ve.value!==void 0){const Q=N+Ve.value.from-1,te=N+Ve.value.to-1;for(let oe=Q;oe<=te;oe++)d[oe].color=j.value,d[oe].editRange=!0;Ve.value.includeFrom===!0&&(d[Q].editRangeFrom=!0),Ve.value.includeTo===!0&&(d[te].editRangeTo=!0)}x.value.year===T.value.year&&x.value.month===T.value.month&&(d[N+T.value.day-1].today=!0);const ne=d.length%7;if(ne>0){const Q=7-ne;for(let te=1;te<=Q;te++)d.push({i:te,fill:!0})}return d.forEach(Q=>{let te="q-date__calendar-item ";Q.fill===!0?te+="q-date__calendar-item--fill":(te+=`q-date__calendar-item--${Q.in===!0?"in":"out"}`,Q.range!==void 0&&(te+=` q-date__range${Q.rangeTo===!0?"-to":Q.rangeFrom===!0?"-from":""}`),Q.editRange===!0&&(te+=` q-date__edit-range${Q.editRangeFrom===!0?"-from":""}${Q.editRangeTo===!0?"-to":""}`),(Q.range!==void 0||Q.editRange===!0)&&(te+=` text-${Q.color}`)),Q.classes=te}),d}),Ce=t.computed(()=>e.disable===!0?{"aria-disabled":"true"}:{});t.watch(()=>e.modelValue,d=>{if(h===JSON.stringify(d))h=0;else{const g=je(V.value,p.value);Ye(g.year,g.month,g)}}),t.watch(q,()=>{b.value!==null&&a.$el.contains(document.activeElement)===!0&&b.value.focus()}),t.watch(()=>x.value.year+"|"+x.value.month,()=>{l("navigation",{year:x.value.year,month:x.value.month})}),t.watch(F,d=>{st(d,p.value,"mask"),V.value=d}),t.watch(M,d=>{st(V.value,d,"locale"),p.value=d});function Re(d){h=JSON.stringify(d)}function at(){const{year:d,month:g,day:_}=T.value,H={...x.value,year:d,month:g,day:_},N=Ne.value[Ze(H)];(N===void 0||N.includes(H.day)===!1)&&$t(H),rt(H.year,H.month)}function wn(d){go(d)===!0&&(q.value=d)}function Yt(d,g){["month","year"].includes(d)&&(d==="month"?Ut:ut)(g===!0?-1:1)}function rt(d,g){q.value="Calendar",Ye(d,g)}function Sn(d,g){if(e.range===!1||!d){$.value=null;return}const _=Object.assign({...x.value},d),H=g!==void 0?Object.assign({...x.value},g):_;$.value={init:_,initHash:Xe(_),final:H,finalHash:Xe(H)},rt(_.year,_.month)}function Tt(){return e.calendar==="persian"?"YYYY/MM/DD":e.mask}function $e(d,g,_){return fu(d,g,_,e.calendar,{hour:0,minute:0,second:0,millisecond:0})}function je(d,g){const _=Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue?[e.modelValue]:[];if(_.length===0)return it();const H=_[_.length-1],N=$e(H.from!==void 0?H.from:H,d,g);return N.dateHash===null?it():N}function it(){let d,g;if(e.defaultYearMonth!==void 0){const _=e.defaultYearMonth.split("/");d=parseInt(_[0],10),g=parseInt(_[1],10)}else{const _=T.value!==void 0?T.value:s();d=_.year,g=_.month}return{year:d,month:g,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:d+"/"+re(g)+"/01"}}function Ut(d){let g=x.value.year,_=Number(x.value.month)+d;_===13?(_=1,g++):_===0&&(_=12,g--),Ye(g,_),z.value===!0&&pt("month")}function ut(d){const g=Number(x.value.year)+d;Ye(g,x.value.month),z.value===!0&&pt("year")}function Qt(d){Ye(d,x.value.month),q.value=e.defaultView==="Years"?"Months":"Calendar",z.value===!0&&pt("year")}function Wt(d){Ye(x.value.year,d),q.value="Calendar",z.value===!0&&pt("month")}function Kt(d,g){const _=Ne.value[g];((_==null?void 0:_.includes(d.day))===!0?yt:$t)(d)}function Fe(d){return{year:d.year,month:d.month,day:d.day}}function Ye(d,g,_){if(ue.value!==null&&d<=ue.value.year&&((g<ue.value.month||d<ue.value.year)&&(g=ue.value.month),d=ue.value.year),fe.value!==null&&d>=fe.value.year&&((g>fe.value.month||d>fe.value.year)&&(g=fe.value.month),d=fe.value.year),_!==void 0){const{hour:N,minute:ne,second:Q,millisecond:te,timezoneOffset:oe,timeHash:Te}=_;Object.assign(x.value,{hour:N,minute:ne,second:Q,millisecond:te,timezoneOffset:oe,timeHash:Te})}const H=d+"/"+re(g)+"/01";H!==x.value.dateHash&&(A.value=x.value.dateHash<H==(o.lang.rtl!==!0)?"left":"right",d!==x.value.year&&(K.value=A.value),t.nextTick(()=>{D.value=d-d%Qe-(d<0?Qe:0),Object.assign(x.value,{year:d,month:g,day:1,dateHash:H})}))}function Bt(d,g,_){const H=d!==null&&d.length===1&&e.multiple===!1?d[0]:d,{reason:N,details:ne}=Xt(g,_);Re(H),l("update:modelValue",H,N,ne)}function pt(d){const g=W.value[0]!==void 0&&W.value[0].dateHash!==null?{...W.value[0]}:{...x.value};t.nextTick(()=>{g.year=x.value.year,g.month=x.value.month;const _=e.calendar!=="persian"?new Date(g.year,g.month,0).getDate():rn(g.year,g.month);g.day=Math.min(Math.max(1,g.day),_);const H=Ue(g),{details:N}=Xt("",g);Re(H),l("update:modelValue",H,d,N)})}function Xt(d,g){return g.from!==void 0?{reason:`${d}-range`,details:{...Fe(g.target),from:Fe(g.from),to:Fe(g.to)}}:{reason:`${d}-day`,details:Fe(g)}}function Ue(d,g,_){return d.from!==void 0?{from:ee.value(d.from,g,_),to:ee.value(d.to,g,_)}:ee.value(d,g,_)}function $t(d){let g;if(e.multiple===!0)if(d.from!==void 0){const _=Xe(d.from),H=Xe(d.to),N=W.value.filter(Q=>Q.dateHash<_||Q.dateHash>H),ne=L.value.filter(({from:Q,to:te})=>te.dateHash<_||Q.dateHash>H);g=N.concat(ne).concat(d).map(Q=>Ue(Q))}else{const _=O.value.slice();_.push(Ue(d)),g=_}else g=Ue(d);Bt(g,"add",d)}function yt(d){if(e.noUnset===!0)return;let g=null;if(e.multiple===!0&&Array.isArray(e.modelValue)===!0){const _=Ue(d);d.from!==void 0?g=e.modelValue.filter(H=>H.from!==void 0?H.from!==_.from&&H.to!==_.to:!0):g=e.modelValue.filter(H=>H!==_),g.length===0&&(g=null)}Bt(g,"remove",d)}function st(d,g,_){const H=W.value.concat(L.value).map(ne=>Ue(ne,d,g)).filter(ne=>ne.from!==void 0?ne.from.dateHash!==null&&ne.to.dateHash!==null:ne.dateHash!==null),N=(e.multiple===!0?H:H[0])||null;Re(N),l("update:modelValue",N,_)}function ct(){if(e.minimal!==!0)return t.h("div",{class:"q-date__header "+c.value},[t.h("div",{class:"relative-position"},[t.h(t.Transition,{name:"q-transition--fade"},()=>t.h("div",{key:"h-yr-"+J.value,class:"q-date__header-subtitle q-date__header-link "+(q.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:u.value,...i("vY",{onClick(){q.value="Years"},onKeyup(d){d.keyCode===13&&(q.value="Years")}})},[J.value]))]),t.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[t.h("div",{class:"relative-position col"},[t.h(t.Transition,{name:"q-transition--fade"},()=>t.h("div",{key:"h-sub"+S.value,class:"q-date__header-title-label q-date__header-link "+(q.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:u.value,...i("vC",{onClick(){q.value="Calendar"},onKeyup(d){d.keyCode===13&&(q.value="Calendar")}})},[S.value]))]),e.todayBtn===!0?t.h(Me,{class:"q-date__header-today self-start",icon:o.iconSet.datetime.today,ariaLabel:o.lang.date.today,flat:!0,size:"sm",round:!0,tabindex:u.value,onClick:at}):null])])}function He({label:d,type:g,key:_,dir:H,goTo:N,boundaries:ne,cls:Q}){return[t.h("div",{class:"row items-center q-date__arrow"},[t.h(Me,{round:!0,dense:!0,size:"sm",flat:!0,icon:Z.value[0],ariaLabel:g==="Years"?o.lang.date.prevYear:o.lang.date.prevMonth,tabindex:u.value,disable:ne.prev===!1,...i("go-#"+g,{onClick(){N(-1)}})})]),t.h("div",{class:"relative-position overflow-hidden flex flex-center"+Q},[t.h(t.Transition,{name:"q-transition--jump-"+H},()=>t.h("div",{key:_},[t.h(Me,{flat:!0,dense:!0,noCaps:!0,label:d,tabindex:u.value,...i("view#"+g,{onClick:()=>{q.value=g}})})]))]),t.h("div",{class:"row items-center q-date__arrow"},[t.h(Me,{round:!0,dense:!0,size:"sm",flat:!0,icon:Z.value[1],ariaLabel:g==="Years"?o.lang.date.nextYear:o.lang.date.nextMonth,tabindex:u.value,disable:ne.next===!1,...i("go+#"+g,{onClick(){N(1)}})})])]}const kn={Calendar:()=>[t.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[t.h("div",{class:"q-date__navigation row items-center no-wrap"},He({label:p.value.months[x.value.month-1],type:"Months",key:x.value.month,dir:A.value,goTo:Ut,boundaries:xe.value.month,cls:" col"}).concat(He({label:x.value.year,type:"Years",key:x.value.year,dir:K.value,goTo:ut,boundaries:xe.value.year,cls:""}))),t.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},ie.value.map(d=>t.h("div",{class:"q-date__calendar-item"},[t.h("div",d)]))),t.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[t.h(t.Transition,{name:"q-transition--slide-"+A.value},()=>t.h("div",{key:we.value,class:"q-date__calendar-days fit"},Ee.value.map(d=>t.h("div",{class:d.classes},[d.in===!0?t.h(Me,{class:d.today===!0?"q-date__today":"",dense:!0,flat:d.flat,unelevated:d.unelevated,color:d.color,textColor:d.textColor,label:d.i,tabindex:u.value,...i("day#"+d.i,{onClick:()=>{xn(d.i)},onMouseover:()=>{Cn(d.i)}})},d.event!==!1?()=>t.h("div",{class:"q-date__event bg-"+d.event}):null):t.h("div",""+d.i)]))))])])],Months(){const d=x.value.year===T.value.year,g=H=>ue.value!==null&&x.value.year===ue.value.year&&ue.value.month>H||fe.value!==null&&x.value.year===fe.value.year&&fe.value.month<H,_=p.value.monthsShort.map((H,N)=>{const ne=x.value.month===N+1;return t.h("div",{class:"q-date__months-item flex flex-center"},[t.h(Me,{class:d===!0&&T.value.month===N+1?"q-date__today":null,flat:ne!==!0,label:H,unelevated:ne,color:ne===!0?j.value:null,textColor:ne===!0?w.value:null,tabindex:u.value,disable:g(N+1),...i("month#"+N,{onClick:()=>{Wt(N+1)}})})])});return e.yearsInMonthView===!0&&_.unshift(t.h("div",{class:"row no-wrap full-width"},[He({label:x.value.year,type:"Years",key:x.value.year,dir:K.value,goTo:ut,boundaries:xe.value.year,cls:" col"})])),t.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},_)},Years(){const d=D.value,g=d+Qe,_=[],H=N=>ue.value!==null&&ue.value.year>N||fe.value!==null&&fe.value.year<N;for(let N=d;N<=g;N++){const ne=x.value.year===N;_.push(t.h("div",{class:"q-date__years-item flex flex-center"},[t.h(Me,{key:"yr"+N,class:T.value.year===N?"q-date__today":null,flat:!ne,label:N,dense:!0,unelevated:ne,color:ne===!0?j.value:null,textColor:ne===!0?w.value:null,tabindex:u.value,disable:H(N),...i("yr#"+N,{onClick:()=>{Qt(N)}})})]))}return t.h("div",{class:"q-date__view q-date__years flex flex-center"},[t.h("div",{class:"col-auto"},[t.h(Me,{round:!0,dense:!0,flat:!0,icon:Z.value[0],ariaLabel:o.lang.date.prevRangeYears(Qe),tabindex:u.value,disable:H(d),...i("y-",{onClick:()=>{D.value-=Qe}})})]),t.h("div",{class:"q-date__years-content col self-stretch row items-center"},_),t.h("div",{class:"col-auto"},[t.h(Me,{round:!0,dense:!0,flat:!0,icon:Z.value[1],ariaLabel:o.lang.date.nextRangeYears(Qe),tabindex:u.value,disable:H(g),...i("y+",{onClick:()=>{D.value+=Qe}})})])])}};function xn(d){const g={...x.value,day:d};if(e.range===!1){Kt(g,we.value);return}if($.value===null){const _=Ee.value.find(N=>N.fill!==!0&&N.i===d);if(e.noUnset!==!0&&_.range!==void 0){yt({target:g,from:_.range.from,to:_.range.to});return}if(_.selected===!0){yt(g);return}const H=Xe(g);$.value={init:g,initHash:H,final:g,finalHash:H},l("rangeStart",Fe(g))}else{const _=$.value.initHash,H=Xe(g),N=_<=H?{from:$.value.init,to:g}:{from:g,to:$.value.init};$.value=null,$t(_===H?g:{target:g,...N}),l("rangeEnd",{from:Fe(N.from),to:Fe(N.to)})}}function Cn(d){if($.value!==null){const g={...x.value,day:d};Object.assign($.value,{final:g,finalHash:Xe(g)})}}return Object.assign(a,{setToday:at,setView:wn,offsetCalendar:Yt,setCalendarTo:rt,setEditingRange:Sn}),()=>{const d=[t.h("div",{class:"q-date__content col relative-position"},[t.h(t.Transition,{name:"q-transition--fade"},kn[q.value])])],g=ke(n.default);return g!==void 0&&d.push(t.h("div",{class:"q-date__actions"},g)),e.name!==void 0&&e.disable!==!0&&m(d,"push"),t.h("div",{class:C.value,...Ce.value},[ct(),t.h("div",{ref:b,class:"q-date__main col column",tabindex:-1},d)])}}}),Sa=ae({name:"QPopupProxy",props:{...Uo,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(e,{slots:n,emit:l,attrs:a}){const{proxy:o}=t.getCurrentInstance(),{$q:r}=o,i=t.ref(!1),u=t.ref(null),c=t.computed(()=>parseInt(e.breakpoint,10)),{canShow:f}=Qo({showing:i});function s(){return r.screen.width<c.value||r.screen.height<c.value?"dialog":"menu"}const h=t.ref(s()),y=t.computed(()=>h.value==="menu"?{maxHeight:"99vh"}:{});t.watch(()=>s(),V=>{i.value!==!0&&(h.value=V)});function m(V){i.value=!0,l("show",V)}function b(V){i.value=!1,h.value=s(),l("hide",V)}return Object.assign(o,{show(V){f(V)===!0&&u.value.show(V)},hide(V){u.value.hide(V)},toggle(V){u.value.toggle(V)}}),Dt(o,"currentComponent",()=>({type:h.value,ref:u.value})),()=>{const V={ref:u,...y.value,...a,onShow:m,onHide:b};let p;return h.value==="dialog"?p=sa:(p=bn,Object.assign(V,{target:e.target,contextMenu:e.contextMenu,noParentEvent:!0,separateClosePopup:!0})),t.h(p,V,n.default)}}}),bo={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},fn={"#":{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:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},ka=Object.keys(fn);ka.forEach(e=>{fn[e].regex=new RegExp(fn[e].pattern)});const hu=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+ka.join("")+"])|(.)","g"),po=/[.*+?^${}()|[\]\\]/g,he="",gu={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function bu(e,n,l,a){let o,r,i,u,c,f;const s=t.ref(null),h=t.ref(m());function y(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}t.watch(()=>e.type+e.autogrow,V),t.watch(()=>e.mask,E=>{if(E!==void 0)p(h.value,!0);else{const D=A(h.value);V(),e.modelValue!==D&&n("update:modelValue",D)}}),t.watch(()=>e.fillMask+e.reverseFillMask,()=>{s.value===!0&&p(h.value,!0)}),t.watch(()=>e.unmaskedValue,()=>{s.value===!0&&p(h.value)});function m(){if(V(),s.value===!0){const E=q(A(e.modelValue));return e.fillMask!==!1?K(E):E}return e.modelValue}function b(E){if(E<o.length)return o.slice(-E);let D="",$=o;const C=$.indexOf(he);if(C!==-1){for(let j=E-$.length;j>0;j--)D+=he;$=$.slice(0,C)+D+$.slice(C)}return $}function V(){if(s.value=e.mask!==void 0&&e.mask.length!==0&&y(),s.value===!1){u=void 0,o="",r="";return}const E=bo[e.mask]===void 0?e.mask:bo[e.mask],D=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",$=D.replace(po,"\\$&"),C=[],j=[],w=[];let z=e.reverseFillMask===!0,O="",W="";E.replace(hu,(k,S,U,I,J)=>{if(I!==void 0){const Z=fn[I];w.push(Z),W=Z.negate,z===!0&&(j.push("(?:"+W+"+)?("+Z.pattern+"+)?(?:"+W+"+)?("+Z.pattern+"+)?"),z=!1),j.push("(?:"+W+"+)?("+Z.pattern+")?")}else if(U!==void 0)O="\\"+(U==="\\"?"":U),w.push(U),C.push("([^"+O+"]+)?"+O+"?");else{const Z=S!==void 0?S:J;O=Z==="\\"?"\\\\\\\\":Z.replace(po,"\\\\$&"),w.push(Z),C.push("([^"+O+"]+)?"+O+"?")}});const L=new RegExp("^"+C.join("")+"("+(O===""?".":"[^"+O+"]")+"+)?"+(O===""?"":"["+O+"]*")+"$"),X=j.length-1,ee=j.map((k,S)=>S===0&&e.reverseFillMask===!0?new RegExp("^"+$+"*"+k):S===X?new RegExp("^"+k+"("+(W===""?".":W)+"+)?"+(e.reverseFillMask===!0?"$":$+"*")):new RegExp("^"+k));i=w,u=k=>{const S=L.exec(e.reverseFillMask===!0?k:k.slice(0,w.length+1));S!==null&&(k=S.slice(1).join(""));const U=[],I=ee.length;for(let J=0,Z=k;J<I;J++){const G=ee[J].exec(Z);if(G===null)break;Z=Z.slice(G.shift().length),U.push(...G)}return U.length!==0?U.join(""):k},o=w.map(k=>typeof k=="string"?k:he).join(""),r=o.split(he).join(D)}function p(E,D,$){const C=a.value,j=C.selectionEnd,w=C.value.length-j,z=A(E);D===!0&&V();const O=q(z),W=e.fillMask!==!1?K(O):O,L=h.value!==W;C.value!==W&&(C.value=W),L===!0&&(h.value=W),document.activeElement===C&&t.nextTick(()=>{if(W===r){const ee=e.reverseFillMask===!0?r.length:0;C.setSelectionRange(ee,ee,"forward");return}if($==="insertFromPaste"&&e.reverseFillMask!==!0){const ee=C.selectionEnd;let k=j-1;for(let S=c;S<=k&&S<ee;S++)o[S]!==he&&k++;M.right(C,k);return}if(["deleteContentBackward","deleteContentForward"].indexOf($)!==-1){const ee=e.reverseFillMask===!0?j===0?W.length>O.length?1:0:Math.max(0,W.length-(W===r?0:Math.min(O.length,w)+1))+1:j;C.setSelectionRange(ee,ee,"forward");return}if(e.reverseFillMask===!0)if(L===!0){const ee=Math.max(0,W.length-(W===r?0:Math.min(O.length,w+1)));ee===1&&j===1?C.setSelectionRange(ee,ee,"forward"):M.rightReverse(C,ee)}else{const ee=W.length-w;C.setSelectionRange(ee,ee,"backward")}else if(L===!0){const ee=Math.max(0,o.indexOf(he),Math.min(O.length,j)-1);M.right(C,ee)}else{const ee=j-1;M.right(C,ee)}});const X=e.unmaskedValue===!0?A(W):W;String(e.modelValue)!==X&&(e.modelValue!==null||X!=="")&&l(X,!0)}function F(E,D,$){const C=q(A(E.value));D=Math.max(0,o.indexOf(he),Math.min(C.length,D)),c=D,E.setSelectionRange(D,$,"forward")}const M={left(E,D){const $=o.slice(D-1).indexOf(he)===-1;let C=Math.max(0,D-1);for(;C>=0;C--)if(o[C]===he){D=C,$===!0&&D++;break}if(C<0&&o[D]!==void 0&&o[D]!==he)return M.right(E,0);D>=0&&E.setSelectionRange(D,D,"backward")},right(E,D){const $=E.value.length;let C=Math.min($,D+1);for(;C<=$;C++)if(o[C]===he){D=C;break}else o[C-1]===he&&(D=C);if(C>$&&o[D-1]!==void 0&&o[D-1]!==he)return M.left(E,$);E.setSelectionRange(D,D,"forward")},leftReverse(E,D){const $=b(E.value.length);let C=Math.max(0,D-1);for(;C>=0;C--)if($[C-1]===he){D=C;break}else if($[C]===he&&(D=C,C===0))break;if(C<0&&$[D]!==void 0&&$[D]!==he)return M.rightReverse(E,0);D>=0&&E.setSelectionRange(D,D,"backward")},rightReverse(E,D){const $=E.value.length,C=b($),j=C.slice(0,D+1).indexOf(he)===-1;let w=Math.min($,D+1);for(;w<=$;w++)if(C[w-1]===he){D=w,D>0&&j===!0&&D--;break}if(w>$&&C[D-1]!==void 0&&C[D-1]!==he)return M.leftReverse(E,$);E.setSelectionRange(D,D,"forward")}};function T(E){n("click",E),f=void 0}function x(E){if(n("keydown",E),ul(E)===!0||E.altKey===!0)return;const D=a.value,$=D.selectionStart,C=D.selectionEnd;if(E.shiftKey||(f=void 0),E.keyCode===37||E.keyCode===39){E.shiftKey&&f===void 0&&(f=D.selectionDirection==="forward"?$:C);const j=M[(E.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(E.preventDefault(),j(D,f===$?C:$),E.shiftKey){const w=D.selectionStart;D.setSelectionRange(Math.min(f,w),Math.max(f,w),"forward")}}else E.keyCode===8&&e.reverseFillMask!==!0&&$===C?(M.left(D,$),D.setSelectionRange(D.selectionStart,C,"backward")):E.keyCode===46&&e.reverseFillMask===!0&&$===C&&(M.rightReverse(D,C),D.setSelectionRange($,D.selectionEnd,"forward"))}function q(E){if(E==null||E==="")return"";if(e.reverseFillMask===!0)return B(E);const D=i;let $=0,C="";for(let j=0;j<D.length;j++){const w=E[$],z=D[j];if(typeof z=="string")C+=z,w===z&&$++;else if(w!==void 0&&z.regex.test(w))C+=z.transform!==void 0?z.transform(w):w,$++;else return C}return C}function B(E){const D=i,$=o.indexOf(he);let C=E.length-1,j="";for(let w=D.length-1;w>=0&&C!==-1;w--){const z=D[w];let O=E[C];if(typeof z=="string")j=z+j,O===z&&C--;else if(O!==void 0&&z.regex.test(O))do j=(z.transform!==void 0?z.transform(O):O)+j,C--,O=E[C];while($===w&&O!==void 0&&z.regex.test(O));else return j}return j}function A(E){return typeof E!="string"||u===void 0?typeof E=="number"?u(""+E):E:u(E)}function K(E){return r.length-E.length<=0?E:e.reverseFillMask===!0&&E.length!==0?r.slice(0,-E.length)+E:E+r.slice(E.length)}return{innerValue:h,hasMask:s,moveCursorForPaste:F,updateMaskValue:p,onMaskedKeydown:x,onMaskedClick:T}}function pu(e,n){function l(){const a=e.modelValue;try{const o="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(a)===a&&("length"in a?Array.from(a):[a]).forEach(r=>{o.items.add(r)}),{files:o.files}}catch{return{files:void 0}}}return t.computed(()=>{if(e.type==="file")return l()})}const ol=ae({name:"QInput",inheritAttrs:!1,props:{...yn,...gu,...hn,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:[...vl,"paste","change","keydown","click","animationend"],setup(e,{emit:n,attrs:l}){const{proxy:a}=t.getCurrentInstance(),{$q:o}=a,r={};let i=NaN,u,c,f=null,s;const h=t.ref(null),y=Lo(e),{innerValue:m,hasMask:b,moveCursorForPaste:V,updateMaskValue:p,onMaskedKeydown:F,onMaskedClick:M}=bu(e,n,O,h),T=pu(e),x=t.computed(()=>It(m.value)),q=da(w),B=ml({changeEvent:!0}),A=t.computed(()=>e.type==="textarea"||e.autogrow===!0),K=t.computed(()=>A.value===!0||["text","search","url","tel","password"].includes(e.type)),E=t.computed(()=>{const S={...B.splitAttrs.listeners.value,onInput:w,onPaste:j,onChange:L,onBlur:X,onFocus:De};return S.onCompositionstart=S.onCompositionupdate=S.onCompositionend=q,b.value===!0&&(S.onKeydown=F,S.onClick=M),e.autogrow===!0&&(S.onAnimationend=z),S}),D=t.computed(()=>{const S={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:y.value,...B.splitAttrs.attributes.value,id:B.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return A.value===!1&&(S.type=e.type),e.autogrow===!0&&(S.rows=1),S});t.watch(()=>e.type,()=>{h.value&&(h.value.value=e.modelValue)}),t.watch(()=>e.modelValue,S=>{if(b.value===!0){if(c===!0&&(c=!1,String(S)===i))return;p(S)}else m.value!==S&&(m.value=S,e.type==="number"&&r.hasOwnProperty("value")===!0&&(u===!0?u=!1:delete r.value));e.autogrow===!0&&t.nextTick(W)}),t.watch(()=>e.autogrow,S=>{S===!0?t.nextTick(W):h.value!==null&&l.rows>0&&(h.value.style.height="auto")}),t.watch(()=>e.dense,()=>{e.autogrow===!0&&t.nextTick(W)});function $(){gn(()=>{const S=document.activeElement;h.value!==null&&h.value!==S&&(S===null||S.id!==B.targetUid.value)&&h.value.focus({preventScroll:!0})})}function C(){var S;(S=h.value)==null||S.select()}function j(S){if(b.value===!0&&e.reverseFillMask!==!0){const U=S.target;V(U,U.selectionStart,U.selectionEnd)}n("paste",S)}function w(S){if(!S||!S.target)return;if(e.type==="file"){n("update:modelValue",S.target.files);return}const U=S.target.value;if(S.target.qComposing===!0){r.value=U;return}if(b.value===!0)p(U,!1,S.inputType);else if(O(U),K.value===!0&&S.target===document.activeElement){const{selectionStart:I,selectionEnd:J}=S.target;I!==void 0&&J!==void 0&&t.nextTick(()=>{S.target===document.activeElement&&U.indexOf(S.target.value)===0&&S.target.setSelectionRange(I,J)})}e.autogrow===!0&&W()}function z(S){n("animationend",S),W()}function O(S,U){s=()=>{f=null,e.type!=="number"&&r.hasOwnProperty("value")===!0&&delete r.value,e.modelValue!==S&&i!==S&&(i=S,U===!0&&(c=!0),n("update:modelValue",S),t.nextTick(()=>{i===S&&(i=NaN)})),s=void 0},e.type==="number"&&(u=!0,r.value=S),e.debounce!==void 0?(f!==null&&clearTimeout(f),r.value=S,f=setTimeout(s,e.debounce)):s()}function W(){requestAnimationFrame(()=>{const S=h.value;if(S!==null){const U=S.parentNode.style,{scrollTop:I}=S,{overflowY:J,maxHeight:Z}=o.platform.is.firefox===!0?{}:window.getComputedStyle(S),G=J!==void 0&&J!=="scroll";G===!0&&(S.style.overflowY="hidden"),U.marginBottom=S.scrollHeight-1+"px",S.style.height="1px",S.style.height=S.scrollHeight+"px",G===!0&&(S.style.overflowY=parseInt(Z,10)<S.scrollHeight?"auto":"hidden"),U.marginBottom="",S.scrollTop=I}})}function L(S){q(S),f!==null&&(clearTimeout(f),f=null),s==null||s(),n("change",S.target.value)}function X(S){S!==void 0&&De(S),f!==null&&(clearTimeout(f),f=null),s==null||s(),u=!1,c=!1,delete r.value,e.type!=="file"&&setTimeout(()=>{h.value!==null&&(h.value.value=m.value!==void 0?m.value:"")})}function ee(){return r.hasOwnProperty("value")===!0?r.value:m.value!==void 0?m.value:""}t.onBeforeUnmount(()=>{X()}),t.onMounted(()=>{e.autogrow===!0&&W()}),Object.assign(B,{innerValue:m,fieldClass:t.computed(()=>`q-${A.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:t.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:h,emitValue:O,hasValue:x,floatingLabel:t.computed(()=>x.value===!0&&(e.type!=="number"||isNaN(m.value)===!1)||It(e.displayValue)),getControl:()=>t.h(A.value===!0?"textarea":"input",{ref:h,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...D.value,...E.value,...e.type!=="file"?{value:ee()}:T.value}),getShadowControl:()=>t.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(A.value===!0?"":" text-no-wrap")},[t.h("span",{class:"invisible"},ee()),t.h("span",e.shadowText)])});const k=hl(B);return Object.assign(a,{focus:$,select:C,getNativeElement:()=>h.value}),Dt(a,"nativeEl",()=>h.value),k}});function yo(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;const n=parseInt(e,10);return isNaN(n)?0:n}const xa=rl({name:"close-popup",beforeMount(e,{value:n}){const l={depth:yo(n),handler(a){l.depth!==0&&setTimeout(()=>{const o=Rr(e);o!==void 0&&Fr(o,a,l.depth)})},handlerKey(a){tt(a,13)===!0&&l.handler(a)}};e.__qclosepopup=l,e.addEventListener("click",l.handler),e.addEventListener("keyup",l.handlerKey)},updated(e,{value:n,oldValue:l}){n!==l&&(e.__qclosepopup.depth=yo(n))},beforeUnmount(e){const n=e.__qclosepopup;e.removeEventListener("click",n.handler),e.removeEventListener("keyup",n.handlerKey),delete e.__qclosepopup}});function yu(e){var n,l;return{entity:e.entity,dataCy:e.dataCy,defaultLabel:e.defaultLabel,routeName:e.routeName,shouldRender:e.customShouldRender||(({store:a})=>e.storeField?!!a[e.storeField]:!0),getLabel:e.getLabel||(e.labelField?({store:a})=>{var o;return e.storeField&&((o=a[e.storeField])==null?void 0:o[e.labelField])||e.defaultLabel}:void 0),getColor:e.customGetColor||(({store:a})=>e.storeField&&a[e.storeField]?"primary":"dark"),getRouteParams:e.routeParamKey&&e.routeParamField?({store:a})=>{var o;return{[e.routeParamKey]:e.storeField&&((o=a[e.storeField])==null?void 0:o[e.routeParamField])}}:void 0,clearActions:[...((n=e.clearMethods)==null?void 0:n.map(a=>({store:o})=>{var r;return(r=o[a])==null?void 0:r.call(o)}))||[],...((l=e.navActions)==null?void 0:l.map(a=>({navStore:o})=>a(o)))||[]]}}const Ca=/^\d{2}-\d{2}-\d{4}$/;function al(e){const n=e.getTimezoneOffset()*6e4;return new Date(e.getTime()+n)}function wu(e){const n=/^\d{4}-\d{2}-\d{2}$/,l=/^\d{2}-\d{2}-\d{4}$/;if(n.test(e))return e;if(l.test(e)){const a=e.split("-");return`${a[2]}-${a[1]}-${a[0]}`}return console.warn("'Invalid date format. Expected DD-MM-YYYY' or 'YYYY-MM-DD' but got: "+e),""}function bl(e,n,l,a=[]){const o=new Date(e);if(n){const r=al(new Date(n));if(o<r)return!1}if(l){const r=al(new Date(l));if(o>r)return!1}return!a.some(r=>{if(typeof r=="string"||r instanceof Date){const i=new Date(r);return o.getFullYear()===i.getFullYear()&&o.getMonth()===i.getMonth()&&o.getDate()===i.getDate()}else{const i=new Date(r.start_date);i.setDate(i.getDate()-1);const u=new Date(r.end_date);return o>=i&&o<=u}})}const ft={validateAndUpdate(e,n,l){if(!Ca.test(n))return e;const a=new Date(n),o=new Date(l?e.to:e.from);return l?a>o?{from:n,to:n}:{...e,from:n}:a<o?{from:n,to:n}:{...e,to:n}},handlePickerUpdate(e){return e===null?{from:"",to:""}:typeof e=="string"?{from:e,to:e}:e},reset(){return{from:"",to:""}},handleInput(e,n){typeof e=="string"&&n(e)}},_a={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"},Su={class:"columns justify-end"},ku={class:"row items-center justify-end"},xu=t.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:"Field is required"},disabled:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},placeholder:{default:void 0},closeLabel:{default:"Close"}},emits:["update:date"],setup(e,{emit:n}){const l=e,a=n,o=t.useAttrs(),r=t.ref(l.date),i=t.ref(l.date),u=t.computed(()=>s=>bl(s,l.minDate,l.maxDate,l.datesDisabled)),c=s=>{r.value=s,i.value=s,a("update:date",s)},f=s=>{typeof s=="string"&&(r.value=s,i.value=s,a("update:date",s))};return t.watch(()=>l.date,s=>{s!==r.value&&(r.value=s,i.value=s)}),(s,h)=>(t.openBlock(),t.createElementBlock("div",Su,[t.createVNode(ol,t.mergeProps(t.unref(o),{class:"full-width","model-value":i.value,mask:"##-##-####",dense:"",label:s.label,"data-cy":"datePick","onUpdate:modelValue":f,rules:s.required?[y=>!!y||s.requiredErrorMessage]:[],disable:s.disabled,outlined:s.outlined,placeholder:s.placeholder}),{append:t.withCtx(()=>[t.createVNode(qe,{name:"event",class:"cursor-pointer"},{default:t.withCtx(()=>[t.createVNode(Sa,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:t.withCtx(()=>[t.createVNode(wa,{mask:"DD-MM-YYYY","model-value":r.value,options:u.value,disable:s.disabled,"onUpdate:modelValue":c},{default:t.withCtx(()=>[t.createElementVNode("div",ku,[t.withDirectives(t.createVNode(Me,{label:s.closeLabel,color:"primary",flat:""},null,8,["label"]),[[xa]])])]),_:1},8,["model-value","options","disable"])]),_:1})]),_:1})]),_:1},16,["model-value","label","rules","disable","outlined","placeholder"])]))}}),Cu=mn(xu,[["__scopeId","data-v-618766fa"]]),_u={class:"row"},qu={class:"row no-wrap items-center"},Mu={class:"row items-center justify-end"},Vu={key:0,class:"row items-center text-warning text-caption"},Eu={class:"row items-center justify-end q-ml-sm"},Du=t.defineComponent({__name:"DateRange",props:{from:{default:""},to:{default:""},labelStart:{default:"De"},labelEnd:{default:"à"},startDateHint:{default:""},resetLabel:{default:"Reset"},closeLabel:{default:"Close"},locale:{default:()=>_a},required:{type:Boolean,default:!1},requiredErrorMessage:{default:"Field is required"},rules:{default:()=>[]},minDate:{default:void 0},maxDate:{default:void 0},datesDisabled:{default:()=>[]},highlightEvents:{default:()=>[]},disabled:{type:Boolean,default:!1},idCy:{default:"dateRange"}},emits:["update:dateRange"],setup(e,{expose:n,emit:l}){const a=e,o=l,r=t.ref({from:a.from,to:a.to}),i=t.computed(()=>`from-date-${a.idCy}`),u=t.computed(()=>`to-date-${a.idCy}`),c=t.computed(()=>[...a.required?[b=>!!b||a.requiredErrorMessage]:[],...a.rules]),f=t.computed(()=>b=>bl(b,a.minDate,a.maxDate,a.datesDisabled)),s=b=>{ft.handleInput(b,V=>{r.value=ft.validateAndUpdate(r.value,V,!0)})},h=b=>{ft.handleInput(b,V=>{r.value=ft.validateAndUpdate(r.value,V,!1)})},y=b=>{r.value=ft.handlePickerUpdate(b)},m=()=>{r.value=ft.reset()};return t.watch(r,b=>{o("update:dateRange",{...b})},{deep:!0}),t.watch(()=>a.from,b=>{b!==r.value.from&&(r.value.from=b)}),t.watch(()=>a.to,b=>{b!==r.value.to&&(r.value.to=b)}),n({resetDate:m}),(b,V)=>(t.openBlock(),t.createElementBlock("div",_u,[t.createElementVNode("div",qu,[t.createVNode(ol,t.mergeProps(b.$attrs,{"data-cy":i.value,"model-value":r.value.from,mask:"##-##-####",label:b.labelStart,"onUpdate:modelValue":s,rules:c.value,disable:b.disabled,"hide-bottom-space":""}),null,16,["data-cy","model-value","label","rules","disable"]),t.createVNode(ol,t.mergeProps(b.$attrs,{"model-value":r.value.to,mask:"##-##-####",label:b.labelEnd,"hide-bottom-space":"",style:{"margin-left":"10px"},"onUpdate:modelValue":h,"data-cy":u.value,rules:c.value,disable:b.disabled}),null,16,["model-value","label","data-cy","rules","disable"]),t.createVNode(qe,{name:"event",size:"30px",class:"q-ml-sm q-mt-sm cursor-pointer",style:{opacity:"0.55"}},{default:t.withCtx(()=>[t.createVNode(Sa,{cover:"","transition-show":"scale","transition-hide":"scale"},{default:t.withCtx(()=>[t.createVNode(wa,{mask:"DD-MM-YYYY","today-btn":"",range:"",locale:b.locale,modelValue:r.value,"onUpdate:modelValue":[V[0]||(V[0]=p=>r.value=p),y],options:f.value,events:b.highlightEvents,"event-color":"warning",disable:b.disabled},{default:t.withCtx(()=>[t.createElementVNode("div",Mu,[t.withDirectives(t.createVNode(Me,{label:b.closeLabel,color:"primary",flat:""},null,8,["label"]),[[xa]])])]),_:1},8,["locale","modelValue","options","events","disable"])]),_:1})]),_:1})]),b.startDateHint?(t.openBlock(),t.createElementBlock("p",Vu,t.toDisplayString(b.startDateHint),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Eu,[t.createVNode(Me,{class:"q-pa-sm",outlined:"",dense:"","data-cy":"reset-date",onClick:m,label:b.resetLabel},null,8,["label"])])]))}});exports.Breadcrumbs=ja;exports.CheckboxFilter=Di;exports.DATE_FORMAT_REGEX=Ca;exports.DatePicker=Cu;exports.DateRange=Du;exports.Layout=Ji;exports.NavButton=ir;exports.SelectSearch=zi;exports.SelfeeFooter=Ni;exports.SelfeeHeader=Li;exports.UserAvatar=Ki;exports.createBreadcrumb=yu;exports.dateRangeUtils=ft;exports.dateWithoutTimezone=al;exports.defaultLocale=_a;exports.formatDate=wu;exports.isDateSelectable=bl;
|