-
Notifications
You must be signed in to change notification settings - Fork 2
/
quasar.common.js
171 lines (170 loc) · 377 KB
/
quasar.common.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/*!
* Quasar Framework v0.17.12
* (c) 2016-present Razvan Stoenescu
* Released under the MIT License.
*/
'use strict';var webStorage,isSSR="undefined"==typeof window,fromSSR=!1,onSSR=isSSR;function getMatch(t,e){var i=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(vivaldi)[\/]([\w.]+)/.exec(t)||/(chrome)[\/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(t)||/(webkit)[\/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:i[5]||i[3]||i[1]||"",version:i[2]||i[4]||"0",versionNumber:i[4]||i[2]||"0",platform:e[0]||""}}function getPlatformMatch(t){return/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[]}function getPlatform(t){var e=getMatch(t=(t||navigator.userAgent||navigator.vendor||window.opera).toLowerCase(),getPlatformMatch(t)),i={};return e.browser&&(i[e.browser]=!0,i.version=e.version,i.versionNumber=parseInt(e.versionNumber,10)),e.platform&&(i[e.platform]=!0),(i.android||i.bb||i.blackberry||i.ipad||i.iphone||i.ipod||i.kindle||i.playbook||i.silk||i["windows phone"])&&(i.mobile=!0),(i.ipod||i.ipad||i.iphone)&&(i.ios=!0),i["windows phone"]&&(i.winphone=!0,delete i["windows phone"]),(i.cros||i.mac||i.linux||i.win)&&(i.desktop=!0),(i.chrome||i.opr||i.safari||i.vivaldi)&&(i.webkit=!0),(i.rv||i.iemobile)&&(e.browser="ie",i.ie=!0),i.edge&&(e.browser="edge",i.edge=!0),(i.safari&&i.blackberry||i.bb)&&(e.browser="blackberry",i.blackberry=!0),i.safari&&i.playbook&&(e.browser="playbook",i.playbook=!0),i.opr&&(e.browser="opera",i.opera=!0),i.safari&&i.android&&(e.browser="android",i.android=!0),i.safari&&i.kindle&&(e.browser="kindle",i.kindle=!0),i.safari&&i.silk&&(e.browser="silk",i.silk=!0),i.vivaldi&&(e.browser="vivaldi",i.vivaldi=!0),i.name=e.browser,i.platform=e.platform,isSSR||(window.process&&window.process.versions&&window.process.versions.electron?i.electron=!0:0===document.location.href.indexOf("chrome-extension://")?i.chromeExt=!0:(window._cordovaNative||window.cordova)&&(i.cordova=!0),(fromSSR=void 0===i.cordova&&void 0===i.electron&&!!document.querySelector("[data-server-rendered]"))&&(onSSR=!0)),i}function hasWebStorage(){if(void 0!==webStorage)return webStorage;try{if(window.localStorage)return webStorage=!0,!0}catch(t){}return webStorage=!1,!1}function getClientProperties(){return{has:{touch:!!("ontouchstart"in document.documentElement)||window.navigator.msMaxTouchPoints>0,webStorage:hasWebStorage()},within:{iframe:window.self!==window.top}}}var Platform={has:{touch:!1,webStorage:!1},within:{iframe:!1},parseSSR:function(t){return t?{is:getPlatform(t.req.headers["user-agent"]),has:this.has,within:this.within}:Object.assign({},{is:getPlatform()},getClientProperties())},install:function(t,e,i){var s=this;isSSR?e.server.push(function(t,e){t.platform=s.parseSSR(e.ssr)}):(this.is=getPlatform(),fromSSR?(e.takeover.push(function(t){onSSR=fromSSR=!1,Object.assign(t.platform,getClientProperties())}),i.util.defineReactive(t,"platform",this)):(Object.assign(this,getClientProperties()),t.platform=this))}};function assign(t,e){var i=arguments;if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var s=Object(t),n=1;n<arguments.length;n++){var o=i[n];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],h=Object.getOwnPropertyDescriptor(o,c);void 0!==h&&h.enumerable&&(s[c]=o[c])}}return s}Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:assign}),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),s=parseInt(i.length,10)||0;if(0===s)return!1;var n,o,r=parseInt(e,10)||0;for(r>=0?n=r:(n=s+r)<0&&(n=0);n<s;){if(t===(o=i[n])||t!=t&&o!=o)return!0;n++}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 s=i.indexOf(t,e);return-1!==s&&s===e}),isSSR||("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),s=i.length>>>0,n=arguments[1],o=0;o<s;o++)if(e=i[o],t.call(n,e,o,i))return e}});var version="0.17.12",History={__history:[],add:function(){},remove:function(){},install:function(t,e){var i=this;if(!isSSR&&t.platform.is.cordova){this.add=function(t){i.__history.push(t)},this.remove=function(t){var e=i.__history.indexOf(t);e>=0&&i.__history.splice(e,1)};var s=void 0===e.cordova||!1!==e.cordova.backButtonExit;document.addEventListener("deviceready",function(){document.addEventListener("backbutton",function(){i.__history.length?i.__history.pop().handler():s&&"#/"===window.location.hash?navigator.app.exitApp():window.history.back()},!1)})}}},langEn={lang:"en-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},pullToRefresh:{pull:"Pull down to refresh",release:"Release to refresh",refresh:"Refreshing..."},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"}},i18n={install:function(t,e,i,s){var n=this;isSSR&&e.server.push(function(t,e){var i={lang:t.i18n.lang,dir:t.i18n.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(e){if(void 0===e&&(e=langEn),e.set=n.set,e.getLocale=n.getLocale,e.rtl=e.rtl||!1,!isSSR){var s=document.documentElement;s.setAttribute("dir",e.rtl?"rtl":"ltr"),s.setAttribute("lang",e.lang)}isSSR||t.i18n?t.i18n=e:i.util.defineReactive(t,"i18n",e),n.name=e.lang,n.lang=e},this.set(s)},getLocale:function(){if(!isSSR){var t=navigator.language||navigator.languages[0]||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage;return t?t.toLowerCase():void 0}}};function rgbToHex(t){var e=t.r,i=t.g,s=t.b,n=t.a,o=void 0!==n;if(e=Math.round(e),i=Math.round(i),s=Math.round(s),e>255||i>255||s>255||o&&n>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return n=o?(256|Math.round(255*n/100)).toString(16).slice(1):"","#"+(s|i<<8|e<<16|1<<24).toString(16).slice(1)+n}function hexToRgb(t){if("string"!=typeof t)throw new TypeError("Expected a string");3===(t=t.replace(/^#/,"")).length?t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:4===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);var e=parseInt(t,16);return t.length>6?{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:Math.round((255&e)/2.55)}:{r:e>>16,g:e>>8&255,b:255&e}}function hsvToRgb(t){var e,i,s,n,o,r,a,l,c=t.h,h=t.s,u=t.v,d=t.a;switch(r=(u/=100)*(1-(h/=100)),a=u*(1-(o=6*(c/=360)-(n=Math.floor(6*c)))*h),l=u*(1-(1-o)*h),n%6){case 0:e=u,i=l,s=r;break;case 1:e=a,i=u,s=r;break;case 2:e=r,i=u,s=l;break;case 3:e=r,i=a,s=u;break;case 4:e=l,i=r,s=u;break;case 5:e=u,i=r,s=a}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s),a:d}}function rgbToHsv(t){var e,i=t.r,s=t.g,n=t.b,o=t.a,r=Math.max(i,s,n),a=Math.min(i,s,n),l=r-a,c=0===r?0:l/r,h=r/255;switch(r){case a:e=0;break;case i:e=s-n+l*(s<n?6:0),e/=6*l;break;case s:e=n-i+2*l,e/=6*l;break;case n:e=i-s+4*l,e/=6*l}return{h:Math.round(360*e),s:Math.round(100*c),v:Math.round(100*h),a:o}}var reRGBA=/^\s*rgb(a)?\s*\((\s*(\d+)\s*,\s*?){2}(\d+)\s*,?\s*([01]?\.?\d*?)?\s*\)\s*$/;function textToRgb(t){if("string"!=typeof t)throw new TypeError("Expected a string");var e=reRGBA.exec(t);if(e){var i={r:Math.max(255,parseInt(e[2],10)),g:Math.max(255,parseInt(e[3],10)),b:Math.max(255,parseInt(e[4],10))};return e[1]&&(i.a=Math.max(1,parseFloat(e[5]))),i}return hexToRgb(t)}function lighten(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=textToRgb(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)}function luminosity(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?textToRgb(t):t,i=e.r/255,s=e.g/255,n=e.b/255;return.2126*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))}function setBrand(t,e,i){if(void 0===i&&(i=document.body),"string"!=typeof t)throw new TypeError("Expected a string as color");if("string"!=typeof e)throw new TypeError("Expected a string as value");if(!(i instanceof Element))throw new TypeError("Expected a DOM element");switch(i.style.setProperty("--q-color-"+t,e),t){case"negative":case"warning":i.style.setProperty("--q-color-"+t+"-l",lighten(e,46));break;case"light":i.style.setProperty("--q-color-"+t+"-d",lighten(e,-10))}}function getBrand(t,e){if(void 0===e&&(e=document.body),"string"!=typeof t)throw new TypeError("Expected a string as color");if(!(e instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(e).getPropertyValue("--q-color-"+t).trim()||null}var colors={rgbToHex:rgbToHex,hexToRgb:hexToRgb,hsvToRgb:hsvToRgb,rgbToHsv:rgbToHsv,textToRgb:textToRgb,lighten:lighten,luminosity:luminosity,setBrand:setBrand,getBrand:getBrand};function getBodyClasses(t,e){var i=t.is,s=t.has,n=t.within,o=["mat",i.desktop?"desktop":"mobile",s.touch?"touch":"no-touch","platform-"+(i.ios?"ios":"mat")];if(i.cordova&&(o.push("cordova"),i.ios&&(void 0===e.cordova||!1!==e.cordova.iosStatusBarPadding))){var r=window.devicePixelRatio||1,a=window.screen.width*r,l=window.screen.height*r;1125===a&&2436===l&&o.push("q-ios-statusbar-x"),1125===a&&2001===l||o.push("q-ios-statusbar-padding")}return n.iframe&&o.push("within-iframe"),i.electron&&o.push("electron"),o}function bodyInit(t,e){var i=getBodyClasses(t,e);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),t.is.ios&&document.body.addEventListener("touchstart",function(){})}function setColors(t){for(var e in t)setBrand(e,t[e])}var Body={install:function(t,e,i){isSSR?e.server.push(function(t,e){var s=getBodyClasses(t.platform,i),n=e.ssr.setBodyClasses;"function"==typeof n?n(s):e.ssr.Q_BODY_CLASSES=s.join(" ")}):(i.brand&&setColors(i.brand),bodyInit(t.platform,i))}},materialIcons={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back"},chevron:{left:"chevron_left",right:"chevron_right"},pullToRefresh:{arrow:"arrow_downward",refresh:"refresh"},search:{icon:"search",clear:"cancel",clearInverted:"clear"},carousel:{left:"chevron_left",right:"chevron_right",quickNav:"lens",thumbnails:"view_carousel"},checkbox:{checked:{ios:"check_circle",mat:"check_box"},unchecked:{ios:"radio_button_unchecked",mat:"check_box_outline_blank"},indeterminate:{ios:"remove_circle_outline",mat:"indeterminate_check_box"}},chip:{close:"cancel"},chipsInput:{add:"send"},collapsible:{icon:"arrow_drop_down"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right"},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"},fab:{icon:"add",activeIcon:"close"},input:{showPass:"visibility",hidePass:"visibility_off",showNumber:"keyboard",hideNumber:"keyboard_hide",clear:"cancel",clearInverted:"clear",dropdown:"arrow_drop_down"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},radio:{checked:{ios:"check",mat:"radio_button_checked"},unchecked:{ios:"",mat:"radio_button_unchecked"}},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right"},table:{arrowUp:"arrow_upward",warning:"warning",prevPage:"chevron_left",nextPage:"chevron_right"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"cancel",clearInverted:"clear",add:"add",upload:"cloud_upload",expand:"keyboard_arrow_down",file:"insert_drive_file"}},Icons={__installed:!1,install:function(t,e,i){var s=this;this.set=function(i){void 0===i&&(i=materialIcons),i.set=s.set,isSSR||t.icon?t.icon=i:e.util.defineReactive(t,"icon",i),s.name=i.name,s.def=i},this.set(i)}},queues={server:[],takeover:[]},$q={version:version,theme:"mat"};function install(t,e){if(void 0===e&&(e={}),!this.__installed){this.__installed=!0;var i=e.config||{};if(Platform.install($q,queues,t),Body.install($q,queues,i),History.install($q,i),i18n.install($q,queues,t,e.i18n),Icons.install($q,t,e.iconSet),isSSR?t.mixin({beforeCreate:function(){this.$q=this.$root.$options.$q}}):t.prototype.$q=$q,e.components&&Object.keys(e.components).forEach(function(i){var s=e.components[i];void 0===s.name||void 0===s.render&&void 0===s.mixins||t.component(s.name,s)}),e.directives&&Object.keys(e.directives).forEach(function(i){var s=e.directives[i];void 0!==s.name&&void 0!==s.unbind&&t.directive(s.name,s)}),e.plugins){var s={$q:$q,queues:queues,Vue:t,cfg:i};Object.keys(e.plugins).forEach(function(t){var i=e.plugins[t];"function"==typeof i.install&&i!==Platform&&i.install(s)})}}}var mixin={mounted:function(){var t=this;queues.takeover.forEach(function(e){e(t.$q)})}};function ssrUpdate(t){if(t.ssr){var e=Object.assign({},$q);Object.assign(t.ssr,{Q_HEAD_TAGS:"",Q_BODY_ATTRS:"",Q_BODY_TAGS:""}),queues.server.forEach(function(i){i(e,t)}),t.app.$q=e}else{var i=t.app.mixins||[];i.includes(mixin)||(t.app.mixins=i.concat(mixin))}}var theme="mat",VuePlugin={version:version,install:install,i18n:i18n,icons:Icons,theme:theme,ssrUpdate:ssrUpdate},handlers=[],EscapeKey={__installed:!1,__install:function(){this.__installed=!0,window.addEventListener("keyup",function(t){0!==handlers.length&&(27!==t.which&&27!==t.keyCode||handlers[handlers.length-1]())})},register:function(t){Platform.is.desktop&&(this.__installed||this.__install(),handlers.push(t))},pop:function(){Platform.is.desktop&&handlers.pop()}},ModelToggleMixin={props:{value:Boolean},data:function(){return{showing:!1}},watch:{value:function(t){var e=this;this.disable&&t?this.$emit("input",!1):this.$nextTick(function(){e.value!==e.showing&&e[t?"show":"hide"]()})}},methods:{toggle:function(t){return this[this.showing?"hide":"show"](t)},show:function(t){var e=this;return this.disable||this.showing?this.showPromise||Promise.resolve(t):(this.hidePromise&&this.hidePromiseReject(),this.showing=!0,!1===this.value&&this.$emit("input",!0),(void 0===this.$options.modelToggle||this.$options.modelToggle.history)&&(this.__historyEntry={handler:this.hide},History.add(this.__historyEntry)),this.__show?(this.showPromise=new Promise(function(i,s){e.showPromiseResolve=function(){e.showPromise=null,e.$emit("show",t),i(t)},e.showPromiseReject=function(){e.showPromise.catch(function(){}),e.showPromise=null,s(null)}}),this.__show(t),this.showPromise||Promise.resolve(t)):(this.$emit("show",t),Promise.resolve(t)))},hide:function(t){var e=this;return this.disable||!this.showing?this.hidePromise||Promise.resolve(t):(this.showPromise&&this.showPromiseReject(),this.showing=!1,!0===this.value&&this.$emit("input",!1),this.__removeHistory(),this.__hide?(this.hidePromise=new Promise(function(i,s){e.hidePromiseResolve=function(){e.hidePromise=null,e.$emit("hide",t),i()},e.hidePromiseReject=function(){e.hidePromise.catch(function(){}),e.hidePromise=null,s(null)}}),this.__hide(t),this.hidePromise||Promise.resolve(t)):(this.$emit("hide",t),Promise.resolve()))},__removeHistory:function(){this.__historyEntry&&(History.remove(this.__historyEntry),this.__historyEntry=null)}},beforeDestroy:function(){this.showing&&(this.showPromise&&this.showPromiseReject(),this.hidePromise&&this.hidePromiseReject(),this.__removeHistory())}},listenOpts={};function leftClick(t){return 0===t.button}function middleClick(t){return 1===t.button}function rightClick(t){return 2===t.button}function getEventKey(t){return t.which||t.keyCode}function position(t){var e,i;if(t.touches&&t.touches[0]?t=t.touches[0]:t.changedTouches&&t.changedTouches[0]&&(t=t.changedTouches[0]),t.clientX||t.clientY)e=t.clientX,i=t.clientY;else if(t.pageX||t.pageY)e=t.pageX-document.body.scrollLeft-document.documentElement.scrollLeft,i=t.pageY-document.body.scrollTop-document.documentElement.scrollTop;else{var s=targetElement(t).getBoundingClientRect();e=(s.right-s.left)/2+s.left,i=(s.bottom-s.top)/2+s.top}return{top:i,left:e}}function targetElement(t){var e;return t.target?e=t.target:t.srcElement&&(e=t.srcElement),3===e.nodeType&&(e=e.parentNode),e}function getEventPath(t){if(t.path)return t.path;if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;){if(e.push(i),"HTML"===i.tagName)return e.push(document),e.push(window),e;i=i.parentElement}}Object.defineProperty(listenOpts,"passive",{configurable:!0,get:function(){var t;try{var e=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(t){}return listenOpts.passive=t,t},set:function(t){Object.defineProperty(this,"passive",{value:t})}});var LINE_HEIGHT=40,PAGE_HEIGHT=800;function getMouseWheelDistance(t){var e,i=t.deltaX,s=t.deltaY;if((i||s)&&t.deltaMode){var n=1===t.deltaMode?LINE_HEIGHT:PAGE_HEIGHT;i*=n,s*=n}return t.shiftKey&&!i&&(s=(e=[i,s])[0],i=e[1]),{x:i,y:s}}function stopAndPrevent(t){t.preventDefault(),t.stopPropagation()}var event={listenOpts:listenOpts,leftClick:leftClick,middleClick:middleClick,rightClick:rightClick,getEventKey:getEventKey,position:position,targetElement:targetElement,getEventPath:getEventPath,getMouseWheelDistance:getMouseWheelDistance,stopAndPrevent:stopAndPrevent};function offset(t){if(!t||t===window)return{top:0,left:0};var e=t.getBoundingClientRect();return{top:e.top,left:e.left}}function style(t,e){return window.getComputedStyle(t).getPropertyValue(e)}function height(t){return t===window?window.innerHeight:parseFloat(style(t,"height"))}function width(t){return t===window?window.innerWidth:parseFloat(style(t,"width"))}function css(t,e){var i=t.style;Object.keys(e).forEach(function(t){i[t]=e[t]})}function ready(t){if("function"==typeof t)return"loading"!==document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)}var prefix=["-webkit-","-moz-","-ms-","-o-"];function cssTransform(t){var e={transform:t};return prefix.forEach(function(i){e[i+"transform"]=t}),e}var size,dom={offset:offset,style:style,height:height,width:width,css:css,ready:ready,cssTransform:cssTransform};function getScrollTarget(t){return t.closest(".scroll,.scroll-y,.overflow-auto")||window}function getScrollHeight(t){return(t===window?document.body:t).scrollHeight}function getScrollPosition(t){return t===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:t.scrollTop}function getHorizontalScrollPosition(t){return t===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:t.scrollLeft}function animScrollTo(t,e,i){if(!(i<=0)){var s=getScrollPosition(t);requestAnimationFrame(function(){setScroll(t,s+(e-s)/Math.max(16,i)*16),t.scrollTop!==e&&animScrollTo(t,e,i-16)})}}function setScroll(t,e){if(t===window)return document.documentElement.scrollTop=e,void(document.body.scrollTop=e);t.scrollTop=e}function setScrollPosition(t,e,i){i?animScrollTo(t,e,i):setScroll(t,e)}function getScrollbarWidth(){if(void 0!==size)return size;var t=document.createElement("p"),e=document.createElement("div");css(t,{width:"100%",height:"200px"}),css(e,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var s=t.offsetWidth;return i===s&&(s=e.clientWidth),e.remove(),size=i-s}function hasScrollbar(t,e){return void 0===e&&(e=!0),!(!t||t.nodeType!==Node.ELEMENT_NODE)&&(e?t.scrollHeight>t.clientHeight&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-y"])):t.scrollWidth>t.clientWidth&&(t.classList.contains("scroll")||t.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(t)["overflow-x"])))}var scroll={getScrollTarget:getScrollTarget,getScrollHeight:getScrollHeight,getScrollPosition:getScrollPosition,animScrollTo:animScrollTo,setScrollPosition:setScrollPosition,getScrollbarWidth:getScrollbarWidth,hasScrollbar:hasScrollbar},registered=0;function onWheel(t){shouldPreventScroll(t)&&stopAndPrevent(t)}function shouldPreventScroll(t){if(t.target===document.body||t.target.classList.contains("q-layout-backdrop"))return!0;for(var e=getEventPath(t),i=t.shiftKey&&!t.deltaX,s=!i&&Math.abs(t.deltaX)<=Math.abs(t.deltaY),n=i||s?t.deltaY:t.deltaX,o=0;o<e.length;o++){var r=e[o];if(hasScrollbar(r,s))return s?n<0&&0===r.scrollTop||n>0&&r.scrollTop+r.clientHeight===r.scrollHeight:n<0&&0===r.scrollLeft||n>0&&r.scrollLeft+r.clientWidth===r.scrollWidth}return!0}function preventScroll(t){if(!((registered+=t?1:-1)>1)){var e=t?"add":"remove";Platform.is.mobile?document.body.classList[e]("q-body-prevent-scroll"):Platform.is.desktop&&window[e+"EventListener"]("wheel",onWheel)}}var positions={top:"items-start justify-center with-backdrop",bottom:"items-end justify-center with-backdrop",right:"items-center justify-end with-backdrop",left:"items-center justify-start with-backdrop"},positionCSS={maxHeight:"80vh",height:"auto"};function additionalCSS(t){var e={};return["left","right"].includes(t)&&(e.maxWidth="90vw"),["left","top"].includes(t)&&(e.borderTopLeftRadius=0),["right","top"].includes(t)&&(e.borderTopRightRadius=0),["left","bottom"].includes(t)&&(e.borderBottomLeftRadius=0),["right","bottom"].includes(t)&&(e.borderBottomRightRadius=0),e}var modals={responsive:0,maximized:0},QModal={name:"QModal",mixins:[ModelToggleMixin],provide:function(){var t=this;return{__qmodal:{register:function(e){t.layout!==e&&(t.layout=e)},unregister:function(e){t.layout===e&&(t.layout=null)}}}},props:{position:{type:String,default:"",validator:function(t){return""===t||["top","bottom","left","right"].includes(t)}},transition:String,enterClass:String,leaveClass:String,positionClasses:{type:String,default:"flex-center"},contentClasses:[Object,Array,String],contentCss:[Object,Array,String],noBackdropDismiss:{type:Boolean,default:!1},noEscDismiss:{type:Boolean,default:!1},noRouteDismiss:Boolean,noRefocus:Boolean,minimized:Boolean,maximized:Boolean},data:function(){return{layout:null}},watch:{$route:function(){this.noRouteDismiss||this.hide()},maximized:function(t,e){this.__register(!1,e),this.__register(!0,t)},minimized:function(t,e){this.__register(!1,this.maximized,e),this.__register(!0,this.maximized,t)}},computed:{modalClasses:function(){var t=this.position?positions[this.position]:this.positionClasses;return this.maximized?["maximized",t]:this.minimized?["minimized",t]:t},contentClassesCalc:function(){return this.layout?[this.contentClasses,"column no-wrap"]:this.contentClasses},transitionProps:function(){return this.position?{name:"q-modal-"+this.position}:this.enterClass||this.leaveClass?{enterActiveClass:this.enterClass,leaveActiveClass:this.leaveClass}:{name:this.transition||"q-modal"}},modalCss:function(){if(this.position){var t=Array.isArray(this.contentCss)?this.contentCss:[this.contentCss];return t.unshift(Object.assign({},positionCSS,additionalCSS(this.position))),t}return this.contentCss}},methods:{__dismiss:function(){var t=this;this.noBackdropDismiss?this.__shake():this.hide().then(function(){t.$emit("dismiss")})},__show:function(){var t=this;this.noRefocus||(this.__refocusTarget=document.activeElement),document.body.appendChild(this.$el),this.__register(!0),preventScroll(!0),EscapeKey.register(function(){t.noEscDismiss?t.__shake():t.hide().then(function(){t.$emit("escape-key"),t.$emit("dismiss")})});var e=this.$refs.content;this.$q.platform.is.ios&&e.click(),e.scrollTop=0,["modal-scroll","layout-view"].forEach(function(t){[].slice.call(e.getElementsByClassName(t)).forEach(function(t){t.scrollTop=0})}),this.$nextTick(function(){return e&&e.focus()})},__hide:function(){this.__cleanup(),!this.noRefocus&&this.__refocusTarget&&(this.__refocusTarget.focus(),!this.__refocusTarget.classList.contains("q-if")&&this.__refocusTarget.blur())},__cleanup:function(){EscapeKey.pop(),preventScroll(!1),this.__register(!1)},__stopPropagation:function(t){t.stopPropagation()},__register:function(t,e,i){void 0===e&&(e=this.maximized),void 0===i&&(i=this.minimized);var s=t?{action:"add",step:1}:{action:"remove",step:-1};if(e){if(modals.maximized+=s.step,!t&&modals.maximized>0)return;document.body.classList[s.action]("q-maximized-modal")}else if(!i){if(modals.responsive+=s.step,!t&&modals.responsive>0)return;document.body.classList[s.action]("q-responsive-modal")}},__shake:function(){var t=this;this.$el.classList.remove("animate-shake"),this.$el.classList.add("animate-shake"),clearTimeout(this.shakeTimeout),this.shakeTimeout=setTimeout(function(){t.$el.classList.remove("animate-shake")},150)}},mounted:function(){this.value&&this.show()},beforeDestroy:function(){clearTimeout(this.shakeTimeout),this.$el.remove(),this.showing&&this.__cleanup()},render:function(t){var e=this;return t("transition",{props:this.transitionProps,on:{afterEnter:function(){e.showPromise&&e.showPromiseResolve()},enterCancelled:function(){e.showPromise&&e.showPromiseReject(),e.$el.remove()},afterLeave:function(){e.hidePromise&&e.hidePromiseResolve(),e.$el.remove()},leaveCancelled:function(){e.hidePromise&&e.hidePromiseReject()}}},[t("div",{staticClass:"modal fullscreen row",class:this.modalClasses,on:{click:this.__dismiss},directives:[{name:"show",value:this.showing}]},[t("div",{ref:"content",staticClass:"modal-content",style:this.modalCss,class:this.contentClassesCalc,attrs:{tabindex:-1},on:{click:this.__stopPropagation,touchstart:this.__stopPropagation}},this.$slots.default)])])}},prefix$1="md",QIcon={name:"QIcon",props:{name:String,color:String,size:String},computed:{classes:function(){var t,e=this.name;return e?(t=/^fa[s|r|l|b]{0,1} /.test(e)||e.startsWith("icon-")?e:e.startsWith("bt-")?"bt "+e:/^ion-(md|ios|logo)/.test(e)?"ionicons "+e:e.startsWith("ion-")?"ionicons ion-"+prefix$1+e.substr(3):e.startsWith("mdi-")?"mdi "+e:"material-icons",this.color?t+" text-"+this.color:t):""},content:function(){return this.classes.startsWith("material-icons")?this.name.replace(/ /g,"_"):" "},style:function(){if(this.size)return{fontSize:this.size}}},render:function(t){return t("i",{staticClass:"q-icon",class:this.classes,style:this.style,attrs:{"aria-hidden":!0}},[this.content,this.$slots.default])}},QList={name:"QList",props:{noBorder:Boolean,dark:Boolean,dense:Boolean,sparse:Boolean,striped:Boolean,stripedOdd:Boolean,separator:Boolean,insetSeparator:Boolean,multiline:Boolean,highlight:Boolean,link:Boolean},computed:{classes:function(){return{"no-border":this.noBorder,"q-list-dark":this.dark,"q-list-dense":this.dense,"q-list-sparse":this.sparse,"q-list-striped":this.striped,"q-list-striped-odd":this.stripedOdd,"q-list-separator":this.separator,"q-list-inset-separator":this.insetSeparator,"q-list-multiline":this.multiline,"q-list-highlight":this.highlight,"q-list-link":this.link}}},render:function(t){return t("div",{staticClass:"q-list",class:this.classes},this.$slots.default)}},routerLinkEventName="qrouterlinkclick",evt=null;if(!isSSR)try{evt=new Event(routerLinkEventName)}catch(t){(evt=document.createEvent("Event")).initEvent(routerLinkEventName,!0,!1)}var routerLinkProps={to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,event:[String,Array],activeClass:String,exactActiveClass:String},RouterLinkMixin={props:routerLinkProps,data:function(){return{routerLinkEventName:routerLinkEventName}}};function textStyle(t){return void 0===t||t<2?{}:{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":t}}var subItemProps={icon:String,rightIcon:String,image:String,rightImage:String,avatar:String,rightAvatar:String,letter:String,rightLetter:String,label:String,sublabel:String,labelLines:[String,Number],sublabelLines:[String,Number]},ItemMixin={mixins:[{props:routerLinkProps}],props:{dark:Boolean,link:Boolean,dense:Boolean,sparse:Boolean,separator:Boolean,insetSeparator:Boolean,multiline:Boolean,highlight:Boolean,tag:{type:String,default:"div"}},computed:{itemClasses:function(){return{"q-item":!0,"q-item-division":!0,"relative-position":!0,"q-item-dark":this.dark,"q-item-dense":this.dense,"q-item-sparse":this.sparse,"q-item-separator":this.separator,"q-item-inset-separator":this.insetSeparator,"q-item-multiline":this.multiline,"q-item-highlight":this.highlight,"q-item-link":this.to||this.link}}}},QItem={name:"QItem",mixins:[ItemMixin],props:{active:Boolean,link:Boolean},computed:{classes:function(){return[void 0!==this.to?"q-link":{active:this.active},this.itemClasses]}},render:function(t){return void 0!==this.to?t("router-link",{props:Object.assign({},this.$props,{tag:"a"}),class:this.classes},this.$slots.default):t(this.tag,{class:this.classes},this.$slots.default)}},QItemSide={name:"QItemSide",props:{right:Boolean,icon:String,letter:{type:String,validator:function(t){return 1===t.length}},inverted:Boolean,avatar:String,image:String,stamp:String,color:String,textColor:String},computed:{type:function(){var t=this;return["icon","image","avatar","letter","stamp"].find(function(e){return t[e]})},classes:function(){var t=["q-item-side-"+(this.right?"right":"left")];return!this.color||this.icon||this.letter||t.push("text-"+this.color),t},typeClasses:function(){var t=["q-item-"+this.type];return this.color&&(this.inverted&&(this.icon||this.letter)?t.push("bg-"+this.color):this.textColor||t.push("text-"+this.color)),this.textColor&&t.push("text-"+this.textColor),this.inverted&&(this.icon||this.letter)&&(t.push("q-item-inverted"),t.push("flex"),t.push("flex-center")),t},imagePath:function(){return this.image||this.avatar}},render:function(t){var e;return this.type&&(this.icon?(e=t(QIcon,{class:this.inverted?null:this.typeClasses,props:{name:this.icon}}),this.inverted&&(e=t("div",{class:this.typeClasses},[e]))):e=this.imagePath?t("img",{class:this.typeClasses,attrs:{src:this.imagePath}}):t("div",{class:this.typeClasses},[this.stamp||this.letter])),t("div",{staticClass:"q-item-side q-item-section",class:this.classes},[e,this.$slots.default])}};function text(t,e,i,s){return t("div",{staticClass:"q-item-"+e+(1===(s=parseInt(s,10))?" ellipsis":""),style:textStyle(s),domProps:{innerHTML:i}})}var QItemMain={name:"QItemMain",props:{label:String,labelLines:[String,Number],sublabel:String,sublabelLines:[String,Number],inset:Boolean,tag:{type:String,default:"div"}},render:function(t){return t(this.tag,{staticClass:"q-item-main q-item-section",class:{"q-item-main-inset":this.inset}},[this.label?text(t,"label",this.label,this.labelLines):null,this.sublabel?text(t,"sublabel",this.sublabel,this.sublabelLines):null,this.$slots.default])}},QItemSeparator={name:"QItemSeparator",props:{inset:Boolean},render:function(t){return t("div",{staticClass:"q-item-separator-component",class:{"q-item-separator-inset-component":this.inset}},this.$slots.default)}},QActionSheet={name:"QActionSheet",props:{value:Boolean,title:String,grid:Boolean,actions:Array,dismissLabel:String},computed:{contentCss:function(){}},render:function(t){var e=this,i=[],s=this.$slots.title||this.title;return s&&i.push(t("div",{staticClass:"q-actionsheet-title column justify-center"},[s])),i.push(t("div",{staticClass:"q-actionsheet-body scroll"},this.actions?[this.grid?t("div",{staticClass:"q-actionsheet-grid row wrap items-center justify-between"},this.__getActions(t)):t(QList,{staticClass:"no-border",props:{link:!0}},this.__getActions(t))]:this.$slots.default)),t(QModal,{ref:"modal",props:{value:this.value,position:"bottom",contentCss:this.contentCss},on:{input:function(t){e.$emit("input",t)},show:function(){e.$emit("show")},hide:function(){e.$emit("hide")},dismiss:function(){e.$emit("cancel")},"escape-key":function(){e.$emit("escape-key")}}},i)},methods:{show:function(){return this.$refs.modal.show()},hide:function(){return this.$refs.modal?this.$refs.modal.hide():Promise.resolve()},__getActions:function(t){var e=this;return this.actions.map(function(i){var s;return i.label?t(e.grid?"div":QItem,((s={staticClass:e.grid?"q-actionsheet-grid-item cursor-pointer relative-position column inline flex-center":null,class:i.classes,attrs:{tabindex:0}})[e.grid?"on":"nativeOn"]={click:function(){return e.__onOk(i)},keyup:function(t){13===getEventKey(t)&&e.__onOk(i)}},s),e.grid?[i.icon?t(QIcon,{props:{name:i.icon,color:i.color}}):null,i.avatar?t("img",{domProps:{src:i.avatar},staticClass:"avatar"}):null,t("span",[i.label])]:[t(QItemSide,{props:{icon:i.icon,color:i.color,avatar:i.avatar}}),t(QItemMain,{props:{inset:!0,label:i.label}})]):t(QItemSeparator,{staticClass:"col-12"})})},__onOk:function(t){var e=this;this.hide().then(function(){"function"==typeof t.handler&&t.handler(),e.$emit("ok",t)})},__onCancel:function(){var t=this;this.hide().then(function(){t.$emit("cancel")})},__onKeyCancel:function(t){13===getEventKey(t)&&this.__onCancel()}}},units=["B","kB","MB","GB","TB","PB"];function humanStorageSize(t){for(var e=0;parseInt(t,10)>=1024&&e<units.length-1;)t/=1024,++e;return t.toFixed(1)+" "+units[e]}function capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)}function between(t,e,i){return i<=e?e:Math.min(i,Math.max(e,t))}function normalizeToInterval(t,e,i){if(i<=e)return e;var s=i-e+1,n=e+(t-e)%s;return n<e&&(n=s+n),0===n?0:n}function pad(t,e,i){void 0===e&&(e=2),void 0===i&&(i="0");var s=""+t;return s.length>=e?s:new Array(e-s.length+1).join(i)+s}var format={humanStorageSize:humanStorageSize,capitalize:capitalize,between:between,normalizeToInterval:normalizeToInterval,pad:pad},xhr=isSSR?null:XMLHttpRequest,send=isSSR?null:xhr.prototype.send,stack={start:[],stop:[]},highjackCount=0;function translate(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),cssTransform("translate3d("+a*(e-100)+"%,"+(s?0:-200*l)+"%,0)")):(o&&(l=-1),"right"===i&&(a=-1),cssTransform("translate3d("+(s?0:r*a*-200)+"%,"+l*(e-100)+"%,0)"))}function inc(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),between(t+e,0,100)}function highjackAjax(t,e){function i(){stack.stop.map(function(t){t()})}stack.start.push(t),stack.stop.push(e),++highjackCount>1||(xhr.prototype.send=function(){for(var t=this,e=[],s=arguments.length;s--;)e[s]=arguments[s];stack.start.map(function(t){t()}),this.addEventListener("abort",i,!1),this.addEventListener("readystatechange",function(){4===t.readyState&&i()},!1),send.apply(this,e)})}function restoreAjax(t,e){stack.start=stack.start.filter(function(e){return e!==t}),stack.stop=stack.stop.filter(function(t){return t!==e}),(highjackCount=Math.max(0,highjackCount-1))||(xhr.prototype.send=send)}var QAjaxBar={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[this.position,"bg-"+this.color,this.animate?"":"no-transition"]},style:function(){var t=this.onScreen,e=translate({p:this.progress,pos:this.position,active:t,horiz:this.horizontal,reverse:this.$q.i18n.rtl&&["top","bottom"].includes(this.position)?!this.reverse:this.reverse,dir:this.$q.i18n.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=inc(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,highjackAjax(this.start,this.stop))},beforeDestroy:function(){clearTimeout(this.timer),this.hijacked&&restoreAjax(this.start,this.stop)},render:function(t){return t("div",{staticClass:"q-loading-bar",class:this.classes,style:this.style})}};function showRipple(t,e,i){var s=i.stop,n=i.center;s&&t.stopPropagation();var o,r,a=document.createElement("span"),l=document.createElement("span"),c=e.clientWidth>e.clientHeight?e.clientWidth:e.clientHeight,h=(n?c:2*c)+"px",u=e.getBoundingClientRect();if(a.appendChild(l),a.className="q-ripple-container",l.className="q-ripple-animation",l.style.width=h,l.style.height=h,e.appendChild(a),n)o=r=0;else{var d=position(t);o=d.left-u.left-c,r=d.top-u.top-c}l.classList.add("q-ripple-animation-enter"),l.classList.add("q-ripple-animation-visible"),css(l,cssTransform("translate("+o+"px, "+r+"px) scale3d(0, 0, 0)")),setTimeout(function(){l.classList.remove("q-ripple-animation-enter"),css(l,cssTransform("translate("+o+"px, "+r+"px) scale3d(1, 1, 1)")),setTimeout(function(){l.classList.remove("q-ripple-animation-visible"),setTimeout(function(){a.remove()},300)},300)},10)}function shouldAbort(t){t.mat;return t.ios&&!0}var Ripple={name:"ripple",inserted:function(t,e){var i=e.value,s=e.modifiers;if(!shouldAbort(s)){var n={enabled:!1!==i,modifiers:{stop:s.stop,center:s.center},click:function(e){n.enabled&&-1!==e.detail&&showRipple(e,t,n.modifiers)},keyup:function(e){n.enabled&&13===e.keyCode&&showRipple(e,t,n.modifiers)}};t.__qripple=n,t.addEventListener("click",n.click,!1),t.addEventListener("keyup",n.keyup,!1)}},update:function(t,e){var i=e.value,s=e.modifiers,n=s.stop,o=s.center,r=t.__qripple;r&&(r.enabled=!1!==i,r.modifiers={stop:n,center:o})},unbind:function(t,e){var i=e.modifiers,s=t.__qripple;s&&!shouldAbort(i)&&(t.removeEventListener("click",s.click,!1),t.removeEventListener("keyup",s.keyup,!1),delete t.__qripple)}},alignMap={left:"start",center:"center",right:"end",between:"between",around:"around"},alignValues=Object.keys(alignMap),AlignMixin={props:{align:{type:String,default:"center",validator:function(t){return alignValues.includes(t)}}},computed:{alignClass:function(){return"justify-"+alignMap[this.align]}}},sizes={xs:8,sm:10,md:14,lg:20,xl:24,form:14.777,"form-label":21.777,"form-hide-underline":9.333,"form-label-hide-underline":16.333},BtnMixin={mixins:[AlignMixin],directives:{Ripple:Ripple},props:{type:String,loading:Boolean,disable:Boolean,label:[Number,String],noCaps:Boolean,noWrap:Boolean,icon:String,iconRight:String,round:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,push:Boolean,size:String,fab:Boolean,fabMini:Boolean,color:String,textColor:String,glossy:Boolean,dense:Boolean,noRipple:Boolean,tabindex:Number,to:[Object,String],replace:Boolean},computed:{style:function(){if(this.size&&!this.fab&&!this.fabMini)return{fontSize:this.size in sizes?sizes[this.size]+"px":this.size}},isRectangle:function(){return!this.isRound},isRound:function(){return this.round||this.fab||this.fabMini},shape:function(){return"q-btn-"+(this.isRound?"round":"rectangle")},isDisabled:function(){return this.disable||this.loading},hasRipple:function(){return!this.noRipple&&!this.isDisabled},computedTabIndex:function(){return this.isDisabled?-1:this.tabindex||0},isLink:function(){return"a"===this.type||void 0!==this.to},attrs:function(){var t={tabindex:this.computedTabIndex};return"a"!==this.type&&(t.type=this.type||"button"),void 0!==this.to&&(t.href=this.$router.resolve(this.to).href),t},classes:function(){var t=[this.shape];return this.fab?t.push("q-btn-fab"):this.fabMini&&t.push("q-btn-fab-mini"),this.flat?t.push("q-btn-flat"):this.outline?t.push("q-btn-outline"):this.push&&t.push("q-btn-push"),this.isDisabled?t.push("disabled"):(t.push("q-focusable q-hoverable"),this.active&&t.push("active")),this.color?this.flat||this.outline?t.push("text-"+(this.textColor||this.color)):(t.push("bg-"+this.color),t.push("text-"+(this.textColor||"white"))):this.textColor&&t.push("text-"+this.textColor),t.push({"q-btn-no-uppercase":this.noCaps,"q-btn-rounded":this.rounded,"q-btn-dense":this.dense,glossy:this.glossy}),t},innerClasses:function(){var t=[this.alignClass];return this.noWrap&&t.push("no-wrap","text-no-wrap"),this.repeating&&t.push("non-selectable"),t}}},mixin$1={props:{color:String,size:{type:[Number,String],default:"1em"}},computed:{classes:function(){if(this.color)return"text-"+this.color}}},DefaultSpinner={name:"QSpinnerMat",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner q-spinner-mat",class:this.classes,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":"3","stroke-miterlimit":"10"}})])}},QSpinner={mixins:[DefaultSpinner],name:"QSpinner"},QBtn={name:"QBtn",mixins:[BtnMixin],props:{percentage:Number,darkPercentage:Boolean,waitForRipple:Boolean,repeatTimeout:[Number,Function]},computed:{hasPercentage:function(){return void 0!==this.percentage},width:function(){return between(this.percentage,0,100)+"%"},events:function(){var t=this;return this.isDisabled||!this.repeatTimeout?{click:this.click,keydown:this.__onKeyDown,keyup:this.__onKeyUp}:{mousedown:this.__startRepeat,touchstart:this.__startRepeat,keydown:function(e){t.__onKeyDown(e,!0)},mouseup:this.__endRepeat,touchend:this.__endRepeat,keyup:function(e){t.__onKeyUp(e,!0)},mouseleave:this.__abortRepeat,touchmove:this.__abortRepeat,blur:this.__abortRepeat}}},data:function(){return{repeating:!1,active:!1}},methods:{click:function(t){var e=this;if(this.__cleanup(),void 0===this.to&&!this.isDisabled||(t&&stopAndPrevent(t),!this.isDisabled))if(t&&-1!==t.detail&&"submit"===this.type){stopAndPrevent(t);var i=new MouseEvent("click",Object.assign({},t,{detail:-1}));this.timer=setTimeout(function(){return e.$el&&e.$el.dispatchEvent(i)},200)}else{var s=function(){e.$router[e.replace?"replace":"push"](e.to)},n=function(){e.isDisabled||(e.$emit("click",t,s),void 0!==e.to&&!1!==t.navigate&&s())};this.waitForRipple&&this.hasRipple?this.timer=setTimeout(n,300):n()}},__cleanup:function(){clearTimeout(this.timer)},__onKeyDown:function(t,e){this.isDisabled||13!==t.keyCode||(this.active=!0,e?this.__startRepeat(t):stopAndPrevent(t))},__onKeyUp:function(t,e){this.active&&(this.active=!1,this.isDisabled||13!==t.keyCode||this[e?"__endRepeat":"click"](t))},__startRepeat:function(t){var e=this;if(!this.repeating){var i=function(){e.timer=setTimeout(s,"function"==typeof e.repeatTimeout?e.repeatTimeout(e.repeatCount):e.repeatTimeout)},s=function(){e.isDisabled||(e.repeatCount+=1,t.repeatCount=e.repeatCount,e.$emit("click",t),i())};this.repeatCount=0,this.repeating=!0,i()}},__abortRepeat:function(){this.repeating=!1,this.__cleanup()},__endRepeat:function(t){this.repeating&&(this.repeating=!1,this.repeatCount?this.repeatCount=0:(t.detail||t.keyCode)&&(t.repeatCount=0,this.$emit("click",t)),this.__cleanup())}},beforeDestroy:function(){this.__cleanup()},render:function(t){return t(this.isLink?"a":"button",{staticClass:"q-btn inline relative-position q-btn-item non-selectable",class:this.classes,style:this.style,attrs:this.attrs,on:this.events,directives:this.hasRipple?[{name:"ripple",value:!0,modifiers:{center:this.isRound}}]:null},[this.$q.platform.is.desktop?t("div",{staticClass:"q-focus-helper"}):null,this.loading&&this.hasPercentage?t("div",{staticClass:"q-btn-progress absolute-full",class:{"q-btn-dark-progress":this.darkPercentage},style:{width:this.width}}):null,t("div",{staticClass:"q-btn-inner row col items-center",class:this.innerClasses},this.loading?[this.$slots.loading||t(QSpinner)]:[this.icon?t(QIcon,{class:{"on-left":this.label&&this.isRectangle},props:{name:this.icon}}):null,this.label&&this.isRectangle?t("div",[this.label]):null,this.$slots.default,this.iconRight&&this.isRectangle?t(QIcon,{staticClass:"on-right",props:{name:this.iconRight}}):null])])}},QAlert={name:"QAlert",props:{type:{type:String,validator:function(t){return["positive","negative","warning","info"].includes(t)}},color:{type:String,default:"negative"},textColor:String,message:String,detail:String,icon:String,avatar:String,actions:Array},computed:{computedIcon:function(){return this.icon?this.icon:this.$q.icon.type[this.type||this.color]},classes:function(){return"bg-"+(this.type||this.color)+" text-"+(this.textColor||"white")}},render:function(t){var e=this,i=[],s=this.$slots.detail||this.detail;return this.avatar?i.push(t("img",{staticClass:"avatar",attrs:{src:this.avatar}})):(this.icon||this.type)&&i.push(t(QIcon,{props:{name:this.computedIcon}})),t("div",[t("div",{staticClass:"q-alert row no-wrap shadow-2",class:this.classes},[i.length?t("div",{staticClass:"q-alert-side col-auto row flex-center"},i):null,t("div",{staticClass:"q-alert-content col self-center"},[t("div",this.$slots.default||this.message),s?t("div",{staticClass:"q-alert-detail"},[s]):null]),this.actions&&this.actions.length?t("div",{staticClass:"q-alert-actions col-auto gutter-xs column flex-center"},this.actions.map(function(i){return t("div",{staticClass:"full-width"},[t(QBtn,{staticClass:"full-width",props:{flat:!0,dense:!0,align:"left",icon:i.icon,label:!0===i.closeBtn?"string"==typeof i.label?i.label:e.$q.i18n.label.close:i.label},on:{click:function(){return i.handler()}}})])})):null])])}};function filter(t,e){var i=e.field,s=e.list,n=t.toLowerCase();return s.filter(function(t){return(""+t[i]).toLowerCase().startsWith(n)})}function s4(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function uid(){return s4()+s4()+"-"+s4()+"-"+s4()+"-"+s4()+"-"+s4()+s4()+s4()}function getAnchorPosition(t,e){var i=t.getBoundingClientRect(),s=i.top,n=i.left,o=i.right,r=i.bottom,a={top:s,left:n,width:t.offsetWidth,height:t.offsetHeight};return e&&(a.top-=e[1],a.left-=e[0],r&&(r+=e[1]),o&&(o+=e[0]),a.width+=e[0],a.height+=e[1]),a.right=o||a.left+a.width,a.bottom=r||a.top+a.height,a.middle=a.left+(a.right-a.left)/2,a.center=a.top+(a.bottom-a.top)/2,a}function getTargetPosition(t){return{top:0,center:t.offsetHeight/2,bottom:t.offsetHeight,left:0,middle:t.offsetWidth/2,right:t.offsetWidth}}function getPositions(t,e){var i=Object.assign({},t),s=Object.assign({},e),n={x:["left","right"].filter(function(t){return t!==s.horizontal}),y:["top","bottom"].filter(function(t){return t!==s.vertical})},o=-1!==[i.horizontal,s.horizontal].indexOf("middle"),r=-1!==[i.vertical,s.vertical].indexOf("center");return n.x.splice(o?0:1,0,"middle"),n.y.splice(r?0:1,0,"center"),r||(i.vertical="top"===i.vertical?"bottom":"top"),o||(i.horizontal="left"===i.horizontal?"right":"left"),{positions:n,anchorPos:i}}function repositionIfNeeded(t,e,i,s,n){var o=getPositions(s,i),r=o.positions,a=o.anchorPos;if(n.top<0||n.top+e.bottom>window.innerHeight){var l=t[a.vertical]-e[r.y[0]];l+e.bottom<=window.innerHeight?n.top=l:(l=t[a.vertical]-e[r.y[1]])+e.bottom<=window.innerHeight&&(n.top=l)}if(n.left<0||n.left+e.right>window.innerWidth){var c=t[a.horizontal]-e[r.x[0]];c+e.right<=window.innerWidth?n.left=c:(c=t[a.horizontal]-e[r.x[1]])+e.right<=window.innerWidth&&(n.left=c)}return n}function setPosition(t){var e,i=t.el,s=t.animate,n=t.anchorEl,o=t.anchorOrigin,r=t.selfOrigin,a=t.maxHeight,l=t.event,c=t.anchorClick,h=t.touchPosition,u=t.offset;if(i.style.maxHeight=a||"65vh",!l||c&&!h)e=getAnchorPosition(n,u);else{var d=position(l),p=d.top,f=d.left;e={top:p,left:f,width:1,height:1,right:f+1,center:p,middle:f,bottom:p+1}}var m=getTargetPosition(i),g={top:e[o.vertical]-m[r.vertical],left:e[o.horizontal]-m[r.horizontal]};if(g=repositionIfNeeded(e,m,r,o,g),i.style.top=Math.max(0,g.top)+"px",i.style.left=Math.max(0,g.left)+"px",s){var v=g.top<e.top?["up","down"]:["down","up"];i.classList.add("animate-popup-"+v[0]),i.classList.remove("animate-popup-"+v[1])}}function positionValidator(t){var e=t.split(" ");return 2===e.length&&(["top","center","bottom"].includes(e[0])?!!["left","middle","right"].includes(e[1])||(console.error("Anchor/Self position must end with one of left/middle/right"),!1):(console.error("Anchor/Self position must start with one of top/center/bottom"),!1))}function offsetValidator(t){return!t||2===t.length&&("number"==typeof t[0]&&"number"==typeof t[1])}function parsePosition(t){var e=t.split(" ");return{vertical:e[0],horizontal:e[1]}}function frameDebounce(t){var e,i=!1;function s(){for(var s=this,n=[],o=arguments.length;o--;)n[o]=arguments[o];i||(i=!0,e=requestAnimationFrame(function(){t.apply(s,n),i=!1}))}return s.cancel=function(){window.cancelAnimationFrame(e),i=!1},s}var CanRenderMixin={data:function(){return{canRender:!onSSR}},mounted:function(){!1===this.canRender&&(this.canRender=!0)}},QPopover={name:"QPopover",mixins:[ModelToggleMixin,CanRenderMixin],props:{anchor:{type:String,validator:positionValidator},self:{type:String,validator:positionValidator},fit:Boolean,cover:Boolean,persistent:Boolean,maxHeight:String,touchPosition:Boolean,anchorClick:{type:Boolean,default:!0},offset:{type:Array,validator:offsetValidator},noFocus:Boolean,noRefocus:Boolean,disable:Boolean},watch:{$route:function(){this.hide()}},computed:{horizSide:function(){return this.$q.i18n.rtl?"right":"left"},anchorOrigin:function(){return parsePosition(this.cover?"top "+this.horizSide:this.anchor||"bottom "+this.horizSide)},selfOrigin:function(){return parsePosition(this.self||"top "+this.horizSide)}},render:function(t){if(this.canRender)return t("div",{staticClass:"q-popover scroll",ref:"content",attrs:{tabindex:-1},on:{click:function(t){t.stopPropagation()}}},this.$slots.default)},mounted:function(){var t=this;this.__updatePosition=frameDebounce(function(e,i,s){return t.reposition(i,s)}),this.$nextTick(function(){t.anchorEl=t.$el.parentNode,t.anchorEl.removeChild(t.$el),(t.anchorEl.classList.contains("q-btn-inner")||t.anchorEl.classList.contains("q-if-inner"))&&(t.anchorEl=t.anchorEl.parentNode),t.anchorClick&&(t.anchorEl.classList.add("cursor-pointer"),t.anchorEl.addEventListener("click",t.toggle),t.anchorEl.addEventListener("keyup",t.__toggleKey))}),this.value&&this.show()},beforeDestroy:function(){this.showing&&this.__cleanup(),this.anchorClick&&this.anchorEl&&(this.anchorEl.removeEventListener("click",this.toggle),this.anchorEl.removeEventListener("keyup",this.__toggleKey))},methods:{__show:function(t){var e=this;this.noRefocus||(this.__refocusTarget=this.anchorClick&&this.anchorEl||document.activeElement),document.body.appendChild(this.$el),EscapeKey.register(function(){!e.persistent&&e.hide()}),this.scrollTarget=getScrollTarget(this.anchorEl),this.scrollTarget.addEventListener("scroll",this.__updatePosition,listenOpts.passive),this.scrollTarget!==window&&window.addEventListener("scroll",this.__updatePosition,listenOpts.passive),window.addEventListener("resize",this.__updatePosition,listenOpts.passive),this.__updatePosition(0,t,!0),clearTimeout(this.timer),!this.noFocus&&this.$refs.content&&this.$refs.content.focus(),this.timer=setTimeout(function(){document.body.addEventListener("click",e.__bodyHide,!0),document.body.addEventListener("touchstart",e.__bodyHide,!0),e.showPromise&&e.showPromiseResolve()},0)},__toggleKey:function(t){13===t.keyCode&&this.toggle(t)},__bodyHide:function(t){this.persistent||t&&t.target&&(this.$el.contains(t.target)||this.anchorEl.contains(t.target))||this.hide(t)},__hide:function(){this.__cleanup(),this.hidePromise&&this.hidePromiseResolve(),!this.noRefocus&&this.__refocusTarget&&(this.__refocusTarget.focus(),!this.__refocusTarget.classList.contains("q-if")&&this.__refocusTarget.blur())},__cleanup:function(){clearTimeout(this.timer),document.body.removeEventListener("click",this.__bodyHide,!0),document.body.removeEventListener("touchstart",this.__bodyHide,!0),this.scrollTarget.removeEventListener("scroll",this.__updatePosition,listenOpts.passive),this.scrollTarget!==window&&window.removeEventListener("scroll",this.__updatePosition,listenOpts.passive),window.removeEventListener("resize",this.__updatePosition,listenOpts.passive),EscapeKey.pop(),this.$el.remove()},reposition:function(t,e){var i=this.anchorEl.getBoundingClientRect(),s=i.top;if(i.bottom<0||s>window.innerHeight)return this.hide();if(this.fit||this.cover){var n=window.getComputedStyle(this.anchorEl);this.$el.style.minWidth=n.getPropertyValue("width"),this.cover&&(this.$el.style.minHeight=n.getPropertyValue("height"))}setPosition({event:t,animate:e,el:this.$el,offset:this.offset,anchorEl:this.anchorEl,anchorOrigin:this.anchorOrigin,selfOrigin:this.selfOrigin,maxHeight:this.maxHeight,anchorClick:this.anchorClick,touchPosition:this.touchPosition})}}};function push(t,e,i,s,n,o){var r={props:{right:o.right}};if(s&&n)t.push(e(i,r,s));else{var a=!1;for(var l in o)if(o.hasOwnProperty(l)&&void 0!==(a=o[l])&&!0!==a){t.push(e(i,{props:o}));break}s&&t.push(e(i,r,s))}}var QItemWrapper={name:"QItemWrapper",props:{cfg:{type:Object,default:function(){return{}}},slotReplace:Boolean},render:function(t){var e=this.cfg,i=this.slotReplace,s=[];return push(s,t,QItemSide,this.$slots.left,i,{icon:e.icon,color:e.leftColor,avatar:e.avatar,letter:e.letter,image:e.image,inverted:e.leftInverted,textColor:e.leftTextColor}),push(s,t,QItemMain,this.$slots.main,i,{label:e.label,sublabel:e.sublabel,labelLines:e.labelLines,sublabelLines:e.sublabelLines,inset:e.inset}),push(s,t,QItemSide,this.$slots.right,i,{right:!0,icon:e.rightIcon,color:e.rightColor,avatar:e.rightAvatar,letter:e.rightLetter,image:e.rightImage,stamp:e.stamp,inverted:e.rightInverted,textColor:e.rightTextColor}),s.push(this.$slots.default),t(QItem,{attrs:this.$attrs,on:this.$listeners,props:e},s)}},KeyboardSelectionMixin={data:function(){return{keyboardIndex:0,keyboardMoveDirection:!1,keyboardMoveTimer:!1}},watch:{keyboardIndex:function(t){var e=this;this.$refs.popover&&this.$refs.popover.showing&&this.keyboardMoveDirection&&t>-1&&this.$nextTick(function(){if(e.$refs.popover){var t=e.$refs.popover.$el.querySelector(".q-select-highlight");if(t&&t.scrollIntoView){if(t.scrollIntoViewIfNeeded)return t.scrollIntoViewIfNeeded(!1);t.scrollIntoView(e.keyboardMoveDirection<0)}}})}},methods:{__keyboardShow:function(t){void 0===t&&(t=0),this.keyboardIndex!==t&&(this.keyboardIndex=t)},__keyboardSetCurrentSelection:function(t){this.keyboardIndex>=0&&this.keyboardIndex<=this.keyboardMaxIndex&&this.__keyboardSetSelection(this.keyboardIndex,t)},__keyboardHandleKey:function(t){var e=getEventKey(t);switch(e){case 38:this.__keyboardMoveCursor(-1,t);break;case 40:this.__keyboardMoveCursor(1,t);break;case 13:if(this.$refs.popover.showing)return stopAndPrevent(t),void this.__keyboardSetCurrentSelection();break;case 9:this.hide()}this.__keyboardCustomKeyHandle(e,t)},__keyboardMoveCursor:function(t,e){var i=this;if(stopAndPrevent(e),this.$refs.popover.showing){clearTimeout(this.keyboardMoveTimer);var s=this.keyboardIndex,n=this.__keyboardIsSelectableIndex||function(){return!0};do{s=normalizeToInterval(s+t,-1,i.keyboardMaxIndex)}while(s!==this.keyboardIndex&&!n(s));return this.keyboardMoveDirection=s>this.keyboardIndex?1:-1,this.keyboardMoveTimer=setTimeout(function(){i.keyboardMoveDirection=!1},500),void(this.keyboardIndex=s)}this.__keyboardShowTrigger()}}},QAutocomplete={name:"QAutocomplete",mixins:[KeyboardSelectionMixin],props:{minCharacters:{type:Number,default:1},maxResults:{type:Number,default:6},maxHeight:String,debounce:{type:Number,default:500},filter:{type:Function,default:filter},staticData:Object,valueField:{type:[String,Function],default:"value"},separator:Boolean},inject:{__input:{default:function(){console.error("QAutocomplete needs to be child of QInput, QChipsInput or QSearch")}},__inputDebounce:{default:null}},data:function(){return{searchId:"",results:[],width:0,enterKey:!1,timer:null}},watch:{"__input.val":function(){this.enterKey?this.enterKey=!1:this.__delayTrigger()}},computed:{computedResults:function(){return this.maxResults&&this.results.length>0?this.results.slice(0,this.maxResults):[]},computedValueField:function(){return this.valueField||(this.staticData?this.staticData.field:"value")},keyboardMaxIndex:function(){return this.computedResults.length-1},computedWidth:function(){return{minWidth:this.width}},searching:function(){return this.searchId.length>0}},methods:{isWorking:function(){return this.$refs&&this.$refs.popover},trigger:function(t){var e=this;if(this.__input&&this.__input.isEditable()&&this.__input.hasFocus()&&this.isWorking()){var i=[null,void 0].includes(this.__input.val)?"":String(this.__input.val),s=i.length,n=uid(),o=this.$refs.popover;if(this.searchId=n,s<this.minCharacters||!0===t&&s>0)return this.searchId="",this.__clearSearch(),void this.hide();if(this.width=width(this.inputEl)+"px",this.staticData)return this.searchId="",this.results=this.filter(i,this.staticData),this.results.length?void this.__showResults():void o.hide();this.__input.loading=!0,this.$emit("search",i,function(t){if(e.isWorking()&&e.searchId===n){if(e.__clearSearch(),Array.isArray(t)&&t.length>0)return e.results=t,void e.__showResults();e.hide()}})}},hide:function(){return this.results=[],this.isWorking()?this.$refs.popover.hide():Promise.resolve()},blurHide:function(){var t=this;this.__clearSearch(),this.timer=setTimeout(function(){return t.hide()},300)},__clearSearch:function(){clearTimeout(this.timer),this.__input.loading=!1,this.searchId=""},__keyboardCustomKeyHandle:function(t){switch(t){case 27:this.__clearSearch();break;case 38:case 40:case 9:this.__keyboardSetCurrentSelection(!0)}},__keyboardShowTrigger:function(){this.trigger()},__focusShowTrigger:function(){var t=this;clearTimeout(this.timer),this.timer=setTimeout(function(){return t.trigger(!0)},100)},__keyboardIsSelectableIndex:function(t){return t>-1&&t<this.computedResults.length&&!this.computedResults[t].disable},setValue:function(t,e){var i="function"==typeof this.computedValueField?this.computedValueField(t):t[this.computedValueField],s=this.__inputDebounce?"Debounce":"";this.inputEl&&this.__input&&!this.__input.hasFocus()&&this.inputEl.focus(),this.enterKey=this.__input&&i!==this.__input.val,this["__input"+s][e?"setNav":"set"](i),this.$emit("selected",t,!!e),e||(this.__clearSearch(),this.hide())},__keyboardSetSelection:function(t,e){this.setValue(this.results[t],e)},__delayTrigger:function(){this.__clearSearch(),this.__input.hasFocus()&&(this.staticData?this.trigger():this.timer=setTimeout(this.trigger,this.debounce))},__showResults:function(){var t=this.$refs.popover;this.__keyboardShow(-1),t.showing?this.$nextTick(function(){return t.showing&&t.reposition()}):t.show()}},mounted:function(){var t=this;this.__input.register(),this.__inputDebounce&&this.__inputDebounce.setChildDebounce(!0),this.$nextTick(function(){t.__input&&(t.inputEl=t.__input.getEl()),t.inputEl.addEventListener("keydown",t.__keyboardHandleKey),t.inputEl.addEventListener("blur",t.blurHide),t.inputEl.addEventListener("focus",t.__focusShowTrigger)})},beforeDestroy:function(){this.__clearSearch(),this.__input.unregister(),this.__inputDebounce&&this.__inputDebounce.setChildDebounce(!1),this.inputEl&&(this.inputEl.removeEventListener("keydown",this.__keyboardHandleKey),this.inputEl.removeEventListener("blur",this.blurHide),this.inputEl.removeEventListener("focus",this.__focusShowTrigger),this.hide())},render:function(t){var e=this,i=this.__input.isDark();return t(QPopover,{ref:"popover",class:i?"bg-dark":null,props:{fit:!0,anchorClick:!1,maxHeight:this.maxHeight,noFocus:!0,noRefocus:!0},on:{show:function(){e.__input.selectionOpen=!0,e.$emit("show")},hide:function(){e.__input.selectionOpen=!1,e.$emit("hide")}}},[t(QList,{props:{dark:i,noBorder:!0,separator:this.separator},style:this.computedWidth},this.computedResults.map(function(i,s){return t(QItemWrapper,{key:i.id||s,class:{"q-select-highlight":e.keyboardIndex===s,"cursor-pointer":!i.disable,"text-faded":i.disable},props:{cfg:i},nativeOn:{mouseenter:function(){!i.disable&&(e.keyboardIndex=s)},click:function(){!i.disable&&e.setValue(i)}}})}))])}},QBreadcrumbs={name:"QBreadcrumbs",mixins:[AlignMixin],props:{color:{type:String,default:"faded"},activeColor:{type:String,default:"primary"},separator:{type:String,default:"/"},align:Object.assign({},AlignMixin.props.align,{default:"left"})},computed:{classes:function(){return["text-"+this.color,this.alignClass]}},render:function(t){var e=this;if(this.$slots.default){var i=[],s=this.$slots.default.filter(function(t){return void 0!==t.tag&&t.tag.endsWith("-QBreadcrumbsEl")}).length,n=this.$scopedSlots.separator||function(){return e.separator},o="text-"+this.color,r="text-"+this.activeColor,a=1;for(var l in e.$slots.default){var c=e.$slots.default[l];if(void 0!==c.tag&&c.tag.endsWith("-QBreadcrumbsEl")){var h=a<s;a++,i.push(t("div",{staticClass:"flex items-center",class:[h?r:o,h?"text-weight-bold":"q-breadcrumbs-last"]},[c])),h&&i.push(t("div",{staticClass:"q-breadcrumbs-separator",class:o},[n()]))}else i.push(c)}return t("div",{staticClass:"q-breadcrumbs flex gutter-xs items-center overflow-hidden",class:this.classes},i)}}},QBreadcrumbsEl={name:"QBreadcrumbsEl",mixins:[{props:routerLinkProps}],props:{label:String,icon:String,color:String},render:function(t){return t(void 0!==this.to?"router-link":"span",{staticClass:"q-link q-breadcrumbs-el flex inline items-center relative-position",props:void 0!==this.to?this.$props:null},[this.icon?t(QIcon,{staticClass:"q-breacrumbs-el-icon q-mr-sm",props:{name:this.icon}}):null,this.label].concat(this.$slots.default))}},QBtnGroup={name:"QBtnGroup",props:{outline:Boolean,flat:Boolean,rounded:Boolean,push:Boolean},computed:{classes:function(){var t=this;return["outline","flat","rounded","push"].filter(function(e){return t[e]}).map(function(t){return"q-btn-group-"+t}).join(" ")}},render:function(t){return t("div",{staticClass:"q-btn-group row no-wrap inline",class:this.classes},this.$slots.default)}},QBtnDropdown={name:"QBtnDropdown",mixins:[BtnMixin],props:{value:Boolean,split:Boolean,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],popoverAnchor:{type:String,default:"bottom right"},popoverSelf:{type:String,default:"top right"}},data:function(){return{showing:this.value}},watch:{value:function(t){this.$refs.popover&&this.$refs.popover[t?"show":"hide"]()}},render:function(t){var e=this,i=t(QPopover,{ref:"popover",props:{disable:this.disable,fit:!0,anchorClick:!this.split,anchor:this.popoverAnchor,self:this.popoverSelf},class:this.contentClass,style:this.contentStyle,on:{show:function(t){e.showing=!0,e.$emit("show",t),e.$emit("input",!0)},hide:function(t){e.showing=!1,e.$emit("hide",t),e.$emit("input",!1)}}},this.$slots.default),s=t(QIcon,{props:{name:this.$q.icon.input.dropdown},staticClass:"transition-generic",class:{"rotate-180":this.showing,"on-right":!this.split,"q-btn-dropdown-arrow":!this.split}}),n=t(QBtn,{props:Object.assign({},this.$props,{iconRight:this.split?this.iconRight:null}),class:this.split?"q-btn-dropdown-current":"q-btn-dropdown q-btn-dropdown-simple",on:{click:function(t){e.split&&e.hide(),e.disable||e.$emit("click",t)}}},this.split?null:[s,i]);return this.split?t(QBtnGroup,{props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push},staticClass:"q-btn-dropdown q-btn-dropdown-split no-wrap q-btn-item"},[n,t(QBtn,{props:{disable:this.disable,outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push,size:this.size,color:this.color,textColor:this.textColor,dense:this.dense,glossy:this.glossy,noRipple:this.noRipple,waitForRipple:this.waitForRipple},staticClass:"q-btn-dropdown-arrow",on:{click:function(){e.toggle()}}},[s]),[i]]):n},methods:{toggle:function(){return this.$refs.popover?this.$refs.popover.toggle():Promise.resolve()},show:function(){return this.$refs.popover?this.$refs.popover.show():Promise.resolve()},hide:function(){return this.$refs.popover?this.$refs.popover.hide():Promise.resolve()}},mounted:function(){var t=this;this.$nextTick(function(){t.value&&t.$refs.popover&&t.$refs.popover.show()})}},QBtnToggle={name:"QBtnToggle",props:{value:{required:!0},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,options:{type:Array,required:!0,validator:function(t){return t.every(function(t){return("label"in t||"icon"in t)&&"value"in t})}},readonly:Boolean,disable:Boolean,noCaps:Boolean,noWrap:Boolean,outline:Boolean,flat:Boolean,dense:Boolean,rounded:Boolean,push:Boolean,size:String,glossy:Boolean,noRipple:Boolean,waitForRipple:Boolean},computed:{val:function(){var t=this;return this.options.map(function(e){return e.value===t.value})}},methods:{set:function(t,e){var i=this;this.readonly||(this.$emit("input",t,e),this.$nextTick(function(){JSON.stringify(t)!==JSON.stringify(i.value)&&i.$emit("change",t,e)}))}},render:function(t){var e=this;return t(QBtnGroup,{staticClass:"q-btn-toggle",props:{outline:this.outline,flat:this.flat,rounded:this.rounded,push:this.push}},this.options.map(function(i,s){return t(QBtn,{key:""+i.label+i.icon+i.iconRight,on:{click:function(){return e.set(i.value,i)}},props:{disable:e.disable,label:i.label,color:e.val[s]?i.toggleColor||e.toggleColor:i.color||e.color,textColor:e.val[s]?i.toggleTextColor||e.toggleTextColor:i.textColor||e.textColor,icon:i.icon,iconRight:i.iconRight,noCaps:e.noCaps||i.noCaps,noWrap:e.noWrap||i.noWrap,outline:e.outline,flat:e.flat,rounded:e.rounded,push:e.push,glossy:e.glossy,size:e.size,dense:e.dense,noRipple:e.noRipple||i.noRipple,waitForRipple:e.waitForRipple||i.waitForRipple,tabindex:i.tabindex}})}))}},QCard={name:"QCard",props:{square:Boolean,flat:Boolean,inline:Boolean,color:String,textColor:String},computed:{classes:function(){var t=[{"no-border-radius":this.square,"no-shadow":this.flat,"inline-block":this.inline}];return this.color?(t.push("bg-"+this.color),t.push("q-card-dark"),t.push("text-"+(this.textColor||"white"))):this.textColor&&t.push("text-"+this.textColor),t}},render:function(t){return t("div",{staticClass:"q-card",class:this.classes},this.$slots.default)}},QCardTitle={name:"QCardTitle",render:function(t){return t("div",{staticClass:"q-card-primary q-card-container row no-wrap"},[t("div",{staticClass:"col column"},[t("div",{staticClass:"q-card-title"},this.$slots.default),t("div",{staticClass:"q-card-subtitle"},[this.$slots.subtitle])]),t("div",{staticClass:"col-auto self-center q-card-title-extra"},[this.$slots.right])])}},QCardMain={name:"QCardMain",render:function(t){return t("div",{staticClass:"q-card-main q-card-container"},this.$slots.default)}},QCardActions={name:"QCardActions",props:{vertical:Boolean,align:{type:String,default:"start",validator:function(t){return["start","center","end","around","between"].includes(t)}}},computed:{classes:function(){return"q-card-actions-"+(this.vertical?"vert column justify-start":"horiz row")+" "+(this.vertical?"items":"justify")+"-"+this.align}},render:function(t){return t("div",{staticClass:"q-card-actions",class:this.classes},this.$slots.default)}},QCardMedia={name:"QCardMedia",props:{overlayPosition:{type:String,default:"bottom",validator:function(t){return["top","bottom","full"].includes(t)}}},render:function(t){return t("div",{staticClass:"q-card-media relative-position"},[this.$slots.default,this.$slots.overlay?t("div",{staticClass:"q-card-media-overlay",class:"absolute-"+this.overlayPosition},[this.$slots.overlay]):null])}},QCardSeparator={name:"QCardSeparator",props:{inset:Boolean},render:function(t){return t("div",{staticClass:"q-card-separator",class:{inset:this.inset}},this.$slots.default)}};function getDirection(t){if(!t.horizontal&&!t.vertical)return{horizontal:!0,vertical:!0};var e={};return["horizontal","vertical"].forEach(function(i){t[i]&&(e[i]=!0)}),e}function processChanges(t,e,i){var s=position(t),n=s.left-e.event.x,o=s.top-e.event.y,r=Math.abs(n),a=Math.abs(o);return{evt:t,position:s,direction:e.direction.horizontal&&!e.direction.vertical?n<0?"left":"right":!e.direction.horizontal&&e.direction.vertical?o<0?"up":"down":r>=a?n<0?"left":"right":o<0?"up":"down",isFirst:e.event.isFirst,isFinal:Boolean(i),duration:(new Date).getTime()-e.event.time,distance:{x:r,y:a},delta:{x:s.left-e.event.lastX,y:s.top-e.event.lastY}}}function shouldTrigger(t,e){return!(!t.direction.horizontal||!t.direction.vertical)||(t.direction.horizontal&&!t.direction.vertical?Math.abs(e.delta.x)>0:!t.direction.horizontal&&t.direction.vertical?Math.abs(e.delta.y)>0:void 0)}var TouchPan={name:"touch-pan",bind:function(t,e){var i=!e.modifiers.noMouse,s=e.modifiers.stop,n=e.modifiers.prevent,o=n||e.modifiers.mightPrevent?null:listenOpts.passive,r={handler:e.value,direction:getDirection(e.modifiers),mouseStart:function(t){leftClick(t)&&(document.addEventListener("mousemove",r.move,o),document.addEventListener("mouseup",r.mouseEnd,o),r.start(t))},mouseEnd:function(t){document.removeEventListener("mousemove",r.move,o),document.removeEventListener("mouseup",r.mouseEnd,o),r.end(t)},start:function(e){var i=position(e);r.event={x:i.left,y:i.top,time:(new Date).getTime(),detected:r.direction.horizontal&&r.direction.vertical,abort:!1,isFirst:!0,lastX:i.left,lastY:i.top},r.event.detected&&(t.classList.add("q-touch"),s&&e.stopPropagation(),n&&e.preventDefault())},move:function(t){if(!r.event.abort)if(r.event.detected){s&&t.stopPropagation(),n&&t.preventDefault();var e=processChanges(t,r,!1);shouldTrigger(r,e)&&(r.handler(e),r.event.lastX=e.position.left,r.event.lastY=e.position.top,r.event.isFirst=!1)}else{var i=position(t),o=Math.abs(i.left-r.event.x),a=Math.abs(i.top-r.event.y);o!==a&&(r.event.detected=!0,r.event.abort=r.direction.vertical?o>a:o<a,r.move(t))}},end:function(e){t.classList.remove("q-touch"),r.event.abort||!r.event.detected||r.event.isFirst||(s&&e.stopPropagation(),n&&e.preventDefault(),r.handler(processChanges(e,r,!0)))}};t.__qtouchpan=r,i&&t.addEventListener("mousedown",r.mouseStart,o),t.addEventListener("touchstart",r.start,o),t.addEventListener("touchmove",r.move,o),t.addEventListener("touchend",r.end,o)},update:function(t,e){e.oldValue!==e.value&&(t.__qtouchpan.handler=e.value)},unbind:function(t,e){var i=t.__qtouchpan;if(i){var s=e.modifiers.prevent?null:listenOpts.passive;t.removeEventListener("mousedown",i.mouseStart,s),t.removeEventListener("touchstart",i.start,s),t.removeEventListener("touchmove",i.move,s),t.removeEventListener("touchend",i.end,s),delete t.__qtouchpan}}};function isDate(t){return"[object Date]"===Object.prototype.toString.call(t)}function isNumber(t){return"number"==typeof t&&isFinite(t)}var linear=function(t){return t},easeInQuad=function(t){return t*t},easeOutQuad=function(t){return t*(2-t)},easeInOutQuad=function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic=function(t){return Math.pow(t,3)},easeOutCubic=function(t){return 1+Math.pow(t-1,3)},easeInOutCubic=function(t){return t<.5?4*Math.pow(t,3):1+(t-1)*Math.pow(2*t-2,2)},easeInQuart=function(t){return Math.pow(t,4)},easeOutQuart=function(t){return 1-Math.pow(t-1,4)},easeInOutQuart=function(t){return t<.5?8*Math.pow(t,4):1-8*Math.pow(t-1,4)},easeInQuint=function(t){return Math.pow(t,5)},easeOutQuint=function(t){return 1+Math.pow(t-1,5)},easeInOutQuint=function(t){return t<.5?16*Math.pow(t,5):1+16*Math.pow(t-1,5)},easeInCirc=function(t){return-1*Math.sqrt(1-Math.pow(t,2))+1},easeOutCirc=function(t){return Math.sqrt(-1*(t-2)*t)},easeInOutCirc=function(t){return t<.5?.5*(1-Math.sqrt(1-4*t*t)):.5*(1+Math.sqrt(8*t-3-4*t*t))},overshoot=function(t){return-1*Math.pow(Math.E,-6.3*t)*Math.cos(5*t)+1},standard=function(t){return t<.4031?12*Math.pow(t,4):1/1290*(11*Math.sqrt(-4e4*t*t+8e4*t-23359)-129)},decelerate=easeOutCubic,accelerate=easeInCubic,sharp=easeInOutQuad,easing={linear:linear,easeInQuad:easeInQuad,easeOutQuad:easeOutQuad,easeInOutQuad:easeInOutQuad,easeInCubic:easeInCubic,easeOutCubic:easeOutCubic,easeInOutCubic:easeInOutCubic,easeInQuart:easeInQuart,easeOutQuart:easeOutQuart,easeInOutQuart:easeInOutQuart,easeInQuint:easeInQuint,easeOutQuint:easeOutQuint,easeInOutQuint:easeInOutQuint,easeInCirc:easeInCirc,easeOutCirc:easeOutCirc,easeInOutCirc:easeInOutCirc,overshoot:overshoot,standard:standard,decelerate:decelerate,accelerate:accelerate,sharp:sharp},ids={};function start(t){var e=t.name,i=t.duration;void 0===i&&(i=300);var s=t.to,n=t.from,o=t.apply,r=t.done,a=t.cancel,l=t.easing,c=e,h=new Date;c?stop(c):c=uid();var u=l||linear,d=function(){var t=(new Date-h)/i;t>1&&(t=1);var e=n+(s-n)*u(t);if(o(e,t),1===t)return delete ids[c],void(r&&r(e));p.last={pos:e,progress:t},p.timer=requestAnimationFrame(d)},p=ids[c]={cancel:a,timer:requestAnimationFrame(d)};return c}function stop(t){if(t){var e=ids[t];e&&e.timer&&(cancelAnimationFrame(e.timer),e.cancel&&e.cancel(e.last),delete ids[t])}}var animate={start:start,stop:stop},FullscreenMixin={data:function(){return{inFullscreen:!1}},watch:{$route:function(){this.exitFullscreen()},inFullscreen:function(t){this.$emit("fullscreen",t)}},methods:{toggleFullscreen:function(){this.inFullscreen?this.exitFullscreen():this.setFullscreen()},setFullscreen:function(){this.inFullscreen||(this.inFullscreen=!0,this.container=this.$el.parentNode,this.container.replaceChild(this.fullscreenFillerNode,this.$el),document.body.appendChild(this.$el),document.body.classList.add("q-body-fullscreen-mixin"),this.__historyFullscreen={handler:this.exitFullscreen},History.add(this.__historyFullscreen))},exitFullscreen:function(){this.inFullscreen&&(this.__historyFullscreen&&(History.remove(this.__historyFullscreen),this.__historyFullscreen=null),this.container.replaceChild(this.$el,this.fullscreenFillerNode),document.body.classList.remove("q-body-fullscreen-mixin"),this.inFullscreen=!1)}},beforeMount:function(){this.fullscreenFillerNode=document.createElement("span")},beforeDestroy:function(){this.exitFullscreen()}},QCarousel={name:"QCarousel",mixins:[FullscreenMixin],directives:{TouchPan:TouchPan},props:{value:Number,color:{type:String,default:"primary"},height:String,arrows:Boolean,infinite:Boolean,animation:{type:[Number,Boolean],default:!0},easing:Function,swipeEasing:Function,noSwipe:Boolean,autoplay:[Number,Boolean],handleArrowKeys:Boolean,quickNav:Boolean,quickNavPosition:{type:String,default:"bottom",validator:function(t){return["top","bottom"].includes(t)}},quickNavIcon:String,thumbnails:{type:Array,default:function(){return[]}},thumbnailsIcon:String,thumbnailsHorizontal:Boolean},provide:function(){return{carousel:this}},data:function(){return{position:0,slide:0,positionSlide:0,slidesNumber:0,animUid:!1,viewThumbnails:!1}},watch:{value:function(t){t!==this.slide&&this.goToSlide(t)},autoplay:function(){this.__planAutoPlay()},infinite:function(){this.__planAutoPlay()},handleArrowKeys:function(t){this.__setArrowKeys(t)}},computed:{rtlDir:function(){return this.$q.i18n.rtl?-1:1},arrowIcon:function(){var t=[this.$q.icon.carousel.left,this.$q.icon.carousel.right];return this.$q.i18n.rtl?t.reverse():t},trackPosition:function(){return cssTransform("translateX("+this.rtlDir*this.position+"%)")},infiniteLeft:function(){return this.infinite&&this.slidesNumber>1&&this.positionSlide<0},infiniteRight:function(){return this.infinite&&this.slidesNumber>1&&this.positionSlide>=this.slidesNumber},canGoToPrevious:function(){return this.infinite?this.slidesNumber>1:this.slide>0},canGoToNext:function(){return this.infinite?this.slidesNumber>1:this.slide<this.slidesNumber-1},computedQuickNavIcon:function(){return this.quickNavIcon||this.$q.icon.carousel.quickNav},computedStyle:function(){if(!this.inFullscreen&&this.height)return"height: "+this.height},slotScope:function(){return{slide:this.slide,slidesNumber:this.slidesNumber,percentage:this.slidesNumber<2?100:100*this.slide/(this.slidesNumber-1),goToSlide:this.goToSlide,previous:this.previous,next:this.next,color:this.color,inFullscreen:this.inFullscreen,toggleFullscreen:this.toggleFullscreen,canGoToNext:this.canGoToNext,canGoToPrevious:this.canGoToPrevious}},computedThumbnailIcon:function(){return this.thumbnailsIcon||this.$q.icon.carousel.thumbnails}},methods:{previous:function(){return this.canGoToPrevious?this.goToSlide(this.slide-1):Promise.resolve()},next:function(){return this.canGoToNext?this.goToSlide(this.slide+1):Promise.resolve()},goToSlide:function(t,e){var i=this;return void 0===e&&(e=!1),new Promise(function(s){var n,o="",r=i.slide;i.__cleanup();var a=function(){i.$emit("input",i.slide),i.$emit("slide",i.slide,o),i.$emit("slide-direction",o),i.__planAutoPlay(),s()};if(i.slidesNumber<2?(i.slide=0,i.positionSlide=0,n=0):(i.hasOwnProperty("initialPosition")||(i.position=100*-i.slide),o=t>i.slide?"next":"previous",i.infinite?(i.slide=normalizeToInterval(t,0,i.slidesNumber-1),n=normalizeToInterval(t,-1,i.slidesNumber),e||(i.positionSlide=n)):(i.slide=between(t,0,i.slidesNumber-1),i.positionSlide=i.slide,n=i.slide)),i.$emit("slide-trigger",r,i.slide,o),n*=-100,!i.animation)return i.position=n,void a();i.animationInProgress=!0,i.animUid=start({from:i.position,to:n,duration:isNumber(i.animation)?i.animation:300,easing:e?i.swipeEasing||decelerate:i.easing||standard,apply:function(t){i.position=t},done:function(){i.infinite&&(i.position=100*-i.slide,i.positionSlide=i.slide),i.animationInProgress=!1,a()}})})},stopAnimation:function(){stop(this.animUid),this.animationInProgress=!1},__pan:function(t){var e=this;if(!this.infinite||!this.animationInProgress){t.isFirst&&(this.initialPosition=this.position,this.__cleanup());var i=this.rtlDir*("left"===t.direction?-1:1)*t.distance.x;(this.infinite&&this.slidesNumber<2||!this.infinite&&(0===this.slide&&i>0||this.slide===this.slidesNumber-1&&i<0))&&(i=0);var s=this.initialPosition+i/this.$refs.track.offsetWidth*100,n=this.slide+this.rtlDir*("left"===t.direction?1:-1);this.position!==s&&(this.position=s),this.positionSlide!==n&&(this.positionSlide=n),t.isFinal&&this.goToSlide(t.distance.x<40?this.slide:this.positionSlide,!0).then(function(){delete e.initialPosition})}},__planAutoPlay:function(){var t=this;this.$nextTick(function(){t.autoplay&&(clearTimeout(t.timer),t.timer=setTimeout(t.next,isNumber(t.autoplay)?t.autoplay:5e3))})},__cleanup:function(){this.stopAnimation(),clearTimeout(this.timer)},__handleArrowKey:function(t){var e=getEventKey(t);37===e?this.previous():39===e&&this.next()},__setArrowKeys:function(t){document[(!0===t?"add":"remove")+"EventListener"]("keydown",this.__handleArrowKey)},__registerSlide:function(){this.slidesNumber++},__unregisterSlide:function(){this.slidesNumber--},__getScopedSlots:function(t){var e=this;if(0!==this.slidesNumber){var i=this.$scopedSlots;return i?Object.keys(i).filter(function(t){return t.startsWith("control-")}).map(function(t){return i[t](e.slotScope)}):void 0}},__getQuickNav:function(t){var e=this;if(0!==this.slidesNumber&&this.quickNav){var i=this.$scopedSlots["quick-nav"],s=[];if(i)for(var n=function(t){s.push(i({slide:t,before:t<e.slide,current:t===e.slide,after:t>e.slide,color:e.color,goToSlide:function(i){e.goToSlide(i||t)}}))},o=0;o<this.slidesNumber;o++)n(o);else for(var r=function(i){s.push(t(QBtn,{key:i,class:{inactive:i!==e.slide},props:{icon:e.computedQuickNavIcon,round:!0,flat:!0,dense:!0,color:e.color},on:{click:function(){e.goToSlide(i)}}}))},a=0;a<this.slidesNumber;a++)r(a);return t("div",{staticClass:"q-carousel-quick-nav scroll text-center",class:["text-"+this.color,"absolute-"+this.quickNavPosition]},s)}},__getThumbnails:function(t){var e=this,i=this.thumbnails.map(function(i,s){if(i)return t("div",{on:{click:function(){e.goToSlide(s)}}},[t("img",{attrs:{src:i},class:{active:e.slide===s}})])}),s=[t(QBtn,{staticClass:"q-carousel-thumbnail-btn absolute",props:{icon:this.computedThumbnailIcon,fabMini:!0,flat:!0,color:this.color},on:{click:function(){e.viewThumbnails=!e.viewThumbnails}}}),t("div",{staticClass:"q-carousel-thumbnails scroll absolute-bottom",class:{active:this.viewThumbnails}},[t("div",{staticClass:"row gutter-xs",class:this.thumbnailsHorizontal?"no-wrap":"justify-center"},i)])];return this.viewThumbnails&&s.unshift(t("div",{staticClass:"absolute-full",on:{click:function(){e.viewThumbnails=!1}}})),s}},render:function(t){return t("div",{staticClass:"q-carousel",style:this.computedStyle,class:{fullscreen:this.inFullscreen}},[t("div",{staticClass:"q-carousel-inner",directives:this.noSwipe?null:[{name:"touch-pan",modifiers:{horizontal:!0,prevent:!0,stop:!0},value:this.__pan}]},[t("div",{ref:"track",staticClass:"q-carousel-track",style:this.trackPosition,class:{"infinite-left":this.infiniteLeft,"infinite-right":this.infiniteRight}},[this.infiniteRight?t("div",{staticClass:"q-carousel-slide",style:"flex: 0 0 100%"}):null,this.$slots.default,this.infiniteLeft?t("div",{staticClass:"q-carousel-slide",style:"flex: 0 0 100%"}):null])]),this.arrows?t(QBtn,{staticClass:"q-carousel-left-arrow absolute",props:{color:this.color,icon:this.arrowIcon[0],fabMini:!0,flat:!0},directives:[{name:"show",value:this.canGoToPrevious}],on:{click:this.previous}}):null,this.arrows?t(QBtn,{staticClass:"q-carousel-right-arrow absolute",props:{color:this.color,icon:this.arrowIcon[1],fabMini:!0,flat:!0},directives:[{name:"show",value:this.canGoToNext}],on:{click:this.next}}):null,this.__getQuickNav(t),this.__getScopedSlots(t),this.thumbnails.length?this.__getThumbnails(t):null,this.$slots.control])},mounted:function(){var t=this;this.__planAutoPlay(),this.handleArrowKeys&&this.__setArrowKeys(!0),this.__stopSlideNumberNotifier=this.$watch("slidesNumber",function(e){t.value>=e&&t.$emit("input",e-1)},{immediate:!0})},beforeDestroy:function(){this.__cleanup(),this.__stopSlideNumberNotifier(),this.handleArrowKeys&&this.__setArrowKeys(!1)}},QCarouselSlide={name:"QCarouselSlide",inject:{carousel:{default:function(){console.error("QCarouselSlide needs to be child of QCarousel")}}},props:{imgSrc:String},computed:{computedStyle:function(){var t={};return this.imgSrc&&(t.backgroundImage="url("+this.imgSrc+")",t.backgroundSize="cover",t.backgroundPosition="50%"),!this.carousel.inFullscreen&&this.carousel.height&&(t.maxHeight=this.carousel.height),t}},render:function(t){return t("div",{staticClass:"q-carousel-slide relative-position scroll",style:this.computedStyle},this.$slots.default)},created:function(){this.carousel.__registerSlide()},beforeDestroy:function(){this.carousel.__unregisterSlide()}},QCarouselControl={name:"QCarouselControl",props:{position:{type:String,default:"bottom-right"},offset:{type:Array,default:function(){return[18,18]}}},computed:{computedClass:function(){return"absolute-"+this.position},computedStyle:function(){return{margin:this.offset[1]+"px "+this.offset[0]+"px"}}},render:function(t){return t("div",{staticClass:"q-carousel-control absolute",style:this.computedStyle,class:this.computedClass},this.$slots.default)}},QChatMessage={name:"QChatMessage",props:{sent:Boolean,label:String,bgColor:String,textColor:String,name:String,avatar:String,text:Array,stamp:String,size:String},computed:{textClass:function(){if(this.textColor)return"text-"+this.textColor},messageClass:function(){if(this.bgColor)return"text-"+this.bgColor},sizeClass:function(){if(this.size)return"col-"+this.size},classes:function(){return{"q-message-sent":this.sent,"q-message-received":!this.sent}}},methods:{__getText:function(t){var e=this;return this.text.map(function(i,s){return t("div",{staticClass:"q-message-text",class:e.messageClass},[t("span",{staticClass:"q-message-text-content",class:e.textClass},[t("div",{domProps:{innerHTML:i}}),e.stamp?t("div",{staticClass:"q-message-stamp",domProps:{innerHTML:e.stamp}}):null])])})},__getMessage:function(t){return t("div",{staticClass:"q-message-text",class:this.messageClass},[t("span",{staticClass:"q-message-text-content",class:this.textClass},[this.$slots.default,this.stamp?t("div",{staticClass:"q-message-stamp",domProps:{innerHTML:this.stamp}}):null])])}},render:function(t){return t("div",{staticClass:"q-message",class:this.classes},[this.label?t("div",{staticClass:"q-message-label text-center",domProps:{innerHTML:this.label}}):null,t("div",{staticClass:"q-message-container row items-end no-wrap"},[this.$slots.avatar||(this.avatar?t("img",{staticClass:"q-message-avatar col-auto",attrs:{src:this.avatar}}):null),t("div",{class:this.sizeClass},[this.name?t("div",{staticClass:"q-message-name",domProps:{innerHTML:this.name}}):null,this.text?this.__getText(t):null,this.$slots.default?this.__getMessage(t):null])])])}};function getDirection$1(t){var e={};return["left","right","up","down","horizontal","vertical"].forEach(function(i){t[i]&&(e[i]=!0)}),0===Object.keys(e).length?{left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0}:(e.horizontal&&(e.left=e.right=!0),e.vertical&&(e.up=e.down=!0),e.left&&e.right&&(e.horizontal=!0),e.up&&e.down&&(e.vertical=!0),e)}var TouchSwipe={name:"touch-swipe",bind:function(t,e){var i=!e.modifiers.noMouse,s={handler:e.value,threshold:parseInt(e.arg,10)||300,direction:getDirection$1(e.modifiers),mouseStart:function(t){leftClick(t)&&(document.addEventListener("mousemove",s.move),document.addEventListener("mouseup",s.mouseEnd),s.start(t))},mouseEnd:function(t){document.removeEventListener("mousemove",s.move),document.removeEventListener("mouseup",s.mouseEnd),s.end(t)},start:function(e){var i=position(e);s.event={x:i.left,y:i.top,time:(new Date).getTime(),detected:!1,abort:!1},t.classList.add("q-touch")},move:function(t){if(!s.event.abort)if((new Date).getTime()-s.event.time>s.threshold)s.event.abort=!0;else{if(s.event.detected)return t.stopPropagation(),void t.preventDefault();var e=position(t),i=e.left-s.event.x,n=Math.abs(i),o=e.top-s.event.y,r=Math.abs(o);n!==r&&(s.event.detected=!0,s.event.abort=!(s.direction.vertical&&n<r||s.direction.horizontal&&n>r||s.direction.up&&n<r&&o<0||s.direction.down&&n<r&&o>0||s.direction.left&&n>r&&i<0||s.direction.right&&n>r&&i>0),s.move(t))}},end:function(e){if(t.classList.remove("q-touch"),!s.event.abort&&s.event.detected){var i=(new Date).getTime()-s.event.time;if(!(i>s.threshold)){e.stopPropagation(),e.preventDefault();var n,o=position(e),r=o.left-s.event.x,a=Math.abs(r),l=o.top-s.event.y,c=Math.abs(l);if(a>=c){if(a<50)return;n=r<0?"left":"right"}else{if(c<50)return;n=l<0?"up":"down"}s.direction[n]&&s.handler({evt:e,direction:n,duration:i,distance:{x:a,y:c}})}}}};t.__qtouchswipe=s,i&&t.addEventListener("mousedown",s.mouseStart),t.addEventListener("touchstart",s.start),t.addEventListener("touchmove",s.move),t.addEventListener("touchend",s.end)},update:function(t,e){e.oldValue!==e.value&&(t.__qtouchswipe.handler=e.value)},unbind:function(t,e){var i=t.__qtouchswipe;i&&(t.removeEventListener("mousedown",i.mouseStart),t.removeEventListener("touchstart",i.start),t.removeEventListener("touchmove",i.move),t.removeEventListener("touchend",i.end),delete t.__qtouchswipe)}},CheckboxMixin={directives:{TouchSwipe:TouchSwipe},props:{val:{},trueValue:{default:!0},falseValue:{default:!1}},computed:{isTrue:function(){return this.modelIsArray?this.index>-1:this.value===this.trueValue},isFalse:function(){return this.modelIsArray?-1===this.index:this.value===this.falseValue},index:function(){if(this.modelIsArray)return this.value.indexOf(this.val)},modelIsArray:function(){return Array.isArray(this.value)}},methods:{toggle:function(t,e){var i;(void 0===e&&(e=!0),this.disable||this.readonly)||(t&&stopAndPrevent(t),e&&this.$el.blur(),this.modelIsArray?this.isTrue?(i=this.value.slice()).splice(this.index,1):i=this.value.concat(this.val):i=this.isTrue?this.toggleIndeterminate?this.indeterminateValue:this.falseValue:this.isFalse?this.trueValue:this.falseValue,this.__update(i))}}},OptionMixin={props:{value:{required:!0},label:String,leftLabel:Boolean,color:{type:String,default:"primary"},keepColor:Boolean,dark:Boolean,disable:Boolean,readonly:Boolean,noFocus:Boolean,checkedIcon:String,uncheckedIcon:String},computed:{classes:function(){return[this.__kebabTag,{disabled:this.disable,reverse:this.leftLabel,"q-focusable":this.focusable}]},innerClasses:function(){return this.isTrue||this.isIndeterminate?["active","text-"+this.color]:"text-"+(this.keepColor?this.color:this.dark?"light":"faded")},focusable:function(){return!this.noFocus&&!this.disable&&!this.readonly},tabindex:function(){return this.focusable?0:-1}},methods:{__update:function(t){var e=this,i=this.$refs.ripple;i&&(i.classList.add("active"),setTimeout(function(){i.classList.remove("active")},10)),this.$emit("input",t),this.$nextTick(function(){JSON.stringify(t)!==JSON.stringify(e.value)&&e.$emit("change",t)})},__handleKeyDown:function(t){[13,32].includes(getEventKey(t))&&this.toggle(t,!1)}},render:function(t){var e=this;return t("div",{staticClass:"q-option cursor-pointer no-outline row inline no-wrap items-center",class:this.classes,attrs:{tabindex:this.tabindex},on:{click:this.toggle,focus:function(){e.$emit("focus")},blur:function(){e.$emit("blur")},keydown:this.__handleKeyDown},directives:"q-toggle"!==this.__kebabTag||this.disable||this.readonly?null:[{name:"touch-swipe",modifiers:{horizontal:!0},value:this.__swipe}]},[t("div",{staticClass:"q-option-inner relative-position",class:this.innerClasses},[t("input",{attrs:{type:"checkbox"},on:{change:this.toggle}}),this.$q.platform.is.desktop?t("div",{staticClass:"q-focus-helper",class:"q-radio"===this.__kebabTag?"q-focus-helper-round":"q-focus-helper-rounded"}):null,this.__getContent(t)]),this.label?t("span",{staticClass:"q-option-label",domProps:{innerHTML:this.label}}):null,this.$slots.default])}},QCheckbox={name:"QCheckbox",mixins:[CheckboxMixin,OptionMixin],props:{toggleIndeterminate:Boolean,indeterminateValue:{default:null},indeterminateIcon:String},computed:{isIndeterminate:function(){return void 0===this.value||this.value===this.indeterminateValue},checkedStyle:function(){return this.isTrue?{transition:"opacity 0ms cubic-bezier(0.23, 1, 0.32, 1) 0ms, transform 800ms cubic-bezier(0.23, 1, 0.32, 1) 0ms",opacity:1,transform:"scale(1)"}:{transition:"opacity 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms, transform 0ms cubic-bezier(0.23, 1, 0.32, 1) 450ms",opacity:0,transform:"scale(0)"}},indeterminateStyle:function(){return this.isIndeterminate?{transition:"opacity 0ms cubic-bezier(0.23, 1, 0.32, 1) 0ms, transform 800ms cubic-bezier(0.23, 1, 0.32, 1) 0ms",opacity:1,transform:"scale(1)"}:{transition:"opacity 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms, transform 0ms cubic-bezier(0.23, 1, 0.32, 1) 450ms",opacity:0,transform:"scale(0)"}},uncheckedStyle:function(){return this.isFalse?{opacity:1}:{transition:"opacity 650ms cubic-bezier(0.23, 1, 0.32, 1) 150ms",opacity:0}}},methods:{__getContent:function(t){return[t(QIcon,{staticClass:"q-checkbox-icon cursor-pointer",props:{name:this.uncheckedIcon||this.$q.icon.checkbox.unchecked.mat},style:this.uncheckedStyle}),t(QIcon,{staticClass:"q-checkbox-icon cursor-pointer absolute-full",props:{name:this.indeterminateIcon||this.$q.icon.checkbox.indeterminate.mat},style:this.indeterminateStyle}),t(QIcon,{staticClass:"q-checkbox-icon cursor-pointer absolute-full",props:{name:this.checkedIcon||this.$q.icon.checkbox.checked.mat},style:this.checkedStyle}),t("div",{ref:"ripple",staticClass:"q-radial-ripple"})]}},beforeCreate:function(){this.__kebabTag="q-checkbox"}},QChip={name:"QChip",props:{small:Boolean,dense:Boolean,tag:Boolean,square:Boolean,floating:Boolean,pointing:{type:String,validator:function(t){return["up","right","down","left"].includes(t)}},color:String,textColor:String,icon:String,iconRight:String,avatar:String,closable:Boolean,detail:Boolean},computed:{classes:function(){var t=this,e=[];return this.pointing&&e.push("q-chip-pointing-"+this.pointing),["tag","square","floating","pointing","small","dense"].forEach(function(i){t[i]&&e.push("q-chip-"+i)}),this.floating&&(!this.dense&&e.push("q-chip-dense"),!this.square&&e.push("q-chip-square")),this.color&&(e.push("bg-"+this.color),!this.textColor&&e.push("text-white")),this.textColor&&e.push("text-"+this.textColor),e}},methods:{__onClick:function(t){this.$emit("click",t)},__onMouseDown:function(t){this.$emit("focus",t)},__handleKeyDown:function(t){this.closable&&[8,13,32].includes(getEventKey(t))&&(stopAndPrevent(t),this.$emit("hide"))}},render:function(t){var e=this;return t("div",{staticClass:"q-chip row no-wrap inline items-center",class:this.classes,on:{mousedown:this.__onMouseDown,touchstart:this.__onMouseDown,click:this.__onClick,keydown:this.__handleKeyDown}},[this.icon||this.avatar?t("div",{staticClass:"q-chip-side q-chip-left row flex-center",class:{"q-chip-detail":this.detail}},[this.icon?t(QIcon,{staticClass:"q-chip-icon",props:{name:this.icon}}):this.avatar?t("img",{attrs:{src:this.avatar}}):null]):null,t("div",{staticClass:"q-chip-main ellipsis"},this.$slots.default),this.iconRight?t(QIcon,{props:{name:this.iconRight},class:this.closable?"on-right q-chip-icon":"q-chip-side q-chip-right"}):null,this.closable?t("div",{staticClass:"q-chip-side q-chip-close q-chip-right row flex-center"},[t(QIcon,{props:{name:this.$q.icon.chip.close},staticClass:"cursor-pointer",nativeOn:{click:function(t){t&&t.stopPropagation(),e.$emit("hide")}}})]):null])}},marginal={type:Array,validator:function(t){return t.every(function(t){return"icon"in t})}},FrameMixin={mixins:[AlignMixin],props:{prefix:String,suffix:String,stackLabel:String,floatLabel:String,placeholder:String,error:Boolean,warning:Boolean,disable:Boolean,readonly:Boolean,clearable:Boolean,color:{type:String,default:"primary"},align:{default:"left"},dark:Boolean,before:marginal,after:marginal,inverted:Boolean,invertedLight:Boolean,hideUnderline:Boolean,clearValue:{},noParentField:Boolean},computed:{inputPlaceholder:function(){if(!this.floatLabel&&!this.stackLabel||this.labelIsAbove)return this.placeholder},isInverted:function(){return this.inverted||this.invertedLight},isInvertedLight:function(){return this.isInverted&&(this.invertedLight&&!this.hasError||this.inverted&&this.hasWarning)},isStandard:function(){return!this.isInverted},isHideUnderline:function(){return this.isStandard&&this.hideUnderline},labelIsAbove:function(){return this.focused||this.length||this.additionalLength||this.stackLabel},hasContent:function(){return this.length>0||this.additionalLength>0||this.placeholder||0===this.placeholder},editable:function(){return!this.disable&&!this.readonly},computedClearValue:function(){return void 0===this.clearValue?null:this.clearValue},isClearable:function(){return this.editable&&this.clearable&&this.computedClearValue!==this.model},hasError:function(){return!!(!this.noParentField&&this.field&&this.field.error||this.error)},hasWarning:function(){return!(this.hasError||!(!this.noParentField&&this.field&&this.field.warning||this.warning))},fakeInputValue:function(){return this.actualValue||0===this.actualValue?this.actualValue:this.placeholder||0===this.placeholder?this.placeholder:""},fakeInputClasses:function(){var t=this.actualValue||0===this.actualValue;return[this.alignClass,{invisible:(this.stackLabel||this.floatLabel)&&!this.labelIsAbove&&!t,"q-input-target-placeholder":!t&&this.inputPlaceholder}]}},methods:{clear:function(t){if(this.editable){t&&stopAndPrevent(t);var e=this.computedClearValue;this.__setModel&&this.__setModel(e,!0),this.$emit("clear",e)}}}},InputMixin={props:{autofocus:[Boolean,String],maxHeight:Number,loading:Boolean},data:function(){return{focused:!1,timer:null,isNumberError:!1,isNegZero:!1}},methods:{focus:function(){this.disable||this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},select:function(){this.$refs.input.select()},__onFocus:function(t){clearTimeout(this.timer),this.focused||(this.focused=!0,this.$refs.input&&this.$refs.input.focus(),this.$emit("focus",t))},__onInputBlur:function(t){var e=this;clearTimeout(this.timer),this.timer=setTimeout(function(){e.__onBlur(t)},200)},__onBlur:function(t,e){this.focused&&(this.focused=!1,this.$emit("blur",t)),this.__emit(e)},__emit:function(t){var e=this,i=this.isNumber&&this.isNumberError,s=i?this.isNegZero?-0:null:this.model;this.isNumber&&(this.model=this.value),i&&this.$emit("input",s);var n=function(){e.isNumber?String(1/s)!==String(1/e.value)&&e.$emit("change",s):JSON.stringify(s)!==JSON.stringify(e.value)&&e.$emit("change",s)};t?n():this.$nextTick(n)},__onKeydown:function(t){13===t.keyCode&&("textarea"===this.type?t.stopPropagation():this.__emit()),this.$emit("keydown",t)},__onKeyup:function(t){this.$emit("keyup",t)},__onClick:function(t){this.focus(),this.$emit("click",t)},__onPaste:function(t){this.$emit("paste",t)}},mounted:function(){var t=this;this.$nextTick(function(){var e=t.$refs.input;t.autofocus&&e&&(e.focus(),"select"===t.autofocus&&e.select())})},beforeDestroy:function(){clearTimeout(this.timer),this.focused&&this.__onBlur(void 0,!0)}},ParentFieldMixin={inject:{field:{from:"__field",default:null}},props:{noParentField:Boolean},watch:{noParentField:function(t){this.field&&this.field[t?"__registerInput":"__unregisterInput"](this)}},beforeMount:function(){!this.noParentField&&this.field&&this.field.__registerInput(this)},beforeDestroy:function(){!this.noParentField&&this.field&&this.field.__unregisterInput(this)}},QInputFrame={name:"QInputFrame",mixins:[FrameMixin,ParentFieldMixin],props:{focused:Boolean,length:Number,focusable:Boolean,additionalLength:Boolean},computed:{hasStackLabel:function(){return"string"==typeof this.stackLabel&&this.stackLabel.length>0},hasLabel:function(){return this.hasStackLabel||"string"==typeof this.floatLabel&&this.floatLabel.length>0},label:function(){return this.hasStackLabel?this.stackLabel:this.floatLabel},addonClass:function(){return{"q-if-addon-visible":!this.hasLabel||this.labelIsAbove}},classes:function(){var t=[{"q-if-has-label":this.label,"q-if-focused":this.focused,"q-if-error":this.hasError,"q-if-warning":this.hasWarning,"q-if-disabled":this.disable,"q-if-readonly":this.readonly,"q-if-focusable":this.focusable&&!this.disable,"q-if-inverted":this.isInverted,"q-if-inverted-light":this.isInvertedLight,"q-if-light-color":this.lightColor,"q-if-dark":this.dark,"q-if-hide-underline":this.isHideUnderline,"q-if-standard":this.isStandard,"q-if-has-content":this.hasContent}],e=this.hasError?"negative":this.hasWarning?"warning":this.color;return this.isInverted?(t.push("bg-"+e),t.push("text-"+(this.isInvertedLight?"black":"white"))):e&&t.push("text-"+e),t}},methods:{__onClick:function(t){this.$emit("click",t)},__onMouseDown:function(t){var e=this;this.$nextTick(function(){return e.$emit("focus",t)})},__additionalHidden:function(t,e,i,s){return void 0!==t.condition?!1===t.condition:void 0!==t.content&&!t.content==s>0||void 0!==t.error&&!t.error===e||void 0!==t.warning&&!t.warning===i},__baHandler:function(t,e){e.allowPropagation||t.stopPropagation(),e.handler&&e.handler(t)}},render:function(t){var e=this;return t("div",{staticClass:"q-if row no-wrap relative-position",class:this.classes,attrs:{tabindex:this.focusable&&!this.disable?0:-1},on:{click:this.__onClick}},[t("div",{staticClass:"q-if-baseline"},"|"),this.before&&this.before.map(function(i){return t(QIcon,{key:"b"+i.icon,staticClass:"q-if-control q-if-control-before",class:[i.class,{hidden:e.__additionalHidden(i,e.hasError,e.hasWarning,e.length)}],props:{name:i.icon},nativeOn:{mousedown:e.__onMouseDown,touchstart:e.__onMouseDown,click:function(t){e.__baHandler(t,i)}}})})||void 0,t("div",{staticClass:"q-if-inner col column"},[t("div",{staticClass:"row no-wrap relative-position"},[this.prefix&&t("span",{staticClass:"q-if-addon q-if-addon-left",class:this.addonClass,domProps:{innerHTML:this.prefix}})||void 0,this.hasLabel&&t("div",{staticClass:"q-if-label",class:{"q-if-label-above":this.labelIsAbove}},[t("div",{staticClass:"q-if-label-inner ellipsis",domProps:{innerHTML:this.label}})])||void 0].concat(this.$slots.default).concat([this.suffix&&t("span",{staticClass:"q-if-addon q-if-addon-right",class:this.addonClass,domProps:{innerHTML:this.suffix}})||void 0])),this.hasLabel&&t("div",{staticClass:"q-if-label-spacer",domProps:{innerHTML:this.label}})||void 0]),this.after&&this.after.map(function(i){return t(QIcon,{key:"a"+i.icon,staticClass:"q-if-control",class:[i.class,{hidden:e.__additionalHidden(i,e.hasError,e.hasWarning,e.length)}],props:{name:i.icon},nativeOn:{mousedown:e.__onMouseDown,touchstart:e.__onMouseDown,click:function(t){e.__baHandler(t,i)}}})})||void 0].concat(this.$slots.after))}},QChipsInput={name:"QChipsInput",mixins:[FrameMixin,InputMixin],props:{value:{type:Array,required:!0},chipsColor:String,chipsBgColor:String,readonly:Boolean,addIcon:String,upperCase:Boolean,lowerCase:Boolean},data:function(){var t=this;return{input:"",model:this.value.slice(),watcher:null,shadow:{val:this.input,set:this.add,setNav:function(e){t.input=e},loading:!1,selectionOpen:!1,watched:0,isEditable:function(){return t.editable},isDark:function(){return t.dark},hasFocus:function(){return document.activeElement===t.$refs.input},register:function(){t.shadow.watched+=1,t.__watcherRegister()},unregister:function(){t.shadow.watched=Math.max(0,t.shadow.watched-1),t.__watcherUnregister()},getEl:function(){return t.$refs.input}}}},watch:{value:function(t){this.model=t.slice()}},provide:function(){return{__input:this.shadow}},computed:{length:function(){return this.model?this.model.length:0},isLoading:function(){return this.loading||this.shadow.watched&&this.shadow.loading},computedAddIcon:function(){return this.addIcon||this.$q.icon.chipsInput.add},computedChipTextColor:function(){return this.chipsColor?this.chipsColor:this.isInvertedLight?this.invertedLight?this.color:"white":this.isInverted?this.invertedLight?"grey-10":this.color:this.dark?this.color:"white"},computedChipBgColor:function(){return this.chipsBgColor?this.chipsBgColor:this.isInvertedLight?this.invertedLight?"grey-10":this.color:this.isInverted?this.invertedLight?this.color:"white":this.dark?"white":this.color},inputClasses:function(){var t=[this.alignClass];return this.upperCase&&t.push("uppercase"),this.lowerCase&&t.push("lowercase"),t},isClearable:function(){return this.editable&&this.clearable&&0!==this.model.length}},methods:{add:function(t){if(void 0===t&&(t=this.input),clearTimeout(this.timer),this.focus(),!this.isLoading&&this.editable&&t){var e=this.lowerCase?t.toLowerCase():this.upperCase?t.toUpperCase():t;this.model.includes(e)?this.$emit("duplicate",e):(this.$emit("add",{index:this.model.length,val:e}),this.model.push(e),this.$emit("input",this.model),this.input="")}},remove:function(t){clearTimeout(this.timer),this.focus(),this.editable&&t>=0&&t<this.length&&(this.$emit("remove",{index:t,value:this.model.splice(t,1)}),this.$emit("input",this.model))},clear:function(t){clearTimeout(this.timer),t&&stopAndPrevent(t),this.editable&&(this.$emit("input",[]),this.$emit("clear"))},__clearTimer:function(){var t=this;this.$nextTick(function(){return clearTimeout(t.timer)})},__handleKeyDown:function(t){switch(getEventKey(t)){case 13:if(this.shadow.selectionOpen)return;return stopAndPrevent(t),this.add();case 8:return void(!this.input.length&&this.length&&this.remove(this.length-1));default:return this.__onKeydown(t)}},__onClick:function(){this.focus()},__watcher:function(t){this.shadow.watched&&(this.shadow.val=t)},__watcherRegister:function(){this.watcher||(this.watcher=this.$watch("input",this.__watcher))},__watcherUnregister:function(t){!this.watcher||!t&&this.shadow.watched||(this.watcher(),this.watcher=null,this.shadow.selectionOpen=!1)}},beforeDestroy:function(){this.__watcherUnregister(!0)},render:function(t){var e=this;return t(QInputFrame,{staticClass:"q-chips-input",props:{prefix:this.prefix,suffix:this.suffix,stackLabel:this.stackLabel,floatLabel:this.floatLabel,error:this.error,warning:this.warning,disable:this.disable,readonly:this.readonly,inverted:this.inverted,invertedLight:this.invertedLight,dark:this.dark,hideUnderline:this.hideUnderline,before:this.before,after:this.after,color:this.color,noParentField:this.noParentField,focused:this.focused,length:this.length,additionalLength:this.input.length>0},on:{click:this.__onClick}},[t("div",{staticClass:"col row items-center q-input-chips"},this.model.map(function(i,s){return t(QChip,{key:i+"#"+s,props:{small:!0,closable:e.editable,color:e.computedChipBgColor,textColor:e.computedChipTextColor},attrs:{tabindex:e.editable&&e.focused?0:-1},on:{blur:e.__onInputBlur,focus:e.__clearTimer,hide:function(){e.remove(s)}},nativeOn:{blur:e.__onInputBlur,focus:e.__clearTimer}},i)}).concat([t("input",{ref:"input",staticClass:"col q-input-target",class:this.inputClasses,domProps:{value:this.input},attrs:Object.assign({},this.$attrs,{placeholder:this.inputPlaceholder,disabled:this.disable,readonly:this.readonly}),on:{input:function(t){e.input=t.target.value},focus:this.__onFocus,blur:this.__onInputBlur,keydown:this.__handleKeyDown,keyup:this.__onKeyup}})])),this.isLoading?t(QSpinner,{slot:"after",staticClass:"q-if-control",props:{size:"24px"}}):this.editable&&t(QIcon,{slot:"after",staticClass:"q-if-control",class:{invisible:0===this.input.length},props:{name:this.computedAddIcon},nativeOn:{mousedown:this.__clearTimer,touchstart:this.__clearTimer,click:function(){e.add()}}})||void 0,this.isClearable&&t(QIcon,{slot:"after",staticClass:"q-if-control",props:{name:this.$q.icon.input["clear"+(this.isInverted?"Inverted":"")]},nativeOn:{mousedown:this.__clearTimer,touchstart:this.__clearTimer,click:this.clear}})||void 0].concat(this.$slots.default?t("div",{staticClass:"absolute-full no-pointer-events",slot:"after"},this.$slots.default):void 0))}},QItemTile={name:"QItemTile",props:{icon:String,letter:Boolean,inverted:Boolean,image:Boolean,avatar:Boolean,stamp:Boolean,label:Boolean,sublabel:Boolean,lines:[Number,String],tag:{type:String,default:"div"},color:String,textColor:String},computed:{hasLines:function(){return(this.label||this.sublabel)&&this.lines},type:function(){var t=this;return["icon","label","sublabel","image","avatar","letter","stamp"].find(function(e){return t[e]})},classes:function(){var t=[];return this.color&&(this.inverted?t.push("bg-"+this.color):this.textColor||t.push("text-"+this.color)),this.textColor&&t.push("text-"+this.textColor),this.type&&t.push("q-item-"+this.type),this.inverted&&(this.icon||this.letter)&&(t.push("q-item-inverted"),t.push("flex"),t.push("flex-center")),!this.hasLines||"1"!==this.lines&&1!==this.lines||t.push("ellipsis"),t},style:function(){if(this.hasLines)return textStyle(this.lines)}},render:function(t){var e={class:this.classes,style:this.style};if(this.icon){if(this.inverted)return t(this.tag,e,[t(QIcon,{props:{name:this.icon}},this.$slots.default)]);e.props={name:this.icon}}return t(this.icon?QIcon:this.tag,e,this.$slots.default)}},QSlideTransition={name:"QSlideTransition",props:{appear:Boolean},methods:{__begin:function(t,e){t.style.overflowY="hidden",void 0!==e&&(t.style.height=e+"px"),t.classList.add("q-slide-transition"),this.animating=!0},__end:function(t,e){t.style.overflowY=null,t.style.height=null,t.classList.remove("q-slide-transition"),this.__cleanup(),e!==this.lastEvent&&this.$emit(e),this.animating=!1},__cleanup:function(){clearTimeout(this.timer),this.el.removeEventListener("transitionend",this.animListener)}},beforeDestroy:function(){this.animating&&this.__cleanup()},render:function(t){var e=this;return t("transition",{props:{css:!1,appear:this.appear},on:{enter:function(t,i){var s=0;e.el=t,!0===e.animating?(e.__cleanup(),s=t.offsetHeight===t.scrollHeight?0:void 0):e.lastEvent="hide",e.__begin(t,s),e.timer=setTimeout(function(){t.style.height=t.scrollHeight+"px",e.animListener=function(){e.__end(t,"show"),i()},t.addEventListener("transitionend",e.animListener)},100)},leave:function(t,i){var s;e.el=t,!0===e.animating?e.__cleanup():(e.lastEvent="show",s=t.scrollHeight),e.__begin(t,s),e.timer=setTimeout(function(){t.style.height=0,e.animListener=function(){e.__end(t,"hide"),i()},t.addEventListener("transitionend",e.animListener)},100)}}},this.$slots.default)}},eventName="q:collapsible:close",QCollapsible={name:"QCollapsible",mixins:[ModelToggleMixin,ItemMixin,{props:subItemProps}],modelToggle:{history:!1},props:{disable:Boolean,popup:Boolean,indent:Boolean,group:String,iconToggle:Boolean,collapseIcon:String,opened:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},computed:{classes:function(){return{"q-collapsible-opened":this.showing,"q-collapsible-closed":!this.showing,"q-collapsible-popup-opened":this.popup&&this.showing,"q-collapsible-popup-closed":this.popup&&!this.showing,"q-collapsible-cursor-pointer":!this.separateToggle,"q-item-dark":this.dark,"q-item-separator":this.separator,"q-item-inset-separator":this.insetSeparator,disabled:this.disable}},separateToggle:function(){return this.iconToggle||void 0!==this.to}},watch:{showing:function(t){t&&this.group&&this.$root.$emit(eventName,this)}},methods:{__toggleItem:function(){this.separateToggle||this.toggle()},__toggleIcon:function(t){this.separateToggle&&(t&&stopAndPrevent(t),this.toggle())},__eventHandler:function(t){this.group&&this!==t&&t.group===this.group&&this.hide()},__getToggleSide:function(t,e){return[t(QItemTile,{slot:e?"right":void 0,staticClass:"cursor-pointer transition-generic relative-position q-collapsible-toggle-icon",class:{"rotate-180":this.showing,invisible:this.disable},nativeOn:{click:this.__toggleIcon},props:{icon:this.collapseIcon||this.$q.icon.collapsible.icon}})]},__getItemProps:function(t){return{props:{cfg:this.$props},style:this.headerStyle,class:this.headerClass,nativeOn:{click:this.__toggleItem}}}},created:function(){this.$root.$on(eventName,this.__eventHandler),(this.opened||this.value)&&this.show()},beforeDestroy:function(){this.$root.$off(eventName,this.__eventHandler)},render:function(t){return t(this.tag,{staticClass:"q-collapsible q-item-division relative-position",class:this.classes},[t("div",{staticClass:"q-collapsible-inner"},[this.$slots.header?t(QItem,this.__getItemProps(),[this.$slots.header,t(QItemSide,{props:{right:!0},staticClass:"relative-position"},this.__getToggleSide(t))]):t(QItemWrapper,this.__getItemProps(!0),this.__getToggleSide(t,!0)),t(QSlideTransition,[t("div",{directives:[{name:"show",value:this.showing}]},[t("div",{staticClass:"q-collapsible-sub-item relative-position",class:{indent:this.indent}},this.$slots.default)])])])])}},DisplayModeMixin={props:{popover:Boolean,modal:Boolean},computed:{isPopover:function(){return!!this.popover||!this.modal&&(this.$q.platform.is.desktop&&!this.$q.platform.within.iframe)}}};function getPercentage(t,e,i){var s=between((position(t).left-e.left)/e.width,0,1);return i?1-s:s}function notDivides(t,e){var i=e?parseFloat(t.toFixed(e)):t;return i!==parseInt(i,10)}function getModel(t,e,i,s,n){var o=e+t*(i-e),r=(o-e)%s;return o+=(Math.abs(r)>=s/2?(r<0?-1:1)*s:0)-r,n&&(o=parseFloat(o.toFixed(n))),between(o,e,i)}var SliderMixin={directives:{TouchPan:TouchPan},props:{min:{type:Number,default:1},max:{type:Number,default:5},step:{type:Number,default:1},decimals:Number,snap:Boolean,markers:Boolean,label:Boolean,labelAlways:Boolean,square:Boolean,color:String,fillHandleAlways:Boolean,error:Boolean,warning:Boolean,readonly:Boolean,disable:Boolean},computed:{editable:function(){return!this.disable&&!this.readonly},classes:function(){var t={disabled:this.disable,readonly:this.readonly,"label-always":this.labelAlways,"has-error":this.error,"has-warning":this.warning};return this.error||this.warning||!this.color||(t["text-"+this.color]=!0),t},markersLen:function(){return(this.max-this.min)/this.step+1},labelColor:function(){return this.error?"negative":this.warning?"warning":this.color||"primary"},computedDecimals:function(){return void 0!==this.decimals?this.decimals||0:(String(this.step).trim("0").split(".")[1]||"").length},computedStep:function(){return void 0!==this.decimals?1/Math.pow(10,this.decimals||0):this.step}},methods:{__pan:function(t){var e=this;t.isFinal?this.dragging&&(this.dragTimer=setTimeout(function(){e.dragging=!1},100),this.__end(t.evt),this.__update(!0)):t.isFirst?(clearTimeout(this.dragTimer),this.dragging=this.__getDragging(t.evt)):this.dragging&&(this.__move(t.evt),this.__update())},__update:function(t){var e=this;JSON.stringify(this.model)!==JSON.stringify(this.value)&&(this.$emit("input",this.model),t&&this.$nextTick(function(){JSON.stringify(e.model)!==JSON.stringify(e.value)&&e.$emit("change",e.model)}))},__click:function(t){if(!this.dragging){var e=this.__getDragging(t);e&&(this.__end(t,e),this.__update(!0))}},__getMarkers:function(t){if(this.markers){for(var e=[],i=0;i<this.markersLen;i++)e.push(t("div",{staticClass:"q-slider-mark",key:"marker"+i,style:{left:100*i*this.step/(this.max-this.min)+"%"}}));return e}}},created:function(){this.__validateProps()},render:function(t){return t("div",{staticClass:"q-slider non-selectable",class:this.classes,on:this.editable?{click:this.__click}:null,directives:this.editable?[{name:"touch-pan",modifiers:{horizontal:!0,prevent:!0,stop:!0},value:this.__pan}]:null},[t("div",{ref:"handle",staticClass:"q-slider-handle-container"},[t("div",{staticClass:"q-slider-track"}),this.__getMarkers(t)].concat(this.__getContent(t)))])}},QSlider={name:"QSlider",mixins:[SliderMixin],props:{value:Number,labelValue:String},data:function(){return{model:this.value,dragging:!1,currentPercentage:(this.value-this.min)/(this.max-this.min)}},computed:{percentage:function(){return this.snap?(this.model-this.min)/(this.max-this.min)*100+"%":100*this.currentPercentage+"%"},displayValue:function(){return void 0!==this.labelValue?this.labelValue:this.model}},watch:{value:function(t){this.dragging||(t<this.min?this.model=this.min:t>this.max?this.model=this.max:this.model=t,this.currentPercentage=(this.model-this.min)/(this.max-this.min))},min:function(t){this.model<t?this.model=t:this.$nextTick(this.__validateProps)},max:function(t){this.model>t?this.model=t:this.$nextTick(this.__validateProps)},step:function(){this.$nextTick(this.__validateProps)}},methods:{__getDragging:function(t){var e=this.$refs.handle;return{left:e.getBoundingClientRect().left,width:e.offsetWidth}},__move:function(t){var e=getPercentage(t,this.dragging,this.$q.i18n.rtl);this.currentPercentage=e,this.model=getModel(e,this.min,this.max,this.step,this.computedDecimals)},__end:function(t,e){void 0===e&&(e=this.dragging);var i=getPercentage(t,e,this.$q.i18n.rtl);this.model=getModel(i,this.min,this.max,this.step,this.computedDecimals),this.currentPercentage=(this.model-this.min)/(this.max-this.min)},__onKeyDown:function(t){var e=t.keyCode;if(this.editable&&[37,40,39,38].includes(e)){stopAndPrevent(t);var i=this.computedDecimals,s=t.ctrlKey?10*this.computedStep:this.computedStep,n=[37,40].includes(e)?-s:s,o=i?parseFloat((this.model+n).toFixed(i)):this.model+n;this.model=between(o,this.min,this.max),this.currentPercentage=(this.model-this.min)/(this.max-this.min),this.__update()}},__onKeyUp:function(t){var e=t.keyCode;this.editable&&[37,40,39,38].includes(e)&&this.__update(!0)},__validateProps:function(){this.min>=this.max?console.error("Range error: min >= max",this.$el,this.min,this.max):notDivides((this.max-this.min)/this.step,this.computedDecimals)&&console.error("Range error: step must be a divisor of max - min",this.min,this.max,this.step,this.computedDecimals)},__getContent:function(t){var e;return[t("div",{staticClass:"q-slider-track active-track",style:{width:this.percentage},class:{"no-transition":this.dragging,"handle-at-minimum":this.model===this.min}}),t("div",{staticClass:"q-slider-handle",style:(e={},e[this.$q.i18n.rtl?"right":"left"]=this.percentage,e.borderRadius=this.square?"0":"50%",e),class:{dragging:this.dragging,"handle-at-minimum":!this.fillHandleAlways&&this.model===this.min},attrs:{tabindex:this.editable?0:-1},on:{keydown:this.__onKeyDown,keyup:this.__onKeyUp}},[this.label||this.labelAlways?t(QChip,{staticClass:"q-slider-label no-pointer-events",class:{"label-always":this.labelAlways},props:{pointing:"down",square:!0,dense:!0,color:this.labelColor}},[this.displayValue]):null,t("div",{staticClass:"q-slider-ring"})])]}}};function throttle(t,e){void 0===e&&(e=250);var i,s=!1;return function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return s?i:(s=!0,i=t.apply(this,n),setTimeout(function(){s=!1},e),i)}}function clone(t){var e=JSON.stringify(t);if(e)return JSON.parse(e)}var QColorPicker={name:"QColorPicker",mixins:[ParentFieldMixin],directives:{TouchPan:TouchPan},props:{value:[String,Object],defaultValue:{type:[String,Object],default:null},formatModel:{type:String,default:"auto",validator:function(t){return["auto","hex","rgb","hexa","rgba"].includes(t)}},disable:Boolean,readonly:Boolean,dark:Boolean},data:function(){return{view:this.value&&"string"!=typeof this.value?"rgb":"hex",model:this.__parseModel(this.value||this.defaultValue)}},watch:{value:{handler:function(t){var e=this.__parseModel(t||this.defaultValue);e.hex!==this.model.hex&&(this.model=e)},deep:!0}},computed:{forceHex:function(){return"auto"===this.formatModel?null:this.formatModel.indexOf("hex")>-1},forceAlpha:function(){return"auto"===this.formatModel?null:this.formatModel.indexOf("a")>-1},isHex:function(){return"string"==typeof this.value},isOutputHex:function(){return null!==this.forceHex?this.forceHex:this.isHex},editable:function(){return!this.disable&&!this.readonly},hasAlpha:function(){return null!==this.forceAlpha?this.forceAlpha:this.isHex?this.value.trim().length>7:this.value&&void 0!==this.value.a},swatchColor:function(){return{backgroundColor:"rgba("+this.model.r+","+this.model.g+","+this.model.b+","+(void 0===this.model.a?100:this.model.a)/100+")"}},saturationStyle:function(){return{background:"hsl("+this.model.h+",100%,50%)"}},saturationPointerStyle:function(){var t;return(t={top:101-this.model.v+"%"})[this.$q.i18n.rtl?"right":"left"]=this.model.s+"%",t},inputsArray:function(){var t=["r","g","b"];return this.hasAlpha&&t.push("a"),t},__needsBorder:function(){return!0}},created:function(){this.__saturationChange=throttle(this.__saturationChange,20)},render:function(t){return t("div",{staticClass:"q-color",class:{disabled:this.disable,"q-color-dark":this.dark}},[this.__getSaturation(t),this.__getSliders(t),this.__getInputs(t)])},methods:{__getSaturation:function(t){return t("div",{ref:"saturation",staticClass:"q-color-saturation non-selectable relative-position overflow-hidden cursor-pointer",style:this.saturationStyle,class:{readonly:!this.editable},on:this.editable?{click:this.__saturationClick}:null,directives:this.editable?[{name:"touch-pan",modifiers:{mightPrevent:!0},value:this.__saturationPan}]:null},[t("div",{staticClass:"q-color-saturation-white absolute-full"}),t("div",{staticClass:"q-color-saturation-black absolute-full"}),t("div",{staticClass:"absolute",style:this.saturationPointerStyle},[void 0!==this.model.hex?t("div",{staticClass:"q-color-saturation-circle"}):null])])},__getSliders:function(t){var e=this;return t("div",{staticClass:"q-color-sliders row items-center"},[t("div",{staticClass:"q-color-swatch q-mt-sm q-ml-md q-mb-sm non-selectable overflow-hidden"},[t("div",{style:this.swatchColor,staticClass:"fit"})]),t("div",{staticClass:"col q-pa-sm"},[t("div",{staticClass:"q-color-hue non-selectable"},[t(QSlider,{props:{value:this.model.h,color:"white",min:0,max:360,fillHandleAlways:!0,readonly:!this.editable},on:{input:this.__onHueChange,dragend:function(t){return e.__onHueChange(t,!0)}}})]),this.hasAlpha?t("div",{staticClass:"q-color-alpha non-selectable"},[t(QSlider,{props:{value:this.model.a,color:"white",min:0,max:100,fillHandleAlways:!0,readonly:!this.editable},on:{input:function(t){return e.__onNumericChange({target:{value:t}},"a",100)},dragend:function(t){return e.__onNumericChange({target:{value:t}},"a",100,!0)}}})]):null])])},__getNumericInputs:function(t){var e=this;return this.inputsArray.map(function(i){var s="a"===i?100:255;return t("div",{staticClass:"col q-color-padding"},[t("input",{attrs:{type:"number",min:0,max:s,readonly:!e.editable,tabindex:e.editable?0:-1},staticClass:"full-width text-center q-no-input-spinner",domProps:{value:void 0===e.model.hex?"":Math.round(e.model[i])},on:{input:function(t){return e.__onNumericChange(t,i,s)},blur:function(t){return e.editable&&e.__onNumericChange(t,i,s,!0)}}}),t("div",{staticClass:"q-color-label text-center uppercase"},[i])])})},__getInputs:function(t){var e=this;return t("div",{staticClass:"q-color-inputs row items-center q-px-sm q-pb-sm"},[t("div",{staticClass:"col q-mr-sm row no-wrap"},"hex"===this.view?[t("div",{staticClass:"col"},[t("input",{domProps:{value:this.model.hex},attrs:{readonly:!this.editable,tabindex:this.editable?0:-1},on:{change:this.__onHexChange,blur:function(t){return e.editable&&e.__onHexChange(t,!0)}},staticClass:"full-width text-center uppercase"}),t("div",{staticClass:"q-color-label text-center"},["HEX"+(this.hasAlpha?" / A":"")])])]:this.__getNumericInputs(t)),t("div",[t(QBtn,{props:{flat:!0,disable:this.disable},on:{click:this.__nextInputView},staticClass:"q-pa-none"},[t("svg",{attrs:{viewBox:"0 0 24 24"},style:{width:"24px",height:"24px"}},[t("path",{attrs:{fill:"currentColor",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}})])])])])},__onSaturationChange:function(t,e,i){var s=this.$refs.saturation;if(s){var n=s.clientWidth,o=s.clientHeight,r=s.getBoundingClientRect(),a=Math.min(n,Math.max(0,t-r.left));this.$q.i18n.rtl&&(a=n-a);var l=Math.min(o,Math.max(0,e-r.top)),c=Math.round(100*a/n),h=Math.round(100*Math.max(0,Math.min(1,-l/o+1))),u=hsvToRgb({h:this.model.h,s:c,v:h,a:this.hasAlpha?this.model.a:void 0});this.model.s=c,this.model.v=h,this.__update(u,rgbToHex(u),i)}},__onHueChange:function(t,e){var i=hsvToRgb({h:t=Math.round(t),s:this.model.s,v:this.model.v,a:this.hasAlpha?this.model.a:void 0});this.model.h=t,this.__update(i,rgbToHex(i),e)},__onNumericChange:function(t,e,i,s){var n=Number(t.target.value);if(!isNaN(n))if((n=Math.floor(n))<0||n>i)s&&this.$forceUpdate();else{var o={r:"r"===e?n:this.model.r,g:"g"===e?n:this.model.g,b:"b"===e?n:this.model.b,a:this.hasAlpha?"a"===e?n:this.model.a:void 0};if("a"!==e){var r=rgbToHsv(o);this.model.h=r.h,this.model.s=r.s,this.model.v=r.v}this.__update(o,rgbToHex(o),s)}},__onHexChange:function(t,e){var i=t.target.value,s=i.length,n=this.hasAlpha?[5,9]:[4,7];if(s===n[0]||s===n[1]){var o=hexToRgb(i),r=rgbToHsv(o);this.model.h=r.h,this.model.s=r.s,this.model.v=r.v,this.__update(o,i,e)}else e&&this.$forceUpdate()},__update:function(t,e,i){var s=this,n=this.isOutputHex?e:t;this.model.hex=e,this.model.r=t.r,this.model.g=t.g,this.model.b=t.b,this.model.a=this.hasAlpha?t.a:void 0,this.$emit("input",n),this.$nextTick(function(){i&&JSON.stringify(n)!==JSON.stringify(s.value)&&s.$emit("change",n)})},__nextInputView:function(){this.view="hex"===this.view?"rgba":"hex"},__parseModel:function(t){if(null===t||void 0===t)return{h:0,s:0,v:0,r:0,g:0,b:0,hex:void 0,a:100};var e="string"==typeof t?hexToRgb(t.trim()):clone(t);return this.forceAlpha===(void 0===e.a)&&(e.a=this.forceAlpha?100:void 0),e.hex=rgbToHex(e),Object.assign({a:100},e,rgbToHsv(e))},__saturationPan:function(t){t.isFinal?this.__dragStop(t):t.isFirst?this.__dragStart(t):this.__dragMove(t)},__dragStart:function(t){stopAndPrevent(t.evt),this.saturationDragging=!0,this.__saturationChange(t)},__dragMove:function(t){this.saturationDragging&&(stopAndPrevent(t.evt),this.__saturationChange(t))},__dragStop:function(t){var e=this;stopAndPrevent(t.evt),setTimeout(function(){e.saturationDragging=!1},100),this.__onSaturationChange(t.position.left,t.position.top,!0)},__saturationChange:function(t){this.__onSaturationChange(t.position.left,t.position.top)},__saturationClick:function(t){this.saturationDragging||this.__onSaturationChange(t.pageX-window.pageXOffset,t.pageY-window.pageYOffset,!0)}}},contentCss={maxWidth:"95vw",maxHeight:"98vh"},QColor={name:"QColor",mixins:[FrameMixin,DisplayModeMixin],props:{value:{required:!0},color:{type:String,default:"primary"},defaultValue:{type:[String,Object],default:null},formatModel:{type:String,default:"auto",validator:function(t){return["auto","hex","rgb","hexa","rgba"].includes(t)}},displayValue:String,okLabel:String,cancelLabel:String},watch:{value:function(t){!this.disable&&this.isPopover&&(this.model=clone(t))}},data:function(){var t=this.isPopover?{}:{transition:"q-modal"};return t.focused=!1,t.model=clone(this.value||this.defaultValue),t},computed:{actualValue:function(){return this.displayValue?this.displayValue:this.value?"string"==typeof this.value?this.value:"rgb"+(void 0!==this.value.a?"a":"")+"("+this.value.r+","+this.value.g+","+this.value.b+(void 0!==this.value.a?","+this.value.a/100:"")+")":""},computedClearValue:function(){return void 0===this.clearValue?this.defaultValue:this.clearValue},isClearable:function(){return this.editable&&this.clearable&&JSON.stringify(this.computedClearValue)!==JSON.stringify(this.value)},modalBtnColor:function(){return this.color}},methods:{toggle:function(){this.$refs.popup&&this[this.$refs.popup.showing?"hide":"show"]()},show:function(){if(!this.disable)return this.__setModel(this.value||this.defaultValue),this.$refs.popup.show()},hide:function(){return this.$refs.popup?this.$refs.popup.hide():Promise.resolve()},__handleKeyDown:function(t){switch(getEventKey(t)){case 13:case 32:return stopAndPrevent(t),this.show();case 8:this.isClearable&&this.clear()}},__onFocus:function(){this.disable||this.focused||(this.model=clone(this.value||this.defaultValue),this.focused=!0,this.$emit("focus"))},__onBlur:function(t){var e=this;this.focused&&setTimeout(function(){var t=document.activeElement;e.$refs.popup&&e.$refs.popup.showing&&(t===document.body||e.$refs.popup.$el.contains(t))||(e.__onHide(),e.hide())},1)},__onHide:function(t,e){(t||this.isPopover)&&this.__update(t),this.focused&&(e?this.$el.focus():(this.$emit("blur"),this.focused=!1))},__setModel:function(t,e){this.model=clone(t),(e||this.isPopover)&&this.__update(e)},__hasModelChanged:function(){return JSON.stringify(this.model)!==JSON.stringify(this.value)},__update:function(t){var e=this;this.$nextTick(function(){e.__hasModelChanged()&&(e.$emit("input",e.model),t&&e.$emit("change",e.model))})},__getPicker:function(t,e){var i=this,s=[t(QColorPicker,{staticClass:"no-border"+(e?" full-width":""),props:Object.assign({value:this.model,disable:this.disable,readonly:this.readonly,formatModel:this.formatModel,dark:this.dark,noParentField:!0},this.$attrs),on:{input:function(t){return i.$nextTick(function(){return i.__setModel(t)})}}})];return e&&s.push(t("div",{staticClass:"modal-buttons modal-buttons-top row full-width",class:this.dark?"bg-black":null},[t("div",{staticClass:"col"}),t(QBtn,{props:{color:this.modalBtnColor,flat:!0,label:this.cancelLabel||this.$q.i18n.label.cancel,noRipple:!0},on:{click:function(){i.__onHide(!1,!0),i.hide()}}}),this.editable?t(QBtn,{props:{color:this.modalBtnColor,flat:!0,label:this.okLabel||this.$q.i18n.label.set,noRipple:!0,disable:!this.model},on:{click:function(){i.__onHide(!0,!0),i.hide()}}}):null])),s}},render:function(t){var e=this;return t(QInputFrame,{staticClass:"q-color-input",props:{prefix:this.prefix,suffix:this.suffix,stackLabel:this.stackLabel,floatLabel:this.floatLabel,error:this.error,warning:this.warning,disable:this.disable,readonly:this.readonly,inverted:this.inverted,invertedLight:this.invertedLight,dark:this.dark,hideUnderline:this.hideUnderline,before:this.before,after:this.after,color:this.color,noParentField:this.noParentField,focused:this.focused||this.$refs.popup&&this.$refs.popup.showing,focusable:!0,length:this.actualValue.length},nativeOn:{click:this.toggle,focus:this.__onFocus,blur:this.__onBlur,keydown:this.__handleKeyDown}},[t("div",{staticClass:"col q-input-target ellipsis",class:this.fakeInputClasses},[this.fakeInputValue]),this.isPopover?t(QPopover,{ref:"popup",props:{cover:!0,disable:this.disable,anchorClick:!1,maxHeight:"100vh"},slot:"after",on:{show:this.__onFocus,hide:function(){return e.__onHide(!0,!0)}}},this.__getPicker(t)):t(QModal,{ref:"popup",staticClass:"with-backdrop",props:{contentCss:contentCss,minimized:!0,position:null,transition:this.transition},on:{dismiss:function(){return e.__onHide(!1,!0)}}},this.__getPicker(t,!0)),this.isClearable?t(QIcon,{slot:"after",props:{name:this.$q.icon.input["clear"+(this.isInverted?"Inverted":"")]},nativeOn:{click:this.clear},staticClass:"q-if-control"}):null,t(QIcon,{slot:"after",props:{name:this.$q.icon.input.dropdown},staticClass:"q-if-control"})])}},QContextMenu={name:"QContextMenu",props:{disable:Boolean},data:function(){return{mobile:this.$q.platform.is.mobile}},methods:{hide:function(t){if(this.$refs.popup)return this.mobile&&this.target.classList.remove("non-selectable"),this.$refs.popup.hide(t)},show:function(t){var e=this;this.disable||(this.mobile?this.$refs.popup&&(this.event=t,this.$refs.popup.show(t)):t&&(stopAndPrevent(t),setTimeout(function(){e.$refs.popup&&(e.event=t,e.$refs.popup.show(t))},100)))},__desktopBodyHide:function(t){this.$el.contains(t.target)||this.hide(t)},__desktopOnShow:function(){document.body.addEventListener("contextmenu",this.__desktopBodyHide,!0),document.body.addEventListener("click",this.__desktopBodyHide,!0),this.$emit("show",this.event)},__desktopOnHide:function(t){document.body.removeEventListener("contextmenu",this.__desktopBodyHide,!0),document.body.removeEventListener("click",this.__desktopBodyHide,!0),this.$emit("hide",this.event,t)},__mobileTouchStartHandler:function(t){var e=this;this.__mobileCleanup(),t&&t.touches&&t.touches.length>1||(this.target.classList.add("non-selectable"),this.touchTimer=setTimeout(function(){t&&stopAndPrevent(t),e.__mobileCleanup(),setTimeout(function(){e.show(t)},10)},600))},__mobileCleanup:function(){this.target.classList.remove("non-selectable"),clearTimeout(this.touchTimer)}},render:function(t){var e=this;return this.mobile?t(QModal,{ref:"popup",props:{minimized:!0},on:{show:function(){e.$emit("show",e.event)},hide:function(t){e.$emit("hide",e.event,t)}}},this.$slots.default):t(QPopover,{ref:"popup",props:{anchorClick:!1},on:{show:this.__desktopOnShow,hide:this.__desktopOnHide}},this.$slots.default)},mounted:function(){var t=this;this.mobile?this.$nextTick(function(){t.target=t.$el.parentNode,t.target.addEventListener("touchstart",t.__mobileTouchStartHandler),["touchcancel","touchmove","touchend"].forEach(function(e){t.target.addEventListener(e,t.__mobileCleanup)})}):(this.target=this.$el.parentNode,this.target.addEventListener("contextmenu",this.show))},beforeDestroy:function(){var t=this;this.mobile?(this.target.removeEventListener("touchstart",this.__mobileTouchStartHandler),["touchcancel","touchmove","touchend"].forEach(function(e){t.target.removeEventListener(e,t.__mobileCleanup)})):this.target.removeEventListener("contextmenu",this.show)}},modelValidator=function(t){var e=typeof t;return null===t||void 0===t||"number"===e||"string"===e||isDate(t)},inline={value:{validator:modelValidator,required:!0},defaultValue:{type:[String,Number,Date],default:null},type:{type:String,default:"date",validator:function(t){return["date","time","datetime"].includes(t)}},color:{type:String,default:"primary"},dark:Boolean,min:{validator:modelValidator,default:null},max:{validator:modelValidator,default:null},headerLabel:String,firstDayOfWeek:Number,formatModel:{type:String,default:"auto",validator:function(t){return["auto","date","number","string"].includes(t)}},format24h:{type:[Boolean,Number],default:0,validator:function(t){return[!0,!1,0].includes(t)}},defaultView:{type:String,validator:function(t){return["year","month","day","hour","minute"].includes(t)}},minimal:Boolean},input={format:String,okLabel:String,cancelLabel:String,displayValue:String},MILLISECONDS_IN_DAY=864e5,MILLISECONDS_IN_HOUR=36e5,MILLISECONDS_IN_MINUTE=6e4,token=/\[((?:[^\]\\]|\\]|\\)*)\]|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g;function formatTimezone(t,e){void 0===e&&(e="");var i=t>0?"-":"+",s=Math.abs(t),n=s%60;return i+pad(Math.floor(s/60))+e+pad(n)}function setMonth(t,e){var i=new Date(t.getFullYear(),e,0,0,0,0,0).getDate();t.setMonth(e-1,Math.min(i,t.getDate()))}function getChange(t,e,i){var s=new Date(t),n=i?1:-1;return Object.keys(e).forEach(function(t){if("month"!==t){var i="year"===t?"FullYear":capitalize("days"===t?"date":t);s["set"+i](s["get"+i]()+n*e[t])}else setMonth(s,s.getMonth()+1+n*e.month)}),s}function isValid(t){if("number"==typeof t)return!0;var e=Date.parse(t);return!1===isNaN(e)}function buildDate(t,e){return adjustDate(new Date,t,e)}function getDayOfWeek(t){var e=new Date(t).getDay();return 0===e?7:e}function getWeekOfYear(t){var e=new Date(t.getFullYear(),t.getMonth(),t.getDate());e.setDate(e.getDate()-(e.getDay()+6)%7+3);var i=new Date(e.getFullYear(),0,4);i.setDate(i.getDate()-(i.getDay()+6)%7+3);var s=e.getTimezoneOffset()-i.getTimezoneOffset();e.setHours(e.getHours()-s);var n=(e-i)/(7*MILLISECONDS_IN_DAY);return 1+Math.floor(n)}function isBetweenDates(t,e,i,s){void 0===s&&(s={});var n=new Date(e).getTime(),o=new Date(i).getTime(),r=new Date(t).getTime();return s.inclusiveFrom&&n--,s.inclusiveTo&&o++,r>n&&r<o}function addToDate(t,e){return getChange(t,e,!0)}function subtractFromDate(t,e){return getChange(t,e,!1)}function adjustDate(t,e,i){var s=new Date(t),n="set"+(i?"UTC":"");return Object.keys(e).forEach(function(t){if("month"!==t){var i="year"===t?"FullYear":t.charAt(0).toUpperCase()+t.slice(1);s[""+n+i](e[t])}else setMonth(s,e.month)}),s}function startOfDate(t,e){var i=new Date(t);switch(e){case"year":i.setMonth(0);case"month":i.setDate(1);case"day":i.setHours(0);case"hour":i.setMinutes(0);case"minute":i.setSeconds(0);case"second":i.setMilliseconds(0)}return i}function endOfDate(t,e){var i=new Date(t);switch(e){case"year":i.setMonth(11);case"month":i.setDate(daysInMonth(t));case"day":i.setHours(23);case"hour":i.setMinutes(59);case"minute":i.setSeconds(59);case"second":i.setMilliseconds(59)}return i}function getMaxDate(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var s=new Date(t);return e.forEach(function(t){s=Math.max(s,new Date(t))}),s}function getMinDate(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var s=new Date(t);return e.forEach(function(t){s=Math.min(s,new Date(t))}),s}function getDiff(t,e,i){return(t.getTime()-t.getTimezoneOffset()*MILLISECONDS_IN_MINUTE-(e.getTime()-e.getTimezoneOffset()*MILLISECONDS_IN_MINUTE))/i}function getDateDiff(t,e,i){void 0===i&&(i="days");var s=new Date(t),n=new Date(e);switch(i){case"years":return s.getFullYear()-n.getFullYear();case"months":return 12*(s.getFullYear()-n.getFullYear())+s.getMonth()-n.getMonth();case"days":return getDiff(startOfDate(s,"day"),startOfDate(n,"day"),MILLISECONDS_IN_DAY);case"hours":return getDiff(startOfDate(s,"hour"),startOfDate(n,"hour"),MILLISECONDS_IN_HOUR);case"minutes":return getDiff(startOfDate(s,"minute"),startOfDate(n,"minute"),MILLISECONDS_IN_MINUTE);case"seconds":return getDiff(startOfDate(s,"second"),startOfDate(n,"second"),1e3)}}function getDayOfYear(t){return getDateDiff(t,startOfDate(t,"year"),"days")+1}function inferDateFormat(t){return isDate(t)?"date":"number"==typeof t?"number":"string"}function convertDateToFormat(t,e,i){if(t||0===t)switch(e){case"date":return t;case"number":return t.getTime();default:return formatDate(t,i)}}function getDateBetween(t,e,i){var s=new Date(t);if(e){var n=new Date(e);if(s<n)return n}if(i){var o=new Date(i);if(s>o)return o}return s}function isSameDate(t,e,i){var s=new Date(t),n=new Date(e);if(void 0===i)return s.getTime()===n.getTime();switch(i){case"second":if(s.getSeconds()!==n.getSeconds())return!1;case"minute":if(s.getMinutes()!==n.getMinutes())return!1;case"hour":if(s.getHours()!==n.getHours())return!1;case"day":if(s.getDate()!==n.getDate())return!1;case"month":if(s.getMonth()!==n.getMonth())return!1;case"year":if(s.getFullYear()!==n.getFullYear())return!1;break;default:throw new Error("date isSameDate unknown unit "+i)}return!0}function daysInMonth(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function getOrdinal(t){if(t>=11&&t<=13)return t+"th";switch(t%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"}var formatter={YY:function(t){return pad(t.getFullYear(),4).substr(2)},YYYY:function(t){return pad(t.getFullYear(),4)},M:function(t){return t.getMonth()+1},MM:function(t){return pad(t.getMonth()+1)},MMM:function(t){return i18n.lang.date.monthsShort[t.getMonth()]},MMMM:function(t){return i18n.lang.date.months[t.getMonth()]},Q:function(t){return Math.ceil((t.getMonth()+1)/3)},Qo:function(t){return getOrdinal(this.Q(t))},D:function(t){return t.getDate()},Do:function(t){return getOrdinal(t.getDate())},DD:function(t){return pad(t.getDate())},DDD:function(t){return getDayOfYear(t)},DDDD:function(t){return pad(getDayOfYear(t),3)},d:function(t){return t.getDay()},dd:function(t){return this.dddd(t).slice(0,2)},ddd:function(t){return i18n.lang.date.daysShort[t.getDay()]},dddd:function(t){return i18n.lang.date.days[t.getDay()]},E:function(t){return t.getDay()||7},w:function(t){return getWeekOfYear(t)},ww:function(t){return pad(getWeekOfYear(t))},H:function(t){return t.getHours()},HH:function(t){return pad(t.getHours())},h:function(t){var e=t.getHours();return 0===e?12:e>12?e%12:e},hh:function(t){return pad(this.h(t))},m:function(t){return t.getMinutes()},mm:function(t){return pad(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return pad(t.getSeconds())},S:function(t){return Math.floor(t.getMilliseconds()/100)},SS:function(t){return pad(Math.floor(t.getMilliseconds()/10))},SSS:function(t){return pad(t.getMilliseconds(),3)},A:function(t){return this.H(t)<12?"AM":"PM"},a:function(t){return this.H(t)<12?"am":"pm"},aa:function(t){return this.H(t)<12?"a.m.":"p.m."},Z:function(t){return formatTimezone(t.getTimezoneOffset(),":")},ZZ:function(t){return formatTimezone(t.getTimezoneOffset())},X:function(t){return Math.floor(t.getTime()/1e3)},x:function(t){return t.getTime()}};function formatDate(t,e){if(void 0===e&&(e="YYYY-MM-DDTHH:mm:ss.SSSZ"),0===t||t){var i=new Date(t);return e.replace(token,function(t,e){return t in formatter?formatter[t](i):void 0===e?t:e.split("\\]").join("]")})}}function matchFormat(t){return void 0===t&&(t=""),t.match(token)}function clone$1(t){return isDate(t)?new Date(t.getTime()):t}var date={isValid:isValid,buildDate:buildDate,getDayOfWeek:getDayOfWeek,getWeekOfYear:getWeekOfYear,isBetweenDates:isBetweenDates,addToDate:addToDate,subtractFromDate:subtractFromDate,adjustDate:adjustDate,startOfDate:startOfDate,endOfDate:endOfDate,getMaxDate:getMaxDate,getMinDate:getMinDate,getDateDiff:getDateDiff,getDayOfYear:getDayOfYear,inferDateFormat:inferDateFormat,convertDateToFormat:convertDateToFormat,getDateBetween:getDateBetween,isSameDate:isSameDate,daysInMonth:daysInMonth,formatter:formatter,formatDate:formatDate,matchFormat:matchFormat,clone:clone$1},reDate=/^\d{4}[^\d]\d{2}[^\d]\d{2}/,DateMixin={props:inline,computed:{computedValue:function(){return"date"===this.type&&"string"===this.formatModel&&reDate.test(this.value)?this.value.slice(0,10).split(/[^\d]/).join("/"):this.value},computedDefaultValue:function(){return"date"===this.type&&"string"===this.formatModel&&reDate.test(this.defaultValue)?this.defaultValue.slice(0,10).split(/[^\d]+/).join("/"):this.defaultValue},computedDateFormat:function(){if("date"===this.type&&"string"===this.formatModel)return"YYYY/MM/DD HH:mm:ss"},model:{get:function(){return getDateBetween(isValid(this.computedValue)?new Date(this.computedValue):this.computedDefaultValue?new Date(this.computedDefaultValue):startOfDate(new Date,"day"),this.pmin,this.pmax)},set:function(t){var e=this,i=convertDateToFormat(getDateBetween(t,this.pmin,this.pmax),"auto"===this.formatModel?inferDateFormat(this.value):this.formatModel,this.computedDateFormat);this.$emit("input",i),this.$nextTick(function(){isSameDate(i,e.value)||e.$emit("change",i)})}},pmin:function(){return this.min?new Date(this.min):null},pmax:function(){return this.max?new Date(this.max):null},typeHasDate:function(){return"date"===this.type||"datetime"===this.type},typeHasTime:function(){return"time"===this.type||"datetime"===this.type},year:function(){return this.model.getFullYear()},month:function(){return this.model.getMonth()+1},day:function(){return this.model.getDate()},minute:function(){return this.model.getMinutes()},currentYear:function(){return(new Date).getFullYear()},yearInterval:function(){return{min:null!==this.pmin?this.pmin.getFullYear():(this.year||this.currentYear)-80,max:null!==this.pmax?this.pmax.getFullYear():(this.year||this.currentYear)+80}},monthInterval:function(){return{min:this.monthMin,max:null!==this.pmax&&this.pmax.getFullYear()===this.year?this.pmax.getMonth():11}},monthMin:function(){return null!==this.pmin&&this.pmin.getFullYear()===this.year?this.pmin.getMonth():0},daysInMonth:function(){return new Date(this.year,this.model.getMonth()+1,0).getDate()},editable:function(){return!this.disable&&!this.readonly},__needsBorder:function(){return!0}},methods:{toggleAmPm:function(){if(this.editable){var t=this.model.getHours(),e=this.am?12:-12;this.model=new Date(this.model.setHours(t+e))}},__parseTypeValue:function(t,e){return"month"===t?normalizeToInterval(e,1,12):"date"===t?normalizeToInterval(e,1,this.daysInMonth):"year"===t?normalizeToInterval(e,this.yearInterval.min,this.yearInterval.max):"hour"===t?normalizeToInterval(e,0,23):"minute"===t?normalizeToInterval(e,0,59):void 0}}};function convertToAmPm(t){return 0===t?12:t>=13?t-12:t}var QDatetimePicker={name:"QDatetimePicker",mixins:[DateMixin,ParentFieldMixin,CanRenderMixin],props:{defaultValue:[String,Number,Date],disable:Boolean,readonly:Boolean},directives:{Ripple:Ripple},data:function(){return{view:this.__calcView(this.defaultView),dragging:!1,centerClockPos:0}},watch:{value:function(t){t||(this.view=["date","datetime"].includes(this.type)?"day":"hour")},view:function(){this.__scrollView()}},computed:{classes:function(){var t=[];return this.disable&&t.push("disabled"),this.readonly&&t.push("readonly"),this.dark&&t.push("q-datetime-dark"),this.minimal&&t.push("q-datetime-minimal"),this.color&&t.push("text-"+this.color),t},contentClasses:function(){if(!this.minimal)return"col-md-8"},dateArrow:function(){var t=[this.$q.icon.datetime.arrowLeft,this.$q.icon.datetime.arrowRight];return this.$q.i18n.rtl?t.reverse():t},computedFormat24h:function(){return 0!==this.format24h?this.format24h:this.$q.i18n.date.format24h},computedFirstDayOfWeek:function(){return void 0!==this.firstDayOfWeek?this.firstDayOfWeek:this.$q.i18n.date.firstDayOfWeek},headerDayNames:function(){var t=this.$q.i18n.date.daysShort,e=this.computedFirstDayOfWeek;return e>0?t.slice(e,7).concat(t.slice(0,e)):t},monthString:function(){return""+this.$q.i18n.date.monthsShort[this.month-1]},monthStamp:function(){return this.$q.i18n.date.months[this.month-1]+" "+this.year},weekDayString:function(){return this.headerLabel||this.$q.i18n.date.days[this.model.getDay()]},fillerDays:function(){var t=new Date(this.model.getFullYear(),this.model.getMonth(),1).getDay()-this.computedFirstDayOfWeek;return t<0&&(t+=7),t},beforeMinDays:function(){return!(null===this.pmin||!isSameDate(this.pmin,this.model,"month"))&&this.pmin.getDate()-1},afterMaxDays:function(){return!(null===this.pmax||!isSameDate(this.pmax,this.model,"month"))&&this.daysInMonth-this.maxDay},maxDay:function(){return null!==this.pmax?this.pmax.getDate():this.daysInMonth},dateInterval:function(){var t=null===this.pmax||!1===this.afterMaxDays?0:this.afterMaxDays;return this.beforeMinDays>0||t?{min:this.beforeMinDays>0?this.beforeMinDays+1:1,max:this.daysInMonth-t}:{min:1,max:this.daysInMonth}},hour:function(){var t=this.model.getHours();return this.computedFormat24h?t:convertToAmPm(t)},minute:function(){return this.model.getMinutes()},am:function(){return this.model.getHours()<=11},clockPointerStyle:function(){var t="minute"===this.view,e=t?60:12,i=["rotate("+(Math.round((t?this.minute:this.hour)*(360/e))-180)+"deg)"];return t||!this.computedFormat24h||this.hour>0&&this.hour<13||i.push("scale(.7, .7)"),cssTransform(i.join(" "))},isValid:function(){return isValid(this.value)},today:function(){var t=new Date;return isSameDate(t,this.model,"month")?t.getDate():-1}},methods:{setYear:function(t,e){this.editable&&(e||(this.view="day"),this.model=new Date(this.model.setFullYear(this.__parseTypeValue("year",t))))},setMonth:function(t,e){this.editable&&(e||(this.view="day"),this.model=adjustDate(this.model,{month:t}))},setDay:function(t,e){this.editable&&(this.model=new Date(this.model.setDate(this.__parseTypeValue("date",t))),e||"date"!==this.type?e||(this.view="hour"):this.$emit("canClose"))},setHour:function(t){this.editable&&(t=this.__parseTypeValue("hour",t),!this.computedFormat24h&&t<12&&!this.am&&(t+=12),this.model=new Date(this.model.setHours(t)))},setMinute:function(t){this.editable&&(this.model=new Date(this.model.setMinutes(this.__parseTypeValue("minute",t))))},setView:function(t){var e=this.__calcView(t);this.view!==e&&(this.view=e)},__calcView:function(t){switch(this.type){case"time":return t&&["hour","minute"].includes(t)?t:"hour";case"date":return t&&["year","month","day"].includes(t)?t:"day";default:return t&&["year","month","day","hour","minute"].includes(t)?t:"day"}},__pad:function(t,e){return(t<10?e||"0":"")+t},__scrollView:function(){if("year"===this.view||"month"===this.view){var t=this.$refs.selector,e="year"===this.view?this.year-this.yearInterval.min+1:this.month-this.monthMin;this.$nextTick(function(){t&&(t.scrollTop=e*height(t.children[0].children[0])-height(t)/2.5)})}},__dragStart:function(t,e){stopAndPrevent(t);var i=this.$refs.clock,s=offset(i);this.centerClockPos={top:s.top+height(i)/2,left:s.left+width(i)/2},this.dragging=!0,this.__updateClock(t,e)},__dragMove:function(t){this.dragging&&(stopAndPrevent(t),this.__updateClock(t))},__dragStop:function(t,e){stopAndPrevent(t),this.dragging=!1,void 0!==t&&this.__updateClock(t,e),"minute"===this.view?this.$emit("canClose"):this.view="minute"},__updateClock:function(t,e){if(void 0!==e)return this["hour"===this.view?"setHour":"setMinute"](e);var i=position(t),s=Math.abs(i.top-this.centerClockPos.top),n=Math.sqrt(Math.pow(Math.abs(i.top-this.centerClockPos.top),2)+Math.pow(Math.abs(i.left-this.centerClockPos.left),2)),o=Math.asin(s/n)*(180/Math.PI);if(o=i.top<this.centerClockPos.top?this.centerClockPos.left<i.left?90-o:270+o:this.centerClockPos.left<i.left?o+90:270-o,"hour"===this.view){var r=Math.round(o/30);this.computedFormat24h&&(r?n<85&&(r+=12):r=n<85?0:12),this.setHour(r)}else this.setMinute(Math.round(o/6))},__repeatTimeout:function(t){return Math.max(100,300-t*t*10)},__getTopSection:function(t){var e=this,i=[];if(this.typeHasDate){var s=[t("div",{staticClass:"q-datetime-weekdaystring col-12"},[this.weekDayString]),t("div",{staticClass:"q-datetime-datestring row flex-center"},[t("span",{staticClass:"q-datetime-link small col-auto col-md-12",class:{active:"month"===this.view},attrs:{tabindex:0},on:{keydown:function(t){var i=getEventKey(t);40===i||37===i?(stopAndPrevent(t),e.setMonth(e.month-1,!0)):38!==i&&39!==i||(stopAndPrevent(t),e.setMonth(e.month+1,!0))}}},[t("span",{attrs:{tabindex:-1},on:this.disable?{}:{click:function(){e.view="month"}}},[this.monthString])]),t("span",{staticClass:"q-datetime-link col-auto col-md-12",class:{active:"day"===this.view},attrs:{tabindex:0},on:{keydown:function(t){var i=getEventKey(t);37===i||38===i?(stopAndPrevent(t),e.setDay(e.day-(37===i?1:7),!0)):39!==i&&40!==i||(stopAndPrevent(t),e.setDay(e.day+(39===i?1:7),!0))}}},[t("span",{attrs:{tabindex:-1},on:this.disable?{}:{click:function(){e.view="day"}}},[this.day])]),t("span",{staticClass:"q-datetime-link small col-auto col-md-12",class:{active:"year"===this.view},attrs:{tabindex:0},on:{keydown:function(t){var i=getEventKey(t);40===i||37===i?(stopAndPrevent(t),e.setYear(e.year-1,!0)):38!==i&&39!==i||(stopAndPrevent(t),e.setYear(e.year+1,!0))}}},[t("span",{attrs:{tabindex:-1},on:this.disable?{}:{click:function(){e.view="year"}}},[this.year])])])];i.push(t("div",s))}if(this.typeHasTime){var n=[t("span",{staticClass:"q-datetime-link col-md q-pr-sm",style:{textAlign:"right"},class:{active:"hour"===this.view},attrs:{tabindex:0},on:{keydown:function(t){var i=getEventKey(t);40===i||37===i?(stopAndPrevent(t),e.setHour(e.hour-1,!0)):38!==i&&39!==i||(stopAndPrevent(t),e.setHour(e.hour+1,!0))}}},[t("span",{attrs:{tabindex:-1},on:this.disable?{}:{click:function(){e.view="hour"}}},[this.computedFormat24h?this.__pad(this.hour):this.hour])]),t("span",{style:"opacity:0.6;"},[":"]),t("span",{staticClass:"q-datetime-link col-md q-pl-sm",style:{textAlign:"left"},class:{active:"minute"===this.view},attrs:{tabindex:0},on:{keydown:function(t){var i=getEventKey(t);40===i||37===i?(stopAndPrevent(t),e.setMinute(e.minute-1,!0)):38!==i&&39!==i||(stopAndPrevent(t),e.setMinute(e.minute+1,!0))}}},[t("span",{attrs:{tabindex:-1},on:this.disable?{}:{click:function(){e.view="minute"}}},[this.__pad(this.minute)])])];i.push(t("div",{staticClass:"q-datetime-time row flex-center"},[t("div",{staticClass:"q-datetime-clockstring col-auto col-md-12 row no-wrap flex-center"},n),!this.computedFormat24h&&t("div",{staticClass:"q-datetime-ampm column col-auto col-md-12 justify-around",attrs:{tabindex:0},on:this.__amPmEvents},[t("div",{staticClass:"q-datetime-link",class:{active:this.am}},[t("span",{attrs:{tabindex:-1},on:{click:this.toggleAmPm}},["AM"])]),t("div",{staticClass:"q-datetime-link",class:{active:!this.am}},[t("span",{attrs:{tabindex:-1},on:{click:this.toggleAmPm}},["PM"])])])]))}return t("div",{staticClass:"q-datetime-header column col-xs-12 col-md-4 justify-center"},i)},__getYearView:function(t){for(var e=this,i=[],s=function(s){i.push(t(QBtn,{key:"yi"+s,staticClass:"q-datetime-btn full-width",class:{active:s===e.year},attrs:{tabindex:-1},props:{flat:!0,disable:!e.editable},on:{click:function(){e.setYear(s)}}},[s]))},n=this.yearInterval.min;n<=this.yearInterval.max;n++)s(n);return t("div",{staticClass:"q-datetime-view-year full-width full-height"},i)},__getMonthView:function(t){for(var e=this,i=[],s=function(s){i.push(t(QBtn,{key:"mi"+s,staticClass:"q-datetime-btn full-width",class:{active:s+1===e.month},attrs:{tabindex:-1},props:{flat:!0,disable:!e.editable},on:{click:function(){e.setMonth(s+1,!0)}}},[e.$q.i18n.date.months[s]]))},n=this.monthInterval.min;n<=this.monthInterval.max;n++)s(n);return t("div",{staticClass:"q-datetime-view-month full-width full-height"},i)},__getDayView:function(t){for(var e=this,i=[],s=1;s<=this.fillerDays;s++)i.push(t("div",{key:"fd"+s,staticClass:"q-datetime-fillerday"}));if(this.min)for(var n=1;n<=this.beforeMinDays;n++)i.push(t("div",{key:"fb"+n,staticClass:"row items-center content-center justify-center disabled"},[n]));for(var o=this.dateInterval,r=o.min,a=o.max,l=function(s){i.push(t("div",{key:"md"+s,staticClass:"row items-center content-center justify-center cursor-pointer",class:[e.color&&s===e.day?"text-"+e.color:null,{"q-datetime-day-active":e.isValid&&s===e.day,"q-datetime-day-today":s===e.today,disabled:!e.editable}],on:{click:function(){e.setDay(s)}}},[t("span",[s])]))},c=r;c<=a;c++)l(c);if(this.max)for(var h=1;h<=this.afterMaxDays;h++)i.push(t("div",{key:"fa"+h,staticClass:"row items-center content-center justify-center disabled"},[h+e.maxDay]));return t("div",{staticClass:"q-datetime-view-day"},[t("div",{staticClass:"row items-center content-center"},[t(QBtn,{staticClass:"q-datetime-arrow",attrs:{tabindex:-1},props:{round:!0,dense:!0,flat:!0,icon:this.dateArrow[0],repeatTimeout:this.__repeatTimeout,disable:this.beforeMinDays>0||this.disable||this.readonly},on:{click:function(){e.setMonth(e.month-1)}}}),t("div",{staticClass:"col q-datetime-month-stamp"},[this.monthStamp]),t(QBtn,{staticClass:"q-datetime-arrow",attrs:{tabindex:-1},props:{round:!0,dense:!0,flat:!0,icon:this.dateArrow[1],repeatTimeout:this.__repeatTimeout,disable:this.afterMaxDays>0||this.disable||this.readonly},on:{click:function(){e.setMonth(e.month+1)}}})]),t("div",{staticClass:"q-datetime-weekdays row items-center justify-start"},this.headerDayNames.map(function(e){return t("div",{key:"dh"+e},[e])})),t("div",{staticClass:"q-datetime-days row wrap items-center justify-start content-center"},i)])},__getClockView:function(t){var e=this,i=[];if("hour"===this.view){var s,n,o="";this.computedFormat24h?(s=0,n=24,o=" fmt24"):(s=1,n=13);for(var r=function(s){i.push(t("div",{key:"hi"+s,staticClass:"q-datetime-clock-position"+o,class:["q-datetime-clock-pos-"+s,s===e.hour?"active":""],on:{"!mousedown":function(t){return e.__dragStart(t,s)},"!mouseup":function(t){return e.__dragStop(t,s)}}},[t("span",[s||"00"])]))},a=s;a<n;a++)r(a)}else for(var l=0;l<12;l++){var c=5*l;i.push(t("div",{key:"mi"+l,staticClass:"q-datetime-clock-position",class:["q-datetime-clock-pos-"+l,c===e.minute?"active":""]},[t("span",[c])]))}return t("div",{ref:"clock",key:"clock"+this.view,staticClass:"column items-center content-center justify-center"},[t("div",{staticClass:"q-datetime-clock cursor-pointer",on:{mousedown:this.__dragStart,mousemove:this.__dragMove,mouseup:this.__dragStop,touchstart:this.__dragStart,touchmove:this.__dragMove,touchend:this.__dragStop}},[t("div",{staticClass:"q-datetime-clock-circle full-width full-height"},[t("div",{staticClass:"q-datetime-clock-center"}),t("div",{staticClass:"q-datetime-clock-pointer",style:this.clockPointerStyle},[t("span")]),i])])])},__getViewSection:function(t){switch(this.view){case"year":return this.__getYearView(t);case"month":return this.__getMonthView(t);case"day":return this.__getDayView(t);case"hour":case"minute":return this.__getClockView(t)}}},created:function(){var t=this;this.__amPmEvents={keydown:function(e){var i=getEventKey(e);[13,32,37,38,39,40].includes(i)&&(stopAndPrevent(e),t.toggleAmPm())}}},mounted:function(){var t=this;this.$nextTick(function(){t.__scrollView()})},render:function(t){if(this.canRender)return t("div",{staticClass:"q-datetime row",class:this.classes},[!this.minimal&&this.__getTopSection(t)||void 0,t("div",{staticClass:"q-datetime-content col-xs-12 column",class:this.contentClasses},[t("div",{ref:"selector",staticClass:"q-datetime-selector auto row flex-center"},[this.__getViewSection(t)])].concat(this.$slots.default))])}},contentCss$1={maxWidth:"95vw",maxHeight:"98vh"},QDatetime={name:"QDatetime",mixins:[FrameMixin,DisplayModeMixin,CanRenderMixin],props:Object.assign({},input,inline),watch:{value:function(t){!this.disable&&this.isPopover&&(this.model=clone$1(t))}},data:function(){return{transition:null,model:null,focused:!1}},created:function(){this.model=clone$1(this.computedValue),this.isPopover||(this.transition="q-modal")},computed:{computedFormat:function(){return this.format?this.format:"date"===this.type?"YYYY/MM/DD":"time"===this.type?"HH:mm":"YYYY/MM/DD HH:mm:ss"},actualValue:function(){return this.displayValue?this.displayValue:isValid(this.value)&&this.canRender?formatDate(this.value,this.computedFormat,this.$q.i18n.date):""},computedValue:function(){return isValid(this.value)?this.value:this.defaultValue},computedClearValue:function(){return void 0===this.clearValue?this.defaultValue:this.clearValue},isClearable:function(){return this.editable&&this.clearable&&!isSameDate(this.computedClearValue,this.value)},modalBtnColor:function(){return this.color}},methods:{toggle:function(){this.$refs.popup&&this[this.$refs.popup.showing?"hide":"show"]()},show:function(){if(!this.disable)return this.__setModel(this.computedValue),this.$refs.popup.show()},hide:function(){return this.$refs.popup?this.$refs.popup.hide():Promise.resolve()},__handleKeyDown:function(t){switch(getEventKey(t)){case 13:case 32:return stopAndPrevent(t),this.show();case 8:this.isClearable&&this.clear()}},__onFocus:function(){if(!this.disable&&!this.focused){var t=this.$refs.target;t&&(this.defaultView?t.setView(this.defaultView):t.setView()),this.model=clone$1(this.computedValue),this.focused=!0,this.$emit("focus")}},__onBlur:function(t){var e=this;this.focused&&setTimeout(function(){var t=document.activeElement;e.$refs.popup&&e.$refs.popup.showing&&(t===document.body||e.$refs.popup.$el.contains(t))||(e.__onHide(),e.hide())},1)},__onHide:function(t,e){(t||this.isPopover)&&this.__update(t),this.focused&&(e?this.$el.focus():(this.$emit("blur"),this.focused=!1))},__setModel:function(t,e){this.model=clone$1(t),(e||this.isPopover)&&this.__update(e)},__update:function(t){var e=this;this.$nextTick(function(){isSameDate(e.model,e.value)||(e.$emit("input",e.model),t&&e.$emit("change",e.model))})},__resetView:function(){!this.defaultView&&this.$refs.target&&this.$refs.target.setView()},__getPicker:function(t,e){var i=this;return[t(QDatetimePicker,{ref:"target",staticClass:"no-border",class:{"datetime-ios-modal":!1},props:{type:this.type,min:this.min,max:this.max,headerLabel:this.headerLabel,minimal:this.minimal,formatModel:this.formatModel,format24h:this.format24h,firstDayOfWeek:this.firstDayOfWeek,defaultView:this.defaultView,color:this.invertedLight?"grey-7":this.color,dark:this.dark,value:this.model,disable:this.disable,readonly:this.readonly,noParentField:!0},on:{input:function(t){return i.$nextTick(function(){return i.__setModel(t)})},canClose:function(){i.isPopover&&(i.hide(),i.__resetView())}}},[e?t("div",{staticClass:"modal-buttons modal-buttons-top row full-width"},[t("div",{staticClass:"col"}),t(QBtn,{props:{color:this.modalBtnColor,flat:!0,label:this.cancelLabel||this.$q.i18n.label.cancel,noRipple:!0},on:{click:function(){i.__onHide(!1,!0),i.hide(),i.__resetView()}}}),this.editable?t(QBtn,{props:{color:this.modalBtnColor,flat:!0,label:this.okLabel||this.$q.i18n.label.set,noRipple:!0,disable:!this.model},on:{click:function(){i.__onHide(!0,!0),i.hide(),i.__resetView()}}}):null]):null])]}},render:function(t){var e=this;return t(QInputFrame,{staticClass:"q-datetime-input",props:{prefix:this.prefix,suffix:this.suffix,stackLabel:this.stackLabel,floatLabel:this.floatLabel,error:this.error,warning:this.warning,disable:this.disable,readonly:this.readonly,inverted:this.inverted,invertedLight:this.invertedLight,dark:this.dark,hideUnderline:this.hideUnderline,before:this.before,after:this.after,color:this.color,noParentField:this.noParentField,focused:this.focused||this.$refs.popup&&this.$refs.popup.showing,focusable:!0,length:this.actualValue.length},nativeOn:{click:this.toggle,focus:this.__onFocus,blur:this.__onBlur,keydown:this.__handleKeyDown}},[t("div",{staticClass:"col q-input-target ellipsis",class:this.fakeInputClasses},[this.fakeInputValue]),this.isPopover?t(QPopover,{ref:"popup",props:{cover:!0,disable:this.disable,anchorClick:!1,maxHeight:"100vh"},slot:"after",on:{show:this.__onFocus,hide:function(){return e.__onHide(!0,!0)}}},this.__getPicker(t)):t(QModal,{ref:"popup",staticClass:"with-backdrop q-datetime-modal",props:{contentCss:contentCss$1,minimized:!0,position:null,transition:this.transition},on:{dismiss:function(){return e.__onHide(!1,!0)}}},this.__getPicker(t,!0)),this.isClearable?t(QIcon,{slot:"after",props:{name:this.$q.icon.input["clear"+(this.isInverted?"Inverted":"")]},nativeOn:{click:this.clear},staticClass:"q-if-control"}):null,t(QIcon,{slot:"after",props:{name:this.$q.icon.input.dropdown},staticClass:"q-if-control"})])}},inputTypes=["text","textarea","email","search","tel","file","number","password","url","time","date"],QResizeObservable={name:"QResizeObservable",mixins:[CanRenderMixin],props:{debounce:{type:Number,default:100}},data:function(){return this.hasObserver?{}:{url:this.$q.platform.is.ie?null:"about:blank"}},methods:{onResize:function(){if(this.timer=null,this.$el&&this.$el.parentNode){var t=this.$el.parentNode,e={width:t.offsetWidth,height:t.offsetHeight};e.width===this.size.width&&e.height===this.size.height||(this.size=e,this.$emit("resize",this.size))}},trigger:function(t){!0===t||0===this.debounce?this.onResize():this.timer||(this.timer=setTimeout(this.onResize,this.debounce))}},render:function(t){var e=this;if(this.canRender&&!this.hasObserver)return t("object",{style:this.style,attrs:{type:"text/html",data:this.url,"aria-hidden":!0},on:{load:function(){e.$el.contentDocument.defaultView.addEventListener("resize",e.trigger,listenOpts.passive),e.trigger(!0)}}})},beforeCreate:function(){this.size={width:-1,height:-1},isSSR||(this.hasObserver="undefined"!=typeof ResizeObserver,this.hasObserver||(this.style=(this.$q.platform.is.ie?"visibility:hidden;":"")+"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;"))},mounted:function(){if(this.hasObserver)return this.observer=new ResizeObserver(this.trigger),void this.observer.observe(this.$el.parentNode);this.trigger(!0),this.$q.platform.is.ie&&(this.url="about:blank")},beforeDestroy:function(){clearTimeout(this.timer),this.hasObserver?this.$el.parentNode&&this.observer.unobserve(this.$el.parentNode):this.$el.contentDocument&&this.$el.contentDocument.defaultView.removeEventListener("resize",this.trigger,listenOpts.passive)}},QInput={name:"QInput",mixins:[FrameMixin,InputMixin],props:{value:{required:!0},type:{type:String,default:"text",validator:function(t){return inputTypes.includes(t)}},align:{type:String,validator:function(t){return["left","center","right"].includes(t)}},noPassToggle:Boolean,numericKeyboardToggle:Boolean,readonly:Boolean,decimals:Number,step:Number,upperCase:Boolean,lowerCase:Boolean},data:function(){var t=this;return{showPass:!1,showNumber:!0,model:this.value,watcher:null,autofilled:!1,shadow:{val:this.model,set:this.__set,setNav:this.__set,loading:!1,watched:0,isEditable:function(){return t.editable},isDark:function(){return t.dark},hasFocus:function(){return document.activeElement===t.$refs.input},register:function(){t.shadow.watched+=1,t.__watcherRegister()},unregister:function(){t.shadow.watched=Math.max(0,t.shadow.watched-1),t.__watcherUnregister()},getEl:function(){return t.$refs.input}}}},watch:{value:function(t){var e=parseFloat(this.model),i=parseFloat(t);(!this.isNumber||this.isNumberError||isNaN(e)||isNaN(i)||e!==i)&&(this.model=t),this.isNumberError=!1,this.isNegZero=!1},isTextarea:function(t){this[t?"__watcherRegister":"__watcherUnregister"]()},"$attrs.rows":function(){this.isTextarea&&this.__updateArea()}},provide:function(){return{__input:this.shadow}},computed:{isNumber:function(){return"number"===this.type},isPassword:function(){return"password"===this.type},isTextarea:function(){return"textarea"===this.type},isLoading:function(){return this.loading||this.shadow.watched&&this.shadow.loading},keyboardToggle:function(){return this.$q.platform.is.mobile&&this.isNumber&&this.numericKeyboardToggle},inputType:function(){return this.isPassword?this.showPass&&this.editable?"text":"password":this.isNumber?this.showNumber||!this.editable?"number":"text":this.type},inputClasses:function(){var t=[];return this.align&&t.push("text-"+this.align),this.autofilled&&t.push("q-input-autofill"),t},length:function(){return null!==this.model&&void 0!==this.model?(""+this.model).length:0},computedClearValue:function(){return this.isNumber&&0===this.clearValue?this.clearValue:this.clearValue||(this.isNumber?null:"")},computedStep:function(){return this.step||(this.decimals?Math.pow(10,-this.decimals):"any")},frameProps:function(){return{prefix:this.prefix,suffix:this.suffix,stackLabel:this.stackLabel,floatLabel:this.floatLabel,placeholder:this.placeholder,error:this.error,warning:this.warning,disable:this.disable,readonly:this.readonly,inverted:this.inverted,invertedLight:this.invertedLight,dark:this.dark,hideUnderline:this.hideUnderline,before:this.before,after:this.after,color:this.color,noParentField:this.noParentField,focused:this.focused,length:this.autofilled+this.length}}},methods:{togglePass:function(){this.showPass=!this.showPass,clearTimeout(this.timer),this.focus()},toggleNumber:function(){this.showNumber=!this.showNumber,clearTimeout(this.timer),this.focus()},__clearTimer:function(){var t=this;this.$nextTick(function(){return clearTimeout(t.timer)})},__onAnimationStart:function(t){if(0===t.animationName.indexOf("webkit-autofill-")){var e="webkit-autofill-on"===t.animationName;if(e!==this.autofilled)return t.value=this.autofilled=e,t.el=this,this.$emit("autofill",t)}},__setModel:function(t){clearTimeout(this.timer),this.focus(),this.__set(this.isNumber&&0===t?t:t||(this.isNumber?null:""),!0)},__set:function(t,e){var i=this,s=t&&t.target?t.target.value:t;if(this.isNumber){this.isNegZero=1/s==-1/0;var n=this.isNegZero?-0:s;if(this.model=s,s=parseFloat(s),isNaN(s)||this.isNegZero)return this.isNumberError=!0,void(e&&(this.$emit("input",n),this.$nextTick(function(){String(1/n)!==String(1/i.value)&&i.$emit("change",n)})));this.isNumberError=!1,Number.isInteger(this.decimals)&&(s=parseFloat(s.toFixed(this.decimals)))}else this.lowerCase?s=s.toLowerCase():this.upperCase&&(s=s.toUpperCase()),this.model=s;this.$emit("input",s),e&&this.$nextTick(function(){JSON.stringify(s)!==JSON.stringify(i.value)&&i.$emit("change",s)})},__updateArea:function(){var t=this.$refs.shadow,e=this.$refs.input;if(t&&e){var i=t.scrollHeight,s=between(i,t.offsetHeight,this.maxHeight||i);e.style.height=s+"px",e.style.overflowY=this.maxHeight&&s<i?"scroll":"hidden"}},__watcher:function(t){this.isTextarea&&this.__updateArea(),this.shadow.watched&&(this.shadow.val=t)},__watcherRegister:function(){this.watcher||(this.watcher=this.$watch("model",this.__watcher))},__watcherUnregister:function(t){this.watcher&&(t||!this.isTextarea&&!this.shadow.watched)&&(this.watcher(),this.watcher=null)},__getTextarea:function(t){var e=Object.assign({rows:1},this.$attrs);return t("div",{staticClass:"col row relative-position"},[t(QResizeObservable,{on:{resize:this.__updateArea}}),t("textarea",{ref:"shadow",staticClass:"col q-input-target q-input-shadow absolute-top",domProps:{value:this.model},attrs:e}),t("textarea",{ref:"input",staticClass:"col q-input-target q-input-area",attrs:Object.assign({},e,{placeholder:this.inputPlaceholder,disabled:this.disable,readonly:this.readonly}),domProps:{value:this.model},on:{input:this.__set,focus:this.__onFocus,blur:this.__onInputBlur,keydown:this.__onKeydown,keyup:this.__onKeyup,paste:this.__onPaste}})])},__getInput:function(t){return t("input",{ref:"input",staticClass:"col q-input-target q-no-input-spinner ellipsis",class:this.inputClasses,attrs:Object.assign({},this.$attrs,{type:this.inputType,placeholder:this.inputPlaceholder,disabled:this.disable,readonly:this.readonly,step:this.computedStep}),domProps:{value:this.model},on:{input:this.__set,focus:this.__onFocus,blur:this.__onInputBlur,keydown:this.__onKeydown,keyup:this.__onKeyup,paste:this.__onPaste,animationstart:this.__onAnimationStart}})}},mounted:function(){this.__updateArea=frameDebounce(this.__updateArea),this.isTextarea&&(this.__updateArea(),this.__watcherRegister())},beforeDestroy:function(){this.__watcherUnregister(!0)},render:function(t){return t(QInputFrame,{staticClass:"q-input",props:this.frameProps,on:{click:this.__onClick,focus:this.__onFocus,paste:this.__onPaste}},[].concat(this.$slots.before).concat([this.isTextarea?this.__getTextarea(t):this.__getInput(t),!this.disable&&this.isPassword&&!this.noPassToggle&&this.length&&t(QIcon,{slot:"after",staticClass:"q-if-control",props:{name:this.$q.icon.input[this.showPass?"showPass":"hidePass"]},nativeOn:{mousedown:this.__clearTimer,touchstart:this.__clearTimer,click:this.togglePass}})||void 0,this.editable&&this.keyboardToggle&&t(QIcon,{slot:"after",staticClass:"q-if-control",props:{name:this.$q.icon.input[this.showNumber?"showNumber":"hideNumber"]},nativeOn:{mousedown:this.__clearTimer,touchstart:this.__clearTimer,click:this.toggleNumber}})||void 0,this.isClearable&&t(QIcon,{slot:"after",staticClass:"q-if-control",props:{name:this.$q.icon.input["clear"+(this.isInverted?"Inverted":"")]},nativeOn:{mousedown:this.__clearTimer,touchstart:this.__clearTimer,click:this.clear}})||void 0,this.isLoading&&t(QSpinner,{slot:"after",staticClass:"q-if-control",props:{size:"24px"}})||void 0]).concat(this.$slots.after).concat(this.$slots.default?t("div",{staticClass:"absolute-full no-pointer-events",slot:"after"},this.$slots.default):void 0))}},QRadio={name:"QRadio",mixins:[OptionMixin],props:{val:{required:!0}},computed:{isTrue:function(){return this.value===this.val}},methods:{toggle:function(t,e){void 0===e&&(e=!0),this.disable||this.readonly||(t&&stopAndPrevent(t),e&&this.$el.blur(),this.isTrue||this.__update(this.val))},__getContent:function(t){return[t(QIcon,{staticClass:"q-radio-unchecked cursor-pointer absolute-full",props:{name:this.uncheckedIcon||this.$q.icon.radio.unchecked.mat}}),t(QIcon,{staticClass:"q-radio-checked cursor-pointer absolute-full",props:{name:this.checkedIcon||this.$q.icon.radio.checked.mat}}),t("div",{ref:"ripple",staticClass:"q-radial-ripple"})]}},beforeCreate:function(){this.__kebabTag="q-radio"}},QToggle={name:"QToggle",mixins:[CheckboxMixin,OptionMixin],props:{icon:String},computed:{currentIcon:function(){return(this.isTrue?this.checkedIcon:this.uncheckedIcon)||this.icon},iconColor:function(){return this.isTrue?"white":"dark"},baseClass:function(){}},methods:{__swipe:function(t){"left"===t.direction?this.isTrue&&this.toggle():"right"===t.direction&&this.isFalse&&this.toggle()},__getContent:function(t){return[t("div",{staticClass:"q-toggle-base",class:this.baseClass}),t("div",{staticClass:"q-toggle-handle row flex-center"},[this.currentIcon?t(QIcon,{staticClass:"q-toggle-icon",props:{name:this.currentIcon,color:this.iconColor}}):null,t("div",{ref:"ripple",staticClass:"q-radial-ripple"})])]}},beforeCreate:function(){this.__kebabTag="q-toggle"}},components={radio:QRadio,checkbox:QCheckbox,toggle:QToggle},QOptionGroup={name:"QOptionGroup",mixins:[ParentFieldMixin],props:{value:{required:!0},type:{default:"radio",validator:function(t){return["radio","checkbox","toggle"].includes(t)}},color:String,keepColor:Boolean,dark:Boolean,options:{type:Array,validator:function(t){return t.every(function(t){return"value"in t&&"label"in t})}},leftLabel:Boolean,inline:Boolean,disable:Boolean,readonly:Boolean},computed:{component:function(){return components[this.type]},model:function(){return Array.isArray(this.value)?this.value.slice():this.value},length:function(){return this.value?"radio"===this.type?1:this.value.length:0},__needsBorder:function(){return!0}},methods:{__onFocus:function(){this.$emit("focus")},__onBlur:function(){this.$emit("blur")},__update:function(t){var e=this;this.$emit("input",t),this.$nextTick(function(){JSON.stringify(t)!==JSON.stringify(e.value)&&e.$emit("change",t)})}},created:function(){var t=Array.isArray(this.value);"radio"===this.type?t&&console.error("q-option-group: model should not be array"):t||console.error("q-option-group: model should be array in your case")},render:function(t){var e=this;return t("div",{staticClass:"q-option-group group",class:{"q-option-group-inline-opts":this.inline}},this.options.map(function(i){return t("div",[t(e.component,{props:{value:e.value,val:i.value,readonly:e.readonly||i.readonly,disable:e.disable||i.disable,label:i.label,leftLabel:e.leftLabel||i.leftLabel,color:i.color||e.color,checkedIcon:i.checkedIcon,uncheckedIcon:i.uncheckedIcon,dark:i.dark||e.dark,keepColor:i.keepColor||e.keepColor},on:{input:e.__update,focus:e.__onFocus,blur:e.__onBlur}})])}))}},QDialog={name:"QDialog",props:{value:Boolean,title:String,message:String,prompt:Object,options:Object,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],stackButtons:Boolean,preventClose:Boolean,noBackdropDismiss:Boolean,noEscDismiss:Boolean,noRefocus:Boolean,position:String,color:{type:String,default:"primary"}},render:function(t){var e=this,i=[],s=this.$slots.title||this.title,n=this.$slots.message||this.message;return s&&i.push(t("div",{staticClass:"modal-header"},[s])),n&&i.push(t("div",{staticClass:"modal-body modal-message modal-scroll"},[n])),(this.hasForm||this.$slots.body)&&i.push(t("div",{staticClass:"modal-body modal-scroll"},this.hasForm?this.prompt?this.__getPrompt(t):this.__getOptions(t):[this.$slots.body])),this.$scopedSlots.buttons?i.push(t("div",{staticClass:"modal-buttons",class:this.buttonClass},[this.$scopedSlots.buttons({ok:this.__onOk,cancel:this.__onCancel})])):(this.ok||this.cancel)&&i.push(this.__getButtons(t)),t(QModal,{ref:"modal",props:{value:this.value,minimized:!0,noBackdropDismiss:this.noBackdropDismiss||this.preventClose,noEscDismiss:this.noEscDismiss||this.preventClose,noRefocus:this.noRefocus,position:this.position},on:{input:function(t){e.$emit("input",t)},show:function(){var t;(e.$emit("show"),e.$q.platform.is.desktop)&&((e.prompt||e.options)&&(t=e.prompt?e.$refs.modal.$el.getElementsByTagName("INPUT"):e.$refs.modal.$el.getElementsByClassName("q-option")).length?t[0].focus():(t=e.$refs.modal.$el.getElementsByClassName("q-btn")).length&&t[t.length-1].focus())},hide:function(){e.$emit("hide")},dismiss:function(){e.$emit("cancel")},"escape-key":function(){e.$emit("escape-key")}}},i)},computed:{hasForm:function(){return this.prompt||this.options},okLabel:function(){return!0===this.ok?this.$q.i18n.label.ok:this.ok},cancelLabel:function(){return!0===this.cancel?this.$q.i18n.label.cancel:this.cancel},buttonClass:function(){return this.stackButtons?"column":"row"},okProps:function(){return Object(this.ok)===this.ok?Object.assign({color:this.color,label:this.$q.i18n.label.ok,noRipple:!0},this.ok):{color:this.color,flat:!0,label:this.okLabel,noRipple:!0}},cancelProps:function(){return Object(this.cancel)===this.cancel?Object.assign({color:this.color,label:this.$q.i18n.label.cancel,noRipple:!0},this.cancel):{color:this.color,flat:!0,label:this.cancelLabel,noRipple:!0}}},methods:{show:function(){return this.$refs.modal.show()},hide:function(){var t=this;return this.$refs.modal?this.$refs.modal.hide().then(function(){return t.hasForm?clone(t.__getData()):void 0}):Promise.resolve()},__getPrompt:function(t){var e=this;return[t(QInput,{style:"margin-bottom: 10px",props:{value:this.prompt.model,type:this.prompt.type||"text",color:this.color,noPassToggle:!0},on:{input:function(t){e.prompt.model=t},keyup:function(t){13===getEventKey(t)&&e.__onOk()}}})]},__getOptions:function(t){var e=this;return[t(QOptionGroup,{props:{value:this.options.model,type:this.options.type,color:this.color,inline:this.options.inline,options:this.options.items},on:{change:function(t){e.options.model=t}}})]},__getButtons:function(t){var e=[];return this.cancel&&e.push(t(QBtn,{props:this.cancelProps,on:{click:this.__onCancel}})),this.ok&&e.push(t(QBtn,{props:this.okProps,on:{click:this.__onOk}})),t("div",{staticClass:"modal-buttons",class:this.buttonClass},e)},__onOk:function(){var t=this;return this.hide().then(function(e){t.$emit("ok",e)})},__onCancel:function(){var t=this;return this.hide().then(function(){t.$emit("cancel")})},__getData:function(){return this.prompt?this.prompt.model:this.options?this.options.model:void 0}}};function debounce(t,e,i){var s;function n(){for(var n=this,o=[],r=arguments.length;r--;)o[r]=arguments[r];clearTimeout(s),i&&!s&&t.apply(this,o),s=setTimeout(function(){s=null,i||t.apply(n,o)},e)}return void 0===e&&(e=250),n.cancel=function(){clearTimeout(s)},n}var QTooltip={name:"QTooltip",mixins:[ModelToggleMixin,CanRenderMixin],props:{anchor:{type:String,default:"top middle",validator:positionValidator},self:{type:String,default:"bottom middle",validator:positionValidator},offset:{type:Array,validator:offsetValidator},delay:{type:Number,default:0},maxHeight:String,disable:Boolean},watch:{$route:function(){this.hide()}},computed:{anchorOrigin:function(){return parsePosition(this.anchor)},selfOrigin:function(){return parsePosition(this.self)}},methods:{__show:function(){clearTimeout(this.timer),document.body.appendChild(this.$el),this.scrollTarget=getScrollTarget(this.anchorEl),this.scrollTarget.addEventListener("scroll",this.hide,listenOpts.passive),window.addEventListener("resize",this.__debouncedUpdatePosition,listenOpts.passive),this.$q.platform.is.mobile&&document.body.addEventListener("click",this.hide,!0),this.__updatePosition(),this.showPromise&&this.showPromiseResolve()},__hide:function(){this.__cleanup(),this.hidePromise&&this.hidePromiseResolve()},__cleanup:function(){clearTimeout(this.timer),this.scrollTarget.removeEventListener("scroll",this.hide,listenOpts.passive),window.removeEventListener("resize",this.__debouncedUpdatePosition,listenOpts.passive),this.$el.remove(),this.$q.platform.is.mobile&&document.body.removeEventListener("click",this.hide,!0)},__updatePosition:function(){setPosition({el:this.$el,animate:!0,offset:this.offset,anchorEl:this.anchorEl,anchorOrigin:this.anchorOrigin,selfOrigin:this.selfOrigin,maxHeight:this.maxHeight})},__delayShow:function(){clearTimeout(this.timer),this.timer=setTimeout(this.show,this.delay)},__delayHide:function(){clearTimeout(this.timer),this.hide()}},render:function(t){if(this.canRender)return t("div",{staticClass:"q-tooltip animate-popup"},[t("div",this.$slots.default)])},beforeMount:function(){var t=this;this.__debouncedUpdatePosition=debounce(function(){t.__updatePosition()},70)},mounted:function(){var t=this;this.$nextTick(function(){t.$el.offsetHeight,t.anchorEl=t.$el.parentNode,t.anchorEl.removeChild(t.$el),t.anchorEl.classList.contains("q-btn-inner")&&(t.anchorEl=t.anchorEl.parentNode),t.$q.platform.is.mobile?t.anchorEl.addEventListener("click",t.show):(t.anchorEl.addEventListener("mouseenter",t.__delayShow),t.anchorEl.addEventListener("focus",t.__delayShow),t.anchorEl.addEventListener("mouseleave",t.__delayHide),t.anchorEl.addEventListener("blur",t.__delayHide)),t.value&&t.show()})},beforeDestroy:function(){clearTimeout(this.timer),this.showing&&this.__cleanup(),this.anchorEl&&(this.$q.platform.is.mobile?this.anchorEl.removeEventListener("click",this.show):(this.anchorEl.removeEventListener("mouseenter",this.__delayShow),this.anchorEl.removeEventListener("focus",this.__delayShow),this.anchorEl.removeEventListener("mouseleave",this.__delayHide),this.anchorEl.removeEventListener("blur",this.__delayHide)))}};function run(t,e,i){e.handler?e.handler(t,i,i.caret):i.runCmd(e.cmd,e.param)}function getBtn(t,e,i,s,n){void 0===n&&(n=!1);var o=n||"toggle"===i.type&&(i.toggled?i.toggled(e):i.cmd&&e.caret.is(i.cmd,i.param)),r=[],a={click:function(t){s&&s(),run(t,i,e)}};if(i.tip&&e.$q.platform.is.desktop){var l=i.key?t("div",[t("small","(CTRL + "+String.fromCharCode(i.key)+")")]):null;r.push(t(QTooltip,{props:{delay:1e3}},[t("div",{domProps:{innerHTML:i.tip}}),l]))}return t(QBtn,{props:Object.assign({icon:i.icon,color:o?i.toggleColor||e.toolbarToggleColor:i.color||e.toolbarColor,textColor:o&&(e.toolbarFlat||e.toolbarOutline)?null:i.textColor||e.toolbarTextColor,label:i.label,disable:!!i.disable&&("function"!=typeof i.disable||i.disable(e))},e.buttonProps),on:a},r)}function getDropdown(t,e,i){var s,n,o=i.label,r=i.icon,a="no-icons"===i.list;function l(){h.componentInstance.hide()}"only-icons"===i.list?(n=i.options.map(function(i){var s=void 0===i.type&&e.caret.is(i.cmd,i.param);return s&&(o=i.tip,r=i.icon),getBtn(t,e,i,l,s)}),s=e.toolbarBackgroundClass,n=[t(QBtnGroup,{props:e.buttonProps,staticClass:"relative-position q-editor-toolbar-padding",style:{borderRadius:"0"}},n)]):(n=i.options.map(function(i){var s=!!i.disable&&i.disable(e),n=void 0===i.type&&e.caret.is(i.cmd,i.param);n&&(o=i.tip,r=i.icon);var c=i.htmlTip;return t(QItem,{props:{active:n,link:!s},class:{disabled:s},nativeOn:{click:function(t){s||(l(),e.$refs.content&&e.$refs.content.focus(),e.caret.restore(),run(t,i,e))}}},[a?"":t(QItemSide,{props:{icon:i.icon}}),t(QItemMain,{props:!c&&i.tip?{label:i.tip}:null,domProps:c?{innerHTML:i.htmlTip}:null})])}),s=[e.toolbarBackgroundClass,e.toolbarTextColor?"text-"+e.toolbarTextColor:""],n=[t(QList,{props:{separator:!0}},[n])]);var c=i.highlight&&o!==i.label,h=t(QBtnDropdown,{props:Object.assign({noCaps:!0,noWrap:!0,color:c?e.toolbarToggleColor:e.toolbarColor,textColor:c&&(e.toolbarFlat||e.toolbarOutline)?null:e.toolbarTextColor,label:i.fixedLabel?i.label:o,icon:i.fixedIcon?i.icon:r,contentClass:s},e.buttonProps)},n);return h}function getToolbar(t,e){if(e.caret)return e.buttons.map(function(i){return t(QBtnGroup,{props:e.buttonProps,staticClass:"items-center relative-position"},i.map(function(i){return"slot"===i.type?e.$slots[i.slot]:"dropdown"===i.type?getDropdown(t,e,i):getBtn(t,e,i)}))})}function getFonts(t,e,i,s){void 0===s&&(s={});var n=Object.keys(s);if(0===n.length)return{};var o={default_font:{cmd:"fontName",param:t,icon:i,tip:e}};return n.forEach(function(t){var e=s[t];o[t]={cmd:"fontName",param:e,icon:i,tip:e,htmlTip:'<font face="'+e+'">'+e+"</font>"}}),o}function getLinkEditor(t,e){if(e.caret){var i=e.toolbarColor||e.toolbarTextColor,s=e.editLinkUrl,n=function(){e.caret.restore(),s!==e.editLinkUrl&&document.execCommand("createLink",!1,""===s?" ":s),e.editLinkUrl=null};return[t("div",{staticClass:"q-mx-xs",class:"text-"+i},[e.$q.i18n.editor.url+": "]),t(QInput,{key:"qedt_btm_input",staticClass:"q-ma-none q-pa-none col q-editor-input",props:{value:s,color:i,autofocus:!0,hideUnderline:!0},on:{input:function(t){s=t},keydown:function(t){switch(getEventKey(t)){case 13:return n();case 27:e.caret.restore(),e.editLinkUrl=null}}}}),t(QBtnGroup,{key:"qedt_btm_grp",props:e.buttonProps},[t(QBtn,{key:"qedt_btm_rem",attrs:{tabindex:-1},props:Object.assign({label:e.$q.i18n.label.remove,noCaps:!0},e.buttonProps),on:{click:function(){e.caret.restore(),document.execCommand("unlink"),e.editLinkUrl=null}}}),t(QBtn,{key:"qedt_btm_upd",props:Object.assign({label:e.$q.i18n.label.update,noCaps:!0},e.buttonProps),on:{click:n}})])]}}function getBlockElement(t,e){if(e&&t===e)return null;var i=(window.getComputedStyle?window.getComputedStyle(t):t.currentStyle).display;return"block"===i||"table"===i?t:getBlockElement(t.parentNode)}function isChildOf(t,e){if(!t)return!1;for(;t=t.parentNode;){if(t===document.body)return!1;if(t===e)return!0}return!1}var urlRegex=/^https?:\/\//,Caret=function(t,e){this.el=t,this.vm=e},prototypeAccessors={selection:{configurable:!0},hasSelection:{configurable:!0},range:{configurable:!0},parent:{configurable:!0},blockParent:{configurable:!0}};prototypeAccessors.selection.get=function(){if(this.el){var t=document.getSelection();return isChildOf(t.anchorNode,this.el)&&isChildOf(t.focusNode,this.el)?t:void 0}},prototypeAccessors.hasSelection.get=function(){return this.selection?this.selection.toString().length>0:null},prototypeAccessors.range.get=function(){var t=this.selection;if(t)return t.rangeCount?t.getRangeAt(0):null},prototypeAccessors.parent.get=function(){var t=this.range;if(t){var e=t.startContainer;return e.nodeType===document.ELEMENT_NODE?e:e.parentNode}},prototypeAccessors.blockParent.get=function(){var t=this.parent;if(t)return getBlockElement(t,this.el)},Caret.prototype.save=function(t){void 0===t&&(t=this.range),this._range=t},Caret.prototype.restore=function(t){void 0===t&&(t=this._range);var e=document.createRange(),i=document.getSelection();t?(e.setStart(t.startContainer,t.startOffset),e.setEnd(t.endContainer,t.endOffset),i.removeAllRanges(),i.addRange(e)):(i.selectAllChildren(this.el),i.collapseToEnd())},Caret.prototype.hasParent=function(t,e){var i=e?this.parent:this.blockParent;return!!i&&i.nodeName.toLowerCase()===t.toLowerCase()},Caret.prototype.hasParents=function(t){var e=this.parent;return!!e&&t.includes(e.nodeName.toLowerCase())},Caret.prototype.is=function(t,e){switch(t){case"formatBlock":return"DIV"===e&&this.parent===this.el||this.hasParent(e,"PRE"===e);case"link":return this.hasParent("A",!0);case"fontSize":return document.queryCommandValue(t)===e;case"fontName":var i=document.queryCommandValue(t);return i==='"'+e+'"'||i===e;case"fullscreen":return this.vm.inFullscreen;case void 0:return!1;default:var s=document.queryCommandState(t);return e?s===e:s}},Caret.prototype.getParentAttribute=function(t){if(this.parent)return this.parent.getAttribute(t)},Caret.prototype.can=function(t){if("outdent"===t)return this.hasParents(["blockquote","li"]);if("indent"===t){var e=!!this.parent&&this.parent.nodeName.toLowerCase();if("blockquote"===e)return!1;if("li"===e){var i=this.parent.previousSibling;return i&&"li"===i.nodeName.toLowerCase()}return!1}},Caret.prototype.apply=function(t,e,i){if(void 0===i&&(i=function(){}),"formatBlock"===t)["BLOCKQUOTE","H1","H2","H3","H4","H5","H6","PRE"].includes(e)&&this.is(t,e)&&(t="outdent",e=null);else{if("print"===t){i();var s=window.open();return s.document.write("\n <!doctype html>\n <html>\n <head>\n <title>Print - "+document.title+"</title>\n </head>\n <body>\n <div>"+this.el.innerHTML+"</div>\n </body>\n </html>\n "),s.print(),void s.close()}if("link"===t){var n=this.getParentAttribute("href");if(n)this.vm.editLinkUrl=n;else{var o=this.selectWord(this.selection),r=o?o.toString():"";if(!r.length)return;this.vm.editLinkUrl=urlRegex.test(r)?r:"https://"+r,document.execCommand("createLink",!1,this.vm.editLinkUrl)}return this.range.selectNodeContents(this.parent),void this.save()}if("fullscreen"===t)return this.vm.toggleFullscreen(),void i()}document.execCommand(t,!1,e),i()},Caret.prototype.selectWord=function(t){if(!t.isCollapsed)return t;var e=document.createRange();e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset);var i=e.collapsed?["backward","forward"]:["forward","backward"];e.detach();var s=t.focusNode,n=t.focusOffset;return t.collapse(t.anchorNode,t.anchorOffset),t.modify("move",i[0],"character"),t.modify("move",i[1],"word"),t.extend(s,n),t.modify("extend",i[1],"character"),t.modify("extend",i[0],"word"),t},Object.defineProperties(Caret.prototype,prototypeAccessors);var toString=Object.prototype.toString,hasOwn=Object.prototype.hasOwnProperty,class2type={};function type(t){return null===t?String(t):class2type[toString.call(t)]||"object"}function isPlainObject(t){if(!t||"object"!==type(t))return!1;if(t.constructor&&!hasOwn.call(t,"constructor")&&!hasOwn.call(t.constructor.prototype,"isPrototypeOf"))return!1;var e;for(e in t);return void 0===e||hasOwn.call(t,e)}function extend(){var t,e,i,s,n,o,r=arguments,a=arguments[0]||{},l=1,c=arguments.length,h=!1;for("boolean"==typeof a&&(h=a,a=arguments[1]||{},l=2),Object(a)!==a&&"function"!==type(a)&&(a={}),c===l&&(a=this,l--);l<c;l++)if(null!==(t=r[l]))for(e in t)i=a[e],a!==(s=t[e])&&(h&&s&&(isPlainObject(s)||(n="array"===type(s)))?(n?(n=!1,o=i&&"array"===type(i)?i:[]):o=i&&isPlainObject(i)?i:{},a[e]=extend(h,o,s)):void 0!==s&&(a[e]=s));return a}"Boolean Number String Function Array Date RegExp Object".split(" ").forEach(function(t){class2type["[object "+t+"]"]=t.toLowerCase()});var QEditor={name:"QEditor",mixins:[FullscreenMixin],props:{value:{type:String,required:!0},readonly:Boolean,disable:Boolean,minHeight:{type:String,default:"10rem"},maxHeight:String,height:String,definitions:Object,fonts:Object,toolbar:{type:Array,validator:function(t){return 0===t.length||t.every(function(t){return t.length})},default:function(){return[["left","center","right","justify"],["bold","italic","underline","strike"],["undo","redo"]]}},toolbarColor:String,toolbarTextColor:String,toolbarToggleColor:{type:String,default:"primary"},toolbarBg:{type:String,default:"grey-3"},toolbarFlat:Boolean,toolbarOutline:Boolean,toolbarPush:Boolean,toolbarRounded:Boolean,contentStyle:Object,contentClass:[Object,Array,String]},computed:{editable:function(){return!this.readonly&&!this.disable},hasToolbar:function(){return this.toolbar&&this.toolbar.length>0},toolbarBackgroundClass:function(){if(this.toolbarBg)return"bg-"+this.toolbarBg},buttonProps:function(){return{outline:this.toolbarOutline,flat:this.toolbarFlat,push:this.toolbarPush,rounded:this.toolbarRounded,dense:!0,color:this.toolbarColor,disable:!this.editable}},buttonDef:function(){var t=this.$q.i18n.editor,e=this.$q.icon.editor;return{bold:{cmd:"bold",icon:e.bold,tip:t.bold,key:66},italic:{cmd:"italic",icon:e.italic,tip:t.italic,key:73},strike:{cmd:"strikeThrough",icon:e.strikethrough,tip:t.strikethrough,key:83},underline:{cmd:"underline",icon:e.underline,tip:t.underline,key:85},unordered:{cmd:"insertUnorderedList",icon:e.unorderedList,tip:t.unorderedList},ordered:{cmd:"insertOrderedList",icon:e.orderedList,tip:t.orderedList},subscript:{cmd:"subscript",icon:e.subscript,tip:t.subscript,htmlTip:"x<subscript>2</subscript>"},superscript:{cmd:"superscript",icon:e.superscript,tip:t.superscript,htmlTip:"x<superscript>2</superscript>"},link:{cmd:"link",icon:e.hyperlink,tip:t.hyperlink,key:76},fullscreen:{cmd:"fullscreen",icon:e.toggleFullscreen,tip:t.toggleFullscreen,key:70},quote:{cmd:"formatBlock",param:"BLOCKQUOTE",icon:e.quote,tip:t.quote,key:81},left:{cmd:"justifyLeft",icon:e.left,tip:t.left},center:{cmd:"justifyCenter",icon:e.center,tip:t.center},right:{cmd:"justifyRight",icon:e.right,tip:t.right},justify:{cmd:"justifyFull",icon:e.justify,tip:t.justify},print:{type:"no-state",cmd:"print",icon:e.print,tip:t.print,key:80},outdent:{type:"no-state",disable:function(t){return t.caret&&!t.caret.can("outdent")},cmd:"outdent",icon:e.outdent,tip:t.outdent},indent:{type:"no-state",disable:function(t){return t.caret&&!t.caret.can("indent")},cmd:"indent",icon:e.indent,tip:t.indent},removeFormat:{type:"no-state",cmd:"removeFormat",icon:e.removeFormat,tip:t.removeFormat},hr:{type:"no-state",cmd:"insertHorizontalRule",icon:e.hr,tip:t.hr},undo:{type:"no-state",cmd:"undo",icon:e.undo,tip:t.undo,key:90},redo:{type:"no-state",cmd:"redo",icon:e.redo,tip:t.redo,key:89},h1:{cmd:"formatBlock",param:"H1",icon:e.header,tip:t.header1,htmlTip:'<h1 class="q-ma-none">'+t.header1+"</h1>"},h2:{cmd:"formatBlock",param:"H2",icon:e.header,tip:t.header2,htmlTip:'<h2 class="q-ma-none">'+t.header2+"</h2>"},h3:{cmd:"formatBlock",param:"H3",icon:e.header,tip:t.header3,htmlTip:'<h3 class="q-ma-none">'+t.header3+"</h3>"},h4:{cmd:"formatBlock",param:"H4",icon:e.header,tip:t.header4,htmlTip:'<h4 class="q-ma-none">'+t.header4+"</h4>"},h5:{cmd:"formatBlock",param:"H5",icon:e.header,tip:t.header5,htmlTip:'<h5 class="q-ma-none">'+t.header5+"</h5>"},h6:{cmd:"formatBlock",param:"H6",icon:e.header,tip:t.header6,htmlTip:'<h6 class="q-ma-none">'+t.header6+"</h6>"},p:{cmd:"formatBlock",param:"DIV",icon:e.header,tip:t.paragraph},code:{cmd:"formatBlock",param:"PRE",icon:e.code,tip:"<code>"+t.code+"</code>"},"size-1":{cmd:"fontSize",param:"1",icon:e.size,tip:t.size1,htmlTip:'<font size="1">'+t.size1+"</font>"},"size-2":{cmd:"fontSize",param:"2",icon:e.size,tip:t.size2,htmlTip:'<font size="2">'+t.size2+"</font>"},"size-3":{cmd:"fontSize",param:"3",icon:e.size,tip:t.size3,htmlTip:'<font size="3">'+t.size3+"</font>"},"size-4":{cmd:"fontSize",param:"4",icon:e.size,tip:t.size4,htmlTip:'<font size="4">'+t.size4+"</font>"},"size-5":{cmd:"fontSize",param:"5",icon:e.size,tip:t.size5,htmlTip:'<font size="5">'+t.size5+"</font>"},"size-6":{cmd:"fontSize",param:"6",icon:e.size,tip:t.size6,htmlTip:'<font size="6">'+t.size6+"</font>"},"size-7":{cmd:"fontSize",param:"7",icon:e.size,tip:t.size7,htmlTip:'<font size="7">'+t.size7+"</font>"}}},buttons:function(){var t=this,e=this.definitions||{},i=this.definitions||this.fonts?extend(!0,{},this.buttonDef,e,getFonts(this.defaultFont,this.$q.i18n.editor.defaultFont,this.$q.icon.editor.font,this.fonts)):this.buttonDef;return this.toolbar.map(function(s){return s.map(function(s){if(s.options)return{type:"dropdown",icon:s.icon,label:s.label,fixedLabel:s.fixedLabel,fixedIcon:s.fixedIcon,highlight:s.highlight,list:s.list,options:s.options.map(function(t){return i[t]})};var n=i[s];return n?"no-state"===n.type||e[s]&&(void 0===n.cmd||t.buttonDef[n.cmd]&&"no-state"===t.buttonDef[n.cmd].type)?n:extend(!0,{type:"toggle"},n):{type:"slot",slot:s}})})},keys:function(){var t={},e=function(e){e.key&&(t[e.key]={cmd:e.cmd,param:e.param})};return this.buttons.forEach(function(t){t.forEach(function(t){t.options?t.options.forEach(e):e(t)})}),t},innerStyle:function(){return this.inFullscreen?this.contentStyle:[{minHeight:this.minHeight,height:this.height,maxHeight:this.maxHeight},this.contentStyle]},innerClass:function(){return[this.contentClass,{col:this.inFullscreen,"overflow-auto":this.inFullscreen||this.maxHeight}]}},data:function(){return{editWatcher:!0,editLinkUrl:null}},watch:{value:function(t){this.editWatcher?this.$refs.content.innerHTML=t:this.editWatcher=!0}},methods:{onInput:function(t){if(this.editWatcher){var e=this.$refs.content.innerHTML;e!==this.value&&(this.editWatcher=!1,this.$emit("input",e))}},onKeydown:function(t){var e=getEventKey(t);if(!t.ctrlKey)return this.refreshToolbar(),void(this.$q.platform.is.ie&&this.$nextTick(this.onInput));var i=this.keys[e];if(void 0!==i){var s=i.cmd,n=i.param;stopAndPrevent(t),this.runCmd(s,n,!1),this.$q.platform.is.ie&&this.$nextTick(this.onInput)}},runCmd:function(t,e,i){var s=this;void 0===i&&(i=!0),this.focus(),this.caret.apply(t,e,function(){s.focus(),i&&s.refreshToolbar()})},refreshToolbar:function(){var t=this;setTimeout(function(){t.editLinkUrl=null,t.$forceUpdate()},1)},focus:function(){this.$refs.content.focus()},getContentEl:function(){return this.$refs.content}},created:function(){isSSR||(document.execCommand("defaultParagraphSeparator",!1,"div"),this.defaultFont=window.getComputedStyle(document.body).fontFamily)},mounted:function(){var t=this;this.$nextTick(function(){t.$refs.content&&(t.caret=new Caret(t.$refs.content,t),t.$refs.content.innerHTML=t.value),t.$nextTick(t.refreshToolbar)})},render:function(t){var e,i=this;if(this.hasToolbar){var s={staticClass:"q-editor-toolbar row no-wrap scroll-x",class:[{"q-editor-toolbar-separator":!this.toolbarOutline&&!this.toolbarPush},this.toolbarBackgroundClass]};(e=[]).push(t("div",extend({key:"qedt_top"},s),[t("div",{staticClass:"row no-wrap q-editor-toolbar-padding fit items-center"},getToolbar(t,this))])),null!==this.editLinkUrl&&e.push(t("div",extend({key:"qedt_btm"},s),[t("div",{staticClass:"row no-wrap q-editor-toolbar-padding fit items-center"},getLinkEditor(t,this))])),e=t("div",e)}return t("div",{staticClass:"q-editor",style:{height:this.inFullscreen?"100vh":null},class:{disabled:this.disable,fullscreen:this.inFullscreen,column:this.inFullscreen}},[e,t("div",{ref:"content",staticClass:"q-editor-content",style:this.innerStyle,class:this.innerClass,attrs:{contenteditable:this.editable},domProps:isSSR?{innerHTML:this.value}:void 0,on:{input:this.onInput,keydown:this.onKeydown,click:this.refreshToolbar,blur:function(){i.caret.save()}}})])}},FabMixin={props:{outline:Boolean,push:Boolean,flat:Boolean,color:String,textColor:String,glossy:Boolean}},QFab={name:"QFab",mixins:[FabMixin,ModelToggleMixin],provide:function(){var t=this;return{__qFabClose:function(e){return t.hide(e).then(function(){return t.$refs.trigger&&t.$refs.trigger.$el&&t.$refs.trigger.$el.focus(),e})}}},props:{icon:String,activeIcon:String,direction:{type:String,default:"right"}},watch:{$route:function(){this.hide()}},created:function(){this.value&&this.show()},render:function(t){return t("div",{staticClass:"q-fab z-fab row inline justify-center",class:{"q-fab-opened":this.showing}},[t(QBtn,{ref:"trigger",props:{fab:!0,outline:this.outline,push:this.push,flat:this.flat,color:this.color,textColor:this.textColor,glossy:this.glossy},on:{click:this.toggle}},[this.$slots.tooltip,t(QIcon,{staticClass:"q-fab-icon absolute-full",props:{name:this.icon||this.$q.icon.fab.icon}}),t(QIcon,{staticClass:"q-fab-active-icon absolute-full",props:{name:this.activeIcon||this.$q.icon.fab.activeIcon}})]),t("div",{staticClass:"q-fab-actions flex no-wrap inline items-center",class:"q-fab-"+this.direction},this.$slots.default)])}},QFabAction={name:"QFabAction",mixins:[FabMixin],props:{icon:{type:String,required:!0}},inject:{__qFabClose:{default:function(){console.error("QFabAction needs to be child of QFab")}}},methods:{click:function(t){var e=this;this.__qFabClose().then(function(){e.$emit("click",t)})}},render:function(t){return t(QBtn,{props:{fabMini:!0,outline:this.outline,push:this.push,flat:this.flat,color:this.color,textColor:this.textColor,glossy:this.glossy,icon:this.icon},on:{click:this.click}},this.$slots.default)}},QField={name:"QField",mixins:[CanRenderMixin],props:{inset:{type:String,validator:function(t){return["icon","label","full"].includes(t)}},label:String,count:{type:[Number,Boolean],default:!1},error:Boolean,errorLabel:String,warning:Boolean,warningLabel:String,helper:String,icon:String,iconColor:String,dark:Boolean,orientation:{type:String,validator:function(t){return["vertical","horizontal"].includes(t)}},labelWidth:{type:[Number,String],default:5,validator:function(t){var e=parseInt(t,10);return e>0&&e<13}}},data:function(){return{input:{}}},computed:{hasError:function(){return this.input.error||this.error},hasWarning:function(){return!this.hasError&&(this.input.warning||this.warning)},childHasLabel:function(){return this.input.floatLabel||this.input.stackLabel},isDark:function(){return this.input.dark||this.dark},insetIcon:function(){return["icon","full"].includes(this.inset)},hasNoInput:function(){return this.canRender&&(!this.input.$options||this.input.__needsBorder)},counter:function(){if(this.count){var t=this.input.length||"0";return Number.isInteger(this.count)?t+" / "+this.count:t}},classes:function(){return{"q-field-responsive":!this.isVertical&&!this.isHorizontal,"q-field-vertical":this.isVertical,"q-field-horizontal":this.isHorizontal,"q-field-floating":this.childHasLabel,"q-field-no-label":!this.label&&!this.$slots.label,"q-field-with-error":this.hasError,"q-field-with-warning":this.hasWarning,"q-field-dark":this.isDark,"q-field-no-input":this.hasNoInput}},computedLabelWidth:function(){return parseInt(this.labelWidth,10)},isVertical:function(){return"vertical"===this.orientation||12===this.computedLabelWidth},isHorizontal:function(){return"horizontal"===this.orientation},labelClasses:function(){return this.isVertical?"col-12":this.isHorizontal?"col-"+this.labelWidth:"col-xs-12 col-sm-"+this.labelWidth},inputClasses:function(){return this.isVertical?"col-xs-12":this.isHorizontal?"col":"col-xs-12 col-sm"},iconProps:function(){var t={name:this.icon};return!this.iconColor||this.hasError||this.hasWarning||(t.color=this.iconColor),t},insetHasLabel:function(){return["label","full"].includes(this.inset)}},provide:function(){return{__field:this}},methods:{__registerInput:function(t){this.input=t},__unregisterInput:function(t){t&&t!==this.input||(this.input={})},__getBottomContent:function(t){var e;return this.hasError&&(e=this.$slots["error-label"]||this.errorLabel)?t("div",{staticClass:"q-field-error col"},e):this.hasWarning&&(e=this.$slots["warning-label"]||this.warningLabel)?t("div",{staticClass:"q-field-warning col"},e):(e=this.$slots.helper||this.helper)?t("div",{staticClass:"q-field-helper col"},e):t("div",{staticClass:"col"})},__hasBottom:function(){return this.hasError&&(this.$slots["error-label"]||this.errorLabel)||this.hasWarning&&(this.$slots["warning-label"]||this.warningLabel)||this.$slots.helper||this.helper||this.count}},render:function(t){var e=this.$slots.label||this.label;return t("div",{staticClass:"q-field row no-wrap items-start",class:this.classes},[this.icon?t(QIcon,{props:this.iconProps,staticClass:"q-field-icon q-field-margin"}):this.insetIcon?t("div",{staticClass:"q-field-icon"}):null,t("div",{staticClass:"row col"},[e||this.insetHasLabel?t("div",{staticClass:"q-field-label q-field-margin",class:this.labelClasses},[t("div",{staticClass:"q-field-label-inner row items-center"},[this.$slots.label||this.label])]):null,t("div",{staticClass:"q-field-content",class:this.inputClasses},[this.$slots.default,this.__hasBottom()?t("div",{staticClass:"q-field-bottom row no-wrap"},[this.__getBottomContent(t),this.counter?t("div",{staticClass:"q-field-counter col-auto"},[this.counter]):null]):null])])])}},QInfiniteScroll={name:"QInfiniteScroll",props:{handler:{type:Function,required:!0},inline:Boolean,offset:{type:Number,default:0}},data:function(){return{index:0,fetching:!1,working:!0}},methods:{poll:function(){if(!this.fetching&&this.working){var t=height(this.scrollContainer),e=offset(this.scrollContainer).top+t;offset(this.element).top+height(this.element)-(this.offset||t)<e&&this.loadMore()}},loadMore:function(){var t=this;!this.fetching&&this.working&&(this.index++,this.fetching=!0,this.handler(this.index,function(e){t.fetching=!1,e?t.stop():t.element.closest("body")&&t.poll()}))},reset:function(){this.index=0},resume:function(){this.working=!0,this.scrollContainer.addEventListener("scroll",this.poll,listenOpts.passive),this.immediatePoll()},stop:function(){this.working=!1,this.fetching=!1,this.scrollContainer.removeEventListener("scroll",this.poll,listenOpts.passive)}},mounted:function(){var t=this;this.$nextTick(function(){t.element=t.$refs.content,t.scrollContainer=t.inline?t.$el:getScrollTarget(t.$el),t.working&&t.scrollContainer.addEventListener("scroll",t.poll,listenOpts.passive),t.poll(),t.immediatePoll=t.poll,t.poll=debounce(t.poll,50)})},beforeDestroy:function(){this.scrollContainer.removeEventListener("scroll",this.poll,listenOpts.passive)},render:function(t){return t("div",{staticClass:"q-infinite-scroll"},[t("div",{ref:"content",staticClass:"q-infinite-scroll-content"},this.$slots.default),this.fetching?t("div",{staticClass:"q-infinite-scroll-message"},this.$slots.message):null])}},QInnerLoading={name:"QInnerLoading",props:{dark:Boolean,visible:Boolean,size:{type:[String,Number],default:42},color:String},render:function(t){if(this.visible)return t("div",{staticClass:"q-inner-loading animate-fade absolute-full column flex-center",class:{dark:this.dark}},this.$slots.default||[t(QSpinner,{props:{size:this.size,color:this.color}})])}},QJumbotron={name:"QJumbotron",props:{dark:Boolean,tag:{type:String,default:"div"},imgSrc:String,gradient:String},computed:{gradientType:function(){if(this.gradient)return this.gradient.indexOf("circle")>-1?"radial":"linear"},computedStyle:function(){return this.imgSrc?{"background-image":"url("+this.imgSrc+")"}:this.gradientType?{background:this.gradientType+"-gradient("+this.gradient+")"}:void 0}},render:function(t){return t(this.tag,{staticClass:"q-jumbotron",style:this.computedStyle,class:{"q-jumbotron-dark":this.dark}},this.$slots.default)}},QKnob={name:"QKnob",directives:{TouchPan:TouchPan},props:{value:Number,min:{type:Number,default:0},max:{type:Number,default:100},color:String,trackColor:{type:String,default:"grey-3"},lineWidth:{type:String,default:"6px"},size:{type:String,default:"100px"},step:{type:Number,default:1},decimals:Number,disable:Boolean,readonly:Boolean},computed:{classes:function(){var t=[];return this.disable&&t.push("disabled"),this.readonly||t.push("cursor-pointer"),this.color&&t.push("text-"+this.color),t},svgStyle:function(){return{"stroke-dasharray":"295.31px, 295.31px","stroke-dashoffset":295.31*(this.$q.i18n.rtl?-1:1)*(1-(this.model-this.min)/(this.max-this.min))+"px",transition:this.dragging?"":"stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease"}},editable:function(){return!this.disable&&!this.readonly},computedDecimals:function(){return void 0!==this.decimals?this.decimals||0:(String(this.step).trim("0").split(".")[1]||"").length},computedStep:function(){return void 0!==this.decimals?1/Math.pow(10,this.decimals||0):this.step}},data:function(){return{model:this.value,dragging:!1}},watch:{value:function(t){var e=this;if(t<this.min)this.model=this.min;else{if(!(t>this.max)){var i=this.computedDecimals&&"number"==typeof t?parseFloat(t.toFixed(this.computedDecimals)):t;return void(i!==this.model&&(this.model=i))}this.model=this.max}this.$emit("input",this.model),this.$nextTick(function(){e.model!==e.value&&e.$emit("change",e.model)})}},methods:{__pan:function(t){this.editable&&(t.isFinal?this.__dragStop(t.evt):t.isFirst?this.__dragStart(t.evt):this.__dragMove(t.evt))},__dragStart:function(t){this.editable&&(stopAndPrevent(t),this.centerPosition=this.__getCenter(),clearTimeout(this.timer),this.dragging=!0,this.__onInput(t))},__dragMove:function(t){this.dragging&&this.editable&&(stopAndPrevent(t),this.__onInput(t,this.centerPosition))},__dragStop:function(t){var e=this;this.editable&&(stopAndPrevent(t),this.timer=setTimeout(function(){e.dragging=!1},100),this.__onInput(t,this.centerPosition,!0))},__onKeyDown:function(t){var e=t.keyCode;if(this.editable&&[37,40,39,38].includes(e)){stopAndPrevent(t);var i=t.ctrlKey?10*this.computedStep:this.computedStep,s=[37,40].includes(e)?-i:i;this.__onInputValue(between(this.model+s,this.min,this.max))}},__onKeyUp:function(t){var e=t.keyCode;this.editable&&[37,40,39,38].includes(e)&&this.__emitChange()},__onInput:function(t,e,i){if(void 0===e&&(e=this.__getCenter()),this.editable){var s=position(t),n=Math.abs(s.top-e.top),o=Math.sqrt(Math.pow(Math.abs(s.top-e.top),2)+Math.pow(Math.abs(s.left-e.left),2)),r=Math.asin(n/o)*(180/Math.PI);r=s.top<e.top?e.left<s.left?90-r:270+r:e.left<s.left?r+90:270-r,this.$q.i18n.rtl&&(r=360-r);var a=this.min+r/360*(this.max-this.min),l=a%this.step,c=between(a-l+(Math.abs(l)>=this.step/2?(l<0?-1:1)*this.step:0),this.min,this.max);this.__onInputValue(c,i)}},__onInputValue:function(t,e){this.computedDecimals&&(t=parseFloat(t.toFixed(this.computedDecimals))),this.model!==t&&(this.model=t),this.$emit("drag-value",t),this.value!==t&&(this.$emit("input",t),e&&this.__emitChange(t))},__emitChange:function(t){var e=this;void 0===t&&(t=this.model),this.$nextTick(function(){JSON.stringify(t)!==JSON.stringify(e.value)&&e.$emit("change",t)})},__getCenter:function(){var t=offset(this.$el);return{top:t.top+height(this.$el)/2,left:t.left+width(this.$el)/2}}},render:function(t){var e=this;return t("div",{staticClass:"q-knob non-selectable",class:this.classes,style:{width:this.size,height:this.size}},[t("div",{on:{click:function(t){return!e.dragging&&e.__onInput(t,void 0,!0)}},directives:this.editable?[{name:"touch-pan",modifiers:{prevent:!0,stop:!0},value:this.__pan}]:null},[t("svg",{attrs:{viewBox:"0 0 100 100"}},[t("path",{attrs:{d:"M 50,50 m 0,-47 a 47,47 0 1 1 0,94 a 47,47 0 1 1 0,-94","fill-opacity":"0",stroke:"currentColor","stroke-width":this.lineWidth},class:"text-"+this.trackColor}),t("path",{attrs:{d:"M 50,50 m 0,-47 a 47,47 0 1 1 0,94 a 47,47 0 1 1 0,-94","fill-opacity":"0",stroke:"currentColor","stroke-linecap":"round","stroke-width":this.lineWidth},style:this.svgStyle})]),t("div",{staticClass:"q-knob-label row flex-center content-center",attrs:{tabindex:this.editable?0:-1},on:{keydown:this.__onKeyDown,keyup:this.__onKeyUp}},this.$slots.default||[t("span",[this.model])])])])}},QScrollObservable={name:"QScrollObservable",props:{debounce:Number},render:function(){},data:function(){return{pos:0,dir:"down",dirChanged:!1,dirChangePos:0}},methods:{getPosition:function(){return{position:this.pos,direction:this.dir,directionChanged:this.dirChanged,inflexionPosition:this.dirChangePos}},trigger:function(t){!0===t||0===this.debounce?this.emit():this.timer||(this.timer=this.debounce?setTimeout(this.emit,this.debounce):requestAnimationFrame(this.emit))},emit:function(){var t=Math.max(0,getScrollPosition(this.target)),e=t-this.pos<0?"up":"down";this.dirChanged=this.dir!==e,this.dirChanged&&(this.dir=e,this.dirChangePos=this.pos),this.timer=null,this.pos=t,this.$emit("scroll",this.getPosition())}},mounted:function(){this.target=getScrollTarget(this.$el.parentNode),this.target.addEventListener("scroll",this.trigger,listenOpts.passive),this.trigger(!0)},beforeDestroy:function(){clearTimeout(this.timer),cancelAnimationFrame(this.timer),this.target.removeEventListener("scroll",this.trigger,listenOpts.passive)}},QLayout={name:"QLayout",provide:function(){return{layout:this}},props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:function(t){return/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(t.toLowerCase())}}},data:function(){return{height:onSSR?0:window.innerHeight,width:onSSR||this.container?0:window.innerWidth,containerHeight:0,scrollbarWidth:onSSR?0:getScrollbarWidth(),header:{size:0,offset:0,space:!1},right:{size:300,offset:0,space:!1},footer:{size:0,offset:0,space:!1},left:{size:300,offset:0,space:!1},scroll:{position:0,direction:"down"}}},computed:{rows:function(){var t=this.view.toLowerCase().split(" ");return{top:t[0].split(""),middle:t[1].split(""),bottom:t[2].split("")}},targetStyle:function(){var t;if(0!==this.scrollbarWidth)return(t={})[this.$q.i18n.rtl?"left":"right"]=this.scrollbarWidth+"px",t},targetChildStyle:function(){var t;if(0!==this.scrollbarWidth)return(t={})[this.$q.i18n.rtl?"right":"left"]=0,t[this.$q.i18n.rtl?"left":"right"]="-"+this.scrollbarWidth+"px",t.width="calc(100% + "+this.scrollbarWidth+"px)",t}},created:function(){this.instances={header:null,right:null,footer:null,left:null}},render:function(t){var e=t("div",{staticClass:"q-layout"},[t(QScrollObservable,{on:{scroll:this.__onPageScroll}}),t(QResizeObservable,{on:{resize:this.__onPageResize}}),this.$slots.default]);return this.container?t("div",{staticClass:"q-layout-container relative-position overflow-hidden"},[t(QResizeObservable,{on:{resize:this.__onContainerResize}}),t("div",{staticClass:"absolute-full",style:this.targetStyle},[t("div",{staticClass:"overflow-auto",style:this.targetChildStyle},[e])])]):e},methods:{__animate:function(){var t=this;this.timer?clearTimeout(this.timer):document.body.classList.add("q-layout-animate"),this.timer=setTimeout(function(){document.body.classList.remove("q-layout-animate"),t.timer=null},150)},__onPageScroll:function(t){this.scroll=t,this.$emit("scroll",t)},__onPageResize:function(t){var e=t.height,i=t.width,s=!1;this.height!==e&&(s=!0,this.height=e,this.$emit("scrollHeight",e),this.__updateScrollbarWidth()),this.width!==i&&(s=!0,this.width=i),s&&this.$emit("resize",{height:e,width:i})},__onContainerResize:function(t){var e=t.height;this.containerHeight!==e&&(this.containerHeight=e,this.__updateScrollbarWidth())},__updateScrollbarWidth:function(){if(this.container){var t=this.height>this.containerHeight?getScrollbarWidth():0;this.scrollbarWidth!==t&&(this.scrollbarWidth=t)}}}},duration=150,QLayoutDrawer={name:"QLayoutDrawer",inject:{layout:{default:function(){console.error("QLayoutDrawer needs to be child of QLayout")}}},mixins:[ModelToggleMixin],directives:{TouchPan:TouchPan},props:{overlay:Boolean,side:{type:String,default:"left",validator:function(t){return["left","right"].includes(t)}},width:{type:Number,default:300},mini:Boolean,miniWidth:{type:Number,default:60},breakpoint:{type:Number,default:992},behavior:{type:String,validator:function(t){return["default","desktop","mobile"].includes(t)},default:"default"},showIfAbove:Boolean,contentStyle:Object,contentClass:[String,Object,Array],noHideOnRouteChange:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean},data:function(){var t=this.showIfAbove||void 0===this.value||this.value,e="mobile"!==this.behavior&&this.breakpoint<this.layout.width&&!this.overlay&&t;return void 0!==this.value&&this.value!==e&&this.$emit("input",e),{showing:e,belowBreakpoint:"mobile"===this.behavior||"desktop"!==this.behavior&&this.breakpoint>=this.layout.width,largeScreenState:t,mobileOpened:!1}},watch:{belowBreakpoint:function(t){this.mobileOpened||(t?(this.overlay||(this.largeScreenState=this.showing),this.hide(!1)):this.overlay||this[this.largeScreenState?"show":"hide"](!1))},side:function(t,e){this.layout[e].space=!1,this.layout[e].offset=0},behavior:function(t){this.__updateLocal("belowBreakpoint","mobile"===t||"desktop"!==t&&this.breakpoint>=this.layout.width)},breakpoint:function(t){this.__updateLocal("belowBreakpoint","mobile"===this.behavior||"desktop"!==this.behavior&&t>=this.layout.width)},"layout.width":function(t){this.__updateLocal("belowBreakpoint","mobile"===this.behavior||"desktop"!==this.behavior&&this.breakpoint>=t)},"layout.scrollbarWidth":function(){this.applyPosition(this.showing?0:void 0)},offset:function(t){this.__update("offset",t)},onLayout:function(t){this.$emit("on-layout",t),this.__update("space",t)},$route:function(){this.noHideOnRouteChange||(this.mobileOpened||this.onScreenOverlay)&&this.hide()},rightSide:function(){this.applyPosition()},size:function(t){this.applyPosition(),this.__update("size",t)},"$q.i18n.rtl":function(){this.applyPosition()},mini:function(){this.value&&this.layout.__animate()}},computed:{rightSide:function(){return"right"===this.side},offset:function(){return!this.showing||this.mobileOpened||this.overlay?0:this.size},size:function(){return this.isMini?this.miniWidth:this.width},fixed:function(){return this.overlay||this.layout.view.indexOf(this.rightSide?"R":"L")>-1},onLayout:function(){return this.showing&&!this.mobileView&&!this.overlay},onScreenOverlay:function(){return this.showing&&!this.mobileView&&this.overlay},backdropClass:function(){return{"no-pointer-events":!this.showing||!this.mobileView}},mobileView:function(){return this.belowBreakpoint||this.mobileOpened},headerSlot:function(){return!this.overlay&&(this.rightSide?"r"===this.layout.rows.top[2]:"l"===this.layout.rows.top[0])},footerSlot:function(){return!this.overlay&&(this.rightSide?"r"===this.layout.rows.bottom[2]:"l"===this.layout.rows.bottom[0])},belowClass:function(){return{fixed:!0,"on-top":!0,"q-layout-drawer-delimiter":this.fixed&&this.showing,"q-layout-drawer-mobile":!0,"top-padding":!0}},aboveClass:function(){return{fixed:this.fixed||!this.onLayout,"q-layout-drawer-mini":this.isMini,"q-layout-drawer-normal":!this.isMini,"q-layout-drawer-delimiter":this.fixed&&this.showing,"top-padding":this.headerSlot}},aboveStyle:function(){var t={};return this.layout.header.space&&!this.headerSlot&&(this.fixed?t.top=this.layout.header.offset+"px":this.layout.header.space&&(t.top=this.layout.header.size+"px")),this.layout.footer.space&&!this.footerSlot&&(this.fixed?t.bottom=this.layout.footer.offset+"px":this.layout.footer.space&&(t.bottom=this.layout.footer.size+"px")),t},computedStyle:function(){return[this.contentStyle,{width:this.size+"px"},this.mobileView?"":this.aboveStyle]},computedClass:function(){return["q-layout-drawer-"+this.side,this.layout.container?"overflow-auto":"scroll",this.contentClass,this.mobileView?this.belowClass:this.aboveClass]},stateDirection:function(){return(this.$q.i18n.rtl?-1:1)*(this.rightSide?1:-1)},isMini:function(){return this.mini&&!this.mobileView},onNativeEvents:function(){var t=this;if(!this.mobileView)return{"!click":function(e){t.$emit("click",e)},mouseover:function(e){t.$emit("mouseover",e)},mouseout:function(e){t.$emit("mouseout",e)}}}},methods:{applyPosition:function(t){var e=this;void 0===t?this.$nextTick(function(){t=e.showing?0:e.size,e.applyPosition(e.stateDirection*t)}):this.$refs.content&&(this.layout.container&&this.rightSide&&(this.mobileView||Math.abs(t)===this.size)&&(t+=this.stateDirection*this.layout.scrollbarWidth),css(this.$refs.content,cssTransform("translateX("+t+"px)")))},applyBackdrop:function(t){this.$refs.backdrop&&css(this.$refs.backdrop,{backgroundColor:"rgba(0,0,0,"+.4*t+")"})},__setScrollable:function(t){this.layout.container||document.body.classList[t?"add":"remove"]("q-body-drawer-toggle")},__openByTouch:function(t){if(this.belowBreakpoint){var e=this.size,i=between(t.distance.x,0,e);if(t.isFinal){var s=this.$refs.content,n=i>=Math.min(75,e);return s.classList.remove("no-transition"),void(n?this.show():(this.layout.__animate(),this.applyBackdrop(0),this.applyPosition(this.stateDirection*e),s.classList.remove("q-layout-drawer-delimiter")))}if(this.applyPosition((this.$q.i18n.rtl?!this.rightSide:this.rightSide)?Math.max(e-i,0):Math.min(0,i-e)),this.applyBackdrop(between(i/e,0,1)),t.isFirst){var o=this.$refs.content;o.classList.add("no-transition"),o.classList.add("q-layout-drawer-delimiter")}}},__closeByTouch:function(t){if(this.mobileOpened){var e=this.size,i=t.direction===this.side,s=(this.$q.i18n.rtl?!i:i)?between(t.distance.x,0,e):0;if(t.isFinal){var n=Math.abs(s)<Math.min(75,e);return this.$refs.content.classList.remove("no-transition"),void(n?(this.layout.__animate(),this.applyBackdrop(1),this.applyPosition(0)):this.hide())}this.applyPosition(this.stateDirection*s),this.applyBackdrop(between(1-s/e,0,1)),t.isFirst&&this.$refs.content.classList.add("no-transition")}},__show:function(t){var e=this;void 0===t&&(t=!0),t&&this.layout.__animate(),this.applyPosition(0);var i=this.layout.instances[this.rightSide?"left":"right"];i&&i.mobileOpened&&i.hide(),this.belowBreakpoint?(this.mobileOpened=!0,this.applyBackdrop(1),this.layout.container||(this.preventedScroll=!0,preventScroll(!0))):(console.log("set scrollable"),this.__setScrollable(!0)),clearTimeout(this.timer),this.timer=setTimeout(function(){e.showPromise&&(e.showPromise.then(function(){e.__setScrollable(!1)}),e.showPromiseResolve())},duration)},__hide:function(t){var e=this;void 0===t&&(t=!0),t&&this.layout.__animate(),this.mobileOpened&&(this.mobileOpened=!1),this.applyPosition(this.stateDirection*this.size),this.applyBackdrop(0),this.__cleanup(),clearTimeout(this.timer),this.timer=setTimeout(function(){e.hidePromise&&e.hidePromiseResolve()},duration)},__cleanup:function(){this.preventedScroll&&(this.preventedScroll=!1,preventScroll(!1)),this.__setScrollable(!1)},__update:function(t,e){this.layout[this.side][t]!==e&&(this.layout[this.side][t]=e)},__updateLocal:function(t,e){this[t]!==e&&(this[t]=e)}},created:function(){this.layout.instances[this.side]=this,this.__update("size",this.size),this.__update("space",this.onLayout),this.__update("offset",this.offset)},mounted:function(){this.applyPosition(this.showing?0:void 0)},beforeDestroy:function(){clearTimeout(this.timer),this.showing&&this.__cleanup(),this.layout.instances[this.side]===this&&(this.layout.instances[this.side]=null,this.__update("size",0),this.__update("offset",0),this.__update("space",!1))},render:function(t){return t("div",{staticClass:"q-drawer-container"},[this.mobileView&&!this.noSwipeOpen?t("div",{staticClass:"q-layout-drawer-opener fixed-"+this.side,directives:[{name:"touch-pan",modifiers:{horizontal:!0},value:this.__openByTouch}]}):null,t("div",{ref:"backdrop",staticClass:"fullscreen q-layout-backdrop q-layout-transition",class:this.backdropClass,on:{click:this.hide},directives:[{name:"touch-pan",modifiers:{horizontal:!0},value:this.__closeByTouch}]})].concat([t("aside",{ref:"content",staticClass:"q-layout-drawer q-layout-transition",class:this.computedClass,style:this.computedStyle,attrs:this.$attrs,on:this.onNativeEvents,directives:this.mobileView&&!this.noSwipeClose?[{name:"touch-pan",modifiers:{horizontal:!0},value:this.__closeByTouch}]:null},this.isMini&&this.$slots.mini?[this.$slots.mini]:this.$slots.default)]))}},QWindowResizeObservable={name:"QWindowResizeObservable",props:{debounce:{type:Number,default:80}},render:function(){},methods:{trigger:function(){0===this.debounce?this.emit():this.timer||(this.timer=setTimeout(this.emit,this.debounce))},emit:function(t){this.timer=null,this.$emit("resize",{height:t?0:window.innerHeight,width:t?0:window.innerWidth})}},created:function(){this.emit(onSSR)},mounted:function(){fromSSR&&this.emit(),window.addEventListener("resize",this.trigger,listenOpts.passive)},beforeDestroy:function(){clearTimeout(this.timer),window.removeEventListener("resize",this.trigger,listenOpts.passive)}},QLayoutFooter={name:"QLayoutFooter",mixins:[CanRenderMixin],inject:{layout:{default:function(){console.error("QLayoutFooter needs to be child of QLayout")}}},props:{value:{type:Boolean,default:!0},reveal:Boolean},data:function(){return{size:0,revealed:!0,windowHeight:onSSR||this.layout.container?0:window.innerHeight}},watch:{value:function(t){this.__update("space",t),this.__updateLocal("revealed",!0),this.layout.__animate()},offset:function(t){this.__update("offset",t)},reveal:function(t){t||this.__updateLocal("revealed",this.value)},revealed:function(t){this.layout.__animate(),this.$emit("reveal",t)},"layout.scroll":function(){this.__updateRevealed()},"layout.height":function(){this.__updateRevealed()},size:function(){this.__updateRevealed()}},computed:{fixed:function(){return this.reveal||this.layout.view.indexOf("F")>-1||this.layout.container},containerHeight:function(){return this.layout.container?this.layout.containerHeight:this.windowHeight},offset:function(){if(!this.canRender||!this.value)return 0;if(this.fixed)return this.revealed?this.size:0;var t=this.layout.scroll.position+this.containerHeight+this.size-this.layout.height;return t>0?t:0},computedClass:function(){return{"fixed-bottom":this.fixed,"absolute-bottom":!this.fixed,hidden:!this.value&&!this.fixed,"q-layout-footer-hidden":!this.canRender||!this.value||this.fixed&&!this.revealed}},computedStyle:function(){var t=this.layout.rows.bottom,e={};return"l"===t[0]&&this.layout.left.space&&(e[this.$q.i18n.rtl?"right":"left"]=this.layout.left.size+"px"),"r"===t[2]&&this.layout.right.space&&(e[this.$q.i18n.rtl?"left":"right"]=this.layout.right.size+"px"),e}},render:function(t){return t("footer",{staticClass:"q-layout-footer q-layout-marginal q-layout-transition",class:this.computedClass,style:this.computedStyle},[t(QResizeObservable,{props:{debounce:0},on:{resize:this.__onResize}}),!this.layout.container&&t(QWindowResizeObservable,{props:{debounce:0},on:{resize:this.__onWindowResize}})||void 0,this.$slots.default])},created:function(){this.layout.instances.footer=this,this.__update("space",this.value),this.__update("offset",this.offset)},beforeDestroy:function(){this.layout.instances.footer===this&&(this.layout.instances.footer=null,this.__update("size",0),this.__update("offset",0),this.__update("space",!1))},methods:{__onResize:function(t){var e=t.height;this.__updateLocal("size",e),this.__update("size",e)},__onWindowResize:function(t){var e=t.height;this.__updateLocal("windowHeight",e)},__update:function(t,e){this.layout.footer[t]!==e&&(this.layout.footer[t]=e)},__updateLocal:function(t,e){this[t]!==e&&(this[t]=e)},__updateRevealed:function(){if(this.reveal){var t=this.layout.scroll,e=t.direction,i=t.position,s=t.inflexionPosition;this.__updateLocal("revealed","up"===e||i-s<100||this.layout.height-this.containerHeight-i-this.size<300)}}}},QLayoutHeader={name:"QLayoutHeader",mixins:[CanRenderMixin],inject:{layout:{default:function(){console.error("QLayoutHeader needs to be child of QLayout")}}},props:{value:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250}},data:function(){return{size:0,revealed:!0}},watch:{value:function(t){this.__update("space",t),this.__updateLocal("revealed",!0),this.layout.__animate()},offset:function(t){this.__update("offset",t)},reveal:function(t){t||this.__updateLocal("revealed",this.value)},revealed:function(t){this.layout.__animate(),this.$emit("reveal",t)},"layout.scroll":function(t){this.reveal&&this.__updateLocal("revealed","up"===t.direction||t.position<=this.revealOffset||t.position-t.inflexionPosition<100)}},computed:{fixed:function(){return this.reveal||this.layout.view.indexOf("H")>-1||this.layout.container},offset:function(){if(!this.canRender||!this.value)return 0;if(this.fixed)return this.revealed?this.size:0;var t=this.size-this.layout.scroll.position;return t>0?t:0},computedClass:function(){return{"fixed-top":this.fixed,"absolute-top":!this.fixed,"q-layout-header-hidden":!this.canRender||!this.value||this.fixed&&!this.revealed}},computedStyle:function(){var t=this.layout.rows.top,e={};return"l"===t[0]&&this.layout.left.space&&(e[this.$q.i18n.rtl?"right":"left"]=this.layout.left.size+"px"),"r"===t[2]&&this.layout.right.space&&(e[this.$q.i18n.rtl?"left":"right"]=this.layout.right.size+"px"),e}},render:function(t){return t("header",{staticClass:"q-layout-header q-layout-marginal q-layout-transition",class:this.computedClass,style:this.computedStyle},[t(QResizeObservable,{props:{debounce:0},on:{resize:this.__onResize}}),this.$slots.default])},created:function(){this.layout.instances.header=this,this.__update("space",this.value),this.__update("offset",this.offset)},beforeDestroy:function(){this.layout.instances.header===this&&(this.layout.instances.header=null,this.__update("size",0),this.__update("offset",0),this.__update("space",!1))},methods:{__onResize:function(t){var e=t.height;this.__updateLocal("size",e),this.__update("size",e)},__update:function(t,e){this.layout.header[t]!==e&&(this.layout.header[t]=e)},__updateLocal:function(t,e){this[t]!==e&&(this[t]=e)}}},QPage={name:"QPage",inject:{pageContainer:{default:function(){console.error("QPage needs to be child of QPageContainer")}},layout:{}},props:{padding:Boolean,styleFn:Function},computed:{style:function(){var t=(this.layout.header.space?this.layout.header.size:0)+(this.layout.footer.space?this.layout.footer.size:0);return"function"==typeof this.styleFn?this.styleFn(t):{minHeight:this.layout.container?this.layout.containerHeight-t+"px":t?"calc(100vh - "+t+"px)":"100vh"}},classes:function(){if(this.padding)return"layout-padding"}},render:function(t){return t("main",{staticClass:"q-layout-page",style:this.style,class:this.classes},this.$slots.default)}},QPageContainer={name:"QPageContainer",inject:{layout:{default:function(){console.error("QPageContainer needs to be child of QLayout")}}},provide:{pageContainer:!0},computed:{style:function(){var t={};return this.layout.header.space&&(t.paddingTop=this.layout.header.size+"px"),this.layout.right.space&&(t["padding"+(this.$q.i18n.rtl?"Left":"Right")]=this.layout.right.size+"px"),this.layout.footer.space&&(t.paddingBottom=this.layout.footer.size+"px"),this.layout.left.space&&(t["padding"+(this.$q.i18n.rtl?"Right":"Left")]=this.layout.left.size+"px"),t}},render:function(t){return t("div",{staticClass:"q-layout-page-container q-layout-transition",style:this.style},this.$slots.default)}},QPageSticky={name:"QPageSticky",inject:{layout:{default:function(){console.error("QPageSticky needs to be child of QLayout")}}},props:{position:{type:String,default:"bottom-right",validator:function(t){return["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(t)}},offset:{type:Array,validator:function(t){return 2===t.length}},expand:Boolean},computed:{attach:function(){var t=this.position;return{top:t.indexOf("top")>-1,right:t.indexOf("right")>-1,bottom:t.indexOf("bottom")>-1,left:t.indexOf("left")>-1,vertical:"top"===t||"bottom"===t,horizontal:"left"===t||"right"===t}},top:function(){return this.layout.header.offset},right:function(){return this.layout.right.offset},bottom:function(){return this.layout.footer.offset},left:function(){return this.layout.left.offset},computedStyle:function(){var t=this.attach,e=[],i=this.$q.i18n.rtl?-1:1;t.top&&this.top?e.push("translateY("+this.top+"px)"):t.bottom&&this.bottom&&e.push("translateY("+-this.bottom+"px)"),t.left&&this.left?e.push("translateX("+i*this.left+"px)"):t.right&&this.right&&e.push("translateX("+-i*this.right+"px)");var s=e.length?cssTransform(e.join(" ")):{};return this.offset&&(s.margin=this.offset[1]+"px "+this.offset[0]+"px"),t.vertical?(this.left&&(s[this.$q.i18n.rtl?"right":"left"]=this.left+"px"),this.right&&(s[this.$q.i18n.rtl?"left":"right"]=this.right+"px")):t.horizontal&&(this.top&&(s.top=this.top+"px"),this.bottom&&(s.bottom=this.bottom+"px")),s},classes:function(){return["fixed-"+this.position,"q-page-sticky-"+(this.expand?"expand":"shrink")]}},render:function(t){return t("div",{staticClass:"q-page-sticky q-layout-transition row flex-center",class:this.classes,style:this.computedStyle},this.expand?this.$slots.default:[t("span",this.$slots.default)])}},QListHeader={name:"QListHeader",props:{inset:Boolean},render:function(t){return t("div",{staticClass:"q-list-header",class:{"q-list-header-inset":this.inset}},this.$slots.default)}},QModalLayout={name:"QModalLayout",inject:{__qmodal:{default:function(){console.error("QModalLayout needs to be child of QModal")}}},props:{headerStyle:[String,Object,Array],headerClass:[String,Object,Array],contentStyle:[String,Object,Array],contentClass:[String,Object,Array],footerStyle:[String,Object,Array],footerClass:[String,Object,Array]},watch:{__qmodal:function(t,e){e&&e.unregister(this),t&&t.register(this)}},mounted:function(){this.__qmodal&&this.__qmodal.register(this)},beforeDestroy:function(){this.__qmodal&&this.__qmodal.unregister(this)},render:function(t){var e=[];return(this.$slots.header||this.$slots.navigation)&&e.push(t("div",{staticClass:"q-layout-header",style:this.headerStyle,class:this.headerClass},[this.$slots.header,this.$slots.navigation])),e.push(t("div",{staticClass:"q-modal-layout-content col scroll",style:this.contentStyle,class:this.contentClass},this.$slots.default)),this.$slots.footer&&e.push(t("div",{staticClass:"q-layout-footer",style:this.footerStyle,class:this.footerClass},[this.$slots.footer,null])),t("div",{staticClass:"q-modal-layout col column no-wrap"},e)}},QNoSsr={name:"QNoSsr",mixins:[CanRenderMixin],props:{tag:{type:String,default:"div"},placeholder:String},render:function(t){if(this.canRender){var e=this.$slots.default;return e&&e.length>1?t(this.tag,e):e?e[0]:null}if(this.$slots.placeholder){var i=this.$slots.placeholder;return i&&i.length>1?t(this.tag,{staticClass:"q-no-ssr-placeholder"},i):i?i[0]:null}if(this.placeholder)return t(this.tag,{staticClass:"q-no-ssr-placeholder"},[this.placeholder])}},QPagination={name:"QPagination",props:{value:{type:Number,required:!0},min:{type:Number,default:1},max:{type:Number,required:!0},color:{type:String,default:"primary"},textColor:String,size:String,disable:Boolean,input:Boolean,boundaryLinks:{type:Boolean,default:null},boundaryNumbers:{type:Boolean,default:null},directionLinks:{type:Boolean,default:null},ellipses:{type:Boolean,default:null},maxPages:{type:Number,default:0,validator:function(t){return!(t<0)||(console.error("maxPages should not be negative"),!1)}}},data:function(){return{newPage:null}},watch:{min:function(t){this.model=this.value},max:function(t){this.model=this.value}},computed:{model:{get:function(){return this.value},set:function(t){var e=this;if(!this.disable&&t&&!isNaN(t)){var i=between(parseInt(t,10),this.min,this.max);this.$emit("input",i),this.$nextTick(function(){JSON.stringify(i)!==JSON.stringify(e.value)&&e.$emit("change",i)})}}},inputPlaceholder:function(){return this.model+" / "+this.max},__boundaryLinks:function(){return this.__getBool(this.boundaryLinks,this.input)},__boundaryNumbers:function(){return this.__getBool(this.boundaryNumbers,!this.input)},__directionLinks:function(){return this.__getBool(this.directionLinks,this.input)},__ellipses:function(){return this.__getBool(this.ellipses,!this.input)},icons:function(){var t=[this.$q.icon.pagination.first,this.$q.icon.pagination.prev,this.$q.icon.pagination.next,this.$q.icon.pagination.last];return this.$q.i18n.rtl?t.reverse():t}},methods:{set:function(t){this.model=t},setByOffset:function(t){this.model=this.model+t},__update:function(){this.model=this.newPage,this.newPage=null},__getBool:function(t,e){return[!0,!1].includes(t)?t:e},__getBtn:function(t,e,i){return e.props=Object.assign({color:this.color,flat:!0,size:this.size},i),t(QBtn,e)}},render:function(t){var e=this,i=[],s=[],n=[];if(this.__boundaryLinks&&(i.push(this.__getBtn(t,{key:"bls",on:{click:function(){return e.set(e.min)}}},{disable:this.disable||this.value<=this.min,icon:this.icons[0]})),s.unshift(this.__getBtn(t,{key:"ble",on:{click:function(){return e.set(e.max)}}},{disable:this.disable||this.value>=this.max,icon:this.icons[3]}))),this.__directionLinks&&(i.push(this.__getBtn(t,{key:"bdp",on:{click:function(){return e.setByOffset(-1)}}},{disable:this.disable||this.value<=this.min,icon:this.icons[1]})),s.unshift(this.__getBtn(t,{key:"bdn",on:{click:function(){return e.setByOffset(1)}}},{disable:this.disable||this.value>=this.max,icon:this.icons[2]}))),this.input)n.push(t(QInput,{staticClass:"inline no-padding",style:{width:this.inputPlaceholder.length+"rem"},props:{type:"number",value:this.newPage,noNumberToggle:!0,min:this.min,max:this.max,color:this.color,placeholder:this.inputPlaceholder,disable:this.disable,hideUnderline:!0},on:{input:function(t){return e.newPage=t},keydown:function(t){return 13===getEventKey(t)&&e.__update()},blur:function(){return e.__update()}}}));else{var o=Math.max(this.maxPages,1+(this.__ellipses?2:0)+(this.__boundaryNumbers?2:0)),r=this.min,a=this.max,l=!1,c=!1,h=!1,u=!1;this.maxPages&&o<this.max-this.min+1&&(o=1+2*Math.floor(o/2),r=Math.max(this.min,Math.min(this.max-o+1,this.value-Math.floor(o/2))),a=Math.min(this.max,r+o-1),this.__boundaryNumbers&&(h=!0,r+=1),this.__ellipses&&r>this.min+(this.__boundaryNumbers?1:0)&&(l=!0,r+=1),this.__boundaryNumbers&&(u=!0,a-=1),this.__ellipses&&a<this.max-(this.__boundaryNumbers?1:0)&&(c=!0,a-=1));var d={minWidth:Math.max(2,String(this.max).length)+"em"};if(h){var p=this.min===this.value;i.push(this.__getBtn(t,{key:"bns",style:d,on:{click:function(){return e.set(e.min)}}},{disable:this.disable,flat:!p,textColor:p?this.textColor:null,label:this.min,noRipple:!0}))}if(u){var f=this.max===this.value;s.unshift(this.__getBtn(t,{key:"bne",style:d,on:{click:function(){return e.set(e.max)}}},{disable:this.disable,flat:!f,textColor:f?this.textColor:null,label:this.max,noRipple:!0}))}l&&i.push(this.__getBtn(t,{key:"bes",style:d,on:{click:function(){return e.set(r-1)}}},{disable:this.disable,label:"…"})),c&&s.unshift(this.__getBtn(t,{key:"bee",style:d,on:{click:function(){return e.set(a+1)}}},{disable:this.disable,label:"…"}));for(var m=function(i){var s=i===e.value;n.push(e.__getBtn(t,{key:"bpg"+i,style:d,on:{click:function(){return e.set(i)}}},{disable:e.disable,flat:!s,textColor:s?e.textColor:null,label:i,noRipple:!0}))},g=r;g<=a;g++)m(g)}return t("div",{staticClass:"q-pagination row no-wrap items-center",class:{disabled:this.disable}},[i,t("div",{staticClass:"row justify-center"},[n]),s])}},QParallax={name:"QParallax",props:{src:String,height:{type:Number,default:500},speed:{type:Number,default:1,validator:function(t){return t>=0&&t<=1}}},data:function(){return{scrolling:!1}},watch:{height:function(){this.__updatePos()}},methods:{__onResize:function(){this.scrollTarget&&(this.mediaHeight=this.media.naturalHeight||height(this.media),this.__updatePos())},__updatePos:function(){var t,e,i,s;if(this.scrollTarget===window?(t=0,i=e=window.innerHeight):i=(t=offset(this.scrollTarget).top)+(e=height(this.scrollTarget)),(s=offset(this.$el).top)+this.height>t&&s<i){var n=(i-s)/(this.height+e);this.__setPos((this.mediaHeight-this.height)*n*this.speed)}},__setPos:function(t){css(this.media,cssTransform("translate3D(-50%,"+t+"px, 0)"))}},render:function(t){return t("div",{staticClass:"q-parallax",style:{height:this.height+"px"}},[t("div",{staticClass:"q-parallax-media absolute-full"},[this.$slots.media||t("img",{ref:"media",attrs:{src:this.src}})]),t("div",{staticClass:"q-parallax-text absolute-full column flex-center no-pointer-events"},this.$slots.default)])},beforeMount:function(){this.__setPos=frameDebounce(this.__setPos)},mounted:function(){var t=this;this.$nextTick(function(){t.media=t.$slots.media?t.$slots.media[0].elm:t.$refs.media,t.media.onload=t.media.onloadstart=t.__onResize,t.scrollTarget=getScrollTarget(t.$el),t.resizeHandler=debounce(t.__onResize,50),window.addEventListener("resize",t.resizeHandler,listenOpts.passive),t.scrollTarget.addEventListener("scroll",t.__updatePos,listenOpts.passive),t.__onResize()})},beforeDestroy:function(){window.removeEventListener("resize",this.resizeHandler,listenOpts.passive),this.scrollTarget.removeEventListener("scroll",this.__updatePos,listenOpts.passive),this.media.onload=this.media.onloadstart=null}},QPopupEdit={name:"QPopupEdit",props:{value:{},persistent:Boolean,title:String,buttons:Boolean,labelSet:String,labelCancel:String,color:{type:String,default:"primary"},validate:{type:Function,default:function(){return!0}}},data:function(){return{initialValue:""}},watch:{value:function(){var t=this;this.$nextTick(function(){t.$refs.popover.reposition()})}},methods:{cancel:function(){this.__hasChanged()&&(this.$emit("cancel",this.value,this.initialValue),this.$emit("input",this.initialValue)),this.$nextTick(this.__close)},set:function(){this.__hasChanged()&&this.validate(this.value)&&this.$emit("save",this.value),this.__close()},__hasChanged:function(){return JSON.stringify(this.value)!==JSON.stringify(this.initialValue)},__close:function(){this.validated=!0,this.$refs.popover.hide()},__getContent:function(t){var e=this.$slots.title||this.title;return[e&&t("div",{staticClass:"q-title q-mt-sm q-mb-sm"},[e])||void 0].concat(this.$slots.default).concat([this.buttons&&t("div",{staticClass:"row justify-center no-wrap q-mt-sm"},[t(QBtn,{props:{flat:!0,color:this.color,label:this.labelCancel||this.$q.i18n.label.cancel},on:{click:this.cancel}}),t(QBtn,{staticClass:"q-ml-sm",props:{flat:!0,color:this.color,label:this.labelSet||this.$q.i18n.label.set},on:{click:this.set}})])||void 0])}},render:function(t){var e=this;return t(QPopover,{staticClass:"q-table-edit q-px-md q-py-sm",ref:"popover",props:{cover:!0,persistent:this.persistent},on:{show:function(){var t=e.$el.querySelector(".q-input-target, input");t&&t.focus(),e.$emit("show"),e.initialValue=clone(e.value),e.validated=!1},hide:function(){e.validated||(e.__hasChanged()&&(e.validate(e.value)?e.$emit("save",e.value):(e.$emit("cancel",e.value,e.initialValue),e.$emit("input",e.initialValue))),e.$emit("hide"))}},nativeOn:{keydown:function(t){13===getEventKey(t)&&e.$refs.popover.hide()}}},this.__getContent(t))}};function width$1(t){return{width:t+"%"}}var QProgress={name:"QProgress",props:{percentage:{type:Number,default:0},color:{type:String,default:"primary"},stripe:Boolean,animate:Boolean,indeterminate:Boolean,buffer:Number,height:{type:String,default:"4px"}},computed:{model:function(){return between(this.percentage,0,100)},bufferModel:function(){return between(this.buffer||0,0,100-this.model)},bufferStyle:function(){return width$1(this.bufferModel)},trackStyle:function(){return width$1(this.buffer?100-this.buffer:100)},computedClass:function(){return"text-"+this.color},computedStyle:function(){return{height:this.height}},modelClass:function(){return{animate:this.animate,stripe:this.stripe,indeterminate:this.indeterminate}},modelStyle:function(){return width$1(this.model)}},render:function(t){return t("div",{staticClass:"q-progress",style:this.computedStyle,class:this.computedClass},[this.buffer&&!this.indeterminate?t("div",{staticClass:"q-progress-buffer",style:this.bufferStyle}):null,t("div",{staticClass:"q-progress-track",style:this.trackStyle}),t("div",{staticClass:"q-progress-model",style:this.modelStyle,class:this.modelClass})])}},height$1=-65,QPullToRefresh={name:"QPullToRefresh",directives:{TouchPan:TouchPan},props:{handler:{type:Function,required:!0},color:{type:String,default:"primary"},distance:{type:Number,default:35},pullMessage:String,releaseMessage:String,refreshMessage:String,refreshIcon:String,inline:Boolean,disable:Boolean},data:function(){return{state:"pull",pullPosition:height$1,animating:!1,pulling:!1,scrolling:!1}},watch:{inline:function(t){this.setScrollContainer(t)}},computed:{message:function(){switch(this.state){case"pulled":return this.releaseMessage||this.$q.i18n.pullToRefresh.release;case"refreshing":return this.refreshMessage||this.$q.i18n.pullToRefresh.refresh;case"pull":default:return this.pullMessage||this.$q.i18n.pullToRefresh.pull}},style:function(){var t=cssTransform("translateY("+this.pullPosition+"px)");return t.marginBottom=height$1+"px",t},messageClass:function(){return"text-"+this.color}},methods:{__pull:function(t){if(!this.disable){if(t.isFinal)return this.scrolling=!1,this.pulling=!1,void("pulled"===this.state?(this.state="refreshing",this.__animateTo(0),this.trigger()):"pull"===this.state&&this.__animateTo(height$1));if(this.animating||this.scrolling||"refreshing"===this.state)return!0;var e=getScrollPosition(this.scrollContainer);if(0!==e||0===e&&"down"!==t.direction)return this.scrolling=!0,this.pulling&&(this.pulling=!1,this.state="pull",this.__animateTo(height$1)),!0;t.evt.preventDefault(),this.pulling=!0,this.pullPosition=height$1+Math.max(0,Math.pow(t.distance.y,.85)),this.state=this.pullPosition>this.distance?"pulled":"pull"}},__animateTo:function(t,e,i){var s=this;!i&&this.animationId&&cancelAnimationFrame(this.animating),this.pullPosition-=(this.pullPosition-t)/7,this.pullPosition-t>1?this.animating=requestAnimationFrame(function(){s.__animateTo(t,e,!0)}):this.animating=requestAnimationFrame(function(){s.pullPosition=t,s.animating=!1,e&&e()})},trigger:function(){var t=this;this.handler(function(){t.__animateTo(height$1,function(){t.state="pull"})})},setScrollContainer:function(t){var e=this;this.$nextTick(function(){e.scrollContainer=t?e.$el.parentNode:getScrollTarget(e.$el)})}},mounted:function(){this.setScrollContainer(this.inline)},render:function(t){return t("div",{staticClass:"pull-to-refresh overflow-hidden-y"},[t("div",{staticClass:"pull-to-refresh-container",style:this.style,directives:this.disable?null:[{name:"touch-pan",modifiers:{vertical:!0,mightPrevent:!0},value:this.__pull}]},[t("div",{staticClass:"pull-to-refresh-message row flex-center",class:this.messageClass},[t(QIcon,{class:{"rotate-180":"pulled"===this.state},props:{name:this.$q.icon.pullToRefresh.arrow},directives:[{name:"show",value:"refreshing"!==this.state}]}),t(QIcon,{staticClass:"animate-spin",props:{name:this.refreshIcon||this.$q.icon.pullToRefresh.refresh},directives:[{name:"show",value:"refreshing"===this.state}]})," "+this.message]),this.$slots.default])])}},dragType={MIN:0,RANGE:1,MAX:2},QRange={name:"QRange",mixins:[SliderMixin],props:{value:{type:Object,default:function(){return{min:0,max:0}},validator:function(t){return t.hasOwnProperty("min")&&t.hasOwnProperty("max")}},dragRange:Boolean,dragOnlyRange:Boolean,leftLabelColor:String,leftLabelValue:String,rightLabelColor:String,rightLabelValue:String},data:function(){return{model:Object.assign({},this.value),dragging:!1,currentMinPercentage:(this.value.min-this.min)/(this.max-this.min),currentMaxPercentage:(this.value.max-this.min)/(this.max-this.min)}},computed:{percentageMin:function(){return this.snap?(this.model.min-this.min)/(this.max-this.min):this.currentMinPercentage},percentageMax:function(){return this.snap?(this.model.max-this.min)/(this.max-this.min):this.currentMaxPercentage},activeTrackWidth:function(){return 100*(this.percentageMax-this.percentageMin)+"%"},leftDisplayValue:function(){return void 0!==this.leftLabelValue?this.leftLabelValue:this.model.min},rightDisplayValue:function(){return void 0!==this.rightLabelValue?this.rightLabelValue:this.model.max},leftTooltipColor:function(){return this.leftLabelColor||this.labelColor},rightTooltipColor:function(){return this.rightLabelColor||this.labelColor}},watch:{"value.min":function(t){this.model.min=t},"value.max":function(t){this.model.max=t},"model.min":function(t){this.dragging||(t>this.model.max&&(t=this.model.max),this.currentMinPercentage=(t-this.min)/(this.max-this.min))},"model.max":function(t){this.dragging||(t<this.model.min&&(t=this.model.min),this.currentMaxPercentage=(t-this.min)/(this.max-this.min))},min:function(t){this.model.min<t&&this.__update({min:t}),this.model.max<t&&this.__update({max:t}),this.$nextTick(this.__validateProps)},max:function(t){this.model.min>t&&this.__update({min:t}),this.model.max>t&&this.__update({max:t}),this.$nextTick(this.__validateProps)},step:function(){this.$nextTick(this.__validateProps)}},methods:{__getDragging:function(t){var e,i=this.$refs.handle,s=i.offsetWidth,n=(this.dragOnlyRange?-1:1)*this.$refs.handleMin.offsetWidth/(2*s),o={left:i.getBoundingClientRect().left,width:s,valueMin:this.model.min,valueMax:this.model.max,percentageMin:this.currentMinPercentage,percentageMax:this.currentMaxPercentage},r=getPercentage(t,o,this.$q.i18n.rtl);return r<this.currentMinPercentage+n?e=dragType.MIN:r<this.currentMaxPercentage-n?this.dragRange||this.dragOnlyRange?(e=dragType.RANGE,Object.assign(o,{offsetPercentage:r,offsetModel:getModel(r,this.min,this.max,this.step,this.computedDecimals),rangeValue:o.valueMax-o.valueMin,rangePercentage:this.currentMaxPercentage-this.currentMinPercentage})):e=this.currentMaxPercentage-r<r-this.currentMinPercentage?dragType.MAX:dragType.MIN:e=dragType.MAX,(!this.dragOnlyRange||e===dragType.RANGE)&&(o.type=e,o)},__move:function(t,e){void 0===e&&(e=this.dragging);var i,s=getPercentage(t,e,this.$q.i18n.rtl),n=getModel(s,this.min,this.max,this.step,this.computedDecimals);switch(e.type){case dragType.MIN:i=s<=e.percentageMax?{minP:s,maxP:e.percentageMax,min:n,max:e.valueMax}:{minP:e.percentageMax,maxP:s,min:e.valueMax,max:n};break;case dragType.MAX:i=s>=e.percentageMin?{minP:e.percentageMin,maxP:s,min:e.valueMin,max:n}:{minP:s,maxP:e.percentageMin,min:n,max:e.valueMin};break;case dragType.RANGE:var o=s-e.offsetPercentage,r=between(e.percentageMin+o,0,1-e.rangePercentage),a=n-e.offsetModel,l=between(e.valueMin+a,this.min,this.max-e.rangeValue);i={minP:r,maxP:r+e.rangePercentage,min:parseFloat(l.toFixed(this.computedDecimals)),max:parseFloat((l+e.rangeValue).toFixed(this.computedDecimals))}}this.currentMinPercentage=i.minP,this.currentMaxPercentage=i.maxP,this.model={min:i.min,max:i.max}},__end:function(t,e){void 0===e&&(e=this.dragging),this.__move(t,e),this.currentMinPercentage=(this.model.min-this.min)/(this.max-this.min),this.currentMaxPercentage=(this.model.max-this.min)/(this.max-this.min)},__onKeyDown:function(t,e){var i=t.keyCode;if(this.editable&&[37,40,39,38].includes(i)){stopAndPrevent(t);var s=this.computedDecimals,n=t.ctrlKey?10*this.computedStep:this.computedStep,o=[37,40].includes(i)?-n:n,r=s?parseFloat((this.model[e]+o).toFixed(s)):this.model[e]+o;this.model[e]=between(r,"min"===e?this.min:this.model.min,"max"===e?this.max:this.model.max),this.currentMinPercentage=(this.model.min-this.min)/(this.max-this.min),this.currentMaxPercentage=(this.model.max-this.min)/(this.max-this.min),this.__update()}},__onKeyUp:function(t,e){var i=t.keyCode;this.editable&&[37,40,39,38].includes(i)&&this.__update(!0)},__validateProps:function(){this.min>=this.max?console.error("Range error: min >= max",this.$el,this.min,this.max):notDivides((this.max-this.min)/this.step,this.computedDecimals)?console.error("Range error: step must be a divisor of max - min",this.min,this.max,this.step):notDivides((this.model.min-this.min)/this.step,this.computedDecimals)?console.error("Range error: step must be a divisor of initial value.min - min",this.model.min,this.min,this.step):notDivides((this.model.max-this.min)/this.step,this.computedDecimals)&&console.error("Range error: step must be a divisor of initial value.max - min",this.model.max,this.max,this.step)},__getHandle:function(t,e,i,s,n,o,r){var a,l=this;return t("div",{ref:"handle"+i,staticClass:"q-slider-handle q-slider-handle-"+e,style:(a={},a[this.$q.i18n.rtl?"right":"left"]=100*n+"%",a.borderRadius=this.square?"0":"50%",a),class:[s?"handle-at-minimum":null,{dragging:this.dragging}],attrs:{tabindex:this.editable?0:-1},on:{keydown:function(t){return l.__onKeyDown(t,e)},keyup:function(t){return l.__onKeyUp(t,e)}}},[this.label||this.labelAlways?t(QChip,{props:{pointing:"down",square:!0,dense:!0,color:o},staticClass:"q-slider-label no-pointer-events",class:{"label-always":this.labelAlways}},[r]):null,t("div",{staticClass:"q-slider-ring"})])},__getContent:function(t){var e;return[t("div",{staticClass:"q-slider-track active-track",style:(e={},e[this.$q.i18n.rtl?"right":"left"]=100*this.percentageMin+"%",e.width=this.activeTrackWidth,e),class:{dragging:this.dragging,"track-draggable":this.dragRange||this.dragOnlyRange}}),this.__getHandle(t,"min","Min",!this.fillHandleAlways&&this.model.min===this.min,this.percentageMin,this.leftTooltipColor,this.leftDisplayValue),this.__getHandle(t,"max","Max",!1,this.percentageMax,this.rightTooltipColor,this.rightDisplayValue)]}}},QRating={name:"QRating",props:{value:Number,max:{type:Number,default:5},icon:String,color:String,size:String,readonly:Boolean,disable:Boolean},data:function(){return{mouseModel:0}},computed:{model:{get:function(){return this.value},set:function(t){var e=this;this.$emit("input",t),this.$nextTick(function(){JSON.stringify(t)!==JSON.stringify(e.value)&&e.$emit("change",t)})}},editable:function(){return!this.readonly&&!this.disable},classes:function(){var t=[];return this.disable&&t.push("disabled"),this.editable&&t.push("editable"),this.color&&t.push("text-"+this.color),t}},methods:{set:function(t){if(this.editable){var e=between(parseInt(t,10),1,this.max);this.model=this.model===e?0:e,this.mouseModel=0}},__setHoverValue:function(t){this.editable&&(this.mouseModel=t)}},render:function(t){for(var e=this,i=[],s=this.editable?0:-1,n=function(n){i.push(t("span",{key:n,ref:"rt"+n,attrs:{tabindex:s},on:{keydown:function(t){switch(getEventKey(t)){case 13:case 32:return e.set(n),stopAndPrevent(t);case 37:case 40:return e.$refs["rt"+(n-1)]&&e.$refs["rt"+(n-1)].focus(),stopAndPrevent(t);case 39:case 38:return e.$refs["rt"+(n+1)]&&e.$refs["rt"+(n+1)].focus(),stopAndPrevent(t)}}}},[t(QIcon,{props:{name:e.icon||e.$q.icon.rating.icon},class:{active:!e.mouseModel&&e.model>=n||e.mouseModel&&e.mouseModel>=n,exselected:e.mouseModel&&e.model>=n&&e.mouseModel<n,hovered:e.mouseModel===n},attrs:{tabindex:-1},nativeOn:{click:function(){return e.set(n)},mouseover:function(){return e.__setHoverValue(n)},mouseout:function(){e.mouseModel=0},focus:function(){return e.__setHoverValue(n)},blur:function(){e.mouseModel=0}}})]))},o=1;o<=this.max;o++)n(o);return t("div",{staticClass:"q-rating row inline items-center",class:this.classes,style:this.size?"font-size: "+this.size:""},i)}},QScrollArea={name:"QScrollArea",directives:{TouchPan:TouchPan},props:{thumbStyle:{type:Object,default:function(){return{}}},contentStyle:{type:Object,default:function(){return{}}},contentActiveStyle:{type:Object,default:function(){return{}}},delay:{type:Number,default:1e3}},data:function(){return{active:!1,hover:!1,containerHeight:0,scrollPosition:0,scrollHeight:0}},computed:{thumbHidden:function(){return this.scrollHeight<=this.containerHeight||!this.active&&!this.hover},thumbHeight:function(){return Math.round(between(this.containerHeight*this.containerHeight/this.scrollHeight,50,this.containerHeight))},style:function(){var t=this.scrollPercentage*(this.containerHeight-this.thumbHeight);return Object.assign({},this.thumbStyle,{top:t+"px",height:this.thumbHeight+"px"})},mainStyle:function(){return this.thumbHidden?this.contentStyle:this.contentActiveStyle},scrollPercentage:function(){var t=between(this.scrollPosition/(this.scrollHeight-this.containerHeight),0,1);return Math.round(1e4*t)/1e4}},methods:{setScrollPosition:function(t,e){setScrollPosition(this.$refs.target,t,e)},__updateContainer:function(t){var e=t.height;this.containerHeight!==e&&(this.containerHeight=e,this.__setActive(!0,!0))},__updateScroll:function(t){var e=t.position;this.scrollPosition!==e&&(this.scrollPosition=e,this.__setActive(!0,!0))},__updateScrollHeight:function(t){var e=t.height;this.scrollHeight!==e&&(this.scrollHeight=e,this.__setActive(!0,!0))},__panThumb:function(t){t.isFirst&&(this.refPos=this.scrollPosition,this.__setActive(!0,!0),document.body.classList.add("non-selectable"),document.selection?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges()),t.isFinal&&(this.__setActive(!1),document.body.classList.remove("non-selectable"));var e=(this.scrollHeight-this.containerHeight)/(this.containerHeight-this.thumbHeight);this.$refs.target.scrollTop=this.refPos+("down"===t.direction?1:-1)*t.distance.y*e},__panContainer:function(t){t.isFirst&&(this.refPos=this.scrollPosition,this.__setActive(!0,!0)),t.isFinal&&this.__setActive(!1);var e=this.refPos+("down"===t.direction?-1:1)*t.distance.y;this.$refs.target.scrollTop=e,e>0&&e+this.containerHeight<this.scrollHeight&&t.evt.preventDefault()},__mouseWheel:function(t){var e=this.$refs.target;e.scrollTop+=getMouseWheelDistance(t).y,e.scrollTop>0&&e.scrollTop+this.containerHeight<this.scrollHeight&&t.preventDefault()},__setActive:function(t,e){clearTimeout(this.timer),t!==this.active?t?(this.active=!0,e&&this.__startTimer()):this.active=!1:t&&this.timer&&this.__startTimer()},__startTimer:function(){var t=this;this.timer=setTimeout(function(){t.active=!1,t.timer=null},this.delay)}},render:function(t){var e=this;return this.$q.platform.is.desktop?t("div",{staticClass:"q-scrollarea relative-position",on:{mouseenter:function(){e.hover=!0},mouseleave:function(){e.hover=!1}}},[t("div",{ref:"target",staticClass:"scroll relative-position overflow-hidden fit",on:{wheel:this.__mouseWheel},directives:[{name:"touch-pan",modifiers:{vertical:!0,noMouse:!0,mightPrevent:!0},value:this.__panContainer}]},[t("div",{staticClass:"absolute full-width",style:this.mainStyle},[t(QResizeObservable,{on:{resize:this.__updateScrollHeight}}),this.$slots.default]),t(QScrollObservable,{on:{scroll:this.__updateScroll}})]),t(QResizeObservable,{on:{resize:this.__updateContainer}}),t("div",{staticClass:"q-scrollarea-thumb absolute-right",style:this.style,class:{"invisible-thumb":this.thumbHidden},directives:[{name:"touch-pan",modifiers:{vertical:!0,prevent:!0},value:this.__panThumb}]})]):t("div",{staticClass:"q-scroll-area relative-position",style:this.contentStyle},[t("div",{ref:"target",staticClass:"scroll relative-position fit"},this.$slots.default)])}},QSearch={name:"QSearch",mixins:[FrameMixin,InputMixin],props:{value:{required:!0},type:{type:String,default:"search"},debounce:{type:Number,default:300},icon:String,noIcon:Boolean,upperCase:Boolean,lowerCase:Boolean},data:function(){return{model:this.value,childDebounce:!1}},provide:function(){var t=this,e=function(e){t.model!==e&&(t.model=e)};return{__inputDebounce:{set:e,setNav:e,setChildDebounce:function(e){t.childDebounce=e}}}},watch:{value:function(t){this.model=t},model:function(t){var e=this;clearTimeout(this.timer),this.value!==t&&(t||0===t||(this.model="number"===this.type?null:""),this.timer=setTimeout(function(){e.$emit("input",e.model)},this.debounceValue))}},computed:{debounceValue:function(){return this.childDebounce?0:this.debounce},computedClearValue:function(){return this.isNumber&&0===this.clearValue?this.clearValue:this.clearValue||("number"===this.type?null:"")},controlBefore:function(){var t=(this.before||[]).slice();return this.noIcon||t.unshift({icon:this.icon||this.$q.icon.search.icon,handler:this.focus}),t},controlAfter:function(){var t=(this.after||[]).slice();return this.isClearable&&t.push({icon:this.$q.icon.search["clear"+(this.isInverted?"Inverted":"")],handler:this.clear}),t}},methods:{clear:function(t){this.$refs.input.clear(t)}},render:function(t){var e=this;return t(QInput,{ref:"input",staticClass:"q-search",props:{value:this.model,type:this.type,autofocus:this.autofocus,placeholder:this.placeholder||this.$q.i18n.label.search,disable:this.disable,readonly:this.readonly,error:this.error,warning:this.warning,align:this.align,noParentField:this.noParentField,floatLabel:this.floatLabel,stackLabel:this.stackLabel,prefix:this.prefix,suffix:this.suffix,inverted:this.inverted,invertedLight:this.invertedLight,dark:this.dark,hideUnderline:this.hideUnderline,color:this.color,rows:this.rows,before:this.controlBefore,after:this.controlAfter,clearValue:this.clearValue,upperCase:this.upperCase,lowerCase:this.lowerCase},attrs:this.$attrs,on:{input:function(t){e.model=t},focus:this.__onFocus,blur:this.__onBlur,keyup:this.__onKeyup,keydown:this.__onKeydown,click:this.__onClick,paste:this.__onPaste,clear:function(t){e.$emit("clear",t),e.__emit()}}},this.$slots.default)}};function defaultFilterFn(t,e){return e.label.toLowerCase().indexOf(t)>-1}var QSelect={name:"QSelect",mixins:[FrameMixin,KeyboardSelectionMixin],props:{filter:[Function,Boolean],filterPlaceholder:String,radio:Boolean,placeholder:String,separator:Boolean,value:{required:!0},multiple:Boolean,toggle:Boolean,chips:Boolean,options:{type:Array,required:!0,validator:function(t){return t.every(function(t){return"label"in t&&"value"in t})}},chipsColor:String,chipsBgColor:String,displayValue:String},data:function(){return{model:this.multiple&&Array.isArray(this.value)?this.value.slice():this.value,terms:"",focused:!1}},watch:{value:function(t){this.model=this.multiple&&Array.isArray(t)?t.slice():t},visibleOptions:function(){this.__keyboardCalcIndex()}},computed:{optModel:function(){var t=this;if(this.multiple)return this.model.length>0?this.options.map(function(e){return t.model.includes(e.value)}):this.options.map(function(t){return!1})},visibleOptions:function(){var t=this,e=this.options.map(function(t,e){return Object.assign({},t,{index:e})});if(this.filter&&this.terms.length){var i=this.terms.toLowerCase();e=e.filter(function(e){return t.filterFn(i,e)})}return e},keyboardMaxIndex:function(){return this.visibleOptions.length-1},filterFn:function(){return"boolean"==typeof this.filter?defaultFilterFn:this.filter},actualValue:function(){var t=this;if(this.displayValue)return this.displayValue;if(!this.multiple){var e=this.options.find(function(e){return e.value===t.model});return e?e.label:""}var i=this.selectedOptions.map(function(t){return t.label});return i.length?i.join(", "):""},computedClearValue:function(){return this.clearValue||(this.multiple?[]:null)},isClearable:function(){return this.editable&&this.clearable&&JSON.stringify(this.computedClearValue)!==JSON.stringify(this.model)},selectedOptions:function(){var t=this;if(this.multiple)return this.length>0?this.options.filter(function(e){return t.model.includes(e.value)}):[]},hasChips:function(){return this.multiple&&this.chips&&this.length>0},length:function(){return this.multiple?this.model.length:[null,void 0,""].includes(this.model)?0:1},additionalLength:function(){return this.displayValue&&this.displayValue.length>0}},methods:{togglePopup:function(){this.$refs.popover&&this[this.$refs.popover.showing?"hide":"show"]()},show:function(){if(this.__keyboardCalcIndex(),this.$refs.popover)return this.$refs.popover.show()},hide:function(){return this.$refs.popover?this.$refs.popover.hide():Promise.resolve()},reposition:function(){var t=this.$refs.popover;t&&t.showing&&this.$nextTick(function(){return t&&t.reposition()})},__keyboardCalcIndex:function(){var t=this;this.keyboardIndex=-1;var e=this.multiple?this.selectedOptions.map(function(t){return t.value}):[this.model];this.$nextTick(function(){var i=void 0===e?-1:Math.max(-1,t.visibleOptions.findIndex(function(t){return e.includes(t.value)}));i>-1&&(t.keyboardMoveDirection=!0,setTimeout(function(){t.keyboardMoveDirection=!1},500),t.__keyboardShow(i))})},__keyboardCustomKeyHandle:function(t,e){switch(t){case 13:case 32:this.$refs.popover.showing||this.show()}},__keyboardShowTrigger:function(){this.show()},__keyboardSetSelection:function(t){var e=this.visibleOptions[t];this.multiple?this.__toggleMultiple(e.value,e.disable):this.__singleSelect(e.value,e.disable)},__keyboardIsSelectableIndex:function(t){return t>-1&&t<this.visibleOptions.length&&!this.visibleOptions[t].disable},__mouseEnterHandler:function(t,e){this.keyboardMoveDirection||(this.keyboardIndex=e)},__onFocus:function(){this.disable||this.focused||(this.focused=!0,this.$emit("focus"))},__onShow:function(){this.disable||(this.__onFocus(),this.filter&&this.$refs.filter&&this.$refs.filter.focus())},__onBlur:function(t){var e=this;this.focused&&setTimeout(function(){var t=document.activeElement;e.$refs.popover&&e.$refs.popover.showing&&(t===document.body||e.$refs.popover.$el.contains(t))||(e.__onClose(),e.hide())},1)},__onClose:function(t){var e=this;this.$nextTick(function(){JSON.stringify(e.model)!==JSON.stringify(e.value)&&e.$emit("change",e.model)}),this.terms="",this.focused&&(t?this.$refs.input&&this.$refs.input.$el&&this.$refs.input.$el.focus():(this.focused=!1,this.$emit("blur")))},__singleSelect:function(t,e){e||(this.__emit(t),this.hide())},__toggleMultiple:function(t,e){if(!e){var i=this.model,s=i.indexOf(t);s>-1?this.$emit("remove",{index:s,value:i.splice(s,1)}):(this.$emit("add",{index:i.length,value:t}),i.push(t)),this.$emit("input",i)}},__emit:function(t){var e=this;this.$emit("input",t),this.$nextTick(function(){JSON.stringify(t)!==JSON.stringify(e.value)&&e.$emit("change",t)})},__setModel:function(t,e){this.model=t||(this.multiple?[]:null),this.$emit("input",this.model),!e&&this.$refs.popover&&this.$refs.popover.showing||this.__onClose(e)},__getChipTextColor:function(t){return this.chipsColor?this.chipsColor:this.isInvertedLight?this.invertedLight?t||this.color:"white":this.isInverted?t||(this.invertedLight?"grey-10":this.color):this.dark?t||this.color:"white"},__getChipBgColor:function(t){return this.chipsBgColor?this.chipsBgColor:this.isInvertedLight?this.invertedLight?"grey-10":t||this.color:this.isInverted?this.invertedLight?this.color:"white":this.dark?"white":t||this.color}},render:function(t){var e=this,i=[];if(this.hasChips){var s=t("div",{staticClass:"col row items-center q-input-chips",class:this.alignClass},this.selectedOptions.map(function(i,s){return t(QChip,{key:s,props:{small:!0,closable:e.editable&&!i.disable,color:e.__getChipBgColor(i.color),textColor:e.__getChipTextColor(i.color),icon:i.icon,iconRight:i.rightIcon,avatar:i.avatar},on:{hide:function(){e.__toggleMultiple(i.value,e.disable||i.disable)}},nativeOn:{click:function(t){t.stopPropagation()}},domProps:{innerHTML:i.label}})}));i.push(s)}else{var n=t("div",{staticClass:"col q-input-target ellipsis",class:this.fakeInputClasses,domProps:{innerHTML:this.fakeInputValue}});i.push(n)}return i.push(t(QPopover,{ref:"popover",staticClass:"column no-wrap",class:this.dark?"bg-dark":null,props:{cover:!0,disable:!this.editable,anchorClick:!1},slot:"after",on:{show:this.__onShow,hide:function(){e.__onClose(!0)}},nativeOn:{keydown:this.__keyboardHandleKey}},[this.filter&&t(QSearch,{ref:"filter",staticClass:"col-auto",style:"padding: 10px;",props:{value:this.terms,placeholder:this.filterPlaceholder||this.$q.i18n.label.filter,debounce:100,color:this.color,dark:this.dark,noParentField:!0,noIcon:!0},on:{input:function(t){e.terms=t,e.reposition()}}})||void 0,this.visibleOptions.length&&t(QList,{staticClass:"no-border scroll",props:{separator:this.separator,dark:this.dark}},this.visibleOptions.map(function(i,s){return t(QItemWrapper,{key:s,class:[i.disable?"text-faded":"cursor-pointer",s===e.keyboardIndex?"q-select-highlight":"",i.disable?"":"cursor-pointer",i.className||""],props:{cfg:i,slotReplace:!0,active:e.multiple?void 0:e.value===i.value},nativeOn:{"!click":function(){var t=e.multiple?"__toggleMultiple":"__singleSelect";e[t](i.value,i.disable)},mouseenter:function(t){!i.disable&&e.__mouseEnterHandler(t,s)}}},[e.multiple?t(e.toggle?QToggle:QCheckbox,{slot:e.toggle?"right":"left",props:{keepColor:!0,color:i.color||e.color,dark:e.dark,value:e.optModel[i.index],disable:i.disable,noFocus:!0}}):e.radio&&t(QRadio,{slot:"left",props:{keepColor:!0,color:i.color||e.color,dark:e.dark,value:e.value,val:i.value,disable:i.disable,noFocus:!0}})||void 0])}))||void 0])),this.isClearable&&i.push(t(QIcon,{slot:"after",staticClass:"q-if-control",props:{name:this.$q.icon.input["clear"+(this.isInverted?"Inverted":"")]},nativeOn:{click:this.clear}})),i.push(t(QIcon,{slot:"after",staticClass:"q-if-control",props:{name:this.$q.icon.input.dropdown}})),t(QInputFrame,{ref:"input",staticClass:"q-select",props:{prefix:this.prefix,suffix:this.suffix,stackLabel:this.stackLabel,floatLabel:this.floatLabel,error:this.error,warning:this.warning,disable:this.disable,readonly:this.readonly,inverted:this.inverted,invertedLight:this.invertedLight,dark:this.dark,hideUnderline:this.hideUnderline,before:this.before,after:this.after,color:this.color,noParentField:this.noParentField,focused:this.focused,focusable:!0,length:this.length,additionalLength:this.additionalLength},nativeOn:{click:this.togglePopup,focus:this.__onFocus,blur:this.__onBlur,keydown:this.__keyboardHandleKey}},i)}},QSpinnerAudio={name:"QSpinnerAudio",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{fill:"currentColor",width:this.size,height:this.size,viewBox:"0 0 55 80",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"matrix(1 0 0 -1 0 80)"}},[t("rect",{attrs:{width:"10",height:"20",rx:"3"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"4.3s",values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"15",width:"10",height:"80",rx:"3"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"2s",values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"30",width:"10",height:"50",rx:"3"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"1.4s",values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"45",width:"10",height:"30",rx:"3"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"2s",values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"}})])])])}},QSpinnerBall={name:"QSpinnerBall",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{stroke:"currentColor",width:this.size,height:this.size,viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"}},[t("circle",{attrs:{cx:"5",cy:"50",r:"5"}},[t("animate",{attrs:{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;5;50;50",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"cx",begin:"0s",dur:"2.2s",values:"5;27;49;5",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"27",cy:"5",r:"5"}},[t("animate",{attrs:{attributeName:"cy",begin:"0s",dur:"2.2s",from:"5",to:"5",values:"5;50;50;5",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"cx",begin:"0s",dur:"2.2s",from:"27",to:"27",values:"27;49;5;27",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"49",cy:"50",r:"5"}},[t("animate",{attrs:{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;50;5;50",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"cx",from:"49",to:"49",begin:"0s",dur:"2.2s",values:"49;5;27;49",calcMode:"linear",repeatCount:"indefinite"}})])])])}},QSpinnerBars={name:"QSpinnerBars",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{fill:"currentColor",width:this.size,height:this.size,viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg"}},[t("rect",{attrs:{y:"10",width:"15",height:"120",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"30",y:"10",width:"15",height:"120",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"60",width:"15",height:"140",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"90",y:"10",width:"15",height:"120",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:"120",y:"10",width:"15",height:"120",rx:"6"}},[t("animate",{attrs:{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"}})])])}},QSpinnerCircles={name:"QSpinnerCircles",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{fill:"currentColor",width:this.size,height:this.size,viewBox:"0 0 135 135",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M67.447 58c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm9.448 9.447c0 5.523 4.477 10 10 10 5.522 0 10-4.477 10-10s-4.478-10-10-10c-5.523 0-10 4.477-10 10zm-9.448 9.448c-5.523 0-10 4.477-10 10 0 5.522 4.477 10 10 10s10-4.478 10-10c0-5.523-4.477-10-10-10zM58 67.447c0-5.523-4.477-10-10-10s-10 4.477-10 10 4.477 10 10 10 10-4.477 10-10z"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 67 67",to:"-360 67 67",dur:"2.5s",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M28.19 40.31c6.627 0 12-5.374 12-12 0-6.628-5.373-12-12-12-6.628 0-12 5.372-12 12 0 6.626 5.372 12 12 12zm30.72-19.825c4.686 4.687 12.284 4.687 16.97 0 4.686-4.686 4.686-12.284 0-16.97-4.686-4.687-12.284-4.687-16.97 0-4.687 4.686-4.687 12.284 0 16.97zm35.74 7.705c0 6.627 5.37 12 12 12 6.626 0 12-5.373 12-12 0-6.628-5.374-12-12-12-6.63 0-12 5.372-12 12zm19.822 30.72c-4.686 4.686-4.686 12.284 0 16.97 4.687 4.686 12.285 4.686 16.97 0 4.687-4.686 4.687-12.284 0-16.97-4.685-4.687-12.283-4.687-16.97 0zm-7.704 35.74c-6.627 0-12 5.37-12 12 0 6.626 5.373 12 12 12s12-5.374 12-12c0-6.63-5.373-12-12-12zm-30.72 19.822c-4.686-4.686-12.284-4.686-16.97 0-4.686 4.687-4.686 12.285 0 16.97 4.686 4.687 12.284 4.687 16.97 0 4.687-4.685 4.687-12.283 0-16.97zm-35.74-7.704c0-6.627-5.372-12-12-12-6.626 0-12 5.373-12 12s5.374 12 12 12c6.628 0 12-5.373 12-12zm-19.823-30.72c4.687-4.686 4.687-12.284 0-16.97-4.686-4.686-12.284-4.686-16.97 0-4.687 4.686-4.687 12.284 0 16.97 4.686 4.687 12.284 4.687 16.97 0z"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 67 67",to:"360 67 67",dur:"8s",repeatCount:"indefinite"}})])])}},QSpinnerComment={name:"QSpinnerComment",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{width:this.size,height:this.size,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("rect",{attrs:{x:"0",y:"0",width:"100",height:"100",fill:"none"}}),t("path",{attrs:{d:"M78,19H22c-6.6,0-12,5.4-12,12v31c0,6.6,5.4,12,12,12h37.2c0.4,3,1.8,5.6,3.7,7.6c2.4,2.5,5.1,4.1,9.1,4 c-1.4-2.1-2-7.2-2-10.3c0-0.4,0-0.8,0-1.3h8c6.6,0,12-5.4,12-12V31C90,24.4,84.6,19,78,19z",fill:"currentColor"}}),t("circle",{attrs:{cx:"30",cy:"47",r:"5",fill:"#fff"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",values:"0;1;1",keyTimes:"0;0.2;1",dur:"1s",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"50",cy:"47",r:"5",fill:"#fff"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.2;0.4;1",dur:"1s",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"70",cy:"47",r:"5",fill:"#fff"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.4;0.6;1",dur:"1s",repeatCount:"indefinite"}})])])}},QSpinnerCube={name:"QSpinnerCube",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{width:this.size,height:this.size,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("rect",{attrs:{x:"0",y:"0",width:"100",height:"100",fill:"none"}}),t("g",{attrs:{transform:"translate(25 25)"}},[t("rect",{attrs:{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.9"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"}})])]),t("g",{attrs:{transform:"translate(75 25)"}},[t("rect",{attrs:{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.8"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.1s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"}})])]),t("g",{attrs:{transform:"translate(25 75)"}},[t("rect",{staticClass:"cube",attrs:{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.7"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.3s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"}})])]),t("g",{attrs:{transform:"translate(75 75)"}},[t("rect",{staticClass:"cube",attrs:{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.6"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.2s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"}})])])])}},QSpinnerDots={name:"QSpinnerDots",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{fill:"currentColor",width:this.size,height:this.size,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{attrs:{cx:"15",cy:"15",r:"15"}},[t("animate",{attrs:{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"60",cy:"15",r:"9","fill-opacity":".3"}},[t("animate",{attrs:{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"fill-opacity",from:".5",to:".5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"105",cy:"15",r:"15"}},[t("animate",{attrs:{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"}})])])}},QSpinnerFacebook={name:"QSpinnerFacebook",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{width:this.size,height:this.size,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"}},[t("g",{attrs:{transform:"translate(20 50)"}},[t("rect",{attrs:{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.6"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"}})])]),t("g",{attrs:{transform:"translate(50 50)"}},[t("rect",{attrs:{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.8"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.1s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"}})])]),t("g",{attrs:{transform:"translate(80 50)"}},[t("rect",{attrs:{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.9"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.2s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"}})])])])}},QSpinnerGears={name:"QSpinnerGears",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{width:this.size,height:this.size,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"translate(-20,-20)"}},[t("path",{attrs:{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"90 50 50",to:"0 50 50",dur:"1s",repeatCount:"indefinite"}})])]),t("g",{attrs:{transform:"translate(20,20) rotate(15 50 50)"}},[t("path",{attrs:{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"90 50 50",dur:"1s",repeatCount:"indefinite"}})])])])}},QSpinnerGrid={name:"QSpinnerGrid",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{fill:"currentColor",width:this.size,height:this.size,viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{attrs:{cx:"12.5",cy:"12.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"12.5",cy:"52.5",r:"12.5","fill-opacity":".5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"52.5",cy:"12.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"52.5",cy:"52.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"92.5",cy:"12.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"92.5",cy:"52.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"12.5",cy:"92.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"52.5",cy:"92.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"92.5",cy:"92.5",r:"12.5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}})])])}},QSpinnerHearts={name:"QSpinnerHearts",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{fill:"currentColor",width:this.size,height:this.size,viewBox:"0 0 140 64",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.716-6.002 11.47-7.65 17.304-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z","fill-opacity":".5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"0s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.593-2.32 17.308 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z","fill-opacity":".5"}},[t("animate",{attrs:{attributeName:"fill-opacity",begin:"0.7s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"}})])}},QSpinnerHourglass={name:"QSpinnerHourglass",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{width:this.size,height:this.size,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"}},[t("g",[t("path",{staticClass:"glass",attrs:{fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"10",d:"M58.4,51.7c-0.9-0.9-1.4-2-1.4-2.3s0.5-0.4,1.4-1.4 C70.8,43.8,79.8,30.5,80,15.5H70H30H20c0.2,15,9.2,28.1,21.6,32.3c0.9,0.9,1.4,1.2,1.4,1.5s-0.5,1.6-1.4,2.5 C29.2,56.1,20.2,69.5,20,85.5h10h40h10C79.8,69.5,70.8,55.9,58.4,51.7z"}}),t("clipPath",{attrs:{id:"uil-hourglass-clip1"}},[t("rect",{staticClass:"clip",attrs:{x:"15",y:"20",width:"70",height:"25"}},[t("animate",{attrs:{attributeName:"height",from:"25",to:"0",dur:"1s",repeatCount:"indefinite",vlaues:"25;0;0",keyTimes:"0;0.5;1"}}),t("animate",{attrs:{attributeName:"y",from:"20",to:"45",dur:"1s",repeatCount:"indefinite",vlaues:"20;45;45",keyTimes:"0;0.5;1"}})])]),t("clipPath",{attrs:{id:"uil-hourglass-clip2"}},[t("rect",{staticClass:"clip",attrs:{x:"15",y:"55",width:"70",height:"25"}},[t("animate",{attrs:{attributeName:"height",from:"0",to:"25",dur:"1s",repeatCount:"indefinite",vlaues:"0;25;25",keyTimes:"0;0.5;1"}}),t("animate",{attrs:{attributeName:"y",from:"80",to:"55",dur:"1s",repeatCount:"indefinite",vlaues:"80;55;55",keyTimes:"0;0.5;1"}})])]),t("path",{staticClass:"sand",attrs:{d:"M29,23c3.1,11.4,11.3,19.5,21,19.5S67.9,34.4,71,23H29z","clip-path":"url(#uil-hourglass-clip1)",fill:"currentColor"}}),t("path",{staticClass:"sand",attrs:{d:"M71.6,78c-3-11.6-11.5-20-21.5-20s-18.5,8.4-21.5,20H71.6z","clip-path":"url(#uil-hourglass-clip2)",fill:"currentColor"}}),t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",repeatCount:"indefinite",dur:"1s",values:"0 50 50;0 50 50;180 50 50",keyTimes:"0;0.7;1"}})])])}},QSpinnerInfinity={name:"QSpinnerInfinity",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{width:this.size,height:this.size,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[t("path",{attrs:{d:"M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z",fill:"none",stroke:"currentColor","stroke-width":"8","stroke-dasharray":"10.691205342610678 10.691205342610678","stroke-dashoffset":"0"}},[t("animate",{attrs:{attributeName:"stroke-dashoffset",from:"0",to:"21.382410685221355",begin:"0",dur:"2s",repeatCount:"indefinite",fill:"freeze"}})])])}},QSpinner_ios={name:"QSpinnerIos",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{width:this.size,height:this.size,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 64 64"}},[t("g",{attrs:{"stroke-width":"4","stroke-linecap":"round"}},[t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(180)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(210)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:"0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(240)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".1;0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(270)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".15;.1;0;1;.85;.7;.65;.55;.45;.35;.25;.15",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(300)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".25;.15;.1;0;1;.85;.7;.65;.55;.45;.35;.25",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(330)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".35;.25;.15;.1;0;1;.85;.7;.65;.55;.45;.35",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(0)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".45;.35;.25;.15;.1;0;1;.85;.7;.65;.55;.45",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(30)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".55;.45;.35;.25;.15;.1;0;1;.85;.7;.65;.55",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(60)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".65;.55;.45;.35;.25;.15;.1;0;1;.85;.7;.65",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(90)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".7;.65;.55;.45;.35;.25;.15;.1;0;1;.85;.7",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(120)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:".85;.7;.65;.55;.45;.35;.25;.15;.1;0;1;.85",repeatCount:"indefinite"}})]),t("line",{attrs:{y1:"17",y2:"29",transform:"translate(32,32) rotate(150)"}},[t("animate",{attrs:{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"}})])])])}},QSpinnerOval={name:"QSpinnerOval",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{stroke:"currentColor",width:this.size,height:this.size,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"}},[t("circle",{attrs:{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}}),t("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}})])])])}},QSpinnerPie={name:"QSpinnerPie",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{width:this.size,height:this.size,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M0 50A50 50 0 0 1 50 0L50 50L0 50",fill:"currentColor",opacity:"0.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"0.8s",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M50 0A50 50 0 0 1 100 50L50 50L50 0",fill:"currentColor",opacity:"0.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"1.6s",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M100 50A50 50 0 0 1 50 100L50 50L100 50",fill:"currentColor",opacity:"0.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2.4s",repeatCount:"indefinite"}})]),t("path",{attrs:{d:"M50 100A50 50 0 0 1 0 50L50 50L50 100",fill:"currentColor",opacity:"0.5"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"3.2s",repeatCount:"indefinite"}})])])}},QSpinnerPuff={name:"QSpinnerPuff",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{stroke:"currentColor",width:this.size,height:this.size,viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{fill:"none","fill-rule":"evenodd","stroke-width":"2"}},[t("circle",{attrs:{cx:"22",cy:"22",r:"1"}},[t("animate",{attrs:{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"22",cy:"22",r:"1"}},[t("animate",{attrs:{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"}})])])])}},QSpinnerRadio={name:"QSpinnerRadio",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{width:this.size,height:this.size,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{transform:"scale(0.55)"}},[t("circle",{attrs:{cx:"30",cy:"150",r:"30",fill:"currentColor"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"}})]),t("path",{attrs:{d:"M90,150h30c0-49.7-40.3-90-90-90v30C63.1,90,90,116.9,90,150z",fill:"currentColor"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.1",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"}})]),t("path",{attrs:{d:"M150,150h30C180,67.2,112.8,0,30,0v30C96.3,30,150,83.7,150,150z",fill:"currentColor"}},[t("animate",{attrs:{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.2",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"}})])])])}},QSpinnerRings={name:"QSpinnerRings",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{stroke:"currentColor",width:this.size,height:this.size,viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"}},[t("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(1 1)","stroke-width":"2"}},[t("circle",{attrs:{cx:"22",cy:"22",r:"6"}},[t("animate",{attrs:{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"22",cy:"22",r:"6"}},[t("animate",{attrs:{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"}})]),t("circle",{attrs:{cx:"22",cy:"22",r:"8"}},[t("animate",{attrs:{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"}})])])])}},QSpinnerTail={name:"QSpinnerTail",mixins:[mixin$1],render:function(t){return t("svg",{staticClass:"q-spinner",class:this.classes,attrs:{width:this.size,height:this.size,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"}},[t("defs",[t("linearGradient",{attrs:{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"}},[t("stop",{attrs:{"stop-color":"currentColor","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"currentColor","stop-opacity":".631",offset:"63.146%"}}),t("stop",{attrs:{"stop-color":"currentColor",offset:"100%"}})])]),t("g",{attrs:{transform:"translate(1 1)",fill:"none","fill-rule":"evenodd"}},[t("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18",stroke:"url(#a)","stroke-width":"2"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}})]),t("circle",{attrs:{fill:"currentColor",cx:"36",cy:"18",r:"1"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"}})])])])}},StepTab={name:"QStepTab",directives:{Ripple:Ripple},props:["vm"],computed:{hasNavigation:function(){return!this.vm.__stepper.noHeaderNavigation},classes:function(){return{"step-error":this.vm.error,"step-active":this.vm.active,"step-done":this.vm.done,"step-navigation":this.vm.done&&this.hasNavigation,"step-waiting":this.vm.waiting,"step-disabled":this.vm.disable,"step-colored":this.vm.active||this.vm.done,"items-center":!this.vm.__stepper.vertical,"items-start":this.vm.__stepper.vertical,"q-stepper-first":this.vm.first,"q-stepper-last":this.vm.last}}},methods:{__select:function(){this.hasNavigation&&this.vm.select()}},render:function(t){var e=this.vm.stepIcon?t(QIcon,{props:{name:this.vm.stepIcon}}):t("span",[this.vm.innerOrder+1]);return t("div",{staticClass:"q-stepper-tab col-grow flex no-wrap relative-position",class:this.classes,on:{click:this.__select},directives:this.hasNavigation?[{name:"ripple",value:this.vm.done}]:null},[t("div",{staticClass:"q-stepper-dot row flex-center q-stepper-line relative-position"},[t("span",{staticClass:"row flex-center"},[e])]),this.vm.title?t("div",{staticClass:"q-stepper-label q-stepper-line relative-position"},[t("div",{staticClass:"q-stepper-title"},[this.vm.title]),t("div",{staticClass:"q-stepper-subtitle"},[this.vm.subtitle])]):null])}},QStep={name:"QStep",inject:{__stepper:{default:function(){console.error("QStep needs to be child of QStepper")}}},props:{name:{type:[Number,String],default:function(){return uid()}},default:Boolean,title:{type:String,required:!0},subtitle:String,icon:String,order:[Number,String],error:Boolean,activeIcon:String,errorIcon:String,doneIcon:String,disable:Boolean},watch:{order:function(){this.__stepper.__sortSteps()}},data:function(){return{innerOrder:0,first:!1,last:!1}},computed:{stepIcon:function(){var t=this.__stepper;return this.active?this.activeIcon||t.activeIcon||this.$q.icon.stepper.active:this.error?this.errorIcon||t.errorIcon||this.$q.icon.stepper.error:this.done&&!this.disable?this.doneIcon||t.doneIcon||this.$q.icon.stepper.done:this.icon},actualOrder:function(){return parseInt(this.order||this.innerOrder,10)},active:function(){return this.__stepper.step===this.name},done:function(){return!this.disable&&this.__stepper.currentOrder>this.innerOrder},waiting:function(){return!this.disable&&this.__stepper.currentOrder<this.innerOrder},style:function(){var t=this.actualOrder;return{"-webkit-box-ordinal-group":t,"-ms-flex-order":t,order:t}},classes:function(){if(!this.__stepper.vertical){var t=[];return!this.active&&t.push("hidden"),null!==this.__stepper.animation&&t.push(this.__stepper.animation),t}}},methods:{select:function(){this.done&&this.__stepper.goToStep(this.name)},__getContainer:function(t){var e=this.active?t("div",{staticClass:"q-stepper-step-content",class:this.classes},[t("div",{staticClass:"q-stepper-step-inner"},this.$slots.default)]):null;return this.__stepper.vertical?t(QSlideTransition,[e]):e}},mounted:function(){this.__stepper.__registerStep(this),this.default&&this.select()},beforeDestroy:function(){this.__stepper.__unregisterStep(this)},render:function(t){return t("div",{staticClass:"q-stepper-step",style:this.style},[this.__stepper.vertical?t(StepTab,{props:{vm:this}}):null,this.__getContainer(t)])}},QStepper={name:"QStepper",props:{value:[Number,String],color:{type:String,default:"primary"},vertical:Boolean,alternativeLabels:Boolean,noHeaderNavigation:Boolean,contractable:Boolean,doneIcon:Boolean,activeIcon:Boolean,errorIcon:Boolean},data:function(){return{animation:null,step:this.value||null,steps:[]}},provide:function(){return{__stepper:this}},watch:{value:function(t){this.goToStep(t)},step:function(t,e){if(!this.vertical){var i=this.steps.findIndex(function(e){return e.name===t}),s=this.steps.findIndex(function(t){return t.name===e});this.animation=i<s?"animate-fade-left":i>s?"animate-fade-right":null}}},computed:{classes:function(){var t=["q-stepper-"+(this.vertical?"vertical":"horizontal"),"text-"+this.color];return this.contractable&&t.push("q-stepper-contractable"),t},hasSteps:function(){return this.steps.length>0},currentStep:function(){var t=this;if(this.hasSteps)return this.steps.find(function(e){return e.name===t.step})},currentOrder:function(){if(this.currentStep)return this.currentStep.innerOrder},length:function(){return this.steps.length}},methods:{goToStep:function(t){var e=this;this.step!==t&&void 0!==t&&(this.step=t,this.$emit("input",t),this.$emit("step",t),this.$nextTick(function(){JSON.stringify(t)!==JSON.stringify(e.value)&&e.$emit("change",t)}))},next:function(){this.__go(1)},previous:function(){this.__go(-1)},reset:function(){this.hasSteps&&this.goToStep(this.steps[0].name)},__go:function(t){var e,i=this.currentOrder;if(void 0===i){if(!this.hasSteps)return;e=this.steps[0].name}else{do{i+=t}while(i>=0&&i<this.length-1&&this.steps[i].disable);if(i<0||i>this.length-1||this.steps[i].disable)return;e=this.steps[i].name}this.goToStep(e)},__sortSteps:function(){var t=this;this.steps.sort(function(t,e){return t.actualOrder-e.actualOrder});var e=this.steps.length-1;this.steps.forEach(function(t,i){t.innerOrder=i,t.first=0===i,t.last=i===e}),this.$nextTick(function(){t.steps.some(function(t){return t.active})||t.goToStep(t.steps[0].name)})},__registerStep:function(t){return this.steps.push(t),this.__sortSteps(),this},__unregisterStep:function(t){this.steps=this.steps.filter(function(e){return e!==t})}},created:function(){this.__sortSteps=frameDebounce(this.__sortSteps)},render:function(t){return t("div",{staticClass:"q-stepper column overflow-hidden relative-position",class:this.classes},[this.vertical?null:t("div",{staticClass:"q-stepper-header row items-stretch justify-between shadow-1",class:{"alternative-labels":this.alternativeLabels}},this.steps.map(function(e){return t(StepTab,{key:e.name,props:{vm:e}})})),this.$slots.default])}},QStepperNavigation={name:"QStepperNavigation",render:function(t){return t("div",{staticClass:"q-stepper-nav order-last row items-center"},[this.$slots.left,t("div",{staticClass:"col"}),this.$slots.default])}},TabMixin={directives:{Ripple:Ripple},props:{label:String,icon:String,disable:Boolean,hidden:Boolean,hide:{type:String,default:""},name:{type:String,default:function(){return uid()}},alert:Boolean,count:[Number,String],color:String,tabindex:Number},inject:{data:{default:function(){console.error("QTab/QRouteTab components need to be child of QTabs")}},selectTab:{}},watch:{active:function(t){t&&this.$emit("select",this.name)}},computed:{active:function(){return this.data.tabName===this.name},classes:function(){var t={active:this.active,hidden:this.hidden,disabled:this.disable,"q-tab-full":this.icon&&this.label,"q-tab-only-label":!this.icon&&this.label,"hide-none":!this.hide,"hide-icon":"icon"===this.hide,"hide-label":"label"===this.hide},e=this.data.inverted?this.color||this.data.textColor||this.data.color:this.color;return e&&(t["text-"+e]=!0),t},barStyle:function(){if(!this.active||!this.data.highlight)return"display: none;"},computedTabIndex:function(){return this.disable||this.active?-1:this.tabindex||0}},methods:{__getTabMeta:function(t){return this.count?[t(QChip,{staticClass:"q-tab-meta",props:{floating:!0}},[this.count])]:this.alert?[t("div",{staticClass:"q-tab-meta q-dot"})]:void 0},__getTabContent:function(t){var e=[];return this.icon&&e.push(t("div",{staticClass:"q-tab-icon-parent relative-position"},[t(QIcon,{staticClass:"q-tab-icon",props:{name:this.icon}}),this.__getTabMeta(t)])),this.label&&e.push(t("div",{staticClass:"q-tab-label-parent relative-position"},[t("div",{staticClass:"q-tab-label"},[this.label]),this.__getTabMeta(t)])),(e=e.concat(this.$slots.default)).push(t("div",{staticClass:"q-tabs-bar",style:this.barStyle,class:this.data.underlineClass})),e.push(t("div",{staticClass:"q-tab-focus-helper absolute-full",attrs:{tabindex:this.computedTabIndex}})),e}}},QRouteTab={name:"QRouteTab",mixins:[TabMixin,RouterLinkMixin],inject:{selectTabRouter:{}},watch:{$route:function(){this.checkIfSelected()}},methods:{select:function(){this.$emit("click",this.name),this.disable||(this.$el.dispatchEvent(evt),this.selectTabRouter({value:this.name,selected:!0}))},checkIfSelected:function(){var t=this;this.$nextTick(function(){if(t.$el.classList.contains("q-router-link-exact-active"))t.selectTabRouter({value:t.name,selectable:!0,exact:!0});else if(t.$el.classList.contains("q-router-link-active")){var e=t.$router.resolve(t.to,void 0,t.append);t.selectTabRouter({value:t.name,selectable:!0,priority:e.href.length})}else t.active&&t.selectTabRouter({value:null})})}},mounted:function(){this.checkIfSelected()},render:function(t){var e=this;return t("router-link",{props:{tag:"a",to:this.to,exact:this.exact,append:this.append,replace:this.replace,event:routerLinkEventName,activeClass:"q-router-link-active",exactActiveClass:"q-router-link-exact-active"},attrs:{tabindex:-1},nativeOn:{click:this.select,keyup:function(t){return 13===t.keyCode&&e.select(t)}},staticClass:"q-link q-tab column flex-center relative-position",class:this.classes,directives:[{name:"ripple"}]},this.__getTabContent(t))}},QTab={name:"QTab",mixins:[TabMixin],props:{default:Boolean},methods:{select:function(){this.$emit("click",this.name),this.disable||this.selectTab(this.name)}},mounted:function(){this.default&&!this.disable&&this.select()},render:function(t){var e=this;return t("div",{staticClass:"q-tab column flex-center relative-position",class:this.classes,attrs:{"data-tab-name":this.name},on:{click:this.select,keyup:function(t){return 13===t.keyCode&&e.select(t)}},directives:[{name:"ripple"}]},this.__getTabContent(t))}},QTabPane={name:"QTabPane",inject:{data:{default:function(){console.error("QTabPane needs to be child of QTabs")}}},props:{name:{type:String,required:!0},keepAlive:Boolean},data:function(){return{shown:!1}},computed:{active:function(){return this.data.tabName===this.name},classes:function(){return{hidden:!this.active,"animate-fade-left":"left"===this.data.direction,"animate-fade-right":"right"===this.data.direction}}},render:function(t){var e=t("div",{staticClass:"q-tab-pane",class:this.classes},this.$slots.default);if(this.keepAlive){if(!this.shown&&!this.active)return;return this.shown=!0,e}if(this.shown=this.active,this.active)return e}},scrollNavigationSpeed=5,debounceDelay=50;function getUnderlineClass(t){if(t)return"text-"+t}var QTabs={name:"QTabs",provide:function(){return{data:this.data,selectTab:this.selectTab,selectTabRouter:this.selectTabRouter}},directives:{TouchSwipe:TouchSwipe},props:{value:String,align:{type:String,default:"left",validator:function(t){return["left","center","right","justify"].includes(t)}},position:{type:String,default:"top",validator:function(t){return["top","bottom"].includes(t)}},color:{type:String,default:"primary"},textColor:String,inverted:Boolean,twoLines:Boolean,glossy:Boolean,animated:Boolean,swipeable:Boolean,panesContainerClass:String,underlineColor:String},data:function(){return{currentEl:null,posbar:{width:0,left:0},data:{highlight:!0,tabName:this.value||"",color:this.color,textColor:this.textColor,inverted:this.inverted,underlineClass:getUnderlineClass(this.underlineColor),direction:null}}},watch:{value:function(t){this.selectTab(t)},color:function(t){this.data.color=t},textColor:function(t){this.data.textColor=t},inverted:function(t){this.data.inverted=t},underlineColor:function(t){this.data.underlineClass=getUnderlineClass(t)}},computed:{classes:function(){return["q-tabs-position-"+this.position,"q-tabs-"+(this.inverted?"inverted":"normal"),this.twoLines?"q-tabs-two-lines":""]},innerClasses:function(){var t=["q-tabs-align-"+this.align];return this.glossy&&t.push("glossy"),this.inverted?t.push("text-"+(this.textColor||this.color)):(t.push("bg-"+this.color),t.push("text-"+(this.textColor||"white"))),t},posbarClasses:function(){var t=[];return this.inverted&&t.push("text-"+(this.textColor||this.color)),this.data.highlight&&t.push("highlight"),t}},methods:{go:function(t){var e=0;if(this.data.tabName){var i=this.$refs.scroller.querySelector('[data-tab-name="'+this.data.tabName+'"]');i&&(e=Array.prototype.indexOf.call(this.$refs.scroller.children,i))}var s=this.$refs.scroller.querySelectorAll("[data-tab-name]");(e+=t)>-1&&e<s.length&&this.selectTab(s[e].getAttribute("data-tab-name"))},previous:function(){this.go(-1)},next:function(){this.go(1)},selectTab:function(t){if(this.data.tabName!==t){this.data.tabName=t;var e=this.__getTabElByName(t);if(e)if(this.__scrollToTab(e),this.currentEl=e,this.oldEl){if(this.animated){var i=this.$refs.scroller.children;this.data.direction=Array.prototype.indexOf.call(i,e)<Array.prototype.indexOf.call(i,this.oldEl)?"left":"right"}this.__repositionBar()}else this.oldEl=e;else this.oldEl=null,this.data.direction=null;this.$emit("input",t,this.data.direction),this.$emit("select",t,this.data.direction)}},selectTabRouter:function(t){var e=this,i=t.value,s=t.selectable,n=t.exact,o=t.selected,r=t.priority,a=!this.buffer.length,l=a?-1:this.buffer.findIndex(function(t){return t.value===i});if(l>-1){var c=this.buffer[l];n&&(c.exact=n),s&&(c.selectable=s),o&&(c.selected=o),r&&(c.priority=r)}else this.buffer.push(t);a&&(this.bufferTimer=setTimeout(function(){var t=e.buffer.find(function(t){return t.exact&&t.selected})||e.buffer.find(function(t){return t.selectable&&t.selected})||e.buffer.find(function(t){return t.exact})||e.buffer.filter(function(t){return t.selectable}).sort(function(t,e){return e.priority-t.priority})[0]||e.buffer[0];e.buffer.length=0,e.selectTab(t.value)},100))},__swipe:function(t){this.go("left"===t.direction?1:-1)},__repositionBar:function(){var t=this;clearTimeout(this.timer);var e=!1,i=this.$refs.posbar,s=this.currentEl;if(!1!==this.data.highlight&&(this.data.highlight=!1,e=!0),!s)return this.finalPosbar={width:0,left:0},void this.__setPositionBar(0,0);var n=i.parentNode.offsetLeft;e&&this.oldEl&&this.__setPositionBar(this.oldEl.getBoundingClientRect().width,this.oldEl.offsetLeft-n),this.timer=setTimeout(function(){var e=s.getBoundingClientRect().width,o=s.offsetLeft-n;i.classList.remove("contract"),t.oldEl=s,t.finalPosbar={width:e,left:o},t.__setPositionBar(t.posbar.left<o?o+e-t.posbar.left:t.posbar.left+t.posbar.width-o,t.posbar.left<o?t.posbar.left:o)},20)},__setPositionBar:function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=0),this.posbar.width!==t||this.posbar.left!==e){this.posbar={width:t,left:e};var i=this.$q.i18n.rtl?e+t:e;css(this.$refs.posbar,cssTransform("translateX("+i+"px) scaleX("+t+")"))}else this.__updatePosbarTransition()},__updatePosbarTransition:function(){if(this.finalPosbar.width===this.posbar.width&&this.finalPosbar.left===this.posbar.left)return this.posbar={},void(!0!==this.data.highlight&&(this.data.highlight=!0));this.$refs.posbar.classList.add("contract"),this.__setPositionBar(this.finalPosbar.width,this.finalPosbar.left)},__redraw:function(){this.$q.platform.is.desktop&&(this.scrollerWidth=width(this.$refs.scroller),0===this.scrollerWidth&&0===this.$refs.scroller.scrollWidth||(this.scrollerWidth+5<this.$refs.scroller.scrollWidth?(this.$refs.tabs.classList.add("scrollable"),this.scrollable=!0,this.__updateScrollIndicator()):(this.$refs.tabs.classList.remove("scrollable"),this.scrollable=!1)))},__updateScrollIndicator:function(){if(this.$q.platform.is.desktop&&this.scrollable){var t=this.$refs.scroller.scrollLeft+width(this.$refs.scroller)+5>=this.$refs.scroller.scrollWidth?"add":"remove";this.$refs.leftScroll.classList[this.$refs.scroller.scrollLeft<=0?"add":"remove"]("disabled"),this.$refs.rightScroll.classList[t]("disabled")}},__getTabElByName:function(t){var e=this.$children.find(function(e){return e.name===t&&e.$el&&1===e.$el.nodeType});if(e)return e.$el},__findTabAndScroll:function(t,e){var i=this;setTimeout(function(){i.__scrollToTab(i.__getTabElByName(t),e)},4*debounceDelay)},__scrollToTab:function(t,e){if(t&&this.scrollable){var i=this.$refs.scroller.getBoundingClientRect(),s=t.getBoundingClientRect(),n=s.width,o=s.left-i.left;o<0?e?this.$refs.scroller.scrollLeft+=o:this.__animScrollTo(this.$refs.scroller.scrollLeft+o):(o+=n-this.$refs.scroller.offsetWidth)>0&&(e?this.$refs.scroller.scrollLeft+=o:this.__animScrollTo(this.$refs.scroller.scrollLeft+o))}},__animScrollTo:function(t){var e=this;this.__stopAnimScroll(),this.__scrollTowards(t),this.scrollTimer=setInterval(function(){e.__scrollTowards(t)&&e.__stopAnimScroll()},5)},__scrollToStart:function(){this.__animScrollTo(0)},__scrollToEnd:function(){this.__animScrollTo(9999)},__stopAnimScroll:function(){clearInterval(this.scrollTimer)},__scrollTowards:function(t){var e=this.$refs.scroller.scrollLeft,i=t<e?-1:1,s=!1;return(e+=i*scrollNavigationSpeed)<0?(s=!0,e=0):(-1===i&&e<=t||1===i&&e>=t)&&(s=!0,e=t),this.$refs.scroller.scrollLeft=e,s}},render:function(t){return t("div",{staticClass:"q-tabs flex no-wrap overflow-hidden",class:this.classes},[t("div",{staticClass:"q-tabs-head row",ref:"tabs",class:this.innerClasses},[t("div",{ref:"scroller",staticClass:"q-tabs-scroller row no-wrap"},[this.$slots.title,t("div",{staticClass:"relative-position self-stretch q-tabs-global-bar-container",class:this.posbarClasses},[t("div",{ref:"posbar",staticClass:"q-tabs-bar q-tabs-global-bar",class:this.data.underlineClass,on:{transitionend:this.__updatePosbarTransition}})])]),t("div",{ref:"leftScroll",staticClass:"row flex-center q-tabs-left-scroll",on:{mousedown:this.__scrollToStart,touchstart:this.__scrollToStart,mouseup:this.__stopAnimScroll,mouseleave:this.__stopAnimScroll,touchend:this.__stopAnimScroll}},[t(QIcon,{props:{name:this.$q.icon.tabs.left}})]),t("div",{ref:"rightScroll",staticClass:"row flex-center q-tabs-right-scroll",on:{mousedown:this.__scrollToEnd,touchstart:this.__scrollToEnd,mouseup:this.__stopAnimScroll,mouseleave:this.__stopAnimScroll,touchend:this.__stopAnimScroll}},[t(QIcon,{props:{name:this.$q.icon.tabs.right}})])]),t("div",{staticClass:"q-tabs-panes",class:this.panesContainerClass,directives:this.swipeable?[{name:"touch-swipe",value:this.__swipe}]:null},this.$slots.default)])},created:function(){this.timer=null,this.scrollTimer=null,this.bufferTimer=null,this.buffer=[],this.scrollable=!this.$q.platform.is.desktop,this.__redraw=debounce(this.__redraw,debounceDelay),this.__updateScrollIndicator=debounce(this.__updateScrollIndicator,debounceDelay)},mounted:function(){var t=this;this.$nextTick(function(){t.$refs.scroller&&(t.$refs.scroller.addEventListener("scroll",t.__updateScrollIndicator,listenOpts.passive),window.addEventListener("resize",t.__redraw,listenOpts.passive),""!==t.data.tabName&&t.value&&t.selectTab(t.value),t.__redraw(),t.__findTabAndScroll(t.data.tabName,!0))})},beforeDestroy:function(){clearTimeout(this.timer),clearTimeout(this.bufferTimer),this.__stopAnimScroll(),this.$refs.scroller.removeEventListener("scroll",this.__updateScrollIndicator,listenOpts.passive),window.removeEventListener("resize",this.__redraw,listenOpts.passive),this.__redraw.cancel(),this.__updateScrollIndicator.cancel()}},Top={computed:{marginalsProps:function(){return{pagination:this.computedPagination,pagesNumber:this.pagesNumber,isFirstPage:this.isFirstPage,isLastPage:this.isLastPage,prevPage:this.prevPage,nextPage:this.nextPage,inFullscreen:this.inFullscreen,toggleFullscreen:this.toggleFullscreen}}},methods:{getTop:function(t){var e=this.$scopedSlots.top,i=this.$scopedSlots["top-left"],s=this.$scopedSlots["top-right"],n=this.$scopedSlots["top-selection"],o=this.hasSelectionMode&&n&&this.rowsSelectedNumber>0,r="q-table-top relative-position row items-center",a=[];return e?t("div",{staticClass:r},[e(this.marginalsProps)]):(o?a.push(n(this.marginalsProps)):i?a.push(t("div",{staticClass:"q-table-control"},[i(this.marginalsProps)])):this.title&&a.push(t("div",{staticClass:"q-table-control"},[t("div",{staticClass:"q-table-title"},this.title)])),s&&(a.push(t("div",{staticClass:"q-table-separator col"})),a.push(t("div",{staticClass:"q-table-control"},[s(this.marginalsProps)]))),0!==a.length?t("div",{staticClass:r},a):void 0)}}},QTh={name:"QTh",props:{props:Object,autoWidth:Boolean},render:function(t){var e,i=this;if(!this.props)return t("td",{class:{"q-table-col-auto-width":this.autoWidth}},this.$slots.default);var s=this.$vnode.key,n=[].concat(this.$slots.default);if(s){if(!(e=this.props.colsMap[s]))return}else e=this.props.col;e.sortable&&n["right"===e.align?"unshift":"push"](t(QIcon,{props:{name:this.$q.icon.table.arrowUp},staticClass:e.__iconClass}));return t("th",{class:[e.__thClass,{"q-table-col-auto-width":this.autoWidth}],on:e.sortable?{click:function(){i.props.sort(e)}}:null},n)}},TableHeader={methods:{getTableHeader:function(t){var e=[this.getTableHeaderRow(t)];return this.loading&&e.push(t("tr",{staticClass:"q-table-progress animate-fade"},[t("td",{attrs:{colspan:"100%"}},[t(QProgress,{props:{color:this.color,indeterminate:!0,height:"2px"}})])])),t("thead",e)},getTableHeaderRow:function(t){var e,i=this,s=this.$scopedSlots.header,n=this.$scopedSlots["header-cell"];if(s)return s(this.addTableHeaderRowMeta({header:!0,cols:this.computedCols,sort:this.sort,colsMap:this.computedColsMap}));e=n?function(t){return n({col:t,cols:i.computedCols,sort:i.sort,colsMap:i.computedColsMap})}:function(e){return t(QTh,{key:e.name,props:{props:{col:e,cols:i.computedCols,sort:i.sort,colsMap:i.computedColsMap}},style:e.style,class:e.classes},e.label)};var o=this.computedCols.map(e);return this.singleSelection&&!this.grid?o.unshift(t("th",{staticClass:"q-table-col-auto-width"},[" "])):this.multipleSelection&&o.unshift(t("th",{staticClass:"q-table-col-auto-width"},[t(QCheckbox,{props:{color:this.color,value:this.someRowsSelected?null:this.allRowsSelected,dark:this.dark},on:{input:function(t){i.someRowsSelected&&(t=!1),i.__updateSelection(i.computedRows.map(function(t){return t[i.rowKey]}),i.computedRows,t)}}})])),t("tr",o)},addTableHeaderRowMeta:function(t){var e=this;return this.multipleSelection&&(Object.defineProperty(t,"selected",{get:function(){return e.someRowsSelected?"some":e.allRowsSelected},set:function(t){e.someRowsSelected&&(t=!1),e.__updateSelection(e.computedRows.map(function(t){return t[e.rowKey]}),e.computedRows,t)}}),t.partialSelected=this.someRowsSelected,t.multipleSelect=!0),t}}},TableBody={methods:{getTableBody:function(t){var e=this,i=this.$scopedSlots.body,s=this.$scopedSlots["body-cell"],n=this.$scopedSlots["top-row"],o=this.$scopedSlots["bottom-row"],r=[];return r=i?this.computedRows.map(function(t){var s=t[e.rowKey],n=e.isRowSelected(s);return i(e.addBodyRowMeta({key:s,row:t,cols:e.computedCols,colsMap:e.computedColsMap,__trClass:n?"selected":""}))}):this.computedRows.map(function(i){var n=i[e.rowKey],o=e.isRowSelected(n),r=s?e.computedCols.map(function(t){return s(e.addBodyCellMetaData({row:i,col:t}))}):e.computedCols.map(function(s){var n=e.$scopedSlots["body-cell-"+s.name];return n?n(e.addBodyCellMetaData({row:i,col:s})):t("td",{staticClass:s.__tdClass,style:s.style,class:s.classes},e.getCellValue(s,i))});return e.hasSelectionMode&&r.unshift(t("td",{staticClass:"q-table-col-auto-width"},[t(QCheckbox,{props:{value:o,color:e.color,dark:e.dark},on:{input:function(t){e.__updateSelection([n],[i],t)}}})])),t("tr",{key:n,class:{selected:o}},r)}),n&&r.unshift(n({cols:this.computedCols})),o&&r.push(o({cols:this.computedCols})),t("tbody",r)},addBodyRowMeta:function(t){var e=this;return this.hasSelectionMode&&Object.defineProperty(t,"selected",{get:function(){return e.isRowSelected(t.key)},set:function(i){e.__updateSelection([t.key],[t.row],i)}}),Object.defineProperty(t,"expand",{get:function(){return!0===e.rowsExpanded[t.key]},set:function(i){e.$set(e.rowsExpanded,t.key,i)}}),t.cols=t.cols.map(function(i){var s=Object.assign({},i);return Object.defineProperty(s,"value",{get:function(){return e.getCellValue(i,t.row)}}),s}),t},addBodyCellMetaData:function(t){var e=this;return Object.defineProperty(t,"value",{get:function(){return e.getCellValue(t.col,t.row)}}),t},getCellValue:function(t,e){var i="function"==typeof t.field?t.field(e):e[t.field];return t.format?t.format(i):i}}},Bottom={computed:{navIcon:function(){var t=[this.$q.icon.table.prevPage,this.$q.icon.table.nextPage];return this.$q.i18n.rtl?t.reverse():t}},methods:{getBottom:function(t){if(!this.hideBottom){if(this.nothingToDisplay){var e=this.filter?this.noResultsLabel||this.$q.i18n.table.noResults:this.loading?this.loadingLabel||this.$q.i18n.table.loading:this.noDataLabel||this.$q.i18n.table.noData;return t("div",{staticClass:"q-table-bottom row items-center q-table-nodata"},[t(QIcon,{props:{name:this.$q.icon.table.warning}}),e])}var i=this.$scopedSlots.bottom;return t("div",{staticClass:"q-table-bottom row items-center",class:i?null:"justify-end"},i?[i(this.marginalsProps)]:this.getPaginationRow(t))}},getPaginationRow:function(t){var e=this,i=this.computedPagination.rowsPerPage,s=this.paginationLabel||this.$q.i18n.table.pagination,n=this.$scopedSlots.pagination;return[t("div",{staticClass:"q-table-control"},[t("div",[this.hasSelectionMode&&this.rowsSelectedNumber>0?(this.selectedRowsLabel||this.$q.i18n.table.selectedRecords)(this.rowsSelectedNumber):""])]),t("div",{staticClass:"q-table-separator col"}),this.rowsPerPageOptions.length>1&&t("div",{staticClass:"q-table-control"},[t("span",{staticClass:"q-table-bottom-item"},[this.rowsPerPageLabel||this.$q.i18n.table.recordsPerPage]),t(QSelect,{staticClass:"inline q-table-bottom-item",props:{color:this.color,value:i,options:this.computedRowsPerPageOptions,dark:this.dark,hideUnderline:!0},on:{input:function(t){e.setPagination({page:1,rowsPerPage:t})}}})])||void 0,t("div",{staticClass:"q-table-control"},[n?n(this.marginalsProps):[t("span",{staticClass:"q-table-bottom-item"},[i?s(this.firstRowIndex+1,Math.min(this.lastRowIndex,this.computedRowsNumber),this.computedRowsNumber):s(1,this.computedRowsNumber,this.computedRowsNumber)]),t(QBtn,{props:{color:this.color,round:!0,icon:this.navIcon[0],dense:!0,flat:!0,disable:this.isFirstPage},on:{click:this.prevPage}}),t(QBtn,{props:{color:this.color,round:!0,icon:this.navIcon[1],dense:!0,flat:!0,disable:this.isLastPage},on:{click:this.nextPage}})]])]}}};function sortDate(t,e){return new Date(t)-new Date(e)}var Sort={props:{sortMethod:{type:Function,default:function(t,e,i){var s=this.columns.find(function(t){return t.name===e});if(null===s||void 0===s.field)return t;var n=i?-1:1,o="function"==typeof s.field?function(t){return s.field(t)}:function(t){return t[s.field]};return t.sort(function(t,e){var i,r=o(t),a=o(e);return null===r||void 0===r?-1*n:null===a||void 0===a?1*n:s.sort?s.sort(r,a)*n:isNumber(r)&&isNumber(a)?(r-a)*n:isDate(r)&&isDate(a)?sortDate(r,a)*n:"boolean"==typeof r&&"boolean"==typeof a?(t-e)*n:(r=(i=[r,a].map(function(t){return(t+"").toLowerCase()}))[0])<(a=i[1])?-1*n:r===a?0:n})}}},computed:{columnToSort:function(){var t=this.computedPagination.sortBy;if(t)return this.columns.find(function(e){return e.name===t})||null}},methods:{sort:function(t){t===Object(t)&&(t=t.name);var e=this.computedPagination,i=e.sortBy,s=e.descending;i!==t?(i=t,s=!1):this.binaryStateSort?s=!s:s?i=null:s=!0,this.setPagination({sortBy:i,descending:s,page:1})}}},Filter={props:{filter:[String,Object],filterMethod:{type:Function,default:function(t,e,i,s){void 0===i&&(i=this.computedCols),void 0===s&&(s=this.getCellValue);var n=e?e.toLowerCase():"";return t.filter(function(t){return i.some(function(e){return-1!==(s(e,t)+"").toLowerCase().indexOf(n)})})}}},watch:{filter:function(){var t=this;this.$nextTick(function(){t.setPagination({page:1},!0)})}}};function samePagination(t,e){for(var i in e)if(e[i]!==t[i])return!1;return!0}function fixPagination(t){return t.page<1&&(t.page=1),void 0!==t.rowsPerPage&&t.rowsPerPage<1&&(t.rowsPerPage=0),t}var Pagination={props:{pagination:Object,rowsPerPageOptions:{type:Array,default:function(){return[3,5,7,10,15,20,25,50,0]}}},data:function(){return{innerPagination:{sortBy:null,descending:!1,page:1,rowsPerPage:5}}},computed:{computedPagination:function(){return fixPagination(Object.assign({},this.innerPagination,this.pagination))},firstRowIndex:function(){var t=this.computedPagination;return(t.page-1)*t.rowsPerPage},lastRowIndex:function(){var t=this.computedPagination;return t.page*t.rowsPerPage},isFirstPage:function(){return 1===this.computedPagination.page},pagesNumber:function(){return Math.max(1,Math.ceil(this.computedRowsNumber/this.computedPagination.rowsPerPage))},isLastPage:function(){return 0===this.lastRowIndex||this.computedPagination.page>=this.pagesNumber},computedRowsPerPageOptions:function(){var t=this;return this.rowsPerPageOptions.map(function(e){return{label:0===e?t.$q.i18n.table.allRows:""+e,value:e}})}},watch:{pagesNumber:function(t,e){if(t!==e){var i=this.computedPagination.page;t&&!i?this.setPagination({page:1}):t<i&&this.setPagination({page:t})}}},methods:{__sendServerRequest:function(t){this.requestServerInteraction({pagination:t,filter:this.filter})},setPagination:function(t,e){var i=fixPagination(Object.assign({},this.computedPagination,t));samePagination(this.computedPagination,i)?this.isServerSide&&e&&this.__sendServerRequest(i):this.isServerSide?this.__sendServerRequest(i):this.pagination?this.$emit("update:pagination",i):this.innerPagination=i},prevPage:function(){var t=this.computedPagination.page;t>1&&this.setPagination({page:t-1})},nextPage:function(){var t=this.computedPagination,e=t.page,i=t.rowsPerPage;this.lastRowIndex>0&&e*i<this.computedRowsNumber&&this.setPagination({page:e+1})}},created:function(){this.$emit("update:pagination",Object.assign({},this.computedPagination))}},RowSelection={props:{selection:{type:String,default:"none",validator:function(t){return["single","multiple","none"].includes(t)}},selected:{type:Array,default:function(){return[]}}},computed:{selectedKeys:function(){var t=this,e={};return this.selected.map(function(e){return e[t.rowKey]}).forEach(function(t){e[t]=!0}),e},hasSelectionMode:function(){return"none"!==this.selection},singleSelection:function(){return"single"===this.selection},multipleSelection:function(){return"multiple"===this.selection},allRowsSelected:function(){var t=this;if(this.multipleSelection)return this.computedRows.length>0&&this.computedRows.every(function(e){return!0===t.selectedKeys[e[t.rowKey]]})},someRowsSelected:function(){var t=this;if(this.multipleSelection)return!this.allRowsSelected&&this.computedRows.some(function(e){return!0===t.selectedKeys[e[t.rowKey]]})},rowsSelectedNumber:function(){return this.selected.length}},methods:{isRowSelected:function(t){return!0===this.selectedKeys[t]},clearSelection:function(){this.$emit("update:selected",[])},__updateSelection:function(t,e,i){var s=this;this.singleSelection?this.$emit("update:selected",i?e:[]):this.$emit("update:selected",i?this.selected.concat(e):this.selected.filter(function(e){return!t.includes(e[s.rowKey])}))}}},ColumnSelection={props:{visibleColumns:Array},computed:{computedCols:function(){var t=this,e=this.computedPagination,i=e.sortBy,s=e.descending;return(this.visibleColumns?this.columns.filter(function(e){return e.required||t.visibleColumns.includes(e.name)}):this.columns).map(function(t){return t.align=t.align||"right",t.__iconClass="q-table-sort-icon q-table-sort-icon-"+t.align,t.__thClass="text-"+t.align+(t.sortable?" sortable":"")+(t.name===i?" sorted "+(s?"sort-desc":""):""),t.__tdClass="text-"+t.align,t})},computedColsMap:function(){var t={};return this.computedCols.forEach(function(e){t[e.name]=e}),t}}},Expand={data:function(){return{rowsExpanded:{}}}},QTable={name:"QTable",mixins:[FullscreenMixin,Top,TableHeader,TableBody,Bottom,Sort,Filter,Pagination,RowSelection,ColumnSelection,Expand],props:{data:{type:Array,default:function(){return[]}},rowKey:{type:String,default:"id"},color:{type:String,default:"grey-8"},grid:Boolean,dense:Boolean,columns:Array,loading:Boolean,title:String,hideHeader:Boolean,hideBottom:Boolean,dark:Boolean,separator:{type:String,default:"horizontal",validator:function(t){return["horizontal","vertical","cell","none"].includes(t)}},binaryStateSort:Boolean,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,tableStyle:{type:[String,Array,Object],default:""},tableClass:{type:[String,Array,Object],default:""}},computed:{computedData:function(){var t=this.data.slice().map(function(t,e){return t.__index=e,t});if(0===t.length)return{rowsNumber:0,rows:[]};if(this.isServerSide)return{rows:t};var e=this.computedPagination,i=e.sortBy,s=e.descending,n=e.rowsPerPage;this.filter&&(t=this.filterMethod(t,this.filter,this.computedCols,this.getCellValue)),this.columnToSort&&(t=this.sortMethod(t,i,s));var o=t.length;return n&&(t=t.slice(this.firstRowIndex,this.lastRowIndex)),{rowsNumber:o,rows:t}},computedRows:function(){return this.computedData.rows},computedRowsNumber:function(){return this.isServerSide?this.computedPagination.rowsNumber||0:this.computedData.rowsNumber},nothingToDisplay:function(){return 0===this.computedRows.length},isServerSide:function(){return void 0!==this.computedPagination.rowsNumber}},render:function(t){return t("div",{class:{"q-table-grid":this.grid,"q-table-container":!0,"q-table-dark":this.dark,"q-table-dense":this.dense,fullscreen:this.inFullscreen,scroll:this.inFullscreen}},[this.getTop(t),this.getBody(t),this.getBottom(t)])},methods:{requestServerInteraction:function(t){var e=this;this.$nextTick(function(){e.$emit("request",{pagination:t.pagination||e.computedPagination,filter:t.filter||e.filter,getCellValue:e.getCellValue})})},getBody:function(t){var e=this,i=!this.hideHeader;if(this.grid){var s=this.$scopedSlots.item;if(void 0!==s)return[i&&t("div",{staticClass:"q-table-middle scroll"},[t("table",{staticClass:"q-table"+(this.dark?" q-table-dark":"")},[this.getTableHeader(t)])])||null,t("div",{staticClass:"row"},this.computedRows.map(function(t){var i=t[e.rowKey],n=e.isRowSelected(i);return s(e.addBodyRowMeta({key:i,row:t,cols:e.computedCols,colsMap:e.computedColsMap,__trClass:n?"selected":""}))}))]}return t("div",{staticClass:"q-table-middle scroll",class:this.tableClass,style:this.tableStyle},[t("table",{staticClass:"q-table q-table-"+this.separator+"-separator"+(this.dark?" q-table-dark":"")},[i&&this.getTableHeader(t)||null,this.getTableBody(t)])])}}},QTr={name:"QTr",props:{props:Object},render:function(t){return t("tr",!this.props||this.props.header?{}:{class:this.props.__trClass},this.$slots.default)}},QTd={name:"QTd",props:{props:Object,autoWidth:Boolean},render:function(t){if(!this.props)return t("td",{class:{"q-table-col-auto-width":this.autoWidth}},this.$slots.default);var e,i=this.$vnode.key;if(i){if(!(e=this.props.colsMap[i]))return}else e=this.props.col;return t("td",{class:[e.__tdClass,{"q-table-col-auto-width":this.autoWidth}]},this.$slots.default)}},QTableColumns={name:"QTableColumns",props:{value:{type:Array,required:!0},label:String,columns:{type:Array,required:!0},color:String},computed:{computedOptions:function(){return this.columns.filter(function(t){return!t.required}).map(function(t){return{value:t.name,label:t.label}})}},render:function(t){var e=this;return t(QSelect,{props:{multiple:!0,toggle:!0,value:this.value,options:this.computedOptions,displayValue:this.label||this.$q.i18n.table.columns,color:this.color,hideUnderline:!0},on:{input:function(t){e.$emit("input",t)},change:function(t){e.$emit("change",t)}}})}},QTimeline={name:"QTimeline",provide:function(){return{__timeline:this}},props:{color:{type:String,default:"primary"},responsive:Boolean,noHover:Boolean,dark:Boolean},render:function(t){return t("ul",{staticClass:"q-timeline",class:{"q-timeline-dark":this.dark,"q-timeline-responsive":this.responsive,"q-timeline-hover":!this.noHover}},this.$slots.default)}},QTimelineEntry={name:"QTimelineEntry",inject:{__timeline:{default:function(){console.error("QTimelineEntry needs to be child of QTimeline")}}},props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:function(t){return["left","right"].includes(t)}},icon:String,color:String,title:String,subtitle:String},computed:{colorClass:function(){return"text-"+(this.color||this.__timeline.color)},classes:function(){return["q-timeline-entry-"+("left"===this.side?"left":"right"),this.icon?"q-timeline-entry-with-icon":""]}},render:function(t){return this.heading?t("div",{staticClass:"q-timeline-heading"},[t("div"),t("div"),t(this.tag,{staticClass:"q-timeline-heading-title"},this.$slots.default)]):t("li",{staticClass:"q-timeline-entry",class:this.classes},[t("div",{staticClass:"q-timeline-subtitle"},[t("span",this.subtitle)]),t("div",{staticClass:"q-timeline-dot",class:this.colorClass},[this.icon?t(QIcon,{staticClass:"row items-center justify-center",props:{name:this.icon}}):null]),t("div",{staticClass:"q-timeline-content"},[t("h6",{staticClass:"q-timeline-title"},[this.title])].concat(this.$slots.default))])}},QToolbar={name:"QToolbar",props:{color:{type:String,default:"primary"},textColor:String,inverted:Boolean,glossy:Boolean},computed:{classes:function(){var t=["q-toolbar-"+(this.inverted?"inverted":"normal")];return this.glossy&&t.push("glossy"),this.inverted?t.push("text-"+(this.textColor||this.color)):(t.push("bg-"+this.color),t.push("text-"+(this.textColor||"white"))),t}},render:function(t){return t("div",{staticClass:"q-toolbar row no-wrap items-center relative-position",class:this.classes},this.$slots.default)}},QToolbarTitle={name:"QToolbarTitle",props:{shrink:Boolean},render:function(t){return t("div",{staticClass:"q-toolbar-title",class:this.shrink?"col-auto":null},[this.$slots.default,this.$slots.subtitle?t("div",{staticClass:"q-toolbar-subtitle"},this.$slots.subtitle):null])}},QTree={name:"QTree",directives:{Ripple:Ripple},props:{nodes:Array,nodeKey:{type:String,required:!0},labelKey:{type:String,default:"label"},color:{type:String,default:"grey"},controlColor:String,textColor:String,dark:Boolean,icon:String,tickStrategy:{type:String,default:"none",validator:function(t){return["none","strict","leaf","leaf-filtered"].includes(t)}},ticked:Array,expanded:Array,selected:{},defaultExpandAll:Boolean,accordion:Boolean,filter:String,filterMethod:{type:Function,default:function(t,e){var i=e.toLowerCase();return t[this.labelKey]&&t[this.labelKey].toLowerCase().indexOf(i)>-1}},noNodesLabel:String,noResultsLabel:String},computed:{hasRipple:function(){return!this.noRipple},classes:function(){return["text-"+this.color,{"q-tree-dark":this.dark}]},hasSelection:function(){return void 0!==this.selected},computedIcon:function(){return this.icon||this.$q.icon.tree.icon},computedControlColor:function(){return this.controlColor||this.color},contentClass:function(){return"text-"+(this.textColor||(this.dark?"white":"black"))},meta:function(){var t=this,e={},i=function(s,n){var o=s.tickStrategy||(n?n.tickStrategy:t.tickStrategy),r=s[t.nodeKey],a=s.children&&s.children.length>0,l=!a,c=!s.disabled&&t.hasSelection&&!1!==s.selectable,h=!s.disabled&&!1!==s.expandable,u="none"!==o,d="strict"===o,p="leaf-filtered"===o,f="leaf"===o||"leaf-filtered"===o,m=!s.disabled&&!1!==s.tickable;f&&m&&n&&!n.tickable&&(m=!1);var g=s.lazy;g&&t.lazy[r]&&(g=t.lazy[r]);var v={key:r,parent:n,isParent:a,isLeaf:l,lazy:g,disabled:s.disabled,link:c||h&&(a||!0===g),children:[],matchesFilter:!t.filter||t.filterMethod(s,t.filter),selected:r===t.selected&&c,selectable:c,expanded:!!a&&t.innerExpanded.includes(r),expandable:h,noTick:s.noTick||!d&&g&&"loaded"!==g,tickable:m,tickStrategy:o,hasTicking:u,strictTicking:d,leafFilteredTicking:p,leafTicking:f,ticked:d?t.innerTicked.includes(r):!!l&&t.innerTicked.includes(r)};if(e[r]=v,a&&(v.children=s.children.map(function(t){return i(t,v)}),t.filter&&(v.matchesFilter||(v.matchesFilter=v.children.some(function(t){return t.matchesFilter})),v.matchesFilter&&!v.noTick&&!v.disabled&&v.tickable&&p&&v.children.every(function(t){return!t.matchesFilter||t.noTick||!t.tickable})&&(v.tickable=!1)),v.matchesFilter&&(v.noTick||d||!v.children.every(function(t){return t.noTick})||(v.noTick=!0),f&&(v.ticked=!1,v.indeterminate=v.children.some(function(t){return t.indeterminate}),!v.indeterminate)))){var b=v.children.reduce(function(t,e){return e.ticked?t+1:t},0);b===v.children.length?v.ticked=!0:b>0&&(v.indeterminate=!0)}return v};return this.nodes.forEach(function(t){return i(t,null)}),e}},data:function(){return{lazy:{},innerTicked:this.ticked||[],innerExpanded:this.expanded||[]}},watch:{ticked:function(t){this.innerTicked=t},expanded:function(t){this.innerExpanded=t}},methods:{getNodeByKey:function(t){var e=this,i=[].reduce,s=function(n,o){return n||!o?n:Array.isArray(o)?i.call(Object(o),s,n):o[e.nodeKey]===t?o:o.children?s(null,o.children):void 0};return s(null,this.nodes)},getTickedNodes:function(){var t=this;return this.innerTicked.map(function(e){return t.getNodeByKey(e)})},getExpandedNodes:function(){var t=this;return this.innerExpanded.map(function(e){return t.getNodeByKey(e)})},isExpanded:function(t){return!(!t||!this.meta[t])&&this.meta[t].expanded},collapseAll:function(){void 0!==this.expanded?this.$emit("update:expanded",[]):this.innerExpanded=[]},expandAll:function(){var t=this,e=this.innerExpanded,i=function(s){s.children&&s.children.length>0&&!1!==s.expandable&&!0!==s.disabled&&(e.push(s[t.nodeKey]),s.children.forEach(i))};this.nodes.forEach(i),void 0!==this.expanded?this.$emit("update:expanded",e):this.innerExpanded=e},setExpanded:function(t,e,i,s){var n=this;if(void 0===i&&(i=this.getNodeByKey(t)),void 0===s&&(s=this.meta[t]),s.lazy&&"loaded"!==s.lazy){if("loading"===s.lazy)return;this.$set(this.lazy,t,"loading"),this.$emit("lazy-load",{node:i,key:t,done:function(e){n.lazy[t]="loaded",e&&(i.children=e),n.$nextTick(function(){var e=n.meta[t];e&&e.isParent&&n.__setExpanded(t,!0)})},fail:function(){n.$delete(n.lazy,t)}})}else s.isParent&&s.expandable&&this.__setExpanded(t,e)},__setExpanded:function(t,e){var i=this,s=this.innerExpanded,n=void 0!==this.expanded;if(n&&(s=s.slice()),e){if(this.accordion&&this.meta[t]){var o=[];this.meta[t].parent?this.meta[t].parent.children.forEach(function(e){e.key!==t&&e.expandable&&o.push(e.key)}):this.nodes.forEach(function(e){var s=e[i.nodeKey];s!==t&&o.push(s)}),o.length>0&&(s=s.filter(function(t){return!o.includes(t)}))}s=s.concat([t]).filter(function(t,e,i){return i.indexOf(t)===e})}else s=s.filter(function(e){return e!==t});n?this.$emit("update:expanded",s):this.innerExpanded=s},isTicked:function(t){return!(!t||!this.meta[t])&&this.meta[t].ticked},setTicked:function(t,e){var i=this.innerTicked,s=void 0!==this.ticked;s&&(i=i.slice()),i=e?i.concat(t).filter(function(t,e,i){return i.indexOf(t)===e}):i.filter(function(e){return!t.includes(e)}),s&&this.$emit("update:ticked",i)},__getSlotScope:function(t,e,i){var s=this,n={tree:this,node:t,key:i,color:this.color,dark:this.dark};return Object.defineProperty(n,"expanded",{get:function(){return e.expanded},set:function(t){t!==e.expanded&&s.setExpanded(i,t)}}),Object.defineProperty(n,"ticked",{get:function(){return e.ticked},set:function(t){t!==e.ticked&&s.setTicked([i],t)}}),n},__getChildren:function(t,e){var i=this;return(this.filter?e.filter(function(t){return i.meta[t[i.nodeKey]].matchesFilter}):e).map(function(e){return i.__getNode(t,e)})},__getNodeMedia:function(t,e){return e.icon?t(QIcon,{staticClass:"q-tree-icon q-mr-sm",props:{name:e.icon,color:e.iconColor}}):e.img||e.avatar?t("img",{staticClass:"q-tree-img q-mr-sm",class:{avatar:e.avatar},attrs:{src:e.img||e.avatar}}):void 0},__getNode:function(t,e){var i=this,s=e[this.nodeKey],n=this.meta[s],o=e.header&&this.$scopedSlots["header-"+e.header]||this.$scopedSlots["default-header"],r=n.isParent?this.__getChildren(t,e.children):[],a=r.length>0||n.lazy&&"loaded"!==n.lazy,l=e.body&&this.$scopedSlots["body-"+e.body]||this.$scopedSlots["default-body"],c=o||l?this.__getSlotScope(e,n,s):null;return l&&(l=t("div",{staticClass:"q-tree-node-body relative-position"},[t("div",{class:this.contentClass},[l(c)])])),t("div",{key:s,staticClass:"q-tree-node",class:{"q-tree-node-parent":a,"q-tree-node-child":!a}},[t("div",{staticClass:"q-tree-node-header relative-position row no-wrap items-center",class:{"q-tree-node-link":n.link,"q-tree-node-selected":n.selected,disabled:n.disabled},on:{click:function(){i.__onClick(e,n)}},directives:n.selectable?[{name:"ripple"}]:null},["loading"===n.lazy?t(QSpinner,{staticClass:"q-tree-node-header-media q-mr-xs",props:{color:this.computedControlColor}}):a?t(QIcon,{staticClass:"q-tree-arrow q-mr-xs transition-generic",class:{"q-tree-arrow-rotate":n.expanded},props:{name:this.computedIcon},nativeOn:{click:function(t){i.__onExpandClick(e,n,t)}}}):null,t("span",{staticClass:"row no-wrap items-center",class:this.contentClass},[n.hasTicking&&!n.noTick?t(QCheckbox,{staticClass:"q-mr-xs",props:{value:n.indeterminate?null:n.ticked,color:this.computedControlColor,dark:this.dark,keepColor:!0,disable:!n.tickable},on:{input:function(t){i.__onTickedClick(e,n,t)}}}):null,o?o(c):[this.__getNodeMedia(t,e),t("span",e[this.labelKey])]])]),a?t(QSlideTransition,[t("div",{directives:[{name:"show",value:n.expanded}],staticClass:"q-tree-node-collapsible",class:"text-"+this.color},[l,t("div",{staticClass:"q-tree-children",class:{disabled:n.disabled}},r)])]):l])},__onClick:function(t,e){this.hasSelection?e.selectable&&this.$emit("update:selected",e.key!==this.selected?e.key:null):this.__onExpandClick(t,e),"function"==typeof t.handler&&t.handler(t)},__onExpandClick:function(t,e,i){void 0!==i&&i.stopPropagation(),this.setExpanded(e.key,!e.expanded,t,e)},__onTickedClick:function(t,e,i){if(e.indeterminate&&i&&(i=!1),e.strictTicking)this.setTicked([e.key],i);else if(e.leafTicking){var s=[],n=function(t){t.isParent?(i||t.noTick||!t.tickable||s.push(t.key),t.leafTicking&&t.children.forEach(n)):t.noTick||!t.tickable||t.leafFilteredTicking&&!t.matchesFilter||s.push(t.key)};n(e),this.setTicked(s,i)}}},render:function(t){var e=this.__getChildren(t,this.nodes);return t("div",{staticClass:"q-tree relative-position",class:this.classes},0===e.length?this.filter?this.noResultsLabel||this.$q.i18n.tree.noResults:this.noNodesLabel||this.$q.i18n.tree.noNodes:e)},created:function(){this.defaultExpandAll&&this.expandAll()}};function initFile(t){t.__doneUploading=!1,t.__failed=!1,t.__uploaded=0,t.__progress=0}var QUploader={name:"QUploader",mixins:[FrameMixin],props:{name:{type:String,default:"file"},headers:Object,url:{type:String,required:!0},urlFactory:{type:Function,required:!1},uploadFactory:Function,additionalFields:{type:Array,default:function(){return[]}},noContentType:Boolean,method:{type:String,default:"POST"},filter:Function,extensions:String,multiple:Boolean,hideUploadButton:Boolean,hideUploadProgress:Boolean,noThumbnails:Boolean,autoExpand:Boolean,expandStyle:[Array,String,Object],expandClass:[Array,String,Object],withCredentials:Boolean,sendRaw:{type:Boolean,default:!1}},data:function(){return{queue:[],files:[],uploading:!1,uploadedSize:0,totalSize:0,xhrs:[],focused:!1,dnd:!1,expanded:!1}},computed:{queueLength:function(){return this.queue.length},hasExpandedContent:function(){return this.files.length>0},label:function(){var t=humanStorageSize(this.totalSize);return this.uploading?this.progress.toFixed(2)+"% ("+humanStorageSize(this.uploadedSize)+" / "+t+")":this.queueLength+" ("+t+")"},progress:function(){return this.totalSize?Math.min(99.99,this.uploadedSize/this.totalSize*100):0},addDisabled:function(){return!this.multiple&&this.queueLength>=1},filesStyle:function(){if(this.maxHeight)return{maxHeight:this.maxHeight}},dndClass:function(){var t=["text-"+this.color];return this.isInverted&&t.push("inverted"),t},classes:function(){return{"q-uploader-expanded":this.expanded,"q-uploader-dark":this.dark,"q-uploader-files-no-border":this.isInverted||!this.hideUnderline}},progressColor:function(){return this.dark?"white":"grey"},computedExtensions:function(){if(this.extensions)return this.extensions.split(",").map(function(t){return(t=t.trim()).endsWith("/*")&&(t=t.slice(0,t.length-1)),t})}},watch:{hasExpandedContent:function(t){!1===t?this.expanded=!1:this.autoExpand&&(this.expanded=!0)}},methods:{add:function(t){t&&this.__add(null,t)},__onDragOver:function(t){stopAndPrevent(t),this.dnd=!0},__onDragLeave:function(t){stopAndPrevent(t),this.dnd=!1},__onDrop:function(t){stopAndPrevent(t),this.dnd=!1;var e=t.dataTransfer.files;0!==e.length&&(e=this.multiple?e:[e[0]],this.extensions&&0===(e=this.__filter(e)).length||this.__add(null,e))},__filter:function(t){var e=this;return Array.prototype.filter.call(t,function(t){return e.computedExtensions.some(function(e){return t.type.toUpperCase().startsWith(e.toUpperCase())||t.name.toUpperCase().endsWith(e.toUpperCase())})})},__add:function(t,e){var i=this;if(!this.addDisabled){e=Array.prototype.slice.call(e||t.target.files),this.$refs.file.value="";var s=[];e=e.filter(function(t){return!i.queue.some(function(e){return t.name===e.name})}),"function"==typeof this.filter&&(e=this.filter(e)),(e=e.map(function(t){if(initFile(t),t.__size=humanStorageSize(t.size),t.__timestamp=(new Date).getTime(),i.noThumbnails||!t.type.toUpperCase().startsWith("IMAGE"))i.queue.push(t);else{var e=new FileReader,n=new Promise(function(s,n){e.onload=function(e){var n=new Image;n.src=e.target.result,t.__img=n,i.queue.push(t),i.__computeTotalSize(),s(!0)},e.onerror=function(t){n(t)}});e.readAsDataURL(t),s.push(n)}return t})).length>0&&(this.files=this.files.concat(e),Promise.all(s).then(function(){i.$emit("add",e)}),this.__computeTotalSize())}},__computeTotalSize:function(){this.totalSize=this.queueLength?this.queue.map(function(t){return t.size}).reduce(function(t,e){return t+e}):0},__remove:function(t){var e=t.name,i=t.__doneUploading;this.uploading&&!i?(this.$emit("remove:abort",t,t.xhr),t.xhr&&t.xhr.abort(),this.uploadedSize-=t.__uploaded):this.$emit("remove:"+(i?"done":"cancel"),t,t.xhr),i||(this.queue=this.queue.filter(function(t){return t.name!==e})),t.__removed=!0,this.files=this.files.filter(function(t){return t.name!==e}),this.files.length||(this.uploading=!1),this.__computeTotalSize()},__pick:function(){!this.addDisabled&&this.$q.platform.is.mozilla&&this.$refs.file.click()},__getUploadPromise:function(t){var e=this;if(initFile(t),this.uploadFactory){var i=function(i){var s=i*t.size;e.uploadedSize+=s-t.__uploaded,t.__uploaded=s,t.__progress=Math.min(99,parseInt(100*i,10)),e.$forceUpdate()};return new Promise(function(s,n){e.uploadFactory(t,i).then(function(t){t.__doneUploading=!0,t.__progress=100,e.$emit("uploaded",t),e.$forceUpdate(),s(t)}).catch(function(i){t.__failed=!0,e.$emit("fail",t),e.$forceUpdate(),n(i)})})}var s=new FormData,n=new XMLHttpRequest;try{this.additionalFields.forEach(function(t){s.append(t.name,t.value)}),!0!==this.noContentType&&s.append("Content-Type",t.type||"application/octet-stream"),s.append(this.name,t)}catch(t){return}return t.xhr=n,new Promise(function(i,o){n.upload.addEventListener("progress",function(i){if(!t.__removed){i.percent=i.total?i.loaded/i.total:0;var s=i.percent*t.size;e.uploadedSize+=s-t.__uploaded,t.__uploaded=s,t.__progress=Math.min(99,parseInt(100*i.percent,10))}},!1),n.onreadystatechange=function(){n.readyState<4||(n.status&&n.status<400?(t.__doneUploading=!0,t.__progress=100,e.$emit("uploaded",t,n),i(t)):(t.__failed=!0,e.$emit("fail",t,n),o(n)))},n.onerror=function(){t.__failed=!0,e.$emit("fail",t,n),o(n)},(e.urlFactory?e.urlFactory(t):Promise.resolve(e.url)).then(function(i){n.open(e.method,i,!0),e.withCredentials&&(n.withCredentials=!0),e.headers&&Object.keys(e.headers).forEach(function(t){n.setRequestHeader(t,e.headers[t])}),e.xhrs.push(n),e.sendRaw?n.send(t):n.send(s)})})},pick:function(){this.addDisabled||this.$refs.file.click()},upload:function(){var t=this,e=this.queueLength;if(!this.disable&&0!==e){var i=0;this.uploadedSize=0,this.uploading=!0,this.xhrs=[],this.$emit("start");var s=function(){++i===e&&(t.uploading=!1,t.xhrs=[],t.queue=t.queue.filter(function(t){return!t.__doneUploading}),t.__computeTotalSize(),t.$emit("finish"))};this.queue.map(function(e){return t.__getUploadPromise(e)}).forEach(function(t){t.then(s).catch(s)})}},abort:function(){this.xhrs.forEach(function(t){t.abort()}),this.uploading=!1,this.$emit("abort")},reset:function(){this.abort(),this.files=[],this.queue=[],this.expanded=!1,this.__computeTotalSize(),this.$emit("reset")}},render:function(t){var e=this,i=[t("div",{staticClass:"col q-input-target ellipsis",class:this.alignClass},[this.label])];return this.uploading?i.push(t(QSpinner,{slot:"after",staticClass:"q-if-end self-center",props:{size:"24px"}}),t(QIcon,{slot:"after",staticClass:"q-if-end self-center q-if-control",props:{name:this.$q.icon.uploader["clear"+(this.isInverted?"Inverted":"")]},nativeOn:{click:this.abort}})):(i.push(t(QIcon,{slot:"after",staticClass:"q-uploader-pick-button self-center q-if-control relative-position overflow-hidden",props:{name:this.$q.icon.uploader.add},attrs:{disabled:this.addDisabled}},[t("input",{ref:"file",staticClass:"q-uploader-input absolute-full cursor-pointer",attrs:Object.assign({type:"file",accept:this.extensions},this.multiple?{multiple:!0}:{}),on:{change:this.__add}})])),this.hideUploadButton||i.push(t(QIcon,{slot:"after",staticClass:"q-if-control self-center",props:{name:this.$q.icon.uploader.upload},attrs:{disabled:0===this.queueLength},nativeOn:{click:this.upload}}))),this.hasExpandedContent&&i.push(t(QIcon,{slot:"after",staticClass:"q-if-control generic_transition self-center",class:{"rotate-180":this.expanded},props:{name:this.$q.icon.uploader.expand},nativeOn:{click:function(){e.expanded=!e.expanded}}})),t("div",{staticClass:"q-uploader relative-position",class:this.classes,on:{dragover:this.__onDragOver}},[t(QInputFrame,{ref:"input",props:{prefix:this.prefix,suffix:this.suffix,stackLabel:this.stackLabel,floatLabel:this.floatLabel,error:this.error,warning:this.warning,readonly:this.readonly,inverted:this.inverted,invertedLight:this.invertedLight,dark:this.dark,hideUnderline:this.hideUnderline,before:this.before,after:this.after,color:this.color,align:this.align,noParentField:this.noParentField,length:this.queueLength,additionalLength:!0}},i),t(QSlideTransition,[t("div",{class:this.expandClass,style:this.expandStyle,directives:[{name:"show",value:this.expanded}]},[t(QList,{staticClass:"q-uploader-files q-py-none scroll",style:this.filesStyle,props:{dark:this.dark}},this.files.map(function(i){return t(QItem,{key:i.name+i.__timestamp,staticClass:"q-uploader-file q-pa-xs"},[!e.hideUploadProgress&&t(QProgress,{staticClass:"q-uploader-progress-bg absolute-full",props:{color:i.__failed?"negative":e.progressColor,percentage:i.__progress,height:"100%"}})||void 0,!e.hideUploadProgress&&t("div",{staticClass:"q-uploader-progress-text absolute"},[i.__progress+"%"])||void 0,t(QItemSide,{props:i.__img?{image:i.__img.src}:{icon:e.$q.icon.uploader.file,color:e.color}}),t(QItemMain,{props:{label:i.name,sublabel:i.__size}}),t(QItemSide,{props:{right:!0}},[t(QItemTile,{staticClass:"cursor-pointer",props:{icon:e.$q.icon.uploader[i.__doneUploading?"done":"clear"],color:e.color},nativeOn:{click:function(){e.__remove(i)}}})])])}))])]),this.dnd&&t("div",{staticClass:"q-uploader-dnd flex row items-center justify-center absolute-full",class:this.dndClass,on:{dragenter:stopAndPrevent,dragover:stopAndPrevent,dragleave:this.__onDragLeave,drop:this.__onDrop}})||void 0])}},QVideo={name:"QVideo",props:{src:{type:String,required:!0}},computed:{iframeData:function(){return{attrs:{src:this.src,frameborder:"0",allowfullscreen:!0}}}},render:function(t){return t("div",{staticClass:"q-video"},[t("iframe",this.iframeData)])}},components$1=Object.freeze({QActionSheet:QActionSheet,QAjaxBar:QAjaxBar,QAlert:QAlert,QAutocomplete:QAutocomplete,QBreadcrumbs:QBreadcrumbs,QBreadcrumbsEl:QBreadcrumbsEl,QBtn:QBtn,QBtnGroup:QBtnGroup,QBtnDropdown:QBtnDropdown,QBtnToggle:QBtnToggle,QCard:QCard,QCardTitle:QCardTitle,QCardMain:QCardMain,QCardActions:QCardActions,QCardMedia:QCardMedia,QCardSeparator:QCardSeparator,QCarousel:QCarousel,QCarouselSlide:QCarouselSlide,QCarouselControl:QCarouselControl,QChatMessage:QChatMessage,QCheckbox:QCheckbox,QChip:QChip,QChipsInput:QChipsInput,QCollapsible:QCollapsible,QColor:QColor,QColorPicker:QColorPicker,QContextMenu:QContextMenu,QDatetime:QDatetime,QDatetimePicker:QDatetimePicker,QDialog:QDialog,QEditor:QEditor,QFab:QFab,QFabAction:QFabAction,QField:QField,QIcon:QIcon,QInfiniteScroll:QInfiniteScroll,QInnerLoading:QInnerLoading,QInput:QInput,QInputFrame:QInputFrame,QJumbotron:QJumbotron,QKnob:QKnob,QLayout:QLayout,QLayoutDrawer:QLayoutDrawer,QLayoutFooter:QLayoutFooter,QLayoutHeader:QLayoutHeader,QPage:QPage,QPageContainer:QPageContainer,QPageSticky:QPageSticky,QItem:QItem,QItemSeparator:QItemSeparator,QItemMain:QItemMain,QItemSide:QItemSide,QItemTile:QItemTile,QItemWrapper:QItemWrapper,QList:QList,QListHeader:QListHeader,QModal:QModal,QModalLayout:QModalLayout,QNoSsr:QNoSsr,QResizeObservable:QResizeObservable,QScrollObservable:QScrollObservable,QWindowResizeObservable:QWindowResizeObservable,QOptionGroup:QOptionGroup,QPagination:QPagination,QParallax:QParallax,QPopover:QPopover,QPopupEdit:QPopupEdit,QProgress:QProgress,QPullToRefresh:QPullToRefresh,QRadio:QRadio,QRange:QRange,QRating:QRating,QScrollArea:QScrollArea,QSearch:QSearch,QSelect:QSelect,QSlideTransition:QSlideTransition,QSlider:QSlider,QSpinner:QSpinner,QSpinnerAudio:QSpinnerAudio,QSpinnerBall:QSpinnerBall,QSpinnerBars:QSpinnerBars,QSpinnerCircles:QSpinnerCircles,QSpinnerComment:QSpinnerComment,QSpinnerCube:QSpinnerCube,QSpinnerDots:QSpinnerDots,QSpinnerFacebook:QSpinnerFacebook,QSpinnerGears:QSpinnerGears,QSpinnerGrid:QSpinnerGrid,QSpinnerHearts:QSpinnerHearts,QSpinnerHourglass:QSpinnerHourglass,QSpinnerInfinity:QSpinnerInfinity,QSpinnerIos:QSpinner_ios,QSpinnerMat:DefaultSpinner,QSpinnerOval:QSpinnerOval,QSpinnerPie:QSpinnerPie,QSpinnerPuff:QSpinnerPuff,QSpinnerRadio:QSpinnerRadio,QSpinnerRings:QSpinnerRings,QSpinnerTail:QSpinnerTail,QStep:QStep,QStepper:QStepper,QStepperNavigation:QStepperNavigation,QRouteTab:QRouteTab,QTab:QTab,QTabPane:QTabPane,QTabs:QTabs,QTable:QTable,QTh:QTh,QTr:QTr,QTd:QTd,QTableColumns:QTableColumns,QTimeline:QTimeline,QTimelineEntry:QTimelineEntry,QToggle:QToggle,QToolbar:QToolbar,QToolbarTitle:QToolbarTitle,QTooltip:QTooltip,QTree:QTree,QUploader:QUploader,QVideo:QVideo});function updateBinding(t,e){var i=e.value,s=(e.modifiers,t.__qbacktotop);if(i){if("number"==typeof i)return s.offset=i,void s.update();if(i&&Object(i)!==i)console.error("v-back-to-top requires an object {offset, duration} as parameter",t);else{if(i.offset){if("number"!=typeof i.offset)return void console.error("v-back-to-top requires a number as offset",t);s.offset=i.offset}if(i.duration){if("number"!=typeof i.duration)return void console.error("v-back-to-top requires a number as duration",t);s.duration=i.duration}s.update()}}else s.update()}var backToTop={name:"back-to-top",bind:function(t){var e={offset:200,duration:300,updateNow:function(){var i=getScrollPosition(e.scrollTarget)<=e.offset;i!==t.classList.contains("hidden")&&t.classList[i?"add":"remove"]("hidden")},goToTop:function(){setScrollPosition(e.scrollTarget,0,e.animate?e.duration:0)},goToTopKey:function(t){13===t.keyCode&&setScrollPosition(e.scrollTarget,0,e.animate?e.duration:0)}};e.update=debounce(e.updateNow,25),t.classList.add("hidden"),t.__qbacktotop=e},inserted:function(t,e){var i=t.__qbacktotop;i.scrollTarget=getScrollTarget(t),i.animate=e.modifiers.animate,updateBinding(t,e),i.scrollTarget.addEventListener("scroll",i.update,listenOpts.passive),window.addEventListener("resize",i.update,listenOpts.passive),t.addEventListener("click",i.goToTop),t.addEventListener("keyup",i.goToTopKey)},update:function(t,e){JSON.stringify(e.oldValue)!==JSON.stringify(e.value)?updateBinding(t,e):setTimeout(function(){t.__qbacktotop&&t.__qbacktotop.updateNow()},0)},unbind:function(t){var e=t.__qbacktotop;e&&(e.scrollTarget.removeEventListener("scroll",e.update,listenOpts.passive),window.removeEventListener("resize",e.update,listenOpts.passive),t.removeEventListener("click",e.goToTop),t.removeEventListener("keyup",e.goToTopKey),delete t.__qbacktotop)}},closeOverlay={name:"close-overlay",bind:function(t,e,i){var s=function(t){for(var e=i.componentInstance;e=e.$parent;){var s=e.$options.name;if("QPopover"===s||"QModal"===s){e.hide(t);break}}},n=function(t){13===t.keyCode&&s(t)};t.__qclose={handler:s,handlerKey:n},t.addEventListener("click",s),t.addEventListener("keyup",n)},unbind:function(t){var e=t.__qclose;e&&(t.removeEventListener("click",e.handler),t.removeEventListener("keyup",e.handlerKey),delete t.__qclose)}},goBack={name:"go-back",bind:function(t,e,i){var s=e.value,n=e.modifiers,o={value:s,position:window.history.length-1,single:n.single};Platform.is.cordova?o.goBack=function(){i.context.$router.go(o.single?-1:o.position-window.history.length)}:o.goBack=function(){i.context.$router.replace(o.value)},o.goBackKey=function(t){13===t.keyCode&&o.goBack(t)},t.__qgoback=o,t.addEventListener("click",o.goBack),t.addEventListener("keyup",o.goBackKey)},update:function(t,e){e.oldValue!==e.value&&(t.__qgoback.value=e.value)},unbind:function(t){var e=t.__qgoback;e&&(t.removeEventListener("click",e.goBack),t.removeEventListener("keyup",e.goBackKey),delete t.__qgoback)}};function updateBinding$1(t,e){var i=t.__qscrollfire;if("function"!=typeof e.value)return i.scrollTarget.removeEventListener("scroll",i.scroll),void console.error("v-scroll-fire requires a function as parameter",t);i.handler=e.value,"function"!=typeof e.oldValue&&(i.scrollTarget.addEventListener("scroll",i.scroll,listenOpts.passive),i.scroll())}var scrollFire={name:"scroll-fire",bind:function(t,e){var i={scroll:debounce(function(){var e,s;i.scrollTarget===window?(s=t.getBoundingClientRect().bottom,e=window.innerHeight):(s=offset(t).top+height(t),e=offset(i.scrollTarget).top+height(i.scrollTarget)),s>0&&s<e&&(i.scrollTarget.removeEventListener("scroll",i.scroll,listenOpts.passive),i.handler(t))},25)};t.__qscrollfire=i},inserted:function(t,e){t.__qscrollfire.scrollTarget=getScrollTarget(t),updateBinding$1(t,e)},update:function(t,e){e.value!==e.oldValue&&updateBinding$1(t,e)},unbind:function(t){var e=t.__qscrollfire;e&&(e.scrollTarget.removeEventListener("scroll",e.scroll,listenOpts.passive),delete t.__qscrollfire)}};function updateBinding$2(t,e){var i=t.__qscroll;if("function"!=typeof e.value)return i.scrollTarget.removeEventListener("scroll",i.scroll,listenOpts.passive),void console.error("v-scroll requires a function as parameter",t);i.handler=e.value,"function"!=typeof e.oldValue&&i.scrollTarget.addEventListener("scroll",i.scroll,listenOpts.passive)}var scroll$1={name:"scroll",bind:function(t,e){var i={scroll:function(){i.handler(getScrollPosition(i.scrollTarget),getHorizontalScrollPosition(i.scrollTarget))}};t.__qscroll=i},inserted:function(t,e){t.__qscroll.scrollTarget=getScrollTarget(t),updateBinding$2(t,e)},update:function(t,e){e.oldValue!==e.value&&updateBinding$2(t,e)},unbind:function(t){var e=t.__qscroll;e&&(e.scrollTarget.removeEventListener("scroll",e.scroll,listenOpts.passive),delete t.__qscroll)}};function updateBinding$3(t,e){var i=t.__qtouchhold;i.duration=parseInt(e.arg,10)||600,e.oldValue!==e.value&&(i.handler=e.value)}var touchHold={name:"touch-hold",bind:function(t,e){var i=!e.modifiers.noMouse,s=e.modifiers.stop,n=e.modifiers.prevent,o={mouseStart:function(t){leftClick(t)&&(document.addEventListener("mousemove",o.mouseAbort),document.addEventListener("mouseup",o.mouseAbort),o.start(t))},mouseAbort:function(t){document.removeEventListener("mousemove",o.mouseAbort),document.removeEventListener("mouseup",o.mouseAbort),o.abort(t)},start:function(t){var e=(new Date).getTime();s&&t.stopPropagation(),n&&t.preventDefault(),o.timer=setTimeout(function(){i&&(document.removeEventListener("mousemove",o.mouseAbort),document.removeEventListener("mouseup",o.mouseAbort)),o.handler({evt:t,position:position(t),duration:(new Date).getTime()-e})},o.duration)},abort:function(t){clearTimeout(o.timer),o.timer=null}};t.__qtouchhold=o,updateBinding$3(t,e),i&&t.addEventListener("mousedown",o.mouseStart),t.addEventListener("touchstart",o.start),t.addEventListener("touchmove",o.abort),t.addEventListener("touchend",o.abort)},update:function(t,e){updateBinding$3(t,e)},unbind:function(t,e){var i=t.__qtouchhold;i&&(t.removeEventListener("touchstart",i.start),t.removeEventListener("touchend",i.abort),t.removeEventListener("touchmove",i.abort),t.removeEventListener("mousedown",i.mouseStart),document.removeEventListener("mousemove",i.mouseAbort),document.removeEventListener("mouseup",i.mouseAbort),delete t.__qtouchhold)}},directives=Object.freeze({BackToTop:backToTop,CloseOverlay:closeOverlay,GoBack:goBack,Ripple:Ripple,ScrollFire:scrollFire,Scroll:scroll$1,TouchHold:touchHold,TouchPan:TouchPan,TouchSwipe:TouchSwipe});function objectWithoutProperties(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&-1===e.indexOf(s)&&(i[s]=t[s]);return i}function modalFn(t,e){return function(i,s){var n=i.className,o=objectWithoutProperties(i,["className"]);return new Promise(function(i,r){if(isSSR)return i();var a=document.createElement("div");document.body.appendChild(a);var l=function(t){i(t),h.$destroy()},c=function(t){r(t||new Error),h.$destroy()},h=new e({el:a,data:function(){return{props:o}},render:function(e){return e(t,{ref:"modal",props:o,class:n,on:{ok:l,cancel:c}})},mounted:function(){this.$refs.modal.show()}});s&&s.then(l,c)})}}var metaValue,actionSheet={install:function(t){var e=t.$q,i=t.Vue;this.create=e.actionSheet=modalFn(QActionSheet,i)}};function getProp(){return Platform.is.winphone?"msapplication-navbutton-color":Platform.is.safari?"apple-mobile-web-app-status-bar-style":"theme-color"}function getMetaTag(t){var e=document.getElementsByTagName("META");for(var i in e)if(e[i].name===t)return e[i]}function setColor(t){void 0===metaValue&&(metaValue=getProp());var e=getMetaTag(metaValue),i=void 0===e;i&&(e=document.createElement("meta")).setAttribute("name",metaValue),e.setAttribute("content",t),i&&document.head.appendChild(e)}var addressbarColor={install:function(t){var e=t.$q,i=(t.Vue,t.cfg);this.set=!isSSR&&Platform.is.mobile&&(Platform.is.cordova||Platform.is.winphone||Platform.is.safari||Platform.is.webkit||Platform.is.vivaldi)?function(t){var e=t||getBrand("primary");Platform.is.cordova&&window.StatusBar?window.StatusBar.backgroundColorByHexString(e):setColor(e)}:function(){},e.addressbarColor=this,i.addressbarColor&&this.set(i.addressbarColor)}},prefixes={},appFullscreen={isCapable:!1,isActive:!1,request:function(t){this.isCapable&&!this.isActive&&(t=t||document.documentElement)[prefixes.request]()},exit:function(){this.isCapable&&this.isActive&&document[prefixes.exit]()},toggle:function(t){this.isActive?this.exit():this.request(t)},install:function(t){var e=this,i=t.$q,s=t.Vue;i.fullscreen=this,isSSR||(prefixes.request=["requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen"].find(function(t){return document.documentElement[t]}),this.isCapable=void 0!==prefixes.request,this.isCapable&&(prefixes.exit=["exitFullscreen","msExitFullscreen","mozCancelFullScreen","webkitExitFullscreen"].find(function(t){return document[t]}),this.isActive=!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement),["onfullscreenchange","onmsfullscreenchange","onmozfullscreenchange","onwebkitfullscreenchange"].forEach(function(t){document[t]=function(){e.isActive=!e.isActive}}),s.util.defineReactive(this,"isActive",this.isActive)))}},appVisibility={appVisible:!1,install:function(t){var e=this,i=t.$q,s=t.Vue;if(isSSR)this.appVisible=i.appVisible=!0;else{var n,o;void 0!==document.hidden?(n="hidden",o="visibilitychange"):void 0!==document.msHidden?(n="msHidden",o="msvisibilitychange"):void 0!==document.webkitHidden&&(n="webkitHidden",o="webkitvisibilitychange");var r=function(){e.appVisible=i.appVisible=!document[n]};r(),o&&void 0!==document[n]&&(s.util.defineReactive(i,"appVisible",this.appVisible),document.addEventListener(o,r,!1))}}};function encode(t){return encodeURIComponent(t)}function decode(t){return decodeURIComponent(t)}function stringifyCookieValue(t){return encode(t===Object(t)?JSON.stringify(t):""+t)}function read(t){if(""===t)return t;0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),t=decode(t.replace(/\+/g," "));try{t=JSON.parse(t)}catch(t){}return t}function set(t,e,i,s){void 0===i&&(i={});var n=i.expires,o="number"==typeof i.expires;o&&(n=new Date).setMilliseconds(n.getMilliseconds()+864e5*i.expires);var r=encode(t)+"="+stringifyCookieValue(e),a=[r,n?"; Expires="+n.toUTCString():"",i.path?"; Path="+i.path:"",i.domain?"; Domain="+i.domain:"",i.httpOnly?"; HttpOnly":"",i.secure?"; Secure":""].join("");if(s){s.res.setHeader("Set-Cookie",a);var l=s.req.headers.cookie||"";if(o&&i.expires<0){var c=get(t,s);void 0!==c&&(l=l.replace(t+"="+c+"; ","").replace("; "+t+"="+c,"").replace(t+"="+c,""))}else l=l?r+"; "+l:a;s.req.headers.cookie=l}else document.cookie=a}function get(t,e){for(var i,s,n,o=t?void 0:{},r=e?e.req.headers:document,a=r.cookie?r.cookie.split("; "):[],l=0,c=a.length;l<c;l++)if(s=decode((i=a[l].split("=")).shift()),n=i.join("="),t){if(t===s){o=read(n);break}}else o[s]=n;return o}function remove(t,e,i){set(t,"",Object.assign({},e,{expires:-1}),i)}function has(t,e){return void 0!==get(t,e)}function getObject(t){void 0===t&&(t={});var e=t.ssr;return{get:function(t){return get(t,e)},set:function(t,i,s){return set(t,i,s,e)},has:function(t){return has(t,e)},remove:function(t,i){return remove(t,i,e)},all:function(){return get(null,e)}}}var vm,timeout,updateId,ssrTakeover,cookies={parseSSR:function(t){return t?getObject({ssr:t}):this},install:function(t){var e=t.$q,i=t.queues;isSSR?i.server.push(function(t,e){t.cookies=getObject(e)}):(Object.assign(this,getObject()),e.cookies=this)}},dialog={install:function(t){var e=t.$q,i=t.Vue;this.create=e.dialog=modalFn(QDialog,i)}},loadingBar={start:function(){},stop:function(){},increment:function(){},install:function(t){var e=t.$q,i=t.Vue,s=t.cfg;if(isSSR)e.loadingBar=this;else{var n=e.loadingBar=new i({render:function(t){return t(QAjaxBar,{ref:"bar",props:s.loadingBar})}}).$mount().$refs.bar;Object.assign(this,{start:n.start,stop:n.stop,increment:n.increment}),document.body.appendChild(e.loadingBar.$parent.$el)}}},props={},defaults={delay:0,message:!1,spinnerSize:80,spinnerColor:"white",messageColor:"white",spinner:QSpinner,customClass:!1},staticClass="q-loading animate-fade fullscreen column flex-center z-max",loading={isActive:!1,show:function(t){var e=this;isSSR||("string"==typeof(props=Object.assign({},defaults,t)).customClass&&(props.customClass=props.customClass.trim()),this.isActive?vm&&vm.$forceUpdate():(timeout=setTimeout(function(){timeout=null;var t=document.createElement("div");document.body.appendChild(t),document.body.classList.add("with-loading"),vm=new e.__Vue({name:"QLoading",el:t,render:function(t){return t("div",{staticClass:staticClass,class:props.customClass},[t(props.spinner,{props:{color:props.spinnerColor,size:props.spinnerSize}}),props.message?t("div",{class:"text-"+props.messageColor,domProps:{innerHTML:props.message}}):null])}})},props.delay),this.isActive=!0))},hide:function(){this.isActive&&(timeout?(clearTimeout(timeout),timeout=null):(vm.$destroy(),document.body.classList.remove("with-loading"),vm.$el.remove(),vm=null),this.isActive=!1)},setDefaults:function(t){Object.assign(defaults,t)},__Vue:null,install:function(t){var e=t.$q,i=t.Vue,s=t.cfg.loading;s&&this.setDefaults(s),e.loading=this,this.__Vue=i}};function normalize(t){t.title&&(t.title=t.titleTemplate?t.titleTemplate(t.title||""):t.title,delete t.titleTemplate),[["meta","content"],["link","href"]].forEach(function(e){var i=t[e[0]],s=e[1];for(var n in i){var o=i[n];o.template&&(1===Object.keys(o).length?delete i[n]:(o[s]=o.template(o[s]||""),delete o.template))}})}function changed(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!0;for(var i in t)if(t[i]!==e[i])return!0}function bodyFilter(t){return!["class","style"].includes(t)}function htmlFilter(t){return!["lang","dir"].includes(t)}function diff(t,e){var i={},s={};return t?(t.title!==e.title&&(i.title=e.title),["meta","link","script","htmlAttr","bodyAttr"].forEach(function(n){var o=t[n],r=e[n];if(s[n]=[],o){for(var a in i[n]={},o)r.hasOwnProperty(a)||s[n].push(a);for(var l in r)o.hasOwnProperty(l)?changed(o[l],r[l])&&(s[n].push(l),i[n][l]=r[l]):i[n][l]=r[l]}else i[n]=r}),{add:i,remove:s}):{add:e,remove:s}}function apply(t){var e=t.add,i=t.remove;e.title&&(document.title=e.title),Object.keys(i).length>0&&(["meta","link","script"].forEach(function(t){i[t].forEach(function(e){document.head.querySelector(t+'[data-qmeta="'+e+'"]').remove()})}),i.htmlAttr.filter(htmlFilter).forEach(function(t){document.documentElement.removeAttribute(t)}),i.bodyAttr.filter(bodyFilter).forEach(function(t){document.body.removeAttribute(t)})),["meta","link","script"].forEach(function(t){var i=e[t];for(var s in i){var n=document.createElement(t);for(var o in i[s])"innerHTML"!==o&&n.setAttribute(o,i[s][o]);n.setAttribute("data-qmeta",s),"script"===t&&(n.innerHTML=i[s].innerHTML||""),document.head.appendChild(n)}}),Object.keys(e.htmlAttr).filter(htmlFilter).forEach(function(t){document.documentElement.setAttribute(t,e.htmlAttr[t]||"")}),Object.keys(e.bodyAttr).filter(bodyFilter).forEach(function(t){document.body.setAttribute(t,e.bodyAttr[t]||"")})}function parseMeta(t,e){if(!t._inactive){var i=t.$options.meta;i&&(extend(!0,e,t.__qMeta),i.stopPropagation)||t.$children&&t.$children.forEach(function(t){parseMeta(t,e)})}}function updateClient(){if(ssrTakeover)return ssrTakeover=!1,this.$root.__currentMeta=window.__Q_META__,void document.body.querySelector("script[data-qmeta-init]").remove();var t={title:"",titleTemplate:null,meta:{},link:{},script:{},htmlAttr:{},bodyAttr:{}};parseMeta(this.$root,t),normalize(t),apply(diff(this.$root.__currentMeta,t)),this.$root.__currentMeta=t}function getAttr(t){return function(e){var i=t[e];return e+(void 0!==i?'="'+i+'"':"")}}function getHead(t){var e="";return t.title&&(e+="<title>"+t.title+"</title>"),["meta","link","script"].forEach(function(i){var s=t[i];for(var n in s){var o=Object.keys(s[n]).filter(function(t){return"innerHTML"!==t}).map(getAttr(s[n]));e+="<"+i+" "+o.join(" ")+' data-qmeta="'+n+'">',"script"===i&&(e+=(s[n].innerHTML||"")+"<\/script>")}}),e}function getServerMeta(t,e){var i={title:"",titleTemplate:null,meta:{},link:{},htmlAttr:{},bodyAttr:{},noscript:{}};parseMeta(t,i),normalize(i);var s={"%%Q_HTML_ATTRS%%":Object.keys(i.htmlAttr).filter(htmlFilter).map(getAttr(i.htmlAttr)).join(" "),"%%Q_HEAD_TAGS%%":getHead(i),"%%Q_BODY_ATTRS%%":Object.keys(i.bodyAttr).filter(bodyFilter).map(getAttr(i.bodyAttr)).join(" "),"%%Q_BODY_TAGS%%":Object.keys(i.noscript).map(function(t){return'<noscript data-qmeta="'+t+'">'+i.noscript[t]+"</noscript>"}).join("")+"<script data-qmeta-init>window.__Q_META__="+(delete i.noscript&&JSON.stringify(i))+"<\/script>"};return Object.keys(s).forEach(function(t){e=e.replace(t,s[t])}),e}function beforeCreate(){this.$options.meta&&("function"==typeof this.$options.meta?(this.$options.computed||(this.$options.computed={}),this.$options.computed.__qMeta=this.$options.meta):this.__qMeta=this.$options.meta)}function triggerMeta(){this.$options.meta&&this.__qMetaUpdate()}var meta={install:function(t){var e=t.queues,i=t.Vue;isSSR?(i.prototype.$getMetaHTML=function(t){return function(e){return getServerMeta(t,e)}},i.mixin({beforeCreate:beforeCreate}),e.server.push(function(t,e){e.ssr.Q_HTML_ATTRS+=" %%Q_HTML_ATTRS%%",Object.assign(e.ssr,{Q_HEAD_TAGS:"%%Q_HEAD_TAGS%%",Q_BODY_ATTRS:"%%Q_BODY_ATTRS%%",Q_BODY_TAGS:"%%Q_BODY_TAGS%%"})})):(ssrTakeover=fromSSR,i.mixin({beforeCreate:beforeCreate,created:function(){this.$options.meta&&(this.__qMetaUnwatch=this.$watch("__qMeta",this.__qMetaUpdate))},activated:triggerMeta,deactivated:triggerMeta,beforeMount:triggerMeta,destroyed:function(){this.$options.meta&&(this.__qMetaUnwatch(),this.__qMetaUpdate())},methods:{__qMetaUpdate:function(){clearTimeout(updateId),updateId=setTimeout(updateClient.bind(this),50)}}}))}},defaults$1={},positionList=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"];function init(t){var e=t.Vue,i=document.createElement("div");document.body.appendChild(i),this.__vm=new e({name:"QNotifications",data:{notifs:{center:[],left:[],right:[],top:[],"top-left":[],"top-right":[],bottom:[],"bottom-left":[],"bottom-right":[]}},methods:{add:function(t){var e=this;if(!t)return console.error("Notify: parameter required"),!1;var i=Object.assign({},defaults$1,"string"==typeof t?{message:t}:clone(t));if(i.position){if(!positionList.includes(i.position))return console.error("Notify: wrong position: "+i.position),!1}else i.position="bottom";i.__uid=uid(),void 0===i.timeout&&(i.timeout=5e3);var s=function(){e.remove(i)};if(t.actions&&(i.actions=t.actions.map(function(t){var e=t.handler,i=clone(t);return i.handler="function"==typeof e?function(){e(),!t.noDismiss&&s()}:function(){return s()},i})),"function"==typeof t.onDismiss&&(i.onDismiss=t.onDismiss),i.closeBtn){var n=[{closeBtn:!0,label:i.closeBtn,handler:s}];i.actions=i.actions?i.actions.concat(n):n}i.timeout&&(i.__timeout=setTimeout(function(){s()},i.timeout+1e3));var o=i.position.indexOf("top")>-1?"unshift":"push";return this.notifs[i.position][o](i),s},remove:function(t){t.__timeout&&clearTimeout(t.__timeout);var e=this.notifs[t.position].indexOf(t);if(-1!==e){var i=this.$refs["notif_"+t.__uid];if(i&&i.$el){var s=i.$el;s.style.left=s.offsetLeft+"px",s.style.width=getComputedStyle(s).width}this.notifs[t.position].splice(e,1),"function"==typeof t.onDismiss&&t.onDismiss()}}},render:function(t){var e=this;return t("div",{staticClass:"q-notifications"},positionList.map(function(i){var s=["left","center","right"].includes(i)?"center":i.indexOf("top")>-1?"top":"bottom",n=i.indexOf("left")>-1?"start":i.indexOf("right")>-1?"end":"center",o=["left","right"].includes(i)?"items-"+("left"===i?"start":"end")+" justify-center":"center"===i?"flex-center":"items-"+n;return t("transition-group",{key:i,staticClass:"q-notification-list q-notification-list-"+s+" fixed column "+o,tag:"div",props:{name:"q-notification-"+i,mode:"out-in"}},e.notifs[i].map(function(e){return t(QAlert,{ref:"notif_"+e.__uid,key:e.__uid,staticClass:"q-notification",props:e},[e.message])}))}))}}),this.__vm.$mount(i)}var notify={create:function(t){return isSSR?function(){}:this.__vm.add(t)},setDefaults:function(t){Object.assign(defaults$1,t)},install:function(t){if(isSSR)return t.$q.notify=function(){},void(t.$q.notify.setDefaults=function(){});init.call(this,t),t.cfg.notify&&this.setDefaults(t.cfg.notify),t.$q.notify=this.create.bind(this),t.$q.notify.setDefaults=this.setDefaults}},SIZE_LIST=["sm","md","lg","xl"],screen={width:0,sizes:{sm:576,md:768,lg:992,xl:1200},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{},xs:!0,setSizes:function(){},setDebounce:function(){},install:function(t){var e=this,i=t.$q,s=t.queues,n=t.Vue;if(isSSR)i.screen=this;else{var o,r,a=function(t){var i=window.innerWidth,s=e.sizes;t&&i===e.width||(e.width=i,e.gt.xs=i>=s.sm,e.gt.sm=i>=s.md,e.gt.md=i>=s.lg,e.gt.lg=i>=s.xl,e.lt.sm=i<s.sm,e.lt.md=i<s.md,e.lt.lg=i<s.lg,e.lt.xl=i<s.xl,e.xs=e.lt.sm,e.sm=e.gt.xs&&e.lt.md,e.md=e.gt.sm&&e.lt.lg,e.lg=e.gt.md&&e.lt.xl,e.xl=i>s.xl)},l={};this.setSizes=function(t){SIZE_LIST.forEach(function(e){t[e]&&(l[e]=t[e])})},this.setDebounce=function(t){r=t};var c=function(){var t=getComputedStyle(document.body);t.getPropertyValue("--q-size-sm")&&SIZE_LIST.forEach(function(i){e.sizes[i]=parseInt(t.getPropertyValue("--q-size-"+i),10)}),e.setSizes=function(t){SIZE_LIST.forEach(function(i){t[i]&&(e.sizes[i]=t[i])}),a()},e.setDebounce=function(t){var e=function(){a(!0)};o&&window.removeEventListener("resize",o,listenOpts.passive),o=t>0?debounce(e,t):e,window.addEventListener("resize",o,listenOpts.passive)},e.setDebounce(r||100),Object.keys(l).length>0?(e.setSizes(l),l=null):a()};fromSSR?s.takeover.push(c):c(),n.util.defineReactive(i,"screen",this)}}};function encode$1(t){return"[object Date]"===Object.prototype.toString.call(t)?"__q_date|"+t.toUTCString():"[object RegExp]"===Object.prototype.toString.call(t)?"__q_expr|"+t.source:"number"==typeof t?"__q_numb|"+t:"boolean"==typeof t?"__q_bool|"+(t?"1":"0"):"string"==typeof t?"__q_strn|"+t:"function"==typeof t?"__q_strn|"+t.toString():t===Object(t)?"__q_objt|"+JSON.stringify(t):t}function decode$1(t){var e,i;if(t.length<9)return t;switch(e=t.substr(0,8),i=t.substring(9),e){case"__q_date":return new Date(i);case"__q_expr":return new RegExp(i);case"__q_numb":return Number(i);case"__q_bool":return Boolean("1"===i);case"__q_strn":return""+i;case"__q_objt":return JSON.parse(i);default:return t}}function getEmptyStorage(){var t=function(){};return{has:t,get:{length:t,item:t,index:t,all:t},set:t,remove:t,clear:t,isEmpty:t}}function getStorage(t){var e=window[t+"Storage"],i=function(t){var i=e.getItem(t);return i?decode$1(i):null};return{has:function(t){return null!==e.getItem(t)},get:{length:function(){return e.length},item:i,index:function(t){if(t<e.length)return i(e.key(t))},all:function(){for(var t,s={},n=e.length,o=0;o<n;o++)s[t=e.key(o)]=i(t);return s}},set:function(t,i){e.setItem(t,encode$1(i))},remove:function(t){e.removeItem(t)},clear:function(){e.clear()},isEmpty:function(){return 0===e.length}}}var localStorage={install:function(t){var e=t.$q;if(onSSR)e.localStorage=getEmptyStorage();else if(hasWebStorage()){var i=getStorage("local");e.localStorage=i,Object.assign(this,i)}}},sessionStorage={install:function(t){var e=t.$q;if(onSSR)e.sessionStorage=getEmptyStorage();else if(hasWebStorage()){var i=getStorage("session");e.sessionStorage=i,Object.assign(this,i)}}},plugins=Object.freeze({ActionSheet:actionSheet,AddressbarColor:addressbarColor,AppFullscreen:appFullscreen,AppVisibility:appVisibility,Cookies:cookies,Dialog:dialog,LoadingBar:loadingBar,Loading:loading,Meta:meta,Notify:notify,Platform:Platform,Screen:screen,LocalStorage:localStorage,SessionStorage:sessionStorage});function openUrl(t,e){if(Platform.is.cordova&&navigator&&navigator.app)return navigator.app.loadUrl(t,{openExternal:!0});var i=window.open(t,"_blank");if(i)return i.focus(),i;e()}function noop(){}var index_esm=Object.assign({},VuePlugin,{install:function(t,e){VuePlugin.install(t,Object.assign({},{components:components$1,directives:directives,plugins:plugins},e))}});
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = index_esm;
exports.QActionSheet = QActionSheet;
exports.QAjaxBar = QAjaxBar;
exports.QAlert = QAlert;
exports.QAutocomplete = QAutocomplete;
exports.QBreadcrumbs = QBreadcrumbs;
exports.QBreadcrumbsEl = QBreadcrumbsEl;
exports.QBtn = QBtn;
exports.QBtnGroup = QBtnGroup;
exports.QBtnDropdown = QBtnDropdown;
exports.QBtnToggle = QBtnToggle;
exports.QCard = QCard;
exports.QCardTitle = QCardTitle;
exports.QCardMain = QCardMain;
exports.QCardActions = QCardActions;
exports.QCardMedia = QCardMedia;
exports.QCardSeparator = QCardSeparator;
exports.QCarousel = QCarousel;
exports.QCarouselSlide = QCarouselSlide;
exports.QCarouselControl = QCarouselControl;
exports.QChatMessage = QChatMessage;
exports.QCheckbox = QCheckbox;
exports.QChip = QChip;
exports.QChipsInput = QChipsInput;
exports.QCollapsible = QCollapsible;
exports.QColor = QColor;
exports.QColorPicker = QColorPicker;
exports.QContextMenu = QContextMenu;
exports.QDatetime = QDatetime;
exports.QDatetimePicker = QDatetimePicker;
exports.QDialog = QDialog;
exports.QEditor = QEditor;
exports.QFab = QFab;
exports.QFabAction = QFabAction;
exports.QField = QField;
exports.QIcon = QIcon;
exports.QInfiniteScroll = QInfiniteScroll;
exports.QInnerLoading = QInnerLoading;
exports.QInput = QInput;
exports.QInputFrame = QInputFrame;
exports.QJumbotron = QJumbotron;
exports.QKnob = QKnob;
exports.QLayout = QLayout;
exports.QLayoutDrawer = QLayoutDrawer;
exports.QLayoutFooter = QLayoutFooter;
exports.QLayoutHeader = QLayoutHeader;
exports.QPage = QPage;
exports.QPageContainer = QPageContainer;
exports.QPageSticky = QPageSticky;
exports.QItem = QItem;
exports.QItemSeparator = QItemSeparator;
exports.QItemMain = QItemMain;
exports.QItemSide = QItemSide;
exports.QItemTile = QItemTile;
exports.QItemWrapper = QItemWrapper;
exports.QList = QList;
exports.QListHeader = QListHeader;
exports.QModal = QModal;
exports.QModalLayout = QModalLayout;
exports.QNoSsr = QNoSsr;
exports.QResizeObservable = QResizeObservable;
exports.QScrollObservable = QScrollObservable;
exports.QWindowResizeObservable = QWindowResizeObservable;
exports.QOptionGroup = QOptionGroup;
exports.QPagination = QPagination;
exports.QParallax = QParallax;
exports.QPopover = QPopover;
exports.QPopupEdit = QPopupEdit;
exports.QProgress = QProgress;
exports.QPullToRefresh = QPullToRefresh;
exports.QRadio = QRadio;
exports.QRange = QRange;
exports.QRating = QRating;
exports.QScrollArea = QScrollArea;
exports.QSearch = QSearch;
exports.QSelect = QSelect;
exports.QSlideTransition = QSlideTransition;
exports.QSlider = QSlider;
exports.QSpinner = QSpinner;
exports.QSpinnerAudio = QSpinnerAudio;
exports.QSpinnerBall = QSpinnerBall;
exports.QSpinnerBars = QSpinnerBars;
exports.QSpinnerCircles = QSpinnerCircles;
exports.QSpinnerComment = QSpinnerComment;
exports.QSpinnerCube = QSpinnerCube;
exports.QSpinnerDots = QSpinnerDots;
exports.QSpinnerFacebook = QSpinnerFacebook;
exports.QSpinnerGears = QSpinnerGears;
exports.QSpinnerGrid = QSpinnerGrid;
exports.QSpinnerHearts = QSpinnerHearts;
exports.QSpinnerHourglass = QSpinnerHourglass;
exports.QSpinnerInfinity = QSpinnerInfinity;
exports.QSpinnerIos = QSpinner_ios;
exports.QSpinnerMat = DefaultSpinner;
exports.QSpinnerOval = QSpinnerOval;
exports.QSpinnerPie = QSpinnerPie;
exports.QSpinnerPuff = QSpinnerPuff;
exports.QSpinnerRadio = QSpinnerRadio;
exports.QSpinnerRings = QSpinnerRings;
exports.QSpinnerTail = QSpinnerTail;
exports.QStep = QStep;
exports.QStepper = QStepper;
exports.QStepperNavigation = QStepperNavigation;
exports.QRouteTab = QRouteTab;
exports.QTab = QTab;
exports.QTabPane = QTabPane;
exports.QTabs = QTabs;
exports.QTable = QTable;
exports.QTh = QTh;
exports.QTr = QTr;
exports.QTd = QTd;
exports.QTableColumns = QTableColumns;
exports.QTimeline = QTimeline;
exports.QTimelineEntry = QTimelineEntry;
exports.QToggle = QToggle;
exports.QToolbar = QToolbar;
exports.QToolbarTitle = QToolbarTitle;
exports.QTooltip = QTooltip;
exports.QTree = QTree;
exports.QUploader = QUploader;
exports.QVideo = QVideo;
exports.BackToTop = backToTop;
exports.CloseOverlay = closeOverlay;
exports.GoBack = goBack;
exports.Ripple = Ripple;
exports.ScrollFire = scrollFire;
exports.Scroll = scroll$1;
exports.TouchHold = touchHold;
exports.TouchPan = TouchPan;
exports.TouchSwipe = TouchSwipe;
exports.ActionSheet = actionSheet;
exports.AddressbarColor = addressbarColor;
exports.AppFullscreen = appFullscreen;
exports.AppVisibility = appVisibility;
exports.Cookies = cookies;
exports.Dialog = dialog;
exports.LoadingBar = loadingBar;
exports.Loading = loading;
exports.Meta = meta;
exports.Notify = notify;
exports.Platform = Platform;
exports.Screen = screen;
exports.LocalStorage = localStorage;
exports.SessionStorage = sessionStorage;
exports.animate = animate;
exports.clone = clone;
exports.colors = colors;
exports.date = date;
exports.debounce = debounce;
exports.dom = dom;
exports.easing = easing;
exports.event = event;
exports.extend = extend;
exports.filter = filter;
exports.format = format;
exports.frameDebounce = frameDebounce;
exports.noop = noop;
exports.openURL = openUrl;
exports.scroll = scroll;
exports.throttle = throttle;
exports.uid = uid;