UNPKG

super-ui-plus

Version:

Page level components developed based on Element Plus.

6 lines 98.5 kB
/*! super-ui-plus v1.0.9 */(function(te,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],e):(te=typeof globalThis!="undefined"?globalThis:te||self,e(te.SuperuiPlus={},te.Vue,te.ElementPlus))})(this,function(te,e,De){"use strict";const jn=(r=[])=>({install:n=>{r.forEach(o=>n.component(o.name,o))}}),Bt={required:/.+/,positiveNumber:/^[0-9]*$/,effecNumber:/^(0|[1-9][0-9]*)$/,decimalsNumber:/^([1-9][0-9]*)+(.[0-9]{1,2})?$/,number:/^(\-|\+)?\d+(\.\d+)?$/,chinese:/^[\u4e00-\u9fa5]{0,}$/,email:/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,www:/^(http|https):\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?$/,mobile:/^1\d{10}$/,phone:/^(\(\d{3,4}\)-|\d{3,4}-)?\d{7,8}$/,idCard:/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,doubleByte:/[^\x00-\xff]/,zipCode:/[1-9]\d{5}(?!\d)/,centesimal:/([1-9]?\d|100)$/},Wn={positiveNumber:"\u8BF7\u8F93\u5165\u6B63\u6574\u6570",effecNumber:"\u8BF7\u8F93\u5165\u96F6\u548C\u975E\u96F6\u5F00\u5934\u7684\u6570\u5B57",decimalsNumber:"\u8BF7\u8F93\u5165\u975E\u96F6\u5F00\u5934\u7684\u6700\u591A\u5E26\u4E24\u4F4D\u5C0F\u6570\u7684\u6570\u5B57",number:"\u8BF7\u8F93\u5165\u6B63\u786E\u6570\u5B57",chinese:"\u8BF7\u8F93\u5165\u6C49\u5B57",email:"\u90AE\u7BB1\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165\u5408\u6CD5\u90AE\u7BB1",www:"\u8BF7\u8F93\u5165http://\u6216\u8005https://\u7F51\u5740",mobile:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7",phone:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u7535\u8BDD\u53F7\u7801",idCard:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801",doubleByte:"",zipCode:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u653F\u7F16\u7801",centesimal:"\u8BF7\u8F93\u5165\u4E00\u767E\u4EE5\u5185\u7684\u6B63\u6574\u6570"};var Gn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Xt={exports:{}};(function(r,t){(function(n,o){r.exports=o()})(Gn,function(){var n=1e3,o=6e4,a=36e5,l="millisecond",i="second",u="minute",d="hour",s="day",p="week",c="month",m="quarter",y="year",f="date",S="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var _=["th","st","nd","rd"],g=E%100;return"["+E+(_[(g-20)%10]||_[g]||_[0])+"]"}},k=function(E,_,g){var D=String(E);return!D||D.length>=_?E:""+Array(_+1-D.length).join(g)+E},h={s:k,z:function(E){var _=-E.utcOffset(),g=Math.abs(_),D=Math.floor(g/60),C=g%60;return(_<=0?"+":"-")+k(D,2,"0")+":"+k(C,2,"0")},m:function E(_,g){if(_.date()<g.date())return-E(g,_);var D=12*(g.year()-_.year())+(g.month()-_.month()),C=_.clone().add(D,c),F=g-C<0,I=_.clone().add(D+(F?-1:1),c);return+(-(D+(g-C)/(F?C-I:I-C))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:c,y,w:p,d:s,D:f,h:d,m:u,s:i,ms:l,Q:m}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},x="en",$={};$[x]=v;var z="$isDayjsObject",O=function(E){return E instanceof J||!(!E||!E[z])},P=function E(_,g,D){var C;if(!_)return x;if(typeof _=="string"){var F=_.toLowerCase();$[F]&&(C=F),g&&($[F]=g,C=F);var I=_.split("-");if(!C&&I.length>1)return E(I[0])}else{var W=_.name;$[W]=_,C=W}return!D&&C&&(x=C),C||!D&&x},H=function(E,_){if(O(E))return E.clone();var g=typeof _=="object"?_:{};return g.date=E,g.args=arguments,new J(g)},V=h;V.l=P,V.i=O,V.w=function(E,_){return H(E,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var J=function(){function E(g){this.$L=P(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[z]=!0}var _=E.prototype;return _.parse=function(g){this.$d=function(D){var C=D.date,F=D.utc;if(C===null)return new Date(NaN);if(V.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var I=C.match(R);if(I){var W=I[2]-1||0,G=(I[7]||"0").substring(0,3);return F?new Date(Date.UTC(I[1],W,I[3]||1,I[4]||0,I[5]||0,I[6]||0,G)):new Date(I[1],W,I[3]||1,I[4]||0,I[5]||0,I[6]||0,G)}}return new Date(C)}(g),this.init()},_.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},_.$utils=function(){return V},_.isValid=function(){return this.$d.toString()!==S},_.isSame=function(g,D){var C=H(g);return this.startOf(D)<=C&&C<=this.endOf(D)},_.isAfter=function(g,D){return H(g)<this.startOf(D)},_.isBefore=function(g,D){return this.endOf(D)<H(g)},_.$g=function(g,D,C){return V.u(g)?this[D]:this.set(C,g)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(g,D){var C=this,F=!!V.u(D)||D,I=V.p(g),W=function(Ve,de){var we=V.w(C.$u?Date.UTC(C.$y,de,Ve):new Date(C.$y,de,Ve),C);return F?we:we.endOf(s)},G=function(Ve,de){return V.w(C.toDate()[Ve].apply(C.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(de)),C)},re=this.$W,U=this.$M,ae=this.$D,Ne="set"+(this.$u?"UTC":"");switch(I){case y:return F?W(1,0):W(31,11);case c:return F?W(1,U):W(0,U+1);case p:var Te=this.$locale().weekStart||0,He=(re<Te?re+7:re)-Te;return W(F?ae-He:ae+(6-He),U);case s:case f:return G(Ne+"Hours",0);case d:return G(Ne+"Minutes",1);case u:return G(Ne+"Seconds",2);case i:return G(Ne+"Milliseconds",3);default:return this.clone()}},_.endOf=function(g){return this.startOf(g,!1)},_.$set=function(g,D){var C,F=V.p(g),I="set"+(this.$u?"UTC":""),W=(C={},C[s]=I+"Date",C[f]=I+"Date",C[c]=I+"Month",C[y]=I+"FullYear",C[d]=I+"Hours",C[u]=I+"Minutes",C[i]=I+"Seconds",C[l]=I+"Milliseconds",C)[F],G=F===s?this.$D+(D-this.$W):D;if(F===c||F===y){var re=this.clone().set(f,1);re.$d[W](G),re.init(),this.$d=re.set(f,Math.min(this.$D,re.daysInMonth())).$d}else W&&this.$d[W](G);return this.init(),this},_.set=function(g,D){return this.clone().$set(g,D)},_.get=function(g){return this[V.p(g)]()},_.add=function(g,D){var C,F=this;g=Number(g);var I=V.p(D),W=function(U){var ae=H(F);return V.w(ae.date(ae.date()+Math.round(U*g)),F)};if(I===c)return this.set(c,this.$M+g);if(I===y)return this.set(y,this.$y+g);if(I===s)return W(1);if(I===p)return W(7);var G=(C={},C[u]=o,C[d]=a,C[i]=n,C)[I]||1,re=this.$d.getTime()+g*G;return V.w(re,this)},_.subtract=function(g,D){return this.add(-1*g,D)},_.format=function(g){var D=this,C=this.$locale();if(!this.isValid())return C.invalidDate||S;var F=g||"YYYY-MM-DDTHH:mm:ssZ",I=V.z(this),W=this.$H,G=this.$m,re=this.$M,U=C.weekdays,ae=C.months,Ne=C.meridiem,Te=function(de,we,Fe,Ae){return de&&(de[we]||de(D,F))||Fe[we].slice(0,Ae)},He=function(de){return V.s(W%12||12,de,"0")},Ve=Ne||function(de,we,Fe){var Ae=de<12?"AM":"PM";return Fe?Ae.toLowerCase():Ae};return F.replace(b,function(de,we){return we||function(Fe){switch(Fe){case"YY":return String(D.$y).slice(-2);case"YYYY":return V.s(D.$y,4,"0");case"M":return re+1;case"MM":return V.s(re+1,2,"0");case"MMM":return Te(C.monthsShort,re,ae,3);case"MMMM":return Te(ae,re);case"D":return D.$D;case"DD":return V.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return Te(C.weekdaysMin,D.$W,U,2);case"ddd":return Te(C.weekdaysShort,D.$W,U,3);case"dddd":return U[D.$W];case"H":return String(W);case"HH":return V.s(W,2,"0");case"h":return He(1);case"hh":return He(2);case"a":return Ve(W,G,!0);case"A":return Ve(W,G,!1);case"m":return String(G);case"mm":return V.s(G,2,"0");case"s":return String(D.$s);case"ss":return V.s(D.$s,2,"0");case"SSS":return V.s(D.$ms,3,"0");case"Z":return I}return null}(de)||I.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(g,D,C){var F,I=this,W=V.p(D),G=H(g),re=(G.utcOffset()-this.utcOffset())*o,U=this-G,ae=function(){return V.m(I,G)};switch(W){case y:F=ae()/12;break;case c:F=ae();break;case m:F=ae()/3;break;case p:F=(U-re)/6048e5;break;case s:F=(U-re)/864e5;break;case d:F=U/a;break;case u:F=U/o;break;case i:F=U/n;break;default:F=U}return C?F:V.a(F)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return $[this.$L]},_.locale=function(g,D){if(!g)return this.$L;var C=this.clone(),F=P(g,D,!0);return F&&(C.$L=F),C},_.clone=function(){return V.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},E}(),j=J.prototype;return H.prototype=j,[["$ms",l],["$s",i],["$m",u],["$H",d],["$W",s],["$M",c],["$y",y],["$D",f]].forEach(function(E){j[E[1]]=function(_){return this.$g(_,E[0],E[1])}}),H.extend=function(E,_){return E.$i||(E(_,J,H),E.$i=!0),H},H.locale=P,H.isDayjs=O,H.unix=function(E){return H(1e3*E)},H.en=$[x],H.Ls=$,H.p={},H})})(Xt);var Ye=Xt.exports;const st=r=>r?`super-${r}`:"super";function Xn(r,t,n){if(!t)return n();Bt.mobile.test(t)||Bt.phone.test(t)?n():n(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u6216\u5EA7\u673A\u53F7\u7801"))}function je(r,t=[],n="",o=null){return o?[...t,{validator:o}]:r==="required"?[...t,{required:!0,message:`${n}\u5FC5\u586B`,trigger:["blur","change"]}]:r==="phone"?[...t,{validator:Xn,trigger:["blur","change"]}]:[...t,{pattern:Bt[r],message:Wn[r],trigger:["blur","change"]}]}function qn(){let r="";for(let t=0;t<32;t++){let n=Math.random()*16|0;(t===8||t===12||t===16||t===20)&&(r+="-");let o;t===12?o=4:t===16?o=n&3|8:o=n,r+=o.toString(16)}return r}function Un(r,t){if(Array.isArray(r))return r.length?r.join(" / "):"--";if(t&&r){if(typeof t=="function")return t(r);if(t==="year")return Ye(r).format("YYYY");if(t==="month")return Ye(r).format("MM");if(t==="date")return Ye(r).format("YYYY-MM-DD");if(t==="dateTime")return Ye(r).format("YYYY-MM-DD HH:mm:ss");if(t==="dateTHM")return Ye(r).format("YYYY-MM-DD HH:mm");if(t==="time")return Ye(r).format("HH:mm:ss")}return r!=null?r:"--"}function Zn(r,t){var n,o;return(o=(n=e.unref(r).find(l=>l.value===t))==null?void 0:n.label)!=null?o:""}const Jn=r=>typeof r=="function";function qt(r,t=[],n=""){return r.filter(function(o){return t.indexOf(o[n])!==-1})}function Ut(r,t=[],n=""){return r.filter(function(o){return t.indexOf(o[n])===-1})}/*! Element Plus Icons Vue v2.3.2 */var Qn=e.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(r){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),eo=Qn,to=e.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(r){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),no=to,oo=e.defineComponent({name:"DCaret",__name:"d-caret",setup(r){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),ro=oo,ao=e.defineComponent({name:"Delete",__name:"delete",setup(r){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),lo=ao,io=e.defineComponent({name:"InfoFilled",__name:"info-filled",setup(r){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),so=io,uo=e.defineComponent({name:"Operation",__name:"operation",setup(r){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),co=uo,fo=e.defineComponent({name:"Refresh",__name:"refresh",setup(r){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),po=fo,ho=e.defineComponent({name:"Search",__name:"search",setup(r){return(t,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),Zt=ho,Jt=e.defineComponent({__name:"SearchFormItem",props:{field:{},model:{}},setup(r){const t=r,n=e.computed(()=>t.model),o=e.computed(()=>{var u,d,s,p,c,m;return{label:(d=(u=t.field.fieldNames)==null?void 0:u.label)!=null?d:"label",value:(p=(s=t.field.fieldNames)==null?void 0:s.value)!=null?p:"value",children:(m=(c=t.field.fieldNames)==null?void 0:c.children)!=null?m:"children"}}),a=e.computed(()=>{var u,d;return(d=(u=t.field)==null?void 0:u.options)!=null?d:[]}),l=e.computed(()=>{var u,d,s,p,c;return{placeholder:(c=(d=(u=t.field)==null?void 0:u.componentProps)==null?void 0:d.placeholder)!=null?c:(p=(s=t.field)==null?void 0:s.el)!=null&&p.includes("ElInput")?"\u8BF7\u8F93\u5165":"\u8BF7\u9009\u62E9"}}),i={ElSelect:"el-option",ElCheckboxGroup:"el-checkbox",ElRadioGroup:"el-radio"};return(u,d)=>{var s,p,c,m;return e.openBlock(),e.createBlock(e.resolveDynamicComponent((p=(s=u.field)==null?void 0:s.render)!=null?p:u.field.el),e.mergeProps({...t.field.componentProps,searchParam:n.value,...l.value},{modelValue:n.value[u.field.name],"onUpdate:modelValue":d[0]||(d[0]=y=>n.value[u.field.name]=y),modelModifiers:{trim:!0},data:u.field.el==="ElTreeSelect"?a.value:[],options:["ElCascader","ElSelectV2"].includes(u.field.el)?a.value:[]}),e.createSlots({default:e.withCtx(()=>[["ElSelect","ElCheckboxGroup","ElRadioGroup"].find(y=>{var f;return y===((f=u.field)==null?void 0:f.el)})?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(y,f)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i[u.field.el]),{key:f,label:y[o.value.label],value:y[o.value.value]},null,8,["label","value"]))),128)):e.renderSlot(u.$slots,"default",{key:1})]),_:2},[e.renderList((c=u.field)==null?void 0:c.scopedSlots,(y,f)=>({name:f,fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y())))])})),((m=u.field)==null?void 0:m.el)==="ElCascader"?{name:"default",fn:e.withCtx(({data:y})=>[e.createElementVNode("span",null,e.toDisplayString(y[o.value.label]),1)]),key:"0"}:void 0]),1040,["modelValue","data","options"])}}}),Qt=e.defineComponent({name:"SuperGrid",__name:"index",props:{cols:{default:()=>({xs:1,sm:2,md:3,lg:4,xl:4})},collapsed:{type:Boolean,default:!1},collapsedRows:{default:1},gap:{default:0}},setup(r,{expose:t}){const n=r;e.onBeforeMount(()=>n.collapsed&&d()),e.onMounted(()=>{o({target:{innerWidth:window.innerWidth}}),window.addEventListener("resize",o)}),e.onActivated(()=>{o({target:{innerWidth:window.innerWidth}}),window.addEventListener("resize",o)}),e.onUnmounted(()=>{window.removeEventListener("resize",o)}),e.onDeactivated(()=>{window.removeEventListener("resize",o)});const o=c=>{const m=c.target.innerWidth;switch(!!m){case m<768:a.value="xs";break;case(m>=768&&m<992):a.value="sm";break;case(m>=992&&m<1200):a.value="md";break;case(m>=1200&&m<1920):a.value="lg";break;case m>=1920:a.value="xl";break}};e.provide("gap",Array.isArray(n.gap)?n.gap[0]:n.gap);const a=e.ref("xl");e.provide("breakPoint",a);const l=e.ref(-1);e.provide("shouldHiddenIndex",l);const i=e.computed(()=>{var c;return typeof n.cols=="object"&&(c=n.cols[a.value])!=null?c:n.cols});e.provide("cols",i);const u=e.useSlots().default({})||[],d=()=>{var c,m,y,f,S,R,b,v,k,h,x,$,z,O,P,H;const V=[];let J=null;u.forEach(E=>{var _;typeof E.type=="object"&&E.type.name==="SuperGridItem"&&((_=E.props)==null?void 0:_.suffix)!==void 0&&(J=E),typeof E.type=="symbol"&&Array.isArray(E.children)&&V.push(...E.children)});let j=0;J&&(j=((f=(y=(c=J.props[a.value])==null?void 0:c.span)!=null?y:(m=J.props)==null?void 0:m.span)!=null?f:1)+((v=(b=(S=J.props[a.value])==null?void 0:S.offset)!=null?b:(R=J.props)==null?void 0:R.offset)!=null?v:0));try{let E=!1,_=0;for(let g=0;g<V.length;g++){const D=V[g];if(_+=(($=(x=(k=D.props[a.value])==null?void 0:k.span)!=null?x:(h=D.props)==null?void 0:h.span)!=null?$:1)+((H=(P=(z=D.props[a.value])==null?void 0:z.offset)!=null?P:(O=D.props)==null?void 0:O.offset)!=null?H:0),Number(_)>n.collapsedRows*i.value-j){l.value=g,E=!0;break}}E||(l.value=-1)}catch(E){console.warn(E)}};e.watch(()=>a.value,()=>{n.collapsed&&d()}),e.watch(()=>n.collapsed,c=>{if(c)return d();l.value=-1});const s=e.computed(()=>typeof n.gap=="number"?`${n.gap}px`:Array.isArray(n.gap)?`${n.gap[1]}px ${n.gap[0]}px`:"unset"),p=e.computed(()=>({display:"grid",gridGap:s.value,gridTemplateColumns:`repeat(${i.value}, minmax(0, 1fr))`}));return t({breakPoint:a}),(c,m)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(p.value)},[e.renderSlot(c.$slots,"default")],4))}}),$t=e.defineComponent({name:"SuperGridItem",__name:"index",props:{offset:{default:0},span:{default:1},suffix:{type:Boolean,default:!1},xs:{default:void 0},sm:{default:void 0},md:{default:void 0},lg:{default:void 0},xl:{default:void 0},show:{type:Boolean,default:!0}},setup(r){const t=r,n=e.useAttrs(),o=e.ref(!0),a=e.inject("breakPoint",e.ref("xl")),l=e.inject("shouldHiddenIndex",e.ref(-1));e.watch(()=>[l.value,a.value],s=>{n.index&&(o.value=!(s[0]!==-1&&parseInt(n.index)>=Number(s[0])))},{immediate:!0});const i=e.inject("gap",0),u=e.inject("cols",e.ref(4)),d=e.computed(()=>{var s,p,c,m;const y=(p=(s=t[a.value])==null?void 0:s.span)!=null?p:t.span,f=(m=(c=t[a.value])==null?void 0:c.offset)!=null?m:t.offset;return t.suffix?{gridColumnStart:u.value-y-f+1,gridColumnEnd:`span ${y+f}`,marginLeft:f!==0?`calc(((100% + ${i}px) / ${y+f}) * ${f})`:"unset"}:{gridColumn:`span ${y+f>u.value?u.value:y+f}/span ${y+f>u.value?u.value:y+f}`,marginLeft:f!==0?`calc(((100% + ${i}px) / ${y+f}) * ${f})`:"unset"}});return(s,p)=>o.value&&s.show?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(d.value)},[e.renderSlot(s.$slots,"default")],4)):e.createCommentVNode("v-if",!0)}}),mo=e.defineComponent({name:"SuperFormGrid",__name:"index",props:{field:{default:()=>[]},model:{},searchCol:{default:()=>({xs:1,sm:2,md:3,lg:4,xl:4})},collapsed:{type:Boolean,default:()=>!1},ifCardStyle:{type:Boolean,default:()=>!0}},setup(r,{expose:t}){const n=r,o=e.ref(),a=(s=[],p={})=>{if(p.valueType&&p.required){const c={required:!0,message:`${p.label}\u5FC5\u586B`};return je(p.valueType,s?[c,...s]:[c],p.label)}else{if(p.required)return je("required",s,p.label);if(p.valueType)return je(p.valueType,s,p.label)}return[...s]},l=s=>{var p,c;return{span:s==null?void 0:s.span,offset:(p=s==null?void 0:s.offset)!=null?p:0,xs:s==null?void 0:s.xs,sm:s==null?void 0:s.sm,md:s==null?void 0:s.md,lg:s==null?void 0:s.lg,xl:s==null?void 0:s.xl,show:typeof(s==null?void 0:s.show)=="function"?s.show():(c=s==null?void 0:s.show)!=null?c:!0}},i=e.ref(),u=e.computed(()=>{var s;return(s=i.value)==null?void 0:s.breakPoint}),d=e.computed(()=>{let s=!1;return n.field.reduce((p,c)=>{var m,y,f,S,R,b;return p+=((f=(y=(m=c[u.value])==null?void 0:m.span)!=null?y:c==null?void 0:c.span)!=null?f:1)+((b=(R=(S=c[u.value])==null?void 0:S.offset)!=null?R:c==null?void 0:c.offset)!=null?b:0),typeof n.searchCol!="number"?p>=n.searchCol[u.value]&&(s=!0):p>=n.searchCol&&(s=!0),p},0),s});return t({formRef:o,gridRef:i,showCollapse:d}),(s,p)=>{const c=e.resolveComponent("el-icon"),m=e.resolveComponent("el-tooltip"),y=e.resolveComponent("el-space");return s.field.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["table-search",{card:s.ifCardStyle}])},[e.createVNode(e.unref(De.ElForm),e.mergeProps({ref_key:"formRef",ref:o,model:s.model},s.$attrs),{default:e.withCtx(()=>[e.createVNode(Qt,{ref_key:"gridRef",ref:i,collapsed:s.collapsed,gap:[20,0],cols:s.searchCol},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.field,(f,S)=>(e.openBlock(),e.createBlock($t,e.mergeProps({key:S},{ref_for:!0},l(f),{index:S}),{default:e.withCtx(()=>{var R,b;return[!(f!=null&&f.slotName)||!((R=f==null?void 0:f.slotName)!=null&&R.includes("Component"))?(e.openBlock(),e.createBlock(e.unref(De.ElFormItem),e.mergeProps({key:0,prop:f.name},{ref_for:!0},f.formItemProps,{rules:a((b=f.formItemProps)==null?void 0:b.rules,f)}),{label:e.withCtx(()=>[e.createVNode(y,{size:4},{default:e.withCtx(()=>{var v;return[e.createElementVNode("span",null,e.toDisplayString(`${(v=f.label)!=null?v:f.label}`),1),f!=null&&f.tooltip?(e.openBlock(),e.createBlock(m,{key:0,effect:"dark",content:f==null?void 0:f.tooltip,placement:"top"},{default:e.withCtx(()=>[e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(e.unref(so))]),_:1})]),_:1},8,["content"])):e.createCommentVNode("v-if",!0)]}),_:2},1024),p[0]||(p[0]=e.createElementVNode("span",null,"\xA0:",-1))]),default:e.withCtx(()=>[f.slotName?e.renderSlot(s.$slots,f.slotName,{key:0},void 0,!0):(e.openBlock(),e.createBlock(Jt,{key:1,field:f,model:s.model},null,8,["field","model"]))]),_:2},1040,["prop","rules"])):e.renderSlot(s.$slots,f.slotName,{key:1},void 0,!0)]}),_:2},1040,["index"]))),128)),e.createVNode($t,{suffix:""},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"append",{},void 0,!0)]),_:3})]),_:3},8,["collapsed","cols"])]),_:3},16,["model"]),e.createCommentVNode(" \u9ED8\u8BA4\u63D2\u69FD "),e.renderSlot(s.$slots,"default",{},void 0,!0)],2)):e.createCommentVNode("v-if",!0)}}});function ut(r,t){t===void 0&&(t={});var n=t.insertAt;if(!(!r||typeof document=="undefined")){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n==="top"&&o.firstChild?o.insertBefore(a,o.firstChild):o.appendChild(a),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r))}}var go=".operation[data-v-14dfe1bc]{align-items:center;display:flex;justify-content:flex-end}";ut(go);var dt=(r,t)=>{const n=r.__vccOpts||r;for(const[o,a]of t)n[o]=a;return n},en=dt(mo,[["__scopeId","data-v-14dfe1bc"]]);const tn=en,nn=Qt,on=$t;var bo=e.defineComponent({name:"SuperHeader",__name:"index",props:{divider:{type:Boolean,default:!1},size:{default:"small"},border:{type:Boolean,default:!1}},setup(r){const t=r,n=st("header"),o=e.useSlots();return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(n),`${e.unref(n)}__${t.size}`,{border:t.border}])},[e.createElementVNode("div",{class:e.normalizeClass(`${e.unref(n)}__block`)},null,2),e.createElementVNode("div",{class:e.normalizeClass([`${e.unref(n)}-text`,{full:!t.divider}])},[e.createCommentVNode(" @slot \u6807\u9898\u5185\u5BB9 "),e.renderSlot(a.$slots,"default")],2),t.divider?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(`${e.unref(n)}__divider`)},null,2)):e.createCommentVNode("v-if",!0),e.unref(o).right?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`${e.unref(n)}-right`)},[e.createCommentVNode(" @slot \u53F3\u4FA7\u6269\u5C55\u63D2\u69FD "),e.renderSlot(a.$slots,"right")],2)):e.createCommentVNode("v-if",!0)],2))}});const rn=bo;/**! * Sortable 1.15.6 * @author RubaXa <trash@rubaxa.org> * @author owenm <owen23355@gmail.com> * @license MIT */function an(r,t){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,o)}return n}function Se(r){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?an(Object(n),!0).forEach(function(o){yo(r,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(n,o))})}return r}function ct(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ct=function(t){return typeof t}:ct=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ct(r)}function yo(r,t,n){return t in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}function Be(){return Be=Object.assign||function(r){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},Be.apply(this,arguments)}function vo(r,t){if(r==null)return{};var n={},o=Object.keys(r),a,l;for(l=0;l<o.length;l++)a=o[l],!(t.indexOf(a)>=0)&&(n[a]=r[a]);return n}function wo(r,t){if(r==null)return{};var n=vo(r,t),o,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);for(a=0;a<l.length;a++)o=l[a],!(t.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(r,o)||(n[o]=r[o]))}return n}var _o="1.15.6";function $e(r){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(r)}var xe=$e(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Je=$e(/Edge/i),ln=$e(/firefox/i),Qe=$e(/safari/i)&&!$e(/chrome/i)&&!$e(/android/i),xt=$e(/iP(ad|od|hone)/i),sn=$e(/chrome/i)&&$e(/android/i),un={capture:!1,passive:!1};function Y(r,t,n){r.addEventListener(t,n,!xe&&un)}function L(r,t,n){r.removeEventListener(t,n,!xe&&un)}function ft(r,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),r)try{if(r.matches)return r.matches(t);if(r.msMatchesSelector)return r.msMatchesSelector(t);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function dn(r){return r.host&&r!==document&&r.host.nodeType?r.host:r.parentNode}function ye(r,t,n,o){if(r){n=n||document;do{if(t!=null&&(t[0]===">"?r.parentNode===n&&ft(r,t):ft(r,t))||o&&r===n)return r;if(r===n)break}while(r=dn(r))}return null}var cn=/\s+/g;function me(r,t,n){if(r&&t)if(r.classList)r.classList[n?"add":"remove"](t);else{var o=(" "+r.className+" ").replace(cn," ").replace(" "+t+" "," ");r.className=(o+(n?" "+t:"")).replace(cn," ")}}function N(r,t,n){var o=r&&r.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(r,""):r.currentStyle&&(n=r.currentStyle),t===void 0?n:n[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=n+(typeof n=="string"?"":"px")}}function We(r,t){var n="";if(typeof r=="string")n=r;else do{var o=N(r,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!t&&(r=r.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function fn(r,t,n){if(r){var o=r.getElementsByTagName(t),a=0,l=o.length;if(n)for(;a<l;a++)n(o[a],a);return o}return[]}function Ee(){var r=document.scrollingElement;return r||document.documentElement}function ne(r,t,n,o,a){if(!(!r.getBoundingClientRect&&r!==window)){var l,i,u,d,s,p,c;if(r!==window&&r.parentNode&&r!==Ee()?(l=r.getBoundingClientRect(),i=l.top,u=l.left,d=l.bottom,s=l.right,p=l.height,c=l.width):(i=0,u=0,d=window.innerHeight,s=window.innerWidth,p=window.innerHeight,c=window.innerWidth),(t||n)&&r!==window&&(a=a||r.parentNode,!xe))do if(a&&a.getBoundingClientRect&&(N(a,"transform")!=="none"||n&&N(a,"position")!=="static")){var m=a.getBoundingClientRect();i-=m.top+parseInt(N(a,"border-top-width")),u-=m.left+parseInt(N(a,"border-left-width")),d=i+l.height,s=u+l.width;break}while(a=a.parentNode);if(o&&r!==window){var y=We(a||r),f=y&&y.a,S=y&&y.d;y&&(i/=S,u/=f,c/=f,p/=S,d=i+p,s=u+c)}return{top:i,left:u,bottom:d,right:s,width:c,height:p}}}function pn(r,t,n){for(var o=Oe(r,!0),a=ne(r)[t];o;){var l=ne(o)[n],i=void 0;if(i=a>=l,!i)return o;if(o===Ee())break;o=Oe(o,!1)}return!1}function Ge(r,t,n,o){for(var a=0,l=0,i=r.children;l<i.length;){if(i[l].style.display!=="none"&&i[l]!==T.ghost&&(o||i[l]!==T.dragged)&&ye(i[l],n.draggable,r,!1)){if(a===t)return i[l];a++}l++}return null}function Nt(r,t){for(var n=r.lastElementChild;n&&(n===T.ghost||N(n,"display")==="none"||t&&!ft(n,t));)n=n.previousElementSibling;return n||null}function be(r,t){var n=0;if(!r||!r.parentNode)return-1;for(;r=r.previousElementSibling;)r.nodeName.toUpperCase()!=="TEMPLATE"&&r!==T.clone&&(!t||ft(r,t))&&n++;return n}function hn(r){var t=0,n=0,o=Ee();if(r)do{var a=We(r),l=a.a,i=a.d;t+=r.scrollLeft*l,n+=r.scrollTop*i}while(r!==o&&(r=r.parentNode));return[t,n]}function Co(r,t){for(var n in r)if(!!r.hasOwnProperty(n)){for(var o in t)if(t.hasOwnProperty(o)&&t[o]===r[n][o])return Number(n)}return-1}function Oe(r,t){if(!r||!r.getBoundingClientRect)return Ee();var n=r,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=N(n);if(n.clientWidth<n.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Ee();if(o||t)return n;o=!0}}while(n=n.parentNode);return Ee()}function So(r,t){if(r&&t)for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r}function Tt(r,t){return Math.round(r.top)===Math.round(t.top)&&Math.round(r.left)===Math.round(t.left)&&Math.round(r.height)===Math.round(t.height)&&Math.round(r.width)===Math.round(t.width)}var et;function mn(r,t){return function(){if(!et){var n=arguments,o=this;n.length===1?r.call(o,n[0]):r.apply(o,n),et=setTimeout(function(){et=void 0},t)}}}function Eo(){clearTimeout(et),et=void 0}function gn(r,t,n){r.scrollLeft+=t,r.scrollTop+=n}function bn(r){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(r).cloneNode(!0):n?n(r).clone(!0)[0]:r.cloneNode(!0)}function yn(r,t,n){var o={};return Array.from(r.children).forEach(function(a){var l,i,u,d;if(!(!ye(a,t.draggable,r,!1)||a.animated||a===n)){var s=ne(a);o.left=Math.min((l=o.left)!==null&&l!==void 0?l:1/0,s.left),o.top=Math.min((i=o.top)!==null&&i!==void 0?i:1/0,s.top),o.right=Math.max((u=o.right)!==null&&u!==void 0?u:-1/0,s.right),o.bottom=Math.max((d=o.bottom)!==null&&d!==void 0?d:-1/0,s.bottom)}}),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var fe="Sortable"+new Date().getTime();function ko(){var r=[],t;return{captureAnimationState:function(){if(r=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(a){if(!(N(a,"display")==="none"||a===T.ghost)){r.push({target:a,rect:ne(a)});var l=Se({},r[r.length-1].rect);if(a.thisAnimationDuration){var i=We(a,!0);i&&(l.top-=i.f,l.left-=i.e)}a.fromRect=l}})}},addAnimationState:function(o){r.push(o)},removeAnimationState:function(o){r.splice(Co(r,{target:o}),1)},animateAll:function(o){var a=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var l=!1,i=0;r.forEach(function(u){var d=0,s=u.target,p=s.fromRect,c=ne(s),m=s.prevFromRect,y=s.prevToRect,f=u.rect,S=We(s,!0);S&&(c.top-=S.f,c.left-=S.e),s.toRect=c,s.thisAnimationDuration&&Tt(m,c)&&!Tt(p,c)&&(f.top-c.top)/(f.left-c.left)===(p.top-c.top)/(p.left-c.left)&&(d=Bo(f,m,y,a.options)),Tt(c,p)||(s.prevFromRect=p,s.prevToRect=c,d||(d=a.options.animation),a.animate(s,f,c,d)),d&&(l=!0,i=Math.max(i,d),clearTimeout(s.animationResetTimer),s.animationResetTimer=setTimeout(function(){s.animationTime=0,s.prevFromRect=null,s.fromRect=null,s.prevToRect=null,s.thisAnimationDuration=null},d),s.thisAnimationDuration=d)}),clearTimeout(t),l?t=setTimeout(function(){typeof o=="function"&&o()},i):typeof o=="function"&&o(),r=[]},animate:function(o,a,l,i){if(i){N(o,"transition",""),N(o,"transform","");var u=We(this.el),d=u&&u.a,s=u&&u.d,p=(a.left-l.left)/(d||1),c=(a.top-l.top)/(s||1);o.animatingX=!!p,o.animatingY=!!c,N(o,"transform","translate3d("+p+"px,"+c+"px,0)"),this.forRepaintDummy=Do(o),N(o,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),N(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){N(o,"transition",""),N(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},i)}}}}function Do(r){return r.offsetWidth}function Bo(r,t,n,o){return Math.sqrt(Math.pow(t.top-r.top,2)+Math.pow(t.left-r.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}var Xe=[],Vt={initializeByDefault:!0},tt={mount:function(t){for(var n in Vt)Vt.hasOwnProperty(n)&&!(n in t)&&(t[n]=Vt[n]);Xe.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Xe.push(t)},pluginEvent:function(t,n,o){var a=this;this.eventCanceled=!1,o.cancel=function(){a.eventCanceled=!0};var l=t+"Global";Xe.forEach(function(i){!n[i.pluginName]||(n[i.pluginName][l]&&n[i.pluginName][l](Se({sortable:n},o)),n.options[i.pluginName]&&n[i.pluginName][t]&&n[i.pluginName][t](Se({sortable:n},o)))})},initializePlugins:function(t,n,o,a){Xe.forEach(function(u){var d=u.pluginName;if(!(!t.options[d]&&!u.initializeByDefault)){var s=new u(t,n,t.options);s.sortable=t,s.options=t.options,t[d]=s,Be(o,s.defaults)}});for(var l in t.options)if(!!t.options.hasOwnProperty(l)){var i=this.modifyOption(t,l,t.options[l]);typeof i!="undefined"&&(t.options[l]=i)}},getEventProperties:function(t,n){var o={};return Xe.forEach(function(a){typeof a.eventProperties=="function"&&Be(o,a.eventProperties.call(n[a.pluginName],t))}),o},modifyOption:function(t,n,o){var a;return Xe.forEach(function(l){!t[l.pluginName]||l.optionListeners&&typeof l.optionListeners[n]=="function"&&(a=l.optionListeners[n].call(t[l.pluginName],o))}),a}};function $o(r){var t=r.sortable,n=r.rootEl,o=r.name,a=r.targetEl,l=r.cloneEl,i=r.toEl,u=r.fromEl,d=r.oldIndex,s=r.newIndex,p=r.oldDraggableIndex,c=r.newDraggableIndex,m=r.originalEvent,y=r.putSortable,f=r.extraEventProperties;if(t=t||n&&n[fe],!!t){var S,R=t.options,b="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!xe&&!Je?S=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(S=document.createEvent("Event"),S.initEvent(o,!0,!0)),S.to=i||n,S.from=u||n,S.item=a||n,S.clone=l,S.oldIndex=d,S.newIndex=s,S.oldDraggableIndex=p,S.newDraggableIndex=c,S.originalEvent=m,S.pullMode=y?y.lastPutMode:void 0;var v=Se(Se({},f),tt.getEventProperties(o,t));for(var k in v)S[k]=v[k];n&&n.dispatchEvent(S),R[b]&&R[b].call(t,S)}}var xo=["evt"],pe=function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.evt,l=wo(o,xo);tt.pluginEvent.bind(T)(t,n,Se({dragEl:w,parentEl:ee,ghostEl:A,rootEl:q,nextEl:ze,lastDownEl:pt,cloneEl:Z,cloneHidden:Me,dragStarted:ot,putSortable:ie,activeSortable:T.active,originalEvent:a,oldIndex:qe,oldDraggableIndex:nt,newIndex:ge,newDraggableIndex:Re,hideGhostForTarget:kn,unhideGhostForTarget:Dn,cloneNowHidden:function(){Me=!0},cloneNowShown:function(){Me=!1},dispatchSortableEvent:function(u){ce({sortable:n,name:u,originalEvent:a})}},l))};function ce(r){$o(Se({putSortable:ie,cloneEl:Z,targetEl:w,rootEl:q,oldIndex:qe,oldDraggableIndex:nt,newIndex:ge,newDraggableIndex:Re},r))}var w,ee,A,q,ze,pt,Z,Me,qe,ge,nt,Re,ht,ie,Ue=!1,mt=!1,gt=[],Ke,ve,Ft,At,vn,wn,ot,Ze,rt,at=!1,bt=!1,yt,ue,It=[],Pt=!1,vt=[],wt=typeof document!="undefined",_t=xt,_n=Je||xe?"cssFloat":"float",No=wt&&!sn&&!xt&&"draggable"in document.createElement("div"),Cn=function(){if(!!wt){if(xe)return!1;var r=document.createElement("x");return r.style.cssText="pointer-events:auto",r.style.pointerEvents==="auto"}}(),Sn=function(t,n){var o=N(t),a=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),l=Ge(t,0,n),i=Ge(t,1,n),u=l&&N(l),d=i&&N(i),s=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+ne(l).width,p=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+ne(i).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(l&&u.float&&u.float!=="none"){var c=u.float==="left"?"left":"right";return i&&(d.clear==="both"||d.clear===c)?"vertical":"horizontal"}return l&&(u.display==="block"||u.display==="flex"||u.display==="table"||u.display==="grid"||s>=a&&o[_n]==="none"||i&&o[_n]==="none"&&s+p>a)?"vertical":"horizontal"},To=function(t,n,o){var a=o?t.left:t.top,l=o?t.right:t.bottom,i=o?t.width:t.height,u=o?n.left:n.top,d=o?n.right:n.bottom,s=o?n.width:n.height;return a===u||l===d||a+i/2===u+s/2},Vo=function(t,n){var o;return gt.some(function(a){var l=a[fe].options.emptyInsertThreshold;if(!(!l||Nt(a))){var i=ne(a),u=t>=i.left-l&&t<=i.right+l,d=n>=i.top-l&&n<=i.bottom+l;if(u&&d)return o=a}}),o},En=function(t){function n(l,i){return function(u,d,s,p){var c=u.options.group.name&&d.options.group.name&&u.options.group.name===d.options.group.name;if(l==null&&(i||c))return!0;if(l==null||l===!1)return!1;if(i&&l==="clone")return l;if(typeof l=="function")return n(l(u,d,s,p),i)(u,d,s,p);var m=(i?u:d).options.group.name;return l===!0||typeof l=="string"&&l===m||l.join&&l.indexOf(m)>-1}}var o={},a=t.group;(!a||ct(a)!="object")&&(a={name:a}),o.name=a.name,o.checkPull=n(a.pull,!0),o.checkPut=n(a.put),o.revertClone=a.revertClone,t.group=o},kn=function(){!Cn&&A&&N(A,"display","none")},Dn=function(){!Cn&&A&&N(A,"display","")};wt&&!sn&&document.addEventListener("click",function(r){if(mt)return r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.stopImmediatePropagation&&r.stopImmediatePropagation(),mt=!1,!1},!0);var Le=function(t){if(w){t=t.touches?t.touches[0]:t;var n=Vo(t.clientX,t.clientY);if(n){var o={};for(var a in t)t.hasOwnProperty(a)&&(o[a]=t[a]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[fe]._onDragOver(o)}}},Fo=function(t){w&&w.parentNode[fe]._isOutsideThisEl(t.target)};function T(r,t){if(!(r&&r.nodeType&&r.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(r));this.el=r,this.options=t=Be({},t),r[fe]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(r.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Sn(r,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,u){i.setData("Text",u.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:T.supportPointer!==!1&&"PointerEvent"in window&&(!Qe||xt),emptyInsertThreshold:5};tt.initializePlugins(this,r,n);for(var o in n)!(o in t)&&(t[o]=n[o]);En(t);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=t.forceFallback?!1:No,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Y(r,"pointerdown",this._onTapStart):(Y(r,"mousedown",this._onTapStart),Y(r,"touchstart",this._onTapStart)),this.nativeDraggable&&(Y(r,"dragover",this),Y(r,"dragenter",this)),gt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Be(this,ko())}T.prototype={constructor:T,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ze=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,w):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var n=this,o=this.el,a=this.options,l=a.preventOnFilter,i=t.type,u=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,d=(u||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||d,p=a.filter;if(Ko(o),!w&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||a.disabled)&&!s.isContentEditable&&!(!this.nativeDraggable&&Qe&&d&&d.tagName.toUpperCase()==="SELECT")&&(d=ye(d,a.draggable,o,!1),!(d&&d.animated)&&pt!==d)){if(qe=be(d),nt=be(d,a.draggable),typeof p=="function"){if(p.call(this,t,d,this)){ce({sortable:n,rootEl:s,name:"filter",targetEl:d,toEl:o,fromEl:o}),pe("filter",n,{evt:t}),l&&t.preventDefault();return}}else if(p&&(p=p.split(",").some(function(c){if(c=ye(s,c.trim(),o,!1),c)return ce({sortable:n,rootEl:c,name:"filter",targetEl:d,fromEl:o,toEl:o}),pe("filter",n,{evt:t}),!0}),p)){l&&t.preventDefault();return}a.handle&&!ye(s,a.handle,o,!1)||this._prepareDragStart(t,u,d)}}},_prepareDragStart:function(t,n,o){var a=this,l=a.el,i=a.options,u=l.ownerDocument,d;if(o&&!w&&o.parentNode===l){var s=ne(o);if(q=l,w=o,ee=w.parentNode,ze=w.nextSibling,pt=o,ht=i.group,T.dragged=w,Ke={target:w,clientX:(n||t).clientX,clientY:(n||t).clientY},vn=Ke.clientX-s.left,wn=Ke.clientY-s.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,w.style["will-change"]="all",d=function(){if(pe("delayEnded",a,{evt:t}),T.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!ln&&a.nativeDraggable&&(w.draggable=!0),a._triggerDragStart(t,n),ce({sortable:a,name:"choose",originalEvent:t}),me(w,i.chosenClass,!0)},i.ignore.split(",").forEach(function(p){fn(w,p.trim(),Ot)}),Y(u,"dragover",Le),Y(u,"mousemove",Le),Y(u,"touchmove",Le),i.supportPointer?(Y(u,"pointerup",a._onDrop),!this.nativeDraggable&&Y(u,"pointercancel",a._onDrop)):(Y(u,"mouseup",a._onDrop),Y(u,"touchend",a._onDrop),Y(u,"touchcancel",a._onDrop)),ln&&this.nativeDraggable&&(this.options.touchStartThreshold=4,w.draggable=!0),pe("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Je||xe))){if(T.eventCanceled){this._onDrop();return}i.supportPointer?(Y(u,"pointerup",a._disableDelayedDrag),Y(u,"pointercancel",a._disableDelayedDrag)):(Y(u,"mouseup",a._disableDelayedDrag),Y(u,"touchend",a._disableDelayedDrag),Y(u,"touchcancel",a._disableDelayedDrag)),Y(u,"mousemove",a._delayedDragTouchMoveHandler),Y(u,"touchmove",a._delayedDragTouchMoveHandler),i.supportPointer&&Y(u,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(d,i.delay)}else d()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;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(){w&&Ot(w),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;L(t,"mouseup",this._disableDelayedDrag),L(t,"touchend",this._disableDelayedDrag),L(t,"touchcancel",this._disableDelayedDrag),L(t,"pointerup",this._disableDelayedDrag),L(t,"pointercancel",this._disableDelayedDrag),L(t,"mousemove",this._delayedDragTouchMoveHandler),L(t,"touchmove",this._delayedDragTouchMoveHandler),L(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?Y(document,"pointermove",this._onTouchMove):n?Y(document,"touchmove",this._onTouchMove):Y(document,"mousemove",this._onTouchMove):(Y(w,"dragend",this),Y(q,"dragstart",this._onDragStart));try{document.selection?St(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(t,n){if(Ue=!1,q&&w){pe("dragStarted",this,{evt:n}),this.nativeDraggable&&Y(document,"dragover",Fo);var o=this.options;!t&&me(w,o.dragClass,!1),me(w,o.ghostClass,!0),T.active=this,t&&this._appendGhost(),ce({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ve){this._lastX=ve.clientX,this._lastY=ve.clientY,kn();for(var t=document.elementFromPoint(ve.clientX,ve.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ve.clientX,ve.clientY),t!==n);)n=t;if(w.parentNode[fe]._isOutsideThisEl(t),n)do{if(n[fe]){var o=void 0;if(o=n[fe]._onDragOver({clientX:ve.clientX,clientY:ve.clientY,target:t,rootEl:n}),o&&!this.options.dragoverBubble)break}t=n}while(n=dn(n));Dn()}},_onTouchMove:function(t){if(Ke){var n=this.options,o=n.fallbackTolerance,a=n.fallbackOffset,l=t.touches?t.touches[0]:t,i=A&&We(A,!0),u=A&&i&&i.a,d=A&&i&&i.d,s=_t&&ue&&hn(ue),p=(l.clientX-Ke.clientX+a.x)/(u||1)+(s?s[0]-It[0]:0)/(u||1),c=(l.clientY-Ke.clientY+a.y)/(d||1)+(s?s[1]-It[1]:0)/(d||1);if(!T.active&&!Ue){if(o&&Math.max(Math.abs(l.clientX-this._lastX),Math.abs(l.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(A){i?(i.e+=p-(Ft||0),i.f+=c-(At||0)):i={a:1,b:0,c:0,d:1,e:p,f:c};var m="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");N(A,"webkitTransform",m),N(A,"mozTransform",m),N(A,"msTransform",m),N(A,"transform",m),Ft=p,At=c,ve=l}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!A){var t=this.options.fallbackOnBody?document.body:q,n=ne(w,!0,_t,!0,t),o=this.options;if(_t){for(ue=t;N(ue,"position")==="static"&&N(ue,"transform")==="none"&&ue!==document;)ue=ue.parentNode;ue!==document.body&&ue!==document.documentElement?(ue===document&&(ue=Ee()),n.top+=ue.scrollTop,n.left+=ue.scrollLeft):ue=Ee(),It=hn(ue)}A=w.cloneNode(!0),me(A,o.ghostClass,!1),me(A,o.fallbackClass,!0),me(A,o.dragClass,!0),N(A,"transition",""),N(A,"transform",""),N(A,"box-sizing","border-box"),N(A,"margin",0),N(A,"top",n.top),N(A,"left",n.left),N(A,"width",n.width),N(A,"height",n.height),N(A,"opacity","0.8"),N(A,"position",_t?"absolute":"fixed"),N(A,"zIndex","100000"),N(A,"pointerEvents","none"),T.ghost=A,t.appendChild(A),N(A,"transform-origin",vn/parseInt(A.style.width)*100+"% "+wn/parseInt(A.style.height)*100+"%")}},_onDragStart:function(t,n){var o=this,a=t.dataTransfer,l=o.options;if(pe("dragStart",this,{evt:t}),T.eventCanceled){this._onDrop();return}pe("setupClone",this),T.eventCanceled||(Z=bn(w),Z.removeAttribute("id"),Z.draggable=!1,Z.style["will-change"]="",this._hideClone(),me(Z,this.options.chosenClass,!1),T.clone=Z),o.cloneId=St(function(){pe("clone",o),!T.eventCanceled&&(o.options.removeCloneOnHide||q.insertBefore(Z,w),o._hideClone(),ce({sortable:o,name:"clone"}))}),!n&&me(w,l.dragClass,!0),n?(mt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(L(document,"mouseup",o._onDrop),L(document,"touchend",o._onDrop),L(document,"touchcancel",o._onDrop),a&&(a.effectAllowed="move",l.setData&&l.setData.call(o,a,w)),Y(document,"drop",o),N(w,"transform","translateZ(0)")),Ue=!0,o._dragStartId=St(o._dragStarted.bind(o,n,t)),Y(document,"selectstart",o),ot=!0,window.getSelection().removeAllRanges(),Qe&&N(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,o=t.target,a,l,i,u=this.options,d=u.group,s=T.active,p=ht===d,c=u.sort,m=ie||s,y,f=this,S=!1;if(Pt)return;function R(C,F){pe(C,f,Se({evt:t,isOwner:p,axis:y?"vertical":"horizontal",revert:i,dragRect:a,targetRect:l,canSort:c,fromSortable:m,target:o,completed:v,onMove:function(W,G){return Ct(q,n,w,a,W,ne(W),t,G)},changed:k},F))}function b(){R("dragOverAnimationCapture"),f.captureAnimationState(),f!==m&&m.captureAnimationState()}function v(C){return R("dragOverCompleted",{insertion:C}),C&&(p?s._hideClone():s._showClone(f),f!==m&&(me(w,ie?ie.options.ghostClass:s.options.ghostClass,!1),me(w,u.ghostClass,!0)),ie!==f&&f!==T.active?ie=f:f===T.active&&ie&&(ie=null),m===f&&(f._ignoreWhileAnimating=o),f.animateAll(function(){R("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(o===w&&!w.animated||o===n&&!o.animated)&&(Ze=null),!u.dragoverBubble&&!t.rootEl&&o!==document&&(w.parentNode[fe]._isOutsideThisEl(t.target),!C&&Le(t)),!u.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),S=!0}function k(){ge=be(w),Re=be(w,u.draggable),ce({sortable:f,name:"change",toEl:n,newIndex:ge,newDraggableIndex:Re,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=ye(o,u.draggable,n,!0),R("dragOver"),T.eventCanceled)return S;if(w.co