mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 00:05:03 -05:00
39 lines
670 KiB
JavaScript
39 lines
670 KiB
JavaScript
var tb=Object.defineProperty,sb=Object.defineProperties;var nb=Object.getOwnPropertyDescriptors;var Ai=Object.getOwnPropertySymbols;var kf=Object.prototype.hasOwnProperty,xf=Object.prototype.propertyIsEnumerable;var wf=(e,t,s)=>t in e?tb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Je=(e,t)=>{for(var s in t||(t={}))kf.call(t,s)&&wf(e,s,t[s]);if(Ai)for(var s of Ai(t))xf.call(t,s)&&wf(e,s,t[s]);return e},Ws=(e,t)=>sb(e,nb(t));var nu=(e,t)=>{var s={};for(var n in e)kf.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(e!=null&&Ai)for(var n of Ai(e))t.indexOf(n)<0&&xf.call(e,n)&&(s[n]=e[n]);return s};const rb=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function s(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerpolicy&&(r.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?r.credentials="include":o.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(o){if(o.ep)return;o.ep=!0;const r=s(o);fetch(o.href,r)}};rb();function al(e,t){const s=Object.create(null),n=e.split(",");for(let o=0;o<n.length;o++)s[n[o]]=!0;return t?o=>!!s[o.toLowerCase()]:o=>!!s[o]}const ob="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",ib=al(ob),ab="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lb=al(ab);function jm(e){return!!e||e===""}function Hn(e){if(ze(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],o=Ot(n)?db(n):Hn(n);if(o)for(const r in o)t[r]=o[r]}return t}else{if(Ot(e))return e;if(Rt(e))return e}}const ub=/;(?![^(]*\))/g,cb=/:(.+)/;function db(e){const t={};return e.split(ub).forEach(s=>{if(s){const n=s.split(cb);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Le(e){let t="";if(Ot(e))t=e;else if(ze(e))for(let s=0;s<e.length;s++){const n=Le(e[s]);n&&(t+=n+" ")}else if(Rt(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}function fb(e){if(!e)return null;let{class:t,style:s}=e;return t&&!Ot(t)&&(e.class=Le(t)),s&&(e.style=Hn(s)),e}function hb(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Mn(e[n],t[n]);return s}function Mn(e,t){if(e===t)return!0;let s=Sf(e),n=Sf(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=ze(e),n=ze(t),s||n)return s&&n?hb(e,t):!1;if(s=Rt(e),n=Rt(t),s||n){if(!s||!n)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const i in e){const a=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(a&&!u||!a&&u||!Mn(e[i],t[i]))return!1}}return String(e)===String(t)}function ll(e,t){return e.findIndex(s=>Mn(s,t))}const R=e=>Ot(e)?e:e==null?"":ze(e)||Rt(e)&&(e.toString===Um||!et(e.toString))?JSON.stringify(e,Bm,2):String(e),Bm=(e,t)=>t&&t.__v_isRef?Bm(e,t.value):Br(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,o])=>(s[`${n} =>`]=o,s),{})}:fr(t)?{[`Set(${t.size})`]:[...t.values()]}:Rt(t)&&!ze(t)&&!Vm(t)?String(t):t,gt={},jr=[],Hs=()=>{},mb=()=>!1,pb=/^on[^a-z]/,ci=e=>pb.test(e),Nc=e=>e.startsWith("onUpdate:"),It=Object.assign,Mc=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},_b=Object.prototype.hasOwnProperty,dt=(e,t)=>_b.call(e,t),ze=Array.isArray,Br=e=>ul(e)==="[object Map]",fr=e=>ul(e)==="[object Set]",Sf=e=>e instanceof Date,et=e=>typeof e=="function",Ot=e=>typeof e=="string",Lc=e=>typeof e=="symbol",Rt=e=>e!==null&&typeof e=="object",jc=e=>Rt(e)&&et(e.then)&&et(e.catch),Um=Object.prototype.toString,ul=e=>Um.call(e),gb=e=>ul(e).slice(8,-1),Vm=e=>ul(e)==="[object Object]",Bc=e=>Ot(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,No=al(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cl=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},vb=/-(\w)/g,Ss=cl(e=>e.replace(vb,(t,s)=>s?s.toUpperCase():"")),yb=/\B([A-Z])/g,Zs=cl(e=>e.replace(yb,"-$1").toLowerCase()),di=cl(e=>e.charAt(0).toUpperCase()+e.slice(1)),Mo=cl(e=>e?`on${di(e)}`:""),si=(e,t)=>!Object.is(e,t),Ur=(e,t)=>{for(let s=0;s<e.length;s++)e[s](t)},Ba=(e,t,s)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:s})},Ln=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ef;const bb=()=>Ef||(Ef=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let vs;class Uc{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&vs&&(this.parent=vs,this.index=(vs.scopes||(vs.scopes=[])).push(this)-1)}run(t){if(this.active){const s=vs;try{return vs=this,t()}finally{vs=s}}}on(){vs=this}off(){vs=this.parent}stop(t){if(this.active){let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.scopes)for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);if(this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.active=!1}}}function wb(e){return new Uc(e)}function Hm(e,t=vs){t&&t.active&&t.effects.push(e)}function kb(){return vs}function xb(e){vs&&vs.cleanups.push(e)}const Vc=e=>{const t=new Set(e);return t.w=0,t.n=0,t},qm=e=>(e.w&jn)>0,zm=e=>(e.n&jn)>0,Sb=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=jn},Eb=e=>{const{deps:t}=e;if(t.length){let s=0;for(let n=0;n<t.length;n++){const o=t[n];qm(o)&&!zm(o)?o.delete(e):t[s++]=o,o.w&=~jn,o.n&=~jn}t.length=s}},Uu=new WeakMap;let $o=0,jn=1;const Vu=30;let Us;const ir=Symbol(""),Hu=Symbol("");class fi{constructor(t,s=null,n){this.fn=t,this.scheduler=s,this.active=!0,this.deps=[],this.parent=void 0,Hm(this,n)}run(){if(!this.active)return this.fn();let t=Us,s=Rn;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Us,Us=this,Rn=!0,jn=1<<++$o,$o<=Vu?Sb(this):Cf(this),this.fn()}finally{$o<=Vu&&Eb(this),jn=1<<--$o,Us=this.parent,Rn=s,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Us===this?this.deferStop=!0:this.active&&(Cf(this),this.onStop&&this.onStop(),this.active=!1)}}function Cf(e){const{deps:t}=e;if(t.length){for(let s=0;s<t.length;s++)t[s].delete(e);t.length=0}}function Cb(e,t){e.effect&&(e=e.effect.fn);const s=new fi(e);t&&(It(s,t),t.scope&&Hm(s,t.scope)),(!t||!t.lazy)&&s.run();const n=s.run.bind(s);return n.effect=s,n}function $b(e){e.effect.stop()}let Rn=!0;const Gm=[];function hr(){Gm.push(Rn),Rn=!1}function mr(){const e=Gm.pop();Rn=e===void 0?!0:e}function Es(e,t,s){if(Rn&&Us){let n=Uu.get(e);n||Uu.set(e,n=new Map);let o=n.get(s);o||n.set(s,o=Vc()),Wm(o)}}function Wm(e,t){let s=!1;$o<=Vu?zm(e)||(e.n|=jn,s=!qm(e)):s=!e.has(Us),s&&(e.add(Us),Us.deps.push(e))}function hn(e,t,s,n,o,r){const i=Uu.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(s==="length"&&ze(e))i.forEach((u,c)=>{(c==="length"||c>=n)&&a.push(u)});else switch(s!==void 0&&a.push(i.get(s)),t){case"add":ze(e)?Bc(s)&&a.push(i.get("length")):(a.push(i.get(ir)),Br(e)&&a.push(i.get(Hu)));break;case"delete":ze(e)||(a.push(i.get(ir)),Br(e)&&a.push(i.get(Hu)));break;case"set":Br(e)&&a.push(i.get(ir));break}if(a.length===1)a[0]&&qu(a[0]);else{const u=[];for(const c of a)c&&u.push(...c);qu(Vc(u))}}function qu(e,t){for(const s of ze(e)?e:[...e])(s!==Us||s.allowRecurse)&&(s.scheduler?s.scheduler():s.run())}const Ob=al("__proto__,__v_isRef,__isVue"),Km=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Lc)),Tb=dl(),Ab=dl(!1,!0),Pb=dl(!0),Db=dl(!0,!0),$f=Fb();function Fb(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...s){const n=lt(this);for(let r=0,i=this.length;r<i;r++)Es(n,"get",r+"");const o=n[t](...s);return o===-1||o===!1?n[t](...s.map(lt)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...s){hr();const n=lt(this)[t].apply(this,s);return mr(),n}}),e}function dl(e=!1,t=!1){return function(n,o,r){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&r===(e?t?tp:ep:t?Qm:Xm).get(n))return n;const i=ze(n);if(!e&&i&&dt($f,o))return Reflect.get($f,o,r);const a=Reflect.get(n,o,r);return(Lc(o)?Km.has(o):Ob(o))||(e||Es(n,"get",o),t)?a:Vt(a)?!i||!Bc(o)?a.value:a:Rt(a)?e?qc(a):pr(a):a}}const Ib=Ym(),Rb=Ym(!0);function Ym(e=!1){return function(s,n,o,r){let i=s[n];if(zr(i)&&Vt(i)&&!Vt(o))return!1;if(!e&&!zr(o)&&(zc(o)||(o=lt(o),i=lt(i)),!ze(s)&&Vt(i)&&!Vt(o)))return i.value=o,!0;const a=ze(s)&&Bc(n)?Number(n)<s.length:dt(s,n),u=Reflect.set(s,n,o,r);return s===lt(r)&&(a?si(o,i)&&hn(s,"set",n,o):hn(s,"add",n,o)),u}}function Nb(e,t){const s=dt(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&s&&hn(e,"delete",t,void 0),n}function Mb(e,t){const s=Reflect.has(e,t);return(!Lc(t)||!Km.has(t))&&Es(e,"has",t),s}function Lb(e){return Es(e,"iterate",ze(e)?"length":ir),Reflect.ownKeys(e)}const Zm={get:Tb,set:Ib,deleteProperty:Nb,has:Mb,ownKeys:Lb},Jm={get:Pb,set(e,t){return!0},deleteProperty(e,t){return!0}},jb=It({},Zm,{get:Ab,set:Rb}),Bb=It({},Jm,{get:Db}),Hc=e=>e,fl=e=>Reflect.getPrototypeOf(e);function Pi(e,t,s=!1,n=!1){e=e.__v_raw;const o=lt(e),r=lt(t);t!==r&&!s&&Es(o,"get",t),!s&&Es(o,"get",r);const{has:i}=fl(o),a=n?Hc:s?Kc:ni;if(i.call(o,t))return a(e.get(t));if(i.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function Di(e,t=!1){const s=this.__v_raw,n=lt(s),o=lt(e);return e!==o&&!t&&Es(n,"has",e),!t&&Es(n,"has",o),e===o?s.has(e):s.has(e)||s.has(o)}function Fi(e,t=!1){return e=e.__v_raw,!t&&Es(lt(e),"iterate",ir),Reflect.get(e,"size",e)}function Of(e){e=lt(e);const t=lt(this);return fl(t).has.call(t,e)||(t.add(e),hn(t,"add",e,e)),this}function Tf(e,t){t=lt(t);const s=lt(this),{has:n,get:o}=fl(s);let r=n.call(s,e);r||(e=lt(e),r=n.call(s,e));const i=o.call(s,e);return s.set(e,t),r?si(t,i)&&hn(s,"set",e,t):hn(s,"add",e,t),this}function Af(e){const t=lt(this),{has:s,get:n}=fl(t);let o=s.call(t,e);o||(e=lt(e),o=s.call(t,e)),n&&n.call(t,e);const r=t.delete(e);return o&&hn(t,"delete",e,void 0),r}function Pf(){const e=lt(this),t=e.size!==0,s=e.clear();return t&&hn(e,"clear",void 0,void 0),s}function Ii(e,t){return function(n,o){const r=this,i=r.__v_raw,a=lt(i),u=t?Hc:e?Kc:ni;return!e&&Es(a,"iterate",ir),i.forEach((c,d)=>n.call(o,u(c),u(d),r))}}function Ri(e,t,s){return function(...n){const o=this.__v_raw,r=lt(o),i=Br(r),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,c=o[e](...n),d=s?Hc:t?Kc:ni;return!t&&Es(r,"iterate",u?Hu:ir),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[d(h[0]),d(h[1])]:d(h),done:f}},[Symbol.iterator](){return this}}}}function wn(e){return function(...t){return e==="delete"?!1:this}}function Ub(){const e={get(r){return Pi(this,r)},get size(){return Fi(this)},has:Di,add:Of,set:Tf,delete:Af,clear:Pf,forEach:Ii(!1,!1)},t={get(r){return Pi(this,r,!1,!0)},get size(){return Fi(this)},has:Di,add:Of,set:Tf,delete:Af,clear:Pf,forEach:Ii(!1,!0)},s={get(r){return Pi(this,r,!0)},get size(){return Fi(this,!0)},has(r){return Di.call(this,r,!0)},add:wn("add"),set:wn("set"),delete:wn("delete"),clear:wn("clear"),forEach:Ii(!0,!1)},n={get(r){return Pi(this,r,!0,!0)},get size(){return Fi(this,!0)},has(r){return Di.call(this,r,!0)},add:wn("add"),set:wn("set"),delete:wn("delete"),clear:wn("clear"),forEach:Ii(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Ri(r,!1,!1),s[r]=Ri(r,!0,!1),t[r]=Ri(r,!1,!0),n[r]=Ri(r,!0,!0)}),[e,s,t,n]}const[Vb,Hb,qb,zb]=Ub();function hl(e,t){const s=t?e?zb:qb:e?Hb:Vb;return(n,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(dt(s,o)&&o in n?s:n,o,r)}const Gb={get:hl(!1,!1)},Wb={get:hl(!1,!0)},Kb={get:hl(!0,!1)},Yb={get:hl(!0,!0)},Xm=new WeakMap,Qm=new WeakMap,ep=new WeakMap,tp=new WeakMap;function Zb(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jb(e){return e.__v_skip||!Object.isExtensible(e)?0:Zb(gb(e))}function pr(e){return zr(e)?e:ml(e,!1,Zm,Gb,Xm)}function sp(e){return ml(e,!1,jb,Wb,Qm)}function qc(e){return ml(e,!0,Jm,Kb,ep)}function Xb(e){return ml(e,!0,Bb,Yb,tp)}function ml(e,t,s,n,o){if(!Rt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=Jb(e);if(i===0)return e;const a=new Proxy(e,i===2?n:s);return o.set(e,a),a}function ar(e){return zr(e)?ar(e.__v_raw):!!(e&&e.__v_isReactive)}function zr(e){return!!(e&&e.__v_isReadonly)}function zc(e){return!!(e&&e.__v_isShallow)}function Gc(e){return ar(e)||zr(e)}function lt(e){const t=e&&e.__v_raw;return t?lt(t):e}function Wc(e){return Ba(e,"__v_skip",!0),e}const ni=e=>Rt(e)?pr(e):e,Kc=e=>Rt(e)?qc(e):e;function Yc(e){Rn&&Us&&(e=lt(e),Wm(e.dep||(e.dep=Vc())))}function pl(e,t){e=lt(e),e.dep&&qu(e.dep)}function Vt(e){return!!(e&&e.__v_isRef===!0)}function cn(e){return rp(e,!1)}function np(e){return rp(e,!0)}function rp(e,t){return Vt(e)?e:new Qb(e,t)}class Qb{constructor(t,s){this.__v_isShallow=s,this.dep=void 0,this.__v_isRef=!0,this._rawValue=s?t:lt(t),this._value=s?t:ni(t)}get value(){return Yc(this),this._value}set value(t){t=this.__v_isShallow?t:lt(t),si(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:ni(t),pl(this))}}function e1(e){pl(e)}function Vr(e){return Vt(e)?e.value:e}const t1={get:(e,t,s)=>Vr(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return Vt(o)&&!Vt(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function Zc(e){return ar(e)?e:new Proxy(e,t1)}class s1{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:s,set:n}=t(()=>Yc(this),()=>pl(this));this._get=s,this._set=n}get value(){return this._get()}set value(t){this._set(t)}}function n1(e){return new s1(e)}function Lo(e){const t=ze(e)?new Array(e.length):{};for(const s in e)t[s]=op(e,s);return t}class r1{constructor(t,s,n){this._object=t,this._key=s,this._defaultValue=n,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}}function op(e,t,s){const n=e[t];return Vt(n)?n:new r1(e,t,s)}class o1{constructor(t,s,n,o){this._setter=s,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new fi(t,()=>{this._dirty||(this._dirty=!0,pl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const t=lt(this);return Yc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function i1(e,t,s=!1){let n,o;const r=et(e);return r?(n=e,o=Hs):(n=e.get,o=e.set),new o1(n,o,r||!o,s)}const jo=[];function ip(e,...t){hr();const s=jo.length?jo[jo.length-1].component:null,n=s&&s.appContext.config.warnHandler,o=a1();if(n)Js(n,s,11,[e+t.join(""),s&&s.proxy,o.map(({vnode:r})=>`at <${Zp(s,r.type)}>`).join(`
|
|
`),o]);else{const r=[`[Vue warn]: ${e}`,...t];o.length&&r.push(`
|
|
`,...l1(o)),console.warn(...r)}mr()}function a1(){let e=jo[jo.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function l1(e){const t=[];return e.forEach((s,n)=>{t.push(...n===0?[]:[`
|
|
`],...u1(s))}),t}function u1({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,o=` at <${Zp(e.component,e.type,n)}`,r=">"+s;return e.props?[o,...c1(e.props),r]:[o+r]}function c1(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...ap(n,e[n]))}),s.length>3&&t.push(" ..."),t}function ap(e,t,s){return Ot(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:Vt(t)?(t=ap(e,lt(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):et(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=lt(t),s?t:[`${e}=`,t])}function Js(e,t,s,n){let o;try{o=n?e(...n):e()}catch(r){_r(r,t,s)}return o}function ks(e,t,s,n){if(et(e)){const r=Js(e,t,s,n);return r&&jc(r)&&r.catch(i=>{_r(i,t,s)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(ks(e[r],t,s,n));return o}function _r(e,t,s,n=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,a=s;for(;r;){const c=r.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,i,a)===!1)return}r=r.parent}const u=t.appContext.config.errorHandler;if(u){Js(u,null,10,[e,i,a]);return}}d1(e,s,o,n)}function d1(e,t,s,n=!0){console.error(e)}let Ua=!1,zu=!1;const ws=[];let ln=0;const Bo=[];let Oo=null,Dr=0;const Uo=[];let $n=null,Fr=0;const lp=Promise.resolve();let Jc=null,Gu=null;function _l(e){const t=Jc||lp;return e?t.then(this?e.bind(this):e):t}function f1(e){let t=ln+1,s=ws.length;for(;t<s;){const n=t+s>>>1;ri(ws[n])<e?t=n+1:s=n}return t}function Xc(e){(!ws.length||!ws.includes(e,Ua&&e.allowRecurse?ln+1:ln))&&e!==Gu&&(e.id==null?ws.push(e):ws.splice(f1(e.id),0,e),up())}function up(){!Ua&&!zu&&(zu=!0,Jc=lp.then(dp))}function h1(e){const t=ws.indexOf(e);t>ln&&ws.splice(t,1)}function cp(e,t,s,n){ze(e)?s.push(...e):(!t||!t.includes(e,e.allowRecurse?n+1:n))&&s.push(e),up()}function m1(e){cp(e,Oo,Bo,Dr)}function Qc(e){cp(e,$n,Uo,Fr)}function ed(e,t=null){if(Bo.length){for(Gu=t,Oo=[...new Set(Bo)],Bo.length=0,Dr=0;Dr<Oo.length;Dr++)Oo[Dr]();Oo=null,Dr=0,Gu=null,ed(e,t)}}function Va(e){if(Uo.length){const t=[...new Set(Uo)];if(Uo.length=0,$n){$n.push(...t);return}for($n=t,$n.sort((s,n)=>ri(s)-ri(n)),Fr=0;Fr<$n.length;Fr++)$n[Fr]();$n=null,Fr=0}}const ri=e=>e.id==null?1/0:e.id;function dp(e){zu=!1,Ua=!0,ed(e),ws.sort((s,n)=>ri(s)-ri(n));const t=Hs;try{for(ln=0;ln<ws.length;ln++){const s=ws[ln];s&&s.active!==!1&&Js(s,null,14)}}finally{ln=0,ws.length=0,Va(),Ua=!1,Jc=null,(ws.length||Bo.length||Uo.length)&&dp(e)}}let Ir,Ni=[];function fp(e,t){var s,n;Ir=e,Ir?(Ir.enabled=!0,Ni.forEach(({event:o,args:r})=>Ir.emit(o,...r)),Ni=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((n=(s=window.navigator)===null||s===void 0?void 0:s.userAgent)===null||n===void 0)&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{fp(r,t)}),setTimeout(()=>{Ir||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ni=[])},3e3)):Ni=[]}function p1(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||gt;let o=s;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in n){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:h,trim:f}=n[d]||gt;f?o=s.map(m=>m.trim()):h&&(o=s.map(Ln))}let a,u=n[a=Mo(t)]||n[a=Mo(Ss(t))];!u&&r&&(u=n[a=Mo(Zs(t))]),u&&ks(u,e,6,o);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ks(c,e,6,o)}}function hp(e,t,s=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!et(e)){const u=c=>{const d=hp(c,t,!0);d&&(a=!0,It(i,d))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!a?(n.set(e,null),null):(ze(r)?r.forEach(u=>i[u]=null):It(i,r),n.set(e,i),i)}function gl(e,t){return!e||!ci(t)?!1:(t=t.slice(2).replace(/Once$/,""),dt(e,t[0].toLowerCase()+t.slice(1))||dt(e,Zs(t))||dt(e,t))}let Qt=null,vl=null;function oi(e){const t=Qt;return Qt=e,vl=e&&e.type.__scopeId||null,t}function _1(e){vl=e}function g1(){vl=null}const v1=e=>T;function T(e,t=Qt,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&Ju(-1);const r=oi(t),i=e(...o);return oi(r),n._d&&Ju(1),i};return n._n=!0,n._c=!0,n._d=!0,n}function Ta(e){const{type:t,vnode:s,proxy:n,withProxy:o,props:r,propsOptions:[i],slots:a,attrs:u,emit:c,render:d,renderCache:h,data:f,setupState:m,ctx:p,inheritAttrs:_}=e;let g,y;const b=oi(e);try{if(s.shapeFlag&4){const S=o||n;g=ys(d.call(S,S,h,r,m,f,p)),y=u}else{const S=t;g=ys(S.length>1?S(r,{attrs:u,slots:a,emit:c}):S(r,null)),y=t.props?u:b1(u)}}catch(S){qo.length=0,_r(S,e,1),g=P(ss)}let k=g;if(y&&_!==!1){const S=Object.keys(y),{shapeFlag:E}=k;S.length&&E&7&&(i&&S.some(Nc)&&(y=w1(y,i)),k=mn(k,y))}return s.dirs&&(k.dirs=k.dirs?k.dirs.concat(s.dirs):s.dirs),s.transition&&(k.transition=s.transition),g=k,oi(b),g}function y1(e){let t;for(let s=0;s<e.length;s++){const n=e[s];if(Bn(n)){if(n.type!==ss||n.children==="v-if"){if(t)return;t=n}}else return}return t}const b1=e=>{let t;for(const s in e)(s==="class"||s==="style"||ci(s))&&((t||(t={}))[s]=e[s]);return t},w1=(e,t)=>{const s={};for(const n in e)(!Nc(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function k1(e,t,s){const{props:n,children:o,component:r}=e,{props:i,children:a,patchFlag:u}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?Df(n,i,c):!!i;if(u&8){const d=t.dynamicProps;for(let h=0;h<d.length;h++){const f=d[h];if(i[f]!==n[f]&&!gl(c,f))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:n===i?!1:n?i?Df(n,i,c):!0:!!i;return!1}function Df(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const r=n[o];if(t[r]!==e[r]&&!gl(s,r))return!0}return!1}function td({vnode:e,parent:t},s){for(;t&&t.subTree===e;)(e=t.vnode).el=s,t=t.parent}const x1=e=>e.__isSuspense,S1={name:"Suspense",__isSuspense:!0,process(e,t,s,n,o,r,i,a,u,c){e==null?C1(t,s,n,o,r,i,a,u,c):$1(e,t,s,n,o,i,a,u,c)},hydrate:O1,create:sd,normalize:T1},E1=S1;function ii(e,t){const s=e.props&&e.props[t];et(s)&&s()}function C1(e,t,s,n,o,r,i,a,u){const{p:c,o:{createElement:d}}=u,h=d("div"),f=e.suspense=sd(e,o,n,t,h,s,r,i,a,u);c(null,f.pendingBranch=e.ssContent,h,null,n,f,r,i),f.deps>0?(ii(e,"onPending"),ii(e,"onFallback"),c(null,e.ssFallback,t,s,n,null,r,i),Hr(f,e.ssFallback)):f.resolve()}function $1(e,t,s,n,o,r,i,a,{p:u,um:c,o:{createElement:d}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const f=t.ssContent,m=t.ssFallback,{activeBranch:p,pendingBranch:_,isInFallback:g,isHydrating:y}=h;if(_)h.pendingBranch=f,Ys(f,_)?(u(_,f,h.hiddenContainer,null,o,h,r,i,a),h.deps<=0?h.resolve():g&&(u(p,m,s,n,o,null,r,i,a),Hr(h,m))):(h.pendingId++,y?(h.isHydrating=!1,h.activeBranch=_):c(_,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=d("div"),g?(u(null,f,h.hiddenContainer,null,o,h,r,i,a),h.deps<=0?h.resolve():(u(p,m,s,n,o,null,r,i,a),Hr(h,m))):p&&Ys(f,p)?(u(p,f,s,n,o,h,r,i,a),h.resolve(!0)):(u(null,f,h.hiddenContainer,null,o,h,r,i,a),h.deps<=0&&h.resolve()));else if(p&&Ys(f,p))u(p,f,s,n,o,h,r,i,a),Hr(h,f);else if(ii(t,"onPending"),h.pendingBranch=f,h.pendingId++,u(null,f,h.hiddenContainer,null,o,h,r,i,a),h.deps<=0)h.resolve();else{const{timeout:b,pendingId:k}=h;b>0?setTimeout(()=>{h.pendingId===k&&h.fallback(m)},b):b===0&&h.fallback(m)}}function sd(e,t,s,n,o,r,i,a,u,c,d=!1){const{p:h,m:f,um:m,n:p,o:{parentNode:_,remove:g}}=c,y=Ln(e.props&&e.props.timeout),b={vnode:e,parent:t,parentComponent:s,isSVG:i,container:n,hiddenContainer:o,anchor:r,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(k=!1){const{vnode:S,activeBranch:E,pendingBranch:$,pendingId:I,effects:j,parentComponent:O,container:L}=b;if(b.isHydrating)b.isHydrating=!1;else if(!k){const U=E&&$.transition&&$.transition.mode==="out-in";U&&(E.transition.afterLeave=()=>{I===b.pendingId&&f($,L,W,0)});let{anchor:W}=b;E&&(W=p(E),m(E,O,b,!0)),U||f($,L,W,0)}Hr(b,$),b.pendingBranch=null,b.isInFallback=!1;let z=b.parent,D=!1;for(;z;){if(z.pendingBranch){z.effects.push(...j),D=!0;break}z=z.parent}D||Qc(j),b.effects=[],ii(S,"onResolve")},fallback(k){if(!b.pendingBranch)return;const{vnode:S,activeBranch:E,parentComponent:$,container:I,isSVG:j}=b;ii(S,"onFallback");const O=p(E),L=()=>{!b.isInFallback||(h(null,k,I,O,$,null,j,a,u),Hr(b,k))},z=k.transition&&k.transition.mode==="out-in";z&&(E.transition.afterLeave=L),b.isInFallback=!0,m(E,$,null,!0),z||L()},move(k,S,E){b.activeBranch&&f(b.activeBranch,k,S,E),b.container=k},next(){return b.activeBranch&&p(b.activeBranch)},registerDep(k,S){const E=!!b.pendingBranch;E&&b.deps++;const $=k.vnode.el;k.asyncDep.catch(I=>{_r(I,k,0)}).then(I=>{if(k.isUnmounted||b.isUnmounted||b.pendingId!==k.suspenseId)return;k.asyncResolved=!0;const{vnode:j}=k;ec(k,I,!1),$&&(j.el=$);const O=!$&&k.subTree.el;S(k,j,_($||k.subTree.el),$?null:p(k.subTree),b,i,u),O&&g(O),td(k,j.el),E&&--b.deps===0&&b.resolve()})},unmount(k,S){b.isUnmounted=!0,b.activeBranch&&m(b.activeBranch,s,k,S),b.pendingBranch&&m(b.pendingBranch,s,k,S)}};return b}function O1(e,t,s,n,o,r,i,a,u){const c=t.suspense=sd(t,n,s,e.parentNode,document.createElement("div"),null,o,r,i,a,!0),d=u(e,c.pendingBranch=t.ssContent,s,c,r,i);return c.deps===0&&c.resolve(),d}function T1(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=Ff(n?s.default:s),e.ssFallback=n?Ff(s.fallback):P(ss)}function Ff(e){let t;if(et(e)){const s=Yr&&e._c;s&&(e._d=!1,x()),e=e(),s&&(e._d=!0,t=Qs,Bp())}return ze(e)&&(e=y1(e)),e=ys(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function mp(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):Qc(e)}function Hr(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e,o=s.el=t.el;n&&n.subTree===s&&(n.vnode.el=o,td(n,o))}function Vo(e,t){if(Gt){let s=Gt.provides;const n=Gt.parent&&Gt.parent.provides;n===s&&(s=Gt.provides=Object.create(n)),s[e]=t}}function Xs(e,t,s=!1){const n=Gt||Qt;if(n){const o=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return s&&et(t)?t.call(n.proxy):t}}function A1(e,t){return hi(e,null,t)}function pp(e,t){return hi(e,null,{flush:"post"})}function P1(e,t){return hi(e,null,{flush:"sync"})}const If={};function Bt(e,t,s){return hi(e,t,s)}function hi(e,t,{immediate:s,deep:n,flush:o,onTrack:r,onTrigger:i}=gt){const a=Gt;let u,c=!1,d=!1;if(Vt(e)?(u=()=>e.value,c=zc(e)):ar(e)?(u=()=>e,n=!0):ze(e)?(d=!0,c=e.some(ar),u=()=>e.map(y=>{if(Vt(y))return y.value;if(ar(y))return or(y);if(et(y))return Js(y,a,2)})):et(e)?t?u=()=>Js(e,a,2):u=()=>{if(!(a&&a.isUnmounted))return h&&h(),ks(e,a,3,[f])}:u=Hs,t&&n){const y=u;u=()=>or(y())}let h,f=y=>{h=g.onStop=()=>{Js(y,a,4)}};if(Zr)return f=Hs,t?s&&ks(t,a,3,[u(),d?[]:void 0,f]):u(),Hs;let m=d?[]:If;const p=()=>{if(!!g.active)if(t){const y=g.run();(n||c||(d?y.some((b,k)=>si(b,m[k])):si(y,m)))&&(h&&h(),ks(t,a,3,[y,m===If?void 0:m,f]),m=y)}else g.run()};p.allowRecurse=!!t;let _;o==="sync"?_=p:o==="post"?_=()=>Yt(p,a&&a.suspense):_=()=>{!a||a.isMounted?m1(p):p()};const g=new fi(u,_);return t?s?p():m=g.run():o==="post"?Yt(g.run.bind(g),a&&a.suspense):g.run(),()=>{g.stop(),a&&a.scope&&Mc(a.scope.effects,g)}}function D1(e,t,s){const n=this.proxy,o=Ot(e)?e.includes(".")?_p(n,e):()=>n[e]:e.bind(n,n);let r;et(t)?r=t:(r=t.handler,s=t);const i=Gt;Un(this);const a=hi(o,r.bind(n),s);return i?Un(i):Nn(),a}function _p(e,t){const s=t.split(".");return()=>{let n=e;for(let o=0;o<s.length&&n;o++)n=n[s[o]];return n}}function or(e,t){if(!Rt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Vt(e))or(e.value,t);else if(ze(e))for(let s=0;s<e.length;s++)or(e[s],t);else if(fr(e)||Br(e))e.forEach(s=>{or(s,t)});else if(Vm(e))for(const s in e)or(e[s],t);return e}function nd(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return io(()=>{e.isMounted=!0}),kl(()=>{e.isUnmounting=!0}),e}const $s=[Function,Array],F1={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$s,onEnter:$s,onAfterEnter:$s,onEnterCancelled:$s,onBeforeLeave:$s,onLeave:$s,onAfterLeave:$s,onLeaveCancelled:$s,onBeforeAppear:$s,onAppear:$s,onAfterAppear:$s,onAppearCancelled:$s},setup(e,{slots:t}){const s=zn(),n=nd();let o;return()=>{const r=t.default&&yl(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const _ of r)if(_.type!==ss){i=_;break}}const a=lt(e),{mode:u}=a;if(n.isLeaving)return ru(i);const c=Rf(i);if(!c)return ru(i);const d=Gr(c,a,n,s);dr(c,d);const h=s.subTree,f=h&&Rf(h);let m=!1;const{getTransitionKey:p}=c.type;if(p){const _=p();o===void 0?o=_:_!==o&&(o=_,m=!0)}if(f&&f.type!==ss&&(!Ys(c,f)||m)){const _=Gr(f,a,n,s);if(dr(f,_),u==="out-in")return n.isLeaving=!0,_.afterLeave=()=>{n.isLeaving=!1,s.update()},ru(i);u==="in-out"&&c.type!==ss&&(_.delayLeave=(g,y,b)=>{const k=gp(n,f);k[String(f.key)]=f,g._leaveCb=()=>{y(),g._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=b})}return i}}},rd=F1;function gp(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function Gr(e,t,s,n){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:m,onLeaveCancelled:p,onBeforeAppear:_,onAppear:g,onAfterAppear:y,onAppearCancelled:b}=t,k=String(e.key),S=gp(s,e),E=(I,j)=>{I&&ks(I,n,9,j)},$={mode:r,persisted:i,beforeEnter(I){let j=a;if(!s.isMounted)if(o)j=_||a;else return;I._leaveCb&&I._leaveCb(!0);const O=S[k];O&&Ys(e,O)&&O.el._leaveCb&&O.el._leaveCb(),E(j,[I])},enter(I){let j=u,O=c,L=d;if(!s.isMounted)if(o)j=g||u,O=y||c,L=b||d;else return;let z=!1;const D=I._enterCb=U=>{z||(z=!0,U?E(L,[I]):E(O,[I]),$.delayedLeave&&$.delayedLeave(),I._enterCb=void 0)};j?(j(I,D),j.length<=1&&D()):D()},leave(I,j){const O=String(e.key);if(I._enterCb&&I._enterCb(!0),s.isUnmounting)return j();E(h,[I]);let L=!1;const z=I._leaveCb=D=>{L||(L=!0,j(),D?E(p,[I]):E(m,[I]),I._leaveCb=void 0,S[O]===e&&delete S[O])};S[O]=e,f?(f(I,z),f.length<=1&&z()):z()},clone(I){return Gr(I,t,s,n)}};return $}function ru(e){if(pi(e))return e=mn(e),e.children=null,e}function Rf(e){return pi(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 yl(e,t=!1,s){let n=[],o=0;for(let r=0;r<e.length;r++){let i=e[r];const a=s==null?i.key:String(s)+String(i.key!=null?i.key:r);i.type===Ke?(i.patchFlag&128&&o++,n=n.concat(yl(i.children,t,a))):(t||i.type!==ss)&&n.push(a!=null?mn(i,{key:a}):i)}if(o>1)for(let r=0;r<n.length;r++)n[r].patchFlag=-2;return n}function mi(e){return et(e)?{setup:e,name:e.name}:e}const Wr=e=>!!e.type.__asyncLoader;function I1(e){et(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:o=200,timeout:r,suspensible:i=!0,onError:a}=e;let u=null,c,d=0;const h=()=>(d++,u=null,f()),f=()=>{let m;return u||(m=u=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),a)return new Promise((_,g)=>{a(p,()=>_(h()),()=>g(p),d+1)});throw p}).then(p=>m!==u&&u?u:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),c=p,p)))};return mi({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return c},setup(){const m=Gt;if(c)return()=>ou(c,m);const p=b=>{u=null,_r(b,m,13,!n)};if(i&&m.suspense||Zr)return f().then(b=>()=>ou(b,m)).catch(b=>(p(b),()=>n?P(n,{error:b}):null));const _=cn(!1),g=cn(),y=cn(!!o);return o&&setTimeout(()=>{y.value=!1},o),r!=null&&setTimeout(()=>{if(!_.value&&!g.value){const b=new Error(`Async component timed out after ${r}ms.`);p(b),g.value=b}},r),f().then(()=>{_.value=!0,m.parent&&pi(m.parent.vnode)&&Xc(m.parent.update)}).catch(b=>{p(b),g.value=b}),()=>{if(_.value&&c)return ou(c,m);if(g.value&&n)return P(n,{error:g.value});if(s&&!y.value)return P(s)}}})}function ou(e,{vnode:{ref:t,props:s,children:n}}){const o=P(e,s,n);return o.ref=t,o}const pi=e=>e.type.__isKeepAlive,R1={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=zn(),n=s.ctx;if(!n.renderer)return t.default;const o=new Map,r=new Set;let i=null;const a=s.suspense,{renderer:{p:u,m:c,um:d,o:{createElement:h}}}=n,f=h("div");n.activate=(b,k,S,E,$)=>{const I=b.component;c(b,k,S,0,a),u(I.vnode,b,k,S,I,a,E,b.slotScopeIds,$),Yt(()=>{I.isDeactivated=!1,I.a&&Ur(I.a);const j=b.props&&b.props.onVnodeMounted;j&&ds(j,I.parent,b)},a)},n.deactivate=b=>{const k=b.component;c(b,f,null,1,a),Yt(()=>{k.da&&Ur(k.da);const S=b.props&&b.props.onVnodeUnmounted;S&&ds(S,k.parent,b),k.isDeactivated=!0},a)};function m(b){iu(b),d(b,s,a,!0)}function p(b){o.forEach((k,S)=>{const E=Wa(k.type);E&&(!b||!b(E))&&_(S)})}function _(b){const k=o.get(b);!i||k.type!==i.type?m(k):i&&iu(i),o.delete(b),r.delete(b)}Bt(()=>[e.include,e.exclude],([b,k])=>{b&&p(S=>To(b,S)),k&&p(S=>!To(k,S))},{flush:"post",deep:!0});let g=null;const y=()=>{g!=null&&o.set(g,au(s.subTree))};return io(y),wl(y),kl(()=>{o.forEach(b=>{const{subTree:k,suspense:S}=s,E=au(k);if(b.type===E.type){iu(E);const $=E.component.da;$&&Yt($,S);return}m(b)})}),()=>{if(g=null,!t.default)return null;const b=t.default(),k=b[0];if(b.length>1)return i=null,b;if(!Bn(k)||!(k.shapeFlag&4)&&!(k.shapeFlag&128))return i=null,k;let S=au(k);const E=S.type,$=Wa(Wr(S)?S.type.__asyncResolved||{}:E),{include:I,exclude:j,max:O}=e;if(I&&(!$||!To(I,$))||j&&$&&To(j,$))return i=S,k;const L=S.key==null?E:S.key,z=o.get(L);return S.el&&(S=mn(S),k.shapeFlag&128&&(k.ssContent=S)),g=L,z?(S.el=z.el,S.component=z.component,S.transition&&dr(S,S.transition),S.shapeFlag|=512,r.delete(L),r.add(L)):(r.add(L),O&&r.size>parseInt(O,10)&&_(r.values().next().value)),S.shapeFlag|=256,i=S,k}}},N1=R1;function To(e,t){return ze(e)?e.some(s=>To(s,t)):Ot(e)?e.split(",").includes(t):e.test?e.test(t):!1}function vp(e,t){bp(e,"a",t)}function yp(e,t){bp(e,"da",t)}function bp(e,t,s=Gt){const n=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(bl(t,n,s),s){let o=s.parent;for(;o&&o.parent;)pi(o.parent.vnode)&&M1(n,t,s,o),o=o.parent}}function M1(e,t,s,n){const o=bl(t,e,n,!0);_i(()=>{Mc(n[t],o)},s)}function iu(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function au(e){return e.shapeFlag&128?e.ssContent:e}function bl(e,t,s=Gt,n=!1){if(s){const o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(s.isUnmounted)return;hr(),Un(s);const a=ks(t,s,e,i);return Nn(),mr(),a});return n?o.unshift(r):o.push(r),r}}const gn=e=>(t,s=Gt)=>(!Zr||e==="sp")&&bl(e,t,s),wp=gn("bm"),io=gn("m"),kp=gn("bu"),wl=gn("u"),kl=gn("bum"),_i=gn("um"),xp=gn("sp"),Sp=gn("rtg"),Ep=gn("rtc");function Cp(e,t=Gt){bl("ec",e,t)}let Wu=!0;function L1(e){const t=Op(e),s=e.proxy,n=e.ctx;Wu=!1,t.beforeCreate&&Nf(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:u,inject:c,created:d,beforeMount:h,mounted:f,beforeUpdate:m,updated:p,activated:_,deactivated:g,beforeDestroy:y,beforeUnmount:b,destroyed:k,unmounted:S,render:E,renderTracked:$,renderTriggered:I,errorCaptured:j,serverPrefetch:O,expose:L,inheritAttrs:z,components:D,directives:U,filters:W}=t;if(c&&j1(c,n,null,e.appContext.config.unwrapInjectedRef),i)for(const ae in i){const ve=i[ae];et(ve)&&(n[ae]=ve.bind(s))}if(o){const ae=o.call(s,s);Rt(ae)&&(e.data=pr(ae))}if(Wu=!0,r)for(const ae in r){const ve=r[ae],Me=et(ve)?ve.bind(s,s):et(ve.get)?ve.get.bind(s,s):Hs,Ge=!et(ve)&&et(ve.set)?ve.set.bind(s):Hs,me=Wt({get:Me,set:Ge});Object.defineProperty(n,ae,{enumerable:!0,configurable:!0,get:()=>me.value,set:Z=>me.value=Z})}if(a)for(const ae in a)$p(a[ae],n,s,ae);if(u){const ae=et(u)?u.call(s):u;Reflect.ownKeys(ae).forEach(ve=>{Vo(ve,ae[ve])})}d&&Nf(d,e,"c");function te(ae,ve){ze(ve)?ve.forEach(Me=>ae(Me.bind(s))):ve&&ae(ve.bind(s))}if(te(wp,h),te(io,f),te(kp,m),te(wl,p),te(vp,_),te(yp,g),te(Cp,j),te(Ep,$),te(Sp,I),te(kl,b),te(_i,S),te(xp,O),ze(L))if(L.length){const ae=e.exposed||(e.exposed={});L.forEach(ve=>{Object.defineProperty(ae,ve,{get:()=>s[ve],set:Me=>s[ve]=Me})})}else e.exposed||(e.exposed={});E&&e.render===Hs&&(e.render=E),z!=null&&(e.inheritAttrs=z),D&&(e.components=D),U&&(e.directives=U)}function j1(e,t,s=Hs,n=!1){ze(e)&&(e=Ku(e));for(const o in e){const r=e[o];let i;Rt(r)?"default"in r?i=Xs(r.from||o,r.default,!0):i=Xs(r.from||o):i=Xs(r),Vt(i)&&n?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[o]=i}}function Nf(e,t,s){ks(ze(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function $p(e,t,s,n){const o=n.includes(".")?_p(s,n):()=>s[n];if(Ot(e)){const r=t[e];et(r)&&Bt(o,r)}else if(et(e))Bt(o,e.bind(s));else if(Rt(e))if(ze(e))e.forEach(r=>$p(r,t,s,n));else{const r=et(e.handler)?e.handler.bind(s):t[e.handler];et(r)&&Bt(o,r,e)}}function Op(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let u;return a?u=a:!o.length&&!s&&!n?u=t:(u={},o.length&&o.forEach(c=>Ha(u,c,i,!0)),Ha(u,t,i)),r.set(t,u),u}function Ha(e,t,s,n=!1){const{mixins:o,extends:r}=t;r&&Ha(e,r,s,!0),o&&o.forEach(i=>Ha(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const a=B1[i]||s&&s[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const B1={data:Mf,props:er,emits:er,methods:er,computed:er,beforeCreate:rs,created:rs,beforeMount:rs,mounted:rs,beforeUpdate:rs,updated:rs,beforeDestroy:rs,beforeUnmount:rs,destroyed:rs,unmounted:rs,activated:rs,deactivated:rs,errorCaptured:rs,serverPrefetch:rs,components:er,directives:er,watch:V1,provide:Mf,inject:U1};function Mf(e,t){return t?e?function(){return It(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function U1(e,t){return er(Ku(e),Ku(t))}function Ku(e){if(ze(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function rs(e,t){return e?[...new Set([].concat(e,t))]:t}function er(e,t){return e?It(It(Object.create(null),e),t):t}function V1(e,t){if(!e)return t;if(!t)return e;const s=It(Object.create(null),e);for(const n in t)s[n]=rs(e[n],t[n]);return s}function H1(e,t,s,n=!1){const o={},r={};Ba(r,Sl,1),e.propsDefaults=Object.create(null),Tp(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);s?e.props=n?o:sp(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function q1(e,t,s,n){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=lt(o),[u]=e.propsOptions;let c=!1;if((n||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let h=0;h<d.length;h++){let f=d[h];if(gl(e.emitsOptions,f))continue;const m=t[f];if(u)if(dt(r,f))m!==r[f]&&(r[f]=m,c=!0);else{const p=Ss(f);o[p]=Yu(u,a,p,m,e,!1)}else m!==r[f]&&(r[f]=m,c=!0)}}}else{Tp(e,t,o,r)&&(c=!0);let d;for(const h in a)(!t||!dt(t,h)&&((d=Zs(h))===h||!dt(t,d)))&&(u?s&&(s[h]!==void 0||s[d]!==void 0)&&(o[h]=Yu(u,a,h,void 0,e,!0)):delete o[h]);if(r!==a)for(const h in r)(!t||!dt(t,h)&&!0)&&(delete r[h],c=!0)}c&&hn(e,"set","$attrs")}function Tp(e,t,s,n){const[o,r]=e.propsOptions;let i=!1,a;if(t)for(let u in t){if(No(u))continue;const c=t[u];let d;o&&dt(o,d=Ss(u))?!r||!r.includes(d)?s[d]=c:(a||(a={}))[d]=c:gl(e.emitsOptions,u)||(!(u in n)||c!==n[u])&&(n[u]=c,i=!0)}if(r){const u=lt(s),c=a||gt;for(let d=0;d<r.length;d++){const h=r[d];s[h]=Yu(o,u,h,c[h],e,!dt(c,h))}}return i}function Yu(e,t,s,n,o,r){const i=e[s];if(i!=null){const a=dt(i,"default");if(a&&n===void 0){const u=i.default;if(i.type!==Function&&et(u)){const{propsDefaults:c}=o;s in c?n=c[s]:(Un(o),n=c[s]=u.call(null,t),Nn())}else n=u}i[0]&&(r&&!a?n=!1:i[1]&&(n===""||n===Zs(s))&&(n=!0))}return n}function Ap(e,t,s=!1){const n=t.propsCache,o=n.get(e);if(o)return o;const r=e.props,i={},a=[];let u=!1;if(!et(e)){const d=h=>{u=!0;const[f,m]=Ap(h,t,!0);It(i,f),m&&a.push(...m)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!u)return n.set(e,jr),jr;if(ze(r))for(let d=0;d<r.length;d++){const h=Ss(r[d]);Lf(h)&&(i[h]=gt)}else if(r)for(const d in r){const h=Ss(d);if(Lf(h)){const f=r[d],m=i[h]=ze(f)||et(f)?{type:f}:f;if(m){const p=Uf(Boolean,m.type),_=Uf(String,m.type);m[0]=p>-1,m[1]=_<0||p<_,(p>-1||dt(m,"default"))&&a.push(h)}}}const c=[i,a];return n.set(e,c),c}function Lf(e){return e[0]!=="$"}function jf(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Bf(e,t){return jf(e)===jf(t)}function Uf(e,t){return ze(t)?t.findIndex(s=>Bf(s,e)):et(t)&&Bf(t,e)?0:-1}const Pp=e=>e[0]==="_"||e==="$stable",od=e=>ze(e)?e.map(ys):[ys(e)],z1=(e,t,s)=>{const n=T((...o)=>od(t(...o)),s);return n._c=!1,n},Dp=(e,t,s)=>{const n=e._ctx;for(const o in e){if(Pp(o))continue;const r=e[o];if(et(r))t[o]=z1(o,r,n);else if(r!=null){const i=od(r);t[o]=()=>i}}},Fp=(e,t)=>{const s=od(t);e.slots.default=()=>s},G1=(e,t)=>{if(e.vnode.shapeFlag&32){const s=t._;s?(e.slots=lt(t),Ba(t,"_",s)):Dp(t,e.slots={})}else e.slots={},t&&Fp(e,t);Ba(e.slots,Sl,1)},W1=(e,t,s)=>{const{vnode:n,slots:o}=e;let r=!0,i=gt;if(n.shapeFlag&32){const a=t._;a?s&&a===1?r=!1:(It(o,t),!s&&a===1&&delete o._):(r=!t.$stable,Dp(t,o)),i=t}else t&&(Fp(e,t),i={default:1});if(r)for(const a in o)!Pp(a)&&!(a in i)&&delete o[a]};function wt(e,t){const s=Qt;if(s===null)return e;const n=El(s)||s.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,a,u,c=gt]=t[r];et(i)&&(i={mounted:i,updated:i}),i.deep&&or(a),o.push({dir:i,instance:n,value:a,oldValue:void 0,arg:u,modifiers:c})}return e}function Ks(e,t,s,n){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];r&&(a.oldValue=r[i].value);let u=a.dir[n];u&&(hr(),ks(u,s,8,[e.el,a,e,t]),mr())}}function Ip(){return{app:null,config:{isNativeTag:mb,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 K1=0;function Y1(e,t){return function(n,o=null){et(n)||(n=Object.assign({},n)),o!=null&&!Rt(o)&&(o=null);const r=Ip(),i=new Set;let a=!1;const u=r.app={_uid:K1++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:e_,get config(){return r.config},set config(c){},use(c,...d){return i.has(c)||(c&&et(c.install)?(i.add(c),c.install(u,...d)):et(c)&&(i.add(c),c(u,...d))),u},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),u},component(c,d){return d?(r.components[c]=d,u):r.components[c]},directive(c,d){return d?(r.directives[c]=d,u):r.directives[c]},mount(c,d,h){if(!a){const f=P(n,o);return f.appContext=r,d&&t?t(f,c):e(f,c,h),a=!0,u._container=c,c.__vue_app__=u,El(f.component)||f.component.proxy}},unmount(){a&&(e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return r.provides[c]=d,u}};return u}}function qa(e,t,s,n,o=!1){if(ze(e)){e.forEach((f,m)=>qa(f,t&&(ze(t)?t[m]:t),s,n,o));return}if(Wr(n)&&!o)return;const r=n.shapeFlag&4?El(n.component)||n.component.proxy:n.el,i=o?null:r,{i:a,r:u}=e,c=t&&t.r,d=a.refs===gt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==u&&(Ot(c)?(d[c]=null,dt(h,c)&&(h[c]=null)):Vt(c)&&(c.value=null)),et(u))Js(u,a,12,[i,d]);else{const f=Ot(u),m=Vt(u);if(f||m){const p=()=>{if(e.f){const _=f?d[u]:u.value;o?ze(_)&&Mc(_,r):ze(_)?_.includes(r)||_.push(r):f?(d[u]=[r],dt(h,u)&&(h[u]=d[u])):(u.value=[r],e.k&&(d[e.k]=u.value))}else f?(d[u]=i,dt(h,u)&&(h[u]=i)):Vt(u)&&(u.value=i,e.k&&(d[e.k]=i))};i?(p.id=-1,Yt(p,s)):p()}}}let kn=!1;const Mi=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",lu=e=>e.nodeType===8;function Z1(e){const{mt:t,p:s,o:{patchProp:n,nextSibling:o,parentNode:r,remove:i,insert:a,createComment:u}}=e,c=(g,y)=>{if(!y.hasChildNodes()){s(null,g,y),Va();return}kn=!1,d(y.firstChild,g,null,null,null),Va(),kn&&console.error("Hydration completed but contains mismatches.")},d=(g,y,b,k,S,E=!1)=>{const $=lu(g)&&g.data==="[",I=()=>p(g,y,b,k,S,$),{type:j,ref:O,shapeFlag:L}=y,z=g.nodeType;y.el=g;let D=null;switch(j){case Kr:z!==3?D=I():(g.data!==y.children&&(kn=!0,g.data=y.children),D=o(g));break;case ss:z!==8||$?D=I():D=o(g);break;case lr:if(z!==1)D=I();else{D=g;const U=!y.children.length;for(let W=0;W<y.staticCount;W++)U&&(y.children+=D.outerHTML),W===y.staticCount-1&&(y.anchor=D),D=o(D);return D}break;case Ke:$?D=m(g,y,b,k,S,E):D=I();break;default:if(L&1)z!==1||y.type.toLowerCase()!==g.tagName.toLowerCase()?D=I():D=h(g,y,b,k,S,E);else if(L&6){y.slotScopeIds=S;const U=r(g);if(t(y,U,null,b,k,Mi(U),E),D=$?_(g):o(g),Wr(y)){let W;$?(W=P(Ke),W.anchor=D?D.previousSibling:U.lastChild):W=g.nodeType===3?$e(""):P("div"),W.el=g,y.component.subTree=W}}else L&64?z!==8?D=I():D=y.type.hydrate(g,y,b,k,S,E,e,f):L&128&&(D=y.type.hydrate(g,y,b,k,Mi(r(g)),S,E,e,d))}return O!=null&&qa(O,null,k,y),D},h=(g,y,b,k,S,E)=>{E=E||!!y.dynamicChildren;const{type:$,props:I,patchFlag:j,shapeFlag:O,dirs:L}=y,z=$==="input"&&L||$==="option";if(z||j!==-1){if(L&&Ks(y,null,b,"created"),I)if(z||!E||j&48)for(const U in I)(z&&U.endsWith("value")||ci(U)&&!No(U))&&n(g,U,null,I[U],!1,void 0,b);else I.onClick&&n(g,"onClick",null,I.onClick,!1,void 0,b);let D;if((D=I&&I.onVnodeBeforeMount)&&ds(D,b,y),L&&Ks(y,null,b,"beforeMount"),((D=I&&I.onVnodeMounted)||L)&&mp(()=>{D&&ds(D,b,y),L&&Ks(y,null,b,"mounted")},k),O&16&&!(I&&(I.innerHTML||I.textContent))){let U=f(g.firstChild,y,g,b,k,S,E);for(;U;){kn=!0;const W=U;U=U.nextSibling,i(W)}}else O&8&&g.textContent!==y.children&&(kn=!0,g.textContent=y.children)}return g.nextSibling},f=(g,y,b,k,S,E,$)=>{$=$||!!y.dynamicChildren;const I=y.children,j=I.length;for(let O=0;O<j;O++){const L=$?I[O]:I[O]=ys(I[O]);if(g)g=d(g,L,k,S,E,$);else{if(L.type===Kr&&!L.children)continue;kn=!0,s(null,L,b,null,k,S,Mi(b),E)}}return g},m=(g,y,b,k,S,E)=>{const{slotScopeIds:$}=y;$&&(S=S?S.concat($):$);const I=r(g),j=f(o(g),y,I,b,k,S,E);return j&&lu(j)&&j.data==="]"?o(y.anchor=j):(kn=!0,a(y.anchor=u("]"),I,j),j)},p=(g,y,b,k,S,E)=>{if(kn=!0,y.el=null,E){const j=_(g);for(;;){const O=o(g);if(O&&O!==j)i(O);else break}}const $=o(g),I=r(g);return i(g),s(null,y,I,$,b,k,Mi(I),S),$},_=g=>{let y=0;for(;g;)if(g=o(g),g&&lu(g)&&(g.data==="["&&y++,g.data==="]")){if(y===0)return o(g);y--}return g};return[c,d]}const Yt=mp;function Rp(e){return Mp(e)}function Np(e){return Mp(e,Z1)}function Mp(e,t){const s=bb();s.__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:i,createText:a,createComment:u,setText:c,setElementText:d,parentNode:h,nextSibling:f,setScopeId:m=Hs,cloneNode:p,insertStaticContent:_}=e,g=(C,N,K,oe=null,le=null,ye=null,ke=!1,he=null,pe=!!N.dynamicChildren)=>{if(C===N)return;C&&!Ys(C,N)&&(oe=be(C),ce(C,le,ye,!0),C=null),N.patchFlag===-2&&(pe=!1,N.dynamicChildren=null);const{type:fe,ref:je,shapeFlag:Ce}=N;switch(fe){case Kr:y(C,N,K,oe);break;case ss:b(C,N,K,oe);break;case lr:C==null&&k(N,K,oe,ke);break;case Ke:U(C,N,K,oe,le,ye,ke,he,pe);break;default:Ce&1?$(C,N,K,oe,le,ye,ke,he,pe):Ce&6?W(C,N,K,oe,le,ye,ke,he,pe):(Ce&64||Ce&128)&&fe.process(C,N,K,oe,le,ye,ke,he,pe,Re)}je!=null&&le&&qa(je,C&&C.ref,ye,N||C,!N)},y=(C,N,K,oe)=>{if(C==null)n(N.el=a(N.children),K,oe);else{const le=N.el=C.el;N.children!==C.children&&c(le,N.children)}},b=(C,N,K,oe)=>{C==null?n(N.el=u(N.children||""),K,oe):N.el=C.el},k=(C,N,K,oe)=>{[C.el,C.anchor]=_(C.children,N,K,oe,C.el,C.anchor)},S=({el:C,anchor:N},K,oe)=>{let le;for(;C&&C!==N;)le=f(C),n(C,K,oe),C=le;n(N,K,oe)},E=({el:C,anchor:N})=>{let K;for(;C&&C!==N;)K=f(C),o(C),C=K;o(N)},$=(C,N,K,oe,le,ye,ke,he,pe)=>{ke=ke||N.type==="svg",C==null?I(N,K,oe,le,ye,ke,he,pe):L(C,N,le,ye,ke,he,pe)},I=(C,N,K,oe,le,ye,ke,he)=>{let pe,fe;const{type:je,props:Ce,shapeFlag:Ne,transition:qe,patchFlag:Ze,dirs:nt}=C;if(C.el&&p!==void 0&&Ze===-1)pe=C.el=p(C.el);else{if(pe=C.el=i(C.type,ye,Ce&&Ce.is,Ce),Ne&8?d(pe,C.children):Ne&16&&O(C.children,pe,null,oe,le,ye&&je!=="foreignObject",ke,he),nt&&Ks(C,null,oe,"created"),Ce){for(const v in Ce)v!=="value"&&!No(v)&&r(pe,v,null,Ce[v],ye,C.children,oe,le,se);"value"in Ce&&r(pe,"value",null,Ce.value),(fe=Ce.onVnodeBeforeMount)&&ds(fe,oe,C)}j(pe,C,C.scopeId,ke,oe)}nt&&Ks(C,null,oe,"beforeMount");const w=(!le||le&&!le.pendingBranch)&&qe&&!qe.persisted;w&&qe.beforeEnter(pe),n(pe,N,K),((fe=Ce&&Ce.onVnodeMounted)||w||nt)&&Yt(()=>{fe&&ds(fe,oe,C),w&&qe.enter(pe),nt&&Ks(C,null,oe,"mounted")},le)},j=(C,N,K,oe,le)=>{if(K&&m(C,K),oe)for(let ye=0;ye<oe.length;ye++)m(C,oe[ye]);if(le){let ye=le.subTree;if(N===ye){const ke=le.vnode;j(C,ke,ke.scopeId,ke.slotScopeIds,le.parent)}}},O=(C,N,K,oe,le,ye,ke,he,pe=0)=>{for(let fe=pe;fe<C.length;fe++){const je=C[fe]=he?On(C[fe]):ys(C[fe]);g(null,je,N,K,oe,le,ye,ke,he)}},L=(C,N,K,oe,le,ye,ke)=>{const he=N.el=C.el;let{patchFlag:pe,dynamicChildren:fe,dirs:je}=N;pe|=C.patchFlag&16;const Ce=C.props||gt,Ne=N.props||gt;let qe;K&&Kn(K,!1),(qe=Ne.onVnodeBeforeUpdate)&&ds(qe,K,N,C),je&&Ks(N,C,K,"beforeUpdate"),K&&Kn(K,!0);const Ze=le&&N.type!=="foreignObject";if(fe?z(C.dynamicChildren,fe,he,K,oe,Ze,ye):ke||Me(C,N,he,null,K,oe,Ze,ye,!1),pe>0){if(pe&16)D(he,N,Ce,Ne,K,oe,le);else if(pe&2&&Ce.class!==Ne.class&&r(he,"class",null,Ne.class,le),pe&4&&r(he,"style",Ce.style,Ne.style,le),pe&8){const nt=N.dynamicProps;for(let w=0;w<nt.length;w++){const v=nt[w],F=Ce[v],q=Ne[v];(q!==F||v==="value")&&r(he,v,F,q,le,C.children,K,oe,se)}}pe&1&&C.children!==N.children&&d(he,N.children)}else!ke&&fe==null&&D(he,N,Ce,Ne,K,oe,le);((qe=Ne.onVnodeUpdated)||je)&&Yt(()=>{qe&&ds(qe,K,N,C),je&&Ks(N,C,K,"updated")},oe)},z=(C,N,K,oe,le,ye,ke)=>{for(let he=0;he<N.length;he++){const pe=C[he],fe=N[he],je=pe.el&&(pe.type===Ke||!Ys(pe,fe)||pe.shapeFlag&70)?h(pe.el):K;g(pe,fe,je,null,oe,le,ye,ke,!0)}},D=(C,N,K,oe,le,ye,ke)=>{if(K!==oe){for(const he in oe){if(No(he))continue;const pe=oe[he],fe=K[he];pe!==fe&&he!=="value"&&r(C,he,fe,pe,ke,N.children,le,ye,se)}if(K!==gt)for(const he in K)!No(he)&&!(he in oe)&&r(C,he,K[he],null,ke,N.children,le,ye,se);"value"in oe&&r(C,"value",K.value,oe.value)}},U=(C,N,K,oe,le,ye,ke,he,pe)=>{const fe=N.el=C?C.el:a(""),je=N.anchor=C?C.anchor:a("");let{patchFlag:Ce,dynamicChildren:Ne,slotScopeIds:qe}=N;qe&&(he=he?he.concat(qe):qe),C==null?(n(fe,K,oe),n(je,K,oe),O(N.children,K,je,le,ye,ke,he,pe)):Ce>0&&Ce&64&&Ne&&C.dynamicChildren?(z(C.dynamicChildren,Ne,K,le,ye,ke,he),(N.key!=null||le&&N===le.subTree)&&id(C,N,!0)):Me(C,N,K,je,le,ye,ke,he,pe)},W=(C,N,K,oe,le,ye,ke,he,pe)=>{N.slotScopeIds=he,C==null?N.shapeFlag&512?le.ctx.activate(N,K,oe,ke,pe):ue(N,K,oe,le,ye,ke,pe):te(C,N,pe)},ue=(C,N,K,oe,le,ye,ke)=>{const he=C.component=zp(C,oe,le);if(pi(C)&&(he.ctx.renderer=Re),Wp(he),he.asyncDep){if(le&&le.registerDep(he,ae),!C.el){const pe=he.subTree=P(ss);b(null,pe,N,K)}return}ae(he,C,N,K,le,ye,ke)},te=(C,N,K)=>{const oe=N.component=C.component;if(k1(C,N,K))if(oe.asyncDep&&!oe.asyncResolved){ve(oe,N,K);return}else oe.next=N,h1(oe.update),oe.update();else N.component=C.component,N.el=C.el,oe.vnode=N},ae=(C,N,K,oe,le,ye,ke)=>{const he=()=>{if(C.isMounted){let{next:je,bu:Ce,u:Ne,parent:qe,vnode:Ze}=C,nt=je,w;Kn(C,!1),je?(je.el=Ze.el,ve(C,je,ke)):je=Ze,Ce&&Ur(Ce),(w=je.props&&je.props.onVnodeBeforeUpdate)&&ds(w,qe,je,Ze),Kn(C,!0);const v=Ta(C),F=C.subTree;C.subTree=v,g(F,v,h(F.el),be(F),C,le,ye),je.el=v.el,nt===null&&td(C,v.el),Ne&&Yt(Ne,le),(w=je.props&&je.props.onVnodeUpdated)&&Yt(()=>ds(w,qe,je,Ze),le)}else{let je;const{el:Ce,props:Ne}=N,{bm:qe,m:Ze,parent:nt}=C,w=Wr(N);if(Kn(C,!1),qe&&Ur(qe),!w&&(je=Ne&&Ne.onVnodeBeforeMount)&&ds(je,nt,N),Kn(C,!0),Ce&&De){const v=()=>{C.subTree=Ta(C),De(Ce,C.subTree,C,le,null)};w?N.type.__asyncLoader().then(()=>!C.isUnmounted&&v()):v()}else{const v=C.subTree=Ta(C);g(null,v,K,oe,C,le,ye),N.el=v.el}if(Ze&&Yt(Ze,le),!w&&(je=Ne&&Ne.onVnodeMounted)){const v=N;Yt(()=>ds(je,nt,v),le)}N.shapeFlag&256&&C.a&&Yt(C.a,le),C.isMounted=!0,N=K=oe=null}},pe=C.effect=new fi(he,()=>Xc(C.update),C.scope),fe=C.update=pe.run.bind(pe);fe.id=C.uid,Kn(C,!0),fe()},ve=(C,N,K)=>{N.component=C;const oe=C.vnode.props;C.vnode=N,C.next=null,q1(C,N.props,oe,K),W1(C,N.children,K),hr(),ed(void 0,C.update),mr()},Me=(C,N,K,oe,le,ye,ke,he,pe=!1)=>{const fe=C&&C.children,je=C?C.shapeFlag:0,Ce=N.children,{patchFlag:Ne,shapeFlag:qe}=N;if(Ne>0){if(Ne&128){me(fe,Ce,K,oe,le,ye,ke,he,pe);return}else if(Ne&256){Ge(fe,Ce,K,oe,le,ye,ke,he,pe);return}}qe&8?(je&16&&se(fe,le,ye),Ce!==fe&&d(K,Ce)):je&16?qe&16?me(fe,Ce,K,oe,le,ye,ke,he,pe):se(fe,le,ye,!0):(je&8&&d(K,""),qe&16&&O(Ce,K,oe,le,ye,ke,he,pe))},Ge=(C,N,K,oe,le,ye,ke,he,pe)=>{C=C||jr,N=N||jr;const fe=C.length,je=N.length,Ce=Math.min(fe,je);let Ne;for(Ne=0;Ne<Ce;Ne++){const qe=N[Ne]=pe?On(N[Ne]):ys(N[Ne]);g(C[Ne],qe,K,null,le,ye,ke,he,pe)}fe>je?se(C,le,ye,!0,!1,Ce):O(N,K,oe,le,ye,ke,he,pe,Ce)},me=(C,N,K,oe,le,ye,ke,he,pe)=>{let fe=0;const je=N.length;let Ce=C.length-1,Ne=je-1;for(;fe<=Ce&&fe<=Ne;){const qe=C[fe],Ze=N[fe]=pe?On(N[fe]):ys(N[fe]);if(Ys(qe,Ze))g(qe,Ze,K,null,le,ye,ke,he,pe);else break;fe++}for(;fe<=Ce&&fe<=Ne;){const qe=C[Ce],Ze=N[Ne]=pe?On(N[Ne]):ys(N[Ne]);if(Ys(qe,Ze))g(qe,Ze,K,null,le,ye,ke,he,pe);else break;Ce--,Ne--}if(fe>Ce){if(fe<=Ne){const qe=Ne+1,Ze=qe<je?N[qe].el:oe;for(;fe<=Ne;)g(null,N[fe]=pe?On(N[fe]):ys(N[fe]),K,Ze,le,ye,ke,he,pe),fe++}}else if(fe>Ne)for(;fe<=Ce;)ce(C[fe],le,ye,!0),fe++;else{const qe=fe,Ze=fe,nt=new Map;for(fe=Ze;fe<=Ne;fe++){const Ie=N[fe]=pe?On(N[fe]):ys(N[fe]);Ie.key!=null&&nt.set(Ie.key,fe)}let w,v=0;const F=Ne-Ze+1;let q=!1,J=0;const de=new Array(F);for(fe=0;fe<F;fe++)de[fe]=0;for(fe=qe;fe<=Ce;fe++){const Ie=C[fe];if(v>=F){ce(Ie,le,ye,!0);continue}let ee;if(Ie.key!=null)ee=nt.get(Ie.key);else for(w=Ze;w<=Ne;w++)if(de[w-Ze]===0&&Ys(Ie,N[w])){ee=w;break}ee===void 0?ce(Ie,le,ye,!0):(de[ee-Ze]=fe+1,ee>=J?J=ee:q=!0,g(Ie,N[ee],K,null,le,ye,ke,he,pe),v++)}const Ee=q?J1(de):jr;for(w=Ee.length-1,fe=F-1;fe>=0;fe--){const Ie=Ze+fe,ee=N[Ie],ie=Ie+1<je?N[Ie+1].el:oe;de[fe]===0?g(null,ee,K,ie,le,ye,ke,he,pe):q&&(w<0||fe!==Ee[w]?Z(ee,K,ie,2):w--)}}},Z=(C,N,K,oe,le=null)=>{const{el:ye,type:ke,transition:he,children:pe,shapeFlag:fe}=C;if(fe&6){Z(C.component.subTree,N,K,oe);return}if(fe&128){C.suspense.move(N,K,oe);return}if(fe&64){ke.move(C,N,K,Re);return}if(ke===Ke){n(ye,N,K);for(let Ce=0;Ce<pe.length;Ce++)Z(pe[Ce],N,K,oe);n(C.anchor,N,K);return}if(ke===lr){S(C,N,K);return}if(oe!==2&&fe&1&&he)if(oe===0)he.beforeEnter(ye),n(ye,N,K),Yt(()=>he.enter(ye),le);else{const{leave:Ce,delayLeave:Ne,afterLeave:qe}=he,Ze=()=>n(ye,N,K),nt=()=>{Ce(ye,()=>{Ze(),qe&&qe()})};Ne?Ne(ye,Ze,nt):nt()}else n(ye,N,K)},ce=(C,N,K,oe=!1,le=!1)=>{const{type:ye,props:ke,ref:he,children:pe,dynamicChildren:fe,shapeFlag:je,patchFlag:Ce,dirs:Ne}=C;if(he!=null&&qa(he,null,K,C,!0),je&256){N.ctx.deactivate(C);return}const qe=je&1&&Ne,Ze=!Wr(C);let nt;if(Ze&&(nt=ke&&ke.onVnodeBeforeUnmount)&&ds(nt,N,C),je&6)re(C.component,K,oe);else{if(je&128){C.suspense.unmount(K,oe);return}qe&&Ks(C,null,N,"beforeUnmount"),je&64?C.type.remove(C,N,K,le,Re,oe):fe&&(ye!==Ke||Ce>0&&Ce&64)?se(fe,N,K,!1,!0):(ye===Ke&&Ce&384||!le&&je&16)&&se(pe,N,K),oe&&we(C)}(Ze&&(nt=ke&&ke.onVnodeUnmounted)||qe)&&Yt(()=>{nt&&ds(nt,N,C),qe&&Ks(C,null,N,"unmounted")},K)},we=C=>{const{type:N,el:K,anchor:oe,transition:le}=C;if(N===Ke){V(K,oe);return}if(N===lr){E(C);return}const ye=()=>{o(K),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(C.shapeFlag&1&&le&&!le.persisted){const{leave:ke,delayLeave:he}=le,pe=()=>ke(K,ye);he?he(C.el,ye,pe):pe()}else ye()},V=(C,N)=>{let K;for(;C!==N;)K=f(C),o(C),C=K;o(N)},re=(C,N,K)=>{const{bum:oe,scope:le,update:ye,subTree:ke,um:he}=C;oe&&Ur(oe),le.stop(),ye&&(ye.active=!1,ce(ke,C,N,K)),he&&Yt(he,N),Yt(()=>{C.isUnmounted=!0},N),N&&N.pendingBranch&&!N.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===N.pendingId&&(N.deps--,N.deps===0&&N.resolve())},se=(C,N,K,oe=!1,le=!1,ye=0)=>{for(let ke=ye;ke<C.length;ke++)ce(C[ke],N,K,oe,le)},be=C=>C.shapeFlag&6?be(C.component.subTree):C.shapeFlag&128?C.suspense.next():f(C.anchor||C.el),He=(C,N,K)=>{C==null?N._vnode&&ce(N._vnode,null,null,!0):g(N._vnode||null,C,N,null,null,null,K),Va(),N._vnode=C},Re={p:g,um:ce,m:Z,r:we,mt:ue,mc:O,pc:Me,pbc:z,n:be,o:e};let Oe,De;return t&&([Oe,De]=t(Re)),{render:He,hydrate:Oe,createApp:Y1(He,Oe)}}function Kn({effect:e,update:t},s){e.allowRecurse=t.allowRecurse=s}function id(e,t,s=!1){const n=e.children,o=t.children;if(ze(n)&&ze(o))for(let r=0;r<n.length;r++){const i=n[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=On(o[r]),a.el=i.el),s||id(i,a))}}function J1(e){const t=e.slice(),s=[0];let n,o,r,i,a;const u=e.length;for(n=0;n<u;n++){const c=e[n];if(c!==0){if(o=s[s.length-1],e[o]<c){t[n]=o,s.push(n);continue}for(r=0,i=s.length-1;r<i;)a=r+i>>1,e[s[a]]<c?r=a+1:i=a;c<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}const X1=e=>e.__isTeleport,Ho=e=>e&&(e.disabled||e.disabled===""),Vf=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Zu=(e,t)=>{const s=e&&e.to;return Ot(s)?t?t(s):null:s},Q1={__isTeleport:!0,process(e,t,s,n,o,r,i,a,u,c){const{mc:d,pc:h,pbc:f,o:{insert:m,querySelector:p,createText:_,createComment:g}}=c,y=Ho(t.props);let{shapeFlag:b,children:k,dynamicChildren:S}=t;if(e==null){const E=t.el=_(""),$=t.anchor=_("");m(E,s,n),m($,s,n);const I=t.target=Zu(t.props,p),j=t.targetAnchor=_("");I&&(m(j,I),i=i||Vf(I));const O=(L,z)=>{b&16&&d(k,L,z,o,r,i,a,u)};y?O(s,$):I&&O(I,j)}else{t.el=e.el;const E=t.anchor=e.anchor,$=t.target=e.target,I=t.targetAnchor=e.targetAnchor,j=Ho(e.props),O=j?s:$,L=j?E:I;if(i=i||Vf($),S?(f(e.dynamicChildren,S,O,o,r,i,a),id(e,t,!0)):u||h(e,t,O,L,o,r,i,a,!1),y)j||Li(t,s,E,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=Zu(t.props,p);z&&Li(t,z,null,c,0)}else j&&Li(t,$,I,c,1)}},remove(e,t,s,n,{um:o,o:{remove:r}},i){const{shapeFlag:a,children:u,anchor:c,targetAnchor:d,target:h,props:f}=e;if(h&&r(d),(i||!Ho(f))&&(r(c),a&16))for(let m=0;m<u.length;m++){const p=u[m];o(p,t,s,!0,!!p.dynamicChildren)}},move:Li,hydrate:e0};function Li(e,t,s,{o:{insert:n},m:o},r=2){r===0&&n(e.targetAnchor,t,s);const{el:i,anchor:a,shapeFlag:u,children:c,props:d}=e,h=r===2;if(h&&n(i,t,s),(!h||Ho(d))&&u&16)for(let f=0;f<c.length;f++)o(c[f],t,s,2);h&&n(a,t,s)}function e0(e,t,s,n,o,r,{o:{nextSibling:i,parentNode:a,querySelector:u}},c){const d=t.target=Zu(t.props,u);if(d){const h=d._lpa||d.firstChild;t.shapeFlag&16&&(Ho(t.props)?(t.anchor=c(i(e),t,a(e),s,n,o,r),t.targetAnchor=h):(t.anchor=i(e),t.targetAnchor=c(h,t,d,s,n,o,r)),d._lpa=t.targetAnchor&&i(t.targetAnchor))}return t.anchor&&i(t.anchor)}const qn=Q1,ad="components",t0="directives";function B(e,t){return ld(ad,e,!0,t)||e}const Lp=Symbol();function jp(e){return Ot(e)?ld(ad,e,!1)||e:e||Lp}function xl(e){return ld(t0,e)}function ld(e,t,s=!0,n=!1){const o=Qt||Gt;if(o){const r=o.type;if(e===ad){const a=Wa(r);if(a&&(a===t||a===Ss(t)||a===di(Ss(t))))return r}const i=Hf(o[e]||r[e],t)||Hf(o.appContext[e],t);return!i&&n?r:i}}function Hf(e,t){return e&&(e[t]||e[Ss(t)]||e[di(Ss(t))])}const Ke=Symbol(void 0),Kr=Symbol(void 0),ss=Symbol(void 0),lr=Symbol(void 0),qo=[];let Qs=null;function x(e=!1){qo.push(Qs=e?null:[])}function Bp(){qo.pop(),Qs=qo[qo.length-1]||null}let Yr=1;function Ju(e){Yr+=e}function Up(e){return e.dynamicChildren=Yr>0?Qs||jr:null,Bp(),Yr>0&&Qs&&Qs.push(e),e}function A(e,t,s,n,o,r){return Up(l(e,t,s,n,o,r,!0))}function xe(e,t,s,n,o){return Up(P(e,t,s,n,o,!0))}function Bn(e){return e?e.__v_isVNode===!0:!1}function Ys(e,t){return e.type===t.type&&e.key===t.key}function s0(e){}const Sl="__vInternal",Vp=({key:e})=>e!=null?e:null,Aa=({ref:e,ref_key:t,ref_for:s})=>e!=null?Ot(e)||Vt(e)||et(e)?{i:Qt,r:e,k:t,f:!!s}:e:null;function l(e,t=null,s=null,n=0,o=null,r=e===Ke?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Vp(t),ref:t&&Aa(t),scopeId:vl,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null};return a?(cd(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=Ot(s)?8:16),Yr>0&&!i&&Qs&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Qs.push(u),u}const P=n0;function n0(e,t=null,s=null,n=0,o=null,r=!1){if((!e||e===Lp)&&(e=ss),Bn(e)){const a=mn(e,t,!0);return s&&cd(a,s),a}if(m0(e)&&(e=e.__vccOpts),t){t=Hp(t);let{class:a,style:u}=t;a&&!Ot(a)&&(t.class=Le(a)),Rt(u)&&(Gc(u)&&!ze(u)&&(u=It({},u)),t.style=Hn(u))}const i=Ot(e)?1:x1(e)?128:X1(e)?64:Rt(e)?4:et(e)?2:0;return l(e,t,s,n,o,i,r,!0)}function Hp(e){return e?Gc(e)||Sl in e?It({},e):e:null}function mn(e,t,s=!1){const{props:n,ref:o,patchFlag:r,children:i}=e,a=t?dd(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Vp(a),ref:t&&t.ref?s&&o?ze(o)?o.concat(Aa(t)):[o,Aa(t)]:Aa(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mn(e.ssContent),ssFallback:e.ssFallback&&mn(e.ssFallback),el:e.el,anchor:e.anchor}}function $e(e=" ",t=0){return P(Kr,null,e,t)}function ud(e,t){const s=P(lr,null,e);return s.staticCount=t,s}function Y(e="",t=!1){return t?(x(),xe(ss,null,e)):P(ss,null,e)}function ys(e){return e==null||typeof e=="boolean"?P(ss):ze(e)?P(Ke,null,e.slice()):typeof e=="object"?On(e):P(Kr,null,String(e))}function On(e){return e.el===null||e.memo?e:mn(e)}function cd(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ze(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),cd(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!(Sl in t)?t._ctx=Qt:o===3&&Qt&&(Qt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else et(t)?(t={default:t,_ctx:Qt},s=32):(t=String(t),n&64?(s=16,t=[$e(t)]):s=8);e.children=t,e.shapeFlag|=s}function dd(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=Le([t.class,n.class]));else if(o==="style")t.style=Hn([t.style,n.style]);else if(ci(o)){const r=t[o],i=n[o];i&&r!==i&&!(ze(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=n[o])}return t}function ds(e,t,s,n=null){ks(e,t,7,[s,n])}function bt(e,t,s,n){let o;const r=s&&s[n];if(ze(e)||Ot(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(Rt(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,r&&r[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,u=i.length;a<u;a++){const c=i[a];o[a]=t(e[c],c,a,r&&r[a])}}else o=[];return s&&(s[n]=o),o}function gi(e,t){for(let s=0;s<t.length;s++){const n=t[s];if(ze(n))for(let o=0;o<n.length;o++)e[n[o].name]=n[o].fn;else n&&(e[n.name]=n.fn)}return e}function xt(e,t,s={},n,o){if(Qt.isCE||Qt.parent&&Wr(Qt.parent)&&Qt.parent.isCE)return P("slot",t==="default"?null:{name:t},n&&n());let r=e[t];r&&r._c&&(r._d=!1),x();const i=r&&qp(r(s)),a=xe(Ke,{key:s.key||`_${t}`},i||(n?n():[]),i&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function qp(e){return e.some(t=>Bn(t)?!(t.type===ss||t.type===Ke&&!qp(t.children)):!0)?e:null}function r0(e){const t={};for(const s in e)t[Mo(s)]=e[s];return t}const Xu=e=>e?Gp(e)?El(e)||e.proxy:Xu(e.parent):null,za=It(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=>Xu(e.parent),$root:e=>Xu(e.root),$emit:e=>e.emit,$options:e=>Op(e),$forceUpdate:e=>()=>Xc(e.update),$nextTick:e=>_l.bind(e.proxy),$watch:e=>D1.bind(e)}),Qu={get({_:e},t){const{ctx:s,setupState:n,data:o,props:r,accessCache:i,type:a,appContext:u}=e;let c;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(n!==gt&&dt(n,t))return i[t]=1,n[t];if(o!==gt&&dt(o,t))return i[t]=2,o[t];if((c=e.propsOptions[0])&&dt(c,t))return i[t]=3,r[t];if(s!==gt&&dt(s,t))return i[t]=4,s[t];Wu&&(i[t]=0)}}const d=za[t];let h,f;if(d)return t==="$attrs"&&Es(e,"get",t),d(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(s!==gt&&dt(s,t))return i[t]=4,s[t];if(f=u.config.globalProperties,dt(f,t))return f[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:r}=e;return o!==gt&&dt(o,t)?(o[t]=s,!0):n!==gt&&dt(n,t)?(n[t]=s,!0):dt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,propsOptions:r}},i){let a;return!!s[i]||e!==gt&&dt(e,i)||t!==gt&&dt(t,i)||(a=r[0])&&dt(a,i)||dt(n,i)||dt(za,i)||dt(o.config.globalProperties,i)},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:dt(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}},o0=It({},Qu,{get(e,t){if(t!==Symbol.unscopables)return Qu.get(e,t,e)},has(e,t){return t[0]!=="_"&&!ib(t)}}),i0=Ip();let a0=0;function zp(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||i0,r={uid:a0++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Uc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ap(n,o),emitsOptions:hp(n,o),emit:null,emitted:null,propsDefaults:gt,inheritAttrs:n.inheritAttrs,ctx:gt,data:gt,props:gt,attrs:gt,slots:gt,refs:gt,setupState:gt,setupContext:null,suspense:s,suspenseId:s?s.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 r.ctx={_:r},r.root=t?t.root:r,r.emit=p1.bind(null,r),e.ce&&e.ce(r),r}let Gt=null;const zn=()=>Gt||Qt,Un=e=>{Gt=e,e.scope.on()},Nn=()=>{Gt&&Gt.scope.off(),Gt=null};function Gp(e){return e.vnode.shapeFlag&4}let Zr=!1;function Wp(e,t=!1){Zr=t;const{props:s,children:n}=e.vnode,o=Gp(e);H1(e,s,o,t),G1(e,n);const r=o?l0(e,t):void 0;return Zr=!1,r}function l0(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=Wc(new Proxy(e.ctx,Qu));const{setup:n}=s;if(n){const o=e.setupContext=n.length>1?Yp(e):null;Un(e),hr();const r=Js(n,e,0,[e.props,o]);if(mr(),Nn(),jc(r)){if(r.then(Nn,Nn),t)return r.then(i=>{ec(e,i,t)}).catch(i=>{_r(i,e,0)});e.asyncDep=r}else ec(e,r,t)}else Kp(e,t)}function ec(e,t,s){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Rt(t)&&(e.setupState=Zc(t)),Kp(e,s)}let Ga,tc;function u0(e){Ga=e,tc=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,o0))}}const c0=()=>!Ga;function Kp(e,t,s){const n=e.type;if(!e.render){if(!t&&Ga&&!n.render){const o=n.template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:u}=n,c=It(It({isCustomElement:r,delimiters:a},i),u);n.render=Ga(o,c)}}e.render=n.render||Hs,tc&&tc(e)}Un(e),hr(),L1(e),mr(),Nn()}function d0(e){return new Proxy(e.attrs,{get(t,s){return Es(e,"get","$attrs"),t[s]}})}function Yp(e){const t=n=>{e.exposed=n||{}};let s;return{get attrs(){return s||(s=d0(e))},slots:e.slots,emit:e.emit,expose:t}}function El(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Zc(Wc(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in za)return za[s](e)}}))}const f0=/(?:^|[-_])(\w)/g,h0=e=>e.replace(f0,t=>t.toUpperCase()).replace(/[-_]/g,"");function Wa(e){return et(e)&&e.displayName||e.name}function Zp(e,t,s=!1){let n=Wa(t);if(!n&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(n=o[1])}if(!n&&e&&e.parent){const o=r=>{for(const i in r)if(r[i]===t)return i};n=o(e.components||e.parent.type.components)||o(e.appContext.components)}return n?h0(n):s?"App":"Anonymous"}function m0(e){return et(e)&&"__vccOpts"in e}const Wt=(e,t)=>i1(e,t,Zr);function p0(){return null}function _0(){return null}function g0(e){}function v0(e,t){return null}function y0(){return Jp().slots}function b0(){return Jp().attrs}function Jp(){const e=zn();return e.setupContext||(e.setupContext=Yp(e))}function w0(e,t){const s=ze(e)?e.reduce((n,o)=>(n[o]={},n),{}):e;for(const n in t){const o=s[n];o?ze(o)||et(o)?s[n]={type:o,default:t[n]}:o.default=t[n]:o===null&&(s[n]={default:t[n]})}return s}function k0(e,t){const s={};for(const n in e)t.includes(n)||Object.defineProperty(s,n,{enumerable:!0,get:()=>e[n]});return s}function x0(e){const t=zn();let s=e();return Nn(),jc(s)&&(s=s.catch(n=>{throw Un(t),n})),[s,()=>Un(t)]}function Cl(e,t,s){const n=arguments.length;return n===2?Rt(t)&&!ze(t)?Bn(t)?P(e,null,[t]):P(e,t):P(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Bn(s)&&(s=[s]),P(e,t,s))}const Xp=Symbol(""),S0=()=>{{const e=Xs(Xp);return e||ip("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function E0(){}function C0(e,t,s,n){const o=s[n];if(o&&Qp(o,e))return o;const r=t();return r.memo=e.slice(),s[n]=r}function Qp(e,t){const s=e.memo;if(s.length!=t.length)return!1;for(let n=0;n<s.length;n++)if(s[n]!==t[n])return!1;return Yr>0&&Qs&&Qs.push(e),!0}const e_="3.2.33",$0={createComponentInstance:zp,setupComponent:Wp,renderComponentRoot:Ta,setCurrentRenderingInstance:oi,isVNode:Bn,normalizeVNode:ys},O0=$0,T0=null,A0=null,P0="http://www.w3.org/2000/svg",rr=typeof document!="undefined"?document:null,qf=rr&&rr.createElement("template"),D0={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t?rr.createElementNS(P0,e):rr.createElement(e,s?{is:s}:void 0);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>rr.createTextNode(e),createComment:e=>rr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,s,n,o,r){const i=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{qf.innerHTML=n?`<svg>${e}</svg>`:e;const a=qf.content;if(n){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}};function F0(e,t,s){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}function I0(e,t,s){const n=e.style,o=Ot(s);if(s&&!o){for(const r in s)sc(n,r,s[r]);if(t&&!Ot(t))for(const r in t)s[r]==null&&sc(n,r,"")}else{const r=n.display;o?t!==s&&(n.cssText=s):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=r)}}const zf=/\s*!important$/;function sc(e,t,s){if(ze(s))s.forEach(n=>sc(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=R0(e,t);zf.test(s)?e.setProperty(Zs(n),s.replace(zf,""),"important"):e[n]=s}}const Gf=["Webkit","Moz","ms"],uu={};function R0(e,t){const s=uu[t];if(s)return s;let n=Ss(t);if(n!=="filter"&&n in e)return uu[t]=n;n=di(n);for(let o=0;o<Gf.length;o++){const r=Gf[o]+n;if(r in e)return uu[t]=r}return t}const Wf="http://www.w3.org/1999/xlink";function N0(e,t,s,n,o){if(n&&t.startsWith("xlink:"))s==null?e.removeAttributeNS(Wf,t.slice(6,t.length)):e.setAttributeNS(Wf,t,s);else{const r=lb(t);s==null||r&&!jm(s)?e.removeAttribute(t):e.setAttribute(t,r?"":s)}}function M0(e,t,s,n,o,r,i){if(t==="innerHTML"||t==="textContent"){n&&i(n,o,r),e[t]=s==null?"":s;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=s;const u=s==null?"":s;(e.value!==u||e.tagName==="OPTION")&&(e.value=u),s==null&&e.removeAttribute(t);return}let a=!1;if(s===""||s==null){const u=typeof e[t];u==="boolean"?s=jm(s):s==null&&u==="string"?(s="",a=!0):u==="number"&&(s=0,a=!0)}try{e[t]=s}catch{}a&&e.removeAttribute(t)}const[t_,L0]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const s=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(s&&Number(s[1])<=53)}return[e,t]})();let nc=0;const j0=Promise.resolve(),B0=()=>{nc=0},U0=()=>nc||(j0.then(B0),nc=t_());function un(e,t,s,n){e.addEventListener(t,s,n)}function V0(e,t,s,n){e.removeEventListener(t,s,n)}function H0(e,t,s,n,o=null){const r=e._vei||(e._vei={}),i=r[t];if(n&&i)i.value=n;else{const[a,u]=q0(t);if(n){const c=r[t]=z0(n,o);un(e,a,c,u)}else i&&(V0(e,a,i,u),r[t]=void 0)}}const Kf=/(?:Once|Passive|Capture)$/;function q0(e){let t;if(Kf.test(e)){t={};let s;for(;s=e.match(Kf);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[Zs(e.slice(2)),t]}function z0(e,t){const s=n=>{const o=n.timeStamp||t_();(L0||o>=s.attached-1)&&ks(G0(n,s.value),t,5,[n])};return s.value=e,s.attached=U0(),s}function G0(e,t){if(ze(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const Yf=/^on[a-z]/,W0=(e,t,s,n,o=!1,r,i,a,u)=>{t==="class"?F0(e,n,o):t==="style"?I0(e,s,n):ci(t)?Nc(t)||H0(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):K0(e,t,n,o))?M0(e,t,n,r,i,a,u):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),N0(e,t,n,o))};function K0(e,t,s,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&Yf.test(t)&&et(s)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Yf.test(t)&&Ot(s)?!1:t in e}function s_(e,t){const s=mi(e);class n extends $l{constructor(r){super(s,r,t)}}return n.def=s,n}const Y0=e=>s_(e,h_),Z0=typeof HTMLElement!="undefined"?HTMLElement:class{};class $l extends Z0{constructor(t,s={},n){super();this._def=t,this._props=s,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,_l(()=>{this._connected||(oc(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);new MutationObserver(n=>{for(const o of n)this._setAttr(o.attributeName)}).observe(this,{attributes:!0});const t=n=>{const{props:o,styles:r}=n,i=!ze(o),a=o?i?Object.keys(o):o:[];let u;if(i)for(const c in this._props){const d=o[c];(d===Number||d&&d.type===Number)&&(this._props[c]=Ln(this._props[c]),(u||(u=Object.create(null)))[c]=!0)}this._numberProps=u;for(const c of Object.keys(this))c[0]!=="_"&&this._setProp(c,this[c],!0,!1);for(const c of a.map(Ss))Object.defineProperty(this,c,{get(){return this._getProp(c)},set(d){this._setProp(c,d)}});this._applyStyles(r),this._update()},s=this._def.__asyncLoader;s?s().then(t):t(this._def)}_setAttr(t){let s=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(s=Ln(s)),this._setProp(Ss(t),s,!1)}_getProp(t){return this._props[t]}_setProp(t,s,n=!0,o=!0){s!==this._props[t]&&(this._props[t]=s,o&&this._instance&&this._update(),n&&(s===!0?this.setAttribute(Zs(t),""):typeof s=="string"||typeof s=="number"?this.setAttribute(Zs(t),s+""):s||this.removeAttribute(Zs(t))))}_update(){oc(this._createVNode(),this.shadowRoot)}_createVNode(){const t=P(this._def,It({},this._props));return this._instance||(t.ce=s=>{this._instance=s,s.isCE=!0,s.emit=(o,...r)=>{this.dispatchEvent(new CustomEvent(o,{detail:r}))};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof $l){s.parent=n._instance;break}}),t}_applyStyles(t){t&&t.forEach(s=>{const n=document.createElement("style");n.textContent=s,this.shadowRoot.appendChild(n)})}}function J0(e="$style"){{const t=zn();if(!t)return gt;const s=t.type.__cssModules;if(!s)return gt;const n=s[e];return n||gt}}function X0(e){const t=zn();if(!t)return;const s=()=>rc(t.subTree,e(t.proxy));pp(s),io(()=>{const n=new MutationObserver(s);n.observe(t.subTree.el.parentNode,{childList:!0}),_i(()=>n.disconnect())})}function rc(e,t){if(e.shapeFlag&128){const s=e.suspense;e=s.activeBranch,s.pendingBranch&&!s.isHydrating&&s.effects.push(()=>{rc(s.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Zf(e.el,t);else if(e.type===Ke)e.children.forEach(s=>rc(s,t));else if(e.type===lr){let{el:s,anchor:n}=e;for(;s&&(Zf(s,t),s!==n);)s=s.nextSibling}}function Zf(e,t){if(e.nodeType===1){const s=e.style;for(const n in t)s.setProperty(`--${n}`,t[n])}}const xn="transition",po="animation",Ht=(e,{slots:t})=>Cl(rd,r_(e),t);Ht.displayName="Transition";const n_={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},Q0=Ht.props=It({},rd.props,n_),Yn=(e,t=[])=>{ze(e)?e.forEach(s=>s(...t)):e&&e(...t)},Jf=e=>e?ze(e)?e.some(t=>t.length>1):e.length>1:!1;function r_(e){const t={};for(const D in e)D in n_||(t[D]=e[D]);if(e.css===!1)return t;const{name:s="v",type:n,duration:o,enterFromClass:r=`${s}-enter-from`,enterActiveClass:i=`${s}-enter-active`,enterToClass:a=`${s}-enter-to`,appearFromClass:u=r,appearActiveClass:c=i,appearToClass:d=a,leaveFromClass:h=`${s}-leave-from`,leaveActiveClass:f=`${s}-leave-active`,leaveToClass:m=`${s}-leave-to`}=e,p=ew(o),_=p&&p[0],g=p&&p[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:k,onLeave:S,onLeaveCancelled:E,onBeforeAppear:$=y,onAppear:I=b,onAppearCancelled:j=k}=t,O=(D,U,W)=>{tr(D,U?d:a),tr(D,U?c:i),W&&W()},L=(D,U)=>{tr(D,m),tr(D,f),U&&U()},z=D=>(U,W)=>{const ue=D?I:b,te=()=>O(U,D,W);Yn(ue,[U,te]),Xf(()=>{tr(U,D?u:r),an(U,D?d:a),Jf(ue)||Qf(U,n,_,te)})};return It(t,{onBeforeEnter(D){Yn(y,[D]),an(D,r),an(D,i)},onBeforeAppear(D){Yn($,[D]),an(D,u),an(D,c)},onEnter:z(!1),onAppear:z(!0),onLeave(D,U){const W=()=>L(D,U);an(D,h),i_(),an(D,f),Xf(()=>{tr(D,h),an(D,m),Jf(S)||Qf(D,n,g,W)}),Yn(S,[D,W])},onEnterCancelled(D){O(D,!1),Yn(k,[D])},onAppearCancelled(D){O(D,!0),Yn(j,[D])},onLeaveCancelled(D){L(D),Yn(E,[D])}})}function ew(e){if(e==null)return null;if(Rt(e))return[cu(e.enter),cu(e.leave)];{const t=cu(e);return[t,t]}}function cu(e){return Ln(e)}function an(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e._vtc||(e._vtc=new Set)).add(t)}function tr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:s}=e;s&&(s.delete(t),s.size||(e._vtc=void 0))}function Xf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let tw=0;function Qf(e,t,s,n){const o=e._endId=++tw,r=()=>{o===e._endId&&n()};if(s)return setTimeout(r,s);const{type:i,timeout:a,propCount:u}=o_(e,t);if(!i)return n();const c=i+"end";let d=0;const h=()=>{e.removeEventListener(c,f),r()},f=m=>{m.target===e&&++d>=u&&h()};setTimeout(()=>{d<u&&h()},a+1),e.addEventListener(c,f)}function o_(e,t){const s=window.getComputedStyle(e),n=p=>(s[p]||"").split(", "),o=n(xn+"Delay"),r=n(xn+"Duration"),i=eh(o,r),a=n(po+"Delay"),u=n(po+"Duration"),c=eh(a,u);let d=null,h=0,f=0;t===xn?i>0&&(d=xn,h=i,f=r.length):t===po?c>0&&(d=po,h=c,f=u.length):(h=Math.max(i,c),d=h>0?i>c?xn:po:null,f=d?d===xn?r.length:u.length:0);const m=d===xn&&/\b(transform|all)(,|$)/.test(s[xn+"Property"]);return{type:d,timeout:h,propCount:f,hasTransform:m}}function eh(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,n)=>th(s)+th(e[n])))}function th(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function i_(){return document.body.offsetHeight}const a_=new WeakMap,l_=new WeakMap,sw={name:"TransitionGroup",props:It({},Q0,{tag:String,moveClass:String}),setup(e,{slots:t}){const s=zn(),n=nd();let o,r;return wl(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!aw(o[0].el,s.vnode.el,i))return;o.forEach(rw),o.forEach(ow);const a=o.filter(iw);i_(),a.forEach(u=>{const c=u.el,d=c.style;an(c,i),d.transform=d.webkitTransform=d.transitionDuration="";const h=c._moveCb=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",h),c._moveCb=null,tr(c,i))};c.addEventListener("transitionend",h)})}),()=>{const i=lt(e),a=r_(i);let u=i.tag||Ke;o=r,r=t.default?yl(t.default()):[];for(let c=0;c<r.length;c++){const d=r[c];d.key!=null&&dr(d,Gr(d,a,n,s))}if(o)for(let c=0;c<o.length;c++){const d=o[c];dr(d,Gr(d,a,n,s)),a_.set(d,d.el.getBoundingClientRect())}return P(u,null,r)}}},nw=sw;function rw(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function ow(e){l_.set(e,e.el.getBoundingClientRect())}function iw(e){const t=a_.get(e),s=l_.get(e),n=t.left-s.left,o=t.top-s.top;if(n||o){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${n}px,${o}px)`,r.transitionDuration="0s",e}}function aw(e,t,s){const n=e.cloneNode();e._vtc&&e._vtc.forEach(i=>{i.split(/\s+/).forEach(a=>a&&n.classList.remove(a))}),s.split(/\s+/).forEach(i=>i&&n.classList.add(i)),n.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(n);const{hasTransform:r}=o_(n);return o.removeChild(n),r}const Vn=e=>{const t=e.props["onUpdate:modelValue"];return ze(t)?s=>Ur(t,s):t};function lw(e){e.target.composing=!0}function sh(e){const t=e.target;t.composing&&(t.composing=!1,uw(t,"input"))}function uw(e,t){const s=document.createEvent("HTMLEvents");s.initEvent(t,!0,!0),e.dispatchEvent(s)}const es={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e._assign=Vn(o);const r=n||o.props&&o.props.type==="number";un(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;s?a=a.trim():r&&(a=Ln(a)),e._assign(a)}),s&&un(e,"change",()=>{e.value=e.value.trim()}),t||(un(e,"compositionstart",lw),un(e,"compositionend",sh),un(e,"change",sh))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:s,trim:n,number:o}},r){if(e._assign=Vn(r),e.composing||document.activeElement===e&&(s||n&&e.value.trim()===t||(o||e.type==="number")&&Ln(e.value)===t))return;const i=t==null?"":t;e.value!==i&&(e.value=i)}},pn={deep:!0,created(e,t,s){e._assign=Vn(s),un(e,"change",()=>{const n=e._modelValue,o=Jr(e),r=e.checked,i=e._assign;if(ze(n)){const a=ll(n,o),u=a!==-1;if(r&&!u)i(n.concat(o));else if(!r&&u){const c=[...n];c.splice(a,1),i(c)}}else if(fr(n)){const a=new Set(n);r?a.add(o):a.delete(o),i(a)}else i(u_(e,r))})},mounted:nh,beforeUpdate(e,t,s){e._assign=Vn(s),nh(e,t,s)}};function nh(e,{value:t,oldValue:s},n){e._modelValue=t,ze(t)?e.checked=ll(t,n.props.value)>-1:fr(t)?e.checked=t.has(n.props.value):t!==s&&(e.checked=Mn(t,u_(e,!0)))}const fd={created(e,{value:t},s){e.checked=Mn(t,s.props.value),e._assign=Vn(s),un(e,"change",()=>{e._assign(Jr(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e._assign=Vn(n),t!==s&&(e.checked=Mn(t,n.props.value))}},hd={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const o=fr(t);un(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?Ln(Jr(i)):Jr(i));e._assign(e.multiple?o?new Set(r):r:r[0])}),e._assign=Vn(n)},mounted(e,{value:t}){rh(e,t)},beforeUpdate(e,t,s){e._assign=Vn(s)},updated(e,{value:t}){rh(e,t)}};function rh(e,t){const s=e.multiple;if(!(s&&!ze(t)&&!fr(t))){for(let n=0,o=e.options.length;n<o;n++){const r=e.options[n],i=Jr(r);if(s)ze(t)?r.selected=ll(t,i)>-1:r.selected=t.has(i);else if(Mn(Jr(r),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Jr(e){return"_value"in e?e._value:e.value}function u_(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const cw={created(e,t,s){ji(e,t,s,null,"created")},mounted(e,t,s){ji(e,t,s,null,"mounted")},beforeUpdate(e,t,s,n){ji(e,t,s,n,"beforeUpdate")},updated(e,t,s,n){ji(e,t,s,n,"updated")}};function ji(e,t,s,n,o){let r;switch(e.tagName){case"SELECT":r=hd;break;case"TEXTAREA":r=es;break;default:switch(s.props&&s.props.type){case"checkbox":r=pn;break;case"radio":r=fd;break;default:r=es}}const i=r[o];i&&i(e,t,s,n)}function dw(){es.getSSRProps=({value:e})=>({value:e}),fd.getSSRProps=({value:e},t)=>{if(t.props&&Mn(t.props.value,e))return{checked:!0}},pn.getSSRProps=({value:e},t)=>{if(ze(e)){if(t.props&&ll(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}}}const fw=["ctrl","shift","alt","meta"],hw={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)=>fw.some(s=>e[`${s}Key`]&&!t.includes(s))},pt=(e,t)=>(s,...n)=>{for(let o=0;o<t.length;o++){const r=hw[t[o]];if(r&&r(s,t))return}return e(s,...n)},mw={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},bs=(e,t)=>s=>{if(!("key"in s))return;const n=Zs(s.key);if(t.some(o=>o===n||mw[o]===n))return e(s)},Xr={beforeMount(e,{value:t},{transition:s}){e._vod=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):_o(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),_o(e,!0),n.enter(e)):n.leave(e,()=>{_o(e,!1)}):_o(e,t))},beforeUnmount(e,{value:t}){_o(e,t)}};function _o(e,t){e.style.display=t?e._vod:"none"}function pw(){Xr.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const c_=It({patchProp:W0},D0);let zo,oh=!1;function d_(){return zo||(zo=Rp(c_))}function f_(){return zo=oh?zo:Np(c_),oh=!0,zo}const oc=(...e)=>{d_().render(...e)},h_=(...e)=>{f_().hydrate(...e)},m_=(...e)=>{const t=d_().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=p_(n);if(!o)return;const r=t._component;!et(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=s(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},_w=(...e)=>{const t=f_().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=p_(n);if(o)return s(o,!0,o instanceof SVGElement)},t};function p_(e){return Ot(e)?document.querySelector(e):e}let ih=!1;const gw=()=>{ih||(ih=!0,dw(),pw())},vw=()=>{};var yw=Object.freeze(Object.defineProperty({__proto__:null,compile:vw,EffectScope:Uc,ReactiveEffect:fi,customRef:n1,effect:Cb,effectScope:wb,getCurrentScope:kb,isProxy:Gc,isReactive:ar,isReadonly:zr,isRef:Vt,isShallow:zc,markRaw:Wc,onScopeDispose:xb,proxyRefs:Zc,reactive:pr,readonly:qc,ref:cn,shallowReactive:sp,shallowReadonly:Xb,shallowRef:np,stop:$b,toRaw:lt,toRef:op,toRefs:Lo,triggerRef:e1,unref:Vr,camelize:Ss,capitalize:di,normalizeClass:Le,normalizeProps:fb,normalizeStyle:Hn,toDisplayString:R,toHandlerKey:Mo,BaseTransition:rd,Comment:ss,Fragment:Ke,KeepAlive:N1,Static:lr,Suspense:E1,Teleport:qn,Text:Kr,callWithAsyncErrorHandling:ks,callWithErrorHandling:Js,cloneVNode:mn,compatUtils:A0,computed:Wt,createBlock:xe,createCommentVNode:Y,createElementBlock:A,createElementVNode:l,createHydrationRenderer:Np,createPropsRestProxy:k0,createRenderer:Rp,createSlots:gi,createStaticVNode:ud,createTextVNode:$e,createVNode:P,defineAsyncComponent:I1,defineComponent:mi,defineEmits:_0,defineExpose:g0,defineProps:p0,get devtools(){return Ir},getCurrentInstance:zn,getTransitionRawChildren:yl,guardReactiveProps:Hp,h:Cl,handleError:_r,initCustomFormatter:E0,inject:Xs,isMemoSame:Qp,isRuntimeOnly:c0,isVNode:Bn,mergeDefaults:w0,mergeProps:dd,nextTick:_l,onActivated:vp,onBeforeMount:wp,onBeforeUnmount:kl,onBeforeUpdate:kp,onDeactivated:yp,onErrorCaptured:Cp,onMounted:io,onRenderTracked:Ep,onRenderTriggered:Sp,onServerPrefetch:xp,onUnmounted:_i,onUpdated:wl,openBlock:x,popScopeId:g1,provide:Vo,pushScopeId:_1,queuePostFlushCb:Qc,registerRuntimeCompiler:u0,renderList:bt,renderSlot:xt,resolveComponent:B,resolveDirective:xl,resolveDynamicComponent:jp,resolveFilter:T0,resolveTransitionHooks:Gr,setBlockTracking:Ju,setDevtoolsHook:fp,setTransitionHooks:dr,ssrContextKey:Xp,ssrUtils:O0,toHandlers:r0,transformVNodeArgs:s0,useAttrs:b0,useSSRContext:S0,useSlots:y0,useTransitionState:nd,version:e_,warn:ip,watch:Bt,watchEffect:A1,watchPostEffect:pp,watchSyncEffect:P1,withAsyncContext:x0,withCtx:T,withDefaults:v0,withDirectives:wt,withMemo:C0,withScopeId:v1,Transition:Ht,TransitionGroup:nw,VueElement:$l,createApp:m_,createSSRApp:_w,defineCustomElement:s_,defineSSRCustomElement:Y0,hydrate:h_,initDirectivesForSSR:gw,render:oc,useCssModule:J0,useCssVars:X0,vModelCheckbox:pn,vModelDynamic:cw,vModelRadio:fd,vModelSelect:hd,vModelText:es,vShow:Xr,withKeys:bs,withModifiers:pt},Symbol.toStringTag,{value:"Module"}));function bw(){return __().__VUE_DEVTOOLS_GLOBAL_HOOK__}function __(){return typeof navigator!="undefined"&&typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const ww=typeof Proxy=="function",kw="devtools-plugin:setup",xw="plugin:settings:set";let xr,ic;function Sw(){var e;return xr!==void 0||(typeof window!="undefined"&&window.performance?(xr=!0,ic=window.performance):typeof global!="undefined"&&((e=global.perf_hooks)===null||e===void 0?void 0:e.performance)?(xr=!0,ic=global.perf_hooks.performance):xr=!1),xr}function Ew(){return Sw()?ic.now():Date.now()}class Cw{constructor(t,s){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=s;const n={};if(t.settings)for(const i in t.settings){const a=t.settings[i];n[i]=a.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},n);try{const i=localStorage.getItem(o),a=JSON.parse(i);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(i){try{localStorage.setItem(o,JSON.stringify(i))}catch{}r=i},now(){return Ew()}},s&&s.on(xw,(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 s of this.onQueue)this.target.on[s.method](...s.args);for(const s of this.targetQueue)s.resolve(await this.target[s.method](...s.args))}}function $w(e,t){const s=e,n=__(),o=bw(),r=ww&&s.enableEarlyProxy;if(o&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))o.emit(kw,e,t);else{const i=r?new Cw(s,o):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:s,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
|
|
* vuex v4.0.2
|
|
* (c) 2021 Evan You
|
|
* @license MIT
|
|
*/var Ow="store";function ao(e,t){Object.keys(e).forEach(function(s){return t(e[s],s)})}function Tw(e){return e!==null&&typeof e=="object"}function Aw(e){return e&&typeof e.then=="function"}function Pw(e,t){return function(){return e(t)}}function g_(e,t,s){return t.indexOf(e)<0&&(s&&s.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function v_(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var s=e.state;Ol(e,s,[],e._modules.root,!0),md(e,s,t)}function md(e,t,s){var n=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,r={};ao(o,function(i,a){r[a]=Pw(i,e),Object.defineProperty(e.getters,a,{get:function(){return r[a]()},enumerable:!0})}),e._state=pr({data:t}),e.strict&&Nw(e),n&&s&&e._withCommit(function(){n.data=null})}function Ol(e,t,s,n,o){var r=!s.length,i=e._modules.getNamespace(s);if(n.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=n),!r&&!o){var a=pd(t,s.slice(0,-1)),u=s[s.length-1];e._withCommit(function(){a[u]=n.state})}var c=n.context=Dw(e,i,s);n.forEachMutation(function(d,h){var f=i+h;Fw(e,f,d,c)}),n.forEachAction(function(d,h){var f=d.root?h:i+h,m=d.handler||d;Iw(e,f,m,c)}),n.forEachGetter(function(d,h){var f=i+h;Rw(e,f,d,c)}),n.forEachChild(function(d,h){Ol(e,t,s.concat(h),d,o)})}function Dw(e,t,s){var n=t==="",o={dispatch:n?e.dispatch:function(r,i,a){var u=Ka(r,i,a),c=u.payload,d=u.options,h=u.type;return(!d||!d.root)&&(h=t+h),e.dispatch(h,c)},commit:n?e.commit:function(r,i,a){var u=Ka(r,i,a),c=u.payload,d=u.options,h=u.type;(!d||!d.root)&&(h=t+h),e.commit(h,c,d)}};return Object.defineProperties(o,{getters:{get:n?function(){return e.getters}:function(){return y_(e,t)}},state:{get:function(){return pd(e.state,s)}}}),o}function y_(e,t){if(!e._makeLocalGettersCache[t]){var s={},n=t.length;Object.keys(e.getters).forEach(function(o){if(o.slice(0,n)===t){var r=o.slice(n);Object.defineProperty(s,r,{get:function(){return e.getters[o]},enumerable:!0})}}),e._makeLocalGettersCache[t]=s}return e._makeLocalGettersCache[t]}function Fw(e,t,s,n){var o=e._mutations[t]||(e._mutations[t]=[]);o.push(function(i){s.call(e,n.state,i)})}function Iw(e,t,s,n){var o=e._actions[t]||(e._actions[t]=[]);o.push(function(i){var a=s.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},i);return Aw(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):a})}function Rw(e,t,s,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(r){return s(n.state,n.getters,r.state,r.getters)})}function Nw(e){Bt(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function pd(e,t){return t.reduce(function(s,n){return s[n]},e)}function Ka(e,t,s){return Tw(e)&&e.type&&(s=t,t=e,e=e.type),{type:e,payload:t,options:s}}var Mw="vuex bindings",ah="vuex:mutations",du="vuex:actions",Sr="vuex",Lw=0;function jw(e,t){$w({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:[Mw]},function(s){s.addTimelineLayer({id:ah,label:"Vuex Mutations",color:lh}),s.addTimelineLayer({id:du,label:"Vuex Actions",color:lh}),s.addInspector({id:Sr,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),s.on.getInspectorTree(function(n){if(n.app===e&&n.inspectorId===Sr)if(n.filter){var o=[];x_(o,t._modules.root,n.filter,""),n.rootNodes=o}else n.rootNodes=[k_(t._modules.root,"")]}),s.on.getInspectorState(function(n){if(n.app===e&&n.inspectorId===Sr){var o=n.nodeId;y_(t,o),n.state=Vw(qw(t._modules,o),o==="root"?t.getters:t._makeLocalGettersCache,o)}}),s.on.editInspectorState(function(n){if(n.app===e&&n.inspectorId===Sr){var o=n.nodeId,r=n.path;o!=="root"&&(r=o.split("/").filter(Boolean).concat(r)),t._withCommit(function(){n.set(t._state.data,r,n.state.value)})}}),t.subscribe(function(n,o){var r={};n.payload&&(r.payload=n.payload),r.state=o,s.notifyComponentUpdate(),s.sendInspectorTree(Sr),s.sendInspectorState(Sr),s.addTimelineEvent({layerId:ah,event:{time:Date.now(),title:n.type,data:r}})}),t.subscribeAction({before:function(n,o){var r={};n.payload&&(r.payload=n.payload),n._id=Lw++,n._time=Date.now(),r.state=o,s.addTimelineEvent({layerId:du,event:{time:n._time,title:n.type,groupId:n._id,subtitle:"start",data:r}})},after:function(n,o){var r={},i=Date.now()-n._time;r.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},n.payload&&(r.payload=n.payload),r.state=o,s.addTimelineEvent({layerId:du,event:{time:Date.now(),title:n.type,groupId:n._id,subtitle:"end",data:r}})}})})}var lh=8702998,Bw=6710886,Uw=16777215,b_={label:"namespaced",textColor:Uw,backgroundColor:Bw};function w_(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function k_(e,t){return{id:t||"root",label:w_(t),tags:e.namespaced?[b_]:[],children:Object.keys(e._children).map(function(s){return k_(e._children[s],t+s+"/")})}}function x_(e,t,s,n){n.includes(s)&&e.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:t.namespaced?[b_]:[]}),Object.keys(t._children).forEach(function(o){x_(e,t._children[o],s,n+o+"/")})}function Vw(e,t,s){t=s==="root"?t:t[s];var n=Object.keys(t),o={state:Object.keys(e.state).map(function(i){return{key:i,editable:!0,value:e.state[i]}})};if(n.length){var r=Hw(t);o.getters=Object.keys(r).map(function(i){return{key:i.endsWith("/")?w_(i):i,editable:!1,value:ac(function(){return r[i]})}})}return o}function Hw(e){var t={};return Object.keys(e).forEach(function(s){var n=s.split("/");if(n.length>1){var o=t,r=n.pop();n.forEach(function(i){o[i]||(o[i]={_custom:{value:{},display:i,tooltip:"Module",abstract:!0}}),o=o[i]._custom.value}),o[r]=ac(function(){return e[s]})}else t[s]=ac(function(){return e[s]})}),t}function qw(e,t){var s=t.split("/").filter(function(n){return n});return s.reduce(function(n,o,r){var i=n[o];if(!i)throw new Error('Missing module "'+o+'" for path "'+t+'".');return r===s.length-1?i:i._children},t==="root"?e:e.root._children)}function ac(e){try{return e()}catch(t){return t}}var zs=function(t,s){this.runtime=s,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=(typeof n=="function"?n():n)||{}},S_={namespaced:{configurable:!0}};S_.namespaced.get=function(){return!!this._rawModule.namespaced};zs.prototype.addChild=function(t,s){this._children[t]=s};zs.prototype.removeChild=function(t){delete this._children[t]};zs.prototype.getChild=function(t){return this._children[t]};zs.prototype.hasChild=function(t){return t in this._children};zs.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)};zs.prototype.forEachChild=function(t){ao(this._children,t)};zs.prototype.forEachGetter=function(t){this._rawModule.getters&&ao(this._rawModule.getters,t)};zs.prototype.forEachAction=function(t){this._rawModule.actions&&ao(this._rawModule.actions,t)};zs.prototype.forEachMutation=function(t){this._rawModule.mutations&&ao(this._rawModule.mutations,t)};Object.defineProperties(zs.prototype,S_);var gr=function(t){this.register([],t,!1)};gr.prototype.get=function(t){return t.reduce(function(s,n){return s.getChild(n)},this.root)};gr.prototype.getNamespace=function(t){var s=this.root;return t.reduce(function(n,o){return s=s.getChild(o),n+(s.namespaced?o+"/":"")},"")};gr.prototype.update=function(t){E_([],this.root,t)};gr.prototype.register=function(t,s,n){var o=this;n===void 0&&(n=!0);var r=new zs(s,n);if(t.length===0)this.root=r;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],r)}s.modules&&ao(s.modules,function(a,u){o.register(t.concat(u),a,n)})};gr.prototype.unregister=function(t){var s=this.get(t.slice(0,-1)),n=t[t.length-1],o=s.getChild(n);!o||!o.runtime||s.removeChild(n)};gr.prototype.isRegistered=function(t){var s=this.get(t.slice(0,-1)),n=t[t.length-1];return s?s.hasChild(n):!1};function E_(e,t,s){if(t.update(s),s.modules)for(var n in s.modules){if(!t.getChild(n))return;E_(e.concat(n),t.getChild(n),s.modules[n])}}function zw(e){return new hs(e)}var hs=function(t){var s=this;t===void 0&&(t={});var n=t.plugins;n===void 0&&(n=[]);var o=t.strict;o===void 0&&(o=!1);var r=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 gr(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=r;var i=this,a=this,u=a.dispatch,c=a.commit;this.dispatch=function(f,m){return u.call(i,f,m)},this.commit=function(f,m,p){return c.call(i,f,m,p)},this.strict=o;var d=this._modules.root.state;Ol(this,d,[],this._modules.root),md(this,d),n.forEach(function(h){return h(s)})},_d={state:{configurable:!0}};hs.prototype.install=function(t,s){t.provide(s||Ow,this),t.config.globalProperties.$store=this;var n=this._devtools!==void 0?this._devtools:!1;n&&jw(t,this)};_d.state.get=function(){return this._state.data};_d.state.set=function(e){};hs.prototype.commit=function(t,s,n){var o=this,r=Ka(t,s,n),i=r.type,a=r.payload,u={type:i,payload:a},c=this._mutations[i];!c||(this._withCommit(function(){c.forEach(function(h){h(a)})}),this._subscribers.slice().forEach(function(d){return d(u,o.state)}))};hs.prototype.dispatch=function(t,s){var n=this,o=Ka(t,s),r=o.type,i=o.payload,a={type:r,payload:i},u=this._actions[r];if(!!u){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(a,n.state)})}catch{}var c=u.length>1?Promise.all(u.map(function(d){return d(i)})):u[0](i);return new Promise(function(d,h){c.then(function(f){try{n._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(a,n.state)})}catch{}d(f)},function(f){try{n._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(a,n.state,f)})}catch{}h(f)})})}};hs.prototype.subscribe=function(t,s){return g_(t,this._subscribers,s)};hs.prototype.subscribeAction=function(t,s){var n=typeof t=="function"?{before:t}:t;return g_(n,this._actionSubscribers,s)};hs.prototype.watch=function(t,s,n){var o=this;return Bt(function(){return t(o.state,o.getters)},s,Object.assign({},n))};hs.prototype.replaceState=function(t){var s=this;this._withCommit(function(){s._state.data=t})};hs.prototype.registerModule=function(t,s,n){n===void 0&&(n={}),typeof t=="string"&&(t=[t]),this._modules.register(t,s),Ol(this,this.state,t,this._modules.get(t),n.preserveState),md(this,this.state)};hs.prototype.unregisterModule=function(t){var s=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=pd(s.state,t.slice(0,-1));delete n[t[t.length-1]]}),v_(this)};hs.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};hs.prototype.hotUpdate=function(t){this._modules.update(t),v_(this,!0)};hs.prototype._withCommit=function(t){var s=this._committing;this._committing=!0,t(),this._committing=s};Object.defineProperties(hs.prototype,_d);const C_="UPDATE_CONFIG",$_="UPDATE_SETTINGS",Tl="UPDATE_SETTINGS_OPTION",O_="UPDATE_LIBRARY_STATS",T_="UPDATE_LIBRARY_AUDIOBOOKS_COUNT",A_="UPDATE_LIBRARY_PODCASTS_COUNT",P_="UPDATE_LIBRARY_RSS_COUNT",D_="UPDATE_OUTPUTS",gd="UPDATE_PLAYER_STATUS",F_="UPDATE_QUEUE",I_="UPDATE_LASTFM",R_="UPDATE_SPOTIFY",N_="UPDATE_PAIRING",vd="SPOTIFY_NEW_RELEASES",yd="SPOTIFY_FEATURED_PLAYLISTS",uh="ADD_NOTIFICATION",lc="DELETE_NOTIFICATION",uc="SEARCH_PATH",bd="ADD_RECENT_SEARCH",Al="HIDE_SINGLES",wd="HIDE_SPOTIFY",M_="ARTISTS_SORT",L_="ARTIST_ALBUMS_SORT",j_="ALBUMS_SORT",B_="SHOW_ONLY_NEXT_ITEMS",Qr="SHOW_BURGER_MENU",eo="SHOW_PLAYER_MENU",vi="SHOW_UPDATE_DIALOG",kd="UPDATE_DIALOG_SCAN_KIND";var it=zw({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:[],hide_singles:!1,hide_spotify:!1,artists_sort:"Name",artist_albums_sort:"Name",albums_sort:"Name",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(s){return s.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 s=t.settings_webinterface.options.find(n=>n.name==="recently_added_limit");if(s)return s.value}return 100},settings_option_show_composer_now_playing:(e,t)=>{if(t.settings_webinterface){const s=t.settings_webinterface.options.find(n=>n.name==="show_composer_now_playing");if(s)return s.value}return!1},settings_option_show_composer_for_genre:(e,t)=>{if(t.settings_webinterface){const s=t.settings_webinterface.options.find(n=>n.name==="show_composer_for_genre");if(s)return s.value}return null},settings_category:e=>t=>e.settings.categories.find(s=>s.name===t),settings_option:e=>(t,s)=>{const n=e.settings.categories.find(o=>o.name===t);return n?n.options.find(o=>o.name===s):{}}},mutations:{[C_](e,t){e.config=t},[$_](e,t){e.settings=t},[Tl](e,t){const n=e.settings.categories.find(o=>o.name===t.category).options.find(o=>o.name===t.name);n.value=t.value},[O_](e,t){e.library=t},[T_](e,t){e.audiobooks_count=t},[A_](e,t){e.podcasts_count=t},[P_](e,t){e.rss_count=t},[D_](e,t){e.outputs=t},[gd](e,t){e.player=t},[F_](e,t){e.queue=t},[I_](e,t){e.lastfm=t},[R_](e,t){e.spotify=t},[N_](e,t){e.pairing=t},[vd](e,t){e.spotify_new_releases=t},[yd](e,t){e.spotify_featured_playlists=t},[uh](e,t){if(t.topic){const s=e.notifications.list.findIndex(n=>n.topic===t.topic);if(s>=0){e.notifications.list.splice(s,1,t);return}}e.notifications.list.push(t)},[lc](e,t){const s=e.notifications.list.indexOf(t);s!==-1&&e.notifications.list.splice(s,1)},[uc](e,t){e.search_path=t},[bd](e,t){const s=e.recent_searches.findIndex(n=>n===t);s>=0&&e.recent_searches.splice(s,1),e.recent_searches.splice(0,0,t),e.recent_searches.length>5&&e.recent_searches.pop()},[Al](e,t){e.hide_singles=t},[wd](e,t){e.hide_spotify=t},[M_](e,t){e.artists_sort=t},[L_](e,t){e.artist_albums_sort=t},[j_](e,t){e.albums_sort=t},[B_](e,t){e.show_only_next_items=t},[Qr](e,t){e.show_burger_menu=t},[eo](e,t){e.show_player_menu=t},[vi](e,t){e.show_update_dialog=t},[kd](e,t){e.update_dialog_scan_kind=t}},actions:{add_notification({commit:e,state:t},s){const n={id:t.notifications.next_id++,type:s.type,text:s.text,topic:s.topic,timeout:s.timeout};e(uh,n),s.timeout>0&&setTimeout(()=>{e(lc,n)},s.timeout)}}});/*!
|
|
* vue-router v4.0.14
|
|
* (c) 2022 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const U_=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",lo=e=>U_?Symbol(e):"_vr_"+e,Gw=lo("rvlm"),ch=lo("rvd"),xd=lo("r"),V_=lo("rl"),cc=lo("rvl"),Rr=typeof window!="undefined";function Ww(e){return e.__esModule||U_&&e[Symbol.toStringTag]==="Module"}const yt=Object.assign;function fu(e,t){const s={};for(const n in t){const o=t[n];s[n]=Array.isArray(o)?o.map(e):e(o)}return s}const Go=()=>{},Kw=/\/$/,Yw=e=>e.replace(Kw,"");function hu(e,t,s="/"){let n,o={},r="",i="";const a=t.indexOf("?"),u=t.indexOf("#",a>-1?a:0);return a>-1&&(n=t.slice(0,a),r=t.slice(a+1,u>-1?u:t.length),o=e(r)),u>-1&&(n=n||t.slice(0,u),i=t.slice(u,t.length)),n=Qw(n!=null?n:t,s),{fullPath:n+(r&&"?")+r+i,path:n,query:o,hash:i}}function Zw(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function dh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Jw(e,t,s){const n=t.matched.length-1,o=s.matched.length-1;return n>-1&&n===o&&to(t.matched[n],s.matched[o])&&H_(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function to(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function H_(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(!Xw(e[s],t[s]))return!1;return!0}function Xw(e,t){return Array.isArray(e)?fh(e,t):Array.isArray(t)?fh(t,e):e===t}function fh(e,t){return Array.isArray(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function Qw(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),n=e.split("/");let o=s.length-1,r,i;for(r=0;r<n.length;r++)if(i=n[r],!(o===1||i==="."))if(i==="..")o--;else break;return s.slice(0,o).join("/")+"/"+n.slice(r-(r===n.length?1:0)).join("/")}var ai;(function(e){e.pop="pop",e.push="push"})(ai||(ai={}));var Wo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Wo||(Wo={}));function ek(e){if(!e)if(Rr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Yw(e)}const tk=/^[^#]+#/;function sk(e,t){return e.replace(tk,"#")+t}function nk(e,t){const s=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-s.left-(t.left||0),top:n.top-s.top-(t.top||0)}}const Pl=()=>({left:window.pageXOffset,top:window.pageYOffset});function rk(e){let t;if("el"in e){const s=e.el,n=typeof s=="string"&&s.startsWith("#"),o=typeof s=="string"?n?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!o)return;t=nk(o,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 hh(e,t){return(history.state?history.state.position-t:-1)+e}const dc=new Map;function ok(e,t){dc.set(e,t)}function ik(e){const t=dc.get(e);return dc.delete(e),t}let ak=()=>location.protocol+"//"+location.host;function q_(e,t){const{pathname:s,search:n,hash:o}=t,r=e.indexOf("#");if(r>-1){let a=o.includes(e.slice(r))?e.slice(r).length:1,u=o.slice(a);return u[0]!=="/"&&(u="/"+u),dh(u,"")}return dh(s,e)+n+o}function lk(e,t,s,n){let o=[],r=[],i=null;const a=({state:f})=>{const m=q_(e,location),p=s.value,_=t.value;let g=0;if(f){if(s.value=m,t.value=f,i&&i===p){i=null;return}g=_?f.position-_.position:0}else n(m);o.forEach(y=>{y(s.value,p,{delta:g,type:ai.pop,direction:g?g>0?Wo.forward:Wo.back:Wo.unknown})})};function u(){i=s.value}function c(f){o.push(f);const m=()=>{const p=o.indexOf(f);p>-1&&o.splice(p,1)};return r.push(m),m}function d(){const{history:f}=window;!f.state||f.replaceState(yt({},f.state,{scroll:Pl()}),"")}function h(){for(const f of r)f();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:u,listen:c,destroy:h}}function mh(e,t,s,n=!1,o=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:o?Pl():null}}function uk(e){const{history:t,location:s}=window,n={value:q_(e,s)},o={value:t.state};o.value||r(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(u,c,d){const h=e.indexOf("#"),f=h>-1?(s.host&&document.querySelector("base")?e:e.slice(h))+u:ak()+e+u;try{t[d?"replaceState":"pushState"](c,"",f),o.value=c}catch(m){console.error(m),s[d?"replace":"assign"](f)}}function i(u,c){const d=yt({},t.state,mh(o.value.back,u,o.value.forward,!0),c,{position:o.value.position});r(u,d,!0),n.value=u}function a(u,c){const d=yt({},o.value,t.state,{forward:u,scroll:Pl()});r(d.current,d,!0);const h=yt({},mh(n.value,u,null),{position:d.position+1},c);r(u,h,!1),n.value=u}return{location:n,state:o,push:a,replace:i}}function ck(e){e=ek(e);const t=uk(e),s=lk(e,t.state,t.location,t.replace);function n(r,i=!0){i||s.pauseListeners(),history.go(r)}const o=yt({location:"",base:e,go:n,createHref:sk.bind(null,e)},t,s);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function dk(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),ck(e)}function fk(e){return typeof e=="string"||e&&typeof e=="object"}function z_(e){return typeof e=="string"||typeof e=="symbol"}const Sn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},G_=lo("nf");var ph;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ph||(ph={}));function so(e,t){return yt(new Error,{type:e,[G_]:!0},t)}function En(e,t){return e instanceof Error&&G_ in e&&(t==null||!!(e.type&t))}const _h="[^/]+?",hk={sensitive:!1,strict:!1,start:!0,end:!0},mk=/[.+*?^${}()[\]/\\]/g;function pk(e,t){const s=yt({},hk,t),n=[];let o=s.start?"^":"";const r=[];for(const c of e){const d=c.length?[]:[90];s.strict&&!c.length&&(o+="/");for(let h=0;h<c.length;h++){const f=c[h];let m=40+(s.sensitive?.25:0);if(f.type===0)h||(o+="/"),o+=f.value.replace(mk,"\\$&"),m+=40;else if(f.type===1){const{value:p,repeatable:_,optional:g,regexp:y}=f;r.push({name:p,repeatable:_,optional:g});const b=y||_h;if(b!==_h){m+=10;try{new RegExp(`(${b})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${p}" (${b}): `+S.message)}}let k=_?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;h||(k=g&&c.length<2?`(?:/${k})`:"/"+k),g&&(k+="?"),o+=k,m+=20,g&&(m+=-8),_&&(m+=-20),b===".*"&&(m+=-50)}d.push(m)}n.push(d)}if(s.strict&&s.end){const c=n.length-1;n[c][n[c].length-1]+=.7000000000000001}s.strict||(o+="/?"),s.end?o+="$":s.strict&&(o+="(?:/|$)");const i=new RegExp(o,s.sensitive?"":"i");function a(c){const d=c.match(i),h={};if(!d)return null;for(let f=1;f<d.length;f++){const m=d[f]||"",p=r[f-1];h[p.name]=m&&p.repeatable?m.split("/"):m}return h}function u(c){let d="",h=!1;for(const f of e){(!h||!d.endsWith("/"))&&(d+="/"),h=!1;for(const m of f)if(m.type===0)d+=m.value;else if(m.type===1){const{value:p,repeatable:_,optional:g}=m,y=p in c?c[p]:"";if(Array.isArray(y)&&!_)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const b=Array.isArray(y)?y.join("/"):y;if(!b)if(g)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):h=!0);else throw new Error(`Missing required param "${p}"`);d+=b}}return d}return{re:i,score:n,keys:r,parse:a,stringify:u}}function _k(e,t){let s=0;for(;s<e.length&&s<t.length;){const n=t[s]-e[s];if(n)return n;s++}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 gk(e,t){let s=0;const n=e.score,o=t.score;for(;s<n.length&&s<o.length;){const r=_k(n[s],o[s]);if(r)return r;s++}return o.length-n.length}const vk={type:0,value:""},yk=/[a-zA-Z0-9_]/;function bk(e){if(!e)return[[]];if(e==="/")return[[vk]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${s})/"${c}": ${m}`)}let s=0,n=s;const o=[];let r;function i(){r&&o.push(r),r=[]}let a=0,u,c="",d="";function h(){!c||(s===0?r.push({type:0,value:c}):s===1||s===2||s===3?(r.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=u}for(;a<e.length;){if(u=e[a++],u==="\\"&&s!==2){n=s,s=4;continue}switch(s){case 0:u==="/"?(c&&h(),i()):u===":"?(h(),s=1):f();break;case 4:f(),s=n;break;case 1:u==="("?s=2:yk.test(u)?f():(h(),s=0,u!=="*"&&u!=="?"&&u!=="+"&&a--);break;case 2:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:s=3:d+=u;break;case 3:h(),s=0,u!=="*"&&u!=="?"&&u!=="+"&&a--,d="";break;default:t("Unknown state");break}}return s===2&&t(`Unfinished custom RegExp for param "${c}"`),h(),i(),o}function wk(e,t,s){const n=pk(bk(e.path),s),o=yt(n,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function kk(e,t){const s=[],n=new Map;t=vh({strict:!1,end:!0,sensitive:!1},t);function o(d){return n.get(d)}function r(d,h,f){const m=!f,p=Sk(d);p.aliasOf=f&&f.record;const _=vh(t,d),g=[p];if("alias"in d){const k=typeof d.alias=="string"?[d.alias]:d.alias;for(const S of k)g.push(yt({},p,{components:f?f.record.components:p.components,path:S,aliasOf:f?f.record:p}))}let y,b;for(const k of g){const{path:S}=k;if(h&&S[0]!=="/"){const E=h.record.path,$=E[E.length-1]==="/"?"":"/";k.path=h.record.path+(S&&$+S)}if(y=wk(k,h,_),f?f.alias.push(y):(b=b||y,b!==y&&b.alias.push(y),m&&d.name&&!gh(y)&&i(d.name)),"children"in p){const E=p.children;for(let $=0;$<E.length;$++)r(E[$],y,f&&f.children[$])}f=f||y,u(y)}return b?()=>{i(b)}:Go}function i(d){if(z_(d)){const h=n.get(d);h&&(n.delete(d),s.splice(s.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=s.indexOf(d);h>-1&&(s.splice(h,1),d.record.name&&n.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return s}function u(d){let h=0;for(;h<s.length&&gk(d,s[h])>=0&&(d.record.path!==s[h].record.path||!W_(d,s[h]));)h++;s.splice(h,0,d),d.record.name&&!gh(d)&&n.set(d.record.name,d)}function c(d,h){let f,m={},p,_;if("name"in d&&d.name){if(f=n.get(d.name),!f)throw so(1,{location:d});_=f.record.name,m=yt(xk(h.params,f.keys.filter(b=>!b.optional).map(b=>b.name)),d.params),p=f.stringify(m)}else if("path"in d)p=d.path,f=s.find(b=>b.re.test(p)),f&&(m=f.parse(p),_=f.record.name);else{if(f=h.name?n.get(h.name):s.find(b=>b.re.test(h.path)),!f)throw so(1,{location:d,currentLocation:h});_=f.record.name,m=yt({},h.params,d.params),p=f.stringify(m)}const g=[];let y=f;for(;y;)g.unshift(y.record),y=y.parent;return{name:_,path:p,params:m,matched:g,meta:Ck(g)}}return e.forEach(d=>r(d)),{addRoute:r,resolve:c,removeRoute:i,getRoutes:a,getRecordMatcher:o}}function xk(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function Sk(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Ek(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function Ek(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const n in e.components)t[n]=typeof s=="boolean"?s:s[n];return t}function gh(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ck(e){return e.reduce((t,s)=>yt(t,s.meta),{})}function vh(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}function W_(e,t){return t.children.some(s=>s===e||W_(e,s))}const K_=/#/g,$k=/&/g,Ok=/\//g,Tk=/=/g,Ak=/\?/g,Y_=/\+/g,Pk=/%5B/g,Dk=/%5D/g,Z_=/%5E/g,Fk=/%60/g,J_=/%7B/g,Ik=/%7C/g,X_=/%7D/g,Rk=/%20/g;function Sd(e){return encodeURI(""+e).replace(Ik,"|").replace(Pk,"[").replace(Dk,"]")}function Nk(e){return Sd(e).replace(J_,"{").replace(X_,"}").replace(Z_,"^")}function fc(e){return Sd(e).replace(Y_,"%2B").replace(Rk,"+").replace(K_,"%23").replace($k,"%26").replace(Fk,"`").replace(J_,"{").replace(X_,"}").replace(Z_,"^")}function Mk(e){return fc(e).replace(Tk,"%3D")}function Lk(e){return Sd(e).replace(K_,"%23").replace(Ak,"%3F")}function jk(e){return e==null?"":Lk(e).replace(Ok,"%2F")}function Ya(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Bk(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const r=n[o].replace(Y_," "),i=r.indexOf("="),a=Ya(i<0?r:r.slice(0,i)),u=i<0?null:Ya(r.slice(i+1));if(a in t){let c=t[a];Array.isArray(c)||(c=t[a]=[c]),c.push(u)}else t[a]=u}return t}function yh(e){let t="";for(let s in e){const n=e[s];if(s=Mk(s),n==null){n!==void 0&&(t+=(t.length?"&":"")+s);continue}(Array.isArray(n)?n.map(r=>r&&fc(r)):[n&&fc(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+s,r!=null&&(t+="="+r))})}return t}function Uk(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=Array.isArray(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}function go(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function s(){e=[]}return{add:t,list:()=>e,reset:s}}function Tn(e,t,s,n,o){const r=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((i,a)=>{const u=h=>{h===!1?a(so(4,{from:s,to:t})):h instanceof Error?a(h):fk(h)?a(so(2,{from:t,to:h})):(r&&n.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),i())},c=e.call(n&&n.instances[o],t,s,u);let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(h=>a(h))})}function mu(e,t,s,n){const o=[];for(const r of e)for(const i in r.components){let a=r.components[i];if(!(t!=="beforeRouteEnter"&&!r.instances[i]))if(Vk(a)){const c=(a.__vccOpts||a)[t];c&&o.push(Tn(c,s,n,r,i))}else{let u=a();o.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${r.path}"`));const d=Ww(c)?c.default:c;r.components[i]=d;const f=(d.__vccOpts||d)[t];return f&&Tn(f,s,n,r,i)()}))}}return o}function Vk(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function bh(e){const t=Xs(xd),s=Xs(V_),n=Wt(()=>t.resolve(Vr(e.to))),o=Wt(()=>{const{matched:u}=n.value,{length:c}=u,d=u[c-1],h=s.matched;if(!d||!h.length)return-1;const f=h.findIndex(to.bind(null,d));if(f>-1)return f;const m=wh(u[c-2]);return c>1&&wh(d)===m&&h[h.length-1].path!==m?h.findIndex(to.bind(null,u[c-2])):f}),r=Wt(()=>o.value>-1&&Gk(s.params,n.value.params)),i=Wt(()=>o.value>-1&&o.value===s.matched.length-1&&H_(s.params,n.value.params));function a(u={}){return zk(u)?t[Vr(e.replace)?"replace":"push"](Vr(e.to)).catch(Go):Promise.resolve()}return{route:n,href:Wt(()=>n.value.href),isActive:r,isExactActive:i,navigate:a}}const Hk=mi({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:bh,setup(e,{slots:t}){const s=pr(bh(e)),{options:n}=Xs(xd),o=Wt(()=>({[kh(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[kh(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const r=t.default&&t.default(s);return e.custom?r:Cl("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:o.value},r)}}}),qk=Hk;function zk(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 Gk(e,t){for(const s in t){const n=t[s],o=e[s];if(typeof n=="string"){if(n!==o)return!1}else if(!Array.isArray(o)||o.length!==n.length||n.some((r,i)=>r!==o[i]))return!1}return!0}function wh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const kh=(e,t,s)=>e!=null?e:t!=null?t:s,Wk=mi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:s}){const n=Xs(cc),o=Wt(()=>e.route||n.value),r=Xs(ch,0),i=Wt(()=>o.value.matched[r]);Vo(ch,r+1),Vo(Gw,i),Vo(cc,o);const a=cn();return Bt(()=>[a.value,i.value,e.name],([u,c,d],[h,f,m])=>{c&&(c.instances[d]=u,f&&f!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=f.leaveGuards),c.updateGuards.size||(c.updateGuards=f.updateGuards))),u&&c&&(!f||!to(c,f)||!h)&&(c.enterCallbacks[d]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=o.value,c=i.value,d=c&&c.components[e.name],h=e.name;if(!d)return xh(s.default,{Component:d,route:u});const f=c.props[e.name],m=f?f===!0?u.params:typeof f=="function"?f(u):f:null,_=Cl(d,yt({},m,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(c.instances[h]=null)},ref:a}));return xh(s.default,{Component:_,route:u})||_}}});function xh(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const Kk=Wk;function Yk(e){const t=kk(e.routes,e),s=e.parseQuery||Bk,n=e.stringifyQuery||yh,o=e.history,r=go(),i=go(),a=go(),u=np(Sn);let c=Sn;Rr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=fu.bind(null,V=>""+V),h=fu.bind(null,jk),f=fu.bind(null,Ya);function m(V,re){let se,be;return z_(V)?(se=t.getRecordMatcher(V),be=re):be=V,t.addRoute(be,se)}function p(V){const re=t.getRecordMatcher(V);re&&t.removeRoute(re)}function _(){return t.getRoutes().map(V=>V.record)}function g(V){return!!t.getRecordMatcher(V)}function y(V,re){if(re=yt({},re||u.value),typeof V=="string"){const De=hu(s,V,re.path),C=t.resolve({path:De.path},re),N=o.createHref(De.fullPath);return yt(De,C,{params:f(C.params),hash:Ya(De.hash),redirectedFrom:void 0,href:N})}let se;if("path"in V)se=yt({},V,{path:hu(s,V.path,re.path).path});else{const De=yt({},V.params);for(const C in De)De[C]==null&&delete De[C];se=yt({},V,{params:h(V.params)}),re.params=h(re.params)}const be=t.resolve(se,re),He=V.hash||"";be.params=d(f(be.params));const Re=Zw(n,yt({},V,{hash:Nk(He),path:be.path})),Oe=o.createHref(Re);return yt({fullPath:Re,hash:He,query:n===yh?Uk(V.query):V.query||{}},be,{redirectedFrom:void 0,href:Oe})}function b(V){return typeof V=="string"?hu(s,V,u.value.path):yt({},V)}function k(V,re){if(c!==V)return so(8,{from:re,to:V})}function S(V){return I(V)}function E(V){return S(yt(b(V),{replace:!0}))}function $(V){const re=V.matched[V.matched.length-1];if(re&&re.redirect){const{redirect:se}=re;let be=typeof se=="function"?se(V):se;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=b(be):{path:be},be.params={}),yt({query:V.query,hash:V.hash,params:V.params},be)}}function I(V,re){const se=c=y(V),be=u.value,He=V.state,Re=V.force,Oe=V.replace===!0,De=$(se);if(De)return I(yt(b(De),{state:He,force:Re,replace:Oe}),re||se);const C=se;C.redirectedFrom=re;let N;return!Re&&Jw(n,be,se)&&(N=so(16,{to:C,from:be}),Ge(be,be,!0,!1)),(N?Promise.resolve(N):O(C,be)).catch(K=>En(K)?En(K,2)?K:Me(K):ae(K,C,be)).then(K=>{if(K){if(En(K,2))return I(yt(b(K.to),{state:He,force:Re,replace:Oe}),re||C)}else K=z(C,be,!0,Oe,He);return L(C,be,K),K})}function j(V,re){const se=k(V,re);return se?Promise.reject(se):Promise.resolve()}function O(V,re){let se;const[be,He,Re]=Zk(V,re);se=mu(be.reverse(),"beforeRouteLeave",V,re);for(const De of be)De.leaveGuards.forEach(C=>{se.push(Tn(C,V,re))});const Oe=j.bind(null,V,re);return se.push(Oe),Er(se).then(()=>{se=[];for(const De of r.list())se.push(Tn(De,V,re));return se.push(Oe),Er(se)}).then(()=>{se=mu(He,"beforeRouteUpdate",V,re);for(const De of He)De.updateGuards.forEach(C=>{se.push(Tn(C,V,re))});return se.push(Oe),Er(se)}).then(()=>{se=[];for(const De of V.matched)if(De.beforeEnter&&!re.matched.includes(De))if(Array.isArray(De.beforeEnter))for(const C of De.beforeEnter)se.push(Tn(C,V,re));else se.push(Tn(De.beforeEnter,V,re));return se.push(Oe),Er(se)}).then(()=>(V.matched.forEach(De=>De.enterCallbacks={}),se=mu(Re,"beforeRouteEnter",V,re),se.push(Oe),Er(se))).then(()=>{se=[];for(const De of i.list())se.push(Tn(De,V,re));return se.push(Oe),Er(se)}).catch(De=>En(De,8)?De:Promise.reject(De))}function L(V,re,se){for(const be of a.list())be(V,re,se)}function z(V,re,se,be,He){const Re=k(V,re);if(Re)return Re;const Oe=re===Sn,De=Rr?history.state:{};se&&(be||Oe?o.replace(V.fullPath,yt({scroll:Oe&&De&&De.scroll},He)):o.push(V.fullPath,He)),u.value=V,Ge(V,re,se,Oe),Me()}let D;function U(){D=o.listen((V,re,se)=>{const be=y(V),He=$(be);if(He){I(yt(He,{replace:!0}),be).catch(Go);return}c=be;const Re=u.value;Rr&&ok(hh(Re.fullPath,se.delta),Pl()),O(be,Re).catch(Oe=>En(Oe,12)?Oe:En(Oe,2)?(I(Oe.to,be).then(De=>{En(De,20)&&!se.delta&&se.type===ai.pop&&o.go(-1,!1)}).catch(Go),Promise.reject()):(se.delta&&o.go(-se.delta,!1),ae(Oe,be,Re))).then(Oe=>{Oe=Oe||z(be,Re,!1),Oe&&(se.delta?o.go(-se.delta,!1):se.type===ai.pop&&En(Oe,20)&&o.go(-1,!1)),L(be,Re,Oe)}).catch(Go)})}let W=go(),ue=go(),te;function ae(V,re,se){Me(V);const be=ue.list();return be.length?be.forEach(He=>He(V,re,se)):console.error(V),Promise.reject(V)}function ve(){return te&&u.value!==Sn?Promise.resolve():new Promise((V,re)=>{W.add([V,re])})}function Me(V){return te||(te=!V,U(),W.list().forEach(([re,se])=>V?se(V):re()),W.reset()),V}function Ge(V,re,se,be){const{scrollBehavior:He}=e;if(!Rr||!He)return Promise.resolve();const Re=!se&&ik(hh(V.fullPath,0))||(be||!se)&&history.state&&history.state.scroll||null;return _l().then(()=>He(V,re,Re)).then(Oe=>Oe&&rk(Oe)).catch(Oe=>ae(Oe,V,re))}const me=V=>o.go(V);let Z;const ce=new Set;return{currentRoute:u,addRoute:m,removeRoute:p,hasRoute:g,getRoutes:_,resolve:y,options:e,push:S,replace:E,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:r.add,beforeResolve:i.add,afterEach:a.add,onError:ue.add,isReady:ve,install(V){const re=this;V.component("RouterLink",qk),V.component("RouterView",Kk),V.config.globalProperties.$router=re,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>Vr(u)}),Rr&&!Z&&u.value===Sn&&(Z=!0,S(o.location).catch(He=>{}));const se={};for(const He in Sn)se[He]=Wt(()=>u.value[He]);V.provide(xd,re),V.provide(V_,pr(se)),V.provide(cc,u);const be=V.unmount;ce.add(V),V.unmount=function(){ce.delete(V),ce.size<1&&(c=Sn,D&&D(),u.value=Sn,Z=!1,te=!1),be()}}}}function Er(e){return e.reduce((t,s)=>t.then(()=>s()),Promise.resolve())}function Zk(e,t){const s=[],n=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let i=0;i<r;i++){const a=t.matched[i];a&&(e.matched.find(c=>to(c,a))?n.push(a):s.push(a));const u=e.matched[i];u&&(t.matched.find(c=>to(c,u))||o.push(u))}return[s,n,o]}var ge=(e,t)=>{const s=e.__vccOpts||e;for(const[n,o]of t)s[n]=o;return s};const Jk={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:s})=>{this.options_visible=s})},scroll_to_top:function(){window.scrollTo({top:0,behavior:"smooth"})},scroll_to_content:function(){this.$route.meta.has_tabs?this.$scrollTo("#top",{offset:-140}):this.$scrollTo("#top",{offset:-110})},visibilityChanged:function(e){this.options_visible=e}}},Xk={class:"section fd-content"},Qk={class:"container"},ex={class:"columns is-centered"},tx={class:"column is-four-fifths"},sx={key:0},nx={ref:"options_ref",style:{height:"1px"}},rx={class:"buttons is-centered",style:{"margin-bottom":"6px","margin-top":"16px"}},ox=l("span",{class:"icon is-small"},[l("i",{class:"mdi mdi-chevron-up"})],-1),ix=[ox],ax=l("span",{class:"icon is-small"},[l("i",{class:"mdi mdi-chevron-down"})],-1),lx=[ax],ux={id:"top",class:"level"},cx={class:"level-left"},dx={class:"level-item has-text-centered-mobile"},fx={class:"level-right has-text-centered-mobile"},hx={style:{"margin-top":"16px"}};function mx(e,t,s,n,o,r){return x(),A("section",Xk,[l("div",Qk,[l("div",ex,[l("div",tx,[e.$slots.options?(x(),A("section",sx,[l("div",nx,null,512),xt(e.$slots,"options"),l("nav",rx,[o.options_visible?(x(),A("a",{key:1,class:"button is-small is-white",onClick:t[1]||(t[1]=(...i)=>r.scroll_to_content&&r.scroll_to_content(...i))},lx)):(x(),A("a",{key:0,class:"button is-small is-white",onClick:t[0]||(t[0]=(...i)=>r.scroll_to_top&&r.scroll_to_top(...i))},ix))])])):Y("",!0),l("div",{class:Le({"fd-content-with-option":e.$slots.options})},[l("nav",ux,[l("div",cx,[l("div",dx,[l("div",null,[xt(e.$slots,"heading-left")])])]),l("div",fx,[xt(e.$slots,"heading-right")])]),xt(e.$slots,"content"),l("div",hx,[xt(e.$slots,"footer")])],2)])])])])}var ft=ge(Jk,[["render",mx]]),ts=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Q_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eg(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),t}var Ed={exports:{}},tg=function(t,s){return function(){for(var o=new Array(arguments.length),r=0;r<o.length;r++)o[r]=arguments[r];return t.apply(s,o)}},px=tg,Gn=Object.prototype.toString;function Cd(e){return Array.isArray(e)}function hc(e){return typeof e=="undefined"}function _x(e){return e!==null&&!hc(e)&&e.constructor!==null&&!hc(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function sg(e){return Gn.call(e)==="[object ArrayBuffer]"}function gx(e){return Gn.call(e)==="[object FormData]"}function vx(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sg(e.buffer),t}function yx(e){return typeof e=="string"}function bx(e){return typeof e=="number"}function ng(e){return e!==null&&typeof e=="object"}function Pa(e){if(Gn.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function wx(e){return Gn.call(e)==="[object Date]"}function kx(e){return Gn.call(e)==="[object File]"}function xx(e){return Gn.call(e)==="[object Blob]"}function rg(e){return Gn.call(e)==="[object Function]"}function Sx(e){return ng(e)&&rg(e.pipe)}function Ex(e){return Gn.call(e)==="[object URLSearchParams]"}function Cx(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function $x(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function $d(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),Cd(e))for(var s=0,n=e.length;s<n;s++)t.call(null,e[s],s,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function mc(){var e={};function t(o,r){Pa(e[r])&&Pa(o)?e[r]=mc(e[r],o):Pa(o)?e[r]=mc({},o):Cd(o)?e[r]=o.slice():e[r]=o}for(var s=0,n=arguments.length;s<n;s++)$d(arguments[s],t);return e}function Ox(e,t,s){return $d(t,function(o,r){s&&typeof o=="function"?e[r]=px(o,s):e[r]=o}),e}function Tx(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var ms={isArray:Cd,isArrayBuffer:sg,isBuffer:_x,isFormData:gx,isArrayBufferView:vx,isString:yx,isNumber:bx,isObject:ng,isPlainObject:Pa,isUndefined:hc,isDate:wx,isFile:kx,isBlob:xx,isFunction:rg,isStream:Sx,isURLSearchParams:Ex,isStandardBrowserEnv:$x,forEach:$d,merge:mc,extend:Ox,trim:Cx,stripBOM:Tx},Cr=ms;function Sh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var og=function(t,s,n){if(!s)return t;var o;if(n)o=n(s);else if(Cr.isURLSearchParams(s))o=s.toString();else{var r=[];Cr.forEach(s,function(u,c){u===null||typeof u=="undefined"||(Cr.isArray(u)?c=c+"[]":u=[u],Cr.forEach(u,function(h){Cr.isDate(h)?h=h.toISOString():Cr.isObject(h)&&(h=JSON.stringify(h)),r.push(Sh(c)+"="+Sh(h))}))}),o=r.join("&")}if(o){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},Ax=ms;function Dl(){this.handlers=[]}Dl.prototype.use=function(t,s,n){return this.handlers.push({fulfilled:t,rejected:s,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Dl.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Dl.prototype.forEach=function(t){Ax.forEach(this.handlers,function(n){n!==null&&t(n)})};var Px=Dl,Dx=ms,Fx=function(t,s){Dx.forEach(t,function(o,r){r!==s&&r.toUpperCase()===s.toUpperCase()&&(t[s]=o,delete t[r])})},ig=function(t,s,n,o,r){return t.config=s,n&&(t.code=n),t.request=o,t.response=r,t.isAxiosError=!0,t.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},ag={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ix=ig,lg=function(t,s,n,o,r){var i=new Error(t);return Ix(i,s,n,o,r)},Rx=lg,Nx=function(t,s,n){var o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):s(Rx("Request failed with status code "+n.status,n.config,null,n.request,n))},Bi=ms,Mx=Bi.isStandardBrowserEnv()?function(){return{write:function(s,n,o,r,i,a){var u=[];u.push(s+"="+encodeURIComponent(n)),Bi.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),Bi.isString(r)&&u.push("path="+r),Bi.isString(i)&&u.push("domain="+i),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(s){var n=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Lx=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},jx=function(t,s){return s?t.replace(/\/+$/,"")+"/"+s.replace(/^\/+/,""):t},Bx=Lx,Ux=jx,Vx=function(t,s){return t&&!Bx(s)?Ux(t,s):s},pu=ms,Hx=["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"],qx=function(t){var s={},n,o,r;return t&&pu.forEach(t.split(`
|
|
`),function(a){if(r=a.indexOf(":"),n=pu.trim(a.substr(0,r)).toLowerCase(),o=pu.trim(a.substr(r+1)),n){if(s[n]&&Hx.indexOf(n)>=0)return;n==="set-cookie"?s[n]=(s[n]?s[n]:[]).concat([o]):s[n]=s[n]?s[n]+", "+o:o}}),s},Eh=ms,zx=Eh.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a"),n;function o(r){var i=r;return t&&(s.setAttribute("href",i),i=s.href),s.setAttribute("href",i),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return n=o(window.location.href),function(i){var a=Eh.isString(i)?o(i):i;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function Od(e){this.message=e}Od.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Od.prototype.__CANCEL__=!0;var Fl=Od,Ui=ms,Gx=Nx,Wx=Mx,Kx=og,Yx=Vx,Zx=qx,Jx=zx,_u=lg,Xx=ag,Qx=Fl,Ch=function(t){return new Promise(function(n,o){var r=t.data,i=t.headers,a=t.responseType,u;function c(){t.cancelToken&&t.cancelToken.unsubscribe(u),t.signal&&t.signal.removeEventListener("abort",u)}Ui.isFormData(r)&&delete i["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(h+":"+f)}var m=Yx(t.baseURL,t.url);d.open(t.method.toUpperCase(),Kx(m,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function p(){if(!!d){var g="getAllResponseHeaders"in d?Zx(d.getAllResponseHeaders()):null,y=!a||a==="text"||a==="json"?d.responseText:d.response,b={data:y,status:d.status,statusText:d.statusText,headers:g,config:t,request:d};Gx(function(S){n(S),c()},function(S){o(S),c()},b),d=null}}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){!d||(o(_u("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){o(_u("Network Error",t,null,d)),d=null},d.ontimeout=function(){var y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",b=t.transitional||Xx;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),o(_u(y,t,b.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",d)),d=null},Ui.isStandardBrowserEnv()){var _=(t.withCredentials||Jx(m))&&t.xsrfCookieName?Wx.read(t.xsrfCookieName):void 0;_&&(i[t.xsrfHeaderName]=_)}"setRequestHeader"in d&&Ui.forEach(i,function(y,b){typeof r=="undefined"&&b.toLowerCase()==="content-type"?delete i[b]:d.setRequestHeader(b,y)}),Ui.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),a&&a!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(u=function(g){!d||(o(!g||g&&g.type?new Qx("canceled"):g),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(u),t.signal&&(t.signal.aborted?u():t.signal.addEventListener("abort",u))),r||(r=null),d.send(r)})},Zt=ms,$h=Fx,eS=ig,tS=ag,sS={"Content-Type":"application/x-www-form-urlencoded"};function Oh(e,t){!Zt.isUndefined(e)&&Zt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function nS(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ch),e}function rS(e,t,s){if(Zt.isString(e))try{return(t||JSON.parse)(e),Zt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(s||JSON.stringify)(e)}var Il={transitional:tS,adapter:nS(),transformRequest:[function(t,s){return $h(s,"Accept"),$h(s,"Content-Type"),Zt.isFormData(t)||Zt.isArrayBuffer(t)||Zt.isBuffer(t)||Zt.isStream(t)||Zt.isFile(t)||Zt.isBlob(t)?t:Zt.isArrayBufferView(t)?t.buffer:Zt.isURLSearchParams(t)?(Oh(s,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Zt.isObject(t)||s&&s["Content-Type"]==="application/json"?(Oh(s,"application/json"),rS(t)):t}],transformResponse:[function(t){var s=this.transitional||Il.transitional,n=s&&s.silentJSONParsing,o=s&&s.forcedJSONParsing,r=!n&&this.responseType==="json";if(r||o&&Zt.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(r)throw i.name==="SyntaxError"?eS(i,this,"E_JSON_PARSE"):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Zt.forEach(["delete","get","head"],function(t){Il.headers[t]={}});Zt.forEach(["post","put","patch"],function(t){Il.headers[t]=Zt.merge(sS)});var Td=Il,oS=ms,iS=Td,aS=function(t,s,n){var o=this||iS;return oS.forEach(n,function(i){t=i.call(o,t,s)}),t},ug=function(t){return!!(t&&t.__CANCEL__)},Th=ms,gu=aS,lS=ug,uS=Td,cS=Fl;function vu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cS("canceled")}var dS=function(t){vu(t),t.headers=t.headers||{},t.data=gu.call(t,t.data,t.headers,t.transformRequest),t.headers=Th.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Th.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var s=t.adapter||uS.adapter;return s(t).then(function(o){return vu(t),o.data=gu.call(t,o.data,o.headers,t.transformResponse),o},function(o){return lS(o)||(vu(t),o&&o.response&&(o.response.data=gu.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},ps=ms,cg=function(t,s){s=s||{};var n={};function o(d,h){return ps.isPlainObject(d)&&ps.isPlainObject(h)?ps.merge(d,h):ps.isPlainObject(h)?ps.merge({},h):ps.isArray(h)?h.slice():h}function r(d){if(ps.isUndefined(s[d])){if(!ps.isUndefined(t[d]))return o(void 0,t[d])}else return o(t[d],s[d])}function i(d){if(!ps.isUndefined(s[d]))return o(void 0,s[d])}function a(d){if(ps.isUndefined(s[d])){if(!ps.isUndefined(t[d]))return o(void 0,t[d])}else return o(void 0,s[d])}function u(d){if(d in s)return o(t[d],s[d]);if(d in t)return o(void 0,t[d])}var c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return ps.forEach(Object.keys(t).concat(Object.keys(s)),function(h){var f=c[h]||r,m=f(h);ps.isUndefined(m)&&f!==u||(n[h]=m)}),n},dg={version:"0.26.1"},fS=dg.version,Ad={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Ad[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Ah={};Ad.transitional=function(t,s,n){function o(r,i){return"[Axios v"+fS+"] Transitional option '"+r+"'"+i+(n?". "+n:"")}return function(r,i,a){if(t===!1)throw new Error(o(i," has been removed"+(s?" in "+s:"")));return s&&!Ah[i]&&(Ah[i]=!0,console.warn(o(i," has been deprecated since v"+s+" and will be removed in the near future"))),t?t(r,i,a):!0}};function hS(e,t,s){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var r=n[o],i=t[r];if(i){var a=e[r],u=a===void 0||i(a,r,e);if(u!==!0)throw new TypeError("option "+r+" must be "+u);continue}if(s!==!0)throw Error("Unknown option "+r)}}var mS={assertOptions:hS,validators:Ad},fg=ms,pS=og,Ph=Px,Dh=dS,Rl=cg,hg=mS,$r=hg.validators;function yi(e){this.defaults=e,this.interceptors={request:new Ph,response:new Ph}}yi.prototype.request=function(t,s){typeof t=="string"?(s=s||{},s.url=t):s=t||{},s=Rl(this.defaults,s),s.method?s.method=s.method.toLowerCase():this.defaults.method?s.method=this.defaults.method.toLowerCase():s.method="get";var n=s.transitional;n!==void 0&&hg.assertOptions(n,{silentJSONParsing:$r.transitional($r.boolean),forcedJSONParsing:$r.transitional($r.boolean),clarifyTimeoutError:$r.transitional($r.boolean)},!1);var o=[],r=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(s)===!1||(r=r&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});var i=[];this.interceptors.response.forEach(function(m){i.push(m.fulfilled,m.rejected)});var a;if(!r){var u=[Dh,void 0];for(Array.prototype.unshift.apply(u,o),u=u.concat(i),a=Promise.resolve(s);u.length;)a=a.then(u.shift(),u.shift());return a}for(var c=s;o.length;){var d=o.shift(),h=o.shift();try{c=d(c)}catch(f){h(f);break}}try{a=Dh(c)}catch(f){return Promise.reject(f)}for(;i.length;)a=a.then(i.shift(),i.shift());return a};yi.prototype.getUri=function(t){return t=Rl(this.defaults,t),pS(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};fg.forEach(["delete","get","head","options"],function(t){yi.prototype[t]=function(s,n){return this.request(Rl(n||{},{method:t,url:s,data:(n||{}).data}))}});fg.forEach(["post","put","patch"],function(t){yi.prototype[t]=function(s,n,o){return this.request(Rl(o||{},{method:t,url:s,data:n}))}});var _S=yi,gS=Fl;function no(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(o){t=o});var s=this;this.promise.then(function(n){if(!!s._listeners){var o,r=s._listeners.length;for(o=0;o<r;o++)s._listeners[o](n);s._listeners=null}}),this.promise.then=function(n){var o,r=new Promise(function(i){s.subscribe(i),o=i}).then(n);return r.cancel=function(){s.unsubscribe(o)},r},e(function(o){s.reason||(s.reason=new gS(o),t(s.reason))})}no.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};no.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};no.prototype.unsubscribe=function(t){if(!!this._listeners){var s=this._listeners.indexOf(t);s!==-1&&this._listeners.splice(s,1)}};no.source=function(){var t,s=new no(function(o){t=o});return{token:s,cancel:t}};var vS=no,yS=function(t){return function(n){return t.apply(null,n)}},bS=ms,wS=function(t){return bS.isObject(t)&&t.isAxiosError===!0},Fh=ms,kS=tg,Da=_S,xS=cg,SS=Td;function mg(e){var t=new Da(e),s=kS(Da.prototype.request,t);return Fh.extend(s,Da.prototype,t),Fh.extend(s,t),s.create=function(o){return mg(xS(e,o))},s}var sn=mg(SS);sn.Axios=Da;sn.Cancel=Fl;sn.CancelToken=vS;sn.isCancel=ug;sn.VERSION=dg.version;sn.all=function(t){return Promise.all(t)};sn.spread=yS;sn.isAxiosError=wS;Ed.exports=sn;Ed.exports.default=sn;var Te=Ed.exports;Te.interceptors.response.use(function(e){return e},function(e){return e.request.status&&e.request.responseURL&&it.dispatch("add_notification",{text:"Request failed (status: "+e.request.status+" "+e.request.statusText+", url: "+e.request.responseURL+")",type:"danger"}),Promise.reject(e)});var G={config(){return Te.get("./api/config")},settings(){return Te.get("./api/settings")},settings_update(e,t){return Te.put("./api/settings/"+e+"/"+t.name,t)},library_stats(){return Te.get("./api/library")},library_update(e){const t={};return e&&(t.scan_kind=e),Te.put("./api/update",void 0,{params:t})},library_rescan(e){const t={};return e&&(t.scan_kind=e),Te.put("./api/rescan",void 0,{params:t})},library_count(e){return Te.get("./api/library/count?expression="+e)},queue(){return Te.get("./api/queue")},queue_clear(){return Te.put("./api/queue/clear")},queue_remove(e){return Te.delete("./api/queue/items/"+e)},queue_move(e,t){return Te.put("./api/queue/items/"+e+"?new_position="+t)},queue_add(e){return Te.post("./api/queue/items/add?uris="+e).then(t=>(it.dispatch("add_notification",{text:t.data.count+" tracks appended to queue",type:"info",timeout:2e3}),Promise.resolve(t)))},queue_add_next(e){let t=0;return it.getters.now_playing&&it.getters.now_playing.id&&(t=it.getters.now_playing.position+1),Te.post("./api/queue/items/add?uris="+e+"&position="+t).then(s=>(it.dispatch("add_notification",{text:s.data.count+" tracks appended to queue",type:"info",timeout:2e3}),Promise.resolve(s)))},queue_expression_add(e){const t={};return t.expression=e,Te.post("./api/queue/items/add",void 0,{params:t}).then(s=>(it.dispatch("add_notification",{text:s.data.count+" tracks appended to queue",type:"info",timeout:2e3}),Promise.resolve(s)))},queue_expression_add_next(e){const t={};return t.expression=e,t.position=0,it.getters.now_playing&&it.getters.now_playing.id&&(t.position=it.getters.now_playing.position+1),Te.post("./api/queue/items/add",void 0,{params:t}).then(s=>(it.dispatch("add_notification",{text:s.data.count+" tracks appended to queue",type:"info",timeout:2e3}),Promise.resolve(s)))},queue_save_playlist(e){return Te.post("./api/queue/save",void 0,{params:{name:e}}).then(t=>(it.dispatch("add_notification",{text:'Queue saved to playlist "'+e+'"',type:"info",timeout:2e3}),Promise.resolve(t)))},player_status(){return Te.get("./api/player")},player_play_uri(e,t,s=void 0){const n={};return n.uris=e,n.shuffle=t?"true":"false",n.clear="true",n.playback="start",n.playback_from_position=s,Te.post("./api/queue/items/add",void 0,{params:n})},player_play_expression(e,t,s=void 0){const n={};return n.expression=e,n.shuffle=t?"true":"false",n.clear="true",n.playback="start",n.playback_from_position=s,Te.post("./api/queue/items/add",void 0,{params:n})},player_play(e={}){return Te.put("./api/player/play",void 0,{params:e})},player_playpos(e){return Te.put("./api/player/play?position="+e)},player_playid(e){return Te.put("./api/player/play?item_id="+e)},player_pause(){return Te.put("./api/player/pause")},player_stop(){return Te.put("./api/player/stop")},player_next(){return Te.put("./api/player/next")},player_previous(){return Te.put("./api/player/previous")},player_shuffle(e){const t=e?"true":"false";return Te.put("./api/player/shuffle?state="+t)},player_consume(e){const t=e?"true":"false";return Te.put("./api/player/consume?state="+t)},player_repeat(e){return Te.put("./api/player/repeat?state="+e)},player_volume(e){return Te.put("./api/player/volume?volume="+e)},player_output_volume(e,t){return Te.put("./api/player/volume?volume="+t+"&output_id="+e)},player_seek_to_pos(e){return Te.put("./api/player/seek?position_ms="+e)},player_seek(e){return Te.put("./api/player/seek?seek_ms="+e)},outputs(){return Te.get("./api/outputs")},output_update(e,t){return Te.put("./api/outputs/"+e,t)},output_toggle(e){return Te.put("./api/outputs/"+e+"/toggle")},library_artists(e=void 0){return Te.get("./api/library/artists",{params:{media_kind:e}})},library_artist(e){return Te.get("./api/library/artists/"+e)},library_artist_albums(e){return Te.get("./api/library/artists/"+e+"/albums")},library_albums(e=void 0){return Te.get("./api/library/albums",{params:{media_kind:e}})},library_album(e){return Te.get("./api/library/albums/"+e)},library_album_tracks(e,t={limit:-1,offset:0}){return Te.get("./api/library/albums/"+e+"/tracks",{params:t})},library_album_track_update(e,t){return Te.put("./api/library/albums/"+e+"/tracks",void 0,{params:t})},library_genres(e=void 0){return Te.get("./api/library/genres",{params:{media_kind:e}})},library_genre(e){return Te.get(`./api/library/genres/${encodeURIComponent(e)}`)},library_genre_albums(e){const t={type:"albums",expression:`genre is "${e}" and media_kind is music`};return Te.get("./api/search",{params:t})},library_genre_tracks(e){const t={type:"tracks",expression:`genre is "${e}" and media_kind is music`};return Te.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 Te.get("./api/search",{params:e})},library_composers(e=void 0){return Te.get("./api/library/composers",{params:{media_kind:e}})},library_composer(e){return Te.get(`./api/library/composers/${encodeURIComponent(e)}`)},library_composer_albums(e){const t={type:"albums",expression:`composer is "${e}" and media_kind is music`};return Te.get("./api/search",{params:t})},library_composer_tracks(e){const t={type:"tracks",expression:`composer is "${e}" and media_kind is music`};return Te.get("./api/search",{params:t})},library_artist_tracks(e){if(e){const t={type:"tracks",expression:'songartistid is "'+e+'"'};return Te.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 Te.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 Te.get("./api/search",{params:t})},library_add(e){return Te.post("./api/library/add",void 0,{params:{url:e}})},library_playlist_delete(e){return Te.delete("./api/library/playlists/"+e,void 0)},library_playlists(){return Te.get("./api/library/playlists")},library_playlist_folder(e=0){return Te.get("./api/library/playlists/"+e+"/playlists")},library_playlist(e){return Te.get("./api/library/playlists/"+e)},library_playlist_tracks(e){return Te.get("./api/library/playlists/"+e+"/tracks")},library_track(e){return Te.get("./api/library/tracks/"+e)},library_track_playlists(e){return Te.get("./api/library/tracks/"+e+"/playlists")},library_track_update(e,t={}){return Te.put("./api/library/tracks/"+e,void 0,{params:t})},library_files(e=void 0){const t={directory:e};return Te.get("./api/library/files",{params:t})},search(e){return Te.get("./api/search",{params:e})},spotify(){return Te.get("./api/spotify")},spotify_login(e){return Te.post("./api/spotify-login",e)},spotify_logout(){return Te.get("./api/spotify-logout")},lastfm(){return Te.get("./api/lastfm")},lastfm_login(e){return Te.post("./api/lastfm-login",e)},lastfm_logout(e){return Te.get("./api/lastfm-logout")},pairing(){return Te.get("./api/pairing")},pairing_kickoff(e){return Te.post("./api/pairing",e)},artwork_url_append_size_params(e,t=600,s=600){return e&&e.startsWith("/")?e.includes("?")?e+"&maxwidth="+t+"&maxheight="+s:e+"?maxwidth="+t+"&maxheight="+s:e}};const ES={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:function(){G.player_play({item_id:this.item.id})}}},CS={key:0,class:"media"},$S={key:0,class:"media-left"},OS=l("span",{class:"icon has-text-grey fd-is-movable handle"},[l("i",{class:"mdi mdi-drag-horizontal mdi-18px"})],-1),TS=[OS],AS={class:"media-right"};function PS(e,t,s,n,o,r){return r.is_next||!s.show_only_next_items?(x(),A("div",CS,[s.edit_mode?(x(),A("div",$S,TS)):Y("",!0),l("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...i)=>r.play&&r.play(...i))},[l("h1",{class:Le(["title is-6",{"has-text-primary":s.item.id===r.state.item_id,"has-text-grey-light":!r.is_next}])},R(s.item.title),3),l("h2",{class:Le(["subtitle is-7",{"has-text-primary":s.item.id===r.state.item_id,"has-text-grey-light":!r.is_next,"has-text-grey":r.is_next&&s.item.id!==r.state.item_id}])},[l("b",null,R(s.item.artist),1)],2),l("h2",{class:Le(["subtitle is-7",{"has-text-primary":s.item.id===r.state.item_id,"has-text-grey-light":!r.is_next,"has-text-grey":r.is_next&&s.item.id!==r.state.item_id}])},R(s.item.album),3)]),l("div",AS,[xt(e.$slots,"actions")])])):Y("",!0)}var DS=ge(ES,[["render",PS]]),pg={exports:{}};(function(e){var t=function(){var s="https://api.spotify.com/v1",n=null,o=null,r=function(f,m){return f.abort=m,f},i=function(f,m){var p;if(o!==null){var _=o.defer();f(function(g){_.resolve(g)},function(g){_.reject(g)}),p=_.promise}else window.Promise&&(p=new window.Promise(f));return p?new r(p,m):null},a=function(){var f=Array.prototype.slice.call(arguments),m=f[0],p=f.slice(1);return m=m||{},p.forEach(function(_){for(var g in _)_.hasOwnProperty(g)&&(m[g]=_[g])}),m},u=function(f,m){var p="";for(var _ in m)if(m.hasOwnProperty(_)){var g=m[_];p+=encodeURIComponent(_)+"="+encodeURIComponent(g)+"&"}return p.length>0&&(p=p.substring(0,p.length-1),f=f+"?"+p),f},c=function(f,m){var p=new XMLHttpRequest,_=function(g,y){function b($){g&&g($),m&&m(null,$)}function k(){y&&y(p),m&&m(p,null)}var S=f.type||"GET";if(p.open(S,u(f.url,f.params)),n&&p.setRequestHeader("Authorization","Bearer "+n),p.onreadystatechange=function(){if(p.readyState===4){var $=null;try{$=p.responseText?JSON.parse(p.responseText):""}catch(I){console.error(I)}p.status>=200&&p.status<300?b($):k()}},S==="GET")p.send(null);else{var E=null;f.postData&&(f.contentType==="image/jpeg"?(E=f.postData,p.setRequestHeader("Content-Type",f.contentType)):(E=JSON.stringify(f.postData),p.setRequestHeader("Content-Type","application/json"))),p.send(E)}};return m?(_(),null):i(_,function(){p.abort()})},d=function(f,m,p,_){var g={},y=null;typeof m=="object"?(g=m,y=p):typeof m=="function"&&(y=m);var b=f.type||"GET";return b!=="GET"&&f.postData&&!_?f.postData=a(f.postData,g):f.params=a(f.params,g),c(f,y)},h=function(){};return h.prototype={constructor:t},h.prototype.getGeneric=function(f,m){var p={url:f};return d(p,m)},h.prototype.getMe=function(f,m){var p={url:s+"/me"};return d(p,f,m)},h.prototype.getMySavedTracks=function(f,m){var p={url:s+"/me/tracks"};return d(p,f,m)},h.prototype.addToMySavedTracks=function(f,m,p){var _={url:s+"/me/tracks",type:"PUT",postData:f};return d(_,m,p)},h.prototype.removeFromMySavedTracks=function(f,m,p){var _={url:s+"/me/tracks",type:"DELETE",postData:f};return d(_,m,p)},h.prototype.containsMySavedTracks=function(f,m,p){var _={url:s+"/me/tracks/contains",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getMySavedAlbums=function(f,m){var p={url:s+"/me/albums"};return d(p,f,m)},h.prototype.addToMySavedAlbums=function(f,m,p){var _={url:s+"/me/albums",type:"PUT",postData:f};return d(_,m,p)},h.prototype.removeFromMySavedAlbums=function(f,m,p){var _={url:s+"/me/albums",type:"DELETE",postData:f};return d(_,m,p)},h.prototype.containsMySavedAlbums=function(f,m,p){var _={url:s+"/me/albums/contains",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getMyTopArtists=function(f,m){var p={url:s+"/me/top/artists"};return d(p,f,m)},h.prototype.getMyTopTracks=function(f,m){var p={url:s+"/me/top/tracks"};return d(p,f,m)},h.prototype.getMyRecentlyPlayedTracks=function(f,m){var p={url:s+"/me/player/recently-played"};return d(p,f,m)},h.prototype.followUsers=function(f,m){var p={url:s+"/me/following/",type:"PUT",params:{ids:f.join(","),type:"user"}};return d(p,m)},h.prototype.followArtists=function(f,m){var p={url:s+"/me/following/",type:"PUT",params:{ids:f.join(","),type:"artist"}};return d(p,m)},h.prototype.followPlaylist=function(f,m,p){var _={url:s+"/playlists/"+f+"/followers",type:"PUT",postData:{}};return d(_,m,p)},h.prototype.unfollowUsers=function(f,m){var p={url:s+"/me/following/",type:"DELETE",params:{ids:f.join(","),type:"user"}};return d(p,m)},h.prototype.unfollowArtists=function(f,m){var p={url:s+"/me/following/",type:"DELETE",params:{ids:f.join(","),type:"artist"}};return d(p,m)},h.prototype.unfollowPlaylist=function(f,m){var p={url:s+"/playlists/"+f+"/followers",type:"DELETE"};return d(p,m)},h.prototype.isFollowingUsers=function(f,m){var p={url:s+"/me/following/contains",type:"GET",params:{ids:f.join(","),type:"user"}};return d(p,m)},h.prototype.isFollowingArtists=function(f,m){var p={url:s+"/me/following/contains",type:"GET",params:{ids:f.join(","),type:"artist"}};return d(p,m)},h.prototype.areFollowingPlaylist=function(f,m,p){var _={url:s+"/playlists/"+f+"/followers/contains",type:"GET",params:{ids:m.join(",")}};return d(_,p)},h.prototype.getFollowedArtists=function(f,m){var p={url:s+"/me/following",type:"GET",params:{type:"artist"}};return d(p,f,m)},h.prototype.getUser=function(f,m,p){var _={url:s+"/users/"+encodeURIComponent(f)};return d(_,m,p)},h.prototype.getUserPlaylists=function(f,m,p){var _;return typeof f=="string"?_={url:s+"/users/"+encodeURIComponent(f)+"/playlists"}:(_={url:s+"/me/playlists"},p=m,m=f),d(_,m,p)},h.prototype.getPlaylist=function(f,m,p){var _={url:s+"/playlists/"+f};return d(_,m,p)},h.prototype.getPlaylistTracks=function(f,m,p){var _={url:s+"/playlists/"+f+"/tracks"};return d(_,m,p)},h.prototype.getPlaylistCoverImage=function(f,m){var p={url:s+"/playlists/"+f+"/images"};return d(p,m)},h.prototype.createPlaylist=function(f,m,p){var _={url:s+"/users/"+encodeURIComponent(f)+"/playlists",type:"POST",postData:m};return d(_,m,p)},h.prototype.changePlaylistDetails=function(f,m,p){var _={url:s+"/playlists/"+f,type:"PUT",postData:m};return d(_,m,p)},h.prototype.addTracksToPlaylist=function(f,m,p,_){var g={url:s+"/playlists/"+f+"/tracks",type:"POST",postData:{uris:m}};return d(g,p,_,!0)},h.prototype.replaceTracksInPlaylist=function(f,m,p){var _={url:s+"/playlists/"+f+"/tracks",type:"PUT",postData:{uris:m}};return d(_,{},p)},h.prototype.reorderTracksInPlaylist=function(f,m,p,_,g){var y={url:s+"/playlists/"+f+"/tracks",type:"PUT",postData:{range_start:m,insert_before:p}};return d(y,_,g)},h.prototype.removeTracksFromPlaylist=function(f,m,p){var _=m.map(function(y){return typeof y=="string"?{uri:y}:y}),g={url:s+"/playlists/"+f+"/tracks",type:"DELETE",postData:{tracks:_}};return d(g,{},p)},h.prototype.removeTracksFromPlaylistWithSnapshotId=function(f,m,p,_){var g=m.map(function(b){return typeof b=="string"?{uri:b}:b}),y={url:s+"/playlists/"+f+"/tracks",type:"DELETE",postData:{tracks:g,snapshot_id:p}};return d(y,{},_)},h.prototype.removeTracksFromPlaylistInPositions=function(f,m,p,_){var g={url:s+"/playlists/"+f+"/tracks",type:"DELETE",postData:{positions:m,snapshot_id:p}};return d(g,{},_)},h.prototype.uploadCustomPlaylistCoverImage=function(f,m,p){var _={url:s+"/playlists/"+f+"/images",type:"PUT",postData:m.replace(/^data:image\/jpeg;base64,/,""),contentType:"image/jpeg"};return d(_,{},p)},h.prototype.getAlbum=function(f,m,p){var _={url:s+"/albums/"+f};return d(_,m,p)},h.prototype.getAlbumTracks=function(f,m,p){var _={url:s+"/albums/"+f+"/tracks"};return d(_,m,p)},h.prototype.getAlbums=function(f,m,p){var _={url:s+"/albums/",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getTrack=function(f,m,p){var _={};return _.url=s+"/tracks/"+f,d(_,m,p)},h.prototype.getTracks=function(f,m,p){var _={url:s+"/tracks/",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getArtist=function(f,m,p){var _={url:s+"/artists/"+f};return d(_,m,p)},h.prototype.getArtists=function(f,m,p){var _={url:s+"/artists/",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getArtistAlbums=function(f,m,p){var _={url:s+"/artists/"+f+"/albums"};return d(_,m,p)},h.prototype.getArtistTopTracks=function(f,m,p,_){var g={url:s+"/artists/"+f+"/top-tracks",params:{country:m}};return d(g,p,_)},h.prototype.getArtistRelatedArtists=function(f,m,p){var _={url:s+"/artists/"+f+"/related-artists"};return d(_,m,p)},h.prototype.getFeaturedPlaylists=function(f,m){var p={url:s+"/browse/featured-playlists"};return d(p,f,m)},h.prototype.getNewReleases=function(f,m){var p={url:s+"/browse/new-releases"};return d(p,f,m)},h.prototype.getCategories=function(f,m){var p={url:s+"/browse/categories"};return d(p,f,m)},h.prototype.getCategory=function(f,m,p){var _={url:s+"/browse/categories/"+f};return d(_,m,p)},h.prototype.getCategoryPlaylists=function(f,m,p){var _={url:s+"/browse/categories/"+f+"/playlists"};return d(_,m,p)},h.prototype.search=function(f,m,p,_){var g={url:s+"/search/",params:{q:f,type:m.join(",")}};return d(g,p,_)},h.prototype.searchAlbums=function(f,m,p){return this.search(f,["album"],m,p)},h.prototype.searchArtists=function(f,m,p){return this.search(f,["artist"],m,p)},h.prototype.searchTracks=function(f,m,p){return this.search(f,["track"],m,p)},h.prototype.searchPlaylists=function(f,m,p){return this.search(f,["playlist"],m,p)},h.prototype.searchShows=function(f,m,p){return this.search(f,["show"],m,p)},h.prototype.searchEpisodes=function(f,m,p){return this.search(f,["episode"],m,p)},h.prototype.getAudioFeaturesForTrack=function(f,m){var p={};return p.url=s+"/audio-features/"+f,d(p,{},m)},h.prototype.getAudioFeaturesForTracks=function(f,m){var p={url:s+"/audio-features",params:{ids:f}};return d(p,{},m)},h.prototype.getAudioAnalysisForTrack=function(f,m){var p={};return p.url=s+"/audio-analysis/"+f,d(p,{},m)},h.prototype.getRecommendations=function(f,m){var p={url:s+"/recommendations"};return d(p,f,m)},h.prototype.getAvailableGenreSeeds=function(f){var m={url:s+"/recommendations/available-genre-seeds"};return d(m,{},f)},h.prototype.getMyDevices=function(f){var m={url:s+"/me/player/devices"};return d(m,{},f)},h.prototype.getMyCurrentPlaybackState=function(f,m){var p={url:s+"/me/player"};return d(p,f,m)},h.prototype.getMyCurrentPlayingTrack=function(f,m){var p={url:s+"/me/player/currently-playing"};return d(p,f,m)},h.prototype.transferMyPlayback=function(f,m,p){var _=m||{};_.device_ids=f;var g={type:"PUT",url:s+"/me/player",postData:_};return d(g,m,p)},h.prototype.play=function(f,m){f=f||{};var p="device_id"in f?{device_id:f.device_id}:null,_={};["context_uri","uris","offset","position_ms"].forEach(function(b){b in f&&(_[b]=f[b])});var g={type:"PUT",url:s+"/me/player/play",params:p,postData:_},y=typeof f=="function"?f:{};return d(g,y,m)},h.prototype.queue=function(f,m,p){m=m||{};var _="device_id"in m?{uri:f,device_id:m.device_id}:{uri:f},g={type:"POST",url:s+"/me/player/queue",params:_};return d(g,m,p)},h.prototype.pause=function(f,m){f=f||{};var p="device_id"in f?{device_id:f.device_id}:null,_={type:"PUT",url:s+"/me/player/pause",params:p};return d(_,f,m)},h.prototype.skipToNext=function(f,m){f=f||{};var p="device_id"in f?{device_id:f.device_id}:null,_={type:"POST",url:s+"/me/player/next",params:p};return d(_,f,m)},h.prototype.skipToPrevious=function(f,m){f=f||{};var p="device_id"in f?{device_id:f.device_id}:null,_={type:"POST",url:s+"/me/player/previous",params:p};return d(_,f,m)},h.prototype.seek=function(f,m,p){m=m||{};var _={position_ms:f};"device_id"in m&&(_.device_id=m.device_id);var g={type:"PUT",url:s+"/me/player/seek",params:_};return d(g,m,p)},h.prototype.setRepeat=function(f,m,p){m=m||{};var _={state:f};"device_id"in m&&(_.device_id=m.device_id);var g={type:"PUT",url:s+"/me/player/repeat",params:_};return d(g,m,p)},h.prototype.setVolume=function(f,m,p){m=m||{};var _={volume_percent:f};"device_id"in m&&(_.device_id=m.device_id);var g={type:"PUT",url:s+"/me/player/volume",params:_};return d(g,m,p)},h.prototype.setShuffle=function(f,m,p){m=m||{};var _={state:f};"device_id"in m&&(_.device_id=m.device_id);var g={type:"PUT",url:s+"/me/player/shuffle",params:_};return d(g,m,p)},h.prototype.getShow=function(f,m,p){var _={};return _.url=s+"/shows/"+f,d(_,m,p)},h.prototype.getShows=function(f,m,p){var _={url:s+"/shows/",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getMySavedShows=function(f,m){var p={url:s+"/me/shows"};return d(p,f,m)},h.prototype.addToMySavedShows=function(f,m,p){var _={url:s+"/me/shows",type:"PUT",postData:f};return d(_,m,p)},h.prototype.removeFromMySavedShows=function(f,m,p){var _={url:s+"/me/shows",type:"DELETE",postData:f};return d(_,m,p)},h.prototype.containsMySavedShows=function(f,m,p){var _={url:s+"/me/shows/contains",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getShowEpisodes=function(f,m,p){var _={url:s+"/shows/"+f+"/episodes"};return d(_,m,p)},h.prototype.getEpisode=function(f,m,p){var _={};return _.url=s+"/episodes/"+f,d(_,m,p)},h.prototype.getEpisodes=function(f,m,p){var _={url:s+"/episodes/",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getAccessToken=function(){return n},h.prototype.setAccessToken=function(f){n=f},h.prototype.setPromiseImplementation=function(f){var m=!1;try{var p=new f(function(_){_()});typeof p.then=="function"&&typeof p.catch=="function"&&(m=!0)}catch(_){console.error(_)}if(m)o=f;else throw new Error("Unsupported implementation of Promises/A+")},h}();e.exports=t})(pg);var Gs=pg.exports;const FS={name:"ModalDialogQueueItem",props:["show","item"],emits:["close"],data(){return{spotify_track:{}}},watch:{item(){if(this.item&&this.item.data_kind==="spotify"){const e=new Gs;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:function(){this.$emit("close"),G.queue_remove(this.item.id)},play:function(){this.$emit("close"),G.player_play({item_id:this.item.id})},open_album:function(){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:function(){this.$router.push({path:"/music/artists/"+this.item.album_artist_id})},open_genre:function(){this.$router.push({name:"Genre",params:{genre:this.item.genre}})},open_spotify_artist:function(){this.$emit("close"),this.$router.push({path:"/music/spotify/artists/"+this.spotify_track.artists[0].id})},open_spotify_album:function(){this.$emit("close"),this.$router.push({path:"/music/spotify/albums/"+this.spotify_track.album.id})}}},IS={key:0,class:"modal is-active"},RS={class:"modal-content fd-modal-card"},NS={class:"card"},MS={class:"card-content"},LS={class:"title is-4"},jS={class:"subtitle"},BS={class:"content is-small"},US=l("span",{class:"heading"},"Album",-1),VS={key:1,class:"title is-6"},HS={key:0},qS=l("span",{class:"heading"},"Album artist",-1),zS={key:1,class:"title is-6"},GS={key:1},WS=l("span",{class:"heading"},"Composer",-1),KS={class:"title is-6"},YS={key:2},ZS=l("span",{class:"heading"},"Year",-1),JS={class:"title is-6"},XS={key:3},QS=l("span",{class:"heading"},"Genre",-1),eE=l("span",{class:"heading"},"Track / Disc",-1),tE={class:"title is-6"},sE=l("span",{class:"heading"},"Length",-1),nE={class:"title is-6"},rE=l("span",{class:"heading"},"Path",-1),oE={class:"title is-6"},iE=l("span",{class:"heading"},"Type",-1),aE={class:"title is-6"},lE={key:0,class:"has-text-weight-normal"},uE=$e("("),cE=$e(", "),dE=$e(")"),fE=l("span",{class:"heading"},"Quality",-1),hE={class:"title is-6"},mE={key:0},pE={key:1},_E={key:2},gE={class:"card-footer"},vE=l("span",{class:"icon"},[l("i",{class:"mdi mdi-delete"})],-1),yE=l("span",{class:"is-size-7"},"Remove",-1),bE=[vE,yE],wE=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),kE=l("span",{class:"is-size-7"},"Play",-1),xE=[wE,kE];function SE(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",IS,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",RS,[l("div",NS,[l("div",MS,[l("p",LS,R(s.item.title),1),l("p",jS,R(s.item.artist),1),l("div",BS,[l("p",null,[US,s.item.album_id?(x(),A("a",{key:0,class:"title is-6 has-text-link",onClick:t[1]||(t[1]=(...i)=>r.open_album&&r.open_album(...i))},R(s.item.album),1)):(x(),A("span",VS,R(s.item.album),1))]),s.item.album_artist?(x(),A("p",HS,[qS,s.item.album_artist_id?(x(),A("a",{key:0,class:"title is-6 has-text-link",onClick:t[2]||(t[2]=(...i)=>r.open_album_artist&&r.open_album_artist(...i))},R(s.item.album_artist),1)):(x(),A("span",zS,R(s.item.album_artist),1))])):Y("",!0),s.item.composer?(x(),A("p",GS,[WS,l("span",KS,R(s.item.composer),1)])):Y("",!0),s.item.year>0?(x(),A("p",YS,[ZS,l("span",JS,R(s.item.year),1)])):Y("",!0),s.item.genre?(x(),A("p",XS,[QS,l("a",{class:"title is-6 has-text-link",onClick:t[3]||(t[3]=(...i)=>r.open_genre&&r.open_genre(...i))},R(s.item.genre),1)])):Y("",!0),l("p",null,[eE,l("span",tE,R(s.item.track_number)+" / "+R(s.item.disc_number),1)]),l("p",null,[sE,l("span",nE,R(e.$filters.durationInHours(s.item.length_ms)),1)]),l("p",null,[rE,l("span",oE,R(s.item.path),1)]),l("p",null,[iE,l("span",aE,[$e(R(s.item.media_kind)+" - "+R(s.item.data_kind)+" ",1),s.item.data_kind==="spotify"?(x(),A("span",lE,[uE,l("a",{onClick:t[4]||(t[4]=(...i)=>r.open_spotify_artist&&r.open_spotify_artist(...i))},"artist"),cE,l("a",{onClick:t[5]||(t[5]=(...i)=>r.open_spotify_album&&r.open_spotify_album(...i))},"album"),dE])):Y("",!0)])]),l("p",null,[fE,l("span",hE,[$e(R(s.item.type)+" ",1),s.item.samplerate?(x(),A("span",mE," | "+R(s.item.samplerate)+" Hz",1)):Y("",!0),s.item.channels?(x(),A("span",pE," | "+R(e.$filters.channels(s.item.channels)),1)):Y("",!0),s.item.bitrate?(x(),A("span",_E," | "+R(s.item.bitrate)+" Kb/s",1)):Y("",!0)])])])]),l("footer",gE,[l("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...i)=>r.remove&&r.remove(...i))},bE),l("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...i)=>r.play&&r.play(...i))},xE)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var _g=ge(FS,[["render",SE]]);const EE={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:function(){this.loading=!0,G.queue_add(this.url).then(()=>{this.$emit("close"),this.url=""}).catch(()=>{this.loading=!1})},play:function(){this.loading=!0,G.player_play_uri(this.url,!1).then(()=>{this.$emit("close"),this.url=""}).catch(()=>{this.loading=!1})}}},CE={key:0,class:"modal is-active"},$E={class:"modal-content fd-modal-card"},OE={class:"card"},TE={class:"card-content"},AE=l("p",{class:"title is-4"},"Add stream URL",-1),PE={class:"field"},DE={class:"control is-expanded has-icons-left"},FE=["disabled"],IE=l("span",{class:"icon is-left"},[l("i",{class:"mdi mdi-web"})],-1),RE={key:0,class:"card-footer"},NE=l("a",{class:"card-footer-item has-text-dark"},[l("span",{class:"icon"},[l("i",{class:"mdi mdi-web"})]),l("span",{class:"is-size-7"},"Loading ...")],-1),ME=[NE],LE={key:1,class:"card-footer"},jE=l("span",{class:"icon"},[l("i",{class:"mdi mdi-cancel"})],-1),BE=l("span",{class:"is-size-7"},"Cancel",-1),UE=[jE,BE],VE=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-plus"})],-1),HE=l("span",{class:"is-size-7"},"Add",-1),qE=[VE,HE],zE=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),GE=l("span",{class:"is-size-7"},"Play",-1),WE=[zE,GE];function KE(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",CE,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",$E,[l("div",OE,[l("div",TE,[AE,l("form",{class:"fd-has-margin-bottom",onSubmit:t[2]||(t[2]=pt((...i)=>r.play&&r.play(...i),["prevent"]))},[l("div",PE,[l("p",DE,[wt(l("input",{ref:"url_field","onUpdate:modelValue":t[1]||(t[1]=i=>o.url=i),class:"input is-shadowless",type:"text",placeholder:"http://url-to-stream",disabled:o.loading},null,8,FE),[[es,o.url]]),IE])])],32)]),o.loading?(x(),A("footer",RE,ME)):(x(),A("footer",LE,[l("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=i=>e.$emit("close"))},UE),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...i)=>r.add_stream&&r.add_stream(...i))},qE),l("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[5]||(t[5]=(...i)=>r.play&&r.play(...i))},WE)]))])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[6]||(t[6]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var YE=ge(EE,[["render",KE]]);const ZE={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:function(){this.playlist_name.length<1||(this.loading=!0,G.queue_save_playlist(this.playlist_name).then(()=>{this.$emit("close"),this.playlist_name=""}).catch(()=>{this.loading=!1}))}}},JE={key:0,class:"modal is-active"},XE={class:"modal-content fd-modal-card"},QE={class:"card"},eC={class:"card-content"},tC=l("p",{class:"title is-4"},"Save queue to playlist",-1),sC={class:"field"},nC={class:"control is-expanded has-icons-left"},rC=["disabled"],oC=l("span",{class:"icon is-left"},[l("i",{class:"mdi mdi-file-music"})],-1),iC={key:0,class:"card-footer"},aC=l("a",{class:"card-footer-item has-text-dark"},[l("span",{class:"icon"},[l("i",{class:"mdi mdi-web"})]),l("span",{class:"is-size-7"},"Saving ...")],-1),lC=[aC],uC={key:1,class:"card-footer"},cC=l("span",{class:"icon"},[l("i",{class:"mdi mdi-cancel"})],-1),dC=l("span",{class:"is-size-7"},"Cancel",-1),fC=[cC,dC],hC=l("span",{class:"icon"},[l("i",{class:"mdi mdi-content-save"})],-1),mC=l("span",{class:"is-size-7"},"Save",-1),pC=[hC,mC];function _C(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",JE,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",XE,[l("div",QE,[l("div",eC,[tC,l("form",{class:"fd-has-margin-bottom",onSubmit:t[2]||(t[2]=pt((...i)=>r.save&&r.save(...i),["prevent"]))},[l("div",sC,[l("p",nC,[wt(l("input",{ref:"playlist_name_field","onUpdate:modelValue":t[1]||(t[1]=i=>o.playlist_name=i),class:"input is-shadowless",type:"text",placeholder:"Playlist name",disabled:o.loading},null,8,rC),[[es,o.playlist_name]]),oC])])],32)]),o.loading?(x(),A("footer",iC,lC)):(x(),A("footer",uC,[l("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=i=>e.$emit("close"))},fC),l("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...i)=>r.save&&r.save(...i))},pC)]))])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var gC=ge(ZE,[["render",_C]]),gg={exports:{}},Pd=eg(yw);/**!
|
|
* Sortable 1.14.0
|
|
* @author RubaXa <trash@rubaxa.org>
|
|
* @author owenm <owen23355@gmail.com>
|
|
* @license MIT
|
|
*/function Ih(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),s.push.apply(s,n)}return s}function tn(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?Ih(Object(s),!0).forEach(function(n){vC(e,n,s[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Ih(Object(s)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(s,n))})}return e}function Fa(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fa=function(t){return typeof t}:Fa=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fa(e)}function vC(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Ds(){return Ds=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},Ds.apply(this,arguments)}function yC(e,t){if(e==null)return{};var s={},n=Object.keys(e),o,r;for(r=0;r<n.length;r++)o=n[r],!(t.indexOf(o)>=0)&&(s[o]=e[o]);return s}function bC(e,t){if(e==null)return{};var s=yC(e,t),n,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(s[n]=e[n]))}return s}function wC(e){return kC(e)||xC(e)||SC(e)||EC()}function kC(e){if(Array.isArray(e))return pc(e)}function xC(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SC(e,t){if(!!e){if(typeof e=="string")return pc(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);if(s==="Object"&&e.constructor&&(s=e.constructor.name),s==="Map"||s==="Set")return Array.from(e);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return pc(e,t)}}function pc(e,t){(t==null||t>e.length)&&(t=e.length);for(var s=0,n=new Array(t);s<t;s++)n[s]=e[s];return n}function EC(){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 CC="1.14.0";function fn(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var vn=fn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),bi=fn(/Edge/i),Rh=fn(/firefox/i),Ko=fn(/safari/i)&&!fn(/chrome/i)&&!fn(/android/i),vg=fn(/iP(ad|od|hone)/i),$C=fn(/chrome/i)&&fn(/android/i),yg={capture:!1,passive:!1};function at(e,t,s){e.addEventListener(t,s,!vn&&yg)}function rt(e,t,s){e.removeEventListener(t,s,!vn&&yg)}function Za(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 OC(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Bs(e,t,s,n){if(e){s=s||document;do{if(t!=null&&(t[0]===">"?e.parentNode===s&&Za(e,t):Za(e,t))||n&&e===s)return e;if(e===s)break}while(e=OC(e))}return null}var Nh=/\s+/g;function Ct(e,t,s){if(e&&t)if(e.classList)e.classList[s?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(Nh," ").replace(" "+t+" "," ");e.className=(n+(s?" "+t:"")).replace(Nh," ")}}function Ue(e,t,s){var n=e&&e.style;if(n){if(s===void 0)return document.defaultView&&document.defaultView.getComputedStyle?s=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(s=e.currentStyle),t===void 0?s:s[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=s+(typeof s=="string"?"":"px")}}function ur(e,t){var s="";if(typeof e=="string")s=e;else do{var n=Ue(e,"transform");n&&n!=="none"&&(s=n+" "+s)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(s)}function bg(e,t,s){if(e){var n=e.getElementsByTagName(t),o=0,r=n.length;if(s)for(;o<r;o++)s(n[o],o);return n}return[]}function en(){var e=document.scrollingElement;return e||document.documentElement}function Et(e,t,s,n,o){if(!(!e.getBoundingClientRect&&e!==window)){var r,i,a,u,c,d,h;if(e!==window&&e.parentNode&&e!==en()?(r=e.getBoundingClientRect(),i=r.top,a=r.left,u=r.bottom,c=r.right,d=r.height,h=r.width):(i=0,a=0,u=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(t||s)&&e!==window&&(o=o||e.parentNode,!vn))do if(o&&o.getBoundingClientRect&&(Ue(o,"transform")!=="none"||s&&Ue(o,"position")!=="static")){var f=o.getBoundingClientRect();i-=f.top+parseInt(Ue(o,"border-top-width")),a-=f.left+parseInt(Ue(o,"border-left-width")),u=i+r.height,c=a+r.width;break}while(o=o.parentNode);if(n&&e!==window){var m=ur(o||e),p=m&&m.a,_=m&&m.d;m&&(i/=_,a/=p,h/=p,d/=_,u=i+d,c=a+h)}return{top:i,left:a,bottom:u,right:c,width:h,height:d}}}function Mh(e,t,s){for(var n=In(e,!0),o=Et(e)[t];n;){var r=Et(n)[s],i=void 0;if(s==="top"||s==="left"?i=o>=r:i=o<=r,!i)return n;if(n===en())break;n=In(n,!1)}return!1}function ro(e,t,s,n){for(var o=0,r=0,i=e.children;r<i.length;){if(i[r].style.display!=="none"&&i[r]!==Xe.ghost&&(n||i[r]!==Xe.dragged)&&Bs(i[r],s.draggable,e,!1)){if(o===t)return i[r];o++}r++}return null}function Dd(e,t){for(var s=e.lastElementChild;s&&(s===Xe.ghost||Ue(s,"display")==="none"||t&&!Za(s,t));)s=s.previousElementSibling;return s||null}function Ft(e,t){var s=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Xe.clone&&(!t||Za(e,t))&&s++;return s}function Lh(e){var t=0,s=0,n=en();if(e)do{var o=ur(e),r=o.a,i=o.d;t+=e.scrollLeft*r,s+=e.scrollTop*i}while(e!==n&&(e=e.parentNode));return[t,s]}function TC(e,t){for(var s in e)if(!!e.hasOwnProperty(s)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[s][n])return Number(s)}return-1}function In(e,t){if(!e||!e.getBoundingClientRect)return en();var s=e,n=!1;do if(s.clientWidth<s.scrollWidth||s.clientHeight<s.scrollHeight){var o=Ue(s);if(s.clientWidth<s.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||s.clientHeight<s.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!s.getBoundingClientRect||s===document.body)return en();if(n||t)return s;n=!0}}while(s=s.parentNode);return en()}function AC(e,t){if(e&&t)for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s]);return e}function yu(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 Yo;function wg(e,t){return function(){if(!Yo){var s=arguments,n=this;s.length===1?e.call(n,s[0]):e.apply(n,s),Yo=setTimeout(function(){Yo=void 0},t)}}}function PC(){clearTimeout(Yo),Yo=void 0}function kg(e,t,s){e.scrollLeft+=t,e.scrollTop+=s}function Fd(e){var t=window.Polymer,s=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):s?s(e).clone(!0)[0]:e.cloneNode(!0)}function jh(e,t){Ue(e,"position","absolute"),Ue(e,"top",t.top),Ue(e,"left",t.left),Ue(e,"width",t.width),Ue(e,"height",t.height)}function bu(e){Ue(e,"position",""),Ue(e,"top",""),Ue(e,"left",""),Ue(e,"width",""),Ue(e,"height","")}var Xt="Sortable"+new Date().getTime();function DC(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(o){if(!(Ue(o,"display")==="none"||o===Xe.ghost)){e.push({target:o,rect:Et(o)});var r=tn({},e[e.length-1].rect);if(o.thisAnimationDuration){var i=ur(o,!0);i&&(r.top-=i.f,r.left-=i.e)}o.fromRect=r}})}},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(TC(e,{target:n}),1)},animateAll:function(n){var o=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var r=!1,i=0;e.forEach(function(a){var u=0,c=a.target,d=c.fromRect,h=Et(c),f=c.prevFromRect,m=c.prevToRect,p=a.rect,_=ur(c,!0);_&&(h.top-=_.f,h.left-=_.e),c.toRect=h,c.thisAnimationDuration&&yu(f,h)&&!yu(d,h)&&(p.top-h.top)/(p.left-h.left)===(d.top-h.top)/(d.left-h.left)&&(u=IC(p,f,m,o.options)),yu(h,d)||(c.prevFromRect=d,c.prevToRect=h,u||(u=o.options.animation),o.animate(c,p,h,u)),u&&(r=!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),r?t=setTimeout(function(){typeof n=="function"&&n()},i):typeof n=="function"&&n(),e=[]},animate:function(n,o,r,i){if(i){Ue(n,"transition",""),Ue(n,"transform","");var a=ur(this.el),u=a&&a.a,c=a&&a.d,d=(o.left-r.left)/(u||1),h=(o.top-r.top)/(c||1);n.animatingX=!!d,n.animatingY=!!h,Ue(n,"transform","translate3d("+d+"px,"+h+"px,0)"),this.forRepaintDummy=FC(n),Ue(n,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),Ue(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){Ue(n,"transition",""),Ue(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},i)}}}}function FC(e){return e.offsetWidth}function IC(e,t,s,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-s.top,2)+Math.pow(t.left-s.left,2))*n.animation}var Or=[],wu={initializeByDefault:!0},wi={mount:function(t){for(var s in wu)wu.hasOwnProperty(s)&&!(s in t)&&(t[s]=wu[s]);Or.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Or.push(t)},pluginEvent:function(t,s,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";Or.forEach(function(i){!s[i.pluginName]||(s[i.pluginName][r]&&s[i.pluginName][r](tn({sortable:s},n)),s.options[i.pluginName]&&s[i.pluginName][t]&&s[i.pluginName][t](tn({sortable:s},n)))})},initializePlugins:function(t,s,n,o){Or.forEach(function(a){var u=a.pluginName;if(!(!t.options[u]&&!a.initializeByDefault)){var c=new a(t,s,t.options);c.sortable=t,c.options=t.options,t[u]=c,Ds(n,c.defaults)}});for(var r in t.options)if(!!t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);typeof i!="undefined"&&(t.options[r]=i)}},getEventProperties:function(t,s){var n={};return Or.forEach(function(o){typeof o.eventProperties=="function"&&Ds(n,o.eventProperties.call(s[o.pluginName],t))}),n},modifyOption:function(t,s,n){var o;return Or.forEach(function(r){!t[r.pluginName]||r.optionListeners&&typeof r.optionListeners[s]=="function"&&(o=r.optionListeners[s].call(t[r.pluginName],n))}),o}};function Ao(e){var t=e.sortable,s=e.rootEl,n=e.name,o=e.targetEl,r=e.cloneEl,i=e.toEl,a=e.fromEl,u=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,h=e.newDraggableIndex,f=e.originalEvent,m=e.putSortable,p=e.extraEventProperties;if(t=t||s&&s[Xt],!!t){var _,g=t.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!vn&&!bi?_=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(_=document.createEvent("Event"),_.initEvent(n,!0,!0)),_.to=i||s,_.from=a||s,_.item=o||s,_.clone=r,_.oldIndex=u,_.newIndex=c,_.oldDraggableIndex=d,_.newDraggableIndex=h,_.originalEvent=f,_.pullMode=m?m.lastPutMode:void 0;var b=tn(tn({},p),wi.getEventProperties(n,t));for(var k in b)_[k]=b[k];s&&s.dispatchEvent(_),g[y]&&g[y].call(t,_)}}var RC=["evt"],us=function(t,s){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.evt,r=bC(n,RC);wi.pluginEvent.bind(Xe)(t,s,tn({dragEl:Se,parentEl:At,ghostEl:st,rootEl:St,nextEl:sr,lastDownEl:Ia,cloneEl:Pt,cloneHidden:Dn,dragStarted:Po,putSortable:Kt,activeSortable:Xe.active,originalEvent:o,oldIndex:Lr,oldDraggableIndex:Zo,newIndex:gs,newDraggableIndex:An,hideGhostForTarget:Cg,unhideGhostForTarget:$g,cloneNowHidden:function(){Dn=!0},cloneNowShown:function(){Dn=!1},dispatchSortableEvent:function(a){os({sortable:s,name:a,originalEvent:o})}},r))};function os(e){Ao(tn({putSortable:Kt,cloneEl:Pt,targetEl:Se,rootEl:St,oldIndex:Lr,oldDraggableIndex:Zo,newIndex:gs,newDraggableIndex:An},e))}var Se,At,st,St,sr,Ia,Pt,Dn,Lr,gs,Zo,An,Vi,Kt,Nr=!1,Ja=!1,Xa=[],Zn,Rs,ku,xu,Bh,Uh,Po,Tr,Jo,Xo=!1,Hi=!1,Ra,Jt,Su=[],_c=!1,Qa=[],Nl=typeof document!="undefined",qi=vg,Vh=bi||vn?"cssFloat":"float",NC=Nl&&!$C&&!vg&&"draggable"in document.createElement("div"),xg=function(){if(!!Nl){if(vn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Sg=function(t,s){var n=Ue(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=ro(t,0,s),i=ro(t,1,s),a=r&&Ue(r),u=i&&Ue(i),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Et(r).width,d=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Et(i).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var h=a.float==="left"?"left":"right";return i&&(u.clear==="both"||u.clear===h)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=o&&n[Vh]==="none"||i&&n[Vh]==="none"&&c+d>o)?"vertical":"horizontal"},MC=function(t,s,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,i=n?t.width:t.height,a=n?s.left:s.top,u=n?s.right:s.bottom,c=n?s.width:s.height;return o===a||r===u||o+i/2===a+c/2},LC=function(t,s){var n;return Xa.some(function(o){var r=o[Xt].options.emptyInsertThreshold;if(!(!r||Dd(o))){var i=Et(o),a=t>=i.left-r&&t<=i.right+r,u=s>=i.top-r&&s<=i.bottom+r;if(a&&u)return n=o}}),n},Eg=function(t){function s(r,i){return function(a,u,c,d){var h=a.options.group.name&&u.options.group.name&&a.options.group.name===u.options.group.name;if(r==null&&(i||h))return!0;if(r==null||r===!1)return!1;if(i&&r==="clone")return r;if(typeof r=="function")return s(r(a,u,c,d),i)(a,u,c,d);var f=(i?a:u).options.group.name;return r===!0||typeof r=="string"&&r===f||r.join&&r.indexOf(f)>-1}}var n={},o=t.group;(!o||Fa(o)!="object")&&(o={name:o}),n.name=o.name,n.checkPull=s(o.pull,!0),n.checkPut=s(o.put),n.revertClone=o.revertClone,t.group=n},Cg=function(){!xg&&st&&Ue(st,"display","none")},$g=function(){!xg&&st&&Ue(st,"display","")};Nl&&document.addEventListener("click",function(e){if(Ja)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ja=!1,!1},!0);var Jn=function(t){if(Se){t=t.touches?t.touches[0]:t;var s=LC(t.clientX,t.clientY);if(s){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=s,n.preventDefault=void 0,n.stopPropagation=void 0,s[Xt]._onDragOver(n)}}},jC=function(t){Se&&Se.parentNode[Xt]._isOutsideThisEl(t.target)};function Xe(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=Ds({},t),e[Xt]=this;var s={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 Sg(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:Xe.supportPointer!==!1&&"PointerEvent"in window&&!Ko,emptyInsertThreshold:5};wi.initializePlugins(this,e,s);for(var n in s)!(n in t)&&(t[n]=s[n]);Eg(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:NC,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?at(e,"pointerdown",this._onTapStart):(at(e,"mousedown",this._onTapStart),at(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(at(e,"dragover",this),at(e,"dragenter",this)),Xa.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ds(this,DC())}Xe.prototype={constructor:Xe,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Tr=null)},_getDirection:function(t,s){return typeof this.options.direction=="function"?this.options.direction.call(this,t,s,Se):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var s=this,n=this.el,o=this.options,r=o.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=o.filter;if(WC(n),!Se&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||o.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Ko&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Bs(u,o.draggable,n,!1),!(u&&u.animated)&&Ia!==u)){if(Lr=Ft(u),Zo=Ft(u,o.draggable),typeof d=="function"){if(d.call(this,t,u,this)){os({sortable:s,rootEl:c,name:"filter",targetEl:u,toEl:n,fromEl:n}),us("filter",s,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(h){if(h=Bs(c,h.trim(),n,!1),h)return os({sortable:s,rootEl:h,name:"filter",targetEl:u,fromEl:n,toEl:n}),us("filter",s,{evt:t}),!0}),d)){r&&t.cancelable&&t.preventDefault();return}o.handle&&!Bs(c,o.handle,n,!1)||this._prepareDragStart(t,a,u)}}},_prepareDragStart:function(t,s,n){var o=this,r=o.el,i=o.options,a=r.ownerDocument,u;if(n&&!Se&&n.parentNode===r){var c=Et(n);if(St=r,Se=n,At=Se.parentNode,sr=Se.nextSibling,Ia=n,Vi=i.group,Xe.dragged=Se,Zn={target:Se,clientX:(s||t).clientX,clientY:(s||t).clientY},Bh=Zn.clientX-c.left,Uh=Zn.clientY-c.top,this._lastX=(s||t).clientX,this._lastY=(s||t).clientY,Se.style["will-change"]="all",u=function(){if(us("delayEnded",o,{evt:t}),Xe.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Rh&&o.nativeDraggable&&(Se.draggable=!0),o._triggerDragStart(t,s),os({sortable:o,name:"choose",originalEvent:t}),Ct(Se,i.chosenClass,!0)},i.ignore.split(",").forEach(function(d){bg(Se,d.trim(),Eu)}),at(a,"dragover",Jn),at(a,"mousemove",Jn),at(a,"touchmove",Jn),at(a,"mouseup",o._onDrop),at(a,"touchend",o._onDrop),at(a,"touchcancel",o._onDrop),Rh&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Se.draggable=!0),us("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||s)&&(!this.nativeDraggable||!(bi||vn))){if(Xe.eventCanceled){this._onDrop();return}at(a,"mouseup",o._disableDelayedDrag),at(a,"touchend",o._disableDelayedDrag),at(a,"touchcancel",o._disableDelayedDrag),at(a,"mousemove",o._delayedDragTouchMoveHandler),at(a,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&at(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(u,i.delay)}else u()}},_delayedDragTouchMoveHandler:function(t){var s=t.touches?t.touches[0]:t;Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Se&&Eu(Se),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;rt(t,"mouseup",this._disableDelayedDrag),rt(t,"touchend",this._disableDelayedDrag),rt(t,"touchcancel",this._disableDelayedDrag),rt(t,"mousemove",this._delayedDragTouchMoveHandler),rt(t,"touchmove",this._delayedDragTouchMoveHandler),rt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,s){s=s||t.pointerType=="touch"&&t,!this.nativeDraggable||s?this.options.supportPointer?at(document,"pointermove",this._onTouchMove):s?at(document,"touchmove",this._onTouchMove):at(document,"mousemove",this._onTouchMove):(at(Se,"dragend",this),at(St,"dragstart",this._onDragStart));try{document.selection?Na(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,s){if(Nr=!1,St&&Se){us("dragStarted",this,{evt:s}),this.nativeDraggable&&at(document,"dragover",jC);var n=this.options;!t&&Ct(Se,n.dragClass,!1),Ct(Se,n.ghostClass,!0),Xe.active=this,t&&this._appendGhost(),os({sortable:this,name:"start",originalEvent:s})}else this._nulling()},_emulateDragOver:function(){if(Rs){this._lastX=Rs.clientX,this._lastY=Rs.clientY,Cg();for(var t=document.elementFromPoint(Rs.clientX,Rs.clientY),s=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Rs.clientX,Rs.clientY),t!==s);)s=t;if(Se.parentNode[Xt]._isOutsideThisEl(t),s)do{if(s[Xt]){var n=void 0;if(n=s[Xt]._onDragOver({clientX:Rs.clientX,clientY:Rs.clientY,target:t,rootEl:s}),n&&!this.options.dragoverBubble)break}t=s}while(s=s.parentNode);$g()}},_onTouchMove:function(t){if(Zn){var s=this.options,n=s.fallbackTolerance,o=s.fallbackOffset,r=t.touches?t.touches[0]:t,i=st&&ur(st,!0),a=st&&i&&i.a,u=st&&i&&i.d,c=qi&&Jt&&Lh(Jt),d=(r.clientX-Zn.clientX+o.x)/(a||1)+(c?c[0]-Su[0]:0)/(a||1),h=(r.clientY-Zn.clientY+o.y)/(u||1)+(c?c[1]-Su[1]:0)/(u||1);if(!Xe.active&&!Nr){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(st){i?(i.e+=d-(ku||0),i.f+=h-(xu||0)):i={a:1,b:0,c:0,d:1,e:d,f:h};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Ue(st,"webkitTransform",f),Ue(st,"mozTransform",f),Ue(st,"msTransform",f),Ue(st,"transform",f),ku=d,xu=h,Rs=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!st){var t=this.options.fallbackOnBody?document.body:St,s=Et(Se,!0,qi,!0,t),n=this.options;if(qi){for(Jt=t;Ue(Jt,"position")==="static"&&Ue(Jt,"transform")==="none"&&Jt!==document;)Jt=Jt.parentNode;Jt!==document.body&&Jt!==document.documentElement?(Jt===document&&(Jt=en()),s.top+=Jt.scrollTop,s.left+=Jt.scrollLeft):Jt=en(),Su=Lh(Jt)}st=Se.cloneNode(!0),Ct(st,n.ghostClass,!1),Ct(st,n.fallbackClass,!0),Ct(st,n.dragClass,!0),Ue(st,"transition",""),Ue(st,"transform",""),Ue(st,"box-sizing","border-box"),Ue(st,"margin",0),Ue(st,"top",s.top),Ue(st,"left",s.left),Ue(st,"width",s.width),Ue(st,"height",s.height),Ue(st,"opacity","0.8"),Ue(st,"position",qi?"absolute":"fixed"),Ue(st,"zIndex","100000"),Ue(st,"pointerEvents","none"),Xe.ghost=st,t.appendChild(st),Ue(st,"transform-origin",Bh/parseInt(st.style.width)*100+"% "+Uh/parseInt(st.style.height)*100+"%")}},_onDragStart:function(t,s){var n=this,o=t.dataTransfer,r=n.options;if(us("dragStart",this,{evt:t}),Xe.eventCanceled){this._onDrop();return}us("setupClone",this),Xe.eventCanceled||(Pt=Fd(Se),Pt.draggable=!1,Pt.style["will-change"]="",this._hideClone(),Ct(Pt,this.options.chosenClass,!1),Xe.clone=Pt),n.cloneId=Na(function(){us("clone",n),!Xe.eventCanceled&&(n.options.removeCloneOnHide||St.insertBefore(Pt,Se),n._hideClone(),os({sortable:n,name:"clone"}))}),!s&&Ct(Se,r.dragClass,!0),s?(Ja=!0,n._loopId=setInterval(n._emulateDragOver,50)):(rt(document,"mouseup",n._onDrop),rt(document,"touchend",n._onDrop),rt(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,Se)),at(document,"drop",n),Ue(Se,"transform","translateZ(0)")),Nr=!0,n._dragStartId=Na(n._dragStarted.bind(n,s,t)),at(document,"selectstart",n),Po=!0,Ko&&Ue(document.body,"user-select","none")},_onDragOver:function(t){var s=this.el,n=t.target,o,r,i,a=this.options,u=a.group,c=Xe.active,d=Vi===u,h=a.sort,f=Kt||c,m,p=this,_=!1;if(_c)return;function g(ve,Me){us(ve,p,tn({evt:t,isOwner:d,axis:m?"vertical":"horizontal",revert:i,dragRect:o,targetRect:r,canSort:h,fromSortable:f,target:n,completed:b,onMove:function(me,Z){return zi(St,s,Se,o,me,Et(me),t,Z)},changed:k},Me))}function y(){g("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function b(ve){return g("dragOverCompleted",{insertion:ve}),ve&&(d?c._hideClone():c._showClone(p),p!==f&&(Ct(Se,Kt?Kt.options.ghostClass:c.options.ghostClass,!1),Ct(Se,a.ghostClass,!0)),Kt!==p&&p!==Xe.active?Kt=p:p===Xe.active&&Kt&&(Kt=null),f===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){g("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(n===Se&&!Se.animated||n===s&&!n.animated)&&(Tr=null),!a.dragoverBubble&&!t.rootEl&&n!==document&&(Se.parentNode[Xt]._isOutsideThisEl(t.target),!ve&&Jn(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),_=!0}function k(){gs=Ft(Se),An=Ft(Se,a.draggable),os({sortable:p,name:"change",toEl:s,newIndex:gs,newDraggableIndex:An,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=Bs(n,a.draggable,s,!0),g("dragOver"),Xe.eventCanceled)return _;if(Se.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return b(!1);if(Ja=!1,c&&!a.disabled&&(d?h||(i=At!==St):Kt===this||(this.lastPutMode=Vi.checkPull(this,c,Se,t))&&u.checkPut(this,c,Se,t))){if(m=this._getDirection(t,n)==="vertical",o=Et(Se),g("dragOverValid"),Xe.eventCanceled)return _;if(i)return At=St,y(),this._hideClone(),g("revert"),Xe.eventCanceled||(sr?St.insertBefore(Se,sr):St.appendChild(Se)),b(!0);var S=Dd(s,a.draggable);if(!S||HC(t,m,this)&&!S.animated){if(S===Se)return b(!1);if(S&&s===t.target&&(n=S),n&&(r=Et(n)),zi(St,s,Se,o,n,r,t,!!n)!==!1)return y(),s.appendChild(Se),At=s,k(),b(!0)}else if(S&&VC(t,m,this)){var E=ro(s,0,a,!0);if(E===Se)return b(!1);if(n=E,r=Et(n),zi(St,s,Se,o,n,r,t,!1)!==!1)return y(),s.insertBefore(Se,E),At=s,k(),b(!0)}else if(n.parentNode===s){r=Et(n);var $=0,I,j=Se.parentNode!==s,O=!MC(Se.animated&&Se.toRect||o,n.animated&&n.toRect||r,m),L=m?"top":"left",z=Mh(n,"top","top")||Mh(Se,"top","top"),D=z?z.scrollTop:void 0;Tr!==n&&(I=r[L],Xo=!1,Hi=!O&&a.invertSwap||j),$=qC(t,n,r,m,O?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Hi,Tr===n);var U;if($!==0){var W=Ft(Se);do W-=$,U=At.children[W];while(U&&(Ue(U,"display")==="none"||U===st))}if($===0||U===n)return b(!1);Tr=n,Jo=$;var ue=n.nextElementSibling,te=!1;te=$===1;var ae=zi(St,s,Se,o,n,r,t,te);if(ae!==!1)return(ae===1||ae===-1)&&(te=ae===1),_c=!0,setTimeout(UC,30),y(),te&&!ue?s.appendChild(Se):n.parentNode.insertBefore(Se,te?ue:n),z&&kg(z,0,D-z.scrollTop),At=Se.parentNode,I!==void 0&&!Hi&&(Ra=Math.abs(I-Et(n)[L])),k(),b(!0)}if(s.contains(Se))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){rt(document,"mousemove",this._onTouchMove),rt(document,"touchmove",this._onTouchMove),rt(document,"pointermove",this._onTouchMove),rt(document,"dragover",Jn),rt(document,"mousemove",Jn),rt(document,"touchmove",Jn)},_offUpEvents:function(){var t=this.el.ownerDocument;rt(t,"mouseup",this._onDrop),rt(t,"touchend",this._onDrop),rt(t,"pointerup",this._onDrop),rt(t,"touchcancel",this._onDrop),rt(document,"selectstart",this)},_onDrop:function(t){var s=this.el,n=this.options;if(gs=Ft(Se),An=Ft(Se,n.draggable),us("drop",this,{evt:t}),At=Se&&Se.parentNode,gs=Ft(Se),An=Ft(Se,n.draggable),Xe.eventCanceled){this._nulling();return}Nr=!1,Hi=!1,Xo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),gc(this.cloneId),gc(this._dragStartId),this.nativeDraggable&&(rt(document,"drop",this),rt(s,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ko&&Ue(document.body,"user-select",""),Ue(Se,"transform",""),t&&(Po&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),st&&st.parentNode&&st.parentNode.removeChild(st),(St===At||Kt&&Kt.lastPutMode!=="clone")&&Pt&&Pt.parentNode&&Pt.parentNode.removeChild(Pt),Se&&(this.nativeDraggable&&rt(Se,"dragend",this),Eu(Se),Se.style["will-change"]="",Po&&!Nr&&Ct(Se,Kt?Kt.options.ghostClass:this.options.ghostClass,!1),Ct(Se,this.options.chosenClass,!1),os({sortable:this,name:"unchoose",toEl:At,newIndex:null,newDraggableIndex:null,originalEvent:t}),St!==At?(gs>=0&&(os({rootEl:At,name:"add",toEl:At,fromEl:St,originalEvent:t}),os({sortable:this,name:"remove",toEl:At,originalEvent:t}),os({rootEl:At,name:"sort",toEl:At,fromEl:St,originalEvent:t}),os({sortable:this,name:"sort",toEl:At,originalEvent:t})),Kt&&Kt.save()):gs!==Lr&&gs>=0&&(os({sortable:this,name:"update",toEl:At,originalEvent:t}),os({sortable:this,name:"sort",toEl:At,originalEvent:t})),Xe.active&&((gs==null||gs===-1)&&(gs=Lr,An=Zo),os({sortable:this,name:"end",toEl:At,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){us("nulling",this),St=Se=At=st=sr=Pt=Ia=Dn=Zn=Rs=Po=gs=An=Lr=Zo=Tr=Jo=Kt=Vi=Xe.dragged=Xe.ghost=Xe.clone=Xe.active=null,Qa.forEach(function(t){t.checked=!0}),Qa.length=ku=xu=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Se&&(this._onDragOver(t),BC(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],s,n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)s=n[o],Bs(s,i.draggable,this.el,!1)&&t.push(s.getAttribute(i.dataIdAttr)||GC(s));return t},sort:function(t,s){var n={},o=this.el;this.toArray().forEach(function(r,i){var a=o.children[i];Bs(a,this.options.draggable,o,!1)&&(n[r]=a)},this),s&&this.captureAnimationState(),t.forEach(function(r){n[r]&&(o.removeChild(n[r]),o.appendChild(n[r]))}),s&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,s){return Bs(t,s||this.options.draggable,this.el,!1)},option:function(t,s){var n=this.options;if(s===void 0)return n[t];var o=wi.modifyOption(this,t,s);typeof o!="undefined"?n[t]=o:n[t]=s,t==="group"&&Eg(n)},destroy:function(){us("destroy",this);var t=this.el;t[Xt]=null,rt(t,"mousedown",this._onTapStart),rt(t,"touchstart",this._onTapStart),rt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(rt(t,"dragover",this),rt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(s){s.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Xa.splice(Xa.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Dn){if(us("hideClone",this),Xe.eventCanceled)return;Ue(Pt,"display","none"),this.options.removeCloneOnHide&&Pt.parentNode&&Pt.parentNode.removeChild(Pt),Dn=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Dn){if(us("showClone",this),Xe.eventCanceled)return;Se.parentNode==St&&!this.options.group.revertClone?St.insertBefore(Pt,Se):sr?St.insertBefore(Pt,sr):St.appendChild(Pt),this.options.group.revertClone&&this.animate(Se,Pt),Ue(Pt,"display",""),Dn=!1}}};function BC(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function zi(e,t,s,n,o,r,i,a){var u,c=e[Xt],d=c.options.onMove,h;return window.CustomEvent&&!vn&&!bi?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=s,u.draggedRect=n,u.related=o||t,u.relatedRect=r||Et(t),u.willInsertAfter=a,u.originalEvent=i,e.dispatchEvent(u),d&&(h=d.call(c,u,i)),h}function Eu(e){e.draggable=!1}function UC(){_c=!1}function VC(e,t,s){var n=Et(ro(s.el,0,s.options,!0)),o=10;return t?e.clientX<n.left-o||e.clientY<n.top&&e.clientX<n.right:e.clientY<n.top-o||e.clientY<n.bottom&&e.clientX<n.left}function HC(e,t,s){var n=Et(Dd(s.el,s.options.draggable)),o=10;return t?e.clientX>n.right+o||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+o}function qC(e,t,s,n,o,r,i,a){var u=n?e.clientY:e.clientX,c=n?s.height:s.width,d=n?s.top:s.left,h=n?s.bottom:s.right,f=!1;if(!i){if(a&&Ra<c*o){if(!Xo&&(Jo===1?u>d+c*r/2:u<h-c*r/2)&&(Xo=!0),Xo)f=!0;else if(Jo===1?u<d+Ra:u>h-Ra)return-Jo}else if(u>d+c*(1-o)/2&&u<h-c*(1-o)/2)return zC(t)}return f=f||i,f&&(u<d+c*r/2||u>h-c*r/2)?u>d+c/2?1:-1:0}function zC(e){return Ft(Se)<Ft(e)?1:-1}function GC(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,s=t.length,n=0;s--;)n+=t.charCodeAt(s);return n.toString(36)}function WC(e){Qa.length=0;for(var t=e.getElementsByTagName("input"),s=t.length;s--;){var n=t[s];n.checked&&Qa.push(n)}}function Na(e){return setTimeout(e,0)}function gc(e){return clearTimeout(e)}Nl&&at(document,"touchmove",function(e){(Xe.active||Nr)&&e.cancelable&&e.preventDefault()});Xe.utils={on:at,off:rt,css:Ue,find:bg,is:function(t,s){return!!Bs(t,s,t,!1)},extend:AC,throttle:wg,closest:Bs,toggleClass:Ct,clone:Fd,index:Ft,nextTick:Na,cancelNextTick:gc,detectDirection:Sg,getChild:ro};Xe.get=function(e){return e[Xt]};Xe.mount=function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(Xe.utils=tn(tn({},Xe.utils),n.utils)),wi.mount(n)})};Xe.create=function(e,t){return new Xe(e,t)};Xe.version=CC;var jt=[],Do,vc,yc=!1,Cu,$u,el,Fo;function KC(){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(s){var n=s.originalEvent;this.sortable.nativeDraggable?at(document,"dragover",this._handleAutoScroll):this.options.supportPointer?at(document,"pointermove",this._handleFallbackAutoScroll):n.touches?at(document,"touchmove",this._handleFallbackAutoScroll):at(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(s){var n=s.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?rt(document,"dragover",this._handleAutoScroll):(rt(document,"pointermove",this._handleFallbackAutoScroll),rt(document,"touchmove",this._handleFallbackAutoScroll),rt(document,"mousemove",this._handleFallbackAutoScroll)),Hh(),Ma(),PC()},nulling:function(){el=vc=Do=yc=Fo=Cu=$u=null,jt.length=0},_handleFallbackAutoScroll:function(s){this._handleAutoScroll(s,!0)},_handleAutoScroll:function(s,n){var o=this,r=(s.touches?s.touches[0]:s).clientX,i=(s.touches?s.touches[0]:s).clientY,a=document.elementFromPoint(r,i);if(el=s,n||this.options.forceAutoScrollFallback||bi||vn||Ko){Ou(s,this.options,a,n);var u=In(a,!0);yc&&(!Fo||r!==Cu||i!==$u)&&(Fo&&Hh(),Fo=setInterval(function(){var c=In(document.elementFromPoint(r,i),!0);c!==u&&(u=c,Ma()),Ou(s,o.options,c,n)},10),Cu=r,$u=i)}else{if(!this.options.bubbleScroll||In(a,!0)===en()){Ma();return}Ou(s,this.options,In(a,!1),!1)}}},Ds(e,{pluginName:"scroll",initializeByDefault:!0})}function Ma(){jt.forEach(function(e){clearInterval(e.pid)}),jt=[]}function Hh(){clearInterval(Fo)}var Ou=wg(function(e,t,s,n){if(!!t.scroll){var o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,i=t.scrollSensitivity,a=t.scrollSpeed,u=en(),c=!1,d;vc!==s&&(vc=s,Ma(),Do=t.scroll,d=t.scrollFn,Do===!0&&(Do=In(s,!0)));var h=0,f=Do;do{var m=f,p=Et(m),_=p.top,g=p.bottom,y=p.left,b=p.right,k=p.width,S=p.height,E=void 0,$=void 0,I=m.scrollWidth,j=m.scrollHeight,O=Ue(m),L=m.scrollLeft,z=m.scrollTop;m===u?(E=k<I&&(O.overflowX==="auto"||O.overflowX==="scroll"||O.overflowX==="visible"),$=S<j&&(O.overflowY==="auto"||O.overflowY==="scroll"||O.overflowY==="visible")):(E=k<I&&(O.overflowX==="auto"||O.overflowX==="scroll"),$=S<j&&(O.overflowY==="auto"||O.overflowY==="scroll"));var D=E&&(Math.abs(b-o)<=i&&L+k<I)-(Math.abs(y-o)<=i&&!!L),U=$&&(Math.abs(g-r)<=i&&z+S<j)-(Math.abs(_-r)<=i&&!!z);if(!jt[h])for(var W=0;W<=h;W++)jt[W]||(jt[W]={});(jt[h].vx!=D||jt[h].vy!=U||jt[h].el!==m)&&(jt[h].el=m,jt[h].vx=D,jt[h].vy=U,clearInterval(jt[h].pid),(D!=0||U!=0)&&(c=!0,jt[h].pid=setInterval(function(){n&&this.layer===0&&Xe.active._onTouchMove(el);var ue=jt[this.layer].vy?jt[this.layer].vy*a:0,te=jt[this.layer].vx?jt[this.layer].vx*a:0;typeof d=="function"&&d.call(Xe.dragged.parentNode[Xt],te,ue,e,el,jt[this.layer].el)!=="continue"||kg(jt[this.layer].el,te,ue)}.bind({layer:h}),24))),h++}while(t.bubbleScroll&&f!==u&&(f=In(f,!1)));yc=c}},30),Og=function(t){var s=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,u=t.unhideGhostForTarget;if(!!s){var c=n||r;a();var d=s.changedTouches&&s.changedTouches.length?s.changedTouches[0]:s,h=document.elementFromPoint(d.clientX,d.clientY);u(),c&&!c.el.contains(h)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function Id(){}Id.prototype={startIndex:null,dragStart:function(t){var s=t.oldDraggableIndex;this.startIndex=s},onSpill:function(t){var s=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=ro(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(s,o):this.sortable.el.appendChild(s),this.sortable.animateAll(),n&&n.animateAll()},drop:Og};Ds(Id,{pluginName:"revertOnSpill"});function Rd(){}Rd.prototype={onSpill:function(t){var s=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),s.parentNode&&s.parentNode.removeChild(s),o.animateAll()},drop:Og};Ds(Rd,{pluginName:"removeOnSpill"});var Os;function YC(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(s){var n=s.dragEl;Os=n},dragOverValid:function(s){var n=s.completed,o=s.target,r=s.onMove,i=s.activeSortable,a=s.changed,u=s.cancel;if(!!i.options.swap){var c=this.sortable.el,d=this.options;if(o&&o!==c){var h=Os;r(o)!==!1?(Ct(o,d.swapClass,!0),Os=o):Os=null,h&&h!==Os&&Ct(h,d.swapClass,!1)}a(),n(!0),u()}},drop:function(s){var n=s.activeSortable,o=s.putSortable,r=s.dragEl,i=o||this.sortable,a=this.options;Os&&Ct(Os,a.swapClass,!1),Os&&(a.swap||o&&o.options.swap)&&r!==Os&&(i.captureAnimationState(),i!==n&&n.captureAnimationState(),ZC(r,Os),i.animateAll(),i!==n&&n.animateAll())},nulling:function(){Os=null}},Ds(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Os}}})}function ZC(e,t){var s=e.parentNode,n=t.parentNode,o,r;!s||!n||s.isEqualNode(t)||n.isEqualNode(e)||(o=Ft(e),r=Ft(t),s.isEqualNode(n)&&o<r&&r++,s.insertBefore(t,s.children[o]),n.insertBefore(e,n.children[r]))}var tt=[],_s=[],vo,Ns,yo=!1,cs=!1,Ar=!1,kt,bo,Gi;function JC(){function e(t){for(var s in this)s.charAt(0)==="_"&&typeof this[s]=="function"&&(this[s]=this[s].bind(this));t.options.supportPointer?at(document,"pointerup",this._deselectMultiDrag):(at(document,"mouseup",this._deselectMultiDrag),at(document,"touchend",this._deselectMultiDrag)),at(document,"keydown",this._checkKeyDown),at(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(o,r){var i="";tt.length&&Ns===t?tt.forEach(function(a,u){i+=(u?", ":"")+a.textContent}):i=r.textContent,o.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(s){var n=s.dragEl;kt=n},delayEnded:function(){this.isMultiDrag=~tt.indexOf(kt)},setupClone:function(s){var n=s.sortable,o=s.cancel;if(!!this.isMultiDrag){for(var r=0;r<tt.length;r++)_s.push(Fd(tt[r])),_s[r].sortableIndex=tt[r].sortableIndex,_s[r].draggable=!1,_s[r].style["will-change"]="",Ct(_s[r],this.options.selectedClass,!1),tt[r]===kt&&Ct(_s[r],this.options.chosenClass,!1);n._hideClone(),o()}},clone:function(s){var n=s.sortable,o=s.rootEl,r=s.dispatchSortableEvent,i=s.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||tt.length&&Ns===n&&(qh(!0,o),r("clone"),i())},showClone:function(s){var n=s.cloneNowShown,o=s.rootEl,r=s.cancel;!this.isMultiDrag||(qh(!1,o),_s.forEach(function(i){Ue(i,"display","")}),n(),Gi=!1,r())},hideClone:function(s){var n=this;s.sortable;var o=s.cloneNowHidden,r=s.cancel;!this.isMultiDrag||(_s.forEach(function(i){Ue(i,"display","none"),n.options.removeCloneOnHide&&i.parentNode&&i.parentNode.removeChild(i)}),o(),Gi=!0,r())},dragStartGlobal:function(s){s.sortable,!this.isMultiDrag&&Ns&&Ns.multiDrag._deselectMultiDrag(),tt.forEach(function(n){n.sortableIndex=Ft(n)}),tt=tt.sort(function(n,o){return n.sortableIndex-o.sortableIndex}),Ar=!0},dragStarted:function(s){var n=this,o=s.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){tt.forEach(function(i){i!==kt&&Ue(i,"position","absolute")});var r=Et(kt,!1,!0,!0);tt.forEach(function(i){i!==kt&&jh(i,r)}),cs=!0,yo=!0}o.animateAll(function(){cs=!1,yo=!1,n.options.animation&&tt.forEach(function(i){bu(i)}),n.options.sort&&Wi()})}},dragOver:function(s){var n=s.target,o=s.completed,r=s.cancel;cs&&~tt.indexOf(n)&&(o(!1),r())},revert:function(s){var n=s.fromSortable,o=s.rootEl,r=s.sortable,i=s.dragRect;tt.length>1&&(tt.forEach(function(a){r.addAnimationState({target:a,rect:cs?Et(a):i}),bu(a),a.fromRect=i,n.removeAnimationState(a)}),cs=!1,XC(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(s){var n=s.sortable,o=s.isOwner,r=s.insertion,i=s.activeSortable,a=s.parentEl,u=s.putSortable,c=this.options;if(r){if(o&&i._hideClone(),yo=!1,c.animation&&tt.length>1&&(cs||!o&&!i.options.sort&&!u)){var d=Et(kt,!1,!0,!0);tt.forEach(function(f){f!==kt&&(jh(f,d),a.appendChild(f))}),cs=!0}if(!o)if(cs||Wi(),tt.length>1){var h=Gi;i._showClone(n),i.options.animation&&!Gi&&h&&_s.forEach(function(f){i.addAnimationState({target:f,rect:bo}),f.fromRect=bo,f.thisAnimationDuration=null})}else i._showClone(n)}},dragOverAnimationCapture:function(s){var n=s.dragRect,o=s.isOwner,r=s.activeSortable;if(tt.forEach(function(a){a.thisAnimationDuration=null}),r.options.animation&&!o&&r.multiDrag.isMultiDrag){bo=Ds({},n);var i=ur(kt,!0);bo.top-=i.f,bo.left-=i.e}},dragOverAnimationComplete:function(){cs&&(cs=!1,Wi())},drop:function(s){var n=s.originalEvent,o=s.rootEl,r=s.parentEl,i=s.sortable,a=s.dispatchSortableEvent,u=s.oldIndex,c=s.putSortable,d=c||this.sortable;if(!!n){var h=this.options,f=r.children;if(!Ar)if(h.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ct(kt,h.selectedClass,!~tt.indexOf(kt)),~tt.indexOf(kt))tt.splice(tt.indexOf(kt),1),vo=null,Ao({sortable:i,rootEl:o,name:"deselect",targetEl:kt,originalEvt:n});else{if(tt.push(kt),Ao({sortable:i,rootEl:o,name:"select",targetEl:kt,originalEvt:n}),n.shiftKey&&vo&&i.el.contains(vo)){var m=Ft(vo),p=Ft(kt);if(~m&&~p&&m!==p){var _,g;for(p>m?(g=m,_=p):(g=p,_=m+1);g<_;g++)~tt.indexOf(f[g])||(Ct(f[g],h.selectedClass,!0),tt.push(f[g]),Ao({sortable:i,rootEl:o,name:"select",targetEl:f[g],originalEvt:n}))}}else vo=kt;Ns=d}if(Ar&&this.isMultiDrag){if(cs=!1,(r[Xt].options.sort||r!==o)&&tt.length>1){var y=Et(kt),b=Ft(kt,":not(."+this.options.selectedClass+")");if(!yo&&h.animation&&(kt.thisAnimationDuration=null),d.captureAnimationState(),!yo&&(h.animation&&(kt.fromRect=y,tt.forEach(function(S){if(S.thisAnimationDuration=null,S!==kt){var E=cs?Et(S):y;S.fromRect=E,d.addAnimationState({target:S,rect:E})}})),Wi(),tt.forEach(function(S){f[b]?r.insertBefore(S,f[b]):r.appendChild(S),b++}),u===Ft(kt))){var k=!1;tt.forEach(function(S){if(S.sortableIndex!==Ft(S)){k=!0;return}}),k&&a("update")}tt.forEach(function(S){bu(S)}),d.animateAll()}Ns=d}(o===r||c&&c.lastPutMode!=="clone")&&_s.forEach(function(S){S.parentNode&&S.parentNode.removeChild(S)})}},nullingGlobal:function(){this.isMultiDrag=Ar=!1,_s.length=0},destroyGlobal:function(){this._deselectMultiDrag(),rt(document,"pointerup",this._deselectMultiDrag),rt(document,"mouseup",this._deselectMultiDrag),rt(document,"touchend",this._deselectMultiDrag),rt(document,"keydown",this._checkKeyDown),rt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(s){if(!(typeof Ar!="undefined"&&Ar)&&Ns===this.sortable&&!(s&&Bs(s.target,this.options.draggable,this.sortable.el,!1))&&!(s&&s.button!==0))for(;tt.length;){var n=tt[0];Ct(n,this.options.selectedClass,!1),tt.shift(),Ao({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvt:s})}},_checkKeyDown:function(s){s.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(s){s.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ds(e,{pluginName:"multiDrag",utils:{select:function(s){var n=s.parentNode[Xt];!n||!n.options.multiDrag||~tt.indexOf(s)||(Ns&&Ns!==n&&(Ns.multiDrag._deselectMultiDrag(),Ns=n),Ct(s,n.options.selectedClass,!0),tt.push(s))},deselect:function(s){var n=s.parentNode[Xt],o=tt.indexOf(s);!n||!n.options.multiDrag||!~o||(Ct(s,n.options.selectedClass,!1),tt.splice(o,1))}},eventProperties:function(){var s=this,n=[],o=[];return tt.forEach(function(r){n.push({multiDragElement:r,index:r.sortableIndex});var i;cs&&r!==kt?i=-1:cs?i=Ft(r,":not(."+s.options.selectedClass+")"):i=Ft(r),o.push({multiDragElement:r,index:i})}),{items:wC(tt),clones:[].concat(_s),oldIndicies:n,newIndicies:o}},optionListeners:{multiDragKey:function(s){return s=s.toLowerCase(),s==="ctrl"?s="Control":s.length>1&&(s=s.charAt(0).toUpperCase()+s.substr(1)),s}}})}function XC(e,t){tt.forEach(function(s,n){var o=t.children[s.sortableIndex+(e?Number(n):0)];o?t.insertBefore(s,o):t.appendChild(s)})}function qh(e,t){_s.forEach(function(s,n){var o=t.children[s.sortableIndex+(e?Number(n):0)];o?t.insertBefore(s,o):t.appendChild(s)})}function Wi(){tt.forEach(function(e){e!==kt&&e.parentNode&&e.parentNode.removeChild(e)})}Xe.mount(new KC);Xe.mount(Rd,Id);var QC=Object.freeze(Object.defineProperty({__proto__:null,default:Xe,MultiDrag:JC,Sortable:Xe,Swap:YC},Symbol.toStringTag,{value:"Module"})),e$=eg(QC);(function(e,t){(function(n,o){e.exports=o(Pd,e$)})(typeof self!="undefined"?self:ts,function(s,n){return function(o){var r={};function i(a){if(r[a])return r[a].exports;var u=r[a]={i:a,l:!1,exports:{}};return o[a].call(u.exports,u,u.exports,i),u.l=!0,u.exports}return i.m=o,i.c=r,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(h){return a[h]}.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(o,r,i){var a=i("b622"),u=a("toStringTag"),c={};c[u]="z",o.exports=String(c)==="[object z]"},"0366":function(o,r,i){var a=i("1c0b");o.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(h){return u.call(c,h)};case 2:return function(h,f){return u.call(c,h,f)};case 3:return function(h,f,m){return u.call(c,h,f,m)}}return function(){return u.apply(c,arguments)}}},"057f":function(o,r,i){var a=i("fc6a"),u=i("241c").f,c={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(f){try{return u(f)}catch{return d.slice()}};o.exports.f=function(m){return d&&c.call(m)=="[object Window]"?h(m):u(a(m))}},"06cf":function(o,r,i){var a=i("83ab"),u=i("d1e7"),c=i("5c6c"),d=i("fc6a"),h=i("c04e"),f=i("5135"),m=i("0cfb"),p=Object.getOwnPropertyDescriptor;r.f=a?p:function(g,y){if(g=d(g),y=h(y,!0),m)try{return p(g,y)}catch{}if(f(g,y))return c(!u.f.call(g,y),g[y])}},"0cfb":function(o,r,i){var a=i("83ab"),u=i("d039"),c=i("cc12");o.exports=!a&&!u(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(o,r,i){var a=i("23e7"),u=i("d58f").left,c=i("a640"),d=i("ae40"),h=c("reduce"),f=d("reduce",{1:0});a({target:"Array",proto:!0,forced:!h||!f},{reduce:function(p){return u(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(o,r,i){var a=i("c6b6"),u=i("9263");o.exports=function(c,d){var h=c.exec;if(typeof h=="function"){var f=h.call(c,d);if(typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(a(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(c,d)}},"159b":function(o,r,i){var a=i("da84"),u=i("fdbc"),c=i("17c2"),d=i("9112");for(var h in u){var f=a[h],m=f&&f.prototype;if(m&&m.forEach!==c)try{d(m,"forEach",c)}catch{m.forEach=c}}},"17c2":function(o,r,i){var a=i("b727").forEach,u=i("a640"),c=i("ae40"),d=u("forEach"),h=c("forEach");o.exports=!d||!h?function(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(o,r,i){var a=i("d066");o.exports=a("document","documentElement")},"1c0b":function(o,r){o.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"1c7e":function(o,r,i){var a=i("b622"),u=a("iterator"),c=!1;try{var d=0,h={next:function(){return{done:!!d++}},return:function(){c=!0}};h[u]=function(){return this},Array.from(h,function(){throw 2})}catch{}o.exports=function(f,m){if(!m&&!c)return!1;var p=!1;try{var _={};_[u]=function(){return{next:function(){return{done:p=!0}}}},f(_)}catch{}return p}},"1d80":function(o,r){o.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"1dde":function(o,r,i){var a=i("d039"),u=i("b622"),c=i("2d00"),d=u("species");o.exports=function(h){return c>=51||!a(function(){var f=[],m=f.constructor={};return m[d]=function(){return{foo:1}},f[h](Boolean).foo!==1})}},"23cb":function(o,r,i){var a=i("a691"),u=Math.max,c=Math.min;o.exports=function(d,h){var f=a(d);return f<0?u(f+h,0):c(f,h)}},"23e7":function(o,r,i){var a=i("da84"),u=i("06cf").f,c=i("9112"),d=i("6eeb"),h=i("ce4e"),f=i("e893"),m=i("94ca");o.exports=function(p,_){var g=p.target,y=p.global,b=p.stat,k,S,E,$,I,j;if(y?S=a:b?S=a[g]||h(g,{}):S=(a[g]||{}).prototype,S)for(E in _){if(I=_[E],p.noTargetGet?(j=u(S,E),$=j&&j.value):$=S[E],k=m(y?E:g+(b?".":"#")+E,p.forced),!k&&$!==void 0){if(typeof I==typeof $)continue;f(I,$)}(p.sham||$&&$.sham)&&c(I,"sham",!0),d(S,E,I,p)}}},"241c":function(o,r,i){var a=i("ca84"),u=i("7839"),c=u.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(h){return a(h,c)}},"25f0":function(o,r,i){var a=i("6eeb"),u=i("825a"),c=i("d039"),d=i("ad6d"),h="toString",f=RegExp.prototype,m=f[h],p=c(function(){return m.call({source:"a",flags:"b"})!="/a/b"}),_=m.name!=h;(p||_)&&a(RegExp.prototype,h,function(){var y=u(this),b=String(y.source),k=y.flags,S=String(k===void 0&&y instanceof RegExp&&!("flags"in f)?d.call(y):k);return"/"+b+"/"+S},{unsafe:!0})},"2ca0":function(o,r,i){var a=i("23e7"),u=i("06cf").f,c=i("50c4"),d=i("5a34"),h=i("1d80"),f=i("ab13"),m=i("c430"),p="".startsWith,_=Math.min,g=f("startsWith"),y=!m&&!g&&!!function(){var b=u(String.prototype,"startsWith");return b&&!b.writable}();a({target:"String",proto:!0,forced:!y&&!g},{startsWith:function(k){var S=String(h(this));d(k);var E=c(_(arguments.length>1?arguments[1]:void 0,S.length)),$=String(k);return p?p.call(S,$,E):S.slice(E,E+$.length)===$}})},"2d00":function(o,r,i){var a=i("da84"),u=i("342f"),c=a.process,d=c&&c.versions,h=d&&d.v8,f,m;h?(f=h.split("."),m=f[0]+f[1]):u&&(f=u.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=u.match(/Chrome\/(\d+)/),f&&(m=f[1]))),o.exports=m&&+m},"342f":function(o,r,i){var a=i("d066");o.exports=a("navigator","userAgent")||""},"35a1":function(o,r,i){var a=i("f5df"),u=i("3f8c"),c=i("b622"),d=c("iterator");o.exports=function(h){if(h!=null)return h[d]||h["@@iterator"]||u[a(h)]}},"37e8":function(o,r,i){var a=i("83ab"),u=i("9bf2"),c=i("825a"),d=i("df75");o.exports=a?Object.defineProperties:function(f,m){c(f);for(var p=d(m),_=p.length,g=0,y;_>g;)u.f(f,y=p[g++],m[y]);return f}},"3bbe":function(o,r,i){var a=i("861d");o.exports=function(u){if(!a(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},"3ca3":function(o,r,i){var a=i("6547").charAt,u=i("69f3"),c=i("7dd0"),d="String Iterator",h=u.set,f=u.getterFor(d);c(String,"String",function(m){h(this,{type:d,string:String(m),index:0})},function(){var p=f(this),_=p.string,g=p.index,y;return g>=_.length?{value:void 0,done:!0}:(y=a(_,g),p.index+=y.length,{value:y,done:!1})})},"3f8c":function(o,r){o.exports={}},"4160":function(o,r,i){var a=i("23e7"),u=i("17c2");a({target:"Array",proto:!0,forced:[].forEach!=u},{forEach:u})},"428f":function(o,r,i){var a=i("da84");o.exports=a},"44ad":function(o,r,i){var a=i("d039"),u=i("c6b6"),c="".split;o.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return u(d)=="String"?c.call(d,""):Object(d)}:Object},"44d2":function(o,r,i){var a=i("b622"),u=i("7c73"),c=i("9bf2"),d=a("unscopables"),h=Array.prototype;h[d]==null&&c.f(h,d,{configurable:!0,value:u(null)}),o.exports=function(f){h[d][f]=!0}},"44e7":function(o,r,i){var a=i("861d"),u=i("c6b6"),c=i("b622"),d=c("match");o.exports=function(h){var f;return a(h)&&((f=h[d])!==void 0?!!f:u(h)=="RegExp")}},"4930":function(o,r,i){var a=i("d039");o.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(o,r,i){var a=i("fc6a"),u=i("50c4"),c=i("23cb"),d=function(h){return function(f,m,p){var _=a(f),g=u(_.length),y=c(p,g),b;if(h&&m!=m){for(;g>y;)if(b=_[y++],b!=b)return!0}else for(;g>y;y++)if((h||y in _)&&_[y]===m)return h||y||0;return!h&&-1}};o.exports={includes:d(!0),indexOf:d(!1)}},"4de4":function(o,r,i){var a=i("23e7"),u=i("b727").filter,c=i("1dde"),d=i("ae40"),h=c("filter"),f=d("filter");a({target:"Array",proto:!0,forced:!h||!f},{filter:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(o,r,i){var a=i("0366"),u=i("7b0b"),c=i("9bdd"),d=i("e95a"),h=i("50c4"),f=i("8418"),m=i("35a1");o.exports=function(_){var g=u(_),y=typeof this=="function"?this:Array,b=arguments.length,k=b>1?arguments[1]:void 0,S=k!==void 0,E=m(g),$=0,I,j,O,L,z,D;if(S&&(k=a(k,b>2?arguments[2]:void 0,2)),E!=null&&!(y==Array&&d(E)))for(L=E.call(g),z=L.next,j=new y;!(O=z.call(L)).done;$++)D=S?c(L,k,[O.value,$],!0):O.value,f(j,$,D);else for(I=h(g.length),j=new y(I);I>$;$++)D=S?k(g[$],$):g[$],f(j,$,D);return j.length=$,j}},"4fad":function(o,r,i){var a=i("23e7"),u=i("6f53").entries;a({target:"Object",stat:!0},{entries:function(d){return u(d)}})},"50c4":function(o,r,i){var a=i("a691"),u=Math.min;o.exports=function(c){return c>0?u(a(c),9007199254740991):0}},"5135":function(o,r){var i={}.hasOwnProperty;o.exports=function(a,u){return i.call(a,u)}},"5319":function(o,r,i){var a=i("d784"),u=i("825a"),c=i("7b0b"),d=i("50c4"),h=i("a691"),f=i("1d80"),m=i("8aa5"),p=i("14c3"),_=Math.max,g=Math.min,y=Math.floor,b=/\$([$&'`]|\d\d?|<[^>]*>)/g,k=/\$([$&'`]|\d\d?)/g,S=function(E){return E===void 0?E:String(E)};a("replace",2,function(E,$,I,j){var O=j.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,L=j.REPLACE_KEEPS_$0,z=O?"$":"$0";return[function(W,ue){var te=f(this),ae=W==null?void 0:W[E];return ae!==void 0?ae.call(W,te,ue):$.call(String(te),W,ue)},function(U,W){if(!O&&L||typeof W=="string"&&W.indexOf(z)===-1){var ue=I($,U,this,W);if(ue.done)return ue.value}var te=u(U),ae=String(this),ve=typeof W=="function";ve||(W=String(W));var Me=te.global;if(Me){var Ge=te.unicode;te.lastIndex=0}for(var me=[];;){var Z=p(te,ae);if(Z===null||(me.push(Z),!Me))break;var ce=String(Z[0]);ce===""&&(te.lastIndex=m(ae,d(te.lastIndex),Ge))}for(var we="",V=0,re=0;re<me.length;re++){Z=me[re];for(var se=String(Z[0]),be=_(g(h(Z.index),ae.length),0),He=[],Re=1;Re<Z.length;Re++)He.push(S(Z[Re]));var Oe=Z.groups;if(ve){var De=[se].concat(He,be,ae);Oe!==void 0&&De.push(Oe);var C=String(W.apply(void 0,De))}else C=D(se,ae,be,He,Oe,W);be>=V&&(we+=ae.slice(V,be)+C,V=be+se.length)}return we+ae.slice(V)}];function D(U,W,ue,te,ae,ve){var Me=ue+U.length,Ge=te.length,me=k;return ae!==void 0&&(ae=c(ae),me=b),$.call(ve,me,function(Z,ce){var we;switch(ce.charAt(0)){case"$":return"$";case"&":return U;case"`":return W.slice(0,ue);case"'":return W.slice(Me);case"<":we=ae[ce.slice(1,-1)];break;default:var V=+ce;if(V===0)return Z;if(V>Ge){var re=y(V/10);return re===0?Z:re<=Ge?te[re-1]===void 0?ce.charAt(1):te[re-1]+ce.charAt(1):Z}we=te[V-1]}return we===void 0?"":we})}})},"5692":function(o,r,i){var a=i("c430"),u=i("c6cd");(o.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(o,r,i){var a=i("d066"),u=i("241c"),c=i("7418"),d=i("825a");o.exports=a("Reflect","ownKeys")||function(f){var m=u.f(d(f)),p=c.f;return p?m.concat(p(f)):m}},"5a34":function(o,r,i){var a=i("44e7");o.exports=function(u){if(a(u))throw TypeError("The method doesn't accept regular expressions");return u}},"5c6c":function(o,r){o.exports=function(i,a){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:a}}},"5db7":function(o,r,i){var a=i("23e7"),u=i("a2bf"),c=i("7b0b"),d=i("50c4"),h=i("1c0b"),f=i("65f0");a({target:"Array",proto:!0},{flatMap:function(p){var _=c(this),g=d(_.length),y;return h(p),y=f(_,0),y.length=u(y,_,_,g,0,1,p,arguments.length>1?arguments[1]:void 0),y}})},"6547":function(o,r,i){var a=i("a691"),u=i("1d80"),c=function(d){return function(h,f){var m=String(u(h)),p=a(f),_=m.length,g,y;return p<0||p>=_?d?"":void 0:(g=m.charCodeAt(p),g<55296||g>56319||p+1===_||(y=m.charCodeAt(p+1))<56320||y>57343?d?m.charAt(p):g:d?m.slice(p,p+2):(g-55296<<10)+(y-56320)+65536)}};o.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(o,r,i){var a=i("861d"),u=i("e8b5"),c=i("b622"),d=c("species");o.exports=function(h,f){var m;return u(h)&&(m=h.constructor,typeof m=="function"&&(m===Array||u(m.prototype))?m=void 0:a(m)&&(m=m[d],m===null&&(m=void 0))),new(m===void 0?Array:m)(f===0?0:f)}},"69f3":function(o,r,i){var a=i("7f9a"),u=i("da84"),c=i("861d"),d=i("9112"),h=i("5135"),f=i("f772"),m=i("d012"),p=u.WeakMap,_,g,y,b=function(O){return y(O)?g(O):_(O,{})},k=function(O){return function(L){var z;if(!c(L)||(z=g(L)).type!==O)throw TypeError("Incompatible receiver, "+O+" required");return z}};if(a){var S=new p,E=S.get,$=S.has,I=S.set;_=function(O,L){return I.call(S,O,L),L},g=function(O){return E.call(S,O)||{}},y=function(O){return $.call(S,O)}}else{var j=f("state");m[j]=!0,_=function(O,L){return d(O,j,L),L},g=function(O){return h(O,j)?O[j]:{}},y=function(O){return h(O,j)}}o.exports={set:_,get:g,has:y,enforce:b,getterFor:k}},"6eeb":function(o,r,i){var a=i("da84"),u=i("9112"),c=i("5135"),d=i("ce4e"),h=i("8925"),f=i("69f3"),m=f.get,p=f.enforce,_=String(String).split("String");(o.exports=function(g,y,b,k){var S=k?!!k.unsafe:!1,E=k?!!k.enumerable:!1,$=k?!!k.noTargetGet:!1;if(typeof b=="function"&&(typeof y=="string"&&!c(b,"name")&&u(b,"name",y),p(b).source=_.join(typeof y=="string"?y:"")),g===a){E?g[y]=b:d(y,b);return}else S?!$&&g[y]&&(E=!0):delete g[y];E?g[y]=b:u(g,y,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&m(this).source||h(this)})},"6f53":function(o,r,i){var a=i("83ab"),u=i("df75"),c=i("fc6a"),d=i("d1e7").f,h=function(f){return function(m){for(var p=c(m),_=u(p),g=_.length,y=0,b=[],k;g>y;)k=_[y++],(!a||d.call(p,k))&&b.push(f?[k,p[k]]:p[k]);return b}};o.exports={entries:h(!0),values:h(!1)}},"73d9":function(o,r,i){var a=i("44d2");a("flatMap")},"7418":function(o,r){r.f=Object.getOwnPropertySymbols},"746f":function(o,r,i){var a=i("428f"),u=i("5135"),c=i("e538"),d=i("9bf2").f;o.exports=function(h){var f=a.Symbol||(a.Symbol={});u(f,h)||d(f,h,{value:c.f(h)})}},"7839":function(o,r){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(o,r,i){var a=i("1d80");o.exports=function(u){return Object(a(u))}},"7c73":function(o,r,i){var a=i("825a"),u=i("37e8"),c=i("7839"),d=i("d012"),h=i("1be4"),f=i("cc12"),m=i("f772"),p=">",_="<",g="prototype",y="script",b=m("IE_PROTO"),k=function(){},S=function(O){return _+y+p+O+_+"/"+y+p},E=function(O){O.write(S("")),O.close();var L=O.parentWindow.Object;return O=null,L},$=function(){var O=f("iframe"),L="java"+y+":",z;return O.style.display="none",h.appendChild(O),O.src=String(L),z=O.contentWindow.document,z.open(),z.write(S("document.F=Object")),z.close(),z.F},I,j=function(){try{I=document.domain&&new ActiveXObject("htmlfile")}catch{}j=I?E(I):$();for(var O=c.length;O--;)delete j[g][c[O]];return j()};d[b]=!0,o.exports=Object.create||function(L,z){var D;return L!==null?(k[g]=a(L),D=new k,k[g]=null,D[b]=L):D=j(),z===void 0?D:u(D,z)}},"7dd0":function(o,r,i){var a=i("23e7"),u=i("9ed3"),c=i("e163"),d=i("d2bb"),h=i("d44e"),f=i("9112"),m=i("6eeb"),p=i("b622"),_=i("c430"),g=i("3f8c"),y=i("ae93"),b=y.IteratorPrototype,k=y.BUGGY_SAFARI_ITERATORS,S=p("iterator"),E="keys",$="values",I="entries",j=function(){return this};o.exports=function(O,L,z,D,U,W,ue){u(z,L,D);var te=function(re){if(re===U&&me)return me;if(!k&&re in Me)return Me[re];switch(re){case E:return function(){return new z(this,re)};case $:return function(){return new z(this,re)};case I:return function(){return new z(this,re)}}return function(){return new z(this)}},ae=L+" Iterator",ve=!1,Me=O.prototype,Ge=Me[S]||Me["@@iterator"]||U&&Me[U],me=!k&&Ge||te(U),Z=L=="Array"&&Me.entries||Ge,ce,we,V;if(Z&&(ce=c(Z.call(new O)),b!==Object.prototype&&ce.next&&(!_&&c(ce)!==b&&(d?d(ce,b):typeof ce[S]!="function"&&f(ce,S,j)),h(ce,ae,!0,!0),_&&(g[ae]=j))),U==$&&Ge&&Ge.name!==$&&(ve=!0,me=function(){return Ge.call(this)}),(!_||ue)&&Me[S]!==me&&f(Me,S,me),g[L]=me,U)if(we={values:te($),keys:W?me:te(E),entries:te(I)},ue)for(V in we)(k||ve||!(V in Me))&&m(Me,V,we[V]);else a({target:L,proto:!0,forced:k||ve},we);return we}},"7f9a":function(o,r,i){var a=i("da84"),u=i("8925"),c=a.WeakMap;o.exports=typeof c=="function"&&/native code/.test(u(c))},"825a":function(o,r,i){var a=i("861d");o.exports=function(u){if(!a(u))throw TypeError(String(u)+" is not an object");return u}},"83ab":function(o,r,i){var a=i("d039");o.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"8418":function(o,r,i){var a=i("c04e"),u=i("9bf2"),c=i("5c6c");o.exports=function(d,h,f){var m=a(h);m in d?u.f(d,m,c(0,f)):d[m]=f}},"861d":function(o,r){o.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},"8875":function(o,r,i){var a,u,c;(function(d,h){u=[],a=h,c=typeof a=="function"?a.apply(r,u):a,c!==void 0&&(o.exports=c)})(typeof self!="undefined"?self:this,function(){function d(){var h=Object.getOwnPropertyDescriptor(document,"currentScript");if(!h&&"currentScript"in document&&document.currentScript||h&&h.get!==d&&document.currentScript)return document.currentScript;try{throw new Error}catch(I){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,m=/@([^@]*):(\d+):(\d+)\s*$/ig,p=f.exec(I.stack)||m.exec(I.stack),_=p&&p[1]||!1,g=p&&p[2]||!1,y=document.location.href.replace(document.location.hash,""),b,k,S,E=document.getElementsByTagName("script");_===y&&(b=document.documentElement.outerHTML,k=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),S=b.replace(k,"$1").trim());for(var $=0;$<E.length;$++)if(E[$].readyState==="interactive"||E[$].src===_||_===y&&E[$].innerHTML&&E[$].innerHTML.trim()===S)return E[$];return null}}return d})},"8925":function(o,r,i){var a=i("c6cd"),u=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(c){return u.call(c)}),o.exports=a.inspectSource},"8aa5":function(o,r,i){var a=i("6547").charAt;o.exports=function(u,c,d){return c+(d?a(u,c).length:1)}},"8bbf":function(o,r){o.exports=s},"90e3":function(o,r){var i=0,a=Math.random();o.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++i+a).toString(36)}},"9112":function(o,r,i){var a=i("83ab"),u=i("9bf2"),c=i("5c6c");o.exports=a?function(d,h,f){return u.f(d,h,c(1,f))}:function(d,h,f){return d[h]=f,d}},"9263":function(o,r,i){var a=i("ad6d"),u=i("9f7f"),c=RegExp.prototype.exec,d=String.prototype.replace,h=c,f=function(){var g=/a/,y=/b*/g;return c.call(g,"a"),c.call(y,"a"),g.lastIndex!==0||y.lastIndex!==0}(),m=u.UNSUPPORTED_Y||u.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,_=f||p||m;_&&(h=function(y){var b=this,k,S,E,$,I=m&&b.sticky,j=a.call(b),O=b.source,L=0,z=y;return I&&(j=j.replace("y",""),j.indexOf("g")===-1&&(j+="g"),z=String(y).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&y[b.lastIndex-1]!==`
|
|
`)&&(O="(?: "+O+")",z=" "+z,L++),S=new RegExp("^(?:"+O+")",j)),p&&(S=new RegExp("^"+O+"$(?!\\s)",j)),f&&(k=b.lastIndex),E=c.call(I?S:b,z),I?E?(E.input=E.input.slice(L),E[0]=E[0].slice(L),E.index=b.lastIndex,b.lastIndex+=E[0].length):b.lastIndex=0:f&&E&&(b.lastIndex=b.global?E.index+E[0].length:k),p&&E&&E.length>1&&d.call(E[0],S,function(){for($=1;$<arguments.length-2;$++)arguments[$]===void 0&&(E[$]=void 0)}),E}),o.exports=h},"94ca":function(o,r,i){var a=i("d039"),u=/#|\.prototype\./,c=function(p,_){var g=h[d(p)];return g==m?!0:g==f?!1:typeof _=="function"?a(_):!!_},d=c.normalize=function(p){return String(p).replace(u,".").toLowerCase()},h=c.data={},f=c.NATIVE="N",m=c.POLYFILL="P";o.exports=c},"99af":function(o,r,i){var a=i("23e7"),u=i("d039"),c=i("e8b5"),d=i("861d"),h=i("7b0b"),f=i("50c4"),m=i("8418"),p=i("65f0"),_=i("1dde"),g=i("b622"),y=i("2d00"),b=g("isConcatSpreadable"),k=9007199254740991,S="Maximum allowed index exceeded",E=y>=51||!u(function(){var O=[];return O[b]=!1,O.concat()[0]!==O}),$=_("concat"),I=function(O){if(!d(O))return!1;var L=O[b];return L!==void 0?!!L:c(O)},j=!E||!$;a({target:"Array",proto:!0,forced:j},{concat:function(L){var z=h(this),D=p(z,0),U=0,W,ue,te,ae,ve;for(W=-1,te=arguments.length;W<te;W++)if(ve=W===-1?z:arguments[W],I(ve)){if(ae=f(ve.length),U+ae>k)throw TypeError(S);for(ue=0;ue<ae;ue++,U++)ue in ve&&m(D,U,ve[ue])}else{if(U>=k)throw TypeError(S);m(D,U++,ve)}return D.length=U,D}})},"9bdd":function(o,r,i){var a=i("825a");o.exports=function(u,c,d,h){try{return h?c(a(d)[0],d[1]):c(d)}catch(m){var f=u.return;throw f!==void 0&&a(f.call(u)),m}}},"9bf2":function(o,r,i){var a=i("83ab"),u=i("0cfb"),c=i("825a"),d=i("c04e"),h=Object.defineProperty;r.f=a?h:function(m,p,_){if(c(m),p=d(p,!0),c(_),u)try{return h(m,p,_)}catch{}if("get"in _||"set"in _)throw TypeError("Accessors not supported");return"value"in _&&(m[p]=_.value),m}},"9ed3":function(o,r,i){var a=i("ae93").IteratorPrototype,u=i("7c73"),c=i("5c6c"),d=i("d44e"),h=i("3f8c"),f=function(){return this};o.exports=function(m,p,_){var g=p+" Iterator";return m.prototype=u(a,{next:c(1,_)}),d(m,g,!1,!0),h[g]=f,m}},"9f7f":function(o,r,i){var a=i("d039");function u(c,d){return RegExp(c,d)}r.UNSUPPORTED_Y=a(function(){var c=u("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),r.BROKEN_CARET=a(function(){var c=u("^r","gy");return c.lastIndex=2,c.exec("str")!=null})},a2bf:function(o,r,i){var a=i("e8b5"),u=i("50c4"),c=i("0366"),d=function(h,f,m,p,_,g,y,b){for(var k=_,S=0,E=y?c(y,b,3):!1,$;S<p;){if(S in m){if($=E?E(m[S],S,f):m[S],g>0&&a($))k=d(h,f,$,u($.length),k,g-1)-1;else{if(k>=9007199254740991)throw TypeError("Exceed the acceptable array length");h[k]=$}k++}S++}return k};o.exports=d},a352:function(o,r){o.exports=n},a434:function(o,r,i){var a=i("23e7"),u=i("23cb"),c=i("a691"),d=i("50c4"),h=i("7b0b"),f=i("65f0"),m=i("8418"),p=i("1dde"),_=i("ae40"),g=p("splice"),y=_("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,k=Math.min,S=9007199254740991,E="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!g||!y},{splice:function(I,j){var O=h(this),L=d(O.length),z=u(I,L),D=arguments.length,U,W,ue,te,ae,ve;if(D===0?U=W=0:D===1?(U=0,W=L-z):(U=D-2,W=k(b(c(j),0),L-z)),L+U-W>S)throw TypeError(E);for(ue=f(O,W),te=0;te<W;te++)ae=z+te,ae in O&&m(ue,te,O[ae]);if(ue.length=W,U<W){for(te=z;te<L-W;te++)ae=te+W,ve=te+U,ae in O?O[ve]=O[ae]:delete O[ve];for(te=L;te>L-W+U;te--)delete O[te-1]}else if(U>W)for(te=L-W;te>z;te--)ae=te+W-1,ve=te+U-1,ae in O?O[ve]=O[ae]:delete O[ve];for(te=0;te<U;te++)O[te+z]=arguments[te+2];return O.length=L-W+U,ue}})},a4d3:function(o,r,i){var a=i("23e7"),u=i("da84"),c=i("d066"),d=i("c430"),h=i("83ab"),f=i("4930"),m=i("fdbf"),p=i("d039"),_=i("5135"),g=i("e8b5"),y=i("861d"),b=i("825a"),k=i("7b0b"),S=i("fc6a"),E=i("c04e"),$=i("5c6c"),I=i("7c73"),j=i("df75"),O=i("241c"),L=i("057f"),z=i("7418"),D=i("06cf"),U=i("9bf2"),W=i("d1e7"),ue=i("9112"),te=i("6eeb"),ae=i("5692"),ve=i("f772"),Me=i("d012"),Ge=i("90e3"),me=i("b622"),Z=i("e538"),ce=i("746f"),we=i("d44e"),V=i("69f3"),re=i("b727").forEach,se=ve("hidden"),be="Symbol",He="prototype",Re=me("toPrimitive"),Oe=V.set,De=V.getterFor(be),C=Object[He],N=u.Symbol,K=c("JSON","stringify"),oe=D.f,le=U.f,ye=L.f,ke=W.f,he=ae("symbols"),pe=ae("op-symbols"),fe=ae("string-to-symbol-registry"),je=ae("symbol-to-string-registry"),Ce=ae("wks"),Ne=u.QObject,qe=!Ne||!Ne[He]||!Ne[He].findChild,Ze=h&&p(function(){return I(le({},"a",{get:function(){return le(this,"a",{value:7}).a}})).a!=7})?function(ie,X,ne){var Be=oe(C,X);Be&&delete C[X],le(ie,X,ne),Be&&ie!==C&&le(C,X,Be)}:le,nt=function(ie,X){var ne=he[ie]=I(N[He]);return Oe(ne,{type:be,tag:ie,description:X}),h||(ne.description=X),ne},w=m?function(ie){return typeof ie=="symbol"}:function(ie){return Object(ie)instanceof N},v=function(X,ne,Be){X===C&&v(pe,ne,Be),b(X);var Ve=E(ne,!0);return b(Be),_(he,Ve)?(Be.enumerable?(_(X,se)&&X[se][Ve]&&(X[se][Ve]=!1),Be=I(Be,{enumerable:$(0,!1)})):(_(X,se)||le(X,se,$(1,{})),X[se][Ve]=!0),Ze(X,Ve,Be)):le(X,Ve,Be)},F=function(X,ne){b(X);var Be=S(ne),Ve=j(Be).concat(Ie(Be));return re(Ve,function(ut){(!h||J.call(Be,ut))&&v(X,ut,Be[ut])}),X},q=function(X,ne){return ne===void 0?I(X):F(I(X),ne)},J=function(X){var ne=E(X,!0),Be=ke.call(this,ne);return this===C&&_(he,ne)&&!_(pe,ne)?!1:Be||!_(this,ne)||!_(he,ne)||_(this,se)&&this[se][ne]?Be:!0},de=function(X,ne){var Be=S(X),Ve=E(ne,!0);if(!(Be===C&&_(he,Ve)&&!_(pe,Ve))){var ut=oe(Be,Ve);return ut&&_(he,Ve)&&!(_(Be,se)&&Be[se][Ve])&&(ut.enumerable=!0),ut}},Ee=function(X){var ne=ye(S(X)),Be=[];return re(ne,function(Ve){!_(he,Ve)&&!_(Me,Ve)&&Be.push(Ve)}),Be},Ie=function(X){var ne=X===C,Be=ye(ne?pe:S(X)),Ve=[];return re(Be,function(ut){_(he,ut)&&(!ne||_(C,ut))&&Ve.push(he[ut])}),Ve};if(f||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor");var X=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ne=Ge(X),Be=function(Ve){this===C&&Be.call(pe,Ve),_(this,se)&&_(this[se],ne)&&(this[se][ne]=!1),Ze(this,ne,$(1,Ve))};return h&&qe&&Ze(C,ne,{configurable:!0,set:Be}),nt(ne,X)},te(N[He],"toString",function(){return De(this).tag}),te(N,"withoutSetter",function(ie){return nt(Ge(ie),ie)}),W.f=J,U.f=v,D.f=de,O.f=L.f=Ee,z.f=Ie,Z.f=function(ie){return nt(me(ie),ie)},h&&(le(N[He],"description",{configurable:!0,get:function(){return De(this).description}}),d||te(C,"propertyIsEnumerable",J,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:N}),re(j(Ce),function(ie){ce(ie)}),a({target:be,stat:!0,forced:!f},{for:function(ie){var X=String(ie);if(_(fe,X))return fe[X];var ne=N(X);return fe[X]=ne,je[ne]=X,ne},keyFor:function(X){if(!w(X))throw TypeError(X+" is not a symbol");if(_(je,X))return je[X]},useSetter:function(){qe=!0},useSimple:function(){qe=!1}}),a({target:"Object",stat:!0,forced:!f,sham:!h},{create:q,defineProperty:v,defineProperties:F,getOwnPropertyDescriptor:de}),a({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:Ee,getOwnPropertySymbols:Ie}),a({target:"Object",stat:!0,forced:p(function(){z.f(1)})},{getOwnPropertySymbols:function(X){return z.f(k(X))}}),K){var ee=!f||p(function(){var ie=N();return K([ie])!="[null]"||K({a:ie})!="{}"||K(Object(ie))!="{}"});a({target:"JSON",stat:!0,forced:ee},{stringify:function(X,ne,Be){for(var Ve=[X],ut=1,as;arguments.length>ut;)Ve.push(arguments[ut++]);if(as=ne,!(!y(ne)&&X===void 0||w(X)))return g(ne)||(ne=function(Fs,Is){if(typeof as=="function"&&(Is=as.call(this,Fs,Is)),!w(Is))return Is}),Ve[1]=ne,K.apply(null,Ve)}})}N[He][Re]||ue(N[He],Re,N[He].valueOf),we(N,be),Me[se]=!0},a630:function(o,r,i){var a=i("23e7"),u=i("4df4"),c=i("1c7e"),d=!c(function(h){Array.from(h)});a({target:"Array",stat:!0,forced:d},{from:u})},a640:function(o,r,i){var a=i("d039");o.exports=function(u,c){var d=[][u];return!!d&&a(function(){d.call(null,c||function(){throw 1},1)})}},a691:function(o,r){var i=Math.ceil,a=Math.floor;o.exports=function(u){return isNaN(u=+u)?0:(u>0?a:i)(u)}},ab13:function(o,r,i){var a=i("b622"),u=a("match");o.exports=function(c){var d=/./;try{"/./"[c](d)}catch{try{return d[u]=!1,"/./"[c](d)}catch{}}return!1}},ac1f:function(o,r,i){var a=i("23e7"),u=i("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},ad6d:function(o,r,i){var a=i("825a");o.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(o,r,i){var a=i("83ab"),u=i("d039"),c=i("5135"),d=Object.defineProperty,h={},f=function(m){throw m};o.exports=function(m,p){if(c(h,m))return h[m];p||(p={});var _=[][m],g=c(p,"ACCESSORS")?p.ACCESSORS:!1,y=c(p,0)?p[0]:f,b=c(p,1)?p[1]:void 0;return h[m]=!!_&&!u(function(){if(g&&!a)return!0;var k={length:-1};g?d(k,1,{enumerable:!0,get:f}):k[1]=1,_.call(k,y,b)})}},ae93:function(o,r,i){var a=i("e163"),u=i("9112"),c=i("5135"),d=i("b622"),h=i("c430"),f=d("iterator"),m=!1,p=function(){return this},_,g,y;[].keys&&(y=[].keys(),"next"in y?(g=a(a(y)),g!==Object.prototype&&(_=g)):m=!0),_==null&&(_={}),!h&&!c(_,f)&&u(_,f,p),o.exports={IteratorPrototype:_,BUGGY_SAFARI_ITERATORS:m}},b041:function(o,r,i){var a=i("00ee"),u=i("f5df");o.exports=a?{}.toString:function(){return"[object "+u(this)+"]"}},b0c0:function(o,r,i){var a=i("83ab"),u=i("9bf2").f,c=Function.prototype,d=c.toString,h=/^\s*function ([^ (]*)/,f="name";a&&!(f in c)&&u(c,f,{configurable:!0,get:function(){try{return d.call(this).match(h)[1]}catch{return""}}})},b622:function(o,r,i){var a=i("da84"),u=i("5692"),c=i("5135"),d=i("90e3"),h=i("4930"),f=i("fdbf"),m=u("wks"),p=a.Symbol,_=f?p:p&&p.withoutSetter||d;o.exports=function(g){return c(m,g)||(h&&c(p,g)?m[g]=p[g]:m[g]=_("Symbol."+g)),m[g]}},b64b:function(o,r,i){var a=i("23e7"),u=i("7b0b"),c=i("df75"),d=i("d039"),h=d(function(){c(1)});a({target:"Object",stat:!0,forced:h},{keys:function(m){return c(u(m))}})},b727:function(o,r,i){var a=i("0366"),u=i("44ad"),c=i("7b0b"),d=i("50c4"),h=i("65f0"),f=[].push,m=function(p){var _=p==1,g=p==2,y=p==3,b=p==4,k=p==6,S=p==5||k;return function(E,$,I,j){for(var O=c(E),L=u(O),z=a($,I,3),D=d(L.length),U=0,W=j||h,ue=_?W(E,D):g?W(E,0):void 0,te,ae;D>U;U++)if((S||U in L)&&(te=L[U],ae=z(te,U,O),p)){if(_)ue[U]=ae;else if(ae)switch(p){case 3:return!0;case 5:return te;case 6:return U;case 2:f.call(ue,te)}else if(b)return!1}return k?-1:y||b?b:ue}};o.exports={forEach:m(0),map:m(1),filter:m(2),some:m(3),every:m(4),find:m(5),findIndex:m(6)}},c04e:function(o,r,i){var a=i("861d");o.exports=function(u,c){if(!a(u))return u;var d,h;if(c&&typeof(d=u.toString)=="function"&&!a(h=d.call(u))||typeof(d=u.valueOf)=="function"&&!a(h=d.call(u))||!c&&typeof(d=u.toString)=="function"&&!a(h=d.call(u)))return h;throw TypeError("Can't convert object to primitive value")}},c430:function(o,r){o.exports=!1},c6b6:function(o,r){var i={}.toString;o.exports=function(a){return i.call(a).slice(8,-1)}},c6cd:function(o,r,i){var a=i("da84"),u=i("ce4e"),c="__core-js_shared__",d=a[c]||u(c,{});o.exports=d},c740:function(o,r,i){var a=i("23e7"),u=i("b727").findIndex,c=i("44d2"),d=i("ae40"),h="findIndex",f=!0,m=d(h);h in[]&&Array(1)[h](function(){f=!1}),a({target:"Array",proto:!0,forced:f||!m},{findIndex:function(_){return u(this,_,arguments.length>1?arguments[1]:void 0)}}),c(h)},c8ba:function(o,r){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}o.exports=i},c975:function(o,r,i){var a=i("23e7"),u=i("4d64").indexOf,c=i("a640"),d=i("ae40"),h=[].indexOf,f=!!h&&1/[1].indexOf(1,-0)<0,m=c("indexOf"),p=d("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:f||!m||!p},{indexOf:function(g){return f?h.apply(this,arguments)||0:u(this,g,arguments.length>1?arguments[1]:void 0)}})},ca84:function(o,r,i){var a=i("5135"),u=i("fc6a"),c=i("4d64").indexOf,d=i("d012");o.exports=function(h,f){var m=u(h),p=0,_=[],g;for(g in m)!a(d,g)&&a(m,g)&&_.push(g);for(;f.length>p;)a(m,g=f[p++])&&(~c(_,g)||_.push(g));return _}},caad:function(o,r,i){var a=i("23e7"),u=i("4d64").includes,c=i("44d2"),d=i("ae40"),h=d("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!h},{includes:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}}),c("includes")},cc12:function(o,r,i){var a=i("da84"),u=i("861d"),c=a.document,d=u(c)&&u(c.createElement);o.exports=function(h){return d?c.createElement(h):{}}},ce4e:function(o,r,i){var a=i("da84"),u=i("9112");o.exports=function(c,d){try{u(a,c,d)}catch{a[c]=d}return d}},d012:function(o,r){o.exports={}},d039:function(o,r){o.exports=function(i){try{return!!i()}catch{return!0}}},d066:function(o,r,i){var a=i("428f"),u=i("da84"),c=function(d){return typeof d=="function"?d:void 0};o.exports=function(d,h){return arguments.length<2?c(a[d])||c(u[d]):a[d]&&a[d][h]||u[d]&&u[d][h]}},d1e7:function(o,r,i){var a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,c=u&&!a.call({1:2},1);r.f=c?function(h){var f=u(this,h);return!!f&&f.enumerable}:a},d28b:function(o,r,i){var a=i("746f");a("iterator")},d2bb:function(o,r,i){var a=i("825a"),u=i("3bbe");o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,d={},h;try{h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,h.call(d,[]),c=d instanceof Array}catch{}return function(m,p){return a(m),u(p),c?h.call(m,p):m.__proto__=p,m}}():void 0)},d3b7:function(o,r,i){var a=i("00ee"),u=i("6eeb"),c=i("b041");a||u(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(o,r,i){var a=i("9bf2").f,u=i("5135"),c=i("b622"),d=c("toStringTag");o.exports=function(h,f,m){h&&!u(h=m?h:h.prototype,d)&&a(h,d,{configurable:!0,value:f})}},d58f:function(o,r,i){var a=i("1c0b"),u=i("7b0b"),c=i("44ad"),d=i("50c4"),h=function(f){return function(m,p,_,g){a(p);var y=u(m),b=c(y),k=d(y.length),S=f?k-1:0,E=f?-1:1;if(_<2)for(;;){if(S in b){g=b[S],S+=E;break}if(S+=E,f?S<0:k<=S)throw TypeError("Reduce of empty array with no initial value")}for(;f?S>=0:k>S;S+=E)S in b&&(g=p(g,b[S],S,y));return g}};o.exports={left:h(!1),right:h(!0)}},d784:function(o,r,i){i("ac1f");var a=i("6eeb"),u=i("d039"),c=i("b622"),d=i("9263"),h=i("9112"),f=c("species"),m=!u(function(){var b=/./;return b.exec=function(){var k=[];return k.groups={a:"7"},k},"".replace(b,"$<a>")!=="7"}),p=function(){return"a".replace(/./,"$0")==="$0"}(),_=c("replace"),g=function(){return/./[_]?/./[_]("a","$0")==="":!1}(),y=!u(function(){var b=/(?:)/,k=b.exec;b.exec=function(){return k.apply(this,arguments)};var S="ab".split(b);return S.length!==2||S[0]!=="a"||S[1]!=="b"});o.exports=function(b,k,S,E){var $=c(b),I=!u(function(){var U={};return U[$]=function(){return 7},""[b](U)!=7}),j=I&&!u(function(){var U=!1,W=/a/;return b==="split"&&(W={},W.constructor={},W.constructor[f]=function(){return W},W.flags="",W[$]=/./[$]),W.exec=function(){return U=!0,null},W[$](""),!U});if(!I||!j||b==="replace"&&!(m&&p&&!g)||b==="split"&&!y){var O=/./[$],L=S($,""[b],function(U,W,ue,te,ae){return W.exec===d?I&&!ae?{done:!0,value:O.call(W,ue,te)}:{done:!0,value:U.call(ue,W,te)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:g}),z=L[0],D=L[1];a(String.prototype,b,z),a(RegExp.prototype,$,k==2?function(U,W){return D.call(U,this,W)}:function(U){return D.call(U,this)})}E&&h(RegExp.prototype[$],"sham",!0)}},d81d:function(o,r,i){var a=i("23e7"),u=i("b727").map,c=i("1dde"),d=i("ae40"),h=c("map"),f=d("map");a({target:"Array",proto:!0,forced:!h||!f},{map:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}})},da84:function(o,r,i){(function(a){var u=function(c){return c&&c.Math==Math&&c};o.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(o,r,i){var a=i("23e7"),u=i("83ab"),c=i("56ef"),d=i("fc6a"),h=i("06cf"),f=i("8418");a({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(p){for(var _=d(p),g=h.f,y=c(_),b={},k=0,S,E;y.length>k;)E=g(_,S=y[k++]),E!==void 0&&f(b,S,E);return b}})},dbf1:function(o,r,i){(function(a){i.d(r,"a",function(){return c});function u(){return typeof window!="undefined"?window.console:a.console}var c=u()}).call(this,i("c8ba"))},ddb0:function(o,r,i){var a=i("da84"),u=i("fdbc"),c=i("e260"),d=i("9112"),h=i("b622"),f=h("iterator"),m=h("toStringTag"),p=c.values;for(var _ in u){var g=a[_],y=g&&g.prototype;if(y){if(y[f]!==p)try{d(y,f,p)}catch{y[f]=p}if(y[m]||d(y,m,_),u[_]){for(var b in c)if(y[b]!==c[b])try{d(y,b,c[b])}catch{y[b]=c[b]}}}}},df75:function(o,r,i){var a=i("ca84"),u=i("7839");o.exports=Object.keys||function(d){return a(d,u)}},e01a:function(o,r,i){var a=i("23e7"),u=i("83ab"),c=i("da84"),d=i("5135"),h=i("861d"),f=i("9bf2").f,m=i("e893"),p=c.Symbol;if(u&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var _={},g=function(){var $=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof g?new p($):$===void 0?p():p($);return $===""&&(_[I]=!0),I};m(g,p);var y=g.prototype=p.prototype;y.constructor=g;var b=y.toString,k=String(p("test"))=="Symbol(test)",S=/^Symbol\((.*)\)[^)]+$/;f(y,"description",{configurable:!0,get:function(){var $=h(this)?this.valueOf():this,I=b.call($);if(d(_,$))return"";var j=k?I.slice(7,-1):I.replace(S,"$1");return j===""?void 0:j}}),a({global:!0,forced:!0},{Symbol:g})}},e163:function(o,r,i){var a=i("5135"),u=i("7b0b"),c=i("f772"),d=i("e177"),h=c("IE_PROTO"),f=Object.prototype;o.exports=d?Object.getPrototypeOf:function(m){return m=u(m),a(m,h)?m[h]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?f:null}},e177:function(o,r,i){var a=i("d039");o.exports=!a(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},e260:function(o,r,i){var a=i("fc6a"),u=i("44d2"),c=i("3f8c"),d=i("69f3"),h=i("7dd0"),f="Array Iterator",m=d.set,p=d.getterFor(f);o.exports=h(Array,"Array",function(_,g){m(this,{type:f,target:a(_),index:0,kind:g})},function(){var _=p(this),g=_.target,y=_.kind,b=_.index++;return!g||b>=g.length?(_.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:b,done:!1}:y=="values"?{value:g[b],done:!1}:{value:[b,g[b]],done:!1}},"values"),c.Arguments=c.Array,u("keys"),u("values"),u("entries")},e439:function(o,r,i){var a=i("23e7"),u=i("d039"),c=i("fc6a"),d=i("06cf").f,h=i("83ab"),f=u(function(){d(1)}),m=!h||f;a({target:"Object",stat:!0,forced:m,sham:!h},{getOwnPropertyDescriptor:function(_,g){return d(c(_),g)}})},e538:function(o,r,i){var a=i("b622");r.f=a},e893:function(o,r,i){var a=i("5135"),u=i("56ef"),c=i("06cf"),d=i("9bf2");o.exports=function(h,f){for(var m=u(f),p=d.f,_=c.f,g=0;g<m.length;g++){var y=m[g];a(h,y)||p(h,y,_(f,y))}}},e8b5:function(o,r,i){var a=i("c6b6");o.exports=Array.isArray||function(c){return a(c)=="Array"}},e95a:function(o,r,i){var a=i("b622"),u=i("3f8c"),c=a("iterator"),d=Array.prototype;o.exports=function(h){return h!==void 0&&(u.Array===h||d[c]===h)}},f5df:function(o,r,i){var a=i("00ee"),u=i("c6b6"),c=i("b622"),d=c("toStringTag"),h=u(function(){return arguments}())=="Arguments",f=function(m,p){try{return m[p]}catch{}};o.exports=a?u:function(m){var p,_,g;return m===void 0?"Undefined":m===null?"Null":typeof(_=f(p=Object(m),d))=="string"?_:h?u(p):(g=u(p))=="Object"&&typeof p.callee=="function"?"Arguments":g}},f772:function(o,r,i){var a=i("5692"),u=i("90e3"),c=a("keys");o.exports=function(d){return c[d]||(c[d]=u(d))}},fb15:function(o,r,i){if(i.r(r),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(w,v,F){return v in w?Object.defineProperty(w,v,{value:F,enumerable:!0,configurable:!0,writable:!0}):w[v]=F,w}function h(w,v){var F=Object.keys(w);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(w);v&&(q=q.filter(function(J){return Object.getOwnPropertyDescriptor(w,J).enumerable})),F.push.apply(F,q)}return F}function f(w){for(var v=1;v<arguments.length;v++){var F=arguments[v]!=null?arguments[v]:{};v%2?h(Object(F),!0).forEach(function(q){d(w,q,F[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(F)):h(Object(F)).forEach(function(q){Object.defineProperty(w,q,Object.getOwnPropertyDescriptor(F,q))})}return w}function m(w){if(Array.isArray(w))return w}i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");function p(w,v){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(w)))){var F=[],q=!0,J=!1,de=void 0;try{for(var Ee=w[Symbol.iterator](),Ie;!(q=(Ie=Ee.next()).done)&&(F.push(Ie.value),!(v&&F.length===v));q=!0);}catch(ee){J=!0,de=ee}finally{try{!q&&Ee.return!=null&&Ee.return()}finally{if(J)throw de}}return F}}i("a630"),i("fb6a"),i("b0c0"),i("25f0");function _(w,v){(v==null||v>w.length)&&(v=w.length);for(var F=0,q=new Array(v);F<v;F++)q[F]=w[F];return q}function g(w,v){if(!!w){if(typeof w=="string")return _(w,v);var F=Object.prototype.toString.call(w).slice(8,-1);if(F==="Object"&&w.constructor&&(F=w.constructor.name),F==="Map"||F==="Set")return Array.from(w);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return _(w,v)}}function y(){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 b(w,v){return m(w)||p(w,v)||g(w,v)||y()}function k(w){if(Array.isArray(w))return _(w)}function S(w){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(w))return Array.from(w)}function E(){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 $(w){return k(w)||S(w)||g(w)||E()}var I=i("a352"),j=i.n(I);function O(w){w.parentElement!==null&&w.parentElement.removeChild(w)}function L(w,v,F){var q=F===0?w.children[0]:w.children[F-1].nextSibling;w.insertBefore(v,q)}var z=i("dbf1");i("13d5"),i("4fad"),i("ac1f"),i("5319");function D(w){var v=Object.create(null);return function(q){var J=v[q];return J||(v[q]=w(q))}}var U=/-(\w)/g,W=D(function(w){return w.replace(U,function(v,F){return F.toUpperCase()})});i("5db7"),i("73d9");var ue=["Start","Add","Remove","Update","End"],te=["Choose","Unchoose","Sort","Filter","Clone"],ae=["Move"],ve=[ae,ue,te].flatMap(function(w){return w}).map(function(w){return"on".concat(w)}),Me={manage:ae,manageAndEmit:ue,emit:te};function Ge(w){return ve.indexOf(w)!==-1}i("caad"),i("2ca0");var me=["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 Z(w){return me.includes(w)}function ce(w){return["transition-group","TransitionGroup"].includes(w)}function we(w){return["id","class","role","style"].includes(w)||w.startsWith("data-")||w.startsWith("aria-")||w.startsWith("on")}function V(w){return w.reduce(function(v,F){var q=b(F,2),J=q[0],de=q[1];return v[J]=de,v},{})}function re(w){var v=w.$attrs,F=w.componentData,q=F===void 0?{}:F,J=V(Object.entries(v).filter(function(de){var Ee=b(de,2),Ie=Ee[0];return Ee[1],we(Ie)}));return f(f({},J),q)}function se(w){var v=w.$attrs,F=w.callBackBuilder,q=V(be(v));Object.entries(F).forEach(function(de){var Ee=b(de,2),Ie=Ee[0],ee=Ee[1];Me[Ie].forEach(function(ie){q["on".concat(ie)]=ee(ie)})});var J="[data-draggable]".concat(q.draggable||"");return f(f({},q),{},{draggable:J})}function be(w){return Object.entries(w).filter(function(v){var F=b(v,2),q=F[0];return F[1],!we(q)}).map(function(v){var F=b(v,2),q=F[0],J=F[1];return[W(q),J]}).filter(function(v){var F=b(v,2),q=F[0];return F[1],!Ge(q)})}i("c740");function He(w,v){if(!(w instanceof v))throw new TypeError("Cannot call a class as a function")}function Re(w,v){for(var F=0;F<v.length;F++){var q=v[F];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(w,q.key,q)}}function Oe(w,v,F){return v&&Re(w.prototype,v),F&&Re(w,F),w}var De=function(v){var F=v.el;return F},C=function(v,F){return v.__draggable_context=F},N=function(v){return v.__draggable_context},K=function(){function w(v){var F=v.nodes,q=F.header,J=F.default,de=F.footer,Ee=v.root,Ie=v.realList;He(this,w),this.defaultNodes=J,this.children=[].concat($(q),$(J),$(de)),this.externalComponent=Ee.externalComponent,this.rootTransition=Ee.transition,this.tag=Ee.tag,this.realList=Ie}return Oe(w,[{key:"render",value:function(F,q){var J=this.tag,de=this.children,Ee=this._isRootComponent,Ie=Ee?{default:function(){return de}}:de;return F(J,q,Ie)}},{key:"updated",value:function(){var F=this.defaultNodes,q=this.realList;F.forEach(function(J,de){C(De(J),{element:q[de],index:de})})}},{key:"getUnderlyingVm",value:function(F){return N(F)}},{key:"getVmIndexFromDomIndex",value:function(F,q){var J=this.defaultNodes,de=J.length,Ee=q.children,Ie=Ee.item(F);if(Ie===null)return de;var ee=N(Ie);if(ee)return ee.index;if(de===0)return 0;var ie=De(J[0]),X=$(Ee).findIndex(function(ne){return ne===ie});return F<X?0:de}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),w}(),oe=i("8bbf");function le(w,v){var F=w[v];return F?F():[]}function ye(w){var v=w.$slots,F=w.realList,q=w.getKey,J=F||[],de=["header","footer"].map(function(ne){return le(v,ne)}),Ee=b(de,2),Ie=Ee[0],ee=Ee[1],ie=v.item;if(!ie)throw new Error("draggable element must have an item slot");var X=J.flatMap(function(ne,Be){return ie({element:ne,index:Be}).map(function(Ve){return Ve.key=q(ne),Ve.props=f(f({},Ve.props||{}),{},{"data-draggable":!0}),Ve})});if(X.length!==J.length)throw new Error("Item slot must have only one child");return{header:Ie,footer:ee,default:X}}function ke(w){var v=ce(w),F=!Z(w)&&!v;return{transition:v,externalComponent:F,tag:F?Object(oe.resolveComponent)(w):v?oe.TransitionGroup:w}}function he(w){var v=w.$slots,F=w.tag,q=w.realList,J=w.getKey,de=ye({$slots:v,realList:q,getKey:J}),Ee=ke(F);return new K({nodes:de,root:Ee,realList:q})}function pe(w,v){var F=this;Object(oe.nextTick)(function(){return F.$emit(w.toLowerCase(),v)})}function fe(w){var v=this;return function(F,q){if(v.realList!==null)return v["onDrag".concat(w)](F,q)}}function je(w){var v=this,F=fe.call(this,w);return function(q,J){F.call(v,q,J),pe.call(v,w,q)}}var Ce=null,Ne={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(v){return v}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},qe=["update:modelValue","change"].concat($([].concat($(Me.manageAndEmit),$(Me.emit)).map(function(w){return w.toLowerCase()}))),Ze=Object(oe.defineComponent)({name:"draggable",inheritAttrs:!1,props:Ne,emits:qe,data:function(){return{error:!1}},render:function(){try{this.error=!1;var v=this.$slots,F=this.$attrs,q=this.tag,J=this.componentData,de=this.realList,Ee=this.getKey,Ie=he({$slots:v,tag:q,realList:de,getKey:Ee});this.componentStructure=Ie;var ee=re({$attrs:F,componentData:J});return Ie.render(oe.h,ee)}catch(ie){return this.error=!0,Object(oe.h)("pre",{style:{color:"red"}},ie.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 v=this;if(!this.error){var F=this.$attrs,q=this.$el,J=this.componentStructure;J.updated();var de=se({$attrs:F,callBackBuilder:{manageAndEmit:function(ee){return je.call(v,ee)},emit:function(ee){return pe.bind(v,ee)},manage:function(ee){return fe.call(v,ee)}}}),Ee=q.nodeType===1?q:q.parentElement;this._sortable=new j.a(Ee,de),this.targetDomElement=Ee,Ee.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var v=this.list;return v||this.modelValue},getKey:function(){var v=this.itemKey;return typeof v=="function"?v:function(F){return F[v]}}},watch:{$attrs:{handler:function(v){var F=this._sortable;!F||be(v).forEach(function(q){var J=b(q,2),de=J[0],Ee=J[1];F.option(de,Ee)})},deep:!0}},methods:{getUnderlyingVm:function(v){return this.componentStructure.getUnderlyingVm(v)||null},getUnderlyingPotencialDraggableComponent:function(v){return v.__draggable_component__},emitChanges:function(v){var F=this;Object(oe.nextTick)(function(){return F.$emit("change",v)})},alterList:function(v){if(this.list){v(this.list);return}var F=$(this.modelValue);v(F),this.$emit("update:modelValue",F)},spliceList:function(){var v=arguments,F=function(J){return J.splice.apply(J,$(v))};this.alterList(F)},updatePosition:function(v,F){var q=function(de){return de.splice(F,0,de.splice(v,1)[0])};this.alterList(q)},getRelatedContextFromMoveEvent:function(v){var F=v.to,q=v.related,J=this.getUnderlyingPotencialDraggableComponent(F);if(!J)return{component:J};var de=J.realList,Ee={list:de,component:J};if(F!==q&&de){var Ie=J.getUnderlyingVm(q)||{};return f(f({},Ie),Ee)}return Ee},getVmIndexFromDomIndex:function(v){return this.componentStructure.getVmIndexFromDomIndex(v,this.targetDomElement)},onDragStart:function(v){this.context=this.getUnderlyingVm(v.item),v.item._underlying_vm_=this.clone(this.context.element),Ce=v.item},onDragAdd:function(v){var F=v.item._underlying_vm_;if(F!==void 0){O(v.item);var q=this.getVmIndexFromDomIndex(v.newIndex);this.spliceList(q,0,F);var J={element:F,newIndex:q};this.emitChanges({added:J})}},onDragRemove:function(v){if(L(this.$el,v.item,v.oldIndex),v.pullMode==="clone"){O(v.clone);return}var F=this.context,q=F.index,J=F.element;this.spliceList(q,1);var de={element:J,oldIndex:q};this.emitChanges({removed:de})},onDragUpdate:function(v){O(v.item),L(v.from,v.item,v.oldIndex);var F=this.context.index,q=this.getVmIndexFromDomIndex(v.newIndex);this.updatePosition(F,q);var J={element:this.context.element,oldIndex:F,newIndex:q};this.emitChanges({moved:J})},computeFutureIndex:function(v,F){if(!v.element)return 0;var q=$(F.to.children).filter(function(Ie){return Ie.style.display!=="none"}),J=q.indexOf(F.related),de=v.component.getVmIndexFromDomIndex(J),Ee=q.indexOf(Ce)!==-1;return Ee||!F.willInsertAfter?de:de+1},onDragMove:function(v,F){var q=this.move,J=this.realList;if(!q||!J)return!0;var de=this.getRelatedContextFromMoveEvent(v),Ee=this.computeFutureIndex(de,v),Ie=f(f({},this.context),{},{futureIndex:Ee}),ee=f(f({},v),{},{relatedContext:de,draggedContext:Ie});return q(ee,F)},onDragEnd:function(){Ce=null}}}),nt=Ze;r.default=nt},fb6a:function(o,r,i){var a=i("23e7"),u=i("861d"),c=i("e8b5"),d=i("23cb"),h=i("50c4"),f=i("fc6a"),m=i("8418"),p=i("b622"),_=i("1dde"),g=i("ae40"),y=_("slice"),b=g("slice",{ACCESSORS:!0,0:0,1:2}),k=p("species"),S=[].slice,E=Math.max;a({target:"Array",proto:!0,forced:!y||!b},{slice:function(I,j){var O=f(this),L=h(O.length),z=d(I,L),D=d(j===void 0?L:j,L),U,W,ue;if(c(O)&&(U=O.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 S.call(O,z,D);for(W=new(U===void 0?Array:U)(E(D-z,0)),ue=0;z<D;z++,ue++)z in O&&m(W,ue,O[z]);return W.length=ue,W}})},fc6a:function(o,r,i){var a=i("44ad"),u=i("1d80");o.exports=function(c){return a(u(c))}},fdbc:function(o,r){o.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(o,r,i){var a=i("4930");o.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(gg);var t$=Q_(gg.exports);const s$={name:"PageQueue",components:{ContentWithHeading:ft,ListItemQueueItem:DS,draggable:t$,ModalDialogQueueItem:_g,ModalDialogAddUrlStream:YE,ModalDialogPlaylistSave:gC},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:function(){G.queue_clear()},update_show_next_items:function(e){this.$store.commit(B_,!this.show_only_next_items)},remove:function(e){G.queue_remove(e.id)},move_item:function(e){const t=this.show_only_next_items?e.oldIndex+this.current_position:e.oldIndex,s=this.queue_items[t],n=s.position+(e.newIndex-e.oldIndex);n!==t&&G.queue_move(s.id,n)},open_dialog:function(e){this.selected_item=e,this.show_details_modal=!0},open_add_stream_dialog:function(e){this.show_url_modal=!0},save_dialog:function(e){this.queue_items.length>0&&(this.show_pls_save_modal=!0)}}},n$={class:"heading"},r$=l("p",{class:"title is-4"},"Queue",-1),o$={class:"buttons is-centered"},i$=l("span",{class:"icon"},[l("i",{class:"mdi mdi-arrow-collapse-down"})],-1),a$=l("span",null,"Hide previous",-1),l$=[i$,a$],u$=l("span",{class:"icon"},[l("i",{class:"mdi mdi-web"})],-1),c$=l("span",null,"Add Stream",-1),d$=[u$,c$],f$=l("span",{class:"icon"},[l("i",{class:"mdi mdi-pencil"})],-1),h$=l("span",null,"Edit",-1),m$=[f$,h$],p$=l("span",{class:"icon"},[l("i",{class:"mdi mdi-delete-empty"})],-1),_$=l("span",null,"Clear",-1),g$=[p$,_$],v$=["disabled"],y$=l("span",{class:"icon"},[l("i",{class:"mdi mdi-content-save"})],-1),b$=l("span",null,"Save",-1),w$=[y$,b$],k$=["onClick"],x$=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),S$=[x$],E$=["onClick"],C$=l("span",{class:"icon has-text-grey"},[l("i",{class:"mdi mdi-delete mdi-18px"})],-1),$$=[C$];function O$(e,t,s,n,o,r){const i=B("list-item-queue-item"),a=B("draggable"),u=B("modal-dialog-queue-item"),c=B("modal-dialog-add-url-stream"),d=B("modal-dialog-playlist-save"),h=B("content-with-heading");return x(),xe(h,null,{"heading-left":T(()=>[l("p",n$,R(r.queue.count)+" tracks",1),r$]),"heading-right":T(()=>[l("div",o$,[l("a",{class:Le(["button is-small",{"is-info":r.show_only_next_items}]),onClick:t[0]||(t[0]=(...f)=>r.update_show_next_items&&r.update_show_next_items(...f))},l$,2),l("a",{class:"button is-small",onClick:t[1]||(t[1]=(...f)=>r.open_add_stream_dialog&&r.open_add_stream_dialog(...f))},d$),l("a",{class:Le(["button is-small",{"is-info":o.edit_mode}]),onClick:t[2]||(t[2]=f=>o.edit_mode=!o.edit_mode)},m$,2),l("a",{class:"button is-small",onClick:t[3]||(t[3]=(...f)=>r.queue_clear&&r.queue_clear(...f))},g$),r.is_queue_save_allowed?(x(),A("a",{key:0,class:"button is-small",disabled:r.queue_items.length===0,onClick:t[4]||(t[4]=(...f)=>r.save_dialog&&r.save_dialog(...f))},w$,8,v$)):Y("",!0)])]),content:T(()=>[P(a,{modelValue:r.queue_items,"onUpdate:modelValue":t[5]||(t[5]=f=>r.queue_items=f),handle:".handle","item-key":"id",onEnd:r.move_item},{item:T(({element:f,index:m})=>[P(i,{item:f,position:m,current_position:r.current_position,show_only_next_items:r.show_only_next_items,edit_mode:o.edit_mode},{actions:T(()=>[o.edit_mode?Y("",!0):(x(),A("a",{key:0,onClick:pt(p=>r.open_dialog(f),["prevent","stop"])},S$,8,k$)),f.id!==r.state.item_id&&o.edit_mode?(x(),A("a",{key:1,onClick:pt(p=>r.remove(f),["prevent","stop"])},$$,8,E$)):Y("",!0)]),_:2},1032,["item","position","current_position","show_only_next_items","edit_mode"])]),_:1},8,["modelValue","onEnd"]),P(u,{show:o.show_details_modal,item:o.selected_item,onClose:t[6]||(t[6]=f=>o.show_details_modal=!1)},null,8,["show","item"]),P(c,{show:o.show_url_modal,onClose:t[7]||(t[7]=f=>o.show_url_modal=!1)},null,8,["show"]),r.is_queue_save_allowed?(x(),xe(d,{key:0,show:o.show_pls_save_modal,onClose:t[8]||(t[8]=f=>o.show_pls_save_modal=!1)},null,8,["show"])):Y("",!0)]),_:1})}var T$=ge(s$,[["render",O$]]);function Tu(e){return[null,void 0,!1].indexOf(e)!==-1}function zh(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),s.push.apply(s,n)}return s}function Gh(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?zh(Object(s),!0).forEach(function(n){A$(e,n,s[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):zh(Object(s)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(s,n))})}return e}function A$(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function P$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Tg(e){var t={exports:{}};return e(t,t.exports),t.exports}function bc(e){return bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bc(e)}var Wh=Tg(function(e,t){e.exports=function(){var s=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function n(p){return p.split("").reverse().join("")}function o(p,_){return p.substring(0,_.length)===_}function r(p,_){return p.slice(-1*_.length)===_}function i(p,_,g){if((p[_]||p[g])&&p[_]===p[g])throw new Error(_)}function a(p){return typeof p=="number"&&isFinite(p)}function u(p,_){return p=p.toString().split("e"),(+((p=(p=Math.round(+(p[0]+"e"+(p[1]?+p[1]+_:_)))).toString().split("e"))[0]+"e"+(p[1]?+p[1]-_:-_))).toFixed(_)}function c(p,_,g,y,b,k,S,E,$,I,j,O){var L,z,D,U=O,W="",ue="";return k&&(O=k(O)),!!a(O)&&(p!==!1&&parseFloat(O.toFixed(p))===0&&(O=0),O<0&&(L=!0,O=Math.abs(O)),p!==!1&&(O=u(O,p)),(O=O.toString()).indexOf(".")!==-1?(D=(z=O.split("."))[0],g&&(W=g+z[1])):D=O,_&&(D=n(D).match(/.{1,3}/g),D=n(D.join(n(_)))),L&&E&&(ue+=E),y&&(ue+=y),L&&$&&(ue+=$),ue+=D,ue+=W,b&&(ue+=b),I&&(ue=I(ue,U)),ue)}function d(p,_,g,y,b,k,S,E,$,I,j,O){var L,z="";return j&&(O=j(O)),!(!O||typeof O!="string")&&(E&&o(O,E)&&(O=O.replace(E,""),L=!0),y&&o(O,y)&&(O=O.replace(y,"")),$&&o(O,$)&&(O=O.replace($,""),L=!0),b&&r(O,b)&&(O=O.slice(0,-1*b.length)),_&&(O=O.split(_).join("")),g&&(O=O.replace(g,".")),L&&(z+="-"),(z=(z+=O).replace(/[^0-9\.\-.]/g,""))!==""&&(z=Number(z),S&&(z=S(z)),!!a(z)&&z))}function h(p){var _,g,y,b={};for(p.suffix===void 0&&(p.suffix=p.postfix),_=0;_<s.length;_+=1)if((y=p[g=s[_]])===void 0)g!=="negative"||b.negativeBefore?g==="mark"&&b.thousand!=="."?b[g]=".":b[g]=!1:b[g]="-";else if(g==="decimals"){if(!(y>=0&&y<8))throw new Error(g);b[g]=y}else if(g==="encoder"||g==="decoder"||g==="edit"||g==="undo"){if(typeof y!="function")throw new Error(g);b[g]=y}else{if(typeof y!="string")throw new Error(g);b[g]=y}return i(b,"mark","thousand"),i(b,"prefix","negative"),i(b,"prefix","negativeBefore"),b}function f(p,_,g){var y,b=[];for(y=0;y<s.length;y+=1)b.push(p[s[y]]);return b.push(g),_.apply("",b)}function m(p){if(!(this instanceof m))return new m(p);bc(p)==="object"&&(p=h(p),this.to=function(_){return f(p,c,_)},this.from=function(_){return f(p,d,_)})}return m}()});function Kh(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),s.push.apply(s,n)}return s}function D$(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function F$(e,t,s){var n=Lo(e),o=n.format,r=n.step,i=s.value,a=s.classList,u=Wt(function(){return o&&o.value?typeof o.value=="function"?{to:o.value}:Wh(function(c){for(var d=1;d<arguments.length;d++){var h=arguments[d]!=null?arguments[d]:{};d%2?Kh(Object(h),!0).forEach(function(f){D$(c,f,h[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(h)):Kh(Object(h)).forEach(function(f){Object.defineProperty(c,f,Object.getOwnPropertyDescriptor(h,f))})}return c}({},o.value)):Wh({decimals:r.value>=0?0:2})});return{tooltipsFormat:Wt(function(){return Array.isArray(i.value)?i.value.map(function(c){return u.value}):u.value}),tooltipsMerge:function(c,d,h){var f=getComputedStyle(c).direction==="rtl",m=c.noUiSlider.options.direction==="rtl",p=c.noUiSlider.options.orientation==="vertical",_=c.noUiSlider.getTooltips(),g=c.noUiSlider.getOrigins();_.forEach(function(y,b){y&&g[b].appendChild(y)}),c.noUiSlider.on("update",function(y,b,k,S,E){var $=[[]],I=[[]],j=[[]],O=0;_[0]&&($[0][0]=0,I[0][0]=E[0],j[0][0]=u.value.to(parseFloat(y[0])));for(var L=1;L<y.length;L++)(!_[L]||y[L]-y[L-1]>d)&&($[++O]=[],j[O]=[],I[O]=[]),_[L]&&($[O].push(L),j[O].push(u.value.to(parseFloat(y[L]))),I[O].push(E[L]));$.forEach(function(z,D){for(var U=z.length,W=0;W<U;W++){var ue=z[W];if(W===U-1){var te=0;I[D].forEach(function(Ge){te+=1e3-Ge});var ae=p?"bottom":"right",ve=m?0:U-1,Me=1e3-I[D][ve];te=(f&&!p?100:0)+te/U-Me,_[ue].innerHTML=j[D].join(h),_[ue].style.display="block",_[ue].style[ae]=te+"%",a.value.tooltipHidden.split(" ").forEach(function(Ge){_[ue].classList.contains(Ge)&&_[ue].classList.remove(Ge)})}else _[ue].style.display="none",a.value.tooltipHidden.split(" ").forEach(function(Ge){_[ue].classList.add(Ge)})}})})}}}function Qo(e){return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(e)}var I$=P$(Tg(function(e,t){(function(s){function n(w){return o(w)&&typeof w.from=="function"}function o(w){return Qo(w)==="object"&&typeof w.to=="function"}function r(w){w.parentElement.removeChild(w)}function i(w){return w!=null}function a(w){w.preventDefault()}function u(w){return w.filter(function(v){return!this[v]&&(this[v]=!0)},{})}function c(w,v){return Math.round(w/v)*v}function d(w,v){var F=w.getBoundingClientRect(),q=w.ownerDocument,J=q.documentElement,de=k(q);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(de.x=0),v?F.top+de.y-J.clientTop:F.left+de.x-J.clientLeft}function h(w){return typeof w=="number"&&!isNaN(w)&&isFinite(w)}function f(w,v,F){F>0&&(g(w,v),setTimeout(function(){y(w,v)},F))}function m(w){return Math.max(Math.min(w,100),0)}function p(w){return Array.isArray(w)?w:[w]}function _(w){var v=(w=String(w)).split(".");return v.length>1?v[1].length:0}function g(w,v){w.classList&&!/\s/.test(v)?w.classList.add(v):w.className+=" "+v}function y(w,v){w.classList&&!/\s/.test(v)?w.classList.remove(v):w.className=w.className.replace(new RegExp("(^|\\b)"+v.split(" ").join("|")+"(\\b|$)","gi")," ")}function b(w,v){return w.classList?w.classList.contains(v):new RegExp("\\b"+v+"\\b").test(w.className)}function k(w){var v=window.pageXOffset!==void 0,F=(w.compatMode||"")==="CSS1Compat";return{x:v?window.pageXOffset:F?w.documentElement.scrollLeft:w.body.scrollLeft,y:v?window.pageYOffset:F?w.documentElement.scrollTop:w.body.scrollTop}}function S(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function E(){var w=!1;try{var v=Object.defineProperty({},"passive",{get:function(){w=!0}});window.addEventListener("test",null,v)}catch{}return w}function $(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function I(w,v){return 100/(v-w)}function j(w,v,F){return 100*v/(w[F+1]-w[F])}function O(w,v){return j(w,w[0]<0?v+Math.abs(w[0]):v-w[0],0)}function L(w,v){return v*(w[1]-w[0])/100+w[0]}function z(w,v){for(var F=1;w>=v[F];)F+=1;return F}function D(w,v,F){if(F>=w.slice(-1)[0])return 100;var q=z(F,w),J=w[q-1],de=w[q],Ee=v[q-1],Ie=v[q];return Ee+O([J,de],F)/I(Ee,Ie)}function U(w,v,F){if(F>=100)return w.slice(-1)[0];var q=z(F,v),J=w[q-1],de=w[q],Ee=v[q-1];return L([J,de],(F-Ee)*I(Ee,v[q]))}function W(w,v,F,q){if(q===100)return q;var J=z(q,w),de=w[J-1],Ee=w[J];return F?q-de>(Ee-de)/2?Ee:de:v[J-1]?w[J-1]+c(q-w[J-1],v[J-1]):q}var ue,te;s.PipsMode=void 0,(te=s.PipsMode||(s.PipsMode={})).Range="range",te.Steps="steps",te.Positions="positions",te.Count="count",te.Values="values",s.PipsType=void 0,(ue=s.PipsType||(s.PipsType={}))[ue.None=-1]="None",ue[ue.NoValue=0]="NoValue",ue[ue.LargeValue=1]="LargeValue",ue[ue.SmallValue=2]="SmallValue";var ae=function(){function w(v,F,q){var J;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[q||!1],this.xNumSteps=[!1],this.snap=F;var de=[];for(Object.keys(v).forEach(function(Ee){de.push([p(v[Ee]),Ee])}),de.sort(function(Ee,Ie){return Ee[0][0]-Ie[0][0]}),J=0;J<de.length;J++)this.handleEntryPoint(de[J][1],de[J][0]);for(this.xNumSteps=this.xSteps.slice(0),J=0;J<this.xNumSteps.length;J++)this.handleStepPoint(J,this.xNumSteps[J])}return w.prototype.getDistance=function(v){for(var F=[],q=0;q<this.xNumSteps.length-1;q++)F[q]=j(this.xVal,v,q);return F},w.prototype.getAbsoluteDistance=function(v,F,q){var J,de=0;if(v<this.xPct[this.xPct.length-1])for(;v>this.xPct[de+1];)de++;else v===this.xPct[this.xPct.length-1]&&(de=this.xPct.length-2);q||v!==this.xPct[de+1]||de++,F===null&&(F=[]);var Ee=1,Ie=F[de],ee=0,ie=0,X=0,ne=0;for(J=q?(v-this.xPct[de])/(this.xPct[de+1]-this.xPct[de]):(this.xPct[de+1]-v)/(this.xPct[de+1]-this.xPct[de]);Ie>0;)ee=this.xPct[de+1+ne]-this.xPct[de+ne],F[de+ne]*Ee+100-100*J>100?(ie=ee*J,Ee=(Ie-100*J)/F[de+ne],J=1):(ie=F[de+ne]*ee/100*Ee,Ee=0),q?(X-=ie,this.xPct.length+ne>=1&&ne--):(X+=ie,this.xPct.length-ne>=1&&ne++),Ie=F[de+ne]*Ee;return v+X},w.prototype.toStepping=function(v){return v=D(this.xVal,this.xPct,v)},w.prototype.fromStepping=function(v){return U(this.xVal,this.xPct,v)},w.prototype.getStep=function(v){return v=W(this.xPct,this.xSteps,this.snap,v)},w.prototype.getDefaultStep=function(v,F,q){var J=z(v,this.xPct);return(v===100||F&&v===this.xPct[J-1])&&(J=Math.max(J-1,1)),(this.xVal[J]-this.xVal[J-1])/q},w.prototype.getNearbySteps=function(v){var F=z(v,this.xPct);return{stepBefore:{startValue:this.xVal[F-2],step:this.xNumSteps[F-2],highestStep:this.xHighestCompleteStep[F-2]},thisStep:{startValue:this.xVal[F-1],step:this.xNumSteps[F-1],highestStep:this.xHighestCompleteStep[F-1]},stepAfter:{startValue:this.xVal[F],step:this.xNumSteps[F],highestStep:this.xHighestCompleteStep[F]}}},w.prototype.countStepDecimals=function(){var v=this.xNumSteps.map(_);return Math.max.apply(null,v)},w.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},w.prototype.convert=function(v){return this.getStep(this.toStepping(v))},w.prototype.handleEntryPoint=function(v,F){var q;if(!h(q=v==="min"?0:v==="max"?100:parseFloat(v))||!h(F[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(q),this.xVal.push(F[0]);var J=Number(F[1]);q?this.xSteps.push(!isNaN(J)&&J):isNaN(J)||(this.xSteps[0]=J),this.xHighestCompleteStep.push(0)},w.prototype.handleStepPoint=function(v,F){if(F)if(this.xVal[v]!==this.xVal[v+1]){this.xSteps[v]=j([this.xVal[v],this.xVal[v+1]],F,0)/I(this.xPct[v],this.xPct[v+1]);var q=(this.xVal[v+1]-this.xVal[v])/this.xNumSteps[v],J=Math.ceil(Number(q.toFixed(3))-1),de=this.xVal[v]+this.xNumSteps[v]*J;this.xHighestCompleteStep[v]=de}else this.xSteps[v]=this.xHighestCompleteStep[v]=this.xVal[v]},w}(),ve={to:function(w){return w===void 0?"":w.toFixed(2)},from:Number},Me={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},Ge={tooltips:".__tooltips",aria:".__aria"};function me(w,v){if(!h(v))throw new Error("noUiSlider: 'step' is not numeric.");w.singleStep=v}function Z(w,v){if(!h(v))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");w.keyboardPageMultiplier=v}function ce(w,v){if(!h(v))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");w.keyboardMultiplier=v}function we(w,v){if(!h(v))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");w.keyboardDefaultStep=v}function V(w,v){if(Qo(v)!=="object"||Array.isArray(v))throw new Error("noUiSlider: 'range' is not an object.");if(v.min===void 0||v.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");w.spectrum=new ae(v,w.snap||!1,w.singleStep)}function re(w,v){if(v=p(v),!Array.isArray(v)||!v.length)throw new Error("noUiSlider: 'start' option is incorrect.");w.handles=v.length,w.start=v}function se(w,v){if(typeof v!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");w.snap=v}function be(w,v){if(typeof v!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");w.animate=v}function He(w,v){if(typeof v!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");w.animationDuration=v}function Re(w,v){var F,q=[!1];if(v==="lower"?v=[!0,!1]:v==="upper"&&(v=[!1,!0]),v===!0||v===!1){for(F=1;F<w.handles;F++)q.push(v);q.push(!1)}else{if(!Array.isArray(v)||!v.length||v.length!==w.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");q=v}w.connect=q}function Oe(w,v){switch(v){case"horizontal":w.ort=0;break;case"vertical":w.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function De(w,v){if(!h(v))throw new Error("noUiSlider: 'margin' option must be numeric.");v!==0&&(w.margin=w.spectrum.getDistance(v))}function C(w,v){if(!h(v))throw new Error("noUiSlider: 'limit' option must be numeric.");if(w.limit=w.spectrum.getDistance(v),!w.limit||w.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function N(w,v){var F;if(!h(v)&&!Array.isArray(v))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(v)&&v.length!==2&&!h(v[0])&&!h(v[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(v!==0){for(Array.isArray(v)||(v=[v,v]),w.padding=[w.spectrum.getDistance(v[0]),w.spectrum.getDistance(v[1])],F=0;F<w.spectrum.xNumSteps.length-1;F++)if(w.padding[0][F]<0||w.padding[1][F]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var q=v[0]+v[1],J=w.spectrum.xVal[0];if(q/(w.spectrum.xVal[w.spectrum.xVal.length-1]-J)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function K(w,v){switch(v){case"ltr":w.dir=0;break;case"rtl":w.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function oe(w,v){if(typeof v!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var F=v.indexOf("tap")>=0,q=v.indexOf("drag")>=0,J=v.indexOf("fixed")>=0,de=v.indexOf("snap")>=0,Ee=v.indexOf("hover")>=0,Ie=v.indexOf("unconstrained")>=0,ee=v.indexOf("drag-all")>=0;if(J){if(w.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");De(w,w.start[1]-w.start[0])}if(Ie&&(w.margin||w.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");w.events={tap:F||de,drag:q,dragAll:ee,fixed:J,snap:de,hover:Ee,unconstrained:Ie}}function le(w,v){if(v!==!1)if(v===!0||o(v)){w.tooltips=[];for(var F=0;F<w.handles;F++)w.tooltips.push(v)}else{if((v=p(v)).length!==w.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");v.forEach(function(q){if(typeof q!="boolean"&&!o(q))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),w.tooltips=v}}function ye(w,v){if(v.length!==w.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");w.handleAttributes=v}function ke(w,v){if(!o(v))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");w.ariaFormat=v}function he(w,v){if(!n(v))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");w.format=v}function pe(w,v){if(typeof v!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");w.keyboardSupport=v}function fe(w,v){w.documentElement=v}function je(w,v){if(typeof v!="string"&&v!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");w.cssPrefix=v}function Ce(w,v){if(Qo(v)!=="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof w.cssPrefix=="string"?(w.cssClasses={},Object.keys(v).forEach(function(F){w.cssClasses[F]=w.cssPrefix+v[F]})):w.cssClasses=v}function Ne(w){var v={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:ve,format:ve},F={step:{r:!1,t:me},keyboardPageMultiplier:{r:!1,t:Z},keyboardMultiplier:{r:!1,t:ce},keyboardDefaultStep:{r:!1,t:we},start:{r:!0,t:re},connect:{r:!0,t:Re},direction:{r:!0,t:K},snap:{r:!1,t:se},animate:{r:!1,t:be},animationDuration:{r:!1,t:He},range:{r:!0,t:V},orientation:{r:!1,t:Oe},margin:{r:!1,t:De},limit:{r:!1,t:C},padding:{r:!1,t:N},behaviour:{r:!0,t:oe},ariaFormat:{r:!1,t:ke},format:{r:!1,t:he},tooltips:{r:!1,t:le},keyboardSupport:{r:!0,t:pe},documentElement:{r:!1,t:fe},cssPrefix:{r:!0,t:je},cssClasses:{r:!0,t:Ce},handleAttributes:{r:!1,t:ye}},q={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Me,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};w.format&&!w.ariaFormat&&(w.ariaFormat=w.format),Object.keys(F).forEach(function(ee){if(i(w[ee])||q[ee]!==void 0)F[ee].t(v,i(w[ee])?w[ee]:q[ee]);else if(F[ee].r)throw new Error("noUiSlider: '"+ee+"' is required.")}),v.pips=w.pips;var J=document.createElement("div"),de=J.style.msTransform!==void 0,Ee=J.style.transform!==void 0;v.transformRule=Ee?"transform":de?"msTransform":"webkitTransform";var Ie=[["left","top"],["right","bottom"]];return v.style=Ie[v.dir][v.ort],v}function qe(w,v,F){var q,J,de,Ee,Ie,ee=S(),ie=$()&&E(),X=w,ne=v.spectrum,Be=[],Ve=[],ut=[],as=0,Fs={},Is=w.ownerDocument,Ei=v.documentElement||Is.documentElement,Ci=Is.body,Ay=Is.dir==="rtl"||v.ort===1?0:100;function on(M,H){var Q=Is.createElement("div");return H&&g(Q,H),M.appendChild(Q),Q}function Py(M,H){var Q=on(M,v.cssClasses.origin),_e=on(Q,v.cssClasses.handle);if(on(_e,v.cssClasses.touchArea),_e.setAttribute("data-handle",String(H)),v.keyboardSupport&&(_e.setAttribute("tabindex","0"),_e.addEventListener("keydown",function(Pe){return zy(Pe,H)})),v.handleAttributes!==void 0){var Fe=v.handleAttributes[H];Object.keys(Fe).forEach(function(Pe){_e.setAttribute(Pe,Fe[Pe])})}return _e.setAttribute("role","slider"),_e.setAttribute("aria-orientation",v.ort?"vertical":"horizontal"),H===0?g(_e,v.cssClasses.handleLower):H===v.handles-1&&g(_e,v.cssClasses.handleUpper),Q}function nf(M,H){return!!H&&on(M,v.cssClasses.connect)}function Dy(M,H){var Q=on(H,v.cssClasses.connects);J=[],(de=[]).push(nf(Q,M[0]));for(var _e=0;_e<v.handles;_e++)J.push(Py(H,_e)),ut[_e]=_e,de.push(nf(Q,M[_e+1]))}function Fy(M){return g(M,v.cssClasses.target),v.dir===0?g(M,v.cssClasses.ltr):g(M,v.cssClasses.rtl),v.ort===0?g(M,v.cssClasses.horizontal):g(M,v.cssClasses.vertical),g(M,getComputedStyle(M).direction==="rtl"?v.cssClasses.textDirectionRtl:v.cssClasses.textDirectionLtr),on(M,v.cssClasses.base)}function Iy(M,H){return!(!v.tooltips||!v.tooltips[H])&&on(M.firstChild,v.cssClasses.tooltip)}function rf(){return X.hasAttribute("disabled")}function Gl(M){return J[M].hasAttribute("disabled")}function Wl(){Ie&&(mo("update"+Ge.tooltips),Ie.forEach(function(M){M&&r(M)}),Ie=null)}function of(){Wl(),Ie=J.map(Iy),Xl("update"+Ge.tooltips,function(M,H,Q){if(Ie&&v.tooltips&&Ie[H]!==!1){var _e=M[H];v.tooltips[H]!==!0&&(_e=v.tooltips[H].to(Q[H])),Ie[H].innerHTML=_e}})}function Ry(){mo("update"+Ge.aria),Xl("update"+Ge.aria,function(M,H,Q,_e,Fe){ut.forEach(function(Pe){var Ye=J[Pe],We=$i(Ve,Pe,0,!0,!0,!0),Nt=$i(Ve,Pe,100,!0,!0,!0),Tt=Fe[Pe],ht=String(v.ariaFormat.to(Q[Pe]));We=ne.fromStepping(We).toFixed(1),Nt=ne.fromStepping(Nt).toFixed(1),Tt=ne.fromStepping(Tt).toFixed(1),Ye.children[0].setAttribute("aria-valuemin",We),Ye.children[0].setAttribute("aria-valuemax",Nt),Ye.children[0].setAttribute("aria-valuenow",Tt),Ye.children[0].setAttribute("aria-valuetext",ht)})})}function Ny(M){if(M.mode===s.PipsMode.Range||M.mode===s.PipsMode.Steps)return ne.xVal;if(M.mode===s.PipsMode.Count){if(M.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var H=M.values-1,Q=100/H,_e=[];H--;)_e[H]=H*Q;return _e.push(100),af(_e,M.stepped)}return M.mode===s.PipsMode.Positions?af(M.values,M.stepped):M.mode===s.PipsMode.Values?M.stepped?M.values.map(function(Fe){return ne.fromStepping(ne.getStep(ne.toStepping(Fe)))}):M.values:[]}function af(M,H){return M.map(function(Q){return ne.fromStepping(H?ne.getStep(Q):Q)})}function My(M){function H(Tt,ht){return Number((Tt+ht).toFixed(7))}var Q=Ny(M),_e={},Fe=ne.xVal[0],Pe=ne.xVal[ne.xVal.length-1],Ye=!1,We=!1,Nt=0;return(Q=u(Q.slice().sort(function(Tt,ht){return Tt-ht})))[0]!==Fe&&(Q.unshift(Fe),Ye=!0),Q[Q.length-1]!==Pe&&(Q.push(Pe),We=!0),Q.forEach(function(Tt,ht){var qt,vt,ls,ns,Lt,_f,tu,gf,vf,yf,su=Tt,kr=Q[ht+1],bf=M.mode===s.PipsMode.Steps;for(bf&&(qt=ne.xNumSteps[ht]),qt||(qt=kr-su),kr===void 0&&(kr=su),qt=Math.max(qt,1e-7),vt=su;vt<=kr;vt=H(vt,qt)){for(gf=(Lt=(ns=ne.toStepping(vt))-Nt)/(M.density||1),yf=Lt/(vf=Math.round(gf)),ls=1;ls<=vf;ls+=1)_e[(_f=Nt+ls*yf).toFixed(5)]=[ne.fromStepping(_f),0];tu=Q.indexOf(vt)>-1?s.PipsType.LargeValue:bf?s.PipsType.SmallValue:s.PipsType.NoValue,!ht&&Ye&&vt!==kr&&(tu=0),vt===kr&&We||(_e[ns.toFixed(5)]=[vt,tu]),Nt=ns}}),_e}function Ly(M,H,Q){var _e,Fe,Pe=Is.createElement("div"),Ye=((_e={})[s.PipsType.None]="",_e[s.PipsType.NoValue]=v.cssClasses.valueNormal,_e[s.PipsType.LargeValue]=v.cssClasses.valueLarge,_e[s.PipsType.SmallValue]=v.cssClasses.valueSub,_e),We=((Fe={})[s.PipsType.None]="",Fe[s.PipsType.NoValue]=v.cssClasses.markerNormal,Fe[s.PipsType.LargeValue]=v.cssClasses.markerLarge,Fe[s.PipsType.SmallValue]=v.cssClasses.markerSub,Fe),Nt=[v.cssClasses.valueHorizontal,v.cssClasses.valueVertical],Tt=[v.cssClasses.markerHorizontal,v.cssClasses.markerVertical];function ht(vt,ls){var ns=ls===v.cssClasses.value,Lt=ns?Ye:We;return ls+" "+(ns?Nt:Tt)[v.ort]+" "+Lt[vt]}function qt(vt,ls,ns){if((ns=H?H(ls,ns):ns)!==s.PipsType.None){var Lt=on(Pe,!1);Lt.className=ht(ns,v.cssClasses.marker),Lt.style[v.style]=vt+"%",ns>s.PipsType.NoValue&&((Lt=on(Pe,!1)).className=ht(ns,v.cssClasses.value),Lt.setAttribute("data-value",String(ls)),Lt.style[v.style]=vt+"%",Lt.innerHTML=String(Q.to(ls)))}}return g(Pe,v.cssClasses.pips),g(Pe,v.ort===0?v.cssClasses.pipsHorizontal:v.cssClasses.pipsVertical),Object.keys(M).forEach(function(vt){qt(vt,M[vt][0],M[vt][1])}),Pe}function Kl(){Ee&&(r(Ee),Ee=null)}function Yl(M){Kl();var H=My(M),Q=M.filter,_e=M.format||{to:function(Fe){return String(Math.round(Fe))}};return Ee=X.appendChild(Ly(H,Q,_e))}function lf(){var M=q.getBoundingClientRect(),H="offset"+["Width","Height"][v.ort];return v.ort===0?M.width||q[H]:M.height||q[H]}function Wn(M,H,Q,_e){var Fe=function(Ye){var We=jy(Ye,_e.pageOffset,_e.target||H);return!!We&&!(rf()&&!_e.doNotReject)&&!(b(X,v.cssClasses.tap)&&!_e.doNotReject)&&!(M===ee.start&&We.buttons!==void 0&&We.buttons>1)&&(!_e.hover||!We.buttons)&&(ie||We.preventDefault(),We.calcPoint=We.points[v.ort],void Q(We,_e))},Pe=[];return M.split(" ").forEach(function(Ye){H.addEventListener(Ye,Fe,!!ie&&{passive:!0}),Pe.push([Ye,Fe])}),Pe}function jy(M,H,Q){var _e=M.type.indexOf("touch")===0,Fe=M.type.indexOf("mouse")===0,Pe=M.type.indexOf("pointer")===0,Ye=0,We=0;if(M.type.indexOf("MSPointer")===0&&(Pe=!0),M.type==="mousedown"&&!M.buttons&&!M.touches)return!1;if(_e){var Nt=function(qt){var vt=qt.target;return vt===Q||Q.contains(vt)||M.composed&&M.composedPath().shift()===Q};if(M.type==="touchstart"){var Tt=Array.prototype.filter.call(M.touches,Nt);if(Tt.length>1)return!1;Ye=Tt[0].pageX,We=Tt[0].pageY}else{var ht=Array.prototype.find.call(M.changedTouches,Nt);if(!ht)return!1;Ye=ht.pageX,We=ht.pageY}}return H=H||k(Is),(Fe||Pe)&&(Ye=M.clientX+H.x,We=M.clientY+H.y),M.pageOffset=H,M.points=[Ye,We],M.cursor=Fe||Pe,M}function uf(M){var H=100*(M-d(q,v.ort))/lf();return H=m(H),v.dir?100-H:H}function By(M){var H=100,Q=!1;return J.forEach(function(_e,Fe){if(!Gl(Fe)){var Pe=Ve[Fe],Ye=Math.abs(Pe-M);(Ye<H||Ye<=H&&M>Pe||Ye===100&&H===100)&&(Q=Fe,H=Ye)}}),Q}function Uy(M,H){M.type==="mouseout"&&M.target.nodeName==="HTML"&&M.relatedTarget===null&&Zl(M,H)}function Vy(M,H){if(navigator.appVersion.indexOf("MSIE 9")===-1&&M.buttons===0&&H.buttonsProperty!==0)return Zl(M,H);var Q=(v.dir?-1:1)*(M.calcPoint-H.startCalcPoint);cf(Q>0,100*Q/H.baseSize,H.locations,H.handleNumbers,H.connect)}function Zl(M,H){H.handle&&(y(H.handle,v.cssClasses.active),as-=1),H.listeners.forEach(function(Q){Ei.removeEventListener(Q[0],Q[1])}),as===0&&(y(X,v.cssClasses.drag),eu(),M.cursor&&(Ci.style.cursor="",Ci.removeEventListener("selectstart",a))),H.handleNumbers.forEach(function(Q){Mt("change",Q),Mt("set",Q),Mt("end",Q)})}function Jl(M,H){if(!H.handleNumbers.some(Gl)){var Q;H.handleNumbers.length===1&&(Q=J[H.handleNumbers[0]].children[0],as+=1,g(Q,v.cssClasses.active)),M.stopPropagation();var _e=[],Fe=Wn(ee.move,Ei,Vy,{target:M.target,handle:Q,connect:H.connect,listeners:_e,startCalcPoint:M.calcPoint,baseSize:lf(),pageOffset:M.pageOffset,handleNumbers:H.handleNumbers,buttonsProperty:M.buttons,locations:Ve.slice()}),Pe=Wn(ee.end,Ei,Zl,{target:M.target,handle:Q,listeners:_e,doNotReject:!0,handleNumbers:H.handleNumbers}),Ye=Wn("mouseout",Ei,Uy,{target:M.target,handle:Q,listeners:_e,doNotReject:!0,handleNumbers:H.handleNumbers});_e.push.apply(_e,Fe.concat(Pe,Ye)),M.cursor&&(Ci.style.cursor=getComputedStyle(M.target).cursor,J.length>1&&g(X,v.cssClasses.drag),Ci.addEventListener("selectstart",a,!1)),H.handleNumbers.forEach(function(We){Mt("start",We)})}}function Hy(M){M.stopPropagation();var H=uf(M.calcPoint),Q=By(H);Q!==!1&&(v.events.snap||f(X,v.cssClasses.tap,v.animationDuration),wr(Q,H,!0,!0),eu(),Mt("slide",Q,!0),Mt("update",Q,!0),v.events.snap?Jl(M,{handleNumbers:[Q]}):(Mt("change",Q,!0),Mt("set",Q,!0)))}function qy(M){var H=uf(M.calcPoint),Q=ne.getStep(H),_e=ne.fromStepping(Q);Object.keys(Fs).forEach(function(Fe){Fe.split(".")[0]==="hover"&&Fs[Fe].forEach(function(Pe){Pe.call(Ti,_e)})})}function zy(M,H){if(rf()||Gl(H))return!1;var Q=["Left","Right"],_e=["Down","Up"],Fe=["PageDown","PageUp"],Pe=["Home","End"];v.dir&&!v.ort?Q.reverse():v.ort&&!v.dir&&(_e.reverse(),Fe.reverse());var Ye,We=M.key.replace("Arrow",""),Nt=We===Fe[0],Tt=We===Fe[1],ht=We===_e[0]||We===Q[0]||Nt,qt=We===_e[1]||We===Q[1]||Tt,vt=We===Pe[0],ls=We===Pe[1];if(!(ht||qt||vt||ls))return!0;if(M.preventDefault(),qt||ht){var ns=ht?0:1,Lt=pf(H)[ns];if(Lt===null)return!1;Lt===!1&&(Lt=ne.getDefaultStep(Ve[H],ht,v.keyboardDefaultStep)),Lt*=Tt||Nt?v.keyboardPageMultiplier:v.keyboardMultiplier,Lt=Math.max(Lt,1e-7),Lt*=ht?-1:1,Ye=Be[H]+Lt}else Ye=ls?v.spectrum.xVal[v.spectrum.xVal.length-1]:v.spectrum.xVal[0];return wr(H,ne.toStepping(Ye),!0,!0),Mt("slide",H),Mt("update",H),Mt("change",H),Mt("set",H),!1}function Gy(M){M.fixed||J.forEach(function(H,Q){Wn(ee.start,H.children[0],Jl,{handleNumbers:[Q]})}),M.tap&&Wn(ee.start,q,Hy,{}),M.hover&&Wn(ee.move,q,qy,{hover:!0}),M.drag&&de.forEach(function(H,Q){if(H!==!1&&Q!==0&&Q!==de.length-1){var _e=J[Q-1],Fe=J[Q],Pe=[H],Ye=[_e,Fe],We=[Q-1,Q];g(H,v.cssClasses.draggable),M.fixed&&(Pe.push(_e.children[0]),Pe.push(Fe.children[0])),M.dragAll&&(Ye=J,We=ut),Pe.forEach(function(Nt){Wn(ee.start,Nt,Jl,{handles:Ye,handleNumbers:We,connect:H})})}})}function Xl(M,H){Fs[M]=Fs[M]||[],Fs[M].push(H),M.split(".")[0]==="update"&&J.forEach(function(Q,_e){Mt("update",_e)})}function Wy(M){return M===Ge.aria||M===Ge.tooltips}function mo(M){var H=M&&M.split(".")[0],Q=H?M.substring(H.length):M;Object.keys(Fs).forEach(function(_e){var Fe=_e.split(".")[0],Pe=_e.substring(Fe.length);H&&H!==Fe||Q&&Q!==Pe||Wy(Pe)&&Q!==Pe||delete Fs[_e]})}function Mt(M,H,Q){Object.keys(Fs).forEach(function(_e){var Fe=_e.split(".")[0];M===Fe&&Fs[_e].forEach(function(Pe){Pe.call(Ti,Be.map(v.format.to),H,Be.slice(),Q||!1,Ve.slice(),Ti)})})}function $i(M,H,Q,_e,Fe,Pe){var Ye;return J.length>1&&!v.events.unconstrained&&(_e&&H>0&&(Ye=ne.getAbsoluteDistance(M[H-1],v.margin,!1),Q=Math.max(Q,Ye)),Fe&&H<J.length-1&&(Ye=ne.getAbsoluteDistance(M[H+1],v.margin,!0),Q=Math.min(Q,Ye))),J.length>1&&v.limit&&(_e&&H>0&&(Ye=ne.getAbsoluteDistance(M[H-1],v.limit,!1),Q=Math.min(Q,Ye)),Fe&&H<J.length-1&&(Ye=ne.getAbsoluteDistance(M[H+1],v.limit,!0),Q=Math.max(Q,Ye))),v.padding&&(H===0&&(Ye=ne.getAbsoluteDistance(0,v.padding[0],!1),Q=Math.max(Q,Ye)),H===J.length-1&&(Ye=ne.getAbsoluteDistance(100,v.padding[1],!0),Q=Math.min(Q,Ye))),!((Q=m(Q=ne.getStep(Q)))===M[H]&&!Pe)&&Q}function Ql(M,H){var Q=v.ort;return(Q?H:M)+", "+(Q?M:H)}function cf(M,H,Q,_e,Fe){var Pe=Q.slice(),Ye=_e[0],We=[!M,M],Nt=[M,!M];_e=_e.slice(),M&&_e.reverse(),_e.length>1?_e.forEach(function(ht,qt){var vt=$i(Pe,ht,Pe[ht]+H,We[qt],Nt[qt],!1);vt===!1?H=0:(H=vt-Pe[ht],Pe[ht]=vt)}):We=Nt=[!0];var Tt=!1;_e.forEach(function(ht,qt){Tt=wr(ht,Q[ht]+H,We[qt],Nt[qt])||Tt}),Tt&&(_e.forEach(function(ht){Mt("update",ht),Mt("slide",ht)}),Fe!=null&&Mt("drag",Ye))}function df(M,H){return v.dir?100-M-H:M}function Ky(M,H){Ve[M]=H,Be[M]=ne.fromStepping(H);var Q="translate("+Ql(df(H,0)-Ay+"%","0")+")";J[M].style[v.transformRule]=Q,ff(M),ff(M+1)}function eu(){ut.forEach(function(M){var H=Ve[M]>50?-1:1,Q=3+(J.length+H*M);J[M].style.zIndex=String(Q)})}function wr(M,H,Q,_e,Fe){return Fe||(H=$i(Ve,M,H,Q,_e,!1)),H!==!1&&(Ky(M,H),!0)}function ff(M){if(de[M]){var H=0,Q=100;M!==0&&(H=Ve[M-1]),M!==de.length-1&&(Q=Ve[M]);var _e=Q-H,Fe="translate("+Ql(df(H,_e)+"%","0")+")",Pe="scale("+Ql(_e/100,"1")+")";de[M].style[v.transformRule]=Fe+" "+Pe}}function hf(M,H){return M===null||M===!1||M===void 0?Ve[H]:(typeof M=="number"&&(M=String(M)),(M=v.format.from(M))!==!1&&(M=ne.toStepping(M)),M===!1||isNaN(M)?Ve[H]:M)}function Oi(M,H,Q){var _e=p(M),Fe=Ve[0]===void 0;H=H===void 0||H,v.animate&&!Fe&&f(X,v.cssClasses.tap,v.animationDuration),ut.forEach(function(We){wr(We,hf(_e[We],We),!0,!1,Q)});var Pe=ut.length===1?0:1;if(Fe&&ne.hasNoSize()&&(Q=!0,Ve[0]=0,ut.length>1)){var Ye=100/(ut.length-1);ut.forEach(function(We){Ve[We]=We*Ye})}for(;Pe<ut.length;++Pe)ut.forEach(function(We){wr(We,Ve[We],!0,!0,Q)});eu(),ut.forEach(function(We){Mt("update",We),_e[We]!==null&&H&&Mt("set",We)})}function Yy(M){Oi(v.start,M)}function Zy(M,H,Q,_e){if(!((M=Number(M))>=0&&M<ut.length))throw new Error("noUiSlider: invalid handle number, got: "+M);wr(M,hf(H,M),!0,!0,_e),Mt("update",M),Q&&Mt("set",M)}function mf(M){if(M===void 0&&(M=!1),M)return Be.length===1?Be[0]:Be.slice(0);var H=Be.map(v.format.to);return H.length===1?H[0]:H}function Jy(){for(mo(Ge.aria),mo(Ge.tooltips),Object.keys(v.cssClasses).forEach(function(M){y(X,v.cssClasses[M])});X.firstChild;)X.removeChild(X.firstChild);delete X.noUiSlider}function pf(M){var H=Ve[M],Q=ne.getNearbySteps(H),_e=Be[M],Fe=Q.thisStep.step,Pe=null;if(v.snap)return[_e-Q.stepBefore.startValue||null,Q.stepAfter.startValue-_e||null];Fe!==!1&&_e+Fe>Q.stepAfter.startValue&&(Fe=Q.stepAfter.startValue-_e),Pe=_e>Q.thisStep.startValue?Q.thisStep.step:Q.stepBefore.step!==!1&&_e-Q.stepBefore.highestStep,H===100?Fe=null:H===0&&(Pe=null);var Ye=ne.countStepDecimals();return Fe!==null&&Fe!==!1&&(Fe=Number(Fe.toFixed(Ye))),Pe!==null&&Pe!==!1&&(Pe=Number(Pe.toFixed(Ye))),[Pe,Fe]}function Xy(){return ut.map(pf)}function Qy(M,H){var Q=mf(),_e=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];_e.forEach(function(Pe){M[Pe]!==void 0&&(F[Pe]=M[Pe])});var Fe=Ne(F);_e.forEach(function(Pe){M[Pe]!==void 0&&(v[Pe]=Fe[Pe])}),ne=Fe.spectrum,v.margin=Fe.margin,v.limit=Fe.limit,v.padding=Fe.padding,v.pips?Yl(v.pips):Kl(),v.tooltips?of():Wl(),Ve=[],Oi(i(M.start)?M.start:Q,H)}function eb(){q=Fy(X),Dy(v.connect,q),Gy(v.events),Oi(v.start),v.pips&&Yl(v.pips),v.tooltips&&of(),Ry()}eb();var Ti={destroy:Jy,steps:Xy,on:Xl,off:mo,get:mf,set:Oi,setHandle:Zy,reset:Yy,__moveHandles:function(M,H,Q){cf(M,H,Ve,Q)},options:F,updateOptions:Qy,target:X,removePips:Kl,removeTooltips:Wl,getPositions:function(){return Ve.slice()},getTooltips:function(){return Ie},getOrigins:function(){return J},pips:Yl};return Ti}function Ze(w,v){if(!w||!w.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+w);if(w.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var F=qe(w,Ne(v),v);return w.noUiSlider=F,F}var nt={__spectrum:ae,cssClasses:Me,create:Ze};s.create=Ze,s.cssClasses=Me,s.default=nt,Object.defineProperty(s,"__esModule",{value:!0})})(t)}));function Yh(e,t){var s=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(n,o){return n===s[o]})}var li={name:"Slider",emits:["input","update:modelValue","update","change","start","end"],props:{value:{validator:function(e){return t=>typeof t=="number"||t instanceof Array||t==null||t===!1},required:!1},modelValue:{validator:function(e){return t=>typeof t=="number"||t instanceof Array||t==null||t===!1},required:!1},id:{type:[String,Number],required:!1},disabled:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},orientation:{type:String,required:!1,default:"horizontal"},direction:{type:String,required:!1,default:"ltr"},tooltips:{type:Boolean,required:!1,default:!0},options:{type:Object,required:!1,default:()=>({})},merge:{type:Number,required:!1,default:-1},format:{type:[Object,Function,Boolean],required:!1,default:null},classes:{type:Object,required:!1,default:()=>({})},showTooltip:{type:String,required:!1,default:"always"},tooltipPosition:{type:String,required:!1,default:null},lazy:{type:Boolean,required:!1,default:!0}},setup(e,t){const s=function(i,a,u){var c=Lo(i),d=c.value,h=c.modelValue,f=a.expose!==void 0?h:d,m=cn(f.value);if(Tu(f.value))throw new Error("Slider v-model must be a Number or Array");if(Array.isArray(f.value)&&f.value.length==0)throw new Error("Slider v-model must not be an empty array");return{value:f,initialValue:m}}(e,t),n=function(i,a,u){var c=Lo(i),d=c.classes,h=c.showTooltip,f=c.tooltipPosition,m=c.orientation,p=Wt(function(){return Gh({target:"slider-target",focused:"slider-focused",tooltipFocus:"slider-tooltip-focus",tooltipDrag:"slider-tooltip-drag",ltr:"slider-ltr",rtl:"slider-rtl",horizontal:"slider-horizontal",vertical:"slider-vertical",textDirectionRtl:"slider-txt-dir-rtl",textDirectionLtr:"slider-txt-dir-ltr",base:"slider-base",connects:"slider-connects",connect:"slider-connect",origin:"slider-origin",handle:"slider-handle",handleLower:"slider-handle-lower",handleUpper:"slider-handle-upper",touchArea:"slider-touch-area",tooltip:"slider-tooltip",tooltipTop:"slider-tooltip-top",tooltipBottom:"slider-tooltip-bottom",tooltipLeft:"slider-tooltip-left",tooltipRight:"slider-tooltip-right",tooltipHidden:"slider-tooltip-hidden",active:"slider-active",draggable:"slider-draggable",tap:"slider-state-tap",drag:"slider-state-drag",pips:"slider-pips",pipsHorizontal:"slider-pips-horizontal",pipsVertical:"slider-pips-vertical",marker:"slider-marker",markerHorizontal:"slider-marker-horizontal",markerVertical:"slider-marker-vertical",markerNormal:"slider-marker-normal",markerLarge:"slider-marker-large",markerSub:"slider-marker-sub",value:"slider-value",valueHorizontal:"slider-value-horizontal",valueVertical:"slider-value-vertical",valueNormal:"slider-value-normal",valueLarge:"slider-value-large",valueSub:"slider-value-sub"},d.value)});return{classList:Wt(function(){var _=Gh({},p.value);return Object.keys(_).forEach(function(g){_[g]=Array.isArray(_[g])?_[g].filter(function(y){return y!==null}).join(" "):_[g]}),h.value!=="always"&&(_.target+=" ".concat(h.value==="drag"?_.tooltipDrag:_.tooltipFocus)),m.value==="horizontal"&&(_.tooltip+=f.value==="bottom"?" ".concat(_.tooltipBottom):" ".concat(_.tooltipTop)),m.value==="vertical"&&(_.tooltip+=f.value==="right"?" ".concat(_.tooltipRight):" ".concat(_.tooltipLeft)),_})}}(e),o=F$(e,0,{value:s.value,classList:n.classList}),r=function(i,a,u){var c=Lo(i),d=c.orientation,h=c.direction,f=c.tooltips,m=c.step,p=c.min,_=c.max,g=c.merge,y=c.id,b=c.disabled,k=c.options,S=c.classes,E=c.format,$=c.lazy,I=u.value,j=u.initialValue,O=u.tooltipsFormat,L=u.tooltipsMerge,z=u.classList,D=cn(null),U=cn(null),W=cn(!1),ue=Wt(function(){var we={cssPrefix:"",cssClasses:z.value,orientation:d.value,direction:h.value,tooltips:!!f.value&&O.value,connect:"lower",start:Tu(I.value)?p.value:I.value,range:{min:p.value,max:_.value}};return m.value>0&&(we.step=m.value),Array.isArray(I.value)&&(we.connect=!0),we}),te=Wt(function(){var we={id:y&&y.value?y.value:void 0};return b.value&&(we.disabled=!0),we}),ae=Wt(function(){return Array.isArray(I.value)}),ve=function(){var we=U.value.get();return Array.isArray(we)?we.map(function(V){return parseFloat(V)}):parseFloat(we)},Me=function(we){var V=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];U.value.set(we,V)},Ge=function(we){a.emit("input",we),a.emit("update:modelValue",we),a.emit("update",we)},me=function(){U.value=I$.create(D.value,Object.assign({},ue.value,k.value)),f.value&&ae.value&&g.value>=0&&L(D.value,g.value," - "),U.value.on("set",function(we){var V=ve();a.emit("change",V),$.value&&Ge(V)}),U.value.on("update",function(we){if(W.value){var V=ve();ae.value&&Yh(I.value,V)||!ae.value&&I.value==V?a.emit("update",V):$.value||Ge(V)}}),U.value.on("start",function(we){var V=ve();a.emit("start",V)}),U.value.on("end",function(we){var V=ve();a.emit("end",V)}),D.value.querySelectorAll("[data-handle]").forEach(function(we){we.onblur=function(){z.value.focused.split(" ").forEach(function(V){D.value.classList.remove(V)})},we.onfocus=function(){z.value.focused.split(" ").forEach(function(V){D.value.classList.add(V)})}}),W.value=!0},Z=function(){U.value.off(),U.value.destroy(),U.value=null},ce=function(we,V){W.value=!1,Z(),me()};return io(me),_i(Z),Bt(ae,ce,{immediate:!1}),Bt(p,ce,{immediate:!1}),Bt(_,ce,{immediate:!1}),Bt(m,ce,{immediate:!1}),Bt(d,ce,{immediate:!1}),Bt(h,ce,{immediate:!1}),Bt(f,ce,{immediate:!1}),Bt(g,ce,{immediate:!1}),Bt(E,ce,{immediate:!1,deep:!0}),Bt(k,ce,{immediate:!1,deep:!0}),Bt(S,ce,{immediate:!1,deep:!0}),Bt(I,function(we){Tu(we)?Me(p.value,!1):(ae.value&&!Yh(we,ve())||!ae.value&&we!=ve())&&Me(we,!1)},{deep:!0}),{slider:D,slider$:U,isRange:ae,sliderProps:te,init:me,destroy:Z,refresh:ce,update:Me,reset:function(){Ge(j.value)}}}(e,t,{value:s.value,initialValue:s.initialValue,tooltipsFormat:o.tooltipsFormat,tooltipsMerge:o.tooltipsMerge,classList:n.classList});return Je(Je(Je({},n),o),r)}};li.render=function(e,t,s,n,o,r){return x(),A("div",dd(e.sliderProps,{ref:"slider"}),null,16)},li.__file="src/Slider.vue";var Ag={exports:{}},R$=[{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=R$,s=t.filter(function(o){return!!o.css}),n=t.filter(function(o){return!!o.vga});e.exports=function(o){var r=e.exports.get(o);return r&&r.value},e.exports.get=function(o){return o=o||"",o=o.trim().toLowerCase(),t.filter(function(r){return r.name.toLowerCase()===o}).pop()},e.exports.all=e.exports.get.all=function(){return t},e.exports.get.css=function(o){return o?(o=o||"",o=o.trim().toLowerCase(),s.filter(function(r){return r.name.toLowerCase()===o}).pop()):s},e.exports.get.vga=function(o){return o?(o=o||"",o=o.trim().toLowerCase(),n.filter(function(r){return r.name.toLowerCase()===o}).pop()):n}})(Ag);var N$=1/0,M$="[object Symbol]",L$=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pg="\\ud800-\\udfff",j$="\\u0300-\\u036f\\ufe20-\\ufe23",B$="\\u20d0-\\u20f0",Dg="\\u2700-\\u27bf",Fg="a-z\\xdf-\\xf6\\xf8-\\xff",U$="\\xac\\xb1\\xd7\\xf7",V$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",H$="\\u2000-\\u206f",q$=" \\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",Ig="A-Z\\xc0-\\xd6\\xd8-\\xde",z$="\\ufe0e\\ufe0f",Rg=U$+V$+H$+q$,Ng="['\u2019]",Zh="["+Rg+"]",G$="["+j$+B$+"]",Mg="\\d+",W$="["+Dg+"]",Lg="["+Fg+"]",jg="[^"+Pg+Rg+Mg+Dg+Fg+Ig+"]",K$="\\ud83c[\\udffb-\\udfff]",Y$="(?:"+G$+"|"+K$+")",Z$="[^"+Pg+"]",Bg="(?:\\ud83c[\\udde6-\\uddff]){2}",Ug="[\\ud800-\\udbff][\\udc00-\\udfff]",Mr="["+Ig+"]",J$="\\u200d",Jh="(?:"+Lg+"|"+jg+")",X$="(?:"+Mr+"|"+jg+")",Xh="(?:"+Ng+"(?:d|ll|m|re|s|t|ve))?",Qh="(?:"+Ng+"(?:D|LL|M|RE|S|T|VE))?",Vg=Y$+"?",Hg="["+z$+"]?",Q$="(?:"+J$+"(?:"+[Z$,Bg,Ug].join("|")+")"+Hg+Vg+")*",e2=Hg+Vg+Q$,t2="(?:"+[W$,Bg,Ug].join("|")+")"+e2,s2=RegExp([Mr+"?"+Lg+"+"+Xh+"(?="+[Zh,Mr,"$"].join("|")+")",X$+"+"+Qh+"(?="+[Zh,Mr+Jh,"$"].join("|")+")",Mr+"?"+Jh+"+"+Xh,Mr+"+"+Qh,Mg,t2].join("|"),"g"),n2=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,r2=typeof ts=="object"&&ts&&ts.Object===Object&&ts,o2=typeof self=="object"&&self&&self.Object===Object&&self,i2=r2||o2||Function("return this")();function a2(e){return e.match(L$)||[]}function l2(e){return n2.test(e)}function u2(e){return e.match(s2)||[]}var c2=Object.prototype,d2=c2.toString,em=i2.Symbol,tm=em?em.prototype:void 0,sm=tm?tm.toString:void 0;function f2(e){if(typeof e=="string")return e;if(m2(e))return sm?sm.call(e):"";var t=e+"";return t=="0"&&1/e==-N$?"-0":t}function h2(e){return!!e&&typeof e=="object"}function m2(e){return typeof e=="symbol"||h2(e)&&d2.call(e)==M$}function p2(e){return e==null?"":f2(e)}function _2(e,t,s){return e=p2(e),t=s?void 0:t,t===void 0?l2(e)?u2(e):a2(e):e.match(t)||[]}var g2=_2,v2=1/0,y2="[object Symbol]",b2=/^\s+/,Nd="\\ud800-\\udfff",qg="\\u0300-\\u036f\\ufe20-\\ufe23",zg="\\u20d0-\\u20f0",Gg="\\ufe0e\\ufe0f",w2="["+Nd+"]",wc="["+qg+zg+"]",kc="\\ud83c[\\udffb-\\udfff]",k2="(?:"+wc+"|"+kc+")",Wg="[^"+Nd+"]",Kg="(?:\\ud83c[\\udde6-\\uddff]){2}",Yg="[\\ud800-\\udbff][\\udc00-\\udfff]",Zg="\\u200d",Jg=k2+"?",Xg="["+Gg+"]?",x2="(?:"+Zg+"(?:"+[Wg,Kg,Yg].join("|")+")"+Xg+Jg+")*",S2=Xg+Jg+x2,E2="(?:"+[Wg+wc+"?",wc,Kg,Yg,w2].join("|")+")",C2=RegExp(kc+"(?="+kc+")|"+E2+S2,"g"),$2=RegExp("["+Zg+Nd+qg+zg+Gg+"]"),O2=typeof ts=="object"&&ts&&ts.Object===Object&&ts,T2=typeof self=="object"&&self&&self.Object===Object&&self,A2=O2||T2||Function("return this")();function P2(e){return e.split("")}function D2(e,t,s,n){for(var o=e.length,r=s+(n?1:-1);n?r--:++r<o;)if(t(e[r],r,e))return r;return-1}function F2(e,t,s){if(t!==t)return D2(e,I2,s);for(var n=s-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}function I2(e){return e!==e}function R2(e,t){for(var s=-1,n=e.length;++s<n&&F2(t,e[s],0)>-1;);return s}function N2(e){return $2.test(e)}function nm(e){return N2(e)?M2(e):P2(e)}function M2(e){return e.match(C2)||[]}var L2=Object.prototype,j2=L2.toString,rm=A2.Symbol,om=rm?rm.prototype:void 0,im=om?om.toString:void 0;function B2(e,t,s){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),s=s>o?o:s,s<0&&(s+=o),o=t>s?0:s-t>>>0,t>>>=0;for(var r=Array(o);++n<o;)r[n]=e[n+t];return r}function Qg(e){if(typeof e=="string")return e;if(H2(e))return im?im.call(e):"";var t=e+"";return t=="0"&&1/e==-v2?"-0":t}function U2(e,t,s){var n=e.length;return s=s===void 0?n:s,!t&&s>=n?e:B2(e,t,s)}function V2(e){return!!e&&typeof e=="object"}function H2(e){return typeof e=="symbol"||V2(e)&&j2.call(e)==y2}function q2(e){return e==null?"":Qg(e)}function z2(e,t,s){if(e=q2(e),e&&(s||t===void 0))return e.replace(b2,"");if(!e||!(t=Qg(t)))return e;var n=nm(e),o=R2(n,nm(t));return U2(n,o).join("")}var G2=z2,xc=1/0,W2=9007199254740991,K2=17976931348623157e292,am=0/0,Y2="[object Symbol]",Z2=/^\s+|\s+$/g,J2=/^[-+]0x[0-9a-f]+$/i,X2=/^0b[01]+$/i,Q2=/^0o[0-7]+$/i,Md="\\ud800-\\udfff",ev="\\u0300-\\u036f\\ufe20-\\ufe23",tv="\\u20d0-\\u20f0",sv="\\ufe0e\\ufe0f",eO="["+Md+"]",Sc="["+ev+tv+"]",Ec="\\ud83c[\\udffb-\\udfff]",tO="(?:"+Sc+"|"+Ec+")",nv="[^"+Md+"]",rv="(?:\\ud83c[\\udde6-\\uddff]){2}",ov="[\\ud800-\\udbff][\\udc00-\\udfff]",iv="\\u200d",av=tO+"?",lv="["+sv+"]?",sO="(?:"+iv+"(?:"+[nv,rv,ov].join("|")+")"+lv+av+")*",nO=lv+av+sO,rO="(?:"+[nv+Sc+"?",Sc,rv,ov,eO].join("|")+")",Cc=RegExp(Ec+"(?="+Ec+")|"+rO+nO,"g"),oO=RegExp("["+iv+Md+ev+tv+sv+"]"),iO=parseInt,aO=typeof ts=="object"&&ts&&ts.Object===Object&&ts,lO=typeof self=="object"&&self&&self.Object===Object&&self,uO=aO||lO||Function("return this")(),cO=fO("length");function dO(e){return e.split("")}function fO(e){return function(t){return t==null?void 0:t[e]}}function Ld(e){return oO.test(e)}function uv(e){return Ld(e)?mO(e):cO(e)}function hO(e){return Ld(e)?pO(e):dO(e)}function mO(e){for(var t=Cc.lastIndex=0;Cc.test(e);)t++;return t}function pO(e){return e.match(Cc)||[]}var _O=Object.prototype,gO=_O.toString,lm=uO.Symbol,vO=Math.ceil,yO=Math.floor,um=lm?lm.prototype:void 0,cm=um?um.toString:void 0;function dm(e,t){var s="";if(!e||t<1||t>W2)return s;do t%2&&(s+=e),t=yO(t/2),t&&(e+=e);while(t);return s}function bO(e,t,s){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),s=s>o?o:s,s<0&&(s+=o),o=t>s?0:s-t>>>0,t>>>=0;for(var r=Array(o);++n<o;)r[n]=e[n+t];return r}function cv(e){if(typeof e=="string")return e;if(dv(e))return cm?cm.call(e):"";var t=e+"";return t=="0"&&1/e==-xc?"-0":t}function wO(e,t,s){var n=e.length;return s=s===void 0?n:s,!t&&s>=n?e:bO(e,t,s)}function kO(e,t){t=t===void 0?" ":cv(t);var s=t.length;if(s<2)return s?dm(t,e):t;var n=dm(t,vO(e/uv(t)));return Ld(t)?wO(hO(n),0,e).join(""):n.slice(0,e)}function fm(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function xO(e){return!!e&&typeof e=="object"}function dv(e){return typeof e=="symbol"||xO(e)&&gO.call(e)==Y2}function SO(e){if(!e)return e===0?e:0;if(e=CO(e),e===xc||e===-xc){var t=e<0?-1:1;return t*K2}return e===e?e:0}function EO(e){var t=SO(e),s=t%1;return t===t?s?t-s:t:0}function CO(e){if(typeof e=="number")return e;if(dv(e))return am;if(fm(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fm(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Z2,"");var s=X2.test(e);return s||Q2.test(e)?iO(e.slice(2),s?2:8):J2.test(e)?am:+e}function $O(e){return e==null?"":cv(e)}function OO(e,t,s){e=$O(e),t=EO(t);var n=t?uv(e):0;return t&&n<t?e+kO(t-n,s):e}var TO=OO,AO=(e,t,s,n)=>{const o=(e+(n||"")).toString().includes("%");if(typeof e=="string"?[e,t,s,n]=e.match(/(0?\.?\d{1,3})%?\b/g).map(Number):n!==void 0&&(n=parseFloat(n)),typeof e!="number"||typeof t!="number"||typeof s!="number"||e>255||t>255||s>255)throw new TypeError("Expected three numbers below 256");if(typeof n=="number"){if(!o&&n>=0&&n<=1)n=Math.round(255*n);else if(o&&n>=0&&n<=100)n=Math.round(255*n/100);else throw new TypeError(`Expected alpha value (${n}) as a fraction or percentage`);n=(n|1<<8).toString(16).slice(1)}else n="";return(s|t<<8|e<<16|1<<24).toString(16).slice(1)+n};const ui="a-f\\d",PO=`#?[${ui}]{3}[${ui}]?`,DO=`#?[${ui}]{6}([${ui}]{2})?`,FO=new RegExp(`[^#${ui}]`,"gi"),IO=new RegExp(`^${PO}$|^${DO}$`,"i");var RO=(e,t={})=>{if(typeof e!="string"||FO.test(e)||!IO.test(e))throw new TypeError("Expected a valid hex string");e=e.replace(/^#/,"");let s=1;e.length===8&&(s=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),e.length===4&&(s=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 n=Number.parseInt(e,16),o=n>>16,r=n>>8&255,i=n&255,a=typeof t.alpha=="number"?t.alpha:s;if(t.format==="array")return[o,r,i,a];if(t.format==="css"){const u=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${o} ${r} ${i}${u})`}return{red:o,green:r,blue:i,alpha:a}},NO=Ag.exports,MO=g2,LO=G2,jO=TO,BO=AO,fv=RO;const Au=.75,Pu=.25,Du=16777215,UO=49979693;var VO=function(e){return"#"+zO(String(JSON.stringify(e)))};function HO(e){var t=MO(e),s=[];return t.forEach(function(n){var o=NO(n);o&&s.push(fv(LO(o,"#"),{format:"array"}))}),s}function qO(e){var t=[0,0,0];return e.forEach(function(s){for(var n=0;n<3;n++)t[n]+=s[n]}),[t[0]/e.length,t[1]/e.length,t[2]/e.length]}function zO(e){var t,s=HO(e);s.length>0&&(t=qO(s));var n=1,o=0,r=1;if(e.length>0)for(var i=0;i<e.length;i++)e[i].charCodeAt(0)>o&&(o=e[i].charCodeAt(0)),r=parseInt(Du/o),n=(n+e[i].charCodeAt(0)*r*UO)%Du;var a=(n*e.length%Du).toString(16);a=jO(a,6,a);var u=fv(a,{format:"array"});return t?BO(Pu*u[0]+Au*t[0],Pu*u[1]+Au*t[1],Pu*u[2]+Au*t[2]):a}function GO(e){const t=e.replace(/#/,""),s=parseInt(t.substr(0,2),16),n=parseInt(t.substr(2,2),16),o=parseInt(t.substr(4,2),16);return[.299*s,.587*n,.114*o].reduce((i,a)=>i+a)/255>.5}function WO(e){return GO(e)?"#000000":"#ffffff"}function KO(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 hv(e,t,s){const n=VO(t),o=WO(n),r={width:s.width,height:s.height,textColor:o,backgroundColor:n,caption:e,fontFamily:s.font_family,fontSize:s.font_size,fontWeight:s.font_weight};return KO(r)}const YO={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:function(){return this.maxwidth>0&&this.maxheight>0?G.artwork_url_append_size_params(this.artwork_url,this.maxwidth,this.maxheight):G.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:function(){return hv(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 ZO(e,t,s,n,o,r){const i=xl("lazy");return x(),A("figure",null,[wt(l("img",{onClick:t[0]||(t[0]=a=>e.$emit("click"))},null,512),[[i,{src:r.artwork_url_with_size,lifecycle:o.lazy_lifecycle}]])])}var yn=ge(YO,[["render",ZO]]);const JO={name:"PageNowPlaying",components:{ModalDialogQueueItem:_g,Slider:li,CoverArtwork:yn},data(){return{item_progress_ms:0,interval_id:0,is_dragged:!1,show_details_modal:!1,selected_item:{}}},computed:{state(){return this.$store.state.player},now_playing(){return this.$store.getters.now_playing},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.now_playing.genre&&this.settings_option_show_composer_for_genre.toLowerCase().split(",").findIndex(e=>this.now_playing.genre.toLowerCase().indexOf(e.trim())>=0)>=0)?this.now_playing.composer:null}},watch:{state(){this.interval_id>0&&(window.clearTimeout(this.interval_id),this.interval_id=0),this.item_progress_ms=this.state.item_progress_ms,this.state.state==="play"&&(this.interval_id=window.setInterval(this.tick,1e3))}},mounted:function(){console.log(this.$refs.slider)},created(){this.item_progress_ms=this.state.item_progress_ms,G.player_status().then(({data:e})=>{this.$store.commit(gd,e),this.state.state==="play"&&(this.interval_id=window.setInterval(this.tick,1e3))})},unmounted(){this.interval_id>0&&(window.clearTimeout(this.interval_id),this.interval_id=0)},methods:{tick:function(){this.is_dragged||(this.item_progress_ms+=1e3)},start_dragging:function(){console.log("@start"),this.is_dragged=!0},end_dragging:function(){console.log("@end"),this.is_dragged=!1},seek:function(e){G.player_seek_to_pos(e).catch(()=>{this.item_progress_ms=this.state.item_progress_ms})},open_dialog:function(e){this.selected_item=e,this.show_details_modal=!0}}},XO={key:0,class:"fd-is-fullheight"},QO={class:"fd-is-expanded"},eT={class:"fd-has-padding-left-right"},tT={class:"container has-text-centered"},sT={class:"control has-text-centered fd-progress-now-playing"},nT={class:"content"},rT={class:"fd-has-padding-left-right"},oT={class:"container has-text-centered fd-has-margin-top"},iT={class:"title is-5"},aT={class:"title is-6"},lT={key:0,class:"subtitle is-6 has-text-grey has-text-weight-bold"},uT={class:"subtitle is-6"},cT={key:1,class:"fd-is-fullheight"},dT=l("div",{class:"fd-is-expanded fd-has-padding-left-right",style:{"flex-direction":"column"}},[l("div",{class:"content has-text-centered"},[l("h1",{class:"title is-5"},"Your play queue is empty"),l("p",null,"Add some tracks by browsing your library")])],-1),fT=[dT];function hT(e,t,s,n,o,r){const i=B("cover-artwork"),a=B("Slider"),u=B("modal-dialog-queue-item");return x(),A("section",null,[r.now_playing.id>0?(x(),A("div",XO,[l("div",QO,[P(i,{artwork_url:r.now_playing.artwork_url,artist:r.now_playing.artist,album:r.now_playing.album,class:"fd-cover-image fd-has-action",onClick:t[0]||(t[0]=c=>r.open_dialog(r.now_playing))},null,8,["artwork_url","artist","album"])]),l("div",eT,[l("div",tT,[l("p",sT,[P(a,{ref:"slider",modelValue:o.item_progress_ms,"onUpdate:modelValue":t[1]||(t[1]=c=>o.item_progress_ms=c),min:0,max:r.state.item_length_ms,step:1e3,tooltips:!1,disabled:r.state.state==="stop",classes:{target:"seek-slider"},onChange:r.seek,onStart:r.start_dragging,onEnd:r.end_dragging},null,8,["modelValue","max","disabled","onChange","onStart","onEnd"])]),l("p",nT,[l("span",null,R(e.$filters.durationInHours(o.item_progress_ms))+" / "+R(e.$filters.durationInHours(r.now_playing.length_ms)),1)])])]),l("div",rT,[l("div",oT,[l("h1",iT,R(r.now_playing.title),1),l("h2",aT,R(r.now_playing.artist),1),r.composer?(x(),A("h2",lT,R(r.composer),1)):Y("",!0),l("h3",uT,R(r.now_playing.album),1)])])])):(x(),A("div",cT,fT)),P(u,{show:o.show_details_modal,item:o.selected_item,onClose:t[2]||(t[2]=c=>o.show_details_modal=!1)},null,8,["show","item"])])}var mT=ge(JO,[["render",hT]]);const pT={name:"TabsMusic",computed:{spotify_enabled(){return this.$store.state.spotify.webapi_token_valid}}},_T={class:"section fd-tabs-section"},gT={class:"container"},vT={class:"columns is-centered"},yT={class:"column is-four-fifths"},bT={class:"tabs is-centered is-small"},wT=["onClick","onKeypress"],kT=l("span",{class:"icon is-small"},[l("i",{class:"mdi mdi-web"})],-1),xT=l("span",{class:""},"Browse",-1),ST=[kT,xT],ET=["onClick","onKeypress"],CT=l("span",{class:"icon is-small"},[l("i",{class:"mdi mdi-artist"})],-1),$T=l("span",{class:""},"Artists",-1),OT=[CT,$T],TT=["onClick","onKeypress"],AT=l("span",{class:"icon is-small"},[l("i",{class:"mdi mdi-album"})],-1),PT=l("span",{class:""},"Albums",-1),DT=[AT,PT],FT=["onClick","onKeypress"],IT=l("span",{class:"icon is-small"},[l("i",{class:"mdi mdi-speaker"})],-1),RT=l("span",{class:""},"Genres",-1),NT=[IT,RT],MT=["onClick","onKeypress"],LT=l("span",{class:"icon is-small"},[l("i",{class:"mdi mdi-book-open-page-variant"})],-1),jT=l("span",{class:""},"Composers",-1),BT=[LT,jT],UT=["onClick","onKeypress"],VT=l("span",{class:"icon is-small"},[l("i",{class:"mdi mdi-spotify"})],-1),HT=l("span",{class:""},"Spotify",-1),qT=[VT,HT];function zT(e,t,s,n,o,r){const i=B("router-link");return x(),A("section",_T,[l("div",gT,[l("div",vT,[l("div",yT,[l("div",bT,[l("ul",null,[P(i,{to:"/music/browse",custom:""},{default:T(({navigate:a,isActive:u})=>[l("li",{class:Le({"is-active":u})},[l("a",{onClick:a,onKeypress:bs(a,["enter"])},ST,40,wT)],2)]),_:1}),P(i,{to:"/music/artists",custom:""},{default:T(({navigate:a,isActive:u})=>[l("li",{class:Le({"is-active":u})},[l("a",{onClick:a,onKeypress:bs(a,["enter"])},OT,40,ET)],2)]),_:1}),P(i,{to:"/music/albums",custom:""},{default:T(({navigate:a,isActive:u})=>[l("li",{class:Le({"is-active":u})},[l("a",{onClick:a,onKeypress:bs(a,["enter"])},DT,40,TT)],2)]),_:1}),P(i,{to:"/music/genres",custom:""},{default:T(({navigate:a,isActive:u})=>[l("li",{class:Le({"is-active":u})},[l("a",{onClick:a,onKeypress:bs(a,["enter"])},NT,40,FT)],2)]),_:1}),P(i,{to:"/music/composers",custom:""},{default:T(({navigate:a,isActive:u})=>[l("li",{class:Le({"is-active":u})},[l("a",{onClick:a,onKeypress:bs(a,["enter"])},BT,40,MT)],2)]),_:1}),r.spotify_enabled?(x(),xe(i,{key:0,to:"/music/spotify",custom:""},{default:T(({navigate:a,isActive:u})=>[l("li",{class:Le({"is-active":u})},[l("a",{onClick:a,onKeypress:bs(a,["enter"])},qT,40,UT)],2)]),_:1})):Y("",!0)])])])])])])}var nn=ge(pT,[["render",zT]]);const GT={name:"ModalDialogAlbum",components:{CoverArtwork:yn},props:["show","album","media_kind","new_tracks"],emits:["close","remove-podcast","play-count-changed"],data(){return{artwork_visible:!1}},computed:{artwork_url:function(){return G.artwork_url_append_size_params(this.album.artwork_url)},media_kind_resolved:function(){return this.media_kind?this.media_kind:this.album.media_kind}},methods:{play:function(){this.$emit("close"),G.player_play_uri(this.album.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.album.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.album.uri)},open_album:function(){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:function(){this.media_kind_resolved==="podcast"||(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:function(){G.library_album_track_update(this.album.id,{play_count:"played"}).then(({data:e})=>{this.$emit("play-count-changed"),this.$emit("close")})},artwork_loaded:function(){this.artwork_visible=!0},artwork_error:function(){this.artwork_visible=!1}}},WT={key:0,class:"modal is-active"},KT={class:"modal-content fd-modal-card"},YT={class:"card"},ZT={class:"card-content"},JT={class:"title is-4"},XT={key:0,class:"buttons"},QT={class:"content is-small"},eA={key:0},tA=l("span",{class:"heading"},"Album artist",-1),sA={key:1},nA=l("span",{class:"heading"},"Release date",-1),rA={class:"title is-6"},oA={key:2},iA=l("span",{class:"heading"},"Year",-1),aA={class:"title is-6"},lA=l("span",{class:"heading"},"Tracks",-1),uA={class:"title is-6"},cA=l("span",{class:"heading"},"Length",-1),dA={class:"title is-6"},fA=l("span",{class:"heading"},"Type",-1),hA={class:"title is-6"},mA=l("span",{class:"heading"},"Added at",-1),pA={class:"title is-6"},_A={class:"card-footer"},gA=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-plus"})],-1),vA=l("span",{class:"is-size-7"},"Add",-1),yA=[gA,vA],bA=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-play"})],-1),wA=l("span",{class:"is-size-7"},"Add Next",-1),kA=[bA,wA],xA=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),SA=l("span",{class:"is-size-7"},"Play",-1),EA=[xA,SA];function CA(e,t,s,n,o,r){const i=B("cover-artwork");return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",WT,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),l("div",KT,[l("div",YT,[l("div",ZT,[P(i,{artwork_url:s.album.artwork_url,artist:s.album.artist,album:s.album.name,class:"image is-square fd-has-margin-bottom fd-has-shadow"},null,8,["artwork_url","artist","album"]),l("p",JT,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>r.open_album&&r.open_album(...a))},R(s.album.name),1)]),r.media_kind_resolved==="podcast"?(x(),A("div",XT,[l("a",{class:"button is-small",onClick:t[2]||(t[2]=(...a)=>r.mark_played&&r.mark_played(...a))},"Mark as played"),l("a",{class:"button is-small",onClick:t[3]||(t[3]=a=>e.$emit("remove-podcast"))},"Remove podcast")])):Y("",!0),l("div",QT,[s.album.artist?(x(),A("p",eA,[tA,l("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...a)=>r.open_artist&&r.open_artist(...a))},R(s.album.artist),1)])):Y("",!0),s.album.date_released?(x(),A("p",sA,[nA,l("span",rA,R(e.$filters.date(s.album.date_released)),1)])):s.album.year>0?(x(),A("p",oA,[iA,l("span",aA,R(s.album.year),1)])):Y("",!0),l("p",null,[lA,l("span",uA,R(s.album.track_count),1)]),l("p",null,[cA,l("span",dA,R(e.$filters.durationInHours(s.album.length_ms)),1)]),l("p",null,[fA,l("span",hA,R(s.album.media_kind)+" - "+R(s.album.data_kind),1)]),l("p",null,[mA,l("span",pA,R(e.$filters.datetime(s.album.time_added)),1)])])]),l("footer",_A,[l("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>r.queue_add&&r.queue_add(...a))},yA),l("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>r.queue_add_next&&r.queue_add_next(...a))},kA),l("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...a)=>r.play&&r.play(...a))},EA)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=a=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var Ml=ge(GT,[["render",CA]]);const $A={name:"ModalDialog",props:["show","title","ok_action","delete_action","close_action"],emits:["delete","close","ok"]},OA={key:0,class:"modal is-active"},TA={class:"modal-content fd-modal-card"},AA={class:"card"},PA={class:"card-content"},DA={key:0,class:"title is-4"},FA={class:"card-footer"},IA=l("span",{class:"icon"},[l("i",{class:"mdi mdi-cancel"})],-1),RA={class:"is-size-7"},NA=l("span",{class:"icon"},[l("i",{class:"mdi mdi-delete"})],-1),MA={class:"is-size-7"},LA=l("span",{class:"icon"},[l("i",{class:"mdi mdi-check"})],-1),jA={class:"is-size-7"};function BA(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",OA,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",TA,[l("div",AA,[l("div",PA,[s.title?(x(),A("p",DA,R(s.title),1)):Y("",!0),xt(e.$slots,"modal-content")]),l("footer",FA,[l("a",{class:"card-footer-item has-text-dark",onClick:t[1]||(t[1]=i=>e.$emit("close"))},[IA,l("span",RA,R(s.close_action?s.close_action:"Cancel"),1)]),s.delete_action?(x(),A("a",{key:0,class:"card-footer-item has-background-danger has-text-white has-text-weight-bold",onClick:t[2]||(t[2]=i=>e.$emit("delete"))},[NA,l("span",MA,R(s.delete_action),1)])):Y("",!0),s.ok_action?(x(),A("a",{key:1,class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[3]||(t[3]=i=>e.$emit("ok"))},[LA,l("span",jA,R(s.ok_action),1)])):Y("",!0)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[4]||(t[4]=i=>e.$emit("close"))})])):Y("",!0)]),_:3})])}var jd=ge($A,[["render",BA]]);const UA={name:"ListAlbums",components:{ModalDialogAlbum:Ml,ModalDialog:jd},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:{},artwork_options:{width:600,height:600,font_family:"sans-serif",font_size:200,font_weight:600,lazy_lifecycle:{error:e=>{e.src=this.dataURI(e.attributes.album.value,e.attributes.artist.value)}}}}},computed:{is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value},media_kind_resolved:function(){return this.media_kind?this.media_kind:this.selected_album.media_kind}},methods:{open_album:function(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:function(e){this.selected_album=e,this.show_details_modal=!0},open_remove_podcast_dialog:function(){G.library_album_tracks(this.selected_album.id,{limit:1}).then(({data:e})=>{G.library_track_playlists(e.items[0].id).then(({data:t})=>{const s=t.items.filter(n=>n.type==="rss");if(s.length!==1){this.$store.dispatch("add_notification",{text:"Podcast cannot be removed. Probably it was not added as an RSS playlist.",type:"danger"});return}this.rss_playlist_to_remove=s[0],this.show_remove_podcast_modal=!0,this.show_details_modal=!1})})},play_count_changed:function(){this.$emit("play-count-changed")},remove_podcast:function(){this.show_remove_podcast_modal=!1,G.library_playlist_delete(this.rss_playlist_to_remove.id).then(()=>{this.$emit("podcast-deleted")})},artwork_url_with_size:function(e){return this.artwork_options.width>0&&this.artwork_options.height>0?G.artwork_url_append_size_params(e,this.artwork_options.width,this.artwork_options.height):G.artwork_url_append_size_params(e)},alt_text(e,t){return t+" - "+e},caption(e,t){return e?e.substring(0,2):t?t.substring(0,2):""},dataURI:function(e,t){const s=this.caption(e,t),n=this.alt_text(e,t);return hv(s,n,{width:this.artwork_options.width,height:this.artwork_options.height,font_family:this.artwork_options.font_family,font_size:this.artwork_options.font_size,font_weight:this.artwork_options.font_weight})}}},VA={key:0,class:"mt-6 mb-5 py-2"},HA=["id"],qA=["onClick"],zA={key:0,class:"media-left fd-has-action"},GA={class:"image is-64x64 fd-has-shadow fd-has-action"},WA=["album","artist"],KA={class:"media-content fd-has-action is-clipped"},YA={style:{"margin-top":"0.7rem"}},ZA={class:"title is-6"},JA={class:"subtitle is-7 has-text-grey"},XA={key:0,class:"subtitle is-7 has-text-grey has-text-weight-normal"},QA={class:"media-right",style:{"padding-top":"0.7rem"}},eP=["onClick"],tP=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),sP=[tP],nP=l("p",null,"Permanently remove this podcast from your library?",-1),rP={class:"is-size-7"},oP=$e(" (This will also remove the RSS playlist "),iP=$e(".) ");function aP(e,t,s,n,o,r){const i=B("modal-dialog-album"),a=B("modal-dialog"),u=xl("lazy");return x(),A(Ke,null,[(x(!0),A(Ke,null,bt(s.albums,c=>(x(),A(Ke,{key:c.itemId},[!c.isItem&&!s.hide_group_title?(x(),A("div",VA,[l("span",{id:"index_"+c.groupKey,class:"tag is-info is-light is-small has-text-weight-bold"},R(c.groupKey),9,HA)])):c.isItem?(x(),A("div",{key:1,class:"media",onClick:d=>r.open_album(c.item)},[r.is_visible_artwork?(x(),A("div",zA,[l("div",GA,[l("figure",null,[wt(l("img",{album:c.item.name,artist:c.item.artist},null,8,WA),[[u,{src:r.artwork_url_with_size(c.item.artwork_url),lifecycle:o.artwork_options.lazy_lifecycle}]])])])])):Y("",!0),l("div",KA,[l("div",YA,[l("h1",ZA,R(c.item.name),1),l("h2",JA,[l("b",null,R(c.item.artist),1)]),c.item.date_released&&c.item.media_kind==="music"?(x(),A("h2",XA,R(e.$filters.date(c.item.date_released)),1)):Y("",!0)])]),l("div",QA,[l("a",{onClick:pt(d=>r.open_dialog(c.item),["prevent","stop"])},sP,8,eP)])],8,qA)):Y("",!0)],64))),128)),(x(),xe(qn,{to:"#app"},[P(i,{show:o.show_details_modal,album:o.selected_album,media_kind:s.media_kind,onRemovePodcast:t[0]||(t[0]=c=>r.open_remove_podcast_dialog()),onPlayCountChanged:t[1]||(t[1]=c=>r.play_count_changed()),onClose:t[2]||(t[2]=c=>o.show_details_modal=!1)},null,8,["show","album","media_kind"]),P(a,{show:o.show_remove_podcast_modal,title:"Remove podcast",delete_action:"Remove",onClose:t[3]||(t[3]=c=>o.show_remove_podcast_modal=!1),onDelete:r.remove_podcast},{"modal-content":T(()=>[nP,l("p",rP,[oP,l("b",null,R(o.rss_playlist_to_remove.name),1),iP])]),_:1},8,["show","onDelete"])]))],64)}var rn=ge(UA,[["render",aP]]);const lP={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 Gs;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:function(){this.$emit("close"),G.player_play_uri(this.track.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.track.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.track.uri)},open_album:function(){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:function(){this.$emit("close"),this.$router.push({path:"/music/artists/"+this.track.album_artist_id})},open_genre:function(){this.$router.push({name:"Genre",params:{genre:this.track.genre}})},open_spotify_artist:function(){this.$emit("close"),this.$router.push({path:"/music/spotify/artists/"+this.spotify_track.artists[0].id})},open_spotify_album:function(){this.$emit("close"),this.$router.push({path:"/music/spotify/albums/"+this.spotify_track.album.id})},mark_new:function(){G.library_track_update(this.track.id,{play_count:"reset"}).then(()=>{this.$emit("play-count-changed"),this.$emit("close")})},mark_played:function(){G.library_track_update(this.track.id,{play_count:"increment"}).then(()=>{this.$emit("play-count-changed"),this.$emit("close")})}}},uP={key:0,class:"modal is-active"},cP={class:"modal-content fd-modal-card"},dP={class:"card"},fP={class:"card-content"},hP={class:"title is-4"},mP={class:"subtitle"},pP={key:0,class:"buttons"},_P={class:"content is-small"},gP=l("span",{class:"heading"},"Album",-1),vP={key:0},yP=l("span",{class:"heading"},"Album artist",-1),bP={key:1},wP=l("span",{class:"heading"},"Composer",-1),kP={class:"title is-6"},xP={key:2},SP=l("span",{class:"heading"},"Release date",-1),EP={class:"title is-6"},CP={key:3},$P=l("span",{class:"heading"},"Year",-1),OP={class:"title is-6"},TP={key:4},AP=l("span",{class:"heading"},"Genre",-1),PP=l("span",{class:"heading"},"Track / Disc",-1),DP={class:"title is-6"},FP=l("span",{class:"heading"},"Length",-1),IP={class:"title is-6"},RP=l("span",{class:"heading"},"Path",-1),NP={class:"title is-6"},MP=l("span",{class:"heading"},"Type",-1),LP={class:"title is-6"},jP={key:0,class:"has-text-weight-normal"},BP=$e("("),UP=$e(", "),VP=$e(")"),HP=l("span",{class:"heading"},"Quality",-1),qP={class:"title is-6"},zP={key:0},GP={key:1},WP={key:2},KP=l("span",{class:"heading"},"Added at",-1),YP={class:"title is-6"},ZP=l("span",{class:"heading"},"Rating",-1),JP={class:"title is-6"},XP={key:5},QP=l("span",{class:"heading"},"Comment",-1),eD={class:"title is-6"},tD={class:"card-footer"},sD=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-plus"})],-1),nD=l("span",{class:"is-size-7"},"Add",-1),rD=[sD,nD],oD=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-play"})],-1),iD=l("span",{class:"is-size-7"},"Add Next",-1),aD=[oD,iD],lD=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),uD=l("span",{class:"is-size-7"},"Play",-1),cD=[lD,uD];function dD(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",uP,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",cP,[l("div",dP,[l("div",fP,[l("p",hP,R(s.track.title),1),l("p",mP,R(s.track.artist),1),s.track.media_kind==="podcast"?(x(),A("div",pP,[s.track.play_count>0?(x(),A("a",{key:0,class:"button is-small",onClick:t[1]||(t[1]=(...i)=>r.mark_new&&r.mark_new(...i))},"Mark as new")):Y("",!0),s.track.play_count===0?(x(),A("a",{key:1,class:"button is-small",onClick:t[2]||(t[2]=(...i)=>r.mark_played&&r.mark_played(...i))},"Mark as played")):Y("",!0)])):Y("",!0),l("div",_P,[l("p",null,[gP,l("a",{class:"title is-6 has-text-link",onClick:t[3]||(t[3]=(...i)=>r.open_album&&r.open_album(...i))},R(s.track.album),1)]),s.track.album_artist&&s.track.media_kind!=="audiobook"?(x(),A("p",vP,[yP,l("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...i)=>r.open_artist&&r.open_artist(...i))},R(s.track.album_artist),1)])):Y("",!0),s.track.composer?(x(),A("p",bP,[wP,l("span",kP,R(s.track.composer),1)])):Y("",!0),s.track.date_released?(x(),A("p",xP,[SP,l("span",EP,R(e.$filters.date(s.track.date_released)),1)])):s.track.year>0?(x(),A("p",CP,[$P,l("span",OP,R(s.track.year),1)])):Y("",!0),s.track.genre?(x(),A("p",TP,[AP,l("a",{class:"title is-6 has-text-link",onClick:t[5]||(t[5]=(...i)=>r.open_genre&&r.open_genre(...i))},R(s.track.genre),1)])):Y("",!0),l("p",null,[PP,l("span",DP,R(s.track.track_number)+" / "+R(s.track.disc_number),1)]),l("p",null,[FP,l("span",IP,R(e.$filters.durationInHours(s.track.length_ms)),1)]),l("p",null,[RP,l("span",NP,R(s.track.path),1)]),l("p",null,[MP,l("span",LP,[$e(R(s.track.media_kind)+" - "+R(s.track.data_kind)+" ",1),s.track.data_kind==="spotify"?(x(),A("span",jP,[BP,l("a",{onClick:t[6]||(t[6]=(...i)=>r.open_spotify_artist&&r.open_spotify_artist(...i))},"artist"),UP,l("a",{onClick:t[7]||(t[7]=(...i)=>r.open_spotify_album&&r.open_spotify_album(...i))},"album"),VP])):Y("",!0)])]),l("p",null,[HP,l("span",qP,[$e(R(s.track.type)+" ",1),s.track.samplerate?(x(),A("span",zP," | "+R(s.track.samplerate)+" Hz",1)):Y("",!0),s.track.channels?(x(),A("span",GP," | "+R(e.$filters.channels(s.track.channels)),1)):Y("",!0),s.track.bitrate?(x(),A("span",WP," | "+R(s.track.bitrate)+" Kb/s",1)):Y("",!0)])]),l("p",null,[KP,l("span",YP,R(e.$filters.datetime(s.track.time_added)),1)]),l("p",null,[ZP,l("span",JP,R(Math.floor(s.track.rating/10))+" / 10",1)]),s.track.comment?(x(),A("p",XP,[QP,l("span",eD,R(s.track.comment),1)])):Y("",!0)])]),l("footer",tD,[l("a",{class:"card-footer-item has-text-dark",onClick:t[8]||(t[8]=(...i)=>r.queue_add&&r.queue_add(...i))},rD),l("a",{class:"card-footer-item has-text-dark",onClick:t[9]||(t[9]=(...i)=>r.queue_add_next&&r.queue_add_next(...i))},aD),l("a",{class:"card-footer-item has-text-dark",onClick:t[10]||(t[10]=(...i)=>r.play_track&&r.play_track(...i))},cD)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[11]||(t[11]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var fD=ge(lP,[["render",dD]]);const hD={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 mD(e,t,s,n,o,r){return r.width>0?(x(),A("div",{key:0,class:"progress-bar mt-2",style:Hn({width:r.width_percent})},null,4)):Y("",!0)}var pD=ge(hD,[["render",mD]]);const _D={name:"ListTracks",components:{ModalDialogTrack:fD,ProgressBar:pD},props:["tracks","uris","expression","show_progress","show_icon"],emits:["play-count-changed"],data(){return{show_details_modal:!1,selected_track:{}}},methods:{play_track:function(e,t){this.uris?G.player_play_uri(this.uris,!1,e):this.expression?G.player_play_expression(this.expression,!1,e):G.player_play_uri(t.uri,!1)},open_dialog:function(e){this.selected_track=e,this.show_details_modal=!0}}},gD=["id","onClick"],vD={key:0,class:"media-left fd-has-action"},yD=l("span",{class:"icon"},[l("i",{class:"mdi mdi-file-outline"})],-1),bD=[yD],wD={class:"media-content fd-has-action is-clipped"},kD={class:"subtitle is-7 has-text-grey"},xD={class:"subtitle is-7 has-text-grey"},SD={class:"media-right"},ED=["onClick"],CD=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),$D=[CD];function OD(e,t,s,n,o,r){const i=B("progress-bar"),a=B("modal-dialog-track");return x(),A(Ke,null,[(x(!0),A(Ke,null,bt(s.tracks,(u,c)=>(x(),A("div",{id:"index_"+u.title_sort.charAt(0).toUpperCase(),key:u.id,class:Le(["media",{"with-progress":s.show_progress}]),onClick:d=>r.play_track(c,u)},[s.show_icon?(x(),A("figure",vD,bD)):Y("",!0),l("div",wD,[l("h1",{class:Le(["title is-6",{"has-text-grey":u.media_kind==="podcast"&&u.play_count>0}])},R(u.title),3),l("h2",kD,[l("b",null,R(u.artist),1)]),l("h2",xD,R(u.album),1),s.show_progress?(x(),xe(i,{key:0,max:u.length_ms,value:u.seek_ms},null,8,["max","value"])):Y("",!0)]),l("div",SD,[l("a",{onClick:pt(d=>r.open_dialog(u),["prevent","stop"])},$D,8,ED)])],10,gD))),128)),(x(),xe(qn,{to:"#app"},[P(a,{show:o.show_details_modal,track:o.selected_track,onClose:t[0]||(t[0]=u=>o.show_details_modal=!1),onPlayCountChanged:t[1]||(t[1]=u=>e.$emit("play-count-changed"))},null,8,["show","track"])]))],64)}var Cs=ge(_D,[["render",OD]]);const mv="GROUP_KEY_NONE";function TD(){return{compareFn:null,groupKeyFn:e=>mv}}function uo(e,t="_"){return{compareFn:null,groupKeyFn:s=>(s[e]||t).charAt(0).toUpperCase()}}function pv(e,t="_"){return{compareFn:(s,n)=>{const o=s[e]||t,r=n[e]||t;return o.localeCompare(r)},groupKeyFn:s=>(s[e]||t).charAt(0).toUpperCase()}}function tl(e,{direction:t="asc",defaultValue:s="0000"}){return{compareFn:(n,o)=>{const r=n[e]||s,i=o[e]||s,a=r.localeCompare(i);return t==="asc"?a:a*-1},groupKeyFn:n=>(n[e]||s).substring(0,4)}}function AD(e,t="0000"){return{compareFn:(s,n)=>{const o=s[e]||t;return(n[e]||t).localeCompare(o)},groupKeyFn:s=>{const n=s[e];if(!n)return t;const o=new Date().getTime()-new Date(n).getTime();return o<864e5?"Today":o<6048e5?"Last week":o<2592e6?"Last month":n.substring(0,4)}}}class mt{constructor({items:t=[],total:s=0,offset:n=0,limit:o=-1}={}){this.items=t,this.total=s,this.offset=n,this.limit=o,this.count=t.length,this.indexList=[],this.group(TD())}get(){return this.itemsByGroup}isEmpty(){return!this.items||this.items.length<=0}group(t,s=[]){const n=s?this.items.filter(r=>s.every(i=>i(r))):this.items;this.count=n.length;let o=t.compareFn?[...n].sort(t.compareFn):n;this.indexList=[...new Set(o.map(t.groupKeyFn))],this.itemsByGroup=o.reduce((r,i)=>{const a=t.groupKeyFn(i);return r[a]=[...r[a]||[],i],r},{})}[Symbol.iterator](){let t=-1,s=-1;return{next:()=>{if(t>=this.indexList.length)return{done:!0};if(t<0&&(++t,s=0,this.indexList[t]!==mv))return{value:{groupKey:this.indexList[t],itemId:this.indexList[t],isItem:!1,item:{}},done:!1};let n=this.indexList[t],o=this.itemsByGroup[n];if(s<o.length){const r=this.itemsByGroup[n][s++];return{value:{groupKey:n,itemId:r.id,isItem:!0,item:r},done:!1}}else return++t,s=0,t<this.indexList.length?(n=this.indexList[t],{value:{groupKey:n,itemId:n,isItem:!1,item:{}},done:!1}):{done:!0}}}}}const Ki={load:function(e){return Promise.all([G.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}),G.search({type:"track",expression:"time_played after 8 weeks ago and media_kind is music order by time_played desc",limit:3})])},set:function(e,t){e.recently_added=new mt(t[0].data.albums),e.recently_played=t[1].data.tracks}},PD={name:"PageBrowse",components:{ContentWithHeading:ft,TabsMusic:nn,ListAlbums:rn,ListTracks:Cs},beforeRouteEnter(e,t,s){Ki.load(e).then(n=>{s(o=>Ki.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;Ki.load(e).then(o=>{Ki.set(n,o),s()})},data(){return{recently_added:[],recently_played:{items:[]},show_track_details_modal:!1,selected_track:{}}},methods:{open_browse:function(e){this.$router.push({path:"/music/browse/"+e})}}},DD={class:"fd-page-with-tabs"},FD=l("p",{class:"title is-4"},"Recently added",-1),ID=l("p",{class:"heading"},"albums",-1),RD={class:"level"},ND={class:"level-item"},MD=l("p",{class:"title is-4"},"Recently played",-1),LD=l("p",{class:"heading"},"tracks",-1),jD={class:"level"},BD={class:"level-item"};function UD(e,t,s,n,o,r){const i=B("tabs-music"),a=B("list-albums"),u=B("content-with-heading"),c=B("list-tracks");return x(),A("div",DD,[P(i),P(u,null,{"heading-left":T(()=>[FD,ID]),content:T(()=>[P(a,{albums:o.recently_added},null,8,["albums"])]),footer:T(()=>[l("nav",RD,[l("p",ND,[l("a",{class:"button is-light is-small is-rounded",onClick:t[0]||(t[0]=d=>r.open_browse("recently_added"))},"Show more")])])]),_:1}),P(u,null,{"heading-left":T(()=>[MD,LD]),content:T(()=>[P(c,{tracks:o.recently_played.items},null,8,["tracks"])]),footer:T(()=>[l("nav",jD,[l("p",BD,[l("a",{class:"button is-light is-small is-rounded",onClick:t[1]||(t[1]=d=>r.open_browse("recently_played"))},"Show more")])])]),_:1})])}var VD=ge(PD,[["render",UD]]);const Yi={load:function(e){const t=it.getters.settings_option_recently_added_limit;return G.search({type:"album",expression:"media_kind is music having track_count > 3 order by time_added desc",limit:t})},set:function(e,t){e.recently_added=new mt(t.data.albums),e.recently_added.group(AD("time_added",{direction:"desc",defaultValue:"0000"}))}},HD={name:"PageBrowseType",components:{ContentWithHeading:ft,TabsMusic:nn,ListAlbums:rn},beforeRouteEnter(e,t,s){Yi.load(e).then(n=>{s(o=>Yi.set(o,n))})},beforeRouteUpdate(e,t,s){if(!this.recently_added.isEmpty()){s();return}const n=this;Yi.load(e).then(o=>{Yi.set(n,o),s()})},data(){return{recently_added:new mt}}},qD={class:"fd-page-with-tabs"},zD=l("p",{class:"title is-4"},"Recently added",-1),GD=l("p",{class:"heading"},"albums",-1);function WD(e,t,s,n,o,r){const i=B("tabs-music"),a=B("list-albums"),u=B("content-with-heading");return x(),A("div",qD,[P(i),P(u,null,{"heading-left":T(()=>[zD,GD]),content:T(()=>[P(a,{albums:o.recently_added},null,8,["albums"])]),_:1})])}var KD=ge(HD,[["render",WD]]);const Zi={load:function(e){return G.search({type:"track",expression:"time_played after 8 weeks ago and media_kind is music order by time_played desc",limit:50})},set:function(e,t){e.recently_played=t.data.tracks}},YD={name:"PageBrowseType",components:{ContentWithHeading:ft,TabsMusic:nn,ListTracks:Cs},beforeRouteEnter(e,t,s){Zi.load(e).then(n=>{s(o=>Zi.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;Zi.load(e).then(o=>{Zi.set(n,o),s()})},data(){return{recently_played:{}}}},ZD={class:"fd-page-with-tabs"},JD=l("p",{class:"title is-4"},"Recently played",-1),XD=l("p",{class:"heading"},"tracks",-1);function QD(e,t,s,n,o,r){const i=B("tabs-music"),a=B("list-tracks"),u=B("content-with-heading");return x(),A("div",ZD,[P(i),P(u,null,{"heading-left":T(()=>[JD,XD]),content:T(()=>[P(a,{tracks:o.recently_played.items},null,8,["tracks"])]),_:1})])}var eF=ge(YD,[["render",QD]]);const tF={name:"IndexButtonList",props:["index"],computed:{filtered_index(){if(!this.index)return[];const e="!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~";return this.index.filter(t=>!e.includes(t))}},methods:{nav:function(e){this.$router.push({hash:"#index_"+e})},scroll_to_top:function(){window.scrollTo({top:0,behavior:"smooth"})}}},sF={class:"buttons is-centered fd-is-square",style:{"margin-bottom":"16px"}},nF=["onClick"];function rF(e,t,s,n,o,r){return x(),A("section",null,[l("nav",sF,[(x(!0),A(Ke,null,bt(r.filtered_index,i=>(x(),A("a",{key:i,class:"button is-small",onClick:a=>r.nav(i)},R(i),9,nF))),128))])])}var bn=ge(tF,[["render",rF]]);const oF={name:"ModalDialogArtist",props:["show","artist"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_uri(this.artist.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.artist.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.artist.uri)},open_artist:function(){this.$emit("close"),this.$router.push({path:"/music/artists/"+this.artist.id})}}},iF={key:0,class:"modal is-active"},aF={class:"modal-content fd-modal-card"},lF={class:"card"},uF={class:"card-content"},cF={class:"title is-4"},dF={class:"content is-small"},fF=l("span",{class:"heading"},"Albums",-1),hF={class:"title is-6"},mF=l("span",{class:"heading"},"Tracks",-1),pF={class:"title is-6"},_F=l("span",{class:"heading"},"Type",-1),gF={class:"title is-6"},vF=l("span",{class:"heading"},"Added at",-1),yF={class:"title is-6"},bF={class:"card-footer"},wF=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-plus"})],-1),kF=l("span",{class:"is-size-7"},"Add",-1),xF=[wF,kF],SF=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-play"})],-1),EF=l("span",{class:"is-size-7"},"Add Next",-1),CF=[SF,EF],$F=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),OF=l("span",{class:"is-size-7"},"Play",-1),TF=[$F,OF];function AF(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",iF,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",aF,[l("div",lF,[l("div",uF,[l("p",cF,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...i)=>r.open_artist&&r.open_artist(...i))},R(s.artist.name),1)]),l("div",dF,[l("p",null,[fF,l("span",hF,R(s.artist.album_count),1)]),l("p",null,[mF,l("span",pF,R(s.artist.track_count),1)]),l("p",null,[_F,l("span",gF,R(s.artist.data_kind),1)]),l("p",null,[vF,l("span",yF,R(e.$filters.datetime(s.artist.time_added)),1)])])]),l("footer",bF,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...i)=>r.queue_add&&r.queue_add(...i))},xF),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...i)=>r.queue_add_next&&r.queue_add_next(...i))},CF),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...i)=>r.play&&r.play(...i))},TF)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var Ll=ge(oF,[["render",AF]]);const PF={name:"ListArtists",components:{ModalDialogArtist:Ll},props:["artists","media_kind","hide_group_title"],data(){return{show_details_modal:!1,selected_artist:{}}},computed:{media_kind_resolved:function(){return this.media_kind?this.media_kind:this.selected_artist.media_kind}},methods:{open_artist:function(e){this.selected_artist=e,this.media_kind_resolved==="podcast"||(this.media_kind_resolved==="audiobook"?this.$router.push({path:"/audiobooks/artists/"+e.id}):this.$router.push({path:"/music/artists/"+e.id}))},open_dialog:function(e){this.selected_artist=e,this.show_details_modal=!0}}},DF={key:0,class:"mt-6 mb-5 py-2"},FF={class:"media-content is-clipped"},IF=["id"],RF=["onClick"],NF={class:"media-content fd-has-action is-clipped"},MF={class:"title is-6"},LF={class:"media-right"},jF=["onClick"],BF=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),UF=[BF];function VF(e,t,s,n,o,r){const i=B("modal-dialog-artist");return x(),A(Ke,null,[(x(!0),A(Ke,null,bt(s.artists,a=>(x(),A(Ke,{key:a.itemId},[!a.isItem&&!s.hide_group_title?(x(),A("div",DF,[l("div",FF,[l("span",{id:"index_"+a.groupKey,class:"tag is-info is-light is-small has-text-weight-bold"},R(a.groupKey),9,IF)])])):a.isItem?(x(),A("div",{key:1,class:"media",onClick:u=>r.open_artist(a.item)},[l("div",NF,[l("h1",MF,R(a.item.name),1)]),l("div",LF,[l("a",{onClick:pt(u=>r.open_dialog(a.item),["prevent","stop"])},UF,8,jF)])],8,RF)):Y("",!0)],64))),128)),(x(),xe(qn,{to:"#app"},[P(i,{show:o.show_details_modal,artist:o.selected_artist,media_kind:s.media_kind,onClose:t[0]||(t[0]=a=>o.show_details_modal=!1)},null,8,["show","artist","media_kind"])]))],64)}var Bd=ge(PF,[["render",VF]]);const HF={name:"DropdownMenu",props:["modelValue","options"],emits:["update:modelValue"],data(){return{is_active:!1}},methods:{onClickOutside(e){this.is_active=!1},select(e){this.is_active=!1,this.$emit("update:modelValue",e)}}},qF={class:"dropdown-trigger"},zF=l("span",{class:"icon is-small"},[l("i",{class:"mdi mdi-chevron-down","aria-hidden":"true"})],-1),GF={id:"dropdown-menu",class:"dropdown-menu",role:"menu"},WF={class:"dropdown-content"},KF=["onClick"];function YF(e,t,s,n,o,r){const i=xl("click-away");return wt((x(),A("div",{class:Le(["dropdown",{"is-active":o.is_active}])},[l("div",qF,[l("button",{class:"button","aria-haspopup":"true","aria-controls":"dropdown-menu",onClick:t[0]||(t[0]=a=>o.is_active=!o.is_active)},[l("span",null,R(s.modelValue),1),zF])]),l("div",GF,[l("div",WF,[(x(!0),A(Ke,null,bt(s.options,a=>(x(),A("a",{key:a,class:Le(["dropdown-item",{"is-active":s.modelValue===a}]),onClick:u=>r.select(a)},R(a),11,KF))),128))])])],2)),[[i,r.onClickOutside]])}var Ud=ge(HF,[["render",YF]]);const Ji={load:function(e){return G.library_artists("music")},set:function(e,t){e.artists_list=new mt(t.data)}},ZF={name:"PageArtists",components:{ContentWithHeading:ft,TabsMusic:nn,IndexButtonList:bn,ListArtists:Bd,DropdownMenu:Ud},beforeRouteEnter(e,t,s){Ji.load(e).then(n=>{s(o=>Ji.set(o,n))})},beforeRouteUpdate(e,t,s){if(!this.artists_list.isEmpty()){s();return}const n=this;Ji.load(e).then(o=>{Ji.set(n,o),s()})},data(){return{artists_list:new mt,groupby_options:[{name:"Name",options:uo("name_sort")},{name:"Recently added",options:tl("time_added",{direction:"desc",defaultValue:"0000"})}]}},computed:{artists(){if(!this.artists_list)return[];const e=this.groupby_options.find(t=>t.name===this.selected_groupby_option_name);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},groupby_option_names(){return[...this.groupby_options].map(e=>e.name)},selected_groupby_option_name:{get(){return this.$store.state.artists_sort},set(e){this.$store.commit(M_,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(Al,e)}},hide_spotify:{get(){return this.$store.state.hide_spotify},set(e){this.$store.commit(wd,e)}}},methods:{}},JF={class:"fd-page-with-tabs"},XF={class:"columns"},QF={class:"column"},e3=l("p",{class:"heading",style:{"margin-bottom":"24px"}},"Filter",-1),t3={class:"field"},s3={class:"control"},n3=l("label",{for:"switchHideSingles"},"Hide singles",-1),r3=l("p",{class:"help"}," If active, hides artists that only appear on singles or playlists. ",-1),o3={key:0,class:"field"},i3={class:"control"},a3=l("label",{for:"switchHideSpotify"},"Hide artists from Spotify",-1),l3=l("p",{class:"help"}," If active, hides artists that only appear in your Spotify library. ",-1),u3={class:"column"},c3=l("p",{class:"heading",style:{"margin-bottom":"24px"}},"Sort by",-1),d3=l("p",{class:"title is-4"},"Artists",-1),f3={class:"heading"};function h3(e,t,s,n,o,r){const i=B("tabs-music"),a=B("index-button-list"),u=B("dropdown-menu"),c=B("list-artists"),d=B("content-with-heading");return x(),A("div",JF,[P(i),P(d,null,{options:T(()=>[P(a,{index:r.artists.indexList},null,8,["index"]),l("div",XF,[l("div",QF,[e3,l("div",t3,[l("div",s3,[wt(l("input",{id:"switchHideSingles","onUpdate:modelValue":t[0]||(t[0]=h=>r.hide_singles=h),type:"checkbox",name:"switchHideSingles",class:"switch"},null,512),[[pn,r.hide_singles]]),n3]),r3]),r.spotify_enabled?(x(),A("div",o3,[l("div",i3,[wt(l("input",{id:"switchHideSpotify","onUpdate:modelValue":t[1]||(t[1]=h=>r.hide_spotify=h),type:"checkbox",name:"switchHideSpotify",class:"switch"},null,512),[[pn,r.hide_spotify]]),a3]),l3])):Y("",!0)]),l("div",u3,[c3,P(u,{modelValue:r.selected_groupby_option_name,"onUpdate:modelValue":t[2]||(t[2]=h=>r.selected_groupby_option_name=h),options:r.groupby_option_names},null,8,["modelValue","options"])])])]),"heading-left":T(()=>[d3,l("p",f3,R(r.artists.count)+" Artists",1)]),"heading-right":T(()=>[]),content:T(()=>[P(c,{artists:r.artists},null,8,["artists"])]),_:1})])}var m3=ge(ZF,[["render",h3]]);const Xi={load:function(e){return Promise.all([G.library_artist(e.params.artist_id),G.library_artist_albums(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.albums_list=new mt(t[1].data)}},p3={name:"PageArtist",components:{ContentWithHeading:ft,ListAlbums:rn,ModalDialogArtist:Ll,DropdownMenu:Ud},beforeRouteEnter(e,t,s){Xi.load(e).then(n=>{s(o=>Xi.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;Xi.load(e).then(o=>{Xi.set(n,o),s()})},data(){return{artist:{},albums_list:new mt,groupby_options:[{name:"Name",options:uo("name_sort")},{name:"Release date",options:tl("date_released",{direction:"asc",defaultValue:"0000"})}],show_artist_details_modal:!1}},computed:{albums(){const e=this.groupby_options.find(t=>t.name===this.selected_groupby_option_name);return this.albums_list.group(e.options),this.albums_list},groupby_option_names(){return[...this.groupby_options].map(e=>e.name)},selected_groupby_option_name:{get(){return this.$store.state.artist_albums_sort},set(e){this.$store.commit(L_,e)}}},methods:{open_tracks:function(){this.$router.push({path:"/music/artists/"+this.artist.id+"/tracks"})},play:function(){G.player_play_uri(this.albums.items.map(e=>e.uri).join(","),!0)}}},_3={class:"columns"},g3={class:"column"},v3=l("p",{class:"heading",style:{"margin-bottom":"24px"}},"Sort by",-1),y3={class:"title is-4"},b3={class:"buttons is-centered"},w3=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),k3=[w3],x3=l("span",{class:"icon"},[l("i",{class:"mdi mdi-shuffle"})],-1),S3=l("span",null,"Shuffle",-1),E3=[x3,S3],C3={class:"heading has-text-centered-mobile"};function $3(e,t,s,n,o,r){const i=B("dropdown-menu"),a=B("list-albums"),u=B("modal-dialog-artist"),c=B("content-with-heading");return x(),xe(c,null,{options:T(()=>[l("div",_3,[l("div",g3,[v3,P(i,{modelValue:r.selected_groupby_option_name,"onUpdate:modelValue":t[0]||(t[0]=d=>r.selected_groupby_option_name=d),options:r.groupby_option_names},null,8,["modelValue","options"])])])]),"heading-left":T(()=>[l("p",y3,R(o.artist.name),1)]),"heading-right":T(()=>[l("div",b3,[l("a",{class:"button is-small is-light is-rounded",onClick:t[1]||(t[1]=d=>o.show_artist_details_modal=!0)},k3),l("a",{class:"button is-small is-dark is-rounded",onClick:t[2]||(t[2]=(...d)=>r.play&&r.play(...d))},E3)])]),content:T(()=>[l("p",C3,[$e(R(o.artist.album_count)+" albums | ",1),l("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...d)=>r.open_tracks&&r.open_tracks(...d))},R(o.artist.track_count)+" tracks",1)]),P(a,{albums:r.albums,hide_group_title:!0},null,8,["albums"]),P(u,{show:o.show_artist_details_modal,artist:o.artist,onClose:t[4]||(t[4]=d=>o.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var O3=ge(p3,[["render",$3]]);const Qi={load:function(e){return G.library_albums("music")},set:function(e,t){e.albums_list=new mt(t.data)}},T3={name:"PageAlbums",components:{ContentWithHeading:ft,TabsMusic:nn,IndexButtonList:bn,ListAlbums:rn,DropdownMenu:Ud},beforeRouteEnter(e,t,s){Qi.load(e).then(n=>{s(o=>Qi.set(o,n))})},beforeRouteUpdate(e,t,s){if(!this.albums_list.isEmpty()){s();return}const n=this;Qi.load(e).then(o=>{Qi.set(n,o),s()})},data(){return{albums_list:new mt,groupby_options:[{name:"Name",options:uo("name_sort")},{name:"Recently added",options:tl("time_added",{direction:"desc",defaultValue:"0000"})},{name:"Recently released",options:tl("date_released",{direction:"desc",defaultValue:"0000"})}]}},computed:{albums(){const e=this.groupby_options.find(t=>t.name===this.selected_groupby_option_name);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},groupby_option_names(){return[...this.groupby_options].map(e=>e.name)},selected_groupby_option_name:{get(){return this.$store.state.albums_sort},set(e){this.$store.commit(j_,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(Al,e)}},hide_spotify:{get(){return this.$store.state.hide_spotify},set(e){this.$store.commit(wd,e)}}},methods:{scrollToTop:function(){window.scrollTo({top:0,behavior:"smooth"})}}},A3={class:"fd-page-with-tabs"},P3={class:"columns"},D3={class:"column"},F3=l("p",{class:"heading",style:{"margin-bottom":"24px"}},"Filter",-1),I3={class:"field"},R3={class:"control"},N3=l("label",{for:"switchHideSingles"},"Hide singles",-1),M3=l("p",{class:"help"}," If active, hides singles and albums with tracks that only appear in playlists. ",-1),L3={key:0,class:"field"},j3={class:"control"},B3=l("label",{for:"switchHideSpotify"},"Hide albums from Spotify",-1),U3=l("p",{class:"help"}," If active, hides albums that only appear in your Spotify library. ",-1),V3={class:"column"},H3=l("p",{class:"heading",style:{"margin-bottom":"24px"}},"Sort by",-1),q3=l("p",{class:"title is-4"},"Albums",-1),z3={class:"heading"};function G3(e,t,s,n,o,r){const i=B("tabs-music"),a=B("index-button-list"),u=B("dropdown-menu"),c=B("list-albums"),d=B("content-with-heading");return x(),A("div",A3,[P(i),P(d,null,{options:T(()=>[P(a,{index:r.albums.indexList},null,8,["index"]),l("div",P3,[l("div",D3,[F3,l("div",I3,[l("div",R3,[wt(l("input",{id:"switchHideSingles","onUpdate:modelValue":t[0]||(t[0]=h=>r.hide_singles=h),type:"checkbox",name:"switchHideSingles",class:"switch"},null,512),[[pn,r.hide_singles]]),N3]),M3]),r.spotify_enabled?(x(),A("div",L3,[l("div",j3,[wt(l("input",{id:"switchHideSpotify","onUpdate:modelValue":t[1]||(t[1]=h=>r.hide_spotify=h),type:"checkbox",name:"switchHideSpotify",class:"switch"},null,512),[[pn,r.hide_spotify]]),B3]),U3])):Y("",!0)]),l("div",V3,[H3,P(u,{modelValue:r.selected_groupby_option_name,"onUpdate:modelValue":t[2]||(t[2]=h=>r.selected_groupby_option_name=h),options:r.groupby_option_names},null,8,["modelValue","options"])])])]),"heading-left":T(()=>[q3,l("p",z3,R(r.albums.count)+" Albums",1)]),"heading-right":T(()=>[]),content:T(()=>[P(c,{albums:r.albums},null,8,["albums"])]),_:1})])}var W3=ge(T3,[["render",G3]]);const K3={},Y3={class:"hero is-light is-bold fd-content"},Z3={class:"hero-body"},J3={class:"container"},X3={class:"columns is-centered"},Q3={class:"column is-four-fifths"},eI={class:"columns",style:{"flex-direction":"row-reverse"}},tI={class:"column fd-has-cover"},sI={class:"column is-three-fifths has-text-centered-mobile",style:{margin:"auto 0"}},nI={class:"section fd-content"},rI={class:"container"},oI={class:"columns is-centered"},iI={class:"column is-four-fifths"},aI={style:{"margin-top":"16px"}};function lI(e,t){return x(),A("div",null,[l("section",Y3,[l("div",Z3,[l("div",J3,[l("div",X3,[l("div",Q3,[l("div",eI,[l("div",tI,[xt(e.$slots,"heading-right")]),l("div",sI,[xt(e.$slots,"heading-left")])])])])])])]),l("section",nI,[l("div",rI,[l("div",oI,[l("div",iI,[xt(e.$slots,"content"),l("div",aI,[xt(e.$slots,"footer")])])])])])])}var Vd=ge(K3,[["render",lI]]);const ea={load:function(e){return Promise.all([G.library_album(e.params.album_id),G.library_album_tracks(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=t[1].data.items}},uI={name:"PageAlbum",components:{ContentWithHero:Vd,ListTracks:Cs,ModalDialogAlbum:Ml,CoverArtwork:yn},beforeRouteEnter(e,t,s){ea.load(e).then(n=>{s(o=>ea.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;ea.load(e).then(o=>{ea.set(n,o),s()})},data(){return{album:{},tracks:[],show_album_details_modal:!1}},methods:{open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/artists/"+this.album.artist_id})},play:function(){G.player_play_uri(this.album.uri,!0)}}},cI={class:"title is-5"},dI={class:"subtitle is-6 has-text-link has-text-weight-normal"},fI={class:"buttons fd-is-centered-mobile fd-has-margin-top"},hI=l("span",{class:"icon"},[l("i",{class:"mdi mdi-shuffle"})],-1),mI=l("span",null,"Shuffle",-1),pI=[hI,mI],_I=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),gI=[_I],vI={class:"image is-square fd-has-shadow fd-has-action"},yI={class:"heading is-7 has-text-centered-mobile fd-has-margin-top"};function bI(e,t,s,n,o,r){const i=B("cover-artwork"),a=B("list-tracks"),u=B("modal-dialog-album"),c=B("content-with-hero");return x(),xe(c,null,{"heading-left":T(()=>[l("h1",cI,R(o.album.name),1),l("h2",dI,[l("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...d)=>r.open_artist&&r.open_artist(...d))},R(o.album.artist),1)]),l("div",fI,[l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>r.play&&r.play(...d))},pI),l("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=d=>o.show_album_details_modal=!0)},gI)])]),"heading-right":T(()=>[l("p",vI,[P(i,{artwork_url:o.album.artwork_url,artist:o.album.artist,album:o.album.name,onClick:t[3]||(t[3]=d=>o.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:T(()=>[l("p",yI,R(o.album.track_count)+" tracks ",1),P(a,{tracks:o.tracks,uris:o.album.uri},null,8,["tracks","uris"]),P(u,{show:o.show_album_details_modal,album:o.album,onClose:t[4]||(t[4]=d=>o.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var wI=ge(uI,[["render",bI]]);const kI={name:"ModalDialogGenre",props:["show","genre"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_expression('genre is "'+this.genre.name+'" and media_kind is music',!1)},queue_add:function(){this.$emit("close"),G.queue_expression_add('genre is "'+this.genre.name+'" and media_kind is music')},queue_add_next:function(){this.$emit("close"),G.queue_expression_add_next('genre is "'+this.genre.name+'" and media_kind is music')},open_genre:function(){this.$emit("close"),this.$router.push({name:"Genre",params:{genre:this.genre.name}})}}},xI={key:0,class:"modal is-active"},SI={class:"modal-content fd-modal-card"},EI={class:"card"},CI={class:"card-content"},$I={class:"title is-4"},OI={class:"content is-small"},TI=l("span",{class:"heading"},"Albums",-1),AI={class:"title is-6"},PI=l("span",{class:"heading"},"Tracks",-1),DI={class:"title is-6"},FI=l("span",{class:"heading"},"Length",-1),II={class:"title is-6"},RI={class:"card-footer"},NI=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-plus"})],-1),MI=l("span",{class:"is-size-7"},"Add",-1),LI=[NI,MI],jI=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-play"})],-1),BI=l("span",{class:"is-size-7"},"Add Next",-1),UI=[jI,BI],VI=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),HI=l("span",{class:"is-size-7"},"Play",-1),qI=[VI,HI];function zI(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",xI,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",SI,[l("div",EI,[l("div",CI,[l("p",$I,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...i)=>r.open_genre&&r.open_genre(...i))},R(s.genre.name),1)]),l("div",OI,[l("p",null,[TI,l("span",AI,R(s.genre.album_count),1)]),l("p",null,[PI,l("span",DI,R(s.genre.track_count),1)]),l("p",null,[FI,l("span",II,R(e.$filters.durationInHours(s.genre.length_ms)),1)])])]),l("footer",RI,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...i)=>r.queue_add&&r.queue_add(...i))},LI),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...i)=>r.queue_add_next&&r.queue_add_next(...i))},UI),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...i)=>r.play&&r.play(...i))},qI)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var Hd=ge(kI,[["render",zI]]);const GI={name:"ListGenres",components:{ModalDialogGenre:Hd},props:["genres","media_kind","hide_group_title"],data(){return{show_details_modal:!1,selected_genre:{}}},computed:{media_kind_resolved:function(){return this.media_kind?this.media_kind:this.selected_genre.media_kind}},methods:{open_genre:function(e){this.$router.push({name:"Genre",params:{genre:e.name}})},open_dialog:function(e){this.selected_genre=e,this.show_details_modal=!0}}},WI={key:0,class:"mt-6 mb-5 py-2"},KI={class:"media-content is-clipped"},YI=["id"],ZI=["onClick"],JI={class:"media-content fd-has-action is-clipped"},XI={class:"title is-6"},QI={class:"media-right"},e4=["onClick"],t4=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),s4=[t4];function n4(e,t,s,n,o,r){const i=B("modal-dialog-genre");return x(),A(Ke,null,[(x(!0),A(Ke,null,bt(s.genres,a=>(x(),A(Ke,{key:a.itemId},[!a.isItem&&!s.hide_group_title?(x(),A("div",WI,[l("div",KI,[l("span",{id:"index_"+a.groupKey,class:"tag is-info is-light is-small has-text-weight-bold"},R(a.groupKey),9,YI)])])):a.isItem?(x(),A("div",{key:1,class:"media",onClick:u=>r.open_genre(a.item)},[l("div",JI,[l("h1",XI,R(a.item.name),1)]),l("div",QI,[l("a",{onClick:pt(u=>r.open_dialog(a.item),["prevent","stop"])},s4,8,e4)])],8,ZI)):Y("",!0)],64))),128)),(x(),xe(qn,{to:"#app"},[P(i,{show:o.show_details_modal,genre:o.selected_genre,onClose:t[0]||(t[0]=a=>o.show_details_modal=!1)},null,8,["show","genre"])]))],64)}var r4=ge(GI,[["render",n4]]);const ta={load:function(e){return G.library_genres("music")},set:function(e,t){e.genres=t.data,e.genres=new mt(t.data),e.genres.group(pv("name_sort"))}},o4={name:"PageGenres",components:{ContentWithHeading:ft,TabsMusic:nn,IndexButtonList:bn,ListGenres:r4},beforeRouteEnter(e,t,s){ta.load(e).then(n=>{s(o=>ta.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;ta.load(e).then(o=>{ta.set(n,o),s()})},data(){return{genres:new mt}},computed:{},methods:{}},i4={class:"fd-page-with-tabs"},a4=l("p",{class:"title is-4"},"Genres",-1),l4={class:"heading"};function u4(e,t,s,n,o,r){const i=B("tabs-music"),a=B("index-button-list"),u=B("list-genres"),c=B("content-with-heading");return x(),A("div",i4,[P(i),P(c,null,{options:T(()=>[P(a,{index:o.genres.indexList},null,8,["index"])]),"heading-left":T(()=>[a4,l("p",l4,R(o.genres.total)+" genres",1)]),content:T(()=>[P(u,{genres:o.genres},null,8,["genres"])]),_:1})])}var c4=ge(o4,[["render",u4]]);const sa={load:function(e){return Promise.all([G.library_genre(e.params.genre),G.library_genre_albums(e.params.genre)])},set:function(e,t){e.genre=t[0].data,e.albums_list=new mt(t[1].data.albums),e.albums_list.group(uo("name_sort"))}},d4={name:"PageGenre",components:{ContentWithHeading:ft,IndexButtonList:bn,ListAlbums:rn,ModalDialogGenre:Hd},beforeRouteEnter(e,t,s){sa.load(e).then(n=>{s(o=>sa.set(o,n))})},beforeRouteUpdate(e,t,s){if(!this.albums_list.isEmpty()){s();return}const n=this;sa.load(e).then(o=>{sa.set(n,o),s()})},data(){return{genre:{},albums_list:new mt,show_genre_details_modal:!1}},methods:{open_tracks:function(){this.show_details_modal=!1,this.$router.push({name:"GenreTracks",params:{genre:this.genre.name}})},play:function(){G.player_play_expression('genre is "'+this.genre.name+'" and media_kind is music',!0)}}},f4={class:"title is-4"},h4={class:"buttons is-centered"},m4=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),p4=[m4],_4=l("span",{class:"icon"},[l("i",{class:"mdi mdi-shuffle"})],-1),g4=l("span",null,"Shuffle",-1),v4=[_4,g4],y4={class:"heading has-text-centered-mobile"};function b4(e,t,s,n,o,r){const i=B("index-button-list"),a=B("list-albums"),u=B("modal-dialog-genre"),c=B("content-with-heading");return x(),A("div",null,[P(c,null,{options:T(()=>[P(i,{index:o.albums_list.indexList},null,8,["index"])]),"heading-left":T(()=>[l("p",f4,R(o.genre.name),1)]),"heading-right":T(()=>[l("div",h4,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>o.show_genre_details_modal=!0)},p4),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>r.play&&r.play(...d))},v4)])]),content:T(()=>[l("p",y4,[$e(R(o.genre.album_count)+" albums | ",1),l("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...d)=>r.open_tracks&&r.open_tracks(...d))},R(o.genre.track_count)+" tracks",1)]),P(a,{albums:o.albums_list},null,8,["albums"]),P(u,{show:o.show_genre_details_modal,genre:o.genre,onClose:t[3]||(t[3]=d=>o.show_genre_details_modal=!1)},null,8,["show","genre"])]),_:1})])}var w4=ge(d4,[["render",b4]]);const na={load:function(e){return Promise.all([G.library_genre(e.params.genre),G.library_genre_tracks(e.params.genre)])},set:function(e,t){e.genre=t[0].data,e.tracks=t[1].data.tracks}},k4={name:"PageGenreTracks",components:{ContentWithHeading:ft,ListTracks:Cs,IndexButtonList:bn,ModalDialogGenre:Hd},beforeRouteEnter(e,t,s){na.load(e).then(n=>{s(o=>na.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;na.load(e).then(o=>{na.set(n,o),s()})},data(){return{tracks:{items:[]},genre:"",show_genre_details_modal:!1}},computed:{index_list(){return[...new Set(this.tracks.items.map(e=>e.title_sort.charAt(0).toUpperCase()))]},expression(){return'genre is "'+this.genre.name+'" and media_kind is music'}},methods:{open_genre:function(){this.show_details_modal=!1,this.$router.push({name:"Genre",params:{genre:this.genre.name}})},play:function(){G.player_play_expression(this.expression,!0)}}},x4={class:"title is-4"},S4={class:"buttons is-centered"},E4=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),C4=[E4],$4=l("span",{class:"icon"},[l("i",{class:"mdi mdi-shuffle"})],-1),O4=l("span",null,"Shuffle",-1),T4=[$4,O4],A4={class:"heading has-text-centered-mobile"};function P4(e,t,s,n,o,r){const i=B("index-button-list"),a=B("list-tracks"),u=B("modal-dialog-genre"),c=B("content-with-heading");return x(),A("div",null,[P(c,null,{options:T(()=>[P(i,{index:r.index_list},null,8,["index"])]),"heading-left":T(()=>[l("p",x4,R(o.genre.name),1)]),"heading-right":T(()=>[l("div",S4,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>o.show_genre_details_modal=!0)},C4),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>r.play&&r.play(...d))},T4)])]),content:T(()=>[l("p",A4,[l("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...d)=>r.open_genre&&r.open_genre(...d))},R(o.genre.album_count)+" albums",1),$e(" | "+R(o.genre.track_count)+" tracks ",1)]),P(a,{tracks:o.tracks.items,expression:r.expression},null,8,["tracks","expression"]),P(u,{show:o.show_genre_details_modal,genre:o.genre,onClose:t[3]||(t[3]=d=>o.show_genre_details_modal=!1)},null,8,["show","genre"])]),_:1})])}var D4=ge(k4,[["render",P4]]);const ra={load:function(e){return Promise.all([G.library_artist(e.params.artist_id),G.library_artist_tracks(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.tracks=t[1].data.tracks}},F4={name:"PageArtistTracks",components:{ContentWithHeading:ft,ListTracks:Cs,IndexButtonList:bn,ModalDialogArtist:Ll},beforeRouteEnter(e,t,s){ra.load(e).then(n=>{s(o=>ra.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;ra.load(e).then(o=>{ra.set(n,o),s()})},data(){return{artist:{},tracks:{items:[]},show_artist_details_modal:!1}},computed:{index_list(){return[...new Set(this.tracks.items.map(e=>e.title_sort.charAt(0).toUpperCase()))]},track_uris(){return this.tracks.items.map(e=>e.uri).join(",")}},methods:{open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/artists/"+this.artist.id})},play:function(){G.player_play_uri(this.tracks.items.map(e=>e.uri).join(","),!0)}}},I4={class:"title is-4"},R4={class:"buttons is-centered"},N4=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),M4=[N4],L4=l("span",{class:"icon"},[l("i",{class:"mdi mdi-shuffle"})],-1),j4=l("span",null,"Shuffle",-1),B4=[L4,j4],U4={class:"heading has-text-centered-mobile"};function V4(e,t,s,n,o,r){const i=B("index-button-list"),a=B("list-tracks"),u=B("modal-dialog-artist"),c=B("content-with-heading");return x(),A("div",null,[P(c,null,{options:T(()=>[P(i,{index:r.index_list},null,8,["index"])]),"heading-left":T(()=>[l("p",I4,R(o.artist.name),1)]),"heading-right":T(()=>[l("div",R4,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>o.show_artist_details_modal=!0)},M4),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>r.play&&r.play(...d))},B4)])]),content:T(()=>[l("p",U4,[l("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...d)=>r.open_artist&&r.open_artist(...d))},R(o.artist.album_count)+" albums",1),$e(" | "+R(o.artist.track_count)+" tracks ",1)]),P(a,{tracks:o.tracks.items,uris:r.track_uris},null,8,["tracks","uris"]),P(u,{show:o.show_artist_details_modal,artist:o.artist,onClose:t[3]||(t[3]=d=>o.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})])}var H4=ge(F4,[["render",V4]]);const q4={name:"ModalDialogComposer",props:["show","composer"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_expression('composer is "'+this.composer.name+'" and media_kind is music',!1)},queue_add:function(){this.$emit("close"),G.queue_expression_add('composer is "'+this.composer.name+'" and media_kind is music')},queue_add_next:function(){this.$emit("close"),G.queue_expression_add_next('composer is "'+this.composer.name+'" and media_kind is music')},open_albums:function(){this.$emit("close"),this.$router.push({name:"ComposerAlbums",params:{composer:this.composer.name}})},open_tracks:function(){this.show_details_modal=!1,this.$router.push({name:"ComposerTracks",params:{composer:this.composer.name}})}}},z4={key:0,class:"modal is-active"},G4={class:"modal-content fd-modal-card"},W4={class:"card"},K4={class:"card-content"},Y4={class:"title is-4"},Z4=l("span",{class:"heading"},"Albums",-1),J4=l("span",{class:"heading"},"Tracks",-1),X4=l("span",{class:"heading"},"Length",-1),Q4={class:"title is-6"},e6={class:"card-footer"},t6=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-plus"})],-1),s6=l("span",{class:"is-size-7"},"Add",-1),n6=[t6,s6],r6=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-play"})],-1),o6=l("span",{class:"is-size-7"},"Add Next",-1),i6=[r6,o6],a6=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),l6=l("span",{class:"is-size-7"},"Play",-1),u6=[a6,l6];function c6(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",z4,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",G4,[l("div",W4,[l("div",K4,[l("p",Y4,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...i)=>r.open_albums&&r.open_albums(...i))},R(s.composer.name),1)]),l("p",null,[Z4,l("a",{class:"has-text-link is-6",onClick:t[2]||(t[2]=(...i)=>r.open_albums&&r.open_albums(...i))},R(s.composer.album_count),1)]),l("p",null,[J4,l("a",{class:"has-text-link is-6",onClick:t[3]||(t[3]=(...i)=>r.open_tracks&&r.open_tracks(...i))},R(s.composer.track_count),1)]),l("p",null,[X4,l("span",Q4,R(e.$filters.durationInHours(s.composer.length_ms)),1)])]),l("footer",e6,[l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...i)=>r.queue_add&&r.queue_add(...i))},n6),l("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...i)=>r.queue_add_next&&r.queue_add_next(...i))},i6),l("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...i)=>r.play&&r.play(...i))},u6)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[7]||(t[7]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var qd=ge(q4,[["render",c6]]);const d6={name:"ListComposers",components:{ModalDialogComposer:qd},props:["composers","media_kind","hide_group_title"],data(){return{show_details_modal:!1,selected_composer:{}}},computed:{media_kind_resolved:function(){return this.media_kind?this.media_kind:this.selected_composer.media_kind}},methods:{open_composer:function(e){this.selected_composer=e,this.$router.push({name:"ComposerTracks",params:{composer:e.name}})},open_dialog:function(e){this.selected_composer=e,this.show_details_modal=!0}}},f6={key:0,class:"mt-6 mb-5 py-2"},h6={class:"media-content is-clipped"},m6=["id"],p6=["onClick"],_6={class:"media-content fd-has-action is-clipped"},g6={class:"title is-6"},v6={class:"media-right"},y6=["onClick"],b6=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),w6=[b6];function k6(e,t,s,n,o,r){const i=B("modal-dialog-composer");return x(),A(Ke,null,[(x(!0),A(Ke,null,bt(s.composers,a=>(x(),A(Ke,{key:a.itemId},[!a.isItem&&!s.hide_group_title?(x(),A("div",f6,[l("div",h6,[l("span",{id:"index_"+a.groupKey,class:"tag is-info is-light is-small has-text-weight-bold"},R(a.groupKey),9,m6)])])):a.isItem?(x(),A("div",{key:1,class:"media",onClick:u=>r.open_composer(a.item)},[l("div",_6,[l("h1",g6,R(a.item.name),1)]),l("div",v6,[l("a",{onClick:pt(u=>r.open_dialog(a.item),["prevent","stop"])},w6,8,y6)])],8,p6)):Y("",!0)],64))),128)),(x(),xe(qn,{to:"#app"},[P(i,{show:o.show_details_modal,composer:o.selected_composer,media_kind:s.media_kind,onClose:t[0]||(t[0]=a=>o.show_details_modal=!1)},null,8,["show","composer","media_kind"])]))],64)}var _v=ge(d6,[["render",k6]]);const oa={load:function(e){return G.library_composers("music")},set:function(e,t){e.composers=new mt(t.data),e.composers.group(pv("name_sort"))}},x6={name:"PageComposers",components:{ContentWithHeading:ft,TabsMusic:nn,IndexButtonList:bn,ListComposers:_v},beforeRouteEnter(e,t,s){oa.load(e).then(n=>{s(o=>oa.set(o,n))})},beforeRouteUpdate(e,t,s){if(!this.composers.isEmpty()){s();return}const n=this;oa.load(e).then(o=>{oa.set(n,o),s()})},data(){return{composers:new mt}},methods:{}},S6=l("p",{class:"title is-4"},"Composers",-1),E6={class:"heading"};function C6(e,t,s,n,o,r){const i=B("tabs-music"),a=B("index-button-list"),u=B("list-composers"),c=B("content-with-heading");return x(),A("div",null,[P(i),P(c,null,{options:T(()=>[P(a,{index:o.composers.indexList},null,8,["index"])]),"heading-left":T(()=>[S6,l("p",E6,R(o.composers.total)+" composers",1)]),content:T(()=>[P(u,{composers:o.composers},null,8,["composers"])]),_:1})])}var $6=ge(x6,[["render",C6]]);const ia={load:function(e){return Promise.all([G.library_composer(e.params.composer),G.library_composer_albums(e.params.composer)])},set:function(e,t){e.composer=t[0].data,e.albums_list=new mt(t[1].data.albums)}},O6={name:"PageComposer",components:{ContentWithHeading:ft,ListAlbums:rn,ModalDialogComposer:qd},beforeRouteEnter(e,t,s){ia.load(e).then(n=>{s(o=>ia.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;ia.load(e).then(o=>{ia.set(n,o),s()})},data(){return{composer:{},albums_list:new mt,show_composer_details_modal:!1}},methods:{open_tracks:function(){this.$router.push({name:"ComposerTracks",params:{composer:this.composer.name}})},play:function(){G.player_play_expression('composer is "'+this.composer.name+'" and media_kind is music',!0)}}},T6={class:"title is-4"},A6={class:"buttons is-centered"},P6=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),D6=[P6],F6=l("span",{class:"icon"},[l("i",{class:"mdi mdi-shuffle"})],-1),I6=l("span",null,"Shuffle",-1),R6=[F6,I6],N6={class:"heading has-text-centered-mobile"};function M6(e,t,s,n,o,r){const i=B("list-albums"),a=B("modal-dialog-composer"),u=B("content-with-heading");return x(),A("div",null,[P(u,null,{"heading-left":T(()=>[l("p",T6,R(o.composer.name),1)]),"heading-right":T(()=>[l("div",A6,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=c=>o.show_composer_details_modal=!0)},D6),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...c)=>r.play&&r.play(...c))},R6)])]),content:T(()=>[l("p",N6,[$e(R(o.composer.album_count)+" albums | ",1),l("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...c)=>r.open_tracks&&r.open_tracks(...c))},R(o.composer.track_count)+" tracks",1)]),P(i,{albums:o.albums_list,hide_group_title:!0},null,8,["albums"]),P(a,{show:o.show_composer_details_modal,composer:o.composer,onClose:t[3]||(t[3]=c=>o.show_composer_details_modal=!1)},null,8,["show","composer"])]),_:1})])}var L6=ge(O6,[["render",M6]]);const aa={load:function(e){return Promise.all([G.library_composer(e.params.composer),G.library_composer_tracks(e.params.composer)])},set:function(e,t){e.composer=t[0].data,e.tracks=t[1].data.tracks}},j6={name:"PageComposerTracks",components:{ContentWithHeading:ft,ListTracks:Cs,ModalDialogComposer:qd},beforeRouteEnter(e,t,s){aa.load(e).then(n=>{s(o=>aa.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;aa.load(e).then(o=>{aa.set(n,o),s()})},data(){return{tracks:{items:[]},composer:{},show_composer_details_modal:!1}},computed:{play_expression(){return'composer is "'+this.composer.name+'" and media_kind is music'}},methods:{open_albums:function(){this.show_details_modal=!1,this.$router.push({name:"ComposerAlbums",params:{composer:this.composer.name}})},play:function(){G.player_play_expression(this.play_expression,!0)}}},B6={class:"title is-4"},U6={class:"buttons is-centered"},V6=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),H6=[V6],q6=l("span",{class:"icon"},[l("i",{class:"mdi mdi-shuffle"})],-1),z6=l("span",null,"Shuffle",-1),G6=[q6,z6],W6={class:"heading has-text-centered-mobile"};function K6(e,t,s,n,o,r){const i=B("list-tracks"),a=B("modal-dialog-composer"),u=B("content-with-heading");return x(),A("div",null,[P(u,null,{"heading-left":T(()=>[l("p",B6,R(o.composer.name),1)]),"heading-right":T(()=>[l("div",U6,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=c=>o.show_composer_details_modal=!0)},H6),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...c)=>r.play&&r.play(...c))},G6)])]),content:T(()=>[l("p",W6,[l("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...c)=>r.open_albums&&r.open_albums(...c))},R(o.composer.album_count)+" albums",1),$e(" | "+R(o.composer.track_count)+" tracks ",1)]),P(i,{tracks:o.tracks.items,expression:r.play_expression},null,8,["tracks","expression"]),P(a,{show:o.show_composer_details_modal,composer:o.composer,onClose:t[3]||(t[3]=c=>o.show_composer_details_modal=!1)},null,8,["show","composer"])]),_:1})])}var Y6=ge(j6,[["render",K6]]);const Z6={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:function(){this.loading=!0,G.library_add(this.url).then(()=>{this.$emit("close"),this.$emit("podcast-added"),this.url=""}).catch(()=>{this.loading=!1})}}},J6={key:0,class:"modal is-active"},X6={class:"modal-content fd-modal-card"},Q6={class:"card"},e8={class:"card-content"},t8=l("p",{class:"title is-4"},"Add Podcast RSS feed URL",-1),s8={class:"field"},n8={class:"control is-expanded has-icons-left"},r8=["disabled"],o8=l("span",{class:"icon is-left"},[l("i",{class:"mdi mdi-rss"})],-1),i8=l("p",{class:"help"}," Adding a podcast includes creating an RSS playlist, that will allow OwnTone to manage the podcast subscription. ",-1),a8={key:0,class:"card-footer"},l8=l("a",{class:"card-footer-item button is-loading"},[l("span",{class:"icon"},[l("i",{class:"mdi mdi-web"})]),l("span",{class:"is-size-7"},"Processing ...")],-1),u8=[l8],c8={key:1,class:"card-footer"},d8=l("span",{class:"icon"},[l("i",{class:"mdi mdi-cancel"})],-1),f8=l("span",{class:"is-size-7"},"Cancel",-1),h8=[d8,f8],m8=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-plus"})],-1),p8=l("span",{class:"is-size-7"},"Add",-1),_8=[m8,p8];function g8(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",J6,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",X6,[l("div",Q6,[l("div",e8,[t8,l("form",{onSubmit:t[2]||(t[2]=pt((...i)=>r.add_stream&&r.add_stream(...i),["prevent"]))},[l("div",s8,[l("p",n8,[wt(l("input",{ref:"url_field","onUpdate:modelValue":t[1]||(t[1]=i=>o.url=i),class:"input is-shadowless",type:"text",placeholder:"http://url-to-rss",disabled:o.loading},null,8,r8),[[es,o.url]]),o8]),i8])],32)]),o.loading?(x(),A("footer",a8,u8)):(x(),A("footer",c8,[l("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=i=>e.$emit("close"))},h8),l("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...i)=>r.add_stream&&r.add_stream(...i))},_8)]))])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var v8=ge(Z6,[["render",g8]]);const la={load:function(e){return Promise.all([G.library_albums("podcast"),G.library_podcasts_new_episodes()])},set:function(e,t){e.albums=new mt(t[0].data),e.new_episodes=t[1].data.tracks}},y8={name:"PagePodcasts",components:{ContentWithHeading:ft,ListTracks:Cs,ListAlbums:rn,ModalDialogAddRss:v8},beforeRouteEnter(e,t,s){la.load(e).then(n=>{s(o=>la.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;la.load(e).then(o=>{la.set(n,o),s()})},data(){return{albums:[],new_episodes:{items:[]},show_url_modal:!1}},computed:{rss(){return this.$store.state.rss_count}},methods:{mark_all_played:function(){this.new_episodes.items.forEach(e=>{G.library_track_update(e.id,{play_count:"increment"})}),this.new_episodes.items={}},open_add_podcast_dialog:function(e){this.show_url_modal=!0},reload_new_episodes:function(){G.library_podcasts_new_episodes().then(({data:e})=>{this.new_episodes=e.tracks})},reload_podcasts:function(){G.library_albums("podcast").then(({data:e})=>{this.albums=new mt(e),this.reload_new_episodes()})},update_rss:function(){this.$store.commit(kd,"rss"),this.$store.commit(vi,!0)}}},b8=l("p",{class:"title is-4"},"New episodes",-1),w8={class:"buttons is-centered"},k8=l("span",{class:"icon"},[l("i",{class:"mdi mdi-pencil"})],-1),x8=l("span",null,"Mark All Played",-1),S8=[k8,x8],E8=l("p",{class:"title is-4"},"Podcasts",-1),C8={class:"heading"},$8={class:"buttons is-centered"},O8=l("span",{class:"icon"},[l("i",{class:"mdi mdi-refresh"})],-1),T8=l("span",null,"Update",-1),A8=[O8,T8],P8=l("span",{class:"icon"},[l("i",{class:"mdi mdi-rss"})],-1),D8=l("span",null,"Add Podcast",-1),F8=[P8,D8];function I8(e,t,s,n,o,r){const i=B("list-tracks"),a=B("content-with-heading"),u=B("list-albums"),c=B("modal-dialog-add-rss");return x(),A("div",null,[o.new_episodes.items.length>0?(x(),xe(a,{key:0},{"heading-left":T(()=>[b8]),"heading-right":T(()=>[l("div",w8,[l("a",{class:"button is-small",onClick:t[0]||(t[0]=(...d)=>r.mark_all_played&&r.mark_all_played(...d))},S8)])]),content:T(()=>[P(i,{tracks:o.new_episodes.items,show_progress:!0,onPlayCountChanged:r.reload_new_episodes},null,8,["tracks","onPlayCountChanged"])]),_:1})):Y("",!0),P(a,null,{"heading-left":T(()=>[E8,l("p",C8,R(o.albums.total)+" podcasts",1)]),"heading-right":T(()=>[l("div",$8,[r.rss.tracks>0?(x(),A("a",{key:0,class:"button is-small",onClick:t[1]||(t[1]=(...d)=>r.update_rss&&r.update_rss(...d))},A8)):Y("",!0),l("a",{class:"button is-small",onClick:t[2]||(t[2]=(...d)=>r.open_add_podcast_dialog&&r.open_add_podcast_dialog(...d))},F8)])]),content:T(()=>[P(u,{albums:o.albums,onPlayCountChanged:t[3]||(t[3]=d=>r.reload_new_episodes()),onPodcastDeleted:t[4]||(t[4]=d=>r.reload_podcasts())},null,8,["albums"]),P(c,{show:o.show_url_modal,onClose:t[5]||(t[5]=d=>o.show_url_modal=!1),onPodcastAdded:t[6]||(t[6]=d=>r.reload_podcasts())},null,8,["show"])]),_:1})])}var R8=ge(y8,[["render",I8]]);const ua={load:function(e){return Promise.all([G.library_album(e.params.album_id),G.library_podcast_episodes(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=t[1].data.tracks.items}},N8={name:"PagePodcast",components:{ContentWithHeading:ft,ListTracks:Cs,ModalDialogAlbum:Ml,ModalDialog:jd},beforeRouteEnter(e,t,s){ua.load(e).then(n=>{s(o=>ua.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;ua.load(e).then(o=>{ua.set(n,o),s()})},data(){return{album:{},tracks:[],show_album_details_modal:!1,show_remove_podcast_modal:!1,rss_playlist_to_remove:{}}},computed:{new_tracks(){return this.tracks.filter(e=>e.play_count===0).length}},methods:{play:function(){G.player_play_uri(this.album.uri,!1)},open_remove_podcast_dialog:function(){this.show_album_details_modal=!1,G.library_track_playlists(this.tracks[0].id).then(({data:e})=>{const t=e.items.filter(s=>s.type==="rss");if(t.length!==1){this.$store.dispatch("add_notification",{text:"Podcast cannot be removed. Probably it was not added as an RSS playlist.",type:"danger"});return}this.rss_playlist_to_remove=t[0],this.show_remove_podcast_modal=!0})},remove_podcast:function(){this.show_remove_podcast_modal=!1,G.library_playlist_delete(this.rss_playlist_to_remove.id).then(()=>{this.$router.replace({path:"/podcasts"})})},reload_tracks:function(){G.library_podcast_episodes(this.album.id).then(({data:e})=>{this.tracks=e.tracks.items})}}},M8={class:"title is-4"},L8={class:"buttons is-centered"},j8=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),B8=[j8],U8=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),V8=l("span",null,"Play",-1),H8=[U8,V8],q8={class:"heading has-text-centered-mobile"},z8=l("p",null,"Permanently remove this podcast from your library?",-1),G8={class:"is-size-7"},W8=$e(" (This will also remove the RSS playlist "),K8=$e(".) ");function Y8(e,t,s,n,o,r){const i=B("list-tracks"),a=B("modal-dialog-album"),u=B("modal-dialog"),c=B("content-with-heading");return x(),xe(c,null,{"heading-left":T(()=>[l("div",M8,R(o.album.name),1)]),"heading-right":T(()=>[l("div",L8,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>o.show_album_details_modal=!0)},B8),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>r.play&&r.play(...d))},H8)])]),content:T(()=>[l("p",q8,R(o.album.track_count)+" tracks ",1),P(i,{tracks:o.tracks,show_progress:!0,onPlayCountChanged:r.reload_tracks},null,8,["tracks","onPlayCountChanged"]),P(a,{show:o.show_album_details_modal,album:o.album,media_kind:"podcast",new_tracks:r.new_tracks,onClose:t[2]||(t[2]=d=>o.show_album_details_modal=!1),onPlayCountChanged:r.reload_tracks,onRemovePodcast:r.open_remove_podcast_dialog},null,8,["show","album","new_tracks","onPlayCountChanged","onRemovePodcast"]),P(u,{show:o.show_remove_podcast_modal,title:"Remove podcast",delete_action:"Remove",onClose:t[3]||(t[3]=d=>o.show_remove_podcast_modal=!1),onDelete:r.remove_podcast},{"modal-content":T(()=>[z8,l("p",G8,[W8,l("b",null,R(o.rss_playlist_to_remove.name),1),K8])]),_:1},8,["show","onDelete"])]),_:1})}var Z8=ge(N8,[["render",Y8]]);const J8={name:"TabsAudiobooks"},X8={class:"section fd-tabs-section"},Q8={class:"container"},eR={class:"columns is-centered"},tR={class:"column is-four-fifths"},sR={class:"tabs is-centered is-small"},nR=["onClick","onKeypress"],rR=l("span",{class:"icon is-small"},[l("i",{class:"mdi mdi-artist"})],-1),oR=l("span",{class:""},"Authors",-1),iR=[rR,oR],aR=["onClick","onKeypress"],lR=l("span",{class:"icon is-small"},[l("i",{class:"mdi mdi-album"})],-1),uR=l("span",{class:""},"Audiobooks",-1),cR=[lR,uR];function dR(e,t,s,n,o,r){const i=B("router-link");return x(),A("section",X8,[l("div",Q8,[l("div",eR,[l("div",tR,[l("div",sR,[l("ul",null,[P(i,{to:"/audiobooks/artists",custom:""},{default:T(({navigate:a,isActive:u})=>[l("li",{class:Le({"is-active":u})},[l("a",{onClick:a,onKeypress:bs(a,["enter"])},iR,40,nR)],2)]),_:1}),P(i,{to:"/audiobooks/albums",custom:""},{default:T(({navigate:a,isActive:u})=>[l("li",{class:Le({"is-active":u})},[l("a",{onClick:a,onKeypress:bs(a,["enter"])},cR,40,aR)],2)]),_:1})])])])])])])}var gv=ge(J8,[["render",dR]]);const ca={load:function(e){return G.library_albums("audiobook")},set:function(e,t){e.albums=new mt(t.data),e.albums.group(uo("name_sort"))}},fR={name:"PageAudiobooksAlbums",components:{TabsAudiobooks:gv,ContentWithHeading:ft,IndexButtonList:bn,ListAlbums:rn},beforeRouteEnter(e,t,s){ca.load(e).then(n=>{s(o=>ca.set(o,n))})},beforeRouteUpdate(e,t,s){if(!this.albums.isEmpty()){s();return}const n=this;ca.load(e).then(o=>{ca.set(n,o),s()})},data(){return{albums:new mt}},methods:{}},hR={class:"fd-page-with-tabs"},mR=l("p",{class:"title is-4"},"Audiobooks",-1),pR={class:"heading"};function _R(e,t,s,n,o,r){const i=B("tabs-audiobooks"),a=B("index-button-list"),u=B("list-albums"),c=B("content-with-heading");return x(),A("div",hR,[P(i),P(c,null,{options:T(()=>[P(a,{index:o.albums.indexList},null,8,["index"])]),"heading-left":T(()=>[mR,l("p",pR,R(o.albums.count)+" Audiobooks",1)]),content:T(()=>[P(u,{albums:o.albums},null,8,["albums"])]),_:1})])}var gR=ge(fR,[["render",_R]]);const da={load:function(e){return G.library_artists("audiobook")},set:function(e,t){e.artists_list=new mt(t.data)}},vR={name:"PageAudiobooksArtists",components:{ContentWithHeading:ft,TabsAudiobooks:gv,IndexButtonList:bn,ListArtists:Bd},beforeRouteEnter(e,t,s){da.load(e).then(n=>{s(o=>da.set(o,n))})},beforeRouteUpdate(e,t,s){if(!this.artists_list.isEmpty()){s();return}const n=this;da.load(e).then(o=>{da.set(n,o),s()})},data(){return{artists_list:new mt}},computed:{artists(){return this.artists_list?(this.artists_list.group(uo("name_sort")),this.artists_list):[]}},methods:{}},yR={class:"fd-page-with-tabs"},bR=l("p",{class:"title is-4"},"Authors",-1),wR={class:"heading"};function kR(e,t,s,n,o,r){const i=B("tabs-audiobooks"),a=B("index-button-list"),u=B("list-artists"),c=B("content-with-heading");return x(),A("div",yR,[P(i),P(c,null,{options:T(()=>[P(a,{index:r.artists.indexList},null,8,["index"])]),"heading-left":T(()=>[bR,l("p",wR,R(r.artists.count)+" Authors",1)]),"heading-right":T(()=>[]),content:T(()=>[P(u,{artists:r.artists},null,8,["artists"])]),_:1})])}var xR=ge(vR,[["render",kR]]);const fa={load:function(e){return Promise.all([G.library_artist(e.params.artist_id),G.library_artist_albums(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.albums=new mt(t[1].data)}},SR={name:"PageAudiobooksArtist",components:{ContentWithHeading:ft,ListAlbums:rn,ModalDialogArtist:Ll},beforeRouteEnter(e,t,s){fa.load(e).then(n=>{s(o=>fa.set(o,n))})},beforeRouteUpdate(e,t,s){if(!this.albums.isEmpty()){s();return}const n=this;fa.load(e).then(o=>{fa.set(n,o),s()})},data(){return{artist:{},albums:new mt,show_artist_details_modal:!1}},methods:{play:function(){G.player_play_uri(this.albums.items.map(e=>e.uri).join(","),!1)}}},ER={class:"title is-4"},CR={class:"buttons is-centered"},$R=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),OR=[$R],TR=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),AR=l("span",null,"Shuffle",-1),PR=[TR,AR],DR={class:"heading has-text-centered-mobile"};function FR(e,t,s,n,o,r){const i=B("list-albums"),a=B("modal-dialog-artist"),u=B("content-with-heading");return x(),xe(u,null,{"heading-left":T(()=>[l("p",ER,R(o.artist.name),1)]),"heading-right":T(()=>[l("div",CR,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=c=>o.show_artist_details_modal=!0)},OR),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...c)=>r.play&&r.play(...c))},PR)])]),content:T(()=>[l("p",DR,R(o.artist.album_count)+" albums ",1),P(i,{albums:o.albums},null,8,["albums"]),P(a,{show:o.show_artist_details_modal,artist:o.artist,onClose:t[2]||(t[2]=c=>o.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var IR=ge(SR,[["render",FR]]);const ha={load:function(e){return Promise.all([G.library_album(e.params.album_id),G.library_album_tracks(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=t[1].data.items}},RR={name:"PageAudiobooksAlbum",components:{ContentWithHero:Vd,ListTracks:Cs,ModalDialogAlbum:Ml,CoverArtwork:yn},beforeRouteEnter(e,t,s){ha.load(e).then(n=>{s(o=>ha.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;ha.load(e).then(o=>{ha.set(n,o),s()})},data(){return{album:{},tracks:[],show_album_details_modal:!1}},methods:{open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/audiobooks/artists/"+this.album.artist_id})},play:function(){G.player_play_uri(this.album.uri,!1)},play_track:function(e){G.player_play_uri(this.album.uri,!1,e)},open_dialog:function(e){this.selected_track=e,this.show_details_modal=!0}}},NR={class:"title is-5"},MR={class:"subtitle is-6 has-text-link has-text-weight-normal"},LR={class:"buttons fd-is-centered-mobile fd-has-margin-top"},jR=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),BR=l("span",null,"Play",-1),UR=[jR,BR],VR=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),HR=[VR],qR={class:"image is-square fd-has-shadow fd-has-action"},zR={class:"heading is-7 has-text-centered-mobile fd-has-margin-top"};function GR(e,t,s,n,o,r){const i=B("cover-artwork"),a=B("list-tracks"),u=B("modal-dialog-album"),c=B("content-with-hero");return x(),xe(c,null,{"heading-left":T(()=>[l("h1",NR,R(o.album.name),1),l("h2",MR,[l("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...d)=>r.open_artist&&r.open_artist(...d))},R(o.album.artist),1)]),l("div",LR,[l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>r.play&&r.play(...d))},UR),l("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=d=>o.show_album_details_modal=!0)},HR)])]),"heading-right":T(()=>[l("p",qR,[P(i,{artwork_url:o.album.artwork_url,artist:o.album.artist,album:o.album.name,onClick:t[3]||(t[3]=d=>o.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:T(()=>[l("p",zR,R(o.album.track_count)+" tracks ",1),P(a,{tracks:o.tracks,uris:o.album.uri},null,8,["tracks","uris"]),P(u,{show:o.show_album_details_modal,album:o.album,media_kind:"audiobook",onClose:t[4]||(t[4]=d=>o.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var WR=ge(RR,[["render",GR]]);const KR={name:"ModalDialogPlaylist",props:["show","playlist","uris"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_uri(this.uris?this.uris:this.playlist.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.uris?this.uris:this.playlist.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.uris?this.uris:this.playlist.uri)},open_playlist:function(){this.$emit("close"),this.$router.push({path:"/playlists/"+this.playlist.id+"/tracks"})}}},YR={key:0,class:"modal is-active"},ZR={class:"modal-content fd-modal-card"},JR={class:"card"},XR={class:"card-content"},QR={class:"title is-4"},eN={class:"content is-small"},tN=l("span",{class:"heading"},"Path",-1),sN={class:"title is-6"},nN=l("span",{class:"heading"},"Type",-1),rN={class:"title is-6"},oN={key:0,class:"card-footer"},iN=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-plus"})],-1),aN=l("span",{class:"is-size-7"},"Add",-1),lN=[iN,aN],uN=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-play"})],-1),cN=l("span",{class:"is-size-7"},"Add Next",-1),dN=[uN,cN],fN=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),hN=l("span",{class:"is-size-7"},"Play",-1),mN=[fN,hN];function pN(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",YR,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",ZR,[l("div",JR,[l("div",XR,[l("p",QR,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...i)=>r.open_playlist&&r.open_playlist(...i))},R(s.playlist.name),1)]),l("div",eN,[l("p",null,[tN,l("span",sN,R(s.playlist.path),1)]),l("p",null,[nN,l("span",rN,R(s.playlist.type),1)])])]),s.playlist.folder?Y("",!0):(x(),A("footer",oN,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...i)=>r.queue_add&&r.queue_add(...i))},lN),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...i)=>r.queue_add_next&&r.queue_add_next(...i))},dN),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...i)=>r.play&&r.play(...i))},mN)]))])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var vv=ge(KR,[["render",pN]]);const _N={name:"ListPlaylists",components:{ModalDialogPlaylist:vv},props:["playlists"],data(){return{show_details_modal:!1,selected_playlist:{}}},methods:{open_playlist:function(e){e.type!=="folder"?this.$router.push({path:"/playlists/"+e.id+"/tracks"}):this.$router.push({path:"/playlists/"+e.id})},open_dialog:function(e){this.selected_playlist=e,this.show_details_modal=!0}}},gN=["playlist","onClick"],vN={class:"media-left fd-has-action"},yN={class:"icon"},bN={class:"media-content fd-has-action is-clipped"},wN={class:"title is-6"},kN={class:"media-right"},xN=["onClick"],SN=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),EN=[SN];function CN(e,t,s,n,o,r){const i=B("modal-dialog-playlist");return x(),A(Ke,null,[(x(!0),A(Ke,null,bt(s.playlists,a=>(x(),A("div",{key:a.id,class:"media",playlist:a,onClick:u=>r.open_playlist(a)},[l("figure",vN,[l("span",yN,[l("i",{class:Le(["mdi",{"mdi-library-music":a.type!=="folder","mdi-rss":a.type==="rss","mdi-folder":a.type==="folder"}])},null,2)])]),l("div",bN,[l("h1",wN,R(a.name),1)]),l("div",kN,[l("a",{onClick:pt(u=>r.open_dialog(a),["prevent","stop"])},EN,8,xN)])],8,gN))),128)),(x(),xe(qn,{to:"#app"},[P(i,{show:o.show_details_modal,playlist:o.selected_playlist,onClose:t[0]||(t[0]=a=>o.show_details_modal=!1)},null,8,["show","playlist"])]))],64)}var zd=ge(_N,[["render",CN]]);const ma={load:function(e){return Promise.all([G.library_playlist(e.params.playlist_id),G.library_playlist_folder(e.params.playlist_id)])},set:function(e,t){e.playlist=t[0].data,e.playlists=t[1].data}},$N={name:"PagePlaylists",components:{ContentWithHeading:ft,ListPlaylists:zd},beforeRouteEnter(e,t,s){ma.load(e).then(n=>{s(o=>ma.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;ma.load(e).then(o=>{ma.set(n,o),s()})},data(){return{playlist:{},playlists:{}}}},ON={class:"title is-4"},TN={class:"heading"};function AN(e,t,s,n,o,r){const i=B("list-playlists"),a=B("content-with-heading");return x(),xe(a,null,{"heading-left":T(()=>[l("p",ON,R(o.playlist.name),1),l("p",TN,R(o.playlists.total)+" playlists",1)]),content:T(()=>[P(i,{playlists:o.playlists.items},null,8,["playlists"])]),_:1})}var PN=ge($N,[["render",AN]]);const pa={load:function(e){return Promise.all([G.library_playlist(e.params.playlist_id),G.library_playlist_tracks(e.params.playlist_id)])},set:function(e,t){e.playlist=t[0].data,e.tracks=t[1].data.items}},DN={name:"PagePlaylist",components:{ContentWithHeading:ft,ListTracks:Cs,ModalDialogPlaylist:vv},beforeRouteEnter(e,t,s){pa.load(e).then(n=>{s(o=>pa.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;pa.load(e).then(o=>{pa.set(n,o),s()})},data(){return{playlist:{},tracks:[],show_playlist_details_modal:!1}},computed:{uris(){return this.playlist.random?this.tracks.map(e=>e.uri).join(","):this.playlist.uri}},methods:{play:function(){G.player_play_uri(this.uris,!0)}}},FN={class:"title is-4"},IN={class:"buttons is-centered"},RN=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),NN=[RN],MN=l("span",{class:"icon"},[l("i",{class:"mdi mdi-shuffle"})],-1),LN=l("span",null,"Shuffle",-1),jN=[MN,LN],BN={class:"heading has-text-centered-mobile"};function UN(e,t,s,n,o,r){const i=B("list-tracks"),a=B("modal-dialog-playlist"),u=B("content-with-heading");return x(),xe(u,null,{"heading-left":T(()=>[l("div",FN,R(o.playlist.name),1)]),"heading-right":T(()=>[l("div",IN,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=c=>o.show_playlist_details_modal=!0)},NN),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...c)=>r.play&&r.play(...c))},jN)])]),content:T(()=>[l("p",BN,R(o.tracks.length)+" tracks",1),P(i,{tracks:o.tracks,uris:r.uris},null,8,["tracks","uris"]),P(a,{show:o.show_playlist_details_modal,playlist:o.playlist,uris:r.uris,onClose:t[2]||(t[2]=c=>o.show_playlist_details_modal=!1)},null,8,["show","playlist","uris"])]),_:1})}var VN=ge(DN,[["render",UN]]);const HN={name:"ModalDialogDirectory",props:["show","directory"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_expression('path starts with "'+this.directory.path+'" order by path asc',!1)},queue_add:function(){this.$emit("close"),G.queue_expression_add('path starts with "'+this.directory.path+'" order by path asc')},queue_add_next:function(){this.$emit("close"),G.queue_expression_add_next('path starts with "'+this.directory.path+'" order by path asc')}}},qN={key:0,class:"modal is-active"},zN={class:"modal-content fd-modal-card"},GN={class:"card"},WN={class:"card-content"},KN={class:"title is-4"},YN={class:"card-footer"},ZN=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-plus"})],-1),JN=l("span",{class:"is-size-7"},"Add",-1),XN=[ZN,JN],QN=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-play"})],-1),eM=l("span",{class:"is-size-7"},"Add Next",-1),tM=[QN,eM],sM=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),nM=l("span",{class:"is-size-7"},"Play",-1),rM=[sM,nM];function oM(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",qN,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",zN,[l("div",GN,[l("div",WN,[l("p",KN,R(s.directory.path),1)]),l("footer",YN,[l("a",{class:"card-footer-item has-text-dark",onClick:t[1]||(t[1]=(...i)=>r.queue_add&&r.queue_add(...i))},XN),l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...i)=>r.queue_add_next&&r.queue_add_next(...i))},tM),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...i)=>r.play&&r.play(...i))},rM)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[4]||(t[4]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var iM=ge(HN,[["render",oM]]);const aM={name:"ListDirectories",components:{ModalDialogDirectory:iM},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:function(){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:function(e){this.$router.push({path:"/files",query:{directory:e.path}})},open_dialog:function(e){this.selected_directory=e,this.show_details_modal=!0}}},lM=ud('<figure class="media-left fd-has-action"><span class="icon"><i class="mdi mdi-subdirectory-arrow-left"></i></span></figure><div class="media-content fd-has-action is-clipped"><h1 class="title is-6">..</h1></div>',2),uM={class:"media-right"},cM=["onClick"],dM=l("figure",{class:"media-left fd-has-action"},[l("span",{class:"icon"},[l("i",{class:"mdi mdi-folder"})])],-1),fM={class:"media-content fd-has-action is-clipped"},hM={class:"title is-6"},mM={class:"subtitle is-7 has-text-grey-light"},pM={class:"media-right"},_M=["onClick"],gM=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),vM=[gM];function yM(e,t,s,n,o,r){const i=B("modal-dialog-directory");return x(),A(Ke,null,[e.$route.query.directory?(x(),A("div",{key:0,class:"media",onClick:t[0]||(t[0]=a=>r.open_parent_directory())},[lM,l("div",uM,[xt(e.$slots,"actions")])])):Y("",!0),(x(!0),A(Ke,null,bt(s.directories,a=>(x(),A("div",{key:a.path,class:"media",onClick:u=>r.open_directory(a)},[dM,l("div",fM,[l("h1",hM,R(a.path.substring(a.path.lastIndexOf("/")+1)),1),l("h2",mM,R(a.path),1)]),l("div",pM,[l("a",{onClick:pt(u=>r.open_dialog(a),["prevent","stop"])},vM,8,_M)])],8,cM))),128)),(x(),xe(qn,{to:"#app"},[P(i,{show:o.show_details_modal,directory:o.selected_directory,onClose:t[1]||(t[1]=a=>o.show_details_modal=!1)},null,8,["show","directory"])]))],64)}var bM=ge(aM,[["render",yM]]);const _a={load:function(e){return e.query.directory?G.library_files(e.query.directory):Promise.resolve()},set:function(e,t){t?e.files=t.data:e.files={directories:e.$store.state.config.directories.map(s=>({path:s})),tracks:{items:[]},playlists:{items:[]}}}},wM={name:"PageFiles",components:{ContentWithHeading:ft,ListDirectories:bM,ListPlaylists:zd,ListTracks:Cs},beforeRouteEnter(e,t,s){_a.load(e).then(n=>{s(o=>_a.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;_a.load(e).then(o=>{_a.set(n,o),s()})},data(){return{files:{directories:[],tracks:{items:[]},playlists:{items:[]}}}},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:function(){G.player_play_expression(this.play_expression,!1)}}},kM=l("p",{class:"title is-4"},"Files",-1),xM={class:"title is-7 has-text-grey"},SM={class:"buttons is-centered"},EM=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),CM=[EM],$M=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),OM=l("span",null,"Play",-1),TM=[$M,OM];function AM(e,t,s,n,o,r){const i=B("list-directories"),a=B("list-playlists"),u=B("list-tracks"),c=B("modal-dialog-directory"),d=B("content-with-heading");return x(),A("div",null,[P(d,null,{"heading-left":T(()=>[kM,l("p",xM,R(r.current_directory),1)]),"heading-right":T(()=>[l("div",SM,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=h=>e.open_directory_dialog({path:r.current_directory}))},CM),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...h)=>r.play&&r.play(...h))},TM)])]),content:T(()=>[P(i,{directories:o.files.directories},null,8,["directories"]),P(a,{playlists:o.files.playlists.items},null,8,["playlists"]),P(u,{tracks:o.files.tracks.items,expression:r.play_expression,show_icon:!0},null,8,["tracks","expression"]),P(c,{show:e.show_directory_details_modal,directory:e.selected_directory,onClose:t[2]||(t[2]=h=>e.show_directory_details_modal=!1)},null,8,["show","directory"])]),_:1})])}var PM=ge(wM,[["render",AM]]);const ga={load:function(e){return G.library_radio_streams()},set:function(e,t){e.tracks=t.data.tracks}},DM={name:"PageRadioStreams",components:{ContentWithHeading:ft,ListTracks:Cs},beforeRouteEnter(e,t,s){ga.load(e).then(n=>{s(o=>ga.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;ga.load(e).then(o=>{ga.set(n,o),s()})},data(){return{tracks:{items:[]}}}},FM=l("p",{class:"title is-4"},"Radio",-1),IM={class:"heading has-text-centered-mobile"};function RM(e,t,s,n,o,r){const i=B("list-tracks"),a=B("content-with-heading");return x(),A("div",null,[P(a,null,{"heading-left":T(()=>[FM]),content:T(()=>[l("p",IM,R(o.tracks.total)+" tracks ",1),P(i,{tracks:o.tracks.items},null,8,["tracks"])]),_:1})])}var NM=ge(DM,[["render",RM]]);const MM={name:"ContentText"},LM={class:"section fd-content py-3"},jM={class:"container"},BM={class:"columns is-centered"},UM={class:"column is-four-fifths"};function VM(e,t,s,n,o,r){return x(),A("section",LM,[l("div",jM,[l("div",BM,[l("div",UM,[xt(e.$slots,"content")])])])])}var yv=ge(MM,[["render",VM]]);const HM={name:"TabsSearch",props:["query"],computed:{spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},route_query:function(){return this.query?{type:"track,artist,album,playlist,audiobook,podcast",query:this.query,limit:3,offset:0}:null}},methods:{search_library:function(){this.$store.commit(uc,"/search/library"),this.$router.push({path:this.$store.state.search_path,query:this.route_query})},search_spotify:function(){this.$store.commit(uc,"/search/spotify"),this.$router.push({path:this.$store.state.search_path,query:this.route_query})}}},qM={key:0,class:"section fd-remove-padding-bottom"},zM={class:"container"},GM={class:"columns is-centered"},WM={class:"column is-four-fifths"},KM={class:"tabs is-centered is-small is-toggle is-toggle-rounded"},YM=l("span",{class:"icon is-small"},[l("i",{class:"mdi mdi-library-books"})],-1),ZM=l("span",{class:""},"Library",-1),JM=[YM,ZM],XM=l("span",{class:"icon is-small"},[l("i",{class:"mdi mdi-spotify"})],-1),QM=l("span",{class:""},"Spotify",-1),e5=[XM,QM];function t5(e,t,s,n,o,r){return r.spotify_enabled?(x(),A("section",qM,[l("div",zM,[l("div",GM,[l("div",WM,[l("div",KM,[l("ul",null,[l("li",{class:Le({"is-active":e.$store.state.search_path==="/search/library"})},[l("a",{onClick:t[0]||(t[0]=(...i)=>r.search_library&&r.search_library(...i))},JM)],2),l("li",{class:Le({"is-active":e.$store.state.search_path==="/search/spotify"})},[l("a",{onClick:t[1]||(t[1]=(...i)=>r.search_spotify&&r.search_spotify(...i))},e5)],2)])])])])])])):Y("",!0)}var bv=ge(HM,[["render",t5]]);const s5={name:"PageSearch",components:{ContentWithHeading:ft,ContentText:yv,TabsSearch:bv,ListTracks:Cs,ListArtists:Bd,ListAlbums:rn,ListPlaylists:zd,ListComposers:_v},data(){return{search_query:"",tracks:{items:[],total:0},artists:new mt,albums:new mt,composers:{items:[],total:0},playlists:{items:[],total:0},audiobooks:new mt,podcasts:new mt}},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},is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},watch:{$route(e,t){this.search(e)}},mounted:function(){this.search(this.$route)},methods:{search:function(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(bd,e.query.query)},searchMusic:function(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),G.search(t).then(({data:s})=>{this.tracks=s.tracks?s.tracks:{items:[],total:0},this.artists=new mt(s.artists),this.albums=new mt(s.albums),this.composers=s.composers?s.composers:{items:[],total:0},this.playlists=s.playlists?s.playlists:{items:[],total:0}})},searchAudiobooks:function(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),G.search(t).then(({data:s})=>{this.audiobooks=new mt(s.albums)})},searchPodcasts:function(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),G.search(t).then(({data:s})=>{this.podcasts=new mt(s.albums)})},new_search:function(){!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:function(){this.$router.push({path:"/search/library",query:{type:"track",query:this.$route.query.query}})},open_search_artists:function(){this.$router.push({path:"/search/library",query:{type:"artist",query:this.$route.query.query}})},open_search_albums:function(){this.$router.push({path:"/search/library",query:{type:"album",query:this.$route.query.query}})},open_search_composers:function(){this.$router.push({path:"/search/library",query:{type:"tracks",query:this.$route.query.query}})},open_search_playlists:function(){this.$router.push({path:"/search/library",query:{type:"playlist",query:this.$route.query.query}})},open_search_audiobooks:function(){this.$router.push({path:"/search/library",query:{type:"audiobook",query:this.$route.query.query}})},open_search_podcasts:function(){this.$router.push({path:"/search/library",query:{type:"podcast",query:this.$route.query.query}})},open_composer:function(e){this.$router.push({name:"ComposerAlbums",params:{composer:e.name}})},open_playlist:function(e){this.$router.push({path:"/playlists/"+e.id+"/tracks"})},open_recent_search:function(e){this.search_query=e,this.new_search()},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0},open_album_dialog:function(e){this.selected_album=e,this.show_album_details_modal=!0},open_artist_dialog:function(e){this.selected_artist=e,this.show_artist_details_modal=!0},open_composer_dialog:function(e){this.selected_composer=e,this.show_composer_details_modal=!0},open_playlist_dialog:function(e){this.selected_playlist=e,this.show_playlist_details_modal=!0}}},n5={class:"section fd-remove-padding-bottom"},r5={class:"container"},o5={class:"columns is-centered"},i5={class:"column is-four-fifths"},a5={class:"field"},l5={class:"control is-expanded has-icons-left"},u5=l("span",{class:"icon is-left"},[l("i",{class:"mdi mdi-magnify"})],-1),c5=l("p",{class:"help has-text-centered"},[$e(" Tip: you can search by a smart playlist query language "),l("a",{href:"https://github.com/owntone/owntone-server/blob/master/README_SMARTPL.md",target:"_blank"},"expression"),$e(" if you prefix it with "),l("code",null,"query:"),$e(". ")],-1),d5={class:"tags",style:{"margin-top":"16px"}},f5=["onClick"],h5=l("p",{class:"title is-4"},"Tracks",-1),m5={key:0,class:"level"},p5={class:"level-item"},_5=l("p",null,[l("i",null,"No tracks found")],-1),g5=l("p",{class:"title is-4"},"Artists",-1),v5={key:0,class:"level"},y5={class:"level-item"},b5=l("p",null,[l("i",null,"No artists found")],-1),w5=l("p",{class:"title is-4"},"Albums",-1),k5={key:0,class:"level"},x5={class:"level-item"},S5=l("p",null,[l("i",null,"No albums found")],-1),E5=l("p",{class:"title is-4"},"Composers",-1),C5={key:0,class:"level"},$5={class:"level-item"},O5=l("p",null,[l("i",null,"No composers found")],-1),T5=l("p",{class:"title is-4"},"Playlists",-1),A5={key:0,class:"level"},P5={class:"level-item"},D5=l("p",null,[l("i",null,"No playlists found")],-1),F5=l("p",{class:"title is-4"},"Podcasts",-1),I5={key:0,class:"level"},R5={class:"level-item"},N5=l("p",null,[l("i",null,"No podcasts found")],-1),M5=l("p",{class:"title is-4"},"Audiobooks",-1),L5={key:0,class:"level"},j5={class:"level-item"},B5=l("p",null,[l("i",null,"No audiobooks found")],-1);function U5(e,t,s,n,o,r){const i=B("tabs-search"),a=B("list-tracks"),u=B("content-with-heading"),c=B("content-text"),d=B("list-artists"),h=B("list-albums"),f=B("list-composers"),m=B("list-playlists");return x(),A("div",null,[l("section",n5,[l("div",r5,[l("div",o5,[l("div",i5,[l("form",{onSubmit:t[1]||(t[1]=pt((...p)=>r.new_search&&r.new_search(...p),["prevent"]))},[l("div",a5,[l("p",l5,[wt(l("input",{ref:"search_field","onUpdate:modelValue":t[0]||(t[0]=p=>o.search_query=p),class:"input is-rounded is-shadowless",type:"text",placeholder:"Search",autocomplete:"off"},null,512),[[es,o.search_query]]),u5]),c5])],32),l("div",d5,[(x(!0),A(Ke,null,bt(r.recent_searches,p=>(x(),A("a",{key:p,class:"tag",onClick:_=>r.open_recent_search(p)},R(p),9,f5))),128))])])])])]),P(i,{query:o.search_query},null,8,["query"]),r.show_tracks&&o.tracks.total?(x(),xe(u,{key:0},{"heading-left":T(()=>[h5]),content:T(()=>[P(a,{tracks:o.tracks.items},null,8,["tracks"])]),footer:T(()=>[r.show_all_tracks_button?(x(),A("nav",m5,[l("p",p5,[l("a",{class:"button is-light is-small is-rounded",onClick:t[2]||(t[2]=(...p)=>r.open_search_tracks&&r.open_search_tracks(...p))},"Show all "+R(o.tracks.total.toLocaleString())+" tracks",1)])])):Y("",!0)]),_:1})):Y("",!0),r.show_tracks&&!o.tracks.total?(x(),xe(c,{key:1,class:"mt-6"},{content:T(()=>[_5]),_:1})):Y("",!0),r.show_artists&&o.artists.total?(x(),xe(u,{key:2},{"heading-left":T(()=>[g5]),content:T(()=>[P(d,{artists:o.artists,hide_group_title:!0},null,8,["artists"])]),footer:T(()=>[r.show_all_artists_button?(x(),A("nav",v5,[l("p",y5,[l("a",{class:"button is-light is-small is-rounded",onClick:t[3]||(t[3]=(...p)=>r.open_search_artists&&r.open_search_artists(...p))},"Show all "+R(o.artists.total.toLocaleString())+" artists",1)])])):Y("",!0)]),_:1})):Y("",!0),r.show_artists&&!o.artists.total?(x(),xe(c,{key:3},{content:T(()=>[b5]),_:1})):Y("",!0),r.show_albums&&o.albums.total?(x(),xe(u,{key:4},{"heading-left":T(()=>[w5]),content:T(()=>[P(h,{albums:o.albums,hide_group_title:!0},null,8,["albums"])]),footer:T(()=>[r.show_all_albums_button?(x(),A("nav",k5,[l("p",x5,[l("a",{class:"button is-light is-small is-rounded",onClick:t[4]||(t[4]=(...p)=>r.open_search_albums&&r.open_search_albums(...p))},"Show all "+R(o.albums.total.toLocaleString())+" albums",1)])])):Y("",!0)]),_:1})):Y("",!0),r.show_albums&&!o.albums.total?(x(),xe(c,{key:5},{content:T(()=>[S5]),_:1})):Y("",!0),r.show_composers&&o.composers.total?(x(),xe(u,{key:6},{"heading-left":T(()=>[E5]),content:T(()=>[P(f,{composers:o.composers.items},null,8,["composers"])]),footer:T(()=>[r.show_all_composers_button?(x(),A("nav",C5,[l("p",$5,[l("a",{class:"button is-light is-small is-rounded",onClick:t[5]||(t[5]=(...p)=>r.open_search_composers&&r.open_search_composers(...p))},"Show all "+R(o.composers.total)+" composers",1)])])):Y("",!0)]),_:1})):Y("",!0),r.show_composers&&!o.composers.total?(x(),xe(c,{key:7},{content:T(()=>[O5]),_:1})):Y("",!0),r.show_playlists&&o.playlists.total?(x(),xe(u,{key:8},{"heading-left":T(()=>[T5]),content:T(()=>[P(m,{playlists:o.playlists.items},null,8,["playlists"])]),footer:T(()=>[r.show_all_playlists_button?(x(),A("nav",A5,[l("p",P5,[l("a",{class:"button is-light is-small is-rounded",onClick:t[6]||(t[6]=(...p)=>r.open_search_playlists&&r.open_search_playlists(...p))},"Show all "+R(o.playlists.total.toLocaleString())+" playlists",1)])])):Y("",!0)]),_:1})):Y("",!0),r.show_playlists&&!o.playlists.total?(x(),xe(c,{key:9},{content:T(()=>[D5]),_:1})):Y("",!0),r.show_podcasts&&o.podcasts.total?(x(),xe(u,{key:10},{"heading-left":T(()=>[F5]),content:T(()=>[P(h,{albums:o.podcasts},null,8,["albums"])]),footer:T(()=>[r.show_all_podcasts_button?(x(),A("nav",I5,[l("p",R5,[l("a",{class:"button is-light is-small is-rounded",onClick:t[7]||(t[7]=(...p)=>r.open_search_podcasts&&r.open_search_podcasts(...p))},"Show all "+R(o.podcasts.total.toLocaleString())+" podcasts",1)])])):Y("",!0)]),_:1})):Y("",!0),r.show_podcasts&&!o.podcasts.total?(x(),xe(c,{key:11},{content:T(()=>[N5]),_:1})):Y("",!0),r.show_audiobooks&&o.audiobooks.total?(x(),xe(u,{key:12},{"heading-left":T(()=>[M5]),content:T(()=>[P(h,{albums:o.audiobooks},null,8,["albums"])]),footer:T(()=>[r.show_all_audiobooks_button?(x(),A("nav",L5,[l("p",j5,[l("a",{class:"button is-light is-small is-rounded",onClick:t[8]||(t[8]=(...p)=>r.open_search_audiobooks&&r.open_search_audiobooks(...p))},"Show all "+R(o.audiobooks.total.toLocaleString())+" audiobooks",1)])])):Y("",!0)]),_:1})):Y("",!0),r.show_audiobooks&&!o.audiobooks.total?(x(),xe(c,{key:13},{content:T(()=>[B5]),_:1})):Y("",!0)])}var V5=ge(s5,[["render",U5]]);const H5={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(vi,!0)}}},q5={class:"section"},z5={class:"container"},G5={class:"columns is-centered"},W5={class:"column is-four-fifths has-text-centered-mobile"},K5={class:"heading"},Y5=l("b",null,"OwnTone",-1),Z5={class:"title is-4"},J5={class:"section"},X5={class:"container"},Q5={class:"columns is-centered"},eL={class:"column is-four-fifths"},tL={class:"content"},sL={class:"level is-mobile"},nL=l("div",{class:"level-left"},[l("div",{class:"level-item"},[l("h2",{class:"title is-5"},"Library")])],-1),rL={class:"level-right"},oL={key:0},iL=l("a",{class:"button is-small is-loading"},"Update",-1),aL=[iL],lL={key:1},uL={class:"table"},cL=l("th",null,"Artists",-1),dL={class:"has-text-right"},fL=l("th",null,"Albums",-1),hL={class:"has-text-right"},mL=l("th",null,"Tracks",-1),pL={class:"has-text-right"},_L=l("th",null,"Total playtime",-1),gL={class:"has-text-right"},vL=l("th",null,"Library updated",-1),yL={class:"has-text-right"},bL={class:"has-text-grey"},wL=l("th",null,"Uptime",-1),kL={class:"has-text-right"},xL={class:"has-text-grey"},SL={class:"section"},EL={class:"container"},CL={class:"columns is-centered"},$L={class:"column is-four-fifths"},OL={class:"content has-text-centered-mobile"},TL={class:"is-size-7"},AL=ud('<p class="is-size-7"> Web interface built with <a href="http://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>. </p>',1);function PL(e,t,s,n,o,r){return x(),A("div",null,[l("section",q5,[l("div",z5,[l("div",G5,[l("div",W5,[l("p",K5,[Y5,$e(" - version "+R(r.config.version),1)]),l("h1",Z5,R(r.config.library_name),1)])])])]),l("section",J5,[l("div",X5,[l("div",Q5,[l("div",eL,[l("div",tL,[l("nav",sL,[nL,l("div",rL,[r.library.updating?(x(),A("div",oL,aL)):(x(),A("div",lL,[l("a",{class:"button is-small",onClick:t[0]||(t[0]=i=>r.showUpdateDialog())},"Update")]))])]),l("table",uL,[l("tbody",null,[l("tr",null,[cL,l("td",dL,R(e.$filters.number(r.library.artists)),1)]),l("tr",null,[fL,l("td",hL,R(e.$filters.number(r.library.albums)),1)]),l("tr",null,[mL,l("td",pL,R(e.$filters.number(r.library.songs)),1)]),l("tr",null,[_L,l("td",gL,R(e.$filters.durationInDays(r.library.db_playtime*1e3)),1)]),l("tr",null,[vL,l("td",yL,[$e(R(e.$filters.timeFromNow(r.library.updated_at))+" ago ",1),l("span",bL,"("+R(e.$filters.datetime(r.library.updated_at))+")",1)])]),l("tr",null,[wL,l("td",kL,[$e(R(e.$filters.timeFromNow(r.library.started_at,!0))+" ",1),l("span",xL,"("+R(e.$filters.datetime(r.library.started_at))+")",1)])])])])])])])])]),l("section",SL,[l("div",EL,[l("div",CL,[l("div",$L,[l("div",OL,[l("p",TL," Compiled with support for "+R(r.config.buildoptions.join(", "))+". ",1),AL])])])])])])}var DL=ge(H5,[["render",PL]]);const FL={name:"SpotifyListItemAlbum",props:["album"]},IL={class:"media"},RL={key:0,class:"media-left fd-has-action"},NL={class:"media-content fd-has-action is-clipped"},ML={class:"title is-6"},LL={class:"subtitle is-7 has-text-grey"},jL={class:"subtitle is-7 has-text-grey has-text-weight-normal"},BL={class:"media-right"};function UL(e,t,s,n,o,r){return x(),A("div",IL,[e.$slots.artwork?(x(),A("div",RL,[xt(e.$slots,"artwork")])):Y("",!0),l("div",NL,[l("h1",ML,R(s.album.name),1),l("h2",LL,[l("b",null,R(s.album.artists[0].name),1)]),l("h2",jL," ("+R(s.album.album_type)+", "+R(e.$filters.date(s.album.release_date))+") ",1)]),l("div",BL,[xt(e.$slots,"actions")])])}var jl=ge(FL,[["render",UL]]);const VL={name:"SpotifyListItemPlaylist",props:["playlist"],methods:{open_playlist:function(){this.$router.push({path:"/music/spotify/playlists/"+this.playlist.id})}}},HL={class:"media"},qL={class:"title is-6"},zL={class:"subtitle is-7"},GL={class:"media-right"};function WL(e,t,s,n,o,r){return x(),A("div",HL,[l("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...i)=>r.open_playlist&&r.open_playlist(...i))},[l("h1",qL,R(s.playlist.name),1),l("h2",zL,R(s.playlist.owner.display_name),1)]),l("div",GL,[xt(e.$slots,"actions")])])}var Gd=ge(VL,[["render",WL]]);const KL={name:"SpotifyModalDialogAlbum",props:["show","album"],emits:["close"],data(){return{artwork_visible:!1}},computed:{artwork_url:function(){return this.album.images&&this.album.images.length>0?this.album.images[0].url:""}},methods:{play:function(){this.$emit("close"),G.player_play_uri(this.album.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.album.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.album.uri)},open_album:function(){this.$router.push({path:"/music/spotify/albums/"+this.album.id})},open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})},artwork_loaded:function(){this.artwork_visible=!0},artwork_error:function(){this.artwork_visible=!1}}},YL={key:0,class:"modal is-active"},ZL={class:"modal-content fd-modal-card"},JL={class:"card"},XL={class:"card-content"},QL={class:"image is-square fd-has-margin-bottom"},e7=["src"],t7={class:"title is-4"},s7={class:"content is-small"},n7=l("span",{class:"heading"},"Album artist",-1),r7=l("span",{class:"heading"},"Release date",-1),o7={class:"title is-6"},i7=l("span",{class:"heading"},"Type",-1),a7={class:"title is-6"},l7={class:"card-footer"},u7=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-plus"})],-1),c7=l("span",{class:"is-size-7"},"Add",-1),d7=[u7,c7],f7=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-play"})],-1),h7=l("span",{class:"is-size-7"},"Add Next",-1),m7=[f7,h7],p7=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),_7=l("span",{class:"is-size-7"},"Play",-1),g7=[p7,_7];function v7(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",YL,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",ZL,[l("div",JL,[l("div",XL,[wt(l("figure",QL,[l("img",{src:r.artwork_url,class:"fd-has-shadow",onLoad:t[1]||(t[1]=(...i)=>r.artwork_loaded&&r.artwork_loaded(...i)),onError:t[2]||(t[2]=(...i)=>r.artwork_error&&r.artwork_error(...i))},null,40,e7)],512),[[Xr,o.artwork_visible]]),l("p",t7,[l("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...i)=>r.open_album&&r.open_album(...i))},R(s.album.name),1)]),l("div",s7,[l("p",null,[n7,l("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...i)=>r.open_artist&&r.open_artist(...i))},R(s.album.artists[0].name),1)]),l("p",null,[r7,l("span",o7,R(e.$filters.date(s.album.release_date)),1)]),l("p",null,[i7,l("span",a7,R(s.album.album_type),1)])])]),l("footer",l7,[l("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...i)=>r.queue_add&&r.queue_add(...i))},d7),l("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...i)=>r.queue_add_next&&r.queue_add_next(...i))},m7),l("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...i)=>r.play&&r.play(...i))},g7)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var ki=ge(KL,[["render",v7]]);const y7={name:"SpotifyModalDialogPlaylist",props:["show","playlist"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_uri(this.playlist.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.playlist.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.playlist.uri)},open_playlist:function(){this.$router.push({path:"/music/spotify/playlists/"+this.playlist.id})}}},b7={key:0,class:"modal is-active"},w7={class:"modal-content fd-modal-card"},k7={class:"card"},x7={class:"card-content"},S7={class:"title is-4"},E7={class:"content is-small"},C7=l("span",{class:"heading"},"Owner",-1),$7={class:"title is-6"},O7=l("span",{class:"heading"},"Tracks",-1),T7={class:"title is-6"},A7=l("span",{class:"heading"},"Path",-1),P7={class:"title is-6"},D7={class:"card-footer"},F7=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-plus"})],-1),I7=l("span",{class:"is-size-7"},"Add",-1),R7=[F7,I7],N7=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-play"})],-1),M7=l("span",{class:"is-size-7"},"Add Next",-1),L7=[N7,M7],j7=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),B7=l("span",{class:"is-size-7"},"Play",-1),U7=[j7,B7];function V7(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",b7,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",w7,[l("div",k7,[l("div",x7,[l("p",S7,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...i)=>r.open_playlist&&r.open_playlist(...i))},R(s.playlist.name),1)]),l("div",E7,[l("p",null,[C7,l("span",$7,R(s.playlist.owner.display_name),1)]),l("p",null,[O7,l("span",T7,R(s.playlist.tracks.total),1)]),l("p",null,[A7,l("span",P7,R(s.playlist.uri),1)])])]),l("footer",D7,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...i)=>r.queue_add&&r.queue_add(...i))},R7),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...i)=>r.queue_add_next&&r.queue_add_next(...i))},L7),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...i)=>r.play&&r.play(...i))},U7)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var Bl=ge(y7,[["render",V7]]);const va={load:function(e){if(it.state.spotify_new_releases.length>0&&it.state.spotify_featured_playlists.length>0)return Promise.resolve();const t=new Gs;return t.setAccessToken(it.state.spotify.webapi_token),Promise.all([t.getNewReleases({country:it.state.spotify.webapi_country,limit:50}),t.getFeaturedPlaylists({country:it.state.spotify.webapi_country,limit:50})])},set:function(e,t){t&&(it.commit(vd,t[0].albums.items),it.commit(yd,t[1].playlists.items))}},H7={name:"SpotifyPageBrowse",components:{ContentWithHeading:ft,TabsMusic:nn,SpotifyListItemAlbum:jl,SpotifyListItemPlaylist:Gd,SpotifyModalDialogAlbum:ki,SpotifyModalDialogPlaylist:Bl,CoverArtwork:yn},beforeRouteEnter(e,t,s){va.load(e).then(n=>{s(o=>va.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;va.load(e).then(o=>{va.set(n,o),s()})},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:function(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},open_album_dialog:function(e){this.selected_album=e,this.show_album_details_modal=!0},open_playlist_dialog:function(e){this.selected_playlist=e,this.show_playlist_details_modal=!0},artwork_url:function(e){return e.images&&e.images.length>0?e.images[0].url:""}}},q7={class:"fd-page-with-tabs"},z7=l("p",{class:"title is-4"},"New Releases",-1),G7={class:"image is-64x64 fd-has-shadow fd-has-action"},W7=["onClick"],K7=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),Y7=[K7],Z7={class:"level"},J7={class:"level-item"},X7=$e(" Show more "),Q7=l("p",{class:"title is-4"},"Featured Playlists",-1),ej=["onClick"],tj=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),sj=[tj],nj={class:"level"},rj={class:"level-item"},oj=$e(" Show more ");function ij(e,t,s,n,o,r){const i=B("tabs-music"),a=B("cover-artwork"),u=B("spotify-list-item-album"),c=B("spotify-modal-dialog-album"),d=B("router-link"),h=B("content-with-heading"),f=B("spotify-list-item-playlist"),m=B("spotify-modal-dialog-playlist");return x(),A("div",q7,[P(i),P(h,null,{"heading-left":T(()=>[z7]),content:T(()=>[(x(!0),A(Ke,null,bt(r.new_releases,p=>(x(),xe(u,{key:p.id,album:p,onClick:_=>r.open_album(p)},gi({actions:T(()=>[l("a",{onClick:pt(_=>r.open_album_dialog(p),["prevent","stop"])},Y7,8,W7)]),_:2},[r.is_visible_artwork?{name:"artwork",fn:T(()=>[l("p",G7,[P(a,{artwork_url:r.artwork_url(p),artist:p.artist,album:p.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),P(c,{show:o.show_album_details_modal,album:o.selected_album,onClose:t[0]||(t[0]=p=>o.show_album_details_modal=!1)},null,8,["show","album"])]),footer:T(()=>[l("nav",Z7,[l("p",J7,[P(d,{to:"/music/spotify/new-releases",class:"button is-light is-small is-rounded"},{default:T(()=>[X7]),_:1})])])]),_:1}),P(h,null,{"heading-left":T(()=>[Q7]),content:T(()=>[(x(!0),A(Ke,null,bt(r.featured_playlists,p=>(x(),xe(f,{key:p.id,playlist:p},{actions:T(()=>[l("a",{onClick:pt(_=>r.open_playlist_dialog(p),["prevent","stop"])},sj,8,ej)]),_:2},1032,["playlist"]))),128)),P(m,{show:o.show_playlist_details_modal,playlist:o.selected_playlist,onClose:t[1]||(t[1]=p=>o.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),footer:T(()=>[l("nav",nj,[l("p",rj,[P(d,{to:"/music/spotify/featured-playlists",class:"button is-light is-small is-rounded"},{default:T(()=>[oj]),_:1})])])]),_:1})])}var aj=ge(H7,[["render",ij]]);const ya={load:function(e){if(it.state.spotify_new_releases.length>0)return Promise.resolve();const t=new Gs;return t.setAccessToken(it.state.spotify.webapi_token),t.getNewReleases({country:it.state.spotify.webapi_country,limit:50})},set:function(e,t){t&&it.commit(vd,t.albums.items)}},lj={name:"SpotifyPageBrowseNewReleases",components:{ContentWithHeading:ft,TabsMusic:nn,SpotifyListItemAlbum:jl,SpotifyModalDialogAlbum:ki,CoverArtwork:yn},beforeRouteEnter(e,t,s){ya.load(e).then(n=>{s(o=>ya.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;ya.load(e).then(o=>{ya.set(n,o),s()})},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:function(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},open_album_dialog:function(e){this.selected_album=e,this.show_album_details_modal=!0},artwork_url:function(e){return e.images&&e.images.length>0?e.images[0].url:""}}},uj={class:"fd-page-with-tabs"},cj=l("p",{class:"title is-4"},"New Releases",-1),dj={class:"image is-64x64 fd-has-shadow fd-has-action"},fj=["onClick"],hj=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),mj=[hj];function pj(e,t,s,n,o,r){const i=B("tabs-music"),a=B("cover-artwork"),u=B("spotify-list-item-album"),c=B("spotify-modal-dialog-album"),d=B("content-with-heading");return x(),A("div",uj,[P(i),P(d,null,{"heading-left":T(()=>[cj]),content:T(()=>[(x(!0),A(Ke,null,bt(r.new_releases,h=>(x(),xe(u,{key:h.id,album:h,onClick:f=>r.open_album(h)},gi({actions:T(()=>[l("a",{onClick:pt(f=>r.open_album_dialog(h),["prevent","stop"])},mj,8,fj)]),_:2},[r.is_visible_artwork?{name:"artwork",fn:T(()=>[l("p",dj,[P(a,{artwork_url:r.artwork_url(h),artist:h.artist,album:h.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),P(c,{show:o.show_album_details_modal,album:o.selected_album,onClose:t[0]||(t[0]=h=>o.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})])}var _j=ge(lj,[["render",pj]]);const ba={load:function(e){if(it.state.spotify_featured_playlists.length>0)return Promise.resolve();const t=new Gs;t.setAccessToken(it.state.spotify.webapi_token),t.getFeaturedPlaylists({country:it.state.spotify.webapi_country,limit:50})},set:function(e,t){t&&it.commit(yd,t.playlists.items)}},gj={name:"SpotifyPageBrowseFeaturedPlaylists",components:{ContentWithHeading:ft,TabsMusic:nn,SpotifyListItemPlaylist:Gd,SpotifyModalDialogPlaylist:Bl},beforeRouteEnter(e,t,s){ba.load(e).then(n=>{s(o=>ba.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;ba.load(e).then(o=>{ba.set(n,o),s()})},data(){return{show_playlist_details_modal:!1,selected_playlist:{}}},computed:{featured_playlists(){return this.$store.state.spotify_featured_playlists}},methods:{open_playlist_dialog:function(e){this.selected_playlist=e,this.show_playlist_details_modal=!0}}},vj={class:"fd-page-with-tabs"},yj=l("p",{class:"title is-4"},"Featured Playlists",-1),bj=["onClick"],wj=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),kj=[wj];function xj(e,t,s,n,o,r){const i=B("tabs-music"),a=B("spotify-list-item-playlist"),u=B("spotify-modal-dialog-playlist"),c=B("content-with-heading");return x(),A("div",vj,[P(i),P(c,null,{"heading-left":T(()=>[yj]),content:T(()=>[(x(!0),A(Ke,null,bt(r.featured_playlists,d=>(x(),xe(a,{key:d.id,playlist:d},{actions:T(()=>[l("a",{onClick:pt(h=>r.open_playlist_dialog(d),["prevent","stop"])},kj,8,bj)]),_:2},1032,["playlist"]))),128)),P(u,{show:o.show_playlist_details_modal,playlist:o.selected_playlist,onClose:t[0]||(t[0]=d=>o.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),_:1})])}var Sj=ge(gj,[["render",xj]]);const Ej={name:"SpotifyModalDialogArtist",props:["show","artist"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_uri(this.artist.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.artist.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.artist.uri)},open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.artist.id})}}},Cj={key:0,class:"modal is-active"},$j={class:"modal-content fd-modal-card"},Oj={class:"card"},Tj={class:"card-content"},Aj={class:"title is-4"},Pj={class:"content is-small"},Dj=l("span",{class:"heading"},"Popularity / Followers",-1),Fj={class:"title is-6"},Ij=l("span",{class:"heading"},"Genres",-1),Rj={class:"title is-6"},Nj={class:"card-footer"},Mj=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-plus"})],-1),Lj=l("span",{class:"is-size-7"},"Add",-1),jj=[Mj,Lj],Bj=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-play"})],-1),Uj=l("span",{class:"is-size-7"},"Add Next",-1),Vj=[Bj,Uj],Hj=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),qj=l("span",{class:"is-size-7"},"Play",-1),zj=[Hj,qj];function Gj(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",Cj,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",$j,[l("div",Oj,[l("div",Tj,[l("p",Aj,[l("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...i)=>r.open_artist&&r.open_artist(...i))},R(s.artist.name),1)]),l("div",Pj,[l("p",null,[Dj,l("span",Fj,R(s.artist.popularity)+" / "+R(s.artist.followers.total),1)]),l("p",null,[Ij,l("span",Rj,R(s.artist.genres.join(", ")),1)])])]),l("footer",Nj,[l("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...i)=>r.queue_add&&r.queue_add(...i))},jj),l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...i)=>r.queue_add_next&&r.queue_add_next(...i))},Vj),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...i)=>r.play&&r.play(...i))},zj)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var wv=ge(Ej,[["render",Gj]]),Ul={exports:{}};/*!
|
|
*
|
|
* @ts-pro/vue-eternal-loading v1.1.1
|
|
* (c) 2021 Oleksandr Havrashenko
|
|
* MIT License
|
|
*
|
|
*/(function(e,t){(function(s,n){e.exports=n(Pd)})(typeof self!="undefined"?self:ts,function(s){return function(n){var o={};function r(i){if(o[i])return o[i].exports;var a=o[i]={i,l:!1,exports:{}};return n[i].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=n,r.c=o,r.d=function(i,a,u){r.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:u})},r.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},r.t=function(i,a){if(1&a&&(i=r(i)),8&a||4&a&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(r.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&a&&typeof i!="string")for(var c in i)r.d(u,c,function(d){return i[d]}.bind(null,c));return u},r.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return r.d(a,"a",a),a},r.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},r.p="",r(r.s="fae3")}({"00ee":function(n,o,r){var i=r("b622"),a=i("toStringTag"),u={};u[a]="z",n.exports=String(u)==="[object z]"},"0366":function(n,o,r){var i=r("1c0b");n.exports=function(a,u,c){if(i(a),u===void 0)return a;switch(c){case 0:return function(){return a.call(u)};case 1:return function(d){return a.call(u,d)};case 2:return function(d,h){return a.call(u,d,h)};case 3:return function(d,h,f){return a.call(u,d,h,f)}}return function(){return a.apply(u,arguments)}}},"057f":function(n,o,r){var i=r("fc6a"),a=r("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(h){try{return a(h)}catch{return c.slice()}};n.exports.f=function(h){return c&&u.call(h)=="[object Window]"?d(h):a(i(h))}},"06cf":function(n,o,r){var i=r("83ab"),a=r("d1e7"),u=r("5c6c"),c=r("fc6a"),d=r("c04e"),h=r("5135"),f=r("0cfb"),m=Object.getOwnPropertyDescriptor;o.f=i?m:function(p,_){if(p=c(p),_=d(_,!0),f)try{return m(p,_)}catch{}if(h(p,_))return u(!a.f.call(p,_),p[_])}},"0cfb":function(n,o,r){var i=r("83ab"),a=r("d039"),u=r("cc12");n.exports=!i&&!a(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"1be4":function(n,o,r){var i=r("d066");n.exports=i("document","documentElement")},"1c0b":function(n,o){n.exports=function(r){if(typeof r!="function")throw TypeError(String(r)+" is not a function");return r}},"1c7e":function(n,o,r){var i=r("b622"),a=i("iterator"),u=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){u=!0}};d[a]=function(){return this},Array.from(d,function(){throw 2})}catch{}n.exports=function(h,f){if(!f&&!u)return!1;var m=!1;try{var p={};p[a]=function(){return{next:function(){return{done:m=!0}}}},h(p)}catch{}return m}},"1d80":function(n,o){n.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},"1dde":function(n,o,r){var i=r("d039"),a=r("b622"),u=r("2d00"),c=a("species");n.exports=function(d){return u>=51||!i(function(){var h=[],f=h.constructor={};return f[c]=function(){return{foo:1}},h[d](Boolean).foo!==1})}},"23cb":function(n,o,r){var i=r("a691"),a=Math.max,u=Math.min;n.exports=function(c,d){var h=i(c);return h<0?a(h+d,0):u(h,d)}},"23e7":function(n,o,r){var i=r("da84"),a=r("06cf").f,u=r("9112"),c=r("6eeb"),d=r("ce4e"),h=r("e893"),f=r("94ca");n.exports=function(m,p){var _,g,y,b,k,S,E=m.target,$=m.global,I=m.stat;if(g=$?i:I?i[E]||d(E,{}):(i[E]||{}).prototype,g)for(y in p){if(k=p[y],m.noTargetGet?(S=a(g,y),b=S&&S.value):b=g[y],_=f($?y:E+(I?".":"#")+y,m.forced),!_&&b!==void 0){if(typeof k==typeof b)continue;h(k,b)}(m.sham||b&&b.sham)&&u(k,"sham",!0),c(g,y,k,m)}}},"241c":function(n,o,r){var i=r("ca84"),a=r("7839"),u=a.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(c){return i(c,u)}},"2a62":function(n,o,r){var i=r("825a");n.exports=function(a){var u=a.return;if(u!==void 0)return i(u.call(a)).value}},"2d00":function(n,o,r){var i,a,u=r("da84"),c=r("342f"),d=u.process,h=d&&d.versions,f=h&&h.v8;f?(i=f.split("."),a=i[0]<4?1:i[0]+i[1]):c&&(i=c.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=c.match(/Chrome\/(\d+)/),i&&(a=i[1]))),n.exports=a&&+a},"342f":function(n,o,r){var i=r("d066");n.exports=i("navigator","userAgent")||""},"35a1":function(n,o,r){var i=r("f5df"),a=r("3f8c"),u=r("b622"),c=u("iterator");n.exports=function(d){if(d!=null)return d[c]||d["@@iterator"]||a[i(d)]}},"37e8":function(n,o,r){var i=r("83ab"),a=r("9bf2"),u=r("825a"),c=r("df75");n.exports=i?Object.defineProperties:function(d,h){u(d);for(var f,m=c(h),p=m.length,_=0;p>_;)a.f(d,f=m[_++],h[f]);return d}},"3bbe":function(n,o,r){var i=r("861d");n.exports=function(a){if(!i(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype");return a}},"3ca3":function(n,o,r){var i=r("6547").charAt,a=r("69f3"),u=r("7dd0"),c="String Iterator",d=a.set,h=a.getterFor(c);u(String,"String",function(f){d(this,{type:c,string:String(f),index:0})},function(){var f,m=h(this),p=m.string,_=m.index;return _>=p.length?{value:void 0,done:!0}:(f=i(p,_),m.index+=f.length,{value:f,done:!1})})},"3f8c":function(n,o){n.exports={}},"428f":function(n,o,r){var i=r("da84");n.exports=i},"44ad":function(n,o,r){var i=r("d039"),a=r("c6b6"),u="".split;n.exports=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return a(c)=="String"?u.call(c,""):Object(c)}:Object},"44d2":function(n,o,r){var i=r("b622"),a=r("7c73"),u=r("9bf2"),c=i("unscopables"),d=Array.prototype;d[c]==null&&u.f(d,c,{configurable:!0,value:a(null)}),n.exports=function(h){d[c][h]=!0}},4930:function(n,o,r){var i=r("2d00"),a=r("d039");n.exports=!!Object.getOwnPropertySymbols&&!a(function(){var u=Symbol();return!String(u)||!(Object(u)instanceof Symbol)||!Symbol.sham&&i&&i<41})},"4d64":function(n,o,r){var i=r("fc6a"),a=r("50c4"),u=r("23cb"),c=function(d){return function(h,f,m){var p,_=i(h),g=a(_.length),y=u(m,g);if(d&&f!=f){for(;g>y;)if(p=_[y++],p!=p)return!0}else for(;g>y;y++)if((d||y in _)&&_[y]===f)return d||y||0;return!d&&-1}};n.exports={includes:c(!0),indexOf:c(!1)}},"4df4":function(n,o,r){var i=r("0366"),a=r("7b0b"),u=r("9bdd"),c=r("e95a"),d=r("50c4"),h=r("8418"),f=r("35a1");n.exports=function(m){var p,_,g,y,b,k,S=a(m),E=typeof this=="function"?this:Array,$=arguments.length,I=$>1?arguments[1]:void 0,j=I!==void 0,O=f(S),L=0;if(j&&(I=i(I,$>2?arguments[2]:void 0,2)),O==null||E==Array&&c(O))for(p=d(S.length),_=new E(p);p>L;L++)k=j?I(S[L],L):S[L],h(_,L,k);else for(y=O.call(S),b=y.next,_=new E;!(g=b.call(y)).done;L++)k=j?u(y,I,[g.value,L],!0):g.value,h(_,L,k);return _.length=L,_}},"50c4":function(n,o,r){var i=r("a691"),a=Math.min;n.exports=function(u){return u>0?a(i(u),9007199254740991):0}},5135:function(n,o,r){var i=r("7b0b"),a={}.hasOwnProperty;n.exports=Object.hasOwn||function(u,c){return a.call(i(u),c)}},5692:function(n,o,r){var i=r("c430"),a=r("c6cd");(n.exports=function(u,c){return a[u]||(a[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.15.2",mode:i?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(n,o,r){var i=r("d066"),a=r("241c"),u=r("7418"),c=r("825a");n.exports=i("Reflect","ownKeys")||function(d){var h=a.f(c(d)),f=u.f;return f?h.concat(f(d)):h}},"5c6c":function(n,o){n.exports=function(r,i){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:i}}},6547:function(n,o,r){var i=r("a691"),a=r("1d80"),u=function(c){return function(d,h){var f,m,p=String(a(d)),_=i(h),g=p.length;return _<0||_>=g?c?"":void 0:(f=p.charCodeAt(_),f<55296||f>56319||_+1===g||(m=p.charCodeAt(_+1))<56320||m>57343?c?p.charAt(_):f:c?p.slice(_,_+2):m-56320+(f-55296<<10)+65536)}};n.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(n,o,r){var i=r("861d"),a=r("e8b5"),u=r("b622"),c=u("species");n.exports=function(d,h){var f;return a(d)&&(f=d.constructor,typeof f!="function"||f!==Array&&!a(f.prototype)?i(f)&&(f=f[c],f===null&&(f=void 0)):f=void 0),new(f===void 0?Array:f)(h===0?0:h)}},"69f3":function(n,o,r){var i,a,u,c=r("7f9a"),d=r("da84"),h=r("861d"),f=r("9112"),m=r("5135"),p=r("c6cd"),_=r("f772"),g=r("d012"),y="Object already initialized",b=d.WeakMap,k=function(L){return u(L)?a(L):i(L,{})},S=function(L){return function(z){var D;if(!h(z)||(D=a(z)).type!==L)throw TypeError("Incompatible receiver, "+L+" required");return D}};if(c||p.state){var E=p.state||(p.state=new b),$=E.get,I=E.has,j=E.set;i=function(L,z){if(I.call(E,L))throw new TypeError(y);return z.facade=L,j.call(E,L,z),z},a=function(L){return $.call(E,L)||{}},u=function(L){return I.call(E,L)}}else{var O=_("state");g[O]=!0,i=function(L,z){if(m(L,O))throw new TypeError(y);return z.facade=L,f(L,O,z),z},a=function(L){return m(L,O)?L[O]:{}},u=function(L){return m(L,O)}}n.exports={set:i,get:a,has:u,enforce:k,getterFor:S}},"6eeb":function(n,o,r){var i=r("da84"),a=r("9112"),u=r("5135"),c=r("ce4e"),d=r("8925"),h=r("69f3"),f=h.get,m=h.enforce,p=String(String).split("String");(n.exports=function(_,g,y,b){var k,S=!!b&&!!b.unsafe,E=!!b&&!!b.enumerable,$=!!b&&!!b.noTargetGet;typeof y=="function"&&(typeof g!="string"||u(y,"name")||a(y,"name",g),k=m(y),k.source||(k.source=p.join(typeof g=="string"?g:""))),_!==i?(S?!$&&_[g]&&(E=!0):delete _[g],E?_[g]=y:a(_,g,y)):E?_[g]=y:c(g,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||d(this)})},7418:function(n,o){o.f=Object.getOwnPropertySymbols},"746f":function(n,o,r){var i=r("428f"),a=r("5135"),u=r("e538"),c=r("9bf2").f;n.exports=function(d){var h=i.Symbol||(i.Symbol={});a(h,d)||c(h,d,{value:u.f(d)})}},7839:function(n,o){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(n,o,r){var i=r("1d80");n.exports=function(a){return Object(i(a))}},"7c73":function(n,o,r){var i,a=r("825a"),u=r("37e8"),c=r("7839"),d=r("d012"),h=r("1be4"),f=r("cc12"),m=r("f772"),p=">",_="<",g="prototype",y="script",b=m("IE_PROTO"),k=function(){},S=function(j){return _+y+p+j+_+"/"+y+p},E=function(j){j.write(S("")),j.close();var O=j.parentWindow.Object;return j=null,O},$=function(){var j,O=f("iframe"),L="java"+y+":";return O.style.display="none",h.appendChild(O),O.src=String(L),j=O.contentWindow.document,j.open(),j.write(S("document.F=Object")),j.close(),j.F},I=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch{}I=i?E(i):$();for(var j=c.length;j--;)delete I[g][c[j]];return I()};d[b]=!0,n.exports=Object.create||function(j,O){var L;return j!==null?(k[g]=a(j),L=new k,k[g]=null,L[b]=j):L=I(),O===void 0?L:u(L,O)}},"7dd0":function(n,o,r){var i=r("23e7"),a=r("9ed3"),u=r("e163"),c=r("d2bb"),d=r("d44e"),h=r("9112"),f=r("6eeb"),m=r("b622"),p=r("c430"),_=r("3f8c"),g=r("ae93"),y=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,k=m("iterator"),S="keys",E="values",$="entries",I=function(){return this};n.exports=function(j,O,L,z,D,U,W){a(L,O,z);var ue,te,ae,ve=function(V){if(V===D&&ce)return ce;if(!b&&V in me)return me[V];switch(V){case S:return function(){return new L(this,V)};case E:return function(){return new L(this,V)};case $:return function(){return new L(this,V)}}return function(){return new L(this)}},Me=O+" Iterator",Ge=!1,me=j.prototype,Z=me[k]||me["@@iterator"]||D&&me[D],ce=!b&&Z||ve(D),we=O=="Array"&&me.entries||Z;if(we&&(ue=u(we.call(new j)),y!==Object.prototype&&ue.next&&(p||u(ue)===y||(c?c(ue,y):typeof ue[k]!="function"&&h(ue,k,I)),d(ue,Me,!0,!0),p&&(_[Me]=I))),D==E&&Z&&Z.name!==E&&(Ge=!0,ce=function(){return Z.call(this)}),p&&!W||me[k]===ce||h(me,k,ce),_[O]=ce,D)if(te={values:ve(E),keys:U?ce:ve(S),entries:ve($)},W)for(ae in te)(b||Ge||!(ae in me))&&f(me,ae,te[ae]);else i({target:O,proto:!0,forced:b||Ge},te);return te}},"7f9a":function(n,o,r){var i=r("da84"),a=r("8925"),u=i.WeakMap;n.exports=typeof u=="function"&&/native code/.test(a(u))},"825a":function(n,o,r){var i=r("861d");n.exports=function(a){if(!i(a))throw TypeError(String(a)+" is not an object");return a}},"83ab":function(n,o,r){var i=r("d039");n.exports=!i(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(n,o,r){var i=r("c04e"),a=r("9bf2"),u=r("5c6c");n.exports=function(c,d,h){var f=i(d);f in c?a.f(c,f,u(0,h)):c[f]=h}},"861d":function(n,o){n.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},8875:function(n,o,r){var i,a,u;(function(c,d){a=[],i=d,u=typeof i=="function"?i.apply(o,a):i,u===void 0||(n.exports=u)})(typeof self!="undefined"&&self,function(){function c(){var d=Object.getOwnPropertyDescriptor(document,"currentScript");if(!d&&"currentScript"in document&&document.currentScript||d&&d.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch($){var h,f,m,p=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,_=/@([^@]*):(\d+):(\d+)\s*$/gi,g=p.exec($.stack)||_.exec($.stack),y=g&&g[1]||!1,b=g&&g[2]||!1,k=document.location.href.replace(document.location.hash,""),S=document.getElementsByTagName("script");y===k&&(h=document.documentElement.outerHTML,f=new RegExp("(?:[^\\n]+?\\n){0,"+(b-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),m=h.replace(f,"$1").trim());for(var E=0;E<S.length;E++)if(S[E].readyState==="interactive"||S[E].src===y||y===k&&S[E].innerHTML&&S[E].innerHTML.trim()===m)return S[E];return null}}return c})},8925:function(n,o,r){var i=r("c6cd"),a=Function.toString;typeof i.inspectSource!="function"&&(i.inspectSource=function(u){return a.call(u)}),n.exports=i.inspectSource},"8bbf":function(n,o){n.exports=s},"90e3":function(n,o){var r=0,i=Math.random();n.exports=function(a){return"Symbol("+String(a===void 0?"":a)+")_"+(++r+i).toString(36)}},9112:function(n,o,r){var i=r("83ab"),a=r("9bf2"),u=r("5c6c");n.exports=i?function(c,d,h){return a.f(c,d,u(1,h))}:function(c,d,h){return c[d]=h,c}},"94ca":function(n,o,r){var i=r("d039"),a=/#|\.prototype\./,u=function(m,p){var _=d[c(m)];return _==f||_!=h&&(typeof p=="function"?i(p):!!p)},c=u.normalize=function(m){return String(m).replace(a,".").toLowerCase()},d=u.data={},h=u.NATIVE="N",f=u.POLYFILL="P";n.exports=u},"9bdd":function(n,o,r){var i=r("825a"),a=r("2a62");n.exports=function(u,c,d,h){try{return h?c(i(d)[0],d[1]):c(d)}catch(f){throw a(u),f}}},"9bf2":function(n,o,r){var i=r("83ab"),a=r("0cfb"),u=r("825a"),c=r("c04e"),d=Object.defineProperty;o.f=i?d:function(h,f,m){if(u(h),f=c(f,!0),u(m),a)try{return d(h,f,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(h[f]=m.value),h}},"9ed3":function(n,o,r){var i=r("ae93").IteratorPrototype,a=r("7c73"),u=r("5c6c"),c=r("d44e"),d=r("3f8c"),h=function(){return this};n.exports=function(f,m,p){var _=m+" Iterator";return f.prototype=a(i,{next:u(1,p)}),c(f,_,!1,!0),d[_]=h,f}},a4d3:function(n,o,r){var i=r("23e7"),a=r("da84"),u=r("d066"),c=r("c430"),d=r("83ab"),h=r("4930"),f=r("fdbf"),m=r("d039"),p=r("5135"),_=r("e8b5"),g=r("861d"),y=r("825a"),b=r("7b0b"),k=r("fc6a"),S=r("c04e"),E=r("5c6c"),$=r("7c73"),I=r("df75"),j=r("241c"),O=r("057f"),L=r("7418"),z=r("06cf"),D=r("9bf2"),U=r("d1e7"),W=r("9112"),ue=r("6eeb"),te=r("5692"),ae=r("f772"),ve=r("d012"),Me=r("90e3"),Ge=r("b622"),me=r("e538"),Z=r("746f"),ce=r("d44e"),we=r("69f3"),V=r("b727").forEach,re=ae("hidden"),se="Symbol",be="prototype",He=Ge("toPrimitive"),Re=we.set,Oe=we.getterFor(se),De=Object[be],C=a.Symbol,N=u("JSON","stringify"),K=z.f,oe=D.f,le=O.f,ye=U.f,ke=te("symbols"),he=te("op-symbols"),pe=te("string-to-symbol-registry"),fe=te("symbol-to-string-registry"),je=te("wks"),Ce=a.QObject,Ne=!Ce||!Ce[be]||!Ce[be].findChild,qe=d&&m(function(){return $(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a!=7})?function(ee,ie,X){var ne=K(De,ie);ne&&delete De[ie],oe(ee,ie,X),ne&&ee!==De&&oe(De,ie,ne)}:oe,Ze=function(ee,ie){var X=ke[ee]=$(C[be]);return Re(X,{type:se,tag:ee,description:ie}),d||(X.description=ie),X},nt=f?function(ee){return typeof ee=="symbol"}:function(ee){return Object(ee)instanceof C},w=function(ee,ie,X){ee===De&&w(he,ie,X),y(ee);var ne=S(ie,!0);return y(X),p(ke,ne)?(X.enumerable?(p(ee,re)&&ee[re][ne]&&(ee[re][ne]=!1),X=$(X,{enumerable:E(0,!1)})):(p(ee,re)||oe(ee,re,E(1,{})),ee[re][ne]=!0),qe(ee,ne,X)):oe(ee,ne,X)},v=function(ee,ie){y(ee);var X=k(ie),ne=I(X).concat(Ee(X));return V(ne,function(Be){d&&!q.call(X,Be)||w(ee,Be,X[Be])}),ee},F=function(ee,ie){return ie===void 0?$(ee):v($(ee),ie)},q=function(ee){var ie=S(ee,!0),X=ye.call(this,ie);return!(this===De&&p(ke,ie)&&!p(he,ie))&&(!(X||!p(this,ie)||!p(ke,ie)||p(this,re)&&this[re][ie])||X)},J=function(ee,ie){var X=k(ee),ne=S(ie,!0);if(X!==De||!p(ke,ne)||p(he,ne)){var Be=K(X,ne);return!Be||!p(ke,ne)||p(X,re)&&X[re][ne]||(Be.enumerable=!0),Be}},de=function(ee){var ie=le(k(ee)),X=[];return V(ie,function(ne){p(ke,ne)||p(ve,ne)||X.push(ne)}),X},Ee=function(ee){var ie=ee===De,X=le(ie?he:k(ee)),ne=[];return V(X,function(Be){!p(ke,Be)||ie&&!p(De,Be)||ne.push(ke[Be])}),ne};if(h||(C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor");var ee=arguments.length&&arguments[0]!==void 0?String(arguments[0]):void 0,ie=Me(ee),X=function(ne){this===De&&X.call(he,ne),p(this,re)&&p(this[re],ie)&&(this[re][ie]=!1),qe(this,ie,E(1,ne))};return d&&Ne&&qe(De,ie,{configurable:!0,set:X}),Ze(ie,ee)},ue(C[be],"toString",function(){return Oe(this).tag}),ue(C,"withoutSetter",function(ee){return Ze(Me(ee),ee)}),U.f=q,D.f=w,z.f=J,j.f=O.f=de,L.f=Ee,me.f=function(ee){return Ze(Ge(ee),ee)},d&&(oe(C[be],"description",{configurable:!0,get:function(){return Oe(this).description}}),c||ue(De,"propertyIsEnumerable",q,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:C}),V(I(je),function(ee){Z(ee)}),i({target:se,stat:!0,forced:!h},{for:function(ee){var ie=String(ee);if(p(pe,ie))return pe[ie];var X=C(ie);return pe[ie]=X,fe[X]=ie,X},keyFor:function(ee){if(!nt(ee))throw TypeError(ee+" is not a symbol");if(p(fe,ee))return fe[ee]},useSetter:function(){Ne=!0},useSimple:function(){Ne=!1}}),i({target:"Object",stat:!0,forced:!h,sham:!d},{create:F,defineProperty:w,defineProperties:v,getOwnPropertyDescriptor:J}),i({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:de,getOwnPropertySymbols:Ee}),i({target:"Object",stat:!0,forced:m(function(){L.f(1)})},{getOwnPropertySymbols:function(ee){return L.f(b(ee))}}),N){var Ie=!h||m(function(){var ee=C();return N([ee])!="[null]"||N({a:ee})!="{}"||N(Object(ee))!="{}"});i({target:"JSON",stat:!0,forced:Ie},{stringify:function(ee,ie,X){for(var ne,Be=[ee],Ve=1;arguments.length>Ve;)Be.push(arguments[Ve++]);if(ne=ie,(g(ie)||ee!==void 0)&&!nt(ee))return _(ie)||(ie=function(ut,as){if(typeof ne=="function"&&(as=ne.call(this,ut,as)),!nt(as))return as}),Be[1]=ie,N.apply(null,Be)}})}C[be][He]||W(C[be],He,C[be].valueOf),ce(C,se),ve[re]=!0},a630:function(n,o,r){var i=r("23e7"),a=r("4df4"),u=r("1c7e"),c=!u(function(d){Array.from(d)});i({target:"Array",stat:!0,forced:c},{from:a})},a691:function(n,o){var r=Math.ceil,i=Math.floor;n.exports=function(a){return isNaN(a=+a)?0:(a>0?i:r)(a)}},ae93:function(n,o,r){var i,a,u,c=r("d039"),d=r("e163"),h=r("9112"),f=r("5135"),m=r("b622"),p=r("c430"),_=m("iterator"),g=!1,y=function(){return this};[].keys&&(u=[].keys(),"next"in u?(a=d(d(u)),a!==Object.prototype&&(i=a)):g=!0);var b=i==null||c(function(){var k={};return i[_].call(k)!==k});b&&(i={}),p&&!b||f(i,_)||h(i,_,y),n.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},b041:function(n,o,r){var i=r("00ee"),a=r("f5df");n.exports=i?{}.toString:function(){return"[object "+a(this)+"]"}},b0c0:function(n,o,r){var i=r("83ab"),a=r("9bf2").f,u=Function.prototype,c=u.toString,d=/^\s*function ([^ (]*)/,h="name";i&&!(h in u)&&a(u,h,{configurable:!0,get:function(){try{return c.call(this).match(d)[1]}catch{return""}}})},b622:function(n,o,r){var i=r("da84"),a=r("5692"),u=r("5135"),c=r("90e3"),d=r("4930"),h=r("fdbf"),f=a("wks"),m=i.Symbol,p=h?m:m&&m.withoutSetter||c;n.exports=function(_){return u(f,_)&&(d||typeof f[_]=="string")||(d&&u(m,_)?f[_]=m[_]:f[_]=p("Symbol."+_)),f[_]}},b727:function(n,o,r){var i=r("0366"),a=r("44ad"),u=r("7b0b"),c=r("50c4"),d=r("65f0"),h=[].push,f=function(m){var p=m==1,_=m==2,g=m==3,y=m==4,b=m==6,k=m==7,S=m==5||b;return function(E,$,I,j){for(var O,L,z=u(E),D=a(z),U=i($,I,3),W=c(D.length),ue=0,te=j||d,ae=p?te(E,W):_||k?te(E,0):void 0;W>ue;ue++)if((S||ue in D)&&(O=D[ue],L=U(O,ue,z),m))if(p)ae[ue]=L;else if(L)switch(m){case 3:return!0;case 5:return O;case 6:return ue;case 2:h.call(ae,O)}else switch(m){case 4:return!1;case 7:h.call(ae,O)}return b?-1:g||y?y:ae}};n.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterOut:f(7)}},c04e:function(n,o,r){var i=r("861d");n.exports=function(a,u){if(!i(a))return a;var c,d;if(u&&typeof(c=a.toString)=="function"&&!i(d=c.call(a))||typeof(c=a.valueOf)=="function"&&!i(d=c.call(a))||!u&&typeof(c=a.toString)=="function"&&!i(d=c.call(a)))return d;throw TypeError("Can't convert object to primitive value")}},c430:function(n,o){n.exports=!1},c6b6:function(n,o){var r={}.toString;n.exports=function(i){return r.call(i).slice(8,-1)}},c6cd:function(n,o,r){var i=r("da84"),a=r("ce4e"),u="__core-js_shared__",c=i[u]||a(u,{});n.exports=c},c8ba:function(n,o){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}n.exports=r},ca84:function(n,o,r){var i=r("5135"),a=r("fc6a"),u=r("4d64").indexOf,c=r("d012");n.exports=function(d,h){var f,m=a(d),p=0,_=[];for(f in m)!i(c,f)&&i(m,f)&&_.push(f);for(;h.length>p;)i(m,f=h[p++])&&(~u(_,f)||_.push(f));return _}},cc12:function(n,o,r){var i=r("da84"),a=r("861d"),u=i.document,c=a(u)&&a(u.createElement);n.exports=function(d){return c?u.createElement(d):{}}},ce4e:function(n,o,r){var i=r("da84"),a=r("9112");n.exports=function(u,c){try{a(i,u,c)}catch{i[u]=c}return c}},d012:function(n,o){n.exports={}},d039:function(n,o){n.exports=function(r){try{return!!r()}catch{return!0}}},d066:function(n,o,r){var i=r("428f"),a=r("da84"),u=function(c){return typeof c=="function"?c:void 0};n.exports=function(c,d){return arguments.length<2?u(i[c])||u(a[c]):i[c]&&i[c][d]||a[c]&&a[c][d]}},d1e7:function(n,o,r){var i={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,u=a&&!i.call({1:2},1);o.f=u?function(c){var d=a(this,c);return!!d&&d.enumerable}:i},d28b:function(n,o,r){var i=r("746f");i("iterator")},d2bb:function(n,o,r){var i=r("825a"),a=r("3bbe");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u,c=!1,d={};try{u=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,u.call(d,[]),c=d instanceof Array}catch{}return function(h,f){return i(h),a(f),c?u.call(h,f):h.__proto__=f,h}}():void 0)},d3b7:function(n,o,r){var i=r("00ee"),a=r("6eeb"),u=r("b041");i||a(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(n,o,r){var i=r("9bf2").f,a=r("5135"),u=r("b622"),c=u("toStringTag");n.exports=function(d,h,f){d&&!a(d=f?d:d.prototype,c)&&i(d,c,{configurable:!0,value:h})}},da84:function(n,o,r){(function(i){var a=function(u){return u&&u.Math==Math&&u};n.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof i=="object"&&i)||function(){return this}()||Function("return this")()}).call(this,r("c8ba"))},ddb0:function(n,o,r){var i=r("da84"),a=r("fdbc"),u=r("e260"),c=r("9112"),d=r("b622"),h=d("iterator"),f=d("toStringTag"),m=u.values;for(var p in a){var _=i[p],g=_&&_.prototype;if(g){if(g[h]!==m)try{c(g,h,m)}catch{g[h]=m}if(g[f]||c(g,f,p),a[p]){for(var y in u)if(g[y]!==u[y])try{c(g,y,u[y])}catch{g[y]=u[y]}}}}},df75:function(n,o,r){var i=r("ca84"),a=r("7839");n.exports=Object.keys||function(u){return i(u,a)}},e01a:function(n,o,r){var i=r("23e7"),a=r("83ab"),u=r("da84"),c=r("5135"),d=r("861d"),h=r("9bf2").f,f=r("e893"),m=u.Symbol;if(a&&typeof m=="function"&&(!("description"in m.prototype)||m().description!==void 0)){var p={},_=function(){var S=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),E=this instanceof _?new m(S):S===void 0?m():m(S);return S===""&&(p[E]=!0),E};f(_,m);var g=_.prototype=m.prototype;g.constructor=_;var y=g.toString,b=String(m("test"))=="Symbol(test)",k=/^Symbol\((.*)\)[^)]+$/;h(g,"description",{configurable:!0,get:function(){var S=d(this)?this.valueOf():this,E=y.call(S);if(c(p,S))return"";var $=b?E.slice(7,-1):E.replace(k,"$1");return $===""?void 0:$}}),i({global:!0,forced:!0},{Symbol:_})}},e163:function(n,o,r){var i=r("5135"),a=r("7b0b"),u=r("f772"),c=r("e177"),d=u("IE_PROTO"),h=Object.prototype;n.exports=c?Object.getPrototypeOf:function(f){return f=a(f),i(f,d)?f[d]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?h:null}},e177:function(n,o,r){var i=r("d039");n.exports=!i(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},e260:function(n,o,r){var i=r("fc6a"),a=r("44d2"),u=r("3f8c"),c=r("69f3"),d=r("7dd0"),h="Array Iterator",f=c.set,m=c.getterFor(h);n.exports=d(Array,"Array",function(p,_){f(this,{type:h,target:i(p),index:0,kind:_})},function(){var p=m(this),_=p.target,g=p.kind,y=p.index++;return!_||y>=_.length?(p.target=void 0,{value:void 0,done:!0}):g=="keys"?{value:y,done:!1}:g=="values"?{value:_[y],done:!1}:{value:[y,_[y]],done:!1}},"values"),u.Arguments=u.Array,a("keys"),a("values"),a("entries")},e538:function(n,o,r){var i=r("b622");o.f=i},e893:function(n,o,r){var i=r("5135"),a=r("56ef"),u=r("06cf"),c=r("9bf2");n.exports=function(d,h){for(var f=a(h),m=c.f,p=u.f,_=0;_<f.length;_++){var g=f[_];i(d,g)||m(d,g,p(h,g))}}},e8b5:function(n,o,r){var i=r("c6b6");n.exports=Array.isArray||function(a){return i(a)=="Array"}},e95a:function(n,o,r){var i=r("b622"),a=r("3f8c"),u=i("iterator"),c=Array.prototype;n.exports=function(d){return d!==void 0&&(a.Array===d||c[u]===d)}},f5df:function(n,o,r){var i=r("00ee"),a=r("c6b6"),u=r("b622"),c=u("toStringTag"),d=a(function(){return arguments}())=="Arguments",h=function(f,m){try{return f[m]}catch{}};n.exports=i?a:function(f){var m,p,_;return f===void 0?"Undefined":f===null?"Null":typeof(p=h(m=Object(f),c))=="string"?p:d?a(m):(_=a(m))=="Object"&&typeof m.callee=="function"?"Arguments":_}},f772:function(n,o,r){var i=r("5692"),a=r("90e3"),u=i("keys");n.exports=function(c){return u[c]||(u[c]=a(c))}},fae3:function(n,o,r){if(r.r(o),r.d(o,"VueEternalLoading",function(){return z}),typeof window!="undefined"){var i=window.document.currentScript,a=r("8875");i=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a});var u=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(r.p=u[1])}var c=r("8bbf"),d={class:"vue-eternal-loading",ref:"rootRef"},h=Object(c.createVNode)("div",{class:"loading"},"Loading...",-1),f=Object(c.createVNode)("div",{class:"no-more"},"No more.",-1),m=Object(c.createVNode)("div",{class:"no-results"},"No results.",-1),p=Object(c.createVNode)("div",{class:"error"},"Error.",-1);function _(D,U,W,ue,te,ae){return Object(c.openBlock)(),Object(c.createBlock)("div",d,[D.state==="loading"?Object(c.renderSlot)(D.$slots,"loading",Object(c.mergeProps)({key:0},{isFirstLoad:D.isFirstLoad}),function(){return[h]}):D.state==="no-more"?Object(c.renderSlot)(D.$slots,"no-more",Object(c.mergeProps)({key:1},{retry:D.retry}),function(){return[f]}):D.state==="no-results"?Object(c.renderSlot)(D.$slots,"no-results",Object(c.mergeProps)({key:2},{retry:D.retry}),function(){return[m]}):D.state==="error"?Object(c.renderSlot)(D.$slots,"error",Object(c.mergeProps)({key:3},{retry:D.retry}),function(){return[p]}):Object(c.createCommentVNode)("",!0)],512)}function g(D){if(Array.isArray(D))return D}r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("e260"),r("3ca3"),r("ddb0");function y(D,U){var W=D==null?null:typeof Symbol!="undefined"&&D[Symbol.iterator]||D["@@iterator"];if(W!=null){var ue,te,ae=[],ve=!0,Me=!1;try{for(W=W.call(D);!(ve=(ue=W.next()).done)&&(ae.push(ue.value),!(U&&ae.length===U));ve=!0);}catch(Ge){Me=!0,te=Ge}finally{try{ve||W.return==null||W.return()}finally{if(Me)throw te}}return ae}}r("fb6a"),r("b0c0"),r("a630");function b(D,U){(U==null||U>D.length)&&(U=D.length);for(var W=0,ue=new Array(U);W<U;W++)ue[W]=D[W];return ue}function k(D,U){if(D){if(typeof D=="string")return b(D,U);var W=Object.prototype.toString.call(D).slice(8,-1);return W==="Object"&&D.constructor&&(W=D.constructor.name),W==="Map"||W==="Set"?Array.from(D):W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W)?b(D,U):void 0}}function S(){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 E(D,U){return g(D)||y(D,U)||k(D,U)||S()}function $(D){return D.scrollHeight}function I(D){return D.scrollWidth}function j(D,U){D.scrollTop=D.scrollHeight-U+D.scrollTop}function O(D,U){D.scrollLeft=D.scrollWidth-U+D.scrollLeft}var L=Object(c.defineComponent)({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}},setup:function(D,U){var W,ue=Object(c.ref)(),te=Object(c.ref)("loading"),ae=Object(c.ref)(D.isInitial),ve=0;function Me(){Object(c.nextTick)(function(){var Re;if(D.position==="top")j((Re=D.container)!==null&&Re!==void 0?Re:document.documentElement,ve);else if(D.position==="left"){var Oe;O((Oe=D.container)!==null&&Oe!==void 0?Oe:document.documentElement,ve)}})}function Ge(Re,Oe){return Re===0?ae.value?(Z(),"no-results"):(me(),"no-more"):Re!==void 0&&Oe!==void 0&&Re<Oe?(me(),"no-more"):(ae.value=!1,Me(),be(),"loading")}function me(){ae.value=!1,re("no-more"),Me()}function Z(){ae.value=!1,re("no-results"),Me()}function ce(){ae.value=!1,re("error"),Me()}function we(){ae.value=!0,re("loading"),be()}function V(){re("loading"),be()}function re(Re){te.value=Re}function se(){ue.value&&W.unobserve(ue.value)}function be(){ue.value&&W.observe(ue.value)}function He(){return new IntersectionObserver(function(Re){var Oe=E(Re,1),De=Oe[0];if(De.isIntersecting){var C;if(D.position==="top")ve=$((C=D.container)!==null&&C!==void 0?C:document.documentElement);else if(D.position==="left"){var N;ve=I((N=D.container)!==null&&N!==void 0?N:document.documentElement)}se(),D.load({loaded:Ge,noMore:me,noResults:Z,error:ce},{isFirstLoad:ae.value})}},{root:D.container,threshold:0,rootMargin:D.margin})}return Object(c.watchEffect)(function(){W&&se(),W=He(),be()},{flush:"post"}),Object(c.watch)(function(){return D.isInitial},function(Re){Re&&we()}),Object(c.watch)(ae,function(Re){Re||U.emit("update:isInitial",!1)}),{rootRef:ue,state:te,isFirstLoad:ae,retry:V}}});L.render=_;var z=L},fb6a:function(n,o,r){var i=r("23e7"),a=r("861d"),u=r("e8b5"),c=r("23cb"),d=r("50c4"),h=r("fc6a"),f=r("8418"),m=r("b622"),p=r("1dde"),_=p("slice"),g=m("species"),y=[].slice,b=Math.max;i({target:"Array",proto:!0,forced:!_},{slice:function(k,S){var E,$,I,j=h(this),O=d(j.length),L=c(k,O),z=c(S===void 0?O:S,O);if(u(j)&&(E=j.constructor,typeof E!="function"||E!==Array&&!u(E.prototype)?a(E)&&(E=E[g],E===null&&(E=void 0)):E=void 0,E===Array||E===void 0))return y.call(j,L,z);for($=new(E===void 0?Array:E)(b(z-L,0)),I=0;L<z;L++,I++)L in j&&f($,I,j[L]);return $.length=I,$}})},fc6a:function(n,o,r){var i=r("44ad"),a=r("1d80");n.exports=function(u){return i(a(u))}},fdbc:function(n,o){n.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(n,o,r){var i=r("4930");n.exports=i&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}})})})(Ul);const $c=50,wa={load:function(e){const t=new Gs;return t.setAccessToken(it.state.spotify.webapi_token),Promise.all([t.getArtist(e.params.artist_id),t.getArtistAlbums(e.params.artist_id,{limit:$c,offset:0,include_groups:"album,single",market:it.state.spotify.webapi_country})])},set:function(e,t){e.artist=t[0],e.albums=[],e.total=0,e.offset=0,e.append_albums(t[1])}},Wj={name:"SpotifyPageArtist",components:{ContentWithHeading:ft,SpotifyListItemAlbum:jl,SpotifyModalDialogAlbum:ki,SpotifyModalDialogArtist:wv,VueEternalLoading:Ul.exports.VueEternalLoading,CoverArtwork:yn},beforeRouteEnter(e,t,s){wa.load(e).then(n=>{s(o=>wa.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;wa.load(e).then(o=>{wa.set(n,o),s()})},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:function({loaded:e}){const t=new Gs;t.setAccessToken(this.$store.state.spotify.webapi_token),t.getArtistAlbums(this.artist.id,{limit:$c,offset:this.offset,include_groups:"album,single"}).then(s=>{this.append_albums(s),e(s.items.length,$c)})},append_albums:function(e){this.albums=this.albums.concat(e.items),this.total=e.total,this.offset+=e.limit},play:function(){this.show_details_modal=!1,G.player_play_uri(this.artist.uri,!0)},open_album:function(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},open_dialog:function(e){this.selected_album=e,this.show_details_modal=!0},artwork_url:function(e){return e.images&&e.images.length>0?e.images[0].url:""}}},Kj={class:"title is-4"},Yj={class:"buttons is-centered"},Zj=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),Jj=[Zj],Xj=l("span",{class:"icon"},[l("i",{class:"mdi mdi-shuffle"})],-1),Qj=l("span",null,"Shuffle",-1),eB=[Xj,Qj],tB={class:"heading has-text-centered-mobile"},sB={class:"image is-64x64 fd-has-shadow fd-has-action"},nB=["onClick"],rB=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),oB=[rB],iB=$e(" . ");function aB(e,t,s,n,o,r){const i=B("cover-artwork"),a=B("spotify-list-item-album"),u=B("VueEternalLoading"),c=B("spotify-modal-dialog-album"),d=B("spotify-modal-dialog-artist"),h=B("content-with-heading");return x(),xe(h,null,{"heading-left":T(()=>[l("p",Kj,R(o.artist.name),1)]),"heading-right":T(()=>[l("div",Yj,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=f=>o.show_artist_details_modal=!0)},Jj),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>r.play&&r.play(...f))},eB)])]),content:T(()=>[l("p",tB,R(o.total)+" albums",1),(x(!0),A(Ke,null,bt(o.albums,f=>(x(),xe(a,{key:f.id,album:f,onClick:m=>r.open_album(f)},gi({actions:T(()=>[l("a",{onClick:pt(m=>r.open_dialog(f),["prevent","stop"])},oB,8,nB)]),_:2},[r.is_visible_artwork?{name:"artwork",fn:T(()=>[l("p",sB,[P(i,{artwork_url:r.artwork_url(f),artist:f.artist,album:f.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),o.offset<o.total?(x(),xe(u,{key:0,load:r.load_next},{"no-more":T(()=>[iB]),_:1},8,["load"])):Y("",!0),P(c,{show:o.show_details_modal,album:o.selected_album,onClose:t[2]||(t[2]=f=>o.show_details_modal=!1)},null,8,["show","album"]),P(d,{show:o.show_artist_details_modal,artist:o.artist,onClose:t[3]||(t[3]=f=>o.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var lB=ge(Wj,[["render",aB]]);const uB={name:"SpotifyListItemTrack",props:["track","position","album","context_uri"],methods:{play:function(){G.player_play_uri(this.context_uri,!1,this.position)}}},cB={class:"media"},dB={key:0,class:"subtitle is-7"},fB=$e(" (Track is not playable"),hB={key:0},mB=$e(") "),pB={class:"media-right"};function _B(e,t,s,n,o,r){return x(),A("div",cB,[l("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...i)=>r.play&&r.play(...i))},[l("h1",{class:Le(["title is-6",{"has-text-grey-light":s.track.is_playable===!1}])},R(s.track.name),3),l("h2",{class:Le(["subtitle is-7",{"has-text-grey":s.track.is_playable,"has-text-grey-light":s.track.is_playable===!1}])},[l("b",null,R(s.track.artists[0].name),1)],2),s.track.is_playable===!1?(x(),A("h2",dB,[fB,s.track.restrictions&&s.track.restrictions.reason?(x(),A("span",hB,", restriction reason: "+R(s.track.restrictions.reason),1)):Y("",!0),mB])):Y("",!0)]),l("div",pB,[xt(e.$slots,"actions")])])}var Wd=ge(uB,[["render",_B]]);const gB={name:"SpotifyModalDialogTrack",props:["show","track","album"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_uri(this.track.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.track.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.track.uri)},open_album:function(){this.$router.push({path:"/music/spotify/albums/"+this.album.id})},open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})}}},vB={key:0,class:"modal is-active"},yB={class:"modal-content fd-modal-card"},bB={class:"card"},wB={class:"card-content"},kB={class:"title is-4"},xB={class:"subtitle"},SB={class:"content is-small"},EB=l("span",{class:"heading"},"Album",-1),CB=l("span",{class:"heading"},"Album artist",-1),$B=l("span",{class:"heading"},"Release date",-1),OB={class:"title is-6"},TB=l("span",{class:"heading"},"Track / Disc",-1),AB={class:"title is-6"},PB=l("span",{class:"heading"},"Length",-1),DB={class:"title is-6"},FB=l("span",{class:"heading"},"Path",-1),IB={class:"title is-6"},RB={class:"card-footer"},NB=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-plus"})],-1),MB=l("span",{class:"is-size-7"},"Add",-1),LB=[NB,MB],jB=l("span",{class:"icon"},[l("i",{class:"mdi mdi-playlist-play"})],-1),BB=l("span",{class:"is-size-7"},"Add Next",-1),UB=[jB,BB],VB=l("span",{class:"icon"},[l("i",{class:"mdi mdi-play"})],-1),HB=l("span",{class:"is-size-7"},"Play",-1),qB=[VB,HB];function zB(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",vB,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",yB,[l("div",bB,[l("div",wB,[l("p",kB,R(s.track.name),1),l("p",xB,R(s.track.artists[0].name),1),l("div",SB,[l("p",null,[EB,l("a",{class:"title is-6 has-text-link",onClick:t[1]||(t[1]=(...i)=>r.open_album&&r.open_album(...i))},R(s.album.name),1)]),l("p",null,[CB,l("a",{class:"title is-6 has-text-link",onClick:t[2]||(t[2]=(...i)=>r.open_artist&&r.open_artist(...i))},R(s.album.artists[0].name),1)]),l("p",null,[$B,l("span",OB,R(e.$filters.date(s.album.release_date)),1)]),l("p",null,[TB,l("span",AB,R(s.track.track_number)+" / "+R(s.track.disc_number),1)]),l("p",null,[PB,l("span",DB,R(e.$filters.durationInHours(s.track.duration_ms)),1)]),l("p",null,[FB,l("span",IB,R(s.track.uri),1)])])]),l("footer",RB,[l("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...i)=>r.queue_add&&r.queue_add(...i))},LB),l("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...i)=>r.queue_add_next&&r.queue_add_next(...i))},UB),l("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...i)=>r.play&&r.play(...i))},qB)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[6]||(t[6]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var Kd=ge(gB,[["render",zB]]);const ka={load:function(e){const t=new Gs;return t.setAccessToken(it.state.spotify.webapi_token),t.getAlbum(e.params.album_id,{market:it.state.spotify.webapi_country})},set:function(e,t){e.album=t}},GB={name:"PageAlbum",components:{ContentWithHero:Vd,SpotifyListItemTrack:Wd,SpotifyModalDialogTrack:Kd,SpotifyModalDialogAlbum:ki,CoverArtwork:yn},beforeRouteEnter(e,t,s){ka.load(e).then(n=>{s(o=>ka.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;ka.load(e).then(o=>{ka.set(n,o),s()})},data(){return{album:{artists:[{}],tracks:{}},show_track_details_modal:!1,selected_track:{},show_album_details_modal:!1}},computed:{artwork_url:function(){return this.album.images&&this.album.images.length>0?this.album.images[0].url:""}},methods:{open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})},play:function(){this.show_details_modal=!1,G.player_play_uri(this.album.uri,!0)},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0}}},WB={class:"title is-5"},KB={class:"subtitle is-6 has-text-link has-text-weight-normal"},YB={class:"buttons fd-is-centered-mobile fd-has-margin-top"},ZB=l("span",{class:"icon"},[l("i",{class:"mdi mdi-shuffle"})],-1),JB=l("span",null,"Shuffle",-1),XB=[ZB,JB],QB=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),eU=[QB],tU={class:"image is-square fd-has-shadow fd-has-action"},sU={class:"heading is-7 has-text-centered-mobile fd-has-margin-top"},nU=["onClick"],rU=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),oU=[rU];function iU(e,t,s,n,o,r){const i=B("cover-artwork"),a=B("spotify-list-item-track"),u=B("spotify-modal-dialog-track"),c=B("spotify-modal-dialog-album"),d=B("content-with-hero");return x(),xe(d,null,{"heading-left":T(()=>[l("h1",WB,R(o.album.name),1),l("h2",KB,[l("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...h)=>r.open_artist&&r.open_artist(...h))},R(o.album.artists[0].name),1)]),l("div",YB,[l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...h)=>r.play&&r.play(...h))},XB),l("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=h=>o.show_album_details_modal=!0)},eU)])]),"heading-right":T(()=>[l("p",tU,[P(i,{artwork_url:r.artwork_url,artist:o.album.artist,album:o.album.name,onClick:t[3]||(t[3]=h=>o.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:T(()=>[l("p",sU,R(o.album.tracks.total)+" tracks ",1),(x(!0),A(Ke,null,bt(o.album.tracks.items,(h,f)=>(x(),xe(a,{key:h.id,track:h,position:f,album:o.album,context_uri:o.album.uri},{actions:T(()=>[l("a",{onClick:pt(m=>r.open_track_dialog(h),["prevent","stop"])},oU,8,nU)]),_:2},1032,["track","position","album","context_uri"]))),128)),P(u,{show:o.show_track_details_modal,track:o.selected_track,album:o.album,onClose:t[4]||(t[4]=h=>o.show_track_details_modal=!1)},null,8,["show","track","album"]),P(c,{show:o.show_album_details_modal,album:o.album,onClose:t[5]||(t[5]=h=>o.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var aU=ge(GB,[["render",iU]]);const Oc=50,xa={load:function(e){const t=new Gs;return t.setAccessToken(it.state.spotify.webapi_token),Promise.all([t.getPlaylist(e.params.playlist_id),t.getPlaylistTracks(e.params.playlist_id,{limit:Oc,offset:0})])},set:function(e,t){e.playlist=t[0],e.tracks=[],e.total=0,e.offset=0,e.append_tracks(t[1])}},lU={name:"SpotifyPagePlaylist",components:{ContentWithHeading:ft,SpotifyListItemTrack:Wd,SpotifyModalDialogTrack:Kd,SpotifyModalDialogPlaylist:Bl,VueEternalLoading:Ul.exports.VueEternalLoading},beforeRouteEnter(e,t,s){xa.load(e).then(n=>{s(o=>xa.set(o,n))})},beforeRouteUpdate(e,t,s){const n=this;xa.load(e).then(o=>{xa.set(n,o),s()})},data(){return{playlist:{tracks:{}},tracks:[],total:0,offset:0,show_track_details_modal:!1,selected_track:{},show_playlist_details_modal:!1}},methods:{load_next:function({loaded:e}){const t=new Gs;t.setAccessToken(this.$store.state.spotify.webapi_token),t.getPlaylistTracks(this.playlist.id,{limit:Oc,offset:this.offset}).then(s=>{this.append_tracks(s),e(s.items.length,Oc)})},append_tracks:function(e){this.tracks=this.tracks.concat(e.items),this.total=e.total,this.offset+=e.limit},play:function(){this.show_details_modal=!1,G.player_play_uri(this.playlist.uri,!0)},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0}}},uU={class:"title is-4"},cU={class:"buttons is-centered"},dU=l("span",{class:"icon"},[l("i",{class:"mdi mdi-dots-horizontal mdi-18px"})],-1),fU=[dU],hU=l("span",{class:"icon"},[l("i",{class:"mdi mdi-shuffle"})],-1),mU=l("span",null,"Shuffle",-1),pU=[hU,mU],_U={class:"heading has-text-centered-mobile"},gU=["onClick"],vU=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),yU=[vU],bU=$e(" . ");function wU(e,t,s,n,o,r){const i=B("spotify-list-item-track"),a=B("VueEternalLoading"),u=B("spotify-modal-dialog-track"),c=B("spotify-modal-dialog-playlist"),d=B("content-with-heading");return x(),xe(d,null,{"heading-left":T(()=>[l("div",uU,R(o.playlist.name),1)]),"heading-right":T(()=>[l("div",cU,[l("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=h=>o.show_playlist_details_modal=!0)},fU),l("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...h)=>r.play&&r.play(...h))},pU)])]),content:T(()=>[l("p",_U,R(o.playlist.tracks.total)+" tracks ",1),(x(!0),A(Ke,null,bt(o.tracks,(h,f)=>(x(),xe(i,{key:h.track.id,track:h.track,album:h.track.album,position:f,context_uri:o.playlist.uri},{actions:T(()=>[l("a",{onClick:pt(m=>r.open_track_dialog(h.track),["prevent","stop"])},yU,8,gU)]),_:2},1032,["track","album","position","context_uri"]))),128)),o.offset<o.total?(x(),xe(a,{key:0,load:r.load_next},{"no-more":T(()=>[bU]),_:1},8,["load"])):Y("",!0),P(u,{show:o.show_track_details_modal,track:o.selected_track,album:o.selected_track.album,onClose:t[2]||(t[2]=h=>o.show_track_details_modal=!1)},null,8,["show","track","album"]),P(c,{show:o.show_playlist_details_modal,playlist:o.playlist,onClose:t[3]||(t[3]=h=>o.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),_:1})}var kU=ge(lU,[["render",wU]]);const xU={name:"SpotifyListItemArtist",props:["artist"],methods:{open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.artist.id})}}},SU={class:"media"},EU={class:"title is-6"},CU={class:"media-right"};function $U(e,t,s,n,o,r){return x(),A("div",SU,[l("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...i)=>r.open_artist&&r.open_artist(...i))},[l("h1",EU,R(s.artist.name),1)]),l("div",CU,[xt(e.$slots,"actions")])])}var OU=ge(xU,[["render",$U]]);const wo=50,TU={name:"SpotifyPageSearch",components:{ContentWithHeading:ft,ContentText:yv,TabsSearch:bv,SpotifyListItemTrack:Wd,SpotifyListItemArtist:OU,SpotifyListItemAlbum:jl,SpotifyListItemPlaylist:Gd,SpotifyModalDialogTrack:Kd,SpotifyModalDialogArtist:wv,SpotifyModalDialogAlbum:ki,SpotifyModalDialogPlaylist:Bl,VueEternalLoading:Ul.exports.VueEternalLoading,CoverArtwork:yn},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:function(){this.query=this.$route.query,this.search()},methods:{reset:function(){this.tracks={items:[],total:0},this.artists={items:[],total:0},this.albums={items:[],total:0},this.playlists={items:[],total:0}},search:function(){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:wo,this.search_param.offset=this.query.offset?this.query.offset:0,this.$store.commit(bd,this.query.query),this.search_all()},spotify_search:function(){return G.spotify().then(({data:e})=>{this.search_param.market=e.webapi_country;const t=new Gs;t.setAccessToken(e.webapi_token);const s=this.query.type.split(",").filter(n=>this.validSearchTypes.includes(n));return t.search(this.query.query,s,this.search_param)})},search_all:function(){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:function({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,wo)})},search_artists_next:function({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,wo)})},search_albums_next:function({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,wo)})},search_playlists_next:function({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,wo)})},new_search:function(){!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:function(){this.$router.push({path:"/search/spotify",query:{type:"track",query:this.$route.query.query}})},open_search_artists:function(){this.$router.push({path:"/search/spotify",query:{type:"artist",query:this.$route.query.query}})},open_search_albums:function(){this.$router.push({path:"/search/spotify",query:{type:"album",query:this.$route.query.query}})},open_search_playlists:function(){this.$router.push({path:"/search/spotify",query:{type:"playlist",query:this.$route.query.query}})},open_recent_search:function(e){this.search_query=e,this.new_search()},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0},open_album_dialog:function(e){this.selected_album=e,this.show_album_details_modal=!0},open_artist_dialog:function(e){this.selected_artist=e,this.show_artist_details_modal=!0},open_playlist_dialog:function(e){this.selected_playlist=e,this.show_playlist_details_modal=!0},open_album:function(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},artwork_url:function(e){return e.images&&e.images.length>0?e.images[0].url:""}}},AU={class:"section fd-remove-padding-bottom"},PU={class:"container"},DU={class:"columns is-centered"},FU={class:"column is-four-fifths"},IU={class:"field"},RU={class:"control is-expanded has-icons-left"},NU=l("span",{class:"icon is-left"},[l("i",{class:"mdi mdi-magnify"})],-1),MU={class:"tags",style:{"margin-top":"16px"}},LU=["onClick"],jU=l("p",{class:"title is-4"},"Tracks",-1),BU=["onClick"],UU=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),VU=[UU],HU=$e(" . "),qU={key:0,class:"level"},zU={class:"level-item"},GU=l("p",null,[l("i",null,"No tracks found")],-1),WU=l("p",{class:"title is-4"},"Artists",-1),KU=["onClick"],YU=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),ZU=[YU],JU=$e(" . "),XU={key:0,class:"level"},QU={class:"level-item"},e9=l("p",null,[l("i",null,"No artists found")],-1),t9=l("p",{class:"title is-4"},"Albums",-1),s9={class:"image is-64x64 fd-has-shadow fd-has-action"},n9=["onClick"],r9=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),o9=[r9],i9=$e(" . "),a9={key:0,class:"level"},l9={class:"level-item"},u9=l("p",null,[l("i",null,"No albums found")],-1),c9=l("p",{class:"title is-4"},"Playlists",-1),d9=["onClick"],f9=l("span",{class:"icon has-text-dark"},[l("i",{class:"mdi mdi-dots-vertical mdi-18px"})],-1),h9=[f9],m9=$e(" . "),p9={key:0,class:"level"},_9={class:"level-item"},g9=l("p",null,[l("i",null,"No playlists found")],-1);function v9(e,t,s,n,o,r){const i=B("tabs-search"),a=B("spotify-list-item-track"),u=B("VueEternalLoading"),c=B("spotify-modal-dialog-track"),d=B("content-with-heading"),h=B("content-text"),f=B("spotify-list-item-artist"),m=B("spotify-modal-dialog-artist"),p=B("cover-artwork"),_=B("spotify-list-item-album"),g=B("spotify-modal-dialog-album"),y=B("spotify-list-item-playlist"),b=B("spotify-modal-dialog-playlist");return x(),A("div",null,[l("section",AU,[l("div",PU,[l("div",DU,[l("div",FU,[l("form",{onSubmit:t[1]||(t[1]=pt((...k)=>r.new_search&&r.new_search(...k),["prevent"]))},[l("div",IU,[l("p",RU,[wt(l("input",{ref:"search_field","onUpdate:modelValue":t[0]||(t[0]=k=>o.search_query=k),class:"input is-rounded is-shadowless",type:"text",placeholder:"Search",autocomplete:"off"},null,512),[[es,o.search_query]]),NU])])],32),l("div",MU,[(x(!0),A(Ke,null,bt(r.recent_searches,k=>(x(),A("a",{key:k,class:"tag",onClick:S=>r.open_recent_search(k)},R(k),9,LU))),128))])])])])]),P(i,{query:o.search_query},null,8,["query"]),r.show_tracks&&o.tracks.total?(x(),xe(d,{key:0},{"heading-left":T(()=>[jU]),content:T(()=>[(x(!0),A(Ke,null,bt(o.tracks.items,k=>(x(),xe(a,{key:k.id,track:k,album:k.album,position:0,context_uri:k.uri},{actions:T(()=>[l("a",{onClick:pt(S=>r.open_track_dialog(k),["prevent","stop"])},VU,8,BU)]),_:2},1032,["track","album","context_uri"]))),128)),o.query.type==="track"?(x(),xe(u,{key:0,load:r.search_tracks_next},{"no-more":T(()=>[HU]),_:1},8,["load"])):Y("",!0),P(c,{show:o.show_track_details_modal,track:o.selected_track,album:o.selected_track.album,onClose:t[2]||(t[2]=k=>o.show_track_details_modal=!1)},null,8,["show","track","album"])]),footer:T(()=>[r.show_all_tracks_button?(x(),A("nav",qU,[l("p",zU,[l("a",{class:"button is-light is-small is-rounded",onClick:t[3]||(t[3]=(...k)=>r.open_search_tracks&&r.open_search_tracks(...k))},"Show all "+R(o.tracks.total.toLocaleString())+" tracks",1)])])):Y("",!0)]),_:1})):Y("",!0),r.show_tracks&&!o.tracks.total?(x(),xe(h,{key:1,class:"mt-6"},{content:T(()=>[GU]),_:1})):Y("",!0),r.show_artists&&o.artists.total?(x(),xe(d,{key:2},{"heading-left":T(()=>[WU]),content:T(()=>[(x(!0),A(Ke,null,bt(o.artists.items,k=>(x(),xe(f,{key:k.id,artist:k},{actions:T(()=>[l("a",{onClick:pt(S=>r.open_artist_dialog(k),["prevent","stop"])},ZU,8,KU)]),_:2},1032,["artist"]))),128)),o.query.type==="artist"?(x(),xe(u,{key:0,load:r.search_artists_next},{"no-more":T(()=>[JU]),_:1},8,["load"])):Y("",!0),P(m,{show:o.show_artist_details_modal,artist:o.selected_artist,onClose:t[4]||(t[4]=k=>o.show_artist_details_modal=!1)},null,8,["show","artist"])]),footer:T(()=>[r.show_all_artists_button?(x(),A("nav",XU,[l("p",QU,[l("a",{class:"button is-light is-small is-rounded",onClick:t[5]||(t[5]=(...k)=>r.open_search_artists&&r.open_search_artists(...k))},"Show all "+R(o.artists.total.toLocaleString())+" artists",1)])])):Y("",!0)]),_:1})):Y("",!0),r.show_artists&&!o.artists.total?(x(),xe(h,{key:3},{content:T(()=>[e9]),_:1})):Y("",!0),r.show_albums&&o.albums.total?(x(),xe(d,{key:4},{"heading-left":T(()=>[t9]),content:T(()=>[(x(!0),A(Ke,null,bt(o.albums.items,k=>(x(),xe(_,{key:k.id,album:k,onClick:S=>r.open_album(k)},gi({actions:T(()=>[l("a",{onClick:pt(S=>r.open_album_dialog(k),["prevent","stop"])},o9,8,n9)]),_:2},[r.is_visible_artwork?{name:"artwork",fn:T(()=>[l("p",s9,[P(p,{artwork_url:r.artwork_url(k),artist:k.artist,album:k.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),o.query.type==="album"?(x(),xe(u,{key:0,load:r.search_albums_next},{"no-more":T(()=>[i9]),_:1},8,["load"])):Y("",!0),P(g,{show:o.show_album_details_modal,album:o.selected_album,onClose:t[6]||(t[6]=k=>o.show_album_details_modal=!1)},null,8,["show","album"])]),footer:T(()=>[r.show_all_albums_button?(x(),A("nav",a9,[l("p",l9,[l("a",{class:"button is-light is-small is-rounded",onClick:t[7]||(t[7]=(...k)=>r.open_search_albums&&r.open_search_albums(...k))},"Show all "+R(o.albums.total.toLocaleString())+" albums",1)])])):Y("",!0)]),_:1})):Y("",!0),r.show_albums&&!o.albums.total?(x(),xe(h,{key:5},{content:T(()=>[u9]),_:1})):Y("",!0),r.show_playlists&&o.playlists.total?(x(),xe(d,{key:6},{"heading-left":T(()=>[c9]),content:T(()=>[(x(!0),A(Ke,null,bt(o.playlists.items,k=>(x(),xe(y,{key:k.id,playlist:k},{actions:T(()=>[l("a",{onClick:pt(S=>r.open_playlist_dialog(k),["prevent","stop"])},h9,8,d9)]),_:2},1032,["playlist"]))),128)),o.query.type==="playlist"?(x(),xe(u,{key:0,load:r.search_playlists_next},{"no-more":T(()=>[m9]),_:1},8,["load"])):Y("",!0),P(b,{show:o.show_playlist_details_modal,playlist:o.selected_playlist,onClose:t[8]||(t[8]=k=>o.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),footer:T(()=>[r.show_all_playlists_button?(x(),A("nav",p9,[l("p",_9,[l("a",{class:"button is-light is-small is-rounded",onClick:t[9]||(t[9]=(...k)=>r.open_search_playlists&&r.open_search_playlists(...k))},"Show all "+R(o.playlists.total.toLocaleString())+" playlists",1)])])):Y("",!0)]),_:1})):Y("",!0),r.show_playlists&&!o.playlists.total?(x(),xe(h,{key:7},{content:T(()=>[g9]),_:1})):Y("",!0)])}var y9=ge(TU,[["render",v9]]);const b9={name:"TabsSettings",computed:{}},w9={class:"section fd-tabs-section"},k9={class:"container"},x9={class:"columns is-centered"},S9={class:"column is-four-fifths"},E9={class:"tabs is-centered is-small"},C9=["onClick","onKeypress"],$9=l("span",{class:""},"Webinterface",-1),O9=[$9],T9=["onClick","onKeypress"],A9=l("span",{class:""},"Remotes & Outputs",-1),P9=[A9],D9=["onClick","onKeypress"],F9=l("span",{class:""},"Artwork",-1),I9=[F9],R9=["onClick","onKeypress"],N9=l("span",{class:""},"Online Services",-1),M9=[N9];function L9(e,t,s,n,o,r){const i=B("router-link");return x(),A("section",w9,[l("div",k9,[l("div",x9,[l("div",S9,[l("div",E9,[l("ul",null,[P(i,{to:"/settings/webinterface",custom:""},{default:T(({navigate:a,isActive:u})=>[l("li",{class:Le({"is-active":u})},[l("a",{onClick:a,onKeypress:bs(a,["enter"])},O9,40,C9)],2)]),_:1}),P(i,{to:"/settings/remotes-outputs",custom:""},{default:T(({navigate:a,isActive:u})=>[l("li",{class:Le({"is-active":u})},[l("a",{onClick:a,onKeypress:bs(a,["enter"])},P9,40,T9)],2)]),_:1}),P(i,{to:"/settings/artwork",custom:""},{default:T(({navigate:a,isActive:u})=>[l("li",{class:Le({"is-active":u})},[l("a",{onClick:a,onKeypress:bs(a,["enter"])},I9,40,D9)],2)]),_:1}),P(i,{to:"/settings/online-services",custom:""},{default:T(({navigate:a,isActive:u})=>[l("li",{class:Le({"is-active":u})},[l("a",{onClick:a,onKeypress:bs(a,["enter"])},M9,40,R9)],2)]),_:1})])])])])])])}var Vl=ge(b9,[["render",L9]]);const j9={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"?"(setting saved)":this.statusUpdate==="error"?"(error saving setting)":""}},methods:{set_update_timer(){this.timerId>0&&(window.clearTimeout(this.timerId),this.timerId=-1),this.statusUpdate="",this.$refs.settings_checkbox.checked!==this.value&&(this.timerId=window.setTimeout(this.update_setting,this.timerDelay))},update_setting(){this.timerId=-1;const e=this.$refs.settings_checkbox.checked;if(console.log(this.$refs.settings_checkbox),e===this.value){this.statusUpdate="";return}const t={category:this.category.name,name:this.option_name,value:e};G.settings_update(this.category.name,t).then(()=>{this.$store.commit(Tl,t),this.statusUpdate="success"}).catch(()=>{this.statusUpdate="error",this.$refs.settings_checkbox.checked=this.value}).finally(()=>{this.timerId=window.setTimeout(this.clear_status,this.timerDelay)})},clear_status:function(){this.statusUpdate=""}}},B9={class:"field"},U9={class:"checkbox"},V9=["checked"],H9={key:0,class:"help"};function q9(e,t,s,n,o,r){return x(),A("div",B9,[l("label",U9,[l("input",{ref:"settings_checkbox",type:"checkbox",checked:r.value,onChange:t[0]||(t[0]=(...i)=>r.set_update_timer&&r.set_update_timer(...i))},null,40,V9),xt(e.$slots,"label"),l("i",{class:Le(["is-size-7",{"has-text-info":o.statusUpdate==="success","has-text-danger":o.statusUpdate==="error"}])},R(r.info),3)]),e.$slots.info?(x(),A("p",H9,[xt(e.$slots,"info")])):Y("",!0)])}var kv=ge(j9,[["render",q9]]);const z9={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"?"(setting saved)":this.statusUpdate==="error"?"(error saving setting)":""}},methods:{set_update_timer(){this.timerId>0&&(window.clearTimeout(this.timerId),this.timerId=-1),this.statusUpdate="",this.$refs.settings_text.value!==this.value&&(this.timerId=window.setTimeout(this.update_setting,this.timerDelay))},update_setting(){this.timerId=-1;const e=this.$refs.settings_text.value;if(e===this.value){this.statusUpdate="";return}const t={category:this.category.name,name:this.option_name,value:e};G.settings_update(this.category.name,t).then(()=>{this.$store.commit(Tl,t),this.statusUpdate="success"}).catch(()=>{this.statusUpdate="error",this.$refs.settings_text.value=this.value}).finally(()=>{this.timerId=window.setTimeout(this.clear_status,this.timerDelay)})},clear_status:function(){this.statusUpdate=""}}},G9=["disabled"],W9={class:"field"},K9={class:"label has-text-weight-normal"},Y9={class:"control"},Z9=["placeholder","value"],J9={key:0,class:"help"};function X9(e,t,s,n,o,r){return x(),A("fieldset",{disabled:s.disabled},[l("div",W9,[l("label",K9,[xt(e.$slots,"label"),l("i",{class:Le(["is-size-7",{"has-text-info":o.statusUpdate==="success","has-text-danger":o.statusUpdate==="error"}])},R(r.info),3)]),l("div",Y9,[l("input",{ref:"settings_text",class:"input",type:"text",placeholder:s.placeholder,value:r.value,onInput:t[0]||(t[0]=(...i)=>r.set_update_timer&&r.set_update_timer(...i))},null,40,Z9)]),e.$slots.info?(x(),A("p",J9,[xt(e.$slots,"info")])):Y("",!0)])],8,G9)}var Q9=ge(z9,[["render",X9]]);const eV={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"?"(setting saved)":this.statusUpdate==="error"?"(error saving setting)":""}},methods:{set_update_timer(){this.timerId>0&&(window.clearTimeout(this.timerId),this.timerId=-1),this.statusUpdate="",this.$refs.settings_number.value!==this.value&&(this.timerId=window.setTimeout(this.update_setting,this.timerDelay))},update_setting(){this.timerId=-1;const e=this.$refs.settings_number.value;if(e===this.value){this.statusUpdate="";return}const t={category:this.category.name,name:this.option_name,value:parseInt(e,10)};G.settings_update(this.category.name,t).then(()=>{this.$store.commit(Tl,t),this.statusUpdate="success"}).catch(()=>{this.statusUpdate="error",this.$refs.settings_number.value=this.value}).finally(()=>{this.timerId=window.setTimeout(this.clear_status,this.timerDelay)})},clear_status:function(){this.statusUpdate=""}}},tV=["disabled"],sV={class:"field"},nV={class:"label has-text-weight-normal"},rV={class:"control"},oV=["placeholder","value"],iV={key:0,class:"help"};function aV(e,t,s,n,o,r){return x(),A("fieldset",{disabled:s.disabled},[l("div",sV,[l("label",nV,[xt(e.$slots,"label"),l("i",{class:Le(["is-size-7",{"has-text-info":o.statusUpdate==="success","has-text-danger":o.statusUpdate==="error"}])},R(r.info),3)]),l("div",rV,[l("input",{ref:"settings_number",class:"input",type:"number",min:"0",style:{width:"10em"},placeholder:s.placeholder,value:r.value,onInput:t[0]||(t[0]=(...i)=>r.set_update_timer&&r.set_update_timer(...i))},null,40,oV)]),e.$slots.info?(x(),A("p",iV,[xt(e.$slots,"info")])):Y("",!0)])],8,tV)}var lV=ge(eV,[["render",aV]]);const uV={name:"SettingsPageWebinterface",components:{ContentWithHeading:ft,TabsSettings:Vl,SettingsCheckbox:kv,SettingsTextfield:Q9,SettingsIntfield:lV},computed:{settings_option_show_composer_now_playing(){return this.$store.getters.settings_option_show_composer_now_playing}}},cV={class:"fd-page-with-tabs"},dV=l("div",{class:"title is-4"},"Navbar items",-1),fV=l("p",{class:"content"},"Select the top navigation bar menu items",-1),hV=l("div",{class:"notification is-size-7"}," If you select more items than can be shown on your screen then the burger menu will disappear. ",-1),mV=$e(" Playlists "),pV=$e(" Music "),_V=$e(" Podcasts "),gV=$e(" Audiobooks "),vV=$e(" Radio "),yV=$e(" Files "),bV=$e(" Search "),wV=l("div",{class:"title is-4"},"Album lists",-1),kV=$e(" Show cover artwork in album list "),xV=l("div",{class:"title is-4"},"Now playing page",-1),SV=$e(" Show composer "),EV=$e(' If enabled the composer of the current playing track is shown on the "now playing page" '),CV=$e(" Show composer only for listed genres "),$V=l("p",{class:"help"},' Comma separated list of genres the composer should be displayed on the "now playing page". ',-1),OV=l("p",{class:"help"},"Leave empty to always show the composer.",-1),TV=l("p",{class:"help"},[$e(" The genre tag of the current track is matched by checking, if one of the defined genres are included. For example setting to "),l("code",null,"classical, soundtrack"),$e(' will show the composer for tracks with a genre tag of "Contemporary Classical".'),l("br")],-1),AV=l("div",{class:"title is-4"},"Recently added page",-1),PV=$e(' Limit the number of albums shown on the "Recently Added" page ');function DV(e,t,s,n,o,r){const i=B("tabs-settings"),a=B("settings-checkbox"),u=B("content-with-heading"),c=B("settings-textfield"),d=B("settings-intfield");return x(),A("div",cV,[P(i),P(u,null,{"heading-left":T(()=>[dV]),content:T(()=>[fV,hV,P(a,{category_name:"webinterface",option_name:"show_menu_item_playlists"},{label:T(()=>[mV]),_:1}),P(a,{category_name:"webinterface",option_name:"show_menu_item_music"},{label:T(()=>[pV]),_:1}),P(a,{category_name:"webinterface",option_name:"show_menu_item_podcasts"},{label:T(()=>[_V]),_:1}),P(a,{category_name:"webinterface",option_name:"show_menu_item_audiobooks"},{label:T(()=>[gV]),_:1}),P(a,{category_name:"webinterface",option_name:"show_menu_item_radio"},{label:T(()=>[vV]),_:1}),P(a,{category_name:"webinterface",option_name:"show_menu_item_files"},{label:T(()=>[yV]),_:1}),P(a,{category_name:"webinterface",option_name:"show_menu_item_search"},{label:T(()=>[bV]),_:1})]),_:1}),P(u,null,{"heading-left":T(()=>[wV]),content:T(()=>[P(a,{category_name:"webinterface",option_name:"show_cover_artwork_in_album_lists"},{label:T(()=>[kV]),_:1})]),_:1}),P(u,null,{"heading-left":T(()=>[xV]),content:T(()=>[P(a,{category_name:"webinterface",option_name:"show_composer_now_playing"},{label:T(()=>[SV]),info:T(()=>[EV]),_:1}),P(c,{category_name:"webinterface",option_name:"show_composer_for_genre",disabled:!r.settings_option_show_composer_now_playing,placeholder:"Genres"},{label:T(()=>[CV]),info:T(()=>[$V,OV,TV]),_:1},8,["disabled"])]),_:1}),P(u,null,{"heading-left":T(()=>[AV]),content:T(()=>[P(d,{category_name:"webinterface",option_name:"recently_added_limit"},{label:T(()=>[PV]),_:1})]),_:1})])}var FV=ge(uV,[["render",DV]]);const IV={name:"SettingsPageArtwork",components:{ContentWithHeading:ft,TabsSettings:Vl,SettingsCheckbox:kv},computed:{spotify(){return this.$store.state.spotify}}},RV={class:"fd-page-with-tabs"},NV=l("div",{class:"title is-4"},"Artwork",-1),MV=l("div",{class:"content"},[l("p",null," 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. "),l("p",null," In addition to that, you can enable fetching artwork from the following artwork providers: ")],-1),LV=$e(" Spotify "),jV=$e(" Discogs ("),BV=l("a",{href:"https://www.discogs.com/"},"https://www.discogs.com/",-1),UV=$e(") "),VV=$e(" Cover Art Archive ("),HV=l("a",{href:"https://coverartarchive.org/"},"https://coverartarchive.org/",-1),qV=$e(") ");function zV(e,t,s,n,o,r){const i=B("tabs-settings"),a=B("settings-checkbox"),u=B("content-with-heading");return x(),A("div",RV,[P(i),P(u,null,{"heading-left":T(()=>[NV]),content:T(()=>[MV,r.spotify.libspotify_logged_in?(x(),xe(a,{key:0,category_name:"artwork",option_name:"use_artwork_source_spotify"},{label:T(()=>[LV]),_:1})):Y("",!0),P(a,{category_name:"artwork",option_name:"use_artwork_source_discogs"},{label:T(()=>[jV,BV,UV]),_:1}),P(a,{category_name:"artwork",option_name:"use_artwork_source_coverartarchive"},{label:T(()=>[VV,HV,qV]),_:1})]),_:1})])}var GV=ge(IV,[["render",zV]]);const WV={name:"SettingsPageOnlineServices",components:{ContentWithHeading:ft,TabsSettings:Vl},filters:{join(e){return e.join(", ")}},data(){return{libspotify:{user:"",password:"",errors:{user:"",password:"",error:""}},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):[]},use_libspotify(){return this.$store.state.config.use_libspotify}},methods:{login_libspotify(){G.spotify_login(this.libspotify).then(e=>{this.libspotify.user="",this.libspotify.password="",this.libspotify.errors.user="",this.libspotify.errors.password="",this.libspotify.errors.error="",e.data.success||(this.libspotify.errors.user=e.data.errors.user,this.libspotify.errors.password=e.data.errors.password,this.libspotify.errors.error=e.data.errors.error)})},logout_spotify(){G.spotify_logout()},login_lastfm(){G.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(){G.lastfm_logout()}}},KV={class:"fd-page-with-tabs"},YV=l("div",{class:"title is-4"},"Spotify",-1),ZV={key:0,class:"notification is-size-7"},JV=l("p",null," OwnTone was either built without support for Spotify or libspotify is not installed. ",-1),XV=[JV],QV={key:1},eH={class:"notification is-size-7"},tH=l("b",null,"You must have a Spotify premium account",-1),sH=$e(". "),nH={key:0},rH={key:0},oH=l("p",{class:"content"},[l("b",null,"libspotify"),$e(" - Login with your Spotify username and password ")],-1),iH={key:0,class:"fd-has-margin-bottom"},aH=$e(" Logged in as "),lH={class:"field is-grouped"},uH={class:"control is-expanded"},cH={class:"help is-danger"},dH={class:"control is-expanded"},fH={class:"help is-danger"},hH=l("div",{class:"control"},[l("button",{class:"button is-info"},"Login")],-1),mH={class:"help is-danger"},pH=l("p",{class:"help"}," libspotify enables OwnTone to play Spotify tracks. ",-1),_H=l("p",{class:"help"}," OwnTone will not store your password, but will still be able to log you in automatically afterwards, because libspotify saves a login token. ",-1),gH={class:"fd-has-margin-top"},vH=l("p",{class:"content"},[l("b",null,"Spotify Web API"),$e(" - Grant access to the Spotify Web API ")],-1),yH={key:0},bH=$e(" Access granted for "),wH={key:1,class:"help is-danger"},kH=$e(" Please reauthorize Web API access to grant OwnTone the following additional access rights: "),xH={class:"field fd-has-margin-top"},SH={class:"control"},EH=["href"],CH={class:"help"},$H=$e(" Access to the Spotify Web API enables scanning of your Spotify library. Required scopes are "),OH=$e(". "),TH={key:2,class:"field fd-has-margin-top"},AH={class:"control"},PH=l("div",{class:"title is-4"},"Last.fm",-1),DH={key:0,class:"notification is-size-7"},FH=l("p",null,"OwnTone was built without support for Last.fm.",-1),IH=[FH],RH={key:1},NH=l("p",{class:"content"},[l("b",null,"Last.fm"),$e(" - Login with your Last.fm username and password to enable scrobbling ")],-1),MH={key:0},LH={key:1},jH={class:"field is-grouped"},BH={class:"control is-expanded"},UH={class:"help is-danger"},VH={class:"control is-expanded"},HH={class:"help is-danger"},qH=l("div",{class:"control"},[l("button",{class:"button is-info",type:"submit"},"Login")],-1),zH={class:"help is-danger"},GH=l("p",{class:"help"}," OwnTone will not store your Last.fm username/password, only the session key. The session key does not expire. ",-1);function WH(e,t,s,n,o,r){const i=B("tabs-settings"),a=B("content-with-heading");return x(),A("div",KV,[P(i),P(a,null,{"heading-left":T(()=>[YV]),content:T(()=>[r.spotify.spotify_installed?Y("",!0):(x(),A("div",ZV,XV)),r.spotify.spotify_installed?(x(),A("div",QV,[l("div",eH,[tH,sH,e.use_libspotity?(x(),A("span",nH,"If you normally log into Spotify with your Facebook account you must first go to Spotify's web site where you can get the Spotify username and password that matches your account.")):Y("",!0)]),e.use_libspotity?(x(),A("div",rH,[oH,r.spotify.libspotify_logged_in?(x(),A("p",iH,[aH,l("b",null,[l("code",null,R(r.spotify.libspotify_user),1)])])):Y("",!0),r.spotify.spotify_installed&&!r.spotify.libspotify_logged_in?(x(),A("form",{key:1,onSubmit:t[2]||(t[2]=pt((...u)=>r.login_libspotify&&r.login_libspotify(...u),["prevent"]))},[l("div",lH,[l("div",uH,[wt(l("input",{"onUpdate:modelValue":t[0]||(t[0]=u=>o.libspotify.user=u),class:"input",type:"text",placeholder:"Username"},null,512),[[es,o.libspotify.user]]),l("p",cH,R(o.libspotify.errors.user),1)]),l("div",dH,[wt(l("input",{"onUpdate:modelValue":t[1]||(t[1]=u=>o.libspotify.password=u),class:"input",type:"password",placeholder:"Password"},null,512),[[es,o.libspotify.password]]),l("p",fH,R(o.libspotify.errors.password),1)]),hH])],32)):Y("",!0),l("p",mH,R(o.libspotify.errors.error),1),pH,_H])):Y("",!0),l("div",gH,[vH,r.spotify.webapi_token_valid?(x(),A("p",yH,[bH,l("b",null,[l("code",null,R(r.spotify.webapi_user),1)])])):Y("",!0),r.spotify_missing_scope.length>0?(x(),A("p",wH,[kH,l("b",null,[l("code",null,R(r.spotify_missing_scope.join()),1)])])):Y("",!0),l("div",xH,[l("div",SH,[l("a",{class:Le(["button",{"is-info":!r.spotify.webapi_token_valid||r.spotify_missing_scope.length>0}]),href:r.spotify.oauth_uri},"Authorize Web API access",10,EH)])]),l("p",CH,[$H,l("code",null,R(r.spotify_required_scope.join()),1),OH]),r.spotify.webapi_token_valid?(x(),A("div",TH,[l("div",AH,[l("a",{class:"button is-danger",onClick:t[3]||(t[3]=(...u)=>r.logout_spotify&&r.logout_spotify(...u))},"Logout")])])):Y("",!0)])])):Y("",!0)]),_:1}),P(a,null,{"heading-left":T(()=>[PH]),content:T(()=>[r.lastfm.enabled?Y("",!0):(x(),A("div",DH,IH)),r.lastfm.enabled?(x(),A("div",RH,[NH,r.lastfm.scrobbling_enabled?(x(),A("div",MH,[l("a",{class:"button",onClick:t[4]||(t[4]=(...u)=>r.logoutLastfm&&r.logoutLastfm(...u))},"Stop scrobbling")])):Y("",!0),r.lastfm.scrobbling_enabled?Y("",!0):(x(),A("div",LH,[l("form",{onSubmit:t[7]||(t[7]=pt((...u)=>r.login_lastfm&&r.login_lastfm(...u),["prevent"]))},[l("div",jH,[l("div",BH,[wt(l("input",{"onUpdate:modelValue":t[5]||(t[5]=u=>o.lastfm_login.user=u),class:"input",type:"text",placeholder:"Username"},null,512),[[es,o.lastfm_login.user]]),l("p",UH,R(o.lastfm_login.errors.user),1)]),l("div",VH,[wt(l("input",{"onUpdate:modelValue":t[6]||(t[6]=u=>o.lastfm_login.password=u),class:"input",type:"password",placeholder:"Password"},null,512),[[es,o.lastfm_login.password]]),l("p",HH,R(o.lastfm_login.errors.password),1)]),qH]),l("p",zH,R(o.lastfm_login.errors.error),1),GH],32)]))])):Y("",!0)]),_:1})])}var KH=ge(WV,[["render",WH]]);const YH={name:"SettingsPageRemotesOutputs",components:{ContentWithHeading:ft,TabsSettings:Vl},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(){G.pairing_kickoff(this.pairing_req)},output_toggle(e){G.output_toggle(e)},kickoff_verification(e){G.output_update(e,this.verification_req)}}},ZH={class:"fd-page-with-tabs"},JH=l("div",{class:"title is-4"},"Remote Pairing",-1),XH={key:0,class:"notification"},QH={class:"label has-text-weight-normal"},eq=$e(" Remote pairing request from "),tq={class:"field is-grouped"},sq={class:"control"},nq=l("div",{class:"control"},[l("button",{class:"button is-info",type:"submit"},"Send")],-1),rq={key:1,class:"content"},oq=l("p",null,"No active pairing request.",-1),iq=[oq],aq=l("div",{class:"title is-4"},"Speaker pairing and device verification",-1),lq=l("p",{class:"content"}," If your speaker requires pairing then activate it below and enter the PIN that it displays. ",-1),uq={class:"field"},cq={class:"control"},dq={class:"checkbox"},fq=["onUpdate:modelValue","onChange"],hq=["onSubmit"],mq={class:"field is-grouped"},pq={class:"control"},_q=l("div",{class:"control"},[l("button",{class:"button is-info",type:"submit"},"Verify")],-1);function gq(e,t,s,n,o,r){const i=B("tabs-settings"),a=B("content-with-heading");return x(),A("div",ZH,[P(i),P(a,null,{"heading-left":T(()=>[JH]),content:T(()=>[r.pairing.active?(x(),A("div",XH,[l("form",{onSubmit:t[1]||(t[1]=pt((...u)=>r.kickoff_pairing&&r.kickoff_pairing(...u),["prevent"]))},[l("label",QH,[eq,l("b",null,R(r.pairing.remote),1)]),l("div",tq,[l("div",sq,[wt(l("input",{"onUpdate:modelValue":t[0]||(t[0]=u=>o.pairing_req.pin=u),class:"input",type:"text",placeholder:"Enter pairing code"},null,512),[[es,o.pairing_req.pin]])]),nq])],32)])):Y("",!0),r.pairing.active?Y("",!0):(x(),A("div",rq,iq))]),_:1}),P(a,null,{"heading-left":T(()=>[aq]),content:T(()=>[lq,(x(!0),A(Ke,null,bt(r.outputs,u=>(x(),A("div",{key:u.id},[l("div",uq,[l("div",cq,[l("label",dq,[wt(l("input",{"onUpdate:modelValue":c=>u.selected=c,type:"checkbox",onChange:c=>r.output_toggle(u.id)},null,40,fq),[[pn,u.selected]]),$e(" "+R(u.name),1)])])]),u.needs_auth_key?(x(),A("form",{key:0,class:"fd-has-margin-bottom",onSubmit:pt(c=>r.kickoff_verification(u.id),["prevent"])},[l("div",mq,[l("div",pq,[wt(l("input",{"onUpdate:modelValue":t[2]||(t[2]=c=>o.verification_req.pin=c),class:"input",type:"text",placeholder:"Enter verification code"},null,512),[[es,o.verification_req.pin]])]),_q])],40,hq)):Y("",!0)]))),128))]),_:1})])}var vq=ge(YH,[["render",gq]]);const xv=Yk({history:dk(),routes:[{path:"/",name:"PageQueue",component:T$},{path:"/about",name:"About",component:DL},{path:"/now-playing",name:"Now playing",component:mT},{path:"/music",redirect:"/music/browse"},{path:"/music/browse",name:"Browse",component:VD,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/browse/recently_added",name:"Browse Recently Added",component:KD,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/browse/recently_played",name:"Browse Recently Played",component:eF,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/artists",name:"Artists",component:m3,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/artists/:artist_id",name:"Artist",component:O3,meta:{show_progress:!0,has_index:!0}},{path:"/music/artists/:artist_id/tracks",name:"Tracks",component:H4,meta:{show_progress:!0,has_index:!0}},{path:"/music/albums",name:"Albums",component:W3,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/albums/:album_id",name:"Album",component:wI,meta:{show_progress:!0}},{path:"/music/genres",name:"Genres",component:c4,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/genres/:genre",name:"Genre",component:w4,meta:{show_progress:!0,has_index:!0}},{path:"/music/genres/:genre/tracks",name:"GenreTracks",component:D4,meta:{show_progress:!0,has_index:!0}},{path:"/music/composers",name:"Composers",component:$6,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/composers/:composer/albums",name:"ComposerAlbums",component:L6,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/composers/:composer/tracks",name:"ComposerTracks",component:Y6,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/podcasts",name:"Podcasts",component:R8,meta:{show_progress:!0}},{path:"/podcasts/:album_id",name:"Podcast",component:Z8,meta:{show_progress:!0}},{path:"/audiobooks",redirect:"/audiobooks/artists"},{path:"/audiobooks/artists",name:"AudiobooksArtists",component:xR,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/audiobooks/artists/:artist_id",name:"AudiobooksArtist",component:IR,meta:{show_progress:!0}},{path:"/audiobooks/albums",name:"AudiobooksAlbums",component:gR,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/audiobooks/:album_id",name:"Audiobook",component:WR,meta:{show_progress:!0}},{path:"/radio",name:"Radio",component:NM,meta:{show_progress:!0}},{path:"/files",name:"Files",component:PM,meta:{show_progress:!0}},{path:"/playlists",redirect:"/playlists/0"},{path:"/playlists/:playlist_id",name:"Playlists",component:PN,meta:{show_progress:!0}},{path:"/playlists/:playlist_id/tracks",name:"Playlist",component:VN,meta:{show_progress:!0}},{path:"/search",redirect:"/search/library"},{path:"/search/library",name:"Search Library",component:V5},{path:"/music/spotify",name:"Spotify",component:aj,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/new-releases",name:"Spotify Browse New Releases",component:_j,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/featured-playlists",name:"Spotify Browse Featured Playlists",component:Sj,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/artists/:artist_id",name:"Spotify Artist",component:lB,meta:{show_progress:!0}},{path:"/music/spotify/albums/:album_id",name:"Spotify Album",component:aU,meta:{show_progress:!0}},{path:"/music/spotify/playlists/:playlist_id",name:"Spotify Playlist",component:kU,meta:{show_progress:!0}},{path:"/search/spotify",name:"Spotify Search",component:y9},{path:"/settings/webinterface",name:"Settings Webinterface",component:FV},{path:"/settings/artwork",name:"Settings Artwork",component:GV},{path:"/settings/online-services",name:"Settings Online Services",component:KH},{path:"/settings/remotes-outputs",name:"Settings Remotes Outputs",component:vq}],scrollBehavior(e,t,s){return s?new Promise((o,r)=>{setTimeout(()=>{o(s)},0)}):e.path===t.path&&e.hash?{el:e.hash,top:120}:e.hash?new Promise((o,r)=>{setTimeout(()=>{o({el:e.hash,top:120})},0)}):e.meta.has_index?new Promise((o,r)=>{setTimeout(()=>{e.meta.has_tabs?o({el:"#top",top:140}):o({el:"#top",top:110})},0)}):{left:0,top:0}}});xv.beforeEach((e,t,s)=>{if(it.state.show_burger_menu){it.commit(Qr,!1),s(!1);return}if(it.state.show_player_menu){it.commit(eo,!1),s(!1);return}s(!0)});var Sv={exports:{}};(function(e){e.exports=function(t){var s={};function n(o){if(s[o])return s[o].exports;var r=s[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=s,n.d=function(o,r,i){n.o(o,r)||Object.defineProperty(o,r,{enumerable:!0,get:i})},n.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.t=function(o,r){if(r&1&&(o=n(o)),r&8||r&4&&typeof o=="object"&&o&&o.__esModule)return o;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:o}),r&2&&typeof o!="string")for(var a in o)n.d(i,a,function(u){return o[u]}.bind(null,a));return i},n.n=function(o){var r=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(r,"a",r),r},n.o=function(o,r){return Object.prototype.hasOwnProperty.call(o,r)},n.p="",n(n.s="fb15")}({"8875":function(t,s,n){var o,r,i;(function(a,u){r=[],o=u,i=typeof o=="function"?o.apply(s,r):o,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(S){var c=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,d=/@([^@]*):(\d+):(\d+)\s*$/ig,h=c.exec(S.stack)||d.exec(S.stack),f=h&&h[1]||!1,m=h&&h[2]||!1,p=document.location.href.replace(document.location.hash,""),_,g,y,b=document.getElementsByTagName("script");f===p&&(_=document.documentElement.outerHTML,g=new RegExp("(?:[^\\n]+?\\n){0,"+(m-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),y=_.replace(g,"$1").trim());for(var k=0;k<b.length;k++)if(b[k].readyState==="interactive"||b[k].src===f||f===p&&b[k].innerHTML&&b[k].innerHTML.trim()===y)return b[k];return null}}return a})},"8bbf":function(t,s){t.exports=Pd},fb15:function(t,s,n){if(n.r(s),typeof window!="undefined"){var o=window.document.currentScript;{var r=n("8875");o=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r})}var i=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=n("8bbf");function u(p,_,g,y,b,k){return Object(a.openBlock)(),Object(a.createBlock)("div",{style:y.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}},g=Object(a.computed)(function(){var y=_.options,b=!!y.show,k=y.location,S={"z-index":999999,"background-color":y.canSuccess?y.color:y.failedColor,opacity:y.show?1:0,position:y.position};return k==="top"||k==="bottom"?(k==="top"?S.top="0px":S.bottom="0px",y.inverse?S.right="0px":S.left="0px",S.width=_.percent+"%",S.height=y.thickness,S.transition=(b?"width "+y.transition.speed+", ":"")+"opacity "+y.transition.opacity):(k==="left"||k==="right")&&(k==="left"?S.left="0px":S.right="0px",y.inverse?S.top="0px":S.bottom="0px",S.height=_.percent+"%",S.width=y.thickness,S.transition=(b?"height "+y.transition.speed+", ":"")+"opacity "+y.transition.opacity),S});return{progress:_,finalStyle:g}}};d.render=u;var h=d;function f(p,_){for(var g=1,y,b;g<arguments.length;++g){b=arguments[g];for(y in b)Object.prototype.hasOwnProperty.call(b,y)&&(p[y]=b[y])}return p}var m={install:function(_,g){var y={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},b=f(y,g),k=Object(a.reactive)({percent:0,options:b});_.provide("RADON_LOADING_BAR",k);var S={state:{tFailColor:"",tColor:"",timer:null,cut:0},start:function($){var I=this;$||($=3e3),k.percent=0,k.options.show=!0,k.options.canSuccess=!0,this.state.cut=1e4/Math.floor($),clearInterval(this.state.timer),this.state.timer=setInterval(function(){I.increase(I.state.cut*Math.random()),k.percent>95&&k.options.autoFinish&&I.finish()},100)},set:function($){k.options.show=!0,k.options.canSuccess=!0,k.percent=Math.floor($)},get:function(){return Math.floor(k.percent)},increase:function($){k.percent=Math.min(99,k.percent+Math.floor($))},decrease:function($){k.percent=k.percent-Math.floor($)},hide:function(){var $=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(){$.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($){k.options.failedColor=$},setColor:function($){k.options.color=$},setLocation:function($){k.options.location=$},setTransition:function($){k.options.transition=$},tempFailColor:function($){this.state.tFailColor=k.options.failedColor,k.options.failedColor=$},tempColor:function($){this.state.tColor=k.options.color,k.options.color=$},tempLocation:function($){this.state.tLocation=k.options.location,k.options.location=$},tempTransition:function($){this.state.tTransition=k.options.transition,k.options.transition=$},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($){for(var I in $.func){var j=$.func[I];switch(j.call){case"color":switch(j.modifier){case"set":this.setColor(j.argument);break;case"temp":this.tempColor(j.argument);break}break;case"fail":switch(j.modifier){case"set":this.setFailColor(j.argument);break;case"temp":this.tempFailColor(j.argument);break}break;case"location":switch(j.modifier){case"set":this.setLocation(j.argument);break;case"temp":this.tempLocation(j.argument);break}break;case"transition":switch(j.modifier){case"set":this.setTransition(j.argument);break;case"temp":this.tempTransition(j.argument);break}break}}}};_.component("vue-progress-bar",h),_.config.globalProperties.$Progress=S}};s.default=m}})})(Sv);var yq=Q_(Sv.exports);const Ev=function(){return document.ontouchstart!==null?"click":"touchstart"},sl="__vue_click_away__",Cv=function(e,t,s){$v(e);let n=s.context,o=t.value,r=!1;setTimeout(function(){r=!0},0),e[sl]=function(i){if((!e||!e.contains(i.target))&&o&&r&&typeof o=="function")return o.call(n,i)},document.addEventListener(Ev(),e[sl],!1)},$v=function(e){document.removeEventListener(Ev(),e[sl],!1),delete e[sl]},bq=function(e,t,s){t.value!==t.oldValue&&Cv(e,t,s)},wq={install:function(e){e.directive("click-away",kq)}},kq={mounted:Cv,updated:bq,unmounted:$v};/*!
|
|
* Vue3-Lazyload.js v0.2.5-beta
|
|
* A Vue3.x image lazyload plugin
|
|
* (c) 2021 MuRong <admin@imuboy.cn>
|
|
* Released under the MIT License.
|
|
*/var js;(function(e){e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"})(js||(js={}));var xq=typeof window!="undefined"&&window!==null,Sq=Oq(),Eq=Object.prototype.propertyIsEnumerable,hm=Object.getOwnPropertySymbols;function ei(e){return typeof e=="function"||toString.call(e)==="[object Object]"}function Cq(e){return typeof e=="object"?e===null:typeof e!="function"}function $q(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function Oq(){return xq&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),!0):!1}function Tq(e){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];if(!ei(e))throw new TypeError("expected the first argument to be an object");if(t.length===0||typeof Symbol!="function"||typeof hm!="function")return e;for(var n=0,o=t;n<o.length;n++)for(var r=o[n],i=hm(r),a=0,u=i;a<u.length;a++){var c=u[a];Eq.call(r,c)&&(e[c]=r[c])}return e}function Ov(e){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];var n=0;for(Cq(e)&&(e=t[n++]),e||(e={});n<t.length;n++)if(ei(t[n])){for(var o=0,r=Object.keys(t[n]);o<r.length;o++){var i=r[o];$q(i)&&(ei(e[i])&&ei(t[n][i])?Ov(e[i],t[n][i]):e[i]=t[n][i])}Tq(e,t[n])}return e}var Aq={rootMargin:"0px",threshold:0},mm="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Pq="",Dq=function(){function e(t){this.options={loading:mm,error:Pq,observerOptions:Aq,log:!0,lifecycle:{}},this._images=new WeakMap,this.config(t)}return e.prototype.config=function(t){t===void 0&&(t={}),Ov(this.options,t)},e.prototype.mount=function(t,s){var n=this._valueFormatter(s.value),o=n.src,r=n.loading,i=n.error,a=n.lifecycle;this._lifecycle(js.LOADING,a,t),t.setAttribute("src",r||mm),Sq||(this.loadImages(t,o,i,a),this._log(function(){throw new Error("Not support IntersectionObserver!")})),this._initIntersectionObserver(t,o,i,a)},e.prototype.update=function(t,s){var n;(n=this._realObserver(t))===null||n===void 0||n.unobserve(t);var o=this._valueFormatter(s.value),r=o.src,i=o.error,a=o.lifecycle;this._initIntersectionObserver(t,r,i,a)},e.prototype.unmount=function(t){var s;(s=this._realObserver(t))===null||s===void 0||s.unobserve(t),this._images.delete(t)},e.prototype.loadImages=function(t,s,n,o){this._setImageSrc(t,s,n,o)},e.prototype._setImageSrc=function(t,s,n,o){var r=this;if(t.tagName.toLowerCase()==="img"){if(s){var i=t.getAttribute("src");i!==s&&t.setAttribute("src",s)}this._listenImageStatus(t,function(){r._lifecycle(js.LOADED,o,t)},function(){var a;t.onload=null,r._lifecycle(js.ERROR,o,t),(a=r._realObserver(t))===null||a===void 0||a.disconnect(),n&&t.setAttribute("src",n),r._log(function(){throw new Error("Image failed to load!")})})}else t.style.backgroundImage="url('"+s+"')"},e.prototype._initIntersectionObserver=function(t,s,n,o){var r=this,i,a=this.options.observerOptions;this._images.set(t,new IntersectionObserver(function(u){Array.prototype.forEach.call(u,function(c){var d;c.isIntersecting&&((d=r._realObserver(t))===null||d===void 0||d.unobserve(c.target),r._setImageSrc(t,s,n,o))})},a)),(i=this._realObserver(t))===null||i===void 0||i.observe(t)},e.prototype._listenImageStatus=function(t,s,n){t.onload=s,t.onerror=n},e.prototype._valueFormatter=function(t){var s=t,n=this.options.loading,o=this.options.error,r=this.options.lifecycle;return ei(t)&&(s=t.src,n=t.loading||this.options.loading,o=t.error||this.options.error,r=t.lifecycle||this.options.lifecycle),{src:s,loading:n,error:o,lifecycle:r}},e.prototype._log=function(t){this.options.log&&t()},e.prototype._lifecycle=function(t,s,n){switch(t){case js.LOADING:n==null||n.setAttribute("lazy",js.LOADING),s!=null&&s.loading&&s.loading(n);break;case js.LOADED:n==null||n.setAttribute("lazy",js.LOADED),s!=null&&s.loaded&&s.loaded(n);break;case js.ERROR:n==null||n.setAttribute("lazy",js.ERROR),s!=null&&s.error&&s.error(n);break}},e.prototype._realObserver=function(t){return this._images.get(t)},e}(),Fq={install:function(e,t){var s=new Dq(t);e.config.globalProperties.$Lazyload=s,e.provide("Lazyload",s),e.directive("lazy",{mounted:s.mount.bind(s),updated:s.update.bind(s),unmounted:s.unmount.bind(s)})}},Tv={exports:{}};/*!
|
|
* vue-scrollto v2.20.0
|
|
* (c) 2019 Randjelovic Igor
|
|
* @license MIT
|
|
*/(function(e,t){(function(s,n){e.exports=n()})(ts,function(){function s(me){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(Z){return typeof Z}:s=function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},s(me)}function n(){return n=Object.assign||function(me){for(var Z=1;Z<arguments.length;Z++){var ce=arguments[Z];for(var we in ce)Object.prototype.hasOwnProperty.call(ce,we)&&(me[we]=ce[we])}return me},n.apply(this,arguments)}var o=4,r=.001,i=1e-7,a=10,u=11,c=1/(u-1),d=typeof Float32Array=="function";function h(me,Z){return 1-3*Z+3*me}function f(me,Z){return 3*Z-6*me}function m(me){return 3*me}function p(me,Z,ce){return((h(Z,ce)*me+f(Z,ce))*me+m(Z))*me}function _(me,Z,ce){return 3*h(Z,ce)*me*me+2*f(Z,ce)*me+m(Z)}function g(me,Z,ce,we,V){var re,se,be=0;do se=Z+(ce-Z)/2,re=p(se,we,V)-me,re>0?ce=se:Z=se;while(Math.abs(re)>i&&++be<a);return se}function y(me,Z,ce,we){for(var V=0;V<o;++V){var re=_(Z,ce,we);if(re===0)return Z;var se=p(Z,ce,we)-me;Z-=se/re}return Z}function b(me){return me}var k=function(Z,ce,we,V){if(!(0<=Z&&Z<=1&&0<=we&&we<=1))throw new Error("bezier x values must be in [0, 1] range");if(Z===ce&&we===V)return b;for(var re=d?new Float32Array(u):new Array(u),se=0;se<u;++se)re[se]=p(se*c,Z,we);function be(He){for(var Re=0,Oe=1,De=u-1;Oe!==De&&re[Oe]<=He;++Oe)Re+=c;--Oe;var C=(He-re[Oe])/(re[Oe+1]-re[Oe]),N=Re+C*c,K=_(N,Z,we);return K>=r?y(He,N,Z,we):K===0?N:g(He,Re,Re+c,Z,we)}return function(Re){return Re===0?0:Re===1?1:p(be(Re),ce,V)}},S={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]},E=!1;try{var $=Object.defineProperty({},"passive",{get:function(){E=!0}});window.addEventListener("test",null,$)}catch{}var I={$:function(Z){return typeof Z!="string"?Z:document.querySelector(Z)},on:function(Z,ce,we){var V=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{passive:!1};ce instanceof Array||(ce=[ce]);for(var re=0;re<ce.length;re++)Z.addEventListener(ce[re],we,E?V:!1)},off:function(Z,ce,we){ce instanceof Array||(ce=[ce]);for(var V=0;V<ce.length;V++)Z.removeEventListener(ce[V],we)},cumulativeOffset:function(Z){var ce=0,we=0;do ce+=Z.offsetTop||0,we+=Z.offsetLeft||0,Z=Z.offsetParent;while(Z);return{top:ce,left:we}}},j=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],O={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 L(me){O=n({},O,me)}var z=function(){var Z,ce,we,V,re,se,be,He,Re,Oe,De,C,N,K,oe,le,ye,ke,he,pe,fe,je,Ce,Ne=function(ie){!He||(Ce=ie,pe=!0)},qe,Ze,nt,w;function v(ee){var ie=ee.scrollTop;return ee.tagName.toLowerCase()==="body"&&(ie=ie||document.documentElement.scrollTop),ie}function F(ee){var ie=ee.scrollLeft;return ee.tagName.toLowerCase()==="body"&&(ie=ie||document.documentElement.scrollLeft),ie}function q(){fe=I.cumulativeOffset(ce),je=I.cumulativeOffset(Z),C&&(oe=je.left-fe.left+se,ke=oe-K),N&&(ye=je.top-fe.top+se,he=ye-le)}function J(ee){if(pe)return de();Ze||(Ze=ee),re||q(),nt=ee-Ze,w=Math.min(nt/we,1),w=qe(w),Ee(ce,le+he*w,K+ke*w),nt<we?window.requestAnimationFrame(J):de()}function de(){pe||Ee(ce,ye,oe),Ze=!1,I.off(ce,j,Ne),pe&&De&&De(Ce,Z),!pe&&Oe&&Oe(Z)}function Ee(ee,ie,X){N&&(ee.scrollTop=ie),C&&(ee.scrollLeft=X),ee.tagName.toLowerCase()==="body"&&(N&&(document.documentElement.scrollTop=ie),C&&(document.documentElement.scrollLeft=X))}function Ie(ee,ie){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(s(ie)==="object"?X=ie:typeof ie=="number"&&(X.duration=ie),Z=I.$(ee),!Z)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+ee);if(ce=I.$(X.container||O.container),we=X.hasOwnProperty("duration")?X.duration:O.duration,re=X.hasOwnProperty("lazy")?X.lazy:O.lazy,V=X.easing||O.easing,se=X.hasOwnProperty("offset")?X.offset:O.offset,be=X.hasOwnProperty("force")?X.force!==!1:O.force,He=X.hasOwnProperty("cancelable")?X.cancelable!==!1:O.cancelable,Re=X.onStart||O.onStart,Oe=X.onDone||O.onDone,De=X.onCancel||O.onCancel,C=X.x===void 0?O.x:X.x,N=X.y===void 0?O.y:X.y,typeof se=="function"&&(se=se(Z,ce)),K=F(ce),le=v(ce),q(),pe=!1,!be){var ne=ce.tagName.toLowerCase()==="body"?document.documentElement.clientHeight||window.innerHeight:ce.offsetHeight,Be=le,Ve=Be+ne,ut=ye-se,as=ut+Z.offsetHeight;if(ut>=Be&&as<=Ve){Oe&&Oe(Z);return}}if(Re&&Re(Z),!he&&!ke){Oe&&Oe(Z);return}return typeof V=="string"&&(V=S[V]||S.ease),qe=k.apply(k,V),I.on(ce,j,Ne,{passive:!0}),window.requestAnimationFrame(J),function(){Ce=null,pe=!0}}return Ie},D=z(),U=[];function W(me){for(var Z=0;Z<U.length;++Z)if(U[Z].el===me)return U.splice(Z,1),!0;return!1}function ue(me){for(var Z=0;Z<U.length;++Z)if(U[Z].el===me)return U[Z]}function te(me){var Z=ue(me);return Z||(U.push(Z={el:me,binding:{}}),Z)}function ae(me){var Z=te(this).binding;if(!!Z.value){if(me.preventDefault(),typeof Z.value=="string")return D(Z.value);D(Z.value.el||Z.value.element,Z.value)}}var ve={bind:function(Z,ce){te(Z).binding=ce,I.on(Z,"click",ae)},unbind:function(Z){W(Z),I.off(Z,"click",ae)},update:function(Z,ce){te(Z).binding=ce}},Me={bind:ve.bind,unbind:ve.unbind,update:ve.update,beforeMount:ve.bind,unmounted:ve.unbind,updated:ve.update,scrollTo:D,bindings:U},Ge=function(Z,ce){ce&&L(ce),Z.directive("scroll-to",Me);var we=Z.config.globalProperties||Z.prototype;we.$scrollTo=Me.scrollTo};return typeof window!="undefined"&&window.Vue&&(window.VueScrollTo=Me,window.VueScrollTo.setDefaults=L,window.VueScrollTo.scroller=z,window.Vue.use&&window.Vue.use(Ge)),Me.install=Ge,Me})})(Tv);var Iq=Tv.exports;class vr extends Error{}class Rq extends vr{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Nq extends vr{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Mq extends vr{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Io extends vr{}class Av extends vr{constructor(t){super(`Invalid unit ${t}`)}}class As extends vr{}class Cn extends vr{constructor(){super("Zone is an abstract class")}}const Ae="numeric",qs="short",xs="long",Tc={year:Ae,month:Ae,day:Ae},Pv={year:Ae,month:qs,day:Ae},Lq={year:Ae,month:qs,day:Ae,weekday:qs},Dv={year:Ae,month:xs,day:Ae},Fv={year:Ae,month:xs,day:Ae,weekday:xs},Iv={hour:Ae,minute:Ae},Rv={hour:Ae,minute:Ae,second:Ae},Nv={hour:Ae,minute:Ae,second:Ae,timeZoneName:qs},Mv={hour:Ae,minute:Ae,second:Ae,timeZoneName:xs},Lv={hour:Ae,minute:Ae,hourCycle:"h23"},jv={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23"},Bv={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:qs},Uv={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:xs},Vv={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae},Hv={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae,second:Ae},qv={year:Ae,month:qs,day:Ae,hour:Ae,minute:Ae},zv={year:Ae,month:qs,day:Ae,hour:Ae,minute:Ae,second:Ae},jq={year:Ae,month:qs,day:Ae,weekday:qs,hour:Ae,minute:Ae},Gv={year:Ae,month:xs,day:Ae,hour:Ae,minute:Ae,timeZoneName:qs},Wv={year:Ae,month:xs,day:Ae,hour:Ae,minute:Ae,second:Ae,timeZoneName:qs},Kv={year:Ae,month:xs,day:Ae,weekday:xs,hour:Ae,minute:Ae,timeZoneName:xs},Yv={year:Ae,month:xs,day:Ae,weekday:xs,hour:Ae,minute:Ae,second:Ae,timeZoneName:xs};function ct(e){return typeof e=="undefined"}function cr(e){return typeof e=="number"}function Hl(e){return typeof e=="number"&&e%1===0}function Bq(e){return typeof e=="string"}function Uq(e){return Object.prototype.toString.call(e)==="[object Date]"}function Zv(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Vq(e){return Array.isArray(e)?e:[e]}function pm(e,t,s){if(e.length!==0)return e.reduce((n,o)=>{const r=[t(o),o];return n&&s(n[0],r[0])===n[0]?n:r},null)[1]}function Hq(e,t){return t.reduce((s,n)=>(s[n]=e[n],s),{})}function oo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function dn(e,t,s){return Hl(e)&&e>=t&&e<=s}function qq(e,t){return e-t*Math.floor(e/t)}function Ut(e,t=2){const s=e<0;let n;return s?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function Pn(e){if(!(ct(e)||e===null||e===""))return parseInt(e,10)}function Xn(e){if(!(ct(e)||e===null||e===""))return parseFloat(e)}function Yd(e){if(!(ct(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Zd(e,t,s=!1){const n=10**t;return(s?Math.trunc:Math.round)(e*n)/n}function xi(e){return e%4===0&&(e%100!==0||e%400===0)}function ti(e){return xi(e)?366:365}function nl(e,t){const s=qq(t-1,12)+1,n=e+(t-s)/12;return s===2?xi(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][s-1]}function Jd(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(t.getUTCFullYear()-1900)),+t}function rl(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,s=e-1,n=(s+Math.floor(s/4)-Math.floor(s/100)+Math.floor(s/400))%7;return t===4||n===3?53:52}function Ac(e){return e>99?e:e>60?1900+e:2e3+e}function Jv(e,t,s,n=null){const o=new Date(e),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(r.timeZone=n);const i=Je({timeZoneName:t},r),a=new Intl.DateTimeFormat(s,i).formatToParts(o).find(u=>u.type.toLowerCase()==="timezonename");return a?a.value:null}function ql(e,t){let s=parseInt(e,10);Number.isNaN(s)&&(s=0);const n=parseInt(t,10)||0,o=s<0||Object.is(s,-0)?-n:n;return s*60+o}function Xv(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new As(`Invalid unit value ${e}`);return t}function ol(e,t){const s={};for(const n in e)if(oo(e,n)){const o=e[n];if(o==null)continue;s[t(n)]=Xv(o)}return s}function il(e,t){const s=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${Ut(s,2)}:${Ut(n,2)}`;case"narrow":return`${o}${s}${n>0?`:${n}`:""}`;case"techie":return`${o}${Ut(s,2)}${Ut(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function zl(e){return Hq(e,["hour","minute","second","millisecond"])}const zq=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z0-9_+-]{1,256}(\/[A-Za-z0-9_+-]{1,256})?)?/,Gq=["January","February","March","April","May","June","July","August","September","October","November","December"],Qv=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Wq=["J","F","M","A","M","J","J","A","S","O","N","D"];function ey(e){switch(e){case"narrow":return[...Wq];case"short":return[...Qv];case"long":return[...Gq];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 ty=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],sy=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Kq=["M","T","W","T","F","S","S"];function ny(e){switch(e){case"narrow":return[...Kq];case"short":return[...sy];case"long":return[...ty];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const ry=["AM","PM"],Yq=["Before Christ","Anno Domini"],Zq=["BC","AD"],Jq=["B","A"];function oy(e){switch(e){case"narrow":return[...Jq];case"short":return[...Zq];case"long":return[...Yq];default:return null}}function Xq(e){return ry[e.hour<12?0:1]}function Qq(e,t){return ny(t)[e.weekday-1]}function ez(e,t){return ey(t)[e.month-1]}function tz(e,t){return oy(t)[e.year<0?0:1]}function sz(e,t,s="always",n=!1){const o={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."]},r=["hours","minutes","seconds"].indexOf(e)===-1;if(s==="auto"&&r){const h=e==="days";switch(t){case 1:return h?"tomorrow":`next ${o[e][0]}`;case-1:return h?"yesterday":`last ${o[e][0]}`;case 0:return h?"today":`this ${o[e][0]}`}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),u=a===1,c=o[e],d=n?u?c[1]:c[2]||c[1]:u?o[e][0]:e;return i?`${a} ${d} ago`:`in ${a} ${d}`}function _m(e,t){let s="";for(const n of e)n.literal?s+=n.val:s+=t(n.val);return s}const nz={D:Tc,DD:Pv,DDD:Dv,DDDD:Fv,t:Iv,tt:Rv,ttt:Nv,tttt:Mv,T:Lv,TT:jv,TTT:Bv,TTTT:Uv,f:Vv,ff:qv,fff:Gv,ffff:Kv,F:Hv,FF:zv,FFF:Wv,FFFF:Yv};class fs{static create(t,s={}){return new fs(t,s)}static parseFormat(t){let s=null,n="",o=!1;const r=[];for(let i=0;i<t.length;i++){const a=t.charAt(i);a==="'"?(n.length>0&&r.push({literal:o,val:n}),s=null,n="",o=!o):o||a===s?n+=a:(n.length>0&&r.push({literal:!1,val:n}),n=a,s=a)}return n.length>0&&r.push({literal:o,val:n}),r}static macroTokenToFormatOpts(t){return nz[t]}constructor(t,s){this.opts=s,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,s){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,Je(Je({},this.opts),s)).format()}formatDateTime(t,s={}){return this.loc.dtFormatter(t,Je(Je({},this.opts),s)).format()}formatDateTimeParts(t,s={}){return this.loc.dtFormatter(t,Je(Je({},this.opts),s)).formatToParts()}resolvedOptions(t,s={}){return this.loc.dtFormatter(t,Je(Je({},this.opts),s)).resolvedOptions()}num(t,s=0){if(this.opts.forceSimple)return Ut(t,s);const n=Je({},this.opts);return s>0&&(n.padTo=s),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,s){const n=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",r=(m,p)=>this.loc.extract(t,m,p),i=m=>t.isOffsetFixed&&t.offset===0&&m.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,m.format):"",a=()=>n?Xq(t):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(m,p)=>n?ez(t,m):r(p?{month:m}:{month:m,day:"numeric"},"month"),c=(m,p)=>n?Qq(t,m):r(p?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),d=m=>{const p=fs.macroTokenToFormatOpts(m);return p?this.formatWithSystemDefault(t,p):m},h=m=>n?tz(t,m):r({era:m},"era"),f=m=>{switch(m){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 o?r({day:"numeric"},"day"):this.num(t.day);case"dd":return o?r({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 o?r({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return o?r({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 o?r({month:"numeric"},"month"):this.num(t.month);case"MM":return o?r({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 o?r({year:"numeric"},"year"):this.num(t.year);case"yy":return o?r({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return o?r({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return o?r({year:"numeric"},"year"):this.num(t.year,6);case"G":return h("short");case"GG":return h("long");case"GGGGG":return h("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(m)}};return _m(fs.parseFormat(s),f)}formatDurationFromString(t,s){const n=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"M":return"month";case"y":return"year";default:return null}},o=u=>c=>{const d=n(c);return d?this.num(u.get(d),c.length):c},r=fs.parseFormat(s),i=r.reduce((u,{literal:c,val:d})=>c?u:u.concat(d),[]),a=t.shiftTo(...i.map(n).filter(u=>u));return _m(r,o(a))}}class Vs{constructor(t,s){this.reason=t,this.explanation=s}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Si{get type(){throw new Cn}get name(){throw new Cn}get isUniversal(){throw new Cn}offsetName(t,s){throw new Cn}formatOffset(t,s){throw new Cn}offset(t){throw new Cn}equals(t){throw new Cn}get isValid(){throw new Cn}}let Fu=null;class Xd extends Si{static get instance(){return Fu===null&&(Fu=new Xd),Fu}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:s,locale:n}){return Jv(t,s,n)}formatOffset(t,s){return il(this.offset(t),s)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let La={};function rz(e){return La[e]||(La[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"})),La[e]}const oz={year:0,month:1,day:2,hour:3,minute:4,second:5};function iz(e,t){const s=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(s),[,o,r,i,a,u,c]=n;return[i,o,r,a,u,c]}function az(e,t){const s=e.formatToParts(t),n=[];for(let o=0;o<s.length;o++){const{type:r,value:i}=s[o],a=oz[r];ct(a)||(n[a]=parseInt(i,10))}return n}let Sa={};class _n extends Si{static create(t){return Sa[t]||(Sa[t]=new _n(t)),Sa[t]}static resetCache(){Sa={},La={}}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=_n.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:s,locale:n}){return Jv(t,s,n,this.name)}formatOffset(t,s){return il(this.offset(t),s)}offset(t){const s=new Date(t);if(isNaN(s))return NaN;const n=rz(this.name),[o,r,i,a,u,c]=n.formatToParts?az(n,s):iz(n,s),h=Jd({year:o,month:r,day:i,hour:a===24?0:a,minute:u,second:c,millisecond:0});let f=+s;const m=f%1e3;return f-=m>=0?m:1e3+m,(h-f)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Iu=null;class is extends Si{static get utcInstance(){return Iu===null&&(Iu=new is(0)),Iu}static instance(t){return t===0?is.utcInstance:new is(t)}static parseSpecifier(t){if(t){const s=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(s)return new is(ql(s[1],s[2]))}return null}constructor(t){super();this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${il(this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,s){return il(this.fixed,s)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class lz 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 Fn(e,t){if(ct(e)||e===null)return t;if(e instanceof Si)return e;if(Bq(e)){const s=e.toLowerCase();return s==="local"||s==="system"?t:s==="utc"||s==="gmt"?is.utcInstance:is.parseSpecifier(s)||_n.create(e)}else return cr(e)?is.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new lz(e)}let gm=()=>Date.now(),vm="system",ym=null,bm=null,wm=null,km;class zt{static get now(){return gm}static set now(t){gm=t}static set defaultZone(t){vm=t}static get defaultZone(){return Fn(vm,Xd.instance)}static get defaultLocale(){return ym}static set defaultLocale(t){ym=t}static get defaultNumberingSystem(){return bm}static set defaultNumberingSystem(t){bm=t}static get defaultOutputCalendar(){return wm}static set defaultOutputCalendar(t){wm=t}static get throwOnInvalid(){return km}static set throwOnInvalid(t){km=t}static resetCaches(){$t.resetCache(),_n.resetCache()}}let xm={};function uz(e,t={}){const s=JSON.stringify([e,t]);let n=xm[s];return n||(n=new Intl.ListFormat(e,t),xm[s]=n),n}let Pc={};function Dc(e,t={}){const s=JSON.stringify([e,t]);let n=Pc[s];return n||(n=new Intl.DateTimeFormat(e,t),Pc[s]=n),n}let Fc={};function cz(e,t={}){const s=JSON.stringify([e,t]);let n=Fc[s];return n||(n=new Intl.NumberFormat(e,t),Fc[s]=n),n}let Ic={};function dz(e,t={}){const i=t,{base:s}=i,n=nu(i,["base"]),o=JSON.stringify([e,n]);let r=Ic[o];return r||(r=new Intl.RelativeTimeFormat(e,t),Ic[o]=r),r}let Ro=null;function fz(){return Ro||(Ro=new Intl.DateTimeFormat().resolvedOptions().locale,Ro)}function hz(e){const t=e.indexOf("-u-");if(t===-1)return[e];{let s;const n=e.substring(0,t);try{s=Dc(e).resolvedOptions()}catch{s=Dc(n).resolvedOptions()}const{numberingSystem:o,calendar:r}=s;return[n,o,r]}}function mz(e,t,s){return(s||t)&&(e+="-u",s&&(e+=`-ca-${s}`),t&&(e+=`-nu-${t}`)),e}function pz(e){const t=[];for(let s=1;s<=12;s++){const n=Qe.utc(2016,s,1);t.push(e(n))}return t}function _z(e){const t=[];for(let s=1;s<=7;s++){const n=Qe.utc(2016,11,13+s);t.push(e(n))}return t}function Ea(e,t,s,n,o){const r=e.listingMode(s);return r==="error"?null:r==="en"?n(t):o(t)}function gz(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 vz{constructor(t,s,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const a=n,{padTo:o,floor:r}=a,i=nu(a,["padTo","floor"]);if(!s||Object.keys(i).length>0){const u=Je({useGrouping:!1},n);n.padTo>0&&(u.minimumIntegerDigits=n.padTo),this.inf=cz(t,u)}}format(t){if(this.inf){const s=this.floor?Math.floor(t):t;return this.inf.format(s)}else{const s=this.floor?Math.floor(t):Zd(t,3);return Ut(s,this.padTo)}}}class yz{constructor(t,s,n){this.opts=n;let o;if(t.zone.isUniversal){const i=-1*(t.offset/60),a=i>=0?`Etc/GMT+${i}`:`Etc/GMT${i}`;t.offset!==0&&_n.create(a).valid?(o=a,this.dt=t):(o="UTC",n.timeZoneName?this.dt=t:this.dt=t.offset===0?t:Qe.fromMillis(t.ts+t.offset*60*1e3))}else t.zone.type==="system"?this.dt=t:(this.dt=t,o=t.zone.name);const r=Je({},this.opts);o&&(r.timeZone=o),this.dtf=Dc(s,r)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class bz{constructor(t,s,n){this.opts=Je({style:"long"},n),!s&&Zv()&&(this.rtf=dz(t,n))}format(t,s){return this.rtf?this.rtf.format(t,s):sz(s,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,s){return this.rtf?this.rtf.formatToParts(t,s):[]}}class $t{static fromOpts(t){return $t.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,s,n,o=!1){const r=t||zt.defaultLocale,i=r||(o?"en-US":fz()),a=s||zt.defaultNumberingSystem,u=n||zt.defaultOutputCalendar;return new $t(i,a,u,r)}static resetCache(){Ro=null,Pc={},Fc={},Ic={}}static fromObject({locale:t,numberingSystem:s,outputCalendar:n}={}){return $t.create(t,s,n)}constructor(t,s,n,o){const[r,i,a]=hz(t);this.locale=r,this.numberingSystem=s||i||null,this.outputCalendar=n||a||null,this.intl=mz(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=gz(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),s=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&s?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:$t.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(Ws(Je({},t),{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(Ws(Je({},t),{defaultToEN:!1}))}months(t,s=!1,n=!0){return Ea(this,t,n,ey,()=>{const o=s?{month:t,day:"numeric"}:{month:t},r=s?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=pz(i=>this.extract(i,o,"month"))),this.monthsCache[r][t]})}weekdays(t,s=!1,n=!0){return Ea(this,t,n,ny,()=>{const o=s?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=s?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=_z(i=>this.extract(i,o,"weekday"))),this.weekdaysCache[r][t]})}meridiems(t=!0){return Ea(this,void 0,t,()=>ry,()=>{if(!this.meridiemCache){const s={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Qe.utc(2016,11,13,9),Qe.utc(2016,11,13,19)].map(n=>this.extract(n,s,"dayperiod"))}return this.meridiemCache})}eras(t,s=!0){return Ea(this,t,s,oy,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Qe.utc(-40,1,1),Qe.utc(2017,1,1)].map(o=>this.extract(o,n,"era"))),this.eraCache[t]})}extract(t,s,n){const o=this.dtFormatter(t,s),r=o.formatToParts(),i=r.find(a=>a.type.toLowerCase()===n);return i?i.value:null}numberFormatter(t={}){return new vz(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,s={}){return new yz(t,this.intl,s)}relFormatter(t={}){return new bz(this.intl,this.isEnglish(),t)}listFormatter(t={}){return uz(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}}function co(...e){const t=e.reduce((s,n)=>s+n.source,"");return RegExp(`^${t}$`)}function yr(...e){return t=>e.reduce(([s,n,o],r)=>{const[i,a,u]=r(t,o);return[Je(Je({},s),i),n||a,u]},[{},null,1]).slice(0,2)}function fo(e,...t){if(e==null)return[null,null];for(const[s,n]of t){const o=s.exec(e);if(o)return n(o)}return[null,null]}function iy(...e){return(t,s)=>{const n={};let o;for(o=0;o<e.length;o++)n[e[o]]=Pn(t[s+o]);return[n,null,s+o]}}const ay=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Qd=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ly=RegExp(`${Qd.source}${ay.source}?`),ef=RegExp(`(?:T${ly.source})?`),wz=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,kz=/(\d{4})-?W(\d\d)(?:-?(\d))?/,xz=/(\d{4})-?(\d{3})/,Sz=iy("weekYear","weekNumber","weekDay"),Ez=iy("year","ordinal"),Cz=/(\d{4})-(\d\d)-(\d\d)/,uy=RegExp(`${Qd.source} ?(?:${ay.source}|(${zq.source}))?`),$z=RegExp(`(?: ${uy.source})?`);function qr(e,t,s){const n=e[t];return ct(n)?s:Pn(n)}function cy(e,t){return[{year:qr(e,t),month:qr(e,t+1,1),day:qr(e,t+2,1)},null,t+3]}function br(e,t){return[{hours:qr(e,t,0),minutes:qr(e,t+1,0),seconds:qr(e,t+2,0),milliseconds:Yd(e[t+3])},null,t+4]}function ho(e,t){const s=!e[t]&&!e[t+1],n=ql(e[t+1],e[t+2]),o=s?null:is.instance(n);return[{},o,t+3]}function dy(e,t){const s=e[t]?_n.create(e[t]):null;return[{},s,t+1]}const Oz=RegExp(`^T?${Qd.source}$`),Tz=/^-?P(?:(?:(-?\d{1,9}(?:\.\d{1,9})?)Y)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,9}(?:\.\d{1,9})?)W)?(?:(-?\d{1,9}(?:\.\d{1,9})?)D)?(?:T(?:(-?\d{1,9}(?:\.\d{1,9})?)H)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Az(e){const[t,s,n,o,r,i,a,u,c]=e,d=t[0]==="-",h=u&&u[0]==="-",f=(m,p=!1)=>m!==void 0&&(p||m&&d)?-m:m;return[{years:f(Xn(s)),months:f(Xn(n)),weeks:f(Xn(o)),days:f(Xn(r)),hours:f(Xn(i)),minutes:f(Xn(a)),seconds:f(Xn(u),u==="-0"),milliseconds:f(Yd(c),h)}]}const Pz={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 tf(e,t,s,n,o,r,i){const a={year:t.length===2?Ac(Pn(t)):Pn(t),month:Qv.indexOf(s)+1,day:Pn(n),hour:Pn(o),minute:Pn(r)};return i&&(a.second=Pn(i)),e&&(a.weekday=e.length>3?ty.indexOf(e)+1:sy.indexOf(e)+1),a}const Dz=/^(?:(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 Fz(e){const[,t,s,n,o,r,i,a,u,c,d,h]=e,f=tf(t,o,n,s,r,i,a);let m;return u?m=Pz[u]:c?m=0:m=ql(d,h),[f,new is(m)]}function Iz(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Rz=/^(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$/,Nz=/^(Monday|Tuesday|Wedsday|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$/,Mz=/^(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 Sm(e){const[,t,s,n,o,r,i,a]=e;return[tf(t,o,n,s,r,i,a),is.utcInstance]}function Lz(e){const[,t,s,n,o,r,i,a]=e;return[tf(t,a,s,n,o,r,i),is.utcInstance]}const jz=co(wz,ef),Bz=co(kz,ef),Uz=co(xz,ef),Vz=co(ly),Hz=yr(cy,br,ho),qz=yr(Sz,br,ho),zz=yr(Ez,br,ho),Gz=yr(br,ho);function Wz(e){return fo(e,[jz,Hz],[Bz,qz],[Uz,zz],[Vz,Gz])}function Kz(e){return fo(Iz(e),[Dz,Fz])}function Yz(e){return fo(e,[Rz,Sm],[Nz,Sm],[Mz,Lz])}function Zz(e){return fo(e,[Tz,Az])}const Jz=yr(br);function Xz(e){return fo(e,[Oz,Jz])}const Qz=co(Cz,$z),eG=co(uy),tG=yr(cy,br,ho,dy),sG=yr(br,ho,dy);function nG(e){return fo(e,[Qz,tG],[eG,sG])}const rG="Invalid Duration",fy={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}},oG=Je({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}},fy),Ts=146097/400,Pr=146097/4800,iG=Je({years:{quarters:4,months:12,weeks:Ts/7,days:Ts,hours:Ts*24,minutes:Ts*24*60,seconds:Ts*24*60*60,milliseconds:Ts*24*60*60*1e3},quarters:{months:3,weeks:Ts/28,days:Ts/4,hours:Ts*24/4,minutes:Ts*24*60/4,seconds:Ts*24*60*60/4,milliseconds:Ts*24*60*60*1e3/4},months:{weeks:Pr/7,days:Pr,hours:Pr*24,minutes:Pr*24*60,seconds:Pr*24*60*60,milliseconds:Pr*24*60*60*1e3}},fy),nr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],aG=nr.slice(0).reverse();function Qn(e,t,s=!1){const n={values:s?t.values:Je(Je({},e.values),t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new ot(n)}function lG(e){return e<0?Math.floor(e):Math.ceil(e)}function hy(e,t,s,n,o){const r=e[o][s],i=t[s]/r,a=Math.sign(i)===Math.sign(n[o]),u=!a&&n[o]!==0&&Math.abs(i)<=1?lG(i):Math.trunc(i);n[o]+=u,t[s]-=u*r}function uG(e,t){aG.reduce((s,n)=>ct(t[n])?s:(s&&hy(e,t,s,t,n),n),null)}class ot{constructor(t){const s=t.conversionAccuracy==="longterm"||!1;this.values=t.values,this.loc=t.loc||$t.create(),this.conversionAccuracy=s?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=s?iG:oG,this.isLuxonDuration=!0}static fromMillis(t,s){return ot.fromObject({milliseconds:t},s)}static fromObject(t,s={}){if(t==null||typeof t!="object")throw new As(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new ot({values:ol(t,ot.normalizeUnit),loc:$t.fromObject(s),conversionAccuracy:s.conversionAccuracy})}static fromDurationLike(t){if(cr(t))return ot.fromMillis(t);if(ot.isDuration(t))return t;if(typeof t=="object")return ot.fromObject(t);throw new As(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,s){const[n]=Zz(t);return n?ot.fromObject(n,s):ot.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,s){const[n]=Xz(t);return n?ot.fromObject(n,s):ot.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,s=null){if(!t)throw new As("need to specify a reason the Duration is invalid");const n=t instanceof Vs?t:new Vs(t,s);if(zt.throwOnInvalid)throw new Mq(n);return new ot({invalid:n})}static normalizeUnit(t){const s={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(!s)throw new Av(t);return s}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,s={}){const n=Ws(Je({},s),{floor:s.round!==!1&&s.floor!==!1});return this.isValid?fs.create(this.loc,n).formatDurationFromString(this,t):rG}toHuman(t={}){const s=nr.map(n=>{const o=this.values[n];return ct(o)?null:this.loc.numberFormatter(Ws(Je({style:"unit",unitDisplay:"long"},t),{unit:n.slice(0,-1)})).format(o)}).filter(n=>n);return this.loc.listFormatter(Je({type:"conjunction",style:t.listStyle||"narrow"},t)).format(s)}toObject(){return this.isValid?Je({},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+=Zd(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const s=this.toMillis();if(s<0||s>=864e5)return null;t=Je({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t);const n=this.shiftTo("hours","minutes","seconds","milliseconds");let o=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||n.seconds!==0||n.milliseconds!==0)&&(o+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||n.milliseconds!==0)&&(o+=".SSS"));let r=n.toFormat(o);return t.includePrefix&&(r="T"+r),r}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 s=ot.fromDurationLike(t),n={};for(const o of nr)(oo(s.values,o)||oo(this.values,o))&&(n[o]=s.get(o)+this.get(o));return Qn(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const s=ot.fromDurationLike(t);return this.plus(s.negate())}mapUnits(t){if(!this.isValid)return this;const s={};for(const n of Object.keys(this.values))s[n]=Xv(t(this.values[n],n));return Qn(this,{values:s},!0)}get(t){return this[ot.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const s=Je(Je({},this.values),ol(t,ot.normalizeUnit));return Qn(this,{values:s})}reconfigure({locale:t,numberingSystem:s,conversionAccuracy:n}={}){const o=this.loc.clone({locale:t,numberingSystem:s}),r={loc:o};return n&&(r.conversionAccuracy=n),Qn(this,r)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return uG(this.matrix,t),Qn(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(i=>ot.normalizeUnit(i));const s={},n={},o=this.toObject();let r;for(const i of nr)if(t.indexOf(i)>=0){r=i;let a=0;for(const c in n)a+=this.matrix[c][i]*n[c],n[c]=0;cr(o[i])&&(a+=o[i]);const u=Math.trunc(a);s[i]=u,n[i]=(a*1e3-u*1e3)/1e3;for(const c in o)nr.indexOf(c)>nr.indexOf(i)&&hy(this.matrix,o,c,s,i)}else cr(o[i])&&(n[i]=o[i]);for(const i in n)n[i]!==0&&(s[r]+=i===r?n[i]:n[i]/this.matrix[r][i]);return Qn(this,{values:s},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const s of Object.keys(this.values))t[s]=this.values[s]===0?0:-this.values[s];return Qn(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 s(n,o){return n===void 0||n===0?o===void 0||o===0:n===o}for(const n of nr)if(!s(this.values[n],t.values[n]))return!1;return!0}}const ko="Invalid Interval";function cG(e,t){return!e||!e.isValid?Dt.invalid("missing or invalid start"):!t||!t.isValid?Dt.invalid("missing or invalid end"):t<e?Dt.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 Dt{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,s=null){if(!t)throw new As("need to specify a reason the Interval is invalid");const n=t instanceof Vs?t:new Vs(t,s);if(zt.throwOnInvalid)throw new Nq(n);return new Dt({invalid:n})}static fromDateTimes(t,s){const n=Eo(t),o=Eo(s),r=cG(n,o);return r==null?new Dt({start:n,end:o}):r}static after(t,s){const n=ot.fromDurationLike(s),o=Eo(t);return Dt.fromDateTimes(o,o.plus(n))}static before(t,s){const n=ot.fromDurationLike(s),o=Eo(t);return Dt.fromDateTimes(o.minus(n),o)}static fromISO(t,s){const[n,o]=(t||"").split("/",2);if(n&&o){let r,i;try{r=Qe.fromISO(n,s),i=r.isValid}catch{i=!1}let a,u;try{a=Qe.fromISO(o,s),u=a.isValid}catch{u=!1}if(i&&u)return Dt.fromDateTimes(r,a);if(i){const c=ot.fromISO(o,s);if(c.isValid)return Dt.after(r,c)}else if(u){const c=ot.fromISO(n,s);if(c.isValid)return Dt.before(a,c)}}return Dt.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 s=this.start.startOf(t),n=this.end.startOf(t);return Math.floor(n.diff(s,t).get(t))+1}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:s}={}){return this.isValid?Dt.fromDateTimes(t||this.s,s||this.e):this}splitAt(...t){if(!this.isValid)return[];const s=t.map(Eo).filter(i=>this.contains(i)).sort(),n=[];let{s:o}=this,r=0;for(;o<this.e;){const i=s[r]||this.e,a=+i>+this.e?this.e:i;n.push(Dt.fromDateTimes(o,a)),o=a,r+=1}return n}splitBy(t){const s=ot.fromDurationLike(t);if(!this.isValid||!s.isValid||s.as("milliseconds")===0)return[];let{s:n}=this,o=1,r;const i=[];for(;n<this.e;){const a=this.start.plus(s.mapUnits(u=>u*o));r=+a>+this.e?this.e:a,i.push(Dt.fromDateTimes(n,r)),n=r,o+=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 s=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return s>=n?null:Dt.fromDateTimes(s,n)}union(t){if(!this.isValid)return this;const s=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return Dt.fromDateTimes(s,n)}static merge(t){const[s,n]=t.sort((o,r)=>o.s-r.s).reduce(([o,r],i)=>r?r.overlaps(i)||r.abutsStart(i)?[o,r.union(i)]:[o.concat([r]),i]:[o,i],[[],null]);return n&&s.push(n),s}static xor(t){let s=null,n=0;const o=[],r=t.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),i=Array.prototype.concat(...r),a=i.sort((u,c)=>u.time-c.time);for(const u of a)n+=u.type==="s"?1:-1,n===1?s=u.time:(s&&+s!=+u.time&&o.push(Dt.fromDateTimes(s,u.time)),s=null);return Dt.merge(o)}difference(...t){return Dt.xor([this].concat(t)).map(s=>this.intersection(s)).filter(s=>s&&!s.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:ko}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:ko}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ko}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:ko}toFormat(t,{separator:s=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${s}${this.e.toFormat(t)}`:ko}toDuration(t,s){return this.isValid?this.e.diff(this.s,t,s):ot.invalid(this.invalidReason)}mapEndpoints(t){return Dt.fromDateTimes(t(this.s),t(this.e))}}class Ca{static hasDST(t=zt.defaultZone){const s=Qe.now().setZone(t).set({month:12});return!t.isUniversal&&s.offset!==s.set({month:6}).offset}static isValidIANAZone(t){return _n.isValidZone(t)}static normalizeZone(t){return Fn(t,zt.defaultZone)}static months(t="long",{locale:s=null,numberingSystem:n=null,locObj:o=null,outputCalendar:r="gregory"}={}){return(o||$t.create(s,n,r)).months(t)}static monthsFormat(t="long",{locale:s=null,numberingSystem:n=null,locObj:o=null,outputCalendar:r="gregory"}={}){return(o||$t.create(s,n,r)).months(t,!0)}static weekdays(t="long",{locale:s=null,numberingSystem:n=null,locObj:o=null}={}){return(o||$t.create(s,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:s=null,numberingSystem:n=null,locObj:o=null}={}){return(o||$t.create(s,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return $t.create(t).meridiems()}static eras(t="short",{locale:s=null}={}){return $t.create(s,null,"gregory").eras(t)}static features(){return{relative:Zv()}}}function Em(e,t){const s=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=s(t)-s(e);return Math.floor(ot.fromMillis(n).as("days"))}function dG(e,t,s){const n=[["years",(a,u)=>u.year-a.year],["quarters",(a,u)=>u.quarter-a.quarter],["months",(a,u)=>u.month-a.month+(u.year-a.year)*12],["weeks",(a,u)=>{const c=Em(a,u);return(c-c%7)/7}],["days",Em]],o={};let r,i;for(const[a,u]of n)if(s.indexOf(a)>=0){r=a;let c=u(e,t);i=e.plus({[a]:c}),i>t?(e=e.plus({[a]:c-1}),c-=1):e=i,o[a]=c}return[e,o,i,r]}function fG(e,t,s,n){let[o,r,i,a]=dG(e,t,s);const u=t-o,c=s.filter(h=>["hours","minutes","seconds","milliseconds"].indexOf(h)>=0);c.length===0&&(i<t&&(i=o.plus({[a]:1})),i!==o&&(r[a]=(r[a]||0)+u/(i-o)));const d=ot.fromObject(r,n);return c.length>0?ot.fromMillis(u,n).shiftTo(...c).plus(d):d}const sf={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"},Cm={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]},hG=sf.hanidec.replace(/[\[|\]]/g,"").split("");function mG(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let s=0;s<e.length;s++){const n=e.charCodeAt(s);if(e[s].search(sf.hanidec)!==-1)t+=hG.indexOf(e[s]);else for(const o in Cm){const[r,i]=Cm[o];n>=r&&n<=i&&(t+=n-r)}}return parseInt(t,10)}else return t}function Ms({numberingSystem:e},t=""){return new RegExp(`${sf[e||"latn"]}${t}`)}const pG="missing Intl.DateTimeFormat.formatToParts support";function _t(e,t=s=>s){return{regex:e,deser:([s])=>t(mG(s))}}const _G=String.fromCharCode(160),my=`( |${_G})`,py=new RegExp(my,"g");function gG(e){return e.replace(/\./g,"\\.?").replace(py,my)}function $m(e){return e.replace(/\./g,"").replace(py," ").toLowerCase()}function Ls(e,t){return e===null?null:{regex:RegExp(e.map(gG).join("|")),deser:([s])=>e.findIndex(n=>$m(s)===$m(n))+t}}function Om(e,t){return{regex:e,deser:([,s,n])=>ql(s,n),groups:t}}function Ru(e){return{regex:e,deser:([t])=>t}}function vG(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function yG(e,t){const s=Ms(t),n=Ms(t,"{2}"),o=Ms(t,"{3}"),r=Ms(t,"{4}"),i=Ms(t,"{6}"),a=Ms(t,"{1,2}"),u=Ms(t,"{1,3}"),c=Ms(t,"{1,6}"),d=Ms(t,"{1,9}"),h=Ms(t,"{2,4}"),f=Ms(t,"{4,6}"),m=g=>({regex:RegExp(vG(g.val)),deser:([y])=>y,literal:!0}),_=(g=>{if(e.literal)return m(g);switch(g.val){case"G":return Ls(t.eras("short",!1),0);case"GG":return Ls(t.eras("long",!1),0);case"y":return _t(c);case"yy":return _t(h,Ac);case"yyyy":return _t(r);case"yyyyy":return _t(f);case"yyyyyy":return _t(i);case"M":return _t(a);case"MM":return _t(n);case"MMM":return Ls(t.months("short",!0,!1),1);case"MMMM":return Ls(t.months("long",!0,!1),1);case"L":return _t(a);case"LL":return _t(n);case"LLL":return Ls(t.months("short",!1,!1),1);case"LLLL":return Ls(t.months("long",!1,!1),1);case"d":return _t(a);case"dd":return _t(n);case"o":return _t(u);case"ooo":return _t(o);case"HH":return _t(n);case"H":return _t(a);case"hh":return _t(n);case"h":return _t(a);case"mm":return _t(n);case"m":return _t(a);case"q":return _t(a);case"qq":return _t(n);case"s":return _t(a);case"ss":return _t(n);case"S":return _t(u);case"SSS":return _t(o);case"u":return Ru(d);case"uu":return Ru(a);case"uuu":return _t(s);case"a":return Ls(t.meridiems(),0);case"kkkk":return _t(r);case"kk":return _t(h,Ac);case"W":return _t(a);case"WW":return _t(n);case"E":case"c":return _t(s);case"EEE":return Ls(t.weekdays("short",!1,!1),1);case"EEEE":return Ls(t.weekdays("long",!1,!1),1);case"ccc":return Ls(t.weekdays("short",!0,!1),1);case"cccc":return Ls(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Om(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return Om(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return Ru(/[a-z_+-/]{1,256}?/i);default:return m(g)}})(e)||{invalidReason:pG};return _.token=e,_}const bG={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"}};function wG(e,t,s){const{type:n,value:o}=e;if(n==="literal")return{literal:!0,val:o};const r=s[n];let i=bG[n];if(typeof i=="object"&&(i=i[r]),i)return{literal:!1,val:i}}function kG(e){return[`^${e.map(s=>s.regex).reduce((s,n)=>`${s}(${n.source})`,"")}$`,e]}function xG(e,t,s){const n=e.match(t);if(n){const o={};let r=1;for(const i in s)if(oo(s,i)){const a=s[i],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(o[a.token.val[0]]=a.deser(n.slice(r,r+u))),r+=u}return[n,o]}else return[n,{}]}function SG(e){const t=r=>{switch(r){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 s=null,n;return ct(e.z)||(s=_n.create(e.z)),ct(e.Z)||(s||(s=new is(e.Z)),n=e.Z),ct(e.q)||(e.M=(e.q-1)*3+1),ct(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),ct(e.u)||(e.S=Yd(e.u)),[Object.keys(e).reduce((r,i)=>{const a=t(i);return a&&(r[a]=e[i]),r},{}),s,n]}let Nu=null;function EG(){return Nu||(Nu=Qe.fromMillis(1555555555555)),Nu}function CG(e,t){if(e.literal)return e;const s=fs.macroTokenToFormatOpts(e.val);if(!s)return e;const r=fs.create(t,s).formatDateTimeParts(EG()).map(i=>wG(i,t,s));return r.includes(void 0)?e:r}function $G(e,t){return Array.prototype.concat(...e.map(s=>CG(s,t)))}function _y(e,t,s){const n=$G(fs.parseFormat(s),e),o=n.map(i=>yG(i,e)),r=o.find(i=>i.invalidReason);if(r)return{input:t,tokens:n,invalidReason:r.invalidReason};{const[i,a]=kG(o),u=RegExp(i,"i"),[c,d]=xG(t,u,a),[h,f,m]=d?SG(d):[null,null,void 0];if(oo(d,"a")&&oo(d,"H"))throw new Io("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:u,rawMatches:c,matches:d,result:h,zone:f,specificOffset:m}}}function OG(e,t,s){const{result:n,zone:o,specificOffset:r,invalidReason:i}=_y(e,t,s);return[n,o,r,i]}const gy=[0,31,59,90,120,151,181,212,243,273,304,334],vy=[0,31,60,91,121,152,182,213,244,274,305,335];function Ps(e,t){return new Vs("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function yy(e,t,s){const n=new Date(Date.UTC(e,t-1,s)).getUTCDay();return n===0?7:n}function by(e,t,s){return s+(xi(e)?vy:gy)[t-1]}function wy(e,t){const s=xi(e)?vy:gy,n=s.findIndex(r=>r<t),o=t-s[n];return{month:n+1,day:o}}function Rc(e){const{year:t,month:s,day:n}=e,o=by(t,s,n),r=yy(t,s,n);let i=Math.floor((o-r+10)/7),a;return i<1?(a=t-1,i=rl(a)):i>rl(t)?(a=t+1,i=1):a=t,Je({weekYear:a,weekNumber:i,weekday:r},zl(e))}function Tm(e){const{weekYear:t,weekNumber:s,weekday:n}=e,o=yy(t,1,4),r=ti(t);let i=s*7+n-o-3,a;i<1?(a=t-1,i+=ti(a)):i>r?(a=t+1,i-=ti(t)):a=t;const{month:u,day:c}=wy(a,i);return Je({year:a,month:u,day:c},zl(e))}function Mu(e){const{year:t,month:s,day:n}=e,o=by(t,s,n);return Je({year:t,ordinal:o},zl(e))}function Am(e){const{year:t,ordinal:s}=e,{month:n,day:o}=wy(t,s);return Je({year:t,month:n,day:o},zl(e))}function TG(e){const t=Hl(e.weekYear),s=dn(e.weekNumber,1,rl(e.weekYear)),n=dn(e.weekday,1,7);return t?s?n?!1:Ps("weekday",e.weekday):Ps("week",e.week):Ps("weekYear",e.weekYear)}function AG(e){const t=Hl(e.year),s=dn(e.ordinal,1,ti(e.year));return t?s?!1:Ps("ordinal",e.ordinal):Ps("year",e.year)}function ky(e){const t=Hl(e.year),s=dn(e.month,1,12),n=dn(e.day,1,nl(e.year,e.month));return t?s?n?!1:Ps("day",e.day):Ps("month",e.month):Ps("year",e.year)}function xy(e){const{hour:t,minute:s,second:n,millisecond:o}=e,r=dn(t,0,23)||t===24&&s===0&&n===0&&o===0,i=dn(s,0,59),a=dn(n,0,59),u=dn(o,0,999);return r?i?a?u?!1:Ps("millisecond",o):Ps("second",n):Ps("minute",s):Ps("hour",t)}const Lu="Invalid DateTime",Pm=864e13;function $a(e){return new Vs("unsupported zone",`the zone "${e.name}" is not supported`)}function ju(e){return e.weekData===null&&(e.weekData=Rc(e.c)),e.weekData}function xo(e,t){const s={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Qe(Ws(Je(Je({},s),t),{old:s}))}function Sy(e,t,s){let n=e-t*60*1e3;const o=s.offset(n);if(t===o)return[n,t];n-=(o-t)*60*1e3;const r=s.offset(n);return o===r?[n,o]:[e-Math.min(o,r)*60*1e3,Math.max(o,r)]}function Dm(e,t){e+=t*60*1e3;const s=new Date(e);return{year:s.getUTCFullYear(),month:s.getUTCMonth()+1,day:s.getUTCDate(),hour:s.getUTCHours(),minute:s.getUTCMinutes(),second:s.getUTCSeconds(),millisecond:s.getUTCMilliseconds()}}function ja(e,t,s){return Sy(Jd(e),t,s)}function Fm(e,t){const s=e.o,n=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,r=Ws(Je({},e.c),{year:n,month:o,day:Math.min(e.c.day,nl(n,o))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),i=ot.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=Jd(r);let[u,c]=Sy(a,s,e.zone);return i!==0&&(u+=i,c=e.zone.offset(u)),{ts:u,o:c}}function So(e,t,s,n,o,r){const{setZone:i,zone:a}=s;if(e&&Object.keys(e).length!==0){const u=t||a,c=Qe.fromObject(e,Ws(Je({},s),{zone:u,specificOffset:r}));return i?c:c.setZone(a)}else return Qe.invalid(new Vs("unparsable",`the input "${o}" can't be parsed as ${n}`))}function Oa(e,t,s=!0){return e.isValid?fs.create($t.create("en-US"),{allowZ:s,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Bu(e,t){const s=e.c.year>9999||e.c.year<0;let n="";return s&&e.c.year>=0&&(n+="+"),n+=Ut(e.c.year,s?6:4),t?(n+="-",n+=Ut(e.c.month),n+="-",n+=Ut(e.c.day)):(n+=Ut(e.c.month),n+=Ut(e.c.day)),n}function Im(e,t,s,n,o){let r=Ut(e.c.hour);return t?(r+=":",r+=Ut(e.c.minute),(e.c.second!==0||!s)&&(r+=":")):r+=Ut(e.c.minute),(e.c.second!==0||!s)&&(r+=Ut(e.c.second),(e.c.millisecond!==0||!n)&&(r+=".",r+=Ut(e.c.millisecond,3))),o&&(e.isOffsetFixed&&e.offset===0?r+="Z":e.o<0?(r+="-",r+=Ut(Math.trunc(-e.o/60)),r+=":",r+=Ut(Math.trunc(-e.o%60))):(r+="+",r+=Ut(Math.trunc(e.o/60)),r+=":",r+=Ut(Math.trunc(e.o%60)))),r}const Ey={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},PG={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},DG={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Cy=["year","month","day","hour","minute","second","millisecond"],FG=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],IG=["year","ordinal","hour","minute","second","millisecond"];function Rm(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 Av(e);return t}function Nm(e,t){const s=Fn(t.zone,zt.defaultZone),n=$t.fromObject(t),o=zt.now();let r,i;if(ct(e.year))r=o;else{for(const c of Cy)ct(e[c])&&(e[c]=Ey[c]);const a=ky(e)||xy(e);if(a)return Qe.invalid(a);const u=s.offset(o);[r,i]=ja(e,u,s)}return new Qe({ts:r,zone:s,loc:n,o:i})}function Mm(e,t,s){const n=ct(s.round)?!0:s.round,o=(i,a)=>(i=Zd(i,n||s.calendary?0:2,!0),t.loc.clone(s).relFormatter(s).format(i,a)),r=i=>s.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(s.unit)return o(r(s.unit),s.unit);for(const i of s.units){const a=r(i);if(Math.abs(a)>=1)return o(a,i)}return o(e>t?-0:0,s.units[s.units.length-1])}function Lm(e){let t={},s;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],s=Array.from(e).slice(0,e.length-1)):s=Array.from(e),[t,s]}class Qe{constructor(t){const s=t.zone||zt.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Vs("invalid input"):null)||(s.isValid?null:$a(s));this.ts=ct(t.ts)?zt.now():t.ts;let o=null,r=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(s))[o,r]=[t.old.c,t.old.o];else{const a=s.offset(this.ts);o=Dm(this.ts,a),n=Number.isNaN(o.year)?new Vs("invalid input"):null,o=n?null:o,r=n?null:a}this._zone=s,this.loc=t.loc||$t.create(),this.invalid=n,this.weekData=null,this.c=o,this.o=r,this.isLuxonDateTime=!0}static now(){return new Qe({})}static local(){const[t,s]=Lm(arguments),[n,o,r,i,a,u,c]=s;return Nm({year:n,month:o,day:r,hour:i,minute:a,second:u,millisecond:c},t)}static utc(){const[t,s]=Lm(arguments),[n,o,r,i,a,u,c]=s;return t.zone=is.utcInstance,Nm({year:n,month:o,day:r,hour:i,minute:a,second:u,millisecond:c},t)}static fromJSDate(t,s={}){const n=Uq(t)?t.valueOf():NaN;if(Number.isNaN(n))return Qe.invalid("invalid input");const o=Fn(s.zone,zt.defaultZone);return o.isValid?new Qe({ts:n,zone:o,loc:$t.fromObject(s)}):Qe.invalid($a(o))}static fromMillis(t,s={}){if(cr(t))return t<-Pm||t>Pm?Qe.invalid("Timestamp out of range"):new Qe({ts:t,zone:Fn(s.zone,zt.defaultZone),loc:$t.fromObject(s)});throw new As(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,s={}){if(cr(t))return new Qe({ts:t*1e3,zone:Fn(s.zone,zt.defaultZone),loc:$t.fromObject(s)});throw new As("fromSeconds requires a numerical input")}static fromObject(t,s={}){t=t||{};const n=Fn(s.zone,zt.defaultZone);if(!n.isValid)return Qe.invalid($a(n));const o=zt.now(),r=ct(s.specificOffset)?n.offset(o):s.specificOffset,i=ol(t,Rm),a=!ct(i.ordinal),u=!ct(i.year),c=!ct(i.month)||!ct(i.day),d=u||c,h=i.weekYear||i.weekNumber,f=$t.fromObject(s);if((d||a)&&h)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 m=h||i.weekday&&!d;let p,_,g=Dm(o,r);m?(p=FG,_=PG,g=Rc(g)):a?(p=IG,_=DG,g=Mu(g)):(p=Cy,_=Ey);let y=!1;for(const j of p){const O=i[j];ct(O)?y?i[j]=_[j]:i[j]=g[j]:y=!0}const b=m?TG(i):a?AG(i):ky(i),k=b||xy(i);if(k)return Qe.invalid(k);const S=m?Tm(i):a?Am(i):i,[E,$]=ja(S,r,n),I=new Qe({ts:E,zone:n,o:$,loc:f});return i.weekday&&d&&t.weekday!==I.weekday?Qe.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${I.toISO()}`):I}static fromISO(t,s={}){const[n,o]=Wz(t);return So(n,o,s,"ISO 8601",t)}static fromRFC2822(t,s={}){const[n,o]=Kz(t);return So(n,o,s,"RFC 2822",t)}static fromHTTP(t,s={}){const[n,o]=Yz(t);return So(n,o,s,"HTTP",s)}static fromFormat(t,s,n={}){if(ct(t)||ct(s))throw new As("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:r=null}=n,i=$t.fromOpts({locale:o,numberingSystem:r,defaultToEN:!0}),[a,u,c,d]=OG(i,t,s);return d?Qe.invalid(d):So(a,u,n,`format ${s}`,t,c)}static fromString(t,s,n={}){return Qe.fromFormat(t,s,n)}static fromSQL(t,s={}){const[n,o]=nG(t);return So(n,o,s,"SQL",t)}static invalid(t,s=null){if(!t)throw new As("need to specify a reason the DateTime is invalid");const n=t instanceof Vs?t:new Vs(t,s);if(zt.throwOnInvalid)throw new Rq(n);return new Qe({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}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?ju(this).weekYear:NaN}get weekNumber(){return this.isValid?ju(this).weekNumber:NaN}get weekday(){return this.isValid?ju(this).weekday:NaN}get ordinal(){return this.isValid?Mu(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ca.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ca.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ca.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ca.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}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return xi(this.year)}get daysInMonth(){return nl(this.year,this.month)}get daysInYear(){return this.isValid?ti(this.year):NaN}get weeksInWeekYear(){return this.isValid?rl(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:s,numberingSystem:n,calendar:o}=fs.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:s,numberingSystem:n,outputCalendar:o}}toUTC(t=0,s={}){return this.setZone(is.instance(t),s)}toLocal(){return this.setZone(zt.defaultZone)}setZone(t,{keepLocalTime:s=!1,keepCalendarTime:n=!1}={}){if(t=Fn(t,zt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let o=this.ts;if(s||n){const r=t.offset(this.ts),i=this.toObject();[o]=ja(i,r,t)}return xo(this,{ts:o,zone:t})}else return Qe.invalid($a(t))}reconfigure({locale:t,numberingSystem:s,outputCalendar:n}={}){const o=this.loc.clone({locale:t,numberingSystem:s,outputCalendar:n});return xo(this,{loc:o})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const s=ol(t,Rm),n=!ct(s.weekYear)||!ct(s.weekNumber)||!ct(s.weekday),o=!ct(s.ordinal),r=!ct(s.year),i=!ct(s.month)||!ct(s.day),a=r||i,u=s.weekYear||s.weekNumber;if((a||o)&&u)throw new Io("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&o)throw new Io("Can't mix ordinal dates with month/day");let c;n?c=Tm(Je(Je({},Rc(this.c)),s)):ct(s.ordinal)?(c=Je(Je({},this.toObject()),s),ct(s.day)&&(c.day=Math.min(nl(c.year,c.month),c.day))):c=Am(Je(Je({},Mu(this.c)),s));const[d,h]=ja(c,this.o,this.zone);return xo(this,{ts:d,o:h})}plus(t){if(!this.isValid)return this;const s=ot.fromDurationLike(t);return xo(this,Fm(this,s))}minus(t){if(!this.isValid)return this;const s=ot.fromDurationLike(t).negate();return xo(this,Fm(this,s))}startOf(t){if(!this.isValid)return this;const s={},n=ot.normalizeUnit(t);switch(n){case"years":s.month=1;case"quarters":case"months":s.day=1;case"weeks":case"days":s.hour=0;case"hours":s.minute=0;case"minutes":s.second=0;case"seconds":s.millisecond=0;break}if(n==="weeks"&&(s.weekday=1),n==="quarters"){const o=Math.ceil(this.month/3);s.month=(o-1)*3+1}return this.set(s)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,s={}){return this.isValid?fs.create(this.loc.redefaultToEN(s)).formatDateTimeFromString(this,t):Lu}toLocaleString(t=Tc,s={}){return this.isValid?fs.create(this.loc.clone(s),t).formatDateTime(this):Lu}toLocaleParts(t={}){return this.isValid?fs.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:s=!1,suppressMilliseconds:n=!1,includeOffset:o=!0}={}){if(!this.isValid)return null;const r=t==="extended";let i=Bu(this,r);return i+="T",i+=Im(this,r,s,n,o),i}toISODate({format:t="extended"}={}){return this.isValid?Bu(this,t==="extended"):null}toISOWeekDate(){return Oa(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:s=!1,includeOffset:n=!0,includePrefix:o=!1,format:r="extended"}={}){return this.isValid?(o?"T":"")+Im(this,r==="extended",s,t,n):null}toRFC2822(){return Oa(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Oa(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Bu(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:s=!1,includeOffsetSpace:n=!0}={}){let o="HH:mm:ss.SSS";return(s||t)&&(n&&(o+=" "),s?o+="z":t&&(o+="ZZ")),Oa(this,o,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Lu}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 s=Je({},this.c);return t.includeConfig&&(s.outputCalendar=this.outputCalendar,s.numberingSystem=this.loc.numberingSystem,s.locale=this.loc.locale),s}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,s="milliseconds",n={}){if(!this.isValid||!t.isValid)return ot.invalid("created by diffing an invalid DateTime");const o=Je({locale:this.locale,numberingSystem:this.numberingSystem},n),r=Vq(s).map(ot.normalizeUnit),i=t.valueOf()>this.valueOf(),a=i?this:t,u=i?t:this,c=fG(a,u,r,o);return i?c.negate():c}diffNow(t="milliseconds",s={}){return this.diff(Qe.now(),t,s)}until(t){return this.isValid?Dt.fromDateTimes(this,t):this}hasSame(t,s){if(!this.isValid)return!1;const n=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(s)<=n&&n<=o.endOf(s)}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 s=t.base||Qe.fromObject({},{zone:this.zone}),n=t.padding?this<s?-t.padding:t.padding:0;let o=["years","months","days","hours","minutes","seconds"],r=t.unit;return Array.isArray(t.unit)&&(o=t.unit,r=void 0),Mm(s,this.plus(n),Ws(Je({},t),{numeric:"always",units:o,unit:r}))}toRelativeCalendar(t={}){return this.isValid?Mm(t.base||Qe.fromObject({},{zone:this.zone}),this,Ws(Je({},t),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...t){if(!t.every(Qe.isDateTime))throw new As("min requires all arguments be DateTimes");return pm(t,s=>s.valueOf(),Math.min)}static max(...t){if(!t.every(Qe.isDateTime))throw new As("max requires all arguments be DateTimes");return pm(t,s=>s.valueOf(),Math.max)}static fromFormatExplain(t,s,n={}){const{locale:o=null,numberingSystem:r=null}=n,i=$t.fromOpts({locale:o,numberingSystem:r,defaultToEN:!0});return _y(i,t,s)}static fromStringExplain(t,s,n={}){return Qe.fromFormatExplain(t,s,n)}static get DATE_SHORT(){return Tc}static get DATE_MED(){return Pv}static get DATE_MED_WITH_WEEKDAY(){return Lq}static get DATE_FULL(){return Dv}static get DATE_HUGE(){return Fv}static get TIME_SIMPLE(){return Iv}static get TIME_WITH_SECONDS(){return Rv}static get TIME_WITH_SHORT_OFFSET(){return Nv}static get TIME_WITH_LONG_OFFSET(){return Mv}static get TIME_24_SIMPLE(){return Lv}static get TIME_24_WITH_SECONDS(){return jv}static get TIME_24_WITH_SHORT_OFFSET(){return Bv}static get TIME_24_WITH_LONG_OFFSET(){return Uv}static get DATETIME_SHORT(){return Vv}static get DATETIME_SHORT_WITH_SECONDS(){return Hv}static get DATETIME_MED(){return qv}static get DATETIME_MED_WITH_SECONDS(){return zv}static get DATETIME_MED_WITH_WEEKDAY(){return jq}static get DATETIME_FULL(){return Gv}static get DATETIME_FULL_WITH_SECONDS(){return Wv}static get DATETIME_HUGE(){return Kv}static get DATETIME_HUGE_WITH_SECONDS(){return Yv}}function Eo(e){if(Qe.isDateTime(e))return e;if(e&&e.valueOf&&cr(e.valueOf()))return Qe.fromJSDate(e);if(e&&typeof e=="object")return Qe.fromObject(e);throw new As(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const RG={durationInHours:function(e){const t=Math.floor(e/1e3);return t>3600?ot.fromObject({seconds:t}).shiftTo("hours","minutes","seconds").toFormat("hh:mm:ss"):ot.fromObject({seconds:t}).shiftTo("minutes","seconds").toFormat("mm:ss")},durationInDays:function(e){const t=Math.floor(e/6e4);return t>1440?ot.fromObject({minutes:t}).shiftTo("days","hours","minutes").toHuman():t>60?ot.fromObject({minutes:t}).shiftTo("hours","minutes").toHuman():ot.fromObject({minutes:t}).shiftTo("minutes").toHuman()},date:function(e){return Qe.fromISO(e).toLocaleString(Qe.DATE_FULL)},datetime:function(e){return Qe.fromISO(e).toLocaleString(Qe.DATETIME_MED)},timeFromNow:function(e){var t=Qe.now().diff(Qe.fromISO(e));return this.durationInDays(t.as("milliseconds"))},number:function(e){return e.toLocaleString()},channels:function(e){return e===1?"mono":e===2?"stereo":e?e+" channels":""}},NG={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(eo,e)}},show_burger_menu:{get(){return this.$store.state.show_burger_menu},set(e){this.$store.commit(Qr,e)}}},methods:{open_link:function(){this.show_burger_menu&&this.$store.commit(Qr,!1),this.show_player_menu&&this.$store.commit(eo,!1),this.$router.push({path:this.to})},full_path:function(){return this.$router.resolve(this.to).href}}},MG=["href"];function LG(e,t,s,n,o,r){return x(),A("a",{class:Le(["navbar-item",{"is-active":r.is_active}]),href:r.full_path(),onClick:t[0]||(t[0]=pt(i=>r.open_link(),["stop","prevent"]))},[xt(e.$slots,"default")],10,MG)}var $y=ge(NG,[["render",LG]]);const jG={name:"NavbarTop",components:{NavbarItemLink:$y},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(Qr,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(vi,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}}},BG={class:"navbar-brand"},UG=l("span",{class:"icon"},[l("i",{class:"mdi mdi-library-music"})],-1),VG=l("span",{class:"icon"},[l("i",{class:"mdi mdi-music"})],-1),HG=l("span",{class:"icon"},[l("i",{class:"mdi mdi-microphone"})],-1),qG=l("span",{class:"icon"},[l("i",{class:"mdi mdi-book-open-variant"})],-1),zG=l("span",{class:"icon"},[l("i",{class:"mdi mdi-radio"})],-1),GG=l("span",{class:"icon"},[l("i",{class:"mdi mdi-folder-open"})],-1),WG=l("span",{class:"icon"},[l("i",{class:"mdi mdi-magnify"})],-1),KG=l("span",null,null,-1),YG=l("span",null,null,-1),ZG=l("span",null,null,-1),JG=[KG,YG,ZG],XG=l("div",{class:"navbar-start"},null,-1),QG={class:"navbar-end"},eW=l("a",{class:"navbar-link is-arrowless"},[l("span",{class:"icon is-hidden-touch"},[l("i",{class:"mdi mdi-24px mdi-menu"})]),l("span",{class:"is-hidden-desktop has-text-weight-bold"},"OwnTone")],-1),tW={class:"navbar-dropdown is-right"},sW=l("span",{class:"icon"},[l("i",{class:"mdi mdi-library-music"})],-1),nW=l("b",null,"Playlists",-1),rW=l("span",{class:"icon"},[l("i",{class:"mdi mdi-music"})],-1),oW=l("b",null,"Music",-1),iW=l("span",{class:"fd-navbar-item-level2"},"Artists",-1),aW=l("span",{class:"fd-navbar-item-level2"},"Albums",-1),lW=l("span",{class:"fd-navbar-item-level2"},"Genres",-1),uW=l("span",{class:"fd-navbar-item-level2"},"Spotify",-1),cW=l("span",{class:"icon"},[l("i",{class:"mdi mdi-microphone"})],-1),dW=l("b",null,"Podcasts",-1),fW=l("span",{class:"icon"},[l("i",{class:"mdi mdi-book-open-variant"})],-1),hW=l("b",null,"Audiobooks",-1),mW=l("span",{class:"icon"},[l("i",{class:"mdi mdi-radio"})],-1),pW=l("b",null,"Radio",-1),_W=l("span",{class:"icon"},[l("i",{class:"mdi mdi-folder-open"})],-1),gW=l("b",null,"Files",-1),vW=l("span",{class:"icon"},[l("i",{class:"mdi mdi-magnify"})],-1),yW=l("b",null,"Search",-1),bW=l("hr",{class:"fd-navbar-divider"},null,-1),wW=$e(" Settings "),kW=$e(" About "),xW=l("div",{class:"navbar-item is-hidden-desktop",style:{"margin-bottom":"2.5rem"}},null,-1);function SW(e,t,s,n,o,r){const i=B("navbar-item-link");return x(),A("nav",{class:"fd-top-navbar navbar is-light is-fixed-top",style:Hn(r.zindex),role:"navigation","aria-label":"main navigation"},[l("div",BG,[r.is_visible_playlists?(x(),xe(i,{key:0,to:"/playlists"},{default:T(()=>[UG]),_:1})):Y("",!0),r.is_visible_music?(x(),xe(i,{key:1,to:"/music"},{default:T(()=>[VG]),_:1})):Y("",!0),r.is_visible_podcasts?(x(),xe(i,{key:2,to:"/podcasts"},{default:T(()=>[HG]),_:1})):Y("",!0),r.is_visible_audiobooks?(x(),xe(i,{key:3,to:"/audiobooks"},{default:T(()=>[qG]),_:1})):Y("",!0),r.is_visible_radio?(x(),xe(i,{key:4,to:"/radio"},{default:T(()=>[zG]),_:1})):Y("",!0),r.is_visible_files?(x(),xe(i,{key:5,to:"/files"},{default:T(()=>[GG]),_:1})):Y("",!0),r.is_visible_search?(x(),xe(i,{key:6,to:"/search"},{default:T(()=>[WG]),_:1})):Y("",!0),l("div",{class:Le(["navbar-burger",{"is-active":r.show_burger_menu}]),onClick:t[0]||(t[0]=a=>r.show_burger_menu=!r.show_burger_menu)},JG,2)]),l("div",{class:Le(["navbar-menu",{"is-active":r.show_burger_menu}])},[XG,l("div",QG,[l("div",{class:Le(["navbar-item has-dropdown is-hoverable",{"is-active":o.show_settings_menu}]),onClick:t[2]||(t[2]=(...a)=>r.on_click_outside_settings&&r.on_click_outside_settings(...a))},[eW,l("div",tW,[P(i,{to:"/playlists"},{default:T(()=>[sW,nW]),_:1}),P(i,{to:"/music",exact:""},{default:T(()=>[rW,oW]),_:1}),P(i,{to:"/music/artists"},{default:T(()=>[iW]),_:1}),P(i,{to:"/music/albums"},{default:T(()=>[aW]),_:1}),P(i,{to:"/music/genres"},{default:T(()=>[lW]),_:1}),r.spotify_enabled?(x(),xe(i,{key:0,to:"/music/spotify"},{default:T(()=>[uW]),_:1})):Y("",!0),P(i,{to:"/podcasts"},{default:T(()=>[cW,dW]),_:1}),P(i,{to:"/audiobooks"},{default:T(()=>[fW,hW]),_:1}),P(i,{to:"/radio"},{default:T(()=>[mW,pW]),_:1}),P(i,{to:"/files"},{default:T(()=>[_W,gW]),_:1}),P(i,{to:"/search"},{default:T(()=>[vW,yW]),_:1}),bW,P(i,{to:"/settings/webinterface"},{default:T(()=>[wW]),_:1}),l("a",{class:"navbar-item",onClick:t[1]||(t[1]=pt(a=>r.open_update_dialog(),["stop","prevent"]))}," Update Library "),P(i,{to:"/about"},{default:T(()=>[kW]),_:1}),xW])],2)])],2),wt(l("div",{class:"is-overlay",style:{"z-index":"10",width:"100vw",height:"100vh"},onClick:t[3]||(t[3]=a=>o.show_settings_menu=!1)},null,512),[[Xr,o.show_settings_menu]])],4)}var EW=ge(jG,[["render",SW]]),Co={_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 CW={name:"NavbarItemOutput",components:{Slider:li},props:["output"],computed:{type_class(){return this.output.type.startsWith("AirPlay")?"mdi-airplay":this.output.type==="Chromecast"?"mdi-cast":this.output.type==="fifo"?"mdi-pipe":"mdi-server"},volume(){return this.output.selected?this.output.volume:0}},methods:{play_next:function(){G.player_next()},set_volume:function(e){G.player_output_volume(this.output.id,e)},set_enabled:function(){const e={selected:!this.output.selected};G.output_update(this.output.id,e)}}},$W={class:"navbar-item"},OW={class:"level is-mobile"},TW={class:"level-left fd-expanded"},AW={class:"level-item",style:{"flex-grow":"0"}},PW={class:"button is-white is-small"},DW=["title"],FW={class:"level-item fd-expanded"},IW={class:"fd-expanded"};function RW(e,t,s,n,o,r){const i=B("Slider");return x(),A("div",$W,[l("div",OW,[l("div",TW,[l("div",AW,[l("a",PW,[l("span",{class:Le(["icon fd-has-action",{"has-text-grey-light":!s.output.selected}]),onClick:t[0]||(t[0]=(...a)=>r.set_enabled&&r.set_enabled(...a))},[l("i",{class:Le(["mdi mdi-18px",r.type_class]),title:s.output.type},null,10,DW)],2)])]),l("div",FW,[l("div",IW,[l("p",{class:Le(["heading",{"has-text-grey-light":!s.output.selected}])},R(s.output.name),3),P(i,{modelValue:r.volume,"onUpdate:modelValue":t[1]||(t[1]=a=>r.volume=a),min:0,max:100,step:1,tooltips:!1,disabled:!s.output.selected,classes:{target:"slider"},onChange:r.set_volume},null,8,["modelValue","disabled","onChange"])])])])])])}var NW=ge(CW,[["render",RW]]);const MW={name:"PlayerButtonPlayPause",props:{icon_style:String,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}},methods:{toggle_play_pause:function(){if(this.disabled){this.show_disabled_message&&this.$store.dispatch("add_notification",{text:"Queue is empty",type:"info",topic:"connection",timeout:2e3});return}this.is_playing&&this.is_pause_allowed?G.player_pause():this.is_playing&&!this.is_pause_allowed?G.player_stop():G.player_play()}}},LW=["disabled"],jW={class:"icon"};function BW(e,t,s,n,o,r){return x(),A("a",{disabled:r.disabled,onClick:t[0]||(t[0]=(...i)=>r.toggle_play_pause&&r.toggle_play_pause(...i))},[l("span",jW,[l("i",{class:Le(["mdi",[s.icon_style,{"mdi-play":!r.is_playing,"mdi-pause":r.is_playing&&r.is_pause_allowed,"mdi-stop":r.is_playing&&!r.is_pause_allowed}]])},null,2)])],8,LW)}var UW=ge(MW,[["render",BW]]);const VW={name:"PlayerButtonNext",props:{icon_style:String},computed:{disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0}},methods:{play_next:function(){this.disabled||G.player_next()}}},HW=["disabled"],qW={class:"icon"};function zW(e,t,s,n,o,r){return x(),A("a",{disabled:r.disabled,onClick:t[0]||(t[0]=(...i)=>r.play_next&&r.play_next(...i))},[l("span",qW,[l("i",{class:Le(["mdi mdi-skip-forward",s.icon_style])},null,2)])],8,HW)}var GW=ge(VW,[["render",zW]]);const WW={name:"PlayerButtonPrevious",props:{icon_style:String},computed:{disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0}},methods:{play_previous:function(){this.disabled||G.player_previous()}}},KW=["disabled"],YW={class:"icon"};function ZW(e,t,s,n,o,r){return x(),A("a",{disabled:r.disabled,onClick:t[0]||(t[0]=(...i)=>r.play_previous&&r.play_previous(...i))},[l("span",YW,[l("i",{class:Le(["mdi mdi-skip-backward",s.icon_style])},null,2)])],8,KW)}var JW=ge(WW,[["render",ZW]]);const XW={name:"PlayerButtonShuffle",props:{icon_style:String},computed:{is_shuffle(){return this.$store.state.player.shuffle}},methods:{toggle_shuffle_mode:function(){G.player_shuffle(!this.is_shuffle)}}},QW={class:"icon"};function eK(e,t,s,n,o,r){return x(),A("a",{class:Le({"is-warning":r.is_shuffle}),onClick:t[0]||(t[0]=(...i)=>r.toggle_shuffle_mode&&r.toggle_shuffle_mode(...i))},[l("span",QW,[l("i",{class:Le(["mdi",[s.icon_style,{"mdi-shuffle":r.is_shuffle,"mdi-shuffle-disabled":!r.is_shuffle}]])},null,2)])],2)}var tK=ge(XW,[["render",eK]]);const sK={name:"PlayerButtonConsume",props:{icon_style:String},computed:{is_consume(){return this.$store.state.player.consume}},methods:{toggle_consume_mode:function(){G.player_consume(!this.is_consume)}}},nK={class:"icon"};function rK(e,t,s,n,o,r){return x(),A("a",{class:Le({"is-warning":r.is_consume}),onClick:t[0]||(t[0]=(...i)=>r.toggle_consume_mode&&r.toggle_consume_mode(...i))},[l("span",nK,[l("i",{class:Le(["mdi mdi-fire",s.icon_style])},null,2)])],2)}var oK=ge(sK,[["render",rK]]);const iK={name:"PlayerButtonRepeat",props:{icon_style:String},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}},methods:{toggle_repeat_mode:function(){this.is_repeat_all?G.player_repeat("single"):this.is_repeat_single?G.player_repeat("off"):G.player_repeat("all")}}},aK={class:"icon"};function lK(e,t,s,n,o,r){return x(),A("a",{class:Le({"is-warning":!r.is_repeat_off}),onClick:t[0]||(t[0]=(...i)=>r.toggle_repeat_mode&&r.toggle_repeat_mode(...i))},[l("span",aK,[l("i",{class:Le(["mdi",[s.icon_style,{"mdi-repeat":r.is_repeat_all,"mdi-repeat-once":r.is_repeat_single,"mdi-repeat-off":r.is_repeat_off}]])},null,2)])],2)}var uK=ge(iK,[["render",lK]]);const cK={name:"PlayerButtonSeekBack",props:["seek_ms","icon_style"],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:function(){this.disabled||G.player_seek(this.seek_ms*-1)}}},dK=["disabled"],fK={class:"icon"};function hK(e,t,s,n,o,r){return r.visible?(x(),A("a",{key:0,disabled:r.disabled,onClick:t[0]||(t[0]=(...i)=>r.seek&&r.seek(...i))},[l("span",fK,[l("i",{class:Le(["mdi mdi-rewind",s.icon_style])},null,2)])],8,dK)):Y("",!0)}var mK=ge(cK,[["render",hK]]);const pK={name:"PlayerButtonSeekForward",props:["seek_ms","icon_style"],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:function(){this.disabled||G.player_seek(this.seek_ms)}}},_K=["disabled"],gK={class:"icon"};function vK(e,t,s,n,o,r){return r.visible?(x(),A("a",{key:0,disabled:r.disabled,onClick:t[0]||(t[0]=(...i)=>r.seek&&r.seek(...i))},[l("span",gK,[l("i",{class:Le(["mdi mdi-fast-forward",s.icon_style])},null,2)])],8,_K)):Y("",!0)}var yK=ge(pK,[["render",vK]]);const bK={name:"NavbarBottom",components:{NavbarItemLink:$y,NavbarItemOutput:NW,Slider:li,PlayerButtonPlayPause:UW,PlayerButtonNext:GW,PlayerButtonPrevious:JW,PlayerButtonShuffle:tK,PlayerButtonConsume:oK,PlayerButtonRepeat:uK,PlayerButtonSeekForward:yK,PlayerButtonSeekBack:mK},data(){return{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(eo,e)}},show_burger_menu(){return this.$store.state.show_burger_menu},zindex(){return this.show_burger_menu?"z-index: 20":""},state(){return this.$store.state.player},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},set_volume:function(e){G.player_volume(e)},toggle_mute_volume:function(){this.player.volume>0?this.set_volume(0):this.set_volume(this.old_volume)},setupAudio:function(){const e=Co.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:"HTTP stream error: failed to load stream or stopped loading due to network problem",type:"danger"}),this.playing=!1,this.loading=!1})},closeAudio:function(){Co.stopAudio(),this.playing=!1},playChannel:function(){if(this.playing)return;const e="/stream.mp3";this.loading=!0,Co.playSource(e),Co.setVolume(this.stream_volume/100)},togglePlay:function(){if(!this.loading)return this.playing?this.closeAudio():this.playChannel()},set_stream_volume:function(e){this.stream_volume=e,Co.setVolume(this.stream_volume/100)}}},wK={class:"navbar-brand fd-expanded"},kK=l("span",{class:"icon"},[l("i",{class:"mdi mdi-24px mdi-playlist-play"})],-1),xK={class:"is-clipped"},SK={class:"is-size-7 fd-is-text-clipped"},EK=l("br",null,null,-1),CK={key:0},$K={class:"icon"},OK={class:"icon"},TK={class:"navbar-dropdown is-right is-boxed",style:{"margin-right":"6px","margin-bottom":"6px","border-radius":"6px"}},AK={class:"navbar-item"},PK={class:"level is-mobile"},DK={class:"level-left fd-expanded"},FK={class:"level-item",style:{"flex-grow":"0"}},IK={class:"icon"},RK={class:"level-item fd-expanded"},NK={class:"fd-expanded"},MK=l("p",{class:"heading"},"Volume",-1),LK=l("hr",{class:"fd-navbar-divider"},null,-1),jK=l("hr",{class:"fd-navbar-divider"},null,-1),BK={class:"navbar-item"},UK={class:"level is-mobile"},VK={class:"level-left fd-expanded"},HK={class:"level-item",style:{"flex-grow":"0"}},qK=l("i",{class:"mdi mdi-18px mdi-radio-tower"},null,-1),zK=[qK],GK={class:"level-item fd-expanded"},WK={class:"fd-expanded"},KK=$e(" HTTP stream "),YK=l("a",{href:"stream.mp3"},[l("span",{class:"is-lowercase"},"(stream.mp3)")],-1),ZK=[KK,YK],JK=l("hr",{class:"fd-navbar-divider"},null,-1),XK={class:"navbar-item"},QK={class:"level is-mobile fd-expanded"},eY={class:"level-item"},tY={class:"buttons has-addons"},sY=l("div",{class:"navbar-start"},null,-1),nY={class:"navbar-end"},rY={class:"navbar-item"},oY={class:"buttons is-centered"},iY=l("hr",{class:"fd-navbar-divider"},null,-1),aY={class:"navbar-item"},lY={class:"level is-mobile"},uY={class:"level-left fd-expanded"},cY={class:"level-item",style:{"flex-grow":"0"}},dY={class:"icon"},fY={class:"level-item fd-expanded"},hY={class:"fd-expanded"},mY=l("p",{class:"heading"},"Volume",-1),pY=l("hr",{class:"fd-navbar-divider"},null,-1),_Y={class:"navbar-item fd-has-margin-bottom"},gY={class:"level is-mobile"},vY={class:"level-left fd-expanded"},yY={class:"level-item",style:{"flex-grow":"0"}},bY=l("i",{class:"mdi mdi-18px mdi-radio-tower"},null,-1),wY=[bY],kY={class:"level-item fd-expanded"},xY={class:"fd-expanded"},SY=$e(" HTTP stream "),EY=l("a",{href:"stream.mp3"},[l("span",{class:"is-lowercase"},"(stream.mp3)")],-1),CY=[SY,EY];function $Y(e,t,s,n,o,r){const i=B("navbar-item-link"),a=B("router-link"),u=B("player-button-previous"),c=B("player-button-seek-back"),d=B("player-button-play-pause"),h=B("player-button-seek-forward"),f=B("player-button-next"),m=B("Slider"),p=B("navbar-item-output"),_=B("player-button-repeat"),g=B("player-button-shuffle"),y=B("player-button-consume");return x(),A("nav",{class:Le(["fd-bottom-navbar navbar is-white is-fixed-bottom",{"is-transparent":r.is_now_playing_page,"is-dark":!r.is_now_playing_page}]),style:Hn(r.zindex),role:"navigation","aria-label":"player controls"},[l("div",wK,[P(i,{to:"/",exact:""},{default:T(()=>[kK]),_:1}),r.is_now_playing_page?Y("",!0):(x(),xe(a,{key:0,to:"/now-playing",class:"navbar-item is-expanded is-clipped","active-class":"is-active",exact:""},{default:T(()=>[l("div",xK,[l("p",SK,[l("strong",null,R(r.now_playing.title),1),EK,$e(" "+R(r.now_playing.artist),1),r.now_playing.data_kind==="url"?(x(),A("span",CK," - "+R(r.now_playing.album),1)):Y("",!0)])])]),_:1})),r.is_now_playing_page?(x(),xe(u,{key:1,class:"navbar-item fd-margin-left-auto",icon_style:"mdi-24px"})):Y("",!0),r.is_now_playing_page?(x(),xe(c,{key:2,seek_ms:"10000",class:"navbar-item",icon_style:"mdi-24px"})):Y("",!0),P(d,{class:"navbar-item",icon_style:"mdi-36px",show_disabled_message:""}),r.is_now_playing_page?(x(),xe(h,{key:3,seek_ms:"30000",class:"navbar-item",icon_style:"mdi-24px"})):Y("",!0),r.is_now_playing_page?(x(),xe(f,{key:4,class:"navbar-item",icon_style:"mdi-24px"})):Y("",!0),l("a",{class:"navbar-item fd-margin-left-auto is-hidden-desktop",onClick:t[0]||(t[0]=b=>r.show_player_menu=!r.show_player_menu)},[l("span",$K,[l("i",{class:Le(["mdi mdi-18px",{"mdi-chevron-up":!r.show_player_menu,"mdi-chevron-down":r.show_player_menu}])},null,2)])]),l("div",{class:Le(["navbar-item has-dropdown has-dropdown-up fd-margin-left-auto is-hidden-touch",{"is-active":r.show_player_menu}])},[l("a",{class:"navbar-link is-arrowless",onClick:t[1]||(t[1]=b=>r.show_player_menu=!r.show_player_menu)},[l("span",OK,[l("i",{class:Le(["mdi mdi-18px",{"mdi-chevron-up":!r.show_player_menu,"mdi-chevron-down":r.show_player_menu}])},null,2)])]),l("div",TK,[l("div",AK,[l("div",PK,[l("div",DK,[l("div",FK,[l("a",{class:"button is-white is-small",onClick:t[2]||(t[2]=(...b)=>r.toggle_mute_volume&&r.toggle_mute_volume(...b))},[l("span",IK,[l("i",{class:Le(["mdi mdi-18px",{"mdi-volume-off":r.player.volume<=0,"mdi-volume-high":r.player.volume>0}])},null,2)])])]),l("div",RK,[l("div",NK,[MK,P(m,{modelValue:r.player.volume,"onUpdate:modelValue":t[3]||(t[3]=b=>r.player.volume=b),min:0,max:100,step:1,tooltips:!1,classes:{target:"slider"},onChange:r.set_volume},null,8,["modelValue","onChange"])])])])])]),LK,(x(!0),A(Ke,null,bt(r.outputs,b=>(x(),xe(p,{key:b.id,output:b},null,8,["output"]))),128)),jK,l("div",BK,[l("div",UK,[l("div",VK,[l("div",HK,[l("a",{class:Le(["button is-white is-small",{"is-loading":o.loading}])},[l("span",{class:Le(["icon fd-has-action",{"has-text-grey-light":!o.playing&&!o.loading,"is-loading":o.loading}]),onClick:t[4]||(t[4]=(...b)=>r.togglePlay&&r.togglePlay(...b))},zK,2)],2)]),l("div",GK,[l("div",WK,[l("p",{class:Le(["heading",{"has-text-grey-light":!o.playing}])},ZK,2),P(m,{modelValue:o.stream_volume,"onUpdate:modelValue":t[5]||(t[5]=b=>o.stream_volume=b),min:0,max:100,step:1,tooltips:!1,disabled:!o.playing,classes:{target:"slider"},onChange:r.set_stream_volume},null,8,["modelValue","disabled","onChange"])])])])])]),JK,l("div",XK,[l("div",QK,[l("div",eY,[l("div",tY,[P(_,{class:"button"}),P(g,{class:"button"}),P(y,{class:"button"})])])])])])],2)]),l("div",{class:Le(["navbar-menu is-hidden-desktop",{"is-active":r.show_player_menu}])},[sY,l("div",nY,[l("div",rY,[l("div",oY,[P(_,{class:"button",icon_style:"mdi-18px"}),P(g,{class:"button",icon_style:"mdi-18px"}),P(y,{class:"button",icon_style:"mdi-18px"})])]),iY,l("div",aY,[l("div",lY,[l("div",uY,[l("div",cY,[l("a",{class:"button is-white is-small",onClick:t[6]||(t[6]=(...b)=>r.toggle_mute_volume&&r.toggle_mute_volume(...b))},[l("span",dY,[l("i",{class:Le(["mdi mdi-18px",{"mdi-volume-off":r.player.volume<=0,"mdi-volume-high":r.player.volume>0}])},null,2)])])]),l("div",fY,[l("div",hY,[mY,P(m,{modelValue:r.player.volume,"onUpdate:modelValue":t[7]||(t[7]=b=>r.player.volume=b),min:0,max:100,step:1,tooltips:!1,classes:{target:"slider"},onChange:r.set_volume},null,8,["modelValue","onChange"])])])])])]),(x(!0),A(Ke,null,bt(r.outputs,b=>(x(),xe(p,{key:b.id,output:b},null,8,["output"]))),128)),pY,l("div",_Y,[l("div",gY,[l("div",vY,[l("div",yY,[l("a",{class:Le(["button is-white is-small",{"is-loading":o.loading}])},[l("span",{class:Le(["icon fd-has-action",{"has-text-grey-light":!o.playing&&!o.loading,"is-loading":o.loading}]),onClick:t[8]||(t[8]=(...b)=>r.togglePlay&&r.togglePlay(...b))},wY,2)],2)]),l("div",kY,[l("div",xY,[l("p",{class:Le(["heading",{"has-text-grey-light":!o.playing}])},CY,2),P(m,{modelValue:o.stream_volume,"onUpdate:modelValue":t[9]||(t[9]=b=>o.stream_volume=b),min:0,max:100,step:1,tooltips:!1,disabled:!o.playing,classes:{target:"slider"},onChange:r.set_stream_volume},null,8,["modelValue","disabled","onChange"])])])])])])])],2)],6)}var OY=ge(bK,[["render",$Y]]);const TY={name:"NotificationList",components:{},data(){return{showNav:!1}},computed:{notifications(){return this.$store.state.notifications.list}},methods:{remove:function(e){this.$store.commit(lc,e)}}},AY={key:0,class:"fd-notifications"},PY={class:"columns is-centered"},DY={class:"column is-half"},FY=["onClick"];function IY(e,t,s,n,o,r){return r.notifications.length>0?(x(),A("section",AY,[l("div",PY,[l("div",DY,[(x(!0),A(Ke,null,bt(r.notifications,i=>(x(),A("div",{key:i.id,class:Le(["notification has-shadow",["notification",i.type?`is-${i.type}`:""]])},[l("button",{class:"delete",onClick:a=>r.remove(i)},null,8,FY),$e(" "+R(i.text),1)],2))),128))])])])):Y("",!0)}var RY=ge(TY,[["render",IY]]);const NY={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(){G.pairing_kickoff(this.pairing_req).then(()=>{this.pairing_req.pin=""})}}},MY={key:0,class:"modal is-active"},LY={class:"modal-content fd-modal-card"},jY={class:"card"},BY={class:"card-content"},UY=l("p",{class:"title is-4"},"Remote pairing request",-1),VY={class:"label"},HY={class:"field"},qY={class:"control"},zY={class:"card-footer"},GY=l("span",{class:"icon"},[l("i",{class:"mdi mdi-cancel"})],-1),WY=l("span",{class:"is-size-7"},"Cancel",-1),KY=[GY,WY],YY=l("span",{class:"icon"},[l("i",{class:"mdi mdi-cellphone-iphone"})],-1),ZY=l("span",{class:"is-size-7"},"Pair Remote",-1),JY=[YY,ZY];function XY(e,t,s,n,o,r){return x(),A("div",null,[P(Ht,{name:"fade"},{default:T(()=>[s.show?(x(),A("div",MY,[l("div",{class:"modal-background",onClick:t[0]||(t[0]=i=>e.$emit("close"))}),l("div",LY,[l("div",jY,[l("div",BY,[UY,l("form",{onSubmit:t[2]||(t[2]=pt((...i)=>r.kickoff_pairing&&r.kickoff_pairing(...i),["prevent"]))},[l("label",VY,R(r.pairing.remote),1),l("div",HY,[l("div",qY,[wt(l("input",{ref:"pin_field","onUpdate:modelValue":t[1]||(t[1]=i=>o.pairing_req.pin=i),class:"input",type:"text",placeholder:"Enter pairing code"},null,512),[[es,o.pairing_req.pin]])])])],32)]),l("footer",zY,[l("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=i=>e.$emit("close"))},KY),l("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...i)=>r.kickoff_pairing&&r.kickoff_pairing(...i))},JY)])])]),l("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=i=>e.$emit("close"))})])):Y("",!0)]),_:1})])}var QY=ge(NY,[["render",XY]]);const eZ={name:"ModalDialogUpdate",components:{ModalDialog:jd},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(kd,e)}}},methods:{update_library(){this.rescan_metadata?G.library_rescan(this.update_dialog_scan_kind):G.library_update(this.update_dialog_scan_kind)},close(){this.update_dialog_scan_kind="",this.$emit("close")}}},tZ={key:0},sZ=l("p",{class:"mb-3"},"Scan for new, deleted and modified files",-1),nZ={key:0,class:"field"},rZ={class:"control"},oZ={class:"select is-small"},iZ=l("option",{value:""},"Update everything",-1),aZ=l("option",{value:"files"},"Only update local library",-1),lZ={key:0,value:"spotify"},uZ={key:1,value:"rss"},cZ={class:"field"},dZ={class:"checkbox is-size-7 is-small"},fZ=$e(" Rescan metadata for unmodified files "),hZ={key:1},mZ=l("p",{class:"mb-3"},"Library update in progress ...",-1),pZ=[mZ];function _Z(e,t,s,n,o,r){const i=B("modal-dialog");return x(),xe(i,{show:s.show,title:"Update library",ok_action:r.library.updating?"":"Rescan",close_action:"Close",onOk:r.update_library,onClose:t[2]||(t[2]=a=>r.close())},{"modal-content":T(()=>[r.library.updating?(x(),A("div",hZ,pZ)):(x(),A("div",tZ,[sZ,r.spotify_enabled||r.rss.tracks>0?(x(),A("div",nZ,[l("div",rZ,[l("div",oZ,[wt(l("select",{"onUpdate:modelValue":t[0]||(t[0]=a=>r.update_dialog_scan_kind=a)},[iZ,aZ,r.spotify_enabled?(x(),A("option",lZ," Only update Spotify ")):Y("",!0),r.rss.tracks>0?(x(),A("option",uZ," Only update RSS feeds ")):Y("",!0)],512),[[hd,r.update_dialog_scan_kind]])])])])):Y("",!0),l("div",cZ,[l("label",dZ,[wt(l("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>o.rescan_metadata=a),type:"checkbox"},null,512),[[pn,o.rescan_metadata]]),fZ])])]))]),_:1},8,["show","ok_action","onOk"])}var gZ=ge(eZ,[["render",_Z]]),Oy={exports:{}};(function(e){(function(t,s){e.exports?e.exports=s():t.ReconnectingWebSocket=s()})(ts,function(){if(!("WebSocket"in window))return;function t(s,n,o){var r={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3,maxReconnectAttempts:null};o||(o={});for(var i in r)typeof o[i]!="undefined"?this[i]=o[i]:this[i]=r[i];this.url=s,this.reconnectAttempts=0,this.readyState=WebSocket.CONNECTING,this.protocol=null;var a=this,u,c=!1,d=!1,h=document.createElement("div");h.addEventListener("open",function(m){a.onopen(m)}),h.addEventListener("close",function(m){a.onclose(m)}),h.addEventListener("connecting",function(m){a.onconnecting(m)}),h.addEventListener("message",function(m){a.onmessage(m)}),h.addEventListener("error",function(m){a.onerror(m)}),this.addEventListener=h.addEventListener.bind(h),this.removeEventListener=h.removeEventListener.bind(h),this.dispatchEvent=h.dispatchEvent.bind(h);function f(m,p){var _=document.createEvent("CustomEvent");return _.initCustomEvent(m,!1,!1,p),_}this.open=function(m){if(u=new WebSocket(a.url,n||[]),m){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else h.dispatchEvent(f("connecting")),this.reconnectAttempts=0;(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",a.url);var p=u,_=setTimeout(function(){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",a.url),d=!0,p.close(),d=!1},a.timeoutInterval);u.onopen=function(g){clearTimeout(_),(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",a.url),a.protocol=u.protocol,a.readyState=WebSocket.OPEN,a.reconnectAttempts=0;var y=f("open");y.isReconnect=m,m=!1,h.dispatchEvent(y)},u.onclose=function(g){if(clearTimeout(b),u=null,c)a.readyState=WebSocket.CLOSED,h.dispatchEvent(f("close"));else{a.readyState=WebSocket.CONNECTING;var y=f("connecting");y.code=g.code,y.reason=g.reason,y.wasClean=g.wasClean,h.dispatchEvent(y),!m&&!d&&((a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",a.url),h.dispatchEvent(f("close")));var b=a.reconnectInterval*Math.pow(a.reconnectDecay,a.reconnectAttempts);setTimeout(function(){a.reconnectAttempts++,a.open(!0)},b>a.maxReconnectInterval?a.maxReconnectInterval:b)}},u.onmessage=function(g){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",a.url,g.data);var y=f("message");y.data=g.data,h.dispatchEvent(y)},u.onerror=function(g){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",a.url,g),h.dispatchEvent(f("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(m){if(u)return(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",a.url,m),u.send(m);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(m,p){typeof m=="undefined"&&(m=1e3),c=!0,u&&u.close(m,p)},this.refresh=function(){u&&u.close()}}return t.prototype.onopen=function(s){},t.prototype.onclose=function(s){},t.prototype.onconnecting=function(s){},t.prototype.onmessage=function(s){},t.prototype.onerror=function(s){},t.debugAll=!1,t.CONNECTING=WebSocket.CONNECTING,t.OPEN=WebSocket.OPEN,t.CLOSING=WebSocket.CLOSING,t.CLOSED=WebSocket.CLOSED,t})})(Oy);var vZ=Oy.exports;const yZ={name:"App",components:{NavbarTop:EW,NavbarBottom:OY,NotificationList:RY,ModalDialogRemotePairing:QY,ModalDialogUpdate:gZ},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(Qr,e)}},show_player_menu:{get(){return this.$store.state.show_player_menu},set(e){this.$store.commit(eo,e)}},show_update_dialog:{get(){return this.$store.state.show_update_dialog},set(e){this.$store.commit(vi,e)}}},watch:{show_burger_menu(){this.update_is_clipped()},show_player_menu(){this.update_is_clipped()}},created:function(){this.connect(),this.$Progress.start(),this.$router.beforeEach((e,t,s)=>{if(e.meta.show_progress){if(e.meta.progress!==void 0){const n=e.meta.progress;this.$Progress.parseMeta(n)}this.$Progress.start()}s()}),this.$router.afterEach((e,t)=>{e.meta.show_progress&&this.$Progress.finish()})},methods:{connect:function(){G.config().then(({data:e})=>{this.$store.commit(C_,e),this.$store.commit(Al,e.hide_singles),document.title=e.library_name,this.open_ws(),this.$Progress.finish()}).catch(()=>{this.$store.dispatch("add_notification",{text:"Failed to connect to OwnTone server",type:"danger",topic:"connection"})})},open_ws:function(){if(this.$store.state.config.websocket_port<=0){this.$store.dispatch("add_notification",{text:"Missing websocket port",type:"danger"});return}const e=this;let t="ws://";window.location.protocol==="https:"&&(t="wss://");let s=t+window.location.hostname+":"+e.$store.state.config.websocket_port;const n=new vZ(s,"notify",{reconnectInterval:1e3,maxReconnectInterval:2e3});n.onopen=function(){e.reconnect_attempts=0,n.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()},n.onclose=function(){};var o=!1;function r(){o||(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(),o=!0,setTimeout(function(){o=!1},500))}window.addEventListener("focus",r),document.addEventListener("visibilitychange",function(){document.visibilityState==="visible"&&r()}),n.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:function(){G.library_stats().then(({data:e})=>{this.$store.commit(O_,e)}),G.library_count("media_kind is audiobook").then(({data:e})=>{this.$store.commit(T_,e)}),G.library_count("media_kind is podcast").then(({data:e})=>{this.$store.commit(A_,e)}),G.library_count("scan_kind is rss").then(({data:e})=>{this.$store.commit(P_,e)})},update_outputs:function(){G.outputs().then(({data:e})=>{this.$store.commit(D_,e.outputs)})},update_player_status:function(){G.player_status().then(({data:e})=>{this.$store.commit(gd,e)})},update_queue:function(){G.queue().then(({data:e})=>{this.$store.commit(F_,e)})},update_settings:function(){G.settings().then(({data:e})=>{this.$store.commit($_,e)})},update_lastfm:function(){G.lastfm().then(({data:e})=>{this.$store.commit(I_,e)})},update_spotify:function(){G.spotify().then(({data:e})=>{this.$store.commit(R_,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:function(){G.pairing().then(({data:e})=>{this.$store.commit(N_,e),this.pairing_active=e.active})},update_is_clipped:function(){this.show_burger_menu||this.show_player_menu?document.querySelector("html").classList.add("is-clipped"):document.querySelector("html").classList.remove("is-clipped")}},template:"<App/>"},bZ={id:"app"};function wZ(e,t,s,n,o,r){const i=B("navbar-top"),a=B("vue-progress-bar"),u=B("router-view"),c=B("modal-dialog-remote-pairing"),d=B("modal-dialog-update"),h=B("notification-list"),f=B("navbar-bottom");return x(),A("div",bZ,[P(i),P(a,{class:"fd-progress-bar"}),P(u,null,{default:T(({Component:m})=>[(x(),xe(jp(m),{class:"fd-page"}))]),_:1}),P(c,{show:o.pairing_active,onClose:t[0]||(t[0]=m=>o.pairing_active=!1)},null,8,["show"]),P(d,{show:r.show_update_dialog,onClose:t[1]||(t[1]=m=>r.show_update_dialog=!1)},null,8,["show"]),wt(P(h,null,null,512),[[Xr,!r.show_burger_menu]]),P(f),wt(l("div",{class:"fd-overlay-fullscreen",onClick:t[2]||(t[2]=m=>r.show_burger_menu=r.show_player_menu=!1)},null,512),[[Xr,r.show_burger_menu||r.show_player_menu]])])}var kZ=ge(yZ,[["render",wZ]]);const Ty=m_(kZ).use(it).use(xv).use(yq,{color:"hsl(204, 86%, 53%)",failedColor:"red",height:"1px"}).use(wq).use(Fq,{log:!1}).use(Iq);Ty.config.globalProperties.$filters=RG;Ty.mount("#app");
|