mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-04-23 10:18:55 +00:00
2 lines
36 KiB
JavaScript
2 lines
36 KiB
JavaScript
System.register(["./chunk-legacy-B9MfnjDG.js"],function(t,e){var n,o,i,r,a,l,s,c,u,d,h,f,p,g,v,m,b,y,w,E,D,S,_,T,C,x,O,M,N,A,P,I,k,X,Y,R,B,F,j,H,L,W,z,G,U,V,q,Z,K,Q,$,J,tt,et,nt,ot,it,rt,at,lt,st,ct,ut,dt,ht,ft,pt,gt,vt,mt,bt,yt;function wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function Et(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(n),!0).forEach(function(e){St(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Dt(t){return Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(t)}function St(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _t(){return _t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},_t.apply(this,arguments)}function Tt(t,e){if(null==t)return{};var n,o,i=function(t,e){if(null==t)return{};var n,o,i={},r=Object.keys(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ct(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}function xt(t,e,n){t.addEventListener(e,n,!o&&c)}function Ot(t,e,n){t.removeEventListener(e,n,!o&&c)}function Mt(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function Nt(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function At(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&Mt(t,e):Mt(t,e))||o&&t===n)return t;if(t===n)break}while(t=Nt(t))}return null}function Pt(t,e,n){t&&e&&(t.classList?t.classList[n?"add":"remove"](e):t.className=((" "+t.className+" ").replace(u," ").replace(" "+e+" "," ")+(n?" "+e:"")).replace(u," "))}function It(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function kt(t,e){var n="";if("string"==typeof t)n=t;else do{var o=It(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Xt(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function Yt(){var t=document.scrollingElement;return t||document.documentElement}function Rt(t,e,n,i,r){if(t.getBoundingClientRect||t===window){var a,l,s,c,u,d,h;if(t!==window&&t.parentNode&&t!==Yt()?(l=(a=t.getBoundingClientRect()).top,s=a.left,c=a.bottom,u=a.right,d=a.height,h=a.width):(l=0,s=0,c=window.innerHeight,u=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!o))do{if(r&&r.getBoundingClientRect&&("none"!==It(r,"transform")||n&&"static"!==It(r,"position"))){var f=r.getBoundingClientRect();l-=f.top+parseInt(It(r,"border-top-width")),s-=f.left+parseInt(It(r,"border-left-width")),c=l+a.height,u=s+a.width;break}}while(r=r.parentNode);if(i&&t!==window){var p=kt(r||t),g=p&&p.a,v=p&&p.d;p&&(c=(l/=v)+(d/=v),u=(s/=g)+(h/=g))}return{top:l,left:s,bottom:c,right:u,width:h,height:d}}}function Bt(t,e,n){for(var o=Wt(t,!0),i=Rt(t)[e];o;){var r=Rt(o)[n];if(!("top"===n||"left"===n?i>=r:i<=r))return o;if(o===Yt())break;o=Wt(o,!1)}return!1}function Ft(t,e,n,o){for(var i=0,r=0,a=t.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==$t.ghost&&(o||a[r]!==$t.dragged)&&At(a[r],n.draggable,t,!1)){if(i===e)return a[r];i++}r++}return null}function jt(t,e){for(var n=t.lastElementChild;n&&(n===$t.ghost||"none"===It(n,"display")||e&&!Mt(n,e));)n=n.previousElementSibling;return n||null}function Ht(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===$t.clone||e&&!Mt(t,e)||n++;return n}function Lt(t){var e=0,n=0,o=Yt();if(t)do{var i=kt(t),r=i.a,a=i.d;e+=t.scrollLeft*r,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function Wt(t,e){if(!t||!t.getBoundingClientRect)return Yt();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=It(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Yt();if(o||e)return n;o=!0}}}while(n=n.parentNode);return Yt()}function zt(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Gt(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function Ut(t,e){return function(){if(!d){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),d=setTimeout(function(){d=void 0},e)}}}function Vt(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function qt(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function Zt(t,e,n){var o={};return Array.from(t.children).forEach(function(i){var r,a,l,s;if(At(i,e.draggable,t,!1)&&!i.animated&&i!==n){var c=Rt(i);o.left=Math.min(null!==(r=o.left)&&void 0!==r?r:1/0,c.left),o.top=Math.min(null!==(a=o.top)&&void 0!==a?a:1/0,c.top),o.right=Math.max(null!==(l=o.right)&&void 0!==l?l:-1/0,c.right),o.bottom=Math.max(null!==(s=o.bottom)&&void 0!==s?s:-1/0,c.bottom)}}),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Kt(){var t,e=[];return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if("none"!==It(t,"display")&&t!==$t.ghost){e.push({target:t,rect:Rt(t)});var n=Et({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=kt(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var i=!1,r=0;e.forEach(function(t){var e=0,n=t.target,a=n.fromRect,l=Rt(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,d=kt(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&Gt(s,l)&&!Gt(a,l)&&(u.top-l.top)/(u.left-l.left)===(a.top-l.top)/(a.left-l.left)&&(e=function(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}(u,s,c,o.options)),Gt(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(i=!0,r=Math.max(r,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},e),n.thisAnimationDuration=e)}),clearTimeout(t),i?t=setTimeout(function(){"function"==typeof n&&n()},r):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){It(t,"transition",""),It(t,"transform","");var i=kt(this.el),r=i&&i.a,a=i&&i.d,l=(e.left-n.left)/(r||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,It(t,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),It(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),It(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){It(t,"transition",""),It(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},o)}}}}function Qt(t){!function(t){var e=t.sortable,n=t.rootEl,r=t.name,a=t.targetEl,l=t.cloneEl,s=t.toEl,c=t.fromEl,u=t.oldIndex,d=t.newIndex,f=t.oldDraggableIndex,p=t.newDraggableIndex,v=t.originalEvent,m=t.putSortable,b=t.extraEventProperties;if(e=e||n&&n[h]){var y,w=e.options,E="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||o||i?(y=document.createEvent("Event")).initEvent(r,!0,!0):y=new CustomEvent(r,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=c||n,y.item=a||n,y.clone=l,y.oldIndex=u,y.newIndex=d,y.oldDraggableIndex=f,y.newDraggableIndex=p,y.originalEvent=v,y.pullMode=m?m.lastPutMode:void 0;var D=Et(Et({},b),g.getEventProperties(r,e));for(var S in D)y[S]=D[S];n&&n.dispatchEvent(y),w[E]&&w[E].call(e,y)}}(Et({putSortable:A,cloneEl:_,targetEl:b,rootEl:E,oldIndex:C,oldDraggableIndex:O,newIndex:x,newDraggableIndex:M},t))}function $t(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=_t({},e),t[h]=this;var n={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 nt(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(t,e){t.setData("Text",e.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!==$t.supportPointer&&"PointerEvent"in window&&(!a||l),emptyInsertThreshold:5};for(var o in g.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var i in rt(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&tt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?xt(t,"pointerdown",this._onTapStart):(xt(t,"mousedown",this._onTapStart),xt(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(xt(t,"dragover",this),xt(t,"dragenter",this)),k.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),_t(this,Kt())}function Jt(t,e,n,r,a,l,s,c){var u,d,f=t[h],p=f.options.onMove;return!window.CustomEvent||o||i?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=e,u.from=t,u.dragged=n,u.draggedRect=r,u.related=a||e,u.relatedRect=l||Rt(e),u.willInsertAfter=c,u.originalEvent=s,t.dispatchEvent(u),p&&(d=p.call(f,u,s)),d}function te(t){t.draggable=!1}function ee(){Z=!1}function ne(t,e,n,o,i,r,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!a)if(l&&U<c*i){if(!z&&(1===W?s>u+c*r/2:s<d-c*r/2)&&(z=!0),z)h=!0;else if(1===W?s<u+U:s>d-U)return-W}else if(s>u+c*(1-i)/2&&s<d-c*(1-i)/2)return function(t){return Ht(b)<Ht(t)?1:-1}(e);return(h=h||a)&&(s<u+c*r/2||s>d-c*r/2)?s>u+c/2?1:-1:0}function oe(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function ie(t){return setTimeout(t,0)}function re(t){return clearTimeout(t)}function ae(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?xt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?xt(document,"pointermove",this._handleFallbackAutoScroll):e.touches?xt(document,"touchmove",this._handleFallbackAutoScroll):xt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?Ot(document,"dragover",this._handleAutoScroll):(Ot(document,"pointermove",this._handleFallbackAutoScroll),Ot(document,"touchmove",this._handleFallbackAutoScroll),Ot(document,"mousemove",this._handleFallbackAutoScroll)),se(),le(),clearTimeout(d),d=void 0},nulling:function(){vt=ht=dt=ft=mt=pt=gt=null,ut.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,r=(t.touches?t.touches[0]:t).clientX,l=(t.touches?t.touches[0]:t).clientY,s=document.elementFromPoint(r,l);if(vt=t,e||this.options.forceAutoScrollFallback||i||o||a){bt(t,this.options,s,e);var c=Wt(s,!0);!ft||mt&&r===pt&&l===gt||(mt&&se(),mt=setInterval(function(){var o=Wt(document.elementFromPoint(r,l),!0);o!==c&&(c=o,le()),bt(t,n.options,o,e)},10),pt=r,gt=l)}else{if(!this.options.bubbleScroll||Wt(s,!0)===Yt())return void le();bt(t,this.options,Wt(s,!1),!1)}}},_t(t,{pluginName:"scroll",initializeByDefault:!0})}function le(){ut.forEach(function(t){clearInterval(t.pid)}),ut=[]}function se(){clearInterval(mt)}function ce(){}function ue(){}return t("t",$t),{setters:[function(t){n=t.n}],execute:function(){t("n",n({Sortable:()=>$t,default:()=>$t})),o=Ct(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),i=Ct(/Edge/i),r=Ct(/firefox/i),a=Ct(/safari/i)&&!Ct(/chrome/i)&&!Ct(/android/i),l=Ct(/iP(ad|od|hone)/i),s=Ct(/chrome/i)&&Ct(/android/i),c={capture:!1,passive:!1},u=/\s+/g,h="Sortable"+(new Date).getTime(),f=[],p={initializeByDefault:!0},g={mount:function(t){for(var e in p)p.hasOwnProperty(e)&&!(e in t)&&(t[e]=p[e]);f.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),f.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var i=t+"Global";f.forEach(function(o){e[o.pluginName]&&(e[o.pluginName][i]&&e[o.pluginName][i](Et({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](Et({sortable:e},n)))})},initializePlugins:function(t,e,n,o){for(var i in f.forEach(function(o){var i=o.pluginName;if(t.options[i]||o.initializeByDefault){var r=new o(t,e,t.options);r.sortable=t,r.options=t.options,t[i]=r,_t(n,r.defaults)}}),t.options)if(t.options.hasOwnProperty(i)){var r=this.modifyOption(t,i,t.options[i]);void 0!==r&&(t.options[i]=r)}},getEventProperties:function(t,e){var n={};return f.forEach(function(o){"function"==typeof o.eventProperties&&_t(n,o.eventProperties.call(e[o.pluginName],t))}),n},modifyOption:function(t,e,n){var o;return f.forEach(function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(o=i.optionListeners[e].call(t[i.pluginName],n))}),o}},v=["evt"],m=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,i=Tt(n,v);g.pluginEvent.bind($t)(t,e,Et({dragEl:b,parentEl:y,ghostEl:w,rootEl:E,nextEl:D,lastDownEl:S,cloneEl:_,cloneHidden:T,dragStarted:H,putSortable:A,activeSortable:$t.active,originalEvent:o,oldIndex:C,oldDraggableIndex:O,newIndex:x,newDraggableIndex:M,hideGhostForTarget:at,unhideGhostForTarget:lt,cloneNowHidden:function(){T=!0},cloneNowShown:function(){T=!1},dispatchSortableEvent:function(t){Qt({sortable:e,name:t,originalEvent:o})}},i))},P=!1,I=!1,k=[],z=!1,G=!1,q=[],Z=!1,K=[],Q="undefined"!=typeof document,$=l,J=i||o?"cssFloat":"float",tt=Q&&!s&&!l&&"draggable"in document.createElement("div"),et=function(){if(Q){if(o)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),nt=function(t,e){var n=It(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Ft(t,0,e),r=Ft(t,1,e),a=i&&It(i),l=r&&It(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Rt(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Rt(r).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(i&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[J]||r&&"none"===n[J]&&s+c>o)?"vertical":"horizontal"},ot=function(t,e,n){var o=n?t.left:t.top,i=n?t.right:t.bottom,r=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===a||i===l||o+r/2===a+s/2},it=function(t,e){var n;return k.some(function(o){var i=o[h].options.emptyInsertThreshold;if(i&&!jt(o)){var r=Rt(o),a=t>=r.left-i&&t<=r.right+i,l=e>=r.top-i&&e<=r.bottom+i;return a&&l?n=o:void 0}}),n},rt=function(t){function e(t,n){return function(o,i,r,a){var l=o.options.group.name&&i.options.group.name&&o.options.group.name===i.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(o,i,r,a),n)(o,i,r,a);var s=(n?o:i).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},o=t.group;o&&"object"==Dt(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},at=function(){!et&&w&&It(w,"display","none")},lt=function(){!et&&w&&It(w,"display","")},Q&&!s&&document.addEventListener("click",function(t){if(I)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),I=!1,!1},!0),st=function(t){if(b){t=t.touches?t.touches[0]:t;var e=it(t.clientX,t.clientY);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[h]._onDragOver(n)}}},ct=function(t){b&&b.parentNode[h]._isOutsideThisEl(t.target)},$t.prototype={constructor:$t,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(L=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,b):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,i=o.preventOnFilter,r=t.type,l=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(l||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,u=o.filter;if(function(t){K.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var o=e[n];o.checked&&K.push(o)}}(n),!b&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||o.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!a||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=At(s,o.draggable,n,!1))&&s.animated||S===s)){if(C=Ht(s),O=Ht(s,o.draggable),"function"==typeof u){if(u.call(this,t,s,this))return Qt({sortable:e,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n}),m("filter",e,{evt:t}),void(i&&t.preventDefault())}else if(u&&(u=u.split(",").some(function(o){if(o=At(c,o.trim(),n,!1))return Qt({sortable:e,rootEl:o,name:"filter",targetEl:s,fromEl:n,toEl:n}),m("filter",e,{evt:t}),!0})))return void(i&&t.preventDefault());o.handle&&!At(c,o.handle,n,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,n){var a,l=this,s=l.el,c=l.options,u=s.ownerDocument;if(n&&!b&&n.parentNode===s){var d=Rt(n);if(E=s,y=(b=n).parentNode,D=b.nextSibling,S=n,N=c.group,$t.dragged=b,X={target:b,clientX:(e||t).clientX,clientY:(e||t).clientY},F=X.clientX-d.left,j=X.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,b.style["will-change"]="all",a=function(){m("delayEnded",l,{evt:t}),$t.eventCanceled?l._onDrop():(l._disableDelayedDragEvents(),!r&&l.nativeDraggable&&(b.draggable=!0),l._triggerDragStart(t,e),Qt({sortable:l,name:"choose",originalEvent:t}),Pt(b,c.chosenClass,!0))},c.ignore.split(",").forEach(function(t){Xt(b,t.trim(),te)}),xt(u,"dragover",st),xt(u,"mousemove",st),xt(u,"touchmove",st),c.supportPointer?(xt(u,"pointerup",l._onDrop),!this.nativeDraggable&&xt(u,"pointercancel",l._onDrop)):(xt(u,"mouseup",l._onDrop),xt(u,"touchend",l._onDrop),xt(u,"touchcancel",l._onDrop)),r&&this.nativeDraggable&&(this.options.touchStartThreshold=4,b.draggable=!0),m("delayStart",this,{evt:t}),!c.delay||c.delayOnTouchOnly&&!e||this.nativeDraggable&&(i||o))a();else{if($t.eventCanceled)return void this._onDrop();c.supportPointer?(xt(u,"pointerup",l._disableDelayedDrag),xt(u,"pointercancel",l._disableDelayedDrag)):(xt(u,"mouseup",l._disableDelayedDrag),xt(u,"touchend",l._disableDelayedDrag),xt(u,"touchcancel",l._disableDelayedDrag)),xt(u,"mousemove",l._delayedDragTouchMoveHandler),xt(u,"touchmove",l._delayedDragTouchMoveHandler),c.supportPointer&&xt(u,"pointermove",l._delayedDragTouchMoveHandler),l._dragStartTimer=setTimeout(a,c.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){b&&te(b),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Ot(t,"mouseup",this._disableDelayedDrag),Ot(t,"touchend",this._disableDelayedDrag),Ot(t,"touchcancel",this._disableDelayedDrag),Ot(t,"pointerup",this._disableDelayedDrag),Ot(t,"pointercancel",this._disableDelayedDrag),Ot(t,"mousemove",this._delayedDragTouchMoveHandler),Ot(t,"touchmove",this._delayedDragTouchMoveHandler),Ot(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?xt(document,"pointermove",this._onTouchMove):xt(document,e?"touchmove":"mousemove",this._onTouchMove):(xt(b,"dragend",this),xt(E,"dragstart",this._onDragStart));try{document.selection?ie(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(P=!1,E&&b){m("dragStarted",this,{evt:e}),this.nativeDraggable&&xt(document,"dragover",ct);var n=this.options;!t&&Pt(b,n.dragClass,!1),Pt(b,n.ghostClass,!0),$t.active=this,t&&this._appendGhost(),Qt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(Y){this._lastX=Y.clientX,this._lastY=Y.clientY,at();for(var t=document.elementFromPoint(Y.clientX,Y.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Y.clientX,Y.clientY))!==e;)e=t;if(b.parentNode[h]._isOutsideThisEl(t),e)do{if(e[h]&&e[h]._onDragOver({clientX:Y.clientX,clientY:Y.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break;t=e}while(e=Nt(e));lt()}},_onTouchMove:function(t){if(X){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=w&&kt(w,!0),a=w&&r&&r.a,l=w&&r&&r.d,s=$&&V&&Lt(V),c=(i.clientX-X.clientX+o.x)/(a||1)+(s?s[0]-q[0]:0)/(a||1),u=(i.clientY-X.clientY+o.y)/(l||1)+(s?s[1]-q[1]:0)/(l||1);if(!$t.active&&!P){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(w){r?(r.e+=c-(R||0),r.f+=u-(B||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");It(w,"webkitTransform",d),It(w,"mozTransform",d),It(w,"msTransform",d),It(w,"transform",d),R=c,B=u,Y=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!w){var t=this.options.fallbackOnBody?document.body:E,e=Rt(b,!0,$,!0,t),n=this.options;if($){for(V=t;"static"===It(V,"position")&&"none"===It(V,"transform")&&V!==document;)V=V.parentNode;V!==document.body&&V!==document.documentElement?(V===document&&(V=Yt()),e.top+=V.scrollTop,e.left+=V.scrollLeft):V=Yt(),q=Lt(V)}Pt(w=b.cloneNode(!0),n.ghostClass,!1),Pt(w,n.fallbackClass,!0),Pt(w,n.dragClass,!0),It(w,"transition",""),It(w,"transform",""),It(w,"box-sizing","border-box"),It(w,"margin",0),It(w,"top",e.top),It(w,"left",e.left),It(w,"width",e.width),It(w,"height",e.height),It(w,"opacity","0.8"),It(w,"position",$?"absolute":"fixed"),It(w,"zIndex","100000"),It(w,"pointerEvents","none"),$t.ghost=w,t.appendChild(w),It(w,"transform-origin",F/parseInt(w.style.width)*100+"% "+j/parseInt(w.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,i=n.options;m("dragStart",this,{evt:t}),$t.eventCanceled?this._onDrop():(m("setupClone",this),$t.eventCanceled||((_=qt(b)).removeAttribute("id"),_.draggable=!1,_.style["will-change"]="",this._hideClone(),Pt(_,this.options.chosenClass,!1),$t.clone=_),n.cloneId=ie(function(){m("clone",n),$t.eventCanceled||(n.options.removeCloneOnHide||E.insertBefore(_,b),n._hideClone(),Qt({sortable:n,name:"clone"}))}),!e&&Pt(b,i.dragClass,!0),e?(I=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Ot(document,"mouseup",n._onDrop),Ot(document,"touchend",n._onDrop),Ot(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(n,o,b)),xt(document,"drop",n),It(b,"transform","translateZ(0)")),P=!0,n._dragStartId=ie(n._dragStarted.bind(n,e,t)),xt(document,"selectstart",n),H=!0,window.getSelection().removeAllRanges(),a&&It(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,i,r=this.el,a=t.target,l=this.options,s=l.group,c=$t.active,u=N===s,d=l.sort,f=A||c,p=this,g=!1;if(!Z){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=At(a,l.draggable,r,!0),H("dragOver"),$t.eventCanceled)return g;if(b.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return q(!1);if(I=!1,c&&!l.disabled&&(u?d||(o=y!==E):A===this||(this.lastPutMode=N.checkPull(this,c,b,t))&&s.checkPut(this,c,b,t))){if(i="vertical"===this._getDirection(t,a),e=Rt(b),H("dragOverValid"),$t.eventCanceled)return g;if(o)return y=E,V(),this._hideClone(),H("revert"),$t.eventCanceled||(D?E.insertBefore(b,D):E.appendChild(b)),q(!0);var v=jt(r,l.draggable);if(!v||function(t,e,n){var o=Rt(jt(n.el,n.options.draggable)),i=Zt(n.el,n.options,w);return e?t.clientX>i.right+10||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>i.bottom+10||t.clientX>o.right&&t.clientY>o.top}(t,i,this)&&!v.animated){if(v===b)return q(!1);if(v&&r===t.target&&(a=v),a&&(n=Rt(a)),!1!==Jt(E,r,b,e,a,n,t,!!a))return V(),v&&v.nextSibling?r.insertBefore(b,v.nextSibling):r.appendChild(b),y=r,K(),q(!0)}else if(v&&function(t,e,n){var o=Rt(Ft(n.el,0,n.options,!0)),i=Zt(n.el,n.options,w);return e?t.clientX<i.left-10||t.clientY<o.top&&t.clientX<o.right:t.clientY<i.top-10||t.clientY<o.bottom&&t.clientX<o.left}(t,i,this)){var S=Ft(r,0,l,!0);if(S===b)return q(!1);if(n=Rt(a=S),!1!==Jt(E,r,b,e,a,n,t,!1))return V(),r.insertBefore(b,S),y=r,K(),q(!0)}else if(a.parentNode===r){n=Rt(a);var _,T,C,O=b.parentNode!==r,P=!ot(b.animated&&b.toRect||e,a.animated&&a.toRect||n,i),k=i?"top":"left",X=Bt(a,"top","top")||Bt(b,"top","top"),Y=X?X.scrollTop:void 0;if(L!==a&&(T=n[k],z=!1,G=!P&&l.invertSwap||O),0!==(_=ne(t,a,n,i,P?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,G,L===a))){var R=Ht(b);do{R-=_,C=y.children[R]}while(C&&("none"===It(C,"display")||C===w))}if(0===_||C===a)return q(!1);L=a,W=_;var B=a.nextElementSibling,F=!1,j=Jt(E,r,b,e,a,n,t,F=1===_);if(!1!==j)return 1!==j&&-1!==j||(F=1===j),Z=!0,setTimeout(ee,30),V(),F&&!B?r.appendChild(b):a.parentNode.insertBefore(b,F?B:a),X&&Vt(X,0,Y-X.scrollTop),y=b.parentNode,void 0===T||G||(U=Math.abs(T-Rt(a)[k])),K(),q(!0)}if(r.contains(b))return q(!1)}return!1}function H(l,s){m(l,p,Et({evt:t,isOwner:u,axis:i?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:d,fromSortable:f,target:a,completed:q,onMove:function(n,o){return Jt(E,r,b,e,n,Rt(n),t,o)},changed:K},s))}function V(){H("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function q(e){return H("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(p),p!==f&&(Pt(b,A?A.options.ghostClass:c.options.ghostClass,!1),Pt(b,l.ghostClass,!0)),A!==p&&p!==$t.active?A=p:p===$t.active&&A&&(A=null),f===p&&(p._ignoreWhileAnimating=a),p.animateAll(function(){H("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===b&&!b.animated||a===r&&!a.animated)&&(L=null),l.dragoverBubble||t.rootEl||a===document||(b.parentNode[h]._isOutsideThisEl(t.target),!e&&st(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function K(){x=Ht(b),M=Ht(b,l.draggable),Qt({sortable:p,name:"change",toEl:r,newIndex:x,newDraggableIndex:M,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ot(document,"mousemove",this._onTouchMove),Ot(document,"touchmove",this._onTouchMove),Ot(document,"pointermove",this._onTouchMove),Ot(document,"dragover",st),Ot(document,"mousemove",st),Ot(document,"touchmove",st)},_offUpEvents:function(){var t=this.el.ownerDocument;Ot(t,"mouseup",this._onDrop),Ot(t,"touchend",this._onDrop),Ot(t,"pointerup",this._onDrop),Ot(t,"pointercancel",this._onDrop),Ot(t,"touchcancel",this._onDrop),Ot(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;x=Ht(b),M=Ht(b,n.draggable),m("drop",this,{evt:t}),y=b&&b.parentNode,x=Ht(b),M=Ht(b,n.draggable),$t.eventCanceled||(P=!1,G=!1,z=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),re(this.cloneId),re(this._dragStartId),this.nativeDraggable&&(Ot(document,"drop",this),Ot(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),a&&It(document.body,"user-select",""),It(b,"transform",""),t&&(H&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),w&&w.parentNode&&w.parentNode.removeChild(w),(E===y||A&&"clone"!==A.lastPutMode)&&_&&_.parentNode&&_.parentNode.removeChild(_),b&&(this.nativeDraggable&&Ot(b,"dragend",this),te(b),b.style["will-change"]="",H&&!P&&Pt(b,A?A.options.ghostClass:this.options.ghostClass,!1),Pt(b,this.options.chosenClass,!1),Qt({sortable:this,name:"unchoose",toEl:y,newIndex:null,newDraggableIndex:null,originalEvent:t}),E!==y?(x>=0&&(Qt({rootEl:y,name:"add",toEl:y,fromEl:E,originalEvent:t}),Qt({sortable:this,name:"remove",toEl:y,originalEvent:t}),Qt({rootEl:y,name:"sort",toEl:y,fromEl:E,originalEvent:t}),Qt({sortable:this,name:"sort",toEl:y,originalEvent:t})),A&&A.save()):x!==C&&x>=0&&(Qt({sortable:this,name:"update",toEl:y,originalEvent:t}),Qt({sortable:this,name:"sort",toEl:y,originalEvent:t})),$t.active&&(null!=x&&-1!==x||(x=C,M=O),Qt({sortable:this,name:"end",toEl:y,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){m("nulling",this),E=b=y=w=D=_=S=T=X=Y=H=x=M=C=O=L=W=A=N=$t.dragged=$t.ghost=$t.clone=$t.active=null,K.forEach(function(t){t.checked=!0}),K.length=R=B=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":b&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,i=n.length,r=this.options;o<i;o++)At(t=n[o],r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||oe(t));return e},sort:function(t,e){var n={},o=this.el;this.toArray().forEach(function(t,e){var i=o.children[e];At(i,this.options.draggable,o,!1)&&(n[t]=i)},this),e&&this.captureAnimationState(),t.forEach(function(t){n[t]&&(o.removeChild(n[t]),o.appendChild(n[t]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return At(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=g.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&rt(n)},destroy:function(){m("destroy",this);var t=this.el;t[h]=null,Ot(t,"mousedown",this._onTapStart),Ot(t,"touchstart",this._onTapStart),Ot(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ot(t,"dragover",this),Ot(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),k.splice(k.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!T){if(m("hideClone",this),$t.eventCanceled)return;It(_,"display","none"),this.options.removeCloneOnHide&&_.parentNode&&_.parentNode.removeChild(_),T=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(T){if(m("showClone",this),$t.eventCanceled)return;b.parentNode!=E||this.options.group.revertClone?D?E.insertBefore(_,D):E.appendChild(_):E.insertBefore(_,b),this.options.group.revertClone&&this.animate(b,_),It(_,"display",""),T=!1}}else this._hideClone()}},Q&&xt(document,"touchmove",function(t){($t.active||P)&&t.cancelable&&t.preventDefault()}),$t.utils={on:xt,off:Ot,css:It,find:Xt,is:function(t,e){return!!At(t,e,t,!1)},extend:zt,throttle:Ut,closest:At,toggleClass:Pt,clone:qt,index:Ht,nextTick:ie,cancelNextTick:re,detectDirection:nt,getChild:Ft,expando:h},$t.get=function(t){return t[h]},$t.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&($t.utils=Et(Et({},$t.utils),t.utils)),g.mount(t)})},$t.create=function(t,e){return new $t(t,e)},$t.version="1.15.6",ut=[],ft=!1,bt=Ut(function(t,e,n,o){if(e.scroll){var i,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=Yt(),u=!1;ht!==n&&(ht=n,le(),dt=e.scroll,i=e.scrollFn,!0===dt&&(dt=Wt(n,!0)));var d=0,f=dt;do{var p=f,g=Rt(p),v=g.top,m=g.bottom,b=g.left,y=g.right,w=g.width,E=g.height,D=void 0,S=void 0,_=p.scrollWidth,T=p.scrollHeight,C=It(p),x=p.scrollLeft,O=p.scrollTop;p===c?(D=w<_&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),S=E<T&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(D=w<_&&("auto"===C.overflowX||"scroll"===C.overflowX),S=E<T&&("auto"===C.overflowY||"scroll"===C.overflowY));var M=D&&(Math.abs(y-r)<=l&&x+w<_)-(Math.abs(b-r)<=l&&!!x),N=S&&(Math.abs(m-a)<=l&&O+E<T)-(Math.abs(v-a)<=l&&!!O);if(!ut[d])for(var A=0;A<=d;A++)ut[A]||(ut[A]={});ut[d].vx==M&&ut[d].vy==N&&ut[d].el===p||(ut[d].el=p,ut[d].vx=M,ut[d].vy=N,clearInterval(ut[d].pid),0==M&&0==N||(u=!0,ut[d].pid=setInterval(function(){o&&0===this.layer&&$t.active._onTouchMove(vt);var e=ut[this.layer].vy?ut[this.layer].vy*s:0,n=ut[this.layer].vx?ut[this.layer].vx*s:0;"function"==typeof i&&"continue"!==i.call($t.dragged.parentNode[h],n,e,t,vt,ut[this.layer].el)||Vt(ut[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&f!==c&&(f=Wt(f,!1)));ft=u}},30),yt=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||i;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n}))}},ce.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=Ft(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:yt},_t(ce,{pluginName:"revertOnSpill"}),ue.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:yt},_t(ue,{pluginName:"removeOnSpill"}),$t.mount(new ae),$t.mount(ue,ce)}}});
|
|
//# sourceMappingURL=sortable.esm-legacy-Cuf71JRy.js.map
|