UNPKG

quasar

Version:

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

6 lines 414 kB
/*! * Quasar Framework v1.0.5 * (c) 2016-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,n=!1,s=i,o={has:{touch:!1,webStorage:!1},within:{iframe:!1},parseSSR:function(t){if(t){var e=(t.req.headers["user-agent"]||t.req.headers["User-Agent"]||"").toLowerCase();return{userAgent:e,is:gs(e),has:this.has,within:this.within}}var i=vs();return Object.assign({},{userAgent:i,is:gs(i)},bs())},install:function(e,o){var r=this;!0!==i?(this.userAgent=vs(),this.is=gs(this.userAgent),!0===n?(o.takeover.push(function(t){s=n=!1,Object.assign(t.platform,bs())}),t.util.defineReactive(e,"platform",this)):(Object.assign(this,bs()),e.platform=this)):o.server.push(function(t,e){t.platform=r.parseSSR(e.ssr)})}};Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var i=arguments;if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),s=1;s<arguments.length;s++){var o=i[s];if(void 0!==o&&null!==o)for(var r=Object.keys(Object(o)),a=0,l=r.length;a<l;a++){var c=r[a],u=Object.getOwnPropertyDescriptor(o,c);void 0!==u&&u.enumerable&&(n[c]=o[c])}}return n}}),Number.isInteger||(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}),Array.prototype.includes||(Array.prototype.includes=function(t,e){var i=Object(this),n=parseInt(i.length,10)||0;if(0===n)return!1;var s,o,r=parseInt(e,10)||0;for(r>=0?s=r:(s=n+r)<0&&(s=0);s<n;){if(t===(o=i[s])||t!=t&&o!=o)return!0;s++}return!1}),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var i=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>i.length)&&(e=i.length),e-=t.length;var n=i.indexOf(t,e);return-1!==n&&n===e}),!1===i&&("function"!=typeof Element.prototype.matches&&(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),i=0;e[i]&&e[i]!==this;)++i;return Boolean(e[i])}),"function"!=typeof Element.prototype.closest&&(Element.prototype.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})})),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,s=arguments[1],o=0;o<n;o++)if(e=i[o],t.call(s,e,o,i))return e}});var r={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{var a=Object.defineProperty({},"passive",{get:function(){Object.assign(r,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,a),window.removeEventListener("qtest",null,a)}catch(t){}var l,c,u=40,h=800,d={listenOpts:r,leftClick:ys,middleClick:function(t){return 1===t.button},rightClick:function(t){return 2===t.button},position:Cs,getEventPath:ws,getMouseWheelDistance:xs,stop:ks,prevent:Ss,stopAndPrevent:qs,preventDraggable:$s,create:Ms},p=["sm","md","lg","xl"],f={width:0,height:0,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:function(){},setDebounce:function(){},install:function(e,s){var o=this;if(!0!==i){var a,l=function(t){window.innerHeight!==o.height&&(o.height=window.innerHeight);var e=window.innerWidth;if(e!==o.width)o.width=e;else if(!0!==t)return;var i=o.sizes;o.gt.xs=e>=i.sm,o.gt.sm=e>=i.md,o.gt.md=e>=i.lg,o.gt.lg=e>=i.xl,o.lt.sm=e<i.sm,o.lt.md=e<i.md,o.lt.lg=e<i.lg,o.lt.xl=e<i.xl,o.xs=o.lt.sm,o.sm=o.gt.xs&&o.lt.md,o.md=o.gt.sm&&o.lt.lg,o.lg=o.gt.md&&o.lt.xl,o.xl=o.gt.lg},c={},u=16;this.setSizes=function(t){p.forEach(function(e){void 0!==t[e]&&(c[e]=t[e])})},this.setDebounce=function(t){u=t};var h=function(){var t=getComputedStyle(document.body);t.getPropertyValue("--q-size-sm")&&p.forEach(function(e){o.sizes[e]=parseInt(t.getPropertyValue("--q-size-"+e),10)}),o.setSizes=function(t){p.forEach(function(e){t[e]&&(o.sizes[e]=t[e])}),l(!0)},o.setDebounce=function(t){var e=function(){l()};a&&window.removeEventListener("resize",a,r.passive),a=t>0?Ts(e,t):e,window.addEventListener("resize",a,r.passive)},o.setDebounce(u),Object.keys(c).length>0?(o.setSizes(c),c=void 0):l()};!0===n?s.takeover.push(h):h(),t.util.defineReactive(e,"screen",this)}else e.screen=this}},m=function(){return!0},v={__history:[],add:function(){},remove:function(){},install:function(t,e){var n=this;if(!0!==i&&!0===t.platform.is.cordova){this.add=function(t){void 0===t.condition&&(t.condition=m),n.__history.push(t)},this.remove=function(t){var e=n.__history.indexOf(t);e>=0&&n.__history.splice(e,1)};var s=void 0===e.cordova||!1!==e.cordova.backButtonExit;document.addEventListener("deviceready",function(){document.addEventListener("backbutton",function(){if(n.__history.length){var t=n.__history[n.__history.length-1];!0===t.condition()&&(n.__history.pop(),t.handler())}else s&&"#/"===window.location.hash?navigator.app.exitApp():window.history.back()},!1)})}}},g={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",header1:"Header 1",header2:"Header 2",header3:"Header 3",header4:"Header 4",header5:"Header 5",header6:"Header 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"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}},_={install:function(e,n,s){var o=this;!0===i&&n.server.push(function(t,e){var i={lang:t.lang.isoName,dir:!0===t.lang.rtl?"rtl":"ltr"},n=e.ssr.setHtmlAttrs;"function"==typeof n?n(i):e.ssr.Q_HTML_ATTRS=Object.keys(i).map(function(t){return t+"="+i[t]}).join(" ")}),this.set=function(n){if(void 0===n&&(n=g),n.set=o.set,n.getLocale=o.getLocale,n.rtl=n.rtl||!1,!1===i){var s=document.documentElement;s.setAttribute("dir",n.rtl?"rtl":"ltr"),s.setAttribute("lang",n.isoName)}!0===i||void 0!==e.lang?e.lang=n:t.util.defineReactive(e,"lang",n),o.isoName=n.isoName,o.nativeName=n.nativeName,o.props=n},this.set(s)},getLocale:function(){if(!0!==i){var t=navigator.language||navigator.languages[0]||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage;return t?t.toLowerCase():void 0}}},b=/^\s*rgb(a)?\s*\((\s*(\d+)\s*,\s*?){2}(\d+)\s*,?\s*([01]?\.?\d*?)?\s*\)\s*$/,y={rgbToHex:Bs,hexToRgb:Es,hsvToRgb:Ps,rgbToHsv:zs,textToRgb:Os,lighten:As,luminosity:Ds,setBrand:Rs,getBrand:Is},C={install:function(t,e,n){!0!==i?(n.brand&&function(t){for(var e in t)Rs(e,t[e])}(n.brand),function(t,e){var i=Ns(t,e);!0===t.is.ie&&11===t.is.versionNumber?i.forEach(function(t){return document.body.classList.add(t)}):document.body.classList.add.apply(document.body.classList,i),!0===t.is.ios&&document.body.addEventListener("touchstart",function(){})}(t.platform,n)):e.server.push(function(t,e){var i=Ns(t.platform,n),s=e.ssr.setBodyClasses;"function"==typeof s?s(i):e.ssr.Q_BODY_CLASSES=i.join(" ")})}},w={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",navigationIcon:"lens",thumbnails:"view_carousel"},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",header:"format_size",code:"code",size:"format_size",font:"font_download"},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"}},x={__installed:!1,install:function(e,n){var s=this;this.set=function(n){void 0===n&&(n=w),n.set=s.set,!0===i||void 0!==e.iconSet?e.iconSet=n:t.util.defineReactive(e,"iconSet",n),s.name=n.name,s.def=n},this.set(n)}},k={server:[],takeover:[]},S={version:"1.0.5"},q=["B","KB","MB","GB","TB","PB"],$={humanStorageSize:Fs,capitalize:Hs,between:js,normalizeToInterval:Qs,pad:Vs},M=i?null:XMLHttpRequest,T=i?null:M.prototype.send,B={start:[],stop:[]},L=0,E=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--"+this.position,"bg-"+this.color,this.animate?"":"no-transition"]},style:function(){var t=this.onScreen,e=function(t){var e=t.p,i=t.pos,n=t.active,s=t.horiz,o=t.reverse,r=t.dir,a=1,l=1;return s?(o&&(a=-1),"bottom"===i&&(l=-1),{transform:"translate3d("+a*(e-100)+"%,"+(n?0:-200*l)+"%,0)"}):(o&&(l=-1),"right"===i&&(a=-1),{transform:"translate3d("+(n?0:r*a*-200)+"%,"+l*(e-100)+"%,0)"})}({p:this.progress,pos:this.position,active:t,horiz:this.horizontal,reverse:this.$q.lang.rtl&&["top","bottom"].includes(this.position)?!this.reverse:this.reverse,dir: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"}},methods:{start:function(t){var e=this;void 0===t&&(t=300),this.calls++,this.calls>1||(clearTimeout(this.timer),this.$emit("start"),this.onScreen||(this.progress=0,this.onScreen=!0,this.animate=!1,this.timer=setTimeout(function(){e.animate=!0,e.__work(t)},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),js(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(t){var e=this;this.progress<100&&(this.timer=setTimeout(function(){e.increment(),e.__work(t)},t))}},mounted:function(){this.skipHijack||(this.hijacked=!0,function(t,e){function i(){B.stop.map(function(t){t()})}B.start.push(t),B.stop.push(e),++L>1||(M.prototype.send=function(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];B.start.map(function(t){t()}),this.addEventListener("abort",i,!1),this.addEventListener("readystatechange",function(){4===t.readyState&&i()},!1),T.apply(this,e)})}(this.start,this.stop))},beforeDestroy:function(){var t,e;clearTimeout(this.timer),this.hijacked&&(t=this.start,e=this.stop,B.start=B.start.filter(function(e){return e!==t}),B.stop=B.stop.filter(function(t){return t!==e}),(L=Math.max(0,L-1))||(M.prototype.send=T))},render:function(t){return t("div",{staticClass:"q-loading-bar",class:this.classes,style:this.style})}}),P=t.extend({name:"QIcon",props:{name:String,color:String,size:String,left:Boolean,right:Boolean},computed:{type:function(){var t,e=this.name;if(!e)return{cls:void 0,content:void 0};var i="q-icon"+(!0===this.left?" on-left":"")+(!0===this.right?" on-right":"");if(!0===e.startsWith("img:"))return{img:!0,cls:i,src:e.substring(4)};var n=" ";return/^fa[s|r|l|b]{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+" "+i+(void 0!==this.color?" text-"+this.color:""),content:n}},style:function(){if(void 0!==this.size)return{fontSize:this.size}}},render:function(t){return!0===this.type.img?t("img",{staticClass:this.type.cls,style:this.style,on:this.$listeners,attrs:{src:this.type.src}}):t("i",{staticClass:this.type.cls,style:this.style,on:this.$listeners,attrs:{"aria-hidden":!0}},[this.type.content,Ws(this,"default")])}}),z=t.extend({name:"QAvatar",props:{size:String,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},style:function(){if(this.size)return{fontSize:this.size}},contentStyle:function(){if(this.fontSize)return{fontSize:this.fontSize}}},methods:{__getContent:function(t){return void 0!==this.icon?[t(P,{props:{name:this.icon}})].concat(Ws(this,"default")):Ws(this,"default")}},render:function(t){return t("div",{staticClass:"q-avatar",style:this.style,on:this.$listeners},[t("div",{staticClass:"q-avatar__content row flex-center overflow-hidden",class:this.contentClass,style:this.contentStyle},[this.__getContent(t)])])}}),O=t.extend({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine: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(){return"q-badge flex inline items-center no-wrap q-badge--"+(!0===this.multiLine?"multi":"single")+"-line"+(void 0!==this.color?" bg-"+this.color:"")+(void 0!==this.textColor?" text-"+this.textColor:"")+(!0===this.floating?" q-badge--floating":"")+(!0===this.transparent?" q-badge--transparent":"")}},render:function(t){return t("div",{style:this.style,class:this.classes,on:this.$listeners},void 0!==this.label?[this.label]:Ws(this,"default"))}}),A=t.extend({name:"QBanner",props:{inlineActions:Boolean,dense:Boolean,rounded:Boolean},render:function(t){var e=Ws(this,"action");return t("div",{staticClass:"q-banner row items-center",class:{"q-banner--top-padding":void 0!==e&&!this.inlineActions,"q-banner--dense":this.dense,"rounded-borders":this.rounded},on:this.$listeners},[t("div",{staticClass:"q-banner__avatar col-auto row items-center"},Ws(this,"avatar")),t("div",{staticClass:"q-banner__content col text-body2"},Ws(this,"default")),void 0!==e?t("div",{staticClass:"q-banner__actions row items-center justify-end",class:this.inlineActions?"col-auto":"col-all"},e):null])}}),D=t.extend({name:"QBar",props:{dense:Boolean,dark:Boolean},computed:{classes:function(){return"q-bar--"+(this.dense?"dense":"standard")+" q-bar--"+(this.dark?"dark":"light")}},render:function(t){return t("div",{staticClass:"q-bar row no-wrap items-center",class:this.classes,on:this.$listeners},Ws(this,"default"))}}),R={left:"start",center:"center",right:"end",between:"between",around:"around",stretch:"stretch"},I=Object.keys(R),N={props:{align:{type:String,validator:function(t){return I.includes(t)}}},computed:{alignClass:function(){var t=void 0===this.align?!0===this.vertical?"stretch":"left":this.align;return(!0===this.vertical?"items":"justify")+"-"+R[t]}}},F=t.extend({name:"QBreadcrumbs",mixins:[N],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=Ws(this,"default");if(void 0!==i){var n=1,s=[],o=i.filter(function(t){return void 0!==t.tag&&t.tag.endsWith("-QBreadcrumbsEl")}).length,r=this.$scopedSlots.separator||function(){return e.separator};return i.forEach(function(i){if(void 0!==i.tag&&i.tag.endsWith("-QBreadcrumbsEl")){var a=n<o;n++,s.push(t("div",{staticClass:"flex items-center",class:a?e.activeClass:"q-breadcrumbs--last"},[i])),a&&s.push(t("div",{staticClass:"q-breadcrumbs__separator",class:e.sepClass},r()))}else s.push(i)}),t("div",{staticClass:"q-breadcrumbs",on:this.$listeners},[t("div",{staticClass:"flex items-center",class:this.classes},s)])}}}),H={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}}}},j=t.extend({name:"QBreadcrumbsEl",mixins:[H],props:{label:String,icon:String},render:function(t){var e;return 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),[void 0!==this.icon?t(P,{staticClass:"q-breadcrumbs__el-icon",class:void 0!==this.label?"q-breadcrumbs__el-icon--with-label":null,props:{name:this.icon}}):null,this.label].concat(Ws(this,"default")))}}),Q={props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{classes:function(){if(this.color)return"text-"+this.color}}},V=t.extend({name:"QSpinner",mixins:[Q],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:{width:this.size,height:this.size,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"}})])}}),W={offset:Ys,style:function(t,e){return window.getComputedStyle(t).getPropertyValue(e)},height:Us,width:function(t){return t===window?window.innerWidth:t.getBoundingClientRect().width},css:Ks,cssBatch:function(t,e){t.forEach(function(t){return Ks(t,e)})},ready:function(t){if("function"==typeof t)return"loading"!==document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)}},Y={name:"ripple",inserted:function(t,e){var i={modifiers:{},click:function(e){!0===i.enabled&&(!0!==o.is.ie||e.clientX>=0)&&Gs(e,t,i,!0===e.qKeyEvent)},keyup:function(e){!0===i.enabled&&13===e.keyCode&&!0!==e.qKeyEvent&&Gs(e,t,i,!0)}};Xs(i,e),t.__qripple&&(t.__qripple_old=t.__qripple),t.__qripple=i,t.addEventListener("click",i.click),t.addEventListener("keyup",i.keyup)},update:function(t,e){void 0!==t.__qripple&&Xs(t.__qripple,e)},unbind:function(t){var e=t.__qripple_old||t.__qripple;void 0!==e&&(void 0!==e.abort&&e.abort(),t.removeEventListener("click",e.click),t.removeEventListener("keyup",e.keyup),delete t[t.__qripple_old?"__qripple_old":"__qripple"])}},U={directives:{Ripple:Y},props:{ripple:{type:[Boolean,Object],default:!0}}},K={xs:8,sm:10,md:14,lg:20,xl:24},G={mixins:[U,N],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(this.size&&!this.fab&&!this.fabMini)return{fontSize:this.size in K?K[this.size]+"px":this.size}},isRound:function(){return!0===this.round||!0===this.fab||!0===this.fabMini},isDisabled:function(){return!0===this.disable||!0===this.loading},computedTabIndex:function(){return!0===this.isDisabled?-1:this.tabindex||0},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),!0===this.isDisabled&&(t.disabled=!0),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.isRound?"round":"rectangle")+(void 0!==t?" "+t:"")+(!0!==this.isDisabled?" q-focusable q-hoverable":" disabled")+(!0===this.fab?" q-btn--fab":!0===this.fabMini?" q-btn--fab-mini":"")+(!0===this.noCaps?" q-btn--no-uppercase":"")+(!0===this.rounded?" q-btn--rounded":"")+(!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":"")}}},X=t.extend({name:"QBtn",mixins:[G],props:{percentage:{type:Number,validator:function(t){return t>=0&&t<=100}},darkPercentage:Boolean},computed:{hasLabel:function(){return void 0!==this.label&&null!==this.label&&""!==this.label}},methods:{click:function(t){var e=this;if(!0!==this.pressed){if(void 0!==t){if("submit"===this.type){var i=document.activeElement;if(i!==document.body&&!1===this.$el.contains(i)&&!1===i.contains(this.$el)||!0===this.$q.platform.is.ie&&(t.clientX<0||t.clientY<0))return qs(t),void this.$el.focus()}if(!0!==t.qKeyEvent&&void 0!==this.$refs.blurTarget&&this.$refs.blurTarget.focus(),!0===t.defaultPrevented)return;!0===this.hasRouterLink&&qs(t)}var n=function(){e.$router[!0===e.replace?"replace":"push"](e.to)};this.$emit("click",t,n),!0===this.hasRouterLink&&!1!==t.navigate&&n()}},__onKeydown:function(t){!0===[13,32].includes(t.keyCode)&&(this.$el.focus(),qs(t),!0!==this.pressed&&(this.pressed=!0,this.$el.classList.add("q-btn--active"),document.addEventListener("keyup",this.__onKeyupAbort))),this.$emit("keydown",t)},__onKeyup:function(t){if(!0===[13,32].includes(t.keyCode)){this.__onKeyupAbort();var e=new MouseEvent("click",t);e.qKeyEvent=!0,!0===t.defaultPrevented&&e.preventDefault(),this.$el.dispatchEvent(e),qs(t),t.qKeyEvent=!0}this.$emit("keyup",t)},__onKeyupAbort:function(){this.pressed=!1,document.removeEventListener("keyup",this.__onKeyupAbort),this.$el&&this.$el.classList.remove("q-btn--active")}},beforeDestroy:function(){document.removeEventListener("keyup",this.__onKeyupAbort)},render:function(t){var e=[].concat(Ws(this,"default")),i={staticClass:"q-btn inline q-btn-item non-selectable",class:this.classes,style:this.style,attrs:this.attrs};return!1===this.isDisabled&&(i.on=Object.assign({},this.$listeners,{click:this.click,keydown:this.__onKeydown,keyup:this.__onKeyup}),!1!==this.ripple&&(i.directives=[{name:"ripple",value:this.ripple,modifiers:{center:this.isRound}}])),!0===this.hasLabel&&e.unshift(t("div",[this.label])),void 0!==this.icon&&e.unshift(t(P,{props:{name:this.icon,left:!1===this.stack&&!0===this.hasLabel}})),void 0!==this.iconRight&&!1===this.isRound&&e.push(t(P,{props:{name:this.iconRight,right:!1===this.stack&&!0===this.hasLabel}})),t(this.isLink?"a":"button",i,[t("div",{staticClass:"q-focus-helper",ref:"blurTarget",attrs:{tabindex:-1}}),!0===this.loading&&void 0!==this.percentage?t("div",{staticClass:"q-btn__progress absolute-full",class:this.darkPercentage?"q-btn__progress--dark":null,style:{transform:"scale3d("+this.percentage/100+",1,1)"}}):null,t("div",{staticClass:"q-btn__content text-center col items-center q-anchor--skip",class:this.innerClasses},e),null!==this.loading?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(V)])]:void 0):null])}}),Z=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},Ws(this,"default"))}}),J={props:{target:{type:[Boolean,String],default:!0},contextMenu:Boolean},watch:{contextMenu:function(t){void 0!==this.anchorEl&&(this.__unconfigureAnchorEl(!t),this.__configureAnchorEl(t))},target:function(){void 0!==this.anchorEl&&this.__unconfigureAnchorEl(),this.__pickAnchorEl()}},methods:{__showCondition:function(t){return void 0!==this.anchorEl&&(void 0===t||(void 0===t.touches||t.touches.length<=1))},__contextClick:function(t){this.hide(t),this.show(t),Ss(t)},__toggleKey:function(t){void 0!==t&&13===t.keyCode&&!0!==t.qKeyEvent&&this.toggle(t)},__mobileTouch:function(t){var e=this;this.__mobileCleanup(t),!0===this.__showCondition(t)&&(this.hide(t),this.anchorEl.classList.add("non-selectable"),this.touchTimer=setTimeout(function(){e.show(t)},300))},__mobileCleanup:function(t){this.anchorEl.classList.remove("non-selectable"),clearTimeout(this.touchTimer),!0===this.showing&&void 0!==t&&(Zs(),Ss(t))},__unconfigureAnchorEl:function(t){var e=this;void 0===t&&(t=this.contextMenu),!0===t?this.$q.platform.is.mobile?(this.anchorEl.removeEventListener("touchstart",this.__mobileTouch),["touchcancel","touchmove","touchend"].forEach(function(t){e.anchorEl.removeEventListener(t,e.__mobileCleanup)})):(this.anchorEl.removeEventListener("click",this.hide),this.anchorEl.removeEventListener("contextmenu",this.__contextClick)):(this.anchorEl.removeEventListener("click",this.toggle),this.anchorEl.removeEventListener("keyup",this.__toggleKey))},__configureAnchorEl:function(t){var e=this;void 0===t&&(t=this.contextMenu),!0!==this.noParentEvent&&(!0===t?this.$q.platform.is.mobile?(this.anchorEl.addEventListener("touchstart",this.__mobileTouch),["touchcancel","touchmove","touchend"].forEach(function(t){e.anchorEl.addEventListener(t,e.__mobileCleanup)})):(this.anchorEl.addEventListener("click",this.hide),this.anchorEl.addEventListener("contextmenu",this.__contextClick)):(this.anchorEl.addEventListener("click",this.toggle),this.anchorEl.addEventListener("keyup",this.__toggleKey)))},__setAnchorEl:function(t){for(this.anchorEl=t;this.anchorEl.classList.contains("q-anchor--skip");)this.anchorEl=this.anchorEl.parentNode;this.__configureAnchorEl()},__pickAnchorEl:function(){if(this.target&&"string"==typeof this.target){var t=document.querySelector(this.target);null!==t?(this.anchorEl=t,this.__configureAnchorEl()):(this.anchorEl=void 0,console.error('Anchor: target "'+this.target+'" not found',this))}else!1!==this.target?this.__setAnchorEl(this.parentEl):this.anchorEl=void 0}},mounted:function(){var t=this;this.parentEl=this.$el.parentNode,this.$nextTick(function(){t.__pickAnchorEl(),!0===t.value&&(void 0===t.anchorEl?t.$emit("input",!1):t.show())})},beforeDestroy:function(){clearTimeout(this.touchTimer),void 0!==this.__anchorCleanup&&this.__anchorCleanup(),void 0!==this.anchorEl&&this.__unconfigureAnchorEl()}},tt={props:{value:Boolean},data:function(){return{showing:!1}},watch:{value:function(t){!0!==this.disable||!0!==t?t!==this.showing&&this[t?"show":"hide"]():this.$emit("input",!1)}},methods:{toggle:function(t){this[!0===this.showing?"hide":"show"](t)},show:function(t){var e=this;!0!==this.disable&&!0!==this.showing&&(void 0!==this.__showCondition&&!0!==this.__showCondition(t)||(this.$emit("before-show",t),!0===this.$q.platform.is.ie?setTimeout(function(){e.showing=!0},0):this.showing=!0,this.$emit("input",!0),void 0!==this.$options.modelToggle&&!0===this.$options.modelToggle.history&&(this.__historyEntry={condition:function(){return!0!==e.persistent},handler:this.hide},v.add(this.__historyEntry)),void 0!==this.__show?this.__show(t):this.$emit("show",t)))},hide:function(t){!0!==this.disable&&!1!==this.showing&&(this.$emit("before-hide",t),this.showing=!1,!1!==this.value&&this.$emit("input",!1),this.__removeHistory(),void 0!==this.__hide?this.__hide(t):this.$emit("hide",t))},__removeHistory:function(){void 0!==this.__historyEntry&&(v.remove(this.__historyEntry),this.__historyEntry=void 0)}},beforeDestroy:function(){!0===this.showing&&this.__removeHistory()}},et={inheritAttrs:!1,props:{contentClass:[Array,String,Object],contentStyle:[Array,String,Object]},methods:{__showPortal:function(){void 0!==this.__portal&&!0!==this.__portal.showing&&(document.body.appendChild(this.__portal.$el),this.__portal.showing=!0)},__hidePortal:function(){void 0!==this.__portal&&!0===this.__portal.showing&&(this.__portal.$el.remove(),this.__portal.showing=!1)}},render:function(){void 0!==this.__portal&&this.__portal.$forceUpdate()},beforeMount:function(){var t=this,e={inheritAttrs:!1,render:function(e){return t.__render(e)},components:this.$options.components,directives:this.$options.directives};void 0!==this.__onPortalClose&&(e.methods={__qClosePopup:this.__onPortalClose});var i=this.__onPortalCreated;void 0!==i&&(e.created=function(){i(this)}),this.__portal=Js(this,e).$mount()},beforeDestroy:function(){this.__portal.$destroy(),this.__portal.$el.remove(),this.__portal=void 0}},it={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)}}},nt=r.notPassiveCapture,st={name:"click-outside",bind:function(t,e){var i=e.value,n=e.arg,s={trigger:i,handler:function(e){var i=e&&e.target;if(i&&(!o.is.ie||"focusin"!==e.type||i!==document.body)){if(i!==document.body){for(var r=void 0!==n?n.concat([t]):[t],a=r.length-1;a>=0;a--)if(r[a].contains(i))return;for(var l=i;l!==document.body;){if(l.classList.contains("q-menu")||l.classList.contains("q-dialog"))for(var c=l;null!==(c=c.previousElementSibling);)if(c.contains(t))return;l=l.parentNode}}!0===o.is.mobile&&qs(e),s.trigger(e)}}};t.__qclickoutside&&(t.__qclickoutside_old=t.__qclickoutside),t.__qclickoutside=s,document.body.addEventListener("mousedown",s.handler,nt),document.body.addEventListener("touchstart",s.handler,nt),!0===o.is.desktop&&document.body.addEventListener("focusin",s.handler,nt)},update:function(t,e){var i=e.value;i!==e.oldValue&&(t.__qclickoutside.trigger=i)},unbind:function(t){var e=t.__qclickoutside_old||t.__qclickoutside;void 0!==e&&(document.body.removeEventListener("mousedown",e.handler,nt),document.body.removeEventListener("touchstart",e.handler,nt),!0===o.is.desktop&&document.body.removeEventListener("focusin",e.handler,nt),delete t[t.__qclickoutside_old?"__qclickoutside_old":"__qclickoutside"])}},ot={getScrollTarget:no,getScrollHeight:so,getScrollWidth:function(t){return(t===window?document.body:t).scrollWidth},getScrollPosition:oo,getHorizontalScrollPosition:ro,animScrollTo:ao,animHorizontalScrollTo:lo,setScrollPosition:ho,setHorizontalScrollPosition:po,getScrollbarWidth:fo,hasScrollbar:mo},rt=[],at={__install:function(){this.__installed=!0,window.addEventListener("keyup",function(t){0===rt.length||27!==t.which&&27!==t.keyCode||rt[rt.length-1].fn(t)})},register:function(t,e){!0===o.is.desktop&&(!0!==this.__installed&&this.__install(),rt.push({comp:t,fn:e}))},pop:function(t){if(!0===o.is.desktop){var e=rt.findIndex(function(e){return e.comp===t});e>-1&&rt.splice(e,1)}}},lt=new t,ct={},ut={},ht={methods:{__registerTree:function(){ct[this.menuId]=!0,void 0!==this.$root.menuParentId?(!0!==ct[this.$root.menuParentId]&&lt.$emit("hide",ct[this.$root.menuParentId]),lt.$on("hide",this.__processEvent),ct[this.$root.menuParentId]=this.menuId):ut[this.menuId]=this.hide},__unregisterTree:function(){if(void 0!==ct[this.menuId]){delete ut[this.menuId],void 0!==this.$root.menuParentId&&lt.$off("hide",this.__processEvent);var t=ct[this.menuId];delete ct[this.menuId],!0!==t&&lt.$emit("hide",t)}},__processEvent:function(t){this.menuId===t&&this.hide()}}},dt=t.extend({name:"QMenu",mixins:[J,tt,et,ht,it],directives:{ClickOutside:st},props:{persistent:Boolean,autoClose:Boolean,noParentEvent:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:go},self:{type:String,validator:go},offset:{type:Array,validator:_o},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},data:function(){return{menuId:io()}},computed:{horizSide:function(){return this.$q.lang.rtl?"right":"left"},anchorOrigin:function(){return bo(this.anchor||(!0===this.cover?"center middle":"bottom "+this.horizSide))},selfOrigin:function(){return!0===this.cover?this.anchorOrigin:bo(this.self||"top "+this.horizSide)},menuClass:function(){return!0===this.square?" q-menu--square":""}},watch:{noParentEvent:function(t){void 0!==this.anchorEl&&(!0===t?this.__unconfigureAnchorEl():this.__configureAnchorEl())}},methods:{focus:function(){var t=void 0!==this.__portal.$refs?this.__portal.$refs.inner:void 0;void 0!==t&&!0!==t.contains(document.activeElement)&&(t=t.querySelector("[autofocus]")||t).focus()},__show:function(t){var e=this;clearTimeout(this.timer),this.__refocusTarget=!1===this.noRefocus?document.activeElement:void 0,this.scrollTarget=no(this.anchorEl),this.scrollTarget.addEventListener("scroll",this.updatePosition,r.passive),this.scrollTarget!==window&&window.addEventListener("scroll",this.updatePosition,r.passive),at.register(this,function(){!0!==e.persistent&&(e.$emit("escape-key"),e.hide())}),this.__showPortal(),this.__registerTree(),this.timer=setTimeout(function(){var i=e.anchorEl.getBoundingClientRect(),n=i.top,s=i.left;if(e.touchPosition||e.contextMenu){var o=Cs(t);e.absoluteOffset={left:o.left-s,top:o.top-n}}else e.absoluteOffset=void 0;e.updatePosition(),void 0===e.unwatch&&(e.unwatch=e.$watch("$q.screen.width",e.updatePosition)),e.$el.dispatchEvent(Ms("popup-show",{bubbles:!0})),!0!==e.noFocus&&(document.activeElement.blur(),e.$nextTick(function(){e.focus()})),e.timer=setTimeout(function(){e.$emit("show",t)},300)},0)},__hide:function(t){var e=this;this.__anchorCleanup(!0),void 0!==this.__refocusTarget&&this.__refocusTarget.focus(),this.$el.dispatchEvent(Ms("popup-hide",{bubbles:!0})),this.timer=setTimeout(function(){e.__hidePortal(),e.$emit("hide",t)},300)},__anchorCleanup:function(t){clearTimeout(this.timer),this.absoluteOffset=void 0,void 0!==this.unwatch&&(this.unwatch(),this.unwatch=void 0),!0!==t&&!0!==this.showing||(at.pop(this),this.__unregisterTree(),this.scrollTarget.removeEventListener("scroll",this.updatePosition,r.passive),this.scrollTarget!==window&&window.removeEventListener("scroll",this.updatePosition,r.passive))},__onAutoClose:function(t){vo(this.menuId),this.$emit("click",t)},updatePosition:function(){var t=this,e=this.__portal.$el;8!==e.nodeType?yo({el:e,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(function(){void 0!==t.__portal&&!0===t.__portal.showing&&t.updatePosition()},25)},__render:function(t){var e=Object.assign({},this.$listeners,{input:ks});return!0===this.autoClose&&(e.click=this.__onAutoClose),t("transition",{props:{name:this.transition}},[!0===this.showing?t("div",{ref:"inner",staticClass:"q-menu scroll"+this.menuClass,class:this.contentClass,style:this.contentStyle,attrs:Object.assign({},{tabindex:-1},this.$attrs),on:e,directives:!0!==this.persistent?[{name:"click-outside",value:this.hide,arg:[this.anchorEl]}]:null},Ws(this,"default")):null])},__onPortalCreated:function(t){t.menuParentId=this.menuId},__onPortalClose:function(){vo(this.menuId)}},beforeDestroy:function(){!0===this.showing&&void 0!==this.anchorEl&&this.anchorEl.dispatchEvent(Ms("popup-hide",{bubbles:!0}))}}),pt=t.extend({name:"QBtnDropdown",mixins:[G],props:{value:Boolean,split:Boolean,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"},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=void 0!==this.$scopedSlots.label?this.$scopedSlots.label():[],n=[t(P,{props:{name: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(dt,{ref:"menu",props:{cover:this.cover,fit:!0,persistent:this.persistent,autoClose:this.autoClose,anchor:this.menuAnchor,self:this.menuSelf,contentClass:this.contentClass,contentStyle:this.contentStyle},on:{"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)}}},Ws(this,"default"))),!1===this.split)return t(X,{class:"q-btn-dropdown q-btn-dropdown--simple",props:Object.assign({},this.$props,{disable:!0===this.disable||!0===this.disableMainBtn,noWrap:!0,round:!1}),on:{click:function(t){e.$emit("click",t)}}},i.concat(n));var s=t(X,{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:{click:function(t){e.hide(),e.$emit("click",t)}}},i);return t(Z,{props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,unelevated:this.unelevated,glossy:this.glossy},staticClass:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",class:!0===this.stretch?"self-stretch no-border-radius":null},[s,t(X,{staticClass:"q-btn-dropdown__arrow-container",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()}}),ft=t.extend({name:"QBtnToggle",props:{value:{required:!0},options:{type:Array,required:!0,validator:function(t){return t.every(function(t){return("label"in t||"icon"in t||"slot"in t)&&"value"in t})}},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,ripple:{type:[Boolean,Object],default:!0}},computed:{val:function(){var t=this;return this.options.map(function(e){return e.value===t.value})}},methods:{set:function(t,e){!1===this.readonly&&t!==this.value&&this.$emit("input",t,e)}},render:function(t){var e=this;return t(Z,{staticClass:"q-btn-toggle",props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,stretch:this.stretch,unelevated:this.unelevated,glossy:this.glossy,spread:this.spread},on:this.$listeners},this.options.map(function(i,n){return t(X,{key:n,on:{click:function(){return e.set(i.value,i)}},props:{disable:e.disable||i.disable,label:i.label,color:!0===e.val[n]?i.toggleColor||e.toggleColor:i.color||e.color,textColor:!0===e.val[n]?i.toggleTextColor||e.toggleTextColor:i.textColor||e.textColor,icon:i.icon,iconRight:i.iconRight,noCaps:!0===e.noCaps||!0===i.noCaps,noWrap:!0===e.noWrap||!0===i.noWrap,outline:e.outline,flat:e.flat,rounded:e.rounded,push:e.push,unelevated:e.unelevated,size:e.size,dense:e.dense,ripple:e.ripple||i.ripple,stack:!0===e.stack||!0===i.stack,tabindex:i.tabindex,stretch:e.stretch}},void 0!==i.slot?Ws(e,i.slot):void 0)}))}}),mt=t.extend({name:"QCard",props:{dark:Boolean,square:Boolean,flat:Boolean,bordered:Boolean},render:function(t){return t("div",{staticClass:"q-card",class:{"q-card--dark":this.dark,"q-card--bordered":this.bordered,"q-card--square no-border-radius":this.square,"q-card--flat no-shadow":this.flat},on:this.$listeners},Ws(this,"default"))}}),vt=t.extend({name:"QCardSection",render:function(t){return t("div",{staticClass:"q-card__section",on:this.$listeners},Ws(this,"default"))}}),gt=t.extend({name:"QCardActions",mixins:[N],props:{vertical:Boolean},computed:{classes:function(){return"q-card__actions--"+(!0===this.vertical?"vert column":"horiz row")+" "+this.alignClass}},render:function(t){return t("div",{staticClass:"q-card__actions",class:this.classes,on:this.$listeners},Ws(this,"default"))}}),_t=["left","right","up","down","horizontal","vertical"],bt={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0,all:!0},yt={name:"touch-swipe",bind:function(t,e){var i=e.value,n=e.arg,s=e.modifiers;if(t.__qtouchswipe&&(t.__qtouchswipe_old=t.__qtouchswipe),!0===s.mouse||!0===o.has.touch){var a={handler:i,sensitivity:function(t){var e=[.06,6,50];return"string"==typeof t&&t.length&&t.split(":").forEach(function(t,i){var n=parseInt(t,10);n&&(e[i]=n)}),e}(n),modifiers:s,direction:Co(s),mouseStart:function(t){ys(t)&&(document.addEventListener("mousemove",a.move,!0),document.addEventListener("mouseup",a.mouseEnd,!0),a.start(t,!0))},mouseEnd:function(t){document.removeEventListener("mousemove",a.move,!0),document.removeEventListener("mouseup",a.mouseEnd,!0),a.end(t)},start:function(e,i){!0===o.is.firefox&&$s(t,!0),ko(a),!0!==i&&xo(t,e,a);var n=Cs(e);a.mouse=i,a.event={x:n.left,y:n.top,time:(new Date).getTime(),dir:!1,abort:!1}},move:function(t){if(void 0!==a.event&&!0!==a.event.abort)if(!1===a.event.dir){var e=(new Date).getTime()-a.event.time;if(0!==e){var i=Cs(t),n=i.left-a.event.x,s=Math.abs(n),r=i.top-a.event.y,l=Math.abs(r);if(!0===o.is.mobile){if(s<a.sensitivity[1]&&l<a.sensitivity[1])return void(a.event.abort=!0)}else if(s<a.sensitivity[2]&&l<a.sensitivity[2])return;var c=s/e,u=l/e;!0===a.direction.vertical&&s<l&&s<100&&u>a.sensitivity[0]&&(a.event.dir=r<0?"up":"down"),!0===a.direction.horizontal&&s>l&&l<100&&c>a.sensitivity[0]&&(a.event.dir=n<0?"left":"right"),!0===a.direction.up&&s<l&&r<0&&s<100&&u>a.sensitivity[0]&&(a.event.dir="up"),!0===a.direction.down&&s<l&&r>0&&s<100&&u>a.sensitivity[0]&&(a.event.dir="down"),!0===a.direction.left&&s>l&&n<0&&l<100&&c>a.sensitivity[0]&&(a.event.dir="left"),!0===a.direction.right&&s>l&&n>0&&l<100&&c>a.sensitivity[0]&&(a.event.dir="right"),!1!==a.event.dir?(document.body.classList.add("no-pointer-events"),qs(t),Zs(),a.handler({evt:t,touch:!0!==a.mouse,mouse:!0===a.mouse,direction:a.event.dir,duration:e,distance:{x:s,y:l}})):a.event.abort=!0}}else qs(t)},end:function(e){void 0!==a.event&&(!0===o.is.firefox&&$s(t,!1),ko(a),!1===a.event.abort&&!1!==a.event.dir&&(document.body.classList.remove("no-pointer-events"),qs(e)),a.event=void 0)}};if(t.__qtouchswipe=a,!0===s.mouse&&t.addEventListener("mousedown",a.mouseStart,s.mouseCapture),!0===o.has.touch){var l=r["notPassive"+(!0===s.capture?"Capture":"")];t.addEventListener("touchstart",a.start,l),t.addEventListener("touchmove",a.move,l),t.addEventListener("touchcancel",a.end,l),t.addEventListener("touchend",a.end,l)}}},update:function(t,e){var i=t.__qtouchswipe;void 0!==i&&wo(i,e)},unbind:function(t,e){var i=e.modifiers,n=t.__qtouchswipe_old||t.__qtouchswipe;if(void 0!==n){if(!0===o.is.firefox&&$s(t,!1),ko(n),document.body.classList.remove("no-pointer-events"),!0===i.mouse&&(t.removeEventListener("mousedown",n.mouseStart,i.mouseCapture),document.removeEventListener("mousemove",n.move,!0),document.removeEventListener("mouseup",n.mouseEnd,!0)),!0===o.has.touch){var s=r["notPassive"+(!0===i.capture?"Capture":"")];t.removeEventListener("touchstart",n.start,s),t.removeEventListener("touchmove",n.move,s),t.removeEventListener("touchcancel",n.end,s),t.removeEventListener("touchend",n.end,s)}delete t[t.__qtouchswipe_old?"__qtouchswipe_old":"__qtouchswipe"]}}},Ct=t.extend({name:"QTabPanelWrapper",render:function(t){return t("div",{staticClass:"q-panel scroll",attrs:{role:"tabpanel"},on:{input:ks}},Ws(this,"default"))}}),wt={directives:{TouchSwipe:yt},props:{value:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,transitionPrev:{type:String,default:"slide-right"},transitionNext:{type:String,default:"slide-left"},keepAlive:Boolean},data:function(){return{panelIndex:null,panelTransition:null}},computed:{panelDirectives:function(){if(this.swipeable)return[{name:"touch-swipe",value:this.__swipe,modifiers:{horizontal:!0,mouse:!0}}]},contentKey:function(){return"string"==typeof this.value||"number"==typeof this.value?this.value:String(this.value)}},watch:{value:function(t,e){var i=this,n=!0===this.__isValidPanelName(t)?this.__getPanelIndex(t):-1;!0!==this.__forcedPanelTransition&&this.__updatePanelTransition(-1===n?0:n<this.__getPanelIndex(e)?-1:1),this.panelIndex!==n&&(this.panelIndex=n,this.$emit("before-transition",t,e),this.$nextTick(function(){i.$emit("transition",t,e)}))}},methods:{next:function(){this.__go(1)},previous:function(){this.__go(-1)},goTo:function(t){this.$emit("input",t)},__isValidPanelName:function(t){return void 0!==t&&null!==t&&""!==t},__getPanelIndex:function(t){return this.panels.findIndex(function(e){var i=e.componentOptions;return i&&i.propsData.name===t&&""!==i.propsData.disable&&!0!==i.propsData.disable})},__getAllPanels:function(){var t=this;return this.panels.filter(function(e){return void 0!==e.componentOptions&&t.__isValidPanelName(e.componentOptions.propsData.name)})},__getAvailablePanels:funct