From a7ca88574ca62054e22572e86d4892b945bc3c30 Mon Sep 17 00:00:00 2001 From: Alain Nussbaumer Date: Sun, 2 Jul 2023 19:31:05 +0200 Subject: [PATCH] [web] Fix album not being displayed on the "Now Playing" page Whenever available, the album information is now displayed on the "Now Playing Page". --- htdocs/assets/index.js | 4 ++-- web-src/src/components/NavbarBottom.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/assets/index.js b/htdocs/assets/index.js index 48472391..f73cae09 100644 --- a/htdocs/assets/index.js +++ b/htdocs/assets/index.js @@ -41,8 +41,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var mS="1.14.0";function br(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var kr=br(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Pi=br(/Edge/i),pp=br(/firefox/i),Xo=br(/safari/i)&&!br(/chrome/i)&&!br(/android/i),xy=br(/iP(ad|od|hone)/i),fS=br(/chrome/i)&&br(/android/i),Ey={capture:!1,passive:!1};function Xe(e,t,n){e.addEventListener(t,n,!kr&&Ey)}function Ye(e,t,n){e.removeEventListener(t,n,!kr&&Ey)}function ml(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 pS(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Rn(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&ml(e,t):ml(e,t))||r&&e===n)return e;if(e===n)break}while(e=pS(e))}return null}var hp=/\s+/g;function zt(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(hp," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(hp," ")}}function Se(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function fs(e,t){var n="";if(typeof e=="string")n=e;else do{var r=Se(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var s=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return s&&new s(n)}function Sy(e,t,n){if(e){var r=e.getElementsByTagName(t),s=0,o=r.length;if(n)for(;s=o:i=s<=o,!i)return r;if(r===or())break;r=Br(r,!1)}return!1}function ro(e,t,n,r){for(var s=0,o=0,i=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},s=r.evt,o=iS(r,CS);Ii.pluginEvent.bind(Re)(t,n,lr({dragEl:me,parentEl:wt,ghostEl:qe,rootEl:yt,nextEl:ss,lastDownEl:Za,cloneEl:kt,cloneHidden:Nr,dragStarted:Lo,putSortable:Nt,activeSortable:Re.active,originalEvent:s,oldIndex:Bs,oldDraggableIndex:ei,newIndex:cn,newDraggableIndex:Lr,hideGhostForTarget:Py,unhideGhostForTarget:Iy,cloneNowHidden:function(){Nr=!0},cloneNowShown:function(){Nr=!1},dispatchSortableEvent:function(a){Gt({sortable:n,name:a,originalEvent:s})}},o))};function Gt(e){Ro(lr({putSortable:Nt,cloneEl:kt,targetEl:me,rootEl:yt,oldIndex:Bs,oldDraggableIndex:ei,newIndex:cn,newDraggableIndex:Lr},e))}var me,wt,qe,yt,ss,Za,kt,Nr,Bs,cn,ei,Lr,ea,Nt,Rs=!1,fl=!1,pl=[],ts,Dn,Tu,Ou,vp,bp,Lo,$s,ti,ni=!1,ta=!1,Ya,Bt,Du=[],Fc=!1,hl=[],Ql=typeof document<"u",na=xy,Cp=Pi||kr?"cssFloat":"float",zS=Ql&&!fS&&!xy&&"draggable"in document.createElement("div"),Ty=function(){if(Ql){if(kr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Oy=function(t,n){var r=Se(t),s=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=ro(t,0,n),i=ro(t,1,n),a=o&&Se(o),l=i&&Se(i),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+vt(o).width,d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+vt(i).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var f=a.float==="left"?"left":"right";return i&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=s&&r[Cp]==="none"||i&&r[Cp]==="none"&&c+d>s)?"vertical":"horizontal"},wS=function(t,n,r){var s=r?t.left:t.top,o=r?t.right:t.bottom,i=r?t.width:t.height,a=r?n.left:n.top,l=r?n.right:n.bottom,c=r?n.width:n.height;return s===a||o===l||s+i/2===a+c/2},kS=function(t,n){var r;return pl.some(function(s){var o=s[jt].options.emptyInsertThreshold;if(!(!o||Xd(s))){var i=vt(s),a=t>=i.left-o&&t<=i.right+o,l=n>=i.top-o&&n<=i.bottom+o;if(a&&l)return r=s}}),r},Dy=function(t){function n(o,i){return function(a,l,c,d){var f=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(o==null&&(i||f))return!0;if(o==null||o===!1)return!1;if(i&&o==="clone")return o;if(typeof o=="function")return n(o(a,l,c,d),i)(a,l,c,d);var m=(i?a:l).options.group.name;return o===!0||typeof o=="string"&&o===m||o.join&&o.indexOf(m)>-1}}var r={},s=t.group;(!s||Ka(s)!="object")&&(s={name:s}),r.name=s.name,r.checkPull=n(s.pull,!0),r.checkPut=n(s.put),r.revertClone=s.revertClone,t.group=r},Py=function(){!Ty&&qe&&Se(qe,"display","none")},Iy=function(){!Ty&&qe&&Se(qe,"display","")};Ql&&document.addEventListener("click",function(e){if(fl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),fl=!1,!1},!0);var ns=function(t){if(me){t=t.touches?t.touches[0]:t;var n=kS(t.clientX,t.clientY);if(n){var r={};for(var s in t)t.hasOwnProperty(s)&&(r[s]=t[s]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[jt]._onDragOver(r)}}},xS=function(t){me&&me.parentNode[jt]._isOutsideThisEl(t.target)};function Re(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=Tn({},t),e[jt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Oy(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:Re.supportPointer!==!1&&"PointerEvent"in window&&!Xo,emptyInsertThreshold:5};Ii.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);Dy(t);for(var s in this)s.charAt(0)==="_"&&typeof this[s]=="function"&&(this[s]=this[s].bind(this));this.nativeDraggable=t.forceFallback?!1:zS,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Xe(e,"pointerdown",this._onTapStart):(Xe(e,"mousedown",this._onTapStart),Xe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Xe(e,"dragover",this),Xe(e,"dragenter",this)),pl.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Tn(this,yS())}Re.prototype={constructor:Re,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&($s=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,me):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,s=this.options,o=s.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,d=s.filter;if(PS(r),!me&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||s.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Xo&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Rn(l,s.draggable,r,!1),!(l&&l.animated)&&Za!==l)){if(Bs=Et(l),ei=Et(l,s.draggable),typeof d=="function"){if(d.call(this,t,l,this)){Gt({sortable:n,rootEl:c,name:"filter",targetEl:l,toEl:r,fromEl:r}),en("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(f){if(f=Rn(c,f.trim(),r,!1),f)return Gt({sortable:n,rootEl:f,name:"filter",targetEl:l,fromEl:r,toEl:r}),en("filter",n,{evt:t}),!0}),d)){o&&t.cancelable&&t.preventDefault();return}s.handle&&!Rn(c,s.handle,r,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,n,r){var s=this,o=s.el,i=s.options,a=o.ownerDocument,l;if(r&&!me&&r.parentNode===o){var c=vt(r);if(yt=o,me=r,wt=me.parentNode,ss=me.nextSibling,Za=r,ea=i.group,Re.dragged=me,ts={target:me,clientX:(n||t).clientX,clientY:(n||t).clientY},vp=ts.clientX-c.left,bp=ts.clientY-c.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,me.style["will-change"]="all",l=function(){if(en("delayEnded",s,{evt:t}),Re.eventCanceled){s._onDrop();return}s._disableDelayedDragEvents(),!pp&&s.nativeDraggable&&(me.draggable=!0),s._triggerDragStart(t,n),Gt({sortable:s,name:"choose",originalEvent:t}),zt(me,i.chosenClass,!0)},i.ignore.split(",").forEach(function(d){Sy(me,d.trim(),Pu)}),Xe(a,"dragover",ns),Xe(a,"mousemove",ns),Xe(a,"touchmove",ns),Xe(a,"mouseup",s._onDrop),Xe(a,"touchend",s._onDrop),Xe(a,"touchcancel",s._onDrop),pp&&this.nativeDraggable&&(this.options.touchStartThreshold=4,me.draggable=!0),en("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Pi||kr))){if(Re.eventCanceled){this._onDrop();return}Xe(a,"mouseup",s._disableDelayedDrag),Xe(a,"touchend",s._disableDelayedDrag),Xe(a,"touchcancel",s._disableDelayedDrag),Xe(a,"mousemove",s._delayedDragTouchMoveHandler),Xe(a,"touchmove",s._delayedDragTouchMoveHandler),i.supportPointer&&Xe(a,"pointermove",s._delayedDragTouchMoveHandler),s._dragStartTimer=setTimeout(l,i.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){me&&Pu(me),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Ye(t,"mouseup",this._disableDelayedDrag),Ye(t,"touchend",this._disableDelayedDrag),Ye(t,"touchcancel",this._disableDelayedDrag),Ye(t,"mousemove",this._delayedDragTouchMoveHandler),Ye(t,"touchmove",this._delayedDragTouchMoveHandler),Ye(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?Xe(document,"pointermove",this._onTouchMove):n?Xe(document,"touchmove",this._onTouchMove):Xe(document,"mousemove",this._onTouchMove):(Xe(me,"dragend",this),Xe(yt,"dragstart",this._onDragStart));try{document.selection?Ja(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Rs=!1,yt&&me){en("dragStarted",this,{evt:n}),this.nativeDraggable&&Xe(document,"dragover",xS);var r=this.options;!t&&zt(me,r.dragClass,!1),zt(me,r.ghostClass,!0),Re.active=this,t&&this._appendGhost(),Gt({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Dn){this._lastX=Dn.clientX,this._lastY=Dn.clientY,Py();for(var t=document.elementFromPoint(Dn.clientX,Dn.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Dn.clientX,Dn.clientY),t!==n);)n=t;if(me.parentNode[jt]._isOutsideThisEl(t),n)do{if(n[jt]){var r=void 0;if(r=n[jt]._onDragOver({clientX:Dn.clientX,clientY:Dn.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Iy()}},_onTouchMove:function(t){if(ts){var n=this.options,r=n.fallbackTolerance,s=n.fallbackOffset,o=t.touches?t.touches[0]:t,i=qe&&fs(qe,!0),a=qe&&i&&i.a,l=qe&&i&&i.d,c=na&&Bt&&gp(Bt),d=(o.clientX-ts.clientX+s.x)/(a||1)+(c?c[0]-Du[0]:0)/(a||1),f=(o.clientY-ts.clientY+s.y)/(l||1)+(c?c[1]-Du[1]:0)/(l||1);if(!Re.active&&!Rs){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))=0&&(Gt({rootEl:wt,name:"add",toEl:wt,fromEl:yt,originalEvent:t}),Gt({sortable:this,name:"remove",toEl:wt,originalEvent:t}),Gt({rootEl:wt,name:"sort",toEl:wt,fromEl:yt,originalEvent:t}),Gt({sortable:this,name:"sort",toEl:wt,originalEvent:t})),Nt&&Nt.save()):cn!==Bs&&cn>=0&&(Gt({sortable:this,name:"update",toEl:wt,originalEvent:t}),Gt({sortable:this,name:"sort",toEl:wt,originalEvent:t})),Re.active&&((cn==null||cn===-1)&&(cn=Bs,Lr=ei),Gt({sortable:this,name:"end",toEl:wt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){en("nulling",this),yt=me=wt=qe=ss=kt=Za=Nr=ts=Dn=Lo=cn=Lr=Bs=ei=$s=ti=Nt=ea=Re.dragged=Re.ghost=Re.clone=Re.active=null,hl.forEach(function(t){t.checked=!0}),hl.length=Tu=Ou=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":me&&(this._onDragOver(t),ES(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,s=0,o=r.length,i=this.options;sr.right+s||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+s}function TS(e,t,n,r,s,o,i,a){var l=r?e.clientY:e.clientX,c=r?n.height:n.width,d=r?n.top:n.left,f=r?n.bottom:n.right,m=!1;if(!i){if(a&&Yad+c*o/2:lf-Ya)return-ti}else if(l>d+c*(1-s)/2&&lf-c*o/2)?l>d+c/2?1:-1:0}function OS(e){return Et(me)1&&(He.forEach(function(a){o.addAnimationState({target:a,rect:tn?vt(a):i}),$u(a),a.fromRect=i,r.removeAnimationState(a)}),tn=!1,MS(!this.options.removeCloneOnHide,s))},dragOverCompleted:function(n){var r=n.sortable,s=n.isOwner,o=n.insertion,i=n.activeSortable,a=n.parentEl,l=n.putSortable,c=this.options;if(o){if(s&&i._hideClone(),xo=!1,c.animation&&He.length>1&&(tn||!s&&!i.options.sort&&!l)){var d=vt(ht,!1,!0,!0);He.forEach(function(m){m!==ht&&(yp(m,d),a.appendChild(m))}),tn=!0}if(!s)if(tn||oa(),He.length>1){var f=sa;i._showClone(r),i.options.animation&&!sa&&f&&un.forEach(function(m){i.addAnimationState({target:m,rect:Eo}),m.fromRect=Eo,m.thisAnimationDuration=null})}else i._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,s=n.isOwner,o=n.activeSortable;if(He.forEach(function(a){a.thisAnimationDuration=null}),o.options.animation&&!s&&o.multiDrag.isMultiDrag){Eo=Tn({},r);var i=fs(ht,!0);Eo.top-=i.f,Eo.left-=i.e}},dragOverAnimationComplete:function(){tn&&(tn=!1,oa())},drop:function(n){var r=n.originalEvent,s=n.rootEl,o=n.parentEl,i=n.sortable,a=n.dispatchSortableEvent,l=n.oldIndex,c=n.putSortable,d=c||this.sortable;if(r){var f=this.options,m=o.children;if(!As)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),zt(ht,f.selectedClass,!~He.indexOf(ht)),~He.indexOf(ht))He.splice(He.indexOf(ht),1),ko=null,Ro({sortable:i,rootEl:s,name:"deselect",targetEl:ht,originalEvt:r});else{if(He.push(ht),Ro({sortable:i,rootEl:s,name:"select",targetEl:ht,originalEvt:r}),r.shiftKey&&ko&&i.el.contains(ko)){var p=Et(ko),h=Et(ht);if(~p&&~h&&p!==h){var _,C;for(h>p?(C=p,_=h):(C=h,_=p+1);C<_;C++)~He.indexOf(m[C])||(zt(m[C],f.selectedClass,!0),He.push(m[C]),Ro({sortable:i,rootEl:s,name:"select",targetEl:m[C],originalEvt:r}))}}else ko=ht;Pn=d}if(As&&this.isMultiDrag){if(tn=!1,(o[jt].options.sort||o!==s)&&He.length>1){var b=vt(ht),y=Et(ht,":not(."+this.options.selectedClass+")");if(!xo&&f.animation&&(ht.thisAnimationDuration=null),d.captureAnimationState(),!xo&&(f.animation&&(ht.fromRect=b,He.forEach(function(z){if(z.thisAnimationDuration=null,z!==ht){var x=tn?vt(z):b;z.fromRect=x,d.addAnimationState({target:z,rect:x})}})),oa(),He.forEach(function(z){m[y]?o.insertBefore(z,m[y]):o.appendChild(z),y++}),l===Et(ht))){var k=!1;He.forEach(function(z){if(z.sortableIndex!==Et(z)){k=!0;return}}),k&&a("update")}He.forEach(function(z){$u(z)}),d.animateAll()}Pn=d}(s===o||c&&c.lastPutMode!=="clone")&&un.forEach(function(z){z.parentNode&&z.parentNode.removeChild(z)})}},nullingGlobal:function(){this.isMultiDrag=As=!1,un.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Ye(document,"pointerup",this._deselectMultiDrag),Ye(document,"mouseup",this._deselectMultiDrag),Ye(document,"touchend",this._deselectMultiDrag),Ye(document,"keydown",this._checkKeyDown),Ye(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof As<"u"&&As)&&Pn===this.sortable&&!(n&&Rn(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;He.length;){var r=He[0];zt(r,this.options.selectedClass,!1),He.shift(),Ro({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Tn(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[jt];!r||!r.options.multiDrag||~He.indexOf(n)||(Pn&&Pn!==r&&(Pn.multiDrag._deselectMultiDrag(),Pn=r),zt(n,r.options.selectedClass,!0),He.push(n))},deselect:function(n){var r=n.parentNode[jt],s=He.indexOf(n);!r||!r.options.multiDrag||!~s||(zt(n,r.options.selectedClass,!1),He.splice(s,1))}},eventProperties:function(){var n=this,r=[],s=[];return He.forEach(function(o){r.push({multiDragElement:o,index:o.sortableIndex});var i;tn&&o!==ht?i=-1:tn?i=Et(o,":not(."+n.options.selectedClass+")"):i=Et(o),s.push({multiDragElement:o,index:i})}),{items:aS(He),clones:[].concat(un),oldIndicies:r,newIndicies:s}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function MS(e,t){He.forEach(function(n,r){var s=t.children[n.sortableIndex+(e?Number(r):0)];s?t.insertBefore(n,s):t.appendChild(n)})}function wp(e,t){un.forEach(function(n,r){var s=t.children[n.sortableIndex+(e?Number(r):0)];s?t.insertBefore(n,s):t.appendChild(n)})}function oa(){He.forEach(function(e){e!==ht&&e.parentNode&&e.parentNode.removeChild(e)})}Re.mount(new IS);Re.mount(tm,em);const NS=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:LS,Sortable:Re,Swap:FS,default:Re},Symbol.toStringTag,{value:"Module"})),VS=by(NS);(function(e,t){(function(r,s){e.exports=s(ky,VS)})(typeof self<"u"?self:Yt,function(n,r){return function(s){var o={};function i(a){if(o[a])return o[a].exports;var l=o[a]={i:a,l:!1,exports:{}};return s[a].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=s,i.c=o,i.d=function(a,l,c){i.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:c})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,l){if(l&1&&(a=i(a)),l&8||l&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}),l&2&&typeof a!="string")for(var d in a)i.d(c,d,function(f){return a[f]}.bind(null,d));return c},i.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(l,"a",l),l},i.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},i.p="",i(i.s="fb15")}({"00ee":function(s,o,i){var a=i("b622"),l=a("toStringTag"),c={};c[l]="z",s.exports=String(c)==="[object z]"},"0366":function(s,o,i){var a=i("1c0b");s.exports=function(l,c,d){if(a(l),c===void 0)return l;switch(d){case 0:return function(){return l.call(c)};case 1:return function(f){return l.call(c,f)};case 2:return function(f,m){return l.call(c,f,m)};case 3:return function(f,m,p){return l.call(c,f,m,p)}}return function(){return l.apply(c,arguments)}}},"057f":function(s,o,i){var a=i("fc6a"),l=i("241c").f,c={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(m){try{return l(m)}catch{return d.slice()}};s.exports.f=function(p){return d&&c.call(p)=="[object Window]"?f(p):l(a(p))}},"06cf":function(s,o,i){var a=i("83ab"),l=i("d1e7"),c=i("5c6c"),d=i("fc6a"),f=i("c04e"),m=i("5135"),p=i("0cfb"),h=Object.getOwnPropertyDescriptor;o.f=a?h:function(C,b){if(C=d(C),b=f(b,!0),p)try{return h(C,b)}catch{}if(m(C,b))return c(!l.f.call(C,b),C[b])}},"0cfb":function(s,o,i){var a=i("83ab"),l=i("d039"),c=i("cc12");s.exports=!a&&!l(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(s,o,i){var a=i("23e7"),l=i("d58f").left,c=i("a640"),d=i("ae40"),f=c("reduce"),m=d("reduce",{1:0});a({target:"Array",proto:!0,forced:!f||!m},{reduce:function(h){return l(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(s,o,i){var a=i("c6b6"),l=i("9263");s.exports=function(c,d){var f=c.exec;if(typeof f=="function"){var m=f.call(c,d);if(typeof m!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return m}if(a(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(c,d)}},"159b":function(s,o,i){var a=i("da84"),l=i("fdbc"),c=i("17c2"),d=i("9112");for(var f in l){var m=a[f],p=m&&m.prototype;if(p&&p.forEach!==c)try{d(p,"forEach",c)}catch{p.forEach=c}}},"17c2":function(s,o,i){var a=i("b727").forEach,l=i("a640"),c=i("ae40"),d=l("forEach"),f=c("forEach");s.exports=!d||!f?function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(s,o,i){var a=i("d066");s.exports=a("document","documentElement")},"1c0b":function(s,o){s.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"1c7e":function(s,o,i){var a=i("b622"),l=a("iterator"),c=!1;try{var d=0,f={next:function(){return{done:!!d++}},return:function(){c=!0}};f[l]=function(){return this},Array.from(f,function(){throw 2})}catch{}s.exports=function(m,p){if(!p&&!c)return!1;var h=!1;try{var _={};_[l]=function(){return{next:function(){return{done:h=!0}}}},m(_)}catch{}return h}},"1d80":function(s,o){s.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"1dde":function(s,o,i){var a=i("d039"),l=i("b622"),c=i("2d00"),d=l("species");s.exports=function(f){return c>=51||!a(function(){var m=[],p=m.constructor={};return p[d]=function(){return{foo:1}},m[f](Boolean).foo!==1})}},"23cb":function(s,o,i){var a=i("a691"),l=Math.max,c=Math.min;s.exports=function(d,f){var m=a(d);return m<0?l(m+f,0):c(m,f)}},"23e7":function(s,o,i){var a=i("da84"),l=i("06cf").f,c=i("9112"),d=i("6eeb"),f=i("ce4e"),m=i("e893"),p=i("94ca");s.exports=function(h,_){var C=h.target,b=h.global,y=h.stat,k,z,x,T,L,I;if(b?z=a:y?z=a[C]||f(C,{}):z=(a[C]||{}).prototype,z)for(x in _){if(L=_[x],h.noTargetGet?(I=l(z,x),T=I&&I.value):T=z[x],k=p(b?x:C+(y?".":"#")+x,h.forced),!k&&T!==void 0){if(typeof L==typeof T)continue;m(L,T)}(h.sham||T&&T.sham)&&c(L,"sham",!0),d(z,x,L,h)}}},"241c":function(s,o,i){var a=i("ca84"),l=i("7839"),c=l.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(f){return a(f,c)}},"25f0":function(s,o,i){var a=i("6eeb"),l=i("825a"),c=i("d039"),d=i("ad6d"),f="toString",m=RegExp.prototype,p=m[f],h=c(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),_=p.name!=f;(h||_)&&a(RegExp.prototype,f,function(){var b=l(this),y=String(b.source),k=b.flags,z=String(k===void 0&&b instanceof RegExp&&!("flags"in m)?d.call(b):k);return"/"+y+"/"+z},{unsafe:!0})},"2ca0":function(s,o,i){var a=i("23e7"),l=i("06cf").f,c=i("50c4"),d=i("5a34"),f=i("1d80"),m=i("ab13"),p=i("c430"),h="".startsWith,_=Math.min,C=m("startsWith"),b=!p&&!C&&!!function(){var y=l(String.prototype,"startsWith");return y&&!y.writable}();a({target:"String",proto:!0,forced:!b&&!C},{startsWith:function(k){var z=String(f(this));d(k);var x=c(_(arguments.length>1?arguments[1]:void 0,z.length)),T=String(k);return h?h.call(z,T,x):z.slice(x,x+T.length)===T}})},"2d00":function(s,o,i){var a=i("da84"),l=i("342f"),c=a.process,d=c&&c.versions,f=d&&d.v8,m,p;f?(m=f.split("."),p=m[0]+m[1]):l&&(m=l.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=l.match(/Chrome\/(\d+)/),m&&(p=m[1]))),s.exports=p&&+p},"342f":function(s,o,i){var a=i("d066");s.exports=a("navigator","userAgent")||""},"35a1":function(s,o,i){var a=i("f5df"),l=i("3f8c"),c=i("b622"),d=c("iterator");s.exports=function(f){if(f!=null)return f[d]||f["@@iterator"]||l[a(f)]}},"37e8":function(s,o,i){var a=i("83ab"),l=i("9bf2"),c=i("825a"),d=i("df75");s.exports=a?Object.defineProperties:function(m,p){c(m);for(var h=d(p),_=h.length,C=0,b;_>C;)l.f(m,b=h[C++],p[b]);return m}},"3bbe":function(s,o,i){var a=i("861d");s.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(s,o,i){var a=i("6547").charAt,l=i("69f3"),c=i("7dd0"),d="String Iterator",f=l.set,m=l.getterFor(d);c(String,"String",function(p){f(this,{type:d,string:String(p),index:0})},function(){var h=m(this),_=h.string,C=h.index,b;return C>=_.length?{value:void 0,done:!0}:(b=a(_,C),h.index+=b.length,{value:b,done:!1})})},"3f8c":function(s,o){s.exports={}},4160:function(s,o,i){var a=i("23e7"),l=i("17c2");a({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(s,o,i){var a=i("da84");s.exports=a},"44ad":function(s,o,i){var a=i("d039"),l=i("c6b6"),c="".split;s.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return l(d)=="String"?c.call(d,""):Object(d)}:Object},"44d2":function(s,o,i){var a=i("b622"),l=i("7c73"),c=i("9bf2"),d=a("unscopables"),f=Array.prototype;f[d]==null&&c.f(f,d,{configurable:!0,value:l(null)}),s.exports=function(m){f[d][m]=!0}},"44e7":function(s,o,i){var a=i("861d"),l=i("c6b6"),c=i("b622"),d=c("match");s.exports=function(f){var m;return a(f)&&((m=f[d])!==void 0?!!m:l(f)=="RegExp")}},4930:function(s,o,i){var a=i("d039");s.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(s,o,i){var a=i("fc6a"),l=i("50c4"),c=i("23cb"),d=function(f){return function(m,p,h){var _=a(m),C=l(_.length),b=c(h,C),y;if(f&&p!=p){for(;C>b;)if(y=_[b++],y!=y)return!0}else for(;C>b;b++)if((f||b in _)&&_[b]===p)return f||b||0;return!f&&-1}};s.exports={includes:d(!0),indexOf:d(!1)}},"4de4":function(s,o,i){var a=i("23e7"),l=i("b727").filter,c=i("1dde"),d=i("ae40"),f=c("filter"),m=d("filter");a({target:"Array",proto:!0,forced:!f||!m},{filter:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(s,o,i){var a=i("0366"),l=i("7b0b"),c=i("9bdd"),d=i("e95a"),f=i("50c4"),m=i("8418"),p=i("35a1");s.exports=function(_){var C=l(_),b=typeof this=="function"?this:Array,y=arguments.length,k=y>1?arguments[1]:void 0,z=k!==void 0,x=p(C),T=0,L,I,D,U,Z,X;if(z&&(k=a(k,y>2?arguments[2]:void 0,2)),x!=null&&!(b==Array&&d(x)))for(U=x.call(C),Z=U.next,I=new b;!(D=Z.call(U)).done;T++)X=z?c(U,k,[D.value,T],!0):D.value,m(I,T,X);else for(L=f(C.length),I=new b(L);L>T;T++)X=z?k(C[T],T):C[T],m(I,T,X);return I.length=T,I}},"4fad":function(s,o,i){var a=i("23e7"),l=i("6f53").entries;a({target:"Object",stat:!0},{entries:function(d){return l(d)}})},"50c4":function(s,o,i){var a=i("a691"),l=Math.min;s.exports=function(c){return c>0?l(a(c),9007199254740991):0}},5135:function(s,o){var i={}.hasOwnProperty;s.exports=function(a,l){return i.call(a,l)}},5319:function(s,o,i){var a=i("d784"),l=i("825a"),c=i("7b0b"),d=i("50c4"),f=i("a691"),m=i("1d80"),p=i("8aa5"),h=i("14c3"),_=Math.max,C=Math.min,b=Math.floor,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,k=/\$([$&'`]|\d\d?)/g,z=function(x){return x===void 0?x:String(x)};a("replace",2,function(x,T,L,I){var D=I.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,U=I.REPLACE_KEEPS_$0,Z=D?"$":"$0";return[function(q,Ce){var te=m(this),ie=q==null?void 0:q[x];return ie!==void 0?ie.call(q,te,Ce):T.call(String(te),q,Ce)},function(j,q){if(!D&&U||typeof q=="string"&&q.indexOf(Z)===-1){var Ce=L(T,j,this,q);if(Ce.done)return Ce.value}var te=l(j),ie=String(this),ye=typeof q=="function";ye||(q=String(q));var je=te.global;if(je){var it=te.unicode;te.lastIndex=0}for(var ce=[];;){var W=h(te,ie);if(W===null||(ce.push(W),!je))break;var fe=String(W[0]);fe===""&&(te.lastIndex=p(ie,d(te.lastIndex),it))}for(var Ae="",Le=0,Ee=0;Ee=Le&&(Ae+=ie.slice(Le,le)+O,Le=le+V.length)}return Ae+ie.slice(Le)}];function X(j,q,Ce,te,ie,ye){var je=Ce+j.length,it=te.length,ce=k;return ie!==void 0&&(ie=c(ie),ce=y),T.call(ye,ce,function(W,fe){var Ae;switch(fe.charAt(0)){case"$":return"$";case"&":return j;case"`":return q.slice(0,Ce);case"'":return q.slice(je);case"<":Ae=ie[fe.slice(1,-1)];break;default:var Le=+fe;if(Le===0)return W;if(Le>it){var Ee=b(Le/10);return Ee===0?W:Ee<=it?te[Ee-1]===void 0?fe.charAt(1):te[Ee-1]+fe.charAt(1):W}Ae=te[Le-1]}return Ae===void 0?"":Ae})}})},5692:function(s,o,i){var a=i("c430"),l=i("c6cd");(s.exports=function(c,d){return l[c]||(l[c]=d!==void 0?d:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(s,o,i){var a=i("d066"),l=i("241c"),c=i("7418"),d=i("825a");s.exports=a("Reflect","ownKeys")||function(m){var p=l.f(d(m)),h=c.f;return h?p.concat(h(m)):p}},"5a34":function(s,o,i){var a=i("44e7");s.exports=function(l){if(a(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(s,o){s.exports=function(i,a){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:a}}},"5db7":function(s,o,i){var a=i("23e7"),l=i("a2bf"),c=i("7b0b"),d=i("50c4"),f=i("1c0b"),m=i("65f0");a({target:"Array",proto:!0},{flatMap:function(h){var _=c(this),C=d(_.length),b;return f(h),b=m(_,0),b.length=l(b,_,_,C,0,1,h,arguments.length>1?arguments[1]:void 0),b}})},6547:function(s,o,i){var a=i("a691"),l=i("1d80"),c=function(d){return function(f,m){var p=String(l(f)),h=a(m),_=p.length,C,b;return h<0||h>=_?d?"":void 0:(C=p.charCodeAt(h),C<55296||C>56319||h+1===_||(b=p.charCodeAt(h+1))<56320||b>57343?d?p.charAt(h):C:d?p.slice(h,h+2):(C-55296<<10)+(b-56320)+65536)}};s.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(s,o,i){var a=i("861d"),l=i("e8b5"),c=i("b622"),d=c("species");s.exports=function(f,m){var p;return l(f)&&(p=f.constructor,typeof p=="function"&&(p===Array||l(p.prototype))?p=void 0:a(p)&&(p=p[d],p===null&&(p=void 0))),new(p===void 0?Array:p)(m===0?0:m)}},"69f3":function(s,o,i){var a=i("7f9a"),l=i("da84"),c=i("861d"),d=i("9112"),f=i("5135"),m=i("f772"),p=i("d012"),h=l.WeakMap,_,C,b,y=function(D){return b(D)?C(D):_(D,{})},k=function(D){return function(U){var Z;if(!c(U)||(Z=C(U)).type!==D)throw TypeError("Incompatible receiver, "+D+" required");return Z}};if(a){var z=new h,x=z.get,T=z.has,L=z.set;_=function(D,U){return L.call(z,D,U),U},C=function(D){return x.call(z,D)||{}},b=function(D){return T.call(z,D)}}else{var I=m("state");p[I]=!0,_=function(D,U){return d(D,I,U),U},C=function(D){return f(D,I)?D[I]:{}},b=function(D){return f(D,I)}}s.exports={set:_,get:C,has:b,enforce:y,getterFor:k}},"6eeb":function(s,o,i){var a=i("da84"),l=i("9112"),c=i("5135"),d=i("ce4e"),f=i("8925"),m=i("69f3"),p=m.get,h=m.enforce,_=String(String).split("String");(s.exports=function(C,b,y,k){var z=k?!!k.unsafe:!1,x=k?!!k.enumerable:!1,T=k?!!k.noTargetGet:!1;if(typeof y=="function"&&(typeof b=="string"&&!c(y,"name")&&l(y,"name",b),h(y).source=_.join(typeof b=="string"?b:"")),C===a){x?C[b]=y:d(b,y);return}else z?!T&&C[b]&&(x=!0):delete C[b];x?C[b]=y:l(C,b,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||f(this)})},"6f53":function(s,o,i){var a=i("83ab"),l=i("df75"),c=i("fc6a"),d=i("d1e7").f,f=function(m){return function(p){for(var h=c(p),_=l(h),C=_.length,b=0,y=[],k;C>b;)k=_[b++],(!a||d.call(h,k))&&y.push(m?[k,h[k]]:h[k]);return y}};s.exports={entries:f(!0),values:f(!1)}},"73d9":function(s,o,i){var a=i("44d2");a("flatMap")},7418:function(s,o){o.f=Object.getOwnPropertySymbols},"746f":function(s,o,i){var a=i("428f"),l=i("5135"),c=i("e538"),d=i("9bf2").f;s.exports=function(f){var m=a.Symbol||(a.Symbol={});l(m,f)||d(m,f,{value:c.f(f)})}},7839:function(s,o){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(s,o,i){var a=i("1d80");s.exports=function(l){return Object(a(l))}},"7c73":function(s,o,i){var a=i("825a"),l=i("37e8"),c=i("7839"),d=i("d012"),f=i("1be4"),m=i("cc12"),p=i("f772"),h=">",_="<",C="prototype",b="script",y=p("IE_PROTO"),k=function(){},z=function(D){return _+b+h+D+_+"/"+b+h},x=function(D){D.write(z("")),D.close();var U=D.parentWindow.Object;return D=null,U},T=function(){var D=m("iframe"),U="java"+b+":",Z;return D.style.display="none",f.appendChild(D),D.src=String(U),Z=D.contentWindow.document,Z.open(),Z.write(z("document.F=Object")),Z.close(),Z.F},L,I=function(){try{L=document.domain&&new ActiveXObject("htmlfile")}catch{}I=L?x(L):T();for(var D=c.length;D--;)delete I[C][c[D]];return I()};d[y]=!0,s.exports=Object.create||function(U,Z){var X;return U!==null?(k[C]=a(U),X=new k,k[C]=null,X[y]=U):X=I(),Z===void 0?X:l(X,Z)}},"7dd0":function(s,o,i){var a=i("23e7"),l=i("9ed3"),c=i("e163"),d=i("d2bb"),f=i("d44e"),m=i("9112"),p=i("6eeb"),h=i("b622"),_=i("c430"),C=i("3f8c"),b=i("ae93"),y=b.IteratorPrototype,k=b.BUGGY_SAFARI_ITERATORS,z=h("iterator"),x="keys",T="values",L="entries",I=function(){return this};s.exports=function(D,U,Z,X,j,q,Ce){l(Z,U,X);var te=function(Ee){if(Ee===j&&ce)return ce;if(!k&&Ee in je)return je[Ee];switch(Ee){case x:return function(){return new Z(this,Ee)};case T:return function(){return new Z(this,Ee)};case L:return function(){return new Z(this,Ee)}}return function(){return new Z(this)}},ie=U+" Iterator",ye=!1,je=D.prototype,it=je[z]||je["@@iterator"]||j&&je[j],ce=!k&&it||te(j),W=U=="Array"&&je.entries||it,fe,Ae,Le;if(W&&(fe=c(W.call(new D)),y!==Object.prototype&&fe.next&&(!_&&c(fe)!==y&&(d?d(fe,y):typeof fe[z]!="function"&&m(fe,z,I)),f(fe,ie,!0,!0),_&&(C[ie]=I))),j==T&&it&&it.name!==T&&(ye=!0,ce=function(){return it.call(this)}),(!_||Ce)&&je[z]!==ce&&m(je,z,ce),C[U]=ce,j)if(Ae={values:te(T),keys:q?ce:te(x),entries:te(L)},Ce)for(Le in Ae)(k||ye||!(Le in je))&&p(je,Le,Ae[Le]);else a({target:U,proto:!0,forced:k||ye},Ae);return Ae}},"7f9a":function(s,o,i){var a=i("da84"),l=i("8925"),c=a.WeakMap;s.exports=typeof c=="function"&&/native code/.test(l(c))},"825a":function(s,o,i){var a=i("861d");s.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(s,o,i){var a=i("d039");s.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(s,o,i){var a=i("c04e"),l=i("9bf2"),c=i("5c6c");s.exports=function(d,f,m){var p=a(f);p in d?l.f(d,p,c(0,m)):d[p]=m}},"861d":function(s,o){s.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},8875:function(s,o,i){var a,l,c;(function(d,f){l=[],a=f,c=typeof a=="function"?a.apply(o,l):a,c!==void 0&&(s.exports=c)})(typeof self<"u"?self:this,function(){function d(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==d&&document.currentScript)return document.currentScript;try{throw new Error}catch(L){var m=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,h=m.exec(L.stack)||p.exec(L.stack),_=h&&h[1]||!1,C=h&&h[2]||!1,b=document.location.href.replace(document.location.hash,""),y,k,z,x=document.getElementsByTagName("script");_===b&&(y=document.documentElement.outerHTML,k=new RegExp("(?:[^\\n]+?\\n){0,"+(C-2)+"}[^<]*