diff --git a/public/js/bundle.js b/public/js/bundle.js index c46f455..cd24774 100644 --- a/public/js/bundle.js +++ b/public/js/bundle.js @@ -3,7 +3,7 @@ * (c) 2014-2020 Evan You * Released under the MIT License. */ -var e=Object.freeze({});function t(e){return null==e}function n(e){return null!=e}function a(e){return!0===e}function i(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function r(e){return null!==e&&"object"==typeof e}var s=Object.prototype.toString;function o(e){return"[object Object]"===s.call(e)}function l(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function c(e){return n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function d(e){return null==e?"":Array.isArray(e)||o(e)&&e.toString===s?JSON.stringify(e,null,2):String(e)}function u(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),a=e.split(","),i=0;i-1)return e.splice(n,1)}}var g=Object.prototype.hasOwnProperty;function v(e,t){return g.call(e,t)}function b(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var y=/-(\w)/g,_=b((function(e){return e.replace(y,(function(e,t){return t?t.toUpperCase():""}))})),k=b((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),A=/\B([A-Z])/g,w=b((function(e){return e.replace(A,"-$1").toLowerCase()}));var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var a=arguments.length;return a?a>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function x(e,t){t=t||0;for(var n=e.length-t,a=new Array(n);n--;)a[n]=e[n+t];return a}function T(e,t){for(var n in t)e[n]=t[n];return e}function S(e){for(var t={},n=0;n0,K=G&&G.indexOf("edge/")>0,Y=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===H),J=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/)),X={}.watch,Z=!1;if(U)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){Z=!0}}),window.addEventListener("test-passive",null,ee)}catch(e){}var te=function(){return void 0===B&&(B=!U&&!V&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),B},ne=U&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}var ie,re="undefined"!=typeof Symbol&&ae(Symbol)&&"undefined"!=typeof Reflect&&ae(Reflect.ownKeys);ie="undefined"!=typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var se=z,oe=0,le=function(){this.id=oe++,this.subs=[]};le.prototype.addSub=function(e){this.subs.push(e)},le.prototype.removeSub=function(e){f(this.subs,e)},le.prototype.depend=function(){le.target&&le.target.addDep(this)},le.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(r&&!v(i,"default"))s=!1;else if(""===s||s===w(e)){var l=Fe(String,i.type);(l<0||o0&&(lt((l=e(l,(s||"")+"_"+o))[0])&<(d)&&(u[c]=fe(d.text+l[0].text),l.shift()),u.push.apply(u,l)):i(l)?lt(d)?u[c]=fe(d.text+l):""!==l&&u.push(fe(l)):lt(l)&<(d)?u[c]=fe(d.text+l.text):(a(r._isVList)&&n(l.tag)&&t(l.key)&&n(s)&&(l.key="__vlist"+s+"_"+o+"__"),u.push(l)));return u}(e):void 0}function lt(e){return n(e)&&n(e.text)&&!1===e.isComment}function ct(e,t){if(e){for(var n=Object.create(null),a=re?Reflect.ownKeys(e):Object.keys(e),i=0;i0,s=t?!!t.$stable:!r,o=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&a&&a!==e&&o===a.$key&&!r&&!a.$hasNormal)return a;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=ht(n,l,t[l]))}else i={};for(var c in n)c in i||(i[c]=mt(n,c));return t&&Object.isExtensible(t)&&(t._normalized=i),F(i,"$stable",s),F(i,"$key",o),F(i,"$hasNormal",r),i}function ht(e,t,n){var a=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ot(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:a,enumerable:!0,configurable:!0}),a}function mt(e,t){return function(){return e[t]}}function ft(e,t){var a,i,s,o,l;if(Array.isArray(e)||"string"==typeof e)for(a=new Array(e.length),i=0,s=e.length;idocument.createEvent("Event").timeStamp&&(sn=function(){return on.now()})}function ln(){var e,t;for(rn=sn(),nn=!0,Xt.sort((function(e,t){return e.id-t.id})),an=0;anan&&Xt[n].id>e.id;)n--;Xt.splice(n+1,0,e)}else Xt.push(e);tn||(tn=!0,Ze(ln))}}(this)},dn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||r(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Oe(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},dn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},dn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},dn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||f(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var un={enumerable:!0,configurable:!0,get:z,set:z};function pn(e,t,n){un.get=function(){return this[t][n]},un.set=function(e){this[t][n]=e},Object.defineProperty(e,n,un)}function hn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},a=e._props={},i=e.$options._propKeys=[];e.$parent&&ke(!1);var r=function(r){i.push(r);var s=Ee(r,t,n,e);Ce(a,r,s),r in e||pn(e,"_props",r)};for(var s in t)r(s);ke(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?z:C(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;o(t=e._data="function"==typeof t?function(e,t){de();try{return e.call(t,t)}catch(e){return Oe(e,t,"data()"),{}}finally{ue()}}(t,e):t||{})||(t={});var n=Object.keys(t),a=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var r=n[i];a&&v(a,r)||j(r)||pn(e,"_data",r)}we(t,!0)}(e):we(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),a=te();for(var i in t){var r=t[i],s="function"==typeof r?r:r.get;a||(n[i]=new dn(e,s||z,z,mn)),i in e||fn(e,i,r)}}(e,t.computed),t.watch&&t.watch!==X&&function(e,t){for(var n in t){var a=t[n];if(Array.isArray(a))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===s.call(n)&&e.test(t));var n}function xn(e,t){var n=e.cache,a=e.keys,i=e._vnode;for(var r in n){var s=n[r];if(s){var o=wn(s.componentOptions);o&&!t(o)&&Tn(n,r,a,i)}}}function Tn(e,t,n,a){var i=e[t];!i||a&&i.tag===a.tag||i.componentInstance.$destroy(),e[t]=null,f(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=yn++,n._isVue=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),a=t._parentVnode;n.parent=t.parent,n._parentVnode=a;var i=a.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=Le(_n(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Gt(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,a=t.$vnode=n._parentVnode,i=a&&a.context;t.$slots=dt(n._renderChildren,i),t.$scopedSlots=e,t._c=function(e,n,a,i){return It(t,e,n,a,i,!1)},t.$createElement=function(e,n,a,i){return It(t,e,n,a,i,!0)};var r=a&&a.data;Ce(t,"$attrs",r&&r.attrs||e,null,!0),Ce(t,"$listeners",n._parentListeners||e,null,!0)}(n),Jt(n,"beforeCreate"),function(e){var t=ct(e.$options.inject,e);t&&(ke(!1),Object.keys(t).forEach((function(n){Ce(e,n,t[n])})),ke(!0))}(n),hn(n),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(n),Jt(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(kn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=xe,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,n){if(o(t))return bn(this,e,t,n);(n=n||{}).user=!0;var a=new dn(this,e,t,n);if(n.immediate)try{t.call(this,a.value)}catch(e){Oe(e,this,'callback for immediate watcher "'+a.expression+'"')}return function(){a.teardown()}}}(kn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var a=this;if(Array.isArray(e))for(var i=0,r=e.length;i1?x(n):n;for(var a=x(arguments,1),i='event handler for "'+e+'"',r=0,s=n.length;rparseInt(this.max)&&Tn(s,o[0],o,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return E}};Object.defineProperty(e,"config",t),e.util={warn:se,extend:T,mergeOptions:Le,defineReactive:Ce},e.set=xe,e.delete=Te,e.nextTick=Ze,e.observable=function(e){return we(e),e},e.options=Object.create(null),L.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,zn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=x(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Le(this.options,e),this}}(e),An(e),function(e){L.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&o(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(kn),Object.defineProperty(kn.prototype,"$isServer",{get:te}),Object.defineProperty(kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kn,"FunctionalRenderContext",{value:Dt}),kn.version="2.6.12";var Mn=p("style,class"),Dn=p("input,textarea,option,select,progress"),Nn=function(e,t,n){return"value"===n&&Dn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},$n=p("contenteditable,draggable,spellcheck"),Pn=p("events,caret,typing,plaintext-only"),Ln=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Rn="http://www.w3.org/1999/xlink",En=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},In=function(e){return En(e)?e.slice(6,e.length):""},jn=function(e){return null==e||!1===e};function Fn(e){for(var t=e.data,a=e,i=e;n(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=On(i.data,t));for(;n(a=a.parent);)a&&a.data&&(t=On(t,a.data));return function(e,t){if(n(e)||n(t))return Bn(e,qn(t));return""}(t.staticClass,t.class)}function On(e,t){return{staticClass:Bn(e.staticClass,t.staticClass),class:n(e.class)?[e.class,t.class]:t.class}}function Bn(e,t){return e?t?e+" "+t:e:t||""}function qn(e){return Array.isArray(e)?function(e){for(var t,a="",i=0,r=e.length;i-1?ha(e,t,n):Ln(t)?jn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):$n(t)?e.setAttribute(t,function(e,t){return jn(t)||"false"===t?"false":"contenteditable"===e&&Pn(t)?t:"true"}(t,n)):En(t)?jn(n)?e.removeAttributeNS(Rn,In(t)):e.setAttributeNS(Rn,t,n):ha(e,t,n)}function ha(e,t,n){if(jn(n))e.removeAttribute(t);else{if(W&&!Q&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var a=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",a)};e.addEventListener("input",a),e.__ieph=!0}e.setAttribute(t,n)}}var ma={create:ua,update:ua};function fa(e,a){var i=a.elm,r=a.data,s=e.data;if(!(t(r.staticClass)&&t(r.class)&&(t(s)||t(s.staticClass)&&t(s.class)))){var o=Fn(a),l=i._transitionClasses;n(l)&&(o=Bn(o,qn(l))),o!==i._prevClass&&(i.setAttribute("class",o),i._prevClass=o)}}var ga,va,ba,ya,_a,ka,Aa={create:fa,update:fa},wa=/[\w).+\-_$\]]/;function Ca(e){var t,n,a,i,r,s=!1,o=!1,l=!1,c=!1,d=0,u=0,p=0,h=0;for(a=0;a=0&&" "===(f=e.charAt(m));m--);f&&wa.test(f)||(c=!0)}}else void 0===i?(h=a+1,i=e.slice(0,a).trim()):g();function g(){(r||(r=[])).push(e.slice(h,a).trim()),h=a+1}if(void 0===i?i=e.slice(0,a).trim():0!==h&&g(),r)for(a=0;a-1?{exp:e.slice(0,ya),key:'"'+e.slice(ya+1)+'"'}:{exp:e,key:null};va=e,ya=_a=ka=0;for(;!Ba();)qa(ba=Oa())?Va(ba):91===ba&&Ua(ba);return{exp:e.slice(0,_a),key:e.slice(_a+1,ka)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Oa(){return va.charCodeAt(++ya)}function Ba(){return ya>=ga}function qa(e){return 34===e||39===e}function Ua(e){var t=1;for(_a=ya;!Ba();)if(qa(e=Oa()))Va(e);else if(91===e&&t++,93===e&&t--,0===t){ka=ya;break}}function Va(e){for(var t=e;!Ba()&&(e=Oa())!==t;);}var Ha;function Ga(e,t,n){var a=Ha;return function i(){var r=t.apply(null,arguments);null!==r&&Ka(e,i,n,a)}}var Wa=He&&!(J&&Number(J[1])<=53);function Qa(e,t,n,a){if(Wa){var i=rn,r=t;t=r._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return r.apply(this,arguments)}}Ha.addEventListener(e,t,Z?{capture:n,passive:a}:n)}function Ka(e,t,n,a){(a||Ha).removeEventListener(e,t._wrapper||t,n)}function Ya(e,a){if(!t(e.data.on)||!t(a.data.on)){var i=a.data.on||{},r=e.data.on||{};Ha=a.elm,function(e){if(n(e.__r)){var t=W?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}n(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(i),it(i,r,Qa,Ka,Ga,a.context),Ha=void 0}}var Ja,Xa={create:Ya,update:Ya};function Za(e,a){if(!t(e.data.domProps)||!t(a.data.domProps)){var i,r,s=a.elm,o=e.data.domProps||{},l=a.data.domProps||{};for(i in n(l.__ob__)&&(l=a.data.domProps=T({},l)),o)i in l||(s[i]="");for(i in l){if(r=l[i],"textContent"===i||"innerHTML"===i){if(a.children&&(a.children.length=0),r===o[i])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===i&&"PROGRESS"!==s.tagName){s._value=r;var c=t(r)?"":String(r);ei(s,c)&&(s.value=c)}else if("innerHTML"===i&&Hn(s.tagName)&&t(s.innerHTML)){(Ja=Ja||document.createElement("div")).innerHTML=""+r+"";for(var d=Ja.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;d.firstChild;)s.appendChild(d.firstChild)}else if(r!==o[i])try{s[i]=r}catch(e){}}}}function ei(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var a=e.value,i=e._vModifiers;if(n(i)){if(i.number)return u(a)!==u(t);if(i.trim)return a.trim()!==t.trim()}return a!==t}(e,t))}var ti={create:Za,update:Za},ni=b((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var a=e.split(n);a.length>1&&(t[a[0].trim()]=a[1].trim())}})),t}));function ai(e){var t=ii(e.style);return e.staticStyle?T(e.staticStyle,t):t}function ii(e){return Array.isArray(e)?S(e):"string"==typeof e?ni(e):e}var ri,si=/^--/,oi=/\s*!important$/,li=function(e,t,n){if(si.test(t))e.style.setProperty(t,n);else if(oi.test(n))e.style.setProperty(w(t),n.replace(oi,""),"important");else{var a=di(t);if(Array.isArray(n))for(var i=0,r=n.length;i-1?t.split(hi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function fi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(hi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",a=" "+t+" ";n.indexOf(a)>=0;)n=n.replace(a," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function gi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,vi(e.name||"v")),T(t,e),t}return"string"==typeof e?vi(e):void 0}}var vi=b((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),bi=U&&!Q,yi="transition",_i="transitionend",ki="animation",Ai="animationend";bi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(yi="WebkitTransition",_i="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ki="WebkitAnimation",Ai="webkitAnimationEnd"));var wi=U?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ci(e){wi((function(){wi(e)}))}function xi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),mi(e,t))}function Ti(e,t){e._transitionClasses&&f(e._transitionClasses,t),fi(e,t)}function Si(e,t,n){var a=Mi(e,t),i=a.type,r=a.timeout,s=a.propCount;if(!i)return n();var o="transition"===i?_i:Ai,l=0,c=function(){e.removeEventListener(o,d),n()},d=function(t){t.target===e&&++l>=s&&c()};setTimeout((function(){l0&&(n="transition",d=s,u=r.length):"animation"===t?c>0&&(n="animation",d=c,u=l.length):u=(n=(d=Math.max(s,c))>0?s>c?"transition":"animation":null)?"transition"===n?r.length:l.length:0,{type:n,timeout:d,propCount:u,hasTransform:"transition"===n&&zi.test(a[yi+"Property"])}}function Di(e,t){for(;e.length1}function Ei(e,t){!0!==t.data.show&&$i(t)}var Ii=function(e){var r,s,o={},l=e.modules,c=e.nodeOps;for(r=0;rm?y(e,t(i[v+1])?null:i[v+1].elm,i,h,v,r):h>v&&k(a,p,m)}(p,f,v,r,d):n(v)?(n(e.text)&&c.setTextContent(p,""),y(p,null,v,0,v.length-1,r)):n(f)?k(f,0,f.length-1):n(e.text)&&c.setTextContent(p,""):e.text!==i.text&&c.setTextContent(p,i.text),n(m)&&n(h=m.hook)&&n(h=h.postpatch)&&h(e,i)}}}function x(e,t,i){if(a(i)&&n(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,s.selected!==r&&(s.selected=r);else if(N(qi(s),a))return void(e.selectedIndex!==o&&(e.selectedIndex=o));i||(e.selectedIndex=-1)}}function Bi(e,t){return t.every((function(t){return!N(t,e)}))}function qi(e){return"_value"in e?e._value:e.value}function Ui(e){e.target.composing=!0}function Vi(e){e.target.composing&&(e.target.composing=!1,Hi(e.target,"input"))}function Hi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Gi(e){return!e.componentInstance||e.data&&e.data.transition?e:Gi(e.componentInstance._vnode)}var Wi={model:ji,show:{bind:function(e,t,n){var a=t.value,i=(n=Gi(n)).data&&n.data.transition,r=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;a&&i?(n.data.show=!0,$i(n,(function(){e.style.display=r}))):e.style.display=a?r:"none"},update:function(e,t,n){var a=t.value;!a!=!t.oldValue&&((n=Gi(n)).data&&n.data.transition?(n.data.show=!0,a?$i(n,(function(){e.style.display=e.__vOriginalDisplay})):Pi(n,(function(){e.style.display="none"}))):e.style.display=a?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,a,i){i||(e.style.display=e.__vOriginalDisplay)}}},Qi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ki(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ki(qt(t.children)):e}function Yi(e){var t={},n=e.$options;for(var a in n.propsData)t[a]=e[a];var i=n._parentListeners;for(var r in i)t[_(r)]=i[r];return t}function Ji(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Xi=function(e){return e.tag||Bt(e)},Zi=function(e){return"show"===e.name},er={name:"transition",props:Qi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Xi)).length){var a=this.mode,r=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;var s=Ki(r);if(!s)return r;if(this._leaving)return Ji(e,r);var o="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?o+"comment":o+s.tag:i(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var l=(s.data||(s.data={})).transition=Yi(this),c=this._vnode,d=Ki(c);if(s.data.directives&&s.data.directives.some(Zi)&&(s.data.show=!0),d&&d.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(s,d)&&!Bt(d)&&(!d.componentInstance||!d.componentInstance._vnode.isComment)){var u=d.data.transition=T({},l);if("out-in"===a)return this._leaving=!0,rt(u,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ji(e,r);if("in-out"===a){if(Bt(s))return c;var p,h=function(){p()};rt(l,"afterEnter",h),rt(l,"enterCancelled",h),rt(u,"delayLeave",(function(e){p=e}))}}return r}}},tr=T({tag:String,moveClass:String},Qi);function nr(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ar(e){e.data.newPos=e.elm.getBoundingClientRect()}function ir(e){var t=e.data.pos,n=e.data.newPos,a=t.left-n.left,i=t.top-n.top;if(a||i){e.data.moved=!0;var r=e.elm.style;r.transform=r.WebkitTransform="translate("+a+"px,"+i+"px)",r.transitionDuration="0s"}}delete tr.mode;var rr={Transition:er,TransitionGroup:{props:tr,beforeMount:function(){var e=this,t=this._update;this._update=function(n,a){var i=Qt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,a)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),a=this.prevChildren=this.children,i=this.$slots.default||[],r=this.children=[],s=Yi(this),o=0;o-1?Qn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Qn[e]=/HTMLUnknownElement/.test(t.toString())},T(kn.options.directives,Wi),T(kn.options.components,rr),kn.prototype.__patch__=U?Ii:z,kn.prototype.$mount=function(e,t){return function(e,t,n){var a;return e.$el=t,e.$options.render||(e.$options.render=me),Jt(e,"beforeMount"),a=function(){e._update(e._render(),n)},new dn(e,a,z,{before:function(){e._isMounted&&!e._isDestroyed&&Jt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Jt(e,"mounted")),e}(this,e=e&&U?Yn(e):void 0,t)},U&&setTimeout((function(){E.devtools&&ne&&ne.emit("init",kn)}),0);var sr=/\{\{((?:.|\r?\n)+?)\}\}/g,or=/[-.*+?^${}()|[\]\/\\]/g,lr=b((function(e){var t=e[0].replace(or,"\\$&"),n=e[1].replace(or,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var cr={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Ra(e,"class");n&&(e.staticClass=JSON.stringify(n));var a=La(e,"class",!1);a&&(e.classBinding=a)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var dr,ur={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Ra(e,"style");n&&(e.staticStyle=JSON.stringify(ni(n)));var a=La(e,"style",!1);a&&(e.styleBinding=a)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},pr=function(e){return(dr=dr||document.createElement("div")).innerHTML=e,dr.textContent},hr=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),mr=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),fr=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),gr=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,vr=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,br="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+I.source+"]*",yr="((?:"+br+"\\:)?"+br+")",_r=new RegExp("^<"+yr),kr=/^\s*(\/?)>/,Ar=new RegExp("^<\\/"+yr+"[^>]*>"),wr=/^]+>/i,Cr=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Mr=/&(?:lt|gt|quot|amp|#39);/g,Dr=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Nr=p("pre,textarea",!0),$r=function(e,t){return e&&Nr(e)&&"\n"===t[0]};function Pr(e,t){var n=t?Dr:Mr;return e.replace(n,(function(e){return zr[e]}))}var Lr,Rr,Er,Ir,jr,Fr,Or,Br,qr=/^@|^v-on:/,Ur=/^v-|^@|^:|^#/,Vr=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Hr=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Gr=/^\(|\)$/g,Wr=/^\[.*\]$/,Qr=/:(.*)$/,Kr=/^:|^\.|^v-bind:/,Yr=/\.[^.\]]+(?=[^\]]*$)/g,Jr=/^v-slot(:|$)|^#/,Xr=/[\r\n]/,Zr=/\s+/g,es=b(pr);function ts(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:ls(t),rawAttrsMap:{},parent:n,children:[]}}function ns(e,t){Lr=t.warn||Ta,Fr=t.isPreTag||M,Or=t.mustUseProp||M,Br=t.getTagNamespace||M;t.isReservedTag;Er=Sa(t.modules,"transformNode"),Ir=Sa(t.modules,"preTransformNode"),jr=Sa(t.modules,"postTransformNode"),Rr=t.delimiters;var n,a,i=[],r=!1!==t.preserveWhitespace,s=t.whitespace,o=!1,l=!1;function c(e){if(d(e),o||e.processed||(e=as(e,t)),i.length||e===n||n.if&&(e.elseif||e.else)&&rs(n,{exp:e.elseif,block:e}),a&&!e.forbidden)if(e.elseif||e.else)s=e,(c=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(a.children))&&c.if&&rs(c,{exp:s.elseif,block:s});else{if(e.slotScope){var r=e.slotTarget||'"default"';(a.scopedSlots||(a.scopedSlots={}))[r]=e}a.children.push(e),e.parent=a}var s,c;e.children=e.children.filter((function(e){return!e.slotScope})),d(e),e.pre&&(o=!1),Fr(e.tag)&&(l=!1);for(var u=0;u]*>)","i")),p=e.replace(u,(function(e,n,a){return c=a.length,Tr(d)||"noscript"===d||(n=n.replace(//g,"$1").replace(//g,"$1")),$r(d,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));l+=e.length-p.length,e=p,T(d,l-c,l)}else{var h=e.indexOf("<");if(0===h){if(Cr.test(e)){var m=e.indexOf("--\x3e");if(m>=0){t.shouldKeepComment&&t.comment(e.substring(4,m),l,l+m+3),w(m+3);continue}}if(xr.test(e)){var f=e.indexOf("]>");if(f>=0){w(f+2);continue}}var g=e.match(wr);if(g){w(g[0].length);continue}var v=e.match(Ar);if(v){var b=l;w(v[0].length),T(v[1],b,l);continue}var y=C();if(y){x(y),$r(y.tagName,e)&&w(1);continue}}var _=void 0,k=void 0,A=void 0;if(h>=0){for(k=e.slice(h);!(Ar.test(k)||_r.test(k)||Cr.test(k)||xr.test(k)||(A=k.indexOf("<",1))<0);)h+=A,k=e.slice(h);_=e.substring(0,h)}h<0&&(_=e),_&&w(_.length),t.chars&&_&&t.chars(_,l-_.length,l)}if(e===n){t.chars&&t.chars(e);break}}function w(t){l+=t,e=e.substring(t)}function C(){var t=e.match(_r);if(t){var n,a,i={tagName:t[1],attrs:[],start:l};for(w(t[0].length);!(n=e.match(kr))&&(a=e.match(vr)||e.match(gr));)a.start=l,w(a[0].length),a.end=l,i.attrs.push(a);if(n)return i.unarySlash=n[1],w(n[0].length),i.end=l,i}}function x(e){var n=e.tagName,l=e.unarySlash;r&&("p"===a&&fr(n)&&T(a),o(n)&&a===n&&T(n));for(var c=s(n)||!!l,d=e.attrs.length,u=new Array(d),p=0;p=0&&i[s].lowerCasedTag!==o;s--);else s=0;if(s>=0){for(var c=i.length-1;c>=s;c--)t.end&&t.end(i[c].tag,n,r);i.length=s,a=s&&i[s-1].tag}else"br"===o?t.start&&t.start(e,[],!0,n,r):"p"===o&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}T()}(e,{warn:Lr,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,r,s,d,u){var p=a&&a.ns||Br(e);W&&"svg"===p&&(r=function(e){for(var t=[],n=0;nl&&(o.push(r=e.slice(l,i)),s.push(JSON.stringify(r)));var c=Ca(a[1].trim());s.push("_s("+c+")"),o.push({"@binding":c}),l=i+a[0].length}return l-1"+("true"===r?":("+t+")":":_q("+t+","+r+")")),Pa(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+r+"):("+s+");if(Array.isArray($$a)){var $$v="+(a?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Fa(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Fa(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Fa(t,"$$c")+"}",null,!0)}(e,a,i);else if("input"===r&&"radio"===s)!function(e,t,n){var a=n&&n.number,i=La(e,"value")||"null";za(e,"checked","_q("+t+","+(i=a?"_n("+i+")":i)+")"),Pa(e,"change",Fa(t,i),null,!0)}(e,a,i);else if("input"===r||"textarea"===r)!function(e,t,n){var a=e.attrsMap.type,i=n||{},r=i.lazy,s=i.number,o=i.trim,l=!r&&"range"!==a,c=r?"change":"range"===a?"__r":"input",d="$event.target.value";o&&(d="$event.target.value.trim()");s&&(d="_n("+d+")");var u=Fa(t,d);l&&(u="if($event.target.composing)return;"+u);za(e,"value","("+t+")"),Pa(e,c,u,null,!0),(o||s)&&Pa(e,"blur","$forceUpdate()")}(e,a,i);else if(!E.isReservedTag(r))return ja(e,a,i),!1;return!0},text:function(e,t){t.value&&za(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&za(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:hr,mustUseProp:Nn,canBeLeftOpenTag:mr,isReservedTag:Gn,getTagNamespace:Wn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(ps)},gs=b((function(e){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function vs(e,t){e&&(hs=gs(t.staticKeys||""),ms=t.isReservedTag||M,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||h(e.tag)||!ms(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(hs)))}(t),1===t.type){if(!ms(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,a=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,ys=/\([^)]*?\);*$/,_s=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ks={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},As={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ws=function(e){return"if("+e+")return null;"},Cs={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ws("$event.target !== $event.currentTarget"),ctrl:ws("!$event.ctrlKey"),shift:ws("!$event.shiftKey"),alt:ws("!$event.altKey"),meta:ws("!$event.metaKey"),left:ws("'button' in $event && $event.button !== 0"),middle:ws("'button' in $event && $event.button !== 1"),right:ws("'button' in $event && $event.button !== 2")};function xs(e,t){var n=t?"nativeOn:":"on:",a="",i="";for(var r in e){var s=Ts(e[r]);e[r]&&e[r].dynamic?i+=r+","+s+",":a+='"'+r+'":'+s+","}return a="{"+a.slice(0,-1)+"}",i?n+"_d("+a+",["+i.slice(0,-1)+"])":n+a}function Ts(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Ts(e)})).join(",")+"]";var t=_s.test(e.value),n=bs.test(e.value),a=_s.test(e.value.replace(ys,""));if(e.modifiers){var i="",r="",s=[];for(var o in e.modifiers)if(Cs[o])r+=Cs[o],ks[o]&&s.push(o);else if("exact"===o){var l=e.modifiers;r+=ws(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else s.push(o);return s.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ss).join("&&")+")return null;"}(s)),r&&(i+=r),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":a?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(a?"return "+e.value:e.value)+"}"}function Ss(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=ks[e],a=As[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(a)+")"}var zs={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:z},Ms=function(e){this.options=e,this.warn=e.warn||Ta,this.transforms=Sa(e.modules,"transformCode"),this.dataGenFns=Sa(e.modules,"genData"),this.directives=T(T({},zs),e.directives);var t=e.isReservedTag||M;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ds(e,t){var n=new Ms(t);return{render:"with(this){return "+(e?Ns(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ns(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return $s(e,t);if(e.once&&!e.onceProcessed)return Ps(e,t);if(e.for&&!e.forProcessed)return Rs(e,t);if(e.if&&!e.ifProcessed)return Ls(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',a=Fs(e,t),i="_t("+n+(a?","+a:""),r=e.attrs||e.dynamicAttrs?qs((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:_(e.name),value:e.value,dynamic:e.dynamic}}))):null,s=e.attrsMap["v-bind"];!r&&!s||a||(i+=",null");r&&(i+=","+r);s&&(i+=(r?"":",null")+","+s);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var a=t.inlineTemplate?null:Fs(t,n,!0);return"_c("+e+","+Es(t,n)+(a?","+a:"")+")"}(e.component,e,t);else{var a;(!e.plain||e.pre&&t.maybeComponent(e))&&(a=Es(e,t));var i=e.inlineTemplate?null:Fs(e,t,!0);n="_c('"+e.tag+"'"+(a?","+a:"")+(i?","+i:"")+")"}for(var r=0;r>>0}(s):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var r=function(e,t){var n=e.children[0];if(n&&1===n.type){var a=Ds(n,t.options);return"inlineTemplate:{render:function(){"+a.render+"},staticRenderFns:["+a.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);r&&(n+=r+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+qs(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Is(e){return 1===e.type&&("slot"===e.tag||e.children.some(Is))}function js(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ls(e,t,js,"null");if(e.for&&!e.forProcessed)return Rs(e,t,js);var a="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+a+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Fs(e,t)||"undefined")+":undefined":Fs(e,t)||"undefined":Ns(e,t))+"}",r=a?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+r+"}"}function Fs(e,t,n,a,i){var r=e.children;if(r.length){var s=r[0];if(1===r.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var o=n?t.maybeComponent(s)?",1":",0":"";return""+(a||Ns)(s,t)+o}var l=n?function(e,t){for(var n=0,a=0;a':'
',Ws.innerHTML.indexOf(" ")>0}var Ys=!!U&&Ks(!1),Js=!!U&&Ks(!0),Xs=b((function(e){var t=Yn(e);return t&&t.innerHTML})),Zs=kn.prototype.$mount;kn.prototype.$mount=function(e,t){if((e=e&&Yn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var a=n.template;if(a)if("string"==typeof a)"#"===a.charAt(0)&&(a=Xs(a));else{if(!a.nodeType)return this;a=a.innerHTML}else e&&(a=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(a){var i=Qs(a,{outputSourceRange:!1,shouldDecodeNewlines:Ys,shouldDecodeNewlinesForHref:Js,delimiters:n.delimiters,comments:n.comments},this),r=i.render,s=i.staticRenderFns;n.render=r,n.staticRenderFns=s}}return Zs.call(this,e,t)},kn.compile=Qs;const eo={data(){const e=this.$t.bind(this);this.$tc.bind(this);return{appOnline:null,activeTheme:"light",themes:["purple","dark","light"],activeTablink:"home",links:[{id:"main_home_tablink",name:"home",ariaLabel:"home",routerName:"Home",icon:"home",label:e("sidebar.home")},{id:"main_search_tablink",name:"search",ariaLabel:"search",routerName:"Search",icon:"search",label:e("sidebar.search")},{id:"main_charts_tablink",name:"charts",ariaLabel:"charts",routerName:"Charts",icon:"show_chart",label:e("sidebar.charts")},{id:"main_favorites_tablink",name:"favorites",ariaLabel:"favorites",routerName:"Favorites",icon:"star",label:e("sidebar.favorites")},{id:"main_analyzer_tablink",name:"analyzer",ariaLabel:"link analyzer",routerName:"Link Analyzer",icon:"link",label:e("sidebar.linkAnalyzer")},{id:"main_settings_tablink",name:"settings",ariaLabel:"settings",routerName:"Settings",icon:"settings",label:e("sidebar.settings")},{id:"main_about_tablink",name:"about",ariaLabel:"info",routerName:"About",icon:"info",label:e("sidebar.about")}]}},mounted(){this.appOnline=navigator.onLine,window.addEventListener("online",()=>{this.appOnline=!0}),window.addEventListener("offline",()=>{this.appOnline=!1}),this.activeTheme=localStorage.getItem("selectedTheme")||"light",this.$router.afterEach((e,t)=>{const n=this.links.find(t=>t.routerName===e.name);n&&(this.activeTablink=n.name)})},methods:{changeTheme(e){if(e===this.activeTheme)return;this.activeTheme=e,document.documentElement.setAttribute("data-theme",e),localStorage.setItem("selectedTheme",e);const t=document.querySelectorAll("*");t.forEach(e=>{e.classList.add("changing-theme")}),document.documentElement.addEventListener("transitionend",(function e(){t.forEach(e=>{e.classList.remove("changing-theme")}),document.documentElement.removeEventListener("transitionend",e)}))}}};var to=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aside",{attrs:{id:"sidebar",role:"navigation"}},[e._l(e.links,(function(t){return n("router-link",{key:t.id,staticClass:"main_tablinks",class:{active:e.activeTablink===t.name},attrs:{tag:"span",role:"link",id:t.id,"aria-label":t.ariaLabel,to:{name:t.routerName}},nativeOn:{click:function(n){e.activeTablink=t.name}}},[n("i",{staticClass:"material-icons side_icon"},[e._v(e._s(t.icon))]),e._v(" "),n("span",{staticClass:"main_tablinks_text"},[e._v(e._s(t.label))])])})),e._v(" "),n("span",{staticClass:"main_tablinks",attrs:{id:"theme_selector",role:"link","aria-label":"theme selector"}},[n("i",{staticClass:"material-icons side_icon side_icon--theme"},[e._v("palette")]),e._v(" "),n("div",{attrs:{id:"theme_togglers"}},e._l(e.themes,(function(t){return n("div",{key:t,staticClass:"theme_toggler",class:[{"theme_toggler--active":e.activeTheme===t},"theme_toggler--"+t],on:{click:function(n){return e.changeTheme(t)}}})})),0)]),e._v(" "),n("div",{class:{online:e.appOnline,offline:!e.appOnline},attrs:{id:"network-status"}},[e.appOnline?n("i",{staticClass:"material-icons"},[e._v("wifi")]):n("i",{staticClass:"material-icons"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4c-1.29-1.29-2.84-2.13-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24C7.81 10.89 6.27 11.73 5 13v.01L6.99 15c1.36-1.36 3.14-2.04 4.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3c-1.65-1.66-4.34-1.66-6 0z"}})])])])],2)};to._withStripped=!0;var no=function(e,t,n,a,i,r,s,o){const l=("function"==typeof n?n.options:n)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\TheSidebar.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=a;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(n,a){return e.call(a),t(n,a)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:to,staticRenderFns:[]},(function(e){e&&e("data-v-4ec3adf4_0",{source:"\n#network-status[data-v-4ec3adf4] {\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\tposition: relative;\r\n\tmargin-top: auto;\r\n\tbottom: 0;\n}\n#network-status.online i.material-icons[data-v-4ec3adf4] {\r\n\tcolor: hsl(151, 100%, 31%);\n}\n#network-status.offline i.material-icons svg[data-v-4ec3adf4] {\r\n\tfill: red;\r\n\twidth: 1em;\r\n\theight: 1em;\n}\r\n",map:{version:3,sources:["C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui/C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\TheSidebar.vue"],names:[],mappings:";AA8CA;CACA,aAAA;CACA,uBAAA;CACA,mBAAA;CACA,kBAAA;CACA,gBAAA;CACA,SAAA;AACA;AAEA;CACA,0BAAA;AACA;AAEA;CACA,SAAA;CACA,UAAA;CACA,WAAA;AACA",file:"TheSidebar.vue",sourcesContent:["\r\n\r\n\r\n\r\n diff --git a/src/components/TheChartsTab.vue b/src/components/TheChartsTab.vue index 15199a4..5d7d7fb 100644 --- a/src/components/TheChartsTab.vue +++ b/src/components/TheChartsTab.vue @@ -130,16 +130,10 @@ export default { } }, mounted() { - console.log('charts mounted') - // this.$refs.root.style.display = 'block' this.waitCharts() // socket.on('init_charts', this.initCharts) socket.on('setChartTracks', this.setTracklist) }, - beforeDestroy() { - console.log('charts bef dest') - // this.$refs.root.style.display = 'none' - }, methods: { artistView: showView.bind(null, 'artist'), albumView: showView.bind(null, 'album'), @@ -190,7 +184,6 @@ export default { socket.emit('getChartTracks', this.id) }, setTracklist(data) { - console.log('settracklist') this.chart = data }, changeCountry() { @@ -198,7 +191,6 @@ export default { this.id = 0 }, initCharts() { - console.log('init charts') this.countries = this.getCharts this.country = localStorage.getItem('chart') || '' diff --git a/src/components/TheDownloadTab.vue b/src/components/TheDownloadTab.vue index d3a2663..ea59276 100644 --- a/src/components/TheDownloadTab.vue +++ b/src/components/TheDownloadTab.vue @@ -41,7 +41,9 @@ delete_sweep
-
+
+ +
@@ -57,10 +59,15 @@ import { socket } from '@/utils/socket' import { toast } from '@/utils/toasts' import { mapActions } from 'vuex' +import QueueItem from '@components/downloads/QueueItem.vue' + const tabMinWidth = 250 const tabMaxWidth = 500 export default { + components: { + QueueItem + }, data() { return { cachedTabWidth: parseInt(localStorage.getItem('downloadTabWidth')) || 300, @@ -112,6 +119,7 @@ export default { } }, handleListClick(event) { + console.log('this.handleListClick') const { target } = event if (!target.matches('.queue_icon[data-uuid]')) { @@ -124,6 +132,7 @@ export default { switch (icon) { case 'remove': socket.emit('removeFromQueue', uuid) + if ($(`#bar_${uuid}`).hasClass('indeterminate')) { $(`#download_${uuid}`).remove() } else { @@ -134,6 +143,7 @@ export default { } }, initQueue(data) { + console.log('this.initQueue') const { queue: initQueue, queueComplete: initQueueComplete, @@ -165,6 +175,7 @@ export default { } }, addToQueue(queueItem, current = false) { + console.log('this.addToQueue') if (Array.isArray(queueItem)) { if (queueItem.length > 1) { queueItem.forEach((item, i) => { @@ -177,44 +188,39 @@ export default { queueItem = queueItem[0] } } - this.queueList[queueItem.uuid] = queueItem - if (queueItem.downloaded + queueItem.failed == queueItem.size) { - if (this.queueComplete.indexOf(queueItem.uuid) == -1) { + // * Here we have only objects + this.$set(this.queueList, queueItem.uuid, queueItem) + // this.queueList[queueItem.uuid] = queueItem + + // * Used when opening the app in another tab + let itemIsAlreadyDownloaded = queueItem.downloaded + queueItem.failed == queueItem.size + + if (itemIsAlreadyDownloaded) { + let itemIsNotInCompletedQueue = this.queueComplete.indexOf(queueItem.uuid) == -1 + + if (itemIsNotInCompletedQueue) { + // * Add it this.queueComplete.push(queueItem.uuid) } } else { - if (this.queue.indexOf(queueItem.uuid) == -1) { + let itemIsNotInQueue = this.queue.indexOf(queueItem.uuid) == -1 + + if (itemIsNotInQueue) { this.queue.push(queueItem.uuid) } } let queueDOM = document.getElementById('download_' + queueItem.uuid) + let noItemInQueueDOM = typeof queueDOM == 'undefined' || queueDOM == null - if (typeof queueDOM == 'undefined' || queueDOM == null) { - $(this.$refs.list).append( - `
-
- Cover ${queueItem.title} -
- ${queueItem.title} - - ${queueItem.artist} -
-
- ${queueItem.downloaded + queueItem.failed}/${ - queueItem.size - } -
-
-
-
- remove -
-
` - ) + if (noItemInQueueDOM) { + this.appendItem(queueItem) } - if (queueItem.progress > 0 || current) { + let needToStartDownload = queueItem.progress > 0 || current + + if (needToStartDownload) { this.startDownload(queueItem.uuid) } @@ -255,10 +261,12 @@ export default { updateQueue(update) { // downloaded and failed default to false? const { uuid, downloaded, failed, progress, conversion, error, data, errid } = update + console.log('this.updateQueue', !!this.queueList[uuid]) if (uuid && this.queue.indexOf(uuid) > -1) { if (downloaded) { this.queueList[uuid].downloaded++ + $('#download_' + uuid + ' .queue_downloaded').text( this.queueList[uuid].downloaded + this.queueList[uuid].failed ) @@ -266,9 +274,11 @@ export default { if (failed) { this.queueList[uuid].failed++ + $('#download_' + uuid + ' .queue_downloaded').text( this.queueList[uuid].downloaded + this.queueList[uuid].failed ) + if (this.queueList[uuid].failed == 1 && $('#download_' + uuid + ' .queue_failed').length == 0) { $('#download_' + uuid + ' .download_info_status').append( `(1 error_outline)` @@ -291,33 +301,45 @@ export default { } }, removeFromQueue(uuid) { + console.log('this.removeFromQueue') let index = this.queue.indexOf(uuid) if (index > -1) { - this.queue.splice(index, 1) + this.$delete(this.queue, index) + $(`#download_${uuid}`).remove() - delete this.queueList[uuid] + + this.$delete(this.queueList, uuid) } }, removeAllDownloads(currentItem) { + console.log('this.removeFromQueue') this.queueComplete = [] - if (currentItem == '') { + let currentItemIsEmpty = currentItem === '' + + if (currentItemIsEmpty) { this.queue = [] this.queueList = {} + $(listEl).html('') } else { this.queue = [currentItem] + let tempQueueItem = this.queueList[currentItem] + this.queueList = {} this.queueList[currentItem] = tempQueueItem $('.download_object').each(function (index) { - if ($(this).attr('id') != 'download_' + currentItem) $(this).remove() + if ($(this).attr('id') != 'download_' + currentItem) { + $(this).remove() + } }) } }, removedFinishedDownloads() { + console.log('this.removedFinishedDownloads') this.queueComplete.forEach(item => { $('#download_' + item).remove() }) @@ -339,46 +361,54 @@ export default { localStorage.setItem('downloadTabOpen', !isHidden) }, cleanQueue() { + console.log('this.cleanQueue') socket.emit('removeFinishedDownloads') }, cancelQueue() { + console.log('this.cancelQueue') socket.emit('cancelAllDownloads') }, finishDownload(uuid) { - if (this.queue.indexOf(uuid) > -1) { - toast(this.$t('toasts.finishDownload', { item: this.queueList[uuid].title }), 'done') + console.log('this.finishDownload') - $('#bar_' + uuid).css('width', '100%') + let isInQueue = this.queue.indexOf(uuid) > -1 - let resultIcon = $('#download_' + uuid).find('.queue_icon') + if (!isInQueue) return - if (this.queueList[uuid].failed == 0) { - resultIcon.text('done') + const resultIcon = $('#download_' + uuid).find('.queue_icon') + const noFailedDownloads = this.queueList[uuid].failed == 0 + + toast(this.$t('toasts.finishDownload', { item: this.queueList[uuid].title }), 'done') + + $('#bar_' + uuid).css('width', '100%') + + if (noFailedDownloads) { + resultIcon.text('done') + } else { + const failedButton = $('#download_' + uuid).find('.queue_failed_button') + + resultIcon.addClass('clickable') + resultIcon.bind('click', { item: this.queueList[uuid] }, this.showErrorsTab) + + failedButton.addClass('clickable') + failedButton.bind('click', { item: this.queueList[uuid] }, this.showErrorsTab) + + if (this.queueList[uuid].failed >= this.queueList[uuid].size) { + resultIcon.text('error') } else { - let failedButton = $('#download_' + uuid).find('.queue_failed_button') - - resultIcon.addClass('clickable') - failedButton.addClass('clickable') - - resultIcon.bind('click', { item: this.queueList[uuid] }, this.showErrorsTab) - failedButton.bind('click', { item: this.queueList[uuid] }, this.showErrorsTab) - - if (this.queueList[uuid].failed >= this.queueList[uuid].size) { - resultIcon.text('error') - } else { - resultIcon.text('warning') - } + resultIcon.text('warning') } + } - let index = this.queue.indexOf(uuid) - if (index > -1) { - this.queue.splice(index, 1) - this.queueComplete.push(uuid) - } + let index = this.queue.indexOf(uuid) - if (this.queue.length <= 0) { - toast(this.$t('toasts.allDownloaded'), 'done_all') - } + if (index > -1) { + this.queue.splice(index, 1) + this.queueComplete.push(uuid) + } + + if (this.queue.length <= 0) { + toast(this.$t('toasts.allDownloaded'), 'done_all') } }, openDownloadsFolder() { @@ -402,18 +432,44 @@ export default { document.addEventListener('mousemove', this.handleDrag) }, startDownload(uuid) { + console.log('this.startDownload') $('#bar_' + uuid) .removeClass('converting') .removeClass('indeterminate') .addClass('determinate') }, startConversion(uuid) { + console.log('this.startConversion') $('#bar_' + uuid) .addClass('converting') .removeClass('indeterminate') .addClass('determinate') .css('width', '100%') }, + appendItem(queueItem) { + return + console.log('this.appendItem') + $(this.$refs.list).append( + `
+
+ Cover ${queueItem.title} +
+ ${queueItem.title} - + ${queueItem.artist} +
+
+ ${queueItem.downloaded + queueItem.failed}/${ + queueItem.size + } +
+
+
+
+ remove +
+
` + ) + }, async showErrorsTab(clickEvent) { await this.setErrors(clickEvent.data.item) diff --git a/src/components/TheFavoritesTab.vue b/src/components/TheFavoritesTab.vue index 307b468..9a1ba20 100644 --- a/src/components/TheFavoritesTab.vue +++ b/src/components/TheFavoritesTab.vue @@ -44,7 +44,12 @@

{{ release.title }}

- {{ `${$t('globals.by', {artist: release.creator.name})} - ${$tc('globals.listTabs.trackN', release.nb_tracks)}` }} + {{ + `${$t('globals.by', { artist: release.creator.name })} - ${$tc( + 'globals.listTabs.trackN', + release.nb_tracks + )}` + }}

{{ release.title }}

- {{ `${$t('globals.by', {artist: release.creator.name})} - ${$tc('globals.listTabs.trackN', release.nb_tracks)}` }} + {{ + `${$t('globals.by', { artist: release.creator.name })} - ${$tc( + 'globals.listTabs.trackN', + release.nb_tracks + )}` + }}

@@ -92,7 +102,7 @@

{{ release.title }}

-

{{ `${$t('globals.by', {artist: release.artist.name})}` }}

+

{{ `${$t('globals.by', { artist: release.artist.name })}` }}

@@ -226,7 +236,6 @@ export default { } }, mounted() { - console.log('favorites mounted') // ! Need to implement memorization of the last tab clicked // ! Use router query diff --git a/src/components/TheHomeTab.vue b/src/components/TheHomeTab.vue index 7272993..5729fd8 100644 --- a/src/components/TheHomeTab.vue +++ b/src/components/TheHomeTab.vue @@ -104,7 +104,6 @@ export default { Downloads.sendAddToQueue(e.currentTarget.dataset.link) }, initHome(data) { - console.log('init home') const { playlists: { data: playlistData }, albums: { data: albumData } diff --git a/src/components/TheMainSearch.vue b/src/components/TheMainSearch.vue index bcfffb8..2e06001 100644 --- a/src/components/TheMainSearch.vue +++ b/src/components/TheMainSearch.vue @@ -180,7 +180,6 @@ export default { this.currentTab = newTab }, checkIfShowNewResults(term, mainSelected) { - console.log('check if show new results') let needToPerformNewSearch = term !== this.results.query || mainSelected == 'search_tab' if (needToPerformNewSearch) { @@ -188,7 +187,6 @@ export default { } }, showNewResults(term) { - console.log('show new results') socket.emit('mainSearch', { term }) // Showing loading placeholder @@ -206,8 +204,6 @@ export default { numberWithDots, convertDuration, search(type) { - console.log('search method called') - socket.emit('search', { term: this.results.query, type, @@ -225,7 +221,6 @@ export default { } }, handleMainSearch(result) { - console.log('handle main search', result) // Hiding loading placeholder this.$root.$emit('updateSearchLoadingState', false) @@ -239,7 +234,6 @@ export default { this.results.query = result.QUERY }, handleSearch(result) { - console.log('handle search', result) const { next: nextResult, total, type, data } = result let currentTab = type + 'Tab' diff --git a/src/components/TracklistTab.vue b/src/components/TracklistTab.vue index 84829f2..88f8770 100644 --- a/src/components/TracklistTab.vue +++ b/src/components/TracklistTab.vue @@ -55,9 +55,7 @@
- - explicit - + explicit {{ track.title + (track.title_version && track.title.indexOf(track.title_version) == -1 @@ -91,9 +89,9 @@ - + -
+
album
@@ -131,10 +129,10 @@ - {{ label }} + {{ label }}