nextcloud/dist/refreshStyles-BTeBMyjq.chunk.mjs
nextcloud-command b812040314 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2026-02-15 12:39:59 +00:00

2 lines
43 KiB
JavaScript

import{t as Wt}from"./translation-DoG5ZELJ-2ffMJaM4.chunk.mjs";import{D as Qe,E as Je,F as tn,G as en}from"./index-DeDXQtUD.chunk.mjs";import{a2 as we,L as ue,R as nn,j,o as F,k as q,l as ke,t as Kt,z as Ht,b as Le,x as De,n as on,E as Pt,G as Mt,e as kt,u as wt,w as Ee,q as rn,s as an,ag as ln,r as Lt,F as _e,C as sn,c as cn,a0 as un,p as dn}from"./runtime-dom.esm-bundler-nUg13ekW.chunk.mjs";import{N as Se}from"./logger-D3RVzcfQ-B4GxPQ5t.chunk.mjs";import{a as Qt}from"./index-Ma7sfat2.chunk.mjs";import{g as hn}from"./index-6_gsQFyp.chunk.mjs";function pn(t,n,e){return(n=mn(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function U(){return U=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var o in e)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},U.apply(null,arguments)}function Ce(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,o)}return e}function W(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?Ce(Object(e),!0).forEach(function(o){pn(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ce(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function fn(t,n){if(t==null)return{};var e,o,i=gn(t,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)e=r[o],n.indexOf(e)===-1&&{}.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}function gn(t,n){if(t==null)return{};var e={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(n.indexOf(o)!==-1)continue;e[o]=t[o]}return e}function vn(t,n){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var o=e.call(t,n);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}function mn(t){var n=vn(t,"string");return typeof n=="symbol"?n:n+""}function de(t){"@babel/helpers - typeof";return de=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},de(t)}var bn="1.15.7";function Z(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var K=Z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Nt=Z(/Edge/i),Te=Z(/firefox/i),St=Z(/safari/i)&&!Z(/chrome/i)&&!Z(/android/i),me=Z(/iP(ad|od|hone)/i),Re=Z(/chrome/i)&&Z(/android/i),Xe={capture:!1,passive:!1};function y(t,n,e){t.addEventListener(n,e,!K&&Xe)}function b(t,n,e){t.removeEventListener(n,e,!K&&Xe)}function Vt(t,n){if(n){if(n[0]===">"&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch{return!1}return!1}}function Ye(t){return t.host&&t!==document&&t.host.nodeType&&t.host!==t?t.host:t.parentNode}function B(t,n,e,o){if(t){e=e||document;do{if(n!=null&&(n[0]===">"?t.parentNode===e&&Vt(t,n):Vt(t,n))||o&&t===e)return t;if(t===e)break}while(t=Ye(t))}return null}var xe=/\s+/g;function L(t,n,e){if(t&&n)if(t.classList)t.classList[e?"add":"remove"](n);else{var o=(" "+t.className+" ").replace(xe," ").replace(" "+n+" "," ");t.className=(o+(e?" "+n:"")).replace(xe," ")}}function f(t,n,e){var o=t&&t.style;if(o){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(e=t.currentStyle),n===void 0?e:e[n];!(n in o)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),o[n]=e+(typeof e=="string"?"":"px")}}function vt(t,n){var e="";if(typeof t=="string")e=t;else do{var o=f(t,"transform");o&&o!=="none"&&(e=o+" "+e)}while(!n&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(e)}function Be(t,n,e){if(t){var o=t.getElementsByTagName(n),i=0,r=o.length;if(e)for(;i<r;i++)e(o[i],i);return o}return[]}function $(){var t=document.scrollingElement;return t||document.documentElement}function T(t,n,e,o,i){if(!(!t.getBoundingClientRect&&t!==window)){var r,a,s,l,d,h,u;if(t!==window&&t.parentNode&&t!==$()?(r=t.getBoundingClientRect(),a=r.top,s=r.left,l=r.bottom,d=r.right,h=r.height,u=r.width):(a=0,s=0,l=window.innerHeight,d=window.innerWidth,h=window.innerHeight,u=window.innerWidth),(n||e)&&t!==window&&(i=i||t.parentNode,!K))do if(i&&i.getBoundingClientRect&&(f(i,"transform")!=="none"||e&&f(i,"position")!=="static")){var m=i.getBoundingClientRect();a-=m.top+parseInt(f(i,"border-top-width")),s-=m.left+parseInt(f(i,"border-left-width")),l=a+r.height,d=s+r.width;break}while(i=i.parentNode);if(o&&t!==window){var p=vt(i||t),w=p&&p.a,D=p&&p.d;p&&(a/=D,s/=w,u/=w,h/=D,l=a+h,d=s+u)}return{top:a,left:s,bottom:l,right:d,width:u,height:h}}}function Oe(t,n,e){for(var o=nt(t,!0),i=T(t)[n];o;){var r=T(o)[e],a=void 0;if(a=i>=r,!a)return o;if(o===$())break;o=nt(o,!1)}return!1}function mt(t,n,e,o){for(var i=0,r=0,a=t.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==g.ghost&&(o||a[r]!==g.dragged)&&B(a[r],e.draggable,t,!1)){if(i===n)return a[r];i++}r++}return null}function be(t,n){for(var e=t.lastElementChild;e&&(e===g.ghost||f(e,"display")==="none"||n&&!Vt(e,n));)e=e.previousElementSibling;return e||null}function X(t,n){var e=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==g.clone&&(!n||Vt(t,n))&&e++;return e}function Ne(t){var n=0,e=0,o=$();if(t)do{var i=vt(t),r=i.a,a=i.d;n+=t.scrollLeft*r,e+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[n,e]}function yn(t,n){for(var e in t)if(t.hasOwnProperty(e)){for(var o in n)if(n.hasOwnProperty(o)&&n[o]===t[e][o])return Number(e)}return-1}function nt(t,n){if(!t||!t.getBoundingClientRect)return $();var e=t,o=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var i=f(e);if(e.clientWidth<e.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return $();if(o||n)return e;o=!0}}while(e=e.parentNode);return $()}function wn(t,n){if(t&&n)for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function te(t,n){return Math.round(t.top)===Math.round(n.top)&&Math.round(t.left)===Math.round(n.left)&&Math.round(t.height)===Math.round(n.height)&&Math.round(t.width)===Math.round(n.width)}var Ct;function Fe(t,n){return function(){if(!Ct){var e=arguments,o=this;e.length===1?t.call(o,e[0]):t.apply(o,e),Ct=setTimeout(function(){Ct=void 0},n)}}}function Dn(){clearTimeout(Ct),Ct=void 0}function ze(t,n,e){t.scrollLeft+=n,t.scrollTop+=e}function je(t){var n=window.Polymer,e=window.jQuery||window.Zepto;return n&&n.dom?n.dom(t).cloneNode(!0):e?e(t).clone(!0)[0]:t.cloneNode(!0)}function $e(t,n,e){var o={};return Array.from(t.children).forEach(function(i){var r,a,s,l;if(!(!B(i,n.draggable,t,!1)||i.animated||i===e)){var d=T(i);o.left=Math.min((r=o.left)!==null&&r!==void 0?r:1/0,d.left),o.top=Math.min((a=o.top)!==null&&a!==void 0?a:1/0,d.top),o.right=Math.max((s=o.right)!==null&&s!==void 0?s:-1/0,d.right),o.bottom=Math.max((l=o.bottom)!==null&&l!==void 0?l:-1/0,d.bottom)}}),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var M="Sortable"+new Date().getTime();function En(){var t=[],n;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var e=[].slice.call(this.el.children);e.forEach(function(o){if(!(f(o,"display")==="none"||o===g.ghost)){t.push({target:o,rect:T(o)});var i=W({},t[t.length-1].rect);if(o.thisAnimationDuration){var r=vt(o,!0);r&&(i.top-=r.f,i.left-=r.e)}o.fromRect=i}})}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(yn(t,{target:e}),1)},animateAll:function(e){var o=this;if(!this.options.animation){clearTimeout(n),typeof e=="function"&&e();return}var i=!1,r=0;t.forEach(function(a){var s=0,l=a.target,d=l.fromRect,h=T(l),u=l.prevFromRect,m=l.prevToRect,p=a.rect,w=vt(l,!0);w&&(h.top-=w.f,h.left-=w.e),l.toRect=h,l.thisAnimationDuration&&te(u,h)&&!te(d,h)&&(p.top-h.top)/(p.left-h.left)===(d.top-h.top)/(d.left-h.left)&&(s=Sn(p,u,m,o.options)),te(h,d)||(l.prevFromRect=d,l.prevToRect=h,s||(s=o.options.animation),o.animate(l,p,h,s)),s&&(i=!0,r=Math.max(r,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.thisAnimationDuration=s)}),clearTimeout(n),i?n=setTimeout(function(){typeof e=="function"&&e()},r):typeof e=="function"&&e(),t=[]},animate:function(e,o,i,r){if(r){f(e,"transition",""),f(e,"transform","");var a=vt(this.el),s=a&&a.a,l=a&&a.d,d=(o.left-i.left)/(s||1),h=(o.top-i.top)/(l||1);e.animatingX=!!d,e.animatingY=!!h,f(e,"transform","translate3d("+d+"px,"+h+"px,0)"),this.forRepaintDummy=_n(e),f(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),f(e,"transform","translate3d(0,0,0)"),typeof e.animated=="number"&&clearTimeout(e.animated),e.animated=setTimeout(function(){f(e,"transition",""),f(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function _n(t){return t.offsetWidth}function Sn(t,n,e,o){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-e.top,2)+Math.pow(n.left-e.left,2))*o.animation}var ht=[],ee={initializeByDefault:!0},At={mount:function(t){for(var n in ee)ee.hasOwnProperty(n)&&!(n in t)&&(t[n]=ee[n]);ht.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),ht.push(t)},pluginEvent:function(t,n,e){var o=this;this.eventCanceled=!1,e.cancel=function(){o.eventCanceled=!0};var i=t+"Global";ht.forEach(function(r){n[r.pluginName]&&(n[r.pluginName][i]&&n[r.pluginName][i](W({sortable:n},e)),n.options[r.pluginName]&&n[r.pluginName][t]&&n[r.pluginName][t](W({sortable:n},e)))})},initializePlugins:function(t,n,e,o){ht.forEach(function(a){var s=a.pluginName;if(!(!t.options[s]&&!a.initializeByDefault)){var l=new a(t,n,t.options);l.sortable=t,l.options=t.options,t[s]=l,U(e,l.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var r=this.modifyOption(t,i,t.options[i]);typeof r<"u"&&(t.options[i]=r)}},getEventProperties:function(t,n){var e={};return ht.forEach(function(o){typeof o.eventProperties=="function"&&U(e,o.eventProperties.call(n[o.pluginName],t))}),e},modifyOption:function(t,n,e){var o;return ht.forEach(function(i){t[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(t[i.pluginName],e))}),o}};function Cn(t){var n=t.sortable,e=t.rootEl,o=t.name,i=t.targetEl,r=t.cloneEl,a=t.toEl,s=t.fromEl,l=t.oldIndex,d=t.newIndex,h=t.oldDraggableIndex,u=t.newDraggableIndex,m=t.originalEvent,p=t.putSortable,w=t.extraEventProperties;if(n=n||e&&e[M],!!n){var D,H=n.options,A="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!K&&!Nt?D=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(D=document.createEvent("Event"),D.initEvent(o,!0,!0)),D.to=a||e,D.from=s||e,D.item=i||e,D.clone=r,D.oldIndex=l,D.newIndex=d,D.oldDraggableIndex=h,D.newDraggableIndex=u,D.originalEvent=m,D.pullMode=p?p.lastPutMode:void 0;var V=W(W({},w),At.getEventProperties(o,n));for(var O in V)D[O]=V[O];e&&e.dispatchEvent(D),H[A]&&H[A].call(n,D)}}var Tn=["evt"],P=function(t,n){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=e.evt,i=fn(e,Tn);At.pluginEvent.bind(g)(t,n,W({dragEl:c,parentEl:S,ghostEl:v,rootEl:E,nextEl:ct,lastDownEl:Ft,cloneEl:_,cloneHidden:et,dragStarted:Dt,putSortable:x,activeSortable:g.active,originalEvent:o,oldIndex:gt,oldDraggableIndex:Tt,newIndex:R,newDraggableIndex:tt,hideGhostForTarget:Ge,unhideGhostForTarget:qe,cloneNowHidden:function(){et=!0},cloneNowShown:function(){et=!1},dispatchSortableEvent:function(r){I({sortable:n,name:r,originalEvent:o})}},i))};function I(t){Cn(W({putSortable:x,cloneEl:_,targetEl:c,rootEl:E,oldIndex:gt,oldDraggableIndex:Tt,newIndex:R,newDraggableIndex:tt},t))}var c,S,v,E,ct,Ft,_,et,gt,R,Tt,tt,Rt,x,ft=!1,Gt=!1,qt=[],lt,Y,ne,oe,Ae,Ie,Dt,pt,xt,Ot=!1,Xt=!1,zt,N,ie=[],he=!1,Zt=[],Jt=typeof document<"u",Yt=me,Pe=Nt||K?"cssFloat":"float",xn=Jt&&!Re&&!me&&"draggable"in document.createElement("div"),We=(function(){if(Jt){if(K)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}})(),He=function(t,n){var e=f(t),o=parseInt(e.width)-parseInt(e.paddingLeft)-parseInt(e.paddingRight)-parseInt(e.borderLeftWidth)-parseInt(e.borderRightWidth),i=mt(t,0,n),r=mt(t,1,n),a=i&&f(i),s=r&&f(r),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+T(i).width,d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+T(r).width;if(e.display==="flex")return e.flexDirection==="column"||e.flexDirection==="column-reverse"?"vertical":"horizontal";if(e.display==="grid")return e.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&a.float!=="none"){var h=a.float==="left"?"left":"right";return r&&(s.clear==="both"||s.clear===h)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=o&&e[Pe]==="none"||r&&e[Pe]==="none"&&l+d>o)?"vertical":"horizontal"},On=function(t,n,e){var o=e?t.left:t.top,i=e?t.right:t.bottom,r=e?t.width:t.height,a=e?n.left:n.top,s=e?n.right:n.bottom,l=e?n.width:n.height;return o===a||i===s||o+r/2===a+l/2},Nn=function(t,n){var e;return qt.some(function(o){var i=o[M].options.emptyInsertThreshold;if(!(!i||be(o))){var r=T(o),a=t>=r.left-i&&t<=r.right+i,s=n>=r.top-i&&n<=r.bottom+i;if(a&&s)return e=o}}),e},Ve=function(t){function n(i,r){return function(a,s,l,d){var h=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(i==null&&(r||h))return!0;if(i==null||i===!1)return!1;if(r&&i==="clone")return i;if(typeof i=="function")return n(i(a,s,l,d),r)(a,s,l,d);var u=(r?a:s).options.group.name;return i===!0||typeof i=="string"&&i===u||i.join&&i.indexOf(u)>-1}}var e={},o=t.group;(!o||de(o)!="object")&&(o={name:o}),e.name=o.name,e.checkPull=n(o.pull,!0),e.checkPut=n(o.put),e.revertClone=o.revertClone,t.group=e},Ge=function(){!We&&v&&f(v,"display","none")},qe=function(){!We&&v&&f(v,"display","")};Jt&&!Re&&document.addEventListener("click",function(t){if(Gt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Gt=!1,!1},!0);var st=function(t){if(c){t=t.touches?t.touches[0]:t;var n=Nn(t.clientX,t.clientY);if(n){var e={};for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);e.target=e.rootEl=n,e.preventDefault=void 0,e.stopPropagation=void 0,n[M]._onDragOver(e)}}},An=function(t){c&&c.parentNode[M]._isOutsideThisEl(t.target)};function g(t,n){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=n=U({},n),t[M]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return He(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(r,a){r.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:g.supportPointer!==!1&&"PointerEvent"in window&&(!St||me),emptyInsertThreshold:5};At.initializePlugins(this,t,e);for(var o in e)!(o in n)&&(n[o]=e[o]);Ve(n);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=n.forceFallback?!1:xn,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?y(t,"pointerdown",this._onTapStart):(y(t,"mousedown",this._onTapStart),y(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(t,"dragover",this),y(t,"dragenter",this)),qt.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),U(this,En())}g.prototype={constructor:g,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(pt=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,c):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,e=this.el,o=this.options,i=o.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,d=o.filter;if(Yn(e),!c&&!(/mousedown|pointerdown/.test(r)&&t.button!==0||o.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&St&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=B(s,o.draggable,e,!1),!(s&&s.animated)&&Ft!==s)){if(gt=X(s),Tt=X(s,o.draggable),typeof d=="function"){if(d.call(this,t,s,this)){I({sortable:n,rootEl:l,name:"filter",targetEl:s,toEl:e,fromEl:e}),P("filter",n,{evt:t}),i&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(h){if(h=B(l,h.trim(),e,!1),h)return I({sortable:n,rootEl:h,name:"filter",targetEl:s,fromEl:e,toEl:e}),P("filter",n,{evt:t}),!0}),d)){i&&t.preventDefault();return}o.handle&&!B(l,o.handle,e,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,n,e){var o=this,i=o.el,r=o.options,a=i.ownerDocument,s;if(e&&!c&&e.parentNode===i){var l=T(e);if(E=i,c=e,S=c.parentNode,ct=c.nextSibling,Ft=e,Rt=r.group,g.dragged=c,lt={target:c,clientX:(n||t).clientX,clientY:(n||t).clientY},Ae=lt.clientX-l.left,Ie=lt.clientY-l.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,c.style["will-change"]="all",s=function(){if(P("delayEnded",o,{evt:t}),g.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Te&&o.nativeDraggable&&(c.draggable=!0),o._triggerDragStart(t,n),I({sortable:o,name:"choose",originalEvent:t}),L(c,r.chosenClass,!0)},r.ignore.split(",").forEach(function(d){Be(c,d.trim(),re)}),y(a,"dragover",st),y(a,"mousemove",st),y(a,"touchmove",st),r.supportPointer?(y(a,"pointerup",o._onDrop),!this.nativeDraggable&&y(a,"pointercancel",o._onDrop)):(y(a,"mouseup",o._onDrop),y(a,"touchend",o._onDrop),y(a,"touchcancel",o._onDrop)),Te&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),P("delayStart",this,{evt:t}),r.delay&&(!r.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Nt||K))){if(g.eventCanceled){this._onDrop();return}r.supportPointer?(y(a,"pointerup",o._disableDelayedDrag),y(a,"pointercancel",o._disableDelayedDrag)):(y(a,"mouseup",o._disableDelayedDrag),y(a,"touchend",o._disableDelayedDrag),y(a,"touchcancel",o._disableDelayedDrag)),y(a,"mousemove",o._delayedDragTouchMoveHandler),y(a,"touchmove",o._delayedDragTouchMoveHandler),r.supportPointer&&y(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(s,r.delay)}else s()}},_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(){c&&re(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._disableDelayedDrag),b(t,"touchend",this._disableDelayedDrag),b(t,"touchcancel",this._disableDelayedDrag),b(t,"pointerup",this._disableDelayedDrag),b(t,"pointercancel",this._disableDelayedDrag),b(t,"mousemove",this._delayedDragTouchMoveHandler),b(t,"touchmove",this._delayedDragTouchMoveHandler),b(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):n?y(document,"touchmove",this._onTouchMove):y(document,"mousemove",this._onTouchMove):(y(c,"dragend",this),y(E,"dragstart",this._onDragStart));try{document.selection?jt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(ft=!1,E&&c){P("dragStarted",this,{evt:n}),this.nativeDraggable&&y(document,"dragover",An);var e=this.options;!t&&L(c,e.dragClass,!1),L(c,e.ghostClass,!0),g.active=this,t&&this._appendGhost(),I({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Y){this._lastX=Y.clientX,this._lastY=Y.clientY,Ge();for(var t=document.elementFromPoint(Y.clientX,Y.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Y.clientX,Y.clientY),t!==n);)n=t;if(c.parentNode[M]._isOutsideThisEl(t),n)do{if(n[M]){var e=void 0;if(e=n[M]._onDragOver({clientX:Y.clientX,clientY:Y.clientY,target:t,rootEl:n}),e&&!this.options.dragoverBubble)break}t=n}while(n=Ye(n));qe()}},_onTouchMove:function(t){if(lt){var n=this.options,e=n.fallbackTolerance,o=n.fallbackOffset,i=t.touches?t.touches[0]:t,r=v&&vt(v,!0),a=v&&r&&r.a,s=v&&r&&r.d,l=Yt&&N&&Ne(N),d=(i.clientX-lt.clientX+o.x)/(a||1)+(l?l[0]-ie[0]:0)/(a||1),h=(i.clientY-lt.clientY+o.y)/(s||1)+(l?l[1]-ie[1]:0)/(s||1);if(!g.active&&!ft){if(e&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<e)return;this._onDragStart(t,!0)}if(v){r?(r.e+=d-(ne||0),r.f+=h-(oe||0)):r={a:1,b:0,c:0,d:1,e:d,f:h};var u="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");f(v,"webkitTransform",u),f(v,"mozTransform",u),f(v,"msTransform",u),f(v,"transform",u),ne=d,oe=h,Y=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!v){var t=this.options.fallbackOnBody?document.body:E,n=T(c,!0,Yt,!0,t),e=this.options;if(Yt){for(N=t;f(N,"position")==="static"&&f(N,"transform")==="none"&&N!==document;)N=N.parentNode;N!==document.body&&N!==document.documentElement?(N===document&&(N=$()),n.top+=N.scrollTop,n.left+=N.scrollLeft):N=$(),ie=Ne(N)}v=c.cloneNode(!0),L(v,e.ghostClass,!1),L(v,e.fallbackClass,!0),L(v,e.dragClass,!0),f(v,"transition",""),f(v,"transform",""),f(v,"box-sizing","border-box"),f(v,"margin",0),f(v,"top",n.top),f(v,"left",n.left),f(v,"width",n.width),f(v,"height",n.height),f(v,"opacity","0.8"),f(v,"position",Yt?"absolute":"fixed"),f(v,"zIndex","100000"),f(v,"pointerEvents","none"),g.ghost=v,t.appendChild(v),f(v,"transform-origin",Ae/parseInt(v.style.width)*100+"% "+Ie/parseInt(v.style.height)*100+"%")}},_onDragStart:function(t,n){var e=this,o=t.dataTransfer,i=e.options;if(P("dragStart",this,{evt:t}),g.eventCanceled){this._onDrop();return}P("setupClone",this),g.eventCanceled||(_=je(c),_.removeAttribute("id"),_.draggable=!1,_.style["will-change"]="",this._hideClone(),L(_,this.options.chosenClass,!1),g.clone=_),e.cloneId=jt(function(){P("clone",e),!g.eventCanceled&&(e.options.removeCloneOnHide||E.insertBefore(_,c),e._hideClone(),I({sortable:e,name:"clone"}))}),!n&&L(c,i.dragClass,!0),n?(Gt=!0,e._loopId=setInterval(e._emulateDragOver,50)):(b(document,"mouseup",e._onDrop),b(document,"touchend",e._onDrop),b(document,"touchcancel",e._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(e,o,c)),y(document,"drop",e),f(c,"transform","translateZ(0)")),ft=!0,e._dragStartId=jt(e._dragStarted.bind(e,n,t)),y(document,"selectstart",e),Dt=!0,window.getSelection().removeAllRanges(),St&&f(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,e=t.target,o,i,r,a=this.options,s=a.group,l=g.active,d=Rt===s,h=a.sort,u=x||l,m,p=this,w=!1;if(he)return;function D(yt,Ue){P(yt,p,W({evt:t,isOwner:d,axis:m?"vertical":"horizontal",revert:r,dragRect:o,targetRect:i,canSort:h,fromSortable:u,target:e,completed:A,onMove:function(ye,Ke){return Bt(E,n,c,o,ye,T(ye),t,Ke)},changed:V},Ue))}function H(){D("dragOverAnimationCapture"),p.captureAnimationState(),p!==u&&u.captureAnimationState()}function A(yt){return D("dragOverCompleted",{insertion:yt}),yt&&(d?l._hideClone():l._showClone(p),p!==u&&(L(c,x?x.options.ghostClass:l.options.ghostClass,!1),L(c,a.ghostClass,!0)),x!==p&&p!==g.active?x=p:p===g.active&&x&&(x=null),u===p&&(p._ignoreWhileAnimating=e),p.animateAll(function(){D("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==u&&(u.animateAll(),u._ignoreWhileAnimating=null)),(e===c&&!c.animated||e===n&&!e.animated)&&(pt=null),!a.dragoverBubble&&!t.rootEl&&e!==document&&(c.parentNode[M]._isOutsideThisEl(t.target),!yt&&st(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),w=!0}function V(){R=X(c),tt=X(c,a.draggable),I({sortable:p,name:"change",toEl:n,newIndex:R,newDraggableIndex:tt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),e=B(e,a.draggable,n,!0),D("dragOver"),g.eventCanceled)return w;if(c.contains(t.target)||e.animated&&e.animatingX&&e.animatingY||p._ignoreWhileAnimating===e)return A(!1);if(Gt=!1,l&&!a.disabled&&(d?h||(r=S!==E):x===this||(this.lastPutMode=Rt.checkPull(this,l,c,t))&&s.checkPut(this,l,c,t))){if(m=this._getDirection(t,e)==="vertical",o=T(c),D("dragOverValid"),g.eventCanceled)return w;if(r)return S=E,H(),this._hideClone(),D("revert"),g.eventCanceled||(ct?E.insertBefore(c,ct):E.appendChild(c)),A(!0);var O=be(n,a.draggable);if(!O||kn(t,m,this)&&!O.animated){if(O===c)return A(!1);if(O&&n===t.target&&(e=O),e&&(i=T(e)),Bt(E,n,c,o,e,i,t,!!e)!==!1)return H(),O&&O.nextSibling?n.insertBefore(c,O.nextSibling):n.appendChild(c),S=n,V(),A(!0)}else if(O&&Mn(t,m,this)){var ot=mt(n,0,a,!0);if(ot===c)return A(!1);if(e=ot,i=T(e),Bt(E,n,c,o,e,i,t,!1)!==!1)return H(),n.insertBefore(c,ot),S=n,V(),A(!0)}else if(e.parentNode===n){i=T(e);var z=0,it,bt=c.parentNode!==n,ut=!On(c.animated&&c.toRect||o,e.animated&&e.toRect||i,m),k=m?"top":"left",Q=Oe(e,"top","top")||Oe(c,"top","top"),It=Q?Q.scrollTop:void 0;pt!==e&&(it=i[k],Ot=!1,Xt=!ut&&a.invertSwap||bt),z=Ln(t,e,i,m,ut?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Xt,pt===e);var G;if(z!==0){var dt=X(c);do dt-=z,G=S.children[dt];while(G&&(f(G,"display")==="none"||G===v))}if(z===0||G===e)return A(!1);pt=e,xt=z;var rt=e.nextElementSibling,J=!1;J=z===1;var at=Bt(E,n,c,o,e,i,t,J);if(at!==!1)return(at===1||at===-1)&&(J=at===1),he=!0,setTimeout(Pn,30),H(),J&&!rt?n.appendChild(c):e.parentNode.insertBefore(c,J?rt:e),Q&&ze(Q,0,It-Q.scrollTop),S=c.parentNode,it!==void 0&&!Xt&&(zt=Math.abs(it-T(e)[k])),V(),A(!0)}if(n.contains(c))return A(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",st),b(document,"mousemove",st),b(document,"touchmove",st)},_offUpEvents:function(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop),b(t,"touchend",this._onDrop),b(t,"pointerup",this._onDrop),b(t,"pointercancel",this._onDrop),b(t,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(t){var n=this.el,e=this.options;if(R=X(c),tt=X(c,e.draggable),P("drop",this,{evt:t}),S=c&&c.parentNode,R=X(c),tt=X(c,e.draggable),g.eventCanceled){this._nulling();return}ft=!1,Xt=!1,Ot=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),pe(this.cloneId),pe(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),St&&f(document.body,"user-select",""),f(c,"transform",""),t&&(Dt&&(t.cancelable&&t.preventDefault(),!e.dropBubble&&t.stopPropagation()),v&&v.parentNode&&v.parentNode.removeChild(v),(E===S||x&&x.lastPutMode!=="clone")&&_&&_.parentNode&&_.parentNode.removeChild(_),c&&(this.nativeDraggable&&b(c,"dragend",this),re(c),c.style["will-change"]="",Dt&&!ft&&L(c,x?x.options.ghostClass:this.options.ghostClass,!1),L(c,this.options.chosenClass,!1),I({sortable:this,name:"unchoose",toEl:S,newIndex:null,newDraggableIndex:null,originalEvent:t}),E!==S?(R>=0&&(I({rootEl:S,name:"add",toEl:S,fromEl:E,originalEvent:t}),I({sortable:this,name:"remove",toEl:S,originalEvent:t}),I({rootEl:S,name:"sort",toEl:S,fromEl:E,originalEvent:t}),I({sortable:this,name:"sort",toEl:S,originalEvent:t})),x&&x.save()):R!==gt&&R>=0&&(I({sortable:this,name:"update",toEl:S,originalEvent:t}),I({sortable:this,name:"sort",toEl:S,originalEvent:t})),g.active&&((R==null||R===-1)&&(R=gt,tt=Tt),I({sortable:this,name:"end",toEl:S,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){P("nulling",this),E=c=S=v=ct=_=Ft=et=lt=Y=Dt=R=tt=gt=Tt=pt=xt=x=Rt=g.dragged=g.ghost=g.clone=g.active=null;var t=this.el;Zt.forEach(function(n){t.contains(n)&&(n.checked=!0)}),Zt.length=ne=oe=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":c&&(this._onDragOver(t),In(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,e=this.el.children,o=0,i=e.length,r=this.options;o<i;o++)n=e[o],B(n,r.draggable,this.el,!1)&&t.push(n.getAttribute(r.dataIdAttr)||Xn(n));return t},sort:function(t,n){var e={},o=this.el;this.toArray().forEach(function(i,r){var a=o.children[r];B(a,this.options.draggable,o,!1)&&(e[i]=a)},this),n&&this.captureAnimationState(),t.forEach(function(i){e[i]&&(o.removeChild(e[i]),o.appendChild(e[i]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return B(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var e=this.options;if(n===void 0)return e[t];var o=At.modifyOption(this,t,n);typeof o<"u"?e[t]=o:e[t]=n,t==="group"&&Ve(e)},destroy:function(){P("destroy",this);var t=this.el;t[M]=null,b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart),b(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),qt.splice(qt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!et){if(P("hideClone",this),g.eventCanceled)return;f(_,"display","none"),this.options.removeCloneOnHide&&_.parentNode&&_.parentNode.removeChild(_),et=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(et){if(P("showClone",this),g.eventCanceled)return;c.parentNode==E&&!this.options.group.revertClone?E.insertBefore(_,c):ct?E.insertBefore(_,ct):E.appendChild(_),this.options.group.revertClone&&this.animate(c,_),f(_,"display",""),et=!1}}};function In(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Bt(t,n,e,o,i,r,a,s){var l,d=t[M],h=d.options.onMove,u;return window.CustomEvent&&!K&&!Nt?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=n,l.from=t,l.dragged=e,l.draggedRect=o,l.related=i||n,l.relatedRect=r||T(n),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),h&&(u=h.call(d,l,a)),u}function re(t){t.draggable=!1}function Pn(){he=!1}function Mn(t,n,e){var o=T(mt(e.el,0,e.options,!0)),i=$e(e.el,e.options,v),r=10;return n?t.clientX<i.left-r||t.clientY<o.top&&t.clientX<o.right:t.clientY<i.top-r||t.clientY<o.bottom&&t.clientX<o.left}function kn(t,n,e){var o=T(be(e.el,e.options.draggable)),i=$e(e.el,e.options,v),r=10;return n?t.clientX>i.right+r||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>i.bottom+r||t.clientX>o.right&&t.clientY>o.top}function Ln(t,n,e,o,i,r,a,s){var l=o?t.clientY:t.clientX,d=o?e.height:e.width,h=o?e.top:e.left,u=o?e.bottom:e.right,m=!1;if(!a){if(s&&zt<d*i){if(!Ot&&(xt===1?l>h+d*r/2:l<u-d*r/2)&&(Ot=!0),Ot)m=!0;else if(xt===1?l<h+zt:l>u-zt)return-xt}else if(l>h+d*(1-i)/2&&l<u-d*(1-i)/2)return Rn(n)}return m=m||a,m&&(l<h+d*r/2||l>u-d*r/2)?l>h+d/2?1:-1:0}function Rn(t){return X(c)<X(t)?1:-1}function Xn(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,e=n.length,o=0;e--;)o+=n.charCodeAt(e);return o.toString(36)}function Yn(t){Zt.length=0;for(var n=t.getElementsByTagName("input"),e=n.length;e--;){var o=n[e];o.checked&&Zt.push(o)}}function jt(t){return setTimeout(t,0)}function pe(t){return clearTimeout(t)}Jt&&y(document,"touchmove",function(t){(g.active||ft)&&t.cancelable&&t.preventDefault()}),g.utils={on:y,off:b,css:f,find:Be,is:function(t,n){return!!B(t,n,t,!1)},extend:wn,throttle:Fe,closest:B,toggleClass:L,clone:je,index:X,nextTick:jt,cancelNextTick:pe,detectDirection:He,getChild:mt,expando:M},g.get=function(t){return t[M]},g.mount=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];n[0].constructor===Array&&(n=n[0]),n.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(g.utils=W(W({},g.utils),o.utils)),At.mount(o)})},g.create=function(t,n){return new g(t,n)},g.version=bn;var C=[],Et,fe,ge=!1,ae,le,Ut,_t;function Bn(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}return t.prototype={dragStarted:function(n){var e=n.originalEvent;this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):this.options.supportPointer?y(document,"pointermove",this._handleFallbackAutoScroll):e.touches?y(document,"touchmove",this._handleFallbackAutoScroll):y(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var e=n.originalEvent;!this.options.dragOverBubble&&!e.rootEl&&this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),Me(),$t(),Dn()},nulling:function(){Ut=fe=Et=ge=_t=ae=le=null,C.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,e){var o=this,i=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(i,r);if(Ut=n,e||this.options.forceAutoScrollFallback||Nt||K||St){se(n,this.options,a,e);var s=nt(a,!0);ge&&(!_t||i!==ae||r!==le)&&(_t&&Me(),_t=setInterval(function(){var l=nt(document.elementFromPoint(i,r),!0);l!==s&&(s=l,$t()),se(n,o.options,l,e)},10),ae=i,le=r)}else{if(!this.options.bubbleScroll||nt(a,!0)===$()){$t();return}se(n,this.options,nt(a,!1),!1)}}},U(t,{pluginName:"scroll",initializeByDefault:!0})}function $t(){C.forEach(function(t){clearInterval(t.pid)}),C=[]}function Me(){clearInterval(_t)}var se=Fe(function(t,n,e,o){if(n.scroll){var i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,a=n.scrollSensitivity,s=n.scrollSpeed,l=$(),d=!1,h;fe!==e&&(fe=e,$t(),Et=n.scroll,h=n.scrollFn,Et===!0&&(Et=nt(e,!0)));var u=0,m=Et;do{var p=m,w=T(p),D=w.top,H=w.bottom,A=w.left,V=w.right,O=w.width,ot=w.height,z=void 0,it=void 0,bt=p.scrollWidth,ut=p.scrollHeight,k=f(p),Q=p.scrollLeft,It=p.scrollTop;p===l?(z=O<bt&&(k.overflowX==="auto"||k.overflowX==="scroll"||k.overflowX==="visible"),it=ot<ut&&(k.overflowY==="auto"||k.overflowY==="scroll"||k.overflowY==="visible")):(z=O<bt&&(k.overflowX==="auto"||k.overflowX==="scroll"),it=ot<ut&&(k.overflowY==="auto"||k.overflowY==="scroll"));var G=z&&(Math.abs(V-i)<=a&&Q+O<bt)-(Math.abs(A-i)<=a&&!!Q),dt=it&&(Math.abs(H-r)<=a&&It+ot<ut)-(Math.abs(D-r)<=a&&!!It);if(!C[u])for(var rt=0;rt<=u;rt++)C[rt]||(C[rt]={});(C[u].vx!=G||C[u].vy!=dt||C[u].el!==p)&&(C[u].el=p,C[u].vx=G,C[u].vy=dt,clearInterval(C[u].pid),(G!=0||dt!=0)&&(d=!0,C[u].pid=setInterval(function(){o&&this.layer===0&&g.active._onTouchMove(Ut);var J=C[this.layer].vy?C[this.layer].vy*s:0,at=C[this.layer].vx?C[this.layer].vx*s:0;typeof h=="function"&&h.call(g.dragged.parentNode[M],at,J,t,Ut,C[this.layer].el)!=="continue"||ze(C[this.layer].el,at,J)}.bind({layer:u}),24))),u++}while(n.bubbleScroll&&m!==l&&(m=nt(m,!1)));ge=d}},30),Ze=function(t){var n=t.originalEvent,e=t.putSortable,o=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(n){var l=e||i;a();var d=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,h=document.elementFromPoint(d.clientX,d.clientY);s(),l&&!l.el.contains(h)&&(r("spill"),this.onSpill({dragEl:o,putSortable:e}))}};function ve(){}ve.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,e=t.putSortable;this.sortable.captureAnimationState(),e&&e.captureAnimationState();var o=mt(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),e&&e.animateAll()},drop:Ze},U(ve,{pluginName:"revertOnSpill"});function ce(){}ce.prototype={onSpill:function(t){var n=t.dragEl,e=t.putSortable,o=e||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:Ze},U(ce,{pluginName:"removeOnSpill"}),g.mount(new Bn),g.mount(ce,ve);function Fn(t,n,e={}){let o;const{document:i=Qe,...r}=e,a={onUpdate:h=>{$n(n,h.oldIndex,h.newIndex,h)}},s=()=>{const h=typeof t=="string"?i?.querySelector(t):en(t);!h||o!==void 0||(o=new g(h,{...a,...r}))},l=()=>{o?.destroy(),o=void 0},d=(h,u)=>{if(u!==void 0)o?.option(h,u);else return o?.option(h)};return Je(s),tn(l),{stop:l,start:s,option:d}}function zn(t,n,e){const o=t.children[e];t.insertBefore(n,o)}function jn(t){t.parentNode&&t.parentNode.removeChild(t)}function $n(t,n,e,o=null){o!=null&&(jn(o.item),zn(o.from,o.item,n));const i=nn(t),r=i?[...we(t)]:we(t);if(e>=0&&e<r.length){const a=r.splice(n,1)[0];ue(()=>{r.splice(e,0,a),i&&(t.value=r)})}}const Wn={name:"ArrowDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Hn=["aria-hidden","aria-label"],Vn=["fill","width","height"],Gn={d:"M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z"},qn={key:0};function Zn(t,n,e,o,i,r){return F(),j("span",Ht(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon arrow-down-icon",role:"img",onClick:n[0]||(n[0]=a=>t.$emit("click",a))}),[(F(),j("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[q("path",Gn,[e.title?(F(),j("title",qn,Kt(e.title),1)):ke("",!0)])],8,Vn))],16,Hn)}const Un=Qt(Wn,[["render",Zn]]),Kn={name:"ArrowUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qn=["aria-hidden","aria-label"],Jn=["fill","width","height"],to={d:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z"},eo={key:0};function no(t,n,e,o,i,r){return F(),j("span",Ht(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon arrow-up-icon",role:"img",onClick:n[0]||(n[0]=a=>t.$emit("click",a))}),[(F(),j("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[q("path",to,[e.title?(F(),j("title",eo,Kt(e.title),1)):ke("",!0)])],8,Jn))],16,Qn)}const oo=Qt(Kn,[["render",no]]),io={width:"20",height:"20",viewBox:"0 0 20 20",role:"presentation"},ro=["xlink:href"],ao={class:"order-selector-element__label"},lo={class:"order-selector-element__actions"},so={"aria-hidden":"true",class:"order-selector-element__placeholder"},co={"aria-hidden":"true",class:"order-selector-element__placeholder"},uo=Le({__name:"AppOrderSelectorElement",props:{ariaDescribedby:{},ariaDetails:{},app:{},isFirst:{type:Boolean},isLast:{type:Boolean}},emits:["move:up","move:down","update:focus"],setup(t,{expose:n,emit:e}){const o=t,i=e;n({keepFocus:h});const r=De("buttonUp"),a=De("buttonDown");let s=0;function l(){i("move:up"),s=1}function d(){i("move:down"),s=-1}function h(){s!==0&&((s===1||o.isLast)&&!o.isFirst?ue(()=>r.value.$el.focus()):ue(()=>a.value.$el.focus())),s=0}return(u,m)=>(F(),j("li",{class:on(["order-selector-element",{"order-selector-element--disabled":t.app.default}]),onFocusin:m[0]||(m[0]=p=>u.$emit("update:focus"))},[(F(),j("svg",io,[q("image",{preserveAspectRatio:"xMinYMin meet",x:"0",y:"0",width:"20",height:"20","xlink:href":t.app.icon,class:"order-selector-element__icon"},null,8,ro)])),q("div",ao,Kt(t.app.label??t.app.id),1),q("div",lo,[Pt(kt(wt(Se),{ref:"buttonUp","aria-label":wt(Wt)("settings","Move up"),"aria-describedby":t.ariaDescribedby,"aria-details":t.ariaDetails,variant:"tertiary-no-background",onClick:l},{icon:Ee(()=>[kt(oo,{size:20})]),_:1},8,["aria-label","aria-describedby","aria-details"]),[[Mt,!t.isFirst&&!t.app.default]]),Pt(q("div",so,null,512),[[Mt,t.isFirst||!!t.app.default]]),Pt(kt(wt(Se),{ref:"buttonDown","aria-label":wt(Wt)("settings","Move down"),"aria-describedby":t.ariaDescribedby,"aria-details":t.ariaDetails,variant:"tertiary-no-background",onClick:d},{icon:Ee(()=>[kt(Un,{size:20})]),_:1},8,["aria-label","aria-describedby","aria-details"]),[[Mt,!t.isLast&&!t.app.default]]),Pt(q("div",co,null,512),[[Mt,t.isLast||!!t.app.default]])])],34))}}),ho=Qt(uo,[["__scopeId","data-v-0cd72c2d"]]),po=["aria-label"],fo=Le({inheritAttrs:!1,__name:"AppOrderSelector",props:rn({ariaDetails:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=an(t,"modelValue"),e=Lt(null),o=Lt(0),i=dn({get:()=>n.value,set:u=>{const m=[...u].sort((p,w)=>(w.default?1:0)-(p.default?1:0)||u.indexOf(p)-u.indexOf(w));m.some(({id:p},w)=>p!==n.value.at(w)?.id)?n.value=m:o.value+=1}});Fn(e,i,{filter:".order-selector-element--disabled"});const r=Lt([]);ln(()=>{r.value.forEach(u=>u.keepFocus())});function a(u){const m=u>1?n.value.slice(0,u-1):[];if(n.value[u-1]?.default)return;const p=[n.value[u-1]];u<n.value.length-1&&p.push(...n.value.slice(u+1)),n.value=[...m,n.value[u],...p]}function s(u){const m=u>0?n.value.slice(0,u):[];m.push(n.value[u+1]);const p=u<n.value.length-2?n.value.slice(u+2):[];n.value=[...m,n.value[u],...p]}const l=Lt(""),d=`sorting-status-info-${(Math.random()+1).toString(36).substring(7)}`;function h(u){const m=n.value.at(u);l.value=Wt("theming","Current selected app: {app}, position {position} of {total}",{app:m.label??m.id,position:u+1,total:n.value.length})}return(u,m)=>(F(),j(_e,null,[q("div",{id:d,"aria-live":"polite",class:"hidden-visually",role:"status"},Kt(l.value),1),q("ol",Ht(u.$attrs,{ref_key:"listElement",ref:e,class:u.$style.appOrderSelector,"aria-label":wt(Wt)("theming","Navigation bar app order")}),[(F(!0),j(_e,null,sn(i.value,(p,w)=>(F(),cn(ho,Ht({key:`${p.id}${o.value}`,ref_for:!0,ref_key:"selectorElements",ref:r,app:p,"aria-details":t.ariaDetails,"aria-describedby":d,isFirst:w===0||!!i.value[w-1].default,isLast:w===i.value.length-1},un(p.default?{}:{"move:up":()=>a(w),"move:down":()=>s(w),"update:focus":()=>h(w)})),null,16,["app","aria-details","isFirst","isLast"]))),128))],16,po)],64))}}),go="_appOrderSelector_cz3jm_2",vo={appOrderSelector:go},mo={$style:vo},To=Qt(fo,[["__cssModules",mo]]),xo=hn().detectLogLevel().setApp("theming").build();function Oo(t){return bo(t)>.6?"#000000":"#ffffff"}function bo(t){const[n,e,o]=yo(t);return(.2126*n+.7152*e+.0722*o)/255}function yo(t){if(t.length<6){const e=/^#?([a-f\d])([a-f\d])([a-f\d])/i.exec(t);e&&(t=`#${e[1].repeat(2)}${e[2].repeat(2)}${e[3].repeat(2)}`)}const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[0,0,0]}async function No(){const t=[...document.head.querySelectorAll("link.theme")].map(n=>new Promise((e,o)=>{const i=new URL(n.href);i.searchParams.set("v",Date.now().toString());const r=n.cloneNode();r.href=i.toString(),r.onerror=o,r.onload=()=>{n.remove(),e()},document.head.append(r)}));await Promise.allSettled(t)}export{To as A,Oo as g,xo as l,No as r};
//# sourceMappingURL=refreshStyles-BTeBMyjq.chunk.mjs.map