UNPKG

quasar

Version:

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

6 lines 487 kB
/*! * Quasar Framework v1.9.5 * (c) 2015-present Razvan Stoenescu * Released under the MIT License. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):(t=t||self).Quasar=e(t.Vue)}(this,function(t){"use strict";if(void 0!==t){t=t&&t.hasOwnProperty("default")?t.default:t;var e,i="undefined"==typeof window,s=!1,n=i,o=!1,r=!1===i&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),a=!1===i?(navigator.userAgent||navigator.vendor||window.opera).toLowerCase():"",l={has:{touch:!1,webStorage:!1},within:{iframe:!1}},c=!1===i?{userAgent:a,is:Go(a),has:{touch:r,webStorage:function(){try{if(window.localStorage)return!0}catch(t){}return!1}()},within:{iframe:window.self!==window.top}}:l,u={install:function(o,r){var a=this;!0===i?r.server.push(function(t,e){t.platform=a.parseSSR(e.ssr)}):!0===s?(Object.assign(this,c,e,l),r.takeover.push(function(t){n=s=!1,Object.assign(t.platform,c),e=void 0}),t.util.defineReactive(o,"platform",this)):(Object.assign(this,c),o.platform=this)}};!0===i?u.parseSSR=function(t){var e=(t.req.headers["user-agent"]||t.req.headers["User-Agent"]||"").toLowerCase();return Object.assign({},c,{userAgent:e,is:Go(e)})}:o=!0===c.is.ios&&-1===window.navigator.vendor.toLowerCase().indexOf("apple");var h={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{var d=Object.defineProperty({},"passive",{get:function(){Object.assign(h,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,d),window.removeEventListener("qtest",null,d)}catch(t){}for(var p,f,m,v,g,_,b,y,w,S,C,x=40,k=800,q={listenOpts:h,leftClick:Jo,middleClick:function(t){return 1===t.button},rightClick:function(t){return 2===t.button},position:tr,getEventPath:er,getMouseWheelDistance:function(t){var e,i=t.deltaX,s=t.deltaY;if((i||s)&&t.deltaMode){var n=1===t.deltaMode?x:k;i*=n,s*=n}return t.shiftKey&&!i&&(s=(e=[i,s])[0],i=e[1]),{x:i,y:s}},stop:ir,prevent:sr,stopAndPrevent:nr,preventDraggable:or,create:rr},$=["sm","md","lg","xl"],T=h.passive,M={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:Zo,setDebounce:Zo,install:function(e,n,o){var r=this;if(!0!==i){var a,l=void 0!==o.screen&&!0===o.screen.bodyClasses,c=function(t){var e=window.innerWidth,i=window.innerHeight;if(i!==r.height&&(r.height=i),e!==r.width)r.width=e;else if(!0!==t)return;var s=r.sizes;r.gt.xs=e>=s.sm,r.gt.sm=e>=s.md,r.gt.md=e>=s.lg,r.gt.lg=e>=s.xl,r.lt.sm=e<s.sm,r.lt.md=e<s.md,r.lt.lg=e<s.lg,r.lt.xl=e<s.xl,r.xs=r.lt.sm,r.sm=!0===r.gt.xs&&!0===r.lt.md,r.md=!0===r.gt.sm&&!0===r.lt.lg,r.lg=!0===r.gt.md&&!0===r.lt.xl,r.xl=r.gt.lg,(s=(!0===r.xs?"xs":!0===r.sm&&"sm")||!0===r.md&&"md"||!0===r.lg&&"lg"||"xl")!==r.name&&(!0===l&&(document.body.classList.remove("screen--"+r.name),document.body.classList.add("screen--"+s)),r.name=s)},u={},h=16;this.setSizes=function(t){$.forEach(function(e){void 0!==t[e]&&(u[e]=t[e])})},this.setDebounce=function(t){h=t};var d=function(){var t=getComputedStyle(document.body),e=void 0!==window.visualViewport?window.visualViewport:window;t.getPropertyValue("--q-size-sm")&&$.forEach(function(e){r.sizes[e]=parseInt(t.getPropertyValue("--q-size-"+e),10)}),r.setSizes=function(t){$.forEach(function(e){t[e]&&(r.sizes[e]=t[e])}),c(!0)},r.setDebounce=function(t){void 0!==a&&e.removeEventListener("resize",a,T),a=t>0?ar(c,t):c,e.addEventListener("resize",a,T)},r.setDebounce(h),Object.keys(u).length>0?(r.setSizes(u),u=void 0):c()};!0===s?n.takeover.push(d):d(),t.util.defineReactive(e,"screen",this)}else e.screen=this}},B={isActive:!1,mode:!1,install:function(e,n,o){var r=this,a=o.dark;if(this.isActive=!0===a,!0===i)return n.server.push(function(t,e){t.dark={isActive:!1,mode:!1,set:function(i){e.ssr.Q_BODY_CLASSES=e.ssr.Q_BODY_CLASSES.replace(" body--light","").replace(" body--dark","")+" body--"+(!0===i?"dark":"light"),t.dark.isActive=!0===i,t.dark.mode=i},toggle:function(){t.dark.set(!1===t.dark.isActive)}},t.dark.set(a)}),void(this.set=Zo);var l=void 0!==a&&a;if(!0===s){var c=function(t){r.__fromSSR=t},u=this.set;this.set=c,c(l),n.takeover.push(function(){r.set=u,r.set(r.__fromSSR)})}else this.set(l);t.util.defineReactive(this,"isActive",this.isActive),t.util.defineReactive(e,"dark",this)},set:function(t){var e=this;this.mode=t,"auto"===t?(void 0===this.__media&&(this.__media=window.matchMedia("(prefers-color-scheme: dark)"),this.__updateMedia=function(){e.set("auto")},this.__media.addListener(this.__updateMedia)),t=this.__media.matches):void 0!==this.__media&&(this.__media.removeListener(this.__updateMedia),this.__media=void 0),this.isActive=!0===t,document.body.classList.remove("body--"+(!0===t?"light":"dark")),document.body.classList.add("body--"+(!0===t?"dark":"light"))},toggle:function(){B.set(!1===B.isActive)},__media:void 0},P=function(){return!0},L={__history:[],add:Zo,remove:Zo,install:function(t){var e=this;if(!0!==i){var s=c.is,n=s.cordova,o=s.capacitor;if(!0===n||!0===o){this.add=function(t){void 0===t.condition&&(t.condition=P),e.__history.push(t)},this.remove=function(t){var i=e.__history.indexOf(t);i>=0&&e.__history.splice(i,1)};var r=function(){if(e.__history.length){var t=e.__history[e.__history.length-1];!0===t.condition()&&(e.__history.pop(),t.handler())}else l&&"#/"===window.location.hash?navigator.app.exitApp():window.history.back()},a=!0===n?"cordova":"capacitor",l=void 0===t[a]||!1!==t[a].backButtonExit;!0===n?document.addEventListener("deviceready",function(){document.addEventListener("backbutton",r,!1)}):window.Capacitor.Plugins.App.addListener("backButton",r)}}}},z={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"},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},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:function(t){return 1===t?"1 record selected.":(0===t?"No":t)+" records selected."},recordsPerPage:"Records per page:",allRows:"All",pagination:function(t,e,i){return t+"-"+e+" of "+i},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"}},O={install:function(e,s,n){var o=this;!0===i&&s.server.push(function(t,e){var i={lang:t.lang.isoName,dir:!0===t.lang.rtl?"rtl":"ltr"},s=e.ssr.setHtmlAttrs;"function"==typeof s?s(i):e.ssr.Q_HTML_ATTRS=Object.keys(i).map(function(t){return t+"="+i[t]}).join(" ")}),this.set=function(s){if(void 0===s&&(s=z),s.set=o.set,s.getLocale=o.getLocale,s.rtl=!0===s.rtl||!1,!1===i){var n=document.documentElement;n.setAttribute("dir",s.rtl?"rtl":"ltr"),n.setAttribute("lang",s.isoName)}!0===i||void 0!==e.lang?e.lang=s:t.util.defineReactive(e,"lang",s),o.isoName=s.isoName,o.nativeName=s.nativeName,o.props=s},this.set(n)},getLocale:function(){if(!0!==i){var t=navigator.language||navigator.languages[0]||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage;return t?t.toLowerCase():void 0}}},E=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/,D={rgbToHex:lr,hexToRgb:ur,hsvToRgb:hr,rgbToHsv:dr,textToRgb:pr,lighten:function(t,e){if("string"!=typeof t)throw new TypeError("Expected a string as color");if("number"!=typeof e)throw new TypeError("Expected a numeric percent");var i=pr(t),s=e<0?0:255,n=Math.abs(e)/100,o=i.r,r=i.g,a=i.b;return"#"+(16777216+65536*(Math.round((s-o)*n)+o)+256*(Math.round((s-r)*n)+r)+(Math.round((s-a)*n)+a)).toString(16).slice(1)},luminosity:fr,brightness:function(t){if("string"!=typeof t&&(!t||void 0===t.r))throw new TypeError("Expected a string or a {r, g, b} object as color");var e="string"==typeof t?pr(t):t;return(299*e.r+587*e.g+114*e.b)/1e3},blend:function(t,e){if("string"!=typeof t&&(!t||void 0===t.r))throw new TypeError("Expected a string or a {r, g, b[, a]} object as fgColor");if("string"!=typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b[, a]} object as bgColor");var i="string"==typeof t?pr(t):t,s=i.r/255,n=i.g/255,o=i.b/255,r=void 0!==i.a?i.a/100:1,a="string"==typeof e?pr(e):e,l=a.r/255,c=a.g/255,u=a.b/255,h=void 0!==a.a?a.a/100:1,d=r+h*(1-r),p={r:Math.round((s*r+l*h*(1-r))/d*255),g:Math.round((n*r+c*h*(1-r))/d*255),b:Math.round((o*r+u*h*(1-r))/d*255),a:Math.round(100*d)};return"string"==typeof t?lr(p):p},changeAlpha:function(t,e){if("string"!=typeof t)throw new TypeError("Expected a string as color");if(void 0===e||e<-1||e>1)throw new TypeError("Expected offset to be between -1 and 1");var i=pr(t),s=i.r,n=i.g,o=i.b,r=i.a,a=void 0!==r?r/100:0;return lr({r:s,g:n,b:o,a:Math.round(100*Math.min(1,Math.max(0,a+e)))})},setBrand:mr,getBrand:vr},A=!1,I={install:function(t,n){if(!0!==i){if(!0===s)r=document.body.className,a=r,void 0!==e&&(a=a.replace("desktop","platform-ios mobile")),!0===c.has.touch&&(a=a.replace("no-touch","touch")),!0===c.within.iframe&&(a+=" within-iframe"),r!==a&&(document.body.className=a);else{var o=yr(c,n);!0===c.is.ie&&11===c.is.versionNumber?o.forEach(function(t){return document.body.classList.add(t)}):document.body.classList.add.apply(document.body.classList,o)}var r,a;void 0!==n.brand&&function(t){for(var e in t)mr(e,t[e])}(n.brand),!0===c.is.ios&&document.body.addEventListener("touchstart",Zo),window.addEventListener("keydown",gr,!0)}else t.server.push(function(t,e){var i=yr(t.platform,n),s=e.ssr.setBodyClasses;void 0!==n.screen&&!0===n.screen.bodyClass&&i.push("screen--xs"),"function"==typeof s?s(i):e.ssr.Q_BODY_CLASSES=i.join(" ")})}},F={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",prevPage:"chevron_left",nextPage:"chevron_right"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}},R={install:function(e,s){var n=this;this.set=function(s){void 0===s&&(s=F),s.set=n.set,!0===i||void 0!==e.iconSet?e.iconSet=s:t.util.defineReactive(e,"iconSet",s),n.name=s.name,n.def=s},this.set(s),!0!==i&&t.util.defineReactive(e,"iconMapFn",void 0)}},V=[u,M,B],N={server:[],takeover:[]},j={version:"1.9.5"},H=["B","KB","MB","GB","TB","PB"],Q={humanStorageSize:wr,capitalize:Sr,between:Cr,normalizeToInterval:xr,pad:kr},W=i?null:XMLHttpRequest,Y=i?null:W.prototype.send,U=[],K=[],X=0,G=t.extend({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:function(t){return["top","right","bottom","left"].includes(t)}},size:{type:String,default:"2px"},color:{type:String,default:"red"},skipHijack:Boolean,reverse:Boolean},data:function(){return{calls:0,progress:0,onScreen:!1,animate:!0}},computed:{classes:function(){return"q-loading-bar q-loading-bar--"+this.position+" bg-"+this.color+(!0===this.animate?"":" no-transition")},style:function(){var t=this.onScreen,e=function(t){var e=t.p,i=t.pos,s=t.active,n=t.horiz,o=t.reverse,r=t.dir,a=1,l=1;return n?(o&&(a=-1),"bottom"===i&&(l=-1),{transform:"translate3d("+a*(e-100)+"%,"+(s?0:-200*l)+"%,0)"}):(o&&(l=-1),"right"===i&&(a=-1),{transform:"translate3d("+(s?0:r*a*-200)+"%,"+l*(e-100)+"%,0)"})}({p:this.progress,pos:this.position,active:t,horiz:this.horizontal,reverse:!0===this.$q.lang.rtl&&["top","bottom"].includes(this.position)?!this.reverse:this.reverse,dir:!0===this.$q.lang.rtl?-1:1});return e[this.sizeProp]=this.size,e.opacity=t?1:0,e},horizontal:function(){return"top"===this.position||"bottom"===this.position},sizeProp:function(){return this.horizontal?"height":"width"},attrs:function(){return!0===this.onScreen?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.progress}:{"aria-hidden":"true"}}},methods:{start:function(t){var e=this;void 0===t&&(t=300);var i=this.speed;this.speed=Math.max(0,t)||0,this.calls++,this.calls>1?0===i&&t>0?this.__work():i>0&&t<=0&&clearTimeout(this.timer):(clearTimeout(this.timer),this.$emit("start"),this.progress=0,!0!==this.onScreen&&(this.onScreen=!0,this.animate=!1,this.timer=setTimeout(function(){e.animate=!0,t>0&&e.__work()},100)))},increment:function(t){this.calls>0&&(this.progress=function(t,e){return"number"!=typeof e&&(e=t<25?3*Math.random()+3:t<65?3*Math.random():t<85?2*Math.random():t<99?.6:0),Cr(t+e,0,100)}(this.progress,t))},stop:function(){var t=this;if(this.calls=Math.max(0,this.calls-1),!(this.calls>0)){clearTimeout(this.timer),this.$emit("stop");var e=function(){t.animate=!0,t.progress=100,t.timer=setTimeout(function(){t.onScreen=!1},1e3)};0===this.progress?this.timer=setTimeout(e,1):e()}},__work:function(){var t=this;this.progress<100&&(this.timer=setTimeout(function(){t.increment(),t.__work()},this.speed))}},mounted:function(){!0!==this.skipHijack&&(this.hijacked=!0,function(t,e){function i(){K.forEach(function(t){t()})}U.push(t),K.push(e),++X>1||(W.prototype.send=function(){U.forEach(function(t){t()}),this.addEventListener("loadend",i,!1),Y.apply(this,arguments)})}(this.start,this.stop))},beforeDestroy:function(){var t,e;clearTimeout(this.timer),this.hijacked&&(t=this.start,e=this.stop,U.splice(U.indexOf(t),1),K.splice(K.indexOf(e),1),(X=Math.max(0,X-1))||(W.prototype.send=Y))},render:function(t){return t("div",{class:this.classes,style:this.style,attrs:this.attrs})}}),Z={xs:18,sm:24,md:32,lg:38,xl:46},J=qr(Z),tt={props:{tag:{type:String,default:"div"}}},et=t.extend({name:"QIcon",mixins:[J,tt],props:{tag:{default:"i"},name:String,color:String,left:Boolean,right:Boolean},computed:{classes:function(){return"q-icon notranslate"+(!0===this.left?" on-left":"")+(!0===this.right?" on-right":"")+(void 0!==this.color?" text-"+this.color:"")},type:function(){var t,e=this.name;if(!e)return{none:!0,cls:this.classes};if(void 0!==this.$q.iconMapFn){var i=this.$q.iconMapFn(e);if(void 0!==i){if(void 0===i.icon)return{cls:i.cls+" "+this.classes,content:void 0!==i.content?i.content:" "};e=i.icon}}if(!0===e.startsWith("M")){var s=e.split("|");return{svg:!0,cls:this.classes,path:s[0],viewBox:void 0!==s[1]?s[1]:"0 0 24 24"}}if(!0===e.startsWith("img:"))return{img:!0,cls:this.classes,src:e.substring(4)};var n=" ";return/^[l|f]a[s|r|l|b|d]{0,1} /.test(e)||!0===e.startsWith("icon-")?t=e:!0===e.startsWith("bt-")?t="bt "+e:!0===e.startsWith("eva-")?t="eva "+e:!0===/^ion-(md|ios|logo)/.test(e)?t="ionicons "+e:!0===e.startsWith("ion-")?t="ionicons ion-"+(!0===this.$q.platform.is.ios?"ios":"md")+e.substr(3):!0===e.startsWith("mdi-")?t="mdi "+e:!0===e.startsWith("iconfont ")?t=""+e:!0===e.startsWith("ti-")?t="themify-icon "+e:(t="material-icons",!0===e.startsWith("o_")?(e=e.substring(2),t+="-outlined"):!0===e.startsWith("r_")?(e=e.substring(2),t+="-round"):!0===e.startsWith("s_")&&(e=e.substring(2),t+="-sharp"),n=e),{cls:t+" "+this.classes,content:n}}},render:function(t){var e={class:this.type.cls,style:this.sizeStyle,on:this.$listeners,attrs:{"aria-hidden":"true",role:"presentation"}};return!0===this.type.none?t(this.tag,e,$r(this,"default")):!0===this.type.img?(e.attrs.src=this.type.src,t("img",e)):!0===this.type.svg?(e.attrs.focusable="false",e.attrs.viewBox=this.type.viewBox,t("svg",e,Mr([t("path",{attrs:{d:this.type.path}})],this,"default"))):t(this.tag,e,Mr([this.type.content],this,"default"))}}),it=t.extend({name:"QAvatar",mixins:[J],props:{fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},computed:{contentClass:function(){var t;return(t={})["bg-"+this.color]=this.color,t["text-"+this.textColor+" q-chip--colored"]=this.textColor,t["q-avatar__content--square"]=this.square,t["rounded-borders"]=this.rounded,t},contentStyle:function(){if(this.fontSize)return{fontSize:this.fontSize}}},render:function(t){var e=void 0!==this.icon?[t(et,{props:{name:this.icon}})]:void 0;return t("div",{staticClass:"q-avatar",style:this.sizeStyle,on:this.$listeners},[t("div",{staticClass:"q-avatar__content row flex-center overflow-hidden",class:this.contentClass,style:this.contentStyle},Br(e,this,"default"))])}}),st=t.extend({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,label:[Number,String],align:{type:String,validator:function(t){return["top","middle","bottom"].includes(t)}}},computed:{style:function(){if(void 0!==this.align)return{verticalAlign:this.align}},classes:function(){var t=!0===this.outline&&this.color||this.textColor;return"q-badge flex inline items-center no-wrap q-badge--"+(!0===this.multiLine?"multi":"single")+"-line"+(!0===this.outline?" q-badge--outline":void 0!==this.color?" bg-"+this.color:"")+(void 0!==t?" text-"+t:"")+(!0===this.floating?" q-badge--floating":"")+(!0===this.transparent?" q-badge--transparent":"")},attrs:function(){return{role:"alert","aria-label":this.label}}},render:function(t){return t("div",{style:this.style,class:this.classes,attrs:this.attrs,on:this.$listeners},void 0!==this.label?[this.label]:$r(this,"default"))}}),nt={props:{dark:{type:Boolean,default:null}},computed:{isDark:function(){return null===this.dark?this.$q.dark.isActive:this.dark}}},ot={role:"alert"},rt=t.extend({name:"QBanner",mixins:[nt],props:{inlineActions:Boolean,dense:Boolean,rounded:Boolean},render:function(t){var e=$r(this,"action"),i=[t("div",{staticClass:"q-banner__avatar col-auto row items-center"},$r(this,"avatar")),t("div",{staticClass:"q-banner__content col text-body2"},$r(this,"default"))];return void 0!==e&&i.push(t("div",{staticClass:"q-banner__actions row items-center justify-end",class:"col-"+(!0===this.inlineActions?"auto":"all")},e)),t("div",{staticClass:"q-banner row items-center",class:{"q-banner--top-padding":void 0!==e&&!this.inlineActions,"q-banner--dense":this.dense,"q-banner--dark q-dark":this.isDark,"rounded-borders":this.rounded},attrs:ot,on:this.$listeners},i)}}),at={role:"toolbar"},lt=t.extend({name:"QBar",mixins:[nt],props:{dense:Boolean},computed:{classes:function(){return"q-bar--"+(!0===this.dense?"dense":"standard")+" q-bar--"+(!0===this.isDark?"dark":"light")}},render:function(t){return t("div",{staticClass:"q-bar row no-wrap items-center",class:this.classes,attrs:at,on:this.$listeners},$r(this,"default"))}}),ct={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},ut=Object.keys(ct),ht={props:{align:{type:String,validator:function(t){return ut.includes(t)}}},computed:{alignClass:function(){var t=void 0===this.align?!0===this.vertical?"stretch":"left":this.align;return(!0===this.vertical?"items":"justify")+"-"+ct[t]}}},dt=t.extend({name:"QBreadcrumbs",mixins:[ht],props:{separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:function(t){return["none","xs","sm","md","lg","xl"].includes(t)},default:"sm"}},computed:{classes:function(){return this.alignClass+("none"===this.gutter?"":" q-gutter-"+this.gutter)},sepClass:function(){if(this.separatorColor)return"text-"+this.separatorColor},activeClass:function(){return"text-"+this.activeColor}},render:function(t){var e=this,i=$r(this,"default");if(void 0!==i){var s=1,n=[],o=i.filter(function(t){return void 0!==t.tag&&t.tag.endsWith("-QBreadcrumbsEl")}).length,r=void 0!==this.$scopedSlots.separator?this.$scopedSlots.separator:function(){return e.separator};return i.forEach(function(i){if(void 0!==i.tag&&i.tag.endsWith("-QBreadcrumbsEl")){var a=s<o;s++,n.push(t("div",{staticClass:"flex items-center",class:a?e.activeClass:"q-breadcrumbs--last"},[i])),a&&n.push(t("div",{staticClass:"q-breadcrumbs__separator",class:e.sepClass},r()))}else n.push(i)}),t("div",{staticClass:"q-breadcrumbs",on:this.$listeners},[t("div",{staticClass:"flex items-center",class:this.classes},n)])}}}),pt={props:{to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,disable:Boolean},computed:{hasRouterLink:function(){return!0!==this.disable&&void 0!==this.to&&null!==this.to&&""!==this.to},routerLinkProps:function(){return{to:this.to,exact:this.exact,append:this.append,replace:this.replace,activeClass:this.activeClass||"q-router-link--active",exactActiveClass:this.exactActiveClass||"q-router-link--exact-active",event:!0===this.disable?"":void 0}}}},ft=t.extend({name:"QBreadcrumbsEl",mixins:[pt],props:{label:String,icon:String},render:function(t){var e,i=[];return void 0!==this.icon&&i.push(t(et,{staticClass:"q-breadcrumbs__el-icon",class:void 0!==this.label?"q-breadcrumbs__el-icon--with-label":null,props:{name:this.icon}})),this.label&&i.push(this.label),t(!0===this.hasRouterLink?"router-link":"span",((e={staticClass:"q-breadcrumbs__el q-link flex inline items-center relative-position",props:!0===this.hasRouterLink?this.routerLinkProps:null})[!0===this.hasRouterLink?"nativeOn":"on"]=this.$listeners,e),Mr(i,this,"default"))}}),mt={props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{cSize:function(){return this.size in Z?Z[this.size]+"px":this.size},classes:function(){if(this.color)return"text-"+this.color}}},vt=t.extend({name:"QSpinner",mixins:[mt],props:{thickness:{type:Number,default:5}},render:function(t){return t("svg",{staticClass:"q-spinner q-spinner-mat",class:this.classes,on:this.$listeners,attrs:{focusable:"false",width:this.cSize,height:this.cSize,viewBox:"25 25 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":this.thickness,"stroke-miterlimit":"10"}})])}}),gt={offset:Pr,style:function(t,e){return window.getComputedStyle(t).getPropertyValue(e)},height:Lr,width:function(t){return t===window?window.innerWidth:t.getBoundingClientRect().width},css:zr,cssBatch:function(t,e){t.forEach(function(t){return zr(t,e)})},ready:function(t){if("function"==typeof t)return"loading"!==document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)}},_t={name:"ripple",inserted:function(t,e){var i={modifiers:{},abort:[],click:function(e){!0===i.enabled&&!0!==e.qSkipRipple&&(!0!==c.is.ie||e.clientX>=0)&&Or(e,t,i,!0===e.qKeyEvent)},keyup:function(e){!0===i.enabled&&!0!==e.qSkipRipple&&!0===br(e,i.modifiers.keyCodes)&&Or(e,t,i,!0)}};Er(i,e),t.__qripple&&(t.__qripple_old=t.__qripple),t.__qripple=i,t.addEventListener("click",i.click,h.passive),t.addEventListener("keyup",i.keyup,h.passive)},update:function(t,e){void 0!==t.__qripple&&Er(t.__qripple,e)},unbind:function(t){var e=t.__qripple_old||t.__qripple;void 0!==e&&(e.abort.forEach(function(t){t()}),t.removeEventListener("click",e.click,h.passive),t.removeEventListener("keyup",e.keyup,h.passive),delete t[t.__qripple_old?"__qripple_old":"__qripple"])}},bt={directives:{Ripple:_t},props:{ripple:{type:[Boolean,Object],default:!0}}},yt={mixins:[bt,ht,qr({xs:8,sm:10,md:14,lg:20,xl:24})],props:{type:String,to:[Object,String],replace:Boolean,label:[Number,String],icon:String,iconRight:String,round:Boolean,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],align:{default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},computed:{style:function(){if(!1===this.fab&&!1===this.fabMini)return this.sizeStyle},isRounded:function(){return!0===this.rounded||!0===this.fab||!0===this.fabMini},isActionable:function(){return!0!==this.disable&&!0!==this.loading},computedTabIndex:function(){return!0===this.isActionable?this.tabindex||0:-1},hasRouterLink:function(){return!0!==this.disable&&void 0!==this.to&&null!==this.to&&""!==this.to},isLink:function(){return"a"===this.type||!0===this.hasRouterLink},design:function(){return!0===this.flat?"flat":!0===this.outline?"outline":!0===this.push?"push":!0===this.unelevated?"unelevated":"standard"},attrs:function(){var t={tabindex:this.computedTabIndex};return"a"!==this.type&&(t.type=this.type||"button"),!0===this.hasRouterLink?(t.href=this.$router.resolve(this.to).href,t.role="link"):t.role="a"===this.type?"link":"button",!0===this.loading&&void 0!==this.percentage&&(t.role="progressbar",t["aria-valuemin"]=0,t["aria-valuemax"]=100,t["aria-valuenow"]=this.computedPercentage),!0===this.disable&&(t.disabled="",t["aria-disabled"]=""),t},classes:function(){var t;return void 0!==this.color?t=!0===this.flat||!0===this.outline?"text-"+(this.textColor||this.color):"bg-"+this.color+" text-"+(this.textColor||"white"):this.textColor&&(t="text-"+this.textColor),"q-btn--"+this.design+" q-btn--"+(!0===this.round?"round":"rectangle"+(!0===this.isRounded?" q-btn--rounded":""))+(void 0!==t?" "+t:"")+(!0===this.isActionable?" q-btn--actionable q-focusable q-hoverable":!0===this.disable?" disabled":"")+(!0===this.fab?" q-btn--fab":!0===this.fabMini?" q-btn--fab-mini":"")+(!0===this.noCaps?" q-btn--no-uppercase":"")+(!0===this.noWrap?"":" q-btn--wrap")+(!0===this.dense?" q-btn--dense":"")+(!0===this.stretch?" no-border-radius self-stretch":"")+(!0===this.glossy?" glossy":"")},innerClasses:function(){return this.alignClass+(!0===this.stack?" column":" row")+(!0===this.noWrap?" no-wrap text-no-wrap":"")+(!0===this.loading?" q-btn__content--hidden":"")}}},wt=["left","right","up","down","horizontal","vertical"],St={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0,all:!0},Ct=!1===i&&!0!==o&&(!0===c.is.ios||window.navigator.vendor.toLowerCase().indexOf("apple")>-1)?function(){return document}:function(t){return t},xt=h.passiveCapture,kt=void 0,qt=void 0,$t=void 0,Tt={role:"img","aria-hidden":"true"},Mt=t.extend({name:"QBtn",mixins:[yt],props:{percentage:Number,darkPercentage:Boolean},computed:{hasLabel:function(){return void 0!==this.label&&null!==this.label&&""!==this.label},computedRipple:function(){return!1!==this.ripple&&Object.assign({keyCodes:[]},!0===this.ripple?{}:this.ripple)},percentageStyle:function(){var t=Math.max(0,Math.min(100,this.percentage));if(t>0)return{transition:"transform 0.6s",transform:"translateX("+(t-100)+"%)"}}},methods:{click:function(t){var e=this;if(void 0!==t){if(!0===t.defaultPrevented)return;var i=document.activeElement;if("submit"===this.type&&(!0===this.$q.platform.is.ie&&(t.clientX<0||t.clientY<0)||i!==document.body&&!1===this.$el.contains(i)&&!1===i.contains(this.$el))){this.$el.focus();var s=function(){document.removeEventListener("keydown",nr,!0),document.removeEventListener("keyup",s,xt),void 0!==e.$el&&e.$el.removeEventListener("blur",s,xt)};document.addEventListener("keydown",nr,!0),document.addEventListener("keyup",s,xt),this.$el.addEventListener("blur",s,xt)}if(!0===this.hasRouterLink){if(!0===t.ctrlKey||!0===t.shiftKey||!0===t.altKey||!0===t.metaKey)return;nr(t)}}var n=function(){var t=e.$router[!0===e.replace?"replace":"push"](e.to);void 0!==t&&"function"==typeof t.catch&&t.catch(Zo)};this.$emit("click",t,n),!0===this.hasRouterLink&&!1!==t.navigate&&n()},__onKeydown:function(t){!0===br(t,[13,32])&&(nr(t),qt!==this.$el&&(void 0!==qt&&this.__cleanup(),this.$el.focus(),qt=this.$el,this.$el.classList.add("q-btn--active"),document.addEventListener("keyup",this.__onPressEnd,!0),this.$el.addEventListener("blur",this.__onPressEnd,xt))),this.$emit("keydown",t)},__onTouchstart:function(t){if(kt!==this.$el){void 0!==kt&&this.__cleanup(),kt=this.$el;var e=this.touchTargetEl=Ct(t.target);e.addEventListener("touchcancel",this.__onPressEnd,xt),e.addEventListener("touchend",this.__onPressEnd,xt)}this.$emit("touchstart",t)},__onMousedown:function(t){$t!==this.$el&&(void 0!==$t&&this.__cleanup(),$t=this.$el,this.$el.classList.add("q-btn--active"),document.addEventListener("mouseup",this.__onPressEnd,xt)),this.$emit("mousedown",t)},__onPressEnd:function(t){if(void 0===t||"blur"!==t.type||document.activeElement!==this.$el){if(void 0!==t&&"keyup"===t.type){if(qt===this.$el&&!0===br(t,[13,32])){var e=new MouseEvent("click",t);e.qKeyEvent=!0,!0===t.defaultPrevented&&sr(e),!0===t.cancelBubble&&ir(e),this.$el.dispatchEvent(e),nr(t),t.qKeyEvent=!0}this.$emit("keyup",t)}this.__cleanup()}},__cleanup:function(t){if(!0===t||kt!==this.$el&&$t!==this.$el||void 0===this.$refs.blurTarget||this.$refs.blurTarget===document.activeElement||this.$refs.blurTarget.focus(),kt===this.$el){var e=this.touchTargetEl;e.removeEventListener("touchcancel",this.__onPressEnd,xt),e.removeEventListener("touchend",this.__onPressEnd,xt),kt=this.touchTargetEl=void 0}$t===this.$el&&(document.removeEventListener("mouseup",this.__onPressEnd,xt),$t=void 0),qt===this.$el&&(document.removeEventListener("keyup",this.__onPressEnd,!0),void 0!==this.$el&&this.$el.removeEventListener("blur",this.__onPressEnd,xt),qt=void 0),void 0!==this.$el&&this.$el.classList.remove("q-btn--active")},__onLoadingEvt:function(t){nr(t),t.qSkipRipple=!0}},beforeDestroy:function(){this.__cleanup(!0)},render:function(t){var e=[],i={staticClass:"q-btn q-btn-item non-selectable no-outline",class:this.classes,style:this.style,attrs:this.attrs};!0===this.isActionable&&(i.on=Object.assign({},this.$listeners,{click:this.click,keydown:this.__onKeydown,mousedown:this.__onMousedown}),!0===this.$q.platform.has.touch&&(i.on.touchstart=this.__onTouchstart)),!0!==this.disable&&!1!==this.ripple&&(i.directives=[{name:"ripple",value:this.computedRipple,modifiers:{center:this.round}}]),void 0!==this.icon&&e.push(t(et,{attrs:Tt,props:{name:this.icon,left:!1===this.stack&&!0===this.hasLabel}})),!0===this.hasLabel&&e.push(t("div",[this.label])),e=Mr(e,this,"default"),void 0!==this.iconRight&&!1===this.round&&e.push(t(et,{attrs:Tt,props:{name:this.iconRight,right:!1===this.stack&&!0===this.hasLabel}}));var s=[t("div",{staticClass:"q-focus-helper",ref:"blurTarget",attrs:{tabindex:-1}})];return!0===this.loading&&(i.on={click:this.__onLoadingEvt,keyup:this.__onLoadingEvt},void 0!==this.percentage&&s.push(t("div",{staticClass:"q-btn__progress absolute-full overflow-hidden"},[t("div",{staticClass:"q-btn__progress-indicator fit",class:!0===this.darkPercentage?"q-btn__progress--dark":"",style:this.percentageStyle})]))),s.push(t("div",{staticClass:"q-btn__wrapper col row q-anchor--skip"},[t("div",{staticClass:"q-btn__content text-center col items-center q-anchor--skip",class:this.innerClasses},e)])),null!==this.loading&&s.push(t("transition",{props:{name:"q-transition--fade"}},!0===this.loading?[t("div",{key:"loading",staticClass:"absolute-full flex flex-center"},void 0!==this.$scopedSlots.loading?this.$scopedSlots.loading():[t(vt)])]:void 0)),t(!0===this.isLink?"a":"button",i,s)}}),Bt=t.extend({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},computed:{classes:function(){var t=this;return["unelevated","outline","flat","rounded","push","stretch","glossy"].filter(function(e){return!0===t[e]}).map(function(t){return"q-btn-group--"+t}).join(" ")}},render:function(t){return t("div",{staticClass:"q-btn-group row no-wrap "+(!0===this.spread?"q-btn-group--spread":"inline"),class:this.classes,on:this.$listeners},$r(this,"default"))}}),Pt={props:{target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean},watch:{contextMenu:function(t){void 0!==this.anchorEl&&(this.__unconfigureAnchorEl(),this.__configureAnchorEl(t))},target:function(){void 0!==this.anchorEl&&this.__unconfigureAnchorEl(),this.__pickAnchorEl()},noParentEvent:function(t){void 0!==this.anchorEl&&(!0===t?this.__unconfigureAnchorEl():this.__configureAnchorEl())}},methods:{__showCondition:function(t){return void 0!==this.anchorEl&&(void 0===t||(void 0===t.touches||t.touches.length<=1))},__contextClick:function(t){var e=this;this.hide(t),this.$nextTick(function(){e.show(t)}),sr(t)},__toggleKey:function(t){!0===br(t,13)&&this.toggle(t)},__mobileCleanup:function(t){this.anchorEl.classList.remove("non-selectable"),clearTimeout(this.touchTimer),!0===this.showing&&void 0!==t&&Vr()},__mobilePrevent:sr,__mobileTouch:function(t){var e=this;if(this.__mobileCleanup(t),!0===this.__showCondition(t)){this.hide(t),this.anchorEl.classList.add("non-selectable");var i=Ct(t.target);Ir(this,"anchor",[[i,"touchmove","__mobileCleanup","passive"],[i,"touchend","__mobileCleanup","passive"],[i,"touchcancel","__mobileCleanup","passive"],[this.anchorEl,"contextmenu","__mobilePrevent","notPassive"]]),this.touchTimer=setTimeout(function(){e.show(t)},300)}},__unconfigureAnchorEl:function(){Fr(this,"anchor")},__configureAnchorEl:function(t){(void 0===t&&(t=this.contextMenu),!0!==this.noParentEvent&&void 0!==this.anchorEl)&&Ir(this,"anchor",!0===t?!0===this.$q.platform.is.mobile?[[this.anchorEl,"touchstart","__mobileTouch","passive"]]:[[this.anchorEl,"click","hide","passive"],[this.anchorEl,"contextmenu","__contextClick","notPassive"]]:[[this.anchorEl,"click","toggle","passive"],[this.anchorEl,"keyup","__toggleKey","passive"]])},__setAnchorEl:function(t){for(this.anchorEl=t;this.anchorEl.classList.contains("q-anchor--skip");)this.anchorEl=this.anchorEl.parentNode;this.__configureAnchorEl()},__pickAnchorEl:function(){if(!1===this.target||""===this.target)this.anchorEl=void 0;else if(!0===this.target)this.__setAnchorEl(this.parentEl);else{var t=this.target;if("string"==typeof this.target)try{t=document.querySelector(this.target)}catch(e){t=void 0}void 0!==t&&null!==t?(this.anchorEl=!0===t._isVue&&void 0!==t.$el?t.$el:t,this.__configureAnchorEl()):(this.anchorEl=void 0,console.error('Anchor: target "'+this.target+'" not found',this))}},__changeScrollEvent:function(t,e){var i=(void 0!==e?"add":"remove")+"EventListener",s=void 0!==e?e:this.__scrollFn;t!==window&&t[i]("scroll",s,h.passive),window[i]("scroll",s,h.passive),this.__scrollFn=e}},created:function(){var t=this;"function"==typeof this.__configureScrollTarget&&"function"==typeof this.__unconfigureScrollTarget&&(this.noParentEventWatcher=this.$watch("noParentEvent",function(){void 0!==t.__scrollTarget&&(t.__unconfigureScrollTarget(),t.__configureScrollTarget())}))},mounted:function(){this.parentEl=this.$el.parentNode,this.__pickAnchorEl(),!0===this.value&&void 0===this.anchorEl&&this.$emit("input",!1)},beforeDestroy:function(){clearTimeout(this.touchTimer),void 0!==this.noParentEventWatcher&&this.noParentEventWatcher(),void 0!==this.__anchorCleanup&&this.__anchorCleanup(),this.__unconfigureAnchorEl()}},Lt={methods:{__nextTick:function(t){this.__tickFn=t},__prepareTick:function(){var t=this;if(void 0!==this.__tickFn){var e=this.__tickFn;this.$nextTick(function(){t.__tickFn===e&&(t.__tickFn(),t.__tickFn=void 0)})}},__clearTick:function(){this.__tickFn=void 0},__setTimeout:function(t,e){clearTimeout(this.__timer),this.__timer=setTimeout(t,e)},__clearTimeout:function(){clearTimeout(this.__timer)}},beforeDestroy:function(){this.__tickFn=void 0,clearTimeout(this.__timer)}},zt={mixins:[Lt],props:{value:{type:Boolean,default:void 0}},data:function(){return{showing:!1}},watch:{value:function(t){this.__processModelChange(t)},$route:function(){!0===this.hideOnRouteChange&&!0===this.showing&&this.hide()}},methods:{toggle:function(t){this[!0===this.showing?"hide":"show"](t)},show:function(t){var e=this;!0===this.disable||void 0!==this.__showCondition&&!0!==this.__showCondition(t)||(void 0!==this.$listeners.input&&!1===i&&(this.$emit("input",!0),this.payload=t,this.$nextTick(function(){e.payload===t&&(e.payload=void 0)})),void 0!==this.value&&void 0!==this.$listeners.input&&!0!==i||this.__processShow(t))},__processShow:function(t){!0!==this.showing&&(void 0!==this.__preparePortal&&this.__preparePortal(),this.showing=!0,this.$emit("before-show",t),void 0!==this.__show?(this.__clearTick(),this.__show(t),this.__prepareTick()):this.$emit("show",t))},hide:function(t){var e=this;!0!==this.disable&&(void 0!==this.$listeners.input&&!1===i&&(this.$emit("input",!1),this.payload=t,this.$nextTick(function(){e.payload===t&&(e.payload=void 0)})),void 0!==this.value&&void 0!==this.$listeners.input&&!0!==i||this.__processHide(t))},__processHide:function(t){!1!==this.showing&&(this.showing=!1,this.$emit("before-hide",t),void 0!==this.__hide?(this.__clearTick(),this.__hide(t),this.__prepareTick()):this.$emit("hide",t))},__processModelChange:function(t){!0===this.disable&&!0===t?void 0!==this.$listeners.input&&this.$emit("input",!1):!0===t!==this.showing&&this["__process"+(!0===t?"Show":"Hide")](this.payload)}}},Ot={inheritAttrs:!1,props:{contentClass:[Array,String,Object],contentStyle:[Array,String,Object]},methods:{__showPortal:function(){void 0!==this.__portal&&document.body.appendChild(this.__portal.$el)},__hidePortal:function(){void 0!==this.__portal&&(this.__portal.$destroy(),this.__portal.$el.remove(),this.__portal=void 0)},__preparePortal:function(){var e=this;void 0===this.__portal&&(this.__portal=new t({name:"QPortal",parent:this,inheritAttrs:!1,render:function(t){return e.__renderPortal(t)},components:this.$options.components,directives:this.$options.directives}).$mount())}},render:function(){void 0!==this.__portal&&this.__portal.$forceUpdate()},beforeDestroy:function(){this.__hidePortal()}},Et={props:{transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"}},data:function(){return{transitionState:this.showing}},watch:{showing:function(t){var e=this;this.transitionShow!==this.transitionHide&&this.$nextTick(function(){e.transitionState=t})}},computed:{transition:function(){return"q-transition--"+(!0===this.transitionState?this.transitionHide:this.transitionShow)}}},Dt=h.notPassiveCapture,At=h.passiveCapture,It={click:[],focus:[]},Ft={name:"click-outside",bind:function(t,e,i){var s=e.value,n=e.arg,o=i.componentInstance||i.context,r={trigger:s,toggleEl:n,handler:function(t){var e=t.target;if(!(void 0===e||8===e.nodeType||e===document.documentElement||!1!==e.classList.contains("no-pointer-events")||void 0!==r.toggleEl&&!1!==r.toggleEl.contains(e)||e!==document.body&&!1!==function(t,e){for(var i=t;void 0!==i;i=i.$parent)if(i===e)return!0;return!1}(function(t){for(var e=t;null!==e;e=e.parentNode){if(null===e.__vue__)return;if(void 0!==e.__vue__)return e.__vue__}}(e),o)))return t.qClickOutside=!0,r.trigger(t)}};t.__qclickoutside&&(t.__qclickoutside_old=t.__qclickoutside),t.__qclickoutside=r,0===It.click.length&&(document.addEventListener("mousedown",Wr,Dt),document.addEventListener("touchstart",Wr,Dt),document.addEventListener("focusin",Wr,At)),It.click.push(r.handler),r.timerFocusin=setTimeout(function(){It.focus.push(r.handler)},500)},update:function(t,e){var i=e.value,s=e.oldValue,n=e.arg,o=t.__qclickoutside;i!==s&&(o.trigger=i),n!==o.arg&&(o.toggleEl=n)},unbind:function(t){var e=t.__qclickoutside_old||t.__qclickoutside;if(void 0!==e){clearTimeout(e.timerFocusin);var i=It.click.findIndex(function(t){return t===e.handler}),s=It.focus.findIndex(function(t){return t===e.handler});i>-1&&It.click.splice(i,1),s>-1&&It.focus.splice(s,1),0===It.click.length&&(clearTimeout(p),document.removeEventListener("mousedown",Wr,Dt),document.removeEventListener("touchstart",Wr,Dt),document.removeEventListener("focusin",Wr,At)),delete t[t.__qclickoutside_old?"__qclickoutside_old":"__qclickoutside"]}}},Rt=!1===i?[null,document,document.body,document.scrollingElement,document.documentElement]:[],Vt={getScrollTarget:Yr,getScrollHeight:Ur,getScrollWidth:function(t){return(t===window?document.body:t).scrollWidth},getScrollPosition:Kr,getHorizontalScrollPosition:Xr,animScrollTo:Gr,animHorizontalScrollTo:Zr,setScrollPosition:ea,setHorizontalScrollPosition:ia,getScrollbarWidth:sa,hasScrollbar:na},Nt=[],jt={__install:function(){this.__installed=!0,window.addEventListener("keyup",function(t){0!==Nt.length&&!0===br(t,27)&&Nt[Nt.length-1].fn(t)})},register:function(t,e){!0===t.$q.platform.is.desktop&&(!0!==this.__installed&&this.__install(),Nt.push({comp:t,fn:e}))},pop:function(t){if(!0===t.$q.platform.is.desktop){var e=Nt.findIndex(function(e){return e.comp===t});e>-1&&Nt.splice(e,1)}}},Ht=t.extend({name:"QMenu",mixins:[nt,Pt,zt,Ot,Et],directives:{ClickOutside:Ft},props:{persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:oa},self:{type:String,validator:oa},offset:{type:Array,validator:ra},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},computed:{horizSide:function(){return!0===this.$q.lang.rtl?"right":"left"},anchorOrigin:function(){return aa(this.anchor||(!0===this.cover?"center middle":"bottom "+this.horizSide))},selfOrigin:function(){return!0===this.cover?this.anchorOrigin:aa(this.self||"top "+this.horizSide)},menuClass:function(){return(!0===this.square?" q-menu--square":"")+(!0===this.isDark?" q-menu--dark q-dark":"")},hideOnRouteChange:function(){return!0!==this.persistent}},methods:{focus:function(){var t=void 0!==this.__portal&&void 0!==this.__portal.$refs?this.__portal.$refs.inner:void 0;void 0!==t&&!0!==t.contains(document.activeElement)&&(t=t.querySelector("[autofocus], [data-autofocus]")||t).focus()},__show:function(t){var e=this;if(this.__refocusTarget=!1===this.noRefocus&&null!==document.activeElement?document.activeElement:void 0,jt.register(this,function(){!0!==e.persistent&&(e.$emit("escape-key"),e.hide())}),this.__showPortal(),this.__configureScrollTarget(),this.absoluteOffset=void 0,void 0!==t&&(this.touchPosition||this.contextMenu)){var i=tr(t);if(void 0!==i.left){var s=this.anchorEl.getBoundingClientRect(),n=s.top,o=s.left;this.absoluteOffset={left:i.left-o,top:i.top-n}}}void 0===this.unwatch&&(this.unwatch=this.$watch(function(){return e.$q.screen.width+"|"+e.$q.screen.height},this.updatePosition)),this.$el.dispatchEvent(rr("popup-show",{bubbles:!0})),!0!==this.noFocus&&null!==document.activeElement&&document.activeElement.blur(),this.__nextTick(function(){e.updatePosition(),!0!==e.noFocus&&e.focus()}),this.__setTimeout(function(){!0===e.$q.platform.is.ios&&(e.__avoidAutoClose=e.autoClose,e.__portal.$el.click()),e.updatePosition(),e.$emit("show",t)},300)},__hide:function(t){var e=this;this.__anchorCleanup(!0),void 0===this.__refocusTarget||null===this.__refocusTarget||void 0!==t&&!0===t.qClickOutside||this.__refocusTarget.focus(),this.$el.dispatchEvent(rr("popup-hide",{bubbles:!0})),this.__setTimeout(function(){e.__hidePortal(),e.$emit("hide",t)},300)},__anchorCleanup:function(t){this.absoluteOffset=void 0,void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0),!0!==t&&!0!==this.showing||(jt.pop(this),this.__unconfigureScrollTarget())},__unconfigureScrollTarget:function(){void 0!==this.__scrollTarget&&(this.__changeScrollEvent(this.__scrollTarget),this.__scrollTarget=void 0)},__configureScrollTarget:function(){void 0===this.anchorEl&&void 0===this.scrollTarget||(this.__scrollTarget=Yr(this.anchorEl,this.scrollTarget),this.__changeScrollEvent(this.__scrollTarget,this.updatePosition))},__onAutoClose:function(t){!0!==this.__avoidAutoClose?(Nr(this,t),void 0!==this.$listeners.click&&this.$emit("click",t)):this.__avoidAutoClose=!1},updatePosition:function(){if(void 0!==this.anchorEl&&void 0!==this.__portal){var t=this.__portal.$el;8!==t.nodeType?la({el:t,offset:this.offset,anchorEl:this.anchorEl,anchorOrigin:this.anchorOrigin,selfOrigin:this.selfOrigin,absoluteOffset:this.absoluteOffset,fit:this.fit,cover:this.cover,maxHeight:this.maxHeight,maxWidth:this.maxWidth}):setTimeout(this.updatePosition,25)}},__onClickOutside:function(t){if(!0!==this.persistent&&!0===this.showing){var e=t.target.classList;return this.hide(t),("touchstart"===t.type||e.contains("q-dialog__backdrop"))&&nr(t),!0}},__renderPortal:function(t){var e=Object.assign({},this.$listeners,{input:ir,"popup-show":ir,"popup-hide":ir});return!0===this.autoClose&&(e.click=this.__onAutoClose),t("transition",{props:{name:this.transition}},[!0===this.showing?t("div",{ref:"inner",staticClass:"q-menu q-position-engine scroll"+this.menuClass,class:this.contentClass,style:this.contentStyle,attrs:Object.assign({},{tabindex:-1},this.$attrs),on:e,directives:[{name:"click-outside",value:this.__onClickOutside,arg:this.anchorEl}]},$r(this,"default")):null])}},mounted:function(){this.__processModelChange(this.value)},beforeDestroy:function(){!0===this.showing&&void 0!==this.anchorEl&&this.anchorEl.dispatchEvent(rr("popup-hide",{bubbles:!0}))}}),Qt=t.extend({name:"QBtnDropdown",mixins:[yt],props:{value:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom right"},menuSelf:{type:String,default:"top right"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean},data:function(){return{showing:this.value}},watch:{value:function(t){void 0!==this.$refs.menu&&this.$refs.menu[t?"show":"hide"]()}},render:function(t){var e=this,i=$r(this,"label",[]),s={"aria-expanded":!0===this.showing?"true":"false","aria-haspopup":!0},n=[t(et,{props:{name:this.dropdownIcon||this.$q.iconSet.arrow.dropdown},staticClass:"q-btn-dropdown__arrow",class:{"rotate-180":this.showing,"q-btn-dropdown__arrow-container":!1===this.split}})];if(!0!==this.disableDropdown&&n.push(t(Ht,{ref:"menu",props:{cover:this.cover,fit:!0,persistent:this.persistent,autoClose:this.autoClose,anchor:this.menuAnchor,self:this.menuSelf,offset:this.menuOffset,contentClass:this.contentClass,contentStyle:this.contentStyle,separateClosePopup:!0},on:Hr(this,"menu",{"before-show":function(t){e.showing=!0,e.$emit("before-show",t)},show:function(t){e.$emit("show",t),e.$emit("input",!0)},"before-hide":function(t){e.showing=!1,e.$emit("before-hide",t)},hide:function(t){e.$emit("hide",t),e.$emit("input",!1)}})},$r(this,"default"))),!1===this.split)return t(Mt,{class:"q-btn-dropdown q-btn-dropdown--simple",props:Object.assign({},this.$props,{disable:!0===this.disable||!0===this.disableMainBtn,noWrap:!0,round:!1}),attrs:s,on:Hr(this,"nonSpl",{click:function(t){e.$emit("click",t)}})},i.concat(n));var o=t(Mt,{class:"q-btn-dropdown--current",props:Object.assign({},this.$props,{disable:!0===this.disable||!0===this.disableMainBtn,noWrap:!0,iconRight:this.iconRight,round:!1}),on:Hr(this,"spl",{click:function(t){e.hide(),e.$emit("click",t)}})},i);return t(Bt,{props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,unelevated:this.unelevated,glossy:this.glossy,stretch:this.stretch},staticClass:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item"},[o,t(Mt,{staticClass:"q-btn-dropdown__arrow-container",attrs:s,props:{disable:!0===this.disable||!0===this.disableDropdown,outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,size:this.size,color:this.color,textColor:this.textColor,dense:this.dense,ripple:this.ripple}},n)])},methods:{toggle:function(t){this.$refs.menu&&this.$refs.menu.toggle(t)},show:function(t){this.$refs.menu&&this.$refs.menu.show(t)},hide:function(t){this.$refs.menu&&this.$refs.menu.hide(t)}},mounted:function(){!0===this.value&&this.show()}}),Wt={props:{name:String},computed:{formAttrs:function(){return{type:"hidden",name