diff --git a/README.md b/README.md index 6b3673d..54c8c0a 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,9 @@ This is just the WebUI for deemix, it should be used with deemix-pyweb or someth - Use Vue as much as possible - First step: rewrite the app in Single File Components way ✅ - - Second step: Implement routing for the whole app using Vue Router - - Third step: Remove jQuery + - Second step: Implement custom contextmenu + - Third step: Implement routing for the whole app using Vue Router + - Fourth step: Remove jQuery - Make i18n async (https://kazupon.github.io/vue-i18n/guide/lazy-loading.html) - Use ES2020 async imports, if possible - Make the UI look coherent diff --git a/public/js/bundle.js b/public/js/bundle.js index d4848cf..07c7265 100644 --- a/public/js/bundle.js +++ b/public/js/bundle.js @@ -3,12 +3,12 @@ * (c) 2014-2019 Evan You * Released under the MIT License. */ -var t=Object.freeze({});function e(t){return null==t}function n(t){return null!=t}function a(t){return!0===t}function r(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function i(t){return null!==t&&"object"==typeof t}var s=Object.prototype.toString;function o(t){return"[object Object]"===s.call(t)}function l(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function c(t){return n(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function u(t){return null==t?"":Array.isArray(t)||o(t)&&t.toString===s?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function p(t,e){for(var n=Object.create(null),a=t.split(","),r=0;r-1)return t.splice(n,1)}}var m=Object.prototype.hasOwnProperty;function g(t,e){return m.call(t,e)}function _(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var y=/-(\w)/g,b=_((function(t){return t.replace(y,(function(t,e){return e?e.toUpperCase():""}))})),w=_((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),A=/\B([A-Z])/g,k=_((function(t){return t.replace(A,"-$1").toLowerCase()}));var C=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var a=arguments.length;return a?a>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function x(t,e){e=e||0;for(var n=t.length-e,a=new Array(n);n--;)a[n]=t[n+e];return a}function T(t,e){for(var n in e)t[n]=e[n];return t}function $(t){for(var e={},n=0;n0,K=W&&W.indexOf("edge/")>0,Y=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===V),J=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/)),X={}.watch,Z=!1;if(U)try{var tt={};Object.defineProperty(tt,"passive",{get:function(){Z=!0}}),window.addEventListener("test-passive",null,tt)}catch(t){}var et=function(){return void 0===q&&(q=!U&&!H&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),q},nt=U&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"==typeof t&&/native code/.test(t.toString())}var rt,it="undefined"!=typeof Symbol&&at(Symbol)&&"undefined"!=typeof Reflect&&at(Reflect.ownKeys);rt="undefined"!=typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var st=S,ot=0,lt=function(){this.id=ot++,this.subs=[]};lt.prototype.addSub=function(t){this.subs.push(t)},lt.prototype.removeSub=function(t){v(this.subs,t)},lt.prototype.depend=function(){lt.target&<.target.addDep(this)},lt.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(i&&!g(r,"default"))s=!1;else if(""===s||s===k(t)){var l=jt(String,r.type);(l<0||o0&&(le((l=t(l,(s||"")+"_"+o))[0])&&le(u)&&(d[c]=vt(u.text+l[0].text),l.shift()),d.push.apply(d,l)):r(l)?le(u)?d[c]=vt(u.text+l):""!==l&&d.push(vt(l)):le(l)&&le(u)?d[c]=vt(u.text+l.text):(a(i._isVList)&&n(l.tag)&&e(l.key)&&n(s)&&(l.key="__vlist"+s+"_"+o+"__"),d.push(l)));return d}(t):void 0}function le(t){return n(t)&&n(t.text)&&!1===t.isComment}function ce(t,e){if(t){for(var n=Object.create(null),a=it?Reflect.ownKeys(t):Object.keys(t),r=0;r0,s=e?!!e.$stable:!i,o=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&a&&a!==t&&o===a.$key&&!i&&!a.$hasNormal)return a;for(var l in r={},e)e[l]&&"$"!==l[0]&&(r[l]=fe(n,l,e[l]))}else r={};for(var c in n)c in r||(r[c]=he(n,c));return e&&Object.isExtensible(e)&&(e._normalized=r),j(r,"$stable",s),j(r,"$key",o),j(r,"$hasNormal",i),r}function fe(t,e,n){var a=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:oe(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:a,enumerable:!0,configurable:!0}),a}function he(t,e){return function(){return t[e]}}function ve(t,e){var a,r,s,o,l;if(Array.isArray(t)||"string"==typeof t)for(a=new Array(t.length),r=0,s=t.length;rdocument.createEvent("Event").timeStamp&&(sn=function(){return on.now()})}function ln(){var t,e;for(rn=sn(),nn=!0,Xe.sort((function(t,e){return t.id-e.id})),an=0;anan&&Xe[n].id>t.id;)n--;Xe.splice(n+1,0,t)}else Xe.push(t);en||(en=!0,Zt(ln))}}(this)},un.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||i(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Bt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},un.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},un.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},un.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var dn={enumerable:!0,configurable:!0,get:S,set:S};function pn(t,e,n){dn.get=function(){return this[e][n]},dn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,dn)}function fn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},a=t._props={},r=t.$options._propKeys=[];t.$parent&&wt(!1);var i=function(i){r.push(i);var s=Rt(i,e,n,t);Ct(a,i,s),i in t||pn(t,"_props",i)};for(var s in e)i(s);wt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?S:C(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;o(e=t._data="function"==typeof e?function(t,e){ut();try{return t.call(e,e)}catch(t){return Bt(t,e,"data()"),{}}finally{dt()}}(e,t):e||{})||(e={});var n=Object.keys(e),a=t.$options.props,r=(t.$options.methods,n.length);for(;r--;){var i=n[r];a&&g(a,i)||M(i)||pn(t,"_data",i)}kt(e,!0)}(t):kt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),a=et();for(var r in e){var i=e[r],s="function"==typeof i?i:i.get;a||(n[r]=new un(t,s||S,S,hn)),r in t||vn(t,r,i)}}(t,e.computed),e.watch&&e.watch!==X&&function(t,e){for(var n in e){var a=e[n];if(Array.isArray(a))for(var r=0;r-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,"[object RegExp]"===s.call(n)&&t.test(e));var n}function xn(t,e){var n=t.cache,a=t.keys,r=t._vnode;for(var i in n){var s=n[i];if(s){var o=kn(s.componentOptions);o&&!e(o)&&Tn(n,i,a,r)}}}function Tn(t,e,n,a){var r=t[e];!r||a&&r.tag===a.tag||r.componentInstance.$destroy(),t[e]=null,v(n,e)}!function(e){e.prototype._init=function(e){var n=this;n._uid=yn++,n._isVue=!0,e&&e._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),a=e._parentVnode;n.parent=e.parent,n._parentVnode=a;var r=a.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(n,e):n.$options=It(bn(n.constructor),e||{},n),n._renderProxy=n,n._self=n,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(n),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&We(t,e)}(n),function(e){e._vnode=null,e._staticTrees=null;var n=e.$options,a=e.$vnode=n._parentVnode,r=a&&a.context;e.$slots=ue(n._renderChildren,r),e.$scopedSlots=t,e._c=function(t,n,a,r){return Fe(e,t,n,a,r,!1)},e.$createElement=function(t,n,a,r){return Fe(e,t,n,a,r,!0)};var i=a&&a.data;Ct(e,"$attrs",i&&i.attrs||t,null,!0),Ct(e,"$listeners",n._parentListeners||t,null,!0)}(n),Je(n,"beforeCreate"),function(t){var e=ce(t.$options.inject,t);e&&(wt(!1),Object.keys(e).forEach((function(n){Ct(t,n,e[n])})),wt(!0))}(n),fn(n),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(n),Je(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(wn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=xt,t.prototype.$delete=Tt,t.prototype.$watch=function(t,e,n){if(o(e))return _n(this,t,e,n);(n=n||{}).user=!0;var a=new un(this,t,e,n);if(n.immediate)try{e.call(this,a.value)}catch(t){Bt(t,this,'callback for immediate watcher "'+a.expression+'"')}return function(){a.teardown()}}}(wn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var a=this;if(Array.isArray(t))for(var r=0,i=t.length;r1?x(n):n;for(var a=x(arguments,1),r='event handler for "'+t+'"',i=0,s=n.length;iparseInt(this.max)&&Tn(s,o[0],o,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return R}};Object.defineProperty(t,"config",e),t.util={warn:st,extend:T,mergeOptions:It,defineReactive:Ct},t.set=xt,t.delete=Tt,t.nextTick=Zt,t.observable=function(t){return kt(t),t},t.options=Object.create(null),I.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,T(t.options.components,Sn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=x(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=It(this.options,t),this}}(t),An(t),function(t){I.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&o(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(wn),Object.defineProperty(wn.prototype,"$isServer",{get:et}),Object.defineProperty(wn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wn,"FunctionalRenderContext",{value:Ee}),wn.version="2.6.11";var Ln=p("style,class"),En=p("input,textarea,option,select,progress"),Nn=function(t,e,n){return"value"===n&&En(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Dn=p("contenteditable,draggable,spellcheck"),Pn=p("events,caret,typing,plaintext-only"),In=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),On="http://www.w3.org/1999/xlink",Rn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Fn=function(t){return Rn(t)?t.slice(6,t.length):""},Mn=function(t){return null==t||!1===t};function jn(t){for(var e=t.data,a=t,r=t;n(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Bn(r.data,e));for(;n(a=a.parent);)a&&a.data&&(e=Bn(e,a.data));return function(t,e){if(n(t)||n(e))return qn(t,zn(e));return""}(e.staticClass,e.class)}function Bn(t,e){return{staticClass:qn(t.staticClass,e.staticClass),class:n(t.class)?[t.class,e.class]:e.class}}function qn(t,e){return t?e?t+" "+e:t:e||""}function zn(t){return Array.isArray(t)?function(t){for(var e,a="",r=0,i=t.length;r-1?fa(t,e,n):In(e)?Mn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Dn(e)?t.setAttribute(e,function(t,e){return Mn(e)||"false"===e?"false":"contenteditable"===t&&Pn(e)?e:"true"}(e,n)):Rn(e)?Mn(n)?t.removeAttributeNS(On,Fn(e)):t.setAttributeNS(On,e,n):fa(t,e,n)}function fa(t,e,n){if(Mn(n))t.removeAttribute(e);else{if(Q&&!G&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var a=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",a)};t.addEventListener("input",a),t.__ieph=!0}t.setAttribute(e,n)}}var ha={create:da,update:da};function va(t,a){var r=a.elm,i=a.data,s=t.data;if(!(e(i.staticClass)&&e(i.class)&&(e(s)||e(s.staticClass)&&e(s.class)))){var o=jn(a),l=r._transitionClasses;n(l)&&(o=qn(o,zn(l))),o!==r._prevClass&&(r.setAttribute("class",o),r._prevClass=o)}}var ma,ga,_a,ya,ba,wa,Aa={create:va,update:va},ka=/[\w).+\-_$\]]/;function Ca(t){var e,n,a,r,i,s=!1,o=!1,l=!1,c=!1,u=0,d=0,p=0,f=0;for(a=0;a=0&&" "===(v=t.charAt(h));h--);v&&ka.test(v)||(c=!0)}}else void 0===r?(f=a+1,r=t.slice(0,a).trim()):m();function m(){(i||(i=[])).push(t.slice(f,a).trim()),f=a+1}if(void 0===r?r=t.slice(0,a).trim():0!==f&&m(),i)for(a=0;a-1?{exp:t.slice(0,ya),key:'"'+t.slice(ya+1)+'"'}:{exp:t,key:null};ga=t,ya=ba=wa=0;for(;!qa();)za(_a=Ba())?Ha(_a):91===_a&&Ua(_a);return{exp:t.slice(0,ba),key:t.slice(ba+1,wa)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Ba(){return ga.charCodeAt(++ya)}function qa(){return ya>=ma}function za(t){return 34===t||39===t}function Ua(t){var e=1;for(ba=ya;!qa();)if(za(t=Ba()))Ha(t);else if(91===t&&e++,93===t&&e--,0===e){wa=ya;break}}function Ha(t){for(var e=t;!qa()&&(t=Ba())!==e;);}var Va;function Wa(t,e,n){var a=Va;return function r(){var i=e.apply(null,arguments);null!==i&&Ka(t,r,n,a)}}var Qa=Vt&&!(J&&Number(J[1])<=53);function Ga(t,e,n,a){if(Qa){var r=rn,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}Va.addEventListener(t,e,Z?{capture:n,passive:a}:n)}function Ka(t,e,n,a){(a||Va).removeEventListener(t,e._wrapper||e,n)}function Ya(t,a){if(!e(t.data.on)||!e(a.data.on)){var r=a.data.on||{},i=t.data.on||{};Va=a.elm,function(t){if(n(t.__r)){var e=Q?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}n(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(r),re(r,i,Ga,Ka,Wa,a.context),Va=void 0}}var Ja,Xa={create:Ya,update:Ya};function Za(t,a){if(!e(t.data.domProps)||!e(a.data.domProps)){var r,i,s=a.elm,o=t.data.domProps||{},l=a.data.domProps||{};for(r in n(l.__ob__)&&(l=a.data.domProps=T({},l)),o)r in l||(s[r]="");for(r in l){if(i=l[r],"textContent"===r||"innerHTML"===r){if(a.children&&(a.children.length=0),i===o[r])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===r&&"PROGRESS"!==s.tagName){s._value=i;var c=e(i)?"":String(i);tr(s,c)&&(s.value=c)}else if("innerHTML"===r&&Vn(s.tagName)&&e(s.innerHTML)){(Ja=Ja||document.createElement("div")).innerHTML=""+i+"";for(var u=Ja.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;u.firstChild;)s.appendChild(u.firstChild)}else if(i!==o[r])try{s[r]=i}catch(t){}}}}function tr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var a=t.value,r=t._vModifiers;if(n(r)){if(r.number)return d(a)!==d(e);if(r.trim)return a.trim()!==e.trim()}return a!==e}(t,e))}var er={create:Za,update:Za},nr=_((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var a=t.split(n);a.length>1&&(e[a[0].trim()]=a[1].trim())}})),e}));function ar(t){var e=rr(t.style);return t.staticStyle?T(t.staticStyle,e):e}function rr(t){return Array.isArray(t)?$(t):"string"==typeof t?nr(t):t}var ir,sr=/^--/,or=/\s*!important$/,lr=function(t,e,n){if(sr.test(e))t.style.setProperty(e,n);else if(or.test(n))t.style.setProperty(k(e),n.replace(or,""),"important");else{var a=ur(e);if(Array.isArray(n))for(var r=0,i=n.length;r-1?e.split(fr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function vr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(fr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",a=" "+e+" ";n.indexOf(a)>=0;)n=n.replace(a," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function mr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&T(e,gr(t.name||"v")),T(e,t),e}return"string"==typeof t?gr(t):void 0}}var gr=_((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),_r=U&&!G,yr="transition",br="transitionend",wr="animation",Ar="animationend";_r&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(yr="WebkitTransition",br="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(wr="WebkitAnimation",Ar="webkitAnimationEnd"));var kr=U?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Cr(t){kr((function(){kr(t)}))}function xr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),hr(t,e))}function Tr(t,e){t._transitionClasses&&v(t._transitionClasses,e),vr(t,e)}function $r(t,e,n){var a=Lr(t,e),r=a.type,i=a.timeout,s=a.propCount;if(!r)return n();var o="transition"===r?br:Ar,l=0,c=function(){t.removeEventListener(o,u),n()},u=function(e){e.target===t&&++l>=s&&c()};setTimeout((function(){l0&&(n="transition",u=s,d=i.length):"animation"===e?c>0&&(n="animation",u=c,d=l.length):d=(n=(u=Math.max(s,c))>0?s>c?"transition":"animation":null)?"transition"===n?i.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:"transition"===n&&Sr.test(a[yr+"Property"])}}function Er(t,e){for(;t.length1}function Rr(t,e){!0!==e.data.show&&Dr(e)}var Fr=function(t){var i,s,o={},l=t.modules,c=t.nodeOps;for(i=0;ih?y(t,e(r[g+1])?null:r[g+1].elm,r,f,g,i):f>g&&w(a,p,h)}(p,v,g,i,u):n(g)?(n(t.text)&&c.setTextContent(p,""),y(p,null,g,0,g.length-1,i)):n(v)?w(v,0,v.length-1):n(t.text)&&c.setTextContent(p,""):t.text!==r.text&&c.setTextContent(p,r.text),n(h)&&n(f=h.hook)&&n(f=f.postpatch)&&f(t,r)}}}function x(t,e,r){if(a(r)&&n(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i-1,s.selected!==i&&(s.selected=i);else if(N(zr(s),a))return void(t.selectedIndex!==o&&(t.selectedIndex=o));r||(t.selectedIndex=-1)}}function qr(t,e){return e.every((function(e){return!N(e,t)}))}function zr(t){return"_value"in t?t._value:t.value}function Ur(t){t.target.composing=!0}function Hr(t){t.target.composing&&(t.target.composing=!1,Vr(t.target,"input"))}function Vr(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Wr(t){return!t.componentInstance||t.data&&t.data.transition?t:Wr(t.componentInstance._vnode)}var Qr={model:Mr,show:{bind:function(t,e,n){var a=e.value,r=(n=Wr(n)).data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;a&&r?(n.data.show=!0,Dr(n,(function(){t.style.display=i}))):t.style.display=a?i:"none"},update:function(t,e,n){var a=e.value;!a!=!e.oldValue&&((n=Wr(n)).data&&n.data.transition?(n.data.show=!0,a?Dr(n,(function(){t.style.display=t.__vOriginalDisplay})):Pr(n,(function(){t.style.display="none"}))):t.style.display=a?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,a,r){r||(t.style.display=t.__vOriginalDisplay)}}},Gr={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 Kr(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Kr(ze(e.children)):t}function Yr(t){var e={},n=t.$options;for(var a in n.propsData)e[a]=t[a];var r=n._parentListeners;for(var i in r)e[b(i)]=r[i];return e}function Jr(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Xr=function(t){return t.tag||qe(t)},Zr=function(t){return"show"===t.name},ti={name:"transition",props:Gr,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Xr)).length){var a=this.mode,i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var s=Kr(i);if(!s)return i;if(this._leaving)return Jr(t,i);var o="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?o+"comment":o+s.tag:r(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var l=(s.data||(s.data={})).transition=Yr(this),c=this._vnode,u=Kr(c);if(s.data.directives&&s.data.directives.some(Zr)&&(s.data.show=!0),u&&u.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(s,u)&&!qe(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=T({},l);if("out-in"===a)return this._leaving=!0,ie(d,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Jr(t,i);if("in-out"===a){if(qe(s))return c;var p,f=function(){p()};ie(l,"afterEnter",f),ie(l,"enterCancelled",f),ie(d,"delayLeave",(function(t){p=t}))}}return i}}},ei=T({tag:String,moveClass:String},Gr);function ni(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ai(t){t.data.newPos=t.elm.getBoundingClientRect()}function ri(t){var e=t.data.pos,n=t.data.newPos,a=e.left-n.left,r=e.top-n.top;if(a||r){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+a+"px,"+r+"px)",i.transitionDuration="0s"}}delete ei.mode;var ii={Transition:ti,TransitionGroup:{props:ei,beforeMount:function(){var t=this,e=this._update;this._update=function(n,a){var r=Ge(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,a)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),a=this.prevChildren=this.children,r=this.$slots.default||[],i=this.children=[],s=Yr(this),o=0;o-1?Gn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Gn[t]=/HTMLUnknownElement/.test(e.toString())},T(wn.options.directives,Qr),T(wn.options.components,ii),wn.prototype.__patch__=U?Fr:S,wn.prototype.$mount=function(t,e){return function(t,e,n){var a;return t.$el=e,t.$options.render||(t.$options.render=ht),Je(t,"beforeMount"),a=function(){t._update(t._render(),n)},new un(t,a,S,{before:function(){t._isMounted&&!t._isDestroyed&&Je(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Je(t,"mounted")),t}(this,t=t&&U?Yn(t):void 0,e)},U&&setTimeout((function(){R.devtools&&nt&&nt.emit("init",wn)}),0);var si=/\{\{((?:.|\r?\n)+?)\}\}/g,oi=/[-.*+?^${}()|[\]\/\\]/g,li=_((function(t){var e=t[0].replace(oi,"\\$&"),n=t[1].replace(oi,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}));var ci={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=Oa(t,"class");n&&(t.staticClass=JSON.stringify(n));var a=Ia(t,"class",!1);a&&(t.classBinding=a)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}};var ui,di={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=Oa(t,"style");n&&(t.staticStyle=JSON.stringify(nr(n)));var a=Ia(t,"style",!1);a&&(t.styleBinding=a)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},pi=function(t){return(ui=ui||document.createElement("div")).innerHTML=t,ui.textContent},fi=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),hi=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),vi=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),mi=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,gi=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,_i="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+F.source+"]*",yi="((?:"+_i+"\\:)?"+_i+")",bi=new RegExp("^<"+yi),wi=/^\s*(\/?)>/,Ai=new RegExp("^<\\/"+yi+"[^>]*>"),ki=/^]+>/i,Ci=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Li=/&(?:lt|gt|quot|amp|#39);/g,Ei=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ni=p("pre,textarea",!0),Di=function(t,e){return t&&Ni(t)&&"\n"===e[0]};function Pi(t,e){var n=e?Ei:Li;return t.replace(n,(function(t){return Si[t]}))}var Ii,Oi,Ri,Fi,Mi,ji,Bi,qi,zi=/^@|^v-on:/,Ui=/^v-|^@|^:|^#/,Hi=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Vi=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Wi=/^\(|\)$/g,Qi=/^\[.*\]$/,Gi=/:(.*)$/,Ki=/^:|^\.|^v-bind:/,Yi=/\.[^.\]]+(?=[^\]]*$)/g,Ji=/^v-slot(:|$)|^#/,Xi=/[\r\n]/,Zi=/\s+/g,ts=_(pi);function es(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:ls(e),rawAttrsMap:{},parent:n,children:[]}}function ns(t,e){Ii=e.warn||Ta,ji=e.isPreTag||L,Bi=e.mustUseProp||L,qi=e.getTagNamespace||L;e.isReservedTag;Ri=$a(e.modules,"transformNode"),Fi=$a(e.modules,"preTransformNode"),Mi=$a(e.modules,"postTransformNode"),Oi=e.delimiters;var n,a,r=[],i=!1!==e.preserveWhitespace,s=e.whitespace,o=!1,l=!1;function c(t){if(u(t),o||t.processed||(t=as(t,e)),r.length||t===n||n.if&&(t.elseif||t.else)&&is(n,{exp:t.elseif,block:t}),a&&!t.forbidden)if(t.elseif||t.else)s=t,(c=function(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}(a.children))&&c.if&&is(c,{exp:s.elseif,block:s});else{if(t.slotScope){var i=t.slotTarget||'"default"';(a.scopedSlots||(a.scopedSlots={}))[i]=t}a.children.push(t),t.parent=a}var s,c;t.children=t.children.filter((function(t){return!t.slotScope})),u(t),t.pre&&(o=!1),ji(t.tag)&&(l=!1);for(var d=0;d]*>)","i")),p=t.replace(d,(function(t,n,a){return c=a.length,Ti(u)||"noscript"===u||(n=n.replace(//g,"$1").replace(//g,"$1")),Di(u,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));l+=t.length-p.length,t=p,T(u,l-c,l)}else{var f=t.indexOf("<");if(0===f){if(Ci.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h),l,l+h+3),k(h+3);continue}}if(xi.test(t)){var v=t.indexOf("]>");if(v>=0){k(v+2);continue}}var m=t.match(ki);if(m){k(m[0].length);continue}var g=t.match(Ai);if(g){var _=l;k(g[0].length),T(g[1],_,l);continue}var y=C();if(y){x(y),Di(y.tagName,t)&&k(1);continue}}var b=void 0,w=void 0,A=void 0;if(f>=0){for(w=t.slice(f);!(Ai.test(w)||bi.test(w)||Ci.test(w)||xi.test(w)||(A=w.indexOf("<",1))<0);)f+=A,w=t.slice(f);b=t.substring(0,f)}f<0&&(b=t),b&&k(b.length),e.chars&&b&&e.chars(b,l-b.length,l)}if(t===n){e.chars&&e.chars(t);break}}function k(e){l+=e,t=t.substring(e)}function C(){var e=t.match(bi);if(e){var n,a,r={tagName:e[1],attrs:[],start:l};for(k(e[0].length);!(n=t.match(wi))&&(a=t.match(gi)||t.match(mi));)a.start=l,k(a[0].length),a.end=l,r.attrs.push(a);if(n)return r.unarySlash=n[1],k(n[0].length),r.end=l,r}}function x(t){var n=t.tagName,l=t.unarySlash;i&&("p"===a&&vi(n)&&T(a),o(n)&&a===n&&T(n));for(var c=s(n)||!!l,u=t.attrs.length,d=new Array(u),p=0;p=0&&r[s].lowerCasedTag!==o;s--);else s=0;if(s>=0){for(var c=r.length-1;c>=s;c--)e.end&&e.end(r[c].tag,n,i);r.length=s,a=s&&r[s-1].tag}else"br"===o?e.start&&e.start(t,[],!0,n,i):"p"===o&&(e.start&&e.start(t,[],!1,n,i),e.end&&e.end(t,n,i))}T()}(t,{warn:Ii,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,i,s,u,d){var p=a&&a.ns||qi(t);Q&&"svg"===p&&(i=function(t){for(var e=[],n=0;nl&&(o.push(i=t.slice(l,r)),s.push(JSON.stringify(i)));var c=Ca(a[1].trim());s.push("_s("+c+")"),o.push({"@binding":c}),l=r+a[0].length}return l-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),Pa(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+s+");if(Array.isArray($$a)){var $$v="+(a?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+ja(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+ja(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+ja(e,"$$c")+"}",null,!0)}(t,a,r);else if("input"===i&&"radio"===s)!function(t,e,n){var a=n&&n.number,r=Ia(t,"value")||"null";Sa(t,"checked","_q("+e+","+(r=a?"_n("+r+")":r)+")"),Pa(t,"change",ja(e,r),null,!0)}(t,a,r);else if("input"===i||"textarea"===i)!function(t,e,n){var a=t.attrsMap.type,r=n||{},i=r.lazy,s=r.number,o=r.trim,l=!i&&"range"!==a,c=i?"change":"range"===a?"__r":"input",u="$event.target.value";o&&(u="$event.target.value.trim()");s&&(u="_n("+u+")");var d=ja(e,u);l&&(d="if($event.target.composing)return;"+d);Sa(t,"value","("+e+")"),Pa(t,c,d,null,!0),(o||s)&&Pa(t,"blur","$forceUpdate()")}(t,a,r);else if(!R.isReservedTag(i))return Ma(t,a,r),!1;return!0},text:function(t,e){e.value&&Sa(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Sa(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:fi,mustUseProp:Nn,canBeLeftOpenTag:hi,isReservedTag:Wn,getTagNamespace:Qn,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(ps)},ms=_((function(t){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));function gs(t,e){t&&(fs=ms(e.staticKeys||""),hs=e.isReservedTag||L,function t(e){if(e.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||f(t.tag)||!hs(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(fs)))}(e),1===e.type){if(!hs(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var n=0,a=e.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,ys=/\([^)]*?\);*$/,bs=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ws={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},As={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ks=function(t){return"if("+t+")return null;"},Cs={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ks("$event.target !== $event.currentTarget"),ctrl:ks("!$event.ctrlKey"),shift:ks("!$event.shiftKey"),alt:ks("!$event.altKey"),meta:ks("!$event.metaKey"),left:ks("'button' in $event && $event.button !== 0"),middle:ks("'button' in $event && $event.button !== 1"),right:ks("'button' in $event && $event.button !== 2")};function xs(t,e){var n=e?"nativeOn:":"on:",a="",r="";for(var i in t){var s=Ts(t[i]);t[i]&&t[i].dynamic?r+=i+","+s+",":a+='"'+i+'":'+s+","}return a="{"+a.slice(0,-1)+"}",r?n+"_d("+a+",["+r.slice(0,-1)+"])":n+a}function Ts(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Ts(t)})).join(",")+"]";var e=bs.test(t.value),n=_s.test(t.value),a=bs.test(t.value.replace(ys,""));if(t.modifiers){var r="",i="",s=[];for(var o in t.modifiers)if(Cs[o])i+=Cs[o],ws[o]&&s.push(o);else if("exact"===o){var l=t.modifiers;i+=ks(["ctrl","shift","alt","meta"].filter((function(t){return!l[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else s.push(o);return s.length&&(r+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map($s).join("&&")+")return null;"}(s)),i&&(r+=i),"function($event){"+r+(e?"return "+t.value+"($event)":n?"return ("+t.value+")($event)":a?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(a?"return "+t.value:t.value)+"}"}function $s(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=ws[t],a=As[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(a)+")"}var Ss={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:S},Ls=function(t){this.options=t,this.warn=t.warn||Ta,this.transforms=$a(t.modules,"transformCode"),this.dataGenFns=$a(t.modules,"genData"),this.directives=T(T({},Ss),t.directives);var e=t.isReservedTag||L;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Es(t,e){var n=new Ls(e);return{render:"with(this){return "+(t?Ns(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ns(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ds(t,e);if(t.once&&!t.onceProcessed)return Ps(t,e);if(t.for&&!t.forProcessed)return Os(t,e);if(t.if&&!t.ifProcessed)return Is(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',a=js(t,e),r="_t("+n+(a?","+a:""),i=t.attrs||t.dynamicAttrs?zs((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:b(t.name),value:t.value,dynamic:t.dynamic}}))):null,s=t.attrsMap["v-bind"];!i&&!s||a||(r+=",null");i&&(r+=","+i);s&&(r+=(i?"":",null")+","+s);return r+")"}(t,e);var n;if(t.component)n=function(t,e,n){var a=e.inlineTemplate?null:js(e,n,!0);return"_c("+t+","+Rs(e,n)+(a?","+a:"")+")"}(t.component,t,e);else{var a;(!t.plain||t.pre&&e.maybeComponent(t))&&(a=Rs(t,e));var r=t.inlineTemplate?null:js(t,e,!0);n="_c('"+t.tag+"'"+(a?","+a:"")+(r?","+r:"")+")"}for(var i=0;i>>0}(s):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var i=function(t,e){var n=t.children[0];if(n&&1===n.type){var a=Es(n,e.options);return"inlineTemplate:{render:function(){"+a.render+"},staticRenderFns:["+a.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);i&&(n+=i+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+zs(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Fs(t){return 1===t.type&&("slot"===t.tag||t.children.some(Fs))}function Ms(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Is(t,e,Ms,"null");if(t.for&&!t.forProcessed)return Os(t,e,Ms);var a="_empty_"===t.slotScope?"":String(t.slotScope),r="function("+a+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(js(t,e)||"undefined")+":undefined":js(t,e)||"undefined":Ns(t,e))+"}",i=a?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+r+i+"}"}function js(t,e,n,a,r){var i=t.children;if(i.length){var s=i[0];if(1===i.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var o=n?e.maybeComponent(s)?",1":",0":"";return""+(a||Ns)(s,e)+o}var l=n?function(t,e){for(var n=0,a=0;a':'
',Qs.innerHTML.indexOf(" ")>0}var Ys=!!U&&Ks(!1),Js=!!U&&Ks(!0),Xs=_((function(t){var e=Yn(t);return e&&e.innerHTML})),Zs=wn.prototype.$mount;wn.prototype.$mount=function(t,e){if((t=t&&Yn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var a=n.template;if(a)if("string"==typeof a)"#"===a.charAt(0)&&(a=Xs(a));else{if(!a.nodeType)return this;a=a.innerHTML}else t&&(a=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(a){var r=Gs(a,{outputSourceRange:!1,shouldDecodeNewlines:Ys,shouldDecodeNewlinesForHref:Js,delimiters:n.delimiters,comments:n.comments},this),i=r.render,s=r.staticRenderFns;n.render=i,n.staticRenderFns=s}}return Zs.call(this,t,e)},wn.compile=Gs;const to=io.connect(window.location.href);to.on("connect",()=>{document.getElementById("start_app_placeholder").classList.add("loading_placeholder--hidden")});var eo=new wn; +var e=Object.freeze({});function t(e){return null==e}function n(e){return null!=e}function a(e){return!0===e}function i(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function r(e){return null!==e&&"object"==typeof e}var s=Object.prototype.toString;function o(e){return"[object Object]"===s.call(e)}function l(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function c(e){return n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function u(e){return null==e?"":Array.isArray(e)||o(e)&&e.toString===s?JSON.stringify(e,null,2):String(e)}function d(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),a=e.split(","),i=0;i-1)return e.splice(n,1)}}var v=Object.prototype.hasOwnProperty;function g(e,t){return v.call(e,t)}function b(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var y=/-(\w)/g,_=b((function(e){return e.replace(y,(function(e,t){return t?t.toUpperCase():""}))})),k=b((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),w=/\B([A-Z])/g,A=b((function(e){return e.replace(w,"-$1").toLowerCase()}));var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var a=arguments.length;return a?a>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function x(e,t){t=t||0;for(var n=e.length-t,a=new Array(n);n--;)a[n]=e[n+t];return a}function T(e,t){for(var n in t)e[n]=t[n];return e}function S(e){for(var t={},n=0;n0,K=W&&W.indexOf("edge/")>0,Y=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===H),J=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/)),X={}.watch,Z=!1;if(U)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){Z=!0}}),window.addEventListener("test-passive",null,ee)}catch(e){}var te=function(){return void 0===B&&(B=!U&&!V&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),B},ne=U&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}var ie,re="undefined"!=typeof Symbol&&ae(Symbol)&&"undefined"!=typeof Reflect&&ae(Reflect.ownKeys);ie="undefined"!=typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var se=M,oe=0,le=function(){this.id=oe++,this.subs=[]};le.prototype.addSub=function(e){this.subs.push(e)},le.prototype.removeSub=function(e){m(this.subs,e)},le.prototype.depend=function(){le.target&&le.target.addDep(this)},le.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(r&&!g(i,"default"))s=!1;else if(""===s||s===A(e)){var l=Oe(String,i.type);(l<0||o0&&(lt((l=e(l,(s||"")+"_"+o))[0])&<(u)&&(d[c]=me(u.text+l[0].text),l.shift()),d.push.apply(d,l)):i(l)?lt(u)?d[c]=me(u.text+l):""!==l&&d.push(me(l)):lt(l)&<(u)?d[c]=me(u.text+l.text):(a(r._isVList)&&n(l.tag)&&t(l.key)&&n(s)&&(l.key="__vlist"+s+"_"+o+"__"),d.push(l)));return d}(e):void 0}function lt(e){return n(e)&&n(e.text)&&!1===e.isComment}function ct(e,t){if(e){for(var n=Object.create(null),a=re?Reflect.ownKeys(e):Object.keys(e),i=0;i0,s=t?!!t.$stable:!r,o=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&a&&a!==e&&o===a.$key&&!r&&!a.$hasNormal)return a;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=ht(n,l,t[l]))}else i={};for(var c in n)c in i||(i[c]=ft(n,c));return t&&Object.isExtensible(t)&&(t._normalized=i),O(i,"$stable",s),O(i,"$key",o),O(i,"$hasNormal",r),i}function ht(e,t,n){var a=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ot(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:a,enumerable:!0,configurable:!0}),a}function ft(e,t){return function(){return e[t]}}function mt(e,t){var a,i,s,o,l;if(Array.isArray(e)||"string"==typeof e)for(a=new Array(e.length),i=0,s=e.length;idocument.createEvent("Event").timeStamp&&(sn=function(){return on.now()})}function ln(){var e,t;for(rn=sn(),nn=!0,Xt.sort((function(e,t){return e.id-t.id})),an=0;anan&&Xt[n].id>e.id;)n--;Xt.splice(n+1,0,e)}else Xt.push(e);tn||(tn=!0,Ze(ln))}}(this)},un.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||r(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){je(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},un.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},un.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},un.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var dn={enumerable:!0,configurable:!0,get:M,set:M};function pn(e,t,n){dn.get=function(){return this[t][n]},dn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,dn)}function hn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},a=e._props={},i=e.$options._propKeys=[];e.$parent&&ke(!1);var r=function(r){i.push(r);var s=Ee(r,t,n,e);Ce(a,r,s),r in e||pn(e,"_props",r)};for(var s in t)r(s);ke(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?M:C(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;o(t=e._data="function"==typeof t?function(e,t){ue();try{return e.call(t,t)}catch(e){return je(e,t,"data()"),{}}finally{de()}}(t,e):t||{})||(t={});var n=Object.keys(t),a=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var r=n[i];a&&g(a,r)||F(r)||pn(e,"_data",r)}Ae(t,!0)}(e):Ae(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),a=te();for(var i in t){var r=t[i],s="function"==typeof r?r:r.get;a||(n[i]=new un(e,s||M,M,fn)),i in e||mn(e,i,r)}}(e,t.computed),t.watch&&t.watch!==X&&function(e,t){for(var n in t){var a=t[n];if(Array.isArray(a))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===s.call(n)&&e.test(t));var n}function xn(e,t){var n=e.cache,a=e.keys,i=e._vnode;for(var r in n){var s=n[r];if(s){var o=An(s.componentOptions);o&&!t(o)&&Tn(n,r,a,i)}}}function Tn(e,t,n,a){var i=e[t];!i||a&&i.tag===a.tag||i.componentInstance.$destroy(),e[t]=null,m(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=yn++,n._isVue=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),a=t._parentVnode;n.parent=t.parent,n._parentVnode=a;var i=a.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=Ne(_n(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Wt(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,a=t.$vnode=n._parentVnode,i=a&&a.context;t.$slots=ut(n._renderChildren,i),t.$scopedSlots=e,t._c=function(e,n,a,i){return It(t,e,n,a,i,!1)},t.$createElement=function(e,n,a,i){return It(t,e,n,a,i,!0)};var r=a&&a.data;Ce(t,"$attrs",r&&r.attrs||e,null,!0),Ce(t,"$listeners",n._parentListeners||e,null,!0)}(n),Jt(n,"beforeCreate"),function(e){var t=ct(e.$options.inject,e);t&&(ke(!1),Object.keys(t).forEach((function(n){Ce(e,n,t[n])})),ke(!0))}(n),hn(n),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(n),Jt(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(kn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=xe,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,n){if(o(t))return bn(this,e,t,n);(n=n||{}).user=!0;var a=new un(this,e,t,n);if(n.immediate)try{t.call(this,a.value)}catch(e){je(e,this,'callback for immediate watcher "'+a.expression+'"')}return function(){a.teardown()}}}(kn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var a=this;if(Array.isArray(e))for(var i=0,r=e.length;i1?x(n):n;for(var a=x(arguments,1),i='event handler for "'+e+'"',r=0,s=n.length;rparseInt(this.max)&&Tn(s,o[0],o,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return E}};Object.defineProperty(e,"config",t),e.util={warn:se,extend:T,mergeOptions:Ne,defineReactive:Ce},e.set=xe,e.delete=Te,e.nextTick=Ze,e.observable=function(e){return Ae(e),e},e.options=Object.create(null),N.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,Mn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=x(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ne(this.options,e),this}}(e),wn(e),function(e){N.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&o(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(kn),Object.defineProperty(kn.prototype,"$isServer",{get:te}),Object.defineProperty(kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kn,"FunctionalRenderContext",{value:Dt}),kn.version="2.6.11";var $n=p("style,class"),Dn=p("input,textarea,option,select,progress"),zn=function(e,t,n){return"value"===n&&Dn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Pn=p("contenteditable,draggable,spellcheck"),Ln=p("events,caret,typing,plaintext-only"),Nn=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Rn="http://www.w3.org/1999/xlink",En=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},In=function(e){return En(e)?e.slice(6,e.length):""},Fn=function(e){return null==e||!1===e};function On(e){for(var t=e.data,a=e,i=e;n(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=jn(i.data,t));for(;n(a=a.parent);)a&&a.data&&(t=jn(t,a.data));return function(e,t){if(n(e)||n(t))return Bn(e,qn(t));return""}(t.staticClass,t.class)}function jn(e,t){return{staticClass:Bn(e.staticClass,t.staticClass),class:n(e.class)?[e.class,t.class]:t.class}}function Bn(e,t){return e?t?e+" "+t:e:t||""}function qn(e){return Array.isArray(e)?function(e){for(var t,a="",i=0,r=e.length;i-1?ha(e,t,n):Nn(t)?Fn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Pn(t)?e.setAttribute(t,function(e,t){return Fn(t)||"false"===t?"false":"contenteditable"===e&&Ln(t)?t:"true"}(t,n)):En(t)?Fn(n)?e.removeAttributeNS(Rn,In(t)):e.setAttributeNS(Rn,t,n):ha(e,t,n)}function ha(e,t,n){if(Fn(n))e.removeAttribute(t);else{if(G&&!Q&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var a=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",a)};e.addEventListener("input",a),e.__ieph=!0}e.setAttribute(t,n)}}var fa={create:da,update:da};function ma(e,a){var i=a.elm,r=a.data,s=e.data;if(!(t(r.staticClass)&&t(r.class)&&(t(s)||t(s.staticClass)&&t(s.class)))){var o=On(a),l=i._transitionClasses;n(l)&&(o=Bn(o,qn(l))),o!==i._prevClass&&(i.setAttribute("class",o),i._prevClass=o)}}var va,ga,ba,ya,_a,ka,wa={create:ma,update:ma},Aa=/[\w).+\-_$\]]/;function Ca(e){var t,n,a,i,r,s=!1,o=!1,l=!1,c=!1,u=0,d=0,p=0,h=0;for(a=0;a=0&&" "===(m=e.charAt(f));f--);m&&Aa.test(m)||(c=!0)}}else void 0===i?(h=a+1,i=e.slice(0,a).trim()):v();function v(){(r||(r=[])).push(e.slice(h,a).trim()),h=a+1}if(void 0===i?i=e.slice(0,a).trim():0!==h&&v(),r)for(a=0;a-1?{exp:e.slice(0,ya),key:'"'+e.slice(ya+1)+'"'}:{exp:e,key:null};ga=e,ya=_a=ka=0;for(;!Ba();)qa(ba=ja())?Va(ba):91===ba&&Ua(ba);return{exp:e.slice(0,_a),key:e.slice(_a+1,ka)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function ja(){return ga.charCodeAt(++ya)}function Ba(){return ya>=va}function qa(e){return 34===e||39===e}function Ua(e){var t=1;for(_a=ya;!Ba();)if(qa(e=ja()))Va(e);else if(91===e&&t++,93===e&&t--,0===t){ka=ya;break}}function Va(e){for(var t=e;!Ba()&&(e=ja())!==t;);}var Ha;function Wa(e,t,n){var a=Ha;return function i(){var r=t.apply(null,arguments);null!==r&&Ka(e,i,n,a)}}var Ga=He&&!(J&&Number(J[1])<=53);function Qa(e,t,n,a){if(Ga){var i=rn,r=t;t=r._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return r.apply(this,arguments)}}Ha.addEventListener(e,t,Z?{capture:n,passive:a}:n)}function Ka(e,t,n,a){(a||Ha).removeEventListener(e,t._wrapper||t,n)}function Ya(e,a){if(!t(e.data.on)||!t(a.data.on)){var i=a.data.on||{},r=e.data.on||{};Ha=a.elm,function(e){if(n(e.__r)){var t=G?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}n(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(i),it(i,r,Qa,Ka,Wa,a.context),Ha=void 0}}var Ja,Xa={create:Ya,update:Ya};function Za(e,a){if(!t(e.data.domProps)||!t(a.data.domProps)){var i,r,s=a.elm,o=e.data.domProps||{},l=a.data.domProps||{};for(i in n(l.__ob__)&&(l=a.data.domProps=T({},l)),o)i in l||(s[i]="");for(i in l){if(r=l[i],"textContent"===i||"innerHTML"===i){if(a.children&&(a.children.length=0),r===o[i])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===i&&"PROGRESS"!==s.tagName){s._value=r;var c=t(r)?"":String(r);ei(s,c)&&(s.value=c)}else if("innerHTML"===i&&Hn(s.tagName)&&t(s.innerHTML)){(Ja=Ja||document.createElement("div")).innerHTML=""+r+"";for(var u=Ja.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;u.firstChild;)s.appendChild(u.firstChild)}else if(r!==o[i])try{s[i]=r}catch(e){}}}}function ei(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var a=e.value,i=e._vModifiers;if(n(i)){if(i.number)return d(a)!==d(t);if(i.trim)return a.trim()!==t.trim()}return a!==t}(e,t))}var ti={create:Za,update:Za},ni=b((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var a=e.split(n);a.length>1&&(t[a[0].trim()]=a[1].trim())}})),t}));function ai(e){var t=ii(e.style);return e.staticStyle?T(e.staticStyle,t):t}function ii(e){return Array.isArray(e)?S(e):"string"==typeof e?ni(e):e}var ri,si=/^--/,oi=/\s*!important$/,li=function(e,t,n){if(si.test(t))e.style.setProperty(t,n);else if(oi.test(n))e.style.setProperty(A(t),n.replace(oi,""),"important");else{var a=ui(t);if(Array.isArray(n))for(var i=0,r=n.length;i-1?t.split(hi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function mi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(hi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",a=" "+t+" ";n.indexOf(a)>=0;)n=n.replace(a," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function vi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,gi(e.name||"v")),T(t,e),t}return"string"==typeof e?gi(e):void 0}}var gi=b((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),bi=U&&!Q,yi="transition",_i="transitionend",ki="animation",wi="animationend";bi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(yi="WebkitTransition",_i="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ki="WebkitAnimation",wi="webkitAnimationEnd"));var Ai=U?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ci(e){Ai((function(){Ai(e)}))}function xi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),fi(e,t))}function Ti(e,t){e._transitionClasses&&m(e._transitionClasses,t),mi(e,t)}function Si(e,t,n){var a=$i(e,t),i=a.type,r=a.timeout,s=a.propCount;if(!i)return n();var o="transition"===i?_i:wi,l=0,c=function(){e.removeEventListener(o,u),n()},u=function(t){t.target===e&&++l>=s&&c()};setTimeout((function(){l0&&(n="transition",u=s,d=r.length):"animation"===t?c>0&&(n="animation",u=c,d=l.length):d=(n=(u=Math.max(s,c))>0?s>c?"transition":"animation":null)?"transition"===n?r.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:"transition"===n&&Mi.test(a[yi+"Property"])}}function Di(e,t){for(;e.length1}function Ei(e,t){!0!==t.data.show&&Pi(t)}var Ii=function(e){var r,s,o={},l=e.modules,c=e.nodeOps;for(r=0;rf?y(e,t(i[g+1])?null:i[g+1].elm,i,h,g,r):h>g&&k(a,p,f)}(p,m,g,r,u):n(g)?(n(e.text)&&c.setTextContent(p,""),y(p,null,g,0,g.length-1,r)):n(m)?k(m,0,m.length-1):n(e.text)&&c.setTextContent(p,""):e.text!==i.text&&c.setTextContent(p,i.text),n(f)&&n(h=f.hook)&&n(h=h.postpatch)&&h(e,i)}}}function x(e,t,i){if(a(i)&&n(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,s.selected!==r&&(s.selected=r);else if(z(qi(s),a))return void(e.selectedIndex!==o&&(e.selectedIndex=o));i||(e.selectedIndex=-1)}}function Bi(e,t){return t.every((function(t){return!z(t,e)}))}function qi(e){return"_value"in e?e._value:e.value}function Ui(e){e.target.composing=!0}function Vi(e){e.target.composing&&(e.target.composing=!1,Hi(e.target,"input"))}function Hi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Wi(e){return!e.componentInstance||e.data&&e.data.transition?e:Wi(e.componentInstance._vnode)}var Gi={model:Fi,show:{bind:function(e,t,n){var a=t.value,i=(n=Wi(n)).data&&n.data.transition,r=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;a&&i?(n.data.show=!0,Pi(n,(function(){e.style.display=r}))):e.style.display=a?r:"none"},update:function(e,t,n){var a=t.value;!a!=!t.oldValue&&((n=Wi(n)).data&&n.data.transition?(n.data.show=!0,a?Pi(n,(function(){e.style.display=e.__vOriginalDisplay})):Li(n,(function(){e.style.display="none"}))):e.style.display=a?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,a,i){i||(e.style.display=e.__vOriginalDisplay)}}},Qi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ki(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ki(qt(t.children)):e}function Yi(e){var t={},n=e.$options;for(var a in n.propsData)t[a]=e[a];var i=n._parentListeners;for(var r in i)t[_(r)]=i[r];return t}function Ji(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Xi=function(e){return e.tag||Bt(e)},Zi=function(e){return"show"===e.name},er={name:"transition",props:Qi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Xi)).length){var a=this.mode,r=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;var s=Ki(r);if(!s)return r;if(this._leaving)return Ji(e,r);var o="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?o+"comment":o+s.tag:i(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var l=(s.data||(s.data={})).transition=Yi(this),c=this._vnode,u=Ki(c);if(s.data.directives&&s.data.directives.some(Zi)&&(s.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(s,u)&&!Bt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=T({},l);if("out-in"===a)return this._leaving=!0,rt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ji(e,r);if("in-out"===a){if(Bt(s))return c;var p,h=function(){p()};rt(l,"afterEnter",h),rt(l,"enterCancelled",h),rt(d,"delayLeave",(function(e){p=e}))}}return r}}},tr=T({tag:String,moveClass:String},Qi);function nr(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ar(e){e.data.newPos=e.elm.getBoundingClientRect()}function ir(e){var t=e.data.pos,n=e.data.newPos,a=t.left-n.left,i=t.top-n.top;if(a||i){e.data.moved=!0;var r=e.elm.style;r.transform=r.WebkitTransform="translate("+a+"px,"+i+"px)",r.transitionDuration="0s"}}delete tr.mode;var rr={Transition:er,TransitionGroup:{props:tr,beforeMount:function(){var e=this,t=this._update;this._update=function(n,a){var i=Qt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,a)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),a=this.prevChildren=this.children,i=this.$slots.default||[],r=this.children=[],s=Yi(this),o=0;o-1?Qn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Qn[e]=/HTMLUnknownElement/.test(t.toString())},T(kn.options.directives,Gi),T(kn.options.components,rr),kn.prototype.__patch__=U?Ii:M,kn.prototype.$mount=function(e,t){return function(e,t,n){var a;return e.$el=t,e.$options.render||(e.$options.render=fe),Jt(e,"beforeMount"),a=function(){e._update(e._render(),n)},new un(e,a,M,{before:function(){e._isMounted&&!e._isDestroyed&&Jt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Jt(e,"mounted")),e}(this,e=e&&U?Yn(e):void 0,t)},U&&setTimeout((function(){E.devtools&&ne&&ne.emit("init",kn)}),0);var sr=/\{\{((?:.|\r?\n)+?)\}\}/g,or=/[-.*+?^${}()|[\]\/\\]/g,lr=b((function(e){var t=e[0].replace(or,"\\$&"),n=e[1].replace(or,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var cr={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Ra(e,"class");n&&(e.staticClass=JSON.stringify(n));var a=Na(e,"class",!1);a&&(e.classBinding=a)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var ur,dr={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Ra(e,"style");n&&(e.staticStyle=JSON.stringify(ni(n)));var a=Na(e,"style",!1);a&&(e.styleBinding=a)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},pr=function(e){return(ur=ur||document.createElement("div")).innerHTML=e,ur.textContent},hr=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),fr=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),mr=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),vr=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,gr=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,br="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+I.source+"]*",yr="((?:"+br+"\\:)?"+br+")",_r=new RegExp("^<"+yr),kr=/^\s*(\/?)>/,wr=new RegExp("^<\\/"+yr+"[^>]*>"),Ar=/^]+>/i,Cr=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},$r=/&(?:lt|gt|quot|amp|#39);/g,Dr=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,zr=p("pre,textarea",!0),Pr=function(e,t){return e&&zr(e)&&"\n"===t[0]};function Lr(e,t){var n=t?Dr:$r;return e.replace(n,(function(e){return Mr[e]}))}var Nr,Rr,Er,Ir,Fr,Or,jr,Br,qr=/^@|^v-on:/,Ur=/^v-|^@|^:|^#/,Vr=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Hr=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Wr=/^\(|\)$/g,Gr=/^\[.*\]$/,Qr=/:(.*)$/,Kr=/^:|^\.|^v-bind:/,Yr=/\.[^.\]]+(?=[^\]]*$)/g,Jr=/^v-slot(:|$)|^#/,Xr=/[\r\n]/,Zr=/\s+/g,es=b(pr);function ts(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:ls(t),rawAttrsMap:{},parent:n,children:[]}}function ns(e,t){Nr=t.warn||Ta,Or=t.isPreTag||$,jr=t.mustUseProp||$,Br=t.getTagNamespace||$;t.isReservedTag;Er=Sa(t.modules,"transformNode"),Ir=Sa(t.modules,"preTransformNode"),Fr=Sa(t.modules,"postTransformNode"),Rr=t.delimiters;var n,a,i=[],r=!1!==t.preserveWhitespace,s=t.whitespace,o=!1,l=!1;function c(e){if(u(e),o||e.processed||(e=as(e,t)),i.length||e===n||n.if&&(e.elseif||e.else)&&rs(n,{exp:e.elseif,block:e}),a&&!e.forbidden)if(e.elseif||e.else)s=e,(c=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(a.children))&&c.if&&rs(c,{exp:s.elseif,block:s});else{if(e.slotScope){var r=e.slotTarget||'"default"';(a.scopedSlots||(a.scopedSlots={}))[r]=e}a.children.push(e),e.parent=a}var s,c;e.children=e.children.filter((function(e){return!e.slotScope})),u(e),e.pre&&(o=!1),Or(e.tag)&&(l=!1);for(var d=0;d]*>)","i")),p=e.replace(d,(function(e,n,a){return c=a.length,Tr(u)||"noscript"===u||(n=n.replace(//g,"$1").replace(//g,"$1")),Pr(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));l+=e.length-p.length,e=p,T(u,l-c,l)}else{var h=e.indexOf("<");if(0===h){if(Cr.test(e)){var f=e.indexOf("--\x3e");if(f>=0){t.shouldKeepComment&&t.comment(e.substring(4,f),l,l+f+3),A(f+3);continue}}if(xr.test(e)){var m=e.indexOf("]>");if(m>=0){A(m+2);continue}}var v=e.match(Ar);if(v){A(v[0].length);continue}var g=e.match(wr);if(g){var b=l;A(g[0].length),T(g[1],b,l);continue}var y=C();if(y){x(y),Pr(y.tagName,e)&&A(1);continue}}var _=void 0,k=void 0,w=void 0;if(h>=0){for(k=e.slice(h);!(wr.test(k)||_r.test(k)||Cr.test(k)||xr.test(k)||(w=k.indexOf("<",1))<0);)h+=w,k=e.slice(h);_=e.substring(0,h)}h<0&&(_=e),_&&A(_.length),t.chars&&_&&t.chars(_,l-_.length,l)}if(e===n){t.chars&&t.chars(e);break}}function A(t){l+=t,e=e.substring(t)}function C(){var t=e.match(_r);if(t){var n,a,i={tagName:t[1],attrs:[],start:l};for(A(t[0].length);!(n=e.match(kr))&&(a=e.match(gr)||e.match(vr));)a.start=l,A(a[0].length),a.end=l,i.attrs.push(a);if(n)return i.unarySlash=n[1],A(n[0].length),i.end=l,i}}function x(e){var n=e.tagName,l=e.unarySlash;r&&("p"===a&&mr(n)&&T(a),o(n)&&a===n&&T(n));for(var c=s(n)||!!l,u=e.attrs.length,d=new Array(u),p=0;p=0&&i[s].lowerCasedTag!==o;s--);else s=0;if(s>=0){for(var c=i.length-1;c>=s;c--)t.end&&t.end(i[c].tag,n,r);i.length=s,a=s&&i[s-1].tag}else"br"===o?t.start&&t.start(e,[],!0,n,r):"p"===o&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}T()}(e,{warn:Nr,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,r,s,u,d){var p=a&&a.ns||Br(e);G&&"svg"===p&&(r=function(e){for(var t=[],n=0;nl&&(o.push(r=e.slice(l,i)),s.push(JSON.stringify(r)));var c=Ca(a[1].trim());s.push("_s("+c+")"),o.push({"@binding":c}),l=i+a[0].length}return l-1"+("true"===r?":("+t+")":":_q("+t+","+r+")")),La(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+r+"):("+s+");if(Array.isArray($$a)){var $$v="+(a?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Oa(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Oa(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Oa(t,"$$c")+"}",null,!0)}(e,a,i);else if("input"===r&&"radio"===s)!function(e,t,n){var a=n&&n.number,i=Na(e,"value")||"null";Ma(e,"checked","_q("+t+","+(i=a?"_n("+i+")":i)+")"),La(e,"change",Oa(t,i),null,!0)}(e,a,i);else if("input"===r||"textarea"===r)!function(e,t,n){var a=e.attrsMap.type,i=n||{},r=i.lazy,s=i.number,o=i.trim,l=!r&&"range"!==a,c=r?"change":"range"===a?"__r":"input",u="$event.target.value";o&&(u="$event.target.value.trim()");s&&(u="_n("+u+")");var d=Oa(t,u);l&&(d="if($event.target.composing)return;"+d);Ma(e,"value","("+t+")"),La(e,c,d,null,!0),(o||s)&&La(e,"blur","$forceUpdate()")}(e,a,i);else if(!E.isReservedTag(r))return Fa(e,a,i),!1;return!0},text:function(e,t){t.value&&Ma(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Ma(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:hr,mustUseProp:zn,canBeLeftOpenTag:fr,isReservedTag:Wn,getTagNamespace:Gn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(ps)},vs=b((function(e){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function gs(e,t){e&&(hs=vs(t.staticKeys||""),fs=t.isReservedTag||$,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||h(e.tag)||!fs(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(hs)))}(t),1===t.type){if(!fs(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,a=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,ys=/\([^)]*?\);*$/,_s=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ks={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ws={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"]},As=function(e){return"if("+e+")return null;"},Cs={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:As("$event.target !== $event.currentTarget"),ctrl:As("!$event.ctrlKey"),shift:As("!$event.shiftKey"),alt:As("!$event.altKey"),meta:As("!$event.metaKey"),left:As("'button' in $event && $event.button !== 0"),middle:As("'button' in $event && $event.button !== 1"),right:As("'button' in $event && $event.button !== 2")};function xs(e,t){var n=t?"nativeOn:":"on:",a="",i="";for(var r in e){var s=Ts(e[r]);e[r]&&e[r].dynamic?i+=r+","+s+",":a+='"'+r+'":'+s+","}return a="{"+a.slice(0,-1)+"}",i?n+"_d("+a+",["+i.slice(0,-1)+"])":n+a}function Ts(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Ts(e)})).join(",")+"]";var t=_s.test(e.value),n=bs.test(e.value),a=_s.test(e.value.replace(ys,""));if(e.modifiers){var i="",r="",s=[];for(var o in e.modifiers)if(Cs[o])r+=Cs[o],ks[o]&&s.push(o);else if("exact"===o){var l=e.modifiers;r+=As(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else s.push(o);return s.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ss).join("&&")+")return null;"}(s)),r&&(i+=r),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":a?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(a?"return "+e.value:e.value)+"}"}function Ss(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=ks[e],a=ws[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(a)+")"}var Ms={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:M},$s=function(e){this.options=e,this.warn=e.warn||Ta,this.transforms=Sa(e.modules,"transformCode"),this.dataGenFns=Sa(e.modules,"genData"),this.directives=T(T({},Ms),e.directives);var t=e.isReservedTag||$;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ds(e,t){var n=new $s(t);return{render:"with(this){return "+(e?zs(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function zs(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ps(e,t);if(e.once&&!e.onceProcessed)return Ls(e,t);if(e.for&&!e.forProcessed)return Rs(e,t);if(e.if&&!e.ifProcessed)return Ns(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',a=Os(e,t),i="_t("+n+(a?","+a:""),r=e.attrs||e.dynamicAttrs?qs((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:_(e.name),value:e.value,dynamic:e.dynamic}}))):null,s=e.attrsMap["v-bind"];!r&&!s||a||(i+=",null");r&&(i+=","+r);s&&(i+=(r?"":",null")+","+s);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var a=t.inlineTemplate?null:Os(t,n,!0);return"_c("+e+","+Es(t,n)+(a?","+a:"")+")"}(e.component,e,t);else{var a;(!e.plain||e.pre&&t.maybeComponent(e))&&(a=Es(e,t));var i=e.inlineTemplate?null:Os(e,t,!0);n="_c('"+e.tag+"'"+(a?","+a:"")+(i?","+i:"")+")"}for(var r=0;r>>0}(s):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var r=function(e,t){var n=e.children[0];if(n&&1===n.type){var a=Ds(n,t.options);return"inlineTemplate:{render:function(){"+a.render+"},staticRenderFns:["+a.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);r&&(n+=r+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+qs(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Is(e){return 1===e.type&&("slot"===e.tag||e.children.some(Is))}function Fs(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ns(e,t,Fs,"null");if(e.for&&!e.forProcessed)return Rs(e,t,Fs);var a="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+a+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Os(e,t)||"undefined")+":undefined":Os(e,t)||"undefined":zs(e,t))+"}",r=a?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+r+"}"}function Os(e,t,n,a,i){var r=e.children;if(r.length){var s=r[0];if(1===r.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var o=n?t.maybeComponent(s)?",1":",0":"";return""+(a||zs)(s,t)+o}var l=n?function(e,t){for(var n=0,a=0;a':'
',Gs.innerHTML.indexOf(" ")>0}var Ys=!!U&&Ks(!1),Js=!!U&&Ks(!0),Xs=b((function(e){var t=Yn(e);return t&&t.innerHTML})),Zs=kn.prototype.$mount;kn.prototype.$mount=function(e,t){if((e=e&&Yn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var a=n.template;if(a)if("string"==typeof a)"#"===a.charAt(0)&&(a=Xs(a));else{if(!a.nodeType)return this;a=a.innerHTML}else e&&(a=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(a){var i=Qs(a,{outputSourceRange:!1,shouldDecodeNewlines:Ys,shouldDecodeNewlinesForHref:Js,delimiters:n.delimiters,comments:n.comments},this),r=i.render,s=i.staticRenderFns;n.render=r,n.staticRenderFns=s}}return Zs.call(this,e,t)},kn.compile=Qs;const eo=io.connect(window.location.href);eo.on("connect",()=>{document.getElementById("start_app_placeholder").classList.add("loading_placeholder--hidden")});var to=new kn; /*! * vue-router v3.3.4 * (c) 2020 Evan You * @license MIT - */function no(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function ao(t,e){return no(t)&&t._isRouter&&(null==e||t.type===e)}function ro(t,e){for(var n in e)t[n]=e[n];return t}var so={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,a=e.children,r=e.parent,i=e.data;i.routerView=!0;for(var s=r.$createElement,o=n.name,l=r.$route,c=r._routerViewCache||(r._routerViewCache={}),u=0,d=!1;r&&r._routerRoot!==r;){var p=r.$vnode?r.$vnode.data:{};p.routerView&&u++,p.keepAlive&&r._directInactive&&r._inactive&&(d=!0),r=r.$parent}if(i.routerViewDepth=u,d){var f=c[o],h=f&&f.component;return h?(f.configProps&&oo(h,i,f.route,f.configProps),s(h,i,a)):s()}var v=l.matched[u],m=v&&v.components[o];if(!v||!m)return c[o]=null,s();c[o]={component:m},i.registerRouteInstance=function(t,e){var n=v.instances[o];(e&&n!==t||!e&&n===t)&&(v.instances[o]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){v.instances[o]=e.componentInstance},i.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==v.instances[o]&&(v.instances[o]=t.componentInstance)};var g=v.props&&v.props[o];return g&&(ro(c[o],{route:l,configProps:g}),oo(m,i,l,g)),s(m,i,a)}};function oo(t,e,n,a){var r=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}(n,a);if(r){r=e.props=ro({},r);var i=e.attrs=e.attrs||{};for(var s in r)t.props&&s in t.props||(i[s]=r[s],delete r[s])}}var lo=/[!'()*]/g,co=function(t){return"%"+t.charCodeAt(0).toString(16)},uo=/%2C/g,po=function(t){return encodeURIComponent(t).replace(lo,co).replace(uo,",")},fo=decodeURIComponent;function ho(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),a=fo(n.shift()),r=n.length>0?fo(n.join("=")):null;void 0===e[a]?e[a]=r:Array.isArray(e[a])?e[a].push(r):e[a]=[e[a],r]})),e):e}function vo(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return po(e);if(Array.isArray(n)){var a=[];return n.forEach((function(t){void 0!==t&&(null===t?a.push(po(e)):a.push(po(e)+"="+po(t)))})),a.join("&")}return po(e)+"="+po(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var mo=/\/?$/;function go(t,e,n,a){var r=a&&a.options.stringifyQuery,i=e.query||{};try{i=_o(i)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:wo(e,r),matched:t?bo(t):[]};return n&&(s.redirectedFrom=wo(n,r)),Object.freeze(s)}function _o(t){if(Array.isArray(t))return t.map(_o);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=_o(t[n]);return e}return t}var yo=go(null,{path:"/"});function bo(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function wo(t,e){var n=t.path,a=t.query;void 0===a&&(a={});var r=t.hash;return void 0===r&&(r=""),(n||"/")+(e||vo)(a)+r}function Ao(t,e){return e===yo?t===e:!!e&&(t.path&&e.path?t.path.replace(mo,"")===e.path.replace(mo,"")&&t.hash===e.hash&&ko(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&ko(t.query,e.query)&&ko(t.params,e.params)))}function ko(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),a=Object.keys(e);return n.length===a.length&&n.every((function(n){var a=t[n],r=e[n];return"object"==typeof a&&"object"==typeof r?ko(a,r):String(a)===String(r)}))}function Co(t,e,n){var a=t.charAt(0);if("/"===a)return t;if("?"===a||"#"===a)return e+t;var r=e.split("/");n&&r[r.length-1]||r.pop();for(var i=t.replace(/^\//,"").split("/"),s=0;s=0&&(e=t.slice(a),t=t.slice(0,a));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}(r.path||""),c=e&&e.path||"/",u=l.path?Co(l.path,c,n||r.append):c,d=function(t,e,n){void 0===e&&(e={});var a,r=n||ho;try{a=r(t||"")}catch(t){a={}}for(var i in e)a[i]=e[i];return a}(l.query,r.query,a&&a.options.parseQuery),p=r.hash||l.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:u,query:d,hash:p}}var Wo,Qo=function(){},Go={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,a=this.$route,r=n.resolve(this.to,a,this.append),i=r.location,s=r.route,o=r.href,l={},c=n.options.linkActiveClass,u=n.options.linkExactActiveClass,d=null==c?"router-link-active":c,p=null==u?"router-link-exact-active":u,f=null==this.activeClass?d:this.activeClass,h=null==this.exactActiveClass?p:this.exactActiveClass,v=s.redirectedFrom?go(null,Vo(s.redirectedFrom),null,n):s;l[h]=Ao(a,v),l[f]=this.exact?l[h]:function(t,e){return 0===t.path.replace(mo,"/").indexOf(e.path.replace(mo,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(a,v);var m=l[h]?this.ariaCurrentValue:null,g=function(t){Ko(t)&&(e.replace?n.replace(i,Qo):n.push(i,Qo))},_={click:Ko};Array.isArray(this.event)?this.event.forEach((function(t){_[t]=g})):_[this.event]=g;var y={class:l},b=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:o,route:s,navigate:g,isActive:l[f],isExactActive:l[h]});if(b){if(1===b.length)return b[0];if(b.length>1||!b.length)return 0===b.length?t():t("span",{},b)}if("a"===this.tag)y.on=_,y.attrs={href:o,"aria-current":m};else{var w=function t(e){var n;if(e)for(var a=0;a-1&&(o.params[p]=n.params[p]);return o.path=Ho(u.path,o.params),l(u,o,s)}if(o.path){o.params={};for(var f=0;f=t.length?n():t[r]?e(t[r],(function(){a(r+1)})):a(r+1)};a(0)}function wl(t){return function(e,n,a){var r=!1,i=0,s=null;Al(t,(function(t,e,n,o){if("function"==typeof t&&void 0===t.cid){r=!0,i++;var l,c=xl((function(e){var r;((r=e).__esModule||Cl&&"Module"===r[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Wo.extend(e),n.components[o]=e,--i<=0&&a()})),u=xl((function(t){var e="Failed to resolve async component "+o+": "+t;s||(s=no(t)?t:new Error(e),a(s))}));try{l=t(c,u)}catch(t){u(t)}if(l)if("function"==typeof l.then)l.then(c,u);else{var d=l.component;d&&"function"==typeof d.then&&d.then(c,u)}}})),r||a()}}function Al(t,e){return kl(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function kl(t){return Array.prototype.concat.apply([],t)}var Cl="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function xl(t){var e=!1;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(!e)return e=!0,t.apply(this,n)}}var Tl=1,$l=2,Sl=3,Ll=4;function El(t,e){return Dl(t,e,Tl,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return Pl.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function Nl(t,e){return Dl(t,e,Sl,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Dl(t,e,n,a){var r=new Error(a);return r._isRouter=!0,r.from=t,r.to=e,r.type=n,r}var Pl=["params","query","hash"];var Il=function(t,e){this.router=t,this.base=function(t){if(!t)if(Yo){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=yo,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Ol(t,e,n,a){var r=Al(t,(function(t,a,r,i){var s=function(t,e){"function"!=typeof t&&(t=Wo.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map((function(t){return n(t,a,r,i)})):n(s,a,r,i)}));return kl(a?r.reverse():r)}function Rl(t,e){if(e)return function(){return t.apply(e,arguments)}}Il.prototype.listen=function(t){this.cb=t},Il.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Il.prototype.onError=function(t){this.errorCbs.push(t)},Il.prototype.transitionTo=function(t,e,n){var a=this,r=this.router.match(t,this.current);this.confirmTransition(r,(function(){var t=a.current;a.updateRoute(r),e&&e(r),a.ensureURL(),a.router.afterHooks.forEach((function(e){e&&e(r,t)})),a.ready||(a.ready=!0,a.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!a.ready&&(a.ready=!0,ao(t,Tl)?a.readyCbs.forEach((function(t){t(r)})):a.readyErrorCbs.forEach((function(e){e(t)})))}))},Il.prototype.confirmTransition=function(t,e,n){var a,r=this,i=this.current,s=function(t){!ao(t)&&no(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},o=t.matched.length-1,l=i.matched.length-1;if(Ao(t,i)&&o===l&&t.matched[o]===i.matched[l])return this.ensureURL(),s(Dl(a=i,t,Ll,'Avoided redundant navigation to current location: "'+a.fullPath+'".'));var c=function(t,e){var n,a=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,a=gl&&n;a&&this.listeners.push(ol());var r=function(){var n=t.current,r=Ml(t.base);t.current===yo&&r===t._startLocation||t.transitionTo(r,(function(t){a&&ll(e,t,n,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var a=this,r=this.current;this.transitionTo(t,(function(t){_l(xo(a.base+t.fullPath)),ll(a.router,t,r,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var a=this,r=this.current;this.transitionTo(t,(function(t){yl(xo(a.base+t.fullPath)),ll(a.router,t,r,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Ml(this.base)!==this.current.fullPath){var e=xo(this.base+this.current.fullPath);t?_l(e):yl(e)}},e.prototype.getCurrentLocation=function(){return Ml(this.base)},e}(Il);function Ml(t){var e=decodeURI(window.location.pathname);return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var jl=function(t){function e(e,n,a){t.call(this,e,n),a&&function(t){var e=Ml(t);if(!/^\/#/.test(e))return window.location.replace(xo(t+"/#"+e)),!0}(this.base)||Bl()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=gl&&e;n&&this.listeners.push(ol());var a=function(){var e=t.current;Bl()&&t.transitionTo(ql(),(function(a){n&&ll(t.router,a,e,!0),gl||Hl(a.fullPath)}))},r=gl?"popstate":"hashchange";window.addEventListener(r,a),this.listeners.push((function(){window.removeEventListener(r,a)}))}},e.prototype.push=function(t,e,n){var a=this,r=this.current;this.transitionTo(t,(function(t){Ul(t.fullPath),ll(a.router,t,r,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var a=this,r=this.current;this.transitionTo(t,(function(t){Hl(t.fullPath),ll(a.router,t,r,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ql()!==e&&(t?Ul(e):Hl(e))},e.prototype.getCurrentLocation=function(){return ql()},e}(Il);function Bl(){var t=ql();return"/"===t.charAt(0)||(Hl("/"+t),!1)}function ql(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";var n=(t=t.slice(e+1)).indexOf("?");if(n<0){var a=t.indexOf("#");t=a>-1?decodeURI(t.slice(0,a))+t.slice(a):decodeURI(t)}else t=decodeURI(t.slice(0,n))+t.slice(n);return t}function zl(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Ul(t){gl?_l(zl(t)):window.location.hash=t}function Hl(t){gl?yl(zl(t)):window.location.replace(zl(t))}var Vl=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var a=this;this.transitionTo(t,(function(t){a.stack=a.stack.slice(0,a.index+1).concat(t),a.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var a=this;this.transitionTo(t,(function(t){a.stack=a.stack.slice(0,a.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var a=this.stack[n];this.confirmTransition(a,(function(){e.index=n,e.updateRoute(a)}),(function(t){ao(t,Ll)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Il),Wl=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Zo(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!gl&&!1!==t.fallback,this.fallback&&(e="hash"),Yo||(e="abstract"),this.mode=e,e){case"history":this.history=new Fl(this,t.base);break;case"hash":this.history=new jl(this,t.base,this.fallback);break;case"abstract":this.history=new Vl(this,t.base)}},Ql={currentRoute:{configurable:!0}};function Gl(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Wl.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Ql.currentRoute.get=function(){return this.history&&this.history.current},Wl.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardownListeners()})),!this.app){this.app=t;var n=this.history;if(n instanceof Fl||n instanceof jl){var a=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),a,a)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Wl.prototype.beforeEach=function(t){return Gl(this.beforeHooks,t)},Wl.prototype.beforeResolve=function(t){return Gl(this.resolveHooks,t)},Wl.prototype.afterEach=function(t){return Gl(this.afterHooks,t)},Wl.prototype.onReady=function(t,e){this.history.onReady(t,e)},Wl.prototype.onError=function(t){this.history.onError(t)},Wl.prototype.push=function(t,e,n){var a=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){a.history.push(t,e,n)}));this.history.push(t,e,n)},Wl.prototype.replace=function(t,e,n){var a=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){a.history.replace(t,e,n)}));this.history.replace(t,e,n)},Wl.prototype.go=function(t){this.history.go(t)},Wl.prototype.back=function(){this.go(-1)},Wl.prototype.forward=function(){this.go(1)},Wl.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Wl.prototype.resolve=function(t,e,n){var a=Vo(t,e=e||this.history.current,n,this),r=this.match(a,e),i=r.redirectedFrom||r.fullPath;return{location:a,route:r,href:function(t,e,n){var a="hash"===n?"#"+e:e;return t?xo(t+"/"+a):a}(this.history.base,i,this.mode),normalizedTo:a,resolved:r}},Wl.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==yo&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Wl.prototype,Ql),Wl.install=function t(e){if(!t.installed||Wo!==e){t.installed=!0,Wo=e;var n=function(t){return void 0!==t},a=function(t,e){var a=t.$options._parentVnode;n(a)&&n(a=a.data)&&n(a=a.registerRouteInstance)&&a(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,a(this,this)},destroyed:function(){a(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",so),e.component("RouterLink",Go);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}},Wl.version="3.3.4",Yo&&window.Vue&&window.Vue.use(Wl);var Kl="object"==typeof global&&global&&global.Object===Object&&global,Yl="object"==typeof self&&self&&self.Object===Object&&self,Jl=Kl||Yl||Function("return this")(),Xl=Jl.Symbol,Zl=Object.prototype,tc=Zl.hasOwnProperty,ec=Zl.toString,nc=Xl?Xl.toStringTag:void 0;var ac=Object.prototype.toString;var rc=Xl?Xl.toStringTag:void 0;function ic(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":rc&&rc in Object(t)?function(t){var e=tc.call(t,nc),n=t[nc];try{t[nc]=void 0;var a=!0}catch(t){}var r=ec.call(t);return a&&(e?t[nc]=n:delete t[nc]),r}(t):function(t){return ac.call(t)}(t)}function sc(t){return null!=t&&"object"==typeof t}function oc(t){return"symbol"==typeof t||sc(t)&&"[object Symbol]"==ic(t)}function lc(t,e){for(var n=-1,a=null==t?0:t.length,r=Array(a);++n-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}function Pc(t){return null!=t&&Dc(t.length)&&!vc(t)}var Ic=Object.prototype;function Oc(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ic)}function Rc(t){return sc(t)&&"[object Arguments]"==ic(t)}var Fc=Object.prototype,Mc=Fc.hasOwnProperty,jc=Fc.propertyIsEnumerable,Bc=Rc(function(){return arguments}())?Rc:function(t){return sc(t)&&Mc.call(t,"callee")&&!jc.call(t,"callee")};var qc="object"==typeof exports&&exports&&!exports.nodeType&&exports,zc=qc&&"object"==typeof module&&module&&!module.nodeType&&module,Uc=zc&&zc.exports===qc?Jl.Buffer:void 0,Hc=(Uc?Uc.isBuffer:void 0)||function(){return!1},Vc={};function Wc(t){return function(e){return t(e)}}Vc["[object Float32Array]"]=Vc["[object Float64Array]"]=Vc["[object Int8Array]"]=Vc["[object Int16Array]"]=Vc["[object Int32Array]"]=Vc["[object Uint8Array]"]=Vc["[object Uint8ClampedArray]"]=Vc["[object Uint16Array]"]=Vc["[object Uint32Array]"]=!0,Vc["[object Arguments]"]=Vc["[object Array]"]=Vc["[object ArrayBuffer]"]=Vc["[object Boolean]"]=Vc["[object DataView]"]=Vc["[object Date]"]=Vc["[object Error]"]=Vc["[object Function]"]=Vc["[object Map]"]=Vc["[object Number]"]=Vc["[object Object]"]=Vc["[object RegExp]"]=Vc["[object Set]"]=Vc["[object String]"]=Vc["[object WeakMap]"]=!1;var Qc="object"==typeof exports&&exports&&!exports.nodeType&&exports,Gc=Qc&&"object"==typeof module&&module&&!module.nodeType&&module,Kc=Gc&&Gc.exports===Qc&&Kl.process,Yc=function(){try{var t=Gc&&Gc.require&&Gc.require("util").types;return t||Kc&&Kc.binding&&Kc.binding("util")}catch(t){}}(),Jc=Yc&&Yc.isTypedArray,Xc=Jc?Wc(Jc):function(t){return sc(t)&&Dc(t.length)&&!!Vc[ic(t)]},Zc=Object.prototype.hasOwnProperty;function tu(t,e){var n=cc(t),a=!n&&Bc(t),r=!n&&!a&&Hc(t),i=!n&&!a&&!r&&Xc(t),s=n||a||r||i,o=s?function(t,e){for(var n=-1,a=Array(t);++n-1},mu.prototype.set=function(t,e){var n=this.__data__,a=hu(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this};var gu=$c(Jl,"Map");function _u(t,e){var n,a,r=t.__data__;return("string"==(a=typeof(n=e))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function yu(t){var e=-1,n=null==t?0:t.length;for(this.clear();++eo))return!1;var c=i.get(t);if(c&&i.get(e))return c==e;var u=-1,d=!0,p=2&n?new Uu:void 0;for(i.set(t,e),i.set(e,t);++ue||i&&s&&l&&!o&&!c||a&&s&&l||!n&&l||!r)return 1;if(!a&&!i&&!c&&t=o?l:l*("desc"==n[a]?-1:1)}return t.index-e.index}(t,e,n)}))}var vd={sendAddToQueue:function(t,e=null){""!=t&&to.emit("addToQueue",{url:t,bitrate:e},()=>{})}};const md={name:"artist-tab",data:()=>({currentTab:"",sortKey:"release_date",sortOrder:"desc",title:"",image:"",type:"",link:"",head:null,body:null}),methods:{backTab:lp,albumView:op.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(t){t.stopPropagation(),vd.sendAddToQueue(t.currentTarget.dataset.link)},openQualityModal(t){this.$root.$emit("QualityModal:open",t.currentTarget.dataset.link)},sortBy(t){t==this.sortKey?this.sortOrder="asc"==this.sortOrder?"desc":"asc":(this.sortKey=t,this.sortOrder="asc")},changeTab(t){this.currentTab=t},getCurrentTab(){return this.currentTab},updateSelected(){window.currentStack.selected=this.currentTab},checkNewRelease(t){let e=new Date,n=new Date(t);return n.setDate(n.getDate()+3),e.setHours(0,0,0,0),e.getTime()<=n.getTime()},showArtist(t){this.reset();const{name:e,picture_xl:n,id:a,releases:r}=t;this.title=e,this.image=n,this.type="Artist",this.link="https://www.deezer.com/artist/"+a,""===this.currentTab&&(this.currentTab=Object.keys(r)[0]),this.sortKey="release_date",this.sortOrder="desc",this.head=[{title:this.$tc("globals.listTabs.title",1),sortKey:"title"},{title:this.$t("globals.listTabs.releaseDate"),sortKey:"release_date"},{title:"",width:"32px"}],pd(r)?this.body=null:this.body=r}},computed:{showTable(){return this.body?(t=this.body[this.currentTab],e=this.sortKey,n=this.sortOrder,null==t?[]:(cc(e)||(e=null==e?[]:[e]),cc(n=a?void 0:n)||(n=null==n?[]:[n]),hd(t,e,n))):[];var t,e,n,a}},mounted(){this.$refs.root.style.display="block",console.log("artist mounted"),to.on("show_artist",this.showArtist),eo.$on("artistTab:updateSelected",this.updateSelected),eo.$on("artistTab:changeTab",this.changeTab)},beforeDestroy(){console.log("artist bef dest"),this.$refs.root.style.display="none"}};var gd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"main_tabcontent fixed_footer image_header",attrs:{id:"artist_tab"}},[n("header",{staticClass:"inline-flex",style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+t.image+"')"}},[n("h1",[t._v(t._s(t.title))]),t._v(" "),n("div",{staticClass:"fab right",attrs:{role:"button","aria-label":"download","data-link":t.link},on:{contextmenu:function(e){return e.preventDefault(),t.openQualityModal(e)},click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[n("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),n("div",{staticClass:"tab"},t._l(t.body,(function(e,a){return n("button",{key:a,staticClass:"selective",class:{active:a===t.currentTab},attrs:{href:"#artist_"+a},on:{click:function(e){return t.changeTab(a)}}},[t._v("\n\t\t\t"+t._s(t.$tc("globals.listTabs."+a,2))+"\n\t\t")])})),0),t._v(" "),n("table",{staticClass:"table"},[n("thead",[n("tr",t._l(t.head,(function(e){return n("th",{class:{"sort-asc":e.sortKey==t.sortKey&&"asc"==t.sortOrder,"sort-desc":e.sortKey==t.sortKey&&"desc"==t.sortOrder,sortable:e.sortKey,clickable:e.sortKey},style:{width:e.width?e.width:"auto"},on:{click:function(n){e.sortKey&&t.sortBy(e.sortKey)}}},[t._v("\n\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t")])})),0)]),t._v(" "),n("tbody",t._l(t.showTable,(function(e){return n("tr",{key:e.id},[n("td",{staticClass:"inline-flex clickable",attrs:{"data-id":e.id},on:{click:t.albumView}},[n("img",{staticClass:"rounded coverart",staticStyle:{"margin-right":"16px",width:"56px",height:"56px"},attrs:{src:e.cover_small}}),t._v(" "),e.explicit_lyrics?n("i",{staticClass:"material-icons explicit_icon"},[t._v("\n\t\t\t\t\t\texplicit\n\t\t\t\t\t")]):t._e(),t._v("\n\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t\t"),t.checkNewRelease(e.release_date)?n("i",{staticClass:"material-icons",staticStyle:{color:"#ff7300"}},[t._v("\n\t\t\t\t\t\tfiber_new\n\t\t\t\t\t")]):t._e()]),t._v(" "),n("td",[t._v(t._s(e.release_date))]),t._v(" "),n("td",{staticClass:"clickable",attrs:{"data-link":e.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)},contextmenu:function(e){return e.preventDefault(),t.openQualityModal(e)}}},[n("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("\n\t\t\t\t\t\tfile_download\n\t\t\t\t\t")])])])})),0)]),t._v(" "),n("footer",[n("button",{staticClass:"back-button",on:{click:t.backTab}},[t._v(t._s(t.$t("globals.back")))])])])};gd._withStripped=!0;var _d=function(t,e,n,a,r,i,s,o){const l=("function"==typeof n?n.options:n)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\ArtistTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=a;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(n,a){return t.call(a),e(n,a)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:gd,staticRenderFns:[]},(function(t){t&&t("data-v-5a788dc3_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"ArtistTab.vue"},media:void 0})}),md,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,r){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const i=a?r.media||"default":t,s=n[i]||(n[i]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let n=r.source,o=s.ids.length;if(s.ids.push(t),a&&(s.element=s.element||document.querySelector("style[data-group="+i+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",r.media&&t.setAttribute("media",r.media),a&&(t.setAttribute("data-group",i),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(a&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(n),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(n),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));function yd(t){let e=t.toLowerCase();if(e.startsWith("http")){if(e.indexOf("deezer.com")>=0||e.indexOf("open.spotify.com")>=0)return!0}else if(e.startsWith("spotify:"))return!0;return!1}function bd(t,e,n){var a;return function(){var r=this,i=arguments,s=function(){a=null,n||t.apply(r,i)},o=n&&!a;clearTimeout(a),a=setTimeout(s,e),o&&t.apply(r,i)}}var wd={isValidURL:yd,convertDuration:function(t){let e,n;return e=Math.floor(t/60),n=t-60*e,n<10&&(n="0"+n),e+":"+n},convertDurationSeparated:function(t){let e,n,a;return n=Math.floor(t/60),e=Math.floor(n/60),a=t-60*n,n-=60*e,[e,n,a]},numberWithDots:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")},debounce:bd,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 Ad={name:"tracklist-tab",data:()=>({title:"",metadata:"",release_date:"",label:"",explicit:!1,image:"",type:"empty",link:"",body:[]}),methods:{backTab:lp,artistView:op.bind(null,"artist"),albumView:op.bind(null,"album"),playPausePreview(t){eo.$emit("trackPreview:playPausePreview",t)},reset(){console.log("resetto"),this.title="Loading...",this.image="",this.metadata="",this.label="",this.release_date="",this.explicit=!1,this.type="empty",this.body=[]},addToQueue(t){vd.sendAddToQueue(t.currentTarget.dataset.link)},openQualityModal(t){this.$root.$emit("QualityModal:open",t.currentTarget.dataset.link)},toggleAll(t){this.body.forEach(e=>{"track"==e.type&&(e.selected=t.currentTarget.checked)})},selectedLinks(){var t=[];return this.body&&this.body.forEach(e=>{"track"==e.type&&e.selected&&t.push("spotifyPlaylist"==this.type?e.uri:e.link)}),t.join(";")},convertDuration:wd.convertDuration,showAlbum(t){this.reset();const{id:e,title:n,explicit_lyrics:a,label:r,artist:{name:i},tracks:s,tracks:{length:o},release_date:l,cover_xl:c}=t;this.type="album",this.link="https://www.deezer.com/album/"+e,this.title=n,this.explicit=a,this.label=r,this.metadata=`${i} • ${this.$tc("globals.listTabs.trackN",o)}`,this.release_date=l.substring(0,10),this.image=c,pd(s)?this.body=null:this.body=s},showPlaylist(t){this.reset(),console.log(t);const{id:e,title:n,picture_xl:a,creation_date:r,creator:{name:i},tracks:s,tracks:{length:o}}=t;this.type="playlist",this.link="https://www.deezer.com/playlist/"+e,this.title=n,this.image=a,this.release_date=r.substring(0,10),this.metadata=`${this.$t("globals.by",[i])} • ${this.$tc("globals.listTabs.trackN",o)}`,pd(s)?this.body=null:this.body=s},showSpotifyPlaylist(t){this.reset();const{uri:e,name:n,images:a,images:{length:r},owner:{display_name:i},tracks:s,tracks:{length:o}}=t;this.type="spotifyPlaylist",this.link=e,this.title=n,this.image=r?a[0].url:"https://e-cdns-images.dzcdn.net/images/cover/d41d8cd98f00b204e9800998ecf8427e/1000x1000-000000-80-0-0.jpg",this.release_date="",this.metadata=`${this.$t("globals.by",[i])} • ${this.$tc("globals.listTabs.trackN",o)}`,pd(s)?this.body=null:this.body=s},selectRow(t,e){e.selected=!e.selected}},mounted(){console.log("tracklist mounted"),this.$refs.root.style.display="block",eo.$on("tracklistTab:selectRow",this.selectRow),to.on("show_album",this.showAlbum),to.on("show_playlist",this.showPlaylist),to.on("show_spotifyplaylist",this.showSpotifyPlaylist)},beforeDestroy(){console.log("tracklist bef dest"),this.$refs.root.style.display="none"}};var kd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"main_tabcontent fixed_footer image_header",attrs:{id:"tracklist_tab"}},[n("header",{style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+t.image+"')"}},[n("h1",{staticClass:"inline-flex"},[t._v("\n\t\t\t"+t._s(t.title)+" "),t.explicit?n("i",{staticClass:"material-icons explicit_icon explicit_icon--right"},[t._v("explicit")]):t._e()]),t._v(" "),n("h2",{staticClass:"inline-flex"},[t.metadata?n("span",[t._v(t._s(t.metadata))]):t._e(),t._v(" "),t.release_date?n("span",{staticClass:"right"},[t._v(t._s(t.release_date))]):t._e()])]),t._v(" "),n("table",{staticClass:"table table--tracklist"},[n("thead",[n("tr",[t._m(0),t._v(" "),n("th",[t._v("#")]),t._v(" "),n("th",[t._v(t._s(t.$tc("globals.listTabs.title",1)))]),t._v(" "),n("th",[t._v(t._s(t.$tc("globals.listTabs.artist",1)))]),t._v(" "),"playlist"===t.type?n("th",[t._v(t._s(t.$tc("globals.listTabs.album",1)))]):t._e(),t._v(" "),t._m(1),t._v(" "),n("th",{staticClass:"table__icon table__cell--center clickable"},[n("input",{staticClass:"selectAll",attrs:{type:"checkbox"},on:{click:t.toggleAll}})])])]),t._v(" "),n("tbody",["spotifyPlaylist"!==t.type?[t._l(t.body,(function(e,a){return["track"==e.type?n("tr",{on:{click:function(n){return t.selectRow(a,e)}}},[n("td",{staticClass:"table__cell--x-small table__cell--center"},[n("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[n("i",t._g({staticClass:"material-icons",class:{preview_playlist_controls:e.preview,disabled:!e.preview},attrs:{"data-preview":e.preview,title:t.$t("globals.play_hint")}},{click:!!e.preview&&t.playPausePreview}),[t._v("\n\t\t\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t\t\t")])])]),t._v(" "),n("td",{staticClass:"table__cell--small table__cell--center track_position"},[t._v("\n\t\t\t\t\t\t\t"+t._s("album"===t.type?e.track_position:t.body.indexOf(e)+1)+"\n\t\t\t\t\t\t")]),t._v(" "),n("td",{staticClass:"table__cell--large table__cell--with-icon"},[n("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[e.explicit_lyrics?n("i",{staticClass:"material-icons explicit_icon"},[t._v("\n\t\t\t\t\t\t\t\t\texplicit\n\t\t\t\t\t\t\t\t")]):t._e(),t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.title+(e.title_version&&-1==e.title.indexOf(e.title_version)?" "+e.title_version:""))+"\n\t\t\t\t\t\t\t")])]),t._v(" "),n("td",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{"data-id":e.artist.id},on:{click:t.artistView}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.artist.name)+"\n\t\t\t\t\t\t")]),t._v(" "),"playlist"==t.type?n("td",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{"data-id":e.album.id},on:{click:t.albumView}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.album.title)+"\n\t\t\t\t\t\t")]):t._e(),t._v(" "),n("td",{staticClass:"table__cell--center",class:{"table__cell--small":"album"===t.type,"table__cell--x-small":"playlist"===t.type}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.convertDuration(e.duration))+"\n\t\t\t\t\t\t")]),t._v(" "),n("td",{staticClass:"table__icon table__cell--center"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected)?t._i(e.selected,null)>-1:e.selected},on:{change:function(n){var a=e.selected,r=n.target,i=!!r.checked;if(Array.isArray(a)){var s=t._i(a,null);r.checked?s<0&&t.$set(e,"selected",a.concat([null])):s>-1&&t.$set(e,"selected",a.slice(0,s).concat(a.slice(s+1)))}else t.$set(e,"selected",i)}}})])]):"disc_separator"==e.type?n("tr",{staticClass:"table__row-no-highlight",staticStyle:{opacity:"0.54"}},[t._m(2,!0),t._v(" "),n("td",{staticClass:"table__cell--center"},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.number)+"\n\t\t\t\t\t\t")]),t._v(" "),n("td",{attrs:{colspan:"4"}})]):t._e()]}))]:t._l(t.body,(function(e,a){return n("tr",[n("td",[e.preview_url?n("i",{class:"material-icons"+(e.preview_url?" preview_playlist_controls":""),attrs:{"data-preview":e.preview_url,title:t.$t("globals.play_hint")},on:{click:t.playPausePreview}},[t._v("\n\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t")]):n("i",{staticClass:"material-icons disabled"},[t._v("play_arrow")])]),t._v(" "),n("td",[t._v(t._s(a+1))]),t._v(" "),n("td",{staticClass:"inline-flex"},[e.explicit?n("i",{staticClass:"material-icons explicit_icon"},[t._v("explicit")]):t._e(),t._v("\n\t\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t")]),t._v(" "),n("td",[t._v(t._s(e.artists[0].name))]),t._v(" "),n("td",[t._v(t._s(e.album.name))]),t._v(" "),n("td",[t._v(t._s(t.convertDuration(Math.floor(e.duration_ms/1e3))))]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected)?t._i(e.selected,null)>-1:e.selected},on:{change:function(n){var a=e.selected,r=n.target,i=!!r.checked;if(Array.isArray(a)){var s=t._i(a,null);r.checked?s<0&&t.$set(e,"selected",a.concat([null])):s>-1&&t.$set(e,"selected",a.slice(0,s).concat(a.slice(s+1)))}else t.$set(e,"selected",i)}}})])])}))],2)]),t._v(" "),t.label?n("span",{staticStyle:{opacity:"0.4","margin-top":"8px",display:"inline-block","font-size":"13px"}},[t._v(t._s(t.label))]):t._e(),t._v(" "),n("footer",[n("button",{attrs:{"data-link":t.link},on:{contextmenu:function(e){return e.preventDefault(),t.openQualityModal(e)},click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[t._v("\n\t\t\t"+t._s(""+t.$t("globals.download",[t.$tc("globals.listTabs."+t.type,1)]))+"\n\t\t")]),t._v(" "),n("button",{staticClass:"with_icon",attrs:{"data-link":t.selectedLinks()},on:{contextmenu:function(e){return e.preventDefault(),t.openQualityModal(e)},click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[t._v("\n\t\t\t"+t._s(t.$t("tracklist.downloadSelection"))),n("i",{staticClass:"material-icons"},[t._v("file_download")])]),t._v(" "),n("button",{staticClass:"back-button",on:{click:t.backTab}},[t._v(t._s(t.$t("globals.back")))])])])};kd._withStripped=!0;var Cd=function(t,e,n,a,r,i,s,o){const l=("function"==typeof n?n.options:n)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\TracklistTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=a;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(n,a){return t.call(a),e(n,a)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:kd,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v("music_note")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v("timer")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",[e("div",{staticClass:"table__cell-content table__cell-content--vertical-center",staticStyle:{opacity:"0.54"}},[e("i",{staticClass:"material-icons"},[this._v("album")])])])}]},(function(t){t&&t("data-v-04de0dda_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TracklistTab.vue"},media:void 0})}),Ad,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,r){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const i=a?r.media||"default":t,s=n[i]||(n[i]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let n=r.source,o=s.ids.length;if(s.ids.push(t),a&&(s.element=s.element||document.querySelector("style[data-group="+i+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",r.media&&t.setAttribute("media",r.media),a&&(t.setAttribute("data-group",i),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(a&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(n),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(n),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const xd={name:"the-home-tab",data:()=>({playlists:[],albums:[]}),methods:{artistView:op.bind(null,"artist"),albumView:op.bind(null,"album"),playlistView:op.bind(null,"playlist"),openSettings(){document.getElementById("main_settings_tablink").click()},addToQueue(t){vd.sendAddToQueue(t.currentTarget.dataset.link)},openQualityModal(t){this.$root.$emit("QualityModal:open",t.currentTarget.dataset.link)},initHome(t){const{playlists:{data:e},albums:{data:n}}=t;this.playlists=e,this.albums=n}},mounted(){console.log("home mounted"),this.$refs.root.style.display="block",localStorage.getItem("arl")&&this.$refs.notLogged.classList.add("hide"),to.on("init_home",this.initHome)},beforeDestroy(){console.log("home bef dest"),this.$refs.root.style.display="none"}};var Td=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"main_tabcontent",attrs:{id:"home_tab"}},[n("h2",{staticClass:"page_heading"},[t._v(t._s(t.$t("globals.welcome")))]),t._v(" "),n("section",{ref:"notLogged",staticClass:"home_section",attrs:{id:"home_not_logged_in"}},[n("p",{attrs:{id:"home_not_logged_text"}},[t._v(t._s(t.$t("home.needTologin")))]),t._v(" "),n("button",{attrs:{type:"button",name:"button"},on:{click:t.openSettings}},[t._v(t._s(t.$t("home.openSettings")))])]),t._v(" "),t.playlists.length?n("section",{staticClass:"home_section"},[n("h3",{staticClass:"section_heading"},[t._v(t._s(t.$t("home.sections.popularPlaylists")))]),t._v(" "),n("div",{staticClass:"release_grid"},t._l(t.playlists,(function(e){return n("div",{key:e.id,staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.playlistView}},[n("div",{staticClass:"cover_container"},[n("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),n("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link},on:{contextmenu:function(e){return e.preventDefault(),t.openQualityModal(e)},click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[n("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),n("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),n("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("globals.by",[e.user.name])+" - "+t.$tc("globals.listTabs.trackN",e.nb_tracks))+"\n\t\t\t\t")])])})),0)]):t._e(),t._v(" "),t.albums.length?n("section",{staticClass:"home_section"},[n("h3",{staticClass:"section_heading"},[t._v(t._s(t.$t("home.sections.popularAlbums")))]),t._v(" "),n("div",{staticClass:"release_grid"},t._l(t.albums,(function(e){return n("div",{key:e.id,staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.albumView}},[n("div",{staticClass:"cover_container"},[n("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.cover_medium}}),t._v(" "),n("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link},on:{contextmenu:function(e){return e.preventDefault(),t.openQualityModal(e)},click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[n("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),n("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),n("p",{staticClass:"secondary-text"},[t._v(t._s(""+t.$t("globals.by",[e.artist.name])))])])})),0)]):t._e()])};Td._withStripped=!0;var $d=function(t,e,n,a,r,i,s,o){const l=("function"==typeof n?n.options:n)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\TheHomeTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=a;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(n,a){return t.call(a),e(n,a)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:Td,staticRenderFns:[]},(function(t){t&&t("data-v-1a777f90_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TheHomeTab.vue"},media:void 0})}),xd,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,r){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const i=a?r.media||"default":t,s=n[i]||(n[i]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let n=r.source,o=s.ids.length;if(s.ids.push(t),a&&(s.element=s.element||document.querySelector("style[data-group="+i+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",r.media&&t.setAttribute("media",r.media),a&&(t.setAttribute("data-group",i),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(a&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(n),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(n),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const Sd={name:"the-charts-tab",data:()=>({country:"",id:0,countries:[],chart:[]}),methods:{artistView:op.bind(null,"artist"),albumView:op.bind(null,"album"),playPausePreview(t){eo.$emit("trackPreview:playPausePreview",t)},previewMouseEnter(t){eo.$emit("trackPreview:previewMouseEnter",t)},previewMouseLeave(t){eo.$emit("trackPreview:previewMouseLeave",t)},convertDuration:wd.convertDuration,addToQueue(t){t.stopPropagation(),vd.sendAddToQueue(t.currentTarget.dataset.link)},openQualityModal(t){this.$root.$emit("QualityModal:open",t.currentTarget.dataset.link)},getTrackList(t){document.getElementById("content").scrollTo(0,0);const{currentTarget:{dataset:{title:e}},currentTarget:{dataset:{id:n}}}=t;this.country=e,localStorage.setItem("chart",this.country),this.id=n,to.emit("getChartTracks",this.id)},setTracklist(t){this.chart=t},changeCountry(){this.country="",this.id=0},initCharts(t){if(this.countries=t,this.country=localStorage.getItem("chart")||"",!this.country)return;let e=0;for(;e-1}function ao(e,t){return no(e)&&e._isRouter&&(null==t||e.type===t)}function ro(e,t){for(var n in t)e[n]=t[n];return e}var so={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,a=t.children,i=t.parent,r=t.data;r.routerView=!0;for(var s=i.$createElement,o=n.name,l=i.$route,c=i._routerViewCache||(i._routerViewCache={}),u=0,d=!1;i&&i._routerRoot!==i;){var p=i.$vnode?i.$vnode.data:{};p.routerView&&u++,p.keepAlive&&i._directInactive&&i._inactive&&(d=!0),i=i.$parent}if(r.routerViewDepth=u,d){var h=c[o],f=h&&h.component;return f?(h.configProps&&oo(f,r,h.route,h.configProps),s(f,r,a)):s()}var m=l.matched[u],v=m&&m.components[o];if(!m||!v)return c[o]=null,s();c[o]={component:v},r.registerRouteInstance=function(e,t){var n=m.instances[o];(t&&n!==e||!t&&n===e)&&(m.instances[o]=t)},(r.hook||(r.hook={})).prepatch=function(e,t){m.instances[o]=t.componentInstance},r.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==m.instances[o]&&(m.instances[o]=e.componentInstance)};var g=m.props&&m.props[o];return g&&(ro(c[o],{route:l,configProps:g}),oo(v,r,l,g)),s(v,r,a)}};function oo(e,t,n,a){var i=t.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0}}(n,a);if(i){i=t.props=ro({},i);var r=t.attrs=t.attrs||{};for(var s in i)e.props&&s in e.props||(r[s]=i[s],delete i[s])}}var lo=/[!'()*]/g,co=function(e){return"%"+e.charCodeAt(0).toString(16)},uo=/%2C/g,po=function(e){return encodeURIComponent(e).replace(lo,co).replace(uo,",")},ho=decodeURIComponent;function fo(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),a=ho(n.shift()),i=n.length>0?ho(n.join("=")):null;void 0===t[a]?t[a]=i:Array.isArray(t[a])?t[a].push(i):t[a]=[t[a],i]})),t):t}function mo(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return po(t);if(Array.isArray(n)){var a=[];return n.forEach((function(e){void 0!==e&&(null===e?a.push(po(t)):a.push(po(t)+"="+po(e)))})),a.join("&")}return po(t)+"="+po(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var vo=/\/?$/;function go(e,t,n,a){var i=a&&a.options.stringifyQuery,r=t.query||{};try{r=bo(r)}catch(e){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:r,params:t.params||{},fullPath:ko(t,i),matched:e?_o(e):[]};return n&&(s.redirectedFrom=ko(n,i)),Object.freeze(s)}function bo(e){if(Array.isArray(e))return e.map(bo);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=bo(e[n]);return t}return e}var yo=go(null,{path:"/"});function _o(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function ko(e,t){var n=e.path,a=e.query;void 0===a&&(a={});var i=e.hash;return void 0===i&&(i=""),(n||"/")+(t||mo)(a)+i}function wo(e,t){return t===yo?e===t:!!t&&(e.path&&t.path?e.path.replace(vo,"")===t.path.replace(vo,"")&&e.hash===t.hash&&Ao(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&Ao(e.query,t.query)&&Ao(e.params,t.params)))}function Ao(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),a=Object.keys(t);return n.length===a.length&&n.every((function(n){var a=e[n],i=t[n];return"object"==typeof a&&"object"==typeof i?Ao(a,i):String(a)===String(i)}))}function Co(e,t,n){var a=e.charAt(0);if("/"===a)return e;if("?"===a||"#"===a)return t+e;var i=t.split("/");n&&i[i.length-1]||i.pop();for(var r=e.replace(/^\//,"").split("/"),s=0;s=0&&(t=e.slice(a),e=e.slice(0,a));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}(i.path||""),c=t&&t.path||"/",u=l.path?Co(l.path,c,n||i.append):c,d=function(e,t,n){void 0===t&&(t={});var a,i=n||fo;try{a=i(e||"")}catch(e){a={}}for(var r in t)a[r]=t[r];return a}(l.query,i.query,a&&a.options.parseQuery),p=i.hash||l.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:u,query:d,hash:p}}var Wo,Go=function(){},Qo={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,a=this.$route,i=n.resolve(this.to,a,this.append),r=i.location,s=i.route,o=i.href,l={},c=n.options.linkActiveClass,u=n.options.linkExactActiveClass,d=null==c?"router-link-active":c,p=null==u?"router-link-exact-active":u,h=null==this.activeClass?d:this.activeClass,f=null==this.exactActiveClass?p:this.exactActiveClass,m=s.redirectedFrom?go(null,Ho(s.redirectedFrom),null,n):s;l[f]=wo(a,m),l[h]=this.exact?l[f]:function(e,t){return 0===e.path.replace(vo,"/").indexOf(t.path.replace(vo,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(a,m);var v=l[f]?this.ariaCurrentValue:null,g=function(e){Ko(e)&&(t.replace?n.replace(r,Go):n.push(r,Go))},b={click:Ko};Array.isArray(this.event)?this.event.forEach((function(e){b[e]=g})):b[this.event]=g;var y={class:l},_=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:o,route:s,navigate:g,isActive:l[h],isExactActive:l[f]});if(_){if(1===_.length)return _[0];if(_.length>1||!_.length)return 0===_.length?e():e("span",{},_)}if("a"===this.tag)y.on=b,y.attrs={href:o,"aria-current":v};else{var k=function e(t){var n;if(t)for(var a=0;a-1&&(o.params[p]=n.params[p]);return o.path=Vo(u.path,o.params),l(u,o,s)}if(o.path){o.params={};for(var h=0;h=e.length?n():e[i]?t(e[i],(function(){a(i+1)})):a(i+1)};a(0)}function kl(e){return function(t,n,a){var i=!1,r=0,s=null;wl(e,(function(e,t,n,o){if("function"==typeof e&&void 0===e.cid){i=!0,r++;var l,c=xl((function(t){var i;((i=t).__esModule||Cl&&"Module"===i[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:Wo.extend(t),n.components[o]=t,--r<=0&&a()})),u=xl((function(e){var t="Failed to resolve async component "+o+": "+e;s||(s=no(e)?e:new Error(t),a(s))}));try{l=e(c,u)}catch(e){u(e)}if(l)if("function"==typeof l.then)l.then(c,u);else{var d=l.component;d&&"function"==typeof d.then&&d.then(c,u)}}})),i||a()}}function wl(e,t){return Al(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Al(e){return Array.prototype.concat.apply([],e)}var Cl="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function xl(e){var t=!1;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(!t)return t=!0,e.apply(this,n)}}var Tl=1,Sl=2,Ml=3,$l=4;function Dl(e,t){return Pl(e,t,Tl,'Redirected when going from "'+e.fullPath+'" to "'+function(e){if("string"==typeof e)return e;if("path"in e)return e.path;var t={};return Ll.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}(t)+'" via a navigation guard.')}function zl(e,t){return Pl(e,t,Ml,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Pl(e,t,n,a){var i=new Error(a);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var Ll=["params","query","hash"];var Nl=function(e,t){this.router=e,this.base=function(e){if(!e)if(Yo){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=yo,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Rl(e,t,n,a){var i=wl(e,(function(e,a,i,r){var s=function(e,t){"function"!=typeof e&&(e=Wo.extend(e));return e.options[t]}(e,t);if(s)return Array.isArray(s)?s.map((function(e){return n(e,a,i,r)})):n(s,a,i,r)}));return Al(a?i.reverse():i)}function El(e,t){if(t)return function(){return e.apply(t,arguments)}}Nl.prototype.listen=function(e){this.cb=e},Nl.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Nl.prototype.onError=function(e){this.errorCbs.push(e)},Nl.prototype.transitionTo=function(e,t,n){var a=this,i=this.router.match(e,this.current);this.confirmTransition(i,(function(){var e=a.current;a.updateRoute(i),t&&t(i),a.ensureURL(),a.router.afterHooks.forEach((function(t){t&&t(i,e)})),a.ready||(a.ready=!0,a.readyCbs.forEach((function(e){e(i)})))}),(function(e){n&&n(e),e&&!a.ready&&(a.ready=!0,ao(e,Tl)?a.readyCbs.forEach((function(e){e(i)})):a.readyErrorCbs.forEach((function(t){t(e)})))}))},Nl.prototype.confirmTransition=function(e,t,n){var a,i=this,r=this.current,s=function(e){!ao(e)&&no(e)&&(i.errorCbs.length?i.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)},o=e.matched.length-1,l=r.matched.length-1;if(wo(e,r)&&o===l&&e.matched[o]===r.matched[l])return this.ensureURL(),s(Pl(a=r,e,$l,'Avoided redundant navigation to current location: "'+a.fullPath+'".'));var c=function(e,t){var n,a=Math.max(e.length,t.length);for(n=0;n0)){var t=this.router,n=t.options.scrollBehavior,a=gl&&n;a&&this.listeners.push(ol());var i=function(){var n=e.current,i=Fl(e.base);e.current===yo&&i===e._startLocation||e.transitionTo(i,(function(e){a&&ll(t,e,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var a=this,i=this.current;this.transitionTo(e,(function(e){bl(xo(a.base+e.fullPath)),ll(a.router,e,i,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var a=this,i=this.current;this.transitionTo(e,(function(e){yl(xo(a.base+e.fullPath)),ll(a.router,e,i,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(Fl(this.base)!==this.current.fullPath){var t=xo(this.base+this.current.fullPath);e?bl(t):yl(t)}},t.prototype.getCurrentLocation=function(){return Fl(this.base)},t}(Nl);function Fl(e){var t=decodeURI(window.location.pathname);return e&&0===t.toLowerCase().indexOf(e.toLowerCase())&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Ol=function(e){function t(t,n,a){e.call(this,t,n),a&&function(e){var t=Fl(e);if(!/^\/#/.test(t))return window.location.replace(xo(e+"/#"+t)),!0}(this.base)||jl()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,n=gl&&t;n&&this.listeners.push(ol());var a=function(){var t=e.current;jl()&&e.transitionTo(Bl(),(function(a){n&&ll(e.router,a,t,!0),gl||Vl(a.fullPath)}))},i=gl?"popstate":"hashchange";window.addEventListener(i,a),this.listeners.push((function(){window.removeEventListener(i,a)}))}},t.prototype.push=function(e,t,n){var a=this,i=this.current;this.transitionTo(e,(function(e){Ul(e.fullPath),ll(a.router,e,i,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var a=this,i=this.current;this.transitionTo(e,(function(e){Vl(e.fullPath),ll(a.router,e,i,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;Bl()!==t&&(e?Ul(t):Vl(t))},t.prototype.getCurrentLocation=function(){return Bl()},t}(Nl);function jl(){var e=Bl();return"/"===e.charAt(0)||(Vl("/"+e),!1)}function Bl(){var e=window.location.href,t=e.indexOf("#");if(t<0)return"";var n=(e=e.slice(t+1)).indexOf("?");if(n<0){var a=e.indexOf("#");e=a>-1?decodeURI(e.slice(0,a))+e.slice(a):decodeURI(e)}else e=decodeURI(e.slice(0,n))+e.slice(n);return e}function ql(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function Ul(e){gl?bl(ql(e)):window.location.hash=e}function Vl(e){gl?yl(ql(e)):window.location.replace(ql(e))}var Hl=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var a=this;this.transitionTo(e,(function(e){a.stack=a.stack.slice(0,a.index+1).concat(e),a.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var a=this;this.transitionTo(e,(function(e){a.stack=a.stack.slice(0,a.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var a=this.stack[n];this.confirmTransition(a,(function(){t.index=n,t.updateRoute(a)}),(function(e){ao(e,$l)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Nl),Wl=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Zo(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!gl&&!1!==e.fallback,this.fallback&&(t="hash"),Yo||(t="abstract"),this.mode=t,t){case"history":this.history=new Il(this,e.base);break;case"hash":this.history=new Ol(this,e.base,this.fallback);break;case"abstract":this.history=new Hl(this,e.base)}},Gl={currentRoute:{configurable:!0}};function Ql(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}Wl.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Gl.currentRoute.get=function(){return this.history&&this.history.current},Wl.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardownListeners()})),!this.app){this.app=e;var n=this.history;if(n instanceof Il||n instanceof Ol){var a=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),a,a)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},Wl.prototype.beforeEach=function(e){return Ql(this.beforeHooks,e)},Wl.prototype.beforeResolve=function(e){return Ql(this.resolveHooks,e)},Wl.prototype.afterEach=function(e){return Ql(this.afterHooks,e)},Wl.prototype.onReady=function(e,t){this.history.onReady(e,t)},Wl.prototype.onError=function(e){this.history.onError(e)},Wl.prototype.push=function(e,t,n){var a=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){a.history.push(e,t,n)}));this.history.push(e,t,n)},Wl.prototype.replace=function(e,t,n){var a=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){a.history.replace(e,t,n)}));this.history.replace(e,t,n)},Wl.prototype.go=function(e){this.history.go(e)},Wl.prototype.back=function(){this.go(-1)},Wl.prototype.forward=function(){this.go(1)},Wl.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},Wl.prototype.resolve=function(e,t,n){var a=Ho(e,t=t||this.history.current,n,this),i=this.match(a,t),r=i.redirectedFrom||i.fullPath;return{location:a,route:i,href:function(e,t,n){var a="hash"===n?"#"+t:t;return e?xo(e+"/"+a):a}(this.history.base,r,this.mode),normalizedTo:a,resolved:i}},Wl.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==yo&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Wl.prototype,Gl),Wl.install=function e(t){if(!e.installed||Wo!==t){e.installed=!0,Wo=t;var n=function(e){return void 0!==e},a=function(e,t){var a=e.$options._parentVnode;n(a)&&n(a=a.data)&&n(a=a.registerRouteInstance)&&a(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,a(this,this)},destroyed:function(){a(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",so),t.component("RouterLink",Qo);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Wl.version="3.3.4",Yo&&window.Vue&&window.Vue.use(Wl);var Kl="object"==typeof global&&global&&global.Object===Object&&global,Yl="object"==typeof self&&self&&self.Object===Object&&self,Jl=Kl||Yl||Function("return this")(),Xl=Jl.Symbol,Zl=Object.prototype,ec=Zl.hasOwnProperty,tc=Zl.toString,nc=Xl?Xl.toStringTag:void 0;var ac=Object.prototype.toString;var ic=Xl?Xl.toStringTag:void 0;function rc(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ic&&ic in Object(e)?function(e){var t=ec.call(e,nc),n=e[nc];try{e[nc]=void 0;var a=!0}catch(e){}var i=tc.call(e);return a&&(t?e[nc]=n:delete e[nc]),i}(e):function(e){return ac.call(e)}(e)}function sc(e){return null!=e&&"object"==typeof e}function oc(e){return"symbol"==typeof e||sc(e)&&"[object Symbol]"==rc(e)}function lc(e,t){for(var n=-1,a=null==e?0:e.length,i=Array(a);++n-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function Lc(e){return null!=e&&Pc(e.length)&&!mc(e)}var Nc=Object.prototype;function Rc(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Nc)}function Ec(e){return sc(e)&&"[object Arguments]"==rc(e)}var Ic=Object.prototype,Fc=Ic.hasOwnProperty,Oc=Ic.propertyIsEnumerable,jc=Ec(function(){return arguments}())?Ec:function(e){return sc(e)&&Fc.call(e,"callee")&&!Oc.call(e,"callee")};var Bc="object"==typeof exports&&exports&&!exports.nodeType&&exports,qc=Bc&&"object"==typeof module&&module&&!module.nodeType&&module,Uc=qc&&qc.exports===Bc?Jl.Buffer:void 0,Vc=(Uc?Uc.isBuffer:void 0)||function(){return!1},Hc={};function Wc(e){return function(t){return e(t)}}Hc["[object Float32Array]"]=Hc["[object Float64Array]"]=Hc["[object Int8Array]"]=Hc["[object Int16Array]"]=Hc["[object Int32Array]"]=Hc["[object Uint8Array]"]=Hc["[object Uint8ClampedArray]"]=Hc["[object Uint16Array]"]=Hc["[object Uint32Array]"]=!0,Hc["[object Arguments]"]=Hc["[object Array]"]=Hc["[object ArrayBuffer]"]=Hc["[object Boolean]"]=Hc["[object DataView]"]=Hc["[object Date]"]=Hc["[object Error]"]=Hc["[object Function]"]=Hc["[object Map]"]=Hc["[object Number]"]=Hc["[object Object]"]=Hc["[object RegExp]"]=Hc["[object Set]"]=Hc["[object String]"]=Hc["[object WeakMap]"]=!1;var Gc="object"==typeof exports&&exports&&!exports.nodeType&&exports,Qc=Gc&&"object"==typeof module&&module&&!module.nodeType&&module,Kc=Qc&&Qc.exports===Gc&&Kl.process,Yc=function(){try{var e=Qc&&Qc.require&&Qc.require("util").types;return e||Kc&&Kc.binding&&Kc.binding("util")}catch(e){}}(),Jc=Yc&&Yc.isTypedArray,Xc=Jc?Wc(Jc):function(e){return sc(e)&&Pc(e.length)&&!!Hc[rc(e)]},Zc=Object.prototype.hasOwnProperty;function eu(e,t){var n=cc(e),a=!n&&jc(e),i=!n&&!a&&Vc(e),r=!n&&!a&&!i&&Xc(e),s=n||a||i||r,o=s?function(e,t){for(var n=-1,a=Array(e);++n-1},vu.prototype.set=function(e,t){var n=this.__data__,a=fu(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this};var gu=Sc(Jl,"Map");function bu(e,t){var n,a,i=e.__data__;return("string"==(a=typeof(n=t))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function yu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++to))return!1;var c=r.get(e);if(c&&r.get(t))return c==t;var u=-1,d=!0,p=2&n?new Uu:void 0;for(r.set(e,t),r.set(t,e);++ut||r&&s&&l&&!o&&!c||a&&s&&l||!n&&l||!i)return 1;if(!a&&!r&&!c&&e=o?l:l*("desc"==n[a]?-1:1)}return e.index-t.index}(e,t,n)}))}var md={sendAddToQueue:function(e,t=null){""!=e&&eo.emit("addToQueue",{url:e,bitrate:t},()=>{})}};const vd={name:"artist-tab",data:()=>({currentTab:"",sortKey:"release_date",sortOrder:"desc",title:"",image:"",type:"",link:"",head:null,body:null}),methods:{backTab:lp,albumView:op.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(),md.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){this.$root.$emit("QualityModal: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},updateSelected(){window.currentStack.selected=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){this.reset();const{name:t,picture_xl:n,id:a,releases:i}=e;this.title=t,this.image=n,this.type="Artist",this.link="https://www.deezer.com/artist/"+a,""===this.currentTab&&(this.currentTab=Object.keys(i)[0]),this.sortKey="release_date",this.sortOrder="desc",this.head=[{title:this.$tc("globals.listTabs.title",1),sortKey:"title"},{title:this.$t("globals.listTabs.releaseDate"),sortKey:"release_date"},{title:"",width:"32px"}],pd(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?[]:(cc(t)||(t=null==t?[]:[t]),cc(n=a?void 0:n)||(n=null==n?[]:[n]),fd(e,t,n))):[];var e,t,n,a}},mounted(){this.$refs.root.style.display="block",console.log("artist mounted"),eo.on("show_artist",this.showArtist),to.$on("artistTab:updateSelected",this.updateSelected),to.$on("artistTab:changeTab",this.changeTab)},beforeDestroy(){console.log("artist bef dest"),this.$refs.root.style.display="none"}};var gd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"root",staticClass:"main_tabcontent fixed_footer image_header",attrs:{id:"artist_tab"}},[n("header",{staticClass:"inline-flex",style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+e.image+"')"}},[n("h1",[e._v(e._s(e.title))]),e._v(" "),n("div",{staticClass:"fab right",attrs:{role:"button","aria-label":"download","data-link":e.link},on:{contextmenu:function(t){return t.preventDefault(),e.openQualityModal(t)},click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[n("i",{staticClass:"material-icons",attrs:{title:e.$t("globals.download_hint")}},[e._v("get_app")])])]),e._v(" "),n("div",{staticClass:"tab"},e._l(e.body,(function(t,a){return n("button",{key:a,staticClass:"selective",class:{active:a===e.currentTab},attrs:{href:"#artist_"+a},on:{click:function(t){return e.changeTab(a)}}},[e._v("\n\t\t\t"+e._s(e.$tc("globals.listTabs."+a,2))+"\n\t\t")])})),0),e._v(" "),n("table",{staticClass:"table"},[n("thead",[n("tr",e._l(e.head,(function(t){return n("th",{class:{"sort-asc":t.sortKey==e.sortKey&&"asc"==e.sortOrder,"sort-desc":t.sortKey==e.sortKey&&"desc"==e.sortOrder,sortable:t.sortKey,clickable:t.sortKey},style:{width:t.width?t.width:"auto"},on:{click:function(n){t.sortKey&&e.sortBy(t.sortKey)}}},[e._v("\n\t\t\t\t\t"+e._s(t.title)+"\n\t\t\t\t")])})),0)]),e._v(" "),n("tbody",e._l(e.showTable,(function(t){return n("tr",{key:t.id},[n("td",{staticClass:"inline-flex clickable",attrs:{"data-id":t.id},on:{click:e.albumView}},[n("img",{staticClass:"rounded coverart",staticStyle:{"margin-right":"16px",width:"56px",height:"56px"},attrs:{src:t.cover_small}}),e._v(" "),t.explicit_lyrics?n("i",{staticClass:"material-icons explicit_icon"},[e._v("\n\t\t\t\t\t\texplicit\n\t\t\t\t\t")]):e._e(),e._v("\n\t\t\t\t\t"+e._s(t.title)+"\n\t\t\t\t\t"),e.checkNewRelease(t.release_date)?n("i",{staticClass:"material-icons",staticStyle:{color:"#ff7300"}},[e._v("\n\t\t\t\t\t\tfiber_new\n\t\t\t\t\t")]):e._e()]),e._v(" "),n("td",[e._v(e._s(t.release_date))]),e._v(" "),n("td",{staticClass:"clickable",attrs:{"data-link":t.link},on:{click:function(t){return t.stopPropagation(),e.addToQueue(t)},contextmenu:function(t){return t.preventDefault(),e.openQualityModal(t)}}},[n("i",{staticClass:"material-icons",attrs:{title:e.$t("globals.download_hint")}},[e._v("\n\t\t\t\t\t\tfile_download\n\t\t\t\t\t")])])])})),0)]),e._v(" "),n("footer",[n("button",{staticClass:"back-button",on:{click:e.backTab}},[e._v(e._s(e.$t("globals.back")))])])])};gd._withStripped=!0;var bd=function(e,t,n,a,i,r,s,o){const l=("function"==typeof n?n.options:n)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\ArtistTab.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=a;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(n,a){return e.call(a),t(n,a)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:gd,staticRenderFns:[]},(function(e){e&&e("data-v-5a788dc3_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"ArtistTab.vue"},media:void 0})}),vd,void 0,!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],n=e.styles||(e.styles={}),a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=a?i.media||"default":e,s=n[r]||(n[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let n=i.source,o=s.ids.length;if(s.ids.push(e),a&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),a&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}if(a&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(n),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const e=document.createTextNode(n),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}}));function yd(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}function _d(e,t,n){var a;return function(){var i=this,r=arguments,s=function(){a=null,n||e.apply(i,r)},o=n&&!a;clearTimeout(a),a=setTimeout(s,t),o&&e.apply(i,r)}}var kd={isValidURL:yd,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,a;return n=Math.floor(e/60),t=Math.floor(n/60),a=e-60*n,n-=60*t,[t,n,a]},numberWithDots:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")},debounce:_d,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 wd={name:"tracklist-tab",data:()=>({title:"",metadata:"",release_date:"",label:"",explicit:!1,image:"",type:"empty",link:"",body:[]}),methods:{backTab:lp,artistView:op.bind(null,"artist"),albumView:op.bind(null,"album"),playPausePreview(e){to.$emit("trackPreview:playPausePreview",e)},reset(){console.log("resetto"),this.title="Loading...",this.image="",this.metadata="",this.label="",this.release_date="",this.explicit=!1,this.type="empty",this.body=[]},addToQueue(e){md.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){this.$root.$emit("QualityModal: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("spotifyPlaylist"==this.type?t.uri:t.link)}),e.join(";")},convertDuration:kd.convertDuration,showAlbum(e){this.reset();const{id:t,title:n,explicit_lyrics:a,label:i,artist:{name:r},tracks:s,tracks:{length:o},release_date:l,cover_xl:c}=e;this.type="album",this.link="https://www.deezer.com/album/"+t,this.title=n,this.explicit=a,this.label=i,this.metadata=`${r} • ${this.$tc("globals.listTabs.trackN",o)}`,this.release_date=l.substring(0,10),this.image=c,pd(s)?this.body=null:this.body=s},showPlaylist(e){this.reset(),console.log(e);const{id:t,title:n,picture_xl:a,creation_date:i,creator:{name:r},tracks:s,tracks:{length:o}}=e;this.type="playlist",this.link="https://www.deezer.com/playlist/"+t,this.title=n,this.image=a,this.release_date=i.substring(0,10),this.metadata=`${this.$t("globals.by",[r])} • ${this.$tc("globals.listTabs.trackN",o)}`,pd(s)?this.body=null:this.body=s},showSpotifyPlaylist(e){this.reset();const{uri:t,name:n,images:a,images:{length:i},owner:{display_name:r},tracks:s,tracks:{length:o}}=e;this.type="spotifyPlaylist",this.link=t,this.title=n,this.image=i?a[0].url:"https://e-cdns-images.dzcdn.net/images/cover/d41d8cd98f00b204e9800998ecf8427e/1000x1000-000000-80-0-0.jpg",this.release_date="",this.metadata=`${this.$t("globals.by",[r])} • ${this.$tc("globals.listTabs.trackN",o)}`,pd(s)?this.body=null:this.body=s},selectRow(e,t){t.selected=!t.selected}},mounted(){console.log("tracklist mounted"),this.$refs.root.style.display="block",to.$on("tracklistTab:selectRow",this.selectRow),eo.on("show_album",this.showAlbum),eo.on("show_playlist",this.showPlaylist),eo.on("show_spotifyplaylist",this.showSpotifyPlaylist)},beforeDestroy(){console.log("tracklist bef dest"),this.$refs.root.style.display="none"}};var Ad=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"root",staticClass:"main_tabcontent fixed_footer image_header",attrs:{id:"tracklist_tab"}},[n("header",{style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+e.image+"')"}},[n("h1",{staticClass:"inline-flex"},[e._v("\n\t\t\t"+e._s(e.title)+" "),e.explicit?n("i",{staticClass:"material-icons explicit_icon explicit_icon--right"},[e._v("explicit")]):e._e()]),e._v(" "),n("h2",{staticClass:"inline-flex"},[e.metadata?n("span",[e._v(e._s(e.metadata))]):e._e(),e._v(" "),e.release_date?n("span",{staticClass:"right"},[e._v(e._s(e.release_date))]):e._e()])]),e._v(" "),n("table",{staticClass:"table table--tracklist"},[n("thead",[n("tr",[e._m(0),e._v(" "),n("th",[e._v("#")]),e._v(" "),n("th",[e._v(e._s(e.$tc("globals.listTabs.title",1)))]),e._v(" "),n("th",[e._v(e._s(e.$tc("globals.listTabs.artist",1)))]),e._v(" "),"playlist"===e.type?n("th",[e._v(e._s(e.$tc("globals.listTabs.album",1)))]):e._e(),e._v(" "),e._m(1),e._v(" "),n("th",{staticClass:"table__icon table__cell--center clickable"},[n("input",{staticClass:"selectAll",attrs:{type:"checkbox"},on:{click:e.toggleAll}})])])]),e._v(" "),n("tbody",["spotifyPlaylist"!==e.type?[e._l(e.body,(function(t,a){return["track"==t.type?n("tr",{on:{click:function(n){return e.selectRow(a,t)}}},[n("td",{staticClass:"table__cell--x-small table__cell--center"},[n("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[n("i",e._g({staticClass:"material-icons",class:{preview_playlist_controls:t.preview,disabled:!t.preview},attrs:{"data-preview":t.preview,title:e.$t("globals.play_hint")}},{click:!!t.preview&&e.playPausePreview}),[e._v("\n\t\t\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t\t\t")])])]),e._v(" "),n("td",{staticClass:"table__cell--small table__cell--center track_position"},[e._v("\n\t\t\t\t\t\t\t"+e._s("album"===e.type?t.track_position:e.body.indexOf(t)+1)+"\n\t\t\t\t\t\t")]),e._v(" "),n("td",{staticClass:"table__cell--large table__cell--with-icon"},[n("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[t.explicit_lyrics?n("i",{staticClass:"material-icons explicit_icon"},[e._v("\n\t\t\t\t\t\t\t\t\texplicit\n\t\t\t\t\t\t\t\t")]):e._e(),e._v("\n\t\t\t\t\t\t\t\t"+e._s(t.title+(t.title_version&&-1==t.title.indexOf(t.title_version)?" "+t.title_version:""))+"\n\t\t\t\t\t\t\t")])]),e._v(" "),n("td",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{"data-id":t.artist.id},on:{click:e.artistView}},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.artist.name)+"\n\t\t\t\t\t\t")]),e._v(" "),"playlist"==e.type?n("td",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{"data-id":t.album.id},on:{click:e.albumView}},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.album.title)+"\n\t\t\t\t\t\t")]):e._e(),e._v(" "),n("td",{staticClass:"table__cell--center",class:{"table__cell--small":"album"===e.type,"table__cell--x-small":"playlist"===e.type}},[e._v("\n\t\t\t\t\t\t\t"+e._s(e.convertDuration(t.duration))+"\n\t\t\t\t\t\t")]),e._v(" "),n("td",{staticClass:"table__icon table__cell--center"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.selected)?e._i(t.selected,null)>-1:t.selected},on:{change:function(n){var a=t.selected,i=n.target,r=!!i.checked;if(Array.isArray(a)){var s=e._i(a,null);i.checked?s<0&&e.$set(t,"selected",a.concat([null])):s>-1&&e.$set(t,"selected",a.slice(0,s).concat(a.slice(s+1)))}else e.$set(t,"selected",r)}}})])]):"disc_separator"==t.type?n("tr",{staticClass:"table__row-no-highlight",staticStyle:{opacity:"0.54"}},[e._m(2,!0),e._v(" "),n("td",{staticClass:"table__cell--center"},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.number)+"\n\t\t\t\t\t\t")]),e._v(" "),n("td",{attrs:{colspan:"4"}})]):e._e()]}))]:e._l(e.body,(function(t,a){return n("tr",[n("td",[t.preview_url?n("i",{class:"material-icons"+(t.preview_url?" preview_playlist_controls":""),attrs:{"data-preview":t.preview_url,title:e.$t("globals.play_hint")},on:{click:e.playPausePreview}},[e._v("\n\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t")]):n("i",{staticClass:"material-icons disabled"},[e._v("play_arrow")])]),e._v(" "),n("td",[e._v(e._s(a+1))]),e._v(" "),n("td",{staticClass:"inline-flex"},[t.explicit?n("i",{staticClass:"material-icons explicit_icon"},[e._v("explicit")]):e._e(),e._v("\n\t\t\t\t\t\t"+e._s(t.name)+"\n\t\t\t\t\t")]),e._v(" "),n("td",[e._v(e._s(t.artists[0].name))]),e._v(" "),n("td",[e._v(e._s(t.album.name))]),e._v(" "),n("td",[e._v(e._s(e.convertDuration(Math.floor(t.duration_ms/1e3))))]),e._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.selected)?e._i(t.selected,null)>-1:t.selected},on:{change:function(n){var a=t.selected,i=n.target,r=!!i.checked;if(Array.isArray(a)){var s=e._i(a,null);i.checked?s<0&&e.$set(t,"selected",a.concat([null])):s>-1&&e.$set(t,"selected",a.slice(0,s).concat(a.slice(s+1)))}else e.$set(t,"selected",r)}}})])])}))],2)]),e._v(" "),e.label?n("span",{staticStyle:{opacity:"0.4","margin-top":"8px",display:"inline-block","font-size":"13px"}},[e._v(e._s(e.label))]):e._e(),e._v(" "),n("footer",[n("button",{attrs:{"data-link":e.link},on:{contextmenu:function(t){return t.preventDefault(),e.openQualityModal(t)},click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[e._v("\n\t\t\t"+e._s(""+e.$t("globals.download",[e.$tc("globals.listTabs."+e.type,1)]))+"\n\t\t")]),e._v(" "),n("button",{staticClass:"with_icon",attrs:{"data-link":e.selectedLinks()},on:{contextmenu:function(t){return t.preventDefault(),e.openQualityModal(t)},click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[e._v("\n\t\t\t"+e._s(e.$t("tracklist.downloadSelection"))),n("i",{staticClass:"material-icons"},[e._v("file_download")])]),e._v(" "),n("button",{staticClass:"back-button",on:{click:e.backTab}},[e._v(e._s(e.$t("globals.back")))])])])};Ad._withStripped=!0;var Cd=function(e,t,n,a,i,r,s,o){const l=("function"==typeof n?n.options:n)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\TracklistTab.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=a;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(n,a){return e.call(a),t(n,a)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:Ad,staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("th",[t("i",{staticClass:"material-icons"},[this._v("music_note")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("th",[t("i",{staticClass:"material-icons"},[this._v("timer")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("td",[t("div",{staticClass:"table__cell-content table__cell-content--vertical-center",staticStyle:{opacity:"0.54"}},[t("i",{staticClass:"material-icons"},[this._v("album")])])])}]},(function(e){e&&e("data-v-04de0dda_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TracklistTab.vue"},media:void 0})}),wd,void 0,!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],n=e.styles||(e.styles={}),a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=a?i.media||"default":e,s=n[r]||(n[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let n=i.source,o=s.ids.length;if(s.ids.push(e),a&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),a&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}if(a&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(n),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const e=document.createTextNode(n),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}}));const xd={name:"the-home-tab",data:()=>({playlists:[],albums:[]}),methods:{artistView:op.bind(null,"artist"),albumView:op.bind(null,"album"),playlistView:op.bind(null,"playlist"),openSettings(){document.getElementById("main_settings_tablink").click()},addToQueue(e){md.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){this.$root.$emit("QualityModal:open",e.currentTarget.dataset.link)},initHome(e){const{playlists:{data:t},albums:{data:n}}=e;this.playlists=t,this.albums=n}},mounted(){console.log("home mounted"),this.$refs.root.style.display="block",localStorage.getItem("arl")&&this.$refs.notLogged.classList.add("hide"),eo.on("init_home",this.initHome)},beforeDestroy(){console.log("home bef dest"),this.$refs.root.style.display="none"}};var Td=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"root",staticClass:"main_tabcontent",attrs:{id:"home_tab"}},[n("h2",{staticClass:"page_heading"},[e._v(e._s(e.$t("globals.welcome")))]),e._v(" "),n("section",{ref:"notLogged",staticClass:"home_section",attrs:{id:"home_not_logged_in"}},[n("p",{attrs:{id:"home_not_logged_text"}},[e._v(e._s(e.$t("home.needTologin")))]),e._v(" "),n("button",{attrs:{type:"button",name:"button"},on:{click:e.openSettings}},[e._v(e._s(e.$t("home.openSettings")))])]),e._v(" "),e.playlists.length?n("section",{staticClass:"home_section"},[n("h3",{staticClass:"section_heading"},[e._v(e._s(e.$t("home.sections.popularPlaylists")))]),e._v(" "),n("div",{staticClass:"release_grid"},e._l(e.playlists,(function(t){return n("div",{key:t.id,staticClass:"release clickable",attrs:{"data-id":t.id},on:{click:e.playlistView}},[n("div",{staticClass:"cover_container"},[n("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:t.picture_medium}}),e._v(" "),n("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":t.link},on:{contextmenu:function(t){return t.preventDefault(),e.openQualityModal(t)},click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[n("i",{staticClass:"material-icons",attrs:{title:e.$t("globals.download_hint")}},[e._v("get_app")])])]),e._v(" "),n("p",{staticClass:"primary-text"},[e._v(e._s(t.title))]),e._v(" "),n("p",{staticClass:"secondary-text"},[e._v("\n\t\t\t\t\t"+e._s(e.$t("globals.by",[t.user.name])+" - "+e.$tc("globals.listTabs.trackN",t.nb_tracks))+"\n\t\t\t\t")])])})),0)]):e._e(),e._v(" "),e.albums.length?n("section",{staticClass:"home_section"},[n("h3",{staticClass:"section_heading"},[e._v(e._s(e.$t("home.sections.popularAlbums")))]),e._v(" "),n("div",{staticClass:"release_grid"},e._l(e.albums,(function(t){return n("div",{key:t.id,staticClass:"release clickable",attrs:{"data-id":t.id},on:{click:e.albumView}},[n("div",{staticClass:"cover_container"},[n("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:t.cover_medium}}),e._v(" "),n("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":t.link},on:{contextmenu:function(t){return t.preventDefault(),e.openQualityModal(t)},click:function(t){return t.stopPropagation(),e.addToQueue(t)}}},[n("i",{staticClass:"material-icons",attrs:{title:e.$t("globals.download_hint")}},[e._v("get_app")])])]),e._v(" "),n("p",{staticClass:"primary-text"},[e._v(e._s(t.title))]),e._v(" "),n("p",{staticClass:"secondary-text"},[e._v(e._s(""+e.$t("globals.by",[t.artist.name])))])])})),0)]):e._e()])};Td._withStripped=!0;var Sd=function(e,t,n,a,i,r,s,o){const l=("function"==typeof n?n.options:n)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\TheHomeTab.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=a;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(n,a){return e.call(a),t(n,a)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:Td,staticRenderFns:[]},(function(e){e&&e("data-v-1a777f90_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TheHomeTab.vue"},media:void 0})}),xd,void 0,!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],n=e.styles||(e.styles={}),a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=a?i.media||"default":e,s=n[r]||(n[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let n=i.source,o=s.ids.length;if(s.ids.push(e),a&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),a&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}if(a&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(n),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const e=document.createTextNode(n),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}}));const Md={name:"the-charts-tab",data:()=>({country:"",id:0,countries:[],chart:[]}),methods:{artistView:op.bind(null,"artist"),albumView:op.bind(null,"album"),playPausePreview(e){to.$emit("trackPreview:playPausePreview",e)},previewMouseEnter(e){to.$emit("trackPreview:previewMouseEnter",e)},previewMouseLeave(e){to.$emit("trackPreview:previewMouseLeave",e)},convertDuration:kd.convertDuration,addToQueue(e){e.stopPropagation(),md.sendAddToQueue(e.currentTarget.dataset.link)},openQualityModal(e){this.$root.$emit("QualityModal: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,eo.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-1)}return e.lib=e.prototype={toastify:"1.8.0",constructor:e,init:function(t){return t||(t={}),this.options={},this.toastElement=null,this.options.text=t.text||"Hi there!",this.options.node=t.node,this.options.duration=0===t.duration?0:t.duration||3e3,this.options.selector=t.selector,this.options.callback=t.callback||function(){},this.options.destination=t.destination,this.options.newWindow=t.newWindow||!1,this.options.close=t.close||!1,this.options.gravity="bottom"===t.gravity?"toastify-bottom":"toastify-top",this.options.positionLeft=t.positionLeft||!1,this.options.position=t.position||"",this.options.backgroundColor=t.backgroundColor,this.options.avatar=t.avatar||"",this.options.className=t.className||"",this.options.stopOnFocus=void 0===t.stopOnFocus||t.stopOnFocus,this.options.onClick=t.onClick,this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var t=document.createElement("div");if(t.className="toastify on "+this.options.className,this.options.position?t.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(t.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):t.className+=" toastify-right",t.className+=" "+this.options.gravity,this.options.backgroundColor&&(t.style.background=this.options.backgroundColor),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(t.innerHTML=this.options.text,""!==this.options.avatar){var e=document.createElement("img");e.src=this.options.avatar,e.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?t.appendChild(e):t.insertAdjacentElement("beforeend",e)}if(!0===this.options.close){var n=document.createElement("span");n.innerHTML="✖",n.className="toast-close",n.addEventListener("click",function(t){t.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var a=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&a>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0){const e=this;t.addEventListener("mouseover",(function(e){window.clearTimeout(t.timeOutValue)})),t.addEventListener("mouseleave",(function(){t.timeOutValue=window.setTimeout((function(){e.removeElement(t)}),e.options.duration)}))}return void 0!==this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),this.options.onClick()}.bind(this)),t},showToast:function(){var t;if(this.toastElement=this.buildToast(),!(t=void 0===this.options.selector?document.body:document.getElementById(this.options.selector)))throw"Root element is not defined";return t.insertBefore(this.toastElement,t.firstChild),e.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(t){t.className=t.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),e.reposition()}.bind(this),400)}},e.reposition=function(){for(var t,e={top:15,bottom:15},a={top:15,bottom:15},r={top:15,bottom:15},i=document.getElementsByClassName("toastify"),s=0;s0?window.innerWidth:screen.width)<=360?(i[s].style[t]=r[t]+"px",r[t]+=o+15):!0===n(i[s],"toastify-left")?(i[s].style[t]=e[t]+"px",e[t]+=o+15):(i[s].style[t]=a[t]+"px",a[t]+=o+15)}return this},e.lib.init.prototype=e.lib,e}))})),Id=Dd((function(t){ +!function(t,n){e.exports?e.exports=n():t.Toastify=n()}(zd,(function(e){var t=function(e){return new t.lib.init(e)};function n(e,t){return!(!e||"string"!=typeof t)&&!!(e.className&&e.className.trim().split(/\s+/gi).indexOf(t)>-1)}return t.lib=t.prototype={toastify:"1.8.0",constructor:t,init:function(e){return e||(e={}),this.options={},this.toastElement=null,this.options.text=e.text||"Hi there!",this.options.node=e.node,this.options.duration=0===e.duration?0:e.duration||3e3,this.options.selector=e.selector,this.options.callback=e.callback||function(){},this.options.destination=e.destination,this.options.newWindow=e.newWindow||!1,this.options.close=e.close||!1,this.options.gravity="bottom"===e.gravity?"toastify-bottom":"toastify-top",this.options.positionLeft=e.positionLeft||!1,this.options.position=e.position||"",this.options.backgroundColor=e.backgroundColor,this.options.avatar=e.avatar||"",this.options.className=e.className||"",this.options.stopOnFocus=void 0===e.stopOnFocus||e.stopOnFocus,this.options.onClick=e.onClick,this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var e=document.createElement("div");if(e.className="toastify on "+this.options.className,this.options.position?e.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(e.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):e.className+=" toastify-right",e.className+=" "+this.options.gravity,this.options.backgroundColor&&(e.style.background=this.options.backgroundColor),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)e.appendChild(this.options.node);else if(e.innerHTML=this.options.text,""!==this.options.avatar){var t=document.createElement("img");t.src=this.options.avatar,t.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?e.appendChild(t):e.insertAdjacentElement("beforeend",t)}if(!0===this.options.close){var n=document.createElement("span");n.innerHTML="✖",n.className="toast-close",n.addEventListener("click",function(e){e.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var a=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&a>360?e.insertAdjacentElement("afterbegin",n):e.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0){const t=this;e.addEventListener("mouseover",(function(t){window.clearTimeout(e.timeOutValue)})),e.addEventListener("mouseleave",(function(){e.timeOutValue=window.setTimeout((function(){t.removeElement(e)}),t.options.duration)}))}return void 0!==this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),this.options.onClick()}.bind(this)),e},showToast:function(){var e;if(this.toastElement=this.buildToast(),!(e=void 0===this.options.selector?document.body:document.getElementById(this.options.selector)))throw"Root element is not defined";return e.insertBefore(this.toastElement,e.firstChild),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(e){e.className=e.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),e.parentNode&&e.parentNode.removeChild(e),this.options.callback.call(e),t.reposition()}.bind(this),400)}},t.reposition=function(){for(var e,t={top:15,bottom:15},a={top:15,bottom:15},i={top:15,bottom:15},r=document.getElementsByClassName("toastify"),s=0;s0?window.innerWidth:screen.width)<=360?(r[s].style[e]=i[e]+"px",i[e]+=o+15):!0===n(r[s],"toastify-left")?(r[s].style[e]=t[e]+"px",t[e]+=o+15):(r[s].style[e]=a[e]+"px",a[e]+=o+15)}return this},t.lib.init.prototype=t.lib,t}))})),Nd=Pd((function(e){ /*! * jQuery JavaScript Library v3.5.1 * https://jquery.com/ @@ -30,7 +30,7 @@ var t=Object.freeze({});function e(t){return null==t}function n(t){return null!= * * Date: 2020-05-04T22:49Z */ -!function(e,n){t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}}("undefined"!=typeof window?window:Nd,(function(t,e){var n=[],a=Object.getPrototypeOf,r=n.slice,i=n.flat?function(t){return n.flat.call(t)}:function(t){return n.concat.apply([],t)},s=n.push,o=n.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,p=d.call(Object),f={},h=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},v=function(t){return null!=t&&t===t.window},m=t.document,g={type:!0,src:!0,nonce:!0,noModule:!0};function _(t,e,n){var a,r,i=(n=n||m).createElement("script");if(i.text=t,e)for(a in g)(r=e[a]||e.getAttribute&&e.getAttribute(a))&&i.setAttribute(a,r);n.head.appendChild(i).parentNode.removeChild(i)}function y(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[c.call(t)]||"object":typeof t}var b=function(t,e){return new b.fn.init(t,e)};function w(t){var e=!!t&&"length"in t&&t.length,n=y(t);return!h(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}b.fn=b.prototype={jquery:"3.5.1",constructor:b,length:0,toArray:function(){return r.call(this)},get:function(t){return null==t?r.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=b.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return b.each(this,t)},map:function(t){return this.pushStack(b.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(b.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(b.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n0&&t-1 in e)}_.fn=_.prototype={jquery:"3.5.1",constructor:_,length:0,toArray:function(){return i.call(this)},get:function(e){return null==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=_.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return _.each(this,e)},map:function(e){return this.pushStack(_.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+F+")"+F+"*"),V=new RegExp(F+"|>"),W=new RegExp(B),Q=new RegExp("^"+M+"$"),G={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},at=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},it=function(){p()},st=bt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(E=I.call(w.childNodes),w.childNodes),E[w.childNodes.length].nodeType}catch(t){P={apply:E.length?function(t,e){D.apply(t,I.call(e))}:function(t,e){for(var n=t.length,a=0;t[n++]=e[a++];);t.length=n-1}}}function ot(t,e,a,r){var i,o,c,u,d,h,g,_=e&&e.ownerDocument,w=e?e.nodeType:9;if(a=a||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return a;if(!r&&(p(e),e=e||f,v)){if(11!==w&&(d=Z.exec(t)))if(i=d[1]){if(9===w){if(!(c=e.getElementById(i)))return a;if(c.id===i)return a.push(c),a}else if(_&&(c=_.getElementById(i))&&y(e,c)&&c.id===i)return a.push(c),a}else{if(d[2])return P.apply(a,e.getElementsByTagName(t)),a;if((i=d[3])&&n.getElementsByClassName&&e.getElementsByClassName)return P.apply(a,e.getElementsByClassName(i)),a}if(n.qsa&&!$[t+" "]&&(!m||!m.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(g=t,_=e,1===w&&(V.test(t)||H.test(t))){for((_=tt.test(t)&>(e.parentNode)||e)===e&&n.scope||((u=e.getAttribute("id"))?u=u.replace(at,rt):e.setAttribute("id",u=b)),o=(h=s(t)).length;o--;)h[o]=(u?"#"+u:":scope")+" "+yt(h[o]);g=h.join(",")}try{return P.apply(a,_.querySelectorAll(g)),a}catch(e){$(t,!0)}finally{u===b&&e.removeAttribute("id")}}}return l(t.replace(z,"$1"),e,a,r)}function lt(){var t=[];return function e(n,r){return t.push(n+" ")>a.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function ct(t){return t[b]=!0,t}function ut(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){for(var n=t.split("|"),r=n.length;r--;)a.attrHandle[n[r]]=e}function pt(t,e){var n=e&&t,a=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(a)return a;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ht(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function vt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ct((function(e){return e=+e,ct((function(n,a){for(var r,i=t([],n.length,e),s=i.length;s--;)n[r=i[s]]&&(n[r]=!(a[r]=n[r]))}))}))}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=ot.support={},i=ot.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!K.test(e||n&&n.nodeName||"HTML")},p=ot.setDocument=function(t){var e,r,s=t?t.ownerDocument||t:w;return s!=f&&9===s.nodeType&&s.documentElement?(h=(f=s).documentElement,v=!i(f),w!=f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",it,!1):r.attachEvent&&r.attachEvent("onunload",it)),n.scope=ut((function(t){return h.appendChild(t).appendChild(f.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ut((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ut((function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(f.getElementsByClassName),n.getById=ut((function(t){return h.appendChild(t).id=b,!f.getElementsByName||!f.getElementsByName(b).length})),n.getById?(a.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},a.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n=e.getElementById(t);return n?[n]:[]}}):(a.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},a.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n,a,r,i=e.getElementById(t);if(i){if((n=i.getAttributeNode("id"))&&n.value===t)return[i];for(r=e.getElementsByName(t),a=0;i=r[a++];)if((n=i.getAttributeNode("id"))&&n.value===t)return[i]}return[]}}),a.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,a=[],r=0,i=e.getElementsByTagName(t);if("*"===t){for(;n=i[r++];)1===n.nodeType&&a.push(n);return a}return i},a.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&v)return e.getElementsByClassName(t)},g=[],m=[],(n.qsa=X.test(f.querySelectorAll))&&(ut((function(t){var e;h.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+F+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+F+"*(?:value|"+R+")"),t.querySelectorAll("[id~="+b+"-]").length||m.push("~="),(e=f.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\["+F+"*name"+F+"*="+F+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ut((function(t){t.innerHTML="";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+F+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=X.test(_=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ut((function(t){n.disconnectedMatch=_.call(t,"*"),_.call(t,"[s!='']:x"),g.push("!=",B)})),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),e=X.test(h.compareDocumentPosition),y=e||X.test(h.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,a=e&&e.parentNode;return t===a||!(!a||1!==a.nodeType||!(n.contains?n.contains(a):t.compareDocumentPosition&&16&t.compareDocumentPosition(a)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},S=e?function(t,e){if(t===e)return d=!0,0;var a=!t.compareDocumentPosition-!e.compareDocumentPosition;return a||(1&(a=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===a?t==f||t.ownerDocument==w&&y(w,t)?-1:e==f||e.ownerDocument==w&&y(w,e)?1:u?O(u,t)-O(u,e):0:4&a?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,a=0,r=t.parentNode,i=e.parentNode,s=[t],o=[e];if(!r||!i)return t==f?-1:e==f?1:r?-1:i?1:u?O(u,t)-O(u,e):0;if(r===i)return pt(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)o.unshift(n);for(;s[a]===o[a];)a++;return a?pt(s[a],o[a]):s[a]==w?-1:o[a]==w?1:0},f):f},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if(p(t),n.matchesSelector&&v&&!$[e+" "]&&(!g||!g.test(e))&&(!m||!m.test(e)))try{var a=_.call(t,e);if(a||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return a}catch(t){$(e,!0)}return ot(e,f,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!=f&&p(t),y(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!=f&&p(t);var r=a.attrHandle[e.toLowerCase()],i=r&&L.call(a.attrHandle,e.toLowerCase())?r(t,e,!v):void 0;return void 0!==i?i:n.attributes||!v?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},ot.escape=function(t){return(t+"").replace(at,rt)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,a=[],r=0,i=0;if(d=!n.detectDuplicates,u=!n.sortStable&&t.slice(0),t.sort(S),d){for(;e=t[i++];)e===t[i]&&(r=a.push(i));for(;r--;)t.splice(a[r],1)}return u=null,t},r=ot.getText=function(t){var e,n="",a=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[a++];)n+=r(e);return n},(a=ot.selectors={cacheLength:50,createPseudo:ct,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=s(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=new RegExp("(^|"+F+")"+t+"("+F+"|$)"))&&C(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(a){var r=ot.attr(a,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(q," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,a,r){var i="nth"!==t.slice(0,3),s="last"!==t.slice(-4),o="of-type"===e;return 1===a&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,p,f,h,v=i!==s?"nextSibling":"previousSibling",m=e.parentNode,g=o&&e.nodeName.toLowerCase(),_=!l&&!o,y=!1;if(m){if(i){for(;v;){for(p=e;p=p[v];)if(o?p.nodeName.toLowerCase()===g:1===p.nodeType)return!1;h=v="only"===t&&!h&&"nextSibling"}return!0}if(h=[s?m.firstChild:m.lastChild],s&&_){for(y=(f=(c=(u=(d=(p=m)[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[t]||[])[0]===A&&c[1])&&c[2],p=f&&m.childNodes[f];p=++f&&p&&p[v]||(y=f=0)||h.pop();)if(1===p.nodeType&&++y&&p===e){u[t]=[A,f,y];break}}else if(_&&(y=f=(c=(u=(d=(p=e)[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[t]||[])[0]===A&&c[1]),!1===y)for(;(p=++f&&p&&p[v]||(y=f=0)||h.pop())&&((o?p.nodeName.toLowerCase()!==g:1!==p.nodeType)||!++y||(_&&((u=(d=p[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[t]=[A,y]),p!==e)););return(y-=r)===a||y%a==0&&y/a>=0}}},PSEUDO:function(t,e){var n,r=a.pseudos[t]||a.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return r[b]?r(e):r.length>1?(n=[t,t,"",e],a.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,n){for(var a,i=r(t,e),s=i.length;s--;)t[a=O(t,i[s])]=!(n[a]=i[s])})):function(t){return r(t,0,n)}):r}},pseudos:{not:ct((function(t){var e=[],n=[],a=o(t.replace(z,"$1"));return a[b]?ct((function(t,e,n,r){for(var i,s=a(t,null,r,[]),o=t.length;o--;)(i=s[o])&&(t[o]=!(e[o]=i))})):function(t,r,i){return e[0]=t,a(e,null,i,n),e[0]=null,!n.pop()}})),has:ct((function(t){return function(e){return ot(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||r(e)).indexOf(t)>-1}})),lang:ct((function(t){return Q.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=v?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===h},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:vt(!1),disabled:vt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!a.pseudos.empty(t)},header:function(t){return J.test(t.nodeName)},input:function(t){return Y.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:mt((function(){return[0]})),last:mt((function(t,e){return[e-1]})),eq:mt((function(t,e,n){return[n<0?n+e:n]})),even:mt((function(t,e){for(var n=0;ne?e:n;--a>=0;)t.push(a);return t})),gt:mt((function(t,e,n){for(var a=n<0?n+e:n;++a1?function(e,n,a){for(var r=t.length;r--;)if(!t[r](e,n,a))return!1;return!0}:t[0]}function At(t,e,n,a,r){for(var i,s=[],o=0,l=t.length,c=null!=e;o-1&&(i[c]=!(s[c]=d))}}else g=At(g===s?g.splice(h,g.length):g),r?r(null,s,g,l):P.apply(s,g)}))}function Ct(t){for(var e,n,r,i=t.length,s=a.relative[t[0].type],o=s||a.relative[" "],l=s?1:0,u=bt((function(t){return t===e}),o,!0),d=bt((function(t){return O(e,t)>-1}),o,!0),p=[function(t,n,a){var r=!s&&(a||n!==c)||((e=n).nodeType?u(t,n,a):d(t,n,a));return e=null,r}];l1&&wt(p),l>1&&yt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(z,"$1"),n,l0,r=t.length>0,i=function(i,s,o,l,u){var d,h,m,g=0,_="0",y=i&&[],b=[],w=c,k=i||r&&a.find.TAG("*",u),C=A+=null==w?1:Math.random()||.1,x=k.length;for(u&&(c=s==f||s||u);_!==x&&null!=(d=k[_]);_++){if(r&&d){for(h=0,s||d.ownerDocument==f||(p(d),o=!v);m=t[h++];)if(m(d,s||f,o)){l.push(d);break}u&&(A=C)}n&&((d=!m&&d)&&g--,i&&y.push(d))}if(g+=_,n&&_!==g){for(h=0;m=e[h++];)m(y,b,s,o);if(i){if(g>0)for(;_--;)y[_]||b[_]||(b[_]=N.call(l));b=At(b)}P.apply(l,b),u&&!i&&b.length>0&&g+e.length>1&&ot.uniqueSort(l)}return u&&(A=C,c=w),y};return n?ct(i):i}(i,r))).selector=t}return o},l=ot.select=function(t,e,n,r){var i,l,c,u,d,p="function"==typeof t&&t,f=!r&&s(t=p.selector||t);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&v&&a.relative[l[1].type]){if(!(e=(a.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return n;p&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(i=G.needsContext.test(t)?0:l.length;i--&&(c=l[i],!a.relative[u=c.type]);)if((d=a.find[u])&&(r=d(c.matches[0].replace(et,nt),tt.test(l[0].type)&>(e.parentNode)||e))){if(l.splice(i,1),!(t=r.length&&yt(l)))return P.apply(n,r),n;break}}return(p||o(t,f))(r,e,!v,n,!e||tt.test(t)&>(e.parentNode)||e),n},n.sortStable=b.split("").sort(S).join("")===b,n.detectDuplicates=!!d,p(),n.sortDetached=ut((function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))})),ut((function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")}))||dt("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ut((function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||dt("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ut((function(t){return null==t.getAttribute("disabled")}))||dt(R,(function(t,e,n){var a;if(!n)return!0===t[e]?e.toLowerCase():(a=t.getAttributeNode(e))&&a.specified?a.value:null})),ot}(t);b.find=A,b.expr=A.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=A.uniqueSort,b.text=A.getText,b.isXMLDoc=A.isXML,b.contains=A.contains,b.escapeSelector=A.escape;var k=function(t,e,n){for(var a=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&b(t).is(n))break;a.push(t)}return a},C=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},x=b.expr.match.needsContext;function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var $=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function S(t,e,n){return h(e)?b.grep(t,(function(t,a){return!!e.call(t,a,t)!==n})):e.nodeType?b.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?b.grep(t,(function(t){return o.call(e,t)>-1!==n})):b.filter(e,t,n)}b.filter=function(t,e,n){var a=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===a.nodeType?b.find.matchesSelector(a,t)?[a]:[]:b.find.matches(t,b.grep(e,(function(t){return 1===t.nodeType})))},b.fn.extend({find:function(t){var e,n,a=this.length,r=this;if("string"!=typeof t)return this.pushStack(b(t).filter((function(){for(e=0;e1?b.uniqueSort(n):n},filter:function(t){return this.pushStack(S(this,t||[],!1))},not:function(t){return this.pushStack(S(this,t||[],!0))},is:function(t){return!!S(this,"string"==typeof t&&x.test(t)?b(t):t||[],!1).length}});var L,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(b.fn.init=function(t,e,n){var a,r;if(!t)return this;if(n=n||L,"string"==typeof t){if(!(a="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:E.exec(t))||!a[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(a[1]){if(e=e instanceof b?e[0]:e,b.merge(this,b.parseHTML(a[1],e&&e.nodeType?e.ownerDocument||e:m,!0)),$.test(a[1])&&b.isPlainObject(e))for(a in e)h(this[a])?this[a](e[a]):this.attr(a,e[a]);return this}return(r=m.getElementById(a[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):h(t)?void 0!==n.ready?n.ready(t):t(b):b.makeArray(t,this)}).prototype=b.fn,L=b(m);var N=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function P(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}b.fn.extend({has:function(t){var e=b(t,this),n=e.length;return this.filter((function(){for(var t=0;t-1:1===n.nodeType&&b.find.matchesSelector(n,t))){i.push(n);break}return this.pushStack(i.length>1?b.uniqueSort(i):i)},index:function(t){return t?"string"==typeof t?o.call(b(t),this[0]):o.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),b.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return k(t,"parentNode")},parentsUntil:function(t,e,n){return k(t,"parentNode",n)},next:function(t){return P(t,"nextSibling")},prev:function(t){return P(t,"previousSibling")},nextAll:function(t){return k(t,"nextSibling")},prevAll:function(t){return k(t,"previousSibling")},nextUntil:function(t,e,n){return k(t,"nextSibling",n)},prevUntil:function(t,e,n){return k(t,"previousSibling",n)},siblings:function(t){return C((t.parentNode||{}).firstChild,t)},children:function(t){return C(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(T(t,"template")&&(t=t.content||t),b.merge([],t.childNodes))}},(function(t,e){b.fn[t]=function(n,a){var r=b.map(this,e,n);return"Until"!==t.slice(-5)&&(a=n),a&&"string"==typeof a&&(r=b.filter(a,r)),this.length>1&&(D[t]||b.uniqueSort(r),N.test(t)&&r.reverse()),this.pushStack(r)}}));var I=/[^\x20\t\r\n\f]+/g;function O(t){return t}function R(t){throw t}function F(t,e,n,a){var r;try{t&&h(r=t.promise)?r.call(t).done(e).fail(n):t&&h(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(a))}catch(t){n.apply(void 0,[t])}}b.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return b.each(t.match(I)||[],(function(t,n){e[n]=!0})),e}(t):b.extend({},t);var e,n,a,r,i=[],s=[],o=-1,l=function(){for(r=r||t.once,a=e=!0;s.length;o=-1)for(n=s.shift();++o-1;)i.splice(n,1),n<=o&&o--})),this},has:function(t){return t?b.inArray(t,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return r=s=[],i=n="",this},disabled:function(){return!i},lock:function(){return r=s=[],n||e||(i=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!a}};return c},b.extend({Deferred:function(e){var n=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],a="pending",r={state:function(){return a},always:function(){return i.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return b.Deferred((function(e){b.each(n,(function(n,a){var r=h(t[a[4]])&&t[a[4]];i[a[1]]((function(){var t=r&&r.apply(this,arguments);t&&h(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[a[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(e,a,r){var i=0;function s(e,n,a,r){return function(){var o=this,l=arguments,c=function(){var t,c;if(!(e=i&&(a!==R&&(o=void 0,l=[t]),n.rejectWith(o,l))}};e?u():(b.Deferred.getStackHook&&(u.stackTrace=b.Deferred.getStackHook()),t.setTimeout(u))}}return b.Deferred((function(t){n[0][3].add(s(0,t,h(r)?r:O,t.notifyWith)),n[1][3].add(s(0,t,h(e)?e:O)),n[2][3].add(s(0,t,h(a)?a:R))})).promise()},promise:function(t){return null!=t?b.extend(t,r):r}},i={};return b.each(n,(function(t,e){var s=e[2],o=e[5];r[e[1]]=s.add,o&&s.add((function(){a=o}),n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),s.add(e[3].fire),i[e[0]]=function(){return i[e[0]+"With"](this===i?void 0:this,arguments),this},i[e[0]+"With"]=s.fireWith})),r.promise(i),e&&e.call(i,i),i},when:function(t){var e=arguments.length,n=e,a=Array(n),i=r.call(arguments),s=b.Deferred(),o=function(t){return function(n){a[t]=this,i[t]=arguments.length>1?r.call(arguments):n,--e||s.resolveWith(a,i)}};if(e<=1&&(F(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||h(i[n]&&i[n].then)))return s.then();for(;n--;)F(i[n],o(n),s.reject);return s.promise()}});var M=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&M.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},b.readyException=function(e){t.setTimeout((function(){throw e}))};var j=b.Deferred();function B(){m.removeEventListener("DOMContentLoaded",B),t.removeEventListener("load",B),b.ready()}b.fn.ready=function(t){return j.then(t).catch((function(t){b.readyException(t)})),this},b.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==t&&--b.readyWait>0||j.resolveWith(m,[b]))}}),b.ready.then=j.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?t.setTimeout(b.ready):(m.addEventListener("DOMContentLoaded",B),t.addEventListener("load",B));var q=function(t,e,n,a,r,i,s){var o=0,l=t.length,c=null==n;if("object"===y(n))for(o in r=!0,n)q(t,e,o,n[o],!0,i,s);else if(void 0!==a&&(r=!0,h(a)||(s=!0),c&&(s?(e.call(t,a),e=null):(c=e,e=function(t,e,n){return c.call(b(t),n)})),e))for(;o1,null,!0)},removeData:function(t){return this.each((function(){K.remove(this,t)}))}}),b.extend({queue:function(t,e,n){var a;if(t)return e=(e||"fx")+"queue",a=G.get(t,e),n&&(!a||Array.isArray(n)?a=G.access(t,e,b.makeArray(n)):a.push(n)),a||[]},dequeue:function(t,e){e=e||"fx";var n=b.queue(t,e),a=n.length,r=n.shift(),i=b._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),a--),r&&("fx"===e&&n.unshift("inprogress"),delete i.stop,r.call(t,(function(){b.dequeue(t,e)}),i)),!a&&i&&i.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return G.get(t,n)||G.access(t,n,{empty:b.Callbacks("once memory").add((function(){G.remove(t,[e+"queue",n])}))})}}),b.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]*)/i,pt=/^$|^module$|\/(?:java|ecma)script/i;!function(){var t=m.createDocumentFragment().appendChild(m.createElement("div")),e=m.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),f.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",f.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="",f.option=!!t.lastChild}();var ft={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ht(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&T(t,e)?b.merge([t],n):n}function vt(t,e){for(var n=0,a=t.length;n",""]);var mt=/<|&#?\w+;/;function gt(t,e,n,a,r){for(var i,s,o,l,c,u,d=e.createDocumentFragment(),p=[],f=0,h=t.length;f-1)r&&r.push(i);else if(c=at(i),s=ht(d.appendChild(i),"script"),c&&vt(s),n)for(u=0;i=s[u++];)pt.test(i.type||"")&&n.push(i);return d}var _t=/^key/,yt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,bt=/^([^.]*)(?:\.(.+)|)/;function wt(){return!0}function At(){return!1}function kt(t,e){return t===function(){try{return m.activeElement}catch(t){}}()==("focus"===e)}function Ct(t,e,n,a,r,i){var s,o;if("object"==typeof e){for(o in"string"!=typeof n&&(a=a||n,n=void 0),e)Ct(t,o,n,a,e[o],i);return t}if(null==a&&null==r?(r=n,a=n=void 0):null==r&&("string"==typeof n?(r=a,a=void 0):(r=a,a=n,n=void 0)),!1===r)r=At;else if(!r)return t;return 1===i&&(s=r,(r=function(t){return b().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=b.guid++)),t.each((function(){b.event.add(this,e,r,a,n)}))}function xt(t,e,n){n?(G.set(t,e,!1),b.event.add(t,e,{namespace:!1,handler:function(t){var a,i,s=G.get(this,e);if(1&t.isTrigger&&this[e]){if(s.length)(b.event.special[e]||{}).delegateType&&t.stopPropagation();else if(s=r.call(arguments),G.set(this,e,s),a=n(this,e),this[e](),s!==(i=G.get(this,e))||a?G.set(this,e,!1):i={},s!==i)return t.stopImmediatePropagation(),t.preventDefault(),i.value}else s.length&&(G.set(this,e,{value:b.event.trigger(b.extend(s[0],b.Event.prototype),s.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===G.get(t,e)&&b.event.add(t,e,wt)}b.event={global:{},add:function(t,e,n,a,r){var i,s,o,l,c,u,d,p,f,h,v,m=G.get(t);if(W(t))for(n.handler&&(n=(i=n).handler,r=i.selector),r&&b.find.matchesSelector(nt,r),n.guid||(n.guid=b.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==b&&b.event.triggered!==e.type?b.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(I)||[""]).length;c--;)f=v=(o=bt.exec(e[c])||[])[1],h=(o[2]||"").split(".").sort(),f&&(d=b.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=b.event.special[f]||{},u=b.extend({type:f,origType:v,data:a,handler:n,guid:n.guid,selector:r,needsContext:r&&b.expr.match.needsContext.test(r),namespace:h.join(".")},i),(p=l[f])||((p=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,a,h,s)||t.addEventListener&&t.addEventListener(f,s)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,u):p.push(u),b.event.global[f]=!0)},remove:function(t,e,n,a,r){var i,s,o,l,c,u,d,p,f,h,v,m=G.hasData(t)&&G.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(I)||[""]).length;c--;)if(f=v=(o=bt.exec(e[c])||[])[1],h=(o[2]||"").split(".").sort(),f){for(d=b.event.special[f]||{},p=l[f=(a?d.delegateType:d.bindType)||f]||[],o=o[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=i=p.length;i--;)u=p[i],!r&&v!==u.origType||n&&n.guid!==u.guid||o&&!o.test(u.namespace)||a&&a!==u.selector&&("**"!==a||!u.selector)||(p.splice(i,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(t,u));s&&!p.length&&(d.teardown&&!1!==d.teardown.call(t,h,m.handle)||b.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)b.event.remove(t,f+e[c],n,a,!0);b.isEmptyObject(l)&&G.remove(t,"handle events")}},dispatch:function(t){var e,n,a,r,i,s,o=new Array(arguments.length),l=b.event.fix(t),c=(G.get(this,"events")||Object.create(null))[l.type]||[],u=b.event.special[l.type]||{};for(o[0]=l,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(i=[],s={},n=0;n-1:b.find(r,this,null,[c]).length),s[r]&&i.push(a);i.length&&o.push({elem:c,handlers:i})}return c=this,l\s*$/g;function Lt(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&b(t).children("tbody")[0]||t}function Et(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Nt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Dt(t,e){var n,a,r,i,s,o;if(1===e.nodeType){if(G.hasData(t)&&(o=G.get(t).events))for(r in G.remove(e,"handle events"),o)for(n=0,a=o[r].length;n1&&"string"==typeof m&&!f.checkClone&&$t.test(m))return t.each((function(r){var i=t.eq(r);g&&(e[0]=m.call(this,r,i.html())),It(i,e,n,a)}));if(p&&(s=(r=gt(e,t[0].ownerDocument,!1,t,a)).firstChild,1===r.childNodes.length&&(r=s),s||a)){for(l=(o=b.map(ht(r,"script"),Et)).length;d0&&vt(s,!l&&ht(t,"script")),o},cleanData:function(t){for(var e,n,a,r=b.event.special,i=0;void 0!==(n=t[i]);i++)if(W(n)){if(e=n[G.expando]){if(e.events)for(a in e.events)r[a]?b.event.remove(n,a):b.removeEvent(n,a,e.handle);n[G.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),b.fn.extend({detach:function(t){return Ot(this,t,!0)},remove:function(t){return Ot(this,t)},text:function(t){return q(this,(function(t){return void 0===t?b.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return It(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Lt(this,t).appendChild(t)}))},prepend:function(){return It(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Lt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return It(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return It(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(b.cleanData(ht(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return b.clone(this,t,e)}))},html:function(t){return q(this,(function(t){var e=this[0]||{},n=0,a=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Tt.test(t)&&!ft[(dt.exec(t)||["",""])[1].toLowerCase()]){t=b.htmlPrefilter(t);try{for(;n3,nt.removeChild(e)),o}}))}();var zt=["Webkit","Moz","ms"],Ut=m.createElement("div").style,Ht={};function Vt(t){var e=b.cssProps[t]||Ht[t];return e||(t in Ut?t:Ht[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=zt.length;n--;)if((t=zt[n]+e)in Ut)return t}(t)||t)}var Wt=/^(none|table(?!-c[ea]).+)/,Qt=/^--/,Gt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:"0",fontWeight:"400"};function Yt(t,e,n){var a=tt.exec(e);return a?Math.max(0,a[2]-(n||0))+(a[3]||"px"):e}function Jt(t,e,n,a,r,i){var s="width"===e?1:0,o=0,l=0;if(n===(a?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=b.css(t,n+et[s],!0,r)),a?("content"===n&&(l-=b.css(t,"padding"+et[s],!0,r)),"margin"!==n&&(l-=b.css(t,"border"+et[s]+"Width",!0,r))):(l+=b.css(t,"padding"+et[s],!0,r),"padding"!==n?l+=b.css(t,"border"+et[s]+"Width",!0,r):o+=b.css(t,"border"+et[s]+"Width",!0,r));return!a&&i>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-i-l-o-.5))||0),l}function Xt(t,e,n){var a=Ft(t),r=(!f.boxSizingReliable()||n)&&"border-box"===b.css(t,"boxSizing",!1,a),i=r,s=Bt(t,e,a),o="offset"+e[0].toUpperCase()+e.slice(1);if(Rt.test(s)){if(!n)return s;s="auto"}return(!f.boxSizingReliable()&&r||!f.reliableTrDimensions()&&T(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===b.css(t,"display",!1,a))&&t.getClientRects().length&&(r="border-box"===b.css(t,"boxSizing",!1,a),(i=o in t)&&(s=t[o])),(s=parseFloat(s)||0)+Jt(t,e,n||(r?"border":"content"),i,a,s)+"px"}function Zt(t,e,n,a,r){return new Zt.prototype.init(t,e,n,a,r)}b.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Bt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,a){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,i,s,o=V(e),l=Qt.test(e),c=t.style;if(l||(e=Vt(o)),s=b.cssHooks[e]||b.cssHooks[o],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,a))?r:c[e];"string"===(i=typeof n)&&(r=tt.exec(n))&&r[1]&&(n=st(t,e,r),i="number"),null!=n&&n==n&&("number"!==i||l||(n+=r&&r[3]||(b.cssNumber[o]?"":"px")),f.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,a))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,a){var r,i,s,o=V(e);return Qt.test(e)||(e=Vt(o)),(s=b.cssHooks[e]||b.cssHooks[o])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=Bt(t,e,a)),"normal"===r&&e in Kt&&(r=Kt[e]),""===n||n?(i=parseFloat(r),!0===n||isFinite(i)?i||0:r):r}}),b.each(["height","width"],(function(t,e){b.cssHooks[e]={get:function(t,n,a){if(n)return!Wt.test(b.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Xt(t,e,a):Mt(t,Gt,(function(){return Xt(t,e,a)}))},set:function(t,n,a){var r,i=Ft(t),s=!f.scrollboxSize()&&"absolute"===i.position,o=(s||a)&&"border-box"===b.css(t,"boxSizing",!1,i),l=a?Jt(t,e,a,o,i):0;return o&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(i[e])-Jt(t,e,"border",!1,i)-.5)),l&&(r=tt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=b.css(t,e)),Yt(0,n,l)}}})),b.cssHooks.marginLeft=qt(f.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Bt(t,"marginLeft"))||t.getBoundingClientRect().left-Mt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),b.each({margin:"",padding:"",border:"Width"},(function(t,e){b.cssHooks[t+e]={expand:function(n){for(var a=0,r={},i="string"==typeof n?n.split(" "):[n];a<4;a++)r[t+et[a]+e]=i[a]||i[a-2]||i[0];return r}},"margin"!==t&&(b.cssHooks[t+e].set=Yt)})),b.fn.extend({css:function(t,e){return q(this,(function(t,e,n){var a,r,i={},s=0;if(Array.isArray(e)){for(a=Ft(t),r=e.length;s1)}}),b.Tween=Zt,Zt.prototype={constructor:Zt,init:function(t,e,n,a,r,i){this.elem=t,this.prop=n,this.easing=r||b.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=a,this.unit=i||(b.cssNumber[n]?"":"px")},cur:function(){var t=Zt.propHooks[this.prop];return t&&t.get?t.get(this):Zt.propHooks._default.get(this)},run:function(t){var e,n=Zt.propHooks[this.prop];return this.options.duration?this.pos=e=b.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Zt.propHooks._default.set(this),this}},Zt.prototype.init.prototype=Zt.prototype,Zt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=b.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){b.fx.step[t.prop]?b.fx.step[t.prop](t):1!==t.elem.nodeType||!b.cssHooks[t.prop]&&null==t.elem.style[Vt(t.prop)]?t.elem[t.prop]=t.now:b.style(t.elem,t.prop,t.now+t.unit)}}},Zt.propHooks.scrollTop=Zt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},b.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},b.fx=Zt.prototype.init,b.fx.step={};var te,ee,ne,ae,re=/^(?:toggle|show|hide)$/,ie=/queueHooks$/;function se(){ee&&(!1===m.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(se):t.setTimeout(se,b.fx.interval),b.fx.tick())}function oe(){return t.setTimeout((function(){te=void 0})),te=Date.now()}function le(t,e){var n,a=0,r={height:t};for(e=e?1:0;a<4;a+=2-e)r["margin"+(n=et[a])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function ce(t,e,n){for(var a,r=(ue.tweeners[e]||[]).concat(ue.tweeners["*"]),i=0,s=r.length;i1)},removeAttr:function(t){return this.each((function(){b.removeAttr(this,t)}))}}),b.extend({attr:function(t,e,n){var a,r,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===t.getAttribute?b.prop(t,e,n):(1===i&&b.isXMLDoc(t)||(r=b.attrHooks[e.toLowerCase()]||(b.expr.match.bool.test(e)?de:void 0)),void 0!==n?null===n?void b.removeAttr(t,e):r&&"set"in r&&void 0!==(a=r.set(t,n,e))?a:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(a=r.get(t,e))?a:null==(a=b.find.attr(t,e))?void 0:a)},attrHooks:{type:{set:function(t,e){if(!f.radioValue&&"radio"===e&&T(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,a=0,r=e&&e.match(I);if(r&&1===t.nodeType)for(;n=r[a++];)t.removeAttribute(n)}}),de={set:function(t,e,n){return!1===e?b.removeAttr(t,n):t.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=pe[e]||b.find.attr;pe[e]=function(t,e,a){var r,i,s=e.toLowerCase();return a||(i=pe[s],pe[s]=r,r=null!=n(t,e,a)?s:null,pe[s]=i),r}}));var fe=/^(?:input|select|textarea|button)$/i,he=/^(?:a|area)$/i;function ve(t){return(t.match(I)||[]).join(" ")}function me(t){return t.getAttribute&&t.getAttribute("class")||""}function ge(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(I)||[]}b.fn.extend({prop:function(t,e){return q(this,b.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[b.propFix[t]||t]}))}}),b.extend({prop:function(t,e,n){var a,r,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&b.isXMLDoc(t)||(e=b.propFix[e]||e,r=b.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(a=r.set(t,n,e))?a:t[e]=n:r&&"get"in r&&null!==(a=r.get(t,e))?a:t[e]},propHooks:{tabIndex:{get:function(t){var e=b.find.attr(t,"tabindex");return e?parseInt(e,10):fe.test(t.nodeName)||he.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(b.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){b.propFix[this.toLowerCase()]=this})),b.fn.extend({addClass:function(t){var e,n,a,r,i,s,o,l=0;if(h(t))return this.each((function(e){b(this).addClass(t.call(this,e,me(this)))}));if((e=ge(t)).length)for(;n=this[l++];)if(r=me(n),a=1===n.nodeType&&" "+ve(r)+" "){for(s=0;i=e[s++];)a.indexOf(" "+i+" ")<0&&(a+=i+" ");r!==(o=ve(a))&&n.setAttribute("class",o)}return this},removeClass:function(t){var e,n,a,r,i,s,o,l=0;if(h(t))return this.each((function(e){b(this).removeClass(t.call(this,e,me(this)))}));if(!arguments.length)return this.attr("class","");if((e=ge(t)).length)for(;n=this[l++];)if(r=me(n),a=1===n.nodeType&&" "+ve(r)+" "){for(s=0;i=e[s++];)for(;a.indexOf(" "+i+" ")>-1;)a=a.replace(" "+i+" "," ");r!==(o=ve(a))&&n.setAttribute("class",o)}return this},toggleClass:function(t,e){var n=typeof t,a="string"===n||Array.isArray(t);return"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):h(t)?this.each((function(n){b(this).toggleClass(t.call(this,n,me(this),e),e)})):this.each((function(){var e,r,i,s;if(a)for(r=0,i=b(this),s=ge(t);e=s[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==t&&"boolean"!==n||((e=me(this))&&G.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":G.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,a=0;for(e=" "+t+" ";n=this[a++];)if(1===n.nodeType&&(" "+ve(me(n))+" ").indexOf(e)>-1)return!0;return!1}});var _e=/\r/g;b.fn.extend({val:function(t){var e,n,a,r=this[0];return arguments.length?(a=h(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=a?t.call(this,n,b(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=b.map(r,(function(t){return null==t?"":t+""}))),(e=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=b.valHooks[r.type]||b.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(_e,""):null==n?"":n:void 0}}),b.extend({valHooks:{option:{get:function(t){var e=b.find.attr(t,"value");return null!=e?e:ve(b.text(t))}},select:{get:function(t){var e,n,a,r=t.options,i=t.selectedIndex,s="select-one"===t.type,o=s?null:[],l=s?i+1:r.length;for(a=i<0?l:s?i:0;a-1)&&(n=!0);return n||(t.selectedIndex=-1),i}}}}),b.each(["radio","checkbox"],(function(){b.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=b.inArray(b(t).val(),e)>-1}},f.checkOn||(b.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),f.focusin="onfocusin"in t;var ye=/^(?:focusinfocus|focusoutblur)$/,be=function(t){t.stopPropagation()};b.extend(b.event,{trigger:function(e,n,a,r){var i,s,o,l,c,d,p,f,g=[a||m],_=u.call(e,"type")?e.type:e,y=u.call(e,"namespace")?e.namespace.split("."):[];if(s=f=o=a=a||m,3!==a.nodeType&&8!==a.nodeType&&!ye.test(_+b.event.triggered)&&(_.indexOf(".")>-1&&(y=_.split("."),_=y.shift(),y.sort()),c=_.indexOf(":")<0&&"on"+_,(e=e[b.expando]?e:new b.Event(_,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=a),n=null==n?[e]:b.makeArray(n,[e]),p=b.event.special[_]||{},r||!p.trigger||!1!==p.trigger.apply(a,n))){if(!r&&!p.noBubble&&!v(a)){for(l=p.delegateType||_,ye.test(l+_)||(s=s.parentNode);s;s=s.parentNode)g.push(s),o=s;o===(a.ownerDocument||m)&&g.push(o.defaultView||o.parentWindow||t)}for(i=0;(s=g[i++])&&!e.isPropagationStopped();)f=s,e.type=i>1?l:p.bindType||_,(d=(G.get(s,"events")||Object.create(null))[e.type]&&G.get(s,"handle"))&&d.apply(s,n),(d=c&&s[c])&&d.apply&&W(s)&&(e.result=d.apply(s,n),!1===e.result&&e.preventDefault());return e.type=_,r||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(g.pop(),n)||!W(a)||c&&h(a[_])&&!v(a)&&((o=a[c])&&(a[c]=null),b.event.triggered=_,e.isPropagationStopped()&&f.addEventListener(_,be),a[_](),e.isPropagationStopped()&&f.removeEventListener(_,be),b.event.triggered=void 0,o&&(a[c]=o)),e.result}},simulate:function(t,e,n){var a=b.extend(new b.Event,n,{type:t,isSimulated:!0});b.event.trigger(a,null,e)}}),b.fn.extend({trigger:function(t,e){return this.each((function(){b.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return b.event.trigger(t,e,n,!0)}}),f.focusin||b.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){b.event.simulate(e,t.target,b.event.fix(t))};b.event.special[e]={setup:function(){var a=this.ownerDocument||this.document||this,r=G.access(a,e);r||a.addEventListener(t,n,!0),G.access(a,e,(r||0)+1)},teardown:function(){var a=this.ownerDocument||this.document||this,r=G.access(a,e)-1;r?G.access(a,e,r):(a.removeEventListener(t,n,!0),G.remove(a,e))}}}));var we=t.location,Ae={guid:Date.now()},ke=/\?/;b.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+e),n};var Ce=/\[\]$/,xe=/\r?\n/g,Te=/^(?:submit|button|image|reset|file)$/i,$e=/^(?:input|select|textarea|keygen)/i;function Se(t,e,n,a){var r;if(Array.isArray(e))b.each(e,(function(e,r){n||Ce.test(t)?a(t,r):Se(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,a)}));else if(n||"object"!==y(e))a(t,e);else for(r in e)Se(t+"["+r+"]",e[r],n,a)}b.param=function(t,e){var n,a=[],r=function(t,e){var n=h(e)?e():e;a[a.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!b.isPlainObject(t))b.each(t,(function(){r(this.name,this.value)}));else for(n in t)Se(n,t[n],e,r);return a.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=b.prop(this,"elements");return t?b.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!b(this).is(":disabled")&&$e.test(this.nodeName)&&!Te.test(t)&&(this.checked||!ut.test(t))})).map((function(t,e){var n=b(this).val();return null==n?null:Array.isArray(n)?b.map(n,(function(t){return{name:e.name,value:t.replace(xe,"\r\n")}})):{name:e.name,value:n.replace(xe,"\r\n")}})).get()}});var Le=/%20/g,Ee=/#.*$/,Ne=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pe=/^(?:GET|HEAD)$/,Ie=/^\/\//,Oe={},Re={},Fe="*/".concat("*"),Me=m.createElement("a");function je(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var a,r=0,i=e.toLowerCase().match(I)||[];if(h(n))for(;a=i[r++];)"+"===a[0]?(a=a.slice(1)||"*",(t[a]=t[a]||[]).unshift(n)):(t[a]=t[a]||[]).push(n)}}function Be(t,e,n,a){var r={},i=t===Re;function s(o){var l;return r[o]=!0,b.each(t[o]||[],(function(t,o){var c=o(e,n,a);return"string"!=typeof c||i||r[c]?i?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)})),l}return s(e.dataTypes[0])||!r["*"]&&s("*")}function qe(t,e){var n,a,r=b.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:a||(a={}))[n]=e[n]);return a&&b.extend(!0,t,a),t}Me.href=we.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?qe(qe(t,b.ajaxSettings),e):qe(b.ajaxSettings,t)},ajaxPrefilter:je(Oe),ajaxTransport:je(Re),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var a,r,i,s,o,l,c,u,d,p,f=b.ajaxSetup({},n),h=f.context||f,v=f.context&&(h.nodeType||h.jquery)?b(h):b.event,g=b.Deferred(),_=b.Callbacks("once memory"),y=f.statusCode||{},w={},A={},k="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=De.exec(i);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(t,e){return null==c&&(t=A[t.toLowerCase()]=A[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)C.always(t[C.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||k;return a&&a.abort(e),x(0,e),this}};if(g.promise(C),f.url=((e||f.url||we.href)+"").replace(Ie,we.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(I)||[""],null==f.crossDomain){l=m.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Me.protocol+"//"+Me.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=b.param(f.data,f.traditional)),Be(Oe,f,n,C),c)return C;for(d in(u=b.event&&f.global)&&0==b.active++&&b.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Pe.test(f.type),r=f.url.replace(Ee,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Le,"+")):(p=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(ke.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Ne,"$1"),p=(ke.test(r)?"&":"?")+"_="+Ae.guid+++p),f.url=r+p),f.ifModified&&(b.lastModified[r]&&C.setRequestHeader("If-Modified-Since",b.lastModified[r]),b.etag[r]&&C.setRequestHeader("If-None-Match",b.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Fe+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(h,C,f)||c))return C.abort();if(k="abort",_.add(f.complete),C.done(f.success),C.fail(f.error),a=Be(Re,f,n,C)){if(C.readyState=1,u&&v.trigger("ajaxSend",[C,f]),c)return C;f.async&&f.timeout>0&&(o=t.setTimeout((function(){C.abort("timeout")}),f.timeout));try{c=!1,a.send(w,x)}catch(t){if(c)throw t;x(-1,t)}}else x(-1,"No Transport");function x(e,n,s,l){var d,p,m,w,A,k=n;c||(c=!0,o&&t.clearTimeout(o),a=void 0,i=l||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,s&&(w=function(t,e,n){for(var a,r,i,s,o=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===a&&(a=t.mimeType||e.getResponseHeader("Content-Type"));if(a)for(r in o)if(o[r]&&o[r].test(a)){l.unshift(r);break}if(l[0]in n)i=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){i=r;break}s||(s=r)}i=i||s}if(i)return i!==l[0]&&l.unshift(i),n[i]}(f,C,s)),!d&&b.inArray("script",f.dataTypes)>-1&&(f.converters["text script"]=function(){}),w=function(t,e,n,a){var r,i,s,o,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(i=u.shift();i;)if(t.responseFields[i]&&(n[t.responseFields[i]]=e),!l&&a&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(s=c[l+" "+i]||c["* "+i]))for(r in c)if((o=r.split(" "))[1]===i&&(s=c[l+" "+o[0]]||c["* "+o[0]])){!0===s?s=c[r]:!0!==c[r]&&(i=o[0],u.unshift(o[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+i}}}return{state:"success",data:e}}(f,w,C,d),d?(f.ifModified&&((A=C.getResponseHeader("Last-Modified"))&&(b.lastModified[r]=A),(A=C.getResponseHeader("etag"))&&(b.etag[r]=A)),204===e||"HEAD"===f.type?k="nocontent":304===e?k="notmodified":(k=w.state,p=w.data,d=!(m=w.error))):(m=k,!e&&k||(k="error",e<0&&(e=0))),C.status=e,C.statusText=(n||k)+"",d?g.resolveWith(h,[p,k,C]):g.rejectWith(h,[C,k,m]),C.statusCode(y),y=void 0,u&&v.trigger(d?"ajaxSuccess":"ajaxError",[C,f,d?p:m]),_.fireWith(h,[C,k]),u&&(v.trigger("ajaxComplete",[C,f]),--b.active||b.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return b.get(t,e,n,"json")},getScript:function(t,e){return b.get(t,void 0,e,"script")}}),b.each(["get","post"],(function(t,e){b[e]=function(t,n,a,r){return h(n)&&(r=r||a,a=n,n=void 0),b.ajax(b.extend({url:t,type:e,dataType:r,data:n,success:a},b.isPlainObject(t)&&t))}})),b.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),b._evalUrl=function(t,e,n){return b.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){b.globalEval(t,e,n)}})},b.fn.extend({wrapAll:function(t){var e;return this[0]&&(h(t)&&(t=t.call(this[0])),e=b(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return h(t)?this.each((function(e){b(this).wrapInner(t.call(this,e))})):this.each((function(){var e=b(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=h(t);return this.each((function(n){b(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){b(this).replaceWith(this.childNodes)})),this}}),b.expr.pseudos.hidden=function(t){return!b.expr.pseudos.visible(t)},b.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var ze={0:200,1223:204},Ue=b.ajaxSettings.xhr();f.cors=!!Ue&&"withCredentials"in Ue,f.ajax=Ue=!!Ue,b.ajaxTransport((function(e){var n,a;if(f.cors||Ue&&!e.crossDomain)return{send:function(r,i){var s,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)o[s]=e.xhrFields[s];for(s in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)o.setRequestHeader(s,r[s]);n=function(t){return function(){n&&(n=a=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===t?o.abort():"error"===t?"number"!=typeof o.status?i(0,"error"):i(o.status,o.statusText):i(ze[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=n(),a=o.onerror=o.ontimeout=n("error"),void 0!==o.onabort?o.onabort=a:o.onreadystatechange=function(){4===o.readyState&&t.setTimeout((function(){n&&a()}))},n=n("abort");try{o.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}})),b.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return b.globalEval(t),t}}}),b.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),b.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(a,r){e=b("