From 78096044c01925496d8cde52182489c3800d5c13 Mon Sep 17 00:00:00 2001 From: Andrew Embler Date: Tue, 10 Sep 2024 09:14:44 -0700 Subject: [PATCH 1/3] Fixing some strict errors --- controllers/backend/user_interface.php | 2 +- controllers/backend/user_interface/block.php | 2 +- controllers/backend/user_interface/file.php | 2 +- controllers/backend/user_interface/page.php | 2 +- controllers/dialog/area/design.php | 2 +- controllers/dialog/event/summary_templates.php | 2 +- controllers/dialog/tree/node.php | 2 +- src/View/View.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/controllers/backend/user_interface.php b/controllers/backend/user_interface.php index be88b69f70..0fee5bd76f 100644 --- a/controllers/backend/user_interface.php +++ b/controllers/backend/user_interface.php @@ -71,7 +71,7 @@ public function getViewObject() public function action() { $token = isset($this->validationToken) ? $this->validationToken : get_class($this); - $url = (string) call_user_func_array('parent::action', func_get_args()); + $url = (string) call_user_func_array([parent::class, 'action'], func_get_args()); $url .= (strpos($url, '?') === false ? '?' : '&') . $this->app->make('token')->getParameter($token); return $url; diff --git a/controllers/backend/user_interface/block.php b/controllers/backend/user_interface/block.php index 9f7040acd5..9c91954a4b 100644 --- a/controllers/backend/user_interface/block.php +++ b/controllers/backend/user_interface/block.php @@ -129,7 +129,7 @@ protected function getBlockToEdit() public function action() { - $url = call_user_func_array('parent::action', func_get_args()); + $url = call_user_func_array([parent::class, 'action'], func_get_args()); $url .= '&arHandle=' . urlencode($this->area->getAreaHandle()); $url .= '&bID=' . $this->block->getBlockID(); diff --git a/controllers/backend/user_interface/file.php b/controllers/backend/user_interface/file.php index bd4f918e6e..d8120cfaf5 100644 --- a/controllers/backend/user_interface/file.php +++ b/controllers/backend/user_interface/file.php @@ -46,7 +46,7 @@ public function getViewObject() public function action() { - $url = call_user_func_array('parent::action', func_get_args()); + $url = call_user_func_array([parent::class, 'action'], func_get_args()); $url .= '&fID=' . $this->file->getFileID(); return $url; diff --git a/controllers/backend/user_interface/page.php b/controllers/backend/user_interface/page.php index 98b7c7f49e..b2cad63d7f 100644 --- a/controllers/backend/user_interface/page.php +++ b/controllers/backend/user_interface/page.php @@ -55,7 +55,7 @@ public function action() } else { $cID = $this->page->getCollectionID(); } - $url = call_user_func_array('parent::action', func_get_args()); + $url = call_user_func_array([parent::class, 'action'], func_get_args()); $url .= '&cID=' . $cID; return $url; diff --git a/controllers/dialog/area/design.php b/controllers/dialog/area/design.php index f59bac7c53..6367959183 100644 --- a/controllers/dialog/area/design.php +++ b/controllers/dialog/area/design.php @@ -111,7 +111,7 @@ public function submit() public function action() { - $url = call_user_func_array('parent::action', func_get_args()); + $url = call_user_func_array([parent::class, 'action'], func_get_args()); $url .= '&arHandle=' . h($this->area->getAreaHandle()); return $url; diff --git a/controllers/dialog/event/summary_templates.php b/controllers/dialog/event/summary_templates.php index c5ea960249..f68414c377 100644 --- a/controllers/dialog/event/summary_templates.php +++ b/controllers/dialog/event/summary_templates.php @@ -52,7 +52,7 @@ protected function getOccurrenceFromRequest(): CalendarEventVersionOccurrence public function action() { $occurrence = $this->getOccurrenceFromRequest(); - $url = call_user_func_array('parent::action', func_get_args()); + $url = call_user_func_array([parent::class, 'action'], func_get_args()); $url .= '&versionOccurrenceID=' . $occurrence->getID(); return $url; } diff --git a/controllers/dialog/tree/node.php b/controllers/dialog/tree/node.php index 9c26b20734..bebb9b86cd 100644 --- a/controllers/dialog/tree/node.php +++ b/controllers/dialog/tree/node.php @@ -26,7 +26,7 @@ public function view() public function action() { - $url = call_user_func_array('parent::action', func_get_args()); + $url = call_user_func_array([parent::class, 'action'], func_get_args()); if (isset($this->node)) { $url .= '&treeNodeID=' . $this->node->getTreeNodeID(); } diff --git a/src/View/View.php b/src/View/View.php index a0a61e7f94..674abf67d3 100644 --- a/src/View/View.php +++ b/src/View/View.php @@ -297,7 +297,7 @@ public function renderViewContents($scopeItems) } // Render the template around it - if (file_exists($this->template)) { + if ($this->template != '' && file_exists($this->template)) { $contents = $this->renderTemplate($scopeItems, $contents); } From 62bc7e42456a190a6bb1ebd94887d3ebff25f216 Mon Sep 17 00:00:00 2001 From: Andrew Embler Date: Tue, 10 Sep 2024 11:00:22 -0700 Subject: [PATCH 2/3] Fix #12175 --- blocks/gallery/auto.js | 4 +- controllers/backend/group/chooser.php | 10 +- js/ckeditor/concrete.js | 2 +- js/cms.js | 56 ++--- js/features/accordions/frontend.js | 18 +- js/features/account/frontend.js | 4 +- js/features/calendar/frontend.js | 4 +- js/features/conversations/frontend.js | 2 +- js/features/desktop/frontend.js | 40 +-- js/features/documents/frontend.js | 38 +-- js/features/imagery/frontend.js | 2 +- js/features/navigation/frontend.js | 2 +- js/fullcalendar.js | 4 +- themes/atomik/main.js | 44 ++-- themes/concrete/main.js | 42 ++-- themes/dashboard/main.js | 342 +++++++++++++------------- 16 files changed, 311 insertions(+), 303 deletions(-) diff --git a/blocks/gallery/auto.js b/blocks/gallery/auto.js index 92b2a655b0..0714a43580 100644 --- a/blocks/gallery/auto.js +++ b/blocks/gallery/auto.js @@ -1,7 +1,7 @@ -(()=>{var e={1790:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e) +(()=>{var e={7673:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e) /**! * Sortable 1.10.2 * @author RubaXa * @author owenm * @license MIT - */}function o(e){return o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},o(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);twt,Sortable:()=>ze,Swap:()=>ct,default:()=>xt});function u(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var d=u(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),p=u(/Edge/i),h=u(/firefox/i),f=u(/safari/i)&&!u(/chrome/i)&&!u(/android/i),g=u(/iP(ad|od|hone)/i),m=u(/chrome/i)&&u(/android/i),v={capture:!1,passive:!1};function b(e,t,n){e.addEventListener(t,n,!d&&v)}function y(e,t,n){e.removeEventListener(t,n,!d&&v)}function w(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(e){return!1}return!1}}function k(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function S(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&w(e,t):w(e,t))||r&&e===n)return e;if(e===n)break}while(e=k(e))}return null}var x,C=/\s+/g;function A(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(C," ")}}function _(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function D(e,t){var n="";if("string"==typeof e)n=e;else do{var r=_(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function O(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o=i:o<=i))return r;if(r===E())break;r=N(r,!1)}return!1}function j(e,t,n){for(var r=0,o=0,i=e.children;o2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=s(n,["evt"]);X.pluginEvent.bind(ze)(e,t,l({dragEl:J,parentEl:Q,ghostEl:Z,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:re,cloneHidden:oe,dragStarted:ve,putSortable:ue,activeSortable:ze.active,originalEvent:r,oldIndex:ie,oldDraggableIndex:le,newIndex:ae,newDraggableIndex:se,hideGhostForTarget:Re,unhideGhostForTarget:Le,cloneNowHidden:function(){oe=!0},cloneNowShown:function(){oe=!1},dispatchSortableEvent:function(e){K({sortable:t,name:e,originalEvent:r})}},o))};function K(e){Y(l({putSortable:ue,cloneEl:re,targetEl:J,rootEl:ee,oldIndex:ie,oldDraggableIndex:le,newIndex:ae,newDraggableIndex:se},e))}var J,Q,Z,ee,te,ne,re,oe,ie,ae,le,se,ce,ue,de,pe,he,fe,ge,me,ve,be,ye,we,ke,Se=!1,xe=!1,Ce=[],Ae=!1,_e=!1,De=[],Oe=!1,Ee=[],Te="undefined"!=typeof document,Pe=g,je=p||d?"cssFloat":"float",Me=Te&&!m&&!g&&"draggable"in document.createElement("div"),Ie=function(){if(Te){if(d)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),qe=function(e,t){var n=_(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=j(e,0,t),i=j(e,1,t),a=o&&_(o),l=i&&_(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+T(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+T(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[je]||i&&"none"===n[je]&&s+c>r)?"vertical":"horizontal"},Ne=function(e){function t(e,n){return function(r,o,i,a){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var s=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==o(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Re=function(){!Ie&&Z&&_(Z,"display","none")},Le=function(){!Ie&&Z&&_(Z,"display","")};Te&&document.addEventListener("click",(function(e){if(xe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),xe=!1,!1}),!0);var Be=function(e){if(J){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,Ce.some((function(e){if(!M(e)){var t=T(e),n=e[H].options.emptyInsertThreshold,r=o>=t.left-n&&o<=t.right+n,l=i>=t.top-n&&i<=t.bottom+n;return n&&r&&l?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[H]._onDragOver(n)}}var o,i,a},Fe=function(e){J&&J.parentNode[H]._isOutsideThisEl(e.target)};function ze(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=a({},t),e[H]=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 qe(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(e,t){e.setData("Text",t.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:!1!==ze.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in X.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in Ne(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Me,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?b(e,"pointerdown",this._onTapStart):(b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Ce.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),a(this,U())}function $e(e,t,n,r,o,i,a,l){var s,c,u=e[H],h=u.options.onMove;return!window.CustomEvent||d||p?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=o||t,s.relatedRect=i||T(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),h&&(c=h.call(u,s,a)),c}function He(e){e.draggable=!1}function Ue(){Oe=!1}function Ve(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function We(e){return setTimeout(e,0)}function Xe(e){return clearTimeout(e)}ze.prototype={constructor:ze,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(be=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,J):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=r.filter;if(function(e){Ee.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Ee.push(r)}}(n),!J&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled||s.isContentEditable||(l=S(l,r.draggable,n,!1))&&l.animated||ne===l)){if(ie=I(l),le=I(l,r.draggable),"function"==typeof c){if(c.call(this,e,l,this))return K({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),G("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=S(s,r.trim(),n,!1))return K({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),G("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!S(s,r.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,l=i.ownerDocument;if(n&&!J&&n.parentNode===i){var s=T(n);if(ee=i,Q=(J=n).parentNode,te=J.nextSibling,ne=n,ce=a.group,ze.dragged=J,de={target:J,clientX:(t||e).clientX,clientY:(t||e).clientY},ge=de.clientX-s.left,me=de.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,J.style["will-change"]="all",r=function(){G("delayEnded",o,{evt:e}),ze.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!h&&o.nativeDraggable&&(J.draggable=!0),o._triggerDragStart(e,t),K({sortable:o,name:"choose",originalEvent:e}),A(J,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){O(J,e.trim(),He)})),b(l,"dragover",Be),b(l,"mousemove",Be),b(l,"touchmove",Be),b(l,"mouseup",o._onDrop),b(l,"touchend",o._onDrop),b(l,"touchcancel",o._onDrop),h&&this.nativeDraggable&&(this.options.touchStartThreshold=4,J.draggable=!0),G("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(p||d))r();else{if(ze.eventCanceled)return void this._onDrop();b(l,"mouseup",o._disableDelayedDrag),b(l,"touchend",o._disableDelayedDrag),b(l,"touchcancel",o._disableDelayedDrag),b(l,"mousemove",o._delayedDragTouchMoveHandler),b(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&b(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){J&&He(J),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;y(e,"mouseup",this._disableDelayedDrag),y(e,"touchend",this._disableDelayedDrag),y(e,"touchcancel",this._disableDelayedDrag),y(e,"mousemove",this._delayedDragTouchMoveHandler),y(e,"touchmove",this._delayedDragTouchMoveHandler),y(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):b(document,t?"touchmove":"mousemove",this._onTouchMove):(b(J,"dragend",this),b(ee,"dragstart",this._onDragStart));try{document.selection?We((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Se=!1,ee&&J){G("dragStarted",this,{evt:t}),this.nativeDraggable&&b(document,"dragover",Fe);var n=this.options;!e&&A(J,n.dragClass,!1),A(J,n.ghostClass,!0),ze.active=this,e&&this._appendGhost(),K({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(pe){this._lastX=pe.clientX,this._lastY=pe.clientY,Re();for(var e=document.elementFromPoint(pe.clientX,pe.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(pe.clientX,pe.clientY))!==t;)t=e;if(J.parentNode[H]._isOutsideThisEl(e),t)do{if(t[H]){if(t[H]._onDragOver({clientX:pe.clientX,clientY:pe.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Le()}},_onTouchMove:function(e){if(de){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=Z&&D(Z,!0),a=Z&&i&&i.a,l=Z&&i&&i.d,s=Pe&&ke&&q(ke),c=(o.clientX-de.clientX+r.x)/(a||1)+(s?s[0]-De[0]:0)/(a||1),u=(o.clientY-de.clientY+r.y)/(l||1)+(s?s[1]-De[1]:0)/(l||1);if(!ze.active&&!Se){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))r.right+o||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+o}(e,o,this)&&!m.animated){if(m===J)return L(!1);if(m&&i===e.target&&(a=m),a&&(n=T(a)),!1!==$e(ee,i,J,t,a,n,e,!!a))return R(),i.appendChild(J),Q=i,F(),L(!0)}else if(a.parentNode===i){n=T(a);var v,b,y,w=J.parentNode!==i,k=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return r===a||o===l||r+i/2===a+s/2}(J.animated&&J.toRect||t,a.animated&&a.toRect||n,o),x=o?"top":"left",C=P(a,"top","top")||P(J,"top","top"),D=C?C.scrollTop:void 0;if(be!==a&&(b=n[x],Ae=!1,_e=!k&&s.invertSwap||w),v=function(e,t,n,r,o,i,a,l){var s=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!a)if(l&&weu+c*i/2:sd-we)return-ye}else if(s>u+c*(1-o)/2&&sd-c*i/2))return s>u+c/2?1:-1;return 0}(e,a,n,o,k?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,_e,be===a),0!==v){var O=I(J);do{O-=v,y=Q.children[O]}while(y&&("none"===_(y,"display")||y===Z))}if(0===v||y===a)return L(!1);be=a,ye=v;var E=a.nextElementSibling,j=!1,q=$e(ee,i,J,t,a,n,e,j=1===v);if(!1!==q)return 1!==q&&-1!==q||(j=1===q),Oe=!0,setTimeout(Ue,30),R(),j&&!E?i.appendChild(J):a.parentNode.insertBefore(J,j?E:a),C&&B(C,0,D-C.scrollTop),Q=J.parentNode,void 0===b||_e||(we=Math.abs(b-T(a)[x])),F(),L(!0)}if(i.contains(J))return L(!1)}return!1}function N(s,c){G(s,f,l({evt:e,isOwner:d,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:p,fromSortable:h,target:a,completed:L,onMove:function(n,r){return $e(ee,i,J,t,n,T(n),e,r)},changed:F},c))}function R(){N("dragOverAnimationCapture"),f.captureAnimationState(),f!==h&&h.captureAnimationState()}function L(t){return N("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(f),f!==h&&(A(J,ue?ue.options.ghostClass:u.options.ghostClass,!1),A(J,s.ghostClass,!0)),ue!==f&&f!==ze.active?ue=f:f===ze.active&&ue&&(ue=null),h===f&&(f._ignoreWhileAnimating=a),f.animateAll((function(){N("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(a===J&&!J.animated||a===i&&!a.animated)&&(be=null),s.dragoverBubble||e.rootEl||a===document||(J.parentNode[H]._isOutsideThisEl(e.target),!t&&Be(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function F(){ae=I(J),se=I(J,s.draggable),K({sortable:f,name:"change",toEl:i,newIndex:ae,newDraggableIndex:se,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){y(document,"mousemove",this._onTouchMove),y(document,"touchmove",this._onTouchMove),y(document,"pointermove",this._onTouchMove),y(document,"dragover",Be),y(document,"mousemove",Be),y(document,"touchmove",Be)},_offUpEvents:function(){var e=this.el.ownerDocument;y(e,"mouseup",this._onDrop),y(e,"touchend",this._onDrop),y(e,"pointerup",this._onDrop),y(e,"touchcancel",this._onDrop),y(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ae=I(J),se=I(J,n.draggable),G("drop",this,{evt:e}),Q=J&&J.parentNode,ae=I(J),se=I(J,n.draggable),ze.eventCanceled||(Se=!1,_e=!1,Ae=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Xe(this.cloneId),Xe(this._dragStartId),this.nativeDraggable&&(y(document,"drop",this),y(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&_(document.body,"user-select",""),_(J,"transform",""),e&&(ve&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Z&&Z.parentNode&&Z.parentNode.removeChild(Z),(ee===Q||ue&&"clone"!==ue.lastPutMode)&&re&&re.parentNode&&re.parentNode.removeChild(re),J&&(this.nativeDraggable&&y(J,"dragend",this),He(J),J.style["will-change"]="",ve&&!Se&&A(J,ue?ue.options.ghostClass:this.options.ghostClass,!1),A(J,this.options.chosenClass,!1),K({sortable:this,name:"unchoose",toEl:Q,newIndex:null,newDraggableIndex:null,originalEvent:e}),ee!==Q?(ae>=0&&(K({rootEl:Q,name:"add",toEl:Q,fromEl:ee,originalEvent:e}),K({sortable:this,name:"remove",toEl:Q,originalEvent:e}),K({rootEl:Q,name:"sort",toEl:Q,fromEl:ee,originalEvent:e}),K({sortable:this,name:"sort",toEl:Q,originalEvent:e})),ue&&ue.save()):ae!==ie&&ae>=0&&(K({sortable:this,name:"update",toEl:Q,originalEvent:e}),K({sortable:this,name:"sort",toEl:Q,originalEvent:e})),ze.active&&(null!=ae&&-1!==ae||(ae=ie,se=le),K({sortable:this,name:"end",toEl:Q,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){G("nulling",this),ee=J=Q=Z=te=re=ne=oe=de=pe=ve=ae=se=ie=le=be=ye=ue=ce=ze.dragged=ze.ghost=ze.clone=ze.active=null,Ee.forEach((function(e){e.checked=!0})),Ee.length=he=fe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":J&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r1&&(gt.forEach((function(e){r.addAnimationState({target:e,rect:bt?T(e):o}),$(e),e.fromRect=o,t.removeAnimationState(e)})),bt=!1,function(e,t){gt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,i=e.parentEl,a=e.putSortable,l=this.options;if(r){if(n&&o._hideClone(),vt=!1,l.animation&>.length>1&&(bt||!n&&!o.options.sort&&!a)){var s=T(pt,!1,!0,!0);gt.forEach((function(e){e!==pt&&(z(e,s),i.appendChild(e))})),bt=!0}if(!n)if(bt||St(),gt.length>1){var c=ft;o._showClone(t),o.options.animation&&!ft&&c&&mt.forEach((function(e){o.addAnimationState({target:e,rect:ht}),e.fromRect=ht,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(gt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){ht=a({},t);var o=D(pt,!0);ht.top-=o.f,ht.left-=o.e}},dragOverAnimationComplete:function(){bt&&(bt=!1,St())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,l=e.putSortable,s=l||this.sortable;if(t){var c=this.options,u=r.children;if(!yt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),A(pt,c.selectedClass,!~gt.indexOf(pt)),~gt.indexOf(pt))gt.splice(gt.indexOf(pt),1),ut=null,Y({sortable:o,rootEl:n,name:"deselect",targetEl:pt,originalEvt:t});else{if(gt.push(pt),Y({sortable:o,rootEl:n,name:"select",targetEl:pt,originalEvt:t}),t.shiftKey&&ut&&o.el.contains(ut)){var d,p,h=I(ut),f=I(pt);if(~h&&~f&&h!==f)for(f>h?(p=h,d=f):(p=f,d=h+1);p1){var g=T(pt),m=I(pt,":not(."+this.options.selectedClass+")");if(!vt&&c.animation&&(pt.thisAnimationDuration=null),s.captureAnimationState(),!vt&&(c.animation&&(pt.fromRect=g,gt.forEach((function(e){if(e.thisAnimationDuration=null,e!==pt){var t=bt?T(e):g;e.fromRect=t,s.addAnimationState({target:e,rect:t})}}))),St(),gt.forEach((function(e){u[m]?r.insertBefore(e,u[m]):r.appendChild(e),m++})),a===I(pt))){var v=!1;gt.forEach((function(e){e.sortableIndex===I(e)||(v=!0)})),v&&i("update")}gt.forEach((function(e){$(e)})),s.animateAll()}dt=s}(n===r||l&&"clone"!==l.lastPutMode)&&mt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=yt=!1,mt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),y(document,"pointerup",this._deselectMultiDrag),y(document,"mouseup",this._deselectMultiDrag),y(document,"touchend",this._deselectMultiDrag),y(document,"keydown",this._checkKeyDown),y(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==yt&&yt||dt!==this.sortable||e&&S(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;gt.length;){var t=gt[0];A(t,this.options.selectedClass,!1),gt.shift(),Y({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},a(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[H];t&&t.options.multiDrag&&!~gt.indexOf(e)&&(dt&&dt!==t&&(dt.multiDrag._deselectMultiDrag(),dt=t),A(e,t.options.selectedClass,!0),gt.push(e))},deselect:function(e){var t=e.parentNode[H],n=gt.indexOf(e);t&&t.options.multiDrag&&~n&&(A(e,t.options.selectedClass,!1),gt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return gt.forEach((function(r){var o;t.push({multiDragElement:r,index:r.sortableIndex}),o=bt&&r!==pt?-1:bt?I(r,":not(."+e.options.selectedClass+")"):I(r),n.push({multiDragElement:r,index:o})})),{items:c(gt),clones:[].concat(mt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function kt(e,t){mt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function St(){gt.forEach((function(e){e!==pt&&e.parentNode&&e.parentNode.removeChild(e)}))}ze.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):t.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):(y(document,"pointermove",this._handleFallbackAutoScroll),y(document,"touchmove",this._handleFallbackAutoScroll),y(document,"mousemove",this._handleFallbackAutoScroll)),rt(),nt(),clearTimeout(x),x=void 0},nulling:function(){Qe=Ge=Ye=tt=Ze=Ke=Je=null,et.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(Qe=e,t||p||d||f){it(e,this.options,i,t);var a=N(i,!0);!tt||Ze&&r===Ke&&o===Je||(Ze&&rt(),Ze=setInterval((function(){var i=N(document.elementFromPoint(r,o),!0);i!==a&&(a=i,nt()),it(e,n.options,i,t)}),10),Ke=r,Je=o)}else{if(!this.options.bubbleScroll||N(i,!0)===E())return void nt();it(e,this.options,N(i,!1),!1)}}},a(e,{pluginName:"scroll",initializeByDefault:!0})}),ze.mount(st,lt);const xt=ze},6384:function(e,t,n){var r,o,i,a;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}e=n.nmd(e),"undefined"!=typeof self&&self,a=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===l(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),o=n("5ca1"),i=n("2aba"),a=n("32e9"),l=n("84f2"),s=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),h="keys",f="values",g=function(){return this};e.exports=function(e,t,n,m,v,b,y){s(n,t,m);var w,k,S,x=function(e){if(!p&&e in D)return D[e];switch(e){case h:case f:return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",A=v==f,_=!1,D=e.prototype,O=D[d]||D["@@iterator"]||v&&D[v],E=O||x(v),T=v?A?x("entries"):E:void 0,P="Array"==t&&D.entries||O;if(P&&(S=u(P.call(new e)))!==Object.prototype&&S.next&&(c(S,C,!0),r||"function"==typeof S[d]||a(S,d,g)),A&&O&&O.name!==f&&(_=!0,E=function(){return O.call(this)}),r&&!y||!p&&!_&&D[d]||a(D,d,E),l[t]=E,l[C]=g,v)if(w={values:A?E:x(f),keys:b?E:x(h),entries:T},y)for(k in w)k in D||i(D,k,w[k]);else o(o.P+o.F*(p||_),t,w);return w}},"02f4":function(e,t,n){var r=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){var i,a,l=String(o(t)),s=r(n),c=l.length;return s<0||s>=c?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===c||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return r(e,o)}},1495:function(e,t,n){var r=n("86cc"),o=n("cb7c"),i=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),l=a.length,s=0;l>s;)r.f(e,n=a[s++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),o=n("32e9"),i=n("79e5"),a=n("be13"),l=n("2b4c"),s=n("520a"),c=l("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var p=l(e),h=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),f=h?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[p](""),!t})):void 0;if(!h||!f||"replace"===e&&!u||"split"===e&&!d){var g=/./[p],m=n(a,p,""[e],(function(e,t,n,r,o){return t.exec===s?h&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=m[0],b=m[1];r(String.prototype,e,v),o(RegExp.prototype,p,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),o=n("7726").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),o=n("2b4c")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),o=n("32e9"),i=n("69a8"),a=n("ca5a")("src"),l=n("fa5b"),s="toString",c=(""+l).split(s);n("8378").inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,l){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(s&&(i(n,a)||o(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:l?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,s,(function(){return"function"==typeof this&&this[a]||l.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),o=n("1495"),i=n("e11e"),a=n("613b")("IE_PROTO"),l=function(){},s="prototype",c=function(){var e,t=n("230e")("iframe"),r=i.length;for(t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("