UNPKG

logic-helper

Version:

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.

6 lines 170 kB
import{E as M_,R as B_,c as U_,e as V_,a as W_,g as $_,i as H_,b as z_,d as G_,f as q_,h as Y_,m as K_,o as X_,p as Z_,r as Fs,j as J_,k as we,s as Q_,l as j_,n as em,q as tm,t as nm,u as rm,v as im,w as om,x as Q,y as am,z as lm,A as Qr,B as um,C as sm,D as dt,F as fm,G as cm,H as dm,I as jn,K as Ms,S as pm,J as hm,T as gm,L as vm,M as _m,N as mm,O as ym,P as bm,Q as wm,U as Ce,V as De,W as Gt,X as mt,Y as pe,Z as xm,_ as Sm,$ as Cm,a0 as Em,a1 as Tm,a2 as Fe,a3 as T,a4 as Am,a5 as Dm,a6 as Om,a7 as Im,a8 as Rm,a9 as Nm,aa as km,ab as Pm,ac as Lm,ad as Fm,ae as Mm,af as Bm,ag as Um,ah as Vm,ai as Wm,aj as $m,ak as Hm,al as zm,am as Fn,an as Gm,ao as qm,ap as Bs,aq as Ym,ar as Km,as as Xm,at as jr,au as Zm,av as Jm,aw as Qm,ax as jm,ay as e0,az as le,aA as Er,aB as t0,aC as Tr,aD as n0,aE as r0,aF as Sr,aG as Us,aH as Y,aI as i0,aJ as o0,aK as a0,aL as l0,aM as u0,aN as s0,aO as f0,aP as c0,aQ as d0,aR as p0,aS as h0,aT as g0,aU as v0,aV as _0,aW as m0,aX as y0,aY as b0,aZ as Jr,a_ as w0,a$ as x0,b0 as S0,b1 as C0,b2 as N,b3 as E0,b4 as yr,b5 as T0,b6 as A0,b7 as D0,b8 as O0,b9 as I0,ba as R0,bb as N0,bc as k0,bd as P0,be as L0,bf as F0,bg as M0,bh as B0,bi as U0,bj as V0,bk as W0,bl as $0,bm as H0,bn as z0,bo as br,bp as G0,bq as Ha,br as an,bs as F,bt as q0,bu as _r,bv as Y0,bw as K0,bx as X0,by as Ma}from"./index.d195d3ba.js";const Z0=()=>{};var J0=Object.freeze(Object.defineProperty({__proto__:null,compile:Z0,EffectScope:M_,ReactiveEffect:B_,customRef:U_,effect:V_,effectScope:W_,getCurrentScope:$_,isProxy:H_,isReactive:z_,isReadonly:G_,isRef:q_,isShallow:Y_,markRaw:K_,onScopeDispose:X_,proxyRefs:Z_,reactive:Fs,readonly:J_,ref:we,shallowReactive:Q_,shallowReadonly:j_,shallowRef:em,stop:tm,toRaw:nm,toRef:rm,toRefs:im,triggerRef:om,unref:Q,camelize:am,capitalize:lm,normalizeClass:Qr,normalizeProps:um,normalizeStyle:sm,toDisplayString:dt,toHandlerKey:fm,BaseTransition:cm,Comment:dm,Fragment:jn,KeepAlive:Ms,Static:pm,Suspense:hm,Teleport:gm,Text:vm,assertNumber:_m,callWithAsyncErrorHandling:mm,callWithErrorHandling:ym,cloneVNode:bm,compatUtils:wm,computed:Ce,createBlock:De,createCommentVNode:Gt,createElementBlock:mt,createElementVNode:pe,createHydrationRenderer:xm,createPropsRestProxy:Sm,createRenderer:Cm,createSlots:Em,createStaticVNode:Tm,createTextVNode:Fe,createVNode:T,defineAsyncComponent:Am,defineComponent:Dm,defineEmits:Om,defineExpose:Im,defineProps:Rm,get devtools(){return Nm},getCurrentInstance:km,getTransitionRawChildren:Pm,guardReactiveProps:Lm,h:Fm,handleError:Mm,initCustomFormatter:Bm,inject:Um,isMemoSame:Vm,isRuntimeOnly:Wm,isVNode:$m,mergeDefaults:Hm,mergeProps:zm,nextTick:Fn,onActivated:Gm,onBeforeMount:qm,onBeforeUnmount:Bs,onBeforeUpdate:Ym,onDeactivated:Km,onErrorCaptured:Xm,onMounted:jr,onRenderTracked:Zm,onRenderTriggered:Jm,onServerPrefetch:Qm,onUnmounted:jm,onUpdated:e0,openBlock:le,popScopeId:Er,provide:t0,pushScopeId:Tr,queuePostFlushCb:n0,registerRuntimeCompiler:r0,renderList:Sr,renderSlot:Us,resolveComponent:Y,resolveDirective:i0,resolveDynamicComponent:o0,resolveFilter:a0,resolveTransitionHooks:l0,setBlockTracking:u0,setDevtoolsHook:s0,setTransitionHooks:f0,ssrContextKey:c0,ssrUtils:d0,toHandlers:p0,transformVNodeArgs:h0,useAttrs:g0,useSSRContext:v0,useSlots:_0,useTransitionState:m0,version:y0,warn:b0,watch:Jr,watchEffect:w0,watchPostEffect:x0,watchSyncEffect:S0,withAsyncContext:C0,withCtx:N,withDefaults:E0,withDirectives:yr,withMemo:T0,withScopeId:A0,Transition:D0,TransitionGroup:O0,VueElement:I0,createApp:R0,createSSRApp:N0,defineCustomElement:k0,defineSSRCustomElement:P0,hydrate:L0,initDirectivesForSSR:F0,render:M0,useCssModule:B0,useCssVars:U0,vModelCheckbox:V0,vModelDynamic:W0,vModelRadio:$0,vModelSelect:H0,vModelText:z0,vShow:br,withKeys:G0,withModifiers:Ha},Symbol.toStringTag,{value:"Module"}));function za(u){switch(u){case"Conditional":return{value:"Conditional",label:"\u5224\u65AD",icon:"icon-suit_diamond",ins_limit:1/0,outs_limit:1/0};case"Repeat":return{value:"Repeat",label:"\u5FAA\u73AF",icon:"icon-repeat",ins_limit:0,outs_limit:1};case"Start":return{value:"Start",label:"\u5F00\u59CB",icon:"icon-play-circle-line",ins_limit:0,outs_limit:1};case"End":return{value:"End",label:"\u7ED3\u675F",icon:"icon-OA-end-process",ins_limit:1,outs_limit:0};case"Comment":return{value:"Comment",label:"\u7ED3\u675F",icon:"icon-OA-end-process",ins_limit:0,outs_limit:0};case"Input":return{value:"Input",label:"\u8F93\u5165",icon:"icon-tx-pinghangsibianxing",ins_limit:1,outs_limit:1};case"Subroutine":return{value:"Subroutine",label:"\u5B50\u6D41\u7A0B",icon:"icon-tx-pinghangsibianxing",ins_limit:1,outs_limit:1};default:return{value:"process",label:"\u8FDB\u7A0B",icon:"icon-rectangle",ins_limit:1/0,outs_limit:1}}}/**! * Sortable 1.15.0 * @author RubaXa <trash@rubaxa.org> * @author owenm <owen23355@gmail.com> * @license MIT */function Cs(u,o){var r=Object.keys(u);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(u);o&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(u,c).enumerable})),r.push.apply(r,l)}return r}function on(u){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?Cs(Object(r),!0).forEach(function(l){Q0(u,l,r[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(r)):Cs(Object(r)).forEach(function(l){Object.defineProperty(u,l,Object.getOwnPropertyDescriptor(r,l))})}return u}function Xi(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xi=function(o){return typeof o}:Xi=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Xi(u)}function Q0(u,o,r){return o in u?Object.defineProperty(u,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):u[o]=r,u}function mn(){return mn=Object.assign||function(u){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(u[l]=r[l])}return u},mn.apply(this,arguments)}function j0(u,o){if(u==null)return{};var r={},l=Object.keys(u),c,p;for(p=0;p<l.length;p++)c=l[p],!(o.indexOf(c)>=0)&&(r[c]=u[c]);return r}function ey(u,o){if(u==null)return{};var r=j0(u,o),l,c;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(u);for(c=0;c<p.length;c++)l=p[c],!(o.indexOf(l)>=0)&&(!Object.prototype.propertyIsEnumerable.call(u,l)||(r[l]=u[l]))}return r}var ty="1.15.0";function _n(u){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(u)}var yn=_n(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ei=_n(/Edge/i),Es=_n(/firefox/i),qr=_n(/safari/i)&&!_n(/chrome/i)&&!_n(/android/i),Vs=_n(/iP(ad|od|hone)/i),Ws=_n(/chrome/i)&&_n(/android/i),$s={capture:!1,passive:!1};function Ie(u,o,r){u.addEventListener(o,r,!yn&&$s)}function Ae(u,o,r){u.removeEventListener(o,r,!yn&&$s)}function eo(u,o){if(!!o){if(o[0]===">"&&(o=o.substring(1)),u)try{if(u.matches)return u.matches(o);if(u.msMatchesSelector)return u.msMatchesSelector(o);if(u.webkitMatchesSelector)return u.webkitMatchesSelector(o)}catch{return!1}return!1}}function ny(u){return u.host&&u!==document&&u.host.nodeType?u.host:u.parentNode}function nn(u,o,r,l){if(u){r=r||document;do{if(o!=null&&(o[0]===">"?u.parentNode===r&&eo(u,o):eo(u,o))||l&&u===r)return u;if(u===r)break}while(u=ny(u))}return null}var Ts=/\s+/g;function Nt(u,o,r){if(u&&o)if(u.classList)u.classList[r?"add":"remove"](o);else{var l=(" "+u.className+" ").replace(Ts," ").replace(" "+o+" "," ");u.className=(l+(r?" "+o:"")).replace(Ts," ")}}function oe(u,o,r){var l=u&&u.style;if(l){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(u,""):u.currentStyle&&(r=u.currentStyle),o===void 0?r:r[o];!(o in l)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),l[o]=r+(typeof r=="string"?"":"px")}}function xr(u,o){var r="";if(typeof u=="string")r=u;else do{var l=oe(u,"transform");l&&l!=="none"&&(r=l+" "+r)}while(!o&&(u=u.parentNode));var c=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return c&&new c(r)}function Hs(u,o,r){if(u){var l=u.getElementsByTagName(o),c=0,p=l.length;if(r)for(;c<p;c++)r(l[c],c);return l}return[]}function rn(){var u=document.scrollingElement;return u||document.documentElement}function nt(u,o,r,l,c){if(!(!u.getBoundingClientRect&&u!==window)){var p,v,y,g,x,C,m;if(u!==window&&u.parentNode&&u!==rn()?(p=u.getBoundingClientRect(),v=p.top,y=p.left,g=p.bottom,x=p.right,C=p.height,m=p.width):(v=0,y=0,g=window.innerHeight,x=window.innerWidth,C=window.innerHeight,m=window.innerWidth),(o||r)&&u!==window&&(c=c||u.parentNode,!yn))do if(c&&c.getBoundingClientRect&&(oe(c,"transform")!=="none"||r&&oe(c,"position")!=="static")){var L=c.getBoundingClientRect();v-=L.top+parseInt(oe(c,"border-top-width")),y-=L.left+parseInt(oe(c,"border-left-width")),g=v+p.height,x=y+p.width;break}while(c=c.parentNode);if(l&&u!==window){var $=xr(c||u),O=$&&$.a,k=$&&$.d;$&&(v/=k,y/=O,m/=O,C/=k,g=v+C,x=y+m)}return{top:v,left:y,bottom:g,right:x,width:m,height:C}}}function As(u,o,r){for(var l=Ln(u,!0),c=nt(u)[o];l;){var p=nt(l)[r],v=void 0;if(r==="top"||r==="left"?v=c>=p:v=c<=p,!v)return l;if(l===rn())break;l=Ln(l,!1)}return!1}function Cr(u,o,r,l){for(var c=0,p=0,v=u.children;p<v.length;){if(v[p].style.display!=="none"&&v[p]!==ae.ghost&&(l||v[p]!==ae.dragged)&&nn(v[p],r.draggable,u,!1)){if(c===o)return v[p];c++}p++}return null}function Ga(u,o){for(var r=u.lastElementChild;r&&(r===ae.ghost||oe(r,"display")==="none"||o&&!eo(r,o));)r=r.previousElementSibling;return r||null}function zt(u,o){var r=0;if(!u||!u.parentNode)return-1;for(;u=u.previousElementSibling;)u.nodeName.toUpperCase()!=="TEMPLATE"&&u!==ae.clone&&(!o||eo(u,o))&&r++;return r}function Ds(u){var o=0,r=0,l=rn();if(u)do{var c=xr(u),p=c.a,v=c.d;o+=u.scrollLeft*p,r+=u.scrollTop*v}while(u!==l&&(u=u.parentNode));return[o,r]}function ry(u,o){for(var r in u)if(!!u.hasOwnProperty(r)){for(var l in o)if(o.hasOwnProperty(l)&&o[l]===u[r][l])return Number(r)}return-1}function Ln(u,o){if(!u||!u.getBoundingClientRect)return rn();var r=u,l=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var c=oe(r);if(r.clientWidth<r.scrollWidth&&(c.overflowX=="auto"||c.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(c.overflowY=="auto"||c.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return rn();if(l||o)return r;l=!0}}while(r=r.parentNode);return rn()}function iy(u,o){if(u&&o)for(var r in o)o.hasOwnProperty(r)&&(u[r]=o[r]);return u}function Da(u,o){return Math.round(u.top)===Math.round(o.top)&&Math.round(u.left)===Math.round(o.left)&&Math.round(u.height)===Math.round(o.height)&&Math.round(u.width)===Math.round(o.width)}var Yr;function zs(u,o){return function(){if(!Yr){var r=arguments,l=this;r.length===1?u.call(l,r[0]):u.apply(l,r),Yr=setTimeout(function(){Yr=void 0},o)}}}function oy(){clearTimeout(Yr),Yr=void 0}function Gs(u,o,r){u.scrollLeft+=o,u.scrollTop+=r}function qs(u){var o=window.Polymer,r=window.jQuery||window.Zepto;return o&&o.dom?o.dom(u).cloneNode(!0):r?r(u).clone(!0)[0]:u.cloneNode(!0)}var Pt="Sortable"+new Date().getTime();function ay(){var u=[],o;return{captureAnimationState:function(){if(u=[],!!this.options.animation){var l=[].slice.call(this.el.children);l.forEach(function(c){if(!(oe(c,"display")==="none"||c===ae.ghost)){u.push({target:c,rect:nt(c)});var p=on({},u[u.length-1].rect);if(c.thisAnimationDuration){var v=xr(c,!0);v&&(p.top-=v.f,p.left-=v.e)}c.fromRect=p}})}},addAnimationState:function(l){u.push(l)},removeAnimationState:function(l){u.splice(ry(u,{target:l}),1)},animateAll:function(l){var c=this;if(!this.options.animation){clearTimeout(o),typeof l=="function"&&l();return}var p=!1,v=0;u.forEach(function(y){var g=0,x=y.target,C=x.fromRect,m=nt(x),L=x.prevFromRect,$=x.prevToRect,O=y.rect,k=xr(x,!0);k&&(m.top-=k.f,m.left-=k.e),x.toRect=m,x.thisAnimationDuration&&Da(L,m)&&!Da(C,m)&&(O.top-m.top)/(O.left-m.left)===(C.top-m.top)/(C.left-m.left)&&(g=uy(O,L,$,c.options)),Da(m,C)||(x.prevFromRect=C,x.prevToRect=m,g||(g=c.options.animation),c.animate(x,O,m,g)),g&&(p=!0,v=Math.max(v,g),clearTimeout(x.animationResetTimer),x.animationResetTimer=setTimeout(function(){x.animationTime=0,x.prevFromRect=null,x.fromRect=null,x.prevToRect=null,x.thisAnimationDuration=null},g),x.thisAnimationDuration=g)}),clearTimeout(o),p?o=setTimeout(function(){typeof l=="function"&&l()},v):typeof l=="function"&&l(),u=[]},animate:function(l,c,p,v){if(v){oe(l,"transition",""),oe(l,"transform","");var y=xr(this.el),g=y&&y.a,x=y&&y.d,C=(c.left-p.left)/(g||1),m=(c.top-p.top)/(x||1);l.animatingX=!!C,l.animatingY=!!m,oe(l,"transform","translate3d("+C+"px,"+m+"px,0)"),this.forRepaintDummy=ly(l),oe(l,"transition","transform "+v+"ms"+(this.options.easing?" "+this.options.easing:"")),oe(l,"transform","translate3d(0,0,0)"),typeof l.animated=="number"&&clearTimeout(l.animated),l.animated=setTimeout(function(){oe(l,"transition",""),oe(l,"transform",""),l.animated=!1,l.animatingX=!1,l.animatingY=!1},v)}}}}function ly(u){return u.offsetWidth}function uy(u,o,r,l){return Math.sqrt(Math.pow(o.top-u.top,2)+Math.pow(o.left-u.left,2))/Math.sqrt(Math.pow(o.top-r.top,2)+Math.pow(o.left-r.left,2))*l.animation}var gr=[],Oa={initializeByDefault:!0},ti={mount:function(o){for(var r in Oa)Oa.hasOwnProperty(r)&&!(r in o)&&(o[r]=Oa[r]);gr.forEach(function(l){if(l.pluginName===o.pluginName)throw"Sortable: Cannot mount plugin ".concat(o.pluginName," more than once")}),gr.push(o)},pluginEvent:function(o,r,l){var c=this;this.eventCanceled=!1,l.cancel=function(){c.eventCanceled=!0};var p=o+"Global";gr.forEach(function(v){!r[v.pluginName]||(r[v.pluginName][p]&&r[v.pluginName][p](on({sortable:r},l)),r.options[v.pluginName]&&r[v.pluginName][o]&&r[v.pluginName][o](on({sortable:r},l)))})},initializePlugins:function(o,r,l,c){gr.forEach(function(y){var g=y.pluginName;if(!(!o.options[g]&&!y.initializeByDefault)){var x=new y(o,r,o.options);x.sortable=o,x.options=o.options,o[g]=x,mn(l,x.defaults)}});for(var p in o.options)if(!!o.options.hasOwnProperty(p)){var v=this.modifyOption(o,p,o.options[p]);typeof v!="undefined"&&(o.options[p]=v)}},getEventProperties:function(o,r){var l={};return gr.forEach(function(c){typeof c.eventProperties=="function"&&mn(l,c.eventProperties.call(r[c.pluginName],o))}),l},modifyOption:function(o,r,l){var c;return gr.forEach(function(p){!o[p.pluginName]||p.optionListeners&&typeof p.optionListeners[r]=="function"&&(c=p.optionListeners[r].call(o[p.pluginName],l))}),c}};function sy(u){var o=u.sortable,r=u.rootEl,l=u.name,c=u.targetEl,p=u.cloneEl,v=u.toEl,y=u.fromEl,g=u.oldIndex,x=u.newIndex,C=u.oldDraggableIndex,m=u.newDraggableIndex,L=u.originalEvent,$=u.putSortable,O=u.extraEventProperties;if(o=o||r&&r[Pt],!!o){var k,U=o.options,q="on"+l.charAt(0).toUpperCase()+l.substr(1);window.CustomEvent&&!yn&&!ei?k=new CustomEvent(l,{bubbles:!0,cancelable:!0}):(k=document.createEvent("Event"),k.initEvent(l,!0,!0)),k.to=v||r,k.from=y||r,k.item=c||r,k.clone=p,k.oldIndex=g,k.newIndex=x,k.oldDraggableIndex=C,k.newDraggableIndex=m,k.originalEvent=L,k.pullMode=$?$.lastPutMode:void 0;var H=on(on({},O),ti.getEventProperties(l,o));for(var K in H)k[K]=H[K];r&&r.dispatchEvent(k),U[q]&&U[q].call(o,k)}}var fy=["evt"],Ct=function(o,r){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=l.evt,p=ey(l,fy);ti.pluginEvent.bind(ae)(o,r,on({dragEl:W,parentEl:Ze,ghostEl:he,rootEl:Ge,nextEl:Qn,lastDownEl:Zi,cloneEl:Ke,cloneHidden:Pn,dragStarted:Hr,putSortable:ut,activeSortable:ae.active,originalEvent:c,oldIndex:wr,oldDraggableIndex:Kr,newIndex:kt,newDraggableIndex:kn,hideGhostForTarget:Zs,unhideGhostForTarget:Js,cloneNowHidden:function(){Pn=!0},cloneNowShown:function(){Pn=!1},dispatchSortableEvent:function(y){_t({sortable:r,name:y,originalEvent:c})}},p))};function _t(u){sy(on({putSortable:ut,cloneEl:Ke,targetEl:W,rootEl:Ge,oldIndex:wr,oldDraggableIndex:Kr,newIndex:kt,newDraggableIndex:kn},u))}var W,Ze,he,Ge,Qn,Zi,Ke,Pn,wr,kt,Kr,kn,Gi,ut,mr=!1,to=!1,no=[],Zn,Qt,Ia,Ra,Os,Is,Hr,vr,Xr,Zr=!1,qi=!1,Ji,ct,Na=[],Ba=!1,ro=[],oo=typeof document!="undefined",Yi=Vs,Rs=ei||yn?"cssFloat":"float",cy=oo&&!Ws&&!Vs&&"draggable"in document.createElement("div"),Ys=function(){if(!!oo){if(yn)return!1;var u=document.createElement("x");return u.style.cssText="pointer-events:auto",u.style.pointerEvents==="auto"}}(),Ks=function(o,r){var l=oe(o),c=parseInt(l.width)-parseInt(l.paddingLeft)-parseInt(l.paddingRight)-parseInt(l.borderLeftWidth)-parseInt(l.borderRightWidth),p=Cr(o,0,r),v=Cr(o,1,r),y=p&&oe(p),g=v&&oe(v),x=y&&parseInt(y.marginLeft)+parseInt(y.marginRight)+nt(p).width,C=g&&parseInt(g.marginLeft)+parseInt(g.marginRight)+nt(v).width;if(l.display==="flex")return l.flexDirection==="column"||l.flexDirection==="column-reverse"?"vertical":"horizontal";if(l.display==="grid")return l.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(p&&y.float&&y.float!=="none"){var m=y.float==="left"?"left":"right";return v&&(g.clear==="both"||g.clear===m)?"vertical":"horizontal"}return p&&(y.display==="block"||y.display==="flex"||y.display==="table"||y.display==="grid"||x>=c&&l[Rs]==="none"||v&&l[Rs]==="none"&&x+C>c)?"vertical":"horizontal"},dy=function(o,r,l){var c=l?o.left:o.top,p=l?o.right:o.bottom,v=l?o.width:o.height,y=l?r.left:r.top,g=l?r.right:r.bottom,x=l?r.width:r.height;return c===y||p===g||c+v/2===y+x/2},py=function(o,r){var l;return no.some(function(c){var p=c[Pt].options.emptyInsertThreshold;if(!(!p||Ga(c))){var v=nt(c),y=o>=v.left-p&&o<=v.right+p,g=r>=v.top-p&&r<=v.bottom+p;if(y&&g)return l=c}}),l},Xs=function(o){function r(p,v){return function(y,g,x,C){var m=y.options.group.name&&g.options.group.name&&y.options.group.name===g.options.group.name;if(p==null&&(v||m))return!0;if(p==null||p===!1)return!1;if(v&&p==="clone")return p;if(typeof p=="function")return r(p(y,g,x,C),v)(y,g,x,C);var L=(v?y:g).options.group.name;return p===!0||typeof p=="string"&&p===L||p.join&&p.indexOf(L)>-1}}var l={},c=o.group;(!c||Xi(c)!="object")&&(c={name:c}),l.name=c.name,l.checkPull=r(c.pull,!0),l.checkPut=r(c.put),l.revertClone=c.revertClone,o.group=l},Zs=function(){!Ys&&he&&oe(he,"display","none")},Js=function(){!Ys&&he&&oe(he,"display","")};oo&&!Ws&&document.addEventListener("click",function(u){if(to)return u.preventDefault(),u.stopPropagation&&u.stopPropagation(),u.stopImmediatePropagation&&u.stopImmediatePropagation(),to=!1,!1},!0);var Jn=function(o){if(W){o=o.touches?o.touches[0]:o;var r=py(o.clientX,o.clientY);if(r){var l={};for(var c in o)o.hasOwnProperty(c)&&(l[c]=o[c]);l.target=l.rootEl=r,l.preventDefault=void 0,l.stopPropagation=void 0,r[Pt]._onDragOver(l)}}},hy=function(o){W&&W.parentNode[Pt]._isOutsideThisEl(o.target)};function ae(u,o){if(!(u&&u.nodeType&&u.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(u));this.el=u,this.options=o=mn({},o),u[Pt]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(u.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ks(u,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(v,y){v.setData("Text",y.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:ae.supportPointer!==!1&&"PointerEvent"in window&&!qr,emptyInsertThreshold:5};ti.initializePlugins(this,u,r);for(var l in r)!(l in o)&&(o[l]=r[l]);Xs(o);for(var c in this)c.charAt(0)==="_"&&typeof this[c]=="function"&&(this[c]=this[c].bind(this));this.nativeDraggable=o.forceFallback?!1:cy,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?Ie(u,"pointerdown",this._onTapStart):(Ie(u,"mousedown",this._onTapStart),Ie(u,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ie(u,"dragover",this),Ie(u,"dragenter",this)),no.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),mn(this,ay())}ae.prototype={constructor:ae,_isOutsideThisEl:function(o){!this.el.contains(o)&&o!==this.el&&(vr=null)},_getDirection:function(o,r){return typeof this.options.direction=="function"?this.options.direction.call(this,o,r,W):this.options.direction},_onTapStart:function(o){if(!!o.cancelable){var r=this,l=this.el,c=this.options,p=c.preventOnFilter,v=o.type,y=o.touches&&o.touches[0]||o.pointerType&&o.pointerType==="touch"&&o,g=(y||o).target,x=o.target.shadowRoot&&(o.path&&o.path[0]||o.composedPath&&o.composedPath()[0])||g,C=c.filter;if(xy(l),!W&&!(/mousedown|pointerdown/.test(v)&&o.button!==0||c.disabled)&&!x.isContentEditable&&!(!this.nativeDraggable&&qr&&g&&g.tagName.toUpperCase()==="SELECT")&&(g=nn(g,c.draggable,l,!1),!(g&&g.animated)&&Zi!==g)){if(wr=zt(g),Kr=zt(g,c.draggable),typeof C=="function"){if(C.call(this,o,g,this)){_t({sortable:r,rootEl:x,name:"filter",targetEl:g,toEl:l,fromEl:l}),Ct("filter",r,{evt:o}),p&&o.cancelable&&o.preventDefault();return}}else if(C&&(C=C.split(",").some(function(m){if(m=nn(x,m.trim(),l,!1),m)return _t({sortable:r,rootEl:m,name:"filter",targetEl:g,fromEl:l,toEl:l}),Ct("filter",r,{evt:o}),!0}),C)){p&&o.cancelable&&o.preventDefault();return}c.handle&&!nn(x,c.handle,l,!1)||this._prepareDragStart(o,y,g)}}},_prepareDragStart:function(o,r,l){var c=this,p=c.el,v=c.options,y=p.ownerDocument,g;if(l&&!W&&l.parentNode===p){var x=nt(l);if(Ge=p,W=l,Ze=W.parentNode,Qn=W.nextSibling,Zi=l,Gi=v.group,ae.dragged=W,Zn={target:W,clientX:(r||o).clientX,clientY:(r||o).clientY},Os=Zn.clientX-x.left,Is=Zn.clientY-x.top,this._lastX=(r||o).clientX,this._lastY=(r||o).clientY,W.style["will-change"]="all",g=function(){if(Ct("delayEnded",c,{evt:o}),ae.eventCanceled){c._onDrop();return}c._disableDelayedDragEvents(),!Es&&c.nativeDraggable&&(W.draggable=!0),c._triggerDragStart(o,r),_t({sortable:c,name:"choose",originalEvent:o}),Nt(W,v.chosenClass,!0)},v.ignore.split(",").forEach(function(C){Hs(W,C.trim(),ka)}),Ie(y,"dragover",Jn),Ie(y,"mousemove",Jn),Ie(y,"touchmove",Jn),Ie(y,"mouseup",c._onDrop),Ie(y,"touchend",c._onDrop),Ie(y,"touchcancel",c._onDrop),Es&&this.nativeDraggable&&(this.options.touchStartThreshold=4,W.draggable=!0),Ct("delayStart",this,{evt:o}),v.delay&&(!v.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(ei||yn))){if(ae.eventCanceled){this._onDrop();return}Ie(y,"mouseup",c._disableDelayedDrag),Ie(y,"touchend",c._disableDelayedDrag),Ie(y,"touchcancel",c._disableDelayedDrag),Ie(y,"mousemove",c._delayedDragTouchMoveHandler),Ie(y,"touchmove",c._delayedDragTouchMoveHandler),v.supportPointer&&Ie(y,"pointermove",c._delayedDragTouchMoveHandler),c._dragStartTimer=setTimeout(g,v.delay)}else g()}},_delayedDragTouchMoveHandler:function(o){var r=o.touches?o.touches[0]:o;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){W&&ka(W),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var o=this.el.ownerDocument;Ae(o,"mouseup",this._disableDelayedDrag),Ae(o,"touchend",this._disableDelayedDrag),Ae(o,"touchcancel",this._disableDelayedDrag),Ae(o,"mousemove",this._delayedDragTouchMoveHandler),Ae(o,"touchmove",this._delayedDragTouchMoveHandler),Ae(o,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(o,r){r=r||o.pointerType=="touch"&&o,!this.nativeDraggable||r?this.options.supportPointer?Ie(document,"pointermove",this._onTouchMove):r?Ie(document,"touchmove",this._onTouchMove):Ie(document,"mousemove",this._onTouchMove):(Ie(W,"dragend",this),Ie(Ge,"dragstart",this._onDragStart));try{document.selection?Qi(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(o,r){if(mr=!1,Ge&&W){Ct("dragStarted",this,{evt:r}),this.nativeDraggable&&Ie(document,"dragover",hy);var l=this.options;!o&&Nt(W,l.dragClass,!1),Nt(W,l.ghostClass,!0),ae.active=this,o&&this._appendGhost(),_t({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(Qt){this._lastX=Qt.clientX,this._lastY=Qt.clientY,Zs();for(var o=document.elementFromPoint(Qt.clientX,Qt.clientY),r=o;o&&o.shadowRoot&&(o=o.shadowRoot.elementFromPoint(Qt.clientX,Qt.clientY),o!==r);)r=o;if(W.parentNode[Pt]._isOutsideThisEl(o),r)do{if(r[Pt]){var l=void 0;if(l=r[Pt]._onDragOver({clientX:Qt.clientX,clientY:Qt.clientY,target:o,rootEl:r}),l&&!this.options.dragoverBubble)break}o=r}while(r=r.parentNode);Js()}},_onTouchMove:function(o){if(Zn){var r=this.options,l=r.fallbackTolerance,c=r.fallbackOffset,p=o.touches?o.touches[0]:o,v=he&&xr(he,!0),y=he&&v&&v.a,g=he&&v&&v.d,x=Yi&&ct&&Ds(ct),C=(p.clientX-Zn.clientX+c.x)/(y||1)+(x?x[0]-Na[0]:0)/(y||1),m=(p.clientY-Zn.clientY+c.y)/(g||1)+(x?x[1]-Na[1]:0)/(g||1);if(!ae.active&&!mr){if(l&&Math.max(Math.abs(p.clientX-this._lastX),Math.abs(p.clientY-this._lastY))<l)return;this._onDragStart(o,!0)}if(he){v?(v.e+=C-(Ia||0),v.f+=m-(Ra||0)):v={a:1,b:0,c:0,d:1,e:C,f:m};var L="matrix(".concat(v.a,",").concat(v.b,",").concat(v.c,",").concat(v.d,",").concat(v.e,",").concat(v.f,")");oe(he,"webkitTransform",L),oe(he,"mozTransform",L),oe(he,"msTransform",L),oe(he,"transform",L),Ia=C,Ra=m,Qt=p}o.cancelable&&o.preventDefault()}},_appendGhost:function(){if(!he){var o=this.options.fallbackOnBody?document.body:Ge,r=nt(W,!0,Yi,!0,o),l=this.options;if(Yi){for(ct=o;oe(ct,"position")==="static"&&oe(ct,"transform")==="none"&&ct!==document;)ct=ct.parentNode;ct!==document.body&&ct!==document.documentElement?(ct===document&&(ct=rn()),r.top+=ct.scrollTop,r.left+=ct.scrollLeft):ct=rn(),Na=Ds(ct)}he=W.cloneNode(!0),Nt(he,l.ghostClass,!1),Nt(he,l.fallbackClass,!0),Nt(he,l.dragClass,!0),oe(he,"transition",""),oe(he,"transform",""),oe(he,"box-sizing","border-box"),oe(he,"margin",0),oe(he,"top",r.top),oe(he,"left",r.left),oe(he,"width",r.width),oe(he,"height",r.height),oe(he,"opacity","0.8"),oe(he,"position",Yi?"absolute":"fixed"),oe(he,"zIndex","100000"),oe(he,"pointerEvents","none"),ae.ghost=he,o.appendChild(he),oe(he,"transform-origin",Os/parseInt(he.style.width)*100+"% "+Is/parseInt(he.style.height)*100+"%")}},_onDragStart:function(o,r){var l=this,c=o.dataTransfer,p=l.options;if(Ct("dragStart",this,{evt:o}),ae.eventCanceled){this._onDrop();return}Ct("setupClone",this),ae.eventCanceled||(Ke=qs(W),Ke.removeAttribute("id"),Ke.draggable=!1,Ke.style["will-change"]="",this._hideClone(),Nt(Ke,this.options.chosenClass,!1),ae.clone=Ke),l.cloneId=Qi(function(){Ct("clone",l),!ae.eventCanceled&&(l.options.removeCloneOnHide||Ge.insertBefore(Ke,W),l._hideClone(),_t({sortable:l,name:"clone"}))}),!r&&Nt(W,p.dragClass,!0),r?(to=!0,l._loopId=setInterval(l._emulateDragOver,50)):(Ae(document,"mouseup",l._onDrop),Ae(document,"touchend",l._onDrop),Ae(document,"touchcancel",l._onDrop),c&&(c.effectAllowed="move",p.setData&&p.setData.call(l,c,W)),Ie(document,"drop",l),oe(W,"transform","translateZ(0)")),mr=!0,l._dragStartId=Qi(l._dragStarted.bind(l,r,o)),Ie(document,"selectstart",l),Hr=!0,qr&&oe(document.body,"user-select","none")},_onDragOver:function(o){var r=this.el,l=o.target,c,p,v,y=this.options,g=y.group,x=ae.active,C=Gi===g,m=y.sort,L=ut||x,$,O=this,k=!1;if(Ba)return;function U(ee,se){Ct(ee,O,on({evt:o,isOwner:C,axis:$?"vertical":"horizontal",revert:v,dragRect:c,targetRect:p,canSort:m,fromSortable:L,target:l,completed:H,onMove:function(Me,pt){return Ki(Ge,r,W,c,Me,nt(Me),o,pt)},changed:K},se))}function q(){U("dragOverAnimationCapture"),O.captureAnimationState(),O!==L&&L.captureAnimationState()}function H(ee){return U("dragOverCompleted",{insertion:ee}),ee&&(C?x._hideClone():x._showClone(O),O!==L&&(Nt(W,ut?ut.options.ghostClass:x.options.ghostClass,!1),Nt(W,y.ghostClass,!0)),ut!==O&&O!==ae.active?ut=O:O===ae.active&&ut&&(ut=null),L===O&&(O._ignoreWhileAnimating=l),O.animateAll(function(){U("dragOverAnimationComplete"),O._ignoreWhileAnimating=null}),O!==L&&(L.animateAll(),L._ignoreWhileAnimating=null)),(l===W&&!W.animated||l===r&&!l.animated)&&(vr=null),!y.dragoverBubble&&!o.rootEl&&l!==document&&(W.parentNode[Pt]._isOutsideThisEl(o.target),!ee&&Jn(o)),!y.dragoverBubble&&o.stopPropagation&&o.stopPropagation(),k=!0}function K(){kt=zt(W),kn=zt(W,y.draggable),_t({sortable:O,name:"change",toEl:r,newIndex:kt,newDraggableIndex:kn,originalEvent:o})}if(o.preventDefault!==void 0&&o.cancelable&&o.preventDefault(),l=nn(l,y.draggable,r,!0),U("dragOver"),ae.eventCanceled)return k;if(W.contains(o.target)||l.animated&&l.animatingX&&l.animatingY||O._ignoreWhileAnimating===l)return H(!1);if(to=!1,x&&!y.disabled&&(C?m||(v=Ze!==Ge):ut===this||(this.lastPutMode=Gi.checkPull(this,x,W,o))&&g.checkPut(this,x,W,o))){if($=this._getDirection(o,l)==="vertical",c=nt(W),U("dragOverValid"),ae.eventCanceled)return k;if(v)return Ze=Ge,q(),this._hideClone(),U("revert"),ae.eventCanceled||(Qn?Ge.insertBefore(W,Qn):Ge.appendChild(W)),H(!0);var ue=Ga(r,y.draggable);if(!ue||my(o,$,this)&&!ue.animated){if(ue===W)return H(!1);if(ue&&r===o.target&&(l=ue),l&&(p=nt(l)),Ki(Ge,r,W,c,l,p,o,!!l)!==!1)return q(),ue&&ue.nextSibling?r.insertBefore(W,ue.nextSibling):r.appendChild(W),Ze=r,K(),H(!0)}else if(ue&&_y(o,$,this)){var M=Cr(r,0,y,!0);if(M===W)return H(!1);if(l=M,p=nt(l),Ki(Ge,r,W,c,l,p,o,!1)!==!1)return q(),r.insertBefore(W,M),Ze=r,K(),H(!0)}else if(l.parentNode===r){p=nt(l);var V=0,Z,ge=W.parentNode!==r,J=!dy(W.animated&&W.toRect||c,l.animated&&l.toRect||p,$),Re=$?"top":"left",_=As(l,"top","top")||As(W,"top","top"),E=_?_.scrollTop:void 0;vr!==l&&(Z=p[Re],Zr=!1,qi=!J&&y.invertSwap||ge),V=yy(o,l,p,$,J?1:y.swapThreshold,y.invertedSwapThreshold==null?y.swapThreshold:y.invertedSwapThreshold,qi,vr===l);var A;if(V!==0){var B=zt(W);do B-=V,A=Ze.children[B];while(A&&(oe(A,"display")==="none"||A===he))}if(V===0||A===l)return H(!1);vr=l,Xr=V;var ve=l.nextElementSibling,_e=!1;_e=V===1;var fe=Ki(Ge,r,W,c,l,p,o,_e);if(fe!==!1)return(fe===1||fe===-1)&&(_e=fe===1),Ba=!0,setTimeout(vy,30),q(),_e&&!ve?r.appendChild(W):l.parentNode.insertBefore(W,_e?ve:l),_&&Gs(_,0,E-_.scrollTop),Ze=W.parentNode,Z!==void 0&&!qi&&(Ji=Math.abs(Z-nt(l)[Re])),K(),H(!0)}if(r.contains(W))return H(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ae(document,"mousemove",this._onTouchMove),Ae(document,"touchmove",this._onTouchMove),Ae(document,"pointermove",this._onTouchMove),Ae(document,"dragover",Jn),Ae(document,"mousemove",Jn),Ae(document,"touchmove",Jn)},_offUpEvents:function(){var o=this.el.ownerDocument;Ae(o,"mouseup",this._onDrop),Ae(o,"touchend",this._onDrop),Ae(o,"pointerup",this._onDrop),Ae(o,"touchcancel",this._onDrop),Ae(document,"selectstart",this)},_onDrop:function(o){var r=this.el,l=this.options;if(kt=zt(W),kn=zt(W,l.draggable),Ct("drop",this,{evt:o}),Ze=W&&W.parentNode,kt=zt(W),kn=zt(W,l.draggable),ae.eventCanceled){this._nulling();return}mr=!1,qi=!1,Zr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ua(this.cloneId),Ua(this._dragStartId),this.nativeDraggable&&(Ae(document,"drop",this),Ae(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),qr&&oe(document.body,"user-select",""),oe(W,"transform",""),o&&(Hr&&(o.cancelable&&o.preventDefault(),!l.dropBubble&&o.stopPropagation()),he&&he.parentNode&&he.parentNode.removeChild(he),(Ge===Ze||ut&&ut.lastPutMode!=="clone")&&Ke&&Ke.parentNode&&Ke.parentNode.removeChild(Ke),W&&(this.nativeDraggable&&Ae(W,"dragend",this),ka(W),W.style["will-change"]="",Hr&&!mr&&Nt(W,ut?ut.options.ghostClass:this.options.ghostClass,!1),Nt(W,this.options.chosenClass,!1),_t({sortable:this,name:"unchoose",toEl:Ze,newIndex:null,newDraggableIndex:null,originalEvent:o}),Ge!==Ze?(kt>=0&&(_t({rootEl:Ze,name:"add",toEl:Ze,fromEl:Ge,originalEvent:o}),_t({sortable:this,name:"remove",toEl:Ze,originalEvent:o}),_t({rootEl:Ze,name:"sort",toEl:Ze,fromEl:Ge,originalEvent:o}),_t({sortable:this,name:"sort",toEl:Ze,originalEvent:o})),ut&&ut.save()):kt!==wr&&kt>=0&&(_t({sortable:this,name:"update",toEl:Ze,originalEvent:o}),_t({sortable:this,name:"sort",toEl:Ze,originalEvent:o})),ae.active&&((kt==null||kt===-1)&&(kt=wr,kn=Kr),_t({sortable:this,name:"end",toEl:Ze,originalEvent:o}),this.save()))),this._nulling()},_nulling:function(){Ct("nulling",this),Ge=W=Ze=he=Qn=Ke=Zi=Pn=Zn=Qt=Hr=kt=kn=wr=Kr=vr=Xr=ut=Gi=ae.dragged=ae.ghost=ae.clone=ae.active=null,ro.forEach(function(o){o.checked=!0}),ro.length=Ia=Ra=0},handleEvent:function(o){switch(o.type){case"drop":case"dragend":this._onDrop(o);break;case"dragenter":case"dragover":W&&(this._onDragOver(o),gy(o));break;case"selectstart":o.preventDefault();break}},toArray:function(){for(var o=[],r,l=this.el.children,c=0,p=l.length,v=this.options;c<p;c++)r=l[c],nn(r,v.draggable,this.el,!1)&&o.push(r.getAttribute(v.dataIdAttr)||wy(r));return o},sort:function(o,r){var l={},c=this.el;this.toArray().forEach(function(p,v){var y=c.children[v];nn(y,this.options.draggable,c,!1)&&(l[p]=y)},this),r&&this.captureAnimationState(),o.forEach(function(p){l[p]&&(c.removeChild(l[p]),c.appendChild(l[p]))}),r&&this.animateAll()},save:function(){var o=this.options.store;o&&o.set&&o.set(this)},closest:function(o,r){return nn(o,r||this.options.draggable,this.el,!1)},option:function(o,r){var l=this.options;if(r===void 0)return l[o];var c=ti.modifyOption(this,o,r);typeof c!="undefined"?l[o]=c:l[o]=r,o==="group"&&Xs(l)},destroy:function(){Ct("destroy",this);var o=this.el;o[Pt]=null,Ae(o,"mousedown",this._onTapStart),Ae(o,"touchstart",this._onTapStart),Ae(o,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ae(o,"dragover",this),Ae(o,"dragenter",this)),Array.prototype.forEach.call(o.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),no.splice(no.indexOf(this.el),1),this.el=o=null},_hideClone:function(){if(!Pn){if(Ct("hideClone",this),ae.eventCanceled)return;oe(Ke,"display","none"),this.options.removeCloneOnHide&&Ke.parentNode&&Ke.parentNode.removeChild(Ke),Pn=!0}},_showClone:function(o){if(o.lastPutMode!=="clone"){this._hideClone();return}if(Pn){if(Ct("showClone",this),ae.eventCanceled)return;W.parentNode==Ge&&!this.options.group.revertClone?Ge.insertBefore(Ke,W):Qn?Ge.insertBefore(Ke,Qn):Ge.appendChild(Ke),this.options.group.revertClone&&this.animate(W,Ke),oe(Ke,"display",""),Pn=!1}}};function gy(u){u.dataTransfer&&(u.dataTransfer.dropEffect="move"),u.cancelable&&u.preventDefault()}function Ki(u,o,r,l,c,p,v,y){var g,x=u[Pt],C=x.options.onMove,m;return window.CustomEvent&&!yn&&!ei?g=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent("move",!0,!0)),g.to=o,g.from=u,g.dragged=r,g.draggedRect=l,g.related=c||o,g.relatedRect=p||nt(o),g.willInsertAfter=y,g.originalEvent=v,u.dispatchEvent(g),C&&(m=C.call(x,g,v)),m}function ka(u){u.draggable=!1}function vy(){Ba=!1}function _y(u,o,r){var l=nt(Cr(r.el,0,r.options,!0)),c=10;return o?u.clientX<l.left-c||u.clientY<l.top&&u.clientX<l.right:u.clientY<l.top-c||u.clientY<l.bottom&&u.clientX<l.left}function my(u,o,r){var l=nt(Ga(r.el,r.options.draggable)),c=10;return o?u.clientX>l.right+c||u.clientX<=l.right&&u.clientY>l.bottom&&u.clientX>=l.left:u.clientX>l.right&&u.clientY>l.top||u.clientX<=l.right&&u.clientY>l.bottom+c}function yy(u,o,r,l,c,p,v,y){var g=l?u.clientY:u.clientX,x=l?r.height:r.width,C=l?r.top:r.left,m=l?r.bottom:r.right,L=!1;if(!v){if(y&&Ji<x*c){if(!Zr&&(Xr===1?g>C+x*p/2:g<m-x*p/2)&&(Zr=!0),Zr)L=!0;else if(Xr===1?g<C+Ji:g>m-Ji)return-Xr}else if(g>C+x*(1-c)/2&&g<m-x*(1-c)/2)return by(o)}return L=L||v,L&&(g<C+x*p/2||g>m-x*p/2)?g>C+x/2?1:-1:0}function by(u){return zt(W)<zt(u)?1:-1}function wy(u){for(var o=u.tagName+u.className+u.src+u.href+u.textContent,r=o.length,l=0;r--;)l+=o.charCodeAt(r);return l.toString(36)}function xy(u){ro.length=0;for(var o=u.getElementsByTagName("input"),r=o.length;r--;){var l=o[r];l.checked&&ro.push(l)}}function Qi(u){return setTimeout(u,0)}function Ua(u){return clearTimeout(u)}oo&&Ie(document,"touchmove",function(u){(ae.active||mr)&&u.cancelable&&u.preventDefault()});ae.utils={on:Ie,off:Ae,css:oe,find:Hs,is:function(o,r){return!!nn(o,r,o,!1)},extend:iy,throttle:zs,closest:nn,toggleClass:Nt,clone:qs,index:zt,nextTick:Qi,cancelNextTick:Ua,detectDirection:Ks,getChild:Cr};ae.get=function(u){return u[Pt]};ae.mount=function(){for(var u=arguments.length,o=new Array(u),r=0;r<u;r++)o[r]=arguments[r];o[0].constructor===Array&&(o=o[0]),o.forEach(function(l){if(!l.prototype||!l.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(l));l.utils&&(ae.utils=on(on({},ae.utils),l.utils)),ti.mount(l)})};ae.create=function(u,o){return new ae(u,o)};ae.version=ty;var je=[],zr,Va,Wa=!1,Pa,La,io,Gr;function Sy(){function u(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this))}return u.prototype={dragStarted:function(r){var l=r.originalEvent;this.sortable.nativeDraggable?Ie(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ie(document,"pointermove",this._handleFallbackAutoScroll):l.touches?Ie(document,"touchmove",this._handleFallbackAutoScroll):Ie(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var l=r.originalEvent;!this.options.dragOverBubble&&!l.rootEl&&this._handleAutoScroll(l)},drop:function(){this.sortable.nativeDraggable?Ae(document,"dragover",this._handleAutoScroll):(Ae(document,"pointermove",this._handleFallbackAutoScroll),Ae(document,"touchmove",this._handleFallbackAutoScroll),Ae(document,"mousemove",this._handleFallbackAutoScroll)),Ns(),ji(),oy()},nulling:function(){io=Va=zr=Wa=Gr=Pa=La=null,je.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,l){var c=this,p=(r.touches?r.touches[0]:r).clientX,v=(r.touches?r.touches[0]:r).clientY,y=document.elementFromPoint(p,v);if(io=r,l||this.options.forceAutoScrollFallback||ei||yn||qr){Fa(r,this.options,y,l);var g=Ln(y,!0);Wa&&(!Gr||p!==Pa||v!==La)&&(Gr&&Ns(),Gr=setInterval(function(){var x=Ln(document.elementFromPoint(p,v),!0);x!==g&&(g=x,ji()),Fa(r,c.options,x,l)},10),Pa=p,La=v)}else{if(!this.options.bubbleScroll||Ln(y,!0)===rn()){ji();return}Fa(r,this.options,Ln(y,!1),!1)}}},mn(u,{pluginName:"scroll",initializeByDefault:!0})}function ji(){je.forEach(function(u){clearInterval(u.pid)}),je=[]}function Ns(){clearInterval(Gr)}var Fa=zs(function(u,o,r,l){if(!!o.scroll){var c=(u.touches?u.touches[0]:u).clientX,p=(u.touches?u.touches[0]:u).clientY,v=o.scrollSensitivity,y=o.scrollSpeed,g=rn(),x=!1,C;Va!==r&&(Va=r,ji(),zr=o.scroll,C=o.scrollFn,zr===!0&&(zr=Ln(r,!0)));var m=0,L=zr;do{var $=L,O=nt($),k=O.top,U=O.bottom,q=O.left,H=O.right,K=O.width,ue=O.height,M=void 0,V=void 0,Z=$.scrollWidth,ge=$.scrollHeight,J=oe($),Re=$.scrollLeft,_=$.scrollTop;$===g?(M=K<Z&&(J.overflowX==="auto"||J.overflowX==="scroll"||J.overflowX==="visible"),V=ue<ge&&(J.overflowY==="auto"||J.overflowY==="scroll"||J.overflowY==="visible")):(M=K<Z&&(J.overflowX==="auto"||J.overflowX==="scroll"),V=ue<ge&&(J.overflowY==="auto"||J.overflowY==="scroll"));var E=M&&(Math.abs(H-c)<=v&&Re+K<Z)-(Math.abs(q-c)<=v&&!!Re),A=V&&(Math.abs(U-p)<=v&&_+ue<ge)-(Math.abs(k-p)<=v&&!!_);if(!je[m])for(var B=0;B<=m;B++)je[B]||(je[B]={});(je[m].vx!=E||je[m].vy!=A||je[m].el!==$)&&(je[m].el=$,je[m].vx=E,je[m].vy=A,clearInterval(je[m].pid),(E!=0||A!=0)&&(x=!0,je[m].pid=setInterval(function(){l&&this.layer===0&&ae.active._onTouchMove(io);var ve=je[this.layer].vy?je[this.layer].vy*y:0,_e=je[this.layer].vx?je[this.layer].vx*y:0;typeof C=="function"&&C.call(ae.dragged.parentNode[Pt],_e,ve,u,io,je[this.layer].el)!=="continue"||Gs(je[this.layer].el,_e,ve)}.bind({layer:m}),24))),m++}while(o.bubbleScroll&&L!==g&&(L=Ln(L,!1)));Wa=x}},30),Qs=function(o){var r=o.originalEvent,l=o.putSortable,c=o.dragEl,p=o.activeSortable,v=o.dispatchSortableEvent,y=o.hideGhostForTarget,g=o.unhideGhostForTarget;if(!!r){var x=l||p;y();var C=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,m=document.elementFromPoint(C.clientX,C.clientY);g(),x&&!x.el.contains(m)&&(v("spill"),this.onSpill({dragEl:c,putSortable:l}))}};function qa(){}qa.prototype={startIndex:null,dragStart:function(o){var r=o.oldDraggableIndex;this.startIndex=r},onSpill:function(o){var r=o.dragEl,l=o.putSortable;this.sortable.captureAnimationState(),l&&l.captureAnimationState();var c=Cr(this.sortable.el,this.startIndex,this.options);c?this.sortable.el.insertBefore(r,c):this.sortable.el.appendChild(r),this.sortable.animateAll(),l&&l.animateAll()},drop:Qs};mn(qa,{pluginName:"revertOnSpill"});function Ya(){}Ya.prototype={onSpill:function(o){var r=o.dragEl,l=o.putSortable,c=l||this.sortable;c.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),c.animateAll()},drop:Qs};mn(Ya,{pluginName:"removeOnSpill"});ae.mount(new Sy);ae.mount(Ya,qa);var Cy=function(){var u=document.getSelection();if(!u.rangeCount)return function(){};for(var o=document.activeElement,r=[],l=0;l<u.rangeCount;l++)r.push(u.getRangeAt(l));switch(o.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":o.blur();break;default:o=null;break}return u.removeAllRanges(),function(){u.type==="Caret"&&u.removeAllRanges(),u.rangeCount||r.forEach(function(c){u.addRange(c)}),o&&o.focus()}},Ey=Cy,ks={"text/plain":"Text","text/html":"Url",default:"Text"},Ty="Copy to clipboard: #{key}, Enter";function Ay(u){var o=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return u.replace(/#{\s*key\s*}/g,o)}function Dy(u,o){var r,l,c,p,v,y,g=!1;o||(o={}),r=o.debug||!1;try{c=Ey(),p=document.createRange(),v=document.getSelection(),y=document.createElement("span"),y.textContent=u,y.ariaHidden="true",y.style.all="unset",y.style.position="fixed",y.style.top=0,y.style.clip="rect(0, 0, 0, 0)",y.style.whiteSpace="pre",y.style.webkitUserSelect="text",y.style.MozUserSelect="text",y.style.msUserSelect="text",y.style.userSelect="text",y.addEventListener("copy",function(C){if(C.stopPropagation(),o.format)if(C.preventDefault(),typeof C.clipboardData=="undefined"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=ks[o.format]||ks.default;window.clipboardData.setData(m,u)}else C.clipboardData.clearData(),C.clipboardData.setData(o.format,u);o.onCopy&&(C.preventDefault(),o.onCopy(C.clipboardData))}),document.body.appendChild(y),p.selectNodeContents(y),v.addRange(p);var x=document.execCommand("copy");if(!x)throw new Error("copy command was unsuccessful");g=!0}catch(C){r&&console.error("unable to copy using execCommand: ",C),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(o.format||"text",u),o.onCopy&&o.onCopy(window.clipboardData),g=!0}catch(m){r&&console.error("unable to copy using clipboardData: ",m),r&&console.error("falling back to prompt"),l=Ay("message"in o?o.message:Ty),window.prompt(l,u)}}finally{v&&(typeof v.removeRange=="function"?v.removeRange(p):v.removeAllRanges()),y&&document.body.removeChild(y),c()}return g}var $a=Dy;const Oy={__name:"DraggableTable",props:{filterCate:{type:Array,default:()=>[]}},emits:["select_row"],setup(u,{emit:o}){const r=u,l=Ce(()=>F.controller.getBreakPoints),c=O=>{F.controller.setBreakPoints(O.text)},p=we(),v=Ce(()=>r.filterCate),y=Ce(()=>F.topo.selectedEle),g=O=>{var U,q;let{row:k}=O;if(k.key==((U=y.value)==null?void 0:U.key)&&((q=y.value)==null?void 0:q.category))return"current-ele"},x=Ce(()=>F.controller.mode=="test"),C=O=>{var q,H;let{row:k,rowIndex:U}=O;if(k.key==((q=y.value)==null?void 0:q.key)&&((H=y.value)==null?void 0:H.category)){const K=p.value.$el;return Fn(()=>{K.querySelector(".current-ele").scrollIntoViewIfNeeded()}),{background:"#DC3C00!important",color:"#fff!important",fontWeight:"bold!important"}}return{color:k.errorStatus?"red":""}};jr(()=>{Fn(()=>{})});function m(O){const k={};O.forEach(q=>{k[q.text]?(k[q.text].forEach(H=>{H.errorStatus=!0}),q.errorStatus=!0):k[q.text]=[],k[q.text].push(q)});const U=[];for(const q in k)U.push(...k[q]);return U}const L=Ce(()=>{var U,q,H;const O=((H=(q=(U=F.storage.currentTopo)==null?void 0:U.config)==null?void 0:q.data)==null?void 0:H.nodeDataArray)||[],k={};return v.value.forEach(K=>{k[K]=!0}),m(O.filter(K=>v.value.length==0?!0:k[K.category]).map((K,ue)=>({...K,icon:za(K.category).icon})))}),$=O=>{o("select_row",O)};return(O,k)=>{const U=Y("el-table-column"),q=Y("el-switch"),H=Y("el-table");return le(),De(H,{height:"60vh",ref_key:"tableRef",ref:p,data:Q(L),stripe:"",style:{width:"100%"},"row-class-name":g,"cell-style":C,"cell-key":"id",onRowClick:$},{default:N(()=>[T(U,{fixed:"",prop:"type",align:"center","header-align":"center",label:"type",width:"60"},{default:N(({row:K})=>[pe("i",{class:Qr(["iconfont",K.icon])},null,2)]),_:1}),T(U,{prop:"text",label:"Name",align:"center","header-align":"center"},{default:N(({row:K})=>[pe("span",null,dt(K.text),1)]),_:1}),Q(x)?(le(),De(U,{key:0,prop:"text",label:"\u65AD\u70B9",align:"center","header-align":"center"},{default:N(({row:K})=>[T(q,{size:"small","model-value":Q(l)[K.text],"active-color":"#5470c6",onChange:ue=>c(K)},null,8,["model-value","onChange"])]),_:1})):Gt("",!0)]),_:1},8,["data"])}}};var Iy=an(Oy,[["__scopeId","data-v-4c3675cc"]]);const Ry=u=>(Tr("data-v-a6c90646"),u=u(),Er(),u),Ny={class:"record-selector"},ky=Ry(()=>pe("p",{class:"title el-collapse-item__header"},[pe("span",null,"\u5168\u90E8\u70B9")],-1)),Py={style:{margin:"0 10px 10px"}},Ly={style:{display:"flex","justify-content":"space-between"}},Fy={__name:"Nodes",emits:["select","show"],setup(u,{emit:o}){const r=we([]),l=Ce(()=>{var L,$,O;const C=((O=($=(L=F.storage.currentTopo)==null?void 0:L.config)==null?void 0:$.data)==null?void 0:O.nodeDataArray)||[],m={};return C.forEach(k=>{m[k.category]||(m[k.category]=k.category)}),Object.keys(m)}),c=we(!0),p=we(!0),v=C=>{F.model.toggleText(void 0,C)},y=C=>{F.model.toggleCaption(void 0,C)};function g(C){o("select",C)}function x(C){c.value=!0,p.value=!0,F.storage.currentTopo&&(c.value=!C.find(m=>m.isTextVisible===!1),p.value=!C.find(m=>m.isCaptionVisible===!1))}return jr(()=>{Fn(()=>{x(F.storage.currentTopo.config.data.nodeDataArray);function C(){const m=F.model;m?m.watch((L,$)=>{x($.nodeDataArray)}):setTimeout(C,100)}C()})}),(C,m)=>{const L=Y("el-checkbox"),$=Y("el-option"),O=Y("el-select");return le(),mt("div",Ny,[ky,pe("div",Py,[T(L,{modelValue:c.value,"onUpdate:modelValue":m[0]||(m[0]=k=>c.value=k),label:"\u663E\u793A\u540D\u79F0",size:"large",onChange:v},null,8,["modelValue"]),T(L,{modelValue:p.value,"onUpdate:modelValue":m[1]||(m[1]=k=>p.value=k),label:"\u663E\u793A\u8BF4\u660E",size:"large",onChange:y},null,8,["modelValue"])]),T(O,{modelValue:r.value,"onUpdate:modelValue":m[2]||(m[2]=k=>r.value=k),multiple:"",placeholder:"\u7C7B\u578B\u7B5B\u9009",style:{width:"230px",margin:"0 auto 20px"}},{default:N(()=>[(le(!0),mt(jn,null,Sr(Q(l),k=>(le(),De($,{key:k,label:k,value:k},{default:N(()=>[pe("p",Ly,[pe("i",{class:Qr(["iconfont",[Q(za)(k).icon]])},null,2),pe("span",null,dt(k),1)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"]),T(Q(Iy),{filterCate:r.value,onSelect_row:g},null,8,["filterCate"])])}}};var My=an(Fy,[["__scopeId","data-v-a6c90646"]]);const By={class:"el-menu-vertical"},Uy={class:"tools"},Vy={__name:"Menu",props:{show:{type:Boolean,default:!0}},emits:["show","select"],setup(u,{emit:o}){const r=p=>{o("select",p)},l=Ce(()=>F.controller.showAllNodes),c=()=>{F.controller.setShowNodes(!l.value)};return(p,v)=>{const y=Y("Fold"),g=Y("Expand"),x=Y("el-icon"),C=Y("el-button"),m=Y("el-scrollbar");return le(),mt("div",By,[pe("ul",Uy,[pe("li",null,[T(C,{class:Qr(["btn",{active:Q(l)}]),onClick:c,type:Q(l)?"primary":"text"},{default:N(()=>[T(x,null,{default:N(()=>[Q(l)?(le(),De(y,{key:0})):(le(),De(g,{key:1}))]),_:1})]),_:1},8,["type","class"])])]),yr(T(m,{noresize:"",class:"elements-list"},{default:N(()=>[T(My,{onSelect:r,style:{width:"250px"}})]),_:1},512),[[br,u.show]])])}}};var Wy=an(Vy,[["__scopeId","data-v-6c5a8ae2"]]),js={exports:{}};(function(u){var o={single_source_shortest_paths:function(r,l,c){var p={},v={};v[l]=0;var y=o.PriorityQueue.make();y.push(l,0);for(var g,x,C,m,L,$,O,k,U;!y.empty();){g=y.pop(),x=g.value,m=g.cost,L=r[x]||{};for(C in L)L.hasOwnProperty(C)&&($=L[C],O=m+$,k=v[C],U=typeof v[C]=="undefined",(U||k>O)&&(v[C]=O,y.push(C,O),p[C]=x))}if(typeof c!="undefined"&&typeof v[c]=="undefined"){var q=["Could not find a path from ",l," to ",c,"."].join("");throw new Error(q)}return p},extract_shortest_path_from_predecessor_list:function(r,l){for(var c=[],p=l;p;)c.push(p),r[p],p=r[p];return c.reverse(),c},find_path:function(r,l,c){var p=o.single_source_shortest_paths(r,l,c);return o.extract_shortest_path_from_predecessor_list(p,c)},PriorityQueue:{make:function(r){var l=o.PriorityQueue,c={},p;r=r||{};for(p in l)l.hasOwnProperty(p)&&(c[p]=l[p]);return c.queue=[],c.sorter=r.sorter||l.default_sorter,c},default_sorter:function(r,l){return r.cost-l.cost},push:function(r,l){var c={value:r,cost:l};this.queue.push(c),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};u.exports=o})(js);var $y=js.exports;class Hy{constructor(o){this.data=o,this.graph={};const r=o.link,l={},c={};r.map(p=>{let v=p.split(">");l[v[0]]=1,c[v[0]]=c[v[0]]||{},v.length==3?(c[v[0]][v[2]]=1,l[v[2]]=1):(c[v[0]][v[1]]=1,l[v[1]]=1)}),this.validNodes=l,this.graph=c}checkPath(o,r){if(!this.findPath(o,r).length)return"\u65E0\u6CD5\u4ECE: "+o.split(":")[0]+" \u5230\u8FBE: "+r.split(":")[0]}findPath(o,r){var l=$y.find_path,c=[];try{c=l(this.graph,o,r)}catch{console.log(o,">*>",r,"\u4E0D\u5B58\u5728")}return c}check(){const o=this.data,r=o.node,l=o.link,c=new Set;let p={},v={},y={},g;l.map(C=>