(function(T,h){typeof exports=="object"&&typeof module!="undefined"?h(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],h):(T=typeof globalThis!="undefined"?globalThis:T||self,h(T.VueDraggablePlus={},T.Vue))})(this,function(T,h){"use strict";var Un=Object.defineProperty;var qe=Object.getOwnPropertySymbols;var Zt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable;var Jt=(T,h,B)=>h in T?Un(T,h,{enumerable:!0,configurable:!0,writable:!0,value:B}):T[h]=B,ve=(T,h)=>{for(var B in h||(h={}))Zt.call(h,B)&&Jt(T,B,h[B]);if(qe)for(var B of qe(h))Qt.call(h,B)&&Jt(T,B,h[B]);return T};var mt=(T,h)=>{var B={};for(var Q in T)Zt.call(T,Q)&&h.indexOf(Q)<0&&(B[Q]=T[Q]);if(T!=null&&qe)for(var Q of qe(T))h.indexOf(Q)<0&&Qt.call(T,Q)&&(B[Q]=T[Q]);return B};const B="[vue-draggable-plus]: ";function Q(t){console.warn(B+t)}function en(t){console.error(B+t)}function vt(t,e,n){return n>=0&&nn?n.toUpperCase():"")}function nn(t){return Object.keys(t).reduce((e,n)=>(typeof t[n]!="undefined"&&(e[tn(n)]=t[n]),e),{})}function bt(t,e){return Array.isArray(t)&&t.splice(e,1),t}function yt(t,e,n){return Array.isArray(t)&&t.splice(e,0,n),t}function on(t){return typeof t=="undefined"}function rn(t){return typeof t=="string"}function wt(t,e,n){const o=t.children[n];t.insertBefore(e,o)}function Ke(t){t.parentNode&&t.parentNode.removeChild(t)}function an(t,e=document){var o;let n=null;return typeof(e==null?void 0:e.querySelector)=="function"?n=(o=e==null?void 0:e.querySelector)==null?void 0:o.call(e,t):n=document.querySelector(t),n||Q(`Element not found: ${t}`),n}function ln(t,e,n=null){return function(...o){return t.apply(n,o),e.apply(n,o)}}function sn(t,e){const n=ve({},t);return Object.keys(e).forEach(o=>{n[o]?n[o]=ln(t[o],e[o]):n[o]=e[o]}),n}function un(t){return t instanceof HTMLElement}function Et(t,e){Object.keys(t).forEach(n=>{e(n,t[n])})}function fn(t){return t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97)}const cn=Object.assign;/**! * Sortable 1.15.2 * @author RubaXa * @author owenm * @license MIT */function St(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function ne(t){for(var e=1;e=0)&&(n[r]=t[r]);return n}function pn(t,e){if(t==null)return{};var n=hn(t,e),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}var gn="1.15.2";function ae(t){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(t)}var le=ae(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_e=ae(/Edge/i),Dt=ae(/firefox/i),Te=ae(/safari/i)&&!ae(/chrome/i)&&!ae(/android/i),_t=ae(/iP(ad|od|hone)/i),Tt=ae(/chrome/i)&&ae(/android/i),Ct={capture:!1,passive:!1};function _(t,e,n){t.addEventListener(e,n,!le&&Ct)}function S(t,e,n){t.removeEventListener(e,n,!le&&Ct)}function Re(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 mn(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function ee(t,e,n,o){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Re(t,e):Re(t,e))||o&&t===n)return t;if(t===n)break}while(t=mn(t))}return null}var Ot=/\s+/g;function U(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(Ot," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(Ot," ")}}function p(t,e,n){var o=t&&t.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in o)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),o[e]=n+(typeof n=="string"?"":"px")}}function be(t,e){var n="";if(typeof t=="string")n=t;else do{var o=p(t,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function It(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r=i,!a)return o;if(o===oe())break;o=ue(o,!1)}return!1}function ye(t,e,n,o){for(var r=0,i=0,a=t.children;i2&&arguments[2]!==void 0?arguments[2]:{},r=o.evt,i=pn(o,_n);Oe.pluginEvent.bind(g)(e,n,ne({dragEl:f,parentEl:x,ghostEl:m,rootEl:C,nextEl:he,lastDownEl:Xe,cloneEl:A,cloneHidden:fe,dragStarted:Ae,putSortable:k,activeSortable:g.active,originalEvent:r,oldIndex:Ee,oldDraggableIndex:Ie,newIndex:q,newDraggableIndex:ce,hideGhostForTarget:Lt,unhideGhostForTarget:Wt,cloneNowHidden:function(){fe=!0},cloneNowShown:function(){fe=!1},dispatchSortableEvent:function(l){W({sortable:n,name:l,originalEvent:r})}},i))};function W(t){Dn(ne({putSortable:k,cloneEl:A,targetEl:f,rootEl:C,oldIndex:Ee,oldDraggableIndex:Ie,newIndex:q,newDraggableIndex:ce},t))}var f,x,m,C,he,Xe,A,fe,Ee,q,Ie,ce,Ye,k,Se=!1,Be=!1,ke=[],pe,te,et,tt,Rt,Xt,Ae,De,xe,Pe=!1,He=!1,Le,H,nt=[],ot=!1,We=[],je=typeof document!="undefined",Ge=_t,Yt=_e||le?"cssFloat":"float",Tn=je&&!Tt&&!_t&&"draggable"in document.createElement("div"),Bt=function(){if(je){if(le)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),kt=function(e,n){var o=p(e),r=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=ye(e,0,n),a=ye(e,1,n),l=i&&p(i),s=a&&p(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+N(i).width,d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+N(a).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var c=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=r&&o[Yt]==="none"||a&&o[Yt]==="none"&&u+d>r)?"vertical":"horizontal"},Cn=function(e,n,o){var r=o?e.left:e.top,i=o?e.right:e.bottom,a=o?e.width:e.height,l=o?n.left:n.top,s=o?n.right:n.bottom,u=o?n.width:n.height;return r===l||i===s||r+a/2===l+u/2},On=function(e,n){var o;return ke.some(function(r){var i=r[$].options.emptyInsertThreshold;if(!(!i||Je(r))){var a=N(r),l=e>=a.left-i&&e<=a.right+i,s=n>=a.top-i&&n<=a.bottom+i;if(l&&s)return o=r}}),o},Ht=function(e){function n(i,a){return function(l,s,u,d){var c=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(i==null&&(a||c))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(l,s,u,d),a)(l,s,u,d);var v=(a?l:s).options.group.name;return i===!0||typeof i=="string"&&i===v||i.join&&i.indexOf(v)>-1}}var o={},r=e.group;(!r||Fe(r)!="object")&&(r={name:r}),o.name=r.name,o.checkPull=n(r.pull,!0),o.checkPut=n(r.put),o.revertClone=r.revertClone,e.group=o},Lt=function(){!Bt&&m&&p(m,"display","none")},Wt=function(){!Bt&&m&&p(m,"display","")};je&&!Tt&&document.addEventListener("click",function(t){if(Be)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Be=!1,!1},!0);var ge=function(e){if(f){e=e.touches?e.touches[0]:e;var n=On(e.clientX,e.clientY);if(n){var o={};for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[$]._onDragOver(o)}}},In=function(e){f&&f.parentNode[$]._isOutsideThisEl(e.target)};function g(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=ie({},e),t[$]=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 kt(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(a,l){a.setData("Text",l.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&&!Te,emptyInsertThreshold:5};Oe.initializePlugins(this,t,n);for(var o in n)!(o in e)&&(e[o]=n[o]);Ht(e);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:Tn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?_(t,"pointerdown",this._onTapStart):(_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),ke.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ie(this,wn())}g.prototype={constructor:g,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(De=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,f):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,o=this.el,r=this.options,i=r.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,d=r.filter;if(Xn(o),!f&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Te&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=ee(s,r.draggable,o,!1),!(s&&s.animated)&&Xe!==s)){if(Ee=Z(s),Ie=Z(s,r.draggable),typeof d=="function"){if(d.call(this,e,s,this)){W({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:o,fromEl:o}),V("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(d&&(d=d.split(",").some(function(c){if(c=ee(u,c.trim(),o,!1),c)return W({sortable:n,rootEl:c,name:"filter",targetEl:s,fromEl:o,toEl:o}),V("filter",n,{evt:e}),!0}),d)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!ee(u,r.handle,o,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,n,o){var r=this,i=r.el,a=r.options,l=i.ownerDocument,s;if(o&&!f&&o.parentNode===i){var u=N(o);if(C=i,f=o,x=f.parentNode,he=f.nextSibling,Xe=o,Ye=a.group,g.dragged=f,pe={target:f,clientX:(n||e).clientX,clientY:(n||e).clientY},Rt=pe.clientX-u.left,Xt=pe.clientY-u.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,f.style["will-change"]="all",s=function(){if(V("delayEnded",r,{evt:e}),g.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Dt&&r.nativeDraggable&&(f.draggable=!0),r._triggerDragStart(e,n),W({sortable:r,name:"choose",originalEvent:e}),U(f,a.chosenClass,!0)},a.ignore.split(",").forEach(function(d){It(f,d.trim(),rt)}),_(l,"dragover",ge),_(l,"mousemove",ge),_(l,"touchmove",ge),_(l,"mouseup",r._onDrop),_(l,"touchend",r._onDrop),_(l,"touchcancel",r._onDrop),Dt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,f.draggable=!0),V("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(_e||le))){if(g.eventCanceled){this._onDrop();return}_(l,"mouseup",r._disableDelayedDrag),_(l,"touchend",r._disableDelayedDrag),_(l,"touchcancel",r._disableDelayedDrag),_(l,"mousemove",r._delayedDragTouchMoveHandler),_(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&_(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;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(){f&&rt(f),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;S(e,"mouseup",this._disableDelayedDrag),S(e,"touchend",this._disableDelayedDrag),S(e,"touchcancel",this._disableDelayedDrag),S(e,"mousemove",this._delayedDragTouchMoveHandler),S(e,"touchmove",this._delayedDragTouchMoveHandler),S(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?_(document,"pointermove",this._onTouchMove):n?_(document,"touchmove",this._onTouchMove):_(document,"mousemove",this._onTouchMove):(_(f,"dragend",this),_(C,"dragstart",this._onDragStart));try{document.selection?Ve(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,n){if(Se=!1,C&&f){V("dragStarted",this,{evt:n}),this.nativeDraggable&&_(document,"dragover",In);var o=this.options;!e&&U(f,o.dragClass,!1),U(f,o.ghostClass,!0),g.active=this,e&&this._appendGhost(),W({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(te){this._lastX=te.clientX,this._lastY=te.clientY,Lt();for(var e=document.elementFromPoint(te.clientX,te.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(te.clientX,te.clientY),e!==n);)n=e;if(f.parentNode[$]._isOutsideThisEl(e),n)do{if(n[$]){var o=void 0;if(o=n[$]._onDragOver({clientX:te.clientX,clientY:te.clientY,target:e,rootEl:n}),o&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);Wt()}},_onTouchMove:function(e){if(pe){var n=this.options,o=n.fallbackTolerance,r=n.fallbackOffset,i=e.touches?e.touches[0]:e,a=m&&be(m,!0),l=m&&a&&a.a,s=m&&a&&a.d,u=Ge&&H&&xt(H),d=(i.clientX-pe.clientX+r.x)/(l||1)+(u?u[0]-nt[0]:0)/(l||1),c=(i.clientY-pe.clientY+r.y)/(s||1)+(u?u[1]-nt[1]:0)/(s||1);if(!g.active&&!Se){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(W({rootEl:x,name:"add",toEl:x,fromEl:C,originalEvent:e}),W({sortable:this,name:"remove",toEl:x,originalEvent:e}),W({rootEl:x,name:"sort",toEl:x,fromEl:C,originalEvent:e}),W({sortable:this,name:"sort",toEl:x,originalEvent:e})),k&&k.save()):q!==Ee&&q>=0&&(W({sortable:this,name:"update",toEl:x,originalEvent:e}),W({sortable:this,name:"sort",toEl:x,originalEvent:e})),g.active&&((q==null||q===-1)&&(q=Ee,ce=Ie),W({sortable:this,name:"end",toEl:x,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){V("nulling",this),C=f=x=m=he=A=Xe=fe=pe=te=Ae=q=ce=Ee=Ie=De=xe=k=Ye=g.dragged=g.ghost=g.clone=g.active=null,We.forEach(function(e){e.checked=!0}),We.length=et=tt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":f&&(this._onDragOver(e),An(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,o=this.el.children,r=0,i=o.length,a=this.options;rr.right+i||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>r.bottom+i||t.clientX>o.right&&t.clientY>o.top}function Mn(t,e,n,o,r,i,a,l){var s=o?t.clientY:t.clientX,u=o?n.height:n.width,d=o?n.top:n.left,c=o?n.bottom:n.right,v=!1;if(!a){if(l&&Led+u*i/2:sc-Le)return-xe}else if(s>d+u*(1-r)/2&&sc-u*i/2)?s>d+u/2?1:-1:0}function Fn(t){return Z(f){if(L&&(n==null?void 0:n.length)!==O.childNodes.length)return R.insertBefore(L,J.nextSibling),!0;const me=O.childNodes[de];L=O==null?void 0:O.replaceChild(J,me)})}}catch(L){I=L}finally{n=null}h.nextTick(()=>{if(Ut(),I)throw I})}const D={onUpdate:w,onStart:d,onAdd:c,onRemove:v,onEnd:y};function j(b){const E=h.unref(o);return b||(b=rn(E)?an(E,e==null?void 0:e.$el):E),b&&!un(b)&&(b=b.$el),b||en("Root element not found"),b}function G(){var R;const O=(R=h.unref(i))!=null?R:{},{immediate:b,clone:E}=O,F=mt(O,["immediate","clone"]);return Et(F,(I,Y)=>{fn(I)&&(F[I]=(L,...J)=>{const de=Ln();return cn(L,de),Y(L,...J)})}),sn(r===null?{}:D,F)}const X=b=>{b=j(b),a&&P.destroy(),a=new g(b,G())};h.watch(()=>i,()=>{a&&Et(G(),(b,E)=>{a==null||a.option(b,E)})},{deep:!0});const P={option:(b,E)=>a==null?void 0:a.option(b,E),destroy:()=>{a==null||a.destroy(),a=null},save:()=>a==null?void 0:a.save(),toArray:()=>a==null?void 0:a.toArray(),closest:(...b)=>a==null?void 0:a.closest(...b)},z=()=>P==null?void 0:P.option("disabled",!0),se=()=>P==null?void 0:P.option("disabled",!1);return Hn(()=>{l&&X()}),kn(P.destroy),ve({start:X,pause:z,resume:se},P)}const pt=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],Wn=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...pt.map(t=>`on${t.replace(/^\S/,e=>e.toUpperCase())}`)],jn=h.defineComponent({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:Wn,emits:["update:modelValue",...pt],setup(t,{slots:e,emit:n,expose:o,attrs:r}){const i=pt.reduce((d,c)=>{const v=`on${c.replace(/^\S/,w=>w.toUpperCase())}`;return d[v]=(...w)=>n(c,...w),d},{}),a=h.computed(()=>{const w=h.toRefs(t),{modelValue:d}=w,c=mt(w,["modelValue"]),v=Object.entries(c).reduce((y,[D,j])=>{const G=h.unref(j);return G!==void 0&&(y[D]=G),y},{});return ve(ve({},i),nn(ve(ve({},r),v)))}),l=h.computed({get:()=>t.modelValue,set:d=>n("update:modelValue",d)}),s=h.ref(),u=h.reactive(ht(t.target||s,l,a));return o(u),()=>{var d;return h.h(t.tag||"div",{ref:s},(d=e==null?void 0:e.default)==null?void 0:d.call(e,u))}}}),qt={mounted:"mounted",unmounted:"unmounted"},gt=new WeakMap,Gn={[qt.mounted](t,e){const n=h.isProxy(e.value)?[e.value]:e.value,[o,r]=n,i=ht(t,o,r);gt.set(t,i.destroy)},[qt.unmounted](t){var e;(e=gt.get(t))==null||e(),gt.delete(t)}};T.VueDraggable=jn,T.useDraggable=ht,T.vDraggable=Gn,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});