sun-form-v3 1.0.149 → 1.0.150
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/{index-Dl3hUvhj.js → index-BKMy7bG7.js} +1 -1
- package/dist/{index-C9jZMnJ3.js → index-BUZ_n1By.js} +1 -1
- package/dist/{index-tIFB3cIv.js → index-CQ_Wf9kF.js} +1 -1
- package/dist/{index-C8TDV72F.js → index-Cki0yMgi.js} +1 -1
- package/dist/{index-BloK3gtx.js → index-D6kPuApM.js} +2 -3
- package/dist/{index-M_Ig83K7.js → index-DG7dE9E1.js} +1 -1
- package/dist/{index-pUaKL8QN.js → index-Um5e5CgV.js} +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as g, resolveComponent as u, openBlock as b, createElementBlock as V, Fragment as w, createVNode as e, withCtx as n, unref as a } from "vue";
|
2
|
-
import { c } from "./index-
|
2
|
+
import { c } from "./index-D6kPuApM.js";
|
3
3
|
const k = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
|
4
4
|
__name: "index",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as z, ref as x, resolveComponent as p, openBlock as k, createElementBlock as U, Fragment as O, createVNode as e, withCtx as l, createTextVNode as V, unref as u, isRef as J, createElementVNode as m } from "vue";
|
2
|
-
import { _ as E, c as H } from "./index-
|
2
|
+
import { _ as E, c as H } from "./index-D6kPuApM.js";
|
3
3
|
const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as S, ref as C, resolveComponent as u, openBlock as k, createElementBlock as O, Fragment as U, createVNode as e, withCtx as l, createTextVNode as f, unref as i, isRef as J, createElementVNode as c } from "vue";
|
2
|
-
import { _ as E } from "./index-
|
2
|
+
import { _ as E } from "./index-D6kPuApM.js";
|
3
3
|
const H = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as C, resolveComponent as g, openBlock as T, createElementBlock as H, Fragment as E, createVNode as e, unref as l, withCtx as a, createTextVNode as b, isRef as A, createElementVNode as f, toDisplayString as k, createCommentVNode as D } from "vue";
|
2
|
-
import { _ as $ } from "./index-
|
2
|
+
import { _ as $ } from "./index-D6kPuApM.js";
|
3
3
|
const q = {
|
4
4
|
key: 0,
|
5
5
|
class: "flex h-full flex-col"
|
@@ -2002,7 +2002,6 @@ const pxe = {
|
|
2002
2002
|
let o = Le(() => r.widget.props);
|
2003
2003
|
const a = Le({
|
2004
2004
|
set: (d) => {
|
2005
|
-
console.log();
|
2006
2005
|
let p = null;
|
2007
2006
|
d && d.length > 0 && (o.value.postLastLevel ? p = d[d.length - 1] : p = d.join(",")), o.value.isTableItem ? i("update:modelValue", p) : o.value.value = p;
|
2008
2007
|
},
|
@@ -2011,7 +2010,7 @@ const pxe = {
|
|
2011
2010
|
if (o.value.isTableItem ? d = r.modelValue || o.value.value : d = o.value.value, d && typeof d == "string")
|
2012
2011
|
if (o.value.postLastLevel && !o.value.multiple) {
|
2013
2012
|
if (o.value.checkStrictly)
|
2014
|
-
return c(o.value.options, d);
|
2013
|
+
return c(o.value.options || [], d);
|
2015
2014
|
if (o.value.options)
|
2016
2015
|
return u(o.value.options, d);
|
2017
2016
|
} else
|
@@ -95054,7 +95053,7 @@ const v6 = /* @__PURE__ */ Object.assign({ name: "sunForm" }, {
|
|
95054
95053
|
},
|
95055
95054
|
setup(e) {
|
95056
95055
|
const n = Object.fromEntries(
|
95057
|
-
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-BcUJtkEW.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-DM5DPltp.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-
|
95056
|
+
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-BcUJtkEW.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-DM5DPltp.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-Cki0yMgi.js"), "../widgetConfigComps/config-date/index.vue": () => import("./index-C0NmmaE2.js"), "../widgetConfigComps/config-div/index.vue": () => import("./index-BAEL_Fhr.js"), "../widgetConfigComps/config-echarts/index.vue": () => import("./index-DG7dE9E1.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-CXNYHPLK.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-BRnMjd7_.js"), "../widgetConfigComps/config-form/index.vue": () => import("./index-CIaeKFCl.js"), "../widgetConfigComps/config-homepage/index.vue": () => import("./index-CifChfEv.js"), "../widgetConfigComps/config-image/index.vue": () => import("./index-dGJDj4ro.js"), "../widgetConfigComps/config-input/index.vue": () => import("./index-kzElMYkk.js"), "../widgetConfigComps/config-modal/index.vue": () => import("./index-CiNAZsvy.js"), "../widgetConfigComps/config-modal2/index.vue": () => import("./index-D7zr1ztZ.js"), "../widgetConfigComps/config-progress/index.vue": () => import("./index-c0zw96Jm.js"), "../widgetConfigComps/config-qrcode/index.vue": () => import("./index-DHjsGntq.js"), "../widgetConfigComps/config-radio/index.vue": () => import("./index-DYFp4hH-.js"), "../widgetConfigComps/config-rate/index.vue": () => import("./index-B0fldwhm.js"), "../widgetConfigComps/config-select/index.vue": () => import("./index-B1b5cejN.js"), "../widgetConfigComps/config-selects/index.vue": () => import("./index-CZZfzYn7.js"), "../widgetConfigComps/config-statistic/index.vue": () => import("./index-BUZ_n1By.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-CQ_Wf9kF.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-BKMy7bG7.js"), "../widgetConfigComps/config-text/index.vue": () => import("./index-BYbxnzUx.js"), "../widgetConfigComps/config-time/index.vue": () => import("./index-zkXVDNsL.js"), "../widgetConfigComps/config-timeline/index.vue": () => import("./index-Um5e5CgV.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([p, h]) => {
|
95058
95057
|
const y = p.match(/\/([^/]+)\/index\.vue$/);
|
95059
95058
|
return [y ? y[1] : null, v_e(h)];
|
95060
95059
|
})
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as v, createElementBlock as h, Fragment as x, createVNode as u, withCtx as o, createTextVNode as C, createElementVNode as a, renderList as B, unref as V, toDisplayString as N, nextTick as U, createBlock as D } from "vue";
|
2
|
-
import { e as E, i as M } from "./index-
|
2
|
+
import { e as E, i as M } from "./index-D6kPuApM.js";
|
3
3
|
const R = { class: "flex-wrap flex" }, S = ["onClick"], T = { class: "inner cursor-pointer hover:shadow-md hover:shadow-blue-200 border w-full h-full p-1 flex flex-col overflow-hidden items-center rounded-md shadow-sm" }, z = { class: "lab border-t w-full text-center mt-1 font-bold" }, F = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
|
4
4
|
__name: "chartChoose",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as S, ref as C, resolveComponent as p, openBlock as U, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as g, unref as i, isRef as J, createElementVNode as f } from "vue";
|
2
|
-
import { _ as T } from "./index-
|
2
|
+
import { _ as T } from "./index-D6kPuApM.js";
|
3
3
|
const E = { class: "h-full flex flex-col" }, H = { class: "flex-1 overflow-hidden" }, B = {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
package/dist/sun-form-v3.es.js
CHANGED
package/dist/sun-form-v3.umd.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
4
4
|
* @author owenm <owen23355@gmail.com>
|
5
5
|
* @license MIT
|
6
|
-
*/function UH(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Nf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?UH(Object(n),!0).forEach(function(r){Nme(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):UH(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function tT(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tT=function(e){return typeof e}:tT=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tT(t)}function Nme(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yd(){return Yd=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Yd.apply(this,arguments)}function Mme(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Ime(t,e){if(t==null)return{};var n=Mme(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var kme="1.14.0";function qd(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Xd=qd(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Fw=qd(/Edge/i),GH=qd(/firefox/i),jw=qd(/safari/i)&&!qd(/chrome/i)&&!qd(/android/i),YH=qd(/iP(ad|od|hone)/i),Pme=qd(/chrome/i)&&qd(/android/i),qH={capture:!1,passive:!1};function Ho(t,e,n){t.addEventListener(e,n,!Xd&&qH)}function Mo(t,e,n){t.removeEventListener(e,n,!Xd&&qH)}function nT(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function Vme(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Mf(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&nT(t,e):nT(t,e))||r&&t===n)return t;if(t===n)break}while(t=Vme(t))}return null}var XH=/\s+/g;function eu(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(XH," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(XH," ")}}function Cr(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function Qy(t,e){var n="";if(typeof t=="string")n=t;else do{var r=Cr(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function KH(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function If(){var t=document.scrollingElement;return t||document.documentElement}function Pa(t,e,n,r,o){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,s,u,c,f,d;if(t!==window&&t.parentNode&&t!==If()?(i=t.getBoundingClientRect(),a=i.top,s=i.left,u=i.bottom,c=i.right,f=i.height,d=i.width):(a=0,s=0,u=window.innerHeight,c=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!Xd))do if(o&&o.getBoundingClientRect&&(Cr(o,"transform")!=="none"||n&&Cr(o,"position")!=="static")){var p=o.getBoundingClientRect();a-=p.top+parseInt(Cr(o,"border-top-width")),s-=p.left+parseInt(Cr(o,"border-left-width")),u=a+i.height,c=s+i.width;break}while(o=o.parentNode);if(r&&t!==window){var h=Qy(o||t),g=h&&h.a,y=h&&h.d;h&&(a/=y,s/=g,d/=g,f/=y,u=a+f,c=s+d)}return{top:a,left:s,bottom:u,right:c,width:d,height:f}}}function ZH(t,e,n){for(var r=fh(t,!0),o=Pa(t)[e];r;){var i=Pa(r)[n],a=void 0;if(a=o>=i,!a)return r;if(r===If())break;r=fh(r,!1)}return!1}function eb(t,e,n,r){for(var o=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==Er.ghost&&(r||a[i]!==Er.dragged)&&Mf(a[i],n.draggable,t,!1)){if(o===e)return a[i];o++}i++}return null}function ck(t,e){for(var n=t.lastElementChild;n&&(n===Er.ghost||Cr(n,"display")==="none"||e&&!nT(n,e));)n=n.previousElementSibling;return n||null}function Fu(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Er.clone&&(!e||nT(t,e))&&n++;return n}function JH(t){var e=0,n=0,r=If();if(t)do{var o=Qy(t),i=o.a,a=o.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function Rme(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function fh(t,e){if(!t||!t.getBoundingClientRect)return If();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Cr(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return If();if(r||e)return n;r=!0}}while(n=n.parentNode);return If()}function Lme(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function fk(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var $w;function QH(t,e){return function(){if(!$w){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),$w=setTimeout(function(){$w=void 0},e)}}}function Bme(){clearTimeout($w),$w=void 0}function e6(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function t6(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var tu="Sortable"+new Date().getTime();function Fme(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(Cr(o,"display")==="none"||o===Er.ghost)){t.push({target:o,rect:Pa(o)});var i=Nf({},t[t.length-1].rect);if(o.thisAnimationDuration){var a=Qy(o,!0);a&&(i.top-=a.f,i.left-=a.e)}o.fromRect=i}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(Rme(t,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var i=!1,a=0;t.forEach(function(s){var u=0,c=s.target,f=c.fromRect,d=Pa(c),p=c.prevFromRect,h=c.prevToRect,g=s.rect,y=Qy(c,!0);y&&(d.top-=y.f,d.left-=y.e),c.toRect=d,c.thisAnimationDuration&&fk(p,d)&&!fk(f,d)&&(g.top-d.top)/(g.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(u=$me(g,p,h,o.options)),fk(d,f)||(c.prevFromRect=f,c.prevToRect=d,u||(u=o.options.animation),o.animate(c,g,d,u)),u&&(i=!0,a=Math.max(a,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(e),i?e=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),t=[]},animate:function(r,o,i,a){if(a){Cr(r,"transition",""),Cr(r,"transform","");var s=Qy(this.el),u=s&&s.a,c=s&&s.d,f=(o.left-i.left)/(u||1),d=(o.top-i.top)/(c||1);r.animatingX=!!f,r.animatingY=!!d,Cr(r,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=jme(r),Cr(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),Cr(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Cr(r,"transition",""),Cr(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function jme(t){return t.offsetWidth}function $me(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var tb=[],dk={initializeByDefault:!0},zw={mount:function(e){for(var n in dk)dk.hasOwnProperty(n)&&!(n in e)&&(e[n]=dk[n]);tb.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),tb.push(e)},pluginEvent:function(e,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var i=e+"Global";tb.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][i]&&n[a.pluginName][i](Nf({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](Nf({sortable:n},r)))})},initializePlugins:function(e,n,r,o){tb.forEach(function(s){var u=s.pluginName;if(!(!e.options[u]&&!s.initializeByDefault)){var c=new s(e,n,e.options);c.sortable=e,c.options=e.options,e[u]=c,Yd(r,c.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);typeof a<"u"&&(e.options[i]=a)}},getEventProperties:function(e,n){var r={};return tb.forEach(function(o){typeof o.eventProperties=="function"&&Yd(r,o.eventProperties.call(n[o.pluginName],e))}),r},modifyOption:function(e,n,r){var o;return tb.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(e[i.pluginName],r))}),o}};function zme(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,i=t.cloneEl,a=t.toEl,s=t.fromEl,u=t.oldIndex,c=t.newIndex,f=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,h=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[tu],!!e){var y,w=e.options,x="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Xd&&!Fw?y=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(r,!0,!0)),y.to=a||n,y.from=s||n,y.item=o||n,y.clone=i,y.oldIndex=u,y.newIndex=c,y.oldDraggableIndex=f,y.newDraggableIndex=d,y.originalEvent=p,y.pullMode=h?h.lastPutMode:void 0;var S=Nf(Nf({},g),zw.getEventProperties(r,e));for(var E in S)y[E]=S[E];n&&n.dispatchEvent(y),w[x]&&w[x].call(e,y)}}var Hme=["evt"],Ds=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,i=Ime(r,Hme);zw.pluginEvent.bind(Er)(e,n,Nf({dragEl:wn,parentEl:qi,ghostEl:Gr,rootEl:Ni,nextEl:cv,lastDownEl:rT,cloneEl:Xi,cloneHidden:dh,dragStarted:Ww,putSortable:fl,activeSortable:Er.active,originalEvent:o,oldIndex:nb,oldDraggableIndex:Hw,newIndex:nu,newDraggableIndex:ph,hideGhostForTarget:s6,unhideGhostForTarget:u6,cloneNowHidden:function(){dh=!0},cloneNowShown:function(){dh=!1},dispatchSortableEvent:function(s){Jl({sortable:n,name:s,originalEvent:o})}},i))};function Jl(t){zme(Nf({putSortable:fl,cloneEl:Xi,targetEl:wn,rootEl:Ni,oldIndex:nb,oldDraggableIndex:Hw,newIndex:nu,newDraggableIndex:ph},t))}var wn,qi,Gr,Ni,cv,rT,Xi,dh,nb,nu,Hw,ph,oT,fl,rb=!1,iT=!1,aT=[],fv,kc,pk,hk,n6,r6,Ww,ob,Uw,Gw=!1,lT=!1,sT,Ml,gk=[],vk=!1,uT=[],cT=typeof document<"u",fT=YH,o6=Fw||Xd?"cssFloat":"float",Wme=cT&&!Pme&&!YH&&"draggable"in document.createElement("div"),i6=function(){if(cT){if(Xd)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),a6=function(e,n){var r=Cr(e),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=eb(e,0,n),a=eb(e,1,n),s=i&&Cr(i),u=a&&Cr(a),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Pa(i).width,f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Pa(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&s.float!=="none"){var d=s.float==="left"?"left":"right";return a&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return i&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||c>=o&&r[o6]==="none"||a&&r[o6]==="none"&&c+f>o)?"vertical":"horizontal"},Ume=function(e,n,r){var o=r?e.left:e.top,i=r?e.right:e.bottom,a=r?e.width:e.height,s=r?n.left:n.top,u=r?n.right:n.bottom,c=r?n.width:n.height;return o===s||i===u||o+a/2===s+c/2},Gme=function(e,n){var r;return aT.some(function(o){var i=o[tu].options.emptyInsertThreshold;if(!(!i||ck(o))){var a=Pa(o),s=e>=a.left-i&&e<=a.right+i,u=n>=a.top-i&&n<=a.bottom+i;if(s&&u)return r=o}}),r},l6=function(e){function n(i,a){return function(s,u,c,f){var d=s.options.group.name&&u.options.group.name&&s.options.group.name===u.options.group.name;if(i==null&&(a||d))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(s,u,c,f),a)(s,u,c,f);var p=(a?s:u).options.group.name;return i===!0||typeof i=="string"&&i===p||i.join&&i.indexOf(p)>-1}}var r={},o=e.group;(!o||tT(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,e.group=r},s6=function(){!i6&&Gr&&Cr(Gr,"display","none")},u6=function(){!i6&&Gr&&Cr(Gr,"display","")};cT&&document.addEventListener("click",function(t){if(iT)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),iT=!1,!1},!0);var dv=function(e){if(wn){e=e.touches?e.touches[0]:e;var n=Gme(e.clientX,e.clientY);if(n){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[tu]._onDragOver(r)}}},Yme=function(e){wn&&wn.parentNode[tu]._isOutsideThisEl(e.target)};function Er(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Yd({},e),t[tu]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return a6(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,s){a.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:Er.supportPointer!==!1&&"PointerEvent"in window&&!jw,emptyInsertThreshold:5};zw.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);l6(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:Wme,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Ho(t,"pointerdown",this._onTapStart):(Ho(t,"mousedown",this._onTapStart),Ho(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ho(t,"dragover",this),Ho(t,"dragenter",this)),aT.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Yd(this,Fme())}Er.prototype={constructor:Er,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ob=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,wn):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,o=this.options,i=o.preventOnFilter,a=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(s||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,f=o.filter;if(tye(r),!wn&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||o.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&jw&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Mf(u,o.draggable,r,!1),!(u&&u.animated)&&rT!==u)){if(nb=Fu(u),Hw=Fu(u,o.draggable),typeof f=="function"){if(f.call(this,e,u,this)){Jl({sortable:n,rootEl:c,name:"filter",targetEl:u,toEl:r,fromEl:r}),Ds("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=Mf(c,d.trim(),r,!1),d)return Jl({sortable:n,rootEl:d,name:"filter",targetEl:u,fromEl:r,toEl:r}),Ds("filter",n,{evt:e}),!0}),f)){i&&e.cancelable&&e.preventDefault();return}o.handle&&!Mf(c,o.handle,r,!1)||this._prepareDragStart(e,s,u)}}},_prepareDragStart:function(e,n,r){var o=this,i=o.el,a=o.options,s=i.ownerDocument,u;if(r&&!wn&&r.parentNode===i){var c=Pa(r);if(Ni=i,wn=r,qi=wn.parentNode,cv=wn.nextSibling,rT=r,oT=a.group,Er.dragged=wn,fv={target:wn,clientX:(n||e).clientX,clientY:(n||e).clientY},n6=fv.clientX-c.left,r6=fv.clientY-c.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,wn.style["will-change"]="all",u=function(){if(Ds("delayEnded",o,{evt:e}),Er.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!GH&&o.nativeDraggable&&(wn.draggable=!0),o._triggerDragStart(e,n),Jl({sortable:o,name:"choose",originalEvent:e}),eu(wn,a.chosenClass,!0)},a.ignore.split(",").forEach(function(f){KH(wn,f.trim(),mk)}),Ho(s,"dragover",dv),Ho(s,"mousemove",dv),Ho(s,"touchmove",dv),Ho(s,"mouseup",o._onDrop),Ho(s,"touchend",o._onDrop),Ho(s,"touchcancel",o._onDrop),GH&&this.nativeDraggable&&(this.options.touchStartThreshold=4,wn.draggable=!0),Ds("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Fw||Xd))){if(Er.eventCanceled){this._onDrop();return}Ho(s,"mouseup",o._disableDelayedDrag),Ho(s,"touchend",o._disableDelayedDrag),Ho(s,"touchcancel",o._disableDelayedDrag),Ho(s,"mousemove",o._delayedDragTouchMoveHandler),Ho(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&Ho(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(u,a.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(){wn&&mk(wn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Mo(e,"mouseup",this._disableDelayedDrag),Mo(e,"touchend",this._disableDelayedDrag),Mo(e,"touchcancel",this._disableDelayedDrag),Mo(e,"mousemove",this._delayedDragTouchMoveHandler),Mo(e,"touchmove",this._delayedDragTouchMoveHandler),Mo(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?Ho(document,"pointermove",this._onTouchMove):n?Ho(document,"touchmove",this._onTouchMove):Ho(document,"mousemove",this._onTouchMove):(Ho(wn,"dragend",this),Ho(Ni,"dragstart",this._onDragStart));try{document.selection?pT(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(rb=!1,Ni&&wn){Ds("dragStarted",this,{evt:n}),this.nativeDraggable&&Ho(document,"dragover",Yme);var r=this.options;!e&&eu(wn,r.dragClass,!1),eu(wn,r.ghostClass,!0),Er.active=this,e&&this._appendGhost(),Jl({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(kc){this._lastX=kc.clientX,this._lastY=kc.clientY,s6();for(var e=document.elementFromPoint(kc.clientX,kc.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(kc.clientX,kc.clientY),e!==n);)n=e;if(wn.parentNode[tu]._isOutsideThisEl(e),n)do{if(n[tu]){var r=void 0;if(r=n[tu]._onDragOver({clientX:kc.clientX,clientY:kc.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);u6()}},_onTouchMove:function(e){if(fv){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,i=e.touches?e.touches[0]:e,a=Gr&&Qy(Gr,!0),s=Gr&&a&&a.a,u=Gr&&a&&a.d,c=fT&&Ml&&JH(Ml),f=(i.clientX-fv.clientX+o.x)/(s||1)+(c?c[0]-gk[0]:0)/(s||1),d=(i.clientY-fv.clientY+o.y)/(u||1)+(c?c[1]-gk[1]:0)/(u||1);if(!Er.active&&!rb){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(Gr){a?(a.e+=f-(pk||0),a.f+=d-(hk||0)):a={a:1,b:0,c:0,d:1,e:f,f:d};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");Cr(Gr,"webkitTransform",p),Cr(Gr,"mozTransform",p),Cr(Gr,"msTransform",p),Cr(Gr,"transform",p),pk=f,hk=d,kc=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Gr){var e=this.options.fallbackOnBody?document.body:Ni,n=Pa(wn,!0,fT,!0,e),r=this.options;if(fT){for(Ml=e;Cr(Ml,"position")==="static"&&Cr(Ml,"transform")==="none"&&Ml!==document;)Ml=Ml.parentNode;Ml!==document.body&&Ml!==document.documentElement?(Ml===document&&(Ml=If()),n.top+=Ml.scrollTop,n.left+=Ml.scrollLeft):Ml=If(),gk=JH(Ml)}Gr=wn.cloneNode(!0),eu(Gr,r.ghostClass,!1),eu(Gr,r.fallbackClass,!0),eu(Gr,r.dragClass,!0),Cr(Gr,"transition",""),Cr(Gr,"transform",""),Cr(Gr,"box-sizing","border-box"),Cr(Gr,"margin",0),Cr(Gr,"top",n.top),Cr(Gr,"left",n.left),Cr(Gr,"width",n.width),Cr(Gr,"height",n.height),Cr(Gr,"opacity","0.8"),Cr(Gr,"position",fT?"absolute":"fixed"),Cr(Gr,"zIndex","100000"),Cr(Gr,"pointerEvents","none"),Er.ghost=Gr,e.appendChild(Gr),Cr(Gr,"transform-origin",n6/parseInt(Gr.style.width)*100+"% "+r6/parseInt(Gr.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,o=e.dataTransfer,i=r.options;if(Ds("dragStart",this,{evt:e}),Er.eventCanceled){this._onDrop();return}Ds("setupClone",this),Er.eventCanceled||(Xi=t6(wn),Xi.draggable=!1,Xi.style["will-change"]="",this._hideClone(),eu(Xi,this.options.chosenClass,!1),Er.clone=Xi),r.cloneId=pT(function(){Ds("clone",r),!Er.eventCanceled&&(r.options.removeCloneOnHide||Ni.insertBefore(Xi,wn),r._hideClone(),Jl({sortable:r,name:"clone"}))}),!n&&eu(wn,i.dragClass,!0),n?(iT=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Mo(document,"mouseup",r._onDrop),Mo(document,"touchend",r._onDrop),Mo(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(r,o,wn)),Ho(document,"drop",r),Cr(wn,"transform","translateZ(0)")),rb=!0,r._dragStartId=pT(r._dragStarted.bind(r,n,e)),Ho(document,"selectstart",r),Ww=!0,jw&&Cr(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,o,i,a,s=this.options,u=s.group,c=Er.active,f=oT===u,d=s.sort,p=fl||c,h,g=this,y=!1;if(vk)return;function w(Z,ee){Ds(Z,g,Nf({evt:e,isOwner:f,axis:h?"vertical":"horizontal",revert:a,dragRect:o,targetRect:i,canSort:d,fromSortable:p,target:r,completed:S,onMove:function(ge,Ie){return dT(Ni,n,wn,o,ge,Pa(ge),e,Ie)},changed:E},ee))}function x(){w("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function S(Z){return w("dragOverCompleted",{insertion:Z}),Z&&(f?c._hideClone():c._showClone(g),g!==p&&(eu(wn,fl?fl.options.ghostClass:c.options.ghostClass,!1),eu(wn,s.ghostClass,!0)),fl!==g&&g!==Er.active?fl=g:g===Er.active&&fl&&(fl=null),p===g&&(g._ignoreWhileAnimating=r),g.animateAll(function(){w("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r===wn&&!wn.animated||r===n&&!r.animated)&&(ob=null),!s.dragoverBubble&&!e.rootEl&&r!==document&&(wn.parentNode[tu]._isOutsideThisEl(e.target),!Z&&dv(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),y=!0}function E(){nu=Fu(wn),ph=Fu(wn,s.draggable),Jl({sortable:g,name:"change",toEl:n,newIndex:nu,newDraggableIndex:ph,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=Mf(r,s.draggable,n,!0),w("dragOver"),Er.eventCanceled)return y;if(wn.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r)return S(!1);if(iT=!1,c&&!s.disabled&&(f?d||(a=qi!==Ni):fl===this||(this.lastPutMode=oT.checkPull(this,c,wn,e))&&u.checkPut(this,c,wn,e))){if(h=this._getDirection(e,r)==="vertical",o=Pa(wn),w("dragOverValid"),Er.eventCanceled)return y;if(a)return qi=Ni,x(),this._hideClone(),w("revert"),Er.eventCanceled||(cv?Ni.insertBefore(wn,cv):Ni.appendChild(wn)),S(!0);var A=ck(n,s.draggable);if(!A||Zme(e,h,this)&&!A.animated){if(A===wn)return S(!1);if(A&&n===e.target&&(r=A),r&&(i=Pa(r)),dT(Ni,n,wn,o,r,i,e,!!r)!==!1)return x(),n.appendChild(wn),qi=n,E(),S(!0)}else if(A&&Kme(e,h,this)){var I=eb(n,0,s,!0);if(I===wn)return S(!1);if(r=I,i=Pa(r),dT(Ni,n,wn,o,r,i,e,!1)!==!1)return x(),n.insertBefore(wn,I),qi=n,E(),S(!0)}else if(r.parentNode===n){i=Pa(r);var N=0,k,P=wn.parentNode!==n,V=!Ume(wn.animated&&wn.toRect||o,r.animated&&r.toRect||i,h),F=h?"top":"left",$=ZH(r,"top","top")||ZH(wn,"top","top"),B=$?$.scrollTop:void 0;ob!==r&&(k=i[F],Gw=!1,lT=!V&&s.invertSwap||P),N=Jme(e,r,i,h,V?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,lT,ob===r);var R;if(N!==0){var W=Fu(wn);do W-=N,R=qi.children[W];while(R&&(Cr(R,"display")==="none"||R===Gr))}if(N===0||R===r)return S(!1);ob=r,Uw=N;var H=r.nextElementSibling,J=!1;J=N===1;var ne=dT(Ni,n,wn,o,r,i,e,J);if(ne!==!1)return(ne===1||ne===-1)&&(J=ne===1),vk=!0,setTimeout(Xme,30),x(),J&&!H?n.appendChild(wn):r.parentNode.insertBefore(wn,J?H:r),$&&e6($,0,B-$.scrollTop),qi=wn.parentNode,k!==void 0&&!lT&&(sT=Math.abs(k-Pa(r)[F])),E(),S(!0)}if(n.contains(wn))return S(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Mo(document,"mousemove",this._onTouchMove),Mo(document,"touchmove",this._onTouchMove),Mo(document,"pointermove",this._onTouchMove),Mo(document,"dragover",dv),Mo(document,"mousemove",dv),Mo(document,"touchmove",dv)},_offUpEvents:function(){var e=this.el.ownerDocument;Mo(e,"mouseup",this._onDrop),Mo(e,"touchend",this._onDrop),Mo(e,"pointerup",this._onDrop),Mo(e,"touchcancel",this._onDrop),Mo(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(nu=Fu(wn),ph=Fu(wn,r.draggable),Ds("drop",this,{evt:e}),qi=wn&&wn.parentNode,nu=Fu(wn),ph=Fu(wn,r.draggable),Er.eventCanceled){this._nulling();return}rb=!1,lT=!1,Gw=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),yk(this.cloneId),yk(this._dragStartId),this.nativeDraggable&&(Mo(document,"drop",this),Mo(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),jw&&Cr(document.body,"user-select",""),Cr(wn,"transform",""),e&&(Ww&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),Gr&&Gr.parentNode&&Gr.parentNode.removeChild(Gr),(Ni===qi||fl&&fl.lastPutMode!=="clone")&&Xi&&Xi.parentNode&&Xi.parentNode.removeChild(Xi),wn&&(this.nativeDraggable&&Mo(wn,"dragend",this),mk(wn),wn.style["will-change"]="",Ww&&!rb&&eu(wn,fl?fl.options.ghostClass:this.options.ghostClass,!1),eu(wn,this.options.chosenClass,!1),Jl({sortable:this,name:"unchoose",toEl:qi,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ni!==qi?(nu>=0&&(Jl({rootEl:qi,name:"add",toEl:qi,fromEl:Ni,originalEvent:e}),Jl({sortable:this,name:"remove",toEl:qi,originalEvent:e}),Jl({rootEl:qi,name:"sort",toEl:qi,fromEl:Ni,originalEvent:e}),Jl({sortable:this,name:"sort",toEl:qi,originalEvent:e})),fl&&fl.save()):nu!==nb&&nu>=0&&(Jl({sortable:this,name:"update",toEl:qi,originalEvent:e}),Jl({sortable:this,name:"sort",toEl:qi,originalEvent:e})),Er.active&&((nu==null||nu===-1)&&(nu=nb,ph=Hw),Jl({sortable:this,name:"end",toEl:qi,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ds("nulling",this),Ni=wn=qi=Gr=cv=Xi=rT=dh=fv=kc=Ww=nu=ph=nb=Hw=ob=Uw=fl=oT=Er.dragged=Er.ghost=Er.clone=Er.active=null,uT.forEach(function(e){e.checked=!0}),uT.length=pk=hk=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":wn&&(this._onDragOver(e),qme(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,o=0,i=r.length,a=this.options;o<i;o++)n=r[o],Mf(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||eye(n));return e},sort:function(e,n){var r={},o=this.el;this.toArray().forEach(function(i,a){var s=o.children[a];Mf(s,this.options.draggable,o,!1)&&(r[i]=s)},this),n&&this.captureAnimationState(),e.forEach(function(i){r[i]&&(o.removeChild(r[i]),o.appendChild(r[i]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Mf(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var o=zw.modifyOption(this,e,n);typeof o<"u"?r[e]=o:r[e]=n,e==="group"&&l6(r)},destroy:function(){Ds("destroy",this);var e=this.el;e[tu]=null,Mo(e,"mousedown",this._onTapStart),Mo(e,"touchstart",this._onTapStart),Mo(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Mo(e,"dragover",this),Mo(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),aT.splice(aT.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!dh){if(Ds("hideClone",this),Er.eventCanceled)return;Cr(Xi,"display","none"),this.options.removeCloneOnHide&&Xi.parentNode&&Xi.parentNode.removeChild(Xi),dh=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(dh){if(Ds("showClone",this),Er.eventCanceled)return;wn.parentNode==Ni&&!this.options.group.revertClone?Ni.insertBefore(Xi,wn):cv?Ni.insertBefore(Xi,cv):Ni.appendChild(Xi),this.options.group.revertClone&&this.animate(wn,Xi),Cr(Xi,"display",""),dh=!1}}};function qme(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function dT(t,e,n,r,o,i,a,s){var u,c=t[tu],f=c.options.onMove,d;return window.CustomEvent&&!Xd&&!Fw?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=e,u.from=t,u.dragged=n,u.draggedRect=r,u.related=o||e,u.relatedRect=i||Pa(e),u.willInsertAfter=s,u.originalEvent=a,t.dispatchEvent(u),f&&(d=f.call(c,u,a)),d}function mk(t){t.draggable=!1}function Xme(){vk=!1}function Kme(t,e,n){var r=Pa(eb(n.el,0,n.options,!0)),o=10;return e?t.clientX<r.left-o||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-o||t.clientY<r.bottom&&t.clientX<r.left}function Zme(t,e,n){var r=Pa(ck(n.el,n.options.draggable)),o=10;return e?t.clientX>r.right+o||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+o}function Jme(t,e,n,r,o,i,a,s){var u=r?t.clientY:t.clientX,c=r?n.height:n.width,f=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!a){if(s&&sT<c*o){if(!Gw&&(Uw===1?u>f+c*i/2:u<d-c*i/2)&&(Gw=!0),Gw)p=!0;else if(Uw===1?u<f+sT:u>d-sT)return-Uw}else if(u>f+c*(1-o)/2&&u<d-c*(1-o)/2)return Qme(e)}return p=p||a,p&&(u<f+c*i/2||u>d-c*i/2)?u>f+c/2?1:-1:0}function Qme(t){return Fu(wn)<Fu(t)?1:-1}function eye(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function tye(t){uT.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&uT.push(r)}}function pT(t){return setTimeout(t,0)}function yk(t){return clearTimeout(t)}cT&&Ho(document,"touchmove",function(t){(Er.active||rb)&&t.cancelable&&t.preventDefault()}),Er.utils={on:Ho,off:Mo,css:Cr,find:KH,is:function(e,n){return!!Mf(e,n,e,!1)},extend:Lme,throttle:QH,closest:Mf,toggleClass:eu,clone:t6,index:Fu,nextTick:pT,cancelNextTick:yk,detectDirection:a6,getChild:eb},Er.get=function(t){return t[tu]},Er.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Er.utils=Nf(Nf({},Er.utils),r.utils)),zw.mount(r)})},Er.create=function(t,e){return new Er(t,e)},Er.version=kme;var wa=[],Yw,bk,_k=!1,wk,xk,hT,qw;function nye(){function t(){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 t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?Ho(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ho(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Ho(document,"touchmove",this._handleFallbackAutoScroll):Ho(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Mo(document,"dragover",this._handleAutoScroll):(Mo(document,"pointermove",this._handleFallbackAutoScroll),Mo(document,"touchmove",this._handleFallbackAutoScroll),Mo(document,"mousemove",this._handleFallbackAutoScroll)),c6(),gT(),Bme()},nulling:function(){hT=bk=Yw=_k=qw=wk=xk=null,wa.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,i=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(i,a);if(hT=n,r||this.options.forceAutoScrollFallback||Fw||Xd||jw){Sk(n,this.options,s,r);var u=fh(s,!0);_k&&(!qw||i!==wk||a!==xk)&&(qw&&c6(),qw=setInterval(function(){var c=fh(document.elementFromPoint(i,a),!0);c!==u&&(u=c,gT()),Sk(n,o.options,c,r)},10),wk=i,xk=a)}else{if(!this.options.bubbleScroll||fh(s,!0)===If()){gT();return}Sk(n,this.options,fh(s,!1),!1)}}},Yd(t,{pluginName:"scroll",initializeByDefault:!0})}function gT(){wa.forEach(function(t){clearInterval(t.pid)}),wa=[]}function c6(){clearInterval(qw)}var Sk=QH(function(t,e,n,r){if(e.scroll){var o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,s=e.scrollSpeed,u=If(),c=!1,f;bk!==n&&(bk=n,gT(),Yw=e.scroll,f=e.scrollFn,Yw===!0&&(Yw=fh(n,!0)));var d=0,p=Yw;do{var h=p,g=Pa(h),y=g.top,w=g.bottom,x=g.left,S=g.right,E=g.width,A=g.height,I=void 0,N=void 0,k=h.scrollWidth,P=h.scrollHeight,V=Cr(h),F=h.scrollLeft,$=h.scrollTop;h===u?(I=E<k&&(V.overflowX==="auto"||V.overflowX==="scroll"||V.overflowX==="visible"),N=A<P&&(V.overflowY==="auto"||V.overflowY==="scroll"||V.overflowY==="visible")):(I=E<k&&(V.overflowX==="auto"||V.overflowX==="scroll"),N=A<P&&(V.overflowY==="auto"||V.overflowY==="scroll"));var B=I&&(Math.abs(S-o)<=a&&F+E<k)-(Math.abs(x-o)<=a&&!!F),R=N&&(Math.abs(w-i)<=a&&$+A<P)-(Math.abs(y-i)<=a&&!!$);if(!wa[d])for(var W=0;W<=d;W++)wa[W]||(wa[W]={});(wa[d].vx!=B||wa[d].vy!=R||wa[d].el!==h)&&(wa[d].el=h,wa[d].vx=B,wa[d].vy=R,clearInterval(wa[d].pid),(B!=0||R!=0)&&(c=!0,wa[d].pid=setInterval((function(){r&&this.layer===0&&Er.active._onTouchMove(hT);var H=wa[this.layer].vy?wa[this.layer].vy*s:0,J=wa[this.layer].vx?wa[this.layer].vx*s:0;typeof f=="function"&&f.call(Er.dragged.parentNode[tu],J,H,t,hT,wa[this.layer].el)!=="continue"||e6(wa[this.layer].el,J,H)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==u&&(p=fh(p,!1)));_k=c}},30),f6=function(e){var n=e.originalEvent,r=e.putSortable,o=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,s=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(n){var c=r||i;s();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(f.clientX,f.clientY);u(),c&&!c.el.contains(d)&&(a("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function Ck(){}Ck.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=eb(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:f6},Yd(Ck,{pluginName:"revertOnSpill"});function Ek(){}Ek.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:f6},Yd(Ek,{pluginName:"removeOnSpill"}),Er.mount(new nye),Er.mount(Ek,Ck);function Tk(t){t.parentElement!==null&&t.parentElement.removeChild(t)}function d6(t,e,n){const r=n===0?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,r)}function rye(){return typeof window<"u"?window.console:global.console}const oye=rye();function iye(t){const e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}const aye=/-(\w)/g,lye=iye(t=>t.replace(aye,(e,n)=>n.toUpperCase())),p6=["Start","Add","Remove","Update","End"],h6=["Choose","Unchoose","Sort","Filter","Clone"],g6=["Move"],sye=[g6,p6,h6].flatMap(t=>t).map(t=>`on${t}`),Ok={manage:g6,manageAndEmit:p6,emit:h6};function uye(t){return sye.indexOf(t)!==-1}const cye=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function fye(t){return cye.includes(t)}function dye(t){return["transition-group","TransitionGroup"].includes(t)}function v6(t){return["id","class","role","style"].includes(t)||t.startsWith("data-")||t.startsWith("aria-")||t.startsWith("on")}function m6(t){return t.reduce((e,[n,r])=>(e[n]=r,e),{})}function pye({$attrs:t,componentData:e={}}){return{...m6(Object.entries(t).filter(([r,o])=>v6(r))),...e}}function hye({$attrs:t,callBackBuilder:e}){const n=m6(y6(t));Object.entries(e).forEach(([o,i])=>{Ok[o].forEach(a=>{n[`on${a}`]=i(a)})});const r=`[data-draggable]${n.draggable||""}`;return{...n,draggable:r}}function y6(t){return Object.entries(t).filter(([e,n])=>!v6(e)).map(([e,n])=>[lye(e),n]).filter(([e,n])=>!uye(e))}const b6=({el:t})=>t,gye=(t,e)=>t.__draggable_context=e,_6=t=>t.__draggable_context;class vye{constructor({nodes:{header:e,default:n,footer:r},root:o,realList:i}){this.defaultNodes=n,this.children=[...e,...n,...r],this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=i}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,n){const{tag:r,children:o,_isRootComponent:i}=this;return e(r,n,i?{default:()=>o}:o)}updated(){const{defaultNodes:e,realList:n}=this;e.forEach((r,o)=>{gye(b6(r),{element:n[o],index:o})})}getUnderlyingVm(e){return _6(e)}getVmIndexFromDomIndex(e,n){const{defaultNodes:r}=this,{length:o}=r,i=n.children,a=i.item(e);if(a===null)return o;const s=_6(a);if(s)return s.index;if(o===0)return 0;const u=b6(r[0]),c=[...i].findIndex(f=>f===u);return e<c?0:o}}function mye(t,e){const n=t[e];return n?n():[]}function yye({$slots:t,realList:e,getKey:n}){const r=e||[],[o,i]=["header","footer"].map(u=>mye(t,u)),{item:a}=t;if(!a)throw new Error("draggable element must have an item slot");const s=r.flatMap((u,c)=>a({element:u,index:c}).map(f=>(f.key=n(u),f.props={...f.props||{},"data-draggable":!0},f)));if(s.length!==r.length)throw new Error("Item slot must have only one child");return{header:o,footer:i,default:s}}function bye(t){const e=dye(t),n=!fye(t)&&!e;return{transition:e,externalComponent:n,tag:n?l.resolveComponent(t):e?l.TransitionGroup:t}}function _ye({$slots:t,tag:e,realList:n,getKey:r}){const o=yye({$slots:t,realList:n,getKey:r}),i=bye(e);return new vye({nodes:o,root:i,realList:n})}function w6(t,e){l.nextTick(()=>this.$emit(t.toLowerCase(),e))}function x6(t){return(e,n)=>{if(this.realList!==null)return this[`onDrag${t}`](e,n)}}function wye(t){const e=x6.call(this,t);return(n,r)=>{e.call(this,n,r),w6.call(this,t,n)}}let Dk=null;const xye={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Sye=["update:modelValue","change",...[...Ok.manageAndEmit,...Ok.emit].map(t=>t.toLowerCase())],Kd=l.defineComponent({name:"draggable",inheritAttrs:!1,props:xye,emits:Sye,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:t,$attrs:e,tag:n,componentData:r,realList:o,getKey:i}=this,a=_ye({$slots:t,tag:n,realList:o,getKey:i});this.componentStructure=a;const s=pye({$attrs:e,componentData:r});return a.render(l.h,s)}catch(t){return this.error=!0,l.h("pre",{style:{color:"red"}},t.stack)}},created(){this.list!==null&&this.modelValue!==null&&oye.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:t,$el:e,componentStructure:n}=this;n.updated();const r=hye({$attrs:t,callBackBuilder:{manageAndEmit:i=>wye.call(this,i),emit:i=>w6.bind(this,i),manage:i=>x6.call(this,i)}}),o=e.nodeType===1?e:e.parentElement;this._sortable=new Er(o,r),this.targetDomElement=o,o.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:t}=this;return t||this.modelValue},getKey(){const{itemKey:t}=this;return typeof t=="function"?t:e=>e[t]}},watch:{$attrs:{handler(t){const{_sortable:e}=this;e&&y6(t).forEach(([n,r])=>{e.option(n,r)})},deep:!0}},methods:{getUnderlyingVm(t){return this.componentStructure.getUnderlyingVm(t)||null},getUnderlyingPotencialDraggableComponent(t){return t.__draggable_component__},emitChanges(t){l.nextTick(()=>this.$emit("change",t))},alterList(t){if(this.list){t(this.list);return}const e=[...this.modelValue];t(e),this.$emit("update:modelValue",e)},spliceList(){const t=e=>e.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=r=>r.splice(e,0,r.splice(t,1)[0]);this.alterList(n)},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getUnderlyingPotencialDraggableComponent(t);if(!n)return{component:n};const r=n.realList,o={list:r,component:n};return t!==e&&r?{...n.getUnderlyingVm(e)||{},...o}:o},getVmIndexFromDomIndex(t){return this.componentStructure.getVmIndexFromDomIndex(t,this.targetDomElement)},onDragStart(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),Dk=t.item},onDragAdd(t){const e=t.item._underlying_vm_;if(e===void 0)return;Tk(t.item);const n=this.getVmIndexFromDomIndex(t.newIndex);this.spliceList(n,0,e);const r={element:e,newIndex:n};this.emitChanges({added:r})},onDragRemove(t){if(d6(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){Tk(t.clone);return}const{index:e,element:n}=this.context;this.spliceList(e,1);const r={element:n,oldIndex:e};this.emitChanges({removed:r})},onDragUpdate(t){Tk(t.item),d6(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndexFromDomIndex(t.newIndex);this.updatePosition(e,n);const r={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex(t,e){if(!t.element)return 0;const n=[...e.to.children].filter(a=>a.style.display!=="none"),r=n.indexOf(e.related),o=t.component.getVmIndexFromDomIndex(r);return n.indexOf(Dk)!==-1||!e.willInsertAfter?o:o+1},onDragMove(t,e){const{move:n,realList:r}=this;if(!n||!r)return!0;const o=this.getRelatedContextFromMoveEvent(t),i=this.computeFutureIndex(o,t),a={...this.context,futureIndex:i},s={...t,relatedContext:o,draggedContext:a};return n(s,e)},onDragEnd(){Dk=null}}}),Mi=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Cye={class:"rounded-sm bg-white flex flex-col h-full p-2 sy_shadow dark:border-slate-800 dark:bg-black"},Eye={class:"flex items-center justify-between"},Tye={class:"font-bold text-lg"},Oye={class:"flex"},Dye={key:0,class:"h-[1px] bg-gray-100 w-full my-1 dark:bg-gray-400"},Aye=Object.freeze(Object.defineProperty({__proto__:null,default:Mi(Object.assign({name:"widget-card"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t){let e=t;e.designer.setVueIncetance(e.widget.id,l.getCurrentInstance());let n=l.computed(()=>e.widget.props);e.designer.eventHandle({eventType:"onCreated",widget:e.widget});const r=o=>{e.designer.eventHandle({eventType:"onButtonClick",value:o,widget:e.widget})};return l.onMounted(()=>{e.designer.eventHandle({eventType:"onMounted",widget:e.widget})}),(o,i)=>{const a=l.resolveComponent("el-button"),s=l.resolveComponent("commonContainer");return l.openBlock(),l.createElementBlock("div",Cye,[l.createElementVNode("div",Eye,[l.createElementVNode("div",Tye,l.toDisplayString(l.unref(n).title),1),l.createElementVNode("div",Oye,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(n).list,(u,c)=>(l.openBlock(),l.createBlock(a,{link:"",onClick:f=>r(u.value),key:c,size:"small"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(u.label),1)]),_:2},1032,["onClick"]))),128))])]),l.unref(n).hasSplitLine?(l.openBlock(),l.createElementBlock("div",Dye)):l.createCommentVNode("",!0),l.createVNode(l.unref(Kd),{ghostClass:"ghost",handle:".handle",list:l.unref(e).widget.widgetList,class:"min-h-20 content-start flex-wrap h-full flex-1",style:l.normalizeStyle({flexWrap:l.unref(n).flexWrap?"wrap":"nowrap",display:l.unref(n).flex?"flex":"block",flexDirection:l.unref(n).flexDirection,alignItems:l.unref(n).alignItems,justifyContent:l.unref(n).justifyContent}),group:{name:"dragGroup",put:!0},"item-key":"id"},{item:l.withCtx(({element:u})=>[l.createVNode(s,{designer:l.unref(e).designer,widget:u,parentWidget:l.unref(e).widget,style:l.normalizeStyle({...l.unref(e).designer.formatStyle(u)})},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent("widget-"+u.type),{ref:u.id,widget:u,designer:l.unref(e).designer},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.$slots,(c,f)=>l.renderSlot(o.$slots,f,{},void 0,!0)),256))]),_:2},1032,["widget","designer"]))]),_:2},1032,["designer","widget","parentWidget","style"])]),_:3},8,["list","style"])])}}}),[["__scopeId","data-v-502506a2"]])},Symbol.toStringTag,{value:"Module"})),Nye=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-cascader"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,l.getCurrentInstance());let i=l.computed(()=>r.widget.props);const a=l.computed({set:p=>{console.log();let h=null;p&&p.length>0&&(i.value.postLastLevel?h=p[p.length-1]:h=p.join(",")),i.value.isTableItem?o("update:modelValue",h):i.value.value=h},get:()=>{let p;if(i.value.isTableItem?p=r.modelValue||i.value.value:p=i.value.value,p&&typeof p=="string")if(i.value.postLastLevel&&!i.value.multiple){if(i.value.checkStrictly)return f(i.value.options,p);if(i.value.options)return c(i.value.options,p)}else return p.split(",");return null}}),s=async(p,h)=>{if(i.value.onLazyLoad){p.resolve=h;try{const g=await r.designer.eventHandle({eventType:"onLazyLoad",value:p,widget:r.widget,tableItemData:r.tableItemData});return}catch(g){console.error("LazyLoad error:",g),h([]);return}}},u=p=>{r.designer.eventHandle({eventType:"onChange",value:p,tableItemData:r.tableItemData,widget:r.widget})},c=(p,h)=>{for(let g of p)if(g[i.value.propsChildren]&&g[i.value.propsChildren].length){const y=c(g[i.value.propsChildren],h);if(y)return[g[i.value.propsKey],...y]}else if(g[i.value.propsKey]===h)return[g[i.value.propsKey]];return null},f=(p,h)=>{for(let g of p){if(g[i.value.propsKey]===h)return[g[i.value.propsKey]];if(g[i.value.propsChildren]&&g[i.value.propsChildren].length){const y=f(g[i.value.propsChildren],h);if(y)return[g[i.value.propsKey],...y]}}return null},d=p=>{i.value.options=p};return r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:p,httpRes:h})=>{p&&(i.value.options=p)}}),r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),l.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:u,setOption:d}),(p,h)=>{const g=l.resolveComponent("el-cascader"),y=l.resolveComponent("common-widget-label-container");return l.openBlock(),l.createBlock(y,{props:l.unref(i)},{default:l.withCtx(()=>[l.createVNode(g,{class:"w-full",modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=w=>a.value=w),options:l.unref(i).options,size:l.unref(i).size,disabled:l.unref(i).isDetail||l.unref(i).disabled,clearable:l.unref(i).clearable,filterable:"","show-all-levels":l.unref(i).showAllLevels,"collapse-tags":"",props:{label:l.unref(i).propsLabel,value:l.unref(i).propsKey,children:l.unref(i).propsChildren,checkStrictly:l.unref(i).checkStrictly,multiple:l.unref(i).multiple,lazy:l.unref(i).lazy,lazyLoad:s},onChange:u},null,8,["modelValue","options","size","disabled","clearable","show-all-levels","props"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Mye=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-checkCode"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,l.getCurrentInstance());let i=l.computed(()=>r.widget.props);const a=l.ref(!1),s=l.ref(i.value.timeSec),u=l.computed({set:g=>{i.value.isTableItem?o("update:modelValue",g):i.value.value=g},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),c=()=>{r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:g,httpRes:y})=>{if(g===!0){a.value=!0;let w=setInterval(()=>{s.value--,s.value<=0&&(clearInterval(w),s.value=i.value.timeSec,a.value=!1)},1e3)}}})},f=g=>{i.value.isTrim&&(i.value.value=r.designer.$utils.trim(g)),r.designer.eventHandle({eventType:"onChange",value:i.value.value,widget:r.widget})},d=g=>{r.designer.eventHandle({eventType:"onInput",value:g,widget:r.widget})},p=()=>{r.designer.eventHandle({eventType:"onFocus",value:r.widget.props.value,widget:r.widget})},h=g=>{r.designer.eventHandle({eventType:"onBlur",value:r.widget.props.value,widget:r.widget})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),l.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({sendCode:c,changeHandle:f}),(g,y)=>{const w=l.resolveComponent("el-button"),x=l.resolveComponent("el-input"),S=l.resolveComponent("common-widget-label-container");return l.openBlock(),l.createBlock(S,{props:l.unref(i)},{default:l.withCtx(()=>[l.createVNode(x,{onChange:f,onInput:d,onFocus:p,modelValue:u.value,"onUpdate:modelValue":y[0]||(y[0]=E=>u.value=E),type:l.unref(i).type,size:l.unref(i).size,onBlur:h,placeholder:l.unref(i).placeholder,disabled:l.unref(i).disabled,readonly:l.unref(i).readonly,rows:l.unref(i).rows,maxlength:l.unref(i).maxlength,"show-word-limit":l.unref(i).showLimit},{append:l.withCtx(()=>[l.createVNode(w,{onClick:c,disabled:a.value,loading:a.value,class:"flex items-center"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.value?`重新发送(${s.value}s)`:"发送验证码"),1)]),_:1},8,["disabled","loading"])]),_:1},8,["modelValue","type","size","placeholder","disabled","readonly","rows","maxlength","show-word-limit"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Iye=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-checkbox"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;r.designer.setVueIncetance(r.widget.id,l.getCurrentInstance());const o=n;let i=l.computed(()=>r.widget.props);const a=l.computed({set:u=>{i.value.isTableItem?o("update:modelValue",u):i.value.value=u},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),s=u=>{r.designer.eventHandle({eventType:"onChange",value:u,widget:r.widget,tableItemData:r.tableItemData})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:u,httpRes:c})=>{u&&(i.value.list=u)}}),l.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:s}),(u,c)=>{const f=l.resolveComponent("el-checkbox"),d=l.resolveComponent("el-checkbox-button"),p=l.resolveComponent("el-checkbox-group"),h=l.resolveComponent("common-widget-label-container");return l.openBlock(),l.createBlock(h,{props:l.unref(i)},{default:l.withCtx(()=>[l.createVNode(p,{disabled:l.unref(i).isDetail||l.unref(i).disabled,size:l.unref(i).size,onChange:s,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=g=>a.value=g)},{default:l.withCtx(()=>[l.unref(i).isButton?l.createCommentVNode("",!0):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(l.unref(i).list,(g,y)=>(l.openBlock(),l.createBlock(f,{class:"w-full",key:g.value,style:l.normalizeStyle({width:l.unref(i).isBlock?"":"auto"}),value:g.value},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(g.label),1)]),_:2},1032,["style","value"]))),128)),l.unref(i).isButton?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(l.unref(i).list,(g,y)=>(l.openBlock(),l.createBlock(d,{key:g.value,value:g.value,label:g.label},null,8,["value","label"]))),128)):l.createCommentVNode("",!0)]),_:1},8,["disabled","size","modelValue"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),kye={class:"flex w-full h-full bg-[#171717]","element-loading-text":"编辑器加载中","element-loading-background":"rgba(0, 0, 0, 1)"},Pye={key:0,class:"tree_wrap flex-none w-[320px] border"},Vye={class:"h-full w-full flex flex-col flex-1"},Rye={key:0,class:"head py-2 px-2 box-border bg-[#191c20]"},Lye={key:0,class:"text-[#d25462] italic"},Bye={class:"text-[#d4d4d4]"},Fye={key:1,class:"footer text-[#ffd700] bg-[#2f3129] py-2 px-2"},Ak={__name:"editor",props:{modelValue:[String,null],designer:{type:Object,default:{}},width:{type:[String],default:"100%"},height:{type:[String],default:"100%"},language:{type:[String],default:"javascript"},theme:{type:[String],default:"vs-dark"},params:{type:[Array],default:[]},minimap:{type:[Boolean],default:!0},pure:{type:[Boolean],default:!1},tabSize:{type:[Number],default:4},isAsync:{type:[Boolean],default:!0},fontSize:{type:[Number],default:12}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=l.ref(null),a=l.ref(!0);let s=null;l.onMounted(()=>{require.config({paths:{vs:"http://cdn.sunform.tech/libs/monaco-editor/min/vs","vs/language/zh-hans":"http://cdn.sunform.tech/libs/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.zh-cn.min.js"}}),require(["vs/editor/editor.main"],function(){window.MonacoEnvironment={getWorkerUrl:function(h,g){return g==="json"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/json/jsonWorker.js":g==="css"||g==="scss"||g==="less"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/css/cssWorker.js":g==="html"||g==="handlebars"||g==="razor"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/html/htmlWorker.js":g==="typescript"||g==="javascript"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/typescript/tsWorker.js":"http://cdn.sunform.tech/libs/monaco-editor/min/vs/base/worker/workerMain.js"}},i.value?(s=monaco.editor.create(i.value,{value:r.modelValue||"",language:r.language,theme:r.theme,automaticLayout:!0,minimap:{enabled:r.minimap},folding:!0,foldingStrategy:"auto",renderLineHighlight:"all",scrollBeyondLastLine:!1,quickSuggestions:!0,suggestOnTriggerCharacters:!0,parameterHints:{enabled:!0},autoClosingBrackets:"always",autoClosingQuotes:"always",guides:{indentation:!0},autoIndent:"full",formatOnType:!0,formatOnPaste:!0,wordWrap:"off",tabSize:r.tabSize,locale:"zh-cn",fontSize:r.fontSize,suggest:{preview:!0}}),s.addAction({id:"show-component-info",label:"显示组件方法",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.I],contextMenuGroupId:"operation",contextMenuOrder:1.5,run:function(h){const g=h.getModel(),y=h.getSelection(),w=g.getWordAtPosition(y.getStartPosition());w&&w.word.startsWith("datatable_")&&(console.log("组件名称:",w.word),showComponentInfo(w.word))}}),s.onDidChangeModelContent(h=>{o("update:modelValue",s.getValue())}),setTimeout(()=>{f(),a.value=!1},20),l.watch(()=>r.modelValue,h=>{},{deep:!0,immediate:!0}),monaco.languages.registerCompletionItemProvider("javascript",{provideCompletionItems:function(h,g){return{suggestions:[{label:"clog",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"console.log( $1 );",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"打印语句"},{label:"jp",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"console.log(JSON.parse(JSON.stringify( $1 )))",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"打印原始对象"},{label:"each",kind:monaco.languages.CompletionItemKind.Snippet,insertText:`$1.forEach((e,i)=>{
|
6
|
+
*/function UH(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Nf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?UH(Object(n),!0).forEach(function(r){Nme(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):UH(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function tT(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tT=function(e){return typeof e}:tT=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tT(t)}function Nme(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yd(){return Yd=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Yd.apply(this,arguments)}function Mme(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Ime(t,e){if(t==null)return{};var n=Mme(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var kme="1.14.0";function qd(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Xd=qd(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Fw=qd(/Edge/i),GH=qd(/firefox/i),jw=qd(/safari/i)&&!qd(/chrome/i)&&!qd(/android/i),YH=qd(/iP(ad|od|hone)/i),Pme=qd(/chrome/i)&&qd(/android/i),qH={capture:!1,passive:!1};function Ho(t,e,n){t.addEventListener(e,n,!Xd&&qH)}function Mo(t,e,n){t.removeEventListener(e,n,!Xd&&qH)}function nT(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function Vme(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Mf(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&nT(t,e):nT(t,e))||r&&t===n)return t;if(t===n)break}while(t=Vme(t))}return null}var XH=/\s+/g;function eu(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(XH," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(XH," ")}}function Cr(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function Qy(t,e){var n="";if(typeof t=="string")n=t;else do{var r=Cr(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function KH(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function If(){var t=document.scrollingElement;return t||document.documentElement}function Pa(t,e,n,r,o){if(!(!t.getBoundingClientRect&&t!==window)){var i,a,s,u,c,f,d;if(t!==window&&t.parentNode&&t!==If()?(i=t.getBoundingClientRect(),a=i.top,s=i.left,u=i.bottom,c=i.right,f=i.height,d=i.width):(a=0,s=0,u=window.innerHeight,c=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!Xd))do if(o&&o.getBoundingClientRect&&(Cr(o,"transform")!=="none"||n&&Cr(o,"position")!=="static")){var p=o.getBoundingClientRect();a-=p.top+parseInt(Cr(o,"border-top-width")),s-=p.left+parseInt(Cr(o,"border-left-width")),u=a+i.height,c=s+i.width;break}while(o=o.parentNode);if(r&&t!==window){var h=Qy(o||t),g=h&&h.a,y=h&&h.d;h&&(a/=y,s/=g,d/=g,f/=y,u=a+f,c=s+d)}return{top:a,left:s,bottom:u,right:c,width:d,height:f}}}function ZH(t,e,n){for(var r=fh(t,!0),o=Pa(t)[e];r;){var i=Pa(r)[n],a=void 0;if(a=o>=i,!a)return r;if(r===If())break;r=fh(r,!1)}return!1}function eb(t,e,n,r){for(var o=0,i=0,a=t.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==Er.ghost&&(r||a[i]!==Er.dragged)&&Mf(a[i],n.draggable,t,!1)){if(o===e)return a[i];o++}i++}return null}function ck(t,e){for(var n=t.lastElementChild;n&&(n===Er.ghost||Cr(n,"display")==="none"||e&&!nT(n,e));)n=n.previousElementSibling;return n||null}function Fu(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Er.clone&&(!e||nT(t,e))&&n++;return n}function JH(t){var e=0,n=0,r=If();if(t)do{var o=Qy(t),i=o.a,a=o.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function Rme(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function fh(t,e){if(!t||!t.getBoundingClientRect)return If();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Cr(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return If();if(r||e)return n;r=!0}}while(n=n.parentNode);return If()}function Lme(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function fk(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var $w;function QH(t,e){return function(){if(!$w){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),$w=setTimeout(function(){$w=void 0},e)}}}function Bme(){clearTimeout($w),$w=void 0}function e6(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function t6(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var tu="Sortable"+new Date().getTime();function Fme(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(Cr(o,"display")==="none"||o===Er.ghost)){t.push({target:o,rect:Pa(o)});var i=Nf({},t[t.length-1].rect);if(o.thisAnimationDuration){var a=Qy(o,!0);a&&(i.top-=a.f,i.left-=a.e)}o.fromRect=i}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(Rme(t,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var i=!1,a=0;t.forEach(function(s){var u=0,c=s.target,f=c.fromRect,d=Pa(c),p=c.prevFromRect,h=c.prevToRect,g=s.rect,y=Qy(c,!0);y&&(d.top-=y.f,d.left-=y.e),c.toRect=d,c.thisAnimationDuration&&fk(p,d)&&!fk(f,d)&&(g.top-d.top)/(g.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(u=$me(g,p,h,o.options)),fk(d,f)||(c.prevFromRect=f,c.prevToRect=d,u||(u=o.options.animation),o.animate(c,g,d,u)),u&&(i=!0,a=Math.max(a,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(e),i?e=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),t=[]},animate:function(r,o,i,a){if(a){Cr(r,"transition",""),Cr(r,"transform","");var s=Qy(this.el),u=s&&s.a,c=s&&s.d,f=(o.left-i.left)/(u||1),d=(o.top-i.top)/(c||1);r.animatingX=!!f,r.animatingY=!!d,Cr(r,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=jme(r),Cr(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),Cr(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Cr(r,"transition",""),Cr(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function jme(t){return t.offsetWidth}function $me(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var tb=[],dk={initializeByDefault:!0},zw={mount:function(e){for(var n in dk)dk.hasOwnProperty(n)&&!(n in e)&&(e[n]=dk[n]);tb.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),tb.push(e)},pluginEvent:function(e,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var i=e+"Global";tb.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][i]&&n[a.pluginName][i](Nf({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](Nf({sortable:n},r)))})},initializePlugins:function(e,n,r,o){tb.forEach(function(s){var u=s.pluginName;if(!(!e.options[u]&&!s.initializeByDefault)){var c=new s(e,n,e.options);c.sortable=e,c.options=e.options,e[u]=c,Yd(r,c.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);typeof a<"u"&&(e.options[i]=a)}},getEventProperties:function(e,n){var r={};return tb.forEach(function(o){typeof o.eventProperties=="function"&&Yd(r,o.eventProperties.call(n[o.pluginName],e))}),r},modifyOption:function(e,n,r){var o;return tb.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(e[i.pluginName],r))}),o}};function zme(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,i=t.cloneEl,a=t.toEl,s=t.fromEl,u=t.oldIndex,c=t.newIndex,f=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,h=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[tu],!!e){var y,w=e.options,x="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Xd&&!Fw?y=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(r,!0,!0)),y.to=a||n,y.from=s||n,y.item=o||n,y.clone=i,y.oldIndex=u,y.newIndex=c,y.oldDraggableIndex=f,y.newDraggableIndex=d,y.originalEvent=p,y.pullMode=h?h.lastPutMode:void 0;var S=Nf(Nf({},g),zw.getEventProperties(r,e));for(var E in S)y[E]=S[E];n&&n.dispatchEvent(y),w[x]&&w[x].call(e,y)}}var Hme=["evt"],Ds=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,i=Ime(r,Hme);zw.pluginEvent.bind(Er)(e,n,Nf({dragEl:wn,parentEl:qi,ghostEl:Gr,rootEl:Ni,nextEl:cv,lastDownEl:rT,cloneEl:Xi,cloneHidden:dh,dragStarted:Ww,putSortable:fl,activeSortable:Er.active,originalEvent:o,oldIndex:nb,oldDraggableIndex:Hw,newIndex:nu,newDraggableIndex:ph,hideGhostForTarget:s6,unhideGhostForTarget:u6,cloneNowHidden:function(){dh=!0},cloneNowShown:function(){dh=!1},dispatchSortableEvent:function(s){Jl({sortable:n,name:s,originalEvent:o})}},i))};function Jl(t){zme(Nf({putSortable:fl,cloneEl:Xi,targetEl:wn,rootEl:Ni,oldIndex:nb,oldDraggableIndex:Hw,newIndex:nu,newDraggableIndex:ph},t))}var wn,qi,Gr,Ni,cv,rT,Xi,dh,nb,nu,Hw,ph,oT,fl,rb=!1,iT=!1,aT=[],fv,kc,pk,hk,n6,r6,Ww,ob,Uw,Gw=!1,lT=!1,sT,Ml,gk=[],vk=!1,uT=[],cT=typeof document<"u",fT=YH,o6=Fw||Xd?"cssFloat":"float",Wme=cT&&!Pme&&!YH&&"draggable"in document.createElement("div"),i6=function(){if(cT){if(Xd)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),a6=function(e,n){var r=Cr(e),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=eb(e,0,n),a=eb(e,1,n),s=i&&Cr(i),u=a&&Cr(a),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Pa(i).width,f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Pa(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&s.float!=="none"){var d=s.float==="left"?"left":"right";return a&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return i&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||c>=o&&r[o6]==="none"||a&&r[o6]==="none"&&c+f>o)?"vertical":"horizontal"},Ume=function(e,n,r){var o=r?e.left:e.top,i=r?e.right:e.bottom,a=r?e.width:e.height,s=r?n.left:n.top,u=r?n.right:n.bottom,c=r?n.width:n.height;return o===s||i===u||o+a/2===s+c/2},Gme=function(e,n){var r;return aT.some(function(o){var i=o[tu].options.emptyInsertThreshold;if(!(!i||ck(o))){var a=Pa(o),s=e>=a.left-i&&e<=a.right+i,u=n>=a.top-i&&n<=a.bottom+i;if(s&&u)return r=o}}),r},l6=function(e){function n(i,a){return function(s,u,c,f){var d=s.options.group.name&&u.options.group.name&&s.options.group.name===u.options.group.name;if(i==null&&(a||d))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(s,u,c,f),a)(s,u,c,f);var p=(a?s:u).options.group.name;return i===!0||typeof i=="string"&&i===p||i.join&&i.indexOf(p)>-1}}var r={},o=e.group;(!o||tT(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,e.group=r},s6=function(){!i6&&Gr&&Cr(Gr,"display","none")},u6=function(){!i6&&Gr&&Cr(Gr,"display","")};cT&&document.addEventListener("click",function(t){if(iT)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),iT=!1,!1},!0);var dv=function(e){if(wn){e=e.touches?e.touches[0]:e;var n=Gme(e.clientX,e.clientY);if(n){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[tu]._onDragOver(r)}}},Yme=function(e){wn&&wn.parentNode[tu]._isOutsideThisEl(e.target)};function Er(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Yd({},e),t[tu]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return a6(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,s){a.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:Er.supportPointer!==!1&&"PointerEvent"in window&&!jw,emptyInsertThreshold:5};zw.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);l6(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:Wme,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Ho(t,"pointerdown",this._onTapStart):(Ho(t,"mousedown",this._onTapStart),Ho(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ho(t,"dragover",this),Ho(t,"dragenter",this)),aT.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Yd(this,Fme())}Er.prototype={constructor:Er,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ob=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,wn):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,o=this.options,i=o.preventOnFilter,a=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(s||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,f=o.filter;if(tye(r),!wn&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||o.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&jw&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Mf(u,o.draggable,r,!1),!(u&&u.animated)&&rT!==u)){if(nb=Fu(u),Hw=Fu(u,o.draggable),typeof f=="function"){if(f.call(this,e,u,this)){Jl({sortable:n,rootEl:c,name:"filter",targetEl:u,toEl:r,fromEl:r}),Ds("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=Mf(c,d.trim(),r,!1),d)return Jl({sortable:n,rootEl:d,name:"filter",targetEl:u,fromEl:r,toEl:r}),Ds("filter",n,{evt:e}),!0}),f)){i&&e.cancelable&&e.preventDefault();return}o.handle&&!Mf(c,o.handle,r,!1)||this._prepareDragStart(e,s,u)}}},_prepareDragStart:function(e,n,r){var o=this,i=o.el,a=o.options,s=i.ownerDocument,u;if(r&&!wn&&r.parentNode===i){var c=Pa(r);if(Ni=i,wn=r,qi=wn.parentNode,cv=wn.nextSibling,rT=r,oT=a.group,Er.dragged=wn,fv={target:wn,clientX:(n||e).clientX,clientY:(n||e).clientY},n6=fv.clientX-c.left,r6=fv.clientY-c.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,wn.style["will-change"]="all",u=function(){if(Ds("delayEnded",o,{evt:e}),Er.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!GH&&o.nativeDraggable&&(wn.draggable=!0),o._triggerDragStart(e,n),Jl({sortable:o,name:"choose",originalEvent:e}),eu(wn,a.chosenClass,!0)},a.ignore.split(",").forEach(function(f){KH(wn,f.trim(),mk)}),Ho(s,"dragover",dv),Ho(s,"mousemove",dv),Ho(s,"touchmove",dv),Ho(s,"mouseup",o._onDrop),Ho(s,"touchend",o._onDrop),Ho(s,"touchcancel",o._onDrop),GH&&this.nativeDraggable&&(this.options.touchStartThreshold=4,wn.draggable=!0),Ds("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Fw||Xd))){if(Er.eventCanceled){this._onDrop();return}Ho(s,"mouseup",o._disableDelayedDrag),Ho(s,"touchend",o._disableDelayedDrag),Ho(s,"touchcancel",o._disableDelayedDrag),Ho(s,"mousemove",o._delayedDragTouchMoveHandler),Ho(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&Ho(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(u,a.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(){wn&&mk(wn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Mo(e,"mouseup",this._disableDelayedDrag),Mo(e,"touchend",this._disableDelayedDrag),Mo(e,"touchcancel",this._disableDelayedDrag),Mo(e,"mousemove",this._delayedDragTouchMoveHandler),Mo(e,"touchmove",this._delayedDragTouchMoveHandler),Mo(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?Ho(document,"pointermove",this._onTouchMove):n?Ho(document,"touchmove",this._onTouchMove):Ho(document,"mousemove",this._onTouchMove):(Ho(wn,"dragend",this),Ho(Ni,"dragstart",this._onDragStart));try{document.selection?pT(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(rb=!1,Ni&&wn){Ds("dragStarted",this,{evt:n}),this.nativeDraggable&&Ho(document,"dragover",Yme);var r=this.options;!e&&eu(wn,r.dragClass,!1),eu(wn,r.ghostClass,!0),Er.active=this,e&&this._appendGhost(),Jl({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(kc){this._lastX=kc.clientX,this._lastY=kc.clientY,s6();for(var e=document.elementFromPoint(kc.clientX,kc.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(kc.clientX,kc.clientY),e!==n);)n=e;if(wn.parentNode[tu]._isOutsideThisEl(e),n)do{if(n[tu]){var r=void 0;if(r=n[tu]._onDragOver({clientX:kc.clientX,clientY:kc.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);u6()}},_onTouchMove:function(e){if(fv){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,i=e.touches?e.touches[0]:e,a=Gr&&Qy(Gr,!0),s=Gr&&a&&a.a,u=Gr&&a&&a.d,c=fT&&Ml&&JH(Ml),f=(i.clientX-fv.clientX+o.x)/(s||1)+(c?c[0]-gk[0]:0)/(s||1),d=(i.clientY-fv.clientY+o.y)/(u||1)+(c?c[1]-gk[1]:0)/(u||1);if(!Er.active&&!rb){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(Gr){a?(a.e+=f-(pk||0),a.f+=d-(hk||0)):a={a:1,b:0,c:0,d:1,e:f,f:d};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");Cr(Gr,"webkitTransform",p),Cr(Gr,"mozTransform",p),Cr(Gr,"msTransform",p),Cr(Gr,"transform",p),pk=f,hk=d,kc=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Gr){var e=this.options.fallbackOnBody?document.body:Ni,n=Pa(wn,!0,fT,!0,e),r=this.options;if(fT){for(Ml=e;Cr(Ml,"position")==="static"&&Cr(Ml,"transform")==="none"&&Ml!==document;)Ml=Ml.parentNode;Ml!==document.body&&Ml!==document.documentElement?(Ml===document&&(Ml=If()),n.top+=Ml.scrollTop,n.left+=Ml.scrollLeft):Ml=If(),gk=JH(Ml)}Gr=wn.cloneNode(!0),eu(Gr,r.ghostClass,!1),eu(Gr,r.fallbackClass,!0),eu(Gr,r.dragClass,!0),Cr(Gr,"transition",""),Cr(Gr,"transform",""),Cr(Gr,"box-sizing","border-box"),Cr(Gr,"margin",0),Cr(Gr,"top",n.top),Cr(Gr,"left",n.left),Cr(Gr,"width",n.width),Cr(Gr,"height",n.height),Cr(Gr,"opacity","0.8"),Cr(Gr,"position",fT?"absolute":"fixed"),Cr(Gr,"zIndex","100000"),Cr(Gr,"pointerEvents","none"),Er.ghost=Gr,e.appendChild(Gr),Cr(Gr,"transform-origin",n6/parseInt(Gr.style.width)*100+"% "+r6/parseInt(Gr.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,o=e.dataTransfer,i=r.options;if(Ds("dragStart",this,{evt:e}),Er.eventCanceled){this._onDrop();return}Ds("setupClone",this),Er.eventCanceled||(Xi=t6(wn),Xi.draggable=!1,Xi.style["will-change"]="",this._hideClone(),eu(Xi,this.options.chosenClass,!1),Er.clone=Xi),r.cloneId=pT(function(){Ds("clone",r),!Er.eventCanceled&&(r.options.removeCloneOnHide||Ni.insertBefore(Xi,wn),r._hideClone(),Jl({sortable:r,name:"clone"}))}),!n&&eu(wn,i.dragClass,!0),n?(iT=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Mo(document,"mouseup",r._onDrop),Mo(document,"touchend",r._onDrop),Mo(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(r,o,wn)),Ho(document,"drop",r),Cr(wn,"transform","translateZ(0)")),rb=!0,r._dragStartId=pT(r._dragStarted.bind(r,n,e)),Ho(document,"selectstart",r),Ww=!0,jw&&Cr(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,o,i,a,s=this.options,u=s.group,c=Er.active,f=oT===u,d=s.sort,p=fl||c,h,g=this,y=!1;if(vk)return;function w(Z,ee){Ds(Z,g,Nf({evt:e,isOwner:f,axis:h?"vertical":"horizontal",revert:a,dragRect:o,targetRect:i,canSort:d,fromSortable:p,target:r,completed:S,onMove:function(ge,Ie){return dT(Ni,n,wn,o,ge,Pa(ge),e,Ie)},changed:E},ee))}function x(){w("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function S(Z){return w("dragOverCompleted",{insertion:Z}),Z&&(f?c._hideClone():c._showClone(g),g!==p&&(eu(wn,fl?fl.options.ghostClass:c.options.ghostClass,!1),eu(wn,s.ghostClass,!0)),fl!==g&&g!==Er.active?fl=g:g===Er.active&&fl&&(fl=null),p===g&&(g._ignoreWhileAnimating=r),g.animateAll(function(){w("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r===wn&&!wn.animated||r===n&&!r.animated)&&(ob=null),!s.dragoverBubble&&!e.rootEl&&r!==document&&(wn.parentNode[tu]._isOutsideThisEl(e.target),!Z&&dv(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),y=!0}function E(){nu=Fu(wn),ph=Fu(wn,s.draggable),Jl({sortable:g,name:"change",toEl:n,newIndex:nu,newDraggableIndex:ph,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=Mf(r,s.draggable,n,!0),w("dragOver"),Er.eventCanceled)return y;if(wn.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r)return S(!1);if(iT=!1,c&&!s.disabled&&(f?d||(a=qi!==Ni):fl===this||(this.lastPutMode=oT.checkPull(this,c,wn,e))&&u.checkPut(this,c,wn,e))){if(h=this._getDirection(e,r)==="vertical",o=Pa(wn),w("dragOverValid"),Er.eventCanceled)return y;if(a)return qi=Ni,x(),this._hideClone(),w("revert"),Er.eventCanceled||(cv?Ni.insertBefore(wn,cv):Ni.appendChild(wn)),S(!0);var A=ck(n,s.draggable);if(!A||Zme(e,h,this)&&!A.animated){if(A===wn)return S(!1);if(A&&n===e.target&&(r=A),r&&(i=Pa(r)),dT(Ni,n,wn,o,r,i,e,!!r)!==!1)return x(),n.appendChild(wn),qi=n,E(),S(!0)}else if(A&&Kme(e,h,this)){var I=eb(n,0,s,!0);if(I===wn)return S(!1);if(r=I,i=Pa(r),dT(Ni,n,wn,o,r,i,e,!1)!==!1)return x(),n.insertBefore(wn,I),qi=n,E(),S(!0)}else if(r.parentNode===n){i=Pa(r);var N=0,k,P=wn.parentNode!==n,V=!Ume(wn.animated&&wn.toRect||o,r.animated&&r.toRect||i,h),F=h?"top":"left",$=ZH(r,"top","top")||ZH(wn,"top","top"),B=$?$.scrollTop:void 0;ob!==r&&(k=i[F],Gw=!1,lT=!V&&s.invertSwap||P),N=Jme(e,r,i,h,V?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,lT,ob===r);var R;if(N!==0){var W=Fu(wn);do W-=N,R=qi.children[W];while(R&&(Cr(R,"display")==="none"||R===Gr))}if(N===0||R===r)return S(!1);ob=r,Uw=N;var H=r.nextElementSibling,J=!1;J=N===1;var ne=dT(Ni,n,wn,o,r,i,e,J);if(ne!==!1)return(ne===1||ne===-1)&&(J=ne===1),vk=!0,setTimeout(Xme,30),x(),J&&!H?n.appendChild(wn):r.parentNode.insertBefore(wn,J?H:r),$&&e6($,0,B-$.scrollTop),qi=wn.parentNode,k!==void 0&&!lT&&(sT=Math.abs(k-Pa(r)[F])),E(),S(!0)}if(n.contains(wn))return S(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Mo(document,"mousemove",this._onTouchMove),Mo(document,"touchmove",this._onTouchMove),Mo(document,"pointermove",this._onTouchMove),Mo(document,"dragover",dv),Mo(document,"mousemove",dv),Mo(document,"touchmove",dv)},_offUpEvents:function(){var e=this.el.ownerDocument;Mo(e,"mouseup",this._onDrop),Mo(e,"touchend",this._onDrop),Mo(e,"pointerup",this._onDrop),Mo(e,"touchcancel",this._onDrop),Mo(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(nu=Fu(wn),ph=Fu(wn,r.draggable),Ds("drop",this,{evt:e}),qi=wn&&wn.parentNode,nu=Fu(wn),ph=Fu(wn,r.draggable),Er.eventCanceled){this._nulling();return}rb=!1,lT=!1,Gw=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),yk(this.cloneId),yk(this._dragStartId),this.nativeDraggable&&(Mo(document,"drop",this),Mo(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),jw&&Cr(document.body,"user-select",""),Cr(wn,"transform",""),e&&(Ww&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),Gr&&Gr.parentNode&&Gr.parentNode.removeChild(Gr),(Ni===qi||fl&&fl.lastPutMode!=="clone")&&Xi&&Xi.parentNode&&Xi.parentNode.removeChild(Xi),wn&&(this.nativeDraggable&&Mo(wn,"dragend",this),mk(wn),wn.style["will-change"]="",Ww&&!rb&&eu(wn,fl?fl.options.ghostClass:this.options.ghostClass,!1),eu(wn,this.options.chosenClass,!1),Jl({sortable:this,name:"unchoose",toEl:qi,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ni!==qi?(nu>=0&&(Jl({rootEl:qi,name:"add",toEl:qi,fromEl:Ni,originalEvent:e}),Jl({sortable:this,name:"remove",toEl:qi,originalEvent:e}),Jl({rootEl:qi,name:"sort",toEl:qi,fromEl:Ni,originalEvent:e}),Jl({sortable:this,name:"sort",toEl:qi,originalEvent:e})),fl&&fl.save()):nu!==nb&&nu>=0&&(Jl({sortable:this,name:"update",toEl:qi,originalEvent:e}),Jl({sortable:this,name:"sort",toEl:qi,originalEvent:e})),Er.active&&((nu==null||nu===-1)&&(nu=nb,ph=Hw),Jl({sortable:this,name:"end",toEl:qi,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ds("nulling",this),Ni=wn=qi=Gr=cv=Xi=rT=dh=fv=kc=Ww=nu=ph=nb=Hw=ob=Uw=fl=oT=Er.dragged=Er.ghost=Er.clone=Er.active=null,uT.forEach(function(e){e.checked=!0}),uT.length=pk=hk=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":wn&&(this._onDragOver(e),qme(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,o=0,i=r.length,a=this.options;o<i;o++)n=r[o],Mf(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||eye(n));return e},sort:function(e,n){var r={},o=this.el;this.toArray().forEach(function(i,a){var s=o.children[a];Mf(s,this.options.draggable,o,!1)&&(r[i]=s)},this),n&&this.captureAnimationState(),e.forEach(function(i){r[i]&&(o.removeChild(r[i]),o.appendChild(r[i]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return Mf(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var o=zw.modifyOption(this,e,n);typeof o<"u"?r[e]=o:r[e]=n,e==="group"&&l6(r)},destroy:function(){Ds("destroy",this);var e=this.el;e[tu]=null,Mo(e,"mousedown",this._onTapStart),Mo(e,"touchstart",this._onTapStart),Mo(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Mo(e,"dragover",this),Mo(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),aT.splice(aT.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!dh){if(Ds("hideClone",this),Er.eventCanceled)return;Cr(Xi,"display","none"),this.options.removeCloneOnHide&&Xi.parentNode&&Xi.parentNode.removeChild(Xi),dh=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(dh){if(Ds("showClone",this),Er.eventCanceled)return;wn.parentNode==Ni&&!this.options.group.revertClone?Ni.insertBefore(Xi,wn):cv?Ni.insertBefore(Xi,cv):Ni.appendChild(Xi),this.options.group.revertClone&&this.animate(wn,Xi),Cr(Xi,"display",""),dh=!1}}};function qme(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function dT(t,e,n,r,o,i,a,s){var u,c=t[tu],f=c.options.onMove,d;return window.CustomEvent&&!Xd&&!Fw?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=e,u.from=t,u.dragged=n,u.draggedRect=r,u.related=o||e,u.relatedRect=i||Pa(e),u.willInsertAfter=s,u.originalEvent=a,t.dispatchEvent(u),f&&(d=f.call(c,u,a)),d}function mk(t){t.draggable=!1}function Xme(){vk=!1}function Kme(t,e,n){var r=Pa(eb(n.el,0,n.options,!0)),o=10;return e?t.clientX<r.left-o||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-o||t.clientY<r.bottom&&t.clientX<r.left}function Zme(t,e,n){var r=Pa(ck(n.el,n.options.draggable)),o=10;return e?t.clientX>r.right+o||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+o}function Jme(t,e,n,r,o,i,a,s){var u=r?t.clientY:t.clientX,c=r?n.height:n.width,f=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!a){if(s&&sT<c*o){if(!Gw&&(Uw===1?u>f+c*i/2:u<d-c*i/2)&&(Gw=!0),Gw)p=!0;else if(Uw===1?u<f+sT:u>d-sT)return-Uw}else if(u>f+c*(1-o)/2&&u<d-c*(1-o)/2)return Qme(e)}return p=p||a,p&&(u<f+c*i/2||u>d-c*i/2)?u>f+c/2?1:-1:0}function Qme(t){return Fu(wn)<Fu(t)?1:-1}function eye(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function tye(t){uT.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&uT.push(r)}}function pT(t){return setTimeout(t,0)}function yk(t){return clearTimeout(t)}cT&&Ho(document,"touchmove",function(t){(Er.active||rb)&&t.cancelable&&t.preventDefault()}),Er.utils={on:Ho,off:Mo,css:Cr,find:KH,is:function(e,n){return!!Mf(e,n,e,!1)},extend:Lme,throttle:QH,closest:Mf,toggleClass:eu,clone:t6,index:Fu,nextTick:pT,cancelNextTick:yk,detectDirection:a6,getChild:eb},Er.get=function(t){return t[tu]},Er.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Er.utils=Nf(Nf({},Er.utils),r.utils)),zw.mount(r)})},Er.create=function(t,e){return new Er(t,e)},Er.version=kme;var wa=[],Yw,bk,_k=!1,wk,xk,hT,qw;function nye(){function t(){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 t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?Ho(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ho(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Ho(document,"touchmove",this._handleFallbackAutoScroll):Ho(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Mo(document,"dragover",this._handleAutoScroll):(Mo(document,"pointermove",this._handleFallbackAutoScroll),Mo(document,"touchmove",this._handleFallbackAutoScroll),Mo(document,"mousemove",this._handleFallbackAutoScroll)),c6(),gT(),Bme()},nulling:function(){hT=bk=Yw=_k=qw=wk=xk=null,wa.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,i=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(i,a);if(hT=n,r||this.options.forceAutoScrollFallback||Fw||Xd||jw){Sk(n,this.options,s,r);var u=fh(s,!0);_k&&(!qw||i!==wk||a!==xk)&&(qw&&c6(),qw=setInterval(function(){var c=fh(document.elementFromPoint(i,a),!0);c!==u&&(u=c,gT()),Sk(n,o.options,c,r)},10),wk=i,xk=a)}else{if(!this.options.bubbleScroll||fh(s,!0)===If()){gT();return}Sk(n,this.options,fh(s,!1),!1)}}},Yd(t,{pluginName:"scroll",initializeByDefault:!0})}function gT(){wa.forEach(function(t){clearInterval(t.pid)}),wa=[]}function c6(){clearInterval(qw)}var Sk=QH(function(t,e,n,r){if(e.scroll){var o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,s=e.scrollSpeed,u=If(),c=!1,f;bk!==n&&(bk=n,gT(),Yw=e.scroll,f=e.scrollFn,Yw===!0&&(Yw=fh(n,!0)));var d=0,p=Yw;do{var h=p,g=Pa(h),y=g.top,w=g.bottom,x=g.left,S=g.right,E=g.width,A=g.height,I=void 0,N=void 0,k=h.scrollWidth,P=h.scrollHeight,V=Cr(h),F=h.scrollLeft,$=h.scrollTop;h===u?(I=E<k&&(V.overflowX==="auto"||V.overflowX==="scroll"||V.overflowX==="visible"),N=A<P&&(V.overflowY==="auto"||V.overflowY==="scroll"||V.overflowY==="visible")):(I=E<k&&(V.overflowX==="auto"||V.overflowX==="scroll"),N=A<P&&(V.overflowY==="auto"||V.overflowY==="scroll"));var B=I&&(Math.abs(S-o)<=a&&F+E<k)-(Math.abs(x-o)<=a&&!!F),R=N&&(Math.abs(w-i)<=a&&$+A<P)-(Math.abs(y-i)<=a&&!!$);if(!wa[d])for(var W=0;W<=d;W++)wa[W]||(wa[W]={});(wa[d].vx!=B||wa[d].vy!=R||wa[d].el!==h)&&(wa[d].el=h,wa[d].vx=B,wa[d].vy=R,clearInterval(wa[d].pid),(B!=0||R!=0)&&(c=!0,wa[d].pid=setInterval((function(){r&&this.layer===0&&Er.active._onTouchMove(hT);var H=wa[this.layer].vy?wa[this.layer].vy*s:0,J=wa[this.layer].vx?wa[this.layer].vx*s:0;typeof f=="function"&&f.call(Er.dragged.parentNode[tu],J,H,t,hT,wa[this.layer].el)!=="continue"||e6(wa[this.layer].el,J,H)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==u&&(p=fh(p,!1)));_k=c}},30),f6=function(e){var n=e.originalEvent,r=e.putSortable,o=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,s=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(n){var c=r||i;s();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(f.clientX,f.clientY);u(),c&&!c.el.contains(d)&&(a("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function Ck(){}Ck.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=eb(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:f6},Yd(Ck,{pluginName:"revertOnSpill"});function Ek(){}Ek.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:f6},Yd(Ek,{pluginName:"removeOnSpill"}),Er.mount(new nye),Er.mount(Ek,Ck);function Tk(t){t.parentElement!==null&&t.parentElement.removeChild(t)}function d6(t,e,n){const r=n===0?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,r)}function rye(){return typeof window<"u"?window.console:global.console}const oye=rye();function iye(t){const e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}const aye=/-(\w)/g,lye=iye(t=>t.replace(aye,(e,n)=>n.toUpperCase())),p6=["Start","Add","Remove","Update","End"],h6=["Choose","Unchoose","Sort","Filter","Clone"],g6=["Move"],sye=[g6,p6,h6].flatMap(t=>t).map(t=>`on${t}`),Ok={manage:g6,manageAndEmit:p6,emit:h6};function uye(t){return sye.indexOf(t)!==-1}const cye=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function fye(t){return cye.includes(t)}function dye(t){return["transition-group","TransitionGroup"].includes(t)}function v6(t){return["id","class","role","style"].includes(t)||t.startsWith("data-")||t.startsWith("aria-")||t.startsWith("on")}function m6(t){return t.reduce((e,[n,r])=>(e[n]=r,e),{})}function pye({$attrs:t,componentData:e={}}){return{...m6(Object.entries(t).filter(([r,o])=>v6(r))),...e}}function hye({$attrs:t,callBackBuilder:e}){const n=m6(y6(t));Object.entries(e).forEach(([o,i])=>{Ok[o].forEach(a=>{n[`on${a}`]=i(a)})});const r=`[data-draggable]${n.draggable||""}`;return{...n,draggable:r}}function y6(t){return Object.entries(t).filter(([e,n])=>!v6(e)).map(([e,n])=>[lye(e),n]).filter(([e,n])=>!uye(e))}const b6=({el:t})=>t,gye=(t,e)=>t.__draggable_context=e,_6=t=>t.__draggable_context;class vye{constructor({nodes:{header:e,default:n,footer:r},root:o,realList:i}){this.defaultNodes=n,this.children=[...e,...n,...r],this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=i}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,n){const{tag:r,children:o,_isRootComponent:i}=this;return e(r,n,i?{default:()=>o}:o)}updated(){const{defaultNodes:e,realList:n}=this;e.forEach((r,o)=>{gye(b6(r),{element:n[o],index:o})})}getUnderlyingVm(e){return _6(e)}getVmIndexFromDomIndex(e,n){const{defaultNodes:r}=this,{length:o}=r,i=n.children,a=i.item(e);if(a===null)return o;const s=_6(a);if(s)return s.index;if(o===0)return 0;const u=b6(r[0]),c=[...i].findIndex(f=>f===u);return e<c?0:o}}function mye(t,e){const n=t[e];return n?n():[]}function yye({$slots:t,realList:e,getKey:n}){const r=e||[],[o,i]=["header","footer"].map(u=>mye(t,u)),{item:a}=t;if(!a)throw new Error("draggable element must have an item slot");const s=r.flatMap((u,c)=>a({element:u,index:c}).map(f=>(f.key=n(u),f.props={...f.props||{},"data-draggable":!0},f)));if(s.length!==r.length)throw new Error("Item slot must have only one child");return{header:o,footer:i,default:s}}function bye(t){const e=dye(t),n=!fye(t)&&!e;return{transition:e,externalComponent:n,tag:n?l.resolveComponent(t):e?l.TransitionGroup:t}}function _ye({$slots:t,tag:e,realList:n,getKey:r}){const o=yye({$slots:t,realList:n,getKey:r}),i=bye(e);return new vye({nodes:o,root:i,realList:n})}function w6(t,e){l.nextTick(()=>this.$emit(t.toLowerCase(),e))}function x6(t){return(e,n)=>{if(this.realList!==null)return this[`onDrag${t}`](e,n)}}function wye(t){const e=x6.call(this,t);return(n,r)=>{e.call(this,n,r),w6.call(this,t,n)}}let Dk=null;const xye={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Sye=["update:modelValue","change",...[...Ok.manageAndEmit,...Ok.emit].map(t=>t.toLowerCase())],Kd=l.defineComponent({name:"draggable",inheritAttrs:!1,props:xye,emits:Sye,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:t,$attrs:e,tag:n,componentData:r,realList:o,getKey:i}=this,a=_ye({$slots:t,tag:n,realList:o,getKey:i});this.componentStructure=a;const s=pye({$attrs:e,componentData:r});return a.render(l.h,s)}catch(t){return this.error=!0,l.h("pre",{style:{color:"red"}},t.stack)}},created(){this.list!==null&&this.modelValue!==null&&oye.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:t,$el:e,componentStructure:n}=this;n.updated();const r=hye({$attrs:t,callBackBuilder:{manageAndEmit:i=>wye.call(this,i),emit:i=>w6.bind(this,i),manage:i=>x6.call(this,i)}}),o=e.nodeType===1?e:e.parentElement;this._sortable=new Er(o,r),this.targetDomElement=o,o.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:t}=this;return t||this.modelValue},getKey(){const{itemKey:t}=this;return typeof t=="function"?t:e=>e[t]}},watch:{$attrs:{handler(t){const{_sortable:e}=this;e&&y6(t).forEach(([n,r])=>{e.option(n,r)})},deep:!0}},methods:{getUnderlyingVm(t){return this.componentStructure.getUnderlyingVm(t)||null},getUnderlyingPotencialDraggableComponent(t){return t.__draggable_component__},emitChanges(t){l.nextTick(()=>this.$emit("change",t))},alterList(t){if(this.list){t(this.list);return}const e=[...this.modelValue];t(e),this.$emit("update:modelValue",e)},spliceList(){const t=e=>e.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=r=>r.splice(e,0,r.splice(t,1)[0]);this.alterList(n)},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getUnderlyingPotencialDraggableComponent(t);if(!n)return{component:n};const r=n.realList,o={list:r,component:n};return t!==e&&r?{...n.getUnderlyingVm(e)||{},...o}:o},getVmIndexFromDomIndex(t){return this.componentStructure.getVmIndexFromDomIndex(t,this.targetDomElement)},onDragStart(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),Dk=t.item},onDragAdd(t){const e=t.item._underlying_vm_;if(e===void 0)return;Tk(t.item);const n=this.getVmIndexFromDomIndex(t.newIndex);this.spliceList(n,0,e);const r={element:e,newIndex:n};this.emitChanges({added:r})},onDragRemove(t){if(d6(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){Tk(t.clone);return}const{index:e,element:n}=this.context;this.spliceList(e,1);const r={element:n,oldIndex:e};this.emitChanges({removed:r})},onDragUpdate(t){Tk(t.item),d6(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndexFromDomIndex(t.newIndex);this.updatePosition(e,n);const r={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex(t,e){if(!t.element)return 0;const n=[...e.to.children].filter(a=>a.style.display!=="none"),r=n.indexOf(e.related),o=t.component.getVmIndexFromDomIndex(r);return n.indexOf(Dk)!==-1||!e.willInsertAfter?o:o+1},onDragMove(t,e){const{move:n,realList:r}=this;if(!n||!r)return!0;const o=this.getRelatedContextFromMoveEvent(t),i=this.computeFutureIndex(o,t),a={...this.context,futureIndex:i},s={...t,relatedContext:o,draggedContext:a};return n(s,e)},onDragEnd(){Dk=null}}}),Mi=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Cye={class:"rounded-sm bg-white flex flex-col h-full p-2 sy_shadow dark:border-slate-800 dark:bg-black"},Eye={class:"flex items-center justify-between"},Tye={class:"font-bold text-lg"},Oye={class:"flex"},Dye={key:0,class:"h-[1px] bg-gray-100 w-full my-1 dark:bg-gray-400"},Aye=Object.freeze(Object.defineProperty({__proto__:null,default:Mi(Object.assign({name:"widget-card"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})}},setup(t){let e=t;e.designer.setVueIncetance(e.widget.id,l.getCurrentInstance());let n=l.computed(()=>e.widget.props);e.designer.eventHandle({eventType:"onCreated",widget:e.widget});const r=o=>{e.designer.eventHandle({eventType:"onButtonClick",value:o,widget:e.widget})};return l.onMounted(()=>{e.designer.eventHandle({eventType:"onMounted",widget:e.widget})}),(o,i)=>{const a=l.resolveComponent("el-button"),s=l.resolveComponent("commonContainer");return l.openBlock(),l.createElementBlock("div",Cye,[l.createElementVNode("div",Eye,[l.createElementVNode("div",Tye,l.toDisplayString(l.unref(n).title),1),l.createElementVNode("div",Oye,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(n).list,(u,c)=>(l.openBlock(),l.createBlock(a,{link:"",onClick:f=>r(u.value),key:c,size:"small"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(u.label),1)]),_:2},1032,["onClick"]))),128))])]),l.unref(n).hasSplitLine?(l.openBlock(),l.createElementBlock("div",Dye)):l.createCommentVNode("",!0),l.createVNode(l.unref(Kd),{ghostClass:"ghost",handle:".handle",list:l.unref(e).widget.widgetList,class:"min-h-20 content-start flex-wrap h-full flex-1",style:l.normalizeStyle({flexWrap:l.unref(n).flexWrap?"wrap":"nowrap",display:l.unref(n).flex?"flex":"block",flexDirection:l.unref(n).flexDirection,alignItems:l.unref(n).alignItems,justifyContent:l.unref(n).justifyContent}),group:{name:"dragGroup",put:!0},"item-key":"id"},{item:l.withCtx(({element:u})=>[l.createVNode(s,{designer:l.unref(e).designer,widget:u,parentWidget:l.unref(e).widget,style:l.normalizeStyle({...l.unref(e).designer.formatStyle(u)})},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent("widget-"+u.type),{ref:u.id,widget:u,designer:l.unref(e).designer},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.$slots,(c,f)=>l.renderSlot(o.$slots,f,{},void 0,!0)),256))]),_:2},1032,["widget","designer"]))]),_:2},1032,["designer","widget","parentWidget","style"])]),_:3},8,["list","style"])])}}}),[["__scopeId","data-v-502506a2"]])},Symbol.toStringTag,{value:"Module"})),Nye=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-cascader"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,l.getCurrentInstance());let i=l.computed(()=>r.widget.props);const a=l.computed({set:p=>{let h=null;p&&p.length>0&&(i.value.postLastLevel?h=p[p.length-1]:h=p.join(",")),i.value.isTableItem?o("update:modelValue",h):i.value.value=h},get:()=>{let p;if(i.value.isTableItem?p=r.modelValue||i.value.value:p=i.value.value,p&&typeof p=="string")if(i.value.postLastLevel&&!i.value.multiple){if(i.value.checkStrictly)return f(i.value.options||[],p);if(i.value.options)return c(i.value.options,p)}else return p.split(",");return null}}),s=async(p,h)=>{if(i.value.onLazyLoad){p.resolve=h;try{const g=await r.designer.eventHandle({eventType:"onLazyLoad",value:p,widget:r.widget,tableItemData:r.tableItemData});return}catch(g){console.error("LazyLoad error:",g),h([]);return}}},u=p=>{r.designer.eventHandle({eventType:"onChange",value:p,tableItemData:r.tableItemData,widget:r.widget})},c=(p,h)=>{for(let g of p)if(g[i.value.propsChildren]&&g[i.value.propsChildren].length){const y=c(g[i.value.propsChildren],h);if(y)return[g[i.value.propsKey],...y]}else if(g[i.value.propsKey]===h)return[g[i.value.propsKey]];return null},f=(p,h)=>{for(let g of p){if(g[i.value.propsKey]===h)return[g[i.value.propsKey]];if(g[i.value.propsChildren]&&g[i.value.propsChildren].length){const y=f(g[i.value.propsChildren],h);if(y)return[g[i.value.propsKey],...y]}}return null},d=p=>{i.value.options=p};return r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:p,httpRes:h})=>{p&&(i.value.options=p)}}),r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),l.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:u,setOption:d}),(p,h)=>{const g=l.resolveComponent("el-cascader"),y=l.resolveComponent("common-widget-label-container");return l.openBlock(),l.createBlock(y,{props:l.unref(i)},{default:l.withCtx(()=>[l.createVNode(g,{class:"w-full",modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=w=>a.value=w),options:l.unref(i).options,size:l.unref(i).size,disabled:l.unref(i).isDetail||l.unref(i).disabled,clearable:l.unref(i).clearable,filterable:"","show-all-levels":l.unref(i).showAllLevels,"collapse-tags":"",props:{label:l.unref(i).propsLabel,value:l.unref(i).propsKey,children:l.unref(i).propsChildren,checkStrictly:l.unref(i).checkStrictly,multiple:l.unref(i).multiple,lazy:l.unref(i).lazy,lazyLoad:s},onChange:u},null,8,["modelValue","options","size","disabled","clearable","show-all-levels","props"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Mye=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-checkCode"},{__name:"index",props:{designer:{type:Object,default:{}},widget:{type:Object,default:{}},modelValue:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;const o=n;r.designer.setVueIncetance(r.widget.id,l.getCurrentInstance());let i=l.computed(()=>r.widget.props);const a=l.ref(!1),s=l.ref(i.value.timeSec),u=l.computed({set:g=>{i.value.isTableItem?o("update:modelValue",g):i.value.value=g},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),c=()=>{r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:g,httpRes:y})=>{if(g===!0){a.value=!0;let w=setInterval(()=>{s.value--,s.value<=0&&(clearInterval(w),s.value=i.value.timeSec,a.value=!1)},1e3)}}})},f=g=>{i.value.isTrim&&(i.value.value=r.designer.$utils.trim(g)),r.designer.eventHandle({eventType:"onChange",value:i.value.value,widget:r.widget})},d=g=>{r.designer.eventHandle({eventType:"onInput",value:g,widget:r.widget})},p=()=>{r.designer.eventHandle({eventType:"onFocus",value:r.widget.props.value,widget:r.widget})},h=g=>{r.designer.eventHandle({eventType:"onBlur",value:r.widget.props.value,widget:r.widget})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),l.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({sendCode:c,changeHandle:f}),(g,y)=>{const w=l.resolveComponent("el-button"),x=l.resolveComponent("el-input"),S=l.resolveComponent("common-widget-label-container");return l.openBlock(),l.createBlock(S,{props:l.unref(i)},{default:l.withCtx(()=>[l.createVNode(x,{onChange:f,onInput:d,onFocus:p,modelValue:u.value,"onUpdate:modelValue":y[0]||(y[0]=E=>u.value=E),type:l.unref(i).type,size:l.unref(i).size,onBlur:h,placeholder:l.unref(i).placeholder,disabled:l.unref(i).disabled,readonly:l.unref(i).readonly,rows:l.unref(i).rows,maxlength:l.unref(i).maxlength,"show-word-limit":l.unref(i).showLimit},{append:l.withCtx(()=>[l.createVNode(w,{onClick:c,disabled:a.value,loading:a.value,class:"flex items-center"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.value?`重新发送(${s.value}s)`:"发送验证码"),1)]),_:1},8,["disabled","loading"])]),_:1},8,["modelValue","type","size","placeholder","disabled","readonly","rows","maxlength","show-word-limit"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),Iye=Object.freeze(Object.defineProperty({__proto__:null,default:Object.assign({name:"widget-checkbox"},{__name:"index",props:{designer:{type:Object,default:()=>({})},widget:{type:Object,default:()=>({})},modelValue:{type:null},tableItemData:{type:null}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){let r=t;r.designer.setVueIncetance(r.widget.id,l.getCurrentInstance());const o=n;let i=l.computed(()=>r.widget.props);const a=l.computed({set:u=>{i.value.isTableItem?o("update:modelValue",u):i.value.value=u},get:()=>i.value.isTableItem?r.modelValue===void 0?i.value.value:r.modelValue:i.value.value}),s=u=>{r.designer.eventHandle({eventType:"onChange",value:u,widget:r.widget,tableItemData:r.tableItemData})};return r.designer.eventHandle({eventType:"onCreated",widget:r.widget}),r.designer.requestByApisetConfig({widget:r.widget,resultCb:({funRes:u,httpRes:c})=>{u&&(i.value.list=u)}}),l.onMounted(()=>{r.designer.eventHandle({eventType:"onMounted",widget:r.widget})}),e({changeHandle:s}),(u,c)=>{const f=l.resolveComponent("el-checkbox"),d=l.resolveComponent("el-checkbox-button"),p=l.resolveComponent("el-checkbox-group"),h=l.resolveComponent("common-widget-label-container");return l.openBlock(),l.createBlock(h,{props:l.unref(i)},{default:l.withCtx(()=>[l.createVNode(p,{disabled:l.unref(i).isDetail||l.unref(i).disabled,size:l.unref(i).size,onChange:s,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=g=>a.value=g)},{default:l.withCtx(()=>[l.unref(i).isButton?l.createCommentVNode("",!0):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(l.unref(i).list,(g,y)=>(l.openBlock(),l.createBlock(f,{class:"w-full",key:g.value,style:l.normalizeStyle({width:l.unref(i).isBlock?"":"auto"}),value:g.value},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(g.label),1)]),_:2},1032,["style","value"]))),128)),l.unref(i).isButton?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(l.unref(i).list,(g,y)=>(l.openBlock(),l.createBlock(d,{key:g.value,value:g.value,label:g.label},null,8,["value","label"]))),128)):l.createCommentVNode("",!0)]),_:1},8,["disabled","size","modelValue"])]),_:1},8,["props"])}}})},Symbol.toStringTag,{value:"Module"})),kye={class:"flex w-full h-full bg-[#171717]","element-loading-text":"编辑器加载中","element-loading-background":"rgba(0, 0, 0, 1)"},Pye={key:0,class:"tree_wrap flex-none w-[320px] border"},Vye={class:"h-full w-full flex flex-col flex-1"},Rye={key:0,class:"head py-2 px-2 box-border bg-[#191c20]"},Lye={key:0,class:"text-[#d25462] italic"},Bye={class:"text-[#d4d4d4]"},Fye={key:1,class:"footer text-[#ffd700] bg-[#2f3129] py-2 px-2"},Ak={__name:"editor",props:{modelValue:[String,null],designer:{type:Object,default:{}},width:{type:[String],default:"100%"},height:{type:[String],default:"100%"},language:{type:[String],default:"javascript"},theme:{type:[String],default:"vs-dark"},params:{type:[Array],default:[]},minimap:{type:[Boolean],default:!0},pure:{type:[Boolean],default:!1},tabSize:{type:[Number],default:4},isAsync:{type:[Boolean],default:!0},fontSize:{type:[Number],default:12}},emits:["update:modelValue"],setup(t,{expose:e,emit:n}){const r=t,o=n,i=l.ref(null),a=l.ref(!0);let s=null;l.onMounted(()=>{require.config({paths:{vs:"http://cdn.sunform.tech/libs/monaco-editor/min/vs","vs/language/zh-hans":"http://cdn.sunform.tech/libs/monaco-editor/min/vs/base/common/worker/simpleWorker.nls.zh-cn.min.js"}}),require(["vs/editor/editor.main"],function(){window.MonacoEnvironment={getWorkerUrl:function(h,g){return g==="json"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/json/jsonWorker.js":g==="css"||g==="scss"||g==="less"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/css/cssWorker.js":g==="html"||g==="handlebars"||g==="razor"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/html/htmlWorker.js":g==="typescript"||g==="javascript"?"http://cdn.sunform.tech/libs/monaco-editor/min/vs/language/typescript/tsWorker.js":"http://cdn.sunform.tech/libs/monaco-editor/min/vs/base/worker/workerMain.js"}},i.value?(s=monaco.editor.create(i.value,{value:r.modelValue||"",language:r.language,theme:r.theme,automaticLayout:!0,minimap:{enabled:r.minimap},folding:!0,foldingStrategy:"auto",renderLineHighlight:"all",scrollBeyondLastLine:!1,quickSuggestions:!0,suggestOnTriggerCharacters:!0,parameterHints:{enabled:!0},autoClosingBrackets:"always",autoClosingQuotes:"always",guides:{indentation:!0},autoIndent:"full",formatOnType:!0,formatOnPaste:!0,wordWrap:"off",tabSize:r.tabSize,locale:"zh-cn",fontSize:r.fontSize,suggest:{preview:!0}}),s.addAction({id:"show-component-info",label:"显示组件方法",keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.I],contextMenuGroupId:"operation",contextMenuOrder:1.5,run:function(h){const g=h.getModel(),y=h.getSelection(),w=g.getWordAtPosition(y.getStartPosition());w&&w.word.startsWith("datatable_")&&(console.log("组件名称:",w.word),showComponentInfo(w.word))}}),s.onDidChangeModelContent(h=>{o("update:modelValue",s.getValue())}),setTimeout(()=>{f(),a.value=!1},20),l.watch(()=>r.modelValue,h=>{},{deep:!0,immediate:!0}),monaco.languages.registerCompletionItemProvider("javascript",{provideCompletionItems:function(h,g){return{suggestions:[{label:"clog",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"console.log( $1 );",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"打印语句"},{label:"jp",kind:monaco.languages.CompletionItemKind.Snippet,insertText:"console.log(JSON.parse(JSON.stringify( $1 )))",insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"打印原始对象"},{label:"each",kind:monaco.languages.CompletionItemKind.Snippet,insertText:`$1.forEach((e,i)=>{
|
7
7
|
$2
|
8
8
|
})`,insertTextRules:monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"遍历"},{label:"map",kind:monaco.languages.CompletionItemKind.Snippet,insertText:`$1.map((e,i)=>{
|
9
9
|
$2
|