@selfeesas/shared-components 0.2.6 → 0.2.8

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 l=require("vue"),Ft={xs:18,sm:24,md:32,lg:38,xl:46},pt={size:String};function yt(e,t=Ft){return l.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Yt(e,t,n,i){return Object.defineProperty(e,t,{get:n,set:i,enumerable:!0}),e}function le(e){return l.markRaw(l.defineComponent(e))}function cn(e){return l.markRaw(e)}function ce(e,t){return e!==void 0&&e()||t}function bo(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function be(e,t){return e!==void 0?t.concat(e()):t}function po(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function yo(e,t,n,i,o,r){t.key=i+o;const a=l.h(e,t,n);return o===!0?l.withDirectives(a,r()):a}const yl="0 0 24 24",qt=e=>e,_t=e=>`ionicons ${e}`,dn={"mdi-":e=>`mdi ${e}`,"icon-":qt,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":_t,"ion-ios":_t,"ion-logo":_t,"iconfont ":qt,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":qt},fn={o_:"-outlined",r_:"-round",s_:"-sharp"},vn={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},wo=new RegExp("^("+Object.keys(dn).join("|")+")"),So=new RegExp("^("+Object.keys(fn).join("|")+")"),wl=new RegExp("^("+Object.keys(vn).join("|")+")"),ko=/^[Mm]\s?[-+]?\.?\d/,xo=/^img:/,Co=/^svguse:/,qo=/^ion-/,_o=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,de=le({name:"QIcon",props:{...pt,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=l.getCurrentInstance(),i=yt(e),o=l.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=l.computed(()=>{let a,u=e.name;if(u==="none"||!u)return{none:!0};if(n.iconMapFn!==null){const d=n.iconMapFn(u);if(d!==void 0)if(d.icon!==void 0){if(u=d.icon,u==="none"||!u)return{none:!0}}else return{cls:d.cls,content:d.content!==void 0?d.content:" "}}if(ko.test(u)===!0){const[d,g=yl]=u.split("|");return{svg:!0,viewBox:g,nodes:d.split("&&").map(m=>{const[v,p,z]=m.split("@@");return l.h("path",{style:p,d:v,transform:z})})}}if(xo.test(u)===!0)return{img:!0,src:u.substring(4)};if(Co.test(u)===!0){const[d,g=yl]=u.split("|");return{svguse:!0,src:d.substring(7),viewBox:g}}let c=" ";const f=u.match(wo);if(f!==null)a=dn[f[1]](u);else if(_o.test(u)===!0)a=u;else if(qo.test(u)===!0)a=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${u.substring(3)}`;else if(wl.test(u)===!0){a="notranslate material-symbols";const d=u.match(wl);d!==null&&(u=u.substring(6),a+=vn[d[1]]),c=u}else{a="notranslate material-icons";const d=u.match(So);d!==null&&(u=u.substring(2),a+=fn[d[1]]),c=u}return{cls:a,content:c}});return()=>{const a={class:o.value,style:i.value,"aria-hidden":"true"};return r.value.none===!0?l.h(e.tag,a,ce(t.default)):r.value.img===!0?l.h(e.tag,a,be(t.default,[l.h("img",{src:r.value.src})])):r.value.svg===!0?l.h(e.tag,a,be(t.default,[l.h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?l.h(e.tag,a,be(t.default,[l.h("svg",{viewBox:r.value.viewBox},[l.h("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(a.class+=" "+r.value.cls),l.h(e.tag,a,be(t.default,[r.value.content])))}}});function zt(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function mn(e,t){typeof t.type=="symbol"?Array.isArray(t.children)===!0&&t.children.forEach(n=>{mn(e,n)}):e.add(t)}function zo(e){const t=new Set;return e.forEach(n=>{mn(t,n)}),Array.from(t)}function hn(e){return e.appContext.config.globalProperties.$router!==void 0}function gn(e){return e.isUnmounted===!0||e.isDeactivated===!0}function Sl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function kl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Eo(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(Array.isArray(o)===!1||o.length!==i.length||i.some((r,a)=>r!==o[a]))return!1}return!0}function xl(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Bo(e,t){return Array.isArray(e)===!0?xl(e,t):Array.isArray(t)===!0?xl(t,e):e===t}function Vo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(Bo(e[n],t[n])===!1)return!1;return!0}const bn={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},pn={...bn,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Gt({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=l.getCurrentInstance(),{props:i,proxy:o,emit:r}=n,a=hn(n),u=l.computed(()=>i.disable!==!0&&i.href!==void 0),c=t===!0?l.computed(()=>a===!0&&i.disable!==!0&&u.value!==!0&&i.to!==void 0&&i.to!==null&&i.to!==""):l.computed(()=>a===!0&&u.value!==!0&&i.to!==void 0&&i.to!==null&&i.to!==""),f=l.computed(()=>c.value===!0?E(i.to):null),d=l.computed(()=>f.value!==null),g=l.computed(()=>u.value===!0||d.value===!0),m=l.computed(()=>i.type==="a"||g.value===!0?"a":i.tag||e||"div"),v=l.computed(()=>u.value===!0?{href:i.href,target:i.target}:d.value===!0?{href:f.value.href,target:i.target}:{}),p=l.computed(()=>{if(d.value===!1)return-1;const{matched:B}=f.value,{length:V}=B,O=B[V-1];if(O===void 0)return-1;const P=o.$route.matched;if(P.length===0)return-1;const j=P.findIndex(kl.bind(null,O));if(j!==-1)return j;const U=Sl(B[V-2]);return V>1&&Sl(O)===U&&P[P.length-1].path!==U?P.findIndex(kl.bind(null,B[V-2])):j}),z=l.computed(()=>d.value===!0&&p.value!==-1&&Eo(o.$route.params,f.value.params)),y=l.computed(()=>z.value===!0&&p.value===o.$route.matched.length-1&&Vo(o.$route.params,f.value.params)),M=l.computed(()=>d.value===!0?y.value===!0?` ${i.exactActiveClass} ${i.activeClass}`:i.exact===!0?"":z.value===!0?` ${i.activeClass}`:"":"");function E(B){try{return o.$router.resolve(B)}catch{}return null}function C(B,{returnRouterError:V,to:O=i.to,replace:P=i.replace}={}){if(i.disable===!0)return B.preventDefault(),Promise.resolve(!1);if(B.metaKey||B.altKey||B.ctrlKey||B.shiftKey||B.button!==void 0&&B.button!==0||i.target==="_blank")return Promise.resolve(!1);B.preventDefault();const j=o.$router[P===!0?"replace":"push"](O);return V===!0?j:j.then(()=>{}).catch(()=>{})}function $(B){if(d.value===!0){const V=O=>C(B,O);r("click",B,V),B.defaultPrevented!==!0&&V()}else r("click",B)}return{hasRouterLink:d,hasHrefLink:u,hasLink:g,linkTag:m,resolvedLink:f,linkIsActive:z,linkIsExactActive:y,linkClass:M,linkAttrs:v,getLink:E,navigateToRouterLink:C,navigateOnClick:$}}const To=le({name:"QBreadcrumbsEl",props:{...pn,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:t}){const{linkTag:n,linkAttrs:i,linkClass:o,navigateOnClick:r}=Gt(),a=l.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"),...i.value,onClick:r})),u=l.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(l.h(de,{class:u.value,name:e.icon})),e.label!==void 0&&c.push(e.label),l.h(n.value,{...a.value},be(t.default,c))}}}),yn={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ao=Object.keys(yn),wn={align:{type:String,validator:e=>Ao.includes(e)}};function Sn(e){return l.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${yn[t]}`})}const Oo=["",!0],Mo=le({name:"QBreadcrumbs",props:{...wn,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:t}){const n=Sn(e),i=l.computed(()=>`flex items-center ${n.value}${e.gutter==="none"?"":` q-gutter-${e.gutter}`}`),o=l.computed(()=>e.separatorColor?` text-${e.separatorColor}`:""),r=l.computed(()=>` text-${e.activeColor}`);return()=>{if(t.default===void 0)return;const a=zo(ce(t.default));if(a.length===0)return;let u=1;const c=[],f=a.filter(g=>{var m;return((m=g.type)==null?void 0:m.name)==="QBreadcrumbsEl"}).length,d=t.separator!==void 0?t.separator:()=>e.separator;return a.forEach(g=>{var m;if(((m=g.type)==null?void 0:m.name)==="QBreadcrumbsEl"){const v=u<f,p=g.props!==null&&Oo.includes(g.props.disable),z=(v===!0?"":" q-breadcrumbs--last")+(p!==!0&&v===!0?r.value:"");u++,c.push(l.h("div",{class:`flex items-center${z}`},[g])),v===!0&&c.push(l.h("div",{class:"q-breadcrumbs__separator"+o.value},d()))}else c.push(g)}),l.h("div",{class:"q-breadcrumbs"},[l.h("div",{class:i.value},c)])}}}),$o=l.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(e){const t=e,n=l.useAttrs(),i=l.computed(()=>{const{activeColor:m,separatorIcon:v,separatorSize:p,separatorColor:z,...y}=n;return y}),o=m=>({"data-cy":m.dataCy,class:"cursor-pointer text-h5",color:m.color}),r=l.computed(()=>t.activeColor||"primary"),a=l.computed(()=>t.separatorIcon||"chevron_right"),u=l.computed(()=>t.separatorSize||"2em"),c=l.computed(()=>t.separatorColor||"primary"),f=l.computed(()=>({store:t.store,route:t.route,navStore:t.navStore||{}})),d=l.computed(()=>{const m=[];return t.breadcrumbConfig.forEach(v=>{if(!v.shouldRender(f.value))return;const p=v.getLabel?v.getLabel(f.value):v.defaultLabel,z=v.getColor?v.getColor(f.value):"dark",y={name:v.routeName,...v.getRouteParams&&{params:v.getRouteParams(f.value)}},M=v.clearActions?v.clearActions.map(E=>()=>E(f.value)):[];m.push({label:p,dataCy:v.dataCy,color:z,route:y,clearActions:M})}),m}),g=m=>{m.clearActions&&m.clearActions.forEach(v=>v()),t.router.push(m.route)};return(m,v)=>(l.openBlock(),l.createBlock(Mo,l.mergeProps({"active-color":r.value,class:"text-brown"},i.value),{separator:l.withCtx(()=>[l.createVNode(de,{size:u.value,name:a.value,color:c.value},null,8,["size","name","color"])]),default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(d.value,(p,z)=>(l.openBlock(),l.createBlock(To,l.mergeProps({key:z},{ref_for:!0},o(p),{label:p.label,onClick:y=>g(p)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),Lo={size:{type:[String,Number],default:"1em"},color:String};function Po(e){return{cSize:l.computed(()=>e.size in Ft?`${Ft[e.size]}px`:e.size),classes:l.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Zt=le({name:"QSpinner",props:{...Lo,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=Po(e);return()=>l.h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[l.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Ht(e,t){const n=e.style;for(const i in t)n[i]=t[i]}function Ro(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=l.unref(e);if(t)return t.$el||t}function kn(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}const ne={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(ne,{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 wt(){}function Io(e){return e.button===0}function tt(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 Fo(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),n.tagName==="HTML")return t.push(document),t.push(window),t;n=n.parentElement}}function ve(e){e.stopPropagation()}function ae(e){e.cancelable!==!1&&e.preventDefault()}function te(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Et(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;const n=t===!0?i=>{i.__dragPrevented=!0,i.addEventListener("dragstart",ae,ne.notPassiveCapture)}:i=>{delete i.__dragPrevented,i.removeEventListener("dragstart",ae,ne.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function Ce(e,t,n){const i=`__q_${t}_evt`;e[i]=e[i]!==void 0?e[i].concat(n):n,n.forEach(o=>{o[0].addEventListener(o[1],e[o[2]],ne[o[3]])})}function Je(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(i=>{i[0].removeEventListener(i[1],e[i[2]],ne[i[3]])}),e[n]=void 0)}function xn(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Be(e,t){return xn(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Ho(e,t=250){let n=!1,i;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),i=e.apply(this,arguments)),i}}function Cl(e,t,n,i){n.modifiers.stop===!0&&ve(e);const o=n.modifiers.color;let r=n.modifiers.center;r=r===!0||i===!0;const a=document.createElement("span"),u=document.createElement("span"),c=tt(e),{left:f,top:d,width:g,height:m}=t.getBoundingClientRect(),v=Math.sqrt(g*g+m*m),p=v/2,z=`${(g-v)/2}px`,y=r?z:`${c.left-f-p}px`,M=`${(m-v)/2}px`,E=r?M:`${c.top-d-p}px`;u.className="q-ripple__inner",Ht(u,{height:`${v}px`,width:`${v}px`,transform:`translate3d(${y},${E},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${o?" text-"+o:""}`,a.setAttribute("dir","ltr"),a.appendChild(u),t.appendChild(a);const C=()=>{a.remove(),clearTimeout($)};n.abort.push(C);let $=setTimeout(()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${z},${M},0) scale3d(1,1,1)`,u.style.opacity=.2,$=setTimeout(()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,$=setTimeout(()=>{a.remove(),n.abort.splice(n.abort.indexOf(C),1)},275)},250)},50)}function ql(e,{modifiers:t,value:n,arg:i}){const o=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:o.early===!0,stop:o.stop===!0,center:o.center===!0,color:o.color||i,keyCodes:[].concat(o.keyCodes||13)}}const Cn=cn({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const i={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(o){i.enabled===!0&&o.qSkipRipple!==!0&&o.type===(i.modifiers.early===!0?"pointerdown":"click")&&Cl(o,e,i,o.qKeyEvent===!0)},keystart:Ho(o=>{i.enabled===!0&&o.qSkipRipple!==!0&&Be(o,i.modifiers.keyCodes)===!0&&o.type===`key${i.modifiers.early===!0?"down":"up"}`&&Cl(o,e,i,!0)},300)};ql(i,t),e.__qripple=i,Ce(i,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&ql(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),Je(t,"main"),delete e._qripple)}}),_l={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Do={xs:8,sm:10,md:14,lg:20,xl:24},jo=["button","submit","reset"],No=/[^\s]\/[^\s]/,Wo=["flat","outline","push","unelevated"];function Ko(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Uo={...pt,...bn,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Wo.reduce((e,t)=>(e[t]=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:{...wn.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Qo={...Uo,round:Boolean};function Xo(e){const t=yt(e,Do),n=Sn(e),{hasRouterLink:i,hasLink:o,linkTag:r,linkAttrs:a,navigateOnClick:u}=Gt({fallbackTag:"button"}),c=l.computed(()=>{const y=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},y,{padding:e.padding.split(/\s+/).map(M=>M in _l?_l[M]+"px":M).join(" "),minWidth:"0",minHeight:"0"}):y}),f=l.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),d=l.computed(()=>e.disable!==!0&&e.loading!==!0),g=l.computed(()=>d.value===!0?e.tabindex||0:-1),m=l.computed(()=>Ko(e,"standard")),v=l.computed(()=>{const y={tabindex:g.value};return o.value===!0?Object.assign(y,a.value):jo.includes(e.type)===!0&&(y.type=e.type),r.value==="a"?(e.disable===!0?y["aria-disabled"]="true":y.href===void 0&&(y.role="button"),i.value!==!0&&No.test(e.type)===!0&&(y.type=e.type)):e.disable===!0&&(y.disabled="",y["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(y,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),y}),p=l.computed(()=>{let y;e.color!==void 0?e.flat===!0||e.outline===!0?y=`text-${e.textColor||e.color}`:y=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(y=`text-${e.textColor}`);const M=e.round===!0?"round":`rectangle${f.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${m.value} q-btn--${M}`+(y!==void 0?" "+y:"")+(d.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":"")}),z=l.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:c,innerClasses:z,attributes:v,hasLink:o,linkTag:r,navigateOnClick:u,isActionable:d}}const{passiveCapture:se}=ne;let Fe=null,He=null,De=null;const zl=le({name:"QBtn",props:{...Qo,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:i}=l.getCurrentInstance(),{classes:o,style:r,innerClasses:a,attributes:u,hasLink:c,linkTag:f,navigateOnClick:d,isActionable:g}=Xo(e),m=l.ref(null),v=l.ref(null);let p=null,z,y=null;const M=l.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),E=l.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:c.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),C=l.computed(()=>({center:e.round})),$=l.computed(()=>{const h=Math.max(0,Math.min(100,e.percentage));return h>0?{transition:"transform 0.6s",transform:`translateX(${h-100}%)`}:{}}),B=l.computed(()=>{if(e.loading===!0)return{onMousedown:W,onTouchstart:W,onClick:W,onKeydown:W,onKeyup:W};if(g.value===!0){const h={onClick:O,onKeydown:P,onMousedown:U};if(i.$q.platform.has.touch===!0){const w=e.onTouchstart!==void 0?"":"Passive";h[`onTouchstart${w}`]=j}return h}return{onClick:te}}),V=l.computed(()=>({ref:m,class:"q-btn q-btn-item non-selectable no-outline "+o.value,style:r.value,...u.value,...B.value}));function O(h){if(m.value!==null){if(h!==void 0){if(h.defaultPrevented===!0)return;const w=document.activeElement;if(e.type==="submit"&&w!==document.body&&m.value.contains(w)===!1&&w.contains(m.value)===!1){h.qAvoidFocus!==!0&&m.value.focus();const L=()=>{var Y;document.removeEventListener("keydown",te,!0),document.removeEventListener("keyup",L,se),(Y=m.value)==null||Y.removeEventListener("blur",L,se)};document.addEventListener("keydown",te,!0),document.addEventListener("keyup",L,se),m.value.addEventListener("blur",L,se)}}d(h)}}function P(h){m.value!==null&&(n("keydown",h),Be(h,[13,32])===!0&&He!==m.value&&(He!==null&&A(),h.defaultPrevented!==!0&&(h.qAvoidFocus!==!0&&m.value.focus(),He=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("keyup",K,!0),m.value.addEventListener("blur",K,se)),te(h)))}function j(h){m.value!==null&&(n("touchstart",h),h.defaultPrevented!==!0&&(Fe!==m.value&&(Fe!==null&&A(),Fe=m.value,p=h.target,p.addEventListener("touchcancel",K,se),p.addEventListener("touchend",K,se)),z=!0,y!==null&&clearTimeout(y),y=setTimeout(()=>{y=null,z=!1},200)))}function U(h){m.value!==null&&(h.qSkipRipple=z===!0,n("mousedown",h),h.defaultPrevented!==!0&&De!==m.value&&(De!==null&&A(),De=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("mouseup",K,se)))}function K(h){if(m.value!==null&&!((h==null?void 0:h.type)==="blur"&&document.activeElement===m.value)){if((h==null?void 0:h.type)==="keyup"){if(He===m.value&&Be(h,[13,32])===!0){const w=new MouseEvent("click",h);w.qKeyEvent=!0,h.defaultPrevented===!0&&ae(w),h.cancelBubble===!0&&ve(w),m.value.dispatchEvent(w),te(h),h.qKeyEvent=!0}n("keyup",h)}A()}}function A(h){var L,Y;const w=v.value;h!==!0&&(Fe===m.value||De===m.value)&&w!==null&&w!==document.activeElement&&(w.setAttribute("tabindex",-1),w.focus()),Fe===m.value&&(p!==null&&(p.removeEventListener("touchcancel",K,se),p.removeEventListener("touchend",K,se)),Fe=p=null),De===m.value&&(document.removeEventListener("mouseup",K,se),De=null),He===m.value&&(document.removeEventListener("keyup",K,!0),(L=m.value)==null||L.removeEventListener("blur",K,se),He=null),(Y=m.value)==null||Y.classList.remove("q-btn--active")}function W(h){te(h),h.qSkipRipple=!0}return l.onBeforeUnmount(()=>{A(!0)}),Object.assign(i,{click:h=>{g.value===!0&&O(h)}}),()=>{let h=[];e.icon!==void 0&&h.push(l.h(de,{name:e.icon,left:e.stack!==!0&&M.value===!0,role:"img"})),M.value===!0&&h.push(l.h("span",{class:"block"},[e.label])),h=be(t.default,h),e.iconRight!==void 0&&e.round===!1&&h.push(l.h(de,{name:e.iconRight,right:e.stack!==!0&&M.value===!0,role:"img"}));const w=[l.h("span",{class:"q-focus-helper",ref:v})];return e.loading===!0&&e.percentage!==void 0&&w.push(l.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[l.h("span",{class:"q-btn__progress-indicator fit block",style:$.value})])),w.push(l.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+a.value},h)),e.loading!==null&&w.push(l.h(l.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[l.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[l.h(Zt)])]:null)),l.withDirectives(l.h(f.value,V.value,w),[[Cn,E.value,void 0,C.value]])}}}),Yo={class:"row justify-between"},Go=l.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})}},setup(e){const t=e,n=l.inject("navContext",null),i=l.inject("router");function o(r){if(!i){console.warn("Dependencies not available:",{router:i});return}n==null||n.setTabs();const a=r==="back"?t.from:t.to;if(!a){console.warn("Destination not provided:",r);return}i.push({name:a,params:t.params})}return(r,a)=>(l.openBlock(),l.createElementBlock("div",Yo,[l.createVNode(zl,{icon:"chevron_left","rounded-sm":"",label:r.labelFrom,onClick:a[0]||(a[0]=u=>o("back")),"data-cy":"go-back"},null,8,["label"]),r.labelTo?(l.openBlock(),l.createBlock(zl,{key:0,label:r.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next",onClick:a[1]||(a[1]=u=>o("next"))},null,8,["label"])):l.createCommentVNode("",!0)]))}}),qn=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},Zo=qn(Go,[["__scopeId","data-v-c5e3fee0"]]),Ve={dark:{type:Boolean,default:null}};function Te(e,t){return l.computed(()=>e.dark===null?t.dark.isActive:e.dark)}function Jo(e,t){const n=l.ref(null),i=l.computed(()=>e.disable===!0?null:l.h("span",{ref:n,class:"no-outline",tabindex:-1}));function o(r){const a=t.value;(r==null?void 0:r.qAvoidFocus)!==!0&&((r==null?void 0:r.type.indexOf("key"))===0?document.activeElement!==a&&(a==null?void 0:a.contains(document.activeElement))===!0&&a.focus():n.value!==null&&(r===void 0||(a==null?void 0:a.contains(r.target))===!0)&&n.value.focus())}return{refocusTargetEl:i,refocusTarget:o}}const _n={name:String};function ei(e={}){return(t,n,i)=>{t[n](l.h("input",{class:"hidden"+(i||""),...e.value}))}}function ti(e){return l.computed(()=>e.name||e.for)}const li={xs:30,sm:35,md:40,lg:50,xl:60},ni={...Ve,...pt,..._n,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]},oi=["update:modelValue"];function ii(e,t){const{props:n,slots:i,emit:o,proxy:r}=l.getCurrentInstance(),{$q:a}=r,u=Te(n,a),c=l.ref(null),{refocusTargetEl:f,refocusTarget:d}=Jo(n,c),g=yt(n,li),m=l.computed(()=>n.val!==void 0&&Array.isArray(n.modelValue)),v=l.computed(()=>{const A=l.toRaw(n.val);return m.value===!0?n.modelValue.findIndex(W=>l.toRaw(W)===A):-1}),p=l.computed(()=>m.value===!0?v.value!==-1:l.toRaw(n.modelValue)===l.toRaw(n.trueValue)),z=l.computed(()=>m.value===!0?v.value===-1:l.toRaw(n.modelValue)===l.toRaw(n.falseValue)),y=l.computed(()=>p.value===!1&&z.value===!1),M=l.computed(()=>n.disable===!0?-1:n.tabindex||0),E=l.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(u.value===!0?` q-${e}--dark`:"")+(n.dense===!0?` q-${e}--dense`:"")+(n.leftLabel===!0?" reverse":"")),C=l.computed(()=>{const A=p.value===!0?"truthy":z.value===!0?"falsy":"indet",W=n.color!==void 0&&(n.keepColor===!0||z.value!==!0)?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${A}${W}`}),$=l.computed(()=>{const A={type:"checkbox"};return n.name!==void 0&&Object.assign(A,{".checked":p.value,"^checked":p.value===!0?"checked":void 0,name:n.name,value:m.value===!0?n.val:n.trueValue}),A}),B=ei($),V=l.computed(()=>{const A={tabindex:M.value,role:"checkbox","aria-label":n.label,"aria-checked":y.value===!0?"mixed":p.value===!0?"true":"false"};return n.disable===!0&&(A["aria-disabled"]="true"),A});function O(A){A!==void 0&&(te(A),d(A)),n.disable!==!0&&o("update:modelValue",P(),A)}function P(){if(m.value===!0){if(p.value===!0){const A=n.modelValue.slice();return A.splice(v.value,1),A}return n.modelValue.concat([n.val])}if(p.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(z.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function j(A){(A.keyCode===13||A.keyCode===32)&&te(A)}function U(A){(A.keyCode===13||A.keyCode===32)&&O(A)}const K=t(p,y);return Object.assign(r,{toggle:O}),()=>{const A=K();n.disable!==!0&&B(A,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const W=[l.h("div",{class:C.value,style:g.value,"aria-hidden":"true"},A)];f.value!==null&&W.push(f.value);const h=n.label!==void 0?be(i.default,[n.label]):ce(i.default);return h!==void 0&&W.push(l.h("div",{class:`q-${e}__label q-anchor--skip`},h)),l.h("div",{ref:c,class:E.value,...V.value,onClick:O,onKeydown:j,onKeyup:U},W)}}const ri=()=>l.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[l.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[l.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),l.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),ai=le({name:"QCheckbox",props:ni,emits:oi,setup(e){const t=ri();function n(i,o){const r=l.computed(()=>(i.value===!0?e.checkedIcon:o.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>r.value!==null?[l.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[l.h(de,{class:"q-checkbox__icon",name:r.value})])]:[t]}return ii("checkbox",n)}}),ui=le({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[l.h("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),l.h("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),l.withDirectives(l.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),l.withDirectives(l.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)]}}),Ne=l.ref(!1);let Dt;function si(e,t){const n=/(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:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:t[0]||""}}function ci(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 zn="ontouchstart"in window||window.navigator.maxTouchPoints>0;function di(e){const t=e.toLowerCase(),n=ci(t),i=si(t,n),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};i.browser&&(o[i.browser]=!0,o.version=i.version,o.versionNumber=parseInt(i.version,10)),i.platform&&(o[i.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||t.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,i.browser="edge"):o.crios?(o.chrome=!0,i.browser="chrome"):o.fxios&&(o.firefox=!0,i.browser="firefox"),(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(i.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&&(i.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(i.browser="blackberry",o.blackberry=!0):o.playbook?(i.browser="playbook",o.playbook=!0):o.android?(i.browser="android",o.android=!0):o.kindle?(i.browser="kindle",o.kindle=!0):o.silk&&(i.browser="silk",o.silk=!0)),o.name=i.browser,o.platform=i.platform,t.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"),Ne.value===!0&&(Dt={is:{...o}}),zn===!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 a=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:a,[a]:!0})}o.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}const El=navigator.userAgent||navigator.vendor||window.opera,fi={has:{touch:!1,webStorage:!1},within:{iframe:!1}},oe={userAgent:El,is:di(El),has:{touch:zn},within:{iframe:window.self!==window.top}},jt={install(e){const{$q:t}=e;Ne.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,oe),Ne.value=!1}),t.platform=l.reactive(this)):t.platform=this}};{let e;Yt(oe.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(jt,oe),Ne.value===!0&&(Object.assign(jt,Dt,fi),Dt=null)}function vi(){const e=l.ref(!Ne.value);return e.value===!1&&l.onMounted(()=>{e.value=!0}),{isHydrated:e}}const En=typeof ResizeObserver<"u",Bl=En===!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"},Vl=le({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n=null,i,o={width:-1,height:-1};function r(c){c===!0||e.debounce===0||e.debounce==="0"?a():n===null&&(n=setTimeout(a,e.debounce))}function a(){if(n!==null&&(clearTimeout(n),n=null),i){const{offsetWidth:c,offsetHeight:f}=i;(c!==o.width||f!==o.height)&&(o={width:c,height:f},t("resize",o))}}const{proxy:u}=l.getCurrentInstance();if(u.trigger=r,En===!0){let c;const f=d=>{i=u.$el.parentNode,i?(c=new ResizeObserver(r),c.observe(i),a()):d!==!0&&l.nextTick(()=>{f(!0)})};return l.onMounted(()=>{f()}),l.onBeforeUnmount(()=>{n!==null&&clearTimeout(n),c!==void 0&&(c.disconnect!==void 0?c.disconnect():i&&c.unobserve(i))}),wt}else{let c=function(){n!==null&&(clearTimeout(n),n=null),g!==void 0&&(g.removeEventListener!==void 0&&g.removeEventListener("resize",r,ne.passive),g=void 0)},f=function(){c(),i!=null&&i.contentDocument&&(g=i.contentDocument.defaultView,g.addEventListener("resize",r,ne.passive),a())};const{isHydrated:d}=vi();let g;return l.onMounted(()=>{l.nextTick(()=>{i=u.$el,i&&f()})}),l.onBeforeUnmount(c),()=>{if(d.value===!0)return l.h("object",{class:"q--avoid-card-border",style:Bl.style,tabindex:-1,type:"text/html",data:Bl.url,"aria-hidden":"true",onLoad:f})}}}}),Bn=[Element,String],mi=[null,document,document.body,document.scrollingElement,document.documentElement];function Vn(e,t){let n=Ro(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return mi.includes(n)?window:n}function Jt(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function el(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Tn(e,t,n=0){const i=arguments[3]===void 0?performance.now():arguments[3],o=Jt(e);if(n<=0){o!==t&&Nt(e,t);return}requestAnimationFrame(r=>{const a=r-i,u=o+(t-o)/Math.max(a,n)*a;Nt(e,u),u!==t&&Tn(e,t,n-a,r)})}function An(e,t,n=0){const i=arguments[3]===void 0?performance.now():arguments[3],o=el(e);if(n<=0){o!==t&&Wt(e,t);return}requestAnimationFrame(r=>{const a=r-i,u=o+(t-o)/Math.max(a,n)*a;Wt(e,u),u!==t&&An(e,t,n-a,r)})}function Nt(e,t){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t);return}e.scrollTop=t}function Wt(e,t){if(e===window){window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=t}function Tl(e,t,n){if(n){Tn(e,t,n);return}Nt(e,t)}function Bt(e,t,n){if(n){An(e,t,n);return}Wt(e,t)}let ut;function hi(){if(ut!==void 0)return ut;const e=document.createElement("p"),t=document.createElement("div");Ht(e,{width:"100%",height:"200px"}),Ht(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let i=e.offsetWidth;return n===i&&(i=t.clientWidth),t.remove(),ut=n-i,ut}function gi(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?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:Al}=ne,bi=["both","horizontal","vertical"],pi=le({name:"QScrollObserver",props:{axis:{type:String,validator:e=>bi.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:Bn},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let i=null,o,r;l.watch(()=>e.scrollTarget,()=>{c(),u()});function a(){i==null||i();const g=Math.max(0,Jt(o)),m=el(o),v={top:g-n.position.top,left:m-n.position.left};if(e.axis==="vertical"&&v.top===0||e.axis==="horizontal"&&v.left===0)return;const p=Math.abs(v.top)>=Math.abs(v.left)?v.top<0?"up":"down":v.left<0?"left":"right";n.position={top:g,left:m},n.directionChanged=n.direction!==p,n.delta=v,n.directionChanged===!0&&(n.direction=p,n.inflectionPoint=n.position),t("scroll",{...n})}function u(){o=Vn(r,e.scrollTarget),o.addEventListener("scroll",f,Al),f(!0)}function c(){o!==void 0&&(o.removeEventListener("scroll",f,Al),o=void 0)}function f(g){if(g===!0||e.debounce===0||e.debounce==="0")a();else if(i===null){const[m,v]=e.debounce?[setTimeout(a,e.debounce),clearTimeout]:[requestAnimationFrame(a),cancelAnimationFrame];i=()=>{v(m),i=null}}}const{proxy:d}=l.getCurrentInstance();return l.watch(()=>d.$q.lang.rtl,a),l.onMounted(()=>{r=d.$el.parentNode,u()}),l.onBeforeUnmount(()=>{i==null||i(),c()}),Object.assign(d,{trigger:f,getPosition:()=>n}),wt}}),tl={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},yi=Object.keys(tl);tl.all=!0;function Ol(e){const t={};for(const n of yi)e[n]===!0&&(t[n]=!0);return Object.keys(t).length===0?tl:(t.horizontal===!0?t.left=t.right=!0:t.left===!0&&t.right===!0&&(t.horizontal=!0),t.vertical===!0?t.up=t.down=!0:t.up===!0&&t.down===!0&&(t.vertical=!0),t.horizontal===!0&&t.vertical===!0&&(t.all=!0),t)}const wi=["INPUT","TEXTAREA"];function Ml(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler=="function"&&wi.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}function On(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),jt.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function Vt(e,t,n){const i=tt(e);let o,r=i.left-t.event.x,a=i.top-t.event.y,u=Math.abs(r),c=Math.abs(a);const f=t.direction;f.horizontal===!0&&f.vertical!==!0?o=r<0?"left":"right":f.horizontal!==!0&&f.vertical===!0?o=a<0?"up":"down":f.up===!0&&a<0?(o="up",u>c&&(f.left===!0&&r<0?o="left":f.right===!0&&r>0&&(o="right"))):f.down===!0&&a>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&&a<0?o="up":f.down===!0&&a>0&&(o="down"))):f.right===!0&&r>0&&(o="right",u<c&&(f.up===!0&&a<0?o="up":f.down===!0&&a>0&&(o="down")));let d=!1;if(o===void 0&&n===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};o=t.event.lastDir,d=!0,o==="left"||o==="right"?(i.left-=r,u=0,r=0):(i.top-=a,c=0,a=0)}return{synthetic:d,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:i,direction:o,isFirst:t.event.isFirst,isFinal:n===!0,duration:Date.now()-t.event.time,distance:{x:u,y:c},offset:{x:r,y:a},delta:{x:i.left-t.event.lastX,y:i.top-t.event.lastY}}}}let Si=0;const $l=cn({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(n.mouse!==!0&&oe.has.touch!==!0)return;function i(r,a){n.mouse===!0&&a===!0?te(r):(n.stop===!0&&ve(r),n.prevent===!0&&ae(r))}const o={uid:"qvtp_"+Si++,handler:t,modifiers:n,direction:Ol(n),noop:wt,mouseStart(r){Ml(r,o)&&Io(r)&&(Ce(o,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),o.start(r,!0))},touchStart(r){if(Ml(r,o)){const a=r.target;Ce(o,"temp",[[a,"touchmove","move","notPassiveCapture"],[a,"touchcancel","end","passiveCapture"],[a,"touchend","end","passiveCapture"]]),o.start(r)}},start(r,a){if(oe.is.firefox===!0&&Et(e,!0),o.lastEvt=r,a===!0||n.stop===!0){if(o.direction.all!==!0&&(a!==!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&&ae(f),r.cancelBubble===!0&&ve(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}}ve(r)}const{left:u,top:c}=tt(r);o.event={x:u,y:c,time:Date.now(),mouse:a===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:u,lastY:c}},move(r){if(o.event===void 0)return;const a=tt(r),u=a.left-o.event.x,c=a.top-o.event.y;if(u===0&&c===0)return;o.lastEvt=r;const f=o.event.mouse===!0,d=()=>{i(r,f);let v;n.preserveCursor!==!0&&n.preservecursor!==!0&&(v=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"),On(),o.styleCleanup=p=>{if(o.styleCleanup=void 0,v!==void 0&&(document.documentElement.style.cursor=v),document.body.classList.remove("non-selectable"),f===!0){const z=()=>{document.body.classList.remove("no-pointer-events--children")};p!==void 0?setTimeout(()=>{z(),p()},50):z()}else p!==void 0&&p()}};if(o.event.detected===!0){o.event.isFirst!==!0&&i(r,o.event.mouse);const{payload:v,synthetic:p}=Vt(r,o,!1);v!==void 0&&(o.handler(v)===!1?o.end(r):(o.styleCleanup===void 0&&o.event.isFirst===!0&&d(),o.event.lastX=v.position.left,o.event.lastY=v.position.top,o.event.lastDir=p===!0?void 0:v.direction,o.event.isFirst=!1));return}if(o.direction.all===!0||f===!0&&(o.modifiers.mouseAllDir===!0||o.modifiers.mousealldir===!0)){d(),o.event.detected=!0,o.move(r);return}const g=Math.abs(u),m=Math.abs(c);g!==m&&(o.direction.horizontal===!0&&g>m||o.direction.vertical===!0&&g<m||o.direction.up===!0&&g<m&&c<0||o.direction.down===!0&&g<m&&c>0||o.direction.left===!0&&g>m&&u<0||o.direction.right===!0&&g>m&&u>0?(o.event.detected=!0,o.move(r)):o.end(r,!0))},end(r,a){var u;if(o.event!==void 0){if(Je(o,"temp"),oe.is.firefox===!0&&Et(e,!1),a===!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(Vt(r===void 0?o.lastEvt:r,o).payload);const{payload:c}=Vt(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,n.mouse===!0){const r=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";Ce(o,"main",[[e,"mousedown","mouseStart",`passive${r}`]])}oe.has.touch===!0&&Ce(o,"main",[[e,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;n!==void 0&&(t.oldValue!==t.value&&(typeof value!="function"&&n.end(),n.handler=t.value),n.direction=Ol(t.modifiers))},beforeUnmount(e){var n;const t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),Je(t,"main"),Je(t,"temp"),oe.is.firefox===!0&&Et(e,!1),(n=t.styleCleanup)==null||n.call(t),delete e.__qtouchpan)}});function Xe(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function Ll(e,t,n){if(n<=t)return t;const i=n-t+1;let o=t+(e-t)%i;return o<t&&(o=i+o),o===0?0:o}function ll(e,t=250,n){let i=null;function o(){const r=arguments,a=()=>{i=null,e.apply(this,r)};i!==null&&clearTimeout(i),i=setTimeout(a,t)}return o.cancel=()=>{i!==null&&clearTimeout(i)},o}const Pl=["vertical","horizontal"],Tt={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},Rl={prevent:!0,mouse:!0,mouseAllDir:!0},Il=e=>e>=250?50:Math.ceil(e/5),ki=le({name:"QScrollArea",props:{...Ve,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:t,emit:n}){const i=l.ref(!1),o=l.ref(!1),r=l.ref(!1),a={vertical:l.ref(0),horizontal:l.ref(0)},u={vertical:{ref:l.ref(null),position:l.ref(0),size:l.ref(0)},horizontal:{ref:l.ref(null),position:l.ref(0),size:l.ref(0)}},{proxy:c}=l.getCurrentInstance(),f=Te(e,c.$q);let d=null,g;const m=l.ref(null),v=l.computed(()=>"q-scrollarea"+(f.value===!0?" q-scrollarea--dark":""));Object.assign(a,{verticalInner:l.computed(()=>a.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:l.computed(()=>a.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),u.vertical.percentage=l.computed(()=>{const h=u.vertical.size.value-a.vertical.value;if(h<=0)return 0;const w=Xe(u.vertical.position.value/h,0,1);return Math.round(w*1e4)/1e4}),u.vertical.thumbHidden=l.computed(()=>(e.visible===null?r.value:e.visible)!==!0&&i.value===!1&&o.value===!1||u.vertical.size.value<=a.vertical.value+1),u.vertical.thumbStart=l.computed(()=>e.verticalOffset[0]+u.vertical.percentage.value*(a.verticalInner.value-u.vertical.thumbSize.value)),u.vertical.thumbSize=l.computed(()=>Math.round(Xe(a.verticalInner.value*a.verticalInner.value/u.vertical.size.value,Il(a.verticalInner.value),a.verticalInner.value))),u.vertical.style=l.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=l.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(u.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),u.vertical.barClass=l.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(u.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),u.horizontal.percentage=l.computed(()=>{const h=u.horizontal.size.value-a.horizontal.value;if(h<=0)return 0;const w=Xe(Math.abs(u.horizontal.position.value)/h,0,1);return Math.round(w*1e4)/1e4}),u.horizontal.thumbHidden=l.computed(()=>(e.visible===null?r.value:e.visible)!==!0&&i.value===!1&&o.value===!1||u.horizontal.size.value<=a.horizontal.value+1),u.horizontal.thumbStart=l.computed(()=>e.horizontalOffset[0]+u.horizontal.percentage.value*(a.horizontalInner.value-u.horizontal.thumbSize.value)),u.horizontal.thumbSize=l.computed(()=>Math.round(Xe(a.horizontalInner.value*a.horizontalInner.value/u.horizontal.size.value,Il(a.horizontalInner.value),a.horizontalInner.value))),u.horizontal.style=l.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=l.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(u.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),u.horizontal.barClass=l.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(u.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const p=l.computed(()=>u.vertical.thumbHidden.value===!0&&u.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function z(){const h={};return Pl.forEach(w=>{const L=u[w];Object.assign(h,{[w+"Position"]:L.position.value,[w+"Percentage"]:L.percentage.value,[w+"Size"]:L.size.value,[w+"ContainerSize"]:a[w].value,[w+"ContainerInnerSize"]:a[w+"Inner"].value})}),h}const y=ll(()=>{const h=z();h.ref=c,n("scroll",h)},0);function M(h,w,L){if(Pl.includes(h)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(h==="vertical"?Tl:Bt)(m.value,w,L)}function E({height:h,width:w}){let L=!1;a.vertical.value!==h&&(a.vertical.value=h,L=!0),a.horizontal.value!==w&&(a.horizontal.value=w,L=!0),L===!0&&O()}function C({position:h}){let w=!1;u.vertical.position.value!==h.top&&(u.vertical.position.value=h.top,w=!0),u.horizontal.position.value!==h.left&&(u.horizontal.position.value=h.left,w=!0),w===!0&&O()}function $({height:h,width:w}){u.horizontal.size.value!==w&&(u.horizontal.size.value=w,O()),u.vertical.size.value!==h&&(u.vertical.size.value=h,O())}function B(h,w){const L=u[w];if(h.isFirst===!0){if(L.thumbHidden.value===!0)return;g=L.position.value,o.value=!0}else if(o.value!==!0)return;h.isFinal===!0&&(o.value=!1);const Y=Tt[w],q=(L.size.value-a[w].value)/(a[w+"Inner"].value-L.thumbSize.value),R=h.distance[Y.dist],Z=g+(h.direction===Y.dir?1:-1)*R*q;P(Z,w)}function V(h,w){const L=u[w];if(L.thumbHidden.value!==!0){const Y=w==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],q=h[Tt[w].offset]-Y,R=L.thumbStart.value-Y;if(q<R||q>R+L.thumbSize.value){const Z=q-L.thumbSize.value/2,b=Xe(Z/(a[w+"Inner"].value-L.thumbSize.value),0,1);P(b*Math.max(0,L.size.value-a[w].value),w)}L.ref.value!==null&&L.ref.value.dispatchEvent(new MouseEvent(h.type,h))}}function O(){i.value=!0,d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,i.value=!1},e.delay),e.onScroll!==void 0&&y()}function P(h,w){m.value[Tt[w].scroll]=h}let j=null;function U(){j!==null&&clearTimeout(j),j=setTimeout(()=>{j=null,r.value=!0},c.$q.platform.is.ios?50:0)}function K(){j!==null&&(clearTimeout(j),j=null),r.value=!1}let A=null;l.watch(()=>c.$q.lang.rtl,h=>{m.value!==null&&Bt(m.value,Math.abs(u.horizontal.position.value)*(h===!0?-1:1))}),l.onDeactivated(()=>{A={top:u.vertical.position.value,left:u.horizontal.position.value}}),l.onActivated(()=>{if(A===null)return;const h=m.value;h!==null&&(Bt(h,A.left),Tl(h,A.top))}),l.onBeforeUnmount(y.cancel),Object.assign(c,{getScrollTarget:()=>m.value,getScroll:z,getScrollPosition:()=>({top:u.vertical.position.value,left:u.horizontal.position.value}),getScrollPercentage:()=>({top:u.vertical.percentage.value,left:u.horizontal.percentage.value}),setScrollPosition:M,setScrollPercentage(h,w,L){M(h,w*(u[h].size.value-a[h].value)*(h==="horizontal"&&c.$q.lang.rtl===!0?-1:1),L)}});const W={scroll:u,thumbVertDir:[[$l,h=>{B(h,"vertical")},void 0,{vertical:!0,...Rl}]],thumbHorizDir:[[$l,h=>{B(h,"horizontal")},void 0,{horizontal:!0,...Rl}]],onVerticalMousedown(h){V(h,"vertical")},onHorizontalMousedown(h){V(h,"horizontal")}};return()=>l.h("div",{class:v.value,onMouseenter:U,onMouseleave:K},[l.h("div",{ref:m,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[l.h("div",{class:"q-scrollarea__content absolute",style:p.value},be(t.default,[l.h(Vl,{debounce:0,onResize:$})])),l.h(pi,{axis:"both",onScroll:C})]),l.h(Vl,{debounce:0,onResize:E}),l.h(ui,{store:W,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}}),xi=le({name:"QCard",props:{...Ve,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=l.getCurrentInstance(),i=Te(e,n),o=l.computed(()=>"q-card"+(i.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()=>l.h(e.tag,{class:o.value},ce(t.default))}}),Ci={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},qi={...Ci,contextMenu:Boolean};function _i({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:i,proxy:o,emit:r}=l.getCurrentInstance(),a=l.ref(null);let u=null;function c(v){return a.value===null?!1:v===void 0||v.touches===void 0||v.touches.length<=1}const f={};n===void 0&&(Object.assign(f,{hide(v){o.hide(v)},toggle(v){o.toggle(v),v.qAnchorHandled=!0},toggleKey(v){Be(v,13)===!0&&f.toggle(v)},contextClick(v){o.hide(v),ae(v),l.nextTick(()=>{o.show(v),v.qAnchorHandled=!0})},prevent:ae,mobileTouch(v){if(f.mobileCleanup(v),c(v)!==!0)return;o.hide(v),a.value.classList.add("non-selectable");const p=v.target;Ce(f,"anchor",[[p,"touchmove","mobileCleanup","passive"],[p,"touchend","mobileCleanup","passive"],[p,"touchcancel","mobileCleanup","passive"],[a.value,"contextmenu","prevent","notPassive"]]),u=setTimeout(()=>{u=null,o.show(v),v.qAnchorHandled=!0},300)},mobileCleanup(v){a.value.classList.remove("non-selectable"),u!==null&&(clearTimeout(u),u=null),e.value===!0&&v!==void 0&&On()}}),n=function(v=i.contextMenu){if(i.noParentEvent===!0||a.value===null)return;let p;v===!0?o.$q.platform.is.mobile===!0?p=[[a.value,"touchstart","mobileTouch","passive"]]:p=[[a.value,"mousedown","hide","passive"],[a.value,"contextmenu","contextClick","notPassive"]]:p=[[a.value,"click","toggle","passive"],[a.value,"keyup","toggleKey","passive"]],Ce(f,"anchor",p)});function d(){Je(f,"anchor")}function g(v){for(a.value=v;a.value.classList.contains("q-anchor--skip");)a.value=a.value.parentNode;n()}function m(){if(i.target===!1||i.target===""||o.$el.parentNode===null)a.value=null;else if(i.target===!0)g(o.$el.parentNode);else{let v=i.target;if(typeof i.target=="string")try{v=document.querySelector(i.target)}catch{v=void 0}v!=null?(a.value=v.$el||v,n()):(a.value=null,console.error(`Anchor: target "${i.target}" not found`))}}return l.watch(()=>i.contextMenu,v=>{a.value!==null&&(d(),n(v))}),l.watch(()=>i.target,()=>{a.value!==null&&d(),m()}),l.watch(()=>i.noParentEvent,v=>{a.value!==null&&(v===!0?d():n())}),l.onMounted(()=>{m(),t!==!0&&i.modelValue===!0&&a.value===null&&r("update:modelValue",!1)}),l.onBeforeUnmount(()=>{u!==null&&clearTimeout(u),d()}),{anchorEl:a,canShow:c,anchorEvents:f}}function zi(e,t){const n=l.ref(null);let i;function o(u,c){const f=`${c!==void 0?"add":"remove"}EventListener`,d=c!==void 0?c:i;u!==window&&u[f]("scroll",d,ne.passive),window[f]("scroll",d,ne.passive),i=c}function r(){n.value!==null&&(o(n.value),n.value=null)}const a=l.watch(()=>e.noParentEvent,()=>{n.value!==null&&(r(),t())});return l.onBeforeUnmount(a),{localScrollTarget:n,unconfigureScrollTarget:r,changeScrollEvent:o}}const Mn={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},$n=["beforeShow","show","beforeHide","hide"];function Ln({showing:e,canShow:t,hideOnRouteChange:n,handleShow:i,handleHide:o,processOnMount:r}){const a=l.getCurrentInstance(),{props:u,emit:c,proxy:f}=a;let d;function g(E){e.value===!0?p(E):m(E)}function m(E){if(u.disable===!0||(E==null?void 0:E.qAnchorHandled)===!0||t!==void 0&&t(E)!==!0)return;const C=u["onUpdate:modelValue"]!==void 0;C===!0&&(c("update:modelValue",!0),d=E,l.nextTick(()=>{d===E&&(d=void 0)})),(u.modelValue===null||C===!1)&&v(E)}function v(E){e.value!==!0&&(e.value=!0,c("beforeShow",E),i!==void 0?i(E):c("show",E))}function p(E){if(u.disable===!0)return;const C=u["onUpdate:modelValue"]!==void 0;C===!0&&(c("update:modelValue",!1),d=E,l.nextTick(()=>{d===E&&(d=void 0)})),(u.modelValue===null||C===!1)&&z(E)}function z(E){e.value!==!1&&(e.value=!1,c("beforeHide",E),o!==void 0?o(E):c("hide",E))}function y(E){u.disable===!0&&E===!0?u["onUpdate:modelValue"]!==void 0&&c("update:modelValue",!1):E===!0!==e.value&&(E===!0?v:z)(d)}l.watch(()=>u.modelValue,y),n!==void 0&&hn(a)===!0&&l.watch(()=>f.$route.fullPath,()=>{n.value===!0&&e.value===!0&&p()}),l.onMounted(()=>{y(u.modelValue)});const M={show:m,hide:p,toggle:g};return Object.assign(f,M),M}let qe=[],lt=[];function Pn(e){lt=lt.filter(t=>t!==e)}function Ei(e){Pn(e),lt.push(e)}function Fl(e){Pn(e),lt.length===0&&qe.length!==0&&(qe[qe.length-1](),qe=[])}function nl(e){lt.length===0?e():qe.push(e)}function Bi(e){qe=qe.filter(t=>t!==e)}const Hl={};let Vi=1,Ti=document.body;function Ai(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${Vi++}`:e,Hl.globalNodes!==void 0){const i=Hl.globalNodes.class;i!==void 0&&(n.className=i)}return Ti.appendChild(n),n}function Oi(e){e.remove()}const et=[];function Mi(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return zt(e)}else if(e.__qPortal===!0){const n=zt(e);return(n==null?void 0:n.$options.name)==="QPopupProxy"?(e.hide(t),n):e}e=zt(e)}while(e!=null)}const $i=le({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Li(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 Rn(e,t,n,i){const o=l.ref(!1),r=l.ref(!1);let a=null;const u={},c=i==="dialog"&&Li(e);function f(g){if(g===!0){Fl(u),r.value=!0;return}r.value=!1,o.value===!1&&(c===!1&&a===null&&(a=Ai(!1,i)),o.value=!0,et.push(e.proxy),Ei(u))}function d(g){if(r.value=!1,g!==!0)return;Fl(u),o.value=!1;const m=et.indexOf(e.proxy);m!==-1&&et.splice(m,1),a!==null&&(Oi(a),a=null)}return l.onUnmounted(()=>{d(!0)}),e.proxy.__qPortal=!0,Yt(e.proxy,"contentEl",()=>t.value),{showPortal:f,hidePortal:d,portalIsActive:o,portalIsAccessible:r,renderPortal:()=>c===!0?n():o.value===!0?[l.h(l.Teleport,{to:a},l.h($i,n))]:void 0}}const In={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Fn(e,t=()=>{},n=()=>{}){return{transitionProps:l.computed(()=>{const i=`q-transition--${e.transitionShow||t()}`,o=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${i}-enter-from`,enterActiveClass:`${i}-enter-active`,enterToClass:`${i}-enter-to`,leaveFromClass:`${o}-leave-from`,leaveActiveClass:`${o}-leave-active`,leaveToClass:`${o}-leave-to`}}),transitionStyle:l.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Hn(){let e;const t=l.getCurrentInstance();function n(){e=void 0}return l.onDeactivated(n),l.onBeforeUnmount(n),{removeTick:n,registerTick(i){e=i,l.nextTick(()=>{e===i&&(gn(t)===!1&&e(),e=void 0)})}}}function Dn(){let e=null;const t=l.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return l.onDeactivated(n),l.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(i,o){n(),gn(t)===!1&&(e=setTimeout(()=>{e=null,i()},o))}}}const _e=[];let We;function Pi(e){We=e.keyCode===27}function Ri(){We===!0&&(We=!1)}function Ii(e){We===!0&&(We=!1,Be(e,27)===!0&&_e[_e.length-1](e))}function jn(e){window[e]("keydown",Pi),window[e]("blur",Ri),window[e]("keyup",Ii),We=!1}function Nn(e){oe.is.desktop===!0&&(_e.push(e),_e.length===1&&jn("addEventListener"))}function mt(e){const t=_e.indexOf(e);t!==-1&&(_e.splice(t,1),_e.length===0&&jn("removeEventListener"))}const ze=[];function Wn(e){ze[ze.length-1](e)}function Kn(e){oe.is.desktop===!0&&(ze.push(e),ze.length===1&&document.body.addEventListener("focusin",Wn))}function Kt(e){const t=ze.indexOf(e);t!==-1&&(ze.splice(t,1),ze.length===0&&document.body.removeEventListener("focusin",Wn))}const{notPassiveCapture:ht}=ne,Ee=[];function gt(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=et.length-1;for(;n>=0;){const i=et[n].$;if(i.type.name==="QTooltip"){n--;continue}if(i.type.name!=="QDialog")break;if(i.props.seamless!==!0)return;n--}for(let i=Ee.length-1;i>=0;i--){const o=Ee[i];if((o.anchorEl.value===null||o.anchorEl.value.contains(t)===!1)&&(t===document.body||o.innerRef.value!==null&&o.innerRef.value.contains(t)===!1))e.qClickOutside=!0,o.onClickOutside(e);else return}}function Fi(e){Ee.push(e),Ee.length===1&&(document.addEventListener("mousedown",gt,ht),document.addEventListener("touchstart",gt,ht))}function Dl(e){const t=Ee.findIndex(n=>n===e);t!==-1&&(Ee.splice(t,1),Ee.length===0&&(document.removeEventListener("mousedown",gt,ht),document.removeEventListener("touchstart",gt,ht)))}let jl,Nl;function Wl(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Hi(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Ut={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Ut[`${e}#ltr`]=e,Ut[`${e}#rtl`]=e});function Kl(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:Ut[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function Di(e,t){let{top:n,left:i,right:o,bottom:r,width:a,height:u}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],i-=t[0],r+=t[1],o+=t[0],a+=t[0],u+=t[1]),{top:n,bottom:r,height:u,left:i,right:o,width:a,middle:i+(o-i)/2,center:n+(r-n)/2}}function ji(e,t,n){let{top:i,left:o}=e.getBoundingClientRect();return i+=t.top,o+=t.left,n!==void 0&&(i+=n[1],o+=n[0]),{top:i,bottom:i+1,height:1,left:o,right:o+1,width:1,middle:o,center:i}}function Ni(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Ul(e,t,n,i){return{top:e[n.vertical]-t[i.vertical],left:e[n.horizontal]-t[i.horizontal]}}function Un(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Un(e,t+1)},10);return}const{targetEl:n,offset:i,anchorEl:o,anchorOrigin:r,selfOrigin:a,absoluteOffset:u,fit:c,cover:f,maxHeight:d,maxWidth:g}=e;if(oe.is.ios===!0&&window.visualViewport!==void 0){const V=document.body.style,{offsetLeft:O,offsetTop:P}=window.visualViewport;O!==jl&&(V.setProperty("--q-pe-left",O+"px"),jl=O),P!==Nl&&(V.setProperty("--q-pe-top",P+"px"),Nl=P)}const{scrollLeft:m,scrollTop:v}=n,p=u===void 0?Di(o,f===!0?[0,0]:i):ji(o,u,i);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:g,maxHeight:d,visibility:"visible"});const{offsetWidth:z,offsetHeight:y}=n,{elWidth:M,elHeight:E}=c===!0||f===!0?{elWidth:Math.max(p.width,z),elHeight:f===!0?Math.max(p.height,y):y}:{elWidth:z,elHeight:y};let C={maxWidth:g,maxHeight:d};(c===!0||f===!0)&&(C.minWidth=p.width+"px",f===!0&&(C.minHeight=p.height+"px")),Object.assign(n.style,C);const $=Ni(M,E);let B=Ul(p,$,r,a);if(u===void 0||i===void 0)At(B,p,$,r,a);else{const{top:V,left:O}=B;At(B,p,$,r,a);let P=!1;if(B.top!==V){P=!0;const j=2*i[1];p.center=p.top-=j,p.bottom-=j+2}if(B.left!==O){P=!0;const j=2*i[0];p.middle=p.left-=j,p.right-=j+2}P===!0&&(B=Ul(p,$,r,a),At(B,p,$,r,a))}C={top:B.top+"px",left:B.left+"px"},B.maxHeight!==void 0&&(C.maxHeight=B.maxHeight+"px",p.height>B.maxHeight&&(C.minHeight=C.maxHeight)),B.maxWidth!==void 0&&(C.maxWidth=B.maxWidth+"px",p.width>B.maxWidth&&(C.minWidth=C.maxWidth)),Object.assign(n.style,C),n.scrollTop!==v&&(n.scrollTop=v),n.scrollLeft!==m&&(n.scrollLeft=m)}function At(e,t,n,i,o){const r=n.bottom,a=n.right,u=hi(),c=window.innerHeight-u,f=document.body.clientWidth;if(e.top<0||e.top+r>c)if(o.vertical==="center")e.top=t[i.vertical]>c/2?Math.max(0,c-r):0,e.maxHeight=Math.min(r,c);else if(t[i.vertical]>c/2){const d=Math.min(c,i.vertical==="center"?t.center:i.vertical===o.vertical?t.bottom:t.top);e.maxHeight=Math.min(r,d),e.top=Math.max(0,d-r)}else e.top=Math.max(0,i.vertical==="center"?t.center:i.vertical===o.vertical?t.top:t.bottom),e.maxHeight=Math.min(r,c-e.top);if(e.left<0||e.left+a>f)if(e.maxWidth=Math.min(a,f),o.horizontal==="middle")e.left=t[i.horizontal]>f/2?Math.max(0,f-a):0;else if(t[i.horizontal]>f/2){const d=Math.min(f,i.horizontal==="middle"?t.middle:i.horizontal===o.horizontal?t.right:t.left);e.maxWidth=Math.min(a,d),e.left=Math.max(0,d-e.maxWidth)}else e.left=Math.max(0,i.horizontal==="middle"?t.middle:i.horizontal===o.horizontal?t.left:t.right),e.maxWidth=Math.min(a,f-e.left)}const Qn=le({name:"QMenu",inheritAttrs:!1,props:{...qi,...Mn,...Ve,...In,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Wl},self:{type:String,validator:Wl},offset:{type:Array,validator:Hi},scrollTarget:Bn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...$n,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:i}){let o=null,r,a,u;const c=l.getCurrentInstance(),{proxy:f}=c,{$q:d}=f,g=l.ref(null),m=l.ref(!1),v=l.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),p=Te(e,d),{registerTick:z,removeTick:y}=Hn(),{registerTimeout:M}=Dn(),{transitionProps:E,transitionStyle:C}=Fn(e),{localScrollTarget:$,changeScrollEvent:B,unconfigureScrollTarget:V}=zi(e,F),{anchorEl:O,canShow:P}=_i({showing:m}),{hide:j}=Ln({showing:m,canShow:P,handleShow:Z,handleHide:b,hideOnRouteChange:v,processOnMount:!0}),{showPortal:U,hidePortal:K,renderPortal:A}=Rn(c,g,G,"menu"),W={anchorEl:O,innerRef:g,onClickOutside(S){if(e.persistent!==!0&&m.value===!0)return j(S),(S.type==="touchstart"||S.target.classList.contains("q-dialog__backdrop"))&&te(S),!0}},h=l.computed(()=>Kl(e.anchor||(e.cover===!0?"center middle":"bottom start"),d.lang.rtl)),w=l.computed(()=>e.cover===!0?h.value:Kl(e.self||"top start",d.lang.rtl)),L=l.computed(()=>(e.square===!0?" q-menu--square":"")+(p.value===!0?" q-menu--dark q-dark":"")),Y=l.computed(()=>e.autoClose===!0?{onClick:T}:{}),q=l.computed(()=>m.value===!0&&e.persistent!==!0);l.watch(q,S=>{S===!0?(Nn(H),Fi(W)):(mt(H),Dl(W))});function R(){nl(()=>{let S=g.value;S&&S.contains(document.activeElement)!==!0&&(S=S.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||S.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||S.querySelector("[autofocus], [data-autofocus]")||S,S.focus({preventScroll:!0}))})}function Z(S){if(o=e.noRefocus===!1?document.activeElement:null,Kn(D),U(),F(),r=void 0,S!==void 0&&(e.touchPosition||e.contextMenu)){const ie=tt(S);if(ie.left!==void 0){const{top:he,left:Ae}=O.value.getBoundingClientRect();r={left:ie.left-Ae,top:ie.top-he}}}a===void 0&&(a=l.watch(()=>d.screen.width+"|"+d.screen.height+"|"+e.self+"|"+e.anchor+"|"+d.lang.rtl,I)),e.noFocus!==!0&&document.activeElement.blur(),z(()=>{I(),e.noFocus!==!0&&R()}),M(()=>{d.platform.is.ios===!0&&(u=e.autoClose,g.value.click()),I(),U(!0),n("show",S)},e.transitionDuration)}function b(S){y(),K(),k(!0),o!==null&&(S===void 0||S.qClickOutside!==!0)&&((((S==null?void 0:S.type.indexOf("key"))===0?o.closest('[tabindex]:not([tabindex^="-"])'):void 0)||o).focus(),o=null),M(()=>{K(!0),n("hide",S)},e.transitionDuration)}function k(S){r=void 0,a!==void 0&&(a(),a=void 0),(S===!0||m.value===!0)&&(Kt(D),V(),Dl(W),mt(H)),S!==!0&&(o=null)}function F(){(O.value!==null||e.scrollTarget!==void 0)&&($.value=Vn(O.value,e.scrollTarget),B($.value,I))}function T(S){u!==!0?(Mi(f,S),n("click",S)):u=!1}function D(S){q.value===!0&&e.noFocus!==!0&&kn(g.value,S.target)!==!0&&R()}function H(S){e.noEscDismiss!==!0&&(n("escapeKey"),j(S))}function I(){Un({targetEl:g.value,offset:e.offset,anchorEl:O.value,anchorOrigin:h.value,selfOrigin:w.value,absoluteOffset:r,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function G(){return l.h(l.Transition,E.value,()=>m.value===!0?l.h("div",{role:"menu",...i,ref:g,tabindex:-1,class:["q-menu q-position-engine scroll"+L.value,i.class],style:[i.style,C.value],...Y.value},ce(t.default)):null)}return l.onBeforeUnmount(k),Object.assign(f,{focus:R,updatePosition:I}),A}});let Ot,st=0;const re=new Array(256);for(let e=0;e<256;e++)re[e]=(e+256).toString(16).substring(1);const Wi=(()=>{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 t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return t=>{const n=[];for(let i=t;i>0;i--)n.push(Math.floor(Math.random()*256));return n}})(),Ql=4096;function Qt(){(Ot===void 0||st+16>Ql)&&(st=0,Ot=Wi(Ql));const e=Array.prototype.slice.call(Ot,st,st+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,re[e[0]]+re[e[1]]+re[e[2]]+re[e[3]]+"-"+re[e[4]]+re[e[5]]+"-"+re[e[6]]+re[e[7]]+"-"+re[e[8]]+re[e[9]]+"-"+re[e[10]]+re[e[11]]+re[e[12]]+re[e[13]]+re[e[14]]+re[e[15]]}function Ki(e){return e??null}function Xl(e,t){return e??(t===!0?`f_${Qt()}`:null)}function Ui({getValue:e,required:t=!0}={}){if(Ne.value===!0){const n=e!==void 0?l.ref(Ki(e())):l.ref(null);return t===!0&&n.value===null&&l.onMounted(()=>{n.value=`f_${Qt()}`}),e!==void 0&&l.watch(e,i=>{n.value=Xl(i,t)}),n}return e!==void 0?l.computed(()=>Xl(e(),t)):l.ref(`f_${Qt()}`)}const Yl=/^on[A-Z]/;function Qi(){const{attrs:e,vnode:t}=l.getCurrentInstance(),n={listeners:l.ref({}),attributes:l.ref({})};function i(){const o={},r={};for(const a in e)a!=="class"&&a!=="style"&&Yl.test(a)===!1&&(o[a]=e[a]);for(const a in t.props)Yl.test(a)===!0&&(r[a]=t.props[a]);n.attributes.value=o,n.listeners.value=r}return l.onBeforeUpdate(i),i(),n}const Xi="_q_fo_";function Yi({validate:e,resetValidation:t,requiresQForm:n}){const i=l.inject(Xi,!1);if(i!==!1){const{props:o,proxy:r}=l.getCurrentInstance();Object.assign(r,{validate:e,resetValidation:t}),l.watch(()=>o.disable,a=>{a===!0?(typeof t=="function"&&t(),i.unbindComponent(r)):i.bindComponent(r)}),l.onMounted(()=>{o.disable!==!0&&i.bindComponent(r)}),l.onBeforeUnmount(()=>{o.disable!==!0&&i.unbindComponent(r)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const Gl=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Zl=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Jl=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,ct=/^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])\)$/,dt=/^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)\)$/,Mt={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=>Gl.test(e),hexaColor:e=>Zl.test(e),hexOrHexaColor:e=>Jl.test(e),rgbColor:e=>ct.test(e),rgbaColor:e=>dt.test(e),rgbOrRgbaColor:e=>ct.test(e)||dt.test(e),hexOrRgbColor:e=>Gl.test(e)||ct.test(e),hexaOrRgbaColor:e=>Zl.test(e)||dt.test(e),anyColor:e=>Jl.test(e)||ct.test(e)||dt.test(e)},Gi=[!0,!1,"ondemand"],Zi={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Gi.includes(e)}};function Ji(e,t){const{props:n,proxy:i}=l.getCurrentInstance(),o=l.ref(!1),r=l.ref(null),a=l.ref(!1);Yi({validate:z,resetValidation:p});let u=0,c;const f=l.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),d=l.computed(()=>n.disable!==!0&&f.value===!0&&t.value===!1),g=l.computed(()=>n.error===!0||o.value===!0),m=l.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:r.value);l.watch(()=>n.modelValue,()=>{a.value=!0,d.value===!0&&n.lazyRules===!1&&y()});function v(){n.lazyRules!=="ondemand"&&d.value===!0&&a.value===!0&&y()}l.watch(()=>n.reactiveRules,M=>{M===!0?c===void 0&&(c=l.watch(()=>n.rules,v,{immediate:!0,deep:!0})):c!==void 0&&(c(),c=void 0)},{immediate:!0}),l.watch(()=>n.lazyRules,v),l.watch(e,M=>{M===!0?a.value=!0:d.value===!0&&n.lazyRules!=="ondemand"&&y()});function p(){u++,t.value=!1,a.value=!1,o.value=!1,r.value=null,y.cancel()}function z(M=n.modelValue){if(n.disable===!0||f.value===!1)return!0;const E=++u,C=t.value!==!0?()=>{a.value=!0}:()=>{},$=(V,O)=>{V===!0&&C(),o.value=V,r.value=O||null,t.value=!1},B=[];for(let V=0;V<n.rules.length;V++){const O=n.rules[V];let P;if(typeof O=="function"?P=O(M,Mt):typeof O=="string"&&Mt[O]!==void 0&&(P=Mt[O](M)),P===!1||typeof P=="string")return $(!0,P),!1;P!==!0&&P!==void 0&&B.push(P)}return B.length===0?($(!1),!0):(t.value=!0,Promise.all(B).then(V=>{if(V===void 0||Array.isArray(V)===!1||V.length===0)return E===u&&$(!1),!0;const O=V.find(P=>P===!1||typeof P=="string");return E===u&&$(O!==void 0,O),O===void 0},V=>(E===u&&(console.error(V),$(!0)),!1)))}const y=ll(z,0);return l.onBeforeUnmount(()=>{c==null||c(),y.cancel()}),Object.assign(i,{resetValidation:p,validate:z}),Yt(i,"hasError",()=>g.value),{isDirtyModel:a,hasRules:f,hasError:g,errorMessage:m,validate:z,resetValidation:p}}function Xt(e){return e!=null&&(""+e).length!==0}const er={...Ve,...Zi,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},ol={...er,maxlength:[Number,String]},Xn=["update:modelValue","clear","focus","blur"];function Yn({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:i,proxy:o}=l.getCurrentInstance(),r=Te(i,o.$q),a=Ui({required:e,getValue:()=>i.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?l.computed(()=>i.tag):{value:"label"},isDark:r,editable:l.computed(()=>i.disable!==!0&&i.readonly!==!0),innerLoading:l.ref(!1),focused:l.ref(!1),hasPopupOpen:!1,splitAttrs:Qi(),targetUid:a,rootRef:l.ref(null),targetRef:l.ref(null),controlRef:l.ref(null)}}function Gn(e){const{props:t,emit:n,slots:i,attrs:o,proxy:r}=l.getCurrentInstance(),{$q:a}=r;let u=null;e.hasValue===void 0&&(e.hasValue=l.computed(()=>Xt(t.modelValue))),e.emitValue===void 0&&(e.emitValue=q=>{n("update:modelValue",q)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:j,onFocusout:U}),Object.assign(e,{clearValue:K,onControlFocusin:j,onControlFocusout:U,focus:O}),e.computedCounter===void 0&&(e.computedCounter=l.computed(()=>{if(t.counter!==!1){const q=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,R=t.maxlength!==void 0?t.maxlength:t.maxValues;return q+(R!==void 0?" / "+R:"")}}));const{isDirtyModel:c,hasRules:f,hasError:d,errorMessage:g,resetValidation:m}=Ji(e.focused,e.innerLoading),v=e.floatingLabel!==void 0?l.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):l.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),p=l.computed(()=>t.bottomSlots===!0||t.hint!==void 0||f.value===!0||t.counter===!0||t.error!==null),z=l.computed(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),y=l.computed(()=>`q-field row no-wrap items-start q-field--${z.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(v.value===!0?" q-field--float":"")+(E.value===!0?" q-field--labeled":"")+(t.dense===!0?" q-field--dense":"")+(t.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":"")+(d.value===!0?" q-field--error":"")+(d.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&p.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),M=l.computed(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(d.value===!0?" text-negative":typeof t.standout=="string"&&t.standout.length!==0&&e.focused.value===!0?` ${t.standout}`:t.color!==void 0?` text-${t.color}`:"")),E=l.computed(()=>t.labelSlot===!0||t.label!==void 0),C=l.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&d.value!==!0?` text-${t.labelColor}`:"")),$=l.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:v.value,modelValue:t.modelValue,emitValue:e.emitValue})),B=l.computed(()=>{const q={};return e.targetUid.value&&(q.for=e.targetUid.value),t.disable===!0&&(q["aria-disabled"]="true"),q});function V(){var Z;const q=document.activeElement;let R=(Z=e.targetRef)==null?void 0:Z.value;R&&(q===null||q.id!==e.targetUid.value)&&(R.hasAttribute("tabindex")===!0||(R=R.querySelector("[tabindex]")),R!==q&&(R==null||R.focus({preventScroll:!0})))}function O(){nl(V)}function P(){Bi(V);const q=document.activeElement;q!==null&&e.rootRef.value.contains(q)&&q.blur()}function j(q){u!==null&&(clearTimeout(u),u=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",q))}function U(q,R){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,n("blur",q)),R==null||R())})}function K(q){var R;te(q),a.platform.is.mobile!==!0?(((R=e.targetRef)==null?void 0:R.value)||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",t.modelValue),l.nextTick(()=>{const Z=c.value;m(),c.value=Z})}function A(q){[13,32].includes(q.keyCode)&&K(q)}function W(){const q=[];return i.prepend!==void 0&&q.push(l.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:ae},i.prepend())),q.push(l.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},h())),d.value===!0&&t.noErrorIcon===!1&&q.push(L("error",[l.h(de,{name:a.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?q.push(L("inner-loading-append",i.loading!==void 0?i.loading():[l.h(Zt,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&q.push(L("inner-clearable-append",[l.h(de,{class:"q-field__focusable-action",name:t.clearIcon||a.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":a.lang.label.clear,onKeyup:A,onClick:K})])),i.append!==void 0&&q.push(l.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:ae},i.append())),e.getInnerAppend!==void 0&&q.push(L("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&q.push(e.getControlChild()),q}function h(){const q=[];return t.prefix!==void 0&&t.prefix!==null&&q.push(l.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&q.push(e.getShadowControl()),e.getControl!==void 0?q.push(e.getControl()):i.rawControl!==void 0?q.push(i.rawControl()):i.control!==void 0&&q.push(l.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},i.control($.value))),E.value===!0&&q.push(l.h("div",{class:C.value},ce(i.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&q.push(l.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),q.concat(ce(i.default))}function w(){let q,R;d.value===!0?g.value!==null?(q=[l.h("div",{role:"alert"},g.value)],R=`q--slot-error-${g.value}`):(q=ce(i.error),R="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(q=[l.h("div",t.hint)],R=`q--slot-hint-${t.hint}`):(q=ce(i.hint),R="q--slot-hint"));const Z=t.counter===!0||i.counter!==void 0;if(t.hideBottomSpace===!0&&Z===!1&&q===void 0)return;const b=l.h("div",{key:R,class:"q-field__messages col"},q);return l.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:ae},[t.hideBottomSpace===!0?b:l.h(l.Transition,{name:"q-transition--field-message"},()=>b),Z===!0?l.h("div",{class:"q-field__counter"},i.counter!==void 0?i.counter():e.computedCounter.value):null])}function L(q,R){return R===null?null:l.h("div",{key:q,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},R)}let Y=!1;return l.onDeactivated(()=>{Y=!0}),l.onActivated(()=>{Y===!0&&t.autofocus===!0&&r.focus()}),t.autofocus===!0&&l.onMounted(()=>{r.focus()}),l.onBeforeUnmount(()=>{u!==null&&clearTimeout(u)}),Object.assign(r,{focus:O,blur:P}),function(){const R=e.getControl===void 0&&i.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...B.value}:B.value;return l.h(e.tag.value,{ref:e.rootRef,class:[y.value,o.class],style:o.style,...R},[i.before!==void 0?l.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:ae},i.before()):null,l.h("div",{class:"q-field__inner relative-position col self-stretch"},[l.h("div",{ref:e.controlRef,class:M.value,tabindex:-1,...e.controlEvents},W()),p.value===!0?w():null]),i.after!==void 0?l.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:ae},i.after()):null])}}const tr=le({name:"QField",inheritAttrs:!1,props:{...ol,tag:{type:String,default:"label"}},emits:Xn,setup(){return Gn(Yn({tagProp:!0}))}}),lr={xs:8,sm:10,md:14,lg:20,xl:24},nr=le({name:"QChip",props:{...Ve,...pt,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:t,emit:n}){const{proxy:{$q:i}}=l.getCurrentInstance(),o=Te(e,i),r=yt(e,lr),a=l.computed(()=>e.selected===!0||e.icon!==void 0),u=l.computed(()=>e.selected===!0?e.iconSelected||i.iconSet.chip.selected:e.icon),c=l.computed(()=>e.iconRemove||i.iconSet.chip.remove),f=l.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),d=l.computed(()=>{const y=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}`:"")+(y?` text-${y} 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":"")}),g=l.computed(()=>{const y=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},M={...y,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||i.lang.label.remove};return{chip:y,remove:M}});function m(y){y.keyCode===13&&v(y)}function v(y){e.disable||(n("update:selected",!e.selected),n("click",y))}function p(y){(y.keyCode===void 0||y.keyCode===13)&&(te(y),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function z(){const y=[];f.value===!0&&y.push(l.h("div",{class:"q-focus-helper"})),a.value===!0&&y.push(l.h(de,{class:"q-chip__icon q-chip__icon--left",name:u.value}));const M=e.label!==void 0?[l.h("div",{class:"ellipsis"},[e.label])]:void 0;return y.push(l.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},po(t.default,M))),e.iconRight&&y.push(l.h(de,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&y.push(l.h(de,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:c.value,...g.value.remove,onClick:p,onKeyup:p})),y}return()=>{if(e.modelValue===!1)return;const y={class:d.value,style:r.value};return f.value===!0&&Object.assign(y,g.value.chip,{onClick:v,onKeyup:m}),yo("div",y,z(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Cn,e.ripple]])}}}),or=le({name:"QItem",props:{...Ve,...pn,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:t,emit:n}){const{proxy:{$q:i}}=l.getCurrentInstance(),o=Te(e,i),{hasLink:r,linkAttrs:a,linkClass:u,linkTag:c,navigateOnClick:f}=Gt(),d=l.ref(null),g=l.ref(null),m=l.computed(()=>e.clickable===!0||r.value===!0||e.tag==="label"),v=l.computed(()=>e.disable!==!0&&m.value===!0),p=l.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":"")+(v.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":""):"")),z=l.computed(()=>e.insetLevel===void 0?null:{["padding"+(i.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function y(C){v.value===!0&&(g.value!==null&&C.qAvoidFocus!==!0&&(C.qKeyEvent!==!0&&document.activeElement===d.value?g.value.focus():document.activeElement===g.value&&d.value.focus()),f(C))}function M(C){if(v.value===!0&&Be(C,[13,32])===!0){te(C),C.qKeyEvent=!0;const $=new MouseEvent("click",C);$.qKeyEvent=!0,d.value.dispatchEvent($)}n("keyup",C)}function E(){const C=bo(t.default,[]);return v.value===!0&&C.unshift(l.h("div",{class:"q-focus-helper",tabindex:-1,ref:g})),C}return()=>{const C={ref:d,class:p.value,style:z.value,role:"listitem",onClick:y,onKeyup:M};return v.value===!0?(C.tabindex=e.tabindex||"0",Object.assign(C,a.value)):m.value===!0&&(C["aria-disabled"]="true"),l.h(c.value,C,E())}}}),ir=le({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=l.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()=>l.h("div",{class:n.value},ce(t.default))}}),rr=le({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=l.computed(()=>parseInt(e.lines,10)),i=l.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":"")+(n.value===1?" ellipsis":"")),o=l.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>l.h("div",{style:o.value,class:i.value},ce(t.default))}});function ar(e,t,n){function i(){}return l.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:i,addToHistory(){}}}let Ye=0,$t,Lt,Ze,Pt=!1,en,tn,ln,xe=null;function ur(e){sr(e)&&te(e)}function sr(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=Fo(e),n=e.shiftKey&&!e.deltaX,i=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),o=n||i?e.deltaY:e.deltaX;for(let r=0;r<t.length;r++){const a=t[r];if(gi(a,i))return i?o<0&&a.scrollTop===0?!0:o>0&&a.scrollTop+a.clientHeight===a.scrollHeight:o<0&&a.scrollLeft===0?!0:o>0&&a.scrollLeft+a.clientWidth===a.scrollWidth}return!0}function nn(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function ft(e){Pt!==!0&&(Pt=!0,requestAnimationFrame(()=>{Pt=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:i}=document.scrollingElement;(Ze===void 0||t!==window.innerHeight)&&(Ze=n-t,document.scrollingElement.scrollTop=i),i>Ze&&(document.scrollingElement.scrollTop-=Math.ceil((i-Ze)/8))}))}function on(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:i,overflowX:o}=window.getComputedStyle(t);$t=el(window),Lt=Jt(window),en=t.style.left,tn=t.style.top,ln=window.location.href,t.style.left=`-${$t}px`,t.style.top=`-${Lt}px`,o!=="hidden"&&(o==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),i!=="hidden"&&(i==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,oe.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",ft,ne.passiveCapture),window.visualViewport.addEventListener("scroll",ft,ne.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",nn,ne.passiveCapture))}oe.is.desktop===!0&&oe.is.mac===!0&&window[`${e}EventListener`]("wheel",ur,ne.notPassive),e==="remove"&&(oe.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",ft,ne.passiveCapture),window.visualViewport.removeEventListener("scroll",ft,ne.passiveCapture)):window.removeEventListener("scroll",nn,ne.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=en,t.style.top=tn,window.location.href===ln&&window.scrollTo($t,Lt),Ze=void 0)}function cr(e){let t="add";if(e===!0){if(Ye++,xe!==null){clearTimeout(xe),xe=null;return}if(Ye>1)return}else{if(Ye===0||(Ye--,Ye>0))return;if(t="remove",oe.is.ios===!0&&oe.is.nativeMobile===!0){xe!==null&&clearTimeout(xe),xe=setTimeout(()=>{on(t),xe=null},100);return}}on(t)}function dr(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,cr(t))}}}let vt=0;const fr={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"},rn={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},vr=le({name:"QDialog",inheritAttrs:!1,props:{...Mn,...In,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:[...$n,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:i}){const o=l.getCurrentInstance(),r=l.ref(null),a=l.ref(!1),u=l.ref(!1);let c=null,f=null,d,g;const m=l.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:v}=dr(),{registerTimeout:p}=Dn(),{registerTick:z,removeTick:y}=Hn(),{transitionProps:M,transitionStyle:E}=Fn(e,()=>rn[e.position][0],()=>rn[e.position][1]),C=l.computed(()=>E.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:$,hidePortal:B,portalIsAccessible:V,renderPortal:O}=Rn(o,r,F,"dialog"),{hide:P}=Ln({showing:a,hideOnRouteChange:m,handleShow:W,handleHide:h,processOnMount:!0});ar(a);const j=l.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${fr[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":"")),U=l.computed(()=>a.value===!0&&e.seamless!==!0),K=l.computed(()=>e.autoClose===!0?{onClick:Z}:{}),A=l.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${U.value===!0?"modal":"seamless"}`,i.class]);l.watch(()=>e.maximized,T=>{a.value===!0&&R(T)}),l.watch(U,T=>{v(T),T===!0?(Kn(k),Nn(Y)):(Kt(k),mt(Y))});function W(T){var D;f=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,R(e.maximized),$(),u.value=!0,e.noFocus!==!0?((D=document.activeElement)==null||D.blur(),z(w)):y(),p(()=>{if(o.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:H,bottom:I}=document.activeElement.getBoundingClientRect(),{innerHeight:G}=window,S=window.visualViewport!==void 0?window.visualViewport.height:G;H>0&&I>S/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-S,I>=G?1/0:Math.ceil(document.scrollingElement.scrollTop+I-S/2))),document.activeElement.scrollIntoView()}g=!0,r.value.click(),g=!1}$(!0),u.value=!1,n("show",T)},e.transitionDuration)}function h(T){y(),q(!0),u.value=!0,B(),f!==null&&((((T==null?void 0:T.type.indexOf("key"))===0?f.closest('[tabindex]:not([tabindex^="-"])'):void 0)||f).focus(),f=null),p(()=>{B(!0),u.value=!1,n("hide",T)},e.transitionDuration)}function w(T){nl(()=>{let D=r.value;if(D!==null){if(T!==void 0){const H=D.querySelector(T);if(H!==null){H.focus({preventScroll:!0});return}}D.contains(document.activeElement)!==!0&&(D=D.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||D.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||D.querySelector("[autofocus], [data-autofocus]")||D,D.focus({preventScroll:!0}))}})}function L(T){T&&typeof T.focus=="function"?T.focus({preventScroll:!0}):w(),n("shake");const D=r.value;D!==null&&(D.classList.remove("q-animate--scale"),D.classList.add("q-animate--scale"),c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,r.value!==null&&(D.classList.remove("q-animate--scale"),w())},170))}function Y(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&L():(n("escapeKey"),P()))}function q(T){c!==null&&(clearTimeout(c),c=null),(T===!0||a.value===!0)&&(R(!1),e.seamless!==!0&&(v(!1),Kt(k),mt(Y))),T!==!0&&(f=null)}function R(T){T===!0?d!==!0&&(vt<1&&document.body.classList.add("q-body--dialog"),vt++,d=!0):d===!0&&(vt<2&&document.body.classList.remove("q-body--dialog"),vt--,d=!1)}function Z(T){g!==!0&&(P(T),n("click",T))}function b(T){e.persistent!==!0&&e.noBackdropDismiss!==!0?P(T):e.noShake!==!0&&L()}function k(T){e.allowFocusOutside!==!0&&V.value===!0&&kn(r.value,T.target)!==!0&&w('[tabindex]:not([tabindex="-1"])')}Object.assign(o.proxy,{focus:w,shake:L,__updateRefocusTarget(T){f=T||null}}),l.onBeforeUnmount(q);function F(){return l.h("div",{role:"dialog","aria-modal":U.value===!0?"true":"false",...i,class:A.value},[l.h(l.Transition,{name:"q-transition--fade",appear:!0},()=>U.value===!0?l.h("div",{class:"q-dialog__backdrop fixed-full",style:C.value,"aria-hidden":"true",tabindex:-1,onClick:b}):null),l.h(l.Transition,M.value,()=>a.value===!0?l.h("div",{ref:r,class:j.value,style:E.value,tabindex:-1,...K.value},ce(t.default)):null)])}return O}});let bt=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,bt=e.scrollLeft>=0,e.remove()}const me=1e3,mr=["start","center","end","start-force","center-force","end-force"],Zn=Array.prototype.filter,hr=window.getComputedStyle(document.body).overflowAnchor===void 0?wt:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];Zn.call(n,o=>o.dataset&&o.dataset.qVsAnchor!==void 0).forEach(o=>{delete o.dataset.qVsAnchor});const i=n[t];i!=null&&i.dataset&&(i.dataset.qVsAnchor="")}))};function je(e,t){return e+t}function Rt(e,t,n,i,o,r,a,u){const c=e===window?document.scrollingElement||document.documentElement:e,f=o===!0?"offsetWidth":"offsetHeight",d={scrollStart:0,scrollViewSize:-a-u,scrollMaxSize:0,offsetStart:-a,offsetEnd:-u};if(o===!0?(e===window?(d.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d.scrollViewSize+=document.documentElement.clientWidth):(d.scrollStart=c.scrollLeft,d.scrollViewSize+=c.clientWidth),d.scrollMaxSize=c.scrollWidth,r===!0&&(d.scrollStart=(bt===!0?d.scrollMaxSize-d.scrollViewSize:0)-d.scrollStart)):(e===window?(d.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,d.scrollViewSize+=document.documentElement.clientHeight):(d.scrollStart=c.scrollTop,d.scrollViewSize+=c.clientHeight),d.scrollMaxSize=c.scrollHeight),n!==null)for(let g=n.previousElementSibling;g!==null;g=g.previousElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetStart+=g[f]);if(i!==null)for(let g=i.nextElementSibling;g!==null;g=g.nextElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetEnd+=g[f]);if(t!==e){const g=c.getBoundingClientRect(),m=t.getBoundingClientRect();o===!0?(d.offsetStart+=m.left-g.left,d.offsetEnd-=m.width):(d.offsetStart+=m.top-g.top,d.offsetEnd-=m.height),e!==window&&(d.offsetStart+=d.scrollStart),d.offsetEnd+=d.scrollMaxSize-d.offsetStart}return d}function an(e,t,n,i){t==="end"&&(t=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(i===!0&&(t=(bt===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):n===!0?(i===!0&&(t=(bt===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Ge(e,t,n,i){if(n>=i)return 0;const o=t.length,r=Math.floor(n/me),a=Math.floor((i-1)/me)+1;let u=e.slice(r,a).reduce(je,0);return n%me!==0&&(u-=t.slice(r*me,n).reduce(je,0)),i%me!==0&&i!==o&&(u-=t.slice(i,a*me).reduce(je,0)),u}const gr={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]},un={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...gr};function br({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:i}){const o=l.getCurrentInstance(),{props:r,emit:a,proxy:u}=o,{$q:c}=u;let f,d,g,m=[],v;const p=l.ref(0),z=l.ref(0),y=l.ref({}),M=l.ref(null),E=l.ref(null),C=l.ref(null),$=l.ref({from:0,to:0}),B=l.computed(()=>r.tableColspan!==void 0?r.tableColspan:100);i===void 0&&(i=l.computed(()=>r.virtualScrollItemSize));const V=l.computed(()=>i.value+";"+r.virtualScrollHorizontal),O=l.computed(()=>V.value+";"+r.virtualScrollSliceRatioBefore+";"+r.virtualScrollSliceRatioAfter);l.watch(O,()=>{L()}),l.watch(V,P);function P(){w(d,!0)}function j(b){w(b===void 0?d:b)}function U(b,k){const F=t();if(F==null||F.nodeType===8)return;const T=Rt(F,n(),M.value,E.value,r.virtualScrollHorizontal,c.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd);g!==T.scrollViewSize&&L(T.scrollViewSize),A(F,T,Math.min(e.value-1,Math.max(0,parseInt(b,10)||0)),0,mr.indexOf(k)!==-1?k:d!==-1&&b>d?"end":"start")}function K(){const b=t();if(b==null||b.nodeType===8)return;const k=Rt(b,n(),M.value,E.value,r.virtualScrollHorizontal,c.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd),F=e.value-1,T=k.scrollMaxSize-k.offsetStart-k.offsetEnd-z.value;if(f===k.scrollStart)return;if(k.scrollMaxSize<=0){A(b,k,0,0);return}g!==k.scrollViewSize&&L(k.scrollViewSize),W($.value.from);const D=Math.floor(k.scrollMaxSize-Math.max(k.scrollViewSize,k.offsetEnd)-Math.min(v[F],k.scrollViewSize/2));if(D>0&&Math.ceil(k.scrollStart)>=D){A(b,k,F,k.scrollMaxSize-k.offsetEnd-m.reduce(je,0));return}let H=0,I=k.scrollStart-k.offsetStart,G=I;if(I<=T&&I+k.scrollViewSize>=p.value)I-=p.value,H=$.value.from,G=I;else for(let S=0;I>=m[S]&&H<F;S++)I-=m[S],H+=me;for(;I>0&&H<F;)I-=v[H],I>-k.scrollViewSize?(H++,G=I):G=v[H]+I;A(b,k,H,G)}function A(b,k,F,T,D){const H=typeof D=="string"&&D.indexOf("-force")!==-1,I=H===!0?D.replace("-force",""):D,G=I!==void 0?I:"start";let S=Math.max(0,F-y.value[G]),ie=S+y.value.total;ie>e.value&&(ie=e.value,S=Math.max(0,ie-y.value.total)),f=k.scrollStart;const he=S!==$.value.from||ie!==$.value.to;if(he===!1&&I===void 0){q(F);return}const{activeElement:Ae}=document,fe=C.value;he===!0&&fe!==null&&fe!==Ae&&fe.contains(Ae)===!0&&(fe.addEventListener("focusout",h),setTimeout(()=>{fe==null||fe.removeEventListener("focusout",h)})),hr(fe,F-S);const nt=I!==void 0?v.slice(S,F).reduce(je,0):0;if(he===!0){const ye=ie>=$.value.from&&S<=$.value.to?$.value.to:ie;$.value={from:S,to:ye},p.value=Ge(m,v,0,S),z.value=Ge(m,v,ie,e.value),requestAnimationFrame(()=>{$.value.to!==ie&&f===k.scrollStart&&($.value={from:$.value.from,to:ie},z.value=Ge(m,v,ie,e.value))})}requestAnimationFrame(()=>{if(f!==k.scrollStart)return;he===!0&&W(S);const ye=v.slice(S,F).reduce(je,0),we=ye+k.offsetStart+p.value,ot=we+v[F];let Ke=we+T;if(I!==void 0){const St=ye-nt,Ue=k.scrollStart+St;Ke=H!==!0&&Ue<we&&ot<Ue+k.scrollViewSize?Ue:I==="end"?ot-k.scrollViewSize:we-(I==="start"?0:Math.round((k.scrollViewSize-v[F])/2))}f=Ke,an(b,Ke,r.virtualScrollHorizontal,c.lang.rtl),q(F)})}function W(b){const k=C.value;if(k){const F=Zn.call(k.children,S=>S.classList&&S.classList.contains("q-virtual-scroll--skip")===!1),T=F.length,D=r.virtualScrollHorizontal===!0?S=>S.getBoundingClientRect().width:S=>S.offsetHeight;let H=b,I,G;for(let S=0;S<T;){for(I=D(F[S]),S++;S<T&&F[S].classList.contains("q-virtual-scroll--with-prev")===!0;)I+=D(F[S]),S++;G=I-v[H],G!==0&&(v[H]+=G,m[Math.floor(H/me)]+=G),H++}}}function h(){var b;(b=C.value)==null||b.focus()}function w(b,k){const F=1*i.value;(k===!0||Array.isArray(v)===!1)&&(v=[]);const T=v.length;v.length=e.value;for(let H=e.value-1;H>=T;H--)v[H]=F;const D=Math.floor((e.value-1)/me);m=[];for(let H=0;H<=D;H++){let I=0;const G=Math.min((H+1)*me,e.value);for(let S=H*me;S<G;S++)I+=v[S];m.push(I)}d=-1,f=void 0,p.value=Ge(m,v,0,$.value.from),z.value=Ge(m,v,$.value.to,e.value),b>=0?(W($.value.from),l.nextTick(()=>{U(b)})):R()}function L(b){if(b===void 0&&typeof window<"u"){const I=t();I!=null&&I.nodeType!==8&&(b=Rt(I,n(),M.value,E.value,r.virtualScrollHorizontal,c.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd).scrollViewSize)}g=b;const k=parseFloat(r.virtualScrollSliceRatioBefore)||0,F=parseFloat(r.virtualScrollSliceRatioAfter)||0,T=1+k+F,D=b===void 0||b<=0?1:Math.ceil(b/i.value),H=Math.max(1,D,Math.ceil((r.virtualScrollSliceSize>0?r.virtualScrollSliceSize:10)/T));y.value={total:Math.ceil(H*T),start:Math.ceil(H*k),center:Math.ceil(H*(.5+k)),end:Math.ceil(H*(1+k)),view:D}}function Y(b,k){const F=r.virtualScrollHorizontal===!0?"width":"height",T={["--q-virtual-scroll-item-"+F]:i.value+"px"};return[b==="tbody"?l.h(b,{class:"q-virtual-scroll__padding",key:"before",ref:M},[l.h("tr",[l.h("td",{style:{[F]:`${p.value}px`,...T},colspan:B.value})])]):l.h(b,{class:"q-virtual-scroll__padding",key:"before",ref:M,style:{[F]:`${p.value}px`,...T}}),l.h(b,{class:"q-virtual-scroll__content",key:"content",ref:C,tabindex:-1},k.flat()),b==="tbody"?l.h(b,{class:"q-virtual-scroll__padding",key:"after",ref:E},[l.h("tr",[l.h("td",{style:{[F]:`${z.value}px`,...T},colspan:B.value})])]):l.h(b,{class:"q-virtual-scroll__padding",key:"after",ref:E,style:{[F]:`${z.value}px`,...T}})]}function q(b){d!==b&&(r.onVirtualScroll!==void 0&&a("virtualScroll",{index:b,from:$.value.from,to:$.value.to-1,direction:b<d?"decrease":"increase",ref:u}),d=b)}L();const R=ll(K,c.platform.is.ios===!0?120:35);l.onBeforeMount(()=>{L()});let Z=!1;return l.onDeactivated(()=>{Z=!0}),l.onActivated(()=>{if(Z!==!0)return;const b=t();f!==void 0&&b!==void 0&&b!==null&&b.nodeType!==8?an(b,f,r.virtualScrollHorizontal,c.lang.rtl):U(d)}),l.onBeforeUnmount(()=>{R.cancel()}),Object.assign(u,{scrollTo:U,reset:P,refresh:j}),{virtualScrollSliceRange:$,virtualScrollSliceSizeComputed:y,setVirtualScrollSize:L,onVirtualScrollEvt:R,localResetVirtualScroll:w,padVirtualScroll:Y,scrollTo:U,reset:P,refresh:j}}const pr=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,yr=/[\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,wr=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Sr=/[a-z0-9_ -]$/i;function kr(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(oe.is.firefox===!0?Sr.test(n.data)===!1:pr.test(n.data)===!0||yr.test(n.data)===!0||wr.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}function pe(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,i;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(pe(e[i],t[i])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let r=e.entries();for(i=r.next();i.done!==!0;){if(t.has(i.value[0])!==!0)return!1;i=r.next()}for(r=e.entries(),i=r.next();i.done!==!0;){if(pe(i.value[1],t.get(i.value[0]))!==!0)return!1;i=r.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const r=e.entries();for(i=r.next();i.done!==!0;){if(t.has(i.value[0])!==!0)return!1;i=r.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const o=Object.keys(e).filter(r=>e[r]!==void 0);if(n=o.length,n!==Object.keys(t).filter(r=>t[r]!==void 0).length)return!1;for(i=n;i--!==0;){const r=o[i];if(pe(e[r],t[r])!==!0)return!1}return!0}return e!==e&&t!==t}const sn=e=>["add","add-unique","toggle"].includes(e),xr=".*+?^${}()|[]\\",Cr=Object.keys(ol);function It(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return i=>i!==null&&typeof i=="object"&&n in i?i[n]:i}const Jn=le({name:"QSelect",inheritAttrs:!1,props:{...un,..._n,...ol,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:sn},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:un.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Xn,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:i}=l.getCurrentInstance(),{$q:o}=i,r=l.ref(!1),a=l.ref(!1),u=l.ref(-1),c=l.ref(""),f=l.ref(!1),d=l.ref(!1);let g=null,m=null,v,p,z,y=null,M,E,C,$;const B=l.ref(null),V=l.ref(null),O=l.ref(null),P=l.ref(null),j=l.ref(null),U=ti(e),K=kr(ml),A=l.computed(()=>Array.isArray(e.options)?e.options.length:0),W=l.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:h,virtualScrollSliceSizeComputed:w,localResetVirtualScroll:L,padVirtualScroll:Y,onVirtualScrollEvt:q,scrollTo:R,setVirtualScrollSize:Z}=br({virtualScrollLength:A,getVirtualScrollTarget:no,getVirtualScrollEl:fl,virtualScrollItemSizeComputed:W}),b=Yn(),k=l.computed(()=>{const s=e.mapOptions===!0&&e.multiple!==!0,x=e.modelValue!==void 0&&(e.modelValue!==null||s===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const _=e.mapOptions===!0&&v!==void 0?v:[],N=x.map(Q=>lo(Q,_));return e.modelValue===null&&s===!0?N.filter(Q=>Q!==null):N}return x}),F=l.computed(()=>{const s={};return Cr.forEach(x=>{const _=e[x];_!==void 0&&(s[x]=_)}),s}),T=l.computed(()=>e.optionsDark===null?b.isDark.value:e.optionsDark),D=l.computed(()=>Xt(k.value)),H=l.computed(()=>{let s="q-field__input q-placeholder col";return e.hideSelected===!0||k.value.length===0?[s,e.inputClass]:(s+=" q-field__input--padding",e.inputClass===void 0?s:[s,e.inputClass])}),I=l.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),G=l.computed(()=>A.value===0),S=l.computed(()=>k.value.map(s=>ue.value(s)).join(", ")),ie=l.computed(()=>e.displayValue!==void 0?e.displayValue:S.value),he=l.computed(()=>e.optionsHtml===!0?()=>!0:s=>(s==null?void 0:s.html)===!0),Ae=l.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||k.value.some(he.value))),fe=l.computed(()=>b.focused.value===!0?e.tabindex:-1),nt=l.computed(()=>{const s={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":`${b.targetUid.value}_lb`};return u.value>=0&&(s["aria-activedescendant"]=`${b.targetUid.value}_${u.value}`),s}),ye=l.computed(()=>({id:`${b.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),we=l.computed(()=>k.value.map((s,x)=>({index:x,opt:s,html:he.value(s),selected:!0,removeAtIndex:to,toggleOption:Se,tabindex:fe.value}))),ot=l.computed(()=>{if(A.value===0)return[];const{from:s,to:x}=h.value;return e.options.slice(s,x).map((_,N)=>{const Q=Oe.value(_)===!0,J=xt(_)===!0,X=s+N,ee={clickable:!0,active:J,activeClass:Ue.value,manualFocus:!0,focused:!1,disable:Q,tabindex:-1,dense:e.optionsDense,dark:T.value,role:"option","aria-selected":J===!0?"true":"false",id:`${b.targetUid.value}_${X}`,onClick:()=>{Se(_)}};return Q!==!0&&(u.value===X&&(ee.focused=!0),o.platform.is.desktop===!0&&(ee.onMousemove=()=>{r.value===!0&&Me(X)})),{index:X,opt:_,html:he.value(_),label:ue.value(_),selected:ee.active,focused:ee.focused,toggleOption:Se,setOptionIndex:Me,itemProps:ee}})}),Ke=l.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:o.iconSet.arrow.dropdown),St=l.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),Ue=l.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),ge=l.computed(()=>It(e.optionValue,"value")),ue=l.computed(()=>It(e.optionLabel,"label")),Oe=l.computed(()=>It(e.optionDisable,"disable")),it=l.computed(()=>k.value.map(ge.value)),eo=l.computed(()=>{const s={onInput:ml,onChange:K,onKeydown:dl,onKeyup:sl,onKeypress:cl,onFocus:al,onClick(x){p===!0&&ve(x)}};return s.onCompositionstart=s.onCompositionupdate=s.onCompositionend=K,s});l.watch(k,s=>{v=s,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&b.innerLoading.value!==!0&&(a.value!==!0&&r.value!==!0||D.value!==!0)&&(z!==!0&&Re(),(a.value===!0||r.value===!0)&&$e(""))},{immediate:!0}),l.watch(()=>e.fillInput,Re),l.watch(r,Ct),l.watch(A,go);function il(s){return e.emitValue===!0?ge.value(s):s}function kt(s){if(s!==-1&&s<k.value.length)if(e.multiple===!0){const x=e.modelValue.slice();n("remove",{index:s,value:x.splice(s,1)[0]}),n("update:modelValue",x)}else n("update:modelValue",null)}function to(s){kt(s),b.focus()}function rl(s,x){const _=il(s);if(e.multiple!==!0){e.fillInput===!0&&Qe(ue.value(s),!0,!0),n("update:modelValue",_);return}if(k.value.length===0){n("add",{index:0,value:_}),n("update:modelValue",e.multiple===!0?[_]:_);return}if(x===!0&&xt(s)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const N=e.modelValue.slice();n("add",{index:N.length,value:_}),N.push(_),n("update:modelValue",N)}function Se(s,x){var J;if(b.editable.value!==!0||s===void 0||Oe.value(s)===!0)return;const _=ge.value(s);if(e.multiple!==!0){x!==!0&&(Qe(e.fillInput===!0?ue.value(s):"",!0,!0),ke()),(J=V.value)==null||J.focus(),(k.value.length===0||pe(ge.value(k.value[0]),_)!==!0)&&n("update:modelValue",e.emitValue===!0?_:s);return}if((p!==!0||f.value===!0)&&b.focus(),al(),k.value.length===0){const X=e.emitValue===!0?_:s;n("add",{index:0,value:X}),n("update:modelValue",e.multiple===!0?[X]:X);return}const N=e.modelValue.slice(),Q=it.value.findIndex(X=>pe(X,_));if(Q!==-1)n("remove",{index:Q,value:N.splice(Q,1)[0]});else{if(e.maxValues!==void 0&&N.length>=e.maxValues)return;const X=e.emitValue===!0?_:s;n("add",{index:N.length,value:X}),N.push(X)}n("update:modelValue",N)}function Me(s){if(o.platform.is.desktop!==!0)return;const x=s!==-1&&s<A.value?s:-1;u.value!==x&&(u.value=x)}function rt(s=1,x){if(r.value===!0){let _=u.value;do _=Ll(_+s,-1,A.value-1);while(_!==-1&&_!==u.value&&Oe.value(e.options[_])===!0);u.value!==_&&(Me(_),R(_),x!==!0&&e.useInput===!0&&e.fillInput===!0&&at(_>=0?ue.value(e.options[_]):M,!0))}}function lo(s,x){const _=N=>pe(ge.value(N),s);return e.options.find(_)||x.find(_)||s}function xt(s){const x=ge.value(s);return it.value.find(_=>pe(_,x))!==void 0}function al(s){e.useInput===!0&&V.value!==null&&(s===void 0||V.value===s.target&&s.target.value===S.value)&&V.value.select()}function ul(s){Be(s,27)===!0&&r.value===!0&&(ve(s),ke(),Re()),n("keyup",s)}function sl(s){const{value:x}=s.target;if(s.keyCode!==void 0){ul(s);return}if(s.target.value="",g!==null&&(clearTimeout(g),g=null),m!==null&&(clearTimeout(m),m=null),Re(),typeof x=="string"&&x.length!==0){const _=x.toLocaleLowerCase(),N=J=>{const X=e.options.find(ee=>String(J.value(ee)).toLocaleLowerCase()===_);return X===void 0?!1:(k.value.indexOf(X)===-1?Se(X):ke(),!0)},Q=J=>{N(ge)!==!0&&J!==!0&&N(ue)!==!0&&$e(x,!0,()=>Q(!0))};Q()}else b.clearValue(s)}function cl(s){n("keypress",s)}function dl(s){if(n("keydown",s),xn(s)===!0)return;const x=c.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),_=s.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(u.value!==-1||x===!0);if(s.keyCode===27){ae(s);return}if(s.keyCode===9&&_===!1){Le();return}if(s.target===void 0||s.target.id!==b.targetUid.value||b.editable.value!==!0)return;if(s.keyCode===40&&b.innerLoading.value!==!0&&r.value===!1){te(s),Pe();return}if(s.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&c.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?kt(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(s.keyCode===35||s.keyCode===36)&&(typeof c.value!="string"||c.value.length===0)&&(te(s),u.value=-1,rt(s.keyCode===36?1:-1,e.multiple)),(s.keyCode===33||s.keyCode===34)&&w.value!==void 0&&(te(s),u.value=Math.max(-1,Math.min(A.value,u.value+(s.keyCode===33?-1:1)*w.value.view)),rt(s.keyCode===33?1:-1,e.multiple)),(s.keyCode===38||s.keyCode===40)&&(te(s),rt(s.keyCode===38?-1:1,e.multiple));const N=A.value;if((C===void 0||$<Date.now())&&(C=""),N>0&&e.useInput!==!0&&s.key!==void 0&&s.key.length===1&&s.altKey===!1&&s.ctrlKey===!1&&s.metaKey===!1&&(s.keyCode!==32||C.length!==0)){r.value!==!0&&Pe(s);const Q=s.key.toLocaleLowerCase(),J=C.length===1&&C[0]===Q;$=Date.now()+1500,J===!1&&(te(s),C+=Q);const X=new RegExp("^"+C.split("").map(Ie=>xr.indexOf(Ie)!==-1?"\\"+Ie:Ie).join(".*"),"i");let ee=u.value;if(J===!0||ee<0||X.test(ue.value(e.options[ee]))!==!0)do ee=Ll(ee+1,-1,N-1);while(ee!==u.value&&(Oe.value(e.options[ee])===!0||X.test(ue.value(e.options[ee]))!==!0));u.value!==ee&&l.nextTick(()=>{Me(ee),R(ee),ee>=0&&e.useInput===!0&&e.fillInput===!0&&at(ue.value(e.options[ee]),!0)});return}if(!(s.keyCode!==13&&(s.keyCode!==32||e.useInput===!0||C!=="")&&(s.keyCode!==9||_===!1))){if(s.keyCode!==9&&te(s),u.value!==-1&&u.value<N){Se(e.options[u.value]);return}if(x===!0){const Q=(J,X)=>{var Ie;if(X){if(sn(X)!==!0)return}else X=e.newValueMode;if(Qe("",e.multiple!==!0,!0),J==null)return;(X==="toggle"?Se:rl)(J,X==="add-unique"),e.multiple!==!0&&((Ie=V.value)==null||Ie.focus(),ke())};if(e.onNewValue!==void 0?n("newValue",c.value,Q):Q(c.value),e.multiple!==!0)return}r.value===!0?Le():b.innerLoading.value!==!0&&Pe()}}function fl(){return p===!0?j.value:O.value!==null&&O.value.contentEl!==null?O.value.contentEl:void 0}function no(){return fl()}function oo(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?we.value.map(s=>t["selected-item"](s)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?we.value.map((s,x)=>l.h(nr,{key:"option-"+x,removable:b.editable.value===!0&&Oe.value(s.opt)!==!0,dense:!0,textColor:e.color,tabindex:fe.value,onRemove(){s.removeAtIndex(x)}},()=>l.h("span",{class:"ellipsis",[s.html===!0?"innerHTML":"textContent"]:ue.value(s.opt)}))):[l.h("span",{class:"ellipsis",[Ae.value===!0?"innerHTML":"textContent"]:ie.value})]}function vl(){if(G.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:c.value}):void 0;const s=t.option!==void 0?t.option:_=>l.h(or,{key:_.index,..._.itemProps},()=>l.h(ir,()=>l.h(rr,()=>l.h("span",{[_.html===!0?"innerHTML":"textContent"]:_.label}))));let x=Y("div",ot.value.map(s));return t["before-options"]!==void 0&&(x=t["before-options"]().concat(x)),be(t["after-options"],x)}function io(s,x){const _=x===!0?{...nt.value,...b.splitAttrs.attributes.value}:void 0,N={ref:x===!0?V:void 0,key:"i_t",class:H.value,style:e.inputStyle,value:c.value!==void 0?c.value:"",type:"search",..._,id:x===!0?b.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":s===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...eo.value};return s!==!0&&p===!0&&(Array.isArray(N.class)===!0?N.class=[...N.class,"no-pointer-events"]:N.class+=" no-pointer-events"),l.h("input",N)}function ml(s){g!==null&&(clearTimeout(g),g=null),m!==null&&(clearTimeout(m),m=null),!(s&&s.target&&s.target.qComposing===!0)&&(at(s.target.value||""),z=!0,M=c.value,b.focused.value!==!0&&(p!==!0||f.value===!0)&&b.focus(),e.onFilter!==void 0&&(g=setTimeout(()=>{g=null,$e(c.value)},e.inputDebounce)))}function at(s,x){c.value!==s&&(c.value=s,x===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",s):m=setTimeout(()=>{m=null,n("inputValue",s)},e.inputDebounce))}function Qe(s,x,_){z=_!==!0,e.useInput===!0&&(at(s,!0),(x===!0||_!==!0)&&(M=s),x!==!0&&$e(s))}function $e(s,x,_){if(e.onFilter===void 0||x!==!0&&b.focused.value!==!0)return;b.innerLoading.value===!0?n("filterAbort"):(b.innerLoading.value=!0,d.value=!0),s!==""&&e.multiple!==!0&&k.value.length!==0&&z!==!0&&s===ue.value(k.value[0])&&(s="");const N=setTimeout(()=>{r.value===!0&&(r.value=!1)},10);y!==null&&clearTimeout(y),y=N,n("filter",s,(Q,J)=>{(x===!0||b.focused.value===!0)&&y===N&&(clearTimeout(y),typeof Q=="function"&&Q(),d.value=!1,l.nextTick(()=>{b.innerLoading.value=!1,b.editable.value===!0&&(x===!0?r.value===!0&&ke():r.value===!0?Ct(!0):r.value=!0),typeof J=="function"&&l.nextTick(()=>{J(i)}),typeof _=="function"&&l.nextTick(()=>{_(i)})}))},()=>{b.focused.value===!0&&y===N&&(clearTimeout(y),b.innerLoading.value=!1,d.value=!1),r.value===!0&&(r.value=!1)})}function ro(){return l.h(Qn,{ref:O,class:I.value,style:e.popupContentStyle,modelValue:r.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&G.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:T.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:St.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...ye.value,onScrollPassive:q,onBeforeShow:gl,onBeforeHide:ao,onShow:uo},vl)}function ao(s){bl(s),Le()}function uo(){Z()}function so(s){var x;ve(s),(x=V.value)==null||x.focus(),f.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function co(s){ve(s),l.nextTick(()=>{f.value=!1})}function fo(){const s=[l.h(tr,{class:`col-auto ${b.fieldClass.value}`,...F.value,for:b.targetUid.value,dark:T.value,square:!0,loading:d.value,itemAligned:!1,filled:!0,stackLabel:c.value.length!==0,...b.splitAttrs.listeners.value,onFocus:so,onBlur:co},{...t,rawControl:()=>b.getControl(!0),before:void 0,after:void 0})];return r.value===!0&&s.push(l.h("div",{ref:j,class:I.value+" scroll",style:e.popupContentStyle,...ye.value,onClick:ae,onScrollPassive:q},vl())),l.h(vr,{ref:P,modelValue:a.value,position:e.useInput===!0?"top":void 0,transitionShow:E,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:gl,onBeforeHide:vo,onHide:mo,onShow:ho},()=>l.h("div",{class:"q-select__dialog"+(T.value===!0?" q-select__dialog--dark q-dark":"")+(f.value===!0?" q-select__dialog--focused":"")},s))}function vo(s){bl(s),P.value!==null&&P.value.__updateRefocusTarget(b.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),b.focused.value=!1}function mo(s){ke(),b.focused.value===!1&&n("blur",s),Re()}function ho(){const s=document.activeElement;(s===null||s.id!==b.targetUid.value)&&V.value!==null&&V.value!==s&&V.value.focus(),Z()}function Le(){a.value!==!0&&(u.value=-1,r.value===!0&&(r.value=!1),b.focused.value===!1&&(y!==null&&(clearTimeout(y),y=null),b.innerLoading.value===!0&&(n("filterAbort"),b.innerLoading.value=!1,d.value=!1)))}function Pe(s){b.editable.value===!0&&(p===!0?(b.onControlFocusin(s),a.value=!0,l.nextTick(()=>{b.focus()})):b.focus(),e.onFilter!==void 0?$e(c.value):(G.value!==!0||t["no-option"]!==void 0)&&(r.value=!0))}function ke(){a.value=!1,Le()}function Re(){e.useInput===!0&&Qe(e.multiple!==!0&&e.fillInput===!0&&k.value.length!==0&&ue.value(k.value[0])||"",!0,!0)}function Ct(s){let x=-1;if(s===!0){if(k.value.length!==0){const _=ge.value(k.value[0]);x=e.options.findIndex(N=>pe(ge.value(N),_))}L(x)}Me(x)}function go(s,x){r.value===!0&&b.innerLoading.value===!1&&(L(-1,!0),l.nextTick(()=>{r.value===!0&&b.innerLoading.value===!1&&(s>x?L():Ct(!0))}))}function hl(){a.value===!1&&O.value!==null&&O.value.updatePosition()}function gl(s){s!==void 0&&ve(s),n("popupShow",s),b.hasPopupOpen=!0,b.onControlFocusin(s)}function bl(s){s!==void 0&&ve(s),n("popupHide",s),b.hasPopupOpen=!1,b.onControlFocusout(s)}function pl(){p=o.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||G.value===!1:!0),E=o.platform.is.ios===!0&&p===!0&&e.useInput===!0?"fade":e.transitionShow}return l.onBeforeUpdate(pl),l.onUpdated(hl),pl(),l.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),m!==null&&clearTimeout(m)}),Object.assign(i,{showPopup:Pe,hidePopup:ke,removeAtIndex:kt,add:rl,toggleOption:Se,getOptionIndex:()=>u.value,setOptionIndex:Me,moveOptionSelection:rt,filter:$e,updateMenuPosition:hl,updateInputValue:Qe,isOptionSelected:xt,getEmittingOptionValue:il,isOptionDisabled:(...s)=>Oe.value.apply(null,s)===!0,getOptionValue:(...s)=>ge.value.apply(null,s),getOptionLabel:(...s)=>ue.value.apply(null,s)}),Object.assign(b,{innerValue:k,fieldClass:l.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:B,targetRef:V,hasValue:D,showPopup:Pe,floatingLabel:l.computed(()=>e.hideSelected!==!0&&D.value===!0||typeof c.value=="number"||c.value.length!==0||Xt(e.displayValue)),getControlChild:()=>{if(b.editable.value!==!1&&(a.value===!0||G.value!==!0||t["no-option"]!==void 0))return p===!0?fo():ro();b.hasPopupOpen===!0&&(b.hasPopupOpen=!1)},controlEvents:{onFocusin(s){b.onControlFocusin(s)},onFocusout(s){b.onControlFocusout(s,()=>{Re(),Le()})},onClick(s){var x;if(ae(s),p!==!0&&r.value===!0){Le(),(x=V.value)==null||x.focus();return}Pe(s)}},getControl:s=>{const x=oo(),_=s===!0||a.value!==!0||p!==!0;if(e.useInput===!0)x.push(io(s,_));else if(b.editable.value===!0){const Q=_===!0?nt.value:void 0;x.push(l.h("input",{ref:_===!0?V:void 0,key:"d_t",class:"q-select__focus-target",id:_===!0?b.targetUid.value:void 0,value:ie.value,readonly:!0,"data-autofocus":s===!0||e.autofocus===!0||void 0,...Q,onKeydown:dl,onKeyup:ul,onKeypress:cl})),_===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&x.push(l.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:sl}))}if(U.value!==void 0&&e.disable!==!0&&it.value.length!==0){const Q=it.value.map(J=>l.h("option",{value:J,selected:!0}));x.push(l.h("select",{class:"hidden",name:U.value,multiple:e.multiple},Q))}const N=e.useInput===!0||_!==!0?void 0:b.splitAttrs.attributes.value;return l.h("div",{class:"q-field__native row items-center",...N,...b.splitAttrs.listeners.value},x)},getInnerAppend:()=>e.loading!==!0&&d.value!==!0&&e.hideDropdownIcon!==!0?[l.h(de,{class:"q-select__dropdown-icon"+(r.value===!0?" rotate-180":""),name:Ke.value})]:null}),Gn(b)}}),qr={class:"q-pa-none"},_r=l.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,o=l.ref(!1),r=l.ref(n.modelValue||[]),a=l.computed(()=>({height:n.scrollAreaHeight,width:n.scrollAreaWidth}));return l.watch(r,u=>{i("update:modelValue",u)}),l.watch(()=>n.modelValue,u=>{u&&(r.value=u)}),(u,c)=>(l.openBlock(),l.createElementBlock("div",qr,[l.createVNode(Jn,l.mergeProps({outlined:"",dense:"",label:n.label,class:"full-width cursor-pointer","data-cy":"checkbox-filter","model-value":null,options:[],"hide-dropdown-icon":""},u.$attrs),{append:l.withCtx(()=>[l.createVNode(de,{name:"arrow_drop_down",class:l.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":o.value}])},null,8,["class"])]),default:l.withCtx(()=>[l.createVNode(Qn,{modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=f=>o.value=f),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:l.withCtx(()=>[l.createVNode(xi,{class:"q-pa-sm"},{default:l.withCtx(()=>[l.createVNode(ki,{style:l.normalizeStyle(a.value)},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.options,f=>(l.openBlock(),l.createBlock(ai,{key:f.value,modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=d=>r.value=d),val:f,label:f.label,disable:f.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`checkbox-option-${f.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label"])]))}}),zr=qn(_r,[["__scopeId","data-v-42c19597"]]),Er=l.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Select"},modelValue:{default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,o=l.ref(n.modelValue),r=l.ref(n.options),a=l.ref(!1);l.watch(()=>n.modelValue,c=>{o.value=c}),l.watch(o,c=>{i("update:modelValue",c)}),l.watch(()=>n.options,c=>{r.value=c});const u=async(c,f)=>{f(async()=>{if(!c){r.value=n.options;return}if(n.fetchOptions)try{a.value=!0;const d=await n.fetchOptions(c);r.value=d}finally{a.value=!1}else r.value=n.options.filter(d=>d.label.toLowerCase().includes(c.toLowerCase()))})};return(c,f)=>(l.openBlock(),l.createBlock(Jn,l.mergeProps({modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=d=>o.value=d),"use-input":"","hide-selected":"","fill-input":"","input-debounce":"300",label:c.label,options:r.value,onFilter:u,"data-cy":"client-select",dense:"",outlined:"",class:"full-width cursor-pointer"},c.$attrs),l.createSlots({_:2},[a.value?{name:"append",fn:l.withCtx(()=>[l.createVNode(Zt,{color:"primary",size:"sm"})]),key:"0"}:void 0]),1040,["modelValue","label","options"]))}});function Br(e){var t,n;return{entity:e.entity,dataCy:e.dataCy,defaultLabel:e.defaultLabel,routeName:e.routeName,shouldRender:e.customShouldRender||(({store:i})=>e.storeField?!!i[e.storeField]:!0),getLabel:e.getLabel||(e.labelField?({store:i})=>{var o;return e.storeField&&((o=i[e.storeField])==null?void 0:o[e.labelField])||e.defaultLabel}:void 0),getColor:e.customGetColor||(({store:i})=>e.storeField&&i[e.storeField]?"primary":"dark"),getRouteParams:e.routeParamKey&&e.routeParamField?({store:i})=>{var o;return{[e.routeParamKey]:e.storeField&&((o=i[e.storeField])==null?void 0:o[e.routeParamField])}}:void 0,clearActions:[...((t=e.clearMethods)==null?void 0:t.map(i=>({store:o})=>{var r;return(r=o[i])==null?void 0:r.call(o)}))||[],...((n=e.navActions)==null?void 0:n.map(i=>({navStore:o})=>i(o)))||[]]}}exports.Breadcrumbs=$o;exports.CheckboxFilter=zr;exports.NavButton=Zo;exports.SelectSearch=Er;exports.createBreadcrumb=Br;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),Ft={xs:18,sm:24,md:32,lg:38,xl:46},pt={size:String};function yt(e,t=Ft){return l.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Yt(e,t,n,i){return Object.defineProperty(e,t,{get:n,set:i,enumerable:!0}),e}function le(e){return l.markRaw(l.defineComponent(e))}function cn(e){return l.markRaw(e)}function ce(e,t){return e!==void 0&&e()||t}function bo(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function be(e,t){return e!==void 0?t.concat(e()):t}function po(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function yo(e,t,n,i,o,r){t.key=i+o;const u=l.h(e,t,n);return o===!0?l.withDirectives(u,r()):u}const yl="0 0 24 24",qt=e=>e,_t=e=>`ionicons ${e}`,dn={"mdi-":e=>`mdi ${e}`,"icon-":qt,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":_t,"ion-ios":_t,"ion-logo":_t,"iconfont ":qt,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":qt},fn={o_:"-outlined",r_:"-round",s_:"-sharp"},vn={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},wo=new RegExp("^("+Object.keys(dn).join("|")+")"),So=new RegExp("^("+Object.keys(fn).join("|")+")"),wl=new RegExp("^("+Object.keys(vn).join("|")+")"),ko=/^[Mm]\s?[-+]?\.?\d/,xo=/^img:/,Co=/^svguse:/,qo=/^ion-/,_o=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,de=le({name:"QIcon",props:{...pt,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=l.getCurrentInstance(),i=yt(e),o=l.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=l.computed(()=>{let u,a=e.name;if(a==="none"||!a)return{none:!0};if(n.iconMapFn!==null){const d=n.iconMapFn(a);if(d!==void 0)if(d.icon!==void 0){if(a=d.icon,a==="none"||!a)return{none:!0}}else return{cls:d.cls,content:d.content!==void 0?d.content:" "}}if(ko.test(a)===!0){const[d,h=yl]=a.split("|");return{svg:!0,viewBox:h,nodes:d.split("&&").map(m=>{const[v,p,z]=m.split("@@");return l.h("path",{style:p,d:v,transform:z})})}}if(xo.test(a)===!0)return{img:!0,src:a.substring(4)};if(Co.test(a)===!0){const[d,h=yl]=a.split("|");return{svguse:!0,src:d.substring(7),viewBox:h}}let f=" ";const c=a.match(wo);if(c!==null)u=dn[c[1]](a);else if(_o.test(a)===!0)u=a;else if(qo.test(a)===!0)u=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${a.substring(3)}`;else if(wl.test(a)===!0){u="notranslate material-symbols";const d=a.match(wl);d!==null&&(a=a.substring(6),u+=vn[d[1]]),f=a}else{u="notranslate material-icons";const d=a.match(So);d!==null&&(a=a.substring(2),u+=fn[d[1]]),f=a}return{cls:u,content:f}});return()=>{const u={class:o.value,style:i.value,"aria-hidden":"true"};return r.value.none===!0?l.h(e.tag,u,ce(t.default)):r.value.img===!0?l.h(e.tag,u,be(t.default,[l.h("img",{src:r.value.src})])):r.value.svg===!0?l.h(e.tag,u,be(t.default,[l.h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?l.h(e.tag,u,be(t.default,[l.h("svg",{viewBox:r.value.viewBox},[l.h("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(u.class+=" "+r.value.cls),l.h(e.tag,u,be(t.default,[r.value.content])))}}});function zt(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function mn(e,t){typeof t.type=="symbol"?Array.isArray(t.children)===!0&&t.children.forEach(n=>{mn(e,n)}):e.add(t)}function zo(e){const t=new Set;return e.forEach(n=>{mn(t,n)}),Array.from(t)}function hn(e){return e.appContext.config.globalProperties.$router!==void 0}function gn(e){return e.isUnmounted===!0||e.isDeactivated===!0}function Sl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function kl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Eo(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(Array.isArray(o)===!1||o.length!==i.length||i.some((r,u)=>r!==o[u]))return!1}return!0}function xl(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Bo(e,t){return Array.isArray(e)===!0?xl(e,t):Array.isArray(t)===!0?xl(t,e):e===t}function Vo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(Bo(e[n],t[n])===!1)return!1;return!0}const bn={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},pn={...bn,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Gt({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=l.getCurrentInstance(),{props:i,proxy:o,emit:r}=n,u=hn(n),a=l.computed(()=>i.disable!==!0&&i.href!==void 0),f=t===!0?l.computed(()=>u===!0&&i.disable!==!0&&a.value!==!0&&i.to!==void 0&&i.to!==null&&i.to!==""):l.computed(()=>u===!0&&a.value!==!0&&i.to!==void 0&&i.to!==null&&i.to!==""),c=l.computed(()=>f.value===!0?E(i.to):null),d=l.computed(()=>c.value!==null),h=l.computed(()=>a.value===!0||d.value===!0),m=l.computed(()=>i.type==="a"||h.value===!0?"a":i.tag||e||"div"),v=l.computed(()=>a.value===!0?{href:i.href,target:i.target}:d.value===!0?{href:c.value.href,target:i.target}:{}),p=l.computed(()=>{if(d.value===!1)return-1;const{matched:B}=c.value,{length:V}=B,O=B[V-1];if(O===void 0)return-1;const P=o.$route.matched;if(P.length===0)return-1;const j=P.findIndex(kl.bind(null,O));if(j!==-1)return j;const U=Sl(B[V-2]);return V>1&&Sl(O)===U&&P[P.length-1].path!==U?P.findIndex(kl.bind(null,B[V-2])):j}),z=l.computed(()=>d.value===!0&&p.value!==-1&&Eo(o.$route.params,c.value.params)),y=l.computed(()=>z.value===!0&&p.value===o.$route.matched.length-1&&Vo(o.$route.params,c.value.params)),M=l.computed(()=>d.value===!0?y.value===!0?` ${i.exactActiveClass} ${i.activeClass}`:i.exact===!0?"":z.value===!0?` ${i.activeClass}`:"":"");function E(B){try{return o.$router.resolve(B)}catch{}return null}function C(B,{returnRouterError:V,to:O=i.to,replace:P=i.replace}={}){if(i.disable===!0)return B.preventDefault(),Promise.resolve(!1);if(B.metaKey||B.altKey||B.ctrlKey||B.shiftKey||B.button!==void 0&&B.button!==0||i.target==="_blank")return Promise.resolve(!1);B.preventDefault();const j=o.$router[P===!0?"replace":"push"](O);return V===!0?j:j.then(()=>{}).catch(()=>{})}function $(B){if(d.value===!0){const V=O=>C(B,O);r("click",B,V),B.defaultPrevented!==!0&&V()}else r("click",B)}return{hasRouterLink:d,hasHrefLink:a,hasLink:h,linkTag:m,resolvedLink:c,linkIsActive:z,linkIsExactActive:y,linkClass:M,linkAttrs:v,getLink:E,navigateToRouterLink:C,navigateOnClick:$}}const To=le({name:"QBreadcrumbsEl",props:{...pn,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:t}){const{linkTag:n,linkAttrs:i,linkClass:o,navigateOnClick:r}=Gt(),u=l.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"),...i.value,onClick:r})),a=l.computed(()=>"q-breadcrumbs__el-icon"+(e.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const f=[];return e.icon!==void 0&&f.push(l.h(de,{class:a.value,name:e.icon})),e.label!==void 0&&f.push(e.label),l.h(n.value,{...u.value},be(t.default,f))}}}),yn={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ao=Object.keys(yn),wn={align:{type:String,validator:e=>Ao.includes(e)}};function Sn(e){return l.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${yn[t]}`})}const Oo=["",!0],Mo=le({name:"QBreadcrumbs",props:{...wn,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:t}){const n=Sn(e),i=l.computed(()=>`flex items-center ${n.value}${e.gutter==="none"?"":` q-gutter-${e.gutter}`}`),o=l.computed(()=>e.separatorColor?` text-${e.separatorColor}`:""),r=l.computed(()=>` text-${e.activeColor}`);return()=>{if(t.default===void 0)return;const u=zo(ce(t.default));if(u.length===0)return;let a=1;const f=[],c=u.filter(h=>{var m;return((m=h.type)==null?void 0:m.name)==="QBreadcrumbsEl"}).length,d=t.separator!==void 0?t.separator:()=>e.separator;return u.forEach(h=>{var m;if(((m=h.type)==null?void 0:m.name)==="QBreadcrumbsEl"){const v=a<c,p=h.props!==null&&Oo.includes(h.props.disable),z=(v===!0?"":" q-breadcrumbs--last")+(p!==!0&&v===!0?r.value:"");a++,f.push(l.h("div",{class:`flex items-center${z}`},[h])),v===!0&&f.push(l.h("div",{class:"q-breadcrumbs__separator"+o.value},d()))}else f.push(h)}),l.h("div",{class:"q-breadcrumbs"},[l.h("div",{class:i.value},f)])}}}),$o=l.defineComponent({inheritAttrs:!1,__name:"Breadcrumbs",props:{activeColor:{},separatorIcon:{},separatorSize:{},separatorColor:{},store:{},navStore:{},route:{},router:{},breadcrumbConfig:{},separator:{},gutter:{},align:{}},setup(e){const t=e,n=l.useAttrs(),i=l.computed(()=>{const{activeColor:m,separatorIcon:v,separatorSize:p,separatorColor:z,...y}=n;return y}),o=m=>({"data-cy":m.dataCy,class:"cursor-pointer text-h5",color:m.color}),r=l.computed(()=>t.activeColor||"primary"),u=l.computed(()=>t.separatorIcon||"chevron_right"),a=l.computed(()=>t.separatorSize||"2em"),f=l.computed(()=>t.separatorColor||"primary"),c=l.computed(()=>({store:t.store,route:t.route,navStore:t.navStore||{}})),d=l.computed(()=>{const m=[];return t.breadcrumbConfig.forEach(v=>{if(!v.shouldRender(c.value))return;const p=v.getLabel?v.getLabel(c.value):v.defaultLabel,z=v.getColor?v.getColor(c.value):"dark",y={name:v.routeName,...v.getRouteParams&&{params:v.getRouteParams(c.value)}},M=v.clearActions?v.clearActions.map(E=>()=>E(c.value)):[];m.push({label:p,dataCy:v.dataCy,color:z,route:y,clearActions:M})}),m}),h=m=>{m.clearActions&&m.clearActions.forEach(v=>v()),t.router.push(m.route)};return(m,v)=>(l.openBlock(),l.createBlock(Mo,l.mergeProps({"active-color":r.value,class:"text-brown"},i.value),{separator:l.withCtx(()=>[l.createVNode(de,{size:a.value,name:u.value,color:f.value},null,8,["size","name","color"])]),default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(d.value,(p,z)=>(l.openBlock(),l.createBlock(To,l.mergeProps({key:z},{ref_for:!0},o(p),{label:p.label,onClick:y=>h(p)}),null,16,["label","onClick"]))),128))]),_:1},16,["active-color"]))}}),Lo={size:{type:[String,Number],default:"1em"},color:String};function Po(e){return{cSize:l.computed(()=>e.size in Ft?`${Ft[e.size]}px`:e.size),classes:l.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Zt=le({name:"QSpinner",props:{...Lo,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=Po(e);return()=>l.h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[l.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Ht(e,t){const n=e.style;for(const i in t)n[i]=t[i]}function Ro(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=l.unref(e);if(t)return t.$el||t}function kn(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}const ne={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(ne,{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 wt(){}function Io(e){return e.button===0}function tt(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 Fo(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),n.tagName==="HTML")return t.push(document),t.push(window),t;n=n.parentElement}}function ve(e){e.stopPropagation()}function ue(e){e.cancelable!==!1&&e.preventDefault()}function te(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Et(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;const n=t===!0?i=>{i.__dragPrevented=!0,i.addEventListener("dragstart",ue,ne.notPassiveCapture)}:i=>{delete i.__dragPrevented,i.removeEventListener("dragstart",ue,ne.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function Ce(e,t,n){const i=`__q_${t}_evt`;e[i]=e[i]!==void 0?e[i].concat(n):n,n.forEach(o=>{o[0].addEventListener(o[1],e[o[2]],ne[o[3]])})}function Je(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(i=>{i[0].removeEventListener(i[1],e[i[2]],ne[i[3]])}),e[n]=void 0)}function xn(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Be(e,t){return xn(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Ho(e,t=250){let n=!1,i;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),i=e.apply(this,arguments)),i}}function Cl(e,t,n,i){n.modifiers.stop===!0&&ve(e);const o=n.modifiers.color;let r=n.modifiers.center;r=r===!0||i===!0;const u=document.createElement("span"),a=document.createElement("span"),f=tt(e),{left:c,top:d,width:h,height:m}=t.getBoundingClientRect(),v=Math.sqrt(h*h+m*m),p=v/2,z=`${(h-v)/2}px`,y=r?z:`${f.left-c-p}px`,M=`${(m-v)/2}px`,E=r?M:`${f.top-d-p}px`;a.className="q-ripple__inner",Ht(a,{height:`${v}px`,width:`${v}px`,transform:`translate3d(${y},${E},0) scale3d(.2,.2,1)`,opacity:0}),u.className=`q-ripple${o?" text-"+o:""}`,u.setAttribute("dir","ltr"),u.appendChild(a),t.appendChild(u);const C=()=>{u.remove(),clearTimeout($)};n.abort.push(C);let $=setTimeout(()=>{a.classList.add("q-ripple__inner--enter"),a.style.transform=`translate3d(${z},${M},0) scale3d(1,1,1)`,a.style.opacity=.2,$=setTimeout(()=>{a.classList.remove("q-ripple__inner--enter"),a.classList.add("q-ripple__inner--leave"),a.style.opacity=0,$=setTimeout(()=>{u.remove(),n.abort.splice(n.abort.indexOf(C),1)},275)},250)},50)}function ql(e,{modifiers:t,value:n,arg:i}){const o=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:o.early===!0,stop:o.stop===!0,center:o.center===!0,color:o.color||i,keyCodes:[].concat(o.keyCodes||13)}}const Cn=cn({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const i={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(o){i.enabled===!0&&o.qSkipRipple!==!0&&o.type===(i.modifiers.early===!0?"pointerdown":"click")&&Cl(o,e,i,o.qKeyEvent===!0)},keystart:Ho(o=>{i.enabled===!0&&o.qSkipRipple!==!0&&Be(o,i.modifiers.keyCodes)===!0&&o.type===`key${i.modifiers.early===!0?"down":"up"}`&&Cl(o,e,i,!0)},300)};ql(i,t),e.__qripple=i,Ce(i,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&ql(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),Je(t,"main"),delete e._qripple)}}),_l={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Do={xs:8,sm:10,md:14,lg:20,xl:24},jo=["button","submit","reset"],No=/[^\s]\/[^\s]/,Wo=["flat","outline","push","unelevated"];function Ko(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const Uo={...pt,...bn,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Wo.reduce((e,t)=>(e[t]=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:{...wn.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Qo={...Uo,round:Boolean};function Xo(e){const t=yt(e,Do),n=Sn(e),{hasRouterLink:i,hasLink:o,linkTag:r,linkAttrs:u,navigateOnClick:a}=Gt({fallbackTag:"button"}),f=l.computed(()=>{const y=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},y,{padding:e.padding.split(/\s+/).map(M=>M in _l?_l[M]+"px":M).join(" "),minWidth:"0",minHeight:"0"}):y}),c=l.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),d=l.computed(()=>e.disable!==!0&&e.loading!==!0),h=l.computed(()=>d.value===!0?e.tabindex||0:-1),m=l.computed(()=>Ko(e,"standard")),v=l.computed(()=>{const y={tabindex:h.value};return o.value===!0?Object.assign(y,u.value):jo.includes(e.type)===!0&&(y.type=e.type),r.value==="a"?(e.disable===!0?y["aria-disabled"]="true":y.href===void 0&&(y.role="button"),i.value!==!0&&No.test(e.type)===!0&&(y.type=e.type)):e.disable===!0&&(y.disabled="",y["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(y,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),y}),p=l.computed(()=>{let y;e.color!==void 0?e.flat===!0||e.outline===!0?y=`text-${e.textColor||e.color}`:y=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(y=`text-${e.textColor}`);const M=e.round===!0?"round":`rectangle${c.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${m.value} q-btn--${M}`+(y!==void 0?" "+y:"")+(d.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":"")}),z=l.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:p,style:f,innerClasses:z,attributes:v,hasLink:o,linkTag:r,navigateOnClick:a,isActionable:d}}const{passiveCapture:se}=ne;let Fe=null,He=null,De=null;const zl=le({name:"QBtn",props:{...Qo,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:i}=l.getCurrentInstance(),{classes:o,style:r,innerClasses:u,attributes:a,hasLink:f,linkTag:c,navigateOnClick:d,isActionable:h}=Xo(e),m=l.ref(null),v=l.ref(null);let p=null,z,y=null;const M=l.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),E=l.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:f.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),C=l.computed(()=>({center:e.round})),$=l.computed(()=>{const g=Math.max(0,Math.min(100,e.percentage));return g>0?{transition:"transform 0.6s",transform:`translateX(${g-100}%)`}:{}}),B=l.computed(()=>{if(e.loading===!0)return{onMousedown:W,onTouchstart:W,onClick:W,onKeydown:W,onKeyup:W};if(h.value===!0){const g={onClick:O,onKeydown:P,onMousedown:U};if(i.$q.platform.has.touch===!0){const w=e.onTouchstart!==void 0?"":"Passive";g[`onTouchstart${w}`]=j}return g}return{onClick:te}}),V=l.computed(()=>({ref:m,class:"q-btn q-btn-item non-selectable no-outline "+o.value,style:r.value,...a.value,...B.value}));function O(g){if(m.value!==null){if(g!==void 0){if(g.defaultPrevented===!0)return;const w=document.activeElement;if(e.type==="submit"&&w!==document.body&&m.value.contains(w)===!1&&w.contains(m.value)===!1){g.qAvoidFocus!==!0&&m.value.focus();const L=()=>{var Y;document.removeEventListener("keydown",te,!0),document.removeEventListener("keyup",L,se),(Y=m.value)==null||Y.removeEventListener("blur",L,se)};document.addEventListener("keydown",te,!0),document.addEventListener("keyup",L,se),m.value.addEventListener("blur",L,se)}}d(g)}}function P(g){m.value!==null&&(n("keydown",g),Be(g,[13,32])===!0&&He!==m.value&&(He!==null&&A(),g.defaultPrevented!==!0&&(g.qAvoidFocus!==!0&&m.value.focus(),He=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("keyup",K,!0),m.value.addEventListener("blur",K,se)),te(g)))}function j(g){m.value!==null&&(n("touchstart",g),g.defaultPrevented!==!0&&(Fe!==m.value&&(Fe!==null&&A(),Fe=m.value,p=g.target,p.addEventListener("touchcancel",K,se),p.addEventListener("touchend",K,se)),z=!0,y!==null&&clearTimeout(y),y=setTimeout(()=>{y=null,z=!1},200)))}function U(g){m.value!==null&&(g.qSkipRipple=z===!0,n("mousedown",g),g.defaultPrevented!==!0&&De!==m.value&&(De!==null&&A(),De=m.value,m.value.classList.add("q-btn--active"),document.addEventListener("mouseup",K,se)))}function K(g){if(m.value!==null&&!((g==null?void 0:g.type)==="blur"&&document.activeElement===m.value)){if((g==null?void 0:g.type)==="keyup"){if(He===m.value&&Be(g,[13,32])===!0){const w=new MouseEvent("click",g);w.qKeyEvent=!0,g.defaultPrevented===!0&&ue(w),g.cancelBubble===!0&&ve(w),m.value.dispatchEvent(w),te(g),g.qKeyEvent=!0}n("keyup",g)}A()}}function A(g){var L,Y;const w=v.value;g!==!0&&(Fe===m.value||De===m.value)&&w!==null&&w!==document.activeElement&&(w.setAttribute("tabindex",-1),w.focus()),Fe===m.value&&(p!==null&&(p.removeEventListener("touchcancel",K,se),p.removeEventListener("touchend",K,se)),Fe=p=null),De===m.value&&(document.removeEventListener("mouseup",K,se),De=null),He===m.value&&(document.removeEventListener("keyup",K,!0),(L=m.value)==null||L.removeEventListener("blur",K,se),He=null),(Y=m.value)==null||Y.classList.remove("q-btn--active")}function W(g){te(g),g.qSkipRipple=!0}return l.onBeforeUnmount(()=>{A(!0)}),Object.assign(i,{click:g=>{h.value===!0&&O(g)}}),()=>{let g=[];e.icon!==void 0&&g.push(l.h(de,{name:e.icon,left:e.stack!==!0&&M.value===!0,role:"img"})),M.value===!0&&g.push(l.h("span",{class:"block"},[e.label])),g=be(t.default,g),e.iconRight!==void 0&&e.round===!1&&g.push(l.h(de,{name:e.iconRight,right:e.stack!==!0&&M.value===!0,role:"img"}));const w=[l.h("span",{class:"q-focus-helper",ref:v})];return e.loading===!0&&e.percentage!==void 0&&w.push(l.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[l.h("span",{class:"q-btn__progress-indicator fit block",style:$.value})])),w.push(l.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+u.value},g)),e.loading!==null&&w.push(l.h(l.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[l.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[l.h(Zt)])]:null)),l.withDirectives(l.h(c.value,V.value,w),[[Cn,E.value,void 0,C.value]])}}}),Yo={class:"row justify-between"},Go=l.defineComponent({__name:"NavButton",props:{from:{},to:{default:void 0},labelFrom:{},labelTo:{default:void 0},params:{default:()=>({})}},setup(e){const t=e,n=l.inject("navContext",null),i=l.inject("router");function o(r){if(!i){console.warn("Dependencies not available:",{router:i});return}n==null||n.setTabs();const u=r==="back"?t.from:t.to;if(!u){console.warn("Destination not provided:",r);return}i.push({name:u,params:t.params})}return(r,u)=>(l.openBlock(),l.createElementBlock("div",Yo,[l.createVNode(zl,{icon:"chevron_left","rounded-sm":"",label:r.labelFrom,onClick:u[0]||(u[0]=a=>o("back")),"data-cy":"go-back"},null,8,["label"]),r.labelTo?(l.openBlock(),l.createBlock(zl,{key:0,label:r.labelTo,color:"primary","text-color":"white","icon-right":"chevron_right","rounded-sm":"","data-cy":"go-next",onClick:u[1]||(u[1]=a=>o("next"))},null,8,["label"])):l.createCommentVNode("",!0)]))}}),qn=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},Zo=qn(Go,[["__scopeId","data-v-c5e3fee0"]]),Ve={dark:{type:Boolean,default:null}};function Te(e,t){return l.computed(()=>e.dark===null?t.dark.isActive:e.dark)}function Jo(e,t){const n=l.ref(null),i=l.computed(()=>e.disable===!0?null:l.h("span",{ref:n,class:"no-outline",tabindex:-1}));function o(r){const u=t.value;(r==null?void 0:r.qAvoidFocus)!==!0&&((r==null?void 0:r.type.indexOf("key"))===0?document.activeElement!==u&&(u==null?void 0:u.contains(document.activeElement))===!0&&u.focus():n.value!==null&&(r===void 0||(u==null?void 0:u.contains(r.target))===!0)&&n.value.focus())}return{refocusTargetEl:i,refocusTarget:o}}const _n={name:String};function ei(e={}){return(t,n,i)=>{t[n](l.h("input",{class:"hidden"+(i||""),...e.value}))}}function ti(e){return l.computed(()=>e.name||e.for)}const li={xs:30,sm:35,md:40,lg:50,xl:60},ni={...Ve,...pt,..._n,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]},oi=["update:modelValue"];function ii(e,t){const{props:n,slots:i,emit:o,proxy:r}=l.getCurrentInstance(),{$q:u}=r,a=Te(n,u),f=l.ref(null),{refocusTargetEl:c,refocusTarget:d}=Jo(n,f),h=yt(n,li),m=l.computed(()=>n.val!==void 0&&Array.isArray(n.modelValue)),v=l.computed(()=>{const A=l.toRaw(n.val);return m.value===!0?n.modelValue.findIndex(W=>l.toRaw(W)===A):-1}),p=l.computed(()=>m.value===!0?v.value!==-1:l.toRaw(n.modelValue)===l.toRaw(n.trueValue)),z=l.computed(()=>m.value===!0?v.value===-1:l.toRaw(n.modelValue)===l.toRaw(n.falseValue)),y=l.computed(()=>p.value===!1&&z.value===!1),M=l.computed(()=>n.disable===!0?-1:n.tabindex||0),E=l.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(a.value===!0?` q-${e}--dark`:"")+(n.dense===!0?` q-${e}--dense`:"")+(n.leftLabel===!0?" reverse":"")),C=l.computed(()=>{const A=p.value===!0?"truthy":z.value===!0?"falsy":"indet",W=n.color!==void 0&&(n.keepColor===!0||z.value!==!0)?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${A}${W}`}),$=l.computed(()=>{const A={type:"checkbox"};return n.name!==void 0&&Object.assign(A,{".checked":p.value,"^checked":p.value===!0?"checked":void 0,name:n.name,value:m.value===!0?n.val:n.trueValue}),A}),B=ei($),V=l.computed(()=>{const A={tabindex:M.value,role:"checkbox","aria-label":n.label,"aria-checked":y.value===!0?"mixed":p.value===!0?"true":"false"};return n.disable===!0&&(A["aria-disabled"]="true"),A});function O(A){A!==void 0&&(te(A),d(A)),n.disable!==!0&&o("update:modelValue",P(),A)}function P(){if(m.value===!0){if(p.value===!0){const A=n.modelValue.slice();return A.splice(v.value,1),A}return n.modelValue.concat([n.val])}if(p.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(z.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function j(A){(A.keyCode===13||A.keyCode===32)&&te(A)}function U(A){(A.keyCode===13||A.keyCode===32)&&O(A)}const K=t(p,y);return Object.assign(r,{toggle:O}),()=>{const A=K();n.disable!==!0&&B(A,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const W=[l.h("div",{class:C.value,style:h.value,"aria-hidden":"true"},A)];c.value!==null&&W.push(c.value);const g=n.label!==void 0?be(i.default,[n.label]):ce(i.default);return g!==void 0&&W.push(l.h("div",{class:`q-${e}__label q-anchor--skip`},g)),l.h("div",{ref:f,class:E.value,...V.value,onClick:O,onKeydown:j,onKeyup:U},W)}}const ri=()=>l.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[l.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[l.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),l.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),ui=le({name:"QCheckbox",props:ni,emits:oi,setup(e){const t=ri();function n(i,o){const r=l.computed(()=>(i.value===!0?e.checkedIcon:o.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>r.value!==null?[l.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[l.h(de,{class:"q-checkbox__icon",name:r.value})])]:[t]}return ii("checkbox",n)}}),ai=le({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[l.h("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),l.h("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),l.withDirectives(l.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),l.withDirectives(l.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)]}}),Ne=l.ref(!1);let Dt;function si(e,t){const n=/(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:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:t[0]||""}}function ci(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 zn="ontouchstart"in window||window.navigator.maxTouchPoints>0;function di(e){const t=e.toLowerCase(),n=ci(t),i=si(t,n),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};i.browser&&(o[i.browser]=!0,o.version=i.version,o.versionNumber=parseInt(i.version,10)),i.platform&&(o[i.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||t.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,i.browser="edge"):o.crios?(o.chrome=!0,i.browser="chrome"):o.fxios&&(o.firefox=!0,i.browser="firefox"),(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(i.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&&(i.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(i.browser="blackberry",o.blackberry=!0):o.playbook?(i.browser="playbook",o.playbook=!0):o.android?(i.browser="android",o.android=!0):o.kindle?(i.browser="kindle",o.kindle=!0):o.silk&&(i.browser="silk",o.silk=!0)),o.name=i.browser,o.platform=i.platform,t.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"),Ne.value===!0&&(Dt={is:{...o}}),zn===!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 u=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:u,[u]:!0})}o.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}const El=navigator.userAgent||navigator.vendor||window.opera,fi={has:{touch:!1,webStorage:!1},within:{iframe:!1}},oe={userAgent:El,is:di(El),has:{touch:zn},within:{iframe:window.self!==window.top}},jt={install(e){const{$q:t}=e;Ne.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,oe),Ne.value=!1}),t.platform=l.reactive(this)):t.platform=this}};{let e;Yt(oe.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(jt,oe),Ne.value===!0&&(Object.assign(jt,Dt,fi),Dt=null)}function vi(){const e=l.ref(!Ne.value);return e.value===!1&&l.onMounted(()=>{e.value=!0}),{isHydrated:e}}const En=typeof ResizeObserver<"u",Bl=En===!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"},Vl=le({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n=null,i,o={width:-1,height:-1};function r(f){f===!0||e.debounce===0||e.debounce==="0"?u():n===null&&(n=setTimeout(u,e.debounce))}function u(){if(n!==null&&(clearTimeout(n),n=null),i){const{offsetWidth:f,offsetHeight:c}=i;(f!==o.width||c!==o.height)&&(o={width:f,height:c},t("resize",o))}}const{proxy:a}=l.getCurrentInstance();if(a.trigger=r,En===!0){let f;const c=d=>{i=a.$el.parentNode,i?(f=new ResizeObserver(r),f.observe(i),u()):d!==!0&&l.nextTick(()=>{c(!0)})};return l.onMounted(()=>{c()}),l.onBeforeUnmount(()=>{n!==null&&clearTimeout(n),f!==void 0&&(f.disconnect!==void 0?f.disconnect():i&&f.unobserve(i))}),wt}else{let f=function(){n!==null&&(clearTimeout(n),n=null),h!==void 0&&(h.removeEventListener!==void 0&&h.removeEventListener("resize",r,ne.passive),h=void 0)},c=function(){f(),i!=null&&i.contentDocument&&(h=i.contentDocument.defaultView,h.addEventListener("resize",r,ne.passive),u())};const{isHydrated:d}=vi();let h;return l.onMounted(()=>{l.nextTick(()=>{i=a.$el,i&&c()})}),l.onBeforeUnmount(f),()=>{if(d.value===!0)return l.h("object",{class:"q--avoid-card-border",style:Bl.style,tabindex:-1,type:"text/html",data:Bl.url,"aria-hidden":"true",onLoad:c})}}}}),Bn=[Element,String],mi=[null,document,document.body,document.scrollingElement,document.documentElement];function Vn(e,t){let n=Ro(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return mi.includes(n)?window:n}function Jt(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function el(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Tn(e,t,n=0){const i=arguments[3]===void 0?performance.now():arguments[3],o=Jt(e);if(n<=0){o!==t&&Nt(e,t);return}requestAnimationFrame(r=>{const u=r-i,a=o+(t-o)/Math.max(u,n)*u;Nt(e,a),a!==t&&Tn(e,t,n-u,r)})}function An(e,t,n=0){const i=arguments[3]===void 0?performance.now():arguments[3],o=el(e);if(n<=0){o!==t&&Wt(e,t);return}requestAnimationFrame(r=>{const u=r-i,a=o+(t-o)/Math.max(u,n)*u;Wt(e,a),a!==t&&An(e,t,n-u,r)})}function Nt(e,t){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t);return}e.scrollTop=t}function Wt(e,t){if(e===window){window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=t}function Tl(e,t,n){if(n){Tn(e,t,n);return}Nt(e,t)}function Bt(e,t,n){if(n){An(e,t,n);return}Wt(e,t)}let at;function hi(){if(at!==void 0)return at;const e=document.createElement("p"),t=document.createElement("div");Ht(e,{width:"100%",height:"200px"}),Ht(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let i=e.offsetWidth;return n===i&&(i=t.clientWidth),t.remove(),at=n-i,at}function gi(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?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:Al}=ne,bi=["both","horizontal","vertical"],pi=le({name:"QScrollObserver",props:{axis:{type:String,validator:e=>bi.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:Bn},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let i=null,o,r;l.watch(()=>e.scrollTarget,()=>{f(),a()});function u(){i==null||i();const h=Math.max(0,Jt(o)),m=el(o),v={top:h-n.position.top,left:m-n.position.left};if(e.axis==="vertical"&&v.top===0||e.axis==="horizontal"&&v.left===0)return;const p=Math.abs(v.top)>=Math.abs(v.left)?v.top<0?"up":"down":v.left<0?"left":"right";n.position={top:h,left:m},n.directionChanged=n.direction!==p,n.delta=v,n.directionChanged===!0&&(n.direction=p,n.inflectionPoint=n.position),t("scroll",{...n})}function a(){o=Vn(r,e.scrollTarget),o.addEventListener("scroll",c,Al),c(!0)}function f(){o!==void 0&&(o.removeEventListener("scroll",c,Al),o=void 0)}function c(h){if(h===!0||e.debounce===0||e.debounce==="0")u();else if(i===null){const[m,v]=e.debounce?[setTimeout(u,e.debounce),clearTimeout]:[requestAnimationFrame(u),cancelAnimationFrame];i=()=>{v(m),i=null}}}const{proxy:d}=l.getCurrentInstance();return l.watch(()=>d.$q.lang.rtl,u),l.onMounted(()=>{r=d.$el.parentNode,a()}),l.onBeforeUnmount(()=>{i==null||i(),f()}),Object.assign(d,{trigger:c,getPosition:()=>n}),wt}}),tl={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},yi=Object.keys(tl);tl.all=!0;function Ol(e){const t={};for(const n of yi)e[n]===!0&&(t[n]=!0);return Object.keys(t).length===0?tl:(t.horizontal===!0?t.left=t.right=!0:t.left===!0&&t.right===!0&&(t.horizontal=!0),t.vertical===!0?t.up=t.down=!0:t.up===!0&&t.down===!0&&(t.vertical=!0),t.horizontal===!0&&t.vertical===!0&&(t.all=!0),t)}const wi=["INPUT","TEXTAREA"];function Ml(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler=="function"&&wi.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}function On(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),jt.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function Vt(e,t,n){const i=tt(e);let o,r=i.left-t.event.x,u=i.top-t.event.y,a=Math.abs(r),f=Math.abs(u);const c=t.direction;c.horizontal===!0&&c.vertical!==!0?o=r<0?"left":"right":c.horizontal!==!0&&c.vertical===!0?o=u<0?"up":"down":c.up===!0&&u<0?(o="up",a>f&&(c.left===!0&&r<0?o="left":c.right===!0&&r>0&&(o="right"))):c.down===!0&&u>0?(o="down",a>f&&(c.left===!0&&r<0?o="left":c.right===!0&&r>0&&(o="right"))):c.left===!0&&r<0?(o="left",a<f&&(c.up===!0&&u<0?o="up":c.down===!0&&u>0&&(o="down"))):c.right===!0&&r>0&&(o="right",a<f&&(c.up===!0&&u<0?o="up":c.down===!0&&u>0&&(o="down")));let d=!1;if(o===void 0&&n===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};o=t.event.lastDir,d=!0,o==="left"||o==="right"?(i.left-=r,a=0,r=0):(i.top-=u,f=0,u=0)}return{synthetic:d,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:i,direction:o,isFirst:t.event.isFirst,isFinal:n===!0,duration:Date.now()-t.event.time,distance:{x:a,y:f},offset:{x:r,y:u},delta:{x:i.left-t.event.lastX,y:i.top-t.event.lastY}}}}let Si=0;const $l=cn({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(n.mouse!==!0&&oe.has.touch!==!0)return;function i(r,u){n.mouse===!0&&u===!0?te(r):(n.stop===!0&&ve(r),n.prevent===!0&&ue(r))}const o={uid:"qvtp_"+Si++,handler:t,modifiers:n,direction:Ol(n),noop:wt,mouseStart(r){Ml(r,o)&&Io(r)&&(Ce(o,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),o.start(r,!0))},touchStart(r){if(Ml(r,o)){const u=r.target;Ce(o,"temp",[[u,"touchmove","move","notPassiveCapture"],[u,"touchcancel","end","passiveCapture"],[u,"touchend","end","passiveCapture"]]),o.start(r)}},start(r,u){if(oe.is.firefox===!0&&Et(e,!0),o.lastEvt=r,u===!0||n.stop===!0){if(o.direction.all!==!0&&(u!==!0||o.modifiers.mouseAllDir!==!0&&o.modifiers.mousealldir!==!0)){const c=r.type.indexOf("mouse")!==-1?new MouseEvent(r.type,r):new TouchEvent(r.type,r);r.defaultPrevented===!0&&ue(c),r.cancelBubble===!0&&ve(c),Object.assign(c,{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:c}}ve(r)}const{left:a,top:f}=tt(r);o.event={x:a,y:f,time:Date.now(),mouse:u===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:a,lastY:f}},move(r){if(o.event===void 0)return;const u=tt(r),a=u.left-o.event.x,f=u.top-o.event.y;if(a===0&&f===0)return;o.lastEvt=r;const c=o.event.mouse===!0,d=()=>{i(r,c);let v;n.preserveCursor!==!0&&n.preservecursor!==!0&&(v=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),c===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),On(),o.styleCleanup=p=>{if(o.styleCleanup=void 0,v!==void 0&&(document.documentElement.style.cursor=v),document.body.classList.remove("non-selectable"),c===!0){const z=()=>{document.body.classList.remove("no-pointer-events--children")};p!==void 0?setTimeout(()=>{z(),p()},50):z()}else p!==void 0&&p()}};if(o.event.detected===!0){o.event.isFirst!==!0&&i(r,o.event.mouse);const{payload:v,synthetic:p}=Vt(r,o,!1);v!==void 0&&(o.handler(v)===!1?o.end(r):(o.styleCleanup===void 0&&o.event.isFirst===!0&&d(),o.event.lastX=v.position.left,o.event.lastY=v.position.top,o.event.lastDir=p===!0?void 0:v.direction,o.event.isFirst=!1));return}if(o.direction.all===!0||c===!0&&(o.modifiers.mouseAllDir===!0||o.modifiers.mousealldir===!0)){d(),o.event.detected=!0,o.move(r);return}const h=Math.abs(a),m=Math.abs(f);h!==m&&(o.direction.horizontal===!0&&h>m||o.direction.vertical===!0&&h<m||o.direction.up===!0&&h<m&&f<0||o.direction.down===!0&&h<m&&f>0||o.direction.left===!0&&h>m&&a<0||o.direction.right===!0&&h>m&&a>0?(o.event.detected=!0,o.move(r)):o.end(r,!0))},end(r,u){var a;if(o.event!==void 0){if(Je(o,"temp"),oe.is.firefox===!0&&Et(e,!1),u===!0)(a=o.styleCleanup)==null||a.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(Vt(r===void 0?o.lastEvt:r,o).payload);const{payload:f}=Vt(r===void 0?o.lastEvt:r,o,!0),c=()=>{o.handler(f)};o.styleCleanup!==void 0?o.styleCleanup(c):c()}o.event=void 0,o.initialEvent=void 0,o.lastEvt=void 0}}};if(e.__qtouchpan=o,n.mouse===!0){const r=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";Ce(o,"main",[[e,"mousedown","mouseStart",`passive${r}`]])}oe.has.touch===!0&&Ce(o,"main",[[e,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;n!==void 0&&(t.oldValue!==t.value&&(typeof value!="function"&&n.end(),n.handler=t.value),n.direction=Ol(t.modifiers))},beforeUnmount(e){var n;const t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),Je(t,"main"),Je(t,"temp"),oe.is.firefox===!0&&Et(e,!1),(n=t.styleCleanup)==null||n.call(t),delete e.__qtouchpan)}});function Xe(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function Ll(e,t,n){if(n<=t)return t;const i=n-t+1;let o=t+(e-t)%i;return o<t&&(o=i+o),o===0?0:o}function ll(e,t=250,n){let i=null;function o(){const r=arguments,u=()=>{i=null,e.apply(this,r)};i!==null&&clearTimeout(i),i=setTimeout(u,t)}return o.cancel=()=>{i!==null&&clearTimeout(i)},o}const Pl=["vertical","horizontal"],Tt={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},Rl={prevent:!0,mouse:!0,mouseAllDir:!0},Il=e=>e>=250?50:Math.ceil(e/5),ki=le({name:"QScrollArea",props:{...Ve,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:t,emit:n}){const i=l.ref(!1),o=l.ref(!1),r=l.ref(!1),u={vertical:l.ref(0),horizontal:l.ref(0)},a={vertical:{ref:l.ref(null),position:l.ref(0),size:l.ref(0)},horizontal:{ref:l.ref(null),position:l.ref(0),size:l.ref(0)}},{proxy:f}=l.getCurrentInstance(),c=Te(e,f.$q);let d=null,h;const m=l.ref(null),v=l.computed(()=>"q-scrollarea"+(c.value===!0?" q-scrollarea--dark":""));Object.assign(u,{verticalInner:l.computed(()=>u.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:l.computed(()=>u.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),a.vertical.percentage=l.computed(()=>{const g=a.vertical.size.value-u.vertical.value;if(g<=0)return 0;const w=Xe(a.vertical.position.value/g,0,1);return Math.round(w*1e4)/1e4}),a.vertical.thumbHidden=l.computed(()=>(e.visible===null?r.value:e.visible)!==!0&&i.value===!1&&o.value===!1||a.vertical.size.value<=u.vertical.value+1),a.vertical.thumbStart=l.computed(()=>e.verticalOffset[0]+a.vertical.percentage.value*(u.verticalInner.value-a.vertical.thumbSize.value)),a.vertical.thumbSize=l.computed(()=>Math.round(Xe(u.verticalInner.value*u.verticalInner.value/a.vertical.size.value,Il(u.verticalInner.value),u.verticalInner.value))),a.vertical.style=l.computed(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${a.vertical.thumbStart.value}px`,height:`${a.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),a.vertical.thumbClass=l.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.vertical.barClass=l.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(a.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),a.horizontal.percentage=l.computed(()=>{const g=a.horizontal.size.value-u.horizontal.value;if(g<=0)return 0;const w=Xe(Math.abs(a.horizontal.position.value)/g,0,1);return Math.round(w*1e4)/1e4}),a.horizontal.thumbHidden=l.computed(()=>(e.visible===null?r.value:e.visible)!==!0&&i.value===!1&&o.value===!1||a.horizontal.size.value<=u.horizontal.value+1),a.horizontal.thumbStart=l.computed(()=>e.horizontalOffset[0]+a.horizontal.percentage.value*(u.horizontalInner.value-a.horizontal.thumbSize.value)),a.horizontal.thumbSize=l.computed(()=>Math.round(Xe(u.horizontalInner.value*u.horizontalInner.value/a.horizontal.size.value,Il(u.horizontalInner.value),u.horizontalInner.value))),a.horizontal.style=l.computed(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[f.$q.lang.rtl===!0?"right":"left"]:`${a.horizontal.thumbStart.value}px`,width:`${a.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),a.horizontal.thumbClass=l.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),a.horizontal.barClass=l.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(a.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const p=l.computed(()=>a.vertical.thumbHidden.value===!0&&a.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function z(){const g={};return Pl.forEach(w=>{const L=a[w];Object.assign(g,{[w+"Position"]:L.position.value,[w+"Percentage"]:L.percentage.value,[w+"Size"]:L.size.value,[w+"ContainerSize"]:u[w].value,[w+"ContainerInnerSize"]:u[w+"Inner"].value})}),g}const y=ll(()=>{const g=z();g.ref=f,n("scroll",g)},0);function M(g,w,L){if(Pl.includes(g)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(g==="vertical"?Tl:Bt)(m.value,w,L)}function E({height:g,width:w}){let L=!1;u.vertical.value!==g&&(u.vertical.value=g,L=!0),u.horizontal.value!==w&&(u.horizontal.value=w,L=!0),L===!0&&O()}function C({position:g}){let w=!1;a.vertical.position.value!==g.top&&(a.vertical.position.value=g.top,w=!0),a.horizontal.position.value!==g.left&&(a.horizontal.position.value=g.left,w=!0),w===!0&&O()}function $({height:g,width:w}){a.horizontal.size.value!==w&&(a.horizontal.size.value=w,O()),a.vertical.size.value!==g&&(a.vertical.size.value=g,O())}function B(g,w){const L=a[w];if(g.isFirst===!0){if(L.thumbHidden.value===!0)return;h=L.position.value,o.value=!0}else if(o.value!==!0)return;g.isFinal===!0&&(o.value=!1);const Y=Tt[w],q=(L.size.value-u[w].value)/(u[w+"Inner"].value-L.thumbSize.value),R=g.distance[Y.dist],Z=h+(g.direction===Y.dir?1:-1)*R*q;P(Z,w)}function V(g,w){const L=a[w];if(L.thumbHidden.value!==!0){const Y=w==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],q=g[Tt[w].offset]-Y,R=L.thumbStart.value-Y;if(q<R||q>R+L.thumbSize.value){const Z=q-L.thumbSize.value/2,b=Xe(Z/(u[w+"Inner"].value-L.thumbSize.value),0,1);P(b*Math.max(0,L.size.value-u[w].value),w)}L.ref.value!==null&&L.ref.value.dispatchEvent(new MouseEvent(g.type,g))}}function O(){i.value=!0,d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,i.value=!1},e.delay),e.onScroll!==void 0&&y()}function P(g,w){m.value[Tt[w].scroll]=g}let j=null;function U(){j!==null&&clearTimeout(j),j=setTimeout(()=>{j=null,r.value=!0},f.$q.platform.is.ios?50:0)}function K(){j!==null&&(clearTimeout(j),j=null),r.value=!1}let A=null;l.watch(()=>f.$q.lang.rtl,g=>{m.value!==null&&Bt(m.value,Math.abs(a.horizontal.position.value)*(g===!0?-1:1))}),l.onDeactivated(()=>{A={top:a.vertical.position.value,left:a.horizontal.position.value}}),l.onActivated(()=>{if(A===null)return;const g=m.value;g!==null&&(Bt(g,A.left),Tl(g,A.top))}),l.onBeforeUnmount(y.cancel),Object.assign(f,{getScrollTarget:()=>m.value,getScroll:z,getScrollPosition:()=>({top:a.vertical.position.value,left:a.horizontal.position.value}),getScrollPercentage:()=>({top:a.vertical.percentage.value,left:a.horizontal.percentage.value}),setScrollPosition:M,setScrollPercentage(g,w,L){M(g,w*(a[g].size.value-u[g].value)*(g==="horizontal"&&f.$q.lang.rtl===!0?-1:1),L)}});const W={scroll:a,thumbVertDir:[[$l,g=>{B(g,"vertical")},void 0,{vertical:!0,...Rl}]],thumbHorizDir:[[$l,g=>{B(g,"horizontal")},void 0,{horizontal:!0,...Rl}]],onVerticalMousedown(g){V(g,"vertical")},onHorizontalMousedown(g){V(g,"horizontal")}};return()=>l.h("div",{class:v.value,onMouseenter:U,onMouseleave:K},[l.h("div",{ref:m,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[l.h("div",{class:"q-scrollarea__content absolute",style:p.value},be(t.default,[l.h(Vl,{debounce:0,onResize:$})])),l.h(pi,{axis:"both",onScroll:C})]),l.h(Vl,{debounce:0,onResize:E}),l.h(ai,{store:W,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}}),xi=le({name:"QCard",props:{...Ve,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=l.getCurrentInstance(),i=Te(e,n),o=l.computed(()=>"q-card"+(i.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()=>l.h(e.tag,{class:o.value},ce(t.default))}}),Ci={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},qi={...Ci,contextMenu:Boolean};function _i({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:i,proxy:o,emit:r}=l.getCurrentInstance(),u=l.ref(null);let a=null;function f(v){return u.value===null?!1:v===void 0||v.touches===void 0||v.touches.length<=1}const c={};n===void 0&&(Object.assign(c,{hide(v){o.hide(v)},toggle(v){o.toggle(v),v.qAnchorHandled=!0},toggleKey(v){Be(v,13)===!0&&c.toggle(v)},contextClick(v){o.hide(v),ue(v),l.nextTick(()=>{o.show(v),v.qAnchorHandled=!0})},prevent:ue,mobileTouch(v){if(c.mobileCleanup(v),f(v)!==!0)return;o.hide(v),u.value.classList.add("non-selectable");const p=v.target;Ce(c,"anchor",[[p,"touchmove","mobileCleanup","passive"],[p,"touchend","mobileCleanup","passive"],[p,"touchcancel","mobileCleanup","passive"],[u.value,"contextmenu","prevent","notPassive"]]),a=setTimeout(()=>{a=null,o.show(v),v.qAnchorHandled=!0},300)},mobileCleanup(v){u.value.classList.remove("non-selectable"),a!==null&&(clearTimeout(a),a=null),e.value===!0&&v!==void 0&&On()}}),n=function(v=i.contextMenu){if(i.noParentEvent===!0||u.value===null)return;let p;v===!0?o.$q.platform.is.mobile===!0?p=[[u.value,"touchstart","mobileTouch","passive"]]:p=[[u.value,"mousedown","hide","passive"],[u.value,"contextmenu","contextClick","notPassive"]]:p=[[u.value,"click","toggle","passive"],[u.value,"keyup","toggleKey","passive"]],Ce(c,"anchor",p)});function d(){Je(c,"anchor")}function h(v){for(u.value=v;u.value.classList.contains("q-anchor--skip");)u.value=u.value.parentNode;n()}function m(){if(i.target===!1||i.target===""||o.$el.parentNode===null)u.value=null;else if(i.target===!0)h(o.$el.parentNode);else{let v=i.target;if(typeof i.target=="string")try{v=document.querySelector(i.target)}catch{v=void 0}v!=null?(u.value=v.$el||v,n()):(u.value=null,console.error(`Anchor: target "${i.target}" not found`))}}return l.watch(()=>i.contextMenu,v=>{u.value!==null&&(d(),n(v))}),l.watch(()=>i.target,()=>{u.value!==null&&d(),m()}),l.watch(()=>i.noParentEvent,v=>{u.value!==null&&(v===!0?d():n())}),l.onMounted(()=>{m(),t!==!0&&i.modelValue===!0&&u.value===null&&r("update:modelValue",!1)}),l.onBeforeUnmount(()=>{a!==null&&clearTimeout(a),d()}),{anchorEl:u,canShow:f,anchorEvents:c}}function zi(e,t){const n=l.ref(null);let i;function o(a,f){const c=`${f!==void 0?"add":"remove"}EventListener`,d=f!==void 0?f:i;a!==window&&a[c]("scroll",d,ne.passive),window[c]("scroll",d,ne.passive),i=f}function r(){n.value!==null&&(o(n.value),n.value=null)}const u=l.watch(()=>e.noParentEvent,()=>{n.value!==null&&(r(),t())});return l.onBeforeUnmount(u),{localScrollTarget:n,unconfigureScrollTarget:r,changeScrollEvent:o}}const Mn={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},$n=["beforeShow","show","beforeHide","hide"];function Ln({showing:e,canShow:t,hideOnRouteChange:n,handleShow:i,handleHide:o,processOnMount:r}){const u=l.getCurrentInstance(),{props:a,emit:f,proxy:c}=u;let d;function h(E){e.value===!0?p(E):m(E)}function m(E){if(a.disable===!0||(E==null?void 0:E.qAnchorHandled)===!0||t!==void 0&&t(E)!==!0)return;const C=a["onUpdate:modelValue"]!==void 0;C===!0&&(f("update:modelValue",!0),d=E,l.nextTick(()=>{d===E&&(d=void 0)})),(a.modelValue===null||C===!1)&&v(E)}function v(E){e.value!==!0&&(e.value=!0,f("beforeShow",E),i!==void 0?i(E):f("show",E))}function p(E){if(a.disable===!0)return;const C=a["onUpdate:modelValue"]!==void 0;C===!0&&(f("update:modelValue",!1),d=E,l.nextTick(()=>{d===E&&(d=void 0)})),(a.modelValue===null||C===!1)&&z(E)}function z(E){e.value!==!1&&(e.value=!1,f("beforeHide",E),o!==void 0?o(E):f("hide",E))}function y(E){a.disable===!0&&E===!0?a["onUpdate:modelValue"]!==void 0&&f("update:modelValue",!1):E===!0!==e.value&&(E===!0?v:z)(d)}l.watch(()=>a.modelValue,y),n!==void 0&&hn(u)===!0&&l.watch(()=>c.$route.fullPath,()=>{n.value===!0&&e.value===!0&&p()}),l.onMounted(()=>{y(a.modelValue)});const M={show:m,hide:p,toggle:h};return Object.assign(c,M),M}let qe=[],lt=[];function Pn(e){lt=lt.filter(t=>t!==e)}function Ei(e){Pn(e),lt.push(e)}function Fl(e){Pn(e),lt.length===0&&qe.length!==0&&(qe[qe.length-1](),qe=[])}function nl(e){lt.length===0?e():qe.push(e)}function Bi(e){qe=qe.filter(t=>t!==e)}const Hl={};let Vi=1,Ti=document.body;function Ai(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${Vi++}`:e,Hl.globalNodes!==void 0){const i=Hl.globalNodes.class;i!==void 0&&(n.className=i)}return Ti.appendChild(n),n}function Oi(e){e.remove()}const et=[];function Mi(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return zt(e)}else if(e.__qPortal===!0){const n=zt(e);return(n==null?void 0:n.$options.name)==="QPopupProxy"?(e.hide(t),n):e}e=zt(e)}while(e!=null)}const $i=le({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Li(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 Rn(e,t,n,i){const o=l.ref(!1),r=l.ref(!1);let u=null;const a={},f=i==="dialog"&&Li(e);function c(h){if(h===!0){Fl(a),r.value=!0;return}r.value=!1,o.value===!1&&(f===!1&&u===null&&(u=Ai(!1,i)),o.value=!0,et.push(e.proxy),Ei(a))}function d(h){if(r.value=!1,h!==!0)return;Fl(a),o.value=!1;const m=et.indexOf(e.proxy);m!==-1&&et.splice(m,1),u!==null&&(Oi(u),u=null)}return l.onUnmounted(()=>{d(!0)}),e.proxy.__qPortal=!0,Yt(e.proxy,"contentEl",()=>t.value),{showPortal:c,hidePortal:d,portalIsActive:o,portalIsAccessible:r,renderPortal:()=>f===!0?n():o.value===!0?[l.h(l.Teleport,{to:u},l.h($i,n))]:void 0}}const In={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Fn(e,t=()=>{},n=()=>{}){return{transitionProps:l.computed(()=>{const i=`q-transition--${e.transitionShow||t()}`,o=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${i}-enter-from`,enterActiveClass:`${i}-enter-active`,enterToClass:`${i}-enter-to`,leaveFromClass:`${o}-leave-from`,leaveActiveClass:`${o}-leave-active`,leaveToClass:`${o}-leave-to`}}),transitionStyle:l.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Hn(){let e;const t=l.getCurrentInstance();function n(){e=void 0}return l.onDeactivated(n),l.onBeforeUnmount(n),{removeTick:n,registerTick(i){e=i,l.nextTick(()=>{e===i&&(gn(t)===!1&&e(),e=void 0)})}}}function Dn(){let e=null;const t=l.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return l.onDeactivated(n),l.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(i,o){n(),gn(t)===!1&&(e=setTimeout(()=>{e=null,i()},o))}}}const _e=[];let We;function Pi(e){We=e.keyCode===27}function Ri(){We===!0&&(We=!1)}function Ii(e){We===!0&&(We=!1,Be(e,27)===!0&&_e[_e.length-1](e))}function jn(e){window[e]("keydown",Pi),window[e]("blur",Ri),window[e]("keyup",Ii),We=!1}function Nn(e){oe.is.desktop===!0&&(_e.push(e),_e.length===1&&jn("addEventListener"))}function mt(e){const t=_e.indexOf(e);t!==-1&&(_e.splice(t,1),_e.length===0&&jn("removeEventListener"))}const ze=[];function Wn(e){ze[ze.length-1](e)}function Kn(e){oe.is.desktop===!0&&(ze.push(e),ze.length===1&&document.body.addEventListener("focusin",Wn))}function Kt(e){const t=ze.indexOf(e);t!==-1&&(ze.splice(t,1),ze.length===0&&document.body.removeEventListener("focusin",Wn))}const{notPassiveCapture:ht}=ne,Ee=[];function gt(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=et.length-1;for(;n>=0;){const i=et[n].$;if(i.type.name==="QTooltip"){n--;continue}if(i.type.name!=="QDialog")break;if(i.props.seamless!==!0)return;n--}for(let i=Ee.length-1;i>=0;i--){const o=Ee[i];if((o.anchorEl.value===null||o.anchorEl.value.contains(t)===!1)&&(t===document.body||o.innerRef.value!==null&&o.innerRef.value.contains(t)===!1))e.qClickOutside=!0,o.onClickOutside(e);else return}}function Fi(e){Ee.push(e),Ee.length===1&&(document.addEventListener("mousedown",gt,ht),document.addEventListener("touchstart",gt,ht))}function Dl(e){const t=Ee.findIndex(n=>n===e);t!==-1&&(Ee.splice(t,1),Ee.length===0&&(document.removeEventListener("mousedown",gt,ht),document.removeEventListener("touchstart",gt,ht)))}let jl,Nl;function Wl(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Hi(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Ut={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Ut[`${e}#ltr`]=e,Ut[`${e}#rtl`]=e});function Kl(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:Ut[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function Di(e,t){let{top:n,left:i,right:o,bottom:r,width:u,height:a}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],i-=t[0],r+=t[1],o+=t[0],u+=t[0],a+=t[1]),{top:n,bottom:r,height:a,left:i,right:o,width:u,middle:i+(o-i)/2,center:n+(r-n)/2}}function ji(e,t,n){let{top:i,left:o}=e.getBoundingClientRect();return i+=t.top,o+=t.left,n!==void 0&&(i+=n[1],o+=n[0]),{top:i,bottom:i+1,height:1,left:o,right:o+1,width:1,middle:o,center:i}}function Ni(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Ul(e,t,n,i){return{top:e[n.vertical]-t[i.vertical],left:e[n.horizontal]-t[i.horizontal]}}function Un(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Un(e,t+1)},10);return}const{targetEl:n,offset:i,anchorEl:o,anchorOrigin:r,selfOrigin:u,absoluteOffset:a,fit:f,cover:c,maxHeight:d,maxWidth:h}=e;if(oe.is.ios===!0&&window.visualViewport!==void 0){const V=document.body.style,{offsetLeft:O,offsetTop:P}=window.visualViewport;O!==jl&&(V.setProperty("--q-pe-left",O+"px"),jl=O),P!==Nl&&(V.setProperty("--q-pe-top",P+"px"),Nl=P)}const{scrollLeft:m,scrollTop:v}=n,p=a===void 0?Di(o,c===!0?[0,0]:i):ji(o,a,i);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:h,maxHeight:d,visibility:"visible"});const{offsetWidth:z,offsetHeight:y}=n,{elWidth:M,elHeight:E}=f===!0||c===!0?{elWidth:Math.max(p.width,z),elHeight:c===!0?Math.max(p.height,y):y}:{elWidth:z,elHeight:y};let C={maxWidth:h,maxHeight:d};(f===!0||c===!0)&&(C.minWidth=p.width+"px",c===!0&&(C.minHeight=p.height+"px")),Object.assign(n.style,C);const $=Ni(M,E);let B=Ul(p,$,r,u);if(a===void 0||i===void 0)At(B,p,$,r,u);else{const{top:V,left:O}=B;At(B,p,$,r,u);let P=!1;if(B.top!==V){P=!0;const j=2*i[1];p.center=p.top-=j,p.bottom-=j+2}if(B.left!==O){P=!0;const j=2*i[0];p.middle=p.left-=j,p.right-=j+2}P===!0&&(B=Ul(p,$,r,u),At(B,p,$,r,u))}C={top:B.top+"px",left:B.left+"px"},B.maxHeight!==void 0&&(C.maxHeight=B.maxHeight+"px",p.height>B.maxHeight&&(C.minHeight=C.maxHeight)),B.maxWidth!==void 0&&(C.maxWidth=B.maxWidth+"px",p.width>B.maxWidth&&(C.minWidth=C.maxWidth)),Object.assign(n.style,C),n.scrollTop!==v&&(n.scrollTop=v),n.scrollLeft!==m&&(n.scrollLeft=m)}function At(e,t,n,i,o){const r=n.bottom,u=n.right,a=hi(),f=window.innerHeight-a,c=document.body.clientWidth;if(e.top<0||e.top+r>f)if(o.vertical==="center")e.top=t[i.vertical]>f/2?Math.max(0,f-r):0,e.maxHeight=Math.min(r,f);else if(t[i.vertical]>f/2){const d=Math.min(f,i.vertical==="center"?t.center:i.vertical===o.vertical?t.bottom:t.top);e.maxHeight=Math.min(r,d),e.top=Math.max(0,d-r)}else e.top=Math.max(0,i.vertical==="center"?t.center:i.vertical===o.vertical?t.top:t.bottom),e.maxHeight=Math.min(r,f-e.top);if(e.left<0||e.left+u>c)if(e.maxWidth=Math.min(u,c),o.horizontal==="middle")e.left=t[i.horizontal]>c/2?Math.max(0,c-u):0;else if(t[i.horizontal]>c/2){const d=Math.min(c,i.horizontal==="middle"?t.middle:i.horizontal===o.horizontal?t.right:t.left);e.maxWidth=Math.min(u,d),e.left=Math.max(0,d-e.maxWidth)}else e.left=Math.max(0,i.horizontal==="middle"?t.middle:i.horizontal===o.horizontal?t.left:t.right),e.maxWidth=Math.min(u,c-e.left)}const Qn=le({name:"QMenu",inheritAttrs:!1,props:{...qi,...Mn,...Ve,...In,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Wl},self:{type:String,validator:Wl},offset:{type:Array,validator:Hi},scrollTarget:Bn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...$n,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:i}){let o=null,r,u,a;const f=l.getCurrentInstance(),{proxy:c}=f,{$q:d}=c,h=l.ref(null),m=l.ref(!1),v=l.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),p=Te(e,d),{registerTick:z,removeTick:y}=Hn(),{registerTimeout:M}=Dn(),{transitionProps:E,transitionStyle:C}=Fn(e),{localScrollTarget:$,changeScrollEvent:B,unconfigureScrollTarget:V}=zi(e,F),{anchorEl:O,canShow:P}=_i({showing:m}),{hide:j}=Ln({showing:m,canShow:P,handleShow:Z,handleHide:b,hideOnRouteChange:v,processOnMount:!0}),{showPortal:U,hidePortal:K,renderPortal:A}=Rn(f,h,G,"menu"),W={anchorEl:O,innerRef:h,onClickOutside(S){if(e.persistent!==!0&&m.value===!0)return j(S),(S.type==="touchstart"||S.target.classList.contains("q-dialog__backdrop"))&&te(S),!0}},g=l.computed(()=>Kl(e.anchor||(e.cover===!0?"center middle":"bottom start"),d.lang.rtl)),w=l.computed(()=>e.cover===!0?g.value:Kl(e.self||"top start",d.lang.rtl)),L=l.computed(()=>(e.square===!0?" q-menu--square":"")+(p.value===!0?" q-menu--dark q-dark":"")),Y=l.computed(()=>e.autoClose===!0?{onClick:T}:{}),q=l.computed(()=>m.value===!0&&e.persistent!==!0);l.watch(q,S=>{S===!0?(Nn(H),Fi(W)):(mt(H),Dl(W))});function R(){nl(()=>{let S=h.value;S&&S.contains(document.activeElement)!==!0&&(S=S.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||S.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||S.querySelector("[autofocus], [data-autofocus]")||S,S.focus({preventScroll:!0}))})}function Z(S){if(o=e.noRefocus===!1?document.activeElement:null,Kn(D),U(),F(),r=void 0,S!==void 0&&(e.touchPosition||e.contextMenu)){const ie=tt(S);if(ie.left!==void 0){const{top:he,left:Ae}=O.value.getBoundingClientRect();r={left:ie.left-Ae,top:ie.top-he}}}u===void 0&&(u=l.watch(()=>d.screen.width+"|"+d.screen.height+"|"+e.self+"|"+e.anchor+"|"+d.lang.rtl,I)),e.noFocus!==!0&&document.activeElement.blur(),z(()=>{I(),e.noFocus!==!0&&R()}),M(()=>{d.platform.is.ios===!0&&(a=e.autoClose,h.value.click()),I(),U(!0),n("show",S)},e.transitionDuration)}function b(S){y(),K(),k(!0),o!==null&&(S===void 0||S.qClickOutside!==!0)&&((((S==null?void 0:S.type.indexOf("key"))===0?o.closest('[tabindex]:not([tabindex^="-"])'):void 0)||o).focus(),o=null),M(()=>{K(!0),n("hide",S)},e.transitionDuration)}function k(S){r=void 0,u!==void 0&&(u(),u=void 0),(S===!0||m.value===!0)&&(Kt(D),V(),Dl(W),mt(H)),S!==!0&&(o=null)}function F(){(O.value!==null||e.scrollTarget!==void 0)&&($.value=Vn(O.value,e.scrollTarget),B($.value,I))}function T(S){a!==!0?(Mi(c,S),n("click",S)):a=!1}function D(S){q.value===!0&&e.noFocus!==!0&&kn(h.value,S.target)!==!0&&R()}function H(S){e.noEscDismiss!==!0&&(n("escapeKey"),j(S))}function I(){Un({targetEl:h.value,offset:e.offset,anchorEl:O.value,anchorOrigin:g.value,selfOrigin:w.value,absoluteOffset:r,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function G(){return l.h(l.Transition,E.value,()=>m.value===!0?l.h("div",{role:"menu",...i,ref:h,tabindex:-1,class:["q-menu q-position-engine scroll"+L.value,i.class],style:[i.style,C.value],...Y.value},ce(t.default)):null)}return l.onBeforeUnmount(k),Object.assign(c,{focus:R,updatePosition:I}),A}});let Ot,st=0;const re=new Array(256);for(let e=0;e<256;e++)re[e]=(e+256).toString(16).substring(1);const Wi=(()=>{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 t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return t=>{const n=[];for(let i=t;i>0;i--)n.push(Math.floor(Math.random()*256));return n}})(),Ql=4096;function Qt(){(Ot===void 0||st+16>Ql)&&(st=0,Ot=Wi(Ql));const e=Array.prototype.slice.call(Ot,st,st+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,re[e[0]]+re[e[1]]+re[e[2]]+re[e[3]]+"-"+re[e[4]]+re[e[5]]+"-"+re[e[6]]+re[e[7]]+"-"+re[e[8]]+re[e[9]]+"-"+re[e[10]]+re[e[11]]+re[e[12]]+re[e[13]]+re[e[14]]+re[e[15]]}function Ki(e){return e??null}function Xl(e,t){return e??(t===!0?`f_${Qt()}`:null)}function Ui({getValue:e,required:t=!0}={}){if(Ne.value===!0){const n=e!==void 0?l.ref(Ki(e())):l.ref(null);return t===!0&&n.value===null&&l.onMounted(()=>{n.value=`f_${Qt()}`}),e!==void 0&&l.watch(e,i=>{n.value=Xl(i,t)}),n}return e!==void 0?l.computed(()=>Xl(e(),t)):l.ref(`f_${Qt()}`)}const Yl=/^on[A-Z]/;function Qi(){const{attrs:e,vnode:t}=l.getCurrentInstance(),n={listeners:l.ref({}),attributes:l.ref({})};function i(){const o={},r={};for(const u in e)u!=="class"&&u!=="style"&&Yl.test(u)===!1&&(o[u]=e[u]);for(const u in t.props)Yl.test(u)===!0&&(r[u]=t.props[u]);n.attributes.value=o,n.listeners.value=r}return l.onBeforeUpdate(i),i(),n}const Xi="_q_fo_";function Yi({validate:e,resetValidation:t,requiresQForm:n}){const i=l.inject(Xi,!1);if(i!==!1){const{props:o,proxy:r}=l.getCurrentInstance();Object.assign(r,{validate:e,resetValidation:t}),l.watch(()=>o.disable,u=>{u===!0?(typeof t=="function"&&t(),i.unbindComponent(r)):i.bindComponent(r)}),l.onMounted(()=>{o.disable!==!0&&i.bindComponent(r)}),l.onBeforeUnmount(()=>{o.disable!==!0&&i.unbindComponent(r)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}const Gl=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Zl=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Jl=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,ct=/^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])\)$/,dt=/^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)\)$/,Mt={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=>Gl.test(e),hexaColor:e=>Zl.test(e),hexOrHexaColor:e=>Jl.test(e),rgbColor:e=>ct.test(e),rgbaColor:e=>dt.test(e),rgbOrRgbaColor:e=>ct.test(e)||dt.test(e),hexOrRgbColor:e=>Gl.test(e)||ct.test(e),hexaOrRgbaColor:e=>Zl.test(e)||dt.test(e),anyColor:e=>Jl.test(e)||ct.test(e)||dt.test(e)},Gi=[!0,!1,"ondemand"],Zi={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Gi.includes(e)}};function Ji(e,t){const{props:n,proxy:i}=l.getCurrentInstance(),o=l.ref(!1),r=l.ref(null),u=l.ref(!1);Yi({validate:z,resetValidation:p});let a=0,f;const c=l.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),d=l.computed(()=>n.disable!==!0&&c.value===!0&&t.value===!1),h=l.computed(()=>n.error===!0||o.value===!0),m=l.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:r.value);l.watch(()=>n.modelValue,()=>{u.value=!0,d.value===!0&&n.lazyRules===!1&&y()});function v(){n.lazyRules!=="ondemand"&&d.value===!0&&u.value===!0&&y()}l.watch(()=>n.reactiveRules,M=>{M===!0?f===void 0&&(f=l.watch(()=>n.rules,v,{immediate:!0,deep:!0})):f!==void 0&&(f(),f=void 0)},{immediate:!0}),l.watch(()=>n.lazyRules,v),l.watch(e,M=>{M===!0?u.value=!0:d.value===!0&&n.lazyRules!=="ondemand"&&y()});function p(){a++,t.value=!1,u.value=!1,o.value=!1,r.value=null,y.cancel()}function z(M=n.modelValue){if(n.disable===!0||c.value===!1)return!0;const E=++a,C=t.value!==!0?()=>{u.value=!0}:()=>{},$=(V,O)=>{V===!0&&C(),o.value=V,r.value=O||null,t.value=!1},B=[];for(let V=0;V<n.rules.length;V++){const O=n.rules[V];let P;if(typeof O=="function"?P=O(M,Mt):typeof O=="string"&&Mt[O]!==void 0&&(P=Mt[O](M)),P===!1||typeof P=="string")return $(!0,P),!1;P!==!0&&P!==void 0&&B.push(P)}return B.length===0?($(!1),!0):(t.value=!0,Promise.all(B).then(V=>{if(V===void 0||Array.isArray(V)===!1||V.length===0)return E===a&&$(!1),!0;const O=V.find(P=>P===!1||typeof P=="string");return E===a&&$(O!==void 0,O),O===void 0},V=>(E===a&&(console.error(V),$(!0)),!1)))}const y=ll(z,0);return l.onBeforeUnmount(()=>{f==null||f(),y.cancel()}),Object.assign(i,{resetValidation:p,validate:z}),Yt(i,"hasError",()=>h.value),{isDirtyModel:u,hasRules:c,hasError:h,errorMessage:m,validate:z,resetValidation:p}}function Xt(e){return e!=null&&(""+e).length!==0}const er={...Ve,...Zi,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},ol={...er,maxlength:[Number,String]},Xn=["update:modelValue","clear","focus","blur"];function Yn({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:i,proxy:o}=l.getCurrentInstance(),r=Te(i,o.$q),u=Ui({required:e,getValue:()=>i.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?l.computed(()=>i.tag):{value:"label"},isDark:r,editable:l.computed(()=>i.disable!==!0&&i.readonly!==!0),innerLoading:l.ref(!1),focused:l.ref(!1),hasPopupOpen:!1,splitAttrs:Qi(),targetUid:u,rootRef:l.ref(null),targetRef:l.ref(null),controlRef:l.ref(null)}}function Gn(e){const{props:t,emit:n,slots:i,attrs:o,proxy:r}=l.getCurrentInstance(),{$q:u}=r;let a=null;e.hasValue===void 0&&(e.hasValue=l.computed(()=>Xt(t.modelValue))),e.emitValue===void 0&&(e.emitValue=q=>{n("update:modelValue",q)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:j,onFocusout:U}),Object.assign(e,{clearValue:K,onControlFocusin:j,onControlFocusout:U,focus:O}),e.computedCounter===void 0&&(e.computedCounter=l.computed(()=>{if(t.counter!==!1){const q=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,R=t.maxlength!==void 0?t.maxlength:t.maxValues;return q+(R!==void 0?" / "+R:"")}}));const{isDirtyModel:f,hasRules:c,hasError:d,errorMessage:h,resetValidation:m}=Ji(e.focused,e.innerLoading),v=e.floatingLabel!==void 0?l.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):l.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),p=l.computed(()=>t.bottomSlots===!0||t.hint!==void 0||c.value===!0||t.counter===!0||t.error!==null),z=l.computed(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),y=l.computed(()=>`q-field row no-wrap items-start q-field--${z.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(v.value===!0?" q-field--float":"")+(E.value===!0?" q-field--labeled":"")+(t.dense===!0?" q-field--dense":"")+(t.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":"")+(d.value===!0?" q-field--error":"")+(d.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&p.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),M=l.computed(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(d.value===!0?" text-negative":typeof t.standout=="string"&&t.standout.length!==0&&e.focused.value===!0?` ${t.standout}`:t.color!==void 0?` text-${t.color}`:"")),E=l.computed(()=>t.labelSlot===!0||t.label!==void 0),C=l.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&d.value!==!0?` text-${t.labelColor}`:"")),$=l.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:v.value,modelValue:t.modelValue,emitValue:e.emitValue})),B=l.computed(()=>{const q={};return e.targetUid.value&&(q.for=e.targetUid.value),t.disable===!0&&(q["aria-disabled"]="true"),q});function V(){var Z;const q=document.activeElement;let R=(Z=e.targetRef)==null?void 0:Z.value;R&&(q===null||q.id!==e.targetUid.value)&&(R.hasAttribute("tabindex")===!0||(R=R.querySelector("[tabindex]")),R!==q&&(R==null||R.focus({preventScroll:!0})))}function O(){nl(V)}function P(){Bi(V);const q=document.activeElement;q!==null&&e.rootRef.value.contains(q)&&q.blur()}function j(q){a!==null&&(clearTimeout(a),a=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",q))}function U(q,R){a!==null&&clearTimeout(a),a=setTimeout(()=>{a=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,n("blur",q)),R==null||R())})}function K(q){var R;te(q),u.platform.is.mobile!==!0?(((R=e.targetRef)==null?void 0:R.value)||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",t.modelValue),l.nextTick(()=>{const Z=f.value;m(),f.value=Z})}function A(q){[13,32].includes(q.keyCode)&&K(q)}function W(){const q=[];return i.prepend!==void 0&&q.push(l.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:ue},i.prepend())),q.push(l.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},g())),d.value===!0&&t.noErrorIcon===!1&&q.push(L("error",[l.h(de,{name:u.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?q.push(L("inner-loading-append",i.loading!==void 0?i.loading():[l.h(Zt,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&q.push(L("inner-clearable-append",[l.h(de,{class:"q-field__focusable-action",name:t.clearIcon||u.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":u.lang.label.clear,onKeyup:A,onClick:K})])),i.append!==void 0&&q.push(l.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:ue},i.append())),e.getInnerAppend!==void 0&&q.push(L("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&q.push(e.getControlChild()),q}function g(){const q=[];return t.prefix!==void 0&&t.prefix!==null&&q.push(l.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&q.push(e.getShadowControl()),e.getControl!==void 0?q.push(e.getControl()):i.rawControl!==void 0?q.push(i.rawControl()):i.control!==void 0&&q.push(l.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},i.control($.value))),E.value===!0&&q.push(l.h("div",{class:C.value},ce(i.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&q.push(l.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),q.concat(ce(i.default))}function w(){let q,R;d.value===!0?h.value!==null?(q=[l.h("div",{role:"alert"},h.value)],R=`q--slot-error-${h.value}`):(q=ce(i.error),R="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(q=[l.h("div",t.hint)],R=`q--slot-hint-${t.hint}`):(q=ce(i.hint),R="q--slot-hint"));const Z=t.counter===!0||i.counter!==void 0;if(t.hideBottomSpace===!0&&Z===!1&&q===void 0)return;const b=l.h("div",{key:R,class:"q-field__messages col"},q);return l.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:ue},[t.hideBottomSpace===!0?b:l.h(l.Transition,{name:"q-transition--field-message"},()=>b),Z===!0?l.h("div",{class:"q-field__counter"},i.counter!==void 0?i.counter():e.computedCounter.value):null])}function L(q,R){return R===null?null:l.h("div",{key:q,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},R)}let Y=!1;return l.onDeactivated(()=>{Y=!0}),l.onActivated(()=>{Y===!0&&t.autofocus===!0&&r.focus()}),t.autofocus===!0&&l.onMounted(()=>{r.focus()}),l.onBeforeUnmount(()=>{a!==null&&clearTimeout(a)}),Object.assign(r,{focus:O,blur:P}),function(){const R=e.getControl===void 0&&i.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...B.value}:B.value;return l.h(e.tag.value,{ref:e.rootRef,class:[y.value,o.class],style:o.style,...R},[i.before!==void 0?l.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:ue},i.before()):null,l.h("div",{class:"q-field__inner relative-position col self-stretch"},[l.h("div",{ref:e.controlRef,class:M.value,tabindex:-1,...e.controlEvents},W()),p.value===!0?w():null]),i.after!==void 0?l.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:ue},i.after()):null])}}const tr=le({name:"QField",inheritAttrs:!1,props:{...ol,tag:{type:String,default:"label"}},emits:Xn,setup(){return Gn(Yn({tagProp:!0}))}}),lr={xs:8,sm:10,md:14,lg:20,xl:24},nr=le({name:"QChip",props:{...Ve,...pt,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:t,emit:n}){const{proxy:{$q:i}}=l.getCurrentInstance(),o=Te(e,i),r=yt(e,lr),u=l.computed(()=>e.selected===!0||e.icon!==void 0),a=l.computed(()=>e.selected===!0?e.iconSelected||i.iconSet.chip.selected:e.icon),f=l.computed(()=>e.iconRemove||i.iconSet.chip.remove),c=l.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),d=l.computed(()=>{const y=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}`:"")+(y?` text-${y} 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":"")+(c.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=l.computed(()=>{const y=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},M={...y,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||i.lang.label.remove};return{chip:y,remove:M}});function m(y){y.keyCode===13&&v(y)}function v(y){e.disable||(n("update:selected",!e.selected),n("click",y))}function p(y){(y.keyCode===void 0||y.keyCode===13)&&(te(y),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function z(){const y=[];c.value===!0&&y.push(l.h("div",{class:"q-focus-helper"})),u.value===!0&&y.push(l.h(de,{class:"q-chip__icon q-chip__icon--left",name:a.value}));const M=e.label!==void 0?[l.h("div",{class:"ellipsis"},[e.label])]:void 0;return y.push(l.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},po(t.default,M))),e.iconRight&&y.push(l.h(de,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&y.push(l.h(de,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:f.value,...h.value.remove,onClick:p,onKeyup:p})),y}return()=>{if(e.modelValue===!1)return;const y={class:d.value,style:r.value};return c.value===!0&&Object.assign(y,h.value.chip,{onClick:v,onKeyup:m}),yo("div",y,z(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Cn,e.ripple]])}}}),or=le({name:"QItem",props:{...Ve,...pn,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:t,emit:n}){const{proxy:{$q:i}}=l.getCurrentInstance(),o=Te(e,i),{hasLink:r,linkAttrs:u,linkClass:a,linkTag:f,navigateOnClick:c}=Gt(),d=l.ref(null),h=l.ref(null),m=l.computed(()=>e.clickable===!0||r.value===!0||e.tag==="label"),v=l.computed(()=>e.disable!==!0&&m.value===!0),p=l.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?a.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(v.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":""):"")),z=l.computed(()=>e.insetLevel===void 0?null:{["padding"+(i.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function y(C){v.value===!0&&(h.value!==null&&C.qAvoidFocus!==!0&&(C.qKeyEvent!==!0&&document.activeElement===d.value?h.value.focus():document.activeElement===h.value&&d.value.focus()),c(C))}function M(C){if(v.value===!0&&Be(C,[13,32])===!0){te(C),C.qKeyEvent=!0;const $=new MouseEvent("click",C);$.qKeyEvent=!0,d.value.dispatchEvent($)}n("keyup",C)}function E(){const C=bo(t.default,[]);return v.value===!0&&C.unshift(l.h("div",{class:"q-focus-helper",tabindex:-1,ref:h})),C}return()=>{const C={ref:d,class:p.value,style:z.value,role:"listitem",onClick:y,onKeyup:M};return v.value===!0?(C.tabindex=e.tabindex||"0",Object.assign(C,u.value)):m.value===!0&&(C["aria-disabled"]="true"),l.h(f.value,C,E())}}}),ir=le({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=l.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()=>l.h("div",{class:n.value},ce(t.default))}}),rr=le({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=l.computed(()=>parseInt(e.lines,10)),i=l.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":"")+(n.value===1?" ellipsis":"")),o=l.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>l.h("div",{style:o.value,class:i.value},ce(t.default))}});function ur(e,t,n){function i(){}return l.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:i,addToHistory(){}}}let Ye=0,$t,Lt,Ze,Pt=!1,en,tn,ln,xe=null;function ar(e){sr(e)&&te(e)}function sr(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=Fo(e),n=e.shiftKey&&!e.deltaX,i=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),o=n||i?e.deltaY:e.deltaX;for(let r=0;r<t.length;r++){const u=t[r];if(gi(u,i))return i?o<0&&u.scrollTop===0?!0:o>0&&u.scrollTop+u.clientHeight===u.scrollHeight:o<0&&u.scrollLeft===0?!0:o>0&&u.scrollLeft+u.clientWidth===u.scrollWidth}return!0}function nn(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function ft(e){Pt!==!0&&(Pt=!0,requestAnimationFrame(()=>{Pt=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:i}=document.scrollingElement;(Ze===void 0||t!==window.innerHeight)&&(Ze=n-t,document.scrollingElement.scrollTop=i),i>Ze&&(document.scrollingElement.scrollTop-=Math.ceil((i-Ze)/8))}))}function on(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:i,overflowX:o}=window.getComputedStyle(t);$t=el(window),Lt=Jt(window),en=t.style.left,tn=t.style.top,ln=window.location.href,t.style.left=`-${$t}px`,t.style.top=`-${Lt}px`,o!=="hidden"&&(o==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),i!=="hidden"&&(i==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,oe.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",ft,ne.passiveCapture),window.visualViewport.addEventListener("scroll",ft,ne.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",nn,ne.passiveCapture))}oe.is.desktop===!0&&oe.is.mac===!0&&window[`${e}EventListener`]("wheel",ar,ne.notPassive),e==="remove"&&(oe.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",ft,ne.passiveCapture),window.visualViewport.removeEventListener("scroll",ft,ne.passiveCapture)):window.removeEventListener("scroll",nn,ne.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=en,t.style.top=tn,window.location.href===ln&&window.scrollTo($t,Lt),Ze=void 0)}function cr(e){let t="add";if(e===!0){if(Ye++,xe!==null){clearTimeout(xe),xe=null;return}if(Ye>1)return}else{if(Ye===0||(Ye--,Ye>0))return;if(t="remove",oe.is.ios===!0&&oe.is.nativeMobile===!0){xe!==null&&clearTimeout(xe),xe=setTimeout(()=>{on(t),xe=null},100);return}}on(t)}function dr(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,cr(t))}}}let vt=0;const fr={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"},rn={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},vr=le({name:"QDialog",inheritAttrs:!1,props:{...Mn,...In,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:[...$n,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:i}){const o=l.getCurrentInstance(),r=l.ref(null),u=l.ref(!1),a=l.ref(!1);let f=null,c=null,d,h;const m=l.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:v}=dr(),{registerTimeout:p}=Dn(),{registerTick:z,removeTick:y}=Hn(),{transitionProps:M,transitionStyle:E}=Fn(e,()=>rn[e.position][0],()=>rn[e.position][1]),C=l.computed(()=>E.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:$,hidePortal:B,portalIsAccessible:V,renderPortal:O}=Rn(o,r,F,"dialog"),{hide:P}=Ln({showing:u,hideOnRouteChange:m,handleShow:W,handleHide:g,processOnMount:!0});ur(u);const j=l.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${fr[e.position]}`+(a.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":"")),U=l.computed(()=>u.value===!0&&e.seamless!==!0),K=l.computed(()=>e.autoClose===!0?{onClick:Z}:{}),A=l.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${U.value===!0?"modal":"seamless"}`,i.class]);l.watch(()=>e.maximized,T=>{u.value===!0&&R(T)}),l.watch(U,T=>{v(T),T===!0?(Kn(k),Nn(Y)):(Kt(k),mt(Y))});function W(T){var D;c=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,R(e.maximized),$(),a.value=!0,e.noFocus!==!0?((D=document.activeElement)==null||D.blur(),z(w)):y(),p(()=>{if(o.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:H,bottom:I}=document.activeElement.getBoundingClientRect(),{innerHeight:G}=window,S=window.visualViewport!==void 0?window.visualViewport.height:G;H>0&&I>S/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-S,I>=G?1/0:Math.ceil(document.scrollingElement.scrollTop+I-S/2))),document.activeElement.scrollIntoView()}h=!0,r.value.click(),h=!1}$(!0),a.value=!1,n("show",T)},e.transitionDuration)}function g(T){y(),q(!0),a.value=!0,B(),c!==null&&((((T==null?void 0:T.type.indexOf("key"))===0?c.closest('[tabindex]:not([tabindex^="-"])'):void 0)||c).focus(),c=null),p(()=>{B(!0),a.value=!1,n("hide",T)},e.transitionDuration)}function w(T){nl(()=>{let D=r.value;if(D!==null){if(T!==void 0){const H=D.querySelector(T);if(H!==null){H.focus({preventScroll:!0});return}}D.contains(document.activeElement)!==!0&&(D=D.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||D.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||D.querySelector("[autofocus], [data-autofocus]")||D,D.focus({preventScroll:!0}))}})}function L(T){T&&typeof T.focus=="function"?T.focus({preventScroll:!0}):w(),n("shake");const D=r.value;D!==null&&(D.classList.remove("q-animate--scale"),D.classList.add("q-animate--scale"),f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,r.value!==null&&(D.classList.remove("q-animate--scale"),w())},170))}function Y(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&L():(n("escapeKey"),P()))}function q(T){f!==null&&(clearTimeout(f),f=null),(T===!0||u.value===!0)&&(R(!1),e.seamless!==!0&&(v(!1),Kt(k),mt(Y))),T!==!0&&(c=null)}function R(T){T===!0?d!==!0&&(vt<1&&document.body.classList.add("q-body--dialog"),vt++,d=!0):d===!0&&(vt<2&&document.body.classList.remove("q-body--dialog"),vt--,d=!1)}function Z(T){h!==!0&&(P(T),n("click",T))}function b(T){e.persistent!==!0&&e.noBackdropDismiss!==!0?P(T):e.noShake!==!0&&L()}function k(T){e.allowFocusOutside!==!0&&V.value===!0&&kn(r.value,T.target)!==!0&&w('[tabindex]:not([tabindex="-1"])')}Object.assign(o.proxy,{focus:w,shake:L,__updateRefocusTarget(T){c=T||null}}),l.onBeforeUnmount(q);function F(){return l.h("div",{role:"dialog","aria-modal":U.value===!0?"true":"false",...i,class:A.value},[l.h(l.Transition,{name:"q-transition--fade",appear:!0},()=>U.value===!0?l.h("div",{class:"q-dialog__backdrop fixed-full",style:C.value,"aria-hidden":"true",tabindex:-1,onClick:b}):null),l.h(l.Transition,M.value,()=>u.value===!0?l.h("div",{ref:r,class:j.value,style:E.value,tabindex:-1,...K.value},ce(t.default)):null)])}return O}});let bt=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,bt=e.scrollLeft>=0,e.remove()}const me=1e3,mr=["start","center","end","start-force","center-force","end-force"],Zn=Array.prototype.filter,hr=window.getComputedStyle(document.body).overflowAnchor===void 0?wt:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];Zn.call(n,o=>o.dataset&&o.dataset.qVsAnchor!==void 0).forEach(o=>{delete o.dataset.qVsAnchor});const i=n[t];i!=null&&i.dataset&&(i.dataset.qVsAnchor="")}))};function je(e,t){return e+t}function Rt(e,t,n,i,o,r,u,a){const f=e===window?document.scrollingElement||document.documentElement:e,c=o===!0?"offsetWidth":"offsetHeight",d={scrollStart:0,scrollViewSize:-u-a,scrollMaxSize:0,offsetStart:-u,offsetEnd:-a};if(o===!0?(e===window?(d.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d.scrollViewSize+=document.documentElement.clientWidth):(d.scrollStart=f.scrollLeft,d.scrollViewSize+=f.clientWidth),d.scrollMaxSize=f.scrollWidth,r===!0&&(d.scrollStart=(bt===!0?d.scrollMaxSize-d.scrollViewSize:0)-d.scrollStart)):(e===window?(d.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,d.scrollViewSize+=document.documentElement.clientHeight):(d.scrollStart=f.scrollTop,d.scrollViewSize+=f.clientHeight),d.scrollMaxSize=f.scrollHeight),n!==null)for(let h=n.previousElementSibling;h!==null;h=h.previousElementSibling)h.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetStart+=h[c]);if(i!==null)for(let h=i.nextElementSibling;h!==null;h=h.nextElementSibling)h.classList.contains("q-virtual-scroll--skip")===!1&&(d.offsetEnd+=h[c]);if(t!==e){const h=f.getBoundingClientRect(),m=t.getBoundingClientRect();o===!0?(d.offsetStart+=m.left-h.left,d.offsetEnd-=m.width):(d.offsetStart+=m.top-h.top,d.offsetEnd-=m.height),e!==window&&(d.offsetStart+=d.scrollStart),d.offsetEnd+=d.scrollMaxSize-d.offsetStart}return d}function un(e,t,n,i){t==="end"&&(t=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(i===!0&&(t=(bt===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):n===!0?(i===!0&&(t=(bt===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Ge(e,t,n,i){if(n>=i)return 0;const o=t.length,r=Math.floor(n/me),u=Math.floor((i-1)/me)+1;let a=e.slice(r,u).reduce(je,0);return n%me!==0&&(a-=t.slice(r*me,n).reduce(je,0)),i%me!==0&&i!==o&&(a-=t.slice(i,u*me).reduce(je,0)),a}const gr={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]},an={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...gr};function br({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:i}){const o=l.getCurrentInstance(),{props:r,emit:u,proxy:a}=o,{$q:f}=a;let c,d,h,m=[],v;const p=l.ref(0),z=l.ref(0),y=l.ref({}),M=l.ref(null),E=l.ref(null),C=l.ref(null),$=l.ref({from:0,to:0}),B=l.computed(()=>r.tableColspan!==void 0?r.tableColspan:100);i===void 0&&(i=l.computed(()=>r.virtualScrollItemSize));const V=l.computed(()=>i.value+";"+r.virtualScrollHorizontal),O=l.computed(()=>V.value+";"+r.virtualScrollSliceRatioBefore+";"+r.virtualScrollSliceRatioAfter);l.watch(O,()=>{L()}),l.watch(V,P);function P(){w(d,!0)}function j(b){w(b===void 0?d:b)}function U(b,k){const F=t();if(F==null||F.nodeType===8)return;const T=Rt(F,n(),M.value,E.value,r.virtualScrollHorizontal,f.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd);h!==T.scrollViewSize&&L(T.scrollViewSize),A(F,T,Math.min(e.value-1,Math.max(0,parseInt(b,10)||0)),0,mr.indexOf(k)!==-1?k:d!==-1&&b>d?"end":"start")}function K(){const b=t();if(b==null||b.nodeType===8)return;const k=Rt(b,n(),M.value,E.value,r.virtualScrollHorizontal,f.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd),F=e.value-1,T=k.scrollMaxSize-k.offsetStart-k.offsetEnd-z.value;if(c===k.scrollStart)return;if(k.scrollMaxSize<=0){A(b,k,0,0);return}h!==k.scrollViewSize&&L(k.scrollViewSize),W($.value.from);const D=Math.floor(k.scrollMaxSize-Math.max(k.scrollViewSize,k.offsetEnd)-Math.min(v[F],k.scrollViewSize/2));if(D>0&&Math.ceil(k.scrollStart)>=D){A(b,k,F,k.scrollMaxSize-k.offsetEnd-m.reduce(je,0));return}let H=0,I=k.scrollStart-k.offsetStart,G=I;if(I<=T&&I+k.scrollViewSize>=p.value)I-=p.value,H=$.value.from,G=I;else for(let S=0;I>=m[S]&&H<F;S++)I-=m[S],H+=me;for(;I>0&&H<F;)I-=v[H],I>-k.scrollViewSize?(H++,G=I):G=v[H]+I;A(b,k,H,G)}function A(b,k,F,T,D){const H=typeof D=="string"&&D.indexOf("-force")!==-1,I=H===!0?D.replace("-force",""):D,G=I!==void 0?I:"start";let S=Math.max(0,F-y.value[G]),ie=S+y.value.total;ie>e.value&&(ie=e.value,S=Math.max(0,ie-y.value.total)),c=k.scrollStart;const he=S!==$.value.from||ie!==$.value.to;if(he===!1&&I===void 0){q(F);return}const{activeElement:Ae}=document,fe=C.value;he===!0&&fe!==null&&fe!==Ae&&fe.contains(Ae)===!0&&(fe.addEventListener("focusout",g),setTimeout(()=>{fe==null||fe.removeEventListener("focusout",g)})),hr(fe,F-S);const nt=I!==void 0?v.slice(S,F).reduce(je,0):0;if(he===!0){const ye=ie>=$.value.from&&S<=$.value.to?$.value.to:ie;$.value={from:S,to:ye},p.value=Ge(m,v,0,S),z.value=Ge(m,v,ie,e.value),requestAnimationFrame(()=>{$.value.to!==ie&&c===k.scrollStart&&($.value={from:$.value.from,to:ie},z.value=Ge(m,v,ie,e.value))})}requestAnimationFrame(()=>{if(c!==k.scrollStart)return;he===!0&&W(S);const ye=v.slice(S,F).reduce(je,0),we=ye+k.offsetStart+p.value,ot=we+v[F];let Ke=we+T;if(I!==void 0){const St=ye-nt,Ue=k.scrollStart+St;Ke=H!==!0&&Ue<we&&ot<Ue+k.scrollViewSize?Ue:I==="end"?ot-k.scrollViewSize:we-(I==="start"?0:Math.round((k.scrollViewSize-v[F])/2))}c=Ke,un(b,Ke,r.virtualScrollHorizontal,f.lang.rtl),q(F)})}function W(b){const k=C.value;if(k){const F=Zn.call(k.children,S=>S.classList&&S.classList.contains("q-virtual-scroll--skip")===!1),T=F.length,D=r.virtualScrollHorizontal===!0?S=>S.getBoundingClientRect().width:S=>S.offsetHeight;let H=b,I,G;for(let S=0;S<T;){for(I=D(F[S]),S++;S<T&&F[S].classList.contains("q-virtual-scroll--with-prev")===!0;)I+=D(F[S]),S++;G=I-v[H],G!==0&&(v[H]+=G,m[Math.floor(H/me)]+=G),H++}}}function g(){var b;(b=C.value)==null||b.focus()}function w(b,k){const F=1*i.value;(k===!0||Array.isArray(v)===!1)&&(v=[]);const T=v.length;v.length=e.value;for(let H=e.value-1;H>=T;H--)v[H]=F;const D=Math.floor((e.value-1)/me);m=[];for(let H=0;H<=D;H++){let I=0;const G=Math.min((H+1)*me,e.value);for(let S=H*me;S<G;S++)I+=v[S];m.push(I)}d=-1,c=void 0,p.value=Ge(m,v,0,$.value.from),z.value=Ge(m,v,$.value.to,e.value),b>=0?(W($.value.from),l.nextTick(()=>{U(b)})):R()}function L(b){if(b===void 0&&typeof window<"u"){const I=t();I!=null&&I.nodeType!==8&&(b=Rt(I,n(),M.value,E.value,r.virtualScrollHorizontal,f.lang.rtl,r.virtualScrollStickySizeStart,r.virtualScrollStickySizeEnd).scrollViewSize)}h=b;const k=parseFloat(r.virtualScrollSliceRatioBefore)||0,F=parseFloat(r.virtualScrollSliceRatioAfter)||0,T=1+k+F,D=b===void 0||b<=0?1:Math.ceil(b/i.value),H=Math.max(1,D,Math.ceil((r.virtualScrollSliceSize>0?r.virtualScrollSliceSize:10)/T));y.value={total:Math.ceil(H*T),start:Math.ceil(H*k),center:Math.ceil(H*(.5+k)),end:Math.ceil(H*(1+k)),view:D}}function Y(b,k){const F=r.virtualScrollHorizontal===!0?"width":"height",T={["--q-virtual-scroll-item-"+F]:i.value+"px"};return[b==="tbody"?l.h(b,{class:"q-virtual-scroll__padding",key:"before",ref:M},[l.h("tr",[l.h("td",{style:{[F]:`${p.value}px`,...T},colspan:B.value})])]):l.h(b,{class:"q-virtual-scroll__padding",key:"before",ref:M,style:{[F]:`${p.value}px`,...T}}),l.h(b,{class:"q-virtual-scroll__content",key:"content",ref:C,tabindex:-1},k.flat()),b==="tbody"?l.h(b,{class:"q-virtual-scroll__padding",key:"after",ref:E},[l.h("tr",[l.h("td",{style:{[F]:`${z.value}px`,...T},colspan:B.value})])]):l.h(b,{class:"q-virtual-scroll__padding",key:"after",ref:E,style:{[F]:`${z.value}px`,...T}})]}function q(b){d!==b&&(r.onVirtualScroll!==void 0&&u("virtualScroll",{index:b,from:$.value.from,to:$.value.to-1,direction:b<d?"decrease":"increase",ref:a}),d=b)}L();const R=ll(K,f.platform.is.ios===!0?120:35);l.onBeforeMount(()=>{L()});let Z=!1;return l.onDeactivated(()=>{Z=!0}),l.onActivated(()=>{if(Z!==!0)return;const b=t();c!==void 0&&b!==void 0&&b!==null&&b.nodeType!==8?un(b,c,r.virtualScrollHorizontal,f.lang.rtl):U(d)}),l.onBeforeUnmount(()=>{R.cancel()}),Object.assign(a,{scrollTo:U,reset:P,refresh:j}),{virtualScrollSliceRange:$,virtualScrollSliceSizeComputed:y,setVirtualScrollSize:L,onVirtualScrollEvt:R,localResetVirtualScroll:w,padVirtualScroll:Y,scrollTo:U,reset:P,refresh:j}}const pr=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,yr=/[\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,wr=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Sr=/[a-z0-9_ -]$/i;function kr(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(oe.is.firefox===!0?Sr.test(n.data)===!1:pr.test(n.data)===!0||yr.test(n.data)===!0||wr.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}function pe(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,i;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(pe(e[i],t[i])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let r=e.entries();for(i=r.next();i.done!==!0;){if(t.has(i.value[0])!==!0)return!1;i=r.next()}for(r=e.entries(),i=r.next();i.done!==!0;){if(pe(i.value[1],t.get(i.value[0]))!==!0)return!1;i=r.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const r=e.entries();for(i=r.next();i.done!==!0;){if(t.has(i.value[0])!==!0)return!1;i=r.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const o=Object.keys(e).filter(r=>e[r]!==void 0);if(n=o.length,n!==Object.keys(t).filter(r=>t[r]!==void 0).length)return!1;for(i=n;i--!==0;){const r=o[i];if(pe(e[r],t[r])!==!0)return!1}return!0}return e!==e&&t!==t}const sn=e=>["add","add-unique","toggle"].includes(e),xr=".*+?^${}()|[]\\",Cr=Object.keys(ol);function It(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return i=>i!==null&&typeof i=="object"&&n in i?i[n]:i}const Jn=le({name:"QSelect",inheritAttrs:!1,props:{...an,..._n,...ol,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:sn},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:an.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Xn,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:i}=l.getCurrentInstance(),{$q:o}=i,r=l.ref(!1),u=l.ref(!1),a=l.ref(-1),f=l.ref(""),c=l.ref(!1),d=l.ref(!1);let h=null,m=null,v,p,z,y=null,M,E,C,$;const B=l.ref(null),V=l.ref(null),O=l.ref(null),P=l.ref(null),j=l.ref(null),U=ti(e),K=kr(ml),A=l.computed(()=>Array.isArray(e.options)?e.options.length:0),W=l.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:g,virtualScrollSliceSizeComputed:w,localResetVirtualScroll:L,padVirtualScroll:Y,onVirtualScrollEvt:q,scrollTo:R,setVirtualScrollSize:Z}=br({virtualScrollLength:A,getVirtualScrollTarget:no,getVirtualScrollEl:fl,virtualScrollItemSizeComputed:W}),b=Yn(),k=l.computed(()=>{const s=e.mapOptions===!0&&e.multiple!==!0,x=e.modelValue!==void 0&&(e.modelValue!==null||s===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const _=e.mapOptions===!0&&v!==void 0?v:[],N=x.map(Q=>lo(Q,_));return e.modelValue===null&&s===!0?N.filter(Q=>Q!==null):N}return x}),F=l.computed(()=>{const s={};return Cr.forEach(x=>{const _=e[x];_!==void 0&&(s[x]=_)}),s}),T=l.computed(()=>e.optionsDark===null?b.isDark.value:e.optionsDark),D=l.computed(()=>Xt(k.value)),H=l.computed(()=>{let s="q-field__input q-placeholder col";return e.hideSelected===!0||k.value.length===0?[s,e.inputClass]:(s+=" q-field__input--padding",e.inputClass===void 0?s:[s,e.inputClass])}),I=l.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),G=l.computed(()=>A.value===0),S=l.computed(()=>k.value.map(s=>ae.value(s)).join(", ")),ie=l.computed(()=>e.displayValue!==void 0?e.displayValue:S.value),he=l.computed(()=>e.optionsHtml===!0?()=>!0:s=>(s==null?void 0:s.html)===!0),Ae=l.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||k.value.some(he.value))),fe=l.computed(()=>b.focused.value===!0?e.tabindex:-1),nt=l.computed(()=>{const s={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":`${b.targetUid.value}_lb`};return a.value>=0&&(s["aria-activedescendant"]=`${b.targetUid.value}_${a.value}`),s}),ye=l.computed(()=>({id:`${b.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),we=l.computed(()=>k.value.map((s,x)=>({index:x,opt:s,html:he.value(s),selected:!0,removeAtIndex:to,toggleOption:Se,tabindex:fe.value}))),ot=l.computed(()=>{if(A.value===0)return[];const{from:s,to:x}=g.value;return e.options.slice(s,x).map((_,N)=>{const Q=Oe.value(_)===!0,J=xt(_)===!0,X=s+N,ee={clickable:!0,active:J,activeClass:Ue.value,manualFocus:!0,focused:!1,disable:Q,tabindex:-1,dense:e.optionsDense,dark:T.value,role:"option","aria-selected":J===!0?"true":"false",id:`${b.targetUid.value}_${X}`,onClick:()=>{Se(_)}};return Q!==!0&&(a.value===X&&(ee.focused=!0),o.platform.is.desktop===!0&&(ee.onMousemove=()=>{r.value===!0&&Me(X)})),{index:X,opt:_,html:he.value(_),label:ae.value(_),selected:ee.active,focused:ee.focused,toggleOption:Se,setOptionIndex:Me,itemProps:ee}})}),Ke=l.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:o.iconSet.arrow.dropdown),St=l.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),Ue=l.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),ge=l.computed(()=>It(e.optionValue,"value")),ae=l.computed(()=>It(e.optionLabel,"label")),Oe=l.computed(()=>It(e.optionDisable,"disable")),it=l.computed(()=>k.value.map(ge.value)),eo=l.computed(()=>{const s={onInput:ml,onChange:K,onKeydown:dl,onKeyup:sl,onKeypress:cl,onFocus:ul,onClick(x){p===!0&&ve(x)}};return s.onCompositionstart=s.onCompositionupdate=s.onCompositionend=K,s});l.watch(k,s=>{v=s,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&b.innerLoading.value!==!0&&(u.value!==!0&&r.value!==!0||D.value!==!0)&&(z!==!0&&Re(),(u.value===!0||r.value===!0)&&$e(""))},{immediate:!0}),l.watch(()=>e.fillInput,Re),l.watch(r,Ct),l.watch(A,go);function il(s){return e.emitValue===!0?ge.value(s):s}function kt(s){if(s!==-1&&s<k.value.length)if(e.multiple===!0){const x=e.modelValue.slice();n("remove",{index:s,value:x.splice(s,1)[0]}),n("update:modelValue",x)}else n("update:modelValue",null)}function to(s){kt(s),b.focus()}function rl(s,x){const _=il(s);if(e.multiple!==!0){e.fillInput===!0&&Qe(ae.value(s),!0,!0),n("update:modelValue",_);return}if(k.value.length===0){n("add",{index:0,value:_}),n("update:modelValue",e.multiple===!0?[_]:_);return}if(x===!0&&xt(s)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const N=e.modelValue.slice();n("add",{index:N.length,value:_}),N.push(_),n("update:modelValue",N)}function Se(s,x){var J;if(b.editable.value!==!0||s===void 0||Oe.value(s)===!0)return;const _=ge.value(s);if(e.multiple!==!0){x!==!0&&(Qe(e.fillInput===!0?ae.value(s):"",!0,!0),ke()),(J=V.value)==null||J.focus(),(k.value.length===0||pe(ge.value(k.value[0]),_)!==!0)&&n("update:modelValue",e.emitValue===!0?_:s);return}if((p!==!0||c.value===!0)&&b.focus(),ul(),k.value.length===0){const X=e.emitValue===!0?_:s;n("add",{index:0,value:X}),n("update:modelValue",e.multiple===!0?[X]:X);return}const N=e.modelValue.slice(),Q=it.value.findIndex(X=>pe(X,_));if(Q!==-1)n("remove",{index:Q,value:N.splice(Q,1)[0]});else{if(e.maxValues!==void 0&&N.length>=e.maxValues)return;const X=e.emitValue===!0?_:s;n("add",{index:N.length,value:X}),N.push(X)}n("update:modelValue",N)}function Me(s){if(o.platform.is.desktop!==!0)return;const x=s!==-1&&s<A.value?s:-1;a.value!==x&&(a.value=x)}function rt(s=1,x){if(r.value===!0){let _=a.value;do _=Ll(_+s,-1,A.value-1);while(_!==-1&&_!==a.value&&Oe.value(e.options[_])===!0);a.value!==_&&(Me(_),R(_),x!==!0&&e.useInput===!0&&e.fillInput===!0&&ut(_>=0?ae.value(e.options[_]):M,!0))}}function lo(s,x){const _=N=>pe(ge.value(N),s);return e.options.find(_)||x.find(_)||s}function xt(s){const x=ge.value(s);return it.value.find(_=>pe(_,x))!==void 0}function ul(s){e.useInput===!0&&V.value!==null&&(s===void 0||V.value===s.target&&s.target.value===S.value)&&V.value.select()}function al(s){Be(s,27)===!0&&r.value===!0&&(ve(s),ke(),Re()),n("keyup",s)}function sl(s){const{value:x}=s.target;if(s.keyCode!==void 0){al(s);return}if(s.target.value="",h!==null&&(clearTimeout(h),h=null),m!==null&&(clearTimeout(m),m=null),Re(),typeof x=="string"&&x.length!==0){const _=x.toLocaleLowerCase(),N=J=>{const X=e.options.find(ee=>String(J.value(ee)).toLocaleLowerCase()===_);return X===void 0?!1:(k.value.indexOf(X)===-1?Se(X):ke(),!0)},Q=J=>{N(ge)!==!0&&J!==!0&&N(ae)!==!0&&$e(x,!0,()=>Q(!0))};Q()}else b.clearValue(s)}function cl(s){n("keypress",s)}function dl(s){if(n("keydown",s),xn(s)===!0)return;const x=f.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),_=s.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(a.value!==-1||x===!0);if(s.keyCode===27){ue(s);return}if(s.keyCode===9&&_===!1){Le();return}if(s.target===void 0||s.target.id!==b.targetUid.value||b.editable.value!==!0)return;if(s.keyCode===40&&b.innerLoading.value!==!0&&r.value===!1){te(s),Pe();return}if(s.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&f.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?kt(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(s.keyCode===35||s.keyCode===36)&&(typeof f.value!="string"||f.value.length===0)&&(te(s),a.value=-1,rt(s.keyCode===36?1:-1,e.multiple)),(s.keyCode===33||s.keyCode===34)&&w.value!==void 0&&(te(s),a.value=Math.max(-1,Math.min(A.value,a.value+(s.keyCode===33?-1:1)*w.value.view)),rt(s.keyCode===33?1:-1,e.multiple)),(s.keyCode===38||s.keyCode===40)&&(te(s),rt(s.keyCode===38?-1:1,e.multiple));const N=A.value;if((C===void 0||$<Date.now())&&(C=""),N>0&&e.useInput!==!0&&s.key!==void 0&&s.key.length===1&&s.altKey===!1&&s.ctrlKey===!1&&s.metaKey===!1&&(s.keyCode!==32||C.length!==0)){r.value!==!0&&Pe(s);const Q=s.key.toLocaleLowerCase(),J=C.length===1&&C[0]===Q;$=Date.now()+1500,J===!1&&(te(s),C+=Q);const X=new RegExp("^"+C.split("").map(Ie=>xr.indexOf(Ie)!==-1?"\\"+Ie:Ie).join(".*"),"i");let ee=a.value;if(J===!0||ee<0||X.test(ae.value(e.options[ee]))!==!0)do ee=Ll(ee+1,-1,N-1);while(ee!==a.value&&(Oe.value(e.options[ee])===!0||X.test(ae.value(e.options[ee]))!==!0));a.value!==ee&&l.nextTick(()=>{Me(ee),R(ee),ee>=0&&e.useInput===!0&&e.fillInput===!0&&ut(ae.value(e.options[ee]),!0)});return}if(!(s.keyCode!==13&&(s.keyCode!==32||e.useInput===!0||C!=="")&&(s.keyCode!==9||_===!1))){if(s.keyCode!==9&&te(s),a.value!==-1&&a.value<N){Se(e.options[a.value]);return}if(x===!0){const Q=(J,X)=>{var Ie;if(X){if(sn(X)!==!0)return}else X=e.newValueMode;if(Qe("",e.multiple!==!0,!0),J==null)return;(X==="toggle"?Se:rl)(J,X==="add-unique"),e.multiple!==!0&&((Ie=V.value)==null||Ie.focus(),ke())};if(e.onNewValue!==void 0?n("newValue",f.value,Q):Q(f.value),e.multiple!==!0)return}r.value===!0?Le():b.innerLoading.value!==!0&&Pe()}}function fl(){return p===!0?j.value:O.value!==null&&O.value.contentEl!==null?O.value.contentEl:void 0}function no(){return fl()}function oo(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?we.value.map(s=>t["selected-item"](s)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?we.value.map((s,x)=>l.h(nr,{key:"option-"+x,removable:b.editable.value===!0&&Oe.value(s.opt)!==!0,dense:!0,textColor:e.color,tabindex:fe.value,onRemove(){s.removeAtIndex(x)}},()=>l.h("span",{class:"ellipsis",[s.html===!0?"innerHTML":"textContent"]:ae.value(s.opt)}))):[l.h("span",{class:"ellipsis",[Ae.value===!0?"innerHTML":"textContent"]:ie.value})]}function vl(){if(G.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:f.value}):void 0;const s=t.option!==void 0?t.option:_=>l.h(or,{key:_.index,..._.itemProps},()=>l.h(ir,()=>l.h(rr,()=>l.h("span",{[_.html===!0?"innerHTML":"textContent"]:_.label}))));let x=Y("div",ot.value.map(s));return t["before-options"]!==void 0&&(x=t["before-options"]().concat(x)),be(t["after-options"],x)}function io(s,x){const _=x===!0?{...nt.value,...b.splitAttrs.attributes.value}:void 0,N={ref:x===!0?V:void 0,key:"i_t",class:H.value,style:e.inputStyle,value:f.value!==void 0?f.value:"",type:"search",..._,id:x===!0?b.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":s===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...eo.value};return s!==!0&&p===!0&&(Array.isArray(N.class)===!0?N.class=[...N.class,"no-pointer-events"]:N.class+=" no-pointer-events"),l.h("input",N)}function ml(s){h!==null&&(clearTimeout(h),h=null),m!==null&&(clearTimeout(m),m=null),!(s&&s.target&&s.target.qComposing===!0)&&(ut(s.target.value||""),z=!0,M=f.value,b.focused.value!==!0&&(p!==!0||c.value===!0)&&b.focus(),e.onFilter!==void 0&&(h=setTimeout(()=>{h=null,$e(f.value)},e.inputDebounce)))}function ut(s,x){f.value!==s&&(f.value=s,x===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",s):m=setTimeout(()=>{m=null,n("inputValue",s)},e.inputDebounce))}function Qe(s,x,_){z=_!==!0,e.useInput===!0&&(ut(s,!0),(x===!0||_!==!0)&&(M=s),x!==!0&&$e(s))}function $e(s,x,_){if(e.onFilter===void 0||x!==!0&&b.focused.value!==!0)return;b.innerLoading.value===!0?n("filterAbort"):(b.innerLoading.value=!0,d.value=!0),s!==""&&e.multiple!==!0&&k.value.length!==0&&z!==!0&&s===ae.value(k.value[0])&&(s="");const N=setTimeout(()=>{r.value===!0&&(r.value=!1)},10);y!==null&&clearTimeout(y),y=N,n("filter",s,(Q,J)=>{(x===!0||b.focused.value===!0)&&y===N&&(clearTimeout(y),typeof Q=="function"&&Q(),d.value=!1,l.nextTick(()=>{b.innerLoading.value=!1,b.editable.value===!0&&(x===!0?r.value===!0&&ke():r.value===!0?Ct(!0):r.value=!0),typeof J=="function"&&l.nextTick(()=>{J(i)}),typeof _=="function"&&l.nextTick(()=>{_(i)})}))},()=>{b.focused.value===!0&&y===N&&(clearTimeout(y),b.innerLoading.value=!1,d.value=!1),r.value===!0&&(r.value=!1)})}function ro(){return l.h(Qn,{ref:O,class:I.value,style:e.popupContentStyle,modelValue:r.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&G.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:T.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:St.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...ye.value,onScrollPassive:q,onBeforeShow:gl,onBeforeHide:uo,onShow:ao},vl)}function uo(s){bl(s),Le()}function ao(){Z()}function so(s){var x;ve(s),(x=V.value)==null||x.focus(),c.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function co(s){ve(s),l.nextTick(()=>{c.value=!1})}function fo(){const s=[l.h(tr,{class:`col-auto ${b.fieldClass.value}`,...F.value,for:b.targetUid.value,dark:T.value,square:!0,loading:d.value,itemAligned:!1,filled:!0,stackLabel:f.value.length!==0,...b.splitAttrs.listeners.value,onFocus:so,onBlur:co},{...t,rawControl:()=>b.getControl(!0),before:void 0,after:void 0})];return r.value===!0&&s.push(l.h("div",{ref:j,class:I.value+" scroll",style:e.popupContentStyle,...ye.value,onClick:ue,onScrollPassive:q},vl())),l.h(vr,{ref:P,modelValue:u.value,position:e.useInput===!0?"top":void 0,transitionShow:E,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:gl,onBeforeHide:vo,onHide:mo,onShow:ho},()=>l.h("div",{class:"q-select__dialog"+(T.value===!0?" q-select__dialog--dark q-dark":"")+(c.value===!0?" q-select__dialog--focused":"")},s))}function vo(s){bl(s),P.value!==null&&P.value.__updateRefocusTarget(b.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),b.focused.value=!1}function mo(s){ke(),b.focused.value===!1&&n("blur",s),Re()}function ho(){const s=document.activeElement;(s===null||s.id!==b.targetUid.value)&&V.value!==null&&V.value!==s&&V.value.focus(),Z()}function Le(){u.value!==!0&&(a.value=-1,r.value===!0&&(r.value=!1),b.focused.value===!1&&(y!==null&&(clearTimeout(y),y=null),b.innerLoading.value===!0&&(n("filterAbort"),b.innerLoading.value=!1,d.value=!1)))}function Pe(s){b.editable.value===!0&&(p===!0?(b.onControlFocusin(s),u.value=!0,l.nextTick(()=>{b.focus()})):b.focus(),e.onFilter!==void 0?$e(f.value):(G.value!==!0||t["no-option"]!==void 0)&&(r.value=!0))}function ke(){u.value=!1,Le()}function Re(){e.useInput===!0&&Qe(e.multiple!==!0&&e.fillInput===!0&&k.value.length!==0&&ae.value(k.value[0])||"",!0,!0)}function Ct(s){let x=-1;if(s===!0){if(k.value.length!==0){const _=ge.value(k.value[0]);x=e.options.findIndex(N=>pe(ge.value(N),_))}L(x)}Me(x)}function go(s,x){r.value===!0&&b.innerLoading.value===!1&&(L(-1,!0),l.nextTick(()=>{r.value===!0&&b.innerLoading.value===!1&&(s>x?L():Ct(!0))}))}function hl(){u.value===!1&&O.value!==null&&O.value.updatePosition()}function gl(s){s!==void 0&&ve(s),n("popupShow",s),b.hasPopupOpen=!0,b.onControlFocusin(s)}function bl(s){s!==void 0&&ve(s),n("popupHide",s),b.hasPopupOpen=!1,b.onControlFocusout(s)}function pl(){p=o.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||G.value===!1:!0),E=o.platform.is.ios===!0&&p===!0&&e.useInput===!0?"fade":e.transitionShow}return l.onBeforeUpdate(pl),l.onUpdated(hl),pl(),l.onBeforeUnmount(()=>{h!==null&&clearTimeout(h),m!==null&&clearTimeout(m)}),Object.assign(i,{showPopup:Pe,hidePopup:ke,removeAtIndex:kt,add:rl,toggleOption:Se,getOptionIndex:()=>a.value,setOptionIndex:Me,moveOptionSelection:rt,filter:$e,updateMenuPosition:hl,updateInputValue:Qe,isOptionSelected:xt,getEmittingOptionValue:il,isOptionDisabled:(...s)=>Oe.value.apply(null,s)===!0,getOptionValue:(...s)=>ge.value.apply(null,s),getOptionLabel:(...s)=>ae.value.apply(null,s)}),Object.assign(b,{innerValue:k,fieldClass:l.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:B,targetRef:V,hasValue:D,showPopup:Pe,floatingLabel:l.computed(()=>e.hideSelected!==!0&&D.value===!0||typeof f.value=="number"||f.value.length!==0||Xt(e.displayValue)),getControlChild:()=>{if(b.editable.value!==!1&&(u.value===!0||G.value!==!0||t["no-option"]!==void 0))return p===!0?fo():ro();b.hasPopupOpen===!0&&(b.hasPopupOpen=!1)},controlEvents:{onFocusin(s){b.onControlFocusin(s)},onFocusout(s){b.onControlFocusout(s,()=>{Re(),Le()})},onClick(s){var x;if(ue(s),p!==!0&&r.value===!0){Le(),(x=V.value)==null||x.focus();return}Pe(s)}},getControl:s=>{const x=oo(),_=s===!0||u.value!==!0||p!==!0;if(e.useInput===!0)x.push(io(s,_));else if(b.editable.value===!0){const Q=_===!0?nt.value:void 0;x.push(l.h("input",{ref:_===!0?V:void 0,key:"d_t",class:"q-select__focus-target",id:_===!0?b.targetUid.value:void 0,value:ie.value,readonly:!0,"data-autofocus":s===!0||e.autofocus===!0||void 0,...Q,onKeydown:dl,onKeyup:al,onKeypress:cl})),_===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&x.push(l.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:sl}))}if(U.value!==void 0&&e.disable!==!0&&it.value.length!==0){const Q=it.value.map(J=>l.h("option",{value:J,selected:!0}));x.push(l.h("select",{class:"hidden",name:U.value,multiple:e.multiple},Q))}const N=e.useInput===!0||_!==!0?void 0:b.splitAttrs.attributes.value;return l.h("div",{class:"q-field__native row items-center",...N,...b.splitAttrs.listeners.value},x)},getInnerAppend:()=>e.loading!==!0&&d.value!==!0&&e.hideDropdownIcon!==!0?[l.h(de,{class:"q-select__dropdown-icon"+(r.value===!0?" rotate-180":""),name:Ke.value})]:null}),Gn(b)}}),qr={class:"q-pa-none"},_r=l.defineComponent({__name:"CheckboxFilter",props:{options:{},label:{default:"Sélectionner les options"},modelValue:{default:()=>[]},scrollAreaHeight:{default:"200px"},scrollAreaWidth:{default:"250px"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,o=l.ref(!1),r=l.ref(n.modelValue||[]),u=l.computed(()=>({height:n.scrollAreaHeight,width:n.scrollAreaWidth}));return l.watch(r,a=>{i("update:modelValue",a)}),l.watch(()=>n.modelValue,a=>{a&&(r.value=a)}),(a,f)=>(l.openBlock(),l.createElementBlock("div",qr,[l.createVNode(Jn,l.mergeProps({outlined:"",dense:"",label:n.label,class:"full-width cursor-pointer","data-cy":"checkbox-filter","model-value":null,options:[],"hide-dropdown-icon":""},a.$attrs),{append:l.withCtx(()=>[l.createVNode(de,{name:"arrow_drop_down",class:l.normalizeClass(["cursor-pointer smooth-rotate",{"rotate-180":o.value}])},null,8,["class"])]),default:l.withCtx(()=>[l.createVNode(Qn,{modelValue:o.value,"onUpdate:modelValue":f[1]||(f[1]=c=>o.value=c),anchor:"bottom left",self:"top left",offset:[0,8],"transition-show":"scale","transition-hide":"scale"},{default:l.withCtx(()=>[l.createVNode(xi,{class:"q-pa-sm"},{default:l.withCtx(()=>[l.createVNode(ki,{style:l.normalizeStyle(u.value)},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.options,c=>(l.openBlock(),l.createBlock(ui,{key:c.value,modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=d=>r.value=d),val:c,label:c.label,disable:c.disabled,color:"primary",class:"q-mb-sm q-ml-sm q-mr-sm","data-cy":`checkbox-option-${c.label}`},null,8,["modelValue","val","label","disable","data-cy"]))),128))]),_:1},8,["style"])]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label"])]))}}),zr=qn(_r,[["__scopeId","data-v-42c19597"]]),Er=l.defineComponent({__name:"SelectSearch",props:{options:{default:()=>[]},fetchOptions:{},label:{default:"Select"},modelValue:{default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,o=l.ref(n.modelValue),r=l.ref(n.options),u=l.ref(!1);l.watch(()=>n.modelValue,c=>{o.value=c}),l.watch(o,c=>{i("update:modelValue",c)}),l.watch(()=>n.options,c=>{r.value=c});const a=async(c,d)=>{d(()=>{if(n.fetchOptions){const h=n.fetchOptions(c);h instanceof Promise?(u.value=!0,h.then(m=>{r.value=m}).finally(()=>{u.value=!1})):r.value=h}else r.value=c?n.options.filter(h=>{var m;return(m=h.label)==null?void 0:m.toLowerCase().includes(c.toLowerCase())}):n.options})},f=()=>{a("",c=>c())};return(c,d)=>(l.openBlock(),l.createBlock(Jn,l.mergeProps({modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=h=>o.value=h),"use-input":"","hide-selected":"","fill-input":"","input-debounce":"300",label:c.label,options:r.value,onFilter:a,onFocus:f,"data-cy":"client-select",dense:"",outlined:"",class:"full-width cursor-pointer"},c.$attrs),l.createSlots({_:2},[u.value?{name:"append",fn:l.withCtx(()=>[l.createVNode(Zt,{color:"primary",size:"sm"})]),key:"0"}:void 0]),1040,["modelValue","label","options"]))}});function Br(e){var t,n;return{entity:e.entity,dataCy:e.dataCy,defaultLabel:e.defaultLabel,routeName:e.routeName,shouldRender:e.customShouldRender||(({store:i})=>e.storeField?!!i[e.storeField]:!0),getLabel:e.getLabel||(e.labelField?({store:i})=>{var o;return e.storeField&&((o=i[e.storeField])==null?void 0:o[e.labelField])||e.defaultLabel}:void 0),getColor:e.customGetColor||(({store:i})=>e.storeField&&i[e.storeField]?"primary":"dark"),getRouteParams:e.routeParamKey&&e.routeParamField?({store:i})=>{var o;return{[e.routeParamKey]:e.storeField&&((o=i[e.storeField])==null?void 0:o[e.routeParamField])}}:void 0,clearActions:[...((t=e.clearMethods)==null?void 0:t.map(i=>({store:o})=>{var r;return(r=o[i])==null?void 0:r.call(o)}))||[],...((n=e.navActions)==null?void 0:n.map(i=>({navStore:o})=>i(o)))||[]]}}exports.Breadcrumbs=$o;exports.CheckboxFilter=zr;exports.NavButton=Zo;exports.SelectSearch=Er;exports.createBreadcrumb=Br;