UNPKG

anq-server-data-table

Version:

A powerful server-side data table component for Vue 3 applications, built with Quasar Framework. This component provides a seamless way to handle server-side pagination, filtering, sorting, and data management in your Vue applications.

2 lines 308 kB
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.flex{display:flex}.table{display:table}.w-full{width:100%}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.\\!items-start{align-items:flex-start!important}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.\\!justify-between{justify-content:space-between!important}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.p-2{padding:.5rem}.font-bold{font-weight:700}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\\[\\&\\>div\\>div\\:before\\]\\:\\!border-solid>div>div:before{border-style:solid!important}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})(); (function(n,$t){typeof exports=="object"&&typeof module<"u"?module.exports=$t(require("vue")):typeof define=="function"&&define.amd?define(["vue"],$t):(n=typeof globalThis<"u"?globalThis:n||self,n.AnqServerDataTable=$t(n.Vue))})(this,function(n){"use strict";const $t={xs:18,sm:24,md:32,lg:38,xl:46},Gt={size:String};function en(e,t=$t){return n.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function ut(e,t,o,l){return Object.defineProperty(e,t,{get:o,set:l,enumerable:!0}),e}function ms(e,t){for(const o in t)ut(e,o,t[o]);return e}function Se(e){return n.markRaw(n.defineComponent(e))}function Eo(e){return n.markRaw(e)}const hs=(e,t)=>{const o=n.reactive(e);for(const l in e)ut(t,l,()=>o[l],a=>{o[l]=a});return t};function Ue(e,t){return e!==void 0&&e()||t}function Dl(e,t){if(e!==void 0){const o=e();if(o!=null)return o.slice()}return t}function yt(e,t){return e!==void 0?t.concat(e()):t}function gs(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function vs(e,t,o,l,a,r){t.key=l+a;const i=n.h(e,t,o);return a===!0?n.withDirectives(i,r()):i}const $l="0 0 24 24",Mo=e=>e,To=e=>`ionicons ${e}`,Fl={"mdi-":e=>`mdi ${e}`,"icon-":Mo,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":To,"ion-ios":To,"ion-logo":To,"iconfont ":Mo,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":Mo},Nl={o_:"-outlined",r_:"-round",s_:"-sharp"},Il={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ps=new RegExp("^("+Object.keys(Fl).join("|")+")"),bs=new RegExp("^("+Object.keys(Nl).join("|")+")"),jl=new RegExp("^("+Object.keys(Il).join("|")+")"),ys=/^[Mm]\s?[-+]?\.?\d/,ws=/^img:/,Ss=/^svguse:/,ks=/^ion-/,xs=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,at=Se({name:"QIcon",props:{...Gt,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=n.getCurrentInstance(),l=en(e),a=n.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),r=n.computed(()=>{let i,s=e.name;if(s==="none"||!s)return{none:!0};if(o.iconMapFn!==null){const u=o.iconMapFn(s);if(u!==void 0)if(u.icon!==void 0){if(s=u.icon,s==="none"||!s)return{none:!0}}else return{cls:u.cls,content:u.content!==void 0?u.content:" "}}if(ys.test(s)===!0){const[u,f=$l]=s.split("|");return{svg:!0,viewBox:f,nodes:u.split("&&").map(p=>{const[v,m,x]=p.split("@@");return n.h("path",{style:m,d:v,transform:x})})}}if(ws.test(s)===!0)return{img:!0,src:s.substring(4)};if(Ss.test(s)===!0){const[u,f=$l]=s.split("|");return{svguse:!0,src:u.substring(7),viewBox:f}}let d=" ";const c=s.match(ps);if(c!==null)i=Fl[c[1]](s);else if(xs.test(s)===!0)i=s;else if(ks.test(s)===!0)i=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(jl.test(s)===!0){i="notranslate material-symbols";const u=s.match(jl);u!==null&&(s=s.substring(6),i+=Il[u[1]]),d=s}else{i="notranslate material-icons";const u=s.match(bs);u!==null&&(s=s.substring(2),i+=Nl[u[1]]),d=s}return{cls:i,content:d}});return()=>{const i={class:a.value,style:l.value,"aria-hidden":"true"};return r.value.none===!0?n.h(e.tag,i,Ue(t.default)):r.value.img===!0?n.h(e.tag,i,yt(t.default,[n.h("img",{src:r.value.src})])):r.value.svg===!0?n.h(e.tag,i,yt(t.default,[n.h("svg",{viewBox:r.value.viewBox||"0 0 24 24"},r.value.nodes)])):r.value.svguse===!0?n.h(e.tag,i,yt(t.default,[n.h("svg",{viewBox:r.value.viewBox},[n.h("use",{"xlink:href":r.value.src})])])):(r.value.cls!==void 0&&(i.class+=" "+r.value.cls),n.h(e.tag,i,yt(t.default,[r.value.content])))}}}),Cs={size:{type:[String,Number],default:"1em"},color:String};function _s(e){return{cSize:n.computed(()=>e.size in $t?`${$t[e.size]}px`:e.size),classes:n.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const Hl=Se({name:"QSpinner",props:{...Cs,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:o}=_s(e);return()=>n.h("svg",{class:o.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[n.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});let Ro,In=0;const Ye=new Array(256);for(let e=0;e<256;e++)Ye[e]=(e+256).toString(16).substring(1);const qs=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{const o=new Uint8Array(t);return e.getRandomValues(o),o}}return t=>{const o=[];for(let l=t;l>0;l--)o.push(Math.floor(Math.random()*256));return o}})(),zl=4096;function Po(){(Ro===void 0||In+16>zl)&&(In=0,Ro=qs(zl));const e=Array.prototype.slice.call(Ro,In,In+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Ye[e[0]]+Ye[e[1]]+Ye[e[2]]+Ye[e[3]]+"-"+Ye[e[4]]+Ye[e[5]]+"-"+Ye[e[6]]+Ye[e[7]]+"-"+Ye[e[8]]+Ye[e[9]]+"-"+Ye[e[10]]+Ye[e[11]]+Ye[e[12]]+Ye[e[13]]+Ye[e[14]]+Ye[e[15]]}const wn=n.ref(!1);let Bo;function Es(e,t){const o=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[4]||o[2]||"0",platform:t[0]||""}}function Ms(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const Ul="ontouchstart"in window||window.navigator.maxTouchPoints>0;function Ts(e){const t=e.toLowerCase(),o=Ms(t),l=Es(t,o),a={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};l.browser&&(a[l.browser]=!0,a.version=l.version,a.versionNumber=parseInt(l.version,10)),l.platform&&(a[l.platform]=!0);const r=a.android||a.ios||a.bb||a.blackberry||a.ipad||a.iphone||a.ipod||a.kindle||a.playbook||a.silk||a["windows phone"];if(r===!0||t.indexOf("mobile")!==-1?a.mobile=!0:a.desktop=!0,a["windows phone"]&&(a.winphone=!0,delete a["windows phone"]),a.edga||a.edgios||a.edg?(a.edge=!0,l.browser="edge"):a.crios?(a.chrome=!0,l.browser="chrome"):a.fxios&&(a.firefox=!0,l.browser="firefox"),(a.ipod||a.ipad||a.iphone)&&(a.ios=!0),a.vivaldi&&(l.browser="vivaldi",a.vivaldi=!0),(a.chrome||a.opr||a.safari||a.vivaldi||a.mobile===!0&&a.ios!==!0&&r!==!0)&&(a.webkit=!0),a.opr&&(l.browser="opera",a.opera=!0),a.safari&&(a.blackberry||a.bb?(l.browser="blackberry",a.blackberry=!0):a.playbook?(l.browser="playbook",a.playbook=!0):a.android?(l.browser="android",a.android=!0):a.kindle?(l.browser="kindle",a.kindle=!0):a.silk&&(l.browser="silk",a.silk=!0)),a.name=l.browser,a.platform=l.platform,t.indexOf("electron")!==-1)a.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)a.bex=!0;else{if(window.Capacitor!==void 0?(a.capacitor=!0,a.nativeMobile=!0,a.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(a.cordova=!0,a.nativeMobile=!0,a.nativeMobileWrapper="cordova"),wn.value===!0&&(Bo={is:{...a}}),Ul===!0&&a.mac===!0&&(a.desktop===!0&&a.safari===!0||a.nativeMobile===!0&&a.android!==!0&&a.ios!==!0&&a.ipad!==!0)){delete a.mac,delete a.desktop;const i=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(a,{mobile:!0,ios:!0,platform:i,[i]:!0})}a.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete a.desktop,a.mobile=!0)}return a}const Yl=navigator.userAgent||navigator.vendor||window.opera,Rs={has:{touch:!1,webStorage:!1},within:{iframe:!1}},je={userAgent:Yl,is:Ts(Yl),has:{touch:Ul},within:{iframe:window.self!==window.top}},Oo={install(e){const{$q:t}=e;wn.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,je),wn.value=!1}),t.platform=n.reactive(this)):t.platform=this}};{let e;ut(je.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(Oo,je),wn.value===!0&&(Object.assign(Oo,Bo,Rs),Bo=null)}function Ps(e){return e??null}function Kl(e,t){return e??(t===!0?`f_${Po()}`:null)}function Bs({getValue:e,required:t=!0}={}){if(wn.value===!0){const o=e!==void 0?n.ref(Ps(e())):n.ref(null);return t===!0&&o.value===null&&n.onMounted(()=>{o.value=`f_${Po()}`}),e!==void 0&&n.watch(e,l=>{o.value=Kl(l,t)}),o}return e!==void 0?n.computed(()=>Kl(e(),t)):n.ref(`f_${Po()}`)}const Wl=/^on[A-Z]/;function Os(){const{attrs:e,vnode:t}=n.getCurrentInstance(),o={listeners:n.ref({}),attributes:n.ref({})};function l(){const a={},r={};for(const i in e)i!=="class"&&i!=="style"&&Wl.test(i)===!1&&(a[i]=e[i]);for(const i in t.props)Wl.test(i)===!0&&(r[i]=t.props[i]);o.attributes.value=a,o.listeners.value=r}return n.onBeforeUpdate(l),l(),o}const Je={dark:{type:Boolean,default:null}};function Ze(e,t){return n.computed(()=>e.dark===null?t.dark.isActive:e.dark)}const Vs="_q_fo_";function Ls({validate:e,resetValidation:t,requiresQForm:o}){const l=n.inject(Vs,!1);if(l!==!1){const{props:a,proxy:r}=n.getCurrentInstance();Object.assign(r,{validate:e,resetValidation:t}),n.watch(()=>a.disable,i=>{i===!0?(typeof t=="function"&&t(),l.unbindComponent(r)):l.bindComponent(r)}),n.onMounted(()=>{a.disable!==!0&&l.bindComponent(r)}),n.onBeforeUnmount(()=>{a.disable!==!0&&l.unbindComponent(r)})}else o===!0&&console.error("Parent QForm not found on useFormChild()!")}const Ql=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Xl=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Jl=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,jn=/^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])\)$/,Hn=/^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)\)$/,Vo={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=>Ql.test(e),hexaColor:e=>Xl.test(e),hexOrHexaColor:e=>Jl.test(e),rgbColor:e=>jn.test(e),rgbaColor:e=>Hn.test(e),rgbOrRgbaColor:e=>jn.test(e)||Hn.test(e),hexOrRgbColor:e=>Ql.test(e)||jn.test(e),hexaOrRgbaColor:e=>Xl.test(e)||Hn.test(e),anyColor:e=>Jl.test(e)||jn.test(e)||Hn.test(e)};function Zl(e,t=250,o){let l=null;function a(){const r=arguments,i=()=>{l=null,e.apply(this,r)};l!==null&&clearTimeout(l),l=setTimeout(i,t)}return a.cancel=()=>{l!==null&&clearTimeout(l)},a}const As=[!0,!1,"ondemand"],Ds={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>As.includes(e)}};function $s(e,t){const{props:o,proxy:l}=n.getCurrentInstance(),a=n.ref(!1),r=n.ref(null),i=n.ref(!1);Ls({validate:x,resetValidation:m});let s=0,d;const c=n.computed(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),u=n.computed(()=>o.disable!==!0&&c.value===!0&&t.value===!1),f=n.computed(()=>o.error===!0||a.value===!0),p=n.computed(()=>typeof o.errorMessage=="string"&&o.errorMessage.length!==0?o.errorMessage:r.value);n.watch(()=>o.modelValue,()=>{i.value=!0,u.value===!0&&o.lazyRules===!1&&h()});function v(){o.lazyRules!=="ondemand"&&u.value===!0&&i.value===!0&&h()}n.watch(()=>o.reactiveRules,E=>{E===!0?d===void 0&&(d=n.watch(()=>o.rules,v,{immediate:!0,deep:!0})):d!==void 0&&(d(),d=void 0)},{immediate:!0}),n.watch(()=>o.lazyRules,v),n.watch(e,E=>{E===!0?i.value=!0:u.value===!0&&o.lazyRules!=="ondemand"&&h()});function m(){s++,t.value=!1,i.value=!1,a.value=!1,r.value=null,h.cancel()}function x(E=o.modelValue){if(o.disable===!0||c.value===!1)return!0;const C=++s,_=t.value!==!0?()=>{i.value=!0}:()=>{},y=(D,B)=>{D===!0&&_(),a.value=D,r.value=B||null,t.value=!1},b=[];for(let D=0;D<o.rules.length;D++){const B=o.rules[D];let j;if(typeof B=="function"?j=B(E,Vo):typeof B=="string"&&Vo[B]!==void 0&&(j=Vo[B](E)),j===!1||typeof j=="string")return y(!0,j),!1;j!==!0&&j!==void 0&&b.push(j)}return b.length===0?(y(!1),!0):(t.value=!0,Promise.all(b).then(D=>{if(D===void 0||Array.isArray(D)===!1||D.length===0)return C===s&&y(!1),!0;const B=D.find(j=>j===!1||typeof j=="string");return C===s&&y(B!==void 0,B),B===void 0},D=>(C===s&&(console.error(D),y(!0)),!1)))}const h=Zl(x,0);return n.onBeforeUnmount(()=>{d==null||d(),h.cancel()}),Object.assign(l,{resetValidation:m,validate:x}),ut(l,"hasError",()=>f.value),{isDirtyModel:i,hasRules:c,hasError:f,errorMessage:p,validate:x,resetValidation:m}}const He={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(He,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function Gl(){}function Fs(e){return e.button===0}function tn(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function Ns(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let o=e.target;for(;o;){if(t.push(o),o.tagName==="HTML")return t.push(document),t.push(window),t;o=o.parentElement}}function rt(e){e.stopPropagation()}function Ge(e){e.cancelable!==!1&&e.preventDefault()}function Pe(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Lo(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;const o=t===!0?l=>{l.__dragPrevented=!0,l.addEventListener("dragstart",Ge,He.notPassiveCapture)}:l=>{delete l.__dragPrevented,l.removeEventListener("dragstart",Ge,He.notPassiveCapture)};e.querySelectorAll("a, img").forEach(o)}function Ft(e,t,o){const l=`__q_${t}_evt`;e[l]=e[l]!==void 0?e[l].concat(o):o,o.forEach(a=>{a[0].addEventListener(a[1],e[a[2]],He[a[3]])})}function Sn(e,t){const o=`__q_${t}_evt`;e[o]!==void 0&&(e[o].forEach(l=>{l[0].removeEventListener(l[1],e[l[2]],He[l[3]])}),e[o]=void 0)}let Nt=[],kn=[];function ea(e){kn=kn.filter(t=>t!==e)}function Is(e){ea(e),kn.push(e)}function ta(e){ea(e),kn.length===0&&Nt.length!==0&&(Nt[Nt.length-1](),Nt=[])}function zn(e){kn.length===0?e():Nt.push(e)}function js(e){Nt=Nt.filter(t=>t!==e)}function xn(e){return e!=null&&(""+e).length!==0}const Un={...{...Je,...Ds,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},maxlength:[Number,String]},Ao=["update:modelValue","clear","focus","blur"];function Do({requiredForAttr:e=!0,tagProp:t,changeEvent:o=!1}={}){const{props:l,proxy:a}=n.getCurrentInstance(),r=Ze(l,a.$q),i=Bs({required:e,getValue:()=>l.for});return{requiredForAttr:e,changeEvent:o,tag:t===!0?n.computed(()=>l.tag):{value:"label"},isDark:r,editable:n.computed(()=>l.disable!==!0&&l.readonly!==!0),innerLoading:n.ref(!1),focused:n.ref(!1),hasPopupOpen:!1,splitAttrs:Os(),targetUid:i,rootRef:n.ref(null),targetRef:n.ref(null),controlRef:n.ref(null)}}function $o(e){const{props:t,emit:o,slots:l,attrs:a,proxy:r}=n.getCurrentInstance(),{$q:i}=r;let s=null;e.hasValue===void 0&&(e.hasValue=n.computed(()=>xn(t.modelValue))),e.emitValue===void 0&&(e.emitValue=H=>{o("update:modelValue",H)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:V,onFocusout:L}),Object.assign(e,{clearValue:F,onControlFocusin:V,onControlFocusout:L,focus:B}),e.computedCounter===void 0&&(e.computedCounter=n.computed(()=>{if(t.counter!==!1){const H=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,Q=t.maxlength!==void 0?t.maxlength:t.maxValues;return H+(Q!==void 0?" / "+Q:"")}}));const{isDirtyModel:d,hasRules:c,hasError:u,errorMessage:f,resetValidation:p}=$s(e.focused,e.innerLoading),v=e.floatingLabel!==void 0?n.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):n.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),m=n.computed(()=>t.bottomSlots===!0||t.hint!==void 0||c.value===!0||t.counter===!0||t.error!==null),x=n.computed(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),h=n.computed(()=>`q-field row no-wrap items-start q-field--${x.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(v.value===!0?" q-field--float":"")+(C.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":"")+(u.value===!0?" q-field--error":"")+(u.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&m.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),E=n.computed(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(u.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}`:"")),C=n.computed(()=>t.labelSlot===!0||t.label!==void 0),_=n.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&u.value!==!0?` text-${t.labelColor}`:"")),y=n.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:v.value,modelValue:t.modelValue,emitValue:e.emitValue})),b=n.computed(()=>{const H={};return e.targetUid.value&&(H.for=e.targetUid.value),t.disable===!0&&(H["aria-disabled"]="true"),H});function D(){var re;const H=document.activeElement;let Q=(re=e.targetRef)==null?void 0:re.value;Q&&(H===null||H.id!==e.targetUid.value)&&(Q.hasAttribute("tabindex")===!0||(Q=Q.querySelector("[tabindex]")),Q!==H&&(Q==null||Q.focus({preventScroll:!0})))}function B(){zn(D)}function j(){js(D);const H=document.activeElement;H!==null&&e.rootRef.value.contains(H)&&H.blur()}function V(H){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,o("focus",H))}function L(H,Q){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,o("blur",H)),Q==null||Q())})}function F(H){var Q;Pe(H),i.platform.is.mobile!==!0?(((Q=e.targetRef)==null?void 0:Q.value)||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),o("update:modelValue",null),e.changeEvent===!0&&o("change",null),o("clear",t.modelValue),n.nextTick(()=>{const re=d.value;p(),d.value=re})}function T(H){[13,32].includes(H.keyCode)&&F(H)}function $(){const H=[];return l.prepend!==void 0&&H.push(n.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Ge},l.prepend())),H.push(n.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},S())),u.value===!0&&t.noErrorIcon===!1&&H.push(Y("error",[n.h(at,{name:i.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?H.push(Y("inner-loading-append",l.loading!==void 0?l.loading():[n.h(Hl,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&H.push(Y("inner-clearable-append",[n.h(at,{class:"q-field__focusable-action",name:t.clearIcon||i.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":i.lang.label.clear,onKeyup:T,onClick:F})])),l.append!==void 0&&H.push(n.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Ge},l.append())),e.getInnerAppend!==void 0&&H.push(Y("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&H.push(e.getControlChild()),H}function S(){const H=[];return t.prefix!==void 0&&t.prefix!==null&&H.push(n.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&H.push(e.getShadowControl()),e.getControl!==void 0?H.push(e.getControl()):l.rawControl!==void 0?H.push(l.rawControl()):l.control!==void 0&&H.push(n.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},l.control(y.value))),C.value===!0&&H.push(n.h("div",{class:_.value},Ue(l.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&H.push(n.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),H.concat(Ue(l.default))}function I(){let H,Q;u.value===!0?f.value!==null?(H=[n.h("div",{role:"alert"},f.value)],Q=`q--slot-error-${f.value}`):(H=Ue(l.error),Q="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(H=[n.h("div",t.hint)],Q=`q--slot-hint-${t.hint}`):(H=Ue(l.hint),Q="q--slot-hint"));const re=t.counter===!0||l.counter!==void 0;if(t.hideBottomSpace===!0&&re===!1&&H===void 0)return;const M=n.h("div",{key:Q,class:"q-field__messages col"},H);return n.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:Ge},[t.hideBottomSpace===!0?M:n.h(n.Transition,{name:"q-transition--field-message"},()=>M),re===!0?n.h("div",{class:"q-field__counter"},l.counter!==void 0?l.counter():e.computedCounter.value):null])}function Y(H,Q){return Q===null?null:n.h("div",{key:H,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},Q)}let K=!1;return n.onDeactivated(()=>{K=!0}),n.onActivated(()=>{K===!0&&t.autofocus===!0&&r.focus()}),t.autofocus===!0&&n.onMounted(()=>{r.focus()}),n.onBeforeUnmount(()=>{s!==null&&clearTimeout(s)}),Object.assign(r,{focus:B,blur:j}),function(){const Q=e.getControl===void 0&&l.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...b.value}:b.value;return n.h(e.tag.value,{ref:e.rootRef,class:[h.value,a.class],style:a.style,...Q},[l.before!==void 0?n.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Ge},l.before()):null,n.h("div",{class:"q-field__inner relative-position col self-stretch"},[n.h("div",{ref:e.controlRef,class:E.value,tabindex:-1,...e.controlEvents},$()),m.value===!0?I():null]),l.after!==void 0?n.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Ge},l.after()):null])}}function Fo(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function xt(e,t){return Fo(e)===!0?!1:[].concat(t).includes(e.keyCode)}const na={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Yn={"#":{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()}},oa=Object.keys(Yn);oa.forEach(e=>{Yn[e].regex=new RegExp(Yn[e].pattern)});const Hs=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+oa.join("")+"])|(.)","g"),la=/[.*+?^${}()|[\]\\]/g,Fe="",zs={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Us(e,t,o,l){let a,r,i,s,d,c;const u=n.ref(null),f=n.ref(v());function p(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}n.watch(()=>e.type+e.autogrow,x),n.watch(()=>e.mask,V=>{if(V!==void 0)h(f.value,!0);else{const L=B(f.value);x(),e.modelValue!==L&&t("update:modelValue",L)}}),n.watch(()=>e.fillMask+e.reverseFillMask,()=>{u.value===!0&&h(f.value,!0)}),n.watch(()=>e.unmaskedValue,()=>{u.value===!0&&h(f.value)});function v(){if(x(),u.value===!0){const V=b(B(e.modelValue));return e.fillMask!==!1?j(V):V}return e.modelValue}function m(V){if(V<a.length)return a.slice(-V);let L="",F=a;const T=F.indexOf(Fe);if(T!==-1){for(let $=V-F.length;$>0;$--)L+=Fe;F=F.slice(0,T)+L+F.slice(T)}return F}function x(){if(u.value=e.mask!==void 0&&e.mask.length!==0&&p(),u.value===!1){s=void 0,a="",r="";return}const V=na[e.mask]===void 0?e.mask:na[e.mask],L=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",F=L.replace(la,"\\$&"),T=[],$=[],S=[];let I=e.reverseFillMask===!0,Y="",K="";V.replace(Hs,(M,q,J,N,X)=>{if(N!==void 0){const G=Yn[N];S.push(G),K=G.negate,I===!0&&($.push("(?:"+K+"+)?("+G.pattern+"+)?(?:"+K+"+)?("+G.pattern+"+)?"),I=!1),$.push("(?:"+K+"+)?("+G.pattern+")?")}else if(J!==void 0)Y="\\"+(J==="\\"?"":J),S.push(J),T.push("([^"+Y+"]+)?"+Y+"?");else{const G=q!==void 0?q:X;Y=G==="\\"?"\\\\\\\\":G.replace(la,"\\\\$&"),S.push(G),T.push("([^"+Y+"]+)?"+Y+"?")}});const H=new RegExp("^"+T.join("")+"("+(Y===""?".":"[^"+Y+"]")+"+)?"+(Y===""?"":"["+Y+"]*")+"$"),Q=$.length-1,re=$.map((M,q)=>q===0&&e.reverseFillMask===!0?new RegExp("^"+F+"*"+M):q===Q?new RegExp("^"+M+"("+(K===""?".":K)+"+)?"+(e.reverseFillMask===!0?"$":F+"*")):new RegExp("^"+M));i=S,s=M=>{const q=H.exec(e.reverseFillMask===!0?M:M.slice(0,S.length+1));q!==null&&(M=q.slice(1).join(""));const J=[],N=re.length;for(let X=0,G=M;X<N;X++){const ne=re[X].exec(G);if(ne===null)break;G=G.slice(ne.shift().length),J.push(...ne)}return J.length!==0?J.join(""):M},a=S.map(M=>typeof M=="string"?M:Fe).join(""),r=a.split(Fe).join(L)}function h(V,L,F){const T=l.value,$=T.selectionEnd,S=T.value.length-$,I=B(V);L===!0&&x();const Y=b(I),K=e.fillMask!==!1?j(Y):Y,H=f.value!==K;T.value!==K&&(T.value=K),H===!0&&(f.value=K),document.activeElement===T&&n.nextTick(()=>{if(K===r){const re=e.reverseFillMask===!0?r.length:0;T.setSelectionRange(re,re,"forward");return}if(F==="insertFromPaste"&&e.reverseFillMask!==!0){const re=T.selectionEnd;let M=$-1;for(let q=d;q<=M&&q<re;q++)a[q]!==Fe&&M++;C.right(T,M);return}if(["deleteContentBackward","deleteContentForward"].indexOf(F)!==-1){const re=e.reverseFillMask===!0?$===0?K.length>Y.length?1:0:Math.max(0,K.length-(K===r?0:Math.min(Y.length,S)+1))+1:$;T.setSelectionRange(re,re,"forward");return}if(e.reverseFillMask===!0)if(H===!0){const re=Math.max(0,K.length-(K===r?0:Math.min(Y.length,S+1)));re===1&&$===1?T.setSelectionRange(re,re,"forward"):C.rightReverse(T,re)}else{const re=K.length-S;T.setSelectionRange(re,re,"backward")}else if(H===!0){const re=Math.max(0,a.indexOf(Fe),Math.min(Y.length,$)-1);C.right(T,re)}else{const re=$-1;C.right(T,re)}});const Q=e.unmaskedValue===!0?B(K):K;String(e.modelValue)!==Q&&(e.modelValue!==null||Q!=="")&&o(Q,!0)}function E(V,L,F){const T=b(B(V.value));L=Math.max(0,a.indexOf(Fe),Math.min(T.length,L)),d=L,V.setSelectionRange(L,F,"forward")}const C={left(V,L){const F=a.slice(L-1).indexOf(Fe)===-1;let T=Math.max(0,L-1);for(;T>=0;T--)if(a[T]===Fe){L=T,F===!0&&L++;break}if(T<0&&a[L]!==void 0&&a[L]!==Fe)return C.right(V,0);L>=0&&V.setSelectionRange(L,L,"backward")},right(V,L){const F=V.value.length;let T=Math.min(F,L+1);for(;T<=F;T++)if(a[T]===Fe){L=T;break}else a[T-1]===Fe&&(L=T);if(T>F&&a[L-1]!==void 0&&a[L-1]!==Fe)return C.left(V,F);V.setSelectionRange(L,L,"forward")},leftReverse(V,L){const F=m(V.value.length);let T=Math.max(0,L-1);for(;T>=0;T--)if(F[T-1]===Fe){L=T;break}else if(F[T]===Fe&&(L=T,T===0))break;if(T<0&&F[L]!==void 0&&F[L]!==Fe)return C.rightReverse(V,0);L>=0&&V.setSelectionRange(L,L,"backward")},rightReverse(V,L){const F=V.value.length,T=m(F),$=T.slice(0,L+1).indexOf(Fe)===-1;let S=Math.min(F,L+1);for(;S<=F;S++)if(T[S-1]===Fe){L=S,L>0&&$===!0&&L--;break}if(S>F&&T[L-1]!==void 0&&T[L-1]!==Fe)return C.leftReverse(V,F);V.setSelectionRange(L,L,"forward")}};function _(V){t("click",V),c=void 0}function y(V){if(t("keydown",V),Fo(V)===!0||V.altKey===!0)return;const L=l.value,F=L.selectionStart,T=L.selectionEnd;if(V.shiftKey||(c=void 0),V.keyCode===37||V.keyCode===39){V.shiftKey&&c===void 0&&(c=L.selectionDirection==="forward"?F:T);const $=C[(V.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(V.preventDefault(),$(L,c===F?T:F),V.shiftKey){const S=L.selectionStart;L.setSelectionRange(Math.min(c,S),Math.max(c,S),"forward")}}else V.keyCode===8&&e.reverseFillMask!==!0&&F===T?(C.left(L,F),L.setSelectionRange(L.selectionStart,T,"backward")):V.keyCode===46&&e.reverseFillMask===!0&&F===T&&(C.rightReverse(L,T),L.setSelectionRange(F,L.selectionEnd,"forward"))}function b(V){if(V==null||V==="")return"";if(e.reverseFillMask===!0)return D(V);const L=i;let F=0,T="";for(let $=0;$<L.length;$++){const S=V[F],I=L[$];if(typeof I=="string")T+=I,S===I&&F++;else if(S!==void 0&&I.regex.test(S))T+=I.transform!==void 0?I.transform(S):S,F++;else return T}return T}function D(V){const L=i,F=a.indexOf(Fe);let T=V.length-1,$="";for(let S=L.length-1;S>=0&&T!==-1;S--){const I=L[S];let Y=V[T];if(typeof I=="string")$=I+$,Y===I&&T--;else if(Y!==void 0&&I.regex.test(Y))do $=(I.transform!==void 0?I.transform(Y):Y)+$,T--,Y=V[T];while(F===S&&Y!==void 0&&I.regex.test(Y));else return $}return $}function B(V){return typeof V!="string"||s===void 0?typeof V=="number"?s(""+V):V:s(V)}function j(V){return r.length-V.length<=0?V:e.reverseFillMask===!0&&V.length!==0?r.slice(0,-V.length)+V:V+r.slice(V.length)}return{innerValue:f,hasMask:u,moveCursorForPaste:E,updateMaskValue:h,onMaskedKeydown:y,onMaskedClick:_}}const nn={name:String};function aa(e){return n.computed(()=>({type:"hidden",name:e.name,value:e.modelValue}))}function Kn(e={}){return(t,o,l)=>{t[o](n.h("input",{class:"hidden"+(l||""),...e.value}))}}function ra(e){return n.computed(()=>e.name||e.for)}function Ys(e,t){function o(){const l=e.modelValue;try{const a="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(l)===l&&("length"in l?Array.from(l):[l]).forEach(r=>{a.items.add(r)}),{files:a.files}}catch{return{files:void 0}}}return n.computed(()=>{if(e.type==="file")return o()})}const Ks=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Ws=/[\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,Qs=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Xs=/[a-z0-9_ -]$/i;function ia(e){return function(o){if(o.type==="compositionend"||o.type==="change"){if(o.target.qComposing!==!0)return;o.target.qComposing=!1,e(o)}else o.type==="compositionupdate"&&o.target.qComposing!==!0&&typeof o.data=="string"&&(je.is.firefox===!0?Xs.test(o.data)===!1:Ks.test(o.data)===!0||Ws.test(o.data)===!0||Qs.test(o.data)===!0)===!0&&(o.target.qComposing=!0)}}const It=Se({name:"QInput",inheritAttrs:!1,props:{...Un,...zs,...nn,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:[...Ao,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:o}){const{proxy:l}=n.getCurrentInstance(),{$q:a}=l,r={};let i=NaN,s,d,c=null,u;const f=n.ref(null),p=ra(e),{innerValue:v,hasMask:m,moveCursorForPaste:x,updateMaskValue:h,onMaskedKeydown:E,onMaskedClick:C}=Us(e,t,Y,f),_=Ys(e),y=n.computed(()=>xn(v.value)),b=ia(S),D=Do({changeEvent:!0}),B=n.computed(()=>e.type==="textarea"||e.autogrow===!0),j=n.computed(()=>B.value===!0||["text","search","url","tel","password"].includes(e.type)),V=n.computed(()=>{const q={...D.splitAttrs.listeners.value,onInput:S,onPaste:$,onChange:H,onBlur:Q,onFocus:rt};return q.onCompositionstart=q.onCompositionupdate=q.onCompositionend=b,m.value===!0&&(q.onKeydown=E,q.onClick=C),e.autogrow===!0&&(q.onAnimationend=I),q}),L=n.computed(()=>{const q={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:p.value,...D.splitAttrs.attributes.value,id:D.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return B.value===!1&&(q.type=e.type),e.autogrow===!0&&(q.rows=1),q});n.watch(()=>e.type,()=>{f.value&&(f.value.value=e.modelValue)}),n.watch(()=>e.modelValue,q=>{if(m.value===!0){if(d===!0&&(d=!1,String(q)===i))return;h(q)}else v.value!==q&&(v.value=q,e.type==="number"&&r.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete r.value));e.autogrow===!0&&n.nextTick(K)}),n.watch(()=>e.autogrow,q=>{q===!0?n.nextTick(K):f.value!==null&&o.rows>0&&(f.value.style.height="auto")}),n.watch(()=>e.dense,()=>{e.autogrow===!0&&n.nextTick(K)});function F(){zn(()=>{const q=document.activeElement;f.value!==null&&f.value!==q&&(q===null||q.id!==D.targetUid.value)&&f.value.focus({preventScroll:!0})})}function T(){var q;(q=f.value)==null||q.select()}function $(q){if(m.value===!0&&e.reverseFillMask!==!0){const J=q.target;x(J,J.selectionStart,J.selectionEnd)}t("paste",q)}function S(q){if(!q||!q.target)return;if(e.type==="file"){t("update:modelValue",q.target.files);return}const J=q.target.value;if(q.target.qComposing===!0){r.value=J;return}if(m.value===!0)h(J,!1,q.inputType);else if(Y(J),j.value===!0&&q.target===document.activeElement){const{selectionStart:N,selectionEnd:X}=q.target;N!==void 0&&X!==void 0&&n.nextTick(()=>{q.target===document.activeElement&&J.indexOf(q.target.value)===0&&q.target.setSelectionRange(N,X)})}e.autogrow===!0&&K()}function I(q){t("animationend",q),K()}function Y(q,J){u=()=>{c=null,e.type!=="number"&&r.hasOwnProperty("value")===!0&&delete r.value,e.modelValue!==q&&i!==q&&(i=q,J===!0&&(d=!0),t("update:modelValue",q),n.nextTick(()=>{i===q&&(i=NaN)})),u=void 0},e.type==="number"&&(s=!0,r.value=q),e.debounce!==void 0?(c!==null&&clearTimeout(c),r.value=q,c=setTimeout(u,e.debounce)):u()}function K(){requestAnimationFrame(()=>{const q=f.value;if(q!==null){const J=q.parentNode.style,{scrollTop:N}=q,{overflowY:X,maxHeight:G}=a.platform.is.firefox===!0?{}:window.getComputedStyle(q),ne=X!==void 0&&X!=="scroll";ne===!0&&(q.style.overflowY="hidden"),J.marginBottom=q.scrollHeight-1+"px",q.style.height="1px",q.style.height=q.scrollHeight+"px",ne===!0&&(q.style.overflowY=parseInt(G,10)<q.scrollHeight?"auto":"hidden"),J.marginBottom="",q.scrollTop=N}})}function H(q){b(q),c!==null&&(clearTimeout(c),c=null),u==null||u(),t("change",q.target.value)}function Q(q){q!==void 0&&rt(q),c!==null&&(clearTimeout(c),c=null),u==null||u(),s=!1,d=!1,delete r.value,e.type!=="file"&&setTimeout(()=>{f.value!==null&&(f.value.value=v.value!==void 0?v.value:"")})}function re(){return r.hasOwnProperty("value")===!0?r.value:v.value!==void 0?v.value:""}n.onBeforeUnmount(()=>{Q()}),n.onMounted(()=>{e.autogrow===!0&&K()}),Object.assign(D,{innerValue:v,fieldClass:n.computed(()=>`q-${B.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:n.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:f,emitValue:Y,hasValue:y,floatingLabel:n.computed(()=>y.value===!0&&(e.type!=="number"||isNaN(v.value)===!1)||xn(e.displayValue)),getControl:()=>n.h(B.value===!0?"textarea":"input",{ref:f,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...L.value,...V.value,...e.type!=="file"?{value:re()}:_.value}),getShadowControl:()=>n.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(B.value===!0?"":" text-no-wrap")},[n.h("span",{class:"invisible"},re()),n.h("span",e.shadowText)])});const M=$o(D);return Object.assign(l,{focus:F,select:T,getNativeElement:()=>f.value}),ut(l,"nativeEl",()=>f.value),M}});function No(e,t){const o=e.style;for(const l in t)o[l]=t[l]}function Js(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=n.unref(e);if(t)return t.$el||t}function sa(e,t){if(e==null||e.contains(t)===!0)return!0;for(let o=e.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(t))return!0;return!1}function Zs(e,t=250){let o=!1,l;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},t),l=e.apply(this,arguments)),l}}function ua(e,t,o,l){o.modifiers.stop===!0&&rt(e);const a=o.modifiers.color;let r=o.modifiers.center;r=r===!0||l===!0;const i=document.createElement("span"),s=document.createElement("span"),d=tn(e),{left:c,top:u,width:f,height:p}=t.getBoundingClientRect(),v=Math.sqrt(f*f+p*p),m=v/2,x=`${(f-v)/2}px`,h=r?x:`${d.left-c-m}px`,E=`${(p-v)/2}px`,C=r?E:`${d.top-u-m}px`;s.className="q-ripple__inner",No(s,{height:`${v}px`,width:`${v}px`,transform:`translate3d(${h},${C},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${a?" text-"+a:""}`,i.setAttribute("dir","ltr"),i.appendChild(s),t.appendChild(i);const _=()=>{i.remove(),clearTimeout(y)};o.abort.push(_);let y=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${x},${E},0) scale3d(1,1,1)`,s.style.opacity=.2,y=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,y=setTimeout(()=>{i.remove(),o.abort.splice(o.abort.indexOf(_),1)},275)},250)},50)}function ca(e,{modifiers:t,value:o,arg:l}){const a=Object.assign({},e.cfg.ripple,t,o);e.modifiers={early:a.early===!0,stop:a.stop===!0,center:a.center===!0,color:a.color||l,keyCodes:[].concat(a.keyCodes||13)}}const da=Eo({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;const l={cfg:o,enabled:t.value!==!1,modifiers:{},abort:[],start(a){l.enabled===!0&&a.qSkipRipple!==!0&&a.type===(l.modifiers.early===!0?"pointerdown":"click")&&ua(a,e,l,a.qKeyEvent===!0)},keystart:Zs(a=>{l.enabled===!0&&a.qSkipRipple!==!0&&xt(a,l.modifiers.keyCodes)===!0&&a.type===`key${l.modifiers.early===!0?"down":"up"}`&&ua(a,e,l,!0)},300)};ca(l,t),e.__qripple=l,Ft(l,"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 o=e.__qripple;o!==void 0&&(o.enabled=t.value!==!1,o.enabled===!0&&Object(t.value)===t.value&&ca(o,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(o=>{o()}),Sn(t,"main"),delete e._qripple)}}),fa={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Gs=Object.keys(fa),eu={align:{type:String,validator:e=>Gs.includes(e)}};function tu(e){return n.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${fa[t]}`})}function Wn(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 Io(e){return e.appContext.config.globalProperties.$router!==void 0}function jo(e){return e.isUnmounted===!0||e.isDeactivated===!0}function ma(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function ha(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nu(e,t){for(const o in t){const l=t[o],a=e[o];if(typeof l=="string"){if(l!==a)return!1}else if(Array.isArray(a)===!1||a.length!==l.length||l.some((r,i)=>r!==a[i]))return!1}return!0}function ga(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((o,l)=>o===t[l]):e.length===1&&e[0]===t}function ou(e,t){return Array.isArray(e)===!0?ga(e,t):Array.isArray(t)===!0?ga(t,e):e===t}function lu(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(ou(e[o],t[o])===!1)return!1;return!0}const va={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},au={...va,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function pa({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const o=n.getCurrentInstance(),{props:l,proxy:a,emit:r}=o,i=Io(o),s=n.computed(()=>l.disable!==!0&&l.href!==void 0),d=t===!0?n.computed(()=>i===!0&&l.disable!==!0&&s.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""):n.computed(()=>i===!0&&s.value!==!0&&l.to!==void 0&&l.to!==null&&l.to!==""),c=n.computed(()=>d.value===!0?C(l.to):null),u=n.computed(()=>c.value!==null),f=n.computed(()=>s.value===!0||u.value===!0),p=n.computed(()=>l.type==="a"||f.value===!0?"a":l.tag||e||"div"),v=n.computed(()=>s.value===!0?{href:l.href,target:l.target}:u.value===!0?{href:c.value.href,target:l.target}:{}),m=n.computed(()=>{if(u.value===!1)return-1;const{matched:b}=c.value,{length:D}=b,B=b[D-1];if(B===void 0)return-1;const j=a.$route.matched;if(j.length===0)return-1;const V=j.findIndex(ha.bind(null,B));if(V!==-1)return V;const L=ma(b[D-2]);return D>1&&ma(B)===L&&j[j.length-1].path!==L?j.findIndex(ha.bind(null,b[D-2])):V}),x=n.computed(()=>u.value===!0&&m.value!==-1&&nu(a.$route.params,c.value.params)),h=n.computed(()=>x.value===!0&&m.value===a.$route.matched.length-1&&lu(a.$route.params,c.value.params)),E=n.computed(()=>u.value===!0?h.value===!0?` ${l.exactActiveClass} ${l.activeClass}`:l.exact===!0?"":x.value===!0?` ${l.activeClass}`:"":"");function C(b){try{return a.$router.resolve(b)}catch{}return null}function _(b,{returnRouterError:D,to:B=l.to,replace:j=l.replace}={}){if(l.disable===!0)return b.preventDefault(),Promise.resolve(!1);if(b.metaKey||b.altKey||b.ctrlKey||b.shiftKey||b.button!==void 0&&b.button!==0||l.target==="_blank")return Promise.resolve(!1);b.preventDefault();const V=a.$router[j===!0?"replace":"push"](B);return D===!0?V:V.then(()=>{}).catch(()=>{})}function y(b){if(u.value===!0){const D=B=>_(b,B);r("click",b,D),b.defaultPrevented!==!0&&D()}else r("click",b)}return{hasRouterLink:u,hasHrefLink:s,hasLink:f,linkTag:p,resolvedLink:c,linkIsActive:x,linkIsExactActive:h,linkClass:E,linkAttrs:v,getLink:C,navigateToRouterLink:_,navigateOnClick:y}}const Qn={none:0,xs:4,sm:8,md:16,lg:24,xl:32},ru={xs:8,sm:10,md:14,lg:20,xl:24},iu=["button","submit","reset"],su=/[^\s]\/[^\s]/,ba=["flat","outline","push","unelevated"];function ya(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}const uu={...{...Gt,...va,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...ba.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:{...eu.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},round:Boolean};function cu(e){const t=en(e,ru),o=tu(e),{hasRouterLink:l,hasLink:a,linkTag:r,linkAttrs:i,navigateOnClick:s}=pa({fallbackTag:"button"}),d=n.computed(()=>{const h=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},h,{padding:e.padding.split(/\s+/).map(E=>E in Qn?Qn[E]+"px":E).join(" "),minWidth:"0",minHeight:"0"}