diff --git a/assets/ErrorNotFound.6f856ce5.js b/assets/ErrorNotFound.e4e7efa3.js similarity index 80% rename from assets/ErrorNotFound.6f856ce5.js rename to assets/ErrorNotFound.e4e7efa3.js index c877a29..cd1ec99 100644 --- a/assets/ErrorNotFound.6f856ce5.js +++ b/assets/ErrorNotFound.e4e7efa3.js @@ -1 +1 @@ -import{Q as s}from"./QBtn.7ce9a280.js";import{_ as l,s as r,t as c,u as n,v as t,x as o,y as a}from"./index.92633fe6.js";const u={};function f(_,d){const e=r("authenticationResultsHeaders");return c(),n(e,{class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"},{default:t(()=>[o(e,null,{default:t(()=>[o(e,{style:{"font-size":"30vh"}},{default:t(()=>[a(" 404 ")]),_:1}),o(e,{class:"text-h2",style:{opacity:".4"}},{default:t(()=>[a(" Oops. Nothing here... ")]),_:1}),o(s,{class:"q-mt-xl",color:"white","text-color":"blue",unelevated:"",to:"/",label:"Go Home","no-caps":""})]),_:1})]),_:1})}var p=l(u,[["render",f]]);export{p as default}; +import{Q as s}from"./QBtn.4f67275f.js";import{_ as l,s as r,t as c,u as n,v as t,x as o,y as a}from"./index.f85e7812.js";const u={};function f(_,d){const e=r("authenticationResultsHeaders");return c(),n(e,{class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"},{default:t(()=>[o(e,null,{default:t(()=>[o(e,{style:{"font-size":"30vh"}},{default:t(()=>[a(" 404 ")]),_:1}),o(e,{class:"text-h2",style:{opacity:".4"}},{default:t(()=>[a(" Oops. Nothing here... ")]),_:1}),o(s,{class:"q-mt-xl",color:"white","text-color":"blue",unelevated:"",to:"/",label:"Go Home","no-caps":""})]),_:1})]),_:1})}var p=l(u,[["render",f]]);export{p as default}; diff --git a/assets/IndexPage.0ccfbff8.js b/assets/IndexPage.6382c46f.js similarity index 98% rename from assets/IndexPage.0ccfbff8.js rename to assets/IndexPage.6382c46f.js index 8b84d7f..45c5e58 100644 --- a/assets/IndexPage.0ccfbff8.js +++ b/assets/IndexPage.6382c46f.js @@ -1,2 +1,2 @@ -import{i as ua,r as K,o as Ge,w as le,a as c,J as qn,g as de,b as Ce,e as _l,K as sa,L as Vn,M as Ye,H as Pe,d as ge,N as Tt,O as Rl,h as v,I as Oe,T as Ut,P as Pn,Q as Le,c as be,F as Xe,n as ca,R as Bl,l as Te,C as tl,S as da,D as zl,E as fa,U as Nl,q as va,V as ma,G as ga,W as Zt,X as ha,Y as ba,Z as _t,$ as yt,a0 as Cl,a1 as jl,a2 as ya,a3 as Sa,f as St,j as wa,k as xa,a4 as Mn,t as ie,a5 as re,a6 as Ue,a7 as Ze,a8 as Y,a9 as _e,aa as Be,_ as pa,u as Kl,v as fl,x as Lt,ab as ka,ac as _a}from"./index.92633fe6.js";import{d as De,e as Ca,h as qe,a as Rn,b as ll,u as Tl,f as El,i as qa,j as Va,R as Pa,k as Ma,l as Ra,v as Bn,m as vl,n as Tn,o as En,Q as Dt}from"./QBtn.7ce9a280.js";import{s as Fn,g as An,c as Ba,b as Ta,a as Ea,h as Fa}from"./scroll.ea6f512c.js";let ml,zt=0;const Se=new Array(256);for(let e=0;e<256;e++)Se[e]=(e+256).toString(16).substring(1);const Aa=(()=>{const e=typeof crypto!="undefined"?crypto:typeof window!="undefined"?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 l=new Uint8Array(t);return e.getRandomValues(l),l}}return t=>{const l=[];for(let n=t;n>0;n--)l.push(Math.floor(Math.random()*256));return l}})(),Ql=4096;function ql(){(ml===void 0||zt+16>Ql)&&(zt=0,ml=Aa(Ql));const e=Array.prototype.slice.call(ml,zt,zt+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Se[e[0]]+Se[e[1]]+Se[e[2]]+Se[e[3]]+"-"+Se[e[4]]+Se[e[5]]+"-"+Se[e[6]]+Se[e[7]]+"-"+Se[e[8]]+Se[e[9]]+"-"+Se[e[10]]+Se[e[11]]+Se[e[12]]+Se[e[13]]+Se[e[14]]+Se[e[15]]}function $a(e){return e==null?null:e}function Wl(e,t){return e==null?t===!0?`f_${ql()}`:null:e}function Ia({getValue:e,required:t=!0}={}){if(ua.value===!0){const l=e!==void 0?K($a(e())):K(null);return t===!0&&l.value===null&&Ge(()=>{l.value=`f_${ql()}`}),e!==void 0&&le(e,n=>{l.value=Wl(n,t)}),l}return e!==void 0?c(()=>Wl(e(),t)):K(`f_${ql()}`)}const Ul=/^on[A-Z]/;function Ha(){const{attrs:e,vnode:t}=de(),l={listeners:K({}),attributes:K({})};function n(){const a={},o={};for(const i in e)i!=="class"&&i!=="style"&&Ul.test(i)===!1&&(a[i]=e[i]);for(const i in t.props)Ul.test(i)===!0&&(o[i]=t.props[i]);l.attributes.value=a,l.listeners.value=o}return qn(n),n(),l}const ze={dark:{type:Boolean,default:null}};function Ne(e,t){return c(()=>e.dark===null?t.dark.isActive:e.dark)}function Oa({validate:e,resetValidation:t,requiresQForm:l}){const n=_l(sa,!1);if(n!==!1){const{props:a,proxy:o}=de();Object.assign(o,{validate:e,resetValidation:t}),le(()=>a.disable,i=>{i===!0?(typeof t=="function"&&t(),n.unbindComponent(o)):n.bindComponent(o)}),Ge(()=>{a.disable!==!0&&n.bindComponent(o)}),Ce(()=>{a.disable!==!0&&n.unbindComponent(o)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Zl=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Xl=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Yl=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Nt=/^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])\)$/,jt=/^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)\)$/,gl={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=>Zl.test(e),hexaColor:e=>Xl.test(e),hexOrHexaColor:e=>Yl.test(e),rgbColor:e=>Nt.test(e),rgbaColor:e=>jt.test(e),rgbOrRgbaColor:e=>Nt.test(e)||jt.test(e),hexOrRgbColor:e=>Zl.test(e)||Nt.test(e),hexaOrRgbaColor:e=>Xl.test(e)||jt.test(e),anyColor:e=>Yl.test(e)||Nt.test(e)||jt.test(e)},La=[!0,!1,"ondemand"],Da={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>La.includes(e)}};function za(e,t){const{props:l,proxy:n}=de(),a=K(!1),o=K(null),i=K(!1);Oa({validate:B,resetValidation:w});let s=0,d;const h=c(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),r=c(()=>l.disable!==!0&&h.value===!0&&t.value===!1),g=c(()=>l.error===!0||a.value===!0),C=c(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:o.value);le(()=>l.modelValue,()=>{i.value=!0,r.value===!0&&l.lazyRules===!1&&x()});function b(){l.lazyRules!=="ondemand"&&r.value===!0&&i.value===!0&&x()}le(()=>l.reactiveRules,D=>{D===!0?d===void 0&&(d=le(()=>l.rules,b,{immediate:!0,deep:!0})):d!==void 0&&(d(),d=void 0)},{immediate:!0}),le(()=>l.lazyRules,b),le(e,D=>{D===!0?i.value=!0:r.value===!0&&l.lazyRules!=="ondemand"&&x()});function w(){s++,t.value=!1,i.value=!1,a.value=!1,o.value=null,x.cancel()}function B(D=l.modelValue){if(l.disable===!0||h.value===!1)return!0;const M=++s,p=t.value!==!0?()=>{i.value=!0}:()=>{},k=(V,H)=>{V===!0&&p(),a.value=V,o.value=H||null,t.value=!1},R=[];for(let V=0;V{if(V===void 0||Array.isArray(V)===!1||V.length===0)return M===s&&k(!1),!0;const H=V.find(j=>j===!1||typeof j=="string");return M===s&&k(H!==void 0,H),H===void 0},V=>(M===s&&(console.error(V),k(!0)),!1)))}const x=Vn(B,0);return Ce(()=>{d!==void 0&&d(),x.cancel()}),Object.assign(n,{resetValidation:w,validate:B}),Ye(n,"hasError",()=>g.value),{isDirtyModel:i,hasRules:h,hasError:g,errorMessage:C,validate:B,resetValidation:w}}let ot=[],Rt=[];function $n(e){Rt=Rt.filter(t=>t!==e)}function Na(e){$n(e),Rt.push(e)}function Gl(e){$n(e),Rt.length===0&&ot.length!==0&&(ot[ot.length-1](),ot=[])}function nl(e){Rt.length===0?e():ot.push(e)}function ja(e){ot=ot.filter(t=>t!==e)}function Bt(e){return e!=null&&(""+e).length!==0}const Ka={...ze,...Da,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},al={...Ka,maxlength:[Number,String]},Fl=["update:modelValue","clear","focus","blur"];function Al({requiredForAttr:e=!0,tagProp:t,changeEvent:l=!1}={}){const{props:n,proxy:a}=de(),o=Ne(n,a.$q),i=Ia({required:e,getValue:()=>n.for});return{requiredForAttr:e,changeEvent:l,tag:t===!0?c(()=>n.tag):{value:"label"},isDark:o,editable:c(()=>n.disable!==!0&&n.readonly!==!0),innerLoading:K(!1),focused:K(!1),hasPopupOpen:!1,splitAttrs:Ha(),targetUid:i,rootRef:K(null),targetRef:K(null),controlRef:K(null)}}function $l(e){const{props:t,emit:l,slots:n,attrs:a,proxy:o}=de(),{$q:i}=o;let s=null;e.hasValue===void 0&&(e.hasValue=c(()=>Bt(t.modelValue))),e.emitValue===void 0&&(e.emitValue=E=>{l("update:modelValue",E)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:q,onFocusout:_}),Object.assign(e,{clearValue:F,onControlFocusin:q,onControlFocusout:_,focus:H}),e.computedCounter===void 0&&(e.computedCounter=c(()=>{if(t.counter!==!1){const E=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,N=t.maxlength!==void 0?t.maxlength:t.maxValues;return E+(N!==void 0?" / "+N:"")}}));const{isDirtyModel:d,hasRules:h,hasError:r,errorMessage:g,resetValidation:C}=za(e.focused,e.innerLoading),b=e.floatingLabel!==void 0?c(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):c(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),w=c(()=>t.bottomSlots===!0||t.hint!==void 0||h.value===!0||t.counter===!0||t.error!==null),B=c(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),x=c(()=>`q-field row no-wrap items-start q-field--${B.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(b.value===!0?" q-field--float":"")+(M.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":"")+(r.value===!0?" q-field--error":"")+(r.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&w.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),D=c(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(r.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}`:"")),M=c(()=>t.labelSlot===!0||t.label!==void 0),p=c(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&r.value!==!0?` text-${t.labelColor}`:"")),k=c(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:b.value,modelValue:t.modelValue,emitValue:e.emitValue})),R=c(()=>{const E={};return e.targetUid.value&&(E.for=e.targetUid.value),t.disable===!0&&(E["aria-disabled"]="true"),E});function V(){const E=document.activeElement;let N=e.targetRef!==void 0&&e.targetRef.value;N&&(E===null||E.id!==e.targetUid.value)&&(N.hasAttribute("tabindex")===!0||(N=N.querySelector("[tabindex]")),N&&N!==E&&N.focus({preventScroll:!0}))}function H(){nl(V)}function j(){ja(V);const E=document.activeElement;E!==null&&e.rootRef.value.contains(E)&&E.blur()}function q(E){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,l("focus",E))}function _(E,N){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,l("blur",E)),N!==void 0&&N())})}function F(E){Pe(E),i.platform.is.mobile!==!0?(e.targetRef!==void 0&&e.targetRef.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),l("update:modelValue",null),e.changeEvent===!0&&l("change",null),l("clear",t.modelValue),ge(()=>{const N=d.value;C(),d.value=N})}function y(E){[13,32].includes(E.keyCode)&&F(E)}function z(){const E=[];return n.prepend!==void 0&&E.push(v("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Oe},n.prepend())),E.push(v("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},W())),r.value===!0&&t.noErrorIcon===!1&&E.push(Q("error",[v(De,{name:i.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?E.push(Q("inner-loading-append",n.loading!==void 0?n.loading():[v(Ca,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&E.push(Q("inner-clearable-append",[v(De,{class:"q-field__focusable-action",name:t.clearIcon||i.iconSet.field.clear,tabindex:0,role:"button","aria-label":i.lang.label.clear,onKeyup:y,onClick:F})])),n.append!==void 0&&E.push(v("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Oe},n.append())),e.getInnerAppend!==void 0&&E.push(Q("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&E.push(e.getControlChild()),E}function W(){const E=[];return t.prefix!==void 0&&t.prefix!==null&&E.push(v("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&E.push(e.getShadowControl()),e.getControl!==void 0?E.push(e.getControl()):n.rawControl!==void 0?E.push(n.rawControl()):n.control!==void 0&&E.push(v("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},n.control(k.value))),M.value===!0&&E.push(v("div",{class:p.value},qe(n.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&E.push(v("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),E.concat(qe(n.default))}function ae(){let E,N;r.value===!0?g.value!==null?(E=[v("div",{role:"alert"},g.value)],N=`q--slot-error-${g.value}`):(E=qe(n.error),N="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(E=[v("div",t.hint)],N=`q--slot-hint-${t.hint}`):(E=qe(n.hint),N="q--slot-hint"));const te=t.counter===!0||n.counter!==void 0;if(t.hideBottomSpace===!0&&te===!1&&E===void 0)return;const m=v("div",{key:N,class:"q-field__messages col"},E);return v("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:Oe},[t.hideBottomSpace===!0?m:v(Ut,{name:"q-transition--field-message"},()=>m),te===!0?v("div",{class:"q-field__counter"},n.counter!==void 0?n.counter():e.computedCounter.value):null])}function Q(E,N){return N===null?null:v("div",{key:E,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},N)}let Z=!1;return Tt(()=>{Z=!0}),Rl(()=>{Z===!0&&t.autofocus===!0&&o.focus()}),t.autofocus===!0&&Ge(()=>{o.focus()}),Ce(()=>{s!==null&&clearTimeout(s)}),Object.assign(o,{focus:H,blur:j}),function(){const N=e.getControl===void 0&&n.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...R.value}:R.value;return v(e.tag.value,{ref:e.rootRef,class:[x.value,a.class],style:a.style,...N},[n.before!==void 0?v("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Oe},n.before()):null,v("div",{class:"q-field__inner relative-position col self-stretch"},[v("div",{ref:e.controlRef,class:D.value,tabindex:-1,...e.controlEvents},z()),w.value===!0?ae():null]),n.after!==void 0?v("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Oe},n.after()):null])}}const Jl={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Xt={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},In=Object.keys(Xt);In.forEach(e=>{Xt[e].regex=new RegExp(Xt[e].pattern)});const Qa=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+In.join("")+"])|(.)","g"),en=/[.*+?^${}()|[\]\\]/g,he=String.fromCharCode(1),Wa={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Ua(e,t,l,n){let a,o,i,s,d,h;const r=K(null),g=K(b());function C(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}le(()=>e.type+e.autogrow,B),le(()=>e.mask,q=>{if(q!==void 0)x(g.value,!0);else{const _=H(g.value);B(),e.modelValue!==_&&t("update:modelValue",_)}}),le(()=>e.fillMask+e.reverseFillMask,()=>{r.value===!0&&x(g.value,!0)}),le(()=>e.unmaskedValue,()=>{r.value===!0&&x(g.value)});function b(){if(B(),r.value===!0){const q=R(H(e.modelValue));return e.fillMask!==!1?j(q):q}return e.modelValue}function w(q){if(q0;z--)_+=he;F=F.slice(0,y)+_+F.slice(y)}return F}function B(){if(r.value=e.mask!==void 0&&e.mask.length!==0&&C(),r.value===!1){s=void 0,a="",o="";return}const q=Jl[e.mask]===void 0?e.mask:Jl[e.mask],_=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",F=_.replace(en,"\\$&"),y=[],z=[],W=[];let ae=e.reverseFillMask===!0,Q="",Z="";q.replace(Qa,(m,f,O,G,ne)=>{if(G!==void 0){const P=Xt[G];W.push(P),Z=P.negate,ae===!0&&(z.push("(?:"+Z+"+)?("+P.pattern+"+)?(?:"+Z+"+)?("+P.pattern+"+)?"),ae=!1),z.push("(?:"+Z+"+)?("+P.pattern+")?")}else if(O!==void 0)Q="\\"+(O==="\\"?"":O),W.push(O),y.push("([^"+Q+"]+)?"+Q+"?");else{const P=f!==void 0?f:ne;Q=P==="\\"?"\\\\\\\\":P.replace(en,"\\\\$&"),W.push(P),y.push("([^"+Q+"]+)?"+Q+"?")}});const E=new RegExp("^"+y.join("")+"("+(Q===""?".":"[^"+Q+"]")+"+)?"+(Q===""?"":"["+Q+"]*")+"$"),N=z.length-1,te=z.map((m,f)=>f===0&&e.reverseFillMask===!0?new RegExp("^"+F+"*"+m):f===N?new RegExp("^"+m+"("+(Z===""?".":Z)+"+)?"+(e.reverseFillMask===!0?"$":F+"*")):new RegExp("^"+m));i=W,s=m=>{const f=E.exec(e.reverseFillMask===!0?m:m.slice(0,W.length+1));f!==null&&(m=f.slice(1).join(""));const O=[],G=te.length;for(let ne=0,P=m;netypeof m=="string"?m:he).join(""),o=a.split(he).join(_)}function x(q,_,F){const y=n.value,z=y.selectionEnd,W=y.value.length-z,ae=H(q);_===!0&&B();const Q=R(ae),Z=e.fillMask!==!1?j(Q):Q,E=g.value!==Z;y.value!==Z&&(y.value=Z),E===!0&&(g.value=Z),document.activeElement===y&&ge(()=>{if(Z===o){const te=e.reverseFillMask===!0?o.length:0;y.setSelectionRange(te,te,"forward");return}if(F==="insertFromPaste"&&e.reverseFillMask!==!0){const te=y.selectionEnd;let m=z-1;for(let f=d;f<=m&&fQ.length?1:0:Math.max(0,Z.length-(Z===o?0:Math.min(Q.length,W)+1))+1:z;y.setSelectionRange(te,te,"forward");return}if(e.reverseFillMask===!0)if(E===!0){const te=Math.max(0,Z.length-(Z===o?0:Math.min(Q.length,W+1)));te===1&&z===1?y.setSelectionRange(te,te,"forward"):M.rightReverse(y,te)}else{const te=Z.length-W;y.setSelectionRange(te,te,"backward")}else if(E===!0){const te=Math.max(0,a.indexOf(he),Math.min(Q.length,z)-1);M.right(y,te)}else{const te=z-1;M.right(y,te)}});const N=e.unmaskedValue===!0?H(Z):Z;String(e.modelValue)!==N&&(e.modelValue!==null||N!=="")&&l(N,!0)}function D(q,_,F){const y=R(H(q.value));_=Math.max(0,a.indexOf(he),Math.min(y.length,_)),d=_,q.setSelectionRange(_,F,"forward")}const M={left(q,_){const F=a.slice(_-1).indexOf(he)===-1;let y=Math.max(0,_-1);for(;y>=0;y--)if(a[y]===he){_=y,F===!0&&_++;break}if(y<0&&a[_]!==void 0&&a[_]!==he)return M.right(q,0);_>=0&&q.setSelectionRange(_,_,"backward")},right(q,_){const F=q.value.length;let y=Math.min(F,_+1);for(;y<=F;y++)if(a[y]===he){_=y;break}else a[y-1]===he&&(_=y);if(y>F&&a[_-1]!==void 0&&a[_-1]!==he)return M.left(q,F);q.setSelectionRange(_,_,"forward")},leftReverse(q,_){const F=w(q.value.length);let y=Math.max(0,_-1);for(;y>=0;y--)if(F[y-1]===he){_=y;break}else if(F[y]===he&&(_=y,y===0))break;if(y<0&&F[_]!==void 0&&F[_]!==he)return M.rightReverse(q,0);_>=0&&q.setSelectionRange(_,_,"backward")},rightReverse(q,_){const F=q.value.length,y=w(F),z=y.slice(0,_+1).indexOf(he)===-1;let W=Math.min(F,_+1);for(;W<=F;W++)if(y[W-1]===he){_=W,_>0&&z===!0&&_--;break}if(W>F&&y[_-1]!==void 0&&y[_-1]!==he)return M.leftReverse(q,F);q.setSelectionRange(_,_,"forward")}};function p(q){t("click",q),h=void 0}function k(q){if(t("keydown",q),Pn(q)===!0||q.altKey===!0)return;const _=n.value,F=_.selectionStart,y=_.selectionEnd;if(q.shiftKey||(h=void 0),q.keyCode===37||q.keyCode===39){q.shiftKey&&h===void 0&&(h=_.selectionDirection==="forward"?F:y);const z=M[(q.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(q.preventDefault(),z(_,h===F?y:F),q.shiftKey){const W=_.selectionStart;_.setSelectionRange(Math.min(h,W),Math.max(h,W),"forward")}}else q.keyCode===8&&e.reverseFillMask!==!0&&F===y?(M.left(_,F),_.setSelectionRange(_.selectionStart,y,"backward")):q.keyCode===46&&e.reverseFillMask===!0&&F===y&&(M.rightReverse(_,y),_.setSelectionRange(F,_.selectionEnd,"forward"))}function R(q){if(q==null||q==="")return"";if(e.reverseFillMask===!0)return V(q);const _=i;let F=0,y="";for(let z=0;z<_.length;z++){const W=q[F],ae=_[z];if(typeof ae=="string")y+=ae,W===ae&&F++;else if(W!==void 0&&ae.regex.test(W))y+=ae.transform!==void 0?ae.transform(W):W,F++;else return y}return y}function V(q){const _=i,F=a.indexOf(he);let y=q.length-1,z="";for(let W=_.length-1;W>=0&&y!==-1;W--){const ae=_[W];let Q=q[y];if(typeof ae=="string")z=ae+z,Q===ae&&y--;else if(Q!==void 0&&ae.regex.test(Q))do z=(ae.transform!==void 0?ae.transform(Q):Q)+z,y--,Q=q[y];while(F===W&&Q!==void 0&&ae.regex.test(Q));else return z}return z}function H(q){return typeof q!="string"||s===void 0?typeof q=="number"?s(""+q):q:s(q)}function j(q){return o.length-q.length<=0?q:e.reverseFillMask===!0&&q.length!==0?o.slice(0,-q.length)+q:q+o.slice(q.length)}return{innerValue:g,hasMask:r,moveCursorForPaste:D,updateMaskValue:x,onMaskedKeydown:k,onMaskedClick:p}}const Il={name:String};function Za(e={}){return(t,l,n)=>{t[l](v("input",{class:"hidden"+(n||""),...e.value}))}}function Hn(e){return c(()=>e.name||e.for)}function Xa(e,t){function l(){const n=e.modelValue;try{const a="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(n)===n&&("length"in n?Array.from(n):[n]).forEach(o=>{a.items.add(o)}),{files:a.files}}catch{return{files:void 0}}}return t===!0?c(()=>{if(e.type==="file")return l()}):c(l)}const Ya=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Ga=/[\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,Ja=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,eo=/[a-z0-9_ -]$/i;function On(e){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,e(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(Le.is.firefox===!0?eo.test(l.data)===!1:Ya.test(l.data)===!0||Ga.test(l.data)===!0||Ja.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}var tn=be({name:"QInput",inheritAttrs:!1,props:{...al,...Wa,...Il,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Fl,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:l}){const{proxy:n}=de(),{$q:a}=n,o={};let i=NaN,s,d,h=null,r;const g=K(null),C=Hn(e),{innerValue:b,hasMask:w,moveCursorForPaste:B,updateMaskValue:x,onMaskedKeydown:D,onMaskedClick:M}=Ua(e,t,Q,g),p=Xa(e,!0),k=c(()=>Bt(b.value)),R=On(W),V=Al({changeEvent:!0}),H=c(()=>e.type==="textarea"||e.autogrow===!0),j=c(()=>H.value===!0||["text","search","url","tel","password"].includes(e.type)),q=c(()=>{const f={...V.splitAttrs.listeners.value,onInput:W,onPaste:z,onChange:E,onBlur:N,onFocus:Xe};return f.onCompositionstart=f.onCompositionupdate=f.onCompositionend=R,w.value===!0&&(f.onKeydown=D,f.onClick=M),e.autogrow===!0&&(f.onAnimationend=ae),f}),_=c(()=>{const f={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:C.value,...V.splitAttrs.attributes.value,id:V.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return H.value===!1&&(f.type=e.type),e.autogrow===!0&&(f.rows=1),f});le(()=>e.type,()=>{g.value&&(g.value.value=e.modelValue)}),le(()=>e.modelValue,f=>{if(w.value===!0){if(d===!0&&(d=!1,String(f)===i))return;x(f)}else b.value!==f&&(b.value=f,e.type==="number"&&o.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete o.value));e.autogrow===!0&&ge(Z)}),le(()=>e.autogrow,f=>{f===!0?ge(Z):g.value!==null&&l.rows>0&&(g.value.style.height="auto")}),le(()=>e.dense,()=>{e.autogrow===!0&&ge(Z)});function F(){nl(()=>{const f=document.activeElement;g.value!==null&&g.value!==f&&(f===null||f.id!==V.targetUid.value)&&g.value.focus({preventScroll:!0})})}function y(){g.value!==null&&g.value.select()}function z(f){if(w.value===!0&&e.reverseFillMask!==!0){const O=f.target;B(O,O.selectionStart,O.selectionEnd)}t("paste",f)}function W(f){if(!f||!f.target)return;if(e.type==="file"){t("update:modelValue",f.target.files);return}const O=f.target.value;if(f.target.qComposing===!0){o.value=O;return}if(w.value===!0)x(O,!1,f.inputType);else if(Q(O),j.value===!0&&f.target===document.activeElement){const{selectionStart:G,selectionEnd:ne}=f.target;G!==void 0&&ne!==void 0&&ge(()=>{f.target===document.activeElement&&O.indexOf(f.target.value)===0&&f.target.setSelectionRange(G,ne)})}e.autogrow===!0&&Z()}function ae(f){t("animationend",f),Z()}function Q(f,O){r=()=>{h=null,e.type!=="number"&&o.hasOwnProperty("value")===!0&&delete o.value,e.modelValue!==f&&i!==f&&(i=f,O===!0&&(d=!0),t("update:modelValue",f),ge(()=>{i===f&&(i=NaN)})),r=void 0},e.type==="number"&&(s=!0,o.value=f),e.debounce!==void 0?(h!==null&&clearTimeout(h),o.value=f,h=setTimeout(r,e.debounce)):r()}function Z(){requestAnimationFrame(()=>{const f=g.value;if(f!==null){const O=f.parentNode.style,{scrollTop:G}=f,{overflowY:ne,maxHeight:P}=a.platform.is.firefox===!0?{}:window.getComputedStyle(f),$=ne!==void 0&&ne!=="scroll";$===!0&&(f.style.overflowY="hidden"),O.marginBottom=f.scrollHeight-1+"px",f.style.height="1px",f.style.height=f.scrollHeight+"px",$===!0&&(f.style.overflowY=parseInt(P,10){g.value!==null&&(g.value.value=b.value!==void 0?b.value:"")})}function te(){return o.hasOwnProperty("value")===!0?o.value:b.value!==void 0?b.value:""}Ce(()=>{N()}),Ge(()=>{e.autogrow===!0&&Z()}),Object.assign(V,{innerValue:b,fieldClass:c(()=>`q-${H.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:c(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:g,emitValue:Q,hasValue:k,floatingLabel:c(()=>k.value===!0&&(e.type!=="number"||isNaN(b.value)===!1)||Bt(e.displayValue)),getControl:()=>v(H.value===!0?"textarea":"input",{ref:g,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,..._.value,...q.value,...e.type!=="file"?{value:te()}:p.value}),getShadowControl:()=>v("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(H.value===!0?"":" text-no-wrap")},[v("span",{class:"invisible"},te()),v("span",e.shadowText)])});const m=$l(V);return Object.assign(n,{focus:F,select:y,getNativeElement:()=>g.value}),Ye(n,"nativeEl",()=>g.value),m}}),to=be({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:l}){const n=de(),{proxy:{$q:a}}=n,o=i=>{l("click",i)};return()=>{if(e.props===void 0)return v("th",{class:e.autoWidth===!0?"q-table--col-auto-width":"",onClick:o},qe(t.default));let i,s;const d=n.vnode.key;if(d){if(i=e.props.colsMap[d],i===void 0)return}else i=e.props.col;if(i.sortable===!0){const r=i.align==="right"?"unshift":"push";s=Rn(t.default,[]),s[r](v(De,{class:i.__iconClass,name:a.iconSet.table.arrowUp}))}else s=qe(t.default);const h={class:i.__thClass+(e.autoWidth===!0?" q-table--col-auto-width":""),style:i.headerStyle,onClick:r=>{i.sortable===!0&&e.props.sort(i),o(r)}};return v("th",h,s)}}});const lo={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},hl={xs:2,sm:4,md:8,lg:16,xl:24};var no=be({name:"QSeparator",props:{...ze,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=de(),l=Ne(e,t.proxy.$q),n=c(()=>e.vertical===!0?"vertical":"horizontal"),a=c(()=>` q-separator--${n.value}`),o=c(()=>e.inset!==!1?`${a.value}-${lo[e.inset]}`:""),i=c(()=>`q-separator${a.value}${o.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(l.value===!0?" q-separator--dark":"")),s=c(()=>{const d={};if(e.size!==void 0&&(d[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const h=e.spaced===!0?`${hl.md}px`:e.spaced in hl?`${hl[e.spaced]}px`:e.spaced,r=e.vertical===!0?["Left","Right"]:["Top","Bottom"];d[`margin${r[0]}`]=d[`margin${r[1]}`]=h}return d});return()=>v("hr",{class:i.value,style:s.value,"aria-orientation":n.value})}}),ao=be({name:"QList",props:{...ze,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const l=de(),n=Ne(e,l.proxy.$q),a=c(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(n.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>v(e.tag,{class:a.value},qe(t.default))}});const oo=["horizontal","vertical","cell","none"];var io=be({name:"QMarkupTable",props:{...ze,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>oo.includes(e)}},setup(e,{slots:t}){const l=de(),n=Ne(e,l.proxy.$q),a=c(()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(n.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(e.dense===!0?" q-table--dense":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")+(e.square===!0?" q-table--square":"")+(e.wrapCells===!1?" q-table--no-wrap":""));return()=>v("div",{class:a.value},[v("table",{class:"q-table"},qe(t.default))])}});function Ln(e,t){return v("div",e,[v("table",{class:"q-table"},t)])}let Yt=!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,Yt=e.scrollLeft>=0,e.remove()}const He=1e3,ro=["start","center","end","start-force","center-force","end-force"],Dn=Array.prototype.filter,uo=window.getComputedStyle(document.body).overflowAnchor===void 0?ca:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const l=e.children||[];Dn.call(l,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const n=l[t];n&&n.dataset&&(n.dataset.qVsAnchor="")}))};function wt(e,t){return e+t}function bl(e,t,l,n,a,o,i,s){const d=e===window?document.scrollingElement||document.documentElement:e,h=a===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-i-s,scrollMaxSize:0,offsetStart:-i,offsetEnd:-s};if(a===!0?(e===window?(r.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,r.scrollViewSize+=document.documentElement.clientWidth):(r.scrollStart=d.scrollLeft,r.scrollViewSize+=d.clientWidth),r.scrollMaxSize=d.scrollWidth,o===!0&&(r.scrollStart=(Yt===!0?r.scrollMaxSize-r.scrollViewSize:0)-r.scrollStart)):(e===window?(r.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,r.scrollViewSize+=document.documentElement.clientHeight):(r.scrollStart=d.scrollTop,r.scrollViewSize+=d.clientHeight),r.scrollMaxSize=d.scrollHeight),l!==null)for(let g=l.previousElementSibling;g!==null;g=g.previousElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetStart+=g[h]);if(n!==null)for(let g=n.nextElementSibling;g!==null;g=g.nextElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetEnd+=g[h]);if(t!==e){const g=d.getBoundingClientRect(),C=t.getBoundingClientRect();a===!0?(r.offsetStart+=C.left-g.left,r.offsetEnd-=C.width):(r.offsetStart+=C.top-g.top,r.offsetEnd-=C.height),e!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function ln(e,t,l,n){t==="end"&&(t=(e===window?document.body:e)[l===!0?"scrollWidth":"scrollHeight"]),e===window?l===!0?(n===!0&&(t=(Yt===!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):l===!0?(n===!0&&(t=(Yt===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Ct(e,t,l,n){if(l>=n)return 0;const a=t.length,o=Math.floor(l/He),i=Math.floor((n-1)/He)+1;let s=e.slice(o,i).reduce(wt,0);return l%He!==0&&(s-=t.slice(o*He,l).reduce(wt,0)),n%He!==0&&n!==a&&(s-=t.slice(n,i*He).reduce(wt,0)),s}const zn={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]},Nn=Object.keys(zn),Vl={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...zn};function jn({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:l,virtualScrollItemSizeComputed:n}){const a=de(),{props:o,emit:i,proxy:s}=a,{$q:d}=s;let h,r,g,C=[],b;const w=K(0),B=K(0),x=K({}),D=K(null),M=K(null),p=K(null),k=K({from:0,to:0}),R=c(()=>o.tableColspan!==void 0?o.tableColspan:100);n===void 0&&(n=c(()=>o.virtualScrollItemSize));const V=c(()=>n.value+";"+o.virtualScrollHorizontal),H=c(()=>V.value+";"+o.virtualScrollSliceRatioBefore+";"+o.virtualScrollSliceRatioAfter);le(H,()=>{Q()}),le(V,j);function j(){ae(r,!0)}function q(m){ae(m===void 0?r:m)}function _(m,f){const O=t();if(O==null||O.nodeType===8)return;const G=bl(O,l(),D.value,M.value,o.virtualScrollHorizontal,d.lang.rtl,o.virtualScrollStickySizeStart,o.virtualScrollStickySizeEnd);g!==G.scrollViewSize&&Q(G.scrollViewSize),y(O,G,Math.min(e.value-1,Math.max(0,parseInt(m,10)||0)),0,ro.indexOf(f)!==-1?f:r!==-1&&m>r?"end":"start")}function F(){const m=t();if(m==null||m.nodeType===8)return;const f=bl(m,l(),D.value,M.value,o.virtualScrollHorizontal,d.lang.rtl,o.virtualScrollStickySizeStart,o.virtualScrollStickySizeEnd),O=e.value-1,G=f.scrollMaxSize-f.offsetStart-f.offsetEnd-B.value;if(h===f.scrollStart)return;if(f.scrollMaxSize<=0){y(m,f,0,0);return}g!==f.scrollViewSize&&Q(f.scrollViewSize),z(k.value.from);const ne=Math.floor(f.scrollMaxSize-Math.max(f.scrollViewSize,f.offsetEnd)-Math.min(b[O],f.scrollViewSize/2));if(ne>0&&Math.ceil(f.scrollStart)>=ne){y(m,f,O,f.scrollMaxSize-f.offsetEnd-C.reduce(wt,0));return}let P=0,$=f.scrollStart-f.offsetStart,oe=$;if($<=G&&$+f.scrollViewSize>=w.value)$-=w.value,P=k.value.from,oe=$;else for(let T=0;$>=C[T]&&P0&&P-f.scrollViewSize?(P++,oe=$):oe=b[P]+$;y(m,f,P,oe)}function y(m,f,O,G,ne){const P=typeof ne=="string"&&ne.indexOf("-force")!==-1,$=P===!0?ne.replace("-force",""):ne,oe=$!==void 0?$:"start";let T=Math.max(0,O-x.value[oe]),ce=T+x.value.total;ce>e.value&&(ce=e.value,T=Math.max(0,ce-x.value.total)),h=f.scrollStart;const xe=T!==k.value.from||ce!==k.value.to;if(xe===!1&&$===void 0){E(O);return}const{activeElement:je}=document,pe=p.value;xe===!0&&pe!==null&&pe!==je&&pe.contains(je)===!0&&(pe.addEventListener("focusout",W),setTimeout(()=>{pe!==null&&pe.removeEventListener("focusout",W)})),uo(pe,O-T);const Ke=$!==void 0?b.slice(T,O).reduce(wt,0):0;if(xe===!0){const Ee=ce>=k.value.from&&T<=k.value.to?k.value.to:ce;k.value={from:T,to:Ee},w.value=Ct(C,b,0,T),B.value=Ct(C,b,ce,e.value),requestAnimationFrame(()=>{k.value.to!==ce&&h===f.scrollStart&&(k.value={from:k.value.from,to:ce},B.value=Ct(C,b,ce,e.value))})}requestAnimationFrame(()=>{if(h!==f.scrollStart)return;xe===!0&&z(T);const Ee=b.slice(T,O).reduce(wt,0),Fe=Ee+f.offsetStart+w.value,Qe=Fe+b[O];let Je=Fe+G;if($!==void 0){const pt=Ee-Ke,et=f.scrollStart+pt;Je=P!==!0&&etT.classList&&T.classList.contains("q-virtual-scroll--skip")===!1),G=O.length,ne=o.virtualScrollHorizontal===!0?T=>T.getBoundingClientRect().width:T=>T.offsetHeight;let P=m,$,oe;for(let T=0;T=G;P--)b[P]=O;const ne=Math.floor((e.value-1)/He);C=[];for(let P=0;P<=ne;P++){let $=0;const oe=Math.min((P+1)*He,e.value);for(let T=P*He;T=0?(z(k.value.from),ge(()=>{_(m)})):N()}function Q(m){if(m===void 0&&typeof window!="undefined"){const $=t();$!=null&&$.nodeType!==8&&(m=bl($,l(),D.value,M.value,o.virtualScrollHorizontal,d.lang.rtl,o.virtualScrollStickySizeStart,o.virtualScrollStickySizeEnd).scrollViewSize)}g=m;const f=parseFloat(o.virtualScrollSliceRatioBefore)||0,O=parseFloat(o.virtualScrollSliceRatioAfter)||0,G=1+f+O,ne=m===void 0||m<=0?1:Math.ceil(m/n.value),P=Math.max(1,ne,Math.ceil((o.virtualScrollSliceSize>0?o.virtualScrollSliceSize:10)/G));x.value={total:Math.ceil(P*G),start:Math.ceil(P*f),center:Math.ceil(P*(.5+f)),end:Math.ceil(P*(1+f)),view:ne}}function Z(m,f){const O=o.virtualScrollHorizontal===!0?"width":"height",G={["--q-virtual-scroll-item-"+O]:n.value+"px"};return[m==="tbody"?v(m,{class:"q-virtual-scroll__padding",key:"before",ref:D},[v("tr",[v("td",{style:{[O]:`${w.value}px`,...G},colspan:R.value})])]):v(m,{class:"q-virtual-scroll__padding",key:"before",ref:D,style:{[O]:`${w.value}px`,...G}}),v(m,{class:"q-virtual-scroll__content",key:"content",ref:p,tabindex:-1},f.flat()),m==="tbody"?v(m,{class:"q-virtual-scroll__padding",key:"after",ref:M},[v("tr",[v("td",{style:{[O]:`${B.value}px`,...G},colspan:R.value})])]):v(m,{class:"q-virtual-scroll__padding",key:"after",ref:M,style:{[O]:`${B.value}px`,...G}})]}function E(m){r!==m&&(o.onVirtualScroll!==void 0&&i("virtualScroll",{index:m,from:k.value.from,to:k.value.to-1,direction:m{Q()});let te=!1;return Tt(()=>{te=!0}),Rl(()=>{if(te!==!0)return;const m=t();h!==void 0&&m!==void 0&&m!==null&&m.nodeType!==8?ln(m,h,o.virtualScrollHorizontal,d.lang.rtl):_(r)}),Ce(()=>{N.cancel()}),Object.assign(s,{scrollTo:_,reset:j,refresh:q}),{virtualScrollSliceRange:k,virtualScrollSliceSizeComputed:x,setVirtualScrollSize:Q,onVirtualScrollEvt:N,localResetVirtualScroll:ae,padVirtualScroll:Z,scrollTo:_,reset:j,refresh:q}}const so={list:ao,table:io},co=["list","table","__qtable"];var fo=be({name:"QVirtualScroll",props:{...Vl,type:{type:String,default:"list",validator:e=>co.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Fn},setup(e,{slots:t,attrs:l}){let n;const a=K(null),o=c(()=>e.itemsSize>=0&&e.itemsFn!==void 0?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0),{virtualScrollSliceRange:i,localResetVirtualScroll:s,padVirtualScroll:d,onVirtualScrollEvt:h}=jn({virtualScrollLength:o,getVirtualScrollTarget:w,getVirtualScrollEl:b}),r=c(()=>{if(o.value===0)return[];const M=(p,k)=>({index:i.value.from+k,item:p});return e.itemsFn===void 0?e.items.slice(i.value.from,i.value.to).map(M):e.itemsFn(i.value.from,i.value.to-i.value.from).map(M)}),g=c(()=>"q-virtual-scroll q-virtual-scroll"+(e.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(e.scrollTarget!==void 0?"":" scroll")),C=c(()=>e.scrollTarget!==void 0?{}:{tabindex:0});le(o,()=>{s()}),le(()=>e.scrollTarget,()=>{x(),B()});function b(){return a.value.$el||a.value}function w(){return n}function B(){n=An(b(),e.scrollTarget),n.addEventListener("scroll",h,Te.passive)}function x(){n!==void 0&&(n.removeEventListener("scroll",h,Te.passive),n=void 0)}function D(){let M=d(e.type==="list"?"div":"tbody",r.value.map(t.default));return t.before!==void 0&&(M=t.before().concat(M)),ll(t.after,M)}return Bl(()=>{s()}),Ge(()=>{B()}),Rl(()=>{B()}),Tt(()=>{x()}),Ce(()=>{x()}),()=>{if(t.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return e.type==="__qtable"?Ln({ref:a,class:"q-table__middle "+g.value},D()):v(so[e.type],{...l,ref:a,class:[l.class,g.value],...C.value},D)}}}),vo=be({name:"QField",inheritAttrs:!1,props:{...al,tag:{type:String,default:"label"}},emits:Fl,setup(){return $l(Al({tagProp:!0}))}});const mo={xs:8,sm:10,md:14,lg:20,xl:24};var go=be({name:"QChip",props:{...ze,...Tl,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:l}){const{proxy:{$q:n}}=de(),a=Ne(e,n),o=El(e,mo),i=c(()=>e.selected===!0||e.icon!==void 0),s=c(()=>e.selected===!0?e.iconSelected||n.iconSet.chip.selected:e.icon),d=c(()=>e.iconRemove||n.iconSet.chip.remove),h=c(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),r=c(()=>{const x=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}`:"")+(x?` text-${x} 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":"")+(h.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(a.value===!0?" q-chip--dark q-dark":"")}),g=c(()=>{const x=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},D={...x,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||n.lang.label.remove};return{chip:x,remove:D}});function C(x){x.keyCode===13&&b(x)}function b(x){e.disable||(l("update:selected",!e.selected),l("click",x))}function w(x){(x.keyCode===void 0||x.keyCode===13)&&(Pe(x),e.disable===!1&&(l("update:modelValue",!1),l("remove")))}function B(){const x=[];h.value===!0&&x.push(v("div",{class:"q-focus-helper"})),i.value===!0&&x.push(v(De,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const D=e.label!==void 0?[v("div",{class:"ellipsis"},[e.label])]:void 0;return x.push(v("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Va(t.default,D))),e.iconRight&&x.push(v(De,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&x.push(v(De,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:d.value,...g.value.remove,onClick:w,onKeyup:w})),x}return()=>{if(e.modelValue===!1)return;const x={class:r.value,style:o.value};return h.value===!0&&Object.assign(x,g.value.chip,{onClick:b,onKeyup:C}),qa("div",x,B(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Pa,e.ripple]])}}}),ho=be({name:"QItem",props:{...ze,...Ma,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:l}){const{proxy:{$q:n}}=de(),a=Ne(e,n),{hasLink:o,linkAttrs:i,linkClass:s,linkTag:d,navigateOnClick:h}=Ra(),r=K(null),g=K(null),C=c(()=>e.clickable===!0||o.value===!0||e.tag==="label"),b=c(()=>e.disable!==!0&&C.value===!0),w=c(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(a.value===!0?" q-item--dark":"")+(o.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(b.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":""):"")),B=c(()=>{if(e.insetLevel===void 0)return null;const p=n.lang.rtl===!0?"Right":"Left";return{["padding"+p]:16+e.insetLevel*56+"px"}});function x(p){b.value===!0&&(g.value!==null&&(p.qKeyEvent!==!0&&document.activeElement===r.value?g.value.focus():document.activeElement===g.value&&r.value.focus()),h(p))}function D(p){if(b.value===!0&&tl(p,[13,32])===!0){Pe(p),p.qKeyEvent=!0;const k=new MouseEvent("click",p);k.qKeyEvent=!0,r.value.dispatchEvent(k)}l("keyup",p)}function M(){const p=Rn(t.default,[]);return b.value===!0&&p.unshift(v("div",{class:"q-focus-helper",tabindex:-1,ref:g})),p}return()=>{const p={ref:r,class:w.value,style:B.value,role:"listitem",onClick:x,onKeyup:D};return b.value===!0?(p.tabindex=e.tabindex||"0",Object.assign(p,i.value)):C.value===!0&&(p["aria-disabled"]="true"),v(d.value,p,M())}}}),bo=be({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const l=c(()=>`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()=>v("div",{class:l.value},qe(t.default))}}),yo=be({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const l=c(()=>parseInt(e.lines,10)),n=c(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(l.value===1?" ellipsis":"")),a=c(()=>e.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>v("div",{style:a.value,class:n.value},qe(t.default))}});function So(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),da.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const wo={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},xo={...wo,contextMenu:Boolean};function po({showing:e,avoidEmit:t,configureAnchorEl:l}){const{props:n,proxy:a,emit:o}=de(),i=K(null);let s=null;function d(b){return i.value===null?!1:b===void 0||b.touches===void 0||b.touches.length<=1}const h={};l===void 0&&(Object.assign(h,{hide(b){a.hide(b)},toggle(b){a.toggle(b),b.qAnchorHandled=!0},toggleKey(b){tl(b,13)===!0&&h.toggle(b)},contextClick(b){a.hide(b),Oe(b),ge(()=>{a.show(b),b.qAnchorHandled=!0})},prevent:Oe,mobileTouch(b){if(h.mobileCleanup(b),d(b)!==!0)return;a.hide(b),i.value.classList.add("non-selectable");const w=b.target;zl(h,"anchor",[[w,"touchmove","mobileCleanup","passive"],[w,"touchend","mobileCleanup","passive"],[w,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,a.show(b),b.qAnchorHandled=!0},300)},mobileCleanup(b){i.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&b!==void 0&&So()}}),l=function(b=n.contextMenu){if(n.noParentEvent===!0||i.value===null)return;let w;b===!0?a.$q.platform.is.mobile===!0?w=[[i.value,"touchstart","mobileTouch","passive"]]:w=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:w=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],zl(h,"anchor",w)});function r(){fa(h,"anchor")}function g(b){for(i.value=b;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;l()}function C(){if(n.target===!1||n.target===""||a.$el.parentNode===null)i.value=null;else if(n.target===!0)g(a.$el.parentNode);else{let b=n.target;if(typeof n.target=="string")try{b=document.querySelector(n.target)}catch{b=void 0}b!=null?(i.value=b.$el||b,l()):(i.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return le(()=>n.contextMenu,b=>{i.value!==null&&(r(),l(b))}),le(()=>n.target,()=>{i.value!==null&&r(),C()}),le(()=>n.noParentEvent,b=>{i.value!==null&&(b===!0?r():l())}),Ge(()=>{C(),t!==!0&&n.modelValue===!0&&i.value===null&&o("update:modelValue",!1)}),Ce(()=>{s!==null&&clearTimeout(s),r()}),{anchorEl:i,canShow:d,anchorEvents:h}}function ko(e,t){const l=K(null);let n;function a(s,d){const h=`${d!==void 0?"add":"remove"}EventListener`,r=d!==void 0?d:n;s!==window&&s[h]("scroll",r,Te.passive),window[h]("scroll",r,Te.passive),n=d}function o(){l.value!==null&&(a(l.value),l.value=null)}const i=le(()=>e.noParentEvent,()=>{l.value!==null&&(o(),t())});return Ce(i),{localScrollTarget:l,unconfigureScrollTarget:o,changeScrollEvent:a}}const Kn={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Qn=["beforeShow","show","beforeHide","hide"];function Wn({showing:e,canShow:t,hideOnRouteChange:l,handleShow:n,handleHide:a,processOnMount:o}){const i=de(),{props:s,emit:d,proxy:h}=i;let r;function g(M){e.value===!0?w(M):C(M)}function C(M){if(s.disable===!0||M!==void 0&&M.qAnchorHandled===!0||t!==void 0&&t(M)!==!0)return;const p=s["onUpdate:modelValue"]!==void 0;p===!0&&(d("update:modelValue",!0),r=M,ge(()=>{r===M&&(r=void 0)})),(s.modelValue===null||p===!1)&&b(M)}function b(M){e.value!==!0&&(e.value=!0,d("beforeShow",M),n!==void 0?n(M):d("show",M))}function w(M){if(s.disable===!0)return;const p=s["onUpdate:modelValue"]!==void 0;p===!0&&(d("update:modelValue",!1),r=M,ge(()=>{r===M&&(r=void 0)})),(s.modelValue===null||p===!1)&&B(M)}function B(M){e.value!==!1&&(e.value=!1,d("beforeHide",M),a!==void 0?a(M):d("hide",M))}function x(M){s.disable===!0&&M===!0?s["onUpdate:modelValue"]!==void 0&&d("update:modelValue",!1):M===!0!==e.value&&(M===!0?b:B)(r)}le(()=>s.modelValue,x),l!==void 0&&Bn(i)===!0&&le(()=>h.$route.fullPath,()=>{l.value===!0&&e.value===!0&&w()}),o===!0&&Ge(()=>{x(s.modelValue)});const D={show:C,hide:w,toggle:g};return Object.assign(h,D),D}let _o=1,Co=document.body;function qo(e,t){const l=document.createElement("div");if(l.id=t!==void 0?`q-portal--${t}--${_o++}`:e,Nl.globalNodes!==void 0){const n=Nl.globalNodes.class;n!==void 0&&(l.className=n)}return Co.appendChild(l),l}function Vo(e){e.remove()}const Mt=[];function Po(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return vl(e)}else if(e.__qPortal===!0){const l=vl(e);return l!==void 0&&l.$options.name==="QPopupProxy"?(e.hide(t),l):e}e=vl(e)}while(e!=null)}const Mo=be({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Ro(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 Un(e,t,l,n){const a=K(!1),o=K(!1);let i=null;const s={},d=n==="dialog"&&Ro(e);function h(g){if(g===!0){Gl(s),o.value=!0;return}o.value=!1,a.value===!1&&(d===!1&&i===null&&(i=qo(!1,n)),a.value=!0,Mt.push(e.proxy),Na(s))}function r(g){if(o.value=!1,g!==!0)return;Gl(s),a.value=!1;const C=Mt.indexOf(e.proxy);C!==-1&&Mt.splice(C,1),i!==null&&(Vo(i),i=null)}return va(()=>{r(!0)}),e.proxy.__qPortal=!0,Ye(e.proxy,"contentEl",()=>t.value),{showPortal:h,hidePortal:r,portalIsActive:a,portalIsAccessible:o,renderPortal:()=>d===!0?l():a.value===!0?[v(ma,{to:i},v(Mo,l))]:void 0}}const Zn={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Xn(e,t=()=>{},l=()=>{}){return{transitionProps:c(()=>{const n=`q-transition--${e.transitionShow||t()}`,a=`q-transition--${e.transitionHide||l()}`;return{appear:!0,enterFromClass:`${n}-enter-from`,enterActiveClass:`${n}-enter-active`,enterToClass:`${n}-enter-to`,leaveFromClass:`${a}-leave-from`,leaveActiveClass:`${a}-leave-active`,leaveToClass:`${a}-leave-to`}}),transitionStyle:c(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Yn(){let e;const t=de();function l(){e=void 0}return Tt(l),Ce(l),{removeTick:l,registerTick(n){e=n,ge(()=>{e===n&&(Tn(t)===!1&&e(),e=void 0)})}}}function Gn(){let e=null;const t=de();function l(){e!==null&&(clearTimeout(e),e=null)}return Tt(l),Ce(l),{removeTimeout:l,registerTimeout(n,a){l(),Tn(t)===!1&&(e=setTimeout(()=>{e=null,n()},a))}}}const it=[];let xt;function Bo(e){xt=e.keyCode===27}function To(){xt===!0&&(xt=!1)}function Eo(e){xt===!0&&(xt=!1,tl(e,27)===!0&&it[it.length-1](e))}function Jn(e){window[e]("keydown",Bo),window[e]("blur",To),window[e]("keyup",Eo),xt=!1}function ea(e){Le.is.desktop===!0&&(it.push(e),it.length===1&&Jn("addEventListener"))}function Gt(e){const t=it.indexOf(e);t!==-1&&(it.splice(t,1),it.length===0&&Jn("removeEventListener"))}const rt=[];function ta(e){rt[rt.length-1](e)}function la(e){Le.is.desktop===!0&&(rt.push(e),rt.length===1&&document.body.addEventListener("focusin",ta))}function Pl(e){const t=rt.indexOf(e);t!==-1&&(rt.splice(t,1),rt.length===0&&document.body.removeEventListener("focusin",ta))}const{notPassiveCapture:Jt}=Te,ut=[];function el(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let l=Mt.length-1;for(;l>=0;){const n=Mt[l].$;if(n.type.name==="QTooltip"){l--;continue}if(n.type.name!=="QDialog")break;if(n.props.seamless!==!0)return;l--}for(let n=ut.length-1;n>=0;n--){const a=ut[n];if((a.anchorEl.value===null||a.anchorEl.value.contains(t)===!1)&&(t===document.body||a.innerRef.value!==null&&a.innerRef.value.contains(t)===!1))e.qClickOutside=!0,a.onClickOutside(e);else return}}function Fo(e){ut.push(e),ut.length===1&&(document.addEventListener("mousedown",el,Jt),document.addEventListener("touchstart",el,Jt))}function nn(e){const t=ut.findIndex(l=>l===e);t!==-1&&(ut.splice(t,1),ut.length===0&&(document.removeEventListener("mousedown",el,Jt),document.removeEventListener("touchstart",el,Jt)))}let an,on;function rn(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 Ao(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Ml={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Ml[`${e}#ltr`]=e,Ml[`${e}#rtl`]=e});function un(e,t){const l=e.split(" ");return{vertical:l[0],horizontal:Ml[`${l[1]}#${t===!0?"rtl":"ltr"}`]}}function $o(e,t){let{top:l,left:n,right:a,bottom:o,width:i,height:s}=e.getBoundingClientRect();return t!==void 0&&(l-=t[1],n-=t[0],o+=t[1],a+=t[0],i+=t[0],s+=t[1]),{top:l,bottom:o,height:s,left:n,right:a,width:i,middle:n+(a-n)/2,center:l+(o-l)/2}}function Io(e,t,l){let{top:n,left:a}=e.getBoundingClientRect();return n+=t.top,a+=t.left,l!==void 0&&(n+=l[1],a+=l[0]),{top:n,bottom:n+1,height:1,left:a,right:a+1,width:1,middle:a,center:n}}function Ho(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function sn(e,t,l,n){return{top:e[l.vertical]-t[n.vertical],left:e[l.horizontal]-t[n.horizontal]}}function na(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{na(e,t+1)},10);return}const{targetEl:l,offset:n,anchorEl:a,anchorOrigin:o,selfOrigin:i,absoluteOffset:s,fit:d,cover:h,maxHeight:r,maxWidth:g}=e;if(Le.is.ios===!0&&window.visualViewport!==void 0){const V=document.body.style,{offsetLeft:H,offsetTop:j}=window.visualViewport;H!==an&&(V.setProperty("--q-pe-left",H+"px"),an=H),j!==on&&(V.setProperty("--q-pe-top",j+"px"),on=j)}const{scrollLeft:C,scrollTop:b}=l,w=s===void 0?$o(a,h===!0?[0,0]:n):Io(a,s,n);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:g||"100vw",maxHeight:r||"100vh",visibility:"visible"});const{offsetWidth:B,offsetHeight:x}=l,{elWidth:D,elHeight:M}=d===!0||h===!0?{elWidth:Math.max(w.width,B),elHeight:h===!0?Math.max(w.height,x):x}:{elWidth:B,elHeight:x};let p={maxWidth:g,maxHeight:r};(d===!0||h===!0)&&(p.minWidth=w.width+"px",h===!0&&(p.minHeight=w.height+"px")),Object.assign(l.style,p);const k=Ho(D,M);let R=sn(w,k,o,i);if(s===void 0||n===void 0)yl(R,w,k,o,i);else{const{top:V,left:H}=R;yl(R,w,k,o,i);let j=!1;if(R.top!==V){j=!0;const q=2*n[1];w.center=w.top-=q,w.bottom-=q+2}if(R.left!==H){j=!0;const q=2*n[0];w.middle=w.left-=q,w.right-=q+2}j===!0&&(R=sn(w,k,o,i),yl(R,w,k,o,i))}p={top:R.top+"px",left:R.left+"px"},R.maxHeight!==void 0&&(p.maxHeight=R.maxHeight+"px",w.height>R.maxHeight&&(p.minHeight=p.maxHeight)),R.maxWidth!==void 0&&(p.maxWidth=R.maxWidth+"px",w.width>R.maxWidth&&(p.minWidth=p.maxWidth)),Object.assign(l.style,p),l.scrollTop!==b&&(l.scrollTop=b),l.scrollLeft!==C&&(l.scrollLeft=C)}function yl(e,t,l,n,a){const o=l.bottom,i=l.right,s=Ba(),d=window.innerHeight-s,h=document.body.clientWidth;if(e.top<0||e.top+o>d)if(a.vertical==="center")e.top=t[n.vertical]>d/2?Math.max(0,d-o):0,e.maxHeight=Math.min(o,d);else if(t[n.vertical]>d/2){const r=Math.min(d,n.vertical==="center"?t.center:n.vertical===a.vertical?t.bottom:t.top);e.maxHeight=Math.min(o,r),e.top=Math.max(0,r-o)}else e.top=Math.max(0,n.vertical==="center"?t.center:n.vertical===a.vertical?t.top:t.bottom),e.maxHeight=Math.min(o,d-e.top);if(e.left<0||e.left+i>h)if(e.maxWidth=Math.min(i,h),a.horizontal==="middle")e.left=t[n.horizontal]>h/2?Math.max(0,h-i):0;else if(t[n.horizontal]>h/2){const r=Math.min(h,n.horizontal==="middle"?t.middle:n.horizontal===a.horizontal?t.right:t.left);e.maxWidth=Math.min(i,r),e.left=Math.max(0,r-e.maxWidth)}else e.left=Math.max(0,n.horizontal==="middle"?t.middle:n.horizontal===a.horizontal?t.left:t.right),e.maxWidth=Math.min(i,h-e.left)}var Oo=be({name:"QMenu",inheritAttrs:!1,props:{...xo,...Kn,...ze,...Zn,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:rn},self:{type:String,validator:rn},offset:{type:Array,validator:Ao},scrollTarget:Fn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Qn,"click","escapeKey"],setup(e,{slots:t,emit:l,attrs:n}){let a=null,o,i,s;const d=de(),{proxy:h}=d,{$q:r}=h,g=K(null),C=K(!1),b=c(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),w=Ne(e,r),{registerTick:B,removeTick:x}=Yn(),{registerTimeout:D}=Gn(),{transitionProps:M,transitionStyle:p}=Xn(e),{localScrollTarget:k,changeScrollEvent:R,unconfigureScrollTarget:V}=ko(e,O),{anchorEl:H,canShow:j}=po({showing:C}),{hide:q}=Wn({showing:C,canShow:j,handleShow:te,handleHide:m,hideOnRouteChange:b,processOnMount:!0}),{showPortal:_,hidePortal:F,renderPortal:y}=Un(d,g,oe,"menu"),z={anchorEl:H,innerRef:g,onClickOutside(T){if(e.persistent!==!0&&C.value===!0)return q(T),(T.type==="touchstart"||T.target.classList.contains("q-dialog__backdrop"))&&Pe(T),!0}},W=c(()=>un(e.anchor||(e.cover===!0?"center middle":"bottom start"),r.lang.rtl)),ae=c(()=>e.cover===!0?W.value:un(e.self||"top start",r.lang.rtl)),Q=c(()=>(e.square===!0?" q-menu--square":"")+(w.value===!0?" q-menu--dark q-dark":"")),Z=c(()=>e.autoClose===!0?{onClick:G}:{}),E=c(()=>C.value===!0&&e.persistent!==!0);le(E,T=>{T===!0?(ea(P),Fo(z)):(Gt(P),nn(z))});function N(){nl(()=>{let T=g.value;T&&T.contains(document.activeElement)!==!0&&(T=T.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||T.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||T.querySelector("[autofocus], [data-autofocus]")||T,T.focus({preventScroll:!0}))})}function te(T){if(a=e.noRefocus===!1?document.activeElement:null,la(ne),_(),O(),o=void 0,T!==void 0&&(e.touchPosition||e.contextMenu)){const ce=ga(T);if(ce.left!==void 0){const{top:xe,left:je}=H.value.getBoundingClientRect();o={left:ce.left-je,top:ce.top-xe}}}i===void 0&&(i=le(()=>r.screen.width+"|"+r.screen.height+"|"+e.self+"|"+e.anchor+"|"+r.lang.rtl,$)),e.noFocus!==!0&&document.activeElement.blur(),B(()=>{$(),e.noFocus!==!0&&N()}),D(()=>{r.platform.is.ios===!0&&(s=e.autoClose,g.value.click()),$(),_(!0),l("show",T)},e.transitionDuration)}function m(T){x(),F(),f(!0),a!==null&&(T===void 0||T.qClickOutside!==!0)&&(((T&&T.type.indexOf("key")===0?a.closest('[tabindex]:not([tabindex^="-"])'):void 0)||a).focus(),a=null),D(()=>{F(!0),l("hide",T)},e.transitionDuration)}function f(T){o=void 0,i!==void 0&&(i(),i=void 0),(T===!0||C.value===!0)&&(Pl(ne),V(),nn(z),Gt(P)),T!==!0&&(a=null)}function O(){(H.value!==null||e.scrollTarget!==void 0)&&(k.value=An(H.value,e.scrollTarget),R(k.value,$))}function G(T){s!==!0?(Po(h,T),l("click",T)):s=!1}function ne(T){E.value===!0&&e.noFocus!==!0&&En(g.value,T.target)!==!0&&N()}function P(T){l("escapeKey"),q(T)}function $(){na({targetEl:g.value,offset:e.offset,anchorEl:H.value,anchorOrigin:W.value,selfOrigin:ae.value,absoluteOffset:o,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function oe(){return v(Ut,M.value,()=>C.value===!0?v("div",{role:"menu",...n,ref:g,tabindex:-1,class:["q-menu q-position-engine scroll"+Q.value,n.class],style:[n.style,p.value],...Z.value},qe(t.default)):null)}return Ce(f),Object.assign(h,{focus:N,updatePosition:$}),y}});function Lo(e,t,l){let n;function a(){n!==void 0&&(Zt.remove(n),n=void 0)}return Ce(()=>{e.value===!0&&a()}),{removeFromHistory:a,addToHistory(){n={condition:()=>l.value===!0,handler:t},Zt.add(n)}}}let qt=0,Sl,wl,Pt,xl=!1,cn,dn,fn,at=null;function Do(e){zo(e)&&Pe(e)}function zo(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=ha(e),l=e.shiftKey&&!e.deltaX,n=!l&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=l||n?e.deltaY:e.deltaX;for(let o=0;o0&&i.scrollTop+i.clientHeight===i.scrollHeight:a<0&&i.scrollLeft===0?!0:a>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function vn(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Kt(e){xl!==!0&&(xl=!0,requestAnimationFrame(()=>{xl=!1;const{height:t}=e.target,{clientHeight:l,scrollTop:n}=document.scrollingElement;(Pt===void 0||t!==window.innerHeight)&&(Pt=l-t,document.scrollingElement.scrollTop=n),n>Pt&&(document.scrollingElement.scrollTop-=Math.ceil((n-Pt)/8))}))}function mn(e){const t=document.body,l=window.visualViewport!==void 0;if(e==="add"){const{overflowY:n,overflowX:a}=window.getComputedStyle(t);Sl=Ta(window),wl=Ea(window),cn=t.style.left,dn=t.style.top,fn=window.location.href,t.style.left=`-${Sl}px`,t.style.top=`-${wl}px`,a!=="hidden"&&(a==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),n!=="hidden"&&(n==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Le.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Kt,Te.passiveCapture),window.visualViewport.addEventListener("scroll",Kt,Te.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",vn,Te.passiveCapture))}Le.is.desktop===!0&&Le.is.mac===!0&&window[`${e}EventListener`]("wheel",Do,Te.notPassive),e==="remove"&&(Le.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",Kt,Te.passiveCapture),window.visualViewport.removeEventListener("scroll",Kt,Te.passiveCapture)):window.removeEventListener("scroll",vn,Te.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=cn,t.style.top=dn,window.location.href===fn&&window.scrollTo(Sl,wl),Pt=void 0)}function No(e){let t="add";if(e===!0){if(qt++,at!==null){clearTimeout(at),at=null;return}if(qt>1)return}else{if(qt===0||(qt--,qt>0))return;if(t="remove",Le.is.ios===!0&&Le.is.nativeMobile===!0){at!==null&&clearTimeout(at),at=setTimeout(()=>{mn(t),at=null},100);return}}mn(t)}function jo(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,No(t))}}}let Qt=0;const Ko={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"},gn={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]};var Qo=be({name:"QDialog",inheritAttrs:!1,props:{...Kn,...Zn,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:[...Qn,"shake","click","escapeKey"],setup(e,{slots:t,emit:l,attrs:n}){const a=de(),o=K(null),i=K(!1),s=K(!1);let d=null,h=null,r,g;const C=c(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:b}=jo(),{registerTimeout:w}=Gn(),{registerTick:B,removeTick:x}=Yn(),{transitionProps:D,transitionStyle:M}=Xn(e,()=>gn[e.position][0],()=>gn[e.position][1]),p=c(()=>M.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:k,hidePortal:R,portalIsAccessible:V,renderPortal:H}=Un(a,o,ne,"dialog"),{hide:j}=Wn({showing:i,hideOnRouteChange:C,handleShow:ae,handleHide:Q,processOnMount:!0}),{addToHistory:q,removeFromHistory:_}=Lo(i,j,C),F=c(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${Ko[e.position]}`+(s.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":"")),y=c(()=>i.value===!0&&e.seamless!==!0),z=c(()=>e.autoClose===!0?{onClick:f}:{}),W=c(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${y.value===!0?"modal":"seamless"}`,n.class]);le(()=>e.maximized,P=>{i.value===!0&&m(P)}),le(y,P=>{b(P),P===!0?(la(G),ea(N)):(Pl(G),Gt(N))});function ae(P){q(),h=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,m(e.maximized),k(),s.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),B(Z)):x(),w(()=>{if(a.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:$,bottom:oe}=document.activeElement.getBoundingClientRect(),{innerHeight:T}=window,ce=window.visualViewport!==void 0?window.visualViewport.height:T;$>0&&oe>ce/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-ce,oe>=T?1/0:Math.ceil(document.scrollingElement.scrollTop+oe-ce/2))),document.activeElement.scrollIntoView()}g=!0,o.value.click(),g=!1}k(!0),s.value=!1,l("show",P)},e.transitionDuration)}function Q(P){x(),_(),te(!0),s.value=!0,R(),h!==null&&(((P&&P.type.indexOf("key")===0?h.closest('[tabindex]:not([tabindex^="-"])'):void 0)||h).focus(),h=null),w(()=>{R(!0),s.value=!1,l("hide",P)},e.transitionDuration)}function Z(P){nl(()=>{let $=o.value;if($!==null){if(P!==void 0){const oe=$.querySelector(P);if(oe!==null){oe.focus({preventScroll:!0});return}}$.contains(document.activeElement)!==!0&&($=$.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||$.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||$.querySelector("[autofocus], [data-autofocus]")||$,$.focus({preventScroll:!0}))}})}function E(P){P&&typeof P.focus=="function"?P.focus({preventScroll:!0}):Z(),l("shake");const $=o.value;$!==null&&($.classList.remove("q-animate--scale"),$.classList.add("q-animate--scale"),d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,o.value!==null&&($.classList.remove("q-animate--scale"),Z())},170))}function N(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&E():(l("escapeKey"),j()))}function te(P){d!==null&&(clearTimeout(d),d=null),(P===!0||i.value===!0)&&(m(!1),e.seamless!==!0&&(b(!1),Pl(G),Gt(N))),P!==!0&&(h=null)}function m(P){P===!0?r!==!0&&(Qt<1&&document.body.classList.add("q-body--dialog"),Qt++,r=!0):r===!0&&(Qt<2&&document.body.classList.remove("q-body--dialog"),Qt--,r=!1)}function f(P){g!==!0&&(j(P),l("click",P))}function O(P){e.persistent!==!0&&e.noBackdropDismiss!==!0?j(P):e.noShake!==!0&&E()}function G(P){e.allowFocusOutside!==!0&&V.value===!0&&En(o.value,P.target)!==!0&&Z('[tabindex]:not([tabindex="-1"])')}Object.assign(a.proxy,{focus:Z,shake:E,__updateRefocusTarget(P){h=P||null}}),Ce(te);function ne(){return v("div",{role:"dialog","aria-modal":y.value===!0?"true":"false",...n,class:W.value},[v(Ut,{name:"q-transition--fade",appear:!0},()=>y.value===!0?v("div",{class:"q-dialog__backdrop fixed-full",style:p.value,"aria-hidden":"true",tabindex:-1,onClick:O}):null),v(Ut,D.value,()=>i.value===!0?v("div",{ref:o,class:F.value,style:M.value,tabindex:-1,...z.value},qe(t.default)):null)])}return H}});function hn(e,t,l){if(l<=t)return t;const n=l-t+1;let a=t+(e-t)%n;return a["add","add-unique","toggle"].includes(e),Wo=".*+?^${}()|[]\\",Uo=Object.keys(al);var Zo=be({name:"QSelect",inheritAttrs:!1,props:{...Vl,...Il,...al,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:bn},mapOptions:Boolean,emitValue: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:Vl.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Fl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:l}){const{proxy:n}=de(),{$q:a}=n,o=K(!1),i=K(!1),s=K(-1),d=K(""),h=K(!1),r=K(!1);let g=null,C=null,b,w,B,x=null,D,M,p,k;const R=K(null),V=K(null),H=K(null),j=K(null),q=K(null),_=Hn(e),F=On(L),y=c(()=>Array.isArray(e.options)?e.options.length:0),z=c(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:W,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:Q,padVirtualScroll:Z,onVirtualScrollEvt:E,scrollTo:N,setVirtualScrollSize:te}=jn({virtualScrollLength:y,getVirtualScrollTarget:rl,getVirtualScrollEl:Ht,virtualScrollItemSizeComputed:z}),m=Al(),f=c(()=>{const u=e.mapOptions===!0&&e.multiple!==!0,I=e.modelValue!==void 0&&(e.modelValue!==null||u===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const A=e.mapOptions===!0&&b!==void 0?b:[],J=I.map(se=>il(se,A));return e.modelValue===null&&u===!0?J.filter(se=>se!==null):J}return I}),O=c(()=>{const u={};return Uo.forEach(I=>{const A=e[I];A!==void 0&&(u[I]=A)}),u}),G=c(()=>e.optionsDark===null?m.isDark.value:e.optionsDark),ne=c(()=>Bt(f.value)),P=c(()=>{let u="q-field__input q-placeholder col";return e.hideSelected===!0||f.value.length===0?[u,e.inputClass]:(u+=" q-field__input--padding",e.inputClass===void 0?u:[u,e.inputClass])}),$=c(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),oe=c(()=>y.value===0),T=c(()=>f.value.map(u=>ke.value(u)).join(", ")),ce=c(()=>e.displayValue!==void 0?e.displayValue:T.value),xe=c(()=>e.optionsHtml===!0?()=>!0:u=>u!=null&&u.html===!0),je=c(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||f.value.some(xe.value))),pe=c(()=>m.focused.value===!0?e.tabindex:-1),Ke=c(()=>{const u={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":o.value===!0?"true":"false","aria-controls":`${m.targetUid.value}_lb`};return s.value>=0&&(u["aria-activedescendant"]=`${m.targetUid.value}_${s.value}`),u}),Ee=c(()=>({id:`${m.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),Fe=c(()=>f.value.map((u,I)=>({index:I,opt:u,html:xe.value(u),selected:!0,removeAtIndex:ol,toggleOption:Ae,tabindex:pe.value}))),Qe=c(()=>{if(y.value===0)return[];const{from:u,to:I}=W.value;return e.options.slice(u,I).map((A,J)=>{const se=We.value(A)===!0,ue=dt(A)===!0,ye=u+J,me={clickable:!0,active:ue,activeClass:et.value,manualFocus:!0,focused:!1,disable:se,tabindex:-1,dense:e.optionsDense,dark:G.value,role:"option","aria-selected":ue===!0?"true":"false",id:`${m.targetUid.value}_${ye}`,onClick:()=>{Ae(A)}};return se!==!0&&(s.value===ye&&(me.focused=!0),a.platform.is.desktop===!0&&(me.onMousemove=()=>{o.value===!0&&Ve(ye)})),{index:ye,opt:A,html:xe.value(A),label:ke.value(A),selected:me.active,focused:me.focused,toggleOption:Ae,setOptionIndex:Ve,itemProps:me}})}),Je=c(()=>e.dropdownIcon!==void 0?e.dropdownIcon:a.iconSet.arrow.dropdown),pt=c(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),et=c(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),Re=c(()=>ct(e.optionValue,"value")),ke=c(()=>ct(e.optionLabel,"label")),We=c(()=>ct(e.optionDisable,"disable")),tt=c(()=>f.value.map(u=>Re.value(u))),Et=c(()=>{const u={onInput:L,onChange:F,onKeydown:It,onKeyup:kt,onKeypress:lt,onFocus:$t,onClick(I){w===!0&&Xe(I)}};return u.onCompositionstart=u.onCompositionupdate=u.onCompositionend=F,u});le(f,u=>{b=u,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&m.innerLoading.value!==!0&&(i.value!==!0&&o.value!==!0||ne.value!==!0)&&(B!==!0&&bt(),(i.value===!0||o.value===!0)&&ee(""))},{immediate:!0}),le(()=>e.fillInput,bt),le(o,cl),le(y,ra);function Ft(u){return e.emitValue===!0?Re.value(u):u}function st(u){if(u!==-1&&u=e.maxValues)return;const J=e.modelValue.slice();l("add",{index:J.length,value:A}),J.push(A),l("update:modelValue",J)}function Ae(u,I){if(m.editable.value!==!0||u===void 0||We.value(u)===!0)return;const A=Re.value(u);if(e.multiple!==!0){I!==!0&&(X(e.fillInput===!0?ke.value(u):"",!0,!0),nt()),V.value!==null&&V.value.focus(),(f.value.length===0||_t(Re.value(f.value[0]),A)!==!0)&&l("update:modelValue",e.emitValue===!0?A:u);return}if((w!==!0||h.value===!0)&&m.focus(),$t(),f.value.length===0){const ue=e.emitValue===!0?A:u;l("add",{index:0,value:ue}),l("update:modelValue",e.multiple===!0?[ue]:ue);return}const J=e.modelValue.slice(),se=tt.value.findIndex(ue=>_t(ue,A));if(se!==-1)l("remove",{index:se,value:J.splice(se,1)[0]});else{if(e.maxValues!==void 0&&J.length>=e.maxValues)return;const ue=e.emitValue===!0?A:u;l("add",{index:J.length,value:ue}),J.push(ue)}l("update:modelValue",J)}function Ve(u){if(a.platform.is.desktop!==!0)return;const I=u!==-1&&u=0?ke.value(e.options[A]):D,!0))}}function il(u,I){const A=J=>_t(Re.value(J),u);return e.options.find(A)||I.find(A)||u}function ct(u,I){const A=u!==void 0?u:I;return typeof A=="function"?A:J=>J!==null&&typeof J=="object"&&A in J?J[A]:J}function dt(u){const I=Re.value(u);return tt.value.find(A=>_t(A,I))!==void 0}function $t(u){e.useInput===!0&&V.value!==null&&(u===void 0||V.value===u.target&&u.target.value===T.value)&&V.value.select()}function ft(u){tl(u,27)===!0&&o.value===!0&&(Xe(u),nt(),bt()),l("keyup",u)}function kt(u){const{value:I}=u.target;if(u.keyCode!==void 0){ft(u);return}if(u.target.value="",g!==null&&(clearTimeout(g),g=null),C!==null&&(clearTimeout(C),C=null),bt(),typeof I=="string"&&I.length!==0){const A=I.toLocaleLowerCase(),J=ue=>{const ye=e.options.find(me=>ue.value(me).toLocaleLowerCase()===A);return ye===void 0?!1:(f.value.indexOf(ye)===-1?Ae(ye):nt(),!0)},se=ue=>{J(Re)!==!0&&(J(ke)===!0||ue===!0||ee(I,!0,()=>se(!0)))};se()}else m.clearValue(u)}function lt(u){l("keypress",u)}function It(u){if(l("keydown",u),Pn(u)===!0)return;const I=d.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),A=u.shiftKey!==!0&&e.multiple!==!0&&(s.value!==-1||I===!0);if(u.keyCode===27){Oe(u);return}if(u.keyCode===9&&A===!1){gt();return}if(u.target===void 0||u.target.id!==m.targetUid.value||m.editable.value!==!0)return;if(u.keyCode===40&&m.innerLoading.value!==!0&&o.value===!1){Pe(u),ht();return}if(u.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&d.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?st(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&l("update:modelValue",null);return}(u.keyCode===35||u.keyCode===36)&&(typeof d.value!="string"||d.value.length===0)&&(Pe(u),s.value=-1,$e(u.keyCode===36?1:-1,e.multiple)),(u.keyCode===33||u.keyCode===34)&&ae.value!==void 0&&(Pe(u),s.value=Math.max(-1,Math.min(y.value,s.value+(u.keyCode===33?-1:1)*ae.value.view)),$e(u.keyCode===33?1:-1,e.multiple)),(u.keyCode===38||u.keyCode===40)&&(Pe(u),$e(u.keyCode===38?-1:1,e.multiple));const J=y.value;if((p===void 0||k0&&e.useInput!==!0&&u.key!==void 0&&u.key.length===1&&u.altKey===!1&&u.ctrlKey===!1&&u.metaKey===!1&&(u.keyCode!==32||p.length!==0)){o.value!==!0&&ht(u);const se=u.key.toLocaleLowerCase(),ue=p.length===1&&p[0]===se;k=Date.now()+1500,ue===!1&&(Pe(u),p+=se);const ye=new RegExp("^"+p.split("").map(dl=>Wo.indexOf(dl)!==-1?"\\"+dl:dl).join(".*"),"i");let me=s.value;if(ue===!0||me<0||ye.test(ke.value(e.options[me]))!==!0)do me=hn(me+1,-1,J-1);while(me!==s.value&&(We.value(e.options[me])===!0||ye.test(ke.value(e.options[me]))!==!0));s.value!==me&&ge(()=>{Ve(me),N(me),me>=0&&e.useInput===!0&&e.fillInput===!0&&U(ke.value(e.options[me]),!0)});return}if(!(u.keyCode!==13&&(u.keyCode!==32||e.useInput===!0||p!=="")&&(u.keyCode!==9||A===!1))){if(u.keyCode!==9&&Pe(u),s.value!==-1&&s.value{if(ye){if(bn(ye)!==!0)return}else ye=e.newValueMode;if(X("",e.multiple!==!0,!0),ue==null)return;(ye==="toggle"?Ae:At)(ue,ye==="add-unique"),e.multiple!==!0&&(V.value!==null&&V.value.focus(),nt())};if(e.onNewValue!==void 0?l("newValue",d.value,se):se(d.value),e.multiple!==!0)return}o.value===!0?gt():m.innerLoading.value!==!0&&ht()}}function Ht(){return w===!0?q.value:H.value!==null&&H.value.contentEl!==null?H.value.contentEl:void 0}function rl(){return Ht()}function ul(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?Fe.value.map(u=>t["selected-item"](u)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?Fe.value.map((u,I)=>v(go,{key:"option-"+I,removable:m.editable.value===!0&&We.value(u.opt)!==!0,dense:!0,textColor:e.color,tabindex:pe.value,onRemove(){u.removeAtIndex(I)}},()=>v("span",{class:"ellipsis",[u.html===!0?"innerHTML":"textContent"]:ke.value(u.opt)}))):[v("span",{[je.value===!0?"innerHTML":"textContent"]:ce.value})]}function Ot(){if(oe.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:d.value}):void 0;const u=t.option!==void 0?t.option:A=>v(ho,{key:A.index,...A.itemProps},()=>v(bo,()=>v(yo,()=>v("span",{[A.html===!0?"innerHTML":"textContent"]:A.label}))));let I=Z("div",Qe.value.map(u));return t["before-options"]!==void 0&&(I=t["before-options"]().concat(I)),ll(t["after-options"],I)}function S(u,I){const A=I===!0?{...Ke.value,...m.splitAttrs.attributes.value}:void 0,J={ref:I===!0?V:void 0,key:"i_t",class:P.value,style:e.inputStyle,value:d.value!==void 0?d.value:"",type:"search",...A,id:I===!0?m.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":u===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...Et.value};return u!==!0&&w===!0&&(Array.isArray(J.class)===!0?J.class=[...J.class,"no-pointer-events"]:J.class+=" no-pointer-events"),v("input",J)}function L(u){g!==null&&(clearTimeout(g),g=null),C!==null&&(clearTimeout(C),C=null),!(u&&u.target&&u.target.qComposing===!0)&&(U(u.target.value||""),B=!0,D=d.value,m.focused.value!==!0&&(w!==!0||h.value===!0)&&m.focus(),e.onFilter!==void 0&&(g=setTimeout(()=>{g=null,ee(d.value)},e.inputDebounce)))}function U(u,I){d.value!==u&&(d.value=u,I===!0||e.inputDebounce===0||e.inputDebounce==="0"?l("inputValue",u):C=setTimeout(()=>{C=null,l("inputValue",u)},e.inputDebounce))}function X(u,I,A){B=A!==!0,e.useInput===!0&&(U(u,!0),(I===!0||A!==!0)&&(D=u),I!==!0&&ee(u))}function ee(u,I,A){if(e.onFilter===void 0||I!==!0&&m.focused.value!==!0)return;m.innerLoading.value===!0?l("filterAbort"):(m.innerLoading.value=!0,r.value=!0),u!==""&&e.multiple!==!0&&f.value.length!==0&&B!==!0&&u===ke.value(f.value[0])&&(u="");const J=setTimeout(()=>{o.value===!0&&(o.value=!1)},10);x!==null&&clearTimeout(x),x=J,l("filter",u,(se,ue)=>{(I===!0||m.focused.value===!0)&&x===J&&(clearTimeout(x),typeof se=="function"&&se(),r.value=!1,ge(()=>{m.innerLoading.value=!1,m.editable.value===!0&&(I===!0?o.value===!0&&nt():o.value===!0?cl(!0):o.value=!0),typeof ue=="function"&&ge(()=>{ue(n)}),typeof A=="function"&&ge(()=>{A(n)})}))},()=>{m.focused.value===!0&&x===J&&(clearTimeout(x),m.innerLoading.value=!1,r.value=!1),o.value===!0&&(o.value=!1)})}function ve(){return v(Oo,{ref:H,class:$.value,style:e.popupContentStyle,modelValue:o.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&oe.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:G.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:pt.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Ee.value,onScrollPassive:E,onBeforeShow:Ol,onBeforeHide:fe,onShow:Ie},Ot)}function fe(u){Ll(u),gt()}function Ie(){te()}function we(u){Xe(u),V.value!==null&&V.value.focus(),h.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function vt(u){Xe(u),ge(()=>{h.value=!1})}function mt(){const u=[v(vo,{class:`col-auto ${m.fieldClass.value}`,...O.value,for:m.targetUid.value,dark:G.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:d.value.length!==0,...m.splitAttrs.listeners.value,onFocus:we,onBlur:vt},{...t,rawControl:()=>m.getControl(!0),before:void 0,after:void 0})];return o.value===!0&&u.push(v("div",{ref:q,class:$.value+" scroll",style:e.popupContentStyle,...Ee.value,onClick:Oe,onScrollPassive:E},Ot())),v(Qo,{ref:j,modelValue:i.value,position:e.useInput===!0?"top":void 0,transitionShow:M,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Ol,onBeforeHide:sl,onHide:oa,onShow:ia},()=>v("div",{class:"q-select__dialog"+(G.value===!0?" q-select__dialog--dark q-dark":"")+(h.value===!0?" q-select__dialog--focused":"")},u))}function sl(u){Ll(u),j.value!==null&&j.value.__updateRefocusTarget(m.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),m.focused.value=!1}function oa(u){nt(),m.focused.value===!1&&l("blur",u),bt()}function ia(){const u=document.activeElement;(u===null||u.id!==m.targetUid.value)&&V.value!==null&&V.value!==u&&V.value.focus(),te()}function gt(){i.value!==!0&&(s.value=-1,o.value===!0&&(o.value=!1),m.focused.value===!1&&(x!==null&&(clearTimeout(x),x=null),m.innerLoading.value===!0&&(l("filterAbort"),m.innerLoading.value=!1,r.value=!1)))}function ht(u){m.editable.value===!0&&(w===!0?(m.onControlFocusin(u),i.value=!0,ge(()=>{m.focus()})):m.focus(),e.onFilter!==void 0?ee(d.value):(oe.value!==!0||t["no-option"]!==void 0)&&(o.value=!0))}function nt(){i.value=!1,gt()}function bt(){e.useInput===!0&&X(e.multiple!==!0&&e.fillInput===!0&&f.value.length!==0&&ke.value(f.value[0])||"",!0,!0)}function cl(u){let I=-1;if(u===!0){if(f.value.length!==0){const A=Re.value(f.value[0]);I=e.options.findIndex(J=>_t(Re.value(J),A))}Q(I)}Ve(I)}function ra(u,I){o.value===!0&&m.innerLoading.value===!1&&(Q(-1,!0),ge(()=>{o.value===!0&&m.innerLoading.value===!1&&(u>I?Q():cl(!0))}))}function Hl(){i.value===!1&&H.value!==null&&H.value.updatePosition()}function Ol(u){u!==void 0&&Xe(u),l("popupShow",u),m.hasPopupOpen=!0,m.onControlFocusin(u)}function Ll(u){u!==void 0&&Xe(u),l("popupHide",u),m.hasPopupOpen=!1,m.onControlFocusout(u)}function Dl(){w=a.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||oe.value===!1:!0),M=a.platform.is.ios===!0&&w===!0&&e.useInput===!0?"fade":e.transitionShow}return qn(Dl),ba(Hl),Dl(),Ce(()=>{g!==null&&clearTimeout(g),C!==null&&clearTimeout(C)}),Object.assign(n,{showPopup:ht,hidePopup:nt,removeAtIndex:st,add:At,toggleOption:Ae,getOptionIndex:()=>s.value,setOptionIndex:Ve,moveOptionSelection:$e,filter:ee,updateMenuPosition:Hl,updateInputValue:X,isOptionSelected:dt,getEmittingOptionValue:Ft,isOptionDisabled:(...u)=>We.value.apply(null,u)===!0,getOptionValue:(...u)=>Re.value.apply(null,u),getOptionLabel:(...u)=>ke.value.apply(null,u)}),Object.assign(m,{innerValue:f,fieldClass:c(()=>`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:R,targetRef:V,hasValue:ne,showPopup:ht,floatingLabel:c(()=>e.hideSelected!==!0&&ne.value===!0||typeof d.value=="number"||d.value.length!==0||Bt(e.displayValue)),getControlChild:()=>{if(m.editable.value!==!1&&(i.value===!0||oe.value!==!0||t["no-option"]!==void 0))return w===!0?mt():ve();m.hasPopupOpen===!0&&(m.hasPopupOpen=!1)},controlEvents:{onFocusin(u){m.onControlFocusin(u)},onFocusout(u){m.onControlFocusout(u,()=>{bt(),gt()})},onClick(u){if(Oe(u),w!==!0&&o.value===!0){gt(),V.value!==null&&V.value.focus();return}ht(u)}},getControl:u=>{const I=ul(),A=u===!0||i.value!==!0||w!==!0;if(e.useInput===!0)I.push(S(u,A));else if(m.editable.value===!0){const se=A===!0?Ke.value:void 0;I.push(v("input",{ref:A===!0?V:void 0,key:"d_t",class:"q-select__focus-target",id:A===!0?m.targetUid.value:void 0,value:ce.value,readonly:!0,"data-autofocus":u===!0||e.autofocus===!0||void 0,...se,onKeydown:It,onKeyup:ft,onKeypress:lt})),A===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&I.push(v("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:kt}))}if(_.value!==void 0&&e.disable!==!0&&tt.value.length!==0){const se=tt.value.map(ue=>v("option",{value:ue,selected:!0}));I.push(v("select",{class:"hidden",name:_.value,multiple:e.multiple},se))}const J=e.useInput===!0||A!==!0?void 0:m.splitAttrs.attributes.value;return v("div",{class:"q-field__native row items-center",...J,...m.splitAttrs.listeners.value},I)},getInnerAppend:()=>e.loading!==!0&&r.value!==!0&&e.hideDropdownIcon!==!0?[v(De,{class:"q-select__dropdown-icon"+(o.value===!0?" rotate-180":""),name:Je.value})]:null}),$l(m)}});const Xo={xs:2,sm:4,md:6,lg:10,xl:14};function yn(e,t,l){return{transform:t===!0?`translateX(${l.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}var Yo=be({name:"QLinearProgress",props:{...ze,...Tl,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:l}=de(),n=Ne(e,l.$q),a=El(e,Xo),o=c(()=>e.indeterminate===!0||e.query===!0),i=c(()=>e.reverse!==e.query),s=c(()=>({...a.value!==null?a.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),d=c(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),h=c(()=>yn(e.buffer!==void 0?e.buffer:1,i.value,l.$q)),r=c(()=>`with${e.instantFeedback===!0?"out":""}-transition`),g=c(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${r.value} q-linear-progress__track--${n.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),C=c(()=>yn(o.value===!0?1:e.value,i.value,l.$q)),b=c(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${r.value} q-linear-progress__model--${o.value===!0?"in":""}determinate`),w=c(()=>({width:`${e.value*100}%`})),B=c(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${r.value}`);return()=>{const x=[v("div",{class:g.value,style:h.value}),v("div",{class:b.value,style:C.value})];return e.stripe===!0&&o.value===!1&&x.push(v("div",{class:B.value,style:w.value})),v("div",{class:d.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},ll(t.default,x))}}});function Go(e,t){const l=K(null),n=c(()=>e.disable===!0?null:v("span",{ref:l,class:"no-outline",tabindex:-1}));function a(o){const i=t.value;o!==void 0&&o.type.indexOf("key")===0?i!==null&&document.activeElement!==i&&i.contains(document.activeElement)===!0&&i.focus():l.value!==null&&(o===void 0||i!==null&&i.contains(o.target)===!0)&&l.value.focus()}return{refocusTargetEl:n,refocusTarget:a}}var Jo={xs:30,sm:35,md:40,lg:50,xl:60};const ei={...ze,...Tl,...Il,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]},ti=["update:modelValue"];function li(e,t){const{props:l,slots:n,emit:a,proxy:o}=de(),{$q:i}=o,s=Ne(l,i),d=K(null),{refocusTargetEl:h,refocusTarget:r}=Go(l,d),g=El(l,Jo),C=c(()=>l.val!==void 0&&Array.isArray(l.modelValue)),b=c(()=>{const y=yt(l.val);return C.value===!0?l.modelValue.findIndex(z=>yt(z)===y):-1}),w=c(()=>C.value===!0?b.value!==-1:yt(l.modelValue)===yt(l.trueValue)),B=c(()=>C.value===!0?b.value===-1:yt(l.modelValue)===yt(l.falseValue)),x=c(()=>w.value===!1&&B.value===!1),D=c(()=>l.disable===!0?-1:l.tabindex||0),M=c(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(l.dense===!0?` q-${e}--dense`:"")+(l.leftLabel===!0?" reverse":"")),p=c(()=>{const y=w.value===!0?"truthy":B.value===!0?"falsy":"indet",z=l.color!==void 0&&(l.keepColor===!0||(e==="toggle"?w.value===!0:B.value!==!0))?` text-${l.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${y}${z}`}),k=c(()=>{const y={type:"checkbox"};return l.name!==void 0&&Object.assign(y,{".checked":w.value,"^checked":w.value===!0?"checked":void 0,name:l.name,value:C.value===!0?l.val:l.trueValue}),y}),R=Za(k),V=c(()=>{const y={tabindex:D.value,role:e==="toggle"?"switch":"checkbox","aria-label":l.label,"aria-checked":x.value===!0?"mixed":w.value===!0?"true":"false"};return l.disable===!0&&(y["aria-disabled"]="true"),y});function H(y){y!==void 0&&(Pe(y),r(y)),l.disable!==!0&&a("update:modelValue",j(),y)}function j(){if(C.value===!0){if(w.value===!0){const y=l.modelValue.slice();return y.splice(b.value,1),y}return l.modelValue.concat([l.val])}if(w.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(B.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function q(y){(y.keyCode===13||y.keyCode===32)&&Pe(y)}function _(y){(y.keyCode===13||y.keyCode===32)&&H(y)}const F=t(w,x);return Object.assign(o,{toggle:H}),()=>{const y=F();l.disable!==!0&&R(y,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const z=[v("div",{class:p.value,style:g.value,"aria-hidden":"true"},y)];h.value!==null&&z.push(h.value);const W=l.label!==void 0?ll(n.default,[l.label]):qe(n.default);return W!==void 0&&z.push(v("div",{class:`q-${e}__label q-anchor--skip`},W)),v("div",{ref:d,class:M.value,...V.value,onClick:H,onKeydown:q,onKeyup:_},z)}}const ni=v("div",{key:"svg",class:"q-checkbox__bg absolute"},[v("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[v("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),v("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]);var pl=be({name:"QCheckbox",props:ei,emits:ti,setup(e){function t(l,n){const a=c(()=>(l.value===!0?e.checkedIcon:n.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>a.value!==null?[v("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[v(De,{class:"q-checkbox__icon",name:a.value})])]:[ni]}return li("checkbox",t)}});let Vt=0;const ai={fullscreen:Boolean,noRouteFullscreenExit:Boolean},oi=["update:fullscreen","fullscreen"];function ii(){const e=de(),{props:t,emit:l,proxy:n}=e;let a,o,i;const s=K(!1);Bn(e)===!0&&le(()=>n.$route.fullPath,()=>{t.noRouteFullscreenExit!==!0&&r()}),le(()=>t.fullscreen,g=>{s.value!==g&&d()}),le(s,g=>{l("update:fullscreen",g),l("fullscreen",g)});function d(){s.value===!0?r():h()}function h(){s.value!==!0&&(s.value=!0,i=n.$el.parentNode,i.replaceChild(o,n.$el),document.body.appendChild(n.$el),Vt++,Vt===1&&document.body.classList.add("q-body--fullscreen-mixin"),a={handler:r},Zt.add(a))}function r(){s.value===!0&&(a!==void 0&&(Zt.remove(a),a=void 0),i.replaceChild(n.$el,o),s.value=!1,Vt=Math.max(0,Vt-1),Vt===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),n.$el.scrollIntoView!==void 0&&setTimeout(()=>{n.$el.scrollIntoView()})))}return Bl(()=>{o=document.createElement("span")}),Ge(()=>{t.fullscreen===!0&&h()}),Ce(r),Object.assign(n,{toggleFullscreen:d,setFullscreen:h,exitFullscreen:r}),{inFullscreen:s,toggleFullscreen:d}}function ri(e,t){return new Date(e)-new Date(t)}const ui={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>e==="ad"||e==="da",default:"ad"}};function si(e,t,l,n){const a=c(()=>{const{sortBy:s}=t.value;return s&&l.value.find(d=>d.name===s)||null}),o=c(()=>e.sortMethod!==void 0?e.sortMethod:(s,d,h)=>{const r=l.value.find(b=>b.name===d);if(r===void 0||r.field===void 0)return s;const g=h===!0?-1:1,C=typeof r.field=="function"?b=>r.field(b):b=>b[r.field];return s.sort((b,w)=>{let B=C(b),x=C(w);return r.rawSort!==void 0?r.rawSort(B,x,b,w)*g:B==null?-1*g:x==null?1*g:r.sort!==void 0?r.sort(B,x,b,w)*g:Cl(B)===!0&&Cl(x)===!0?(B-x)*g:jl(B)===!0&&jl(x)===!0?ri(B,x)*g:typeof B=="boolean"&&typeof x=="boolean"?(B-x)*g:([B,x]=[B,x].map(D=>(D+"").toLocaleString().toLowerCase()),BC.name===s);g!==void 0&&g.sortOrder&&(d=g.sortOrder)}let{sortBy:h,descending:r}=t.value;h!==s?(h=s,r=d==="da"):e.binaryStateSort===!0?r=!r:r===!0?d==="ad"?h=null:r=!1:d==="ad"?r=!0:h=null,n({sortBy:h,descending:r,page:1})}return{columnToSort:a,computedSortMethod:o,sort:i}}const ci={filter:[String,Object],filterMethod:Function};function di(e,t){const l=c(()=>e.filterMethod!==void 0?e.filterMethod:(n,a,o,i)=>{const s=a?a.toLowerCase():"";return n.filter(d=>o.some(h=>{const r=i(h,d)+"";return(r==="undefined"||r==="null"?"":r.toLowerCase()).indexOf(s)!==-1}))});return le(()=>e.filter,()=>{ge(()=>{t({page:1},!0)})},{deep:!0}),{computedFilterMethod:l}}function fi(e,t){for(const l in t)if(t[l]!==e[l])return!1;return!0}function Sn(e){return e.page<1&&(e.page=1),e.rowsPerPage!==void 0&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const vi={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function mi(e,t){const{props:l,emit:n}=e,a=K(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:l.rowsPerPageOptions.length!==0?l.rowsPerPageOptions[0]:5},l.pagination)),o=c(()=>{const r=l["onUpdate:pagination"]!==void 0?{...a.value,...l.pagination}:a.value;return Sn(r)}),i=c(()=>o.value.rowsNumber!==void 0);function s(r){d({pagination:r,filter:l.filter})}function d(r={}){ge(()=>{n("request",{pagination:r.pagination||o.value,filter:r.filter||l.filter,getCellValue:t})})}function h(r,g){const C=Sn({...o.value,...r});if(fi(o.value,C)===!0){i.value===!0&&g===!0&&s(C);return}if(i.value===!0){s(C);return}l.pagination!==void 0&&l["onUpdate:pagination"]!==void 0?n("update:pagination",C):a.value=C}return{innerPagination:a,computedPagination:o,isServerSide:i,requestServerInteraction:d,setPagination:h}}function gi(e,t,l,n,a,o){const{props:i,emit:s,proxy:{$q:d}}=e,h=c(()=>n.value===!0?l.value.rowsNumber||0:o.value),r=c(()=>{const{page:k,rowsPerPage:R}=l.value;return(k-1)*R}),g=c(()=>{const{page:k,rowsPerPage:R}=l.value;return k*R}),C=c(()=>l.value.page===1),b=c(()=>l.value.rowsPerPage===0?1:Math.max(1,Math.ceil(h.value/l.value.rowsPerPage))),w=c(()=>g.value===0?!0:l.value.page>=b.value),B=c(()=>(i.rowsPerPageOptions.includes(t.value.rowsPerPage)?i.rowsPerPageOptions:[t.value.rowsPerPage].concat(i.rowsPerPageOptions)).map(R=>({label:R===0?d.lang.table.allRows:""+R,value:R})));le(b,(k,R)=>{if(k===R)return;const V=l.value.page;k&&!V?a({page:1}):k1&&a({page:k-1})}function M(){const{page:k,rowsPerPage:R}=l.value;g.value>0&&k*R["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},bi=["update:selected","selection"];function yi(e,t,l,n){const a=c(()=>{const w={};return e.selected.map(n.value).forEach(B=>{w[B]=!0}),w}),o=c(()=>e.selection!=="none"),i=c(()=>e.selection==="single"),s=c(()=>e.selection==="multiple"),d=c(()=>l.value.length!==0&&l.value.every(w=>a.value[n.value(w)]===!0)),h=c(()=>d.value!==!0&&l.value.some(w=>a.value[n.value(w)]===!0)),r=c(()=>e.selected.length);function g(w){return a.value[w]===!0}function C(){t("update:selected",[])}function b(w,B,x,D){t("selection",{rows:B,added:x,keys:w,evt:D});const M=i.value===!0?x===!0?B:[]:x===!0?e.selected.concat(B):e.selected.filter(p=>w.includes(n.value(p))===!1);t("update:selected",M)}return{hasSelectionMode:o,singleSelection:i,multipleSelection:s,allRowsSelected:d,someRowsSelected:h,rowsSelectedNumber:r,isRowSelected:g,clearSelection:C,updateSelection:b}}function wn(e){return Array.isArray(e)?e.slice():[]}const Si={expanded:Array},wi=["update:expanded"];function xi(e,t){const l=K(wn(e.expanded));le(()=>e.expanded,i=>{l.value=wn(i)});function n(i){return l.value.includes(i)}function a(i){e.expanded!==void 0?t("update:expanded",i):l.value=i}function o(i,s){const d=l.value.slice(),h=d.indexOf(i);s===!0?h===-1&&(d.push(i),a(d)):h!==-1&&(d.splice(h,1),a(d))}return{isRowExpanded:n,setExpanded:a,updateExpanded:o}}const pi={visibleColumns:Array};function ki(e,t,l){const n=c(()=>{if(e.columns!==void 0)return e.columns;const s=e.rows[0];return s!==void 0?Object.keys(s).map(d=>({name:d,label:d.toUpperCase(),field:d,align:Cl(s[d])?"right":"left",sortable:!0})):[]}),a=c(()=>{const{sortBy:s,descending:d}=t.value;return(e.visibleColumns!==void 0?n.value.filter(r=>r.required===!0||e.visibleColumns.includes(r.name)===!0):n.value).map(r=>{const g=r.align||"right",C=`text-${g}`;return{...r,align:g,__iconClass:`q-table__sort-icon q-table__sort-icon--${g}`,__thClass:C+(r.headerClasses!==void 0?" "+r.headerClasses:"")+(r.sortable===!0?" sortable":"")+(r.name===s?` sorted ${d===!0?"sort-desc":""}`:""),__tdStyle:r.style!==void 0?typeof r.style!="function"?()=>r.style:r.style:()=>null,__tdClass:r.classes!==void 0?typeof r.classes!="function"?()=>C+" "+r.classes:b=>C+" "+r.classes(b):()=>C}})}),o=c(()=>{const s={};return a.value.forEach(d=>{s[d.name]=d}),s}),i=c(()=>e.tableColspan!==void 0?e.tableColspan:a.value.length+(l.value===!0?1:0));return{colList:n,computedCols:a,computedColsMap:o,computedColspan:i}}const Wt="q-table__bottom row items-center",aa={};Nn.forEach(e=>{aa[e]={}});var _i=be({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...aa,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...ze,...ai,...pi,...ci,...vi,...Si,...hi,...ui},emits:["request","virtualScroll",...oi,...wi,...bi],setup(e,{slots:t,emit:l}){const n=de(),{proxy:{$q:a}}=n,o=Ne(e,a),{inFullscreen:i,toggleFullscreen:s}=ii(),d=c(()=>typeof e.rowKey=="function"?e.rowKey:S=>S[e.rowKey]),h=K(null),r=K(null),g=c(()=>e.grid!==!0&&e.virtualScroll===!0),C=c(()=>" q-table__card"+(o.value===!0?" q-table__card--dark q-dark":"")+(e.square===!0?" q-table--square":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")),b=c(()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(e.grid===!0?" q-table--grid":C.value)+(o.value===!0?" q-table--dark":"")+(e.dense===!0?" q-table--dense":"")+(e.wrapCells===!1?" q-table--no-wrap":"")+(i.value===!0?" fullscreen scroll":"")),w=c(()=>b.value+(e.loading===!0?" q-table--loading":""));le(()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+b.value,()=>{g.value===!0&&r.value!==null&&r.value.reset()});const{innerPagination:B,computedPagination:x,isServerSide:D,requestServerInteraction:M,setPagination:p}=mi(n,Ve),{computedFilterMethod:k}=di(e,p),{isRowExpanded:R,setExpanded:V,updateExpanded:H}=xi(e,l),j=c(()=>{let S=e.rows;if(D.value===!0||S.length===0)return S;const{sortBy:L,descending:U}=x.value;return e.filter&&(S=k.value(S,e.filter,m.value,Ve)),G.value!==null&&(S=ne.value(e.rows===S?S.slice():S,L,U)),S}),q=c(()=>j.value.length),_=c(()=>{let S=j.value;if(D.value===!0)return S;const{rowsPerPage:L}=x.value;return L!==0&&($.value===0&&e.rows!==S?S.length>oe.value&&(S=S.slice(0,oe.value)):S=S.slice($.value,oe.value)),S}),{hasSelectionMode:F,singleSelection:y,multipleSelection:z,allRowsSelected:W,someRowsSelected:ae,rowsSelectedNumber:Q,isRowSelected:Z,clearSelection:E,updateSelection:N}=yi(e,l,_,d),{colList:te,computedCols:m,computedColsMap:f,computedColspan:O}=ki(e,x,F),{columnToSort:G,computedSortMethod:ne,sort:P}=si(e,x,te,p),{firstRowIndex:$,lastRowIndex:oe,isFirstPage:T,isLastPage:ce,pagesNumber:xe,computedRowsPerPageOptions:je,computedRowsNumber:pe,firstPage:Ke,prevPage:Ee,nextPage:Fe,lastPage:Qe}=gi(n,B,x,D,p,q),Je=c(()=>_.value.length===0),pt=c(()=>{const S={};return Nn.forEach(L=>{S[L]=e[L]}),S.virtualScrollItemSize===void 0&&(S.virtualScrollItemSize=e.dense===!0?28:48),S});function et(){g.value===!0&&r.value.reset()}function Re(){if(e.grid===!0)return Ot();const S=e.hideHeader!==!0?dt:null;if(g.value===!0){const U=t["top-row"],X=t["bottom-row"],ee={default:ve=>Et(ve.item,t.body,ve.index)};if(U!==void 0){const ve=v("tbody",U({cols:m.value}));ee.before=S===null?()=>ve:()=>[S()].concat(ve)}else S!==null&&(ee.before=S);return X!==void 0&&(ee.after=()=>v("tbody",X({cols:m.value}))),v(fo,{ref:r,class:e.tableClass,style:e.tableStyle,...pt.value,scrollTarget:e.virtualScrollTarget,items:_.value,type:"__qtable",tableColspan:O.value,onVirtualScroll:We},ee)}const L=[Ft()];return S!==null&&L.unshift(S()),Ln({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},L)}function ke(S,L){if(r.value!==null){r.value.scrollTo(S,L);return}S=parseInt(S,10);const U=h.value.querySelector(`tbody tr:nth-of-type(${S+1})`);if(U!==null){const X=h.value.querySelector(".q-table__middle.scroll"),ee=U.offsetTop-e.virtualScrollStickySizeStart,ve=ee{const vt=t[`body-cell-${we.name}`],mt=vt!==void 0?vt:ve;return mt!==void 0?mt(ol({key:X,row:S,pageIndex:U,col:we})):v("td",{class:we.__tdClass(S),style:we.__tdStyle(S)},Ve(we,S))});if(F.value===!0){const we=t["body-selection"],vt=we!==void 0?we(At({key:X,row:S,pageIndex:U})):[v(pl,{modelValue:ee,color:e.color,dark:o.value,dense:e.dense,"onUpdate:modelValue":(mt,sl)=>{N([X],[S],mt,sl)}})];fe.unshift(v("td",{class:"q-table--col-auto-width"},vt))}const Ie={key:X,class:{selected:ee}};return e.onRowClick!==void 0&&(Ie.class["cursor-pointer"]=!0,Ie.onClick=we=>{l("rowClick",we,S,U)}),e.onRowDblclick!==void 0&&(Ie.class["cursor-pointer"]=!0,Ie.onDblclick=we=>{l("rowDblclick",we,S,U)}),e.onRowContextmenu!==void 0&&(Ie.class["cursor-pointer"]=!0,Ie.onContextmenu=we=>{l("rowContextmenu",we,S,U)}),v("tr",Ie,fe)}function Ft(){const S=t.body,L=t["top-row"],U=t["bottom-row"];let X=_.value.map((ee,ve)=>Et(ee,S,ve));return L!==void 0&&(X=L({cols:m.value}).concat(X)),U!==void 0&&(X=X.concat(U({cols:m.value}))),v("tbody",X)}function st(S){return Ae(S),S.cols=S.cols.map(L=>Ye({...L},"value",()=>Ve(L,S.row))),S}function ol(S){return Ae(S),Ye(S,"value",()=>Ve(S.col,S.row)),S}function At(S){return Ae(S),S}function Ae(S){Object.assign(S,{cols:m.value,colsMap:f.value,sort:P,rowIndex:$.value+S.pageIndex,color:e.color,dark:o.value,dense:e.dense}),F.value===!0&&Ye(S,"selected",()=>Z(S.key),(L,U)=>{N([S.key],[S.row],L,U)}),Ye(S,"expand",()=>R(S.key),L=>{H(S.key,L)})}function Ve(S,L){const U=typeof S.field=="function"?S.field(L):L[S.field];return S.format!==void 0?S.format(U,L):U}const $e=c(()=>({pagination:x.value,pagesNumber:xe.value,isFirstPage:T.value,isLastPage:ce.value,firstPage:Ke,prevPage:Ee,nextPage:Fe,lastPage:Qe,inFullscreen:i.value,toggleFullscreen:s}));function il(){const S=t.top,L=t["top-left"],U=t["top-right"],X=t["top-selection"],ee=F.value===!0&&X!==void 0&&Q.value>0,ve="q-table__top relative-position row items-center";if(S!==void 0)return v("div",{class:ve},[S($e.value)]);let fe;if(ee===!0?fe=X($e.value).slice():(fe=[],L!==void 0?fe.push(v("div",{class:"q-table__control"},[L($e.value)])):e.title&&fe.push(v("div",{class:"q-table__control"},[v("div",{class:["q-table__title",e.titleClass]},e.title)]))),U!==void 0&&(fe.push(v("div",{class:"q-table__separator col"})),fe.push(v("div",{class:"q-table__control"},[U($e.value)]))),fe.length!==0)return v("div",{class:ve},fe)}const ct=c(()=>ae.value===!0?null:W.value);function dt(){const S=$t();return e.loading===!0&&t.loading===void 0&&S.push(v("tr",{class:"q-table__progress"},[v("th",{class:"relative-position",colspan:O.value},tt())])),v("thead",S)}function $t(){const S=t.header,L=t["header-cell"];if(S!==void 0)return S(ft({header:!0})).slice();const U=m.value.map(X=>{const ee=t[`header-cell-${X.name}`],ve=ee!==void 0?ee:L,fe=ft({col:X});return ve!==void 0?ve(fe):v(to,{key:X.name,props:fe},()=>X.label)});if(y.value===!0&&e.grid!==!0)U.unshift(v("th",{class:"q-table--col-auto-width"}," "));else if(z.value===!0){const X=t["header-selection"],ee=X!==void 0?X(ft({})):[v(pl,{color:e.color,modelValue:ct.value,dark:o.value,dense:e.dense,"onUpdate:modelValue":kt})];U.unshift(v("th",{class:"q-table--col-auto-width"},ee))}return[v("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},U)]}function ft(S){return Object.assign(S,{cols:m.value,sort:P,colsMap:f.value,color:e.color,dark:o.value,dense:e.dense}),z.value===!0&&Ye(S,"selected",()=>ct.value,kt),S}function kt(S){ae.value===!0&&(S=!1),N(_.value.map(d.value),_.value,S)}const lt=c(()=>{const S=[e.iconFirstPage||a.iconSet.table.firstPage,e.iconPrevPage||a.iconSet.table.prevPage,e.iconNextPage||a.iconSet.table.nextPage,e.iconLastPage||a.iconSet.table.lastPage];return a.lang.rtl===!0?S.reverse():S});function It(){if(e.hideBottom===!0)return;if(Je.value===!0){if(e.hideNoData===!0)return;const U=e.loading===!0?e.loadingLabel||a.lang.table.loading:e.filter?e.noResultsLabel||a.lang.table.noResults:e.noDataLabel||a.lang.table.noData,X=t["no-data"],ee=X!==void 0?[X({message:U,icon:a.iconSet.table.warning,filter:e.filter})]:[v(De,{class:"q-table__bottom-nodata-icon",name:a.iconSet.table.warning}),U];return v("div",{class:Wt+" q-table__bottom--nodata"},ee)}const S=t.bottom;if(S!==void 0)return v("div",{class:Wt},[S($e.value)]);const L=e.hideSelectedBanner!==!0&&F.value===!0&&Q.value>0?[v("div",{class:"q-table__control"},[v("div",[(e.selectedRowsLabel||a.lang.table.selectedRecords)(Q.value)])])]:[];if(e.hidePagination!==!0)return v("div",{class:Wt+" justify-end"},rl(L));if(L.length!==0)return v("div",{class:Wt},L)}function Ht(S){p({page:1,rowsPerPage:S.value})}function rl(S){let L;const{rowsPerPage:U}=x.value,X=e.paginationLabel||a.lang.table.pagination,ee=t.pagination,ve=e.rowsPerPageOptions.length>1;if(S.push(v("div",{class:"q-table__separator col"})),ve===!0&&S.push(v("div",{class:"q-table__control"},[v("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||a.lang.table.recordsPerPage]),v(Zo,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:U,options:je.value,displayValue:U===0?a.lang.table.allRows:U,dark:o.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Ht})])),ee!==void 0)L=ee($e.value);else if(L=[v("span",U!==0?{class:"q-table__bottom-item"}:{},[U?X($.value+1,Math.min(oe.value,pe.value),pe.value):X(1,q.value,pe.value)])],U!==0&&xe.value>1){const fe={color:e.color,round:!0,dense:!0,flat:!0};e.dense===!0&&(fe.size="sm"),xe.value>2&&L.push(v(Dt,{key:"pgFirst",...fe,icon:lt.value[0],disable:T.value,onClick:Ke})),L.push(v(Dt,{key:"pgPrev",...fe,icon:lt.value[1],disable:T.value,onClick:Ee}),v(Dt,{key:"pgNext",...fe,icon:lt.value[2],disable:ce.value,onClick:Fe})),xe.value>2&&L.push(v(Dt,{key:"pgLast",...fe,icon:lt.value[3],disable:ce.value,onClick:Qe}))}return S.push(v("div",{class:"q-table__control"},L)),S}function ul(){const S=e.gridHeader===!0?[v("table",{class:"q-table"},[dt()])]:e.loading===!0&&t.loading===void 0?tt():void 0;return v("div",{class:"q-table__middle"},S)}function Ot(){const S=t.item!==void 0?t.item:L=>{const U=L.cols.map(ee=>v("div",{class:"q-table__grid-item-row"},[v("div",{class:"q-table__grid-item-title"},[ee.label]),v("div",{class:"q-table__grid-item-value"},[ee.value])]));if(F.value===!0){const ee=t["body-selection"],ve=ee!==void 0?ee(L):[v(pl,{modelValue:L.selected,color:e.color,dark:o.value,dense:e.dense,"onUpdate:modelValue":(fe,Ie)=>{N([L.key],[L.row],fe,Ie)}})];U.unshift(v("div",{class:"q-table__grid-item-row"},ve),v(no,{dark:o.value}))}const X={class:["q-table__grid-item-card"+C.value,e.cardClass],style:e.cardStyle};return(e.onRowClick!==void 0||e.onRowDblclick!==void 0)&&(X.class[0]+=" cursor-pointer",e.onRowClick!==void 0&&(X.onClick=ee=>{l("RowClick",ee,L.row,L.pageIndex)}),e.onRowDblclick!==void 0&&(X.onDblclick=ee=>{l("RowDblclick",ee,L.row,L.pageIndex)})),v("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(L.selected===!0?" q-table__grid-item--selected":"")},[v("div",X,U)])};return v("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},_.value.map((L,U)=>S(st({key:d.value(L),row:L,pageIndex:U}))))}return Object.assign(n.proxy,{requestServerInteraction:M,setPagination:p,firstPage:Ke,prevPage:Ee,nextPage:Fe,lastPage:Qe,isRowSelected:Z,clearSelection:E,isRowExpanded:R,setExpanded:V,sort:P,resetVirtualScroll:et,scrollTo:ke,getCellValue:Ve}),Sa(n.proxy,{filteredSortedRows:()=>j.value,computedRows:()=>_.value,computedRowsNumber:()=>pe.value}),()=>{const S=[il()],L={ref:h,class:w.value};return e.grid===!0?S.push(ul()):Object.assign(L,{class:[L.class,e.cardClass],style:e.cardStyle}),S.push(Re(),It()),e.loading===!0&&t.loading!==void 0&&S.push(t.loading()),v("div",L,S)}}}),Ci=be({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){const{proxy:{$q:l}}=de(),n=_l(wa,St);if(n===St)return console.error("QPage needs to be a deep child of QLayout"),St;if(_l(xa,St)===St)return console.error("QPage needs to be child of QPageContainer"),St;const o=c(()=>{const s=(n.header.space===!0?n.header.size:0)+(n.footer.space===!0?n.footer.size:0);if(typeof e.styleFn=="function"){const d=n.isContainer.value===!0?n.containerHeight.value:l.screen.height;return e.styleFn(s,d)}return{minHeight:n.isContainer.value===!0?n.containerHeight.value-s+"px":l.screen.height===0?s!==0?`calc(100vh - ${s}px)`:"100vh":l.screen.height-s+"px"}}),i=c(()=>`q-page${e.padding===!0?" q-layout-padding":""}`);return()=>v("main",{class:i.value,style:o.value},qe(t.default))}});function xn(e){const t=e.indexOf("(");if(t===-1)return[e];const l=e.slice(0,t).trim(),n=e.slice(t+1,e.indexOf(")")).trim();return[l,n]}function pn(e,t){const l=e.replace(/=\?([^?]+)\?([BQ])\?([^?]+)\?=/gi,(a,o,i,s)=>i.toUpperCase()==="B"?qi(s,o):i.toUpperCase()==="Q"?Vi(s,o):e),n=l.indexOf(":");return{headerName:l.slice(0,n),headerData:l.slice(n+2),headerIndex:t}}function qi(e,t){const l=atob(e);return new TextDecoder(t).decode(new Uint8Array([...l].map(n=>n.charCodeAt(0))))}function Vi(e,t){const l=e.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(n,a)=>String.fromCharCode(parseInt(a,16)));return new TextDecoder(t).decode(new Uint8Array([...l].map(n=>n.charCodeAt(0))))}function Pi(e){const t="from",l="by",n="with",a="id",o="via",i={rawHeaderDetails:e};if(!e.headerData)return i;let s=e.headerData;const d=e.headerData.lastIndexOf(";");if(d!==-1){const F=e.headerData.slice(d+1).trim();i.dateTime=new Date(F),s=e.headerData.slice(0,d)}const h=s.indexOf(`${t} `);if(h===-1)return i;const r=h+t.length+1,g=s.indexOf(`${l} `,r);if(g===-1)return i;const C=s.slice(r,g-1),b=xn(C);i.fromDomain=b[0],i.fromIpAddress=b[1];const w=g+l.length+1,B=s.indexOf(`${n} `,w);if(B===-1)return i;const x=s.slice(w,B-1),D=xn(x);i.byDomain=D[0],i.byIpAddress=D[1];const M=B+n.length+1;let p=s.length,k=M;const R=s.indexOf(`${a} `,k);let V=0,H=0;R!==-1&&(V=R+a.length+1,k=V,p=R-1);const j=s.indexOf(`${o} `,k);let q=0,_=0;return j!==-1?(q=j+o.length+1,k=q,H=j-1,_=s.length):H=s.length,M>0&&(i.with=s.slice(M,p)),V>0&&(i.id=s.slice(V,H)),q>0&&(i.via=s.slice(q,_)),i}function Mi(e){const t=e.split(/\r?\n/);if(!t)return;const l=[];let n="",a=0;for(const o of t){if(!o)break;/^\s/.test(o)?n+=" "+o.trim():(n&&(l.push(pn(n,a)),a++),n=o)}return n&&l.push(pn(n,a)),l}const kn={splitMailHeader:Mi,parseReceivedHeader:Pi},Ri=["height","viewBox"],Bi=["transform"],Ti=Y("path",{d:"M 1,1 L 1,10 L 10,10, 10,1 Z","vector-effect":"non-scaling-stroke","shape-rendering":"crispEdges",style:{fill:"#263238"}},null,-1),Ei={x:"5",y:"5.5","dominant-baseline":"middle","text-anchor":"middle",style:{font:"normal 4px sans-serif",fill:"#fff"}},Fi=Y("path",{d:"M 1,1 L 110,1 L 110,40 L 1,40 Z","vector-effect":"non-scaling-stroke","shape-rendering":"crispEdges",style:{fill:"none",stroke:"#263238","stroke-width":"1px"}},null,-1),Ai={key:0,d:"M 111,15 L 115,20 L 111,25 Z",style:{fill:"#aaa",stroke:"#888","stroke-width":".3"}},$i={x:"4",y:"20",style:{font:"bold 4px sans-serif",fill:"#666"}},Ii={x:"4",y:"26",style:{font:"normal 4px sans-serif",fill:"#666"}},Hi={x:"4",y:"32",style:{font:"normal 4px sans-serif",fill:"#666"}},kl=6,Oi=110,_n=40,Li=5,Cn=5,Di=Mn({__name:"MailFlow",props:{receivedHeaders:{}},setup(e){const t=e,l=c(()=>Math.ceil(t.receivedHeaders.length/kl)),n=c(()=>l.value*(_n+Cn));function a(o){const s=Math.floor(o/kl)*(_n+Cn);return`translate(${o%kl*(Oi+Li)}, ${s})`}return(o,i)=>(ie(),re("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",width:"100%",height:n.value,version:"1.1",style:{width:"100%",height:"100%"},viewBox:`0 0 700 ${n.value}`},[(ie(!0),re(Ue,null,Ze(o.receivedHeaders,(s,d)=>{var h;return ie(),re("g",{key:d,transform:a(d)},[Ti,Y("text",Ei,_e(d+1),1),Fi,d(ka("data-v-fd2b1960"),e=e(),_a(),e),zi={key:0,class:"row"},Ni={class:"col-12 col-md-6"},ji={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",width:"100%",height:"600",version:"1.1",viewBox:"0 0 32 32"},Ki=Me(()=>Y("g",{id:"mail"},[Y("path",{d:"m2.43 29.04 13.55-9.88 13.55 9.88",style:{fill:"none",stroke:"#263238","stroke-width":".8","stroke-dasharray":"none"}}),Y("path",{d:"m2.43 13.55 3.25-2.35",style:{fill:"none",stroke:"#263238","stroke-width":".8","stroke-dasharray":"none"}}),Y("path",{d:"m26.48 11.2 3.05 2.46",style:{fill:"none",stroke:"#263238","stroke-width":".8","stroke-dasharray":"none"}}),Y("path",{d:"M5.48 15.94c.12-.3 0-14.43 0-14.43H20.5l6.15 6.15v8.13",style:{fill:"none",stroke:"#666666","stroke-width":".8"}}),Y("path",{d:"M7 12 20 12 Z",style:{fill:"none",stroke:"#CCCCCC","stroke-width":".3"}}),Y("path",{d:"M7 14 24 14 Z",style:{fill:"none",stroke:"#CCCCCC","stroke-width":".3"}}),Y("path",{d:"M7 16 24 16 Z",style:{fill:"none",stroke:"#CCCCCC","stroke-width":".3"}}),Y("path",{d:"m11.6 20.16-9.17-6.61v16.87h27.1V13.66l-9.09 6.5",style:{fill:"none",stroke:"#263238","stroke-width":".8","stroke-linejoin":"round"}})],-1)),Qi={id:"letter",transform:"translate(0,-2)"},Wi=Me(()=>Y("text",{x:"7",y:"5.9",style:{font:"normal 0.5px sans-serif",fill:"#666"}},"From",-1)),Ui={x:"7",y:"6.8",style:{font:"normal 0.7px sans-serif"}},Zi=Me(()=>Y("text",{x:"7",y:"7.6",style:{font:"normal 0.5px sans-serif",fill:"#666"}},"To",-1)),Xi={x:"7",y:"8.5",style:{font:"normal 0.7px sans-serif"}},Yi={x:"7",y:"12",style:{font:"normal 0.7px sans-serif","font-weight":"bold"}},Gi=Me(()=>Y("text",{x:"11",y:"26",style:{font:"normal 0.5px sans-serif",fill:"#666"}},"ReturnPath",-1)),Ji={x:"11",y:"27",style:{font:"italic 1.0px sans-serif"}},er={class:"col-12 col-md-6"},tr={class:"q-my-md"},lr={class:"q-gutter-sm"},nr={key:0,class:"row"},ar=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," Return-Path ",-1)),or={class:"col-10 q-pa-sm bg-grey text-white"},ir={key:1,class:"row"},rr=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," From ",-1)),ur={class:"col-10 q-pa-sm bg-grey text-white"},sr={key:2,class:"row"},cr=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," To ",-1)),dr={class:"col-10 q-pa-sm bg-grey text-white"},fr={key:3,class:"row"},vr=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," Message-Id ",-1)),mr={class:"col-10 q-pa-sm bg-grey text-white"},gr={key:4,class:"row"},hr=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," Date ",-1)),br={class:"col-10 q-pa-sm bg-grey text-white"},yr={key:5,class:"row"},Sr=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," Subject ",-1)),wr={class:"col-10 q-pa-sm bg-grey text-white"},xr={key:6,class:"row"},pr=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," Authentication-Results ",-1)),kr={class:"col-10 q-pa-sm bg-grey text-white"},_r={style:{margin:"0px"}},Cr={key:1},qr=Me(()=>Y("h2",null,"Mail Hops",-1)),Vr={key:0,class:"q-mt-sm"},Pr=Me(()=>Y("h2",null,"Other Headers",-1)),Mr=Mn({__name:"IndexPage",setup(e){const t={From:"From",To:"To",Subject:"Subject",Received:"Received",ReturnPath:"Return-Path",MessageId:"Message-Id",Date:"Date"},l=K(),n=K(),a=[{name:"headerName",align:"left",label:"Name",field:"headerName",sortable:!1,style:"width: 300px"},{name:"headerData",align:"left",label:"Data",field:"headerData",sortable:!1,classes:"text-break"},{name:"headerIndex",align:"left",label:"Index",field:"headerIndex",sortable:!1,style:"width: 70px"}],o=c(()=>{if(!!l.value)return kn.splitMailHeader(l.value)}),i=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName===t.ReturnPath)}),s=c(()=>{if(!!i.value)return i.value[0].headerData}),d=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName===t.From)}),h=c(()=>{if(!!d.value)return d.value[0].headerData}),r=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName===t.To)}),g=c(()=>{if(!!r.value)return r.value[0].headerData}),C=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName===t.Date)}),b=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName===t.MessageId)}),w=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName===t.Subject)}),B=c(()=>{if(!!w.value)return w.value[0].headerData}),x=c(()=>{var R;if(!o.value)return;const p=(R=o.value)==null?void 0:R.filter(V=>V.headerName===t.Received);if(!p)return;const k=p.filter(V=>V.headerData).map(V=>kn.parseReceivedHeader(V));return k==null||k.sort((V,H)=>V.rawHeaderDetails.headerIndex&&H.rawHeaderDetails.headerIndex?H.rawHeaderDetails.headerIndex-V.rawHeaderDetails.headerIndex:-1),k}),D=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName==="Authentication-Results")}),M=c(()=>{var V,H;const p=Object.values(t),k=(V=o.value)==null?void 0:V.filter(j=>!p.includes(j.headerName)),R=(H=n.value)==null?void 0:H.toLowerCase();return R?k==null?void 0:k.filter(j=>j.headerName.toLowerCase().includes(R)):k});return(p,k)=>(ie(),Kl(Ci,{padding:""},{default:fl(()=>[Y("div",null,[Lt(tn,{modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=R=>l.value=R),spellcheck:"false",placeholder:"Paste email headers here",outlined:"",type:"textarea"},null,8,["modelValue"])]),l.value?(ie(),re("div",zi,[Y("div",Ni,[(ie(),re("svg",ji,[Ki,Y("g",Qi,[Wi,Y("text",Ui,_e(h.value),1),Zi,Y("text",Xi,_e(g.value),1),Y("text",Yi,_e(B.value),1)]),Y("g",null,[Gi,Y("text",Ji,_e(s.value),1)])]))]),Y("div",er,[Y("div",tr,[Y("div",lr,[i.value&&i.value.length>0?(ie(),re("div",nr,[ar,Y("div",or,[(ie(!0),re(Ue,null,Ze(i.value,(R,V)=>(ie(),re("div",{key:`returnPathHeader-${V}`},_e(R.headerData),1))),128))])])):Be("",!0),d.value&&d.value.length>0?(ie(),re("div",ir,[rr,Y("div",ur,[(ie(!0),re(Ue,null,Ze(d.value,(R,V)=>(ie(),re("div",{key:`fromHeader-${V}`},_e(R.headerData),1))),128))])])):Be("",!0),r.value&&r.value.length>0?(ie(),re("div",sr,[cr,Y("div",dr,[(ie(!0),re(Ue,null,Ze(r.value,(R,V)=>(ie(),re("div",{key:`toHeader-${V}`},_e(R.headerData),1))),128))])])):Be("",!0),b.value&&b.value.length>0?(ie(),re("div",fr,[vr,Y("div",mr,[(ie(!0),re(Ue,null,Ze(b.value,(R,V)=>(ie(),re("div",{key:`messageIdHeader-${V}`},_e(R.headerData),1))),128))])])):Be("",!0),C.value&&C.value.length>0?(ie(),re("div",gr,[hr,Y("div",br,[(ie(!0),re(Ue,null,Ze(C.value,(R,V)=>(ie(),re("div",{key:`dateHeader-${V}`},_e(R.headerData),1))),128))])])):Be("",!0),w.value&&w.value.length>0?(ie(),re("div",yr,[Sr,Y("div",wr,[(ie(!0),re(Ue,null,Ze(w.value,(R,V)=>(ie(),re("div",{key:`subjectHeader-${V}`},_e(R.headerData),1))),128))])])):Be("",!0),D.value&&D.value.length>0?(ie(),re("div",xr,[pr,Y("div",kr,[(ie(!0),re(Ue,null,Ze(D.value,(R,V)=>(ie(),re("div",{key:`subjectHeader-${V}`},[Y("pre",_r,_e(R.headerData.split(";").map(H=>H.trim()).join(` -`)),1)]))),128))])])):Be("",!0)])])])])):Be("",!0),l.value?(ie(),re("div",Cr,[qr,x.value?(ie(),re("div",Vr,[Lt(Di,{"received-headers":x.value},null,8,["received-headers"])])):Be("",!0),Pr,M.value?(ie(),Kl(_i,{key:1,flat:"",bordered:"","wrap-cells":"","rows-per-page-options":[0],rows:M.value,columns:a,class:"full-width","table-style":"min-height: 400px;"},{top:fl(()=>[Lt(tn,{modelValue:n.value,"onUpdate:modelValue":k[1]||(k[1]=R=>n.value=R),outlined:"",dense:"",debounce:"100",placeholder:"Search",class:"full-width","bg-color":n.value?"grey-3":""},{append:fl(()=>[Lt(De,{name:"search"})]),_:1},8,["modelValue","bg-color"])]),_:1},8,["rows"])):Be("",!0)])):Be("",!0)]),_:1}))}});var Er=pa(Mr,[["__scopeId","data-v-fd2b1960"]]);export{Er as default}; +import{i as ua,r as K,o as Ge,w as le,a as c,J as qn,g as de,b as Ce,e as _l,K as sa,L as Vn,M as Ye,H as Pe,d as ge,N as Tt,O as Rl,h as v,I as Oe,T as Ut,P as Pn,Q as Le,c as be,F as Xe,n as ca,R as Bl,l as Te,C as tl,S as da,D as zl,E as fa,U as Nl,q as va,V as ma,G as ga,W as Zt,X as ha,Y as ba,Z as _t,$ as yt,a0 as Cl,a1 as jl,a2 as ya,a3 as Sa,f as St,j as wa,k as xa,a4 as Mn,t as ie,a5 as re,a6 as Ue,a7 as Ze,a8 as Y,a9 as _e,aa as Be,_ as pa,u as Kl,v as fl,x as Lt,ab as ka,ac as _a}from"./index.f85e7812.js";import{d as De,e as Ca,h as qe,a as Rn,b as ll,u as Tl,f as El,i as qa,j as Va,R as Pa,k as Ma,l as Ra,v as Bn,m as vl,n as Tn,o as En,Q as Dt}from"./QBtn.4f67275f.js";import{s as Fn,g as An,c as Ba,b as Ta,a as Ea,h as Fa}from"./scroll.bcfb7906.js";let ml,zt=0;const Se=new Array(256);for(let e=0;e<256;e++)Se[e]=(e+256).toString(16).substring(1);const Aa=(()=>{const e=typeof crypto!="undefined"?crypto:typeof window!="undefined"?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 l=new Uint8Array(t);return e.getRandomValues(l),l}}return t=>{const l=[];for(let n=t;n>0;n--)l.push(Math.floor(Math.random()*256));return l}})(),Ql=4096;function ql(){(ml===void 0||zt+16>Ql)&&(zt=0,ml=Aa(Ql));const e=Array.prototype.slice.call(ml,zt,zt+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Se[e[0]]+Se[e[1]]+Se[e[2]]+Se[e[3]]+"-"+Se[e[4]]+Se[e[5]]+"-"+Se[e[6]]+Se[e[7]]+"-"+Se[e[8]]+Se[e[9]]+"-"+Se[e[10]]+Se[e[11]]+Se[e[12]]+Se[e[13]]+Se[e[14]]+Se[e[15]]}function $a(e){return e==null?null:e}function Wl(e,t){return e==null?t===!0?`f_${ql()}`:null:e}function Ia({getValue:e,required:t=!0}={}){if(ua.value===!0){const l=e!==void 0?K($a(e())):K(null);return t===!0&&l.value===null&&Ge(()=>{l.value=`f_${ql()}`}),e!==void 0&&le(e,n=>{l.value=Wl(n,t)}),l}return e!==void 0?c(()=>Wl(e(),t)):K(`f_${ql()}`)}const Ul=/^on[A-Z]/;function Ha(){const{attrs:e,vnode:t}=de(),l={listeners:K({}),attributes:K({})};function n(){const a={},o={};for(const i in e)i!=="class"&&i!=="style"&&Ul.test(i)===!1&&(a[i]=e[i]);for(const i in t.props)Ul.test(i)===!0&&(o[i]=t.props[i]);l.attributes.value=a,l.listeners.value=o}return qn(n),n(),l}const ze={dark:{type:Boolean,default:null}};function Ne(e,t){return c(()=>e.dark===null?t.dark.isActive:e.dark)}function Oa({validate:e,resetValidation:t,requiresQForm:l}){const n=_l(sa,!1);if(n!==!1){const{props:a,proxy:o}=de();Object.assign(o,{validate:e,resetValidation:t}),le(()=>a.disable,i=>{i===!0?(typeof t=="function"&&t(),n.unbindComponent(o)):n.bindComponent(o)}),Ge(()=>{a.disable!==!0&&n.bindComponent(o)}),Ce(()=>{a.disable!==!0&&n.unbindComponent(o)})}else l===!0&&console.error("Parent QForm not found on useFormChild()!")}const Zl=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Xl=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Yl=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Nt=/^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])\)$/,jt=/^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)\)$/,gl={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=>Zl.test(e),hexaColor:e=>Xl.test(e),hexOrHexaColor:e=>Yl.test(e),rgbColor:e=>Nt.test(e),rgbaColor:e=>jt.test(e),rgbOrRgbaColor:e=>Nt.test(e)||jt.test(e),hexOrRgbColor:e=>Zl.test(e)||Nt.test(e),hexaOrRgbaColor:e=>Xl.test(e)||jt.test(e),anyColor:e=>Yl.test(e)||Nt.test(e)||jt.test(e)},La=[!0,!1,"ondemand"],Da={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>La.includes(e)}};function za(e,t){const{props:l,proxy:n}=de(),a=K(!1),o=K(null),i=K(!1);Oa({validate:B,resetValidation:w});let s=0,d;const h=c(()=>l.rules!==void 0&&l.rules!==null&&l.rules.length!==0),r=c(()=>l.disable!==!0&&h.value===!0&&t.value===!1),g=c(()=>l.error===!0||a.value===!0),C=c(()=>typeof l.errorMessage=="string"&&l.errorMessage.length!==0?l.errorMessage:o.value);le(()=>l.modelValue,()=>{i.value=!0,r.value===!0&&l.lazyRules===!1&&x()});function b(){l.lazyRules!=="ondemand"&&r.value===!0&&i.value===!0&&x()}le(()=>l.reactiveRules,D=>{D===!0?d===void 0&&(d=le(()=>l.rules,b,{immediate:!0,deep:!0})):d!==void 0&&(d(),d=void 0)},{immediate:!0}),le(()=>l.lazyRules,b),le(e,D=>{D===!0?i.value=!0:r.value===!0&&l.lazyRules!=="ondemand"&&x()});function w(){s++,t.value=!1,i.value=!1,a.value=!1,o.value=null,x.cancel()}function B(D=l.modelValue){if(l.disable===!0||h.value===!1)return!0;const M=++s,p=t.value!==!0?()=>{i.value=!0}:()=>{},k=(V,H)=>{V===!0&&p(),a.value=V,o.value=H||null,t.value=!1},R=[];for(let V=0;V{if(V===void 0||Array.isArray(V)===!1||V.length===0)return M===s&&k(!1),!0;const H=V.find(j=>j===!1||typeof j=="string");return M===s&&k(H!==void 0,H),H===void 0},V=>(M===s&&(console.error(V),k(!0)),!1)))}const x=Vn(B,0);return Ce(()=>{d!==void 0&&d(),x.cancel()}),Object.assign(n,{resetValidation:w,validate:B}),Ye(n,"hasError",()=>g.value),{isDirtyModel:i,hasRules:h,hasError:g,errorMessage:C,validate:B,resetValidation:w}}let ot=[],Rt=[];function $n(e){Rt=Rt.filter(t=>t!==e)}function Na(e){$n(e),Rt.push(e)}function Gl(e){$n(e),Rt.length===0&&ot.length!==0&&(ot[ot.length-1](),ot=[])}function nl(e){Rt.length===0?e():ot.push(e)}function ja(e){ot=ot.filter(t=>t!==e)}function Bt(e){return e!=null&&(""+e).length!==0}const Ka={...ze,...Da,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},al={...Ka,maxlength:[Number,String]},Fl=["update:modelValue","clear","focus","blur"];function Al({requiredForAttr:e=!0,tagProp:t,changeEvent:l=!1}={}){const{props:n,proxy:a}=de(),o=Ne(n,a.$q),i=Ia({required:e,getValue:()=>n.for});return{requiredForAttr:e,changeEvent:l,tag:t===!0?c(()=>n.tag):{value:"label"},isDark:o,editable:c(()=>n.disable!==!0&&n.readonly!==!0),innerLoading:K(!1),focused:K(!1),hasPopupOpen:!1,splitAttrs:Ha(),targetUid:i,rootRef:K(null),targetRef:K(null),controlRef:K(null)}}function $l(e){const{props:t,emit:l,slots:n,attrs:a,proxy:o}=de(),{$q:i}=o;let s=null;e.hasValue===void 0&&(e.hasValue=c(()=>Bt(t.modelValue))),e.emitValue===void 0&&(e.emitValue=E=>{l("update:modelValue",E)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:q,onFocusout:_}),Object.assign(e,{clearValue:F,onControlFocusin:q,onControlFocusout:_,focus:H}),e.computedCounter===void 0&&(e.computedCounter=c(()=>{if(t.counter!==!1){const E=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,N=t.maxlength!==void 0?t.maxlength:t.maxValues;return E+(N!==void 0?" / "+N:"")}}));const{isDirtyModel:d,hasRules:h,hasError:r,errorMessage:g,resetValidation:C}=za(e.focused,e.innerLoading),b=e.floatingLabel!==void 0?c(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):c(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),w=c(()=>t.bottomSlots===!0||t.hint!==void 0||h.value===!0||t.counter===!0||t.error!==null),B=c(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),x=c(()=>`q-field row no-wrap items-start q-field--${B.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(b.value===!0?" q-field--float":"")+(M.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":"")+(r.value===!0?" q-field--error":"")+(r.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&w.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),D=c(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(r.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}`:"")),M=c(()=>t.labelSlot===!0||t.label!==void 0),p=c(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&r.value!==!0?` text-${t.labelColor}`:"")),k=c(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:b.value,modelValue:t.modelValue,emitValue:e.emitValue})),R=c(()=>{const E={};return e.targetUid.value&&(E.for=e.targetUid.value),t.disable===!0&&(E["aria-disabled"]="true"),E});function V(){const E=document.activeElement;let N=e.targetRef!==void 0&&e.targetRef.value;N&&(E===null||E.id!==e.targetUid.value)&&(N.hasAttribute("tabindex")===!0||(N=N.querySelector("[tabindex]")),N&&N!==E&&N.focus({preventScroll:!0}))}function H(){nl(V)}function j(){ja(V);const E=document.activeElement;E!==null&&e.rootRef.value.contains(E)&&E.blur()}function q(E){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,l("focus",E))}function _(E,N){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,l("blur",E)),N!==void 0&&N())})}function F(E){Pe(E),i.platform.is.mobile!==!0?(e.targetRef!==void 0&&e.targetRef.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),l("update:modelValue",null),e.changeEvent===!0&&l("change",null),l("clear",t.modelValue),ge(()=>{const N=d.value;C(),d.value=N})}function y(E){[13,32].includes(E.keyCode)&&F(E)}function z(){const E=[];return n.prepend!==void 0&&E.push(v("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Oe},n.prepend())),E.push(v("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},W())),r.value===!0&&t.noErrorIcon===!1&&E.push(Q("error",[v(De,{name:i.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?E.push(Q("inner-loading-append",n.loading!==void 0?n.loading():[v(Ca,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&E.push(Q("inner-clearable-append",[v(De,{class:"q-field__focusable-action",name:t.clearIcon||i.iconSet.field.clear,tabindex:0,role:"button","aria-label":i.lang.label.clear,onKeyup:y,onClick:F})])),n.append!==void 0&&E.push(v("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Oe},n.append())),e.getInnerAppend!==void 0&&E.push(Q("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&E.push(e.getControlChild()),E}function W(){const E=[];return t.prefix!==void 0&&t.prefix!==null&&E.push(v("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&E.push(e.getShadowControl()),e.getControl!==void 0?E.push(e.getControl()):n.rawControl!==void 0?E.push(n.rawControl()):n.control!==void 0&&E.push(v("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},n.control(k.value))),M.value===!0&&E.push(v("div",{class:p.value},qe(n.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&E.push(v("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),E.concat(qe(n.default))}function ae(){let E,N;r.value===!0?g.value!==null?(E=[v("div",{role:"alert"},g.value)],N=`q--slot-error-${g.value}`):(E=qe(n.error),N="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(E=[v("div",t.hint)],N=`q--slot-hint-${t.hint}`):(E=qe(n.hint),N="q--slot-hint"));const te=t.counter===!0||n.counter!==void 0;if(t.hideBottomSpace===!0&&te===!1&&E===void 0)return;const m=v("div",{key:N,class:"q-field__messages col"},E);return v("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:Oe},[t.hideBottomSpace===!0?m:v(Ut,{name:"q-transition--field-message"},()=>m),te===!0?v("div",{class:"q-field__counter"},n.counter!==void 0?n.counter():e.computedCounter.value):null])}function Q(E,N){return N===null?null:v("div",{key:E,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},N)}let Z=!1;return Tt(()=>{Z=!0}),Rl(()=>{Z===!0&&t.autofocus===!0&&o.focus()}),t.autofocus===!0&&Ge(()=>{o.focus()}),Ce(()=>{s!==null&&clearTimeout(s)}),Object.assign(o,{focus:H,blur:j}),function(){const N=e.getControl===void 0&&n.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...R.value}:R.value;return v(e.tag.value,{ref:e.rootRef,class:[x.value,a.class],style:a.style,...N},[n.before!==void 0?v("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Oe},n.before()):null,v("div",{class:"q-field__inner relative-position col self-stretch"},[v("div",{ref:e.controlRef,class:D.value,tabindex:-1,...e.controlEvents},z()),w.value===!0?ae():null]),n.after!==void 0?v("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Oe},n.after()):null])}}const Jl={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Xt={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},In=Object.keys(Xt);In.forEach(e=>{Xt[e].regex=new RegExp(Xt[e].pattern)});const Qa=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+In.join("")+"])|(.)","g"),en=/[.*+?^${}()|[\]\\]/g,he=String.fromCharCode(1),Wa={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Ua(e,t,l,n){let a,o,i,s,d,h;const r=K(null),g=K(b());function C(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}le(()=>e.type+e.autogrow,B),le(()=>e.mask,q=>{if(q!==void 0)x(g.value,!0);else{const _=H(g.value);B(),e.modelValue!==_&&t("update:modelValue",_)}}),le(()=>e.fillMask+e.reverseFillMask,()=>{r.value===!0&&x(g.value,!0)}),le(()=>e.unmaskedValue,()=>{r.value===!0&&x(g.value)});function b(){if(B(),r.value===!0){const q=R(H(e.modelValue));return e.fillMask!==!1?j(q):q}return e.modelValue}function w(q){if(q0;z--)_+=he;F=F.slice(0,y)+_+F.slice(y)}return F}function B(){if(r.value=e.mask!==void 0&&e.mask.length!==0&&C(),r.value===!1){s=void 0,a="",o="";return}const q=Jl[e.mask]===void 0?e.mask:Jl[e.mask],_=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",F=_.replace(en,"\\$&"),y=[],z=[],W=[];let ae=e.reverseFillMask===!0,Q="",Z="";q.replace(Qa,(m,f,O,G,ne)=>{if(G!==void 0){const P=Xt[G];W.push(P),Z=P.negate,ae===!0&&(z.push("(?:"+Z+"+)?("+P.pattern+"+)?(?:"+Z+"+)?("+P.pattern+"+)?"),ae=!1),z.push("(?:"+Z+"+)?("+P.pattern+")?")}else if(O!==void 0)Q="\\"+(O==="\\"?"":O),W.push(O),y.push("([^"+Q+"]+)?"+Q+"?");else{const P=f!==void 0?f:ne;Q=P==="\\"?"\\\\\\\\":P.replace(en,"\\\\$&"),W.push(P),y.push("([^"+Q+"]+)?"+Q+"?")}});const E=new RegExp("^"+y.join("")+"("+(Q===""?".":"[^"+Q+"]")+"+)?"+(Q===""?"":"["+Q+"]*")+"$"),N=z.length-1,te=z.map((m,f)=>f===0&&e.reverseFillMask===!0?new RegExp("^"+F+"*"+m):f===N?new RegExp("^"+m+"("+(Z===""?".":Z)+"+)?"+(e.reverseFillMask===!0?"$":F+"*")):new RegExp("^"+m));i=W,s=m=>{const f=E.exec(e.reverseFillMask===!0?m:m.slice(0,W.length+1));f!==null&&(m=f.slice(1).join(""));const O=[],G=te.length;for(let ne=0,P=m;netypeof m=="string"?m:he).join(""),o=a.split(he).join(_)}function x(q,_,F){const y=n.value,z=y.selectionEnd,W=y.value.length-z,ae=H(q);_===!0&&B();const Q=R(ae),Z=e.fillMask!==!1?j(Q):Q,E=g.value!==Z;y.value!==Z&&(y.value=Z),E===!0&&(g.value=Z),document.activeElement===y&&ge(()=>{if(Z===o){const te=e.reverseFillMask===!0?o.length:0;y.setSelectionRange(te,te,"forward");return}if(F==="insertFromPaste"&&e.reverseFillMask!==!0){const te=y.selectionEnd;let m=z-1;for(let f=d;f<=m&&fQ.length?1:0:Math.max(0,Z.length-(Z===o?0:Math.min(Q.length,W)+1))+1:z;y.setSelectionRange(te,te,"forward");return}if(e.reverseFillMask===!0)if(E===!0){const te=Math.max(0,Z.length-(Z===o?0:Math.min(Q.length,W+1)));te===1&&z===1?y.setSelectionRange(te,te,"forward"):M.rightReverse(y,te)}else{const te=Z.length-W;y.setSelectionRange(te,te,"backward")}else if(E===!0){const te=Math.max(0,a.indexOf(he),Math.min(Q.length,z)-1);M.right(y,te)}else{const te=z-1;M.right(y,te)}});const N=e.unmaskedValue===!0?H(Z):Z;String(e.modelValue)!==N&&(e.modelValue!==null||N!=="")&&l(N,!0)}function D(q,_,F){const y=R(H(q.value));_=Math.max(0,a.indexOf(he),Math.min(y.length,_)),d=_,q.setSelectionRange(_,F,"forward")}const M={left(q,_){const F=a.slice(_-1).indexOf(he)===-1;let y=Math.max(0,_-1);for(;y>=0;y--)if(a[y]===he){_=y,F===!0&&_++;break}if(y<0&&a[_]!==void 0&&a[_]!==he)return M.right(q,0);_>=0&&q.setSelectionRange(_,_,"backward")},right(q,_){const F=q.value.length;let y=Math.min(F,_+1);for(;y<=F;y++)if(a[y]===he){_=y;break}else a[y-1]===he&&(_=y);if(y>F&&a[_-1]!==void 0&&a[_-1]!==he)return M.left(q,F);q.setSelectionRange(_,_,"forward")},leftReverse(q,_){const F=w(q.value.length);let y=Math.max(0,_-1);for(;y>=0;y--)if(F[y-1]===he){_=y;break}else if(F[y]===he&&(_=y,y===0))break;if(y<0&&F[_]!==void 0&&F[_]!==he)return M.rightReverse(q,0);_>=0&&q.setSelectionRange(_,_,"backward")},rightReverse(q,_){const F=q.value.length,y=w(F),z=y.slice(0,_+1).indexOf(he)===-1;let W=Math.min(F,_+1);for(;W<=F;W++)if(y[W-1]===he){_=W,_>0&&z===!0&&_--;break}if(W>F&&y[_-1]!==void 0&&y[_-1]!==he)return M.leftReverse(q,F);q.setSelectionRange(_,_,"forward")}};function p(q){t("click",q),h=void 0}function k(q){if(t("keydown",q),Pn(q)===!0||q.altKey===!0)return;const _=n.value,F=_.selectionStart,y=_.selectionEnd;if(q.shiftKey||(h=void 0),q.keyCode===37||q.keyCode===39){q.shiftKey&&h===void 0&&(h=_.selectionDirection==="forward"?F:y);const z=M[(q.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(q.preventDefault(),z(_,h===F?y:F),q.shiftKey){const W=_.selectionStart;_.setSelectionRange(Math.min(h,W),Math.max(h,W),"forward")}}else q.keyCode===8&&e.reverseFillMask!==!0&&F===y?(M.left(_,F),_.setSelectionRange(_.selectionStart,y,"backward")):q.keyCode===46&&e.reverseFillMask===!0&&F===y&&(M.rightReverse(_,y),_.setSelectionRange(F,_.selectionEnd,"forward"))}function R(q){if(q==null||q==="")return"";if(e.reverseFillMask===!0)return V(q);const _=i;let F=0,y="";for(let z=0;z<_.length;z++){const W=q[F],ae=_[z];if(typeof ae=="string")y+=ae,W===ae&&F++;else if(W!==void 0&&ae.regex.test(W))y+=ae.transform!==void 0?ae.transform(W):W,F++;else return y}return y}function V(q){const _=i,F=a.indexOf(he);let y=q.length-1,z="";for(let W=_.length-1;W>=0&&y!==-1;W--){const ae=_[W];let Q=q[y];if(typeof ae=="string")z=ae+z,Q===ae&&y--;else if(Q!==void 0&&ae.regex.test(Q))do z=(ae.transform!==void 0?ae.transform(Q):Q)+z,y--,Q=q[y];while(F===W&&Q!==void 0&&ae.regex.test(Q));else return z}return z}function H(q){return typeof q!="string"||s===void 0?typeof q=="number"?s(""+q):q:s(q)}function j(q){return o.length-q.length<=0?q:e.reverseFillMask===!0&&q.length!==0?o.slice(0,-q.length)+q:q+o.slice(q.length)}return{innerValue:g,hasMask:r,moveCursorForPaste:D,updateMaskValue:x,onMaskedKeydown:k,onMaskedClick:p}}const Il={name:String};function Za(e={}){return(t,l,n)=>{t[l](v("input",{class:"hidden"+(n||""),...e.value}))}}function Hn(e){return c(()=>e.name||e.for)}function Xa(e,t){function l(){const n=e.modelValue;try{const a="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(n)===n&&("length"in n?Array.from(n):[n]).forEach(o=>{a.items.add(o)}),{files:a.files}}catch{return{files:void 0}}}return t===!0?c(()=>{if(e.type==="file")return l()}):c(l)}const Ya=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Ga=/[\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,Ja=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,eo=/[a-z0-9_ -]$/i;function On(e){return function(l){if(l.type==="compositionend"||l.type==="change"){if(l.target.qComposing!==!0)return;l.target.qComposing=!1,e(l)}else l.type==="compositionupdate"&&l.target.qComposing!==!0&&typeof l.data=="string"&&(Le.is.firefox===!0?eo.test(l.data)===!1:Ya.test(l.data)===!0||Ga.test(l.data)===!0||Ja.test(l.data)===!0)===!0&&(l.target.qComposing=!0)}}var tn=be({name:"QInput",inheritAttrs:!1,props:{...al,...Wa,...Il,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Fl,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:l}){const{proxy:n}=de(),{$q:a}=n,o={};let i=NaN,s,d,h=null,r;const g=K(null),C=Hn(e),{innerValue:b,hasMask:w,moveCursorForPaste:B,updateMaskValue:x,onMaskedKeydown:D,onMaskedClick:M}=Ua(e,t,Q,g),p=Xa(e,!0),k=c(()=>Bt(b.value)),R=On(W),V=Al({changeEvent:!0}),H=c(()=>e.type==="textarea"||e.autogrow===!0),j=c(()=>H.value===!0||["text","search","url","tel","password"].includes(e.type)),q=c(()=>{const f={...V.splitAttrs.listeners.value,onInput:W,onPaste:z,onChange:E,onBlur:N,onFocus:Xe};return f.onCompositionstart=f.onCompositionupdate=f.onCompositionend=R,w.value===!0&&(f.onKeydown=D,f.onClick=M),e.autogrow===!0&&(f.onAnimationend=ae),f}),_=c(()=>{const f={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:C.value,...V.splitAttrs.attributes.value,id:V.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return H.value===!1&&(f.type=e.type),e.autogrow===!0&&(f.rows=1),f});le(()=>e.type,()=>{g.value&&(g.value.value=e.modelValue)}),le(()=>e.modelValue,f=>{if(w.value===!0){if(d===!0&&(d=!1,String(f)===i))return;x(f)}else b.value!==f&&(b.value=f,e.type==="number"&&o.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete o.value));e.autogrow===!0&&ge(Z)}),le(()=>e.autogrow,f=>{f===!0?ge(Z):g.value!==null&&l.rows>0&&(g.value.style.height="auto")}),le(()=>e.dense,()=>{e.autogrow===!0&&ge(Z)});function F(){nl(()=>{const f=document.activeElement;g.value!==null&&g.value!==f&&(f===null||f.id!==V.targetUid.value)&&g.value.focus({preventScroll:!0})})}function y(){g.value!==null&&g.value.select()}function z(f){if(w.value===!0&&e.reverseFillMask!==!0){const O=f.target;B(O,O.selectionStart,O.selectionEnd)}t("paste",f)}function W(f){if(!f||!f.target)return;if(e.type==="file"){t("update:modelValue",f.target.files);return}const O=f.target.value;if(f.target.qComposing===!0){o.value=O;return}if(w.value===!0)x(O,!1,f.inputType);else if(Q(O),j.value===!0&&f.target===document.activeElement){const{selectionStart:G,selectionEnd:ne}=f.target;G!==void 0&&ne!==void 0&&ge(()=>{f.target===document.activeElement&&O.indexOf(f.target.value)===0&&f.target.setSelectionRange(G,ne)})}e.autogrow===!0&&Z()}function ae(f){t("animationend",f),Z()}function Q(f,O){r=()=>{h=null,e.type!=="number"&&o.hasOwnProperty("value")===!0&&delete o.value,e.modelValue!==f&&i!==f&&(i=f,O===!0&&(d=!0),t("update:modelValue",f),ge(()=>{i===f&&(i=NaN)})),r=void 0},e.type==="number"&&(s=!0,o.value=f),e.debounce!==void 0?(h!==null&&clearTimeout(h),o.value=f,h=setTimeout(r,e.debounce)):r()}function Z(){requestAnimationFrame(()=>{const f=g.value;if(f!==null){const O=f.parentNode.style,{scrollTop:G}=f,{overflowY:ne,maxHeight:P}=a.platform.is.firefox===!0?{}:window.getComputedStyle(f),$=ne!==void 0&&ne!=="scroll";$===!0&&(f.style.overflowY="hidden"),O.marginBottom=f.scrollHeight-1+"px",f.style.height="1px",f.style.height=f.scrollHeight+"px",$===!0&&(f.style.overflowY=parseInt(P,10){g.value!==null&&(g.value.value=b.value!==void 0?b.value:"")})}function te(){return o.hasOwnProperty("value")===!0?o.value:b.value!==void 0?b.value:""}Ce(()=>{N()}),Ge(()=>{e.autogrow===!0&&Z()}),Object.assign(V,{innerValue:b,fieldClass:c(()=>`q-${H.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:c(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:g,emitValue:Q,hasValue:k,floatingLabel:c(()=>k.value===!0&&(e.type!=="number"||isNaN(b.value)===!1)||Bt(e.displayValue)),getControl:()=>v(H.value===!0?"textarea":"input",{ref:g,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,..._.value,...q.value,...e.type!=="file"?{value:te()}:p.value}),getShadowControl:()=>v("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(H.value===!0?"":" text-no-wrap")},[v("span",{class:"invisible"},te()),v("span",e.shadowText)])});const m=$l(V);return Object.assign(n,{focus:F,select:y,getNativeElement:()=>g.value}),Ye(n,"nativeEl",()=>g.value),m}}),to=be({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:l}){const n=de(),{proxy:{$q:a}}=n,o=i=>{l("click",i)};return()=>{if(e.props===void 0)return v("th",{class:e.autoWidth===!0?"q-table--col-auto-width":"",onClick:o},qe(t.default));let i,s;const d=n.vnode.key;if(d){if(i=e.props.colsMap[d],i===void 0)return}else i=e.props.col;if(i.sortable===!0){const r=i.align==="right"?"unshift":"push";s=Rn(t.default,[]),s[r](v(De,{class:i.__iconClass,name:a.iconSet.table.arrowUp}))}else s=qe(t.default);const h={class:i.__thClass+(e.autoWidth===!0?" q-table--col-auto-width":""),style:i.headerStyle,onClick:r=>{i.sortable===!0&&e.props.sort(i),o(r)}};return v("th",h,s)}}});const lo={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},hl={xs:2,sm:4,md:8,lg:16,xl:24};var no=be({name:"QSeparator",props:{...ze,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=de(),l=Ne(e,t.proxy.$q),n=c(()=>e.vertical===!0?"vertical":"horizontal"),a=c(()=>` q-separator--${n.value}`),o=c(()=>e.inset!==!1?`${a.value}-${lo[e.inset]}`:""),i=c(()=>`q-separator${a.value}${o.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(l.value===!0?" q-separator--dark":"")),s=c(()=>{const d={};if(e.size!==void 0&&(d[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const h=e.spaced===!0?`${hl.md}px`:e.spaced in hl?`${hl[e.spaced]}px`:e.spaced,r=e.vertical===!0?["Left","Right"]:["Top","Bottom"];d[`margin${r[0]}`]=d[`margin${r[1]}`]=h}return d});return()=>v("hr",{class:i.value,style:s.value,"aria-orientation":n.value})}}),ao=be({name:"QList",props:{...ze,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const l=de(),n=Ne(e,l.proxy.$q),a=c(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(n.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>v(e.tag,{class:a.value},qe(t.default))}});const oo=["horizontal","vertical","cell","none"];var io=be({name:"QMarkupTable",props:{...ze,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>oo.includes(e)}},setup(e,{slots:t}){const l=de(),n=Ne(e,l.proxy.$q),a=c(()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(n.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(e.dense===!0?" q-table--dense":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")+(e.square===!0?" q-table--square":"")+(e.wrapCells===!1?" q-table--no-wrap":""));return()=>v("div",{class:a.value},[v("table",{class:"q-table"},qe(t.default))])}});function Ln(e,t){return v("div",e,[v("table",{class:"q-table"},t)])}let Yt=!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,Yt=e.scrollLeft>=0,e.remove()}const He=1e3,ro=["start","center","end","start-force","center-force","end-force"],Dn=Array.prototype.filter,uo=window.getComputedStyle(document.body).overflowAnchor===void 0?ca:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const l=e.children||[];Dn.call(l,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const n=l[t];n&&n.dataset&&(n.dataset.qVsAnchor="")}))};function wt(e,t){return e+t}function bl(e,t,l,n,a,o,i,s){const d=e===window?document.scrollingElement||document.documentElement:e,h=a===!0?"offsetWidth":"offsetHeight",r={scrollStart:0,scrollViewSize:-i-s,scrollMaxSize:0,offsetStart:-i,offsetEnd:-s};if(a===!0?(e===window?(r.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,r.scrollViewSize+=document.documentElement.clientWidth):(r.scrollStart=d.scrollLeft,r.scrollViewSize+=d.clientWidth),r.scrollMaxSize=d.scrollWidth,o===!0&&(r.scrollStart=(Yt===!0?r.scrollMaxSize-r.scrollViewSize:0)-r.scrollStart)):(e===window?(r.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,r.scrollViewSize+=document.documentElement.clientHeight):(r.scrollStart=d.scrollTop,r.scrollViewSize+=d.clientHeight),r.scrollMaxSize=d.scrollHeight),l!==null)for(let g=l.previousElementSibling;g!==null;g=g.previousElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetStart+=g[h]);if(n!==null)for(let g=n.nextElementSibling;g!==null;g=g.nextElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(r.offsetEnd+=g[h]);if(t!==e){const g=d.getBoundingClientRect(),C=t.getBoundingClientRect();a===!0?(r.offsetStart+=C.left-g.left,r.offsetEnd-=C.width):(r.offsetStart+=C.top-g.top,r.offsetEnd-=C.height),e!==window&&(r.offsetStart+=r.scrollStart),r.offsetEnd+=r.scrollMaxSize-r.offsetStart}return r}function ln(e,t,l,n){t==="end"&&(t=(e===window?document.body:e)[l===!0?"scrollWidth":"scrollHeight"]),e===window?l===!0?(n===!0&&(t=(Yt===!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):l===!0?(n===!0&&(t=(Yt===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Ct(e,t,l,n){if(l>=n)return 0;const a=t.length,o=Math.floor(l/He),i=Math.floor((n-1)/He)+1;let s=e.slice(o,i).reduce(wt,0);return l%He!==0&&(s-=t.slice(o*He,l).reduce(wt,0)),n%He!==0&&n!==a&&(s-=t.slice(n,i*He).reduce(wt,0)),s}const zn={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]},Nn=Object.keys(zn),Vl={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...zn};function jn({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:l,virtualScrollItemSizeComputed:n}){const a=de(),{props:o,emit:i,proxy:s}=a,{$q:d}=s;let h,r,g,C=[],b;const w=K(0),B=K(0),x=K({}),D=K(null),M=K(null),p=K(null),k=K({from:0,to:0}),R=c(()=>o.tableColspan!==void 0?o.tableColspan:100);n===void 0&&(n=c(()=>o.virtualScrollItemSize));const V=c(()=>n.value+";"+o.virtualScrollHorizontal),H=c(()=>V.value+";"+o.virtualScrollSliceRatioBefore+";"+o.virtualScrollSliceRatioAfter);le(H,()=>{Q()}),le(V,j);function j(){ae(r,!0)}function q(m){ae(m===void 0?r:m)}function _(m,f){const O=t();if(O==null||O.nodeType===8)return;const G=bl(O,l(),D.value,M.value,o.virtualScrollHorizontal,d.lang.rtl,o.virtualScrollStickySizeStart,o.virtualScrollStickySizeEnd);g!==G.scrollViewSize&&Q(G.scrollViewSize),y(O,G,Math.min(e.value-1,Math.max(0,parseInt(m,10)||0)),0,ro.indexOf(f)!==-1?f:r!==-1&&m>r?"end":"start")}function F(){const m=t();if(m==null||m.nodeType===8)return;const f=bl(m,l(),D.value,M.value,o.virtualScrollHorizontal,d.lang.rtl,o.virtualScrollStickySizeStart,o.virtualScrollStickySizeEnd),O=e.value-1,G=f.scrollMaxSize-f.offsetStart-f.offsetEnd-B.value;if(h===f.scrollStart)return;if(f.scrollMaxSize<=0){y(m,f,0,0);return}g!==f.scrollViewSize&&Q(f.scrollViewSize),z(k.value.from);const ne=Math.floor(f.scrollMaxSize-Math.max(f.scrollViewSize,f.offsetEnd)-Math.min(b[O],f.scrollViewSize/2));if(ne>0&&Math.ceil(f.scrollStart)>=ne){y(m,f,O,f.scrollMaxSize-f.offsetEnd-C.reduce(wt,0));return}let P=0,$=f.scrollStart-f.offsetStart,oe=$;if($<=G&&$+f.scrollViewSize>=w.value)$-=w.value,P=k.value.from,oe=$;else for(let T=0;$>=C[T]&&P0&&P-f.scrollViewSize?(P++,oe=$):oe=b[P]+$;y(m,f,P,oe)}function y(m,f,O,G,ne){const P=typeof ne=="string"&&ne.indexOf("-force")!==-1,$=P===!0?ne.replace("-force",""):ne,oe=$!==void 0?$:"start";let T=Math.max(0,O-x.value[oe]),ce=T+x.value.total;ce>e.value&&(ce=e.value,T=Math.max(0,ce-x.value.total)),h=f.scrollStart;const xe=T!==k.value.from||ce!==k.value.to;if(xe===!1&&$===void 0){E(O);return}const{activeElement:je}=document,pe=p.value;xe===!0&&pe!==null&&pe!==je&&pe.contains(je)===!0&&(pe.addEventListener("focusout",W),setTimeout(()=>{pe!==null&&pe.removeEventListener("focusout",W)})),uo(pe,O-T);const Ke=$!==void 0?b.slice(T,O).reduce(wt,0):0;if(xe===!0){const Ee=ce>=k.value.from&&T<=k.value.to?k.value.to:ce;k.value={from:T,to:Ee},w.value=Ct(C,b,0,T),B.value=Ct(C,b,ce,e.value),requestAnimationFrame(()=>{k.value.to!==ce&&h===f.scrollStart&&(k.value={from:k.value.from,to:ce},B.value=Ct(C,b,ce,e.value))})}requestAnimationFrame(()=>{if(h!==f.scrollStart)return;xe===!0&&z(T);const Ee=b.slice(T,O).reduce(wt,0),Fe=Ee+f.offsetStart+w.value,Qe=Fe+b[O];let Je=Fe+G;if($!==void 0){const pt=Ee-Ke,et=f.scrollStart+pt;Je=P!==!0&&etT.classList&&T.classList.contains("q-virtual-scroll--skip")===!1),G=O.length,ne=o.virtualScrollHorizontal===!0?T=>T.getBoundingClientRect().width:T=>T.offsetHeight;let P=m,$,oe;for(let T=0;T=G;P--)b[P]=O;const ne=Math.floor((e.value-1)/He);C=[];for(let P=0;P<=ne;P++){let $=0;const oe=Math.min((P+1)*He,e.value);for(let T=P*He;T=0?(z(k.value.from),ge(()=>{_(m)})):N()}function Q(m){if(m===void 0&&typeof window!="undefined"){const $=t();$!=null&&$.nodeType!==8&&(m=bl($,l(),D.value,M.value,o.virtualScrollHorizontal,d.lang.rtl,o.virtualScrollStickySizeStart,o.virtualScrollStickySizeEnd).scrollViewSize)}g=m;const f=parseFloat(o.virtualScrollSliceRatioBefore)||0,O=parseFloat(o.virtualScrollSliceRatioAfter)||0,G=1+f+O,ne=m===void 0||m<=0?1:Math.ceil(m/n.value),P=Math.max(1,ne,Math.ceil((o.virtualScrollSliceSize>0?o.virtualScrollSliceSize:10)/G));x.value={total:Math.ceil(P*G),start:Math.ceil(P*f),center:Math.ceil(P*(.5+f)),end:Math.ceil(P*(1+f)),view:ne}}function Z(m,f){const O=o.virtualScrollHorizontal===!0?"width":"height",G={["--q-virtual-scroll-item-"+O]:n.value+"px"};return[m==="tbody"?v(m,{class:"q-virtual-scroll__padding",key:"before",ref:D},[v("tr",[v("td",{style:{[O]:`${w.value}px`,...G},colspan:R.value})])]):v(m,{class:"q-virtual-scroll__padding",key:"before",ref:D,style:{[O]:`${w.value}px`,...G}}),v(m,{class:"q-virtual-scroll__content",key:"content",ref:p,tabindex:-1},f.flat()),m==="tbody"?v(m,{class:"q-virtual-scroll__padding",key:"after",ref:M},[v("tr",[v("td",{style:{[O]:`${B.value}px`,...G},colspan:R.value})])]):v(m,{class:"q-virtual-scroll__padding",key:"after",ref:M,style:{[O]:`${B.value}px`,...G}})]}function E(m){r!==m&&(o.onVirtualScroll!==void 0&&i("virtualScroll",{index:m,from:k.value.from,to:k.value.to-1,direction:m{Q()});let te=!1;return Tt(()=>{te=!0}),Rl(()=>{if(te!==!0)return;const m=t();h!==void 0&&m!==void 0&&m!==null&&m.nodeType!==8?ln(m,h,o.virtualScrollHorizontal,d.lang.rtl):_(r)}),Ce(()=>{N.cancel()}),Object.assign(s,{scrollTo:_,reset:j,refresh:q}),{virtualScrollSliceRange:k,virtualScrollSliceSizeComputed:x,setVirtualScrollSize:Q,onVirtualScrollEvt:N,localResetVirtualScroll:ae,padVirtualScroll:Z,scrollTo:_,reset:j,refresh:q}}const so={list:ao,table:io},co=["list","table","__qtable"];var fo=be({name:"QVirtualScroll",props:{...Vl,type:{type:String,default:"list",validator:e=>co.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:Fn},setup(e,{slots:t,attrs:l}){let n;const a=K(null),o=c(()=>e.itemsSize>=0&&e.itemsFn!==void 0?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0),{virtualScrollSliceRange:i,localResetVirtualScroll:s,padVirtualScroll:d,onVirtualScrollEvt:h}=jn({virtualScrollLength:o,getVirtualScrollTarget:w,getVirtualScrollEl:b}),r=c(()=>{if(o.value===0)return[];const M=(p,k)=>({index:i.value.from+k,item:p});return e.itemsFn===void 0?e.items.slice(i.value.from,i.value.to).map(M):e.itemsFn(i.value.from,i.value.to-i.value.from).map(M)}),g=c(()=>"q-virtual-scroll q-virtual-scroll"+(e.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(e.scrollTarget!==void 0?"":" scroll")),C=c(()=>e.scrollTarget!==void 0?{}:{tabindex:0});le(o,()=>{s()}),le(()=>e.scrollTarget,()=>{x(),B()});function b(){return a.value.$el||a.value}function w(){return n}function B(){n=An(b(),e.scrollTarget),n.addEventListener("scroll",h,Te.passive)}function x(){n!==void 0&&(n.removeEventListener("scroll",h,Te.passive),n=void 0)}function D(){let M=d(e.type==="list"?"div":"tbody",r.value.map(t.default));return t.before!==void 0&&(M=t.before().concat(M)),ll(t.after,M)}return Bl(()=>{s()}),Ge(()=>{B()}),Rl(()=>{B()}),Tt(()=>{x()}),Ce(()=>{x()}),()=>{if(t.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return e.type==="__qtable"?Ln({ref:a,class:"q-table__middle "+g.value},D()):v(so[e.type],{...l,ref:a,class:[l.class,g.value],...C.value},D)}}}),vo=be({name:"QField",inheritAttrs:!1,props:{...al,tag:{type:String,default:"label"}},emits:Fl,setup(){return $l(Al({tagProp:!0}))}});const mo={xs:8,sm:10,md:14,lg:20,xl:24};var go=be({name:"QChip",props:{...ze,...Tl,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:l}){const{proxy:{$q:n}}=de(),a=Ne(e,n),o=El(e,mo),i=c(()=>e.selected===!0||e.icon!==void 0),s=c(()=>e.selected===!0?e.iconSelected||n.iconSet.chip.selected:e.icon),d=c(()=>e.iconRemove||n.iconSet.chip.remove),h=c(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),r=c(()=>{const x=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}`:"")+(x?` text-${x} 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":"")+(h.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(a.value===!0?" q-chip--dark q-dark":"")}),g=c(()=>{const x=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},D={...x,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||n.lang.label.remove};return{chip:x,remove:D}});function C(x){x.keyCode===13&&b(x)}function b(x){e.disable||(l("update:selected",!e.selected),l("click",x))}function w(x){(x.keyCode===void 0||x.keyCode===13)&&(Pe(x),e.disable===!1&&(l("update:modelValue",!1),l("remove")))}function B(){const x=[];h.value===!0&&x.push(v("div",{class:"q-focus-helper"})),i.value===!0&&x.push(v(De,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const D=e.label!==void 0?[v("div",{class:"ellipsis"},[e.label])]:void 0;return x.push(v("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Va(t.default,D))),e.iconRight&&x.push(v(De,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&x.push(v(De,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:d.value,...g.value.remove,onClick:w,onKeyup:w})),x}return()=>{if(e.modelValue===!1)return;const x={class:r.value,style:o.value};return h.value===!0&&Object.assign(x,g.value.chip,{onClick:b,onKeyup:C}),qa("div",x,B(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Pa,e.ripple]])}}}),ho=be({name:"QItem",props:{...ze,...Ma,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:l}){const{proxy:{$q:n}}=de(),a=Ne(e,n),{hasLink:o,linkAttrs:i,linkClass:s,linkTag:d,navigateOnClick:h}=Ra(),r=K(null),g=K(null),C=c(()=>e.clickable===!0||o.value===!0||e.tag==="label"),b=c(()=>e.disable!==!0&&C.value===!0),w=c(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(a.value===!0?" q-item--dark":"")+(o.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(b.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":""):"")),B=c(()=>{if(e.insetLevel===void 0)return null;const p=n.lang.rtl===!0?"Right":"Left";return{["padding"+p]:16+e.insetLevel*56+"px"}});function x(p){b.value===!0&&(g.value!==null&&(p.qKeyEvent!==!0&&document.activeElement===r.value?g.value.focus():document.activeElement===g.value&&r.value.focus()),h(p))}function D(p){if(b.value===!0&&tl(p,[13,32])===!0){Pe(p),p.qKeyEvent=!0;const k=new MouseEvent("click",p);k.qKeyEvent=!0,r.value.dispatchEvent(k)}l("keyup",p)}function M(){const p=Rn(t.default,[]);return b.value===!0&&p.unshift(v("div",{class:"q-focus-helper",tabindex:-1,ref:g})),p}return()=>{const p={ref:r,class:w.value,style:B.value,role:"listitem",onClick:x,onKeyup:D};return b.value===!0?(p.tabindex=e.tabindex||"0",Object.assign(p,i.value)):C.value===!0&&(p["aria-disabled"]="true"),v(d.value,p,M())}}}),bo=be({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const l=c(()=>`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()=>v("div",{class:l.value},qe(t.default))}}),yo=be({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const l=c(()=>parseInt(e.lines,10)),n=c(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(l.value===1?" ellipsis":"")),a=c(()=>e.lines!==void 0&&l.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l.value}:null);return()=>v("div",{style:a.value,class:n.value},qe(t.default))}});function So(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),da.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}const wo={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},xo={...wo,contextMenu:Boolean};function po({showing:e,avoidEmit:t,configureAnchorEl:l}){const{props:n,proxy:a,emit:o}=de(),i=K(null);let s=null;function d(b){return i.value===null?!1:b===void 0||b.touches===void 0||b.touches.length<=1}const h={};l===void 0&&(Object.assign(h,{hide(b){a.hide(b)},toggle(b){a.toggle(b),b.qAnchorHandled=!0},toggleKey(b){tl(b,13)===!0&&h.toggle(b)},contextClick(b){a.hide(b),Oe(b),ge(()=>{a.show(b),b.qAnchorHandled=!0})},prevent:Oe,mobileTouch(b){if(h.mobileCleanup(b),d(b)!==!0)return;a.hide(b),i.value.classList.add("non-selectable");const w=b.target;zl(h,"anchor",[[w,"touchmove","mobileCleanup","passive"],[w,"touchend","mobileCleanup","passive"],[w,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,a.show(b),b.qAnchorHandled=!0},300)},mobileCleanup(b){i.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&b!==void 0&&So()}}),l=function(b=n.contextMenu){if(n.noParentEvent===!0||i.value===null)return;let w;b===!0?a.$q.platform.is.mobile===!0?w=[[i.value,"touchstart","mobileTouch","passive"]]:w=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:w=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],zl(h,"anchor",w)});function r(){fa(h,"anchor")}function g(b){for(i.value=b;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;l()}function C(){if(n.target===!1||n.target===""||a.$el.parentNode===null)i.value=null;else if(n.target===!0)g(a.$el.parentNode);else{let b=n.target;if(typeof n.target=="string")try{b=document.querySelector(n.target)}catch{b=void 0}b!=null?(i.value=b.$el||b,l()):(i.value=null,console.error(`Anchor: target "${n.target}" not found`))}}return le(()=>n.contextMenu,b=>{i.value!==null&&(r(),l(b))}),le(()=>n.target,()=>{i.value!==null&&r(),C()}),le(()=>n.noParentEvent,b=>{i.value!==null&&(b===!0?r():l())}),Ge(()=>{C(),t!==!0&&n.modelValue===!0&&i.value===null&&o("update:modelValue",!1)}),Ce(()=>{s!==null&&clearTimeout(s),r()}),{anchorEl:i,canShow:d,anchorEvents:h}}function ko(e,t){const l=K(null);let n;function a(s,d){const h=`${d!==void 0?"add":"remove"}EventListener`,r=d!==void 0?d:n;s!==window&&s[h]("scroll",r,Te.passive),window[h]("scroll",r,Te.passive),n=d}function o(){l.value!==null&&(a(l.value),l.value=null)}const i=le(()=>e.noParentEvent,()=>{l.value!==null&&(o(),t())});return Ce(i),{localScrollTarget:l,unconfigureScrollTarget:o,changeScrollEvent:a}}const Kn={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Qn=["beforeShow","show","beforeHide","hide"];function Wn({showing:e,canShow:t,hideOnRouteChange:l,handleShow:n,handleHide:a,processOnMount:o}){const i=de(),{props:s,emit:d,proxy:h}=i;let r;function g(M){e.value===!0?w(M):C(M)}function C(M){if(s.disable===!0||M!==void 0&&M.qAnchorHandled===!0||t!==void 0&&t(M)!==!0)return;const p=s["onUpdate:modelValue"]!==void 0;p===!0&&(d("update:modelValue",!0),r=M,ge(()=>{r===M&&(r=void 0)})),(s.modelValue===null||p===!1)&&b(M)}function b(M){e.value!==!0&&(e.value=!0,d("beforeShow",M),n!==void 0?n(M):d("show",M))}function w(M){if(s.disable===!0)return;const p=s["onUpdate:modelValue"]!==void 0;p===!0&&(d("update:modelValue",!1),r=M,ge(()=>{r===M&&(r=void 0)})),(s.modelValue===null||p===!1)&&B(M)}function B(M){e.value!==!1&&(e.value=!1,d("beforeHide",M),a!==void 0?a(M):d("hide",M))}function x(M){s.disable===!0&&M===!0?s["onUpdate:modelValue"]!==void 0&&d("update:modelValue",!1):M===!0!==e.value&&(M===!0?b:B)(r)}le(()=>s.modelValue,x),l!==void 0&&Bn(i)===!0&&le(()=>h.$route.fullPath,()=>{l.value===!0&&e.value===!0&&w()}),o===!0&&Ge(()=>{x(s.modelValue)});const D={show:C,hide:w,toggle:g};return Object.assign(h,D),D}let _o=1,Co=document.body;function qo(e,t){const l=document.createElement("div");if(l.id=t!==void 0?`q-portal--${t}--${_o++}`:e,Nl.globalNodes!==void 0){const n=Nl.globalNodes.class;n!==void 0&&(l.className=n)}return Co.appendChild(l),l}function Vo(e){e.remove()}const Mt=[];function Po(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return vl(e)}else if(e.__qPortal===!0){const l=vl(e);return l!==void 0&&l.$options.name==="QPopupProxy"?(e.hide(t),l):e}e=vl(e)}while(e!=null)}const Mo=be({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function Ro(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 Un(e,t,l,n){const a=K(!1),o=K(!1);let i=null;const s={},d=n==="dialog"&&Ro(e);function h(g){if(g===!0){Gl(s),o.value=!0;return}o.value=!1,a.value===!1&&(d===!1&&i===null&&(i=qo(!1,n)),a.value=!0,Mt.push(e.proxy),Na(s))}function r(g){if(o.value=!1,g!==!0)return;Gl(s),a.value=!1;const C=Mt.indexOf(e.proxy);C!==-1&&Mt.splice(C,1),i!==null&&(Vo(i),i=null)}return va(()=>{r(!0)}),e.proxy.__qPortal=!0,Ye(e.proxy,"contentEl",()=>t.value),{showPortal:h,hidePortal:r,portalIsActive:a,portalIsAccessible:o,renderPortal:()=>d===!0?l():a.value===!0?[v(ma,{to:i},v(Mo,l))]:void 0}}const Zn={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Xn(e,t=()=>{},l=()=>{}){return{transitionProps:c(()=>{const n=`q-transition--${e.transitionShow||t()}`,a=`q-transition--${e.transitionHide||l()}`;return{appear:!0,enterFromClass:`${n}-enter-from`,enterActiveClass:`${n}-enter-active`,enterToClass:`${n}-enter-to`,leaveFromClass:`${a}-leave-from`,leaveActiveClass:`${a}-leave-active`,leaveToClass:`${a}-leave-to`}}),transitionStyle:c(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Yn(){let e;const t=de();function l(){e=void 0}return Tt(l),Ce(l),{removeTick:l,registerTick(n){e=n,ge(()=>{e===n&&(Tn(t)===!1&&e(),e=void 0)})}}}function Gn(){let e=null;const t=de();function l(){e!==null&&(clearTimeout(e),e=null)}return Tt(l),Ce(l),{removeTimeout:l,registerTimeout(n,a){l(),Tn(t)===!1&&(e=setTimeout(()=>{e=null,n()},a))}}}const it=[];let xt;function Bo(e){xt=e.keyCode===27}function To(){xt===!0&&(xt=!1)}function Eo(e){xt===!0&&(xt=!1,tl(e,27)===!0&&it[it.length-1](e))}function Jn(e){window[e]("keydown",Bo),window[e]("blur",To),window[e]("keyup",Eo),xt=!1}function ea(e){Le.is.desktop===!0&&(it.push(e),it.length===1&&Jn("addEventListener"))}function Gt(e){const t=it.indexOf(e);t!==-1&&(it.splice(t,1),it.length===0&&Jn("removeEventListener"))}const rt=[];function ta(e){rt[rt.length-1](e)}function la(e){Le.is.desktop===!0&&(rt.push(e),rt.length===1&&document.body.addEventListener("focusin",ta))}function Pl(e){const t=rt.indexOf(e);t!==-1&&(rt.splice(t,1),rt.length===0&&document.body.removeEventListener("focusin",ta))}const{notPassiveCapture:Jt}=Te,ut=[];function el(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let l=Mt.length-1;for(;l>=0;){const n=Mt[l].$;if(n.type.name==="QTooltip"){l--;continue}if(n.type.name!=="QDialog")break;if(n.props.seamless!==!0)return;l--}for(let n=ut.length-1;n>=0;n--){const a=ut[n];if((a.anchorEl.value===null||a.anchorEl.value.contains(t)===!1)&&(t===document.body||a.innerRef.value!==null&&a.innerRef.value.contains(t)===!1))e.qClickOutside=!0,a.onClickOutside(e);else return}}function Fo(e){ut.push(e),ut.length===1&&(document.addEventListener("mousedown",el,Jt),document.addEventListener("touchstart",el,Jt))}function nn(e){const t=ut.findIndex(l=>l===e);t!==-1&&(ut.splice(t,1),ut.length===0&&(document.removeEventListener("mousedown",el,Jt),document.removeEventListener("touchstart",el,Jt)))}let an,on;function rn(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 Ao(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}const Ml={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Ml[`${e}#ltr`]=e,Ml[`${e}#rtl`]=e});function un(e,t){const l=e.split(" ");return{vertical:l[0],horizontal:Ml[`${l[1]}#${t===!0?"rtl":"ltr"}`]}}function $o(e,t){let{top:l,left:n,right:a,bottom:o,width:i,height:s}=e.getBoundingClientRect();return t!==void 0&&(l-=t[1],n-=t[0],o+=t[1],a+=t[0],i+=t[0],s+=t[1]),{top:l,bottom:o,height:s,left:n,right:a,width:i,middle:n+(a-n)/2,center:l+(o-l)/2}}function Io(e,t,l){let{top:n,left:a}=e.getBoundingClientRect();return n+=t.top,a+=t.left,l!==void 0&&(n+=l[1],a+=l[0]),{top:n,bottom:n+1,height:1,left:a,right:a+1,width:1,middle:a,center:n}}function Ho(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function sn(e,t,l,n){return{top:e[l.vertical]-t[n.vertical],left:e[l.horizontal]-t[n.horizontal]}}function na(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{na(e,t+1)},10);return}const{targetEl:l,offset:n,anchorEl:a,anchorOrigin:o,selfOrigin:i,absoluteOffset:s,fit:d,cover:h,maxHeight:r,maxWidth:g}=e;if(Le.is.ios===!0&&window.visualViewport!==void 0){const V=document.body.style,{offsetLeft:H,offsetTop:j}=window.visualViewport;H!==an&&(V.setProperty("--q-pe-left",H+"px"),an=H),j!==on&&(V.setProperty("--q-pe-top",j+"px"),on=j)}const{scrollLeft:C,scrollTop:b}=l,w=s===void 0?$o(a,h===!0?[0,0]:n):Io(a,s,n);Object.assign(l.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:g||"100vw",maxHeight:r||"100vh",visibility:"visible"});const{offsetWidth:B,offsetHeight:x}=l,{elWidth:D,elHeight:M}=d===!0||h===!0?{elWidth:Math.max(w.width,B),elHeight:h===!0?Math.max(w.height,x):x}:{elWidth:B,elHeight:x};let p={maxWidth:g,maxHeight:r};(d===!0||h===!0)&&(p.minWidth=w.width+"px",h===!0&&(p.minHeight=w.height+"px")),Object.assign(l.style,p);const k=Ho(D,M);let R=sn(w,k,o,i);if(s===void 0||n===void 0)yl(R,w,k,o,i);else{const{top:V,left:H}=R;yl(R,w,k,o,i);let j=!1;if(R.top!==V){j=!0;const q=2*n[1];w.center=w.top-=q,w.bottom-=q+2}if(R.left!==H){j=!0;const q=2*n[0];w.middle=w.left-=q,w.right-=q+2}j===!0&&(R=sn(w,k,o,i),yl(R,w,k,o,i))}p={top:R.top+"px",left:R.left+"px"},R.maxHeight!==void 0&&(p.maxHeight=R.maxHeight+"px",w.height>R.maxHeight&&(p.minHeight=p.maxHeight)),R.maxWidth!==void 0&&(p.maxWidth=R.maxWidth+"px",w.width>R.maxWidth&&(p.minWidth=p.maxWidth)),Object.assign(l.style,p),l.scrollTop!==b&&(l.scrollTop=b),l.scrollLeft!==C&&(l.scrollLeft=C)}function yl(e,t,l,n,a){const o=l.bottom,i=l.right,s=Ba(),d=window.innerHeight-s,h=document.body.clientWidth;if(e.top<0||e.top+o>d)if(a.vertical==="center")e.top=t[n.vertical]>d/2?Math.max(0,d-o):0,e.maxHeight=Math.min(o,d);else if(t[n.vertical]>d/2){const r=Math.min(d,n.vertical==="center"?t.center:n.vertical===a.vertical?t.bottom:t.top);e.maxHeight=Math.min(o,r),e.top=Math.max(0,r-o)}else e.top=Math.max(0,n.vertical==="center"?t.center:n.vertical===a.vertical?t.top:t.bottom),e.maxHeight=Math.min(o,d-e.top);if(e.left<0||e.left+i>h)if(e.maxWidth=Math.min(i,h),a.horizontal==="middle")e.left=t[n.horizontal]>h/2?Math.max(0,h-i):0;else if(t[n.horizontal]>h/2){const r=Math.min(h,n.horizontal==="middle"?t.middle:n.horizontal===a.horizontal?t.right:t.left);e.maxWidth=Math.min(i,r),e.left=Math.max(0,r-e.maxWidth)}else e.left=Math.max(0,n.horizontal==="middle"?t.middle:n.horizontal===a.horizontal?t.left:t.right),e.maxWidth=Math.min(i,h-e.left)}var Oo=be({name:"QMenu",inheritAttrs:!1,props:{...xo,...Kn,...ze,...Zn,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:rn},self:{type:String,validator:rn},offset:{type:Array,validator:Ao},scrollTarget:Fn,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Qn,"click","escapeKey"],setup(e,{slots:t,emit:l,attrs:n}){let a=null,o,i,s;const d=de(),{proxy:h}=d,{$q:r}=h,g=K(null),C=K(!1),b=c(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),w=Ne(e,r),{registerTick:B,removeTick:x}=Yn(),{registerTimeout:D}=Gn(),{transitionProps:M,transitionStyle:p}=Xn(e),{localScrollTarget:k,changeScrollEvent:R,unconfigureScrollTarget:V}=ko(e,O),{anchorEl:H,canShow:j}=po({showing:C}),{hide:q}=Wn({showing:C,canShow:j,handleShow:te,handleHide:m,hideOnRouteChange:b,processOnMount:!0}),{showPortal:_,hidePortal:F,renderPortal:y}=Un(d,g,oe,"menu"),z={anchorEl:H,innerRef:g,onClickOutside(T){if(e.persistent!==!0&&C.value===!0)return q(T),(T.type==="touchstart"||T.target.classList.contains("q-dialog__backdrop"))&&Pe(T),!0}},W=c(()=>un(e.anchor||(e.cover===!0?"center middle":"bottom start"),r.lang.rtl)),ae=c(()=>e.cover===!0?W.value:un(e.self||"top start",r.lang.rtl)),Q=c(()=>(e.square===!0?" q-menu--square":"")+(w.value===!0?" q-menu--dark q-dark":"")),Z=c(()=>e.autoClose===!0?{onClick:G}:{}),E=c(()=>C.value===!0&&e.persistent!==!0);le(E,T=>{T===!0?(ea(P),Fo(z)):(Gt(P),nn(z))});function N(){nl(()=>{let T=g.value;T&&T.contains(document.activeElement)!==!0&&(T=T.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||T.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||T.querySelector("[autofocus], [data-autofocus]")||T,T.focus({preventScroll:!0}))})}function te(T){if(a=e.noRefocus===!1?document.activeElement:null,la(ne),_(),O(),o=void 0,T!==void 0&&(e.touchPosition||e.contextMenu)){const ce=ga(T);if(ce.left!==void 0){const{top:xe,left:je}=H.value.getBoundingClientRect();o={left:ce.left-je,top:ce.top-xe}}}i===void 0&&(i=le(()=>r.screen.width+"|"+r.screen.height+"|"+e.self+"|"+e.anchor+"|"+r.lang.rtl,$)),e.noFocus!==!0&&document.activeElement.blur(),B(()=>{$(),e.noFocus!==!0&&N()}),D(()=>{r.platform.is.ios===!0&&(s=e.autoClose,g.value.click()),$(),_(!0),l("show",T)},e.transitionDuration)}function m(T){x(),F(),f(!0),a!==null&&(T===void 0||T.qClickOutside!==!0)&&(((T&&T.type.indexOf("key")===0?a.closest('[tabindex]:not([tabindex^="-"])'):void 0)||a).focus(),a=null),D(()=>{F(!0),l("hide",T)},e.transitionDuration)}function f(T){o=void 0,i!==void 0&&(i(),i=void 0),(T===!0||C.value===!0)&&(Pl(ne),V(),nn(z),Gt(P)),T!==!0&&(a=null)}function O(){(H.value!==null||e.scrollTarget!==void 0)&&(k.value=An(H.value,e.scrollTarget),R(k.value,$))}function G(T){s!==!0?(Po(h,T),l("click",T)):s=!1}function ne(T){E.value===!0&&e.noFocus!==!0&&En(g.value,T.target)!==!0&&N()}function P(T){l("escapeKey"),q(T)}function $(){na({targetEl:g.value,offset:e.offset,anchorEl:H.value,anchorOrigin:W.value,selfOrigin:ae.value,absoluteOffset:o,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function oe(){return v(Ut,M.value,()=>C.value===!0?v("div",{role:"menu",...n,ref:g,tabindex:-1,class:["q-menu q-position-engine scroll"+Q.value,n.class],style:[n.style,p.value],...Z.value},qe(t.default)):null)}return Ce(f),Object.assign(h,{focus:N,updatePosition:$}),y}});function Lo(e,t,l){let n;function a(){n!==void 0&&(Zt.remove(n),n=void 0)}return Ce(()=>{e.value===!0&&a()}),{removeFromHistory:a,addToHistory(){n={condition:()=>l.value===!0,handler:t},Zt.add(n)}}}let qt=0,Sl,wl,Pt,xl=!1,cn,dn,fn,at=null;function Do(e){zo(e)&&Pe(e)}function zo(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=ha(e),l=e.shiftKey&&!e.deltaX,n=!l&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=l||n?e.deltaY:e.deltaX;for(let o=0;o0&&i.scrollTop+i.clientHeight===i.scrollHeight:a<0&&i.scrollLeft===0?!0:a>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function vn(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Kt(e){xl!==!0&&(xl=!0,requestAnimationFrame(()=>{xl=!1;const{height:t}=e.target,{clientHeight:l,scrollTop:n}=document.scrollingElement;(Pt===void 0||t!==window.innerHeight)&&(Pt=l-t,document.scrollingElement.scrollTop=n),n>Pt&&(document.scrollingElement.scrollTop-=Math.ceil((n-Pt)/8))}))}function mn(e){const t=document.body,l=window.visualViewport!==void 0;if(e==="add"){const{overflowY:n,overflowX:a}=window.getComputedStyle(t);Sl=Ta(window),wl=Ea(window),cn=t.style.left,dn=t.style.top,fn=window.location.href,t.style.left=`-${Sl}px`,t.style.top=`-${wl}px`,a!=="hidden"&&(a==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),n!=="hidden"&&(n==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Le.is.ios===!0&&(l===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Kt,Te.passiveCapture),window.visualViewport.addEventListener("scroll",Kt,Te.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",vn,Te.passiveCapture))}Le.is.desktop===!0&&Le.is.mac===!0&&window[`${e}EventListener`]("wheel",Do,Te.notPassive),e==="remove"&&(Le.is.ios===!0&&(l===!0?(window.visualViewport.removeEventListener("resize",Kt,Te.passiveCapture),window.visualViewport.removeEventListener("scroll",Kt,Te.passiveCapture)):window.removeEventListener("scroll",vn,Te.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=cn,t.style.top=dn,window.location.href===fn&&window.scrollTo(Sl,wl),Pt=void 0)}function No(e){let t="add";if(e===!0){if(qt++,at!==null){clearTimeout(at),at=null;return}if(qt>1)return}else{if(qt===0||(qt--,qt>0))return;if(t="remove",Le.is.ios===!0&&Le.is.nativeMobile===!0){at!==null&&clearTimeout(at),at=setTimeout(()=>{mn(t),at=null},100);return}}mn(t)}function jo(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,No(t))}}}let Qt=0;const Ko={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"},gn={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]};var Qo=be({name:"QDialog",inheritAttrs:!1,props:{...Kn,...Zn,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:[...Qn,"shake","click","escapeKey"],setup(e,{slots:t,emit:l,attrs:n}){const a=de(),o=K(null),i=K(!1),s=K(!1);let d=null,h=null,r,g;const C=c(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:b}=jo(),{registerTimeout:w}=Gn(),{registerTick:B,removeTick:x}=Yn(),{transitionProps:D,transitionStyle:M}=Xn(e,()=>gn[e.position][0],()=>gn[e.position][1]),p=c(()=>M.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:k,hidePortal:R,portalIsAccessible:V,renderPortal:H}=Un(a,o,ne,"dialog"),{hide:j}=Wn({showing:i,hideOnRouteChange:C,handleShow:ae,handleHide:Q,processOnMount:!0}),{addToHistory:q,removeFromHistory:_}=Lo(i,j,C),F=c(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${Ko[e.position]}`+(s.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":"")),y=c(()=>i.value===!0&&e.seamless!==!0),z=c(()=>e.autoClose===!0?{onClick:f}:{}),W=c(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${y.value===!0?"modal":"seamless"}`,n.class]);le(()=>e.maximized,P=>{i.value===!0&&m(P)}),le(y,P=>{b(P),P===!0?(la(G),ea(N)):(Pl(G),Gt(N))});function ae(P){q(),h=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,m(e.maximized),k(),s.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),B(Z)):x(),w(()=>{if(a.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:$,bottom:oe}=document.activeElement.getBoundingClientRect(),{innerHeight:T}=window,ce=window.visualViewport!==void 0?window.visualViewport.height:T;$>0&&oe>ce/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-ce,oe>=T?1/0:Math.ceil(document.scrollingElement.scrollTop+oe-ce/2))),document.activeElement.scrollIntoView()}g=!0,o.value.click(),g=!1}k(!0),s.value=!1,l("show",P)},e.transitionDuration)}function Q(P){x(),_(),te(!0),s.value=!0,R(),h!==null&&(((P&&P.type.indexOf("key")===0?h.closest('[tabindex]:not([tabindex^="-"])'):void 0)||h).focus(),h=null),w(()=>{R(!0),s.value=!1,l("hide",P)},e.transitionDuration)}function Z(P){nl(()=>{let $=o.value;if($!==null){if(P!==void 0){const oe=$.querySelector(P);if(oe!==null){oe.focus({preventScroll:!0});return}}$.contains(document.activeElement)!==!0&&($=$.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||$.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||$.querySelector("[autofocus], [data-autofocus]")||$,$.focus({preventScroll:!0}))}})}function E(P){P&&typeof P.focus=="function"?P.focus({preventScroll:!0}):Z(),l("shake");const $=o.value;$!==null&&($.classList.remove("q-animate--scale"),$.classList.add("q-animate--scale"),d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,o.value!==null&&($.classList.remove("q-animate--scale"),Z())},170))}function N(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&E():(l("escapeKey"),j()))}function te(P){d!==null&&(clearTimeout(d),d=null),(P===!0||i.value===!0)&&(m(!1),e.seamless!==!0&&(b(!1),Pl(G),Gt(N))),P!==!0&&(h=null)}function m(P){P===!0?r!==!0&&(Qt<1&&document.body.classList.add("q-body--dialog"),Qt++,r=!0):r===!0&&(Qt<2&&document.body.classList.remove("q-body--dialog"),Qt--,r=!1)}function f(P){g!==!0&&(j(P),l("click",P))}function O(P){e.persistent!==!0&&e.noBackdropDismiss!==!0?j(P):e.noShake!==!0&&E()}function G(P){e.allowFocusOutside!==!0&&V.value===!0&&En(o.value,P.target)!==!0&&Z('[tabindex]:not([tabindex="-1"])')}Object.assign(a.proxy,{focus:Z,shake:E,__updateRefocusTarget(P){h=P||null}}),Ce(te);function ne(){return v("div",{role:"dialog","aria-modal":y.value===!0?"true":"false",...n,class:W.value},[v(Ut,{name:"q-transition--fade",appear:!0},()=>y.value===!0?v("div",{class:"q-dialog__backdrop fixed-full",style:p.value,"aria-hidden":"true",tabindex:-1,onClick:O}):null),v(Ut,D.value,()=>i.value===!0?v("div",{ref:o,class:F.value,style:M.value,tabindex:-1,...z.value},qe(t.default)):null)])}return H}});function hn(e,t,l){if(l<=t)return t;const n=l-t+1;let a=t+(e-t)%n;return a["add","add-unique","toggle"].includes(e),Wo=".*+?^${}()|[]\\",Uo=Object.keys(al);var Zo=be({name:"QSelect",inheritAttrs:!1,props:{...Vl,...Il,...al,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:bn},mapOptions:Boolean,emitValue: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:Vl.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Fl,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:l}){const{proxy:n}=de(),{$q:a}=n,o=K(!1),i=K(!1),s=K(-1),d=K(""),h=K(!1),r=K(!1);let g=null,C=null,b,w,B,x=null,D,M,p,k;const R=K(null),V=K(null),H=K(null),j=K(null),q=K(null),_=Hn(e),F=On(L),y=c(()=>Array.isArray(e.options)?e.options.length:0),z=c(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:W,virtualScrollSliceSizeComputed:ae,localResetVirtualScroll:Q,padVirtualScroll:Z,onVirtualScrollEvt:E,scrollTo:N,setVirtualScrollSize:te}=jn({virtualScrollLength:y,getVirtualScrollTarget:rl,getVirtualScrollEl:Ht,virtualScrollItemSizeComputed:z}),m=Al(),f=c(()=>{const u=e.mapOptions===!0&&e.multiple!==!0,I=e.modelValue!==void 0&&(e.modelValue!==null||u===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const A=e.mapOptions===!0&&b!==void 0?b:[],J=I.map(se=>il(se,A));return e.modelValue===null&&u===!0?J.filter(se=>se!==null):J}return I}),O=c(()=>{const u={};return Uo.forEach(I=>{const A=e[I];A!==void 0&&(u[I]=A)}),u}),G=c(()=>e.optionsDark===null?m.isDark.value:e.optionsDark),ne=c(()=>Bt(f.value)),P=c(()=>{let u="q-field__input q-placeholder col";return e.hideSelected===!0||f.value.length===0?[u,e.inputClass]:(u+=" q-field__input--padding",e.inputClass===void 0?u:[u,e.inputClass])}),$=c(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),oe=c(()=>y.value===0),T=c(()=>f.value.map(u=>ke.value(u)).join(", ")),ce=c(()=>e.displayValue!==void 0?e.displayValue:T.value),xe=c(()=>e.optionsHtml===!0?()=>!0:u=>u!=null&&u.html===!0),je=c(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||f.value.some(xe.value))),pe=c(()=>m.focused.value===!0?e.tabindex:-1),Ke=c(()=>{const u={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":o.value===!0?"true":"false","aria-controls":`${m.targetUid.value}_lb`};return s.value>=0&&(u["aria-activedescendant"]=`${m.targetUid.value}_${s.value}`),u}),Ee=c(()=>({id:`${m.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),Fe=c(()=>f.value.map((u,I)=>({index:I,opt:u,html:xe.value(u),selected:!0,removeAtIndex:ol,toggleOption:Ae,tabindex:pe.value}))),Qe=c(()=>{if(y.value===0)return[];const{from:u,to:I}=W.value;return e.options.slice(u,I).map((A,J)=>{const se=We.value(A)===!0,ue=dt(A)===!0,ye=u+J,me={clickable:!0,active:ue,activeClass:et.value,manualFocus:!0,focused:!1,disable:se,tabindex:-1,dense:e.optionsDense,dark:G.value,role:"option","aria-selected":ue===!0?"true":"false",id:`${m.targetUid.value}_${ye}`,onClick:()=>{Ae(A)}};return se!==!0&&(s.value===ye&&(me.focused=!0),a.platform.is.desktop===!0&&(me.onMousemove=()=>{o.value===!0&&Ve(ye)})),{index:ye,opt:A,html:xe.value(A),label:ke.value(A),selected:me.active,focused:me.focused,toggleOption:Ae,setOptionIndex:Ve,itemProps:me}})}),Je=c(()=>e.dropdownIcon!==void 0?e.dropdownIcon:a.iconSet.arrow.dropdown),pt=c(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),et=c(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),Re=c(()=>ct(e.optionValue,"value")),ke=c(()=>ct(e.optionLabel,"label")),We=c(()=>ct(e.optionDisable,"disable")),tt=c(()=>f.value.map(u=>Re.value(u))),Et=c(()=>{const u={onInput:L,onChange:F,onKeydown:It,onKeyup:kt,onKeypress:lt,onFocus:$t,onClick(I){w===!0&&Xe(I)}};return u.onCompositionstart=u.onCompositionupdate=u.onCompositionend=F,u});le(f,u=>{b=u,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&m.innerLoading.value!==!0&&(i.value!==!0&&o.value!==!0||ne.value!==!0)&&(B!==!0&&bt(),(i.value===!0||o.value===!0)&&ee(""))},{immediate:!0}),le(()=>e.fillInput,bt),le(o,cl),le(y,ra);function Ft(u){return e.emitValue===!0?Re.value(u):u}function st(u){if(u!==-1&&u=e.maxValues)return;const J=e.modelValue.slice();l("add",{index:J.length,value:A}),J.push(A),l("update:modelValue",J)}function Ae(u,I){if(m.editable.value!==!0||u===void 0||We.value(u)===!0)return;const A=Re.value(u);if(e.multiple!==!0){I!==!0&&(X(e.fillInput===!0?ke.value(u):"",!0,!0),nt()),V.value!==null&&V.value.focus(),(f.value.length===0||_t(Re.value(f.value[0]),A)!==!0)&&l("update:modelValue",e.emitValue===!0?A:u);return}if((w!==!0||h.value===!0)&&m.focus(),$t(),f.value.length===0){const ue=e.emitValue===!0?A:u;l("add",{index:0,value:ue}),l("update:modelValue",e.multiple===!0?[ue]:ue);return}const J=e.modelValue.slice(),se=tt.value.findIndex(ue=>_t(ue,A));if(se!==-1)l("remove",{index:se,value:J.splice(se,1)[0]});else{if(e.maxValues!==void 0&&J.length>=e.maxValues)return;const ue=e.emitValue===!0?A:u;l("add",{index:J.length,value:ue}),J.push(ue)}l("update:modelValue",J)}function Ve(u){if(a.platform.is.desktop!==!0)return;const I=u!==-1&&u=0?ke.value(e.options[A]):D,!0))}}function il(u,I){const A=J=>_t(Re.value(J),u);return e.options.find(A)||I.find(A)||u}function ct(u,I){const A=u!==void 0?u:I;return typeof A=="function"?A:J=>J!==null&&typeof J=="object"&&A in J?J[A]:J}function dt(u){const I=Re.value(u);return tt.value.find(A=>_t(A,I))!==void 0}function $t(u){e.useInput===!0&&V.value!==null&&(u===void 0||V.value===u.target&&u.target.value===T.value)&&V.value.select()}function ft(u){tl(u,27)===!0&&o.value===!0&&(Xe(u),nt(),bt()),l("keyup",u)}function kt(u){const{value:I}=u.target;if(u.keyCode!==void 0){ft(u);return}if(u.target.value="",g!==null&&(clearTimeout(g),g=null),C!==null&&(clearTimeout(C),C=null),bt(),typeof I=="string"&&I.length!==0){const A=I.toLocaleLowerCase(),J=ue=>{const ye=e.options.find(me=>ue.value(me).toLocaleLowerCase()===A);return ye===void 0?!1:(f.value.indexOf(ye)===-1?Ae(ye):nt(),!0)},se=ue=>{J(Re)!==!0&&(J(ke)===!0||ue===!0||ee(I,!0,()=>se(!0)))};se()}else m.clearValue(u)}function lt(u){l("keypress",u)}function It(u){if(l("keydown",u),Pn(u)===!0)return;const I=d.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),A=u.shiftKey!==!0&&e.multiple!==!0&&(s.value!==-1||I===!0);if(u.keyCode===27){Oe(u);return}if(u.keyCode===9&&A===!1){gt();return}if(u.target===void 0||u.target.id!==m.targetUid.value||m.editable.value!==!0)return;if(u.keyCode===40&&m.innerLoading.value!==!0&&o.value===!1){Pe(u),ht();return}if(u.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&d.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?st(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&l("update:modelValue",null);return}(u.keyCode===35||u.keyCode===36)&&(typeof d.value!="string"||d.value.length===0)&&(Pe(u),s.value=-1,$e(u.keyCode===36?1:-1,e.multiple)),(u.keyCode===33||u.keyCode===34)&&ae.value!==void 0&&(Pe(u),s.value=Math.max(-1,Math.min(y.value,s.value+(u.keyCode===33?-1:1)*ae.value.view)),$e(u.keyCode===33?1:-1,e.multiple)),(u.keyCode===38||u.keyCode===40)&&(Pe(u),$e(u.keyCode===38?-1:1,e.multiple));const J=y.value;if((p===void 0||k0&&e.useInput!==!0&&u.key!==void 0&&u.key.length===1&&u.altKey===!1&&u.ctrlKey===!1&&u.metaKey===!1&&(u.keyCode!==32||p.length!==0)){o.value!==!0&&ht(u);const se=u.key.toLocaleLowerCase(),ue=p.length===1&&p[0]===se;k=Date.now()+1500,ue===!1&&(Pe(u),p+=se);const ye=new RegExp("^"+p.split("").map(dl=>Wo.indexOf(dl)!==-1?"\\"+dl:dl).join(".*"),"i");let me=s.value;if(ue===!0||me<0||ye.test(ke.value(e.options[me]))!==!0)do me=hn(me+1,-1,J-1);while(me!==s.value&&(We.value(e.options[me])===!0||ye.test(ke.value(e.options[me]))!==!0));s.value!==me&&ge(()=>{Ve(me),N(me),me>=0&&e.useInput===!0&&e.fillInput===!0&&U(ke.value(e.options[me]),!0)});return}if(!(u.keyCode!==13&&(u.keyCode!==32||e.useInput===!0||p!=="")&&(u.keyCode!==9||A===!1))){if(u.keyCode!==9&&Pe(u),s.value!==-1&&s.value{if(ye){if(bn(ye)!==!0)return}else ye=e.newValueMode;if(X("",e.multiple!==!0,!0),ue==null)return;(ye==="toggle"?Ae:At)(ue,ye==="add-unique"),e.multiple!==!0&&(V.value!==null&&V.value.focus(),nt())};if(e.onNewValue!==void 0?l("newValue",d.value,se):se(d.value),e.multiple!==!0)return}o.value===!0?gt():m.innerLoading.value!==!0&&ht()}}function Ht(){return w===!0?q.value:H.value!==null&&H.value.contentEl!==null?H.value.contentEl:void 0}function rl(){return Ht()}function ul(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?Fe.value.map(u=>t["selected-item"](u)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?Fe.value.map((u,I)=>v(go,{key:"option-"+I,removable:m.editable.value===!0&&We.value(u.opt)!==!0,dense:!0,textColor:e.color,tabindex:pe.value,onRemove(){u.removeAtIndex(I)}},()=>v("span",{class:"ellipsis",[u.html===!0?"innerHTML":"textContent"]:ke.value(u.opt)}))):[v("span",{[je.value===!0?"innerHTML":"textContent"]:ce.value})]}function Ot(){if(oe.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:d.value}):void 0;const u=t.option!==void 0?t.option:A=>v(ho,{key:A.index,...A.itemProps},()=>v(bo,()=>v(yo,()=>v("span",{[A.html===!0?"innerHTML":"textContent"]:A.label}))));let I=Z("div",Qe.value.map(u));return t["before-options"]!==void 0&&(I=t["before-options"]().concat(I)),ll(t["after-options"],I)}function S(u,I){const A=I===!0?{...Ke.value,...m.splitAttrs.attributes.value}:void 0,J={ref:I===!0?V:void 0,key:"i_t",class:P.value,style:e.inputStyle,value:d.value!==void 0?d.value:"",type:"search",...A,id:I===!0?m.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":u===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...Et.value};return u!==!0&&w===!0&&(Array.isArray(J.class)===!0?J.class=[...J.class,"no-pointer-events"]:J.class+=" no-pointer-events"),v("input",J)}function L(u){g!==null&&(clearTimeout(g),g=null),C!==null&&(clearTimeout(C),C=null),!(u&&u.target&&u.target.qComposing===!0)&&(U(u.target.value||""),B=!0,D=d.value,m.focused.value!==!0&&(w!==!0||h.value===!0)&&m.focus(),e.onFilter!==void 0&&(g=setTimeout(()=>{g=null,ee(d.value)},e.inputDebounce)))}function U(u,I){d.value!==u&&(d.value=u,I===!0||e.inputDebounce===0||e.inputDebounce==="0"?l("inputValue",u):C=setTimeout(()=>{C=null,l("inputValue",u)},e.inputDebounce))}function X(u,I,A){B=A!==!0,e.useInput===!0&&(U(u,!0),(I===!0||A!==!0)&&(D=u),I!==!0&&ee(u))}function ee(u,I,A){if(e.onFilter===void 0||I!==!0&&m.focused.value!==!0)return;m.innerLoading.value===!0?l("filterAbort"):(m.innerLoading.value=!0,r.value=!0),u!==""&&e.multiple!==!0&&f.value.length!==0&&B!==!0&&u===ke.value(f.value[0])&&(u="");const J=setTimeout(()=>{o.value===!0&&(o.value=!1)},10);x!==null&&clearTimeout(x),x=J,l("filter",u,(se,ue)=>{(I===!0||m.focused.value===!0)&&x===J&&(clearTimeout(x),typeof se=="function"&&se(),r.value=!1,ge(()=>{m.innerLoading.value=!1,m.editable.value===!0&&(I===!0?o.value===!0&&nt():o.value===!0?cl(!0):o.value=!0),typeof ue=="function"&&ge(()=>{ue(n)}),typeof A=="function"&&ge(()=>{A(n)})}))},()=>{m.focused.value===!0&&x===J&&(clearTimeout(x),m.innerLoading.value=!1,r.value=!1),o.value===!0&&(o.value=!1)})}function ve(){return v(Oo,{ref:H,class:$.value,style:e.popupContentStyle,modelValue:o.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&oe.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:G.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:pt.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Ee.value,onScrollPassive:E,onBeforeShow:Ol,onBeforeHide:fe,onShow:Ie},Ot)}function fe(u){Ll(u),gt()}function Ie(){te()}function we(u){Xe(u),V.value!==null&&V.value.focus(),h.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function vt(u){Xe(u),ge(()=>{h.value=!1})}function mt(){const u=[v(vo,{class:`col-auto ${m.fieldClass.value}`,...O.value,for:m.targetUid.value,dark:G.value,square:!0,loading:r.value,itemAligned:!1,filled:!0,stackLabel:d.value.length!==0,...m.splitAttrs.listeners.value,onFocus:we,onBlur:vt},{...t,rawControl:()=>m.getControl(!0),before:void 0,after:void 0})];return o.value===!0&&u.push(v("div",{ref:q,class:$.value+" scroll",style:e.popupContentStyle,...Ee.value,onClick:Oe,onScrollPassive:E},Ot())),v(Qo,{ref:j,modelValue:i.value,position:e.useInput===!0?"top":void 0,transitionShow:M,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Ol,onBeforeHide:sl,onHide:oa,onShow:ia},()=>v("div",{class:"q-select__dialog"+(G.value===!0?" q-select__dialog--dark q-dark":"")+(h.value===!0?" q-select__dialog--focused":"")},u))}function sl(u){Ll(u),j.value!==null&&j.value.__updateRefocusTarget(m.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),m.focused.value=!1}function oa(u){nt(),m.focused.value===!1&&l("blur",u),bt()}function ia(){const u=document.activeElement;(u===null||u.id!==m.targetUid.value)&&V.value!==null&&V.value!==u&&V.value.focus(),te()}function gt(){i.value!==!0&&(s.value=-1,o.value===!0&&(o.value=!1),m.focused.value===!1&&(x!==null&&(clearTimeout(x),x=null),m.innerLoading.value===!0&&(l("filterAbort"),m.innerLoading.value=!1,r.value=!1)))}function ht(u){m.editable.value===!0&&(w===!0?(m.onControlFocusin(u),i.value=!0,ge(()=>{m.focus()})):m.focus(),e.onFilter!==void 0?ee(d.value):(oe.value!==!0||t["no-option"]!==void 0)&&(o.value=!0))}function nt(){i.value=!1,gt()}function bt(){e.useInput===!0&&X(e.multiple!==!0&&e.fillInput===!0&&f.value.length!==0&&ke.value(f.value[0])||"",!0,!0)}function cl(u){let I=-1;if(u===!0){if(f.value.length!==0){const A=Re.value(f.value[0]);I=e.options.findIndex(J=>_t(Re.value(J),A))}Q(I)}Ve(I)}function ra(u,I){o.value===!0&&m.innerLoading.value===!1&&(Q(-1,!0),ge(()=>{o.value===!0&&m.innerLoading.value===!1&&(u>I?Q():cl(!0))}))}function Hl(){i.value===!1&&H.value!==null&&H.value.updatePosition()}function Ol(u){u!==void 0&&Xe(u),l("popupShow",u),m.hasPopupOpen=!0,m.onControlFocusin(u)}function Ll(u){u!==void 0&&Xe(u),l("popupHide",u),m.hasPopupOpen=!1,m.onControlFocusout(u)}function Dl(){w=a.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||oe.value===!1:!0),M=a.platform.is.ios===!0&&w===!0&&e.useInput===!0?"fade":e.transitionShow}return qn(Dl),ba(Hl),Dl(),Ce(()=>{g!==null&&clearTimeout(g),C!==null&&clearTimeout(C)}),Object.assign(n,{showPopup:ht,hidePopup:nt,removeAtIndex:st,add:At,toggleOption:Ae,getOptionIndex:()=>s.value,setOptionIndex:Ve,moveOptionSelection:$e,filter:ee,updateMenuPosition:Hl,updateInputValue:X,isOptionSelected:dt,getEmittingOptionValue:Ft,isOptionDisabled:(...u)=>We.value.apply(null,u)===!0,getOptionValue:(...u)=>Re.value.apply(null,u),getOptionLabel:(...u)=>ke.value.apply(null,u)}),Object.assign(m,{innerValue:f,fieldClass:c(()=>`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:R,targetRef:V,hasValue:ne,showPopup:ht,floatingLabel:c(()=>e.hideSelected!==!0&&ne.value===!0||typeof d.value=="number"||d.value.length!==0||Bt(e.displayValue)),getControlChild:()=>{if(m.editable.value!==!1&&(i.value===!0||oe.value!==!0||t["no-option"]!==void 0))return w===!0?mt():ve();m.hasPopupOpen===!0&&(m.hasPopupOpen=!1)},controlEvents:{onFocusin(u){m.onControlFocusin(u)},onFocusout(u){m.onControlFocusout(u,()=>{bt(),gt()})},onClick(u){if(Oe(u),w!==!0&&o.value===!0){gt(),V.value!==null&&V.value.focus();return}ht(u)}},getControl:u=>{const I=ul(),A=u===!0||i.value!==!0||w!==!0;if(e.useInput===!0)I.push(S(u,A));else if(m.editable.value===!0){const se=A===!0?Ke.value:void 0;I.push(v("input",{ref:A===!0?V:void 0,key:"d_t",class:"q-select__focus-target",id:A===!0?m.targetUid.value:void 0,value:ce.value,readonly:!0,"data-autofocus":u===!0||e.autofocus===!0||void 0,...se,onKeydown:It,onKeyup:ft,onKeypress:lt})),A===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&I.push(v("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:kt}))}if(_.value!==void 0&&e.disable!==!0&&tt.value.length!==0){const se=tt.value.map(ue=>v("option",{value:ue,selected:!0}));I.push(v("select",{class:"hidden",name:_.value,multiple:e.multiple},se))}const J=e.useInput===!0||A!==!0?void 0:m.splitAttrs.attributes.value;return v("div",{class:"q-field__native row items-center",...J,...m.splitAttrs.listeners.value},I)},getInnerAppend:()=>e.loading!==!0&&r.value!==!0&&e.hideDropdownIcon!==!0?[v(De,{class:"q-select__dropdown-icon"+(o.value===!0?" rotate-180":""),name:Je.value})]:null}),$l(m)}});const Xo={xs:2,sm:4,md:6,lg:10,xl:14};function yn(e,t,l){return{transform:t===!0?`translateX(${l.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}var Yo=be({name:"QLinearProgress",props:{...ze,...Tl,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:l}=de(),n=Ne(e,l.$q),a=El(e,Xo),o=c(()=>e.indeterminate===!0||e.query===!0),i=c(()=>e.reverse!==e.query),s=c(()=>({...a.value!==null?a.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),d=c(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),h=c(()=>yn(e.buffer!==void 0?e.buffer:1,i.value,l.$q)),r=c(()=>`with${e.instantFeedback===!0?"out":""}-transition`),g=c(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${r.value} q-linear-progress__track--${n.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),C=c(()=>yn(o.value===!0?1:e.value,i.value,l.$q)),b=c(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${r.value} q-linear-progress__model--${o.value===!0?"in":""}determinate`),w=c(()=>({width:`${e.value*100}%`})),B=c(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${r.value}`);return()=>{const x=[v("div",{class:g.value,style:h.value}),v("div",{class:b.value,style:C.value})];return e.stripe===!0&&o.value===!1&&x.push(v("div",{class:B.value,style:w.value})),v("div",{class:d.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},ll(t.default,x))}}});function Go(e,t){const l=K(null),n=c(()=>e.disable===!0?null:v("span",{ref:l,class:"no-outline",tabindex:-1}));function a(o){const i=t.value;o!==void 0&&o.type.indexOf("key")===0?i!==null&&document.activeElement!==i&&i.contains(document.activeElement)===!0&&i.focus():l.value!==null&&(o===void 0||i!==null&&i.contains(o.target)===!0)&&l.value.focus()}return{refocusTargetEl:n,refocusTarget:a}}var Jo={xs:30,sm:35,md:40,lg:50,xl:60};const ei={...ze,...Tl,...Il,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]},ti=["update:modelValue"];function li(e,t){const{props:l,slots:n,emit:a,proxy:o}=de(),{$q:i}=o,s=Ne(l,i),d=K(null),{refocusTargetEl:h,refocusTarget:r}=Go(l,d),g=El(l,Jo),C=c(()=>l.val!==void 0&&Array.isArray(l.modelValue)),b=c(()=>{const y=yt(l.val);return C.value===!0?l.modelValue.findIndex(z=>yt(z)===y):-1}),w=c(()=>C.value===!0?b.value!==-1:yt(l.modelValue)===yt(l.trueValue)),B=c(()=>C.value===!0?b.value===-1:yt(l.modelValue)===yt(l.falseValue)),x=c(()=>w.value===!1&&B.value===!1),D=c(()=>l.disable===!0?-1:l.tabindex||0),M=c(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(l.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(l.dense===!0?` q-${e}--dense`:"")+(l.leftLabel===!0?" reverse":"")),p=c(()=>{const y=w.value===!0?"truthy":B.value===!0?"falsy":"indet",z=l.color!==void 0&&(l.keepColor===!0||(e==="toggle"?w.value===!0:B.value!==!0))?` text-${l.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${y}${z}`}),k=c(()=>{const y={type:"checkbox"};return l.name!==void 0&&Object.assign(y,{".checked":w.value,"^checked":w.value===!0?"checked":void 0,name:l.name,value:C.value===!0?l.val:l.trueValue}),y}),R=Za(k),V=c(()=>{const y={tabindex:D.value,role:e==="toggle"?"switch":"checkbox","aria-label":l.label,"aria-checked":x.value===!0?"mixed":w.value===!0?"true":"false"};return l.disable===!0&&(y["aria-disabled"]="true"),y});function H(y){y!==void 0&&(Pe(y),r(y)),l.disable!==!0&&a("update:modelValue",j(),y)}function j(){if(C.value===!0){if(w.value===!0){const y=l.modelValue.slice();return y.splice(b.value,1),y}return l.modelValue.concat([l.val])}if(w.value===!0){if(l.toggleOrder!=="ft"||l.toggleIndeterminate===!1)return l.falseValue}else if(B.value===!0){if(l.toggleOrder==="ft"||l.toggleIndeterminate===!1)return l.trueValue}else return l.toggleOrder!=="ft"?l.trueValue:l.falseValue;return l.indeterminateValue}function q(y){(y.keyCode===13||y.keyCode===32)&&Pe(y)}function _(y){(y.keyCode===13||y.keyCode===32)&&H(y)}const F=t(w,x);return Object.assign(o,{toggle:H}),()=>{const y=F();l.disable!==!0&&R(y,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const z=[v("div",{class:p.value,style:g.value,"aria-hidden":"true"},y)];h.value!==null&&z.push(h.value);const W=l.label!==void 0?ll(n.default,[l.label]):qe(n.default);return W!==void 0&&z.push(v("div",{class:`q-${e}__label q-anchor--skip`},W)),v("div",{ref:d,class:M.value,...V.value,onClick:H,onKeydown:q,onKeyup:_},z)}}const ni=v("div",{key:"svg",class:"q-checkbox__bg absolute"},[v("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[v("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),v("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]);var pl=be({name:"QCheckbox",props:ei,emits:ti,setup(e){function t(l,n){const a=c(()=>(l.value===!0?e.checkedIcon:n.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>a.value!==null?[v("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[v(De,{class:"q-checkbox__icon",name:a.value})])]:[ni]}return li("checkbox",t)}});let Vt=0;const ai={fullscreen:Boolean,noRouteFullscreenExit:Boolean},oi=["update:fullscreen","fullscreen"];function ii(){const e=de(),{props:t,emit:l,proxy:n}=e;let a,o,i;const s=K(!1);Bn(e)===!0&&le(()=>n.$route.fullPath,()=>{t.noRouteFullscreenExit!==!0&&r()}),le(()=>t.fullscreen,g=>{s.value!==g&&d()}),le(s,g=>{l("update:fullscreen",g),l("fullscreen",g)});function d(){s.value===!0?r():h()}function h(){s.value!==!0&&(s.value=!0,i=n.$el.parentNode,i.replaceChild(o,n.$el),document.body.appendChild(n.$el),Vt++,Vt===1&&document.body.classList.add("q-body--fullscreen-mixin"),a={handler:r},Zt.add(a))}function r(){s.value===!0&&(a!==void 0&&(Zt.remove(a),a=void 0),i.replaceChild(n.$el,o),s.value=!1,Vt=Math.max(0,Vt-1),Vt===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),n.$el.scrollIntoView!==void 0&&setTimeout(()=>{n.$el.scrollIntoView()})))}return Bl(()=>{o=document.createElement("span")}),Ge(()=>{t.fullscreen===!0&&h()}),Ce(r),Object.assign(n,{toggleFullscreen:d,setFullscreen:h,exitFullscreen:r}),{inFullscreen:s,toggleFullscreen:d}}function ri(e,t){return new Date(e)-new Date(t)}const ui={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>e==="ad"||e==="da",default:"ad"}};function si(e,t,l,n){const a=c(()=>{const{sortBy:s}=t.value;return s&&l.value.find(d=>d.name===s)||null}),o=c(()=>e.sortMethod!==void 0?e.sortMethod:(s,d,h)=>{const r=l.value.find(b=>b.name===d);if(r===void 0||r.field===void 0)return s;const g=h===!0?-1:1,C=typeof r.field=="function"?b=>r.field(b):b=>b[r.field];return s.sort((b,w)=>{let B=C(b),x=C(w);return r.rawSort!==void 0?r.rawSort(B,x,b,w)*g:B==null?-1*g:x==null?1*g:r.sort!==void 0?r.sort(B,x,b,w)*g:Cl(B)===!0&&Cl(x)===!0?(B-x)*g:jl(B)===!0&&jl(x)===!0?ri(B,x)*g:typeof B=="boolean"&&typeof x=="boolean"?(B-x)*g:([B,x]=[B,x].map(D=>(D+"").toLocaleString().toLowerCase()),BC.name===s);g!==void 0&&g.sortOrder&&(d=g.sortOrder)}let{sortBy:h,descending:r}=t.value;h!==s?(h=s,r=d==="da"):e.binaryStateSort===!0?r=!r:r===!0?d==="ad"?h=null:r=!1:d==="ad"?r=!0:h=null,n({sortBy:h,descending:r,page:1})}return{columnToSort:a,computedSortMethod:o,sort:i}}const ci={filter:[String,Object],filterMethod:Function};function di(e,t){const l=c(()=>e.filterMethod!==void 0?e.filterMethod:(n,a,o,i)=>{const s=a?a.toLowerCase():"";return n.filter(d=>o.some(h=>{const r=i(h,d)+"";return(r==="undefined"||r==="null"?"":r.toLowerCase()).indexOf(s)!==-1}))});return le(()=>e.filter,()=>{ge(()=>{t({page:1},!0)})},{deep:!0}),{computedFilterMethod:l}}function fi(e,t){for(const l in t)if(t[l]!==e[l])return!1;return!0}function Sn(e){return e.page<1&&(e.page=1),e.rowsPerPage!==void 0&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const vi={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function mi(e,t){const{props:l,emit:n}=e,a=K(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:l.rowsPerPageOptions.length!==0?l.rowsPerPageOptions[0]:5},l.pagination)),o=c(()=>{const r=l["onUpdate:pagination"]!==void 0?{...a.value,...l.pagination}:a.value;return Sn(r)}),i=c(()=>o.value.rowsNumber!==void 0);function s(r){d({pagination:r,filter:l.filter})}function d(r={}){ge(()=>{n("request",{pagination:r.pagination||o.value,filter:r.filter||l.filter,getCellValue:t})})}function h(r,g){const C=Sn({...o.value,...r});if(fi(o.value,C)===!0){i.value===!0&&g===!0&&s(C);return}if(i.value===!0){s(C);return}l.pagination!==void 0&&l["onUpdate:pagination"]!==void 0?n("update:pagination",C):a.value=C}return{innerPagination:a,computedPagination:o,isServerSide:i,requestServerInteraction:d,setPagination:h}}function gi(e,t,l,n,a,o){const{props:i,emit:s,proxy:{$q:d}}=e,h=c(()=>n.value===!0?l.value.rowsNumber||0:o.value),r=c(()=>{const{page:k,rowsPerPage:R}=l.value;return(k-1)*R}),g=c(()=>{const{page:k,rowsPerPage:R}=l.value;return k*R}),C=c(()=>l.value.page===1),b=c(()=>l.value.rowsPerPage===0?1:Math.max(1,Math.ceil(h.value/l.value.rowsPerPage))),w=c(()=>g.value===0?!0:l.value.page>=b.value),B=c(()=>(i.rowsPerPageOptions.includes(t.value.rowsPerPage)?i.rowsPerPageOptions:[t.value.rowsPerPage].concat(i.rowsPerPageOptions)).map(R=>({label:R===0?d.lang.table.allRows:""+R,value:R})));le(b,(k,R)=>{if(k===R)return;const V=l.value.page;k&&!V?a({page:1}):k1&&a({page:k-1})}function M(){const{page:k,rowsPerPage:R}=l.value;g.value>0&&k*R["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},bi=["update:selected","selection"];function yi(e,t,l,n){const a=c(()=>{const w={};return e.selected.map(n.value).forEach(B=>{w[B]=!0}),w}),o=c(()=>e.selection!=="none"),i=c(()=>e.selection==="single"),s=c(()=>e.selection==="multiple"),d=c(()=>l.value.length!==0&&l.value.every(w=>a.value[n.value(w)]===!0)),h=c(()=>d.value!==!0&&l.value.some(w=>a.value[n.value(w)]===!0)),r=c(()=>e.selected.length);function g(w){return a.value[w]===!0}function C(){t("update:selected",[])}function b(w,B,x,D){t("selection",{rows:B,added:x,keys:w,evt:D});const M=i.value===!0?x===!0?B:[]:x===!0?e.selected.concat(B):e.selected.filter(p=>w.includes(n.value(p))===!1);t("update:selected",M)}return{hasSelectionMode:o,singleSelection:i,multipleSelection:s,allRowsSelected:d,someRowsSelected:h,rowsSelectedNumber:r,isRowSelected:g,clearSelection:C,updateSelection:b}}function wn(e){return Array.isArray(e)?e.slice():[]}const Si={expanded:Array},wi=["update:expanded"];function xi(e,t){const l=K(wn(e.expanded));le(()=>e.expanded,i=>{l.value=wn(i)});function n(i){return l.value.includes(i)}function a(i){e.expanded!==void 0?t("update:expanded",i):l.value=i}function o(i,s){const d=l.value.slice(),h=d.indexOf(i);s===!0?h===-1&&(d.push(i),a(d)):h!==-1&&(d.splice(h,1),a(d))}return{isRowExpanded:n,setExpanded:a,updateExpanded:o}}const pi={visibleColumns:Array};function ki(e,t,l){const n=c(()=>{if(e.columns!==void 0)return e.columns;const s=e.rows[0];return s!==void 0?Object.keys(s).map(d=>({name:d,label:d.toUpperCase(),field:d,align:Cl(s[d])?"right":"left",sortable:!0})):[]}),a=c(()=>{const{sortBy:s,descending:d}=t.value;return(e.visibleColumns!==void 0?n.value.filter(r=>r.required===!0||e.visibleColumns.includes(r.name)===!0):n.value).map(r=>{const g=r.align||"right",C=`text-${g}`;return{...r,align:g,__iconClass:`q-table__sort-icon q-table__sort-icon--${g}`,__thClass:C+(r.headerClasses!==void 0?" "+r.headerClasses:"")+(r.sortable===!0?" sortable":"")+(r.name===s?` sorted ${d===!0?"sort-desc":""}`:""),__tdStyle:r.style!==void 0?typeof r.style!="function"?()=>r.style:r.style:()=>null,__tdClass:r.classes!==void 0?typeof r.classes!="function"?()=>C+" "+r.classes:b=>C+" "+r.classes(b):()=>C}})}),o=c(()=>{const s={};return a.value.forEach(d=>{s[d.name]=d}),s}),i=c(()=>e.tableColspan!==void 0?e.tableColspan:a.value.length+(l.value===!0?1:0));return{colList:n,computedCols:a,computedColsMap:o,computedColspan:i}}const Wt="q-table__bottom row items-center",aa={};Nn.forEach(e=>{aa[e]={}});var _i=be({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...aa,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...ze,...ai,...pi,...ci,...vi,...Si,...hi,...ui},emits:["request","virtualScroll",...oi,...wi,...bi],setup(e,{slots:t,emit:l}){const n=de(),{proxy:{$q:a}}=n,o=Ne(e,a),{inFullscreen:i,toggleFullscreen:s}=ii(),d=c(()=>typeof e.rowKey=="function"?e.rowKey:S=>S[e.rowKey]),h=K(null),r=K(null),g=c(()=>e.grid!==!0&&e.virtualScroll===!0),C=c(()=>" q-table__card"+(o.value===!0?" q-table__card--dark q-dark":"")+(e.square===!0?" q-table--square":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")),b=c(()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(e.grid===!0?" q-table--grid":C.value)+(o.value===!0?" q-table--dark":"")+(e.dense===!0?" q-table--dense":"")+(e.wrapCells===!1?" q-table--no-wrap":"")+(i.value===!0?" fullscreen scroll":"")),w=c(()=>b.value+(e.loading===!0?" q-table--loading":""));le(()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+b.value,()=>{g.value===!0&&r.value!==null&&r.value.reset()});const{innerPagination:B,computedPagination:x,isServerSide:D,requestServerInteraction:M,setPagination:p}=mi(n,Ve),{computedFilterMethod:k}=di(e,p),{isRowExpanded:R,setExpanded:V,updateExpanded:H}=xi(e,l),j=c(()=>{let S=e.rows;if(D.value===!0||S.length===0)return S;const{sortBy:L,descending:U}=x.value;return e.filter&&(S=k.value(S,e.filter,m.value,Ve)),G.value!==null&&(S=ne.value(e.rows===S?S.slice():S,L,U)),S}),q=c(()=>j.value.length),_=c(()=>{let S=j.value;if(D.value===!0)return S;const{rowsPerPage:L}=x.value;return L!==0&&($.value===0&&e.rows!==S?S.length>oe.value&&(S=S.slice(0,oe.value)):S=S.slice($.value,oe.value)),S}),{hasSelectionMode:F,singleSelection:y,multipleSelection:z,allRowsSelected:W,someRowsSelected:ae,rowsSelectedNumber:Q,isRowSelected:Z,clearSelection:E,updateSelection:N}=yi(e,l,_,d),{colList:te,computedCols:m,computedColsMap:f,computedColspan:O}=ki(e,x,F),{columnToSort:G,computedSortMethod:ne,sort:P}=si(e,x,te,p),{firstRowIndex:$,lastRowIndex:oe,isFirstPage:T,isLastPage:ce,pagesNumber:xe,computedRowsPerPageOptions:je,computedRowsNumber:pe,firstPage:Ke,prevPage:Ee,nextPage:Fe,lastPage:Qe}=gi(n,B,x,D,p,q),Je=c(()=>_.value.length===0),pt=c(()=>{const S={};return Nn.forEach(L=>{S[L]=e[L]}),S.virtualScrollItemSize===void 0&&(S.virtualScrollItemSize=e.dense===!0?28:48),S});function et(){g.value===!0&&r.value.reset()}function Re(){if(e.grid===!0)return Ot();const S=e.hideHeader!==!0?dt:null;if(g.value===!0){const U=t["top-row"],X=t["bottom-row"],ee={default:ve=>Et(ve.item,t.body,ve.index)};if(U!==void 0){const ve=v("tbody",U({cols:m.value}));ee.before=S===null?()=>ve:()=>[S()].concat(ve)}else S!==null&&(ee.before=S);return X!==void 0&&(ee.after=()=>v("tbody",X({cols:m.value}))),v(fo,{ref:r,class:e.tableClass,style:e.tableStyle,...pt.value,scrollTarget:e.virtualScrollTarget,items:_.value,type:"__qtable",tableColspan:O.value,onVirtualScroll:We},ee)}const L=[Ft()];return S!==null&&L.unshift(S()),Ln({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},L)}function ke(S,L){if(r.value!==null){r.value.scrollTo(S,L);return}S=parseInt(S,10);const U=h.value.querySelector(`tbody tr:nth-of-type(${S+1})`);if(U!==null){const X=h.value.querySelector(".q-table__middle.scroll"),ee=U.offsetTop-e.virtualScrollStickySizeStart,ve=ee{const vt=t[`body-cell-${we.name}`],mt=vt!==void 0?vt:ve;return mt!==void 0?mt(ol({key:X,row:S,pageIndex:U,col:we})):v("td",{class:we.__tdClass(S),style:we.__tdStyle(S)},Ve(we,S))});if(F.value===!0){const we=t["body-selection"],vt=we!==void 0?we(At({key:X,row:S,pageIndex:U})):[v(pl,{modelValue:ee,color:e.color,dark:o.value,dense:e.dense,"onUpdate:modelValue":(mt,sl)=>{N([X],[S],mt,sl)}})];fe.unshift(v("td",{class:"q-table--col-auto-width"},vt))}const Ie={key:X,class:{selected:ee}};return e.onRowClick!==void 0&&(Ie.class["cursor-pointer"]=!0,Ie.onClick=we=>{l("rowClick",we,S,U)}),e.onRowDblclick!==void 0&&(Ie.class["cursor-pointer"]=!0,Ie.onDblclick=we=>{l("rowDblclick",we,S,U)}),e.onRowContextmenu!==void 0&&(Ie.class["cursor-pointer"]=!0,Ie.onContextmenu=we=>{l("rowContextmenu",we,S,U)}),v("tr",Ie,fe)}function Ft(){const S=t.body,L=t["top-row"],U=t["bottom-row"];let X=_.value.map((ee,ve)=>Et(ee,S,ve));return L!==void 0&&(X=L({cols:m.value}).concat(X)),U!==void 0&&(X=X.concat(U({cols:m.value}))),v("tbody",X)}function st(S){return Ae(S),S.cols=S.cols.map(L=>Ye({...L},"value",()=>Ve(L,S.row))),S}function ol(S){return Ae(S),Ye(S,"value",()=>Ve(S.col,S.row)),S}function At(S){return Ae(S),S}function Ae(S){Object.assign(S,{cols:m.value,colsMap:f.value,sort:P,rowIndex:$.value+S.pageIndex,color:e.color,dark:o.value,dense:e.dense}),F.value===!0&&Ye(S,"selected",()=>Z(S.key),(L,U)=>{N([S.key],[S.row],L,U)}),Ye(S,"expand",()=>R(S.key),L=>{H(S.key,L)})}function Ve(S,L){const U=typeof S.field=="function"?S.field(L):L[S.field];return S.format!==void 0?S.format(U,L):U}const $e=c(()=>({pagination:x.value,pagesNumber:xe.value,isFirstPage:T.value,isLastPage:ce.value,firstPage:Ke,prevPage:Ee,nextPage:Fe,lastPage:Qe,inFullscreen:i.value,toggleFullscreen:s}));function il(){const S=t.top,L=t["top-left"],U=t["top-right"],X=t["top-selection"],ee=F.value===!0&&X!==void 0&&Q.value>0,ve="q-table__top relative-position row items-center";if(S!==void 0)return v("div",{class:ve},[S($e.value)]);let fe;if(ee===!0?fe=X($e.value).slice():(fe=[],L!==void 0?fe.push(v("div",{class:"q-table__control"},[L($e.value)])):e.title&&fe.push(v("div",{class:"q-table__control"},[v("div",{class:["q-table__title",e.titleClass]},e.title)]))),U!==void 0&&(fe.push(v("div",{class:"q-table__separator col"})),fe.push(v("div",{class:"q-table__control"},[U($e.value)]))),fe.length!==0)return v("div",{class:ve},fe)}const ct=c(()=>ae.value===!0?null:W.value);function dt(){const S=$t();return e.loading===!0&&t.loading===void 0&&S.push(v("tr",{class:"q-table__progress"},[v("th",{class:"relative-position",colspan:O.value},tt())])),v("thead",S)}function $t(){const S=t.header,L=t["header-cell"];if(S!==void 0)return S(ft({header:!0})).slice();const U=m.value.map(X=>{const ee=t[`header-cell-${X.name}`],ve=ee!==void 0?ee:L,fe=ft({col:X});return ve!==void 0?ve(fe):v(to,{key:X.name,props:fe},()=>X.label)});if(y.value===!0&&e.grid!==!0)U.unshift(v("th",{class:"q-table--col-auto-width"}," "));else if(z.value===!0){const X=t["header-selection"],ee=X!==void 0?X(ft({})):[v(pl,{color:e.color,modelValue:ct.value,dark:o.value,dense:e.dense,"onUpdate:modelValue":kt})];U.unshift(v("th",{class:"q-table--col-auto-width"},ee))}return[v("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},U)]}function ft(S){return Object.assign(S,{cols:m.value,sort:P,colsMap:f.value,color:e.color,dark:o.value,dense:e.dense}),z.value===!0&&Ye(S,"selected",()=>ct.value,kt),S}function kt(S){ae.value===!0&&(S=!1),N(_.value.map(d.value),_.value,S)}const lt=c(()=>{const S=[e.iconFirstPage||a.iconSet.table.firstPage,e.iconPrevPage||a.iconSet.table.prevPage,e.iconNextPage||a.iconSet.table.nextPage,e.iconLastPage||a.iconSet.table.lastPage];return a.lang.rtl===!0?S.reverse():S});function It(){if(e.hideBottom===!0)return;if(Je.value===!0){if(e.hideNoData===!0)return;const U=e.loading===!0?e.loadingLabel||a.lang.table.loading:e.filter?e.noResultsLabel||a.lang.table.noResults:e.noDataLabel||a.lang.table.noData,X=t["no-data"],ee=X!==void 0?[X({message:U,icon:a.iconSet.table.warning,filter:e.filter})]:[v(De,{class:"q-table__bottom-nodata-icon",name:a.iconSet.table.warning}),U];return v("div",{class:Wt+" q-table__bottom--nodata"},ee)}const S=t.bottom;if(S!==void 0)return v("div",{class:Wt},[S($e.value)]);const L=e.hideSelectedBanner!==!0&&F.value===!0&&Q.value>0?[v("div",{class:"q-table__control"},[v("div",[(e.selectedRowsLabel||a.lang.table.selectedRecords)(Q.value)])])]:[];if(e.hidePagination!==!0)return v("div",{class:Wt+" justify-end"},rl(L));if(L.length!==0)return v("div",{class:Wt},L)}function Ht(S){p({page:1,rowsPerPage:S.value})}function rl(S){let L;const{rowsPerPage:U}=x.value,X=e.paginationLabel||a.lang.table.pagination,ee=t.pagination,ve=e.rowsPerPageOptions.length>1;if(S.push(v("div",{class:"q-table__separator col"})),ve===!0&&S.push(v("div",{class:"q-table__control"},[v("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||a.lang.table.recordsPerPage]),v(Zo,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:U,options:je.value,displayValue:U===0?a.lang.table.allRows:U,dark:o.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Ht})])),ee!==void 0)L=ee($e.value);else if(L=[v("span",U!==0?{class:"q-table__bottom-item"}:{},[U?X($.value+1,Math.min(oe.value,pe.value),pe.value):X(1,q.value,pe.value)])],U!==0&&xe.value>1){const fe={color:e.color,round:!0,dense:!0,flat:!0};e.dense===!0&&(fe.size="sm"),xe.value>2&&L.push(v(Dt,{key:"pgFirst",...fe,icon:lt.value[0],disable:T.value,onClick:Ke})),L.push(v(Dt,{key:"pgPrev",...fe,icon:lt.value[1],disable:T.value,onClick:Ee}),v(Dt,{key:"pgNext",...fe,icon:lt.value[2],disable:ce.value,onClick:Fe})),xe.value>2&&L.push(v(Dt,{key:"pgLast",...fe,icon:lt.value[3],disable:ce.value,onClick:Qe}))}return S.push(v("div",{class:"q-table__control"},L)),S}function ul(){const S=e.gridHeader===!0?[v("table",{class:"q-table"},[dt()])]:e.loading===!0&&t.loading===void 0?tt():void 0;return v("div",{class:"q-table__middle"},S)}function Ot(){const S=t.item!==void 0?t.item:L=>{const U=L.cols.map(ee=>v("div",{class:"q-table__grid-item-row"},[v("div",{class:"q-table__grid-item-title"},[ee.label]),v("div",{class:"q-table__grid-item-value"},[ee.value])]));if(F.value===!0){const ee=t["body-selection"],ve=ee!==void 0?ee(L):[v(pl,{modelValue:L.selected,color:e.color,dark:o.value,dense:e.dense,"onUpdate:modelValue":(fe,Ie)=>{N([L.key],[L.row],fe,Ie)}})];U.unshift(v("div",{class:"q-table__grid-item-row"},ve),v(no,{dark:o.value}))}const X={class:["q-table__grid-item-card"+C.value,e.cardClass],style:e.cardStyle};return(e.onRowClick!==void 0||e.onRowDblclick!==void 0)&&(X.class[0]+=" cursor-pointer",e.onRowClick!==void 0&&(X.onClick=ee=>{l("RowClick",ee,L.row,L.pageIndex)}),e.onRowDblclick!==void 0&&(X.onDblclick=ee=>{l("RowDblclick",ee,L.row,L.pageIndex)})),v("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(L.selected===!0?" q-table__grid-item--selected":"")},[v("div",X,U)])};return v("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},_.value.map((L,U)=>S(st({key:d.value(L),row:L,pageIndex:U}))))}return Object.assign(n.proxy,{requestServerInteraction:M,setPagination:p,firstPage:Ke,prevPage:Ee,nextPage:Fe,lastPage:Qe,isRowSelected:Z,clearSelection:E,isRowExpanded:R,setExpanded:V,sort:P,resetVirtualScroll:et,scrollTo:ke,getCellValue:Ve}),Sa(n.proxy,{filteredSortedRows:()=>j.value,computedRows:()=>_.value,computedRowsNumber:()=>pe.value}),()=>{const S=[il()],L={ref:h,class:w.value};return e.grid===!0?S.push(ul()):Object.assign(L,{class:[L.class,e.cardClass],style:e.cardStyle}),S.push(Re(),It()),e.loading===!0&&t.loading!==void 0&&S.push(t.loading()),v("div",L,S)}}}),Ci=be({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){const{proxy:{$q:l}}=de(),n=_l(wa,St);if(n===St)return console.error("QPage needs to be a deep child of QLayout"),St;if(_l(xa,St)===St)return console.error("QPage needs to be child of QPageContainer"),St;const o=c(()=>{const s=(n.header.space===!0?n.header.size:0)+(n.footer.space===!0?n.footer.size:0);if(typeof e.styleFn=="function"){const d=n.isContainer.value===!0?n.containerHeight.value:l.screen.height;return e.styleFn(s,d)}return{minHeight:n.isContainer.value===!0?n.containerHeight.value-s+"px":l.screen.height===0?s!==0?`calc(100vh - ${s}px)`:"100vh":l.screen.height-s+"px"}}),i=c(()=>`q-page${e.padding===!0?" q-layout-padding":""}`);return()=>v("main",{class:i.value,style:o.value},qe(t.default))}});function xn(e){const t=e.indexOf("(");if(t===-1)return[e];const l=e.slice(0,t).trim(),n=e.slice(t+1,e.indexOf(")")).trim();return[l,n]}function pn(e,t){const l=e.replace(/=\?([^?]+)\?([BQ])\?([^?]+)\?=/gi,(a,o,i,s)=>i.toUpperCase()==="B"?qi(s,o):i.toUpperCase()==="Q"?Vi(s,o):e),n=l.indexOf(":");return{headerName:l.slice(0,n),headerData:l.slice(n+2),headerIndex:t}}function qi(e,t){const l=atob(e);return new TextDecoder(t).decode(new Uint8Array([...l].map(n=>n.charCodeAt(0))))}function Vi(e,t){const l=e.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(n,a)=>String.fromCharCode(parseInt(a,16)));return new TextDecoder(t).decode(new Uint8Array([...l].map(n=>n.charCodeAt(0))))}function Pi(e){const t="from",l="by",n="with",a="id",o="via",i={rawHeaderDetails:e};if(!e.headerData)return i;let s=e.headerData;const d=e.headerData.lastIndexOf(";");if(d!==-1){const F=e.headerData.slice(d+1).trim();i.dateTime=new Date(F),s=e.headerData.slice(0,d)}const h=s.indexOf(`${t} `);if(h===-1)return i;const r=h+t.length+1,g=s.indexOf(`${l} `,r);if(g===-1)return i;const C=s.slice(r,g-1),b=xn(C);i.fromDomain=b[0],i.fromIpAddress=b[1];const w=g+l.length+1,B=s.indexOf(`${n} `,w);if(B===-1)return i;const x=s.slice(w,B-1),D=xn(x);i.byDomain=D[0],i.byIpAddress=D[1];const M=B+n.length+1;let p=s.length,k=M;const R=s.indexOf(`${a} `,k);let V=0,H=0;R!==-1&&(V=R+a.length+1,k=V,p=R-1);const j=s.indexOf(`${o} `,k);let q=0,_=0;return j!==-1?(q=j+o.length+1,k=q,H=j-1,_=s.length):H=s.length,M>0&&(i.with=s.slice(M,p)),V>0&&(i.id=s.slice(V,H)),q>0&&(i.via=s.slice(q,_)),i}function Mi(e){const t=e.split(/\r?\n/);if(!t)return;const l=[];let n="",a=0;for(const o of t){if(!o)break;/^\s/.test(o)?n+=" "+o.trim():(n&&(l.push(pn(n,a)),a++),n=o)}return n&&l.push(pn(n,a)),l}const kn={splitMailHeader:Mi,parseReceivedHeader:Pi},Ri=["height","viewBox"],Bi=["transform"],Ti=Y("path",{d:"M 1,1 L 1,10 L 10,10, 10,1 Z","vector-effect":"non-scaling-stroke","shape-rendering":"crispEdges",style:{fill:"#263238"}},null,-1),Ei={x:"5",y:"5.5","dominant-baseline":"middle","text-anchor":"middle",style:{font:"normal 4px sans-serif",fill:"#fff"}},Fi=Y("path",{d:"M 1,1 L 110,1 L 110,40 L 1,40 Z","vector-effect":"non-scaling-stroke","shape-rendering":"crispEdges",style:{fill:"none",stroke:"#263238","stroke-width":"1px"}},null,-1),Ai={key:0,d:"M 111,15 L 115,20 L 111,25 Z",style:{fill:"#aaa",stroke:"#888","stroke-width":".3"}},$i={x:"4",y:"20",style:{font:"bold 4px sans-serif",fill:"#666"}},Ii={x:"4",y:"26",style:{font:"normal 4px sans-serif",fill:"#666"}},Hi={x:"4",y:"32",style:{font:"normal 4px sans-serif",fill:"#666"}},kl=6,Oi=110,_n=40,Li=5,Cn=5,Di=Mn({__name:"MailFlow",props:{receivedHeaders:{}},setup(e){const t=e,l=c(()=>Math.ceil(t.receivedHeaders.length/kl)),n=c(()=>l.value*(_n+Cn));function a(o){const s=Math.floor(o/kl)*(_n+Cn);return`translate(${o%kl*(Oi+Li)}, ${s})`}return(o,i)=>(ie(),re("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",width:"100%",height:n.value,version:"1.1",style:{width:"100%",height:"100%"},viewBox:`0 0 700 ${n.value}`},[(ie(!0),re(Ue,null,Ze(o.receivedHeaders,(s,d)=>{var h;return ie(),re("g",{key:d,transform:a(d)},[Ti,Y("text",Ei,_e(d+1),1),Fi,d(ka("data-v-0c24d498"),e=e(),_a(),e),zi={key:0,class:"row"},Ni={class:"col-12 col-md-6"},ji={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",width:"100%",height:"600",version:"1.1",viewBox:"0 0 32 32"},Ki=Me(()=>Y("g",{id:"mail"},[Y("path",{d:"m2.43 29.04 13.55-9.88 13.55 9.88",style:{fill:"none",stroke:"#263238","stroke-width":".8","stroke-dasharray":"none"}}),Y("path",{d:"m2.43 13.55 3.25-2.35",style:{fill:"none",stroke:"#263238","stroke-width":".8","stroke-dasharray":"none"}}),Y("path",{d:"m26.48 11.2 3.05 2.46",style:{fill:"none",stroke:"#263238","stroke-width":".8","stroke-dasharray":"none"}}),Y("path",{d:"M5.48 15.94c.12-.3 0-14.43 0-14.43H20.5l6.15 6.15v8.13",style:{fill:"none",stroke:"#666666","stroke-width":".8"}}),Y("path",{d:"M7 12 20 12 Z",style:{fill:"none",stroke:"#CCCCCC","stroke-width":".3"}}),Y("path",{d:"M7 14 24 14 Z",style:{fill:"none",stroke:"#CCCCCC","stroke-width":".3"}}),Y("path",{d:"M7 16 24 16 Z",style:{fill:"none",stroke:"#CCCCCC","stroke-width":".3"}}),Y("path",{d:"m11.6 20.16-9.17-6.61v16.87h27.1V13.66l-9.09 6.5",style:{fill:"none",stroke:"#263238","stroke-width":".8","stroke-linejoin":"round"}})],-1)),Qi={id:"letter",transform:"translate(0,-2)"},Wi=Me(()=>Y("text",{x:"7",y:"5.9",style:{font:"normal 0.5px sans-serif",fill:"#666"}},"From",-1)),Ui={x:"7",y:"6.8",style:{font:"normal 0.7px sans-serif"}},Zi=Me(()=>Y("text",{x:"7",y:"7.6",style:{font:"normal 0.5px sans-serif",fill:"#666"}},"To",-1)),Xi={x:"7",y:"8.5",style:{font:"normal 0.7px sans-serif"}},Yi={x:"7",y:"12",style:{font:"normal 0.7px sans-serif","font-weight":"bold"}},Gi=Me(()=>Y("text",{x:"11",y:"26",style:{font:"normal 0.5px sans-serif",fill:"#666"}},"ReturnPath",-1)),Ji={x:"11",y:"27",style:{font:"italic 1.0px sans-serif"}},er={class:"col-12 col-md-6"},tr={class:"q-my-md"},lr={class:"q-gutter-sm"},nr={key:0,class:"row"},ar=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," Return-Path ",-1)),or={class:"col-10 q-pa-sm bg-grey text-white"},ir={key:1,class:"row"},rr=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," From ",-1)),ur={class:"col-10 q-pa-sm bg-grey text-white"},sr={key:2,class:"row"},cr=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," To ",-1)),dr={class:"col-10 q-pa-sm bg-grey text-white"},fr={key:3,class:"row"},vr=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," Message-Id ",-1)),mr={class:"col-10 q-pa-sm bg-grey text-white"},gr={key:4,class:"row"},hr=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," Date ",-1)),br={class:"col-10 q-pa-sm bg-grey text-white"},yr={key:5,class:"row"},Sr=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," Subject ",-1)),wr={class:"col-10 q-pa-sm bg-grey text-white"},xr={key:6,class:"row"},pr=Me(()=>Y("div",{class:"col-2 bg-grey-4 q-pa-sm"}," Authentication-Results ",-1)),kr={class:"col-10 q-pa-sm bg-grey text-white"},_r={style:{margin:"0px"}},Cr={key:1},qr=Me(()=>Y("h2",null,"Mail Hops",-1)),Vr={key:0,class:"q-mt-sm"},Pr=Me(()=>Y("h2",null,"Other Headers",-1)),Mr=Mn({__name:"IndexPage",setup(e){const t={From:"From",To:"To",Subject:"Subject",Received:"Received",ReturnPath:"Return-Path",MessageId:"Message-Id",Date:"Date"},l=K(),n=K(),a=[{name:"headerName",align:"left",label:"Name",field:"headerName",sortable:!1,style:"width: 300px"},{name:"headerData",align:"left",label:"Data",field:"headerData",sortable:!1,classes:"text-break"},{name:"headerIndex",align:"left",label:"Index",field:"headerIndex",sortable:!1,style:"width: 70px"}],o=c(()=>{if(!!l.value)return kn.splitMailHeader(l.value)}),i=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName===t.ReturnPath)}),s=c(()=>{if(!!i.value)return i.value[0].headerData}),d=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName===t.From)}),h=c(()=>{if(!!d.value)return d.value[0].headerData}),r=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName===t.To)}),g=c(()=>{if(!!r.value)return r.value[0].headerData}),C=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName===t.Date)}),b=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName===t.MessageId)}),w=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName===t.Subject)}),B=c(()=>{if(!!w.value)return w.value[0].headerData}),x=c(()=>{var R;if(!o.value)return;const p=(R=o.value)==null?void 0:R.filter(V=>V.headerName===t.Received);if(!p)return;const k=p.filter(V=>V.headerData).map(V=>kn.parseReceivedHeader(V));return k==null||k.sort((V,H)=>V.rawHeaderDetails.headerIndex&&H.rawHeaderDetails.headerIndex?H.rawHeaderDetails.headerIndex-V.rawHeaderDetails.headerIndex:-1),k}),D=c(()=>{var p;return(p=o.value)==null?void 0:p.filter(k=>k.headerName==="Authentication-Results")}),M=c(()=>{var V,H;const p=Object.values(t),k=(V=o.value)==null?void 0:V.filter(j=>!p.includes(j.headerName)),R=(H=n.value)==null?void 0:H.toLowerCase();return R?k==null?void 0:k.filter(j=>j.headerName.toLowerCase().includes(R)):k});return(p,k)=>(ie(),Kl(Ci,{padding:""},{default:fl(()=>[Y("div",null,[Lt(tn,{modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=R=>l.value=R),spellcheck:"false",placeholder:"Paste email headers here",outlined:"",type:"textarea",rows:l.value?8:30},null,8,["modelValue","rows"])]),l.value?(ie(),re("div",zi,[Y("div",Ni,[(ie(),re("svg",ji,[Ki,Y("g",Qi,[Wi,Y("text",Ui,_e(h.value),1),Zi,Y("text",Xi,_e(g.value),1),Y("text",Yi,_e(B.value),1)]),Y("g",null,[Gi,Y("text",Ji,_e(s.value),1)])]))]),Y("div",er,[Y("div",tr,[Y("div",lr,[i.value&&i.value.length>0?(ie(),re("div",nr,[ar,Y("div",or,[(ie(!0),re(Ue,null,Ze(i.value,(R,V)=>(ie(),re("div",{key:`returnPathHeader-${V}`},_e(R.headerData),1))),128))])])):Be("",!0),d.value&&d.value.length>0?(ie(),re("div",ir,[rr,Y("div",ur,[(ie(!0),re(Ue,null,Ze(d.value,(R,V)=>(ie(),re("div",{key:`fromHeader-${V}`},_e(R.headerData),1))),128))])])):Be("",!0),r.value&&r.value.length>0?(ie(),re("div",sr,[cr,Y("div",dr,[(ie(!0),re(Ue,null,Ze(r.value,(R,V)=>(ie(),re("div",{key:`toHeader-${V}`},_e(R.headerData),1))),128))])])):Be("",!0),b.value&&b.value.length>0?(ie(),re("div",fr,[vr,Y("div",mr,[(ie(!0),re(Ue,null,Ze(b.value,(R,V)=>(ie(),re("div",{key:`messageIdHeader-${V}`},_e(R.headerData),1))),128))])])):Be("",!0),C.value&&C.value.length>0?(ie(),re("div",gr,[hr,Y("div",br,[(ie(!0),re(Ue,null,Ze(C.value,(R,V)=>(ie(),re("div",{key:`dateHeader-${V}`},_e(R.headerData),1))),128))])])):Be("",!0),w.value&&w.value.length>0?(ie(),re("div",yr,[Sr,Y("div",wr,[(ie(!0),re(Ue,null,Ze(w.value,(R,V)=>(ie(),re("div",{key:`subjectHeader-${V}`},_e(R.headerData),1))),128))])])):Be("",!0),D.value&&D.value.length>0?(ie(),re("div",xr,[pr,Y("div",kr,[(ie(!0),re(Ue,null,Ze(D.value,(R,V)=>(ie(),re("div",{key:`subjectHeader-${V}`},[Y("pre",_r,_e(R.headerData.split(";").map(H=>H.trim()).join(` +`)),1)]))),128))])])):Be("",!0)])])])])):Be("",!0),l.value?(ie(),re("div",Cr,[qr,x.value?(ie(),re("div",Vr,[Lt(Di,{"received-headers":x.value},null,8,["received-headers"])])):Be("",!0),Pr,M.value?(ie(),Kl(_i,{key:1,flat:"",bordered:"","wrap-cells":"","rows-per-page-options":[0],rows:M.value,columns:a,class:"full-width","table-style":"min-height: 400px;"},{top:fl(()=>[Lt(tn,{modelValue:n.value,"onUpdate:modelValue":k[1]||(k[1]=R=>n.value=R),outlined:"",dense:"",debounce:"100",placeholder:"Search",class:"full-width","bg-color":n.value?"grey-3":""},{append:fl(()=>[Lt(De,{name:"search"})]),_:1},8,["modelValue","bg-color"])]),_:1},8,["rows"])):Be("",!0)])):Be("",!0)]),_:1}))}});var Er=pa(Mr,[["__scopeId","data-v-0c24d498"]]);export{Er as default}; diff --git a/assets/IndexPage.d5bf1bf1.css b/assets/IndexPage.d5bf1bf1.css new file mode 100644 index 0000000..48085ac --- /dev/null +++ b/assets/IndexPage.d5bf1bf1.css @@ -0,0 +1 @@ +[data-v-0c24d498] .text-break{word-break:break-all} diff --git a/assets/IndexPage.fa81f00b.css b/assets/IndexPage.fa81f00b.css deleted file mode 100644 index b5e7bf1..0000000 --- a/assets/IndexPage.fa81f00b.css +++ /dev/null @@ -1 +0,0 @@ -[data-v-fd2b1960] .text-break{word-break:break-all} diff --git a/assets/MainLayout.83b5c455.js b/assets/MainLayout.74da7b76.js similarity index 98% rename from assets/MainLayout.83b5c455.js rename to assets/MainLayout.74da7b76.js index 5a02219..318e62d 100644 --- a/assets/MainLayout.83b5c455.js +++ b/assets/MainLayout.74da7b76.js @@ -1 +1 @@ -import{c as q,a as d,h,r as w,i as K,o as P,b as R,n as G,d as D,g as Q,l as F,e as J,f as L,w as x,j as N,p as X,k as Z,m as C,q as ee,_ as te,s as ne,t as oe,u as le,v as T,x as _,y as E}from"./index.92633fe6.js";import{h as W,a as ie,b as re,Q as A}from"./QBtn.7ce9a280.js";import{s as ae,g as se,a as ue,b as ce,c as k}from"./scroll.ea6f512c.js";var de=q({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:v}){const n=d(()=>"q-toolbar__title ellipsis"+(e.shrink===!0?" col-shrink":""));return()=>h("div",{class:n.value},W(v.default))}}),fe=q({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:v}){const n=d(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>h("div",{class:n.value,role:"toolbar"},W(v.default))}});function ve(){const e=w(!K.value);return e.value===!1&&P(()=>{e.value=!0}),{isHydrated:e}}const Y=typeof ResizeObserver!="undefined",U=Y===!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"};var M=q({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:v}){let n=null,t,l={width:-1,height:-1};function s(a){a===!0||e.debounce===0||e.debounce==="0"?u():n===null&&(n=setTimeout(u,e.debounce))}function u(){if(n!==null&&(clearTimeout(n),n=null),t){const{offsetWidth:a,offsetHeight:i}=t;(a!==l.width||i!==l.height)&&(l={width:a,height:i},v("resize",l))}}const{proxy:m}=Q();if(m.trigger=s,Y===!0){let a;const i=g=>{t=m.$el.parentNode,t?(a=new ResizeObserver(s),a.observe(t),u()):g!==!0&&D(()=>{i(!0)})};return P(()=>{i()}),R(()=>{n!==null&&clearTimeout(n),a!==void 0&&(a.disconnect!==void 0?a.disconnect():t&&a.unobserve(t))}),G}else{let g=function(){n!==null&&(clearTimeout(n),n=null),i!==void 0&&(i.removeEventListener!==void 0&&i.removeEventListener("resize",s,F.passive),i=void 0)},b=function(){g(),t&&t.contentDocument&&(i=t.contentDocument.defaultView,i.addEventListener("resize",s,F.passive),u())};const{isHydrated:a}=ve();let i;return P(()=>{D(()=>{t=m.$el,t&&b()})}),R(g),()=>{if(a.value===!0)return h("object",{class:"q--avoid-card-border",style:U.style,tabindex:-1,type:"text/html",data:U.url,"aria-hidden":"true",onLoad:b})}}}}),he=q({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:v,emit:n}){const{proxy:{$q:t}}=Q(),l=J(N,L);if(l===L)return console.error("QHeader needs to be child of QLayout"),L;const s=w(parseInt(e.heightHint,10)),u=w(!0),m=d(()=>e.reveal===!0||l.view.value.indexOf("H")!==-1||t.platform.is.ios&&l.isContainer.value===!0),a=d(()=>{if(e.modelValue!==!0)return 0;if(m.value===!0)return u.value===!0?s.value:0;const o=s.value-l.scroll.value.position;return o>0?o:0}),i=d(()=>e.modelValue!==!0||m.value===!0&&u.value!==!0),g=d(()=>e.modelValue===!0&&i.value===!0&&e.reveal===!0),b=d(()=>"q-header q-layout__section--marginal "+(m.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(i.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),z=d(()=>{const o=l.rows.value.top,p={};return o[0]==="l"&&l.left.space===!0&&(p[t.lang.rtl===!0?"right":"left"]=`${l.left.size}px`),o[2]==="r"&&l.right.space===!0&&(p[t.lang.rtl===!0?"left":"right"]=`${l.right.size}px`),p});function c(o,p){l.update("header",o,p)}function y(o,p){o.value!==p&&(o.value=p)}function V({height:o}){y(s,o),c("size",o)}function O(o){g.value===!0&&y(u,!0),n("focusin",o)}x(()=>e.modelValue,o=>{c("space",o),y(u,!0),l.animate()}),x(a,o=>{c("offset",o)}),x(()=>e.reveal,o=>{o===!1&&y(u,e.modelValue)}),x(u,o=>{l.animate(),n("reveal",o)}),x(l.scroll,o=>{e.reveal===!0&&y(u,o.direction==="up"||o.position<=e.revealOffset||o.position-o.inflectionPoint<100)});const $={};return l.instances.header=$,e.modelValue===!0&&c("size",s.value),c("space",e.modelValue),c("offset",a.value),R(()=>{l.instances.header===$&&(l.instances.header=void 0,c("size",0),c("offset",0),c("space",!1))}),()=>{const o=ie(v.default,[]);return e.elevated===!0&&o.push(h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),o.push(h(M,{debounce:0,onResize:V})),h("header",{class:b.value,style:z.value,onFocusin:O},o)}}}),me=q({name:"QPageContainer",setup(e,{slots:v}){const{proxy:{$q:n}}=Q(),t=J(N,L);if(t===L)return console.error("QPageContainer needs to be child of QLayout"),L;X(Z,!0);const l=d(()=>{const s={};return t.header.space===!0&&(s.paddingTop=`${t.header.size}px`),t.right.space===!0&&(s[`padding${n.lang.rtl===!0?"Left":"Right"}`]=`${t.right.size}px`),t.footer.space===!0&&(s.paddingBottom=`${t.footer.size}px`),t.left.space===!0&&(s[`padding${n.lang.rtl===!0?"Right":"Left"}`]=`${t.left.size}px`),s});return()=>h("div",{class:"q-page-container",style:l.value},W(v.default))}});const{passive:I}=F,ge=["both","horizontal","vertical"];var be=q({name:"QScrollObserver",props:{axis:{type:String,validator:e=>ge.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:ae},emits:["scroll"],setup(e,{emit:v}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let t=null,l,s;x(()=>e.scrollTarget,()=>{a(),m()});function u(){t!==null&&t();const b=Math.max(0,ue(l)),z=ce(l),c={top:b-n.position.top,left:z-n.position.left};if(e.axis==="vertical"&&c.top===0||e.axis==="horizontal"&&c.left===0)return;const y=Math.abs(c.top)>=Math.abs(c.left)?c.top<0?"up":"down":c.left<0?"left":"right";n.position={top:b,left:z},n.directionChanged=n.direction!==y,n.delta=c,n.directionChanged===!0&&(n.direction=y,n.inflectionPoint=n.position),v("scroll",{...n})}function m(){l=se(s,e.scrollTarget),l.addEventListener("scroll",i,I),i(!0)}function a(){l!==void 0&&(l.removeEventListener("scroll",i,I),l=void 0)}function i(b){if(b===!0||e.debounce===0||e.debounce==="0")u();else if(t===null){const[z,c]=e.debounce?[setTimeout(u,e.debounce),clearTimeout]:[requestAnimationFrame(u),cancelAnimationFrame];t=()=>{c(z),t=null}}}const{proxy:g}=Q();return x(()=>g.$q.lang.rtl,u),P(()=>{s=g.$el.parentNode,m()}),R(()=>{t!==null&&t(),a()}),Object.assign(g,{trigger:i,getPosition:()=>n}),G}}),pe=q({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:v,emit:n}){const{proxy:{$q:t}}=Q(),l=w(null),s=w(t.screen.height),u=w(e.container===!0?0:t.screen.width),m=w({position:0,direction:"down",inflectionPoint:0}),a=w(0),i=w(K.value===!0?0:k()),g=d(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),b=d(()=>e.container===!1?{minHeight:t.screen.height+"px"}:null),z=d(()=>i.value!==0?{[t.lang.rtl===!0?"left":"right"]:`${i.value}px`}:null),c=d(()=>i.value!==0?{[t.lang.rtl===!0?"right":"left"]:0,[t.lang.rtl===!0?"left":"right"]:`-${i.value}px`,width:`calc(100% + ${i.value}px)`}:null);function y(r){if(e.container===!0||document.qScrollPrevented!==!0){const f={position:r.position.top,direction:r.direction,directionChanged:r.directionChanged,inflectionPoint:r.inflectionPoint.top,delta:r.delta.top};m.value=f,e.onScroll!==void 0&&n("scroll",f)}}function V(r){const{height:f,width:S}=r;let H=!1;s.value!==f&&(H=!0,s.value=f,e.onScrollHeight!==void 0&&n("scrollHeight",f),$()),u.value!==S&&(H=!0,u.value=S),H===!0&&e.onResize!==void 0&&n("resize",r)}function O({height:r}){a.value!==r&&(a.value=r,$())}function $(){if(e.container===!0){const r=s.value>a.value?k():0;i.value!==r&&(i.value=r)}}let o=null;const p={instances:{},view:d(()=>e.view),isContainer:d(()=>e.container),rootRef:l,height:s,containerHeight:a,scrollbarWidth:i,totalWidth:d(()=>u.value+i.value),rows:d(()=>{const r=e.view.toLowerCase().split(" ");return{top:r[0].split(""),middle:r[1].split(""),bottom:r[2].split("")}}),header:C({size:0,offset:0,space:!1}),right:C({size:300,offset:0,space:!1}),footer:C({size:0,offset:0,space:!1}),left:C({size:300,offset:0,space:!1}),scroll:m,animate(){o!==null?clearTimeout(o):document.body.classList.add("q-body--layout-animate"),o=setTimeout(()=>{o=null,document.body.classList.remove("q-body--layout-animate")},155)},update(r,f,S){p[r][f]=S}};if(X(N,p),k()>0){let S=function(){r=null,f.classList.remove("hide-scrollbar")},H=function(){if(r===null){if(f.scrollHeight>t.screen.height)return;f.classList.add("hide-scrollbar")}else clearTimeout(r);r=setTimeout(S,300)},B=function(j){r!==null&&j==="remove"&&(clearTimeout(r),S()),window[`${j}EventListener`]("resize",H)},r=null;const f=document.body;x(()=>e.container!==!0?"add":"remove",B),e.container!==!0&&B("add"),ee(()=>{B("remove")})}return()=>{const r=re(v.default,[h(be,{onScroll:y}),h(M,{onResize:V})]),f=h("div",{class:g.value,style:b.value,ref:e.container===!0?void 0:l,tabindex:-1},r);return e.container===!0?h("div",{class:"q-layout-container overflow-hidden",ref:l},[h(M,{onResize:O}),h("div",{class:"absolute-full",style:z.value},[h("div",{class:"scroll",style:c.value},[f])])]):f}}});const ye={};function we(e,v){const n=ne("router-view");return oe(),le(pe,{view:"lHh Lpr lFf"},{default:T(()=>[_(he,null,{default:T(()=>[_(fe,null,{default:T(()=>[_(de,null,{default:T(()=>[E(" Mailtower - E-Mail Header Analyzer ")]),_:1}),_(A,{stretch:"",flat:"",href:"https://mailtower.app"},{default:T(()=>[E(" Mailtower.app ")]),_:1}),_(A,{stretch:"",flat:"",href:"https://github.com/mailtower-app/email-header-analyzer"},{default:T(()=>[E(" GitHub ")]),_:1})]),_:1})]),_:1}),_(me,null,{default:T(()=>[_(n)]),_:1})]),_:1})}var Te=te(ye,[["render",we]]);export{Te as default}; +import{c as q,a as d,h,r as w,i as K,o as P,b as R,n as G,d as D,g as Q,l as F,e as J,f as L,w as x,j as N,p as X,k as Z,m as C,q as ee,_ as te,s as ne,t as oe,u as le,v as T,x as _,y as E}from"./index.f85e7812.js";import{h as W,a as ie,b as re,Q as A}from"./QBtn.4f67275f.js";import{s as ae,g as se,a as ue,b as ce,c as k}from"./scroll.bcfb7906.js";var de=q({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:v}){const n=d(()=>"q-toolbar__title ellipsis"+(e.shrink===!0?" col-shrink":""));return()=>h("div",{class:n.value},W(v.default))}}),fe=q({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:v}){const n=d(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>h("div",{class:n.value,role:"toolbar"},W(v.default))}});function ve(){const e=w(!K.value);return e.value===!1&&P(()=>{e.value=!0}),{isHydrated:e}}const Y=typeof ResizeObserver!="undefined",U=Y===!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"};var M=q({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:v}){let n=null,t,l={width:-1,height:-1};function s(a){a===!0||e.debounce===0||e.debounce==="0"?u():n===null&&(n=setTimeout(u,e.debounce))}function u(){if(n!==null&&(clearTimeout(n),n=null),t){const{offsetWidth:a,offsetHeight:i}=t;(a!==l.width||i!==l.height)&&(l={width:a,height:i},v("resize",l))}}const{proxy:m}=Q();if(m.trigger=s,Y===!0){let a;const i=g=>{t=m.$el.parentNode,t?(a=new ResizeObserver(s),a.observe(t),u()):g!==!0&&D(()=>{i(!0)})};return P(()=>{i()}),R(()=>{n!==null&&clearTimeout(n),a!==void 0&&(a.disconnect!==void 0?a.disconnect():t&&a.unobserve(t))}),G}else{let g=function(){n!==null&&(clearTimeout(n),n=null),i!==void 0&&(i.removeEventListener!==void 0&&i.removeEventListener("resize",s,F.passive),i=void 0)},b=function(){g(),t&&t.contentDocument&&(i=t.contentDocument.defaultView,i.addEventListener("resize",s,F.passive),u())};const{isHydrated:a}=ve();let i;return P(()=>{D(()=>{t=m.$el,t&&b()})}),R(g),()=>{if(a.value===!0)return h("object",{class:"q--avoid-card-border",style:U.style,tabindex:-1,type:"text/html",data:U.url,"aria-hidden":"true",onLoad:b})}}}}),he=q({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:v,emit:n}){const{proxy:{$q:t}}=Q(),l=J(N,L);if(l===L)return console.error("QHeader needs to be child of QLayout"),L;const s=w(parseInt(e.heightHint,10)),u=w(!0),m=d(()=>e.reveal===!0||l.view.value.indexOf("H")!==-1||t.platform.is.ios&&l.isContainer.value===!0),a=d(()=>{if(e.modelValue!==!0)return 0;if(m.value===!0)return u.value===!0?s.value:0;const o=s.value-l.scroll.value.position;return o>0?o:0}),i=d(()=>e.modelValue!==!0||m.value===!0&&u.value!==!0),g=d(()=>e.modelValue===!0&&i.value===!0&&e.reveal===!0),b=d(()=>"q-header q-layout__section--marginal "+(m.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(i.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),z=d(()=>{const o=l.rows.value.top,p={};return o[0]==="l"&&l.left.space===!0&&(p[t.lang.rtl===!0?"right":"left"]=`${l.left.size}px`),o[2]==="r"&&l.right.space===!0&&(p[t.lang.rtl===!0?"left":"right"]=`${l.right.size}px`),p});function c(o,p){l.update("header",o,p)}function y(o,p){o.value!==p&&(o.value=p)}function V({height:o}){y(s,o),c("size",o)}function O(o){g.value===!0&&y(u,!0),n("focusin",o)}x(()=>e.modelValue,o=>{c("space",o),y(u,!0),l.animate()}),x(a,o=>{c("offset",o)}),x(()=>e.reveal,o=>{o===!1&&y(u,e.modelValue)}),x(u,o=>{l.animate(),n("reveal",o)}),x(l.scroll,o=>{e.reveal===!0&&y(u,o.direction==="up"||o.position<=e.revealOffset||o.position-o.inflectionPoint<100)});const $={};return l.instances.header=$,e.modelValue===!0&&c("size",s.value),c("space",e.modelValue),c("offset",a.value),R(()=>{l.instances.header===$&&(l.instances.header=void 0,c("size",0),c("offset",0),c("space",!1))}),()=>{const o=ie(v.default,[]);return e.elevated===!0&&o.push(h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),o.push(h(M,{debounce:0,onResize:V})),h("header",{class:b.value,style:z.value,onFocusin:O},o)}}}),me=q({name:"QPageContainer",setup(e,{slots:v}){const{proxy:{$q:n}}=Q(),t=J(N,L);if(t===L)return console.error("QPageContainer needs to be child of QLayout"),L;X(Z,!0);const l=d(()=>{const s={};return t.header.space===!0&&(s.paddingTop=`${t.header.size}px`),t.right.space===!0&&(s[`padding${n.lang.rtl===!0?"Left":"Right"}`]=`${t.right.size}px`),t.footer.space===!0&&(s.paddingBottom=`${t.footer.size}px`),t.left.space===!0&&(s[`padding${n.lang.rtl===!0?"Right":"Left"}`]=`${t.left.size}px`),s});return()=>h("div",{class:"q-page-container",style:l.value},W(v.default))}});const{passive:I}=F,ge=["both","horizontal","vertical"];var be=q({name:"QScrollObserver",props:{axis:{type:String,validator:e=>ge.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:ae},emits:["scroll"],setup(e,{emit:v}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let t=null,l,s;x(()=>e.scrollTarget,()=>{a(),m()});function u(){t!==null&&t();const b=Math.max(0,ue(l)),z=ce(l),c={top:b-n.position.top,left:z-n.position.left};if(e.axis==="vertical"&&c.top===0||e.axis==="horizontal"&&c.left===0)return;const y=Math.abs(c.top)>=Math.abs(c.left)?c.top<0?"up":"down":c.left<0?"left":"right";n.position={top:b,left:z},n.directionChanged=n.direction!==y,n.delta=c,n.directionChanged===!0&&(n.direction=y,n.inflectionPoint=n.position),v("scroll",{...n})}function m(){l=se(s,e.scrollTarget),l.addEventListener("scroll",i,I),i(!0)}function a(){l!==void 0&&(l.removeEventListener("scroll",i,I),l=void 0)}function i(b){if(b===!0||e.debounce===0||e.debounce==="0")u();else if(t===null){const[z,c]=e.debounce?[setTimeout(u,e.debounce),clearTimeout]:[requestAnimationFrame(u),cancelAnimationFrame];t=()=>{c(z),t=null}}}const{proxy:g}=Q();return x(()=>g.$q.lang.rtl,u),P(()=>{s=g.$el.parentNode,m()}),R(()=>{t!==null&&t(),a()}),Object.assign(g,{trigger:i,getPosition:()=>n}),G}}),pe=q({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:v,emit:n}){const{proxy:{$q:t}}=Q(),l=w(null),s=w(t.screen.height),u=w(e.container===!0?0:t.screen.width),m=w({position:0,direction:"down",inflectionPoint:0}),a=w(0),i=w(K.value===!0?0:k()),g=d(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),b=d(()=>e.container===!1?{minHeight:t.screen.height+"px"}:null),z=d(()=>i.value!==0?{[t.lang.rtl===!0?"left":"right"]:`${i.value}px`}:null),c=d(()=>i.value!==0?{[t.lang.rtl===!0?"right":"left"]:0,[t.lang.rtl===!0?"left":"right"]:`-${i.value}px`,width:`calc(100% + ${i.value}px)`}:null);function y(r){if(e.container===!0||document.qScrollPrevented!==!0){const f={position:r.position.top,direction:r.direction,directionChanged:r.directionChanged,inflectionPoint:r.inflectionPoint.top,delta:r.delta.top};m.value=f,e.onScroll!==void 0&&n("scroll",f)}}function V(r){const{height:f,width:S}=r;let H=!1;s.value!==f&&(H=!0,s.value=f,e.onScrollHeight!==void 0&&n("scrollHeight",f),$()),u.value!==S&&(H=!0,u.value=S),H===!0&&e.onResize!==void 0&&n("resize",r)}function O({height:r}){a.value!==r&&(a.value=r,$())}function $(){if(e.container===!0){const r=s.value>a.value?k():0;i.value!==r&&(i.value=r)}}let o=null;const p={instances:{},view:d(()=>e.view),isContainer:d(()=>e.container),rootRef:l,height:s,containerHeight:a,scrollbarWidth:i,totalWidth:d(()=>u.value+i.value),rows:d(()=>{const r=e.view.toLowerCase().split(" ");return{top:r[0].split(""),middle:r[1].split(""),bottom:r[2].split("")}}),header:C({size:0,offset:0,space:!1}),right:C({size:300,offset:0,space:!1}),footer:C({size:0,offset:0,space:!1}),left:C({size:300,offset:0,space:!1}),scroll:m,animate(){o!==null?clearTimeout(o):document.body.classList.add("q-body--layout-animate"),o=setTimeout(()=>{o=null,document.body.classList.remove("q-body--layout-animate")},155)},update(r,f,S){p[r][f]=S}};if(X(N,p),k()>0){let S=function(){r=null,f.classList.remove("hide-scrollbar")},H=function(){if(r===null){if(f.scrollHeight>t.screen.height)return;f.classList.add("hide-scrollbar")}else clearTimeout(r);r=setTimeout(S,300)},B=function(j){r!==null&&j==="remove"&&(clearTimeout(r),S()),window[`${j}EventListener`]("resize",H)},r=null;const f=document.body;x(()=>e.container!==!0?"add":"remove",B),e.container!==!0&&B("add"),ee(()=>{B("remove")})}return()=>{const r=re(v.default,[h(be,{onScroll:y}),h(M,{onResize:V})]),f=h("div",{class:g.value,style:b.value,ref:e.container===!0?void 0:l,tabindex:-1},r);return e.container===!0?h("div",{class:"q-layout-container overflow-hidden",ref:l},[h(M,{onResize:O}),h("div",{class:"absolute-full",style:z.value},[h("div",{class:"scroll",style:c.value},[f])])]):f}}});const ye={};function we(e,v){const n=ne("router-view");return oe(),le(pe,{view:"lHh Lpr lFf"},{default:T(()=>[_(he,null,{default:T(()=>[_(fe,null,{default:T(()=>[_(de,null,{default:T(()=>[E(" Mailtower - E-Mail Header Analyzer ")]),_:1}),_(A,{stretch:"",flat:"",href:"https://mailtower.app"},{default:T(()=>[E(" Mailtower.app ")]),_:1}),_(A,{stretch:"",flat:"",href:"https://github.com/mailtower-app/email-header-analyzer"},{default:T(()=>[E(" GitHub ")]),_:1})]),_:1})]),_:1}),_(me,null,{default:T(()=>[_(n)]),_:1})]),_:1})}var Te=te(ye,[["render",we]]);export{Te as default}; diff --git a/assets/QBtn.7ce9a280.js b/assets/QBtn.4f67275f.js similarity index 99% rename from assets/QBtn.7ce9a280.js rename to assets/QBtn.4f67275f.js index e74dfa5..b56e49f 100644 --- a/assets/QBtn.7ce9a280.js +++ b/assets/QBtn.4f67275f.js @@ -1 +1 @@ -import{h as v,z as ae,a as c,c as Q,g as V,A as fe,B as ve,C as N,D as ge,E as me,F as re,G as he,r as H,b as be,T as ye,H as P,I as ke,l as pe}from"./index.92633fe6.js";function xe(e,t){return e!==void 0&&e()||t}function Je(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function z(e,t){return e!==void 0?t.concat(e()):t}function Ze(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function et(e,t,n,a,l,d){t.key=a+l;const o=v(e,t,n);return l===!0?ae(o,d()):o}const F={xs:18,sm:24,md:32,lg:38,xl:46},ie={size:String};function ue(e,t=F){return c(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}const U="0 0 24 24",W=e=>e,K=e=>`ionicons ${e}`,le={"mdi-":e=>`mdi ${e}`,"icon-":W,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":K,"ion-ios":K,"ion-logo":K,"iconfont ":W,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},oe={o_:"-outlined",r_:"-round",s_:"-sharp"},se={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},qe=new RegExp("^("+Object.keys(le).join("|")+")"),$e=new RegExp("^("+Object.keys(oe).join("|")+")"),X=new RegExp("^("+Object.keys(se).join("|")+")"),Ee=/^[Mm]\s?[-+]?\.?\d/,Se=/^img:/,Re=/^svguse:/,we=/^ion-/,Be=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var G=Q({name:"QIcon",props:{...ie,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=V(),a=ue(e),l=c(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),d=c(()=>{let o,i=e.name;if(i==="none"||!i)return{none:!0};if(n.iconMapFn!==null){const s=n.iconMapFn(i);if(s!==void 0)if(s.icon!==void 0){if(i=s.icon,i==="none"||!i)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(Ee.test(i)===!0){const[s,y=U]=i.split("|");return{svg:!0,viewBox:y,nodes:s.split("&&").map(u=>{const[k,h,p]=u.split("@@");return v("path",{style:h,d:k,transform:p})})}}if(Se.test(i)===!0)return{img:!0,src:i.substring(4)};if(Re.test(i)===!0){const[s,y=U]=i.split("|");return{svguse:!0,src:s.substring(7),viewBox:y}}let q=" ";const b=i.match(qe);if(b!==null)o=le[b[1]](i);else if(Be.test(i)===!0)o=i;else if(we.test(i)===!0)o=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${i.substring(3)}`;else if(X.test(i)===!0){o="notranslate material-symbols";const s=i.match(X);s!==null&&(i=i.substring(6),o+=se[s[1]]),q=i}else{o="notranslate material-icons";const s=i.match($e);s!==null&&(i=i.substring(2),o+=oe[s[1]]),q=i}return{cls:o,content:q}});return()=>{const o={class:l.value,style:a.value,"aria-hidden":"true",role:"presentation"};return d.value.none===!0?v(e.tag,o,xe(t.default)):d.value.img===!0?v(e.tag,o,z(t.default,[v("img",{src:d.value.src})])):d.value.svg===!0?v(e.tag,o,z(t.default,[v("svg",{viewBox:d.value.viewBox||"0 0 24 24"},d.value.nodes)])):d.value.svguse===!0?v(e.tag,o,z(t.default,[v("svg",{viewBox:d.value.viewBox},[v("use",{"xlink:href":d.value.src})])])):(d.value.cls!==void 0&&(o.class+=" "+d.value.cls),v(e.tag,o,z(t.default,[d.value.content])))}}});const Ce={size:{type:[String,Number],default:"1em"},color:String};function Le(e){return{cSize:c(()=>e.size in F?`${F[e.size]}px`:e.size),classes:c(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}var _e=Q({name:"QSpinner",props:{...Ce,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=Le(e);return()=>v("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[v("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Pe(e,t){const n=e.style;for(const a in t)n[a]=t[a]}function tt(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=fe(e);if(t)return t.$el||t}function nt(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}function Te(e,t=250){let n=!1,a;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),a=e.apply(this,arguments)),a}}function Y(e,t,n,a){n.modifiers.stop===!0&&re(e);const l=n.modifiers.color;let d=n.modifiers.center;d=d===!0||a===!0;const o=document.createElement("span"),i=document.createElement("span"),q=he(e),{left:b,top:s,width:y,height:u}=t.getBoundingClientRect(),k=Math.sqrt(y*y+u*u),h=k/2,p=`${(y-k)/2}px`,f=d?p:`${q.left-b-h}px`,x=`${(u-k)/2}px`,_=d?x:`${q.top-s-h}px`;i.className="q-ripple__inner",Pe(i,{height:`${k}px`,width:`${k}px`,transform:`translate3d(${f},${_},0) scale3d(.2,.2,1)`,opacity:0}),o.className=`q-ripple${l?" text-"+l:""}`,o.setAttribute("dir","ltr"),o.appendChild(i),t.appendChild(o);const C=()=>{o.remove(),clearTimeout(L)};n.abort.push(C);let L=setTimeout(()=>{i.classList.add("q-ripple__inner--enter"),i.style.transform=`translate3d(${p},${x},0) scale3d(1,1,1)`,i.style.opacity=.2,L=setTimeout(()=>{i.classList.remove("q-ripple__inner--enter"),i.classList.add("q-ripple__inner--leave"),i.style.opacity=0,L=setTimeout(()=>{o.remove(),n.abort.splice(n.abort.indexOf(C),1)},275)},250)},50)}function J(e,{modifiers:t,value:n,arg:a}){const l=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:l.early===!0,stop:l.stop===!0,center:l.center===!0,color:l.color||a,keyCodes:[].concat(l.keyCodes||13)}}var Oe=ve({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const a={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(l){a.enabled===!0&&l.qSkipRipple!==!0&&l.type===(a.modifiers.early===!0?"pointerdown":"click")&&Y(l,e,a,l.qKeyEvent===!0)},keystart:Te(l=>{a.enabled===!0&&l.qSkipRipple!==!0&&N(l,a.modifiers.keyCodes)===!0&&l.type===`key${a.modifiers.early===!0?"down":"up"}`&&Y(l,e,a,!0)},300)};J(a,t),e.__qripple=a,ge(a,"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&&J(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),me(t,"main"),delete e._qripple)}});const ce={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ae=Object.keys(ce),Me={align:{type:String,validator:e=>Ae.includes(e)}};function je(e){return c(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${ce[t]}`})}function at(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 ze(e){return e.appContext.config.globalProperties.$router!==void 0}function rt(e){return e.isUnmounted===!0||e.isDeactivated===!0}function Z(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function ee(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function De(e,t){for(const n in t){const a=t[n],l=e[n];if(typeof a=="string"){if(a!==l)return!1}else if(Array.isArray(l)===!1||l.length!==a.length||a.some((d,o)=>d!==l[o]))return!1}return!0}function te(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Ie(e,t){return Array.isArray(e)===!0?te(e,t):Array.isArray(t)===!0?te(t,e):e===t}function Ke(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(Ie(e[n],t[n])===!1)return!1;return!0}const de={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},it={...de,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ne({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=V(),{props:a,proxy:l,emit:d}=n,o=ze(n),i=c(()=>a.disable!==!0&&a.href!==void 0),q=t===!0?c(()=>o===!0&&a.disable!==!0&&i.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):c(()=>o===!0&&i.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),b=c(()=>q.value===!0?_(a.to):null),s=c(()=>b.value!==null),y=c(()=>i.value===!0||s.value===!0),u=c(()=>a.type==="a"||y.value===!0?"a":a.tag||e||"div"),k=c(()=>i.value===!0?{href:a.href,target:a.target}:s.value===!0?{href:b.value.href,target:a.target}:{}),h=c(()=>{if(s.value===!1)return-1;const{matched:g}=b.value,{length:$}=g,S=g[$-1];if(S===void 0)return-1;const w=l.$route.matched;if(w.length===0)return-1;const B=w.findIndex(ee.bind(null,S));if(B!==-1)return B;const D=Z(g[$-2]);return $>1&&Z(S)===D&&w[w.length-1].path!==D?w.findIndex(ee.bind(null,g[$-2])):B}),p=c(()=>s.value===!0&&h.value!==-1&&De(l.$route.params,b.value.params)),f=c(()=>p.value===!0&&h.value===l.$route.matched.length-1&&Ke(l.$route.params,b.value.params)),x=c(()=>s.value===!0?f.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":p.value===!0?` ${a.activeClass}`:"":"");function _(g){try{return l.$router.resolve(g)}catch{}return null}function C(g,{returnRouterError:$,to:S=a.to,replace:w=a.replace}={}){if(a.disable===!0)return g.preventDefault(),Promise.resolve(!1);if(g.metaKey||g.altKey||g.ctrlKey||g.shiftKey||g.button!==void 0&&g.button!==0||a.target==="_blank")return Promise.resolve(!1);g.preventDefault();const B=l.$router[w===!0?"replace":"push"](S);return $===!0?B:B.then(()=>{}).catch(()=>{})}function L(g){if(s.value===!0){const $=S=>C(g,S);d("click",g,$),g.defaultPrevented!==!0&&$()}else d("click",g)}return{hasRouterLink:s,hasHrefLink:i,hasLink:y,linkTag:u,resolvedLink:b,linkIsActive:p,linkIsExactActive:f,linkClass:x,linkAttrs:k,getLink:_,navigateToRouterLink:C,navigateOnClick:L}}const ne={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Fe={xs:8,sm:10,md:14,lg:20,xl:24},Qe=["button","submit","reset"],Ve=/[^\s]\/[^\s]/,He=["flat","outline","push","unelevated"];function Ue(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const We={...ie,...de,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...He.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:{...Me.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Xe={...We,round:Boolean};function Ge(e){const t=ue(e,Fe),n=je(e),{hasRouterLink:a,hasLink:l,linkTag:d,linkAttrs:o,navigateOnClick:i}=Ne({fallbackTag:"button"}),q=c(()=>{const f=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},f,{padding:e.padding.split(/\s+/).map(x=>x in ne?ne[x]+"px":x).join(" "),minWidth:"0",minHeight:"0"}):f}),b=c(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=c(()=>e.disable!==!0&&e.loading!==!0),y=c(()=>s.value===!0?e.tabindex||0:-1),u=c(()=>Ue(e,"standard")),k=c(()=>{const f={tabindex:y.value};return l.value===!0?Object.assign(f,o.value):Qe.includes(e.type)===!0&&(f.type=e.type),d.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),a.value!==!0&&Ve.test(e.type)===!0&&(f.type=e.type)):e.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),f}),h=c(()=>{let f;e.color!==void 0?e.flat===!0||e.outline===!0?f=`text-${e.textColor||e.color}`:f=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(f=`text-${e.textColor}`);const x=e.round===!0?"round":`rectangle${b.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${u.value} q-btn--${x}`+(f!==void 0?" "+f:"")+(s.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),p=c(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:h,style:q,innerClasses:p,attributes:k,hasLink:l,linkTag:d,navigateOnClick:i,isActionable:s}}const{passiveCapture:E}=pe;let T=null,O=null,A=null;var ut=Q({name:"QBtn",props:{...Xe,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:a}=V(),{classes:l,style:d,innerClasses:o,attributes:i,hasLink:q,linkTag:b,navigateOnClick:s,isActionable:y}=Ge(e),u=H(null),k=H(null);let h=null,p,f=null;const x=c(()=>e.label!==void 0&&e.label!==null&&e.label!==""),_=c(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:q.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),C=c(()=>({center:e.round})),L=c(()=>{const r=Math.max(0,Math.min(100,e.percentage));return r>0?{transition:"transform 0.6s",transform:`translateX(${r-100}%)`}:{}}),g=c(()=>{if(e.loading===!0)return{onMousedown:j,onTouchstart:j,onClick:j,onKeydown:j,onKeyup:j};if(y.value===!0){const r={onClick:S,onKeydown:w,onMousedown:D};if(a.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";r[`onTouchstart${m}`]=B}return r}return{onClick:P}}),$=c(()=>({ref:u,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:d.value,...i.value,...g.value}));function S(r){if(u.value!==null){if(r!==void 0){if(r.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&u.value.contains(m)===!1&&m.contains(u.value)===!1){u.value.focus();const I=()=>{document.removeEventListener("keydown",P,!0),document.removeEventListener("keyup",I,E),u.value!==null&&u.value.removeEventListener("blur",I,E)};document.addEventListener("keydown",P,!0),document.addEventListener("keyup",I,E),u.value.addEventListener("blur",I,E)}}s(r)}}function w(r){u.value!==null&&(n("keydown",r),N(r,[13,32])===!0&&O!==u.value&&(O!==null&&M(),r.defaultPrevented!==!0&&(u.value.focus(),O=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("keyup",R,!0),u.value.addEventListener("blur",R,E)),P(r)))}function B(r){u.value!==null&&(n("touchstart",r),r.defaultPrevented!==!0&&(T!==u.value&&(T!==null&&M(),T=u.value,h=r.target,h.addEventListener("touchcancel",R,E),h.addEventListener("touchend",R,E)),p=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,p=!1},200)))}function D(r){u.value!==null&&(r.qSkipRipple=p===!0,n("mousedown",r),r.defaultPrevented!==!0&&A!==u.value&&(A!==null&&M(),A=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("mouseup",R,E)))}function R(r){if(u.value!==null&&!(r!==void 0&&r.type==="blur"&&document.activeElement===u.value)){if(r!==void 0&&r.type==="keyup"){if(O===u.value&&N(r,[13,32])===!0){const m=new MouseEvent("click",r);m.qKeyEvent=!0,r.defaultPrevented===!0&&ke(m),r.cancelBubble===!0&&re(m),u.value.dispatchEvent(m),P(r),r.qKeyEvent=!0}n("keyup",r)}M()}}function M(r){const m=k.value;r!==!0&&(T===u.value||A===u.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),T===u.value&&(h!==null&&(h.removeEventListener("touchcancel",R,E),h.removeEventListener("touchend",R,E)),T=h=null),A===u.value&&(document.removeEventListener("mouseup",R,E),A=null),O===u.value&&(document.removeEventListener("keyup",R,!0),u.value!==null&&u.value.removeEventListener("blur",R,E),O=null),u.value!==null&&u.value.classList.remove("q-btn--active")}function j(r){P(r),r.qSkipRipple=!0}return be(()=>{M(!0)}),Object.assign(a,{click:r=>{y.value===!0&&S(r)}}),()=>{let r=[];e.icon!==void 0&&r.push(v(G,{name:e.icon,left:e.stack!==!0&&x.value===!0,role:"img","aria-hidden":"true"})),x.value===!0&&r.push(v("span",{class:"block"},[e.label])),r=z(t.default,r),e.iconRight!==void 0&&e.round===!1&&r.push(v(G,{name:e.iconRight,right:e.stack!==!0&&x.value===!0,role:"img","aria-hidden":"true"}));const m=[v("span",{class:"q-focus-helper",ref:k})];return e.loading===!0&&e.percentage!==void 0&&m.push(v("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[v("span",{class:"q-btn__progress-indicator fit block",style:L.value})])),m.push(v("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+o.value},r)),e.loading!==null&&m.push(v(ye,{name:"q-transition--fade"},()=>e.loading===!0?[v("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[v(_e)])]:null)),ae(v(b.value,$.value,m),[[Oe,_.value,void 0,C.value]])}}});export{ut as Q,Oe as R,Je as a,z as b,Pe as c,G as d,_e as e,ue as f,tt as g,xe as h,et as i,Ze as j,it as k,Ne as l,at as m,rt as n,nt as o,ie as u,ze as v}; +import{h as v,z as ae,a as c,c as Q,g as V,A as fe,B as ve,C as N,D as ge,E as me,F as re,G as he,r as H,b as be,T as ye,H as P,I as ke,l as pe}from"./index.f85e7812.js";function xe(e,t){return e!==void 0&&e()||t}function Je(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function z(e,t){return e!==void 0?t.concat(e()):t}function Ze(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function et(e,t,n,a,l,d){t.key=a+l;const o=v(e,t,n);return l===!0?ae(o,d()):o}const F={xs:18,sm:24,md:32,lg:38,xl:46},ie={size:String};function ue(e,t=F){return c(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}const U="0 0 24 24",W=e=>e,K=e=>`ionicons ${e}`,le={"mdi-":e=>`mdi ${e}`,"icon-":W,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":K,"ion-ios":K,"ion-logo":K,"iconfont ":W,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},oe={o_:"-outlined",r_:"-round",s_:"-sharp"},se={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},qe=new RegExp("^("+Object.keys(le).join("|")+")"),$e=new RegExp("^("+Object.keys(oe).join("|")+")"),X=new RegExp("^("+Object.keys(se).join("|")+")"),Ee=/^[Mm]\s?[-+]?\.?\d/,Se=/^img:/,Re=/^svguse:/,we=/^ion-/,Be=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var G=Q({name:"QIcon",props:{...ie,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=V(),a=ue(e),l=c(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),d=c(()=>{let o,i=e.name;if(i==="none"||!i)return{none:!0};if(n.iconMapFn!==null){const s=n.iconMapFn(i);if(s!==void 0)if(s.icon!==void 0){if(i=s.icon,i==="none"||!i)return{none:!0}}else return{cls:s.cls,content:s.content!==void 0?s.content:" "}}if(Ee.test(i)===!0){const[s,y=U]=i.split("|");return{svg:!0,viewBox:y,nodes:s.split("&&").map(u=>{const[k,h,p]=u.split("@@");return v("path",{style:h,d:k,transform:p})})}}if(Se.test(i)===!0)return{img:!0,src:i.substring(4)};if(Re.test(i)===!0){const[s,y=U]=i.split("|");return{svguse:!0,src:s.substring(7),viewBox:y}}let q=" ";const b=i.match(qe);if(b!==null)o=le[b[1]](i);else if(Be.test(i)===!0)o=i;else if(we.test(i)===!0)o=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${i.substring(3)}`;else if(X.test(i)===!0){o="notranslate material-symbols";const s=i.match(X);s!==null&&(i=i.substring(6),o+=se[s[1]]),q=i}else{o="notranslate material-icons";const s=i.match($e);s!==null&&(i=i.substring(2),o+=oe[s[1]]),q=i}return{cls:o,content:q}});return()=>{const o={class:l.value,style:a.value,"aria-hidden":"true",role:"presentation"};return d.value.none===!0?v(e.tag,o,xe(t.default)):d.value.img===!0?v(e.tag,o,z(t.default,[v("img",{src:d.value.src})])):d.value.svg===!0?v(e.tag,o,z(t.default,[v("svg",{viewBox:d.value.viewBox||"0 0 24 24"},d.value.nodes)])):d.value.svguse===!0?v(e.tag,o,z(t.default,[v("svg",{viewBox:d.value.viewBox},[v("use",{"xlink:href":d.value.src})])])):(d.value.cls!==void 0&&(o.class+=" "+d.value.cls),v(e.tag,o,z(t.default,[d.value.content])))}}});const Ce={size:{type:[String,Number],default:"1em"},color:String};function Le(e){return{cSize:c(()=>e.size in F?`${F[e.size]}px`:e.size),classes:c(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}var _e=Q({name:"QSpinner",props:{...Ce,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=Le(e);return()=>v("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[v("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Pe(e,t){const n=e.style;for(const a in t)n[a]=t[a]}function tt(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=fe(e);if(t)return t.$el||t}function nt(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}function Te(e,t=250){let n=!1,a;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),a=e.apply(this,arguments)),a}}function Y(e,t,n,a){n.modifiers.stop===!0&&re(e);const l=n.modifiers.color;let d=n.modifiers.center;d=d===!0||a===!0;const o=document.createElement("span"),i=document.createElement("span"),q=he(e),{left:b,top:s,width:y,height:u}=t.getBoundingClientRect(),k=Math.sqrt(y*y+u*u),h=k/2,p=`${(y-k)/2}px`,f=d?p:`${q.left-b-h}px`,x=`${(u-k)/2}px`,_=d?x:`${q.top-s-h}px`;i.className="q-ripple__inner",Pe(i,{height:`${k}px`,width:`${k}px`,transform:`translate3d(${f},${_},0) scale3d(.2,.2,1)`,opacity:0}),o.className=`q-ripple${l?" text-"+l:""}`,o.setAttribute("dir","ltr"),o.appendChild(i),t.appendChild(o);const C=()=>{o.remove(),clearTimeout(L)};n.abort.push(C);let L=setTimeout(()=>{i.classList.add("q-ripple__inner--enter"),i.style.transform=`translate3d(${p},${x},0) scale3d(1,1,1)`,i.style.opacity=.2,L=setTimeout(()=>{i.classList.remove("q-ripple__inner--enter"),i.classList.add("q-ripple__inner--leave"),i.style.opacity=0,L=setTimeout(()=>{o.remove(),n.abort.splice(n.abort.indexOf(C),1)},275)},250)},50)}function J(e,{modifiers:t,value:n,arg:a}){const l=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:l.early===!0,stop:l.stop===!0,center:l.center===!0,color:l.color||a,keyCodes:[].concat(l.keyCodes||13)}}var Oe=ve({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const a={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(l){a.enabled===!0&&l.qSkipRipple!==!0&&l.type===(a.modifiers.early===!0?"pointerdown":"click")&&Y(l,e,a,l.qKeyEvent===!0)},keystart:Te(l=>{a.enabled===!0&&l.qSkipRipple!==!0&&N(l,a.modifiers.keyCodes)===!0&&l.type===`key${a.modifiers.early===!0?"down":"up"}`&&Y(l,e,a,!0)},300)};J(a,t),e.__qripple=a,ge(a,"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&&J(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),me(t,"main"),delete e._qripple)}});const ce={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Ae=Object.keys(ce),Me={align:{type:String,validator:e=>Ae.includes(e)}};function je(e){return c(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${ce[t]}`})}function at(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 ze(e){return e.appContext.config.globalProperties.$router!==void 0}function rt(e){return e.isUnmounted===!0||e.isDeactivated===!0}function Z(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function ee(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function De(e,t){for(const n in t){const a=t[n],l=e[n];if(typeof a=="string"){if(a!==l)return!1}else if(Array.isArray(l)===!1||l.length!==a.length||a.some((d,o)=>d!==l[o]))return!1}return!0}function te(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Ie(e,t){return Array.isArray(e)===!0?te(e,t):Array.isArray(t)===!0?te(t,e):e===t}function Ke(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(Ie(e[n],t[n])===!1)return!1;return!0}const de={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},it={...de,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Ne({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=V(),{props:a,proxy:l,emit:d}=n,o=ze(n),i=c(()=>a.disable!==!0&&a.href!==void 0),q=t===!0?c(()=>o===!0&&a.disable!==!0&&i.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):c(()=>o===!0&&i.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),b=c(()=>q.value===!0?_(a.to):null),s=c(()=>b.value!==null),y=c(()=>i.value===!0||s.value===!0),u=c(()=>a.type==="a"||y.value===!0?"a":a.tag||e||"div"),k=c(()=>i.value===!0?{href:a.href,target:a.target}:s.value===!0?{href:b.value.href,target:a.target}:{}),h=c(()=>{if(s.value===!1)return-1;const{matched:g}=b.value,{length:$}=g,S=g[$-1];if(S===void 0)return-1;const w=l.$route.matched;if(w.length===0)return-1;const B=w.findIndex(ee.bind(null,S));if(B!==-1)return B;const D=Z(g[$-2]);return $>1&&Z(S)===D&&w[w.length-1].path!==D?w.findIndex(ee.bind(null,g[$-2])):B}),p=c(()=>s.value===!0&&h.value!==-1&&De(l.$route.params,b.value.params)),f=c(()=>p.value===!0&&h.value===l.$route.matched.length-1&&Ke(l.$route.params,b.value.params)),x=c(()=>s.value===!0?f.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":p.value===!0?` ${a.activeClass}`:"":"");function _(g){try{return l.$router.resolve(g)}catch{}return null}function C(g,{returnRouterError:$,to:S=a.to,replace:w=a.replace}={}){if(a.disable===!0)return g.preventDefault(),Promise.resolve(!1);if(g.metaKey||g.altKey||g.ctrlKey||g.shiftKey||g.button!==void 0&&g.button!==0||a.target==="_blank")return Promise.resolve(!1);g.preventDefault();const B=l.$router[w===!0?"replace":"push"](S);return $===!0?B:B.then(()=>{}).catch(()=>{})}function L(g){if(s.value===!0){const $=S=>C(g,S);d("click",g,$),g.defaultPrevented!==!0&&$()}else d("click",g)}return{hasRouterLink:s,hasHrefLink:i,hasLink:y,linkTag:u,resolvedLink:b,linkIsActive:p,linkIsExactActive:f,linkClass:x,linkAttrs:k,getLink:_,navigateToRouterLink:C,navigateOnClick:L}}const ne={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Fe={xs:8,sm:10,md:14,lg:20,xl:24},Qe=["button","submit","reset"],Ve=/[^\s]\/[^\s]/,He=["flat","outline","push","unelevated"];function Ue(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const We={...ie,...de,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...He.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:{...Me.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},Xe={...We,round:Boolean};function Ge(e){const t=ue(e,Fe),n=je(e),{hasRouterLink:a,hasLink:l,linkTag:d,linkAttrs:o,navigateOnClick:i}=Ne({fallbackTag:"button"}),q=c(()=>{const f=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},f,{padding:e.padding.split(/\s+/).map(x=>x in ne?ne[x]+"px":x).join(" "),minWidth:"0",minHeight:"0"}):f}),b=c(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),s=c(()=>e.disable!==!0&&e.loading!==!0),y=c(()=>s.value===!0?e.tabindex||0:-1),u=c(()=>Ue(e,"standard")),k=c(()=>{const f={tabindex:y.value};return l.value===!0?Object.assign(f,o.value):Qe.includes(e.type)===!0&&(f.type=e.type),d.value==="a"?(e.disable===!0?f["aria-disabled"]="true":f.href===void 0&&(f.role="button"),a.value!==!0&&Ve.test(e.type)===!0&&(f.type=e.type)):e.disable===!0&&(f.disabled="",f["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(f,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),f}),h=c(()=>{let f;e.color!==void 0?e.flat===!0||e.outline===!0?f=`text-${e.textColor||e.color}`:f=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(f=`text-${e.textColor}`);const x=e.round===!0?"round":`rectangle${b.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${u.value} q-btn--${x}`+(f!==void 0?" "+f:"")+(s.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),p=c(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:h,style:q,innerClasses:p,attributes:k,hasLink:l,linkTag:d,navigateOnClick:i,isActionable:s}}const{passiveCapture:E}=pe;let T=null,O=null,A=null;var ut=Q({name:"QBtn",props:{...Xe,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:a}=V(),{classes:l,style:d,innerClasses:o,attributes:i,hasLink:q,linkTag:b,navigateOnClick:s,isActionable:y}=Ge(e),u=H(null),k=H(null);let h=null,p,f=null;const x=c(()=>e.label!==void 0&&e.label!==null&&e.label!==""),_=c(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:q.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),C=c(()=>({center:e.round})),L=c(()=>{const r=Math.max(0,Math.min(100,e.percentage));return r>0?{transition:"transform 0.6s",transform:`translateX(${r-100}%)`}:{}}),g=c(()=>{if(e.loading===!0)return{onMousedown:j,onTouchstart:j,onClick:j,onKeydown:j,onKeyup:j};if(y.value===!0){const r={onClick:S,onKeydown:w,onMousedown:D};if(a.$q.platform.has.touch===!0){const m=e.onTouchstart!==void 0?"":"Passive";r[`onTouchstart${m}`]=B}return r}return{onClick:P}}),$=c(()=>({ref:u,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:d.value,...i.value,...g.value}));function S(r){if(u.value!==null){if(r!==void 0){if(r.defaultPrevented===!0)return;const m=document.activeElement;if(e.type==="submit"&&m!==document.body&&u.value.contains(m)===!1&&m.contains(u.value)===!1){u.value.focus();const I=()=>{document.removeEventListener("keydown",P,!0),document.removeEventListener("keyup",I,E),u.value!==null&&u.value.removeEventListener("blur",I,E)};document.addEventListener("keydown",P,!0),document.addEventListener("keyup",I,E),u.value.addEventListener("blur",I,E)}}s(r)}}function w(r){u.value!==null&&(n("keydown",r),N(r,[13,32])===!0&&O!==u.value&&(O!==null&&M(),r.defaultPrevented!==!0&&(u.value.focus(),O=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("keyup",R,!0),u.value.addEventListener("blur",R,E)),P(r)))}function B(r){u.value!==null&&(n("touchstart",r),r.defaultPrevented!==!0&&(T!==u.value&&(T!==null&&M(),T=u.value,h=r.target,h.addEventListener("touchcancel",R,E),h.addEventListener("touchend",R,E)),p=!0,f!==null&&clearTimeout(f),f=setTimeout(()=>{f=null,p=!1},200)))}function D(r){u.value!==null&&(r.qSkipRipple=p===!0,n("mousedown",r),r.defaultPrevented!==!0&&A!==u.value&&(A!==null&&M(),A=u.value,u.value.classList.add("q-btn--active"),document.addEventListener("mouseup",R,E)))}function R(r){if(u.value!==null&&!(r!==void 0&&r.type==="blur"&&document.activeElement===u.value)){if(r!==void 0&&r.type==="keyup"){if(O===u.value&&N(r,[13,32])===!0){const m=new MouseEvent("click",r);m.qKeyEvent=!0,r.defaultPrevented===!0&&ke(m),r.cancelBubble===!0&&re(m),u.value.dispatchEvent(m),P(r),r.qKeyEvent=!0}n("keyup",r)}M()}}function M(r){const m=k.value;r!==!0&&(T===u.value||A===u.value)&&m!==null&&m!==document.activeElement&&(m.setAttribute("tabindex",-1),m.focus()),T===u.value&&(h!==null&&(h.removeEventListener("touchcancel",R,E),h.removeEventListener("touchend",R,E)),T=h=null),A===u.value&&(document.removeEventListener("mouseup",R,E),A=null),O===u.value&&(document.removeEventListener("keyup",R,!0),u.value!==null&&u.value.removeEventListener("blur",R,E),O=null),u.value!==null&&u.value.classList.remove("q-btn--active")}function j(r){P(r),r.qSkipRipple=!0}return be(()=>{M(!0)}),Object.assign(a,{click:r=>{y.value===!0&&S(r)}}),()=>{let r=[];e.icon!==void 0&&r.push(v(G,{name:e.icon,left:e.stack!==!0&&x.value===!0,role:"img","aria-hidden":"true"})),x.value===!0&&r.push(v("span",{class:"block"},[e.label])),r=z(t.default,r),e.iconRight!==void 0&&e.round===!1&&r.push(v(G,{name:e.iconRight,right:e.stack!==!0&&x.value===!0,role:"img","aria-hidden":"true"}));const m=[v("span",{class:"q-focus-helper",ref:k})];return e.loading===!0&&e.percentage!==void 0&&m.push(v("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[v("span",{class:"q-btn__progress-indicator fit block",style:L.value})])),m.push(v("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+o.value},r)),e.loading!==null&&m.push(v(ye,{name:"q-transition--fade"},()=>e.loading===!0?[v("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[v(_e)])]:null)),ae(v(b.value,$.value,m),[[Oe,_.value,void 0,C.value]])}}});export{ut as Q,Oe as R,Je as a,z as b,Pe as c,G as d,_e as e,ue as f,tt as g,xe as h,et as i,Ze as j,it as k,Ne as l,at as m,rt as n,nt as o,ie as u,ze as v}; diff --git a/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.fd84f88b.woff b/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.fd84f88b.woff new file mode 100644 index 0000000..88fdf4d Binary files /dev/null and b/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.fd84f88b.woff differ diff --git a/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.4a4dbc62.woff2 b/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.4a4dbc62.woff2 new file mode 100644 index 0000000..f1fd22f Binary files /dev/null and b/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.4a4dbc62.woff2 differ diff --git a/assets/index.f05e4394.css b/assets/index.8c8f1812.css similarity index 99% rename from assets/index.f05e4394.css rename to assets/index.8c8f1812.css index 903f3f8..4aa988c 100644 --- a/assets/index.f05e4394.css +++ b/assets/index.8c8f1812.css @@ -1,4 +1,4 @@ -@charset "UTF-8";@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:url(/email-header-analyzer/assets/KFOkCnqEu92Fr1MmgVxIIzQ.34e9582c.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:url(/email-header-analyzer/assets/KFOlCnqEu92Fr1MmSU5fBBc-.bf14c7d7.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url(/email-header-analyzer/assets/KFOmCnqEu92Fr1Mu4mxM.f2abf7fb.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:url(/email-header-analyzer/assets/KFOlCnqEu92Fr1MmEU9fBBc-.9ce7f3ac.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url(/email-header-analyzer/assets/KFOlCnqEu92Fr1MmWUlfBBc-.e0fd57c0.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:900;src:url(/email-header-analyzer/assets/KFOlCnqEu92Fr1MmYUtfBBc-.f6537e32.woff) format("woff")}/*! +@charset "UTF-8";@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:url(/email-header-analyzer/assets/KFOkCnqEu92Fr1MmgVxIIzQ.34e9582c.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:url(/email-header-analyzer/assets/KFOlCnqEu92Fr1MmSU5fBBc-.bf14c7d7.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url(/email-header-analyzer/assets/KFOmCnqEu92Fr1Mu4mxM.f2abf7fb.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:url(/email-header-analyzer/assets/KFOlCnqEu92Fr1MmEU9fBBc-.9ce7f3ac.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url(/email-header-analyzer/assets/KFOlCnqEu92Fr1MmWUlfBBc-.e0fd57c0.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:900;src:url(/email-header-analyzer/assets/KFOlCnqEu92Fr1MmYUtfBBc-.f6537e32.woff) format("woff")}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;font-display:block;src:url(/email-header-analyzer/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.4a4dbc62.woff2) format("woff2"),url(/email-header-analyzer/assets/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.fd84f88b.woff) format("woff")}.material-icons{font-family:Material Icons;font-weight:400;font-style:normal;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}/*! * * Quasar Framework v2.16.6 * * (c) 2015-present Razvan Stoenescu * * Released under the MIT License. diff --git a/assets/index.92633fe6.js b/assets/index.f85e7812.js similarity index 99% rename from assets/index.92633fe6.js rename to assets/index.f85e7812.js index 5df4867..88763a4 100644 --- a/assets/index.92633fe6.js +++ b/assets/index.f85e7812.js @@ -18,4 +18,4 @@ * vue-router v4.4.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const St=typeof document!="undefined";function Ua(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const te=Object.assign;function tr(e,t){const n={};for(const r in t){const s=t[r];n[r]=ke(s)?s.map(e):e(s)}return n}const Kt=()=>{},ke=Array.isArray,Ai=/#/g,Ka=/&/g,za=/\//g,qa=/=/g,Wa=/\?/g,Ti=/\+/g,Ga=/%5B/g,Qa=/%5D/g,Oi=/%5E/g,Ja=/%60/g,Li=/%7B/g,Ya=/%7C/g,Mi=/%7D/g,Xa=/%20/g;function qr(e){return encodeURI(""+e).replace(Ya,"|").replace(Ga,"[").replace(Qa,"]")}function Za(e){return qr(e).replace(Li,"{").replace(Mi,"}").replace(Oi,"^")}function Er(e){return qr(e).replace(Ti,"%2B").replace(Xa,"+").replace(Ai,"%23").replace(Ka,"%26").replace(Ja,"`").replace(Li,"{").replace(Mi,"}").replace(Oi,"^")}function eu(e){return Er(e).replace(qa,"%3D")}function tu(e){return qr(e).replace(Ai,"%23").replace(Wa,"%3F")}function nu(e){return e==null?"":tu(e).replace(za,"%2F")}function Zt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const ru=/\/$/,su=e=>e.replace(ru,"");function nr(e,t,n="/"){let r,s={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),s=e(o)),c>-1&&(r=r||t.slice(0,c),i=t.slice(c,t.length)),r=cu(r!=null?r:t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:Zt(i)}}function ou(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ws(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function iu(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Ot(t.matched[r],n.matched[s])&&Ii(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ot(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ii(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!lu(e[n],t[n]))return!1;return!0}function lu(e,t){return ke(e)?Gs(e,t):ke(t)?Gs(t,e):e===t}function Gs(e,t){return ke(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function cu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,c;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const Ze={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var en;(function(e){e.pop="pop",e.push="push"})(en||(en={}));var zt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zt||(zt={}));function au(e){if(!e)if(St){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),su(e)}const uu=/^[^#]+#/;function fu(e,t){return e.replace(uu,"#")+t}function du(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Bn=()=>({left:window.scrollX,top:window.scrollY});function hu(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=du(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Qs(e,t){return(history.state?history.state.position-t:-1)+e}const xr=new Map;function pu(e,t){xr.set(e,t)}function gu(e){const t=xr.get(e);return xr.delete(e),t}let mu=()=>location.protocol+"//"+location.host;function ki(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let c=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(c);return l[0]!=="/"&&(l="/"+l),Ws(l,"")}return Ws(n,e)+r+s}function _u(e,t,n,r){let s=[],o=[],i=null;const c=({state:p})=>{const g=ki(e,location),x=n.value,P=t.value;let D=0;if(p){if(n.value=g,t.value=p,i&&i===x){i=null;return}D=P?p.position-P.position:0}else r(g);s.forEach($=>{$(n.value,x,{delta:D,type:en.pop,direction:D?D>0?zt.forward:zt.back:zt.unknown})})};function l(){i=n.value}function u(p){s.push(p);const g=()=>{const x=s.indexOf(p);x>-1&&s.splice(x,1)};return o.push(g),g}function h(){const{history:p}=window;!p.state||p.replaceState(te({},p.state,{scroll:Bn()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function Js(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Bn():null}}function yu(e){const{history:t,location:n}=window,r={value:ki(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,h){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:mu()+e+l;try{t[h?"replaceState":"pushState"](u,"",p),s.value=u}catch(g){console.error(g),n[h?"replace":"assign"](p)}}function i(l,u){const h=te({},t.state,Js(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});o(l,h,!0),r.value=l}function c(l,u){const h=te({},s.value,t.state,{forward:l,scroll:Bn()});o(h.current,h,!0);const d=te({},Js(r.value,l,null),{position:h.position+1},u);o(l,d,!1),r.value=l}return{location:r,state:s,push:c,replace:i}}function vu(e){e=au(e);const t=yu(e),n=_u(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=te({location:"",base:e,go:r,createHref:fu.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function bu(e){return typeof e=="string"||e&&typeof e=="object"}function Fi(e){return typeof e=="string"||typeof e=="symbol"}const Ni=Symbol("");var Ys;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ys||(Ys={}));function Lt(e,t){return te(new Error,{type:e,[Ni]:!0},t)}function Ke(e,t){return e instanceof Error&&Ni in e&&(t==null||!!(e.type&t))}const Xs="[^/]+?",wu={sensitive:!1,strict:!1,start:!0,end:!0},Eu=/[.+*?^${}()[\]/\\]/g;function xu(e,t){const n=te({},wu,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const h=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function $i(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Su={type:0,value:""},Ru=/[a-zA-Z0-9_]/;function Pu(e){if(!e)return[[]];if(e==="/")return[[Su]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let c=0,l,u="",h="";function d(){!u||(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:h,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=l}for(;c{i(O)}:Kt}function i(d){if(Fi(d)){const p=r.get(d);p&&(r.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function c(){return n}function l(d){const p=Iu(d,n);n.splice(p,0,d),d.record.name&&!to(d)&&r.set(d.record.name,d)}function u(d,p){let g,x={},P,D;if("name"in d&&d.name){if(g=r.get(d.name),!g)throw Lt(1,{location:d});D=g.record.name,x=te(eo(p.params,g.keys.filter(O=>!O.optional).concat(g.parent?g.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),d.params&&eo(d.params,g.keys.map(O=>O.name))),P=g.stringify(x)}else if(d.path!=null)P=d.path,g=n.find(O=>O.re.test(P)),g&&(x=g.parse(P),D=g.record.name);else{if(g=p.name?r.get(p.name):n.find(O=>O.re.test(p.path)),!g)throw Lt(1,{location:d,currentLocation:p});D=g.record.name,x=te({},p.params,d.params),P=g.stringify(x)}const $=[];let k=g;for(;k;)$.unshift(k.record),k=k.parent;return{name:D,path:P,params:x,matched:$,meta:Mu($)}}e.forEach(d=>o(d));function h(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:h,getRoutes:c,getRecordMatcher:s}}function eo(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ou(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Lu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Lu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function to(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Mu(e){return e.reduce((t,n)=>te(t,n.meta),{})}function no(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Iu(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;$i(e,t[o])<0?r=o:n=o+1}const s=ku(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function ku(e){let t=e;for(;t=t.parent;)if(ji(t)&&$i(e,t)===0)return t}function ji({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Fu(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Er(o)):[r&&Er(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Nu(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ke(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const $u=Symbol(""),so=Symbol(""),Wr=Symbol(""),Hi=Symbol(""),Cr=Symbol("");function Nt(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function st(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((c,l)=>{const u=p=>{p===!1?l(Lt(4,{from:n,to:t})):p instanceof Error?l(p):bu(p)?l(Lt(2,{from:t,to:p})):(i&&r.enterCallbacks[s]===i&&typeof p=="function"&&i.push(p),c())},h=o(()=>e.call(r&&r.instances[s],t,n,u));let d=Promise.resolve(h);e.length<3&&(d=d.then(u)),d.catch(p=>l(p))})}function rr(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const c in i.components){let l=i.components[c];if(!(t!=="beforeRouteEnter"&&!i.instances[c]))if(ju(l)){const h=(l.__vccOpts||l)[t];h&&o.push(st(h,n,r,i,c,s))}else{let u=l();o.push(()=>u.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${i.path}"`));const d=Ua(h)?h.default:h;i.components[c]=d;const g=(d.__vccOpts||d)[t];return g&&st(g,n,r,i,c,s)()}))}}return o}function ju(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function oo(e){const t=We(Wr),n=We(Hi),r=Me(()=>{const l=At(e.to);return t.resolve(l)}),s=Me(()=>{const{matched:l}=r.value,{length:u}=l,h=l[u-1],d=n.matched;if(!h||!d.length)return-1;const p=d.findIndex(Ot.bind(null,h));if(p>-1)return p;const g=io(l[u-2]);return u>1&&io(h)===g&&d[d.length-1].path!==g?d.findIndex(Ot.bind(null,l[u-2])):p}),o=Me(()=>s.value>-1&&Vu(n.params,r.value.params)),i=Me(()=>s.value>-1&&s.value===n.matched.length-1&&Ii(n.params,r.value.params));function c(l={}){return Bu(l)?t[At(e.replace)?"replace":"push"](At(e.to)).catch(Kt):Promise.resolve()}return{route:r,href:Me(()=>r.value.href),isActive:o,isExactActive:i,navigate:c}}const Hu=Dr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:oo,setup(e,{slots:t}){const n=It(oo(e)),{options:r}=We(Wr),s=Me(()=>({[lo(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[lo(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:zr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Du=Hu;function Bu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Vu(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!ke(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function io(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const lo=(e,t,n)=>e!=null?e:t!=null?t:n,Uu=Dr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=We(Cr),s=Me(()=>e.route||r.value),o=We(so,0),i=Me(()=>{let u=At(o);const{matched:h}=s.value;let d;for(;(d=h[u])&&!d.components;)u++;return u}),c=Me(()=>s.value.matched[i.value]);pn(so,Me(()=>i.value+1)),pn($u,c),pn(Cr,s);const l=No();return gn(()=>[l.value,c.value,e.name],([u,h,d],[p,g,x])=>{h&&(h.instances[d]=u,g&&g!==h&&u&&u===p&&(h.leaveGuards.size||(h.leaveGuards=g.leaveGuards),h.updateGuards.size||(h.updateGuards=g.updateGuards))),u&&h&&(!g||!Ot(h,g)||!p)&&(h.enterCallbacks[d]||[]).forEach(P=>P(u))},{flush:"post"}),()=>{const u=s.value,h=e.name,d=c.value,p=d&&d.components[h];if(!p)return co(n.default,{Component:p,route:u});const g=d.props[h],x=g?g===!0?u.params:typeof g=="function"?g(u):g:null,D=zr(p,te({},x,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(d.instances[h]=null)},ref:l}));return co(n.default,{Component:D,route:u})||D}}});function co(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ku=Uu;function zu(e){const t=Tu(e.routes,e),n=e.parseQuery||Fu,r=e.stringifyQuery||ro,s=e.history,o=Nt(),i=Nt(),c=Nt(),l=xl(Ze);let u=Ze;St&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=tr.bind(null,y=>""+y),d=tr.bind(null,nu),p=tr.bind(null,Zt);function g(y,A){let R,I;return Fi(y)?(R=t.getRecordMatcher(y),I=A):I=y,t.addRoute(I,R)}function x(y){const A=t.getRecordMatcher(y);A&&t.removeRoute(A)}function P(){return t.getRoutes().map(y=>y.record)}function D(y){return!!t.getRecordMatcher(y)}function $(y,A){if(A=te({},A||l.value),typeof y=="string"){const f=nr(n,y,A.path),m=t.resolve({path:f.path},A),v=s.createHref(f.fullPath);return te(f,m,{params:p(m.params),hash:Zt(f.hash),redirectedFrom:void 0,href:v})}let R;if(y.path!=null)R=te({},y,{path:nr(n,y.path,A.path).path});else{const f=te({},y.params);for(const m in f)f[m]==null&&delete f[m];R=te({},y,{params:d(f)}),A.params=d(A.params)}const I=t.resolve(R,A),Z=y.hash||"";I.params=h(p(I.params));const le=ou(r,te({},y,{hash:Za(Z),path:I.path})),a=s.createHref(le);return te({fullPath:le,hash:Z,query:r===ro?Nu(y.query):y.query||{}},I,{redirectedFrom:void 0,href:a})}function k(y){return typeof y=="string"?nr(n,y,l.value.path):te({},y)}function O(y,A){if(u!==y)return Lt(8,{from:A,to:y})}function U(y){return K(y)}function G(y){return U(te(k(y),{replace:!0}))}function M(y){const A=y.matched[y.matched.length-1];if(A&&A.redirect){const{redirect:R}=A;let I=typeof R=="function"?R(y):R;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=k(I):{path:I},I.params={}),te({query:y.query,hash:y.hash,params:I.path!=null?{}:y.params},I)}}function K(y,A){const R=u=$(y),I=l.value,Z=y.state,le=y.force,a=y.replace===!0,f=M(R);if(f)return K(te(k(f),{state:typeof f=="object"?te({},Z,f.state):Z,force:le,replace:a}),A||R);const m=R;m.redirectedFrom=A;let v;return!le&&iu(r,I,R)&&(v=Lt(16,{to:m,from:I}),Fe(I,I,!0,!1)),(v?Promise.resolve(v):q(m,I)).catch(_=>Ke(_)?Ke(_,2)?_:Qe(_):X(_,m,I)).then(_=>{if(_){if(Ke(_,2))return K(te({replace:a},k(_.to),{state:typeof _.to=="object"?te({},Z,_.to.state):Z,force:le}),A||m)}else _=L(m,I,!0,a,Z);return Q(m,I,_),_})}function re(y,A){const R=O(y,A);return R?Promise.reject(R):Promise.resolve()}function H(y){const A=xt.values().next().value;return A&&typeof A.runWithContext=="function"?A.runWithContext(y):y()}function q(y,A){let R;const[I,Z,le]=qu(y,A);R=rr(I.reverse(),"beforeRouteLeave",y,A);for(const f of I)f.leaveGuards.forEach(m=>{R.push(st(m,y,A))});const a=re.bind(null,y,A);return R.push(a),pe(R).then(()=>{R=[];for(const f of o.list())R.push(st(f,y,A));return R.push(a),pe(R)}).then(()=>{R=rr(Z,"beforeRouteUpdate",y,A);for(const f of Z)f.updateGuards.forEach(m=>{R.push(st(m,y,A))});return R.push(a),pe(R)}).then(()=>{R=[];for(const f of le)if(f.beforeEnter)if(ke(f.beforeEnter))for(const m of f.beforeEnter)R.push(st(m,y,A));else R.push(st(f.beforeEnter,y,A));return R.push(a),pe(R)}).then(()=>(y.matched.forEach(f=>f.enterCallbacks={}),R=rr(le,"beforeRouteEnter",y,A,H),R.push(a),pe(R))).then(()=>{R=[];for(const f of i.list())R.push(st(f,y,A));return R.push(a),pe(R)}).catch(f=>Ke(f,8)?f:Promise.reject(f))}function Q(y,A,R){c.list().forEach(I=>H(()=>I(y,A,R)))}function L(y,A,R,I,Z){const le=O(y,A);if(le)return le;const a=A===Ze,f=St?history.state:{};R&&(I||a?s.replace(y.fullPath,te({scroll:a&&f&&f.scroll},Z)):s.push(y.fullPath,Z)),l.value=y,Fe(y,A,R,a),Qe()}let Y;function fe(){Y||(Y=s.listen((y,A,R)=>{if(!nn.listening)return;const I=$(y),Z=M(I);if(Z){K(te(Z,{replace:!0}),I).catch(Kt);return}u=I;const le=l.value;St&&pu(Qs(le.fullPath,R.delta),Bn()),q(I,le).catch(a=>Ke(a,12)?a:Ke(a,2)?(K(a.to,I).then(f=>{Ke(f,20)&&!R.delta&&R.type===en.pop&&s.go(-1,!1)}).catch(Kt),Promise.reject()):(R.delta&&s.go(-R.delta,!1),X(a,I,le))).then(a=>{a=a||L(I,le,!1),a&&(R.delta&&!Ke(a,8)?s.go(-R.delta,!1):R.type===en.pop&&Ke(a,20)&&s.go(-1,!1)),Q(I,le,a)}).catch(Kt)}))}let Te=Nt(),ce=Nt(),ne;function X(y,A,R){Qe(y);const I=ce.list();return I.length?I.forEach(Z=>Z(y,A,R)):console.error(y),Promise.reject(y)}function Ue(){return ne&&l.value!==Ze?Promise.resolve():new Promise((y,A)=>{Te.add([y,A])})}function Qe(y){return ne||(ne=!y,fe(),Te.list().forEach(([A,R])=>y?R(y):A()),Te.reset()),y}function Fe(y,A,R,I){const{scrollBehavior:Z}=e;if(!St||!Z)return Promise.resolve();const le=!R&&gu(Qs(y.fullPath,0))||(I||!R)&&history.state&&history.state.scroll||null;return Do().then(()=>Z(y,A,le)).then(a=>a&&hu(a)).catch(a=>X(a,y,A))}const ye=y=>s.go(y);let Et;const xt=new Set,nn={currentRoute:l,listening:!0,addRoute:g,removeRoute:x,clearRoutes:t.clearRoutes,hasRoute:D,getRoutes:P,resolve:$,options:e,push:U,replace:G,go:ye,back:()=>ye(-1),forward:()=>ye(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:ce.add,isReady:Ue,install(y){const A=this;y.component("RouterLink",Du),y.component("RouterView",Ku),y.config.globalProperties.$router=A,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>At(l)}),St&&!Et&&l.value===Ze&&(Et=!0,U(s.location).catch(Z=>{}));const R={};for(const Z in Ze)Object.defineProperty(R,Z,{get:()=>l.value[Z],enumerable:!0});y.provide(Wr,A),y.provide(Hi,Lo(R)),y.provide(Cr,l);const I=y.unmount;xt.add(y),y.unmount=function(){xt.delete(y),xt.size<1&&(u=Ze,Y&&Y(),Y=null,l.value=Ze,Et=!1,ne=!1),I()}}};function pe(y){return y.reduce((A,R)=>A.then(()=>H(R)),Promise.resolve())}return nn}function qu(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iOt(u,c))?r.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(u=>Ot(u,l))||s.push(l))}return[n,r,s]}const Wu=function(){const t=document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}(),ao={},Gu="/email-header-analyzer/",sr=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${Gu}${r}`,r in ao)return;ao[r]=!0;const s=r.endsWith(".css"),o=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${o}`))return;const i=document.createElement("link");if(i.rel=s?"stylesheet":Wu,s||(i.as="script",i.crossOrigin=""),i.href=r,document.head.appendChild(i),s)return new Promise((c,l)=>{i.addEventListener("load",c),i.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},Qu=[{path:"/",component:()=>sr(()=>import("./MainLayout.83b5c455.js"),["assets/MainLayout.83b5c455.js","assets/QBtn.7ce9a280.js","assets/scroll.ea6f512c.js"]),children:[{path:"",component:()=>sr(()=>import("./IndexPage.0ccfbff8.js"),["assets/IndexPage.0ccfbff8.js","assets/IndexPage.fa81f00b.css","assets/QBtn.7ce9a280.js","assets/scroll.ea6f512c.js"])}]},{path:"/:catchAll(.*)*",component:()=>sr(()=>import("./ErrorNotFound.6f856ce5.js"),["assets/ErrorNotFound.6f856ce5.js","assets/QBtn.7ce9a280.js"])}];var or=function(){return zu({scrollBehavior:()=>({left:0,top:0}),routes:Qu,history:vu("/email-header-analyzer/")})};async function Ju(e,t){const n=e(Va);n.use(ja,t);const r=Tn(typeof or=="function"?await or({}):or);return{app:n,router:r}}var Yu={config:{}};async function Xu({app:e,router:t}){e.use(t),e.mount("#q-app")}Ju(ha,Yu).then(Xu);export{J as $,At as A,af as B,_f as C,gf as D,mf as E,df as F,uf as G,pf as H,hf as I,Ul as J,bf as K,ba as L,jn as M,mc as N,gc as O,Ca as P,Be as Q,Vl as R,wr as S,wi as T,Us as U,rf as V,Ma as W,ff as X,Kl as Y,er as Z,Ha as _,Me as a,xf as a0,Ef as a1,Ks as a2,lf as a3,Dr as a4,sf as a5,je as a6,nf as a7,yi as a8,Zi as a9,of as aa,Zu as ab,ef as ac,Wo as b,cf as c,Do as d,We as e,wf as f,Mc as g,zr as h,wt as i,yf as j,vf as k,Dn as l,It as m,Xt as n,qo as o,pn as p,Go as q,No as r,$l as s,pi as t,mi as u,Ml as v,gn as w,Re as x,Pc as y,tf as z}; + */const St=typeof document!="undefined";function Ua(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const te=Object.assign;function tr(e,t){const n={};for(const r in t){const s=t[r];n[r]=ke(s)?s.map(e):e(s)}return n}const Kt=()=>{},ke=Array.isArray,Ai=/#/g,Ka=/&/g,za=/\//g,qa=/=/g,Wa=/\?/g,Ti=/\+/g,Ga=/%5B/g,Qa=/%5D/g,Oi=/%5E/g,Ja=/%60/g,Li=/%7B/g,Ya=/%7C/g,Mi=/%7D/g,Xa=/%20/g;function qr(e){return encodeURI(""+e).replace(Ya,"|").replace(Ga,"[").replace(Qa,"]")}function Za(e){return qr(e).replace(Li,"{").replace(Mi,"}").replace(Oi,"^")}function Er(e){return qr(e).replace(Ti,"%2B").replace(Xa,"+").replace(Ai,"%23").replace(Ka,"%26").replace(Ja,"`").replace(Li,"{").replace(Mi,"}").replace(Oi,"^")}function eu(e){return Er(e).replace(qa,"%3D")}function tu(e){return qr(e).replace(Ai,"%23").replace(Wa,"%3F")}function nu(e){return e==null?"":tu(e).replace(za,"%2F")}function Zt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const ru=/\/$/,su=e=>e.replace(ru,"");function nr(e,t,n="/"){let r,s={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),s=e(o)),c>-1&&(r=r||t.slice(0,c),i=t.slice(c,t.length)),r=cu(r!=null?r:t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:Zt(i)}}function ou(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ws(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function iu(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Ot(t.matched[r],n.matched[s])&&Ii(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ot(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ii(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!lu(e[n],t[n]))return!1;return!0}function lu(e,t){return ke(e)?Gs(e,t):ke(t)?Gs(t,e):e===t}function Gs(e,t){return ke(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function cu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,c;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}const Ze={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var en;(function(e){e.pop="pop",e.push="push"})(en||(en={}));var zt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zt||(zt={}));function au(e){if(!e)if(St){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),su(e)}const uu=/^[^#]+#/;function fu(e,t){return e.replace(uu,"#")+t}function du(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Bn=()=>({left:window.scrollX,top:window.scrollY});function hu(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=du(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Qs(e,t){return(history.state?history.state.position-t:-1)+e}const xr=new Map;function pu(e,t){xr.set(e,t)}function gu(e){const t=xr.get(e);return xr.delete(e),t}let mu=()=>location.protocol+"//"+location.host;function ki(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let c=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(c);return l[0]!=="/"&&(l="/"+l),Ws(l,"")}return Ws(n,e)+r+s}function _u(e,t,n,r){let s=[],o=[],i=null;const c=({state:p})=>{const g=ki(e,location),x=n.value,P=t.value;let D=0;if(p){if(n.value=g,t.value=p,i&&i===x){i=null;return}D=P?p.position-P.position:0}else r(g);s.forEach($=>{$(n.value,x,{delta:D,type:en.pop,direction:D?D>0?zt.forward:zt.back:zt.unknown})})};function l(){i=n.value}function u(p){s.push(p);const g=()=>{const x=s.indexOf(p);x>-1&&s.splice(x,1)};return o.push(g),g}function h(){const{history:p}=window;!p.state||p.replaceState(te({},p.state,{scroll:Bn()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function Js(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Bn():null}}function yu(e){const{history:t,location:n}=window,r={value:ki(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,h){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:mu()+e+l;try{t[h?"replaceState":"pushState"](u,"",p),s.value=u}catch(g){console.error(g),n[h?"replace":"assign"](p)}}function i(l,u){const h=te({},t.state,Js(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});o(l,h,!0),r.value=l}function c(l,u){const h=te({},s.value,t.state,{forward:l,scroll:Bn()});o(h.current,h,!0);const d=te({},Js(r.value,l,null),{position:h.position+1},u);o(l,d,!1),r.value=l}return{location:r,state:s,push:c,replace:i}}function vu(e){e=au(e);const t=yu(e),n=_u(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=te({location:"",base:e,go:r,createHref:fu.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function bu(e){return typeof e=="string"||e&&typeof e=="object"}function Fi(e){return typeof e=="string"||typeof e=="symbol"}const Ni=Symbol("");var Ys;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ys||(Ys={}));function Lt(e,t){return te(new Error,{type:e,[Ni]:!0},t)}function Ke(e,t){return e instanceof Error&&Ni in e&&(t==null||!!(e.type&t))}const Xs="[^/]+?",wu={sensitive:!1,strict:!1,start:!0,end:!0},Eu=/[.+*?^${}()[\]/\\]/g;function xu(e,t){const n=te({},wu,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const h=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function $i(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Su={type:0,value:""},Ru=/[a-zA-Z0-9_]/;function Pu(e){if(!e)return[[]];if(e==="/")return[[Su]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let c=0,l,u="",h="";function d(){!u||(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:h,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=l}for(;c{i(O)}:Kt}function i(d){if(Fi(d)){const p=r.get(d);p&&(r.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function c(){return n}function l(d){const p=Iu(d,n);n.splice(p,0,d),d.record.name&&!to(d)&&r.set(d.record.name,d)}function u(d,p){let g,x={},P,D;if("name"in d&&d.name){if(g=r.get(d.name),!g)throw Lt(1,{location:d});D=g.record.name,x=te(eo(p.params,g.keys.filter(O=>!O.optional).concat(g.parent?g.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),d.params&&eo(d.params,g.keys.map(O=>O.name))),P=g.stringify(x)}else if(d.path!=null)P=d.path,g=n.find(O=>O.re.test(P)),g&&(x=g.parse(P),D=g.record.name);else{if(g=p.name?r.get(p.name):n.find(O=>O.re.test(p.path)),!g)throw Lt(1,{location:d,currentLocation:p});D=g.record.name,x=te({},p.params,d.params),P=g.stringify(x)}const $=[];let k=g;for(;k;)$.unshift(k.record),k=k.parent;return{name:D,path:P,params:x,matched:$,meta:Mu($)}}e.forEach(d=>o(d));function h(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:h,getRoutes:c,getRecordMatcher:s}}function eo(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ou(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Lu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Lu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function to(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Mu(e){return e.reduce((t,n)=>te(t,n.meta),{})}function no(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Iu(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;$i(e,t[o])<0?r=o:n=o+1}const s=ku(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function ku(e){let t=e;for(;t=t.parent;)if(ji(t)&&$i(e,t)===0)return t}function ji({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Fu(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Er(o)):[r&&Er(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Nu(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ke(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const $u=Symbol(""),so=Symbol(""),Wr=Symbol(""),Hi=Symbol(""),Cr=Symbol("");function Nt(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function st(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((c,l)=>{const u=p=>{p===!1?l(Lt(4,{from:n,to:t})):p instanceof Error?l(p):bu(p)?l(Lt(2,{from:t,to:p})):(i&&r.enterCallbacks[s]===i&&typeof p=="function"&&i.push(p),c())},h=o(()=>e.call(r&&r.instances[s],t,n,u));let d=Promise.resolve(h);e.length<3&&(d=d.then(u)),d.catch(p=>l(p))})}function rr(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const c in i.components){let l=i.components[c];if(!(t!=="beforeRouteEnter"&&!i.instances[c]))if(ju(l)){const h=(l.__vccOpts||l)[t];h&&o.push(st(h,n,r,i,c,s))}else{let u=l();o.push(()=>u.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${i.path}"`));const d=Ua(h)?h.default:h;i.components[c]=d;const g=(d.__vccOpts||d)[t];return g&&st(g,n,r,i,c,s)()}))}}return o}function ju(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function oo(e){const t=We(Wr),n=We(Hi),r=Me(()=>{const l=At(e.to);return t.resolve(l)}),s=Me(()=>{const{matched:l}=r.value,{length:u}=l,h=l[u-1],d=n.matched;if(!h||!d.length)return-1;const p=d.findIndex(Ot.bind(null,h));if(p>-1)return p;const g=io(l[u-2]);return u>1&&io(h)===g&&d[d.length-1].path!==g?d.findIndex(Ot.bind(null,l[u-2])):p}),o=Me(()=>s.value>-1&&Vu(n.params,r.value.params)),i=Me(()=>s.value>-1&&s.value===n.matched.length-1&&Ii(n.params,r.value.params));function c(l={}){return Bu(l)?t[At(e.replace)?"replace":"push"](At(e.to)).catch(Kt):Promise.resolve()}return{route:r,href:Me(()=>r.value.href),isActive:o,isExactActive:i,navigate:c}}const Hu=Dr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:oo,setup(e,{slots:t}){const n=It(oo(e)),{options:r}=We(Wr),s=Me(()=>({[lo(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[lo(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:zr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Du=Hu;function Bu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Vu(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!ke(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function io(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const lo=(e,t,n)=>e!=null?e:t!=null?t:n,Uu=Dr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=We(Cr),s=Me(()=>e.route||r.value),o=We(so,0),i=Me(()=>{let u=At(o);const{matched:h}=s.value;let d;for(;(d=h[u])&&!d.components;)u++;return u}),c=Me(()=>s.value.matched[i.value]);pn(so,Me(()=>i.value+1)),pn($u,c),pn(Cr,s);const l=No();return gn(()=>[l.value,c.value,e.name],([u,h,d],[p,g,x])=>{h&&(h.instances[d]=u,g&&g!==h&&u&&u===p&&(h.leaveGuards.size||(h.leaveGuards=g.leaveGuards),h.updateGuards.size||(h.updateGuards=g.updateGuards))),u&&h&&(!g||!Ot(h,g)||!p)&&(h.enterCallbacks[d]||[]).forEach(P=>P(u))},{flush:"post"}),()=>{const u=s.value,h=e.name,d=c.value,p=d&&d.components[h];if(!p)return co(n.default,{Component:p,route:u});const g=d.props[h],x=g?g===!0?u.params:typeof g=="function"?g(u):g:null,D=zr(p,te({},x,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(d.instances[h]=null)},ref:l}));return co(n.default,{Component:D,route:u})||D}}});function co(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ku=Uu;function zu(e){const t=Tu(e.routes,e),n=e.parseQuery||Fu,r=e.stringifyQuery||ro,s=e.history,o=Nt(),i=Nt(),c=Nt(),l=xl(Ze);let u=Ze;St&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=tr.bind(null,y=>""+y),d=tr.bind(null,nu),p=tr.bind(null,Zt);function g(y,A){let R,I;return Fi(y)?(R=t.getRecordMatcher(y),I=A):I=y,t.addRoute(I,R)}function x(y){const A=t.getRecordMatcher(y);A&&t.removeRoute(A)}function P(){return t.getRoutes().map(y=>y.record)}function D(y){return!!t.getRecordMatcher(y)}function $(y,A){if(A=te({},A||l.value),typeof y=="string"){const f=nr(n,y,A.path),m=t.resolve({path:f.path},A),v=s.createHref(f.fullPath);return te(f,m,{params:p(m.params),hash:Zt(f.hash),redirectedFrom:void 0,href:v})}let R;if(y.path!=null)R=te({},y,{path:nr(n,y.path,A.path).path});else{const f=te({},y.params);for(const m in f)f[m]==null&&delete f[m];R=te({},y,{params:d(f)}),A.params=d(A.params)}const I=t.resolve(R,A),Z=y.hash||"";I.params=h(p(I.params));const le=ou(r,te({},y,{hash:Za(Z),path:I.path})),a=s.createHref(le);return te({fullPath:le,hash:Z,query:r===ro?Nu(y.query):y.query||{}},I,{redirectedFrom:void 0,href:a})}function k(y){return typeof y=="string"?nr(n,y,l.value.path):te({},y)}function O(y,A){if(u!==y)return Lt(8,{from:A,to:y})}function U(y){return K(y)}function G(y){return U(te(k(y),{replace:!0}))}function M(y){const A=y.matched[y.matched.length-1];if(A&&A.redirect){const{redirect:R}=A;let I=typeof R=="function"?R(y):R;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=k(I):{path:I},I.params={}),te({query:y.query,hash:y.hash,params:I.path!=null?{}:y.params},I)}}function K(y,A){const R=u=$(y),I=l.value,Z=y.state,le=y.force,a=y.replace===!0,f=M(R);if(f)return K(te(k(f),{state:typeof f=="object"?te({},Z,f.state):Z,force:le,replace:a}),A||R);const m=R;m.redirectedFrom=A;let v;return!le&&iu(r,I,R)&&(v=Lt(16,{to:m,from:I}),Fe(I,I,!0,!1)),(v?Promise.resolve(v):q(m,I)).catch(_=>Ke(_)?Ke(_,2)?_:Qe(_):X(_,m,I)).then(_=>{if(_){if(Ke(_,2))return K(te({replace:a},k(_.to),{state:typeof _.to=="object"?te({},Z,_.to.state):Z,force:le}),A||m)}else _=L(m,I,!0,a,Z);return Q(m,I,_),_})}function re(y,A){const R=O(y,A);return R?Promise.reject(R):Promise.resolve()}function H(y){const A=xt.values().next().value;return A&&typeof A.runWithContext=="function"?A.runWithContext(y):y()}function q(y,A){let R;const[I,Z,le]=qu(y,A);R=rr(I.reverse(),"beforeRouteLeave",y,A);for(const f of I)f.leaveGuards.forEach(m=>{R.push(st(m,y,A))});const a=re.bind(null,y,A);return R.push(a),pe(R).then(()=>{R=[];for(const f of o.list())R.push(st(f,y,A));return R.push(a),pe(R)}).then(()=>{R=rr(Z,"beforeRouteUpdate",y,A);for(const f of Z)f.updateGuards.forEach(m=>{R.push(st(m,y,A))});return R.push(a),pe(R)}).then(()=>{R=[];for(const f of le)if(f.beforeEnter)if(ke(f.beforeEnter))for(const m of f.beforeEnter)R.push(st(m,y,A));else R.push(st(f.beforeEnter,y,A));return R.push(a),pe(R)}).then(()=>(y.matched.forEach(f=>f.enterCallbacks={}),R=rr(le,"beforeRouteEnter",y,A,H),R.push(a),pe(R))).then(()=>{R=[];for(const f of i.list())R.push(st(f,y,A));return R.push(a),pe(R)}).catch(f=>Ke(f,8)?f:Promise.reject(f))}function Q(y,A,R){c.list().forEach(I=>H(()=>I(y,A,R)))}function L(y,A,R,I,Z){const le=O(y,A);if(le)return le;const a=A===Ze,f=St?history.state:{};R&&(I||a?s.replace(y.fullPath,te({scroll:a&&f&&f.scroll},Z)):s.push(y.fullPath,Z)),l.value=y,Fe(y,A,R,a),Qe()}let Y;function fe(){Y||(Y=s.listen((y,A,R)=>{if(!nn.listening)return;const I=$(y),Z=M(I);if(Z){K(te(Z,{replace:!0}),I).catch(Kt);return}u=I;const le=l.value;St&&pu(Qs(le.fullPath,R.delta),Bn()),q(I,le).catch(a=>Ke(a,12)?a:Ke(a,2)?(K(a.to,I).then(f=>{Ke(f,20)&&!R.delta&&R.type===en.pop&&s.go(-1,!1)}).catch(Kt),Promise.reject()):(R.delta&&s.go(-R.delta,!1),X(a,I,le))).then(a=>{a=a||L(I,le,!1),a&&(R.delta&&!Ke(a,8)?s.go(-R.delta,!1):R.type===en.pop&&Ke(a,20)&&s.go(-1,!1)),Q(I,le,a)}).catch(Kt)}))}let Te=Nt(),ce=Nt(),ne;function X(y,A,R){Qe(y);const I=ce.list();return I.length?I.forEach(Z=>Z(y,A,R)):console.error(y),Promise.reject(y)}function Ue(){return ne&&l.value!==Ze?Promise.resolve():new Promise((y,A)=>{Te.add([y,A])})}function Qe(y){return ne||(ne=!y,fe(),Te.list().forEach(([A,R])=>y?R(y):A()),Te.reset()),y}function Fe(y,A,R,I){const{scrollBehavior:Z}=e;if(!St||!Z)return Promise.resolve();const le=!R&&gu(Qs(y.fullPath,0))||(I||!R)&&history.state&&history.state.scroll||null;return Do().then(()=>Z(y,A,le)).then(a=>a&&hu(a)).catch(a=>X(a,y,A))}const ye=y=>s.go(y);let Et;const xt=new Set,nn={currentRoute:l,listening:!0,addRoute:g,removeRoute:x,clearRoutes:t.clearRoutes,hasRoute:D,getRoutes:P,resolve:$,options:e,push:U,replace:G,go:ye,back:()=>ye(-1),forward:()=>ye(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:ce.add,isReady:Ue,install(y){const A=this;y.component("RouterLink",Du),y.component("RouterView",Ku),y.config.globalProperties.$router=A,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>At(l)}),St&&!Et&&l.value===Ze&&(Et=!0,U(s.location).catch(Z=>{}));const R={};for(const Z in Ze)Object.defineProperty(R,Z,{get:()=>l.value[Z],enumerable:!0});y.provide(Wr,A),y.provide(Hi,Lo(R)),y.provide(Cr,l);const I=y.unmount;xt.add(y),y.unmount=function(){xt.delete(y),xt.size<1&&(u=Ze,Y&&Y(),Y=null,l.value=Ze,Et=!1,ne=!1),I()}}};function pe(y){return y.reduce((A,R)=>A.then(()=>H(R)),Promise.resolve())}return nn}function qu(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iOt(u,c))?r.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(u=>Ot(u,l))||s.push(l))}return[n,r,s]}const Wu=function(){const t=document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}(),ao={},Gu="/email-header-analyzer/",sr=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${Gu}${r}`,r in ao)return;ao[r]=!0;const s=r.endsWith(".css"),o=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${o}`))return;const i=document.createElement("link");if(i.rel=s?"stylesheet":Wu,s||(i.as="script",i.crossOrigin=""),i.href=r,document.head.appendChild(i),s)return new Promise((c,l)=>{i.addEventListener("load",c),i.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},Qu=[{path:"/",component:()=>sr(()=>import("./MainLayout.74da7b76.js"),["assets/MainLayout.74da7b76.js","assets/QBtn.4f67275f.js","assets/scroll.bcfb7906.js"]),children:[{path:"",component:()=>sr(()=>import("./IndexPage.6382c46f.js"),["assets/IndexPage.6382c46f.js","assets/IndexPage.d5bf1bf1.css","assets/QBtn.4f67275f.js","assets/scroll.bcfb7906.js"])}]},{path:"/:catchAll(.*)*",component:()=>sr(()=>import("./ErrorNotFound.e4e7efa3.js"),["assets/ErrorNotFound.e4e7efa3.js","assets/QBtn.4f67275f.js"])}];var or=function(){return zu({scrollBehavior:()=>({left:0,top:0}),routes:Qu,history:vu("/email-header-analyzer/")})};async function Ju(e,t){const n=e(Va);n.use(ja,t);const r=Tn(typeof or=="function"?await or({}):or);return{app:n,router:r}}var Yu={config:{}};async function Xu({app:e,router:t}){e.use(t),e.mount("#q-app")}Ju(ha,Yu).then(Xu);export{J as $,At as A,af as B,_f as C,gf as D,mf as E,df as F,uf as G,pf as H,hf as I,Ul as J,bf as K,ba as L,jn as M,mc as N,gc as O,Ca as P,Be as Q,Vl as R,wr as S,wi as T,Us as U,rf as V,Ma as W,ff as X,Kl as Y,er as Z,Ha as _,Me as a,xf as a0,Ef as a1,Ks as a2,lf as a3,Dr as a4,sf as a5,je as a6,nf as a7,yi as a8,Zi as a9,of as aa,Zu as ab,ef as ac,Wo as b,cf as c,Do as d,We as e,wf as f,Mc as g,zr as h,wt as i,yf as j,vf as k,Dn as l,It as m,Xt as n,qo as o,pn as p,Go as q,No as r,$l as s,pi as t,mi as u,Ml as v,gn as w,Re as x,Pc as y,tf as z}; diff --git a/assets/scroll.ea6f512c.js b/assets/scroll.bcfb7906.js similarity index 95% rename from assets/scroll.ea6f512c.js rename to assets/scroll.bcfb7906.js index 0f4f834..432e423 100644 --- a/assets/scroll.ea6f512c.js +++ b/assets/scroll.bcfb7906.js @@ -1 +1 @@ -import{g as s,c as l}from"./QBtn.7ce9a280.js";const d=[Element,String],c=[null,document,document.body,document.scrollingElement,document.documentElement];function u(o,t){let e=s(t);if(e===void 0){if(o==null)return window;e=o.closest(".scroll,.scroll-y,.overflow-auto")}return c.includes(e)?window:e}function a(o){return o===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:o.scrollTop}function f(o){return o===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:o.scrollLeft}let n;function w(){if(n!==void 0)return n;const o=document.createElement("p"),t=document.createElement("div");l(o,{width:"100%",height:"200px"}),l(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(o),document.body.appendChild(t);const e=o.offsetWidth;t.style.overflow="scroll";let i=o.offsetWidth;return e===i&&(i=t.clientWidth),t.remove(),n=e-i,n}function p(o,t=!0){return!o||o.nodeType!==Node.ELEMENT_NODE?!1:t?o.scrollHeight>o.clientHeight&&(o.classList.contains("scroll")||o.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(o)["overflow-y"])):o.scrollWidth>o.clientWidth&&(o.classList.contains("scroll")||o.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(o)["overflow-x"]))}export{a,f as b,w as c,u as g,p as h,d as s}; +import{g as s,c as l}from"./QBtn.4f67275f.js";const d=[Element,String],c=[null,document,document.body,document.scrollingElement,document.documentElement];function u(o,t){let e=s(t);if(e===void 0){if(o==null)return window;e=o.closest(".scroll,.scroll-y,.overflow-auto")}return c.includes(e)?window:e}function a(o){return o===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:o.scrollTop}function f(o){return o===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:o.scrollLeft}let n;function w(){if(n!==void 0)return n;const o=document.createElement("p"),t=document.createElement("div");l(o,{width:"100%",height:"200px"}),l(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(o),document.body.appendChild(t);const e=o.offsetWidth;t.style.overflow="scroll";let i=o.offsetWidth;return e===i&&(i=t.clientWidth),t.remove(),n=e-i,n}function p(o,t=!0){return!o||o.nodeType!==Node.ELEMENT_NODE?!1:t?o.scrollHeight>o.clientHeight&&(o.classList.contains("scroll")||o.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(o)["overflow-y"])):o.scrollWidth>o.clientWidth&&(o.classList.contains("scroll")||o.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(o)["overflow-x"]))}export{a,f as b,w as c,u as g,p as h,d as s}; diff --git a/index.html b/index.html index f51ce4b..bcc9345 100644 --- a/index.html +++ b/index.html @@ -1,3 +1,3 @@ -Mailtower E-Mail Header Analyzer - +Mailtower E-Mail Header Analyzer +
\ No newline at end of file