(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34662018"],{"02f0":function(t,e,n){},"0ccb":function(t,e,n){var a=n("50c4"),i=n("1148"),r=n("1d80"),o=Math.ceil,s=function(t){return function(e,n,s){var l,c,u=String(r(e)),d=u.length,h=void 0===s?" ":String(s),f=a(n);return f<=d||""==h?u:(l=f-d,c=i.call(h,o(l/h.length)),c.length>l&&(c=c.slice(0,l)),t?u+c:c+u)}};t.exports={start:s(!1),end:s(!0)}},"0fd9":function(t,e,n){"use strict";n("99af"),n("4160"),n("caad"),n("13d5"),n("4ec9"),n("b64b"),n("d3b7"),n("ac1f"),n("2532"),n("3ca3"),n("5319"),n("159b"),n("ddb0");var a=n("ade3"),i=n("5530"),r=(n("4b85"),n("2b0e")),o=n("d9f7"),s=n("80d2"),l=["sm","md","lg","xl"],c=["start","end","center"];function u(t,e){return l.reduce((function(n,a){return n[t+Object(s["F"])(a)]=e(),n}),{})}var d=function(t){return[].concat(c,["baseline","stretch"]).includes(t)},h=u("align",(function(){return{type:String,default:null,validator:d}})),f=function(t){return[].concat(c,["space-between","space-around"]).includes(t)},p=u("justify",(function(){return{type:String,default:null,validator:f}})),g=function(t){return[].concat(c,["space-between","space-around","stretch"]).includes(t)},m=u("alignContent",(function(){return{type:String,default:null,validator:g}})),v={align:Object.keys(h),justify:Object.keys(p),alignContent:Object.keys(m)},b={align:"align",justify:"justify",alignContent:"align-content"};function y(t,e,n){var a=b[t];if(null!=n){if(e){var i=e.replace(t,"");a+="-".concat(i)}return a+="-".concat(n),a.toLowerCase()}}var x=new Map;e["a"]=r["default"].extend({name:"v-row",functional:!0,props:Object(i["a"])(Object(i["a"])(Object(i["a"])({tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:d}},h),{},{justify:{type:String,default:null,validator:f}},p),{},{alignContent:{type:String,default:null,validator:g}},m),render:function(t,e){var n=e.props,i=e.data,r=e.children,s="";for(var l in n)s+=String(n[l]);var c=x.get(s);return c||function(){var t,e;for(e in c=[],v)v[e].forEach((function(t){var a=n[t],i=y(e,t,a);i&&c.push(i)}));c.push((t={"no-gutters":n.noGutters,"row--dense":n.dense},Object(a["a"])(t,"align-".concat(n.align),n.align),Object(a["a"])(t,"justify-".concat(n.justify),n.justify),Object(a["a"])(t,"align-content-".concat(n.alignContent),n.alignContent),t)),x.set(s,c)}(),t(n.tag,Object(o["a"])(i,{staticClass:"row",class:c}),r)}})},"166a":function(t,e,n){},"169a":function(t,e,n){"use strict";n("7db0"),n("caad"),n("45fc"),n("a9e3"),n("2532"),n("498a");var a=n("5530"),i=n("2909"),r=n("ade3"),o=(n("368e"),n("480e")),s=n("4ad4"),l=n("b848"),c=n("75eb"),u=n("e707"),d=n("e4d3"),h=n("21be"),f=n("f2e7"),p=n("a293"),g=n("58df"),m=n("d9bd"),v=n("80d2"),b=Object(g["a"])(s["a"],l["a"],c["a"],u["a"],d["a"],h["a"],f["a"]);e["a"]=b.extend({name:"v-dialog",directives:{ClickOutside:p["a"]},props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:{type:[String,Number],default:"none"},noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:{type:[String,Number],default:"auto"}},data:function(){return{activatedBy:null,animate:!1,animateTimeout:-1,isActive:!!this.value,stackMinZIndex:200}},computed:{classes:function(){var t;return t={},Object(r["a"])(t,"v-dialog ".concat(this.contentClass).trim(),!0),Object(r["a"])(t,"v-dialog--active",this.isActive),Object(r["a"])(t,"v-dialog--persistent",this.persistent),Object(r["a"])(t,"v-dialog--fullscreen",this.fullscreen),Object(r["a"])(t,"v-dialog--scrollable",this.scrollable),Object(r["a"])(t,"v-dialog--animated",this.animate),t},contentClasses:function(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator:function(){return Boolean(!!this.$slots.activator||!!this.$scopedSlots.activator)}},watch:{isActive:function(t){t?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind())},fullscreen:function(t){this.isActive&&(t?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(m["e"])("full-width",this)},beforeMount:function(){var t=this;this.$nextTick((function(){t.isBooted=t.isActive,t.isActive&&t.show()}))},beforeDestroy:function(){"undefined"!==typeof window&&this.unbind()},methods:{animateClick:function(){var t=this;this.animate=!1,this.$nextTick((function(){t.animate=!0,window.clearTimeout(t.animateTimeout),t.animateTimeout=window.setTimeout((function(){return t.animate=!1}),150)}))},closeConditional:function(t){var e=t.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(e)||this.overlay&&e&&!this.overlay.$el.contains(e))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll:function(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):u["a"].options.methods.hideScroll.call(this)},show:function(){var t=this;!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick((function(){t.$refs.content.focus(),t.bind()}))},bind:function(){window.addEventListener("focusin",this.onFocusin)},unbind:function(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside:function(t){this.$emit("click:outside",t),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown:function(t){if(t.keyCode===v["x"].esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;var e=this.getActivator();this.$nextTick((function(){return e&&e.focus()}))}this.$emit("keydown",t)},onFocusin:function(t){if(t&&this.retainFocus){var e=t.target;if(e&&![document,this.$refs.content].includes(e)&&!this.$refs.content.contains(e)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some((function(t){return t.contains(e)}))){var n=this.$refs.content.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),a=Object(i["a"])(n).find((function(t){return!t.hasAttribute("disabled")}));a&&a.focus()}}},genContent:function(){var t=this;return this.showLazyContent((function(){return[t.$createElement(o["a"],{props:{root:!0,light:t.light,dark:t.dark}},[t.$createElement("div",{class:t.contentClasses,attrs:Object(a["a"])({role:"document",tabindex:t.isActive?0:void 0},t.getScopeIdAttrs()),on:{keydown:t.onKeydown},style:{zIndex:t.activeZIndex},ref:"content"},[t.genTransition()])])]}))},genTransition:function(){var t=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[t]):t},genInnerContent:function(){var t={class:this.classes,ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(t.style=Object(a["a"])(Object(a["a"])({},t.style),{},{maxWidth:"none"===this.maxWidth?void 0:Object(v["g"])(this.maxWidth),width:"auto"===this.width?void 0:Object(v["g"])(this.width)})),this.$createElement("div",t,this.getContentSlot())}},render:function(t){return t("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach},attrs:{role:"dialog"}},[this.genActivator(),this.genContent()])}})},"17b3":function(t,e,n){},"1f4f":function(t,e,n){"use strict";n("a9e3");var a=n("5530"),i=(n("8b37"),n("80d2")),r=n("7560"),o=n("58df");e["a"]=Object(o["a"])(r["a"]).extend({name:"v-simple-table",props:{dense:Boolean,fixedHeader:Boolean,height:[Number,String]},computed:{classes:function(){return Object(a["a"])({"v-data-table--dense":this.dense,"v-data-table--fixed-height":!!this.height&&!this.fixedHeader,"v-data-table--fixed-header":this.fixedHeader},this.themeClasses)}},methods:{genWrapper:function(){return this.$slots.wrapper||this.$createElement("div",{staticClass:"v-data-table__wrapper",style:{height:Object(i["g"])(this.height)}},[this.$createElement("table",this.$slots.default)])}},render:function(t){return t("div",{staticClass:"v-data-table",class:this.classes},[this.$slots.top,this.genWrapper(),this.$slots.bottom])}})},2102:function(t,e,n){},"21a6":function(t,e,n){(function(n){var a,i,r;(function(n,o){i=[],a=o,r="function"===typeof a?a.apply(e,i):a,void 0===r||(t.exports=r)})(0,(function(){"use strict";function e(t,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function a(t,e,n){var a=new XMLHttpRequest;a.open("GET",t),a.responseType="blob",a.onload=function(){l(a.response,e,n)},a.onerror=function(){console.error("could not download file")},a.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(a){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,n){var s=o.URL||o.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?r(l):i(l.href)?a(t,e,n):r(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,o){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),n);else if(i(t))a(t,n,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){r(s)}))}}:function(t,e,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return a(t,e,n);var r="application/octet-stream"===t.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},u.readAsDataURL(t)}else{var d=o.URL||o.webkitURL,h=d.createObjectURL(t);i?i.location=h:location.href=h,i=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});o.saveAs=l.saveAs=l,t.exports=l}))}).call(this,n("c8ba"))},"2af1":function(t,e,n){var a=n("23e7"),i=n("f748");a({target:"Math",stat:!0},{sign:i})},"2e4b":function(t,e,n){"use strict";n("99af"),n("4de4"),n("caad"),n("c975"),n("d81d"),n("b0c0"),n("a9e3"),n("ac1f"),n("5319"),n("1276");var a=n("5530"),i=n("3835"),r=(n("d951"),n("9d26")),o=(n("498a"),n("a9ad")),s=n("58df"),l=n("80d2"),c=Object(s["a"])(o["a"]).extend({methods:{genPickerButton:function(t,e,n){var a=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=this[t]===e,s=function(n){n.stopPropagation(),a.$emit("update:".concat(Object(l["w"])(t)),e)};return this.$createElement("div",{staticClass:"v-picker__title__btn ".concat(r).trim(),class:{"v-picker__title__btn--active":o,"v-picker__title__btn--readonly":i},on:o||i?void 0:{click:s}},Array.isArray(n)?n:[n])}}}),u=Object(s["a"])(c).extend({name:"v-date-picker-title",props:{date:{type:String,default:""},disabled:Boolean,readonly:Boolean,selectingYear:Boolean,value:{type:String},year:{type:[Number,String],default:""},yearIcon:{type:String}},data:function(){return{isReversing:!1}},computed:{computedTransition:function(){return this.isReversing?"picker-reverse-transition":"picker-transition"}},watch:{value:function(t,e){this.isReversing=t>=0,t=String(t),n=String(n),t.length>e?String(t):(e-=t.length,e>n.length&&(n+=n.repeat(e/n.length)),n.slice(0,e)+String(t))}),m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return g(t,e,"0")};function v(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:0,length:0},a=function(t){var e=t.trim().split(" ")[0].split("-"),n=Object(i["a"])(e,3),a=n[0],r=n[1],o=n[2];return[m(a,4),m(r||1),m(o||1)].join("-")};try{var r=new Intl.DateTimeFormat(t||void 0,e);return function(t){return r.format(new Date("".concat(a(t),"T00:00:00+00:00")))}}catch(o){return n.start||n.length?function(t){return a(t).substr(n.start||0,n.length)}:void 0}}var b=v,y=function(t,e){var n=t.split("-").map(Number),a=Object(i["a"])(n,2),r=a[0],o=a[1];return o+e===0?"".concat(r-1,"-12"):o+e===13?"".concat(r+1,"-01"):"".concat(r,"-").concat(m(o+e))},x=Object(s["a"])(o["a"],f,p["a"]).extend({name:"v-date-picker-header",props:{disabled:Boolean,format:Function,min:String,max:String,nextAriaLabel:String,nextIcon:{type:String,default:"$next"},prevAriaLabel:String,prevIcon:{type:String,default:"$prev"},readonly:Boolean,value:{type:[Number,String],required:!0}},data:function(){return{isReversing:!1}},computed:{formatter:function(){return this.format?this.format:String(this.value).split("-")[1]?b(this.currentLocale,{month:"long",year:"numeric",timeZone:"UTC"},{length:7}):b(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4})}},watch:{value:function(t,e){this.isReversing=t0?this.nextAriaLabel:this.prevAriaLabel,a=n?this.$vuetify.lang.t(n):void 0,i=this.disabled||t<0&&this.min&&this.calculateChange(t)0&&this.max&&this.calculateChange(t)>this.max;return this.$createElement(d["a"],{attrs:{"aria-label":a},props:{dark:this.dark,disabled:i,icon:!0,light:this.light},on:{click:function(n){n.stopPropagation(),e.$emit("input",e.calculateChange(t))}}},[this.$createElement(r["a"],t<0===!this.$vuetify.rtl?this.prevIcon:this.nextIcon)])},calculateChange:function(t){var e=String(this.value).split("-").map(Number),n=Object(i["a"])(e,2),a=n[0],r=n[1];return null==r?"".concat(a+t):y(String(this.value),t)},genHeader:function(){var t=this,e=!this.disabled&&(this.color||"accent"),n=this.$createElement("div",this.setTextColor(e,{key:String(this.value)}),[this.$createElement("button",{attrs:{type:"button"},on:{click:function(){return t.$emit("toggle")}}},[this.$slots.default||this.formatter(String(this.value))])]),a=this.$createElement("transition",{props:{name:this.isReversing===!this.$vuetify.rtl?"tab-reverse-transition":"tab-transition"}},[n]);return this.$createElement("div",{staticClass:"v-date-picker-header__value",class:{"v-date-picker-header__value--disabled":this.disabled}},[a])}},render:function(){return this.$createElement("div",{staticClass:"v-date-picker-header",class:Object(a["a"])({"v-date-picker-header--disabled":this.disabled},this.themeClasses)},[this.genBtn(-1),this.genHeader(),this.genBtn(1)])}}),_=(n("2af1"),n("4d90"),n("2532"),n("2909")),w=(n("c982"),n("c3f0"));n("13d5"),n("b64b"),n("8a79");function k(t,e,n){return Object.keys(t.$listeners).reduce((function(a,i){return i.endsWith(e)&&(a[i.slice(0,-e.length)]=function(e){return t.$emit(i,n,e)}),a}),{})}function M(t,e){return Object.keys(t.$listeners).reduce((function(n,a){return a.endsWith(e)&&(n[a]=t.$listeners[a]),n}),{})}function C(t,e,n,a){return(!a||a(t))&&(!e||t>=e.substr(0,10))&&(!n||t<=n)}var D=n("d9f7"),S=Object(s["a"])(o["a"],f,p["a"]).extend({directives:{Touch:w["a"]},props:{allowedDates:Function,current:String,disabled:Boolean,format:Function,events:{type:[Array,Function,Object],default:function(){return null}},eventColor:{type:[Array,Function,Object,String],default:function(){return"warning"}},min:String,max:String,range:Boolean,readonly:Boolean,scrollable:Boolean,tableDate:{type:String,required:!0},value:[String,Array]},data:function(){return{isReversing:!1,wheelThrottle:null}},computed:{computedTransition:function(){return this.isReversing===!this.$vuetify.rtl?"tab-reverse-transition":"tab-transition"},displayedMonth:function(){return Number(this.tableDate.split("-")[1])-1},displayedYear:function(){return Number(this.tableDate.split("-")[0])}},watch:{tableDate:function(t,e){this.isReversing=t15&&i.touch(-1,n)}}};return this.$createElement("div",{staticClass:t,class:Object(a["a"])({"v-date-picker-table--disabled":this.disabled},this.themeClasses),on:!this.disabled&&this.scrollable?{wheel:function(t){t.preventDefault(),i.wheelThrottle(t,n)}}:void 0,directives:[o]},[r])},isSelected:function(t){if(Array.isArray(this.value)){if(this.range&&2===this.value.length){var e=Object(_["a"])(this.value).sort(),n=Object(i["a"])(e,2),a=n[0],r=n[1];return a<=t&&t<=r}return-1!==this.value.indexOf(t)}return t===this.value}}});function T(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return t<100&&t>=0?(e=new Date(Date.UTC(t,n,a)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC(t,n,a)),e}function A(t,e,n){var a=7+e-n,i=(7+T(t,0,a).getUTCDay()-e)%7;return-i+a-1}function O(t,e,n,a){var i=[0,31,59,90,120,151,181,212,243,273,304,334][e];return e>1&&L(t)&&i++,i+n}function P(t,e,n){var a=A(t,e,n),i=A(t+1,e,n),r=L(t)?366:365;return(r-a+i)/7}function I(t,e,n,a,i){var r=A(t,a,i),o=Math.ceil((O(t,e,n,a)-r)/7);return o<1?o+P(t-1,a,i):o>P(t,a,i)?o-P(t,a,i):o}function L(t){return t%4===0&&t%100!==0||t%400===0}var F=Object(s["a"])(S).extend({name:"v-date-picker-date-table",props:{firstDayOfWeek:{type:[String,Number],default:0},localeFirstDayOfYear:{type:[String,Number],default:0},showWeek:Boolean,weekdayFormat:Function},computed:{formatter:function(){return this.format||b(this.currentLocale,{day:"numeric",timeZone:"UTC"},{start:8,length:2})},weekdayFormatter:function(){return this.weekdayFormat||b(this.currentLocale,{weekday:"narrow",timeZone:"UTC"})},weekDays:function(){var t=this,e=parseInt(this.firstDayOfWeek,10);return this.weekdayFormatter?Object(l["h"])(7).map((function(n){return t.weekdayFormatter("2017-01-".concat(e+n+15))})):Object(l["h"])(7).map((function(t){return["S","M","T","W","T","F","S"][(t+e)%7]}))}},methods:{calculateTableDate:function(t){return y(this.tableDate,Math.sign(t||1))},genTHead:function(){var t=this,e=this.weekDays.map((function(e){return t.$createElement("th",e)}));return this.showWeek&&e.unshift(this.$createElement("th")),this.$createElement("thead",this.genTR(e))},weekDaysBeforeFirstDayOfTheMonth:function(){var t=new Date("".concat(this.displayedYear,"-").concat(m(this.displayedMonth+1),"-01T00:00:00+00:00")),e=t.getUTCDay();return(e-parseInt(this.firstDayOfWeek)+7)%7},getWeekNumber:function(t){return I(this.displayedYear,this.displayedMonth,t,parseInt(this.firstDayOfWeek),parseInt(this.localeFirstDayOfYear))},genWeekNumber:function(t){return this.$createElement("td",[this.$createElement("small",{staticClass:"v-date-picker-table--date__week"},String(t).padStart(2,"0"))])},genTBody:function(){var t=[],e=new Date(this.displayedYear,this.displayedMonth+1,0).getDate(),n=[],a=this.weekDaysBeforeFirstDayOfTheMonth();this.showWeek&&n.push(this.genWeekNumber(this.getWeekNumber(1)));while(a--)n.push(this.$createElement("td"));for(a=1;a<=e;a++){var i="".concat(this.displayedYear,"-").concat(m(this.displayedMonth+1),"-").concat(m(a));n.push(this.$createElement("td",[this.genButton(i,!0,"date",this.formatter)])),n.length%(this.showWeek?8:7)===0&&(t.push(this.genTR(n)),n=[],this.showWeek&&a=a;i--)t.push(this.genYearItem(i));return t}},render:function(){return this.$createElement("ul",{staticClass:"v-date-picker-years",ref:"years"},this.genYearItems())}})),R=(n("0481"),n("4069"),n("e53c"),n("615b"),n("c995")),N=Object(s["a"])(o["a"],R["a"],p["a"]).extend({name:"v-picker",props:{flat:Boolean,fullWidth:Boolean,landscape:Boolean,noTitle:Boolean,transition:{type:String,default:"fade-transition"},width:{type:[Number,String],default:290}},computed:{computedTitleColor:function(){var t=!this.isDark&&(this.color||"primary");return this.color||t}},methods:{genTitle:function(){return this.$createElement("div",this.setBackgroundColor(this.computedTitleColor,{staticClass:"v-picker__title",class:{"v-picker__title--landscape":this.landscape}}),this.$slots.title)},genBodyTransition:function(){return this.$createElement("transition",{props:{name:this.transition}},this.$slots.default)},genBody:function(){return this.$createElement("div",{staticClass:"v-picker__body",class:Object(a["a"])({"v-picker__body--no-title":this.noTitle},this.themeClasses),style:this.fullWidth?void 0:{width:Object(l["g"])(this.width)}},[this.genBodyTransition()])},genActions:function(){return this.$createElement("div",{staticClass:"v-picker__actions v-card__actions",class:{"v-picker__actions--no-title":this.noTitle}},this.$slots.actions)}},render:function(t){return t("div",{staticClass:"v-picker v-card",class:Object(a["a"])(Object(a["a"])({"v-picker--flat":this.flat,"v-picker--landscape":this.landscape,"v-picker--full-width":this.fullWidth},this.themeClasses),this.elevationClasses)},[this.$slots.title?this.genTitle():null,this.genBody(),this.$slots.actions?this.genActions():null])}}),$=N,V=Object(s["a"])(o["a"],R["a"],p["a"]).extend({name:"picker",props:{flat:Boolean,fullWidth:Boolean,headerColor:String,landscape:Boolean,noTitle:Boolean,width:{type:[Number,String],default:290}},methods:{genPickerTitle:function(){return null},genPickerBody:function(){return null},genPickerActionsSlot:function(){return this.$scopedSlots.default?this.$scopedSlots.default({save:this.save,cancel:this.cancel}):this.$slots.default},genPicker:function(t){var e=[];if(!this.noTitle){var n=this.genPickerTitle();n&&e.push(n)}var a=this.genPickerBody();return a&&e.push(a),e.push(this.$createElement("template",{slot:"actions"},[this.genPickerActionsSlot()])),this.$createElement($,{staticClass:t,props:{color:this.headerColor||this.color,dark:this.dark,elevation:this.elevation,flat:this.flat,fullWidth:this.fullWidth,landscape:this.landscape,light:this.light,width:this.width,noTitle:this.noTitle}},e)}}}),z=(n("53ca"),[0,31,28,31,30,31,30,31,31,30,31,30,31]),j=[0,31,29,31,30,31,30,31,31,30,31,30,31];function W(t,e){return L(t)?j[e]:z[e]}var H=n("d9bd");function Y(t,e){var n=t.split("-"),a=Object(i["a"])(n,3),r=a[0],o=a[1],s=void 0===o?1:o,l=a[2],c=void 0===l?1:l;return"".concat(r,"-").concat(m(s),"-").concat(m(c)).substr(0,{date:10,month:7,year:4}[e])}e["a"]=Object(s["a"])(f,V).extend({name:"v-date-picker",props:{allowedDates:Function,dayFormat:Function,disabled:Boolean,events:{type:[Array,Function,Object],default:function(){return null}},eventColor:{type:[Array,Function,Object,String],default:function(){return"warning"}},firstDayOfWeek:{type:[String,Number],default:0},headerDateFormat:Function,localeFirstDayOfYear:{type:[String,Number],default:0},max:String,min:String,monthFormat:Function,multiple:Boolean,nextIcon:{type:String,default:"$next"},nextMonthAriaLabel:{type:String,default:"$vuetify.datePicker.nextMonthAriaLabel"},nextYearAriaLabel:{type:String,default:"$vuetify.datePicker.nextYearAriaLabel"},pickerDate:String,prevIcon:{type:String,default:"$prev"},prevMonthAriaLabel:{type:String,default:"$vuetify.datePicker.prevMonthAriaLabel"},prevYearAriaLabel:{type:String,default:"$vuetify.datePicker.prevYearAriaLabel"},range:Boolean,reactive:Boolean,readonly:Boolean,scrollable:Boolean,showCurrent:{type:[Boolean,String],default:!0},selectedItemsText:{type:String,default:"$vuetify.datePicker.itemsSelected"},showWeek:Boolean,titleDateFormat:Function,type:{type:String,default:"date",validator:function(t){return["date","month"].includes(t)}},value:[Array,String],weekdayFormat:Function,yearFormat:Function,yearIcon:String},data:function(){var t=this,e=new Date;return{activePicker:this.type.toUpperCase(),inputDay:null,inputMonth:null,inputYear:null,isReversing:!1,now:e,tableDate:function(){if(t.pickerDate)return t.pickerDate;var n=Object(l["G"])(t.value),a=n[n.length-1]||("string"===typeof t.showCurrent?t.showCurrent:"".concat(e.getFullYear(),"-").concat(e.getMonth()+1));return Y(a,"date"===t.type?"month":"year")}()}},computed:{multipleValue:function(){return Object(l["G"])(this.value)},isMultiple:function(){return this.multiple||this.range},lastValue:function(){return this.isMultiple?this.multipleValue[this.multipleValue.length-1]:this.value},selectedMonths:function(){return this.value&&"month"!==this.type?this.isMultiple?this.multipleValue.map((function(t){return t.substr(0,7)})):this.value.substr(0,7):this.value},current:function(){return!0===this.showCurrent?Y("".concat(this.now.getFullYear(),"-").concat(this.now.getMonth()+1,"-").concat(this.now.getDate()),this.type):this.showCurrent||null},inputDate:function(){return"date"===this.type?"".concat(this.inputYear,"-").concat(m(this.inputMonth+1),"-").concat(m(this.inputDay)):"".concat(this.inputYear,"-").concat(m(this.inputMonth+1))},tableMonth:function(){return Number((this.pickerDate||this.tableDate).split("-")[1])-1},tableYear:function(){return Number((this.pickerDate||this.tableDate).split("-")[0])},minMonth:function(){return this.min?Y(this.min,"month"):null},maxMonth:function(){return this.max?Y(this.max,"month"):null},minYear:function(){return this.min?Y(this.min,"year"):null},maxYear:function(){return this.max?Y(this.max,"year"):null},formatters:function(){return{year:this.yearFormat||b(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4}),titleDate:this.titleDateFormat||(this.isMultiple?this.defaultTitleMultipleDateFormatter:this.defaultTitleDateFormatter)}},defaultTitleMultipleDateFormatter:function(){var t=this;return function(e){return e.length?1===e.length?t.defaultTitleDateFormatter(e[0]):t.$vuetify.lang.t(t.selectedItemsText,e.length):"-"}},defaultTitleDateFormatter:function(){var t={year:{year:"numeric",timeZone:"UTC"},month:{month:"long",timeZone:"UTC"},date:{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}},e=b(this.currentLocale,t[this.type],{start:0,length:{date:10,month:7,year:4}[this.type]}),n=function(t){return e(t).replace(/([^\d\s])([\d])/g,(function(t,e,n){return"".concat(e," ").concat(n)})).replace(", ",",
")};return this.landscape?n:e}},watch:{tableDate:function(t,e){var n="month"===this.type?"year":"month";this.isReversing=Y(t,n)1&&(i-=1)),[360*i,100*r,100*c]},i.rgb.hwb=function(t){var e=t[0],n=t[1],a=t[2],r=i.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(n,a));return a=1-1/255*Math.max(e,Math.max(n,a)),[r,100*o,100*a]},i.rgb.cmyk=function(t){var e,n,a,i,r=t[0]/255,o=t[1]/255,s=t[2]/255;return i=Math.min(1-r,1-o,1-s),e=(1-r-i)/(1-i)||0,n=(1-o-i)/(1-i)||0,a=(1-s-i)/(1-i)||0,[100*e,100*n,100*a,100*i]},i.rgb.keyword=function(t){var n=e[t];if(n)return n;var i,r=1/0;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o],c=l(t,s);c.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;var i=.4124*e+.3576*n+.1805*a,r=.2126*e+.7152*n+.0722*a,o=.0193*e+.1192*n+.9505*a;return[100*i,100*r,100*o]},i.rgb.lab=function(t){var e,n,a,r=i.rgb.xyz(t),o=r[0],s=r[1],l=r[2];return o/=95.047,s/=100,l/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,e=116*s-16,n=500*(o-s),a=200*(s-l),[e,n,a]},i.hsl.rgb=function(t){var e,n,a,i,r,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return r=255*l,[r,r,r];n=l<.5?l*(1+s):l+s-l*s,e=2*l-n,i=[0,0,0];for(var c=0;c<3;c++)a=o+1/3*-(c-1),a<0&&a++,a>1&&a--,r=6*a<1?e+6*(n-e)*a:2*a<1?n:3*a<2?e+(n-e)*(2/3-a)*6:e,i[c]=255*r;return i},i.hsl.hsv=function(t){var e,n,a=t[0],i=t[1]/100,r=t[2]/100,o=i,s=Math.max(r,.01);return r*=2,i*=r<=1?r:2-r,o*=s<=1?s:2-s,n=(r+i)/2,e=0===r?2*o/(s+o):2*i/(r+i),[a,100*e,100*n]},i.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,a=t[2]/100,i=Math.floor(e)%6,r=e-Math.floor(e),o=255*a*(1-n),s=255*a*(1-n*r),l=255*a*(1-n*(1-r));switch(a*=255,i){case 0:return[a,l,o];case 1:return[s,a,o];case 2:return[o,a,l];case 3:return[o,s,a];case 4:return[l,o,a];case 5:return[a,o,s]}},i.hsv.hsl=function(t){var e,n,a,i=t[0],r=t[1]/100,o=t[2]/100,s=Math.max(o,.01);return a=(2-r)*o,e=(2-r)*s,n=r*s,n/=e<=1?e:2-e,n=n||0,a/=2,[i,100*n,100*a]},i.hwb.rgb=function(t){var e,n,a,i,r,o,s,l=t[0]/360,c=t[1]/100,u=t[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),e=Math.floor(6*l),n=1-u,a=6*l-e,0!==(1&e)&&(a=1-a),i=c+a*(n-c),e){default:case 6:case 0:r=n,o=i,s=c;break;case 1:r=i,o=n,s=c;break;case 2:r=c,o=n,s=i;break;case 3:r=c,o=i,s=n;break;case 4:r=i,o=c,s=n;break;case 5:r=n,o=c,s=i;break}return[255*r,255*o,255*s]},i.cmyk.rgb=function(t){var e,n,a,i=t[0]/100,r=t[1]/100,o=t[2]/100,s=t[3]/100;return e=1-Math.min(1,i*(1-s)+s),n=1-Math.min(1,r*(1-s)+s),a=1-Math.min(1,o*(1-s)+s),[255*e,255*n,255*a]},i.xyz.rgb=function(t){var e,n,a,i=t[0]/100,r=t[1]/100,o=t[2]/100;return e=3.2406*i+-1.5372*r+-.4986*o,n=-.9689*i+1.8758*r+.0415*o,a=.0557*i+-.204*r+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),a=Math.min(Math.max(0,a),1),[255*e,255*n,255*a]},i.xyz.lab=function(t){var e,n,a,i=t[0],r=t[1],o=t[2];return i/=95.047,r/=100,o/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*r-16,n=500*(i-r),a=200*(r-o),[e,n,a]},i.lab.xyz=function(t){var e,n,a,i=t[0],r=t[1],o=t[2];n=(i+16)/116,e=r/500+n,a=n-o/200;var s=Math.pow(n,3),l=Math.pow(e,3),c=Math.pow(a,3);return n=s>.008856?s:(n-16/116)/7.787,e=l>.008856?l:(e-16/116)/7.787,a=c>.008856?c:(a-16/116)/7.787,e*=95.047,n*=100,a*=108.883,[e,n,a]},i.lab.lch=function(t){var e,n,a,i=t[0],r=t[1],o=t[2];return e=Math.atan2(o,r),n=360*e/2/Math.PI,n<0&&(n+=360),a=Math.sqrt(r*r+o*o),[i,a,n]},i.lch.lab=function(t){var e,n,a,i=t[0],r=t[1],o=t[2];return a=o/360*2*Math.PI,e=r*Math.cos(a),n=r*Math.sin(a),[i,e,n]},i.rgb.ansi16=function(t){var e=t[0],n=t[1],a=t[2],r=1 in arguments?arguments[1]:i.rgb.hsv(t)[2];if(r=Math.round(r/50),0===r)return 30;var o=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===r&&(o+=60),o},i.hsv.ansi16=function(t){return i.rgb.ansi16(i.hsv.rgb(t),t[2])},i.rgb.ansi256=function(t){var e=t[0],n=t[1],a=t[2];if(e===n&&n===a)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5);return i},i.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var n=.5*(1+~~(t>50)),a=(1&e)*n*255,i=(e>>1&1)*n*255,r=(e>>2&1)*n*255;return[a,i,r]},i.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;t-=16;var a=Math.floor(t/36)/5*255,i=Math.floor((n=t%36)/6)/5*255,r=n%6/5*255;return[a,i,r]},i.rgb.hex=function(t){var e=((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2])),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n},i.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map((function(t){return t+t})).join(""));var a=parseInt(n,16),i=a>>16&255,r=a>>8&255,o=255&a;return[i,r,o]},i.rgb.hcg=function(t){var e,n,a=t[0]/255,i=t[1]/255,r=t[2]/255,o=Math.max(Math.max(a,i),r),s=Math.min(Math.min(a,i),r),l=o-s;return e=l<1?s/(1-l):0,n=l<=0?0:o===a?(i-r)/l%6:o===i?2+(r-a)/l:4+(a-i)/l+4,n/=6,n%=1,[360*n,100*l,100*e]},i.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,a=1,i=0;return a=n<.5?2*e*n:2*e*(1-n),a<1&&(i=(n-.5*a)/(1-a)),[t[0],100*a,100*i]},i.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,a=e*n,i=0;return a<1&&(i=(n-a)/(1-a)),[t[0],100*a,100*i]},i.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,a=t[2]/100;if(0===n)return[255*a,255*a,255*a];var i=[0,0,0],r=e%1*6,o=r%1,s=1-o,l=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*a,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},i.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,a=e+n*(1-e),i=0;return a>0&&(i=e/a),[t[0],100*i,100*a]},i.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,a=n*(1-e)+.5*e,i=0;return a>0&&a<.5?i=e/(2*a):a>=.5&&a<1&&(i=e/(2*(1-a))),[t[0],100*i,100*a]},i.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,a=e+n*(1-e);return[t[0],100*(a-e),100*(1-a)]},i.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,a=1-n,i=a-e,r=0;return i<1&&(r=(a-i)/(1-i)),[t[0],100*i,100*r]},i.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},i.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},i.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},i.gray.hsl=i.gray.hsv=function(t){return[0,0,t[0]]},i.gray.hwb=function(t){return[0,100,t[0]]},i.gray.cmyk=function(t){return[0,0,0,t[0]]},i.gray.lab=function(t){return[t[0],0,0]},i.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=(e<<16)+(e<<8)+e,a=n.toString(16).toUpperCase();return"000000".substring(a.length)+a},i.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}}));i.rgb,i.hsl,i.hsv,i.hwb,i.cmyk,i.xyz,i.lab,i.lch,i.hex,i.keyword,i.ansi16,i.ansi256,i.hcg,i.apple,i.gray;function r(){for(var t={},e=Object.keys(i),n=e.length,a=0;a1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function f(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"===typeof n)for(var a=n.length,i=0;i=0&&e<1?L(Math.round(255*e)):"")}function M(t,e){return e<1||t[3]&&t[3]<1?C(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}function C(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function D(t,e){if(e<1||t[3]&&t[3]<1)return S(t,e);var n=Math.round(t[0]/255*100),a=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return"rgb("+n+"%, "+a+"%, "+i+"%)"}function S(t,e){var n=Math.round(t[0]/255*100),a=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return"rgba("+n+"%, "+a+"%, "+i+"%, "+(e||t[3]||1)+")"}function T(t,e){return e<1||t[3]&&t[3]<1?A(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"}function A(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function O(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"}function P(t){return F[t.slice(0,3)]}function I(t,e,n){return Math.min(Math.max(e,t),n)}function L(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var F={};for(var E in g)F[g[E]]=E;var B=function(t){return t instanceof B?t:this instanceof B?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"===typeof t?(e=m.getRgba(t),e?this.setValues("rgb",e):(e=m.getHsla(t))?this.setValues("hsl",e):(e=m.getHwb(t))&&this.setValues("hwb",e)):"object"===typeof t&&(e=t,void 0!==e.r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new B(t);var e};B.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t%=360,t=t<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return m.hexString(this.values.rgb)},rgbString:function(){return m.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return m.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return m.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return m.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return m.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return m.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return m.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;nn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return e<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,a=t,i=void 0===e?.5:e,r=2*i-1,o=n.alpha()-a.alpha(),s=((r*o===-1?r:(r+o)/(1+r*o))+1)/2,l=1-s;return this.rgb(s*n.red()+l*a.red(),s*n.green()+l*a.green(),s*n.blue()+l*a.blue()).alpha(n.alpha()*i+a.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new B,a=this.values,i=n.values;for(var r in a)a.hasOwnProperty(r)&&(t=a[r],e={}.toString.call(t),"[object Array]"===e?i[r]=t.slice(0):"[object Number]"===e?i[r]=t:console.error("unexpected color value:",t));return n}},B.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},B.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},B.prototype.getValues=function(t){for(var e=this.values,n={},a=0;a=0;i--)e.call(n,t[i],i);else for(i=0;i=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,a=1;return 0===t?0:1===t?1:(n||(n=.3),a<1?(a=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/a),-a*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,a=1;return 0===t?0:1===t?1:(n||(n=.3),a<1?(a=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/a),a*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,a=1;return 0===t?0:2===(t/=.5)?1:(n||(n=.45),a<1?(a=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/a),t<1?a*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:a*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-V.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*V.easeInBounce(2*t):.5*V.easeOutBounce(2*t-1)+.5}},z={effects:V};$.easingEffects=V;var j=Math.PI,W=j/180,H=2*j,Y=j/2,U=j/4,q=2*j/3,Z={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,a,i,r){if(r){var o=Math.min(r,i/2,a/2),s=e+o,l=n+o,c=e+a-o,u=n+i-o;t.moveTo(e,l),se.left-n&&t.xe.top-n&&t.y0&&t.requestAnimationFrame()},advance:function(){var t,e,n,a,i=this.animations,r=0;while(r=n?(ct.callback(t.onAnimationComplete,[t],e),e.animating=!1,i.splice(r,1)):++r}},_t=ct.options.resolve,wt=["push","pop","shift","splice","unshift"];function kt(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),wt.forEach((function(e){var n="onData"+e.charAt(0).toUpperCase()+e.slice(1),a=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),i=a.apply(this,e);return ct.each(t._chartjs.listeners,(function(t){"function"===typeof t[n]&&t[n].apply(t,e)})),i}})})))}function Mt(t,e){var n=t._chartjs;if(n){var a=n.listeners,i=a.indexOf(e);-1!==i&&a.splice(i,1),a.length>0||(wt.forEach((function(e){delete t[e]})),delete t._chartjs)}}var Ct=function(t,e){this.initialize(t,e)};ct.extend(Ct.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.chart,a=n.scales,i=t.getDataset(),r=n.options.scales;null!==e.xAxisID&&e.xAxisID in a&&!i.xAxisID||(e.xAxisID=i.xAxisID||r.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in a&&!i.yAxisID||(e.yAxisID=i.yAxisID||r.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&Mt(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,a=n.getMeta(),i=n.getDataset().data||[],r=a.data;for(t=0,e=i.length;ta&&t.insertElements(a,i-a)},insertElements:function(t,e){for(var n=0;ni?(r=i/e.innerRadius,t.arc(o,s,e.innerRadius-i,a+r,n-r,!0)):t.arc(o,s,i,a+Math.PI/2,n-Math.PI/2),t.closePath(),t.clip()}function At(t,e,n,a){var i,r=n.endAngle;for(a&&(n.endAngle=n.startAngle+St,Tt(t,n),n.endAngle=r,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=St,n.fullCircles--)),t.beginPath(),t.arc(n.x,n.y,n.innerRadius,n.startAngle+St,n.startAngle,!0),i=0;is)i-=St;while(i=o&&i<=s,c=r>=n.innerRadius&&r<=n.outerRadius;return l&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t,e=this._chart.ctx,n=this._view,a="inner"===n.borderAlign?.33:0,i={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-a,0),pixelMargin:a,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/St)};if(e.save(),e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+St,e.beginPath(),e.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),e.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),e.closePath(),t=0;tt.x&&(e=Wt(e,"left","right")):t.basen?n:a,r:l.right||i<0?0:i>e?e:i,b:l.bottom||r<0?0:r>n?n:r,l:l.left||o<0?0:o>e?e:o}}function Ut(t){var e=jt(t),n=e.right-e.left,a=e.bottom-e.top,i=Yt(t,n/2,a/2);return{outer:{x:e.left,y:e.top,w:n,h:a},inner:{x:e.left+i.l,y:e.top+i.t,w:n-i.l-i.r,h:a-i.t-i.b}}}function qt(t,e,n){var a=null===e,i=null===n,r=!(!t||a&&i)&&jt(t);return r&&(a||e>=r.left&&e<=r.right)&&(i||n>=r.top&&n<=r.bottom)}K._set("global",{elements:{rectangle:{backgroundColor:Vt,borderColor:Vt,borderSkipped:"bottom",borderWidth:0}}});var Zt=vt.extend({_type:"rectangle",draw:function(){var t=this._chart.ctx,e=this._view,n=Ut(e),a=n.outer,i=n.inner;t.fillStyle=e.backgroundColor,t.fillRect(a.x,a.y,a.w,a.h),a.w===i.w&&a.h===i.h||(t.save(),t.beginPath(),t.rect(a.x,a.y,a.w,a.h),t.clip(),t.fillStyle=e.borderColor,t.rect(i.x,i.y,i.w,i.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return qt(this._view,t,e)},inLabelRange:function(t,e){var n=this._view;return zt(n)?qt(n,t,null):qt(n,null,e)},inXRange:function(t){return qt(this._view,t,null)},inYRange:function(t){return qt(this._view,null,t)},getCenterPoint:function(){var t,e,n=this._view;return zt(n)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return zt(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),Xt={},Gt=Pt,Kt=Ft,Jt=$t,Qt=Zt;Xt.Arc=Gt,Xt.Line=Kt,Xt.Point=Jt,Xt.Rectangle=Qt;var te=ct._deprecated,ee=ct.valueOrDefault;function ne(t,e){var n,a,i,r,o=t._length;for(i=1,r=e.length;i0?Math.min(o,Math.abs(a-n)):o,n=a;return o}function ae(t,e,n){var a,i,r=n.barThickness,o=e.stackCount,s=e.pixels[t],l=ct.isNullOrUndef(r)?ne(e.scale,e.pixels):-1;return ct.isNullOrUndef(r)?(a=l*n.categoryPercentage,i=n.barPercentage):(a=r*o,i=1),{chunk:a/o,ratio:i,start:s-a/2}}function ie(t,e,n){var a,i,r=e.pixels,o=r[t],s=t>0?r[t-1]:null,l=t=0&&m.min>=0?m.min:m.max,_=void 0===m.start?m.end:m.max>=0&&m.min>=0?m.max-m.min:m.min-m.max,w=g.length;if(b||void 0===b&&void 0!==y)for(a=0;a=0&&c.max>=0?c.max:c.min,(m.min<0&&r<0||m.max>=0&&r>0)&&(x+=r))}return o=h.getPixelForValue(x),s=h.getPixelForValue(x+_),l=s-o,void 0!==v&&Math.abs(l)=0&&!f||_<0&&f?o-v:o+v),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(t,e,n,a){var i=this,r="flex"===a.barThickness?ie(e,n,a):ae(e,n,a),o=i.getStackIndex(t,i.getMeta().stack),s=r.start+r.chunk*o+r.chunk/2,l=Math.min(ee(a.maxBarThickness,1/0),r.chunk*r.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var t=this,e=t.chart,n=t._getValueScale(),a=t.getMeta().data,i=t.getDataset(),r=a.length,o=0;for(ct.canvas.clipArea(e.ctx,e.chartArea);o=ue?-de:b<-ue?de:0;var y=b+m,x=Math.cos(b),_=Math.sin(b),w=Math.cos(y),k=Math.sin(y),M=b<=0&&y>=0||y>=de,C=b<=he&&y>=he||y>=de+he,D=b===-ue||y>=ue,S=b<=-he&&y>=-he||y>=ue+he,T=D?-1:Math.min(x,x*g,w,w*g),A=S?-1:Math.min(_,_*g,k,k*g),O=M?1:Math.max(x,x*g,w,w*g),P=C?1:Math.max(_,_*g,k,k*g);c=(O-T)/2,u=(P-A)/2,d=-(O+T)/2,h=-(P+A)/2}for(a=0,i=p.length;a0&&!isNaN(t)?de*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,n,a,i,r,o,s,l,c=this,u=0,d=c.chart;if(!t)for(e=0,n=d.data.datasets.length;eu?s:u,u=l>u?l:u);return u},setHoverStyle:function(t){var e=t._model,n=t._options,a=ct.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=ce(n.hoverBackgroundColor,a(n.backgroundColor)),e.borderColor=ce(n.hoverBorderColor,a(n.borderColor)),e.borderWidth=ce(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,n=0;n0&&ve(c[t-1]._model,l)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,l.left,l.right),n.controlPointPreviousY=u(n.controlPointPreviousY,l.top,l.bottom)),t0&&(r=t.getDatasetMeta(r[0]._datasetIndex).data),r},"x-axis":function(t,e){return Fe(t,e,{intersect:!1})},point:function(t,e){var n=Ae(e,t);return Pe(t,n)},nearest:function(t,e,n){var a=Ae(e,t);n.axis=n.axis||"xy";var i=Le(n.axis);return Ie(t,a,n.intersect,i)},x:function(t,e,n){var a=Ae(e,t),i=[],r=!1;return Oe(t,(function(t){t.inXRange(a.x)&&i.push(t),t.inRange(a.x,a.y)&&(r=!0)})),n.intersect&&!r&&(i=[]),i},y:function(t,e,n){var a=Ae(e,t),i=[],r=!1;return Oe(t,(function(t){t.inYRange(a.y)&&i.push(t),t.inRange(a.x,a.y)&&(r=!0)})),n.intersect&&!r&&(i=[]),i}}},Be=ct.extend;function Re(t,e){return ct.where(t,(function(t){return t.pos===e}))}function Ne(t,e){return t.sort((function(t,n){var a=e?n:t,i=e?t:n;return a.weight===i.weight?a.index-i.index:a.weight-i.weight}))}function $e(t){var e,n,a,i=[];for(e=0,n=(t||[]).length;e div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n",Ke=Object.freeze({__proto__:null,default:Ge}),Je=n(Ke),Qe="$chartjs",tn="chartjs-",en=tn+"size-monitor",nn=tn+"render-monitor",an=tn+"render-animation",rn=["animationstart","webkitAnimationStart"],on={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function sn(t,e){var n=ct.getStyle(t,e),a=n&&n.match(/^(\d+)(\.\d+)?px$/);return a?Number(a[1]):void 0}function ln(t,e){var n=t.style,a=t.getAttribute("height"),i=t.getAttribute("width");if(t[Qe]={initial:{height:a,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===i||""===i){var r=sn(t,"width");void 0!==r&&(t.width=r)}if(null===a||""===a)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var o=sn(t,"height");void 0!==r&&(t.height=o)}return t}var cn=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(n){}return t}(),un=!!cn&&{passive:!0};function dn(t,e,n){t.addEventListener(e,n,un)}function hn(t,e,n){t.removeEventListener(e,n,un)}function fn(t,e,n,a,i){return{type:t,chart:e,native:i||null,x:void 0!==n?n:null,y:void 0!==a?a:null}}function pn(t,e){var n=on[t.type]||t.type,a=ct.getRelativePosition(t,e);return fn(n,e,a.x,a.y,t)}function gn(t,e){var n=!1,a=[];return function(){a=Array.prototype.slice.call(arguments),e=e||this,n||(n=!0,ct.requestAnimFrame.call(window,(function(){n=!1,t.apply(e,a)})))}}function mn(t){var e=document.createElement("div");return e.className=t||"",e}function vn(t){var e=1e6,n=mn(en),a=mn(en+"-expand"),i=mn(en+"-shrink");a.appendChild(mn()),i.appendChild(mn()),n.appendChild(a),n.appendChild(i),n._reset=function(){a.scrollLeft=e,a.scrollTop=e,i.scrollLeft=e,i.scrollTop=e};var r=function(){n._reset(),t()};return dn(a,"scroll",r.bind(a,"expand")),dn(i,"scroll",r.bind(i,"shrink")),n}function bn(t,e){var n=t[Qe]||(t[Qe]={}),a=n.renderProxy=function(t){t.animationName===an&&e()};ct.each(rn,(function(e){dn(t,e,a)})),n.reflow=!!t.offsetParent,t.classList.add(nn)}function yn(t){var e=t[Qe]||{},n=e.renderProxy;n&&(ct.each(rn,(function(e){hn(t,e,n)})),delete e.renderProxy),t.classList.remove(nn)}function xn(t,e,n){var a=t[Qe]||(t[Qe]={}),i=a.resizer=vn(gn((function(){if(a.resizer){var i=n.options.maintainAspectRatio&&t.parentNode,r=i?i.clientWidth:0;e(fn("resize",n)),i&&i.clientWidth0){var r=t[0];r.label?n=r.label:r.xLabel?n=r.xLabel:i>0&&r.index-1?t.split("\n"):t}function Ln(t){var e=t._xScale,n=t._yScale||t._scale,a=t._index,i=t._datasetIndex,r=t._chart.getDatasetMeta(i).controller,o=r._getIndexScale(),s=r._getValueScale();return{xLabel:e?e.getLabelForIndex(a,i):"",yLabel:n?n.getLabelForIndex(a,i):"",label:o?""+o.getLabelForIndex(a,i):"",value:s?""+s.getLabelForIndex(a,i):"",index:a,datasetIndex:i,x:t._model.x,y:t._model.y}}function Fn(t){var e=K.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:Tn(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:Tn(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:Tn(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:Tn(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:Tn(t.titleFontStyle,e.defaultFontStyle),titleFontSize:Tn(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:Tn(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:Tn(t.footerFontStyle,e.defaultFontStyle),footerFontSize:Tn(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function En(t,e){var n=t._chart.ctx,a=2*e.yPadding,i=0,r=e.body,o=r.reduce((function(t,e){return t+e.before.length+e.lines.length+e.after.length}),0);o+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,l=e.footer.length,c=e.titleFontSize,u=e.bodyFontSize,d=e.footerFontSize;a+=s*c,a+=s?(s-1)*e.titleSpacing:0,a+=s?e.titleMarginBottom:0,a+=o*u,a+=o?(o-1)*e.bodySpacing:0,a+=l?e.footerMarginTop:0,a+=l*d,a+=l?(l-1)*e.footerSpacing:0;var h=0,f=function(t){i=Math.max(i,n.measureText(t).width+h)};return n.font=ct.fontString(c,e._titleFontStyle,e._titleFontFamily),ct.each(e.title,f),n.font=ct.fontString(u,e._bodyFontStyle,e._bodyFontFamily),ct.each(e.beforeBody.concat(e.afterBody),f),h=e.displayColors?u+2:0,ct.each(r,(function(t){ct.each(t.before,f),ct.each(t.lines,f),ct.each(t.after,f)})),h=0,n.font=ct.fontString(d,e._footerFontStyle,e._footerFontFamily),ct.each(e.footer,f),i+=2*e.xPadding,{width:i,height:a}}function Bn(t,e){var n,a,i,r,o,s=t._model,l=t._chart,c=t._chart.chartArea,u="center",d="center";s.yl.height-e.height&&(d="bottom");var h=(c.left+c.right)/2,f=(c.top+c.bottom)/2;"center"===d?(n=function(t){return t<=h},a=function(t){return t>h}):(n=function(t){return t<=e.width/2},a=function(t){return t>=l.width-e.width/2}),i=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},r=function(t){return t-e.width-s.caretSize-s.caretPadding<0},o=function(t){return t<=f?"top":"bottom"},n(s.x)?(u="left",i(s.x)&&(u="center",d=o(s.y))):a(s.x)&&(u="right",r(s.x)&&(u="center",d=o(s.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:u,yAlign:p.yAlign?p.yAlign:d}}function Rn(t,e,n,a){var i=t.x,r=t.y,o=t.caretSize,s=t.caretPadding,l=t.cornerRadius,c=n.xAlign,u=n.yAlign,d=o+s,h=l+s;return"right"===c?i-=e.width:"center"===c&&(i-=e.width/2,i+e.width>a.width&&(i=a.width-e.width),i<0&&(i=0)),"top"===u?r+=d:r-="bottom"===u?e.height+d:e.height/2,"center"===u?"left"===c?i+=d:"right"===c&&(i-=d):"left"===c?i-=h:"right"===c&&(i+=h),{x:i,y:r}}function Nn(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function $n(t){return Pn([],In(t))}var Vn=vt.extend({initialize:function(){this._model=Fn(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options,n=e.callbacks,a=n.beforeTitle.apply(t,arguments),i=n.title.apply(t,arguments),r=n.afterTitle.apply(t,arguments),o=[];return o=Pn(o,In(a)),o=Pn(o,In(i)),o=Pn(o,In(r)),o},getBeforeBody:function(){return $n(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var n=this,a=n._options.callbacks,i=[];return ct.each(t,(function(t){var r={before:[],lines:[],after:[]};Pn(r.before,In(a.beforeLabel.call(n,t,e))),Pn(r.lines,a.label.call(n,t,e)),Pn(r.after,In(a.afterLabel.call(n,t,e))),i.push(r)})),i},getAfterBody:function(){return $n(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,e=t._options.callbacks,n=e.beforeFooter.apply(t,arguments),a=e.footer.apply(t,arguments),i=e.afterFooter.apply(t,arguments),r=[];return r=Pn(r,In(n)),r=Pn(r,In(a)),r=Pn(r,In(i)),r},update:function(t){var e,n,a=this,i=a._options,r=a._model,o=a._model=Fn(i),s=a._active,l=a._data,c={xAlign:r.xAlign,yAlign:r.yAlign},u={x:r.x,y:r.y},d={width:r.width,height:r.height},h={x:r.caretX,y:r.caretY};if(s.length){o.opacity=1;var f=[],p=[];h=On[i.position].call(a,s,a._eventPosition);var g=[];for(e=0,n=s.length;e0&&n.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},a={x:e.x,y:e.y},i=Math.abs(e.opacity<.001)?0:e.opacity,r=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(a,e,t,n),a.y+=e.yPadding,ct.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(a,e,t),this.drawBody(a,e,t),this.drawFooter(a,e,t),ct.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var e=this,n=e._options,a=!1;return e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:(e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),n.reverse&&e._active.reverse()),a=!ct.arrayEquals(e._active,e._lastActive),a&&(e._lastActive=e._active,(n.enabled||n.custom)&&(e._eventPosition={x:t.x,y:t.y},e.update(!0),e.pivot())),a}}),zn=On,jn=Vn;jn.positioners=zn;var Wn=ct.valueOrDefault;function Hn(){return ct.merge({},[].slice.call(arguments),{merger:function(t,e,n,a){if("xAxes"===t||"yAxes"===t){var i,r,o,s=n[t].length;for(e[t]||(e[t]=[]),i=0;i=e[t].length&&e[t].push({}),!e[t][i].type||o.type&&o.type!==e[t][i].type?ct.merge(e[t][i],[Sn.getScaleDefaults(r),o]):ct.merge(e[t][i],o)}else ct._merger(t,e,n,a)}})}function Yn(){return ct.merge({},[].slice.call(arguments),{merger:function(t,e,n,a){var i=e[t]||{},r=n[t];"scales"===t?e[t]=Hn(i,r):"scale"===t?e[t]=ct.merge(i,[Sn.getScaleDefaults(r.type),r]):ct._merger(t,e,n,a)}})}function Un(t){t=t||{};var e=t.data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=Yn(K.global,K[t.type],t.options||{}),t}function qn(t){var e=t.options;ct.each(t.scales,(function(e){Ze.removeBox(t,e)})),e=Yn(K.global,K[t.config.type],e),t.options=t.config.options=e,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=e.tooltips,t.tooltip.initialize()}function Zn(t,e,n){var a,i=function(t){return t.id===a};do{a=e+n++}while(ct.findIndex(t,i)>=0);return a}function Xn(t){return"top"===t||"bottom"===t}function Gn(t,e){return function(n,a){return n[t]===a[t]?n[e]-a[e]:n[t]-a[t]}}K._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Kn=function(t,e){return this.construct(t,e),this};ct.extend(Kn.prototype,{construct:function(t,e){var n=this;e=Un(e);var a=Cn.acquireContext(t,e),i=a&&a.canvas,r=i&&i.height,o=i&&i.width;n.id=ct.uid(),n.ctx=a,n.canvas=i,n.config=e,n.width=o,n.height=r,n.aspectRatio=r?o/r:null,n.options=e.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Kn.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),a&&i?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return Dn.notify(t,"beforeInit"),ct.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),Dn.notify(t,"afterInit"),t},clear:function(){return ct.canvas.clear(this),this},stop:function(){return xt.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,a=e.canvas,i=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(ct.getMaximumWidth(a))),o=Math.max(0,Math.floor(i?r/i:ct.getMaximumHeight(a)));if((e.width!==r||e.height!==o)&&(a.width=e.width=r,a.height=e.height=o,a.style.width=r+"px",a.style.height=o+"px",ct.retinaScale(e,n.devicePixelRatio),!t)){var s={width:r,height:o};Dn.notify(e,"resize",[s]),n.onResize&&n.onResize(e,s),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;ct.each(e.xAxes,(function(t,n){t.id||(t.id=Zn(e.xAxes,"x-axis-",n))})),ct.each(e.yAxes,(function(t,n){t.id||(t.id=Zn(e.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,n=t.scales||{},a=[],i=Object.keys(n).reduce((function(t,e){return t[e]=!1,t}),{});e.scales&&(a=a.concat((e.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(e.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),e.scale&&a.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ct.each(a,(function(e){var a=e.options,r=a.id,o=Wn(a.type,e.dtype);Xn(a.position)!==Xn(e.dposition)&&(a.position=e.dposition),i[r]=!0;var s=null;if(r in n&&n[r].type===o)s=n[r],s.options=a,s.ctx=t.ctx,s.chart=t;else{var l=Sn.getScaleConstructor(o);if(!l)return;s=new l({id:r,type:o,options:a,ctx:t.ctx,chart:t}),n[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)})),ct.each(i,(function(t,e){t||delete n[e]})),t.scales=n,Sn.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,n=this,a=[],i=n.data.datasets;for(t=0,e=i.length;t=0;--n)a.drawDataset(e[n],t);Dn.notify(a,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,a={meta:t,index:t.index,easingValue:e};!1!==Dn.notify(n,"beforeDatasetDraw",[a])&&(t.controller.draw(e),Dn.notify(n,"afterDatasetDraw",[a]))},_drawTooltip:function(t){var e=this,n=e.tooltip,a={tooltip:n,easingValue:t};!1!==Dn.notify(e,"beforeTooltipDraw",[a])&&(n.draw(),Dn.notify(e,"afterTooltipDraw",[a]))},getElementAtEvent:function(t){return Ee.modes.single(this,t)},getElementsAtEvent:function(t){return Ee.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return Ee.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var a=Ee.modes[e];return"function"===typeof a?a(this,t,n):[]},getDatasetAtEvent:function(t){return Ee.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var a=n._meta[e.id];return a||(a=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:t}),a},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e=0;a--){var i=t[a];if(e(i))return i}},ct.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},ct.almostEquals=function(t,e,n){return Math.abs(t-e)=t},ct.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},ct.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},ct.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},ct.toRadians=function(t){return t*(Math.PI/180)},ct.toDegrees=function(t){return t*(180/Math.PI)},ct._decimalPlaces=function(t){if(ct.isFinite(t)){var e=1,n=0;while(Math.round(t*e)/e!==t)e*=10,n++;return n}},ct.getAngleFromPoint=function(t,e){var n=e.x-t.x,a=e.y-t.y,i=Math.sqrt(n*n+a*a),r=Math.atan2(a,n);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:i}},ct.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},ct.aliasPixel=function(t){return t%2===0?0:.5},ct._alignPixel=function(t,e,n){var a=t.currentDevicePixelRatio,i=n/2;return Math.round((e-i)*a)/a+i},ct.splineCurve=function(t,e,n,a){var i=t.skip?e:t,r=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(r.x-i.x,2)+Math.pow(r.y-i.y,2)),l=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;var d=a*c,h=a*u;return{previous:{x:r.x-d*(o.x-i.x),y:r.y-d*(o.y-i.y)},next:{x:r.x+h*(o.x-i.x),y:r.y+h*(o.y-i.y)}}},ct.EPSILON=Number.EPSILON||1e-14,ct.splineCurveMonotone=function(t){var e,n,a,i,r,o,s,l,c,u=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),d=u.length;for(e=0;e0?u[e-1]:null,i=e0?u[e-1]:null,i=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},ct.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},ct.niceNum=function(t,e){var n,a=Math.floor(ct.log10(t)),i=t/Math.pow(10,a);return n=e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10,n*Math.pow(10,a)},ct.requestAnimFrame=function(){return"undefined"===typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),ct.getRelativePosition=function(t,e){var n,a,i=t.originalEvent||t,r=t.target||t.srcElement,o=r.getBoundingClientRect(),s=i.touches;s&&s.length>0?(n=s[0].clientX,a=s[0].clientY):(n=i.clientX,a=i.clientY);var l=parseFloat(ct.getStyle(r,"padding-left")),c=parseFloat(ct.getStyle(r,"padding-top")),u=parseFloat(ct.getStyle(r,"padding-right")),d=parseFloat(ct.getStyle(r,"padding-bottom")),h=o.right-o.left-l-u,f=o.bottom-o.top-c-d;return n=Math.round((n-o.left-l)/h*r.width/e.currentDevicePixelRatio),a=Math.round((a-o.top-c)/f*r.height/e.currentDevicePixelRatio),{x:n,y:a}},ct.getConstraintWidth=function(t){return n(t,"max-width","clientWidth")},ct.getConstraintHeight=function(t){return n(t,"max-height","clientHeight")},ct._calculatePadding=function(t,e,n){return e=ct.getStyle(t,e),e.indexOf("%")>-1?n*parseInt(e,10)/100:parseInt(e,10)},ct._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},ct.getMaximumWidth=function(t){var e=ct._getParentNode(t);if(!e)return t.clientWidth;var n=e.clientWidth,a=ct._calculatePadding(e,"padding-left",n),i=ct._calculatePadding(e,"padding-right",n),r=n-a-i,o=ct.getConstraintWidth(t);return isNaN(o)?r:Math.min(r,o)},ct.getMaximumHeight=function(t){var e=ct._getParentNode(t);if(!e)return t.clientHeight;var n=e.clientHeight,a=ct._calculatePadding(e,"padding-top",n),i=ct._calculatePadding(e,"padding-bottom",n),r=n-a-i,o=ct.getConstraintHeight(t);return isNaN(o)?r:Math.min(r,o)},ct.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},ct.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||"undefined"!==typeof window&&window.devicePixelRatio||1;if(1!==n){var a=t.canvas,i=t.height,r=t.width;a.height=i*n,a.width=r*n,t.ctx.scale(n,n),a.style.height||a.style.width||(a.style.height=i+"px",a.style.width=r+"px")}},ct.fontString=function(t,e,n){return e+" "+t+"px "+n},ct.longestText=function(t,e,n,a){a=a||{};var i=a.data=a.data||{},r=a.garbageCollect=a.garbageCollect||[];a.font!==e&&(i=a.data={},r=a.garbageCollect=[],a.font=e),t.font=e;var o,s,l,c,u,d=0,h=n.length;for(o=0;on.length){for(o=0;oa&&(a=r),a},ct.numberOfLabelLines=function(t){var e=1;return ct.each(t,(function(t){ct.isArray(t)&&t.length>e&&(e=t.length)})),e},ct.color=R?function(t){return t instanceof CanvasGradient&&(t=K.global.defaultColor),R(t)}:function(t){return console.error("Color.js not found!"),t},ct.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:ct.color(t).saturate(.5).darken(.1).rgbString()}};function ta(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function ea(t){this.options=t||{}}ct.extend(ea.prototype,{formats:ta,parse:ta,format:ta,add:ta,diff:ta,startOf:ta,endOf:ta,_create:function(t){return t}}),ea.override=function(t){ct.extend(ea.prototype,t)};var na=ea,aa={_date:na},ia={formatters:{values:function(t){return ct.isArray(t)?t:""+t},linear:function(t,e,n){var a=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var i=ct.log10(Math.abs(a)),r="";if(0!==t){var o=Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]));if(o<1e-4){var s=ct.log10(Math.abs(t)),l=Math.floor(s)-Math.floor(i);l=Math.max(Math.min(l,20),0),r=t.toExponential(l)}else{var c=-1*Math.floor(i);c=Math.max(Math.min(c,20),0),r=t.toFixed(c)}}else r="0";return r},logarithmic:function(t,e,n){var a=t/Math.pow(10,Math.floor(ct.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===e||e===n.length-1?t.toExponential():""}}},ra=ct.isArray,oa=ct.isNullOrUndef,sa=ct.valueOrDefault,la=ct.valueAtIndexOrDefault;function ca(t,e){for(var n=[],a=t.length/e,i=0,r=t.length;il+c)))return o}function da(t,e){ct.each(t,(function(t){var n,a=t.gc,i=a.length/2;if(i>e){for(n=0;nc)return r;return Math.max(c,1)}function xa(t){var e,n,a=[];for(e=0,n=t.length;e=h||u<=1||!s.isHorizontal()?s.labelRotation=d:(t=s._getLabelSizes(),e=t.widest.width,n=t.highest.height-t.highest.offset,a=Math.min(s.maxWidth,s.chart.width-e),i=l.offset?s.maxWidth/u:a/(u-1),e+6>i&&(i=a/(u-(l.offset?.5:1)),r=s.maxHeight-fa(l.gridLines)-c.padding-pa(l.scaleLabel),o=Math.sqrt(e*e+n*n),f=ct.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/i,1)),Math.asin(Math.min(r/o,1))-Math.asin(n/o))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){ct.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ct.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=t.chart,a=t.options,i=a.ticks,r=a.scaleLabel,o=a.gridLines,s=t._isVisible(),l="bottom"===a.position,c=t.isHorizontal();if(c?e.width=t.maxWidth:s&&(e.width=fa(o)+pa(r)),c?s&&(e.height=fa(o)+pa(r)):e.height=t.maxHeight,i.display&&s){var u=ma(i),d=t._getLabelSizes(),h=d.first,f=d.last,p=d.widest,g=d.highest,m=.4*u.minor.lineHeight,v=i.padding;if(c){var b=0!==t.labelRotation,y=ct.toRadians(t.labelRotation),x=Math.cos(y),_=Math.sin(y),w=_*p.width+x*(g.height-(b?g.offset:0))+(b?0:m);e.height=Math.min(t.maxHeight,e.height+w+v);var k,M,C=t.getPixelForTick(0)-t.left,D=t.right-t.getPixelForTick(t.getTicks().length-1);b?(k=l?x*h.width+_*h.offset:_*(h.height-h.offset),M=l?_*(f.height-f.offset):x*f.width+_*f.offset):(k=h.width/2,M=f.width/2),t.paddingLeft=Math.max((k-C)*t.width/(t.width-C),0)+3,t.paddingRight=Math.max((M-D)*t.width/(t.width-D),0)+3}else{var S=i.mirror?0:p.width+v+m;e.width=Math.min(t.maxWidth,e.width+S),t.paddingTop=h.height/2,t.paddingBottom=f.height/2}}t.handleMargins(),c?(t.width=t._length=n.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=n.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){ct.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(oa(t))return NaN;if(("number"===typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},_convertTicksToLabels:function(t){var e,n,a,i=this;for(i.ticks=t.map((function(t){return t.value})),i.beforeTickToLabelConversion(),e=i.convertTicksToLabels(t)||i.ticks,i.afterTickToLabelConversion(),n=0,a=t.length;na-1?null:e.getPixelForDecimal(t*i+(n?i/2:0))},getPixelForDecimal:function(t){var e=this;return e._reversePixels&&(t=1-t),e._startPixel+t*e._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,a,i,r=this,o=r.options.ticks,s=r._length,l=o.maxTicksLimit||s/r._tickSize()+1,c=o.major.enabled?xa(t):[],u=c.length,d=c[0],h=c[u-1];if(u>l)return _a(t,c,u/l),va(t);if(a=ya(c,t,s,l),u>0){for(e=0,n=u-1;e1?(h-d)/(u-1):null,wa(t,a,ct.isNullOrUndef(i)?0:d-i,d),wa(t,a,h,ct.isNullOrUndef(i)?t.length:h+i),va(t)}return wa(t,a),va(t)},_tickSize:function(){var t=this,e=t.options.ticks,n=ct.toRadians(t.labelRotation),a=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),r=t._getLabelSizes(),o=e.autoSkipPadding||0,s=r?r.widest.width+o:0,l=r?r.highest.height+o:0;return t.isHorizontal()?l*a>s*i?s/a:l/i:l*i=0&&(o=t)),void 0!==r&&(t=n.indexOf(r),t>=0&&(s=t)),e.minIndex=o,e.maxIndex=s,e.min=n[o],e.max=n[s]},buildTicks:function(){var t=this,e=t._getLabels(),n=t.minIndex,a=t.maxIndex;t.ticks=0===n&&a===e.length-1?e:e.slice(n,a+1)},getLabelForIndex:function(t,e){var n=this,a=n.chart;return a.getDatasetMeta(e).controller._getValueScaleId()===n.id?n.getRightValue(a.data.datasets[e].data[t]):n._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,n=t.ticks;Ma.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),n&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(n.length-(e?0:1),1))},getPixelForValue:function(t,e,n){var a,i,r,o=this;return Ca(e)||Ca(n)||(t=o.chart.data.datasets[n].data[e]),Ca(t)||(a=o.isHorizontal()?t.x:t.y),(void 0!==a||void 0!==t&&isNaN(e))&&(i=o._getLabels(),t=ct.valueOrDefault(a,t),r=i.indexOf(t),e=-1!==r?r:e,isNaN(e)&&(e=t)),o.getPixelForDecimal((e-o._startValue)/o._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=this,n=Math.round(e._startValue+e.getDecimalForPixel(t)*e._valueRange);return Math.min(Math.max(n,0),e.ticks.length-1)},getBasePixel:function(){return this.bottom}}),Ta=Da;Sa._defaults=Ta;var Aa=ct.noop,Oa=ct.isNullOrUndef;function Pa(t,e){var n,a,i,r,o=[],s=1e-14,l=t.stepSize,c=l||1,u=t.maxTicks-1,d=t.min,h=t.max,f=t.precision,p=e.min,g=e.max,m=ct.niceNum((g-p)/u/c)*c;if(mu&&(m=ct.niceNum(r*m/u/c)*c),l||Oa(f)?n=Math.pow(10,ct._decimalPlaces(m)):(n=Math.pow(10,f),m=Math.ceil(m*n)/n),a=Math.floor(p/m)*m,i=Math.ceil(g/m)*m,l&&(!Oa(d)&&ct.almostWhole(d/m,m/1e3)&&(a=d),!Oa(h)&&ct.almostWhole(h/m,m/1e3)&&(i=h)),r=(i-a)/m,r=ct.almostEquals(r,Math.round(r),m/1e3)?Math.round(r):Math.ceil(r),a=Math.round(a*n)/n,i=Math.round(i*n)/n,o.push(Oa(d)?a:d);for(var v=1;v0&&i>0&&(t.min=0)}var r=void 0!==n.min||void 0!==n.suggestedMin,o=void 0!==n.max||void 0!==n.suggestedMax;void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(null===t.min?t.min=n.suggestedMin:t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(null===t.max?t.max=n.suggestedMax:t.max=Math.max(t.max,n.suggestedMax)),r!==o&&t.min>=t.max&&(r?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this,n=e.options.ticks,a=n.stepSize,i=n.maxTicksLimit;return a?t=Math.ceil(e.max/a)-Math.floor(e.min/a)+1:(t=e._computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Aa,buildTicks:function(){var t=this,e=t.options,n=e.ticks,a=t.getTickLimit();a=Math.max(2,a);var i={maxTicks:a,min:n.min,max:n.max,precision:n.precision,stepSize:ct.valueOrDefault(n.fixedStepSize,n.stepSize)},r=t.ticks=Pa(i,t);t.handleDirectionalChanges(),t.max=ct.max(r),t.min=ct.min(r),n.reverse?(r.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),Ma.prototype.convertTicksToLabels.call(t)},_configure:function(){var t,e=this,n=e.getTicks(),a=e.min,i=e.max;Ma.prototype._configure.call(e),e.options.offset&&n.length&&(t=(i-a)/Math.max(n.length-1,1)/2,a-=t,i+=t),e._startValue=a,e._endValue=i,e._valueRange=i-a}}),La={position:"left",ticks:{callback:ia.formatters.linear}},Fa=0,Ea=1;function Ba(t,e,n){var a=[n.type,void 0===e&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===t[a]&&(t[a]={pos:[],neg:[]}),t[a]}function Ra(t,e,n,a){var i,r,o=t.options,s=o.stacked,l=Ba(e,s,n),c=l.pos,u=l.neg,d=a.length;for(i=0;ie.length-1?null:this.getPixelForValue(e[t])}}),Va=La;$a._defaults=Va;var za=ct.valueOrDefault,ja=ct.math.log10;function Wa(t,e){var n,a,i=[],r=za(t.min,Math.pow(10,Math.floor(ja(e.min)))),o=Math.floor(ja(e.max)),s=Math.ceil(e.max/Math.pow(10,o));0===r?(n=Math.floor(ja(e.minNotZero)),a=Math.floor(e.minNotZero/Math.pow(10,n)),i.push(r),r=a*Math.pow(10,n)):(n=Math.floor(ja(r)),a=Math.floor(r/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{i.push(r),++a,10===a&&(a=1,++n,l=n>=0?1:l),r=Math.round(a*Math.pow(10,n)*l)/l}while(n=0?t:e}var Ua=Ma.extend({determineDataLimits:function(){var t,e,n,a,i,r,o=this,s=o.options,l=o.chart,c=l.data.datasets,u=o.isHorizontal();function d(t){return u?t.xAxisID===o.id:t.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(t=0;t0){var e=ct.min(t),n=ct.max(t);o.min=Math.min(o.min,e),o.max=Math.max(o.max,n)}}))}else for(t=0;t0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(ja(t.max))):t.minNotZero=n)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),a={min:Ya(e.min),max:Ya(e.max)},i=t.ticks=Wa(a,t);t.max=ct.max(i),t.min=ct.min(i),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),Ma.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){var e=this.tickValues;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(ja(t)),n=Math.floor(t/Math.pow(10,e));return n*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,n=0;Ma.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),n=za(t.options.ticks.fontSize,K.global.defaultFontSize)/t._length),t._startValue=ja(e),t._valueOffset=n,t._valueRange=(ja(t.max)-ja(e))/(1-n)},getPixelForValue:function(t){var e=this,n=0;return t=+e.getRightValue(t),t>e.min&&t>0&&(n=(ja(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(n)},getValueForPixel:function(t){var e=this,n=e.getDecimalForPixel(t);return 0===n&&0===e.min?0:Math.pow(10,e._startValue+(n-e._valueOffset)*e._valueRange)}}),qa=Ha;Ua._defaults=qa;var Za=ct.valueOrDefault,Xa=ct.valueAtIndexOrDefault,Ga=ct.options.resolve,Ka={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:ia.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function Ja(t){var e=t.ticks;return e.display&&t.display?Za(e.fontSize,K.global.defaultFontSize)+2*e.backdropPaddingY:0}function Qa(t,e,n){return ct.isArray(n)?{w:ct.longestText(t,t.font,n),h:n.length*e}:{w:t.measureText(n).width,h:e}}function ti(t,e,n,a,i){return t===a||t===i?{start:e-n/2,end:e+n/2}:ti?{start:e-n,end:e}:{start:e,end:e+n}}function ei(t){var e,n,a,i=ct.options._parseFont(t.options.pointLabels),r={l:0,r:t.width,t:0,b:t.height-t.paddingTop},o={};t.ctx.font=i.string,t._pointLabelSizes=[];var s=t.chart.data.labels.length;for(e=0;er.r&&(r.r=u.end,o.r=l),d.startr.b&&(r.b=d.end,o.b=l)}t.setReductions(t.drawingArea,r,o)}function ni(t){return 0===t||180===t?"center":t<180?"left":"right"}function ai(t,e,n,a){var i,r,o=n.y+a/2;if(ct.isArray(e))for(i=0,r=e.length;i270||t<90)&&(n.y-=e.h)}function ri(t){var e=t.ctx,n=t.options,a=n.pointLabels,i=Ja(n),r=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),o=ct.options._parseFont(a);e.save(),e.font=o.string,e.textBaseline="middle";for(var s=t.chart.data.labels.length-1;s>=0;s--){var l=0===s?i/2:0,c=t.getPointPosition(s,r+l+5),u=Xa(a.fontColor,s,K.global.defaultFontColor);e.fillStyle=u;var d=t.getIndexAngle(s),h=ct.toDegrees(d);e.textAlign=ni(h),ii(h,t._pointLabelSizes[s],c),ai(e,t.pointLabels[s],c,o.lineHeight)}e.restore()}function oi(t,e,n,a){var i,r=t.ctx,o=e.circular,s=t.chart.data.labels.length,l=Xa(e.color,a-1),c=Xa(e.lineWidth,a-1);if((o||s)&&l&&c){if(r.save(),r.strokeStyle=l,r.lineWidth=c,r.setLineDash&&(r.setLineDash(e.borderDash||[]),r.lineDashOffset=e.borderDashOffset||0),r.beginPath(),o)r.arc(t.xCenter,t.yCenter,n,0,2*Math.PI);else{i=t.getPointPosition(0,n),r.moveTo(i.x,i.y);for(var u=1;u0&&a>0?n:0)},_drawGrid:function(){var t,e,n,a=this,i=a.ctx,r=a.options,o=r.gridLines,s=r.angleLines,l=Za(s.lineWidth,o.lineWidth),c=Za(s.color,o.color);if(r.pointLabels.display&&ri(a),o.display&&ct.each(a.ticks,(function(t,n){0!==n&&(e=a.getDistanceFromCenterForValue(a.ticksAsNumbers[n]),oi(a,o,e,n))})),s.display&&l&&c){for(i.save(),i.lineWidth=l,i.strokeStyle=c,i.setLineDash&&(i.setLineDash(Ga([s.borderDash,o.borderDash,[]])),i.lineDashOffset=Ga([s.borderDashOffset,o.borderDashOffset,0])),t=a.chart.data.labels.length-1;t>=0;t--)e=a.getDistanceFromCenterForValue(r.ticks.reverse?a.min:a.max),n=a.getPointPosition(t,e),i.beginPath(),i.moveTo(a.xCenter,a.yCenter),i.lineTo(n.x,n.y),i.stroke();i.restore()}},_drawLabels:function(){var t=this,e=t.ctx,n=t.options,a=n.ticks;if(a.display){var i,r,o=t.getIndexAngle(0),s=ct.options._parseFont(a),l=Za(a.fontColor,K.global.defaultFontColor);e.save(),e.font=s.string,e.translate(t.xCenter,t.yCenter),e.rotate(o),e.textAlign="center",e.textBaseline="middle",ct.each(t.ticks,(function(n,o){(0!==o||a.reverse)&&(i=t.getDistanceFromCenterForValue(t.ticksAsNumbers[o]),a.showLabelBackdrop&&(r=e.measureText(n).width,e.fillStyle=a.backdropColor,e.fillRect(-r/2-a.backdropPaddingX,-i-s.size/2-a.backdropPaddingY,r+2*a.backdropPaddingX,s.size+2*a.backdropPaddingY)),e.fillStyle=l,e.fillText(n,0,-i))})),e.restore()}},_drawTitle:ct.noop}),ci=Ka;li._defaults=ci;var ui=ct._deprecated,di=ct.options.resolve,hi=ct.valueOrDefault,fi=Number.MIN_SAFE_INTEGER||-9007199254740991,pi=Number.MAX_SAFE_INTEGER||9007199254740991,gi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},mi=Object.keys(gi);function vi(t,e){return t-e}function bi(t){var e,n,a,i={},r=[];for(e=0,n=t.length;ee&&s=0&&o<=s){if(a=o+s>>1,i=t[a-1]||null,r=t[a],!i)return{lo:null,hi:r};if(r[e]n))return{lo:i,hi:r};s=a-1}}return{lo:r,hi:null}}function ki(t,e,n,a){var i=wi(t,e,n),r=i.lo?i.hi?i.lo:t[t.length-2]:t[0],o=i.lo?i.hi?i.hi:t[t.length-1]:t[1],s=o[e]-r[e],l=s?(n-r[e])/s:0,c=(o[a]-r[a])*l;return r[a]+c}function Mi(t,e){var n=t._adapter,a=t.options.time,i=a.parser,r=i||a.format,o=e;return"function"===typeof i&&(o=i(o)),ct.isFinite(o)||(o="string"===typeof r?n.parse(o,r):n.parse(o)),null!==o?+o:(i||"function"!==typeof r||(o=r(e),ct.isFinite(o)||(o=n.parse(o))),o)}function Ci(t,e){if(ct.isNullOrUndef(e))return null;var n=t.options.time,a=Mi(t,t.getRightValue(e));return null===a||n.round&&(a=+t._adapter.startOf(a,n.round)),a}function Di(t,e,n,a){var i,r,o,s=mi.length;for(i=mi.indexOf(t);i=mi.indexOf(n);r--)if(o=mi[r],gi[o].common&&t._adapter.diff(i,a,o)>=e-1)return o;return mi[n?mi.indexOf(n):0]}function Ti(t){for(var e=mi.indexOf(t)+1,n=mi.length;e1e5*c)throw e+" and "+n+" are too far apart with stepSize of "+c+" "+l;for(i=d;i=0&&(e[r].major=!0);return e}function Ii(t,e,n){var a,i,r=[],o={},s=e.length;for(a=0;a1?bi(p).sort(vi):p.sort(vi),h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),h=Ci(s,yi(u))||h,f=Ci(s,xi(u))||f,h=h===pi?+c.startOf(Date.now(),d):h,f=f===fi?+c.endOf(Date.now(),d)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:p,datasets:g,labels:m}},buildTicks:function(){var t,e,n,a=this,i=a.min,r=a.max,o=a.options,s=o.ticks,l=o.time,c=a._timestamps,u=[],d=a.getLabelCapacity(i),h=s.source,f=o.distribution;for(c="data"===h||"auto"===h&&"series"===f?c.data:"labels"===h?c.labels:Ai(a,i,r,d),"ticks"===o.bounds&&c.length&&(i=c[0],r=c[c.length-1]),i=Ci(a,yi(o))||i,r=Ci(a,xi(o))||r,t=0,e=c.length;t=i&&n<=r&&u.push(n);return a.min=i,a.max=r,a._unit=l.unit||(s.autoSkip?Di(l.minUnit,a.min,a.max,d):Si(a,u.length,l.minUnit,a.min,a.max)),a._majorUnit=s.major.enabled&&"year"!==a._unit?Ti(a._unit):void 0,a._table=_i(a._timestamps.data,i,r,f),a._offsets=Oi(a._table,u,i,r,o),s.reverse&&u.reverse(),Ii(a,u,a._majorUnit)},getLabelForIndex:function(t,e){var n=this,a=n._adapter,i=n.chart.data,r=n.options.time,o=i.labels&&t=0&&t0?s:1}}),Ei=Li;Fi._defaults=Ei;var Bi={category:Sa,linear:$a,logarithmic:Ua,radialLinear:li,time:Fi},Ri={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};aa._date.override("function"===typeof t?{_id:"moment",formats:function(){return Ri},parse:function(e,n){return"string"===typeof e&&"string"===typeof n?e=t(e,n):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,n){return t(e).format(n)},add:function(e,n,a){return t(e).add(n,a).valueOf()},diff:function(e,n,a){return t(e).diff(t(n),a)},startOf:function(e,n,a){return e=t(e),"isoWeek"===n?e.isoWeekday(a).valueOf():e.startOf(n).valueOf()},endOf:function(e,n){return t(e).endOf(n).valueOf()},_create:function(e){return t(e)}}:{}),K._set("global",{plugins:{filler:{propagate:!0}}});var Ni={dataset:function(t){var e=t.fill,n=t.chart,a=n.getDatasetMeta(e),i=a&&n.isDatasetVisible(e),r=i&&a.dataset._children||[],o=r.length||0;return o?function(t,e){return e=n)&&a;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function Vi(t){var e,n=t.el._model||{},a=t.el._scale||{},i=t.fill,r=null;if(isFinite(i))return null;if("start"===i?r=void 0===n.scaleBottom?a.bottom:n.scaleBottom:"end"===i?r=void 0===n.scaleTop?a.top:n.scaleTop:void 0!==n.scaleZero?r=n.scaleZero:a.getBasePixel&&(r=a.getBasePixel()),void 0!==r&&null!==r){if(void 0!==r.x&&void 0!==r.y)return r;if(ct.isFinite(r))return e=a.isHorizontal(),{x:e?r:null,y:e?null:r}}return null}function zi(t){var e,n,a,i,r,o=t.el._scale,s=o.options,l=o.chart.data.labels.length,c=t.fill,u=[];if(!l)return null;for(e=s.ticks.reverse?o.max:o.min,n=s.ticks.reverse?o.min:o.max,a=o.getPointPositionForValue(0,e),i=0;i0;--r)ct.canvas.lineTo(t,n[r],n[r-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),r=i-1;r>0;--r)t.arc(o,s,l,n[r].angle,n[r-1].angle,!0)}}function qi(t,e,n,a,i,r){var o,s,l,c,u,d,h,f,p=e.length,g=a.spanGaps,m=[],v=[],b=0,y=0;for(t.beginPath(),o=0,s=p;o=0;--n)e=l[n].$filler,e&&e.visible&&(a=e.el,i=a._view,r=a._children||[],o=e.mapper,s=i.backgroundColor||K.global.defaultColor,o&&s&&r.length&&(ct.canvas.clipArea(c,t.chartArea),qi(c,r,o,i,s,a._loop),ct.canvas.unclipArea(c)))}},Xi=ct.rtl.getRtlAdapter,Gi=ct.noop,Ki=ct.valueOrDefault;function Ji(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}K._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,a=this.chart,i=a.getDatasetMeta(n);i.hidden=null===i.hidden?!a.data.datasets[n].hidden:null,a.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,n=t.options.legend||{},a=n.labels&&n.labels.usePointStyle;return t._getSortedDatasetMetas().map((function(n){var i=n.controller.getStyle(a?0:void 0);return{text:e[n.index].label,fillStyle:i.backgroundColor,hidden:!t.isDatasetVisible(n.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(t){var e,n,a,i,r=document.createElement("ul"),o=t.data.datasets;for(r.setAttribute("class",t.id+"-legend"),e=0,n=o.length;el.width)&&(d+=o+n.padding,u[u.length-(e>0?0:1)]=0),s[e]={left:0,top:0,width:r,height:o},u[u.length-1]+=r+n.padding})),l.height+=d}else{var h=n.padding,f=t.columnWidths=[],p=t.columnHeights=[],g=n.padding,m=0,v=0;ct.each(t.legendItems,(function(t,e){var a=Ji(n,o),r=a+o/2+i.measureText(t.text).width;e>0&&v+o+2*h>l.height&&(g+=m+n.padding,f.push(m),p.push(v),m=0,v=0),m=Math.max(m,r),v+=o+h,s[e]={left:0,top:0,width:r,height:o}})),g+=m,f.push(m),p.push(v),l.width+=g}t.width=l.width,t.height=l.height}else t.width=l.width=t.height=l.height=0},afterFit:Gi,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,a=K.global,i=a.defaultColor,r=a.elements.line,o=t.height,s=t.columnHeights,l=t.width,c=t.lineWidths;if(e.display){var u,d=Xi(e.rtl,t.left,t.minSize.width),h=t.ctx,f=Ki(n.fontColor,a.defaultFontColor),p=ct.options._parseFont(n),g=p.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=p.string;var m=Ji(n,g),v=t.legendHitBoxes,b=function(t,e,a){if(!(isNaN(m)||m<=0)){h.save();var o=Ki(a.lineWidth,r.borderWidth);if(h.fillStyle=Ki(a.fillStyle,i),h.lineCap=Ki(a.lineCap,r.borderCapStyle),h.lineDashOffset=Ki(a.lineDashOffset,r.borderDashOffset),h.lineJoin=Ki(a.lineJoin,r.borderJoinStyle),h.lineWidth=o,h.strokeStyle=Ki(a.strokeStyle,i),h.setLineDash&&h.setLineDash(Ki(a.lineDash,r.borderDash)),n&&n.usePointStyle){var s=m*Math.SQRT2/2,l=d.xPlus(t,m/2),c=e+g/2;ct.canvas.drawPoint(h,a.pointStyle,s,l,c,a.rotation)}else h.fillRect(d.leftForLtr(t,m),e,m,g),0!==o&&h.strokeRect(d.leftForLtr(t,m),e,m,g);h.restore()}},y=function(t,e,n,a){var i=g/2,r=d.xPlus(t,m+i),o=e+i;h.fillText(n.text,r,o),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(r,o),h.lineTo(d.xPlus(r,a),o),h.stroke())},x=function(t,a){switch(e.align){case"start":return n.padding;case"end":return t-a;default:return(t-a+n.padding)/2}},_=t.isHorizontal();u=_?{x:t.left+x(l,c[0]),y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+x(o,s[0]),line:0},ct.rtl.overrideTextDirection(t.ctx,e.textDirection);var w=g+n.padding;ct.each(t.legendItems,(function(e,a){var i=h.measureText(e.text).width,r=m+g/2+i,f=u.x,p=u.y;d.setWidth(t.minSize.width),_?a>0&&f+r+n.padding>t.left+t.minSize.width&&(p=u.y+=w,u.line++,f=u.x=t.left+x(l,c[u.line])):a>0&&p+w>t.top+t.minSize.height&&(f=u.x=f+t.columnWidths[u.line]+n.padding,u.line++,p=u.y=t.top+x(o,s[u.line]));var k=d.x(f);b(k,p,e),v[a].left=d.leftForLtr(k,v[a].width),v[a].top=p,y(k,p,e,i),_?u.x+=r+n.padding:u.y+=w})),ct.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var n,a,i,r=this;if(t>=r.left&&t<=r.right&&e>=r.top&&e<=r.bottom)for(i=r.legendHitBoxes,n=0;n=a.left&&t<=a.left+a.width&&e>=a.top&&e<=a.top+a.height)return r.legendItems[n];return null},handleEvent:function(t){var e,n=this,a=n.options,i="mouseup"===t.type?"click":t.type;if("mousemove"===i){if(!a.onHover&&!a.onLeave)return}else{if("click"!==i)return;if(!a.onClick)return}e=n._getLegendItemAt(t.x,t.y),"click"===i?e&&a.onClick&&a.onClick.call(n,t.native,e):(a.onLeave&&e!==n._hoveredItem&&(n._hoveredItem&&a.onLeave.call(n,t.native,n._hoveredItem),n._hoveredItem=e),a.onHover&&e&&a.onHover.call(n,t.native,e))}});function tr(t,e){var n=new Qi({ctx:t.ctx,options:e,chart:t});Ze.configure(t,n,e),Ze.addBox(t,n),t.legend=n}var er={id:"legend",_element:Qi,beforeInit:function(t){var e=t.options.legend;e&&tr(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(ct.mergeIf(e,K.global.legend),n?(Ze.configure(t,n,e),n.options=e):tr(t,e)):n&&(Ze.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},nr=ct.noop;K._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var ar=vt.extend({initialize:function(t){var e=this;ct.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:nr,update:function(t,e,n){var a=this;return a.beforeUpdate(),a.maxWidth=t,a.maxHeight=e,a.margins=n,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:nr,beforeSetDimensions:nr,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:nr,beforeBuildLabels:nr,buildLabels:nr,afterBuildLabels:nr,beforeFit:nr,fit:function(){var t,e,n=this,a=n.options,i=n.minSize={},r=n.isHorizontal();a.display?(t=ct.isArray(a.text)?a.text.length:1,e=t*ct.options._parseFont(a).lineHeight+2*a.padding,n.width=i.width=r?n.maxWidth:e,n.height=i.height=r?e:n.maxHeight):n.width=i.width=n.height=i.height=0},afterFit:nr,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=t.options;if(n.display){var a,i,r,o=ct.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,c=0,u=t.top,d=t.left,h=t.bottom,f=t.right;e.fillStyle=ct.valueOrDefault(n.fontColor,K.global.defaultFontColor),e.font=o.string,t.isHorizontal()?(i=d+(f-d)/2,r=u+l,a=f-d):(i="left"===n.position?d+l:f-l,r=u+(h-u)/2,a=h-u,c=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(i,r),e.rotate(c),e.textAlign="center",e.textBaseline="middle";var p=n.text;if(ct.isArray(p))for(var g=0,m=0;m1?arguments[1]:void 0)}})},"558a":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-container",{staticClass:" justify-start align-center ",staticStyle:{height:"100%"},attrs:{fluid:""}},[n("h1",[t._v(t._s(t.$ml.get("reportsTitle")))]),n("v-row",[n("v-col",{attrs:{cols:"12",md:"2"}},[n("v-dialog",{ref:"dialog",attrs:{persistent:"",width:"290px"},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,i=e.attrs;return[n("v-text-field",t._g(t._b({attrs:{label:t.$ml.get("reportsPeriodLabel"),"prepend-icon":"mdi-calendar",readonly:"",clearable:""},model:{value:t.formattedDate,callback:function(e){t.formattedDate=e},expression:"formattedDate"}},"v-text-field",i,!1),a))]}}]),model:{value:t.dateModal,callback:function(e){t.dateModal=e},expression:"dateModal"}},[n("v-date-picker",{attrs:{scrollable:"",range:""},model:{value:t.searchDate,callback:function(e){t.searchDate=e},expression:"searchDate"}},[n("v-spacer"),n("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(e){t.dateModal=!1}}},[t._v(t._s(t.$ml.get("formCancelButton")))]),n("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(e){return t.closeModal()}}},[t._v(t._s(t.$ml.get("formOkButton")))])],1)],1)],1),t.isSuperUser&&t.showOrgFilter?n("v-col",{attrs:{cols:"12",md:"2"}},[n("v-select",{attrs:{items:t.companies,"item-text":"name","item-value":"id",label:t.$ml.get("reportsOrgLabel")},on:{change:t.changeCompany},model:{value:t.selectedCompany,callback:function(e){t.selectedCompany=e},expression:"selectedCompany"}})],1):t._e(),n("v-col",{attrs:{cols:"12",md:"2"}},[n("v-select",{attrs:{items:t.terminals,"item-text":"serial_number","item-value":"id",label:t.$ml.get("reportsTermLabel")},on:{change:t.changeTerminal},model:{value:t.selectedTerminal,callback:function(e){t.selectedTerminal=e},expression:"selectedTerminal"}})],1),n("v-col",{directives:[{name:"show",rawName:"v-show",value:t.isOwner,expression:"isOwner"}],attrs:{cols:"12",md:"2"}},[n("v-select",{attrs:{items:t.members,"item-text":"user.name","item-value":"id",label:t.$ml.get("reportsMemberLabel")},on:{change:t.changeMember},model:{value:t.selectedMember,callback:function(e){t.selectedMember=e},expression:"selectedMember"}})],1),n("v-col",{attrs:{cols:"12",md:"2"}},[n("v-select",{attrs:{items:t.paymentTypes,"item-text":"name","item-value":"id",label:t.$ml.get("reportsPayTypeLabel")},on:{change:t.changePaymentType},model:{value:t.selectedPaymentType,callback:function(e){t.selectedPaymentType=e},expression:"selectedPaymentType"}})],1),n("v-col",{attrs:{cols:"12",md:"2"}},[n("v-select",{attrs:{items:t.orgClients,"item-text":"name","item-value":"id",label:t.$ml.get("reportsClientLabel")},on:{change:t.changeClient},model:{value:t.selectedClient,callback:function(e){t.selectedClient=e},expression:"selectedClient"}})],1)],1),n("v-row",[n("v-col",{attrs:{cols:"12",md:"6"}},[n("PieChart",{attrs:{height:300,"chart-data":t.countData,options:t.createOptions(t.$ml.get("reportsCountTitle"))}})],1),n("v-col",{attrs:{cols:"12",md:"6"}},[n("PieChart",{staticStyle:{height:"300px"},attrs:{"chart-data":t.paymentData,options:t.createOptions(t.$ml.get("reportsPaymentTitle"))}})],1)],1),n("v-row",[n("v-col",{attrs:{cols:"12"}},[n("LineChart",{attrs:{height:300,options:t.createOptions(t.$ml.get("reportsDailyTitle")),"chart-data":t.dailyData}})],1)],1),n("v-row",[n("v-col",{attrs:{cols:"12"}},[n("LineChart",{attrs:{height:300,options:t.createOptions(t.$ml.get("reportsDailyCountTitle")),"chart-data":t.dailyCountData}})],1)],1),n("v-row",[n("v-col",{attrs:{cols:"12"}},[n("LineChart",{attrs:{height:300,options:t.createOptions(t.$ml.get("reportsHourTitle")),"chart-data":t.hourData}})],1)],1),n("v-row",[n("v-col",{attrs:{cols:"12"}},[n("h3",[t._v(t._s(t.$ml.get("reportsStatsTitle")))]),n("v-simple-table",{scopedSlots:t._u([{key:"default",fn:function(){return[n("thead",[n("tr",[n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsStatsHeaderService"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsStatsHeaderCount"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsStatsHeaderPercentPast"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsStatsHeaderCost"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsStatsHeaderPercentPast"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsStatsHeaderDiscount"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsStatsHeaderRevenue"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsStatsHeaderMiddle"))+" ")])])]),n("tbody",[t._l(t.full_stats,(function(e){return n("tr",{key:e.service_name},[n("td",[t._v(" "+t._s(e.service_name||t.$ml.get("reportsStatsManMsg"))+" ")]),n("td",[t._v(t._s(e.totals.count))]),n("td",[n("span",{class:{"success--text":e.count_percent>0,"error--text":e.count_percent<0}},[t._v(t._s(e.count_percent||"-")),e.count_percent?n("span",[t._v("%")]):t._e()])]),n("td",[t._v(t._s(t._f("currency")(e.totals.cost)))]),n("td",[n("span",{class:{"success--text":e.cost_percent>0,"error--text":e.cost_percent<0}},[t._v(t._s(e.cost_percent||"-")),e.cost_percent?n("span",[t._v("%")]):t._e()])]),n("td",[t._v(" "+t._s(t._f("currency")(e.totals.cost-e.totals.revenue))+" ")]),n("td",[t._v(t._s(t._f("currency")(e.totals.revenue)))]),n("td",[t._v(" "+t._s(t._f("currency")(e.totals.revenue/e.totals.count))+" ")])])})),n("tr",{staticClass:"font-weight-bold"},[n("td",[t._v(t._s(t.$ml.get("reportsStatsTotal")))]),n("td",[t._v(t._s(t.statsTotal.count))]),n("td",[n("span",{class:{"success--text":t.statsTotal.count_percent>0,"error--text":t.statsTotal.count_percent<0}},[t._v(t._s(t.statsTotal.count_percent||"-")),t.statsTotal.count_percent?n("span",[t._v("%")]):t._e()])]),n("td",[t._v(t._s(t._f("currency")(t.statsTotal.cost)))]),n("td",[n("span",{class:{"success--text":t.statsTotal.cost_percent>0,"error--text":t.statsTotal.cost_percent<0}},[t._v(t._s(t.statsTotal.cost_percent||"-")),t.statsTotal.cost_percent?n("span",[t._v("%")]):t._e()])]),n("td",[t._v(t._s(t._f("currency")(t.statsTotal.cost-t.statsTotal.revenue)))]),n("td",[t._v(t._s(t._f("currency")(t.statsTotal.revenue)))]),n("td",[t._v(" "+t._s(t._f("currency")(0!=t.statsTotal.count?t.statsTotal.revenue/t.statsTotal.count:0))+" ")])])],2)]},proxy:!0}])})],1)],1),n("v-row",[n("v-col",{attrs:{cols:"12"}},[n("div",{staticClass:"d-flex align-start"},[n("h3",[t._v(t._s(t.$ml.get("reportsLogentryTitle")))]),n("div",{staticClass:"d-flex ml-auto"},[n("v-btn",{attrs:{color:"primary"},on:{click:function(e){return t.download()}}},[t._v(t._s(t.$ml.get("reportsLogentryDownloadBtn")))]),n("v-btn",{attrs:{color:"primary ml-5"},on:{click:function(e){return t.downloadClient()}}},[t._v(t._s(t.$ml.get("reportsLogentryDownloadClientBtn")))])],1)]),n("v-simple-table",{attrs:{"fixed-header":""},scopedSlots:t._u([{key:"default",fn:function(){return[n("thead",[n("tr",[n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsLogentryHeadService"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsLogentryHeadServiceType"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsLogentryHeadPrice"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsLogentryHeadDiscount"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsLogentryHeadAmount"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsLogentryHeadMode"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsLogentryHeadStart"))+" "),n("br"),t._v(" "+t._s(t.$ml.get("reportsLogentryHeadEnd"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsLogentryHeadTime"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsLogentryHeadType"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsLogentryHeadState"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsLogentryHeadDate"))+" ")]),n("th",{staticClass:"text-left"},[t._v(" "+t._s(t.$ml.get("reportsLogentryHeadMember"))+" ")]),n("th")])]),n("tbody",[t._l(t.logentry,(function(e){return n("tr",{key:e.id,staticStyle:{cursor:"pointer"},on:{click:function(n){return t.getDumps(e)}}},[n("td",[e.service?n("span",[t._v(t._s(e.service.name||"-"))]):t._e()]),n("td",[e.service?n("span",[t._v(t._s(e.service.is_wash?"С мойкой":"Без мойки"))]):t._e()]),n("td",[e.service?n("span",[t._v(t._s(t._f("currency")(e.service.price)))]):t._e()]),n("td",[e.payment?n("span",[t._v(t._s(t._f("currency")(e.service.price-e.payment.amount)))]):e.coupon&&e.service?n("span",[t._v(" "+t._s(t._f("currency")(e.service.price))+" ")]):t._e(),e.coupon?n("div",[n("span",[t._v(t._s(e.coupon))])]):t._e()]),n("td",[e.payment?n("span",[t._v(t._s(t._f("currency")(e.payment.amount)))]):e.coupon?n("span",[t._v("0.00 ₽")]):n("span",[t._v(t._s(t.$ml.get("reportsLogentryNoPay")))])]),n("td",[e.wash_mode?n("span",[t._v(t._s(t.$ml.get("reportsLogentryModeLabel"))+" "+t._s(e.wash_mode))]):t._e()]),n("td",[e.wash_start||e.wash_end?n("div",[n("span",[t._v(t._s(e.wash_start_str||"-"))]),n("br"),n("span",[t._v(t._s(e.wash_end_str||"-"))])]):n("span",[t._v("-")])]),n("td",[t._v(t._s(e.wash_time_str||"-"))]),n("td",[t._v(" "+t._s(e.wash_started_manually?t.$ml.get("reportsLogentryWashManually"):t.$ml.get("reportsLogentryWashAuto"))+" ")]),n("td",[t._v(" "+t._s(e.wash_end?t.$ml.get("reportsLogentryWashEnd"):t.$ml.get("reportsLogentryWashNoEnd"))+" ")]),n("td",[t._v(t._s(e.created_at_str))]),n("td",[n("span",[t._v(t._s(e.member?e.member.user.name:"-"))])]),n("td",[e.payment&&e.payment.amount>0&&("success"===e.payment.status||"cash"===e.payment.type)?n("v-btn",{attrs:{text:"",icon:"",color:"primary"},on:{click:function(n){return n.stopPropagation(),t.getReceipt(e)}}},[n("v-icon",[t._v("mdi-receipt")])],1):t._e()],1)])})),n("tr",{staticClass:"table-pagination"},[n("td",{attrs:{colspan:"10"}},[n("v-pagination",{attrs:{length:t.logentryOptions.pageCount,"total-visible":10},on:{input:t.getLogentryInfo},model:{value:t.logentryOptions.page,callback:function(e){t.$set(t.logentryOptions,"page",e)},expression:"logentryOptions.page"}})],1)])],2)]},proxy:!0}])})],1)],1),n("v-dialog",{attrs:{"retain-focus":!1,persistent:"","max-width":"1000px"},model:{value:t.dialogDumpInfo,callback:function(e){t.dialogDumpInfo=e},expression:"dialogDumpInfo"}},[n("v-card",[n("v-card-title",[t._v(" "+t._s(t.$ml.get("reportsDumpTitle"))+" "+t._s(t.currentLogentry.created_at_str)+" ")]),n("v-card-subtitle",[t._v(" "+t._s(t.$ml.with(0,t.currentLogentry.wash_start_str||"-").with(1,t.currentLogentry.wash_end_str||"-").with(2,t.currentLogentry.wash_time_str).get("reportsDumpSubTitle"))+" ")]),n("v-card-text",[n("v-row",[n("v-col",{attrs:{cols:"12"}},[n("apexchart",{attrs:{type:"rangeBar",options:t.chartOptions,series:t.lodentryDump}})],1)],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{attrs:{color:"primary",text:""},on:{click:function(e){t.dialogDumpInfo=!1}}},[t._v(" "+t._s(t.$ml.get("modalCloseButton"))+" ")])],1)],1)],1)],1)},i=[],r=(n("99af"),n("7db0"),n("c740"),n("4160"),n("a630"),n("c975"),n("a15b"),n("fb6a"),n("b0c0"),n("ac1f"),n("3ca3"),n("5319"),n("498a"),n("159b"),n("96cf"),n("1da1")),o=n("3eeb"),s=n("e7ac"),l=n("0bde"),c=n("365c"),u=n("2ef0"),d=n.n(u);function h(t,e){if(e){var n=this.$data._chart,a=t.datasets.map((function(t){return t.label})),i=e.datasets.map((function(t){return t.label})),r=JSON.stringify(i),o=JSON.stringify(a);o===r&&e.datasets.length===t.datasets.length?(t.datasets.forEach((function(t,a){var i=Object.keys(e.datasets[a]),r=Object.keys(t),o=i.filter((function(t){return"_meta"!==t&&-1===r.indexOf(t)}));for(var s in o.forEach((function(t){delete n.data.datasets[a][t]})),t)t.hasOwnProperty(s)&&(n.data.datasets[a][s]=t[s])})),t.hasOwnProperty("labels")&&(n.data.labels=t.labels,this.$emit("labels:update")),t.hasOwnProperty("xLabels")&&(n.data.xLabels=t.xLabels,this.$emit("xlabels:update")),t.hasOwnProperty("yLabels")&&(n.data.yLabels=t.yLabels,this.$emit("ylabels:update")),n.update(),this.$emit("chart:update")):(n&&(n.destroy(),this.$emit("chart:destroy")),this.renderChart(this.chartData,this.options),this.$emit("chart:render"))}else this.$data._chart&&(this.$data._chart.destroy(),this.$emit("chart:destroy")),this.renderChart(this.chartData,this.options),this.$emit("chart:render")}var f={data:function(){return{chartData:null}},watch:{chartData:h}},p={props:{chartData:{type:Object,required:!0,default:function(){}}},watch:{chartData:h}},g={reactiveData:f,reactiveProp:p},m=n("30ef"),v=n.n(m);function b(t,e){return{render:function(t){return t("div",{style:this.styles,class:this.cssClasses},[t("canvas",{attrs:{id:this.chartId,width:this.width,height:this.height},ref:"canvas"})])},props:{chartId:{default:t,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:function(){return[]}}},data:function(){return{_chart:null,_plugins:this.plugins}},methods:{addPlugin:function(t){this.$data._plugins.push(t)},generateLegend:function(){if(this.$data._chart)return this.$data._chart.generateLegend()},renderChart:function(t,n){if(this.$data._chart&&this.$data._chart.destroy(),!this.$refs.canvas)throw new Error("Please remove the tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components");this.$data._chart=new v.a(this.$refs.canvas.getContext("2d"),{type:e,data:t,options:n,plugins:this.$data._plugins})}},beforeDestroy:function(){this.$data._chart&&this.$data._chart.destroy()}}}b("bar-chart","bar"),b("horizontalbar-chart","horizontalBar"),b("doughnut-chart","doughnut");var y,x,_,w,k=b("line-chart","line"),M=b("pie-chart","pie"),C=(b("polar-chart","polarArea"),b("radar-chart","radar"),b("bubble-chart","bubble"),b("scatter-chart","scatter"),g.reactiveProp),D={name:"PieChart",extends:M,mixins:[C],props:["options"],data:function(){return{}},mounted:function(){this.renderChart(this.chartData,this.options)}},S=D,T=n("2877"),A=Object(T["a"])(S,y,x,!1,null,"765e0f0e",null),O=A.exports,P=n("c1df"),I=n.n(P),L=g.reactiveProp,F={name:"LineChart",extends:k,mixins:[L],props:["options"],data:function(){return{}},mounted:function(){this.renderChart(this.chartData,this.options)}},E=F,B=Object(T["a"])(E,_,w,!1,null,"426e1674",null),R=B.exports,N=n("21a6"),$=n.n(N),V=n("ce49"),z=n("9821"),j=n("a002"),W=n.n(j),H={name:"Reports",components:{PieChart:O,LineChart:R},data:function(){return{searchDate:[I()().startOf("month").format("YYYY-MM-DD"),I()().format("YYYY-MM-DD")],stats:{},full_stats:[],full_stats_past:[],statsTotal:{count:0,cost:0,revenue:0},statsTotalPast:{count:0,cost:0,revenue:0},countData:{},paymentData:{},dailyData:{},dailyCountData:{},hourData:{},dateModal:!1,logentry:[],logentryOptions:{limit:30,offset:0,total:0,page:1,pageCount:1},selectedCompany:null,selectedTerminal:null,selectedMember:null,selectedPaymentType:null,selectedClient:null,companies:[{id:null,name:this.$ml.get("reportsAllLabel")}],terminals:[{id:null,name:this.$ml.get("reportsAllLabel")}],members:[{id:null,name:this.$ml.get("reportsAllLabel")}],paymentTypes:[{id:null,name:this.$ml.get("reportsAllLabel")},{id:0,name:this.$ml.get("reportsPayTypeNoCouponLabel")},{id:1,name:this.$ml.get("reportsPayTypeCouponLabel")}],orgClients:[{id:null,name:this.$ml.get("reportsAllLabel")}],dialogDumpInfo:!1,lodentryDump:[],currentLogentry:{},chartOptions:{chart:{type:"rangeBar",locales:[V,z],defaultLocale:this.$ml.get("chartLocale")},plotOptions:{bar:{horizontal:!0,barHeight:"90%",rangeBarGroupRows:!0}},xaxis:{type:"datetime",tickAmount:10,labels:{datetimeUTC:!1,showDuplicates:!0,formatter:function(t,e){return I()(t).format("HH:mm")}}},stroke:{width:1},fill:{type:"solid",opacity:.6},legend:{position:"top",horizontalAlign:"left"},tooltip:{x:{format:"HH:mm:ss"}}}}},mounted:function(){var t=this;o["a"].getOrganizations().then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.companies=n.data,1==t.companies.length&&(t.selectedCompany=t.companies[0].id),t.searchedCompany&&(t.selectedCompany=t.searchedCompany.id,t.isOwner||(t.selectedMember=t.searchedCompany.member||t.currentUser.id)),e.next=5,W.a.getItem("order_filter_".concat(t.currentUser.id));case 5:a=e.sent,a&&(d.a.has(a,"company")&&d.a.find(t.companies,{id:a["company"]})&&(t.selectedCompany=a["company"],d.a.has(a,"terminal")&&(t.selectedTerminal=a["terminal"]),d.a.has(a,"member")&&(t.selectedMember=a["member"])),d.a.has(a,"paymentType")&&(t.selectedPaymentType=a["paymentType"]),d.a.has(a,"searchDate")&&(t.searchDate=a["searchDate"])),t.selectedCompany&&t.changeCompany();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},watch:{searchedCompany:function(t){this.selectedCompany=t.id,this.changeCompany()},$route:function(){this.searchedCompany&&(this.selectedCompany=this.searchedCompany.id,this.changeCompany())}},computed:{formattedDate:function(){return this.searchDate.join("~")},searchedCompany:function(){return this.$store.getters["navigation/selectedCompanyObject"]},isSuperUser:function(){return!!this.$store.getters["user/authUserInfo"]&&this.$store.getters["user/authUserInfo"].is_superuser},showOrgFilter:function(){return this.$route.meta.orgFilter||!1},currentUser:function(){return this.$store.getters["user/authUserInfo"]},isOwner:function(){return this.searchedCompany.owner&&this.currentUser&&this.searchedCompany.owner.id==this.currentUser.id}},methods:{createOptions:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{title:{display:!0,text:t,fontSize:24},responsive:!0,maintainAspectRatio:!1,legend:{position:"bottom",display:e},plugins:{labels:{render:"label"}}}},getLogentryInfo:function(){var t,e,n=this,a=o["a"],i=this.selectedCompany;this.selectedTerminal&&(a=s["a"],i=this.selectedTerminal),2===this.searchDate.length&&(t=I()(this.searchDate[0]).startOf("day").format("YYYY-MM-DDTHH:mmZ"),e=I()(this.searchDate[1]).endOf("day").format("YYYY-MM-DDTHH:mmZ")),a.getLogentry(i,{start_date:t,end_date:e,member:this.selectedMember,coupon:this.selectedPaymentType,client_id:this.selectedClient,offset:this.logentryOptions.limit*(this.logentryOptions.page-1),limit:this.logentryOptions.limit}).then((function(t){n.logentry=t.data,n.logentryOptions.total=t.headers["x-total-count"],n.logentryOptions.total>0?n.logentryOptions.pageCount=Math.ceil(n.logentryOptions.total/n.logentryOptions.limit):n.logentryOptions.pageCount=1,d.a.forEach(n.logentry,(function(t){t.created_at_str=I()(t.created_at).format(n.$ml.get("dateTimeFormat")),t.updated_at_str=I()(t.updated_at).format(n.$ml.get("dateTimeFormat")),t.wash_start&&(t.wash_start_str=I()(t.wash_start).format(n.$ml.get("dateTimeFormat"))),t.wash_end&&(t.wash_end_str=I()(t.wash_end).format(n.$ml.get("dateTimeFormat"))),t.wash_start&&t.wash_end&&(t.wash_time=I.a.duration(I()(t.wash_end).diff(I()(t.wash_start))),t.wash_time_str="".concat(("0"+t.wash_time.get("minutes")).slice(-2),":").concat(("0"+t.wash_time.get("seconds")).slice(-2)))}))}))},changeCompany:function(){var t=this;s["a"].getOrganizationsTerminals(this.selectedCompany).then((function(e){t.terminals=e.data,1===t.terminals.length?t.selectedTerminal=t.terminals[0].id:(t.selectedTerminal&&!d.a.find(t.terminals,{id:t.selectedTerminal})&&(t.selectedTerminal=null),t.terminals.unshift({id:null,serial_number:t.$ml.get("reportsAllLabel")})),t.fillData(),t.logentryOptions.page=1,setTimeout(t.getLogentryInfo,1500)})),o["a"].getOrganizationsMembers(this.selectedCompany,{is_active:!0}).then((function(e){t.members=e.data,t.members.unshift({id:null,user:{name:t.$ml.get("reportsAllLabel")}}),l["a"].getOrganizationClients(t.selectedCompany,{has_coupon:!0}).then((function(e){t.orgClients=e.data,t.orgClients.unshift({id:null,name:t.$ml.get("reportsAllLabel")})}))}))},changeTerminal:function(){this.fillData(),this.logentryOptions.page=1,this.getLogentryInfo()},changeMember:function(){this.fillData(),this.logentryOptions.page=1,this.getLogentryInfo()},changePaymentType:function(){this.fillData(),this.logentryOptions.page=1,this.getLogentryInfo()},changeClient:function(){this.fillData(),this.logentryOptions.page=1,this.getLogentryInfo()},closeModal:function(){this.dateModal=!1,1===this.searchDate.length&&this.searchDate.push(this.searchDate[0]),this.fillData(),this.logentryOptions.page=1,this.getLogentryInfo()},fillData:function(){var t=this;this.saveFilter();var e,n,a=o["a"],i=this.selectedCompany;this.selectedTerminal&&(a=s["a"],i=this.selectedTerminal),2===this.searchDate.length&&(e=I()(this.searchDate[0]).startOf("day").format("YYYY-MM-DDTHH:mmZ"),n=I()(this.searchDate[1]).endOf("day").format("YYYY-MM-DDTHH:mmZ")),a.getStats(i,{since:e,until:n,member:this.selectedMember,coupon:this.selectedPaymentType,client_id:this.selectedClient}).then((function(r){t.stats=r.data[0]||{},t.full_stats=t.stats.full_service||[],t.countData={labels:[],datasets:[{data:[],backgroundColor:["#ef727a","#3598db","#e8d349","#c45850","#6dcab5","#ad1ab5"]}]},t.paymentData={labels:[],datasets:[{data:[],backgroundColor:["#ef727a","#3598db","#e8d349","#c45850","#6dcab5","#ad1ab5"]}]},t.statsTotal={count:0,cost:0,revenue:0},d.a.forEach(t.full_stats,(function(e){t.countData.labels.push("".concat(e.service_name||t.$ml.get("reportServiceManually")," (").concat(e.totals.count,")")),t.countData.datasets[0].data.push(e.totals.count),t.paymentData.labels.push("".concat(e.service_name||t.$ml.get("reportServiceManually")," - ").concat(e.totals.revenue)),t.paymentData.datasets[0].data.push(e.totals.revenue),e.service_name&&(t.statsTotal.count+=e.totals.count,t.statsTotal.cost+=e.totals.cost,t.statsTotal.revenue+=e.totals.revenue)}));var o={labels:[],datasets:[{label:"".concat(t.$ml.get("reportsDailyTitle")," ").concat(I()(t.searchDate[0]).format("YYYY")),borderColor:"#5face4",fill:!1,pointRadius:5,data:[]}]};d.a.forEach(Array.from(I.a.range(t.searchDate).by("day")),(function(e){var n=e.format("DD.MM");o.labels.push(n);var a=0;d.a.forEach(t.stats.revenue_by_days||[],(function(t){I.a.unix(t[0]).format("DD.MM")==n&&(a=t[1])})),o.datasets[0].data.push(a)}));var s,l,c={labels:[],datasets:[{label:"".concat(t.$ml.get("reportsStatsHeaderCount")," ").concat(I()(t.searchDate[0]).format("YYYY")),borderColor:"#5face4",fill:!1,pointRadius:5,data:[]}]};d.a.forEach(Array.from(I.a.range(t.searchDate).by("day")),(function(e){var n=e.format("DD.MM");c.labels.push(n);var a=0;d.a.forEach(t.stats.count_by_days||[],(function(t){I.a.unix(t[0]).format("DD.MM")==n&&(a=t[1])})),c.datasets[0].data.push(a)})),2===t.searchDate.length&&(s=I()(t.searchDate[0]).startOf("day").subtract(1,"years").format("YYYY-MM-DDTHH:mmZ"),l=I()(t.searchDate[1]).endOf("day").subtract(1,"years").format("YYYY-MM-DDTHH:mmZ")),2===t.searchDate.length?a.getStats(i,{since:s,until:l,member:t.selectedMember,coupon:t.selectedPaymentType,client_id:t.selectedClient}).then((function(e){var n=e.data[0]||[];t.full_stats_past=n.full_service||[],t.statsTotalPast={count:0,cost:0,revenue:0},d.a.forEach(t.full_stats_past,(function(e){var n=d.a.findIndex(t.full_stats,(function(t){return d.a.trim(t.service_name)==d.a.trim(e.service_name)}));if(n>-1){var a=t.full_stats[n].totals;t.$set(t.full_stats[n],"count_percent",d.a.round((a.count-e.totals.count)/e.totals.count*100,2)),t.$set(t.full_stats[n],"cost_percent",d.a.round((a.cost-e.totals.cost)/e.totals.cost*100,2))}e.service_name&&(t.statsTotalPast.count+=e.totals.count,t.statsTotalPast.cost+=e.totals.cost,t.statsTotalPast.revenue+=e.totals.revenue)})),t.statsTotalPast.count>0&&(t.$set(t.statsTotal,"count_percent",d.a.round((t.statsTotal.count-t.statsTotalPast.count)/t.statsTotalPast.count*100,2)),t.$set(t.statsTotal,"cost_percent",d.a.round((t.statsTotal.cost-t.statsTotalPast.cost)/t.statsTotalPast.cost*100,2))),o.datasets.push({label:"".concat(t.$ml.get("reportsDailyTitle")," ").concat(I()(s).format("YYYY")),borderColor:"#e45fac",fill:!1,pointRadius:5,data:[]}),d.a.forEach(Array.from(I.a.range([s,l]).by("day")),(function(t){var e=t.format("DD.MM"),a=0;d.a.forEach(n.revenue_by_days,(function(t){I.a.unix(t[0]).format("DD.MM")==e&&(a=t[1])})),o.datasets[1].data.push(a)})),t.dailyData=o,c.datasets.push({label:"".concat(t.$ml.get("reportsStatsHeaderCount")," ").concat(I()(s).format("YYYY")),borderColor:"#e45fac",fill:!1,pointRadius:5,data:[]}),d.a.forEach(Array.from(I.a.range([s,l]).by("day")),(function(t){var e=t.format("DD.MM"),a=0;d.a.forEach(n.count_by_days,(function(t){I.a.unix(t[0]).format("DD.MM")==e&&(a=t[1])})),c.datasets[1].data.push(a)})),t.dailyCountData=c})):(t.dailyData=o,t.dailyCountData=c);var u,h,f=t.stats.daily_load_by_hours||[];e&&(u=I()(e).subtract(1,"months").startOf("day").format("YYYY-MM-DDTHH:mmZ")),n&&(h=I()(n).subtract(1,"months").endOf("day").format("YYYY-MM-DDTHH:mmZ")),a.getStats(i,{stat:"daily_load_by_hours",since:u,until:h,member:t.selectedMember,coupon:t.selectedPaymentType,client_id:t.selectedClient}).then((function(a){t.hourData={labels:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],datasets:[{label:t.$ml.with(0,I()(e).format("DD.MM.YY")).with(1,I()(n).format("DD.MM.YY")).get("reportsHourDatasetLabel"),borderColor:"#5face4",fill:!1,pointRadius:5,data:[]},{label:t.$ml.with(0,I()(u).format("DD.MM.YY")).with(1,I()(h).format("DD.MM.YY")).get("reportsHourDatasetLabel"),borderColor:"#e45fac",fill:!1,pointRadius:5,data:[]}]},d.a.forEach(t.hourData.labels,(function(e){var n=0,i=0;d.a.forEach(f,(function(t){t[0]===e&&(n=t[1])})),d.a.forEach(a.data,(function(t){t[0]===e&&(i=t[1])})),t.hourData.datasets[0].data.push(n),t.hourData.datasets[1].data.push(i)}))}))}))},download:function(){var t,e,n=this,a=o["a"],i=this.selectedCompany;this.selectedTerminal&&(a=s["a"],i=this.selectedTerminal),2===this.searchDate.length&&(t=I()(this.searchDate[0]).startOf("day").format("YYYY-MM-DDTHH:mmZ"),e=I()(this.searchDate[1]).endOf("day").format("YYYY-MM-DDTHH:mmZ")),a.getLogentryXmlReport(i,{responseType:"blob",params:{start_date:t,end_date:e,member:this.selectedMember,coupon:this.selectedPaymentType,client_id:this.selectedClient}}).then((function(t){var e=new Blob([t.data],{type:"application/force-download;"}),n="",a=t.headers["content-disposition"];if(a&&-1!==a.indexOf("attachment")){var i=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/,r=i.exec(a);null!=r&&r[1]&&(n=r[1].replace(/['"]/g,""),n=n.replace("utf-8",""))}$()(e,decodeURI(n))}),(function(){n.$toast.error(n.$ml.get("reportsDownloadErrorMsg"))}))},downloadClient:function(){var t,e,n=this,a=o["a"],i=this.selectedCompany;this.selectedTerminal&&(a=s["a"],i=this.selectedTerminal),2===this.searchDate.length&&(t=I()(this.searchDate[0]).startOf("day").format("YYYY-MM-DDTHH:mmZ"),e=I()(this.searchDate[1]).endOf("day").format("YYYY-MM-DDTHH:mmZ")),a.getLogentryXmlClientReport(i,{responseType:"blob",params:{start_date:t,end_date:e,member:this.selectedMember,coupon:this.selectedPaymentType,client_id:this.selectedClient}}).then((function(t){var e=new Blob([t.data],{type:"application/force-download;"}),n="",a=t.headers["content-disposition"];if(a&&-1!==a.indexOf("attachment")){var i=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/,r=i.exec(a);null!=r&&r[1]&&(n=r[1].replace(/['"]/g,""),n=n.replace("utf-8",""))}$()(e,decodeURI(n))}),(function(){n.$toast.error(n.$ml.get("reportsDownloadErrorMsg"))}))},getDumps:function(t){var e=this;c["a"].get("/logentries/".concat(t.id,"/dump-detail")).then((function(n){e.currentLogentry=t,d.a.forEach(n.data.in_info,(function(t){d.a.forEach(t.data,(function(t){d.a.forEach(t.y,(function(e,n){t.y[n]=new Date(I()(1e3*e)).getTime()}))}))})),d.a.forEach(n.data.out_info,(function(t){d.a.forEach(t.data,(function(t){d.a.forEach(t.y,(function(e,n){t.y[n]=new Date(I()(1e3*e)).getTime()}))}))}));var a=n.data.in_info;if(d.a.forEach(n.data.out_info,(function(t){var e=d.a.find(a,{name:t.name});e&&(e.data=d.a.concat(e.data,t.data))})),t.terminal&&t.wash_start&&t.wash_end){var i={};i["start_date"]=t.wash_start,i["end_date"]=t.wash_end,c["a"].get("/terminals/".concat(t.terminal.id,"/messages"),{params:i}).then((function(t){d.a.forEach(t.data,(function(t){var e=t.service_name||"Режим не установлен",n=[new Date(t.date_created).getTime(),new Date(I()(t.date_created).add(10,"seconds")).getTime()],i=d.a.find(a,{name:e});i&&(i.data=d.a.concat(i.data,{x:t.message,y:n}))})),d.a.reverse(a),e.lodentryDump=a,e.dialogDumpInfo=!0}))}else d.a.reverse(a),e.lodentryDump=a,e.dialogDumpInfo=!0}))},getReceipt:function(t){var e=this;c["a"].get("/logentries/".concat(t.id,"/receipt-url")).then((function(t){window.open(t.data,"_blank")})).catch((function(t){var n=d.a.get(t,"response.data.detail");n&&e.$message.error(n)}))},saveFilter:function(){var t={searchDate:this.searchDate};this.selectedCompany&&(t["company"]=this.selectedCompany),this.selectedTerminal&&(t["terminal"]=this.selectedTerminal),this.selectedMember&&(t["member"]=this.selectedMember),null!=this.selectedPaymentType&&(t["paymentType"]=this.selectedPaymentType),W.a.setItem("order_filter_".concat(this.currentUser.id),t)}}},Y=H,U=(n("40fb"),n("6544")),q=n.n(U),Z=n("8336"),X=n("b0af"),G=n("99d9"),K=n("62ad"),J=n("a523"),Q=n("2e4b"),tt=n("169a"),et=n("132d"),nt=(n("d81d"),n("a9e3"),n("d3b7"),n("25f0"),n("2909")),at=n("5530"),it=(n("17b3"),n("9d26")),rt=n("dc22"),ot=n("a9ad"),st=n("de2c"),lt=n("7560"),ct=n("58df"),ut=Object(ct["a"])(ot["a"],Object(st["a"])({onVisible:["init"]}),lt["a"]).extend({name:"v-pagination",directives:{Resize:rt["a"]},props:{circle:Boolean,disabled:Boolean,length:{type:Number,default:0,validator:function(t){return t%1===0}},nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"},totalVisible:[Number,String],value:{type:Number,default:0},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},wrapperAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.wrapper"}},data:function(){return{maxButtons:0,selected:null}},computed:{classes:function(){return Object(at["a"])({"v-pagination":!0,"v-pagination--circle":this.circle,"v-pagination--disabled":this.disabled},this.themeClasses)},items:function(){var t=parseInt(this.totalVisible,10),e=Math.min(Math.max(0,t)||this.length,Math.max(0,this.maxButtons)||this.length,this.length);if(this.length<=e)return this.range(1,this.length);var n=e%2===0?1:0,a=Math.floor(e/2),i=this.length-a+1+n;if(this.value>a&&this.value0?t:1;for(var a=t;a<=e;a++)n.push(a);return n},genIcon:function(t,e,n,a,i){return t("li",[t("button",{staticClass:"v-pagination__navigation",class:{"v-pagination__navigation--disabled":n},attrs:{type:"button","aria-label":i},on:n?{}:{click:a}},[t(it["a"],[e])])])},genItem:function(t,e){var n=this,a=e===this.value&&(this.color||"primary"),i=e===this.value,r=i?this.currentPageAriaLabel:this.pageAriaLabel;return t("button",this.setBackgroundColor(a,{staticClass:"v-pagination__item",class:{"v-pagination__item--active":e===this.value},attrs:{type:"button","aria-current":i,"aria-label":this.$vuetify.lang.t(r,e)},on:{click:function(){return n.$emit("input",e)}}}),[e.toString()])},genItems:function(t){var e=this;return this.items.map((function(n,a){return t("li",{key:a},[isNaN(Number(n))?t("span",{class:"v-pagination__more"},[n.toString()]):e.genItem(t,n)])}))},genList:function(t,e){return t("ul",{directives:[{modifiers:{quiet:!0},name:"resize",value:this.onResize}],class:this.classes},e)}},render:function(t){var e=[this.genIcon(t,this.$vuetify.rtl?this.nextIcon:this.prevIcon,this.value<=1,this.previous,this.$vuetify.lang.t(this.previousAriaLabel)),this.genItems(t),this.genIcon(t,this.$vuetify.rtl?this.prevIcon:this.nextIcon,this.value>=this.length,this.next,this.$vuetify.lang.t(this.nextAriaLabel))];return t("nav",{attrs:{role:"navigation","aria-label":this.$vuetify.lang.t(this.wrapperAriaLabel)}},[this.genList(t,e)])}}),dt=n("0fd9"),ht=n("b974"),ft=n("1f4f"),pt=n("2fa4"),gt=n("8654"),mt=Object(T["a"])(Y,a,i,!1,null,"60390b71",null);e["default"]=mt.exports;q()(mt,{VBtn:Z["a"],VCard:X["a"],VCardActions:G["a"],VCardSubtitle:G["b"],VCardText:G["c"],VCardTitle:G["d"],VCol:K["a"],VContainer:J["a"],VDatePicker:Q["a"],VDialog:tt["a"],VIcon:et["a"],VPagination:ut,VRow:dt["a"],VSelect:ht["a"],VSimpleTable:ft["a"],VSpacer:pt["a"],VTextField:gt["a"]})},"604c":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));n("4de4"),n("7db0"),n("c740"),n("4160"),n("caad"),n("c975"),n("fb6a"),n("a434"),n("a9e3"),n("2532"),n("159b");var a=n("5530"),i=(n("166a"),n("a452")),r=n("7560"),o=n("58df"),s=n("d9bd"),l=Object(o["a"])(i["a"],r["a"]).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean},data:function(){return{internalLazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,items:[]}},computed:{classes:function(){return Object(a["a"])({"v-item-group":!0},this.themeClasses)},selectedIndex:function(){return this.selectedItem&&this.items.indexOf(this.selectedItem)||-1},selectedItem:function(){if(!this.multiple)return this.selectedItems[0]},selectedItems:function(){var t=this;return this.items.filter((function(e,n){return t.toggleMethod(t.getValue(e,n))}))},selectedValues:function(){return null==this.internalValue?[]:Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod:function(){var t=this;if(!this.multiple)return function(e){return t.internalValue===e};var e=this.internalValue;return Array.isArray(e)?function(t){return e.includes(t)}:function(){return!1}}},watch:{internalValue:"updateItemsState",items:"updateItemsState"},created:function(){this.multiple&&!Array.isArray(this.internalValue)&&Object(s["c"])("Model must be bound to an array if the multiple property is true.",this)},methods:{genData:function(){return{class:this.classes}},getValue:function(t,e){return null==t.value||""===t.value?e:t.value},onClick:function(t){this.updateInternalValue(this.getValue(t,this.items.indexOf(t)))},register:function(t){var e=this,n=this.items.push(t)-1;t.$on("change",(function(){return e.onClick(t)})),this.mandatory&&!this.selectedValues.length&&this.updateMandatory(),this.updateItem(t,n)},unregister:function(t){if(!this._isDestroyed){var e=this.items.indexOf(t),n=this.getValue(t,e);this.items.splice(e,1);var a=this.selectedValues.indexOf(n);if(!(a<0)){if(!this.mandatory)return this.updateInternalValue(n);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter((function(t){return t!==n})):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}}},updateItem:function(t,e){var n=this.getValue(t,e);t.isActive=this.toggleMethod(n)},updateItemsState:function(){var t=this;this.$nextTick((function(){if(t.mandatory&&!t.selectedItems.length)return t.updateMandatory();t.items.forEach(t.updateItem)}))},updateInternalValue:function(t){this.multiple?this.updateMultiple(t):this.updateSingle(t)},updateMandatory:function(t){if(this.items.length){var e=this.items.slice();t&&e.reverse();var n=e.find((function(t){return!t.disabled}));if(n){var a=this.items.indexOf(n);this.updateInternalValue(this.getValue(n,a))}}},updateMultiple:function(t){var e=Array.isArray(this.internalValue)?this.internalValue:[],n=e.slice(),a=n.findIndex((function(e){return e===t}));this.mandatory&&a>-1&&n.length-1<1||null!=this.max&&a<0&&n.length+1>this.max||(a>-1?n.splice(a,1):n.push(t),this.internalValue=n)},updateSingle:function(t){var e=t===this.internalValue;this.mandatory&&e||(this.internalValue=e?void 0:t)}},render:function(t){return t("div",this.genData(),this.$slots.default)}});l.extend({name:"v-item-group",provide:function(){return{itemGroup:this}}})},"615b":function(t,e,n){},"62ad":function(t,e,n){"use strict";n("4160"),n("caad"),n("13d5"),n("45fc"),n("4ec9"),n("a9e3"),n("b64b"),n("d3b7"),n("ac1f"),n("3ca3"),n("5319"),n("2ca0"),n("159b"),n("ddb0");var a=n("ade3"),i=n("5530"),r=(n("4b85"),n("2b0e")),o=n("d9f7"),s=n("80d2"),l=["sm","md","lg","xl"],c=function(){return l.reduce((function(t,e){return t[e]={type:[Boolean,String,Number],default:!1},t}),{})}(),u=function(){return l.reduce((function(t,e){return t["offset"+Object(s["F"])(e)]={type:[String,Number],default:null},t}),{})}(),d=function(){return l.reduce((function(t,e){return t["order"+Object(s["F"])(e)]={type:[String,Number],default:null},t}),{})}(),h={col:Object.keys(c),offset:Object.keys(u),order:Object.keys(d)};function f(t,e,n){var a=t;if(null!=n&&!1!==n){if(e){var i=e.replace(t,"");a+="-".concat(i)}return"col"!==t||""!==n&&!0!==n?(a+="-".concat(n),a.toLowerCase()):a.toLowerCase()}}var p=new Map;e["a"]=r["default"].extend({name:"v-col",functional:!0,props:Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({cols:{type:[Boolean,String,Number],default:!1}},c),{},{offset:{type:[String,Number],default:null}},u),{},{order:{type:[String,Number],default:null}},d),{},{alignSelf:{type:String,default:null,validator:function(t){return["auto","start","end","center","baseline","stretch"].includes(t)}},tag:{type:String,default:"div"}}),render:function(t,e){var n=e.props,i=e.data,r=e.children,s=(e.parent,"");for(var l in n)s+=String(n[l]);var c=p.get(s);return c||function(){var t,e;for(e in c=[],h)h[e].forEach((function(t){var a=n[t],i=f(e,t,a);i&&c.push(i)}));var i=c.some((function(t){return t.startsWith("col-")}));c.push((t={col:!i||!n.cols},Object(a["a"])(t,"col-".concat(n.cols),n.cols),Object(a["a"])(t,"offset-".concat(n.offset),n.offset),Object(a["a"])(t,"order-".concat(n.order),n.order),Object(a["a"])(t,"align-self-".concat(n.alignSelf),n.alignSelf),t)),p.set(s,c)}(),t(n.tag,Object(o["a"])(i,{class:c}),r)}})},"8a79":function(t,e,n){"use strict";var a=n("23e7"),i=n("06cf").f,r=n("50c4"),o=n("5a34"),s=n("1d80"),l=n("ab13"),c=n("c430"),u="".endsWith,d=Math.min,h=l("endsWith"),f=!c&&!h&&!!function(){var t=i(String.prototype,"endsWith");return t&&!t.writable}();a({target:"String",proto:!0,forced:!f&&!h},{endsWith:function(t){var e=String(s(this));o(t);var n=arguments.length>1?arguments[1]:void 0,a=r(e.length),i=void 0===n?a:d(r(n),a),l=String(t);return u?u.call(e,l,i):e.slice(i-l.length,i)===l}})},"8b37":function(t,e,n){},9821:function(t){t.exports=JSON.parse('{"name":"en","options":{"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"shortMonths":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"days":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"shortDays":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"toolbar":{"exportToSVG":"Download SVG","exportToPNG":"Download PNG","exportToCSV":"Download CSV","menu":"Menu","selection":"Selection","selectionZoom":"Selection Zoom","zoomIn":"Zoom In","zoomOut":"Zoom Out","pan":"Panning","reset":"Reset Zoom"}}}')},"99d9":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l}));var a=n("b0af"),i=n("80d2"),r=Object(i["i"])("v-card__actions"),o=Object(i["i"])("v-card__subtitle"),s=Object(i["i"])("v-card__text"),l=Object(i["i"])("v-card__title");a["a"]},"9a0c":function(t,e,n){var a=n("342f");t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a)},"9d65":function(t,e,n){"use strict";var a=n("d9bd"),i=n("2b0e");e["a"]=i["default"].extend().extend({name:"bootable",props:{eager:Boolean},data:function(){return{isBooted:!1}},computed:{hasContent:function(){return this.isBooted||this.eager||this.isActive}},watch:{isActive:function(){this.isBooted=!0}},created:function(){"lazy"in this.$attrs&&Object(a["e"])("lazy",this)},methods:{showLazyContent:function(t){return this.hasContent&&t?t():[this.$createElement()]}}})},a1e9:function(t,e,n){},a434:function(t,e,n){"use strict";var a=n("23e7"),i=n("23cb"),r=n("a691"),o=n("50c4"),s=n("7b0b"),l=n("65f0"),c=n("8418"),u=n("1dde"),d=n("ae40"),h=u("splice"),f=d("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min,m=9007199254740991,v="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!h||!f},{splice:function(t,e){var n,a,u,d,h,f,b=s(this),y=o(b.length),x=i(t,y),_=arguments.length;if(0===_?n=a=0:1===_?(n=0,a=y-x):(n=_-2,a=g(p(r(e),0),y-x)),y+n-a>m)throw TypeError(v);for(u=l(b,a),d=0;dy-a+n;d--)delete b[d-1]}else if(n>a)for(d=y-a;d>x;d--)h=d+a-1,f=d+n-1,h in b?b[f]=b[h]:delete b[f];for(d=0;de+o&&t.right(t)),Math.abs(t.offsetX)a+o&&t.down(t))};function r(t,e){var n=t.changedTouches[0];e.touchstartX=n.clientX,e.touchstartY=n.clientY,e.start&&e.start(Object.assign(t,e))}function o(t,e){var n=t.changedTouches[0];e.touchendX=n.clientX,e.touchendY=n.clientY,e.end&&e.end(Object.assign(t,e)),i(e)}function s(t,e){var n=t.changedTouches[0];e.touchmoveX=n.clientX,e.touchmoveY=n.clientY,e.move&&e.move(Object.assign(t,e))}function l(t){var e={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:t.left,right:t.right,up:t.up,down:t.down,start:t.start,move:t.move,end:t.end};return{touchstart:function(t){return r(t,e)},touchend:function(t){return o(t,e)},touchmove:function(t){return s(t,e)}}}function c(t,e,n){var i=e.value,r=i.parent?t.parentElement:t,o=i.options||{passive:!0};if(r){var s=l(e.value);r._touchHandlers=Object(r._touchHandlers),r._touchHandlers[n.context._uid]=s,Object(a["y"])(s).forEach((function(t){r.addEventListener(t,s[t],o)}))}}function u(t,e,n){var i=e.value.parent?t.parentElement:t;if(i&&i._touchHandlers){var r=i._touchHandlers[n.context._uid];Object(a["y"])(r).forEach((function(t){i.removeEventListener(t,r[t])})),delete i._touchHandlers[n.context._uid]}}var d={inserted:c,unbind:u};e["a"]=d},c740:function(t,e,n){"use strict";var a=n("23e7"),i=n("b727").findIndex,r=n("44d2"),o=n("ae40"),s="findIndex",l=!0,c=o(s);s in[]&&Array(1)[s]((function(){l=!1})),a({target:"Array",proto:!0,forced:l||!c},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(s)},c982:function(t,e,n){},ce49:function(t){t.exports=JSON.parse('{"name":"ru","options":{"months":["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],"shortMonths":["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],"days":["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],"shortDays":["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],"toolbar":{"exportToSVG":"Сохранить SVG","exportToPNG":"Сохранить PNG","exportToCSV":"Сохранить CSV","menu":"Меню","selection":"Выбор","selectionZoom":"Выбор с увеличением","zoomIn":"Увеличить","zoomOut":"Уменьшить","pan":"Перемещение","reset":"Сбросить увеличение"}}}')},d951:function(t,e,n){},dc22:function(t,e,n){"use strict";function a(t,e){var n=e.value,a=e.options||{passive:!0};window.addEventListener("resize",n,a),t._onResize={callback:n,options:a},e.modifiers&&e.modifiers.quiet||n()}function i(t){if(t._onResize){var e=t._onResize,n=e.callback,a=e.options;window.removeEventListener("resize",n,a),delete t._onResize}}var r={inserted:a,unbind:i};e["a"]=r},e53c:function(t,e,n){},e707:function(t,e,n){"use strict";n("caad"),n("a9e3"),n("2532");var a=n("5530"),i=(n("3c93"),n("a9ad")),r=n("7560"),o=n("f2e7"),s=n("58df"),l=Object(s["a"])(i["a"],r["a"],o["a"]).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim:function(){var t=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",t)},classes:function(){return Object(a["a"])({"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive},this.themeClasses)},computedOpacity:function(){return Number(this.isActive?this.opacity:0)},styles:function(){return{zIndex:this.zIndex}}},methods:{genContent:function(){return this.$createElement("div",{staticClass:"v-overlay__content"},this.$slots.default)}},render:function(t){var e=[this.__scrim];return this.isActive&&e.push(this.genContent()),t("div",{staticClass:"v-overlay",class:this.classes,style:this.styles},e)}}),c=l,u=n("80d2"),d=n("2b0e");e["a"]=d["default"].extend().extend({name:"overlayable",props:{hideOverlay:Boolean,overlayColor:String,overlayOpacity:[Number,String]},data:function(){return{animationFrame:0,overlay:null}},watch:{hideOverlay:function(t){this.isActive&&(t?this.removeOverlay():this.genOverlay())}},beforeDestroy:function(){this.removeOverlay()},methods:{createOverlay:function(){var t=new c({propsData:{absolute:this.absolute,value:!1,color:this.overlayColor,opacity:this.overlayOpacity}});t.$mount();var e=this.absolute?this.$el.parentNode:document.querySelector("[data-app]");e&&e.insertBefore(t.$el,e.firstChild),this.overlay=t},genOverlay:function(){var t=this;if(this.hideScroll(),!this.hideOverlay)return this.overlay||this.createOverlay(),this.animationFrame=requestAnimationFrame((function(){t.overlay&&(void 0!==t.activeZIndex?t.overlay.zIndex=String(t.activeZIndex-1):t.$el&&(t.overlay.zIndex=Object(u["u"])(t.$el)),t.overlay.value=!0)})),!0},removeOverlay:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.overlay&&(Object(u["a"])(this.overlay.$el,"transitionend",(function(){t.overlay&&t.overlay.$el&&t.overlay.$el.parentNode&&!t.overlay.value&&(t.overlay.$el.parentNode.removeChild(t.overlay.$el),t.overlay.$destroy(),t.overlay=null)})),cancelAnimationFrame(this.animationFrame),this.overlay.value=!1),e&&this.showScroll()},scrollListener:function(t){if("keydown"===t.type){if(["INPUT","TEXTAREA","SELECT"].includes(t.target.tagName)||t.target.isContentEditable)return;var e=[u["x"].up,u["x"].pageup],n=[u["x"].down,u["x"].pagedown];if(e.includes(t.keyCode))t.deltaY=-1;else{if(!n.includes(t.keyCode))return;t.deltaY=1}}(t.target===this.overlay||"keydown"!==t.type&&t.target===document.body||this.checkPath(t))&&t.preventDefault()},hasScrollbar:function(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;var e=window.getComputedStyle(t);return["auto","scroll"].includes(e.overflowY)&&t.scrollHeight>t.clientHeight},shouldScroll:function(t,e){return 0===t.scrollTop&&e<0||t.scrollTop+t.clientHeight===t.scrollHeight&&e>0},isInside:function(t,e){return t===e||null!==t&&t!==document.body&&this.isInside(t.parentNode,e)},checkPath:function(t){var e=t.path||this.composedPath(t),n=t.deltaY;if("keydown"===t.type&&e[0]===document.body){var a=this.$refs.dialog,i=window.getSelection().anchorNode;return!(a&&this.hasScrollbar(a)&&this.isInside(i,a))||this.shouldScroll(a,n)}for(var r=0;r