@pantograph/vue 0.23.1 → 0.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/{Tree.vue_vue_type_style_index_0_lang-Br1Uyot0.js → Tree.vue_vue_type_style_index_0_lang-B9L-4ciK.js} +2 -2
- package/dist/{Tree.vue_vue_type_style_index_0_lang-B1CdkAl_.js → Tree.vue_vue_type_style_index_0_lang-BRU_5PuO.js} +77 -76
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/Tree/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as r, a as s, T as t, _ as T, i as o, p as i } from "../Tree.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as r, a as s, T as t, _ as T, i as o, p as i } from "../Tree.vue_vue_type_style_index_0_lang-BRU_5PuO.js";
|
|
2
2
|
export {
|
|
3
3
|
r as Tree,
|
|
4
4
|
s as TreeGaps,
|
package/dist/Tree/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Tree.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Tree.vue_vue_type_style_index_0_lang-B9L-4ciK.js");exports.Tree=e._sfc_main;exports.TreeGaps=e.TreeGaps;exports.TreeSizes=e.TreeSizes;exports.default=e._sfc_main;exports.injectTreeContext=e.injectTreeContext;exports.provideTreeContext=e.provideTreeContext;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";const i=require("vue"),
|
|
1
|
+
"use strict";const i=require("vue"),P=require("@pantograph/utils"),Mt=require("class-variance-authority"),O=require("./Icon.vue_vue_type_style_index_0_lang-Cc8Uh2lr.js"),Tt=require("./uniq-Ci_ZUo6O.js"),Rt=require("./options-CWrQ7gsa.js"),Et=require("reka-ui"),on=require("./IndentLevel.vue_vue_type_style_index_0_lang-DVx2S15S.js"),rn=require("./Checkbox.vue_vue_type_style_index_0_lang-DaWMPx_d.js"),zt=require("./useInputDataStates-C6bS7MJv.js"),an=require("@vueuse/core"),Kt=require("vuedraggable"),ln=require("lodash-es");/**!
|
|
2
2
|
* Sortable 1.15.6
|
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
|
4
4
|
* @author owenm <owen23355@gmail.com>
|
|
5
5
|
* @license MIT
|
|
6
|
-
*/function xt(o,e){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);e&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),n.push.apply(n,t)}return n}function me(o){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xt(Object(n),!0).forEach(function(t){sn(o,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(n,t))})}return o}function We(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?We=function(e){return typeof e}:We=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(o)}function sn(o,e,n){return e in o?Object.defineProperty(o,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[e]=n,o}function ye(){return ye=Object.assign||function(o){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(o[t]=n[t])}return o},ye.apply(this,arguments)}function un(o,e){if(o==null)return{};var n={},t=Object.keys(o),r,a;for(a=0;a<t.length;a++)r=t[a],!(e.indexOf(r)>=0)&&(n[r]=o[r]);return n}function dn(o,e){if(o==null)return{};var n=un(o,e),t,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);for(r=0;r<a.length;r++)t=a[r],!(e.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(o,t)&&(n[t]=o[t])}return n}var cn="1.15.6";function be(o){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(o)}var Ee=be(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ye=be(/Edge/i),kt=be(/firefox/i),ze=be(/safari/i)&&!be(/chrome/i)&&!be(/android/i),wt=be(/iP(ad|od|hone)/i),Lt=be(/chrome/i)&&be(/android/i),Vt={capture:!1,passive:!1};function k(o,e,n){o.addEventListener(e,n,!Ee&&Vt)}function x(o,e,n){o.removeEventListener(e,n,!Ee&&Vt)}function et(o,e){if(e){if(e[0]===">"&&(e=e.substring(1)),o)try{if(o.matches)return o.matches(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e)}catch{return!1}return!1}}function Xt(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function ce(o,e,n,t){if(o){n=n||document;do{if(e!=null&&(e[0]===">"?o.parentNode===n&&et(o,e):et(o,e))||t&&o===n)return o;if(o===n)break}while(o=Xt(o))}return null}var It=/\s+/g;function ne(o,e,n){if(o&&e)if(o.classList)o.classList[n?"add":"remove"](e);else{var t=(" "+o.className+" ").replace(It," ").replace(" "+e+" "," ");o.className=(t+(n?" "+e:"")).replace(It," ")}}function w(o,e,n){var t=o&&o.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(n=o.currentStyle),e===void 0?n:n[e];!(e in t)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),t[e]=n+(typeof n=="string"?"":"px")}}function Ae(o,e){var n="";if(typeof o=="string")n=o;else do{var t=w(o,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!e&&(o=o.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Yt(o,e,n){if(o){var t=o.getElementsByTagName(e),r=0,a=t.length;if(n)for(;r<a;r++)n(t[r],r);return t}return[]}function ge(){var o=document.scrollingElement;return o||document.documentElement}function V(o,e,n,t,r){if(!(!o.getBoundingClientRect&&o!==window)){var a,l,s,u,d,g,p;if(o!==window&&o.parentNode&&o!==ge()?(a=o.getBoundingClientRect(),l=a.top,s=a.left,u=a.bottom,d=a.right,g=a.height,p=a.width):(l=0,s=0,u=window.innerHeight,d=window.innerWidth,g=window.innerHeight,p=window.innerWidth),(e||n)&&o!==window&&(r=r||o.parentNode,!Ee))do if(r&&r.getBoundingClientRect&&(w(r,"transform")!=="none"||n&&w(r,"position")!=="static")){var b=r.getBoundingClientRect();l-=b.top+parseInt(w(r,"border-top-width")),s-=b.left+parseInt(w(r,"border-left-width")),u=l+a.height,d=s+a.width;break}while(r=r.parentNode);if(t&&o!==window){var v=Ae(r||o),C=v&&v.a,T=v&&v.d;v&&(l/=T,s/=C,p/=C,g/=T,u=l+g,d=s+p)}return{top:l,left:s,bottom:u,right:d,width:p,height:g}}}function Nt(o,e,n){for(var t=De(o,!0),r=V(o)[e];t;){var a=V(t)[n],l=void 0;if(l=r>=a,!l)return t;if(t===ge())break;t=De(t,!1)}return!1}function Be(o,e,n,t){for(var r=0,a=0,l=o.children;a<l.length;){if(l[a].style.display!=="none"&&l[a]!==_.ghost&&(t||l[a]!==_.dragged)&&ce(l[a],n.draggable,o,!1)){if(r===e)return l[a];r++}a++}return null}function _t(o,e){for(var n=o.lastElementChild;n&&(n===_.ghost||w(n,"display")==="none"||e&&!et(n,e));)n=n.previousElementSibling;return n||null}function se(o,e){var n=0;if(!o||!o.parentNode)return-1;for(;o=o.previousElementSibling;)o.nodeName.toUpperCase()!=="TEMPLATE"&&o!==_.clone&&(!e||et(o,e))&&n++;return n}function Ot(o){var e=0,n=0,t=ge();if(o)do{var r=Ae(o),a=r.a,l=r.d;e+=o.scrollLeft*a,n+=o.scrollTop*l}while(o!==t&&(o=o.parentNode));return[e,n]}function fn(o,e){for(var n in o)if(o.hasOwnProperty(n)){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===o[n][t])return Number(n)}return-1}function De(o,e){if(!o||!o.getBoundingClientRect)return ge();var n=o,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=w(n);if(n.clientWidth<n.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return ge();if(t||e)return n;t=!0}}while(n=n.parentNode);return ge()}function pn(o,e){if(o&&e)for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);return o}function at(o,e){return Math.round(o.top)===Math.round(e.top)&&Math.round(o.left)===Math.round(e.left)&&Math.round(o.height)===Math.round(e.height)&&Math.round(o.width)===Math.round(e.width)}var Ke;function $t(o,e){return function(){if(!Ke){var n=arguments,t=this;n.length===1?o.call(t,n[0]):o.apply(t,n),Ke=setTimeout(function(){Ke=void 0},e)}}}function hn(){clearTimeout(Ke),Ke=void 0}function Gt(o,e,n){o.scrollLeft+=e,o.scrollTop+=n}function Ht(o){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(o).cloneNode(!0):n?n(o).clone(!0)[0]:o.cloneNode(!0)}function jt(o,e,n){var t={};return Array.from(o.children).forEach(function(r){var a,l,s,u;if(!(!ce(r,e.draggable,o,!1)||r.animated||r===n)){var d=V(r);t.left=Math.min((a=t.left)!==null&&a!==void 0?a:1/0,d.left),t.top=Math.min((l=t.top)!==null&&l!==void 0?l:1/0,d.top),t.right=Math.max((s=t.right)!==null&&s!==void 0?s:-1/0,d.right),t.bottom=Math.max((u=t.bottom)!==null&&u!==void 0?u:-1/0,d.bottom)}}),t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}var ee="Sortable"+new Date().getTime();function gn(){var o=[],e;return{captureAnimationState:function(){if(o=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(r){if(!(w(r,"display")==="none"||r===_.ghost)){o.push({target:r,rect:V(r)});var a=me({},o[o.length-1].rect);if(r.thisAnimationDuration){var l=Ae(r,!0);l&&(a.top-=l.f,a.left-=l.e)}r.fromRect=a}})}},addAnimationState:function(t){o.push(t)},removeAnimationState:function(t){o.splice(fn(o,{target:t}),1)},animateAll:function(t){var r=this;if(!this.options.animation){clearTimeout(e),typeof t=="function"&&t();return}var a=!1,l=0;o.forEach(function(s){var u=0,d=s.target,g=d.fromRect,p=V(d),b=d.prevFromRect,v=d.prevToRect,C=s.rect,T=Ae(d,!0);T&&(p.top-=T.f,p.left-=T.e),d.toRect=p,d.thisAnimationDuration&&at(b,p)&&!at(g,p)&&(C.top-p.top)/(C.left-p.left)===(g.top-p.top)/(g.left-p.left)&&(u=vn(C,b,v,r.options)),at(p,g)||(d.prevFromRect=g,d.prevToRect=p,u||(u=r.options.animation),r.animate(d,C,p,u)),u&&(a=!0,l=Math.max(l,u),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},u),d.thisAnimationDuration=u)}),clearTimeout(e),a?e=setTimeout(function(){typeof t=="function"&&t()},l):typeof t=="function"&&t(),o=[]},animate:function(t,r,a,l){if(l){w(t,"transition",""),w(t,"transform","");var s=Ae(this.el),u=s&&s.a,d=s&&s.d,g=(r.left-a.left)/(u||1),p=(r.top-a.top)/(d||1);t.animatingX=!!g,t.animatingY=!!p,w(t,"transform","translate3d("+g+"px,"+p+"px,0)"),this.forRepaintDummy=mn(t),w(t,"transition","transform "+l+"ms"+(this.options.easing?" "+this.options.easing:"")),w(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){w(t,"transition",""),w(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},l)}}}}function mn(o){return o.offsetWidth}function vn(o,e,n,t){return Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*t.animation}var Ie=[],lt={initializeByDefault:!0},$e={mount:function(e){for(var n in lt)lt.hasOwnProperty(n)&&!(n in e)&&(e[n]=lt[n]);Ie.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Ie.push(e)},pluginEvent:function(e,n,t){var r=this;this.eventCanceled=!1,t.cancel=function(){r.eventCanceled=!0};var a=e+"Global";Ie.forEach(function(l){n[l.pluginName]&&(n[l.pluginName][a]&&n[l.pluginName][a](me({sortable:n},t)),n.options[l.pluginName]&&n[l.pluginName][e]&&n[l.pluginName][e](me({sortable:n},t)))})},initializePlugins:function(e,n,t,r){Ie.forEach(function(s){var u=s.pluginName;if(!(!e.options[u]&&!s.initializeByDefault)){var d=new s(e,n,e.options);d.sortable=e,d.options=e.options,e[u]=d,ye(t,d.defaults)}});for(var a in e.options)if(e.options.hasOwnProperty(a)){var l=this.modifyOption(e,a,e.options[a]);typeof l<"u"&&(e.options[a]=l)}},getEventProperties:function(e,n){var t={};return Ie.forEach(function(r){typeof r.eventProperties=="function"&&ye(t,r.eventProperties.call(n[r.pluginName],e))}),t},modifyOption:function(e,n,t){var r;return Ie.forEach(function(a){e[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(r=a.optionListeners[n].call(e[a.pluginName],t))}),r}};function bn(o){var e=o.sortable,n=o.rootEl,t=o.name,r=o.targetEl,a=o.cloneEl,l=o.toEl,s=o.fromEl,u=o.oldIndex,d=o.newIndex,g=o.oldDraggableIndex,p=o.newDraggableIndex,b=o.originalEvent,v=o.putSortable,C=o.extraEventProperties;if(e=e||n&&n[ee],!!e){var T,$=e.options,H="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!Ee&&!Ye?T=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(T=document.createEvent("Event"),T.initEvent(t,!0,!0)),T.to=l||n,T.from=s||n,T.item=r||n,T.clone=a,T.oldIndex=u,T.newIndex=d,T.oldDraggableIndex=g,T.newDraggableIndex=p,T.originalEvent=b,T.pullMode=v?v.lastPutMode:void 0;var I=me(me({},C),$e.getEventProperties(t,e));for(var K in I)T[K]=I[K];n&&n.dispatchEvent(T),$[H]&&$[H].call(e,T)}}var yn=["evt"],J=function(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.evt,a=dn(t,yn);$e.pluginEvent.bind(_)(e,n,me({dragEl:c,parentEl:R,ghostEl:D,rootEl:B,nextEl:ke,lastDownEl:Ue,cloneEl:F,cloneHidden:Se,dragStarted:Fe,putSortable:G,activeSortable:_.active,originalEvent:r,oldIndex:Pe,oldDraggableIndex:Le,newIndex:oe,newDraggableIndex:_e,hideGhostForTarget:Zt,unhideGhostForTarget:Qt,cloneNowHidden:function(){Se=!0},cloneNowShown:function(){Se=!1},dispatchSortableEvent:function(s){U({sortable:n,name:s,originalEvent:r})}},a))};function U(o){bn(me({putSortable:G,cloneEl:F,targetEl:c,rootEl:B,oldIndex:Pe,oldDraggableIndex:Le,newIndex:oe,newDraggableIndex:_e},o))}var c,R,D,B,ke,Ue,F,Se,Pe,oe,Le,_e,Ge,G,Oe=!1,tt=!1,nt=[],Te,de,st,ut,Pt,At,Fe,Ne,Ve,Xe=!1,He=!1,Ze,q,dt=[],gt=!1,ot=[],it=typeof document<"u",je=wt,Bt=Ye||Ee?"cssFloat":"float",En=it&&!Lt&&!wt&&"draggable"in document.createElement("div"),qt=function(){if(it){if(Ee)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),Wt=function(e,n){var t=w(e),r=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),a=Be(e,0,n),l=Be(e,1,n),s=a&&w(a),u=l&&w(l),d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+V(a).width,g=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+V(l).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&s.float&&s.float!=="none"){var p=s.float==="left"?"left":"right";return l&&(u.clear==="both"||u.clear===p)?"vertical":"horizontal"}return a&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||d>=r&&t[Bt]==="none"||l&&t[Bt]==="none"&&d+g>r)?"vertical":"horizontal"},wn=function(e,n,t){var r=t?e.left:e.top,a=t?e.right:e.bottom,l=t?e.width:e.height,s=t?n.left:n.top,u=t?n.right:n.bottom,d=t?n.width:n.height;return r===s||a===u||r+l/2===s+d/2},_n=function(e,n){var t;return nt.some(function(r){var a=r[ee].options.emptyInsertThreshold;if(!(!a||_t(r))){var l=V(r),s=e>=l.left-a&&e<=l.right+a,u=n>=l.top-a&&n<=l.bottom+a;if(s&&u)return t=r}}),t},Ut=function(e){function n(a,l){return function(s,u,d,g){var p=s.options.group.name&&u.options.group.name&&s.options.group.name===u.options.group.name;if(a==null&&(l||p))return!0;if(a==null||a===!1)return!1;if(l&&a==="clone")return a;if(typeof a=="function")return n(a(s,u,d,g),l)(s,u,d,g);var b=(l?s:u).options.group.name;return a===!0||typeof a=="string"&&a===b||a.join&&a.indexOf(b)>-1}}var t={},r=e.group;(!r||We(r)!="object")&&(r={name:r}),t.name=r.name,t.checkPull=n(r.pull,!0),t.checkPut=n(r.put),t.revertClone=r.revertClone,e.group=t},Zt=function(){!qt&&D&&w(D,"display","none")},Qt=function(){!qt&&D&&w(D,"display","")};it&&!Lt&&document.addEventListener("click",function(o){if(tt)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),tt=!1,!1},!0);var xe=function(e){if(c){e=e.touches?e.touches[0]:e;var n=_n(e.clientX,e.clientY);if(n){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[ee]._onDragOver(t)}}},Sn=function(e){c&&c.parentNode[ee]._isOutsideThisEl(e.target)};function _(o,e){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=e=ye({},e),o[ee]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Wt(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(l,s){l.setData("Text",s.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:_.supportPointer!==!1&&"PointerEvent"in window&&(!ze||wt),emptyInsertThreshold:5};$e.initializePlugins(this,o,n);for(var t in n)!(t in e)&&(e[t]=n[t]);Ut(e);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:En,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?k(o,"pointerdown",this._onTapStart):(k(o,"mousedown",this._onTapStart),k(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(k(o,"dragover",this),k(o,"dragenter",this)),nt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ye(this,gn())}_.prototype={constructor:_,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Ne=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,c):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,t=this.el,r=this.options,a=r.preventOnFilter,l=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(s||e).target,d=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,g=r.filter;if(On(t),!c&&!(/mousedown|pointerdown/.test(l)&&e.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&ze&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=ce(u,r.draggable,t,!1),!(u&&u.animated)&&Ue!==u)){if(Pe=se(u),Le=se(u,r.draggable),typeof g=="function"){if(g.call(this,e,u,this)){U({sortable:n,rootEl:d,name:"filter",targetEl:u,toEl:t,fromEl:t}),J("filter",n,{evt:e}),a&&e.preventDefault();return}}else if(g&&(g=g.split(",").some(function(p){if(p=ce(d,p.trim(),t,!1),p)return U({sortable:n,rootEl:p,name:"filter",targetEl:u,fromEl:t,toEl:t}),J("filter",n,{evt:e}),!0}),g)){a&&e.preventDefault();return}r.handle&&!ce(d,r.handle,t,!1)||this._prepareDragStart(e,s,u)}}},_prepareDragStart:function(e,n,t){var r=this,a=r.el,l=r.options,s=a.ownerDocument,u;if(t&&!c&&t.parentNode===a){var d=V(t);if(B=a,c=t,R=c.parentNode,ke=c.nextSibling,Ue=t,Ge=l.group,_.dragged=c,Te={target:c,clientX:(n||e).clientX,clientY:(n||e).clientY},Pt=Te.clientX-d.left,At=Te.clientY-d.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,c.style["will-change"]="all",u=function(){if(J("delayEnded",r,{evt:e}),_.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!kt&&r.nativeDraggable&&(c.draggable=!0),r._triggerDragStart(e,n),U({sortable:r,name:"choose",originalEvent:e}),ne(c,l.chosenClass,!0)},l.ignore.split(",").forEach(function(g){Yt(c,g.trim(),ct)}),k(s,"dragover",xe),k(s,"mousemove",xe),k(s,"touchmove",xe),l.supportPointer?(k(s,"pointerup",r._onDrop),!this.nativeDraggable&&k(s,"pointercancel",r._onDrop)):(k(s,"mouseup",r._onDrop),k(s,"touchend",r._onDrop),k(s,"touchcancel",r._onDrop)),kt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),J("delayStart",this,{evt:e}),l.delay&&(!l.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ye||Ee))){if(_.eventCanceled){this._onDrop();return}l.supportPointer?(k(s,"pointerup",r._disableDelayedDrag),k(s,"pointercancel",r._disableDelayedDrag)):(k(s,"mouseup",r._disableDelayedDrag),k(s,"touchend",r._disableDelayedDrag),k(s,"touchcancel",r._disableDelayedDrag)),k(s,"mousemove",r._delayedDragTouchMoveHandler),k(s,"touchmove",r._delayedDragTouchMoveHandler),l.supportPointer&&k(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(u,l.delay)}else u()}},_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(){c&&ct(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;x(e,"mouseup",this._disableDelayedDrag),x(e,"touchend",this._disableDelayedDrag),x(e,"touchcancel",this._disableDelayedDrag),x(e,"pointerup",this._disableDelayedDrag),x(e,"pointercancel",this._disableDelayedDrag),x(e,"mousemove",this._delayedDragTouchMoveHandler),x(e,"touchmove",this._delayedDragTouchMoveHandler),x(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?k(document,"pointermove",this._onTouchMove):n?k(document,"touchmove",this._onTouchMove):k(document,"mousemove",this._onTouchMove):(k(c,"dragend",this),k(B,"dragstart",this._onDragStart));try{document.selection?Qe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Oe=!1,B&&c){J("dragStarted",this,{evt:n}),this.nativeDraggable&&k(document,"dragover",Sn);var t=this.options;!e&&ne(c,t.dragClass,!1),ne(c,t.ghostClass,!0),_.active=this,e&&this._appendGhost(),U({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,Zt();for(var e=document.elementFromPoint(de.clientX,de.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(de.clientX,de.clientY),e!==n);)n=e;if(c.parentNode[ee]._isOutsideThisEl(e),n)do{if(n[ee]){var t=void 0;if(t=n[ee]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:n}),t&&!this.options.dragoverBubble)break}e=n}while(n=Xt(n));Qt()}},_onTouchMove:function(e){if(Te){var n=this.options,t=n.fallbackTolerance,r=n.fallbackOffset,a=e.touches?e.touches[0]:e,l=D&&Ae(D,!0),s=D&&l&&l.a,u=D&&l&&l.d,d=je&&q&&Ot(q),g=(a.clientX-Te.clientX+r.x)/(s||1)+(d?d[0]-dt[0]:0)/(s||1),p=(a.clientY-Te.clientY+r.y)/(u||1)+(d?d[1]-dt[1]:0)/(u||1);if(!_.active&&!Oe){if(t&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}if(D){l?(l.e+=g-(st||0),l.f+=p-(ut||0)):l={a:1,b:0,c:0,d:1,e:g,f:p};var b="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");w(D,"webkitTransform",b),w(D,"mozTransform",b),w(D,"msTransform",b),w(D,"transform",b),st=g,ut=p,de=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!D){var e=this.options.fallbackOnBody?document.body:B,n=V(c,!0,je,!0,e),t=this.options;if(je){for(q=e;w(q,"position")==="static"&&w(q,"transform")==="none"&&q!==document;)q=q.parentNode;q!==document.body&&q!==document.documentElement?(q===document&&(q=ge()),n.top+=q.scrollTop,n.left+=q.scrollLeft):q=ge(),dt=Ot(q)}D=c.cloneNode(!0),ne(D,t.ghostClass,!1),ne(D,t.fallbackClass,!0),ne(D,t.dragClass,!0),w(D,"transition",""),w(D,"transform",""),w(D,"box-sizing","border-box"),w(D,"margin",0),w(D,"top",n.top),w(D,"left",n.left),w(D,"width",n.width),w(D,"height",n.height),w(D,"opacity","0.8"),w(D,"position",je?"absolute":"fixed"),w(D,"zIndex","100000"),w(D,"pointerEvents","none"),_.ghost=D,e.appendChild(D),w(D,"transform-origin",Pt/parseInt(D.style.width)*100+"% "+At/parseInt(D.style.height)*100+"%")}},_onDragStart:function(e,n){var t=this,r=e.dataTransfer,a=t.options;if(J("dragStart",this,{evt:e}),_.eventCanceled){this._onDrop();return}J("setupClone",this),_.eventCanceled||(F=Ht(c),F.removeAttribute("id"),F.draggable=!1,F.style["will-change"]="",this._hideClone(),ne(F,this.options.chosenClass,!1),_.clone=F),t.cloneId=Qe(function(){J("clone",t),!_.eventCanceled&&(t.options.removeCloneOnHide||B.insertBefore(F,c),t._hideClone(),U({sortable:t,name:"clone"}))}),!n&&ne(c,a.dragClass,!0),n?(tt=!0,t._loopId=setInterval(t._emulateDragOver,50)):(x(document,"mouseup",t._onDrop),x(document,"touchend",t._onDrop),x(document,"touchcancel",t._onDrop),r&&(r.effectAllowed="move",a.setData&&a.setData.call(t,r,c)),k(document,"drop",t),w(c,"transform","translateZ(0)")),Oe=!0,t._dragStartId=Qe(t._dragStarted.bind(t,n,e)),k(document,"selectstart",t),Fe=!0,window.getSelection().removeAllRanges(),ze&&w(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,t=e.target,r,a,l,s=this.options,u=s.group,d=_.active,g=Ge===u,p=s.sort,b=G||d,v,C=this,T=!1;if(gt)return;function $(y,N){J(y,C,me({evt:e,isOwner:g,axis:v?"vertical":"horizontal",revert:l,dragRect:r,targetRect:a,canSort:p,fromSortable:b,target:t,completed:I,onMove:function(le,m){return qe(B,n,c,r,le,V(le),e,m)},changed:K},N))}function H(){$("dragOverAnimationCapture"),C.captureAnimationState(),C!==b&&b.captureAnimationState()}function I(y){return $("dragOverCompleted",{insertion:y}),y&&(g?d._hideClone():d._showClone(C),C!==b&&(ne(c,G?G.options.ghostClass:d.options.ghostClass,!1),ne(c,s.ghostClass,!0)),G!==C&&C!==_.active?G=C:C===_.active&&G&&(G=null),b===C&&(C._ignoreWhileAnimating=t),C.animateAll(function(){$("dragOverAnimationComplete"),C._ignoreWhileAnimating=null}),C!==b&&(b.animateAll(),b._ignoreWhileAnimating=null)),(t===c&&!c.animated||t===n&&!t.animated)&&(Ne=null),!s.dragoverBubble&&!e.rootEl&&t!==document&&(c.parentNode[ee]._isOutsideThisEl(e.target),!y&&xe(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),T=!0}function K(){oe=se(c),_e=se(c,s.draggable),U({sortable:C,name:"change",toEl:n,newIndex:oe,newDraggableIndex:_e,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),t=ce(t,s.draggable,n,!0),$("dragOver"),_.eventCanceled)return T;if(c.contains(e.target)||t.animated&&t.animatingX&&t.animatingY||C._ignoreWhileAnimating===t)return I(!1);if(tt=!1,d&&!s.disabled&&(g?p||(l=R!==B):G===this||(this.lastPutMode=Ge.checkPull(this,d,c,e))&&u.checkPut(this,d,c,e))){if(v=this._getDirection(e,t)==="vertical",r=V(c),$("dragOverValid"),_.eventCanceled)return T;if(l)return R=B,H(),this._hideClone(),$("revert"),_.eventCanceled||(ke?B.insertBefore(c,ke):B.appendChild(c)),I(!0);var M=_t(n,s.draggable);if(!M||xn(e,v,this)&&!M.animated){if(M===c)return I(!1);if(M&&n===e.target&&(t=M),t&&(a=V(t)),qe(B,n,c,r,t,a,e,!!t)!==!1)return H(),M&&M.nextSibling?n.insertBefore(c,M.nextSibling):n.appendChild(c),R=n,K(),I(!0)}else if(M&&Tn(e,v,this)){var W=Be(n,0,s,!0);if(W===c)return I(!1);if(t=W,a=V(t),qe(B,n,c,r,t,a,e,!1)!==!1)return H(),n.insertBefore(c,W),R=n,K(),I(!0)}else if(t.parentNode===n){a=V(t);var z=0,re,ie=c.parentNode!==n,P=!wn(c.animated&&c.toRect||r,t.animated&&t.toRect||a,v),ve=v?"top":"left",ae=Nt(t,"top","top")||Nt(c,"top","top"),fe=ae?ae.scrollTop:void 0;Ne!==t&&(re=a[ve],Xe=!1,He=!P&&s.invertSwap||ie),z=kn(e,t,a,v,P?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,He,Ne===t);var j;if(z!==0){var Y=se(c);do Y-=z,j=R.children[Y];while(j&&(w(j,"display")==="none"||j===D))}if(z===0||j===t)return I(!1);Ne=t,Ve=z;var pe=t.nextElementSibling,Z=!1;Z=z===1;var we=qe(B,n,c,r,t,a,e,Z);if(we!==!1)return(we===1||we===-1)&&(Z=we===1),gt=!0,setTimeout(Cn,30),H(),Z&&!pe?n.appendChild(c):t.parentNode.insertBefore(c,Z?pe:t),ae&&Gt(ae,0,fe-ae.scrollTop),R=c.parentNode,re!==void 0&&!He&&(Ze=Math.abs(re-V(t)[ve])),K(),I(!0)}if(n.contains(c))return I(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){x(document,"mousemove",this._onTouchMove),x(document,"touchmove",this._onTouchMove),x(document,"pointermove",this._onTouchMove),x(document,"dragover",xe),x(document,"mousemove",xe),x(document,"touchmove",xe)},_offUpEvents:function(){var e=this.el.ownerDocument;x(e,"mouseup",this._onDrop),x(e,"touchend",this._onDrop),x(e,"pointerup",this._onDrop),x(e,"pointercancel",this._onDrop),x(e,"touchcancel",this._onDrop),x(document,"selectstart",this)},_onDrop:function(e){var n=this.el,t=this.options;if(oe=se(c),_e=se(c,t.draggable),J("drop",this,{evt:e}),R=c&&c.parentNode,oe=se(c),_e=se(c,t.draggable),_.eventCanceled){this._nulling();return}Oe=!1,He=!1,Xe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),mt(this.cloneId),mt(this._dragStartId),this.nativeDraggable&&(x(document,"drop",this),x(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ze&&w(document.body,"user-select",""),w(c,"transform",""),e&&(Fe&&(e.cancelable&&e.preventDefault(),!t.dropBubble&&e.stopPropagation()),D&&D.parentNode&&D.parentNode.removeChild(D),(B===R||G&&G.lastPutMode!=="clone")&&F&&F.parentNode&&F.parentNode.removeChild(F),c&&(this.nativeDraggable&&x(c,"dragend",this),ct(c),c.style["will-change"]="",Fe&&!Oe&&ne(c,G?G.options.ghostClass:this.options.ghostClass,!1),ne(c,this.options.chosenClass,!1),U({sortable:this,name:"unchoose",toEl:R,newIndex:null,newDraggableIndex:null,originalEvent:e}),B!==R?(oe>=0&&(U({rootEl:R,name:"add",toEl:R,fromEl:B,originalEvent:e}),U({sortable:this,name:"remove",toEl:R,originalEvent:e}),U({rootEl:R,name:"sort",toEl:R,fromEl:B,originalEvent:e}),U({sortable:this,name:"sort",toEl:R,originalEvent:e})),G&&G.save()):oe!==Pe&&oe>=0&&(U({sortable:this,name:"update",toEl:R,originalEvent:e}),U({sortable:this,name:"sort",toEl:R,originalEvent:e})),_.active&&((oe==null||oe===-1)&&(oe=Pe,_e=Le),U({sortable:this,name:"end",toEl:R,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){J("nulling",this),B=c=R=D=ke=F=Ue=Se=Te=de=Fe=oe=_e=Pe=Le=Ne=Ve=G=Ge=_.dragged=_.ghost=_.clone=_.active=null,ot.forEach(function(e){e.checked=!0}),ot.length=st=ut=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":c&&(this._onDragOver(e),Dn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,t=this.el.children,r=0,a=t.length,l=this.options;r<a;r++)n=t[r],ce(n,l.draggable,this.el,!1)&&e.push(n.getAttribute(l.dataIdAttr)||Nn(n));return e},sort:function(e,n){var t={},r=this.el;this.toArray().forEach(function(a,l){var s=r.children[l];ce(s,this.options.draggable,r,!1)&&(t[a]=s)},this),n&&this.captureAnimationState(),e.forEach(function(a){t[a]&&(r.removeChild(t[a]),r.appendChild(t[a]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return ce(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var t=this.options;if(n===void 0)return t[e];var r=$e.modifyOption(this,e,n);typeof r<"u"?t[e]=r:t[e]=n,e==="group"&&Ut(t)},destroy:function(){J("destroy",this);var e=this.el;e[ee]=null,x(e,"mousedown",this._onTapStart),x(e,"touchstart",this._onTapStart),x(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(x(e,"dragover",this),x(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),nt.splice(nt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Se){if(J("hideClone",this),_.eventCanceled)return;w(F,"display","none"),this.options.removeCloneOnHide&&F.parentNode&&F.parentNode.removeChild(F),Se=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Se){if(J("showClone",this),_.eventCanceled)return;c.parentNode==B&&!this.options.group.revertClone?B.insertBefore(F,c):ke?B.insertBefore(F,ke):B.appendChild(F),this.options.group.revertClone&&this.animate(c,F),w(F,"display",""),Se=!1}}};function Dn(o){o.dataTransfer&&(o.dataTransfer.dropEffect="move"),o.cancelable&&o.preventDefault()}function qe(o,e,n,t,r,a,l,s){var u,d=o[ee],g=d.options.onMove,p;return window.CustomEvent&&!Ee&&!Ye?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=e,u.from=o,u.dragged=n,u.draggedRect=t,u.related=r||e,u.relatedRect=a||V(e),u.willInsertAfter=s,u.originalEvent=l,o.dispatchEvent(u),g&&(p=g.call(d,u,l)),p}function ct(o){o.draggable=!1}function Cn(){gt=!1}function Tn(o,e,n){var t=V(Be(n.el,0,n.options,!0)),r=jt(n.el,n.options,D),a=10;return e?o.clientX<r.left-a||o.clientY<t.top&&o.clientX<t.right:o.clientY<r.top-a||o.clientY<t.bottom&&o.clientX<t.left}function xn(o,e,n){var t=V(_t(n.el,n.options.draggable)),r=jt(n.el,n.options,D),a=10;return e?o.clientX>r.right+a||o.clientY>t.bottom&&o.clientX>t.left:o.clientY>r.bottom+a||o.clientX>t.right&&o.clientY>t.top}function kn(o,e,n,t,r,a,l,s){var u=t?o.clientY:o.clientX,d=t?n.height:n.width,g=t?n.top:n.left,p=t?n.bottom:n.right,b=!1;if(!l){if(s&&Ze<d*r){if(!Xe&&(Ve===1?u>g+d*a/2:u<p-d*a/2)&&(Xe=!0),Xe)b=!0;else if(Ve===1?u<g+Ze:u>p-Ze)return-Ve}else if(u>g+d*(1-r)/2&&u<p-d*(1-r)/2)return In(e)}return b=b||l,b&&(u<g+d*a/2||u>p-d*a/2)?u>g+d/2?1:-1:0}function In(o){return se(c)<se(o)?1:-1}function Nn(o){for(var e=o.tagName+o.className+o.src+o.href+o.textContent,n=e.length,t=0;n--;)t+=e.charCodeAt(n);return t.toString(36)}function On(o){ot.length=0;for(var e=o.getElementsByTagName("input"),n=e.length;n--;){var t=e[n];t.checked&&ot.push(t)}}function Qe(o){return setTimeout(o,0)}function mt(o){return clearTimeout(o)}it&&k(document,"touchmove",function(o){(_.active||Oe)&&o.cancelable&&o.preventDefault()});_.utils={on:k,off:x,css:w,find:Yt,is:function(e,n){return!!ce(e,n,e,!1)},extend:pn,throttle:$t,closest:ce,toggleClass:ne,clone:Ht,index:se,nextTick:Qe,cancelNextTick:mt,detectDirection:Wt,getChild:Be,expando:ee};_.get=function(o){return o[ee]};_.mount=function(){for(var o=arguments.length,e=new Array(o),n=0;n<o;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&&(_.utils=me(me({},_.utils),t.utils)),$e.mount(t)})};_.create=function(o,e){return new _(o,e)};_.version=cn;var L=[],Me,vt,bt=!1,ft,pt,rt,Re;function Pn(){function o(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return o.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?k(document,"dragover",this._handleAutoScroll):this.options.supportPointer?k(document,"pointermove",this._handleFallbackAutoScroll):t.touches?k(document,"touchmove",this._handleFallbackAutoScroll):k(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?x(document,"dragover",this._handleAutoScroll):(x(document,"pointermove",this._handleFallbackAutoScroll),x(document,"touchmove",this._handleFallbackAutoScroll),x(document,"mousemove",this._handleFallbackAutoScroll)),Ft(),Je(),hn()},nulling:function(){rt=vt=Me=bt=Re=ft=pt=null,L.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var r=this,a=(n.touches?n.touches[0]:n).clientX,l=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(a,l);if(rt=n,t||this.options.forceAutoScrollFallback||Ye||Ee||ze){ht(n,this.options,s,t);var u=De(s,!0);bt&&(!Re||a!==ft||l!==pt)&&(Re&&Ft(),Re=setInterval(function(){var d=De(document.elementFromPoint(a,l),!0);d!==u&&(u=d,Je()),ht(n,r.options,d,t)},10),ft=a,pt=l)}else{if(!this.options.bubbleScroll||De(s,!0)===ge()){Je();return}ht(n,this.options,De(s,!1),!1)}}},ye(o,{pluginName:"scroll",initializeByDefault:!0})}function Je(){L.forEach(function(o){clearInterval(o.pid)}),L=[]}function Ft(){clearInterval(Re)}var ht=$t(function(o,e,n,t){if(e.scroll){var r=(o.touches?o.touches[0]:o).clientX,a=(o.touches?o.touches[0]:o).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,u=ge(),d=!1,g;vt!==n&&(vt=n,Je(),Me=e.scroll,g=e.scrollFn,Me===!0&&(Me=De(n,!0)));var p=0,b=Me;do{var v=b,C=V(v),T=C.top,$=C.bottom,H=C.left,I=C.right,K=C.width,M=C.height,W=void 0,z=void 0,re=v.scrollWidth,ie=v.scrollHeight,P=w(v),ve=v.scrollLeft,ae=v.scrollTop;v===u?(W=K<re&&(P.overflowX==="auto"||P.overflowX==="scroll"||P.overflowX==="visible"),z=M<ie&&(P.overflowY==="auto"||P.overflowY==="scroll"||P.overflowY==="visible")):(W=K<re&&(P.overflowX==="auto"||P.overflowX==="scroll"),z=M<ie&&(P.overflowY==="auto"||P.overflowY==="scroll"));var fe=W&&(Math.abs(I-r)<=l&&ve+K<re)-(Math.abs(H-r)<=l&&!!ve),j=z&&(Math.abs($-a)<=l&&ae+M<ie)-(Math.abs(T-a)<=l&&!!ae);if(!L[p])for(var Y=0;Y<=p;Y++)L[Y]||(L[Y]={});(L[p].vx!=fe||L[p].vy!=j||L[p].el!==v)&&(L[p].el=v,L[p].vx=fe,L[p].vy=j,clearInterval(L[p].pid),(fe!=0||j!=0)&&(d=!0,L[p].pid=setInterval((function(){t&&this.layer===0&&_.active._onTouchMove(rt);var pe=L[this.layer].vy?L[this.layer].vy*s:0,Z=L[this.layer].vx?L[this.layer].vx*s:0;typeof g=="function"&&g.call(_.dragged.parentNode[ee],Z,pe,o,rt,L[this.layer].el)!=="continue"||Gt(L[this.layer].el,Z,pe)}).bind({layer:p}),24))),p++}while(e.bubbleScroll&&b!==u&&(b=De(b,!1)));bt=d}},30),Jt=function(e){var n=e.originalEvent,t=e.putSortable,r=e.dragEl,a=e.activeSortable,l=e.dispatchSortableEvent,s=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(n){var d=t||a;s();var g=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,p=document.elementFromPoint(g.clientX,g.clientY);u(),d&&!d.el.contains(p)&&(l("spill"),this.onSpill({dragEl:r,putSortable:t}))}};function St(){}St.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,t=e.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var r=Be(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(n,r):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:Jt};ye(St,{pluginName:"revertOnSpill"});function Dt(){}Dt.prototype={onSpill:function(e){var n=e.dragEl,t=e.putSortable,r=t||this.sortable;r.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),r.animateAll()},drop:Jt};ye(Dt,{pluginName:"removeOnSpill"});_.mount(new Pn);_.mount(Dt,St);const en=["sm","md","lg"],yt={none:"gap-none",sm:"gap-sm",md:"gap-md",lg:"gap-lg"},[tn,nn]=Et.createContext("CheckboxGroup"),An=["data-parents","data-key","data-draggable"],Bn=i.defineComponent({...Rt.getComponentOptions("TreeNode"),__name:"TreeNode",props:{item:{},level:{default:1},parentKeys:{}},setup(o){const e=o,n=i.useSlots(),t=tn(),r=Mt.cva(t.prefixes.node,{variants:{disabled:O.generateVariantClassList("disabled",t.prefixes.node),active:O.generateVariantClassList("active",t.prefixes.node),hasChildren:O.generateVariantClassList("has-children",t.prefixes.node)}}),a=i.computed(()=>{switch(t.size.value){case"sm":return"2xsm";case"md":case"lg":return"xsm"}}),l=i.computed(()=>{switch(t.size.value){case"sm":return"2xsm";default:return"xsm"}}),s=y=>t.getNodeField(y,"children"),u=y=>t.getNodeField(y,"key"),d=i.computed(()=>s(A.cloneDeep(e.item))),g=i.computed(()=>t.getNodeField(e.item,"leaf")),p=i.computed(()=>{var y;return(y=t.props)!=null&&y.draggable?t.getNodeField(e.item,"draggable")??!0:!1}),b=i.computed(()=>u(e.item)),v=i.computed(()=>!!(t.disabled.value||t.getNodeField(e.item,"disabled"))),C=i.computed(()=>{var y;return!!((y=d.value)!=null&&y.some(N=>t.expandedKeys.value.includes(u(N))))}),T=i.computed(()=>{var y,N;return!((y=t.dragging.value)!=null&&y.key&&((N=t.dragging.value)==null?void 0:N.key)===b.value)&&t.expandedKeys.value.includes(b.value)}),$=i.computed(()=>{var y,N;return!!(!t.dragging.value.value&&((y=t.props)!=null&&y.showLine)&&T.value&&((N=d.value)!=null&&N.length))}),H=()=>{v.value||t.onSelect(e.item)},I=i.computed(()=>!!t.model.value.includes(b.value)),K=i.computed(()=>{const y=(m=e.item)=>{const h=s(m);return(h==null?void 0:h.length)&&h.every(S=>t.checked.value.includes(u(S)))},N=(m=e.item)=>{const h=s(m);return h!=null&&h.length?!!(h!=null&&h.some(S=>t.checked.value.includes(u(S))||N(S))):!1},ue=t.checked.value.includes(b.value);return y()?(ue||t.onCheck(e.item),!0):N()?(ue&&t.onCheck(e.item),"indeterminate"):!!ue}),M=()=>{var ue;if(!((ue=d.value)!=null&&ue.length))return t.onCheck(e.item);const y=(le=e.item)=>{const m=s(le);return m!=null&&m.length?m.reduce((h,S)=>{const f=s(S),E=u(S);return f!=null&&f.length?[...h,E,...y(S)]:[...h,E]},[]):[]},N=y();return t.onCheck(e.item,{keys:[b.value,...N],value:!t.checked.value.includes(b.value)})},W=i.computed(()=>[...e.parentKeys??[],b.value]),z=y=>{t.onExpandKey(e.item,y)},re=i.computed(()=>t.dragging.value.key===b.value?t.dragging.value.level??e.level:e.level),ie=i.computed(()=>re.value+1),P=i.computed(()=>{switch(t.size.value){case"sm":return"2xsm";case"md":return"xsm";case"lg":return"sm"}}),{rootBindings:ve,inputBindings:ae}=zt.UseInputDataStates({getDisabled:()=>v.value}),fe=i.computed(()=>{var y,N;return!!((y=d.value)!=null&&y.length||(N=t.props)!=null&&N.lazyLoad&&!g.value)}),j=i.useTemplateRef("indent"),{width:Y,height:pe}=an.useElementSize(j),Z=()=>{t.dir.value==="ltr"?z(!1):z(!0)},we=()=>{t.dir.value==="rtl"?z(!1):z(!0)};return(y,N)=>{var le,m,h,S,f,E,X,Ce;const ue=i.resolveComponent("TreeNode",!0);return i.openBlock(),i.createElementBlock("div",i.mergeProps({"data-parents":(le=i.unref(t).props)!=null&&le.draggable?y.parentKeys:void 0,"data-key":(m=i.unref(t).props)!=null&&m.draggable?b.value:void 0,"data-draggable":(h=i.unref(t).props)!=null&&h.draggable?!v.value&&p.value:void 0,class:[(S=d.value)!=null&&S.length?i.unref(t).prefixes.group:"",i.unref(O.getBemElement)(i.unref(t).prefixes.node,"root"),i.unref(t).getNodeField(y.item,"class"),{[i.unref(O.getBemModifier)(i.unref(t).prefixes.group,"child-expanded")]:C.value,[i.unref(O.getBemModifier)(i.unref(t).prefixes.group,"draggable")]:(f=i.unref(t).props)==null?void 0:f.draggable}]},i.unref(ve),{style:{"--ptc-tree-node-indent-height":`${i.unref(pe)}px`,"--ptc-tree-node-indent-width":`${i.unref(Y)}px`}}),[$.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(O.getBemElement)(i.unref(t).prefixes.group,"line"))},null,2)):i.createCommentVNode("",!0),i.createVNode(i.unref(Et.RovingFocusItem),i.mergeProps({as:"div",tabStopId:b.value,onKeyup:[i.withKeys(Z,["left"]),i.withKeys(we,["right"])],focusable:!v.value,class:[i.unref(r)({disabled:v.value,active:I.value,hasChildren:fe.value})]},i.unref(ae),{onClick:H}),{default:i.withCtx(()=>{var Q,he,te,Ct;return[(Q=i.unref(t).props)!=null&&Q.draggable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(t).prefixes.draggable)},[i.unref(t).dragging.value.key!==b.value&&!i.unref(t).dragging.value.value?(i.openBlock(),i.createBlock(A._sfc_main$3,{key:0,icon:"tabler:grip-vertical",size:l.value,class:i.normalizeClass(i.unref(t).prefixes.draggableIcon)},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"dragTrigger",i.normalizeProps(i.guardReactiveProps({...y.item,selected:I.value,checked:K.value,disabled:v.value,unFocusable:!0})))]),_:3},8,["size","class"])):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0),i.createVNode(on._sfc_main,{ref_key:"indent",ref:j,level:re.value,children:fe.value,size:P.value,expanded:T.value,showLine:!1,class:i.normalizeClass(i.unref(O.getBemElement)(i.unref(t).prefixes.node,"indent")),loading:i.unref(t).getNodeField(y.item,"loading"),"branch-icon":i.unref(t).getNodeField(y.item,"switcherIcon")??((he=i.unref(t).props)==null?void 0:he.switcherIcon),"no-rotate-branch":i.unref(t).getNodeField(y.item,"noRotateSwitcherIcon")??((te=i.unref(t).props)==null?void 0:te.noRotateSwitcherIcon),onToggleExpand:N[0]||(N[0]=i.withModifiers(Mn=>z(),["stop"]))},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"switcherIcon",i.normalizeProps(i.guardReactiveProps({...y.item,selected:I.value,checked:K.value,expanded:T.value,disabled:v.value,unFocusable:!0})))]),_:3},8,["level","children","size","expanded","class","loading","branch-icon","no-rotate-branch"]),i.unref(t).dragging.value.key!==b.value||!i.unref(t).dragging.value.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[(Ct=i.unref(t).props)!=null&&Ct.checkbox?(i.openBlock(),i.createBlock(rn._sfc_main,{key:0,size:a.value,onClick:N[1]||(N[1]=i.withModifiers(()=>{},["stop"])),modelValue:K.value,"onUpdate:modelValue":M,disabled:v.value},null,8,["size","modelValue","disabled"])):i.createCommentVNode("",!0),i.renderSlot(y.$slots,"title",i.normalizeProps(i.guardReactiveProps({...y.item,selected:I.value,checked:K.value,disabled:v.value,unFocusable:!0})),()=>[i.createElementVNode("div",{class:i.normalizeClass(i.unref(O.getBemElement)(i.unref(t).prefixes.node,"title"))},i.toDisplayString(i.unref(t).getNodeField(y.item,"title")),3)])],64)):(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(i.unref(O.getBemElement)(i.unref(t).prefixes.node,"slot"))},null,2))]}),_:3},16,["tabStopId","focusable","class"]),i.unref(t).dragging.value.value||i.unref(t).dragging.value.key||(E=d.value)!=null&&E.length&&(T.value||i.unref(t).props.forceMount)?i.withDirectives((i.openBlock(),i.createBlock(i.unref(Kt),i.mergeProps({key:1,class:i.unref(t).prefixes.groupList,"data-parents":(X=i.unref(t).props)!=null&&X.draggable?W.value:void 0,"data-level":(Ce=i.unref(t).props)!=null&&Ce.draggable?ie.value:void 0,tag:"div",list:d.value},i.unref(t).getSortableProps(y.item)),{item:i.withCtx(({element:Q})=>[i.createVNode(ue,{item:Q,parentKeys:W.value,level:ie.value},i.createSlots({_:2},[i.renderList(Object.keys(n),he=>({name:he,fn:i.withCtx(te=>[i.renderSlot(y.$slots,he,i.normalizeProps(i.guardReactiveProps(te)))])}))]),1032,["item","parentKeys","level"])]),_:3},16,["class","data-parents","data-level","list"])),[[i.vShow,T.value]]):i.createCommentVNode("",!0)],16,An)}}}),Fn=i.defineComponent({...Rt.getComponentOptions("Tree"),__name:"Tree",props:{class:{},size:{default:"md"},gap:{},dir:{},data:{},modelValue:{},value:{},checkedKeys:{},expandedKeys:{},multiple:{type:Boolean},checkbox:{type:Boolean},defaultExpandAll:{type:Boolean},selectable:{type:Boolean},showLine:{type:Boolean},inlineNode:{type:Boolean},lazyLoad:{type:Boolean},forceMount:{type:Boolean},fieldNames:{},groupName:{},getSortableProps:{},switcherIcon:{},noRotateSwitcherIcon:{type:Boolean},draggable:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue","update:value","update:expandedKeys","update:checkedKeys","expand","select","check","dragStart","dragEnd","move","choose","unchoose"],setup(o,{emit:e}){const n=o,t=e,r=i.useSlots(),a=O.getBemBlock("tree"),l=O.getBemElement(a,"node"),s=O.getBemElement(l,"group"),u=O.getBemElement(l,"draggable"),d=O.getBemElement(u,"icon"),g=O.getBemElement(s,"list"),p={node:l,group:s,draggable:u,draggableIcon:d,groupList:g},b=Mt.cva(a,{variants:{size:O.generateVariantClassList(en,a),gap:O.generateVariantClassList(yt,a),selectable:O.generateVariantClassList("selectable",a),disabled:O.generateVariantClassList("disabled",a),inlineNode:O.generateVariantClassList("inline-node",a),dragging:O.generateVariantClassList("dragging",a)}}),v=(m,h)=>{var f;const S=A.get(m,h);return(f=n.fieldNames)!=null&&f[h]?A.get(m,n.fieldNames[h],S):S},C=i.ref(A.cloneDeep(n.data)),T=i.computed(()=>A.cloneDeep(C.value)),$=()=>{if(!n.lazyLoad){const m=[],h=S=>{for(const f of S){const E=v(f,"children");E!=null&&E.length&&(m.push(v(f,"key")),h(E))}};return h(C.value),m}return[]},H=i.ref(n.expandedKeys??(n.defaultExpandAll?$():[]));i.watch(()=>[n.defaultExpandAll,n.expandedKeys],([m,h],[S,f])=>{h!==f?H.value=n.expandedKeys??[]:m&&!S&&(H.value=$())});const I=i.computed({get(){return n.expandedKeys?n.expandedKeys:H.value},set(m){n.expandedKeys||(H.value=m),t("update:expandedKeys",m)}});i.watch(()=>n.data,()=>{C.value=A.cloneDeep(n.data);const m=$();I.value=I.value.filter(h=>m.includes(h))},{deep:!0});const K=i.ref(n.modelValue??n.value??[]);i.watch(()=>[n.modelValue,n.value],()=>{K.value=n.modelValue??n.value??[]});const M=i.computed({get(){return n.modelValue??n.value?n.modelValue??n.value:K.value},set(m){m&&((n.modelValue??n.value)||(K.value=m),t("update:modelValue",m),t("update:value",m))}}),{getDisabled:W,getSize:z}=zt.useFormInput(),re=m=>{var h,S;if(n.selectable&&!W.value){let f=A.cloneDeep(M.value??[]);const E=v(m,"key");n.multiple?(h=M.value)!=null&&h.includes(E)?f=A.cloneDeep((S=M.value)==null?void 0:S.filter(X=>X!==E)):f=A.cloneDeep([...M.value??[],E]):f.includes(E)?f=[]:f=[E],M.value=f,t("select",m,f.includes(E))}},ie=i.ref(n.checkedKeys??[]);i.watch(()=>n.checkedKeys,()=>{ie.value=n.checkedKeys??[]});const P=i.computed({get(){return n.checkedKeys?n.checkedKeys:ie.value},set(m){n.checkedKeys||(ie.value=m),t("update:checkedKeys",m)}}),ve=(m,h)=>{if(n.checkbox&&!W.value){let S=A.cloneDeep(P.value);const f=v(m,"key");h!=null&&h.keys.length?h.value?S=Tt.uniq([...h.keys,...S]):S=A.cloneDeep(P.value.filter(X=>!h.keys.includes(X))):P.value.includes(f)?S=A.cloneDeep(P.value.filter(X=>X!==f)):S=A.cloneDeep([...P.value,f]),P.value=S;const E=(h==null?void 0:h.value)??P.value.includes(f);t("check",m,E,(h==null?void 0:h.keys)??f)}},ae=(m,h)=>{let S=!0;const f=v(m,"key");let E=A.cloneDeep(I.value);h||h!==!1&&!E.includes(f)?(E=Tt.uniq([...E,f]),S=!0):(E=E.filter(X=>X!==f),S=!1),I.value=E,t("expand",m,S)},fe=i.computed(()=>{if(n.gap){if(typeof n.gap=="number")return`${n.gap}px`;if(!Object.keys(yt).includes(n.gap))return n.gap}}),j=n.groupName??O.usePCId(a),Y=i.ref({key:void 0,value:!1,level:void 0}),pe=i.computed(()=>O.getBemModifier(O.getBemElement(a,"dragging_item"),z.value)),Z=m=>{var h;return(h=m.getAttribute("data-parents"))==null?void 0:h.split(",")},we=i.computed(()=>{const m=[],h=(S,f)=>{S!=null&&S.length&&S.forEach((E,X)=>{const Ce=["title","disabled","draggable","leaf","loading","class","switcherIcon","noRotateSwitcherIcon"];let Q=v(E,"key");if(!Q){const te=ln.last(A.cloneDeep(f)??[]);te&&(Q=`${te}-${X}`),Q=`${X}`}Q=String(Q),m.push(A.omitBy({...Object.fromEntries(Ce.map(te=>[te,v(E,te)])),parentKeys:f,key:Q},A.isUndefined));const he=v(E,"children");if(he!=null&&he.length){const te=A.cloneDeep(f)??[];te.push(Q),h(he,te)}})};return h(A.cloneDeep(C.value)),m}),y=m=>{const h=Z(m),S=m.getAttribute("data-key")??"";return we.value.find(f=>{var E,X,Ce;return(!((E=f.parentKeys)!=null&&E.length)&&!(h!=null&&h.length)||((X=f.parentKeys)==null?void 0:X.length)&&(h==null?void 0:h.length)&&f.parentKeys.length===h.length&&((Ce=f.parentKeys)==null?void 0:Ce.every(Q=>h.includes(Q))))&&S===f.key})},N=m=>{var S;const h=((S=n.getSortableProps)==null?void 0:S.call(n,m))||{};return{...h,group:A.isFunction(j)?j(m):j,animation:150,forceFallback:!0,fallbackOnBody:!0,filter:"[data-draggable=false]",handle:`.${p.node} .${p.draggable} .${p.draggableIcon}`,dataIdAttr:"data-key",dragClass:pe.value,onChoose(f){const E=y(f==null?void 0:f.item);E&&(Y.value.key=v(E,"key")),t("choose",f)},onStart(f){if(typeof document<"u"){const E=document.querySelector(`.${pe.value}`);E!=null&&E.style&&(E.style.direction=le.value??"ltr")}Y.value.value=!0,t("dragStart",f)},onUnchoose(f){Y.value.key=void 0,Y.value.level=void 0,t("unchoose",f)},onEnd(f){Y.value.value=!1;const E={...f,node:y(f==null?void 0:f.item),oldParents:Z(f==null?void 0:f.item),newParents:Z(f==null?void 0:f.to)};C.value=A.cloneDeep(n.data),t("dragEnd",E)},onMove(f,E){var X;if(Y.value.level=Number(((X=f==null?void 0:f.to)==null?void 0:X.getAttribute("data-level"))??"1"),t("move",f,E),A.isFunction(h.onMove))return h.onMove(f,E)},itemKey:f=>v(f,"key")}},{getDir:ue}=A.useConfig(),le=ue();return nn({size:z,disabled:W,props:n,expandedKeys:I,model:M,dir:le,checked:P,onExpandKey:ae,onSelect:re,onCheck:ve,getNodeField:v,getSortableProps:N,dragging:Y,prefixes:p}),(m,h)=>(i.openBlock(),i.createBlock(i.unref(Et.RovingFocusGroup),{"as-child":"",orientation:"vertical",dir:i.unref(le)},{default:i.withCtx(()=>[i.createVNode(i.unref(Kt),i.mergeProps({role:"tree",class:[i.unref(b)({size:i.unref(z),gap:n.gap??i.unref(z),selectable:n.selectable,disabled:i.unref(W),inlineNode:n.inlineNode,dragging:!!Y.value.value}),n.class],style:{"--ptc-tree-gap":fe.value},tag:"div",list:T.value},N()),{item:i.withCtx(({element:S})=>[(i.openBlock(),i.createBlock(Bn,{key:v(S,"key"),item:S},i.createSlots({_:2},[i.renderList(Object.keys(r),f=>({name:f,fn:i.withCtx(E=>[i.renderSlot(m.$slots,f,i.normalizeProps(i.guardReactiveProps(E)))])}))]),1032,["item"]))]),_:3},16,["class","style","list"])]),_:3},8,["dir"]))}});exports.TreeGaps=yt;exports.TreeSizes=en;exports._sfc_main=Fn;exports.injectTreeContext=tn;exports.provideTreeContext=nn;
|
|
6
|
+
*/function xt(o,e){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);e&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(o,r).enumerable})),n.push.apply(n,t)}return n}function me(o){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xt(Object(n),!0).forEach(function(t){sn(o,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(n,t))})}return o}function We(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?We=function(e){return typeof e}:We=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(o)}function sn(o,e,n){return e in o?Object.defineProperty(o,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[e]=n,o}function ye(){return ye=Object.assign||function(o){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(o[t]=n[t])}return o},ye.apply(this,arguments)}function un(o,e){if(o==null)return{};var n={},t=Object.keys(o),r,a;for(a=0;a<t.length;a++)r=t[a],!(e.indexOf(r)>=0)&&(n[r]=o[r]);return n}function dn(o,e){if(o==null)return{};var n=un(o,e),t,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);for(r=0;r<a.length;r++)t=a[r],!(e.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(o,t)&&(n[t]=o[t])}return n}var cn="1.15.6";function be(o){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(o)}var Ee=be(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ye=be(/Edge/i),kt=be(/firefox/i),ze=be(/safari/i)&&!be(/chrome/i)&&!be(/android/i),wt=be(/iP(ad|od|hone)/i),Lt=be(/chrome/i)&&be(/android/i),Vt={capture:!1,passive:!1};function k(o,e,n){o.addEventListener(e,n,!Ee&&Vt)}function x(o,e,n){o.removeEventListener(e,n,!Ee&&Vt)}function et(o,e){if(e){if(e[0]===">"&&(e=e.substring(1)),o)try{if(o.matches)return o.matches(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e)}catch{return!1}return!1}}function Xt(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function ce(o,e,n,t){if(o){n=n||document;do{if(e!=null&&(e[0]===">"?o.parentNode===n&&et(o,e):et(o,e))||t&&o===n)return o;if(o===n)break}while(o=Xt(o))}return null}var It=/\s+/g;function ne(o,e,n){if(o&&e)if(o.classList)o.classList[n?"add":"remove"](e);else{var t=(" "+o.className+" ").replace(It," ").replace(" "+e+" "," ");o.className=(t+(n?" "+e:"")).replace(It," ")}}function w(o,e,n){var t=o&&o.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(n=o.currentStyle),e===void 0?n:n[e];!(e in t)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),t[e]=n+(typeof n=="string"?"":"px")}}function Ae(o,e){var n="";if(typeof o=="string")n=o;else do{var t=w(o,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!e&&(o=o.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Yt(o,e,n){if(o){var t=o.getElementsByTagName(e),r=0,a=t.length;if(n)for(;r<a;r++)n(t[r],r);return t}return[]}function ge(){var o=document.scrollingElement;return o||document.documentElement}function V(o,e,n,t,r){if(!(!o.getBoundingClientRect&&o!==window)){var a,l,s,u,d,g,p;if(o!==window&&o.parentNode&&o!==ge()?(a=o.getBoundingClientRect(),l=a.top,s=a.left,u=a.bottom,d=a.right,g=a.height,p=a.width):(l=0,s=0,u=window.innerHeight,d=window.innerWidth,g=window.innerHeight,p=window.innerWidth),(e||n)&&o!==window&&(r=r||o.parentNode,!Ee))do if(r&&r.getBoundingClientRect&&(w(r,"transform")!=="none"||n&&w(r,"position")!=="static")){var b=r.getBoundingClientRect();l-=b.top+parseInt(w(r,"border-top-width")),s-=b.left+parseInt(w(r,"border-left-width")),u=l+a.height,d=s+a.width;break}while(r=r.parentNode);if(t&&o!==window){var v=Ae(r||o),C=v&&v.a,T=v&&v.d;v&&(l/=T,s/=C,p/=C,g/=T,u=l+g,d=s+p)}return{top:l,left:s,bottom:u,right:d,width:p,height:g}}}function Nt(o,e,n){for(var t=De(o,!0),r=V(o)[e];t;){var a=V(t)[n],l=void 0;if(l=r>=a,!l)return t;if(t===ge())break;t=De(t,!1)}return!1}function Be(o,e,n,t){for(var r=0,a=0,l=o.children;a<l.length;){if(l[a].style.display!=="none"&&l[a]!==_.ghost&&(t||l[a]!==_.dragged)&&ce(l[a],n.draggable,o,!1)){if(r===e)return l[a];r++}a++}return null}function _t(o,e){for(var n=o.lastElementChild;n&&(n===_.ghost||w(n,"display")==="none"||e&&!et(n,e));)n=n.previousElementSibling;return n||null}function se(o,e){var n=0;if(!o||!o.parentNode)return-1;for(;o=o.previousElementSibling;)o.nodeName.toUpperCase()!=="TEMPLATE"&&o!==_.clone&&(!e||et(o,e))&&n++;return n}function Ot(o){var e=0,n=0,t=ge();if(o)do{var r=Ae(o),a=r.a,l=r.d;e+=o.scrollLeft*a,n+=o.scrollTop*l}while(o!==t&&(o=o.parentNode));return[e,n]}function fn(o,e){for(var n in o)if(o.hasOwnProperty(n)){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===o[n][t])return Number(n)}return-1}function De(o,e){if(!o||!o.getBoundingClientRect)return ge();var n=o,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=w(n);if(n.clientWidth<n.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return ge();if(t||e)return n;t=!0}}while(n=n.parentNode);return ge()}function pn(o,e){if(o&&e)for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);return o}function at(o,e){return Math.round(o.top)===Math.round(e.top)&&Math.round(o.left)===Math.round(e.left)&&Math.round(o.height)===Math.round(e.height)&&Math.round(o.width)===Math.round(e.width)}var Ke;function $t(o,e){return function(){if(!Ke){var n=arguments,t=this;n.length===1?o.call(t,n[0]):o.apply(t,n),Ke=setTimeout(function(){Ke=void 0},e)}}}function hn(){clearTimeout(Ke),Ke=void 0}function Gt(o,e,n){o.scrollLeft+=e,o.scrollTop+=n}function Ht(o){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(o).cloneNode(!0):n?n(o).clone(!0)[0]:o.cloneNode(!0)}function jt(o,e,n){var t={};return Array.from(o.children).forEach(function(r){var a,l,s,u;if(!(!ce(r,e.draggable,o,!1)||r.animated||r===n)){var d=V(r);t.left=Math.min((a=t.left)!==null&&a!==void 0?a:1/0,d.left),t.top=Math.min((l=t.top)!==null&&l!==void 0?l:1/0,d.top),t.right=Math.max((s=t.right)!==null&&s!==void 0?s:-1/0,d.right),t.bottom=Math.max((u=t.bottom)!==null&&u!==void 0?u:-1/0,d.bottom)}}),t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}var ee="Sortable"+new Date().getTime();function gn(){var o=[],e;return{captureAnimationState:function(){if(o=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(r){if(!(w(r,"display")==="none"||r===_.ghost)){o.push({target:r,rect:V(r)});var a=me({},o[o.length-1].rect);if(r.thisAnimationDuration){var l=Ae(r,!0);l&&(a.top-=l.f,a.left-=l.e)}r.fromRect=a}})}},addAnimationState:function(t){o.push(t)},removeAnimationState:function(t){o.splice(fn(o,{target:t}),1)},animateAll:function(t){var r=this;if(!this.options.animation){clearTimeout(e),typeof t=="function"&&t();return}var a=!1,l=0;o.forEach(function(s){var u=0,d=s.target,g=d.fromRect,p=V(d),b=d.prevFromRect,v=d.prevToRect,C=s.rect,T=Ae(d,!0);T&&(p.top-=T.f,p.left-=T.e),d.toRect=p,d.thisAnimationDuration&&at(b,p)&&!at(g,p)&&(C.top-p.top)/(C.left-p.left)===(g.top-p.top)/(g.left-p.left)&&(u=vn(C,b,v,r.options)),at(p,g)||(d.prevFromRect=g,d.prevToRect=p,u||(u=r.options.animation),r.animate(d,C,p,u)),u&&(a=!0,l=Math.max(l,u),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},u),d.thisAnimationDuration=u)}),clearTimeout(e),a?e=setTimeout(function(){typeof t=="function"&&t()},l):typeof t=="function"&&t(),o=[]},animate:function(t,r,a,l){if(l){w(t,"transition",""),w(t,"transform","");var s=Ae(this.el),u=s&&s.a,d=s&&s.d,g=(r.left-a.left)/(u||1),p=(r.top-a.top)/(d||1);t.animatingX=!!g,t.animatingY=!!p,w(t,"transform","translate3d("+g+"px,"+p+"px,0)"),this.forRepaintDummy=mn(t),w(t,"transition","transform "+l+"ms"+(this.options.easing?" "+this.options.easing:"")),w(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){w(t,"transition",""),w(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},l)}}}}function mn(o){return o.offsetWidth}function vn(o,e,n,t){return Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*t.animation}var Ie=[],lt={initializeByDefault:!0},$e={mount:function(e){for(var n in lt)lt.hasOwnProperty(n)&&!(n in e)&&(e[n]=lt[n]);Ie.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Ie.push(e)},pluginEvent:function(e,n,t){var r=this;this.eventCanceled=!1,t.cancel=function(){r.eventCanceled=!0};var a=e+"Global";Ie.forEach(function(l){n[l.pluginName]&&(n[l.pluginName][a]&&n[l.pluginName][a](me({sortable:n},t)),n.options[l.pluginName]&&n[l.pluginName][e]&&n[l.pluginName][e](me({sortable:n},t)))})},initializePlugins:function(e,n,t,r){Ie.forEach(function(s){var u=s.pluginName;if(!(!e.options[u]&&!s.initializeByDefault)){var d=new s(e,n,e.options);d.sortable=e,d.options=e.options,e[u]=d,ye(t,d.defaults)}});for(var a in e.options)if(e.options.hasOwnProperty(a)){var l=this.modifyOption(e,a,e.options[a]);typeof l<"u"&&(e.options[a]=l)}},getEventProperties:function(e,n){var t={};return Ie.forEach(function(r){typeof r.eventProperties=="function"&&ye(t,r.eventProperties.call(n[r.pluginName],e))}),t},modifyOption:function(e,n,t){var r;return Ie.forEach(function(a){e[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(r=a.optionListeners[n].call(e[a.pluginName],t))}),r}};function bn(o){var e=o.sortable,n=o.rootEl,t=o.name,r=o.targetEl,a=o.cloneEl,l=o.toEl,s=o.fromEl,u=o.oldIndex,d=o.newIndex,g=o.oldDraggableIndex,p=o.newDraggableIndex,b=o.originalEvent,v=o.putSortable,C=o.extraEventProperties;if(e=e||n&&n[ee],!!e){var T,$=e.options,H="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!Ee&&!Ye?T=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(T=document.createEvent("Event"),T.initEvent(t,!0,!0)),T.to=l||n,T.from=s||n,T.item=r||n,T.clone=a,T.oldIndex=u,T.newIndex=d,T.oldDraggableIndex=g,T.newDraggableIndex=p,T.originalEvent=b,T.pullMode=v?v.lastPutMode:void 0;var I=me(me({},C),$e.getEventProperties(t,e));for(var K in I)T[K]=I[K];n&&n.dispatchEvent(T),$[H]&&$[H].call(e,T)}}var yn=["evt"],J=function(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.evt,a=dn(t,yn);$e.pluginEvent.bind(_)(e,n,me({dragEl:c,parentEl:R,ghostEl:D,rootEl:B,nextEl:ke,lastDownEl:Ue,cloneEl:F,cloneHidden:Se,dragStarted:Fe,putSortable:G,activeSortable:_.active,originalEvent:r,oldIndex:Pe,oldDraggableIndex:Le,newIndex:oe,newDraggableIndex:_e,hideGhostForTarget:Zt,unhideGhostForTarget:Qt,cloneNowHidden:function(){Se=!0},cloneNowShown:function(){Se=!1},dispatchSortableEvent:function(s){U({sortable:n,name:s,originalEvent:r})}},a))};function U(o){bn(me({putSortable:G,cloneEl:F,targetEl:c,rootEl:B,oldIndex:Pe,oldDraggableIndex:Le,newIndex:oe,newDraggableIndex:_e},o))}var c,R,D,B,ke,Ue,F,Se,Pe,oe,Le,_e,Ge,G,Oe=!1,tt=!1,nt=[],Te,de,st,ut,Pt,At,Fe,Ne,Ve,Xe=!1,He=!1,Ze,q,dt=[],gt=!1,ot=[],it=typeof document<"u",je=wt,Bt=Ye||Ee?"cssFloat":"float",En=it&&!Lt&&!wt&&"draggable"in document.createElement("div"),qt=function(){if(it){if(Ee)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),Wt=function(e,n){var t=w(e),r=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),a=Be(e,0,n),l=Be(e,1,n),s=a&&w(a),u=l&&w(l),d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+V(a).width,g=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+V(l).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&s.float&&s.float!=="none"){var p=s.float==="left"?"left":"right";return l&&(u.clear==="both"||u.clear===p)?"vertical":"horizontal"}return a&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||d>=r&&t[Bt]==="none"||l&&t[Bt]==="none"&&d+g>r)?"vertical":"horizontal"},wn=function(e,n,t){var r=t?e.left:e.top,a=t?e.right:e.bottom,l=t?e.width:e.height,s=t?n.left:n.top,u=t?n.right:n.bottom,d=t?n.width:n.height;return r===s||a===u||r+l/2===s+d/2},_n=function(e,n){var t;return nt.some(function(r){var a=r[ee].options.emptyInsertThreshold;if(!(!a||_t(r))){var l=V(r),s=e>=l.left-a&&e<=l.right+a,u=n>=l.top-a&&n<=l.bottom+a;if(s&&u)return t=r}}),t},Ut=function(e){function n(a,l){return function(s,u,d,g){var p=s.options.group.name&&u.options.group.name&&s.options.group.name===u.options.group.name;if(a==null&&(l||p))return!0;if(a==null||a===!1)return!1;if(l&&a==="clone")return a;if(typeof a=="function")return n(a(s,u,d,g),l)(s,u,d,g);var b=(l?s:u).options.group.name;return a===!0||typeof a=="string"&&a===b||a.join&&a.indexOf(b)>-1}}var t={},r=e.group;(!r||We(r)!="object")&&(r={name:r}),t.name=r.name,t.checkPull=n(r.pull,!0),t.checkPut=n(r.put),t.revertClone=r.revertClone,e.group=t},Zt=function(){!qt&&D&&w(D,"display","none")},Qt=function(){!qt&&D&&w(D,"display","")};it&&!Lt&&document.addEventListener("click",function(o){if(tt)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),tt=!1,!1},!0);var xe=function(e){if(c){e=e.touches?e.touches[0]:e;var n=_n(e.clientX,e.clientY);if(n){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[ee]._onDragOver(t)}}},Sn=function(e){c&&c.parentNode[ee]._isOutsideThisEl(e.target)};function _(o,e){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=e=ye({},e),o[ee]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Wt(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(l,s){l.setData("Text",s.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:_.supportPointer!==!1&&"PointerEvent"in window&&(!ze||wt),emptyInsertThreshold:5};$e.initializePlugins(this,o,n);for(var t in n)!(t in e)&&(e[t]=n[t]);Ut(e);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:En,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?k(o,"pointerdown",this._onTapStart):(k(o,"mousedown",this._onTapStart),k(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(k(o,"dragover",this),k(o,"dragenter",this)),nt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ye(this,gn())}_.prototype={constructor:_,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Ne=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,c):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,t=this.el,r=this.options,a=r.preventOnFilter,l=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(s||e).target,d=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,g=r.filter;if(On(t),!c&&!(/mousedown|pointerdown/.test(l)&&e.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&ze&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=ce(u,r.draggable,t,!1),!(u&&u.animated)&&Ue!==u)){if(Pe=se(u),Le=se(u,r.draggable),typeof g=="function"){if(g.call(this,e,u,this)){U({sortable:n,rootEl:d,name:"filter",targetEl:u,toEl:t,fromEl:t}),J("filter",n,{evt:e}),a&&e.preventDefault();return}}else if(g&&(g=g.split(",").some(function(p){if(p=ce(d,p.trim(),t,!1),p)return U({sortable:n,rootEl:p,name:"filter",targetEl:u,fromEl:t,toEl:t}),J("filter",n,{evt:e}),!0}),g)){a&&e.preventDefault();return}r.handle&&!ce(d,r.handle,t,!1)||this._prepareDragStart(e,s,u)}}},_prepareDragStart:function(e,n,t){var r=this,a=r.el,l=r.options,s=a.ownerDocument,u;if(t&&!c&&t.parentNode===a){var d=V(t);if(B=a,c=t,R=c.parentNode,ke=c.nextSibling,Ue=t,Ge=l.group,_.dragged=c,Te={target:c,clientX:(n||e).clientX,clientY:(n||e).clientY},Pt=Te.clientX-d.left,At=Te.clientY-d.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,c.style["will-change"]="all",u=function(){if(J("delayEnded",r,{evt:e}),_.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!kt&&r.nativeDraggable&&(c.draggable=!0),r._triggerDragStart(e,n),U({sortable:r,name:"choose",originalEvent:e}),ne(c,l.chosenClass,!0)},l.ignore.split(",").forEach(function(g){Yt(c,g.trim(),ct)}),k(s,"dragover",xe),k(s,"mousemove",xe),k(s,"touchmove",xe),l.supportPointer?(k(s,"pointerup",r._onDrop),!this.nativeDraggable&&k(s,"pointercancel",r._onDrop)):(k(s,"mouseup",r._onDrop),k(s,"touchend",r._onDrop),k(s,"touchcancel",r._onDrop)),kt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),J("delayStart",this,{evt:e}),l.delay&&(!l.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ye||Ee))){if(_.eventCanceled){this._onDrop();return}l.supportPointer?(k(s,"pointerup",r._disableDelayedDrag),k(s,"pointercancel",r._disableDelayedDrag)):(k(s,"mouseup",r._disableDelayedDrag),k(s,"touchend",r._disableDelayedDrag),k(s,"touchcancel",r._disableDelayedDrag)),k(s,"mousemove",r._delayedDragTouchMoveHandler),k(s,"touchmove",r._delayedDragTouchMoveHandler),l.supportPointer&&k(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(u,l.delay)}else u()}},_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(){c&&ct(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;x(e,"mouseup",this._disableDelayedDrag),x(e,"touchend",this._disableDelayedDrag),x(e,"touchcancel",this._disableDelayedDrag),x(e,"pointerup",this._disableDelayedDrag),x(e,"pointercancel",this._disableDelayedDrag),x(e,"mousemove",this._delayedDragTouchMoveHandler),x(e,"touchmove",this._delayedDragTouchMoveHandler),x(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?k(document,"pointermove",this._onTouchMove):n?k(document,"touchmove",this._onTouchMove):k(document,"mousemove",this._onTouchMove):(k(c,"dragend",this),k(B,"dragstart",this._onDragStart));try{document.selection?Qe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Oe=!1,B&&c){J("dragStarted",this,{evt:n}),this.nativeDraggable&&k(document,"dragover",Sn);var t=this.options;!e&&ne(c,t.dragClass,!1),ne(c,t.ghostClass,!0),_.active=this,e&&this._appendGhost(),U({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,Zt();for(var e=document.elementFromPoint(de.clientX,de.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(de.clientX,de.clientY),e!==n);)n=e;if(c.parentNode[ee]._isOutsideThisEl(e),n)do{if(n[ee]){var t=void 0;if(t=n[ee]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:n}),t&&!this.options.dragoverBubble)break}e=n}while(n=Xt(n));Qt()}},_onTouchMove:function(e){if(Te){var n=this.options,t=n.fallbackTolerance,r=n.fallbackOffset,a=e.touches?e.touches[0]:e,l=D&&Ae(D,!0),s=D&&l&&l.a,u=D&&l&&l.d,d=je&&q&&Ot(q),g=(a.clientX-Te.clientX+r.x)/(s||1)+(d?d[0]-dt[0]:0)/(s||1),p=(a.clientY-Te.clientY+r.y)/(u||1)+(d?d[1]-dt[1]:0)/(u||1);if(!_.active&&!Oe){if(t&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}if(D){l?(l.e+=g-(st||0),l.f+=p-(ut||0)):l={a:1,b:0,c:0,d:1,e:g,f:p};var b="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");w(D,"webkitTransform",b),w(D,"mozTransform",b),w(D,"msTransform",b),w(D,"transform",b),st=g,ut=p,de=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!D){var e=this.options.fallbackOnBody?document.body:B,n=V(c,!0,je,!0,e),t=this.options;if(je){for(q=e;w(q,"position")==="static"&&w(q,"transform")==="none"&&q!==document;)q=q.parentNode;q!==document.body&&q!==document.documentElement?(q===document&&(q=ge()),n.top+=q.scrollTop,n.left+=q.scrollLeft):q=ge(),dt=Ot(q)}D=c.cloneNode(!0),ne(D,t.ghostClass,!1),ne(D,t.fallbackClass,!0),ne(D,t.dragClass,!0),w(D,"transition",""),w(D,"transform",""),w(D,"box-sizing","border-box"),w(D,"margin",0),w(D,"top",n.top),w(D,"left",n.left),w(D,"width",n.width),w(D,"height",n.height),w(D,"opacity","0.8"),w(D,"position",je?"absolute":"fixed"),w(D,"zIndex","100000"),w(D,"pointerEvents","none"),_.ghost=D,e.appendChild(D),w(D,"transform-origin",Pt/parseInt(D.style.width)*100+"% "+At/parseInt(D.style.height)*100+"%")}},_onDragStart:function(e,n){var t=this,r=e.dataTransfer,a=t.options;if(J("dragStart",this,{evt:e}),_.eventCanceled){this._onDrop();return}J("setupClone",this),_.eventCanceled||(F=Ht(c),F.removeAttribute("id"),F.draggable=!1,F.style["will-change"]="",this._hideClone(),ne(F,this.options.chosenClass,!1),_.clone=F),t.cloneId=Qe(function(){J("clone",t),!_.eventCanceled&&(t.options.removeCloneOnHide||B.insertBefore(F,c),t._hideClone(),U({sortable:t,name:"clone"}))}),!n&&ne(c,a.dragClass,!0),n?(tt=!0,t._loopId=setInterval(t._emulateDragOver,50)):(x(document,"mouseup",t._onDrop),x(document,"touchend",t._onDrop),x(document,"touchcancel",t._onDrop),r&&(r.effectAllowed="move",a.setData&&a.setData.call(t,r,c)),k(document,"drop",t),w(c,"transform","translateZ(0)")),Oe=!0,t._dragStartId=Qe(t._dragStarted.bind(t,n,e)),k(document,"selectstart",t),Fe=!0,window.getSelection().removeAllRanges(),ze&&w(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,t=e.target,r,a,l,s=this.options,u=s.group,d=_.active,g=Ge===u,p=s.sort,b=G||d,v,C=this,T=!1;if(gt)return;function $(y,N){J(y,C,me({evt:e,isOwner:g,axis:v?"vertical":"horizontal",revert:l,dragRect:r,targetRect:a,canSort:p,fromSortable:b,target:t,completed:I,onMove:function(le,m){return qe(B,n,c,r,le,V(le),e,m)},changed:K},N))}function H(){$("dragOverAnimationCapture"),C.captureAnimationState(),C!==b&&b.captureAnimationState()}function I(y){return $("dragOverCompleted",{insertion:y}),y&&(g?d._hideClone():d._showClone(C),C!==b&&(ne(c,G?G.options.ghostClass:d.options.ghostClass,!1),ne(c,s.ghostClass,!0)),G!==C&&C!==_.active?G=C:C===_.active&&G&&(G=null),b===C&&(C._ignoreWhileAnimating=t),C.animateAll(function(){$("dragOverAnimationComplete"),C._ignoreWhileAnimating=null}),C!==b&&(b.animateAll(),b._ignoreWhileAnimating=null)),(t===c&&!c.animated||t===n&&!t.animated)&&(Ne=null),!s.dragoverBubble&&!e.rootEl&&t!==document&&(c.parentNode[ee]._isOutsideThisEl(e.target),!y&&xe(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),T=!0}function K(){oe=se(c),_e=se(c,s.draggable),U({sortable:C,name:"change",toEl:n,newIndex:oe,newDraggableIndex:_e,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),t=ce(t,s.draggable,n,!0),$("dragOver"),_.eventCanceled)return T;if(c.contains(e.target)||t.animated&&t.animatingX&&t.animatingY||C._ignoreWhileAnimating===t)return I(!1);if(tt=!1,d&&!s.disabled&&(g?p||(l=R!==B):G===this||(this.lastPutMode=Ge.checkPull(this,d,c,e))&&u.checkPut(this,d,c,e))){if(v=this._getDirection(e,t)==="vertical",r=V(c),$("dragOverValid"),_.eventCanceled)return T;if(l)return R=B,H(),this._hideClone(),$("revert"),_.eventCanceled||(ke?B.insertBefore(c,ke):B.appendChild(c)),I(!0);var M=_t(n,s.draggable);if(!M||xn(e,v,this)&&!M.animated){if(M===c)return I(!1);if(M&&n===e.target&&(t=M),t&&(a=V(t)),qe(B,n,c,r,t,a,e,!!t)!==!1)return H(),M&&M.nextSibling?n.insertBefore(c,M.nextSibling):n.appendChild(c),R=n,K(),I(!0)}else if(M&&Tn(e,v,this)){var W=Be(n,0,s,!0);if(W===c)return I(!1);if(t=W,a=V(t),qe(B,n,c,r,t,a,e,!1)!==!1)return H(),n.insertBefore(c,W),R=n,K(),I(!0)}else if(t.parentNode===n){a=V(t);var z=0,re,ie=c.parentNode!==n,A=!wn(c.animated&&c.toRect||r,t.animated&&t.toRect||a,v),ve=v?"top":"left",ae=Nt(t,"top","top")||Nt(c,"top","top"),fe=ae?ae.scrollTop:void 0;Ne!==t&&(re=a[ve],Xe=!1,He=!A&&s.invertSwap||ie),z=kn(e,t,a,v,A?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,He,Ne===t);var j;if(z!==0){var Y=se(c);do Y-=z,j=R.children[Y];while(j&&(w(j,"display")==="none"||j===D))}if(z===0||j===t)return I(!1);Ne=t,Ve=z;var pe=t.nextElementSibling,Z=!1;Z=z===1;var we=qe(B,n,c,r,t,a,e,Z);if(we!==!1)return(we===1||we===-1)&&(Z=we===1),gt=!0,setTimeout(Cn,30),H(),Z&&!pe?n.appendChild(c):t.parentNode.insertBefore(c,Z?pe:t),ae&&Gt(ae,0,fe-ae.scrollTop),R=c.parentNode,re!==void 0&&!He&&(Ze=Math.abs(re-V(t)[ve])),K(),I(!0)}if(n.contains(c))return I(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){x(document,"mousemove",this._onTouchMove),x(document,"touchmove",this._onTouchMove),x(document,"pointermove",this._onTouchMove),x(document,"dragover",xe),x(document,"mousemove",xe),x(document,"touchmove",xe)},_offUpEvents:function(){var e=this.el.ownerDocument;x(e,"mouseup",this._onDrop),x(e,"touchend",this._onDrop),x(e,"pointerup",this._onDrop),x(e,"pointercancel",this._onDrop),x(e,"touchcancel",this._onDrop),x(document,"selectstart",this)},_onDrop:function(e){var n=this.el,t=this.options;if(oe=se(c),_e=se(c,t.draggable),J("drop",this,{evt:e}),R=c&&c.parentNode,oe=se(c),_e=se(c,t.draggable),_.eventCanceled){this._nulling();return}Oe=!1,He=!1,Xe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),mt(this.cloneId),mt(this._dragStartId),this.nativeDraggable&&(x(document,"drop",this),x(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ze&&w(document.body,"user-select",""),w(c,"transform",""),e&&(Fe&&(e.cancelable&&e.preventDefault(),!t.dropBubble&&e.stopPropagation()),D&&D.parentNode&&D.parentNode.removeChild(D),(B===R||G&&G.lastPutMode!=="clone")&&F&&F.parentNode&&F.parentNode.removeChild(F),c&&(this.nativeDraggable&&x(c,"dragend",this),ct(c),c.style["will-change"]="",Fe&&!Oe&&ne(c,G?G.options.ghostClass:this.options.ghostClass,!1),ne(c,this.options.chosenClass,!1),U({sortable:this,name:"unchoose",toEl:R,newIndex:null,newDraggableIndex:null,originalEvent:e}),B!==R?(oe>=0&&(U({rootEl:R,name:"add",toEl:R,fromEl:B,originalEvent:e}),U({sortable:this,name:"remove",toEl:R,originalEvent:e}),U({rootEl:R,name:"sort",toEl:R,fromEl:B,originalEvent:e}),U({sortable:this,name:"sort",toEl:R,originalEvent:e})),G&&G.save()):oe!==Pe&&oe>=0&&(U({sortable:this,name:"update",toEl:R,originalEvent:e}),U({sortable:this,name:"sort",toEl:R,originalEvent:e})),_.active&&((oe==null||oe===-1)&&(oe=Pe,_e=Le),U({sortable:this,name:"end",toEl:R,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){J("nulling",this),B=c=R=D=ke=F=Ue=Se=Te=de=Fe=oe=_e=Pe=Le=Ne=Ve=G=Ge=_.dragged=_.ghost=_.clone=_.active=null,ot.forEach(function(e){e.checked=!0}),ot.length=st=ut=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":c&&(this._onDragOver(e),Dn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,t=this.el.children,r=0,a=t.length,l=this.options;r<a;r++)n=t[r],ce(n,l.draggable,this.el,!1)&&e.push(n.getAttribute(l.dataIdAttr)||Nn(n));return e},sort:function(e,n){var t={},r=this.el;this.toArray().forEach(function(a,l){var s=r.children[l];ce(s,this.options.draggable,r,!1)&&(t[a]=s)},this),n&&this.captureAnimationState(),e.forEach(function(a){t[a]&&(r.removeChild(t[a]),r.appendChild(t[a]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return ce(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var t=this.options;if(n===void 0)return t[e];var r=$e.modifyOption(this,e,n);typeof r<"u"?t[e]=r:t[e]=n,e==="group"&&Ut(t)},destroy:function(){J("destroy",this);var e=this.el;e[ee]=null,x(e,"mousedown",this._onTapStart),x(e,"touchstart",this._onTapStart),x(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(x(e,"dragover",this),x(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),nt.splice(nt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Se){if(J("hideClone",this),_.eventCanceled)return;w(F,"display","none"),this.options.removeCloneOnHide&&F.parentNode&&F.parentNode.removeChild(F),Se=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Se){if(J("showClone",this),_.eventCanceled)return;c.parentNode==B&&!this.options.group.revertClone?B.insertBefore(F,c):ke?B.insertBefore(F,ke):B.appendChild(F),this.options.group.revertClone&&this.animate(c,F),w(F,"display",""),Se=!1}}};function Dn(o){o.dataTransfer&&(o.dataTransfer.dropEffect="move"),o.cancelable&&o.preventDefault()}function qe(o,e,n,t,r,a,l,s){var u,d=o[ee],g=d.options.onMove,p;return window.CustomEvent&&!Ee&&!Ye?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=e,u.from=o,u.dragged=n,u.draggedRect=t,u.related=r||e,u.relatedRect=a||V(e),u.willInsertAfter=s,u.originalEvent=l,o.dispatchEvent(u),g&&(p=g.call(d,u,l)),p}function ct(o){o.draggable=!1}function Cn(){gt=!1}function Tn(o,e,n){var t=V(Be(n.el,0,n.options,!0)),r=jt(n.el,n.options,D),a=10;return e?o.clientX<r.left-a||o.clientY<t.top&&o.clientX<t.right:o.clientY<r.top-a||o.clientY<t.bottom&&o.clientX<t.left}function xn(o,e,n){var t=V(_t(n.el,n.options.draggable)),r=jt(n.el,n.options,D),a=10;return e?o.clientX>r.right+a||o.clientY>t.bottom&&o.clientX>t.left:o.clientY>r.bottom+a||o.clientX>t.right&&o.clientY>t.top}function kn(o,e,n,t,r,a,l,s){var u=t?o.clientY:o.clientX,d=t?n.height:n.width,g=t?n.top:n.left,p=t?n.bottom:n.right,b=!1;if(!l){if(s&&Ze<d*r){if(!Xe&&(Ve===1?u>g+d*a/2:u<p-d*a/2)&&(Xe=!0),Xe)b=!0;else if(Ve===1?u<g+Ze:u>p-Ze)return-Ve}else if(u>g+d*(1-r)/2&&u<p-d*(1-r)/2)return In(e)}return b=b||l,b&&(u<g+d*a/2||u>p-d*a/2)?u>g+d/2?1:-1:0}function In(o){return se(c)<se(o)?1:-1}function Nn(o){for(var e=o.tagName+o.className+o.src+o.href+o.textContent,n=e.length,t=0;n--;)t+=e.charCodeAt(n);return t.toString(36)}function On(o){ot.length=0;for(var e=o.getElementsByTagName("input"),n=e.length;n--;){var t=e[n];t.checked&&ot.push(t)}}function Qe(o){return setTimeout(o,0)}function mt(o){return clearTimeout(o)}it&&k(document,"touchmove",function(o){(_.active||Oe)&&o.cancelable&&o.preventDefault()});_.utils={on:k,off:x,css:w,find:Yt,is:function(e,n){return!!ce(e,n,e,!1)},extend:pn,throttle:$t,closest:ce,toggleClass:ne,clone:Ht,index:se,nextTick:Qe,cancelNextTick:mt,detectDirection:Wt,getChild:Be,expando:ee};_.get=function(o){return o[ee]};_.mount=function(){for(var o=arguments.length,e=new Array(o),n=0;n<o;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&&(_.utils=me(me({},_.utils),t.utils)),$e.mount(t)})};_.create=function(o,e){return new _(o,e)};_.version=cn;var L=[],Me,vt,bt=!1,ft,pt,rt,Re;function Pn(){function o(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return o.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?k(document,"dragover",this._handleAutoScroll):this.options.supportPointer?k(document,"pointermove",this._handleFallbackAutoScroll):t.touches?k(document,"touchmove",this._handleFallbackAutoScroll):k(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?x(document,"dragover",this._handleAutoScroll):(x(document,"pointermove",this._handleFallbackAutoScroll),x(document,"touchmove",this._handleFallbackAutoScroll),x(document,"mousemove",this._handleFallbackAutoScroll)),Ft(),Je(),hn()},nulling:function(){rt=vt=Me=bt=Re=ft=pt=null,L.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var r=this,a=(n.touches?n.touches[0]:n).clientX,l=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(a,l);if(rt=n,t||this.options.forceAutoScrollFallback||Ye||Ee||ze){ht(n,this.options,s,t);var u=De(s,!0);bt&&(!Re||a!==ft||l!==pt)&&(Re&&Ft(),Re=setInterval(function(){var d=De(document.elementFromPoint(a,l),!0);d!==u&&(u=d,Je()),ht(n,r.options,d,t)},10),ft=a,pt=l)}else{if(!this.options.bubbleScroll||De(s,!0)===ge()){Je();return}ht(n,this.options,De(s,!1),!1)}}},ye(o,{pluginName:"scroll",initializeByDefault:!0})}function Je(){L.forEach(function(o){clearInterval(o.pid)}),L=[]}function Ft(){clearInterval(Re)}var ht=$t(function(o,e,n,t){if(e.scroll){var r=(o.touches?o.touches[0]:o).clientX,a=(o.touches?o.touches[0]:o).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,u=ge(),d=!1,g;vt!==n&&(vt=n,Je(),Me=e.scroll,g=e.scrollFn,Me===!0&&(Me=De(n,!0)));var p=0,b=Me;do{var v=b,C=V(v),T=C.top,$=C.bottom,H=C.left,I=C.right,K=C.width,M=C.height,W=void 0,z=void 0,re=v.scrollWidth,ie=v.scrollHeight,A=w(v),ve=v.scrollLeft,ae=v.scrollTop;v===u?(W=K<re&&(A.overflowX==="auto"||A.overflowX==="scroll"||A.overflowX==="visible"),z=M<ie&&(A.overflowY==="auto"||A.overflowY==="scroll"||A.overflowY==="visible")):(W=K<re&&(A.overflowX==="auto"||A.overflowX==="scroll"),z=M<ie&&(A.overflowY==="auto"||A.overflowY==="scroll"));var fe=W&&(Math.abs(I-r)<=l&&ve+K<re)-(Math.abs(H-r)<=l&&!!ve),j=z&&(Math.abs($-a)<=l&&ae+M<ie)-(Math.abs(T-a)<=l&&!!ae);if(!L[p])for(var Y=0;Y<=p;Y++)L[Y]||(L[Y]={});(L[p].vx!=fe||L[p].vy!=j||L[p].el!==v)&&(L[p].el=v,L[p].vx=fe,L[p].vy=j,clearInterval(L[p].pid),(fe!=0||j!=0)&&(d=!0,L[p].pid=setInterval((function(){t&&this.layer===0&&_.active._onTouchMove(rt);var pe=L[this.layer].vy?L[this.layer].vy*s:0,Z=L[this.layer].vx?L[this.layer].vx*s:0;typeof g=="function"&&g.call(_.dragged.parentNode[ee],Z,pe,o,rt,L[this.layer].el)!=="continue"||Gt(L[this.layer].el,Z,pe)}).bind({layer:p}),24))),p++}while(e.bubbleScroll&&b!==u&&(b=De(b,!1)));bt=d}},30),Jt=function(e){var n=e.originalEvent,t=e.putSortable,r=e.dragEl,a=e.activeSortable,l=e.dispatchSortableEvent,s=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(n){var d=t||a;s();var g=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,p=document.elementFromPoint(g.clientX,g.clientY);u(),d&&!d.el.contains(p)&&(l("spill"),this.onSpill({dragEl:r,putSortable:t}))}};function St(){}St.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,t=e.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var r=Be(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(n,r):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:Jt};ye(St,{pluginName:"revertOnSpill"});function Dt(){}Dt.prototype={onSpill:function(e){var n=e.dragEl,t=e.putSortable,r=t||this.sortable;r.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),r.animateAll()},drop:Jt};ye(Dt,{pluginName:"removeOnSpill"});_.mount(new Pn);_.mount(Dt,St);const en=["sm","md","lg"],yt={none:"gap-none",sm:"gap-sm",md:"gap-md",lg:"gap-lg"},[tn,nn]=Et.createContext("CheckboxGroup"),An=["data-parents","data-key","data-draggable"],Bn=i.defineComponent({...Rt.getComponentOptions("TreeNode"),__name:"TreeNode",props:{item:{},level:{default:1},parentKeys:{}},setup(o){const e=o,n=i.useSlots(),t=tn(),r=Mt.cva(t.prefixes.node,{variants:{disabled:P.generateVariantClassList("disabled",t.prefixes.node),active:P.generateVariantClassList("active",t.prefixes.node),hasChildren:P.generateVariantClassList("has-children",t.prefixes.node)}}),a=i.computed(()=>{switch(t.size.value){case"sm":return"2xsm";case"md":case"lg":return"xsm"}}),l=i.computed(()=>{switch(t.size.value){case"sm":return"2xsm";default:return"xsm"}}),s=y=>t.getNodeField(y,"children"),u=y=>t.getNodeField(y,"key"),d=i.computed(()=>s(O.cloneDeep(e.item))),g=i.computed(()=>t.getNodeField(e.item,"leaf")),p=i.computed(()=>{var y;return(y=t.props)!=null&&y.draggable?t.getNodeField(e.item,"draggable")??!0:!1}),b=i.computed(()=>u(e.item)),v=i.computed(()=>!!(t.disabled.value||t.getNodeField(e.item,"disabled"))),C=i.computed(()=>{var y;return!!((y=d.value)!=null&&y.some(N=>t.expandedKeys.value.includes(u(N))))}),T=i.computed(()=>{var y,N;return!((y=t.dragging.value)!=null&&y.key&&((N=t.dragging.value)==null?void 0:N.key)===b.value)&&t.expandedKeys.value.includes(b.value)}),$=i.computed(()=>{var y,N;return!!(!t.dragging.value.value&&((y=t.props)!=null&&y.showLine)&&T.value&&((N=d.value)!=null&&N.length))}),H=()=>{v.value||t.onSelect(e.item)},I=i.computed(()=>!!t.model.value.includes(b.value)),K=i.computed(()=>{const y=(m=e.item)=>{const h=s(m);return(h==null?void 0:h.length)&&h.every(S=>t.checked.value.includes(u(S)))},N=(m=e.item)=>{const h=s(m);return h!=null&&h.length?!!(h!=null&&h.some(S=>t.checked.value.includes(u(S))||N(S))):!1},ue=t.checked.value.includes(b.value);return y()?(ue||t.onCheck(e.item),!0):N()?(ue&&t.onCheck(e.item),"indeterminate"):!!ue}),M=()=>{var ue;if(!((ue=d.value)!=null&&ue.length))return t.onCheck(e.item);const y=(le=e.item)=>{const m=s(le);return m!=null&&m.length?m.reduce((h,S)=>{const f=s(S),E=u(S);return f!=null&&f.length?[...h,E,...y(S)]:[...h,E]},[]):[]},N=y();return t.onCheck(e.item,{keys:[b.value,...N],value:!t.checked.value.includes(b.value)})},W=i.computed(()=>[...e.parentKeys??[],b.value]),z=y=>{t.onExpandKey(e.item,y)},re=i.computed(()=>t.dragging.value.key===b.value?t.dragging.value.level??e.level:e.level),ie=i.computed(()=>re.value+1),A=i.computed(()=>{switch(t.size.value){case"sm":return"2xsm";case"md":return"xsm";case"lg":return"sm"}}),{rootBindings:ve,inputBindings:ae}=zt.UseInputDataStates({getDisabled:()=>v.value}),fe=i.computed(()=>{var y,N;return!!((y=d.value)!=null&&y.length||(N=t.props)!=null&&N.lazyLoad&&!g.value)}),j=i.useTemplateRef("indent"),{width:Y,height:pe}=an.useElementSize(j),Z=()=>{t.dir.value==="ltr"?z(!1):z(!0)},we=()=>{t.dir.value==="rtl"?z(!1):z(!0)};return(y,N)=>{var le,m,h,S,f,E,X,Ce;const ue=i.resolveComponent("TreeNode",!0);return i.openBlock(),i.createElementBlock("div",i.mergeProps({"data-parents":(le=i.unref(t).props)!=null&&le.draggable?y.parentKeys:void 0,"data-key":(m=i.unref(t).props)!=null&&m.draggable?b.value:void 0,"data-draggable":(h=i.unref(t).props)!=null&&h.draggable?!v.value&&p.value:void 0,class:[(S=d.value)!=null&&S.length?i.unref(t).prefixes.group:"",i.unref(P.getBemElement)(i.unref(t).prefixes.node,"root"),i.unref(t).getNodeField(y.item,"class"),{[i.unref(P.getBemModifier)(i.unref(t).prefixes.group,"child-expanded")]:C.value,[i.unref(P.getBemModifier)(i.unref(t).prefixes.group,"draggable")]:(f=i.unref(t).props)==null?void 0:f.draggable}]},i.unref(ve),{style:{"--ptc-tree-node-indent-height":`${i.unref(pe)}px`,"--ptc-tree-node-indent-width":`${i.unref(Y)}px`}}),[$.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(P.getBemElement)(i.unref(t).prefixes.group,"line"))},null,2)):i.createCommentVNode("",!0),i.createVNode(i.unref(Et.RovingFocusItem),i.mergeProps({as:"div",tabStopId:b.value,onKeyup:[i.withKeys(Z,["left"]),i.withKeys(we,["right"])],focusable:!v.value,class:[i.unref(r)({disabled:v.value,active:I.value,hasChildren:fe.value})]},i.unref(ae),{onClick:H}),{default:i.withCtx(()=>{var Q,he,te,Ct;return[(Q=i.unref(t).props)!=null&&Q.draggable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(i.unref(t).prefixes.draggable)},[i.unref(t).dragging.value.key!==b.value&&!i.unref(t).dragging.value.value?(i.openBlock(),i.createBlock(O._sfc_main$3,{key:0,icon:"tabler:grip-vertical",size:l.value,class:i.normalizeClass(i.unref(t).prefixes.draggableIcon)},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"dragTrigger",i.normalizeProps(i.guardReactiveProps({...y.item,selected:I.value,checked:K.value,disabled:v.value,unFocusable:!0})))]),_:3},8,["size","class"])):i.createCommentVNode("",!0)],2)):i.createCommentVNode("",!0),i.createVNode(on._sfc_main,{ref_key:"indent",ref:j,level:re.value,children:fe.value,size:A.value,expanded:T.value,showLine:!1,class:i.normalizeClass(i.unref(P.getBemElement)(i.unref(t).prefixes.node,"indent")),loading:i.unref(t).getNodeField(y.item,"loading"),"branch-icon":i.unref(t).getNodeField(y.item,"switcherIcon")??((he=i.unref(t).props)==null?void 0:he.switcherIcon),"no-rotate-branch":i.unref(t).getNodeField(y.item,"noRotateSwitcherIcon")??((te=i.unref(t).props)==null?void 0:te.noRotateSwitcherIcon),onToggleExpand:N[0]||(N[0]=i.withModifiers(Mn=>z(),["stop"]))},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"switcherIcon",i.normalizeProps(i.guardReactiveProps({...y.item,selected:I.value,checked:K.value,expanded:T.value,disabled:v.value,unFocusable:!0})))]),_:3},8,["level","children","size","expanded","class","loading","branch-icon","no-rotate-branch"]),i.unref(t).dragging.value.key!==b.value||!i.unref(t).dragging.value.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[(Ct=i.unref(t).props)!=null&&Ct.checkbox?(i.openBlock(),i.createBlock(rn._sfc_main,{key:0,size:a.value,onClick:N[1]||(N[1]=i.withModifiers(()=>{},["stop"])),modelValue:K.value,"onUpdate:modelValue":M,disabled:v.value},null,8,["size","modelValue","disabled"])):i.createCommentVNode("",!0),i.renderSlot(y.$slots,"title",i.normalizeProps(i.guardReactiveProps({...y.item,selected:I.value,checked:K.value,disabled:v.value,unFocusable:!0})),()=>[i.createElementVNode("div",{class:i.normalizeClass(i.unref(P.getBemElement)(i.unref(t).prefixes.node,"title"))},i.toDisplayString(i.unref(t).getNodeField(y.item,"title")),3)])],64)):(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(i.unref(P.getBemElement)(i.unref(t).prefixes.node,"slot"))},null,2))]}),_:3},16,["tabStopId","focusable","class"]),i.unref(t).dragging.value.value||i.unref(t).dragging.value.key||(E=d.value)!=null&&E.length&&(T.value||i.unref(t).props.forceMount)?i.withDirectives((i.openBlock(),i.createBlock(i.unref(Kt),i.mergeProps({key:1,class:i.unref(t).prefixes.groupList,"data-parents":(X=i.unref(t).props)!=null&&X.draggable?W.value:void 0,"data-level":(Ce=i.unref(t).props)!=null&&Ce.draggable?ie.value:void 0,tag:"div",list:d.value},i.unref(t).getSortableProps(y.item)),{item:i.withCtx(({element:Q})=>[i.createVNode(ue,{item:Q,parentKeys:W.value,level:ie.value},i.createSlots({_:2},[i.renderList(Object.keys(n),he=>({name:he,fn:i.withCtx(te=>[i.renderSlot(y.$slots,he,i.normalizeProps(i.guardReactiveProps(te)))])}))]),1032,["item","parentKeys","level"])]),_:3},16,["class","data-parents","data-level","list"])),[[i.vShow,T.value]]):i.createCommentVNode("",!0)],16,An)}}}),Fn=i.defineComponent({...Rt.getComponentOptions("Tree"),__name:"Tree",props:{class:{},size:{default:"md"},gap:{},dir:{},data:{},modelValue:{},value:{},checkedKeys:{},expandedKeys:{},multiple:{type:Boolean},checkbox:{type:Boolean},defaultExpandAll:{type:Boolean},selectable:{type:Boolean},showLine:{type:Boolean},inlineNode:{type:Boolean},lazyLoad:{type:Boolean},forceMount:{type:Boolean},fieldNames:{},groupName:{},getSortableProps:{},switcherIcon:{},noRotateSwitcherIcon:{type:Boolean},draggable:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue","update:value","update:expandedKeys","update:checkedKeys","expand","select","check","dragStart","dragEnd","move","choose","unchoose"],setup(o,{emit:e}){const n=o,t=e,r=i.useSlots(),a=P.getBemBlock("tree"),l=P.getBemElement(a,"node"),s=P.getBemElement(l,"group"),u=P.getBemElement(l,"draggable"),d=P.getBemElement(u,"icon"),g=P.getBemElement(s,"list"),p={node:l,group:s,draggable:u,draggableIcon:d,groupList:g},b=Mt.cva(a,{variants:{size:P.generateVariantClassList(en,a),gap:P.generateVariantClassList(yt,a),selectable:P.generateVariantClassList("selectable",a),disabled:P.generateVariantClassList("disabled",a),inlineNode:P.generateVariantClassList("inline-node",a),dragging:P.generateVariantClassList("dragging",a)}}),v=(m,h)=>{var f;const S=O.get(m,h);return(f=n.fieldNames)!=null&&f[h]?O.get(m,n.fieldNames[h],S):S},C=i.ref(O.cloneDeep(n.data)),T=i.computed(()=>O.cloneDeep(C.value)),$=()=>{if(!n.lazyLoad){const m=[],h=S=>{for(const f of S){const E=v(f,"children");E!=null&&E.length&&(m.push(v(f,"key")),h(E))}};return h(C.value),m}return[]},H=i.ref(n.expandedKeys??(n.defaultExpandAll?$():[]));i.watch(()=>[n.defaultExpandAll,n.expandedKeys],([m,h],[S,f])=>{h!==f?H.value=n.expandedKeys??[]:m&&!S&&(H.value=$())});const I=i.computed({get(){return n.expandedKeys?n.expandedKeys:H.value},set(m){n.expandedKeys||(H.value=m),t("update:expandedKeys",m)}});i.watch(()=>n.data,()=>{C.value=O.cloneDeep(n.data);const m=$();I.value=I.value.filter(h=>m.includes(h))},{deep:!0});const K=i.ref(n.modelValue??n.value??[]);i.watch(()=>[n.modelValue,n.value],()=>{K.value=n.modelValue??n.value??[]});const M=i.computed({get(){return n.modelValue??n.value?n.modelValue??n.value:K.value},set(m){m&&((n.modelValue??n.value)||(K.value=m),t("update:modelValue",m),t("update:value",m))}}),{getDisabled:W,getSize:z}=zt.useFormInput(),re=m=>{var h,S;if(n.selectable&&!W.value){let f=O.cloneDeep(M.value??[]);const E=v(m,"key");n.multiple?(h=M.value)!=null&&h.includes(E)?f=O.cloneDeep((S=M.value)==null?void 0:S.filter(X=>X!==E)):f=O.cloneDeep([...M.value??[],E]):f.includes(E)?f=[]:f=[E],M.value=f,t("select",m,f.includes(E))}},ie=i.ref(n.checkedKeys??[]);i.watch(()=>n.checkedKeys,()=>{ie.value=n.checkedKeys??[]});const A=i.computed({get(){return n.checkedKeys?n.checkedKeys:ie.value},set(m){n.checkedKeys||(ie.value=m),t("update:checkedKeys",m)}}),ve=(m,h)=>{if(n.checkbox&&!W.value){let S=O.cloneDeep(A.value);const f=v(m,"key");h!=null&&h.keys.length?h.value?S=Tt.uniq([...h.keys,...S]):S=O.cloneDeep(A.value.filter(X=>!h.keys.includes(X))):A.value.includes(f)?S=O.cloneDeep(A.value.filter(X=>X!==f)):S=O.cloneDeep([...A.value,f]),A.value=S;const E=(h==null?void 0:h.value)??A.value.includes(f);t("check",m,E,(h==null?void 0:h.keys)??f)}},ae=(m,h)=>{let S=!0;const f=v(m,"key");let E=O.cloneDeep(I.value);h||h!==!1&&!E.includes(f)?(E=Tt.uniq([...E,f]),S=!0):(E=E.filter(X=>X!==f),S=!1),I.value=E,t("expand",m,S)},fe=i.computed(()=>{if(n.gap){if(typeof n.gap=="number")return`${n.gap}px`;if(!Object.keys(yt).includes(n.gap))return n.gap}}),j=n.groupName??P.usePCId(a),Y=i.ref({key:void 0,value:!1,level:void 0}),pe=i.computed(()=>P.getBemModifier(P.getBemElement(a,"dragging_item"),z.value)),Z=m=>{var h;return(h=m.getAttribute("data-parents"))==null?void 0:h.split(",")},we=i.computed(()=>{const m=[],h=(S,f)=>{S!=null&&S.length&&S.forEach((E,X)=>{const Ce=["title","disabled","draggable","leaf","loading","class","switcherIcon","noRotateSwitcherIcon"];let Q=v(E,"key");if(!Q){const te=ln.last(O.cloneDeep(f)??[]);te&&(Q=`${te}-${X}`),Q=`${X}`}Q=String(Q),m.push(O.omitBy({...O.omit(E,"children"),...Object.fromEntries(Ce.map(te=>[te,v(E,te)])),parentKeys:f,key:Q},O.isUndefined));const he=v(E,"children");if(he!=null&&he.length){const te=O.cloneDeep(f)??[];te.push(Q),h(he,te)}})};return h(O.cloneDeep(C.value)),m}),y=m=>{const h=Z(m),S=m.getAttribute("data-key")??"";return we.value.find(f=>{var E,X,Ce;return(!((E=f.parentKeys)!=null&&E.length)&&!(h!=null&&h.length)||((X=f.parentKeys)==null?void 0:X.length)&&(h==null?void 0:h.length)&&f.parentKeys.length===h.length&&((Ce=f.parentKeys)==null?void 0:Ce.every(Q=>h.includes(Q))))&&S===f.key})},N=m=>{var S;const h=((S=n.getSortableProps)==null?void 0:S.call(n,m))||{};return{...h,group:O.isFunction(j)?j(m):j,animation:150,forceFallback:!0,fallbackOnBody:!0,filter:"[data-draggable=false]",handle:`.${p.node} .${p.draggable} .${p.draggableIcon}`,dataIdAttr:"data-key",dragClass:pe.value,onChoose(f){const E=y(f==null?void 0:f.item);E&&(Y.value.key=v(E,"key")),t("choose",f)},onStart(f){if(typeof document<"u"){const E=document.querySelector(`.${pe.value}`);E!=null&&E.style&&(E.style.direction=le.value??"ltr")}Y.value.value=!0,t("dragStart",f)},onUnchoose(f){Y.value.key=void 0,Y.value.level=void 0,t("unchoose",f)},onEnd(f){Y.value.value=!1;const E={...f,node:y(f==null?void 0:f.item),oldParents:Z(f==null?void 0:f.item),newParents:Z(f==null?void 0:f.to)};C.value=O.cloneDeep(n.data),t("dragEnd",E)},onMove(f,E){var X;if(Y.value.level=Number(((X=f==null?void 0:f.to)==null?void 0:X.getAttribute("data-level"))??"1"),t("move",f,E),O.isFunction(h.onMove))return h.onMove(f,E)},itemKey:f=>v(f,"key")}},{getDir:ue}=O.useConfig(),le=ue();return nn({size:z,disabled:W,props:n,expandedKeys:I,model:M,dir:le,checked:A,onExpandKey:ae,onSelect:re,onCheck:ve,getNodeField:v,getSortableProps:N,dragging:Y,prefixes:p}),(m,h)=>(i.openBlock(),i.createBlock(i.unref(Et.RovingFocusGroup),{"as-child":"",orientation:"vertical",dir:i.unref(le)},{default:i.withCtx(()=>[i.createVNode(i.unref(Kt),i.mergeProps({role:"tree",class:[i.unref(b)({size:i.unref(z),gap:n.gap??i.unref(z),selectable:n.selectable,disabled:i.unref(W),inlineNode:n.inlineNode,dragging:!!Y.value.value}),n.class],style:{"--ptc-tree-gap":fe.value},tag:"div",list:T.value},N()),{item:i.withCtx(({element:S})=>[(i.openBlock(),i.createBlock(Bn,{key:v(S,"key"),item:S},i.createSlots({_:2},[i.renderList(Object.keys(r),f=>({name:f,fn:i.withCtx(E=>[i.renderSlot(m.$slots,f,i.normalizeProps(i.guardReactiveProps(E)))])}))]),1032,["item"]))]),_:3},16,["class","style","list"])]),_:3},8,["dir"]))}});exports.TreeGaps=yt;exports.TreeSizes=en;exports._sfc_main=Fn;exports.injectTreeContext=tn;exports.provideTreeContext=nn;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as tn, useSlots as nn, computed as A, useTemplateRef as _n, resolveComponent as Dn, createElementBlock as Xe, openBlock as me, mergeProps as st, unref as m, createCommentVNode as Ye, createVNode as ut, withDirectives as Cn, normalizeClass as Ae, withKeys as Xt, withCtx as Te, createBlock as Ue, renderSlot as $e, normalizeProps as Ge, guardReactiveProps as He, withModifiers as Yt, Fragment as Tn, createElementVNode as xn, toDisplayString as In, createSlots as on, renderList as rn, vShow as kn, ref as Le, watch as ot } from "vue";
|
|
2
2
|
import { generateVariantClassList as we, getBemElement as fe, getBemModifier as Ot, getBemBlock as On, usePCId as Nn } from "@pantograph/utils";
|
|
3
3
|
import { cva as an } from "class-variance-authority";
|
|
4
|
-
import { r as j, f as Pn, u as An, v as Lt, q as Fn, w as $t, s as
|
|
4
|
+
import { r as j, f as Pn, u as An, v as Lt, q as Fn, o as Mn, w as $t, s as Bn } from "./Icon.vue_vue_type_style_index_0_lang-Kn_r4tp8.js";
|
|
5
5
|
import { u as Gt } from "./uniq-D8HAKpFq.js";
|
|
6
6
|
import { g as ln } from "./options-D4et5euX.js";
|
|
7
|
-
import { createContext as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { U as
|
|
11
|
-
import { useElementSize as
|
|
7
|
+
import { createContext as Rn, RovingFocusItem as Kn, RovingFocusGroup as zn } from "reka-ui";
|
|
8
|
+
import { _ as Xn } from "./IndentLevel.vue_vue_type_style_index_0_lang-BWLdpspA.js";
|
|
9
|
+
import { _ as Yn } from "./Checkbox.vue_vue_type_style_index_0_lang-5tG-1ejh.js";
|
|
10
|
+
import { U as Ln, u as $n } from "./useInputDataStates-BVOCxFWp.js";
|
|
11
|
+
import { useElementSize as Gn } from "@vueuse/core";
|
|
12
12
|
import sn from "vuedraggable";
|
|
13
|
-
import { last as
|
|
13
|
+
import { last as Hn } from "lodash-es";
|
|
14
14
|
/**!
|
|
15
15
|
* Sortable 1.15.6
|
|
16
16
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -31,7 +31,7 @@ function be(o) {
|
|
|
31
31
|
for (var e = 1; e < arguments.length; e++) {
|
|
32
32
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
33
33
|
e % 2 ? Ht(Object(n), !0).forEach(function(t) {
|
|
34
|
-
|
|
34
|
+
Vn(o, t, n[t]);
|
|
35
35
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(n)) : Ht(Object(n)).forEach(function(t) {
|
|
36
36
|
Object.defineProperty(o, t, Object.getOwnPropertyDescriptor(n, t));
|
|
37
37
|
});
|
|
@@ -46,7 +46,7 @@ function dt(o) {
|
|
|
46
46
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
47
47
|
}, dt(o);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Vn(o, e, n) {
|
|
50
50
|
return e in o ? Object.defineProperty(o, e, {
|
|
51
51
|
value: n,
|
|
52
52
|
enumerable: !0,
|
|
@@ -64,16 +64,16 @@ function Se() {
|
|
|
64
64
|
return o;
|
|
65
65
|
}, Se.apply(this, arguments);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Wn(o, e) {
|
|
68
68
|
if (o == null) return {};
|
|
69
69
|
var n = {}, t = Object.keys(o), i, r;
|
|
70
70
|
for (r = 0; r < t.length; r++)
|
|
71
71
|
i = t[r], !(e.indexOf(i) >= 0) && (n[i] = o[i]);
|
|
72
72
|
return n;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function jn(o, e) {
|
|
75
75
|
if (o == null) return {};
|
|
76
|
-
var n =
|
|
76
|
+
var n = Wn(o, e), t, i;
|
|
77
77
|
if (Object.getOwnPropertySymbols) {
|
|
78
78
|
var r = Object.getOwnPropertySymbols(o);
|
|
79
79
|
for (i = 0; i < r.length; i++)
|
|
@@ -81,7 +81,7 @@ function Wn(o, e) {
|
|
|
81
81
|
}
|
|
82
82
|
return n;
|
|
83
83
|
}
|
|
84
|
-
var
|
|
84
|
+
var Un = "1.15.6";
|
|
85
85
|
function Ee(o) {
|
|
86
86
|
if (typeof window < "u" && window.navigator)
|
|
87
87
|
return !!/* @__PURE__ */ navigator.userAgent.match(o);
|
|
@@ -237,7 +237,7 @@ function Ut(o) {
|
|
|
237
237
|
} while (o !== t && (o = o.parentNode));
|
|
238
238
|
return [e, n];
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function qn(o, e) {
|
|
241
241
|
for (var n in o)
|
|
242
242
|
if (o.hasOwnProperty(n)) {
|
|
243
243
|
for (var t in e)
|
|
@@ -260,7 +260,7 @@ function Ie(o, e) {
|
|
|
260
260
|
while (n = n.parentNode);
|
|
261
261
|
return ve();
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Zn(o, e) {
|
|
264
264
|
if (o && e)
|
|
265
265
|
for (var n in e)
|
|
266
266
|
e.hasOwnProperty(n) && (o[n] = e[n]);
|
|
@@ -280,7 +280,7 @@ function hn(o, e) {
|
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Qn() {
|
|
284
284
|
clearTimeout(Ze), Ze = void 0;
|
|
285
285
|
}
|
|
286
286
|
function pn(o, e, n) {
|
|
@@ -301,7 +301,7 @@ function mn(o, e, n) {
|
|
|
301
301
|
}), t.width = t.right - t.left, t.height = t.bottom - t.top, t.x = t.left, t.y = t.top, t;
|
|
302
302
|
}
|
|
303
303
|
var ee = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
304
|
-
function
|
|
304
|
+
function Jn() {
|
|
305
305
|
var o = [], e;
|
|
306
306
|
return {
|
|
307
307
|
captureAnimationState: function() {
|
|
@@ -327,7 +327,7 @@ function Qn() {
|
|
|
327
327
|
o.push(t);
|
|
328
328
|
},
|
|
329
329
|
removeAnimationState: function(t) {
|
|
330
|
-
o.splice(
|
|
330
|
+
o.splice(qn(o, {
|
|
331
331
|
target: t
|
|
332
332
|
}), 1);
|
|
333
333
|
},
|
|
@@ -341,7 +341,7 @@ function Qn() {
|
|
|
341
341
|
o.forEach(function(l) {
|
|
342
342
|
var s = 0, u = l.target, p = u.fromRect, f = X(u), b = u.prevFromRect, v = u.prevToRect, C = l.rect, T = Ke(u, !0);
|
|
343
343
|
T && (f.top -= T.f, f.left -= T.e), u.toRect = f, u.thisAnimationDuration && Et(b, f) && !Et(p, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
344
|
-
(C.top - f.top) / (C.left - f.left) === (p.top - f.top) / (p.left - f.left) && (s =
|
|
344
|
+
(C.top - f.top) / (C.left - f.left) === (p.top - f.top) / (p.left - f.left) && (s = to(C, b, v, i.options)), Et(f, p) || (u.prevFromRect = p, u.prevToRect = f, s || (s = i.options.animation), i.animate(u, C, f, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
345
345
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
346
346
|
}, s), u.thisAnimationDuration = s);
|
|
347
347
|
}), clearTimeout(e), r ? e = setTimeout(function() {
|
|
@@ -352,17 +352,17 @@ function Qn() {
|
|
|
352
352
|
if (a) {
|
|
353
353
|
E(t, "transition", ""), E(t, "transform", "");
|
|
354
354
|
var l = Ke(this.el), s = l && l.a, u = l && l.d, p = (i.left - r.left) / (s || 1), f = (i.top - r.top) / (u || 1);
|
|
355
|
-
t.animatingX = !!p, t.animatingY = !!f, E(t, "transform", "translate3d(" + p + "px," + f + "px,0)"), this.forRepaintDummy =
|
|
355
|
+
t.animatingX = !!p, t.animatingY = !!f, E(t, "transform", "translate3d(" + p + "px," + f + "px,0)"), this.forRepaintDummy = eo(t), E(t, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), E(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
|
|
356
356
|
E(t, "transition", ""), E(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
|
|
357
357
|
}, a);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function eo(o) {
|
|
363
363
|
return o.offsetWidth;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function to(o, e, n, t) {
|
|
366
366
|
return Math.sqrt(Math.pow(e.top - o.top, 2) + Math.pow(e.left - o.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * t.animation;
|
|
367
367
|
}
|
|
368
368
|
var Fe = [], St = {
|
|
@@ -417,7 +417,7 @@ var Fe = [], St = {
|
|
|
417
417
|
}), i;
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
|
-
function
|
|
420
|
+
function no(o) {
|
|
421
421
|
var e = o.sortable, n = o.rootEl, t = o.name, i = o.targetEl, r = o.cloneEl, a = o.toEl, l = o.fromEl, s = o.oldIndex, u = o.newIndex, p = o.oldDraggableIndex, f = o.newDraggableIndex, b = o.originalEvent, v = o.putSortable, C = o.extraEventProperties;
|
|
422
422
|
if (e = e || n && n[ee], !!e) {
|
|
423
423
|
var T, $ = e.options, H = "on" + t.charAt(0).toUpperCase() + t.substr(1);
|
|
@@ -431,8 +431,8 @@ function to(o) {
|
|
|
431
431
|
n && n.dispatchEvent(T), $[H] && $[H].call(e, T);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
var
|
|
435
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r =
|
|
434
|
+
var oo = ["evt"], J = function(e, n) {
|
|
435
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r = jn(t, oo);
|
|
436
436
|
nt.pluginEvent.bind(S)(e, n, be({
|
|
437
437
|
dragEl: d,
|
|
438
438
|
parentEl: B,
|
|
@@ -468,7 +468,7 @@ var no = ["evt"], J = function(e, n) {
|
|
|
468
468
|
}, r));
|
|
469
469
|
};
|
|
470
470
|
function q(o) {
|
|
471
|
-
|
|
471
|
+
no(be({
|
|
472
472
|
putSortable: G,
|
|
473
473
|
cloneEl: F,
|
|
474
474
|
targetEl: d,
|
|
@@ -479,7 +479,7 @@ function q(o) {
|
|
|
479
479
|
newDraggableIndex: Ce
|
|
480
480
|
}, o));
|
|
481
481
|
}
|
|
482
|
-
var d, B, D, P, Pe, ct, F, xe, Re, oe, Qe, Ce, it, G, Be = !1, mt = !1, vt = [], Oe, de, _t, Dt, qt, Zt, Ve, Me, Je, et = !1, rt = !1, ft, W, Ct = [], Nt = !1, bt = [], wt = typeof document < "u", at = Mt, Qt = tt || _e ? "cssFloat" : "float",
|
|
482
|
+
var d, B, D, P, Pe, ct, F, xe, Re, oe, Qe, Ce, it, G, Be = !1, mt = !1, vt = [], Oe, de, _t, Dt, qt, Zt, Ve, Me, Je, et = !1, rt = !1, ft, W, Ct = [], Nt = !1, bt = [], wt = typeof document < "u", at = Mt, Qt = tt || _e ? "cssFloat" : "float", io = wt && !un && !Mt && "draggable" in document.createElement("div"), vn = function() {
|
|
483
483
|
if (wt) {
|
|
484
484
|
if (_e)
|
|
485
485
|
return !1;
|
|
@@ -497,10 +497,10 @@ var d, B, D, P, Pe, ct, F, xe, Re, oe, Qe, Ce, it, G, Be = !1, mt = !1, vt = [],
|
|
|
497
497
|
return a && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
|
|
498
498
|
}
|
|
499
499
|
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && t[Qt] === "none" || a && t[Qt] === "none" && u + p > i) ? "vertical" : "horizontal";
|
|
500
|
-
},
|
|
500
|
+
}, ro = function(e, n, t) {
|
|
501
501
|
var i = t ? e.left : e.top, r = t ? e.right : e.bottom, a = t ? e.width : e.height, l = t ? n.left : n.top, s = t ? n.right : n.bottom, u = t ? n.width : n.height;
|
|
502
502
|
return i === l || r === s || i + a / 2 === l + u / 2;
|
|
503
|
-
},
|
|
503
|
+
}, ao = function(e, n) {
|
|
504
504
|
var t;
|
|
505
505
|
return vt.some(function(i) {
|
|
506
506
|
var r = i[ee].options.emptyInsertThreshold;
|
|
@@ -542,7 +542,7 @@ wt && !un && document.addEventListener("click", function(o) {
|
|
|
542
542
|
var Ne = function(e) {
|
|
543
543
|
if (d) {
|
|
544
544
|
e = e.touches ? e.touches[0] : e;
|
|
545
|
-
var n =
|
|
545
|
+
var n = ao(e.clientX, e.clientY);
|
|
546
546
|
if (n) {
|
|
547
547
|
var t = {};
|
|
548
548
|
for (var i in e)
|
|
@@ -550,7 +550,7 @@ var Ne = function(e) {
|
|
|
550
550
|
t.target = t.rootEl = n, t.preventDefault = void 0, t.stopPropagation = void 0, n[ee]._onDragOver(t);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
},
|
|
553
|
+
}, lo = function(e) {
|
|
554
554
|
d && d.parentNode[ee]._isOutsideThisEl(e.target);
|
|
555
555
|
};
|
|
556
556
|
function S(o, e) {
|
|
@@ -609,7 +609,7 @@ function S(o, e) {
|
|
|
609
609
|
yn(e);
|
|
610
610
|
for (var i in this)
|
|
611
611
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
612
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
|
612
|
+
this.nativeDraggable = e.forceFallback ? !1 : io, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? I(o, "pointerdown", this._onTapStart) : (I(o, "mousedown", this._onTapStart), I(o, "touchstart", this._onTapStart)), this.nativeDraggable && (I(o, "dragover", this), I(o, "dragenter", this)), vt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), Se(this, Jn());
|
|
613
613
|
}
|
|
614
614
|
S.prototype = /** @lends Sortable.prototype */
|
|
615
615
|
{
|
|
@@ -623,7 +623,7 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
623
623
|
_onTapStart: function(e) {
|
|
624
624
|
if (e.cancelable) {
|
|
625
625
|
var n = this, t = this.el, i = this.options, r = i.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, p = i.filter;
|
|
626
|
-
if (
|
|
626
|
+
if (mo(t), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && qe && s && s.tagName.toUpperCase() === "SELECT") && (s = ce(s, i.draggable, t, !1), !(s && s.animated) && ct !== s)) {
|
|
627
627
|
if (Re = se(s), Qe = se(s, i.draggable), typeof p == "function") {
|
|
628
628
|
if (p.call(this, e, s, this)) {
|
|
629
629
|
q({
|
|
@@ -716,7 +716,7 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
716
716
|
if (Be = !1, P && d) {
|
|
717
717
|
J("dragStarted", this, {
|
|
718
718
|
evt: n
|
|
719
|
-
}), this.nativeDraggable && I(document, "dragover",
|
|
719
|
+
}), this.nativeDraggable && I(document, "dragover", lo);
|
|
720
720
|
var t = this.options;
|
|
721
721
|
!e && ne(d, t.dragClass, !1), ne(d, t.ghostClass, !0), S.active = this, e && this._appendGhost(), q({
|
|
722
722
|
sortable: this,
|
|
@@ -847,12 +847,12 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
847
847
|
if (a)
|
|
848
848
|
return B = P, H(), this._hideClone(), $("revert"), S.eventCanceled || (Pe ? P.insertBefore(d, Pe) : P.appendChild(d)), k(!0);
|
|
849
849
|
var M = Bt(n, l.draggable);
|
|
850
|
-
if (!M ||
|
|
850
|
+
if (!M || fo(e, v, this) && !M.animated) {
|
|
851
851
|
if (M === d)
|
|
852
852
|
return k(!1);
|
|
853
853
|
if (M && n === e.target && (t = M), t && (r = X(t)), lt(P, n, d, i, t, r, e, !!t) !== !1)
|
|
854
854
|
return H(), M && M.nextSibling ? n.insertBefore(d, M.nextSibling) : n.appendChild(d), B = n, K(), k(!0);
|
|
855
|
-
} else if (M &&
|
|
855
|
+
} else if (M && co(e, v, this)) {
|
|
856
856
|
var U = ze(n, 0, l, !0);
|
|
857
857
|
if (U === d)
|
|
858
858
|
return k(!1);
|
|
@@ -860,8 +860,8 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
860
860
|
return H(), n.insertBefore(d, U), B = n, K(), k(!0);
|
|
861
861
|
} else if (t.parentNode === n) {
|
|
862
862
|
r = X(t);
|
|
863
|
-
var R = 0, ie, re = d.parentNode !== n, N = !
|
|
864
|
-
Me !== t && (ie = r[ye], et = !1, rt = !N && l.invertSwap || re), R =
|
|
863
|
+
var R = 0, ie, re = d.parentNode !== n, N = !ro(d.animated && d.toRect || i, t.animated && t.toRect || r, v), ye = v ? "top" : "left", ae = jt(t, "top", "top") || jt(d, "top", "top"), he = ae ? ae.scrollTop : void 0;
|
|
864
|
+
Me !== t && (ie = r[ye], et = !1, rt = !N && l.invertSwap || re), R = ho(e, t, r, v, N ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, rt, Me === t);
|
|
865
865
|
var V;
|
|
866
866
|
if (R !== 0) {
|
|
867
867
|
var L = se(d);
|
|
@@ -876,7 +876,7 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
876
876
|
Z = R === 1;
|
|
877
877
|
var De = lt(P, n, d, i, t, r, e, Z);
|
|
878
878
|
if (De !== !1)
|
|
879
|
-
return (De === 1 || De === -1) && (Z = De === 1), Nt = !0, setTimeout(
|
|
879
|
+
return (De === 1 || De === -1) && (Z = De === 1), Nt = !0, setTimeout(uo, 30), H(), Z && !pe ? n.appendChild(d) : t.parentNode.insertBefore(d, Z ? pe : t), ae && pn(ae, 0, he - ae.scrollTop), B = d.parentNode, ie !== void 0 && !rt && (ft = Math.abs(ie - X(t)[ye])), K(), k(!0);
|
|
880
880
|
}
|
|
881
881
|
if (n.contains(d))
|
|
882
882
|
return k(!1);
|
|
@@ -958,7 +958,7 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
958
958
|
break;
|
|
959
959
|
case "dragenter":
|
|
960
960
|
case "dragover":
|
|
961
|
-
d && (this._onDragOver(e),
|
|
961
|
+
d && (this._onDragOver(e), so(e));
|
|
962
962
|
break;
|
|
963
963
|
case "selectstart":
|
|
964
964
|
e.preventDefault();
|
|
@@ -971,7 +971,7 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
971
971
|
*/
|
|
972
972
|
toArray: function() {
|
|
973
973
|
for (var e = [], n, t = this.el.children, i = 0, r = t.length, a = this.options; i < r; i++)
|
|
974
|
-
n = t[i], ce(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) ||
|
|
974
|
+
n = t[i], ce(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || go(n));
|
|
975
975
|
return e;
|
|
976
976
|
},
|
|
977
977
|
/**
|
|
@@ -1043,7 +1043,7 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
1045
|
};
|
|
1046
|
-
function
|
|
1046
|
+
function so(o) {
|
|
1047
1047
|
o.dataTransfer && (o.dataTransfer.dropEffect = "move"), o.cancelable && o.preventDefault();
|
|
1048
1048
|
}
|
|
1049
1049
|
function lt(o, e, n, t, i, r, a, l) {
|
|
@@ -1056,18 +1056,18 @@ function lt(o, e, n, t, i, r, a, l) {
|
|
|
1056
1056
|
function Tt(o) {
|
|
1057
1057
|
o.draggable = !1;
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function uo() {
|
|
1060
1060
|
Nt = !1;
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function co(o, e, n) {
|
|
1063
1063
|
var t = X(ze(n.el, 0, n.options, !0)), i = mn(n.el, n.options, D), r = 10;
|
|
1064
1064
|
return e ? o.clientX < i.left - r || o.clientY < t.top && o.clientX < t.right : o.clientY < i.top - r || o.clientY < t.bottom && o.clientX < t.left;
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function fo(o, e, n) {
|
|
1067
1067
|
var t = X(Bt(n.el, n.options.draggable)), i = mn(n.el, n.options, D), r = 10;
|
|
1068
1068
|
return e ? o.clientX > i.right + r || o.clientY > t.bottom && o.clientX > t.left : o.clientY > i.bottom + r || o.clientX > t.right && o.clientY > t.top;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function ho(o, e, n, t, i, r, a, l) {
|
|
1071
1071
|
var s = t ? o.clientY : o.clientX, u = t ? n.height : n.width, p = t ? n.top : n.left, f = t ? n.bottom : n.right, b = !1;
|
|
1072
1072
|
if (!a) {
|
|
1073
1073
|
if (l && ft < u * i) {
|
|
@@ -1076,19 +1076,19 @@ function fo(o, e, n, t, i, r, a, l) {
|
|
|
1076
1076
|
else if (Je === 1 ? s < p + ft : s > f - ft)
|
|
1077
1077
|
return -Je;
|
|
1078
1078
|
} else if (s > p + u * (1 - i) / 2 && s < f - u * (1 - i) / 2)
|
|
1079
|
-
return
|
|
1079
|
+
return po(e);
|
|
1080
1080
|
}
|
|
1081
1081
|
return b = b || a, b && (s < p + u * r / 2 || s > f - u * r / 2) ? s > p + u / 2 ? 1 : -1 : 0;
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function po(o) {
|
|
1084
1084
|
return se(d) < se(o) ? 1 : -1;
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function go(o) {
|
|
1087
1087
|
for (var e = o.tagName + o.className + o.src + o.href + o.textContent, n = e.length, t = 0; n--; )
|
|
1088
1088
|
t += e.charCodeAt(n);
|
|
1089
1089
|
return t.toString(36);
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function mo(o) {
|
|
1092
1092
|
bt.length = 0;
|
|
1093
1093
|
for (var e = o.getElementsByTagName("input"), n = e.length; n--; ) {
|
|
1094
1094
|
var t = e[n];
|
|
@@ -1112,7 +1112,7 @@ S.utils = {
|
|
|
1112
1112
|
is: function(e, n) {
|
|
1113
1113
|
return !!ce(e, n, e, !1);
|
|
1114
1114
|
},
|
|
1115
|
-
extend:
|
|
1115
|
+
extend: Zn,
|
|
1116
1116
|
throttle: hn,
|
|
1117
1117
|
closest: ce,
|
|
1118
1118
|
toggleClass: ne,
|
|
@@ -1139,9 +1139,9 @@ S.mount = function() {
|
|
|
1139
1139
|
S.create = function(o, e) {
|
|
1140
1140
|
return new S(o, e);
|
|
1141
1141
|
};
|
|
1142
|
-
S.version =
|
|
1142
|
+
S.version = Un;
|
|
1143
1143
|
var z = [], We, At, Ft = !1, xt, It, yt, je;
|
|
1144
|
-
function
|
|
1144
|
+
function vo() {
|
|
1145
1145
|
function o() {
|
|
1146
1146
|
this.defaults = {
|
|
1147
1147
|
scroll: !0,
|
|
@@ -1163,7 +1163,7 @@ function mo() {
|
|
|
1163
1163
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1164
1164
|
},
|
|
1165
1165
|
drop: function() {
|
|
1166
|
-
this.sortable.nativeDraggable ? x(document, "dragover", this._handleAutoScroll) : (x(document, "pointermove", this._handleFallbackAutoScroll), x(document, "touchmove", this._handleFallbackAutoScroll), x(document, "mousemove", this._handleFallbackAutoScroll)), Jt(), pt(),
|
|
1166
|
+
this.sortable.nativeDraggable ? x(document, "dragover", this._handleAutoScroll) : (x(document, "pointermove", this._handleFallbackAutoScroll), x(document, "touchmove", this._handleFallbackAutoScroll), x(document, "mousemove", this._handleFallbackAutoScroll)), Jt(), pt(), Qn();
|
|
1167
1167
|
},
|
|
1168
1168
|
nulling: function() {
|
|
1169
1169
|
yt = At = We = Ft = je = xt = It = null, z.length = 0;
|
|
@@ -1266,9 +1266,9 @@ Kt.prototype = {
|
|
|
1266
1266
|
Se(Kt, {
|
|
1267
1267
|
pluginName: "removeOnSpill"
|
|
1268
1268
|
});
|
|
1269
|
-
S.mount(new
|
|
1269
|
+
S.mount(new vo());
|
|
1270
1270
|
S.mount(Kt, Rt);
|
|
1271
|
-
const
|
|
1271
|
+
const bo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-md", lg: "gap-lg" }, [yo, wo] = Rn("CheckboxGroup"), Eo = ["data-parents", "data-key", "data-draggable"], So = /* @__PURE__ */ tn({
|
|
1272
1272
|
...ln("TreeNode"),
|
|
1273
1273
|
__name: "TreeNode",
|
|
1274
1274
|
props: {
|
|
@@ -1277,7 +1277,7 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1277
1277
|
parentKeys: {}
|
|
1278
1278
|
},
|
|
1279
1279
|
setup(o) {
|
|
1280
|
-
const e = o, n = nn(), t =
|
|
1280
|
+
const e = o, n = nn(), t = yo(), i = an(t.prefixes.node, {
|
|
1281
1281
|
variants: {
|
|
1282
1282
|
disabled: we("disabled", t.prefixes.node),
|
|
1283
1283
|
active: we("active", t.prefixes.node),
|
|
@@ -1354,14 +1354,14 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1354
1354
|
case "lg":
|
|
1355
1355
|
return "sm";
|
|
1356
1356
|
}
|
|
1357
|
-
}), { rootBindings: ye, inputBindings: ae } =
|
|
1357
|
+
}), { rootBindings: ye, inputBindings: ae } = Ln({
|
|
1358
1358
|
getDisabled: () => v.value
|
|
1359
1359
|
}), he = A(
|
|
1360
1360
|
() => {
|
|
1361
1361
|
var y, O;
|
|
1362
1362
|
return !!((y = u.value) != null && y.length || (O = t.props) != null && O.lazyLoad && !p.value);
|
|
1363
1363
|
}
|
|
1364
|
-
), V = _n("indent"), { width: L, height: pe } =
|
|
1364
|
+
), V = _n("indent"), { width: L, height: pe } = Gn(V), Z = () => {
|
|
1365
1365
|
t.dir.value === "ltr" ? R(!1) : R(!0);
|
|
1366
1366
|
}, De = () => {
|
|
1367
1367
|
t.dir.value === "rtl" ? R(!1) : R(!0);
|
|
@@ -1392,7 +1392,7 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1392
1392
|
key: 0,
|
|
1393
1393
|
class: Ae(m(fe)(m(t).prefixes.group, "line"))
|
|
1394
1394
|
}, null, 2)) : Ye("", !0),
|
|
1395
|
-
ut(m(
|
|
1395
|
+
ut(m(Kn), st({
|
|
1396
1396
|
as: "div",
|
|
1397
1397
|
tabStopId: b.value,
|
|
1398
1398
|
onKeyup: [
|
|
@@ -1427,7 +1427,7 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1427
1427
|
_: 3
|
|
1428
1428
|
}, 8, ["size", "class"])) : Ye("", !0)
|
|
1429
1429
|
], 2)) : Ye("", !0),
|
|
1430
|
-
ut(
|
|
1430
|
+
ut(Xn, {
|
|
1431
1431
|
ref_key: "indent",
|
|
1432
1432
|
ref: V,
|
|
1433
1433
|
level: ie.value,
|
|
@@ -1439,7 +1439,7 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1439
1439
|
loading: m(t).getNodeField(y.item, "loading"),
|
|
1440
1440
|
"branch-icon": m(t).getNodeField(y.item, "switcherIcon") ?? ((ge = m(t).props) == null ? void 0 : ge.switcherIcon),
|
|
1441
1441
|
"no-rotate-branch": m(t).getNodeField(y.item, "noRotateSwitcherIcon") ?? ((te = m(t).props) == null ? void 0 : te.noRotateSwitcherIcon),
|
|
1442
|
-
onToggleExpand: O[0] || (O[0] = Yt((
|
|
1442
|
+
onToggleExpand: O[0] || (O[0] = Yt((_o) => R(), ["stop"]))
|
|
1443
1443
|
}, {
|
|
1444
1444
|
default: Te(() => [
|
|
1445
1445
|
$e(y.$slots, "switcherIcon", Ge(He({ ...y.item, selected: k.value, checked: K.value, expanded: T.value, disabled: v.value, unFocusable: !0 })))
|
|
@@ -1447,7 +1447,7 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1447
1447
|
_: 3
|
|
1448
1448
|
}, 8, ["level", "children", "size", "expanded", "class", "loading", "branch-icon", "no-rotate-branch"]),
|
|
1449
1449
|
m(t).dragging.value.key !== b.value || !m(t).dragging.value.value ? (me(), Xe(Tn, { key: 1 }, [
|
|
1450
|
-
(zt = m(t).props) != null && zt.checkbox ? (me(), Ue(
|
|
1450
|
+
(zt = m(t).props) != null && zt.checkbox ? (me(), Ue(Yn, {
|
|
1451
1451
|
key: 0,
|
|
1452
1452
|
size: r.value,
|
|
1453
1453
|
onClick: O[1] || (O[1] = Yt(() => {
|
|
@@ -1495,10 +1495,10 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1495
1495
|
}, 16, ["class", "data-parents", "data-level", "list"])), [
|
|
1496
1496
|
[kn, T.value]
|
|
1497
1497
|
]) : Ye("", !0)
|
|
1498
|
-
], 16,
|
|
1498
|
+
], 16, Eo);
|
|
1499
1499
|
};
|
|
1500
1500
|
}
|
|
1501
|
-
}),
|
|
1501
|
+
}), Ro = /* @__PURE__ */ tn({
|
|
1502
1502
|
...ln("Tree"),
|
|
1503
1503
|
__name: "Tree",
|
|
1504
1504
|
props: {
|
|
@@ -1537,7 +1537,7 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1537
1537
|
groupList: p
|
|
1538
1538
|
}, b = an(r, {
|
|
1539
1539
|
variants: {
|
|
1540
|
-
size: we(
|
|
1540
|
+
size: we(bo, r),
|
|
1541
1541
|
gap: we(en, r),
|
|
1542
1542
|
selectable: we("selectable", r),
|
|
1543
1543
|
disabled: we("disabled", r),
|
|
@@ -1599,7 +1599,7 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1599
1599
|
set(g) {
|
|
1600
1600
|
g && ((n.modelValue ?? n.value) || (K.value = g), t("update:modelValue", g), t("update:value", g));
|
|
1601
1601
|
}
|
|
1602
|
-
}), { getDisabled: U, getSize: R } =
|
|
1602
|
+
}), { getDisabled: U, getSize: R } = $n(), ie = (g) => {
|
|
1603
1603
|
var h, _;
|
|
1604
1604
|
if (n.selectable && !U.value) {
|
|
1605
1605
|
let c = j(M.value ?? []);
|
|
@@ -1662,17 +1662,18 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1662
1662
|
];
|
|
1663
1663
|
let Q = v(w, "key");
|
|
1664
1664
|
if (!Q) {
|
|
1665
|
-
const te =
|
|
1665
|
+
const te = Hn(j(c) ?? []);
|
|
1666
1666
|
te && (Q = `${te}-${Y}`), Q = `${Y}`;
|
|
1667
1667
|
}
|
|
1668
1668
|
Q = String(Q), g.push(
|
|
1669
1669
|
Fn(
|
|
1670
1670
|
{
|
|
1671
|
+
...Mn(w, "children"),
|
|
1671
1672
|
...Object.fromEntries(ke.map((te) => [te, v(w, te)])),
|
|
1672
1673
|
parentKeys: c,
|
|
1673
1674
|
key: Q
|
|
1674
1675
|
},
|
|
1675
|
-
|
|
1676
|
+
Bn
|
|
1676
1677
|
)
|
|
1677
1678
|
);
|
|
1678
1679
|
const ge = v(w, "children");
|
|
@@ -1736,7 +1737,7 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1736
1737
|
itemKey: (c) => v(c, "key")
|
|
1737
1738
|
};
|
|
1738
1739
|
}, { getDir: ue } = An(), le = ue();
|
|
1739
|
-
return
|
|
1740
|
+
return wo({
|
|
1740
1741
|
size: R,
|
|
1741
1742
|
disabled: U,
|
|
1742
1743
|
props: n,
|
|
@@ -1751,7 +1752,7 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1751
1752
|
getSortableProps: O,
|
|
1752
1753
|
dragging: L,
|
|
1753
1754
|
prefixes: f
|
|
1754
|
-
}), (g, h) => (me(), Ue(m(
|
|
1755
|
+
}), (g, h) => (me(), Ue(m(zn), {
|
|
1755
1756
|
"as-child": "",
|
|
1756
1757
|
orientation: "vertical",
|
|
1757
1758
|
dir: m(le)
|
|
@@ -1777,7 +1778,7 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1777
1778
|
list: T.value
|
|
1778
1779
|
}, O()), {
|
|
1779
1780
|
item: Te(({ element: _ }) => [
|
|
1780
|
-
(me(), Ue(
|
|
1781
|
+
(me(), Ue(So, {
|
|
1781
1782
|
key: v(_, "key"),
|
|
1782
1783
|
item: _
|
|
1783
1784
|
}, on({ _: 2 }, [
|
|
@@ -1797,9 +1798,9 @@ const vo = ["sm", "md", "lg"], en = { none: "gap-none", sm: "gap-sm", md: "gap-m
|
|
|
1797
1798
|
}
|
|
1798
1799
|
});
|
|
1799
1800
|
export {
|
|
1800
|
-
|
|
1801
|
-
|
|
1801
|
+
bo as T,
|
|
1802
|
+
Ro as _,
|
|
1802
1803
|
en as a,
|
|
1803
|
-
|
|
1804
|
-
|
|
1804
|
+
yo as i,
|
|
1805
|
+
wo as p
|
|
1805
1806
|
};
|
package/dist/index.js
CHANGED
|
@@ -41,7 +41,7 @@ import { _ as aa, S as ta } from "./Switch.vue_vue_type_style_index_0_lang-BrkQx
|
|
|
41
41
|
import { d as ra, e as pa, _ as ia, T as na, b as xa, a as ma, c as ca } from "./THead.vue_vue_type_style_index_0_lang-BcVlFS1z.js";
|
|
42
42
|
import { _ as Ca, T as Sa, a as fa } from "./Textarea.vue_vue_type_style_index_0_lang-DnQgUyjY.js";
|
|
43
43
|
import { _ as _a, i as da, r as Ta } from "./Tooltip.vue_vue_type_script_setup_true_lang-DX19Sbqt.js";
|
|
44
|
-
import { _ as ga, a as ha, T as va, i as Ia, p as Ga } from "./Tree.vue_vue_type_style_index_0_lang-
|
|
44
|
+
import { _ as ga, a as ha, T as va, i as Ia, p as Ga } from "./Tree.vue_vue_type_style_index_0_lang-BRU_5PuO.js";
|
|
45
45
|
import { f as ya, b as Ba, i as ja, a as ka } from "./element-BfQuKSll.js";
|
|
46
46
|
import { c as Pa, g as La } from "./options-D4et5euX.js";
|
|
47
47
|
import { g as Da } from "./style-BEhqkSEE.js";
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A=require("./ActionButton.vue_vue_type_script_setup_true_lang-Zbt1lDGL.js"),T=require("./Alert.vue_vue_type_style_index_0_lang-x6PDS57O.js"),t=require("./Avatar.vue_vue_type_style_index_0_lang-Dbdnz5VW.js"),O=require("./Badge.vue_vue_type_script_setup_true_lang-hG6klYy2.js"),u=require("./BaseBadge.model-imnRO6DY.js"),n=require("./ButtonGroup.vue_vue_type_script_setup_true_lang-BF_Oo7Zk.js"),F=require("./Button.vue_vue_type_script_setup_true_lang--np1Hw7N.js"),_=require("./Checkbox.vue_vue_type_style_index_0_lang-DaWMPx_d.js"),L=require("./Chip.vue_vue_type_style_index_0_lang-DqVcmql_.js"),s=require("./ChipGroup.vue_vue_type_style_index_0_lang-ZlvXsJHD.js"),l=require("./ColorPicker.vue_vue_type_style_index_0_lang-BnjCOPow.js"),v=require("./ColorSwatch.vue_vue_type_style_index_0_lang-BCkqRsud.js"),D=require("./ColorSwatchGroup.vue_vue_type_style_index_0_lang-DBbTuynH.js"),z=require("./ColorTrigger.vue_vue_type_style_index_0_lang-Brci1et_.js"),e=require("./Icon.vue_vue_type_style_index_0_lang-Cc8Uh2lr.js"),w=require("./DataTable.vue_vue_type_style_index_0_lang-ygPXw5Mi.js"),G=require("./Divider.vue_vue_type_style_index_0_lang-DoEWjJx6.js"),m=require("./DropZone.vue_vue_type_style_index_0_lang-oJc56iXj.js"),q=require("./Empty.vue_vue_type_style_index_0_lang-DHvpu4sq.js"),M=require("./FloatButton.vue_vue_type_script_setup_true_lang-CaKIkb0P.js"),$=require("./GOPicker.vue_vue_type_style_index_0_lang-CjqAqI_W.js"),E=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-Byz-BOG1.js"),C=require("./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DiSPJXBZ.js"),I=require("./Icon/index.umd.cjs"),R=require("./IconButton.vue_vue_type_script_setup_true_lang-CGb0HxvX.js"),c=require("./Image.vue_vue_type_style_index_0_lang-DVDZ0ova.js"),S=require("./IndentLevel.vue_vue_type_style_index_0_lang-DVx2S15S.js"),Z=require("./Indicator.vue_vue_type_script_setup_true_lang-_V0q7Zly.js"),y=require("./Input.vue_vue_type_style_index_0_lang-HuiLdgsj.js"),V=require("./Kbd.vue_vue_type_style_index_0_lang-CuYfgo6l.js"),b=require("./Link.vue_vue_type_style_index_0_lang-BgwJE1ku.js"),r=require("./Menu.vue_vue_type_style_index_0_lang-CiyZmFBO.js"),d=require("./Popover.vue_vue_type_style_index_0_lang-BnKgARrA.js"),j=require("./RadioGroup.vue_vue_type_script_setup_true_lang-Dq66i_P9.js"),x=require("./ScrollContainer.vue_vue_type_style_index_0_lang-CMdXXxZr.js"),o=require("./Select.vue_vue_type_style_index_0_lang-RdNEKYeJ.js"),H=require("./Shortcut.vue_vue_type_style_index_0_lang-DIDsOrKm.js"),g=require("./Skeleton.vue_vue_type_style_index_0_lang-CWNX_-Jl.js"),B=require("./Spinner.vue_vue_type_style_index_0_lang-17QUeFmj.js"),k=require("./Switch.vue_vue_type_style_index_0_lang-DISD-AzJ.js"),i=require("./THead.vue_vue_type_style_index_0_lang-Ck81v68E.js"),f=require("./Textarea.vue_vue_type_style_index_0_lang-CJHHqEWa.js"),h=require("./Tooltip.vue_vue_type_script_setup_true_lang-DWMPc3HZ.js"),a=require("./Tree.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A=require("./ActionButton.vue_vue_type_script_setup_true_lang-Zbt1lDGL.js"),T=require("./Alert.vue_vue_type_style_index_0_lang-x6PDS57O.js"),t=require("./Avatar.vue_vue_type_style_index_0_lang-Dbdnz5VW.js"),O=require("./Badge.vue_vue_type_script_setup_true_lang-hG6klYy2.js"),u=require("./BaseBadge.model-imnRO6DY.js"),n=require("./ButtonGroup.vue_vue_type_script_setup_true_lang-BF_Oo7Zk.js"),F=require("./Button.vue_vue_type_script_setup_true_lang--np1Hw7N.js"),_=require("./Checkbox.vue_vue_type_style_index_0_lang-DaWMPx_d.js"),L=require("./Chip.vue_vue_type_style_index_0_lang-DqVcmql_.js"),s=require("./ChipGroup.vue_vue_type_style_index_0_lang-ZlvXsJHD.js"),l=require("./ColorPicker.vue_vue_type_style_index_0_lang-BnjCOPow.js"),v=require("./ColorSwatch.vue_vue_type_style_index_0_lang-BCkqRsud.js"),D=require("./ColorSwatchGroup.vue_vue_type_style_index_0_lang-DBbTuynH.js"),z=require("./ColorTrigger.vue_vue_type_style_index_0_lang-Brci1et_.js"),e=require("./Icon.vue_vue_type_style_index_0_lang-Cc8Uh2lr.js"),w=require("./DataTable.vue_vue_type_style_index_0_lang-ygPXw5Mi.js"),G=require("./Divider.vue_vue_type_style_index_0_lang-DoEWjJx6.js"),m=require("./DropZone.vue_vue_type_style_index_0_lang-oJc56iXj.js"),q=require("./Empty.vue_vue_type_style_index_0_lang-DHvpu4sq.js"),M=require("./FloatButton.vue_vue_type_script_setup_true_lang-CaKIkb0P.js"),$=require("./GOPicker.vue_vue_type_style_index_0_lang-CjqAqI_W.js"),E=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-Byz-BOG1.js"),C=require("./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DiSPJXBZ.js"),I=require("./Icon/index.umd.cjs"),R=require("./IconButton.vue_vue_type_script_setup_true_lang-CGb0HxvX.js"),c=require("./Image.vue_vue_type_style_index_0_lang-DVDZ0ova.js"),S=require("./IndentLevel.vue_vue_type_style_index_0_lang-DVx2S15S.js"),Z=require("./Indicator.vue_vue_type_script_setup_true_lang-_V0q7Zly.js"),y=require("./Input.vue_vue_type_style_index_0_lang-HuiLdgsj.js"),V=require("./Kbd.vue_vue_type_style_index_0_lang-CuYfgo6l.js"),b=require("./Link.vue_vue_type_style_index_0_lang-BgwJE1ku.js"),r=require("./Menu.vue_vue_type_style_index_0_lang-CiyZmFBO.js"),d=require("./Popover.vue_vue_type_style_index_0_lang-BnKgARrA.js"),j=require("./RadioGroup.vue_vue_type_script_setup_true_lang-Dq66i_P9.js"),x=require("./ScrollContainer.vue_vue_type_style_index_0_lang-CMdXXxZr.js"),o=require("./Select.vue_vue_type_style_index_0_lang-RdNEKYeJ.js"),H=require("./Shortcut.vue_vue_type_style_index_0_lang-DIDsOrKm.js"),g=require("./Skeleton.vue_vue_type_style_index_0_lang-CWNX_-Jl.js"),B=require("./Spinner.vue_vue_type_style_index_0_lang-17QUeFmj.js"),k=require("./Switch.vue_vue_type_style_index_0_lang-DISD-AzJ.js"),i=require("./THead.vue_vue_type_style_index_0_lang-Ck81v68E.js"),f=require("./Textarea.vue_vue_type_style_index_0_lang-CJHHqEWa.js"),h=require("./Tooltip.vue_vue_type_script_setup_true_lang-DWMPc3HZ.js"),a=require("./Tree.vue_vue_type_style_index_0_lang-B9L-4ciK.js"),p=require("./element-BjE0SVc4.js"),P=require("./options-CWrQ7gsa.js"),K=require("./style-CYb6EX2Q.js"),U=require("./useInputDataStates-C6bS7MJv.js"),J=["3xsm","2xsm","xsm","sm","md","lg","xlg","2xlg"],N={};exports.ActionButton=A._sfc_main;exports.Alert=T._sfc_main;exports.AlertTypes=T.AlertTypes;exports.Avatar=t._sfc_main;exports.AvatarGroup=t._sfc_main$1;exports.AvatarOnlineAlignments=t.AvatarOnlineAlignments;exports.AvatarShapes=t.AvatarShapes;exports.AvatarSizes=t.AvatarSizes;exports.AvatarStrokes=t.AvatarStrokes;exports.injectAvatarGroupContext=t.injectAvatarGroupContext;exports.provideAvatarGroupContext=t.provideAvatarGroupContext;exports.Badge=O._sfc_main;exports.BadgeColors=u.BadgeColors;exports.BadgeColorsSubtle=u.BadgeColorsSubtle;exports.BadgeSizes=u.BadgeSizes;exports.BadgeTypes=u.BadgeTypes;exports.ButtonColors=n.ButtonColors;exports.ButtonGroup=n._sfc_main;exports.ButtonSizes=n.ButtonSizes;exports.ButtonTypes=n.ButtonTypes;exports.ButtonVariants=n.ButtonVariants;exports.injectButtonGroupContext=n.injectButtonGroupContext;exports.provideButtonGroupContext=n.provideButtonGroupContext;exports.Button=F._sfc_main;exports.Checkbox=_._sfc_main;exports.CheckboxGroup=_._sfc_main$1;exports.CheckboxSizes=_.CheckboxSizes;exports.injectCheckboxGroupContext=_.injectCheckboxGroupContext;exports.provideCheckboxGroupContext=_.provideCheckboxGroupContext;exports.useColoredPantographCheckbox=_.useColoredPantographCheckbox;exports.useColoredPantographCheckboxGroup=_.useColoredPantographCheckboxGroup;exports.Chip=L._sfc_main;exports.ChipColors=s.ChipColors;exports.ChipGroup=s._sfc_main;exports.ChipSizes=s.ChipSizes;exports.injectChipGroupContext=s.injectChipGroupContext;exports.provideChipGroupContext=s.provideChipGroupContext;exports.ColorPicker=l._sfc_main;exports.injectColorPickerContext=l.injectColorPickerContext;exports.provideColorPickerContext=l.provideColorPickerContext;exports.ColorSwatch=v._sfc_main;exports.ColorSwatchSizes=v.ColorSwatchSizes;exports.ColorSwatchTypes=v.ColorSwatchTypes;exports.ColorSwatchGroup=D._sfc_main;exports.ColorTrigger=z._sfc_main;exports.ColorTriggerSizes=z.ColorTriggerSizes;exports.ConfigProvider=e.ConfigProvider;exports.Form=e._sfc_main;exports.FormItem=e._sfc_main$1;exports.FormItemSizes=e.FormItemSizes;exports.FormItemStatuses=e.FormItemStatuses;exports.Icon=e._sfc_main$3;exports.IconSizes=e.IconSizes;exports.Label=e._sfc_main$2;exports.LabelSizes=e.LabelSizes;exports.injectConfigContext=e.injectConfigContext;exports.injectFormContext=e.injectFormContext;exports.injectFormItemContext=e.injectFormItemContext;exports.provideConfigContext=e.provideConfigContext;exports.provideFormContext=e.provideFormContext;exports.provideFormItemContext=e.provideFormItemContext;exports.useConfig=e.useConfig;exports.DataTable=w._sfc_main;exports.Divider=G._sfc_main;exports.DividerTypes=G.DividerTypes;exports.DropZone=m._sfc_main;exports.DropZoneSizes=m.DropZoneSizes;exports.DropZoneTypes=m.DropZoneTypes;exports.Empty=q._sfc_main;exports.EmptyTypes=q.EmptyTypes;exports.FloatButton=M._sfc_main;exports.GOPicker=$._sfc_main;exports.GraphicalObject=E._sfc_main;exports.GraphicalObjectGroup=C._sfc_main;exports.injectGraphicalObjectGroupContext=C.injectGraphicalObjectGroupContext;exports.provideGraphicalObjectGroupContext=C.provideGraphicalObjectGroupContext;exports.defineLocaleIconCollection=I.defineLocaleIconCollection;exports.disableIconCache=I.disableIconCache;exports.IconButton=R._sfc_main;exports.Image=c._sfc_main;exports.ImageAspectRatios=c.ImageAspectRatios;exports.ImageSizeRanges=c.ImageSizeRanges;exports.ImageTypes=c.ImageTypes;exports.IndentLevel=S._sfc_main;exports.IndentLevelShowLines=S.IndentLevelShowLines;exports.IndentLevelSizes=S.IndentLevelSizes;exports.Indicator=Z._sfc_main;exports.Input=y._sfc_main;exports.InputSizes=y.InputSizes;exports.InputStatuses=y.InputStatuses;exports.Kbd=V._sfc_main;exports.Link=b._sfc_main;exports.LinkStyles=b.LinkStyles;exports.Menu=r._sfc_main;exports.MenuGaps=r.MenuGaps;exports.MenuItem=r._sfc_main$1;exports.MenuItemSizes=r.MenuItemSizes;exports.injectMenuContext=r.injectMenuContext;exports.provideMenuContext=r.provideMenuContext;exports.Popover=d._sfc_main;exports.PopoverPlacements=d.PopoverPlacements;exports.PopoverSizes=d.PopoverSizes;exports.RadioGroup=j._sfc_main;exports.RadioGroupItem=j._sfc_main$1;exports.ScrollContainer=x._sfc_main;exports.ScrollContainerSizes=x.ScrollContainerSizes;exports.ScrollContainerTypes=x.ScrollContainerTypes;exports.Select=o._sfc_main;exports.SelectLabel=o._sfc_main$1;exports.SelectOption=o.SelectOption;exports.SelectSizes=o.SelectSizes;exports.SelectStatuses=o.SelectStatuses;exports.injectSelectContext=o.injectSelectContext;exports.provideSelectContext=o.provideSelectContext;exports.Shortcut=H._sfc_main;exports.Skeleton=g._sfc_main;exports.SkeletonSizes=g.SkeletonSizes;exports.SkeletonTypes=g.SkeletonTypes;exports.Spinner=B._sfc_main;exports.SpinnerSizes=B.SpinnerSizes;exports.Switch=k._sfc_main;exports.SwitchSizes=k.SwitchSizes;exports.TBody=i._sfc_main$4;exports.THead=i._sfc_main$5;exports.Table=i._sfc_main;exports.TableSizes=i.TableSizes;exports.Td=i._sfc_main$2;exports.Th=i._sfc_main$1;exports.Tr=i._sfc_main$3;exports.Textarea=f._sfc_main;exports.TextareaSizes=f.TextareaSizes;exports.TextareaStatuses=f.TextareaStatuses;exports.Tooltip=h._sfc_main;exports.importTippyStyles=h.importTippyStyles;exports.registerTippy=h.registerTippy;exports.Tree=a._sfc_main;exports.TreeGaps=a.TreeGaps;exports.TreeSizes=a.TreeSizes;exports.injectTreeContext=a.injectTreeContext;exports.provideTreeContext=a.provideTreeContext;exports.filterEmpty=p.filterEmpty;exports.isEmptyElement=p.isEmptyElement;exports.isFragment=p.isFragment;exports.isValidElement=p.isValidElement;exports.componentPrefix=P.componentPrefix;exports.getComponentOptions=P.getComponentOptions;exports.getStyleObject=K.getStyleObject;exports.UseInputDataStates=U.UseInputDataStates;exports.default=N;exports.systemSizes=J;
|