From b5021e12e3fac80ba860439e54f2251bee50e64f Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sat, 13 Jun 2020 11:14:11 +0200 Subject: [PATCH] Return to correct artist tab category when going back --- public/js/bundle.js | 2 +- src/js/modules/components/artist-tab.js | 5 ++++- src/js/modules/tabs.js | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/public/js/bundle.js b/public/js/bundle.js index a5eea62..820fe1b 100644 --- a/public/js/bundle.js +++ b/public/js/bundle.js @@ -37,4 +37,4 @@ function(e){var t,n,r,i,o,a,s,l,u,c,d,f,p,h,v,m,g,y,b,_="sizzle"+1*new Date,w=e. * (c) 2014-2019 Evan You * Released under the MIT License. */ -var Ut=Object.freeze({});function Vt(e){return null==e}function Wt(e){return null!=e}function Gt(e){return!0===e}function Kt(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function Qt(e){return null!==e&&"object"==typeof e}var Jt=Object.prototype.toString;function Xt(e){return"[object Object]"===Jt.call(e)}function Yt(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function Zt(e){return Wt(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function en(e){return null==e?"":Array.isArray(e)||Xt(e)&&e.toString===Jt?JSON.stringify(e,null,2):String(e)}function tn(e){var t=parseFloat(e);return isNaN(t)?e:t}function nn(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var sn=Object.prototype.hasOwnProperty;function ln(e,t){return sn.call(e,t)}function un(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var cn=/-(\w)/g,dn=un((function(e){return e.replace(cn,(function(e,t){return t?t.toUpperCase():""}))})),fn=un((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),pn=/\B([A-Z])/g,hn=un((function(e){return e.replace(pn,"-$1").toLowerCase()}));var vn=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function mn(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function gn(e,t){for(var n in t)e[n]=t[n];return e}function yn(e){for(var t={},n=0;n0,Fn=Pn&&Pn.indexOf("edge/")>0,qn=(Pn&&Pn.indexOf("android"),Pn&&/iphone|ipad|ipod|ios/.test(Pn)||"ios"===Mn),Hn=(Pn&&/chrome\/\d+/.test(Pn),Pn&&/phantomjs/.test(Pn),Pn&&Pn.match(/firefox\/(\d+)/)),zn={}.watch,Un=!1;if(Dn)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){Un=!0}}),window.addEventListener("test-passive",null,Vn)}catch(e){}var Wn=function(){return void 0===Ln&&(Ln=!Dn&&!In&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),Ln},Gn=Dn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Kn(e){return"function"==typeof e&&/native code/.test(e.toString())}var Qn,Jn="undefined"!=typeof Symbol&&Kn(Symbol)&&"undefined"!=typeof Reflect&&Kn(Reflect.ownKeys);Qn="undefined"!=typeof Set&&Kn(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 Xn=bn,Yn=0,Zn=function(){this.id=Yn++,this.subs=[]};Zn.prototype.addSub=function(e){this.subs.push(e)},Zn.prototype.removeSub=function(e){an(this.subs,e)},Zn.prototype.depend=function(){Zn.target&&Zn.target.addDep(this)},Zn.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(o&&!ln(i,"default"))a=!1;else if(""===a||a===hn(e)){var l=Or(String,i.type);(l<0||s0&&(Zr((i=e(i,(n||"")+"_"+r))[0])&&Zr(a)&&(s[o]=ar(a.text+i[0].text),i.shift()),s.push.apply(s,i)):Kt(i)?Zr(a)?s[o]=ar(a.text+i):""!==i&&s.push(ar(i)):Zr(i)&&Zr(a)?s[o]=ar(a.text+i.text):(Gt(t._isVList)&&Wt(i.tag)&&Vt(i.key)&&Wt(n)&&(i.key="__vlist"+n+"_"+r+"__"),s.push(i)));return s}(e):void 0}function Zr(e){return Wt(e)&&Wt(e.text)&&!1===e.isComment}function ei(e,t){if(e){for(var n=Object.create(null),r=Jn?Reflect.ownKeys(e):Object.keys(e),i=0;i0,o=e?!!e.$stable:!i,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==Ut&&a===n.$key&&!i&&!n.$hasNormal)return n;for(var s in r={},e)e[s]&&"$"!==s[0]&&(r[s]=ii(t,s,e[s]))}else r={};for(var l in t)l in r||(r[l]=oi(t,l));return e&&Object.isExtensible(e)&&(e._normalized=r),On(r,"$stable",o),On(r,"$key",a),On(r,"$hasNormal",i),r}function ii(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:Yr(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function oi(e,t){return function(){return e[t]}}function ai(e,t){var n,r,i,o,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;rdocument.createEvent("Event").timeStamp&&(Ji=function(){return Xi.now()})}function Yi(){var e,t;for(Qi=Ji(),Gi=!0,zi.sort((function(e,t){return e.id-t.id})),Ki=0;KiKi&&zi[n].id>e.id;)n--;zi.splice(n+1,0,e)}else zi.push(e);Wi||(Wi=!0,Ur(Yi))}}(this)},eo.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||Qt(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){jr(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},eo.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},eo.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},eo.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||an(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var to={enumerable:!0,configurable:!0,get:bn,set:bn};function no(e,t,n){to.get=function(){return this[t][n]},to.set=function(e){this[t][n]=e},Object.defineProperty(e,n,to)}function ro(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&fr(!1);var o=function(o){i.push(o);var a=Ar(o,t,n,e);vr(r,o,a),o in e||no(e,"_props",o)};for(var a in t)o(a);fr(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?bn:vn(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;Xt(t=e._data="function"==typeof t?function(e,t){tr();try{return e.call(t,t)}catch(e){return jr(e,t,"data()"),{}}finally{nr()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&ln(r,o)||$n(o)||no(e,"_data",o)}hr(t,!0)}(e):hr(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Wn();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new eo(e,a||bn,bn,oo)),i in e||ao(e,i,o)}}(e,t.computed),t.watch&&t.watch!==zn&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===Jt.call(n)&&e.test(t));var n}function go(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=vo(a.componentOptions);s&&!t(s)&&yo(n,o,r,i)}}}function yo(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,an(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=co++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.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)}(t,e):t.$options=Cr(fo(t.constructor),e||{},t),t._renderProxy=t,t._self=t,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}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Pi(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=ti(t._renderChildren,r),e.$scopedSlots=Ut,e._c=function(t,n,r,i){return Ei(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ei(e,t,n,r,i,!0)};var i=n&&n.data;vr(e,"$attrs",i&&i.attrs||Ut,null,!0),vr(e,"$listeners",t._parentListeners||Ut,null,!0)}(t),Hi(t,"beforeCreate"),function(e){var t=ei(e.$options.inject,e);t&&(fr(!1),Object.keys(t).forEach((function(n){vr(e,n,t[n])})),fr(!0))}(t),ro(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Hi(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(po),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=mr,e.prototype.$delete=gr,e.prototype.$watch=function(e,t,n){if(Xt(t))return uo(this,e,t,n);(n=n||{}).user=!0;var r=new eo(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){jr(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(po),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?mn(n):n;for(var r=mn(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;oparseInt(this.max)&&yo(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return An}};Object.defineProperty(e,"config",t),e.util={warn:Xn,extend:gn,mergeOptions:Cr,defineReactive:vr},e.set=mr,e.delete=gr,e.nextTick=Ur,e.observable=function(e){return hr(e),e},e.options=Object.create(null),Cn.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,gn(e.options.components,_o),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=mn(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=Cr(this.options,e),this}}(e),ho(e),function(e){Cn.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&Xt(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)}(po),Object.defineProperty(po.prototype,"$isServer",{get:Wn}),Object.defineProperty(po.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(po,"FunctionalRenderContext",{value:wi}),po.version="2.6.11";var wo=nn("style,class"),xo=nn("input,textarea,option,select,progress"),To=function(e,t,n){return"value"===n&&xo(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},ko=nn("contenteditable,draggable,spellcheck"),Co=nn("events,caret,typing,plaintext-only"),So=nn("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"),Ao="http://www.w3.org/1999/xlink",Eo=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},$o=function(e){return Eo(e)?e.slice(6,e.length):""},Oo=function(e){return null==e||!1===e};function jo(e){for(var t=e.data,n=e,r=e;Wt(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Lo(r.data,t));for(;Wt(n=n.parent);)n&&n.data&&(t=Lo(t,n.data));return function(e,t){if(Wt(e)||Wt(t))return No(e,Do(t));return""}(t.staticClass,t.class)}function Lo(e,t){return{staticClass:No(e.staticClass,t.staticClass),class:Wt(e.class)?[e.class,t.class]:t.class}}function No(e,t){return e?t?e+" "+t:e:t||""}function Do(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?oa(e,t,n):So(t)?Oo(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):ko(t)?e.setAttribute(t,function(e,t){return Oo(t)||"false"===t?"false":"contenteditable"===e&&Co(t)?t:"true"}(t,n)):Eo(t)?Oo(n)?e.removeAttributeNS(Ao,$o(t)):e.setAttributeNS(Ao,t,n):oa(e,t,n)}function oa(e,t,n){if(Oo(n))e.removeAttribute(t);else{if(Rn&&!Bn&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var aa={create:ra,update:ra};function sa(e,t){var n=t.elm,r=t.data,i=e.data;if(!(Vt(r.staticClass)&&Vt(r.class)&&(Vt(i)||Vt(i.staticClass)&&Vt(i.class)))){var o=jo(t),a=n._transitionClasses;Wt(a)&&(o=No(o,Do(a))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var la,ua,ca,da,fa,pa,ha={create:sa,update:sa},va=/[\w).+\-_$\]]/;function ma(e){var t,n,r,i,o,a=!1,s=!1,l=!1,u=!1,c=0,d=0,f=0,p=0;for(r=0;r=0&&" "===(v=e.charAt(h));h--);v&&va.test(v)||(u=!0)}}else void 0===i?(p=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(p,r).trim()),p=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==p&&m(),o)for(r=0;r-1?{exp:e.slice(0,da),key:'"'+e.slice(da+1)+'"'}:{exp:e,key:null};ua=e,da=fa=pa=0;for(;!Na();)Da(ca=La())?Ma(ca):91===ca&&Ia(ca);return{exp:e.slice(0,fa),key:e.slice(fa+1,pa)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function La(){return ua.charCodeAt(++da)}function Na(){return da>=la}function Da(e){return 34===e||39===e}function Ia(e){var t=1;for(fa=da;!Na();)if(Da(e=La()))Ma(e);else if(91===e&&t++,93===e&&t--,0===t){pa=da;break}}function Ma(e){for(var t=e;!Na()&&(e=La())!==t;);}var Pa;function Ra(e,t,n){var r=Pa;return function i(){var o=t.apply(null,arguments);null!==o&&qa(e,i,n,r)}}var Ba=Mr&&!(Hn&&Number(Hn[1])<=53);function Fa(e,t,n,r){if(Ba){var i=Qi,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Pa.addEventListener(e,t,Un?{capture:n,passive:r}:n)}function qa(e,t,n,r){(r||Pa).removeEventListener(e,t._wrapper||t,n)}function Ha(e,t){if(!Vt(e.data.on)||!Vt(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Pa=t.elm,function(e){if(Wt(e.__r)){var t=Rn?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}Wt(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),Qr(n,r,Fa,qa,Ra,t.context),Pa=void 0}}var za,Ua={create:Ha,update:Ha};function Va(e,t){if(!Vt(e.data.domProps)||!Vt(t.data.domProps)){var n,r,i=t.elm,o=e.data.domProps||{},a=t.data.domProps||{};for(n in Wt(a.__ob__)&&(a=t.data.domProps=gn({},a)),o)n in a||(i[n]="");for(n in a){if(r=a[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===o[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var s=Vt(r)?"":String(r);Wa(i,s)&&(i.value=s)}else if("innerHTML"===n&&Po(i.tagName)&&Vt(i.innerHTML)){(za=za||document.createElement("div")).innerHTML=""+r+"";for(var l=za.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}else if(r!==o[n])try{i[n]=r}catch(e){}}}}function Wa(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 n=e.value,r=e._vModifiers;if(Wt(r)){if(r.number)return tn(n)!==tn(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Ga={create:Va,update:Va},Ka=un((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Qa(e){var t=Ja(e.style);return e.staticStyle?gn(e.staticStyle,t):t}function Ja(e){return Array.isArray(e)?yn(e):"string"==typeof e?Ka(e):e}var Xa,Ya=/^--/,Za=/\s*!important$/,es=function(e,t,n){if(Ya.test(t))e.style.setProperty(t,n);else if(Za.test(n))e.style.setProperty(hn(t),n.replace(Za,""),"important");else{var r=ns(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(os).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 ss(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(os).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")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function ls(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&gn(t,us(e.name||"v")),gn(t,e),t}return"string"==typeof e?us(e):void 0}}var us=un((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"}})),cs=Dn&&!Bn,ds="transition",fs="transitionend",ps="animation",hs="animationend";cs&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ds="WebkitTransition",fs="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ps="WebkitAnimation",hs="webkitAnimationEnd"));var vs=Dn?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ms(e){vs((function(){vs(e)}))}function gs(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),as(e,t))}function ys(e,t){e._transitionClasses&&an(e._transitionClasses,t),ss(e,t)}function bs(e,t,n){var r=ws(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s="transition"===i?fs:hs,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=a&&u()};setTimeout((function(){l0&&(n="transition",c=a,d=o.length):"animation"===t?u>0&&(n="animation",c=u,d=l.length):d=(n=(c=Math.max(a,u))>0?a>u?"transition":"animation":null)?"transition"===n?o.length:l.length:0,{type:n,timeout:c,propCount:d,hasTransform:"transition"===n&&_s.test(r[ds+"Property"])}}function xs(e,t){for(;e.length1}function Es(e,t){!0!==t.data.show&&ks(t)}var $s=function(e){var t,n,r={},i=e.modules,o=e.nodeOps;for(t=0;tf?h(e,Vt(n[g+1])?null:n[g+1].elm,n,d,g,r):d>g&&m(t,c,f)}(u,p,v,n,l):Wt(v)?(Wt(e.text)&&o.setTextContent(u,""),h(u,null,v,0,v.length-1,n)):Wt(p)?m(p,0,p.length-1):Wt(e.text)&&o.setTextContent(u,""):e.text!==t.text&&o.setTextContent(u,t.text),Wt(f)&&Wt(c=f.hook)&&Wt(c=c.postpatch)&&c(e,t)}}}function _(e,t,n){if(Gt(n)&&Wt(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(xn(Ds(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Ns(e,t){return t.every((function(t){return!xn(t,e)}))}function Ds(e){return"_value"in e?e._value:e.value}function Is(e){e.target.composing=!0}function Ms(e){e.target.composing&&(e.target.composing=!1,Ps(e.target,"input"))}function Ps(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Rs(e){return!e.componentInstance||e.data&&e.data.transition?e:Rs(e.componentInstance._vnode)}var Bs={model:Os,show:{bind:function(e,t,n){var r=t.value,i=(n=Rs(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ks(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Rs(n)).data&&n.data.transition?(n.data.show=!0,r?ks(n,(function(){e.style.display=e.__vOriginalDisplay})):Cs(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Fs={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 qs(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?qs(Ni(t.children)):e}function Hs(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[dn(o)]=i[o];return t}function zs(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Us=function(e){return e.tag||Li(e)},Vs=function(e){return"show"===e.name},Ws={name:"transition",props:Fs,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Us)).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=qs(i);if(!o)return i;if(this._leaving)return zs(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:Kt(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Hs(this),l=this._vnode,u=qs(l);if(o.data.directives&&o.data.directives.some(Vs)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!Li(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var c=u.data.transition=gn({},s);if("out-in"===r)return this._leaving=!0,Jr(c,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),zs(e,i);if("in-out"===r){if(Li(o))return l;var d,f=function(){d()};Jr(s,"afterEnter",f),Jr(s,"enterCancelled",f),Jr(c,"delayLeave",(function(e){d=e}))}}return i}}},Gs=gn({tag:String,moveClass:String},Fs);function Ks(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Qs(e){e.data.newPos=e.elm.getBoundingClientRect()}function Js(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Gs.mode;var Xs={Transition:Ws,TransitionGroup:{props:Gs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Bi(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Hs(this),s=0;s-1?Fo[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Fo[e]=/HTMLUnknownElement/.test(t.toString())},gn(po.options.directives,Bs),gn(po.options.components,Xs),po.prototype.__patch__=Dn?$s:bn,po.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=or),Hi(e,"beforeMount"),r=function(){e._update(e._render(),n)},new eo(e,r,bn,{before:function(){e._isMounted&&!e._isDestroyed&&Hi(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Hi(e,"mounted")),e}(this,e=e&&Dn?Ho(e):void 0,t)},Dn&&setTimeout((function(){An.devtools&&Gn&&Gn.emit("init",po)}),0);var Ys=/\{\{((?:.|\r?\n)+?)\}\}/g,Zs=/[-.*+?^${}()|[\]\/\\]/g,el=un((function(e){var t=e[0].replace(Zs,"\\$&"),n=e[1].replace(Zs,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var tl={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Aa(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Sa(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var nl,rl={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Aa(e,"style");n&&(e.staticStyle=JSON.stringify(Ka(n)));var r=Sa(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},il=function(e){return(nl=nl||document.createElement("div")).innerHTML=e,nl.textContent},ol=nn("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),al=nn("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),sl=nn("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"),ll=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ul=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,cl="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+En.source+"]*",dl="((?:"+cl+"\\:)?"+cl+")",fl=new RegExp("^<"+dl),pl=/^\s*(\/?)>/,hl=new RegExp("^<\\/"+dl+"[^>]*>"),vl=/^]+>/i,ml=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},wl=/&(?:lt|gt|quot|amp|#39);/g,xl=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Tl=nn("pre,textarea",!0),kl=function(e,t){return e&&Tl(e)&&"\n"===t[0]};function Cl(e,t){var n=t?xl:wl;return e.replace(n,(function(e){return _l[e]}))}var Sl,Al,El,$l,Ol,jl,Ll,Nl,Dl=/^@|^v-on:/,Il=/^v-|^@|^:|^#/,Ml=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Pl=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Rl=/^\(|\)$/g,Bl=/^\[.*\]$/,Fl=/:(.*)$/,ql=/^:|^\.|^v-bind:/,Hl=/\.[^.\]]+(?=[^\]]*$)/g,zl=/^v-slot(:|$)|^#/,Ul=/[\r\n]/,Vl=/\s+/g,Wl=un(il);function Gl(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:eu(t),rawAttrsMap:{},parent:n,children:[]}}function Kl(e,t){Sl=t.warn||ya,jl=t.isPreTag||_n,Ll=t.mustUseProp||_n,Nl=t.getTagNamespace||_n;t.isReservedTag;El=ba(t.modules,"transformNode"),$l=ba(t.modules,"preTransformNode"),Ol=ba(t.modules,"postTransformNode"),Al=t.delimiters;var n,r,i=[],o=!1!==t.preserveWhitespace,a=t.whitespace,s=!1,l=!1;function u(e){if(c(e),s||e.processed||(e=Ql(e,t)),i.length||e===n||n.if&&(e.elseif||e.else)&&Xl(n,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)a=e,(u=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(r.children))&&u.if&&Xl(u,{exp:a.elseif,block:a});else{if(e.slotScope){var o=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[o]=e}r.children.push(e),e.parent=r}var a,u;e.children=e.children.filter((function(e){return!e.slotScope})),c(e),e.pre&&(s=!1),jl(e.tag)&&(l=!1);for(var d=0;d]*>)","i")),f=e.replace(d,(function(e,n,r){return u=r.length,yl(c)||"noscript"===c||(n=n.replace(//g,"$1").replace(//g,"$1")),kl(c,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));l+=e.length-f.length,e=f,S(c,l-u,l)}else{var p=e.indexOf("<");if(0===p){if(ml.test(e)){var h=e.indexOf("--\x3e");if(h>=0){t.shouldKeepComment&&t.comment(e.substring(4,h),l,l+h+3),T(h+3);continue}}if(gl.test(e)){var v=e.indexOf("]>");if(v>=0){T(v+2);continue}}var m=e.match(vl);if(m){T(m[0].length);continue}var g=e.match(hl);if(g){var y=l;T(g[0].length),S(g[1],y,l);continue}var b=k();if(b){C(b),kl(b.tagName,e)&&T(1);continue}}var _=void 0,w=void 0,x=void 0;if(p>=0){for(w=e.slice(p);!(hl.test(w)||fl.test(w)||ml.test(w)||gl.test(w)||(x=w.indexOf("<",1))<0);)p+=x,w=e.slice(p);_=e.substring(0,p)}p<0&&(_=e),_&&T(_.length),t.chars&&_&&t.chars(_,l-_.length,l)}if(e===n){t.chars&&t.chars(e);break}}function T(t){l+=t,e=e.substring(t)}function k(){var t=e.match(fl);if(t){var n,r,i={tagName:t[1],attrs:[],start:l};for(T(t[0].length);!(n=e.match(pl))&&(r=e.match(ul)||e.match(ll));)r.start=l,T(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],T(n[0].length),i.end=l,i}}function C(e){var n=e.tagName,l=e.unarySlash;o&&("p"===r&&sl(n)&&S(r),s(n)&&r===n&&S(n));for(var u=a(n)||!!l,c=e.attrs.length,d=new Array(c),f=0;f=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}S()}(e,{warn:Sl,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,c,d){var f=r&&r.ns||Nl(e);Rn&&"svg"===f&&(o=function(e){for(var t=[],n=0;nl&&(s.push(o=e.slice(l,i)),a.push(JSON.stringify(o)));var u=ma(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),l=i+r[0].length}return l-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Ca(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+ja(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+ja(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+ja(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Sa(e,"value")||"null";_a(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Ca(e,"change",ja(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,l=!o&&"range"!==r,u=o?"change":"range"===r?"__r":"input",c="$event.target.value";s&&(c="$event.target.value.trim()");a&&(c="_n("+c+")");var d=ja(t,c);l&&(d="if($event.target.composing)return;"+d);_a(e,"value","("+t+")"),Ca(e,u,d,null,!0),(s||a)&&Ca(e,"blur","$forceUpdate()")}(e,r,i);else if(!An.isReservedTag(o))return Oa(e,r,i),!1;return!0},text:function(e,t){t.value&&_a(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&_a(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:ol,mustUseProp:To,canBeLeftOpenTag:al,isReservedTag:Ro,getTagNamespace:Bo,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(iu)},lu=un((function(e){return nn("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function uu(e,t){e&&(ou=lu(t.staticKeys||""),au=t.isReservedTag||_n,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||rn(e.tag)||!au(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(ou)))}(t),1===t.type){if(!au(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,du=/\([^)]*?\);*$/,fu=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,pu={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},hu={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"]},vu=function(e){return"if("+e+")return null;"},mu={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:vu("$event.target !== $event.currentTarget"),ctrl:vu("!$event.ctrlKey"),shift:vu("!$event.shiftKey"),alt:vu("!$event.altKey"),meta:vu("!$event.metaKey"),left:vu("'button' in $event && $event.button !== 0"),middle:vu("'button' in $event && $event.button !== 1"),right:vu("'button' in $event && $event.button !== 2")};function gu(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=yu(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function yu(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return yu(e)})).join(",")+"]";var t=fu.test(e.value),n=cu.test(e.value),r=fu.test(e.value.replace(du,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(mu[s])o+=mu[s],pu[s]&&a.push(s);else if("exact"===s){var l=e.modifiers;o+=vu(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(bu).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function bu(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=pu[e],r=hu[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var _u={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:bn},wu=function(e){this.options=e,this.warn=e.warn||ya,this.transforms=ba(e.modules,"transformCode"),this.dataGenFns=ba(e.modules,"genData"),this.directives=gn(gn({},_u),e.directives);var t=e.isReservedTag||_n;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function xu(e,t){var n=new wu(t);return{render:"with(this){return "+(e?Tu(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Tu(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return ku(e,t);if(e.once&&!e.onceProcessed)return Cu(e,t);if(e.for&&!e.forProcessed)return Au(e,t);if(e.if&&!e.ifProcessed)return Su(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=ju(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Du((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:dn(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:ju(t,n,!0);return"_c("+e+","+Eu(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Eu(e,t));var i=e.inlineTemplate?null:ju(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=xu(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Du(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function $u(e){return 1===e.type&&("slot"===e.tag||e.children.some($u))}function Ou(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Su(e,t,Ou,"null");if(e.for&&!e.forProcessed)return Au(e,t,Ou);var r="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(ju(e,t)||"undefined")+":undefined":ju(e,t)||"undefined":Tu(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function ju(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Tu)(a,t)+s}var l=n?function(e,t){for(var n=0,r=0;r':'
',Bu.innerHTML.indexOf(" ")>0}var Hu=!!Dn&&qu(!1),zu=!!Dn&&qu(!0),Uu=un((function(e){var t=Ho(e);return t&&t.innerHTML})),Vu=po.prototype.$mount;po.prototype.$mount=function(e,t){if((e=e&&Ho(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Uu(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=Fu(r,{outputSourceRange:!1,shouldDecodeNewlines:Hu,shouldDecodeNewlinesForHref:zu,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Vu.call(this,e,t)},po.compile=Fu;const Wu=new po({data:()=>({currentTab:"",sortKey:"release_date",sortOrder:"desc",title:"",image:"",type:"",link:"",head:null,body:null}),methods:{albumView:nc.bind(null,"album"),reset(){this.title="Loading...",this.image="",this.type="",this.currentTab="",this.sortKey="release_date",this.sortOrder="desc",this.link="",this.head=[],this.body=null},addToQueue(e){e.stopPropagation(),b.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){T.open(e.currentTarget.dataset.link)},sortBy(e){e==this.sortKey?this.sortOrder="asc"==this.sortOrder?"desc":"asc":(this.sortKey=e,this.sortOrder="asc")},changeTab(e){this.currentTab=e},checkNewRelease(e){let t=new Date,n=new Date(e);return n.setDate(n.getDate()+3),t.setHours(0,0,0,0),t.getTime()<=n.getTime()},showArtist(e){const{name:t,picture_xl:n,id:r,releases:i}=e;this.title=t,this.image=n,this.type="Artist",this.link="https://www.deezer.com/artist/"+r,this.currentTab=Object.keys(i)[0],this.sortKey="release_date",this.sortOrder="desc",this.head=[{title:"Title",sortKey:"title"},{title:"Release Date",sortKey:"release_date"},{title:"",width:"32px"}],qt(i)?this.body=null:this.body=i}},computed:{showTable(){return this.body?(e=this.body[this.currentTab],t=this.sortKey,n=this.sortOrder,null==e?[]:(R(t)||(t=null==t?[]:[t]),R(n=r?void 0:n)||(n=null==n?[]:[n]),zt(e,t,n))):[];var e,t,n,r}},mounted(){r.on("show_artist",this.showArtist)}}).$mount("#artist_tab");window.vol={preview_max_volume:100};let Gu=document.getElementById("preview-track"),Ku=!0;var Qu={init:function(){Gu.volume=1,Gu.addEventListener("canplay",(function(){Gu.play(),Ku=!1,n(Gu).animate({volume:vol.preview_max_volume/100},500)})),Gu.addEventListener("timeupdate",(function(){Gu.currentTime>Gu.duration-1&&(n(Gu).animate({volume:0},800),Ku=!0,n("a[playing] > .preview_controls").css({opacity:0}),n("*").removeAttr("playing"),n(".preview_controls").text("play_arrow"),n(".preview_playlist_controls").text("play_arrow"))}))},stopStackedTabsPreview:function(){n(".preview_playlist_controls").filter((function(){return n(this).attr("playing")})).length>0&&(n(Gu).animate({volume:0},800),Ku=!0,n(".preview_playlist_controls").removeAttr("playing"),n(".preview_playlist_controls").text("play_arrow"))},previewMouseEnter:function(e){n(e.currentTarget).css({opacity:1})},previewMouseLeave:function(e){const{currentTarget:t}=e;(n(t).parent().attr("playing")&&Ku||!n(t).parent().attr("playing"))&&n(t).css({opacity:0},200)},playPausePreview:function(e){e.preventDefault();const{currentTarget:t}=event;var r="I"==t.tagName?n(t):n(t).children("i");n(t).attr("playing")?Gu.paused?(Gu.play(),Ku=!1,r.text("pause"),n(Gu).animate({volume:vol.preview_max_volume/100},500)):(Ku=!0,r.text("play_arrow"),n(Gu).animate({volume:0},250,"swing",()=>{Gu.pause()})):(n("*").removeAttr("playing"),n(t).attr("playing",!0),n(".preview_controls").text("play_arrow"),n(".preview_playlist_controls").text("play_arrow"),n(".preview_controls").css({opacity:0}),r.text("pause"),r.css({opacity:1}),Ku=!1,n(Gu).animate({volume:0},250,"swing",()=>{Gu.pause(),n("#preview-track_source").prop("src",n(t).data("preview")),Gu.load()}))}};var Ju={isValidURL:function(e){let t=e.toLowerCase();if(t.startsWith("http")){if(t.indexOf("deezer.com")>=0||t.indexOf("open.spotify.com")>=0)return!0}else if(t.startsWith("spotify:"))return!0;return!1},convertDuration:function(e){let t,n;return t=Math.floor(e/60),n=e-60*t,n<10&&(n="0"+n),t+":"+n},convertDurationSeparated:function(e){let t,n,r;return n=Math.floor(e/60),t=Math.floor(n/60),r=e-60*n,n-=60*t,[t,n,r]},numberWithDots:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")},debounce:function(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}},COUNTRIES:{AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia, Plurinational State of",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo, the Democratic Republic of the",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See (Vatican City State)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran, Islamic Republic of",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea, Democratic People's Republic of",KR:"Korea, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia, the Former Yugoslav Republic of",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthélemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan, Province of China",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela, Bolivarian Republic of",VN:"Viet Nam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"}};const Xu=new po({data:()=>({title:"",metadata:"",release_date:"",label:"",explicit:!1,image:"",type:"",link:"",body:[]}),methods:{artistView:nc.bind(null,"artist"),albumView:nc.bind(null,"album"),playPausePreview:Qu.playPausePreview,reset(){this.title="Loading...",this.image="",this.metadata="",this.label="",this.release_date="",this.explicit=!1,this.type="",this.body=[]},addToQueue(e){b.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){T.open(e.currentTarget.dataset.link)},toggleAll(e){this.body.forEach(t=>{"track"==t.type&&(t.selected=e.currentTarget.checked)})},selectedLinks(){var e=[];return this.body&&this.body.forEach(t=>{"track"==t.type&&t.selected&&e.push("Spotify Playlist"==this.type?t.uri:t.link)}),e.join(";")},convertDuration:Ju.convertDuration,showAlbum(e){const{id:t,title:n,explicit_lyrics:r,label:i,artist:{name:o},tracks:a,tracks:{length:s},release_date:l,cover_xl:u}=e;this.type="Album",this.link="https://www.deezer.com/album/"+t,this.title=n,this.explicit=r,this.label=i,this.metadata=`${o} • ${s} songs`,this.release_date=l.substring(0,10),this.image=u,qt(a)?this.body=null:this.body=a},showPlaylist(e){const{id:t,title:n,picture_xl:r,creation_date:i,creator:{name:o},tracks:a,tracks:{length:s}}=e;this.type="Playlist",this.link="https://www.deezer.com/playlist/"+t,this.title=n,this.image=r,this.release_date=i.substring(0,10),this.metadata=`by ${o} • ${s} songs`,qt(a)?this.body=null:this.body=a},showSpotifyPlaylist(e){const{uri:t,name:n,images:r,images:{length:i},owner:{display_name:o},tracks:a,tracks:{length:s}}=e;this.type="Spotify Playlist",this.link=t,this.title=n,this.image=i?r[0].url:"https://e-cdns-images.dzcdn.net/images/cover/d41d8cd98f00b204e9800998ecf8427e/1000x1000-000000-80-0-0.jpg",this.release_date="",this.metadata=`by ${o} • ${s} songs`,qt(a)?this.body=null:this.body=a}},mounted(){r.on("show_album",this.showAlbum),r.on("show_playlist",this.showPlaylist),r.on("show_spotifyplaylist",this.showSpotifyPlaylist)}}).$mount("#tracklist_tab"),Yu=new po({data:()=>({title:"",subtitle:"",image:"",data:{},type:"",link:"",id:"0",countries:[]}),methods:{artistView:nc.bind(null,"artist"),albumView:nc.bind(null,"album"),convertDuration:Ju.convertDuration,reset(){this.title="Loading...",this.subtitle="",this.image="",this.data={},this.type="",this.link="",this.countries=[]},showTrack(e){const{title:t,title_version:n,album:{cover_xl:r},link:i,available_countries:o,id:a}=e;this.title=t+(n&&-1==t.indexOf(n)?" "+n:""),this.image=r,this.type="track",this.link=i,this.id=a,o.forEach(e=>{let t=[],n=[...e].map(e=>e.charCodeAt()+127397);t.push(String.fromCodePoint(...n)),t.push(Ju.COUNTRIES[e]),this.countries.push(t)}),this.data=e},showAlbum(e){const{title:t,cover_xl:n,link:r,id:i}=e;this.title=t,this.image=n,this.type="album",this.link=r,this.data=e,this.id=i},notSupported(){this.link="error"}},mounted(){r.on("analyze_track",this.showTrack),r.on("analyze_album",this.showAlbum),r.on("analyze_notSupported",this.notSupported)}}).$mount("#analyzer_tab"),Zu=(new po({data:()=>({playlists:[],albums:[]}),methods:{artistView:nc.bind(null,"artist"),albumView:nc.bind(null,"album"),playlistView:nc.bind(null,"playlist"),openSettings(){document.getElementById("main_settings_tablink").click()},addToQueue(e){b.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){T.open(e.currentTarget.dataset.link)},initHome(e){const{playlists:{data:t},albums:{data:n}}=e;this.playlists=t,this.albums=n}},mounted(){localStorage.getItem("arl")&&this.$refs.notLogged.classList.add("hide"),r.on("init_home",this.initHome)}}).$mount("#home_tab"),new po({data:()=>({country:"",id:0,countries:[],chart:[]}),methods:{artistView:nc.bind(null,"artist"),albumView:nc.bind(null,"album"),playPausePreview:Qu.playPausePreview,previewMouseEnter:Qu.previewMouseEnter,previewMouseLeave:Qu.previewMouseLeave,convertDuration:Ju.convertDuration,addToQueue(e){e.stopPropagation(),b.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){T.open(e.currentTarget.dataset.link)},getTrackList(e){document.getElementById("content").scrollTo(0,0);const{currentTarget:{dataset:{title:t}},currentTarget:{dataset:{id:n}}}=e;this.country=t,localStorage.setItem("chart",this.country),this.id=n,r.emit("getChartTracks",this.id)},setTracklist(e){this.chart=e},changeCountry(){this.country="",this.id=0},initCharts(e){if(this.countries=e,this.country=localStorage.getItem("chart")||"",!this.country)return;let t=0;for(;t({tracks:[],albums:[],artists:[],playlists:[],spotifyPlaylists:[]}),methods:{artistView:nc.bind(null,"artist"),albumView:nc.bind(null,"album"),playlistView:nc.bind(null,"playlist"),spotifyPlaylistView:nc.bind(null,"spotifyplaylist"),playPausePreview:Qu.playPausePreview,previewMouseEnter:Qu.previewMouseEnter,previewMouseLeave:Qu.previewMouseLeave,convertDuration:Ju.convertDuration,addToQueue(e){e.stopPropagation(),b.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){T.open(e.currentTarget.dataset.link)},updated_userSpotifyPlaylists(e){this.spotifyPlaylists=e},updated_userPlaylists(e){this.playlists=e},updated_userAlbums(e){this.albums=e},updated_userArtist(e){this.artists=e},updated_userTracks(e){this.tracks=e},reloadTabs(){this.$refs.reloadButton.classList.add("spin"),r.emit("update_userFavorites"),localStorage.getItem("spotifyUser")&&r.emit("update_userSpotifyPlaylists",localStorage.getItem("spotifyUser"))},updated_userFavorites(e){const{tracks:t,albums:n,artists:r,playlists:i}=e;this.tracks=t,this.albums=n,this.artists=r,this.playlists=i,this.$refs.reloadButton.classList.remove("spin")},initFavorites(e){this.updated_userFavorites(e),document.getElementById("favorites_playlist_tab").click()}},mounted(){r.on("init_favorites",this.initFavorites),r.on("updated_userFavorites",this.updated_userFavorites),r.on("updated_userSpotifyPlaylists",this.updated_userSpotifyPlaylists),r.on("updated_userPlaylists",this.updated_userPlaylists),r.on("updated_userAlbums",this.updated_userAlbums),r.on("updated_userArtist",this.updated_userArtist),r.on("updated_userTracks",this.updated_userTracks)}}).$mount("#favorites_tab"),new po({data:()=>({settings:{tags:{}},lastSettings:{},spotifyFeatures:{},lastCredentials:{},defaultSettings:{},lastUser:"",spotifyUser:"",slimDownloads:!1,previewVolume:window.vol,accountNum:0,accounts:[]}),computed:{changeSlimDownloads:{get(){return this.slimDownloads},set(e){this.slimDownloads=e,document.getElementById("download_list").classList.toggle("slim",e),localStorage.setItem("slimDownloads",e)}}},methods:{copyARLtoClipboard(){let e=this.$refs.loginInput;e.setAttribute("type","text"),e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),e.setAttribute("type","password"),a("ARL copied to clipboard","assignment")},updateMaxVolume(){localStorage.setItem("previewVolume",this.previewVolume.preview_max_volume)},saveSettings(){this.lastSettings={...this.settings},this.lastCredentials={...this.spotifyFeatures};let e=!1;this.lastUser!=this.spotifyUser&&(this.lastUser=(" "+this.spotifyUser).slice(1),localStorage.setItem("spotifyUser",this.lastUser),e=!0),r.emit("saveSettings",this.lastSettings,this.lastCredentials,!!e&&this.lastUser)},loadSettings(e,t,n=null){n&&(this.defaultSettings={...n}),this.lastSettings={...e},this.lastCredentials={...t},this.settings=e,this.spotifyFeatures=t},login(){let e=this.$refs.loginInput.value.trim();""!=e&&e!=localStorage.getItem("arl")&&r.emit("login",e,!0,this.accountNum)},changeAccount(){r.emit("changeAccount",this.accountNum)},accountChanged(e,t){this.$refs.username.innerText=e.name,this.$refs.userpicture.src=`https://e-cdns-images.dzcdn.net/images/user/${e.picture}/125x125-000000-80-0-0.jpg`,this.accountNum=t,localStorage.setItem("accountNum",this.accountNum)},initAccounts(e){this.accounts=e},logout(){r.emit("logout")},initSettings(e,t,n){this.loadSettings(e,t,n),a("Settings loaded!","settings")},updateSettings(e,t){this.loadSettings(e,t),a("Settings updated!","settings")},resetSettings(){this.settings={...this.defaultSettings}}},mounted(){this.$refs.loggedInInfo.classList.add("hide"),localStorage.getItem("arl")&&(this.$refs.loginInput.value=localStorage.getItem("arl").trim()),localStorage.getItem("accountNum")&&(this.accountNum=localStorage.getItem("accountNum"));let e=localStorage.getItem("spotifyUser");e&&(this.lastUser=e,this.spotifyUser=e,r.emit("update_userSpotifyPlaylists",e)),this.changeSlimDownloads="true"===localStorage.getItem("slimDownloads");let t=parseInt(localStorage.getItem("previewVolume"));isNaN(t)&&(t=80,localStorage.setItem("previewVolume",t)),window.vol.preview_max_volume=t,r.on("init_settings",this.initSettings),r.on("updateSettings",this.updateSettings),r.on("accountChanged",this.accountChanged),r.on("familyAccounts",this.initAccounts)}}).$mount("#settings_tab")),ec=new po({data:{names:{TOP_RESULT:"Top Result",TRACK:"Tracks",ARTIST:"Artists",ALBUM:"Albums",PLAYLIST:"Playlists"},results:{query:"",allTab:{ORDER:[],TOP_RESULT:[],ALBUM:{},ARTIST:{},TRACK:{},PLAYLIST:{}},trackTab:{data:[],next:0,total:0,loaded:!1},albumTab:{data:[],next:0,total:0,loaded:!1},artistTab:{data:[],next:0,total:0,loaded:!1},playlistTab:{data:[],next:0,total:0,loaded:!1}}},methods:{artistView:nc.bind(null,"artist"),albumView:nc.bind(null,"album"),playlistView:nc.bind(null,"playlist"),playPausePreview:Qu.playPausePreview,previewMouseEnter:Qu.previewMouseEnter,previewMouseLeave:Qu.previewMouseLeave,handleClickTopResult(e){switch(this.results.allTab.TOP_RESULT[0].type){case"artist":this.artistView(e);break;case"album":this.albumView(e);break;case"playlist":this.playlistView(e)}},changeSearchTab(e){if("TOP_RESULT"===e)return;let t;switch(e){case"TRACK":t="search_track_tab";break;case"ALBUM":t="search_album_tab";break;case"ARTIST":t="search_artist_tab";break;case"PLAYLIST":t="search_playlist_tab"}document.getElementById(t).click()},addToQueue(e){b.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){T.open(e.currentTarget.dataset.link)},numberWithDots:Ju.numberWithDots,convertDuration:Ju.convertDuration,search(e){r.emit("search",{term:this.results.query,type:e,start:this.results[e+"Tab"].next,nb:30})},scrolledSearch(e){let t=e+"Tab";this.results[t].next{e.style.transition="all 200ms ease-in-out"}),document.documentElement.addEventListener("transitionend",(function e(){document.querySelectorAll("*").forEach(e=>{e.style.transition=""}),document.documentElement.removeEventListener("transitionend",e)}))}}function ic(e){const{target:t,target:{id:n}}=e;switch(n){case"search_all_tab":ac(t,"search","main_search");break;case"search_track_tab":ac(t,"search","track_search");break;case"search_album_tab":ac(t,"search","album_search");break;case"search_artist_tab":ac(t,"search","artist_search");break;case"search_playlist_tab":ac(t,"search","playlist_search")}}function oc(e){const{target:t,target:{id:n}}=e;switch(n){case"favorites_playlist_tab":ac(t,"favorites","playlist_favorites");break;case"favorites_album_tab":ac(t,"favorites","album_favorites");break;case"favorites_artist_tab":ac(t,"favorites","artist_favorites");break;case"favorites_track_tab":ac(t,"favorites","track_favorites")}}function ac(e,t,n){var r,i,o;for(windows_stack=[],tc={},i=document.getElementsByClassName(t+"_tabcontent"),r=0;r{e.addEventListener("click",lc)})},changeTab:ac,showView:nc,analyzeLink:function(e){Yu.reset(),r.emit("analyzeLink",e)}};function cc(e){let t=e.target;t.scrollTop+t.clientHeight>=t.scrollHeight&&"search_tab"===main_selected&&-1!=["track_search","album_search","artist_search","playlist_search"].indexOf(search_selected)&&ec.scrolledSearch(search_selected.split("_")[0])}function dc(e){if(13!==e.keyCode)return;let t=this.value;if(Ju.isValidURL(t))e.ctrlKey?T.open(t):"analyzer_tab"==window.main_selected?uc.analyzeLink(t):b.sendAddToQueue(t);else{if(""===t)return;t!==ec.results.query||"search_tab"==main_selected?(document.getElementById("search_tab_content").style.display="none",r.emit("mainSearch",{term:t})):(document.getElementById("search_tab_content").style.display="block",document.getElementById("main_search_tablink").click())}}var fc={linkListeners:function(){document.getElementById("content").addEventListener("scroll",Ju.debounce(cc,100)),document.getElementById("searchbar").addEventListener("keyup",dc)}};document.addEventListener("DOMContentLoaded",(function(){!function(){let e=localStorage.getItem("selectedTheme");if(e){let t="theme_toggler--active";document.querySelector("."+t).classList.remove(t),document.querySelector(`.theme_toggler[data-theme-variant="${e}"]`).classList.add(t)}}(),b.init(),T.init(),uc.init(),fc.linkListeners(),Qu.init()})),window.addEventListener("pywebviewready",(function(){window.clientMode=!0,document.querySelector("#open_downloads_folder").classList.remove("hide")})),r.on("message",(function(e){console.log(e)})),r.on("logging_in",(function(){a("Logging in","loading",!1,"login-toast")})),r.on("init_autologin",(function(){let e=localStorage.getItem("arl"),t=localStorage.getItem("accountNum");e&&(e=e.trim(),0!=t?r.emit("login",e,!0,t):r.emit("login",e))})),r.on("logged_in",(function(e){switch(e.status){case 1:case 3:a("Logged in","done",!0,"login-toast"),e.arl&&(localStorage.setItem("arl",e.arl),n("#login_input_arl").val(e.arl)),n("#open_login_prompt").hide(),e.user&&(n("#settings_username").text(e.user.name),n("#settings_picture").attr("src",`https://e-cdns-images.dzcdn.net/images/user/${e.user.picture}/125x125-000000-80-0-0.jpg`),document.getElementById("logged_in_info").classList.remove("hide")),document.getElementById("home_not_logged_in").classList.add("hide");break;case 2:a("Already logged in","done",!0,"login-toast"),e.user&&(n("#settings_username").text(e.user.name),n("#settings_picture").attr("src",`https://e-cdns-images.dzcdn.net/images/user/${e.user.picture}/125x125-000000-80-0-0.jpg`),document.getElementById("logged_in_info").classList.remove("hide")),document.getElementById("home_not_logged_in").classList.add("hide");break;case 0:a("Couldn't log in","close",!0,"login-toast"),localStorage.removeItem("arl"),n("#login_input_arl").val(""),n("#open_login_prompt").show(),document.getElementById("logged_in_info").classList.add("hide"),n("#settings_username").text("Not Logged"),n("#settings_picture").attr("src","https://e-cdns-images.dzcdn.net/images/user/125x125-000000-80-0-0.jpg"),document.getElementById("home_not_logged_in").classList.remove("hide")}})),r.on("logged_out",(function(){a("Logged out","done",!0,"login-toast"),localStorage.removeItem("arl"),n("#login_input_arl").val(""),n("#open_login_prompt").show(),document.getElementById("logged_in_info").classList.add("hide"),n("#settings_username").text("Not Logged"),n("#settings_picture").attr("src","https://e-cdns-images.dzcdn.net/images/user/125x125-000000-80-0-0.jpg"),document.getElementById("home_not_logged_in").classList.remove("hide")})),r.on("cancellingCurrentItem",(function(e){a("Cancelling current item.","loading",!1,"cancelling_"+e)})),r.on("currentItemCancelled",(function(e){a("Current item cancelled.","done",!0,"cancelling_"+e)})),r.on("startAddingArtist",(function(e){a(`Adding ${e.name} albums to queue`,"loading",!1,"artist_"+e.id)})),r.on("finishAddingArtist",(function(e){a(`Added ${e.name} albums to queue`,"done",!0,"artist_"+e.id)})),r.on("startConvertingSpotifyPlaylist",(function(e){a("Converting spotify tracks to deezer tracks","loading",!1,"spotifyplaylist_"+e)})),r.on("finishConvertingSpotifyPlaylist",(function(e){a("Spotify playlist converted","done",!0,"spotifyplaylist_"+e)})),r.on("errorMessage",(function(e){a(e,"error")})),r.on("alreadyInQueue",(function(e){a(e.title+" is already in queue!","playlist_add_check")})); +var Ut=Object.freeze({});function Vt(e){return null==e}function Wt(e){return null!=e}function Gt(e){return!0===e}function Kt(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function Qt(e){return null!==e&&"object"==typeof e}var Jt=Object.prototype.toString;function Xt(e){return"[object Object]"===Jt.call(e)}function Yt(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function Zt(e){return Wt(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function en(e){return null==e?"":Array.isArray(e)||Xt(e)&&e.toString===Jt?JSON.stringify(e,null,2):String(e)}function tn(e){var t=parseFloat(e);return isNaN(t)?e:t}function nn(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var sn=Object.prototype.hasOwnProperty;function ln(e,t){return sn.call(e,t)}function un(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var cn=/-(\w)/g,dn=un((function(e){return e.replace(cn,(function(e,t){return t?t.toUpperCase():""}))})),fn=un((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),pn=/\B([A-Z])/g,hn=un((function(e){return e.replace(pn,"-$1").toLowerCase()}));var vn=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function mn(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function gn(e,t){for(var n in t)e[n]=t[n];return e}function yn(e){for(var t={},n=0;n0,Fn=Pn&&Pn.indexOf("edge/")>0,qn=(Pn&&Pn.indexOf("android"),Pn&&/iphone|ipad|ipod|ios/.test(Pn)||"ios"===Mn),Hn=(Pn&&/chrome\/\d+/.test(Pn),Pn&&/phantomjs/.test(Pn),Pn&&Pn.match(/firefox\/(\d+)/)),zn={}.watch,Un=!1;if(Dn)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){Un=!0}}),window.addEventListener("test-passive",null,Vn)}catch(e){}var Wn=function(){return void 0===Ln&&(Ln=!Dn&&!In&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),Ln},Gn=Dn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Kn(e){return"function"==typeof e&&/native code/.test(e.toString())}var Qn,Jn="undefined"!=typeof Symbol&&Kn(Symbol)&&"undefined"!=typeof Reflect&&Kn(Reflect.ownKeys);Qn="undefined"!=typeof Set&&Kn(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 Xn=bn,Yn=0,Zn=function(){this.id=Yn++,this.subs=[]};Zn.prototype.addSub=function(e){this.subs.push(e)},Zn.prototype.removeSub=function(e){an(this.subs,e)},Zn.prototype.depend=function(){Zn.target&&Zn.target.addDep(this)},Zn.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(o&&!ln(i,"default"))a=!1;else if(""===a||a===hn(e)){var l=Or(String,i.type);(l<0||s0&&(Zr((i=e(i,(n||"")+"_"+r))[0])&&Zr(a)&&(s[o]=ar(a.text+i[0].text),i.shift()),s.push.apply(s,i)):Kt(i)?Zr(a)?s[o]=ar(a.text+i):""!==i&&s.push(ar(i)):Zr(i)&&Zr(a)?s[o]=ar(a.text+i.text):(Gt(t._isVList)&&Wt(i.tag)&&Vt(i.key)&&Wt(n)&&(i.key="__vlist"+n+"_"+r+"__"),s.push(i)));return s}(e):void 0}function Zr(e){return Wt(e)&&Wt(e.text)&&!1===e.isComment}function ei(e,t){if(e){for(var n=Object.create(null),r=Jn?Reflect.ownKeys(e):Object.keys(e),i=0;i0,o=e?!!e.$stable:!i,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==Ut&&a===n.$key&&!i&&!n.$hasNormal)return n;for(var s in r={},e)e[s]&&"$"!==s[0]&&(r[s]=ii(t,s,e[s]))}else r={};for(var l in t)l in r||(r[l]=oi(t,l));return e&&Object.isExtensible(e)&&(e._normalized=r),On(r,"$stable",o),On(r,"$key",a),On(r,"$hasNormal",i),r}function ii(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:Yr(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function oi(e,t){return function(){return e[t]}}function ai(e,t){var n,r,i,o,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;rdocument.createEvent("Event").timeStamp&&(Ji=function(){return Xi.now()})}function Yi(){var e,t;for(Qi=Ji(),Gi=!0,zi.sort((function(e,t){return e.id-t.id})),Ki=0;KiKi&&zi[n].id>e.id;)n--;zi.splice(n+1,0,e)}else zi.push(e);Wi||(Wi=!0,Ur(Yi))}}(this)},eo.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||Qt(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){jr(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},eo.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},eo.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},eo.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||an(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var to={enumerable:!0,configurable:!0,get:bn,set:bn};function no(e,t,n){to.get=function(){return this[t][n]},to.set=function(e){this[t][n]=e},Object.defineProperty(e,n,to)}function ro(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&fr(!1);var o=function(o){i.push(o);var a=Ar(o,t,n,e);vr(r,o,a),o in e||no(e,"_props",o)};for(var a in t)o(a);fr(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?bn:vn(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;Xt(t=e._data="function"==typeof t?function(e,t){tr();try{return e.call(t,t)}catch(e){return jr(e,t,"data()"),{}}finally{nr()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&ln(r,o)||$n(o)||no(e,"_data",o)}hr(t,!0)}(e):hr(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Wn();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new eo(e,a||bn,bn,oo)),i in e||ao(e,i,o)}}(e,t.computed),t.watch&&t.watch!==zn&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===Jt.call(n)&&e.test(t));var n}function go(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=vo(a.componentOptions);s&&!t(s)&&yo(n,o,r,i)}}}function yo(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,an(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=co++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.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)}(t,e):t.$options=Cr(fo(t.constructor),e||{},t),t._renderProxy=t,t._self=t,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}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Pi(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=ti(t._renderChildren,r),e.$scopedSlots=Ut,e._c=function(t,n,r,i){return Ei(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ei(e,t,n,r,i,!0)};var i=n&&n.data;vr(e,"$attrs",i&&i.attrs||Ut,null,!0),vr(e,"$listeners",t._parentListeners||Ut,null,!0)}(t),Hi(t,"beforeCreate"),function(e){var t=ei(e.$options.inject,e);t&&(fr(!1),Object.keys(t).forEach((function(n){vr(e,n,t[n])})),fr(!0))}(t),ro(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Hi(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(po),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=mr,e.prototype.$delete=gr,e.prototype.$watch=function(e,t,n){if(Xt(t))return uo(this,e,t,n);(n=n||{}).user=!0;var r=new eo(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){jr(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(po),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?mn(n):n;for(var r=mn(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;oparseInt(this.max)&&yo(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return An}};Object.defineProperty(e,"config",t),e.util={warn:Xn,extend:gn,mergeOptions:Cr,defineReactive:vr},e.set=mr,e.delete=gr,e.nextTick=Ur,e.observable=function(e){return hr(e),e},e.options=Object.create(null),Cn.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,gn(e.options.components,_o),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=mn(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=Cr(this.options,e),this}}(e),ho(e),function(e){Cn.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&Xt(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)}(po),Object.defineProperty(po.prototype,"$isServer",{get:Wn}),Object.defineProperty(po.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(po,"FunctionalRenderContext",{value:wi}),po.version="2.6.11";var wo=nn("style,class"),xo=nn("input,textarea,option,select,progress"),To=function(e,t,n){return"value"===n&&xo(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},ko=nn("contenteditable,draggable,spellcheck"),Co=nn("events,caret,typing,plaintext-only"),So=nn("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"),Ao="http://www.w3.org/1999/xlink",Eo=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},$o=function(e){return Eo(e)?e.slice(6,e.length):""},Oo=function(e){return null==e||!1===e};function jo(e){for(var t=e.data,n=e,r=e;Wt(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Lo(r.data,t));for(;Wt(n=n.parent);)n&&n.data&&(t=Lo(t,n.data));return function(e,t){if(Wt(e)||Wt(t))return No(e,Do(t));return""}(t.staticClass,t.class)}function Lo(e,t){return{staticClass:No(e.staticClass,t.staticClass),class:Wt(e.class)?[e.class,t.class]:t.class}}function No(e,t){return e?t?e+" "+t:e:t||""}function Do(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?oa(e,t,n):So(t)?Oo(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):ko(t)?e.setAttribute(t,function(e,t){return Oo(t)||"false"===t?"false":"contenteditable"===e&&Co(t)?t:"true"}(t,n)):Eo(t)?Oo(n)?e.removeAttributeNS(Ao,$o(t)):e.setAttributeNS(Ao,t,n):oa(e,t,n)}function oa(e,t,n){if(Oo(n))e.removeAttribute(t);else{if(Rn&&!Bn&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var aa={create:ra,update:ra};function sa(e,t){var n=t.elm,r=t.data,i=e.data;if(!(Vt(r.staticClass)&&Vt(r.class)&&(Vt(i)||Vt(i.staticClass)&&Vt(i.class)))){var o=jo(t),a=n._transitionClasses;Wt(a)&&(o=No(o,Do(a))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var la,ua,ca,da,fa,pa,ha={create:sa,update:sa},va=/[\w).+\-_$\]]/;function ma(e){var t,n,r,i,o,a=!1,s=!1,l=!1,u=!1,c=0,d=0,f=0,p=0;for(r=0;r=0&&" "===(v=e.charAt(h));h--);v&&va.test(v)||(u=!0)}}else void 0===i?(p=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(p,r).trim()),p=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==p&&m(),o)for(r=0;r-1?{exp:e.slice(0,da),key:'"'+e.slice(da+1)+'"'}:{exp:e,key:null};ua=e,da=fa=pa=0;for(;!Na();)Da(ca=La())?Ma(ca):91===ca&&Ia(ca);return{exp:e.slice(0,fa),key:e.slice(fa+1,pa)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function La(){return ua.charCodeAt(++da)}function Na(){return da>=la}function Da(e){return 34===e||39===e}function Ia(e){var t=1;for(fa=da;!Na();)if(Da(e=La()))Ma(e);else if(91===e&&t++,93===e&&t--,0===t){pa=da;break}}function Ma(e){for(var t=e;!Na()&&(e=La())!==t;);}var Pa;function Ra(e,t,n){var r=Pa;return function i(){var o=t.apply(null,arguments);null!==o&&qa(e,i,n,r)}}var Ba=Mr&&!(Hn&&Number(Hn[1])<=53);function Fa(e,t,n,r){if(Ba){var i=Qi,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Pa.addEventListener(e,t,Un?{capture:n,passive:r}:n)}function qa(e,t,n,r){(r||Pa).removeEventListener(e,t._wrapper||t,n)}function Ha(e,t){if(!Vt(e.data.on)||!Vt(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Pa=t.elm,function(e){if(Wt(e.__r)){var t=Rn?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}Wt(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),Qr(n,r,Fa,qa,Ra,t.context),Pa=void 0}}var za,Ua={create:Ha,update:Ha};function Va(e,t){if(!Vt(e.data.domProps)||!Vt(t.data.domProps)){var n,r,i=t.elm,o=e.data.domProps||{},a=t.data.domProps||{};for(n in Wt(a.__ob__)&&(a=t.data.domProps=gn({},a)),o)n in a||(i[n]="");for(n in a){if(r=a[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===o[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var s=Vt(r)?"":String(r);Wa(i,s)&&(i.value=s)}else if("innerHTML"===n&&Po(i.tagName)&&Vt(i.innerHTML)){(za=za||document.createElement("div")).innerHTML=""+r+"";for(var l=za.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}else if(r!==o[n])try{i[n]=r}catch(e){}}}}function Wa(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 n=e.value,r=e._vModifiers;if(Wt(r)){if(r.number)return tn(n)!==tn(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Ga={create:Va,update:Va},Ka=un((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Qa(e){var t=Ja(e.style);return e.staticStyle?gn(e.staticStyle,t):t}function Ja(e){return Array.isArray(e)?yn(e):"string"==typeof e?Ka(e):e}var Xa,Ya=/^--/,Za=/\s*!important$/,es=function(e,t,n){if(Ya.test(t))e.style.setProperty(t,n);else if(Za.test(n))e.style.setProperty(hn(t),n.replace(Za,""),"important");else{var r=ns(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(os).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 ss(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(os).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")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function ls(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&gn(t,us(e.name||"v")),gn(t,e),t}return"string"==typeof e?us(e):void 0}}var us=un((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"}})),cs=Dn&&!Bn,ds="transition",fs="transitionend",ps="animation",hs="animationend";cs&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ds="WebkitTransition",fs="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ps="WebkitAnimation",hs="webkitAnimationEnd"));var vs=Dn?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ms(e){vs((function(){vs(e)}))}function gs(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),as(e,t))}function ys(e,t){e._transitionClasses&&an(e._transitionClasses,t),ss(e,t)}function bs(e,t,n){var r=ws(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s="transition"===i?fs:hs,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=a&&u()};setTimeout((function(){l0&&(n="transition",c=a,d=o.length):"animation"===t?u>0&&(n="animation",c=u,d=l.length):d=(n=(c=Math.max(a,u))>0?a>u?"transition":"animation":null)?"transition"===n?o.length:l.length:0,{type:n,timeout:c,propCount:d,hasTransform:"transition"===n&&_s.test(r[ds+"Property"])}}function xs(e,t){for(;e.length1}function Es(e,t){!0!==t.data.show&&ks(t)}var $s=function(e){var t,n,r={},i=e.modules,o=e.nodeOps;for(t=0;tf?h(e,Vt(n[g+1])?null:n[g+1].elm,n,d,g,r):d>g&&m(t,c,f)}(u,p,v,n,l):Wt(v)?(Wt(e.text)&&o.setTextContent(u,""),h(u,null,v,0,v.length-1,n)):Wt(p)?m(p,0,p.length-1):Wt(e.text)&&o.setTextContent(u,""):e.text!==t.text&&o.setTextContent(u,t.text),Wt(f)&&Wt(c=f.hook)&&Wt(c=c.postpatch)&&c(e,t)}}}function _(e,t,n){if(Gt(n)&&Wt(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(xn(Ds(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Ns(e,t){return t.every((function(t){return!xn(t,e)}))}function Ds(e){return"_value"in e?e._value:e.value}function Is(e){e.target.composing=!0}function Ms(e){e.target.composing&&(e.target.composing=!1,Ps(e.target,"input"))}function Ps(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Rs(e){return!e.componentInstance||e.data&&e.data.transition?e:Rs(e.componentInstance._vnode)}var Bs={model:Os,show:{bind:function(e,t,n){var r=t.value,i=(n=Rs(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ks(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Rs(n)).data&&n.data.transition?(n.data.show=!0,r?ks(n,(function(){e.style.display=e.__vOriginalDisplay})):Cs(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Fs={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 qs(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?qs(Ni(t.children)):e}function Hs(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[dn(o)]=i[o];return t}function zs(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Us=function(e){return e.tag||Li(e)},Vs=function(e){return"show"===e.name},Ws={name:"transition",props:Fs,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Us)).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=qs(i);if(!o)return i;if(this._leaving)return zs(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:Kt(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Hs(this),l=this._vnode,u=qs(l);if(o.data.directives&&o.data.directives.some(Vs)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!Li(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var c=u.data.transition=gn({},s);if("out-in"===r)return this._leaving=!0,Jr(c,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),zs(e,i);if("in-out"===r){if(Li(o))return l;var d,f=function(){d()};Jr(s,"afterEnter",f),Jr(s,"enterCancelled",f),Jr(c,"delayLeave",(function(e){d=e}))}}return i}}},Gs=gn({tag:String,moveClass:String},Fs);function Ks(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Qs(e){e.data.newPos=e.elm.getBoundingClientRect()}function Js(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Gs.mode;var Xs={Transition:Ws,TransitionGroup:{props:Gs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Bi(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Hs(this),s=0;s-1?Fo[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Fo[e]=/HTMLUnknownElement/.test(t.toString())},gn(po.options.directives,Bs),gn(po.options.components,Xs),po.prototype.__patch__=Dn?$s:bn,po.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=or),Hi(e,"beforeMount"),r=function(){e._update(e._render(),n)},new eo(e,r,bn,{before:function(){e._isMounted&&!e._isDestroyed&&Hi(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Hi(e,"mounted")),e}(this,e=e&&Dn?Ho(e):void 0,t)},Dn&&setTimeout((function(){An.devtools&&Gn&&Gn.emit("init",po)}),0);var Ys=/\{\{((?:.|\r?\n)+?)\}\}/g,Zs=/[-.*+?^${}()|[\]\/\\]/g,el=un((function(e){var t=e[0].replace(Zs,"\\$&"),n=e[1].replace(Zs,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var tl={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Aa(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Sa(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var nl,rl={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Aa(e,"style");n&&(e.staticStyle=JSON.stringify(Ka(n)));var r=Sa(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},il=function(e){return(nl=nl||document.createElement("div")).innerHTML=e,nl.textContent},ol=nn("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),al=nn("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),sl=nn("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"),ll=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ul=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,cl="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+En.source+"]*",dl="((?:"+cl+"\\:)?"+cl+")",fl=new RegExp("^<"+dl),pl=/^\s*(\/?)>/,hl=new RegExp("^<\\/"+dl+"[^>]*>"),vl=/^]+>/i,ml=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},wl=/&(?:lt|gt|quot|amp|#39);/g,xl=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Tl=nn("pre,textarea",!0),kl=function(e,t){return e&&Tl(e)&&"\n"===t[0]};function Cl(e,t){var n=t?xl:wl;return e.replace(n,(function(e){return _l[e]}))}var Sl,Al,El,$l,Ol,jl,Ll,Nl,Dl=/^@|^v-on:/,Il=/^v-|^@|^:|^#/,Ml=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Pl=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Rl=/^\(|\)$/g,Bl=/^\[.*\]$/,Fl=/:(.*)$/,ql=/^:|^\.|^v-bind:/,Hl=/\.[^.\]]+(?=[^\]]*$)/g,zl=/^v-slot(:|$)|^#/,Ul=/[\r\n]/,Vl=/\s+/g,Wl=un(il);function Gl(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:eu(t),rawAttrsMap:{},parent:n,children:[]}}function Kl(e,t){Sl=t.warn||ya,jl=t.isPreTag||_n,Ll=t.mustUseProp||_n,Nl=t.getTagNamespace||_n;t.isReservedTag;El=ba(t.modules,"transformNode"),$l=ba(t.modules,"preTransformNode"),Ol=ba(t.modules,"postTransformNode"),Al=t.delimiters;var n,r,i=[],o=!1!==t.preserveWhitespace,a=t.whitespace,s=!1,l=!1;function u(e){if(c(e),s||e.processed||(e=Ql(e,t)),i.length||e===n||n.if&&(e.elseif||e.else)&&Xl(n,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)a=e,(u=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(r.children))&&u.if&&Xl(u,{exp:a.elseif,block:a});else{if(e.slotScope){var o=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[o]=e}r.children.push(e),e.parent=r}var a,u;e.children=e.children.filter((function(e){return!e.slotScope})),c(e),e.pre&&(s=!1),jl(e.tag)&&(l=!1);for(var d=0;d]*>)","i")),f=e.replace(d,(function(e,n,r){return u=r.length,yl(c)||"noscript"===c||(n=n.replace(//g,"$1").replace(//g,"$1")),kl(c,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));l+=e.length-f.length,e=f,S(c,l-u,l)}else{var p=e.indexOf("<");if(0===p){if(ml.test(e)){var h=e.indexOf("--\x3e");if(h>=0){t.shouldKeepComment&&t.comment(e.substring(4,h),l,l+h+3),T(h+3);continue}}if(gl.test(e)){var v=e.indexOf("]>");if(v>=0){T(v+2);continue}}var m=e.match(vl);if(m){T(m[0].length);continue}var g=e.match(hl);if(g){var y=l;T(g[0].length),S(g[1],y,l);continue}var b=k();if(b){C(b),kl(b.tagName,e)&&T(1);continue}}var _=void 0,w=void 0,x=void 0;if(p>=0){for(w=e.slice(p);!(hl.test(w)||fl.test(w)||ml.test(w)||gl.test(w)||(x=w.indexOf("<",1))<0);)p+=x,w=e.slice(p);_=e.substring(0,p)}p<0&&(_=e),_&&T(_.length),t.chars&&_&&t.chars(_,l-_.length,l)}if(e===n){t.chars&&t.chars(e);break}}function T(t){l+=t,e=e.substring(t)}function k(){var t=e.match(fl);if(t){var n,r,i={tagName:t[1],attrs:[],start:l};for(T(t[0].length);!(n=e.match(pl))&&(r=e.match(ul)||e.match(ll));)r.start=l,T(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],T(n[0].length),i.end=l,i}}function C(e){var n=e.tagName,l=e.unarySlash;o&&("p"===r&&sl(n)&&S(r),s(n)&&r===n&&S(n));for(var u=a(n)||!!l,c=e.attrs.length,d=new Array(c),f=0;f=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}S()}(e,{warn:Sl,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,c,d){var f=r&&r.ns||Nl(e);Rn&&"svg"===f&&(o=function(e){for(var t=[],n=0;nl&&(s.push(o=e.slice(l,i)),a.push(JSON.stringify(o)));var u=ma(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),l=i+r[0].length}return l-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Ca(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+ja(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+ja(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+ja(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Sa(e,"value")||"null";_a(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Ca(e,"change",ja(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,l=!o&&"range"!==r,u=o?"change":"range"===r?"__r":"input",c="$event.target.value";s&&(c="$event.target.value.trim()");a&&(c="_n("+c+")");var d=ja(t,c);l&&(d="if($event.target.composing)return;"+d);_a(e,"value","("+t+")"),Ca(e,u,d,null,!0),(s||a)&&Ca(e,"blur","$forceUpdate()")}(e,r,i);else if(!An.isReservedTag(o))return Oa(e,r,i),!1;return!0},text:function(e,t){t.value&&_a(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&_a(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:ol,mustUseProp:To,canBeLeftOpenTag:al,isReservedTag:Ro,getTagNamespace:Bo,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(iu)},lu=un((function(e){return nn("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function uu(e,t){e&&(ou=lu(t.staticKeys||""),au=t.isReservedTag||_n,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||rn(e.tag)||!au(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(ou)))}(t),1===t.type){if(!au(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,du=/\([^)]*?\);*$/,fu=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,pu={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},hu={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"]},vu=function(e){return"if("+e+")return null;"},mu={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:vu("$event.target !== $event.currentTarget"),ctrl:vu("!$event.ctrlKey"),shift:vu("!$event.shiftKey"),alt:vu("!$event.altKey"),meta:vu("!$event.metaKey"),left:vu("'button' in $event && $event.button !== 0"),middle:vu("'button' in $event && $event.button !== 1"),right:vu("'button' in $event && $event.button !== 2")};function gu(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=yu(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function yu(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return yu(e)})).join(",")+"]";var t=fu.test(e.value),n=cu.test(e.value),r=fu.test(e.value.replace(du,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(mu[s])o+=mu[s],pu[s]&&a.push(s);else if("exact"===s){var l=e.modifiers;o+=vu(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(bu).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function bu(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=pu[e],r=hu[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var _u={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:bn},wu=function(e){this.options=e,this.warn=e.warn||ya,this.transforms=ba(e.modules,"transformCode"),this.dataGenFns=ba(e.modules,"genData"),this.directives=gn(gn({},_u),e.directives);var t=e.isReservedTag||_n;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function xu(e,t){var n=new wu(t);return{render:"with(this){return "+(e?Tu(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Tu(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return ku(e,t);if(e.once&&!e.onceProcessed)return Cu(e,t);if(e.for&&!e.forProcessed)return Au(e,t);if(e.if&&!e.ifProcessed)return Su(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=ju(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Du((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:dn(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:ju(t,n,!0);return"_c("+e+","+Eu(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Eu(e,t));var i=e.inlineTemplate?null:ju(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=xu(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Du(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function $u(e){return 1===e.type&&("slot"===e.tag||e.children.some($u))}function Ou(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Su(e,t,Ou,"null");if(e.for&&!e.forProcessed)return Au(e,t,Ou);var r="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(ju(e,t)||"undefined")+":undefined":ju(e,t)||"undefined":Tu(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function ju(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Tu)(a,t)+s}var l=n?function(e,t){for(var n=0,r=0;r':'
',Bu.innerHTML.indexOf(" ")>0}var Hu=!!Dn&&qu(!1),zu=!!Dn&&qu(!0),Uu=un((function(e){var t=Ho(e);return t&&t.innerHTML})),Vu=po.prototype.$mount;po.prototype.$mount=function(e,t){if((e=e&&Ho(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Uu(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=Fu(r,{outputSourceRange:!1,shouldDecodeNewlines:Hu,shouldDecodeNewlinesForHref:zu,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Vu.call(this,e,t)},po.compile=Fu;const Wu=new po({data:()=>({currentTab:"",sortKey:"release_date",sortOrder:"desc",title:"",image:"",type:"",link:"",head:null,body:null}),methods:{albumView:nc.bind(null,"album"),reset(){this.title="Loading...",this.image="",this.type="",this.currentTab="",this.sortKey="release_date",this.sortOrder="desc",this.link="",this.head=[],this.body=null},addToQueue(e){e.stopPropagation(),b.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){T.open(e.currentTarget.dataset.link)},sortBy(e){e==this.sortKey?this.sortOrder="asc"==this.sortOrder?"desc":"asc":(this.sortKey=e,this.sortOrder="asc")},changeTab(e){this.currentTab=e},getCurrentTab(){return this.currentTab},checkNewRelease(e){let t=new Date,n=new Date(e);return n.setDate(n.getDate()+3),t.setHours(0,0,0,0),t.getTime()<=n.getTime()},showArtist(e){const{name:t,picture_xl:n,id:r,releases:i}=e;this.title=t,this.image=n,this.type="Artist",this.link="https://www.deezer.com/artist/"+r,""===this.currentTab&&(this.currentTab=Object.keys(i)[0]),this.sortKey="release_date",this.sortOrder="desc",this.head=[{title:"Title",sortKey:"title"},{title:"Release Date",sortKey:"release_date"},{title:"",width:"32px"}],qt(i)?this.body=null:this.body=i}},computed:{showTable(){return this.body?(e=this.body[this.currentTab],t=this.sortKey,n=this.sortOrder,null==e?[]:(R(t)||(t=null==t?[]:[t]),R(n=r?void 0:n)||(n=null==n?[]:[n]),zt(e,t,n))):[];var e,t,n,r}},mounted(){r.on("show_artist",this.showArtist)}}).$mount("#artist_tab");window.vol={preview_max_volume:100};let Gu=document.getElementById("preview-track"),Ku=!0;var Qu={init:function(){Gu.volume=1,Gu.addEventListener("canplay",(function(){Gu.play(),Ku=!1,n(Gu).animate({volume:vol.preview_max_volume/100},500)})),Gu.addEventListener("timeupdate",(function(){Gu.currentTime>Gu.duration-1&&(n(Gu).animate({volume:0},800),Ku=!0,n("a[playing] > .preview_controls").css({opacity:0}),n("*").removeAttr("playing"),n(".preview_controls").text("play_arrow"),n(".preview_playlist_controls").text("play_arrow"))}))},stopStackedTabsPreview:function(){n(".preview_playlist_controls").filter((function(){return n(this).attr("playing")})).length>0&&(n(Gu).animate({volume:0},800),Ku=!0,n(".preview_playlist_controls").removeAttr("playing"),n(".preview_playlist_controls").text("play_arrow"))},previewMouseEnter:function(e){n(e.currentTarget).css({opacity:1})},previewMouseLeave:function(e){const{currentTarget:t}=e;(n(t).parent().attr("playing")&&Ku||!n(t).parent().attr("playing"))&&n(t).css({opacity:0},200)},playPausePreview:function(e){e.preventDefault();const{currentTarget:t}=event;var r="I"==t.tagName?n(t):n(t).children("i");n(t).attr("playing")?Gu.paused?(Gu.play(),Ku=!1,r.text("pause"),n(Gu).animate({volume:vol.preview_max_volume/100},500)):(Ku=!0,r.text("play_arrow"),n(Gu).animate({volume:0},250,"swing",()=>{Gu.pause()})):(n("*").removeAttr("playing"),n(t).attr("playing",!0),n(".preview_controls").text("play_arrow"),n(".preview_playlist_controls").text("play_arrow"),n(".preview_controls").css({opacity:0}),r.text("pause"),r.css({opacity:1}),Ku=!1,n(Gu).animate({volume:0},250,"swing",()=>{Gu.pause(),n("#preview-track_source").prop("src",n(t).data("preview")),Gu.load()}))}};var Ju={isValidURL:function(e){let t=e.toLowerCase();if(t.startsWith("http")){if(t.indexOf("deezer.com")>=0||t.indexOf("open.spotify.com")>=0)return!0}else if(t.startsWith("spotify:"))return!0;return!1},convertDuration:function(e){let t,n;return t=Math.floor(e/60),n=e-60*t,n<10&&(n="0"+n),t+":"+n},convertDurationSeparated:function(e){let t,n,r;return n=Math.floor(e/60),t=Math.floor(n/60),r=e-60*n,n-=60*t,[t,n,r]},numberWithDots:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")},debounce:function(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}},COUNTRIES:{AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia, Plurinational State of",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo, the Democratic Republic of the",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See (Vatican City State)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran, Islamic Republic of",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea, Democratic People's Republic of",KR:"Korea, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia, the Former Yugoslav Republic of",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthélemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan, Province of China",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela, Bolivarian Republic of",VN:"Viet Nam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"}};const Xu=new po({data:()=>({title:"",metadata:"",release_date:"",label:"",explicit:!1,image:"",type:"",link:"",body:[]}),methods:{artistView:nc.bind(null,"artist"),albumView:nc.bind(null,"album"),playPausePreview:Qu.playPausePreview,reset(){this.title="Loading...",this.image="",this.metadata="",this.label="",this.release_date="",this.explicit=!1,this.type="",this.body=[]},addToQueue(e){b.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){T.open(e.currentTarget.dataset.link)},toggleAll(e){this.body.forEach(t=>{"track"==t.type&&(t.selected=e.currentTarget.checked)})},selectedLinks(){var e=[];return this.body&&this.body.forEach(t=>{"track"==t.type&&t.selected&&e.push("Spotify Playlist"==this.type?t.uri:t.link)}),e.join(";")},convertDuration:Ju.convertDuration,showAlbum(e){const{id:t,title:n,explicit_lyrics:r,label:i,artist:{name:o},tracks:a,tracks:{length:s},release_date:l,cover_xl:u}=e;this.type="Album",this.link="https://www.deezer.com/album/"+t,this.title=n,this.explicit=r,this.label=i,this.metadata=`${o} • ${s} songs`,this.release_date=l.substring(0,10),this.image=u,qt(a)?this.body=null:this.body=a},showPlaylist(e){const{id:t,title:n,picture_xl:r,creation_date:i,creator:{name:o},tracks:a,tracks:{length:s}}=e;this.type="Playlist",this.link="https://www.deezer.com/playlist/"+t,this.title=n,this.image=r,this.release_date=i.substring(0,10),this.metadata=`by ${o} • ${s} songs`,qt(a)?this.body=null:this.body=a},showSpotifyPlaylist(e){const{uri:t,name:n,images:r,images:{length:i},owner:{display_name:o},tracks:a,tracks:{length:s}}=e;this.type="Spotify Playlist",this.link=t,this.title=n,this.image=i?r[0].url:"https://e-cdns-images.dzcdn.net/images/cover/d41d8cd98f00b204e9800998ecf8427e/1000x1000-000000-80-0-0.jpg",this.release_date="",this.metadata=`by ${o} • ${s} songs`,qt(a)?this.body=null:this.body=a}},mounted(){r.on("show_album",this.showAlbum),r.on("show_playlist",this.showPlaylist),r.on("show_spotifyplaylist",this.showSpotifyPlaylist)}}).$mount("#tracklist_tab"),Yu=new po({data:()=>({title:"",subtitle:"",image:"",data:{},type:"",link:"",id:"0",countries:[]}),methods:{artistView:nc.bind(null,"artist"),albumView:nc.bind(null,"album"),convertDuration:Ju.convertDuration,reset(){this.title="Loading...",this.subtitle="",this.image="",this.data={},this.type="",this.link="",this.countries=[]},showTrack(e){const{title:t,title_version:n,album:{cover_xl:r},link:i,available_countries:o,id:a}=e;this.title=t+(n&&-1==t.indexOf(n)?" "+n:""),this.image=r,this.type="track",this.link=i,this.id=a,o.forEach(e=>{let t=[],n=[...e].map(e=>e.charCodeAt()+127397);t.push(String.fromCodePoint(...n)),t.push(Ju.COUNTRIES[e]),this.countries.push(t)}),this.data=e},showAlbum(e){const{title:t,cover_xl:n,link:r,id:i}=e;this.title=t,this.image=n,this.type="album",this.link=r,this.data=e,this.id=i},notSupported(){this.link="error"}},mounted(){r.on("analyze_track",this.showTrack),r.on("analyze_album",this.showAlbum),r.on("analyze_notSupported",this.notSupported)}}).$mount("#analyzer_tab"),Zu=(new po({data:()=>({playlists:[],albums:[]}),methods:{artistView:nc.bind(null,"artist"),albumView:nc.bind(null,"album"),playlistView:nc.bind(null,"playlist"),openSettings(){document.getElementById("main_settings_tablink").click()},addToQueue(e){b.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){T.open(e.currentTarget.dataset.link)},initHome(e){const{playlists:{data:t},albums:{data:n}}=e;this.playlists=t,this.albums=n}},mounted(){localStorage.getItem("arl")&&this.$refs.notLogged.classList.add("hide"),r.on("init_home",this.initHome)}}).$mount("#home_tab"),new po({data:()=>({country:"",id:0,countries:[],chart:[]}),methods:{artistView:nc.bind(null,"artist"),albumView:nc.bind(null,"album"),playPausePreview:Qu.playPausePreview,previewMouseEnter:Qu.previewMouseEnter,previewMouseLeave:Qu.previewMouseLeave,convertDuration:Ju.convertDuration,addToQueue(e){e.stopPropagation(),b.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){T.open(e.currentTarget.dataset.link)},getTrackList(e){document.getElementById("content").scrollTo(0,0);const{currentTarget:{dataset:{title:t}},currentTarget:{dataset:{id:n}}}=e;this.country=t,localStorage.setItem("chart",this.country),this.id=n,r.emit("getChartTracks",this.id)},setTracklist(e){this.chart=e},changeCountry(){this.country="",this.id=0},initCharts(e){if(this.countries=e,this.country=localStorage.getItem("chart")||"",!this.country)return;let t=0;for(;t({tracks:[],albums:[],artists:[],playlists:[],spotifyPlaylists:[]}),methods:{artistView:nc.bind(null,"artist"),albumView:nc.bind(null,"album"),playlistView:nc.bind(null,"playlist"),spotifyPlaylistView:nc.bind(null,"spotifyplaylist"),playPausePreview:Qu.playPausePreview,previewMouseEnter:Qu.previewMouseEnter,previewMouseLeave:Qu.previewMouseLeave,convertDuration:Ju.convertDuration,addToQueue(e){e.stopPropagation(),b.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){T.open(e.currentTarget.dataset.link)},updated_userSpotifyPlaylists(e){this.spotifyPlaylists=e},updated_userPlaylists(e){this.playlists=e},updated_userAlbums(e){this.albums=e},updated_userArtist(e){this.artists=e},updated_userTracks(e){this.tracks=e},reloadTabs(){this.$refs.reloadButton.classList.add("spin"),r.emit("update_userFavorites"),localStorage.getItem("spotifyUser")&&r.emit("update_userSpotifyPlaylists",localStorage.getItem("spotifyUser"))},updated_userFavorites(e){const{tracks:t,albums:n,artists:r,playlists:i}=e;this.tracks=t,this.albums=n,this.artists=r,this.playlists=i,this.$refs.reloadButton.classList.remove("spin")},initFavorites(e){this.updated_userFavorites(e),document.getElementById("favorites_playlist_tab").click()}},mounted(){r.on("init_favorites",this.initFavorites),r.on("updated_userFavorites",this.updated_userFavorites),r.on("updated_userSpotifyPlaylists",this.updated_userSpotifyPlaylists),r.on("updated_userPlaylists",this.updated_userPlaylists),r.on("updated_userAlbums",this.updated_userAlbums),r.on("updated_userArtist",this.updated_userArtist),r.on("updated_userTracks",this.updated_userTracks)}}).$mount("#favorites_tab"),new po({data:()=>({settings:{tags:{}},lastSettings:{},spotifyFeatures:{},lastCredentials:{},defaultSettings:{},lastUser:"",spotifyUser:"",slimDownloads:!1,previewVolume:window.vol,accountNum:0,accounts:[]}),computed:{changeSlimDownloads:{get(){return this.slimDownloads},set(e){this.slimDownloads=e,document.getElementById("download_list").classList.toggle("slim",e),localStorage.setItem("slimDownloads",e)}}},methods:{copyARLtoClipboard(){let e=this.$refs.loginInput;e.setAttribute("type","text"),e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),e.setAttribute("type","password"),a("ARL copied to clipboard","assignment")},updateMaxVolume(){localStorage.setItem("previewVolume",this.previewVolume.preview_max_volume)},saveSettings(){this.lastSettings={...this.settings},this.lastCredentials={...this.spotifyFeatures};let e=!1;this.lastUser!=this.spotifyUser&&(this.lastUser=(" "+this.spotifyUser).slice(1),localStorage.setItem("spotifyUser",this.lastUser),e=!0),r.emit("saveSettings",this.lastSettings,this.lastCredentials,!!e&&this.lastUser)},loadSettings(e,t,n=null){n&&(this.defaultSettings={...n}),this.lastSettings={...e},this.lastCredentials={...t},this.settings=e,this.spotifyFeatures=t},login(){let e=this.$refs.loginInput.value.trim();""!=e&&e!=localStorage.getItem("arl")&&r.emit("login",e,!0,this.accountNum)},changeAccount(){r.emit("changeAccount",this.accountNum)},accountChanged(e,t){this.$refs.username.innerText=e.name,this.$refs.userpicture.src=`https://e-cdns-images.dzcdn.net/images/user/${e.picture}/125x125-000000-80-0-0.jpg`,this.accountNum=t,localStorage.setItem("accountNum",this.accountNum)},initAccounts(e){this.accounts=e},logout(){r.emit("logout")},initSettings(e,t,n){this.loadSettings(e,t,n),a("Settings loaded!","settings")},updateSettings(e,t){this.loadSettings(e,t),a("Settings updated!","settings")},resetSettings(){this.settings={...this.defaultSettings}}},mounted(){this.$refs.loggedInInfo.classList.add("hide"),localStorage.getItem("arl")&&(this.$refs.loginInput.value=localStorage.getItem("arl").trim()),localStorage.getItem("accountNum")&&(this.accountNum=localStorage.getItem("accountNum"));let e=localStorage.getItem("spotifyUser");e&&(this.lastUser=e,this.spotifyUser=e,r.emit("update_userSpotifyPlaylists",e)),this.changeSlimDownloads="true"===localStorage.getItem("slimDownloads");let t=parseInt(localStorage.getItem("previewVolume"));isNaN(t)&&(t=80,localStorage.setItem("previewVolume",t)),window.vol.preview_max_volume=t,r.on("init_settings",this.initSettings),r.on("updateSettings",this.updateSettings),r.on("accountChanged",this.accountChanged),r.on("familyAccounts",this.initAccounts)}}).$mount("#settings_tab")),ec=new po({data:{names:{TOP_RESULT:"Top Result",TRACK:"Tracks",ARTIST:"Artists",ALBUM:"Albums",PLAYLIST:"Playlists"},results:{query:"",allTab:{ORDER:[],TOP_RESULT:[],ALBUM:{},ARTIST:{},TRACK:{},PLAYLIST:{}},trackTab:{data:[],next:0,total:0,loaded:!1},albumTab:{data:[],next:0,total:0,loaded:!1},artistTab:{data:[],next:0,total:0,loaded:!1},playlistTab:{data:[],next:0,total:0,loaded:!1}}},methods:{artistView:nc.bind(null,"artist"),albumView:nc.bind(null,"album"),playlistView:nc.bind(null,"playlist"),playPausePreview:Qu.playPausePreview,previewMouseEnter:Qu.previewMouseEnter,previewMouseLeave:Qu.previewMouseLeave,handleClickTopResult(e){switch(this.results.allTab.TOP_RESULT[0].type){case"artist":this.artistView(e);break;case"album":this.albumView(e);break;case"playlist":this.playlistView(e)}},changeSearchTab(e){if("TOP_RESULT"===e)return;let t;switch(e){case"TRACK":t="search_track_tab";break;case"ALBUM":t="search_album_tab";break;case"ARTIST":t="search_artist_tab";break;case"PLAYLIST":t="search_playlist_tab"}document.getElementById(t).click()},addToQueue(e){b.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){T.open(e.currentTarget.dataset.link)},numberWithDots:Ju.numberWithDots,convertDuration:Ju.convertDuration,search(e){r.emit("search",{term:this.results.query,type:e,start:this.results[e+"Tab"].next,nb:30})},scrolledSearch(e){let t=e+"Tab";this.results[t].next{e.style.transition="all 200ms ease-in-out"}),document.documentElement.addEventListener("transitionend",(function e(){document.querySelectorAll("*").forEach(e=>{e.style.transition=""}),document.documentElement.removeEventListener("transitionend",e)}))}}function ic(e){const{target:t,target:{id:n}}=e;switch(n){case"search_all_tab":ac(t,"search","main_search");break;case"search_track_tab":ac(t,"search","track_search");break;case"search_album_tab":ac(t,"search","album_search");break;case"search_artist_tab":ac(t,"search","artist_search");break;case"search_playlist_tab":ac(t,"search","playlist_search")}}function oc(e){const{target:t,target:{id:n}}=e;switch(n){case"favorites_playlist_tab":ac(t,"favorites","playlist_favorites");break;case"favorites_album_tab":ac(t,"favorites","album_favorites");break;case"favorites_artist_tab":ac(t,"favorites","artist_favorites");break;case"favorites_track_tab":ac(t,"favorites","track_favorites")}}function ac(e,t,n){var r,i,o;for(windows_stack=[],tc={},i=document.getElementsByClassName(t+"_tabcontent"),r=0;r{e.addEventListener("click",lc)})},changeTab:ac,showView:nc,analyzeLink:function(e){Yu.reset(),r.emit("analyzeLink",e)}};function cc(e){let t=e.target;t.scrollTop+t.clientHeight>=t.scrollHeight&&"search_tab"===main_selected&&-1!=["track_search","album_search","artist_search","playlist_search"].indexOf(search_selected)&&ec.scrolledSearch(search_selected.split("_")[0])}function dc(e){if(13!==e.keyCode)return;let t=this.value;if(Ju.isValidURL(t))e.ctrlKey?T.open(t):"analyzer_tab"==window.main_selected?uc.analyzeLink(t):b.sendAddToQueue(t);else{if(""===t)return;t!==ec.results.query||"search_tab"==main_selected?(document.getElementById("search_tab_content").style.display="none",r.emit("mainSearch",{term:t})):(document.getElementById("search_tab_content").style.display="block",document.getElementById("main_search_tablink").click())}}var fc={linkListeners:function(){document.getElementById("content").addEventListener("scroll",Ju.debounce(cc,100)),document.getElementById("searchbar").addEventListener("keyup",dc)}};document.addEventListener("DOMContentLoaded",(function(){!function(){let e=localStorage.getItem("selectedTheme");if(e){let t="theme_toggler--active";document.querySelector("."+t).classList.remove(t),document.querySelector(`.theme_toggler[data-theme-variant="${e}"]`).classList.add(t)}}(),b.init(),T.init(),uc.init(),fc.linkListeners(),Qu.init()})),window.addEventListener("pywebviewready",(function(){window.clientMode=!0,document.querySelector("#open_downloads_folder").classList.remove("hide")})),r.on("message",(function(e){console.log(e)})),r.on("logging_in",(function(){a("Logging in","loading",!1,"login-toast")})),r.on("init_autologin",(function(){let e=localStorage.getItem("arl"),t=localStorage.getItem("accountNum");e&&(e=e.trim(),0!=t?r.emit("login",e,!0,t):r.emit("login",e))})),r.on("logged_in",(function(e){switch(e.status){case 1:case 3:a("Logged in","done",!0,"login-toast"),e.arl&&(localStorage.setItem("arl",e.arl),n("#login_input_arl").val(e.arl)),n("#open_login_prompt").hide(),e.user&&(n("#settings_username").text(e.user.name),n("#settings_picture").attr("src",`https://e-cdns-images.dzcdn.net/images/user/${e.user.picture}/125x125-000000-80-0-0.jpg`),document.getElementById("logged_in_info").classList.remove("hide")),document.getElementById("home_not_logged_in").classList.add("hide");break;case 2:a("Already logged in","done",!0,"login-toast"),e.user&&(n("#settings_username").text(e.user.name),n("#settings_picture").attr("src",`https://e-cdns-images.dzcdn.net/images/user/${e.user.picture}/125x125-000000-80-0-0.jpg`),document.getElementById("logged_in_info").classList.remove("hide")),document.getElementById("home_not_logged_in").classList.add("hide");break;case 0:a("Couldn't log in","close",!0,"login-toast"),localStorage.removeItem("arl"),n("#login_input_arl").val(""),n("#open_login_prompt").show(),document.getElementById("logged_in_info").classList.add("hide"),n("#settings_username").text("Not Logged"),n("#settings_picture").attr("src","https://e-cdns-images.dzcdn.net/images/user/125x125-000000-80-0-0.jpg"),document.getElementById("home_not_logged_in").classList.remove("hide")}})),r.on("logged_out",(function(){a("Logged out","done",!0,"login-toast"),localStorage.removeItem("arl"),n("#login_input_arl").val(""),n("#open_login_prompt").show(),document.getElementById("logged_in_info").classList.add("hide"),n("#settings_username").text("Not Logged"),n("#settings_picture").attr("src","https://e-cdns-images.dzcdn.net/images/user/125x125-000000-80-0-0.jpg"),document.getElementById("home_not_logged_in").classList.remove("hide")})),r.on("cancellingCurrentItem",(function(e){a("Cancelling current item.","loading",!1,"cancelling_"+e)})),r.on("currentItemCancelled",(function(e){a("Current item cancelled.","done",!0,"cancelling_"+e)})),r.on("startAddingArtist",(function(e){a(`Adding ${e.name} albums to queue`,"loading",!1,"artist_"+e.id)})),r.on("finishAddingArtist",(function(e){a(`Added ${e.name} albums to queue`,"done",!0,"artist_"+e.id)})),r.on("startConvertingSpotifyPlaylist",(function(e){a("Converting spotify tracks to deezer tracks","loading",!1,"spotifyplaylist_"+e)})),r.on("finishConvertingSpotifyPlaylist",(function(e){a("Spotify playlist converted","done",!0,"spotifyplaylist_"+e)})),r.on("errorMessage",(function(e){a(e,"error")})),r.on("alreadyInQueue",(function(e){a(e.title+" is already in queue!","playlist_add_check")})); diff --git a/src/js/modules/components/artist-tab.js b/src/js/modules/components/artist-tab.js index da10f35..14bc849 100644 --- a/src/js/modules/components/artist-tab.js +++ b/src/js/modules/components/artist-tab.js @@ -50,6 +50,9 @@ const ArtistTab = new Vue({ changeTab(tab) { this.currentTab = tab }, + getCurrentTab() { + return this.currentTab + }, checkNewRelease(date) { let g1 = new Date() let g2 = new Date(date) @@ -65,7 +68,7 @@ const ArtistTab = new Vue({ this.image = picture_xl this.type = 'Artist' this.link = `https://www.deezer.com/artist/${id}` - this.currentTab = Object.keys(releases)[0] + if (this.currentTab === '') this.currentTab = Object.keys(releases)[0] this.sortKey = 'release_date' this.sortOrder = 'desc' this.head = [ diff --git a/src/js/modules/tabs.js b/src/js/modules/tabs.js index 9288279..f4c88ad 100644 --- a/src/js/modules/tabs.js +++ b/src/js/modules/tabs.js @@ -238,6 +238,7 @@ function showTab(type, id, back = false) { if (windows_stack.length == 0) { windows_stack.push({ tab: main_selected }) } else if (!back) { + if (currentStack.type === 'artist') currentStack.selected = ArtistTab.getCurrentTab() windows_stack.push(currentStack) } @@ -258,10 +259,12 @@ function backTab() { document.getElementById(`main_${main_selected}link`).click() } else { // Retrieving tab type and tab id - let { type, id } = windows_stack.pop() + let data = windows_stack.pop() + let { type, id } = data if (type === 'artist') { ArtistTab.reset() + if (data.selected) ArtistTab.changeTab(data.selected) } else { TracklistTab.reset() }