mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-29 00:23:23 -05:00
c89aaa895f
The cursor icon for the stream volume when the slider is inactive is now a Material Design Icon.
45 lines
782 KiB
JavaScript
45 lines
782 KiB
JavaScript
const S1=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerpolicy&&(o.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?o.credentials="include":r.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}};S1();function hl(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const ft={},Lr=[],Bn=()=>{},A1=()=>!1,T1=/^on[^a-z]/,pi=e=>T1.test(e),Wc=e=>e.startsWith("onUpdate:"),yt=Object.assign,Gc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},O1=Object.prototype.hasOwnProperty,rt=(e,t)=>O1.call(e,t),ke=Array.isArray,Mr=e=>eo(e)==="[object Map]",fr=e=>eo(e)==="[object Set]",gm=e=>eo(e)==="[object Date]",D1=e=>eo(e)==="[object RegExp]",Ne=e=>typeof e=="function",wt=e=>typeof e=="string",ei=e=>typeof e=="symbol",pt=e=>e!==null&&typeof e=="object",Kc=e=>pt(e)&&Ne(e.then)&&Ne(e.catch),rh=Object.prototype.toString,eo=e=>rh.call(e),P1=e=>eo(e).slice(8,-1),oh=e=>eo(e)==="[object Object]",Zc=e=>wt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ro=hl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_l=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I1=/-(\w)/g,cn=_l(e=>e.replace(I1,(t,n)=>n?n.toUpperCase():"")),F1=/\B([A-Z])/g,$n=_l(e=>e.replace(F1,"-$1").toLowerCase()),hi=_l(e=>e.charAt(0).toUpperCase()+e.slice(1)),Lo=_l(e=>e?`on${hi(e)}`:""),Ur=(e,t)=>!Object.is(e,t),Nr=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Wa=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ga=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ka=e=>{const t=wt(e)?Number(e):NaN;return isNaN(t)?e:t};let ym;const Uu=()=>ym||(ym=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}),R1="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",L1=hl(R1);function ln(e){if(ke(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=wt(s)?B1(s):ln(s);if(r)for(const o in r)t[o]=r[o]}return t}else{if(wt(e))return e;if(pt(e))return e}}const M1=/;(?![^(]*\))/g,N1=/:([^]+)/,V1=/\/\*[^]*?\*\//g;function B1(e){const t={};return e.replace(V1,"").split(M1).forEach(n=>{if(n){const s=n.split(N1);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ae(e){let t="";if(wt(e))t=e;else if(ke(e))for(let n=0;n<e.length;n++){const s=Ae(e[n]);s&&(t+=s+" ")}else if(pt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Eo(e){if(!e)return null;let{class:t,style:n}=e;return t&&!wt(t)&&(e.class=Ae(t)),n&&(e.style=ln(n)),e}const H1="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",U1=hl(H1);function ih(e){return!!e||e===""}function j1(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Ns(e[s],t[s]);return n}function Ns(e,t){if(e===t)return!0;let n=gm(e),s=gm(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=ei(e),s=ei(t),n||s)return e===t;if(n=ke(e),s=ke(t),n||s)return n&&s?j1(e,t):!1;if(n=pt(e),s=pt(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(a&&!u||!a&&u||!Ns(e[i],t[i]))return!1}}return String(e)===String(t)}function gl(e,t){return e.findIndex(n=>Ns(n,t))}const g=e=>wt(e)?e:e==null?"":ke(e)||pt(e)&&(e.toString===rh||!Ne(e.toString))?JSON.stringify(e,ah,2):String(e),ah=(e,t)=>t&&t.__v_isRef?ah(e,t.value):Mr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:fr(t)?{[`Set(${t.size})`]:[...t.values()]}:pt(t)&&!ke(t)&&!oh(t)?String(t):t;let hn;class Yc{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=hn,!t&&hn&&(this.index=(hn.scopes||(hn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=hn;try{return hn=this,t()}finally{hn=n}}}on(){hn=this}off(){hn=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Jc(e){return new Yc(e)}function lh(e,t=hn){t&&t.active&&t.effects.push(e)}function uh(){return hn}function q1(e){hn&&hn.cleanups.push(e)}const Xc=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ch=e=>(e.w&Vs)>0,dh=e=>(e.n&Vs)>0,W1=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Vs},G1=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];ch(r)&&!dh(r)?r.delete(e):t[n++]=r,r.w&=~Vs,r.n&=~Vs}t.length=n}},Za=new WeakMap;let $o=0,Vs=1;const ju=30;let Mn;const rr=Symbol(""),qu=Symbol("");class _i{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,lh(this,s)}run(){if(!this.active)return this.fn();let t=Mn,n=Ls;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Mn,Mn=this,Ls=!0,Vs=1<<++$o,$o<=ju?W1(this):vm(this),this.fn()}finally{$o<=ju&&G1(this),Vs=1<<--$o,Mn=this.parent,Ls=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Mn===this?this.deferStop=!0:this.active&&(vm(this),this.onStop&&this.onStop(),this.active=!1)}}function vm(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function K1(e,t){e.effect&&(e=e.effect.fn);const n=new _i(e);t&&(yt(n,t),t.scope&&lh(n,t.scope)),(!t||!t.lazy)&&n.run();const s=n.run.bind(n);return s.effect=n,s}function Z1(e){e.effect.stop()}let Ls=!0;const mh=[];function to(){mh.push(Ls),Ls=!1}function no(){const e=mh.pop();Ls=e===void 0?!0:e}function dn(e,t,n){if(Ls&&Mn){let s=Za.get(e);s||Za.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=Xc()),fh(r)}}function fh(e,t){let n=!1;$o<=ju?dh(e)||(e.n|=Vs,n=!ch(e)):n=!e.has(Mn),n&&(e.add(Mn),Mn.deps.push(e))}function _s(e,t,n,s,r,o){const i=Za.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&ke(e)){const u=Number(s);i.forEach((c,d)=>{(d==="length"||d>=u)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ke(e)?Zc(n)&&a.push(i.get("length")):(a.push(i.get(rr)),Mr(e)&&a.push(i.get(qu)));break;case"delete":ke(e)||(a.push(i.get(rr)),Mr(e)&&a.push(i.get(qu)));break;case"set":Mr(e)&&a.push(i.get(rr));break}if(a.length===1)a[0]&&Wu(a[0]);else{const u=[];for(const c of a)c&&u.push(...c);Wu(Xc(u))}}function Wu(e,t){const n=ke(e)?e:[...e];for(const s of n)s.computed&&bm(s);for(const s of n)s.computed||bm(s)}function bm(e,t){(e!==Mn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Y1(e,t){var n;return(n=Za.get(e))==null?void 0:n.get(t)}const J1=hl("__proto__,__v_isRef,__isVue"),ph=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ei)),X1=yl(),Q1=yl(!1,!0),eb=yl(!0),tb=yl(!0,!0),Cm=nb();function nb(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=et(this);for(let o=0,i=this.length;o<i;o++)dn(s,"get",o+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(et)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){to();const s=et(this)[t].apply(this,n);return no(),s}}),e}function sb(e){const t=et(this);return dn(t,"has",e),t.hasOwnProperty(e)}function yl(e=!1,t=!1){return function(s,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?Ch:bh:t?vh:yh).get(s))return s;const i=ke(s);if(!e){if(i&&rt(Cm,r))return Reflect.get(Cm,r,o);if(r==="hasOwnProperty")return sb}const a=Reflect.get(s,r,o);return(ei(r)?ph.has(r):J1(r))||(e||dn(s,"get",r),t)?a:Pt(a)?i&&Zc(r)?a:a.value:pt(a)?e?ed(a):pr(a):a}}const rb=hh(),ob=hh(!0);function hh(e=!1){return function(n,s,r,o){let i=n[s];if(cr(i)&&Pt(i)&&!Pt(r))return!1;if(!e&&(!ti(r)&&!cr(r)&&(i=et(i),r=et(r)),!ke(n)&&Pt(i)&&!Pt(r)))return i.value=r,!0;const a=ke(n)&&Zc(s)?Number(s)<n.length:rt(n,s),u=Reflect.set(n,s,r,o);return n===et(o)&&(a?Ur(r,i)&&_s(n,"set",s,r):_s(n,"add",s,r)),u}}function ib(e,t){const n=rt(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&_s(e,"delete",t,void 0),s}function ab(e,t){const n=Reflect.has(e,t);return(!ei(t)||!ph.has(t))&&dn(e,"has",t),n}function lb(e){return dn(e,"iterate",ke(e)?"length":rr),Reflect.ownKeys(e)}const _h={get:X1,set:rb,deleteProperty:ib,has:ab,ownKeys:lb},gh={get:eb,set(e,t){return!0},deleteProperty(e,t){return!0}},ub=yt({},_h,{get:Q1,set:ob}),cb=yt({},gh,{get:tb}),Qc=e=>e,vl=e=>Reflect.getPrototypeOf(e);function Pi(e,t,n=!1,s=!1){e=e.__v_raw;const r=et(e),o=et(t);n||(t!==o&&dn(r,"get",t),dn(r,"get",o));const{has:i}=vl(r),a=s?Qc:n?sd:ni;if(i.call(r,t))return a(e.get(t));if(i.call(r,o))return a(e.get(o));e!==r&&e.get(t)}function Ii(e,t=!1){const n=this.__v_raw,s=et(n),r=et(e);return t||(e!==r&&dn(s,"has",e),dn(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Fi(e,t=!1){return e=e.__v_raw,!t&&dn(et(e),"iterate",rr),Reflect.get(e,"size",e)}function wm(e){e=et(e);const t=et(this);return vl(t).has.call(t,e)||(t.add(e),_s(t,"add",e,e)),this}function zm(e,t){t=et(t);const n=et(this),{has:s,get:r}=vl(n);let o=s.call(n,e);o||(e=et(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?Ur(t,i)&&_s(n,"set",e,t):_s(n,"add",e,t),this}function km(e){const t=et(this),{has:n,get:s}=vl(t);let r=n.call(t,e);r||(e=et(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&_s(t,"delete",e,void 0),o}function xm(){const e=et(this),t=e.size!==0,n=e.clear();return t&&_s(e,"clear",void 0,void 0),n}function Ri(e,t){return function(s,r){const o=this,i=o.__v_raw,a=et(i),u=t?Qc:e?sd:ni;return!e&&dn(a,"iterate",rr),i.forEach((c,d)=>s.call(r,u(c),u(d),o))}}function Li(e,t,n){return function(...s){const r=this.__v_raw,o=et(r),i=Mr(o),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,c=r[e](...s),d=n?Qc:t?sd:ni;return!t&&dn(o,"iterate",u?qu:rr),{next(){const{value:f,done:m}=c.next();return m?{value:f,done:m}:{value:a?[d(f[0]),d(f[1])]:d(f),done:m}},[Symbol.iterator](){return this}}}}function Cs(e){return function(...t){return e==="delete"?!1:this}}function db(){const e={get(o){return Pi(this,o)},get size(){return Fi(this)},has:Ii,add:wm,set:zm,delete:km,clear:xm,forEach:Ri(!1,!1)},t={get(o){return Pi(this,o,!1,!0)},get size(){return Fi(this)},has:Ii,add:wm,set:zm,delete:km,clear:xm,forEach:Ri(!1,!0)},n={get(o){return Pi(this,o,!0)},get size(){return Fi(this,!0)},has(o){return Ii.call(this,o,!0)},add:Cs("add"),set:Cs("set"),delete:Cs("delete"),clear:Cs("clear"),forEach:Ri(!0,!1)},s={get(o){return Pi(this,o,!0,!0)},get size(){return Fi(this,!0)},has(o){return Ii.call(this,o,!0)},add:Cs("add"),set:Cs("set"),delete:Cs("delete"),clear:Cs("clear"),forEach:Ri(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Li(o,!1,!1),n[o]=Li(o,!0,!1),t[o]=Li(o,!1,!0),s[o]=Li(o,!0,!0)}),[e,n,t,s]}const[mb,fb,pb,hb]=db();function bl(e,t){const n=t?e?hb:pb:e?fb:mb;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(rt(n,r)&&r in s?n:s,r,o)}const _b={get:bl(!1,!1)},gb={get:bl(!1,!0)},yb={get:bl(!0,!1)},vb={get:bl(!0,!0)},yh=new WeakMap,vh=new WeakMap,bh=new WeakMap,Ch=new WeakMap;function bb(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Cb(e){return e.__v_skip||!Object.isExtensible(e)?0:bb(P1(e))}function pr(e){return cr(e)?e:Cl(e,!1,_h,_b,yh)}function wh(e){return Cl(e,!1,ub,gb,vh)}function ed(e){return Cl(e,!0,gh,yb,bh)}function wb(e){return Cl(e,!0,cb,vb,Ch)}function Cl(e,t,n,s,r){if(!pt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=Cb(e);if(i===0)return e;const a=new Proxy(e,i===2?s:n);return r.set(e,a),a}function or(e){return cr(e)?or(e.__v_raw):!!(e&&e.__v_isReactive)}function cr(e){return!!(e&&e.__v_isReadonly)}function ti(e){return!!(e&&e.__v_isShallow)}function td(e){return or(e)||cr(e)}function et(e){const t=e&&e.__v_raw;return t?et(t):e}function nd(e){return Wa(e,"__v_skip",!0),e}const ni=e=>pt(e)?pr(e):e,sd=e=>pt(e)?ed(e):e;function rd(e){Ls&&Mn&&(e=et(e),fh(e.dep||(e.dep=Xc())))}function wl(e,t){e=et(e);const n=e.dep;n&&Wu(n)}function Pt(e){return!!(e&&e.__v_isRef===!0)}function Xt(e){return kh(e,!1)}function zh(e){return kh(e,!0)}function kh(e,t){return Pt(e)?e:new zb(e,t)}class zb{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:et(t),this._value=n?t:ni(t)}get value(){return rd(this),this._value}set value(t){const n=this.__v_isShallow||ti(t)||cr(t);t=n?t:et(t),Ur(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ni(t),wl(this))}}function kb(e){wl(e)}function yn(e){return Pt(e)?e.value:e}function xb(e){return Ne(e)?e():yn(e)}const Eb={get:(e,t,n)=>yn(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Pt(r)&&!Pt(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function od(e){return or(e)?e:new Proxy(e,Eb)}class $b{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>rd(this),()=>wl(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function Sb(e){return new $b(e)}function Ab(e){const t=ke(e)?new Array(e.length):{};for(const n in e)t[n]=xh(e,n);return t}class Tb{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Y1(et(this._object),this._key)}}class Ob{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Db(e,t,n){return Pt(e)?e:Ne(e)?new Ob(e):pt(e)&&arguments.length>1?xh(e,t,n):Xt(e)}function xh(e,t,n){const s=e[t];return Pt(s)?s:new Tb(e,t,n)}class Pb{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new _i(t,()=>{this._dirty||(this._dirty=!0,wl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=et(this);return rd(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Ib(e,t,n=!1){let s,r;const o=Ne(e);return o?(s=e,r=Bn):(s=e.get,r=e.set),new Pb(s,r,o||!r,n)}function Fb(e,...t){}function Rb(e,t){}function fs(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){hr(o,t,n)}return r}function vn(e,t,n,s){if(Ne(e)){const o=fs(e,t,n,s);return o&&Kc(o)&&o.catch(i=>{hr(i,t,n)}),o}const r=[];for(let o=0;o<e.length;o++)r.push(vn(e[o],t,n,s));return r}function hr(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,a=n;for(;o;){const c=o.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,i,a)===!1)return}o=o.parent}const u=t.appContext.config.errorHandler;if(u){fs(u,null,10,[e,i,a]);return}}Lb(e,n,r,s)}function Lb(e,t,n,s=!0){console.error(e)}let si=!1,Gu=!1;const Wt=[];let Xn=0;const Vr=[];let cs=null,tr=0;const Eh=Promise.resolve();let id=null;function gi(e){const t=id||Eh;return e?t.then(this?e.bind(this):e):t}function Mb(e){let t=Xn+1,n=Wt.length;for(;t<n;){const s=t+n>>>1;ri(Wt[s])<e?t=s+1:n=s}return t}function zl(e){(!Wt.length||!Wt.includes(e,si&&e.allowRecurse?Xn+1:Xn))&&(e.id==null?Wt.push(e):Wt.splice(Mb(e.id),0,e),$h())}function $h(){!si&&!Gu&&(Gu=!0,id=Eh.then(Sh))}function Nb(e){const t=Wt.indexOf(e);t>Xn&&Wt.splice(t,1)}function ad(e){ke(e)?Vr.push(...e):(!cs||!cs.includes(e,e.allowRecurse?tr+1:tr))&&Vr.push(e),$h()}function Em(e,t=si?Xn+1:0){for(;t<Wt.length;t++){const n=Wt[t];n&&n.pre&&(Wt.splice(t,1),t--,n())}}function Ya(e){if(Vr.length){const t=[...new Set(Vr)];if(Vr.length=0,cs){cs.push(...t);return}for(cs=t,cs.sort((n,s)=>ri(n)-ri(s)),tr=0;tr<cs.length;tr++)cs[tr]();cs=null,tr=0}}const ri=e=>e.id==null?1/0:e.id,Vb=(e,t)=>{const n=ri(e)-ri(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Sh(e){Gu=!1,si=!0,Wt.sort(Vb);const t=Bn;try{for(Xn=0;Xn<Wt.length;Xn++){const n=Wt[Xn];n&&n.active!==!1&&fs(n,null,14)}}finally{Xn=0,Wt.length=0,Ya(),si=!1,id=null,(Wt.length||Vr.length)&&Sh()}}let Sr,Mi=[];function Ah(e,t){var n,s;Sr=e,Sr?(Sr.enabled=!0,Mi.forEach(({event:r,args:o})=>Sr.emit(r,...o)),Mi=[]):typeof window!="undefined"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{Ah(o,t)}),setTimeout(()=>{Sr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Mi=[])},3e3)):Mi=[]}function Bb(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ft;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:f,trim:m}=s[d]||ft;m&&(r=n.map(p=>wt(p)?p.trim():p)),f&&(r=n.map(Ga))}let a,u=s[a=Lo(t)]||s[a=Lo(cn(t))];!u&&o&&(u=s[a=Lo($n(t))]),u&&vn(u,e,6,r);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,vn(c,e,6,r)}}function Th(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},a=!1;if(!Ne(e)){const u=c=>{const d=Th(c,t,!0);d&&(a=!0,yt(i,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!a?(pt(e)&&s.set(e,null),null):(ke(o)?o.forEach(u=>i[u]=null):yt(i,o),pt(e)&&s.set(e,i),i)}function kl(e,t){return!e||!pi(t)?!1:(t=t.slice(2).replace(/Once$/,""),rt(e,t[0].toLowerCase()+t.slice(1))||rt(e,$n(t))||rt(e,t))}let Vt=null,xl=null;function oi(e){const t=Vt;return Vt=e,xl=e&&e.type.__scopeId||null,t}function Hb(e){xl=e}function Ub(){xl=null}const jb=e=>E;function E(e,t=Vt,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&ec(-1);const o=oi(t);let i;try{i=e(...r)}finally{oi(o),s._d&&ec(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Pa(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:a,attrs:u,emit:c,render:d,renderCache:f,data:m,setupState:p,ctx:h,inheritAttrs:_}=e;let w,b;const y=oi(e);try{if(n.shapeFlag&4){const C=r||s;w=_n(d.call(C,C,f,o,p,m,h)),b=u}else{const C=t;w=_n(C.length>1?C(o,{attrs:u,slots:a,emit:c}):C(o,null)),b=t.props?u:Wb(u)}}catch(C){Bo.length=0,hr(C,e,1),w=v(Zt)}let k=w;if(b&&_!==!1){const C=Object.keys(b),{shapeFlag:x}=k;C.length&&x&7&&(i&&C.some(Wc)&&(b=Gb(b,i)),k=ns(k,b))}return n.dirs&&(k=ns(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),w=k,oi(y),w}function qb(e){let t;for(let n=0;n<e.length;n++){const s=e[n];if(Hs(s)){if(s.type!==Zt||s.children==="v-if"){if(t)return;t=s}}else return}return t}const Wb=e=>{let t;for(const n in e)(n==="class"||n==="style"||pi(n))&&((t||(t={}))[n]=e[n]);return t},Gb=(e,t)=>{const n={};for(const s in e)(!Wc(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Kb(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:a,patchFlag:u}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?$m(s,i,c):!!i;if(u&8){const d=t.dynamicProps;for(let f=0;f<d.length;f++){const m=d[f];if(i[m]!==s[m]&&!kl(c,m))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?$m(s,i,c):!0:!!i;return!1}function $m(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!kl(n,o))return!0}return!1}function ld({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Oh=e=>e.__isSuspense,Zb={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,o,i,a,u,c){e==null?Jb(t,n,s,r,o,i,a,u,c):Xb(e,t,n,s,r,i,a,u,c)},hydrate:Qb,create:ud,normalize:e0},Yb=Zb;function ii(e,t){const n=e.props&&e.props[t];Ne(n)&&n()}function Jb(e,t,n,s,r,o,i,a,u){const{p:c,o:{createElement:d}}=u,f=d("div"),m=e.suspense=ud(e,r,s,t,f,n,o,i,a,u);c(null,m.pendingBranch=e.ssContent,f,null,s,m,o,i),m.deps>0?(ii(e,"onPending"),ii(e,"onFallback"),c(null,e.ssFallback,t,n,s,null,o,i),Br(m,e.ssFallback)):m.resolve(!1,!0)}function Xb(e,t,n,s,r,o,i,a,{p:u,um:c,o:{createElement:d}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const m=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:_,isInFallback:w,isHydrating:b}=f;if(_)f.pendingBranch=m,Nn(m,_)?(u(_,m,f.hiddenContainer,null,r,f,o,i,a),f.deps<=0?f.resolve():w&&(u(h,p,n,s,r,null,o,i,a),Br(f,p))):(f.pendingId++,b?(f.isHydrating=!1,f.activeBranch=_):c(_,r,f),f.deps=0,f.effects.length=0,f.hiddenContainer=d("div"),w?(u(null,m,f.hiddenContainer,null,r,f,o,i,a),f.deps<=0?f.resolve():(u(h,p,n,s,r,null,o,i,a),Br(f,p))):h&&Nn(m,h)?(u(h,m,n,s,r,f,o,i,a),f.resolve(!0)):(u(null,m,f.hiddenContainer,null,r,f,o,i,a),f.deps<=0&&f.resolve()));else if(h&&Nn(m,h))u(h,m,n,s,r,f,o,i,a),Br(f,m);else if(ii(t,"onPending"),f.pendingBranch=m,f.pendingId++,u(null,m,f.hiddenContainer,null,r,f,o,i,a),f.deps<=0)f.resolve();else{const{timeout:y,pendingId:k}=f;y>0?setTimeout(()=>{f.pendingId===k&&f.fallback(p)},y):y===0&&f.fallback(p)}}function ud(e,t,n,s,r,o,i,a,u,c,d=!1){const{p:f,m,um:p,n:h,o:{parentNode:_,remove:w}}=c;let b;const y=t0(e);y&&t!=null&&t.pendingBranch&&(b=t.pendingId,t.deps++);const k=e.props?Ka(e.props.timeout):void 0,C={vnode:e,parent:t,parentComponent:n,isSVG:i,container:s,hiddenContainer:r,anchor:o,deps:0,pendingId:0,timeout:typeof k=="number"?k:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(x=!1,T=!1){const{vnode:L,activeBranch:I,pendingBranch:D,pendingId:j,effects:Z,parentComponent:X,container:U}=C;if(C.isHydrating)C.isHydrating=!1;else if(!x){const te=I&&D.transition&&D.transition.mode==="out-in";te&&(I.transition.afterLeave=()=>{j===C.pendingId&&m(D,U,ie,0)});let{anchor:ie}=C;I&&(ie=h(I),p(I,X,C,!0)),te||m(D,U,ie,0)}Br(C,D),C.pendingBranch=null,C.isInFallback=!1;let q=C.parent,Ce=!1;for(;q;){if(q.pendingBranch){q.effects.push(...Z),Ce=!0;break}q=q.parent}Ce||ad(Z),C.effects=[],y&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!T&&t.resolve()),ii(L,"onResolve")},fallback(x){if(!C.pendingBranch)return;const{vnode:T,activeBranch:L,parentComponent:I,container:D,isSVG:j}=C;ii(T,"onFallback");const Z=h(L),X=()=>{!C.isInFallback||(f(null,x,D,Z,I,null,j,a,u),Br(C,x))},U=x.transition&&x.transition.mode==="out-in";U&&(L.transition.afterLeave=X),C.isInFallback=!0,p(L,I,null,!0),U||X()},move(x,T,L){C.activeBranch&&m(C.activeBranch,x,T,L),C.container=x},next(){return C.activeBranch&&h(C.activeBranch)},registerDep(x,T){const L=!!C.pendingBranch;L&&C.deps++;const I=x.vnode.el;x.asyncDep.catch(D=>{hr(D,x,0)}).then(D=>{if(x.isUnmounted||C.isUnmounted||C.pendingId!==x.suspenseId)return;x.asyncResolved=!0;const{vnode:j}=x;tc(x,D,!1),I&&(j.el=I);const Z=!I&&x.subTree.el;T(x,j,_(I||x.subTree.el),I?null:h(x.subTree),C,i,u),Z&&w(Z),ld(x,j.el),L&&--C.deps===0&&C.resolve()})},unmount(x,T){C.isUnmounted=!0,C.activeBranch&&p(C.activeBranch,n,x,T),C.pendingBranch&&p(C.pendingBranch,n,x,T)}};return C}function Qb(e,t,n,s,r,o,i,a,u){const c=t.suspense=ud(t,s,n,e.parentNode,document.createElement("div"),null,r,o,i,a,!0),d=u(e,c.pendingBranch=t.ssContent,n,c,o,i);return c.deps===0&&c.resolve(!1,!0),d}function e0(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=Sm(s?n.default:n),e.ssFallback=s?Sm(n.fallback):v(Zt)}function Sm(e){let t;if(Ne(e)){const n=mr&&e._c;n&&(e._d=!1,z()),e=e(),n&&(e._d=!0,t=un,l_())}return ke(e)&&(e=qb(e)),e=_n(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Dh(e,t){t&&t.pendingBranch?ke(e)?t.effects.push(...e):t.effects.push(e):ad(e)}function Br(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,r=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=r,ld(s,r))}function t0(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Ph(e,t){return yi(e,null,t)}function Ih(e,t){return yi(e,null,{flush:"post"})}function n0(e,t){return yi(e,null,{flush:"sync"})}const Ni={};function tn(e,t,n){return yi(e,t,n)}function yi(e,t,{immediate:n,deep:s,flush:r,onTrack:o,onTrigger:i}=ft){var a;const u=uh()===((a=Dt)==null?void 0:a.scope)?Dt:null;let c,d=!1,f=!1;if(Pt(e)?(c=()=>e.value,d=ti(e)):or(e)?(c=()=>e,s=!0):ke(e)?(f=!0,d=e.some(C=>or(C)||ti(C)),c=()=>e.map(C=>{if(Pt(C))return C.value;if(or(C))return sr(C);if(Ne(C))return fs(C,u,2)})):Ne(e)?t?c=()=>fs(e,u,2):c=()=>{if(!(u&&u.isUnmounted))return m&&m(),vn(e,u,3,[p])}:c=Bn,t&&s){const C=c;c=()=>sr(C())}let m,p=C=>{m=y.onStop=()=>{fs(C,u,4)}},h;if(qr)if(p=Bn,t?n&&vn(t,u,3,[c(),f?[]:void 0,p]):c(),r==="sync"){const C=y_();h=C.__watcherHandles||(C.__watcherHandles=[])}else return Bn;let _=f?new Array(e.length).fill(Ni):Ni;const w=()=>{if(!!y.active)if(t){const C=y.run();(s||d||(f?C.some((x,T)=>Ur(x,_[T])):Ur(C,_)))&&(m&&m(),vn(t,u,3,[C,_===Ni?void 0:f&&_[0]===Ni?[]:_,p]),_=C)}else y.run()};w.allowRecurse=!!t;let b;r==="sync"?b=w:r==="post"?b=()=>Ut(w,u&&u.suspense):(w.pre=!0,u&&(w.id=u.uid),b=()=>zl(w));const y=new _i(c,b);t?n?w():_=y.run():r==="post"?Ut(y.run.bind(y),u&&u.suspense):y.run();const k=()=>{y.stop(),u&&u.scope&&Gc(u.scope.effects,y)};return h&&h.push(k),k}function s0(e,t,n){const s=this.proxy,r=wt(e)?e.includes(".")?Fh(s,e):()=>s[e]:e.bind(s,s);let o;Ne(t)?o=t:(o=t.handler,n=t);const i=Dt;Us(this);const a=yi(r,o.bind(s),n);return i?Us(i):Ms(),a}function Fh(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function sr(e,t){if(!pt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Pt(e))sr(e.value,t);else if(ke(e))for(let n=0;n<e.length;n++)sr(e[n],t);else if(fr(e)||Mr(e))e.forEach(n=>{sr(n,t)});else if(oh(e))for(const n in e)sr(e[n],t);return e}function dt(e,t){const n=Vt;if(n===null)return e;const s=Ol(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,a,u,c=ft]=t[o];i&&(Ne(i)&&(i={mounted:i,updated:i}),i.deep&&sr(a),r.push({dir:i,instance:s,value:a,oldValue:void 0,arg:u,modifiers:c}))}return e}function Yn(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];o&&(a.oldValue=o[i].value);let u=a.dir[s];u&&(to(),vn(u,n,8,[e.el,a,e,t]),no())}}function cd(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ro(()=>{e.isMounted=!0}),Al(()=>{e.isUnmounting=!0}),e}const zn=[Function,Array],dd={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zn,onEnter:zn,onAfterEnter:zn,onEnterCancelled:zn,onBeforeLeave:zn,onLeave:zn,onAfterLeave:zn,onLeaveCancelled:zn,onBeforeAppear:zn,onAppear:zn,onAfterAppear:zn,onAppearCancelled:zn},r0={name:"BaseTransition",props:dd,setup(e,{slots:t}){const n=Dn(),s=cd();let r;return()=>{const o=t.default&&El(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const _ of o)if(_.type!==Zt){i=_;break}}const a=et(e),{mode:u}=a;if(s.isLeaving)return su(i);const c=Am(i);if(!c)return su(i);const d=jr(c,a,s,n);dr(c,d);const f=n.subTree,m=f&&Am(f);let p=!1;const{getTransitionKey:h}=c.type;if(h){const _=h();r===void 0?r=_:_!==r&&(r=_,p=!0)}if(m&&m.type!==Zt&&(!Nn(c,m)||p)){const _=jr(m,a,s,n);if(dr(m,_),u==="out-in")return s.isLeaving=!0,_.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},su(i);u==="in-out"&&c.type!==Zt&&(_.delayLeave=(w,b,y)=>{const k=Lh(s,m);k[String(m.key)]=m,w._leaveCb=()=>{b(),w._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=y})}return i}}},Rh=r0;function Lh(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function jr(e,t,n,s){const{appear:r,mode:o,persisted:i=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:m,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:_,onAppear:w,onAfterAppear:b,onAppearCancelled:y}=t,k=String(e.key),C=Lh(n,e),x=(I,D)=>{I&&vn(I,s,9,D)},T=(I,D)=>{const j=D[1];x(I,D),ke(I)?I.every(Z=>Z.length<=1)&&j():I.length<=1&&j()},L={mode:o,persisted:i,beforeEnter(I){let D=a;if(!n.isMounted)if(r)D=_||a;else return;I._leaveCb&&I._leaveCb(!0);const j=C[k];j&&Nn(e,j)&&j.el._leaveCb&&j.el._leaveCb(),x(D,[I])},enter(I){let D=u,j=c,Z=d;if(!n.isMounted)if(r)D=w||u,j=b||c,Z=y||d;else return;let X=!1;const U=I._enterCb=q=>{X||(X=!0,q?x(Z,[I]):x(j,[I]),L.delayedLeave&&L.delayedLeave(),I._enterCb=void 0)};D?T(D,[I,U]):U()},leave(I,D){const j=String(e.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return D();x(f,[I]);let Z=!1;const X=I._leaveCb=U=>{Z||(Z=!0,D(),U?x(h,[I]):x(p,[I]),I._leaveCb=void 0,C[j]===e&&delete C[j])};C[j]=e,m?T(m,[I,X]):X()},clone(I){return jr(I,t,n,s)}};return L}function su(e){if(vi(e))return e=ns(e),e.children=null,e}function Am(e){return vi(e)?e.children?e.children[0]:void 0:e}function dr(e,t){e.shapeFlag&6&&e.component?dr(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function El(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let i=e[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===Oe?(i.patchFlag&128&&r++,s=s.concat(El(i.children,t,a))):(t||i.type!==Zt)&&s.push(a!=null?ns(i,{key:a}):i)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function so(e,t){return Ne(e)?(()=>yt({name:e.name},t,{setup:e}))():e}const ir=e=>!!e.type.__asyncLoader;function o0(e){Ne(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:o,suspensible:i=!0,onError:a}=e;let u=null,c,d=0;const f=()=>(d++,u=null,m()),m=()=>{let p;return u||(p=u=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),a)return new Promise((_,w)=>{a(h,()=>_(f()),()=>w(h),d+1)});throw h}).then(h=>p!==u&&u?u:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),c=h,h)))};return so({name:"AsyncComponentWrapper",__asyncLoader:m,get __asyncResolved(){return c},setup(){const p=Dt;if(c)return()=>ru(c,p);const h=y=>{u=null,hr(y,p,13,!s)};if(i&&p.suspense||qr)return m().then(y=>()=>ru(y,p)).catch(y=>(h(y),()=>s?v(s,{error:y}):null));const _=Xt(!1),w=Xt(),b=Xt(!!r);return r&&setTimeout(()=>{b.value=!1},r),o!=null&&setTimeout(()=>{if(!_.value&&!w.value){const y=new Error(`Async component timed out after ${o}ms.`);h(y),w.value=y}},o),m().then(()=>{_.value=!0,p.parent&&vi(p.parent.vnode)&&zl(p.parent.update)}).catch(y=>{h(y),w.value=y}),()=>{if(_.value&&c)return ru(c,p);if(w.value&&s)return v(s,{error:w.value});if(n&&!b.value)return v(n)}}})}function ru(e,t){const{ref:n,props:s,children:r,ce:o}=t.vnode,i=v(e,s,r);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const vi=e=>e.type.__isKeepAlive,i0={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Dn(),s=n.ctx;if(!s.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const r=new Map,o=new Set;let i=null;const a=n.suspense,{renderer:{p:u,m:c,um:d,o:{createElement:f}}}=s,m=f("div");s.activate=(y,k,C,x,T)=>{const L=y.component;c(y,k,C,0,a),u(L.vnode,y,k,C,L,a,x,y.slotScopeIds,T),Ut(()=>{L.isDeactivated=!1,L.a&&Nr(L.a);const I=y.props&&y.props.onVnodeMounted;I&&an(I,L.parent,y)},a)},s.deactivate=y=>{const k=y.component;c(y,m,null,1,a),Ut(()=>{k.da&&Nr(k.da);const C=y.props&&y.props.onVnodeUnmounted;C&&an(C,k.parent,y),k.isDeactivated=!0},a)};function p(y){ou(y),d(y,n,a,!0)}function h(y){r.forEach((k,C)=>{const x=sc(k.type);x&&(!y||!y(x))&&_(C)})}function _(y){const k=r.get(y);!i||!Nn(k,i)?p(k):i&&ou(i),r.delete(y),o.delete(y)}tn(()=>[e.include,e.exclude],([y,k])=>{y&&h(C=>So(y,C)),k&&h(C=>!So(k,C))},{flush:"post",deep:!0});let w=null;const b=()=>{w!=null&&r.set(w,iu(n.subTree))};return ro(b),Sl(b),Al(()=>{r.forEach(y=>{const{subTree:k,suspense:C}=n,x=iu(k);if(y.type===x.type&&y.key===x.key){ou(x);const T=x.component.da;T&&Ut(T,C);return}p(y)})}),()=>{if(w=null,!t.default)return null;const y=t.default(),k=y[0];if(y.length>1)return i=null,y;if(!Hs(k)||!(k.shapeFlag&4)&&!(k.shapeFlag&128))return i=null,k;let C=iu(k);const x=C.type,T=sc(ir(C)?C.type.__asyncResolved||{}:x),{include:L,exclude:I,max:D}=e;if(L&&(!T||!So(L,T))||I&&T&&So(I,T))return i=C,k;const j=C.key==null?x:C.key,Z=r.get(j);return C.el&&(C=ns(C),k.shapeFlag&128&&(k.ssContent=C)),w=j,Z?(C.el=Z.el,C.component=Z.component,C.transition&&dr(C,C.transition),C.shapeFlag|=512,o.delete(j),o.add(j)):(o.add(j),D&&o.size>parseInt(D,10)&&_(o.values().next().value)),C.shapeFlag|=256,i=C,Oh(k.type)?k:C}}},a0=i0;function So(e,t){return ke(e)?e.some(n=>So(n,t)):wt(e)?e.split(",").includes(t):D1(e)?e.test(t):!1}function Mh(e,t){Vh(e,"a",t)}function Nh(e,t){Vh(e,"da",t)}function Vh(e,t,n=Dt){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if($l(t,s,n),n){let r=n.parent;for(;r&&r.parent;)vi(r.parent.vnode)&&l0(s,t,n,r),r=r.parent}}function l0(e,t,n,s){const r=$l(t,e,s,!0);bi(()=>{Gc(s[t],r)},n)}function ou(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function iu(e){return e.shapeFlag&128?e.ssContent:e}function $l(e,t,n=Dt,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;to(),Us(n);const a=vn(t,n,e,i);return Ms(),no(),a});return s?r.unshift(o):r.push(o),o}}const vs=e=>(t,n=Dt)=>(!qr||e==="sp")&&$l(e,(...s)=>t(...s),n),Bh=vs("bm"),ro=vs("m"),Hh=vs("bu"),Sl=vs("u"),Al=vs("bum"),bi=vs("um"),Uh=vs("sp"),jh=vs("rtg"),qh=vs("rtc");function Wh(e,t=Dt){$l("ec",e,t)}const md="components",u0="directives";function $(e,t){return pd(md,e,!0,t)||e}const Gh=Symbol.for("v-ndc");function Kh(e){return wt(e)?pd(md,e,!1)||e:e||Gh}function fd(e){return pd(u0,e)}function pd(e,t,n=!0,s=!1){const r=Vt||Dt;if(r){const o=r.type;if(e===md){const a=sc(o,!1);if(a&&(a===t||a===cn(t)||a===hi(cn(t))))return o}const i=Tm(r[e]||o[e],t)||Tm(r.appContext[e],t);return!i&&s?o:i}}function Tm(e,t){return e&&(e[t]||e[cn(t)]||e[hi(cn(t))])}function ht(e,t,n,s){let r;const o=n&&n[s];if(ke(e)||wt(e)){r=new Array(e.length);for(let i=0,a=e.length;i<a;i++)r[i]=t(e[i],i,void 0,o&&o[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o&&o[i])}else if(pt(e))if(e[Symbol.iterator])r=Array.from(e,(i,a)=>t(i,a,void 0,o&&o[a]));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,u=i.length;a<u;a++){const c=i[a];r[a]=t(e[c],c,a,o&&o[a])}}else r=[];return n&&(n[s]=r),r}function Ci(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(ke(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const o=s.fn(...r);return o&&(o.key=s.key),o}:s.fn)}return e}function ut(e,t,n={},s,r){if(Vt.isCE||Vt.parent&&ir(Vt.parent)&&Vt.parent.isCE)return t!=="default"&&(n.name=t),v("slot",n,s&&s());let o=e[t];o&&o._c&&(o._d=!1),z();const i=o&&Zh(o(n)),a=be(Oe,{key:n.key||i&&i.key||`_${t}`},i||(s?s():[]),i&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function Zh(e){return e.some(t=>Hs(t)?!(t.type===Zt||t.type===Oe&&!Zh(t.children)):!0)?e:null}function c0(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Lo(s)]=e[s];return n}const Ku=e=>e?f_(e)?Ol(e)||e.proxy:Ku(e.parent):null,Mo=yt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ku(e.parent),$root:e=>Ku(e.root),$emit:e=>e.emit,$options:e=>hd(e),$forceUpdate:e=>e.f||(e.f=()=>zl(e.update)),$nextTick:e=>e.n||(e.n=gi.bind(e.proxy)),$watch:e=>s0.bind(e)}),au=(e,t)=>e!==ft&&!e.__isScriptSetup&&rt(e,t),Zu={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:a,appContext:u}=e;let c;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(au(s,t))return i[t]=1,s[t];if(r!==ft&&rt(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&rt(c,t))return i[t]=3,o[t];if(n!==ft&&rt(n,t))return i[t]=4,n[t];Yu&&(i[t]=0)}}const d=Mo[t];let f,m;if(d)return t==="$attrs"&&dn(e,"get",t),d(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==ft&&rt(n,t))return i[t]=4,n[t];if(m=u.config.globalProperties,rt(m,t))return m[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return au(r,t)?(r[t]=n,!0):s!==ft&&rt(s,t)?(s[t]=n,!0):rt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let a;return!!n[i]||e!==ft&&rt(e,i)||au(t,i)||(a=o[0])&&rt(a,i)||rt(s,i)||rt(Mo,i)||rt(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:rt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},d0=yt({},Zu,{get(e,t){if(t!==Symbol.unscopables)return Zu.get(e,t,e)},has(e,t){return t[0]!=="_"&&!L1(t)}});function m0(){return null}function f0(){return null}function p0(e){}function h0(e){}function _0(){return null}function g0(){}function y0(e,t){return null}function v0(){return Yh().slots}function b0(){return Yh().attrs}function C0(e,t,n){const s=Dn();if(n&&n.local){const r=Xt(e[t]);return tn(()=>e[t],o=>r.value=o),tn(r,o=>{o!==e[t]&&s.emit(`update:${t}`,o)}),r}else return{__v_isRef:!0,get value(){return e[t]},set value(r){s.emit(`update:${t}`,r)}}}function Yh(){const e=Dn();return e.setupContext||(e.setupContext=__(e))}function ai(e){return ke(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function w0(e,t){const n=ai(e);for(const s in t){if(s.startsWith("__skip"))continue;let r=n[s];r?ke(r)||Ne(r)?r=n[s]={type:r,default:t[s]}:r.default=t[s]:r===null&&(r=n[s]={default:t[s]}),r&&t[`__skip_${s}`]&&(r.skipFactory=!0)}return n}function z0(e,t){return!e||!t?e||t:ke(e)&&ke(t)?e.concat(t):yt({},ai(e),ai(t))}function k0(e,t){const n={};for(const s in e)t.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>e[s]});return n}function x0(e){const t=Dn();let n=e();return Ms(),Kc(n)&&(n=n.catch(s=>{throw Us(t),s})),[n,()=>Us(t)]}let Yu=!0;function E0(e){const t=hd(e),n=e.proxy,s=e.ctx;Yu=!1,t.beforeCreate&&Om(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:a,provide:u,inject:c,created:d,beforeMount:f,mounted:m,beforeUpdate:p,updated:h,activated:_,deactivated:w,beforeDestroy:b,beforeUnmount:y,destroyed:k,unmounted:C,render:x,renderTracked:T,renderTriggered:L,errorCaptured:I,serverPrefetch:D,expose:j,inheritAttrs:Z,components:X,directives:U,filters:q}=t;if(c&&$0(c,s,null),i)for(const ie in i){const ye=i[ie];Ne(ye)&&(s[ie]=ye.bind(n))}if(r){const ie=r.call(n,n);pt(ie)&&(e.data=pr(ie))}if(Yu=!0,o)for(const ie in o){const ye=o[ie],je=Ne(ye)?ye.bind(n,n):Ne(ye.get)?ye.get.bind(n,n):Bn,at=!Ne(ye)&&Ne(ye.set)?ye.set.bind(n):Bn,ce=Rt({get:je,set:at});Object.defineProperty(s,ie,{enumerable:!0,configurable:!0,get:()=>ce.value,set:W=>ce.value=W})}if(a)for(const ie in a)Jh(a[ie],s,n,ie);if(u){const ie=Ne(u)?u.call(n):u;Reflect.ownKeys(ie).forEach(ye=>{No(ye,ie[ye])})}d&&Om(d,e,"c");function te(ie,ye){ke(ye)?ye.forEach(je=>ie(je.bind(n))):ye&&ie(ye.bind(n))}if(te(Bh,f),te(ro,m),te(Hh,p),te(Sl,h),te(Mh,_),te(Nh,w),te(Wh,I),te(qh,T),te(jh,L),te(Al,y),te(bi,C),te(Uh,D),ke(j))if(j.length){const ie=e.exposed||(e.exposed={});j.forEach(ye=>{Object.defineProperty(ie,ye,{get:()=>n[ye],set:je=>n[ye]=je})})}else e.exposed||(e.exposed={});x&&e.render===Bn&&(e.render=x),Z!=null&&(e.inheritAttrs=Z),X&&(e.components=X),U&&(e.directives=U)}function $0(e,t,n=Bn){ke(e)&&(e=Ju(e));for(const s in e){const r=e[s];let o;pt(r)?"default"in r?o=Hn(r.from||s,r.default,!0):o=Hn(r.from||s):o=Hn(r),Pt(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Om(e,t,n){vn(ke(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Jh(e,t,n,s){const r=s.includes(".")?Fh(n,s):()=>n[s];if(wt(e)){const o=t[e];Ne(o)&&tn(r,o)}else if(Ne(e))tn(r,e.bind(n));else if(pt(e))if(ke(e))e.forEach(o=>Jh(o,t,n,s));else{const o=Ne(e.handler)?e.handler.bind(n):t[e.handler];Ne(o)&&tn(r,o,e)}}function hd(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let u;return a?u=a:!r.length&&!n&&!s?u=t:(u={},r.length&&r.forEach(c=>Ja(u,c,i,!0)),Ja(u,t,i)),pt(t)&&o.set(t,u),u}function Ja(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Ja(e,o,n,!0),r&&r.forEach(i=>Ja(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=S0[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const S0={data:Dm,props:Pm,emits:Pm,methods:Ao,computed:Ao,beforeCreate:Yt,created:Yt,beforeMount:Yt,mounted:Yt,beforeUpdate:Yt,updated:Yt,beforeDestroy:Yt,beforeUnmount:Yt,destroyed:Yt,unmounted:Yt,activated:Yt,deactivated:Yt,errorCaptured:Yt,serverPrefetch:Yt,components:Ao,directives:Ao,watch:T0,provide:Dm,inject:A0};function Dm(e,t){return t?e?function(){return yt(Ne(e)?e.call(this,this):e,Ne(t)?t.call(this,this):t)}:t:e}function A0(e,t){return Ao(Ju(e),Ju(t))}function Ju(e){if(ke(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Yt(e,t){return e?[...new Set([].concat(e,t))]:t}function Ao(e,t){return e?yt(Object.create(null),e,t):t}function Pm(e,t){return e?ke(e)&&ke(t)?[...new Set([...e,...t])]:yt(Object.create(null),ai(e),ai(t!=null?t:{})):t}function T0(e,t){if(!e)return t;if(!t)return e;const n=yt(Object.create(null),e);for(const s in t)n[s]=Yt(e[s],t[s]);return n}function Xh(){return{app:null,config:{isNativeTag:A1,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let O0=0;function D0(e,t){return function(s,r=null){Ne(s)||(s=yt({},s)),r!=null&&!pt(r)&&(r=null);const o=Xh(),i=new Set;let a=!1;const u=o.app={_uid:O0++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:b_,get config(){return o.config},set config(c){},use(c,...d){return i.has(c)||(c&&Ne(c.install)?(i.add(c),c.install(u,...d)):Ne(c)&&(i.add(c),c(u,...d))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,d){return d?(o.components[c]=d,u):o.components[c]},directive(c,d){return d?(o.directives[c]=d,u):o.directives[c]},mount(c,d,f){if(!a){const m=v(s,r);return m.appContext=o,d&&t?t(m,c):e(m,c,f),a=!0,u._container=c,c.__vue_app__=u,Ol(m.component)||m.component.proxy}},unmount(){a&&(e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return o.provides[c]=d,u},runWithContext(c){li=u;try{return c()}finally{li=null}}};return u}}let li=null;function No(e,t){if(Dt){let n=Dt.provides;const s=Dt.parent&&Dt.parent.provides;s===n&&(n=Dt.provides=Object.create(s)),n[e]=t}}function Hn(e,t,n=!1){const s=Dt||Vt;if(s||li){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:li._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Ne(t)?t.call(s&&s.proxy):t}}function P0(){return!!(Dt||Vt||li)}function I0(e,t,n,s=!1){const r={},o={};Wa(o,Tl,1),e.propsDefaults=Object.create(null),Qh(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:wh(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function F0(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,a=et(r),[u]=e.propsOptions;let c=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let f=0;f<d.length;f++){let m=d[f];if(kl(e.emitsOptions,m))continue;const p=t[m];if(u)if(rt(o,m))p!==o[m]&&(o[m]=p,c=!0);else{const h=cn(m);r[h]=Xu(u,a,h,p,e,!1)}else p!==o[m]&&(o[m]=p,c=!0)}}}else{Qh(e,t,r,o)&&(c=!0);let d;for(const f in a)(!t||!rt(t,f)&&((d=$n(f))===f||!rt(t,d)))&&(u?n&&(n[f]!==void 0||n[d]!==void 0)&&(r[f]=Xu(u,a,f,void 0,e,!0)):delete r[f]);if(o!==a)for(const f in o)(!t||!rt(t,f)&&!0)&&(delete o[f],c=!0)}c&&_s(e,"set","$attrs")}function Qh(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,a;if(t)for(let u in t){if(Ro(u))continue;const c=t[u];let d;r&&rt(r,d=cn(u))?!o||!o.includes(d)?n[d]=c:(a||(a={}))[d]=c:kl(e.emitsOptions,u)||(!(u in s)||c!==s[u])&&(s[u]=c,i=!0)}if(o){const u=et(n),c=a||ft;for(let d=0;d<o.length;d++){const f=o[d];n[f]=Xu(r,u,f,c[f],e,!rt(c,f))}}return i}function Xu(e,t,n,s,r,o){const i=e[n];if(i!=null){const a=rt(i,"default");if(a&&s===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&Ne(u)){const{propsDefaults:c}=r;n in c?s=c[n]:(Us(r),s=c[n]=u.call(null,t),Ms())}else s=u}i[0]&&(o&&!a?s=!1:i[1]&&(s===""||s===$n(n))&&(s=!0))}return s}function e_(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},a=[];let u=!1;if(!Ne(e)){const d=f=>{u=!0;const[m,p]=e_(f,t,!0);yt(i,m),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!u)return pt(e)&&s.set(e,Lr),Lr;if(ke(o))for(let d=0;d<o.length;d++){const f=cn(o[d]);Im(f)&&(i[f]=ft)}else if(o)for(const d in o){const f=cn(d);if(Im(f)){const m=o[d],p=i[f]=ke(m)||Ne(m)?{type:m}:yt({},m);if(p){const h=Lm(Boolean,p.type),_=Lm(String,p.type);p[0]=h>-1,p[1]=_<0||h<_,(h>-1||rt(p,"default"))&&a.push(f)}}}const c=[i,a];return pt(e)&&s.set(e,c),c}function Im(e){return e[0]!=="$"}function Fm(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Rm(e,t){return Fm(e)===Fm(t)}function Lm(e,t){return ke(t)?t.findIndex(n=>Rm(n,e)):Ne(t)&&Rm(t,e)?0:-1}const t_=e=>e[0]==="_"||e==="$stable",_d=e=>ke(e)?e.map(_n):[_n(e)],R0=(e,t,n)=>{if(t._n)return t;const s=E((...r)=>_d(t(...r)),n);return s._c=!1,s},n_=(e,t,n)=>{const s=e._ctx;for(const r in e){if(t_(r))continue;const o=e[r];if(Ne(o))t[r]=R0(r,o,s);else if(o!=null){const i=_d(o);t[r]=()=>i}}},s_=(e,t)=>{const n=_d(t);e.slots.default=()=>n},L0=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=et(t),Wa(t,"_",n)):n_(t,e.slots={})}else e.slots={},t&&s_(e,t);Wa(e.slots,Tl,1)},M0=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=ft;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(yt(r,t),!n&&a===1&&delete r._):(o=!t.$stable,n_(t,r)),i=t}else t&&(s_(e,t),i={default:1});if(o)for(const a in r)!t_(a)&&!(a in i)&&delete r[a]};function Xa(e,t,n,s,r=!1){if(ke(e)){e.forEach((m,p)=>Xa(m,t&&(ke(t)?t[p]:t),n,s,r));return}if(ir(s)&&!r)return;const o=s.shapeFlag&4?Ol(s.component)||s.component.proxy:s.el,i=r?null:o,{i:a,r:u}=e,c=t&&t.r,d=a.refs===ft?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==u&&(wt(c)?(d[c]=null,rt(f,c)&&(f[c]=null)):Pt(c)&&(c.value=null)),Ne(u))fs(u,a,12,[i,d]);else{const m=wt(u),p=Pt(u);if(m||p){const h=()=>{if(e.f){const _=m?rt(f,u)?f[u]:d[u]:u.value;r?ke(_)&&Gc(_,o):ke(_)?_.includes(o)||_.push(o):m?(d[u]=[o],rt(f,u)&&(f[u]=d[u])):(u.value=[o],e.k&&(d[e.k]=u.value))}else m?(d[u]=i,rt(f,u)&&(f[u]=i)):p&&(u.value=i,e.k&&(d[e.k]=i))};i?(h.id=-1,Ut(h,n)):h()}}}let ws=!1;const Vi=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Bi=e=>e.nodeType===8;function N0(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:o,parentNode:i,remove:a,insert:u,createComment:c}}=e,d=(b,y)=>{if(!y.hasChildNodes()){n(null,b,y),Ya(),y._vnode=b;return}ws=!1,f(y.firstChild,b,null,null,null),Ya(),y._vnode=b,ws&&console.error("Hydration completed but contains mismatches.")},f=(b,y,k,C,x,T=!1)=>{const L=Bi(b)&&b.data==="[",I=()=>_(b,y,k,C,x,L),{type:D,ref:j,shapeFlag:Z,patchFlag:X}=y;let U=b.nodeType;y.el=b,X===-2&&(T=!1,y.dynamicChildren=null);let q=null;switch(D){case Bs:U!==3?y.children===""?(u(y.el=r(""),i(b),b),q=b):q=I():(b.data!==y.children&&(ws=!0,b.data=y.children),q=o(b));break;case Zt:U!==8||L?q=I():q=o(b);break;case ar:if(L&&(b=o(b),U=b.nodeType),U===1||U===3){q=b;const Ce=!y.children.length;for(let te=0;te<y.staticCount;te++)Ce&&(y.children+=q.nodeType===1?q.outerHTML:q.data),te===y.staticCount-1&&(y.anchor=q),q=o(q);return L?o(q):q}else I();break;case Oe:L?q=h(b,y,k,C,x,T):q=I();break;default:if(Z&1)U!==1||y.type.toLowerCase()!==b.tagName.toLowerCase()?q=I():q=m(b,y,k,C,x,T);else if(Z&6){y.slotScopeIds=x;const Ce=i(b);if(t(y,Ce,null,k,C,Vi(Ce),T),q=L?w(b):o(b),q&&Bi(q)&&q.data==="teleport end"&&(q=o(q)),ir(y)){let te;L?(te=v(Oe),te.anchor=q?q.previousSibling:Ce.lastChild):te=b.nodeType===3?mt(""):v("div"),te.el=b,y.component.subTree=te}}else Z&64?U!==8?q=I():q=y.type.hydrate(b,y,k,C,x,T,e,p):Z&128&&(q=y.type.hydrate(b,y,k,C,Vi(i(b)),x,T,e,f))}return j!=null&&Xa(j,null,C,y),q},m=(b,y,k,C,x,T)=>{T=T||!!y.dynamicChildren;const{type:L,props:I,patchFlag:D,shapeFlag:j,dirs:Z}=y,X=L==="input"&&Z||L==="option";if(X||D!==-1){if(Z&&Yn(y,null,k,"created"),I)if(X||!T||D&48)for(const q in I)(X&&q.endsWith("value")||pi(q)&&!Ro(q))&&s(b,q,null,I[q],!1,void 0,k);else I.onClick&&s(b,"onClick",null,I.onClick,!1,void 0,k);let U;if((U=I&&I.onVnodeBeforeMount)&&an(U,k,y),Z&&Yn(y,null,k,"beforeMount"),((U=I&&I.onVnodeMounted)||Z)&&Dh(()=>{U&&an(U,k,y),Z&&Yn(y,null,k,"mounted")},C),j&16&&!(I&&(I.innerHTML||I.textContent))){let q=p(b.firstChild,y,b,k,C,x,T);for(;q;){ws=!0;const Ce=q;q=q.nextSibling,a(Ce)}}else j&8&&b.textContent!==y.children&&(ws=!0,b.textContent=y.children)}return b.nextSibling},p=(b,y,k,C,x,T,L)=>{L=L||!!y.dynamicChildren;const I=y.children,D=I.length;for(let j=0;j<D;j++){const Z=L?I[j]:I[j]=_n(I[j]);if(b)b=f(b,Z,C,x,T,L);else{if(Z.type===Bs&&!Z.children)continue;ws=!0,n(null,Z,k,null,C,x,Vi(k),T)}}return b},h=(b,y,k,C,x,T)=>{const{slotScopeIds:L}=y;L&&(x=x?x.concat(L):L);const I=i(b),D=p(o(b),y,I,k,C,x,T);return D&&Bi(D)&&D.data==="]"?o(y.anchor=D):(ws=!0,u(y.anchor=c("]"),I,D),D)},_=(b,y,k,C,x,T)=>{if(ws=!0,y.el=null,T){const D=w(b);for(;;){const j=o(b);if(j&&j!==D)a(j);else break}}const L=o(b),I=i(b);return a(b),n(null,y,I,L,k,C,Vi(I),x),L},w=b=>{let y=0;for(;b;)if(b=o(b),b&&Bi(b)&&(b.data==="["&&y++,b.data==="]")){if(y===0)return o(b);y--}return b};return[d,f]}const Ut=Dh;function r_(e){return i_(e)}function o_(e){return i_(e,N0)}function i_(e,t){const n=Uu();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:a,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:m,setScopeId:p=Bn,insertStaticContent:h}=e,_=(A,O,P,K=null,J=null,ee=null,de=!1,ae=null,oe=!!O.dynamicChildren)=>{if(A===O)return;A&&!Nn(A,O)&&(K=V(A),W(A,J,ee,!0),A=null),O.patchFlag===-2&&(oe=!1,O.dynamicChildren=null);const{type:Y,ref:R,shapeFlag:B}=O;switch(Y){case Bs:w(A,O,P,K);break;case Zt:b(A,O,P,K);break;case ar:A==null&&y(O,P,K,de);break;case Oe:X(A,O,P,K,J,ee,de,ae,oe);break;default:B&1?x(A,O,P,K,J,ee,de,ae,oe):B&6?U(A,O,P,K,J,ee,de,ae,oe):(B&64||B&128)&&Y.process(A,O,P,K,J,ee,de,ae,oe,ne)}R!=null&&J&&Xa(R,A&&A.ref,ee,O||A,!O)},w=(A,O,P,K)=>{if(A==null)s(O.el=a(O.children),P,K);else{const J=O.el=A.el;O.children!==A.children&&c(J,O.children)}},b=(A,O,P,K)=>{A==null?s(O.el=u(O.children||""),P,K):O.el=A.el},y=(A,O,P,K)=>{[A.el,A.anchor]=h(A.children,O,P,K,A.el,A.anchor)},k=({el:A,anchor:O},P,K)=>{let J;for(;A&&A!==O;)J=m(A),s(A,P,K),A=J;s(O,P,K)},C=({el:A,anchor:O})=>{let P;for(;A&&A!==O;)P=m(A),r(A),A=P;r(O)},x=(A,O,P,K,J,ee,de,ae,oe)=>{de=de||O.type==="svg",A==null?T(O,P,K,J,ee,de,ae,oe):D(A,O,J,ee,de,ae,oe)},T=(A,O,P,K,J,ee,de,ae)=>{let oe,Y;const{type:R,props:B,shapeFlag:ge,transition:we,dirs:Re}=A;if(oe=A.el=i(A.type,ee,B&&B.is,B),ge&8?d(oe,A.children):ge&16&&I(A.children,oe,null,K,J,ee&&R!=="foreignObject",de,ae),Re&&Yn(A,null,K,"created"),L(oe,A,A.scopeId,de,K),B){for(const Be in B)Be!=="value"&&!Ro(Be)&&o(oe,Be,null,B[Be],ee,A.children,K,J,Ee);"value"in B&&o(oe,"value",null,B.value),(Y=B.onVnodeBeforeMount)&&an(Y,K,A)}Re&&Yn(A,null,K,"beforeMount");const qe=(!J||J&&!J.pendingBranch)&&we&&!we.persisted;qe&&we.beforeEnter(oe),s(oe,O,P),((Y=B&&B.onVnodeMounted)||qe||Re)&&Ut(()=>{Y&&an(Y,K,A),qe&&we.enter(oe),Re&&Yn(A,null,K,"mounted")},J)},L=(A,O,P,K,J)=>{if(P&&p(A,P),K)for(let ee=0;ee<K.length;ee++)p(A,K[ee]);if(J){let ee=J.subTree;if(O===ee){const de=J.vnode;L(A,de,de.scopeId,de.slotScopeIds,J.parent)}}},I=(A,O,P,K,J,ee,de,ae,oe=0)=>{for(let Y=oe;Y<A.length;Y++){const R=A[Y]=ae?Ts(A[Y]):_n(A[Y]);_(null,R,O,P,K,J,ee,de,ae)}},D=(A,O,P,K,J,ee,de)=>{const ae=O.el=A.el;let{patchFlag:oe,dynamicChildren:Y,dirs:R}=O;oe|=A.patchFlag&16;const B=A.props||ft,ge=O.props||ft;let we;P&&Ks(P,!1),(we=ge.onVnodeBeforeUpdate)&&an(we,P,O,A),R&&Yn(O,A,P,"beforeUpdate"),P&&Ks(P,!0);const Re=J&&O.type!=="foreignObject";if(Y?j(A.dynamicChildren,Y,ae,P,K,Re,ee):de||ye(A,O,ae,null,P,K,Re,ee,!1),oe>0){if(oe&16)Z(ae,O,B,ge,P,K,J);else if(oe&2&&B.class!==ge.class&&o(ae,"class",null,ge.class,J),oe&4&&o(ae,"style",B.style,ge.style,J),oe&8){const qe=O.dynamicProps;for(let Be=0;Be<qe.length;Be++){const F=qe[Be],M=B[F],G=ge[F];(G!==M||F==="value")&&o(ae,F,M,G,J,A.children,P,K,Ee)}}oe&1&&A.children!==O.children&&d(ae,O.children)}else!de&&Y==null&&Z(ae,O,B,ge,P,K,J);((we=ge.onVnodeUpdated)||R)&&Ut(()=>{we&&an(we,P,O,A),R&&Yn(O,A,P,"updated")},K)},j=(A,O,P,K,J,ee,de)=>{for(let ae=0;ae<O.length;ae++){const oe=A[ae],Y=O[ae],R=oe.el&&(oe.type===Oe||!Nn(oe,Y)||oe.shapeFlag&70)?f(oe.el):P;_(oe,Y,R,null,K,J,ee,de,!0)}},Z=(A,O,P,K,J,ee,de)=>{if(P!==K){if(P!==ft)for(const ae in P)!Ro(ae)&&!(ae in K)&&o(A,ae,P[ae],null,de,O.children,J,ee,Ee);for(const ae in K){if(Ro(ae))continue;const oe=K[ae],Y=P[ae];oe!==Y&&ae!=="value"&&o(A,ae,Y,oe,de,O.children,J,ee,Ee)}"value"in K&&o(A,"value",P.value,K.value)}},X=(A,O,P,K,J,ee,de,ae,oe)=>{const Y=O.el=A?A.el:a(""),R=O.anchor=A?A.anchor:a("");let{patchFlag:B,dynamicChildren:ge,slotScopeIds:we}=O;we&&(ae=ae?ae.concat(we):we),A==null?(s(Y,P,K),s(R,P,K),I(O.children,P,R,J,ee,de,ae,oe)):B>0&&B&64&&ge&&A.dynamicChildren?(j(A.dynamicChildren,ge,P,J,ee,de,ae),(O.key!=null||J&&O===J.subTree)&&gd(A,O,!0)):ye(A,O,P,R,J,ee,de,ae,oe)},U=(A,O,P,K,J,ee,de,ae,oe)=>{O.slotScopeIds=ae,A==null?O.shapeFlag&512?J.ctx.activate(O,P,K,de,oe):q(O,P,K,J,ee,de,oe):Ce(A,O,oe)},q=(A,O,P,K,J,ee,de)=>{const ae=A.component=m_(A,K,J);if(vi(A)&&(ae.ctx.renderer=ne),p_(ae),ae.asyncDep){if(J&&J.registerDep(ae,te),!A.el){const oe=ae.subTree=v(Zt);b(null,oe,O,P)}return}te(ae,A,O,P,J,ee,de)},Ce=(A,O,P)=>{const K=O.component=A.component;if(Kb(A,O,P))if(K.asyncDep&&!K.asyncResolved){ie(K,O,P);return}else K.next=O,Nb(K.update),K.update();else O.el=A.el,K.vnode=O},te=(A,O,P,K,J,ee,de)=>{const ae=()=>{if(A.isMounted){let{next:R,bu:B,u:ge,parent:we,vnode:Re}=A,qe=R,Be;Ks(A,!1),R?(R.el=Re.el,ie(A,R,de)):R=Re,B&&Nr(B),(Be=R.props&&R.props.onVnodeBeforeUpdate)&&an(Be,we,R,Re),Ks(A,!0);const F=Pa(A),M=A.subTree;A.subTree=F,_(M,F,f(M.el),V(M),A,J,ee),R.el=F.el,qe===null&&ld(A,F.el),ge&&Ut(ge,J),(Be=R.props&&R.props.onVnodeUpdated)&&Ut(()=>an(Be,we,R,Re),J)}else{let R;const{el:B,props:ge}=O,{bm:we,m:Re,parent:qe}=A,Be=ir(O);if(Ks(A,!1),we&&Nr(we),!Be&&(R=ge&&ge.onVnodeBeforeMount)&&an(R,qe,O),Ks(A,!0),B&&Pe){const F=()=>{A.subTree=Pa(A),Pe(B,A.subTree,A,J,null)};Be?O.type.__asyncLoader().then(()=>!A.isUnmounted&&F()):F()}else{const F=A.subTree=Pa(A);_(null,F,P,K,A,J,ee),O.el=F.el}if(Re&&Ut(Re,J),!Be&&(R=ge&&ge.onVnodeMounted)){const F=O;Ut(()=>an(R,qe,F),J)}(O.shapeFlag&256||qe&&ir(qe.vnode)&&qe.vnode.shapeFlag&256)&&A.a&&Ut(A.a,J),A.isMounted=!0,O=P=K=null}},oe=A.effect=new _i(ae,()=>zl(Y),A.scope),Y=A.update=()=>oe.run();Y.id=A.uid,Ks(A,!0),Y()},ie=(A,O,P)=>{O.component=A;const K=A.vnode.props;A.vnode=O,A.next=null,F0(A,O.props,K,P),M0(A,O.children,P),to(),Em(),no()},ye=(A,O,P,K,J,ee,de,ae,oe=!1)=>{const Y=A&&A.children,R=A?A.shapeFlag:0,B=O.children,{patchFlag:ge,shapeFlag:we}=O;if(ge>0){if(ge&128){at(Y,B,P,K,J,ee,de,ae,oe);return}else if(ge&256){je(Y,B,P,K,J,ee,de,ae,oe);return}}we&8?(R&16&&Ee(Y,J,ee),B!==Y&&d(P,B)):R&16?we&16?at(Y,B,P,K,J,ee,de,ae,oe):Ee(Y,J,ee,!0):(R&8&&d(P,""),we&16&&I(B,P,K,J,ee,de,ae,oe))},je=(A,O,P,K,J,ee,de,ae,oe)=>{A=A||Lr,O=O||Lr;const Y=A.length,R=O.length,B=Math.min(Y,R);let ge;for(ge=0;ge<B;ge++){const we=O[ge]=oe?Ts(O[ge]):_n(O[ge]);_(A[ge],we,P,null,J,ee,de,ae,oe)}Y>R?Ee(A,J,ee,!0,!1,B):I(O,P,K,J,ee,de,ae,oe,B)},at=(A,O,P,K,J,ee,de,ae,oe)=>{let Y=0;const R=O.length;let B=A.length-1,ge=R-1;for(;Y<=B&&Y<=ge;){const we=A[Y],Re=O[Y]=oe?Ts(O[Y]):_n(O[Y]);if(Nn(we,Re))_(we,Re,P,null,J,ee,de,ae,oe);else break;Y++}for(;Y<=B&&Y<=ge;){const we=A[B],Re=O[ge]=oe?Ts(O[ge]):_n(O[ge]);if(Nn(we,Re))_(we,Re,P,null,J,ee,de,ae,oe);else break;B--,ge--}if(Y>B){if(Y<=ge){const we=ge+1,Re=we<R?O[we].el:K;for(;Y<=ge;)_(null,O[Y]=oe?Ts(O[Y]):_n(O[Y]),P,Re,J,ee,de,ae,oe),Y++}}else if(Y>ge)for(;Y<=B;)W(A[Y],J,ee,!0),Y++;else{const we=Y,Re=Y,qe=new Map;for(Y=Re;Y<=ge;Y++){const Te=O[Y]=oe?Ts(O[Y]):_n(O[Y]);Te.key!=null&&qe.set(Te.key,Y)}let Be,F=0;const M=ge-Re+1;let G=!1,se=0;const ve=new Array(M);for(Y=0;Y<M;Y++)ve[Y]=0;for(Y=we;Y<=B;Y++){const Te=A[Y];if(F>=M){W(Te,J,ee,!0);continue}let He;if(Te.key!=null)He=qe.get(Te.key);else for(Be=Re;Be<=ge;Be++)if(ve[Be-Re]===0&&Nn(Te,O[Be])){He=Be;break}He===void 0?W(Te,J,ee,!0):(ve[He-Re]=Y+1,He>=se?se=He:G=!0,_(Te,O[He],P,null,J,ee,de,ae,oe),F++)}const Ie=G?V0(ve):Lr;for(Be=Ie.length-1,Y=M-1;Y>=0;Y--){const Te=Re+Y,He=O[Te],Ge=Te+1<R?O[Te+1].el:K;ve[Y]===0?_(null,He,P,Ge,J,ee,de,ae,oe):G&&(Be<0||Y!==Ie[Be]?ce(He,P,Ge,2):Be--)}}},ce=(A,O,P,K,J=null)=>{const{el:ee,type:de,transition:ae,children:oe,shapeFlag:Y}=A;if(Y&6){ce(A.component.subTree,O,P,K);return}if(Y&128){A.suspense.move(O,P,K);return}if(Y&64){de.move(A,O,P,ne);return}if(de===Oe){s(ee,O,P);for(let B=0;B<oe.length;B++)ce(oe[B],O,P,K);s(A.anchor,O,P);return}if(de===ar){k(A,O,P);return}if(K!==2&&Y&1&&ae)if(K===0)ae.beforeEnter(ee),s(ee,O,P),Ut(()=>ae.enter(ee),J);else{const{leave:B,delayLeave:ge,afterLeave:we}=ae,Re=()=>s(ee,O,P),qe=()=>{B(ee,()=>{Re(),we&&we()})};ge?ge(ee,Re,qe):qe()}else s(ee,O,P)},W=(A,O,P,K=!1,J=!1)=>{const{type:ee,props:de,ref:ae,children:oe,dynamicChildren:Y,shapeFlag:R,patchFlag:B,dirs:ge}=A;if(ae!=null&&Xa(ae,null,P,A,!0),R&256){O.ctx.deactivate(A);return}const we=R&1&&ge,Re=!ir(A);let qe;if(Re&&(qe=de&&de.onVnodeBeforeUnmount)&&an(qe,O,A),R&6)Me(A.component,P,K);else{if(R&128){A.suspense.unmount(P,K);return}we&&Yn(A,null,O,"beforeUnmount"),R&64?A.type.remove(A,O,P,J,ne,K):Y&&(ee!==Oe||B>0&&B&64)?Ee(Y,O,P,!1,!0):(ee===Oe&&B&384||!J&&R&16)&&Ee(oe,O,P),K&&fe(A)}(Re&&(qe=de&&de.onVnodeUnmounted)||we)&&Ut(()=>{qe&&an(qe,O,A),we&&Yn(A,null,O,"unmounted")},P)},fe=A=>{const{type:O,el:P,anchor:K,transition:J}=A;if(O===Oe){De(P,K);return}if(O===ar){C(A);return}const ee=()=>{r(P),J&&!J.persisted&&J.afterLeave&&J.afterLeave()};if(A.shapeFlag&1&&J&&!J.persisted){const{leave:de,delayLeave:ae}=J,oe=()=>de(P,ee);ae?ae(A.el,ee,oe):oe()}else ee()},De=(A,O)=>{let P;for(;A!==O;)P=m(A),r(A),A=P;r(O)},Me=(A,O,P)=>{const{bum:K,scope:J,update:ee,subTree:de,um:ae}=A;K&&Nr(K),J.stop(),ee&&(ee.active=!1,W(de,A,O,P)),ae&&Ut(ae,O),Ut(()=>{A.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&A.asyncDep&&!A.asyncResolved&&A.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},Ee=(A,O,P,K=!1,J=!1,ee=0)=>{for(let de=ee;de<A.length;de++)W(A[de],O,P,K,J)},V=A=>A.shapeFlag&6?V(A.component.subTree):A.shapeFlag&128?A.suspense.next():m(A.anchor||A.el),le=(A,O,P)=>{A==null?O._vnode&&W(O._vnode,null,null,!0):_(O._vnode||null,A,O,null,null,null,P),Em(),Ya(),O._vnode=A},ne={p:_,um:W,m:ce,r:fe,mt:q,mc:I,pc:ye,pbc:j,n:V,o:e};let pe,Pe;return t&&([pe,Pe]=t(ne)),{render:le,hydrate:pe,createApp:D0(le,pe)}}function Ks({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function gd(e,t,n=!1){const s=e.children,r=t.children;if(ke(s)&&ke(r))for(let o=0;o<s.length;o++){const i=s[o];let a=r[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[o]=Ts(r[o]),a.el=i.el),n||gd(i,a)),a.type===Bs&&(a.el=i.el)}}function V0(e){const t=e.slice(),n=[0];let s,r,o,i,a;const u=e.length;for(s=0;s<u;s++){const c=e[s];if(c!==0){if(r=n[n.length-1],e[r]<c){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<c?o=a+1:i=a;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const B0=e=>e.__isTeleport,Vo=e=>e&&(e.disabled||e.disabled===""),Mm=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Qu=(e,t)=>{const n=e&&e.to;return wt(n)?t?t(n):null:n},H0={__isTeleport:!0,process(e,t,n,s,r,o,i,a,u,c){const{mc:d,pc:f,pbc:m,o:{insert:p,querySelector:h,createText:_,createComment:w}}=c,b=Vo(t.props);let{shapeFlag:y,children:k,dynamicChildren:C}=t;if(e==null){const x=t.el=_(""),T=t.anchor=_("");p(x,n,s),p(T,n,s);const L=t.target=Qu(t.props,h),I=t.targetAnchor=_("");L&&(p(I,L),i=i||Mm(L));const D=(j,Z)=>{y&16&&d(k,j,Z,r,o,i,a,u)};b?D(n,T):L&&D(L,I)}else{t.el=e.el;const x=t.anchor=e.anchor,T=t.target=e.target,L=t.targetAnchor=e.targetAnchor,I=Vo(e.props),D=I?n:T,j=I?x:L;if(i=i||Mm(T),C?(m(e.dynamicChildren,C,D,r,o,i,a),gd(e,t,!0)):u||f(e,t,D,j,r,o,i,a,!1),b)I||Hi(t,n,x,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Z=t.target=Qu(t.props,h);Z&&Hi(t,Z,null,c,0)}else I&&Hi(t,T,L,c,1)}a_(t)},remove(e,t,n,s,{um:r,o:{remove:o}},i){const{shapeFlag:a,children:u,anchor:c,targetAnchor:d,target:f,props:m}=e;if(f&&o(d),(i||!Vo(m))&&(o(c),a&16))for(let p=0;p<u.length;p++){const h=u[p];r(h,t,n,!0,!!h.dynamicChildren)}},move:Hi,hydrate:U0};function Hi(e,t,n,{o:{insert:s},m:r},o=2){o===0&&s(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:u,children:c,props:d}=e,f=o===2;if(f&&s(i,t,n),(!f||Vo(d))&&u&16)for(let m=0;m<c.length;m++)r(c[m],t,n,2);f&&s(a,t,n)}function U0(e,t,n,s,r,o,{o:{nextSibling:i,parentNode:a,querySelector:u}},c){const d=t.target=Qu(t.props,u);if(d){const f=d._lpa||d.firstChild;if(t.shapeFlag&16)if(Vo(t.props))t.anchor=c(i(e),t,a(e),n,s,r,o),t.targetAnchor=f;else{t.anchor=i(e);let m=f;for(;m;)if(m=i(m),m&&m.nodeType===8&&m.data==="teleport anchor"){t.targetAnchor=m,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}c(f,t,d,n,s,r,o)}a_(t)}return t.anchor&&i(t.anchor)}const qs=H0;function a_(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Oe=Symbol.for("v-fgt"),Bs=Symbol.for("v-txt"),Zt=Symbol.for("v-cmt"),ar=Symbol.for("v-stc"),Bo=[];let un=null;function z(e=!1){Bo.push(un=e?null:[])}function l_(){Bo.pop(),un=Bo[Bo.length-1]||null}let mr=1;function ec(e){mr+=e}function u_(e){return e.dynamicChildren=mr>0?un||Lr:null,l_(),mr>0&&un&&un.push(e),e}function S(e,t,n,s,r,o){return u_(l(e,t,n,s,r,o,!0))}function be(e,t,n,s,r){return u_(v(e,t,n,s,r,!0))}function Hs(e){return e?e.__v_isVNode===!0:!1}function Nn(e,t){return e.type===t.type&&e.key===t.key}function j0(e){}const Tl="__vInternal",c_=({key:e})=>e!=null?e:null,Ia=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?wt(e)||Pt(e)||Ne(e)?{i:Vt,r:e,k:t,f:!!n}:e:null);function l(e,t=null,n=null,s=0,r=null,o=e===Oe?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&c_(t),ref:t&&Ia(t),scopeId:xl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Vt};return a?(yd(u,n),o&128&&e.normalize(u)):n&&(u.shapeFlag|=wt(n)?8:16),mr>0&&!i&&un&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&un.push(u),u}const v=q0;function q0(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Gh)&&(e=Zt),Hs(e)){const a=ns(e,t,!0);return n&&yd(a,n),mr>0&&!o&&un&&(a.shapeFlag&6?un[un.indexOf(e)]=a:un.push(a)),a.patchFlag|=-2,a}if(Q0(e)&&(e=e.__vccOpts),t){t=d_(t);let{class:a,style:u}=t;a&&!wt(a)&&(t.class=Ae(a)),pt(u)&&(td(u)&&!ke(u)&&(u=yt({},u)),t.style=ln(u))}const i=wt(e)?1:Oh(e)?128:B0(e)?64:pt(e)?4:Ne(e)?2:0;return l(e,t,n,s,r,i,o,!0)}function d_(e){return e?td(e)||Tl in e?yt({},e):e:null}function ns(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,a=t?Pr(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&c_(a),ref:t&&t.ref?n&&r?ke(r)?r.concat(Ia(t)):[r,Ia(t)]:Ia(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Oe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ns(e.ssContent),ssFallback:e.ssFallback&&ns(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function mt(e=" ",t=0){return v(Bs,null,e,t)}function W0(e,t){const n=v(ar,null,e);return n.staticCount=t,n}function H(e="",t=!1){return t?(z(),be(Zt,null,e)):v(Zt,null,e)}function _n(e){return e==null||typeof e=="boolean"?v(Zt):ke(e)?v(Oe,null,e.slice()):typeof e=="object"?Ts(e):v(Bs,null,String(e))}function Ts(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ns(e)}function yd(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ke(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),yd(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Tl in t)?t._ctx=Vt:r===3&&Vt&&(Vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ne(t)?(t={default:t,_ctx:Vt},n=32):(t=String(t),s&64?(n=16,t=[mt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Pr(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Ae([t.class,s.class]));else if(r==="style")t.style=ln([t.style,s.style]);else if(pi(r)){const o=t[r],i=s[r];i&&o!==i&&!(ke(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function an(e,t,n,s=null){vn(e,t,7,[n,s])}const G0=Xh();let K0=0;function m_(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||G0,o={uid:K0++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Yc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:e_(s,r),emitsOptions:Th(s,r),emit:null,emitted:null,propsDefaults:ft,inheritAttrs:s.inheritAttrs,ctx:ft,data:ft,props:ft,attrs:ft,slots:ft,refs:ft,setupState:ft,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Bb.bind(null,o),e.ce&&e.ce(o),o}let Dt=null;const Dn=()=>Dt||Vt;let vd,vr,Nm="__VUE_INSTANCE_SETTERS__";(vr=Uu()[Nm])||(vr=Uu()[Nm]=[]),vr.push(e=>Dt=e),vd=e=>{vr.length>1?vr.forEach(t=>t(e)):vr[0](e)};const Us=e=>{vd(e),e.scope.on()},Ms=()=>{Dt&&Dt.scope.off(),vd(null)};function f_(e){return e.vnode.shapeFlag&4}let qr=!1;function p_(e,t=!1){qr=t;const{props:n,children:s}=e.vnode,r=f_(e);I0(e,n,r,t),L0(e,s);const o=r?Z0(e,t):void 0;return qr=!1,o}function Z0(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=nd(new Proxy(e.ctx,Zu));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?__(e):null;Us(e),to();const o=fs(s,e,0,[e.props,r]);if(no(),Ms(),Kc(o)){if(o.then(Ms,Ms),t)return o.then(i=>{tc(e,i,t)}).catch(i=>{hr(i,e,0)});e.asyncDep=o}else tc(e,o,t)}else h_(e,t)}function tc(e,t,n){Ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pt(t)&&(e.setupState=od(t)),h_(e,n)}let Qa,nc;function Y0(e){Qa=e,nc=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,d0))}}const J0=()=>!Qa;function h_(e,t,n){const s=e.type;if(!e.render){if(!t&&Qa&&!s.render){const r=s.template||hd(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:u}=s,c=yt(yt({isCustomElement:o,delimiters:a},i),u);s.render=Qa(r,c)}}e.render=s.render||Bn,nc&&nc(e)}Us(e),to(),E0(e),no(),Ms()}function X0(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return dn(e,"get","$attrs"),t[n]}}))}function __(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return X0(e)},slots:e.slots,emit:e.emit,expose:t}}function Ol(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(od(nd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Mo)return Mo[n](e)},has(t,n){return n in t||n in Mo}}))}function sc(e,t=!0){return Ne(e)?e.displayName||e.name:e.name||t&&e.__name}function Q0(e){return Ne(e)&&"__vccOpts"in e}const Rt=(e,t)=>Ib(e,t,qr);function Qn(e,t,n){const s=arguments.length;return s===2?pt(t)&&!ke(t)?Hs(t)?v(e,null,[t]):v(e,t):v(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Hs(n)&&(n=[n]),v(e,t,n))}const g_=Symbol.for("v-scx"),y_=()=>Hn(g_);function eC(){}function tC(e,t,n,s){const r=n[s];if(r&&v_(r,e))return r;const o=t();return o.memo=e.slice(),n[s]=o}function v_(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s<n.length;s++)if(Ur(n[s],t[s]))return!1;return mr>0&&un&&un.push(e),!0}const b_="3.3.4",nC={createComponentInstance:m_,setupComponent:p_,renderComponentRoot:Pa,setCurrentRenderingInstance:oi,isVNode:Hs,normalizeVNode:_n},sC=nC,rC=null,oC=null,iC="http://www.w3.org/2000/svg",nr=typeof document!="undefined"?document:null,Vm=nr&&nr.createElement("template"),aC={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?nr.createElementNS(iC,e):nr.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>nr.createTextNode(e),createComment:e=>nr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Vm.innerHTML=s?`<svg>${e}</svg>`:e;const a=Vm.content;if(s){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function lC(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function uC(e,t,n){const s=e.style,r=wt(n);if(n&&!r){if(t&&!wt(t))for(const o in t)n[o]==null&&rc(s,o,"");for(const o in n)rc(s,o,n[o])}else{const o=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=o)}}const Bm=/\s*!important$/;function rc(e,t,n){if(ke(n))n.forEach(s=>rc(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=cC(e,t);Bm.test(n)?e.setProperty($n(s),n.replace(Bm,""),"important"):e[s]=n}}const Hm=["Webkit","Moz","ms"],lu={};function cC(e,t){const n=lu[t];if(n)return n;let s=cn(t);if(s!=="filter"&&s in e)return lu[t]=s;s=hi(s);for(let r=0;r<Hm.length;r++){const o=Hm[r]+s;if(o in e)return lu[t]=o}return t}const Um="http://www.w3.org/1999/xlink";function dC(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Um,t.slice(6,t.length)):e.setAttributeNS(Um,t,n);else{const o=U1(t);n==null||o&&!ih(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function mC(e,t,n,s,r,o,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,r,o),e[t]=n==null?"":n;return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const c=a==="OPTION"?e.getAttribute("value"):e.value,d=n==null?"":n;c!==d&&(e.value=d),n==null&&e.removeAttribute(t);return}let u=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=ih(n):n==null&&c==="string"?(n="",u=!0):c==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(t)}function ds(e,t,n,s){e.addEventListener(t,n,s)}function fC(e,t,n,s){e.removeEventListener(t,n,s)}function pC(e,t,n,s,r=null){const o=e._vei||(e._vei={}),i=o[t];if(s&&i)i.value=s;else{const[a,u]=hC(t);if(s){const c=o[t]=yC(s,r);ds(e,a,c,u)}else i&&(fC(e,a,i,u),o[t]=void 0)}}const jm=/(?:Once|Passive|Capture)$/;function hC(e){let t;if(jm.test(e)){t={};let s;for(;s=e.match(jm);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):$n(e.slice(2)),t]}let uu=0;const _C=Promise.resolve(),gC=()=>uu||(_C.then(()=>uu=0),uu=Date.now());function yC(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;vn(vC(s,n.value),t,5,[s])};return n.value=e,n.attached=gC(),n}function vC(e,t){if(ke(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const qm=/^on[a-z]/,bC=(e,t,n,s,r=!1,o,i,a,u)=>{t==="class"?lC(e,s,r):t==="style"?uC(e,n,s):pi(t)?Wc(t)||pC(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):CC(e,t,s,r))?mC(e,t,s,o,i,a,u):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),dC(e,t,s,r))};function CC(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&qm.test(t)&&Ne(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||qm.test(t)&&wt(n)?!1:t in e}function C_(e,t){const n=so(e);class s extends Dl{constructor(o){super(n,o,t)}}return s.def=n,s}const wC=e=>C_(e,F_),zC=typeof HTMLElement!="undefined"?HTMLElement:class{};class Dl extends zC{constructor(t,n={},s){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,gi(()=>{this._connected||(ac(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);new MutationObserver(s=>{for(const r of s)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(s,r=!1)=>{const{props:o,styles:i}=s;let a;if(o&&!ke(o))for(const u in o){const c=o[u];(c===Number||c&&c.type===Number)&&(u in this._props&&(this._props[u]=Ka(this._props[u])),(a||(a=Object.create(null)))[cn(u)]=!0)}this._numberProps=a,r&&this._resolveProps(s),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(s=>t(s,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,s=ke(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&s.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of s.map(cn))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(o){this._setProp(r,o)}})}_setAttr(t){let n=this.getAttribute(t);const s=cn(t);this._numberProps&&this._numberProps[s]&&(n=Ka(n)),this._setProp(s,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),s&&(n===!0?this.setAttribute($n(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute($n(t),n+""):n||this.removeAttribute($n(t))))}_update(){ac(this._createVNode(),this.shadowRoot)}_createVNode(){const t=v(this._def,yt({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const s=(o,i)=>{this.dispatchEvent(new CustomEvent(o,{detail:i}))};n.emit=(o,...i)=>{s(o,i),$n(o)!==o&&s($n(o),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Dl){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s)})}}function kC(e="$style"){{const t=Dn();if(!t)return ft;const n=t.type.__cssModules;if(!n)return ft;const s=n[e];return s||ft}}function xC(e){const t=Dn();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>ic(o,r))},s=()=>{const r=e(t.proxy);oc(t.subTree,r),n(r)};Ih(s),ro(()=>{const r=new MutationObserver(s);r.observe(t.subTree.el.parentNode,{childList:!0}),bi(()=>r.disconnect())})}function oc(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{oc(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ic(e.el,t);else if(e.type===Oe)e.children.forEach(n=>oc(n,t));else if(e.type===ar){let{el:n,anchor:s}=e;for(;n&&(ic(n,t),n!==s);)n=n.nextSibling}}function ic(e,t){if(e.nodeType===1){const n=e.style;for(const s in t)n.setProperty(`--${s}`,t[s])}}const zs="transition",fo="animation",Ft=(e,{slots:t})=>Qn(Rh,z_(e),t);Ft.displayName="Transition";const w_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},EC=Ft.props=yt({},dd,w_),Zs=(e,t=[])=>{ke(e)?e.forEach(n=>n(...t)):e&&e(...t)},Wm=e=>e?ke(e)?e.some(t=>t.length>1):e.length>1:!1;function z_(e){const t={};for(const X in e)X in w_||(t[X]=e[X]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=i,appearToClass:d=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=$C(r),_=h&&h[0],w=h&&h[1],{onBeforeEnter:b,onEnter:y,onEnterCancelled:k,onLeave:C,onLeaveCancelled:x,onBeforeAppear:T=b,onAppear:L=y,onAppearCancelled:I=k}=t,D=(X,U,q)=>{As(X,U?d:a),As(X,U?c:i),q&&q()},j=(X,U)=>{X._isLeaving=!1,As(X,f),As(X,p),As(X,m),U&&U()},Z=X=>(U,q)=>{const Ce=X?L:y,te=()=>D(U,X,q);Zs(Ce,[U,te]),Gm(()=>{As(U,X?u:o),us(U,X?d:a),Wm(Ce)||Km(U,s,_,te)})};return yt(t,{onBeforeEnter(X){Zs(b,[X]),us(X,o),us(X,i)},onBeforeAppear(X){Zs(T,[X]),us(X,u),us(X,c)},onEnter:Z(!1),onAppear:Z(!0),onLeave(X,U){X._isLeaving=!0;const q=()=>j(X,U);us(X,f),x_(),us(X,m),Gm(()=>{!X._isLeaving||(As(X,f),us(X,p),Wm(C)||Km(X,s,w,q))}),Zs(C,[X,q])},onEnterCancelled(X){D(X,!1),Zs(k,[X])},onAppearCancelled(X){D(X,!0),Zs(I,[X])},onLeaveCancelled(X){j(X),Zs(x,[X])}})}function $C(e){if(e==null)return null;if(pt(e))return[cu(e.enter),cu(e.leave)];{const t=cu(e);return[t,t]}}function cu(e){return Ka(e)}function us(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function As(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Gm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let SC=0;function Km(e,t,n,s){const r=e._endId=++SC,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:a,propCount:u}=k_(e,t);if(!i)return s();const c=i+"end";let d=0;const f=()=>{e.removeEventListener(c,m),o()},m=p=>{p.target===e&&++d>=u&&f()};setTimeout(()=>{d<u&&f()},a+1),e.addEventListener(c,m)}function k_(e,t){const n=window.getComputedStyle(e),s=h=>(n[h]||"").split(", "),r=s(`${zs}Delay`),o=s(`${zs}Duration`),i=Zm(r,o),a=s(`${fo}Delay`),u=s(`${fo}Duration`),c=Zm(a,u);let d=null,f=0,m=0;t===zs?i>0&&(d=zs,f=i,m=o.length):t===fo?c>0&&(d=fo,f=c,m=u.length):(f=Math.max(i,c),d=f>0?i>c?zs:fo:null,m=d?d===zs?o.length:u.length:0);const p=d===zs&&/\b(transform|all)(,|$)/.test(s(`${zs}Property`).toString());return{type:d,timeout:f,propCount:m,hasTransform:p}}function Zm(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Ym(n)+Ym(e[s])))}function Ym(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function x_(){return document.body.offsetHeight}const E_=new WeakMap,$_=new WeakMap,S_={name:"TransitionGroup",props:yt({},EC,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Dn(),s=cd();let r,o;return Sl(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!IC(r[0].el,n.vnode.el,i))return;r.forEach(OC),r.forEach(DC);const a=r.filter(PC);x_(),a.forEach(u=>{const c=u.el,d=c.style;us(c,i),d.transform=d.webkitTransform=d.transitionDuration="";const f=c._moveCb=m=>{m&&m.target!==c||(!m||/transform$/.test(m.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,As(c,i))};c.addEventListener("transitionend",f)})}),()=>{const i=et(e),a=z_(i);let u=i.tag||Oe;r=o,o=t.default?El(t.default()):[];for(let c=0;c<o.length;c++){const d=o[c];d.key!=null&&dr(d,jr(d,a,s,n))}if(r)for(let c=0;c<r.length;c++){const d=r[c];dr(d,jr(d,a,s,n)),E_.set(d,d.el.getBoundingClientRect())}return v(u,null,o)}}},AC=e=>delete e.mode;S_.props;const TC=S_;function OC(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function DC(e){$_.set(e,e.el.getBoundingClientRect())}function PC(e){const t=E_.get(e),n=$_.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${s}px,${r}px)`,o.transitionDuration="0s",e}}function IC(e,t,n){const s=e.cloneNode();e._vtc&&e._vtc.forEach(i=>{i.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:o}=k_(s);return r.removeChild(s),o}const js=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ke(t)?n=>Nr(t,n):t};function FC(e){e.target.composing=!0}function Jm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const It={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=js(r);const o=s||r.props&&r.props.type==="number";ds(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=Ga(a)),e._assign(a)}),n&&ds(e,"change",()=>{e.value=e.value.trim()}),t||(ds(e,"compositionstart",FC),ds(e,"compositionend",Jm),ds(e,"change",Jm))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e._assign=js(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&Ga(e.value)===t))return;const i=t==null?"":t;e.value!==i&&(e.value=i)}},gs={deep:!0,created(e,t,n){e._assign=js(n),ds(e,"change",()=>{const s=e._modelValue,r=Wr(e),o=e.checked,i=e._assign;if(ke(s)){const a=gl(s,r),u=a!==-1;if(o&&!u)i(s.concat(r));else if(!o&&u){const c=[...s];c.splice(a,1),i(c)}}else if(fr(s)){const a=new Set(s);o?a.add(r):a.delete(r),i(a)}else i(A_(e,o))})},mounted:Xm,beforeUpdate(e,t,n){e._assign=js(n),Xm(e,t,n)}};function Xm(e,{value:t,oldValue:n},s){e._modelValue=t,ke(t)?e.checked=gl(t,s.props.value)>-1:fr(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Ns(t,A_(e,!0)))}const bd={created(e,{value:t},n){e.checked=Ns(t,n.props.value),e._assign=js(n),ds(e,"change",()=>{e._assign(Wr(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e._assign=js(s),t!==n&&(e.checked=Ns(t,s.props.value))}},Cd={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=fr(t);ds(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Ga(Wr(i)):Wr(i));e._assign(e.multiple?r?new Set(o):o:o[0])}),e._assign=js(s)},mounted(e,{value:t}){Qm(e,t)},beforeUpdate(e,t,n){e._assign=js(n)},updated(e,{value:t}){Qm(e,t)}};function Qm(e,t){const n=e.multiple;if(!(n&&!ke(t)&&!fr(t))){for(let s=0,r=e.options.length;s<r;s++){const o=e.options[s],i=Wr(o);if(n)ke(t)?o.selected=gl(t,i)>-1:o.selected=t.has(i);else if(Ns(Wr(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Wr(e){return"_value"in e?e._value:e.value}function A_(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const T_={created(e,t,n){Ui(e,t,n,null,"created")},mounted(e,t,n){Ui(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){Ui(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){Ui(e,t,n,s,"updated")}};function O_(e,t){switch(e){case"SELECT":return Cd;case"TEXTAREA":return It;default:switch(t){case"checkbox":return gs;case"radio":return bd;default:return It}}}function Ui(e,t,n,s,r){const i=O_(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,s)}function RC(){It.getSSRProps=({value:e})=>({value:e}),bd.getSSRProps=({value:e},t)=>{if(t.props&&Ns(t.props.value,e))return{checked:!0}},gs.getSSRProps=({value:e},t)=>{if(ke(e)){if(t.props&&gl(e,t.props.value)>-1)return{checked:!0}}else if(fr(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},T_.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=O_(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const LC=["ctrl","shift","alt","meta"],MC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>LC.some(n=>e[`${n}Key`]&&!t.includes(n))},it=(e,t)=>(n,...s)=>{for(let r=0;r<t.length;r++){const o=MC[t[r]];if(o&&o(n,t))return}return e(n,...s)},NC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},gn=(e,t)=>n=>{if(!("key"in n))return;const s=$n(n.key);if(t.some(r=>r===s||NC[r]===s))return e(n)},ui={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):po(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),po(e,!0),s.enter(e)):s.leave(e,()=>{po(e,!1)}):po(e,t))},beforeUnmount(e,{value:t}){po(e,t)}};function po(e,t){e.style.display=t?e._vod:"none"}function VC(){ui.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const D_=yt({patchProp:bC},aC);let Ho,ef=!1;function P_(){return Ho||(Ho=r_(D_))}function I_(){return Ho=ef?Ho:o_(D_),ef=!0,Ho}const ac=(...e)=>{P_().render(...e)},F_=(...e)=>{I_().hydrate(...e)},R_=(...e)=>{const t=P_().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=L_(s);if(!r)return;const o=t._component;!Ne(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t},BC=(...e)=>{const t=I_().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=L_(s);if(r)return n(r,!0,r instanceof SVGElement)},t};function L_(e){return wt(e)?document.querySelector(e):e}let tf=!1;const HC=()=>{tf||(tf=!0,RC(),VC())},UC=()=>{};var jC=Object.freeze(Object.defineProperty({__proto__:null,compile:UC,EffectScope:Yc,ReactiveEffect:_i,customRef:Sb,effect:K1,effectScope:Jc,getCurrentScope:uh,isProxy:td,isReactive:or,isReadonly:cr,isRef:Pt,isShallow:ti,markRaw:nd,onScopeDispose:q1,proxyRefs:od,reactive:pr,readonly:ed,ref:Xt,shallowReactive:wh,shallowReadonly:wb,shallowRef:zh,stop:Z1,toRaw:et,toRef:Db,toRefs:Ab,toValue:xb,triggerRef:kb,unref:yn,camelize:cn,capitalize:hi,normalizeClass:Ae,normalizeProps:Eo,normalizeStyle:ln,toDisplayString:g,toHandlerKey:Lo,BaseTransition:Rh,BaseTransitionPropsValidators:dd,Comment:Zt,Fragment:Oe,KeepAlive:a0,Static:ar,Suspense:Yb,Teleport:qs,Text:Bs,assertNumber:Rb,callWithAsyncErrorHandling:vn,callWithErrorHandling:fs,cloneVNode:ns,compatUtils:oC,computed:Rt,createBlock:be,createCommentVNode:H,createElementBlock:S,createElementVNode:l,createHydrationRenderer:o_,createPropsRestProxy:k0,createRenderer:r_,createSlots:Ci,createStaticVNode:W0,createTextVNode:mt,createVNode:v,defineAsyncComponent:o0,defineComponent:so,defineEmits:f0,defineExpose:p0,defineModel:g0,defineOptions:h0,defineProps:m0,defineSlots:_0,get devtools(){return Sr},getCurrentInstance:Dn,getTransitionRawChildren:El,guardReactiveProps:d_,h:Qn,handleError:hr,hasInjectionContext:P0,initCustomFormatter:eC,inject:Hn,isMemoSame:v_,isRuntimeOnly:J0,isVNode:Hs,mergeDefaults:w0,mergeModels:z0,mergeProps:Pr,nextTick:gi,onActivated:Mh,onBeforeMount:Bh,onBeforeUnmount:Al,onBeforeUpdate:Hh,onDeactivated:Nh,onErrorCaptured:Wh,onMounted:ro,onRenderTracked:qh,onRenderTriggered:jh,onServerPrefetch:Uh,onUnmounted:bi,onUpdated:Sl,openBlock:z,popScopeId:Ub,provide:No,pushScopeId:Hb,queuePostFlushCb:ad,registerRuntimeCompiler:Y0,renderList:ht,renderSlot:ut,resolveComponent:$,resolveDirective:fd,resolveDynamicComponent:Kh,resolveFilter:rC,resolveTransitionHooks:jr,setBlockTracking:ec,setDevtoolsHook:Ah,setTransitionHooks:dr,ssrContextKey:g_,ssrUtils:sC,toHandlers:c0,transformVNodeArgs:j0,useAttrs:b0,useModel:C0,useSSRContext:y_,useSlots:v0,useTransitionState:cd,version:b_,warn:Fb,watch:tn,watchEffect:Ph,watchPostEffect:Ih,watchSyncEffect:n0,withAsyncContext:x0,withCtx:E,withDefaults:y0,withDirectives:dt,withMemo:tC,withScopeId:jb,Transition:Ft,TransitionGroup:TC,VueElement:Dl,createApp:R_,createSSRApp:BC,defineCustomElement:C_,defineSSRCustomElement:wC,hydrate:F_,initDirectivesForSSR:HC,render:ac,useCssModule:kC,useCssVars:xC,vModelCheckbox:gs,vModelDynamic:T_,vModelRadio:bd,vModelSelect:Cd,vModelText:It,vShow:ui,withKeys:gn,withModifiers:it},Symbol.toStringTag,{value:"Module"}));/*!
|
|
* shared v9.3.0-beta.14
|
|
* (c) 2023 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const lc=typeof window!="undefined",Ws=(e,t=!1)=>t?Symbol.for(e):Symbol(e),qC=(e,t,n)=>WC({l:e,k:t,s:n}),WC=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Nt=e=>typeof e=="number"&&isFinite(e),GC=e=>kd(e)==="[object Date]",el=e=>kd(e)==="[object RegExp]",Pl=e=>nt(e)&&Object.keys(e).length===0;function KC(e,t){typeof console!="undefined"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const nn=Object.assign;let nf;const wd=()=>nf||(nf=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function sf(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const ZC=Object.prototype.hasOwnProperty;function zd(e,t){return ZC.call(e,t)}const Lt=Array.isArray,jt=e=>typeof e=="function",Se=e=>typeof e=="string",St=e=>typeof e=="boolean",gt=e=>e!==null&&typeof e=="object",M_=Object.prototype.toString,kd=e=>M_.call(e),nt=e=>kd(e)==="[object Object]",YC=e=>e==null?"":Lt(e)||nt(e)&&e.toString===M_?JSON.stringify(e,null,2):String(e);/*!
|
|
* message-compiler v9.3.0-beta.14
|
|
* (c) 2023 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const N_={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function V_(e,t,n={}){const{domain:s,messages:r,args:o}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=s,a}/*!
|
|
* devtools-if v9.3.0-beta.14
|
|
* (c) 2023 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const B_={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
|
|
* core-base v9.3.0-beta.14
|
|
* (c) 2023 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const Gs=[];Gs[0]={w:[0],i:[3,0],["["]:[4],o:[7]};Gs[1]={w:[1],["."]:[2],["["]:[4],o:[7]};Gs[2]={w:[2],i:[3,0],[0]:[3,0]};Gs[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};Gs[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};Gs[5]={["'"]:[4,0],o:8,l:[5,0]};Gs[6]={['"']:[4,0],o:8,l:[6,0]};const JC=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function XC(e){return JC.test(e)}function QC(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function ew(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function tw(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:XC(t)?QC(t):"*"+t}function nw(e){const t=[];let n=-1,s=0,r=0,o,i,a,u,c,d,f;const m=[];m[0]=()=>{i===void 0?i=a:i+=a},m[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},m[2]=()=>{m[0](),r++},m[3]=()=>{if(r>0)r--,s=4,m[0]();else{if(r=0,i===void 0||(i=tw(i),i===!1))return!1;m[1]()}};function p(){const h=e[n+1];if(s===5&&h==="'"||s===6&&h==='"')return n++,a="\\"+h,m[0](),!0}for(;s!==null;)if(n++,o=e[n],!(o==="\\"&&p())){if(u=ew(o),f=Gs[s],c=f[u]||f.l||8,c===8||(s=c[0],c[1]!==void 0&&(d=m[c[1]],d&&(a=o,d()===!1))))return;if(s===7)return t}}const rf=new Map;function sw(e,t){return gt(e)?e[t]:null}function rw(e,t){if(!gt(e))return null;let n=rf.get(t);if(n||(n=nw(t),n&&rf.set(t,n)),!n)return null;const s=n.length;let r=e,o=0;for(;o<s;){const i=r[n[o]];if(i===void 0)return null;r=i,o++}return r}const ow=e=>e,iw=e=>"",aw="text",lw=e=>e.length===0?"":e.join(""),uw=YC;function of(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function cw(e){const t=Nt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Nt(e.named.count)||Nt(e.named.n))?Nt(e.named.count)?e.named.count:Nt(e.named.n)?e.named.n:t:t}function dw(e,t){t.count||(t.count=e),t.n||(t.n=e)}function mw(e={}){const t=e.locale,n=cw(e),s=gt(e.pluralRules)&&Se(t)&&jt(e.pluralRules[t])?e.pluralRules[t]:of,r=gt(e.pluralRules)&&Se(t)&&jt(e.pluralRules[t])?of:void 0,o=b=>b[s(n,b.length,r)],i=e.list||[],a=b=>i[b],u=e.named||{};Nt(e.pluralIndex)&&dw(n,u);const c=b=>u[b];function d(b){const y=jt(e.messages)?e.messages(b):gt(e.messages)?e.messages[b]:!1;return y||(e.parent?e.parent.message(b):iw)}const f=b=>e.modifiers?e.modifiers[b]:ow,m=nt(e.processor)&&jt(e.processor.normalize)?e.processor.normalize:lw,p=nt(e.processor)&&jt(e.processor.interpolate)?e.processor.interpolate:uw,h=nt(e.processor)&&Se(e.processor.type)?e.processor.type:aw,w={list:a,named:c,plural:o,linked:(b,...y)=>{const[k,C]=y;let x="text",T="";y.length===1?gt(k)?(T=k.modifier||T,x=k.type||x):Se(k)&&(T=k||T):y.length===2&&(Se(k)&&(T=k||T),Se(C)&&(x=C||x));let L=d(b)(w);return x==="vnode"&&Lt(L)&&T&&(L=L[0]),T?f(T)(L,x):L},message:d,type:h,interpolate:p,normalize:m};return w}let ci=null;function fw(e){ci=e}function pw(e,t,n){ci&&ci.emit(B_.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const hw=_w(B_.FunctionTranslate);function _w(e){return t=>ci&&ci.emit(e,t)}const gw={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function yw(e,t,n){return[...new Set([n,...Lt(t)?t:gt(t)?Object.keys(t):Se(t)?[t]:[n]])]}function H_(e,t,n){const s=Se(n)?n:xd,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(s);if(!o){o=[];let i=[n];for(;Lt(i);)i=af(o,i,t);const a=Lt(t)||!nt(t)?t:t.default?t.default:null;i=Se(a)?[a]:a,Lt(i)&&af(o,i,!1),r.__localeChainCache.set(s,o)}return o}function af(e,t,n){let s=!0;for(let r=0;r<t.length&&St(s);r++){const o=t[r];Se(o)&&(s=vw(e,t[r],n))}return s}function vw(e,t,n){let s;const r=t.split("-");do{const o=r.join("-");s=bw(e,o,n),r.splice(-1,1)}while(r.length&&s===!0);return s}function bw(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(Lt(n)||nt(n))&&n[r]&&(s=n[r])}return s}const Cw="9.3.0-beta.14",Il=-1,xd="en-US",lf="",uf=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function ww(){return{upper:(e,t)=>t==="text"&&Se(e)?e.toUpperCase():t==="vnode"&>(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Se(e)?e.toLowerCase():t==="vnode"&>(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Se(e)?uf(e):t==="vnode"&>(e)&&"__v_isVNode"in e?uf(e.children):e}}let zw,U_;function kw(e){U_=e}let j_;function xw(e){j_=e}let q_=null;const cf=e=>{q_=e},Ew=()=>q_;let W_=null;const df=e=>{W_=e},$w=()=>W_;let mf=0;function Sw(e={}){const t=Se(e.version)?e.version:Cw,n=Se(e.locale)?e.locale:xd,s=Lt(e.fallbackLocale)||nt(e.fallbackLocale)||Se(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,r=nt(e.messages)?e.messages:{[n]:{}},o=nt(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},i=nt(e.numberFormats)?e.numberFormats:{[n]:{}},a=nn({},e.modifiers||{},ww()),u=e.pluralRules||{},c=jt(e.missing)?e.missing:null,d=St(e.missingWarn)||el(e.missingWarn)?e.missingWarn:!0,f=St(e.fallbackWarn)||el(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,p=!!e.unresolving,h=jt(e.postTranslation)?e.postTranslation:null,_=nt(e.processor)?e.processor:null,w=St(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,y=jt(e.messageCompiler)?e.messageCompiler:zw,k=jt(e.messageResolver)?e.messageResolver:U_||sw,C=jt(e.localeFallbacker)?e.localeFallbacker:j_||yw,x=gt(e.fallbackContext)?e.fallbackContext:void 0,T=jt(e.onWarn)?e.onWarn:KC,L=e,I=gt(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,D=gt(L.__numberFormatters)?L.__numberFormatters:new Map,j=gt(L.__meta)?L.__meta:{};mf++;const Z={version:t,cid:mf,locale:n,fallbackLocale:s,messages:r,modifiers:a,pluralRules:u,missing:c,missingWarn:d,fallbackWarn:f,fallbackFormat:m,unresolving:p,postTranslation:h,processor:_,warnHtmlMessage:w,escapeParameter:b,messageCompiler:y,messageResolver:k,localeFallbacker:C,fallbackContext:x,onWarn:T,__meta:j};return Z.datetimeFormats=o,Z.numberFormats=i,Z.__datetimeFormatters=I,Z.__numberFormatters=D,__INTLIFY_PROD_DEVTOOLS__&&pw(Z,t,j),Z}function Ed(e,t,n,s,r){const{missing:o,onWarn:i}=e;if(o!==null){const a=o(e,n,t,r);return Se(a)?a:t}else return t}function ho(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let G_=N_.__EXTEND_POINT__;const du=()=>++G_,Ir={INVALID_ARGUMENT:G_,INVALID_DATE_ARGUMENT:du(),INVALID_ISO_DATE_ARGUMENT:du(),__EXTEND_POINT__:du()};function Fr(e){return V_(e,null,void 0)}const ff=()=>"",Jn=e=>jt(e);function pf(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:o,fallbackLocale:i,messages:a}=e,[u,c]=uc(...t),d=St(c.missingWarn)?c.missingWarn:e.missingWarn,f=St(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,m=St(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,h=Se(c.default)||St(c.default)?St(c.default)?o?u:()=>u:c.default:n?o?u:()=>u:"",_=n||h!=="",w=Se(c.locale)?c.locale:e.locale;m&&Aw(c);let[b,y,k]=p?[u,w,a[w]||{}]:K_(e,u,w,i,f,d),C=b,x=u;if(!p&&!(Se(C)||Jn(C))&&_&&(C=h,x=C),!p&&(!(Se(C)||Jn(C))||!Se(y)))return r?Il:u;let T=!1;const L=()=>{T=!0},I=Jn(C)?C:Z_(e,u,y,C,x,L);if(T)return C;const D=Dw(e,y,k,c),j=mw(D),Z=Tw(e,I,j),X=s?s(Z,u):Z;if(__INTLIFY_PROD_DEVTOOLS__){const U={timestamp:Date.now(),key:Se(u)?u:Jn(C)?C.key:"",locale:y||(Jn(C)?C.locale:""),format:Se(C)?C:Jn(C)?C.source:"",message:X};U.meta=nn({},e.__meta,Ew()||{}),hw(U)}return X}function Aw(e){Lt(e.list)?e.list=e.list.map(t=>Se(t)?sf(t):t):gt(e.named)&&Object.keys(e.named).forEach(t=>{Se(e.named[t])&&(e.named[t]=sf(e.named[t]))})}function K_(e,t,n,s,r,o){const{messages:i,onWarn:a,messageResolver:u,localeFallbacker:c}=e,d=c(e,s,n);let f={},m,p=null;const h="translate";for(let _=0;_<d.length&&(m=d[_],f=i[m]||{},(p=u(f,t))===null&&(p=f[t]),!(Se(p)||jt(p)));_++){const w=Ed(e,t,m,o,h);w!==t&&(p=w)}return[p,m,f]}function Z_(e,t,n,s,r,o){const{messageCompiler:i,warnHtmlMessage:a}=e;if(Jn(s)){const c=s;return c.locale=c.locale||n,c.key=c.key||t,c}if(i==null){const c=()=>s;return c.locale=n,c.key=t,c}const u=i(s,Ow(e,n,r,s,a,o));return u.locale=n,u.key=t,u.source=s,u}function Tw(e,t,n){return t(n)}function uc(...e){const[t,n,s]=e,r={};if(!Se(t)&&!Nt(t)&&!Jn(t))throw Fr(Ir.INVALID_ARGUMENT);const o=Nt(t)?String(t):(Jn(t),t);return Nt(n)?r.plural=n:Se(n)?r.default=n:nt(n)&&!Pl(n)?r.named=n:Lt(n)&&(r.list=n),Nt(s)?r.plural=s:Se(s)?r.default=s:nt(s)&&nn(r,s),[o,r]}function Ow(e,t,n,s,r,o){return{warnHtmlMessage:r,onError:i=>{throw o&&o(i),i},onCacheKey:i=>qC(t,n,i)}}function Dw(e,t,n,s){const{modifiers:r,pluralRules:o,messageResolver:i,fallbackLocale:a,fallbackWarn:u,missingWarn:c,fallbackContext:d}=e,m={locale:t,modifiers:r,pluralRules:o,messages:p=>{let h=i(n,p);if(h==null&&d){const[,,_]=K_(d,p,t,a,u,c);h=i(_,p)}if(Se(h)){let _=!1;const b=Z_(e,p,t,h,p,()=>{_=!0});return _?ff:b}else return Jn(h)?h:ff}};return e.processor&&(m.processor=e.processor),s.list&&(m.list=s.list),s.named&&(m.named=s.named),Nt(s.plural)&&(m.pluralIndex=s.plural),m}function hf(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[u,c,d,f]=cc(...t),m=St(d.missingWarn)?d.missingWarn:e.missingWarn;St(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const p=!!d.part,h=Se(d.locale)?d.locale:e.locale,_=i(e,r,h);if(!Se(u)||u==="")return new Intl.DateTimeFormat(h,f).format(c);let w={},b,y=null;const k="datetime format";for(let T=0;T<_.length&&(b=_[T],w=n[b]||{},y=w[u],!nt(y));T++)Ed(e,u,b,m,k);if(!nt(y)||!Se(b))return s?Il:u;let C=`${b}__${u}`;Pl(f)||(C=`${C}__${JSON.stringify(f)}`);let x=a.get(C);return x||(x=new Intl.DateTimeFormat(b,nn({},y,f)),a.set(C,x)),p?x.formatToParts(c):x.format(c)}const Y_=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function cc(...e){const[t,n,s,r]=e,o={};let i={},a;if(Se(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw Fr(Ir.INVALID_ISO_DATE_ARGUMENT);const c=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();a=new Date(c);try{a.toISOString()}catch{throw Fr(Ir.INVALID_ISO_DATE_ARGUMENT)}}else if(GC(t)){if(isNaN(t.getTime()))throw Fr(Ir.INVALID_DATE_ARGUMENT);a=t}else if(Nt(t))a=t;else throw Fr(Ir.INVALID_ARGUMENT);return Se(n)?o.key=n:nt(n)&&Object.keys(n).forEach(u=>{Y_.includes(u)?i[u]=n[u]:o[u]=n[u]}),Se(s)?o.locale=s:nt(s)&&(i=s),nt(r)&&(i=r),[o.key||"",a,o,i]}function _f(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;!s.__datetimeFormatters.has(o)||s.__datetimeFormatters.delete(o)}}function gf(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:a}=e,[u,c,d,f]=dc(...t),m=St(d.missingWarn)?d.missingWarn:e.missingWarn;St(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const p=!!d.part,h=Se(d.locale)?d.locale:e.locale,_=i(e,r,h);if(!Se(u)||u==="")return new Intl.NumberFormat(h,f).format(c);let w={},b,y=null;const k="number format";for(let T=0;T<_.length&&(b=_[T],w=n[b]||{},y=w[u],!nt(y));T++)Ed(e,u,b,m,k);if(!nt(y)||!Se(b))return s?Il:u;let C=`${b}__${u}`;Pl(f)||(C=`${C}__${JSON.stringify(f)}`);let x=a.get(C);return x||(x=new Intl.NumberFormat(b,nn({},y,f)),a.set(C,x)),p?x.formatToParts(c):x.format(c)}const J_=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function dc(...e){const[t,n,s,r]=e,o={};let i={};if(!Nt(t))throw Fr(Ir.INVALID_ARGUMENT);const a=t;return Se(n)?o.key=n:nt(n)&&Object.keys(n).forEach(u=>{J_.includes(u)?i[u]=n[u]:o[u]=n[u]}),Se(s)?o.locale=s:nt(s)&&(i=s),nt(r)&&(i=r),[o.key||"",a,o,i]}function yf(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;!s.__numberFormatters.has(o)||s.__numberFormatters.delete(o)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(wd().__INTLIFY_PROD_DEVTOOLS__=!1);function Pw(){return X_().__VUE_DEVTOOLS_GLOBAL_HOOK__}function X_(){return typeof navigator!="undefined"&&typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const Iw=typeof Proxy=="function",Fw="devtools-plugin:setup",Rw="plugin:settings:set";let br,mc;function Lw(){var e;return br!==void 0||(typeof window!="undefined"&&window.performance?(br=!0,mc=window.performance):typeof global!="undefined"&&((e=global.perf_hooks)===null||e===void 0?void 0:e.performance)?(br=!0,mc=global.perf_hooks.performance):br=!1),br}function Mw(){return Lw()?mc.now():Date.now()}class Nw{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const i in t.settings){const a=t.settings[i];s[i]=a.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},s);try{const i=localStorage.getItem(r),a=JSON.parse(i);Object.assign(o,a)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(r,JSON.stringify(i))}catch{}o=i},now(){return Mw()}},n&&n.on(Rw,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...u)=>{this.onQueue.push({method:a,args:u})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...u)=>(this.targetQueue.push({method:a,args:u,resolve:()=>{}}),this.fallbacks[a](...u)):(...u)=>new Promise(c=>{this.targetQueue.push({method:a,args:u,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Vw(e,t){const n=e,s=X_(),r=Pw(),o=Iw&&n.enableEarlyProxy;if(r&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))r.emit(Fw,e,t);else{const i=o?new Nw(n,r):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
|
|
* vue-i18n v9.3.0-beta.14
|
|
* (c) 2023 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const Bw="9.3.0-beta.14";function Hw(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(wd().__INTLIFY_PROD_DEVTOOLS__=!1)}gw.__EXTEND_POINT__;let Q_=N_.__EXTEND_POINT__;const sn=()=>++Q_,Cn={UNEXPECTED_RETURN_TYPE:Q_,INVALID_ARGUMENT:sn(),MUST_BE_CALL_SETUP_TOP:sn(),NOT_INSLALLED:sn(),NOT_AVAILABLE_IN_LEGACY_MODE:sn(),REQUIRED_VALUE:sn(),INVALID_VALUE:sn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:sn(),NOT_INSLALLED_WITH_PROVIDE:sn(),UNEXPECTED_ERROR:sn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:sn(),BRIDGE_SUPPORT_VUE_2_ONLY:sn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:sn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:sn(),__EXTEND_POINT__:sn()};function Tn(e,...t){return V_(e,null,void 0)}const fc=Ws("__translateVNode"),pc=Ws("__datetimeParts"),hc=Ws("__numberParts"),Uw=Ws("__setPluralRules");Ws("__intlifyMeta");const jw=Ws("__injectWithOption");function _c(e){if(!gt(e))return e;for(const t in e)if(!!zd(e,t))if(!t.includes("."))gt(e[t])&&_c(e[t]);else{const n=t.split("."),s=n.length-1;let r=e;for(let o=0;o<s;o++)n[o]in r||(r[n[o]]={}),r=r[n[o]];r[n[s]]=e[t],delete e[t],gt(r[n[s]])&&_c(r[n[s]])}return e}function eg(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:o}=t,i=nt(n)?n:Lt(s)?{}:{[e]:{}};if(Lt(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:u,resource:c}=a;u?(i[u]=i[u]||{},Uo(c,i[u])):Uo(c,i)}else Se(a)&&Uo(JSON.parse(a),i)}),r==null&&o)for(const a in i)zd(i,a)&&_c(i[a]);return i}const ji=e=>!gt(e)||Lt(e);function Uo(e,t){if(ji(e)||ji(t))throw Tn(Cn.INVALID_VALUE);for(const n in e)zd(e,n)&&(ji(e[n])||ji(t[n])?t[n]=e[n]:Uo(e[n],t[n]))}function tg(e){return e.type}function qw(e,t,n){let s=gt(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=eg(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,s[o])});{if(gt(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(gt(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function vf(e){return v(Bs,null,e,0)}const bf="__INTLIFY_META__";let Cf=0;function wf(e){return(t,n,s,r)=>e(n,s,Dn()||void 0,r)}const Ww=()=>{const e=Dn();let t=null;return e&&(t=tg(e)[bf])?{[bf]:t}:null};function ng(e={},t){const{__root:n}=e,s=n===void 0;let r=St(e.inheritLocale)?e.inheritLocale:!0;const o=Xt(n&&r?n.locale.value:Se(e.locale)?e.locale:xd),i=Xt(n&&r?n.fallbackLocale.value:Se(e.fallbackLocale)||Lt(e.fallbackLocale)||nt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),a=Xt(eg(o.value,e)),u=Xt(nt(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),c=Xt(nt(e.numberFormats)?e.numberFormats:{[o.value]:{}});let d=n?n.missingWarn:St(e.missingWarn)||el(e.missingWarn)?e.missingWarn:!0,f=n?n.fallbackWarn:St(e.fallbackWarn)||el(e.fallbackWarn)?e.fallbackWarn:!0,m=n?n.fallbackRoot:St(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,h=jt(e.missing)?e.missing:null,_=jt(e.missing)?wf(e.missing):null,w=jt(e.postTranslation)?e.postTranslation:null,b=n?n.warnHtmlMessage:St(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const k=n?n.modifiers:nt(e.modifiers)?e.modifiers:{};let C=e.pluralRules||n&&n.pluralRules,x;x=(()=>{s&&df(null);const R={version:Bw,locale:o.value,fallbackLocale:i.value,messages:a.value,modifiers:k,pluralRules:C,missing:_===null?void 0:_,missingWarn:d,fallbackWarn:f,fallbackFormat:p,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:b,escapeParameter:y,messageResolver:e.messageResolver,__meta:{framework:"vue"}};R.datetimeFormats=u.value,R.numberFormats=c.value,R.__datetimeFormatters=nt(x)?x.__datetimeFormatters:void 0,R.__numberFormatters=nt(x)?x.__numberFormatters:void 0;const B=Sw(R);return s&&df(B),B})(),ho(x,o.value,i.value);function L(){return[o.value,i.value,a.value,u.value,c.value]}const I=Rt({get:()=>o.value,set:R=>{o.value=R,x.locale=o.value}}),D=Rt({get:()=>i.value,set:R=>{i.value=R,x.fallbackLocale=i.value,ho(x,o.value,R)}}),j=Rt(()=>a.value),Z=Rt(()=>u.value),X=Rt(()=>c.value);function U(){return jt(w)?w:null}function q(R){w=R,x.postTranslation=R}function Ce(){return h}function te(R){R!==null&&(_=wf(R)),h=R,x.missing=_}const ie=(R,B,ge,we,Re,qe)=>{L();let Be;if(__INTLIFY_PROD_DEVTOOLS__)try{cf(Ww()),s||(x.fallbackContext=n?$w():void 0),Be=R(x)}finally{cf(null),s||(x.fallbackContext=void 0)}else Be=R(x);if(Nt(Be)&&Be===Il){const[F,M]=B();return n&&m?we(n):Re(F)}else{if(qe(Be))return Be;throw Tn(Cn.UNEXPECTED_RETURN_TYPE)}};function ye(...R){return ie(B=>Reflect.apply(pf,null,[B,...R]),()=>uc(...R),"translate",B=>Reflect.apply(B.t,B,[...R]),B=>B,B=>Se(B))}function je(...R){const[B,ge,we]=R;if(we&&!gt(we))throw Tn(Cn.INVALID_ARGUMENT);return ye(B,ge,nn({resolvedMessage:!0},we||{}))}function at(...R){return ie(B=>Reflect.apply(hf,null,[B,...R]),()=>cc(...R),"datetime format",B=>Reflect.apply(B.d,B,[...R]),()=>lf,B=>Se(B))}function ce(...R){return ie(B=>Reflect.apply(gf,null,[B,...R]),()=>dc(...R),"number format",B=>Reflect.apply(B.n,B,[...R]),()=>lf,B=>Se(B))}function W(R){return R.map(B=>Se(B)||Nt(B)||St(B)?vf(String(B)):B)}const De={normalize:W,interpolate:R=>R,type:"vnode"};function Me(...R){return ie(B=>{let ge;const we=B;try{we.processor=De,ge=Reflect.apply(pf,null,[we,...R])}finally{we.processor=null}return ge},()=>uc(...R),"translate",B=>B[fc](...R),B=>[vf(B)],B=>Lt(B))}function Ee(...R){return ie(B=>Reflect.apply(gf,null,[B,...R]),()=>dc(...R),"number format",B=>B[hc](...R),()=>[],B=>Se(B)||Lt(B))}function V(...R){return ie(B=>Reflect.apply(hf,null,[B,...R]),()=>cc(...R),"datetime format",B=>B[pc](...R),()=>[],B=>Se(B)||Lt(B))}function le(R){C=R,x.pluralRules=C}function ne(R,B){const ge=Se(B)?B:o.value,we=A(ge);return x.messageResolver(we,R)!==null}function pe(R){let B=null;const ge=H_(x,i.value,o.value);for(let we=0;we<ge.length;we++){const Re=a.value[ge[we]]||{},qe=x.messageResolver(Re,R);if(qe!=null){B=qe;break}}return B}function Pe(R){const B=pe(R);return B!=null?B:n?n.tm(R)||{}:{}}function A(R){return a.value[R]||{}}function O(R,B){a.value[R]=B,x.messages=a.value}function P(R,B){a.value[R]=a.value[R]||{},Uo(B,a.value[R]),x.messages=a.value}function K(R){return u.value[R]||{}}function J(R,B){u.value[R]=B,x.datetimeFormats=u.value,_f(x,R,B)}function ee(R,B){u.value[R]=nn(u.value[R]||{},B),x.datetimeFormats=u.value,_f(x,R,B)}function de(R){return c.value[R]||{}}function ae(R,B){c.value[R]=B,x.numberFormats=c.value,yf(x,R,B)}function oe(R,B){c.value[R]=nn(c.value[R]||{},B),x.numberFormats=c.value,yf(x,R,B)}Cf++,n&&lc&&(tn(n.locale,R=>{r&&(o.value=R,x.locale=R,ho(x,o.value,i.value))}),tn(n.fallbackLocale,R=>{r&&(i.value=R,x.fallbackLocale=R,ho(x,o.value,i.value))}));const Y={id:Cf,locale:I,fallbackLocale:D,get inheritLocale(){return r},set inheritLocale(R){r=R,R&&n&&(o.value=n.locale.value,i.value=n.fallbackLocale.value,ho(x,o.value,i.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:j,get modifiers(){return k},get pluralRules(){return C||{}},get isGlobal(){return s},get missingWarn(){return d},set missingWarn(R){d=R,x.missingWarn=d},get fallbackWarn(){return f},set fallbackWarn(R){f=R,x.fallbackWarn=f},get fallbackRoot(){return m},set fallbackRoot(R){m=R},get fallbackFormat(){return p},set fallbackFormat(R){p=R,x.fallbackFormat=p},get warnHtmlMessage(){return b},set warnHtmlMessage(R){b=R,x.warnHtmlMessage=R},get escapeParameter(){return y},set escapeParameter(R){y=R,x.escapeParameter=R},t:ye,getLocaleMessage:A,setLocaleMessage:O,mergeLocaleMessage:P,getPostTranslationHandler:U,setPostTranslationHandler:q,getMissingHandler:Ce,setMissingHandler:te,[Uw]:le};return Y.datetimeFormats=Z,Y.numberFormats=X,Y.rt=je,Y.te=ne,Y.tm=Pe,Y.d=at,Y.n=ce,Y.getDateTimeFormat=K,Y.setDateTimeFormat=J,Y.mergeDateTimeFormat=ee,Y.getNumberFormat=de,Y.setNumberFormat=ae,Y.mergeNumberFormat=oe,Y[jw]=e.__injectWithOption,Y[fc]=Me,Y[pc]=V,Y[hc]=Ee,Y}const $d={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Gw({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>[...s,...r.type===Oe?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},{})}function sg(e){return Oe}const zf={name:"i18n-t",props:nn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Nt(e)||!isNaN(e)}},$d),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||Sd({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=Se(e.plural)?+e.plural:e.plural);const a=Gw(t,o),u=r[fc](e.keypath,a,i),c=nn({},s),d=Se(e.tag)||gt(e.tag)?e.tag:sg();return Qn(d,c,u)}}};function Kw(e){return Lt(e)&&!Se(e[0])}function rg(e,t,n,s){const{slots:r,attrs:o}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),Se(e.format)?i.key=e.format:gt(e.format)&&(Se(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((m,p)=>n.includes(p)?nn({},m,{[p]:e.format[p]}):m,{}));const u=s(e.value,i,a);let c=[i.key];Lt(u)?c=u.map((m,p)=>{const h=r[m.type],_=h?h({[m.type]:m.value,index:p,parts:u}):[m.value];return Kw(_)&&(_[0].key=`${m.type}-${p}`),_}):Se(u)&&(c=[u]);const d=nn({},o),f=Se(e.tag)||gt(e.tag)?e.tag:sg();return Qn(f,d,c)}}const kf={name:"i18n-n",props:nn({value:{type:Number,required:!0},format:{type:[String,Object]}},$d),setup(e,t){const n=e.i18n||Sd({useScope:"parent",__useComponent:!0});return rg(e,t,J_,(...s)=>n[hc](...s))}},xf={name:"i18n-d",props:nn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$d),setup(e,t){const n=e.i18n||Sd({useScope:"parent",__useComponent:!0});return rg(e,t,Y_,(...s)=>n[pc](...s))}};function Zw(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Yw(e){const t=i=>{const{instance:a,modifiers:u,value:c}=i;if(!a||!a.$)throw Tn(Cn.UNEXPECTED_ERROR);const d=Zw(e,a.$),f=Ef(c);return[Reflect.apply(d.t,d,[...$f(f)]),d]};return{created:(i,a)=>{const[u,c]=t(a);lc&&e.global===c&&(i.__i18nWatcher=tn(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=c,i.textContent=u},unmounted:i=>{lc&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const u=i.__composer,c=Ef(a);i.textContent=Reflect.apply(u.t,u,[...$f(c)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Ef(e){if(Se(e))return{path:e};if(nt(e)){if(!("path"in e))throw Tn(Cn.REQUIRED_VALUE,"path");return e}else throw Tn(Cn.INVALID_VALUE)}function $f(e){const{path:t,locale:n,args:s,choice:r,plural:o}=e,i={},a=s||{};return Se(n)&&(i.locale=n),Nt(r)&&(i.plural=r),Nt(o)&&(i.plural=o),[t,a,i]}function Jw(e,t,...n){const s=nt(n[0])?n[0]:{},r=!!s.useI18nComponentName;(St(s.globalInstall)?s.globalInstall:!0)&&(e.component(r?"i18n":zf.name,zf),e.component(kf.name,kf),e.component(xf.name,xf)),e.directive("t",Yw(t))}const Xw=Ws("global-vue-i18n");function Qw(e={},t){const n=St(e.globalInjection)?e.globalInjection:!0,s=!0,r=new Map,[o,i]=ez(e),a=Ws("");function u(f){return r.get(f)||null}function c(f,m){r.set(f,m)}function d(f){r.delete(f)}{const f={get mode(){return"composition"},get allowComposition(){return s},async install(m,...p){if(m.__VUE_I18N_SYMBOL__=a,m.provide(m.__VUE_I18N_SYMBOL__,f),nt(p[0])){const _=p[0];f.__composerExtend=_.__composerExtend,f.__vueI18nExtend=_.__vueI18nExtend}n&&lz(m,f.global),Jw(m,f,...p);const h=m.unmount;m.unmount=()=>{f.dispose(),h()}},get global(){return i},dispose(){o.stop()},__instances:r,__getInstance:u,__setInstance:c,__deleteInstance:d};return f}}function Sd(e={}){const t=Dn();if(t==null)throw Tn(Cn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Tn(Cn.NOT_INSLALLED);const n=tz(t),s=sz(n),r=tg(t),o=nz(e,r);if(o==="global")return qw(s,e,r),s;if(o==="parent"){let u=rz(n,t,e.__useComponent);return u==null&&(u=s),u}const i=n;let a=i.__getInstance(t);if(a==null){const u=nn({},e);"__i18n"in r&&(u.__i18n=r.__i18n),s&&(u.__root=s),a=ng(u),i.__composerExtend&&i.__composerExtend(a),oz(i,t),i.__setInstance(t,a)}return a}function ez(e,t,n){const s=Jc();{const r=s.run(()=>ng(e));if(r==null)throw Tn(Cn.UNEXPECTED_ERROR);return[s,r]}}function tz(e){{const t=Hn(e.isCE?Xw:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Tn(e.isCE?Cn.NOT_INSLALLED_WITH_PROVIDE:Cn.UNEXPECTED_ERROR);return t}}function nz(e,t){return Pl(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function sz(e){return e.mode==="composition"?e.global:e.global.__composer}function rz(e,t,n=!1){let s=null;const r=t.root;let o=t.parent;for(;o!=null;){const i=e;if(e.mode==="composition"&&(s=i.__getInstance(o)),s!=null||r===o)break;o=o.parent}return s}function oz(e,t,n){ro(()=>{},t),bi(()=>{e.__deleteInstance(t)},t)}const iz=["locale","fallbackLocale","availableLocales"],az=["t","rt","d","n","tm","te"];function lz(e,t){const n=Object.create(null);iz.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r)throw Tn(Cn.UNEXPECTED_ERROR);const o=Pt(r.value)?{get(){return r.value.value},set(i){r.value.value=i}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,az.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r||!r.value)throw Tn(Cn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,r)})}kw(rw);xw(H_);Hw();if(__INTLIFY_PROD_DEVTOOLS__){const e=wd();e.__INTLIFY__=!0,fw(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var uz={de:{data:{kind:{file:e=>{const{normalize:t}=e;return t(["Datei"])},url:e=>{const{normalize:t}=e;return t(["URL"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])},pipe:e=>{const{normalize:t}=e;return t(["Stream"])}}},dialog:{cancel:e=>{const{normalize:t}=e;return t(["Abbrechen"])},add:{rss:{add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},cancel:e=>{const{normalize:t}=e;return t(["Abbrechen"])},help:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen eines Podcasts f\xFChrt zur Anlage einer RSS-Playlist, so kann Owntone das Podcast-Abo verwalten."])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-to-rss"])},processing:e=>{const{normalize:t}=e;return t(["Verarbeite\u2026"])},title:e=>{const{normalize:t}=e;return t(["F\xFCge Podcast RSS-Feed-Url hinzu"])}},stream:{add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},cancel:e=>{const{normalize:t}=e;return t(["Abbrechen"])},loading:e=>{const{normalize:t}=e;return t(["Lade\u2026"])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-to-stream"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},title:e=>{const{normalize:t}=e;return t(["Stream-URL hinzuf\xFCgen"])}}},album:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},"added-on":e=>{const{normalize:t}=e;return t(["Hinzugef\xFCgt am"])},artist:e=>{const{normalize:t}=e;return t(["Album K\xFCnstler"])},duration:e=>{const{normalize:t}=e;return t(["Dauer"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Markiere als gespielt"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},"release-date":e=>{const{normalize:t}=e;return t(["Ver\xF6ffentlichungsdatum"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Entferne podcast"])},tracks:e=>{const{normalize:t}=e;return t(["Track Nummer"])},type:e=>{const{normalize:t}=e;return t(["Art"])},year:e=>{const{normalize:t}=e;return t(["Jahr"])}},artist:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},"added-on":e=>{const{normalize:t}=e;return t(["Hinzugef\xFCgt am"])},albums:e=>{const{normalize:t}=e;return t(["Alben"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},type:e=>{const{normalize:t}=e;return t(["Art"])}},composer:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},albums:e=>{const{normalize:t}=e;return t(["Alben"])},duration:e=>{const{normalize:t}=e;return t(["Dauer"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},directory:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])}},genre:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},albums:e=>{const{normalize:t}=e;return t(["Alben"])},duration:e=>{const{normalize:t}=e;return t(["Dauer"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},path:e=>{const{normalize:t}=e;return t(["Pfad"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},"track-count":e=>{const{normalize:t}=e;return t(["Tracknummer"])},type:e=>{const{normalize:t}=e;return t(["Art"])},save:{cancel:e=>{const{normalize:t}=e;return t(["Abbrechen"])},save:e=>{const{normalize:t}=e;return t(["Speichern"])},saving:e=>{const{normalize:t}=e;return t(["Speichere\u2026"])},title:e=>{const{normalize:t}=e;return t(["Warteschlange als Playlist speichern"])}}},"queue-item":{"album-artist":e=>{const{normalize:t}=e;return t(["Album-K\xFCnstler"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["|"," ",n(s("rate"))," kbit/s"])},channels:e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["|"," ",n(s("channels"))])},composer:e=>{const{normalize:t}=e;return t(["Komponist"])},duration:e=>{const{normalize:t}=e;return t(["Dauer"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},path:e=>{const{normalize:t}=e;return t(["Pfad"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},quality:e=>{const{normalize:t}=e;return t(["Qualit\xE4t"])},remove:e=>{const{normalize:t}=e;return t(["Entfernen"])},samplerate:e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["|"," ",n(s("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["Album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},type:e=>{const{normalize:t}=e;return t(["Art"])},year:e=>{const{normalize:t}=e;return t(["Jahr"])}},"remote-pairing":{cancel:e=>{const{normalize:t}=e;return t(["Abbrechen"])},pair:e=>{const{normalize:t}=e;return t(["Remote paaren"])},title:e=>{const{normalize:t}=e;return t(["Remote-Paarungs-Anfrage"])}},spotify:{album:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album-K\xFCnstler"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},"release-date":e=>{const{normalize:t}=e;return t(["Ver\xF6ffentlichungsdatum"])},type:e=>{const{normalize:t}=e;return t(["Art"])}},artist:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},popularity:e=>{const{normalize:t}=e;return t(["Popularit\xE4t / Followers"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},owner:e=>{const{normalize:t}=e;return t(["Besitzer"])},path:e=>{const{normalize:t}=e;return t(["Pfad"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album-K\xFCnstler"])},album:e=>{const{normalize:t}=e;return t(["Album"])},duration:e=>{const{normalize:t}=e;return t(["Dauer"])},path:e=>{const{normalize:t}=e;return t(["Pfad"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},"release-date":e=>{const{normalize:t}=e;return t(["Ver\xF6ffentlichungsdatum"])}}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Als n\xE4chstes hinzuf\xFCgen"])},add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},"added-on":e=>{const{normalize:t}=e;return t(["Hinzugef\xFCgt am"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album-K\xFCnstler"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("rate"))," Kb/s"])},channels:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("channels"))])},comment:e=>{const{normalize:t}=e;return t(["Kommentar"])},composer:e=>{const{normalize:t}=e;return t(["Komponist"])},duration:e=>{const{normalize:t}=e;return t(["Dauer"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},"mark-as-new":e=>{const{normalize:t}=e;return t(["Markiere als neu"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Markiere als gespielt"])},path:e=>{const{normalize:t}=e;return t(["Pfad"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},quality:e=>{const{normalize:t}=e;return t(["Qualit\xE4t"])},"rating-value":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("rating"))," / 10"])},rating:e=>{const{normalize:t}=e;return t(["Bewertung"])},"release-date":e=>{const{normalize:t}=e;return t(["Ver\xF6ffentlichungsdatum"])},samplerate:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["Album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},type:e=>{const{normalize:t}=e;return t(["Art"])},year:e=>{const{normalize:t}=e;return t(["Jahr"])}},update:{all:e=>{const{normalize:t}=e;return t(["Alles neu einlesen"])},cancel:e=>{const{normalize:t}=e;return t(["Abbrechen"])},feeds:e=>{const{normalize:t}=e;return t(["Nur RSS-Feeds neu einlesen"])},info:e=>{const{normalize:t}=e;return t(["Suche nach neuen, gel\xF6schten und ver\xE4nderten Dateien"])},local:e=>{const{normalize:t}=e;return t(["Nur lokale Bibliothek neu einlesen"])},progress:e=>{const{normalize:t}=e;return t(["Bibliothek wird neu eingelesen\u2026"])},"rescan-metadata":e=>{const{normalize:t}=e;return t(["Metadata von unver\xE4nderten Dateien neu einlesen"])},rescan:e=>{const{normalize:t}=e;return t(["Neu einlesen"])},spotify:e=>{const{normalize:t}=e;return t(["Nur Spotify neu einlesen"])},title:e=>{const{normalize:t}=e;return t(["Bibliothek neu einlesen"])}}},language:{de:e=>{const{normalize:t}=e;return t(["Deutsch"])},en:e=>{const{normalize:t}=e;return t(["Englisch (English)"])},fr:e=>{const{normalize:t}=e;return t(["Franz\xF6sisch (Fran\xE7ais)"])}},list:{albums:{"info-1":e=>{const{normalize:t}=e;return t(["Diesen Podcast dauerhaft aus der Bibliothek l\xF6schen?"])},"info-2":e=>{const{normalize:t}=e;return t(["Dies wir auch RSS-Playlisten l\xF6schen "])},remove:e=>{const{normalize:t}=e;return t(["Entfernen"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Entferne podcast"])}},spotify:{"not-playable-track":e=>{const{normalize:t}=e;return t(["Track kann nicht gespielt werden"])},"restriction-reason":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([", Beschr\xE4nkungsgrund: ",n(s("reason"))])}}},media:{kind:{album:e=>{const{normalize:t}=e;return t(["Album"])},audiobook:e=>{const{normalize:t}=e;return t(["H\xF6rbuch"])},music:e=>{const{normalize:t}=e;return t(["Musik"])},podcast:e=>{const{normalize:t}=e;return t(["Podcast"])}}},navigation:{about:e=>{const{normalize:t}=e;return t(["\xDCber"])},albums:e=>{const{normalize:t}=e;return t(["Alben"])},artists:e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},audiobooks:e=>{const{normalize:t}=e;return t(["H\xF6rb\xFCcher"])},"now-playing":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" - ",n(s("album"))])},"stream-error":e=>{const{normalize:t}=e;return t(["HTTP-stream-Fehler: Stream kann nicht geladen werden oder wurde wg. Netzwerkfehler gestopt"])},stream:e=>{const{normalize:t}=e;return t(["HTTP-stream"])},volume:e=>{const{normalize:t}=e;return t(["Lautst\xE4rke"])},files:e=>{const{normalize:t}=e;return t(["Dateien"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},music:e=>{const{normalize:t}=e;return t(["Musik"])},playlists:e=>{const{normalize:t}=e;return t(["Playlisten"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},radio:e=>{const{normalize:t}=e;return t(["Radio"])},search:e=>{const{normalize:t}=e;return t(["Suche"])},settings:e=>{const{normalize:t}=e;return t(["Einstellungen"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])},title:e=>{const{normalize:t}=e;return t(["OwnTone"])},"update-library":e=>{const{normalize:t}=e;return t(["Bibliothek neu einlesen"])}},page:{about:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},"built-with":e=>{const{normalize:t}=e;return t(['Oberfl\xE4che erstellt mit <a href="https://bulma.io">Bulma</a>, <a href="https://materialdesignicons.com/">Material Design Icons</a>, <a href="https://vuejs.org/">Vue.js</a>, <a href="https://github.com/mzabriskie/axios">axios</a> und <a href="https://github.com/owntone/owntone-server/network/dependencies">anderem</a>.'])},"compiled-with":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Compiliert mit Unterst\xFCtzung von ",n(s("options")),"."])},library:e=>{const{normalize:t}=e;return t(["Bibliothek"])},"total-playtime":e=>{const{normalize:t}=e;return t(["Gesamte Spielzeit"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},update:e=>{const{normalize:t}=e;return t(["Neu einlesen"])},"updated-on":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["vor ",n(s("time"))])},updated:e=>{const{normalize:t}=e;return t(["Neu eingelesen"])},uptime:e=>{const{normalize:t}=e;return t(["Laufzeit"])},version:e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Version ",n(s("version"))])}},album:{shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Tracks"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Slbums"])},filter:e=>{const{normalize:t}=e;return t(["Filter"])},"hide-singles-help":e=>{const{normalize:t}=e;return t(["Nach Aktivierung werden keine Singles und Alben angezeigt, die nur in Playlisten enthalten sind."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Nach Aktivierung werden keine Singles angezeigt"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["Nach Aktivierung werden keine Alben angezeigt, die nur in der Spotify-Bibliothek enthalten sind."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Verbirgt Spotify-Alben"])},title:e=>{const{normalize:t}=e;return t(["Alben"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sortieren nach"])},name:e=>{const{normalize:t}=e;return t(["Name"])},"recently-added":e=>{const{normalize:t}=e;return t(["K\xFCrzlich hinzugef\xFCgt"])},"recently-released":e=>{const{normalize:t}=e;return t(["K\xFCrzlich erschienen"])}}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Alben"])},shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Tracks"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sortieren nach"])},name:e=>{const{normalize:t}=e;return t(["Name"])},rating:e=>{const{normalize:t}=e;return t(["Bewertung"])},"release-date":e=>{const{normalize:t}=e;return t(["Erscheinungsdatum"])}}},artists:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," K\xFCnstler"])},filter:e=>{const{normalize:t}=e;return t(["Filter"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sortieren nach"])},name:e=>{const{normalize:t}=e;return t(["Namen"])},"recently-added":e=>{const{normalize:t}=e;return t(["K\xFCrzlich hinzugef\xFCgt"])}},"hide-singles-help":e=>{const{normalize:t}=e;return t(["Nach Aktivierung werden keine Singles und Alben angezeigt, die nur in Playlisten enthalten sind."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Nach Aktivierung werden keine Singles angezeigt"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["Nach Aktivierung werden keine Alben angezeigt, die nur in der Spotify-Bibliothek enthalten sind."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Verbirgt K\xFCnstler auf Spotify"])},title:e=>{const{normalize:t}=e;return t(["K\xFCnstler"])}},audiobooks:{album:{play:e=>{const{normalize:t}=e;return t(["Spielen"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Tracks"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," H\xF6rb\xFCcher"])},title:e=>{const{normalize:t}=e;return t(["H\xF6rb\xFCcher"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Alben"])},play:e=>{const{normalize:t}=e;return t(["Spielen"])}},artists:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Autoren"])},title:e=>{const{normalize:t}=e;return t(["Autoren"])}},tabs:{authors:e=>{const{normalize:t}=e;return t(["Autoren"])},audiobooks:e=>{const{normalize:t}=e;return t(["H\xF6rb\xFCcher"])}}},browse:{albums:e=>{const{normalize:t}=e;return t(["Alben"])},"show-more":e=>{const{normalize:t}=e;return t(["Zeige mehr"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},"recently-added":{albums:e=>{const{normalize:t}=e;return t(["Alben"])},title:e=>{const{normalize:t}=e;return t(["K\xFCrzlich hinzugef\xFCgt"])}},"recently-played":{title:e=>{const{normalize:t}=e;return t(["K\xFCrzlich gespielt"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},tabs:{albums:e=>{const{normalize:t}=e;return t(["Alben"])},artists:e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},browse:e=>{const{normalize:t}=e;return t(["Ausw\xE4hlen"])},composers:e=>{const{normalize:t}=e;return t(["Komponisten"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}}},composer:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Alben"])},shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Tracks"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sortieren nach"])},name:e=>{const{normalize:t}=e;return t(["Name"])},rating:e=>{const{normalize:t}=e;return t(["Bewertung"])}}},composers:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Komponisten"])},title:e=>{const{normalize:t}=e;return t(["Komponisten"])}},files:{play:e=>{const{normalize:t}=e;return t(["Spielen"])},title:e=>{const{normalize:t}=e;return t(["Dateien"])}},genre:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Alben"])},shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Tracks"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sortieren nach"])},name:e=>{const{normalize:t}=e;return t(["Name"])},rating:e=>{const{normalize:t}=e;return t(["Bewertung"])}}},genres:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Genres"])},title:e=>{const{normalize:t}=e;return t(["Genres"])}},"now-playing":{info:e=>{const{normalize:t}=e;return t(["Tracks durch Ausw\xE4hlen aus der Bibliothek anf\xFCgen"])},live:e=>{const{normalize:t}=e;return t(["Live"])},title:e=>{const{normalize:t}=e;return t(["Deine Playliste ist leer."])}},playlist:{length:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("length"))," Tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Tracks"])}},playlists:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Playlisten"])}},podcast:{play:e=>{const{normalize:t}=e;return t(["Spielen"])},remove:e=>{const{normalize:t}=e;return t(["Entfernen"])},"remove-info-1":e=>{const{normalize:t}=e;return t(["Diesen Podcast wirklich dauerhaft aus der Bibliothek l\xF6schen?"])},"remove-info-2":e=>{const{normalize:t}=e;return t(["Damit wird auch die RSS-Playliste gel\xF6scht. "])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Entferne podcast"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Tracks"])}},podcasts:{add:e=>{const{normalize:t}=e;return t(["Hinzuf\xFCgen"])},count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Podcasts"])},"mark-all-played":e=>{const{normalize:t}=e;return t(["Alle abgespielten markieren"])},"new-episodes":e=>{const{normalize:t}=e;return t(["Neue Episoden"])},title:e=>{const{normalize:t}=e;return t(["Podcasts"])},update:e=>{const{normalize:t}=e;return t(["Neu einlesen"])}},queue:{"add-stream":e=>{const{normalize:t}=e;return t(["Stream hinzuf\xFCgen"])},clear:e=>{const{normalize:t}=e;return t(["Alle entfernen"])},count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Tracks"])},edit:e=>{const{normalize:t}=e;return t(["Bearbeiten"])},"hide-previous":e=>{const{normalize:t}=e;return t(["Vorherige verbergen"])},title:e=>{const{normalize:t}=e;return t(["Warteschlange"])},save:e=>{const{normalize:t}=e;return t(["Speichern"])}},radio:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Stationen"])},title:e=>{const{normalize:t}=e;return t(["Radio"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Alben"])},artists:e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},audiobooks:e=>{const{normalize:t}=e;return t(["H\xF6rb\xFCcher"])},composers:e=>{const{normalize:t}=e;return t(["Komponisten"])},help:e=>{const{normalize:t}=e;return t(['Tip: Du kannst mit einer Smart-Playlist-Abfrage-Sprache nach <a href="https://owntone.github.io/owntone-server/smart-playlists/" target="_blank">Ausdr\xFCcken</a> suchen wenn Du dem Ausdruck ein <code>query:</code> voranstellst.'])},"no-albums":e=>{const{normalize:t}=e;return t(["Keine Alben gefunden"])},"no-artists":e=>{const{normalize:t}=e;return t(["Keine K\xFCnstler gefunden"])},"no-audiobooks":e=>{const{normalize:t}=e;return t(["Keine H\xF6rb\xFCcher gefunden"])},"no-composers":e=>{const{normalize:t}=e;return t(["Keine Komponisten gefunden"])},"no-playlists":e=>{const{normalize:t}=e;return t(["Keine Playlisten gefunden"])},"no-podcasts":e=>{const{normalize:t}=e;return t(["Keine Podcasts gefunden"])},"no-tracks":e=>{const{normalize:t}=e;return t(["Keine Tracks gefunden"])},placeholder:e=>{const{normalize:t}=e;return t(["Suche"])},playlists:e=>{const{normalize:t}=e;return t(["Playlisten"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},"show-albums":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Zeige alle ",n(s("count"))," Alben"])},"show-artists":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Zeige alle ",n(s("count"))," K\xFCnstler"])},"show-audiobooks":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Zeige alle ",n(s("count"))," H\xF6rb\xFCcher"])},"show-composers":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Zeige alle ",n(s("count"))," Komponisten"])},"show-playlists":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Zeige alle ",n(s("count"))," Playlisten"])},"show-podcasts":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Zeige alle ",n(s("count"))," Podcasts"])},"show-tracks":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Zeige alle ",n(s("count"))," Tracks"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},tabs:{library:e=>{const{normalize:t}=e;return t(["Bibliothek"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}}},settings:{artwork:{artwork:e=>{const{normalize:t}=e;return t(["Artwork"])},coverartarchive:e=>{const{normalize:t}=e;return t(["Cover Art Archive"])},discogs:e=>{const{normalize:t}=e;return t(["Discogs"])},"explanation-1":e=>{const{normalize:t}=e;return t(["OwnTone verarbeitet PNG- und JPEG-Artwork, welches in einer eigenen Datei in der Bibliothek, in die Dateien eingebettet oder online von Radiostationen bereitgestellt werden kann."])},"explanation-2":e=>{const{normalize:t}=e;return t(["Zus\xE4tzlich kann auf folgende Artwork-Anbieter zugegriffen werden:"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}},devices:{"no-active-pairing":e=>{const{normalize:t}=e;return t(["Keine aktive Pairing-Anfrage"])},"pairing-request":e=>{const{normalize:t}=e;return t(["Remote-Pairing-Anfrage von "])},pairing:e=>{const{normalize:t}=e;return t(["Pairing Remote"])},send:e=>{const{normalize:t}=e;return t(["Senden"])},"speaker-pairing-info":e=>{const{normalize:t}=e;return t(["Wenn der Laufsprecher PIN-basiertes Pairing verlangt, aktiviere ihn hier und gib dann den hier PIN an, der am Lautsprecher angezeigt wird."])},"speaker-pairing":e=>{const{normalize:t}=e;return t(["Lautsprecher-Pairing und Ger\xE4teverifikation"])},"verification-code":e=>{const{normalize:t}=e;return t(["Verifikationscode eingeben"])},verify:e=>{const{normalize:t}=e;return t(["Verifizieren"])}},general:{"album-lists":e=>{const{normalize:t}=e;return t(["Album-Listen"])},audiobooks:e=>{const{normalize:t}=e;return t(["H\xF6rb\xFCcher"])},files:e=>{const{normalize:t}=e;return t(["Dateien"])},language:e=>{const{normalize:t}=e;return t(["Sprache"])},music:e=>{const{normalize:t}=e;return t(["Musik"])},"navigation-item-selection-info":e=>{const{normalize:t}=e;return t(["Wenn mehr Dateien ausgew\xE4hlt werden, als der Bildschirm anzeigen kann, verschwindet das Burger-Men\xFC."])},"navigation-item-selection":e=>{const{normalize:t}=e;return t(["W\xE4hle hier die Eintr\xE4ge des oberen Navigationsmen\xFCs "])},"navigation-items":e=>{const{normalize:t}=e;return t(["Navigationsmen\xFCs"])},"now-playing-page":e=>{const{normalize:t}=e;return t(["Aktuell l\xE4uft-Seite"])},playlists:e=>{const{normalize:t}=e;return t(["Playlisten"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},radio:e=>{const{normalize:t}=e;return t(["Radio"])},"recently-added-page-info":e=>{const{normalize:t}=e;return t(['Beschr\xE4nkte die Zahl der Alben auf der "k\xFCrzlich hinzugef\xFCgt"-Seite'])},"recently-added-page":e=>{const{normalize:t}=e;return t(["K\xFCrzlich hinzugef\xFCgt-Seite"])},search:e=>{const{normalize:t}=e;return t(["Suche"])},"show-composer-genres-info-1":e=>{const{normalize:t}=e;return t(['Komma-separierte Liste der Genres, wo der Komponist auf der "Aktuell l\xE4uft"-Seite angezeigt werden soll'])},"show-composer-genres-info-2":e=>{const{normalize:t}=e;return t(["Leer lassen, um ihn immer anzuzeigen."])},"show-composer-genres-info-3":e=>{const{normalize:t}=e;return t(['Der Genre-Tag des aktuellen Tracks wird abgeglichen als Teil-String des Genre-Tags. Z.B. "classical, soundtrack" wird den Komponisten beim Genre-Tag "Contemporary Classical" anzeigen'])},"show-composer-genres":e=>{const{normalize:t}=e;return t(["Zeige den Komponisten f\xFCr die aufgelisteten Genres an"])},"show-composer-info":e=>{const{normalize:t}=e;return t(['Wenn aktiviert, wird der Komponist auf der "Aktuell l\xE4uft"-Seite angezeigt.'])},"show-composer":e=>{const{normalize:t}=e;return t(["Komponisten anzeigen"])},"show-coverart":e=>{const{normalize:t}=e;return t(["Zeige Cover-Artwork in der Albumliste"])},"show-path":e=>{const{normalize:t}=e;return t(['Dateipfad auf der "Aktuell l\xE4uft"-Seite anzeigen'])}},services:{lastfm:{"grant-access":e=>{const{normalize:t}=e;return t(["<b>Last.fm</b> - melde Dich mit Deinem Last.fm-Usernamen und Password an, um Scrobbeln zu aktivieren"])},info:e=>{const{normalize:t}=e;return t(["OwnTone wird Usernamen und Passwort von last.fm nicht speichern, nur den Sitzungs-Schl\xFCssel. Dieser l\xE4uft nicht ab."])},title:e=>{const{normalize:t}=e;return t(["Last.fm"])},"no-support":e=>{const{normalize:t}=e;return t(["OwnTone wurde ohne Unterst\xFCtzung f\xFCr Last.fm erstellt."])},"stop-scrobbling":e=>{const{normalize:t}=e;return t(["Stop Scrobbling"])}},spotify:{"no-support":e=>{const{normalize:t}=e;return t(["OwnTone wurde entweder ohne Unterst\xFCtzung f\xFCr Spotify erstellt oder libspotify ist nicht installiert."])},"logged-as":e=>{const{normalize:t}=e;return t(["Angemeldet als "])},requirements:e=>{const{normalize:t}=e;return t(["Spotify Premium Abo erforderlich."])},scopes:e=>{const{normalize:t}=e;return t(["Zugriff auf die Spotify Web-Api erm\xF6glicht scannen der Spotify-Blibliothek. Erforderliche scopes sind: "])},user:e=>{const{normalize:t}=e;return t(["Zugriff gestattet f\xFCr "])},authorize:e=>{const{normalize:t}=e;return t(["Authorisiere Web-API-Zugriff"])},credentials:e=>{const{normalize:t}=e;return t([" - Anmelden mit dem Spotify Username und Passwort"])},"grant-access":e=>{const{normalize:t}=e;return t(["<b>Spotify Web-API</b> - Zugriff auf die Spotify Web-API gestatten"])},"help-1":e=>{const{normalize:t}=e;return t(["libspotify erm\xF6glicht OwnTone, Spotify-Tracks abzuspielen."])},"help-2":e=>{const{normalize:t}=e;return t(["OwnTone speichert das Passwort nicht, aber wird \xFCber libspotify dennoch einen automatischen Login \xFCber ein Login-Token erm\xF6glichen."])},reauthorize:e=>{const{normalize:t}=e;return t(["Bitte den Zugriff der Web-API durch setzen folgender Zugriffsrechte f\xFCr Owntone: "])},title:e=>{const{normalize:t}=e;return t(["Spotify"])}},login:e=>{const{normalize:t}=e;return t(["Einloggen"])},logout:e=>{const{normalize:t}=e;return t(["Ausloggen"])}},tabs:{artwork:e=>{const{normalize:t}=e;return t(["Artwork"])},general:e=>{const{normalize:t}=e;return t(["Allgemein"])},"online-services":e=>{const{normalize:t}=e;return t(["Online-Services"])},"remotes-and-outputs":e=>{const{normalize:t}=e;return t(["Fernbedienungen und Ausg\xE4nge"])}}},spotify:{album:{shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Tracks"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Alben"])},shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])}},browse:{"featured-playlists":e=>{const{normalize:t}=e;return t(["Ausgezeichnete Playlisten"])},"new-releases":e=>{const{normalize:t}=e;return t(["Neuvorstellung"])},"show-more":e=>{const{normalize:t}=e;return t(["Zeige mehr"])}},playlist:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Zufallswiedergabe"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Alben"])},artists:e=>{const{normalize:t}=e;return t(["K\xFCnstler"])},"no-albums":e=>{const{normalize:t}=e;return t(["Keine Alben gefunden"])},"no-artists":e=>{const{normalize:t}=e;return t(["Keine K\xFCnstler gefunden"])},"no-playlists":e=>{const{normalize:t}=e;return t(["Keine Playlisten gefunden"])},"no-tracks":e=>{const{normalize:t}=e;return t(["Keine Tracks gefunden"])},placeholder:e=>{const{normalize:t}=e;return t(["Suche"])},playlists:e=>{const{normalize:t}=e;return t(["Playlisten"])},"show-all-albums":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Zeige alle ",n(s("count"))," Alben"])},"show-all-artists":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Zeige alle ",n(s("count"))," K\xFCnstler"])},"show-all-playlists":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Zeige alle ",n(s("count"))," Playlisten"])},"show-all-tracks":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Zeige alle ",n(s("count"))," Tracks"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}}}},playlist:{type:{plain:e=>{const{normalize:t}=e;return t(["Einfache"])},smart:e=>{const{normalize:t}=e;return t(["Intelligente"])}}},player:{button:{consume:e=>{const{normalize:t}=e;return t(["Verlauf l\xF6schen"])},pause:e=>{const{normalize:t}=e;return t(["Wiedergabe anhalten"])},play:e=>{const{normalize:t}=e;return t(["Wiedergeben"])},repeat:e=>{const{normalize:t}=e;return t(["Alle Tracks wiederholen"])},"repeat-off":e=>{const{normalize:t}=e;return t(["Tracks einmal lesen"])},"repeat-once":e=>{const{normalize:t}=e;return t(["Aktuellen Track wiederholen"])},"seek-backward":e=>{const{normalize:t}=e;return t(["R\xFCckw\xE4rts im Track suchen"])},"seek-forward":e=>{const{normalize:t}=e;return t(["Vorw\xE4rts im Track suchen"])},shuffle:e=>{const{normalize:t}=e;return t(["Tracks zuf\xE4llig wiedergeben"])},"shuffle-disabled":e=>{const{normalize:t}=e;return t(["Tracks in Reihenfolge wiedergeben"])},"skip-backward":e=>{const{normalize:t}=e;return t(["Zum vorherigen Track springen"])},"skip-forward":e=>{const{normalize:t}=e;return t(["Zum n\xE4chsten Track springen"])},stop:e=>{const{normalize:t}=e;return t(["Wiedergabe stoppen"])}}},setting:{"not-saved":e=>{const{normalize:t}=e;return t([" (Fehler beim Speichern der Einstellungen)"])},saved:e=>{const{normalize:t}=e;return t([" (Einstellungen gesichert)"])}},server:{"connection-failed":e=>{const{normalize:t}=e;return t(["Fehler bei Verbindung zum OwnTone-Server"])},"missing-port":e=>{const{normalize:t}=e;return t(["Fehlender Websocket-Port"])},"request-failed":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Anfrage gescheitert (Status: ",n(s("status"))," ",n(s("cause"))," ",n(s("url")),")"])},"queue-saved":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Warteschlange zu Playlist ",n(s("name"))," gesichert"])},"appended-tracks":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Tracks an die Abspielliste angeh\xE4ngt"])},"empty-queue":e=>{const{normalize:t}=e;return t(["Warteschlange ist leer"])}},"group-by-list":{today:e=>{const{normalize:t}=e;return t(["Heute"])},"last-week":e=>{const{normalize:t}=e;return t(["Letzte Woche"])},"last-month":e=>{const{normalize:t}=e;return t(["Letzer Monat"])}},filter:{mono:e=>{const{normalize:t}=e;return t(["Mono"])},stereo:e=>{const{normalize:t}=e;return t(["Stereo"])},channels:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," Kan\xE4le"])}}},en:{data:{kind:{file:e=>{const{normalize:t}=e;return t(["File"])},url:e=>{const{normalize:t}=e;return t(["URL"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])},pipe:e=>{const{normalize:t}=e;return t(["Stream"])}}},dialog:{cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},add:{rss:{add:e=>{const{normalize:t}=e;return t(["Add"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},help:e=>{const{normalize:t}=e;return t(["Adding a podcast includes creating an RSS playlist, that will allow OwnTone to manage the podcast subscription."])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-to-rss"])},processing:e=>{const{normalize:t}=e;return t(["Processing\u2026"])},title:e=>{const{normalize:t}=e;return t(["Add Podcast RSS feed URL"])}},stream:{add:e=>{const{normalize:t}=e;return t(["Add"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},loading:e=>{const{normalize:t}=e;return t(["Loading\u2026"])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-to-stream"])},play:e=>{const{normalize:t}=e;return t(["Play"])},title:e=>{const{normalize:t}=e;return t(["Add Stream URL"])}}},album:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"added-on":e=>{const{normalize:t}=e;return t(["Added on"])},artist:e=>{const{normalize:t}=e;return t(["Album artist"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Mark as played"])},play:e=>{const{normalize:t}=e;return t(["Play"])},"release-date":e=>{const{normalize:t}=e;return t(["Release date"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Remove podcast"])},tracks:e=>{const{normalize:t}=e;return t(["Track count"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Year"])}},artist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"added-on":e=>{const{normalize:t}=e;return t(["Added On"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},type:e=>{const{normalize:t}=e;return t(["Type"])}},composer:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},directory:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},play:e=>{const{normalize:t}=e;return t(["Play"])}},genre:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},play:e=>{const{normalize:t}=e;return t(["Play"])},path:e=>{const{normalize:t}=e;return t(["Path"])},"track-count":e=>{const{normalize:t}=e;return t(["Track Count"])},type:e=>{const{normalize:t}=e;return t(["Type"])},save:{cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},save:e=>{const{normalize:t}=e;return t(["Save"])},saving:e=>{const{normalize:t}=e;return t(["Saving\u2026"])},title:e=>{const{normalize:t}=e;return t(["Save queue to playlist"])}}},"queue-item":{"album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("rate"))," kbit/s"])},channels:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("channels"))])},composer:e=>{const{normalize:t}=e;return t(["Composer"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},path:e=>{const{normalize:t}=e;return t(["Path"])},play:e=>{const{normalize:t}=e;return t(["Play"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},quality:e=>{const{normalize:t}=e;return t(["Quality"])},remove:e=>{const{normalize:t}=e;return t(["Remove"])},samplerate:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["artist"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Year"])}},"remote-pairing":{cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},pair:e=>{const{normalize:t}=e;return t(["Pair Remote"])},title:e=>{const{normalize:t}=e;return t(["Remote pairing request"])}},spotify:{album:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},play:e=>{const{normalize:t}=e;return t(["Play"])},"release-date":e=>{const{normalize:t}=e;return t(["Release Date"])},type:e=>{const{normalize:t}=e;return t(["Type"])}},artist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},play:e=>{const{normalize:t}=e;return t(["Play"])},popularity:e=>{const{normalize:t}=e;return t(["Popularity / Followers"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},owner:e=>{const{normalize:t}=e;return t(["Owner"])},path:e=>{const{normalize:t}=e;return t(["Path"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},album:e=>{const{normalize:t}=e;return t(["Album"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},path:e=>{const{normalize:t}=e;return t(["Path"])},play:e=>{const{normalize:t}=e;return t(["Play"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},"release-date":e=>{const{normalize:t}=e;return t(["Release Date"])}}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"added-on":e=>{const{normalize:t}=e;return t(["Added On"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("rate"))," kbit/s"])},channels:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("channels"))])},comment:e=>{const{normalize:t}=e;return t(["Comment"])},composer:e=>{const{normalize:t}=e;return t(["Composer"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},"mark-as-new":e=>{const{normalize:t}=e;return t(["Mark as new"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Mark as played"])},path:e=>{const{normalize:t}=e;return t(["Path"])},play:e=>{const{normalize:t}=e;return t(["Play"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},quality:e=>{const{normalize:t}=e;return t(["Quality"])},"rating-value":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("rating"))," / 10"])},rating:e=>{const{normalize:t}=e;return t(["Rating"])},"release-date":e=>{const{normalize:t}=e;return t(["Release Date"])},samplerate:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["artist"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Year"])}},update:{all:e=>{const{normalize:t}=e;return t(["Update everything"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},feeds:e=>{const{normalize:t}=e;return t(["Only update RSS feeds"])},info:e=>{const{normalize:t}=e;return t(["Scan for new, deleted and modified files"])},local:e=>{const{normalize:t}=e;return t(["Only update local library"])},progress:e=>{const{normalize:t}=e;return t(["Library update in progress\u2026"])},"rescan-metadata":e=>{const{normalize:t}=e;return t(["Rescan metadata of unmodified files"])},rescan:e=>{const{normalize:t}=e;return t(["Rescan"])},spotify:e=>{const{normalize:t}=e;return t(["Only update Spotify"])},title:e=>{const{normalize:t}=e;return t(["Library update"])}}},language:{de:e=>{const{normalize:t}=e;return t(["German (Deutsch)"])},en:e=>{const{normalize:t}=e;return t(["English"])},fr:e=>{const{normalize:t}=e;return t(["French (Fran\xE7ais)"])}},list:{albums:{"info-1":e=>{const{normalize:t}=e;return t(["Permanently remove this podcast from your library?"])},"info-2":e=>{const{normalize:t}=e;return t(["This will also remove the RSS playlist "])},remove:e=>{const{normalize:t}=e;return t(["Remove"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Remove podcast"])}},spotify:{"not-playable-track":e=>{const{normalize:t}=e;return t(["Track is not playable"])},"restriction-reason":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([", restriction reason: ",n(s("reason"))])}}},media:{kind:{album:e=>{const{normalize:t}=e;return t(["Album"])},audiobook:e=>{const{normalize:t}=e;return t(["Audiobook"])},music:e=>{const{normalize:t}=e;return t(["Music"])},podcast:e=>{const{normalize:t}=e;return t(["Podcast"])}}},navigation:{about:e=>{const{normalize:t}=e;return t(["About"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},audiobooks:e=>{const{normalize:t}=e;return t(["Audiobooks"])},"now-playing":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" - ",n(s("album"))])},"stream-error":e=>{const{normalize:t}=e;return t(["HTTP stream error: failed to load stream or stopped loading due to network problem"])},stream:e=>{const{normalize:t}=e;return t(["HTTP stream"])},volume:e=>{const{normalize:t}=e;return t(["Volume"])},files:e=>{const{normalize:t}=e;return t(["Files"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},music:e=>{const{normalize:t}=e;return t(["Music"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},radio:e=>{const{normalize:t}=e;return t(["Radio"])},search:e=>{const{normalize:t}=e;return t(["Search"])},settings:e=>{const{normalize:t}=e;return t(["Settings"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])},title:e=>{const{normalize:t}=e;return t(["OwnTone"])},"update-library":e=>{const{normalize:t}=e;return t(["Update Library"])}},page:{about:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},"built-with":e=>{const{normalize:t}=e;return t(['Web interface built with <a href="https://bulma.io">Bulma</a>, <a href="https://materialdesignicons.com/">Material Design Icons</a>, <a href="https://vuejs.org/">Vue.js</a>, <a href="https://github.com/mzabriskie/axios">axios</a> and <a href="https://github.com/owntone/owntone-server/network/dependencies">more</a>.'])},"compiled-with":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Compiled with support for ",n(s("options")),"."])},library:e=>{const{normalize:t}=e;return t(["Library"])},"total-playtime":e=>{const{normalize:t}=e;return t(["Total playtime"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},update:e=>{const{normalize:t}=e;return t(["Update"])},"updated-on":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("time"))," ago"])},updated:e=>{const{normalize:t}=e;return t(["Updated"])},uptime:e=>{const{normalize:t}=e;return t(["Uptime"])},version:e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Version ",n(s("version"))])}},album:{shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," tracks"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," albums"])},filter:e=>{const{normalize:t}=e;return t(["Filter"])},"hide-singles-help":e=>{const{normalize:t}=e;return t(["If active, hides singles and albums with tracks that only appear in playlists."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Hide singles"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["If active, hides albums that only appear in your Spotify library."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Hide albums from Spotify"])},title:e=>{const{normalize:t}=e;return t(["Albums"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sort by"])},name:e=>{const{normalize:t}=e;return t(["Name"])},"recently-added":e=>{const{normalize:t}=e;return t(["Recently added"])},"recently-released":e=>{const{normalize:t}=e;return t(["Recently released"])}}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," tracks"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sort by"])},name:e=>{const{normalize:t}=e;return t(["Name"])},rating:e=>{const{normalize:t}=e;return t(["Rating"])},"release-date":e=>{const{normalize:t}=e;return t(["Release date"])}}},artists:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," artists"])},filter:e=>{const{normalize:t}=e;return t(["Filter"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sort by"])},name:e=>{const{normalize:t}=e;return t(["Name"])},"recently-added":e=>{const{normalize:t}=e;return t(["Recently added"])}},"hide-singles-help":e=>{const{normalize:t}=e;return t(["If active, hides artists that only appear on singles or playlists."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Hide singles"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["If active, hides artists that only appear in your Spotify library."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Hide artists from Spotify"])},title:e=>{const{normalize:t}=e;return t(["Artists"])}},audiobooks:{album:{play:e=>{const{normalize:t}=e;return t(["Play"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," tracks"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," audiobooks"])},title:e=>{const{normalize:t}=e;return t(["Audiobooks"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," albums"])},play:e=>{const{normalize:t}=e;return t(["Play"])}},artists:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," authors"])},title:e=>{const{normalize:t}=e;return t(["Authors"])}},tabs:{authors:e=>{const{normalize:t}=e;return t(["Authors"])},audiobooks:e=>{const{normalize:t}=e;return t(["Audiobooks"])}}},browse:{albums:e=>{const{normalize:t}=e;return t(["albums"])},"show-more":e=>{const{normalize:t}=e;return t(["Show more"])},tracks:e=>{const{normalize:t}=e;return t(["tracks"])},"recently-added":{albums:e=>{const{normalize:t}=e;return t(["albums"])},title:e=>{const{normalize:t}=e;return t(["Recently added"])}},"recently-played":{title:e=>{const{normalize:t}=e;return t(["Recently played"])},tracks:e=>{const{normalize:t}=e;return t(["tracks"])}},tabs:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},browse:e=>{const{normalize:t}=e;return t(["Browse"])},composers:e=>{const{normalize:t}=e;return t(["Composers"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}}},composer:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," tracks"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sort by"])},name:e=>{const{normalize:t}=e;return t(["Name"])},rating:e=>{const{normalize:t}=e;return t(["Rating"])}}},composers:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," composers"])},title:e=>{const{normalize:t}=e;return t(["Composers"])}},files:{play:e=>{const{normalize:t}=e;return t(["Play"])},title:e=>{const{normalize:t}=e;return t(["Files"])}},genre:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," tracks"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sort by"])},name:e=>{const{normalize:t}=e;return t(["Name"])},rating:e=>{const{normalize:t}=e;return t(["Rating"])}}},genres:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," genres"])},title:e=>{const{normalize:t}=e;return t(["Genres"])}},"now-playing":{info:e=>{const{normalize:t}=e;return t(["Add some tracks by browsing your library"])},live:e=>{const{normalize:t}=e;return t(["Live"])},title:e=>{const{normalize:t}=e;return t(["Your play queue is empty"])}},playlist:{length:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("length"))," tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," tracks"])}},playlists:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," playlists"])}},podcast:{play:e=>{const{normalize:t}=e;return t(["Play"])},remove:e=>{const{normalize:t}=e;return t(["Remove"])},"remove-info-1":e=>{const{normalize:t}=e;return t(["Permanently remove this podcast from your library?"])},"remove-info-2":e=>{const{normalize:t}=e;return t(["This will also remove the RSS playlist "])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Remove podcast"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," tracks"])}},podcasts:{add:e=>{const{normalize:t}=e;return t(["Add"])},count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," podcasts"])},"mark-all-played":e=>{const{normalize:t}=e;return t(["Mark All Played"])},"new-episodes":e=>{const{normalize:t}=e;return t(["New Episodes"])},title:e=>{const{normalize:t}=e;return t(["Podcasts"])},update:e=>{const{normalize:t}=e;return t(["Update"])}},queue:{"add-stream":e=>{const{normalize:t}=e;return t(["Add stream"])},clear:e=>{const{normalize:t}=e;return t(["Clear"])},count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," tracks"])},edit:e=>{const{normalize:t}=e;return t(["Edit"])},"hide-previous":e=>{const{normalize:t}=e;return t(["Hide previous"])},title:e=>{const{normalize:t}=e;return t(["Queue"])},save:e=>{const{normalize:t}=e;return t(["Save"])}},radio:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," stations"])},title:e=>{const{normalize:t}=e;return t(["Radio"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},audiobooks:e=>{const{normalize:t}=e;return t(["Audiobooks"])},composers:e=>{const{normalize:t}=e;return t(["Composers"])},help:e=>{const{normalize:t}=e;return t(['Tip: you can search by a smart playlist query language <a href="https://owntone.github.io/owntone-server/smart-playlists/" target="_blank">expression</a> if you prefix it with <code>query:</code>.'])},"no-albums":e=>{const{normalize:t}=e;return t(["No albums found"])},"no-artists":e=>{const{normalize:t}=e;return t(["No artists found"])},"no-audiobooks":e=>{const{normalize:t}=e;return t(["No audiobooks found"])},"no-composers":e=>{const{normalize:t}=e;return t(["No composers found"])},"no-playlists":e=>{const{normalize:t}=e;return t(["No playlists found"])},"no-podcasts":e=>{const{normalize:t}=e;return t(["No podcasts found"])},"no-tracks":e=>{const{normalize:t}=e;return t(["No tracks found"])},placeholder:e=>{const{normalize:t}=e;return t(["Search"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},"show-albums":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Show all ",n(s("count"))," albums"])},"show-artists":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Show all ",n(s("count"))," artists"])},"show-audiobooks":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Show all ",n(s("count"))," audiobooks"])},"show-composers":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Show all ",n(s("count"))," composers"])},"show-playlists":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Show all ",n(s("count"))," playlists"])},"show-podcasts":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Show all ",n(s("count"))," podcasts"])},"show-tracks":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Show all ",n(s("count"))," tracks"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},tabs:{library:e=>{const{normalize:t}=e;return t(["Library"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}}},settings:{artwork:{artwork:e=>{const{normalize:t}=e;return t(["Artwork"])},coverartarchive:e=>{const{normalize:t}=e;return t(["Cover Art Archive"])},discogs:e=>{const{normalize:t}=e;return t(["Discogs"])},"explanation-1":e=>{const{normalize:t}=e;return t(["OwnTone supports PNG and JPEG artwork which is either placed as separate image files in the library, embedded in the media files or made available online by radio stations."])},"explanation-2":e=>{const{normalize:t}=e;return t(["In addition to that, you can enable fetching artwork from the following artwork providers:"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}},devices:{"no-active-pairing":e=>{const{normalize:t}=e;return t(["No active pairing request."])},"pairing-request":e=>{const{normalize:t}=e;return t(["Remote pairing request from "])},pairing:e=>{const{normalize:t}=e;return t(["Remote Pairing"])},send:e=>{const{normalize:t}=e;return t(["Send"])},"speaker-pairing-info":e=>{const{normalize:t}=e;return t(["If your speaker requires pairing then activate it below and enter the PIN that it displays."])},"speaker-pairing":e=>{const{normalize:t}=e;return t(["Speaker pairing and device verification"])},"verification-code":e=>{const{normalize:t}=e;return t(["Enter verification code"])},verify:e=>{const{normalize:t}=e;return t(["Verify"])}},general:{"album-lists":e=>{const{normalize:t}=e;return t(["Album Lists"])},audiobooks:e=>{const{normalize:t}=e;return t(["Audiobooks"])},files:e=>{const{normalize:t}=e;return t(["Files"])},language:e=>{const{normalize:t}=e;return t(["Language"])},music:e=>{const{normalize:t}=e;return t(["Music"])},"navigation-item-selection-info":e=>{const{normalize:t}=e;return t(["If you select more items than can be shown on your screen then the burger menu will disappear."])},"navigation-item-selection":e=>{const{normalize:t}=e;return t(["Select the top navigation bar menu items"])},"navigation-items":e=>{const{normalize:t}=e;return t(["Navigation Bar"])},"now-playing-page":e=>{const{normalize:t}=e;return t(["Now playing page"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},radio:e=>{const{normalize:t}=e;return t(["Radio"])},"recently-added-page-info":e=>{const{normalize:t}=e;return t(['Limit the number of albums shown on the "Recently Added" page'])},"recently-added-page":e=>{const{normalize:t}=e;return t(["Recently added page"])},search:e=>{const{normalize:t}=e;return t(["Search"])},"show-composer-genres-info-1":e=>{const{normalize:t}=e;return t(['Comma separated list of genres the composer should be displayed on the "Now playing page"'])},"show-composer-genres-info-2":e=>{const{normalize:t}=e;return t(["Leave empty to always show the composer."])},"show-composer-genres-info-3":e=>{const{normalize:t}=e;return t(['The genre tag of the current track is matched by checking, if one of the defined genres are included. For example setting to "classical, soundtrack" will show the composer for tracks with a genre tag of "Contemporary Classical"'])},"show-composer-genres":e=>{const{normalize:t}=e;return t(["Show composer only for listed genres"])},"show-composer-info":e=>{const{normalize:t}=e;return t(['If enabled the composer of the current playing track is shown on the "Now playing page"'])},"show-composer":e=>{const{normalize:t}=e;return t(["Show composer"])},"show-coverart":e=>{const{normalize:t}=e;return t(["Show cover artwork in album list"])},"show-path":e=>{const{normalize:t}=e;return t(['Show filepath on the "Now playing" page'])}},services:{lastfm:{"grant-access":e=>{const{normalize:t}=e;return t(["<b>Last.fm</b> - Login with your Last.fm username and password to enable scrobbling"])},info:e=>{const{normalize:t}=e;return t(["OwnTone will not store your Last.fm username/password, only the session key. The session key does not expire."])},title:e=>{const{normalize:t}=e;return t(["Last.fm"])},"no-support":e=>{const{normalize:t}=e;return t(["OwnTone was built without support for Last.fm."])},"stop-scrobbling":e=>{const{normalize:t}=e;return t(["Stop scrobbling"])}},spotify:{"no-support":e=>{const{normalize:t}=e;return t(["OwnTone was either built without support for Spotify or libspotify is not installed."])},"logged-as":e=>{const{normalize:t}=e;return t(["Logged in as "])},requirements:e=>{const{normalize:t}=e;return t(["You must have a Spotify premium account."])},scopes:e=>{const{normalize:t}=e;return t(["Access to the Spotify Web API enables scanning of your Spotify library. Required scopes are: "])},user:e=>{const{normalize:t}=e;return t(["Access granted for "])},authorize:e=>{const{normalize:t}=e;return t(["Authorize Web API access"])},credentials:e=>{const{normalize:t}=e;return t([" - Login with your Spotify username and password"])},"grant-access":e=>{const{normalize:t}=e;return t(["<b>Spotify Web API</b> - Grant access to the Spotify Web API"])},"help-1":e=>{const{normalize:t}=e;return t(["libspotify enables OwnTone to play Spotify tracks."])},"help-2":e=>{const{normalize:t}=e;return t(["OwnTone will not store your password, but will still be able to log you in automatically afterwards, because libspotify saves a login token."])},reauthorize:e=>{const{normalize:t}=e;return t(["Please reauthorize Web API access to grant OwnTone the following additional access rights: "])},title:e=>{const{normalize:t}=e;return t(["Spotify"])}},login:e=>{const{normalize:t}=e;return t(["Login"])},logout:e=>{const{normalize:t}=e;return t(["Logout"])}},tabs:{artwork:e=>{const{normalize:t}=e;return t(["Artwork"])},general:e=>{const{normalize:t}=e;return t(["General"])},"online-services":e=>{const{normalize:t}=e;return t(["Online Services"])},"remotes-and-outputs":e=>{const{normalize:t}=e;return t(["Remotes and Outputs"])}}},spotify:{album:{shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," tracks"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},browse:{"featured-playlists":e=>{const{normalize:t}=e;return t(["Featured Playlists"])},"new-releases":e=>{const{normalize:t}=e;return t(["New Releases"])},"show-more":e=>{const{normalize:t}=e;return t(["Show More"])}},playlist:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},"no-albums":e=>{const{normalize:t}=e;return t(["No albums found"])},"no-artists":e=>{const{normalize:t}=e;return t(["No artists found"])},"no-playlists":e=>{const{normalize:t}=e;return t(["No playlists found"])},"no-tracks":e=>{const{normalize:t}=e;return t(["No tracks found"])},placeholder:e=>{const{normalize:t}=e;return t(["Search"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},"show-all-albums":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Show all ",n(s("count"))," albums"])},"show-all-artists":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Show all ",n(s("count"))," artists"])},"show-all-playlists":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Show all ",n(s("count"))," playlists"])},"show-all-tracks":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Show all ",n(s("count"))," tracks"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}}}},playlist:{type:{plain:e=>{const{normalize:t}=e;return t(["Plain"])},smart:e=>{const{normalize:t}=e;return t(["Smart"])}}},player:{button:{consume:e=>{const{normalize:t}=e;return t(["Clear history"])},pause:e=>{const{normalize:t}=e;return t(["Pause"])},play:e=>{const{normalize:t}=e;return t(["Play"])},repeat:e=>{const{normalize:t}=e;return t(["Repeat all tracks"])},"repeat-off":e=>{const{normalize:t}=e;return t(["Read tracks once"])},"repeat-once":e=>{const{normalize:t}=e;return t(["Repeat current track"])},"seek-backward":e=>{const{normalize:t}=e;return t(["Seek backward in the track"])},"seek-forward":e=>{const{normalize:t}=e;return t(["Seek forward in the track"])},shuffle:e=>{const{normalize:t}=e;return t(["Play tracks randomly"])},"shuffle-disabled":e=>{const{normalize:t}=e;return t(["Play tracks in order"])},"skip-backward":e=>{const{normalize:t}=e;return t(["Skip to previous track"])},"skip-forward":e=>{const{normalize:t}=e;return t(["Skip to next track"])},stop:e=>{const{normalize:t}=e;return t(["Stop"])}}},setting:{"not-saved":e=>{const{normalize:t}=e;return t([" (error saving setting)"])},saved:e=>{const{normalize:t}=e;return t([" (setting saved)"])}},server:{"connection-failed":e=>{const{normalize:t}=e;return t(["Failed to connect to OwnTone server"])},"missing-port":e=>{const{normalize:t}=e;return t(["Missing websocket port"])},"request-failed":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Request failed (status: ",n(s("status"))," ",n(s("cause"))," ",n(s("url")),")"])},"queue-saved":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Queue saved to playlist ",n(s("name"))])},"appended-tracks":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," tracks appended to the queue"])},"empty-queue":e=>{const{normalize:t}=e;return t(["Queue is empty"])}},"group-by-list":{today:e=>{const{normalize:t}=e;return t(["Today"])},"last-week":e=>{const{normalize:t}=e;return t(["Last week"])},"last-month":e=>{const{normalize:t}=e;return t(["Last month"])}},filter:{mono:e=>{const{normalize:t}=e;return t(["mono"])},stereo:e=>{const{normalize:t}=e;return t(["stereo"])},channels:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," channels"])}}},fr:{data:{kind:{file:e=>{const{normalize:t}=e;return t(["Fichier"])},url:e=>{const{normalize:t}=e;return t(["URL"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])},pipe:e=>{const{normalize:t}=e;return t(["Flux"])}}},dialog:{cancel:e=>{const{normalize:t}=e;return t(["Annuler"])},add:{rss:{add:e=>{const{normalize:t}=e;return t(["Ajouter"])},cancel:e=>{const{normalize:t}=e;return t(["Annuler"])},help:e=>{const{normalize:t}=e;return t(["L\u2019ajout d\u2019un podcast inclut la cr\xE9ation d\u2019une liste de lecture RSS, qui permettra \xE0 OwnTone de g\xE9rer l\u2019abonnement au podcast."])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-du-flux-rss"])},processing:e=>{const{normalize:t}=e;return t(["Traitement en cours\u2026"])},title:e=>{const{normalize:t}=e;return t(["Ajouter l\u2019URL du flux RSS du podcast"])}},stream:{add:e=>{const{normalize:t}=e;return t(["Ajouter"])},cancel:e=>{const{normalize:t}=e;return t(["Annuler"])},loading:e=>{const{normalize:t}=e;return t(["Chargement\u2026"])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-du-flux"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},title:e=>{const{normalize:t}=e;return t(["Ajouter l\u2019URL du flux"])}}},album:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},"added-on":e=>{const{normalize:t}=e;return t(["Ajout\xE9 le"])},artist:e=>{const{normalize:t}=e;return t(["Artiste de l\u2019album"])},duration:e=>{const{normalize:t}=e;return t(["Dur\xE9e"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Marquer comme lu"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},"release-date":e=>{const{normalize:t}=e;return t(["Date de sortie"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Supprimer le podcast"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Ann\xE9e"])}},artist:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},"added-on":e=>{const{normalize:t}=e;return t(["Ajout\xE9 le"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])},type:e=>{const{normalize:t}=e;return t(["Type"])}},composer:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},duration:e=>{const{normalize:t}=e;return t(["Dur\xE9e"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])}},directory:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},play:e=>{const{normalize:t}=e;return t(["Lire"])}},genre:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},duration:e=>{const{normalize:t}=e;return t(["Dur\xE9e"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},path:e=>{const{normalize:t}=e;return t(["Emplacement"])},"track-count":e=>{const{normalize:t}=e;return t(["Pistes"])},type:e=>{const{normalize:t}=e;return t(["Type"])},save:{cancel:e=>{const{normalize:t}=e;return t(["Annuler"])},save:e=>{const{normalize:t}=e;return t(["Enregistrer"])},saving:e=>{const{normalize:t}=e;return t(["Enregistrement en cours\u2026"])},title:e=>{const{normalize:t}=e;return t(["Enregistrer la file d\u2019attente dans une liste de lecture"])}}},"queue-item":{"album-artist":e=>{const{normalize:t}=e;return t(["Artiste de l\u2019album"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("rate"))," kbit/s"])},channels:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("channels"))])},composer:e=>{const{normalize:t}=e;return t(["Compositeur"])},duration:e=>{const{normalize:t}=e;return t(["Dur\xE9e"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},path:e=>{const{normalize:t}=e;return t(["Emplacement"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},position:e=>{const{normalize:t}=e;return t(["Disque / Piste"])},quality:e=>{const{normalize:t}=e;return t(["Qualit\xE9"])},remove:e=>{const{normalize:t}=e;return t(["Supprimer"])},samplerate:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["artiste"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Ann\xE9e"])}},"remote-pairing":{cancel:e=>{const{normalize:t}=e;return t(["Annuler"])},pair:e=>{const{normalize:t}=e;return t(["Jumeler la t\xE9l\xE9commande"])},title:e=>{const{normalize:t}=e;return t(["Demande de jumelage de t\xE9l\xE9commande"])}},spotify:{album:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},"album-artist":e=>{const{normalize:t}=e;return t(["Artiste de l\u2019album"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},"release-date":e=>{const{normalize:t}=e;return t(["Date de sortie"])},type:e=>{const{normalize:t}=e;return t(["Type"])}},artist:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},popularity:e=>{const{normalize:t}=e;return t(["Popularit\xE9 / Abonnements"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},owner:e=>{const{normalize:t}=e;return t(["Propri\xE9taire"])},path:e=>{const{normalize:t}=e;return t(["Emplacement"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},"album-artist":e=>{const{normalize:t}=e;return t(["Artiste de l\u2019album"])},album:e=>{const{normalize:t}=e;return t(["Album"])},duration:e=>{const{normalize:t}=e;return t(["Dur\xE9e"])},path:e=>{const{normalize:t}=e;return t(["Emplacement"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},position:e=>{const{normalize:t}=e;return t(["Disque / Piste"])},"release-date":e=>{const{normalize:t}=e;return t(["Date de sortie"])}}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},"added-on":e=>{const{normalize:t}=e;return t(["Ajout\xE9 le"])},"album-artist":e=>{const{normalize:t}=e;return t(["Artiste de l\u2019album"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("rate"))," kbit/s"])},channels:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("channels"))])},comment:e=>{const{normalize:t}=e;return t(["Commentaire"])},composer:e=>{const{normalize:t}=e;return t(["Compositeur"])},duration:e=>{const{normalize:t}=e;return t(["Dur\xE9e"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},"mark-as-new":e=>{const{normalize:t}=e;return t(["Marquer comme nouveau"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Marquer comme lu"])},path:e=>{const{normalize:t}=e;return t(["Emplacement"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},position:e=>{const{normalize:t}=e;return t(["Disque / Piste"])},quality:e=>{const{normalize:t}=e;return t(["Qualit\xE9"])},"rating-value":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("rating"))," / 10"])},rating:e=>{const{normalize:t}=e;return t(["Classement"])},"release-date":e=>{const{normalize:t}=e;return t(["Date de sortie"])},samplerate:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" ","|"," ",n(s("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["artiste"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Ann\xE9e"])}},update:{all:e=>{const{normalize:t}=e;return t(["Tout actualiser"])},cancel:e=>{const{normalize:t}=e;return t(["Annuler"])},feeds:e=>{const{normalize:t}=e;return t(["Actualiser uniquement les flux RSS"])},info:e=>{const{normalize:t}=e;return t(["Recherche les fichiers ajout\xE9s, supprim\xE9s et modifi\xE9s"])},local:e=>{const{normalize:t}=e;return t(["Actualiser uniquement la biblioth\xE8que locale"])},progress:e=>{const{normalize:t}=e;return t(["Actualisation de la biblioth\xE8que en cours\u2026"])},"rescan-metadata":e=>{const{normalize:t}=e;return t(["Analyser les m\xE9tadonn\xE9es des fichiers non modifi\xE9s"])},rescan:e=>{const{normalize:t}=e;return t(["Analyser"])},spotify:e=>{const{normalize:t}=e;return t(["Actualiser uniquement Spotify"])},title:e=>{const{normalize:t}=e;return t(["Actualisation de la biblioth\xE8que"])}}},language:{de:e=>{const{normalize:t}=e;return t(["Allemand (Deutsch)"])},en:e=>{const{normalize:t}=e;return t(["Anglais (English)"])},fr:e=>{const{normalize:t}=e;return t(["Fran\xE7ais"])}},list:{albums:{"info-1":e=>{const{normalize:t}=e;return t(["Supprimer d\xE9finitivement ce podcast de votre biblioth\xE8que\xA0?"])},"info-2":e=>{const{normalize:t}=e;return t(["Cela supprimera \xE9galement la liste de lecture RSS "])},remove:e=>{const{normalize:t}=e;return t(["Supprimer"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Supprimer le podcast"])}},spotify:{"not-playable-track":e=>{const{normalize:t}=e;return t(["La piste ne peut pas \xEAtre lue"])},"restriction-reason":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([", raison de la restriction\xA0: ",n(s("reason"))])}}},media:{kind:{album:e=>{const{normalize:t}=e;return t(["Album"])},audiobook:e=>{const{normalize:t}=e;return t(["Livre audio"])},music:e=>{const{normalize:t}=e;return t(["Musique"])},podcast:e=>{const{normalize:t}=e;return t(["Podcast"])}}},navigation:{about:e=>{const{normalize:t}=e;return t(["\xC0 propos"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artistes"])},audiobooks:e=>{const{normalize:t}=e;return t(["Livres audio"])},"now-playing":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([" - ",n(s("album"))])},"stream-error":e=>{const{normalize:t}=e;return t(["Erreur du flux HTTP\xA0: \xE9chec du chargement du flux ou arr\xEAt du chargement en raison d\u2019un probl\xE8me r\xE9seau"])},stream:e=>{const{normalize:t}=e;return t(["Flux HTTP"])},volume:e=>{const{normalize:t}=e;return t(["Volume"])},files:e=>{const{normalize:t}=e;return t(["Fichiers"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},music:e=>{const{normalize:t}=e;return t(["Musique"])},playlists:e=>{const{normalize:t}=e;return t(["Listes de lecture"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},radio:e=>{const{normalize:t}=e;return t(["Radio"])},search:e=>{const{normalize:t}=e;return t(["Recherche"])},settings:e=>{const{normalize:t}=e;return t(["R\xE9glages"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])},title:e=>{const{normalize:t}=e;return t(["OwnTone"])},"update-library":e=>{const{normalize:t}=e;return t(["Actualiser la biblioth\xE8que"])}},page:{about:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artistes"])},"built-with":e=>{const{normalize:t}=e;return t(['Interface utilisateur construite avec <a href="https://bulma.io">Bulma</a>, <a href="https://materialdesignicons.com/">Material Design Icons</a>, <a href="https://vuejs.org/">Vue.js</a>, <a href="https://github.com/mzabriskie/axios">axios</a> et <a href="https://github.com/owntone/owntone-server/network/dependencies">plus</a>.'])},"compiled-with":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Compil\xE9 avec les options ",n(s("options")),"."])},library:e=>{const{normalize:t}=e;return t(["Biblioth\xE8que"])},"total-playtime":e=>{const{normalize:t}=e;return t(["Dur\xE9e totale de lecture"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])},update:e=>{const{normalize:t}=e;return t(["Actualiser"])},"updated-on":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["il y a ",n(s("time"))])},updated:e=>{const{normalize:t}=e;return t(["Mis \xE0 jour"])},uptime:e=>{const{normalize:t}=e;return t(["Temps de fonctionnement"])},name:e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Version ",n(s("version"))])}},album:{shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," pistes"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," albums"])},filter:e=>{const{normalize:t}=e;return t(["Filtre"])},"hide-singles-help":e=>{const{normalize:t}=e;return t(["Si actif, masque les singles et les albums dont les pistes n\u2019apparaissent que dans les listes de lecture."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Masquer les singles"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["Si actif, masque les albums qui n\u2019apparaissent que dans votre biblioth\xE8que Spotify."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Masquer les albums de Spotify"])},title:e=>{const{normalize:t}=e;return t(["Albums"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Trier par"])},name:e=>{const{normalize:t}=e;return t(["Nom"])},"recently-added":e=>{const{normalize:t}=e;return t(["Ajouts r\xE9cents"])},"recently-released":e=>{const{normalize:t}=e;return t(["Sorties r\xE9centes"])}}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," pistes"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Trier par"])},name:e=>{const{normalize:t}=e;return t(["Nom"])},rating:e=>{const{normalize:t}=e;return t(["Classement"])},"release-date":e=>{const{normalize:t}=e;return t(["Date de sortie"])}}},artists:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," artistes"])},filter:e=>{const{normalize:t}=e;return t(["Filtre"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Trier par"])},name:e=>{const{normalize:t}=e;return t(["Nom"])},"recently-added":e=>{const{normalize:t}=e;return t(["Ajouts r\xE9cents"])}},"hide-singles-help":e=>{const{normalize:t}=e;return t(["Si actif, masque les artistes qui n\u2019apparaissent que dans des singles ou des listes de lecture."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Masquer les singles"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["Si actif, masque les artistes qui n\u2019apparaissent que dans votre biblioth\xE8que Spotify."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Masquer les artistes de Spotify"])},title:e=>{const{normalize:t}=e;return t(["Artistes"])}},audiobooks:{album:{play:e=>{const{normalize:t}=e;return t(["Lire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," pistes"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," livres audio"])},title:e=>{const{normalize:t}=e;return t(["Livres audio"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," albums"])},play:e=>{const{normalize:t}=e;return t(["Lire"])}},artists:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," auteurs"])},title:e=>{const{normalize:t}=e;return t(["Auteurs"])}},tabs:{authors:e=>{const{normalize:t}=e;return t(["Auteurs"])},audiobooks:e=>{const{normalize:t}=e;return t(["Livres audio"])}}},browse:{albums:e=>{const{normalize:t}=e;return t(["albums"])},"show-more":e=>{const{normalize:t}=e;return t(["Afficher plus"])},tracks:e=>{const{normalize:t}=e;return t(["pistes"])},"recently-added":{albums:e=>{const{normalize:t}=e;return t(["albums"])},title:e=>{const{normalize:t}=e;return t(["Ajouts r\xE9cents"])}},"recently-played":{title:e=>{const{normalize:t}=e;return t(["Lectures r\xE9centes"])},tracks:e=>{const{normalize:t}=e;return t(["pistes"])}},tabs:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artistes"])},browse:e=>{const{normalize:t}=e;return t(["Parcourir"])},composers:e=>{const{normalize:t}=e;return t(["Compositeurs"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}}},composer:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," pistes"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Trier par"])},name:e=>{const{normalize:t}=e;return t(["Nom"])},rating:e=>{const{normalize:t}=e;return t(["Classement"])}}},composers:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," compositeurs"])},title:e=>{const{normalize:t}=e;return t(["Compositeurs"])}},files:{play:e=>{const{normalize:t}=e;return t(["Lire"])},title:e=>{const{normalize:t}=e;return t(["Fichiers"])}},genre:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," pistes"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Trier par"])},name:e=>{const{normalize:t}=e;return t(["Nom"])},rating:e=>{const{normalize:t}=e;return t(["Classement"])}}},genres:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," genres"])},title:e=>{const{normalize:t}=e;return t(["Genres"])}},"now-playing":{info:e=>{const{normalize:t}=e;return t(["Ajoutez des pistes en parcourant votre biblioth\xE8que"])},live:e=>{const{normalize:t}=e;return t(["En direct"])},title:e=>{const{normalize:t}=e;return t(["La file d\u2019attente est vide"])}},playlist:{length:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("length"))," pistes"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," pistes"])}},playlists:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," listes de lecture"])}},podcast:{play:e=>{const{normalize:t}=e;return t(["Lire"])},remove:e=>{const{normalize:t}=e;return t(["Supprimer"])},"remove-info-1":e=>{const{normalize:t}=e;return t(["Supprimer ce podcast de mani\xE8re permanente de la biblioth\xE8que\xA0?"])},"remove-info-2":e=>{const{normalize:t}=e;return t(["Cela supprimera \xE9galement la liste de lecture RSS "])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Supprimer le podcast"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," pistes"])}},podcasts:{add:e=>{const{normalize:t}=e;return t(["Ajouter"])},count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," podcasts"])},"mark-all-played":e=>{const{normalize:t}=e;return t(["Marquer comme lus"])},"new-episodes":e=>{const{normalize:t}=e;return t(["Nouveaux \xE9pisodes"])},title:e=>{const{normalize:t}=e;return t(["Podcasts"])},update:e=>{const{normalize:t}=e;return t(["Actualiser"])}},queue:{"add-stream":e=>{const{normalize:t}=e;return t(["Ajouter un flux"])},clear:e=>{const{normalize:t}=e;return t(["Effacer"])},count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," pistes"])},edit:e=>{const{normalize:t}=e;return t(["\xC9diter"])},"hide-previous":e=>{const{normalize:t}=e;return t(["Masquer l\u2019historique"])},queue:e=>{const{normalize:t}=e;return t(["File d\u2019attente"])},save:e=>{const{normalize:t}=e;return t(["Enregistrer"])}},radio:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," stations"])},title:e=>{const{normalize:t}=e;return t(["Radio"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artistes"])},audiobooks:e=>{const{normalize:t}=e;return t(["Livres audio"])},composers:e=>{const{normalize:t}=e;return t(["Compositeurs"])},help:e=>{const{normalize:t}=e;return t(['Astuce\xA0: en pr\xE9fixant votre requ\xEAte avec <code>query:</code>, vous pouvez effectuer une recherche avec une <a href="https://owntone.github.io/owntone-server/smart-playlists/" target="_blank">expression</a> du langage de requ\xEAte de liste de lecture intelligente.'])},"no-albums":e=>{const{normalize:t}=e;return t(["Aucun album trouv\xE9"])},"no-artists":e=>{const{normalize:t}=e;return t(["Aucun artiste trouv\xE9"])},"no-audiobooks":e=>{const{normalize:t}=e;return t(["Aucun livre audio trouv\xE9"])},"no-composers":e=>{const{normalize:t}=e;return t(["Aucun compositeur trouv\xE9"])},"no-playlists":e=>{const{normalize:t}=e;return t(["Aucune liste de lecture trouv\xE9e"])},"no-podcasts":e=>{const{normalize:t}=e;return t(["Aucune podcast trouv\xE9"])},"no-tracks":e=>{const{normalize:t}=e;return t(["Aucune piste trouv\xE9e"])},placeholder:e=>{const{normalize:t}=e;return t(["Recherche"])},playlists:e=>{const{normalize:t}=e;return t(["Listes de lecture"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},"show-albums":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Afficher les ",n(s("count"))," albums"])},"show-artists":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Afficher les ",n(s("count"))," artistes"])},"show-audiobooks":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Afficher les ",n(s("count"))," livres audio"])},"show-composers":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Afficher les ",n(s("count"))," compositeurs"])},"show-playlists":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Afficher les ",n(s("count"))," listes de lecture"])},"show-podcasts":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Afficher les ",n(s("count"))," podcasts"])},"show-tracks":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Afficher les ",n(s("count"))," pistes"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])},tabs:{library:e=>{const{normalize:t}=e;return t(["Biblioth\xE8que"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}}},settings:{artwork:{artwork:e=>{const{normalize:t}=e;return t(["Illustrations"])},coverartarchive:e=>{const{normalize:t}=e;return t(["Cover Art Archive"])},discogs:e=>{const{normalize:t}=e;return t(["Discogs"])},"explanation-1":e=>{const{normalize:t}=e;return t(["Prend en charge les illustrations au format PNG et JPEG qui sont soit plac\xE9es dans la biblioth\xE8que en tant que fichiers image s\xE9par\xE9s, soit int\xE9gr\xE9es dans les fichiers m\xE9dia, soit mises \xE0 disposition en ligne par les stations de radio."])},"explanation-2":e=>{const{normalize:t}=e;return t(["En outre, vous pouvez activer la r\xE9cup\xE9ration des illustrations \xE0 partir des fournisseurs d\u2019illustrations suivants\xA0:"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}},devices:{"no-active-pairing":e=>{const{normalize:t}=e;return t(["Aucune demande de jumelage active."])},"pairing-request":e=>{const{normalize:t}=e;return t(["Demande de jumelage de t\xE9l\xE9commande "])},pairing:e=>{const{normalize:t}=e;return t(["Jumelage de t\xE9l\xE9commande"])},send:e=>{const{normalize:t}=e;return t(["Envoyer"])},"speaker-pairing-info":e=>{const{normalize:t}=e;return t(["Si votre enceinte n\xE9cessite un jumelage, activez-la ci-dessous et entrez le code PIN qu\u2019elle affiche."])},"speaker-pairing":e=>{const{normalize:t}=e;return t(["Jumelage d\u2019enceinte et v\xE9rification d\u2019appareil"])},"verification-code":e=>{const{normalize:t}=e;return t(["Code de v\xE9rification"])},verify:e=>{const{normalize:t}=e;return t(["V\xE9rifier"])}},general:{"album-lists":e=>{const{normalize:t}=e;return t(["Listes d\u2019album"])},audiobooks:e=>{const{normalize:t}=e;return t(["Livres audio"])},files:e=>{const{normalize:t}=e;return t(["Fichiers"])},language:e=>{const{normalize:t}=e;return t(["Langue"])},music:e=>{const{normalize:t}=e;return t(["Musique"])},"navigation-item-selection-info":e=>{const{normalize:t}=e;return t(["Si vous s\xE9lectionnez plus d\u2019\xE9l\xE9ments que ce qui peut \xEAtre affich\xE9 sur votre \xE9cran, le menu dispara\xEEtra."])},"navigation-item-selection":e=>{const{normalize:t}=e;return t(["S\xE9lectionnez les \xE9l\xE9ments de la barre de navigation sup\xE9rieure"])},"navigation-items":e=>{const{normalize:t}=e;return t(["Barre de navigation"])},"now-playing-page":e=>{const{normalize:t}=e;return t(["Page \xAB\xA0En cours de lecture\xA0\xBB"])},playlists:e=>{const{normalize:t}=e;return t(["Listes de lecture"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},radio:e=>{const{normalize:t}=e;return t(["Radio"])},"recently-added-page-info":e=>{const{normalize:t}=e;return t(["Limiter le nombre d\u2019album affich\xE9s dans la section \xAB\xA0Ajouts r\xE9cents\xA0\xBB"])},"recently-added-page":e=>{const{normalize:t}=e;return t(["Page \xAB\xA0Ajouts r\xE9cents\xA0\xBB"])},search:e=>{const{normalize:t}=e;return t(["Recherche"])},"show-composer-genres-info-1":e=>{const{normalize:t}=e;return t(["Liste des genres, s\xE9par\xE9s par des virgules, que le compositeur doit afficher sur la page \xAB\xA0En cours de lecture\xA0\xBB."])},"show-composer-genres-info-2":e=>{const{normalize:t}=e;return t(["Laissez vide pour toujours afficher le compositeur."])},"show-composer-genres-info-3":e=>{const{normalize:t}=e;return t(['L\u2019\xE9tiquette de genre de la piste actuelle est compar\xE9e en v\xE9rifiant si l\u2019un des genres d\xE9finis est inclus. Par exemple, en choisissant "classique, bande sonore", le compositeur pour les pistes dont l\u2019\xE9tiquette de genre est "classique contemporain" sera affich\xE9.'])},"show-composer-genres":e=>{const{normalize:t}=e;return t(["Afficher le compositeur uniquement pour les genres list\xE9s"])},"show-composer-info":e=>{const{normalize:t}=e;return t(["Si actif, le compositeur de la piste en cours de lecture est affich\xE9 sur la page \xAB\xA0En cours de lecture\xA0\xBB"])},"show-composer":e=>{const{normalize:t}=e;return t(["Afficher le compositeur"])},"show-coverart":e=>{const{normalize:t}=e;return t(["Afficher les illustration dans la liste d\u2019albums"])},"show-path":e=>{const{normalize:t}=e;return t(["Afficher le chemin du fichier sur la page \xAB\xA0En cours de lecture\xA0\xBB"])}},services:{lastfm:{"grant-access":e=>{const{normalize:t}=e;return t(["<b>Last.fm</b> - Connectez-vous avec votre nom d\u2019utilisateur et votre mot de passe Last.fm pour activer le scrobbling."])},info:e=>{const{normalize:t}=e;return t(["Le nom d\u2019utilisateur et le mot de passe Last.fm ne sont pas enregistr\xE9s, uniquement la cl\xE9 de session. La cl\xE9 de session n\u2019expire pas."])},title:e=>{const{normalize:t}=e;return t(["Last.fm"])},"no-support":e=>{const{normalize:t}=e;return t(["L\u2019option Last.fm n\u2019est pas pr\xE9sente."])},"stop-scrobbling":e=>{const{normalize:t}=e;return t(["Arr\xEAter le scrobbling"])}},spotify:{"no-support":e=>{const{normalize:t}=e;return t(["L\u2019option Spotify n\u2019est pas pr\xE9sente."])},"logged-as":e=>{const{normalize:t}=e;return t(["Connect\xE9 en tant que "])},requirements:e=>{const{normalize:t}=e;return t(["Vous devez poss\xE9der un compte Spotify Premium."])},scopes:e=>{const{normalize:t}=e;return t(["L\u2019acc\xE8s \xE0 l\u2019API de Spotify permet l\u2019analyse de votre biblioth\xE8que Spotify. Les champs d\u2019application requis sont les suivants\xA0:"])},user:e=>{const{normalize:t}=e;return t(["Acc\xE8s autoris\xE9 pour "])},authorize:e=>{const{normalize:t}=e;return t(["Autoriser l\u2019acc\xE8s \xE0 l\u2019API"])},credentials:e=>{const{normalize:t}=e;return t([" - Connectez-vous avec votre nom d\u2019utilisateur et mot de passe Spotify"])},"grant-access":e=>{const{normalize:t}=e;return t(["<b>Spotify</b> - Accordez l\u2019acc\xE8s \xE0 l\u2019API de Spotify"])},"help-1":e=>{const{normalize:t}=e;return t(["La biblioth\xE8que libspotify permet de lire les pistes de Spotify."])},"help-2":e=>{const{normalize:t}=e;return t(["Votre nom d\u2019utilisateur et votre mot de passe Spotify ne sont pas enregistr\xE9s, uniquement le jeton de connexion."])},reauthorize:e=>{const{normalize:t}=e;return t(["Veuillez autoriser \xE0 nouveau l\u2019acc\xE8s \xE0 l\u2019API pour accorder \xE0 OwnTone les droits d\u2019acc\xE8s suppl\xE9mentaires suivants\xA0:"])},title:e=>{const{normalize:t}=e;return t(["Spotify"])}},login:e=>{const{normalize:t}=e;return t(["Se connecter"])},logout:e=>{const{normalize:t}=e;return t(["Se d\xE9connecter"])}},tabs:{artwork:e=>{const{normalize:t}=e;return t(["Illustrations"])},general:e=>{const{normalize:t}=e;return t(["G\xE9n\xE9ral"])},"online-services":e=>{const{normalize:t}=e;return t(["Services en ligne"])},"remotes-and-outputs":e=>{const{normalize:t}=e;return t(["T\xE9l\xE9commandes et sorties"])}}},spotify:{album:{shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," pistes"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])}},browse:{"featured-playlists":e=>{const{normalize:t}=e;return t(["Listes de lecture en vedette"])},"new-releases":e=>{const{normalize:t}=e;return t(["Nouvelle sorties"])},"show-more":e=>{const{normalize:t}=e;return t(["Afficher plus"])}},playlist:{count:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," pistes"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artistes"])},"no-albums":e=>{const{normalize:t}=e;return t(["Aucun album trouv\xE9"])},"no-artists":e=>{const{normalize:t}=e;return t(["Aucun artiste trouv\xE9"])},"no-playlists":e=>{const{normalize:t}=e;return t(["Aucune liste de lecture trouv\xE9e"])},"no-tracks":e=>{const{normalize:t}=e;return t(["Aucune piste trouv\xE9e"])},placeholder:e=>{const{normalize:t}=e;return t(["Recherche"])},playlists:e=>{const{normalize:t}=e;return t(["Listes de lecture"])},"show-all-albums":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Afficher les ",n(s("count"))," albums"])},"show-all-artists":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Afficher les ",n(s("count"))," artistes"])},"show-all-playlists":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Afficher les ",n(s("count"))," listes de lecture"])},"show-all-tracks":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["Afficher les ",n(s("count"))," pistes"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])}}}},playlist:{type:{plain:e=>{const{normalize:t}=e;return t(["Simple"])},smart:e=>{const{normalize:t}=e;return t(["Intelligente"])}}},player:{button:{consume:e=>{const{normalize:t}=e;return t(["Effacer l\u2019historique"])},pause:e=>{const{normalize:t}=e;return t(["Mettre la lecture en pause"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},repeat:e=>{const{normalize:t}=e;return t(["R\xE9p\xE9ter toutes les pistes"])},"repeat-off":e=>{const{normalize:t}=e;return t(["Lire les pistes une fois"])},"repeat-once":e=>{const{normalize:t}=e;return t(["R\xE9p\xE9ter la piste en cours"])},"seek-backward":e=>{const{normalize:t}=e;return t(["Reculer dans la piste"])},"seek-forward":e=>{const{normalize:t}=e;return t(["Avancer dans la piste"])},shuffle:e=>{const{normalize:t}=e;return t(["Lire les pistes al\xE9atoirement"])},"shuffle-disabled":e=>{const{normalize:t}=e;return t(["Lire les pistes dans l\u2019ordre"])},"skip-backward":e=>{const{normalize:t}=e;return t(["Reculer \xE0 la piste pr\xE9c\xE9dente"])},"skip-forward":e=>{const{normalize:t}=e;return t(["Avancer \xE0 la piste suivante"])},stop:e=>{const{normalize:t}=e;return t(["Arr\xEAter la lecture"])}}},setting:{"not-saved":e=>{const{normalize:t}=e;return t([" (erreur \xE0 l\u2019enregistrement du r\xE9glage)"])},saved:e=>{const{normalize:t}=e;return t([" (r\xE9glage enregistr\xE9)"])}},server:{"connection-failed":e=>{const{normalize:t}=e;return t(["\xC9chec de connexion au serveur"])},"missing-port":e=>{const{normalize:t}=e;return t(["Port websocket manquant"])},"request-failed":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["La requ\xEAte a \xE9chou\xE9 (status: ",n(s("status"))," ",n(s("cause"))," ",n(s("url")),")"])},"queue-saved":e=>{const{normalize:t,interpolate:n,named:s}=e;return t(["La file d\u2019attente enregistr\xE9e dans la liste de lecture ",n(s("name"))])},"appended-tracks":e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," pistes ajout\xE9es \xE0 la file d\u2019attente"])},"empty-queue":e=>{const{normalize:t}=e;return t(["La file d\u2019attente est vide"])}},"group-by-list":{today:e=>{const{normalize:t}=e;return t(["Aujourd\u2019hui"])},"last-week":e=>{const{normalize:t}=e;return t(["La semaine derni\xE8re"])},"last-month":e=>{const{normalize:t}=e;return t(["Le mois dernier"])}},filter:{mono:e=>{const{normalize:t}=e;return t(["mono"])},stereo:e=>{const{normalize:t}=e;return t(["st\xE9r\xE9o"])},channels:e=>{const{normalize:t,interpolate:n,named:s}=e;return t([n(s("count"))," canaux"])}}}},Fl=Qw({legacy:!1,globalInjection:!0,availableLocales:"fr",locale:navigator.language,fallbackLocale:"en",fallbackWarn:!1,missingWarn:!1,messages:uz});/*!
|
|
* vuex v4.1.0
|
|
* (c) 2022 Evan You
|
|
* @license MIT
|
|
*/var cz="store";function oo(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function dz(e){return e!==null&&typeof e=="object"}function mz(e){return e&&typeof e.then=="function"}function fz(e,t){return function(){return e(t)}}function og(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var s=t.indexOf(e);s>-1&&t.splice(s,1)}}function ig(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Rl(e,n,[],e._modules.root,!0),Ad(e,n,t)}function Ad(e,t,n){var s=e._state,r=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,i={},a={},u=Jc(!0);u.run(function(){oo(o,function(c,d){i[d]=fz(c,e),a[d]=Rt(function(){return i[d]()}),Object.defineProperty(e.getters,d,{get:function(){return a[d].value},enumerable:!0})})}),e._state=pr({data:t}),e._scope=u,e.strict&&yz(e),s&&n&&e._withCommit(function(){s.data=null}),r&&r.stop()}function Rl(e,t,n,s,r){var o=!n.length,i=e._modules.getNamespace(n);if(s.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=s),!o&&!r){var a=Td(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit(function(){a[u]=s.state})}var c=s.context=pz(e,i,n);s.forEachMutation(function(d,f){var m=i+f;hz(e,m,d,c)}),s.forEachAction(function(d,f){var m=d.root?f:i+f,p=d.handler||d;_z(e,m,p,c)}),s.forEachGetter(function(d,f){var m=i+f;gz(e,m,d,c)}),s.forEachChild(function(d,f){Rl(e,t,n.concat(f),d,r)})}function pz(e,t,n){var s=t==="",r={dispatch:s?e.dispatch:function(o,i,a){var u=tl(o,i,a),c=u.payload,d=u.options,f=u.type;return(!d||!d.root)&&(f=t+f),e.dispatch(f,c)},commit:s?e.commit:function(o,i,a){var u=tl(o,i,a),c=u.payload,d=u.options,f=u.type;(!d||!d.root)&&(f=t+f),e.commit(f,c,d)}};return Object.defineProperties(r,{getters:{get:s?function(){return e.getters}:function(){return ag(e,t)}},state:{get:function(){return Td(e.state,n)}}}),r}function ag(e,t){if(!e._makeLocalGettersCache[t]){var n={},s=t.length;Object.keys(e.getters).forEach(function(r){if(r.slice(0,s)===t){var o=r.slice(s);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function hz(e,t,n,s){var r=e._mutations[t]||(e._mutations[t]=[]);r.push(function(i){n.call(e,s.state,i)})}function _z(e,t,n,s){var r=e._actions[t]||(e._actions[t]=[]);r.push(function(i){var a=n.call(e,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:e.getters,rootState:e.state},i);return mz(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):a})}function gz(e,t,n,s){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(s.state,s.getters,o.state,o.getters)})}function yz(e){tn(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function Td(e,t){return t.reduce(function(n,s){return n[s]},e)}function tl(e,t,n){return dz(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var vz="vuex bindings",Sf="vuex:mutations",mu="vuex:actions",Cr="vuex",bz=0;function Cz(e,t){Vw({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[vz]},function(n){n.addTimelineLayer({id:Sf,label:"Vuex Mutations",color:Af}),n.addTimelineLayer({id:mu,label:"Vuex Actions",color:Af}),n.addInspector({id:Cr,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(s){if(s.app===e&&s.inspectorId===Cr)if(s.filter){var r=[];dg(r,t._modules.root,s.filter,""),s.rootNodes=r}else s.rootNodes=[cg(t._modules.root,"")]}),n.on.getInspectorState(function(s){if(s.app===e&&s.inspectorId===Cr){var r=s.nodeId;ag(t,r),s.state=kz(Ez(t._modules,r),r==="root"?t.getters:t._makeLocalGettersCache,r)}}),n.on.editInspectorState(function(s){if(s.app===e&&s.inspectorId===Cr){var r=s.nodeId,o=s.path;r!=="root"&&(o=r.split("/").filter(Boolean).concat(o)),t._withCommit(function(){s.set(t._state.data,o,s.state.value)})}}),t.subscribe(function(s,r){var o={};s.payload&&(o.payload=s.payload),o.state=r,n.notifyComponentUpdate(),n.sendInspectorTree(Cr),n.sendInspectorState(Cr),n.addTimelineEvent({layerId:Sf,event:{time:Date.now(),title:s.type,data:o}})}),t.subscribeAction({before:function(s,r){var o={};s.payload&&(o.payload=s.payload),s._id=bz++,s._time=Date.now(),o.state=r,n.addTimelineEvent({layerId:mu,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:o}})},after:function(s,r){var o={},i=Date.now()-s._time;o.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},s.payload&&(o.payload=s.payload),o.state=r,n.addTimelineEvent({layerId:mu,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:o}})}})})}var Af=8702998,wz=6710886,zz=16777215,lg={label:"namespaced",textColor:zz,backgroundColor:wz};function ug(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function cg(e,t){return{id:t||"root",label:ug(t),tags:e.namespaced?[lg]:[],children:Object.keys(e._children).map(function(n){return cg(e._children[n],t+n+"/")})}}function dg(e,t,n,s){s.includes(n)&&e.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:t.namespaced?[lg]:[]}),Object.keys(t._children).forEach(function(r){dg(e,t._children[r],n,s+r+"/")})}function kz(e,t,n){t=n==="root"?t:t[n];var s=Object.keys(t),r={state:Object.keys(e.state).map(function(i){return{key:i,editable:!0,value:e.state[i]}})};if(s.length){var o=xz(t);r.getters=Object.keys(o).map(function(i){return{key:i.endsWith("/")?ug(i):i,editable:!1,value:gc(function(){return o[i]})}})}return r}function xz(e){var t={};return Object.keys(e).forEach(function(n){var s=n.split("/");if(s.length>1){var r=t,o=s.pop();s.forEach(function(i){r[i]||(r[i]={_custom:{value:{},display:i,tooltip:"Module",abstract:!0}}),r=r[i]._custom.value}),r[o]=gc(function(){return e[n]})}else t[n]=gc(function(){return e[n]})}),t}function Ez(e,t){var n=t.split("/").filter(function(s){return s});return n.reduce(function(s,r,o){var i=s[r];if(!i)throw new Error('Missing module "'+r+'" for path "'+t+'".');return o===n.length-1?i:i._children},t==="root"?e:e.root._children)}function gc(e){try{return e()}catch(t){return t}}var qn=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var s=t.state;this.state=(typeof s=="function"?s():s)||{}},mg={namespaced:{configurable:!0}};mg.namespaced.get=function(){return!!this._rawModule.namespaced};qn.prototype.addChild=function(t,n){this._children[t]=n};qn.prototype.removeChild=function(t){delete this._children[t]};qn.prototype.getChild=function(t){return this._children[t]};qn.prototype.hasChild=function(t){return t in this._children};qn.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};qn.prototype.forEachChild=function(t){oo(this._children,t)};qn.prototype.forEachGetter=function(t){this._rawModule.getters&&oo(this._rawModule.getters,t)};qn.prototype.forEachAction=function(t){this._rawModule.actions&&oo(this._rawModule.actions,t)};qn.prototype.forEachMutation=function(t){this._rawModule.mutations&&oo(this._rawModule.mutations,t)};Object.defineProperties(qn.prototype,mg);var _r=function(t){this.register([],t,!1)};_r.prototype.get=function(t){return t.reduce(function(n,s){return n.getChild(s)},this.root)};_r.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(s,r){return n=n.getChild(r),s+(n.namespaced?r+"/":"")},"")};_r.prototype.update=function(t){fg([],this.root,t)};_r.prototype.register=function(t,n,s){var r=this;s===void 0&&(s=!0);var o=new qn(n,s);if(t.length===0)this.root=o;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],o)}n.modules&&oo(n.modules,function(a,u){r.register(t.concat(u),a,s)})};_r.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),s=t[t.length-1],r=n.getChild(s);!r||!r.runtime||n.removeChild(s)};_r.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),s=t[t.length-1];return n?n.hasChild(s):!1};function fg(e,t,n){if(t.update(n),n.modules)for(var s in n.modules){if(!t.getChild(s))return;fg(e.concat(s),t.getChild(s),n.modules[s])}}function $z(e){return new mn(e)}var mn=function(t){var n=this;t===void 0&&(t={});var s=t.plugins;s===void 0&&(s=[]);var r=t.strict;r===void 0&&(r=!1);var o=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new _r(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var i=this,a=this,u=a.dispatch,c=a.commit;this.dispatch=function(m,p){return u.call(i,m,p)},this.commit=function(m,p,h){return c.call(i,m,p,h)},this.strict=r;var d=this._modules.root.state;Rl(this,d,[],this._modules.root),Ad(this,d),s.forEach(function(f){return f(n)})},Od={state:{configurable:!0}};mn.prototype.install=function(t,n){t.provide(n||cz,this),t.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:!1;s&&Cz(t,this)};Od.state.get=function(){return this._state.data};Od.state.set=function(e){};mn.prototype.commit=function(t,n,s){var r=this,o=tl(t,n,s),i=o.type,a=o.payload,u={type:i,payload:a},c=this._mutations[i];!c||(this._withCommit(function(){c.forEach(function(f){f(a)})}),this._subscribers.slice().forEach(function(d){return d(u,r.state)}))};mn.prototype.dispatch=function(t,n){var s=this,r=tl(t,n),o=r.type,i=r.payload,a={type:o,payload:i},u=this._actions[o];if(!!u){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(a,s.state)})}catch{}var c=u.length>1?Promise.all(u.map(function(d){return d(i)})):u[0](i);return new Promise(function(d,f){c.then(function(m){try{s._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(a,s.state)})}catch{}d(m)},function(m){try{s._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(a,s.state,m)})}catch{}f(m)})})}};mn.prototype.subscribe=function(t,n){return og(t,this._subscribers,n)};mn.prototype.subscribeAction=function(t,n){var s=typeof t=="function"?{before:t}:t;return og(s,this._actionSubscribers,n)};mn.prototype.watch=function(t,n,s){var r=this;return tn(function(){return t(r.state,r.getters)},n,Object.assign({},s))};mn.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};mn.prototype.registerModule=function(t,n,s){s===void 0&&(s={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),Rl(this,this.state,t,this._modules.get(t),s.preserveState),Ad(this,this.state)};mn.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var s=Td(n.state,t.slice(0,-1));delete s[t[t.length-1]]}),ig(this)};mn.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};mn.prototype.hotUpdate=function(t){this._modules.update(t),ig(this,!0)};mn.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(mn.prototype,Od);const pg="UPDATE_CONFIG",hg="UPDATE_SETTINGS",Ll="UPDATE_SETTINGS_OPTION",_g="UPDATE_LIBRARY_STATS",gg="UPDATE_LIBRARY_AUDIOBOOKS_COUNT",yg="UPDATE_LIBRARY_PODCASTS_COUNT",vg="UPDATE_LIBRARY_RSS_COUNT",bg="UPDATE_OUTPUTS",Dd="UPDATE_PLAYER_STATUS",Cg="UPDATE_QUEUE",wg="UPDATE_LASTFM",zg="UPDATE_SPOTIFY",kg="UPDATE_PAIRING",Pd="SPOTIFY_NEW_RELEASES",Id="SPOTIFY_FEATURED_PLAYLISTS",Tf="ADD_NOTIFICATION",yc="DELETE_NOTIFICATION",vc="SEARCH_PATH",Fd="ADD_RECENT_SEARCH",xg="COMPOSER_TRACKS_SORT",Eg="GENRE_TRACKS_SORT",Ml="HIDE_SINGLES",Rd="HIDE_SPOTIFY",$g="ARTISTS_SORT",Sg="ARTIST_ALBUMS_SORT",Ag="ARTIST_TRACKS_SORT",Tg="ALBUMS_SORT",Og="SHOW_ONLY_NEXT_ITEMS",Gr="SHOW_BURGER_MENU",Kr="SHOW_PLAYER_MENU",wi="SHOW_UPDATE_DIALOG",Ld="UPDATE_DIALOG_SCAN_KIND";var Ke=$z({state(){return{config:{websocket_port:0,version:"",buildoptions:[]},settings:{categories:[]},library:{artists:0,albums:0,songs:0,db_playtime:0,updating:!1},audiobooks_count:{},podcasts_count:{},rss_count:{},outputs:[],player:{state:"stop",repeat:"off",consume:!1,shuffle:!1,volume:0,item_id:0,item_length_ms:0,item_progress_ms:0},queue:{version:0,count:0,items:[]},lastfm:{},spotify:{},pairing:{},spotify_new_releases:[],spotify_featured_playlists:[],notifications:{next_id:1,list:[]},search_path:"/search/library",recent_searches:[],composer_tracks_sort:1,genre_tracks_sort:1,hide_singles:!1,hide_spotify:!1,artists_sort:1,artist_albums_sort:1,artist_tracks_sort:1,albums_sort:1,show_only_next_items:!1,show_burger_menu:!1,show_player_menu:!1,show_update_dialog:!1,update_dialog_scan_kind:""}},getters:{now_playing:e=>{const t=e.queue.items.find(function(n){return n.id===e.player.item_id});return t===void 0?{}:t},settings_webinterface:e=>e.settings?e.settings.categories.find(t=>t.name==="webinterface"):null,settings_option_recently_added_limit:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(s=>s.name==="recently_added_limit");if(n)return n.value}return 100},settings_option_show_composer_now_playing:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(s=>s.name==="show_composer_now_playing");if(n)return n.value}return!1},settings_option_show_composer_for_genre:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(s=>s.name==="show_composer_for_genre");if(n)return n.value}return null},settings_option_show_filepath_now_playing:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(s=>s.name==="show_filepath_now_playing");if(n)return n.value}return!1},settings_category:e=>t=>e.settings.categories.find(n=>n.name===t),settings_option:e=>(t,n)=>{const s=e.settings.categories.find(r=>r.name===t);return s?s.options.find(r=>r.name===n):{}}},mutations:{[pg](e,t){e.config=t},[hg](e,t){e.settings=t},[Ll](e,t){const s=e.settings.categories.find(r=>r.name===t.category).options.find(r=>r.name===t.name);s.value=t.value},[_g](e,t){e.library=t},[gg](e,t){e.audiobooks_count=t},[yg](e,t){e.podcasts_count=t},[vg](e,t){e.rss_count=t},[bg](e,t){e.outputs=t},[Dd](e,t){e.player=t},[Cg](e,t){e.queue=t},[wg](e,t){e.lastfm=t},[zg](e,t){e.spotify=t},[kg](e,t){e.pairing=t},[Pd](e,t){e.spotify_new_releases=t},[Id](e,t){e.spotify_featured_playlists=t},[Tf](e,t){if(t.topic){const n=e.notifications.list.findIndex(s=>s.topic===t.topic);if(n>=0){e.notifications.list.splice(n,1,t);return}}e.notifications.list.push(t)},[yc](e,t){const n=e.notifications.list.indexOf(t);n!==-1&&e.notifications.list.splice(n,1)},[vc](e,t){e.search_path=t},[Fd](e,t){const n=e.recent_searches.findIndex(s=>s===t);n>=0&&e.recent_searches.splice(n,1),e.recent_searches.splice(0,0,t),e.recent_searches.length>5&&e.recent_searches.pop()},[xg](e,t){e.composer_tracks_sort=t},[Eg](e,t){e.genre_tracks_sort=t},[Ml](e,t){e.hide_singles=t},[Rd](e,t){e.hide_spotify=t},[$g](e,t){e.artists_sort=t},[Sg](e,t){e.artist_albums_sort=t},[Ag](e,t){e.artist_tracks_sort=t},[Tg](e,t){e.albums_sort=t},[Og](e,t){e.show_only_next_items=t},[Gr](e,t){e.show_burger_menu=t},[Kr](e,t){e.show_player_menu=t},[wi](e,t){e.show_update_dialog=t},[Ld](e,t){e.update_dialog_scan_kind=t}},actions:{add_notification({commit:e,state:t},n){const s={id:t.notifications.next_id++,type:n.type,text:n.text,topic:n.topic,timeout:n.timeout};e(Tf,s),n.timeout>0&&setTimeout(()=>{e(yc,s)},n.timeout)}}});/*!
|
|
* vue-router v4.2.2
|
|
* (c) 2023 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const Ar=typeof window!="undefined";function Sz(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ct=Object.assign;function fu(e,t){const n={};for(const s in t){const r=t[s];n[s]=Un(r)?r.map(e):e(r)}return n}const jo=()=>{},Un=Array.isArray,Az=/\/$/,Tz=e=>e.replace(Az,"");function pu(e,t,n="/"){let s,r={},o="",i="";const a=t.indexOf("#");let u=t.indexOf("?");return a<u&&a>=0&&(u=-1),u>-1&&(s=t.slice(0,u),o=t.slice(u+1,a>-1?a:t.length),r=e(o)),a>-1&&(s=s||t.slice(0,a),i=t.slice(a,t.length)),s=Iz(s!=null?s:t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function Oz(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Of(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Dz(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Zr(t.matched[s],n.matched[r])&&Dg(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Zr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Pz(e[n],t[n]))return!1;return!0}function Pz(e,t){return Un(e)?Df(e,t):Un(t)?Df(t,e):e===t}function Df(e,t){return Un(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Iz(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,a;for(i=0;i<s.length;i++)if(a=s[i],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i-(i===s.length?1:0)).join("/")}var di;(function(e){e.pop="pop",e.push="push"})(di||(di={}));var qo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(qo||(qo={}));function Fz(e){if(!e)if(Ar){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Tz(e)}const Rz=/^[^#]+#/;function Lz(e,t){return e.replace(Rz,"#")+t}function Mz(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Nl=()=>({left:window.pageXOffset,top:window.pageYOffset});function Nz(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Mz(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Pf(e,t){return(history.state?history.state.position-t:-1)+e}const bc=new Map;function Vz(e,t){bc.set(e,t)}function Bz(e){const t=bc.get(e);return bc.delete(e),t}let Hz=()=>location.protocol+"//"+location.host;function Pg(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let a=r.includes(e.slice(o))?e.slice(o).length:1,u=r.slice(a);return u[0]!=="/"&&(u="/"+u),Of(u,"")}return Of(n,e)+s+r}function Uz(e,t,n,s){let r=[],o=[],i=null;const a=({state:m})=>{const p=Pg(e,location),h=n.value,_=t.value;let w=0;if(m){if(n.value=p,t.value=m,i&&i===h){i=null;return}w=_?m.position-_.position:0}else s(p);r.forEach(b=>{b(n.value,h,{delta:w,type:di.pop,direction:w?w>0?qo.forward:qo.back:qo.unknown})})};function u(){i=n.value}function c(m){r.push(m);const p=()=>{const h=r.indexOf(m);h>-1&&r.splice(h,1)};return o.push(p),p}function d(){const{history:m}=window;!m.state||m.replaceState(ct({},m.state,{scroll:Nl()}),"")}function f(){for(const m of o)m();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:u,listen:c,destroy:f}}function If(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Nl():null}}function jz(e){const{history:t,location:n}=window,s={value:Pg(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(u,c,d){const f=e.indexOf("#"),m=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:Hz()+e+u;try{t[d?"replaceState":"pushState"](c,"",m),r.value=c}catch(p){console.error(p),n[d?"replace":"assign"](m)}}function i(u,c){const d=ct({},t.state,If(r.value.back,u,r.value.forward,!0),c,{position:r.value.position});o(u,d,!0),s.value=u}function a(u,c){const d=ct({},r.value,t.state,{forward:u,scroll:Nl()});o(d.current,d,!0);const f=ct({},If(s.value,u,null),{position:d.position+1},c);o(u,f,!1),s.value=u}return{location:s,state:r,push:a,replace:i}}function qz(e){e=Fz(e);const t=jz(e),n=Uz(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=ct({location:"",base:e,go:s,createHref:Lz.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Wz(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),qz(e)}function Gz(e){return typeof e=="string"||e&&typeof e=="object"}function Ig(e){return typeof e=="string"||typeof e=="symbol"}const ks={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Fg=Symbol("");var Ff;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ff||(Ff={}));function Yr(e,t){return ct(new Error,{type:e,[Fg]:!0},t)}function ls(e,t){return e instanceof Error&&Fg in e&&(t==null||!!(e.type&t))}const Rf="[^/]+?",Kz={sensitive:!1,strict:!1,start:!0,end:!0},Zz=/[.+*?^${}()[\]/\\]/g;function Yz(e,t){const n=ct({},Kz,t),s=[];let r=n.start?"^":"";const o=[];for(const c of e){const d=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let f=0;f<c.length;f++){const m=c[f];let p=40+(n.sensitive?.25:0);if(m.type===0)f||(r+="/"),r+=m.value.replace(Zz,"\\$&"),p+=40;else if(m.type===1){const{value:h,repeatable:_,optional:w,regexp:b}=m;o.push({name:h,repeatable:_,optional:w});const y=b||Rf;if(y!==Rf){p+=10;try{new RegExp(`(${y})`)}catch(C){throw new Error(`Invalid custom RegExp for param "${h}" (${y}): `+C.message)}}let k=_?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(k=w&&c.length<2?`(?:/${k})`:"/"+k),w&&(k+="?"),r+=k,p+=20,w&&(p+=-8),_&&(p+=-20),y===".*"&&(p+=-50)}d.push(p)}s.push(d)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function a(c){const d=c.match(i),f={};if(!d)return null;for(let m=1;m<d.length;m++){const p=d[m]||"",h=o[m-1];f[h.name]=p&&h.repeatable?p.split("/"):p}return f}function u(c){let d="",f=!1;for(const m of e){(!f||!d.endsWith("/"))&&(d+="/"),f=!1;for(const p of m)if(p.type===0)d+=p.value;else if(p.type===1){const{value:h,repeatable:_,optional:w}=p,b=h in c?c[h]:"";if(Un(b)&&!_)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const y=Un(b)?b.join("/"):b;if(!y)if(w)m.length<2&&(d.endsWith("/")?d=d.slice(0,-1):f=!0);else throw new Error(`Missing required param "${h}"`);d+=y}}return d||"/"}return{re:i,score:s,keys:o,parse:a,stringify:u}}function Jz(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Xz(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=Jz(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(Lf(s))return 1;if(Lf(r))return-1}return r.length-s.length}function Lf(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Qz={type:0,value:""},ek=/[a-zA-Z0-9_]/;function tk(e){if(!e)return[[]];if(e==="/")return[[Qz]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let a=0,u,c="",d="";function f(){!c||(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function m(){c+=u}for(;a<e.length;){if(u=e[a++],u==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:u==="/"?(c&&f(),i()):u===":"?(f(),n=1):m();break;case 4:m(),n=s;break;case 1:u==="("?n=2:ek.test(u)?m():(f(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&a--);break;case 2:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=3:d+=u;break;case 3:f(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&a--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),f(),i(),r}function nk(e,t,n){const s=Yz(tk(e.path),n),r=ct(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function sk(e,t){const n=[],s=new Map;t=Vf({strict:!1,end:!0,sensitive:!1},t);function r(d){return s.get(d)}function o(d,f,m){const p=!m,h=rk(d);h.aliasOf=m&&m.record;const _=Vf(t,d),w=[h];if("alias"in d){const k=typeof d.alias=="string"?[d.alias]:d.alias;for(const C of k)w.push(ct({},h,{components:m?m.record.components:h.components,path:C,aliasOf:m?m.record:h}))}let b,y;for(const k of w){const{path:C}=k;if(f&&C[0]!=="/"){const x=f.record.path,T=x[x.length-1]==="/"?"":"/";k.path=f.record.path+(C&&T+C)}if(b=nk(k,f,_),m?m.alias.push(b):(y=y||b,y!==b&&y.alias.push(b),p&&d.name&&!Nf(b)&&i(d.name)),h.children){const x=h.children;for(let T=0;T<x.length;T++)o(x[T],b,m&&m.children[T])}m=m||b,(b.record.components&&Object.keys(b.record.components).length||b.record.name||b.record.redirect)&&u(b)}return y?()=>{i(y)}:jo}function i(d){if(Ig(d)){const f=s.get(d);f&&(s.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return n}function u(d){let f=0;for(;f<n.length&&Xz(d,n[f])>=0&&(d.record.path!==n[f].record.path||!Rg(d,n[f]));)f++;n.splice(f,0,d),d.record.name&&!Nf(d)&&s.set(d.record.name,d)}function c(d,f){let m,p={},h,_;if("name"in d&&d.name){if(m=s.get(d.name),!m)throw Yr(1,{location:d});_=m.record.name,p=ct(Mf(f.params,m.keys.filter(y=>!y.optional).map(y=>y.name)),d.params&&Mf(d.params,m.keys.map(y=>y.name))),h=m.stringify(p)}else if("path"in d)h=d.path,m=n.find(y=>y.re.test(h)),m&&(p=m.parse(h),_=m.record.name);else{if(m=f.name?s.get(f.name):n.find(y=>y.re.test(f.path)),!m)throw Yr(1,{location:d,currentLocation:f});_=m.record.name,p=ct({},f.params,d.params),h=m.stringify(p)}const w=[];let b=m;for(;b;)w.unshift(b.record),b=b.parent;return{name:_,path:h,params:p,matched:w,meta:ik(w)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:c,removeRoute:i,getRoutes:a,getRecordMatcher:r}}function Mf(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function rk(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:ok(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function ok(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="boolean"?n:n[s];return t}function Nf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ik(e){return e.reduce((t,n)=>ct(t,n.meta),{})}function Vf(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Rg(e,t){return t.children.some(n=>n===e||Rg(e,n))}const Lg=/#/g,ak=/&/g,lk=/\//g,uk=/=/g,ck=/\?/g,Mg=/\+/g,dk=/%5B/g,mk=/%5D/g,Ng=/%5E/g,fk=/%60/g,Vg=/%7B/g,pk=/%7C/g,Bg=/%7D/g,hk=/%20/g;function Md(e){return encodeURI(""+e).replace(pk,"|").replace(dk,"[").replace(mk,"]")}function _k(e){return Md(e).replace(Vg,"{").replace(Bg,"}").replace(Ng,"^")}function Cc(e){return Md(e).replace(Mg,"%2B").replace(hk,"+").replace(Lg,"%23").replace(ak,"%26").replace(fk,"`").replace(Vg,"{").replace(Bg,"}").replace(Ng,"^")}function gk(e){return Cc(e).replace(uk,"%3D")}function yk(e){return Md(e).replace(Lg,"%23").replace(ck,"%3F")}function vk(e){return e==null?"":yk(e).replace(lk,"%2F")}function nl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function bk(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<s.length;++r){const o=s[r].replace(Mg," "),i=o.indexOf("="),a=nl(i<0?o:o.slice(0,i)),u=i<0?null:nl(o.slice(i+1));if(a in t){let c=t[a];Un(c)||(c=t[a]=[c]),c.push(u)}else t[a]=u}return t}function Bf(e){let t="";for(let n in e){const s=e[n];if(n=gk(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Un(s)?s.map(o=>o&&Cc(o)):[s&&Cc(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Ck(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Un(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const wk=Symbol(""),Hf=Symbol(""),Nd=Symbol(""),Hg=Symbol(""),wc=Symbol("");function _o(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Os(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,a)=>{const u=f=>{f===!1?a(Yr(4,{from:n,to:t})):f instanceof Error?a(f):Gz(f)?a(Yr(2,{from:t,to:f})):(o&&s.enterCallbacks[r]===o&&typeof f=="function"&&o.push(f),i())},c=e.call(s&&s.instances[r],t,n,u);let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>a(f))})}function hu(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let a=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(zk(a)){const c=(a.__vccOpts||a)[t];c&&r.push(Os(c,n,s,o,i))}else{let u=a();r.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const d=Sz(c)?c.default:c;o.components[i]=d;const m=(d.__vccOpts||d)[t];return m&&Os(m,n,s,o,i)()}))}}return r}function zk(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Uf(e){const t=Hn(Nd),n=Hn(Hg),s=Rt(()=>t.resolve(yn(e.to))),r=Rt(()=>{const{matched:u}=s.value,{length:c}=u,d=u[c-1],f=n.matched;if(!d||!f.length)return-1;const m=f.findIndex(Zr.bind(null,d));if(m>-1)return m;const p=jf(u[c-2]);return c>1&&jf(d)===p&&f[f.length-1].path!==p?f.findIndex(Zr.bind(null,u[c-2])):m}),o=Rt(()=>r.value>-1&&$k(n.params,s.value.params)),i=Rt(()=>r.value>-1&&r.value===n.matched.length-1&&Dg(n.params,s.value.params));function a(u={}){return Ek(u)?t[yn(e.replace)?"replace":"push"](yn(e.to)).catch(jo):Promise.resolve()}return{route:s,href:Rt(()=>s.value.href),isActive:o,isExactActive:i,navigate:a}}const kk=so({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Uf,setup(e,{slots:t}){const n=pr(Uf(e)),{options:s}=Hn(Nd),r=Rt(()=>({[qf(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[qf(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Qn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),xk=kk;function Ek(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function $k(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Un(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function jf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const qf=(e,t,n)=>e!=null?e:t!=null?t:n,Sk=so({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Hn(wc),r=Rt(()=>e.route||s.value),o=Hn(Hf,0),i=Rt(()=>{let c=yn(o);const{matched:d}=r.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),a=Rt(()=>r.value.matched[i.value]);No(Hf,Rt(()=>i.value+1)),No(wk,a),No(wc,r);const u=Xt();return tn(()=>[u.value,a.value,e.name],([c,d,f],[m,p,h])=>{d&&(d.instances[f]=c,p&&p!==d&&c&&c===m&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),c&&d&&(!p||!Zr(d,p)||!m)&&(d.enterCallbacks[f]||[]).forEach(_=>_(c))},{flush:"post"}),()=>{const c=r.value,d=e.name,f=a.value,m=f&&f.components[d];if(!m)return Wf(n.default,{Component:m,route:c});const p=f.props[d],h=p?p===!0?c.params:typeof p=="function"?p(c):p:null,w=Qn(m,ct({},h,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[d]=null)},ref:u}));return Wf(n.default,{Component:w,route:c})||w}}});function Wf(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ak=Sk;function Tk(e){const t=sk(e.routes,e),n=e.parseQuery||bk,s=e.stringifyQuery||Bf,r=e.history,o=_o(),i=_o(),a=_o(),u=zh(ks);let c=ks;Ar&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=fu.bind(null,V=>""+V),f=fu.bind(null,vk),m=fu.bind(null,nl);function p(V,le){let ne,pe;return Ig(V)?(ne=t.getRecordMatcher(V),pe=le):pe=V,t.addRoute(pe,ne)}function h(V){const le=t.getRecordMatcher(V);le&&t.removeRoute(le)}function _(){return t.getRoutes().map(V=>V.record)}function w(V){return!!t.getRecordMatcher(V)}function b(V,le){if(le=ct({},le||u.value),typeof V=="string"){const P=pu(n,V,le.path),K=t.resolve({path:P.path},le),J=r.createHref(P.fullPath);return ct(P,K,{params:m(K.params),hash:nl(P.hash),redirectedFrom:void 0,href:J})}let ne;if("path"in V)ne=ct({},V,{path:pu(n,V.path,le.path).path});else{const P=ct({},V.params);for(const K in P)P[K]==null&&delete P[K];ne=ct({},V,{params:f(P)}),le.params=f(le.params)}const pe=t.resolve(ne,le),Pe=V.hash||"";pe.params=d(m(pe.params));const A=Oz(s,ct({},V,{hash:_k(Pe),path:pe.path})),O=r.createHref(A);return ct({fullPath:A,hash:Pe,query:s===Bf?Ck(V.query):V.query||{}},pe,{redirectedFrom:void 0,href:O})}function y(V){return typeof V=="string"?pu(n,V,u.value.path):ct({},V)}function k(V,le){if(c!==V)return Yr(8,{from:le,to:V})}function C(V){return L(V)}function x(V){return C(ct(y(V),{replace:!0}))}function T(V){const le=V.matched[V.matched.length-1];if(le&&le.redirect){const{redirect:ne}=le;let pe=typeof ne=="function"?ne(V):ne;return typeof pe=="string"&&(pe=pe.includes("?")||pe.includes("#")?pe=y(pe):{path:pe},pe.params={}),ct({query:V.query,hash:V.hash,params:"path"in pe?{}:V.params},pe)}}function L(V,le){const ne=c=b(V),pe=u.value,Pe=V.state,A=V.force,O=V.replace===!0,P=T(ne);if(P)return L(ct(y(P),{state:typeof P=="object"?ct({},Pe,P.state):Pe,force:A,replace:O}),le||ne);const K=ne;K.redirectedFrom=le;let J;return!A&&Dz(s,pe,ne)&&(J=Yr(16,{to:K,from:pe}),ce(pe,pe,!0,!1)),(J?Promise.resolve(J):j(K,pe)).catch(ee=>ls(ee)?ls(ee,2)?ee:at(ee):ye(ee,K,pe)).then(ee=>{if(ee){if(ls(ee,2))return L(ct({replace:O},y(ee.to),{state:typeof ee.to=="object"?ct({},Pe,ee.to.state):Pe,force:A}),le||K)}else ee=X(K,pe,!0,O,Pe);return Z(K,pe,ee),ee})}function I(V,le){const ne=k(V,le);return ne?Promise.reject(ne):Promise.resolve()}function D(V){const le=De.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(V):V()}function j(V,le){let ne;const[pe,Pe,A]=Ok(V,le);ne=hu(pe.reverse(),"beforeRouteLeave",V,le);for(const P of pe)P.leaveGuards.forEach(K=>{ne.push(Os(K,V,le))});const O=I.bind(null,V,le);return ne.push(O),Ee(ne).then(()=>{ne=[];for(const P of o.list())ne.push(Os(P,V,le));return ne.push(O),Ee(ne)}).then(()=>{ne=hu(Pe,"beforeRouteUpdate",V,le);for(const P of Pe)P.updateGuards.forEach(K=>{ne.push(Os(K,V,le))});return ne.push(O),Ee(ne)}).then(()=>{ne=[];for(const P of V.matched)if(P.beforeEnter&&!le.matched.includes(P))if(Un(P.beforeEnter))for(const K of P.beforeEnter)ne.push(Os(K,V,le));else ne.push(Os(P.beforeEnter,V,le));return ne.push(O),Ee(ne)}).then(()=>(V.matched.forEach(P=>P.enterCallbacks={}),ne=hu(A,"beforeRouteEnter",V,le),ne.push(O),Ee(ne))).then(()=>{ne=[];for(const P of i.list())ne.push(Os(P,V,le));return ne.push(O),Ee(ne)}).catch(P=>ls(P,8)?P:Promise.reject(P))}function Z(V,le,ne){for(const pe of a.list())D(()=>pe(V,le,ne))}function X(V,le,ne,pe,Pe){const A=k(V,le);if(A)return A;const O=le===ks,P=Ar?history.state:{};ne&&(pe||O?r.replace(V.fullPath,ct({scroll:O&&P&&P.scroll},Pe)):r.push(V.fullPath,Pe)),u.value=V,ce(V,le,ne,O),at()}let U;function q(){U||(U=r.listen((V,le,ne)=>{if(!Me.listening)return;const pe=b(V),Pe=T(pe);if(Pe){L(ct(Pe,{replace:!0}),pe).catch(jo);return}c=pe;const A=u.value;Ar&&Vz(Pf(A.fullPath,ne.delta),Nl()),j(pe,A).catch(O=>ls(O,12)?O:ls(O,2)?(L(O.to,pe).then(P=>{ls(P,20)&&!ne.delta&&ne.type===di.pop&&r.go(-1,!1)}).catch(jo),Promise.reject()):(ne.delta&&r.go(-ne.delta,!1),ye(O,pe,A))).then(O=>{O=O||X(pe,A,!1),O&&(ne.delta&&!ls(O,8)?r.go(-ne.delta,!1):ne.type===di.pop&&ls(O,20)&&r.go(-1,!1)),Z(pe,A,O)}).catch(jo)}))}let Ce=_o(),te=_o(),ie;function ye(V,le,ne){at(V);const pe=te.list();return pe.length?pe.forEach(Pe=>Pe(V,le,ne)):console.error(V),Promise.reject(V)}function je(){return ie&&u.value!==ks?Promise.resolve():new Promise((V,le)=>{Ce.add([V,le])})}function at(V){return ie||(ie=!V,q(),Ce.list().forEach(([le,ne])=>V?ne(V):le()),Ce.reset()),V}function ce(V,le,ne,pe){const{scrollBehavior:Pe}=e;if(!Ar||!Pe)return Promise.resolve();const A=!ne&&Bz(Pf(V.fullPath,0))||(pe||!ne)&&history.state&&history.state.scroll||null;return gi().then(()=>Pe(V,le,A)).then(O=>O&&Nz(O)).catch(O=>ye(O,V,le))}const W=V=>r.go(V);let fe;const De=new Set,Me={currentRoute:u,listening:!0,addRoute:p,removeRoute:h,hasRoute:w,getRoutes:_,resolve:b,options:e,push:C,replace:x,go:W,back:()=>W(-1),forward:()=>W(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:te.add,isReady:je,install(V){const le=this;V.component("RouterLink",xk),V.component("RouterView",Ak),V.config.globalProperties.$router=le,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>yn(u)}),Ar&&!fe&&u.value===ks&&(fe=!0,C(r.location).catch(Pe=>{}));const ne={};for(const Pe in ks)ne[Pe]=Rt(()=>u.value[Pe]);V.provide(Nd,le),V.provide(Hg,pr(ne)),V.provide(wc,u);const pe=V.unmount;De.add(V),V.unmount=function(){De.delete(V),De.size<1&&(c=ks,U&&U(),U=null,u.value=ks,fe=!1,ie=!1),pe()}}};function Ee(V){return V.reduce((le,ne)=>le.then(()=>D(ne)),Promise.resolve())}return Me}function Ok(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const a=t.matched[i];a&&(e.matched.find(c=>Zr(c,a))?s.push(a):n.push(a));const u=e.matched[i];u&&(t.matched.find(c=>Zr(c,u))||r.push(u))}return[n,s,r]}var re=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};const Dk={name:"ContentWithHeading",data(){return{options_visible:!1}},mounted(){this.$slots.options&&(this.observer=new IntersectionObserver(this.onElementObserved,{rootMargin:"-82px 0px 0px 0px",threshold:1}),this.observer.observe(this.$refs.options_ref))},methods:{onElementObserved(e){e.forEach(({target:t,isIntersecting:n})=>{this.options_visible=n})},scroll_to_top(){window.scrollTo({top:0,behavior:"smooth"})},scroll_to_content(){this.$route.meta.has_tabs?this.$scrollTo("#top",{offset:-140}):this.$scrollTo("#top",{offset:-110})},visibilityChanged(e){this.options_visible=e}}},Pk={class:"section"},Ik={class:"container"},Fk={class:"columns is-centered"},Rk={class:"column is-four-fifths"},Lk={key:0},Mk={ref:"options_ref",style:{height:"1px"}},Nk={class:"buttons is-centered",style:{"margin-bottom":"6px","margin-top":"16px"}},Vk={class:"icon is-small"},Bk={class:"icon is-small"},Hk={id:"top",class:"level"},Uk={class:"level-left"},jk={class:"level-item has-text-centered-mobile"},qk={class:"level-right has-text-centered-mobile"},Wk={style:{"margin-top":"16px"}};function Gk(e,t,n,s,r,o){const i=$("mdicon");return z(),S("section",Pk,[l("div",Ik,[l("div",Fk,[l("div",Rk,[e.$slots.options?(z(),S("section",Lk,[l("div",Mk,null,512),ut(e.$slots,"options"),l("nav",Nk,[r.options_visible?(z(),S("a",{key:1,class:"button is-small is-white",onClick:t[1]||(t[1]=(...a)=>o.scroll_to_content&&o.scroll_to_content(...a))},[l("span",Bk,[v(i,{name:"chevron-up",size:"16"})])])):(z(),S("a",{key:0,class:"button is-small is-white",onClick:t[0]||(t[0]=(...a)=>o.scroll_to_top&&o.scroll_to_top(...a))},[l("span",Vk,[v(i,{name:"chevron-down",size:"16"})])]))])])):H("",!0),l("div",{class:Ae({"fd-content-with-option":e.$slots.options})},[l("nav",Hk,[l("div",Uk,[l("div",jk,[l("div",null,[ut(e.$slots,"heading-left")])])]),l("div",qk,[ut(e.$slots,"heading-right")])]),ut(e.$slots,"content"),l("div",Wk,[ut(e.$slots,"footer")])],2)])])])])}var st=re(Dk,[["render",Gk]]);function Ug(e,t){return function(){return e.apply(t,arguments)}}const{toString:Kk}=Object.prototype,{getPrototypeOf:Vd}=Object,Vl=(e=>t=>{const n=Kk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rs=e=>(e=e.toLowerCase(),t=>Vl(t)===e),Bl=e=>t=>typeof t===e,{isArray:io}=Array,mi=Bl("undefined");function Zk(e){return e!==null&&!mi(e)&&e.constructor!==null&&!mi(e.constructor)&&An(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jg=rs("ArrayBuffer");function Yk(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jg(e.buffer),t}const Jk=Bl("string"),An=Bl("function"),qg=Bl("number"),Hl=e=>e!==null&&typeof e=="object",Xk=e=>e===!0||e===!1,Fa=e=>{if(Vl(e)!=="object")return!1;const t=Vd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Qk=rs("Date"),ex=rs("File"),tx=rs("Blob"),nx=rs("FileList"),sx=e=>Hl(e)&&An(e.pipe),rx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||An(e.append)&&((t=Vl(e))==="formdata"||t==="object"&&An(e.toString)&&e.toString()==="[object FormData]"))},ox=rs("URLSearchParams"),ix=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let s,r;if(typeof e!="object"&&(e=[e]),io(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(s=0;s<i;s++)a=o[s],t.call(null,e[a],a,e)}}function Wg(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const Gg=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),Kg=e=>!mi(e)&&e!==Gg;function zc(){const{caseless:e}=Kg(this)&&this||{},t={},n=(s,r)=>{const o=e&&Wg(t,r)||r;Fa(t[o])&&Fa(s)?t[o]=zc(t[o],s):Fa(s)?t[o]=zc({},s):io(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&zi(arguments[s],n);return t}const ax=(e,t,n,{allOwnKeys:s}={})=>(zi(t,(r,o)=>{n&&An(r)?e[o]=Ug(r,n):e[o]=r},{allOwnKeys:s}),e),lx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ux=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},cx=(e,t,n,s)=>{let r,o,i;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Vd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},dx=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},mx=e=>{if(!e)return null;if(io(e))return e;let t=e.length;if(!qg(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},fx=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&Vd(Uint8Array)),px=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},hx=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},_x=rs("HTMLFormElement"),gx=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Gf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yx=rs("RegExp"),Zg=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};zi(n,(r,o)=>{t(r,o,e)!==!1&&(s[o]=r)}),Object.defineProperties(e,s)},vx=e=>{Zg(e,(t,n)=>{if(An(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(!!An(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},bx=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return io(e)?s(e):s(String(e).split(t)),n},Cx=()=>{},wx=(e,t)=>(e=+e,Number.isFinite(e)?e:t),_u="abcdefghijklmnopqrstuvwxyz",Kf="0123456789",Yg={DIGIT:Kf,ALPHA:_u,ALPHA_DIGIT:_u+_u.toUpperCase()+Kf},zx=(e=16,t=Yg.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function kx(e){return!!(e&&An(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const xx=e=>{const t=new Array(10),n=(s,r)=>{if(Hl(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=io(s)?[]:{};return zi(s,(i,a)=>{const u=n(i,r+1);!mi(u)&&(o[a]=u)}),t[r]=void 0,o}}return s};return n(e,0)},Ex=rs("AsyncFunction"),$x=e=>e&&(Hl(e)||An(e))&&An(e.then)&&An(e.catch);var Q={isArray:io,isArrayBuffer:jg,isBuffer:Zk,isFormData:rx,isArrayBufferView:Yk,isString:Jk,isNumber:qg,isBoolean:Xk,isObject:Hl,isPlainObject:Fa,isUndefined:mi,isDate:Qk,isFile:ex,isBlob:tx,isRegExp:yx,isFunction:An,isStream:sx,isURLSearchParams:ox,isTypedArray:fx,isFileList:nx,forEach:zi,merge:zc,extend:ax,trim:ix,stripBOM:lx,inherits:ux,toFlatObject:cx,kindOf:Vl,kindOfTest:rs,endsWith:dx,toArray:mx,forEachEntry:px,matchAll:hx,isHTMLForm:_x,hasOwnProperty:Gf,hasOwnProp:Gf,reduceDescriptors:Zg,freezeMethods:vx,toObjectSet:bx,toCamelCase:gx,noop:Cx,toFiniteNumber:wx,findKey:Wg,global:Gg,isContextDefined:Kg,ALPHABET:Yg,generateString:zx,isSpecCompliantForm:kx,toJSONObject:xx,isAsyncFn:Ex,isThenable:$x};function ot(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}Q.inherits(ot,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Jg=ot.prototype,Xg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Xg[e]={value:e}});Object.defineProperties(ot,Xg);Object.defineProperty(Jg,"isAxiosError",{value:!0});ot.from=(e,t,n,s,r,o)=>{const i=Object.create(Jg);return Q.toFlatObject(e,i,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),ot.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var Sx=null;function kc(e){return Q.isPlainObject(e)||Q.isArray(e)}function Qg(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function Zf(e,t,n){return e?e.concat(t).map(function(r,o){return r=Qg(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function Ax(e){return Q.isArray(e)&&!e.some(kc)}const Tx=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function Ul(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,w){return!Q.isUndefined(w[_])});const s=n.metaTokens,r=n.visitor||d,o=n.dots,i=n.indexes,u=(n.Blob||typeof Blob!="undefined"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(r))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(Q.isDate(h))return h.toISOString();if(!u&&Q.isBlob(h))throw new ot("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(h)||Q.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,_,w){let b=h;if(h&&!w&&typeof h=="object"){if(Q.endsWith(_,"{}"))_=s?_:_.slice(0,-2),h=JSON.stringify(h);else if(Q.isArray(h)&&Ax(h)||(Q.isFileList(h)||Q.endsWith(_,"[]"))&&(b=Q.toArray(h)))return _=Qg(_),b.forEach(function(k,C){!(Q.isUndefined(k)||k===null)&&t.append(i===!0?Zf([_],C,o):i===null?_:_+"[]",c(k))}),!1}return kc(h)?!0:(t.append(Zf(w,_,o),c(h)),!1)}const f=[],m=Object.assign(Tx,{defaultVisitor:d,convertValue:c,isVisitable:kc});function p(h,_){if(!Q.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(h),Q.forEach(h,function(b,y){(!(Q.isUndefined(b)||b===null)&&r.call(t,b,Q.isString(y)?y.trim():y,_,m))===!0&&p(b,_?_.concat(y):[y])}),f.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Yf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Bd(e,t){this._pairs=[],e&&Ul(e,this,t)}const ey=Bd.prototype;ey.append=function(t,n){this._pairs.push([t,n])};ey.toString=function(t){const n=t?function(s){return t.call(this,s,Yf)}:Yf;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Ox(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ty(e,t,n){if(!t)return e;const s=n&&n.encode||Ox,r=n&&n.serialize;let o;if(r?o=r(t,n):o=Q.isURLSearchParams(t)?t.toString():new Bd(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Dx{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(s){s!==null&&t(s)})}}var Jf=Dx,ny={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Px=typeof URLSearchParams!="undefined"?URLSearchParams:Bd,Ix=typeof FormData!="undefined"?FormData:null,Fx=typeof Blob!="undefined"?Blob:null;const Rx=(()=>{let e;return typeof navigator!="undefined"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),Lx=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var es={isBrowser:!0,classes:{URLSearchParams:Px,FormData:Ix,Blob:Fx},isStandardBrowserEnv:Rx,isStandardBrowserWebWorkerEnv:Lx,protocols:["http","https","file","blob","url","data"]};function Mx(e,t){return Ul(e,new es.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return es.isNode&&Q.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Nx(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vx(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s<r;s++)o=n[s],t[o]=e[o];return t}function sy(e){function t(n,s,r,o){let i=n[o++];const a=Number.isFinite(+i),u=o>=n.length;return i=!i&&Q.isArray(r)?r.length:i,u?(Q.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!a):((!r[i]||!Q.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&Q.isArray(r[i])&&(r[i]=Vx(r[i])),!a)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(s,r)=>{t(Nx(s),r,n,0)}),n}return null}const Bx={"Content-Type":void 0};function Hx(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const jl={transitional:ny,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=Q.isObject(t);if(o&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return r&&r?JSON.stringify(sy(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Mx(t,this.formSerializer).toString();if((a=Q.isFileList(t))||s.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ul(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Hx(t)):t}],transformResponse:[function(t){const n=this.transitional||jl.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&Q.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?ot.from(a,ot.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:es.classes.FormData,Blob:es.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Q.forEach(["delete","get","head"],function(t){jl.headers[t]={}});Q.forEach(["post","put","patch"],function(t){jl.headers[t]=Q.merge(Bx)});var Hd=jl;const Ux=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var jx=e=>{const t={};let n,s,r;return e&&e.split(`
|
|
`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Ux[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t};const Xf=Symbol("internals");function go(e){return e&&String(e).trim().toLowerCase()}function Ra(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Ra):String(e)}function qx(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Wx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gu(e,t,n,s,r){if(Q.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!Q.isString(t)){if(Q.isString(s))return t.indexOf(s)!==-1;if(Q.isRegExp(s))return s.test(t)}}function Gx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Kx(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class ql{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(a,u,c){const d=go(u);if(!d)throw new Error("header name must be a non-empty string");const f=Q.findKey(r,d);(!f||r[f]===void 0||c===!0||c===void 0&&r[f]!==!1)&&(r[f||u]=Ra(a))}const i=(a,u)=>Q.forEach(a,(c,d)=>o(c,d,u));return Q.isPlainObject(t)||t instanceof this.constructor?i(t,n):Q.isString(t)&&(t=t.trim())&&!Wx(t)?i(jx(t),n):t!=null&&o(n,t,s),this}get(t,n){if(t=go(t),t){const s=Q.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return qx(r);if(Q.isFunction(n))return n.call(this,r,s);if(Q.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=go(t),t){const s=Q.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||gu(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=go(i),i){const a=Q.findKey(s,i);a&&(!n||gu(s,s[a],a,n))&&(delete s[a],r=!0)}}return Q.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!t||gu(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return Q.forEach(this,(r,o)=>{const i=Q.findKey(s,o);if(i){n[i]=Ra(r),delete n[o];return}const a=t?Gx(o):String(o).trim();a!==o&&delete n[o],n[a]=Ra(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Q.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&Q.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Xf]=this[Xf]={accessors:{}}).accessors,r=this.prototype;function o(i){const a=go(i);s[a]||(Kx(r,i),s[a]=!0)}return Q.isArray(t)?t.forEach(o):o(t),this}}ql.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.freezeMethods(ql.prototype);Q.freezeMethods(ql);var ps=ql;function yu(e,t){const n=this||Hd,s=t||n,r=ps.from(s.headers);let o=s.data;return Q.forEach(e,function(a){o=a.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function ry(e){return!!(e&&e.__CANCEL__)}function ki(e,t,n){ot.call(this,e==null?"canceled":e,ot.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(ki,ot,{__CANCEL__:!0});function Zx(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ot("Request failed with status code "+n.status,[ot.ERR_BAD_REQUEST,ot.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var Yx=es.isStandardBrowserEnv?function(){return{write:function(n,s,r,o,i,a){const u=[];u.push(n+"="+encodeURIComponent(s)),Q.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),Q.isString(o)&&u.push("path="+o),Q.isString(i)&&u.push("domain="+i),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Jx(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xx(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function oy(e,t){return e&&!Jx(t)?Xx(e,t):t}var Qx=es.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(i){const a=Q.isString(i)?r(i):i;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function e2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function t2(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=s[o];i||(i=c),n[r]=u,s[r]=c;let f=o,m=0;for(;f!==r;)m+=n[f++],f=f%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),c-i<t)return;const p=d&&c-d;return p?Math.round(m*1e3/p):void 0}}function Qf(e,t){let n=0;const s=t2(50,250);return r=>{const o=r.loaded,i=r.lengthComputable?r.total:void 0,a=o-n,u=s(a),c=o<=i;n=o;const d={loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:u||void 0,estimated:u&&i&&c?(i-o)/u:void 0,event:r};d[t?"download":"upload"]=!0,e(d)}}const n2=typeof XMLHttpRequest!="undefined";var s2=n2&&function(e){return new Promise(function(n,s){let r=e.data;const o=ps.from(e.headers).normalize(),i=e.responseType;let a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}Q.isFormData(r)&&(es.isStandardBrowserEnv||es.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(p+":"+h))}const d=oy(e.baseURL,e.url);c.open(e.method.toUpperCase(),ty(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const p=ps.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),_={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:p,config:e,request:c};Zx(function(b){n(b),u()},function(b){s(b),u()},_),c=null}if("onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){!c||(s(new ot("Request aborted",ot.ECONNABORTED,e,c)),c=null)},c.onerror=function(){s(new ot("Network Error",ot.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const _=e.transitional||ny;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),s(new ot(h,_.clarifyTimeoutError?ot.ETIMEDOUT:ot.ECONNABORTED,e,c)),c=null},es.isStandardBrowserEnv){const p=(e.withCredentials||Qx(d))&&e.xsrfCookieName&&Yx.read(e.xsrfCookieName);p&&o.set(e.xsrfHeaderName,p)}r===void 0&&o.setContentType(null),"setRequestHeader"in c&&Q.forEach(o.toJSON(),function(h,_){c.setRequestHeader(_,h)}),Q.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Qf(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Qf(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{!c||(s(!p||p.type?new ki(null,e,c):p),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const m=e2(d);if(m&&es.protocols.indexOf(m)===-1){s(new ot("Unsupported protocol "+m+":",ot.ERR_BAD_REQUEST,e));return}c.send(r||null)})};const La={http:Sx,xhr:s2};Q.forEach(La,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var r2={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let r=0;r<t&&(n=e[r],!(s=Q.isString(n)?La[n.toLowerCase()]:n));r++);if(!s)throw s===!1?new ot(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Q.hasOwnProp(La,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!Q.isFunction(s))throw new TypeError("adapter is not a function");return s},adapters:La};function vu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ki(null,e)}function ep(e){return vu(e),e.headers=ps.from(e.headers),e.data=yu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),r2.getAdapter(e.adapter||Hd.adapter)(e).then(function(s){return vu(e),s.data=yu.call(e,e.transformResponse,s),s.headers=ps.from(s.headers),s},function(s){return ry(s)||(vu(e),s&&s.response&&(s.response.data=yu.call(e,e.transformResponse,s.response),s.response.headers=ps.from(s.response.headers))),Promise.reject(s)})}const tp=e=>e instanceof ps?e.toJSON():e;function Jr(e,t){t=t||{};const n={};function s(c,d,f){return Q.isPlainObject(c)&&Q.isPlainObject(d)?Q.merge.call({caseless:f},c,d):Q.isPlainObject(d)?Q.merge({},d):Q.isArray(d)?d.slice():d}function r(c,d,f){if(Q.isUndefined(d)){if(!Q.isUndefined(c))return s(void 0,c,f)}else return s(c,d,f)}function o(c,d){if(!Q.isUndefined(d))return s(void 0,d)}function i(c,d){if(Q.isUndefined(d)){if(!Q.isUndefined(c))return s(void 0,c)}else return s(void 0,d)}function a(c,d,f){if(f in t)return s(c,d);if(f in e)return s(void 0,c)}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,d)=>r(tp(c),tp(d),!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=u[d]||r,m=f(e[d],t[d],d);Q.isUndefined(m)&&f!==a||(n[d]=m)}),n}const iy="1.4.0",Ud={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ud[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const np={};Ud.transitional=function(t,n,s){function r(o,i){return"[Axios v"+iy+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,a)=>{if(t===!1)throw new ot(r(i," has been removed"+(n?" in "+n:"")),ot.ERR_DEPRECATED);return n&&!np[i]&&(np[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};function o2(e,t,n){if(typeof e!="object")throw new ot("options must be an object",ot.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const a=e[o],u=a===void 0||i(a,o,e);if(u!==!0)throw new ot("option "+o+" must be "+u,ot.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ot("Unknown option "+o,ot.ERR_BAD_OPTION)}}var xc={assertOptions:o2,validators:Ud};const xs=xc.validators;class sl{constructor(t){this.defaults=t,this.interceptors={request:new Jf,response:new Jf}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Jr(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&xc.assertOptions(s,{silentJSONParsing:xs.transitional(xs.boolean),forcedJSONParsing:xs.transitional(xs.boolean),clarifyTimeoutError:xs.transitional(xs.boolean)},!1),r!=null&&(Q.isFunction(r)?n.paramsSerializer={serialize:r}:xc.assertOptions(r,{encode:xs.function,serialize:xs.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&Q.merge(o.common,o[n.method]),i&&Q.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=ps.concat(i,o);const a=[];let u=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(u=u&&_.synchronous,a.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let d,f=0,m;if(!u){const h=[ep.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,c),m=h.length,d=Promise.resolve(n);f<m;)d=d.then(h[f++],h[f++]);return d}m=a.length;let p=n;for(f=0;f<m;){const h=a[f++],_=a[f++];try{p=h(p)}catch(w){_.call(this,w);break}}try{d=ep.call(this,p)}catch(h){return Promise.reject(h)}for(f=0,m=c.length;f<m;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=Jr(this.defaults,t);const n=oy(t.baseURL,t.url);return ty(n,t.params,t.paramsSerializer)}}Q.forEach(["delete","get","head","options"],function(t){sl.prototype[t]=function(n,s){return this.request(Jr(s||{},{method:t,url:n,data:(s||{}).data}))}});Q.forEach(["post","put","patch"],function(t){function n(s){return function(o,i,a){return this.request(Jr(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}sl.prototype[t]=n(),sl.prototype[t+"Form"]=n(!0)});var Ma=sl;class jd{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const s=this;this.promise.then(r=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(a=>{s.subscribe(a),o=a}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,a){s.reason||(s.reason=new ki(o,i,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new jd(function(r){t=r}),cancel:t}}}var i2=jd;function a2(e){return function(n){return e.apply(null,n)}}function l2(e){return Q.isObject(e)&&e.isAxiosError===!0}const Ec={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ec).forEach(([e,t])=>{Ec[t]=e});var u2=Ec;function ay(e){const t=new Ma(e),n=Ug(Ma.prototype.request,t);return Q.extend(n,Ma.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return ay(Jr(e,r))},n}const Mt=ay(Hd);Mt.Axios=Ma;Mt.CanceledError=ki;Mt.CancelToken=i2;Mt.isCancel=ry;Mt.VERSION=iy;Mt.toFormData=Ul;Mt.AxiosError=ot;Mt.Cancel=Mt.CanceledError;Mt.all=function(t){return Promise.all(t)};Mt.spread=a2;Mt.isAxiosError=l2;Mt.mergeConfig=Jr;Mt.AxiosHeaders=ps;Mt.formToJSON=e=>sy(Q.isHTMLForm(e)?new FormData(e):e);Mt.HttpStatusCode=u2;Mt.default=Mt;var he=Mt;const{t:Tr}=Fl.global;he.interceptors.response.use(function(e){return e},function(e){return e.request.status&&e.request.responseURL&&Ke.dispatch("add_notification",{text:Tr("server.request-failed",{status:e.request.status,cause:e.request.statusText,url:e.request.responseURL}),type:"danger"}),Promise.reject(e)});var N={config(){return he.get("./api/config")},settings(){return he.get("./api/settings")},settings_update(e,t){return he.put("./api/settings/"+e+"/"+t.name,t)},library_stats(){return he.get("./api/library")},library_update(e){const t={};return e&&(t.scan_kind=e),he.put("./api/update",void 0,{params:t})},library_rescan(e){const t={};return e&&(t.scan_kind=e),he.put("./api/rescan",void 0,{params:t})},library_count(e){return he.get("./api/library/count?expression="+e)},queue(){return he.get("./api/queue")},queue_clear(){return he.put("./api/queue/clear")},queue_remove(e){return he.delete("./api/queue/items/"+e)},queue_move(e,t){return he.put("./api/queue/items/"+e+"?new_position="+t)},queue_add(e){return he.post("./api/queue/items/add?uris="+e).then(t=>(Ke.dispatch("add_notification",{text:Tr("server.appended-tracks",{count:t.data.count}),type:"info",timeout:2e3}),Promise.resolve(t)))},queue_add_next(e){let t=0;return Ke.getters.now_playing&&Ke.getters.now_playing.id&&(t=Ke.getters.now_playing.position+1),he.post("./api/queue/items/add?uris="+e+"&position="+t).then(n=>(Ke.dispatch("add_notification",{text:Tr("server.appended-tracks",{count:n.data.count}),type:"info",timeout:2e3}),Promise.resolve(n)))},queue_expression_add(e){const t={};return t.expression=e,he.post("./api/queue/items/add",void 0,{params:t}).then(n=>(Ke.dispatch("add_notification",{text:Tr("server.appended-tracks",{count:n.data.count}),type:"info",timeout:2e3}),Promise.resolve(n)))},queue_expression_add_next(e){const t={};return t.expression=e,t.position=0,Ke.getters.now_playing&&Ke.getters.now_playing.id&&(t.position=Ke.getters.now_playing.position+1),he.post("./api/queue/items/add",void 0,{params:t}).then(n=>(Ke.dispatch("add_notification",{text:Tr("server.appended-tracks",{count:n.data.count}),type:"info",timeout:2e3}),Promise.resolve(n)))},queue_save_playlist(e){return he.post("./api/queue/save",void 0,{params:{name:e}}).then(t=>(Ke.dispatch("add_notification",{text:Tr("server.queue-saved",{name:e}),type:"info",timeout:2e3}),Promise.resolve(t)))},player_status(){return he.get("./api/player")},player_play_uri(e,t,n=void 0){const s={};return s.uris=e,s.shuffle=t?"true":"false",s.clear="true",s.playback="start",s.playback_from_position=n,he.post("./api/queue/items/add",void 0,{params:s})},player_play_expression(e,t,n=void 0){const s={};return s.expression=e,s.shuffle=t?"true":"false",s.clear="true",s.playback="start",s.playback_from_position=n,he.post("./api/queue/items/add",void 0,{params:s})},player_play(e={}){return he.put("./api/player/play",void 0,{params:e})},player_playpos(e){return he.put("./api/player/play?position="+e)},player_playid(e){return he.put("./api/player/play?item_id="+e)},player_pause(){return he.put("./api/player/pause")},player_stop(){return he.put("./api/player/stop")},player_next(){return he.put("./api/player/next")},player_previous(){return he.put("./api/player/previous")},player_shuffle(e){const t=e?"true":"false";return he.put("./api/player/shuffle?state="+t)},player_consume(e){const t=e?"true":"false";return he.put("./api/player/consume?state="+t)},player_repeat(e){return he.put("./api/player/repeat?state="+e)},player_volume(e){return he.put("./api/player/volume?volume="+e)},player_output_volume(e,t){return he.put("./api/player/volume?volume="+t+"&output_id="+e)},player_seek_to_pos(e){return he.put("./api/player/seek?position_ms="+e)},player_seek(e){return he.put("./api/player/seek?seek_ms="+e)},outputs(){return he.get("./api/outputs")},output_update(e,t){return he.put("./api/outputs/"+e,t)},output_toggle(e){return he.put("./api/outputs/"+e+"/toggle")},library_artists(e=void 0){return he.get("./api/library/artists",{params:{media_kind:e}})},library_artist(e){return he.get("./api/library/artists/"+e)},library_artist_albums(e){return he.get("./api/library/artists/"+e+"/albums")},library_albums(e=void 0){return he.get("./api/library/albums",{params:{media_kind:e}})},library_album(e){return he.get("./api/library/albums/"+e)},library_album_tracks(e,t={limit:-1,offset:0}){return he.get("./api/library/albums/"+e+"/tracks",{params:t})},library_album_track_update(e,t){return he.put("./api/library/albums/"+e+"/tracks",void 0,{params:t})},library_genres(e=void 0){return he.get("./api/library/genres",{params:{media_kind:e}})},library_genre(e){return he.get(`./api/library/genres/${encodeURIComponent(e)}`)},library_genre_albums(e){const t={type:"albums",expression:`genre is "${e}" and media_kind is music`};return he.get("./api/search",{params:t})},library_genre_tracks(e){const t={type:"tracks",expression:`genre is "${e}" and media_kind is music`};return he.get("./api/search",{params:t})},library_radio_streams(){const e={type:"tracks",media_kind:"music",expression:"data_kind is url and song_length = 0"};return he.get("./api/search",{params:e})},library_composers(e=void 0){return he.get("./api/library/composers",{params:{media_kind:e}})},library_composer(e){return he.get(`./api/library/composers/${encodeURIComponent(e)}`)},library_composer_albums(e){const t={type:"albums",expression:`composer is "${e}" and media_kind is music`};return he.get("./api/search",{params:t})},library_composer_tracks(e){const t={type:"tracks",expression:`composer is "${e}" and media_kind is music`};return he.get("./api/search",{params:t})},library_artist_tracks(e){if(e){const t={type:"tracks",expression:'songartistid is "'+e+'"'};return he.get("./api/search",{params:t})}},library_podcasts_new_episodes(){const e={type:"tracks",expression:"media_kind is podcast and play_count = 0 ORDER BY time_added DESC"};return he.get("./api/search",{params:e})},library_podcast_episodes(e){const t={type:"tracks",expression:'media_kind is podcast and songalbumid is "'+e+'" ORDER BY date_released DESC'};return he.get("./api/search",{params:t})},library_add(e){return he.post("./api/library/add",void 0,{params:{url:e}})},library_playlist_delete(e){return he.delete("./api/library/playlists/"+e,void 0)},library_playlists(){return he.get("./api/library/playlists")},library_playlist_folder(e=0){return he.get("./api/library/playlists/"+e+"/playlists")},library_playlist(e){return he.get("./api/library/playlists/"+e)},library_playlist_tracks(e){return he.get("./api/library/playlists/"+e+"/tracks")},library_track(e){return he.get("./api/library/tracks/"+e)},library_track_playlists(e){return he.get("./api/library/tracks/"+e+"/playlists")},library_track_update(e,t={}){return he.put("./api/library/tracks/"+e,void 0,{params:t})},library_files(e=void 0){const t={directory:e};return he.get("./api/library/files",{params:t})},search(e){return he.get("./api/search",{params:e})},spotify(){return he.get("./api/spotify")},spotify_login(e){return he.post("./api/spotify-login",e)},spotify_logout(){return he.get("./api/spotify-logout")},lastfm(){return he.get("./api/lastfm")},lastfm_login(e){return he.post("./api/lastfm-login",e)},lastfm_logout(e){return he.get("./api/lastfm-logout")},pairing(){return he.get("./api/pairing")},pairing_kickoff(e){return he.post("./api/pairing",e)},artwork_url_append_size_params(e,t=600,n=600){return e&&e.startsWith("/")?e.includes("?")?e+"&maxwidth="+t+"&maxheight="+n:e+"?maxwidth="+t+"&maxheight="+n:e}};const c2={name:"ListItemQueueItem",props:["item","position","current_position","show_only_next_items","edit_mode"],computed:{state(){return this.$store.state.player},is_next(){return this.current_position<0||this.position>=this.current_position}},methods:{play(){N.player_play({item_id:this.item.id})}}},d2={key:0,class:"media"},m2={key:0,class:"media-left"},f2={class:"icon has-text-grey fd-is-movable handle"},p2=["textContent"],h2=["textContent"],_2=["textContent"],g2={class:"media-right"};function y2(e,t,n,s,r,o){const i=$("mdicon");return o.is_next||!n.show_only_next_items?(z(),S("div",d2,[n.edit_mode?(z(),S("div",m2,[l("span",f2,[v(i,{name:"drag-horizontal",size:"16"})])])):H("",!0),l("div",{class:"media-content is-clickable is-clipped",onClick:t[0]||(t[0]=(...a)=>o.play&&o.play(...a))},[l("h1",{class:Ae(["title is-6",{"has-text-primary":n.item.id===o.state.item_id,"has-text-grey-light":!o.is_next}]),textContent:g(n.item.title)},null,10,p2),l("h2",{class:Ae(["subtitle is-7",{"has-text-primary":n.item.id===o.state.item_id,"has-text-grey-light":!o.is_next,"has-text-grey":o.is_next&&n.item.id!==o.state.item_id}])},[l("b",{textContent:g(n.item.artist)},null,8,h2)],2),l("h2",{class:Ae(["subtitle is-7",{"has-text-primary":n.item.id===o.state.item_id,"has-text-grey-light":!o.is_next,"has-text-grey":o.is_next&&n.item.id!==o.state.item_id}]),textContent:g(n.item.album)},null,10,_2)]),l("div",g2,[ut(e.$slots,"actions")])])):H("",!0)}var v2=re(c2,[["render",y2]]),Qt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ly(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uy(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t}var cy={exports:{}};(function(e){var t=function(){var n="https://api.spotify.com/v1",s=null,r=null,o=function(m,p){return m.abort=p,m},i=function(m,p){var h;if(r!==null){var _=r.defer();m(function(w){_.resolve(w)},function(w){_.reject(w)}),h=_.promise}else window.Promise&&(h=new window.Promise(m));return h?new o(h,p):null},a=function(){var m=Array.prototype.slice.call(arguments),p=m[0],h=m.slice(1);return p=p||{},h.forEach(function(_){for(var w in _)_.hasOwnProperty(w)&&(p[w]=_[w])}),p},u=function(m,p){var h="";for(var _ in p)if(p.hasOwnProperty(_)){var w=p[_];h+=encodeURIComponent(_)+"="+encodeURIComponent(w)+"&"}return h.length>0&&(h=h.substring(0,h.length-1),m=m+"?"+h),m},c=function(m,p){var h=new XMLHttpRequest,_=function(w,b){function y(T){w&&w(T),p&&p(null,T)}function k(){b&&b(h),p&&p(h,null)}var C=m.type||"GET";if(h.open(C,u(m.url,m.params)),s&&h.setRequestHeader("Authorization","Bearer "+s),h.onreadystatechange=function(){if(h.readyState===4){var T=null;try{T=h.responseText?JSON.parse(h.responseText):""}catch(L){console.error(L)}h.status>=200&&h.status<300?y(T):k()}},C==="GET")h.send(null);else{var x=null;m.postData&&(m.contentType==="image/jpeg"?(x=m.postData,h.setRequestHeader("Content-Type",m.contentType)):(x=JSON.stringify(m.postData),h.setRequestHeader("Content-Type","application/json"))),h.send(x)}};return p?(_(),null):i(_,function(){h.abort()})},d=function(m,p,h,_){var w={},b=null;typeof p=="object"?(w=p,b=h):typeof p=="function"&&(b=p);var y=m.type||"GET";return y!=="GET"&&m.postData&&!_?m.postData=a(m.postData,w):m.params=a(m.params,w),c(m,b)},f=function(){};return f.prototype={constructor:t},f.prototype.getGeneric=function(m,p){var h={url:m};return d(h,p)},f.prototype.getMe=function(m,p){var h={url:n+"/me"};return d(h,m,p)},f.prototype.getMySavedTracks=function(m,p){var h={url:n+"/me/tracks"};return d(h,m,p)},f.prototype.addToMySavedTracks=function(m,p,h){var _={url:n+"/me/tracks",type:"PUT",postData:m};return d(_,p,h)},f.prototype.removeFromMySavedTracks=function(m,p,h){var _={url:n+"/me/tracks",type:"DELETE",postData:m};return d(_,p,h)},f.prototype.containsMySavedTracks=function(m,p,h){var _={url:n+"/me/tracks/contains",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getMySavedAlbums=function(m,p){var h={url:n+"/me/albums"};return d(h,m,p)},f.prototype.addToMySavedAlbums=function(m,p,h){var _={url:n+"/me/albums",type:"PUT",postData:m};return d(_,p,h)},f.prototype.removeFromMySavedAlbums=function(m,p,h){var _={url:n+"/me/albums",type:"DELETE",postData:m};return d(_,p,h)},f.prototype.containsMySavedAlbums=function(m,p,h){var _={url:n+"/me/albums/contains",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getMyTopArtists=function(m,p){var h={url:n+"/me/top/artists"};return d(h,m,p)},f.prototype.getMyTopTracks=function(m,p){var h={url:n+"/me/top/tracks"};return d(h,m,p)},f.prototype.getMyRecentlyPlayedTracks=function(m,p){var h={url:n+"/me/player/recently-played"};return d(h,m,p)},f.prototype.followUsers=function(m,p){var h={url:n+"/me/following/",type:"PUT",params:{ids:m.join(","),type:"user"}};return d(h,p)},f.prototype.followArtists=function(m,p){var h={url:n+"/me/following/",type:"PUT",params:{ids:m.join(","),type:"artist"}};return d(h,p)},f.prototype.followPlaylist=function(m,p,h){var _={url:n+"/playlists/"+m+"/followers",type:"PUT",postData:{}};return d(_,p,h)},f.prototype.unfollowUsers=function(m,p){var h={url:n+"/me/following/",type:"DELETE",params:{ids:m.join(","),type:"user"}};return d(h,p)},f.prototype.unfollowArtists=function(m,p){var h={url:n+"/me/following/",type:"DELETE",params:{ids:m.join(","),type:"artist"}};return d(h,p)},f.prototype.unfollowPlaylist=function(m,p){var h={url:n+"/playlists/"+m+"/followers",type:"DELETE"};return d(h,p)},f.prototype.isFollowingUsers=function(m,p){var h={url:n+"/me/following/contains",type:"GET",params:{ids:m.join(","),type:"user"}};return d(h,p)},f.prototype.isFollowingArtists=function(m,p){var h={url:n+"/me/following/contains",type:"GET",params:{ids:m.join(","),type:"artist"}};return d(h,p)},f.prototype.areFollowingPlaylist=function(m,p,h){var _={url:n+"/playlists/"+m+"/followers/contains",type:"GET",params:{ids:p.join(",")}};return d(_,h)},f.prototype.getFollowedArtists=function(m,p){var h={url:n+"/me/following",type:"GET",params:{type:"artist"}};return d(h,m,p)},f.prototype.getUser=function(m,p,h){var _={url:n+"/users/"+encodeURIComponent(m)};return d(_,p,h)},f.prototype.getUserPlaylists=function(m,p,h){var _;return typeof m=="string"?_={url:n+"/users/"+encodeURIComponent(m)+"/playlists"}:(_={url:n+"/me/playlists"},h=p,p=m),d(_,p,h)},f.prototype.getPlaylist=function(m,p,h){var _={url:n+"/playlists/"+m};return d(_,p,h)},f.prototype.getPlaylistTracks=function(m,p,h){var _={url:n+"/playlists/"+m+"/tracks"};return d(_,p,h)},f.prototype.getPlaylistCoverImage=function(m,p){var h={url:n+"/playlists/"+m+"/images"};return d(h,p)},f.prototype.createPlaylist=function(m,p,h){var _={url:n+"/users/"+encodeURIComponent(m)+"/playlists",type:"POST",postData:p};return d(_,p,h)},f.prototype.changePlaylistDetails=function(m,p,h){var _={url:n+"/playlists/"+m,type:"PUT",postData:p};return d(_,p,h)},f.prototype.addTracksToPlaylist=function(m,p,h,_){var w={url:n+"/playlists/"+m+"/tracks",type:"POST",postData:{uris:p}};return d(w,h,_,!0)},f.prototype.replaceTracksInPlaylist=function(m,p,h){var _={url:n+"/playlists/"+m+"/tracks",type:"PUT",postData:{uris:p}};return d(_,{},h)},f.prototype.reorderTracksInPlaylist=function(m,p,h,_,w){var b={url:n+"/playlists/"+m+"/tracks",type:"PUT",postData:{range_start:p,insert_before:h}};return d(b,_,w)},f.prototype.removeTracksFromPlaylist=function(m,p,h){var _=p.map(function(b){return typeof b=="string"?{uri:b}:b}),w={url:n+"/playlists/"+m+"/tracks",type:"DELETE",postData:{tracks:_}};return d(w,{},h)},f.prototype.removeTracksFromPlaylistWithSnapshotId=function(m,p,h,_){var w=p.map(function(y){return typeof y=="string"?{uri:y}:y}),b={url:n+"/playlists/"+m+"/tracks",type:"DELETE",postData:{tracks:w,snapshot_id:h}};return d(b,{},_)},f.prototype.removeTracksFromPlaylistInPositions=function(m,p,h,_){var w={url:n+"/playlists/"+m+"/tracks",type:"DELETE",postData:{positions:p,snapshot_id:h}};return d(w,{},_)},f.prototype.uploadCustomPlaylistCoverImage=function(m,p,h){var _={url:n+"/playlists/"+m+"/images",type:"PUT",postData:p.replace(/^data:image\/jpeg;base64,/,""),contentType:"image/jpeg"};return d(_,{},h)},f.prototype.getAlbum=function(m,p,h){var _={url:n+"/albums/"+m};return d(_,p,h)},f.prototype.getAlbumTracks=function(m,p,h){var _={url:n+"/albums/"+m+"/tracks"};return d(_,p,h)},f.prototype.getAlbums=function(m,p,h){var _={url:n+"/albums/",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getTrack=function(m,p,h){var _={};return _.url=n+"/tracks/"+m,d(_,p,h)},f.prototype.getTracks=function(m,p,h){var _={url:n+"/tracks/",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getArtist=function(m,p,h){var _={url:n+"/artists/"+m};return d(_,p,h)},f.prototype.getArtists=function(m,p,h){var _={url:n+"/artists/",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getArtistAlbums=function(m,p,h){var _={url:n+"/artists/"+m+"/albums"};return d(_,p,h)},f.prototype.getArtistTopTracks=function(m,p,h,_){var w={url:n+"/artists/"+m+"/top-tracks",params:{country:p}};return d(w,h,_)},f.prototype.getArtistRelatedArtists=function(m,p,h){var _={url:n+"/artists/"+m+"/related-artists"};return d(_,p,h)},f.prototype.getFeaturedPlaylists=function(m,p){var h={url:n+"/browse/featured-playlists"};return d(h,m,p)},f.prototype.getNewReleases=function(m,p){var h={url:n+"/browse/new-releases"};return d(h,m,p)},f.prototype.getCategories=function(m,p){var h={url:n+"/browse/categories"};return d(h,m,p)},f.prototype.getCategory=function(m,p,h){var _={url:n+"/browse/categories/"+m};return d(_,p,h)},f.prototype.getCategoryPlaylists=function(m,p,h){var _={url:n+"/browse/categories/"+m+"/playlists"};return d(_,p,h)},f.prototype.search=function(m,p,h,_){var w={url:n+"/search/",params:{q:m,type:p.join(",")}};return d(w,h,_)},f.prototype.searchAlbums=function(m,p,h){return this.search(m,["album"],p,h)},f.prototype.searchArtists=function(m,p,h){return this.search(m,["artist"],p,h)},f.prototype.searchTracks=function(m,p,h){return this.search(m,["track"],p,h)},f.prototype.searchPlaylists=function(m,p,h){return this.search(m,["playlist"],p,h)},f.prototype.searchShows=function(m,p,h){return this.search(m,["show"],p,h)},f.prototype.searchEpisodes=function(m,p,h){return this.search(m,["episode"],p,h)},f.prototype.getAudioFeaturesForTrack=function(m,p){var h={};return h.url=n+"/audio-features/"+m,d(h,{},p)},f.prototype.getAudioFeaturesForTracks=function(m,p){var h={url:n+"/audio-features",params:{ids:m}};return d(h,{},p)},f.prototype.getAudioAnalysisForTrack=function(m,p){var h={};return h.url=n+"/audio-analysis/"+m,d(h,{},p)},f.prototype.getRecommendations=function(m,p){var h={url:n+"/recommendations"};return d(h,m,p)},f.prototype.getAvailableGenreSeeds=function(m){var p={url:n+"/recommendations/available-genre-seeds"};return d(p,{},m)},f.prototype.getMyDevices=function(m){var p={url:n+"/me/player/devices"};return d(p,{},m)},f.prototype.getMyCurrentPlaybackState=function(m,p){var h={url:n+"/me/player"};return d(h,m,p)},f.prototype.getMyCurrentPlayingTrack=function(m,p){var h={url:n+"/me/player/currently-playing"};return d(h,m,p)},f.prototype.transferMyPlayback=function(m,p,h){var _=p||{};_.device_ids=m;var w={type:"PUT",url:n+"/me/player",postData:_};return d(w,p,h)},f.prototype.play=function(m,p){m=m||{};var h="device_id"in m?{device_id:m.device_id}:null,_={};["context_uri","uris","offset","position_ms"].forEach(function(y){y in m&&(_[y]=m[y])});var w={type:"PUT",url:n+"/me/player/play",params:h,postData:_},b=typeof m=="function"?m:{};return d(w,b,p)},f.prototype.queue=function(m,p,h){p=p||{};var _="device_id"in p?{uri:m,device_id:p.device_id}:{uri:m},w={type:"POST",url:n+"/me/player/queue",params:_};return d(w,p,h)},f.prototype.pause=function(m,p){m=m||{};var h="device_id"in m?{device_id:m.device_id}:null,_={type:"PUT",url:n+"/me/player/pause",params:h};return d(_,m,p)},f.prototype.skipToNext=function(m,p){m=m||{};var h="device_id"in m?{device_id:m.device_id}:null,_={type:"POST",url:n+"/me/player/next",params:h};return d(_,m,p)},f.prototype.skipToPrevious=function(m,p){m=m||{};var h="device_id"in m?{device_id:m.device_id}:null,_={type:"POST",url:n+"/me/player/previous",params:h};return d(_,m,p)},f.prototype.seek=function(m,p,h){p=p||{};var _={position_ms:m};"device_id"in p&&(_.device_id=p.device_id);var w={type:"PUT",url:n+"/me/player/seek",params:_};return d(w,p,h)},f.prototype.setRepeat=function(m,p,h){p=p||{};var _={state:m};"device_id"in p&&(_.device_id=p.device_id);var w={type:"PUT",url:n+"/me/player/repeat",params:_};return d(w,p,h)},f.prototype.setVolume=function(m,p,h){p=p||{};var _={volume_percent:m};"device_id"in p&&(_.device_id=p.device_id);var w={type:"PUT",url:n+"/me/player/volume",params:_};return d(w,p,h)},f.prototype.setShuffle=function(m,p,h){p=p||{};var _={state:m};"device_id"in p&&(_.device_id=p.device_id);var w={type:"PUT",url:n+"/me/player/shuffle",params:_};return d(w,p,h)},f.prototype.getShow=function(m,p,h){var _={};return _.url=n+"/shows/"+m,d(_,p,h)},f.prototype.getShows=function(m,p,h){var _={url:n+"/shows/",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getMySavedShows=function(m,p){var h={url:n+"/me/shows"};return d(h,m,p)},f.prototype.addToMySavedShows=function(m,p,h){var _={url:n+"/me/shows",type:"PUT",postData:m};return d(_,p,h)},f.prototype.removeFromMySavedShows=function(m,p,h){var _={url:n+"/me/shows",type:"DELETE",postData:m};return d(_,p,h)},f.prototype.containsMySavedShows=function(m,p,h){var _={url:n+"/me/shows/contains",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getShowEpisodes=function(m,p,h){var _={url:n+"/shows/"+m+"/episodes"};return d(_,p,h)},f.prototype.getEpisode=function(m,p,h){var _={};return _.url=n+"/episodes/"+m,d(_,p,h)},f.prototype.getEpisodes=function(m,p,h){var _={url:n+"/episodes/",params:{ids:m.join(",")}};return d(_,p,h)},f.prototype.getAccessToken=function(){return s},f.prototype.setAccessToken=function(m){s=m},f.prototype.setPromiseImplementation=function(m){var p=!1;try{var h=new m(function(_){_()});typeof h.then=="function"&&typeof h.catch=="function"&&(p=!0)}catch(_){console.error(_)}if(p)r=m;else throw new Error("Unsupported implementation of Promises/A+")},f}();e.exports=t})(cy);var Wn=cy.exports;const b2={name:"ModalDialogQueueItem",props:["show","item"],emits:["close"],data(){return{spotify_track:{}}},watch:{item(){if(this.item&&this.item.data_kind==="spotify"){const e=new Wn;e.setAccessToken(this.$store.state.spotify.webapi_token),e.getTrack(this.item.path.slice(this.item.path.lastIndexOf(":")+1)).then(t=>{this.spotify_track=t})}else this.spotify_track={}}},methods:{remove(){this.$emit("close"),N.queue_remove(this.item.id)},play(){this.$emit("close"),N.player_play({item_id:this.item.id})},open_album(){this.media_kind==="podcast"?this.$router.push({path:"/podcasts/"+this.item.album_id}):this.media_kind==="audiobook"?this.$router.push({path:"/audiobooks/"+this.item.album_id}):this.$router.push({path:"/music/albums/"+this.item.album_id})},open_album_artist(){this.$router.push({path:"/music/artists/"+this.item.album_artist_id})},open_genre(){this.$router.push({name:"Genre",params:{genre:this.item.genre}})},open_spotify_artist(){this.$emit("close"),this.$router.push({path:"/music/spotify/artists/"+this.spotify_track.artists[0].id})},open_spotify_album(){this.$emit("close"),this.$router.push({path:"/music/spotify/albums/"+this.spotify_track.album.id})}}},C2={key:0,class:"modal is-active"},w2={class:"modal-content fd-modal-card"},z2={class:"card"},k2={class:"card-content"},x2=["textContent"],E2=["textContent"],$2={class:"content is-small"},S2=["textContent"],A2=["textContent"],T2=["textContent"],O2={key:0},D2=["textContent"],P2=["textContent"],I2=["textContent"],F2={key:1},R2=["textContent"],L2=["textContent"],M2={key:2},N2=["textContent"],V2=["textContent"],B2={key:3},H2=["textContent"],U2=["textContent"],j2=["textContent"],q2=["textContent"],W2=["textContent"],G2=["textContent"],K2=["textContent"],Z2=["textContent"],Y2=["textContent"],J2={class:"title is-6"},X2=["textContent"],Q2={key:0,class:"has-text-weight-normal"},eE=["textContent"],tE=["textContent"],nE=["textContent"],sE={class:"title is-6"},rE=["textContent"],oE=["textContent"],iE=["textContent"],aE=["textContent"],lE={class:"card-footer"},uE={class:"icon"},cE=["textContent"],dE={class:"icon"},mE=["textContent"];function fE(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",C2,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",w2,[l("div",z2,[l("div",k2,[l("p",{class:"title is-4",textContent:g(n.item.title)},null,8,x2),l("p",{class:"subtitle",textContent:g(n.item.artist)},null,8,E2),l("div",$2,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.album"))},null,8,S2),n.item.album_id?(z(),S("a",{key:0,class:"title is-6 has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_album&&o.open_album(...a)),textContent:g(n.item.album)},null,8,A2)):(z(),S("span",{key:1,class:"title is-6",textContent:g(n.item.album)},null,8,T2))]),n.item.album_artist?(z(),S("p",O2,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.album-artist"))},null,8,D2),n.item.album_artist_id?(z(),S("a",{key:0,class:"title is-6 has-text-link",onClick:t[2]||(t[2]=(...a)=>o.open_album_artist&&o.open_album_artist(...a)),textContent:g(n.item.album_artist)},null,8,P2)):(z(),S("span",{key:1,class:"title is-6",textContent:g(n.item.album_artist)},null,8,I2))])):H("",!0),n.item.composer?(z(),S("p",F2,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.composer"))},null,8,R2),l("span",{class:"title is-6",textContent:g(n.item.composer)},null,8,L2)])):H("",!0),n.item.year>0?(z(),S("p",M2,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.year"))},null,8,N2),l("span",{class:"title is-6",textContent:g(n.item.year)},null,8,V2)])):H("",!0),n.item.genre?(z(),S("p",B2,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.genre"))},null,8,H2),l("a",{class:"title is-6 has-text-link",onClick:t[3]||(t[3]=(...a)=>o.open_genre&&o.open_genre(...a)),textContent:g(n.item.genre)},null,8,U2)])):H("",!0),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.position"))},null,8,j2),l("span",{class:"title is-6",textContent:g([n.item.disc_number,n.item.track_number].join(" / "))},null,8,q2)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.duration"))},null,8,W2),l("span",{class:"title is-6",textContent:g(e.$filters.durationInHours(n.item.length_ms))},null,8,G2)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.path"))},null,8,K2),l("span",{class:"title is-6",textContent:g(n.item.path)},null,8,Z2)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.type"))},null,8,Y2),l("span",J2,[l("span",{textContent:g([e.$t("media.kind."+n.item.media_kind),e.$t("data.kind."+n.item.data_kind)].join(" - "))},null,8,X2),n.item.data_kind==="spotify"?(z(),S("span",Q2,[mt(" ("),l("a",{onClick:t[4]||(t[4]=(...a)=>o.open_spotify_artist&&o.open_spotify_artist(...a)),textContent:g(e.$t("dialog.queue-item.spotify-artist"))},null,8,eE),mt(", "),l("a",{onClick:t[5]||(t[5]=(...a)=>o.open_spotify_album&&o.open_spotify_album(...a)),textContent:g(e.$t("dialog.queue-item.spotify-album"))},null,8,tE),mt(") ")])):H("",!0)])]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.queue-item.quality"))},null,8,nE),l("span",sE,[l("span",{textContent:g(n.item.type)},null,8,rE),n.item.samplerate?(z(),S("span",{key:0,textContent:g(e.$t("dialog.queue-item.samplerate",{rate:n.item.samplerate}))},null,8,oE)):H("",!0),n.item.channels?(z(),S("span",{key:1,textContent:g(e.$t("dialog.queue-item.channels",{channels:e.$filters.channels(n.item.channels)}))},null,8,iE)):H("",!0),n.item.bitrate?(z(),S("span",{key:2,textContent:g(e.$t("dialog.queue-item.bitrate",{rate:n.item.bitrate}))},null,8,aE)):H("",!0)])])])]),l("footer",lE,[l("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>o.remove&&o.remove(...a))},[l("span",uE,[v(i,{name:"delete",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.queue-item.remove"))},null,8,cE)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...a)=>o.play&&o.play(...a))},[l("span",dE,[v(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.queue-item.play"))},null,8,mE)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var dy=re(b2,[["render",fE]]);const pE={name:"ModalDialogAddUrlStream",props:["show"],emits:["close"],data(){return{url:"",loading:!1}},watch:{show(){this.show&&(this.loading=!1,setTimeout(()=>{this.$refs.url_field.focus()},10))}},methods:{add_stream(){this.loading=!0,N.queue_add(this.url).then(()=>{this.$emit("close"),this.url=""}).catch(()=>{this.loading=!1})},play(){this.loading=!0,N.player_play_uri(this.url,!1).then(()=>{this.$emit("close"),this.url=""}).catch(()=>{this.loading=!1})}}},hE={key:0,class:"modal is-active"},_E={class:"modal-content fd-modal-card"},gE={class:"card"},yE={class:"card-content"},vE=["textContent"],bE={class:"field"},CE={class:"control is-expanded has-icons-left"},wE=["placeholder","disabled"],zE={class:"icon is-left"},kE={key:0,class:"card-footer"},xE={class:"card-footer-item has-text-dark"},EE={class:"icon"},$E=["textContent"],SE={key:1,class:"card-footer"},AE={class:"icon"},TE=["textContent"],OE={class:"icon"},DE=["textContent"],PE={class:"icon"},IE=["textContent"];function FE(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",hE,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",_E,[l("div",gE,[l("div",yE,[l("p",{class:"title is-4",textContent:g(e.$t("dialog.add.stream.title"))},null,8,vE),l("form",{class:"fd-has-margin-bottom",onSubmit:t[2]||(t[2]=it((...a)=>o.play&&o.play(...a),["prevent"]))},[l("div",bE,[l("p",CE,[dt(l("input",{ref:"url_field","onUpdate:modelValue":t[1]||(t[1]=a=>r.url=a),class:"input is-shadowless",type:"text",placeholder:e.$t("dialog.add.stream.placeholder"),disabled:r.loading},null,8,wE),[[It,r.url]]),l("span",zE,[v(i,{name:"web",size:"16"})])])])],32)]),r.loading?(z(),S("footer",kE,[l("a",xE,[l("span",EE,[v(i,{name:"web",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.stream.loading"))},null,8,$E)])])):(z(),S("footer",SE,[l("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[l("span",AE,[v(i,{name:"cancel",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.stream.cancel"))},null,8,TE)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.add_stream&&o.add_stream(...a))},[l("span",OE,[v(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.stream.add"))},null,8,DE)]),l("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[5]||(t[5]=(...a)=>o.play&&o.play(...a))},[l("span",PE,[v(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.stream.play"))},null,8,IE)])]))])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[6]||(t[6]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var RE=re(pE,[["render",FE]]);const LE={name:"ModalDialogPlaylistSave",props:["show"],emits:["close"],data(){return{playlist_name:"",loading:!1}},watch:{show(){this.show&&(this.loading=!1,setTimeout(()=>{this.$refs.playlist_name_field.focus()},10))}},methods:{save(){this.playlist_name.length<1||(this.loading=!0,N.queue_save_playlist(this.playlist_name).then(()=>{this.$emit("close"),this.playlist_name=""}).catch(()=>{this.loading=!1}))}}},ME={key:0,class:"modal is-active"},NE={class:"modal-content fd-modal-card"},VE={class:"card"},BE={class:"card-content"},HE=["textContent"],UE={class:"field"},jE={class:"control is-expanded has-icons-left"},qE=["disabled"],WE={class:"icon is-left"},GE={key:0,class:"card-footer"},KE={class:"card-footer-item has-text-dark"},ZE={class:"icon"},YE=["textContent"],JE={key:1,class:"card-footer"},XE={class:"icon"},QE=["textContent"],e$={class:"icon"},t$=["textContent"];function n$(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",ME,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",NE,[l("div",VE,[l("div",BE,[l("p",{class:"title is-4",textContent:g(e.$t("dialog.playlist.save.title"))},null,8,HE),l("form",{class:"fd-has-margin-bottom",onSubmit:t[2]||(t[2]=it((...a)=>o.save&&o.save(...a),["prevent"]))},[l("div",UE,[l("p",jE,[dt(l("input",{ref:"playlist_name_field","onUpdate:modelValue":t[1]||(t[1]=a=>r.playlist_name=a),class:"input is-shadowless",type:"text",placeholder:"Playlist name",disabled:r.loading},null,8,qE),[[It,r.playlist_name]]),l("span",WE,[v(i,{name:"file-music",size:"16"})])])])],32)]),r.loading?(z(),S("footer",GE,[l("a",KE,[l("span",ZE,[v(i,{name:"web",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.playlist.save.saving"))},null,8,YE)])])):(z(),S("footer",JE,[l("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[l("span",XE,[v(i,{name:"cancel",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.playlist.save.cancel"))},null,8,QE)]),l("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>o.save&&o.save(...a))},[l("span",e$,[v(i,{name:"content-save",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.playlist.save.save"))},null,8,t$)])]))])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var s$=re(LE,[["render",n$]]),my={exports:{}},fy=uy(jC);/**!
|
|
* Sortable 1.14.0
|
|
* @author RubaXa <trash@rubaxa.org>
|
|
* @author owenm <owen23355@gmail.com>
|
|
* @license MIT
|
|
*/function sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,s)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sp(Object(n),!0).forEach(function(s){r$(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function Na(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Na=function(t){return typeof t}:Na=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Na(e)}function r$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function On(){return On=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},On.apply(this,arguments)}function o$(e,t){if(e==null)return{};var n={},s=Object.keys(e),r,o;for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function i$(e,t){if(e==null)return{};var n=o$(e,t),s,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)s=o[r],!(t.indexOf(s)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,s)||(n[s]=e[s]))}return n}function a$(e){return l$(e)||u$(e)||c$(e)||d$()}function l$(e){if(Array.isArray(e))return $c(e)}function u$(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function c$(e,t){if(!!e){if(typeof e=="string")return $c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $c(e,t)}}function $c(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function d$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m$="1.14.0";function hs(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var bs=hs(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),xi=hs(/Edge/i),rp=hs(/firefox/i),Wo=hs(/safari/i)&&!hs(/chrome/i)&&!hs(/android/i),py=hs(/iP(ad|od|hone)/i),f$=hs(/chrome/i)&&hs(/android/i),hy={capture:!1,passive:!1};function Xe(e,t,n){e.addEventListener(t,n,!bs&&hy)}function Ye(e,t,n){e.removeEventListener(t,n,!bs&&hy)}function rl(e,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function p$(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ln(e,t,n,s){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&rl(e,t):rl(e,t))||s&&e===n)return e;if(e===n)break}while(e=p$(e))}return null}var op=/\s+/g;function zt(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var s=(" "+e.className+" ").replace(op," ").replace(" "+t+" "," ");e.className=(s+(n?" "+t:"")).replace(op," ")}}function $e(e,t,n){var s=e&&e.style;if(s){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in s)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),s[t]=n+(typeof n=="string"?"":"px")}}function lr(e,t){var n="";if(typeof e=="string")n=e;else do{var s=$e(e,"transform");s&&s!=="none"&&(n=s+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function _y(e,t,n){if(e){var s=e.getElementsByTagName(t),r=0,o=s.length;if(n)for(;r<o;r++)n(s[r],r);return s}return[]}function ts(){var e=document.scrollingElement;return e||document.documentElement}function Ct(e,t,n,s,r){if(!(!e.getBoundingClientRect&&e!==window)){var o,i,a,u,c,d,f;if(e!==window&&e.parentNode&&e!==ts()?(o=e.getBoundingClientRect(),i=o.top,a=o.left,u=o.bottom,c=o.right,d=o.height,f=o.width):(i=0,a=0,u=window.innerHeight,c=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!bs))do if(r&&r.getBoundingClientRect&&($e(r,"transform")!=="none"||n&&$e(r,"position")!=="static")){var m=r.getBoundingClientRect();i-=m.top+parseInt($e(r,"border-top-width")),a-=m.left+parseInt($e(r,"border-left-width")),u=i+o.height,c=a+o.width;break}while(r=r.parentNode);if(s&&e!==window){var p=lr(r||e),h=p&&p.a,_=p&&p.d;p&&(i/=_,a/=h,f/=h,d/=_,u=i+d,c=a+f)}return{top:i,left:a,bottom:u,right:c,width:f,height:d}}}function ip(e,t,n){for(var s=Rs(e,!0),r=Ct(e)[t];s;){var o=Ct(s)[n],i=void 0;if(n==="top"||n==="left"?i=r>=o:i=r<=o,!i)return s;if(s===ts())break;s=Rs(s,!1)}return!1}function Xr(e,t,n,s){for(var r=0,o=0,i=e.children;o<i.length;){if(i[o].style.display!=="none"&&i[o]!==Le.ghost&&(s||i[o]!==Le.dragged)&&Ln(i[o],n.draggable,e,!1)){if(r===t)return i[o];r++}o++}return null}function qd(e,t){for(var n=e.lastElementChild;n&&(n===Le.ghost||$e(n,"display")==="none"||t&&!rl(n,t));)n=n.previousElementSibling;return n||null}function $t(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Le.clone&&(!t||rl(e,t))&&n++;return n}function ap(e){var t=0,n=0,s=ts();if(e)do{var r=lr(e),o=r.a,i=r.d;t+=e.scrollLeft*o,n+=e.scrollTop*i}while(e!==s&&(e=e.parentNode));return[t,n]}function h$(e,t){for(var n in e)if(!!e.hasOwnProperty(n)){for(var s in t)if(t.hasOwnProperty(s)&&t[s]===e[n][s])return Number(n)}return-1}function Rs(e,t){if(!e||!e.getBoundingClientRect)return ts();var n=e,s=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=$e(n);if(n.clientWidth<n.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return ts();if(s||t)return n;s=!0}}while(n=n.parentNode);return ts()}function _$(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function bu(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Go;function gy(e,t){return function(){if(!Go){var n=arguments,s=this;n.length===1?e.call(s,n[0]):e.apply(s,n),Go=setTimeout(function(){Go=void 0},t)}}}function g$(){clearTimeout(Go),Go=void 0}function yy(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Wd(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function lp(e,t){$e(e,"position","absolute"),$e(e,"top",t.top),$e(e,"left",t.left),$e(e,"width",t.width),$e(e,"height",t.height)}function Cu(e){$e(e,"position",""),$e(e,"top",""),$e(e,"left",""),$e(e,"width",""),$e(e,"height","")}var Gt="Sortable"+new Date().getTime();function y$(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var s=[].slice.call(this.el.children);s.forEach(function(r){if(!($e(r,"display")==="none"||r===Le.ghost)){e.push({target:r,rect:Ct(r)});var o=ss({},e[e.length-1].rect);if(r.thisAnimationDuration){var i=lr(r,!0);i&&(o.top-=i.f,o.left-=i.e)}r.fromRect=o}})}},addAnimationState:function(s){e.push(s)},removeAnimationState:function(s){e.splice(h$(e,{target:s}),1)},animateAll:function(s){var r=this;if(!this.options.animation){clearTimeout(t),typeof s=="function"&&s();return}var o=!1,i=0;e.forEach(function(a){var u=0,c=a.target,d=c.fromRect,f=Ct(c),m=c.prevFromRect,p=c.prevToRect,h=a.rect,_=lr(c,!0);_&&(f.top-=_.f,f.left-=_.e),c.toRect=f,c.thisAnimationDuration&&bu(m,f)&&!bu(d,f)&&(h.top-f.top)/(h.left-f.left)===(d.top-f.top)/(d.left-f.left)&&(u=b$(h,m,p,r.options)),bu(f,d)||(c.prevFromRect=d,c.prevToRect=f,u||(u=r.options.animation),r.animate(c,h,f,u)),u&&(o=!0,i=Math.max(i,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(t),o?t=setTimeout(function(){typeof s=="function"&&s()},i):typeof s=="function"&&s(),e=[]},animate:function(s,r,o,i){if(i){$e(s,"transition",""),$e(s,"transform","");var a=lr(this.el),u=a&&a.a,c=a&&a.d,d=(r.left-o.left)/(u||1),f=(r.top-o.top)/(c||1);s.animatingX=!!d,s.animatingY=!!f,$e(s,"transform","translate3d("+d+"px,"+f+"px,0)"),this.forRepaintDummy=v$(s),$e(s,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),$e(s,"transform","translate3d(0,0,0)"),typeof s.animated=="number"&&clearTimeout(s.animated),s.animated=setTimeout(function(){$e(s,"transition",""),$e(s,"transform",""),s.animated=!1,s.animatingX=!1,s.animatingY=!1},i)}}}}function v$(e){return e.offsetWidth}function b$(e,t,n,s){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*s.animation}var wr=[],wu={initializeByDefault:!0},Ei={mount:function(t){for(var n in wu)wu.hasOwnProperty(n)&&!(n in t)&&(t[n]=wu[n]);wr.forEach(function(s){if(s.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),wr.push(t)},pluginEvent:function(t,n,s){var r=this;this.eventCanceled=!1,s.cancel=function(){r.eventCanceled=!0};var o=t+"Global";wr.forEach(function(i){!n[i.pluginName]||(n[i.pluginName][o]&&n[i.pluginName][o](ss({sortable:n},s)),n.options[i.pluginName]&&n[i.pluginName][t]&&n[i.pluginName][t](ss({sortable:n},s)))})},initializePlugins:function(t,n,s,r){wr.forEach(function(a){var u=a.pluginName;if(!(!t.options[u]&&!a.initializeByDefault)){var c=new a(t,n,t.options);c.sortable=t,c.options=t.options,t[u]=c,On(s,c.defaults)}});for(var o in t.options)if(!!t.options.hasOwnProperty(o)){var i=this.modifyOption(t,o,t.options[o]);typeof i!="undefined"&&(t.options[o]=i)}},getEventProperties:function(t,n){var s={};return wr.forEach(function(r){typeof r.eventProperties=="function"&&On(s,r.eventProperties.call(n[r.pluginName],t))}),s},modifyOption:function(t,n,s){var r;return wr.forEach(function(o){!t[o.pluginName]||o.optionListeners&&typeof o.optionListeners[n]=="function"&&(r=o.optionListeners[n].call(t[o.pluginName],s))}),r}};function To(e){var t=e.sortable,n=e.rootEl,s=e.name,r=e.targetEl,o=e.cloneEl,i=e.toEl,a=e.fromEl,u=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,f=e.newDraggableIndex,m=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[Gt],!!t){var _,w=t.options,b="on"+s.charAt(0).toUpperCase()+s.substr(1);window.CustomEvent&&!bs&&!xi?_=new CustomEvent(s,{bubbles:!0,cancelable:!0}):(_=document.createEvent("Event"),_.initEvent(s,!0,!0)),_.to=i||n,_.from=a||n,_.item=r||n,_.clone=o,_.oldIndex=u,_.newIndex=c,_.oldDraggableIndex=d,_.newDraggableIndex=f,_.originalEvent=m,_.pullMode=p?p.lastPutMode:void 0;var y=ss(ss({},h),Ei.getEventProperties(s,t));for(var k in y)_[k]=y[k];n&&n.dispatchEvent(_),w[b]&&w[b].call(t,_)}}var C$=["evt"],rn=function(t,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=s.evt,o=i$(s,C$);Ei.pluginEvent.bind(Le)(t,n,ss({dragEl:me,parentEl:kt,ghostEl:We,rootEl:bt,nextEl:Qs,lastDownEl:Va,cloneEl:xt,cloneHidden:Is,dragStarted:Oo,putSortable:Ht,activeSortable:Le.active,originalEvent:r,oldIndex:Rr,oldDraggableIndex:Ko,newIndex:pn,newDraggableIndex:Ds,hideGhostForTarget:wy,unhideGhostForTarget:zy,cloneNowHidden:function(){Is=!0},cloneNowShown:function(){Is=!1},dispatchSortableEvent:function(a){Jt({sortable:n,name:a,originalEvent:r})}},o))};function Jt(e){To(ss({putSortable:Ht,cloneEl:xt,targetEl:me,rootEl:bt,oldIndex:Rr,oldDraggableIndex:Ko,newIndex:pn,newDraggableIndex:Ds},e))}var me,kt,We,bt,Qs,Va,xt,Is,Rr,pn,Ko,Ds,qi,Ht,Or=!1,ol=!1,il=[],Ys,Pn,zu,ku,up,cp,Oo,zr,Zo,Yo=!1,Wi=!1,Ba,qt,xu=[],Sc=!1,al=[],Wl=typeof document!="undefined",Gi=py,dp=xi||bs?"cssFloat":"float",w$=Wl&&!f$&&!py&&"draggable"in document.createElement("div"),vy=function(){if(!!Wl){if(bs)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),by=function(t,n){var s=$e(t),r=parseInt(s.width)-parseInt(s.paddingLeft)-parseInt(s.paddingRight)-parseInt(s.borderLeftWidth)-parseInt(s.borderRightWidth),o=Xr(t,0,n),i=Xr(t,1,n),a=o&&$e(o),u=i&&$e(i),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Ct(o).width,d=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Ct(i).width;if(s.display==="flex")return s.flexDirection==="column"||s.flexDirection==="column-reverse"?"vertical":"horizontal";if(s.display==="grid")return s.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var f=a.float==="left"?"left":"right";return i&&(u.clear==="both"||u.clear===f)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=r&&s[dp]==="none"||i&&s[dp]==="none"&&c+d>r)?"vertical":"horizontal"},z$=function(t,n,s){var r=s?t.left:t.top,o=s?t.right:t.bottom,i=s?t.width:t.height,a=s?n.left:n.top,u=s?n.right:n.bottom,c=s?n.width:n.height;return r===a||o===u||r+i/2===a+c/2},k$=function(t,n){var s;return il.some(function(r){var o=r[Gt].options.emptyInsertThreshold;if(!(!o||qd(r))){var i=Ct(r),a=t>=i.left-o&&t<=i.right+o,u=n>=i.top-o&&n<=i.bottom+o;if(a&&u)return s=r}}),s},Cy=function(t){function n(o,i){return function(a,u,c,d){var f=a.options.group.name&&u.options.group.name&&a.options.group.name===u.options.group.name;if(o==null&&(i||f))return!0;if(o==null||o===!1)return!1;if(i&&o==="clone")return o;if(typeof o=="function")return n(o(a,u,c,d),i)(a,u,c,d);var m=(i?a:u).options.group.name;return o===!0||typeof o=="string"&&o===m||o.join&&o.indexOf(m)>-1}}var s={},r=t.group;(!r||Na(r)!="object")&&(r={name:r}),s.name=r.name,s.checkPull=n(r.pull,!0),s.checkPut=n(r.put),s.revertClone=r.revertClone,t.group=s},wy=function(){!vy&&We&&$e(We,"display","none")},zy=function(){!vy&&We&&$e(We,"display","")};Wl&&document.addEventListener("click",function(e){if(ol)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ol=!1,!1},!0);var Js=function(t){if(me){t=t.touches?t.touches[0]:t;var n=k$(t.clientX,t.clientY);if(n){var s={};for(var r in t)t.hasOwnProperty(r)&&(s[r]=t[r]);s.target=s.rootEl=n,s.preventDefault=void 0,s.stopPropagation=void 0,n[Gt]._onDragOver(s)}}},x$=function(t){me&&me.parentNode[Gt]._isOutsideThisEl(t.target)};function Le(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=On({},t),e[Gt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return by(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Le.supportPointer!==!1&&"PointerEvent"in window&&!Wo,emptyInsertThreshold:5};Ei.initializePlugins(this,e,n);for(var s in n)!(s in t)&&(t[s]=n[s]);Cy(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:w$,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Xe(e,"pointerdown",this._onTapStart):(Xe(e,"mousedown",this._onTapStart),Xe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Xe(e,"dragover",this),Xe(e,"dragenter",this)),il.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),On(this,y$())}Le.prototype={constructor:Le,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(zr=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,me):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var n=this,s=this.el,r=this.options,o=r.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,u=(a||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||u,d=r.filter;if(P$(s),!me&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Wo&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Ln(u,r.draggable,s,!1),!(u&&u.animated)&&Va!==u)){if(Rr=$t(u),Ko=$t(u,r.draggable),typeof d=="function"){if(d.call(this,t,u,this)){Jt({sortable:n,rootEl:c,name:"filter",targetEl:u,toEl:s,fromEl:s}),rn("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(f){if(f=Ln(c,f.trim(),s,!1),f)return Jt({sortable:n,rootEl:f,name:"filter",targetEl:u,fromEl:s,toEl:s}),rn("filter",n,{evt:t}),!0}),d)){o&&t.cancelable&&t.preventDefault();return}r.handle&&!Ln(c,r.handle,s,!1)||this._prepareDragStart(t,a,u)}}},_prepareDragStart:function(t,n,s){var r=this,o=r.el,i=r.options,a=o.ownerDocument,u;if(s&&!me&&s.parentNode===o){var c=Ct(s);if(bt=o,me=s,kt=me.parentNode,Qs=me.nextSibling,Va=s,qi=i.group,Le.dragged=me,Ys={target:me,clientX:(n||t).clientX,clientY:(n||t).clientY},up=Ys.clientX-c.left,cp=Ys.clientY-c.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,me.style["will-change"]="all",u=function(){if(rn("delayEnded",r,{evt:t}),Le.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!rp&&r.nativeDraggable&&(me.draggable=!0),r._triggerDragStart(t,n),Jt({sortable:r,name:"choose",originalEvent:t}),zt(me,i.chosenClass,!0)},i.ignore.split(",").forEach(function(d){_y(me,d.trim(),Eu)}),Xe(a,"dragover",Js),Xe(a,"mousemove",Js),Xe(a,"touchmove",Js),Xe(a,"mouseup",r._onDrop),Xe(a,"touchend",r._onDrop),Xe(a,"touchcancel",r._onDrop),rp&&this.nativeDraggable&&(this.options.touchStartThreshold=4,me.draggable=!0),rn("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(xi||bs))){if(Le.eventCanceled){this._onDrop();return}Xe(a,"mouseup",r._disableDelayedDrag),Xe(a,"touchend",r._disableDelayedDrag),Xe(a,"touchcancel",r._disableDelayedDrag),Xe(a,"mousemove",r._delayedDragTouchMoveHandler),Xe(a,"touchmove",r._delayedDragTouchMoveHandler),i.supportPointer&&Xe(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(u,i.delay)}else u()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){me&&Eu(me),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Ye(t,"mouseup",this._disableDelayedDrag),Ye(t,"touchend",this._disableDelayedDrag),Ye(t,"touchcancel",this._disableDelayedDrag),Ye(t,"mousemove",this._delayedDragTouchMoveHandler),Ye(t,"touchmove",this._delayedDragTouchMoveHandler),Ye(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?Xe(document,"pointermove",this._onTouchMove):n?Xe(document,"touchmove",this._onTouchMove):Xe(document,"mousemove",this._onTouchMove):(Xe(me,"dragend",this),Xe(bt,"dragstart",this._onDragStart));try{document.selection?Ha(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Or=!1,bt&&me){rn("dragStarted",this,{evt:n}),this.nativeDraggable&&Xe(document,"dragover",x$);var s=this.options;!t&&zt(me,s.dragClass,!1),zt(me,s.ghostClass,!0),Le.active=this,t&&this._appendGhost(),Jt({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Pn){this._lastX=Pn.clientX,this._lastY=Pn.clientY,wy();for(var t=document.elementFromPoint(Pn.clientX,Pn.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Pn.clientX,Pn.clientY),t!==n);)n=t;if(me.parentNode[Gt]._isOutsideThisEl(t),n)do{if(n[Gt]){var s=void 0;if(s=n[Gt]._onDragOver({clientX:Pn.clientX,clientY:Pn.clientY,target:t,rootEl:n}),s&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);zy()}},_onTouchMove:function(t){if(Ys){var n=this.options,s=n.fallbackTolerance,r=n.fallbackOffset,o=t.touches?t.touches[0]:t,i=We&&lr(We,!0),a=We&&i&&i.a,u=We&&i&&i.d,c=Gi&&qt&&ap(qt),d=(o.clientX-Ys.clientX+r.x)/(a||1)+(c?c[0]-xu[0]:0)/(a||1),f=(o.clientY-Ys.clientY+r.y)/(u||1)+(c?c[1]-xu[1]:0)/(u||1);if(!Le.active&&!Or){if(s&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<s)return;this._onDragStart(t,!0)}if(We){i?(i.e+=d-(zu||0),i.f+=f-(ku||0)):i={a:1,b:0,c:0,d:1,e:d,f};var m="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");$e(We,"webkitTransform",m),$e(We,"mozTransform",m),$e(We,"msTransform",m),$e(We,"transform",m),zu=d,ku=f,Pn=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!We){var t=this.options.fallbackOnBody?document.body:bt,n=Ct(me,!0,Gi,!0,t),s=this.options;if(Gi){for(qt=t;$e(qt,"position")==="static"&&$e(qt,"transform")==="none"&&qt!==document;)qt=qt.parentNode;qt!==document.body&&qt!==document.documentElement?(qt===document&&(qt=ts()),n.top+=qt.scrollTop,n.left+=qt.scrollLeft):qt=ts(),xu=ap(qt)}We=me.cloneNode(!0),zt(We,s.ghostClass,!1),zt(We,s.fallbackClass,!0),zt(We,s.dragClass,!0),$e(We,"transition",""),$e(We,"transform",""),$e(We,"box-sizing","border-box"),$e(We,"margin",0),$e(We,"top",n.top),$e(We,"left",n.left),$e(We,"width",n.width),$e(We,"height",n.height),$e(We,"opacity","0.8"),$e(We,"position",Gi?"absolute":"fixed"),$e(We,"zIndex","100000"),$e(We,"pointerEvents","none"),Le.ghost=We,t.appendChild(We),$e(We,"transform-origin",up/parseInt(We.style.width)*100+"% "+cp/parseInt(We.style.height)*100+"%")}},_onDragStart:function(t,n){var s=this,r=t.dataTransfer,o=s.options;if(rn("dragStart",this,{evt:t}),Le.eventCanceled){this._onDrop();return}rn("setupClone",this),Le.eventCanceled||(xt=Wd(me),xt.draggable=!1,xt.style["will-change"]="",this._hideClone(),zt(xt,this.options.chosenClass,!1),Le.clone=xt),s.cloneId=Ha(function(){rn("clone",s),!Le.eventCanceled&&(s.options.removeCloneOnHide||bt.insertBefore(xt,me),s._hideClone(),Jt({sortable:s,name:"clone"}))}),!n&&zt(me,o.dragClass,!0),n?(ol=!0,s._loopId=setInterval(s._emulateDragOver,50)):(Ye(document,"mouseup",s._onDrop),Ye(document,"touchend",s._onDrop),Ye(document,"touchcancel",s._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(s,r,me)),Xe(document,"drop",s),$e(me,"transform","translateZ(0)")),Or=!0,s._dragStartId=Ha(s._dragStarted.bind(s,n,t)),Xe(document,"selectstart",s),Oo=!0,Wo&&$e(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,s=t.target,r,o,i,a=this.options,u=a.group,c=Le.active,d=qi===u,f=a.sort,m=Ht||c,p,h=this,_=!1;if(Sc)return;function w(ye,je){rn(ye,h,ss({evt:t,isOwner:d,axis:p?"vertical":"horizontal",revert:i,dragRect:r,targetRect:o,canSort:f,fromSortable:m,target:s,completed:y,onMove:function(ce,W){return Ki(bt,n,me,r,ce,Ct(ce),t,W)},changed:k},je))}function b(){w("dragOverAnimationCapture"),h.captureAnimationState(),h!==m&&m.captureAnimationState()}function y(ye){return w("dragOverCompleted",{insertion:ye}),ye&&(d?c._hideClone():c._showClone(h),h!==m&&(zt(me,Ht?Ht.options.ghostClass:c.options.ghostClass,!1),zt(me,a.ghostClass,!0)),Ht!==h&&h!==Le.active?Ht=h:h===Le.active&&Ht&&(Ht=null),m===h&&(h._ignoreWhileAnimating=s),h.animateAll(function(){w("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(s===me&&!me.animated||s===n&&!s.animated)&&(zr=null),!a.dragoverBubble&&!t.rootEl&&s!==document&&(me.parentNode[Gt]._isOutsideThisEl(t.target),!ye&&Js(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),_=!0}function k(){pn=$t(me),Ds=$t(me,a.draggable),Jt({sortable:h,name:"change",toEl:n,newIndex:pn,newDraggableIndex:Ds,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),s=Ln(s,a.draggable,n,!0),w("dragOver"),Le.eventCanceled)return _;if(me.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||h._ignoreWhileAnimating===s)return y(!1);if(ol=!1,c&&!a.disabled&&(d?f||(i=kt!==bt):Ht===this||(this.lastPutMode=qi.checkPull(this,c,me,t))&&u.checkPut(this,c,me,t))){if(p=this._getDirection(t,s)==="vertical",r=Ct(me),w("dragOverValid"),Le.eventCanceled)return _;if(i)return kt=bt,b(),this._hideClone(),w("revert"),Le.eventCanceled||(Qs?bt.insertBefore(me,Qs):bt.appendChild(me)),y(!0);var C=qd(n,a.draggable);if(!C||A$(t,p,this)&&!C.animated){if(C===me)return y(!1);if(C&&n===t.target&&(s=C),s&&(o=Ct(s)),Ki(bt,n,me,r,s,o,t,!!s)!==!1)return b(),n.appendChild(me),kt=n,k(),y(!0)}else if(C&&S$(t,p,this)){var x=Xr(n,0,a,!0);if(x===me)return y(!1);if(s=x,o=Ct(s),Ki(bt,n,me,r,s,o,t,!1)!==!1)return b(),n.insertBefore(me,x),kt=n,k(),y(!0)}else if(s.parentNode===n){o=Ct(s);var T=0,L,I=me.parentNode!==n,D=!z$(me.animated&&me.toRect||r,s.animated&&s.toRect||o,p),j=p?"top":"left",Z=ip(s,"top","top")||ip(me,"top","top"),X=Z?Z.scrollTop:void 0;zr!==s&&(L=o[j],Yo=!1,Wi=!D&&a.invertSwap||I),T=T$(t,s,o,p,D?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Wi,zr===s);var U;if(T!==0){var q=$t(me);do q-=T,U=kt.children[q];while(U&&($e(U,"display")==="none"||U===We))}if(T===0||U===s)return y(!1);zr=s,Zo=T;var Ce=s.nextElementSibling,te=!1;te=T===1;var ie=Ki(bt,n,me,r,s,o,t,te);if(ie!==!1)return(ie===1||ie===-1)&&(te=ie===1),Sc=!0,setTimeout($$,30),b(),te&&!Ce?n.appendChild(me):s.parentNode.insertBefore(me,te?Ce:s),Z&&yy(Z,0,X-Z.scrollTop),kt=me.parentNode,L!==void 0&&!Wi&&(Ba=Math.abs(L-Ct(s)[j])),k(),y(!0)}if(n.contains(me))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ye(document,"mousemove",this._onTouchMove),Ye(document,"touchmove",this._onTouchMove),Ye(document,"pointermove",this._onTouchMove),Ye(document,"dragover",Js),Ye(document,"mousemove",Js),Ye(document,"touchmove",Js)},_offUpEvents:function(){var t=this.el.ownerDocument;Ye(t,"mouseup",this._onDrop),Ye(t,"touchend",this._onDrop),Ye(t,"pointerup",this._onDrop),Ye(t,"touchcancel",this._onDrop),Ye(document,"selectstart",this)},_onDrop:function(t){var n=this.el,s=this.options;if(pn=$t(me),Ds=$t(me,s.draggable),rn("drop",this,{evt:t}),kt=me&&me.parentNode,pn=$t(me),Ds=$t(me,s.draggable),Le.eventCanceled){this._nulling();return}Or=!1,Wi=!1,Yo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ac(this.cloneId),Ac(this._dragStartId),this.nativeDraggable&&(Ye(document,"drop",this),Ye(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Wo&&$e(document.body,"user-select",""),$e(me,"transform",""),t&&(Oo&&(t.cancelable&&t.preventDefault(),!s.dropBubble&&t.stopPropagation()),We&&We.parentNode&&We.parentNode.removeChild(We),(bt===kt||Ht&&Ht.lastPutMode!=="clone")&&xt&&xt.parentNode&&xt.parentNode.removeChild(xt),me&&(this.nativeDraggable&&Ye(me,"dragend",this),Eu(me),me.style["will-change"]="",Oo&&!Or&&zt(me,Ht?Ht.options.ghostClass:this.options.ghostClass,!1),zt(me,this.options.chosenClass,!1),Jt({sortable:this,name:"unchoose",toEl:kt,newIndex:null,newDraggableIndex:null,originalEvent:t}),bt!==kt?(pn>=0&&(Jt({rootEl:kt,name:"add",toEl:kt,fromEl:bt,originalEvent:t}),Jt({sortable:this,name:"remove",toEl:kt,originalEvent:t}),Jt({rootEl:kt,name:"sort",toEl:kt,fromEl:bt,originalEvent:t}),Jt({sortable:this,name:"sort",toEl:kt,originalEvent:t})),Ht&&Ht.save()):pn!==Rr&&pn>=0&&(Jt({sortable:this,name:"update",toEl:kt,originalEvent:t}),Jt({sortable:this,name:"sort",toEl:kt,originalEvent:t})),Le.active&&((pn==null||pn===-1)&&(pn=Rr,Ds=Ko),Jt({sortable:this,name:"end",toEl:kt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){rn("nulling",this),bt=me=kt=We=Qs=xt=Va=Is=Ys=Pn=Oo=pn=Ds=Rr=Ko=zr=Zo=Ht=qi=Le.dragged=Le.ghost=Le.clone=Le.active=null,al.forEach(function(t){t.checked=!0}),al.length=zu=ku=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":me&&(this._onDragOver(t),E$(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,s=this.el.children,r=0,o=s.length,i=this.options;r<o;r++)n=s[r],Ln(n,i.draggable,this.el,!1)&&t.push(n.getAttribute(i.dataIdAttr)||D$(n));return t},sort:function(t,n){var s={},r=this.el;this.toArray().forEach(function(o,i){var a=r.children[i];Ln(a,this.options.draggable,r,!1)&&(s[o]=a)},this),n&&this.captureAnimationState(),t.forEach(function(o){s[o]&&(r.removeChild(s[o]),r.appendChild(s[o]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Ln(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var s=this.options;if(n===void 0)return s[t];var r=Ei.modifyOption(this,t,n);typeof r!="undefined"?s[t]=r:s[t]=n,t==="group"&&Cy(s)},destroy:function(){rn("destroy",this);var t=this.el;t[Gt]=null,Ye(t,"mousedown",this._onTapStart),Ye(t,"touchstart",this._onTapStart),Ye(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ye(t,"dragover",this),Ye(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),il.splice(il.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Is){if(rn("hideClone",this),Le.eventCanceled)return;$e(xt,"display","none"),this.options.removeCloneOnHide&&xt.parentNode&&xt.parentNode.removeChild(xt),Is=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Is){if(rn("showClone",this),Le.eventCanceled)return;me.parentNode==bt&&!this.options.group.revertClone?bt.insertBefore(xt,me):Qs?bt.insertBefore(xt,Qs):bt.appendChild(xt),this.options.group.revertClone&&this.animate(me,xt),$e(xt,"display",""),Is=!1}}};function E$(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Ki(e,t,n,s,r,o,i,a){var u,c=e[Gt],d=c.options.onMove,f;return window.CustomEvent&&!bs&&!xi?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=t,u.from=e,u.dragged=n,u.draggedRect=s,u.related=r||t,u.relatedRect=o||Ct(t),u.willInsertAfter=a,u.originalEvent=i,e.dispatchEvent(u),d&&(f=d.call(c,u,i)),f}function Eu(e){e.draggable=!1}function $$(){Sc=!1}function S$(e,t,n){var s=Ct(Xr(n.el,0,n.options,!0)),r=10;return t?e.clientX<s.left-r||e.clientY<s.top&&e.clientX<s.right:e.clientY<s.top-r||e.clientY<s.bottom&&e.clientX<s.left}function A$(e,t,n){var s=Ct(qd(n.el,n.options.draggable)),r=10;return t?e.clientX>s.right+r||e.clientX<=s.right&&e.clientY>s.bottom&&e.clientX>=s.left:e.clientX>s.right&&e.clientY>s.top||e.clientX<=s.right&&e.clientY>s.bottom+r}function T$(e,t,n,s,r,o,i,a){var u=s?e.clientY:e.clientX,c=s?n.height:n.width,d=s?n.top:n.left,f=s?n.bottom:n.right,m=!1;if(!i){if(a&&Ba<c*r){if(!Yo&&(Zo===1?u>d+c*o/2:u<f-c*o/2)&&(Yo=!0),Yo)m=!0;else if(Zo===1?u<d+Ba:u>f-Ba)return-Zo}else if(u>d+c*(1-r)/2&&u<f-c*(1-r)/2)return O$(t)}return m=m||i,m&&(u<d+c*o/2||u>f-c*o/2)?u>d+c/2?1:-1:0}function O$(e){return $t(me)<$t(e)?1:-1}function D$(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,s=0;n--;)s+=t.charCodeAt(n);return s.toString(36)}function P$(e){al.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var s=t[n];s.checked&&al.push(s)}}function Ha(e){return setTimeout(e,0)}function Ac(e){return clearTimeout(e)}Wl&&Xe(document,"touchmove",function(e){(Le.active||Or)&&e.cancelable&&e.preventDefault()});Le.utils={on:Xe,off:Ye,css:$e,find:_y,is:function(t,n){return!!Ln(t,n,t,!1)},extend:_$,throttle:gy,closest:Ln,toggleClass:zt,clone:Wd,index:$t,nextTick:Ha,cancelNextTick:Ac,detectDirection:by,getChild:Xr};Le.get=function(e){return e[Gt]};Le.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(s){if(!s.prototype||!s.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(s));s.utils&&(Le.utils=ss(ss({},Le.utils),s.utils)),Ei.mount(s)})};Le.create=function(e,t){return new Le(e,t)};Le.version=m$;var At=[],Do,Tc,Oc=!1,$u,Su,ll,Po;function I$(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var s=n.originalEvent;this.sortable.nativeDraggable?Xe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Xe(document,"pointermove",this._handleFallbackAutoScroll):s.touches?Xe(document,"touchmove",this._handleFallbackAutoScroll):Xe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var s=n.originalEvent;!this.options.dragOverBubble&&!s.rootEl&&this._handleAutoScroll(s)},drop:function(){this.sortable.nativeDraggable?Ye(document,"dragover",this._handleAutoScroll):(Ye(document,"pointermove",this._handleFallbackAutoScroll),Ye(document,"touchmove",this._handleFallbackAutoScroll),Ye(document,"mousemove",this._handleFallbackAutoScroll)),mp(),Ua(),g$()},nulling:function(){ll=Tc=Do=Oc=Po=$u=Su=null,At.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,s){var r=this,o=(n.touches?n.touches[0]:n).clientX,i=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(o,i);if(ll=n,s||this.options.forceAutoScrollFallback||xi||bs||Wo){Au(n,this.options,a,s);var u=Rs(a,!0);Oc&&(!Po||o!==$u||i!==Su)&&(Po&&mp(),Po=setInterval(function(){var c=Rs(document.elementFromPoint(o,i),!0);c!==u&&(u=c,Ua()),Au(n,r.options,c,s)},10),$u=o,Su=i)}else{if(!this.options.bubbleScroll||Rs(a,!0)===ts()){Ua();return}Au(n,this.options,Rs(a,!1),!1)}}},On(e,{pluginName:"scroll",initializeByDefault:!0})}function Ua(){At.forEach(function(e){clearInterval(e.pid)}),At=[]}function mp(){clearInterval(Po)}var Au=gy(function(e,t,n,s){if(!!t.scroll){var r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=t.scrollSensitivity,a=t.scrollSpeed,u=ts(),c=!1,d;Tc!==n&&(Tc=n,Ua(),Do=t.scroll,d=t.scrollFn,Do===!0&&(Do=Rs(n,!0)));var f=0,m=Do;do{var p=m,h=Ct(p),_=h.top,w=h.bottom,b=h.left,y=h.right,k=h.width,C=h.height,x=void 0,T=void 0,L=p.scrollWidth,I=p.scrollHeight,D=$e(p),j=p.scrollLeft,Z=p.scrollTop;p===u?(x=k<L&&(D.overflowX==="auto"||D.overflowX==="scroll"||D.overflowX==="visible"),T=C<I&&(D.overflowY==="auto"||D.overflowY==="scroll"||D.overflowY==="visible")):(x=k<L&&(D.overflowX==="auto"||D.overflowX==="scroll"),T=C<I&&(D.overflowY==="auto"||D.overflowY==="scroll"));var X=x&&(Math.abs(y-r)<=i&&j+k<L)-(Math.abs(b-r)<=i&&!!j),U=T&&(Math.abs(w-o)<=i&&Z+C<I)-(Math.abs(_-o)<=i&&!!Z);if(!At[f])for(var q=0;q<=f;q++)At[q]||(At[q]={});(At[f].vx!=X||At[f].vy!=U||At[f].el!==p)&&(At[f].el=p,At[f].vx=X,At[f].vy=U,clearInterval(At[f].pid),(X!=0||U!=0)&&(c=!0,At[f].pid=setInterval(function(){s&&this.layer===0&&Le.active._onTouchMove(ll);var Ce=At[this.layer].vy?At[this.layer].vy*a:0,te=At[this.layer].vx?At[this.layer].vx*a:0;typeof d=="function"&&d.call(Le.dragged.parentNode[Gt],te,Ce,e,ll,At[this.layer].el)!=="continue"||yy(At[this.layer].el,te,Ce)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&m!==u&&(m=Rs(m,!1)));Oc=c}},30),ky=function(t){var n=t.originalEvent,s=t.putSortable,r=t.dragEl,o=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,u=t.unhideGhostForTarget;if(!!n){var c=s||o;a();var d=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(d.clientX,d.clientY);u(),c&&!c.el.contains(f)&&(i("spill"),this.onSpill({dragEl:r,putSortable:s}))}};function Gd(){}Gd.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,s=t.putSortable;this.sortable.captureAnimationState(),s&&s.captureAnimationState();var r=Xr(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(n,r):this.sortable.el.appendChild(n),this.sortable.animateAll(),s&&s.animateAll()},drop:ky};On(Gd,{pluginName:"revertOnSpill"});function Kd(){}Kd.prototype={onSpill:function(t){var n=t.dragEl,s=t.putSortable,r=s||this.sortable;r.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),r.animateAll()},drop:ky};On(Kd,{pluginName:"removeOnSpill"});var kn;function F$(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var s=n.dragEl;kn=s},dragOverValid:function(n){var s=n.completed,r=n.target,o=n.onMove,i=n.activeSortable,a=n.changed,u=n.cancel;if(!!i.options.swap){var c=this.sortable.el,d=this.options;if(r&&r!==c){var f=kn;o(r)!==!1?(zt(r,d.swapClass,!0),kn=r):kn=null,f&&f!==kn&&zt(f,d.swapClass,!1)}a(),s(!0),u()}},drop:function(n){var s=n.activeSortable,r=n.putSortable,o=n.dragEl,i=r||this.sortable,a=this.options;kn&&zt(kn,a.swapClass,!1),kn&&(a.swap||r&&r.options.swap)&&o!==kn&&(i.captureAnimationState(),i!==s&&s.captureAnimationState(),R$(o,kn),i.animateAll(),i!==s&&s.animateAll())},nulling:function(){kn=null}},On(e,{pluginName:"swap",eventProperties:function(){return{swapItem:kn}}})}function R$(e,t){var n=e.parentNode,s=t.parentNode,r,o;!n||!s||n.isEqualNode(t)||s.isEqualNode(e)||(r=$t(e),o=$t(t),n.isEqualNode(s)&&r<o&&o++,n.insertBefore(t,n.children[r]),s.insertBefore(e,s.children[o]))}var Ue=[],fn=[],yo,In,vo=!1,on=!1,kr=!1,_t,bo,Zi;function L$(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?Xe(document,"pointerup",this._deselectMultiDrag):(Xe(document,"mouseup",this._deselectMultiDrag),Xe(document,"touchend",this._deselectMultiDrag)),Xe(document,"keydown",this._checkKeyDown),Xe(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(r,o){var i="";Ue.length&&In===t?Ue.forEach(function(a,u){i+=(u?", ":"")+a.textContent}):i=o.textContent,r.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var s=n.dragEl;_t=s},delayEnded:function(){this.isMultiDrag=~Ue.indexOf(_t)},setupClone:function(n){var s=n.sortable,r=n.cancel;if(!!this.isMultiDrag){for(var o=0;o<Ue.length;o++)fn.push(Wd(Ue[o])),fn[o].sortableIndex=Ue[o].sortableIndex,fn[o].draggable=!1,fn[o].style["will-change"]="",zt(fn[o],this.options.selectedClass,!1),Ue[o]===_t&&zt(fn[o],this.options.chosenClass,!1);s._hideClone(),r()}},clone:function(n){var s=n.sortable,r=n.rootEl,o=n.dispatchSortableEvent,i=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||Ue.length&&In===s&&(fp(!0,r),o("clone"),i())},showClone:function(n){var s=n.cloneNowShown,r=n.rootEl,o=n.cancel;!this.isMultiDrag||(fp(!1,r),fn.forEach(function(i){$e(i,"display","")}),s(),Zi=!1,o())},hideClone:function(n){var s=this;n.sortable;var r=n.cloneNowHidden,o=n.cancel;!this.isMultiDrag||(fn.forEach(function(i){$e(i,"display","none"),s.options.removeCloneOnHide&&i.parentNode&&i.parentNode.removeChild(i)}),r(),Zi=!0,o())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&In&&In.multiDrag._deselectMultiDrag(),Ue.forEach(function(s){s.sortableIndex=$t(s)}),Ue=Ue.sort(function(s,r){return s.sortableIndex-r.sortableIndex}),kr=!0},dragStarted:function(n){var s=this,r=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(r.captureAnimationState(),this.options.animation)){Ue.forEach(function(i){i!==_t&&$e(i,"position","absolute")});var o=Ct(_t,!1,!0,!0);Ue.forEach(function(i){i!==_t&&lp(i,o)}),on=!0,vo=!0}r.animateAll(function(){on=!1,vo=!1,s.options.animation&&Ue.forEach(function(i){Cu(i)}),s.options.sort&&Yi()})}},dragOver:function(n){var s=n.target,r=n.completed,o=n.cancel;on&&~Ue.indexOf(s)&&(r(!1),o())},revert:function(n){var s=n.fromSortable,r=n.rootEl,o=n.sortable,i=n.dragRect;Ue.length>1&&(Ue.forEach(function(a){o.addAnimationState({target:a,rect:on?Ct(a):i}),Cu(a),a.fromRect=i,s.removeAnimationState(a)}),on=!1,M$(!this.options.removeCloneOnHide,r))},dragOverCompleted:function(n){var s=n.sortable,r=n.isOwner,o=n.insertion,i=n.activeSortable,a=n.parentEl,u=n.putSortable,c=this.options;if(o){if(r&&i._hideClone(),vo=!1,c.animation&&Ue.length>1&&(on||!r&&!i.options.sort&&!u)){var d=Ct(_t,!1,!0,!0);Ue.forEach(function(m){m!==_t&&(lp(m,d),a.appendChild(m))}),on=!0}if(!r)if(on||Yi(),Ue.length>1){var f=Zi;i._showClone(s),i.options.animation&&!Zi&&f&&fn.forEach(function(m){i.addAnimationState({target:m,rect:bo}),m.fromRect=bo,m.thisAnimationDuration=null})}else i._showClone(s)}},dragOverAnimationCapture:function(n){var s=n.dragRect,r=n.isOwner,o=n.activeSortable;if(Ue.forEach(function(a){a.thisAnimationDuration=null}),o.options.animation&&!r&&o.multiDrag.isMultiDrag){bo=On({},s);var i=lr(_t,!0);bo.top-=i.f,bo.left-=i.e}},dragOverAnimationComplete:function(){on&&(on=!1,Yi())},drop:function(n){var s=n.originalEvent,r=n.rootEl,o=n.parentEl,i=n.sortable,a=n.dispatchSortableEvent,u=n.oldIndex,c=n.putSortable,d=c||this.sortable;if(!!s){var f=this.options,m=o.children;if(!kr)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),zt(_t,f.selectedClass,!~Ue.indexOf(_t)),~Ue.indexOf(_t))Ue.splice(Ue.indexOf(_t),1),yo=null,To({sortable:i,rootEl:r,name:"deselect",targetEl:_t,originalEvt:s});else{if(Ue.push(_t),To({sortable:i,rootEl:r,name:"select",targetEl:_t,originalEvt:s}),s.shiftKey&&yo&&i.el.contains(yo)){var p=$t(yo),h=$t(_t);if(~p&&~h&&p!==h){var _,w;for(h>p?(w=p,_=h):(w=h,_=p+1);w<_;w++)~Ue.indexOf(m[w])||(zt(m[w],f.selectedClass,!0),Ue.push(m[w]),To({sortable:i,rootEl:r,name:"select",targetEl:m[w],originalEvt:s}))}}else yo=_t;In=d}if(kr&&this.isMultiDrag){if(on=!1,(o[Gt].options.sort||o!==r)&&Ue.length>1){var b=Ct(_t),y=$t(_t,":not(."+this.options.selectedClass+")");if(!vo&&f.animation&&(_t.thisAnimationDuration=null),d.captureAnimationState(),!vo&&(f.animation&&(_t.fromRect=b,Ue.forEach(function(C){if(C.thisAnimationDuration=null,C!==_t){var x=on?Ct(C):b;C.fromRect=x,d.addAnimationState({target:C,rect:x})}})),Yi(),Ue.forEach(function(C){m[y]?o.insertBefore(C,m[y]):o.appendChild(C),y++}),u===$t(_t))){var k=!1;Ue.forEach(function(C){if(C.sortableIndex!==$t(C)){k=!0;return}}),k&&a("update")}Ue.forEach(function(C){Cu(C)}),d.animateAll()}In=d}(r===o||c&&c.lastPutMode!=="clone")&&fn.forEach(function(C){C.parentNode&&C.parentNode.removeChild(C)})}},nullingGlobal:function(){this.isMultiDrag=kr=!1,fn.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Ye(document,"pointerup",this._deselectMultiDrag),Ye(document,"mouseup",this._deselectMultiDrag),Ye(document,"touchend",this._deselectMultiDrag),Ye(document,"keydown",this._checkKeyDown),Ye(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof kr!="undefined"&&kr)&&In===this.sortable&&!(n&&Ln(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Ue.length;){var s=Ue[0];zt(s,this.options.selectedClass,!1),Ue.shift(),To({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:s,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},On(e,{pluginName:"multiDrag",utils:{select:function(n){var s=n.parentNode[Gt];!s||!s.options.multiDrag||~Ue.indexOf(n)||(In&&In!==s&&(In.multiDrag._deselectMultiDrag(),In=s),zt(n,s.options.selectedClass,!0),Ue.push(n))},deselect:function(n){var s=n.parentNode[Gt],r=Ue.indexOf(n);!s||!s.options.multiDrag||!~r||(zt(n,s.options.selectedClass,!1),Ue.splice(r,1))}},eventProperties:function(){var n=this,s=[],r=[];return Ue.forEach(function(o){s.push({multiDragElement:o,index:o.sortableIndex});var i;on&&o!==_t?i=-1:on?i=$t(o,":not(."+n.options.selectedClass+")"):i=$t(o),r.push({multiDragElement:o,index:i})}),{items:a$(Ue),clones:[].concat(fn),oldIndicies:s,newIndicies:r}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function M$(e,t){Ue.forEach(function(n,s){var r=t.children[n.sortableIndex+(e?Number(s):0)];r?t.insertBefore(n,r):t.appendChild(n)})}function fp(e,t){fn.forEach(function(n,s){var r=t.children[n.sortableIndex+(e?Number(s):0)];r?t.insertBefore(n,r):t.appendChild(n)})}function Yi(){Ue.forEach(function(e){e!==_t&&e.parentNode&&e.parentNode.removeChild(e)})}Le.mount(new I$);Le.mount(Kd,Gd);var N$=Object.freeze(Object.defineProperty({__proto__:null,default:Le,MultiDrag:L$,Sortable:Le,Swap:F$},Symbol.toStringTag,{value:"Module"})),V$=uy(N$);(function(e,t){(function(s,r){e.exports=r(fy,V$)})(typeof self!="undefined"?self:Qt,function(n,s){return function(r){var o={};function i(a){if(o[a])return o[a].exports;var u=o[a]={i:a,l:!1,exports:{}};return r[a].call(u.exports,u,u.exports,i),u.l=!0,u.exports}return i.m=r,i.c=o,i.d=function(a,u,c){i.o(a,u)||Object.defineProperty(a,u,{enumerable:!0,get:c})},i.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,u){if(u&1&&(a=i(a)),u&8||u&4&&typeof a=="object"&&a&&a.__esModule)return a;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:a}),u&2&&typeof a!="string")for(var d in a)i.d(c,d,function(f){return a[f]}.bind(null,d));return c},i.n=function(a){var u=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(u,"a",u),u},i.o=function(a,u){return Object.prototype.hasOwnProperty.call(a,u)},i.p="",i(i.s="fb15")}({"00ee":function(r,o,i){var a=i("b622"),u=a("toStringTag"),c={};c[u]="z",r.exports=String(c)==="[object z]"},"0366":function(r,o,i){var a=i("1c0b");r.exports=function(u,c,d){if(a(u),c===void 0)return u;switch(d){case 0:return function(){return u.call(c)};case 1:return function(f){return u.call(c,f)};case 2:return function(f,m){return u.call(c,f,m)};case 3:return function(f,m,p){return u.call(c,f,m,p)}}return function(){return u.apply(c,arguments)}}},"057f":function(r,o,i){var a=i("fc6a"),u=i("241c").f,c={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(m){try{return u(m)}catch{return d.slice()}};r.exports.f=function(p){return d&&c.call(p)=="[object Window]"?f(p):u(a(p))}},"06cf":function(r,o,i){var a=i("83ab"),u=i("d1e7"),c=i("5c6c"),d=i("fc6a"),f=i("c04e"),m=i("5135"),p=i("0cfb"),h=Object.getOwnPropertyDescriptor;o.f=a?h:function(w,b){if(w=d(w),b=f(b,!0),p)try{return h(w,b)}catch{}if(m(w,b))return c(!u.f.call(w,b),w[b])}},"0cfb":function(r,o,i){var a=i("83ab"),u=i("d039"),c=i("cc12");r.exports=!a&&!u(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(r,o,i){var a=i("23e7"),u=i("d58f").left,c=i("a640"),d=i("ae40"),f=c("reduce"),m=d("reduce",{1:0});a({target:"Array",proto:!0,forced:!f||!m},{reduce:function(h){return u(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(r,o,i){var a=i("c6b6"),u=i("9263");r.exports=function(c,d){var f=c.exec;if(typeof f=="function"){var m=f.call(c,d);if(typeof m!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return m}if(a(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(c,d)}},"159b":function(r,o,i){var a=i("da84"),u=i("fdbc"),c=i("17c2"),d=i("9112");for(var f in u){var m=a[f],p=m&&m.prototype;if(p&&p.forEach!==c)try{d(p,"forEach",c)}catch{p.forEach=c}}},"17c2":function(r,o,i){var a=i("b727").forEach,u=i("a640"),c=i("ae40"),d=u("forEach"),f=c("forEach");r.exports=!d||!f?function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(r,o,i){var a=i("d066");r.exports=a("document","documentElement")},"1c0b":function(r,o){r.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"1c7e":function(r,o,i){var a=i("b622"),u=a("iterator"),c=!1;try{var d=0,f={next:function(){return{done:!!d++}},return:function(){c=!0}};f[u]=function(){return this},Array.from(f,function(){throw 2})}catch{}r.exports=function(m,p){if(!p&&!c)return!1;var h=!1;try{var _={};_[u]=function(){return{next:function(){return{done:h=!0}}}},m(_)}catch{}return h}},"1d80":function(r,o){r.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"1dde":function(r,o,i){var a=i("d039"),u=i("b622"),c=i("2d00"),d=u("species");r.exports=function(f){return c>=51||!a(function(){var m=[],p=m.constructor={};return p[d]=function(){return{foo:1}},m[f](Boolean).foo!==1})}},"23cb":function(r,o,i){var a=i("a691"),u=Math.max,c=Math.min;r.exports=function(d,f){var m=a(d);return m<0?u(m+f,0):c(m,f)}},"23e7":function(r,o,i){var a=i("da84"),u=i("06cf").f,c=i("9112"),d=i("6eeb"),f=i("ce4e"),m=i("e893"),p=i("94ca");r.exports=function(h,_){var w=h.target,b=h.global,y=h.stat,k,C,x,T,L,I;if(b?C=a:y?C=a[w]||f(w,{}):C=(a[w]||{}).prototype,C)for(x in _){if(L=_[x],h.noTargetGet?(I=u(C,x),T=I&&I.value):T=C[x],k=p(b?x:w+(y?".":"#")+x,h.forced),!k&&T!==void 0){if(typeof L==typeof T)continue;m(L,T)}(h.sham||T&&T.sham)&&c(L,"sham",!0),d(C,x,L,h)}}},"241c":function(r,o,i){var a=i("ca84"),u=i("7839"),c=u.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(f){return a(f,c)}},"25f0":function(r,o,i){var a=i("6eeb"),u=i("825a"),c=i("d039"),d=i("ad6d"),f="toString",m=RegExp.prototype,p=m[f],h=c(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),_=p.name!=f;(h||_)&&a(RegExp.prototype,f,function(){var b=u(this),y=String(b.source),k=b.flags,C=String(k===void 0&&b instanceof RegExp&&!("flags"in m)?d.call(b):k);return"/"+y+"/"+C},{unsafe:!0})},"2ca0":function(r,o,i){var a=i("23e7"),u=i("06cf").f,c=i("50c4"),d=i("5a34"),f=i("1d80"),m=i("ab13"),p=i("c430"),h="".startsWith,_=Math.min,w=m("startsWith"),b=!p&&!w&&!!function(){var y=u(String.prototype,"startsWith");return y&&!y.writable}();a({target:"String",proto:!0,forced:!b&&!w},{startsWith:function(k){var C=String(f(this));d(k);var x=c(_(arguments.length>1?arguments[1]:void 0,C.length)),T=String(k);return h?h.call(C,T,x):C.slice(x,x+T.length)===T}})},"2d00":function(r,o,i){var a=i("da84"),u=i("342f"),c=a.process,d=c&&c.versions,f=d&&d.v8,m,p;f?(m=f.split("."),p=m[0]+m[1]):u&&(m=u.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=u.match(/Chrome\/(\d+)/),m&&(p=m[1]))),r.exports=p&&+p},"342f":function(r,o,i){var a=i("d066");r.exports=a("navigator","userAgent")||""},"35a1":function(r,o,i){var a=i("f5df"),u=i("3f8c"),c=i("b622"),d=c("iterator");r.exports=function(f){if(f!=null)return f[d]||f["@@iterator"]||u[a(f)]}},"37e8":function(r,o,i){var a=i("83ab"),u=i("9bf2"),c=i("825a"),d=i("df75");r.exports=a?Object.defineProperties:function(m,p){c(m);for(var h=d(p),_=h.length,w=0,b;_>w;)u.f(m,b=h[w++],p[b]);return m}},"3bbe":function(r,o,i){var a=i("861d");r.exports=function(u){if(!a(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},"3ca3":function(r,o,i){var a=i("6547").charAt,u=i("69f3"),c=i("7dd0"),d="String Iterator",f=u.set,m=u.getterFor(d);c(String,"String",function(p){f(this,{type:d,string:String(p),index:0})},function(){var h=m(this),_=h.string,w=h.index,b;return w>=_.length?{value:void 0,done:!0}:(b=a(_,w),h.index+=b.length,{value:b,done:!1})})},"3f8c":function(r,o){r.exports={}},4160:function(r,o,i){var a=i("23e7"),u=i("17c2");a({target:"Array",proto:!0,forced:[].forEach!=u},{forEach:u})},"428f":function(r,o,i){var a=i("da84");r.exports=a},"44ad":function(r,o,i){var a=i("d039"),u=i("c6b6"),c="".split;r.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return u(d)=="String"?c.call(d,""):Object(d)}:Object},"44d2":function(r,o,i){var a=i("b622"),u=i("7c73"),c=i("9bf2"),d=a("unscopables"),f=Array.prototype;f[d]==null&&c.f(f,d,{configurable:!0,value:u(null)}),r.exports=function(m){f[d][m]=!0}},"44e7":function(r,o,i){var a=i("861d"),u=i("c6b6"),c=i("b622"),d=c("match");r.exports=function(f){var m;return a(f)&&((m=f[d])!==void 0?!!m:u(f)=="RegExp")}},4930:function(r,o,i){var a=i("d039");r.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(r,o,i){var a=i("fc6a"),u=i("50c4"),c=i("23cb"),d=function(f){return function(m,p,h){var _=a(m),w=u(_.length),b=c(h,w),y;if(f&&p!=p){for(;w>b;)if(y=_[b++],y!=y)return!0}else for(;w>b;b++)if((f||b in _)&&_[b]===p)return f||b||0;return!f&&-1}};r.exports={includes:d(!0),indexOf:d(!1)}},"4de4":function(r,o,i){var a=i("23e7"),u=i("b727").filter,c=i("1dde"),d=i("ae40"),f=c("filter"),m=d("filter");a({target:"Array",proto:!0,forced:!f||!m},{filter:function(h){return u(this,h,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(r,o,i){var a=i("0366"),u=i("7b0b"),c=i("9bdd"),d=i("e95a"),f=i("50c4"),m=i("8418"),p=i("35a1");r.exports=function(_){var w=u(_),b=typeof this=="function"?this:Array,y=arguments.length,k=y>1?arguments[1]:void 0,C=k!==void 0,x=p(w),T=0,L,I,D,j,Z,X;if(C&&(k=a(k,y>2?arguments[2]:void 0,2)),x!=null&&!(b==Array&&d(x)))for(j=x.call(w),Z=j.next,I=new b;!(D=Z.call(j)).done;T++)X=C?c(j,k,[D.value,T],!0):D.value,m(I,T,X);else for(L=f(w.length),I=new b(L);L>T;T++)X=C?k(w[T],T):w[T],m(I,T,X);return I.length=T,I}},"4fad":function(r,o,i){var a=i("23e7"),u=i("6f53").entries;a({target:"Object",stat:!0},{entries:function(d){return u(d)}})},"50c4":function(r,o,i){var a=i("a691"),u=Math.min;r.exports=function(c){return c>0?u(a(c),9007199254740991):0}},5135:function(r,o){var i={}.hasOwnProperty;r.exports=function(a,u){return i.call(a,u)}},5319:function(r,o,i){var a=i("d784"),u=i("825a"),c=i("7b0b"),d=i("50c4"),f=i("a691"),m=i("1d80"),p=i("8aa5"),h=i("14c3"),_=Math.max,w=Math.min,b=Math.floor,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,k=/\$([$&'`]|\d\d?)/g,C=function(x){return x===void 0?x:String(x)};a("replace",2,function(x,T,L,I){var D=I.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,j=I.REPLACE_KEEPS_$0,Z=D?"$":"$0";return[function(q,Ce){var te=m(this),ie=q==null?void 0:q[x];return ie!==void 0?ie.call(q,te,Ce):T.call(String(te),q,Ce)},function(U,q){if(!D&&j||typeof q=="string"&&q.indexOf(Z)===-1){var Ce=L(T,U,this,q);if(Ce.done)return Ce.value}var te=u(U),ie=String(this),ye=typeof q=="function";ye||(q=String(q));var je=te.global;if(je){var at=te.unicode;te.lastIndex=0}for(var ce=[];;){var W=h(te,ie);if(W===null||(ce.push(W),!je))break;var fe=String(W[0]);fe===""&&(te.lastIndex=p(ie,d(te.lastIndex),at))}for(var De="",Me=0,Ee=0;Ee<ce.length;Ee++){W=ce[Ee];for(var V=String(W[0]),le=_(w(f(W.index),ie.length),0),ne=[],pe=1;pe<W.length;pe++)ne.push(C(W[pe]));var Pe=W.groups;if(ye){var A=[V].concat(ne,le,ie);Pe!==void 0&&A.push(Pe);var O=String(q.apply(void 0,A))}else O=X(V,ie,le,ne,Pe,q);le>=Me&&(De+=ie.slice(Me,le)+O,Me=le+V.length)}return De+ie.slice(Me)}];function X(U,q,Ce,te,ie,ye){var je=Ce+U.length,at=te.length,ce=k;return ie!==void 0&&(ie=c(ie),ce=y),T.call(ye,ce,function(W,fe){var De;switch(fe.charAt(0)){case"$":return"$";case"&":return U;case"`":return q.slice(0,Ce);case"'":return q.slice(je);case"<":De=ie[fe.slice(1,-1)];break;default:var Me=+fe;if(Me===0)return W;if(Me>at){var Ee=b(Me/10);return Ee===0?W:Ee<=at?te[Ee-1]===void 0?fe.charAt(1):te[Ee-1]+fe.charAt(1):W}De=te[Me-1]}return De===void 0?"":De})}})},5692:function(r,o,i){var a=i("c430"),u=i("c6cd");(r.exports=function(c,d){return u[c]||(u[c]=d!==void 0?d:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(r,o,i){var a=i("d066"),u=i("241c"),c=i("7418"),d=i("825a");r.exports=a("Reflect","ownKeys")||function(m){var p=u.f(d(m)),h=c.f;return h?p.concat(h(m)):p}},"5a34":function(r,o,i){var a=i("44e7");r.exports=function(u){if(a(u))throw TypeError("The method doesn't accept regular expressions");return u}},"5c6c":function(r,o){r.exports=function(i,a){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:a}}},"5db7":function(r,o,i){var a=i("23e7"),u=i("a2bf"),c=i("7b0b"),d=i("50c4"),f=i("1c0b"),m=i("65f0");a({target:"Array",proto:!0},{flatMap:function(h){var _=c(this),w=d(_.length),b;return f(h),b=m(_,0),b.length=u(b,_,_,w,0,1,h,arguments.length>1?arguments[1]:void 0),b}})},6547:function(r,o,i){var a=i("a691"),u=i("1d80"),c=function(d){return function(f,m){var p=String(u(f)),h=a(m),_=p.length,w,b;return h<0||h>=_?d?"":void 0:(w=p.charCodeAt(h),w<55296||w>56319||h+1===_||(b=p.charCodeAt(h+1))<56320||b>57343?d?p.charAt(h):w:d?p.slice(h,h+2):(w-55296<<10)+(b-56320)+65536)}};r.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(r,o,i){var a=i("861d"),u=i("e8b5"),c=i("b622"),d=c("species");r.exports=function(f,m){var p;return u(f)&&(p=f.constructor,typeof p=="function"&&(p===Array||u(p.prototype))?p=void 0:a(p)&&(p=p[d],p===null&&(p=void 0))),new(p===void 0?Array:p)(m===0?0:m)}},"69f3":function(r,o,i){var a=i("7f9a"),u=i("da84"),c=i("861d"),d=i("9112"),f=i("5135"),m=i("f772"),p=i("d012"),h=u.WeakMap,_,w,b,y=function(D){return b(D)?w(D):_(D,{})},k=function(D){return function(j){var Z;if(!c(j)||(Z=w(j)).type!==D)throw TypeError("Incompatible receiver, "+D+" required");return Z}};if(a){var C=new h,x=C.get,T=C.has,L=C.set;_=function(D,j){return L.call(C,D,j),j},w=function(D){return x.call(C,D)||{}},b=function(D){return T.call(C,D)}}else{var I=m("state");p[I]=!0,_=function(D,j){return d(D,I,j),j},w=function(D){return f(D,I)?D[I]:{}},b=function(D){return f(D,I)}}r.exports={set:_,get:w,has:b,enforce:y,getterFor:k}},"6eeb":function(r,o,i){var a=i("da84"),u=i("9112"),c=i("5135"),d=i("ce4e"),f=i("8925"),m=i("69f3"),p=m.get,h=m.enforce,_=String(String).split("String");(r.exports=function(w,b,y,k){var C=k?!!k.unsafe:!1,x=k?!!k.enumerable:!1,T=k?!!k.noTargetGet:!1;if(typeof y=="function"&&(typeof b=="string"&&!c(y,"name")&&u(y,"name",b),h(y).source=_.join(typeof b=="string"?b:"")),w===a){x?w[b]=y:d(b,y);return}else C?!T&&w[b]&&(x=!0):delete w[b];x?w[b]=y:u(w,b,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||f(this)})},"6f53":function(r,o,i){var a=i("83ab"),u=i("df75"),c=i("fc6a"),d=i("d1e7").f,f=function(m){return function(p){for(var h=c(p),_=u(h),w=_.length,b=0,y=[],k;w>b;)k=_[b++],(!a||d.call(h,k))&&y.push(m?[k,h[k]]:h[k]);return y}};r.exports={entries:f(!0),values:f(!1)}},"73d9":function(r,o,i){var a=i("44d2");a("flatMap")},7418:function(r,o){o.f=Object.getOwnPropertySymbols},"746f":function(r,o,i){var a=i("428f"),u=i("5135"),c=i("e538"),d=i("9bf2").f;r.exports=function(f){var m=a.Symbol||(a.Symbol={});u(m,f)||d(m,f,{value:c.f(f)})}},7839:function(r,o){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(r,o,i){var a=i("1d80");r.exports=function(u){return Object(a(u))}},"7c73":function(r,o,i){var a=i("825a"),u=i("37e8"),c=i("7839"),d=i("d012"),f=i("1be4"),m=i("cc12"),p=i("f772"),h=">",_="<",w="prototype",b="script",y=p("IE_PROTO"),k=function(){},C=function(D){return _+b+h+D+_+"/"+b+h},x=function(D){D.write(C("")),D.close();var j=D.parentWindow.Object;return D=null,j},T=function(){var D=m("iframe"),j="java"+b+":",Z;return D.style.display="none",f.appendChild(D),D.src=String(j),Z=D.contentWindow.document,Z.open(),Z.write(C("document.F=Object")),Z.close(),Z.F},L,I=function(){try{L=document.domain&&new ActiveXObject("htmlfile")}catch{}I=L?x(L):T();for(var D=c.length;D--;)delete I[w][c[D]];return I()};d[y]=!0,r.exports=Object.create||function(j,Z){var X;return j!==null?(k[w]=a(j),X=new k,k[w]=null,X[y]=j):X=I(),Z===void 0?X:u(X,Z)}},"7dd0":function(r,o,i){var a=i("23e7"),u=i("9ed3"),c=i("e163"),d=i("d2bb"),f=i("d44e"),m=i("9112"),p=i("6eeb"),h=i("b622"),_=i("c430"),w=i("3f8c"),b=i("ae93"),y=b.IteratorPrototype,k=b.BUGGY_SAFARI_ITERATORS,C=h("iterator"),x="keys",T="values",L="entries",I=function(){return this};r.exports=function(D,j,Z,X,U,q,Ce){u(Z,j,X);var te=function(Ee){if(Ee===U&&ce)return ce;if(!k&&Ee in je)return je[Ee];switch(Ee){case x:return function(){return new Z(this,Ee)};case T:return function(){return new Z(this,Ee)};case L:return function(){return new Z(this,Ee)}}return function(){return new Z(this)}},ie=j+" Iterator",ye=!1,je=D.prototype,at=je[C]||je["@@iterator"]||U&&je[U],ce=!k&&at||te(U),W=j=="Array"&&je.entries||at,fe,De,Me;if(W&&(fe=c(W.call(new D)),y!==Object.prototype&&fe.next&&(!_&&c(fe)!==y&&(d?d(fe,y):typeof fe[C]!="function"&&m(fe,C,I)),f(fe,ie,!0,!0),_&&(w[ie]=I))),U==T&&at&&at.name!==T&&(ye=!0,ce=function(){return at.call(this)}),(!_||Ce)&&je[C]!==ce&&m(je,C,ce),w[j]=ce,U)if(De={values:te(T),keys:q?ce:te(x),entries:te(L)},Ce)for(Me in De)(k||ye||!(Me in je))&&p(je,Me,De[Me]);else a({target:j,proto:!0,forced:k||ye},De);return De}},"7f9a":function(r,o,i){var a=i("da84"),u=i("8925"),c=a.WeakMap;r.exports=typeof c=="function"&&/native code/.test(u(c))},"825a":function(r,o,i){var a=i("861d");r.exports=function(u){if(!a(u))throw TypeError(String(u)+" is not an object");return u}},"83ab":function(r,o,i){var a=i("d039");r.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(r,o,i){var a=i("c04e"),u=i("9bf2"),c=i("5c6c");r.exports=function(d,f,m){var p=a(f);p in d?u.f(d,p,c(0,m)):d[p]=m}},"861d":function(r,o){r.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},8875:function(r,o,i){var a,u,c;(function(d,f){u=[],a=f,c=typeof a=="function"?a.apply(o,u):a,c!==void 0&&(r.exports=c)})(typeof self!="undefined"?self:this,function(){function d(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==d&&document.currentScript)return document.currentScript;try{throw new Error}catch(L){var m=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,h=m.exec(L.stack)||p.exec(L.stack),_=h&&h[1]||!1,w=h&&h[2]||!1,b=document.location.href.replace(document.location.hash,""),y,k,C,x=document.getElementsByTagName("script");_===b&&(y=document.documentElement.outerHTML,k=new RegExp("(?:[^\\n]+?\\n){0,"+(w-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),C=y.replace(k,"$1").trim());for(var T=0;T<x.length;T++)if(x[T].readyState==="interactive"||x[T].src===_||_===b&&x[T].innerHTML&&x[T].innerHTML.trim()===C)return x[T];return null}}return d})},8925:function(r,o,i){var a=i("c6cd"),u=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(c){return u.call(c)}),r.exports=a.inspectSource},"8aa5":function(r,o,i){var a=i("6547").charAt;r.exports=function(u,c,d){return c+(d?a(u,c).length:1)}},"8bbf":function(r,o){r.exports=n},"90e3":function(r,o){var i=0,a=Math.random();r.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++i+a).toString(36)}},9112:function(r,o,i){var a=i("83ab"),u=i("9bf2"),c=i("5c6c");r.exports=a?function(d,f,m){return u.f(d,f,c(1,m))}:function(d,f,m){return d[f]=m,d}},9263:function(r,o,i){var a=i("ad6d"),u=i("9f7f"),c=RegExp.prototype.exec,d=String.prototype.replace,f=c,m=function(){var w=/a/,b=/b*/g;return c.call(w,"a"),c.call(b,"a"),w.lastIndex!==0||b.lastIndex!==0}(),p=u.UNSUPPORTED_Y||u.BROKEN_CARET,h=/()??/.exec("")[1]!==void 0,_=m||h||p;_&&(f=function(b){var y=this,k,C,x,T,L=p&&y.sticky,I=a.call(y),D=y.source,j=0,Z=b;return L&&(I=I.replace("y",""),I.indexOf("g")===-1&&(I+="g"),Z=String(b).slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&b[y.lastIndex-1]!==`
|
|
`)&&(D="(?: "+D+")",Z=" "+Z,j++),C=new RegExp("^(?:"+D+")",I)),h&&(C=new RegExp("^"+D+"$(?!\\s)",I)),m&&(k=y.lastIndex),x=c.call(L?C:y,Z),L?x?(x.input=x.input.slice(j),x[0]=x[0].slice(j),x.index=y.lastIndex,y.lastIndex+=x[0].length):y.lastIndex=0:m&&x&&(y.lastIndex=y.global?x.index+x[0].length:k),h&&x&&x.length>1&&d.call(x[0],C,function(){for(T=1;T<arguments.length-2;T++)arguments[T]===void 0&&(x[T]=void 0)}),x}),r.exports=f},"94ca":function(r,o,i){var a=i("d039"),u=/#|\.prototype\./,c=function(h,_){var w=f[d(h)];return w==p?!0:w==m?!1:typeof _=="function"?a(_):!!_},d=c.normalize=function(h){return String(h).replace(u,".").toLowerCase()},f=c.data={},m=c.NATIVE="N",p=c.POLYFILL="P";r.exports=c},"99af":function(r,o,i){var a=i("23e7"),u=i("d039"),c=i("e8b5"),d=i("861d"),f=i("7b0b"),m=i("50c4"),p=i("8418"),h=i("65f0"),_=i("1dde"),w=i("b622"),b=i("2d00"),y=w("isConcatSpreadable"),k=9007199254740991,C="Maximum allowed index exceeded",x=b>=51||!u(function(){var D=[];return D[y]=!1,D.concat()[0]!==D}),T=_("concat"),L=function(D){if(!d(D))return!1;var j=D[y];return j!==void 0?!!j:c(D)},I=!x||!T;a({target:"Array",proto:!0,forced:I},{concat:function(j){var Z=f(this),X=h(Z,0),U=0,q,Ce,te,ie,ye;for(q=-1,te=arguments.length;q<te;q++)if(ye=q===-1?Z:arguments[q],L(ye)){if(ie=m(ye.length),U+ie>k)throw TypeError(C);for(Ce=0;Ce<ie;Ce++,U++)Ce in ye&&p(X,U,ye[Ce])}else{if(U>=k)throw TypeError(C);p(X,U++,ye)}return X.length=U,X}})},"9bdd":function(r,o,i){var a=i("825a");r.exports=function(u,c,d,f){try{return f?c(a(d)[0],d[1]):c(d)}catch(p){var m=u.return;throw m!==void 0&&a(m.call(u)),p}}},"9bf2":function(r,o,i){var a=i("83ab"),u=i("0cfb"),c=i("825a"),d=i("c04e"),f=Object.defineProperty;o.f=a?f:function(p,h,_){if(c(p),h=d(h,!0),c(_),u)try{return f(p,h,_)}catch{}if("get"in _||"set"in _)throw TypeError("Accessors not supported");return"value"in _&&(p[h]=_.value),p}},"9ed3":function(r,o,i){var a=i("ae93").IteratorPrototype,u=i("7c73"),c=i("5c6c"),d=i("d44e"),f=i("3f8c"),m=function(){return this};r.exports=function(p,h,_){var w=h+" Iterator";return p.prototype=u(a,{next:c(1,_)}),d(p,w,!1,!0),f[w]=m,p}},"9f7f":function(r,o,i){var a=i("d039");function u(c,d){return RegExp(c,d)}o.UNSUPPORTED_Y=a(function(){var c=u("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),o.BROKEN_CARET=a(function(){var c=u("^r","gy");return c.lastIndex=2,c.exec("str")!=null})},a2bf:function(r,o,i){var a=i("e8b5"),u=i("50c4"),c=i("0366"),d=function(f,m,p,h,_,w,b,y){for(var k=_,C=0,x=b?c(b,y,3):!1,T;C<h;){if(C in p){if(T=x?x(p[C],C,m):p[C],w>0&&a(T))k=d(f,m,T,u(T.length),k,w-1)-1;else{if(k>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[k]=T}k++}C++}return k};r.exports=d},a352:function(r,o){r.exports=s},a434:function(r,o,i){var a=i("23e7"),u=i("23cb"),c=i("a691"),d=i("50c4"),f=i("7b0b"),m=i("65f0"),p=i("8418"),h=i("1dde"),_=i("ae40"),w=h("splice"),b=_("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,k=Math.min,C=9007199254740991,x="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!w||!b},{splice:function(L,I){var D=f(this),j=d(D.length),Z=u(L,j),X=arguments.length,U,q,Ce,te,ie,ye;if(X===0?U=q=0:X===1?(U=0,q=j-Z):(U=X-2,q=k(y(c(I),0),j-Z)),j+U-q>C)throw TypeError(x);for(Ce=m(D,q),te=0;te<q;te++)ie=Z+te,ie in D&&p(Ce,te,D[ie]);if(Ce.length=q,U<q){for(te=Z;te<j-q;te++)ie=te+q,ye=te+U,ie in D?D[ye]=D[ie]:delete D[ye];for(te=j;te>j-q+U;te--)delete D[te-1]}else if(U>q)for(te=j-q;te>Z;te--)ie=te+q-1,ye=te+U-1,ie in D?D[ye]=D[ie]:delete D[ye];for(te=0;te<U;te++)D[te+Z]=arguments[te+2];return D.length=j-q+U,Ce}})},a4d3:function(r,o,i){var a=i("23e7"),u=i("da84"),c=i("d066"),d=i("c430"),f=i("83ab"),m=i("4930"),p=i("fdbf"),h=i("d039"),_=i("5135"),w=i("e8b5"),b=i("861d"),y=i("825a"),k=i("7b0b"),C=i("fc6a"),x=i("c04e"),T=i("5c6c"),L=i("7c73"),I=i("df75"),D=i("241c"),j=i("057f"),Z=i("7418"),X=i("06cf"),U=i("9bf2"),q=i("d1e7"),Ce=i("9112"),te=i("6eeb"),ie=i("5692"),ye=i("f772"),je=i("d012"),at=i("90e3"),ce=i("b622"),W=i("e538"),fe=i("746f"),De=i("d44e"),Me=i("69f3"),Ee=i("b727").forEach,V=ye("hidden"),le="Symbol",ne="prototype",pe=ce("toPrimitive"),Pe=Me.set,A=Me.getterFor(le),O=Object[ne],P=u.Symbol,K=c("JSON","stringify"),J=X.f,ee=U.f,de=j.f,ae=q.f,oe=ie("symbols"),Y=ie("op-symbols"),R=ie("string-to-symbol-registry"),B=ie("symbol-to-string-registry"),ge=ie("wks"),we=u.QObject,Re=!we||!we[ne]||!we[ne].findChild,qe=f&&h(function(){return L(ee({},"a",{get:function(){return ee(this,"a",{value:7}).a}})).a!=7})?function(xe,ue,Fe){var Ze=J(O,ue);Ze&&delete O[ue],ee(xe,ue,Fe),Ze&&xe!==O&&ee(O,ue,Ze)}:ee,Be=function(xe,ue){var Fe=oe[xe]=L(P[ne]);return Pe(Fe,{type:le,tag:xe,description:ue}),f||(Fe.description=ue),Fe},F=p?function(xe){return typeof xe=="symbol"}:function(xe){return Object(xe)instanceof P},M=function(ue,Fe,Ze){ue===O&&M(Y,Fe,Ze),y(ue);var Qe=x(Fe,!0);return y(Ze),_(oe,Qe)?(Ze.enumerable?(_(ue,V)&&ue[V][Qe]&&(ue[V][Qe]=!1),Ze=L(Ze,{enumerable:T(0,!1)})):(_(ue,V)||ee(ue,V,T(1,{})),ue[V][Qe]=!0),qe(ue,Qe,Ze)):ee(ue,Qe,Ze)},G=function(ue,Fe){y(ue);var Ze=C(Fe),Qe=I(Ze).concat(He(Ze));return Ee(Qe,function(Bt){(!f||ve.call(Ze,Bt))&&M(ue,Bt,Ze[Bt])}),ue},se=function(ue,Fe){return Fe===void 0?L(ue):G(L(ue),Fe)},ve=function(ue){var Fe=x(ue,!0),Ze=ae.call(this,Fe);return this===O&&_(oe,Fe)&&!_(Y,Fe)?!1:Ze||!_(this,Fe)||!_(oe,Fe)||_(this,V)&&this[V][Fe]?Ze:!0},Ie=function(ue,Fe){var Ze=C(ue),Qe=x(Fe,!0);if(!(Ze===O&&_(oe,Qe)&&!_(Y,Qe))){var Bt=J(Ze,Qe);return Bt&&_(oe,Qe)&&!(_(Ze,V)&&Ze[V][Qe])&&(Bt.enumerable=!0),Bt}},Te=function(ue){var Fe=de(C(ue)),Ze=[];return Ee(Fe,function(Qe){!_(oe,Qe)&&!_(je,Qe)&&Ze.push(Qe)}),Ze},He=function(ue){var Fe=ue===O,Ze=de(Fe?Y:C(ue)),Qe=[];return Ee(Ze,function(Bt){_(oe,Bt)&&(!Fe||_(O,Bt))&&Qe.push(oe[Bt])}),Qe};if(m||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor");var ue=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Fe=at(ue),Ze=function(Qe){this===O&&Ze.call(Y,Qe),_(this,V)&&_(this[V],Fe)&&(this[V][Fe]=!1),qe(this,Fe,T(1,Qe))};return f&&Re&&qe(O,Fe,{configurable:!0,set:Ze}),Be(Fe,ue)},te(P[ne],"toString",function(){return A(this).tag}),te(P,"withoutSetter",function(xe){return Be(at(xe),xe)}),q.f=ve,U.f=M,X.f=Ie,D.f=j.f=Te,Z.f=He,W.f=function(xe){return Be(ce(xe),xe)},f&&(ee(P[ne],"description",{configurable:!0,get:function(){return A(this).description}}),d||te(O,"propertyIsEnumerable",ve,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!m,sham:!m},{Symbol:P}),Ee(I(ge),function(xe){fe(xe)}),a({target:le,stat:!0,forced:!m},{for:function(xe){var ue=String(xe);if(_(R,ue))return R[ue];var Fe=P(ue);return R[ue]=Fe,B[Fe]=ue,Fe},keyFor:function(ue){if(!F(ue))throw TypeError(ue+" is not a symbol");if(_(B,ue))return B[ue]},useSetter:function(){Re=!0},useSimple:function(){Re=!1}}),a({target:"Object",stat:!0,forced:!m,sham:!f},{create:se,defineProperty:M,defineProperties:G,getOwnPropertyDescriptor:Ie}),a({target:"Object",stat:!0,forced:!m},{getOwnPropertyNames:Te,getOwnPropertySymbols:He}),a({target:"Object",stat:!0,forced:h(function(){Z.f(1)})},{getOwnPropertySymbols:function(ue){return Z.f(k(ue))}}),K){var Ge=!m||h(function(){var xe=P();return K([xe])!="[null]"||K({a:xe})!="{}"||K(Object(xe))!="{}"});a({target:"JSON",stat:!0,forced:Ge},{stringify:function(ue,Fe,Ze){for(var Qe=[ue],Bt=1,mo;arguments.length>Bt;)Qe.push(arguments[Bt++]);if(mo=Fe,!(!b(Fe)&&ue===void 0||F(ue)))return w(Fe)||(Fe=function($1,Di){if(typeof mo=="function"&&(Di=mo.call(this,$1,Di)),!F(Di))return Di}),Qe[1]=Fe,K.apply(null,Qe)}})}P[ne][pe]||Ce(P[ne],pe,P[ne].valueOf),De(P,le),je[V]=!0},a630:function(r,o,i){var a=i("23e7"),u=i("4df4"),c=i("1c7e"),d=!c(function(f){Array.from(f)});a({target:"Array",stat:!0,forced:d},{from:u})},a640:function(r,o,i){var a=i("d039");r.exports=function(u,c){var d=[][u];return!!d&&a(function(){d.call(null,c||function(){throw 1},1)})}},a691:function(r,o){var i=Math.ceil,a=Math.floor;r.exports=function(u){return isNaN(u=+u)?0:(u>0?a:i)(u)}},ab13:function(r,o,i){var a=i("b622"),u=a("match");r.exports=function(c){var d=/./;try{"/./"[c](d)}catch{try{return d[u]=!1,"/./"[c](d)}catch{}}return!1}},ac1f:function(r,o,i){var a=i("23e7"),u=i("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},ad6d:function(r,o,i){var a=i("825a");r.exports=function(){var u=a(this),c="";return u.global&&(c+="g"),u.ignoreCase&&(c+="i"),u.multiline&&(c+="m"),u.dotAll&&(c+="s"),u.unicode&&(c+="u"),u.sticky&&(c+="y"),c}},ae40:function(r,o,i){var a=i("83ab"),u=i("d039"),c=i("5135"),d=Object.defineProperty,f={},m=function(p){throw p};r.exports=function(p,h){if(c(f,p))return f[p];h||(h={});var _=[][p],w=c(h,"ACCESSORS")?h.ACCESSORS:!1,b=c(h,0)?h[0]:m,y=c(h,1)?h[1]:void 0;return f[p]=!!_&&!u(function(){if(w&&!a)return!0;var k={length:-1};w?d(k,1,{enumerable:!0,get:m}):k[1]=1,_.call(k,b,y)})}},ae93:function(r,o,i){var a=i("e163"),u=i("9112"),c=i("5135"),d=i("b622"),f=i("c430"),m=d("iterator"),p=!1,h=function(){return this},_,w,b;[].keys&&(b=[].keys(),"next"in b?(w=a(a(b)),w!==Object.prototype&&(_=w)):p=!0),_==null&&(_={}),!f&&!c(_,m)&&u(_,m,h),r.exports={IteratorPrototype:_,BUGGY_SAFARI_ITERATORS:p}},b041:function(r,o,i){var a=i("00ee"),u=i("f5df");r.exports=a?{}.toString:function(){return"[object "+u(this)+"]"}},b0c0:function(r,o,i){var a=i("83ab"),u=i("9bf2").f,c=Function.prototype,d=c.toString,f=/^\s*function ([^ (]*)/,m="name";a&&!(m in c)&&u(c,m,{configurable:!0,get:function(){try{return d.call(this).match(f)[1]}catch{return""}}})},b622:function(r,o,i){var a=i("da84"),u=i("5692"),c=i("5135"),d=i("90e3"),f=i("4930"),m=i("fdbf"),p=u("wks"),h=a.Symbol,_=m?h:h&&h.withoutSetter||d;r.exports=function(w){return c(p,w)||(f&&c(h,w)?p[w]=h[w]:p[w]=_("Symbol."+w)),p[w]}},b64b:function(r,o,i){var a=i("23e7"),u=i("7b0b"),c=i("df75"),d=i("d039"),f=d(function(){c(1)});a({target:"Object",stat:!0,forced:f},{keys:function(p){return c(u(p))}})},b727:function(r,o,i){var a=i("0366"),u=i("44ad"),c=i("7b0b"),d=i("50c4"),f=i("65f0"),m=[].push,p=function(h){var _=h==1,w=h==2,b=h==3,y=h==4,k=h==6,C=h==5||k;return function(x,T,L,I){for(var D=c(x),j=u(D),Z=a(T,L,3),X=d(j.length),U=0,q=I||f,Ce=_?q(x,X):w?q(x,0):void 0,te,ie;X>U;U++)if((C||U in j)&&(te=j[U],ie=Z(te,U,D),h)){if(_)Ce[U]=ie;else if(ie)switch(h){case 3:return!0;case 5:return te;case 6:return U;case 2:m.call(Ce,te)}else if(y)return!1}return k?-1:b||y?y:Ce}};r.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},c04e:function(r,o,i){var a=i("861d");r.exports=function(u,c){if(!a(u))return u;var d,f;if(c&&typeof(d=u.toString)=="function"&&!a(f=d.call(u))||typeof(d=u.valueOf)=="function"&&!a(f=d.call(u))||!c&&typeof(d=u.toString)=="function"&&!a(f=d.call(u)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(r,o){r.exports=!1},c6b6:function(r,o){var i={}.toString;r.exports=function(a){return i.call(a).slice(8,-1)}},c6cd:function(r,o,i){var a=i("da84"),u=i("ce4e"),c="__core-js_shared__",d=a[c]||u(c,{});r.exports=d},c740:function(r,o,i){var a=i("23e7"),u=i("b727").findIndex,c=i("44d2"),d=i("ae40"),f="findIndex",m=!0,p=d(f);f in[]&&Array(1)[f](function(){m=!1}),a({target:"Array",proto:!0,forced:m||!p},{findIndex:function(_){return u(this,_,arguments.length>1?arguments[1]:void 0)}}),c(f)},c8ba:function(r,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}r.exports=i},c975:function(r,o,i){var a=i("23e7"),u=i("4d64").indexOf,c=i("a640"),d=i("ae40"),f=[].indexOf,m=!!f&&1/[1].indexOf(1,-0)<0,p=c("indexOf"),h=d("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:m||!p||!h},{indexOf:function(w){return m?f.apply(this,arguments)||0:u(this,w,arguments.length>1?arguments[1]:void 0)}})},ca84:function(r,o,i){var a=i("5135"),u=i("fc6a"),c=i("4d64").indexOf,d=i("d012");r.exports=function(f,m){var p=u(f),h=0,_=[],w;for(w in p)!a(d,w)&&a(p,w)&&_.push(w);for(;m.length>h;)a(p,w=m[h++])&&(~c(_,w)||_.push(w));return _}},caad:function(r,o,i){var a=i("23e7"),u=i("4d64").includes,c=i("44d2"),d=i("ae40"),f=d("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!f},{includes:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}}),c("includes")},cc12:function(r,o,i){var a=i("da84"),u=i("861d"),c=a.document,d=u(c)&&u(c.createElement);r.exports=function(f){return d?c.createElement(f):{}}},ce4e:function(r,o,i){var a=i("da84"),u=i("9112");r.exports=function(c,d){try{u(a,c,d)}catch{a[c]=d}return d}},d012:function(r,o){r.exports={}},d039:function(r,o){r.exports=function(i){try{return!!i()}catch{return!0}}},d066:function(r,o,i){var a=i("428f"),u=i("da84"),c=function(d){return typeof d=="function"?d:void 0};r.exports=function(d,f){return arguments.length<2?c(a[d])||c(u[d]):a[d]&&a[d][f]||u[d]&&u[d][f]}},d1e7:function(r,o,i){var a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,c=u&&!a.call({1:2},1);o.f=c?function(f){var m=u(this,f);return!!m&&m.enumerable}:a},d28b:function(r,o,i){var a=i("746f");a("iterator")},d2bb:function(r,o,i){var a=i("825a"),u=i("3bbe");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,d={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(d,[]),c=d instanceof Array}catch{}return function(p,h){return a(p),u(h),c?f.call(p,h):p.__proto__=h,p}}():void 0)},d3b7:function(r,o,i){var a=i("00ee"),u=i("6eeb"),c=i("b041");a||u(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(r,o,i){var a=i("9bf2").f,u=i("5135"),c=i("b622"),d=c("toStringTag");r.exports=function(f,m,p){f&&!u(f=p?f:f.prototype,d)&&a(f,d,{configurable:!0,value:m})}},d58f:function(r,o,i){var a=i("1c0b"),u=i("7b0b"),c=i("44ad"),d=i("50c4"),f=function(m){return function(p,h,_,w){a(h);var b=u(p),y=c(b),k=d(b.length),C=m?k-1:0,x=m?-1:1;if(_<2)for(;;){if(C in y){w=y[C],C+=x;break}if(C+=x,m?C<0:k<=C)throw TypeError("Reduce of empty array with no initial value")}for(;m?C>=0:k>C;C+=x)C in y&&(w=h(w,y[C],C,b));return w}};r.exports={left:f(!1),right:f(!0)}},d784:function(r,o,i){i("ac1f");var a=i("6eeb"),u=i("d039"),c=i("b622"),d=i("9263"),f=i("9112"),m=c("species"),p=!u(function(){var y=/./;return y.exec=function(){var k=[];return k.groups={a:"7"},k},"".replace(y,"$<a>")!=="7"}),h=function(){return"a".replace(/./,"$0")==="$0"}(),_=c("replace"),w=function(){return/./[_]?/./[_]("a","$0")==="":!1}(),b=!u(function(){var y=/(?:)/,k=y.exec;y.exec=function(){return k.apply(this,arguments)};var C="ab".split(y);return C.length!==2||C[0]!=="a"||C[1]!=="b"});r.exports=function(y,k,C,x){var T=c(y),L=!u(function(){var U={};return U[T]=function(){return 7},""[y](U)!=7}),I=L&&!u(function(){var U=!1,q=/a/;return y==="split"&&(q={},q.constructor={},q.constructor[m]=function(){return q},q.flags="",q[T]=/./[T]),q.exec=function(){return U=!0,null},q[T](""),!U});if(!L||!I||y==="replace"&&!(p&&h&&!w)||y==="split"&&!b){var D=/./[T],j=C(T,""[y],function(U,q,Ce,te,ie){return q.exec===d?L&&!ie?{done:!0,value:D.call(q,Ce,te)}:{done:!0,value:U.call(Ce,q,te)}:{done:!1}},{REPLACE_KEEPS_$0:h,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:w}),Z=j[0],X=j[1];a(String.prototype,y,Z),a(RegExp.prototype,T,k==2?function(U,q){return X.call(U,this,q)}:function(U){return X.call(U,this)})}x&&f(RegExp.prototype[T],"sham",!0)}},d81d:function(r,o,i){var a=i("23e7"),u=i("b727").map,c=i("1dde"),d=i("ae40"),f=c("map"),m=d("map");a({target:"Array",proto:!0,forced:!f||!m},{map:function(h){return u(this,h,arguments.length>1?arguments[1]:void 0)}})},da84:function(r,o,i){(function(a){var u=function(c){return c&&c.Math==Math&&c};r.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof a=="object"&&a)||Function("return this")()}).call(this,i("c8ba"))},dbb4:function(r,o,i){var a=i("23e7"),u=i("83ab"),c=i("56ef"),d=i("fc6a"),f=i("06cf"),m=i("8418");a({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(h){for(var _=d(h),w=f.f,b=c(_),y={},k=0,C,x;b.length>k;)x=w(_,C=b[k++]),x!==void 0&&m(y,C,x);return y}})},dbf1:function(r,o,i){(function(a){i.d(o,"a",function(){return c});function u(){return typeof window!="undefined"?window.console:a.console}var c=u()}).call(this,i("c8ba"))},ddb0:function(r,o,i){var a=i("da84"),u=i("fdbc"),c=i("e260"),d=i("9112"),f=i("b622"),m=f("iterator"),p=f("toStringTag"),h=c.values;for(var _ in u){var w=a[_],b=w&&w.prototype;if(b){if(b[m]!==h)try{d(b,m,h)}catch{b[m]=h}if(b[p]||d(b,p,_),u[_]){for(var y in c)if(b[y]!==c[y])try{d(b,y,c[y])}catch{b[y]=c[y]}}}}},df75:function(r,o,i){var a=i("ca84"),u=i("7839");r.exports=Object.keys||function(d){return a(d,u)}},e01a:function(r,o,i){var a=i("23e7"),u=i("83ab"),c=i("da84"),d=i("5135"),f=i("861d"),m=i("9bf2").f,p=i("e893"),h=c.Symbol;if(u&&typeof h=="function"&&(!("description"in h.prototype)||h().description!==void 0)){var _={},w=function(){var T=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),L=this instanceof w?new h(T):T===void 0?h():h(T);return T===""&&(_[L]=!0),L};p(w,h);var b=w.prototype=h.prototype;b.constructor=w;var y=b.toString,k=String(h("test"))=="Symbol(test)",C=/^Symbol\((.*)\)[^)]+$/;m(b,"description",{configurable:!0,get:function(){var T=f(this)?this.valueOf():this,L=y.call(T);if(d(_,T))return"";var I=k?L.slice(7,-1):L.replace(C,"$1");return I===""?void 0:I}}),a({global:!0,forced:!0},{Symbol:w})}},e163:function(r,o,i){var a=i("5135"),u=i("7b0b"),c=i("f772"),d=i("e177"),f=c("IE_PROTO"),m=Object.prototype;r.exports=d?Object.getPrototypeOf:function(p){return p=u(p),a(p,f)?p[f]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?m:null}},e177:function(r,o,i){var a=i("d039");r.exports=!a(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},e260:function(r,o,i){var a=i("fc6a"),u=i("44d2"),c=i("3f8c"),d=i("69f3"),f=i("7dd0"),m="Array Iterator",p=d.set,h=d.getterFor(m);r.exports=f(Array,"Array",function(_,w){p(this,{type:m,target:a(_),index:0,kind:w})},function(){var _=h(this),w=_.target,b=_.kind,y=_.index++;return!w||y>=w.length?(_.target=void 0,{value:void 0,done:!0}):b=="keys"?{value:y,done:!1}:b=="values"?{value:w[y],done:!1}:{value:[y,w[y]],done:!1}},"values"),c.Arguments=c.Array,u("keys"),u("values"),u("entries")},e439:function(r,o,i){var a=i("23e7"),u=i("d039"),c=i("fc6a"),d=i("06cf").f,f=i("83ab"),m=u(function(){d(1)}),p=!f||m;a({target:"Object",stat:!0,forced:p,sham:!f},{getOwnPropertyDescriptor:function(_,w){return d(c(_),w)}})},e538:function(r,o,i){var a=i("b622");o.f=a},e893:function(r,o,i){var a=i("5135"),u=i("56ef"),c=i("06cf"),d=i("9bf2");r.exports=function(f,m){for(var p=u(m),h=d.f,_=c.f,w=0;w<p.length;w++){var b=p[w];a(f,b)||h(f,b,_(m,b))}}},e8b5:function(r,o,i){var a=i("c6b6");r.exports=Array.isArray||function(c){return a(c)=="Array"}},e95a:function(r,o,i){var a=i("b622"),u=i("3f8c"),c=a("iterator"),d=Array.prototype;r.exports=function(f){return f!==void 0&&(u.Array===f||d[c]===f)}},f5df:function(r,o,i){var a=i("00ee"),u=i("c6b6"),c=i("b622"),d=c("toStringTag"),f=u(function(){return arguments}())=="Arguments",m=function(p,h){try{return p[h]}catch{}};r.exports=a?u:function(p){var h,_,w;return p===void 0?"Undefined":p===null?"Null":typeof(_=m(h=Object(p),d))=="string"?_:f?u(h):(w=u(h))=="Object"&&typeof h.callee=="function"?"Arguments":w}},f772:function(r,o,i){var a=i("5692"),u=i("90e3"),c=a("keys");r.exports=function(d){return c[d]||(c[d]=u(d))}},fb15:function(r,o,i){if(i.r(o),typeof window!="undefined"){var a=window.document.currentScript;{var u=i("8875");a=u(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:u})}var c=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(i.p=c[1])}i("99af"),i("4de4"),i("4160"),i("c975"),i("d81d"),i("a434"),i("159b"),i("a4d3"),i("e439"),i("dbb4"),i("b64b");function d(F,M,G){return M in F?Object.defineProperty(F,M,{value:G,enumerable:!0,configurable:!0,writable:!0}):F[M]=G,F}function f(F,M){var G=Object.keys(F);if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(F);M&&(se=se.filter(function(ve){return Object.getOwnPropertyDescriptor(F,ve).enumerable})),G.push.apply(G,se)}return G}function m(F){for(var M=1;M<arguments.length;M++){var G=arguments[M]!=null?arguments[M]:{};M%2?f(Object(G),!0).forEach(function(se){d(F,se,G[se])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(G)):f(Object(G)).forEach(function(se){Object.defineProperty(F,se,Object.getOwnPropertyDescriptor(G,se))})}return F}function p(F){if(Array.isArray(F))return F}i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");function h(F,M){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))){var G=[],se=!0,ve=!1,Ie=void 0;try{for(var Te=F[Symbol.iterator](),He;!(se=(He=Te.next()).done)&&(G.push(He.value),!(M&&G.length===M));se=!0);}catch(Ge){ve=!0,Ie=Ge}finally{try{!se&&Te.return!=null&&Te.return()}finally{if(ve)throw Ie}}return G}}i("a630"),i("fb6a"),i("b0c0"),i("25f0");function _(F,M){(M==null||M>F.length)&&(M=F.length);for(var G=0,se=new Array(M);G<M;G++)se[G]=F[G];return se}function w(F,M){if(!!F){if(typeof F=="string")return _(F,M);var G=Object.prototype.toString.call(F).slice(8,-1);if(G==="Object"&&F.constructor&&(G=F.constructor.name),G==="Map"||G==="Set")return Array.from(F);if(G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _(F,M)}}function b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(F,M){return p(F)||h(F,M)||w(F,M)||b()}function k(F){if(Array.isArray(F))return _(F)}function C(F){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(F))return Array.from(F)}function x(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(F){return k(F)||C(F)||w(F)||x()}var L=i("a352"),I=i.n(L);function D(F){F.parentElement!==null&&F.parentElement.removeChild(F)}function j(F,M,G){var se=G===0?F.children[0]:F.children[G-1].nextSibling;F.insertBefore(M,se)}var Z=i("dbf1");i("13d5"),i("4fad"),i("ac1f"),i("5319");function X(F){var M=Object.create(null);return function(se){var ve=M[se];return ve||(M[se]=F(se))}}var U=/-(\w)/g,q=X(function(F){return F.replace(U,function(M,G){return G.toUpperCase()})});i("5db7"),i("73d9");var Ce=["Start","Add","Remove","Update","End"],te=["Choose","Unchoose","Sort","Filter","Clone"],ie=["Move"],ye=[ie,Ce,te].flatMap(function(F){return F}).map(function(F){return"on".concat(F)}),je={manage:ie,manageAndEmit:Ce,emit:te};function at(F){return ye.indexOf(F)!==-1}i("caad"),i("2ca0");var ce=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function W(F){return ce.includes(F)}function fe(F){return["transition-group","TransitionGroup"].includes(F)}function De(F){return["id","class","role","style"].includes(F)||F.startsWith("data-")||F.startsWith("aria-")||F.startsWith("on")}function Me(F){return F.reduce(function(M,G){var se=y(G,2),ve=se[0],Ie=se[1];return M[ve]=Ie,M},{})}function Ee(F){var M=F.$attrs,G=F.componentData,se=G===void 0?{}:G,ve=Me(Object.entries(M).filter(function(Ie){var Te=y(Ie,2),He=Te[0];return Te[1],De(He)}));return m(m({},ve),se)}function V(F){var M=F.$attrs,G=F.callBackBuilder,se=Me(le(M));Object.entries(G).forEach(function(Ie){var Te=y(Ie,2),He=Te[0],Ge=Te[1];je[He].forEach(function(xe){se["on".concat(xe)]=Ge(xe)})});var ve="[data-draggable]".concat(se.draggable||"");return m(m({},se),{},{draggable:ve})}function le(F){return Object.entries(F).filter(function(M){var G=y(M,2),se=G[0];return G[1],!De(se)}).map(function(M){var G=y(M,2),se=G[0],ve=G[1];return[q(se),ve]}).filter(function(M){var G=y(M,2),se=G[0];return G[1],!at(se)})}i("c740");function ne(F,M){if(!(F instanceof M))throw new TypeError("Cannot call a class as a function")}function pe(F,M){for(var G=0;G<M.length;G++){var se=M[G];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(F,se.key,se)}}function Pe(F,M,G){return M&&pe(F.prototype,M),G&&pe(F,G),F}var A=function(M){var G=M.el;return G},O=function(M,G){return M.__draggable_context=G},P=function(M){return M.__draggable_context},K=function(){function F(M){var G=M.nodes,se=G.header,ve=G.default,Ie=G.footer,Te=M.root,He=M.realList;ne(this,F),this.defaultNodes=ve,this.children=[].concat(T(se),T(ve),T(Ie)),this.externalComponent=Te.externalComponent,this.rootTransition=Te.transition,this.tag=Te.tag,this.realList=He}return Pe(F,[{key:"render",value:function(G,se){var ve=this.tag,Ie=this.children,Te=this._isRootComponent,He=Te?{default:function(){return Ie}}:Ie;return G(ve,se,He)}},{key:"updated",value:function(){var G=this.defaultNodes,se=this.realList;G.forEach(function(ve,Ie){O(A(ve),{element:se[Ie],index:Ie})})}},{key:"getUnderlyingVm",value:function(G){return P(G)}},{key:"getVmIndexFromDomIndex",value:function(G,se){var ve=this.defaultNodes,Ie=ve.length,Te=se.children,He=Te.item(G);if(He===null)return Ie;var Ge=P(He);if(Ge)return Ge.index;if(Ie===0)return 0;var xe=A(ve[0]),ue=T(Te).findIndex(function(Fe){return Fe===xe});return G<ue?0:Ie}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),F}(),J=i("8bbf");function ee(F,M){var G=F[M];return G?G():[]}function de(F){var M=F.$slots,G=F.realList,se=F.getKey,ve=G||[],Ie=["header","footer"].map(function(Fe){return ee(M,Fe)}),Te=y(Ie,2),He=Te[0],Ge=Te[1],xe=M.item;if(!xe)throw new Error("draggable element must have an item slot");var ue=ve.flatMap(function(Fe,Ze){return xe({element:Fe,index:Ze}).map(function(Qe){return Qe.key=se(Fe),Qe.props=m(m({},Qe.props||{}),{},{"data-draggable":!0}),Qe})});if(ue.length!==ve.length)throw new Error("Item slot must have only one child");return{header:He,footer:Ge,default:ue}}function ae(F){var M=fe(F),G=!W(F)&&!M;return{transition:M,externalComponent:G,tag:G?Object(J.resolveComponent)(F):M?J.TransitionGroup:F}}function oe(F){var M=F.$slots,G=F.tag,se=F.realList,ve=F.getKey,Ie=de({$slots:M,realList:se,getKey:ve}),Te=ae(G);return new K({nodes:Ie,root:Te,realList:se})}function Y(F,M){var G=this;Object(J.nextTick)(function(){return G.$emit(F.toLowerCase(),M)})}function R(F){var M=this;return function(G,se){if(M.realList!==null)return M["onDrag".concat(F)](G,se)}}function B(F){var M=this,G=R.call(this,F);return function(se,ve){G.call(M,se,ve),Y.call(M,F,se)}}var ge=null,we={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(M){return M}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Re=["update:modelValue","change"].concat(T([].concat(T(je.manageAndEmit),T(je.emit)).map(function(F){return F.toLowerCase()}))),qe=Object(J.defineComponent)({name:"draggable",inheritAttrs:!1,props:we,emits:Re,data:function(){return{error:!1}},render:function(){try{this.error=!1;var M=this.$slots,G=this.$attrs,se=this.tag,ve=this.componentData,Ie=this.realList,Te=this.getKey,He=oe({$slots:M,tag:se,realList:Ie,getKey:Te});this.componentStructure=He;var Ge=Ee({$attrs:G,componentData:ve});return He.render(J.h,Ge)}catch(xe){return this.error=!0,Object(J.h)("pre",{style:{color:"red"}},xe.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&Z.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var M=this;if(!this.error){var G=this.$attrs,se=this.$el,ve=this.componentStructure;ve.updated();var Ie=V({$attrs:G,callBackBuilder:{manageAndEmit:function(Ge){return B.call(M,Ge)},emit:function(Ge){return Y.bind(M,Ge)},manage:function(Ge){return R.call(M,Ge)}}}),Te=se.nodeType===1?se:se.parentElement;this._sortable=new I.a(Te,Ie),this.targetDomElement=Te,Te.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var M=this.list;return M||this.modelValue},getKey:function(){var M=this.itemKey;return typeof M=="function"?M:function(G){return G[M]}}},watch:{$attrs:{handler:function(M){var G=this._sortable;!G||le(M).forEach(function(se){var ve=y(se,2),Ie=ve[0],Te=ve[1];G.option(Ie,Te)})},deep:!0}},methods:{getUnderlyingVm:function(M){return this.componentStructure.getUnderlyingVm(M)||null},getUnderlyingPotencialDraggableComponent:function(M){return M.__draggable_component__},emitChanges:function(M){var G=this;Object(J.nextTick)(function(){return G.$emit("change",M)})},alterList:function(M){if(this.list){M(this.list);return}var G=T(this.modelValue);M(G),this.$emit("update:modelValue",G)},spliceList:function(){var M=arguments,G=function(ve){return ve.splice.apply(ve,T(M))};this.alterList(G)},updatePosition:function(M,G){var se=function(Ie){return Ie.splice(G,0,Ie.splice(M,1)[0])};this.alterList(se)},getRelatedContextFromMoveEvent:function(M){var G=M.to,se=M.related,ve=this.getUnderlyingPotencialDraggableComponent(G);if(!ve)return{component:ve};var Ie=ve.realList,Te={list:Ie,component:ve};if(G!==se&&Ie){var He=ve.getUnderlyingVm(se)||{};return m(m({},He),Te)}return Te},getVmIndexFromDomIndex:function(M){return this.componentStructure.getVmIndexFromDomIndex(M,this.targetDomElement)},onDragStart:function(M){this.context=this.getUnderlyingVm(M.item),M.item._underlying_vm_=this.clone(this.context.element),ge=M.item},onDragAdd:function(M){var G=M.item._underlying_vm_;if(G!==void 0){D(M.item);var se=this.getVmIndexFromDomIndex(M.newIndex);this.spliceList(se,0,G);var ve={element:G,newIndex:se};this.emitChanges({added:ve})}},onDragRemove:function(M){if(j(this.$el,M.item,M.oldIndex),M.pullMode==="clone"){D(M.clone);return}var G=this.context,se=G.index,ve=G.element;this.spliceList(se,1);var Ie={element:ve,oldIndex:se};this.emitChanges({removed:Ie})},onDragUpdate:function(M){D(M.item),j(M.from,M.item,M.oldIndex);var G=this.context.index,se=this.getVmIndexFromDomIndex(M.newIndex);this.updatePosition(G,se);var ve={element:this.context.element,oldIndex:G,newIndex:se};this.emitChanges({moved:ve})},computeFutureIndex:function(M,G){if(!M.element)return 0;var se=T(G.to.children).filter(function(He){return He.style.display!=="none"}),ve=se.indexOf(G.related),Ie=M.component.getVmIndexFromDomIndex(ve),Te=se.indexOf(ge)!==-1;return Te||!G.willInsertAfter?Ie:Ie+1},onDragMove:function(M,G){var se=this.move,ve=this.realList;if(!se||!ve)return!0;var Ie=this.getRelatedContextFromMoveEvent(M),Te=this.computeFutureIndex(Ie,M),He=m(m({},this.context),{},{futureIndex:Te}),Ge=m(m({},M),{},{relatedContext:Ie,draggedContext:He});return se(Ge,G)},onDragEnd:function(){ge=null}}}),Be=qe;o.default=Be},fb6a:function(r,o,i){var a=i("23e7"),u=i("861d"),c=i("e8b5"),d=i("23cb"),f=i("50c4"),m=i("fc6a"),p=i("8418"),h=i("b622"),_=i("1dde"),w=i("ae40"),b=_("slice"),y=w("slice",{ACCESSORS:!0,0:0,1:2}),k=h("species"),C=[].slice,x=Math.max;a({target:"Array",proto:!0,forced:!b||!y},{slice:function(L,I){var D=m(this),j=f(D.length),Z=d(L,j),X=d(I===void 0?j:I,j),U,q,Ce;if(c(D)&&(U=D.constructor,typeof U=="function"&&(U===Array||c(U.prototype))?U=void 0:u(U)&&(U=U[k],U===null&&(U=void 0)),U===Array||U===void 0))return C.call(D,Z,X);for(q=new(U===void 0?Array:U)(x(X-Z,0)),Ce=0;Z<X;Z++,Ce++)Z in D&&p(q,Ce,D[Z]);return q.length=Ce,q}})},fc6a:function(r,o,i){var a=i("44ad"),u=i("1d80");r.exports=function(c){return a(u(c))}},fdbc:function(r,o){r.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(r,o,i){var a=i("4930");r.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(my);var B$=ly(my.exports);const H$={name:"PageQueue",components:{ContentWithHeading:st,ListItemQueueItem:v2,draggable:B$,ModalDialogQueueItem:dy,ModalDialogAddUrlStream:RE,ModalDialogPlaylistSave:s$},data(){return{edit_mode:!1,show_details_modal:!1,show_url_modal:!1,show_pls_save_modal:!1,selected_item:{}}},computed:{state(){return this.$store.state.player},is_queue_save_allowed(){return this.$store.state.config.allow_modifying_stored_playlists&&this.$store.state.config.default_playlist_directory},queue(){return this.$store.state.queue},queue_items:{get(){return this.$store.state.queue.items},set(e){}},current_position(){const e=this.$store.getters.now_playing;return e===void 0||e.position===void 0?-1:this.$store.getters.now_playing.position},show_only_next_items(){return this.$store.state.show_only_next_items}},methods:{queue_clear(){N.queue_clear()},update_show_next_items(e){this.$store.commit(Og,!this.show_only_next_items)},remove(e){N.queue_remove(e.id)},move_item(e){const t=this.show_only_next_items?e.oldIndex+this.current_position:e.oldIndex,n=this.queue_items[t],s=n.position+(e.newIndex-e.oldIndex);s!==t&&N.queue_move(n.id,s)},open_dialog(e){this.selected_item=e,this.show_details_modal=!0},open_add_stream_dialog(e){this.show_url_modal=!0},save_dialog(e){this.queue_items.length>0&&(this.show_pls_save_modal=!0)}}},U$={class:"fd-page"},j$=["textContent"],q$=["textContent"],W$={class:"buttons is-centered"},G$={class:"icon"},K$=["textContent"],Z$={class:"icon"},Y$=["textContent"],J$={class:"icon"},X$=["textContent"],Q$={class:"icon"},eS=["textContent"],tS=["disabled"],nS={class:"icon"},sS=["textContent"],rS=["onClick"],oS={class:"icon has-text-dark"},iS=["onClick"],aS={class:"icon has-text-grey"};function lS(e,t,n,s,r,o){const i=$("mdicon"),a=$("list-item-queue-item"),u=$("draggable"),c=$("modal-dialog-queue-item"),d=$("modal-dialog-add-url-stream"),f=$("modal-dialog-playlist-save"),m=$("content-with-heading");return z(),S("div",U$,[v(m,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.queue.title"))},null,8,j$),l("p",{class:"heading",textContent:g(e.$t("page.queue.count",{count:o.queue.count}))},null,8,q$)]),"heading-right":E(()=>[l("div",W$,[l("a",{class:Ae(["button is-small",{"is-info":o.show_only_next_items}]),onClick:t[0]||(t[0]=(...p)=>o.update_show_next_items&&o.update_show_next_items(...p))},[l("span",G$,[v(i,{name:"arrow-collapse-down",size:"16"})]),l("span",{textContent:g(e.$t("page.queue.hide-previous"))},null,8,K$)],2),l("a",{class:"button is-small",onClick:t[1]||(t[1]=(...p)=>o.open_add_stream_dialog&&o.open_add_stream_dialog(...p))},[l("span",Z$,[v(i,{name:"web",size:"16"})]),l("span",{textContent:g(e.$t("page.queue.add-stream"))},null,8,Y$)]),l("a",{class:Ae(["button is-small",{"is-info":r.edit_mode}]),onClick:t[2]||(t[2]=p=>r.edit_mode=!r.edit_mode)},[l("span",J$,[v(i,{name:"pencil",size:"16"})]),l("span",{textContent:g(e.$t("page.queue.edit"))},null,8,X$)],2),l("a",{class:"button is-small",onClick:t[3]||(t[3]=(...p)=>o.queue_clear&&o.queue_clear(...p))},[l("span",Q$,[v(i,{name:"delete-empty",size:"16"})]),l("span",{textContent:g(e.$t("page.queue.clear"))},null,8,eS)]),o.is_queue_save_allowed?(z(),S("a",{key:0,class:"button is-small",disabled:o.queue_items.length===0,onClick:t[4]||(t[4]=(...p)=>o.save_dialog&&o.save_dialog(...p))},[l("span",nS,[v(i,{name:"content-save",size:"16"})]),l("span",{textContent:g(e.$t("page.queue.save"))},null,8,sS)],8,tS)):H("",!0)])]),content:E(()=>[v(u,{modelValue:o.queue_items,"onUpdate:modelValue":t[5]||(t[5]=p=>o.queue_items=p),handle:".handle","item-key":"id",onEnd:o.move_item},{item:E(({element:p,index:h})=>[v(a,{item:p,position:h,current_position:o.current_position,show_only_next_items:o.show_only_next_items,edit_mode:r.edit_mode},{actions:E(()=>[r.edit_mode?H("",!0):(z(),S("a",{key:0,onClick:it(_=>o.open_dialog(p),["prevent","stop"])},[l("span",oS,[v(i,{name:"dots-vertical",size:"16"})])],8,rS)),p.id!==o.state.item_id&&r.edit_mode?(z(),S("a",{key:1,onClick:it(_=>o.remove(p),["prevent","stop"])},[l("span",aS,[v(i,{name:"delete",size:"18"})])],8,iS)):H("",!0)]),_:2},1032,["item","position","current_position","show_only_next_items","edit_mode"])]),_:1},8,["modelValue","onEnd"]),v(c,{show:r.show_details_modal,item:r.selected_item,onClose:t[6]||(t[6]=p=>r.show_details_modal=!1)},null,8,["show","item"]),v(d,{show:r.show_url_modal,onClose:t[7]||(t[7]=p=>r.show_url_modal=!1)},null,8,["show"]),o.is_queue_save_allowed?(z(),be(f,{key:0,show:r.show_pls_save_modal,onClose:t[8]||(t[8]=p=>r.show_pls_save_modal=!1)},null,8,["show"])):H("",!0)]),_:1})])}var uS=re(H$,[["render",lS]]),xy={exports:{}},cS=[{value:"#B0171F",name:"indian red"},{value:"#DC143C",css:!0,name:"crimson"},{value:"#FFB6C1",css:!0,name:"lightpink"},{value:"#FFAEB9",name:"lightpink 1"},{value:"#EEA2AD",name:"lightpink 2"},{value:"#CD8C95",name:"lightpink 3"},{value:"#8B5F65",name:"lightpink 4"},{value:"#FFC0CB",css:!0,name:"pink"},{value:"#FFB5C5",name:"pink 1"},{value:"#EEA9B8",name:"pink 2"},{value:"#CD919E",name:"pink 3"},{value:"#8B636C",name:"pink 4"},{value:"#DB7093",css:!0,name:"palevioletred"},{value:"#FF82AB",name:"palevioletred 1"},{value:"#EE799F",name:"palevioletred 2"},{value:"#CD6889",name:"palevioletred 3"},{value:"#8B475D",name:"palevioletred 4"},{value:"#FFF0F5",name:"lavenderblush 1"},{value:"#FFF0F5",css:!0,name:"lavenderblush"},{value:"#EEE0E5",name:"lavenderblush 2"},{value:"#CDC1C5",name:"lavenderblush 3"},{value:"#8B8386",name:"lavenderblush 4"},{value:"#FF3E96",name:"violetred 1"},{value:"#EE3A8C",name:"violetred 2"},{value:"#CD3278",name:"violetred 3"},{value:"#8B2252",name:"violetred 4"},{value:"#FF69B4",css:!0,name:"hotpink"},{value:"#FF6EB4",name:"hotpink 1"},{value:"#EE6AA7",name:"hotpink 2"},{value:"#CD6090",name:"hotpink 3"},{value:"#8B3A62",name:"hotpink 4"},{value:"#872657",name:"raspberry"},{value:"#FF1493",name:"deeppink 1"},{value:"#FF1493",css:!0,name:"deeppink"},{value:"#EE1289",name:"deeppink 2"},{value:"#CD1076",name:"deeppink 3"},{value:"#8B0A50",name:"deeppink 4"},{value:"#FF34B3",name:"maroon 1"},{value:"#EE30A7",name:"maroon 2"},{value:"#CD2990",name:"maroon 3"},{value:"#8B1C62",name:"maroon 4"},{value:"#C71585",css:!0,name:"mediumvioletred"},{value:"#D02090",name:"violetred"},{value:"#DA70D6",css:!0,name:"orchid"},{value:"#FF83FA",name:"orchid 1"},{value:"#EE7AE9",name:"orchid 2"},{value:"#CD69C9",name:"orchid 3"},{value:"#8B4789",name:"orchid 4"},{value:"#D8BFD8",css:!0,name:"thistle"},{value:"#FFE1FF",name:"thistle 1"},{value:"#EED2EE",name:"thistle 2"},{value:"#CDB5CD",name:"thistle 3"},{value:"#8B7B8B",name:"thistle 4"},{value:"#FFBBFF",name:"plum 1"},{value:"#EEAEEE",name:"plum 2"},{value:"#CD96CD",name:"plum 3"},{value:"#8B668B",name:"plum 4"},{value:"#DDA0DD",css:!0,name:"plum"},{value:"#EE82EE",css:!0,name:"violet"},{value:"#FF00FF",vga:!0,name:"magenta"},{value:"#FF00FF",vga:!0,css:!0,name:"fuchsia"},{value:"#EE00EE",name:"magenta 2"},{value:"#CD00CD",name:"magenta 3"},{value:"#8B008B",name:"magenta 4"},{value:"#8B008B",css:!0,name:"darkmagenta"},{value:"#800080",vga:!0,css:!0,name:"purple"},{value:"#BA55D3",css:!0,name:"mediumorchid"},{value:"#E066FF",name:"mediumorchid 1"},{value:"#D15FEE",name:"mediumorchid 2"},{value:"#B452CD",name:"mediumorchid 3"},{value:"#7A378B",name:"mediumorchid 4"},{value:"#9400D3",css:!0,name:"darkviolet"},{value:"#9932CC",css:!0,name:"darkorchid"},{value:"#BF3EFF",name:"darkorchid 1"},{value:"#B23AEE",name:"darkorchid 2"},{value:"#9A32CD",name:"darkorchid 3"},{value:"#68228B",name:"darkorchid 4"},{value:"#4B0082",css:!0,name:"indigo"},{value:"#8A2BE2",css:!0,name:"blueviolet"},{value:"#9B30FF",name:"purple 1"},{value:"#912CEE",name:"purple 2"},{value:"#7D26CD",name:"purple 3"},{value:"#551A8B",name:"purple 4"},{value:"#9370DB",css:!0,name:"mediumpurple"},{value:"#AB82FF",name:"mediumpurple 1"},{value:"#9F79EE",name:"mediumpurple 2"},{value:"#8968CD",name:"mediumpurple 3"},{value:"#5D478B",name:"mediumpurple 4"},{value:"#483D8B",css:!0,name:"darkslateblue"},{value:"#8470FF",name:"lightslateblue"},{value:"#7B68EE",css:!0,name:"mediumslateblue"},{value:"#6A5ACD",css:!0,name:"slateblue"},{value:"#836FFF",name:"slateblue 1"},{value:"#7A67EE",name:"slateblue 2"},{value:"#6959CD",name:"slateblue 3"},{value:"#473C8B",name:"slateblue 4"},{value:"#F8F8FF",css:!0,name:"ghostwhite"},{value:"#E6E6FA",css:!0,name:"lavender"},{value:"#0000FF",vga:!0,css:!0,name:"blue"},{value:"#0000EE",name:"blue 2"},{value:"#0000CD",name:"blue 3"},{value:"#0000CD",css:!0,name:"mediumblue"},{value:"#00008B",name:"blue 4"},{value:"#00008B",css:!0,name:"darkblue"},{value:"#000080",vga:!0,css:!0,name:"navy"},{value:"#191970",css:!0,name:"midnightblue"},{value:"#3D59AB",name:"cobalt"},{value:"#4169E1",css:!0,name:"royalblue"},{value:"#4876FF",name:"royalblue 1"},{value:"#436EEE",name:"royalblue 2"},{value:"#3A5FCD",name:"royalblue 3"},{value:"#27408B",name:"royalblue 4"},{value:"#6495ED",css:!0,name:"cornflowerblue"},{value:"#B0C4DE",css:!0,name:"lightsteelblue"},{value:"#CAE1FF",name:"lightsteelblue 1"},{value:"#BCD2EE",name:"lightsteelblue 2"},{value:"#A2B5CD",name:"lightsteelblue 3"},{value:"#6E7B8B",name:"lightsteelblue 4"},{value:"#778899",css:!0,name:"lightslategray"},{value:"#708090",css:!0,name:"slategray"},{value:"#C6E2FF",name:"slategray 1"},{value:"#B9D3EE",name:"slategray 2"},{value:"#9FB6CD",name:"slategray 3"},{value:"#6C7B8B",name:"slategray 4"},{value:"#1E90FF",name:"dodgerblue 1"},{value:"#1E90FF",css:!0,name:"dodgerblue"},{value:"#1C86EE",name:"dodgerblue 2"},{value:"#1874CD",name:"dodgerblue 3"},{value:"#104E8B",name:"dodgerblue 4"},{value:"#F0F8FF",css:!0,name:"aliceblue"},{value:"#4682B4",css:!0,name:"steelblue"},{value:"#63B8FF",name:"steelblue 1"},{value:"#5CACEE",name:"steelblue 2"},{value:"#4F94CD",name:"steelblue 3"},{value:"#36648B",name:"steelblue 4"},{value:"#87CEFA",css:!0,name:"lightskyblue"},{value:"#B0E2FF",name:"lightskyblue 1"},{value:"#A4D3EE",name:"lightskyblue 2"},{value:"#8DB6CD",name:"lightskyblue 3"},{value:"#607B8B",name:"lightskyblue 4"},{value:"#87CEFF",name:"skyblue 1"},{value:"#7EC0EE",name:"skyblue 2"},{value:"#6CA6CD",name:"skyblue 3"},{value:"#4A708B",name:"skyblue 4"},{value:"#87CEEB",css:!0,name:"skyblue"},{value:"#00BFFF",name:"deepskyblue 1"},{value:"#00BFFF",css:!0,name:"deepskyblue"},{value:"#00B2EE",name:"deepskyblue 2"},{value:"#009ACD",name:"deepskyblue 3"},{value:"#00688B",name:"deepskyblue 4"},{value:"#33A1C9",name:"peacock"},{value:"#ADD8E6",css:!0,name:"lightblue"},{value:"#BFEFFF",name:"lightblue 1"},{value:"#B2DFEE",name:"lightblue 2"},{value:"#9AC0CD",name:"lightblue 3"},{value:"#68838B",name:"lightblue 4"},{value:"#B0E0E6",css:!0,name:"powderblue"},{value:"#98F5FF",name:"cadetblue 1"},{value:"#8EE5EE",name:"cadetblue 2"},{value:"#7AC5CD",name:"cadetblue 3"},{value:"#53868B",name:"cadetblue 4"},{value:"#00F5FF",name:"turquoise 1"},{value:"#00E5EE",name:"turquoise 2"},{value:"#00C5CD",name:"turquoise 3"},{value:"#00868B",name:"turquoise 4"},{value:"#5F9EA0",css:!0,name:"cadetblue"},{value:"#00CED1",css:!0,name:"darkturquoise"},{value:"#F0FFFF",name:"azure 1"},{value:"#F0FFFF",css:!0,name:"azure"},{value:"#E0EEEE",name:"azure 2"},{value:"#C1CDCD",name:"azure 3"},{value:"#838B8B",name:"azure 4"},{value:"#E0FFFF",name:"lightcyan 1"},{value:"#E0FFFF",css:!0,name:"lightcyan"},{value:"#D1EEEE",name:"lightcyan 2"},{value:"#B4CDCD",name:"lightcyan 3"},{value:"#7A8B8B",name:"lightcyan 4"},{value:"#BBFFFF",name:"paleturquoise 1"},{value:"#AEEEEE",name:"paleturquoise 2"},{value:"#AEEEEE",css:!0,name:"paleturquoise"},{value:"#96CDCD",name:"paleturquoise 3"},{value:"#668B8B",name:"paleturquoise 4"},{value:"#2F4F4F",css:!0,name:"darkslategray"},{value:"#97FFFF",name:"darkslategray 1"},{value:"#8DEEEE",name:"darkslategray 2"},{value:"#79CDCD",name:"darkslategray 3"},{value:"#528B8B",name:"darkslategray 4"},{value:"#00FFFF",name:"cyan"},{value:"#00FFFF",css:!0,name:"aqua"},{value:"#00EEEE",name:"cyan 2"},{value:"#00CDCD",name:"cyan 3"},{value:"#008B8B",name:"cyan 4"},{value:"#008B8B",css:!0,name:"darkcyan"},{value:"#008080",vga:!0,css:!0,name:"teal"},{value:"#48D1CC",css:!0,name:"mediumturquoise"},{value:"#20B2AA",css:!0,name:"lightseagreen"},{value:"#03A89E",name:"manganeseblue"},{value:"#40E0D0",css:!0,name:"turquoise"},{value:"#808A87",name:"coldgrey"},{value:"#00C78C",name:"turquoiseblue"},{value:"#7FFFD4",name:"aquamarine 1"},{value:"#7FFFD4",css:!0,name:"aquamarine"},{value:"#76EEC6",name:"aquamarine 2"},{value:"#66CDAA",name:"aquamarine 3"},{value:"#66CDAA",css:!0,name:"mediumaquamarine"},{value:"#458B74",name:"aquamarine 4"},{value:"#00FA9A",css:!0,name:"mediumspringgreen"},{value:"#F5FFFA",css:!0,name:"mintcream"},{value:"#00FF7F",css:!0,name:"springgreen"},{value:"#00EE76",name:"springgreen 1"},{value:"#00CD66",name:"springgreen 2"},{value:"#008B45",name:"springgreen 3"},{value:"#3CB371",css:!0,name:"mediumseagreen"},{value:"#54FF9F",name:"seagreen 1"},{value:"#4EEE94",name:"seagreen 2"},{value:"#43CD80",name:"seagreen 3"},{value:"#2E8B57",name:"seagreen 4"},{value:"#2E8B57",css:!0,name:"seagreen"},{value:"#00C957",name:"emeraldgreen"},{value:"#BDFCC9",name:"mint"},{value:"#3D9140",name:"cobaltgreen"},{value:"#F0FFF0",name:"honeydew 1"},{value:"#F0FFF0",css:!0,name:"honeydew"},{value:"#E0EEE0",name:"honeydew 2"},{value:"#C1CDC1",name:"honeydew 3"},{value:"#838B83",name:"honeydew 4"},{value:"#8FBC8F",css:!0,name:"darkseagreen"},{value:"#C1FFC1",name:"darkseagreen 1"},{value:"#B4EEB4",name:"darkseagreen 2"},{value:"#9BCD9B",name:"darkseagreen 3"},{value:"#698B69",name:"darkseagreen 4"},{value:"#98FB98",css:!0,name:"palegreen"},{value:"#9AFF9A",name:"palegreen 1"},{value:"#90EE90",name:"palegreen 2"},{value:"#90EE90",css:!0,name:"lightgreen"},{value:"#7CCD7C",name:"palegreen 3"},{value:"#548B54",name:"palegreen 4"},{value:"#32CD32",css:!0,name:"limegreen"},{value:"#228B22",css:!0,name:"forestgreen"},{value:"#00FF00",vga:!0,name:"green 1"},{value:"#00FF00",vga:!0,css:!0,name:"lime"},{value:"#00EE00",name:"green 2"},{value:"#00CD00",name:"green 3"},{value:"#008B00",name:"green 4"},{value:"#008000",vga:!0,css:!0,name:"green"},{value:"#006400",css:!0,name:"darkgreen"},{value:"#308014",name:"sapgreen"},{value:"#7CFC00",css:!0,name:"lawngreen"},{value:"#7FFF00",name:"chartreuse 1"},{value:"#7FFF00",css:!0,name:"chartreuse"},{value:"#76EE00",name:"chartreuse 2"},{value:"#66CD00",name:"chartreuse 3"},{value:"#458B00",name:"chartreuse 4"},{value:"#ADFF2F",css:!0,name:"greenyellow"},{value:"#CAFF70",name:"darkolivegreen 1"},{value:"#BCEE68",name:"darkolivegreen 2"},{value:"#A2CD5A",name:"darkolivegreen 3"},{value:"#6E8B3D",name:"darkolivegreen 4"},{value:"#556B2F",css:!0,name:"darkolivegreen"},{value:"#6B8E23",css:!0,name:"olivedrab"},{value:"#C0FF3E",name:"olivedrab 1"},{value:"#B3EE3A",name:"olivedrab 2"},{value:"#9ACD32",name:"olivedrab 3"},{value:"#9ACD32",css:!0,name:"yellowgreen"},{value:"#698B22",name:"olivedrab 4"},{value:"#FFFFF0",name:"ivory 1"},{value:"#FFFFF0",css:!0,name:"ivory"},{value:"#EEEEE0",name:"ivory 2"},{value:"#CDCDC1",name:"ivory 3"},{value:"#8B8B83",name:"ivory 4"},{value:"#F5F5DC",css:!0,name:"beige"},{value:"#FFFFE0",name:"lightyellow 1"},{value:"#FFFFE0",css:!0,name:"lightyellow"},{value:"#EEEED1",name:"lightyellow 2"},{value:"#CDCDB4",name:"lightyellow 3"},{value:"#8B8B7A",name:"lightyellow 4"},{value:"#FAFAD2",css:!0,name:"lightgoldenrodyellow"},{value:"#FFFF00",vga:!0,name:"yellow 1"},{value:"#FFFF00",vga:!0,css:!0,name:"yellow"},{value:"#EEEE00",name:"yellow 2"},{value:"#CDCD00",name:"yellow 3"},{value:"#8B8B00",name:"yellow 4"},{value:"#808069",name:"warmgrey"},{value:"#808000",vga:!0,css:!0,name:"olive"},{value:"#BDB76B",css:!0,name:"darkkhaki"},{value:"#FFF68F",name:"khaki 1"},{value:"#EEE685",name:"khaki 2"},{value:"#CDC673",name:"khaki 3"},{value:"#8B864E",name:"khaki 4"},{value:"#F0E68C",css:!0,name:"khaki"},{value:"#EEE8AA",css:!0,name:"palegoldenrod"},{value:"#FFFACD",name:"lemonchiffon 1"},{value:"#FFFACD",css:!0,name:"lemonchiffon"},{value:"#EEE9BF",name:"lemonchiffon 2"},{value:"#CDC9A5",name:"lemonchiffon 3"},{value:"#8B8970",name:"lemonchiffon 4"},{value:"#FFEC8B",name:"lightgoldenrod 1"},{value:"#EEDC82",name:"lightgoldenrod 2"},{value:"#CDBE70",name:"lightgoldenrod 3"},{value:"#8B814C",name:"lightgoldenrod 4"},{value:"#E3CF57",name:"banana"},{value:"#FFD700",name:"gold 1"},{value:"#FFD700",css:!0,name:"gold"},{value:"#EEC900",name:"gold 2"},{value:"#CDAD00",name:"gold 3"},{value:"#8B7500",name:"gold 4"},{value:"#FFF8DC",name:"cornsilk 1"},{value:"#FFF8DC",css:!0,name:"cornsilk"},{value:"#EEE8CD",name:"cornsilk 2"},{value:"#CDC8B1",name:"cornsilk 3"},{value:"#8B8878",name:"cornsilk 4"},{value:"#DAA520",css:!0,name:"goldenrod"},{value:"#FFC125",name:"goldenrod 1"},{value:"#EEB422",name:"goldenrod 2"},{value:"#CD9B1D",name:"goldenrod 3"},{value:"#8B6914",name:"goldenrod 4"},{value:"#B8860B",css:!0,name:"darkgoldenrod"},{value:"#FFB90F",name:"darkgoldenrod 1"},{value:"#EEAD0E",name:"darkgoldenrod 2"},{value:"#CD950C",name:"darkgoldenrod 3"},{value:"#8B6508",name:"darkgoldenrod 4"},{value:"#FFA500",name:"orange 1"},{value:"#FF8000",css:!0,name:"orange"},{value:"#EE9A00",name:"orange 2"},{value:"#CD8500",name:"orange 3"},{value:"#8B5A00",name:"orange 4"},{value:"#FFFAF0",css:!0,name:"floralwhite"},{value:"#FDF5E6",css:!0,name:"oldlace"},{value:"#F5DEB3",css:!0,name:"wheat"},{value:"#FFE7BA",name:"wheat 1"},{value:"#EED8AE",name:"wheat 2"},{value:"#CDBA96",name:"wheat 3"},{value:"#8B7E66",name:"wheat 4"},{value:"#FFE4B5",css:!0,name:"moccasin"},{value:"#FFEFD5",css:!0,name:"papayawhip"},{value:"#FFEBCD",css:!0,name:"blanchedalmond"},{value:"#FFDEAD",name:"navajowhite 1"},{value:"#FFDEAD",css:!0,name:"navajowhite"},{value:"#EECFA1",name:"navajowhite 2"},{value:"#CDB38B",name:"navajowhite 3"},{value:"#8B795E",name:"navajowhite 4"},{value:"#FCE6C9",name:"eggshell"},{value:"#D2B48C",css:!0,name:"tan"},{value:"#9C661F",name:"brick"},{value:"#FF9912",name:"cadmiumyellow"},{value:"#FAEBD7",css:!0,name:"antiquewhite"},{value:"#FFEFDB",name:"antiquewhite 1"},{value:"#EEDFCC",name:"antiquewhite 2"},{value:"#CDC0B0",name:"antiquewhite 3"},{value:"#8B8378",name:"antiquewhite 4"},{value:"#DEB887",css:!0,name:"burlywood"},{value:"#FFD39B",name:"burlywood 1"},{value:"#EEC591",name:"burlywood 2"},{value:"#CDAA7D",name:"burlywood 3"},{value:"#8B7355",name:"burlywood 4"},{value:"#FFE4C4",name:"bisque 1"},{value:"#FFE4C4",css:!0,name:"bisque"},{value:"#EED5B7",name:"bisque 2"},{value:"#CDB79E",name:"bisque 3"},{value:"#8B7D6B",name:"bisque 4"},{value:"#E3A869",name:"melon"},{value:"#ED9121",name:"carrot"},{value:"#FF8C00",css:!0,name:"darkorange"},{value:"#FF7F00",name:"darkorange 1"},{value:"#EE7600",name:"darkorange 2"},{value:"#CD6600",name:"darkorange 3"},{value:"#8B4500",name:"darkorange 4"},{value:"#FFA54F",name:"tan 1"},{value:"#EE9A49",name:"tan 2"},{value:"#CD853F",name:"tan 3"},{value:"#CD853F",css:!0,name:"peru"},{value:"#8B5A2B",name:"tan 4"},{value:"#FAF0E6",css:!0,name:"linen"},{value:"#FFDAB9",name:"peachpuff 1"},{value:"#FFDAB9",css:!0,name:"peachpuff"},{value:"#EECBAD",name:"peachpuff 2"},{value:"#CDAF95",name:"peachpuff 3"},{value:"#8B7765",name:"peachpuff 4"},{value:"#FFF5EE",name:"seashell 1"},{value:"#FFF5EE",css:!0,name:"seashell"},{value:"#EEE5DE",name:"seashell 2"},{value:"#CDC5BF",name:"seashell 3"},{value:"#8B8682",name:"seashell 4"},{value:"#F4A460",css:!0,name:"sandybrown"},{value:"#C76114",name:"rawsienna"},{value:"#D2691E",css:!0,name:"chocolate"},{value:"#FF7F24",name:"chocolate 1"},{value:"#EE7621",name:"chocolate 2"},{value:"#CD661D",name:"chocolate 3"},{value:"#8B4513",name:"chocolate 4"},{value:"#8B4513",css:!0,name:"saddlebrown"},{value:"#292421",name:"ivoryblack"},{value:"#FF7D40",name:"flesh"},{value:"#FF6103",name:"cadmiumorange"},{value:"#8A360F",name:"burntsienna"},{value:"#A0522D",css:!0,name:"sienna"},{value:"#FF8247",name:"sienna 1"},{value:"#EE7942",name:"sienna 2"},{value:"#CD6839",name:"sienna 3"},{value:"#8B4726",name:"sienna 4"},{value:"#FFA07A",name:"lightsalmon 1"},{value:"#FFA07A",css:!0,name:"lightsalmon"},{value:"#EE9572",name:"lightsalmon 2"},{value:"#CD8162",name:"lightsalmon 3"},{value:"#8B5742",name:"lightsalmon 4"},{value:"#FF7F50",css:!0,name:"coral"},{value:"#FF4500",name:"orangered 1"},{value:"#FF4500",css:!0,name:"orangered"},{value:"#EE4000",name:"orangered 2"},{value:"#CD3700",name:"orangered 3"},{value:"#8B2500",name:"orangered 4"},{value:"#5E2612",name:"sepia"},{value:"#E9967A",css:!0,name:"darksalmon"},{value:"#FF8C69",name:"salmon 1"},{value:"#EE8262",name:"salmon 2"},{value:"#CD7054",name:"salmon 3"},{value:"#8B4C39",name:"salmon 4"},{value:"#FF7256",name:"coral 1"},{value:"#EE6A50",name:"coral 2"},{value:"#CD5B45",name:"coral 3"},{value:"#8B3E2F",name:"coral 4"},{value:"#8A3324",name:"burntumber"},{value:"#FF6347",name:"tomato 1"},{value:"#FF6347",css:!0,name:"tomato"},{value:"#EE5C42",name:"tomato 2"},{value:"#CD4F39",name:"tomato 3"},{value:"#8B3626",name:"tomato 4"},{value:"#FA8072",css:!0,name:"salmon"},{value:"#FFE4E1",name:"mistyrose 1"},{value:"#FFE4E1",css:!0,name:"mistyrose"},{value:"#EED5D2",name:"mistyrose 2"},{value:"#CDB7B5",name:"mistyrose 3"},{value:"#8B7D7B",name:"mistyrose 4"},{value:"#FFFAFA",name:"snow 1"},{value:"#FFFAFA",css:!0,name:"snow"},{value:"#EEE9E9",name:"snow 2"},{value:"#CDC9C9",name:"snow 3"},{value:"#8B8989",name:"snow 4"},{value:"#BC8F8F",css:!0,name:"rosybrown"},{value:"#FFC1C1",name:"rosybrown 1"},{value:"#EEB4B4",name:"rosybrown 2"},{value:"#CD9B9B",name:"rosybrown 3"},{value:"#8B6969",name:"rosybrown 4"},{value:"#F08080",css:!0,name:"lightcoral"},{value:"#CD5C5C",css:!0,name:"indianred"},{value:"#FF6A6A",name:"indianred 1"},{value:"#EE6363",name:"indianred 2"},{value:"#8B3A3A",name:"indianred 4"},{value:"#CD5555",name:"indianred 3"},{value:"#A52A2A",css:!0,name:"brown"},{value:"#FF4040",name:"brown 1"},{value:"#EE3B3B",name:"brown 2"},{value:"#CD3333",name:"brown 3"},{value:"#8B2323",name:"brown 4"},{value:"#B22222",css:!0,name:"firebrick"},{value:"#FF3030",name:"firebrick 1"},{value:"#EE2C2C",name:"firebrick 2"},{value:"#CD2626",name:"firebrick 3"},{value:"#8B1A1A",name:"firebrick 4"},{value:"#FF0000",vga:!0,name:"red 1"},{value:"#FF0000",vga:!0,css:!0,name:"red"},{value:"#EE0000",name:"red 2"},{value:"#CD0000",name:"red 3"},{value:"#8B0000",name:"red 4"},{value:"#8B0000",css:!0,name:"darkred"},{value:"#800000",vga:!0,css:!0,name:"maroon"},{value:"#8E388E",name:"sgi beet"},{value:"#7171C6",name:"sgi slateblue"},{value:"#7D9EC0",name:"sgi lightblue"},{value:"#388E8E",name:"sgi teal"},{value:"#71C671",name:"sgi chartreuse"},{value:"#8E8E38",name:"sgi olivedrab"},{value:"#C5C1AA",name:"sgi brightgray"},{value:"#C67171",name:"sgi salmon"},{value:"#555555",name:"sgi darkgray"},{value:"#1E1E1E",name:"sgi gray 12"},{value:"#282828",name:"sgi gray 16"},{value:"#515151",name:"sgi gray 32"},{value:"#5B5B5B",name:"sgi gray 36"},{value:"#848484",name:"sgi gray 52"},{value:"#8E8E8E",name:"sgi gray 56"},{value:"#AAAAAA",name:"sgi lightgray"},{value:"#B7B7B7",name:"sgi gray 72"},{value:"#C1C1C1",name:"sgi gray 76"},{value:"#EAEAEA",name:"sgi gray 92"},{value:"#F4F4F4",name:"sgi gray 96"},{value:"#FFFFFF",vga:!0,css:!0,name:"white"},{value:"#F5F5F5",name:"white smoke"},{value:"#F5F5F5",name:"gray 96"},{value:"#DCDCDC",css:!0,name:"gainsboro"},{value:"#D3D3D3",css:!0,name:"lightgrey"},{value:"#C0C0C0",vga:!0,css:!0,name:"silver"},{value:"#A9A9A9",css:!0,name:"darkgray"},{value:"#808080",vga:!0,css:!0,name:"gray"},{value:"#696969",css:!0,name:"dimgray"},{value:"#696969",name:"gray 42"},{value:"#000000",vga:!0,css:!0,name:"black"},{value:"#FCFCFC",name:"gray 99"},{value:"#FAFAFA",name:"gray 98"},{value:"#F7F7F7",name:"gray 97"},{value:"#F2F2F2",name:"gray 95"},{value:"#F0F0F0",name:"gray 94"},{value:"#EDEDED",name:"gray 93"},{value:"#EBEBEB",name:"gray 92"},{value:"#E8E8E8",name:"gray 91"},{value:"#E5E5E5",name:"gray 90"},{value:"#E3E3E3",name:"gray 89"},{value:"#E0E0E0",name:"gray 88"},{value:"#DEDEDE",name:"gray 87"},{value:"#DBDBDB",name:"gray 86"},{value:"#D9D9D9",name:"gray 85"},{value:"#D6D6D6",name:"gray 84"},{value:"#D4D4D4",name:"gray 83"},{value:"#D1D1D1",name:"gray 82"},{value:"#CFCFCF",name:"gray 81"},{value:"#CCCCCC",name:"gray 80"},{value:"#C9C9C9",name:"gray 79"},{value:"#C7C7C7",name:"gray 78"},{value:"#C4C4C4",name:"gray 77"},{value:"#C2C2C2",name:"gray 76"},{value:"#BFBFBF",name:"gray 75"},{value:"#BDBDBD",name:"gray 74"},{value:"#BABABA",name:"gray 73"},{value:"#B8B8B8",name:"gray 72"},{value:"#B5B5B5",name:"gray 71"},{value:"#B3B3B3",name:"gray 70"},{value:"#B0B0B0",name:"gray 69"},{value:"#ADADAD",name:"gray 68"},{value:"#ABABAB",name:"gray 67"},{value:"#A8A8A8",name:"gray 66"},{value:"#A6A6A6",name:"gray 65"},{value:"#A3A3A3",name:"gray 64"},{value:"#A1A1A1",name:"gray 63"},{value:"#9E9E9E",name:"gray 62"},{value:"#9C9C9C",name:"gray 61"},{value:"#999999",name:"gray 60"},{value:"#969696",name:"gray 59"},{value:"#949494",name:"gray 58"},{value:"#919191",name:"gray 57"},{value:"#8F8F8F",name:"gray 56"},{value:"#8C8C8C",name:"gray 55"},{value:"#8A8A8A",name:"gray 54"},{value:"#878787",name:"gray 53"},{value:"#858585",name:"gray 52"},{value:"#828282",name:"gray 51"},{value:"#7F7F7F",name:"gray 50"},{value:"#7D7D7D",name:"gray 49"},{value:"#7A7A7A",name:"gray 48"},{value:"#787878",name:"gray 47"},{value:"#757575",name:"gray 46"},{value:"#737373",name:"gray 45"},{value:"#707070",name:"gray 44"},{value:"#6E6E6E",name:"gray 43"},{value:"#666666",name:"gray 40"},{value:"#636363",name:"gray 39"},{value:"#616161",name:"gray 38"},{value:"#5E5E5E",name:"gray 37"},{value:"#5C5C5C",name:"gray 36"},{value:"#595959",name:"gray 35"},{value:"#575757",name:"gray 34"},{value:"#545454",name:"gray 33"},{value:"#525252",name:"gray 32"},{value:"#4F4F4F",name:"gray 31"},{value:"#4D4D4D",name:"gray 30"},{value:"#4A4A4A",name:"gray 29"},{value:"#474747",name:"gray 28"},{value:"#454545",name:"gray 27"},{value:"#424242",name:"gray 26"},{value:"#404040",name:"gray 25"},{value:"#3D3D3D",name:"gray 24"},{value:"#3B3B3B",name:"gray 23"},{value:"#383838",name:"gray 22"},{value:"#363636",name:"gray 21"},{value:"#333333",name:"gray 20"},{value:"#303030",name:"gray 19"},{value:"#2E2E2E",name:"gray 18"},{value:"#2B2B2B",name:"gray 17"},{value:"#292929",name:"gray 16"},{value:"#262626",name:"gray 15"},{value:"#242424",name:"gray 14"},{value:"#212121",name:"gray 13"},{value:"#1F1F1F",name:"gray 12"},{value:"#1C1C1C",name:"gray 11"},{value:"#1A1A1A",name:"gray 10"},{value:"#171717",name:"gray 9"},{value:"#141414",name:"gray 8"},{value:"#121212",name:"gray 7"},{value:"#0F0F0F",name:"gray 6"},{value:"#0D0D0D",name:"gray 5"},{value:"#0A0A0A",name:"gray 4"},{value:"#080808",name:"gray 3"},{value:"#050505",name:"gray 2"},{value:"#030303",name:"gray 1"},{value:"#F5F5F5",css:!0,name:"whitesmoke"}];(function(e){var t=cS,n=t.filter(function(r){return!!r.css}),s=t.filter(function(r){return!!r.vga});e.exports=function(r){var o=e.exports.get(r);return o&&o.value},e.exports.get=function(r){return r=r||"",r=r.trim().toLowerCase(),t.filter(function(o){return o.name.toLowerCase()===r}).pop()},e.exports.all=e.exports.get.all=function(){return t},e.exports.get.css=function(r){return r?(r=r||"",r=r.trim().toLowerCase(),n.filter(function(o){return o.name.toLowerCase()===r}).pop()):n},e.exports.get.vga=function(r){return r?(r=r||"",r=r.trim().toLowerCase(),s.filter(function(o){return o.name.toLowerCase()===r}).pop()):s}})(xy);var dS=1/0,mS="[object Symbol]",fS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ey="\\ud800-\\udfff",pS="\\u0300-\\u036f\\ufe20-\\ufe23",hS="\\u20d0-\\u20f0",$y="\\u2700-\\u27bf",Sy="a-z\\xdf-\\xf6\\xf8-\\xff",_S="\\xac\\xb1\\xd7\\xf7",gS="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yS="\\u2000-\\u206f",vS=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ay="A-Z\\xc0-\\xd6\\xd8-\\xde",bS="\\ufe0e\\ufe0f",Ty=_S+gS+yS+vS,Oy="['\u2019]",pp="["+Ty+"]",CS="["+pS+hS+"]",Dy="\\d+",wS="["+$y+"]",Py="["+Sy+"]",Iy="[^"+Ey+Ty+Dy+$y+Sy+Ay+"]",zS="\\ud83c[\\udffb-\\udfff]",kS="(?:"+CS+"|"+zS+")",xS="[^"+Ey+"]",Fy="(?:\\ud83c[\\udde6-\\uddff]){2}",Ry="[\\ud800-\\udbff][\\udc00-\\udfff]",Dr="["+Ay+"]",ES="\\u200d",hp="(?:"+Py+"|"+Iy+")",$S="(?:"+Dr+"|"+Iy+")",_p="(?:"+Oy+"(?:d|ll|m|re|s|t|ve))?",gp="(?:"+Oy+"(?:D|LL|M|RE|S|T|VE))?",Ly=kS+"?",My="["+bS+"]?",SS="(?:"+ES+"(?:"+[xS,Fy,Ry].join("|")+")"+My+Ly+")*",AS=My+Ly+SS,TS="(?:"+[wS,Fy,Ry].join("|")+")"+AS,OS=RegExp([Dr+"?"+Py+"+"+_p+"(?="+[pp,Dr,"$"].join("|")+")",$S+"+"+gp+"(?="+[pp,Dr+hp,"$"].join("|")+")",Dr+"?"+hp+"+"+_p,Dr+"+"+gp,Dy,TS].join("|"),"g"),DS=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,PS=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt,IS=typeof self=="object"&&self&&self.Object===Object&&self,FS=PS||IS||Function("return this")();function RS(e){return e.match(fS)||[]}function LS(e){return DS.test(e)}function MS(e){return e.match(OS)||[]}var NS=Object.prototype,VS=NS.toString,yp=FS.Symbol,vp=yp?yp.prototype:void 0,bp=vp?vp.toString:void 0;function BS(e){if(typeof e=="string")return e;if(US(e))return bp?bp.call(e):"";var t=e+"";return t=="0"&&1/e==-dS?"-0":t}function HS(e){return!!e&&typeof e=="object"}function US(e){return typeof e=="symbol"||HS(e)&&VS.call(e)==mS}function jS(e){return e==null?"":BS(e)}function qS(e,t,n){return e=jS(e),t=n?void 0:t,t===void 0?LS(e)?MS(e):RS(e):e.match(t)||[]}var WS=qS,GS=1/0,KS="[object Symbol]",ZS=/^\s+/,Zd="\\ud800-\\udfff",Ny="\\u0300-\\u036f\\ufe20-\\ufe23",Vy="\\u20d0-\\u20f0",By="\\ufe0e\\ufe0f",YS="["+Zd+"]",Dc="["+Ny+Vy+"]",Pc="\\ud83c[\\udffb-\\udfff]",JS="(?:"+Dc+"|"+Pc+")",Hy="[^"+Zd+"]",Uy="(?:\\ud83c[\\udde6-\\uddff]){2}",jy="[\\ud800-\\udbff][\\udc00-\\udfff]",qy="\\u200d",Wy=JS+"?",Gy="["+By+"]?",XS="(?:"+qy+"(?:"+[Hy,Uy,jy].join("|")+")"+Gy+Wy+")*",QS=Gy+Wy+XS,eA="(?:"+[Hy+Dc+"?",Dc,Uy,jy,YS].join("|")+")",tA=RegExp(Pc+"(?="+Pc+")|"+eA+QS,"g"),nA=RegExp("["+qy+Zd+Ny+Vy+By+"]"),sA=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt,rA=typeof self=="object"&&self&&self.Object===Object&&self,oA=sA||rA||Function("return this")();function iA(e){return e.split("")}function aA(e,t,n,s){for(var r=e.length,o=n+(s?1:-1);s?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function lA(e,t,n){if(t!==t)return aA(e,uA,n);for(var s=n-1,r=e.length;++s<r;)if(e[s]===t)return s;return-1}function uA(e){return e!==e}function cA(e,t){for(var n=-1,s=e.length;++n<s&&lA(t,e[n],0)>-1;);return n}function dA(e){return nA.test(e)}function Cp(e){return dA(e)?mA(e):iA(e)}function mA(e){return e.match(tA)||[]}var fA=Object.prototype,pA=fA.toString,wp=oA.Symbol,zp=wp?wp.prototype:void 0,kp=zp?zp.toString:void 0;function hA(e,t,n){var s=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++s<r;)o[s]=e[s+t];return o}function Ky(e){if(typeof e=="string")return e;if(yA(e))return kp?kp.call(e):"";var t=e+"";return t=="0"&&1/e==-GS?"-0":t}function _A(e,t,n){var s=e.length;return n=n===void 0?s:n,!t&&n>=s?e:hA(e,t,n)}function gA(e){return!!e&&typeof e=="object"}function yA(e){return typeof e=="symbol"||gA(e)&&pA.call(e)==KS}function vA(e){return e==null?"":Ky(e)}function bA(e,t,n){if(e=vA(e),e&&(n||t===void 0))return e.replace(ZS,"");if(!e||!(t=Ky(t)))return e;var s=Cp(e),r=cA(s,Cp(t));return _A(s,r).join("")}var CA=bA,Ic=1/0,wA=9007199254740991,zA=17976931348623157e292,xp=0/0,kA="[object Symbol]",xA=/^\s+|\s+$/g,EA=/^[-+]0x[0-9a-f]+$/i,$A=/^0b[01]+$/i,SA=/^0o[0-7]+$/i,Yd="\\ud800-\\udfff",Zy="\\u0300-\\u036f\\ufe20-\\ufe23",Yy="\\u20d0-\\u20f0",Jy="\\ufe0e\\ufe0f",AA="["+Yd+"]",Fc="["+Zy+Yy+"]",Rc="\\ud83c[\\udffb-\\udfff]",TA="(?:"+Fc+"|"+Rc+")",Xy="[^"+Yd+"]",Qy="(?:\\ud83c[\\udde6-\\uddff]){2}",ev="[\\ud800-\\udbff][\\udc00-\\udfff]",tv="\\u200d",nv=TA+"?",sv="["+Jy+"]?",OA="(?:"+tv+"(?:"+[Xy,Qy,ev].join("|")+")"+sv+nv+")*",DA=sv+nv+OA,PA="(?:"+[Xy+Fc+"?",Fc,Qy,ev,AA].join("|")+")",Lc=RegExp(Rc+"(?="+Rc+")|"+PA+DA,"g"),IA=RegExp("["+tv+Yd+Zy+Yy+Jy+"]"),FA=parseInt,RA=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt,LA=typeof self=="object"&&self&&self.Object===Object&&self,MA=RA||LA||Function("return this")(),NA=BA("length");function VA(e){return e.split("")}function BA(e){return function(t){return t==null?void 0:t[e]}}function Jd(e){return IA.test(e)}function rv(e){return Jd(e)?UA(e):NA(e)}function HA(e){return Jd(e)?jA(e):VA(e)}function UA(e){for(var t=Lc.lastIndex=0;Lc.test(e);)t++;return t}function jA(e){return e.match(Lc)||[]}var qA=Object.prototype,WA=qA.toString,Ep=MA.Symbol,GA=Math.ceil,KA=Math.floor,$p=Ep?Ep.prototype:void 0,Sp=$p?$p.toString:void 0;function Ap(e,t){var n="";if(!e||t<1||t>wA)return n;do t%2&&(n+=e),t=KA(t/2),t&&(e+=e);while(t);return n}function ZA(e,t,n){var s=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++s<r;)o[s]=e[s+t];return o}function ov(e){if(typeof e=="string")return e;if(iv(e))return Sp?Sp.call(e):"";var t=e+"";return t=="0"&&1/e==-Ic?"-0":t}function YA(e,t,n){var s=e.length;return n=n===void 0?s:n,!t&&n>=s?e:ZA(e,t,n)}function JA(e,t){t=t===void 0?" ":ov(t);var n=t.length;if(n<2)return n?Ap(t,e):t;var s=Ap(t,GA(e/rv(t)));return Jd(t)?YA(HA(s),0,e).join(""):s.slice(0,e)}function Tp(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function XA(e){return!!e&&typeof e=="object"}function iv(e){return typeof e=="symbol"||XA(e)&&WA.call(e)==kA}function QA(e){if(!e)return e===0?e:0;if(e=t8(e),e===Ic||e===-Ic){var t=e<0?-1:1;return t*zA}return e===e?e:0}function e8(e){var t=QA(e),n=t%1;return t===t?n?t-n:t:0}function t8(e){if(typeof e=="number")return e;if(iv(e))return xp;if(Tp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Tp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(xA,"");var n=$A.test(e);return n||SA.test(e)?FA(e.slice(2),n?2:8):EA.test(e)?xp:+e}function n8(e){return e==null?"":ov(e)}function s8(e,t,n){e=n8(e),t=e8(t);var s=t?rv(e):0;return t&&s<t?e+JA(t-s,n):e}var r8=s8,o8=(e,t,n,s)=>{const r=(e+(s||"")).toString().includes("%");if(typeof e=="string"?[e,t,n,s]=e.match(/(0?\.?\d{1,3})%?\b/g).map(Number):s!==void 0&&(s=parseFloat(s)),typeof e!="number"||typeof t!="number"||typeof n!="number"||e>255||t>255||n>255)throw new TypeError("Expected three numbers below 256");if(typeof s=="number"){if(!r&&s>=0&&s<=1)s=Math.round(255*s);else if(r&&s>=0&&s<=100)s=Math.round(255*s/100);else throw new TypeError(`Expected alpha value (${s}) as a fraction or percentage`);s=(s|1<<8).toString(16).slice(1)}else s="";return(n|t<<8|e<<16|1<<24).toString(16).slice(1)+s};const fi="a-f\\d",i8=`#?[${fi}]{3}[${fi}]?`,a8=`#?[${fi}]{6}([${fi}]{2})?`,l8=new RegExp(`[^#${fi}]`,"gi"),u8=new RegExp(`^${i8}$|^${a8}$`,"i");var c8=(e,t={})=>{if(typeof e!="string"||l8.test(e)||!u8.test(e))throw new TypeError("Expected a valid hex string");e=e.replace(/^#/,"");let n=1;e.length===8&&(n=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),e.length===4&&(n=Number.parseInt(e.slice(3,4).repeat(2),16)/255,e=e.slice(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const s=Number.parseInt(e,16),r=s>>16,o=s>>8&255,i=s&255,a=typeof t.alpha=="number"?t.alpha:n;if(t.format==="array")return[r,o,i,a];if(t.format==="css"){const u=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${r} ${o} ${i}${u})`}return{red:r,green:o,blue:i,alpha:a}},d8=xy.exports,m8=WS,f8=CA,p8=r8,h8=o8,av=c8;const Tu=.75,Ou=.25,Du=16777215,_8=49979693;var g8=function(e){return"#"+b8(String(JSON.stringify(e)))};function y8(e){var t=m8(e),n=[];return t.forEach(function(s){var r=d8(s);r&&n.push(av(f8(r,"#"),{format:"array"}))}),n}function v8(e){var t=[0,0,0];return e.forEach(function(n){for(var s=0;s<3;s++)t[s]+=n[s]}),[t[0]/e.length,t[1]/e.length,t[2]/e.length]}function b8(e){var t,n=y8(e);n.length>0&&(t=v8(n));var s=1,r=0,o=1;if(e.length>0)for(var i=0;i<e.length;i++)e[i].charCodeAt(0)>r&&(r=e[i].charCodeAt(0)),o=parseInt(Du/r),s=(s+e[i].charCodeAt(0)*o*_8)%Du;var a=(s*e.length%Du).toString(16);a=p8(a,6,a);var u=av(a,{format:"array"});return t?h8(Ou*u[0]+Tu*t[0],Ou*u[1]+Tu*t[1],Ou*u[2]+Tu*t[2]):a}function C8(e){const t=e.replace(/#/,""),n=parseInt(t.substr(0,2),16),s=parseInt(t.substr(2,2),16),r=parseInt(t.substr(4,2),16);return[.299*n,.587*s,.114*r].reduce((i,a)=>i+a)/255>.5}function w8(e){return C8(e)?"#000000":"#ffffff"}function z8(e){const t='<svg width="'+e.width+'" height="'+e.height+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '+e.width+" "+e.height+'" preserveAspectRatio="none"><defs><style type="text/css"> #holder text { fill: '+e.textColor+"; font-family: "+e.fontFamily+"; font-size: "+e.fontSize+"px; font-weight: "+e.fontWeight+'; } </style></defs><g id="holder"> <rect width="100%" height="100%" fill="'+e.backgroundColor+'"></rect> <g> <text text-anchor="middle" x="50%" y="50%" dy=".3em">'+e.caption+"</text> </g></g></svg>";return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t)}function k8(e,t,n){const s=g8(t),r=w8(s),o={width:n.width,height:n.height,textColor:r,backgroundColor:s,caption:e,fontFamily:n.font_family,fontSize:n.font_size,fontWeight:n.font_weight};return z8(o)}const x8={name:"CoverArtwork",props:["artist","album","artwork_url","maxwidth","maxheight"],emits:["click"],data(){return{width:600,height:600,font_family:"sans-serif",font_size:200,font_weight:600,lazy_lifecycle:{error:e=>{e.src=this.dataURI()}}}},computed:{artwork_url_with_size(){return this.maxwidth>0&&this.maxheight>0?N.artwork_url_append_size_params(this.artwork_url,this.maxwidth,this.maxheight):N.artwork_url_append_size_params(this.artwork_url)},alt_text(){return this.artist+" - "+this.album},caption(){return this.album?this.album.substring(0,2):this.artist?this.artist.substring(0,2):""}},methods:{dataURI(){return k8(this.caption,this.alt_text,{width:this.width,height:this.height,font_family:this.font_family,font_size:this.font_size,font_weight:this.font_weight})}}};function E8(e,t,n,s,r,o){const i=fd("lazy");return z(),S("figure",null,[dt(l("img",{onClick:t[0]||(t[0]=a=>e.$emit("click"))},null,512),[[i,{src:o.artwork_url_with_size,lifecycle:r.lazy_lifecycle}]])])}var Gn=re(x8,[["render",E8]]),$8="M11,14C12,14 13.05,14.16 14.2,14.44C13.39,15.31 13,16.33 13,17.5C13,18.39 13.25,19.23 13.78,20H3V18C3,16.81 3.91,15.85 5.74,15.12C7.57,14.38 9.33,14 11,14M11,12C9.92,12 9,11.61 8.18,10.83C7.38,10.05 7,9.11 7,8C7,6.92 7.38,6 8.18,5.18C9,4.38 9.92,4 11,4C12.11,4 13.05,4.38 13.83,5.18C14.61,6 15,6.92 15,8C15,9.11 14.61,10.05 13.83,10.83C13.05,11.61 12.11,12 11,12M18.5,10H20L22,10V12H20V17.5A2.5,2.5 0 0,1 17.5,20A2.5,2.5 0 0,1 15,17.5A2.5,2.5 0 0,1 17.5,15C17.86,15 18.19,15.07 18.5,15.21V10Z",S8="M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11M12,16.5C9.5,16.5 7.5,14.5 7.5,12C7.5,9.5 9.5,7.5 12,7.5C14.5,7.5 16.5,9.5 16.5,12C16.5,14.5 14.5,16.5 12,16.5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",A8="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",T8="M19.92,12.08L12,20L4.08,12.08L5.5,10.67L11,16.17V2H13V16.17L18.5,10.66L19.92,12.08M12,20H2V22H22V20H12Z",O8="M19 2L14 6.5V17.5L19 13V2M6.5 5C4.55 5 2.45 5.4 1 6.5V21.16C1 21.41 1.25 21.66 1.5 21.66C1.6 21.66 1.65 21.59 1.75 21.59C3.1 20.94 5.05 20.5 6.5 20.5C8.45 20.5 10.55 20.9 12 22C13.35 21.15 15.8 20.5 17.5 20.5C19.15 20.5 20.85 20.81 22.25 21.56C22.35 21.61 22.4 21.59 22.5 21.59C22.75 21.59 23 21.34 23 21.09V6.5C22.4 6.05 21.75 5.75 21 5.5V19C19.9 18.65 18.7 18.5 17.5 18.5C15.8 18.5 13.35 19.15 12 20V6.5C10.55 5.4 8.45 5 6.5 5Z",D8="M17.5 14.33C18.29 14.33 19.13 14.41 20 14.57V16.07C19.38 15.91 18.54 15.83 17.5 15.83C15.6 15.83 14.11 16.16 13 16.82V15.13C14.17 14.6 15.67 14.33 17.5 14.33M13 12.46C14.29 11.93 15.79 11.67 17.5 11.67C18.29 11.67 19.13 11.74 20 11.9V13.4C19.38 13.24 18.54 13.16 17.5 13.16C15.6 13.16 14.11 13.5 13 14.15M17.5 10.5C15.6 10.5 14.11 10.82 13 11.5V9.84C14.23 9.28 15.73 9 17.5 9C18.29 9 19.13 9.08 20 9.23V10.78C19.26 10.59 18.41 10.5 17.5 10.5M21 18.5V7C19.96 6.67 18.79 6.5 17.5 6.5C15.45 6.5 13.62 7 12 8V19.5C13.62 18.5 15.45 18 17.5 18C18.69 18 19.86 18.16 21 18.5M17.5 4.5C19.85 4.5 21.69 5 23 6V20.56C23 20.68 22.95 20.8 22.84 20.91C22.73 21 22.61 21.08 22.5 21.08C22.39 21.08 22.31 21.06 22.25 21.03C20.97 20.34 19.38 20 17.5 20C15.45 20 13.62 20.5 12 21.5C10.66 20.5 8.83 20 6.5 20C4.84 20 3.25 20.36 1.75 21.07C1.72 21.08 1.68 21.08 1.63 21.1C1.59 21.11 1.55 21.12 1.5 21.12C1.39 21.12 1.27 21.08 1.16 21C1.05 20.89 1 20.78 1 20.65V6C2.34 5 4.18 4.5 6.5 4.5C8.83 4.5 10.66 5 12 6C13.34 5 15.17 4.5 17.5 4.5Z",P8="M9 3V18H12V3H9M12 5L16 18L19 17L15 4L12 5M5 5V18H8V5H5M3 19V21H21V19H3Z",I8="M12 10C10.9 10 10 10.9 10 12S10.9 14 12 14 14 13.1 14 12 13.1 10 12 10M18 12C18 8.7 15.3 6 12 6S6 8.7 6 12C6 14.2 7.2 16.1 9 17.2L10 15.5C8.8 14.8 8 13.5 8 12.1C8 9.9 9.8 8.1 12 8.1S16 9.9 16 12.1C16 13.6 15.2 14.9 14 15.5L15 17.2C16.8 16.2 18 14.2 18 12M12 2C6.5 2 2 6.5 2 12C2 15.7 4 18.9 7 20.6L8 18.9C5.6 17.5 4 14.9 4 12C4 7.6 7.6 4 12 4S20 7.6 20 12C20 15 18.4 17.5 16 18.9L17 20.6C20 18.9 22 15.7 22 12C22 6.5 17.5 2 12 2Z",Gl="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",F8="M1,10V12A9,9 0 0,1 10,21H12C12,14.92 7.07,10 1,10M1,14V16A5,5 0 0,1 6,21H8A7,7 0 0,0 1,14M1,18V21H4A3,3 0 0,0 1,18M21,3H3C1.89,3 1,3.89 1,5V8H3V5H21V19H14V21H21A2,2 0 0,0 23,19V5C23,3.89 22.1,3 21,3Z",R8="M6,22H18L12,16M21,3H3A2,2 0 0,0 1,5V17A2,2 0 0,0 3,19H7V17H3V5H21V17H17V19H21A2,2 0 0,0 23,17V5A2,2 0 0,0 21,3Z",L8="M17,19H7V5H17M17,1H7C5.89,1 5,1.89 5,3V21A2,2 0 0,0 7,23H17A2,2 0 0,0 19,21V3C19,1.89 18.1,1 17,1Z",M8="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",N8="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",V8="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",B8="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z",H8="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",U8="M20.37,8.91L19.37,10.64L7.24,3.64L8.24,1.91L11.28,3.66L12.64,3.29L16.97,5.79L17.34,7.16L20.37,8.91M6,19V7H11.07L18,11V19A2,2 0 0,1 16,21H8A2,2 0 0,1 6,19Z",j8="M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z",q8="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",W8="M3,15V13H5V15H3M3,11V9H5V11H3M7,15V13H9V15H7M7,11V9H9V11H7M11,15V13H13V15H11M11,11V9H13V11H11M15,15V13H17V15H15M15,11V9H17V11H15M19,15V13H21V15H19M19,11V9H21V11H19Z",G8="M11.5,3C6.85,3 2.92,6.03 1.53,10.22L3.9,11C4.95,7.81 7.96,5.5 11.5,5.5C13.46,5.5 15.23,6.22 16.62,7.38L14,10H21V3L18.4,5.6C16.55,4 14.15,3 11.5,3M19,14V20C19,21.11 18.11,22 17,22H15A2,2 0 0,1 13,20V14A2,2 0 0,1 15,12H17C18.11,12 19,12.9 19,14M15,14V20H17V14H15M11,20C11,21.11 10.1,22 9,22H5V20H9V18H7V16H9V14H5V12H9A2,2 0 0,1 11,14V15.5A1.5,1.5 0 0,1 9.5,17A1.5,1.5 0 0,1 11,18.5V20Z",K8="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M13,13H11V18A2,2 0 0,1 9,20A2,2 0 0,1 7,18A2,2 0 0,1 9,16C9.4,16 9.7,16.1 10,16.3V11H13V13M13,9V3.5L18.5,9H13Z",Z8="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",Y8="M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z",J8="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",X8="M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19A2,2 0 0,1 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z",Q8="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",eT="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",tT="M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z",nT="M21,3V15.5A3.5,3.5 0 0,1 17.5,19A3.5,3.5 0 0,1 14,15.5A3.5,3.5 0 0,1 17.5,12C18.04,12 18.55,12.12 19,12.34V6.47L9,8.6V17.5A3.5,3.5 0 0,1 5.5,21A3.5,3.5 0 0,1 2,17.5A3.5,3.5 0 0,1 5.5,14C6.04,14 6.55,14.12 7,14.34V6L21,3Z",sT="M4,6H2V20A2,2 0 0,0 4,22H18V20H4M18,7H15V12.5A2.5,2.5 0 0,1 12.5,15A2.5,2.5 0 0,1 10,12.5A2.5,2.5 0 0,1 12.5,10C13.07,10 13.58,10.19 14,10.5V5H18M20,2H8A2,2 0 0,0 6,4V16A2,2 0 0,0 8,18H20A2,2 0 0,0 22,16V4A2,2 0 0,0 20,2Z",rT="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",oT="M14,19H18V5H14M6,19H10V5H6V19Z",iT="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",aT="M22,14H20V16H14V13H16V11H14V6A2,2 0 0,0 12,4H4V2H2V10H4V8H10V11H8V13H10V18A2,2 0 0,0 12,20H20V22H22",lT="M8,5.14V19.14L19,12.14L8,5.14Z",uT="M3 10H14V12H3V10M3 6H14V8H3V6M3 14H10V16H3V14M16 13V21L22 17L16 13Z",cT="M3 16H10V14H3M18 14V10H16V14H12V16H16V20H18V16H22V14M14 6H3V8H14M14 10H3V12H14V10Z",dT="M20,6A2,2 0 0,1 22,8V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V8C2,7.15 2.53,6.42 3.28,6.13L15.71,1L16.47,2.83L8.83,6H20M20,8H4V12H16V10H18V12H20V8M7,14A3,3 0 0,0 4,17A3,3 0 0,0 7,20A3,3 0 0,0 10,17A3,3 0 0,0 7,14Z",mT="M12,10A2,2 0 0,1 14,12C14,12.5 13.82,12.94 13.53,13.29L16.7,22H14.57L12,14.93L9.43,22H7.3L10.47,13.29C10.18,12.94 10,12.5 10,12A2,2 0 0,1 12,10M12,8A4,4 0 0,0 8,12C8,12.5 8.1,13 8.28,13.46L7.4,15.86C6.53,14.81 6,13.47 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12C18,13.47 17.47,14.81 16.6,15.86L15.72,13.46C15.9,13 16,12.5 16,12A4,4 0 0,0 12,8M12,4A8,8 0 0,0 4,12C4,14.36 5,16.5 6.64,17.94L5.92,19.94C3.54,18.11 2,15.23 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12C22,15.23 20.46,18.11 18.08,19.94L17.36,17.94C19,16.5 20,14.36 20,12A8,8 0 0,0 12,4Z",fT="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",pT="M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z",hT="M2,5.27L3.28,4L20,20.72L18.73,22L15.73,19H7V22L3,18L7,14V17H13.73L7,10.27V11H5V8.27L2,5.27M17,13H19V17.18L17,15.18V13M17,5V2L21,6L17,10V7H8.82L6.82,5H17Z",_T="M13,15V9H12L10,10V11H11.5V15M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z",gT="M12.5,3C17.15,3 21.08,6.03 22.47,10.22L20.1,11C19.05,7.81 16.04,5.5 12.5,5.5C10.54,5.5 8.77,6.22 7.38,7.38L10,10H3V3L5.6,5.6C7.45,4 9.85,3 12.5,3M10,12V22H8V14H6V12H10M18,14V20C18,21.11 17.11,22 16,22H14A2,2 0 0,1 12,20V14A2,2 0 0,1 14,12H16C17.11,12 18,12.9 18,14M14,14V20H16V14H14Z",yT="M6.18,15.64A2.18,2.18 0 0,1 8.36,17.82C8.36,19 7.38,20 6.18,20C5,20 4,19 4,17.82A2.18,2.18 0 0,1 6.18,15.64M4,4.44A15.56,15.56 0 0,1 19.56,20H16.73A12.73,12.73 0 0,0 4,7.27V4.44M4,10.1A9.9,9.9 0 0,1 13.9,20H11.07A7.07,7.07 0 0,0 4,12.93V10.1Z",vT="M4,1H20A1,1 0 0,1 21,2V6A1,1 0 0,1 20,7H4A1,1 0 0,1 3,6V2A1,1 0 0,1 4,1M4,9H20A1,1 0 0,1 21,10V14A1,1 0 0,1 20,15H4A1,1 0 0,1 3,14V10A1,1 0 0,1 4,9M4,17H20A1,1 0 0,1 21,18V22A1,1 0 0,1 20,23H4A1,1 0 0,1 3,22V18A1,1 0 0,1 4,17M9,5H10V3H9V5M9,13H10V11H9V13M9,21H10V19H9V21M5,3V5H7V3H5M5,11V13H7V11H5M5,19V21H7V19H5Z",bT="M14.83,13.41L13.42,14.82L16.55,17.95L14.5,20H20V14.5L17.96,16.54L14.83,13.41M14.5,4L16.54,6.04L4,18.59L5.41,20L17.96,7.46L20,9.5V4M10.59,9.17L5.41,4L4,5.41L9.17,10.58L10.59,9.17Z",CT="M16,4.5V7H5V9H16V11.5L19.5,8M16,12.5V15H5V17H16V19.5L19.5,16",wT="M20,5V19L13,12M6,5V19H4V5M13,5V19L6,12",zT="M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12",kT="M12,12A3,3 0 0,0 9,15A3,3 0 0,0 12,18A3,3 0 0,0 15,15A3,3 0 0,0 12,12M12,20A5,5 0 0,1 7,15A5,5 0 0,1 12,10A5,5 0 0,1 17,15A5,5 0 0,1 12,20M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8C10.89,8 10,7.1 10,6C10,4.89 10.89,4 12,4M17,2H7C5.89,2 5,2.89 5,4V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V4C19,2.89 18.1,2 17,2Z",xT="M17.9,10.9C14.7,9 9.35,8.8 6.3,9.75C5.8,9.9 5.3,9.6 5.15,9.15C5,8.65 5.3,8.15 5.75,8C9.3,6.95 15.15,7.15 18.85,9.35C19.3,9.6 19.45,10.2 19.2,10.65C18.95,11 18.35,11.15 17.9,10.9M17.8,13.7C17.55,14.05 17.1,14.2 16.75,13.95C14.05,12.3 9.95,11.8 6.8,12.8C6.4,12.9 5.95,12.7 5.85,12.3C5.75,11.9 5.95,11.45 6.35,11.35C10,10.25 14.5,10.8 17.6,12.7C17.9,12.85 18.05,13.35 17.8,13.7M16.6,16.45C16.4,16.75 16.05,16.85 15.75,16.65C13.4,15.2 10.45,14.9 6.95,15.7C6.6,15.8 6.3,15.55 6.2,15.25C6.1,14.9 6.35,14.6 6.65,14.5C10.45,13.65 13.75,14 16.35,15.6C16.7,15.75 16.75,16.15 16.6,16.45M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",ET="M18,18H6V6H18V18Z",$T="M11,9L12.42,10.42L8.83,14H18V4H20V16H8.83L12.42,19.58L11,21L5,15L11,9Z",ST="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z",AT="M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.53C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z",TT="M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";const Es=1e3,OT={name:"PageNowPlaying",components:{ModalDialogQueueItem:dy,CoverArtwork:Gn},data(){return{cursor:Gl,INTERVAL:Es,interval_id:0,is_dragged:!1,show_details_modal:!1,selected_item:{}}},computed:{is_live(){return this.track.length_ms===0},track_progress:{get(){return Math.floor(this.player.item_progress_ms/Es)},set(e){this.player.item_progress_ms=e*Es}},track_progress_ratio(){return this.track_progress/this.track_progress_max},player(){return this.$store.state.player},track(){return this.$store.getters.now_playing},track_progress_max(){return this.is_live?1:Math.floor(this.track.length_ms/Es)},track_elapsed_time(){return this.$filters.durationInHours(this.track_progress*Es)},track_total_time(){return this.is_live?this.$t("page.now-playing.live"):this.$filters.durationInHours(this.track.length_ms)},settings_option_show_composer_now_playing(){return this.$store.getters.settings_option_show_composer_now_playing},settings_option_show_composer_for_genre(){return this.$store.getters.settings_option_show_composer_for_genre},composer(){return this.settings_option_show_composer_now_playing&&(!this.settings_option_show_composer_for_genre||this.track.genre&&this.settings_option_show_composer_for_genre.toLowerCase().split(",").findIndex(e=>this.track.genre.toLowerCase().indexOf(e.trim())>=0)>=0)?this.track.composer:null},settings_option_show_filepath_now_playing(){return this.$store.getters.settings_option_show_filepath_now_playing},filepath(){return this.settings_option_show_filepath_now_playing?this.track.path:null}},watch:{player(){this.interval_id>0&&(window.clearTimeout(this.interval_id),this.interval_id=0),this.player.state==="play"&&(this.interval_id=window.setInterval(this.tick,Es))}},created(){N.player_status().then(({data:e})=>{this.$store.commit(Dd,e),this.player.state==="play"&&(this.interval_id=window.setInterval(this.tick,Es))})},unmounted(){this.interval_id>0&&(window.clearTimeout(this.interval_id),this.interval_id=0)},methods:{tick(){this.is_dragged||(this.track_progress+=1)},start_dragging(){this.is_dragged=!0},end_dragging(){this.is_dragged=!1},seek(){this.is_live||N.player_seek_to_pos(this.track_progress*Es)},open_dialog(e){this.selected_item=e,this.show_details_modal=!0}}},DT={class:"hero is-fullheight"},PT={key:0,class:"hero-body"},IT={class:"container has-text-centered",style:{"max-width":"500px"}},FT=["max","disabled"],RT={class:"is-flex is-justify-content-space-between"},LT=["textContent"],MT=["textContent"],NT=["textContent"],VT=["textContent"],BT=["textContent"],HT=["textContent"],UT=["textContent"],jT={key:1,class:"hero-body"},qT={class:"container has-text-centered"},WT=["textContent"],GT=["textContent"];function KT(e,t,n,s,r,o){const i=$("cover-artwork"),a=$("modal-dialog-queue-item");return z(),S("div",DT,[o.track.id>0?(z(),S("div",PT,[l("div",IT,[v(i,{artwork_url:o.track.artwork_url,artist:o.track.artist,album:o.track.album,class:"is-clickable fd-has-shadow fd-cover-big-image",onClick:t[0]||(t[0]=u=>o.open_dialog(o.track))},null,8,["artwork_url","artist","album"]),dt(l("input",{"onUpdate:modelValue":t[1]||(t[1]=u=>o.track_progress=u),max:o.track_progress_max,type:"range",class:Ae(["slider mt-5",{"is-inactive":o.is_live}]),style:ln({"--ratio":o.track_progress_ratio,"--cursor":e.$filters.cursor(this.cursor)}),disabled:o.is_live,onChange:t[2]||(t[2]=(...u)=>o.seek&&o.seek(...u)),onMousedown:t[3]||(t[3]=(...u)=>o.start_dragging&&o.start_dragging(...u)),onMouseup:t[4]||(t[4]=(...u)=>o.end_dragging&&o.end_dragging(...u))},null,46,FT),[[It,o.track_progress,void 0,{number:!0}]]),l("div",RT,[l("p",{class:"subtitle is-7",textContent:g(o.track_elapsed_time)},null,8,LT),l("p",{class:"subtitle is-7",textContent:g(o.track_total_time)},null,8,MT)]),l("p",{class:"title is-5",textContent:g(o.track.title)},null,8,NT),l("p",{class:"title is-6",textContent:g(o.track.artist)},null,8,VT),o.composer?(z(),S("p",{key:0,class:"subtitle is-6 has-text-grey has-text-weight-bold",textContent:g(o.composer)},null,8,BT)):H("",!0),o.track.album?(z(),S("p",{key:1,class:"subtitle is-6",textContent:g(o.track.album)},null,8,HT)):H("",!0),o.filepath?(z(),S("p",{key:2,class:"subtitle is-6 has-text-grey",textContent:g(o.filepath)},null,8,UT)):H("",!0)])])):(z(),S("div",jT,[l("div",qT,[l("p",{class:"title is-5",textContent:g(e.$t("page.now-playing.title"))},null,8,WT),l("p",{class:"subtitle",textContent:g(e.$t("page.now-playing.info"))},null,8,GT)])])),v(a,{show:r.show_details_modal,item:r.selected_item,onClose:t[5]||(t[5]=u=>r.show_details_modal=!1)},null,8,["show","item"])])}var ZT=re(OT,[["render",KT]]);const YT={name:"TabsMusic",computed:{spotify_enabled(){return this.$store.state.spotify.webapi_token_valid}}},JT={class:"section fd-tabs-section"},XT={class:"container"},QT={class:"columns is-centered"},eO={class:"column is-four-fifths"},tO={class:"tabs is-centered is-small"},nO=["onClick","onKeypress"],sO={class:"icon is-small"},rO=["textContent"],oO=["onClick","onKeypress"],iO={class:"icon is-small"},aO=["textContent"],lO=["onClick","onKeypress"],uO={class:"icon is-small"},cO=["textContent"],dO=["onClick","onKeypress"],mO={class:"icon is-small"},fO=["textContent"],pO=["onClick","onKeypress"],hO={class:"icon is-small"},_O=["textContent"],gO=["onClick","onKeypress"],yO={class:"icon is-small"},vO=["textContent"];function bO(e,t,n,s,r,o){const i=$("mdicon"),a=$("router-link");return z(),S("section",JT,[l("div",XT,[l("div",QT,[l("div",eO,[l("div",tO,[l("ul",null,[v(a,{to:"/music/browse",custom:""},{default:E(({navigate:u,isActive:c})=>[l("li",{class:Ae({"is-active":c})},[l("a",{onClick:u,onKeypress:gn(u,["enter"])},[l("span",sO,[v(i,{name:"web",size:"16"})]),l("span",{textContent:g(e.$t("page.browse.tabs.browse"))},null,8,rO)],40,nO)],2)]),_:1}),v(a,{to:"/music/artists",custom:""},{default:E(({navigate:u,isActive:c})=>[l("li",{class:Ae({"is-active":c})},[l("a",{onClick:u,onKeypress:gn(u,["enter"])},[l("span",iO,[v(i,{name:"account-music",size:"16"})]),l("span",{textContent:g(e.$t("page.browse.tabs.artists"))},null,8,aO)],40,oO)],2)]),_:1}),v(a,{to:"/music/albums",custom:""},{default:E(({navigate:u,isActive:c})=>[l("li",{class:Ae({"is-active":c})},[l("a",{onClick:u,onKeypress:gn(u,["enter"])},[l("span",uO,[v(i,{name:"album",size:"16"})]),l("span",{textContent:g(e.$t("page.browse.tabs.albums"))},null,8,cO)],40,lO)],2)]),_:1}),v(a,{to:"/music/genres",custom:""},{default:E(({navigate:u,isActive:c})=>[l("li",{class:Ae({"is-active":c})},[l("a",{onClick:u,onKeypress:gn(u,["enter"])},[l("span",mO,[v(i,{name:"speaker",size:"16"})]),l("span",{textContent:g(e.$t("page.browse.tabs.genres"))},null,8,fO)],40,dO)],2)]),_:1}),v(a,{to:"/music/composers",custom:""},{default:E(({navigate:u,isActive:c})=>[l("li",{class:Ae({"is-active":c})},[l("a",{onClick:u,onKeypress:gn(u,["enter"])},[l("span",hO,[v(i,{name:"book-open-page-variant",size:"16"})]),l("span",{textContent:g(e.$t("page.browse.tabs.composers"))},null,8,_O)],40,pO)],2)]),_:1}),o.spotify_enabled?(z(),be(a,{key:0,to:"/music/spotify",custom:""},{default:E(({navigate:u,isActive:c})=>[l("li",{class:Ae({"is-active":c})},[l("a",{onClick:u,onKeypress:gn(u,["enter"])},[l("span",yO,[v(i,{name:"spotify",size:"16"})]),l("span",{textContent:g(e.$t("page.browse.tabs.spotify"))},null,8,vO)],40,gO)],2)]),_:1})):H("",!0)])])])])])])}var os=re(YT,[["render",bO]]);const CO={name:"ModalDialogAlbum",components:{CoverArtwork:Gn},props:["show","album","media_kind","new_tracks"],emits:["close","remove-podcast","play-count-changed"],data(){return{artwork_visible:!1}},computed:{artwork_url(){return N.artwork_url_append_size_params(this.album.artwork_url)},media_kind_resolved(){return this.media_kind?this.media_kind:this.album.media_kind}},methods:{play(){this.$emit("close"),N.player_play_uri(this.album.uri,!1)},queue_add(){this.$emit("close"),N.queue_add(this.album.uri)},queue_add_next(){this.$emit("close"),N.queue_add_next(this.album.uri)},open_album(){this.$emit("close"),this.media_kind_resolved==="podcast"?this.$router.push({path:"/podcasts/"+this.album.id}):this.media_kind_resolved==="audiobook"?this.$router.push({path:"/audiobooks/"+this.album.id}):this.$router.push({path:"/music/albums/"+this.album.id})},open_artist(){this.$emit("close"),this.media_kind_resolved==="audiobook"?this.$router.push({path:"/audiobooks/artists/"+this.album.artist_id}):this.$router.push({path:"/music/artists/"+this.album.artist_id})},mark_played(){N.library_album_track_update(this.album.id,{play_count:"played"}).then(({data:e})=>{this.$emit("play-count-changed"),this.$emit("close")})},artwork_loaded(){this.artwork_visible=!0},artwork_error(){this.artwork_visible=!1}}},wO={key:0,class:"modal is-active"},zO={class:"modal-content fd-modal-card"},kO={class:"card"},xO={class:"card-content"},EO={class:"title is-4"},$O=["textContent"],SO={key:0,class:"buttons"},AO=["textContent"],TO=["textContent"],OO={class:"content is-small"},DO={key:0},PO=["textContent"],IO=["textContent"],FO={key:1},RO=["textContent"],LO=["textContent"],MO={key:2},NO=["textContent"],VO=["textContent"],BO=["textContent"],HO=["textContent"],UO=["textContent"],jO=["textContent"],qO=["textContent"],WO=["textContent"],GO=["textContent"],KO=["textContent"],ZO={class:"card-footer"},YO={class:"icon"},JO=["textContent"],XO={class:"icon"},QO=["textContent"],e6={class:"icon"},t6=["textContent"];function n6(e,t,n,s,r,o){const i=$("cover-artwork"),a=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",wO,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=u=>e.$emit("close"))}),l("div",zO,[l("div",kO,[l("div",xO,[v(i,{artwork_url:n.album.artwork_url,artist:n.album.artist,album:n.album.name,class:"fd-has-shadow fd-has-margin-bottom fd-cover fd-cover-normal-image"},null,8,["artwork_url","artist","album"]),l("p",EO,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...u)=>o.open_album&&o.open_album(...u)),textContent:g(n.album.name)},null,8,$O)]),o.media_kind_resolved==="podcast"?(z(),S("div",SO,[l("a",{class:"button is-small",onClick:t[2]||(t[2]=(...u)=>o.mark_played&&o.mark_played(...u)),textContent:g(e.$t("dialog.album.mark-as-played"))},null,8,AO),n.album.data_kind==="url"?(z(),S("a",{key:0,class:"button is-small",onClick:t[3]||(t[3]=u=>e.$emit("remove-podcast")),textContent:g(e.$t("dialog.album.remove-podcast"))},null,8,TO)):H("",!0)])):H("",!0),l("div",OO,[n.album.artist?(z(),S("p",DO,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.artist"))},null,8,PO),l("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...u)=>o.open_artist&&o.open_artist(...u)),textContent:g(n.album.artist)},null,8,IO)])):H("",!0),n.album.date_released?(z(),S("p",FO,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.release-date"))},null,8,RO),l("span",{class:"title is-6",textContent:g(e.$filters.date(n.album.date_released))},null,8,LO)])):n.album.year>0?(z(),S("p",MO,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.year"))},null,8,NO),l("span",{class:"title is-6",textContent:g(n.album.year)},null,8,VO)])):H("",!0),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.tracks"))},null,8,BO),l("span",{class:"title is-6",textContent:g(n.album.track_count)},null,8,HO)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.duration"))},null,8,UO),l("span",{class:"title is-6",textContent:g(e.$filters.durationInHours(n.album.length_ms))},null,8,jO)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.type"))},null,8,qO),l("span",{class:"title is-6",textContent:g([e.$t("media.kind."+n.album.media_kind),e.$t("data.kind."+n.album.data_kind)].join(" - "))},null,8,WO)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.album.added-on"))},null,8,GO),l("span",{class:"title is-6",textContent:g(e.$filters.datetime(n.album.time_added))},null,8,KO)])])]),l("footer",ZO,[l("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...u)=>o.queue_add&&o.queue_add(...u))},[l("span",YO,[v(a,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.album.add"))},null,8,JO)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...u)=>o.queue_add_next&&o.queue_add_next(...u))},[l("span",XO,[v(a,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.album.add-next"))},null,8,QO)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...u)=>o.play&&o.play(...u))},[l("span",e6,[v(a,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.album.play"))},null,8,t6)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=u=>e.$emit("close"))})])):H("",!0)]),_:1})])}var Kl=re(CO,[["render",n6]]);const s6={name:"ModalDialog",props:["show","title","ok_action","delete_action","close_action"],emits:["delete","close","ok"]},r6={key:0,class:"modal is-active"},o6={class:"modal-content fd-modal-card"},i6={class:"card"},a6={class:"card-content"},l6=["textContent"],u6={class:"card-footer"},c6={class:"icon"},d6=["textContent"],m6={class:"icon"},f6=["textContent"],p6={class:"icon"},h6=["textContent"];function _6(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",r6,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",o6,[l("div",i6,[l("div",a6,[n.title?(z(),S("p",{key:0,class:"title is-4",textContent:g(n.title)},null,8,l6)):H("",!0),ut(e.$slots,"modal-content")]),l("footer",u6,[l("a",{class:"card-footer-item has-text-dark",onClick:t[1]||(t[1]=a=>e.$emit("close"))},[l("span",c6,[v(i,{name:"cancel",size:"16"})]),l("span",{class:"is-size-7",textContent:g(n.close_action?n.close_action:e.$t("dialog.cancel"))},null,8,d6)]),n.delete_action?(z(),S("a",{key:0,class:"card-footer-item has-background-danger has-text-white has-text-weight-bold",onClick:t[2]||(t[2]=a=>e.$emit("delete"))},[l("span",m6,[v(i,{name:"delete",size:"16"})]),l("span",{class:"is-size-7",textContent:g(n.delete_action)},null,8,f6)])):H("",!0),n.ok_action?(z(),S("a",{key:1,class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[3]||(t[3]=a=>e.$emit("ok"))},[l("span",p6,[v(i,{name:"check",size:"16"})]),l("span",{class:"is-size-7",textContent:g(n.ok_action)},null,8,h6)])):H("",!0)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[4]||(t[4]=a=>e.$emit("close"))})])):H("",!0)]),_:3})])}var Xd=re(s6,[["render",_6]]);const g6={name:"ListAlbums",components:{CoverArtwork:Gn,ModalDialogAlbum:Kl,ModalDialog:Xd},props:["albums","media_kind","hide_group_title"],emits:["play-count-changed","podcast-deleted"],data(){return{show_details_modal:!1,selected_album:{},show_remove_podcast_modal:!1,rss_playlist_to_remove:{}}},computed:{is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value},media_kind_resolved(){return this.media_kind?this.media_kind:this.selected_album.media_kind}},methods:{open_album(e){this.selected_album=e,this.media_kind_resolved==="podcast"?this.$router.push({path:"/podcasts/"+e.id}):this.media_kind_resolved==="audiobook"?this.$router.push({path:"/audiobooks/"+e.id}):this.$router.push({path:"/music/albums/"+e.id})},open_dialog(e){this.selected_album=e,this.show_details_modal=!0},open_remove_podcast_dialog(){N.library_album_tracks(this.selected_album.id,{limit:1}).then(({data:e})=>{N.library_track_playlists(e.items[0].id).then(({data:t})=>{this.rss_playlist_to_remove=t.items.filter(n=>n.type==="rss")[0],this.show_remove_podcast_modal=!0,this.show_details_modal=!1})})},play_count_changed(){this.$emit("play-count-changed")},remove_podcast(){this.show_remove_podcast_modal=!1,N.library_playlist_delete(this.rss_playlist_to_remove.id).then(()=>{this.$emit("podcast-deleted")})}}},y6={key:0,class:"mt-6 mb-5 py-2"},v6=["id","textContent"],b6=["onClick"],C6={key:0,class:"media-left"},w6={class:"media-content is-clickable is-clipped"},z6={style:{"margin-top":"0.7rem"}},k6=["textContent"],x6={class:"subtitle is-7 has-text-grey"},E6=["textContent"],$6=["textContent"],S6={class:"media-right",style:{"padding-top":"0.7rem"}},A6=["onClick"],T6={class:"icon has-text-dark"},O6=["textContent"],D6={class:"is-size-7"},P6=["textContent"],I6=["textContent"];function F6(e,t,n,s,r,o){const i=$("cover-artwork"),a=$("mdicon"),u=$("modal-dialog-album"),c=$("modal-dialog");return z(),S(Oe,null,[(z(!0),S(Oe,null,ht(n.albums,d=>(z(),S(Oe,{key:d.itemId},[!d.isItem&&!n.hide_group_title?(z(),S("div",y6,[l("span",{id:"index_"+d.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:g(d.groupKey)},null,8,v6)])):d.isItem?(z(),S("div",{key:1,class:"media",onClick:f=>o.open_album(d.item)},[o.is_visible_artwork?(z(),S("div",C6,[v(i,{artwork_url:d.item.artwork_url,artist:d.item.artist,album:d.item.name,class:"is-clickable fd-has-shadow fd-cover fd-cover-small-image",onClick:t[0]||(t[0]=f=>e.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])):H("",!0),l("div",w6,[l("div",z6,[l("h1",{class:"title is-6",textContent:g(d.item.name)},null,8,k6),l("h2",x6,[l("b",{textContent:g(d.item.artist)},null,8,E6)]),d.item.date_released&&d.item.media_kind==="music"?(z(),S("h2",{key:0,class:"subtitle is-7 has-text-grey has-text-weight-normal",textContent:g(e.$filters.date(d.item.date_released))},null,8,$6)):H("",!0)])]),l("div",S6,[l("a",{onClick:it(f=>o.open_dialog(d.item),["prevent","stop"])},[l("span",T6,[v(a,{name:"dots-vertical",size:"16"})])],8,A6)])],8,b6)):H("",!0)],64))),128)),(z(),be(qs,{to:"#app"},[v(u,{show:r.show_details_modal,album:r.selected_album,media_kind:n.media_kind,onRemovePodcast:t[1]||(t[1]=d=>o.open_remove_podcast_dialog()),onPlayCountChanged:t[2]||(t[2]=d=>o.play_count_changed()),onClose:t[3]||(t[3]=d=>r.show_details_modal=!1)},null,8,["show","album","media_kind"]),v(c,{show:r.show_remove_podcast_modal,title:e.$t("page.podcast.remove-podcast"),delete_action:e.$t("page.podcast.remove"),onClose:t[4]||(t[4]=d=>r.show_remove_podcast_modal=!1),onDelete:o.remove_podcast},{"modal-content":E(()=>[l("p",{textContent:g(e.$t("list.albums.info-1"))},null,8,O6),l("p",D6,[mt(" ("),l("span",{textContent:g(e.$t("list.albums.info-2"))},null,8,P6),l("b",{textContent:g(r.rss_playlist_to_remove.name)},null,8,I6),mt(") ")])]),_:1},8,["show","title","delete_action","onDelete"])]))],64)}var is=re(g6,[["render",F6]]);const R6={name:"ModalDialogTrack",props:["show","track"],emits:["close","play-count-changed"],data(){return{spotify_track:{}}},watch:{track(){if(this.track&&this.track.data_kind==="spotify"){const e=new Wn;e.setAccessToken(this.$store.state.spotify.webapi_token),e.getTrack(this.track.path.slice(this.track.path.lastIndexOf(":")+1)).then(t=>{this.spotify_track=t})}else this.spotify_track={}}},methods:{play_track(){this.$emit("close"),N.player_play_uri(this.track.uri,!1)},queue_add(){this.$emit("close"),N.queue_add(this.track.uri)},queue_add_next(){this.$emit("close"),N.queue_add_next(this.track.uri)},open_album(){this.$emit("close"),this.track.media_kind==="podcast"?this.$router.push({path:"/podcasts/"+this.track.album_id}):this.track.media_kind==="audiobook"?this.$router.push({path:"/audiobooks/"+this.track.album_id}):this.$router.push({path:"/music/albums/"+this.track.album_id})},open_artist(){this.$emit("close"),this.$router.push({path:"/music/artists/"+this.track.album_artist_id})},open_genre(){this.$router.push({name:"Genre",params:{genre:this.track.genre}})},open_spotify_artist(){this.$emit("close"),this.$router.push({path:"/music/spotify/artists/"+this.spotify_track.artists[0].id})},open_spotify_album(){this.$emit("close"),this.$router.push({path:"/music/spotify/albums/"+this.spotify_track.album.id})},mark_new(){N.library_track_update(this.track.id,{play_count:"reset"}).then(()=>{this.$emit("play-count-changed"),this.$emit("close")})},mark_played(){N.library_track_update(this.track.id,{play_count:"increment"}).then(()=>{this.$emit("play-count-changed"),this.$emit("close")})}}},L6={key:0,class:"modal is-active"},M6={class:"modal-content fd-modal-card"},N6={class:"card"},V6={class:"card-content"},B6=["textContent"],H6=["textContent"],U6={key:0,class:"buttons"},j6=["textContent"],q6=["textContent"],W6={class:"content is-small"},G6=["textContent"],K6=["textContent"],Z6={key:0},Y6=["textContent"],J6=["textContent"],X6={key:1},Q6=["textContent"],e3=["textContent"],t3={key:2},n3=["textContent"],s3=["textContent"],r3={key:3},o3=["textContent"],i3=["textContent"],a3={key:4},l3=["textContent"],u3=["textContent"],c3=["textContent"],d3=["textContent"],m3=["textContent"],f3=["textContent"],p3=["textContent"],h3=["textContent"],_3=["textContent"],g3={class:"title is-6"},y3=["textContent"],v3={key:0,class:"has-text-weight-normal"},b3=["textContent"],C3=["textContent"],w3=["textContent"],z3={class:"title is-6"},k3=["textContent"],x3=["textContent"],E3=["textContent"],$3=["textContent"],S3=["textContent"],A3=["textContent"],T3=["textContent"],O3=["textContent"],D3={key:5},P3=["textContent"],I3=["textContent"],F3={class:"card-footer"},R3={class:"icon"},L3=["textContent"],M3={class:"icon"},N3=["textContent"],V3={class:"icon"},B3=["textContent"];function H3(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",L6,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",M6,[l("div",N6,[l("div",V6,[l("p",{class:"title is-4",textContent:g(n.track.title)},null,8,B6),l("p",{class:"subtitle",textContent:g(n.track.artist)},null,8,H6),n.track.media_kind==="podcast"?(z(),S("div",U6,[n.track.play_count>0?(z(),S("a",{key:0,class:"button is-small",onClick:t[1]||(t[1]=(...a)=>o.mark_new&&o.mark_new(...a)),textContent:g(e.$t("dialog.track.mark-as-new"))},null,8,j6)):H("",!0),n.track.play_count===0?(z(),S("a",{key:1,class:"button is-small",onClick:t[2]||(t[2]=(...a)=>o.mark_played&&o.mark_played(...a)),textContent:g(e.$t("dialog.track.mark-as-played"))},null,8,q6)):H("",!0)])):H("",!0),l("div",W6,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.album"))},null,8,G6),l("a",{class:"title is-6 has-text-link",onClick:t[3]||(t[3]=(...a)=>o.open_album&&o.open_album(...a)),textContent:g(n.track.album)},null,8,K6)]),n.track.album_artist&&n.track.media_kind!=="audiobook"?(z(),S("p",Z6,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.album-artist"))},null,8,Y6),l("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:g(n.track.album_artist)},null,8,J6)])):H("",!0),n.track.composer?(z(),S("p",X6,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.composer"))},null,8,Q6),l("span",{class:"title is-6",textContent:g(n.track.composer)},null,8,e3)])):H("",!0),n.track.date_released?(z(),S("p",t3,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.release-date"))},null,8,n3),l("span",{class:"title is-6",textContent:g(e.$filters.date(n.track.date_released))},null,8,s3)])):n.track.year>0?(z(),S("p",r3,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.year"))},null,8,o3),l("span",{class:"title is-6",textContent:g(n.track.year)},null,8,i3)])):H("",!0),n.track.genre?(z(),S("p",a3,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.genre"))},null,8,l3),l("a",{class:"title is-6 has-text-link",onClick:t[5]||(t[5]=(...a)=>o.open_genre&&o.open_genre(...a)),textContent:g(n.track.genre)},null,8,u3)])):H("",!0),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.position"))},null,8,c3),l("span",{class:"title is-6",textContent:g([n.track.disc_number,n.track.track_number].join(" / "))},null,8,d3)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.duration"))},null,8,m3),l("span",{class:"title is-6",textContent:g(e.$filters.durationInHours(n.track.length_ms))},null,8,f3)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.path"))},null,8,p3),l("span",{class:"title is-6",textContent:g(n.track.path)},null,8,h3)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.type"))},null,8,_3),l("span",g3,[l("span",{textContent:g([e.$t("media.kind."+n.track.media_kind),e.$t("data.kind."+n.track.data_kind)].join(" - "))},null,8,y3),n.track.data_kind==="spotify"?(z(),S("span",v3,[mt(" ("),l("a",{onClick:t[6]||(t[6]=(...a)=>o.open_spotify_artist&&o.open_spotify_artist(...a)),textContent:g(e.$t("dialog.track.spotify-artist"))},null,8,b3),mt(", "),l("a",{onClick:t[7]||(t[7]=(...a)=>o.open_spotify_album&&o.open_spotify_album(...a)),textContent:g(e.$t("dialog.track.spotify-album"))},null,8,C3),mt(") ")])):H("",!0)])]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.quality"))},null,8,w3),l("span",z3,[l("span",{textContent:g(n.track.type)},null,8,k3),n.track.samplerate?(z(),S("span",{key:0,textContent:g(e.$t("dialog.track.samplerate",{rate:n.track.samplerate}))},null,8,x3)):H("",!0),n.track.channels?(z(),S("span",{key:1,textContent:g(e.$t("dialog.track.channels",{channels:e.$filters.channels(n.track.channels)}))},null,8,E3)):H("",!0),n.track.bitrate?(z(),S("span",{key:2,textContent:g(e.$t("dialog.track.bitrate",{rate:n.track.bitrate}))},null,8,$3)):H("",!0)])]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.added-on"))},null,8,S3),l("span",{class:"title is-6",textContent:g(e.$filters.datetime(n.track.time_added))},null,8,A3)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.rating"))},null,8,T3),l("span",{class:"title is-6",textContent:g(e.$t("dialog.track.rating-value",{rating:Math.floor(n.track.rating/10)}))},null,8,O3)]),n.track.comment?(z(),S("p",D3,[l("span",{class:"heading",textContent:g(e.$t("dialog.track.comment"))},null,8,P3),l("span",{class:"title is-6",textContent:g(n.track.comment)},null,8,I3)])):H("",!0)])]),l("footer",F3,[l("a",{class:"card-footer-item has-text-dark",onClick:t[8]||(t[8]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",R3,[v(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.track.add"))},null,8,L3)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[9]||(t[9]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",M3,[v(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.track.add-next"))},null,8,N3)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[10]||(t[10]=(...a)=>o.play_track&&o.play_track(...a))},[l("span",V3,[v(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.track.play"))},null,8,B3)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[11]||(t[11]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var U3=re(R6,[["render",H3]]);const j3={name:"ProgressBar",props:["max","value"],computed:{width(){return this.value>0&&this.max>0?parseInt(this.value*100/this.max):0},width_percent(){return this.width+"%"}}};function q3(e,t,n,s,r,o){return o.width>0?(z(),S("div",{key:0,class:"progress-bar mt-2",style:ln({width:o.width_percent})},null,4)):H("",!0)}var W3=re(j3,[["render",q3]]);const G3={name:"ListTracks",components:{ModalDialogTrack:U3,ProgressBar:W3},props:["tracks","uris","expression","show_progress","show_icon"],emits:["play-count-changed"],data(){return{show_details_modal:!1,selected_track:{}}},methods:{play_track(e,t){this.uris?N.player_play_uri(this.uris,!1,e):this.expression?N.player_play_expression(this.expression,!1,e):N.player_play_uri(t.uri,!1)},open_dialog(e){this.selected_track=e,this.show_details_modal=!0}}},K3={key:0,class:"mt-6 mb-5 py-2"},Z3=["id","textContent"],Y3=["onClick"],J3={key:0,class:"media-left is-clickable"},X3={class:"icon"},Q3={class:"media-content is-clickable is-clipped"},e4=["textContent"],t4=["textContent"],n4=["textContent"],s4={class:"media-right"},r4=["onClick"],o4={class:"icon has-text-dark"};function i4(e,t,n,s,r,o){const i=$("mdicon"),a=$("progress-bar"),u=$("modal-dialog-track");return z(),S(Oe,null,[(z(!0),S(Oe,null,ht(n.tracks,(c,d)=>(z(),S(Oe,{key:c.itemId},[c.isItem?c.isItem?(z(),S("div",{key:1,class:Ae(["media",{"with-progress":n.show_progress}]),onClick:f=>o.play_track(d,c.item)},[n.show_icon?(z(),S("figure",J3,[l("span",X3,[v(i,{name:"file-outline",size:"16"})])])):H("",!0),l("div",Q3,[l("h1",{class:Ae(["title is-6",{"has-text-grey":c.item.media_kind==="podcast"&&c.item.play_count>0}]),textContent:g(c.item.title)},null,10,e4),l("h2",{class:"subtitle is-7 has-text-grey",textContent:g(c.item.artist)},null,8,t4),l("h2",{class:"subtitle is-7 has-text-grey",textContent:g(c.item.album)},null,8,n4),n.show_progress?(z(),be(a,{key:0,max:c.item.length_ms,value:c.item.seek_ms},null,8,["max","value"])):H("",!0)]),l("div",s4,[l("a",{onClick:it(f=>o.open_dialog(c.item),["prevent","stop"])},[l("span",o4,[v(i,{name:"dots-vertical",size:"16"})])],8,r4)])],10,Y3)):H("",!0):(z(),S("div",K3,[l("span",{id:"index_"+c.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:g(c.groupKey)},null,8,Z3)]))],64))),128)),(z(),be(qs,{to:"#app"},[v(u,{show:r.show_details_modal,track:r.selected_track,onClose:t[0]||(t[0]=c=>r.show_details_modal=!1),onPlayCountChanged:t[1]||(t[1]=c=>e.$emit("play-count-changed"))},null,8,["show","track"])]))],64)}var wn=re(G3,[["render",i4]]);const{t:Pu,locale:Qd}=Fl.global,lv="GROUP_KEY_NONE";function uv(){return{compareFn:null,groupKeyFn:e=>lv}}function Kn(e,t=!1,n="_"){return{compareFn:t?null:(s,r)=>{const o=s[e]||n,i=r[e]||n;return o.localeCompare(i,Qd.value)},groupKeyFn:s=>{const r=(s[e]||n).charAt(0);return r.match(/\p{Letter}/gu)?r.toUpperCase():r.match(/\p{Number}/gu)?"#":"\u2318"}}}function em(e,{direction:t="asc",defaultValue:n=0}){return{compareFn:(s,r)=>{const o=s[e]||n,i=r[e]||n,a=o-i;return t==="asc"?a:a*-1},groupKeyFn:s=>{const r=s[e]||n;return Math.floor(r/10)}}}function ul(e,{direction:t="asc",defaultValue:n="0000"}){return{compareFn:(s,r)=>{const o=s[e]||n,i=r[e]||n,a=o.localeCompare(i,Qd.value);return t==="asc"?a:a*-1},groupKeyFn:s=>(s[e]||n).substring(0,4)}}function a4(e,t="0000"){return{compareFn:(n,s)=>{const r=n[e]||t;return(s[e]||t).localeCompare(r,Qd.value)},groupKeyFn:n=>{const s=n[e];if(!s)return t;const r=new Date().getTime()-new Date(s).getTime();return r<864e5?Pu("group-by-list.today"):r<6048e5?Pu("group-by-list.last-week"):r<2592e6?Pu("group-by-list.last-month"):s.substring(0,4)}}}class ze{constructor({items:t=[],total:n=0,offset:s=0,limit:r=-1}={}){this.items=t,this.total=n,this.offset=s,this.limit=r,this.count=t.length,this.indexList=[],this.group(uv())}get(){return this.itemsByGroup}isEmpty(){return!this.items||this.items.length<=0}group(t,n=[]){const s=n?this.items.filter(o=>n.every(i=>i(o))):this.items;this.count=s.length;let r=t.compareFn?[...s].sort(t.compareFn):s;this.indexList=[...new Set(r.map(t.groupKeyFn))],this.itemsByGroup=r.reduce((o,i)=>{const a=t.groupKeyFn(i);return o[a]=[...o[a]||[],i],o},{})}[Symbol.iterator](){let t=-1,n=-1;return{next:()=>{if(this.isEmpty())return{done:!0};if(t>=this.indexList.length)return{done:!0};if(t<0&&(++t,n=0,this.indexList[t]!==lv))return{value:{groupKey:this.indexList[t],itemId:this.indexList[t],isItem:!1,item:{}},done:!1};let s=this.indexList[t],r=this.itemsByGroup[s];if(n<r.length){const o=this.itemsByGroup[s][n++];return{value:{groupKey:s,itemId:o.id,isItem:!0,item:o},done:!1}}else return++t,n=0,t<this.indexList.length?(s=this.indexList[t],{value:{groupKey:s,itemId:s,isItem:!1,item:{}},done:!1}):{done:!0}}}}}const Ji={load(e){return Promise.all([N.search({type:"album",expression:"time_added after 8 weeks ago and media_kind is music having track_count > 3 order by time_added desc",limit:3}),N.search({type:"track",expression:"time_played after 8 weeks ago and media_kind is music order by time_played desc",limit:3})])},set(e,t){e.recently_added=new ze(t[0].data.albums),e.recently_played=new ze(t[1].data.tracks)}},l4={name:"PageBrowse",components:{ContentWithHeading:st,TabsMusic:os,ListAlbums:is,ListTracks:wn},beforeRouteEnter(e,t,n){Ji.load(e).then(s=>{n(r=>Ji.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;Ji.load(e).then(r=>{Ji.set(s,r),n()})},data(){return{recently_added:[],recently_played:{items:[]},show_track_details_modal:!1,selected_track:{}}},methods:{open_browse(e){this.$router.push({path:"/music/browse/"+e})}}},u4={class:"fd-page-with-tabs"},c4=["textContent"],d4=["textContent"],m4={class:"level"},f4={class:"level-item"},p4=["textContent"],h4=["textContent"],_4=["textContent"],g4={class:"level"},y4={class:"level-item"},v4=["textContent"];function b4(e,t,n,s,r,o){const i=$("tabs-music"),a=$("list-albums"),u=$("content-with-heading"),c=$("list-tracks");return z(),S("div",u4,[v(i),v(u,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.browse.recently-added.title"))},null,8,c4),l("p",{class:"heading",textContent:g(e.$t("page.browse.albums"))},null,8,d4)]),content:E(()=>[v(a,{albums:r.recently_added},null,8,["albums"])]),footer:E(()=>[l("nav",m4,[l("p",f4,[l("a",{class:"button is-light is-small is-rounded",onClick:t[0]||(t[0]=d=>o.open_browse("recently_added")),textContent:g(e.$t("page.browse.show-more"))},null,8,p4)])])]),_:1}),v(u,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.browse.recently-played.title"))},null,8,h4),l("p",{class:"heading",textContent:g(e.$t("page.browse.tracks"))},null,8,_4)]),content:E(()=>[v(c,{tracks:r.recently_played},null,8,["tracks"])]),footer:E(()=>[l("nav",g4,[l("p",y4,[l("a",{class:"button is-light is-small is-rounded",onClick:t[1]||(t[1]=d=>o.open_browse("recently_played")),textContent:g(e.$t("page.browse.show-more"))},null,8,v4)])])]),_:1})])}var C4=re(l4,[["render",b4]]);const Xi={load(e){const t=Ke.getters.settings_option_recently_added_limit;return N.search({type:"album",expression:"media_kind is music having track_count > 3 order by time_added desc",limit:t})},set(e,t){e.recently_added=new ze(t.data.albums),e.recently_added.group(a4("time_added",{direction:"desc"}))}},w4={name:"PageBrowseType",components:{ContentWithHeading:st,TabsMusic:os,ListAlbums:is},beforeRouteEnter(e,t,n){Xi.load(e).then(s=>{n(r=>Xi.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.recently_added.isEmpty()){n();return}const s=this;Xi.load(e).then(r=>{Xi.set(s,r),n()})},data(){return{recently_added:new ze}}},z4={class:"fd-page-with-tabs"},k4=["textContent"],x4=["textContent"];function E4(e,t,n,s,r,o){const i=$("tabs-music"),a=$("list-albums"),u=$("content-with-heading");return z(),S("div",z4,[v(i),v(u,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.browse.recently-added.title"))},null,8,k4),l("p",{class:"heading",textContent:g(e.$t("page.browse.recently-added.albums"))},null,8,x4)]),content:E(()=>[v(a,{albums:r.recently_added},null,8,["albums"])]),_:1})])}var $4=re(w4,[["render",E4]]);const Qi={load(e){return N.search({type:"track",expression:"time_played after 8 weeks ago and media_kind is music order by time_played desc",limit:50})},set(e,t){e.recently_played=new ze(t.data.tracks)}},S4={name:"PageBrowseType",components:{ContentWithHeading:st,TabsMusic:os,ListTracks:wn},beforeRouteEnter(e,t,n){Qi.load(e).then(s=>{n(r=>Qi.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;Qi.load(e).then(r=>{Qi.set(s,r),n()})},data(){return{recently_played:{}}}},A4={class:"fd-page-with-tabs"},T4=["textContent"],O4=["textContent"];function D4(e,t,n,s,r,o){const i=$("tabs-music"),a=$("list-tracks"),u=$("content-with-heading");return z(),S("div",A4,[v(i),v(u,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.browse.recently-played.title"))},null,8,T4),l("p",{class:"heading",textContent:g(e.$t("page.browse.recently-played.tracks"))},null,8,O4)]),content:E(()=>[v(a,{tracks:r.recently_played},null,8,["tracks"])]),_:1})])}var P4=re(S4,[["render",D4]]);const I4={name:"IndexButtonList",props:["index"],methods:{nav(e){this.$router.push({hash:"#index_"+e})}}},F4={class:"buttons is-centered fd-is-square",style:{"margin-bottom":"16px"}},R4=["onClick","textContent"];function L4(e,t,n,s,r,o){return z(),S("section",null,[l("nav",F4,[(z(!0),S(Oe,null,ht(n.index,i=>(z(),S("a",{key:i,class:"button is-small",onClick:a=>o.nav(i),textContent:g(i)},null,8,R4))),128))])])}var as=re(I4,[["render",L4]]);const M4={name:"ModalDialogArtist",props:["show","artist"],emits:["close"],methods:{play(){this.$emit("close"),N.player_play_uri(this.artist.uri,!1)},queue_add(){this.$emit("close"),N.queue_add(this.artist.uri)},queue_add_next(){this.$emit("close"),N.queue_add_next(this.artist.uri)},open_artist(){this.$emit("close"),this.$router.push({path:"/music/artists/"+this.artist.id})}}},N4={key:0,class:"modal is-active"},V4={class:"modal-content fd-modal-card"},B4={class:"card"},H4={class:"card-content"},U4={class:"title is-4"},j4=["textContent"],q4={class:"content is-small"},W4=["textContent"],G4=["textContent"],K4=["textContent"],Z4=["textContent"],Y4=["textContent"],J4=["textContent"],X4=["textContent"],Q4=["textContent"],e5={class:"card-footer"},t5={class:"icon"},n5=["textContent"],s5={class:"icon"},r5=["textContent"],o5={class:"icon"},i5=["textContent"];function a5(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",N4,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",V4,[l("div",B4,[l("div",H4,[l("p",U4,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:g(n.artist.name)},null,8,j4)]),l("div",q4,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.artist.albums"))},null,8,W4),l("span",{class:"title is-6",textContent:g(n.artist.album_count)},null,8,G4)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.artist.tracks"))},null,8,K4),l("span",{class:"title is-6",textContent:g(n.artist.track_count)},null,8,Z4)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.artist.type"))},null,8,Y4),l("span",{class:"title is-6",textContent:g(e.$t("data.kind."+n.artist.data_kind))},null,8,J4)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.artist.added-on"))},null,8,X4),l("span",{class:"title is-6",textContent:g(e.$filters.datetime(n.artist.time_added))},null,8,Q4)])])]),l("footer",e5,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",t5,[v(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.artist.add"))},null,8,n5)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",s5,[v(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.artist.add-next"))},null,8,r5)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[l("span",o5,[v(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.artist.play"))},null,8,i5)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var Zl=re(M4,[["render",a5]]);const l5={name:"ListArtists",components:{ModalDialogArtist:Zl},props:["artists","media_kind","hide_group_title"],data(){return{show_details_modal:!1,selected_artist:{}}},computed:{media_kind_resolved(){return this.media_kind?this.media_kind:this.selected_artist.media_kind}},methods:{open_artist(e){this.selected_artist=e,this.media_kind_resolved==="audiobook"?this.$router.push({path:"/audiobooks/artists/"+e.id}):this.$router.push({path:"/music/artists/"+e.id})},open_dialog(e){this.selected_artist=e,this.show_details_modal=!0}}},u5={key:0,class:"mt-6 mb-5 py-2"},c5={class:"media-content is-clipped"},d5=["id","textContent"],m5=["onClick"],f5={class:"media-content is-clickable is-clipped"},p5=["textContent"],h5={class:"media-right"},_5=["onClick"],g5={class:"icon has-text-dark"};function y5(e,t,n,s,r,o){const i=$("mdicon"),a=$("modal-dialog-artist");return z(),S(Oe,null,[(z(!0),S(Oe,null,ht(n.artists,u=>(z(),S(Oe,{key:u.itemId},[!u.isItem&&!n.hide_group_title?(z(),S("div",u5,[l("div",c5,[l("span",{id:"index_"+u.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:g(u.groupKey)},null,8,d5)])])):u.isItem?(z(),S("div",{key:1,class:"media",onClick:c=>o.open_artist(u.item)},[l("div",f5,[l("h1",{class:"title is-6",textContent:g(u.item.name)},null,8,p5)]),l("div",h5,[l("a",{onClick:it(c=>o.open_dialog(u.item),["prevent","stop"])},[l("span",g5,[v(i,{name:"dots-vertical",size:"16"})])],8,_5)])],8,m5)):H("",!0)],64))),128)),(z(),be(qs,{to:"#app"},[v(a,{show:r.show_details_modal,artist:r.selected_artist,media_kind:n.media_kind,onClose:t[0]||(t[0]=u=>r.show_details_modal=!1)},null,8,["show","artist","media_kind"])]))],64)}var tm=re(l5,[["render",y5]]);const v5={name:"DropdownMenu",props:["modelValue","options"],emits:["update:modelValue"],data(){return{is_active:!1}},computed:{option:{get(){return this.options.find(e=>e.id===this.modelValue)}}},methods:{onClickOutside(e){this.is_active=!1},select(e){this.is_active=!1,this.$emit("update:modelValue",e.id)}}},b5={class:"dropdown-trigger"},C5=["textContent"],w5={class:"icon"},z5={id:"dropdown-menu",class:"dropdown-menu",role:"menu"},k5={class:"dropdown-content"},x5=["onClick","textContent"];function E5(e,t,n,s,r,o){const i=$("mdicon"),a=fd("click-away");return dt((z(),S("div",{class:Ae(["dropdown",{"is-active":r.is_active}])},[l("div",b5,[l("button",{class:"button","aria-haspopup":"true","aria-controls":"dropdown-menu",onClick:t[0]||(t[0]=u=>r.is_active=!r.is_active)},[l("span",{textContent:g(o.option.name)},null,8,C5),l("span",w5,[v(i,{name:"chevron-down",size:"16"})])])]),l("div",z5,[l("div",k5,[(z(!0),S(Oe,null,ht(n.options,u=>(z(),S("a",{key:u.id,class:Ae(["dropdown-item",{"is-active":n.modelValue===u.id}]),onClick:c=>o.select(u),textContent:g(u.name)},null,10,x5))),128))])])],2)),[[a,o.onClickOutside]])}var gr=re(v5,[["render",E5]]);const ea={load(e){return N.library_artists("music")},set(e,t){e.artists_list=new ze(t.data)}},$5={name:"PageArtists",components:{ContentWithHeading:st,TabsMusic:os,IndexButtonList:as,ListArtists:tm,DropdownMenu:gr},beforeRouteEnter(e,t,n){ea.load(e).then(s=>{n(r=>ea.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.artists_list.isEmpty()){n();return}const s=this;ea.load(e).then(r=>{ea.set(s,r),n()})},data(){return{artists_list:new ze,groupby_options:[{id:1,name:this.$t("page.artists.sort-by.name"),options:Kn("name_sort",!0)},{id:2,name:this.$t("page.artists.sort-by.recently-added"),options:ul("time_added",{direction:"desc"})}]}},computed:{artists(){if(!this.artists_list)return[];const e=this.groupby_options.find(t=>t.id===this.selected_groupby_option_id);return this.artists_list.group(e.options,[t=>!this.hide_singles||t.track_count>t.album_count*2,t=>!this.hide_spotify||t.data_kind!=="spotify"]),this.artists_list},selected_groupby_option_id:{get(){return this.$store.state.artists_sort},set(e){this.$store.commit($g,e)}},spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},hide_singles:{get(){return this.$store.state.hide_singles},set(e){this.$store.commit(Ml,e)}},hide_spotify:{get(){return this.$store.state.hide_spotify},set(e){this.$store.commit(Rd,e)}}},methods:{}},S5={class:"fd-page-with-tabs"},A5={class:"columns"},T5={class:"column"},O5=["textContent"],D5={class:"field"},P5={class:"control"},I5=["textContent"],F5=["textContent"],R5={key:0,class:"field"},L5={class:"control"},M5=["textContent"],N5=["textContent"],V5={class:"column"},B5=["textContent"],H5=["textContent"],U5=["textContent"];function j5(e,t,n,s,r,o){const i=$("tabs-music"),a=$("index-button-list"),u=$("dropdown-menu"),c=$("list-artists"),d=$("content-with-heading");return z(),S("div",S5,[v(i),v(d,null,{options:E(()=>[v(a,{index:o.artists.indexList},null,8,["index"]),l("div",A5,[l("div",T5,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.artists.filter"))},null,8,O5),l("div",D5,[l("div",P5,[dt(l("input",{id:"switchHideSingles","onUpdate:modelValue":t[0]||(t[0]=f=>o.hide_singles=f),type:"checkbox",name:"switchHideSingles",class:"switch"},null,512),[[gs,o.hide_singles]]),l("label",{for:"switchHideSingles",textContent:g(e.$t("page.artists.hide-singles"))},null,8,I5)]),l("p",{class:"help",textContent:g(e.$t("page.artists.hide-singles-help"))},null,8,F5)]),o.spotify_enabled?(z(),S("div",R5,[l("div",L5,[dt(l("input",{id:"switchHideSpotify","onUpdate:modelValue":t[1]||(t[1]=f=>o.hide_spotify=f),type:"checkbox",name:"switchHideSpotify",class:"switch"},null,512),[[gs,o.hide_spotify]]),l("label",{for:"switchHideSpotify",textContent:g(e.$t("page.artists.hide-spotify"))},null,8,M5)]),l("p",{class:"help",textContent:g(e.$t("page.artists.hide-spotify-help"))},null,8,N5)])):H("",!0)]),l("div",V5,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.artists.sort-by.title"))},null,8,B5),v(u,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[2]||(t[2]=f=>o.selected_groupby_option_id=f),options:r.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.artists.title"))},null,8,H5),l("p",{class:"heading",textContent:g(e.$t("page.artists.count",{count:o.artists.count}))},null,8,U5)]),"heading-right":E(()=>[]),content:E(()=>[v(c,{artists:o.artists},null,8,["artists"])]),_:1})])}var q5=re($5,[["render",j5]]);const ta={load(e){return Promise.all([N.library_artist(e.params.artist_id),N.library_artist_albums(e.params.artist_id)])},set(e,t){e.artist=t[0].data,e.albums_list=new ze(t[1].data)}},W5={name:"PageArtist",components:{ContentWithHeading:st,ListAlbums:is,ModalDialogArtist:Zl,DropdownMenu:gr},beforeRouteEnter(e,t,n){ta.load(e).then(s=>{n(r=>ta.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ta.load(e).then(r=>{ta.set(s,r),n()})},data(){return{artist:{},albums_list:new ze,groupby_options:[{id:1,name:this.$t("page.artist.sort-by.name"),options:Kn("name_sort",!0)},{id:2,name:this.$t("page.artist.sort-by.release-date"),options:ul("date_released",{direction:"asc"})}],show_artist_details_modal:!1}},computed:{albums(){const e=this.groupby_options.find(t=>t.id===this.selected_groupby_option_id);return this.albums_list.group(e.options),this.albums_list},selected_groupby_option_id:{get(){return this.$store.state.artist_albums_sort},set(e){this.$store.commit(Sg,e)}}},methods:{open_tracks(){this.$router.push({path:"/music/artists/"+this.artist.id+"/tracks"})},play(){N.player_play_uri(this.albums.items.map(e=>e.uri).join(","),!0)}}},G5={class:"fd-page"},K5={class:"columns"},Z5={class:"column"},Y5=["textContent"],J5=["textContent"],X5={class:"buttons is-centered"},Q5={class:"icon"},eD={class:"icon"},tD=["textContent"],nD={class:"heading has-text-centered-mobile"},sD=["textContent"],rD=l("span",null,"\xA0|\xA0",-1),oD=["textContent"];function iD(e,t,n,s,r,o){const i=$("dropdown-menu"),a=$("mdicon"),u=$("list-albums"),c=$("modal-dialog-artist"),d=$("content-with-heading");return z(),S("div",G5,[v(d,null,{options:E(()=>[l("div",K5,[l("div",Z5,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.artist.sort-by.title"))},null,8,Y5),v(i,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[0]||(t[0]=f=>o.selected_groupby_option_id=f),options:r.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(r.artist.name)},null,8,J5)]),"heading-right":E(()=>[l("div",X5,[l("a",{class:"button is-small is-light is-rounded",onClick:t[1]||(t[1]=f=>r.show_artist_details_modal=!0)},[l("span",Q5,[v(a,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[2]||(t[2]=(...f)=>o.play&&o.play(...f))},[l("span",eD,[v(a,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.artist.shuffle"))},null,8,tD)])])]),content:E(()=>[l("p",nD,[l("span",{textContent:g(e.$t("page.artist.album-count",{count:r.artist.album_count}))},null,8,sD),rD,l("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...f)=>o.open_tracks&&o.open_tracks(...f)),textContent:g(e.$t("page.artist.track-count",{count:r.artist.track_count}))},null,8,oD)]),v(u,{albums:o.albums,hide_group_title:!0},null,8,["albums"]),v(c,{show:r.show_artist_details_modal,artist:r.artist,onClose:t[4]||(t[4]=f=>r.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})])}var aD=re(W5,[["render",iD]]);const na={load(e){return N.library_albums("music")},set(e,t){e.albums_list=new ze(t.data)}},lD={name:"PageAlbums",components:{ContentWithHeading:st,TabsMusic:os,IndexButtonList:as,ListAlbums:is,DropdownMenu:gr},beforeRouteEnter(e,t,n){na.load(e).then(s=>{n(r=>na.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.albums_list.isEmpty()){n();return}const s=this;na.load(e).then(r=>{na.set(s,r),n()})},data(){return{albums_list:new ze,groupby_options:[{id:1,name:this.$t("page.albums.sort-by.name"),options:Kn("name_sort",!0)},{id:2,name:this.$t("page.albums.sort-by.recently-added"),options:ul("time_added",{direction:"desc"})},{id:3,name:this.$t("page.albums.sort-by.recently-released"),options:ul("date_released",{direction:"desc"})}]}},computed:{albums(){const e=this.groupby_options.find(t=>t.id===this.selected_groupby_option_id);return this.albums_list.group(e.options,[t=>!this.hide_singles||t.track_count>2,t=>!this.hide_spotify||t.data_kind!=="spotify"]),this.albums_list},selected_groupby_option_id:{get(){return this.$store.state.albums_sort},set(e){this.$store.commit(Tg,e)}},spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},hide_singles:{get(){return this.$store.state.hide_singles},set(e){this.$store.commit(Ml,e)}},hide_spotify:{get(){return this.$store.state.hide_spotify},set(e){this.$store.commit(Rd,e)}}}},uD={class:"fd-page-with-tabs"},cD={class:"columns"},dD={class:"column"},mD=["textContent"],fD={class:"field"},pD={class:"control"},hD=["textContent"],_D=["textContent"],gD={key:0,class:"field"},yD={class:"control"},vD=["textContent"],bD=["textContent"],CD={class:"column"},wD=["textContent"],zD=["textContent"],kD=["textContent"];function xD(e,t,n,s,r,o){const i=$("tabs-music"),a=$("index-button-list"),u=$("dropdown-menu"),c=$("list-albums"),d=$("content-with-heading");return z(),S("div",uD,[v(i),v(d,null,{options:E(()=>[v(a,{index:o.albums.indexList},null,8,["index"]),l("div",cD,[l("div",dD,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.albums.filter"))},null,8,mD),l("div",fD,[l("div",pD,[dt(l("input",{id:"switchHideSingles","onUpdate:modelValue":t[0]||(t[0]=f=>o.hide_singles=f),type:"checkbox",name:"switchHideSingles",class:"switch"},null,512),[[gs,o.hide_singles]]),l("label",{for:"switchHideSingles",textContent:g(e.$t("page.albums.hide-singles"))},null,8,hD)]),l("p",{class:"help",textContent:g(e.$t("page.albums.hide-singles-help"))},null,8,_D)]),o.spotify_enabled?(z(),S("div",gD,[l("div",yD,[dt(l("input",{id:"switchHideSpotify","onUpdate:modelValue":t[1]||(t[1]=f=>o.hide_spotify=f),type:"checkbox",name:"switchHideSpotify",class:"switch"},null,512),[[gs,o.hide_spotify]]),l("label",{for:"switchHideSpotify",textContent:g(e.$t("page.albums.hide-spotify"))},null,8,vD)]),l("p",{class:"help",textContent:g(e.$t("page.albums.hide-spotify-help"))},null,8,bD)])):H("",!0)]),l("div",CD,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.albums.sort-by.title"))},null,8,wD),v(u,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[2]||(t[2]=f=>o.selected_groupby_option_id=f),options:r.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.albums.title"))},null,8,zD),l("p",{class:"heading",textContent:g(e.$t("page.albums.count",{count:o.albums.count}))},null,8,kD)]),"heading-right":E(()=>[]),content:E(()=>[v(c,{albums:o.albums},null,8,["albums"])]),_:1})])}var ED=re(lD,[["render",xD]]);const $D={},SD={class:"hero is-light is-bold"},AD={class:"hero-body"},TD={class:"container"},OD={class:"columns is-centered"},DD={class:"column is-four-fifths"},PD={class:"columns",style:{"flex-direction":"row-reverse"}},ID={class:"column fd-has-cover"},FD={class:"column m-auto is-three-fifths has-text-centered-mobile"},RD={class:"section pt-0"},LD={class:"container"},MD={class:"columns is-centered"},ND={class:"column is-four-fifths"};function VD(e,t){return z(),S(Oe,null,[l("section",SD,[l("div",AD,[l("div",TD,[l("div",OD,[l("div",DD,[l("div",PD,[l("div",ID,[ut(e.$slots,"heading-right")]),l("div",FD,[ut(e.$slots,"heading-left")])])])])])])]),l("section",RD,[l("div",LD,[l("div",MD,[l("div",ND,[ut(e.$slots,"content"),ut(e.$slots,"footer")])])])])],64)}var nm=re($D,[["render",VD]]);const sa={load(e){return Promise.all([N.library_album(e.params.album_id),N.library_album_tracks(e.params.album_id)])},set(e,t){e.album=t[0].data,e.tracks=new ze(t[1].data)}},BD={name:"PageAlbum",components:{ContentWithHero:nm,ListTracks:wn,ModalDialogAlbum:Kl,CoverArtwork:Gn},beforeRouteEnter(e,t,n){sa.load(e).then(s=>{n(r=>sa.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;sa.load(e).then(r=>{sa.set(s,r),n()})},data(){return{album:{},tracks:new ze,show_album_details_modal:!1}},methods:{open_artist(){this.show_details_modal=!1,this.$router.push({path:"/music/artists/"+this.album.artist_id})},play(){N.player_play_uri(this.album.uri,!0)}}},HD={class:"fd-page"},UD=["textContent"],jD={class:"subtitle is-6 has-text-link has-text-weight-normal"},qD=["textContent"],WD={class:"buttons fd-is-centered-mobile fd-has-margin-top"},GD={class:"icon"},KD=["textContent"],ZD={class:"icon"},YD=["textContent"];function JD(e,t,n,s,r,o){const i=$("mdicon"),a=$("cover-artwork"),u=$("list-tracks"),c=$("modal-dialog-album"),d=$("content-with-hero");return z(),S("div",HD,[v(d,null,{"heading-left":E(()=>[l("h1",{class:"title is-5",textContent:g(r.album.name)},null,8,UD),l("h2",jD,[l("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...f)=>o.open_artist&&o.open_artist(...f)),textContent:g(r.album.artist)},null,8,qD)]),l("div",WD,[l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[l("span",GD,[v(i,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.album.shuffle"))},null,8,KD)]),l("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=f=>r.show_album_details_modal=!0)},[l("span",ZD,[v(i,{name:"dots-horizontal",size:"16"})])])])]),"heading-right":E(()=>[v(a,{artwork_url:r.album.artwork_url,artist:r.album.artist,album:r.album.name,class:"is-clickable fd-has-shadow fd-cover fd-cover-medium-image",onClick:t[3]||(t[3]=f=>r.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])]),content:E(()=>[l("p",{class:"heading is-7 has-text-centered-mobile fd-has-margin-top",textContent:g(e.$t("page.album.track-count",{count:r.album.track_count}))},null,8,YD),v(u,{tracks:r.tracks,uris:r.album.uri},null,8,["tracks","uris"]),v(c,{show:r.show_album_details_modal,album:r.album,onClose:t[4]||(t[4]=f=>r.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})])}var XD=re(BD,[["render",JD]]);const QD={name:"ModalDialogGenre",props:["show","genre"],emits:["close"],methods:{play(){this.$emit("close"),N.player_play_expression('genre is "'+this.genre.name+'" and media_kind is music',!1)},queue_add(){this.$emit("close"),N.queue_expression_add('genre is "'+this.genre.name+'" and media_kind is music')},queue_add_next(){this.$emit("close"),N.queue_expression_add_next('genre is "'+this.genre.name+'" and media_kind is music')},open_genre(){this.$emit("close"),this.$router.push({name:"Genre",params:{genre:this.genre.name}})}}},eP={key:0,class:"modal is-active"},tP={class:"modal-content fd-modal-card"},nP={class:"card"},sP={class:"card-content"},rP={class:"title is-4"},oP=["textContent"],iP={class:"content is-small"},aP=["textContent"],lP=["textContent"],uP=["textContent"],cP=["textContent"],dP=["textContent"],mP=["textContent"],fP={class:"card-footer"},pP={class:"icon"},hP=["textContent"],_P={class:"icon"},gP=["textContent"],yP={class:"icon"},vP=["textContent"];function bP(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",eP,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",tP,[l("div",nP,[l("div",sP,[l("p",rP,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_genre&&o.open_genre(...a)),textContent:g(n.genre.name)},null,8,oP)]),l("div",iP,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.genre.albums"))},null,8,aP),l("span",{class:"title is-6",textContent:g(n.genre.album_count)},null,8,lP)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.genre.tracks"))},null,8,uP),l("span",{class:"title is-6",textContent:g(n.genre.track_count)},null,8,cP)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.genre.duration"))},null,8,dP),l("span",{class:"title is-6",textContent:g(e.$filters.durationInHours(n.genre.length_ms))},null,8,mP)])])]),l("footer",fP,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",pP,[v(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.genre.add"))},null,8,hP)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",_P,[v(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.genre.add-next"))},null,8,gP)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[l("span",yP,[v(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.genre.play"))},null,8,vP)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var sm=re(QD,[["render",bP]]);const CP={name:"ListGenres",components:{ModalDialogGenre:sm},props:["genres","media_kind","hide_group_title"],data(){return{show_details_modal:!1,selected_genre:{}}},computed:{media_kind_resolved(){return this.media_kind?this.media_kind:this.selected_genre.media_kind}},methods:{open_genre(e){this.$router.push({name:"Genre",params:{genre:e.name}})},open_dialog(e){this.selected_genre=e,this.show_details_modal=!0}}},wP={key:0,class:"mt-6 mb-5 py-2"},zP={class:"media-content is-clipped"},kP=["id","textContent"],xP=["onClick"],EP={class:"media-content is-clickable is-clipped"},$P=["textContent"],SP={class:"media-right"},AP=["onClick"],TP={class:"icon has-text-dark"};function OP(e,t,n,s,r,o){const i=$("mdicon"),a=$("modal-dialog-genre");return z(),S(Oe,null,[(z(!0),S(Oe,null,ht(n.genres,u=>(z(),S(Oe,{key:u.itemId},[!u.isItem&&!n.hide_group_title?(z(),S("div",wP,[l("div",zP,[l("span",{id:"index_"+u.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:g(u.groupKey)},null,8,kP)])])):u.isItem?(z(),S("div",{key:1,class:"media",onClick:c=>o.open_genre(u.item)},[l("div",EP,[l("h1",{class:"title is-6",textContent:g(u.item.name)},null,8,$P)]),l("div",SP,[l("a",{onClick:it(c=>o.open_dialog(u.item),["prevent","stop"])},[l("span",TP,[v(i,{name:"dots-vertical",size:"16"})])],8,AP)])],8,xP)):H("",!0)],64))),128)),(z(),be(qs,{to:"#app"},[v(a,{show:r.show_details_modal,genre:r.selected_genre,onClose:t[0]||(t[0]=u=>r.show_details_modal=!1)},null,8,["show","genre"])]))],64)}var DP=re(CP,[["render",OP]]);const ra={load(e){return N.library_genres("music")},set(e,t){e.genres=t.data,e.genres=new ze(t.data),e.genres.group(Kn("name_sort"))}},PP={name:"PageGenres",components:{ContentWithHeading:st,TabsMusic:os,IndexButtonList:as,ListGenres:DP},beforeRouteEnter(e,t,n){ra.load(e).then(s=>{n(r=>ra.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ra.load(e).then(r=>{ra.set(s,r),n()})},data(){return{genres:new ze}},computed:{},methods:{}},IP={class:"fd-page-with-tabs"},FP=["textContent"],RP=["textContent"];function LP(e,t,n,s,r,o){const i=$("tabs-music"),a=$("index-button-list"),u=$("list-genres"),c=$("content-with-heading");return z(),S("div",IP,[v(i),v(c,null,{options:E(()=>[v(a,{index:r.genres.indexList},null,8,["index"])]),"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.genres.title"))},null,8,FP),l("p",{class:"heading",textContent:g(e.$t("page.genres.count",{count:r.genres.total}))},null,8,RP)]),content:E(()=>[v(u,{genres:r.genres},null,8,["genres"])]),_:1})])}var MP=re(PP,[["render",LP]]);const oa={load(e){return Promise.all([N.library_genre(e.params.genre),N.library_genre_albums(e.params.genre)])},set(e,t){e.genre=t[0].data,e.albums_list=new ze(t[1].data.albums),e.albums_list.group(Kn("name_sort",!0))}},NP={name:"PageGenre",components:{ContentWithHeading:st,IndexButtonList:as,ListAlbums:is,ModalDialogGenre:sm},beforeRouteEnter(e,t,n){oa.load(e).then(s=>{n(r=>oa.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.albums_list.isEmpty()){n();return}const s=this;oa.load(e).then(r=>{oa.set(s,r),n()})},data(){return{genre:{},albums_list:new ze,show_genre_details_modal:!1}},methods:{open_tracks(){this.show_details_modal=!1,this.$router.push({name:"GenreTracks",params:{genre:this.genre.name}})},play(){N.player_play_expression('genre is "'+this.genre.name+'" and media_kind is music',!0)}}},VP={class:"fd-page"},BP=["textContent"],HP={class:"buttons is-centered"},UP={class:"icon"},jP={class:"icon"},qP=["textContent"],WP={class:"heading has-text-centered-mobile"},GP=["textContent"],KP=l("span",null,"\xA0|\xA0",-1),ZP=["textContent"];function YP(e,t,n,s,r,o){const i=$("index-button-list"),a=$("mdicon"),u=$("list-albums"),c=$("modal-dialog-genre"),d=$("content-with-heading");return z(),S("div",VP,[v(d,null,{options:E(()=>[v(i,{index:r.albums_list.indexList},null,8,["index"])]),"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(r.genre.name)},null,8,BP)]),"heading-right":E(()=>[l("div",HP,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=f=>r.show_genre_details_modal=!0)},[l("span",UP,[v(a,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[l("span",jP,[v(a,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.genre.shuffle"))},null,8,qP)])])]),content:E(()=>[l("p",WP,[l("span",{textContent:g(e.$t("page.genre.album-count",{count:r.genre.album_count}))},null,8,GP),KP,l("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...f)=>o.open_tracks&&o.open_tracks(...f)),textContent:g(e.$t("page.genre.track-count",{count:r.genre.track_count}))},null,8,ZP)]),v(u,{albums:r.albums_list},null,8,["albums"]),v(c,{show:r.show_genre_details_modal,genre:r.genre,onClose:t[3]||(t[3]=f=>r.show_genre_details_modal=!1)},null,8,["show","genre"])]),_:1})])}var JP=re(NP,[["render",YP]]);const ia={load(e){return Promise.all([N.library_genre(e.params.genre),N.library_genre_tracks(e.params.genre)])},set(e,t){e.genre=t[0].data,e.tracks_list=new ze(t[1].data.tracks)}},XP={name:"PageGenreTracks",components:{ContentWithHeading:st,DropdownMenu:gr,IndexButtonList:as,ListTracks:wn,ModalDialogGenre:sm},beforeRouteEnter(e,t,n){ia.load(e).then(s=>{n(r=>ia.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ia.load(e).then(r=>{ia.set(s,r),n()})},data(){return{genre:{},groupby_options:[{id:1,name:this.$t("page.genre.sort-by.name"),options:Kn("title_sort")},{id:2,name:this.$t("page.genre.sort-by.rating"),options:em("rating",{direction:"desc"})}],show_genre_details_modal:!1,tracks_list:new ze}},computed:{expression(){return'genre is "'+this.genre.name+'" and media_kind is music'},selected_groupby_option_id:{get(){return this.$store.state.genre_tracks_sort},set(e){this.$store.commit(Eg,e)}},tracks(){const e=this.groupby_options.find(t=>t.id===this.selected_groupby_option_id);return this.tracks_list.group(e.options),this.tracks_list}},methods:{open_genre(){this.show_details_modal=!1,this.$router.push({name:"Genre",params:{genre:this.genre.name}})},play(){N.player_play_expression(this.expression,!0)}}},QP={class:"fd-page"},eI={class:"columns"},tI={class:"column"},nI=["textContent"],sI=["textContent"],rI={class:"buttons is-centered"},oI={class:"icon"},iI={class:"icon"},aI=["textContent"],lI={class:"heading has-text-centered-mobile"},uI=["textContent"],cI=l("span",null,"\xA0|\xA0",-1),dI=["textContent"];function mI(e,t,n,s,r,o){const i=$("index-button-list"),a=$("dropdown-menu"),u=$("mdicon"),c=$("list-tracks"),d=$("modal-dialog-genre"),f=$("content-with-heading");return z(),S("div",QP,[v(f,null,{options:E(()=>[v(i,{index:o.tracks.indexList},null,8,["index"]),l("div",eI,[l("div",tI,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.genre.sort-by.title"))},null,8,nI),v(a,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[0]||(t[0]=m=>o.selected_groupby_option_id=m),options:r.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(r.genre.name)},null,8,sI)]),"heading-right":E(()=>[l("div",rI,[l("a",{class:"button is-small is-light is-rounded",onClick:t[1]||(t[1]=m=>r.show_genre_details_modal=!0)},[l("span",oI,[v(u,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[2]||(t[2]=(...m)=>o.play&&o.play(...m))},[l("span",iI,[v(u,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.genre.shuffle"))},null,8,aI)])])]),content:E(()=>[l("p",lI,[l("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...m)=>o.open_genre&&o.open_genre(...m)),textContent:g(e.$t("page.genre.album-count",{count:r.genre.album_count}))},null,8,uI),cI,l("span",{textContent:g(e.$t("page.genre.track-count",{count:r.genre.track_count}))},null,8,dI)]),v(c,{tracks:o.tracks,expression:o.expression},null,8,["tracks","expression"]),v(d,{show:r.show_genre_details_modal,genre:r.genre,onClose:t[4]||(t[4]=m=>r.show_genre_details_modal=!1)},null,8,["show","genre"])]),_:1})])}var fI=re(XP,[["render",mI]]);const aa={load(e){return Promise.all([N.library_artist(e.params.artist_id),N.library_artist_tracks(e.params.artist_id)])},set(e,t){e.artist=t[0].data,e.tracks_list=new ze(t[1].data.tracks)}},pI={name:"PageArtistTracks",components:{ContentWithHeading:st,DropdownMenu:gr,IndexButtonList:as,ListTracks:wn,ModalDialogArtist:Zl},beforeRouteEnter(e,t,n){aa.load(e).then(s=>{n(r=>aa.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;aa.load(e).then(r=>{aa.set(s,r),n()})},data(){return{artist:{},groupby_options:[{id:1,name:this.$t("page.artist.sort-by.name"),options:Kn("title_sort")},{id:2,name:this.$t("page.artist.sort-by.rating"),options:em("rating",{direction:"desc"})}],show_artist_details_modal:!1,tracks_list:new ze}},computed:{selected_groupby_option_id:{get(){return this.$store.state.artist_tracks_sort},set(e){this.$store.commit(Ag,e)}},tracks(){const e=this.groupby_options.find(t=>t.id===this.selected_groupby_option_id);return this.tracks_list.group(e.options),this.tracks_list},track_uris(){return this.tracks_list.items.map(e=>e.uri).join(",")}},methods:{open_artist(){this.show_details_modal=!1,this.$router.push({path:"/music/artists/"+this.artist.id})},play(){N.player_play_uri(this.tracks_list.map(e=>e.uri).join(","),!0)}}},hI={class:"fd-page"},_I={class:"columns"},gI={class:"column"},yI=["textContent"],vI=["textContent"],bI={class:"buttons is-centered"},CI={class:"icon"},wI={class:"icon"},zI=["textContent"],kI={class:"heading has-text-centered-mobile"},xI=["textContent"],EI=l("span",null,"\xA0|\xA0",-1),$I=["textContent"];function SI(e,t,n,s,r,o){const i=$("index-button-list"),a=$("dropdown-menu"),u=$("mdicon"),c=$("list-tracks"),d=$("modal-dialog-artist"),f=$("content-with-heading");return z(),S("div",hI,[v(f,null,{options:E(()=>[v(i,{index:o.tracks.indexList},null,8,["index"]),l("div",_I,[l("div",gI,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.artist.sort-by.title"))},null,8,yI),v(a,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[0]||(t[0]=m=>o.selected_groupby_option_id=m),options:r.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(r.artist.name)},null,8,vI)]),"heading-right":E(()=>[l("div",bI,[l("a",{class:"button is-small is-light is-rounded",onClick:t[1]||(t[1]=m=>r.show_artist_details_modal=!0)},[l("span",CI,[v(u,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[2]||(t[2]=(...m)=>o.play&&o.play(...m))},[l("span",wI,[v(u,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.artist.shuffle"))},null,8,zI)])])]),content:E(()=>[l("p",kI,[l("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...m)=>o.open_artist&&o.open_artist(...m)),textContent:g(e.$t("page.artist.album-count",{count:r.artist.album_count}))},null,8,xI),EI,l("span",{textContent:g(e.$t("page.artist.track-count",{count:r.artist.track_count}))},null,8,$I)]),v(c,{tracks:o.tracks,uris:o.track_uris},null,8,["tracks","uris"]),v(d,{show:r.show_artist_details_modal,artist:r.artist,onClose:t[4]||(t[4]=m=>r.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})])}var AI=re(pI,[["render",SI]]);const TI={name:"ModalDialogComposer",props:["show","composer"],emits:["close"],methods:{play(){this.$emit("close"),N.player_play_expression('composer is "'+this.composer.name+'" and media_kind is music',!1)},queue_add(){this.$emit("close"),N.queue_expression_add('composer is "'+this.composer.name+'" and media_kind is music')},queue_add_next(){this.$emit("close"),N.queue_expression_add_next('composer is "'+this.composer.name+'" and media_kind is music')},open_albums(){this.$emit("close"),this.$router.push({name:"ComposerAlbums",params:{composer:this.composer.name}})},open_tracks(){this.show_details_modal=!1,this.$router.push({name:"ComposerTracks",params:{composer:this.composer.name}})}}},OI={key:0,class:"modal is-active"},DI={class:"modal-content fd-modal-card"},PI={class:"card"},II={class:"card-content"},FI={class:"title is-4"},RI=["textContent"],LI=["textContent"],MI=["textContent"],NI=["textContent"],VI=["textContent"],BI=["textContent"],HI=["textContent"],UI={class:"card-footer"},jI={class:"icon"},qI=["textContent"],WI={class:"icon"},GI=["textContent"],KI={class:"icon"},ZI=["textContent"];function YI(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",OI,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",DI,[l("div",PI,[l("div",II,[l("p",FI,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_albums&&o.open_albums(...a)),textContent:g(n.composer.name)},null,8,RI)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.composer.albums"))},null,8,LI),l("a",{class:"has-text-link is-6",onClick:t[2]||(t[2]=(...a)=>o.open_albums&&o.open_albums(...a)),textContent:g(n.composer.album_count)},null,8,MI)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.composer.tracks"))},null,8,NI),l("a",{class:"has-text-link is-6",onClick:t[3]||(t[3]=(...a)=>o.open_tracks&&o.open_tracks(...a)),textContent:g(n.composer.track_count)},null,8,VI)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.composer.duration"))},null,8,BI),l("span",{class:"title is-6",textContent:g(e.$filters.durationInHours(n.composer.length_ms))},null,8,HI)])]),l("footer",UI,[l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",jI,[v(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.composer.add"))},null,8,qI)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",WI,[v(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.composer.add-next"))},null,8,GI)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>o.play&&o.play(...a))},[l("span",KI,[v(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.composer.play"))},null,8,ZI)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[7]||(t[7]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var rm=re(TI,[["render",YI]]);const JI={name:"ListComposers",components:{ModalDialogComposer:rm},props:["composers","media_kind","hide_group_title"],data(){return{show_details_modal:!1,selected_composer:{}}},computed:{media_kind_resolved(){return this.media_kind?this.media_kind:this.selected_composer.media_kind}},methods:{open_composer(e){this.selected_composer=e,this.$router.push({name:"ComposerAlbums",params:{composer:e.name}})},open_dialog(e){this.selected_composer=e,this.show_details_modal=!0}}},XI={key:0,class:"mt-6 mb-5 py-2"},QI={class:"media-content is-clipped"},eF=["id","textContent"],tF=["onClick"],nF={class:"media-content is-clickable is-clipped"},sF=["textContent"],rF={class:"media-right"},oF=["onClick"],iF={class:"icon has-text-dark"};function aF(e,t,n,s,r,o){const i=$("mdicon"),a=$("modal-dialog-composer");return z(),S(Oe,null,[(z(!0),S(Oe,null,ht(n.composers,u=>(z(),S(Oe,{key:u.itemId},[!u.isItem&&!n.hide_group_title?(z(),S("div",XI,[l("div",QI,[l("span",{id:"index_"+u.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:g(u.groupKey)},null,8,eF)])])):u.isItem?(z(),S("div",{key:1,class:"media",onClick:c=>o.open_composer(u.item)},[l("div",nF,[l("h1",{class:"title is-6",textContent:g(u.item.name)},null,8,sF)]),l("div",rF,[l("a",{onClick:it(c=>o.open_dialog(u.item),["prevent","stop"])},[l("span",iF,[v(i,{name:"dots-vertical",size:"16"})])],8,oF)])],8,tF)):H("",!0)],64))),128)),(z(),be(qs,{to:"#app"},[v(a,{show:r.show_details_modal,composer:r.selected_composer,media_kind:n.media_kind,onClose:t[0]||(t[0]=u=>r.show_details_modal=!1)},null,8,["show","composer","media_kind"])]))],64)}var cv=re(JI,[["render",aF]]);const la={load(e){return N.library_composers("music")},set(e,t){e.composers=new ze(t.data),e.composers.group(Kn("name_sort"))}},lF={name:"PageComposers",components:{ContentWithHeading:st,TabsMusic:os,IndexButtonList:as,ListComposers:cv},beforeRouteEnter(e,t,n){la.load(e).then(s=>{n(r=>la.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.composers.isEmpty()){n();return}const s=this;la.load(e).then(r=>{la.set(s,r),n()})},data(){return{composers:new ze}},methods:{}},uF={class:"fd-page-with-tabs"},cF=["textContent"],dF=["textContent"];function mF(e,t,n,s,r,o){const i=$("tabs-music"),a=$("index-button-list"),u=$("list-composers"),c=$("content-with-heading");return z(),S("div",uF,[v(i),v(c,null,{options:E(()=>[v(a,{index:r.composers.indexList},null,8,["index"])]),"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.composers.title"))},null,8,cF),l("p",{class:"heading",textContent:g(e.$t("page.composers.count",{count:r.composers.total}))},null,8,dF)]),content:E(()=>[v(u,{composers:r.composers},null,8,["composers"])]),_:1})])}var fF=re(lF,[["render",mF]]);const ua={load(e){return Promise.all([N.library_composer(e.params.composer),N.library_composer_albums(e.params.composer)])},set(e,t){e.composer=t[0].data,e.albums_list=new ze(t[1].data.albums)}},pF={name:"PageComposer",components:{ContentWithHeading:st,ListAlbums:is,ModalDialogComposer:rm},beforeRouteEnter(e,t,n){ua.load(e).then(s=>{n(r=>ua.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ua.load(e).then(r=>{ua.set(s,r),n()})},data(){return{composer:{},albums_list:new ze,show_composer_details_modal:!1}},methods:{open_tracks(){this.$router.push({name:"ComposerTracks",params:{composer:this.composer.name}})},play(){N.player_play_expression('composer is "'+this.composer.name+'" and media_kind is music',!0)}}},hF={class:"fd-page"},_F=["textContent"],gF={class:"buttons is-centered"},yF={class:"icon"},vF={class:"icon"},bF=["textContent"],CF={class:"heading has-text-centered-mobile"},wF=["textContent"],zF=l("span",null,"\xA0|\xA0",-1),kF=["textContent"];function xF(e,t,n,s,r,o){const i=$("mdicon"),a=$("list-albums"),u=$("modal-dialog-composer"),c=$("content-with-heading");return z(),S("div",hF,[v(c,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(r.composer.name)},null,8,_F)]),"heading-right":E(()=>[l("div",gF,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>r.show_composer_details_modal=!0)},[l("span",yF,[v(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[l("span",vF,[v(i,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.composer.shuffle"))},null,8,bF)])])]),content:E(()=>[l("p",CF,[l("span",{textContent:g(e.$t("page.composer.album-count",{count:r.composer.album_count}))},null,8,wF),zF,l("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...d)=>o.open_tracks&&o.open_tracks(...d)),textContent:g(e.$t("page.composer.track-count",{count:r.composer.track_count}))},null,8,kF)]),v(a,{albums:r.albums_list,hide_group_title:!0},null,8,["albums"]),v(u,{show:r.show_composer_details_modal,composer:r.composer,onClose:t[3]||(t[3]=d=>r.show_composer_details_modal=!1)},null,8,["show","composer"])]),_:1})])}var EF=re(pF,[["render",xF]]);const ca={load(e){return Promise.all([N.library_composer(e.params.composer),N.library_composer_tracks(e.params.composer)])},set(e,t){e.composer=t[0].data,e.tracks_list=new ze(t[1].data.tracks)}},$F={name:"PageComposerTracks",components:{ContentWithHeading:st,DropdownMenu:gr,IndexButtonList:as,ListTracks:wn,ModalDialogComposer:rm},beforeRouteEnter(e,t,n){ca.load(e).then(s=>{n(r=>ca.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ca.load(e).then(r=>{ca.set(s,r),n()})},data(){return{groupby_options:[{id:1,name:this.$t("page.composer.sort-by.name"),options:Kn("title_sort")},{id:2,name:this.$t("page.composer.sort-by.rating"),options:em("rating",{direction:"desc"})}],composer:{},show_composer_details_modal:!1,tracks_list:new ze}},computed:{expression(){return'composer is "'+this.composer.name+'" and media_kind is music'},selected_groupby_option_id:{get(){return this.$store.state.composer_tracks_sort},set(e){this.$store.commit(xg,e)}},tracks(){const e=this.groupby_options.find(t=>t.id===this.selected_groupby_option_id);return this.tracks_list.group(e.options),this.tracks_list}},methods:{open_albums(){this.show_details_modal=!1,this.$router.push({name:"ComposerAlbums",params:{composer:this.composer.name}})},play(){N.player_play_expression(this.expression,!0)}}},SF={class:"fd-page"},AF={class:"columns"},TF={class:"column"},OF=["textContent"],DF=["textContent"],PF={class:"buttons is-centered"},IF={class:"icon"},FF={class:"icon"},RF=["textContent"],LF={class:"heading has-text-centered-mobile"},MF=["textContent"],NF=l("span",null,"\xA0|\xA0",-1),VF=["textContent"];function BF(e,t,n,s,r,o){const i=$("index-button-list"),a=$("dropdown-menu"),u=$("mdicon"),c=$("list-tracks"),d=$("modal-dialog-composer"),f=$("content-with-heading");return z(),S("div",SF,[v(f,null,{options:E(()=>[v(i,{index:o.tracks.indexList},null,8,["index"]),l("div",AF,[l("div",TF,[l("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:g(e.$t("page.artist.sort-by.title"))},null,8,OF),v(a,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[0]||(t[0]=m=>o.selected_groupby_option_id=m),options:r.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(r.composer.name)},null,8,DF)]),"heading-right":E(()=>[l("div",PF,[l("a",{class:"button is-small is-light is-rounded",onClick:t[1]||(t[1]=m=>r.show_composer_details_modal=!0)},[l("span",IF,[v(u,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[2]||(t[2]=(...m)=>o.play&&o.play(...m))},[l("span",FF,[v(u,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.composer.shuffle"))},null,8,RF)])])]),content:E(()=>[l("p",LF,[l("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...m)=>o.open_albums&&o.open_albums(...m)),textContent:g(e.$t("page.composer.album-count",{count:r.composer.album_count}))},null,8,MF),NF,l("span",{textContent:g(e.$t("page.composer.track-count",{count:r.composer.track_count}))},null,8,VF)]),v(c,{tracks:o.tracks,expression:o.expression},null,8,["tracks","expression"]),v(d,{show:r.show_composer_details_modal,composer:r.composer,onClose:t[4]||(t[4]=m=>r.show_composer_details_modal=!1)},null,8,["show","composer"])]),_:1})])}var HF=re($F,[["render",BF]]);const UF={name:"ModalDialogAddRss",props:["show"],emits:["close","podcast-added"],data(){return{url:"",loading:!1}},watch:{show(){this.show&&(this.loading=!1,setTimeout(()=>{this.$refs.url_field.focus()},10))}},methods:{add_stream(){this.loading=!0,N.library_add(this.url).then(()=>{this.$emit("close"),this.$emit("podcast-added"),this.url=""}).catch(()=>{this.loading=!1})}}},jF={key:0,class:"modal is-active"},qF={class:"modal-content fd-modal-card"},WF={class:"card"},GF={class:"card-content"},KF=["textContent"],ZF={class:"field"},YF={class:"control is-expanded has-icons-left"},JF=["placeholder","disabled"],XF={class:"icon is-left"},QF=["textContent"],eR={key:0,class:"card-footer"},tR={class:"card-footer-item button is-loading"},nR={class:"icon"},sR=["textContent"],rR={key:1,class:"card-footer"},oR={class:"icon"},iR=["textContent"],aR={class:"icon"},lR=["textContent"];function uR(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",jF,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",qF,[l("div",WF,[l("div",GF,[l("p",{class:"title is-4",textContent:g(e.$t("dialog.add.rss.title"))},null,8,KF),l("form",{onSubmit:t[2]||(t[2]=it((...a)=>o.add_stream&&o.add_stream(...a),["prevent"]))},[l("div",ZF,[l("p",YF,[dt(l("input",{ref:"url_field","onUpdate:modelValue":t[1]||(t[1]=a=>r.url=a),class:"input is-shadowless",type:"text",placeholder:e.$t("dialog.add.rss.placeholder"),disabled:r.loading},null,8,JF),[[It,r.url]]),l("span",XF,[v(i,{name:"rss",size:"16"})])]),l("p",{class:"help",textContent:g(e.$t("dialog.add.rss.help"))},null,8,QF)])],32)]),r.loading?(z(),S("footer",eR,[l("a",tR,[l("span",nR,[v(i,{name:"web",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.rss.processing"))},null,8,sR)])])):(z(),S("footer",rR,[l("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[l("span",oR,[v(i,{name:"cancel",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.rss.cancel"))},null,8,iR)]),l("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>o.add_stream&&o.add_stream(...a))},[l("span",aR,[v(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.add.rss.add"))},null,8,lR)])]))])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var cR=re(UF,[["render",uR]]);const da={load(e){return Promise.all([N.library_albums("podcast"),N.library_podcasts_new_episodes()])},set(e,t){e.albums=new ze(t[0].data),e.new_episodes=new ze(t[1].data.tracks)}},dR={name:"PagePodcasts",components:{ContentWithHeading:st,ListTracks:wn,ListAlbums:is,ModalDialogAddRss:cR},beforeRouteEnter(e,t,n){da.load(e).then(s=>{n(r=>da.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;da.load(e).then(r=>{da.set(s,r),n()})},data(){return{albums:[],new_episodes:{items:[]},show_url_modal:!1}},computed:{rss(){return this.$store.state.rss_count}},methods:{mark_all_played(){this.new_episodes.items.forEach(e=>{N.library_track_update(e.id,{play_count:"increment"})}),this.new_episodes.items={}},open_add_podcast_dialog(e){this.show_url_modal=!0},reload_new_episodes(){N.library_podcasts_new_episodes().then(({data:e})=>{this.new_episodes=new ze(e.tracks)})},reload_podcasts(){N.library_albums("podcast").then(({data:e})=>{this.albums=new ze(e),this.reload_new_episodes()})},update_rss(){this.$store.commit(Ld,"rss"),this.$store.commit(wi,!0)}}},mR={class:"fd-page"},fR=["textContent"],pR={class:"buttons is-centered"},hR={class:"icon"},_R=["textContent"],gR=["textContent"],yR=["textContent"],vR={class:"buttons is-centered"},bR={class:"icon"},CR=["textContent"],wR={class:"icon"},zR=["textContent"];function kR(e,t,n,s,r,o){const i=$("mdicon"),a=$("list-tracks"),u=$("content-with-heading"),c=$("list-albums"),d=$("modal-dialog-add-rss");return z(),S("div",mR,[r.new_episodes.items.length>0?(z(),be(u,{key:0},{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.podcasts.new-episodes"))},null,8,fR)]),"heading-right":E(()=>[l("div",pR,[l("a",{class:"button is-small",onClick:t[0]||(t[0]=(...f)=>o.mark_all_played&&o.mark_all_played(...f))},[l("span",hR,[v(i,{name:"pencil",size:"16"})]),l("span",{textContent:g(e.$t("page.podcasts.mark-all-played"))},null,8,_R)])])]),content:E(()=>[v(a,{tracks:r.new_episodes,show_progress:!0,onPlayCountChanged:o.reload_new_episodes},null,8,["tracks","onPlayCountChanged"])]),_:1})):H("",!0),v(u,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.podcasts.title"))},null,8,gR),l("p",{class:"heading",textContent:g(e.$t("page.podcasts.count",{count:r.albums.total}))},null,8,yR)]),"heading-right":E(()=>[l("div",vR,[o.rss.tracks>0?(z(),S("a",{key:0,class:"button is-small",onClick:t[1]||(t[1]=(...f)=>o.update_rss&&o.update_rss(...f))},[l("span",bR,[v(i,{name:"refresh",size:"16"})]),l("span",{textContent:g(e.$t("page.podcasts.update"))},null,8,CR)])):H("",!0),l("a",{class:"button is-small",onClick:t[2]||(t[2]=(...f)=>o.open_add_podcast_dialog&&o.open_add_podcast_dialog(...f))},[l("span",wR,[v(i,{name:"rss",size:"16"})]),l("span",{textContent:g(e.$t("page.podcasts.add"))},null,8,zR)])])]),content:E(()=>[v(c,{albums:r.albums,onPlayCountChanged:t[3]||(t[3]=f=>o.reload_new_episodes()),onPodcastDeleted:t[4]||(t[4]=f=>o.reload_podcasts())},null,8,["albums"]),v(d,{show:r.show_url_modal,onClose:t[5]||(t[5]=f=>r.show_url_modal=!1),onPodcastAdded:t[6]||(t[6]=f=>o.reload_podcasts())},null,8,["show"])]),_:1})])}var xR=re(dR,[["render",kR]]);const ma={load(e){return Promise.all([N.library_album(e.params.album_id),N.library_podcast_episodes(e.params.album_id)])},set(e,t){e.album=t[0].data,e.tracks=new ze(t[1].data.tracks)}},ER={name:"PagePodcast",components:{ContentWithHeading:st,ListTracks:wn,ModalDialogAlbum:Kl,ModalDialog:Xd},beforeRouteEnter(e,t,n){ma.load(e).then(s=>{n(r=>ma.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ma.load(e).then(r=>{ma.set(s,r),n()})},data(){return{album:{},tracks:new ze,show_details_modal:!1,show_remove_podcast_modal:!1,rss_playlist_to_remove:{}}},computed:{new_tracks(){return this.tracks.items.filter(e=>e.play_count===0).length}},methods:{play(){N.player_play_uri(this.album.uri,!1)},open_remove_podcast_dialog(){N.library_track_playlists(this.tracks.items[0].id).then(({data:e})=>{this.rss_playlist_to_remove=e.items.filter(t=>t.type==="rss")[0],this.show_remove_podcast_modal=!0,this.show_details_modal=!1})},remove_podcast(){this.show_remove_podcast_modal=!1,N.library_playlist_delete(this.rss_playlist_to_remove.id).then(()=>{this.$router.replace({path:"/podcasts"})})},reload_tracks(){N.library_podcast_episodes(this.album.id).then(({data:e})=>{this.tracks=new ze(e.tracks)})}}},$R={class:"fd-page"},SR=["textContent"],AR={class:"buttons is-centered"},TR={class:"icon"},OR={class:"icon"},DR=["textContent"],PR=["textContent"],IR=["textContent"],FR={class:"is-size-7"},RR=["textContent"],LR=["textContent"];function MR(e,t,n,s,r,o){const i=$("mdicon"),a=$("list-tracks"),u=$("modal-dialog-album"),c=$("modal-dialog"),d=$("content-with-heading");return z(),S("div",$R,[v(d,null,{"heading-left":E(()=>[l("div",{class:"title is-4",textContent:g(r.album.name)},null,8,SR)]),"heading-right":E(()=>[l("div",AR,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=f=>r.show_details_modal=!0)},[l("span",TR,[v(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[l("span",OR,[v(i,{name:"play",size:"16"})]),l("span",{textContent:g(e.$t("page.podcast.play"))},null,8,DR)])])]),content:E(()=>[l("p",{class:"heading has-text-centered-mobile",textContent:g(e.$t("page.podcast.track-count",{count:r.album.track_count}))},null,8,PR),v(a,{tracks:r.tracks,show_progress:!0,onPlayCountChanged:o.reload_tracks},null,8,["tracks","onPlayCountChanged"]),v(u,{show:r.show_details_modal,album:r.album,media_kind:"podcast",new_tracks:o.new_tracks,onClose:t[2]||(t[2]=f=>r.show_details_modal=!1),onPlayCountChanged:o.reload_tracks,onRemovePodcast:o.open_remove_podcast_dialog},null,8,["show","album","new_tracks","onPlayCountChanged","onRemovePodcast"]),v(c,{show:r.show_remove_podcast_modal,title:e.$t("page.podcast.remove-podcast"),delete_action:e.$t("page.podcast.remove"),onClose:t[3]||(t[3]=f=>r.show_remove_podcast_modal=!1),onDelete:o.remove_podcast},{"modal-content":E(()=>[l("p",{textContent:g(e.$t("page.podcast.remove-info-1"))},null,8,IR),l("p",FR,[mt(" ("),l("span",{textContent:g(e.$t("page.podcast.remove-info-2"))},null,8,RR),l("b",{textContent:g(r.rss_playlist_to_remove.name)},null,8,LR),mt(") ")])]),_:1},8,["show","title","delete_action","onDelete"])]),_:1})])}var NR=re(ER,[["render",MR]]);const VR={name:"TabsAudiobooks"},BR={class:"section fd-tabs-section"},HR={class:"container"},UR={class:"columns is-centered"},jR={class:"column is-four-fifths"},qR={class:"tabs is-centered is-small"},WR=["onClick","onKeypress"],GR={class:"icon is-small"},KR=["textContent"],ZR=["onClick","onKeypress"],YR={class:"icon is-small"},JR=["textContent"];function XR(e,t,n,s,r,o){const i=$("mdicon"),a=$("router-link");return z(),S("section",BR,[l("div",HR,[l("div",UR,[l("div",jR,[l("div",qR,[l("ul",null,[v(a,{to:"/audiobooks/artists",custom:""},{default:E(({navigate:u,isActive:c})=>[l("li",{class:Ae({"is-active":c})},[l("a",{onClick:u,onKeypress:gn(u,["enter"])},[l("span",GR,[v(i,{name:"account-music",size:"16"})]),l("span",{textContent:g(e.$t("page.audiobooks.tabs.authors"))},null,8,KR)],40,WR)],2)]),_:1}),v(a,{to:"/audiobooks/albums",custom:""},{default:E(({navigate:u,isActive:c})=>[l("li",{class:Ae({"is-active":c})},[l("a",{onClick:u,onKeypress:gn(u,["enter"])},[l("span",YR,[v(i,{name:"album",size:"16"})]),l("span",{textContent:g(e.$t("page.audiobooks.tabs.audiobooks"))},null,8,JR)],40,ZR)],2)]),_:1})])])])])])])}var dv=re(VR,[["render",XR]]);const fa={load(e){return N.library_albums("audiobook")},set(e,t){e.albums=new ze(t.data),e.albums.group(Kn("name_sort",!0))}},QR={name:"PageAudiobooksAlbums",components:{TabsAudiobooks:dv,ContentWithHeading:st,IndexButtonList:as,ListAlbums:is},beforeRouteEnter(e,t,n){fa.load(e).then(s=>{n(r=>fa.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.albums.isEmpty()){n();return}const s=this;fa.load(e).then(r=>{fa.set(s,r),n()})},data(){return{albums:new ze}},methods:{}},eL={class:"fd-page-with-tabs"},tL=["textContent"],nL=["textContent"];function sL(e,t,n,s,r,o){const i=$("tabs-audiobooks"),a=$("index-button-list"),u=$("list-albums"),c=$("content-with-heading");return z(),S("div",eL,[v(i),v(c,null,{options:E(()=>[v(a,{index:r.albums.indexList},null,8,["index"])]),"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.audiobooks.albums.title"))},null,8,tL),l("p",{class:"heading",textContent:g(e.$t("page.audiobooks.albums.count",{count:r.albums.count}))},null,8,nL)]),content:E(()=>[v(u,{albums:r.albums},null,8,["albums"])]),_:1})])}var rL=re(QR,[["render",sL]]);const pa={load(e){return N.library_artists("audiobook")},set(e,t){e.artists_list=new ze(t.data)}},oL={name:"PageAudiobooksArtists",components:{ContentWithHeading:st,TabsAudiobooks:dv,IndexButtonList:as,ListArtists:tm},beforeRouteEnter(e,t,n){pa.load(e).then(s=>{n(r=>pa.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.artists_list.isEmpty()){n();return}const s=this;pa.load(e).then(r=>{pa.set(s,r),n()})},data(){return{artists_list:new ze}},computed:{artists(){return this.artists_list?(this.artists_list.group(Kn("name_sort",!0)),this.artists_list):[]}},methods:{}},iL={class:"fd-page-with-tabs"},aL=["textContent"],lL=["textContent"];function uL(e,t,n,s,r,o){const i=$("tabs-audiobooks"),a=$("index-button-list"),u=$("list-artists"),c=$("content-with-heading");return z(),S("div",iL,[v(i),v(c,null,{options:E(()=>[v(a,{index:o.artists.indexList},null,8,["index"])]),"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.audiobooks.artists.title"))},null,8,aL),l("p",{class:"heading",textContent:g(e.$t("page.audiobooks.artists.count",{count:o.artists.count}))},null,8,lL)]),"heading-right":E(()=>[]),content:E(()=>[v(u,{artists:o.artists},null,8,["artists"])]),_:1})])}var cL=re(oL,[["render",uL]]);const ha={load(e){return Promise.all([N.library_artist(e.params.artist_id),N.library_artist_albums(e.params.artist_id)])},set(e,t){e.artist=t[0].data,e.albums=new ze(t[1].data)}},dL={name:"PageAudiobooksArtist",components:{ContentWithHeading:st,ListAlbums:is,ModalDialogArtist:Zl},beforeRouteEnter(e,t,n){ha.load(e).then(s=>{n(r=>ha.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.albums.isEmpty()){n();return}const s=this;ha.load(e).then(r=>{ha.set(s,r),n()})},data(){return{artist:{},albums:new ze,show_artist_details_modal:!1}},methods:{play(){N.player_play_uri(this.albums.items.map(e=>e.uri).join(","),!1)}}},mL={class:"fd-page"},fL=["textContent"],pL={class:"buttons is-centered"},hL={class:"icon"},_L={class:"icon"},gL=["textContent"],yL=["textContent"];function vL(e,t,n,s,r,o){const i=$("mdicon"),a=$("list-albums"),u=$("modal-dialog-artist"),c=$("content-with-heading");return z(),S("div",mL,[v(c,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(r.artist.name)},null,8,fL)]),"heading-right":E(()=>[l("div",pL,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>r.show_artist_details_modal=!0)},[l("span",hL,[v(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[l("span",_L,[v(i,{name:"play",size:"16"})]),l("span",{textContent:g(e.$t("page.audiobooks.artist.play"))},null,8,gL)])])]),content:E(()=>[l("p",{class:"heading has-text-centered-mobile",textContent:g(e.$t("page.audiobooks.artist.album-count",{count:r.artist.album_count}))},null,8,yL),v(a,{albums:r.albums},null,8,["albums"]),v(u,{show:r.show_artist_details_modal,artist:r.artist,onClose:t[2]||(t[2]=d=>r.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})])}var bL=re(dL,[["render",vL]]);const _a={load(e){return Promise.all([N.library_album(e.params.album_id),N.library_album_tracks(e.params.album_id)])},set(e,t){e.album=t[0].data,e.tracks=new ze(t[1].data)}},CL={name:"PageAudiobooksAlbum",components:{ContentWithHero:nm,ListTracks:wn,ModalDialogAlbum:Kl,CoverArtwork:Gn},beforeRouteEnter(e,t,n){_a.load(e).then(s=>{n(r=>_a.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;_a.load(e).then(r=>{_a.set(s,r),n()})},data(){return{album:{},tracks:new ze,show_album_details_modal:!1}},methods:{open_artist(){this.show_details_modal=!1,this.$router.push({path:"/audiobooks/artists/"+this.album.artist_id})},play(){N.player_play_uri(this.album.uri,!1)}}},wL={class:"fd-page"},zL=["textContent"],kL={class:"subtitle is-6 has-text-link has-text-weight-normal"},xL=["textContent"],EL={class:"buttons fd-is-centered-mobile fd-has-margin-top"},$L={class:"icon"},SL=["textContent"],AL={class:"icon"},TL=["textContent"];function OL(e,t,n,s,r,o){const i=$("mdicon"),a=$("cover-artwork"),u=$("list-tracks"),c=$("modal-dialog-album"),d=$("content-with-hero");return z(),S("div",wL,[v(d,null,{"heading-left":E(()=>[l("h1",{class:"title is-5",textContent:g(r.album.name)},null,8,zL),l("h2",kL,[l("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...f)=>o.open_artist&&o.open_artist(...f)),textContent:g(r.album.artist)},null,8,xL)]),l("div",EL,[l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[l("span",$L,[v(i,{name:"play",size:"16"})]),l("span",{textContent:g(e.$t("page.audiobooks.album.play"))},null,8,SL)]),l("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=f=>r.show_album_details_modal=!0)},[l("span",AL,[v(i,{name:"dots-horizontal",size:"16"})])])])]),"heading-right":E(()=>[v(a,{artwork_url:r.album.artwork_url,artist:r.album.artist,album:r.album.name,class:"is-clickable fd-has-shadow fd-cover fd-cover-medium-image",onClick:t[3]||(t[3]=f=>r.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])]),content:E(()=>[l("p",{class:"heading is-7 has-text-centered-mobile fd-has-margin-top",textContent:g(e.$t("page.audiobooks.album.track-count",{count:r.album.track_count}))},null,8,TL),v(u,{tracks:r.tracks,uris:r.album.uri},null,8,["tracks","uris"]),v(c,{show:r.show_album_details_modal,album:r.album,media_kind:"audiobook",onClose:t[4]||(t[4]=f=>r.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})])}var DL=re(CL,[["render",OL]]);const PL={name:"ModalDialogPlaylist",props:["show","playlist","uris"],emits:["close"],methods:{play(){this.$emit("close"),N.player_play_uri(this.uris?this.uris:this.playlist.uri,!1)},queue_add(){this.$emit("close"),N.queue_add(this.uris?this.uris:this.playlist.uri)},queue_add_next(){this.$emit("close"),N.queue_add_next(this.uris?this.uris:this.playlist.uri)},open_playlist(){this.$emit("close"),this.$router.push({path:"/playlists/"+this.playlist.id+"/tracks"})}}},IL={key:0,class:"modal is-active"},FL={class:"modal-content fd-modal-card"},RL={class:"card"},LL={class:"card-content"},ML={class:"title is-4"},NL=["textContent"],VL={class:"content is-small"},BL=["textContent"],HL=["textContent"],UL=["textContent"],jL=["textContent"],qL={key:0},WL=["textContent"],GL=["textContent"],KL={key:0,class:"card-footer"},ZL={class:"icon"},YL=["textContent"],JL={class:"icon"},XL=["textContent"],QL={class:"icon"},eM=["textContent"];function tM(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",IL,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",FL,[l("div",RL,[l("div",LL,[l("p",ML,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_playlist&&o.open_playlist(...a)),textContent:g(n.playlist.name)},null,8,NL)]),l("div",VL,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.playlist.path"))},null,8,BL),l("span",{class:"title is-6",textContent:g(n.playlist.path)},null,8,HL)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.playlist.type"))},null,8,UL),l("span",{class:"title is-6",textContent:g(e.$t("playlist.type."+n.playlist.type))},null,8,jL)]),n.playlist.folder?H("",!0):(z(),S("p",qL,[l("span",{class:"heading",textContent:g(e.$t("dialog.playlist.track-count"))},null,8,WL),l("span",{class:"title is-6",textContent:g(n.playlist.item_count)},null,8,GL)]))])]),n.playlist.folder?H("",!0):(z(),S("footer",KL,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",ZL,[v(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.playlist.add"))},null,8,YL)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",JL,[v(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.playlist.add-next"))},null,8,XL)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[l("span",QL,[v(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.playlist.play"))},null,8,eM)])]))])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var mv=re(PL,[["render",tM]]);const nM={name:"ListPlaylists",components:{ModalDialogPlaylist:mv},props:["playlists"],data(){return{show_details_modal:!1,selected_playlist:{}}},methods:{open_playlist(e){e.type!=="folder"?this.$router.push({path:"/playlists/"+e.id+"/tracks"}):this.$router.push({path:"/playlists/"+e.id})},open_dialog(e){this.selected_playlist=e,this.show_details_modal=!0},icon_name(e){return e.type==="folder"?"folder":e.type==="rss"?"rss":"music-box-multiple"}}},sM=["playlist","onClick"],rM={class:"media-left is-clickable"},oM={class:"icon"},iM={class:"media-content is-clickable is-clipped"},aM=["textContent"],lM={class:"media-right"},uM=["onClick"],cM={class:"icon has-text-dark"};function dM(e,t,n,s,r,o){const i=$("mdicon"),a=$("modal-dialog-playlist");return z(),S(Oe,null,[(z(!0),S(Oe,null,ht(n.playlists,u=>(z(),S("div",{key:u.itemId,class:"media",playlist:u,onClick:c=>o.open_playlist(u.item)},[l("figure",rM,[l("span",oM,[v(i,{name:o.icon_name(u.item),size:"16"},null,8,["name"])])]),l("div",iM,[l("h1",{class:"title is-6",textContent:g(u.item.name)},null,8,aM)]),l("div",lM,[l("a",{onClick:it(c=>o.open_dialog(u.item),["prevent","stop"])},[l("span",cM,[v(i,{name:"dots-vertical",size:"16"})])],8,uM)])],8,sM))),128)),(z(),be(qs,{to:"#app"},[v(a,{show:r.show_details_modal,playlist:r.selected_playlist,onClose:t[0]||(t[0]=u=>r.show_details_modal=!1)},null,8,["show","playlist"])]))],64)}var om=re(nM,[["render",dM]]);const ga={load(e){return Promise.all([N.library_playlist(e.params.playlist_id),N.library_playlist_folder(e.params.playlist_id)])},set(e,t){e.playlist=t[0].data,e.playlists_list=new ze(t[1].data)}},mM={name:"PagePlaylists",components:{ContentWithHeading:st,ListPlaylists:om},beforeRouteEnter(e,t,n){ga.load(e).then(s=>{n(r=>ga.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ga.load(e).then(r=>{ga.set(s,r),n()})},data(){return{playlist:{},playlists_list:new ze}},computed:{radio_playlists(){return this.$store.state.config.radio_playlists},playlists(){return this.playlists_list.group(uv(),[e=>e.folder||this.radio_playlists||e.stream_count===0||e.item_count>e.stream_count]),this.playlists_list}}},fM={class:"fd-page"},pM=["textContent"],hM=["textContent"];function _M(e,t,n,s,r,o){const i=$("list-playlists"),a=$("content-with-heading");return z(),S("div",fM,[v(a,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(r.playlist.name)},null,8,pM),l("p",{class:"heading",textContent:g(e.$t("page.playlists.count",{count:o.playlists.count}))},null,8,hM)]),content:E(()=>[v(i,{playlists:o.playlists},null,8,["playlists"])]),_:1})])}var gM=re(mM,[["render",_M]]);const ya={load(e){return Promise.all([N.library_playlist(e.params.playlist_id),N.library_playlist_tracks(e.params.playlist_id)])},set(e,t){e.playlist=t[0].data,e.tracks=new ze(t[1].data)}},yM={name:"PagePlaylist",components:{ContentWithHeading:st,ListTracks:wn,ModalDialogPlaylist:mv},beforeRouteEnter(e,t,n){ya.load(e).then(s=>{n(r=>ya.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ya.load(e).then(r=>{ya.set(s,r),n()})},data(){return{playlist:{},tracks:new ze,show_playlist_details_modal:!1}},computed:{uris(){return this.playlist.random?this.tracks.map(e=>e.uri).join(","):this.playlist.uri}},methods:{play(){N.player_play_uri(this.uris,!0)}}},vM={class:"fd-page"},bM=["textContent"],CM={class:"buttons is-centered"},wM={class:"icon"},zM={class:"icon"},kM=["textContent"],xM=["textContent"];function EM(e,t,n,s,r,o){const i=$("mdicon"),a=$("list-tracks"),u=$("modal-dialog-playlist"),c=$("content-with-heading");return z(),S("div",vM,[v(c,null,{"heading-left":E(()=>[l("div",{class:"title is-4",textContent:g(r.playlist.name)},null,8,bM)]),"heading-right":E(()=>[l("div",CM,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>r.show_playlist_details_modal=!0)},[l("span",wM,[v(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[l("span",zM,[v(i,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.playlist.shuffle"))},null,8,kM)])])]),content:E(()=>[l("p",{class:"heading has-text-centered-mobile",textContent:g(e.$t("page.playlist.track-count",{count:r.tracks.count}))},null,8,xM),v(a,{tracks:r.tracks,uris:o.uris},null,8,["tracks","uris"]),v(u,{show:r.show_playlist_details_modal,playlist:r.playlist,uris:o.uris,onClose:t[2]||(t[2]=d=>r.show_playlist_details_modal=!1)},null,8,["show","playlist","uris"])]),_:1})])}var $M=re(yM,[["render",EM]]);const SM={name:"ModalDialogDirectory",props:["show","directory"],emits:["close"],methods:{play(){this.$emit("close"),N.player_play_expression('path starts with "'+this.directory.path+'" order by path asc',!1)},queue_add(){this.$emit("close"),N.queue_expression_add('path starts with "'+this.directory.path+'" order by path asc')},queue_add_next(){this.$emit("close"),N.queue_expression_add_next('path starts with "'+this.directory.path+'" order by path asc')}}},AM={key:0,class:"modal is-active"},TM={class:"modal-content fd-modal-card"},OM={class:"card"},DM={class:"card-content"},PM=["textContent"],IM={class:"card-footer"},FM={class:"icon"},RM=["textContent"],LM={class:"icon"},MM=["textContent"],NM={class:"icon"},VM=["textContent"];function BM(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",AM,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",TM,[l("div",OM,[l("div",DM,[l("p",{class:"title is-4",textContent:g(n.directory.path)},null,8,PM)]),l("footer",IM,[l("a",{class:"card-footer-item has-text-dark",onClick:t[1]||(t[1]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",FM,[v(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.directory.add"))},null,8,RM)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",LM,[v(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.directory.add-next"))},null,8,MM)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.play&&o.play(...a))},[l("span",NM,[v(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.directory.play"))},null,8,VM)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[4]||(t[4]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var fv=re(SM,[["render",BM]]);const HM={name:"ListDirectories",components:{ModalDialogDirectory:fv},props:["directories"],data(){return{show_details_modal:!1,selected_directory:{}}},computed:{current_directory(){return this.$route.query&&this.$route.query.directory?this.$route.query.directory:"/"}},methods:{open_parent_directory(){this.current_directory.slice(0,this.current_directory.lastIndexOf("/"))===""||this.$store.state.config.directories.includes(this.current_directory)?this.$router.push({path:"/files"}):this.$router.push({path:"/files",query:{directory:this.current_directory.slice(0,this.current_directory.lastIndexOf("/"))}})},open_directory(e){this.$router.push({path:"/files",query:{directory:e.path}})},open_dialog(e){this.selected_directory=e,this.show_details_modal=!0}}},UM={class:"media-left is-clickable"},jM={class:"icon"},qM=l("div",{class:"media-content is-clickable is-clipped"},[l("h1",{class:"title is-6"},"..")],-1),WM={class:"media-right"},GM=["onClick"],KM={class:"media-left is-clickable"},ZM={class:"icon"},YM={class:"media-content is-clickable is-clipped"},JM=["textContent"],XM=["textContent"],QM={class:"media-right"},eN=["onClick"],tN={class:"icon has-text-dark"};function nN(e,t,n,s,r,o){const i=$("mdicon"),a=$("modal-dialog-directory");return z(),S(Oe,null,[e.$route.query.directory?(z(),S("div",{key:0,class:"media",onClick:t[0]||(t[0]=u=>o.open_parent_directory())},[l("figure",UM,[l("span",jM,[v(i,{name:"subdirectory-arrow-left",size:"16"})])]),qM,l("div",WM,[ut(e.$slots,"actions")])])):H("",!0),(z(!0),S(Oe,null,ht(n.directories,u=>(z(),S("div",{key:u.path,class:"media",onClick:c=>o.open_directory(u)},[l("figure",KM,[l("span",ZM,[v(i,{name:"folder",size:"16"})])]),l("div",YM,[l("h1",{class:"title is-6",textContent:g(u.path.substring(u.path.lastIndexOf("/")+1))},null,8,JM),l("h2",{class:"subtitle is-7 has-text-grey-light",textContent:g(u.path)},null,8,XM)]),l("div",QM,[l("a",{onClick:it(c=>o.open_dialog(u),["prevent","stop"])},[l("span",tN,[v(i,{name:"dots-vertical",size:"16"})])],8,eN)])],8,GM))),128)),(z(),be(qs,{to:"#app"},[v(a,{show:r.show_details_modal,directory:r.selected_directory,onClose:t[1]||(t[1]=u=>r.show_details_modal=!1)},null,8,["show","directory"])]))],64)}var sN=re(HM,[["render",nN]]);const va={load(e){return e.query.directory?N.library_files(e.query.directory):Promise.resolve()},set(e,t){t?(e.dirs=t.data.directories,e.playlists=new ze(t.data.playlists),e.tracks=new ze(t.data.tracks)):(e.dirs=e.$store.state.config.directories.map(n=>({path:n})),e.playlists=new ze,e.tracks=new ze)}},rN={name:"PageFiles",components:{ContentWithHeading:st,ListDirectories:sN,ListPlaylists:om,ListTracks:wn,ModalDialogDirectory:fv},beforeRouteEnter(e,t,n){va.load(e).then(s=>{n(r=>va.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;va.load(e).then(r=>{va.set(s,r),n()})},data(){return{dirs:[],playlists:new ze,tracks:new ze,show_details_modal:!1}},computed:{current_directory(){return this.$route.query&&this.$route.query.directory?this.$route.query.directory:"/"},play_expression(){return'path starts with "'+this.current_directory+'" order by path asc'}},methods:{play(){N.player_play_expression(this.play_expression,!1)}}},oN={class:"fd-page"},iN=["textContent"],aN=["textContent"],lN={class:"buttons is-centered"},uN={class:"icon"},cN={class:"icon"},dN=["textContent"];function mN(e,t,n,s,r,o){const i=$("mdicon"),a=$("list-directories"),u=$("list-playlists"),c=$("list-tracks"),d=$("modal-dialog-directory"),f=$("content-with-heading");return z(),S("div",oN,[v(f,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.files.title"))},null,8,iN),l("p",{class:"title is-7 has-text-grey",textContent:g(o.current_directory)},null,8,aN)]),"heading-right":E(()=>[l("div",lN,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=m=>r.show_details_modal=!0)},[l("span",uN,[v(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>o.play&&o.play(...m))},[l("span",cN,[v(i,{name:"play",size:"16"})]),l("span",{textContent:g(e.$t("page.files.play"))},null,8,dN)])])]),content:E(()=>[v(a,{directories:r.dirs},null,8,["directories"]),v(u,{playlists:r.playlists},null,8,["playlists"]),v(c,{tracks:r.tracks,expression:o.play_expression,show_icon:!0},null,8,["tracks","expression"]),v(d,{show:r.show_details_modal,directory:o.current_directory,onClose:t[2]||(t[2]=m=>r.show_details_modal=!1)},null,8,["show","directory"])]),_:1})])}var fN=re(rN,[["render",mN]]);const ba={load(e){return N.library_radio_streams()},set(e,t){e.tracks=new ze(t.data.tracks)}},pN={name:"PageRadioStreams",components:{ContentWithHeading:st,ListTracks:wn},beforeRouteEnter(e,t,n){ba.load(e).then(s=>{n(r=>ba.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ba.load(e).then(r=>{ba.set(s,r),n()})},data(){return{tracks:new ze}}},hN={class:"fd-page"},_N=["textContent"],gN=["textContent"];function yN(e,t,n,s,r,o){const i=$("list-tracks"),a=$("content-with-heading");return z(),S("div",hN,[v(a,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.radio.title"))},null,8,_N)]),content:E(()=>[l("p",{class:"heading has-text-centered-mobile",textContent:g(e.$t("page.radio.count",{count:r.tracks.total}))},null,8,gN),v(i,{tracks:r.tracks},null,8,["tracks"])]),_:1})])}var vN=re(pN,[["render",yN]]);const bN={name:"ContentText"},CN={class:"section py-3"},wN={class:"container"},zN={class:"columns is-centered"},kN={class:"column is-four-fifths"};function xN(e,t,n,s,r,o){return z(),S("section",CN,[l("div",wN,[l("div",zN,[l("div",kN,[ut(e.$slots,"content")])])])])}var pv=re(bN,[["render",xN]]);const EN={name:"TabsSearch",props:["query"],computed:{spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},route_query(){return this.query?{type:"track,artist,album,playlist,audiobook,podcast",query:this.query,limit:3,offset:0}:null}},methods:{search_library(){this.$store.commit(vc,"/search/library"),this.$router.push({path:this.$store.state.search_path,query:this.route_query})},search_spotify(){this.$store.commit(vc,"/search/spotify"),this.$router.push({path:this.$store.state.search_path,query:this.route_query})}}},$N={key:0,class:"section"},SN={class:"container"},AN={class:"columns is-centered"},TN={class:"column is-four-fifths"},ON={class:"tabs is-centered is-small is-toggle is-toggle-rounded"},DN={class:"icon is-small"},PN=["textContent"],IN={class:"icon is-small"},FN=["textContent"];function RN(e,t,n,s,r,o){const i=$("mdicon");return o.spotify_enabled?(z(),S("section",$N,[l("div",SN,[l("div",AN,[l("div",TN,[l("div",ON,[l("ul",null,[l("li",{class:Ae({"is-active":e.$store.state.search_path==="/search/library"})},[l("a",{onClick:t[0]||(t[0]=(...a)=>o.search_library&&o.search_library(...a))},[l("span",DN,[v(i,{name:"bookshelf",size:"16"})]),l("span",{textContent:g(e.$t("page.search.tabs.library"))},null,8,PN)])],2),l("li",{class:Ae({"is-active":e.$store.state.search_path==="/search/spotify"})},[l("a",{onClick:t[1]||(t[1]=(...a)=>o.search_spotify&&o.search_spotify(...a))},[l("span",IN,[v(i,{name:"spotify",size:"16"})]),l("span",{textContent:g(e.$t("page.search.tabs.spotify"))},null,8,FN)])],2)])])])])])])):H("",!0)}var hv=re(EN,[["render",RN]]);const LN={name:"PageSearch",components:{ContentWithHeading:st,ContentText:pv,TabsSearch:hv,ListTracks:wn,ListArtists:tm,ListAlbums:is,ListPlaylists:om,ListComposers:cv},data(){return{search_query:"",tracks:new ze,artists:new ze,albums:new ze,composers:new ze,playlists:new ze,audiobooks:new ze,podcasts:new ze}},computed:{recent_searches(){return this.$store.state.recent_searches},show_tracks(){return this.$route.query.type&&this.$route.query.type.includes("track")},show_all_tracks_button(){return this.tracks.total>this.tracks.items.length},show_artists(){return this.$route.query.type&&this.$route.query.type.includes("artist")},show_all_artists_button(){return this.artists.total>this.artists.items.length},show_albums(){return this.$route.query.type&&this.$route.query.type.includes("album")},show_all_albums_button(){return this.albums.total>this.albums.items.length},show_composers(){return this.$route.query.type&&this.$route.query.type.includes("composer")},show_all_composers_button(){return this.composers.total>this.composers.items.length},show_playlists(){return this.$route.query.type&&this.$route.query.type.includes("playlist")},show_all_playlists_button(){return this.playlists.total>this.playlists.items.length},show_audiobooks(){return this.$route.query.type&&this.$route.query.type.includes("audiobook")},show_all_audiobooks_button(){return this.audiobooks.total>this.audiobooks.items.length},show_podcasts(){return this.$route.query.type&&this.$route.query.type.includes("podcast")},show_all_podcasts_button(){return this.podcasts.total>this.podcasts.items.length}},watch:{$route(e,t){this.search(e)}},mounted(){this.search(this.$route)},methods:{search(e){if(!e.query.query||e.query.query===""){this.search_query="",this.$refs.search_field.focus();return}this.search_query=e.query.query,this.searchMusic(e.query),this.searchAudiobooks(e.query),this.searchPodcasts(e.query),this.$store.commit(Fd,e.query.query)},searchMusic(e){if(e.type.indexOf("track")<0&&e.type.indexOf("artist")<0&&e.type.indexOf("album")<0&&e.type.indexOf("playlist")<0)return;const t={type:e.type,media_kind:"music"};e.query.startsWith("query:")?t.expression=e.query.replace(/^query:/,"").trim():t.query=e.query,e.limit&&(t.limit=e.limit,t.offset=e.offset),N.search(t).then(({data:n})=>{this.tracks=new ze(n.tracks),this.artists=new ze(n.artists),this.albums=new ze(n.albums),this.composers=new ze(n.composers),this.playlists=new ze(n.playlists)})},searchAudiobooks(e){if(e.type.indexOf("audiobook")<0)return;const t={type:"album",media_kind:"audiobook"};e.query.startsWith("query:")?t.expression=e.query.replace(/^query:/,"").trim():t.expression='((album includes "'+e.query+'" or artist includes "'+e.query+'") and media_kind is audiobook)',e.limit&&(t.limit=e.limit,t.offset=e.offset),N.search(t).then(({data:n})=>{this.audiobooks=new ze(n.albums)})},searchPodcasts(e){if(e.type.indexOf("podcast")<0)return;const t={type:"album",media_kind:"podcast"};e.query.startsWith("query:")?t.expression=e.query.replace(/^query:/,"").trim():t.expression='((album includes "'+e.query+'" or artist includes "'+e.query+'") and media_kind is podcast)',e.limit&&(t.limit=e.limit,t.offset=e.offset),N.search(t).then(({data:n})=>{this.podcasts=new ze(n.albums)})},new_search(){!this.search_query||(this.$router.push({path:this.$store.state.search_path,query:{type:"track,artist,album,playlist,audiobook,podcast,composer",query:this.search_query,limit:3,offset:0}}),this.$refs.search_field.blur())},open_search_tracks(){this.$router.push({path:"/search/library",query:{type:"track",query:this.$route.query.query}})},open_search_artists(){this.$router.push({path:"/search/library",query:{type:"artist",query:this.$route.query.query}})},open_search_albums(){this.$router.push({path:"/search/library",query:{type:"album",query:this.$route.query.query}})},open_search_composers(){this.$router.push({path:"/search/library",query:{type:"tracks",query:this.$route.query.query}})},open_search_playlists(){this.$router.push({path:"/search/library",query:{type:"playlist",query:this.$route.query.query}})},open_search_audiobooks(){this.$router.push({path:"/search/library",query:{type:"audiobook",query:this.$route.query.query}})},open_search_podcasts(){this.$router.push({path:"/search/library",query:{type:"podcast",query:this.$route.query.query}})},open_composer(e){this.$router.push({name:"ComposerAlbums",params:{composer:e.name}})},open_playlist(e){this.$router.push({path:"/playlists/"+e.id+"/tracks"})},open_recent_search(e){this.search_query=e,this.new_search()},open_track_dialog(e){this.selected_track=e,this.show_track_details_modal=!0},open_album_dialog(e){this.selected_album=e,this.show_album_details_modal=!0},open_artist_dialog(e){this.selected_artist=e,this.show_artist_details_modal=!0},open_composer_dialog(e){this.selected_composer=e,this.show_composer_details_modal=!0},open_playlist_dialog(e){this.selected_playlist=e,this.show_playlist_details_modal=!0}}},MN={class:"fd-page"},NN={class:"section pb-0"},VN={class:"container"},BN={class:"columns is-centered"},HN={class:"column is-four-fifths"},UN={class:"field"},jN={class:"control is-expanded has-icons-left"},qN=["placeholder"],WN={class:"icon is-left"},GN={class:"help has-text-centered"},KN=["innerHTML"],ZN={class:"tags",style:{"margin-top":"16px"}},YN=["onClick","textContent"],JN=["textContent"],XN={key:0,class:"level"},QN={class:"level-item"},e7=["textContent"],t7=["textContent"],n7=["textContent"],s7={key:0,class:"level"},r7={class:"level-item"},o7=["textContent"],i7=["textContent"],a7=["textContent"],l7={key:0,class:"level"},u7={class:"level-item"},c7=["textContent"],d7=["textContent"],m7=["textContent"],f7={key:0,class:"level"},p7={class:"level-item"},h7=["textContent"],_7=["textContent"],g7=["textContent"],y7={key:0,class:"level"},v7={class:"level-item"},b7=["textContent"],C7=["textContent"],w7=["textContent"],z7={key:0,class:"level"},k7={class:"level-item"},x7=["textContent"],E7=["textContent"],$7=["textContent"],S7={key:0,class:"level"},A7={class:"level-item"},T7=["textContent"],O7=["textContent"];function D7(e,t,n,s,r,o){const i=$("mdicon"),a=$("tabs-search"),u=$("list-tracks"),c=$("content-with-heading"),d=$("content-text"),f=$("list-artists"),m=$("list-albums"),p=$("list-composers"),h=$("list-playlists");return z(),S("div",MN,[l("section",NN,[l("div",VN,[l("div",BN,[l("div",HN,[l("form",{onSubmit:t[1]||(t[1]=it((..._)=>o.new_search&&o.new_search(..._),["prevent"]))},[l("div",UN,[l("p",jN,[dt(l("input",{ref:"search_field","onUpdate:modelValue":t[0]||(t[0]=_=>r.search_query=_),class:"input is-rounded is-shadowless",type:"text",placeholder:e.$t("page.search.placeholder"),autocomplete:"off"},null,8,qN),[[It,r.search_query]]),l("span",WN,[v(i,{name:"magnify",size:"16"})])]),l("p",GN,[l("span",{innerHTML:e.$t("page.search.help")},null,8,KN)])])],32),l("div",ZN,[(z(!0),S(Oe,null,ht(o.recent_searches,_=>(z(),S("a",{key:_,class:"tag",onClick:w=>o.open_recent_search(_),textContent:g(_)},null,8,YN))),128))])])])])]),v(a,{query:r.search_query},null,8,["query"]),o.show_tracks&&r.tracks.total?(z(),be(c,{key:0,class:"pt-0"},{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.tracks"))},null,8,JN)]),content:E(()=>[v(u,{tracks:r.tracks},null,8,["tracks"])]),footer:E(()=>[o.show_all_tracks_button?(z(),S("nav",XN,[l("p",QN,[l("a",{class:"button is-light is-small is-rounded",onClick:t[2]||(t[2]=(..._)=>o.open_search_tracks&&o.open_search_tracks(..._)),textContent:g(e.$t("page.search.show-tracks",{count:r.tracks.total.toLocaleString(e.$i18n.locale)}))},null,8,e7)])])):H("",!0)]),_:1})):H("",!0),o.show_tracks&&!r.tracks.total?(z(),be(d,{key:1,class:"pt-0"},{content:E(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-tracks"))},null,8,t7)])]),_:1})):H("",!0),o.show_artists&&r.artists.total?(z(),be(c,{key:2},{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.artists"))},null,8,n7)]),content:E(()=>[v(f,{artists:r.artists,hide_group_title:!0},null,8,["artists"])]),footer:E(()=>[o.show_all_artists_button?(z(),S("nav",s7,[l("p",r7,[l("a",{class:"button is-light is-small is-rounded",onClick:t[3]||(t[3]=(..._)=>o.open_search_artists&&o.open_search_artists(..._)),textContent:g(e.$t("page.search.show-artists",{count:r.artists.total.toLocaleString(e.$i18n.locale)}))},null,8,o7)])])):H("",!0)]),_:1})):H("",!0),o.show_artists&&!r.artists.total?(z(),be(d,{key:3},{content:E(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-artists"))},null,8,i7)])]),_:1})):H("",!0),o.show_albums&&r.albums.total?(z(),be(c,{key:4},{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.albums"))},null,8,a7)]),content:E(()=>[v(m,{albums:r.albums,hide_group_title:!0},null,8,["albums"])]),footer:E(()=>[o.show_all_albums_button?(z(),S("nav",l7,[l("p",u7,[l("a",{class:"button is-light is-small is-rounded",onClick:t[4]||(t[4]=(..._)=>o.open_search_albums&&o.open_search_albums(..._)),textContent:g(e.$t("page.search.show-albums",{count:r.albums.total.toLocaleString(e.$i18n.locale)}))},null,8,c7)])])):H("",!0)]),_:1})):H("",!0),o.show_albums&&!r.albums.total?(z(),be(d,{key:5},{content:E(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-albums"))},null,8,d7)])]),_:1})):H("",!0),o.show_composers&&r.composers.total?(z(),be(c,{key:6},{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.composers"))},null,8,m7)]),content:E(()=>[v(p,{composers:r.composers},null,8,["composers"])]),footer:E(()=>[o.show_all_composers_button?(z(),S("nav",f7,[l("p",p7,[l("a",{class:"button is-light is-small is-rounded",onClick:t[5]||(t[5]=(..._)=>o.open_search_composers&&o.open_search_composers(..._)),textContent:g(e.$t("page.search.show-composers",{count:r.composers.total.toLocaleString(e.$i18n.locale)}))},null,8,h7)])])):H("",!0)]),_:1})):H("",!0),o.show_composers&&!r.composers.total?(z(),be(d,{key:7},{content:E(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-composers"))},null,8,_7)])]),_:1})):H("",!0),o.show_playlists&&r.playlists.total?(z(),be(c,{key:8},{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.playlists"))},null,8,g7)]),content:E(()=>[v(h,{playlists:r.playlists},null,8,["playlists"])]),footer:E(()=>[o.show_all_playlists_button?(z(),S("nav",y7,[l("p",v7,[l("a",{class:"button is-light is-small is-rounded",onClick:t[6]||(t[6]=(..._)=>o.open_search_playlists&&o.open_search_playlists(..._)),textContent:g(e.$t("page.search.show-playlists",{count:r.playlists.total.toLocaleString(e.$i18n.locale)}))},null,8,b7)])])):H("",!0)]),_:1})):H("",!0),o.show_playlists&&!r.playlists.total?(z(),be(d,{key:9},{content:E(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-playlists"))},null,8,C7)])]),_:1})):H("",!0),o.show_podcasts&&r.podcasts.total?(z(),be(c,{key:10},{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.podcasts"))},null,8,w7)]),content:E(()=>[v(m,{albums:r.podcasts},null,8,["albums"])]),footer:E(()=>[o.show_all_podcasts_button?(z(),S("nav",z7,[l("p",k7,[l("a",{class:"button is-light is-small is-rounded",onClick:t[7]||(t[7]=(..._)=>o.open_search_podcasts&&o.open_search_podcasts(..._)),textContent:g(e.$t("page.search.show-podcasts",{count:r.podcasts.total.toLocaleString(e.$i18n.locale)}))},null,8,x7)])])):H("",!0)]),_:1})):H("",!0),o.show_podcasts&&!r.podcasts.total?(z(),be(d,{key:11},{content:E(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-podcasts"))},null,8,E7)])]),_:1})):H("",!0),o.show_audiobooks&&r.audiobooks.total?(z(),be(c,{key:12},{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.search.audiobooks"))},null,8,$7)]),content:E(()=>[v(m,{albums:r.audiobooks},null,8,["albums"])]),footer:E(()=>[o.show_all_audiobooks_button?(z(),S("nav",S7,[l("p",A7,[l("a",{class:"button is-light is-small is-rounded",onClick:t[8]||(t[8]=(..._)=>o.open_search_audiobooks&&o.open_search_audiobooks(..._)),textContent:g(e.$t("page.search.show-audiobooks",{count:r.audiobooks.total.toLocaleString(e.$i18n.locale)}))},null,8,T7)])])):H("",!0)]),_:1})):H("",!0),o.show_audiobooks&&!r.audiobooks.total?(z(),be(d,{key:13},{content:E(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.search.no-audiobooks"))},null,8,O7)])]),_:1})):H("",!0)])}var P7=re(LN,[["render",D7]]);const I7={name:"PageAbout",data(){return{show_update_dropdown:!1,show_update_library:!1}},computed:{config(){return this.$store.state.config},library(){return this.$store.state.library}},methods:{onClickOutside(e){this.show_update_dropdown=!1},showUpdateDialog(){this.$store.commit(wi,!0)}}},F7={class:"fd-page"},R7={class:"section"},L7={class:"container"},M7={class:"columns is-centered"},N7={class:"column is-four-fifths has-text-centered-mobile"},V7=["textContent"],B7={class:"section"},H7={class:"container"},U7={class:"columns is-centered"},j7={class:"column is-four-fifths"},q7={class:"content"},W7={class:"level is-mobile"},G7={class:"level-left"},K7={class:"level-item"},Z7=["textContent"],Y7={class:"level-right"},J7={key:0},X7=["textContent"],Q7={key:1},e9=["textContent"],t9={class:"table"},n9=["textContent"],s9=["textContent"],r9=["textContent"],o9=["textContent"],i9=["textContent"],a9=["textContent"],l9=["textContent"],u9=["textContent"],c9=["textContent"],d9={class:"has-text-right"},m9=["textContent"],f9=["textContent"],p9=["textContent"],h9={class:"has-text-right"},_9=["textContent"],g9=["textContent"],y9={class:"section"},v9={class:"container"},b9={class:"columns is-centered"},C9={class:"column is-four-fifths"},w9={class:"content has-text-centered-mobile"},z9=["textContent"],k9=["textContent"],x9=["innerHTML"];function E9(e,t,n,s,r,o){return z(),S("div",F7,[l("section",R7,[l("div",L7,[l("div",M7,[l("div",N7,[l("h1",{class:"title is-4",textContent:g(o.config.library_name)},null,8,V7)])])])]),l("section",B7,[l("div",H7,[l("div",U7,[l("div",j7,[l("div",q7,[l("nav",W7,[l("div",G7,[l("div",K7,[l("h2",{class:"title is-5",textContent:g(e.$t("page.about.library"))},null,8,Z7)])]),l("div",Y7,[o.library.updating?(z(),S("div",J7,[l("a",{class:"button is-small is-loading",textContent:g(e.$t("page.about.update"))},null,8,X7)])):(z(),S("div",Q7,[l("a",{class:"button is-small",onClick:t[0]||(t[0]=i=>o.showUpdateDialog()),textContent:g(e.$t("page.about.update"))},null,8,e9)]))])]),l("table",t9,[l("tbody",null,[l("tr",null,[l("th",{class:"has-text-left",textContent:g(e.$t("page.about.artists"))},null,8,n9),l("td",{class:"has-text-right",textContent:g(e.$filters.number(o.library.artists))},null,8,s9)]),l("tr",null,[l("th",{class:"has-text-left",textContent:g(e.$t("page.about.albums"))},null,8,r9),l("td",{class:"has-text-right",textContent:g(e.$filters.number(o.library.albums))},null,8,o9)]),l("tr",null,[l("th",{class:"has-text-left",textContent:g(e.$t("page.about.tracks"))},null,8,i9),l("td",{class:"has-text-right",textContent:g(e.$filters.number(o.library.songs))},null,8,a9)]),l("tr",null,[l("th",{class:"has-text-left",textContent:g(e.$t("page.about.total-playtime"))},null,8,l9),l("td",{class:"has-text-right",textContent:g(e.$filters.durationInDays(o.library.db_playtime*1e3))},null,8,u9)]),l("tr",null,[l("th",{class:"has-text-left",textContent:g(e.$t("page.about.updated"))},null,8,c9),l("td",d9,[l("span",{textContent:g(e.$t("page.about.updated-on",{time:e.$filters.timeFromNow(o.library.updated_at)}))},null,8,m9),mt(" ("),l("span",{class:"has-text-grey",textContent:g(e.$filters.datetime(o.library.updated_at))},null,8,f9),mt(") ")])]),l("tr",null,[l("th",{class:"has-text-left",textContent:g(e.$t("page.about.uptime"))},null,8,p9),l("td",h9,[l("span",{textContent:g(e.$filters.timeFromNow(o.library.started_at,!0))},null,8,_9),mt(" ("),l("span",{class:"has-text-grey",textContent:g(e.$filters.datetime(o.library.started_at))},null,8,g9),mt(") ")])])])])])])])])]),l("section",y9,[l("div",v9,[l("div",b9,[l("div",C9,[l("div",w9,[l("p",{class:"is-size-7",textContent:g(e.$t("page.about.version",{version:o.config.version}))},null,8,z9),l("p",{class:"is-size-7",textContent:g(e.$t("page.about.compiled-with",{options:o.config.buildoptions.join(", ")}))},null,8,k9),l("p",{class:"is-size-7",innerHTML:e.$t("page.about.built-with")},null,8,x9)])])])])])])}var $9=re(I7,[["render",E9]]);const S9={name:"SpotifyListItemAlbum",props:["album"]},A9={class:"media"},T9={key:0,class:"media-left is-clickable"},O9={class:"media-content is-clickable is-clipped"},D9=["textContent"],P9={class:"subtitle is-7 has-text-grey"},I9=["textContent"],F9=["textContent"],R9={class:"media-right"};function L9(e,t,n,s,r,o){return z(),S("div",A9,[e.$slots.artwork?(z(),S("div",T9,[ut(e.$slots,"artwork")])):H("",!0),l("div",O9,[l("h1",{class:"title is-6",textContent:g(n.album.name)},null,8,D9),l("h2",P9,[l("b",{textContent:g(n.album.artists[0].name)},null,8,I9)]),l("h2",{class:"subtitle is-7 has-text-grey has-text-weight-normal",textContent:g([n.album.album_type,e.$filters.date(n.album.release_date)].join(", "))},null,8,F9)]),l("div",R9,[ut(e.$slots,"actions")])])}var Yl=re(S9,[["render",L9]]);const M9={name:"SpotifyListItemPlaylist",props:["playlist"],methods:{open_playlist(){this.$router.push({path:"/music/spotify/playlists/"+this.playlist.id})}}},N9={class:"media"},V9=["textContent"],B9=["textContent"],H9={class:"media-right"};function U9(e,t,n,s,r,o){return z(),S("div",N9,[l("div",{class:"media-content is-clickable is-clipped",onClick:t[0]||(t[0]=(...i)=>o.open_playlist&&o.open_playlist(...i))},[l("h1",{class:"title is-6",textContent:g(n.playlist.name)},null,8,V9),l("h2",{class:"subtitle is-7",textContent:g(n.playlist.owner.display_name)},null,8,B9)]),l("div",H9,[ut(e.$slots,"actions")])])}var im=re(M9,[["render",U9]]);const j9={name:"SpotifyModalDialogAlbum",components:{CoverArtwork:Gn},props:["show","album"],emits:["close"],data(){return{artwork_visible:!1}},computed:{artwork_url(){return this.album.images&&this.album.images.length>0?this.album.images[0].url:""}},methods:{play(){this.$emit("close"),N.player_play_uri(this.album.uri,!1)},queue_add(){this.$emit("close"),N.queue_add(this.album.uri)},queue_add_next(){this.$emit("close"),N.queue_add_next(this.album.uri)},open_album(){this.$router.push({path:"/music/spotify/albums/"+this.album.id})},open_artist(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})},artwork_loaded(){this.artwork_visible=!0},artwork_error(){this.artwork_visible=!1}}},q9={key:0,class:"modal is-active"},W9={class:"modal-content fd-modal-card"},G9={class:"card"},K9={class:"card-content"},Z9={class:"title is-4"},Y9=["textContent"],J9={class:"content is-small"},X9=["textContent"],Q9=["textContent"],eV=["textContent"],tV=["textContent"],nV=["textContent"],sV=["textContent"],rV={class:"card-footer"},oV={class:"icon"},iV=["textContent"],aV={class:"icon"},lV=["textContent"],uV={class:"icon"},cV=["textContent"];function dV(e,t,n,s,r,o){const i=$("cover-artwork"),a=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",q9,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=u=>e.$emit("close"))}),l("div",W9,[l("div",G9,[l("div",K9,[v(i,{artwork_url:o.artwork_url,artist:n.album.artist,album:n.album.name,class:"fd-has-shadow fd-has-margin-bottom fd-cover fd-cover-normal-image",onLoad:o.artwork_loaded,onError:o.artwork_error},null,8,["artwork_url","artist","album","onLoad","onError"]),l("p",Z9,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...u)=>o.open_album&&o.open_album(...u)),textContent:g(n.album.name)},null,8,Y9)]),l("div",J9,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.album.album-artist"))},null,8,X9),l("a",{class:"title is-6 has-text-link",onClick:t[2]||(t[2]=(...u)=>o.open_artist&&o.open_artist(...u)),textContent:g(n.album.artists[0].name)},null,8,Q9)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.album.release-date"))},null,8,eV),l("span",{class:"title is-6",textContent:g(e.$filters.date(n.album.release_date))},null,8,tV)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.album.type"))},null,8,nV),l("span",{class:"title is-6",textContent:g(n.album.album_type)},null,8,sV)])])]),l("footer",rV,[l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...u)=>o.queue_add&&o.queue_add(...u))},[l("span",oV,[v(a,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.album.add"))},null,8,iV)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...u)=>o.queue_add_next&&o.queue_add_next(...u))},[l("span",aV,[v(a,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.album.add-next"))},null,8,lV)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...u)=>o.play&&o.play(...u))},[l("span",uV,[v(a,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.album.play"))},null,8,cV)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[6]||(t[6]=u=>e.$emit("close"))})])):H("",!0)]),_:1})])}var $i=re(j9,[["render",dV]]);const mV={name:"SpotifyModalDialogPlaylist",props:["show","playlist"],emits:["close"],methods:{play(){this.$emit("close"),N.player_play_uri(this.playlist.uri,!1)},queue_add(){this.$emit("close"),N.queue_add(this.playlist.uri)},queue_add_next(){this.$emit("close"),N.queue_add_next(this.playlist.uri)},open_playlist(){this.$router.push({path:"/music/spotify/playlists/"+this.playlist.id})}}},fV={key:0,class:"modal is-active"},pV={class:"modal-content fd-modal-card"},hV={class:"card"},_V={class:"card-content"},gV={class:"title is-4"},yV=["textContent"],vV={class:"content is-small"},bV=["textContent"],CV=["textContent"],wV=["textContent"],zV=["textContent"],kV=["textContent"],xV=["textContent"],EV={class:"card-footer"},$V={class:"icon"},SV=["textContent"],AV={class:"icon"},TV=["textContent"],OV={class:"icon"},DV=["textContent"];function PV(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",fV,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",pV,[l("div",hV,[l("div",_V,[l("p",gV,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_playlist&&o.open_playlist(...a)),textContent:g(n.playlist.name)},null,8,yV)]),l("div",vV,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.playlist.owner"))},null,8,bV),l("span",{class:"title is-6",textContent:g(n.playlist.owner.display_name)},null,8,CV)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.playlist.tracks"))},null,8,wV),l("span",{class:"title is-6",textContent:g(n.playlist.tracks.total)},null,8,zV)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.playlist.path"))},null,8,kV),l("span",{class:"title is-6",textContent:g(n.playlist.uri)},null,8,xV)])])]),l("footer",EV,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",$V,[v(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.playlist.add"))},null,8,SV)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",AV,[v(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.playlist.add-next"))},null,8,TV)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[l("span",OV,[v(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.playlist.play"))},null,8,DV)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var Jl=re(mV,[["render",PV]]);const Ca={load(e){if(Ke.state.spotify_new_releases.length>0&&Ke.state.spotify_featured_playlists.length>0)return Promise.resolve();const t=new Wn;return t.setAccessToken(Ke.state.spotify.webapi_token),Promise.all([t.getNewReleases({country:Ke.state.spotify.webapi_country,limit:50}),t.getFeaturedPlaylists({country:Ke.state.spotify.webapi_country,limit:50})])},set(e,t){t&&(Ke.commit(Pd,t[0].albums.items),Ke.commit(Id,t[1].playlists.items))}},IV={name:"SpotifyPageBrowse",components:{ContentWithHeading:st,TabsMusic:os,SpotifyListItemAlbum:Yl,SpotifyListItemPlaylist:im,SpotifyModalDialogAlbum:$i,SpotifyModalDialogPlaylist:Jl,CoverArtwork:Gn},beforeRouteEnter(e,t,n){Ca.load(e).then(s=>{n(r=>Ca.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;Ca.load(e).then(r=>{Ca.set(s,r),n()})},data(){return{show_album_details_modal:!1,selected_album:{},show_playlist_details_modal:!1,selected_playlist:{}}},computed:{new_releases(){return this.$store.state.spotify_new_releases.slice(0,3)},featured_playlists(){return this.$store.state.spotify_featured_playlists.slice(0,3)},is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},methods:{open_album(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},open_album_dialog(e){this.selected_album=e,this.show_album_details_modal=!0},open_playlist_dialog(e){this.selected_playlist=e,this.show_playlist_details_modal=!0},artwork_url(e){return e.images&&e.images.length>0?e.images[0].url:""}}},FV={class:"fd-page-with-tabs"},RV=["textContent"],LV=["onClick"],MV={class:"icon has-text-dark"},NV={class:"level"},VV={class:"level-item"},BV=["textContent"],HV=["onClick"],UV={class:"icon has-text-dark"},jV={class:"level"},qV={class:"level-item"};function WV(e,t,n,s,r,o){const i=$("tabs-music"),a=$("cover-artwork"),u=$("mdicon"),c=$("spotify-list-item-album"),d=$("spotify-modal-dialog-album"),f=$("router-link"),m=$("content-with-heading"),p=$("spotify-list-item-playlist"),h=$("spotify-modal-dialog-playlist");return z(),S("div",FV,[v(i),v(m,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.browse.new-releases"))},null,8,RV)]),content:E(()=>[(z(!0),S(Oe,null,ht(o.new_releases,_=>(z(),be(c,{key:_.id,album:_,onClick:w=>o.open_album(_)},Ci({actions:E(()=>[l("a",{onClick:it(w=>o.open_album_dialog(_),["prevent","stop"])},[l("span",MV,[v(u,{name:"dots-vertical",size:"16"})])],8,LV)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:E(()=>[v(a,{artwork_url:o.artwork_url(_),artist:_.artist,album:_.name,class:"is-clickable fd-has-shadow fd-cover fd-cover-small-image",maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])]),key:"0"}:void 0]),1032,["album","onClick"]))),128)),v(d,{show:r.show_album_details_modal,album:r.selected_album,onClose:t[0]||(t[0]=_=>r.show_album_details_modal=!1)},null,8,["show","album"])]),footer:E(()=>[l("nav",NV,[l("p",VV,[v(f,{to:"/music/spotify/new-releases",class:"button is-light is-small is-rounded"},{default:E(()=>[mt(g(e.$t("page.spotify.browse.show-more")),1)]),_:1})])])]),_:1}),v(m,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.browse.featured-playlists"))},null,8,BV)]),content:E(()=>[(z(!0),S(Oe,null,ht(o.featured_playlists,_=>(z(),be(p,{key:_.id,playlist:_},{actions:E(()=>[l("a",{onClick:it(w=>o.open_playlist_dialog(_),["prevent","stop"])},[l("span",UV,[v(u,{name:"dots-vertical",size:"16"})])],8,HV)]),_:2},1032,["playlist"]))),128)),v(h,{show:r.show_playlist_details_modal,playlist:r.selected_playlist,onClose:t[1]||(t[1]=_=>r.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),footer:E(()=>[l("nav",jV,[l("p",qV,[v(f,{to:"/music/spotify/featured-playlists",class:"button is-light is-small is-rounded"},{default:E(()=>[mt(g(e.$t("page.spotify.browse.show-more")),1)]),_:1})])])]),_:1})])}var GV=re(IV,[["render",WV]]);const wa={load(e){if(Ke.state.spotify_new_releases.length>0)return Promise.resolve();const t=new Wn;return t.setAccessToken(Ke.state.spotify.webapi_token),t.getNewReleases({country:Ke.state.spotify.webapi_country,limit:50})},set(e,t){t&&Ke.commit(Pd,t.albums.items)}},KV={name:"SpotifyPageBrowseNewReleases",components:{ContentWithHeading:st,TabsMusic:os,SpotifyListItemAlbum:Yl,SpotifyModalDialogAlbum:$i,CoverArtwork:Gn},beforeRouteEnter(e,t,n){wa.load(e).then(s=>{n(r=>wa.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;wa.load(e).then(r=>{wa.set(s,r),n()})},data(){return{show_album_details_modal:!1,selected_album:{}}},computed:{new_releases(){return this.$store.state.spotify_new_releases},is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},methods:{open_album(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},open_album_dialog(e){this.selected_album=e,this.show_album_details_modal=!0},artwork_url(e){return e.images&&e.images.length>0?e.images[0].url:""}}},ZV={class:"fd-page-with-tabs"},YV=["textContent"],JV=["onClick"],XV={class:"icon has-text-dark"};function QV(e,t,n,s,r,o){const i=$("tabs-music"),a=$("cover-artwork"),u=$("mdicon"),c=$("spotify-list-item-album"),d=$("spotify-modal-dialog-album"),f=$("content-with-heading");return z(),S("div",ZV,[v(i),v(f,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.browse.new-releases"))},null,8,YV)]),content:E(()=>[(z(!0),S(Oe,null,ht(o.new_releases,m=>(z(),be(c,{key:m.id,album:m,onClick:p=>o.open_album(m)},Ci({actions:E(()=>[l("a",{onClick:it(p=>o.open_album_dialog(m),["prevent","stop"])},[l("span",XV,[v(u,{name:"dots-vertical",size:"16"})])],8,JV)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:E(()=>[v(a,{artwork_url:o.artwork_url(m),artist:m.artist,album:m.name,class:"is-clickable fd-has-shadow fd-cover fd-cover-small-image",maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])]),key:"0"}:void 0]),1032,["album","onClick"]))),128)),v(d,{show:r.show_album_details_modal,album:r.selected_album,onClose:t[0]||(t[0]=m=>r.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})])}var eB=re(KV,[["render",QV]]);const za={load(e){if(Ke.state.spotify_featured_playlists.length>0)return Promise.resolve();const t=new Wn;t.setAccessToken(Ke.state.spotify.webapi_token),t.getFeaturedPlaylists({country:Ke.state.spotify.webapi_country,limit:50})},set(e,t){t&&Ke.commit(Id,t.playlists.items)}},tB={name:"SpotifyPageBrowseFeaturedPlaylists",components:{ContentWithHeading:st,TabsMusic:os,SpotifyListItemPlaylist:im,SpotifyModalDialogPlaylist:Jl},beforeRouteEnter(e,t,n){za.load(e).then(s=>{n(r=>za.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;za.load(e).then(r=>{za.set(s,r),n()})},data(){return{show_playlist_details_modal:!1,selected_playlist:{}}},computed:{featured_playlists(){return this.$store.state.spotify_featured_playlists}},methods:{open_playlist_dialog(e){this.selected_playlist=e,this.show_playlist_details_modal=!0}}},nB={class:"fd-page-with-tabs"},sB=["textContent"],rB=["onClick"],oB={class:"icon has-text-dark"};function iB(e,t,n,s,r,o){const i=$("tabs-music"),a=$("mdicon"),u=$("spotify-list-item-playlist"),c=$("spotify-modal-dialog-playlist"),d=$("content-with-heading");return z(),S("div",nB,[v(i),v(d,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.browse.featured-playlists"))},null,8,sB)]),content:E(()=>[(z(!0),S(Oe,null,ht(o.featured_playlists,f=>(z(),be(u,{key:f.id,playlist:f},{actions:E(()=>[l("a",{onClick:it(m=>o.open_playlist_dialog(f),["prevent","stop"])},[l("span",oB,[v(a,{name:"dots-vertical",size:"16"})])],8,rB)]),_:2},1032,["playlist"]))),128)),v(c,{show:r.show_playlist_details_modal,playlist:r.selected_playlist,onClose:t[0]||(t[0]=f=>r.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),_:1})])}var aB=re(tB,[["render",iB]]);const lB={name:"SpotifyModalDialogArtist",props:["show","artist"],emits:["close"],methods:{play(){this.$emit("close"),N.player_play_uri(this.artist.uri,!1)},queue_add(){this.$emit("close"),N.queue_add(this.artist.uri)},queue_add_next(){this.$emit("close"),N.queue_add_next(this.artist.uri)},open_artist(){this.$router.push({path:"/music/spotify/artists/"+this.artist.id})}}},uB={key:0,class:"modal is-active"},cB={class:"modal-content fd-modal-card"},dB={class:"card"},mB={class:"card-content"},fB={class:"title is-4"},pB=["textContent"],hB={class:"content is-small"},_B=["textContent"],gB=["textContent"],yB=["textContent"],vB=["textContent"],bB={class:"card-footer"},CB={class:"icon"},wB=["textContent"],zB={class:"icon"},kB=["textContent"],xB={class:"icon"},EB=["textContent"];function $B(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",uB,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",cB,[l("div",dB,[l("div",mB,[l("p",fB,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:g(n.artist.name)},null,8,pB)]),l("div",hB,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.artist.popularity"))},null,8,_B),l("span",{class:"title is-6",textContent:g([n.artist.popularity,n.artist.followers.total].join(" / "))},null,8,gB)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.artist.genres"))},null,8,yB),l("span",{class:"title is-6",textContent:g(n.artist.genres.join(", "))},null,8,vB)])])]),l("footer",bB,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",CB,[v(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.artist.add"))},null,8,wB)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",zB,[v(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.artist.add-next"))},null,8,kB)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[l("span",xB,[v(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.artist.play"))},null,8,EB)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var _v=re(lB,[["render",$B]]);function SB(e){return e.scrollHeight}function AB(e){return e.scrollWidth}function TB(e,t){e.scrollTop=e.scrollHeight-t+e.scrollTop}function OB(e,t){e.scrollLeft=e.scrollWidth-t+e.scrollLeft}const DB=l("div",{class:"loading"},"Loading...",-1),PB=l("div",{class:"no-more"},"No more.",-1),IB=l("div",{class:"no-results"},"No results.",-1),FB=l("div",{class:"error"},"Error.",-1),am=so({__name:"VueEternalLoading",props:{load:{required:!0,type:Function},isInitial:{required:!1,type:Boolean,default:!0},position:{required:!1,type:String,default:"default"},container:{required:!1,type:Object,default:null},margin:{required:!1,type:String,default:void 0}},emits:["update:isInitial"],setup(e,{emit:t}){const n=e,s=Xt();let r=Xt("loading"),o=Xt(n.isInitial),i=0;function a(){gi(()=>{var k,C;n.position==="top"?TB((k=n.container)!=null?k:document.documentElement,i):n.position==="left"&&OB((C=n.container)!=null?C:document.documentElement,i)})}function u(k,C){return k===0?o.value?(d(),"no-results"):(c(),"no-more"):k!==void 0&&C!==void 0&&k<C?(c(),"no-more"):(o.value=!1,a(),w(),"loading")}function c(){o.value=!1,h("no-more"),a()}function d(){o.value=!1,h("no-results"),a()}function f(){o.value=!1,h("error"),a()}function m(){o.value=!0,h("loading"),w()}function p(){h("loading"),w()}function h(k){r.value=k}function _(){s.value&&y.unobserve(s.value)}function w(){s.value&&y.observe(s.value)}function b(){return new IntersectionObserver(([k])=>{var C,x;k.isIntersecting&&(n.position==="top"?i=SB((C=n.container)!=null?C:document.documentElement):n.position==="left"&&(i=AB((x=n.container)!=null?x:document.documentElement)),_(),n.load({loaded:u,noMore:c,noResults:d,error:f},{isFirstLoad:o.value}))},{root:n.container,threshold:0,rootMargin:n.margin})}let y;return typeof IntersectionObserver<"u"&&Ph(()=>{y&&_(),y=b(),w()},{flush:"post"}),tn(()=>n.isInitial,k=>{k&&m()}),tn(o,k=>{k||t("update:isInitial",!1)}),(k,C)=>(z(),S("div",{class:"vue-eternal-loading",ref_key:"rootRef",ref:s},[yn(r)==="loading"?ut(k.$slots,"loading",Eo(Pr({key:0},{isFirstLoad:yn(o)})),()=>[DB]):yn(r)==="no-more"?ut(k.$slots,"no-more",Eo(Pr({key:1},{retry:p})),()=>[PB]):yn(r)==="no-results"?ut(k.$slots,"no-results",Eo(Pr({key:2},{retry:p})),()=>[IB]):yn(r)==="error"?ut(k.$slots,"error",Eo(Pr({key:3},{retry:p})),()=>[FB]):H("",!0)],512))}}),Mc=50,ka={load:function(e){const t=new Wn;return t.setAccessToken(Ke.state.spotify.webapi_token),Promise.all([t.getArtist(e.params.artist_id),t.getArtistAlbums(e.params.artist_id,{limit:Mc,offset:0,include_groups:"album,single",market:Ke.state.spotify.webapi_country})])},set(e,t){e.artist=t[0],e.albums=[],e.total=0,e.offset=0,e.append_albums(t[1])}},RB={name:"SpotifyPageArtist",components:{ContentWithHeading:st,SpotifyListItemAlbum:Yl,SpotifyModalDialogAlbum:$i,SpotifyModalDialogArtist:_v,VueEternalLoading:am,CoverArtwork:Gn},beforeRouteEnter(e,t,n){ka.load(e).then(s=>{n(r=>ka.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ka.load(e).then(r=>{ka.set(s,r),n()})},data(){return{artist:{},albums:[],total:0,offset:0,show_details_modal:!1,selected_album:{},show_artist_details_modal:!1}},computed:{is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},methods:{load_next({loaded:e}){const t=new Wn;t.setAccessToken(this.$store.state.spotify.webapi_token),t.getArtistAlbums(this.artist.id,{limit:Mc,offset:this.offset,include_groups:"album,single"}).then(n=>{this.append_albums(n),e(n.items.length,Mc)})},append_albums(e){this.albums=this.albums.concat(e.items),this.total=e.total,this.offset+=e.limit},play(){this.show_details_modal=!1,N.player_play_uri(this.artist.uri,!0)},open_album(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},open_dialog(e){this.selected_album=e,this.show_details_modal=!0},artwork_url(e){return e.images&&e.images.length>0?e.images[0].url:""}}},LB={class:"fd-page"},MB=["textContent"],NB={class:"buttons is-centered"},VB={class:"icon"},BB={class:"icon"},HB=["textContent"],UB=["textContent"],jB=["onClick"],qB={class:"icon has-text-dark"};function WB(e,t,n,s,r,o){const i=$("mdicon"),a=$("cover-artwork"),u=$("spotify-list-item-album"),c=$("VueEternalLoading"),d=$("spotify-modal-dialog-album"),f=$("spotify-modal-dialog-artist"),m=$("content-with-heading");return z(),S("div",LB,[v(m,null,{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(r.artist.name)},null,8,MB)]),"heading-right":E(()=>[l("div",NB,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=p=>r.show_artist_details_modal=!0)},[l("span",VB,[v(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...p)=>o.play&&o.play(...p))},[l("span",BB,[v(i,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.spotify.artist.shuffle"))},null,8,HB)])])]),content:E(()=>[l("p",{class:"heading has-text-centered-mobile",textContent:g(e.$t("page.spotify.artist.album-count",{count:r.total}))},null,8,UB),(z(!0),S(Oe,null,ht(r.albums,p=>(z(),be(u,{key:p.id,album:p,onClick:h=>o.open_album(p)},Ci({actions:E(()=>[l("a",{onClick:it(h=>o.open_dialog(p),["prevent","stop"])},[l("span",qB,[v(i,{name:"dots-vertical",size:"16"})])],8,jB)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:E(()=>[v(a,{artwork_url:o.artwork_url(p),artist:p.artist,album:p.name,class:"is-clickable fd-has-shadow fd-cover fd-cover-small-image",maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])]),key:"0"}:void 0]),1032,["album","onClick"]))),128)),r.offset<r.total?(z(),be(c,{key:0,load:o.load_next},{"no-more":E(()=>[mt(" . ")]),_:1},8,["load"])):H("",!0),v(d,{show:r.show_details_modal,album:r.selected_album,onClose:t[2]||(t[2]=p=>r.show_details_modal=!1)},null,8,["show","album"]),v(f,{show:r.show_artist_details_modal,artist:r.artist,onClose:t[3]||(t[3]=p=>r.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})])}var GB=re(RB,[["render",WB]]);const KB={name:"SpotifyListItemTrack",props:["track","position","context_uri"],methods:{play(){this.track.is_playable&&N.player_play_uri(this.context_uri,!1,this.position)}}},ZB={class:"media"},YB=["textContent"],JB=["textContent"],XB={key:0,class:"subtitle is-7"},QB=["textContent"],eH=["textContent"],tH={class:"media-right"};function nH(e,t,n,s,r,o){return z(),S("div",ZB,[l("div",{class:Ae(["media-content is-clipped",{"is-clickable":n.track.is_playable,"fd-is-not-allowed":!n.track.is_playable}]),onClick:t[0]||(t[0]=(...i)=>o.play&&o.play(...i))},[l("h1",{class:Ae(["title is-6",{"has-text-grey-light":!n.track.is_playable}]),textContent:g(n.track.name)},null,10,YB),l("h2",{class:Ae(["subtitle is-7",{"has-text-grey":n.track.is_playable,"has-text-grey-light":!n.track.is_playable}]),textContent:g(n.track.artists[0].name)},null,10,JB),n.track.is_playable?H("",!0):(z(),S("h2",XB,[mt(" ("),l("span",{textContent:g(e.$t("list.spotify.not-playable-track"))},null,8,QB),n.track.restrictions&&n.track.restrictions.reason?(z(),S("span",{key:0,textContent:g(e.$t("list.spotify.restriction-reason",{reason:n.track.restrictions.reason}))},null,8,eH)):H("",!0),mt(") ")]))],2),l("div",tH,[ut(e.$slots,"actions")])])}var lm=re(KB,[["render",nH]]);const sH={name:"SpotifyModalDialogTrack",props:["show","track","album"],emits:["close"],methods:{play(){this.$emit("close"),N.player_play_uri(this.track.uri,!1)},queue_add(){this.$emit("close"),N.queue_add(this.track.uri)},queue_add_next(){this.$emit("close"),N.queue_add_next(this.track.uri)},open_album(){this.$router.push({path:"/music/spotify/albums/"+this.album.id})},open_artist(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})}}},rH={key:0,class:"modal is-active"},oH={class:"modal-content fd-modal-card"},iH={class:"card"},aH={class:"card-content"},lH=["textContent"],uH=["textContent"],cH={class:"content is-small"},dH=["textContent"],mH=["textContent"],fH=["textContent"],pH=["textContent"],hH=["textContent"],_H=["textContent"],gH=["textContent"],yH=["textContent"],vH=["textContent"],bH=["textContent"],CH=["textContent"],wH=["textContent"],zH={class:"card-footer"},kH={class:"icon"},xH=["textContent"],EH={class:"icon"},$H=["textContent"],SH={class:"icon"},AH=["textContent"];function TH(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",rH,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",oH,[l("div",iH,[l("div",aH,[l("p",{class:"title is-4",textContent:g(n.track.name)},null,8,lH),l("p",{class:"subtitle",textContent:g(n.track.artists[0].name)},null,8,uH),l("div",cH,[l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.track.album"))},null,8,dH),l("a",{class:"title is-6 has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_album&&o.open_album(...a)),textContent:g(n.album.name)},null,8,mH)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.track.album-artist"))},null,8,fH),l("a",{class:"title is-6 has-text-link",onClick:t[2]||(t[2]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:g(n.album.artists[0].name)},null,8,pH)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.track.release-date"))},null,8,hH),l("span",{class:"title is-6",textContent:g(e.$filters.date(n.album.release_date))},null,8,_H)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.track.position"))},null,8,gH),l("span",{class:"title is-6",textContent:g([n.track.disc_number,n.track.track_number].join(" / "))},null,8,yH)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.track.duration"))},null,8,vH),l("span",{class:"title is-6",textContent:g(e.$filters.durationInHours(n.track.duration_ms))},null,8,bH)]),l("p",null,[l("span",{class:"heading",textContent:g(e.$t("dialog.spotify.track.path"))},null,8,CH),l("span",{class:"title is-6",textContent:g(n.track.uri)},null,8,wH)])])]),l("footer",zH,[l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add&&o.queue_add(...a))},[l("span",kH,[v(i,{name:"playlist-plus",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.track.add"))},null,8,xH)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[l("span",EH,[v(i,{name:"playlist-play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.track.add-next"))},null,8,$H)]),l("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>o.play&&o.play(...a))},[l("span",SH,[v(i,{name:"play",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.spotify.track.play"))},null,8,AH)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[6]||(t[6]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var um=re(sH,[["render",TH]]);const xa={load(e){const t=new Wn;return t.setAccessToken(Ke.state.spotify.webapi_token),t.getAlbum(e.params.album_id,{market:Ke.state.spotify.webapi_country})},set(e,t){e.album=t}},OH={name:"PageAlbum",components:{ContentWithHero:nm,SpotifyListItemTrack:lm,SpotifyModalDialogTrack:um,SpotifyModalDialogAlbum:$i,CoverArtwork:Gn},beforeRouteEnter(e,t,n){xa.load(e).then(s=>{n(r=>xa.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;xa.load(e).then(r=>{xa.set(s,r),n()})},data(){return{album:{artists:[{}],tracks:{}},show_track_details_modal:!1,selected_track:{},show_album_details_modal:!1}},computed:{artwork_url(){return this.album.images&&this.album.images.length>0?this.album.images[0].url:""}},methods:{open_artist(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})},play(){this.show_details_modal=!1,N.player_play_uri(this.album.uri,!0)},open_track_dialog(e){this.selected_track=e,this.show_track_details_modal=!0}}},DH={class:"fd-page"},PH=["textContent"],IH={class:"subtitle is-6 has-text-link has-text-weight-normal"},FH=["textContent"],RH={class:"buttons fd-is-centered-mobile fd-has-margin-top"},LH={class:"icon"},MH=["textContent"],NH={class:"icon"},VH=["textContent"],BH=["onClick"],HH={class:"icon has-text-dark"};function UH(e,t,n,s,r,o){const i=$("mdicon"),a=$("cover-artwork"),u=$("spotify-list-item-track"),c=$("spotify-modal-dialog-track"),d=$("spotify-modal-dialog-album"),f=$("content-with-hero");return z(),S("div",DH,[v(f,null,{"heading-left":E(()=>[l("h1",{class:"title is-5",textContent:g(r.album.name)},null,8,PH),l("h2",IH,[l("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...m)=>o.open_artist&&o.open_artist(...m)),textContent:g(r.album.artists[0].name)},null,8,FH)]),l("div",RH,[l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>o.play&&o.play(...m))},[l("span",LH,[v(i,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.spotify.album.shuffle"))},null,8,MH)]),l("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=m=>r.show_album_details_modal=!0)},[l("span",NH,[v(i,{name:"dots-horizontal",size:"16"})])])])]),"heading-right":E(()=>[v(a,{artwork_url:o.artwork_url,artist:r.album.artist,album:r.album.name,class:"is-clickable fd-has-shadow fd-cover fd-cover-medium-image",onClick:t[3]||(t[3]=m=>r.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])]),content:E(()=>[l("p",{class:"heading is-7 has-text-centered-mobile fd-has-margin-top",textContent:g(e.$t("page.spotify.album.track-count",{count:r.album.tracks.total}))},null,8,VH),(z(!0),S(Oe,null,ht(r.album.tracks.items,(m,p)=>(z(),be(u,{key:m.id,track:m,position:p,context_uri:r.album.uri},{actions:E(()=>[l("a",{onClick:it(h=>o.open_track_dialog(m),["prevent","stop"])},[l("span",HH,[v(i,{name:"dots-vertical",size:"16"})])],8,BH)]),_:2},1032,["track","position","context_uri"]))),128)),v(c,{show:r.show_track_details_modal,track:r.selected_track,album:r.album,onClose:t[4]||(t[4]=m=>r.show_track_details_modal=!1)},null,8,["show","track","album"]),v(d,{show:r.show_album_details_modal,album:r.album,onClose:t[5]||(t[5]=m=>r.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})])}var jH=re(OH,[["render",UH]]);const Nc=50,Ea={load:function(e){const t=new Wn;return t.setAccessToken(Ke.state.spotify.webapi_token),Promise.all([t.getPlaylist(e.params.playlist_id),t.getPlaylistTracks(e.params.playlist_id,{limit:Nc,offset:0,market:Ke.state.spotify.webapi_country})])},set(e,t){e.playlist=t[0],e.tracks=[],e.total=0,e.offset=0,e.append_tracks(t[1])}},qH={name:"SpotifyPagePlaylist",components:{ContentWithHeading:st,SpotifyListItemTrack:lm,SpotifyModalDialogTrack:um,SpotifyModalDialogPlaylist:Jl,VueEternalLoading:am},beforeRouteEnter(e,t,n){Ea.load(e).then(s=>{n(r=>Ea.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;Ea.load(e).then(r=>{Ea.set(s,r),n()})},data(){return{playlist:{tracks:{}},tracks:[],total:0,offset:0,show_track_details_modal:!1,selected_track:{},show_playlist_details_modal:!1}},methods:{load_next({loaded:e}){const t=new Wn;t.setAccessToken(this.$store.state.spotify.webapi_token),t.getPlaylistTracks(this.playlist.id,{limit:Nc,offset:this.offset,market:Ke.state.spotify.webapi_country}).then(n=>{this.append_tracks(n),e(n.items.length,Nc)})},append_tracks(e){let t=Math.max(-1,...this.tracks.map(n=>n.position).filter(n=>n));e.items.forEach(n=>{const s=n.track;s&&(s.is_playable&&(s.position=++t),this.tracks.push(s))}),this.total=e.total,this.offset+=e.limit},play(){this.show_details_modal=!1,N.player_play_uri(this.playlist.uri,!0)},open_track_dialog(e){this.selected_track=e,this.show_track_details_modal=!0}}},WH={class:"fd-page"},GH=["textContent"],KH={class:"buttons is-centered"},ZH={class:"icon"},YH={class:"icon"},JH=["textContent"],XH=["textContent"],QH=["onClick"],eU={class:"icon has-text-dark"};function tU(e,t,n,s,r,o){const i=$("mdicon"),a=$("spotify-list-item-track"),u=$("VueEternalLoading"),c=$("spotify-modal-dialog-track"),d=$("spotify-modal-dialog-playlist"),f=$("content-with-heading");return z(),S("div",WH,[v(f,null,{"heading-left":E(()=>[l("div",{class:"title is-4",textContent:g(r.playlist.name)},null,8,GH)]),"heading-right":E(()=>[l("div",KH,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=m=>r.show_playlist_details_modal=!0)},[l("span",ZH,[v(i,{name:"dots-horizontal",size:"16"})])]),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>o.play&&o.play(...m))},[l("span",YH,[v(i,{name:"shuffle",size:"16"})]),l("span",{textContent:g(e.$t("page.spotify.playlist.shuffle"))},null,8,JH)])])]),content:E(()=>[l("p",{class:"heading has-text-centered-mobile",textContent:g(e.$t("page.spotify.playlist.count",{count:r.playlist.tracks.total}))},null,8,XH),(z(!0),S(Oe,null,ht(r.tracks,m=>(z(),be(a,{key:m.id,track:m,position:m.position,context_uri:r.playlist.uri},{actions:E(()=>[l("a",{onClick:it(p=>o.open_track_dialog(m),["prevent","stop"])},[l("span",eU,[v(i,{name:"dots-vertical",size:"16"})])],8,QH)]),_:2},1032,["track","position","context_uri"]))),128)),r.offset<r.total?(z(),be(u,{key:0,load:o.load_next},{"no-more":E(()=>[mt(" . ")]),_:1},8,["load"])):H("",!0),v(c,{show:r.show_track_details_modal,track:r.selected_track,album:r.selected_track.album,onClose:t[2]||(t[2]=m=>r.show_track_details_modal=!1)},null,8,["show","track","album"]),v(d,{show:r.show_playlist_details_modal,playlist:r.playlist,onClose:t[3]||(t[3]=m=>r.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),_:1})])}var nU=re(qH,[["render",tU]]);const sU={name:"SpotifyListItemArtist",props:["artist"],methods:{open_artist(){this.$router.push({path:"/music/spotify/artists/"+this.artist.id})}}},rU={class:"media"},oU=["textContent"],iU={class:"media-right"};function aU(e,t,n,s,r,o){return z(),S("div",rU,[l("div",{class:"media-content is-clickable is-clipped",onClick:t[0]||(t[0]=(...i)=>o.open_artist&&o.open_artist(...i))},[l("h1",{class:"title is-6",textContent:g(n.artist.name)},null,8,oU)]),l("div",iU,[ut(e.$slots,"actions")])])}var lU=re(sU,[["render",aU]]);const Co=50,uU={name:"SpotifyPageSearch",components:{ContentWithHeading:st,ContentText:pv,TabsSearch:hv,SpotifyListItemTrack:lm,SpotifyListItemArtist:lU,SpotifyListItemAlbum:Yl,SpotifyListItemPlaylist:im,SpotifyModalDialogTrack:um,SpotifyModalDialogArtist:_v,SpotifyModalDialogAlbum:$i,SpotifyModalDialogPlaylist:Jl,VueEternalLoading:am,CoverArtwork:Gn},data(){return{search_query:"",tracks:{items:[],total:0},artists:{items:[],total:0},albums:{items:[],total:0},playlists:{items:[],total:0},query:{},search_param:{},show_track_details_modal:!1,selected_track:{},show_album_details_modal:!1,selected_album:{},show_artist_details_modal:!1,selected_artist:{},show_playlist_details_modal:!1,selected_playlist:{},validSearchTypes:["track","artist","album","playlist"]}},computed:{recent_searches(){return this.$store.state.recent_searches.filter(e=>!e.startsWith("query:"))},show_tracks(){return this.$route.query.type&&this.$route.query.type.includes("track")},show_all_tracks_button(){return this.tracks.total>this.tracks.items.length},show_artists(){return this.$route.query.type&&this.$route.query.type.includes("artist")},show_all_artists_button(){return this.artists.total>this.artists.items.length},show_albums(){return this.$route.query.type&&this.$route.query.type.includes("album")},show_all_albums_button(){return this.albums.total>this.albums.items.length},show_playlists(){return this.$route.query.type&&this.$route.query.type.includes("playlist")},show_all_playlists_button(){return this.playlists.total>this.playlists.items.length},is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},watch:{$route(e,t){this.query=e.query,this.search()}},mounted(){this.query=this.$route.query,this.search()},methods:{reset(){this.tracks={items:[],total:0},this.artists={items:[],total:0},this.albums={items:[],total:0},this.playlists={items:[],total:0}},search(){if(this.reset(),!this.query.query||this.query.query===""||this.query.query.startsWith("query:")){this.search_query="",this.$refs.search_field.focus();return}this.search_query=this.query.query,this.search_param.limit=this.query.limit?this.query.limit:Co,this.search_param.offset=this.query.offset?this.query.offset:0,this.$store.commit(Fd,this.query.query),this.search_all()},spotify_search(){return N.spotify().then(({data:e})=>{this.search_param.market=e.webapi_country;const t=new Wn;t.setAccessToken(e.webapi_token);const n=this.query.type.split(",").filter(s=>this.validSearchTypes.includes(s));return t.search(this.query.query,n,this.search_param)})},search_all(){this.spotify_search().then(e=>{this.tracks=e.tracks?e.tracks:{items:[],total:0},this.artists=e.artists?e.artists:{items:[],total:0},this.albums=e.albums?e.albums:{items:[],total:0},this.playlists=e.playlists?e.playlists:{items:[],total:0}})},search_tracks_next({loaded:e}){this.spotify_search().then(t=>{this.tracks.items=this.tracks.items.concat(t.tracks.items),this.tracks.total=t.tracks.total,this.search_param.offset+=t.tracks.limit,e(t.tracks.items.length,Co)})},search_artists_next({loaded:e}){this.spotify_search().then(t=>{this.artists.items=this.artists.items.concat(t.artists.items),this.artists.total=t.artists.total,this.search_param.offset+=t.artists.limit,e(t.artists.items.length,Co)})},search_albums_next({loaded:e}){this.spotify_search().then(t=>{this.albums.items=this.albums.items.concat(t.albums.items),this.albums.total=t.albums.total,this.search_param.offset+=t.albums.limit,e(t.albums.items.length,Co)})},search_playlists_next({loaded:e}){this.spotify_search().then(t=>{this.playlists.items=this.playlists.items.concat(t.playlists.items),this.playlists.total=t.playlists.total,this.search_param.offset+=t.playlists.limit,e(t.playlists.items.length,Co)})},new_search(){!this.search_query||(this.$router.push({path:"/search/spotify",query:{type:"track,artist,album,playlist,audiobook,podcast",query:this.search_query,limit:3,offset:0}}),this.$refs.search_field.blur())},open_search_tracks(){this.$router.push({path:"/search/spotify",query:{type:"track",query:this.$route.query.query}})},open_search_artists(){this.$router.push({path:"/search/spotify",query:{type:"artist",query:this.$route.query.query}})},open_search_albums(){this.$router.push({path:"/search/spotify",query:{type:"album",query:this.$route.query.query}})},open_search_playlists(){this.$router.push({path:"/search/spotify",query:{type:"playlist",query:this.$route.query.query}})},open_recent_search(e){this.search_query=e,this.new_search()},open_track_dialog(e){this.selected_track=e,this.show_track_details_modal=!0},open_album_dialog(e){this.selected_album=e,this.show_album_details_modal=!0},open_artist_dialog(e){this.selected_artist=e,this.show_artist_details_modal=!0},open_playlist_dialog(e){this.selected_playlist=e,this.show_playlist_details_modal=!0},open_album(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},artwork_url(e){return e.images&&e.images.length>0?e.images[0].url:""}}},cU={class:"fd-page"},dU={class:"section pb-0"},mU={class:"container"},fU={class:"columns is-centered"},pU={class:"column is-four-fifths"},hU={class:"field"},_U={class:"control is-expanded has-icons-left"},gU=["placeholder"],yU={class:"icon is-left"},vU={class:"tags",style:{"margin-top":"16px"}},bU=["onClick","textContent"],CU=["textContent"],wU=["onClick"],zU={class:"icon has-text-dark"},kU={key:0,class:"level"},xU={class:"level-item"},EU=["textContent"],$U=["textContent"],SU=["textContent"],AU=["onClick"],TU={class:"icon has-text-dark"},OU={key:0,class:"level"},DU={class:"level-item"},PU=["textContent"],IU=["textContent"],FU=["textContent"],RU=["onClick"],LU={class:"icon has-text-dark"},MU={key:0,class:"level"},NU={class:"level-item"},VU=["textContent"],BU=["textContent"],HU=["textContent"],UU=["onClick"],jU={class:"icon has-text-dark"},qU={key:0,class:"level"},WU={class:"level-item"},GU=["textContent"],KU=["textContent"];function ZU(e,t,n,s,r,o){const i=$("mdicon"),a=$("tabs-search"),u=$("spotify-list-item-track"),c=$("VueEternalLoading"),d=$("spotify-modal-dialog-track"),f=$("content-with-heading"),m=$("content-text"),p=$("spotify-list-item-artist"),h=$("spotify-modal-dialog-artist"),_=$("cover-artwork"),w=$("spotify-list-item-album"),b=$("spotify-modal-dialog-album"),y=$("spotify-list-item-playlist"),k=$("spotify-modal-dialog-playlist");return z(),S("div",cU,[l("section",dU,[l("div",mU,[l("div",fU,[l("div",pU,[l("form",{onSubmit:t[1]||(t[1]=it((...C)=>o.new_search&&o.new_search(...C),["prevent"]))},[l("div",hU,[l("p",_U,[dt(l("input",{ref:"search_field","onUpdate:modelValue":t[0]||(t[0]=C=>r.search_query=C),class:"input is-rounded is-shadowless",type:"text",placeholder:e.$t("page.spotify.search.placeholder"),autocomplete:"off"},null,8,gU),[[It,r.search_query]]),l("span",yU,[v(i,{name:"magnify",size:"16"})])])])],32),l("div",vU,[(z(!0),S(Oe,null,ht(o.recent_searches,C=>(z(),S("a",{key:C,class:"tag",onClick:x=>o.open_recent_search(C),textContent:g(C)},null,8,bU))),128))])])])])]),v(a,{query:r.search_query},null,8,["query"]),o.show_tracks&&r.tracks.total?(z(),be(f,{key:0,class:"pt-0"},{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.search.tracks"))},null,8,CU)]),content:E(()=>[(z(!0),S(Oe,null,ht(r.tracks.items,C=>(z(),be(u,{key:C.id,track:C,position:0,context_uri:C.uri},{actions:E(()=>[l("a",{onClick:it(x=>o.open_track_dialog(C),["prevent","stop"])},[l("span",zU,[v(i,{name:"dots-vertical",size:"16"})])],8,wU)]),_:2},1032,["track","context_uri"]))),128)),r.query.type==="track"?(z(),be(c,{key:0,load:o.search_tracks_next},{"no-more":E(()=>[mt(" . ")]),_:1},8,["load"])):H("",!0),v(d,{show:r.show_track_details_modal,track:r.selected_track,album:r.selected_track.album,onClose:t[2]||(t[2]=C=>r.show_track_details_modal=!1)},null,8,["show","track","album"])]),footer:E(()=>[o.show_all_tracks_button?(z(),S("nav",kU,[l("p",xU,[l("a",{class:"button is-light is-small is-rounded",onClick:t[3]||(t[3]=(...C)=>o.open_search_tracks&&o.open_search_tracks(...C)),textContent:g(e.$t("page.spotify.search.show-all-tracks",{count:r.tracks.total.toLocaleString(e.$i18n.locale)}))},null,8,EU)])])):H("",!0)]),_:1})):H("",!0),o.show_tracks&&!r.tracks.total?(z(),be(m,{key:1,class:"pt-0"},{content:E(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.spotify.search.no-tracks"))},null,8,$U)])]),_:1})):H("",!0),o.show_artists&&r.artists.total?(z(),be(f,{key:2},{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.search.artists"))},null,8,SU)]),content:E(()=>[(z(!0),S(Oe,null,ht(r.artists.items,C=>(z(),be(p,{key:C.id,artist:C},{actions:E(()=>[l("a",{onClick:it(x=>o.open_artist_dialog(C),["prevent","stop"])},[l("span",TU,[v(i,{name:"dots-vertical",size:"16"})])],8,AU)]),_:2},1032,["artist"]))),128)),r.query.type==="artist"?(z(),be(c,{key:0,load:o.search_artists_next},{"no-more":E(()=>[mt(" . ")]),_:1},8,["load"])):H("",!0),v(h,{show:r.show_artist_details_modal,artist:r.selected_artist,onClose:t[4]||(t[4]=C=>r.show_artist_details_modal=!1)},null,8,["show","artist"])]),footer:E(()=>[o.show_all_artists_button?(z(),S("nav",OU,[l("p",DU,[l("a",{class:"button is-light is-small is-rounded",onClick:t[5]||(t[5]=(...C)=>o.open_search_artists&&o.open_search_artists(...C)),textContent:g(e.$t("page.spotify.search.show-all-artists",{count:r.artists.total.toLocaleString(e.$i18n.locale)}))},null,8,PU)])])):H("",!0)]),_:1})):H("",!0),o.show_artists&&!r.artists.total?(z(),be(m,{key:3},{content:E(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.spotify.search.no-artists"))},null,8,IU)])]),_:1})):H("",!0),o.show_albums&&r.albums.total?(z(),be(f,{key:4},{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.search.albums"))},null,8,FU)]),content:E(()=>[(z(!0),S(Oe,null,ht(r.albums.items,C=>(z(),be(w,{key:C.id,album:C,onClick:x=>o.open_album(C)},Ci({actions:E(()=>[l("a",{onClick:it(x=>o.open_album_dialog(C),["prevent","stop"])},[l("span",LU,[v(i,{name:"dots-vertical",size:"16"})])],8,RU)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:E(()=>[v(_,{artwork_url:o.artwork_url(C),artist:C.artist,album:C.name,class:"is-clickable fd-has-shadow fd-cover fd-cover-small-image",maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])]),key:"0"}:void 0]),1032,["album","onClick"]))),128)),r.query.type==="album"?(z(),be(c,{key:0,load:o.search_albums_next},{"no-more":E(()=>[mt(" . ")]),_:1},8,["load"])):H("",!0),v(b,{show:r.show_album_details_modal,album:r.selected_album,onClose:t[6]||(t[6]=C=>r.show_album_details_modal=!1)},null,8,["show","album"])]),footer:E(()=>[o.show_all_albums_button?(z(),S("nav",MU,[l("p",NU,[l("a",{class:"button is-light is-small is-rounded",onClick:t[7]||(t[7]=(...C)=>o.open_search_albums&&o.open_search_albums(...C)),textContent:g(e.$t("page.spotify.search.show-all-albums",{count:r.albums.total.toLocaleString(e.$i18n.locale)}))},null,8,VU)])])):H("",!0)]),_:1})):H("",!0),o.show_albums&&!r.albums.total?(z(),be(m,{key:5},{content:E(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.spotify.search.no-albums"))},null,8,BU)])]),_:1})):H("",!0),o.show_playlists&&r.playlists.total?(z(),be(f,{key:6},{"heading-left":E(()=>[l("p",{class:"title is-4",textContent:g(e.$t("page.spotify.search.playlists"))},null,8,HU)]),content:E(()=>[(z(!0),S(Oe,null,ht(r.playlists.items,C=>(z(),be(y,{key:C.id,playlist:C},{actions:E(()=>[l("a",{onClick:it(x=>o.open_playlist_dialog(C),["prevent","stop"])},[l("span",jU,[v(i,{name:"dots-vertical",size:"16"})])],8,UU)]),_:2},1032,["playlist"]))),128)),r.query.type==="playlist"?(z(),be(c,{key:0,load:o.search_playlists_next},{"no-more":E(()=>[mt(" . ")]),_:1},8,["load"])):H("",!0),v(k,{show:r.show_playlist_details_modal,playlist:r.selected_playlist,onClose:t[8]||(t[8]=C=>r.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),footer:E(()=>[o.show_all_playlists_button?(z(),S("nav",qU,[l("p",WU,[l("a",{class:"button is-light is-small is-rounded",onClick:t[9]||(t[9]=(...C)=>o.open_search_playlists&&o.open_search_playlists(...C)),textContent:g(e.$t("page.spotify.search.show-all-playlists",{count:r.playlists.total.toLocaleString(e.$i18n.locale)}))},null,8,GU)])])):H("",!0)]),_:1})):H("",!0),o.show_playlists&&!r.playlists.total?(z(),be(m,{key:7},{content:E(()=>[l("p",null,[l("i",{textContent:g(e.$t("page.spotify.search.no-playlists"))},null,8,KU)])]),_:1})):H("",!0)])}var YU=re(uU,[["render",ZU]]);const JU={name:"TabsSettings"},XU={class:"section fd-tabs-section"},QU={class:"container"},ej={class:"columns is-centered"},tj={class:"column is-four-fifths"},nj={class:"tabs is-centered is-small"},sj=["onClick","onKeypress"],rj=["textContent"],oj=["onClick","onKeypress"],ij=["textContent"],aj=["onClick","onKeypress"],lj=["textContent"],uj=["onClick","onKeypress"],cj=["textContent"];function dj(e,t,n,s,r,o){const i=$("router-link");return z(),S("section",XU,[l("div",QU,[l("div",ej,[l("div",tj,[l("div",nj,[l("ul",null,[v(i,{to:"/settings/webinterface",custom:""},{default:E(({navigate:a,isActive:u})=>[l("li",{class:Ae({"is-active":u})},[l("a",{onClick:a,onKeypress:gn(a,["enter"])},[l("span",{textContent:g(e.$t("page.settings.tabs.general"))},null,8,rj)],40,sj)],2)]),_:1}),v(i,{to:"/settings/remotes-outputs",custom:""},{default:E(({navigate:a,isActive:u})=>[l("li",{class:Ae({"is-active":u})},[l("a",{onClick:a,onKeypress:gn(a,["enter"])},[l("span",{textContent:g(e.$t("page.settings.tabs.remotes-and-outputs"))},null,8,ij)],40,oj)],2)]),_:1}),v(i,{to:"/settings/artwork",custom:""},{default:E(({navigate:a,isActive:u})=>[l("li",{class:Ae({"is-active":u})},[l("a",{onClick:a,onKeypress:gn(a,["enter"])},[l("span",{textContent:g(e.$t("page.settings.tabs.artwork"))},null,8,lj)],40,aj)],2)]),_:1}),v(i,{to:"/settings/online-services",custom:""},{default:E(({navigate:a,isActive:u})=>[l("li",{class:Ae({"is-active":u})},[l("a",{onClick:a,onKeypress:gn(a,["enter"])},[l("span",{textContent:g(e.$t("page.settings.tabs.online-services"))},null,8,cj)],40,uj)],2)]),_:1})])])])])])])}var Xl=re(JU,[["render",dj]]);const mj={name:"SettingsCheckbox",props:["category_name","option_name"],data(){return{timerDelay:2e3,timerId:-1,statusUpdate:""}},computed:{category(){return this.$store.state.settings.categories.find(e=>e.name===this.category_name)},option(){return this.category?this.category.options.find(e=>e.name===this.option_name):{}},value(){return this.option.value},info(){return this.statusUpdate==="success"?this.$t("setting.saved"):this.statusUpdate==="error"?this.$t("setting.not-saved"):""},is_success(){return this.statusUpdate==="success"},is_error(){return this.statusUpdate==="error"}},methods:{set_update_timer(){this.timerId>0&&(window.clearTimeout(this.timerId),this.timerId=-1),this.statusUpdate="",this.$refs.setting.checked!==this.value&&(this.timerId=window.setTimeout(this.update_setting,this.timerDelay))},update_setting(){this.timerId=-1;const e=this.$refs.setting.checked;if(e===this.value){this.statusUpdate="";return}const t={category:this.category.name,name:this.option_name,value:e};N.settings_update(this.category.name,t).then(()=>{this.$store.commit(Ll,t),this.statusUpdate="success"}).catch(()=>{this.statusUpdate="error",this.$refs.setting.checked=this.value}).finally(()=>{this.timerId=window.setTimeout(this.clear_status,this.timerDelay)})},clear_status(){this.statusUpdate=""}}},fj={class:"field"},pj={class:"switch"},hj=["checked"],_j=["textContent"],gj={key:0,class:"help"};function yj(e,t,n,s,r,o){return z(),S("div",fj,[l("label",pj,[l("input",{ref:"setting",type:"checkbox",checked:o.value,style:{"margin-right":"5px"},onChange:t[0]||(t[0]=(...i)=>o.set_update_timer&&o.set_update_timer(...i))},null,40,hj),ut(e.$slots,"label"),l("i",{class:Ae(["is-size-7",{"has-text-info":o.is_success,"has-text-danger":o.is_error}]),textContent:g(o.info)},null,10,_j)]),e.$slots.info?(z(),S("p",gj,[ut(e.$slots,"info")])):H("",!0)])}var gv=re(mj,[["render",yj]]);const vj={name:"SettingsTextfield",props:["category_name","option_name","placeholder","disabled"],data(){return{timerDelay:2e3,timerId:-1,statusUpdate:""}},computed:{category(){return this.$store.state.settings.categories.find(e=>e.name===this.category_name)},option(){return this.category?this.category.options.find(e=>e.name===this.option_name):{}},value(){return this.option.value},info(){return this.statusUpdate==="success"?this.$t("setting.saved"):this.statusUpdate==="error"?this.$t("setting.not-saved"):""},is_success(){return this.statusUpdate==="success"},is_error(){return this.statusUpdate==="error"}},methods:{set_update_timer(){this.timerId>0&&(window.clearTimeout(this.timerId),this.timerId=-1),this.statusUpdate="",this.$refs.setting.value!==this.value&&(this.timerId=window.setTimeout(this.update_setting,this.timerDelay))},update_setting(){this.timerId=-1;const e=this.$refs.setting.value;if(e===this.value){this.statusUpdate="";return}const t={category:this.category.name,name:this.option_name,value:e};N.settings_update(this.category.name,t).then(()=>{this.$store.commit(Ll,t),this.statusUpdate="success"}).catch(()=>{this.statusUpdate="error",this.$refs.setting.value=this.value}).finally(()=>{this.timerId=window.setTimeout(this.clear_status,this.timerDelay)})},clear_status(){this.statusUpdate=""}}},bj=["disabled"],Cj={class:"field"},wj={class:"label has-text-weight-normal"},zj=["textContent"],kj={class:"control"},xj=["placeholder","value"],Ej={key:0,class:"help"};function $j(e,t,n,s,r,o){return z(),S("fieldset",{disabled:n.disabled},[l("div",Cj,[l("label",wj,[ut(e.$slots,"label"),l("i",{class:Ae(["is-size-7",{"has-text-info":o.is_success,"has-text-danger":o.is_error}]),textContent:g(o.info)},null,10,zj)]),l("div",kj,[l("input",{ref:"setting",class:"input",type:"text",placeholder:n.placeholder,value:o.value,onInput:t[0]||(t[0]=(...i)=>o.set_update_timer&&o.set_update_timer(...i))},null,40,xj)]),e.$slots.info?(z(),S("p",Ej,[ut(e.$slots,"info")])):H("",!0)])],8,bj)}var Sj=re(vj,[["render",$j]]);const Aj={name:"SettingsIntfield",props:["category_name","option_name","placeholder","disabled"],data(){return{timerDelay:2e3,timerId:-1,statusUpdate:""}},computed:{category(){return this.$store.state.settings.categories.find(e=>e.name===this.category_name)},option(){return this.category?this.category.options.find(e=>e.name===this.option_name):{}},value(){return this.option.value},info(){return this.statusUpdate==="success"?this.$t("setting.saved"):this.statusUpdate==="error"?this.$t("setting.not-saved"):""},is_success(){return this.statusUpdate==="success"},is_error(){return this.statusUpdate==="error"}},methods:{set_update_timer(){this.timerId>0&&(window.clearTimeout(this.timerId),this.timerId=-1),this.statusUpdate="",this.$refs.setting.value!==this.value&&(this.timerId=window.setTimeout(this.update_setting,this.timerDelay))},update_setting(){this.timerId=-1;const e=this.$refs.setting.value;if(e===this.value){this.statusUpdate="";return}const t={category:this.category.name,name:this.option_name,value:parseInt(e,10)};N.settings_update(this.category.name,t).then(()=>{this.$store.commit(Ll,t),this.statusUpdate="success"}).catch(()=>{this.statusUpdate="error",this.$refs.setting.value=this.value}).finally(()=>{this.timerId=window.setTimeout(this.clear_status,this.timerDelay)})},clear_status(){this.statusUpdate=""}}},Tj=["disabled"],Oj={class:"field"},Dj={class:"label has-text-weight-normal"},Pj=["textContent"],Ij={class:"control"},Fj=["placeholder","value"],Rj={key:0,class:"help"};function Lj(e,t,n,s,r,o){return z(),S("fieldset",{disabled:n.disabled},[l("div",Oj,[l("label",Dj,[ut(e.$slots,"label"),l("i",{class:Ae(["is-size-7",{"has-text-info":o.is_success,"has-text-danger":o.is_error}]),textContent:g(o.info)},null,10,Pj)]),l("div",Ij,[l("input",{ref:"setting",class:"input",type:"number",min:"0",style:{width:"10em"},placeholder:n.placeholder,value:o.value,onInput:t[0]||(t[0]=(...i)=>o.set_update_timer&&o.set_update_timer(...i))},null,40,Fj)]),e.$slots.info?(z(),S("p",Rj,[ut(e.$slots,"info")])):H("",!0)])],8,Tj)}var Mj=re(Aj,[["render",Lj]]);const Nj={name:"SettingsPageWebinterface",components:{ContentWithHeading:st,TabsSettings:Xl,SettingsCheckbox:gv,SettingsTextfield:Sj,SettingsIntfield:Mj,DropdownMenu:gr},computed:{settings_option_show_composer_now_playing(){return this.$store.getters.settings_option_show_composer_now_playing},settings_option_show_filepath_now_playing(){return this.$store.getters.settings_option_show_filepath_now_playing},locale:{get(){let e=this.$i18n.availableLocales,t=e.find(s=>s===this.$i18n.locale),n=this.$i18n.locale.split("-")[0];return t||(t=e.find(s=>s===n)),t||(t=e.forEach(s=>s.split("-")[0]===n)),t},set(e){this.$i18n.locale=e}},locales:{get(){return this.$i18n.availableLocales.map(e=>({id:e,name:this.$t("language."+e)}))}}}},Vj={class:"fd-page-with-tabs"},Bj=["textContent"],Hj=["textContent"],Uj=["textContent"],jj=["textContent"],qj=["textContent"],Wj=["textContent"],Gj=["textContent"],Kj=["textContent"],Zj=["textContent"],Yj=["textContent"],Jj=["textContent"],Xj=["textContent"],Qj=["textContent"],eq=["textContent"],tq=["textContent"],nq=["textContent"],sq=["textContent"],rq=["textContent"],oq=["textContent"],iq=["textContent"],aq=["textContent"],lq=["textContent"],uq=["textContent"];function cq(e,t,n,s,r,o){const i=$("tabs-settings"),a=$("dropdown-menu"),u=$("content-with-heading"),c=$("settings-checkbox"),d=$("settings-textfield"),f=$("settings-intfield");return z(),S("div",Vj,[v(i),v(u,null,{"heading-left":E(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.general.language"))},null,8,Bj)]),content:E(()=>[v(a,{modelValue:o.locale,"onUpdate:modelValue":t[0]||(t[0]=m=>o.locale=m),options:o.locales},null,8,["modelValue","options"])]),_:1}),v(u,null,{"heading-left":E(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.general.navigation-items"))},null,8,Hj)]),content:E(()=>[l("p",{class:"content",textContent:g(e.$t("page.settings.general.navigation-item-selection"))},null,8,Uj),l("div",{class:"notification is-size-7",textContent:g(e.$t("page.settings.general.navigation-item-selection-info"))},null,8,jj),v(c,{category_name:"webinterface",option_name:"show_menu_item_playlists"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.general.playlists"))},null,8,qj)]),_:1}),v(c,{category_name:"webinterface",option_name:"show_menu_item_music"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.general.music"))},null,8,Wj)]),_:1}),v(c,{category_name:"webinterface",option_name:"show_menu_item_podcasts"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.general.podcasts"))},null,8,Gj)]),_:1}),v(c,{category_name:"webinterface",option_name:"show_menu_item_audiobooks"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.general.audiobooks"))},null,8,Kj)]),_:1}),v(c,{category_name:"webinterface",option_name:"show_menu_item_radio"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.general.radio"))},null,8,Zj)]),_:1}),v(c,{category_name:"webinterface",option_name:"show_menu_item_files"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.general.files"))},null,8,Yj)]),_:1}),v(c,{category_name:"webinterface",option_name:"show_menu_item_search"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.general.search"))},null,8,Jj)]),_:1})]),_:1}),v(u,null,{"heading-left":E(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.general.album-lists"))},null,8,Xj)]),content:E(()=>[v(c,{category_name:"webinterface",option_name:"show_cover_artwork_in_album_lists"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.general.show-coverart"))},null,8,Qj)]),_:1})]),_:1}),v(u,null,{"heading-left":E(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.general.now-playing-page"))},null,8,eq)]),content:E(()=>[v(c,{category_name:"webinterface",option_name:"show_composer_now_playing"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.general.show-composer"))},null,8,tq)]),info:E(()=>[l("span",{textContent:g(e.$t("page.settings.general.show-composer-info"))},null,8,nq)]),_:1}),v(d,{category_name:"webinterface",option_name:"show_composer_for_genre",disabled:!o.settings_option_show_composer_now_playing,placeholder:"Genres"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.general.show-composer-genres"))},null,8,sq)]),info:E(()=>[l("p",{class:"help",textContent:g(e.$t("page.settings.general.show-composer-genres-info-1"))},null,8,rq),l("p",{class:"help",textContent:g(e.$t("page.settings.general.show-composer-genres-info-2"))},null,8,oq),l("p",{class:"help",textContent:g(e.$t("page.settings.general.show-composer-genres-info-3"))},null,8,iq)]),_:1},8,["disabled"]),v(c,{category_name:"webinterface",option_name:"show_filepath_now_playing"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.general.show-path"))},null,8,aq)]),_:1})]),_:1}),v(u,null,{"heading-left":E(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.general.recently-added-page"))},null,8,lq)]),content:E(()=>[v(f,{category_name:"webinterface",option_name:"recently_added_limit"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.general.recently-added-page-info"))},null,8,uq)]),_:1})]),_:1})])}var dq=re(Nj,[["render",cq]]);const mq={name:"SettingsPageArtwork",components:{ContentWithHeading:st,TabsSettings:Xl,SettingsCheckbox:gv},computed:{spotify(){return this.$store.state.spotify}}},fq={class:"fd-page-with-tabs"},pq=["textContent"],hq=["textContent"],_q=["textContent"],gq=["textContent"],yq={href:"https://www.spotify.com/",target:"_blank"},vq={class:"icon"},bq=["textContent"],Cq={href:"https://www.discogs.com/",target:"_blank"},wq={class:"icon"},zq=["textContent"],kq={href:"https://coverartarchive.org/",target:"_blank"},xq={class:"icon"};function Eq(e,t,n,s,r,o){const i=$("tabs-settings"),a=$("mdicon"),u=$("settings-checkbox"),c=$("content-with-heading");return z(),S("div",fq,[v(i),v(c,null,{"heading-left":E(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.artwork.artwork"))},null,8,pq)]),content:E(()=>[l("div",{class:"content",textContent:g(e.$t("page.settings.artwork.explanation-1"))},null,8,hq),l("div",{class:"content",textContent:g(e.$t("page.settings.artwork.explanation-2"))},null,8,_q),o.spotify.spotify_logged_in?(z(),be(u,{key:0,category_name:"artwork",option_name:"use_artwork_source_spotify"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.artwork.spotify"))},null,8,gq),l("a",yq,[l("span",vq,[v(a,{name:"open-in-new",size:"16"})])])]),_:1})):H("",!0),v(u,{category_name:"artwork",option_name:"use_artwork_source_discogs"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.artwork.discogs"))},null,8,bq),l("a",Cq,[l("span",wq,[v(a,{name:"open-in-new",size:"16"})])])]),_:1}),v(u,{category_name:"artwork",option_name:"use_artwork_source_coverartarchive"},{label:E(()=>[l("span",{textContent:g(e.$t("page.settings.artwork.coverartarchive"))},null,8,zq),l("a",kq,[l("span",xq,[v(a,{name:"open-in-new",size:"16"})])])]),_:1})]),_:1})])}var $q=re(mq,[["render",Eq]]);const Sq={name:"SettingsPageOnlineServices",components:{ContentWithHeading:st,TabsSettings:Xl},filters:{join(e){return e.join(", ")}},data(){return{lastfm_login:{user:"",password:"",errors:{user:"",password:"",error:""}}}},computed:{lastfm(){return this.$store.state.lastfm},spotify(){return this.$store.state.spotify},spotify_required_scope(){return this.spotify.webapi_required_scope?this.spotify.webapi_required_scope.split(" "):[]},spotify_missing_scope(){return this.spotify.webapi_token_valid&&this.spotify.webapi_granted_scope&&this.spotify.webapi_required_scope?this.spotify.webapi_required_scope.split(" ").filter(e=>this.spotify.webapi_granted_scope.indexOf(e)<0):[]}},methods:{logout_spotify(){N.spotify_logout()},login_lastfm(){N.lastfm_login(this.lastfm_login).then(e=>{this.lastfm_login.user="",this.lastfm_login.password="",this.lastfm_login.errors.user="",this.lastfm_login.errors.password="",this.lastfm_login.errors.error="",e.data.success||(this.lastfm_login.errors.user=e.data.errors.user,this.lastfm_login.errors.password=e.data.errors.password,this.lastfm_login.errors.error=e.data.errors.error)})},logoutLastfm(){N.lastfm_logout()}}},Aq={class:"fd-page-with-tabs"},Tq=["textContent"],Oq={key:0,class:"notification is-size-7"},Dq=["textContent"],Pq={key:1},Iq={class:"notification is-size-7"},Fq=["textContent"],Rq={class:"fd-has-margin-top"},Lq=["innerHTML"],Mq={key:0},Nq=["textContent"],Vq=["textContent"],Bq={key:1,class:"help is-danger"},Hq=["textContent"],Uq=["textContent"],jq={class:"field fd-has-margin-top"},qq={class:"control"},Wq=["href","textContent"],Gq={class:"help"},Kq=["textContent"],Zq=["textContent"],Yq={key:2,class:"field fd-has-margin-top"},Jq={class:"control"},Xq=["textContent"],Qq=["textContent"],eW={key:0,class:"notification is-size-7"},tW=["textContent"],nW={key:1},sW=["innerHTML"],rW={key:0},oW=["textContent"],iW={key:1},aW={class:"field is-grouped"},lW={class:"control is-expanded"},uW=["textContent"],cW={class:"control is-expanded"},dW=["textContent"],mW={class:"control"},fW=["textContent"],pW=["textContent"],hW=["textContent"];function _W(e,t,n,s,r,o){const i=$("tabs-settings"),a=$("content-with-heading");return z(),S("div",Aq,[v(i),v(a,null,{"heading-left":E(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.services.spotify.title"))},null,8,Tq)]),content:E(()=>[o.spotify.spotify_installed?H("",!0):(z(),S("div",Oq,[l("p",{textContent:g(e.$t("page.settings.services.spotify.no-support"))},null,8,Dq)])),o.spotify.spotify_installed?(z(),S("div",Pq,[l("div",Iq,[l("span",{textContent:g(e.$t("page.settings.services.spotify.requirements"))},null,8,Fq)]),l("div",Rq,[l("p",{class:"content",innerHTML:e.$t("page.settings.services.spotify.grant-access")},null,8,Lq),o.spotify.webapi_token_valid?(z(),S("p",Mq,[l("span",{textContent:g(e.$t("page.settings.services.spotify.user"))},null,8,Nq),l("code",{textContent:g(o.spotify.webapi_user)},null,8,Vq)])):H("",!0),o.spotify_missing_scope.length>0?(z(),S("p",Bq,[l("span",{textContent:g(e.$t("page.settings.services.spotify.reauthorize"))},null,8,Hq),l("code",{textContent:g(o.spotify_missing_scope.join())},null,8,Uq)])):H("",!0),l("div",jq,[l("div",qq,[l("a",{class:Ae(["button",{"is-info":!o.spotify.webapi_token_valid||o.spotify_missing_scope.length>0}]),href:o.spotify.oauth_uri,textContent:g(e.$t("page.settings.services.spotify.authorize"))},null,10,Wq)])]),l("p",Gq,[l("span",{textContent:g(e.$t("page.settings.services.spotify.scopes"))},null,8,Kq),l("code",{textContent:g(o.spotify_required_scope.join(", "))},null,8,Zq)]),o.spotify.webapi_token_valid?(z(),S("div",Yq,[l("div",Jq,[l("a",{class:"button is-danger",onClick:t[0]||(t[0]=(...u)=>o.logout_spotify&&o.logout_spotify(...u)),textContent:g(e.$t("page.settings.services.logout"))},null,8,Xq)])])):H("",!0)])])):H("",!0)]),_:1}),v(a,null,{"heading-left":E(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.services.lastfm.title"))},null,8,Qq)]),content:E(()=>[o.lastfm.enabled?H("",!0):(z(),S("div",eW,[l("p",{textContent:g(e.$t("page.settings.services.lastfm.no-support"))},null,8,tW)])),o.lastfm.enabled?(z(),S("div",nW,[l("p",{class:"content",innerHTML:e.$t("page.settings.services.lastfm.grant-access")},null,8,sW),o.lastfm.scrobbling_enabled?(z(),S("div",rW,[l("a",{class:"button",onClick:t[1]||(t[1]=(...u)=>o.logoutLastfm&&o.logoutLastfm(...u)),textContent:g(e.$t("page.settings.services.lastfm.stop-scrobbling"))},null,8,oW)])):H("",!0),o.lastfm.scrobbling_enabled?H("",!0):(z(),S("div",iW,[l("form",{onSubmit:t[4]||(t[4]=it((...u)=>o.login_lastfm&&o.login_lastfm(...u),["prevent"]))},[l("div",aW,[l("div",lW,[dt(l("input",{"onUpdate:modelValue":t[2]||(t[2]=u=>r.lastfm_login.user=u),class:"input",type:"text",placeholder:"Username"},null,512),[[It,r.lastfm_login.user]]),l("p",{class:"help is-danger",textContent:g(r.lastfm_login.errors.user)},null,8,uW)]),l("div",cW,[dt(l("input",{"onUpdate:modelValue":t[3]||(t[3]=u=>r.lastfm_login.password=u),class:"input",type:"password",placeholder:"Password"},null,512),[[It,r.lastfm_login.password]]),l("p",{class:"help is-danger",textContent:g(r.lastfm_login.errors.password)},null,8,dW)]),l("div",mW,[l("button",{class:"button is-info",type:"submit",textContent:g(e.$t("page.settings.services.login"))},null,8,fW)])]),l("p",{class:"help is-danger",textContent:g(r.lastfm_login.errors.error)},null,8,pW),l("p",{class:"help",textContent:g(e.$t("page.settings.services.lastfm.info"))},null,8,hW)],32)]))])):H("",!0)]),_:1})])}var gW=re(Sq,[["render",_W]]);const yW={name:"SettingsPageRemotesOutputs",components:{ContentWithHeading:st,TabsSettings:Xl},filters:{},data(){return{pairing_req:{pin:""},verification_req:{pin:""}}},computed:{pairing(){return this.$store.state.pairing},outputs(){return this.$store.state.outputs}},methods:{kickoff_pairing(){N.pairing_kickoff(this.pairing_req)},output_toggle(e){N.output_toggle(e)},kickoff_verification(e){N.output_update(e,this.verification_req)}}},vW={class:"fd-page-with-tabs"},bW=["textContent"],CW={key:0,class:"notification"},wW={class:"label has-text-weight-normal"},zW=["textContent"],kW=["textContent"],xW={class:"field is-grouped"},EW={class:"control"},$W={class:"control"},SW=["textContent"],AW={key:1,class:"content"},TW=["textContent"],OW=["textContent"],DW=["textContent"],PW={class:"field"},IW={class:"control"},FW={class:"checkbox"},RW=["onUpdate:modelValue","onChange"],LW=["textContent"],MW=["onSubmit"],NW={class:"field is-grouped"},VW={class:"control"},BW=["placeholder"],HW={class:"control"},UW=["textContent"];function jW(e,t,n,s,r,o){const i=$("tabs-settings"),a=$("content-with-heading");return z(),S("div",vW,[v(i),v(a,null,{"heading-left":E(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.devices.pairing"))},null,8,bW)]),content:E(()=>[o.pairing.active?(z(),S("div",CW,[l("form",{onSubmit:t[1]||(t[1]=it((...u)=>o.kickoff_pairing&&o.kickoff_pairing(...u),["prevent"]))},[l("label",wW,[l("span",{textContent:g(e.$t("page.settings.devices.pairing-request"))},null,8,zW),l("b",{textContent:g(o.pairing.remote)},null,8,kW)]),l("div",xW,[l("div",EW,[dt(l("input",{"onUpdate:modelValue":t[0]||(t[0]=u=>r.pairing_req.pin=u),class:"input",type:"text",placeholder:"Enter pairing code"},null,512),[[It,r.pairing_req.pin]])]),l("div",$W,[l("button",{class:"button is-info",type:"submit",textContent:g(e.$t("page.settings.devices.send"))},null,8,SW)])])],32)])):H("",!0),o.pairing.active?H("",!0):(z(),S("div",AW,[l("p",{textContent:g(e.$t("page.settings.devices.no-active-pairing"))},null,8,TW)]))]),_:1}),v(a,null,{"heading-left":E(()=>[l("div",{class:"title is-4",textContent:g(e.$t("page.settings.devices.speaker-pairing"))},null,8,OW)]),content:E(()=>[l("p",{class:"content",textContent:g(e.$t("page.settings.devices.speaker-pairing-info"))},null,8,DW),(z(!0),S(Oe,null,ht(o.outputs,u=>(z(),S("div",{key:u.id},[l("div",PW,[l("div",IW,[l("label",FW,[dt(l("input",{"onUpdate:modelValue":c=>u.selected=c,type:"checkbox",style:{"margin-right":"5px"},onChange:c=>o.output_toggle(u.id)},null,40,RW),[[gs,u.selected]]),l("span",{textContent:g(u.name)},null,8,LW)])])]),u.needs_auth_key?(z(),S("form",{key:0,class:"fd-has-margin-bottom",onSubmit:it(c=>o.kickoff_verification(u.id),["prevent"])},[l("div",NW,[l("div",VW,[dt(l("input",{"onUpdate:modelValue":t[2]||(t[2]=c=>r.verification_req.pin=c),class:"input",type:"text",placeholder:e.$t("page.settings.devices.verification-code")},null,8,BW),[[It,r.verification_req.pin]])]),l("div",HW,[l("button",{class:"button is-info",type:"submit",textContent:g(e.$t("page.settings.devices.verify"))},null,8,UW)])])],40,MW)):H("",!0)]))),128))]),_:1})])}var qW=re(yW,[["render",jW]]);const yv=Tk({history:Wz(),routes:[{path:"/",name:"PageQueue",component:uS},{path:"/about",name:"About",component:$9},{path:"/now-playing",name:"Now playing",component:ZT},{path:"/music",redirect:"/music/browse"},{path:"/music/browse",name:"Browse",component:C4,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/browse/recently_added",name:"Browse Recently Added",component:$4,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/browse/recently_played",name:"Browse Recently Played",component:P4,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/artists",name:"Artists",component:q5,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/artists/:artist_id",name:"Artist",component:aD,meta:{show_progress:!0,has_index:!0}},{path:"/music/artists/:artist_id/tracks",name:"Tracks",component:AI,meta:{show_progress:!0,has_index:!0}},{path:"/music/albums",name:"Albums",component:ED,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/albums/:album_id",name:"Album",component:XD,meta:{show_progress:!0}},{path:"/music/genres",name:"Genres",component:MP,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/genres/:genre",name:"Genre",component:JP,meta:{show_progress:!0,has_index:!0}},{path:"/music/genres/:genre/tracks",name:"GenreTracks",component:fI,meta:{show_progress:!0,has_index:!0}},{path:"/music/composers",name:"Composers",component:fF,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/composers/:composer/albums",name:"ComposerAlbums",component:EF,meta:{show_progress:!0,has_index:!0}},{path:"/music/composers/:composer/tracks",name:"ComposerTracks",component:HF,meta:{show_progress:!0,has_index:!0}},{path:"/podcasts",name:"Podcasts",component:xR,meta:{show_progress:!0}},{path:"/podcasts/:album_id",name:"Podcast",component:NR,meta:{show_progress:!0}},{path:"/audiobooks",redirect:"/audiobooks/artists"},{path:"/audiobooks/artists",name:"AudiobooksArtists",component:cL,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/audiobooks/artists/:artist_id",name:"AudiobooksArtist",component:bL,meta:{show_progress:!0}},{path:"/audiobooks/albums",name:"AudiobooksAlbums",component:rL,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/audiobooks/:album_id",name:"Audiobook",component:DL,meta:{show_progress:!0}},{path:"/radio",name:"Radio",component:vN,meta:{show_progress:!0}},{path:"/files",name:"Files",component:fN,meta:{show_progress:!0}},{path:"/playlists",redirect:"/playlists/0"},{path:"/playlists/:playlist_id",name:"Playlists",component:gM,meta:{show_progress:!0}},{path:"/playlists/:playlist_id/tracks",name:"Playlist",component:$M,meta:{show_progress:!0}},{path:"/search",redirect:"/search/library"},{path:"/search/library",name:"Search Library",component:P7},{path:"/music/spotify",name:"Spotify",component:GV,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/new-releases",name:"Spotify Browse New Releases",component:eB,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/featured-playlists",name:"Spotify Browse Featured Playlists",component:aB,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/artists/:artist_id",name:"Spotify Artist",component:GB,meta:{show_progress:!0}},{path:"/music/spotify/albums/:album_id",name:"Spotify Album",component:jH,meta:{show_progress:!0}},{path:"/music/spotify/playlists/:playlist_id",name:"Spotify Playlist",component:nU,meta:{show_progress:!0}},{path:"/search/spotify",name:"Spotify Search",component:YU},{path:"/settings/webinterface",name:"Settings Webinterface",component:dq},{path:"/settings/artwork",name:"Settings Artwork",component:$q},{path:"/settings/online-services",name:"Settings Online Services",component:gW},{path:"/settings/remotes-outputs",name:"Settings Remotes Outputs",component:qW}],scrollBehavior(e,t,n){return n?new Promise((r,o)=>{setTimeout(()=>{r(n)},0)}):e.path===t.path&&e.hash?{el:e.hash,top:120}:e.hash?new Promise((r,o)=>{setTimeout(()=>{r({el:e.hash,top:120})},0)}):e.meta.has_index?new Promise((r,o)=>{setTimeout(()=>{e.meta.has_tabs?r({el:"#top",top:140}):r({el:"#top",top:110})},0)}):{left:0,top:0}}});yv.beforeEach((e,t,n)=>{if(Ke.state.show_burger_menu){Ke.commit(Gr,!1),n(!1);return}if(Ke.state.show_player_menu){Ke.commit(Kr,!1),n(!1);return}n(!0)});var vv={exports:{}};(function(e){e.exports=function(t){var n={};function s(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,s),o.l=!0,o.exports}return s.m=t,s.c=n,s.d=function(r,o,i){s.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:i})},s.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},s.t=function(r,o){if(o&1&&(r=s(r)),o&8||o&4&&typeof r=="object"&&r&&r.__esModule)return r;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:r}),o&2&&typeof r!="string")for(var a in r)s.d(i,a,function(u){return r[u]}.bind(null,a));return i},s.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return s.d(o,"a",o),o},s.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},s.p="",s(s.s="fb15")}({8875:function(t,n,s){var r,o,i;(function(a,u){o=[],r=u,i=typeof r=="function"?r.apply(n,o):r,i!==void 0&&(t.exports=i)})(typeof self!="undefined"?self:this,function(){function a(){var u=Object.getOwnPropertyDescriptor(document,"currentScript");if(!u&&"currentScript"in document&&document.currentScript||u&&u.get!==a&&document.currentScript)return document.currentScript;try{throw new Error}catch(C){var c=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,d=/@([^@]*):(\d+):(\d+)\s*$/ig,f=c.exec(C.stack)||d.exec(C.stack),m=f&&f[1]||!1,p=f&&f[2]||!1,h=document.location.href.replace(document.location.hash,""),_,w,b,y=document.getElementsByTagName("script");m===h&&(_=document.documentElement.outerHTML,w=new RegExp("(?:[^\\n]+?\\n){0,"+(p-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),b=_.replace(w,"$1").trim());for(var k=0;k<y.length;k++)if(y[k].readyState==="interactive"||y[k].src===m||m===h&&y[k].innerHTML&&y[k].innerHTML.trim()===b)return y[k];return null}}return a})},"8bbf":function(t,n){t.exports=fy},fb15:function(t,n,s){if(s.r(n),typeof window!="undefined"){var r=window.document.currentScript;{var o=s("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o})}var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(s.p=i[1])}var a=s("8bbf");function u(h,_,w,b,y,k){return Object(a.openBlock)(),Object(a.createBlock)("div",{style:b.finalStyle},null,4)}var c=typeof window!="undefined",d={name:"VueProgress",serverCacheKey:function(){return"Progress"},setup:function(){var _=c?Object(a.inject)("RADON_LOADING_BAR"):{percent:0,options:{canSuccess:!0,show:!1,color:"rgb(19, 91, 55)",failedColor:"red",thickness:"2px",transition:{speed:"0.2s",opacity:"0.6s",termination:300},location:"top",autoRevert:!0,inverse:!1}},w=Object(a.computed)(function(){var b=_.options,y=!!b.show,k=b.location,C={"z-index":999999,"background-color":b.canSuccess?b.color:b.failedColor,opacity:b.show?1:0,position:b.position};return k==="top"||k==="bottom"?(k==="top"?C.top="0px":C.bottom="0px",b.inverse?C.right="0px":C.left="0px",C.width=_.percent+"%",C.height=b.thickness,C.transition=(y?"width "+b.transition.speed+", ":"")+"opacity "+b.transition.opacity):(k==="left"||k==="right")&&(k==="left"?C.left="0px":C.right="0px",b.inverse?C.top="0px":C.bottom="0px",C.height=_.percent+"%",C.width=b.thickness,C.transition=(y?"height "+b.transition.speed+", ":"")+"opacity "+b.transition.opacity),C});return{progress:_,finalStyle:w}}};d.render=u;var f=d;function m(h,_){for(var w=1,b,y;w<arguments.length;++w){y=arguments[w];for(b in y)Object.prototype.hasOwnProperty.call(y,b)&&(h[b]=y[b])}return h}var p={install:function(_,w){var b={canSuccess:!0,show:!1,color:"#73ccec",position:"fixed",failedColor:"red",thickness:"2px",transition:{speed:"0.2s",opacity:"0.6s",termination:300},autoRevert:!0,location:"top",inverse:!1,autoFinish:!0},y=m(b,w),k=Object(a.reactive)({percent:0,options:y});_.provide("RADON_LOADING_BAR",k);var C={state:{tFailColor:"",tColor:"",timer:null,cut:0},start:function(T){var L=this;T||(T=3e3),k.percent=0,k.options.show=!0,k.options.canSuccess=!0,this.state.cut=1e4/Math.floor(T),clearInterval(this.state.timer),this.state.timer=setInterval(function(){L.increase(L.state.cut*Math.random()),k.percent>95&&k.options.autoFinish&&L.finish()},100)},set:function(T){k.options.show=!0,k.options.canSuccess=!0,k.percent=Math.floor(T)},get:function(){return Math.floor(k.percent)},increase:function(T){k.percent=Math.min(99,k.percent+Math.floor(T))},decrease:function(T){k.percent=k.percent-Math.floor(T)},hide:function(){var T=this;clearInterval(this.state.timer),this.state.timer=null,setTimeout(function(){k.options.show=!1,Object(a.nextTick)(function(){setTimeout(function(){k.percent=0},100),k.options.autoRevert&&setTimeout(function(){T.revert()},300)})},k.options.transition.termination)},pause:function(){clearInterval(this.state.timer)},finish:function(){k.percent=100,this.hide()},fail:function(){k.options.canSuccess=!1,k.percent=100,this.hide()},setFailColor:function(T){k.options.failedColor=T},setColor:function(T){k.options.color=T},setLocation:function(T){k.options.location=T},setTransition:function(T){k.options.transition=T},tempFailColor:function(T){this.state.tFailColor=k.options.failedColor,k.options.failedColor=T},tempColor:function(T){this.state.tColor=k.options.color,k.options.color=T},tempLocation:function(T){this.state.tLocation=k.options.location,k.options.location=T},tempTransition:function(T){this.state.tTransition=k.options.transition,k.options.transition=T},revertColor:function(){k.options.color=this.state.tColor,this.state.tColor=""},revertFailColor:function(){k.options.failedColor=this.state.tFailColor,this.state.tFailColor=""},revertLocation:function(){k.options.location=this.state.tLocation,this.state.tLocation=""},revertTransition:function(){k.options.transition=this.state.tTransition,this.state.tTransition={}},revert:function(){k.options.autoRevert&&(this.state.tColor&&this.revertColor(),this.state.tFailColor&&this.revertFailColor(),this.state.tLocation&&this.revertLocation(),this.state.tTransition&&(this.state.tTransition.speed!==void 0||this.state.tTransition.opacity!==void 0)&&this.revertTransition())},parseMeta:function(T){for(var L in T.func){var I=T.func[L];switch(I.call){case"color":switch(I.modifier){case"set":this.setColor(I.argument);break;case"temp":this.tempColor(I.argument);break}break;case"fail":switch(I.modifier){case"set":this.setFailColor(I.argument);break;case"temp":this.tempFailColor(I.argument);break}break;case"location":switch(I.modifier){case"set":this.setLocation(I.argument);break;case"temp":this.tempLocation(I.argument);break}break;case"transition":switch(I.modifier){case"set":this.setTransition(I.argument);break;case"temp":this.tempTransition(I.argument);break}break}}}};_.component("vue-progress-bar",f),_.config.globalProperties.$Progress=C}};n.default=p}})})(vv);var WW=ly(vv.exports);const bv=function(){return document.ontouchstart!==null?"click":"touchstart"},cl="__vue_click_away__",Cv=function(e,t,n){wv(e);let s=n.context,r=t.value,o=!1;setTimeout(function(){o=!0},0),e[cl]=function(i){if((!e||!e.contains(i.target))&&r&&o&&typeof r=="function")return r.call(s,i)},document.addEventListener(bv(),e[cl],!1)},wv=function(e){document.removeEventListener(bv(),e[cl],!1),delete e[cl]},GW=function(e,t,n){t.value!==t.oldValue&&Cv(e,t,n)},KW={install:function(e){e.directive("click-away",ZW)}},ZW={mounted:Cv,updated:GW,unmounted:wv};var Zn=(e=>(e.LOADING="loading",e.LOADED="loaded",e.ERROR="error",e))(Zn||{});const YW=typeof window!="undefined"&&window!==null,JW=tG(),XW=Object.prototype.propertyIsEnumerable,Op=Object.getOwnPropertySymbols;function Jo(e){return typeof e=="function"||toString.call(e)==="[object Object]"}function QW(e){return typeof e=="object"?e===null:typeof e!="function"}function eG(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function tG(){return YW&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}}),!0):!1}function nG(e,...t){if(!Jo(e))throw new TypeError("expected the first argument to be an object");if(t.length===0||typeof Symbol!="function"||typeof Op!="function")return e;for(const n of t){const s=Op(n);for(const r of s)XW.call(n,r)&&(e[r]=n[r])}return e}function zv(e,...t){let n=0;for(QW(e)&&(e=t[n++]),e||(e={});n<t.length;n++)if(Jo(t[n])){for(const s of Object.keys(t[n]))eG(s)&&(Jo(e[s])&&Jo(t[n][s])?zv(e[s],t[n][s]):e[s]=t[n][s]);nG(e,t[n])}return e}const Dp="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",sG="",rG={rootMargin:"0px",threshold:0},xr="data-lazy-timeout-id";class oG{constructor(t){this.options={loading:Dp,error:sG,observerOptions:rG,log:!0,lifecycle:{}},this._images=new WeakMap,this.config(t)}config(t={}){zv(this.options,t)}mount(t,n){if(!t)return;const{src:s,loading:r,error:o,lifecycle:i,delay:a}=this._valueFormatter(typeof n=="string"?n:n.value);this._lifecycle(Zn.LOADING,i,t),t.setAttribute("src",r||Dp),JW||(this.loadImages(t,s,o,i),this._log(()=>{throw new Error("Not support IntersectionObserver!")})),this._initIntersectionObserver(t,s,o,i,a)}update(t,n){var a;if(!t)return;(a=this._realObserver(t))==null||a.unobserve(t);const{src:s,error:r,lifecycle:o,delay:i}=this._valueFormatter(typeof n=="string"?n:n.value);this._initIntersectionObserver(t,s,r,o,i)}unmount(t){var n;!t||((n=this._realObserver(t))==null||n.unobserve(t),this._images.delete(t))}loadImages(t,n,s,r){this._setImageSrc(t,n,s,r)}_setImageSrc(t,n,s,r){t.tagName.toLowerCase()==="img"?(n&&t.getAttribute("src")!==n&&t.setAttribute("src",n),this._listenImageStatus(t,()=>{this._lifecycle(Zn.LOADED,r,t)},()=>{var o;t.onload=null,this._lifecycle(Zn.ERROR,r,t),(o=this._realObserver(t))==null||o.disconnect(),s&&t.getAttribute("src")!==s&&t.setAttribute("src",s),this._log(()=>{throw new Error(`Image failed to load!And failed src was: ${n} `)})})):t.style.backgroundImage=`url('${n}')`}_initIntersectionObserver(t,n,s,r,o){var a;const i=this.options.observerOptions;this._images.set(t,new IntersectionObserver(u=>{Array.prototype.forEach.call(u,c=>{o&&o>0?this._delayedIntersectionCallback(t,c,o,n,s,r):this._intersectionCallback(t,c,n,s,r)})},i)),(a=this._realObserver(t))==null||a.observe(t)}_intersectionCallback(t,n,s,r,o){var i;n.isIntersecting&&((i=this._realObserver(t))==null||i.unobserve(n.target),this._setImageSrc(t,s,r,o))}_delayedIntersectionCallback(t,n,s,r,o,i){if(n.isIntersecting){if(n.target.hasAttribute(xr))return;const a=setTimeout(()=>{this._intersectionCallback(t,n,r,o,i),n.target.removeAttribute(xr)},s);n.target.setAttribute(xr,String(a))}else n.target.hasAttribute(xr)&&(clearTimeout(Number(n.target.getAttribute(xr))),n.target.removeAttribute(xr))}_listenImageStatus(t,n,s){t.onload=n,t.onerror=s}_valueFormatter(t){let n=t,s=this.options.loading,r=this.options.error,o=this.options.lifecycle,i=this.options.delay;return Jo(t)&&(n=t.src,s=t.loading||this.options.loading,r=t.error||this.options.error,o=t.lifecycle||this.options.lifecycle,i=t.delay||this.options.delay),{src:n,loading:s,error:r,lifecycle:o,delay:i}}_log(t){this.options.log&&t()}_lifecycle(t,n,s){switch(t){case Zn.LOADING:s==null||s.setAttribute("lazy",Zn.LOADING),n!=null&&n.loading&&n.loading(s);break;case Zn.LOADED:s==null||s.setAttribute("lazy",Zn.LOADED),n!=null&&n.loaded&&n.loaded(s);break;case Zn.ERROR:s==null||s.setAttribute("lazy",Zn.ERROR),n!=null&&n.error&&n.error(s);break}}_realObserver(t){return this._images.get(t)}}const iG={install(e,t){const n=new oG(t);e.config.globalProperties.$Lazyload=n,e.provide("Lazyload",n),e.directive("lazy",{mounted:n.mount.bind(n),updated:n.update.bind(n),unmounted:n.unmount.bind(n)})}};var kv={exports:{}};/*!
|
|
* vue-scrollto v2.20.0
|
|
* (c) 2019 Randjelovic Igor
|
|
* @license MIT
|
|
*/(function(e,t){(function(n,s){e.exports=s()})(Qt,function(){function n(ce){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(W){return typeof W}:n=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},n(ce)}function s(){return s=Object.assign||function(ce){for(var W=1;W<arguments.length;W++){var fe=arguments[W];for(var De in fe)Object.prototype.hasOwnProperty.call(fe,De)&&(ce[De]=fe[De])}return ce},s.apply(this,arguments)}var r=4,o=.001,i=1e-7,a=10,u=11,c=1/(u-1),d=typeof Float32Array=="function";function f(ce,W){return 1-3*W+3*ce}function m(ce,W){return 3*W-6*ce}function p(ce){return 3*ce}function h(ce,W,fe){return((f(W,fe)*ce+m(W,fe))*ce+p(W))*ce}function _(ce,W,fe){return 3*f(W,fe)*ce*ce+2*m(W,fe)*ce+p(W)}function w(ce,W,fe,De,Me){var Ee,V,le=0;do V=W+(fe-W)/2,Ee=h(V,De,Me)-ce,Ee>0?fe=V:W=V;while(Math.abs(Ee)>i&&++le<a);return V}function b(ce,W,fe,De){for(var Me=0;Me<r;++Me){var Ee=_(W,fe,De);if(Ee===0)return W;var V=h(W,fe,De)-ce;W-=V/Ee}return W}function y(ce){return ce}var k=function(W,fe,De,Me){if(!(0<=W&&W<=1&&0<=De&&De<=1))throw new Error("bezier x values must be in [0, 1] range");if(W===fe&&De===Me)return y;for(var Ee=d?new Float32Array(u):new Array(u),V=0;V<u;++V)Ee[V]=h(V*c,W,De);function le(ne){for(var pe=0,Pe=1,A=u-1;Pe!==A&&Ee[Pe]<=ne;++Pe)pe+=c;--Pe;var O=(ne-Ee[Pe])/(Ee[Pe+1]-Ee[Pe]),P=pe+O*c,K=_(P,W,De);return K>=o?b(ne,P,W,De):K===0?P:w(ne,pe,pe+c,W,De)}return function(pe){return pe===0?0:pe===1?1:h(le(pe),fe,Me)}},C={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},x=!1;try{var T=Object.defineProperty({},"passive",{get:function(){x=!0}});window.addEventListener("test",null,T)}catch{}var L={$:function(W){return typeof W!="string"?W:document.querySelector(W)},on:function(W,fe,De){var Me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{passive:!1};fe instanceof Array||(fe=[fe]);for(var Ee=0;Ee<fe.length;Ee++)W.addEventListener(fe[Ee],De,x?Me:!1)},off:function(W,fe,De){fe instanceof Array||(fe=[fe]);for(var Me=0;Me<fe.length;Me++)W.removeEventListener(fe[Me],De)},cumulativeOffset:function(W){var fe=0,De=0;do fe+=W.offsetTop||0,De+=W.offsetLeft||0,W=W.offsetParent;while(W);return{top:fe,left:De}}},I=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],D={container:"body",duration:500,lazy:!0,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0};function j(ce){D=s({},D,ce)}var Z=function(){var W,fe,De,Me,Ee,V,le,ne,pe,Pe,A,O,P,K,J,ee,de,ae,oe,Y,R,B,ge,we=function(xe){!ne||(ge=xe,Y=!0)},Re,qe,Be,F;function M(Ge){var xe=Ge.scrollTop;return Ge.tagName.toLowerCase()==="body"&&(xe=xe||document.documentElement.scrollTop),xe}function G(Ge){var xe=Ge.scrollLeft;return Ge.tagName.toLowerCase()==="body"&&(xe=xe||document.documentElement.scrollLeft),xe}function se(){R=L.cumulativeOffset(fe),B=L.cumulativeOffset(W),O&&(J=B.left-R.left+V,ae=J-K),P&&(de=B.top-R.top+V,oe=de-ee)}function ve(Ge){if(Y)return Ie();qe||(qe=Ge),Ee||se(),Be=Ge-qe,F=Math.min(Be/De,1),F=Re(F),Te(fe,ee+oe*F,K+ae*F),Be<De?window.requestAnimationFrame(ve):Ie()}function Ie(){Y||Te(fe,de,J),qe=!1,L.off(fe,I,we),Y&&A&&A(ge,W),!Y&&Pe&&Pe(W)}function Te(Ge,xe,ue){P&&(Ge.scrollTop=xe),O&&(Ge.scrollLeft=ue),Ge.tagName.toLowerCase()==="body"&&(P&&(document.documentElement.scrollTop=xe),O&&(document.documentElement.scrollLeft=ue))}function He(Ge,xe){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n(xe)==="object"?ue=xe:typeof xe=="number"&&(ue.duration=xe),W=L.$(Ge),!W)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+Ge);if(fe=L.$(ue.container||D.container),De=ue.hasOwnProperty("duration")?ue.duration:D.duration,Ee=ue.hasOwnProperty("lazy")?ue.lazy:D.lazy,Me=ue.easing||D.easing,V=ue.hasOwnProperty("offset")?ue.offset:D.offset,le=ue.hasOwnProperty("force")?ue.force!==!1:D.force,ne=ue.hasOwnProperty("cancelable")?ue.cancelable!==!1:D.cancelable,pe=ue.onStart||D.onStart,Pe=ue.onDone||D.onDone,A=ue.onCancel||D.onCancel,O=ue.x===void 0?D.x:ue.x,P=ue.y===void 0?D.y:ue.y,typeof V=="function"&&(V=V(W,fe)),K=G(fe),ee=M(fe),se(),Y=!1,!le){var Fe=fe.tagName.toLowerCase()==="body"?document.documentElement.clientHeight||window.innerHeight:fe.offsetHeight,Ze=ee,Qe=Ze+Fe,Bt=de-V,mo=Bt+W.offsetHeight;if(Bt>=Ze&&mo<=Qe){Pe&&Pe(W);return}}if(pe&&pe(W),!oe&&!ae){Pe&&Pe(W);return}return typeof Me=="string"&&(Me=C[Me]||C.ease),Re=k.apply(k,Me),L.on(fe,I,we,{passive:!0}),window.requestAnimationFrame(ve),function(){ge=null,Y=!0}}return He},X=Z(),U=[];function q(ce){for(var W=0;W<U.length;++W)if(U[W].el===ce)return U.splice(W,1),!0;return!1}function Ce(ce){for(var W=0;W<U.length;++W)if(U[W].el===ce)return U[W]}function te(ce){var W=Ce(ce);return W||(U.push(W={el:ce,binding:{}}),W)}function ie(ce){var W=te(this).binding;if(!!W.value){if(ce.preventDefault(),typeof W.value=="string")return X(W.value);X(W.value.el||W.value.element,W.value)}}var ye={bind:function(W,fe){te(W).binding=fe,L.on(W,"click",ie)},unbind:function(W){q(W),L.off(W,"click",ie)},update:function(W,fe){te(W).binding=fe}},je={bind:ye.bind,unbind:ye.unbind,update:ye.update,beforeMount:ye.bind,unmounted:ye.unbind,updated:ye.update,scrollTo:X,bindings:U},at=function(W,fe){fe&&j(fe),W.directive("scroll-to",je);var De=W.config.globalProperties||W.prototype;De.$scrollTo=je.scrollTo};return typeof window!="undefined"&&window.Vue&&(window.VueScrollTo=je,window.VueScrollTo.setDefaults=j,window.VueScrollTo.scroller=Z,window.Vue.use&&window.Vue.use(at)),je.install=at,je})})(kv);var aG=kv.exports;const lG={title:[String],spin:[Boolean],width:[Number,String],height:[Number,String],ariaLabel:[String],staticClass:[String],class:[String],name:{type:String,required:!0,default:"alert"},size:{type:[Number,String],default:24},viewBox:{type:String,default:"0 0 24 24"},xmlns:{type:String,default:"http://www.w3.org/2000/svg"},role:{type:String,default:"img"},spin:{type:Boolean,default:!1}};const uG=e=>e.charAt(0).toUpperCase()+e.slice(1),cG=e=>e.split("-").map(uG).join(""),dG=(e,t,n)=>{const s=e[`mdi${cG(t.name)}`]||A8,r={role:t.role,"aria-label":t.ariaLabel,...n},o={fill:"currentColor",width:t.width||t.size,height:t.height||t.size,viewBox:t.viewBox,xmlns:t.xmlns};return{spanAttrs:r,svgAttrs:o,pathAttrs:{d:s}}},mG=(e,t)=>({[t.staticClass||""]:!0,[t.class||""]:!0,[`mdi mdi-${e.name}`]:!0,"mdi-spin":e.spin===!0}),fG=(e,t={})=>({install(n,{icons:s}){if(s===void 0)throw new Error("Icons must be provided separately");n.component("mdicon",{name:"MDIcon",props:lG,...t,render:e(s)})}}),pG=e=>function(){const{spanAttrs:n,svgAttrs:s,pathAttrs:r}=dG(e,this,this.$attrs);return Qn("span",{...n,class:mG(this,this)},[Qn("svg",s,[this.title?Qn("title",[this.title]):void 0,Qn("path",r)])])};var hG=fG(pG);class yr extends Error{}class _G extends yr{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class gG extends yr{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class yG extends yr{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Io extends yr{}class xv extends yr{constructor(t){super(`Invalid unit ${t}`)}}class En extends yr{}class $s extends yr{constructor(){super("Zone is an abstract class")}}const _e="numeric",jn="short",bn="long",dl={year:_e,month:_e,day:_e},Ev={year:_e,month:jn,day:_e},vG={year:_e,month:jn,day:_e,weekday:jn},$v={year:_e,month:bn,day:_e},Sv={year:_e,month:bn,day:_e,weekday:bn},Av={hour:_e,minute:_e},Tv={hour:_e,minute:_e,second:_e},Ov={hour:_e,minute:_e,second:_e,timeZoneName:jn},Dv={hour:_e,minute:_e,second:_e,timeZoneName:bn},Pv={hour:_e,minute:_e,hourCycle:"h23"},Iv={hour:_e,minute:_e,second:_e,hourCycle:"h23"},Fv={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:jn},Rv={hour:_e,minute:_e,second:_e,hourCycle:"h23",timeZoneName:bn},Lv={year:_e,month:_e,day:_e,hour:_e,minute:_e},Mv={year:_e,month:_e,day:_e,hour:_e,minute:_e,second:_e},Nv={year:_e,month:jn,day:_e,hour:_e,minute:_e},Vv={year:_e,month:jn,day:_e,hour:_e,minute:_e,second:_e},bG={year:_e,month:jn,day:_e,weekday:jn,hour:_e,minute:_e},Bv={year:_e,month:bn,day:_e,hour:_e,minute:_e,timeZoneName:jn},Hv={year:_e,month:bn,day:_e,hour:_e,minute:_e,second:_e,timeZoneName:jn},Uv={year:_e,month:bn,day:_e,weekday:bn,hour:_e,minute:_e,timeZoneName:bn},jv={year:_e,month:bn,day:_e,weekday:bn,hour:_e,minute:_e,second:_e,timeZoneName:bn};class Si{get type(){throw new $s}get name(){throw new $s}get ianaName(){return this.name}get isUniversal(){throw new $s}offsetName(t,n){throw new $s}formatOffset(t,n){throw new $s}offset(t){throw new $s}equals(t){throw new $s}get isValid(){throw new $s}}let Iu=null;class Ql extends Si{static get instance(){return Iu===null&&(Iu=new Ql),Iu}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:s}){return Wv(t,n,s)}formatOffset(t,n){return Qo(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let ja={};function CG(e){return ja[e]||(ja[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ja[e]}const wG={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function zG(e,t){const n=e.format(t).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,o,i,a,u,c,d]=s;return[i,r,o,a,u,c,d]}function kG(e,t){const n=e.formatToParts(t),s=[];for(let r=0;r<n.length;r++){const{type:o,value:i}=n[r],a=wG[o];o==="era"?s[a]=i:tt(a)||(s[a]=parseInt(i,10))}return s}let $a={};class ys extends Si{static create(t){return $a[t]||($a[t]=new ys(t)),$a[t]}static resetCache(){$a={},ja={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=ys.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:s}){return Wv(t,n,s,this.name)}formatOffset(t,n){return Qo(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const s=CG(this.name);let[r,o,i,a,u,c,d]=s.formatToParts?kG(s,n):zG(s,n);a==="BC"&&(r=-Math.abs(r)+1);const m=mm({year:r,month:o,day:i,hour:u===24?0:u,minute:c,second:d,millisecond:0});let p=+n;const h=p%1e3;return p-=h>=0?h:1e3+h,(m-p)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Pp={};function xG(e,t={}){const n=JSON.stringify([e,t]);let s=Pp[n];return s||(s=new Intl.ListFormat(e,t),Pp[n]=s),s}let Vc={};function Bc(e,t={}){const n=JSON.stringify([e,t]);let s=Vc[n];return s||(s=new Intl.DateTimeFormat(e,t),Vc[n]=s),s}let Hc={};function EG(e,t={}){const n=JSON.stringify([e,t]);let s=Hc[n];return s||(s=new Intl.NumberFormat(e,t),Hc[n]=s),s}let Uc={};function $G(e,t={}){const{base:n,...s}=t,r=JSON.stringify([e,s]);let o=Uc[r];return o||(o=new Intl.RelativeTimeFormat(e,t),Uc[r]=o),o}let Fo=null;function SG(){return Fo||(Fo=new Intl.DateTimeFormat().resolvedOptions().locale,Fo)}function AG(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let s,r;try{s=Bc(e).resolvedOptions(),r=e}catch{const u=e.substring(0,n);s=Bc(u).resolvedOptions(),r=u}const{numberingSystem:o,calendar:i}=s;return[r,o,i]}}function TG(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function OG(e){const t=[];for(let n=1;n<=12;n++){const s=Ve.utc(2016,n,1);t.push(e(s))}return t}function DG(e){const t=[];for(let n=1;n<=7;n++){const s=Ve.utc(2016,11,13+n);t.push(e(s))}return t}function Sa(e,t,n,s,r){const o=e.listingMode(n);return o==="error"?null:o==="en"?s(t):r(t)}function PG(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class IG{constructor(t,n,s){this.padTo=s.padTo||0,this.floor=s.floor||!1;const{padTo:r,floor:o,...i}=s;if(!n||Object.keys(i).length>0){const a={useGrouping:!1,...s};s.padTo>0&&(a.minimumIntegerDigits=s.padTo),this.inf=EG(t,a)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):dm(t,3);return Ot(n,this.padTo)}}}class FG{constructor(t,n,s){this.opts=s,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const i=-1*(t.offset/60),a=i>=0?`Etc/GMT+${i}`:`Etc/GMT${i}`;t.offset!==0&&ys.create(a).valid?(r=a,this.dt=t):(r="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const o={...this.opts};o.timeZone=o.timeZone||r,this.dtf=Bc(n,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const s=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:s}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class RG{constructor(t,n,s){this.opts={style:"long",...s},!n&&qv()&&(this.rtf=$G(t,s))}format(t,n){return this.rtf?this.rtf.format(t,n):QG(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class vt{static fromOpts(t){return vt.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,s,r=!1){const o=t||Tt.defaultLocale,i=o||(r?"en-US":SG()),a=n||Tt.defaultNumberingSystem,u=s||Tt.defaultOutputCalendar;return new vt(i,a,u,o)}static resetCache(){Fo=null,Vc={},Hc={},Uc={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:s}={}){return vt.create(t,n,s)}constructor(t,n,s,r){const[o,i,a]=AG(t);this.locale=o,this.numberingSystem=n||i||null,this.outputCalendar=s||a||null,this.intl=TG(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=PG(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:vt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1,s=!0){return Sa(this,t,s,Zv,()=>{const r=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=OG(i=>this.extract(i,r,"month"))),this.monthsCache[o][t]})}weekdays(t,n=!1,s=!0){return Sa(this,t,s,Xv,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=n?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=DG(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[o][t]})}meridiems(t=!0){return Sa(this,void 0,t,()=>Qv,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ve.utc(2016,11,13,9),Ve.utc(2016,11,13,19)].map(s=>this.extract(s,n,"dayperiod"))}return this.meridiemCache})}eras(t,n=!0){return Sa(this,t,n,e1,()=>{const s={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ve.utc(-40,1,1),Ve.utc(2017,1,1)].map(r=>this.extract(r,s,"era"))),this.eraCache[t]})}extract(t,n,s){const r=this.dtFormatter(t,n),o=r.formatToParts(),i=o.find(a=>a.type.toLowerCase()===s);return i?i.value:null}numberFormatter(t={}){return new IG(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new FG(t,this.intl,n)}relFormatter(t={}){return new RG(this.intl,this.isEnglish(),t)}listFormatter(t={}){return xG(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let Fu=null;class en extends Si{static get utcInstance(){return Fu===null&&(Fu=new en(0)),Fu}static instance(t){return t===0?en.utcInstance:new en(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new en(tu(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Qo(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Qo(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Qo(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class LG extends Si{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Fs(e,t){if(tt(e)||e===null)return t;if(e instanceof Si)return e;if(MG(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Ql.instance:n==="utc"||n==="gmt"?en.utcInstance:en.parseSpecifier(n)||ys.create(e)}else return ur(e)?en.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new LG(e)}let Ip=()=>Date.now(),Fp="system",Rp=null,Lp=null,Mp=null,Np=60,Vp;class Tt{static get now(){return Ip}static set now(t){Ip=t}static set defaultZone(t){Fp=t}static get defaultZone(){return Fs(Fp,Ql.instance)}static get defaultLocale(){return Rp}static set defaultLocale(t){Rp=t}static get defaultNumberingSystem(){return Lp}static set defaultNumberingSystem(t){Lp=t}static get defaultOutputCalendar(){return Mp}static set defaultOutputCalendar(t){Mp=t}static get twoDigitCutoffYear(){return Np}static set twoDigitCutoffYear(t){Np=t%100}static get throwOnInvalid(){return Vp}static set throwOnInvalid(t){Vp=t}static resetCaches(){vt.resetCache(),ys.resetCache()}}function tt(e){return typeof e=="undefined"}function ur(e){return typeof e=="number"}function eu(e){return typeof e=="number"&&e%1===0}function MG(e){return typeof e=="string"}function NG(e){return Object.prototype.toString.call(e)==="[object Date]"}function qv(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function VG(e){return Array.isArray(e)?e:[e]}function Bp(e,t,n){if(e.length!==0)return e.reduce((s,r)=>{const o=[t(r),r];return s&&n(s[0],o[0])===s[0]?s:o},null)[1]}function BG(e,t){return t.reduce((n,s)=>(n[s]=e[s],n),{})}function Qr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ms(e,t,n){return eu(e)&&e>=t&&e<=n}function HG(e,t){return e-t*Math.floor(e/t)}function Ot(e,t=2){const n=e<0;let s;return n?s="-"+(""+-e).padStart(t,"0"):s=(""+e).padStart(t,"0"),s}function Ps(e){if(!(tt(e)||e===null||e===""))return parseInt(e,10)}function Xs(e){if(!(tt(e)||e===null||e===""))return parseFloat(e)}function cm(e){if(!(tt(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function dm(e,t,n=!1){const s=10**t;return(n?Math.trunc:Math.round)(e*s)/s}function Ai(e){return e%4===0&&(e%100!==0||e%400===0)}function Xo(e){return Ai(e)?366:365}function ml(e,t){const n=HG(t-1,12)+1,s=e+(t-n)/12;return n===2?Ai(s)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function mm(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function fl(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,s=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||s===3?53:52}function jc(e){return e>99?e:e>Tt.twoDigitCutoffYear?1900+e:2e3+e}function Wv(e,t,n,s=null){const r=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(o.timeZone=s);const i={timeZoneName:t,...o},a=new Intl.DateTimeFormat(n,i).formatToParts(r).find(u=>u.type.toLowerCase()==="timezonename");return a?a.value:null}function tu(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const s=parseInt(t,10)||0,r=n<0||Object.is(n,-0)?-s:s;return n*60+r}function Gv(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new En(`Invalid unit value ${e}`);return t}function pl(e,t){const n={};for(const s in e)if(Qr(e,s)){const r=e[s];if(r==null)continue;n[t(s)]=Gv(r)}return n}function Qo(e,t){const n=Math.trunc(Math.abs(e/60)),s=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${Ot(n,2)}:${Ot(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${Ot(n,2)}${Ot(s,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function nu(e){return BG(e,["hour","minute","second","millisecond"])}const UG=["January","February","March","April","May","June","July","August","September","October","November","December"],Kv=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],jG=["J","F","M","A","M","J","J","A","S","O","N","D"];function Zv(e){switch(e){case"narrow":return[...jG];case"short":return[...Kv];case"long":return[...UG];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Yv=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Jv=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],qG=["M","T","W","T","F","S","S"];function Xv(e){switch(e){case"narrow":return[...qG];case"short":return[...Jv];case"long":return[...Yv];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Qv=["AM","PM"],WG=["Before Christ","Anno Domini"],GG=["BC","AD"],KG=["B","A"];function e1(e){switch(e){case"narrow":return[...KG];case"short":return[...GG];case"long":return[...WG];default:return null}}function ZG(e){return Qv[e.hour<12?0:1]}function YG(e,t){return Xv(t)[e.weekday-1]}function JG(e,t){return Zv(t)[e.month-1]}function XG(e,t){return e1(t)[e.year<0?0:1]}function QG(e,t,n="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&o){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${r[e][0]}`;case-1:return f?"yesterday":`last ${r[e][0]}`;case 0:return f?"today":`this ${r[e][0]}`}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),u=a===1,c=r[e],d=s?u?c[1]:c[2]||c[1]:u?r[e][0]:e;return i?`${a} ${d} ago`:`in ${a} ${d}`}function Hp(e,t){let n="";for(const s of e)s.literal?n+=s.val:n+=t(s.val);return n}const eK={D:dl,DD:Ev,DDD:$v,DDDD:Sv,t:Av,tt:Tv,ttt:Ov,tttt:Dv,T:Pv,TT:Iv,TTT:Fv,TTTT:Rv,f:Lv,ff:Nv,fff:Bv,ffff:Uv,F:Mv,FF:Vv,FFF:Hv,FFFF:jv};class Kt{static create(t,n={}){return new Kt(t,n)}static parseFormat(t){let n=null,s="",r=!1;const o=[];for(let i=0;i<t.length;i++){const a=t.charAt(i);a==="'"?(s.length>0&&o.push({literal:r||/^\s+$/.test(s),val:s}),n=null,s="",r=!r):r||a===n?s+=a:(s.length>0&&o.push({literal:/^\s+$/.test(s),val:s}),s=a,n=a)}return s.length>0&&o.push({literal:r||/^\s+$/.test(s),val:s}),o}static macroTokenToFormatOpts(t){return eK[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}formatDateTime(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n}).format()}formatDateTimeParts(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n}).formatToParts()}formatInterval(t,n={}){return this.loc.dtFormatter(t.start,{...this.opts,...n}).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n}).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return Ot(t,n);const s={...this.opts};return n>0&&(s.padTo=n),this.loc.numberFormatter(s).format(t)}formatDateTimeFromString(t,n){const s=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(p,h)=>this.loc.extract(t,p,h),i=p=>t.isOffsetFixed&&t.offset===0&&p.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,p.format):"",a=()=>s?ZG(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(p,h)=>s?JG(t,p):o(h?{month:p}:{month:p,day:"numeric"},"month"),c=(p,h)=>s?YG(t,p):o(h?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),d=p=>{const h=Kt.macroTokenToFormatOpts(p);return h?this.formatWithSystemDefault(t,h):p},f=p=>s?XG(t,p):o({era:p},"era"),m=p=>{switch(p){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return r?o({day:"numeric"},"day"):this.num(t.day);case"dd":return r?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return r?o({month:"numeric"},"month"):this.num(t.month);case"MM":return r?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return r?o({year:"numeric"},"year"):this.num(t.year);case"yy":return r?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(p)}};return Hp(Kt.parseFormat(n),m)}formatDurationFromString(t,n){const s=u=>{switch(u[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=u=>c=>{const d=s(c);return d?this.num(u.get(d),c.length):c},o=Kt.parseFormat(n),i=o.reduce((u,{literal:c,val:d})=>c?u:u.concat(d),[]),a=t.shiftTo(...i.map(s).filter(u=>u));return Hp(o,r(a))}}class Vn{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const t1=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ao(...e){const t=e.reduce((n,s)=>n+s.source,"");return RegExp(`^${t}$`)}function lo(...e){return t=>e.reduce(([n,s,r],o)=>{const[i,a,u]=o(t,r);return[{...n,...i},a||s,u]},[{},null,1]).slice(0,2)}function uo(e,...t){if(e==null)return[null,null];for(const[n,s]of t){const r=n.exec(e);if(r)return s(r)}return[null,null]}function n1(...e){return(t,n)=>{const s={};let r;for(r=0;r<e.length;r++)s[e[r]]=Ps(t[n+r]);return[s,null,n+r]}}const s1=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,tK=`(?:${s1.source}?(?:\\[(${t1.source})\\])?)?`,fm=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,r1=RegExp(`${fm.source}${tK}`),pm=RegExp(`(?:T${r1.source})?`),nK=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,sK=/(\d{4})-?W(\d\d)(?:-?(\d))?/,rK=/(\d{4})-?(\d{3})/,oK=n1("weekYear","weekNumber","weekDay"),iK=n1("year","ordinal"),aK=/(\d{4})-(\d\d)-(\d\d)/,o1=RegExp(`${fm.source} ?(?:${s1.source}|(${t1.source}))?`),lK=RegExp(`(?: ${o1.source})?`);function Hr(e,t,n){const s=e[t];return tt(s)?n:Ps(s)}function uK(e,t){return[{year:Hr(e,t),month:Hr(e,t+1,1),day:Hr(e,t+2,1)},null,t+3]}function co(e,t){return[{hours:Hr(e,t,0),minutes:Hr(e,t+1,0),seconds:Hr(e,t+2,0),milliseconds:cm(e[t+3])},null,t+4]}function Ti(e,t){const n=!e[t]&&!e[t+1],s=tu(e[t+1],e[t+2]),r=n?null:en.instance(s);return[{},r,t+3]}function Oi(e,t){const n=e[t]?ys.create(e[t]):null;return[{},n,t+1]}const cK=RegExp(`^T?${fm.source}$`),dK=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function mK(e){const[t,n,s,r,o,i,a,u,c]=e,d=t[0]==="-",f=u&&u[0]==="-",m=(p,h=!1)=>p!==void 0&&(h||p&&d)?-p:p;return[{years:m(Xs(n)),months:m(Xs(s)),weeks:m(Xs(r)),days:m(Xs(o)),hours:m(Xs(i)),minutes:m(Xs(a)),seconds:m(Xs(u),u==="-0"),milliseconds:m(cm(c),f)}]}const fK={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function hm(e,t,n,s,r,o,i){const a={year:t.length===2?jc(Ps(t)):Ps(t),month:Kv.indexOf(n)+1,day:Ps(s),hour:Ps(r),minute:Ps(o)};return i&&(a.second=Ps(i)),e&&(a.weekday=e.length>3?Yv.indexOf(e)+1:Jv.indexOf(e)+1),a}const pK=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function hK(e){const[,t,n,s,r,o,i,a,u,c,d,f]=e,m=hm(t,r,s,n,o,i,a);let p;return u?p=fK[u]:c?p=0:p=tu(d,f),[m,new en(p)]}function _K(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const gK=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,yK=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,vK=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Up(e){const[,t,n,s,r,o,i,a]=e;return[hm(t,r,s,n,o,i,a),en.utcInstance]}function bK(e){const[,t,n,s,r,o,i,a]=e;return[hm(t,a,n,s,r,o,i),en.utcInstance]}const CK=ao(nK,pm),wK=ao(sK,pm),zK=ao(rK,pm),kK=ao(r1),i1=lo(uK,co,Ti,Oi),xK=lo(oK,co,Ti,Oi),EK=lo(iK,co,Ti,Oi),$K=lo(co,Ti,Oi);function SK(e){return uo(e,[CK,i1],[wK,xK],[zK,EK],[kK,$K])}function AK(e){return uo(_K(e),[pK,hK])}function TK(e){return uo(e,[gK,Up],[yK,Up],[vK,bK])}function OK(e){return uo(e,[dK,mK])}const DK=lo(co);function PK(e){return uo(e,[cK,DK])}const IK=ao(aK,lK),FK=ao(o1),RK=lo(co,Ti,Oi);function LK(e){return uo(e,[IK,i1],[FK,RK])}const MK="Invalid Duration",a1={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},NK={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...a1},xn=146097/400,Er=146097/4800,VK={years:{quarters:4,months:12,weeks:xn/7,days:xn,hours:xn*24,minutes:xn*24*60,seconds:xn*24*60*60,milliseconds:xn*24*60*60*1e3},quarters:{months:3,weeks:xn/28,days:xn/4,hours:xn*24/4,minutes:xn*24*60/4,seconds:xn*24*60*60/4,milliseconds:xn*24*60*60*1e3/4},months:{weeks:Er/7,days:Er,hours:Er*24,minutes:Er*24*60,seconds:Er*24*60*60,milliseconds:Er*24*60*60*1e3},...a1},er=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],BK=er.slice(0).reverse();function Ss(e,t,n=!1){const s={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Je(s)}function HK(e){return e<0?Math.floor(e):Math.ceil(e)}function l1(e,t,n,s,r){const o=e[r][n],i=t[n]/o,a=Math.sign(i)===Math.sign(s[r]),u=!a&&s[r]!==0&&Math.abs(i)<=1?HK(i):Math.trunc(i);s[r]+=u,t[n]-=u*o}function UK(e,t){BK.reduce((n,s)=>tt(t[s])?n:(n&&l1(e,t,n,t,s),s),null)}function jK(e){const t={};for(const[n,s]of Object.entries(e))s!==0&&(t[n]=s);return t}class Je{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let s=n?VK:NK;t.matrix&&(s=t.matrix),this.values=t.values,this.loc=t.loc||vt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=s,this.isLuxonDuration=!0}static fromMillis(t,n){return Je.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new En(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Je({values:pl(t,Je.normalizeUnit),loc:vt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(ur(t))return Je.fromMillis(t);if(Je.isDuration(t))return t;if(typeof t=="object")return Je.fromObject(t);throw new En(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[s]=OK(t);return s?Je.fromObject(s,n):Je.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[s]=PK(t);return s?Je.fromObject(s,n):Je.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new En("need to specify a reason the Duration is invalid");const s=t instanceof Vn?t:new Vn(t,n);if(Tt.throwOnInvalid)throw new yG(s);return new Je({invalid:s})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new xv(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const s={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Kt.create(this.loc,s).formatDurationFromString(this,t):MK}toHuman(t={}){const n=er.map(s=>{const r=this.values[s];return tt(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:s.slice(0,-1)}).format(r)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=dm(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t};const s=this.shiftTo("hours","minutes","seconds","milliseconds");let r=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||s.seconds!==0||s.milliseconds!==0)&&(r+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||s.milliseconds!==0)&&(r+=".SSS"));let o=s.toFormat(r);return t.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Je.fromDurationLike(t),s={};for(const r of er)(Qr(n.values,r)||Qr(this.values,r))&&(s[r]=n.get(r)+this.get(r));return Ss(this,{values:s},!0)}minus(t){if(!this.isValid)return this;const n=Je.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const s of Object.keys(this.values))n[s]=Gv(t(this.values[s],s));return Ss(this,{values:n},!0)}get(t){return this[Je.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...pl(t,Je.normalizeUnit)};return Ss(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:s,matrix:r}={}){const i={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:r,conversionAccuracy:s};return Ss(this,i)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return UK(this.matrix,t),Ss(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=jK(this.normalize().shiftToAll().toObject());return Ss(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(i=>Je.normalizeUnit(i));const n={},s={},r=this.toObject();let o;for(const i of er)if(t.indexOf(i)>=0){o=i;let a=0;for(const c in s)a+=this.matrix[c][i]*s[c],s[c]=0;ur(r[i])&&(a+=r[i]);const u=Math.trunc(a);n[i]=u,s[i]=(a*1e3-u*1e3)/1e3;for(const c in r)er.indexOf(c)>er.indexOf(i)&&l1(this.matrix,r,c,n,i)}else ur(r[i])&&(s[i]=r[i]);for(const i in s)s[i]!==0&&(n[o]+=i===o?s[i]:s[i]/this.matrix[o][i]);return Ss(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ss(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(s,r){return s===void 0||s===0?r===void 0||r===0:s===r}for(const s of er)if(!n(this.values[s],t.values[s]))return!1;return!0}}const $r="Invalid Interval";function qK(e,t){return!e||!e.isValid?Et.invalid("missing or invalid start"):!t||!t.isValid?Et.invalid("missing or invalid end"):t<e?Et.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class Et{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new En("need to specify a reason the Interval is invalid");const s=t instanceof Vn?t:new Vn(t,n);if(Tt.throwOnInvalid)throw new gG(s);return new Et({invalid:s})}static fromDateTimes(t,n){const s=ko(t),r=ko(n),o=qK(s,r);return o==null?new Et({start:s,end:r}):o}static after(t,n){const s=Je.fromDurationLike(n),r=ko(t);return Et.fromDateTimes(r,r.plus(s))}static before(t,n){const s=Je.fromDurationLike(n),r=ko(t);return Et.fromDateTimes(r.minus(s),r)}static fromISO(t,n){const[s,r]=(t||"").split("/",2);if(s&&r){let o,i;try{o=Ve.fromISO(s,n),i=o.isValid}catch{i=!1}let a,u;try{a=Ve.fromISO(r,n),u=a.isValid}catch{u=!1}if(i&&u)return Et.fromDateTimes(o,a);if(i){const c=Je.fromISO(r,n);if(c.isValid)return Et.after(o,c)}else if(u){const c=Je.fromISO(s,n);if(c.isValid)return Et.before(a,c)}}return Et.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),s=this.end.startOf(t);return Math.floor(s.diff(n,t).get(t))+(s.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?Et.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(ko).filter(i=>this.contains(i)).sort(),s=[];let{s:r}=this,o=0;for(;r<this.e;){const i=n[o]||this.e,a=+i>+this.e?this.e:i;s.push(Et.fromDateTimes(r,a)),r=a,o+=1}return s}splitBy(t){const n=Je.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s}=this,r=1,o;const i=[];for(;s<this.e;){const a=this.start.plus(n.mapUnits(u=>u*r));o=+a>+this.e?this.e:a,i.push(Et.fromDateTimes(s,o)),s=o,r+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,s=this.e<t.e?this.e:t.e;return n>=s?null:Et.fromDateTimes(n,s)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,s=this.e>t.e?this.e:t.e;return Et.fromDateTimes(n,s)}static merge(t){const[n,s]=t.sort((r,o)=>r.s-o.s).reduce(([r,o],i)=>o?o.overlaps(i)||o.abutsStart(i)?[r,o.union(i)]:[r.concat([o]),i]:[r,i],[[],null]);return s&&n.push(s),n}static xor(t){let n=null,s=0;const r=[],o=t.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),i=Array.prototype.concat(...o),a=i.sort((u,c)=>u.time-c.time);for(const u of a)s+=u.type==="s"?1:-1,s===1?n=u.time:(n&&+n!=+u.time&&r.push(Et.fromDateTimes(n,u.time)),n=null);return Et.merge(r)}difference(...t){return Et.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:$r}toLocaleString(t=dl,n={}){return this.isValid?Kt.create(this.s.loc.clone(n),t).formatInterval(this):$r}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:$r}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:$r}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:$r}toFormat(t,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:$r}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Je.invalid(this.invalidReason)}mapEndpoints(t){return Et.fromDateTimes(t(this.s),t(this.e))}}class Aa{static hasDST(t=Tt.defaultZone){const n=Ve.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return ys.isValidZone(t)}static normalizeZone(t){return Fs(t,Tt.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||vt.create(n,s,o)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||vt.create(n,s,o)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||vt.create(n,s,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||vt.create(n,s,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return vt.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return vt.create(n,null,"gregory").eras(t)}static features(){return{relative:qv()}}}function jp(e,t){const n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(t)-n(e);return Math.floor(Je.fromMillis(s).as("days"))}function WK(e,t,n){const s=[["years",(u,c)=>c.year-u.year],["quarters",(u,c)=>c.quarter-u.quarter+(c.year-u.year)*4],["months",(u,c)=>c.month-u.month+(c.year-u.year)*12],["weeks",(u,c)=>{const d=jp(u,c);return(d-d%7)/7}],["days",jp]],r={},o=e;let i,a;for(const[u,c]of s)n.indexOf(u)>=0&&(i=u,r[u]=c(e,t),a=o.plus(r),a>t?(r[u]--,e=o.plus(r)):e=a);return[e,r,a,i]}function GK(e,t,n,s){let[r,o,i,a]=WK(e,t,n);const u=t-r,c=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(i<t&&(i=r.plus({[a]:1})),i!==r&&(o[a]=(o[a]||0)+u/(i-r)));const d=Je.fromObject(o,s);return c.length>0?Je.fromMillis(u,s).shiftTo(...c).plus(d):d}const _m={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},qp={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},KK=_m.hanidec.replace(/[\[|\]]/g,"").split("");function ZK(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const s=e.charCodeAt(n);if(e[n].search(_m.hanidec)!==-1)t+=KK.indexOf(e[n]);else for(const r in qp){const[o,i]=qp[r];s>=o&&s<=i&&(t+=s-o)}}return parseInt(t,10)}else return t}function Fn({numberingSystem:e},t=""){return new RegExp(`${_m[e||"latn"]}${t}`)}const YK="missing Intl.DateTimeFormat.formatToParts support";function lt(e,t=n=>n){return{regex:e,deser:([n])=>t(ZK(n))}}const JK=String.fromCharCode(160),u1=`[ ${JK}]`,c1=new RegExp(u1,"g");function XK(e){return e.replace(/\./g,"\\.?").replace(c1,u1)}function Wp(e){return e.replace(/\./g,"").replace(c1," ").toLowerCase()}function Rn(e,t){return e===null?null:{regex:RegExp(e.map(XK).join("|")),deser:([n])=>e.findIndex(s=>Wp(n)===Wp(s))+t}}function Gp(e,t){return{regex:e,deser:([,n,s])=>tu(n,s),groups:t}}function Ta(e){return{regex:e,deser:([t])=>t}}function QK(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function eZ(e,t){const n=Fn(t),s=Fn(t,"{2}"),r=Fn(t,"{3}"),o=Fn(t,"{4}"),i=Fn(t,"{6}"),a=Fn(t,"{1,2}"),u=Fn(t,"{1,3}"),c=Fn(t,"{1,6}"),d=Fn(t,"{1,9}"),f=Fn(t,"{2,4}"),m=Fn(t,"{4,6}"),p=w=>({regex:RegExp(QK(w.val)),deser:([b])=>b,literal:!0}),_=(w=>{if(e.literal)return p(w);switch(w.val){case"G":return Rn(t.eras("short",!1),0);case"GG":return Rn(t.eras("long",!1),0);case"y":return lt(c);case"yy":return lt(f,jc);case"yyyy":return lt(o);case"yyyyy":return lt(m);case"yyyyyy":return lt(i);case"M":return lt(a);case"MM":return lt(s);case"MMM":return Rn(t.months("short",!0,!1),1);case"MMMM":return Rn(t.months("long",!0,!1),1);case"L":return lt(a);case"LL":return lt(s);case"LLL":return Rn(t.months("short",!1,!1),1);case"LLLL":return Rn(t.months("long",!1,!1),1);case"d":return lt(a);case"dd":return lt(s);case"o":return lt(u);case"ooo":return lt(r);case"HH":return lt(s);case"H":return lt(a);case"hh":return lt(s);case"h":return lt(a);case"mm":return lt(s);case"m":return lt(a);case"q":return lt(a);case"qq":return lt(s);case"s":return lt(a);case"ss":return lt(s);case"S":return lt(u);case"SSS":return lt(r);case"u":return Ta(d);case"uu":return Ta(a);case"uuu":return lt(n);case"a":return Rn(t.meridiems(),0);case"kkkk":return lt(o);case"kk":return lt(f,jc);case"W":return lt(a);case"WW":return lt(s);case"E":case"c":return lt(n);case"EEE":return Rn(t.weekdays("short",!1,!1),1);case"EEEE":return Rn(t.weekdays("long",!1,!1),1);case"ccc":return Rn(t.weekdays("short",!0,!1),1);case"cccc":return Rn(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Gp(new RegExp(`([+-]${a.source})(?::(${s.source}))?`),2);case"ZZZ":return Gp(new RegExp(`([+-]${a.source})(${s.source})?`),2);case"z":return Ta(/[a-z_+-/]{1,256}?/i);case" ":return Ta(/[^\S\n\r]/);default:return p(w)}})(e)||{invalidReason:YK};return _.token=e,_}const tZ={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function nZ(e,t){const{type:n,value:s}=e;if(n==="literal"){const i=/^\s+$/.test(s);return{literal:!i,val:i?" ":s}}const r=t[n];let o=tZ[n];if(typeof o=="object"&&(o=o[r]),o)return{literal:!1,val:o}}function sZ(e){return[`^${e.map(n=>n.regex).reduce((n,s)=>`${n}(${s.source})`,"")}$`,e]}function rZ(e,t,n){const s=e.match(t);if(s){const r={};let o=1;for(const i in n)if(Qr(n,i)){const a=n[i],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(s.slice(o,o+u))),o+=u}return[s,r]}else return[s,{}]}function oZ(e){const t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,s;return tt(e.z)||(n=ys.create(e.z)),tt(e.Z)||(n||(n=new en(e.Z)),s=e.Z),tt(e.q)||(e.M=(e.q-1)*3+1),tt(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),tt(e.u)||(e.S=cm(e.u)),[Object.keys(e).reduce((o,i)=>{const a=t(i);return a&&(o[a]=e[i]),o},{}),n,s]}let Ru=null;function iZ(){return Ru||(Ru=Ve.fromMillis(1555555555555)),Ru}function aZ(e,t){if(e.literal)return e;const n=Kt.macroTokenToFormatOpts(e.val),s=f1(n,t);return s==null||s.includes(void 0)?e:s}function d1(e,t){return Array.prototype.concat(...e.map(n=>aZ(n,t)))}function m1(e,t,n){const s=d1(Kt.parseFormat(n),e),r=s.map(i=>eZ(i,e)),o=r.find(i=>i.invalidReason);if(o)return{input:t,tokens:s,invalidReason:o.invalidReason};{const[i,a]=sZ(r),u=RegExp(i,"i"),[c,d]=rZ(t,u,a),[f,m,p]=d?oZ(d):[null,null,void 0];if(Qr(d,"a")&&Qr(d,"H"))throw new Io("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:s,regex:u,rawMatches:c,matches:d,result:f,zone:m,specificOffset:p}}}function lZ(e,t,n){const{result:s,zone:r,specificOffset:o,invalidReason:i}=m1(e,t,n);return[s,r,o,i]}function f1(e,t){return e?Kt.create(t,e).formatDateTimeParts(iZ()).map(r=>nZ(r,e)):null}const p1=[0,31,59,90,120,151,181,212,243,273,304,334],h1=[0,31,60,91,121,152,182,213,244,274,305,335];function Sn(e,t){return new Vn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function _1(e,t,n){const s=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return r===0?7:r}function g1(e,t,n){return n+(Ai(e)?h1:p1)[t-1]}function y1(e,t){const n=Ai(e)?h1:p1,s=n.findIndex(o=>o<t),r=t-n[s];return{month:s+1,day:r}}function qc(e){const{year:t,month:n,day:s}=e,r=g1(t,n,s),o=_1(t,n,s);let i=Math.floor((r-o+10)/7),a;return i<1?(a=t-1,i=fl(a)):i>fl(t)?(a=t+1,i=1):a=t,{weekYear:a,weekNumber:i,weekday:o,...nu(e)}}function Kp(e){const{weekYear:t,weekNumber:n,weekday:s}=e,r=_1(t,1,4),o=Xo(t);let i=n*7+s-r-3,a;i<1?(a=t-1,i+=Xo(a)):i>o?(a=t+1,i-=Xo(t)):a=t;const{month:u,day:c}=y1(a,i);return{year:a,month:u,day:c,...nu(e)}}function Lu(e){const{year:t,month:n,day:s}=e,r=g1(t,n,s);return{year:t,ordinal:r,...nu(e)}}function Zp(e){const{year:t,ordinal:n}=e,{month:s,day:r}=y1(t,n);return{year:t,month:s,day:r,...nu(e)}}function uZ(e){const t=eu(e.weekYear),n=ms(e.weekNumber,1,fl(e.weekYear)),s=ms(e.weekday,1,7);return t?n?s?!1:Sn("weekday",e.weekday):Sn("week",e.week):Sn("weekYear",e.weekYear)}function cZ(e){const t=eu(e.year),n=ms(e.ordinal,1,Xo(e.year));return t?n?!1:Sn("ordinal",e.ordinal):Sn("year",e.year)}function v1(e){const t=eu(e.year),n=ms(e.month,1,12),s=ms(e.day,1,ml(e.year,e.month));return t?n?s?!1:Sn("day",e.day):Sn("month",e.month):Sn("year",e.year)}function b1(e){const{hour:t,minute:n,second:s,millisecond:r}=e,o=ms(t,0,23)||t===24&&n===0&&s===0&&r===0,i=ms(n,0,59),a=ms(s,0,59),u=ms(r,0,999);return o?i?a?u?!1:Sn("millisecond",r):Sn("second",s):Sn("minute",n):Sn("hour",t)}const Mu="Invalid DateTime",Yp=864e13;function Oa(e){return new Vn("unsupported zone",`the zone "${e.name}" is not supported`)}function Nu(e){return e.weekData===null&&(e.weekData=qc(e.c)),e.weekData}function wo(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ve({...n,...t,old:n})}function C1(e,t,n){let s=e-t*60*1e3;const r=n.offset(s);if(t===r)return[s,t];s-=(r-t)*60*1e3;const o=n.offset(s);return r===o?[s,r]:[e-Math.min(r,o)*60*1e3,Math.max(r,o)]}function Jp(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function qa(e,t,n){return C1(mm(e),t,n)}function Xp(e,t){const n=e.o,s=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:s,month:r,day:Math.min(e.c.day,ml(s,r))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Je.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=mm(o);let[u,c]=C1(a,n,e.zone);return i!==0&&(u+=i,c=e.zone.offset(u)),{ts:u,o:c}}function zo(e,t,n,s,r,o){const{setZone:i,zone:a}=n;if(e&&Object.keys(e).length!==0||t){const u=t||a,c=Ve.fromObject(e,{...n,zone:u,specificOffset:o});return i?c:c.setZone(a)}else return Ve.invalid(new Vn("unparsable",`the input "${r}" can't be parsed as ${s}`))}function Da(e,t,n=!0){return e.isValid?Kt.create(vt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Vu(e,t){const n=e.c.year>9999||e.c.year<0;let s="";return n&&e.c.year>=0&&(s+="+"),s+=Ot(e.c.year,n?6:4),t?(s+="-",s+=Ot(e.c.month),s+="-",s+=Ot(e.c.day)):(s+=Ot(e.c.month),s+=Ot(e.c.day)),s}function Qp(e,t,n,s,r,o){let i=Ot(e.c.hour);return t?(i+=":",i+=Ot(e.c.minute),(e.c.second!==0||!n)&&(i+=":")):i+=Ot(e.c.minute),(e.c.second!==0||!n)&&(i+=Ot(e.c.second),(e.c.millisecond!==0||!s)&&(i+=".",i+=Ot(e.c.millisecond,3))),r&&(e.isOffsetFixed&&e.offset===0&&!o?i+="Z":e.o<0?(i+="-",i+=Ot(Math.trunc(-e.o/60)),i+=":",i+=Ot(Math.trunc(-e.o%60))):(i+="+",i+=Ot(Math.trunc(e.o/60)),i+=":",i+=Ot(Math.trunc(e.o%60)))),o&&(i+="["+e.zone.ianaName+"]"),i}const w1={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},dZ={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},mZ={ordinal:1,hour:0,minute:0,second:0,millisecond:0},z1=["year","month","day","hour","minute","second","millisecond"],fZ=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],pZ=["year","ordinal","hour","minute","second","millisecond"];function eh(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new xv(e);return t}function th(e,t){const n=Fs(t.zone,Tt.defaultZone),s=vt.fromObject(t),r=Tt.now();let o,i;if(tt(e.year))o=r;else{for(const c of z1)tt(e[c])&&(e[c]=w1[c]);const a=v1(e)||b1(e);if(a)return Ve.invalid(a);const u=n.offset(r);[o,i]=qa(e,u,n)}return new Ve({ts:o,zone:n,loc:s,o:i})}function nh(e,t,n){const s=tt(n.round)?!0:n.round,r=(i,a)=>(i=dm(i,s||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(i,a)),o=i=>n.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(n.unit)return r(o(n.unit),n.unit);for(const i of n.units){const a=o(i);if(Math.abs(a)>=1)return r(a,i)}return r(e>t?-0:0,n.units[n.units.length-1])}function sh(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}class Ve{constructor(t){const n=t.zone||Tt.defaultZone;let s=t.invalid||(Number.isNaN(t.ts)?new Vn("invalid input"):null)||(n.isValid?null:Oa(n));this.ts=tt(t.ts)?Tt.now():t.ts;let r=null,o=null;if(!s)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[r,o]=[t.old.c,t.old.o];else{const a=n.offset(this.ts);r=Jp(this.ts,a),s=Number.isNaN(r.year)?new Vn("invalid input"):null,r=s?null:r,o=s?null:a}this._zone=n,this.loc=t.loc||vt.create(),this.invalid=s,this.weekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}static now(){return new Ve({})}static local(){const[t,n]=sh(arguments),[s,r,o,i,a,u,c]=n;return th({year:s,month:r,day:o,hour:i,minute:a,second:u,millisecond:c},t)}static utc(){const[t,n]=sh(arguments),[s,r,o,i,a,u,c]=n;return t.zone=en.utcInstance,th({year:s,month:r,day:o,hour:i,minute:a,second:u,millisecond:c},t)}static fromJSDate(t,n={}){const s=NG(t)?t.valueOf():NaN;if(Number.isNaN(s))return Ve.invalid("invalid input");const r=Fs(n.zone,Tt.defaultZone);return r.isValid?new Ve({ts:s,zone:r,loc:vt.fromObject(n)}):Ve.invalid(Oa(r))}static fromMillis(t,n={}){if(ur(t))return t<-Yp||t>Yp?Ve.invalid("Timestamp out of range"):new Ve({ts:t,zone:Fs(n.zone,Tt.defaultZone),loc:vt.fromObject(n)});throw new En(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(ur(t))return new Ve({ts:t*1e3,zone:Fs(n.zone,Tt.defaultZone),loc:vt.fromObject(n)});throw new En("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const s=Fs(n.zone,Tt.defaultZone);if(!s.isValid)return Ve.invalid(Oa(s));const r=Tt.now(),o=tt(n.specificOffset)?s.offset(r):n.specificOffset,i=pl(t,eh),a=!tt(i.ordinal),u=!tt(i.year),c=!tt(i.month)||!tt(i.day),d=u||c,f=i.weekYear||i.weekNumber,m=vt.fromObject(n);if((d||a)&&f)throw new Io("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new Io("Can't mix ordinal dates with month/day");const p=f||i.weekday&&!d;let h,_,w=Jp(r,o);p?(h=fZ,_=dZ,w=qc(w)):a?(h=pZ,_=mZ,w=Lu(w)):(h=z1,_=w1);let b=!1;for(const I of h){const D=i[I];tt(D)?b?i[I]=_[I]:i[I]=w[I]:b=!0}const y=p?uZ(i):a?cZ(i):v1(i),k=y||b1(i);if(k)return Ve.invalid(k);const C=p?Kp(i):a?Zp(i):i,[x,T]=qa(C,o,s),L=new Ve({ts:x,zone:s,o:T,loc:m});return i.weekday&&d&&t.weekday!==L.weekday?Ve.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${L.toISO()}`):L}static fromISO(t,n={}){const[s,r]=SK(t);return zo(s,r,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[s,r]=AK(t);return zo(s,r,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[s,r]=TK(t);return zo(s,r,n,"HTTP",n)}static fromFormat(t,n,s={}){if(tt(t)||tt(n))throw new En("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:o=null}=s,i=vt.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),[a,u,c,d]=lZ(i,t,n);return d?Ve.invalid(d):zo(a,u,s,`format ${n}`,t,c)}static fromString(t,n,s={}){return Ve.fromFormat(t,n,s)}static fromSQL(t,n={}){const[s,r]=LK(t);return zo(s,r,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new En("need to specify a reason the DateTime is invalid");const s=t instanceof Vn?t:new Vn(t,n);if(Tt.throwOnInvalid)throw new _G(s);return new Ve({invalid:s})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const s=f1(t,vt.fromObject(n));return s?s.map(r=>r?r.val:null).join(""):null}static expandFormat(t,n={}){return d1(Kt.parseFormat(t),vt.fromObject(n)).map(r=>r.val).join("")}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Nu(this).weekYear:NaN}get weekNumber(){return this.isValid?Nu(this).weekNumber:NaN}get weekday(){return this.isValid?Nu(this).weekday:NaN}get ordinal(){return this.isValid?Lu(this.c).ordinal:NaN}get monthShort(){return this.isValid?Aa.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Aa.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Aa.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Aa.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Ai(this.year)}get daysInMonth(){return ml(this.year,this.month)}get daysInYear(){return this.isValid?Xo(this.year):NaN}get weeksInWeekYear(){return this.isValid?fl(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:s,calendar:r}=Kt.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:s,outputCalendar:r}}toUTC(t=0,n={}){return this.setZone(en.instance(t),n)}toLocal(){return this.setZone(Tt.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:s=!1}={}){if(t=Fs(t,Tt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let r=this.ts;if(n||s){const o=t.offset(this.ts),i=this.toObject();[r]=qa(i,o,t)}return wo(this,{ts:r,zone:t})}else return Ve.invalid(Oa(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:s}={}){const r=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:s});return wo(this,{loc:r})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=pl(t,eh),s=!tt(n.weekYear)||!tt(n.weekNumber)||!tt(n.weekday),r=!tt(n.ordinal),o=!tt(n.year),i=!tt(n.month)||!tt(n.day),a=o||i,u=n.weekYear||n.weekNumber;if((a||r)&&u)throw new Io("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&r)throw new Io("Can't mix ordinal dates with month/day");let c;s?c=Kp({...qc(this.c),...n}):tt(n.ordinal)?(c={...this.toObject(),...n},tt(n.day)&&(c.day=Math.min(ml(c.year,c.month),c.day))):c=Zp({...Lu(this.c),...n});const[d,f]=qa(c,this.o,this.zone);return wo(this,{ts:d,o:f})}plus(t){if(!this.isValid)return this;const n=Je.fromDurationLike(t);return wo(this,Xp(this,n))}minus(t){if(!this.isValid)return this;const n=Je.fromDurationLike(t).negate();return wo(this,Xp(this,n))}startOf(t){if(!this.isValid)return this;const n={},s=Je.normalizeUnit(t);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(s==="weeks"&&(n.weekday=1),s==="quarters"){const r=Math.ceil(this.month/3);n.month=(r-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?Kt.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Mu}toLocaleString(t=dl,n={}){return this.isValid?Kt.create(this.loc.clone(n),t).formatDateTime(this):Mu}toLocaleParts(t={}){return this.isValid?Kt.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:s=!1,includeOffset:r=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const i=t==="extended";let a=Vu(this,i);return a+="T",a+=Qp(this,i,n,s,r,o),a}toISODate({format:t="extended"}={}){return this.isValid?Vu(this,t==="extended"):null}toISOWeekDate(){return Da(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:s=!0,includePrefix:r=!1,extendedZone:o=!1,format:i="extended"}={}){return this.isValid?(r?"T":"")+Qp(this,i==="extended",n,t,s,o):null}toRFC2822(){return Da(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Da(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Vu(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:s=!0}={}){let r="HH:mm:ss.SSS";return(n||t)&&(s&&(r+=" "),n?r+="z":t&&(r+="ZZ")),Da(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Mu}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",s={}){if(!this.isValid||!t.isValid)return Je.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...s},o=VG(n).map(Je.normalizeUnit),i=t.valueOf()>this.valueOf(),a=i?this:t,u=i?t:this,c=GK(a,u,o,r);return i?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(Ve.now(),t,n)}until(t){return this.isValid?Et.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const s=t.valueOf(),r=this.setZone(t.zone,{keepLocalTime:!0});return r.startOf(n)<=s&&s<=r.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ve.fromObject({},{zone:this.zone}),s=t.padding?this<n?-t.padding:t.padding:0;let r=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(r=t.unit,o=void 0),nh(n,this.plus(s),{...t,numeric:"always",units:r,unit:o})}toRelativeCalendar(t={}){return this.isValid?nh(t.base||Ve.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ve.isDateTime))throw new En("min requires all arguments be DateTimes");return Bp(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Ve.isDateTime))throw new En("max requires all arguments be DateTimes");return Bp(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,s={}){const{locale:r=null,numberingSystem:o=null}=s,i=vt.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});return m1(i,t,n)}static fromStringExplain(t,n,s={}){return Ve.fromFormatExplain(t,n,s)}static get DATE_SHORT(){return dl}static get DATE_MED(){return Ev}static get DATE_MED_WITH_WEEKDAY(){return vG}static get DATE_FULL(){return $v}static get DATE_HUGE(){return Sv}static get TIME_SIMPLE(){return Av}static get TIME_WITH_SECONDS(){return Tv}static get TIME_WITH_SHORT_OFFSET(){return Ov}static get TIME_WITH_LONG_OFFSET(){return Dv}static get TIME_24_SIMPLE(){return Pv}static get TIME_24_WITH_SECONDS(){return Iv}static get TIME_24_WITH_SHORT_OFFSET(){return Fv}static get TIME_24_WITH_LONG_OFFSET(){return Rv}static get DATETIME_SHORT(){return Lv}static get DATETIME_SHORT_WITH_SECONDS(){return Mv}static get DATETIME_MED(){return Nv}static get DATETIME_MED_WITH_SECONDS(){return Vv}static get DATETIME_MED_WITH_WEEKDAY(){return bG}static get DATETIME_FULL(){return Bv}static get DATETIME_FULL_WITH_SECONDS(){return Hv}static get DATETIME_HUGE(){return Uv}static get DATETIME_HUGE_WITH_SECONDS(){return jv}}function ko(e){if(Ve.isDateTime(e))return e;if(e&&e.valueOf&&ur(e.valueOf()))return Ve.fromJSDate(e);if(e&&typeof e=="object")return Ve.fromObject(e);throw new En(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const{t:Bu,locale:Hu}=Fl.global,hZ={durationInHours(e){const t=Math.floor(e/1e3);return t>3600?Je.fromObject({seconds:t}).shiftTo("hours","minutes","seconds").toFormat("hh:mm:ss"):Je.fromObject({seconds:t}).shiftTo("minutes","seconds").toFormat("mm:ss")},durationInDays(e){const t=Math.floor(e/6e4);return t>1440?Je.fromObject({minutes:t}).shiftTo("days","hours","minutes").toHuman():t>60?Je.fromObject({minutes:t}).shiftTo("hours","minutes").toHuman():Je.fromObject({minutes:t}).shiftTo("minutes").toHuman()},date(e){return Ve.fromISO(e).setLocale(Hu.value).toLocaleString(Ve.DATE_FULL)},datetime(e){return Ve.fromISO(e).setLocale(Hu.value).toLocaleString(Ve.DATETIME_MED)},timeFromNow(e){const t=Ve.now().diff(Ve.fromISO(e));return this.durationInDays(t.as("milliseconds"))},number(e){return e.toLocaleString(Hu.value)},channels(e){return e===1?Bu("filter.mono"):e===2?Bu("filter.stereo"):e?Bu("filter.channels",{value:e}):""},cursor(e,t=20){const s=t/2;return`url("data:image/svg+xml,%3Csvg width='${t}' height='${t}' viewBox='0 0 ${24} ${24}' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath d='${e}'/%3E%3C/svg%3E") ${s} ${s}, auto`}},_Z={mdiAccountMusic:$8,mdiAlbum:S8,mdiArrowCollapseDown:T8,mdiBookOpenPageVariant:O8,mdiBookOpenVariant:D8,mdiBookshelf:P8,mdiBroadcast:I8,mdiCancel:Gl,mdiCast:F8,mdiCastVariant:R8,mdiCellphone:L8,mdiCheck:M8,mdiChevronDown:N8,mdiChevronUp:V8,mdiContentSave:B8,mdiDelete:H8,mdiDeleteEmpty:U8,mdiDotsHorizontal:j8,mdiDotsVertical:q8,mdiDragHorizontal:W8,mdiFastForward30:G8,mdiFileMusic:K8,mdiFileOutline:Z8,mdiFire:Y8,mdiFolder:J8,mdiFolderOpen:X8,mdiMagnify:Q8,mdiMenu:eT,mdiMicrophone:tT,mdiMusic:nT,mdiMusicBoxMultiple:sT,mdiOpenInNew:rT,mdiPause:oT,mdiPencil:iT,mdiPipe:aT,mdiPlay:lT,mdiPlaylistPlay:uT,mdiPlaylistPlus:cT,mdiRadio:dT,mdiRadioTower:mT,mdiRefresh:fT,mdiRepeat:pT,mdiRepeatOff:hT,mdiRepeatOnce:_T,mdiRewind10:gT,mdiRss:yT,mdiServer:vT,mdiShuffle:bT,mdiShuffleDisabled:CT,mdiSkipBackward:wT,mdiSkipForward:zT,mdiSpeaker:kT,mdiSpotify:xT,mdiStop:ET,mdiSubdirectoryArrowLeft:$T,mdiVolumeHigh:ST,mdiVolumeOff:AT,mdiWeb:TT},gZ={name:"NavbarItemLink",props:{to:String,exact:Boolean},computed:{is_active(){return this.exact?this.$route.path===this.to:this.$route.path.startsWith(this.to)},show_player_menu:{get(){return this.$store.state.show_player_menu},set(e){this.$store.commit(Kr,e)}},show_burger_menu:{get(){return this.$store.state.show_burger_menu},set(e){this.$store.commit(Gr,e)}}},methods:{open_link(){this.show_burger_menu&&this.$store.commit(Gr,!1),this.show_player_menu&&this.$store.commit(Kr,!1),this.$router.push({path:this.to})},full_path(){return this.$router.resolve(this.to).href}}},yZ=["href"];function vZ(e,t,n,s,r,o){return z(),S("a",{class:Ae(["navbar-item",{"is-active":o.is_active}]),href:o.full_path(),onClick:t[0]||(t[0]=it(i=>o.open_link(),["stop","prevent"]))},[ut(e.$slots,"default")],10,yZ)}var k1=re(gZ,[["render",vZ]]);const bZ={name:"NavbarTop",components:{NavbarItemLink:k1},data(){return{show_settings_menu:!1}},computed:{is_visible_playlists(){return this.$store.getters.settings_option("webinterface","show_menu_item_playlists").value},is_visible_music(){return this.$store.getters.settings_option("webinterface","show_menu_item_music").value},is_visible_podcasts(){return this.$store.getters.settings_option("webinterface","show_menu_item_podcasts").value},is_visible_audiobooks(){return this.$store.getters.settings_option("webinterface","show_menu_item_audiobooks").value},is_visible_radio(){return this.$store.getters.settings_option("webinterface","show_menu_item_radio").value},is_visible_files(){return this.$store.getters.settings_option("webinterface","show_menu_item_files").value},is_visible_search(){return this.$store.getters.settings_option("webinterface","show_menu_item_search").value},player(){return this.$store.state.player},config(){return this.$store.state.config},library(){return this.$store.state.library},audiobooks(){return this.$store.state.audiobooks_count},podcasts(){return this.$store.state.podcasts_count},spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},show_burger_menu:{get(){return this.$store.state.show_burger_menu},set(e){this.$store.commit(Gr,e)}},show_player_menu(){return this.$store.state.show_player_menu},show_update_dialog:{get(){return this.$store.state.show_update_dialog},set(e){this.$store.commit(wi,e)}},zindex(){return this.show_player_menu?"z-index: 20":""}},watch:{$route(e,t){this.show_settings_menu=!1}},methods:{on_click_outside_settings(){this.show_settings_menu=!this.show_settings_menu},open_update_dialog(){this.show_update_dialog=!0,this.show_settings_menu=!1,this.show_burger_menu=!1}}},CZ={class:"navbar-brand"},wZ={class:"icon"},zZ={class:"icon"},kZ={class:"icon"},xZ={class:"icon"},EZ={class:"icon"},$Z={class:"icon"},SZ={class:"icon"},AZ=l("span",null,null,-1),TZ=l("span",null,null,-1),OZ=l("span",null,null,-1),DZ=[AZ,TZ,OZ],PZ=l("div",{class:"navbar-start"},null,-1),IZ={class:"navbar-end"},FZ={class:"navbar-link is-arrowless"},RZ={class:"icon is-hidden-touch"},LZ=["textContent"],MZ={class:"navbar-dropdown is-right"},NZ={class:"icon"},VZ=["textContent"],BZ={class:"icon"},HZ=["textContent"],UZ=["textContent"],jZ=["textContent"],qZ=["textContent"],WZ=["textContent"],GZ={class:"icon"},KZ=["textContent"],ZZ={class:"icon"},YZ=["textContent"],JZ={class:"icon"},XZ=["textContent"],QZ={class:"icon"},eY=["textContent"],tY={class:"icon"},nY=["textContent"],sY=l("hr",{class:"fd-navbar-divider"},null,-1),rY=["textContent"],oY=l("div",{class:"navbar-item is-hidden-desktop",style:{"margin-bottom":"2.5rem"}},null,-1);function iY(e,t,n,s,r,o){const i=$("mdicon"),a=$("navbar-item-link");return z(),S("nav",{class:"fd-top-navbar navbar is-light is-fixed-top",style:ln(o.zindex),role:"navigation","aria-label":"main navigation"},[l("div",CZ,[o.is_visible_playlists?(z(),be(a,{key:0,to:"/playlists"},{default:E(()=>[l("span",wZ,[v(i,{name:"music-box-multiple",size:"16"})])]),_:1})):H("",!0),o.is_visible_music?(z(),be(a,{key:1,to:"/music"},{default:E(()=>[l("span",zZ,[v(i,{name:"music",size:"16"})])]),_:1})):H("",!0),o.is_visible_podcasts?(z(),be(a,{key:2,to:"/podcasts"},{default:E(()=>[l("span",kZ,[v(i,{name:"microphone",size:"16"})])]),_:1})):H("",!0),o.is_visible_audiobooks?(z(),be(a,{key:3,to:"/audiobooks"},{default:E(()=>[l("span",xZ,[v(i,{name:"book-open-variant",size:"16"})])]),_:1})):H("",!0),o.is_visible_radio?(z(),be(a,{key:4,to:"/radio"},{default:E(()=>[l("span",EZ,[v(i,{name:"radio",size:"16"})])]),_:1})):H("",!0),o.is_visible_files?(z(),be(a,{key:5,to:"/files"},{default:E(()=>[l("span",$Z,[v(i,{name:"folder-open",size:"16"})])]),_:1})):H("",!0),o.is_visible_search?(z(),be(a,{key:6,to:"/search"},{default:E(()=>[l("span",SZ,[v(i,{name:"magnify",size:"16"})])]),_:1})):H("",!0),l("div",{class:Ae(["navbar-burger",{"is-active":o.show_burger_menu}]),onClick:t[0]||(t[0]=u=>o.show_burger_menu=!o.show_burger_menu)},DZ,2)]),l("div",{class:Ae(["navbar-menu",{"is-active":o.show_burger_menu}])},[PZ,l("div",IZ,[l("div",{class:Ae(["navbar-item has-dropdown is-hoverable",{"is-active":r.show_settings_menu}]),onClick:t[2]||(t[2]=(...u)=>o.on_click_outside_settings&&o.on_click_outside_settings(...u))},[l("a",FZ,[l("span",RZ,[v(i,{name:"menu",size:"24"})]),l("span",{class:"is-hidden-desktop has-text-weight-bold",textContent:g(e.$t("navigation.title"))},null,8,LZ)]),l("div",MZ,[v(a,{to:"/playlists"},{default:E(()=>[l("span",NZ,[v(i,{name:"music-box-multiple",size:"16"})]),l("b",{textContent:g(e.$t("navigation.playlists"))},null,8,VZ)]),_:1}),v(a,{to:"/music",exact:""},{default:E(()=>[l("span",BZ,[v(i,{name:"music",size:"16"})]),l("b",{textContent:g(e.$t("navigation.music"))},null,8,HZ)]),_:1}),v(a,{to:"/music/artists"},{default:E(()=>[l("span",{class:"fd-navbar-item-level2",textContent:g(e.$t("navigation.artists"))},null,8,UZ)]),_:1}),v(a,{to:"/music/albums"},{default:E(()=>[l("span",{class:"fd-navbar-item-level2",textContent:g(e.$t("navigation.albums"))},null,8,jZ)]),_:1}),v(a,{to:"/music/genres"},{default:E(()=>[l("span",{class:"fd-navbar-item-level2",textContent:g(e.$t("navigation.genres"))},null,8,qZ)]),_:1}),o.spotify_enabled?(z(),be(a,{key:0,to:"/music/spotify"},{default:E(()=>[l("span",{class:"fd-navbar-item-level2",textContent:g(e.$t("navigation.spotify"))},null,8,WZ)]),_:1})):H("",!0),v(a,{to:"/podcasts"},{default:E(()=>[l("span",GZ,[v(i,{name:"microphone",size:"16"})]),l("b",{textContent:g(e.$t("navigation.podcasts"))},null,8,KZ)]),_:1}),v(a,{to:"/audiobooks"},{default:E(()=>[l("span",ZZ,[v(i,{name:"book-open-variant",size:"16"})]),l("b",{textContent:g(e.$t("navigation.audiobooks"))},null,8,YZ)]),_:1}),v(a,{to:"/radio"},{default:E(()=>[l("span",JZ,[v(i,{name:"radio",size:"16"})]),l("b",{textContent:g(e.$t("navigation.radio"))},null,8,XZ)]),_:1}),v(a,{to:"/files"},{default:E(()=>[l("span",QZ,[v(i,{name:"folder-open",size:"16"})]),l("b",{textContent:g(e.$t("navigation.files"))},null,8,eY)]),_:1}),v(a,{to:"/search"},{default:E(()=>[l("span",tY,[v(i,{name:"magnify",size:"16"})]),l("b",{textContent:g(e.$t("navigation.search"))},null,8,nY)]),_:1}),sY,v(a,{to:"/settings/webinterface"},{default:E(()=>[mt(g(e.$t("navigation.settings")),1)]),_:1}),l("a",{class:"navbar-item",onClick:t[1]||(t[1]=it(u=>o.open_update_dialog(),["stop","prevent"])),textContent:g(e.$t("navigation.update-library"))},null,8,rY),v(a,{to:"/about"},{default:E(()=>[mt(g(e.$t("navigation.about")),1)]),_:1}),oY])],2)])],2),dt(l("div",{class:"is-overlay",style:{"z-index":"10",width:"100vw",height:"100vh"},onClick:t[3]||(t[3]=u=>r.show_settings_menu=!1)},null,512),[[ui,r.show_settings_menu]])],4)}var aY=re(bZ,[["render",iY]]),xo={_audio:new Audio,_context:null,_source:null,_gain:null,setupAudio(){const e=window.AudioContext||window.webkitAudioContext;return this._context=new e,this._source=this._context.createMediaElementSource(this._audio),this._gain=this._context.createGain(),this._source.connect(this._gain),this._gain.connect(this._context.destination),this._audio.addEventListener("canplaythrough",t=>{this._audio.play()}),this._audio.addEventListener("canplay",t=>{this._audio.play()}),this._audio},setVolume(e){!this._gain||(e=parseFloat(e)||0,e=e<0?0:e,e=e>1?1:e,this._gain.gain.value=e)},playSource(e){this.stopAudio(),this._context.resume().then(()=>{this._audio.src=String(e||"")+"?x="+Date.now(),this._audio.crossOrigin="anonymous",this._audio.load()})},stopAudio(){try{this._audio.pause()}catch{}try{this._audio.stop()}catch{}try{this._audio.close()}catch{}}};const lY={name:"NavbarItemOutput",props:["output"],data(){return{volume:this.output.selected?this.output.volume:0,cursor:Gl}},computed:{type_class(){return this.output.type.startsWith("AirPlay")?"cast-variant":this.output.type==="Chromecast"?"cast":this.output.type==="fifo"?"pipe":"server"}},watch:{output(){this.volume=this.output.volume}},methods:{change_volume(){N.player_output_volume(this.output.id,this.volume)},set_enabled(){const e={selected:!this.output.selected};N.output_update(this.output.id,e)}}},uY={class:"navbar-item"},cY={class:"level is-mobile"},dY={class:"level-left is-flex-grow-1"},mY={class:"level-item is-flex-grow-0"},fY={class:"button is-white is-small"},pY={class:"level-item"},hY={class:"is-flex-grow-1"},_Y=["textContent"],gY=["disabled"];function yY(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",uY,[l("div",cY,[l("div",dY,[l("div",mY,[l("a",fY,[l("span",{class:Ae(["icon is-clickable",{"has-text-grey-light":!n.output.selected}]),onClick:t[0]||(t[0]=(...a)=>o.set_enabled&&o.set_enabled(...a))},[v(i,{name:o.type_class,size:"18",title:n.output.type},null,8,["name","title"])],2)])]),l("div",pY,[l("div",hY,[l("p",{class:Ae(["heading",{"has-text-grey-light":!n.output.selected}]),textContent:g(n.output.name)},null,10,_Y),dt(l("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>r.volume=a),disabled:!n.output.selected,class:Ae(["slider",{"is-inactive":!n.output.selected}]),max:"100",type:"range",style:ln({"--ratio":r.volume/100,"--cursor":e.$filters.cursor(this.cursor)}),onChange:t[2]||(t[2]=(...a)=>o.change_volume&&o.change_volume(...a))},null,46,gY),[[It,r.volume]])])])])])])}var vY=re(lY,[["render",yY]]);const bY={name:"PlayerButtonPlayPause",props:{icon_size:{type:Number,default:16},show_disabled_message:Boolean},computed:{is_playing(){return this.$store.state.player.state==="play"},is_pause_allowed(){return this.$store.getters.now_playing&&this.$store.getters.now_playing.data_kind!=="pipe"},disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0},icon_name(){if(this.is_playing){if(this.is_pause_allowed)return"pause"}else return"play";return"stop"}},methods:{toggle_play_pause(){if(this.disabled){this.show_disabled_message&&this.$store.dispatch("add_notification",{text:this.$t("server.empty-queue"),type:"info",topic:"connection",timeout:2e3});return}this.is_playing&&this.is_pause_allowed?N.player_pause():this.is_playing&&!this.is_pause_allowed?N.player_stop():N.player_play()}}},CY=["disabled"],wY={class:"icon"};function zY(e,t,n,s,r,o){const i=$("mdicon");return z(),S("a",{disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.toggle_play_pause&&o.toggle_play_pause(...a))},[l("span",wY,[v(i,{name:o.icon_name,size:n.icon_size,title:e.$t("player.button."+o.icon_name)},null,8,["name","size","title"])])],8,CY)}var kY=re(bY,[["render",zY]]);const xY={name:"PlayerButtonNext",props:{icon_size:{type:Number,default:16}},computed:{disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0}},methods:{play_next(){this.disabled||N.player_next()}}},EY=["disabled"],$Y={class:"icon"};function SY(e,t,n,s,r,o){const i=$("mdicon");return z(),S("a",{disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.play_next&&o.play_next(...a))},[l("span",$Y,[v(i,{name:"skip-forward",size:n.icon_size,title:e.$t("player.button.skip-forward")},null,8,["size","title"])])],8,EY)}var AY=re(xY,[["render",SY]]);const TY={name:"PlayerButtonPrevious",props:{icon_size:{type:Number,default:16}},computed:{disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0}},methods:{play_previous(){this.disabled||N.player_previous()}}},OY=["disabled"],DY={class:"icon"};function PY(e,t,n,s,r,o){const i=$("mdicon");return z(),S("a",{disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.play_previous&&o.play_previous(...a))},[l("span",DY,[v(i,{name:"skip-backward",size:n.icon_size,title:e.$t("player.button.skip-backward")},null,8,["size","title"])])],8,OY)}var IY=re(TY,[["render",PY]]);const FY={name:"PlayerButtonShuffle",props:{icon_size:{type:Number,default:16}},computed:{is_shuffle(){return this.$store.state.player.shuffle},icon_name(){return this.is_shuffle?"shuffle":"shuffle-disabled"}},methods:{toggle_shuffle_mode(){N.player_shuffle(!this.is_shuffle)}}},RY={class:"icon"};function LY(e,t,n,s,r,o){const i=$("mdicon");return z(),S("a",{class:Ae({"is-info":o.is_shuffle}),onClick:t[0]||(t[0]=(...a)=>o.toggle_shuffle_mode&&o.toggle_shuffle_mode(...a))},[l("span",RY,[v(i,{name:o.icon_name,size:n.icon_size,title:e.$t("player.button."+o.icon_name)},null,8,["name","size","title"])])],2)}var MY=re(FY,[["render",LY]]);const NY={name:"PlayerButtonConsume",props:{icon_size:{type:Number,default:16}},computed:{is_consume(){return this.$store.state.player.consume}},methods:{toggle_consume_mode(){N.player_consume(!this.is_consume)}}},VY={class:"icon"};function BY(e,t,n,s,r,o){const i=$("mdicon");return z(),S("a",{class:Ae({"is-info":o.is_consume}),onClick:t[0]||(t[0]=(...a)=>o.toggle_consume_mode&&o.toggle_consume_mode(...a))},[l("span",VY,[v(i,{name:"fire",size:n.icon_size,title:e.$t("player.button.consume")},null,8,["size","title"])])],2)}var HY=re(NY,[["render",BY]]);const UY={name:"PlayerButtonRepeat",props:{icon_size:{type:Number,default:16}},computed:{is_repeat_all(){return this.$store.state.player.repeat==="all"},is_repeat_single(){return this.$store.state.player.repeat==="single"},is_repeat_off(){return!this.is_repeat_all&&!this.is_repeat_single},icon_name(){return this.is_repeat_all?"repeat":this.is_repeat_single?"repeat-once":"repeat-off"}},methods:{toggle_repeat_mode(){this.is_repeat_all?N.player_repeat("single"):this.is_repeat_single?N.player_repeat("off"):N.player_repeat("all")}}},jY={class:"icon"};function qY(e,t,n,s,r,o){const i=$("mdicon");return z(),S("a",{class:Ae({"is-info":!o.is_repeat_off}),onClick:t[0]||(t[0]=(...a)=>o.toggle_repeat_mode&&o.toggle_repeat_mode(...a))},[l("span",jY,[v(i,{name:o.icon_name,size:n.icon_size,title:e.$t("player.button."+o.icon_name)},null,8,["name","size","title"])])],2)}var WY=re(UY,[["render",qY]]);const GY={name:"PlayerButtonSeekBack",props:{seek_ms:Number,icon_size:{type:Number,default:16}},computed:{now_playing(){return this.$store.getters.now_playing},is_stopped(){return this.$store.state.player.state==="stop"},disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0||this.is_stopped||this.now_playing.data_kind==="pipe"},visible(){return["podcast","audiobook"].includes(this.now_playing.media_kind)}},methods:{seek(){this.disabled||N.player_seek(this.seek_ms*-1)}}},KY=["disabled"],ZY={class:"icon"};function YY(e,t,n,s,r,o){const i=$("mdicon");return o.visible?(z(),S("a",{key:0,disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.seek&&o.seek(...a))},[l("span",ZY,[v(i,{name:"rewind-10",size:n.icon_size,title:e.$t("player.button.seek-backward")},null,8,["size","title"])])],8,KY)):H("",!0)}var JY=re(GY,[["render",YY]]);const XY={name:"PlayerButtonSeekForward",props:{seek_ms:Number,icon_size:{type:Number,default:16}},computed:{now_playing(){return this.$store.getters.now_playing},is_stopped(){return this.$store.state.player.state==="stop"},disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0||this.is_stopped||this.now_playing.data_kind==="pipe"},visible(){return["podcast","audiobook"].includes(this.now_playing.media_kind)}},methods:{seek(){this.disabled||N.player_seek(this.seek_ms)}}},QY=["disabled"],eJ={class:"icon"};function tJ(e,t,n,s,r,o){const i=$("mdicon");return o.visible?(z(),S("a",{key:0,disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.seek&&o.seek(...a))},[l("span",eJ,[v(i,{name:"fast-forward-30",size:n.icon_size,title:e.$t("player.button.seek-forward")},null,8,["size","title"])])],8,QY)):H("",!0)}var nJ=re(XY,[["render",tJ]]);const sJ={name:"NavbarBottom",components:{NavbarItemLink:k1,NavbarItemOutput:vY,PlayerButtonPlayPause:kY,PlayerButtonNext:AY,PlayerButtonPrevious:IY,PlayerButtonShuffle:MY,PlayerButtonConsume:HY,PlayerButtonRepeat:WY,PlayerButtonSeekForward:nJ,PlayerButtonSeekBack:JY},data(){return{cursor:Gl,old_volume:0,playing:!1,loading:!1,stream_volume:10,show_outputs_menu:!1,show_desktop_outputs_menu:!1}},computed:{show_player_menu:{get(){return this.$store.state.show_player_menu},set(e){this.$store.commit(Kr,e)}},show_burger_menu(){return this.$store.state.show_burger_menu},zindex(){return this.show_burger_menu?"z-index: 20":""},now_playing(){return this.$store.getters.now_playing},is_now_playing_page(){return this.$route.path==="/now-playing"},outputs(){return this.$store.state.outputs},player(){return this.$store.state.player},config(){return this.$store.state.config}},watch:{"$store.state.player.volume"(){this.player.volume>0&&(this.old_volume=this.player.volume)}},mounted(){this.setupAudio()},unmounted(){this.closeAudio()},methods:{on_click_outside_outputs(){this.show_outputs_menu=!1},change_volume(){N.player_volume(this.player.volume)},toggle_mute_volume(){this.player.volume=this.player.volume>0?0:this.old_volume,this.change_volume()},setupAudio(){const e=xo.setupAudio();e.addEventListener("waiting",t=>{this.playing=!1,this.loading=!0}),e.addEventListener("playing",t=>{this.playing=!0,this.loading=!1}),e.addEventListener("ended",t=>{this.playing=!1,this.loading=!1}),e.addEventListener("error",t=>{this.closeAudio(),this.$store.dispatch("add_notification",{text:this.$t("navigation.stream-error"),type:"danger"}),this.playing=!1,this.loading=!1})},closeAudio(){xo.stopAudio(),this.playing=!1},playChannel(){if(this.playing)return;const e="/stream.mp3";this.loading=!0,xo.playSource(e),xo.setVolume(this.stream_volume/100)},togglePlay(){if(!this.loading)return this.playing?this.closeAudio():this.playChannel()},change_stream_volume(){console.log(this.stream_volume),xo.setVolume(this.stream_volume/100)}}},rJ={class:"navbar-brand is-flex-grow-1"},oJ={class:"icon"},iJ={class:"is-clipped"},aJ={class:"is-size-7 fd-is-text-clipped"},lJ=["textContent"],uJ=l("br",null,null,-1),cJ=["textContent"],dJ=["textContent"],mJ={class:"icon"},fJ={class:"icon"},pJ={class:"navbar-dropdown is-right is-boxed",style:{"margin-right":"6px","margin-bottom":"6px","border-radius":"6px"}},hJ={class:"navbar-item"},_J={class:"level is-mobile"},gJ={class:"level-left is-flex-grow-1"},yJ={class:"level-item is-flex-grow-0"},vJ={class:"icon"},bJ={class:"level-item"},CJ=["textContent"],wJ=l("hr",{class:"fd-navbar-divider"},null,-1),zJ=l("hr",{class:"fd-navbar-divider"},null,-1),kJ={class:"navbar-item"},xJ={class:"level is-mobile"},EJ={class:"level-left is-flex-grow-1"},$J={class:"level-item is-flex-grow-0"},SJ={class:"level-item"},AJ={class:"is-flex-grow-1"},TJ=["textContent"],OJ={href:"stream.mp3",class:"ml-2",target:"_blank"},DJ={class:"icon"},PJ=["disabled"],IJ=l("hr",{class:"fd-navbar-divider"},null,-1),FJ={class:"navbar-item is-justify-content-center"},RJ={class:"level"},LJ={class:"level-item"},MJ={class:"buttons has-addons"},NJ=l("div",{class:"navbar-start"},null,-1),VJ={class:"navbar-end"},BJ={class:"navbar-item"},HJ={class:"buttons is-centered"},UJ=l("hr",{class:"fd-navbar-divider"},null,-1),jJ={class:"navbar-item"},qJ={class:"level is-mobile"},WJ={class:"level-left is-flex-grow-1"},GJ={class:"level-item is-flex-grow-0"},KJ={class:"icon"},ZJ={class:"level-item"},YJ={class:"is-flex-grow-1"},JJ=["textContent"],XJ=l("hr",{class:"fd-navbar-divider"},null,-1),QJ={class:"navbar-item mb-5"},eX={class:"level is-mobile"},tX={class:"level-left is-flex-grow-1"},nX={class:"level-item is-flex-grow-0"},sX={class:"level-item"},rX={class:"is-flex-grow-1"},oX=["textContent"],iX={href:"stream.mp3",class:"ml-2",target:"_blank"},aX={class:"icon"},lX=["disabled"];function uX(e,t,n,s,r,o){const i=$("mdicon"),a=$("navbar-item-link"),u=$("router-link"),c=$("player-button-previous"),d=$("player-button-seek-back"),f=$("player-button-play-pause"),m=$("player-button-seek-forward"),p=$("player-button-next"),h=$("navbar-item-output"),_=$("player-button-repeat"),w=$("player-button-shuffle"),b=$("player-button-consume");return z(),S("nav",{class:Ae(["fd-bottom-navbar navbar is-white is-fixed-bottom",{"is-transparent":o.is_now_playing_page,"is-dark":!o.is_now_playing_page}]),style:ln(o.zindex),role:"navigation","aria-label":"player controls"},[l("div",rJ,[v(a,{to:"/",exact:""},{default:E(()=>[l("span",oJ,[v(i,{name:"playlist-play",size:"24"})])]),_:1}),o.is_now_playing_page?H("",!0):(z(),be(u,{key:0,to:"/now-playing",class:"navbar-item is-expanded is-clipped","active-class":"is-active",exact:""},{default:E(()=>[l("div",iJ,[l("p",aJ,[l("strong",{textContent:g(o.now_playing.title)},null,8,lJ),uJ,l("span",{textContent:g(o.now_playing.artist)},null,8,cJ),o.now_playing.data_kind==="url"?(z(),S("span",{key:0,textContent:g(e.$t("navigation.now-playing",{album:o.now_playing.album}))},null,8,dJ)):H("",!0)])])]),_:1})),o.is_now_playing_page?(z(),be(c,{key:1,class:"navbar-item ml-auto",icon_size:24})):H("",!0),o.is_now_playing_page?(z(),be(d,{key:2,seek_ms:1e4,class:"navbar-item",icon_size:24})):H("",!0),v(f,{class:"navbar-item",icon_size:36,show_disabled_message:""}),o.is_now_playing_page?(z(),be(m,{key:3,seek_ms:3e4,class:"navbar-item",icon_size:24})):H("",!0),o.is_now_playing_page?(z(),be(p,{key:4,class:"navbar-item",icon_size:24})):H("",!0),l("a",{class:"navbar-item ml-auto is-hidden-desktop",onClick:t[0]||(t[0]=y=>o.show_player_menu=!o.show_player_menu)},[l("span",mJ,[v(i,{name:o.show_player_menu?"chevron-down":"chevron-up",size:"18"},null,8,["name"])])]),l("div",{class:Ae(["navbar-item has-dropdown has-dropdown-up ml-auto is-hidden-touch",{"is-active":o.show_player_menu}])},[l("a",{class:"navbar-link is-arrowless",onClick:t[1]||(t[1]=y=>o.show_player_menu=!o.show_player_menu)},[l("span",fJ,[v(i,{name:o.show_player_menu?"chevron-down":"chevron-up",size:"18"},null,8,["name"])])]),l("div",pJ,[l("div",hJ,[l("div",_J,[l("div",gJ,[l("div",yJ,[l("a",{class:"button is-white is-small",onClick:t[2]||(t[2]=(...y)=>o.toggle_mute_volume&&o.toggle_mute_volume(...y))},[l("span",vJ,[v(i,{name:o.player.volume>0?"volume-high":"volume-off",size:"18"},null,8,["name"])])])]),l("div",bJ,[l("div",null,[l("p",{class:"heading",textContent:g(e.$t("navigation.volume"))},null,8,CJ),dt(l("input",{"onUpdate:modelValue":t[3]||(t[3]=y=>o.player.volume=y),class:"slider",max:"100",type:"range",style:ln({"--ratio":o.player.volume/100,"--cursor":e.$filters.cursor(this.cursor)}),onChange:t[4]||(t[4]=(...y)=>o.change_volume&&o.change_volume(...y))},null,36),[[It,o.player.volume]])])])])])]),wJ,(z(!0),S(Oe,null,ht(o.outputs,y=>(z(),be(h,{key:y.id,output:y},null,8,["output"]))),128)),zJ,l("div",kJ,[l("div",xJ,[l("div",EJ,[l("div",$J,[l("a",{class:Ae(["button is-white is-small",{"is-loading":r.loading}])},[l("span",{class:Ae(["icon is-clickable",{"has-text-grey-light":!r.playing&&!r.loading,"is-loading":r.loading}]),onClick:t[5]||(t[5]=(...y)=>o.togglePlay&&o.togglePlay(...y))},[v(i,{name:"broadcast",size:"18"})],2)],2)]),l("div",SJ,[l("div",AJ,[l("p",{class:Ae(["heading",{"has-text-grey-light":!r.playing}])},[l("span",{textContent:g(e.$t("navigation.stream"))},null,8,TJ),l("a",OJ,[l("span",DJ,[v(i,{name:"open-in-new",size:"16",style:{"vertical-align":"middle"}})])])],2),dt(l("input",{"onUpdate:modelValue":t[6]||(t[6]=y=>r.stream_volume=y),disabled:!r.playing,class:Ae(["slider",{"is-inactive":!r.playing}]),max:"100",type:"range",style:ln({"--ratio":r.stream_volume/100,"--cursor":e.$filters.cursor(this.cursor)}),onChange:t[7]||(t[7]=(...y)=>o.change_stream_volume&&o.change_stream_volume(...y))},null,46,PJ),[[It,r.stream_volume]])])])])])]),IJ,l("div",FJ,[l("div",RJ,[l("div",LJ,[l("div",MJ,[v(_,{class:"button"}),v(w,{class:"button"}),v(b,{class:"button"})])])])])])],2)]),l("div",{class:Ae(["navbar-menu is-hidden-desktop",{"is-active":o.show_player_menu}])},[NJ,l("div",VJ,[l("div",BJ,[l("div",HJ,[v(_,{class:"button",icon_size:18}),v(w,{class:"button",icon_size:18}),v(b,{class:"button",icon_size:18})])]),UJ,l("div",jJ,[l("div",qJ,[l("div",WJ,[l("div",GJ,[l("a",{class:"button is-white is-small",onClick:t[8]||(t[8]=(...y)=>o.toggle_mute_volume&&o.toggle_mute_volume(...y))},[l("span",KJ,[v(i,{name:o.player.volume>0?"volume-high":"volume-off",size:"18"},null,8,["name"])])])]),l("div",ZJ,[l("div",YJ,[l("p",{class:"heading",textContent:g(e.$t("navigation.volume"))},null,8,JJ),dt(l("input",{"onUpdate:modelValue":t[9]||(t[9]=y=>o.player.volume=y),class:"slider",max:"100",type:"range",style:ln({"--ratio":o.player.volume,"--cursor":e.$filters.cursor(this.cursor)}),onChange:t[10]||(t[10]=(...y)=>o.change_volume&&o.change_volume(...y))},null,36),[[It,o.player.volume]])])])])])]),(z(!0),S(Oe,null,ht(o.outputs,y=>(z(),be(h,{key:y.id,output:y},null,8,["output"]))),128)),XJ,l("div",QJ,[l("div",eX,[l("div",tX,[l("div",nX,[l("a",{class:Ae(["button is-white is-small",{"is-loading":r.loading}])},[l("span",{class:Ae(["icon is-clickable",{"has-text-grey-light":!r.playing&&!r.loading,"is-loading":r.loading}]),onClick:t[11]||(t[11]=(...y)=>o.togglePlay&&o.togglePlay(...y))},[v(i,{name:"radio-tower",size:"16"})],2)],2)]),l("div",sX,[l("div",rX,[l("p",{class:Ae(["heading",{"has-text-grey-light":!r.playing}])},[l("span",{textContent:g(e.$t("navigation.stream"))},null,8,oX),l("a",iX,[l("span",aX,[v(i,{name:"open-in-new",size:"16",style:{"vertical-align":"middle"}})])])],2),dt(l("input",{"onUpdate:modelValue":t[12]||(t[12]=y=>r.stream_volume=y),disabled:!r.playing,class:Ae(["slider",{"is-inactive":!r.playing}]),max:"100",type:"range",style:ln({"--ratio":r.stream_volume/100,"--cursor":e.$filters.cursor(this.cursor)}),onChange:t[13]||(t[13]=(...y)=>o.change_stream_volume&&o.change_stream_volume(...y))},null,46,lX),[[It,r.stream_volume]])])])])])])])],2)],6)}var cX=re(sJ,[["render",uX]]);const dX={name:"NotificationList",components:{},data(){return{showNav:!1}},computed:{notifications(){return this.$store.state.notifications.list}},methods:{remove(e){this.$store.commit(yc,e)}}},mX={key:0,class:"fd-notifications"},fX={class:"columns is-centered"},pX={class:"column is-half"},hX=["onClick"],_X=["textContent"];function gX(e,t,n,s,r,o){return o.notifications.length>0?(z(),S("section",mX,[l("div",fX,[l("div",pX,[(z(!0),S(Oe,null,ht(o.notifications,i=>(z(),S("div",{key:i.id,class:Ae(["notification has-shadow",["notification",i.type?`is-${i.type}`:""]])},[l("button",{class:"delete",onClick:a=>o.remove(i)},null,8,hX),l("span",{textContent:g(i.text)},null,8,_X)],2))),128))])])])):H("",!0)}var yX=re(dX,[["render",gX]]);const vX={name:"ModalDialogRemotePairing",props:["show"],emits:["close"],data(){return{pairing_req:{pin:""}}},computed:{pairing(){return this.$store.state.pairing}},watch:{show(){this.show&&(this.loading=!1,setTimeout(()=>{this.$refs.pin_field.focus()},10))}},methods:{kickoff_pairing(){N.pairing_kickoff(this.pairing_req).then(()=>{this.pairing_req.pin=""})}}},bX={key:0,class:"modal is-active"},CX={class:"modal-content fd-modal-card"},wX={class:"card"},zX={class:"card-content"},kX=["textContent"],xX=["textContent"],EX={class:"field"},$X={class:"control"},SX={class:"card-footer"},AX={class:"icon"},TX=["textContent"],OX={class:"icon"},DX=["textContent"];function PX(e,t,n,s,r,o){const i=$("mdicon");return z(),S("div",null,[v(Ft,{name:"fade"},{default:E(()=>[n.show?(z(),S("div",bX,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",CX,[l("div",wX,[l("div",zX,[l("p",{class:"title is-4",textContent:g(e.$t("dialog.remote-pairing.title"))},null,8,kX),l("form",{onSubmit:t[2]||(t[2]=it((...a)=>o.kickoff_pairing&&o.kickoff_pairing(...a),["prevent"]))},[l("label",{class:"label",textContent:g(o.pairing.remote)},null,8,xX),l("div",EX,[l("div",$X,[dt(l("input",{ref:"pin_field","onUpdate:modelValue":t[1]||(t[1]=a=>r.pairing_req.pin=a),class:"input",type:"text",placeholder:"Enter pairing code"},null,512),[[It,r.pairing_req.pin]])])])],32)]),l("footer",SX,[l("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[l("span",AX,[v(i,{name:"cancel",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.remote-pairing.cancel"))},null,8,TX)]),l("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>o.kickoff_pairing&&o.kickoff_pairing(...a))},[l("span",OX,[v(i,{name:"cellphone",size:"16"})]),l("span",{class:"is-size-7",textContent:g(e.$t("dialog.remote-pairing.pair"))},null,8,DX)])])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):H("",!0)]),_:1})])}var IX=re(vX,[["render",PX]]);const FX={name:"ModalDialogUpdate",components:{ModalDialog:Xd},props:["show"],emits:["close"],data(){return{rescan_metadata:!1}},computed:{library(){return this.$store.state.library},rss(){return this.$store.state.rss_count},spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},update_dialog_scan_kind:{get(){return this.$store.state.update_dialog_scan_kind},set(e){this.$store.commit(Ld,e)}}},methods:{update_library(){this.rescan_metadata?N.library_rescan(this.update_dialog_scan_kind):N.library_update(this.update_dialog_scan_kind)},close(){this.update_dialog_scan_kind="",this.$emit("close")}}},RX={key:0},LX=["textContent"],MX={key:0,class:"field"},NX={class:"control"},VX={class:"select is-small"},BX=["textContent"],HX=["textContent"],UX=["textContent"],jX=["textContent"],qX={class:"field"},WX={class:"checkbox is-size-7 is-small"},GX=["textContent"],KX={key:1},ZX=["textContent"];function YX(e,t,n,s,r,o){const i=$("modal-dialog");return z(),be(i,{show:n.show,title:e.$t("dialog.update.title"),ok_action:o.library.updating?"":e.$t("dialog.update.rescan"),close_action:e.$t("dialog.update.cancel"),onOk:o.update_library,onClose:t[2]||(t[2]=a=>o.close())},{"modal-content":E(()=>[o.library.updating?(z(),S("div",KX,[l("p",{class:"mb-3",textContent:g(e.$t("dialog.update.progress"))},null,8,ZX)])):(z(),S("div",RX,[l("p",{class:"mb-3",textContent:g(e.$t("dialog.update.info"))},null,8,LX),o.spotify_enabled||o.rss.tracks>0?(z(),S("div",MX,[l("div",NX,[l("div",VX,[dt(l("select",{"onUpdate:modelValue":t[0]||(t[0]=a=>o.update_dialog_scan_kind=a)},[l("option",{value:"",textContent:g(e.$t("dialog.update.all"))},null,8,BX),l("option",{value:"files",textContent:g(e.$t("dialog.update.local"))},null,8,HX),o.spotify_enabled?(z(),S("option",{key:0,value:"spotify",textContent:g(e.$t("dialog.update.spotify"))},null,8,UX)):H("",!0),o.rss.tracks>0?(z(),S("option",{key:1,value:"rss",textContent:g(e.$t("dialog.update.feeds"))},null,8,jX)):H("",!0)],512),[[Cd,o.update_dialog_scan_kind]])])])])):H("",!0),l("div",qX,[l("label",WX,[dt(l("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>r.rescan_metadata=a),type:"checkbox",style:{"margin-right":"5px"}},null,512),[[gs,r.rescan_metadata]]),l("span",{textContent:g(e.$t("dialog.update.rescan-metadata"))},null,8,GX)])])]))]),_:1},8,["show","title","ok_action","close_action","onOk"])}var JX=re(FX,[["render",YX]]),x1={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(Qt,function(){if(!("WebSocket"in window))return;function t(n,s,r){var o={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3,maxReconnectAttempts:null};r||(r={});for(var i in o)typeof r[i]!="undefined"?this[i]=r[i]:this[i]=o[i];this.url=n,this.reconnectAttempts=0,this.readyState=WebSocket.CONNECTING,this.protocol=null;var a=this,u,c=!1,d=!1,f=document.createElement("div");f.addEventListener("open",function(p){a.onopen(p)}),f.addEventListener("close",function(p){a.onclose(p)}),f.addEventListener("connecting",function(p){a.onconnecting(p)}),f.addEventListener("message",function(p){a.onmessage(p)}),f.addEventListener("error",function(p){a.onerror(p)}),this.addEventListener=f.addEventListener.bind(f),this.removeEventListener=f.removeEventListener.bind(f),this.dispatchEvent=f.dispatchEvent.bind(f);function m(p,h){var _=document.createEvent("CustomEvent");return _.initCustomEvent(p,!1,!1,h),_}this.open=function(p){if(u=new WebSocket(a.url,s||[]),p){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else f.dispatchEvent(m("connecting")),this.reconnectAttempts=0;(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",a.url);var h=u,_=setTimeout(function(){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",a.url),d=!0,h.close(),d=!1},a.timeoutInterval);u.onopen=function(w){clearTimeout(_),(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",a.url),a.protocol=u.protocol,a.readyState=WebSocket.OPEN,a.reconnectAttempts=0;var b=m("open");b.isReconnect=p,p=!1,f.dispatchEvent(b)},u.onclose=function(w){if(clearTimeout(y),u=null,c)a.readyState=WebSocket.CLOSED,f.dispatchEvent(m("close"));else{a.readyState=WebSocket.CONNECTING;var b=m("connecting");b.code=w.code,b.reason=w.reason,b.wasClean=w.wasClean,f.dispatchEvent(b),!p&&!d&&((a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",a.url),f.dispatchEvent(m("close")));var y=a.reconnectInterval*Math.pow(a.reconnectDecay,a.reconnectAttempts);setTimeout(function(){a.reconnectAttempts++,a.open(!0)},y>a.maxReconnectInterval?a.maxReconnectInterval:y)}},u.onmessage=function(w){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",a.url,w.data);var b=m("message");b.data=w.data,f.dispatchEvent(b)},u.onerror=function(w){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",a.url,w),f.dispatchEvent(m("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(p){if(u)return(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",a.url,p),u.send(p);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(p,h){typeof p=="undefined"&&(p=1e3),c=!0,u&&u.close(p,h)},this.refresh=function(){u&&u.close()}}return t.prototype.onopen=function(n){},t.prototype.onclose=function(n){},t.prototype.onconnecting=function(n){},t.prototype.onmessage=function(n){},t.prototype.onerror=function(n){},t.debugAll=!1,t.CONNECTING=WebSocket.CONNECTING,t.OPEN=WebSocket.OPEN,t.CLOSING=WebSocket.CLOSING,t.CLOSED=WebSocket.CLOSED,t})})(x1);var XX=x1.exports;const QX={name:"App",components:{NavbarTop:aY,NavbarBottom:cX,NotificationList:yX,ModalDialogRemotePairing:IX,ModalDialogUpdate:JX},data(){return{token_timer_id:0,reconnect_attempts:0,pairing_active:!1}},computed:{show_burger_menu:{get(){return this.$store.state.show_burger_menu},set(e){this.$store.commit(Gr,e)}},show_player_menu:{get(){return this.$store.state.show_player_menu},set(e){this.$store.commit(Kr,e)}},show_update_dialog:{get(){return this.$store.state.show_update_dialog},set(e){this.$store.commit(wi,e)}}},watch:{show_burger_menu(){this.update_is_clipped()},show_player_menu(){this.update_is_clipped()}},created(){this.connect(),this.$Progress.start(),this.$router.beforeEach((e,t,n)=>{if(e.meta.show_progress){if(e.meta.progress!==void 0){const s=e.meta.progress;this.$Progress.parseMeta(s)}this.$Progress.start()}n()}),this.$router.afterEach((e,t)=>{e.meta.show_progress&&this.$Progress.finish()})},methods:{connect(){N.config().then(({data:e})=>{this.$store.commit(pg,e),this.$store.commit(Ml,e.hide_singles),document.title=e.library_name,this.open_ws(),this.$Progress.finish()}).catch(()=>{this.$store.dispatch("add_notification",{text:this.$t("server.connection-failed"),type:"danger",topic:"connection"})})},open_ws(){if(this.$store.state.config.websocket_port<=0){this.$store.dispatch("add_notification",{text:this.$t("server.missing-port"),type:"danger"});return}const e=this;let t="ws://";window.location.protocol==="https:"&&(t="wss://");let n=t+window.location.hostname+":"+e.$store.state.config.websocket_port;const s=new XX(n,"notify",{reconnectInterval:1e3,maxReconnectInterval:2e3});s.onopen=function(){e.reconnect_attempts=0,s.send(JSON.stringify({notify:["update","database","player","options","outputs","volume","queue","spotify","lastfm","pairing"]})),e.update_outputs(),e.update_player_status(),e.update_library_stats(),e.update_settings(),e.update_queue(),e.update_spotify(),e.update_lastfm(),e.update_pairing()},s.onclose=function(){};var r=!1;function o(){r||(e.update_outputs(),e.update_player_status(),e.update_library_stats(),e.update_settings(),e.update_queue(),e.update_spotify(),e.update_lastfm(),e.update_pairing(),r=!0,setTimeout(()=>{r=!1},500))}window.addEventListener("focus",o),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&o()}),s.onmessage=function(i){const a=JSON.parse(i.data);(a.notify.includes("update")||a.notify.includes("database"))&&e.update_library_stats(),(a.notify.includes("player")||a.notify.includes("options")||a.notify.includes("volume"))&&e.update_player_status(),(a.notify.includes("outputs")||a.notify.includes("volume"))&&e.update_outputs(),a.notify.includes("queue")&&e.update_queue(),a.notify.includes("spotify")&&e.update_spotify(),a.notify.includes("lastfm")&&e.update_lastfm(),a.notify.includes("pairing")&&e.update_pairing()}},update_library_stats(){N.library_stats().then(({data:e})=>{this.$store.commit(_g,e)}),N.library_count("media_kind is audiobook").then(({data:e})=>{this.$store.commit(gg,e)}),N.library_count("media_kind is podcast").then(({data:e})=>{this.$store.commit(yg,e)}),N.library_count("scan_kind is rss").then(({data:e})=>{this.$store.commit(vg,e)})},update_outputs(){N.outputs().then(({data:e})=>{this.$store.commit(bg,e.outputs)})},update_player_status(){N.player_status().then(({data:e})=>{this.$store.commit(Dd,e)})},update_queue(){N.queue().then(({data:e})=>{this.$store.commit(Cg,e)})},update_settings(){N.settings().then(({data:e})=>{this.$store.commit(hg,e)})},update_lastfm(){N.lastfm().then(({data:e})=>{this.$store.commit(wg,e)})},update_spotify(){N.spotify().then(({data:e})=>{this.$store.commit(zg,e),this.token_timer_id>0&&(window.clearTimeout(this.token_timer_id),this.token_timer_id=0),e.webapi_token_expires_in>0&&e.webapi_token&&(this.token_timer_id=window.setTimeout(this.update_spotify,1e3*e.webapi_token_expires_in))})},update_pairing(){N.pairing().then(({data:e})=>{this.$store.commit(kg,e),this.pairing_active=e.active})},update_is_clipped(){this.show_burger_menu||this.show_player_menu?document.querySelector("html").classList.add("is-clipped"):document.querySelector("html").classList.remove("is-clipped")}},template:"<App/>"},eQ={id:"app"};function tQ(e,t,n,s,r,o){const i=$("navbar-top"),a=$("vue-progress-bar"),u=$("router-view"),c=$("modal-dialog-remote-pairing"),d=$("modal-dialog-update"),f=$("notification-list"),m=$("navbar-bottom");return z(),S("div",eQ,[v(i),v(a,{class:"fd-progress-bar"}),v(u,null,{default:E(({Component:p})=>[(z(),be(Kh(p)))]),_:1}),v(c,{show:r.pairing_active,onClose:t[0]||(t[0]=p=>r.pairing_active=!1)},null,8,["show"]),v(d,{show:o.show_update_dialog,onClose:t[1]||(t[1]=p=>o.show_update_dialog=!1)},null,8,["show"]),dt(v(f,null,null,512),[[ui,!o.show_burger_menu]]),v(m),dt(l("div",{class:"fd-overlay-fullscreen",onClick:t[2]||(t[2]=p=>o.show_burger_menu=o.show_player_menu=!1)},null,512),[[ui,o.show_burger_menu||o.show_player_menu]])])}var nQ=re(QX,[["render",tQ]]);const E1=R_(nQ).use(Ke).use(yv).use(WW,{color:"hsl(204, 86%, 53%)",failedColor:"red",height:"1px"}).use(KW).use(iG,{log:!1}).use(aG).use(hG,{icons:_Z}).use(Fl);E1.config.globalProperties.$filters=hZ;E1.mount("#app");
|