UNPKG

quasar

Version:

Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time

6 lines 539 kB
/*! * Quasar Framework v2.11.9 * (c) 2015-present Razvan Stoenescu * Released under the MIT License. */ import{ref,reactive,createApp,markRaw,defineComponent,getCurrentInstance,computed,onMounted,onBeforeUnmount,h,withDirectives,unref,Transition,nextTick,watch,onUnmounted,Teleport,onDeactivated,KeepAlive,onBeforeMount,toRaw,provide,onActivated,inject,onBeforeUpdate,shallowReactive,vShow,onUpdated,isRef,TransitionGroup}from"vue";function injectProp(e,t,o,n){return Object.defineProperty(e,t,{get:o,set:n,enumerable:!0}),e}function injectMultipleProps(e,t){for(const o in t)injectProp(e,o,t[o]);return e}const isRuntimeSsrPreHydration=ref(!1);let iosCorrection;function getMatch(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[2]||o[4]||"0",versionNumber:o[4]||o[2]||"0",platform:t[0]||""}}function getPlatformMatch(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 hasTouch="ontouchstart"in window||window.navigator.maxTouchPoints>0;function applyIosCorrection(e){iosCorrection={is:{...e}},delete e.mac,delete e.desktop;const t=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:t,[t]:!0})}function getPlatform(e){const t=e.toLowerCase(),o=getPlatformMatch(t),n=getMatch(t,o),a={};n.browser&&(a[n.browser]=!0,a.version=n.version,a.versionNumber=parseInt(n.versionNumber,10)),n.platform&&(a[n.platform]=!0);const l=a.android||a.ios||a.bb||a.blackberry||a.ipad||a.iphone||a.ipod||a.kindle||a.playbook||a.silk||a["windows phone"];return!0===l||t.indexOf("mobile")>-1?(a.mobile=!0,a.edga||a.edgios?(a.edge=!0,n.browser="edge"):a.crios?(a.chrome=!0,n.browser="chrome"):a.fxios&&(a.firefox=!0,n.browser="firefox")):a.desktop=!0,(a.ipod||a.ipad||a.iphone)&&(a.ios=!0),a["windows phone"]&&(a.winphone=!0,delete a["windows phone"]),(a.chrome||a.opr||a.safari||a.vivaldi||!0===a.mobile&&!0!==a.ios&&!0!==l)&&(a.webkit=!0),a.edg&&(n.browser="edgechromium",a.edgeChromium=!0),(a.safari&&a.blackberry||a.bb)&&(n.browser="blackberry",a.blackberry=!0),a.safari&&a.playbook&&(n.browser="playbook",a.playbook=!0),a.opr&&(n.browser="opera",a.opera=!0),a.safari&&a.android&&(n.browser="android",a.android=!0),a.safari&&a.kindle&&(n.browser="kindle",a.kindle=!0),a.safari&&a.silk&&(n.browser="silk",a.silk=!0),a.vivaldi&&(n.browser="vivaldi",a.vivaldi=!0),a.name=n.browser,a.platform=n.platform,t.indexOf("electron")>-1?a.electron=!0:document.location.href.indexOf("-extension://")>-1?a.bex=!0:(void 0!==window.Capacitor?(a.capacitor=!0,a.nativeMobile=!0,a.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(a.cordova=!0,a.nativeMobile=!0,a.nativeMobileWrapper="cordova"),!0===hasTouch&&!0===a.mac&&(!0===a.desktop&&!0===a.safari||!0===a.nativeMobile&&!0!==a.android&&!0!==a.ios&&!0!==a.ipad)&&applyIosCorrection(a)),a}const userAgent=navigator.userAgent||navigator.vendor||window.opera,ssrClient={has:{touch:!1,webStorage:!1},within:{iframe:!1}},client={userAgent:userAgent,is:getPlatform(userAgent),has:{touch:hasTouch},within:{iframe:window.self!==window.top}},Platform={install(e){const{$q:t}=e;!0===isRuntimeSsrPreHydration.value?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,client),isRuntimeSsrPreHydration.value=!1,iosCorrection=void 0}),t.platform=reactive(this)):t.platform=this}};{let e;injectProp(client.has,"webStorage",()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(e){}return e=!1,!1}),!0===client.is.ios&&window.navigator.vendor.toLowerCase().indexOf("apple"),!0===isRuntimeSsrPreHydration.value?Object.assign(Platform,client,iosCorrection,ssrClient):Object.assign(Platform,client)}var defineReactivePlugin=(e,t)=>{const o=reactive(e);for(const n in e)injectProp(t,n,()=>o[n],e=>{o[n]=e});return t};const listenOpts={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(listenOpts,{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(e){}function noop(){}function leftClick(e){return 0===e.button}function middleClick(e){return 1===e.button}function rightClick(e){return 2===e.button}function position(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 getEventPath(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let o=e.target;while(o){if(t.push(o),"HTML"===o.tagName)return t.push(document),t.push(window),t;o=o.parentElement}}const LINE_HEIGHT=40,PAGE_HEIGHT=800;function getMouseWheelDistance(e){let t=e.deltaX,o=e.deltaY;if((t||o)&&e.deltaMode){const n=1===e.deltaMode?LINE_HEIGHT:PAGE_HEIGHT;t*=n,o*=n}return e.shiftKey&&!t&&([o,t]=[t,o]),{x:t,y:o}}function stop(e){e.stopPropagation()}function prevent(e){!1!==e.cancelable&&e.preventDefault()}function stopAndPrevent(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function preventDraggable(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const o=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",prevent,listenOpts.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",prevent,listenOpts.notPassiveCapture)};e.querySelectorAll("a, img").forEach(o)}function addEvt(e,t,o){const n=`__q_${t}_evt`;e[n]=void 0!==e[n]?e[n].concat(o):o,o.forEach(t=>{t[0].addEventListener(t[1],e[t[2]],listenOpts[t[3]])})}function cleanEvt(e,t){const o=`__q_${t}_evt`;void 0!==e[o]&&(e[o].forEach(t=>{t[0].removeEventListener(t[1],e[t[2]],listenOpts[t[3]])}),e[o]=void 0)}var event={listenOpts:listenOpts,leftClick:leftClick,middleClick:middleClick,rightClick:rightClick,position:position,getEventPath:getEventPath,getMouseWheelDistance:getMouseWheelDistance,stop:stop,prevent:prevent,stopAndPrevent:stopAndPrevent,preventDraggable:preventDraggable};function debounce(e,t=250,o){let n=null;function a(){const a=arguments,l=()=>{n=null,!0!==o&&e.apply(this,a)};null!==n?clearTimeout(n):!0===o&&e.apply(this,a),n=setTimeout(l,t)}return a.cancel=(()=>{null!==n&&clearTimeout(n)}),a}const SIZE_LIST=["sm","md","lg","xl"],{passive:passive$4}=listenOpts;var Screen=defineReactivePlugin({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:noop,setDebounce:noop,install({$q:e,onSSRHydrated:t}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const{visualViewport:o}=window,n=o||window,a=document.scrollingElement||document.documentElement,l=void 0===o||!0===client.is.mobile?()=>[Math.max(window.innerWidth,a.clientWidth),Math.max(window.innerHeight,a.clientHeight)]:()=>[o.width*o.scale+window.innerWidth-a.clientWidth,o.height*o.scale+window.innerHeight-a.clientHeight],i=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=(e=>{const[t,o]=l();if(o!==this.height&&(this.height=o),t!==this.width)this.width=t;else if(!0!==e)return;let n=this.sizes;this.gt.xs=t>=n.sm,this.gt.sm=t>=n.md,this.gt.md=t>=n.lg,this.gt.lg=t>=n.xl,this.lt.sm=t<n.sm,this.lt.md=t<n.md,this.lt.lg=t<n.lg,this.lt.xl=t<n.xl,this.xs=this.lt.sm,this.sm=!0===this.gt.xs&&!0===this.lt.md,this.md=!0===this.gt.sm&&!0===this.lt.lg,this.lg=!0===this.gt.md&&!0===this.lt.xl,this.xl=this.gt.lg,n=(!0===this.xs?"xs":!0===this.sm&&"sm")||!0===this.md&&"md"||!0===this.lg&&"lg"||"xl",n!==this.name&&(!0===i&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${n}`)),this.name=n)});let r,s={},u=16;this.setSizes=(e=>{SIZE_LIST.forEach(t=>{void 0!==e[t]&&(s[t]=e[t])})}),this.setDebounce=(e=>{u=e});const c=()=>{const e=getComputedStyle(document.body);e.getPropertyValue("--q-size-sm")&&SIZE_LIST.forEach(t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)}),this.setSizes=(e=>{SIZE_LIST.forEach(t=>{e[t]&&(this.sizes[t]=e[t])}),this.__update(!0)}),this.setDebounce=(e=>{void 0!==r&&n.removeEventListener("resize",r,passive$4),r=e>0?debounce(this.__update,e):this.__update,n.addEventListener("resize",r,passive$4)}),this.setDebounce(u),Object.keys(s).length>0?(this.setSizes(s),s=void 0):this.__update(),!0===i&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===isRuntimeSsrPreHydration.value?t.push(c):c()}});const Plugin$9=defineReactivePlugin({isActive:!1,mode:!1},{__media:void 0,set(e){Plugin$9.mode=e,"auto"===e?(void 0===Plugin$9.__media&&(Plugin$9.__media=window.matchMedia("(prefers-color-scheme: dark)"),Plugin$9.__updateMedia=(()=>{Plugin$9.set("auto")}),Plugin$9.__media.addListener(Plugin$9.__updateMedia)),e=Plugin$9.__media.matches):void 0!==Plugin$9.__media&&(Plugin$9.__media.removeListener(Plugin$9.__updateMedia),Plugin$9.__media=void 0),Plugin$9.isActive=!0===e,document.body.classList.remove(`body--${!0===e?"light":"dark"}`),document.body.classList.add(`body--${!0===e?"dark":"light"}`)},toggle(){Plugin$9.set(!1===Plugin$9.isActive)},install({$q:e,onSSRHydrated:t,ssrContext:o}){const{dark:n}=e.config;if(e.dark=this,!0===this.__installed&&void 0===n)return;this.isActive=!0===n;const a=void 0!==n&&n;if(!0===isRuntimeSsrPreHydration.value){const e=e=>{this.__fromSSR=e},o=this.set;this.set=e,e(a),t.push(()=>{this.set=o,this.set(this.__fromSSR)})}else this.set(a)}}),getTrue=()=>!0;function filterInvalidPath(e){return"string"===typeof e&&""!==e&&"/"!==e&&"#/"!==e}function normalizeExitPath(e){return!0===e.startsWith("#")&&(e=e.substring(1)),!1===e.startsWith("/")&&(e="/"+e),!0===e.endsWith("/")&&(e=e.substring(0,e.length-1)),"#"+e}function getShouldExitFn(e){if(!1===e.backButtonExit)return()=>!1;if("*"===e.backButtonExit)return getTrue;const t=["#/"];return!0===Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(filterInvalidPath).map(normalizeExitPath)),()=>t.includes(window.location.hash)}var History={__history:[],add:noop,remove:noop,install({$q:e}){if(!0===this.__installed)return;const{cordova:t,capacitor:o}=client.is;if(!0!==t&&!0!==o)return;const n=e.config[!0===t?"cordova":"capacitor"];if(void 0!==n&&!1===n.backButton)return;if(!0===o&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=(e=>{void 0===e.condition&&(e.condition=getTrue),this.__history.push(e)}),this.remove=(e=>{const t=this.__history.indexOf(e);t>=0&&this.__history.splice(t,1)});const a=getShouldExitFn(Object.assign({backButtonExit:!0},n)),l=()=>{if(this.__history.length){const e=this.__history[this.__history.length-1];!0===e.condition()&&(this.__history.pop(),e.handler())}else!0===a()?navigator.app.exitApp():window.history.back()};!0===t?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",l,!1)}):window.Capacitor.Plugins.App.addListener("backButton",l)}},defaultLang={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,o)=>e+"-"+t+" of "+o,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function getLocale(){const e=!0===Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages[0]:navigator.language;if("string"===typeof e)return e.split(/[-_]/).map((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase()).join("-")}const Plugin$8=defineReactivePlugin({__langPack:{}},{getLocale:getLocale,set(e=defaultLang,t){const o={...e,rtl:!0===e.rtl,getLocale:getLocale};if(o.set=Plugin$8.set,void 0===Plugin$8.__langConfig||!0!==Plugin$8.__langConfig.noHtmlAttrs){const e=document.documentElement;e.setAttribute("dir",!0===o.rtl?"rtl":"ltr"),e.setAttribute("lang",o.isoName)}Object.assign(Plugin$8.__langPack,o),Plugin$8.props=o,Plugin$8.isoName=o.isoName,Plugin$8.nativeName=o.nativeName},install({$q:e,lang:t,ssrContext:o}){e.lang=Plugin$8.__langPack,Plugin$8.__langConfig=e.config.lang,!0===this.__installed?void 0!==t&&this.set(t):this.set(t||defaultLang)}});function setCssVar(e,t,o=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if("string"!==typeof t)throw new TypeError("Expected a string as value");if(!(o instanceof Element))throw new TypeError("Expected a DOM element");o.style.setProperty(`--q-${e}`,t)}let lastKeyCompositionStatus=!1;function onKeyDownComposition(e){lastKeyCompositionStatus=!0===e.isComposing}function shouldIgnoreKey(e){return!0===lastKeyCompositionStatus||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function isKeyCode(e,t){return!0!==shouldIgnoreKey(e)&&[].concat(t).includes(e.keyCode)}function getMobilePlatform(e){return!0===e.ios?"ios":!0===e.android?"android":void 0}function getBodyClasses({is:e,has:t,within:o},n){const a=[!0===e.desktop?"desktop":"mobile",`${!1===t.touch?"no-":""}touch`];if(!0===e.mobile){const t=getMobilePlatform(e);void 0!==t&&a.push("platform-"+t)}if(!0===e.nativeMobile){const t=e.nativeMobileWrapper;a.push(t),a.push("native-mobile"),!0!==e.ios||void 0!==n[t]&&!1===n[t].iosStatusBarPadding||a.push("q-ios-padding")}else!0===e.electron?a.push("electron"):!0===e.bex&&a.push("bex");return!0===o.iframe&&a.push("within-iframe"),a}function applyClientSsrCorrections(){const{is:e}=client,t=document.body.className,o=new Set(t.replace(/ {2}/g," ").split(" "));if(void 0!==iosCorrection)o.delete("desktop"),o.add("platform-ios"),o.add("mobile");else if(!0!==e.nativeMobile&&!0!==e.electron&&!0!==e.bex)if(!0===e.desktop)o.delete("mobile"),o.delete("platform-ios"),o.delete("platform-android"),o.add("desktop");else if(!0===e.mobile){o.delete("desktop"),o.add("mobile");const t=getMobilePlatform(e);void 0!==t?(o.add(`platform-${t}`),o.delete(`platform-${"ios"===t?"android":"ios"}`)):(o.delete("platform-ios"),o.delete("platform-android"))}!0===client.has.touch&&(o.delete("no-touch"),o.add("touch")),!0===client.within.iframe&&o.add("within-iframe");const n=Array.from(o).join(" ");t!==n&&(document.body.className=n)}function setColors(e){for(const t in e)setCssVar(t,e[t])}var Body={install(e){if(!0!==this.__installed){if(!0===isRuntimeSsrPreHydration.value)applyClientSsrCorrections();else{const{$q:t}=e;void 0!==t.config.brand&&setColors(t.config.brand);const o=getBodyClasses(client,t.config);document.body.classList.add.apply(document.body.classList,o)}!0===client.is.ios&&document.body.addEventListener("touchstart",noop),window.addEventListener("keydown",onKeyDownComposition,!0)}}},materialIcons={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}};const Plugin$7=defineReactivePlugin({iconMapFn:null,__icons:{}},{set(e,t){const o={...e,rtl:!0===e.rtl};o.set=Plugin$7.set,Object.assign(Plugin$7.__icons,o)},install({$q:e,iconSet:t,ssrContext:o}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,injectProp(e,"iconMapFn",()=>this.iconMapFn,e=>{this.iconMapFn=e}),!0===this.__installed?void 0!==t&&this.set(t):this.set(t||materialIcons)}}),quasarKey="_q_",timelineKey="_q_t_",stepperKey="_q_s_",layoutKey="_q_l_",pageContainerKey="_q_pc_",fabKey="_q_f_",formKey="_q_fo_",tabsKey="_q_tabs_",uploaderKey="_q_u_",emptyRenderFn=()=>{},globalConfig={};let globalConfigIsFrozen=!1;function freezeGlobalConfig(){globalConfigIsFrozen=!0}function isDeepEqual(e,t){if(e===t)return!0;if(null!==e&&null!==t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let o,n;if(e.constructor===Array){if(o=e.length,o!==t.length)return!1;for(n=o;0!==n--;)if(!0!==isDeepEqual(e[n],t[n]))return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let o=e.entries();n=o.next();while(!0!==n.done){if(!0!==t.has(n.value[0]))return!1;n=o.next()}o=e.entries(),n=o.next();while(!0!==n.done){if(!0!==isDeepEqual(n.value[1],t.get(n.value[0])))return!1;n=o.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const o=e.entries();n=o.next();while(!0!==n.done){if(!0!==t.has(n.value[0]))return!1;n=o.next()}return!0}if(null!=e.buffer&&e.buffer.constructor===ArrayBuffer){if(o=e.length,o!==t.length)return!1;for(n=o;0!==n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const a=Object.keys(e).filter(t=>void 0!==e[t]);if(o=a.length,o!==Object.keys(t).filter(e=>void 0!==t[e]).length)return!1;for(n=o;0!==n--;){const o=a[n];if(!0!==isDeepEqual(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function isObject(e){return null!==e&&"object"===typeof e&&!0!==Array.isArray(e)}function isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}function isRegexp(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function isNumber(e){return"number"===typeof e&&isFinite(e)}var is={deepEqual:isDeepEqual,object:isObject,date:isDate,regexp:isRegexp,number:isNumber};const autoInstalledPlugins=[Platform,Body,Plugin$9,Screen,History,Plugin$8,Plugin$7];function createChildApp(e,t){const o=createApp(e);o.config.globalProperties=t.config.globalProperties;const{reload:n,...a}=t._context;return Object.assign(o._context,a),o}function installPlugins(e,t){t.forEach(t=>{t.install(e),t.__installed=!0})}function prepareApp(e,t,o){e.config.globalProperties.$q=o.$q,e.provide(quasarKey,o.$q),installPlugins(o,autoInstalledPlugins),void 0!==t.components&&Object.values(t.components).forEach(t=>{!0===isObject(t)&&void 0!==t.name&&e.component(t.name,t)}),void 0!==t.directives&&Object.values(t.directives).forEach(t=>{!0===isObject(t)&&void 0!==t.name&&e.directive(t.name,t)}),void 0!==t.plugins&&installPlugins(o,Object.values(t.plugins).filter(e=>"function"===typeof e.install&&!1===autoInstalledPlugins.includes(e))),!0===isRuntimeSsrPreHydration.value&&(o.$q.onSSRHydrated=(()=>{o.onSSRHydrated.forEach(e=>{e()}),o.$q.onSSRHydrated=(()=>{})}))}var installQuasar=function(e,t={}){const o={version:"2.11.9"};!1===globalConfigIsFrozen?(void 0!==t.config&&Object.assign(globalConfig,t.config),o.config={...globalConfig},freezeGlobalConfig()):o.config=t.config||{},prepareApp(e,t,{parentApp:e,$q:o,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})};const createComponent=e=>markRaw(defineComponent(e)),createDirective=e=>markRaw(e),units=["B","KB","MB","GB","TB","PB"];function humanStorageSize(e){let t=0;while(parseInt(e,10)>=1024&&t<units.length-1)e/=1024,++t;return`${e.toFixed(1)}${units[t]}`}function capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}function between(e,t,o){return o<=t?t:Math.min(o,Math.max(t,e))}function normalizeToInterval(e,t,o){if(o<=t)return t;const n=o-t+1;let a=t+(e-t)%n;return a<t&&(a=n+a),0===a?0:a}function pad(e,t=2,o="0"){if(void 0===e||null===e)return e;const n=""+e;return n.length>=t?n:new Array(t-n.length+1).join(o)+n}var format={humanStorageSize:humanStorageSize,capitalize:capitalize,between:between,normalizeToInterval:normalizeToInterval,pad:pad};const xhr=XMLHttpRequest,open=xhr.prototype.open,positionValues=["top","right","bottom","left"];let stack=[],highjackCount=0;function translate({p:e,pos:t,active:o,horiz:n,reverse:a,dir:l}){let i=1,r=1;return!0===n?(!0===a&&(i=-1),"bottom"===t&&(r=-1),{transform:`translate3d(${i*(e-100)}%,${o?0:-200*r}%,0)`}):(!0===a&&(r=-1),"right"===t&&(i=-1),{transform:`translate3d(${o?0:l*i*-200}%,${r*(e-100)}%,0)`})}function inc(e,t){return"number"!==typeof t&&(t=e<25?3*Math.random()+3:e<65?3*Math.random():e<85?2*Math.random():e<99?.6:0),between(e+t,0,100)}function highjackAjax(e){highjackCount++,stack.push(e),highjackCount>1||(xhr.prototype.open=function(e,t){const o=[],n=()=>{stack.forEach(e=>{null!==e.hijackFilter.value&&!0!==e.hijackFilter.value(t)||(e.start(),o.push(e.stop))})},a=()=>{o.forEach(e=>{e()})};this.addEventListener("loadstart",n,{once:!0}),this.addEventListener("loadend",a,{once:!0}),open.apply(this,arguments)})}function restoreAjax(e){stack=stack.filter(t=>t.start!==e),highjackCount=Math.max(0,highjackCount-1),0===highjackCount&&(xhr.prototype.open=open)}var QAjaxBar=createComponent({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:e=>positionValues.includes(e)},size:{type:String,default:"2px"},color:String,skipHijack:Boolean,reverse:Boolean,hijackFilter:Function},emits:["start","stop"],setup(e,{emit:t}){const{proxy:o}=getCurrentInstance(),n=ref(0),a=ref(!1),l=ref(!0);let i,r=0,s=null;const u=computed(()=>`q-loading-bar q-loading-bar--${e.position}`+(void 0!==e.color?` bg-${e.color}`:"")+(!0===l.value?"":" no-transition")),c=computed(()=>"top"===e.position||"bottom"===e.position),d=computed(()=>!0===c.value?"height":"width"),p=computed(()=>{const t=a.value,l=translate({p:n.value,pos:e.position,active:t,horiz:c.value,reverse:!0===o.$q.lang.rtl&&["top","bottom"].includes(e.position)?!1===e.reverse:e.reverse,dir:!0===o.$q.lang.rtl?-1:1});return l[d.value]=e.size,l.opacity=t?1:0,l}),v=computed(()=>!0===a.value?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n.value}:{"aria-hidden":"true"});function m(e=300){const o=i;return i=Math.max(0,e)||0,r++,r>1?(0===o&&e>0?b():null!==s&&o>0&&e<=0&&(clearTimeout(s),s=null),r):(null!==s&&clearTimeout(s),t("start"),n.value=0,s=setTimeout(()=>{s=null,l.value=!0,e>0&&b()},!0===a.value?500:1),!0!==a.value&&(a.value=!0,l.value=!1),r)}function f(e){return r>0&&(n.value=inc(n.value,e)),r}function g(){if(r=Math.max(0,r-1),r>0)return r;null!==s&&(clearTimeout(s),s=null),t("stop");const e=()=>{l.value=!0,n.value=100,s=setTimeout(()=>{s=null,a.value=!1},1e3)};return 0===n.value?s=setTimeout(e,1):e(),r}function b(){n.value<100&&(s=setTimeout(()=>{s=null,f(),b()},i))}let y;return onMounted(()=>{!0!==e.skipHijack&&(y=!0,highjackAjax({start:m,stop:g,hijackFilter:computed(()=>e.hijackFilter||null)}))}),onBeforeUnmount(()=>{null!==s&&clearTimeout(s),!0===y&&restoreAjax(m)}),Object.assign(o,{start:m,stop:g,increment:f}),()=>h("div",{class:u.value,style:p.value,...v.value})}});const useSizeDefaults={xs:18,sm:24,md:32,lg:38,xl:46},useSizeProps={size:String};function useSize(e,t=useSizeDefaults){return computed(()=>void 0!==e.size?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function hSlot(e,t){return void 0!==e&&e()||t}function hUniqueSlot(e,t){if(void 0!==e){const t=e();if(void 0!==t&&null!==t)return t.slice()}return t}function hMergeSlot(e,t){return void 0!==e?t.concat(e()):t}function hMergeSlotSafely(e,t){return void 0===e?t:void 0!==t?t.concat(e()):e()}function hDir(e,t,o,n,a,l){t.key=n+a;const i=h(e,t,o);return!0===a?withDirectives(i,l()):i}const defaultViewBox="0 0 24 24",sameFn=e=>e,ionFn=e=>`ionicons ${e}`,libMap={"mdi-":e=>`mdi ${e}`,"icon-":sameFn,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":ionFn,"ion-ios":ionFn,"ion-logo":ionFn,"iconfont ":sameFn,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},matMap={o_:"-outlined",r_:"-round",s_:"-sharp"},symMap={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},libRE=new RegExp("^("+Object.keys(libMap).join("|")+")"),matRE=new RegExp("^("+Object.keys(matMap).join("|")+")"),symRE=new RegExp("^("+Object.keys(symMap).join("|")+")"),mRE=/^[Mm]\s?[-+]?\.?\d/,imgRE=/^img:/,svgUseRE=/^svguse:/,ionRE=/^ion-/,faRE=/^(fa-(solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var QIcon=createComponent({name:"QIcon",props:{...useSizeProps,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=getCurrentInstance(),n=useSize(e),a=computed(()=>"q-icon"+(!0===e.left?" on-left":"")+(!0===e.right?" on-right":"")+(void 0!==e.color?` text-${e.color}`:"")),l=computed(()=>{let t,n=e.name;if("none"===n||!n)return{none:!0};if(null!==o.iconMapFn){const e=o.iconMapFn(n);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls,content:void 0!==e.content?e.content:" "};if(n=e.icon,"none"===n||!n)return{none:!0}}}if(!0===mRE.test(n)){const[e,t=defaultViewBox]=n.split("|");return{svg:!0,viewBox:t,nodes:e.split("&&").map(e=>{const[t,o,n]=e.split("@@");return h("path",{style:o,d:t,transform:n})})}}if(!0===imgRE.test(n))return{img:!0,src:n.substring(4)};if(!0===svgUseRE.test(n)){const[e,t=defaultViewBox]=n.split("|");return{svguse:!0,src:e.substring(7),viewBox:t}}let a=" ";const l=n.match(libRE);if(null!==l)t=libMap[l[1]](n);else if(!0===faRE.test(n))t=n;else if(!0===ionRE.test(n))t=`ionicons ion-${!0===o.platform.is.ios?"ios":"md"}${n.substring(3)}`;else if(!0===symRE.test(n)){t="notranslate material-symbols";const e=n.match(symRE);null!==e&&(n=n.substring(6),t+=symMap[e[1]]),a=n}else{t="notranslate material-icons";const e=n.match(matRE);null!==e&&(n=n.substring(2),t+=matMap[e[1]]),a=n}return{cls:t,content:a}});return()=>{const o={class:a.value,style:n.value,"aria-hidden":"true",role:"presentation"};return!0===l.value.none?h(e.tag,o,hSlot(t.default)):!0===l.value.img?h("span",o,hMergeSlot(t.default,[h("img",{src:l.value.src})])):!0===l.value.svg?h("span",o,hMergeSlot(t.default,[h("svg",{viewBox:l.value.viewBox||"0 0 24 24"},l.value.nodes)])):!0===l.value.svguse?h("span",o,hMergeSlot(t.default,[h("svg",{viewBox:l.value.viewBox},[h("use",{"xlink:href":l.value.src})])])):(void 0!==l.value.cls&&(o.class+=" "+l.value.cls),h(e.tag,o,hMergeSlot(t.default,[l.value.content])))}}}),QAvatar=createComponent({name:"QAvatar",props:{...useSizeProps,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){const o=useSize(e),n=computed(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(!0===e.square?" q-avatar--square":!0===e.rounded?" rounded-borders":"")),a=computed(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const l=void 0!==e.icon?[h(QIcon,{name:e.icon})]:void 0;return h("div",{class:n.value,style:o.value},[h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:a.value},hMergeSlotSafely(t.default,l))])}}});const alignValues$3=["top","middle","bottom"];var QBadge=createComponent({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>alignValues$3.includes(e)}},setup(e,{slots:t}){const o=computed(()=>{return void 0!==e.align?{verticalAlign:e.align}:null}),n=computed(()=>{const t=!0===e.outline&&e.color||e.textColor;return"q-badge flex inline items-center no-wrap"+` q-badge--${!0===e.multiLine?"multi":"single"}-line`+(!0===e.outline?" q-badge--outline":void 0!==e.color?` bg-${e.color}`:"")+(void 0!==t?` text-${t}`:"")+(!0===e.floating?" q-badge--floating":"")+(!0===e.rounded?" q-badge--rounded":"")+(!0===e.transparent?" q-badge--transparent":"")});return()=>h("div",{class:n.value,style:o.value,role:"status","aria-label":e.label},hMergeSlot(t.default,void 0!==e.label?[e.label]:[]))}});const useDarkProps={dark:{type:Boolean,default:null}};function useDark(e,t){return computed(()=>null===e.dark?t.dark.isActive:e.dark)}var QBanner=createComponent({name:"QBanner",props:{...useDarkProps,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=getCurrentInstance(),n=useDark(e,o),a=computed(()=>"q-banner row items-center"+(!0===e.dense?" q-banner--dense":"")+(!0===n.value?" q-banner--dark q-dark":"")+(!0===e.rounded?" rounded-borders":"")),l=computed(()=>"q-banner__actions row items-center justify-end"+` col-${!0===e.inlineActions?"auto":"all"}`);return()=>{const o=[h("div",{class:"q-banner__avatar col-auto row items-center self-start"},hSlot(t.avatar)),h("div",{class:"q-banner__content col text-body2"},hSlot(t.default))],n=hSlot(t.action);return void 0!==n&&o.push(h("div",{class:l.value},n)),h("div",{class:a.value+(!1===e.inlineActions&&void 0!==n?" q-banner--top-padding":""),role:"alert"},o)}}}),QBar=createComponent({name:"QBar",props:{...useDarkProps,dense:Boolean},setup(e,{slots:t}){const{proxy:{$q:o}}=getCurrentInstance(),n=useDark(e,o),a=computed(()=>"q-bar row no-wrap items-center"+` q-bar--${!0===e.dense?"dense":"standard"} `+` q-bar--${!0===n.value?"dark":"light"}`);return()=>h("div",{class:a.value,role:"toolbar"},hSlot(t.default))}});const alignMap={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},alignValues$2=Object.keys(alignMap),useAlignProps={align:{type:String,validator:e=>alignValues$2.includes(e)}};function useAlign(e){return computed(()=>{const t=void 0===e.align?!0===e.vertical?"stretch":"left":e.align;return`${!0===e.vertical?"items":"justify"}-${alignMap[t]}`})}function getParentProxy(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;while(Object(t)===t){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function fillNormalizedVNodes(e,t){"symbol"===typeof t.type?!0===Array.isArray(t.children)&&t.children.forEach(t=>{fillNormalizedVNodes(e,t)}):e.add(t)}function getNormalizedVNodes(e){const t=new Set;return e.forEach(e=>{fillNormalizedVNodes(t,e)}),Array.from(t)}function vmHasRouter(e){return void 0!==e.appContext.config.globalProperties.$router}function vmIsDestroyed(e){return!0===e.isUnmounted||!0===e.isDeactivated}const disabledValues=["",!0];var QBreadcrumbs=createComponent({name:"QBreadcrumbs",props:{...useAlignProps,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:t}){const o=useAlign(e),n=computed(()=>`flex items-center ${o.value}${"none"===e.gutter?"":` q-gutter-${e.gutter}`}`),a=computed(()=>e.separatorColor?` text-${e.separatorColor}`:""),l=computed(()=>` text-${e.activeColor}`);return()=>{const o=getNormalizedVNodes(hSlot(t.default));if(0===o.length)return;let i=1;const r=[],s=o.filter(e=>void 0!==e.type&&"QBreadcrumbsEl"===e.type.name).length,u=void 0!==t.separator?t.separator:()=>e.separator;return o.forEach(e=>{if(void 0!==e.type&&"QBreadcrumbsEl"===e.type.name){const t=i<s,o=null!==e.props&&disabledValues.includes(e.props.disable),n=(!0===t?"":" q-breadcrumbs--last")+(!0!==o&&!0===t?l.value:"");i++,r.push(h("div",{class:`flex items-center${n}`},[e])),!0===t&&r.push(h("div",{class:"q-breadcrumbs__separator"+a.value},u()))}else r.push(e)}),h("div",{class:"q-breadcrumbs"},[h("div",{class:n.value},r)])}}});function getOriginalPath(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function isSameRouteRecord(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function includesParams(e,t){for(const o in t){const n=t[o],a=e[o];if("string"===typeof n){if(n!==a)return!1}else if(!1===Array.isArray(a)||a.length!==n.length||n.some((e,t)=>e!==a[t]))return!1}return!0}function isEquivalentArray(e,t){return!0===Array.isArray(t)?e.length===t.length&&e.every((e,o)=>e===t[o]):1===e.length&&e[0]===t}function isSameRouteLocationParamsValue(e,t){return!0===Array.isArray(e)?isEquivalentArray(e,t):!0===Array.isArray(t)?isEquivalentArray(t,e):e===t}function isSameRouteLocationParams(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!1===isSameRouteLocationParamsValue(e[o],t[o]))return!1;return!0}const useRouterLinkProps={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};function useRouterLink({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const o=getCurrentInstance(),{props:n,proxy:a,emit:l}=o,i=vmHasRouter(o),r=computed(()=>!0!==n.disable&&void 0!==n.href),s=computed(!0===t?()=>!0===i&&!0!==n.disable&&!0!==r.value&&void 0!==n.to&&null!==n.to&&""!==n.to:()=>!0===i&&!0!==r.value&&void 0!==n.to&&null!==n.to&&""!==n.to),u=computed(()=>!0===s.value?b(n.to):null),c=computed(()=>null!==u.value),d=computed(()=>!0===r.value||!0===c.value),p=computed(()=>"a"===n.type||!0===d.value?"a":n.tag||e||"div"),v=computed(()=>!0===r.value?{href:n.href,target:n.target}:!0===c.value?{href:u.value.href,target:n.target}:{}),m=computed(()=>{if(!1===c.value)return-1;const{matched:e}=u.value,{length:t}=e,o=e[t-1];if(void 0===o)return-1;const n=a.$route.matched;if(0===n.length)return-1;const l=n.findIndex(isSameRouteRecord.bind(null,o));if(l>-1)return l;const i=getOriginalPath(e[t-2]);return t>1&&getOriginalPath(o)===i&&n[n.length-1].path!==i?n.findIndex(isSameRouteRecord.bind(null,e[t-2])):l}),f=computed(()=>!0===c.value&&-1!==m.value&&includesParams(a.$route.params,u.value.params)),h=computed(()=>!0===f.value&&m.value===a.$route.matched.length-1&&isSameRouteLocationParams(a.$route.params,u.value.params)),g=computed(()=>!0===c.value?!0===h.value?` ${n.exactActiveClass} ${n.activeClass}`:!0===n.exact?"":!0===f.value?` ${n.activeClass}`:"":"");function b(e){try{return a.$router.resolve(e)}catch(e){}return null}function y(e,{returnRouterError:t,to:o=n.to,replace:l=n.replace}={}){if(!0===n.disable)return e.preventDefault(),Promise.resolve(!1);if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||void 0!==e.button&&0!==e.button||"_blank"===n.target)return Promise.resolve(!1);e.preventDefault();const i=a.$router[!0===l?"replace":"push"](o);return!0===t?i:i.then(()=>{}).catch(()=>{})}function S(e){if(!0===c.value){const t=t=>y(e,t);l("click",e,t),!0!==e.defaultPrevented&&t()}else l("click",e)}return{hasRouterLink:c,hasHrefLink:r,hasLink:d,linkTag:p,resolvedLink:u,linkIsActive:f,linkIsExactActive:h,linkClass:g,linkAttrs:v,getLink:b,navigateToRouterLink:y,navigateOnClick:S}}var QBreadcrumbsEl=createComponent({name:"QBreadcrumbsEl",props:{...useRouterLinkProps,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:t}){const{linkTag:o,linkAttrs:n,linkClass:a,navigateOnClick:l}=useRouterLink(),i=computed(()=>{return{class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(!0!==e.disable?"q-link--focusable"+a.value:"q-breadcrumbs__el--disable"),...n.value,onClick:l}}),r=computed(()=>"q-breadcrumbs__el-icon"+(void 0!==e.label?" q-breadcrumbs__el-icon--with-label":""));return()=>{const n=[];return void 0!==e.icon&&n.push(h(QIcon,{class:r.value,name:e.icon})),void 0!==e.label&&n.push(e.label),h(o.value,{...i.value},hMergeSlot(t.default,n))}}});const useSpinnerProps={size:{type:[Number,String],default:"1em"},color:String};function useSpinner(e){return{cSize:computed(()=>e.size in useSizeDefaults?`${useSizeDefaults[e.size]}px`:e.size),classes:computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}var QSpinner=createComponent({name:"QSpinner",props:{...useSpinnerProps,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:o}=useSpinner(e);return()=>h("svg",{class:o.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function offset(e){if(e===window)return{top:0,left:0};const{top:t,left:o}=e.getBoundingClientRect();return{top:t,left:o}}function style(e,t){return window.getComputedStyle(e).getPropertyValue(t)}function height(e){return e===window?window.innerHeight:e.getBoundingClientRect().height}function width$1(e){return e===window?window.innerWidth:e.getBoundingClientRect().width}function css(e,t){const o=e.style;for(const n in t)o[n]=t[n]}function cssBatch(e,t){e.forEach(e=>css(e,t))}function ready(e){if("function"===typeof e)return"loading"!==document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)}function getElement$1(e){if(void 0===e||null===e)return;if("string"===typeof e)try{return document.querySelector(e)||void 0}catch(e){return}const t=unref(e);return t?t.$el||t:void 0}function childHasFocus(e,t){if(void 0===e||null===e||!0===e.contains(t))return!0;for(let o=e.nextElementSibling;null!==o;o=o.nextElementSibling)if(o.contains(t))return!0;return!1}var dom={offset:offset,style:style,height:height,width:width$1,css:css,cssBatch:cssBatch,ready:ready};function throttle(e,t=250){let o,n=!1;return function(){return!1===n&&(n=!0,setTimeout(()=>{n=!1},t),o=e.apply(this,arguments)),o}}function showRipple(e,t,o,n){!0===o.modifiers.stop&&stop(e);const a=o.modifiers.color;let l=o.modifiers.center;l=!0===l||!0===n;const i=document.createElement("span"),r=document.createElement("span"),s=position(e),{left:u,top:c,width:d,height:p}=t.getBoundingClientRect(),v=Math.sqrt(d*d+p*p),m=v/2,f=`${(d-v)/2}px`,h=l?f:`${s.left-u-m}px`,g=`${(p-v)/2}px`,b=l?g:`${s.top-c-m}px`;r.className="q-ripple__inner",css(r,{height:`${v}px`,width:`${v}px`,transform:`translate3d(${h},${b},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${a?" text-"+a:""}`,i.setAttribute("dir","ltr"),i.appendChild(r),t.appendChild(i);const y=()=>{i.remove(),clearTimeout(S)};o.abort.push(y);let S=setTimeout(()=>{r.classList.add("q-ripple__inner--enter"),r.style.transform=`translate3d(${f},${g},0) scale3d(1,1,1)`,r.style.opacity=.2,S=setTimeout(()=>{r.classList.remove("q-ripple__inner--enter"),r.classList.add("q-ripple__inner--leave"),r.style.opacity=0,S=setTimeout(()=>{i.remove(),o.abort.splice(o.abort.indexOf(y),1)},275)},250)},50)}function updateModifiers$1(e,{modifiers:t,value:o,arg:n}){const a=Object.assign({},e.cfg.ripple,t,o);e.modifiers={early:!0===a.early,stop:!0===a.stop,center:!0===a.center,color:a.color||n,keyCodes:[].concat(a.keyCodes||13)}}var Ripple=createDirective({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(!1===o.ripple)return;const n={cfg:o,enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===n.enabled&&!0!==t.qSkipRipple&&t.type===(!0===n.modifiers.early?"pointerdown":"click")&&showRipple(t,e,n,!0===t.qKeyEvent)},keystart:throttle(t=>{!0===n.enabled&&!0!==t.qSkipRipple&&!0===isKeyCode(t,n.modifiers.keyCodes)&&t.type===`key${!0===n.modifiers.early?"down":"up"}`&&showRipple(t,e,n,!0)},300)};updateModifiers$1(n,t),e.__qripple=n,addEvt(n,"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;void 0!==o&&(o.enabled=!1!==t.value,!0===o.enabled&&Object(t.value)===t.value&&updateModifiers$1(o,t))}},beforeUnmount(e){const t=e.__qripple;void 0!==t&&(t.abort.forEach(e=>{e()}),cleanEvt(t,"main"),delete e._qripple)}});const btnPadding={none:0,xs:4,sm:8,md:16,lg:24,xl:32},defaultSizes$2={xs:8,sm:10,md:14,lg:20,xl:24},formTypes=["button","submit","reset"],mediaTypeRE=/[^\s]\/[^\s]/,btnDesignOptions=["flat","outline","push","unelevated"],getBtnDesign=(e,t)=>{return!0===e.flat?"flat":!0===e.outline?"outline":!0===e.push?"push":!0===e.unelevated?"unelevated":t},getBtnDesignAttr=e=>{const t=getBtnDesign(e);return void 0!==t?{[t]:!0}:{}},useBtnProps={...useSizeProps,...useRouterLinkProps,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...btnDesignOptions.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,round: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:{...useAlignProps.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function useBtn(e){const t=useSize(e,defaultSizes$2),o=useAlign(e),{hasRouterLink:n,hasLink:a,linkTag:l,linkAttrs:i,navigateOnClick:r}=useRouterLink({fallbackTag:"button"}),s=computed(()=>{const o=!1===e.fab&&!1===e.fabMini?t.value:{};return void 0!==e.padding?Object.assign({},o,{padding:e.padding.split(/\s+/).map(e=>e in btnPadding?btnPadding[e]+"px":e).join(" "),minWidth:"0",minHeight:"0"}):o}),u=computed(()=>!0===e.rounded||!0===e.fab||!0===e.fabMini),c=computed(()=>!0!==e.disable&&!0!==e.loading),d=computed(()=>!0===c.value?e.tabindex||0:-1),p=computed(()=>getBtnDesign(e,"standard")),v=computed(()=>{const t={tabindex:d.value};return!0===a.value?Object.assign(t,i.value):!0===formTypes.includes(e.type)&&(t.type=e.type),"a"===l.value?(!0===e.disable?t["aria-disabled"]="true":void 0===t.href&&(t.role="button"),!0!==n.value&&!0===mediaTypeRE.test(e.type)&&(t.type=e.type)):!0===e.disable&&(t.disabled="",t["aria-disabled"]="true"),!0===e.loading&&void 0!==e.percentage&&Object.assign(t,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),t}),m=computed(()=>{let t;void 0!==e.color?t=!0===e.flat||!0===e.outline?`text-${e.textColor||e.color}`:`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(t=`text-${e.textColor}`);const o=!0===e.round?"round":`rectangle${!0===u.value?" q-btn--rounded":!0===e.square?" q-btn--square":""}`;return`q-btn--${p.value} q-btn--${o}`+(void 0!==t?" "+t:"")+(!0===c.value?" q-btn--actionable q-focusable q-hoverable":!0===e.disable?" disabled":"")+(!0===e.fab?" q-btn--fab":!0===e.fabMini?" q-btn--fab-mini":"")+(!0===e.noCaps?" q-btn--no-uppercase":"")+(!0===e.dense?" q-btn--dense":"")+(!0===e.stretch?" no-border-radius self-stretch":"")+(!0===e.glossy?" glossy":"")+(e.square?" q-btn--square":"")}),f=computed(()=>o.value+(!0===e.stack?" column":" row")+(!0===e.noWrap?" no-wrap text-no-wrap":"")+(!0===e.loading?" q-btn__content--hidden":""));return{classes:m,style:s,innerClasses:f,attributes:v,hasLink:a,linkTag:l,navigateOnClick:r,isActionable:c}}const{passiveCapture:passiveCapture}=listenOpts;let touchTarget=null,keyboardTarget=null,mouseTarget=null;var QBtn=createComponent({name:"QBtn",props:{...useBtnProps,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:o}){const{proxy:n}=getCurrentInstance(),{classes:a,style:l,innerClasses:i,attributes:r,hasLink:s,linkTag:u,navigateOnClick:c,isActionable:d}=useBtn(e),p=ref(null),v=ref(null);let m,f=null,g=null;const b=computed(()=>void 0!==e.label&&null!==e.label&&""!==e.label),y=computed(()=>!0!==e.disable&&!1!==e.ripple&&{keyCodes:!0===s.value?[13,32]:[13],...!0===e.ripple?{}:e.ripple}),S=computed(()=>({center:e.round})),w=computed(()=>{const t=Math.max(0,Math.min(100,e.percentage));return t>0?{transition:"transform 0.6s",transform:`translateX(${t-100}%)`}:{}}),C=computed(()=>{if(!0===e.loading)return{onMousedown:M,onTouchstart:M,onClick:M,onKeydown:M,onKeyup:M};if(!0===d.value){const t={onClick:k,onKeydown:_,onMousedown:T};if(!0===n.$q.platform.has.touch){const o=void 0!==e.onTouchstart?"":"Passive";t[`onTouchstart${o}`]=q}return t}return{onClick:stopAndPrevent}}),x=computed(()=>({ref:p,class:"q-btn q-btn-item non-selectable no-outline "+a.value,style:l.value,...r.value,...C.value}));function k(t){if(null!==p.value){if(void 0!==t){if(!0===t.defaultPrevented)return;const o=document.activeElement;if("submit"===e.type&&o!==document.body&&!1===p.value.contains(o)&&!1===o.contains(p.value)){p.value.focus();const e=()=>{document.removeEventListener("keydown",stopAndPrevent,!0),document.removeEventListener("keyup",e,passiveCapture),null!==p.value&&p.value.removeEventListener("blur",e,passiveCapture)};document.addEventListener("keydown",stopAndPrevent,!0),document.addEventListener("keyup",e,passiveCapture),p.value.addEventListener("blur",e,passiveCapture)}}c(t)}}function _(e){null!==p.value&&(o("keydown",e),!0===isKeyCode(e,[13,32])&&keyboardTarget!==p.value&&(null!==keyboardTarget&&$(),!0!==e.defaultPrevented&&(p.value.focus(),keyboardTarget=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("keyup",P,!0),p.value.addEventListener("blur",P,passiveCapture)),stopAndPrevent(e)))}function q(e){null!==p.value&&(o("touchstart",e),!0!==e.defaultPrevented&&(touchTarget!==p.value&&(null!==touchTarget&&$(),touchTarget=p.value,f=e.target,f.addEventListener("touchcancel",P,passiveCapture),f.addEventListener("touchend",P,passiveCapture)),m=!0,null!==g&&clearTimeout(g),g=setTimeout(()=>{g=null,m=!1},200)))}function T(e){null!==p.value&&(e.qSkipRipple=!0===m,o("mousedown",e),!0!==e.defaultPrevented&&mouseTarget!==p.value&&(null!==mouseTarget&&$(),mouseTarget=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("mouseup",P,passiveCapture)))}function P(e){if(null!==p.value&&(void 0===e||"blur"!==e.type||document.activeElement!==p.value)){if(void 0!==e&&"keyup"===e.type){if(keyboardTarget===p.value&&!0===isKeyCode(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&prevent(t),!0===e.cancelBubble&&stop(t),p.value.dispatchEvent(t),stopAndPrevent(e),e.qKeyEvent=!0}o("keyup",e)}$()}}function $(e){const t=v.value;!0===e||touchTarget!==p.value&&mouseTarget!==p.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),touchTarget===p.value&&(null!==f&&(f.removeEventListener("touchcancel",P,passiveCapture),f.removeEventListener("touchend",P,passiveCapture)),touchTarget=f=null),mouseTarget===p.value&&(document.removeEventListener("mouseup",P,passiveCapture),mouseTarget=null),keyboardTarget===p.value&&(document.removeEventListener("keyup",P,!0),null!==p.value&&p.value.removeEventListener("blur",P,passiveCapture),keyboardTarget=null),null!==p.value&&p.value.classList.remove("q-btn--active")}function M(e){stopAndPrevent(e),e.qSkipRipple=!0}return onBeforeUnmount(()=>{$(!0)}),Object.assign(n,{click:k}),()=>{let o=[];void 0!==e.icon&&o.push(h(QIcon,{name:e.icon,left:!1===e.stack&&!0===b.value,role:"img","ar