全栈小学生 aca7f2e478 update wap
2023-07-01 16:31:03 +08:00

9 lines
58 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{d as e,u as t,c as o,an as n,h as r,i as a,w as l,C as i,D as s,l as u,n as c,q as d,m as p,p as f,E as h,r as m,M as g,O as v,N as b,F as y,t as x,j as w,R as _,H as S,K as D,a1 as E,aG as C,aH as R,S as k,U as T,aI as I,am as O,aJ as N,aq as A,J as M,X as P,aK as j}from"./index-5bb08350.js";import{_ as z}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as B}from"./u-icon.461524ba.js";import{_ as X,a as F}from"./tabbar.f7ee8f1f.js";import{c as Y}from"./article.1722ca18.js";import{_ as W}from"./app-link.vue_vue_type_script_setup_true_lang.b08a40da.js";import{_ as H}from"./u-avatar.0ea3924d.js";const L=e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const p=e,f=t(),h=o((()=>"decorate"==f.mode?f.value[p.index]:p.component)),m=o((()=>{var e="";return e+="height:"+2*h.value.height+"rpx;",h.value.componentBgColor&&(e+="background-color:"+h.value.componentBgColor+";"),e}));return n((()=>p.pullDownRefresh),((e,t)=>{})),(e,t)=>{const o=d;return r(),a(o,{style:c(u(m))},{default:l((()=>[i(" 固定模板示例,我也可以装修 我定义的数据源:"+s(u(h).componentName),1)])),_:1},8,["style"])}}}),U=z(e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e;return(e,o)=>{const n=p(f("fixed-demo-index"),L),i=d;return r(),a(i,{class:"fixed-group"},{default:l((()=>["DemoIndex"==t.component.componentName?(r(),a(n,{key:0,component:t.component,index:t.index,pullDownRefresh:t.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0)])),_:1})}}}),[["__scopeId","data-v-089d8afe"]]),G=z(e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const D=e,E=t(),C=m([]),R=o((()=>"decorate"==E.mode?E.value[D.index]:D.component)),k=o((()=>{var e="";return R.value.componentBgColor&&(e+="background-color:"+R.value.componentBgColor+";"),R.value.topRounded&&(e+="border-top-left-radius:"+2*R.value.topRounded+"rpx;"),R.value.topRounded&&(e+="border-top-right-radius:"+2*R.value.topRounded+"rpx;"),R.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*R.value.bottomRounded+"rpx;"),R.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*R.value.bottomRounded+"rpx;"),e})),T=o((()=>{var e="";return R.value.elementBgColor&&(e+="background-color:"+R.value.elementBgColor+";"),R.value.topElementRounded&&(e+="border-top-left-radius:"+2*R.value.topElementRounded+"rpx;"),R.value.topElementRounded&&(e+="border-top-right-radius:"+2*R.value.topElementRounded+"rpx;"),R.value.bottomElementRounded&&(e+="border-bottom-left-radius:"+2*R.value.bottomElementRounded+"rpx;"),R.value.bottomElementRounded&&(e+="border-bottom-right-radius:"+2*R.value.bottomElementRounded+"rpx;"),e}));n((()=>D.pullDownRefresh),((e,t)=>{}));(()=>{if("decorate"==E.mode){let e={image:"",summary:"文章摘要",title:"文章标题",create_time:"2023-03-28 09:00:00"};C.value.push(e),C.value.push(e)}else(()=>{let e={};"diy"==R.value.sources?e.ids=R.value.articleIds:e.limit=R.value.count,Y(e).then((e=>{C.value=e.data}))})()})();return(e,t)=>{const o=p(f("u-icon"),B),n=p(f("u--image"),X),m=d,D=S;return r(),a(m,{style:c(u(k))},{default:l((()=>[(r(!0),g(v,null,b(C.value,((e,t)=>(r(),a(m,{key:e.id,class:y(["item flex align-center p-[20rpx]",{"border-solid border-t-0 border-l-0 border-r-0 border-b border-gray-200 mb-[20rpx]":C.value.length-1!==t}]),onClick:t=>{return o=e.id,void _({url:"/pages/article/detail",param:{id:o}});var o},style:c(u(T))},{default:l((()=>[e.image?(r(),a(n,{key:0,width:"260rpx",height:"200rpx",src:u(x)(e.image),model:"aspectFill"},{error:l((()=>[w(o,{name:"photo",color:"#999",size:"50"})])),_:2},1032,["src"])):h("",!0),w(m,{class:"flex-1 flex flex-col justify-between ml-[20rpx]"},{default:l((()=>[w(m,{class:"text-[32rpx] leading-[1.3] multi-hidden mt-[4rpx]"},{default:l((()=>[i(s(e.title),1)])),_:2},1024),w(m,{class:"text-[28rpx] using-hidden mb-[auto] mt-[20rpx] text-gray-500"},{default:l((()=>[i(s(e.summary),1)])),_:2},1024),w(m,{class:"text-[24rpx] text-gray-400 flex justify-between mt-[10rpx]"},{default:l((()=>[w(D,null,{default:l((()=>[i(s(e.create_time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick","style"])))),128))])),_:1},8,["style"])}}}),[["__scopeId","data-v-e40f9828"]]),q=z(e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const _=e,T=t(),I=o((()=>"decorate"==T.mode?T.value[_.index]:_.component)),O=o((()=>{var e="";return I.value.componentBgColor&&(e+="background-color:"+I.value.componentBgColor+";"),I.value.topRounded&&(e+="border-top-left-radius:"+2*I.value.topRounded+"rpx;"),I.value.topRounded&&(e+="border-top-right-radius:"+2*I.value.topRounded+"rpx;"),I.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*I.value.bottomRounded+"rpx;"),I.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*I.value.bottomRounded+"rpx;"),e}));n((()=>_.pullDownRefresh),((e,t)=>{}));const N=m(0),A=e=>{N.value=e.detail.current},M=(e,t)=>{let o=I.value.pageCount*I.value.rowCount,n=!0;return n=e>=[(t-1)*o]&&e<[t*o],n},P=m("");D((()=>{j(),"decorate"==T.mode&&n((()=>I.value),((e,t)=>{e&&"GraphicNav"==e.componentName&&j()}))}));const j=()=>{var e;"decorate"==T.mode&&I.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png")})),e=0,"graphic"==I.value.mode?e=(49+I.value.imageSize)*I.value.pageCount:"img"==I.value.mode?e=(22+I.value.imageSize)*I.value.pageCount:"text"==I.value.mode&&(e=43*I.value.pageCount),P.value=2*e+"rpx"};return(e,t)=>{const o=E,n=S,m=d,_=p(f("u-icon"),B),D=p(f("app-link"),W),T=C,N=R,j=k;return r(),a(m,{style:c(u(O))},{default:l((()=>[u(I).navTitle?(r(),g("div",{key:0,class:"py-[30rpx] px-[32rpx] text-[30rpx]",style:c({fontWeight:u(I).font.weight,color:u(I).font.color})},s(u(I).navTitle),5)):h("",!0),"vertical"==u(I).layout?(r(),a(m,{key:1,class:"graphic-nav"},{default:l((()=>[(r(!0),g(v,null,b(u(I).list,((e,t)=>(r(),a(m,{class:"graphic-nav-item",key:e.id},{default:l((()=>[w(D,{data:e.link,class:y(["flex items-center justify-between py-[30rpx] px-[32rpx]",[0==t?"border-t-0":"border-t"]])},{default:l((()=>["text"!=u(I).mode?(r(),a(m,{key:0,class:"graphic-img relative flex items-center w-10 h-10 mr-[20rpx]",style:c({width:2*u(I).imageSize+"rpx",height:2*u(I).imageSize+"rpx"})},{default:l((()=>[w(o,{src:u(x)(e.imageUrl),mode:"aspectFill",style:c({maxWidth:2*u(I).imageSize+"rpx",maxHeight:2*u(I).imageSize+"rpx",borderRadius:2*u(I).aroundRadius+"rpx"})},null,8,["src","style"]),e.label.control?(r(),a(n,{key:0,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:c({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:l((()=>[i(s(e.label.text),1)])),_:2},1032,["style"])):h("",!0)])),_:2},1032,["style"])):h("",!0),"img"!=u(I).mode?(r(),a(n,{key:1,class:"graphic-text w-full truncate leading-normal",style:c({fontSize:2*u(I).font.size+"rpx",fontWeight:u(I).font.weight,color:u(I).font.color})},{default:l((()=>[i(s(e.title),1)])),_:2},1032,["style"])):h("",!0),w(_,{name:"arrow-right",color:"#CACACA"})])),_:2},1032,["data","class"])])),_:2},1024)))),128))])),_:1})):"horizontal"==u(I).layout&&"pageSlide"==u(I).showStyle?(r(),a(N,{key:2,class:"graphic-nav p-2 box-border relative",circular:"","indicator-dots":!1,style:c({height:P.value}),onChange:A},{default:l((()=>[(r(!0),g(v,null,b(Math.ceil(u(I).list.length/(u(I).pageCount*u(I).rowCount)),((e,t)=>(r(),a(T,{class:"graphic-nav-wrap flex flex-wrap"},{default:l((()=>[(r(!0),g(v,null,b(u(I).list,((t,d)=>(r(),g(v,null,[M(d,e)?(r(),a(m,{class:y(["graphic-nav-item",[u(I).mode]]),key:t.id,style:c({width:100/u(I).rowCount+"%"})},{default:l((()=>[w(D,{data:t.link,class:"flex flex-col items-center box-border py-2"},{default:l((()=>["text"!=u(I).mode?(r(),a(m,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:c({width:2*u(I).imageSize+"rpx",height:2*u(I).imageSize+"rpx"})},{default:l((()=>[w(o,{src:u(x)(t.imageUrl),mode:"aspectFill",style:c({maxWidth:2*u(I).imageSize+"rpx",maxHeight:2*u(I).imageSize+"rpx",borderRadius:2*u(I).aroundRadius+"rpx"})},null,8,["src","style"]),t.label.control?(r(),a(n,{key:0,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:c({color:t.label.textColor,backgroundImage:"linear-gradient("+t.label.bgColorStart+","+t.label.bgColorEnd+")"})},{default:l((()=>[i(s(t.label.text),1)])),_:2},1032,["style"])):h("",!0)])),_:2},1032,["style"])):h("",!0),"img"!=u(I).mode?(r(),a(n,{key:1,class:y(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=u(I).mode}]),style:c({fontSize:2*u(I).font.size+"rpx",fontWeight:u(I).font.weight,color:u(I).font.color})},{default:l((()=>[i(s(t.title),1)])),_:2},1032,["class","style"])):h("",!0)])),_:2},1032,["data"])])),_:2},1032,["class","style"])):h("",!0)],64)))),256))])),_:2},1024)))),256))])),_:1},8,["style"])):(r(),a(j,{key:3,"scroll-x":"singleSlide"==u(I).showStyle,class:y(["graphic-nav","graphic-nav-"+u(I).showStyle])},{default:l((()=>[(r(!0),g(v,null,b(u(I).list,((e,t)=>(r(),a(m,{class:y(["graphic-nav-item",{"flex-shrink-0":"singleSlide"==u(I).showStyle}]),key:e.id,style:c({width:100/u(I).rowCount+"%"})},{default:l((()=>[w(D,{data:e.link,class:"flex flex-col items-center box-border py-2"},{default:l((()=>["text"!=u(I).mode?(r(),a(m,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:c({width:2*u(I).imageSize+"rpx",height:2*u(I).imageSize+"rpx"})},{default:l((()=>[w(o,{src:u(x)(e.imageUrl),mode:"aspectFill",style:c({maxWidth:2*u(I).imageSize+"rpx",maxHeight:2*u(I).imageSize+"rpx",borderRadius:2*u(I).aroundRadius+"rpx"})},null,8,["src","style"]),e.label.control?(r(),a(n,{key:0,class:y(["tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs"]),style:c({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:l((()=>[i(s(e.label.text),1)])),_:2},1032,["style"])):h("",!0)])),_:2},1032,["style"])):h("",!0),"img"!=u(I).mode?(r(),a(n,{key:1,class:y(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=u(I).mode}]),style:c({fontSize:2*u(I).font.size+"rpx",fontWeight:u(I).font.weight,color:u(I).font.color})},{default:l((()=>[i(s(e.title),1)])),_:2},1032,["class","style"])):h("",!0)])),_:2},1032,["data"])])),_:2},1032,["class","style"])))),128))])),_:1},8,["scroll-x","class"]))])),_:1},8,["style"])}}}),[["__scopeId","data-v-b36514a1"]]),$=e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const l=e,i=t(),s=o((()=>"decorate"==i.mode?i.value[l.index]:l.component)),p=o((()=>{var e="";return e+="height:"+2*s.value.height+"rpx;",s.value.componentBgColor&&(e+="background-color:"+s.value.componentBgColor+";"),e}));return n((()=>l.pullDownRefresh),((e,t)=>{})),(e,t)=>{const o=d;return r(),a(o,{style:c(u(p))},null,8,["style"])}}}),V=e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const i=e,s=t(),h=o((()=>"decorate"==s.mode?s.value[i.index]:i.component)),y=o((()=>{var e="";return h.value.componentBgColor&&(e+="background-color:"+h.value.componentBgColor+";"),e})),_=o((()=>{var e="";return h.value.topRounded&&(e+="border-top-left-radius:"+2*h.value.topRounded+"rpx;"),h.value.topRounded&&(e+="border-top-right-radius:"+2*h.value.topRounded+"rpx;"),h.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*h.value.bottomRounded+"rpx;"),h.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*h.value.bottomRounded+"rpx;"),e}));n((()=>i.pullDownRefresh),((e,t)=>{}));const S=o((()=>2*h.value.imageHeight+"rpx")),k=m(0),T=e=>{k.value=e.detail.current};D((()=>{I(),"decorate"==s.mode&&n((()=>h.value),((e,t)=>{e&&"ImageAds"==e.componentName&&I()}))}));const I=()=>{"decorate"==s.mode&&h.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png",e.imgWidth=690,e.imgHeight=330)}))};return(e,t)=>{const o=E,n=p(f("app-link"),W),i=d,s=C,m=R;return r(),a(i,{class:"image-ads",style:c(u(y))},{default:l((()=>[1==u(h).list.length?(r(),a(i,{key:0,class:"leading-0 overflow-hidden",style:c(u(_))},{default:l((()=>[w(n,{data:u(h).list[0].link},{default:l((()=>[w(o,{src:u(x)(u(h).list[0].imageUrl),style:c({height:u(S)}),mode:"scaleToFill",class:"w-full","show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data"])])),_:1},8,["style"])):(r(),a(m,{key:1,class:"swiper",style:c({height:u(S)}),autoplay:"true",circular:"true",onChange:T},{default:l((()=>[(r(!0),g(v,null,b(u(h).list,(e=>(r(),a(s,{class:"swiper-item",key:e.id,style:c(u(_))},{default:l((()=>[w(n,{data:e.link},{default:l((()=>[w(i,{class:"item",style:c({height:u(S)})},{default:l((()=>[w(o,{src:u(x)(e.imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])])),_:2},1032,["style"])])),_:2},1032,["data"])])),_:2},1032,["style"])))),128))])),_:1},8,["style"]))])),_:1},8,["style"])}}}),K=z(e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const h=e,g=t(),v=o((()=>"decorate"==g.mode?g.value[h.index]:h.component)),b=o((()=>{var e="";return v.value.componentBgColor&&(e+="background-color:"+v.value.componentBgColor+";"),v.value.bgUrl&&(e+="background-image:url("+x(v.value.bgUrl)+");",e+="background-size: 100%;",e+="background-repeat: no-repeat;"),v.value.topRounded&&(e+="border-top-left-radius:"+2*v.value.topRounded+"rpx;"),v.value.topRounded&&(e+="border-top-right-radius:"+2*v.value.topRounded+"rpx;"),v.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*v.value.bottomRounded+"rpx;"),v.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*v.value.bottomRounded+"rpx;"),e}));n((()=>h.pullDownRefresh),((e,t)=>{}));const y=T(),{query:D}=I(location.href);D.code&&O()&&N({code:D.code}).then((e=>{y.getMemberInfo()}));const E=o((()=>"decorate"==g.mode?{headimg:"",nickname:"昵称",balance:0,point:0,money:0,member_no:"NIU0000021"}:y.info)),C=o((()=>{if(E.value){let e=parseFloat(E.value.balance)+parseFloat(E.value.money);return A(e.toString())}return 0})),R=()=>{P().setLoginBack({url:"/pages/member/index"})};m(!1);const k=()=>{O()?P().getAuthCode("snsapi_userinfo"):_({url:"/pages/member/personal"})};return(e,t)=>{const o=p(f("u-avatar"),H),n=d,h=S,m=p(f("app-link"),W);return r(),a(n,{style:c(u(b))},{default:l((()=>[w(n,{class:"pt-[34rpx] member-info"},{default:l((()=>[u(E)?(r(),a(n,{key:0,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:l((()=>[w(o,{src:u(x)(u(E).headimg),size:"55",leftIcon:"none",onClick:k},null,8,["src"]),w(n,{class:"ml-[22rpx]"},{default:l((()=>[w(n,{class:"text-[#222222] truncate w-[430rpx] font-bold text-lg",style:c({color:u(v).textColor})},{default:l((()=>[i(s(u(E).nickname),1)])),_:1},8,["style"]),w(n,{class:"text-[#696B70] text-[24rpx] mt-[10rpx]",style:c({color:u(v).textColor})},{default:l((()=>[i(" UID"+s(u(E).member_no),1)])),_:1},8,["style"])])),_:1}),w(n,{class:"set-icon flex items-center absolute right-0 top-2"},{default:l((()=>[w(m,{url:"/pages/setting/index"},{default:l((()=>[w(h,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:c({color:u(v).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})):(r(),a(n,{key:1,class:"flex ml-[32rpx] mr-[52rpx] items-center relative",onClick:R},{default:l((()=>[w(o,{src:"",size:"55"}),w(n,{class:"ml-[22rpx]"},{default:l((()=>[w(n,{class:"text-[#222222] font-bold text-lg",style:c({color:u(v).textColor})},{default:l((()=>[i(s(u(M)("login"))+"/"+s(u(M)("register")),1)])),_:1},8,["style"])])),_:1}),w(n,{class:"set-icon flex items-center absolute right-0 top-2"},{default:l((()=>[w(m,{url:"/pages/setting/index"},{default:l((()=>[w(h,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:c({color:u(v).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})),w(n,{class:"flex m-[30rpx] mb-0 py-[30rpx] items-center"},{default:l((()=>[w(n,{class:"flex-1 text-center"},{default:l((()=>[w(n,{class:"font-bold"},{default:l((()=>[w(m,{url:u(E)?"/pages/member/balance":"",style:c({color:u(v).textColor})},{default:l((()=>[i(s(u(C)),1)])),_:1},8,["url","style"])])),_:1}),w(n,{class:"text-sm mt-[10rpx]"},{default:l((()=>[w(m,{url:u(E)?"/pages/member/balance":"",style:c({color:u(v).textColor})},{default:l((()=>[i(s(u(M)("balance")),1)])),_:1},8,["url","style"])])),_:1})])),_:1}),w(n,{class:"border-solid border-white border-l border-b-0 border-t-0 border-r-0 h-[60rpx]"}),w(n,{class:"flex-1 text-center"},{default:l((()=>[w(n,{class:"font-bold"},{default:l((()=>[w(m,{url:u(E)?"/pages/member/point":"",style:c({color:u(v).textColor})},{default:l((()=>{var e;return[i(s(parseInt(null==(e=u(E))?void 0:e.point)||0),1)]})),_:1},8,["url","style"])])),_:1}),w(n,{class:"text-sm mt-[10rpx]"},{default:l((()=>[w(m,{url:u(E)?"/pages/member/point":"",style:c({color:u(v).textColor})},{default:l((()=>[i(s(u(M)("point")),1)])),_:1},8,["url","style"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-1e679529"]]),J=z(e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const m=e,g=t(),v=o((()=>"decorate"==g.mode?g.value[m.index]:m.component)),b=o((()=>{var e="";return v.value.componentBgColor&&(e+="background-color:"+v.value.componentBgColor+";"),v.value.topRounded&&(e+="border-top-left-radius:"+2*v.value.topRounded+"rpx;"),v.value.topRounded&&(e+="border-top-right-radius:"+2*v.value.topRounded+"rpx;"),v.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*v.value.bottomRounded+"rpx;"),v.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*v.value.bottomRounded+"rpx;"),e}));return n((()=>m.pullDownRefresh),((e,t)=>{})),(e,t)=>{const o=d,n=p(f("app-link"),W),m=S,g=p(f("u-icon"),B);return r(),a(o,{class:"diy-text",style:c(u(b))},{default:l((()=>["style-1"==u(v).style?(r(),a(o,{key:0,class:"p-[20rpx]"},{default:l((()=>[w(n,{data:u(v).link},{default:l((()=>[w(o,{style:c({fontSize:2*u(v).fontSize+"rpx",color:u(v).textColor,fontWeight:u(v).fontWeight,textAlign:u(v).textAlign})},{default:l((()=>[i(s(u(v).text),1)])),_:1},8,["style"])])),_:1},8,["data"])])),_:1})):h("",!0),"style-2"==u(v).style?(r(),a(o,{key:1,class:"p-[20rpx] flex items-center"},{default:l((()=>[w(n,{data:u(v).link},{default:l((()=>[w(o,{class:"max-w-[200rpx] truncate",style:c({fontSize:2*u(v).fontSize+"rpx",color:u(v).textColor,fontWeight:u(v).fontWeight})},{default:l((()=>[i(s(u(v).text),1)])),_:1},8,["style"])])),_:1},8,["data"]),w(m,{class:"ml-[16rpx] max-w-[300rpx] truncate",style:c({color:u(v).subTitle.color,fontSize:2*u(v).subTitle.fontSize+"rpx"})},{default:l((()=>[i(s(u(v).subTitle.text),1)])),_:1},8,["style"]),u(v).more.isShow?(r(),a(o,{key:0,class:"ml-auto text-right",style:c({color:u(v).more.color})},{default:l((()=>[w(n,{data:u(v).more.link,class:"flex items-center"},{default:l((()=>[w(m,{class:"max-w-[200rpx] truncate text-[24rpx] mr-[8rpx]"},{default:l((()=>[i(s(u(v).more.text),1)])),_:1}),w(g,{name:"arrow-right",size:"12",style:c({color:u(v).more.color})},null,8,["style"])])),_:1},8,["data"])])),_:1},8,["style"])):h("",!0)])),_:1})):h("",!0)])),_:1},8,["style"])}}}),[["__scopeId","data-v-7fc5a7a3"]]);
/**!
* Sortable 1.15.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function Z(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Q(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(o),!0).forEach((function(t){te(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Z(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function oe(){return oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},oe.apply(this,arguments)}function ne(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function re(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var ae=re(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),le=re(/Edge/i),ie=re(/firefox/i),se=re(/safari/i)&&!re(/chrome/i)&&!re(/android/i),ue=re(/iP(ad|od|hone)/i),ce=re(/chrome/i)&&re(/android/i),de={capture:!1,passive:!1};function pe(e,t,o){e.addEventListener(t,o,!ae&&de)}function fe(e,t,o){e.removeEventListener(t,o,!ae&&de)}function he(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(o){return!1}return!1}}function me(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ge(e,t,o,n){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&he(e,t):he(e,t))||n&&e===o)return e;if(e===o)break}while(e=me(e))}return null}var ve,be=/\s+/g;function ye(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(be," ").replace(" "+t+" "," ");e.className=(n+(o?" "+t:"")).replace(be," ")}}function xe(e,t,o){var n=e&&e.style;if(n){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),void 0===t?o:o[t];t in n||-1!==t.indexOf("webkit")||(t="-webkit-"+t),n[t]=o+("string"==typeof o?"":"px")}}function we(e,t){var o="";if("string"==typeof e)o=e;else do{var n=xe(e,"transform");n&&"none"!==n&&(o=n+" "+o)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function _e(e,t,o){if(e){var n=e.getElementsByTagName(t),r=0,a=n.length;if(o)for(;r<a;r++)o(n[r],r);return n}return[]}function Se(){var e=document.scrollingElement;return e||document.documentElement}function De(e,t,o,n,r){if(e.getBoundingClientRect||e===window){var a,l,i,s,u,c,d;if(e!==window&&e.parentNode&&e!==Se()?(l=(a=e.getBoundingClientRect()).top,i=a.left,s=a.bottom,u=a.right,c=a.height,d=a.width):(l=0,i=0,s=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||o)&&e!==window&&(r=r||e.parentNode,!ae))do{if(r&&r.getBoundingClientRect&&("none"!==xe(r,"transform")||o&&"static"!==xe(r,"position"))){var p=r.getBoundingClientRect();l-=p.top+parseInt(xe(r,"border-top-width")),i-=p.left+parseInt(xe(r,"border-left-width")),s=l+a.height,u=i+a.width;break}}while(r=r.parentNode);if(n&&e!==window){var f=we(r||e),h=f&&f.a,m=f&&f.d;f&&(s=(l/=m)+(c/=m),u=(i/=h)+(d/=h))}return{top:l,left:i,bottom:s,right:u,width:d,height:c}}}function Ee(e,t,o){for(var n=Ie(e,!0),r=De(e)[t];n;){var a=De(n)[o];if(!("top"===o||"left"===o?r>=a:r<=a))return n;if(n===Se())break;n=Ie(n,!1)}return!1}function Ce(e,t,o,n){for(var r=0,a=0,l=e.children;a<l.length;){if("none"!==l[a].style.display&&l[a]!==At.ghost&&(n||l[a]!==At.dragged)&&ge(l[a],o.draggable,e,!1)){if(r===t)return l[a];r++}a++}return null}function Re(e,t){for(var o=e.lastElementChild;o&&(o===At.ghost||"none"===xe(o,"display")||t&&!he(o,t));)o=o.previousElementSibling;return o||null}function ke(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===At.clone||t&&!he(e,t)||o++;return o}function Te(e){var t=0,o=0,n=Se();if(e)do{var r=we(e),a=r.a,l=r.d;t+=e.scrollLeft*a,o+=e.scrollTop*l}while(e!==n&&(e=e.parentNode));return[t,o]}function Ie(e,t){if(!e||!e.getBoundingClientRect)return Se();var o=e,n=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var r=xe(o);if(o.clientWidth<o.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||o.clientHeight<o.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!o.getBoundingClientRect||o===document.body)return Se();if(n||t)return o;n=!0}}}while(o=o.parentNode);return Se()}function Oe(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Ne(e,t){return function(){if(!ve){var o=arguments,n=this;1===o.length?e.call(n,o[0]):e.apply(n,o),ve=setTimeout((function(){ve=void 0}),t)}}}function Ae(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function Me(e){var t=window.Polymer,o=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):o?o(e).clone(!0)[0]:e.cloneNode(!0)}var Pe="Sortable"+(new Date).getTime();function je(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==xe(e,"display")&&e!==At.ghost){t.push({target:e,rect:De(e)});var o=Q({},t[t.length-1].rect);if(e.thisAnimationDuration){var n=we(e,!0);n&&(o.top-=n.f,o.left-=n.e)}e.fromRect=o}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var o in e)if(e.hasOwnProperty(o))for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[o][n])return Number(o);return-1}(t,{target:e}),1)},animateAll:function(o){var n=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof o&&o());var r=!1,a=0;t.forEach((function(e){var t=0,o=e.target,l=o.fromRect,i=De(o),s=o.prevFromRect,u=o.prevToRect,c=e.rect,d=we(o,!0);d&&(i.top-=d.f,i.left-=d.e),o.toRect=i,o.thisAnimationDuration&&Oe(s,i)&&!Oe(l,i)&&(c.top-i.top)/(c.left-i.left)==(l.top-i.top)/(l.left-i.left)&&(t=function(e,t,o,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*n.animation}(c,s,u,n.options)),Oe(i,l)||(o.prevFromRect=l,o.prevToRect=i,t||(t=n.options.animation),n.animate(o,c,i,t)),t&&(r=!0,a=Math.max(a,t),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),t),o.thisAnimationDuration=t)})),clearTimeout(e),r?e=setTimeout((function(){"function"==typeof o&&o()}),a):"function"==typeof o&&o(),t=[]},animate:function(e,t,o,n){if(n){xe(e,"transition",""),xe(e,"transform","");var r=we(this.el),a=r&&r.a,l=r&&r.d,i=(t.left-o.left)/(a||1),s=(t.top-o.top)/(l||1);e.animatingX=!!i,e.animatingY=!!s,xe(e,"transform","translate3d("+i+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),xe(e,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),xe(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){xe(e,"transition",""),xe(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),n)}}}}var ze=[],Be={initializeByDefault:!0},Xe={mount:function(e){for(var t in Be)Be.hasOwnProperty(t)&&!(t in e)&&(e[t]=Be[t]);ze.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),ze.push(e)},pluginEvent:function(e,t,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var r=e+"Global";ze.forEach((function(n){t[n.pluginName]&&(t[n.pluginName][r]&&t[n.pluginName][r](Q({sortable:t},o)),t.options[n.pluginName]&&t[n.pluginName][e]&&t[n.pluginName][e](Q({sortable:t},o)))}))},initializePlugins:function(e,t,o,n){for(var r in ze.forEach((function(n){var r=n.pluginName;if(e.options[r]||n.initializeByDefault){var a=new n(e,t,e.options);a.sortable=e,a.options=e.options,e[r]=a,oe(o,a.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);void 0!==a&&(e.options[r]=a)}},getEventProperties:function(e,t){var o={};return ze.forEach((function(n){"function"==typeof n.eventProperties&&oe(o,n.eventProperties.call(t[n.pluginName],e))})),o},modifyOption:function(e,t,o){var n;return ze.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(n=r.optionListeners[t].call(e[r.pluginName],o))})),n}};var Fe=["evt"],Ye=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=o.evt,r=ne(o,Fe);Xe.pluginEvent.bind(At)(e,t,Q({dragEl:He,parentEl:Le,ghostEl:Ue,rootEl:Ge,nextEl:qe,lastDownEl:$e,cloneEl:Ve,cloneHidden:Ke,dragStarted:ut,putSortable:ot,activeSortable:At.active,originalEvent:n,oldIndex:Je,oldDraggableIndex:Qe,newIndex:Ze,newDraggableIndex:et,hideGhostForTarget:Tt,unhideGhostForTarget:It,cloneNowHidden:function(){Ke=!0},cloneNowShown:function(){Ke=!1},dispatchSortableEvent:function(e){We({sortable:t,name:e,originalEvent:n})}},r))};function We(e){!function(e){var t=e.sortable,o=e.rootEl,n=e.name,r=e.targetEl,a=e.cloneEl,l=e.toEl,i=e.fromEl,s=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,p=e.originalEvent,f=e.putSortable,h=e.extraEventProperties;if(t=t||o&&o[Pe]){var m,g=t.options,v="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||ae||le?(m=document.createEvent("Event")).initEvent(n,!0,!0):m=new CustomEvent(n,{bubbles:!0,cancelable:!0}),m.to=l||o,m.from=i||o,m.item=r||o,m.clone=a,m.oldIndex=s,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=p,m.pullMode=f?f.lastPutMode:void 0;var b=Q(Q({},h),Xe.getEventProperties(n,t));for(var y in b)m[y]=b[y];o&&o.dispatchEvent(m),g[v]&&g[v].call(t,m)}}(Q({putSortable:ot,cloneEl:Ve,targetEl:He,rootEl:Ge,oldIndex:Je,oldDraggableIndex:Qe,newIndex:Ze,newDraggableIndex:et},e))}var He,Le,Ue,Ge,qe,$e,Ve,Ke,Je,Ze,Qe,et,tt,ot,nt,rt,at,lt,it,st,ut,ct,dt,pt,ft,ht=!1,mt=!1,gt=[],vt=!1,bt=!1,yt=[],xt=!1,wt=[],_t="undefined"!=typeof document,St=ue,Dt=le||ae?"cssFloat":"float",Et=_t&&!ce&&!ue&&"draggable"in document.createElement("div"),Ct=function(){if(_t){if(ae)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Rt=function(e,t){var o=xe(e),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=Ce(e,0,t),a=Ce(e,1,t),l=r&&xe(r),i=a&&xe(a),s=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+De(r).width,u=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+De(a).width;if("flex"===o.display)return"column"===o.flexDirection||"column-reverse"===o.flexDirection?"vertical":"horizontal";if("grid"===o.display)return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&"none"!==l.float){var c="left"===l.float?"left":"right";return!a||"both"!==i.clear&&i.clear!==c?"horizontal":"vertical"}return r&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||s>=n&&"none"===o[Dt]||a&&"none"===o[Dt]&&s+u>n)?"vertical":"horizontal"},kt=function(e){function t(e,o){return function(n,r,a,l){var i=n.options.group.name&&r.options.group.name&&n.options.group.name===r.options.group.name;if(null==e&&(o||i))return!0;if(null==e||!1===e)return!1;if(o&&"clone"===e)return e;if("function"==typeof e)return t(e(n,r,a,l),o)(n,r,a,l);var s=(o?n:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var o={},n=e.group;n&&"object"==ee(n)||(n={name:n}),o.name=n.name,o.checkPull=t(n.pull,!0),o.checkPut=t(n.put),o.revertClone=n.revertClone,e.group=o},Tt=function(){!Ct&&Ue&&xe(Ue,"display","none")},It=function(){!Ct&&Ue&&xe(Ue,"display","")};_t&&!ce&&document.addEventListener("click",(function(e){if(mt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),mt=!1,!1}),!0);var Ot=function(e){if(He){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,a=e.clientY,gt.some((function(e){var t=e[Pe].options.emptyInsertThreshold;if(t&&!Re(e)){var o=De(e),n=r>=o.left-t&&r<=o.right+t,i=a>=o.top-t&&a<=o.bottom+t;return n&&i?l=e:void 0}})),l);if(t){var o={};for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[Pe]._onDragOver(o)}}var r,a,l},Nt=function(e){He&&He.parentNode[Pe]._isOutsideThisEl(e.target)};function At(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=oe({},t),e[Pe]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Rt(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.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:!1!==At.supportPointer&&"PointerEvent"in window&&!se,emptyInsertThreshold:5};for(var n in Xe.initializePlugins(this,e,o),o)!(n in t)&&(t[n]=o[n]);for(var r in kt(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Et,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?pe(e,"pointerdown",this._onTapStart):(pe(e,"mousedown",this._onTapStart),pe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(pe(e,"dragover",this),pe(e,"dragenter",this)),gt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),oe(this,je())}function Mt(e,t,o,n,r,a,l,i){var s,u,c=e[Pe],d=c.options.onMove;return!window.CustomEvent||ae||le?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=o,s.draggedRect=n,s.related=r||t,s.relatedRect=a||De(t),s.willInsertAfter=i,s.originalEvent=l,e.dispatchEvent(s),d&&(u=d.call(c,s,l)),u}function Pt(e){e.draggable=!1}function jt(){xt=!1}function zt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,n=0;o--;)n+=t.charCodeAt(o);return n.toString(36)}function Bt(e){return setTimeout(e,0)}function Xt(e){return clearTimeout(e)}At.prototype={constructor:At,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ct=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,He):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,n=this.options,r=n.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,i=(l||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||i,u=n.filter;if(function(e){wt.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var n=t[o];n.checked&&wt.push(n)}}(o),!He&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||n.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!se||!i||"SELECT"!==i.tagName.toUpperCase())&&!((i=ge(i,n.draggable,o,!1))&&i.animated||$e===i)){if(Je=ke(i),Qe=ke(i,n.draggable),"function"==typeof u){if(u.call(this,e,i,this))return We({sortable:t,rootEl:s,name:"filter",targetEl:i,toEl:o,fromEl:o}),Ye("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(n){if(n=ge(s,n.trim(),o,!1))return We({sortable:t,rootEl:n,name:"filter",targetEl:i,fromEl:o,toEl:o}),Ye("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());n.handle&&!ge(s,n.handle,o,!1)||this._prepareDragStart(e,l,i)}}},_prepareDragStart:function(e,t,o){var n,r=this,a=r.el,l=r.options,i=a.ownerDocument;if(o&&!He&&o.parentNode===a){var s=De(o);if(Ge=a,Le=(He=o).parentNode,qe=He.nextSibling,$e=o,tt=l.group,At.dragged=He,nt={target:He,clientX:(t||e).clientX,clientY:(t||e).clientY},it=nt.clientX-s.left,st=nt.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,He.style["will-change"]="all",n=function(){Ye("delayEnded",r,{evt:e}),At.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!ie&&r.nativeDraggable&&(He.draggable=!0),r._triggerDragStart(e,t),We({sortable:r,name:"choose",originalEvent:e}),ye(He,l.chosenClass,!0))},l.ignore.split(",").forEach((function(e){_e(He,e.trim(),Pt)})),pe(i,"dragover",Ot),pe(i,"mousemove",Ot),pe(i,"touchmove",Ot),pe(i,"mouseup",r._onDrop),pe(i,"touchend",r._onDrop),pe(i,"touchcancel",r._onDrop),ie&&this.nativeDraggable&&(this.options.touchStartThreshold=4,He.draggable=!0),Ye("delayStart",this,{evt:e}),!l.delay||l.delayOnTouchOnly&&!t||this.nativeDraggable&&(le||ae))n();else{if(At.eventCanceled)return void this._onDrop();pe(i,"mouseup",r._disableDelayedDrag),pe(i,"touchend",r._disableDelayedDrag),pe(i,"touchcancel",r._disableDelayedDrag),pe(i,"mousemove",r._delayedDragTouchMoveHandler),pe(i,"touchmove",r._delayedDragTouchMoveHandler),l.supportPointer&&pe(i,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(n,l.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){He&&Pt(He),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;fe(e,"mouseup",this._disableDelayedDrag),fe(e,"touchend",this._disableDelayedDrag),fe(e,"touchcancel",this._disableDelayedDrag),fe(e,"mousemove",this._delayedDragTouchMoveHandler),fe(e,"touchmove",this._delayedDragTouchMoveHandler),fe(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?pe(document,"pointermove",this._onTouchMove):pe(document,t?"touchmove":"mousemove",this._onTouchMove):(pe(He,"dragend",this),pe(Ge,"dragstart",this._onDragStart));try{document.selection?Bt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(ht=!1,Ge&&He){Ye("dragStarted",this,{evt:t}),this.nativeDraggable&&pe(document,"dragover",Nt);var o=this.options;!e&&ye(He,o.dragClass,!1),ye(He,o.ghostClass,!0),At.active=this,e&&this._appendGhost(),We({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(rt){this._lastX=rt.clientX,this._lastY=rt.clientY,Tt();for(var e=document.elementFromPoint(rt.clientX,rt.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(rt.clientX,rt.clientY))!==t;)t=e;if(He.parentNode[Pe]._isOutsideThisEl(e),t)do{if(t[Pe]){if(t[Pe]._onDragOver({clientX:rt.clientX,clientY:rt.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);It()}},_onTouchMove:function(e){if(nt){var t=this.options,o=t.fallbackTolerance,n=t.fallbackOffset,r=e.touches?e.touches[0]:e,a=Ue&&we(Ue,!0),l=Ue&&a&&a.a,i=Ue&&a&&a.d,s=St&&ft&&Te(ft),u=(r.clientX-nt.clientX+n.x)/(l||1)+(s?s[0]-yt[0]:0)/(l||1),c=(r.clientY-nt.clientY+n.y)/(i||1)+(s?s[1]-yt[1]:0)/(i||1);if(!At.active&&!ht){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(Ue){a?(a.e+=u-(at||0),a.f+=c-(lt||0)):a={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");xe(Ue,"webkitTransform",d),xe(Ue,"mozTransform",d),xe(Ue,"msTransform",d),xe(Ue,"transform",d),at=u,lt=c,rt=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Ue){var e=this.options.fallbackOnBody?document.body:Ge,t=De(He,!0,St,!0,e),o=this.options;if(St){for(ft=e;"static"===xe(ft,"position")&&"none"===xe(ft,"transform")&&ft!==document;)ft=ft.parentNode;ft!==document.body&&ft!==document.documentElement?(ft===document&&(ft=Se()),t.top+=ft.scrollTop,t.left+=ft.scrollLeft):ft=Se(),yt=Te(ft)}ye(Ue=He.cloneNode(!0),o.ghostClass,!1),ye(Ue,o.fallbackClass,!0),ye(Ue,o.dragClass,!0),xe(Ue,"transition",""),xe(Ue,"transform",""),xe(Ue,"box-sizing","border-box"),xe(Ue,"margin",0),xe(Ue,"top",t.top),xe(Ue,"left",t.left),xe(Ue,"width",t.width),xe(Ue,"height",t.height),xe(Ue,"opacity","0.8"),xe(Ue,"position",St?"absolute":"fixed"),xe(Ue,"zIndex","100000"),xe(Ue,"pointerEvents","none"),At.ghost=Ue,e.appendChild(Ue),xe(Ue,"transform-origin",it/parseInt(Ue.style.width)*100+"% "+st/parseInt(Ue.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,n=e.dataTransfer,r=o.options;Ye("dragStart",this,{evt:e}),At.eventCanceled?this._onDrop():(Ye("setupClone",this),At.eventCanceled||((Ve=Me(He)).removeAttribute("id"),Ve.draggable=!1,Ve.style["will-change"]="",this._hideClone(),ye(Ve,this.options.chosenClass,!1),At.clone=Ve),o.cloneId=Bt((function(){Ye("clone",o),At.eventCanceled||(o.options.removeCloneOnHide||Ge.insertBefore(Ve,He),o._hideClone(),We({sortable:o,name:"clone"}))})),!t&&ye(He,r.dragClass,!0),t?(mt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(fe(document,"mouseup",o._onDrop),fe(document,"touchend",o._onDrop),fe(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(o,n,He)),pe(document,"drop",o),xe(He,"transform","translateZ(0)")),ht=!0,o._dragStartId=Bt(o._dragStarted.bind(o,t,e)),pe(document,"selectstart",o),ut=!0,se&&xe(document.body,"user-select","none"))},_onDragOver:function(e){var t,o,n,r,a=this.el,l=e.target,i=this.options,s=i.group,u=At.active,c=tt===s,d=i.sort,p=ot||u,f=this,h=!1;if(!xt){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=ge(l,i.draggable,a,!0),T("dragOver"),At.eventCanceled)return h;if(He.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||f._ignoreWhileAnimating===l)return O(!1);if(mt=!1,u&&!i.disabled&&(c?d||(n=Le!==Ge):ot===this||(this.lastPutMode=tt.checkPull(this,u,He,e))&&s.checkPut(this,u,He,e))){if(r="vertical"===this._getDirection(e,l),t=De(He),T("dragOverValid"),At.eventCanceled)return h;if(n)return Le=Ge,I(),this._hideClone(),T("revert"),At.eventCanceled||(qe?Ge.insertBefore(He,qe):Ge.appendChild(He)),O(!0);var m=Re(a,i.draggable);if(!m||function(e,t,o){var n=De(Re(o.el,o.options.draggable)),r=10;return t?e.clientX>n.right+r||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+r}(e,r,this)&&!m.animated){if(m===He)return O(!1);if(m&&a===e.target&&(l=m),l&&(o=De(l)),!1!==Mt(Ge,a,He,t,l,o,e,!!l))return I(),m&&m.nextSibling?a.insertBefore(He,m.nextSibling):a.appendChild(He),Le=a,N(),O(!0)}else if(m&&function(e,t,o){var n=De(Ce(o.el,0,o.options,!0)),r=10;return t?e.clientX<n.left-r||e.clientY<n.top&&e.clientX<n.right:e.clientY<n.top-r||e.clientY<n.bottom&&e.clientX<n.left}(e,r,this)){var g=Ce(a,0,i,!0);if(g===He)return O(!1);if(o=De(l=g),!1!==Mt(Ge,a,He,t,l,o,e,!1))return I(),a.insertBefore(He,g),Le=a,N(),O(!0)}else if(l.parentNode===a){o=De(l);var v,b,y,x=He.parentNode!==a,w=!function(e,t,o){var n=o?e.left:e.top,r=o?e.right:e.bottom,a=o?e.width:e.height,l=o?t.left:t.top,i=o?t.right:t.bottom,s=o?t.width:t.height;return n===l||r===i||n+a/2===l+s/2}(He.animated&&He.toRect||t,l.animated&&l.toRect||o,r),_=r?"top":"left",S=Ee(l,"top","top")||Ee(He,"top","top"),D=S?S.scrollTop:void 0;if(ct!==l&&(b=o[_],vt=!1,bt=!w&&i.invertSwap||x),v=function(e,t,o,n,r,a,l,i){var s=n?e.clientY:e.clientX,u=n?o.height:o.width,c=n?o.top:o.left,d=n?o.bottom:o.right,p=!1;if(!l)if(i&&pt<u*r){if(!vt&&(1===dt?s>c+u*a/2:s<d-u*a/2)&&(vt=!0),vt)p=!0;else if(1===dt?s<c+pt:s>d-pt)return-dt}else if(s>c+u*(1-r)/2&&s<d-u*(1-r)/2)return function(e){return ke(He)<ke(e)?1:-1}(t);if((p=p||l)&&(s<c+u*a/2||s>d-u*a/2))return s>c+u/2?1:-1;return 0}(e,l,o,r,w?1:i.swapThreshold,null==i.invertedSwapThreshold?i.swapThreshold:i.invertedSwapThreshold,bt,ct===l),0!==v){var E=ke(He);do{E-=v,y=Le.children[E]}while(y&&("none"===xe(y,"display")||y===Ue))}if(0===v||y===l)return O(!1);ct=l,dt=v;var C=l.nextElementSibling,R=!1,k=Mt(Ge,a,He,t,l,o,e,R=1===v);if(!1!==k)return 1!==k&&-1!==k||(R=1===k),xt=!0,setTimeout(jt,30),I(),R&&!C?a.appendChild(He):l.parentNode.insertBefore(He,R?C:l),S&&Ae(S,0,D-S.scrollTop),Le=He.parentNode,void 0===b||bt||(pt=Math.abs(b-De(l)[_])),N(),O(!0)}if(a.contains(He))return O(!1)}return!1}function T(i,s){Ye(i,f,Q({evt:e,isOwner:c,axis:r?"vertical":"horizontal",revert:n,dragRect:t,targetRect:o,canSort:d,fromSortable:p,target:l,completed:O,onMove:function(o,n){return Mt(Ge,a,He,t,o,De(o),e,n)},changed:N},s))}function I(){T("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function O(t){return T("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(f),f!==p&&(ye(He,ot?ot.options.ghostClass:u.options.ghostClass,!1),ye(He,i.ghostClass,!0)),ot!==f&&f!==At.active?ot=f:f===At.active&&ot&&(ot=null),p===f&&(f._ignoreWhileAnimating=l),f.animateAll((function(){T("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===He&&!He.animated||l===a&&!l.animated)&&(ct=null),i.dragoverBubble||e.rootEl||l===document||(He.parentNode[Pe]._isOutsideThisEl(e.target),!t&&Ot(e)),!i.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function N(){Ze=ke(He),et=ke(He,i.draggable),We({sortable:f,name:"change",toEl:a,newIndex:Ze,newDraggableIndex:et,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){fe(document,"mousemove",this._onTouchMove),fe(document,"touchmove",this._onTouchMove),fe(document,"pointermove",this._onTouchMove),fe(document,"dragover",Ot),fe(document,"mousemove",Ot),fe(document,"touchmove",Ot)},_offUpEvents:function(){var e=this.el.ownerDocument;fe(e,"mouseup",this._onDrop),fe(e,"touchend",this._onDrop),fe(e,"pointerup",this._onDrop),fe(e,"touchcancel",this._onDrop),fe(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;Ze=ke(He),et=ke(He,o.draggable),Ye("drop",this,{evt:e}),Le=He&&He.parentNode,Ze=ke(He),et=ke(He,o.draggable),At.eventCanceled||(ht=!1,bt=!1,vt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Xt(this.cloneId),Xt(this._dragStartId),this.nativeDraggable&&(fe(document,"drop",this),fe(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),se&&xe(document.body,"user-select",""),xe(He,"transform",""),e&&(ut&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),Ue&&Ue.parentNode&&Ue.parentNode.removeChild(Ue),(Ge===Le||ot&&"clone"!==ot.lastPutMode)&&Ve&&Ve.parentNode&&Ve.parentNode.removeChild(Ve),He&&(this.nativeDraggable&&fe(He,"dragend",this),Pt(He),He.style["will-change"]="",ut&&!ht&&ye(He,ot?ot.options.ghostClass:this.options.ghostClass,!1),ye(He,this.options.chosenClass,!1),We({sortable:this,name:"unchoose",toEl:Le,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ge!==Le?(Ze>=0&&(We({rootEl:Le,name:"add",toEl:Le,fromEl:Ge,originalEvent:e}),We({sortable:this,name:"remove",toEl:Le,originalEvent:e}),We({rootEl:Le,name:"sort",toEl:Le,fromEl:Ge,originalEvent:e}),We({sortable:this,name:"sort",toEl:Le,originalEvent:e})),ot&&ot.save()):Ze!==Je&&Ze>=0&&(We({sortable:this,name:"update",toEl:Le,originalEvent:e}),We({sortable:this,name:"sort",toEl:Le,originalEvent:e})),At.active&&(null!=Ze&&-1!==Ze||(Ze=Je,et=Qe),We({sortable:this,name:"end",toEl:Le,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Ye("nulling",this),Ge=He=Le=Ue=qe=Ve=$e=Ke=nt=rt=ut=Ze=et=Je=Qe=ct=dt=ot=tt=At.dragged=At.ghost=At.clone=At.active=null,wt.forEach((function(e){e.checked=!0})),wt.length=at=lt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":He&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],o=this.el.children,n=0,r=o.length,a=this.options;n<r;n++)ge(e=o[n],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||zt(e));return t},sort:function(e,t){var o={},n=this.el;this.toArray().forEach((function(e,t){var r=n.children[t];ge(r,this.options.draggable,n,!1)&&(o[e]=r)}),this),t&&this.captureAnimationState(),e.forEach((function(e){o[e]&&(n.removeChild(o[e]),n.appendChild(o[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ge(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var o=this.options;if(void 0===t)return o[e];var n=Xe.modifyOption(this,e,t);o[e]=void 0!==n?n:t,"group"===e&&kt(o)},destroy:function(){Ye("destroy",this);var e=this.el;e[Pe]=null,fe(e,"mousedown",this._onTapStart),fe(e,"touchstart",this._onTapStart),fe(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(fe(e,"dragover",this),fe(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),gt.splice(gt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ke){if(Ye("hideClone",this),At.eventCanceled)return;xe(Ve,"display","none"),this.options.removeCloneOnHide&&Ve.parentNode&&Ve.parentNode.removeChild(Ve),Ke=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(Ke){if(Ye("showClone",this),At.eventCanceled)return;He.parentNode!=Ge||this.options.group.revertClone?qe?Ge.insertBefore(Ve,qe):Ge.appendChild(Ve):Ge.insertBefore(Ve,He),this.options.group.revertClone&&this.animate(He,Ve),xe(Ve,"display",""),Ke=!1}}else this._hideClone()}},_t&&pe(document,"touchmove",(function(e){(At.active||ht)&&e.cancelable&&e.preventDefault()})),At.utils={on:pe,off:fe,css:xe,find:_e,is:function(e,t){return!!ge(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e},throttle:Ne,closest:ge,toggleClass:ye,clone:Me,index:ke,nextTick:Bt,cancelNextTick:Xt,detectDirection:Rt,getChild:Ce},At.get=function(e){return e[Pe]},At.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(At.utils=Q(Q({},At.utils),e.utils)),Xe.mount(e)}))},At.create=function(e,t){return new At(e,t)},At.version="1.15.0";var Ft,Yt,Wt,Ht,Lt,Ut,Gt=[],qt=!1;function $t(){Gt.forEach((function(e){clearInterval(e.pid)})),Gt=[]}function Vt(){clearInterval(Ut)}var Kt=Ne((function(e,t,o,n){if(t.scroll){var r,a=(e.touches?e.touches[0]:e).clientX,l=(e.touches?e.touches[0]:e).clientY,i=t.scrollSensitivity,s=t.scrollSpeed,u=Se(),c=!1;Yt!==o&&(Yt=o,$t(),Ft=t.scroll,r=t.scrollFn,!0===Ft&&(Ft=Ie(o,!0)));var d=0,p=Ft;do{var f=p,h=De(f),m=h.top,g=h.bottom,v=h.left,b=h.right,y=h.width,x=h.height,w=void 0,_=void 0,S=f.scrollWidth,D=f.scrollHeight,E=xe(f),C=f.scrollLeft,R=f.scrollTop;f===u?(w=y<S&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),_=x<D&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(w=y<S&&("auto"===E.overflowX||"scroll"===E.overflowX),_=x<D&&("auto"===E.overflowY||"scroll"===E.overflowY));var k=w&&(Math.abs(b-a)<=i&&C+y<S)-(Math.abs(v-a)<=i&&!!C),T=_&&(Math.abs(g-l)<=i&&R+x<D)-(Math.abs(m-l)<=i&&!!R);if(!Gt[d])for(var I=0;I<=d;I++)Gt[I]||(Gt[I]={});Gt[d].vx==k&&Gt[d].vy==T&&Gt[d].el===f||(Gt[d].el=f,Gt[d].vx=k,Gt[d].vy=T,clearInterval(Gt[d].pid),0==k&&0==T||(c=!0,Gt[d].pid=setInterval(function(){n&&0===this.layer&&At.active._onTouchMove(Lt);var t=Gt[this.layer].vy?Gt[this.layer].vy*s:0,o=Gt[this.layer].vx?Gt[this.layer].vx*s:0;"function"==typeof r&&"continue"!==r.call(At.dragged.parentNode[Pe],o,t,e,Lt,Gt[this.layer].el)||Ae(Gt[this.layer].el,o,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==u&&(p=Ie(p,!1)));qt=c}}),30),Jt=function(e){var t=e.originalEvent,o=e.putSortable,n=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,i=e.unhideGhostForTarget;if(t){var s=o||r;l();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);i(),s&&!s.el.contains(c)&&(a("spill"),this.onSpill({dragEl:n,putSortable:o}))}};function Zt(){}function Qt(){}Zt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var n=Ce(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),o&&o.animateAll()},drop:Jt},oe(Zt,{pluginName:"revertOnSpill"}),Qt.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:Jt},oe(Qt,{pluginName:"removeOnSpill"}),At.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?pe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?pe(document,"pointermove",this._handleFallbackAutoScroll):t.touches?pe(document,"touchmove",this._handleFallbackAutoScroll):pe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?fe(document,"dragover",this._handleAutoScroll):(fe(document,"pointermove",this._handleFallbackAutoScroll),fe(document,"touchmove",this._handleFallbackAutoScroll),fe(document,"mousemove",this._handleFallbackAutoScroll)),Vt(),$t(),clearTimeout(ve),ve=void 0},nulling:function(){Lt=Yt=Ft=qt=Ut=Wt=Ht=null,Gt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var o=this,n=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(n,r);if(Lt=e,t||this.options.forceAutoScrollFallback||le||ae||se){Kt(e,this.options,a,t);var l=Ie(a,!0);!qt||Ut&&n===Wt&&r===Ht||(Ut&&Vt(),Ut=setInterval((function(){var a=Ie(document.elementFromPoint(n,r),!0);a!==l&&(l=a,$t()),Kt(e,o.options,a,t)}),10),Wt=n,Ht=r)}else{if(!this.options.bubbleScroll||Ie(a,!0)===Se())return void $t();Kt(e,this.options,Ie(a,!1),!1)}}},oe(e,{pluginName:"scroll",initializeByDefault:!0})}),At.mount(Qt,Zt);const eo="object"==typeof global&&global&&global.Object===Object&&global;var to="object"==typeof self&&self&&self.Object===Object&&self;const oo=(eo||to||Function("return this")()).Symbol;var no=Object.prototype,ro=no.hasOwnProperty,ao=no.toString,lo=oo?oo.toStringTag:void 0;var io=Object.prototype.toString;var so=oo?oo.toStringTag:void 0;function uo(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":so&&so in Object(e)?function(e){var t=ro.call(e,lo),o=e[lo];try{e[lo]=void 0;var n=!0}catch(a){}var r=ao.call(e);return n&&(t?e[lo]=o:delete e[lo]),r}(e):function(e){return io.call(e)}(e)}var co=/\s/;var po=/^\s+/;function fo(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&co.test(e.charAt(t)););return t}(e)+1).replace(po,""):e}function ho(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var mo=/^[-+]0x[0-9a-f]+$/i,go=/^0b[01]+$/i,vo=/^0o[0-7]+$/i,bo=parseInt;function yo(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==uo(e)}(e))return NaN;if(ho(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ho(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=fo(e);var o=go.test(e);return o||vo.test(e)?bo(e.slice(2),o?2:8):mo.test(e)?NaN:+e}function xo(e){return e?Infinity===(e=yo(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}var wo=/^(?:0|[1-9]\d*)$/;function _o(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){if(!ho(e))return!1;var t=uo(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)}function So(e,t,o){if(!ho(o))return!1;var n=typeof t;return!!("number"==n?_o(o)&&function(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&wo.test(e))&&e>-1&&e%1==0&&e<t}(t,o.length):"string"==n&&t in o)&&function(e,t){return e===t||e!=e&&t!=t}(o[t],e)}var Do=Math.ceil,Eo=Math.max;var Co,Ro=function(e,t,o){return o&&"number"!=typeof o&&So(e,t,o)&&(t=o=void 0),e=xo(e),void 0===t?(t=e,e=0):t=xo(t),function(e,t,o,n){for(var r=-1,a=Eo(Do((t-e)/(o||1)),0),l=Array(a);a--;)l[n?a:++r]=e,e+=o;return l}(e,t,o=void 0===o?e<t?1:-1:xo(o),Co)};const ko=Ro,To=z(e({__name:"index",props:["data","pullDownRefresh"],setup(e){const n=e,i=t(),s=o((()=>"decorate"==i.mode?i:n.data));return D((()=>{if("decorate"==i.mode){var e=document.getElementById("componentList");const t=At.create(e,{group:"draggable-element",animation:200,onEnd:e=>{let o=i.value[e.oldIndex];i.value.splice(e.oldIndex,1),i.value.splice(e.newIndex,0,o),j((()=>{t.sort(ko(i.value.length).map((e=>e.toString()))),i.postMessage(e.newIndex,i.value[e.newIndex])}))}})}})),(e,t)=>{const o=p(f("fixed-group"),U),m=p(f("diy-article"),G),x=p(f("diy-graphic-nav"),q),_=p(f("diy-horz-blank"),$),S=p(f("diy-image-ads"),V),D=p(f("diy-member-info"),K),E=p(f("diy-text"),J),C=d,R=p(f("tabbar"),F);return r(),a(C,{class:"diy-group",id:"componentList"},{default:l((()=>[(r(!0),g(v,null,b(u(s).value,((e,t)=>(r(),a(C,{key:e.id,onClick:o=>u(i).changeCurrentIndex(t,e),class:y(["draggable-element relative cursor-move",{selected:u(i).currentIndex==t,decorate:"decorate"==u(i).mode}]),style:c(e.pageStyle)},{default:l((()=>[w(o,{component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"]),"Article"==e.componentName?(r(),a(m,{key:0,component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0),"GraphicNav"==e.componentName?(r(),a(x,{key:1,component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0),"HorzBlank"==e.componentName?(r(),a(_,{key:2,component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0),"ImageAds"==e.componentName?(r(),a(S,{key:3,component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0),"MemberInfo"==e.componentName?(r(),a(D,{key:4,component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0),"Text"==e.componentName?(r(),a(E,{key:5,component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0)])),_:2},1032,["onClick","class","style"])))),128)),"decorate"!=u(i).mode&&u(s).global.bottomTabBarSwitch?(r(),g(v,{key:0},[w(C,{class:"pt-[20rpx]"}),w(R)],64)):h("",!0)])),_:1})}}}),[["__scopeId","data-v-7bf03d34"]]);export{To as _};