asiaint-lowcode 3.1.44 → 3.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +7 -6
- package/dist/index.d.ts +2 -0
- package/dist/lazy/{Card-B8dEy4DD.js → Card-H3NBSqol.js} +1 -1
- package/dist/lazy/{Cascader-F00G6SUy.js → Cascader-CPVhCUTJ.js} +1 -1
- package/dist/lazy/{Checkbox-BcUT_m66.js → Checkbox-CZHj5Fpz.js} +2 -2
- package/dist/lazy/{Collapse-BXOA-cNn.js → Collapse-CDSlXpMG.js} +1 -1
- package/dist/lazy/{Component-2pNL2qDm.js → Component-BH55essj.js} +1 -1
- package/dist/lazy/{Component-qQuvzGgN.js → Component-Bmi3chDp.js} +1 -1
- package/dist/lazy/{Component-Cma3ZKpE.js → Component-CNnzAdKu.js} +1 -1
- package/dist/lazy/{Component-BGCG0t0P.js → Component-dGHcvttq.js} +1 -1
- package/dist/lazy/{Component-DoF3gBpc.js → Component-pERcoc-p.js} +1 -1
- package/dist/lazy/{Component-BcyRv8T0.js → Component-ve4hk872.js} +1 -1
- package/dist/lazy/{CurdCard-U0G0PCGZ.js → CurdCard-ow_-omcd.js} +1 -1
- package/dist/lazy/{Custom-BeJ1eyqU.js → Custom-CZn8ejOS.js} +1 -1
- package/dist/lazy/{DatePicker-CnBTMLcI.js → DatePicker-BSUPajyV.js} +1 -1
- package/dist/lazy/{DragList-C-2wxiWg.js → DragList-BYyUZwRM.js} +1 -1
- package/dist/lazy/{FilterSearch-C9-olTfA.js → FilterSearch-BBqRSnxL.js} +1 -1
- package/dist/lazy/{FormList-D0RIMLl3.js → FormList-DHqnxHA9.js} +1 -1
- package/dist/lazy/{Grid-CQAAvaYq.js → Grid-be0Zxgv4.js} +1 -1
- package/dist/lazy/{InfiniteScroll-Dw8L56Cf.js → InfiniteScroll-CFd8oSoF.js} +1 -1
- package/dist/lazy/{Inline-BgKBFXK1.js → Inline-BlAv9Sp0.js} +1 -1
- package/dist/lazy/{JsonEdit-DAmU6gIh.js → JsonEdit-BwuOETyc.js} +1 -1
- package/dist/lazy/{LogList-qqMS8zKP.js → LogList-DcETb6ID.js} +1 -1
- package/dist/lazy/{ObjGroup-CyTqA0TA.js → ObjGroup-DZfq7BxU.js} +1 -1
- package/dist/lazy/{OfferDetails-DN1ZiMRN.js → OfferDetails-DnnGr_PN.js} +7 -6
- package/dist/lazy/{Pagination-CK5IFQDI.js → Pagination-UXI6PzBY.js} +1 -1
- package/dist/lazy/{Progress-DrbvGiOL.js → Progress-4EQXhmR7.js} +1 -1
- package/dist/lazy/{Radio-Bs6IYtEY.js → Radio-DJh89jlw.js} +2 -2
- package/dist/lazy/{SearchSelect-gi5RhJyJ.js → SearchSelect-BVLLLLbw.js} +2 -2
- package/dist/lazy/{Select-D0fHIfB1.js → Select-7xsTaI4y.js} +2 -2
- package/dist/lazy/{Table-CR8PzEr5.js → Table-BT_uCotC.js} +58 -56
- package/dist/lazy/{Tabs-VBE2xZUj.js → Tabs-Di5hDLdo.js} +1 -1
- package/dist/lazy/{TextArea-BKv1tbmT.js → TextArea-Gg6JRUP_.js} +1 -1
- package/dist/lazy/{Wrapper-n4XurF9a.js → Wrapper-BGmQi-En.js} +1 -1
- package/dist/lazy/{index-CpTPzveA.js → index-DL02eQ0F.js} +71 -56
- package/dist/lazy/{useSelect-CWvpxY4U.js → useSelect-dHZ7RST7.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
|
@@ -85,7 +85,7 @@ onClick: ${y.onClick}`)}};return(D,E)=>{const L=A.resolveComponent("el-input");r
|
|
|
85
85
|
onInput: ${t.onInput}`)}},y=()=>{if(t.onSearch&&i)try{i[t.onSearch](u)}catch(M){console.error(M+`
|
|
86
86
|
onSearch: ${t.onSearch}`)}},w=()=>{if(t.onClear&&i&&i[t.onClear])try{i[t.onClear](u)}catch(M){console.error(M+`
|
|
87
87
|
onClear: ${t.onClear}`)}else t.clearable&&(e.value="")};return(M,N)=>{const P=A.resolveComponent("el-button"),Y=A.resolveComponent("el-input");return o.value?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:M.readTextColor})},A.toDisplayString(e.value||"--"),5)):(A.openBlock(),A.createBlock(Y,A.mergeProps({key:1},M.$attrs,{modelValue:e.value,"onUpdate:modelValue":N[0]||(N[0]=G=>e.value=G),onInput:b,disabled:M.disabled,clearable:!1,readonly:M.readonly,class:{readonlyBg:M.readonly,round:M.round},style:{width:M.width},onKeyup:A.withKeys(y,["enter"])}),A.createSlots({suffix:A.withCtx(()=>[(M.onClear||M.clearable)&&e.value&&!M.disabled?(A.openBlock(),A.createBlock(A.unref(Ie),{key:0,name:"clear",onClick:w,class:"clear-icon"})):A.createCommentVNode("",!0),M.round?(A.openBlock(),A.createBlock(xe,{key:1,name:"icon-lujing2",color:"#666666",class:"cursor-pointer ml-[8px]",onClick:y})):A.createCommentVNode("",!0)]),_:2},[M.round?void 0:{name:"append",fn:A.withCtx(()=>[A.createVNode(P,{onClick:y,disabled:M.disabled},{default:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:"search"})]),_:1},8,["disabled"])]),key:"0"}]),1040,["modelValue","disabled","readonly","class","style"]))}}}),[["__scopeId","data-v-72c9ba4a"]]),_b={title:"搜索输入",component:"SearchInput",icon:A.h(Ie,{name:"search"}),type:"high",order:5,attrSchema:vb,render:kb},Mb={size:"small",labelPosition:"top",initialValues:{label:"下拉选择框",props:{mode:"static",options:[{label:"选项1",value:"value1"},{label:"选项2",value:"value2"},{label:"选项3",value:"value3"}]}},items:[{label:"标签",component:"Input",name:"label"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{label:"占位提示",component:"Input",name:"props.placeholder",designKey:"form-ekRL"},{label:"初始值",component:"Select",name:"initialValue",hidden:'{{ $values.props.mode==="remote" }}',props:{mode:"static",options:"{{$values.props.options}}",multiple:"{{$values.props.multiple}}"}},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否禁用",component:"Switch",name:"props.disabled"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"隐藏标签",component:"Switch",name:"hideLabel"}],props:{columns:3,"row-gap":20,"column-gap":20},designKey:"form-R003",name:"cNmCuu"},{label:"选择模式",component:"Switch",name:"props.multiple",props:{"active-text":"多选","inactive-text":"单选"},designKey:"form-eTxc"},{label:"搜索按钮点击事件",component:"Input",name:"props.onSearch"},...Na]},xb={title:"选择+搜索",type:"high",icon:A.h(Ie,{name:"searchSelect"}),component:"SearchSelect",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>gx)),order:3,attrSchema:Mb},Sb={size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"字段说明",component:"TextArea",name:"help",designKey:"form-ekRL1"},{label:"按钮文字",component:"Input",name:"props.buttonText",designKey:"form-ekRL",initialValue:"按钮文字"},{component:"Grid",children:[{label:"是否禁用",component:"Switch",name:"props.disabled"},{label:"隐藏字段",component:"Switch",name:"hidden"}],props:{columns:3,"row-gap":20,"column-gap":20},designKey:"form-R003",name:"cNmCuu"},{label:"click事件函数名",component:"Input",name:"props.onClick"}]},Nb=ie(A.defineComponent({__name:"button",props:{buttonText:{},onClick:{},hidden:{type:Boolean},orange:{type:Boolean},noLoading:{type:Boolean},icon:{},suffixIcon:{}},setup(n){const e=n,t=A.inject("ruleModule",void 0),i=A.inject("pageMethodMap",{}),u=A.ref(!1),I=async()=>{if(e.onClick&&t){try{e.noLoading||(u.value=!0),await t[e.onClick](i)}catch(o){console.error(o+`
|
|
88
|
-
onClick: ${e.onClick}`)}u.value=!1}};return(o,b)=>{const y=A.resolveComponent("el-button");return o.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(y,A.mergeProps({key:0},o.$attrs,{onClick:I,color:o.orange?"#FAA21E":"",class:["crm-button",{orangeBtn:o.orange}],plain:!o.orange&&o.$attrs.type!=="primary",loading:u.value}),{default:A.withCtx(()=>[o.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:o.icon.name,color:o.icon.color,class:A.normalizeClass({btnicon:o.buttonText})},null,8,["name","color","class"])):A.createCommentVNode("",!0),A.createTextVNode(" "+A.toDisplayString(o.buttonText)+" ",1),o.suffixIcon?(A.openBlock(),A.createBlock(xe,{key:1,name:o.suffixIcon.name,color:o.suffixIcon.color,class:A.normalizeClass({suffixIcon:o.buttonText})},null,8,["name","color","class"])):A.createCommentVNode("",!0)]),_:1},16,["color","class","plain","loading"]))}}}),[["__scopeId","data-v-cc9e831f"]]),Fb={title:"按钮",component:"Button",icon:A.h(Ie,{name:"button"}),type:"assist",order:1,attrSchema:Sb,render:Nb},Rb={size:"small",labelPosition:"top",initialValues:{props:{emptyText:"暂无数据",nodeKey:"id",expandOnClickNode:!1,props:{label:"label",children:"children"}}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"节点标识属性名",component:"Input",name:"props.nodeKey"},{label:"内容为空时的文本",component:"Input",name:"props.emptyText"},{label:"是否可拖拽",component:"Switch",name:"props.draggable"},{label:"是否点击节点时展开或收缩",component:"Switch",name:"props.expandOnClickNode"},{label:"节点是否懒加载",component:"Switch",name:"props.lazy"},{component:"Grid",children:[{label:"节点标签属性名",component:"Input",name:"props.props.label"},{label:"子树属性名",component:"Input",name:"props.props.children"},{label:"是否禁用属性名",component:"Input",name:"props.props.disabled"}],props:{columns:3,"row-gap":20,"column-gap":20},designKey:"form-R003",name:"cNmCuu"},{label:"子节点设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},name:"label",initialValue:'{{ "一级子节点" + ($index + 1) }}'},{label:"唯一标识",component:"Input",name:"{{$values.props.nodeKey}}",initialValue:"{{ $index + 1 }}"},{label:"子节点设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},name:"label",initialValue:'{{ "二级子节点" + ($index + 1) }}'}],props:{mode:"card",title:"子节点"},name:"children"}],props:{mode:"card",title:"子节点"},designKey:"id-RQ1a",name:"props.data"}]},Lb={title:"树",component:"Tree",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Cx)),icon:A.h(Ie,{name:"tree"}),type:"assist",order:7,attrSchema:Rb},Gb={size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help",designKey:"form-ekRL1"},{component:"Grid",children:[{label:"是否隐藏",component:"Switch",name:"hidden"}],props:{columns:3,"row-gap":20,"column-gap":20},designKey:"form-R003",name:"cNmCuu"},{label:"列设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},name:"label"},{label:"是否隐藏",component:"Switch",name:"hidden"}],props:{mode:"card",title:"列"},designKey:"id-RQ1a",name:"props.columns"},{label:"change事件函数名",component:"Input",name:"props.onChange"}]},Pb={title:"表格",component:"Table",icon:A.h(Ie,{name:"library"}),type:"assist",order:8,attrSchema:Gb,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Dx))},Hb={title:"curd模版卡片",component:"CurdCard",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Fx)),icon:A.h(Ie,{name:"card"}),type:"layout",order:6,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"卡片标题",component:"Input",name:"props.title",initialValue:"卡片"},{label:"支持折叠",component:"Switch",name:"props.collapsible"},{label:"支持切换内部表格类型",component:"Switch",name:"props.typeSwitch"},{label:"样式类型",component:"Select",name:"props.type",props:{mode:"static",options:[{label:"默认",value:"default"},{label:"内联",value:"inline"},{label:"混合",value:"mix"}]}}]}},Kb={title:"普通div容器",component:"Wrapper",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Gx)),icon:A.h(Ie,{name:"card"}),type:"layout",order:7,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"卡片标题",component:"Input",name:"props.header",initialValue:"卡片"},{label:"支持折叠",component:"Switch",name:"props.collapsible"}]}},Tb={class:"card-list-item"},Ub={class:"card-list-item-header"},Yb={class:"card-list-item-header-title"},Ob={style:{display:"ruby"}},$b=["title"],zb=["title"],Jb={key:0,class:"card-list-item-header-title__sub"},Zb={class:"sub-title-right"},Wb={class:"card-list-item-header-btns"},jb=["onClick"],qb={class:"card-list-item-content"},Xb=["title"],Vb=["onClick","title"],Ay={key:0,class:"card-list-item-content--more"},ey=["title"],ty=["title"],ny={key:1,class:"card-list-item-footer"},iy={class:"card-list-item-footer-text"},Hd=ie(A.defineComponent({__name:"CardListItem",props:{data:{},btns:{},index:{}},emits:["clickBtn"],setup(n,{emit:e}){const t=e,i=A.inject("getGlobalParams",()=>{}),u=b=>{if(b)try{t("clickBtn",b)}catch(y){console.error(y)}},I=A.ref(!1),o=b=>{b.isMore&&(I.value=!I.value)};return(b,y)=>{const w=A.resolveComponent("el-tooltip");return A.openBlock(),A.createElementBlock("div",Tb,[A.createElementVNode("div",Ub,[A.createElementVNode("div",Yb,[A.createElementVNode("div",Ob,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.tag,M=>(A.openBlock(),A.createElementBlock("div",{key:M.label,class:"card-list-item-header-title__tag",style:A.normalizeStyle({color:M.color}),title:M.value},A.toDisplayString(M.value),13,$b))),128))]),A.createElementVNode("div",{class:A.normalizeClass(["card-list-item-header-title__text",{"link-style":b.data.titleType==="link","click-style":b.data.onClick}]),style:A.normalizeStyle({color:b.data.titleColor}),title:b.data.title,onClick:y[0]||(y[0]=M=>u(b.data.onClick))},A.toDisplayString(b.data.title),15,zb),b.data.subTitle?(A.openBlock(),A.createElementBlock("div",Jb,[A.createElementVNode("span",{class:"card-list-item-header-title__sub-icon",style:A.normalizeStyle({backgroundColor:b.data.subTitleColor||"#3EBF17"})},null,4),A.createElementVNode("span",null,A.toDisplayString(b.data.subTitle),1),A.createElementVNode("div",Zb,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.subTitleRight,(M,N)=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:N},[M.value?(A.openBlock(),A.createElementBlock("div",{key:0,style:A.normalizeStyle({color:M.color||"var(--hight)"}),class:"sub-title-right__item"},A.toDisplayString(M.value),5)):A.createCommentVNode("",!0)],64))),128))])])):A.createCommentVNode("",!0)]),A.createElementVNode("div",Wb,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.btns,(M,N)=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:N},[M.condition===void 0||M.condition===null||A.unref(Rt)(M.condition,{$row:b.data.originalData,$globalParams:A.unref(i)()})?(A.openBlock(),A.createElementBlock("div",{key:0,class:"card-list-item-header-btns-item",onClick:P=>u(M.onClick)},[M.label?(A.openBlock(),A.createBlock(w,{key:0,class:"box-item",effect:"dark",content:M.label,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[A.createVNode(xe,{name:M.icon},null,8,["name"])]),_:2},1032,["content"])):(A.openBlock(),A.createBlock(xe,{key:1,name:M.icon},null,8,["name"]))],8,jb)):A.createCommentVNode("",!0)],64))),128))])]),A.createElementVNode("div",qb,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.content,M=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item-content-item",key:M.label},[A.createElementVNode("div",{class:"card-list-item-content-item-label",title:M.label},A.toDisplayString(M.label)+":",9,Xb),A.createElementVNode("div",{class:A.normalizeClass(["card-list-item-content-item-value",{"is-more":M.isMore}]),onClick:N=>o(M),title:M.value,style:A.normalizeStyle({color:M.color})},[A.createTextVNode(A.toDisplayString(M.value||"- -")+" ",1),M.isMore?(A.openBlock(),A.createBlock(xe,{key:0,class:A.normalizeClass({"rotate-[180deg]":I.value}),name:"icon-a-rongqi11",size:"small"},null,8,["class"])):A.createCommentVNode("",!0)],14,Vb)]))),128))]),I.value?(A.openBlock(),A.createElementBlock("div",Ay,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.childList,M=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item-content-item",key:M.label},[A.createElementVNode("div",{class:"card-list-item-content-item-label",title:M.label},A.toDisplayString(M.label)+":",9,ey),A.createElementVNode("div",{class:"card-list-item-content-item-value",title:M.value},A.toDisplayString(M.value||"- -"),9,ty)]))),128))])):A.createCommentVNode("",!0),b.data.footer?(A.openBlock(),A.createElementBlock("div",ny,[A.createVNode(xe,{name:b.data.footer.icon},null,8,["name"]),A.createElementVNode("span",iy,A.toDisplayString(b.data.footer.text||"- -"),1)])):A.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-805fdb67"]]),oy={key:0,class:"empty-content"},ic=ie(A.defineComponent({__name:"CardList",props:{title:{},key:{},rulePath:{},rowKey:{},showDynamicSearch:{type:Boolean},multipleSelection:{type:Boolean},highlightCurrentRow:{type:Boolean},"highlight-current-row":{type:Boolean},stripe:{type:Boolean},rowClick:{},rowDbClick:{},sizeChange:{},pageChange:{},topBtns:{},rowBtns:{},rowBtnsLabel:{},rowBtnsWidth:{},hidden:{type:Boolean},hiddenPagination:{type:Boolean},handleCurrentChange:{},selectable:{},pageSizes:{},pagerCount:{},paginationLayout:{},defaultPageSize:{},typeSwitch:{type:Boolean},displayType:{},onMounted:{},onActivated:{},height:{},collapsible:{type:Boolean},gridColumns:{default:3},gap:{default:16},data:{},columns:{},getColText:{}},setup(n){const e=n,t=A.inject("ruleModule",void 0),i=A.inject("ruleMap",void 0),u=A.inject("pageMethodMap",{}),I=A.computed(()=>e.rulePath&&i[e.rulePath]?i[e.rulePath]:t),o=(Y,G,K)=>{try{I.value[Y](u,G,K)}catch(D){console.error(D)}},b=A.computed(()=>e.rowBtns?e.rowBtns.map(Y=>({condition:Y.condition,icon:Y.icon&&Y.icon.name?Y.icon.name:"icon-tishi",label:Y.label,onClick:Y.onClick})):[]),y=e.columns.find(Y=>Y.position==="title"),w=e.columns.find(Y=>Y.position==="subTitle"),M=e.columns.find(Y=>Y.position==="footer"),N={key:"__childList"},P=A.computed(()=>{const Y=e.columns.filter(G=>G.type==="link");return e.data?e.data.map(G=>{var D;const K={subTitleRight:[],content:[],tag:[],originalData:G};if(y&&Y&&Y.find(E=>E.key===y.key)&&(K.titleType="link",K.onClick=(D=Y.find(E=>E.key===y.key))==null?void 0:D.onClick),y&&(K.title=e.getColText(y,G),K.titleColor=G[y.key+"Color"]),w&&(K.subTitle=e.getColText(w,G),K.subTitleColor=G[w.key+"Color"]),M){const E=e.getColText(M,G);K.footer={icon:M.footerIcon||"icon-tishi",text:`${M.label}: ${E||"- -"}`}}return e.columns.forEach(E=>{E.position==="content"?K.content.push({label:E.label,value:e.getColText(E,G),color:E.color}):E.position==="moreContent"?(K.content.push({label:E.label,value:e.getColText(E,G),isMore:G[N.key]&&G[N.key].length>0}),K.childList=G[N.key]):E.position==="tag"?K.tag.push({label:E.label,value:e.getColText(E,G)}):E.position==="subTitleRight"&&K.subTitleRight.push({label:E.label,value:e.getColText(E,G),color:E.color})}),K}):[]});return(Y,G)=>(A.openBlock(),A.createElementBlock("div",null,[A.createElementVNode("div",{class:"card-list",style:A.normalizeStyle({"--columns":Y.gridColumns,"--gap":Y.gap+"px"})},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(P.value,(K,D)=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item",key:D},[A.createVNode(Hd,{data:K,btns:b.value,index:D,onClickBtn:E=>o(E,K.originalData,D)},null,8,["data","btns","index","onClickBtn"])]))),128))],4),!Y.data||Y.data.length===0?(A.openBlock(),A.createElementBlock("div",oy,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),G[0]||(G[0]=A.createElementVNode("div",null,"No data available,please check",-1))])):A.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-082f0b61"]]),ry={title:"卡片列表",component:"CardList",render:ic,icon:A.h(Ie,{name:"card"}),type:"assist",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"填充的数据",component:"Input",name:"data"}]}},ay={title:"定制化组件(OfferDetails)",component:"OfferDetails",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Zx)),icon:A.h(Ie,{name:"card"}),type:"assist",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"填充的数据",component:"Input",name:"data"}]}},sy={title:"定制化组件(Progress)",component:"Progress",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Vx)),icon:A.h(Ie,{name:"card"}),type:"assist",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"填充的数据",component:"Input",name:"data"}]}},ly={title:"日志列表",component:"LogList",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>rS)),icon:A.h(Ie,{name:"card"}),type:"assist",order:12,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"}]}},cy={title:"可拖拽网格容器",icon:A.h(Ie,{name:"inline"}),type:"layout",component:"DragList",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>L8)),order:9,lbTitle:!0,attrSchema:{items:[{label:"唯一标识",component:"Input",name:"name"},{label:"列数",component:"InputNumber",name:"props.colNum",initialValue:12},{label:"行高",component:"InputNumber",name:"props.rowHeight",initialValue:30},{label:"布局",name:"props.layout",component:"FormList",children:[{label:"起点横坐标",name:"x",component:"Input",props:{type:"number"},designKey:"form-LnGh",initialValue:"{{$index}}"},{label:"起点纵坐标",name:"y",component:"Input",props:{type:"number"},designKey:"form-HYtW",initialValue:"{{ $index + 1}}"},{label:"宽度",name:"w",component:"Input",props:{type:"number"},designKey:"form-HYtW2"},{label:"高度",name:"h",component:"Input",props:{type:"number"},designKey:"form-HYtW3"},{label:"是否固定",name:"static",component:"Switch",designKey:"form-HYtW4"}],designKey:"form-Iwpd",props:{mode:"table",title:"选项"}}]}},gy=ie(A.defineComponent({__name:"Disabled",props:{disabled:{type:Boolean}},setup(n){return(e,t)=>e.disabled?(A.openBlock(),A.createElementBlock("div",A.mergeProps({key:0},e.$attrs,{class:"disabled-wrapper"}),[t[0]||(t[0]=A.createElementVNode("div",{class:"mask"},null,-1)),A.renderSlot(e.$slots,"default",{},void 0,!0)],16)):A.renderSlot(e.$slots,"default",{key:1},void 0,!0)}}),[["__scopeId","data-v-f3803727"]]);let qi=class extends Error{constructor(e){super(e),this.name="ShikiError"}},oc=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function uy(){return 2147483648}function dy(){return typeof performance<"u"?performance.now():Date.now()}const hy=(n,e)=>n+(e-n%e)%e;async function py(n){let e,t;const i={};function u(Y){t=Y,i.HEAPU8=new Uint8Array(Y),i.HEAPU32=new Uint32Array(Y)}function I(Y,G,K){i.HEAPU8.copyWithin(Y,G,G+K)}function o(Y){try{return e.grow(Y-t.byteLength+65535>>>16),u(e.buffer),1}catch{}}function b(Y){const G=i.HEAPU8.length;Y=Y>>>0;const K=uy();if(Y>K)return!1;for(let D=1;D<=4;D*=2){let E=G*(1+.2/D);E=Math.min(E,Y+100663296);const L=Math.min(K,hy(Math.max(Y,E),65536));if(o(L))return!0}return!1}const y=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function w(Y,G,K=1024){const D=G+K;let E=G;for(;Y[E]&&!(E>=D);)++E;if(E-G>16&&Y.buffer&&y)return y.decode(Y.subarray(G,E));let L="";for(;G<E;){let _=Y[G++];if(!(_&128)){L+=String.fromCharCode(_);continue}const v=Y[G++]&63;if((_&224)===192){L+=String.fromCharCode((_&31)<<6|v);continue}const B=Y[G++]&63;if((_&240)===224?_=(_&15)<<12|v<<6|B:_=(_&7)<<18|v<<12|B<<6|Y[G++]&63,_<65536)L+=String.fromCharCode(_);else{const p=_-65536;L+=String.fromCharCode(55296|p>>10,56320|p&1023)}}return L}function M(Y,G){return Y?w(i.HEAPU8,Y,G):""}const N={emscripten_get_now:dy,emscripten_memcpy_big:I,emscripten_resize_heap:b,fd_write:()=>0};async function P(){const G=await n({env:N,wasi_snapshot_preview1:N});e=G.memory,u(e.buffer),Object.assign(i,G),i.UTF8ToString=M}return await P(),i}let Lt=null;function Cy(n){throw new oc(n.UTF8ToString(n.getLastOnigError()))}class Fa{constructor(e){Ct(this,"utf16Length");Ct(this,"utf8Length");Ct(this,"utf16Value");Ct(this,"utf8Value");Ct(this,"utf16OffsetToUtf8");Ct(this,"utf8OffsetToUtf16");const t=e.length,i=Fa._utf8ByteLength(e),u=i!==t,I=u?new Uint32Array(t+1):null;u&&(I[t]=i);const o=u?new Uint32Array(i+1):null;u&&(o[i]=t);const b=new Uint8Array(i);let y=0;for(let w=0;w<t;w++){const M=e.charCodeAt(w);let N=M,P=!1;if(M>=55296&&M<=56319&&w+1<t){const Y=e.charCodeAt(w+1);Y>=56320&&Y<=57343&&(N=(M-55296<<10)+65536|Y-56320,P=!0)}u&&(I[w]=y,P&&(I[w+1]=y),N<=127?o[y+0]=w:N<=2047?(o[y+0]=w,o[y+1]=w):N<=65535?(o[y+0]=w,o[y+1]=w,o[y+2]=w):(o[y+0]=w,o[y+1]=w,o[y+2]=w,o[y+3]=w)),N<=127?b[y++]=N:N<=2047?(b[y++]=192|(N&1984)>>>6,b[y++]=128|(N&63)>>>0):N<=65535?(b[y++]=224|(N&61440)>>>12,b[y++]=128|(N&4032)>>>6,b[y++]=128|(N&63)>>>0):(b[y++]=240|(N&1835008)>>>18,b[y++]=128|(N&258048)>>>12,b[y++]=128|(N&4032)>>>6,b[y++]=128|(N&63)>>>0),P&&w++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=b,this.utf16OffsetToUtf8=I,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let i=0,u=e.length;i<u;i++){const I=e.charCodeAt(i);let o=I,b=!1;if(I>=55296&&I<=56319&&i+1<u){const y=e.charCodeAt(i+1);y>=56320&&y<=57343&&(o=(I-55296<<10)+65536|y-56320,b=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,b&&i++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const cn=class cn{constructor(e){Ct(this,"id",++cn.LAST_ID);Ct(this,"_onigBinding");Ct(this,"content");Ct(this,"utf16Length");Ct(this,"utf8Length");Ct(this,"utf16OffsetToUtf8");Ct(this,"utf8OffsetToUtf16");Ct(this,"ptr");if(!Lt)throw new oc("Must invoke loadWasm first.");this._onigBinding=Lt,this.content=e;const t=new Fa(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!cn._sharedPtrInUse?(cn._sharedPtr||(cn._sharedPtr=Lt.omalloc(1e4)),cn._sharedPtrInUse=!0,Lt.HEAPU8.set(t.utf8Value,cn._sharedPtr),this.ptr=cn._sharedPtr):this.ptr=t.createString(Lt)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===cn._sharedPtr?cn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Ct(cn,"LAST_ID",0),Ct(cn,"_sharedPtr",0),Ct(cn,"_sharedPtrInUse",!1);let Ra=cn;class By{constructor(e){Ct(this,"_onigBinding");Ct(this,"_ptr");if(!Lt)throw new oc("Must invoke loadWasm first.");const t=[],i=[];for(let b=0,y=e.length;b<y;b++){const w=new Fa(e[b]);t[b]=w.createString(Lt),i[b]=w.utf8Length}const u=Lt.omalloc(4*e.length);Lt.HEAPU32.set(t,u/4);const I=Lt.omalloc(4*e.length);Lt.HEAPU32.set(i,I/4);const o=Lt.createOnigScanner(u,I,e.length);for(let b=0,y=e.length;b<y;b++)Lt.ofree(t[b]);Lt.ofree(I),Lt.ofree(u),o===0&&Cy(Lt),this._onigBinding=Lt,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,i){let u=0;if(typeof i=="number"&&(u=i),typeof e=="string"){e=new Ra(e);const I=this._findNextMatchSync(e,t,!1,u);return e.dispose(),I}return this._findNextMatchSync(e,t,!1,u)}_findNextMatchSync(e,t,i,u){const I=this._onigBinding,o=I.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),u);if(o===0)return null;const b=I.HEAPU32;let y=o/4;const w=b[y++],M=b[y++],N=[];for(let P=0;P<M;P++){const Y=e.convertUtf8OffsetToUtf16(b[y++]),G=e.convertUtf8OffsetToUtf16(b[y++]);N[P]={start:Y,end:G,length:G-Y}}return{index:w,captureIndices:N}}}function my(n){return typeof n.instantiator=="function"}function Ey(n){return typeof n.default=="function"}function Qy(n){return typeof n.data<"u"}function Iy(n){return typeof Response<"u"&&n instanceof Response}function fy(n){var e;return typeof ArrayBuffer<"u"&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,n))||typeof SharedArrayBuffer<"u"&&n instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&n instanceof Uint32Array}let La;function wy(n){if(La)return La;async function e(){Lt=await py(async t=>{let i=n;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),my(i)?i=await i.instantiator(t):Ey(i)?i=await i.default(t):(Qy(i)&&(i=i.data),Iy(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await by(i)(t):i=await yy(i)(t):fy(i)?i=await rc(i)(t):i instanceof WebAssembly.Module?i=await rc(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await rc(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return La=e(),La}function rc(n){return e=>WebAssembly.instantiate(n,e)}function by(n){return e=>WebAssembly.instantiateStreaming(n,e)}function yy(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}let Dy;function vy(){return Dy}async function ky(n){return n&&await wy(n),{createScanner(e){return new By(e)},createString(e){return new Ra(e)}}}function _y(n){return ac(n)}function ac(n){return Array.isArray(n)?My(n):typeof n=="object"?xy(n):n}function My(n){let e=[];for(let t=0,i=n.length;t<i;t++)e[t]=ac(n[t]);return e}function xy(n){let e={};for(let t in n)e[t]=ac(n[t]);return e}function Kd(n,...e){return e.forEach(t=>{for(let i in t)n[i]=t[i]}),n}function Td(n){const e=~n.lastIndexOf("/")||~n.lastIndexOf("\\");return e===0?n:~e===n.length-1?Td(n.substring(0,n.length-1)):n.substr(~e+1)}var sc=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ga=class{static hasCaptures(n){return n===null?!1:(sc.lastIndex=0,sc.test(n))}static replaceCaptures(n,e,t){return n.replace(sc,(i,u,I,o)=>{let b=t[parseInt(u||I,10)];if(b){let y=e.substring(b.start,b.end);for(;y[0]===".";)y=y.substring(1);switch(o){case"downcase":return y.toLowerCase();case"upcase":return y.toUpperCase();default:return y}}else return i})}};function Ud(n,e){return n<e?-1:n>e?1:0}function Yd(n,e){if(n===null&&e===null)return 0;if(!n)return-1;if(!e)return 1;let t=n.length,i=e.length;if(t===i){for(let u=0;u<t;u++){let I=Ud(n[u],e[u]);if(I!==0)return I}return 0}return t-i}function Od(n){return!!(/^#[0-9a-f]{6}$/i.test(n)||/^#[0-9a-f]{8}$/i.test(n)||/^#[0-9a-f]{3}$/i.test(n)||/^#[0-9a-f]{4}$/i.test(n))}function $d(n){return n.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var zd=class{constructor(n){this.fn=n,this.cache=new Map}get(n){if(this.cache.has(n))return this.cache.get(n);const e=this.fn(n);return this.cache.set(n,e),e}},Pa=class{constructor(n,e,t){this._colorMap=n,this._defaults=e,this._root=t,this._cachedMatchRoot=new zd(i=>this._root.match(i))}static createFromRawTheme(n,e){return this.createFromParsedTheme(Fy(n),e)}static createFromParsedTheme(n,e){return Ly(n,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(n){if(n===null)return this._defaults;const e=n.scopeName,i=this._cachedMatchRoot.get(e).find(u=>Sy(n.parent,u.parentScopes));return i?new Jd(i.fontStyle,i.foreground,i.background):null}},lc=class kl{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const i of t)e=new kl(e,i);return e}static from(...e){let t=null;for(let i=0;i<e.length;i++)t=new kl(t,e[i]);return t}push(e){return new kl(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push(i.scopeName),i=i.parent;return i===e?t.reverse():void 0}};function Sy(n,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let i=e[t],u=!1;if(i===">"){if(t===e.length-1)return!1;i=e[++t],u=!0}for(;n&&!Ny(n.scopeName,i);){if(u)return!1;n=n.parent}if(!n)return!1;n=n.parent}return!0}function Ny(n,e){return e===n||n.startsWith(e)&&n[e.length]==="."}var Jd=class{constructor(n,e,t){this.fontStyle=n,this.foregroundId=e,this.backgroundId=t}};function Fy(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let e=n.settings,t=[],i=0;for(let u=0,I=e.length;u<I;u++){let o=e[u];if(!o.settings)continue;let b;if(typeof o.scope=="string"){let N=o.scope;N=N.replace(/^[,]+/,""),N=N.replace(/[,]+$/,""),b=N.split(",")}else Array.isArray(o.scope)?b=o.scope:b=[""];let y=-1;if(typeof o.settings.fontStyle=="string"){y=0;let N=o.settings.fontStyle.split(" ");for(let P=0,Y=N.length;P<Y;P++)switch(N[P]){case"italic":y=y|1;break;case"bold":y=y|2;break;case"underline":y=y|4;break;case"strikethrough":y=y|8;break}}let w=null;typeof o.settings.foreground=="string"&&Od(o.settings.foreground)&&(w=o.settings.foreground);let M=null;typeof o.settings.background=="string"&&Od(o.settings.background)&&(M=o.settings.background);for(let N=0,P=b.length;N<P;N++){let G=b[N].trim().split(" "),K=G[G.length-1],D=null;G.length>1&&(D=G.slice(0,G.length-1),D.reverse()),t[i++]=new Ry(K,D,u,y,w,M)}}return t}var Ry=class{constructor(n,e,t,i,u,I){this.scope=n,this.parentScopes=e,this.index=t,this.fontStyle=i,this.foreground=u,this.background=I}},ui=(n=>(n[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n))(ui||{});function Ly(n,e){n.sort((y,w)=>{let M=Ud(y.scope,w.scope);return M!==0||(M=Yd(y.parentScopes,w.parentScopes),M!==0)?M:y.index-w.index});let t=0,i="#000000",u="#ffffff";for(;n.length>=1&&n[0].scope==="";){let y=n.shift();y.fontStyle!==-1&&(t=y.fontStyle),y.foreground!==null&&(i=y.foreground),y.background!==null&&(u=y.background)}let I=new Gy(e),o=new Jd(t,I.getId(i),I.getId(u)),b=new Hy(new cc(0,null,-1,0,0),[]);for(let y=0,w=n.length;y<w;y++){let M=n[y];b.insert(0,M.scope,M.parentScopes,M.fontStyle,I.getId(M.foreground),I.getId(M.background))}return new Pa(I,o,b)}var Gy=class{constructor(n){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(n)){this._isFrozen=!0;for(let e=0,t=n.length;e<t;e++)this._color2id[n[e]]=e,this._id2color[e]=n[e]}else this._isFrozen=!1}getId(n){if(n===null)return 0;n=n.toUpperCase();let e=this._color2id[n];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${n}`);return e=++this._lastColorId,this._color2id[n]=e,this._id2color[e]=n,e}getColorMap(){return this._id2color.slice(0)}},Py=Object.freeze([]),cc=class Cm{constructor(e,t,i,u,I){this.scopeDepth=e,this.parentScopes=t||Py,this.fontStyle=i,this.foreground=u,this.background=I}clone(){return new Cm(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let i=0,u=e.length;i<u;i++)t[i]=e[i].clone();return t}acceptOverwrite(e,t,i,u){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),i!==0&&(this.foreground=i),u!==0&&(this.background=u)}},Hy=class Qu{constructor(e,t=[],i={}){this._mainRule=e,this._children=i,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let i=0,u=0;for(;e.parentScopes[i]===">"&&i++,t.parentScopes[u]===">"&&u++,!(i>=e.parentScopes.length||u>=t.parentScopes.length);){const I=t.parentScopes[u].length-e.parentScopes[i].length;if(I!==0)return I;i++,u++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),u,I;if(i===-1?(u=e,I=""):(u=e.substring(0,i),I=e.substring(i+1)),this._children.hasOwnProperty(u))return this._children[u].match(I)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Qu._cmpBySpecificity),t}insert(e,t,i,u,I,o){if(t===""){this._doInsertHere(e,i,u,I,o);return}let b=t.indexOf("."),y,w;b===-1?(y=t,w=""):(y=t.substring(0,b),w=t.substring(b+1));let M;this._children.hasOwnProperty(y)?M=this._children[y]:(M=new Qu(this._mainRule.clone(),cc.cloneArr(this._rulesWithParentScopes)),this._children[y]=M),M.insert(e+1,w,i,u,I,o)}_doInsertHere(e,t,i,u,I){if(t===null){this._mainRule.acceptOverwrite(e,i,u,I);return}for(let o=0,b=this._rulesWithParentScopes.length;o<b;o++){let y=this._rulesWithParentScopes[o];if(Yd(y.parentScopes,t)===0){y.acceptOverwrite(e,i,u,I);return}}i===-1&&(i=this._mainRule.fontStyle),u===0&&(u=this._mainRule.foreground),I===0&&(I=this._mainRule.background),this._rulesWithParentScopes.push(new cc(e,t,i,u,I))}},No=class Un{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=Un.getLanguageId(e),i=Un.getTokenType(e),u=Un.getFontStyle(e),I=Un.getForeground(e),o=Un.getBackground(e);console.log({languageId:t,tokenType:i,fontStyle:u,foreground:I,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,i,u,I,o,b){let y=Un.getLanguageId(e),w=Un.getTokenType(e),M=Un.containsBalancedBrackets(e)?1:0,N=Un.getFontStyle(e),P=Un.getForeground(e),Y=Un.getBackground(e);return t!==0&&(y=t),i!==8&&(w=i),u!==null&&(M=u?1:0),I!==-1&&(N=I),o!==0&&(P=o),b!==0&&(Y=b),(y<<0|w<<8|M<<10|N<<11|P<<15|Y<<24)>>>0}};function Y3(n){return n}function O3(n){return n}function Ha(n,e){const t=[],i=Ky(n);let u=i.next();for(;u!==null;){let y=0;if(u.length===2&&u.charAt(1)===":"){switch(u.charAt(0)){case"R":y=1;break;case"L":y=-1;break;default:console.log(`Unknown priority ${u} in scope selector`)}u=i.next()}let w=o();if(t.push({matcher:w,priority:y}),u!==",")break;u=i.next()}return t;function I(){if(u==="-"){u=i.next();const y=I();return w=>!!y&&!y(w)}if(u==="("){u=i.next();const y=b();return u===")"&&(u=i.next()),y}if(Zd(u)){const y=[];do y.push(u),u=i.next();while(Zd(u));return w=>e(y,w)}return null}function o(){const y=[];let w=I();for(;w;)y.push(w),w=I();return M=>y.every(N=>N(M))}function b(){const y=[];let w=o();for(;w&&(y.push(w),u==="|"||u===",");){do u=i.next();while(u==="|"||u===",");w=o()}return M=>y.some(N=>N(M))}}function Zd(n){return!!n&&!!n.match(/[\w\.:]+/)}function Ky(n){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(n);return{next:()=>{if(!t)return null;const i=t[0];return t=e.exec(n),i}}}function Wd(n){typeof n.dispose=="function"&&n.dispose()}var Br=class{constructor(n){this.scopeName=n}toKey(){return this.scopeName}},Ty=class{constructor(n,e){this.scopeName=n,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Uy=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(n){const e=n.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(n))}},Yy=class{constructor(n,e){this.repo=n,this.initialScopeName=e,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Br(this.initialScopeName)]}processQueue(){const n=this.Q;this.Q=[];const e=new Uy;for(const t of n)Oy(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Br){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Oy(n,e,t,i){const u=t.lookup(n.scopeName);if(!u){if(n.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const I=t.lookup(e);n instanceof Br?Ka({baseGrammar:I,selfGrammar:u},i):gc(n.ruleName,{baseGrammar:I,selfGrammar:u,repository:u.repository},i);const o=t.injections(n.scopeName);if(o)for(const b of o)i.add(new Br(b))}function gc(n,e,t){if(e.repository&&e.repository[n]){const i=e.repository[n];Ta([i],e,t)}}function Ka(n,e){n.selfGrammar.patterns&&Array.isArray(n.selfGrammar.patterns)&&Ta(n.selfGrammar.patterns,{...n,repository:n.selfGrammar.repository},e),n.selfGrammar.injections&&Ta(Object.values(n.selfGrammar.injections),{...n,repository:n.selfGrammar.repository},e)}function Ta(n,e,t){for(const i of n){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const u=i.repository?Kd({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&Ta(i.patterns,{...e,repository:u},t);const I=i.include;if(!I)continue;const o=jd(I);switch(o.kind){case 0:Ka({...e,selfGrammar:e.baseGrammar},t);break;case 1:Ka(e,t);break;case 2:gc(o.ruleName,{...e,repository:u},t);break;case 3:case 4:const b=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(b){const y={baseGrammar:e.baseGrammar,selfGrammar:b,repository:u};o.kind===4?gc(o.ruleName,y,t):Ka(y,t)}else o.kind===4?t.add(new Ty(o.scopeName,o.ruleName)):t.add(new Br(o.scopeName));break}}}var $y=class{constructor(){this.kind=0}},zy=class{constructor(){this.kind=1}},Jy=class{constructor(n){this.ruleName=n,this.kind=2}},Zy=class{constructor(n){this.scopeName=n,this.kind=3}},Wy=class{constructor(n,e){this.scopeName=n,this.ruleName=e,this.kind=4}};function jd(n){if(n==="$base")return new $y;if(n==="$self")return new zy;const e=n.indexOf("#");if(e===-1)return new Zy(n);if(e===0)return new Jy(n.substring(1));{const t=n.substring(0,e),i=n.substring(e+1);return new Wy(t,i)}}var jy=/\\(\d+)/,qd=/\\(\d+)/g,qy=-1,Xd=-2;function $3(n){return n}function z3(n){return n}var mr=class{constructor(n,e,t,i){this.$location=n,this.id=e,this._name=t||null,this._nameIsCapturing=Ga.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Ga.hasCaptures(this._contentName)}get debugName(){const n=this.$location?`${Td(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${n}`}getName(n,e){return!this._nameIsCapturing||this._name===null||n===null||e===null?this._name:Ga.replaceCaptures(this._name,n,e)}getContentName(n,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ga.replaceCaptures(this._contentName,n,e)}},Xy=class extends mr{constructor(n,e,t,i,u){super(n,e,t,i),this.retokenizeCapturedWithRuleId=u}dispose(){}collectPatterns(n,e){throw new Error("Not supported!")}compile(n,e){throw new Error("Not supported!")}compileAG(n,e,t,i){throw new Error("Not supported!")}},Vy=class extends mr{constructor(n,e,t,i,u){super(n,e,t,null),this._match=new Er(i,this.id),this.captures=u,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,e){e.push(this._match)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n).compileAG(n,t,i)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Qr,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Vd=class extends mr{constructor(n,e,t,i,u){super(n,e,t,i),this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,e){for(const t of this.patterns)n.getRule(t).collectPatterns(n,e)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n).compileAG(n,t,i)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Qr,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},uc=class extends mr{constructor(n,e,t,i,u,I,o,b,y,w){super(n,e,t,i),this._begin=new Er(u,this.id),this.beginCaptures=I,this._end=new Er(o||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=b,this.applyEndPatternLast=y||!1,this.patterns=w.patterns,this.hasMissingPatterns=w.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,e){return this._end.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n,e).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n,e).compileAG(n,t,i)}_getCachedCompiledPatterns(n,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Qr;for(const t of this.patterns)n.getRule(t).collectPatterns(n,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Ua=class extends mr{constructor(n,e,t,i,u,I,o,b,y){super(n,e,t,i),this._begin=new Er(u,this.id),this.beginCaptures=I,this.whileCaptures=b,this._while=new Er(o,Xd),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=y.patterns,this.hasMissingPatterns=y.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,e){return this._while.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n).compileAG(n,t,i)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Qr;for(const e of this.patterns)n.getRule(e).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,e){return this._getCachedCompiledWhilePatterns(n,e).compile(n)}compileWhileAG(n,e,t,i){return this._getCachedCompiledWhilePatterns(n,e).compileAG(n,t,i)}_getCachedCompiledWhilePatterns(n,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Qr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},Ah=class Jt{static createCaptureRule(e,t,i,u,I){return e.registerRule(o=>new Xy(t,o,i,u,I))}static getCompiledRuleId(e,t,i){return e.id||t.registerRule(u=>{if(e.id=u,e.match)return new Vy(e.$vscodeTextmateLocation,e.id,e.name,e.match,Jt._compileCaptures(e.captures,t,i));if(typeof e.begin>"u"){e.repository&&(i=Kd({},i,e.repository));let I=e.patterns;return typeof I>"u"&&e.include&&(I=[{include:e.include}]),new Vd(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,Jt._compilePatterns(I,t,i))}return e.while?new Ua(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Jt._compileCaptures(e.beginCaptures||e.captures,t,i),e.while,Jt._compileCaptures(e.whileCaptures||e.captures,t,i),Jt._compilePatterns(e.patterns,t,i)):new uc(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Jt._compileCaptures(e.beginCaptures||e.captures,t,i),e.end,Jt._compileCaptures(e.endCaptures||e.captures,t,i),e.applyEndPatternLast,Jt._compilePatterns(e.patterns,t,i))}),e.id}static _compileCaptures(e,t,i){let u=[];if(e){let I=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const b=parseInt(o,10);b>I&&(I=b)}for(let o=0;o<=I;o++)u[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const b=parseInt(o,10);let y=0;e[o].patterns&&(y=Jt.getCompiledRuleId(e[o],t,i)),u[b]=Jt.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,y)}}return u}static _compilePatterns(e,t,i){let u=[];if(e)for(let I=0,o=e.length;I<o;I++){const b=e[I];let y=-1;if(b.include){const w=jd(b.include);switch(w.kind){case 0:case 1:y=Jt.getCompiledRuleId(i[b.include],t,i);break;case 2:let M=i[w.ruleName];M&&(y=Jt.getCompiledRuleId(M,t,i));break;case 3:case 4:const N=w.scopeName,P=w.kind===4?w.ruleName:null,Y=t.getExternalGrammar(N,i);if(Y)if(P){let G=Y.repository[P];G&&(y=Jt.getCompiledRuleId(G,t,Y.repository))}else y=Jt.getCompiledRuleId(Y.repository.$self,t,Y.repository);break}}else y=Jt.getCompiledRuleId(b,t,i);if(y!==-1){const w=t.getRule(y);let M=!1;if((w instanceof Vd||w instanceof uc||w instanceof Ua)&&w.hasMissingPatterns&&w.patterns.length===0&&(M=!0),M)continue;u.push(y)}}return{patterns:u,hasMissingPatterns:(e?e.length:0)!==u.length}}},Er=class Bm{constructor(e,t){if(e){const i=e.length;let u=0,I=[],o=!1;for(let b=0;b<i;b++)if(e.charAt(b)==="\\"&&b+1<i){const w=e.charAt(b+1);w==="z"?(I.push(e.substring(u,b)),I.push("$(?!\\n)(?<!\\n)"),u=b+2):(w==="A"||w==="G")&&(o=!0),b++}this.hasAnchor=o,u===0?this.source=e:(I.push(e.substring(u,i)),this.source=I.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=jy.test(this.source)}clone(){return new Bm(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let i=t.map(u=>e.substring(u.start,u.end));return qd.lastIndex=0,this.source.replace(qd,(u,I)=>$d(i[parseInt(I,10)]||""))}_buildAnchorCache(){let e=[],t=[],i=[],u=[],I,o,b,y;for(I=0,o=this.source.length;I<o;I++)b=this.source.charAt(I),e[I]=b,t[I]=b,i[I]=b,u[I]=b,b==="\\"&&I+1<o&&(y=this.source.charAt(I+1),y==="A"?(e[I+1]="",t[I+1]="",i[I+1]="A",u[I+1]="A"):y==="G"?(e[I+1]="",t[I+1]="G",i[I+1]="",u[I+1]="G"):(e[I+1]=y,t[I+1]=y,i[I+1]=y,u[I+1]=y),I++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:i.join(""),A1_G1:u.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Qr=class{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(n){this._items.push(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}unshift(n){this._items.unshift(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}length(){return this._items.length}setSource(n,e){this._items[n].source!==e&&(this._disposeCaches(),this._items[n].setSource(e))}compile(n){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new eh(n,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(n,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G0):this.compile(n)}_resolveAnchors(n,e,t){let i=this._items.map(u=>u.resolveAnchors(e,t));return new eh(n,i,this._items.map(u=>u.ruleId))}},eh=class{constructor(n,e,t){this.regExps=e,this.rules=t,this.scanner=n.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const n=[];for(let e=0,t=this.rules.length;e<t;e++)n.push(" - "+this.rules[e]+": "+this.regExps[e]);return n.join(`
|
|
88
|
+
onClick: ${e.onClick}`)}u.value=!1}};return(o,b)=>{const y=A.resolveComponent("el-button");return o.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(y,A.mergeProps({key:0},o.$attrs,{onClick:I,color:o.orange?"#FAA21E":"",class:["crm-button",{orangeBtn:o.orange}],plain:!o.orange&&o.$attrs.type!=="primary",loading:u.value}),{default:A.withCtx(()=>[o.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:o.icon.name,color:o.icon.color,class:A.normalizeClass({btnicon:o.buttonText})},null,8,["name","color","class"])):A.createCommentVNode("",!0),A.createTextVNode(" "+A.toDisplayString(o.buttonText)+" ",1),o.suffixIcon?(A.openBlock(),A.createBlock(xe,{key:1,name:o.suffixIcon.name,color:o.suffixIcon.color,class:A.normalizeClass({suffixIcon:o.buttonText})},null,8,["name","color","class"])):A.createCommentVNode("",!0)]),_:1},16,["color","class","plain","loading"]))}}}),[["__scopeId","data-v-cc9e831f"]]),Fb={title:"按钮",component:"Button",icon:A.h(Ie,{name:"button"}),type:"assist",order:1,attrSchema:Sb,render:Nb},Rb={size:"small",labelPosition:"top",initialValues:{props:{emptyText:"暂无数据",nodeKey:"id",expandOnClickNode:!1,props:{label:"label",children:"children"}}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"节点标识属性名",component:"Input",name:"props.nodeKey"},{label:"内容为空时的文本",component:"Input",name:"props.emptyText"},{label:"是否可拖拽",component:"Switch",name:"props.draggable"},{label:"是否点击节点时展开或收缩",component:"Switch",name:"props.expandOnClickNode"},{label:"节点是否懒加载",component:"Switch",name:"props.lazy"},{component:"Grid",children:[{label:"节点标签属性名",component:"Input",name:"props.props.label"},{label:"子树属性名",component:"Input",name:"props.props.children"},{label:"是否禁用属性名",component:"Input",name:"props.props.disabled"}],props:{columns:3,"row-gap":20,"column-gap":20},designKey:"form-R003",name:"cNmCuu"},{label:"子节点设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},name:"label",initialValue:'{{ "一级子节点" + ($index + 1) }}'},{label:"唯一标识",component:"Input",name:"{{$values.props.nodeKey}}",initialValue:"{{ $index + 1 }}"},{label:"子节点设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},name:"label",initialValue:'{{ "二级子节点" + ($index + 1) }}'}],props:{mode:"card",title:"子节点"},name:"children"}],props:{mode:"card",title:"子节点"},designKey:"id-RQ1a",name:"props.data"}]},Lb={title:"树",component:"Tree",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Cx)),icon:A.h(Ie,{name:"tree"}),type:"assist",order:7,attrSchema:Rb},Gb={size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help",designKey:"form-ekRL1"},{component:"Grid",children:[{label:"是否隐藏",component:"Switch",name:"hidden"}],props:{columns:3,"row-gap":20,"column-gap":20},designKey:"form-R003",name:"cNmCuu"},{label:"列设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},name:"label"},{label:"是否隐藏",component:"Switch",name:"hidden"}],props:{mode:"card",title:"列"},designKey:"id-RQ1a",name:"props.columns"},{label:"change事件函数名",component:"Input",name:"props.onChange"}]},Pb={title:"表格",component:"Table",icon:A.h(Ie,{name:"library"}),type:"assist",order:8,attrSchema:Gb,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Dx))},Hb={title:"curd模版卡片",component:"CurdCard",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Fx)),icon:A.h(Ie,{name:"card"}),type:"layout",order:6,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"卡片标题",component:"Input",name:"props.title",initialValue:"卡片"},{label:"支持折叠",component:"Switch",name:"props.collapsible"},{label:"支持切换内部表格类型",component:"Switch",name:"props.typeSwitch"},{label:"样式类型",component:"Select",name:"props.type",props:{mode:"static",options:[{label:"默认",value:"default"},{label:"内联",value:"inline"},{label:"混合",value:"mix"}]}}]}},Kb={title:"普通div容器",component:"Wrapper",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Gx)),icon:A.h(Ie,{name:"card"}),type:"layout",order:7,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"卡片标题",component:"Input",name:"props.header",initialValue:"卡片"},{label:"支持折叠",component:"Switch",name:"props.collapsible"}]}},Tb={class:"card-list-item"},Ub={class:"card-list-item-header"},Yb={class:"card-list-item-header-title"},Ob={style:{display:"ruby"}},$b=["title"],zb=["title"],Jb={key:0,class:"card-list-item-header-title__sub"},Zb={class:"sub-title-right"},Wb={class:"card-list-item-header-btns"},jb=["onClick"],qb={class:"card-list-item-content"},Xb=["title"],Vb=["onClick","title"],Ay={key:0,class:"card-list-item-content--more"},ey=["title"],ty=["title"],ny={key:1,class:"card-list-item-footer"},iy={class:"card-list-item-footer-text"},Hd=ie(A.defineComponent({__name:"CardListItem",props:{data:{},btns:{},index:{}},emits:["clickBtn"],setup(n,{emit:e}){const t=e,i=A.inject("getGlobalParams",()=>{}),u=b=>{if(b)try{t("clickBtn",b)}catch(y){console.error(y)}},I=A.ref(!1),o=b=>{b.isMore&&(I.value=!I.value)};return(b,y)=>{const w=A.resolveComponent("el-tooltip");return A.openBlock(),A.createElementBlock("div",Tb,[A.createElementVNode("div",Ub,[A.createElementVNode("div",Yb,[A.createElementVNode("div",Ob,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.tag,M=>(A.openBlock(),A.createElementBlock("div",{key:M.label,class:"card-list-item-header-title__tag",style:A.normalizeStyle({color:M.color}),title:M.value},A.toDisplayString(M.value),13,$b))),128))]),A.createElementVNode("div",{class:A.normalizeClass(["card-list-item-header-title__text",{"link-style":b.data.titleType==="link","click-style":b.data.onClick}]),style:A.normalizeStyle({color:b.data.titleColor}),title:b.data.title,onClick:y[0]||(y[0]=M=>u(b.data.onClick))},A.toDisplayString(b.data.title),15,zb),b.data.subTitle?(A.openBlock(),A.createElementBlock("div",Jb,[A.createElementVNode("span",{class:"card-list-item-header-title__sub-icon",style:A.normalizeStyle({backgroundColor:b.data.subTitleColor||"#3EBF17"})},null,4),A.createElementVNode("span",null,A.toDisplayString(b.data.subTitle),1),A.createElementVNode("div",Zb,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.subTitleRight,(M,N)=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:N},[M.value?(A.openBlock(),A.createElementBlock("div",{key:0,style:A.normalizeStyle({color:M.color||"var(--hight)"}),class:"sub-title-right__item"},A.toDisplayString(M.value),5)):A.createCommentVNode("",!0)],64))),128))])])):A.createCommentVNode("",!0)]),A.createElementVNode("div",Wb,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.btns,(M,N)=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:N},[M.condition===void 0||M.condition===null||A.unref(Rt)(M.condition,{$row:b.data.originalData,$globalParams:A.unref(i)()})?(A.openBlock(),A.createElementBlock("div",{key:0,class:"card-list-item-header-btns-item",onClick:P=>u(M.onClick)},[M.label?(A.openBlock(),A.createBlock(w,{key:0,class:"box-item",effect:"dark",content:M.label,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[A.createVNode(xe,{name:M.icon},null,8,["name"])]),_:2},1032,["content"])):(A.openBlock(),A.createBlock(xe,{key:1,name:M.icon},null,8,["name"]))],8,jb)):A.createCommentVNode("",!0)],64))),128))])]),A.createElementVNode("div",qb,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.content,M=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item-content-item",key:M.label},[A.createElementVNode("div",{class:"card-list-item-content-item-label",title:M.label},A.toDisplayString(M.label)+":",9,Xb),A.createElementVNode("div",{class:A.normalizeClass(["card-list-item-content-item-value",{"is-more":M.isMore}]),onClick:N=>o(M),title:M.value,style:A.normalizeStyle({color:M.color})},[A.createTextVNode(A.toDisplayString(M.value||"- -")+" ",1),M.isMore?(A.openBlock(),A.createBlock(xe,{key:0,class:A.normalizeClass({"rotate-[180deg]":I.value}),name:"icon-a-rongqi11",size:"small"},null,8,["class"])):A.createCommentVNode("",!0)],14,Vb)]))),128))]),I.value?(A.openBlock(),A.createElementBlock("div",Ay,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data.childList,M=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item-content-item",key:M.label},[A.createElementVNode("div",{class:"card-list-item-content-item-label",title:M.label},A.toDisplayString(M.label)+":",9,ey),A.createElementVNode("div",{class:"card-list-item-content-item-value",title:M.value},A.toDisplayString(M.value||"- -"),9,ty)]))),128))])):A.createCommentVNode("",!0),b.data.footer?(A.openBlock(),A.createElementBlock("div",ny,[A.createVNode(xe,{name:b.data.footer.icon},null,8,["name"]),A.createElementVNode("span",iy,A.toDisplayString(b.data.footer.text||"- -"),1)])):A.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-805fdb67"]]),oy={key:0,class:"empty-content"},ic=ie(A.defineComponent({__name:"CardList",props:{title:{},key:{},rulePath:{},rowKey:{},showDynamicSearch:{type:Boolean},multipleSelection:{type:Boolean},highlightCurrentRow:{type:Boolean},"highlight-current-row":{type:Boolean},stripe:{type:Boolean},rowClick:{},rowDbClick:{},sizeChange:{},pageChange:{},topBtns:{},rowBtns:{},rowBtnsLabel:{},rowBtnsWidth:{},hidden:{type:Boolean},hiddenPagination:{type:Boolean},handleCurrentChange:{},selectable:{},pageSizes:{},pagerCount:{},paginationLayout:{},defaultPageSize:{},typeSwitch:{type:Boolean},displayType:{},onMounted:{},onActivated:{},height:{},collapsible:{type:Boolean},sortable:{type:Boolean},gridColumns:{default:3},gap:{default:16},data:{},columns:{},getColText:{}},setup(n){const e=n,t=A.inject("ruleModule",void 0),i=A.inject("ruleMap",void 0),u=A.inject("pageMethodMap",{}),I=A.computed(()=>e.rulePath&&i[e.rulePath]?i[e.rulePath]:t),o=(Y,G,K)=>{try{I.value[Y](u,G,K)}catch(D){console.error(D)}},b=A.computed(()=>e.rowBtns?e.rowBtns.map(Y=>({condition:Y.condition,icon:Y.icon&&Y.icon.name?Y.icon.name:"icon-tishi",label:Y.label,onClick:Y.onClick})):[]),y=e.columns.find(Y=>Y.position==="title"),w=e.columns.find(Y=>Y.position==="subTitle"),M=e.columns.find(Y=>Y.position==="footer"),N={key:"__childList"},P=A.computed(()=>{const Y=e.columns.filter(G=>G.type==="link");return e.data?e.data.map(G=>{var D;const K={subTitleRight:[],content:[],tag:[],originalData:G};if(y&&Y&&Y.find(E=>E.key===y.key)&&(K.titleType="link",K.onClick=(D=Y.find(E=>E.key===y.key))==null?void 0:D.onClick),y&&(K.title=e.getColText(y,G),K.titleColor=G[y.key+"Color"]),w&&(K.subTitle=e.getColText(w,G),K.subTitleColor=G[w.key+"Color"]),M){const E=e.getColText(M,G);K.footer={icon:M.footerIcon||"icon-tishi",text:`${M.label}: ${E||"- -"}`}}return e.columns.forEach(E=>{E.position==="content"?K.content.push({label:E.label,value:e.getColText(E,G),color:E.color}):E.position==="moreContent"?(K.content.push({label:E.label,value:e.getColText(E,G),isMore:G[N.key]&&G[N.key].length>0}),K.childList=G[N.key]):E.position==="tag"?K.tag.push({label:E.label,value:e.getColText(E,G)}):E.position==="subTitleRight"&&K.subTitleRight.push({label:E.label,value:e.getColText(E,G),color:E.color})}),K}):[]});return(Y,G)=>(A.openBlock(),A.createElementBlock("div",null,[A.createElementVNode("div",{class:"card-list",style:A.normalizeStyle({"--columns":Y.gridColumns,"--gap":Y.gap+"px"})},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(P.value,(K,D)=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item",key:D},[A.createVNode(Hd,{data:K,btns:b.value,index:D,onClickBtn:E=>o(E,K.originalData,D)},null,8,["data","btns","index","onClickBtn"])]))),128))],4),!Y.data||Y.data.length===0?(A.openBlock(),A.createElementBlock("div",oy,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),G[0]||(G[0]=A.createElementVNode("div",null,"No data available,please check",-1))])):A.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-082f0b61"]]),ry={title:"卡片列表",component:"CardList",render:ic,icon:A.h(Ie,{name:"card"}),type:"assist",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"填充的数据",component:"Input",name:"data"}]}},ay={title:"定制化组件(OfferDetails)",component:"OfferDetails",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Zx)),icon:A.h(Ie,{name:"card"}),type:"assist",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"填充的数据",component:"Input",name:"data"}]}},sy={title:"定制化组件(Progress)",component:"Progress",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>Vx)),icon:A.h(Ie,{name:"card"}),type:"assist",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"填充的数据",component:"Input",name:"data"}]}},ly={title:"日志列表",component:"LogList",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>rS)),icon:A.h(Ie,{name:"card"}),type:"assist",order:12,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"}]}},cy={title:"可拖拽网格容器",icon:A.h(Ie,{name:"inline"}),type:"layout",component:"DragList",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>L8)),order:9,lbTitle:!0,attrSchema:{items:[{label:"唯一标识",component:"Input",name:"name"},{label:"列数",component:"InputNumber",name:"props.colNum",initialValue:12},{label:"行高",component:"InputNumber",name:"props.rowHeight",initialValue:30},{label:"布局",name:"props.layout",component:"FormList",children:[{label:"起点横坐标",name:"x",component:"Input",props:{type:"number"},designKey:"form-LnGh",initialValue:"{{$index}}"},{label:"起点纵坐标",name:"y",component:"Input",props:{type:"number"},designKey:"form-HYtW",initialValue:"{{ $index + 1}}"},{label:"宽度",name:"w",component:"Input",props:{type:"number"},designKey:"form-HYtW2"},{label:"高度",name:"h",component:"Input",props:{type:"number"},designKey:"form-HYtW3"},{label:"是否固定",name:"static",component:"Switch",designKey:"form-HYtW4"}],designKey:"form-Iwpd",props:{mode:"table",title:"选项"}}]}},gy=ie(A.defineComponent({__name:"Disabled",props:{disabled:{type:Boolean}},setup(n){return(e,t)=>e.disabled?(A.openBlock(),A.createElementBlock("div",A.mergeProps({key:0},e.$attrs,{class:"disabled-wrapper"}),[t[0]||(t[0]=A.createElementVNode("div",{class:"mask"},null,-1)),A.renderSlot(e.$slots,"default",{},void 0,!0)],16)):A.renderSlot(e.$slots,"default",{key:1},void 0,!0)}}),[["__scopeId","data-v-f3803727"]]);let qi=class extends Error{constructor(e){super(e),this.name="ShikiError"}},oc=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function uy(){return 2147483648}function dy(){return typeof performance<"u"?performance.now():Date.now()}const hy=(n,e)=>n+(e-n%e)%e;async function py(n){let e,t;const i={};function u(Y){t=Y,i.HEAPU8=new Uint8Array(Y),i.HEAPU32=new Uint32Array(Y)}function I(Y,G,K){i.HEAPU8.copyWithin(Y,G,G+K)}function o(Y){try{return e.grow(Y-t.byteLength+65535>>>16),u(e.buffer),1}catch{}}function b(Y){const G=i.HEAPU8.length;Y=Y>>>0;const K=uy();if(Y>K)return!1;for(let D=1;D<=4;D*=2){let E=G*(1+.2/D);E=Math.min(E,Y+100663296);const L=Math.min(K,hy(Math.max(Y,E),65536));if(o(L))return!0}return!1}const y=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function w(Y,G,K=1024){const D=G+K;let E=G;for(;Y[E]&&!(E>=D);)++E;if(E-G>16&&Y.buffer&&y)return y.decode(Y.subarray(G,E));let L="";for(;G<E;){let _=Y[G++];if(!(_&128)){L+=String.fromCharCode(_);continue}const v=Y[G++]&63;if((_&224)===192){L+=String.fromCharCode((_&31)<<6|v);continue}const B=Y[G++]&63;if((_&240)===224?_=(_&15)<<12|v<<6|B:_=(_&7)<<18|v<<12|B<<6|Y[G++]&63,_<65536)L+=String.fromCharCode(_);else{const p=_-65536;L+=String.fromCharCode(55296|p>>10,56320|p&1023)}}return L}function M(Y,G){return Y?w(i.HEAPU8,Y,G):""}const N={emscripten_get_now:dy,emscripten_memcpy_big:I,emscripten_resize_heap:b,fd_write:()=>0};async function P(){const G=await n({env:N,wasi_snapshot_preview1:N});e=G.memory,u(e.buffer),Object.assign(i,G),i.UTF8ToString=M}return await P(),i}let Lt=null;function Cy(n){throw new oc(n.UTF8ToString(n.getLastOnigError()))}class Fa{constructor(e){Ct(this,"utf16Length");Ct(this,"utf8Length");Ct(this,"utf16Value");Ct(this,"utf8Value");Ct(this,"utf16OffsetToUtf8");Ct(this,"utf8OffsetToUtf16");const t=e.length,i=Fa._utf8ByteLength(e),u=i!==t,I=u?new Uint32Array(t+1):null;u&&(I[t]=i);const o=u?new Uint32Array(i+1):null;u&&(o[i]=t);const b=new Uint8Array(i);let y=0;for(let w=0;w<t;w++){const M=e.charCodeAt(w);let N=M,P=!1;if(M>=55296&&M<=56319&&w+1<t){const Y=e.charCodeAt(w+1);Y>=56320&&Y<=57343&&(N=(M-55296<<10)+65536|Y-56320,P=!0)}u&&(I[w]=y,P&&(I[w+1]=y),N<=127?o[y+0]=w:N<=2047?(o[y+0]=w,o[y+1]=w):N<=65535?(o[y+0]=w,o[y+1]=w,o[y+2]=w):(o[y+0]=w,o[y+1]=w,o[y+2]=w,o[y+3]=w)),N<=127?b[y++]=N:N<=2047?(b[y++]=192|(N&1984)>>>6,b[y++]=128|(N&63)>>>0):N<=65535?(b[y++]=224|(N&61440)>>>12,b[y++]=128|(N&4032)>>>6,b[y++]=128|(N&63)>>>0):(b[y++]=240|(N&1835008)>>>18,b[y++]=128|(N&258048)>>>12,b[y++]=128|(N&4032)>>>6,b[y++]=128|(N&63)>>>0),P&&w++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=b,this.utf16OffsetToUtf8=I,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let i=0,u=e.length;i<u;i++){const I=e.charCodeAt(i);let o=I,b=!1;if(I>=55296&&I<=56319&&i+1<u){const y=e.charCodeAt(i+1);y>=56320&&y<=57343&&(o=(I-55296<<10)+65536|y-56320,b=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,b&&i++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const cn=class cn{constructor(e){Ct(this,"id",++cn.LAST_ID);Ct(this,"_onigBinding");Ct(this,"content");Ct(this,"utf16Length");Ct(this,"utf8Length");Ct(this,"utf16OffsetToUtf8");Ct(this,"utf8OffsetToUtf16");Ct(this,"ptr");if(!Lt)throw new oc("Must invoke loadWasm first.");this._onigBinding=Lt,this.content=e;const t=new Fa(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!cn._sharedPtrInUse?(cn._sharedPtr||(cn._sharedPtr=Lt.omalloc(1e4)),cn._sharedPtrInUse=!0,Lt.HEAPU8.set(t.utf8Value,cn._sharedPtr),this.ptr=cn._sharedPtr):this.ptr=t.createString(Lt)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===cn._sharedPtr?cn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Ct(cn,"LAST_ID",0),Ct(cn,"_sharedPtr",0),Ct(cn,"_sharedPtrInUse",!1);let Ra=cn;class By{constructor(e){Ct(this,"_onigBinding");Ct(this,"_ptr");if(!Lt)throw new oc("Must invoke loadWasm first.");const t=[],i=[];for(let b=0,y=e.length;b<y;b++){const w=new Fa(e[b]);t[b]=w.createString(Lt),i[b]=w.utf8Length}const u=Lt.omalloc(4*e.length);Lt.HEAPU32.set(t,u/4);const I=Lt.omalloc(4*e.length);Lt.HEAPU32.set(i,I/4);const o=Lt.createOnigScanner(u,I,e.length);for(let b=0,y=e.length;b<y;b++)Lt.ofree(t[b]);Lt.ofree(I),Lt.ofree(u),o===0&&Cy(Lt),this._onigBinding=Lt,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,i){let u=0;if(typeof i=="number"&&(u=i),typeof e=="string"){e=new Ra(e);const I=this._findNextMatchSync(e,t,!1,u);return e.dispose(),I}return this._findNextMatchSync(e,t,!1,u)}_findNextMatchSync(e,t,i,u){const I=this._onigBinding,o=I.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),u);if(o===0)return null;const b=I.HEAPU32;let y=o/4;const w=b[y++],M=b[y++],N=[];for(let P=0;P<M;P++){const Y=e.convertUtf8OffsetToUtf16(b[y++]),G=e.convertUtf8OffsetToUtf16(b[y++]);N[P]={start:Y,end:G,length:G-Y}}return{index:w,captureIndices:N}}}function my(n){return typeof n.instantiator=="function"}function Ey(n){return typeof n.default=="function"}function Qy(n){return typeof n.data<"u"}function Iy(n){return typeof Response<"u"&&n instanceof Response}function fy(n){var e;return typeof ArrayBuffer<"u"&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,n))||typeof SharedArrayBuffer<"u"&&n instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&n instanceof Uint32Array}let La;function wy(n){if(La)return La;async function e(){Lt=await py(async t=>{let i=n;return i=await i,typeof i=="function"&&(i=await i(t)),typeof i=="function"&&(i=await i(t)),my(i)?i=await i.instantiator(t):Ey(i)?i=await i.default(t):(Qy(i)&&(i=i.data),Iy(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await by(i)(t):i=await yy(i)(t):fy(i)?i=await rc(i)(t):i instanceof WebAssembly.Module?i=await rc(i)(t):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await rc(i.default)(t))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return La=e(),La}function rc(n){return e=>WebAssembly.instantiate(n,e)}function by(n){return e=>WebAssembly.instantiateStreaming(n,e)}function yy(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}let Dy;function vy(){return Dy}async function ky(n){return n&&await wy(n),{createScanner(e){return new By(e)},createString(e){return new Ra(e)}}}function _y(n){return ac(n)}function ac(n){return Array.isArray(n)?My(n):typeof n=="object"?xy(n):n}function My(n){let e=[];for(let t=0,i=n.length;t<i;t++)e[t]=ac(n[t]);return e}function xy(n){let e={};for(let t in n)e[t]=ac(n[t]);return e}function Kd(n,...e){return e.forEach(t=>{for(let i in t)n[i]=t[i]}),n}function Td(n){const e=~n.lastIndexOf("/")||~n.lastIndexOf("\\");return e===0?n:~e===n.length-1?Td(n.substring(0,n.length-1)):n.substr(~e+1)}var sc=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ga=class{static hasCaptures(n){return n===null?!1:(sc.lastIndex=0,sc.test(n))}static replaceCaptures(n,e,t){return n.replace(sc,(i,u,I,o)=>{let b=t[parseInt(u||I,10)];if(b){let y=e.substring(b.start,b.end);for(;y[0]===".";)y=y.substring(1);switch(o){case"downcase":return y.toLowerCase();case"upcase":return y.toUpperCase();default:return y}}else return i})}};function Ud(n,e){return n<e?-1:n>e?1:0}function Yd(n,e){if(n===null&&e===null)return 0;if(!n)return-1;if(!e)return 1;let t=n.length,i=e.length;if(t===i){for(let u=0;u<t;u++){let I=Ud(n[u],e[u]);if(I!==0)return I}return 0}return t-i}function Od(n){return!!(/^#[0-9a-f]{6}$/i.test(n)||/^#[0-9a-f]{8}$/i.test(n)||/^#[0-9a-f]{3}$/i.test(n)||/^#[0-9a-f]{4}$/i.test(n))}function $d(n){return n.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var zd=class{constructor(n){this.fn=n,this.cache=new Map}get(n){if(this.cache.has(n))return this.cache.get(n);const e=this.fn(n);return this.cache.set(n,e),e}},Pa=class{constructor(n,e,t){this._colorMap=n,this._defaults=e,this._root=t,this._cachedMatchRoot=new zd(i=>this._root.match(i))}static createFromRawTheme(n,e){return this.createFromParsedTheme(Fy(n),e)}static createFromParsedTheme(n,e){return Ly(n,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(n){if(n===null)return this._defaults;const e=n.scopeName,i=this._cachedMatchRoot.get(e).find(u=>Sy(n.parent,u.parentScopes));return i?new Jd(i.fontStyle,i.foreground,i.background):null}},lc=class kl{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const i of t)e=new kl(e,i);return e}static from(...e){let t=null;for(let i=0;i<e.length;i++)t=new kl(t,e[i]);return t}push(e){return new kl(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let i=this;for(;i&&i!==e;)t.push(i.scopeName),i=i.parent;return i===e?t.reverse():void 0}};function Sy(n,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let i=e[t],u=!1;if(i===">"){if(t===e.length-1)return!1;i=e[++t],u=!0}for(;n&&!Ny(n.scopeName,i);){if(u)return!1;n=n.parent}if(!n)return!1;n=n.parent}return!0}function Ny(n,e){return e===n||n.startsWith(e)&&n[e.length]==="."}var Jd=class{constructor(n,e,t){this.fontStyle=n,this.foregroundId=e,this.backgroundId=t}};function Fy(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let e=n.settings,t=[],i=0;for(let u=0,I=e.length;u<I;u++){let o=e[u];if(!o.settings)continue;let b;if(typeof o.scope=="string"){let N=o.scope;N=N.replace(/^[,]+/,""),N=N.replace(/[,]+$/,""),b=N.split(",")}else Array.isArray(o.scope)?b=o.scope:b=[""];let y=-1;if(typeof o.settings.fontStyle=="string"){y=0;let N=o.settings.fontStyle.split(" ");for(let P=0,Y=N.length;P<Y;P++)switch(N[P]){case"italic":y=y|1;break;case"bold":y=y|2;break;case"underline":y=y|4;break;case"strikethrough":y=y|8;break}}let w=null;typeof o.settings.foreground=="string"&&Od(o.settings.foreground)&&(w=o.settings.foreground);let M=null;typeof o.settings.background=="string"&&Od(o.settings.background)&&(M=o.settings.background);for(let N=0,P=b.length;N<P;N++){let G=b[N].trim().split(" "),K=G[G.length-1],D=null;G.length>1&&(D=G.slice(0,G.length-1),D.reverse()),t[i++]=new Ry(K,D,u,y,w,M)}}return t}var Ry=class{constructor(n,e,t,i,u,I){this.scope=n,this.parentScopes=e,this.index=t,this.fontStyle=i,this.foreground=u,this.background=I}},ui=(n=>(n[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n))(ui||{});function Ly(n,e){n.sort((y,w)=>{let M=Ud(y.scope,w.scope);return M!==0||(M=Yd(y.parentScopes,w.parentScopes),M!==0)?M:y.index-w.index});let t=0,i="#000000",u="#ffffff";for(;n.length>=1&&n[0].scope==="";){let y=n.shift();y.fontStyle!==-1&&(t=y.fontStyle),y.foreground!==null&&(i=y.foreground),y.background!==null&&(u=y.background)}let I=new Gy(e),o=new Jd(t,I.getId(i),I.getId(u)),b=new Hy(new cc(0,null,-1,0,0),[]);for(let y=0,w=n.length;y<w;y++){let M=n[y];b.insert(0,M.scope,M.parentScopes,M.fontStyle,I.getId(M.foreground),I.getId(M.background))}return new Pa(I,o,b)}var Gy=class{constructor(n){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(n)){this._isFrozen=!0;for(let e=0,t=n.length;e<t;e++)this._color2id[n[e]]=e,this._id2color[e]=n[e]}else this._isFrozen=!1}getId(n){if(n===null)return 0;n=n.toUpperCase();let e=this._color2id[n];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${n}`);return e=++this._lastColorId,this._color2id[n]=e,this._id2color[e]=n,e}getColorMap(){return this._id2color.slice(0)}},Py=Object.freeze([]),cc=class Cm{constructor(e,t,i,u,I){this.scopeDepth=e,this.parentScopes=t||Py,this.fontStyle=i,this.foreground=u,this.background=I}clone(){return new Cm(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let i=0,u=e.length;i<u;i++)t[i]=e[i].clone();return t}acceptOverwrite(e,t,i,u){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),i!==0&&(this.foreground=i),u!==0&&(this.background=u)}},Hy=class Qu{constructor(e,t=[],i={}){this._mainRule=e,this._children=i,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let i=0,u=0;for(;e.parentScopes[i]===">"&&i++,t.parentScopes[u]===">"&&u++,!(i>=e.parentScopes.length||u>=t.parentScopes.length);){const I=t.parentScopes[u].length-e.parentScopes[i].length;if(I!==0)return I;i++,u++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),u,I;if(i===-1?(u=e,I=""):(u=e.substring(0,i),I=e.substring(i+1)),this._children.hasOwnProperty(u))return this._children[u].match(I)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Qu._cmpBySpecificity),t}insert(e,t,i,u,I,o){if(t===""){this._doInsertHere(e,i,u,I,o);return}let b=t.indexOf("."),y,w;b===-1?(y=t,w=""):(y=t.substring(0,b),w=t.substring(b+1));let M;this._children.hasOwnProperty(y)?M=this._children[y]:(M=new Qu(this._mainRule.clone(),cc.cloneArr(this._rulesWithParentScopes)),this._children[y]=M),M.insert(e+1,w,i,u,I,o)}_doInsertHere(e,t,i,u,I){if(t===null){this._mainRule.acceptOverwrite(e,i,u,I);return}for(let o=0,b=this._rulesWithParentScopes.length;o<b;o++){let y=this._rulesWithParentScopes[o];if(Yd(y.parentScopes,t)===0){y.acceptOverwrite(e,i,u,I);return}}i===-1&&(i=this._mainRule.fontStyle),u===0&&(u=this._mainRule.foreground),I===0&&(I=this._mainRule.background),this._rulesWithParentScopes.push(new cc(e,t,i,u,I))}},No=class Un{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=Un.getLanguageId(e),i=Un.getTokenType(e),u=Un.getFontStyle(e),I=Un.getForeground(e),o=Un.getBackground(e);console.log({languageId:t,tokenType:i,fontStyle:u,foreground:I,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,i,u,I,o,b){let y=Un.getLanguageId(e),w=Un.getTokenType(e),M=Un.containsBalancedBrackets(e)?1:0,N=Un.getFontStyle(e),P=Un.getForeground(e),Y=Un.getBackground(e);return t!==0&&(y=t),i!==8&&(w=i),u!==null&&(M=u?1:0),I!==-1&&(N=I),o!==0&&(P=o),b!==0&&(Y=b),(y<<0|w<<8|M<<10|N<<11|P<<15|Y<<24)>>>0}};function Y3(n){return n}function O3(n){return n}function Ha(n,e){const t=[],i=Ky(n);let u=i.next();for(;u!==null;){let y=0;if(u.length===2&&u.charAt(1)===":"){switch(u.charAt(0)){case"R":y=1;break;case"L":y=-1;break;default:console.log(`Unknown priority ${u} in scope selector`)}u=i.next()}let w=o();if(t.push({matcher:w,priority:y}),u!==",")break;u=i.next()}return t;function I(){if(u==="-"){u=i.next();const y=I();return w=>!!y&&!y(w)}if(u==="("){u=i.next();const y=b();return u===")"&&(u=i.next()),y}if(Zd(u)){const y=[];do y.push(u),u=i.next();while(Zd(u));return w=>e(y,w)}return null}function o(){const y=[];let w=I();for(;w;)y.push(w),w=I();return M=>y.every(N=>N(M))}function b(){const y=[];let w=o();for(;w&&(y.push(w),u==="|"||u===",");){do u=i.next();while(u==="|"||u===",");w=o()}return M=>y.some(N=>N(M))}}function Zd(n){return!!n&&!!n.match(/[\w\.:]+/)}function Ky(n){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(n);return{next:()=>{if(!t)return null;const i=t[0];return t=e.exec(n),i}}}function Wd(n){typeof n.dispose=="function"&&n.dispose()}var Br=class{constructor(n){this.scopeName=n}toKey(){return this.scopeName}},Ty=class{constructor(n,e){this.scopeName=n,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Uy=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(n){const e=n.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(n))}},Yy=class{constructor(n,e){this.repo=n,this.initialScopeName=e,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Br(this.initialScopeName)]}processQueue(){const n=this.Q;this.Q=[];const e=new Uy;for(const t of n)Oy(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Br){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Oy(n,e,t,i){const u=t.lookup(n.scopeName);if(!u){if(n.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const I=t.lookup(e);n instanceof Br?Ka({baseGrammar:I,selfGrammar:u},i):gc(n.ruleName,{baseGrammar:I,selfGrammar:u,repository:u.repository},i);const o=t.injections(n.scopeName);if(o)for(const b of o)i.add(new Br(b))}function gc(n,e,t){if(e.repository&&e.repository[n]){const i=e.repository[n];Ta([i],e,t)}}function Ka(n,e){n.selfGrammar.patterns&&Array.isArray(n.selfGrammar.patterns)&&Ta(n.selfGrammar.patterns,{...n,repository:n.selfGrammar.repository},e),n.selfGrammar.injections&&Ta(Object.values(n.selfGrammar.injections),{...n,repository:n.selfGrammar.repository},e)}function Ta(n,e,t){for(const i of n){if(t.visitedRule.has(i))continue;t.visitedRule.add(i);const u=i.repository?Kd({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&Ta(i.patterns,{...e,repository:u},t);const I=i.include;if(!I)continue;const o=jd(I);switch(o.kind){case 0:Ka({...e,selfGrammar:e.baseGrammar},t);break;case 1:Ka(e,t);break;case 2:gc(o.ruleName,{...e,repository:u},t);break;case 3:case 4:const b=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(b){const y={baseGrammar:e.baseGrammar,selfGrammar:b,repository:u};o.kind===4?gc(o.ruleName,y,t):Ka(y,t)}else o.kind===4?t.add(new Ty(o.scopeName,o.ruleName)):t.add(new Br(o.scopeName));break}}}var $y=class{constructor(){this.kind=0}},zy=class{constructor(){this.kind=1}},Jy=class{constructor(n){this.ruleName=n,this.kind=2}},Zy=class{constructor(n){this.scopeName=n,this.kind=3}},Wy=class{constructor(n,e){this.scopeName=n,this.ruleName=e,this.kind=4}};function jd(n){if(n==="$base")return new $y;if(n==="$self")return new zy;const e=n.indexOf("#");if(e===-1)return new Zy(n);if(e===0)return new Jy(n.substring(1));{const t=n.substring(0,e),i=n.substring(e+1);return new Wy(t,i)}}var jy=/\\(\d+)/,qd=/\\(\d+)/g,qy=-1,Xd=-2;function $3(n){return n}function z3(n){return n}var mr=class{constructor(n,e,t,i){this.$location=n,this.id=e,this._name=t||null,this._nameIsCapturing=Ga.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Ga.hasCaptures(this._contentName)}get debugName(){const n=this.$location?`${Td(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${n}`}getName(n,e){return!this._nameIsCapturing||this._name===null||n===null||e===null?this._name:Ga.replaceCaptures(this._name,n,e)}getContentName(n,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ga.replaceCaptures(this._contentName,n,e)}},Xy=class extends mr{constructor(n,e,t,i,u){super(n,e,t,i),this.retokenizeCapturedWithRuleId=u}dispose(){}collectPatterns(n,e){throw new Error("Not supported!")}compile(n,e){throw new Error("Not supported!")}compileAG(n,e,t,i){throw new Error("Not supported!")}},Vy=class extends mr{constructor(n,e,t,i,u){super(n,e,t,null),this._match=new Er(i,this.id),this.captures=u,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,e){e.push(this._match)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n).compileAG(n,t,i)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Qr,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Vd=class extends mr{constructor(n,e,t,i,u){super(n,e,t,i),this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,e){for(const t of this.patterns)n.getRule(t).collectPatterns(n,e)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n).compileAG(n,t,i)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Qr,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},uc=class extends mr{constructor(n,e,t,i,u,I,o,b,y,w){super(n,e,t,i),this._begin=new Er(u,this.id),this.beginCaptures=I,this._end=new Er(o||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=b,this.applyEndPatternLast=y||!1,this.patterns=w.patterns,this.hasMissingPatterns=w.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,e){return this._end.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n,e).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n,e).compileAG(n,t,i)}_getCachedCompiledPatterns(n,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Qr;for(const t of this.patterns)n.getRule(t).collectPatterns(n,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Ua=class extends mr{constructor(n,e,t,i,u,I,o,b,y){super(n,e,t,i),this._begin=new Er(u,this.id),this.beginCaptures=I,this.whileCaptures=b,this._while=new Er(o,Xd),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=y.patterns,this.hasMissingPatterns=y.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,e){return this._while.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,i){return this._getCachedCompiledPatterns(n).compileAG(n,t,i)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Qr;for(const e of this.patterns)n.getRule(e).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,e){return this._getCachedCompiledWhilePatterns(n,e).compile(n)}compileWhileAG(n,e,t,i){return this._getCachedCompiledWhilePatterns(n,e).compileAG(n,t,i)}_getCachedCompiledWhilePatterns(n,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Qr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},Ah=class Jt{static createCaptureRule(e,t,i,u,I){return e.registerRule(o=>new Xy(t,o,i,u,I))}static getCompiledRuleId(e,t,i){return e.id||t.registerRule(u=>{if(e.id=u,e.match)return new Vy(e.$vscodeTextmateLocation,e.id,e.name,e.match,Jt._compileCaptures(e.captures,t,i));if(typeof e.begin>"u"){e.repository&&(i=Kd({},i,e.repository));let I=e.patterns;return typeof I>"u"&&e.include&&(I=[{include:e.include}]),new Vd(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,Jt._compilePatterns(I,t,i))}return e.while?new Ua(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Jt._compileCaptures(e.beginCaptures||e.captures,t,i),e.while,Jt._compileCaptures(e.whileCaptures||e.captures,t,i),Jt._compilePatterns(e.patterns,t,i)):new uc(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Jt._compileCaptures(e.beginCaptures||e.captures,t,i),e.end,Jt._compileCaptures(e.endCaptures||e.captures,t,i),e.applyEndPatternLast,Jt._compilePatterns(e.patterns,t,i))}),e.id}static _compileCaptures(e,t,i){let u=[];if(e){let I=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const b=parseInt(o,10);b>I&&(I=b)}for(let o=0;o<=I;o++)u[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const b=parseInt(o,10);let y=0;e[o].patterns&&(y=Jt.getCompiledRuleId(e[o],t,i)),u[b]=Jt.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,y)}}return u}static _compilePatterns(e,t,i){let u=[];if(e)for(let I=0,o=e.length;I<o;I++){const b=e[I];let y=-1;if(b.include){const w=jd(b.include);switch(w.kind){case 0:case 1:y=Jt.getCompiledRuleId(i[b.include],t,i);break;case 2:let M=i[w.ruleName];M&&(y=Jt.getCompiledRuleId(M,t,i));break;case 3:case 4:const N=w.scopeName,P=w.kind===4?w.ruleName:null,Y=t.getExternalGrammar(N,i);if(Y)if(P){let G=Y.repository[P];G&&(y=Jt.getCompiledRuleId(G,t,Y.repository))}else y=Jt.getCompiledRuleId(Y.repository.$self,t,Y.repository);break}}else y=Jt.getCompiledRuleId(b,t,i);if(y!==-1){const w=t.getRule(y);let M=!1;if((w instanceof Vd||w instanceof uc||w instanceof Ua)&&w.hasMissingPatterns&&w.patterns.length===0&&(M=!0),M)continue;u.push(y)}}return{patterns:u,hasMissingPatterns:(e?e.length:0)!==u.length}}},Er=class Bm{constructor(e,t){if(e){const i=e.length;let u=0,I=[],o=!1;for(let b=0;b<i;b++)if(e.charAt(b)==="\\"&&b+1<i){const w=e.charAt(b+1);w==="z"?(I.push(e.substring(u,b)),I.push("$(?!\\n)(?<!\\n)"),u=b+2):(w==="A"||w==="G")&&(o=!0),b++}this.hasAnchor=o,u===0?this.source=e:(I.push(e.substring(u,i)),this.source=I.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=jy.test(this.source)}clone(){return new Bm(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let i=t.map(u=>e.substring(u.start,u.end));return qd.lastIndex=0,this.source.replace(qd,(u,I)=>$d(i[parseInt(I,10)]||""))}_buildAnchorCache(){let e=[],t=[],i=[],u=[],I,o,b,y;for(I=0,o=this.source.length;I<o;I++)b=this.source.charAt(I),e[I]=b,t[I]=b,i[I]=b,u[I]=b,b==="\\"&&I+1<o&&(y=this.source.charAt(I+1),y==="A"?(e[I+1]="",t[I+1]="",i[I+1]="A",u[I+1]="A"):y==="G"?(e[I+1]="",t[I+1]="G",i[I+1]="",u[I+1]="G"):(e[I+1]=y,t[I+1]=y,i[I+1]=y,u[I+1]=y),I++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:i.join(""),A1_G1:u.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Qr=class{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(n){this._items.push(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}unshift(n){this._items.unshift(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}length(){return this._items.length}setSource(n,e){this._items[n].source!==e&&(this._disposeCaches(),this._items[n].setSource(e))}compile(n){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new eh(n,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(n,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G0):this.compile(n)}_resolveAnchors(n,e,t){let i=this._items.map(u=>u.resolveAnchors(e,t));return new eh(n,i,this._items.map(u=>u.ruleId))}},eh=class{constructor(n,e,t){this.regExps=e,this.rules=t,this.scanner=n.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const n=[];for(let e=0,t=this.rules.length;e<t;e++)n.push(" - "+this.rules[e]+": "+this.regExps[e]);return n.join(`
|
|
89
89
|
`)}findNextMatchSync(n,e,t){const i=this.scanner.findNextMatchSync(n,e,t);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},dc=class{constructor(n,e){this.languageId=n,this.tokenType=e}},hc=class Iu{constructor(e,t){this._getBasicScopeAttributes=new zd(i=>{const u=this._scopeToLanguage(i),I=this._toStandardTokenType(i);return new dc(u,I)}),this._defaultAttributes=new dc(e,8),this._embeddedLanguagesMatcher=new eD(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Iu._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(Iu.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}};hc._NULL_SCOPE_METADATA=new dc(0,0),hc.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;var AD=hc,eD=class{constructor(n){if(n.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(n);const e=n.map(([t,i])=>$d(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(n){if(!this.scopesRegExp)return;const e=n.match(this.scopesRegExp);if(e)return this.values.get(e[1])}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var th=class{constructor(n,e){this.stack=n,this.stoppedEarly=e}};function nh(n,e,t,i,u,I,o,b){const y=e.content.length;let w=!1,M=-1;if(o){const Y=tD(n,e,t,i,u,I);u=Y.stack,i=Y.linePos,t=Y.isFirstLine,M=Y.anchorPosition}const N=Date.now();for(;!w;){if(b!==0&&Date.now()-N>b)return new th(u,!0);P()}return new th(u,!1);function P(){const Y=nD(n,e,t,i,u,M);if(!Y){I.produce(u,y),w=!0;return}const G=Y.captureIndices,K=Y.matchedRuleId,D=G&&G.length>0?G[0].end>i:!1;if(K===qy){const E=u.getRule(n);I.produce(u,G[0].start),u=u.withContentNameScopesList(u.nameScopesList),Ir(n,e,t,u,I,E.endCaptures,G),I.produce(u,G[0].end);const L=u;if(u=u.parent,M=L.getAnchorPos(),!D&&L.getEnterPos()===i){u=L,I.produce(u,y),w=!0;return}}else{const E=n.getRule(K);I.produce(u,G[0].start);const L=u,_=E.getName(e.content,G),v=u.contentNameScopesList.pushAttributed(_,n);if(u=u.push(K,i,M,G[0].end===y,null,v,v),E instanceof uc){const B=E;Ir(n,e,t,u,I,B.beginCaptures,G),I.produce(u,G[0].end),M=G[0].end;const p=B.getContentName(e.content,G),d=v.pushAttributed(p,n);if(u=u.withContentNameScopesList(d),B.endHasBackReferences&&(u=u.withEndRule(B.getEndWithResolvedBackReferences(e.content,G))),!D&&L.hasSameRuleAs(u)){u=u.pop(),I.produce(u,y),w=!0;return}}else if(E instanceof Ua){const B=E;Ir(n,e,t,u,I,B.beginCaptures,G),I.produce(u,G[0].end),M=G[0].end;const p=B.getContentName(e.content,G),d=v.pushAttributed(p,n);if(u=u.withContentNameScopesList(d),B.whileHasBackReferences&&(u=u.withEndRule(B.getWhileWithResolvedBackReferences(e.content,G))),!D&&L.hasSameRuleAs(u)){u=u.pop(),I.produce(u,y),w=!0;return}}else if(Ir(n,e,t,u,I,E.captures,G),I.produce(u,G[0].end),u=u.pop(),!D){u=u.safePop(),I.produce(u,y),w=!0;return}}G[0].end>i&&(i=G[0].end,t=!1)}}function tD(n,e,t,i,u,I){let o=u.beginRuleCapturedEOL?0:-1;const b=[];for(let y=u;y;y=y.pop()){const w=y.getRule(n);w instanceof Ua&&b.push({rule:w,stack:y})}for(let y=b.pop();y;y=b.pop()){const{ruleScanner:w,findOptions:M}=rD(y.rule,n,y.stack.endRule,t,i===o),N=w.findNextMatchSync(e,i,M);if(N){if(N.ruleId!==Xd){u=y.stack.pop();break}N.captureIndices&&N.captureIndices.length&&(I.produce(y.stack,N.captureIndices[0].start),Ir(n,e,t,y.stack,I,y.rule.whileCaptures,N.captureIndices),I.produce(y.stack,N.captureIndices[0].end),o=N.captureIndices[0].end,N.captureIndices[0].end>i&&(i=N.captureIndices[0].end,t=!1))}else{u=y.stack.pop();break}}return{stack:u,linePos:i,anchorPosition:o,isFirstLine:t}}function nD(n,e,t,i,u,I){const o=iD(n,e,t,i,u,I),b=n.getInjections();if(b.length===0)return o;const y=oD(b,n,e,t,i,u,I);if(!y)return o;if(!o)return y;const w=o.captureIndices[0].start,M=y.captureIndices[0].start;return M<w||y.priorityMatch&&M===w?y:o}function iD(n,e,t,i,u,I){const o=u.getRule(n),{ruleScanner:b,findOptions:y}=ih(o,n,u.endRule,t,i===I),w=b.findNextMatchSync(e,i,y);return w?{captureIndices:w.captureIndices,matchedRuleId:w.ruleId}:null}function oD(n,e,t,i,u,I,o){let b=Number.MAX_VALUE,y=null,w,M=0;const N=I.contentNameScopesList.getScopeNames();for(let P=0,Y=n.length;P<Y;P++){const G=n[P];if(!G.matcher(N))continue;const K=e.getRule(G.ruleId),{ruleScanner:D,findOptions:E}=ih(K,e,null,i,u===o),L=D.findNextMatchSync(t,u,E);if(!L)continue;const _=L.captureIndices[0].start;if(!(_>=b)&&(b=_,y=L.captureIndices,w=L.ruleId,M=G.priority,b===u))break}return y?{priorityMatch:M===-1,captureIndices:y,matchedRuleId:w}:null}function ih(n,e,t,i,u){return{ruleScanner:n.compileAG(e,t,i,u),findOptions:0}}function rD(n,e,t,i,u){return{ruleScanner:n.compileWhileAG(e,t,i,u),findOptions:0}}function Ir(n,e,t,i,u,I,o){if(I.length===0)return;const b=e.content,y=Math.min(I.length,o.length),w=[],M=o[0].end;for(let N=0;N<y;N++){const P=I[N];if(P===null)continue;const Y=o[N];if(Y.length===0)continue;if(Y.start>M)break;for(;w.length>0&&w[w.length-1].endPos<=Y.start;)u.produceFromScopes(w[w.length-1].scopes,w[w.length-1].endPos),w.pop();if(w.length>0?u.produceFromScopes(w[w.length-1].scopes,Y.start):u.produce(i,Y.start),P.retokenizeCapturedWithRuleId){const K=P.getName(b,o),D=i.contentNameScopesList.pushAttributed(K,n),E=P.getContentName(b,o),L=D.pushAttributed(E,n),_=i.push(P.retokenizeCapturedWithRuleId,Y.start,-1,!1,null,D,L),v=n.createOnigString(b.substring(0,Y.end));nh(n,v,t&&Y.start===0,Y.start,_,u,!1,0),Wd(v);continue}const G=P.getName(b,o);if(G!==null){const D=(w.length>0?w[w.length-1].scopes:i.contentNameScopesList).pushAttributed(G,n);w.push(new aD(D,Y.end))}}for(;w.length>0;)u.produceFromScopes(w[w.length-1].scopes,w[w.length-1].endPos),w.pop()}var aD=class{constructor(n,e){this.scopes=n,this.endPos=e}};function sD(n,e,t,i,u,I,o,b){return new cD(n,e,t,i,u,I,o,b)}function oh(n,e,t,i,u){const I=Ha(e,Ya),o=Ah.getCompiledRuleId(t,i,u.repository);for(const b of I)n.push({debugSelector:e,matcher:b.matcher,ruleId:o,grammar:u,priority:b.priority})}function Ya(n,e){if(e.length<n.length)return!1;let t=0;return n.every(i=>{for(let u=t;u<e.length;u++)if(lD(e[u],i))return t=u+1,!0;return!1})}function lD(n,e){if(!n)return!1;if(n===e)return!0;const t=e.length;return n.length>t&&n.substr(0,t)===e&&n[t]==="."}var cD=class{constructor(n,e,t,i,u,I,o,b){if(this._rootScopeName=n,this.balancedBracketSelectors=I,this._onigLib=b,this._basicScopeAttributesProvider=new AD(t,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=rh(e,null),this._injections=null,this._tokenTypeMatchers=[],u)for(const y of Object.keys(u)){const w=Ha(y,Ya);for(const M of w)this._tokenTypeMatchers.push({matcher:M.matcher,type:u[y]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const n of this._ruleId2desc)n&&n.dispose()}createOnigScanner(n){return this._onigLib.createOnigScanner(n)}createOnigString(n){return this._onigLib.createOnigString(n)}getMetadataForScope(n){return this._basicScopeAttributesProvider.getBasicScopeAttributes(n)}_collectInjections(){const n={lookup:u=>u===this._rootScopeName?this._grammar:this.getExternalGrammar(u),injections:u=>this._grammarRepository.injections(u)},e=[],t=this._rootScopeName,i=n.lookup(t);if(i){const u=i.injections;if(u)for(let o in u)oh(e,o,u[o],this,i);const I=this._grammarRepository.injections(t);I&&I.forEach(o=>{const b=this.getExternalGrammar(o);if(b){const y=b.injectionSelector;y&&oh(e,y,b,this,b)}})}return e.sort((u,I)=>u.priority-I.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(n){const e=++this._lastRuleId,t=n(e);return this._ruleId2desc[e]=t,t}getRule(n){return this._ruleId2desc[n]}getExternalGrammar(n,e){if(this._includedGrammars[n])return this._includedGrammars[n];if(this._grammarRepository){const t=this._grammarRepository.lookup(n);if(t)return this._includedGrammars[n]=rh(t,e&&e.$base),this._includedGrammars[n]}}tokenizeLine(n,e,t=0){const i=this._tokenize(n,e,!1,t);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(n,e,t=0){const i=this._tokenize(n,e,!0,t);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(n,e,t,i){this._rootId===-1&&(this._rootId=Ah.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let u;if(!e||e===Cc.NULL){u=!0;const w=this._basicScopeAttributesProvider.getDefaultAttributes(),M=this.themeProvider.getDefaults(),N=No.set(0,w.languageId,w.tokenType,null,M.fontStyle,M.foregroundId,M.backgroundId),P=this.getRule(this._rootId).getName(null,null);let Y;P?Y=fr.createRootAndLookUpScopeName(P,N,this):Y=fr.createRoot("unknown",N),e=new Cc(null,this._rootId,-1,-1,!1,null,Y,Y)}else u=!1,e.reset();n=n+`
|
|
90
90
|
`;const I=this.createOnigString(n),o=I.content.length,b=new uD(t,n,this._tokenTypeMatchers,this.balancedBracketSelectors),y=nh(this,I,u,0,e,b,!0,i);return Wd(I),{lineLength:o,lineTokens:b,ruleStack:y.stack,stoppedEarly:y.stoppedEarly}}};function rh(n,e){return n=_y(n),n.repository=n.repository||{},n.repository.$self={$vscodeTextmateLocation:n.$vscodeTextmateLocation,patterns:n.patterns,name:n.scopeName},n.repository.$base=e||n.repository.$self,n}var fr=class ci{constructor(e,t,i){this.parent=e,this.scopePath=t,this.tokenAttributes=i}static fromExtension(e,t){let i=e,u=(e==null?void 0:e.scopePath)??null;for(const I of t)u=lc.push(u,I.scopeNames),i=new ci(i,u,I.encodedTokenAttributes);return i}static createRoot(e,t){return new ci(null,new lc(null,e),t)}static createRootAndLookUpScopeName(e,t,i){const u=i.getMetadataForScope(e),I=new lc(null,e),o=i.themeProvider.themeMatch(I),b=ci.mergeAttributes(t,u,o);return new ci(null,I,b)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return ci.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,i){let u=-1,I=0,o=0;return i!==null&&(u=i.fontStyle,I=i.foregroundId,o=i.backgroundId),No.set(e,t.languageId,t.tokenType,null,u,I,o)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return ci._pushAttributed(this,e,t);const i=e.split(/ /g);let u=this;for(const I of i)u=ci._pushAttributed(u,I,t);return u}static _pushAttributed(e,t,i){const u=i.getMetadataForScope(t),I=e.scopePath.push(t),o=i.themeProvider.themeMatch(I),b=ci.mergeAttributes(e.tokenAttributes,u,o);return new ci(e,I,b)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var u;const t=[];let i=this;for(;i&&i!==e;)t.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(((u=i.parent)==null?void 0:u.scopePath)??null)}),i=i.parent;return i===e?t.reverse():void 0}},pc=class gr{constructor(e,t,i,u,I,o,b,y){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=I,this.endRule=o,this.nameScopesList=b,this.contentNameScopesList=y,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=u}equals(e){return e===null?!1:gr._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?fr.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){gr._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,i,u,I,o,b){return new gr(this,e,t,i,u,I,o,b)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var i,u;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(i=this.nameScopesList)==null?void 0:i.toString()}, ${(u=this.contentNameScopesList)==null?void 0:u.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new gr(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,i;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((i=this.contentNameScopesList)==null?void 0:i.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const i=fr.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new gr(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,i,fr.fromExtension(i,t.contentNameScopesList))}};pc.NULL=new pc(null,0,0,0,!1,null,null,null);var Cc=pc,gD=class{constructor(n,e){this.allowAny=!1,this.balancedBracketScopes=n.flatMap(t=>t==="*"?(this.allowAny=!0,[]):Ha(t,Ya).map(i=>i.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>Ha(t,Ya).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(n){for(const e of this.unbalancedBracketScopes)if(e(n))return!1;for(const e of this.balancedBracketScopes)if(e(n))return!0;return this.allowAny}},uD=class{constructor(n,e,t,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=n,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(n,e){this.produceFromScopes(n.contentNameScopesList,e)}produceFromScopes(n,e){var i;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let u=(n==null?void 0:n.tokenAttributes)??0,I=!1;if((i=this.balancedBracketSelectors)!=null&&i.matchesAlways&&(I=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=(n==null?void 0:n.getScopeNames())??[];for(const b of this._tokenTypeOverrides)b.matcher(o)&&(u=No.set(u,0,b.type,null,-1,0,0));this.balancedBracketSelectors&&(I=this.balancedBracketSelectors.match(o))}if(I&&(u=No.set(u,0,8,I,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===u){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(u),this._lastTokenEndIndex=e;return}const t=(n==null?void 0:n.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(n,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(n,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let i=0,u=this._binaryTokens.length;i<u;i++)t[i]=this._binaryTokens[i];return t}},dD=class{constructor(n,e){this._onigLib=e,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=n}dispose(){for(const n of this._grammars.values())n.dispose()}setTheme(n){this._theme=n}getColorMap(){return this._theme.getColorMap()}addGrammar(n,e){this._rawGrammars.set(n.scopeName,n),e&&this._injectionGrammars.set(n.scopeName,e)}lookup(n){return this._rawGrammars.get(n)}injections(n){return this._injectionGrammars.get(n)}getDefaults(){return this._theme.getDefaults()}themeMatch(n){return this._theme.match(n)}grammarForScopeName(n,e,t,i,u){if(!this._grammars.has(n)){let I=this._rawGrammars.get(n);if(!I)return null;this._grammars.set(n,sD(n,I,e,t,i,u,this,this._onigLib))}return this._grammars.get(n)}},hD=class{constructor(e){this._options=e,this._syncRegistry=new dD(Pa.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Pa.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,i){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:i})}loadGrammarWithConfiguration(e,t,i){return this._loadGrammar(e,t,i.embeddedLanguages,i.tokenTypes,new gD(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,i,u,I){const o=new Yy(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(b=>this._loadSingleGrammar(b.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,i,u,I)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const i=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,i)}}addGrammar(e,t=[],i=0,u=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,i,u)}_grammarForScopeName(e,t=0,i=null,u=null,I=null){return this._syncRegistry.grammarForScopeName(e,t,i,u,I)}},Bc=Cc.NULL;const pD=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class wr{constructor(e,t,i){this.property=e,this.normal=t,i&&(this.space=i)}}wr.prototype.property={},wr.prototype.normal={},wr.prototype.space=null;function ah(n,e){const t={},i={};let u=-1;for(;++u<n.length;)Object.assign(t,n[u].property),Object.assign(i,n[u].normal);return new wr(t,i,e)}function mc(n){return n.toLowerCase()}class Mn{constructor(e,t){this.property=e,this.attribute=t}}Mn.prototype.space=null,Mn.prototype.boolean=!1,Mn.prototype.booleanish=!1,Mn.prototype.overloadedBoolean=!1,Mn.prototype.number=!1,Mn.prototype.commaSeparated=!1,Mn.prototype.spaceSeparated=!1,Mn.prototype.commaOrSpaceSeparated=!1,Mn.prototype.mustUseProperty=!1,Mn.prototype.defined=!1;let CD=0;const Ue=Xi(),kt=Xi(),sh=Xi(),pe=Xi(),dt=Xi(),Fo=Xi(),Bn=Xi();function Xi(){return 2**++CD}const Ec=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ue,booleanish:kt,commaOrSpaceSeparated:Bn,commaSeparated:Fo,number:pe,overloadedBoolean:sh,spaceSeparated:dt},Symbol.toStringTag,{value:"Module"})),Qc=Object.keys(Ec);class Ic extends Mn{constructor(e,t,i,u){let I=-1;if(super(e,t),lh(this,"space",u),typeof i=="number")for(;++I<Qc.length;){const o=Qc[I];lh(this,Qc[I],(i&Ec[o])===Ec[o])}}}Ic.prototype.defined=!0;function lh(n,e,t){t&&(n[e]=t)}const BD={}.hasOwnProperty;function Ro(n){const e={},t={};let i;for(i in n.properties)if(BD.call(n.properties,i)){const u=n.properties[i],I=new Ic(i,n.transform(n.attributes||{},i),u,n.space);n.mustUseProperty&&n.mustUseProperty.includes(i)&&(I.mustUseProperty=!0),e[i]=I,t[mc(i)]=i,t[mc(I.attribute)]=i}return new wr(e,t,n.space)}const ch=Ro({space:"xlink",transform(n,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),gh=Ro({space:"xml",transform(n,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function uh(n,e){return e in n?n[e]:e}function dh(n,e){return uh(n,e.toLowerCase())}const hh=Ro({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:dh,properties:{xmlns:null,xmlnsXLink:null}}),ph=Ro({transform(n,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControls:dt,ariaCurrent:null,ariaDescribedBy:dt,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:dt,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:dt,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dt,ariaLevel:pe,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:dt,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:dt,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:kt,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null}}),mD=Ro({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:dh,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fo,acceptCharset:dt,accessKey:dt,action:null,allow:null,allowFullScreen:Ue,allowPaymentRequest:Ue,allowUserMedia:Ue,alt:null,as:null,async:Ue,autoCapitalize:null,autoComplete:dt,autoFocus:Ue,autoPlay:Ue,blocking:dt,capture:null,charSet:null,checked:Ue,cite:null,className:dt,cols:pe,colSpan:null,content:null,contentEditable:kt,controls:Ue,controlsList:dt,coords:pe|Fo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ue,defer:Ue,dir:null,dirName:null,disabled:Ue,download:sh,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ue,formTarget:null,headers:dt,height:pe,hidden:Ue,high:pe,href:null,hrefLang:null,htmlFor:dt,httpEquiv:dt,id:null,imageSizes:null,imageSrcSet:null,inert:Ue,inputMode:null,integrity:null,is:null,isMap:Ue,itemId:null,itemProp:dt,itemRef:dt,itemScope:Ue,itemType:dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ue,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:Ue,muted:Ue,name:null,nonce:null,noModule:Ue,noValidate:Ue,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ue,optimum:pe,pattern:null,ping:dt,placeholder:null,playsInline:Ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ue,referrerPolicy:null,rel:dt,required:Ue,reversed:Ue,rows:pe,rowSpan:pe,sandbox:dt,scope:null,scoped:Ue,seamless:Ue,selected:Ue,shadowRootClonable:Ue,shadowRootDelegatesFocus:Ue,shadowRootMode:null,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:Ue,useMap:null,value:kt,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dt,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ue,declare:Ue,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:Ue,noHref:Ue,noShade:Ue,noWrap:Ue,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ue,disableRemotePlayback:Ue,prefix:null,property:null,results:pe,security:null,unselectable:null}}),ED=Ro({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:uh,properties:{about:Bn,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:dt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:Ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fo,g2:Fo,glyphName:Fo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:Bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bn,rev:Bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bn,requiredFeatures:Bn,requiredFonts:Bn,requiredFormats:Bn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:Bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bn,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),QD=/^data[-\w.:]+$/i,Ch=/-[a-z]/g,ID=/[A-Z]/g;function fD(n,e){const t=mc(e);let i=e,u=Mn;if(t in n.normal)return n.property[n.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&QD.test(e)){if(e.charAt(4)==="-"){const I=e.slice(5).replace(Ch,bD);i="data"+I.charAt(0).toUpperCase()+I.slice(1)}else{const I=e.slice(4);if(!Ch.test(I)){let o=I.replace(ID,wD);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}u=Ic}return new u(i,e)}function wD(n){return"-"+n.toLowerCase()}function bD(n){return n.charAt(1).toUpperCase()}const yD=ah([gh,ch,hh,ph,mD],"html"),Bh=ah([gh,ch,hh,ph,ED],"svg"),mh={}.hasOwnProperty;function DD(n,e){const t=e||{};function i(u,...I){let o=i.invalid;const b=i.handlers;if(u&&mh.call(u,n)){const y=String(u[n]);o=mh.call(b,y)?b[y]:i.unknown}if(o)return o.call(this,u,...I)}return i.handlers=t.handlers||{},i.invalid=t.invalid,i.unknown=t.unknown,i}const vD=/["&'<>`]/g,kD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_D=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,MD=/[|\\{}()[\]^$+*?.]/g,Eh=new WeakMap;function xD(n,e){if(n=n.replace(e.subset?SD(e.subset):vD,i),e.subset||e.escapeOnly)return n;return n.replace(kD,t).replace(_D,i);function t(u,I,o){return e.format((u.charCodeAt(0)-55296)*1024+u.charCodeAt(1)-56320+65536,o.charCodeAt(I+2),e)}function i(u,I,o){return e.format(u.charCodeAt(0),o.charCodeAt(I+1),e)}}function SD(n){let e=Eh.get(n);return e||(e=ND(n),Eh.set(n,e)),e}function ND(n){const e=[];let t=-1;for(;++t<n.length;)e.push(n[t].replace(MD,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const FD=/[\dA-Fa-f]/;function RD(n,e,t){const i="&#x"+n.toString(16).toUpperCase();return t&&e&&!FD.test(String.fromCharCode(e))?i:i+";"}const LD=/\d/;function GD(n,e,t){const i="&#"+String(n);return t&&e&&!LD.test(String.fromCharCode(e))?i:i+";"}const PD=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],fc={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},HD=["cent","copy","divide","gt","lt","not","para","times"],Qh={}.hasOwnProperty,wc={};let Oa;for(Oa in fc)Qh.call(fc,Oa)&&(wc[fc[Oa]]=Oa);const KD=/[^\dA-Za-z]/;function TD(n,e,t,i){const u=String.fromCharCode(n);if(Qh.call(wc,u)){const I=wc[u],o="&"+I;return t&&PD.includes(I)&&!HD.includes(I)&&(!i||e&&e!==61&&KD.test(String.fromCharCode(e)))?o:o+";"}return""}function UD(n,e,t){let i=RD(n,e,t.omitOptionalSemicolons),u;if((t.useNamedReferences||t.useShortestReferences)&&(u=TD(n,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!u)&&t.useShortestReferences){const I=GD(n,e,t.omitOptionalSemicolons);I.length<i.length&&(i=I)}return u&&(!t.useShortestReferences||u.length<i.length)?u:i}function Lo(n,e){return xD(n,Object.assign({format:UD},e))}const YD=/^>|^->|<!--|-->|--!>|<!-$/g,OD=[">"],$D=["<",">"];function zD(n,e,t,i){return i.settings.bogusComments?"<?"+Lo(n.value,Object.assign({},i.settings.characterReferences,{subset:OD}))+">":"<!--"+n.value.replace(YD,u)+"-->";function u(I){return Lo(I,Object.assign({},i.settings.characterReferences,{subset:$D}))}}function JD(n,e,t,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}function Ih(n,e){const t=String(n);if(typeof e!="string")throw new TypeError("Expected character");let i=0,u=t.indexOf(e);for(;u!==-1;)i++,u=t.indexOf(e,u+e.length);return i}function ZD(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function WD(n){return n.join(" ").trim()}const jD=/[ \t\n\f\r]/g;function bc(n){return typeof n=="object"?n.type==="text"?fh(n.value):!1:fh(n)}function fh(n){return n.replace(jD,"")===""}const Mt=bh(1),wh=bh(-1),qD=[];function bh(n){return e;function e(t,i,u){const I=t?t.children:qD;let o=(i||0)+n,b=I[o];if(!u)for(;b&&bc(b);)o+=n,b=I[o];return b}}const XD={}.hasOwnProperty;function yh(n){return e;function e(t,i,u){return XD.call(n,t.tagName)&&n[t.tagName](t,i,u)}}const yc=yh({body:Av,caption:Dc,colgroup:Dc,dd:iv,dt:nv,head:Dc,html:VD,li:tv,optgroup:ov,option:rv,p:ev,rp:Dh,rt:Dh,tbody:sv,td:vh,tfoot:lv,th:vh,thead:av,tr:cv});function Dc(n,e,t){const i=Mt(t,e,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&bc(i.value.charAt(0)))}function VD(n,e,t){const i=Mt(t,e);return!i||i.type!=="comment"}function Av(n,e,t){const i=Mt(t,e);return!i||i.type!=="comment"}function ev(n,e,t){const i=Mt(t,e);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function tv(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&i.tagName==="li"}function nv(n,e,t){const i=Mt(t,e);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function iv(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function Dh(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function ov(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&i.tagName==="optgroup"}function rv(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function av(n,e,t){const i=Mt(t,e);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function sv(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function lv(n,e,t){return!Mt(t,e)}function cv(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&i.tagName==="tr"}function vh(n,e,t){const i=Mt(t,e);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const gv=yh({body:hv,colgroup:pv,head:dv,html:uv,tbody:Cv});function uv(n){const e=Mt(n,-1);return!e||e.type!=="comment"}function dv(n){const e=new Set;for(const i of n.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(e.has(i.tagName))return!1;e.add(i.tagName)}const t=n.children[0];return!t||t.type==="element"}function hv(n){const e=Mt(n,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&bc(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function pv(n,e,t){const i=wh(t,e),u=Mt(n,-1,!0);return t&&i&&i.type==="element"&&i.tagName==="colgroup"&&yc(i,t.children.indexOf(i),t)?!1:!!(u&&u.type==="element"&&u.tagName==="col")}function Cv(n,e,t){const i=wh(t,e),u=Mt(n,-1);return t&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&yc(i,t.children.indexOf(i),t)?!1:!!(u&&u.type==="element"&&u.tagName==="tr")}const $a={name:[[`
|
|
91
91
|
\f\r &/=>`.split(""),`
|
|
@@ -103,8 +103,9 @@ onClick: ${e.onClick}`)}u.value=!1}};return(o,b)=>{const y=A.resolveComponent("e
|
|
|
103
103
|
* @license MIT
|
|
104
104
|
*/function Zh(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),t.push.apply(t,i)}return t}function qn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Zh(Object(t),!0).forEach(function(i){G1(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Zh(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function As(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?As=function(e){return typeof e}:As=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As(n)}function G1(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function di(){return di=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},di.apply(this,arguments)}function P1(n,e){if(n==null)return{};var t={},i=Object.keys(n),u,I;for(I=0;I<i.length;I++)u=i[I],!(e.indexOf(u)>=0)&&(t[u]=n[u]);return t}function H1(n,e){if(n==null)return{};var t=P1(n,e),i,u;if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(n);for(u=0;u<I.length;u++)i=I[u],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}var K1="1.14.0";function hi(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var pi=hi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),kr=hi(/Edge/i),Wh=hi(/firefox/i),_r=hi(/safari/i)&&!hi(/chrome/i)&&!hi(/android/i),jh=hi(/iP(ad|od|hone)/i),T1=hi(/chrome/i)&&hi(/android/i),qh={capture:!1,passive:!1};function it(n,e,t){n.addEventListener(e,t,!pi&&qh)}function et(n,e,t){n.removeEventListener(e,t,!pi&&qh)}function es(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function U1(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function Xn(n,e,t,i){if(n){t=t||document;do{if(e!=null&&(e[0]===">"?n.parentNode===t&&es(n,e):es(n,e))||i&&n===t)return n;if(n===t)break}while(n=U1(n))}return null}var Xh=/\s+/g;function mn(n,e,t){if(n&&e)if(n.classList)n.classList[t?"add":"remove"](e);else{var i=(" "+n.className+" ").replace(Xh," ").replace(" "+e+" "," ");n.className=(i+(t?" "+e:"")).replace(Xh," ")}}function Le(n,e,t){var i=n&&n.style;if(i){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(t=n.currentStyle),e===void 0?t:t[e];!(e in i)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),i[e]=t+(typeof t=="string"?"":"px")}}function Po(n,e){var t="";if(typeof n=="string")t=n;else do{var i=Le(n,"transform");i&&i!=="none"&&(t=i+" "+t)}while(!e&&(n=n.parentNode));var u=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return u&&new u(t)}function Vh(n,e,t){if(n){var i=n.getElementsByTagName(e),u=0,I=i.length;if(t)for(;u<I;u++)t(i[u],u);return i}return[]}function Vn(){var n=document.scrollingElement;return n||document.documentElement}function xt(n,e,t,i,u){if(!(!n.getBoundingClientRect&&n!==window)){var I,o,b,y,w,M,N;if(n!==window&&n.parentNode&&n!==Vn()?(I=n.getBoundingClientRect(),o=I.top,b=I.left,y=I.bottom,w=I.right,M=I.height,N=I.width):(o=0,b=0,y=window.innerHeight,w=window.innerWidth,M=window.innerHeight,N=window.innerWidth),(e||t)&&n!==window&&(u=u||n.parentNode,!pi))do if(u&&u.getBoundingClientRect&&(Le(u,"transform")!=="none"||t&&Le(u,"position")!=="static")){var P=u.getBoundingClientRect();o-=P.top+parseInt(Le(u,"border-top-width")),b-=P.left+parseInt(Le(u,"border-left-width")),y=o+I.height,w=b+I.width;break}while(u=u.parentNode);if(i&&n!==window){var Y=Po(u||n),G=Y&&Y.a,K=Y&&Y.d;Y&&(o/=K,b/=G,N/=G,M/=K,y=o+M,w=b+N)}return{top:o,left:b,bottom:y,right:w,width:N,height:M}}}function Ap(n,e,t){for(var i=Fi(n,!0),u=xt(n)[e];i;){var I=xt(i)[t],o=void 0;if(o=u>=I,!o)return i;if(i===Vn())break;i=Fi(i,!1)}return!1}function Ho(n,e,t,i){for(var u=0,I=0,o=n.children;I<o.length;){if(o[I].style.display!=="none"&&o[I]!==Ge.ghost&&(i||o[I]!==Ge.dragged)&&Xn(o[I],t.draggable,n,!1)){if(u===e)return o[I];u++}I++}return null}function Sc(n,e){for(var t=n.lastElementChild;t&&(t===Ge.ghost||Le(t,"display")==="none"||e&&!es(t,e));)t=t.previousElementSibling;return t||null}function xn(n,e){var t=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==Ge.clone&&(!e||es(n,e))&&t++;return t}function ep(n){var e=0,t=0,i=Vn();if(n)do{var u=Po(n),I=u.a,o=u.d;e+=n.scrollLeft*I,t+=n.scrollTop*o}while(n!==i&&(n=n.parentNode));return[e,t]}function Y1(n,e){for(var t in n)if(n.hasOwnProperty(t)){for(var i in e)if(e.hasOwnProperty(i)&&e[i]===n[t][i])return Number(t)}return-1}function Fi(n,e){if(!n||!n.getBoundingClientRect)return Vn();var t=n,i=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var u=Le(t);if(t.clientWidth<t.scrollWidth&&(u.overflowX=="auto"||u.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(u.overflowY=="auto"||u.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return Vn();if(i||e)return t;i=!0}}while(t=t.parentNode);return Vn()}function O1(n,e){if(n&&e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Nc(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var Mr;function tp(n,e){return function(){if(!Mr){var t=arguments,i=this;t.length===1?n.call(i,t[0]):n.apply(i,t),Mr=setTimeout(function(){Mr=void 0},e)}}}function $1(){clearTimeout(Mr),Mr=void 0}function np(n,e,t){n.scrollLeft+=e,n.scrollTop+=t}function ip(n){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):t?t(n).clone(!0)[0]:n.cloneNode(!0)}var En="Sortable"+new Date().getTime();function z1(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(u){if(!(Le(u,"display")==="none"||u===Ge.ghost)){n.push({target:u,rect:xt(u)});var I=qn({},n[n.length-1].rect);if(u.thisAnimationDuration){var o=Po(u,!0);o&&(I.top-=o.f,I.left-=o.e)}u.fromRect=I}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(Y1(n,{target:i}),1)},animateAll:function(i){var u=this;if(!this.options.animation){clearTimeout(e),typeof i=="function"&&i();return}var I=!1,o=0;n.forEach(function(b){var y=0,w=b.target,M=w.fromRect,N=xt(w),P=w.prevFromRect,Y=w.prevToRect,G=b.rect,K=Po(w,!0);K&&(N.top-=K.f,N.left-=K.e),w.toRect=N,w.thisAnimationDuration&&Nc(P,N)&&!Nc(M,N)&&(G.top-N.top)/(G.left-N.left)===(M.top-N.top)/(M.left-N.left)&&(y=Z1(G,P,Y,u.options)),Nc(N,M)||(w.prevFromRect=M,w.prevToRect=N,y||(y=u.options.animation),u.animate(w,G,N,y)),y&&(I=!0,o=Math.max(o,y),clearTimeout(w.animationResetTimer),w.animationResetTimer=setTimeout(function(){w.animationTime=0,w.prevFromRect=null,w.fromRect=null,w.prevToRect=null,w.thisAnimationDuration=null},y),w.thisAnimationDuration=y)}),clearTimeout(e),I?e=setTimeout(function(){typeof i=="function"&&i()},o):typeof i=="function"&&i(),n=[]},animate:function(i,u,I,o){if(o){Le(i,"transition",""),Le(i,"transform","");var b=Po(this.el),y=b&&b.a,w=b&&b.d,M=(u.left-I.left)/(y||1),N=(u.top-I.top)/(w||1);i.animatingX=!!M,i.animatingY=!!N,Le(i,"transform","translate3d("+M+"px,"+N+"px,0)"),this.forRepaintDummy=J1(i),Le(i,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Le(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){Le(i,"transition",""),Le(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},o)}}}}function J1(n){return n.offsetWidth}function Z1(n,e,t,i){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*i.animation}var Ko=[],Fc={initializeByDefault:!0},xr={mount:function(e){for(var t in Fc)Fc.hasOwnProperty(t)&&!(t in e)&&(e[t]=Fc[t]);Ko.forEach(function(i){if(i.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Ko.push(e)},pluginEvent:function(e,t,i){var u=this;this.eventCanceled=!1,i.cancel=function(){u.eventCanceled=!0};var I=e+"Global";Ko.forEach(function(o){t[o.pluginName]&&(t[o.pluginName][I]&&t[o.pluginName][I](qn({sortable:t},i)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](qn({sortable:t},i)))})},initializePlugins:function(e,t,i,u){Ko.forEach(function(b){var y=b.pluginName;if(!(!e.options[y]&&!b.initializeByDefault)){var w=new b(e,t,e.options);w.sortable=e,w.options=e.options,e[y]=w,di(i,w.defaults)}});for(var I in e.options)if(e.options.hasOwnProperty(I)){var o=this.modifyOption(e,I,e.options[I]);typeof o<"u"&&(e.options[I]=o)}},getEventProperties:function(e,t){var i={};return Ko.forEach(function(u){typeof u.eventProperties=="function"&&di(i,u.eventProperties.call(t[u.pluginName],e))}),i},modifyOption:function(e,t,i){var u;return Ko.forEach(function(I){e[I.pluginName]&&I.optionListeners&&typeof I.optionListeners[t]=="function"&&(u=I.optionListeners[t].call(e[I.pluginName],i))}),u}};function W1(n){var e=n.sortable,t=n.rootEl,i=n.name,u=n.targetEl,I=n.cloneEl,o=n.toEl,b=n.fromEl,y=n.oldIndex,w=n.newIndex,M=n.oldDraggableIndex,N=n.newDraggableIndex,P=n.originalEvent,Y=n.putSortable,G=n.extraEventProperties;if(e=e||t&&t[En],!!e){var K,D=e.options,E="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!pi&&!kr?K=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(K=document.createEvent("Event"),K.initEvent(i,!0,!0)),K.to=o||t,K.from=b||t,K.item=u||t,K.clone=I,K.oldIndex=y,K.newIndex=w,K.oldDraggableIndex=M,K.newDraggableIndex=N,K.originalEvent=P,K.pullMode=Y?Y.lastPutMode:void 0;var L=qn(qn({},G),xr.getEventProperties(i,e));for(var _ in L)K[_]=L[_];t&&t.dispatchEvent(K),D[E]&&D[E].call(e,K)}}var j1=["evt"],ln=function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=i.evt,I=H1(i,j1);xr.pluginEvent.bind(Ge)(e,t,qn({dragEl:me,parentEl:ft,ghostEl:Ye,rootEl:Bt,nextEl:to,lastDownEl:ts,cloneEl:wt,cloneHidden:Ri,dragStarted:Nr,putSortable:Kt,activeSortable:Ge.active,originalEvent:u,oldIndex:To,oldDraggableIndex:Sr,newIndex:Qn,newDraggableIndex:Li,hideGhostForTarget:gp,unhideGhostForTarget:up,cloneNowHidden:function(){Ri=!0},cloneNowShown:function(){Ri=!1},dispatchSortableEvent:function(b){Wt({sortable:t,name:b,originalEvent:u})}},I))};function Wt(n){W1(qn({putSortable:Kt,cloneEl:wt,targetEl:me,rootEl:Bt,oldIndex:To,oldDraggableIndex:Sr,newIndex:Qn,newDraggableIndex:Li},n))}var me,ft,Ye,Bt,to,ts,wt,Ri,To,Qn,Sr,Li,ns,Kt,Uo=!1,is=!1,os=[],no,Yn,Rc,Lc,op,rp,Nr,Yo,Fr,Rr=!1,rs=!1,as,Ot,Gc=[],Pc=!1,ss=[],ls=typeof document<"u",cs=jh,ap=kr||pi?"cssFloat":"float",q1=ls&&!T1&&!jh&&"draggable"in document.createElement("div"),sp=function(){if(ls){if(pi)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),lp=function(e,t){var i=Le(e),u=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),I=Ho(e,0,t),o=Ho(e,1,t),b=I&&Le(I),y=o&&Le(o),w=b&&parseInt(b.marginLeft)+parseInt(b.marginRight)+xt(I).width,M=y&&parseInt(y.marginLeft)+parseInt(y.marginRight)+xt(o).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(I&&b.float&&b.float!=="none"){var N=b.float==="left"?"left":"right";return o&&(y.clear==="both"||y.clear===N)?"vertical":"horizontal"}return I&&(b.display==="block"||b.display==="flex"||b.display==="table"||b.display==="grid"||w>=u&&i[ap]==="none"||o&&i[ap]==="none"&&w+M>u)?"vertical":"horizontal"},X1=function(e,t,i){var u=i?e.left:e.top,I=i?e.right:e.bottom,o=i?e.width:e.height,b=i?t.left:t.top,y=i?t.right:t.bottom,w=i?t.width:t.height;return u===b||I===y||u+o/2===b+w/2},V1=function(e,t){var i;return os.some(function(u){var I=u[En].options.emptyInsertThreshold;if(!(!I||Sc(u))){var o=xt(u),b=e>=o.left-I&&e<=o.right+I,y=t>=o.top-I&&t<=o.bottom+I;if(b&&y)return i=u}}),i},cp=function(e){function t(I,o){return function(b,y,w,M){var N=b.options.group.name&&y.options.group.name&&b.options.group.name===y.options.group.name;if(I==null&&(o||N))return!0;if(I==null||I===!1)return!1;if(o&&I==="clone")return I;if(typeof I=="function")return t(I(b,y,w,M),o)(b,y,w,M);var P=(o?b:y).options.group.name;return I===!0||typeof I=="string"&&I===P||I.join&&I.indexOf(P)>-1}}var i={},u=e.group;(!u||As(u)!="object")&&(u={name:u}),i.name=u.name,i.checkPull=t(u.pull,!0),i.checkPut=t(u.put),i.revertClone=u.revertClone,e.group=i},gp=function(){!sp&&Ye&&Le(Ye,"display","none")},up=function(){!sp&&Ye&&Le(Ye,"display","")};ls&&document.addEventListener("click",function(n){if(is)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),is=!1,!1},!0);var io=function(e){if(me){e=e.touches?e.touches[0]:e;var t=V1(e.clientX,e.clientY);if(t){var i={};for(var u in e)e.hasOwnProperty(u)&&(i[u]=e[u]);i.target=i.rootEl=t,i.preventDefault=void 0,i.stopPropagation=void 0,t[En]._onDragOver(i)}}},Ak=function(e){me&&me.parentNode[En]._isOutsideThisEl(e.target)};function Ge(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=di({},e),n[En]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return lp(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,b){o.setData("Text",b.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:Ge.supportPointer!==!1&&"PointerEvent"in window&&!_r,emptyInsertThreshold:5};xr.initializePlugins(this,n,t);for(var i in t)!(i in e)&&(e[i]=t[i]);cp(e);for(var u in this)u.charAt(0)==="_"&&typeof this[u]=="function"&&(this[u]=this[u].bind(this));this.nativeDraggable=e.forceFallback?!1:q1,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?it(n,"pointerdown",this._onTapStart):(it(n,"mousedown",this._onTapStart),it(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(it(n,"dragover",this),it(n,"dragenter",this)),os.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),di(this,z1())}Ge.prototype={constructor:Ge,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Yo=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,me):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,i=this.el,u=this.options,I=u.preventOnFilter,o=e.type,b=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,y=(b||e).target,w=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||y,M=u.filter;if(sk(i),!me&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||u.disabled)&&!w.isContentEditable&&!(!this.nativeDraggable&&_r&&y&&y.tagName.toUpperCase()==="SELECT")&&(y=Xn(y,u.draggable,i,!1),!(y&&y.animated)&&ts!==y)){if(To=xn(y),Sr=xn(y,u.draggable),typeof M=="function"){if(M.call(this,e,y,this)){Wt({sortable:t,rootEl:w,name:"filter",targetEl:y,toEl:i,fromEl:i}),ln("filter",t,{evt:e}),I&&e.cancelable&&e.preventDefault();return}}else if(M&&(M=M.split(",").some(function(N){if(N=Xn(w,N.trim(),i,!1),N)return Wt({sortable:t,rootEl:N,name:"filter",targetEl:y,fromEl:i,toEl:i}),ln("filter",t,{evt:e}),!0}),M)){I&&e.cancelable&&e.preventDefault();return}u.handle&&!Xn(w,u.handle,i,!1)||this._prepareDragStart(e,b,y)}}},_prepareDragStart:function(e,t,i){var u=this,I=u.el,o=u.options,b=I.ownerDocument,y;if(i&&!me&&i.parentNode===I){var w=xt(i);if(Bt=I,me=i,ft=me.parentNode,to=me.nextSibling,ts=i,ns=o.group,Ge.dragged=me,no={target:me,clientX:(t||e).clientX,clientY:(t||e).clientY},op=no.clientX-w.left,rp=no.clientY-w.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,me.style["will-change"]="all",y=function(){if(ln("delayEnded",u,{evt:e}),Ge.eventCanceled){u._onDrop();return}u._disableDelayedDragEvents(),!Wh&&u.nativeDraggable&&(me.draggable=!0),u._triggerDragStart(e,t),Wt({sortable:u,name:"choose",originalEvent:e}),mn(me,o.chosenClass,!0)},o.ignore.split(",").forEach(function(M){Vh(me,M.trim(),Hc)}),it(b,"dragover",io),it(b,"mousemove",io),it(b,"touchmove",io),it(b,"mouseup",u._onDrop),it(b,"touchend",u._onDrop),it(b,"touchcancel",u._onDrop),Wh&&this.nativeDraggable&&(this.options.touchStartThreshold=4,me.draggable=!0),ln("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(kr||pi))){if(Ge.eventCanceled){this._onDrop();return}it(b,"mouseup",u._disableDelayedDrag),it(b,"touchend",u._disableDelayedDrag),it(b,"touchcancel",u._disableDelayedDrag),it(b,"mousemove",u._delayedDragTouchMoveHandler),it(b,"touchmove",u._delayedDragTouchMoveHandler),o.supportPointer&&it(b,"pointermove",u._delayedDragTouchMoveHandler),u._dragStartTimer=setTimeout(y,o.delay)}else y()}},_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(){me&&Hc(me),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;et(e,"mouseup",this._disableDelayedDrag),et(e,"touchend",this._disableDelayedDrag),et(e,"touchcancel",this._disableDelayedDrag),et(e,"mousemove",this._delayedDragTouchMoveHandler),et(e,"touchmove",this._delayedDragTouchMoveHandler),et(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?it(document,"pointermove",this._onTouchMove):t?it(document,"touchmove",this._onTouchMove):it(document,"mousemove",this._onTouchMove):(it(me,"dragend",this),it(Bt,"dragstart",this._onDragStart));try{document.selection?us(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Uo=!1,Bt&&me){ln("dragStarted",this,{evt:t}),this.nativeDraggable&&it(document,"dragover",Ak);var i=this.options;!e&&mn(me,i.dragClass,!1),mn(me,i.ghostClass,!0),Ge.active=this,e&&this._appendGhost(),Wt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Yn){this._lastX=Yn.clientX,this._lastY=Yn.clientY,gp();for(var e=document.elementFromPoint(Yn.clientX,Yn.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Yn.clientX,Yn.clientY),e!==t);)t=e;if(me.parentNode[En]._isOutsideThisEl(e),t)do{if(t[En]){var i=void 0;if(i=t[En]._onDragOver({clientX:Yn.clientX,clientY:Yn.clientY,target:e,rootEl:t}),i&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);up()}},_onTouchMove:function(e){if(no){var t=this.options,i=t.fallbackTolerance,u=t.fallbackOffset,I=e.touches?e.touches[0]:e,o=Ye&&Po(Ye,!0),b=Ye&&o&&o.a,y=Ye&&o&&o.d,w=cs&&Ot&&ep(Ot),M=(I.clientX-no.clientX+u.x)/(b||1)+(w?w[0]-Gc[0]:0)/(b||1),N=(I.clientY-no.clientY+u.y)/(y||1)+(w?w[1]-Gc[1]:0)/(y||1);if(!Ge.active&&!Uo){if(i&&Math.max(Math.abs(I.clientX-this._lastX),Math.abs(I.clientY-this._lastY))<i)return;this._onDragStart(e,!0)}if(Ye){o?(o.e+=M-(Rc||0),o.f+=N-(Lc||0)):o={a:1,b:0,c:0,d:1,e:M,f:N};var P="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");Le(Ye,"webkitTransform",P),Le(Ye,"mozTransform",P),Le(Ye,"msTransform",P),Le(Ye,"transform",P),Rc=M,Lc=N,Yn=I}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Ye){var e=this.options.fallbackOnBody?document.body:Bt,t=xt(me,!0,cs,!0,e),i=this.options;if(cs){for(Ot=e;Le(Ot,"position")==="static"&&Le(Ot,"transform")==="none"&&Ot!==document;)Ot=Ot.parentNode;Ot!==document.body&&Ot!==document.documentElement?(Ot===document&&(Ot=Vn()),t.top+=Ot.scrollTop,t.left+=Ot.scrollLeft):Ot=Vn(),Gc=ep(Ot)}Ye=me.cloneNode(!0),mn(Ye,i.ghostClass,!1),mn(Ye,i.fallbackClass,!0),mn(Ye,i.dragClass,!0),Le(Ye,"transition",""),Le(Ye,"transform",""),Le(Ye,"box-sizing","border-box"),Le(Ye,"margin",0),Le(Ye,"top",t.top),Le(Ye,"left",t.left),Le(Ye,"width",t.width),Le(Ye,"height",t.height),Le(Ye,"opacity","0.8"),Le(Ye,"position",cs?"absolute":"fixed"),Le(Ye,"zIndex","100000"),Le(Ye,"pointerEvents","none"),Ge.ghost=Ye,e.appendChild(Ye),Le(Ye,"transform-origin",op/parseInt(Ye.style.width)*100+"% "+rp/parseInt(Ye.style.height)*100+"%")}},_onDragStart:function(e,t){var i=this,u=e.dataTransfer,I=i.options;if(ln("dragStart",this,{evt:e}),Ge.eventCanceled){this._onDrop();return}ln("setupClone",this),Ge.eventCanceled||(wt=ip(me),wt.draggable=!1,wt.style["will-change"]="",this._hideClone(),mn(wt,this.options.chosenClass,!1),Ge.clone=wt),i.cloneId=us(function(){ln("clone",i),!Ge.eventCanceled&&(i.options.removeCloneOnHide||Bt.insertBefore(wt,me),i._hideClone(),Wt({sortable:i,name:"clone"}))}),!t&&mn(me,I.dragClass,!0),t?(is=!0,i._loopId=setInterval(i._emulateDragOver,50)):(et(document,"mouseup",i._onDrop),et(document,"touchend",i._onDrop),et(document,"touchcancel",i._onDrop),u&&(u.effectAllowed="move",I.setData&&I.setData.call(i,u,me)),it(document,"drop",i),Le(me,"transform","translateZ(0)")),Uo=!0,i._dragStartId=us(i._dragStarted.bind(i,t,e)),it(document,"selectstart",i),Nr=!0,_r&&Le(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,i=e.target,u,I,o,b=this.options,y=b.group,w=Ge.active,M=ns===y,N=b.sort,P=Kt||w,Y,G=this,K=!1;if(Pc)return;function D(S,T){ln(S,G,qn({evt:e,isOwner:M,axis:Y?"vertical":"horizontal",revert:o,dragRect:u,targetRect:I,canSort:N,fromSortable:P,target:i,completed:L,onMove:function(eA,W){return gs(Bt,t,me,u,eA,xt(eA),e,W)},changed:_},T))}function E(){D("dragOverAnimationCapture"),G.captureAnimationState(),G!==P&&P.captureAnimationState()}function L(S){return D("dragOverCompleted",{insertion:S}),S&&(M?w._hideClone():w._showClone(G),G!==P&&(mn(me,Kt?Kt.options.ghostClass:w.options.ghostClass,!1),mn(me,b.ghostClass,!0)),Kt!==G&&G!==Ge.active?Kt=G:G===Ge.active&&Kt&&(Kt=null),P===G&&(G._ignoreWhileAnimating=i),G.animateAll(function(){D("dragOverAnimationComplete"),G._ignoreWhileAnimating=null}),G!==P&&(P.animateAll(),P._ignoreWhileAnimating=null)),(i===me&&!me.animated||i===t&&!i.animated)&&(Yo=null),!b.dragoverBubble&&!e.rootEl&&i!==document&&(me.parentNode[En]._isOutsideThisEl(e.target),!S&&io(e)),!b.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),K=!0}function _(){Qn=xn(me),Li=xn(me,b.draggable),Wt({sortable:G,name:"change",toEl:t,newIndex:Qn,newDraggableIndex:Li,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),i=Xn(i,b.draggable,t,!0),D("dragOver"),Ge.eventCanceled)return K;if(me.contains(e.target)||i.animated&&i.animatingX&&i.animatingY||G._ignoreWhileAnimating===i)return L(!1);if(is=!1,w&&!b.disabled&&(M?N||(o=ft!==Bt):Kt===this||(this.lastPutMode=ns.checkPull(this,w,me,e))&&y.checkPut(this,w,me,e))){if(Y=this._getDirection(e,i)==="vertical",u=xt(me),D("dragOverValid"),Ge.eventCanceled)return K;if(o)return ft=Bt,E(),this._hideClone(),D("revert"),Ge.eventCanceled||(to?Bt.insertBefore(me,to):Bt.appendChild(me)),L(!0);var v=Sc(t,b.draggable);if(!v||ik(e,Y,this)&&!v.animated){if(v===me)return L(!1);if(v&&t===e.target&&(i=v),i&&(I=xt(i)),gs(Bt,t,me,u,i,I,e,!!i)!==!1)return E(),t.appendChild(me),ft=t,_(),L(!0)}else if(v&&nk(e,Y,this)){var B=Ho(t,0,b,!0);if(B===me)return L(!1);if(i=B,I=xt(i),gs(Bt,t,me,u,i,I,e,!1)!==!1)return E(),t.insertBefore(me,B),ft=t,_(),L(!0)}else if(i.parentNode===t){I=xt(i);var p=0,d,l=me.parentNode!==t,g=!X1(me.animated&&me.toRect||u,i.animated&&i.toRect||I,Y),s=Y?"top":"left",h=Ap(i,"top","top")||Ap(me,"top","top"),C=h?h.scrollTop:void 0;Yo!==i&&(d=I[s],Rr=!1,rs=!g&&b.invertSwap||l),p=ok(e,i,I,Y,g?1:b.swapThreshold,b.invertedSwapThreshold==null?b.swapThreshold:b.invertedSwapThreshold,rs,Yo===i);var a;if(p!==0){var r=xn(me);do r-=p,a=ft.children[r];while(a&&(Le(a,"display")==="none"||a===Ye))}if(p===0||a===i)return L(!1);Yo=i,Fr=p;var m=i.nextElementSibling,Q=!1;Q=p===1;var x=gs(Bt,t,me,u,i,I,e,Q);if(x!==!1)return(x===1||x===-1)&&(Q=x===1),Pc=!0,setTimeout(tk,30),E(),Q&&!m?t.appendChild(me):i.parentNode.insertBefore(me,Q?m:i),h&&np(h,0,C-h.scrollTop),ft=me.parentNode,d!==void 0&&!rs&&(as=Math.abs(d-xt(i)[s])),_(),L(!0)}if(t.contains(me))return L(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){et(document,"mousemove",this._onTouchMove),et(document,"touchmove",this._onTouchMove),et(document,"pointermove",this._onTouchMove),et(document,"dragover",io),et(document,"mousemove",io),et(document,"touchmove",io)},_offUpEvents:function(){var e=this.el.ownerDocument;et(e,"mouseup",this._onDrop),et(e,"touchend",this._onDrop),et(e,"pointerup",this._onDrop),et(e,"touchcancel",this._onDrop),et(document,"selectstart",this)},_onDrop:function(e){var t=this.el,i=this.options;if(Qn=xn(me),Li=xn(me,i.draggable),ln("drop",this,{evt:e}),ft=me&&me.parentNode,Qn=xn(me),Li=xn(me,i.draggable),Ge.eventCanceled){this._nulling();return}Uo=!1,rs=!1,Rr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Kc(this.cloneId),Kc(this._dragStartId),this.nativeDraggable&&(et(document,"drop",this),et(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_r&&Le(document.body,"user-select",""),Le(me,"transform",""),e&&(Nr&&(e.cancelable&&e.preventDefault(),!i.dropBubble&&e.stopPropagation()),Ye&&Ye.parentNode&&Ye.parentNode.removeChild(Ye),(Bt===ft||Kt&&Kt.lastPutMode!=="clone")&&wt&&wt.parentNode&&wt.parentNode.removeChild(wt),me&&(this.nativeDraggable&&et(me,"dragend",this),Hc(me),me.style["will-change"]="",Nr&&!Uo&&mn(me,Kt?Kt.options.ghostClass:this.options.ghostClass,!1),mn(me,this.options.chosenClass,!1),Wt({sortable:this,name:"unchoose",toEl:ft,newIndex:null,newDraggableIndex:null,originalEvent:e}),Bt!==ft?(Qn>=0&&(Wt({rootEl:ft,name:"add",toEl:ft,fromEl:Bt,originalEvent:e}),Wt({sortable:this,name:"remove",toEl:ft,originalEvent:e}),Wt({rootEl:ft,name:"sort",toEl:ft,fromEl:Bt,originalEvent:e}),Wt({sortable:this,name:"sort",toEl:ft,originalEvent:e})),Kt&&Kt.save()):Qn!==To&&Qn>=0&&(Wt({sortable:this,name:"update",toEl:ft,originalEvent:e}),Wt({sortable:this,name:"sort",toEl:ft,originalEvent:e})),Ge.active&&((Qn==null||Qn===-1)&&(Qn=To,Li=Sr),Wt({sortable:this,name:"end",toEl:ft,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){ln("nulling",this),Bt=me=ft=Ye=to=wt=ts=Ri=no=Yn=Nr=Qn=Li=To=Sr=Yo=Fr=Kt=ns=Ge.dragged=Ge.ghost=Ge.clone=Ge.active=null,ss.forEach(function(e){e.checked=!0}),ss.length=Rc=Lc=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":me&&(this._onDragOver(e),ek(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,i=this.el.children,u=0,I=i.length,o=this.options;u<I;u++)t=i[u],Xn(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||ak(t));return e},sort:function(e,t){var i={},u=this.el;this.toArray().forEach(function(I,o){var b=u.children[o];Xn(b,this.options.draggable,u,!1)&&(i[I]=b)},this),t&&this.captureAnimationState(),e.forEach(function(I){i[I]&&(u.removeChild(i[I]),u.appendChild(i[I]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Xn(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var i=this.options;if(t===void 0)return i[e];var u=xr.modifyOption(this,e,t);typeof u<"u"?i[e]=u:i[e]=t,e==="group"&&cp(i)},destroy:function(){ln("destroy",this);var e=this.el;e[En]=null,et(e,"mousedown",this._onTapStart),et(e,"touchstart",this._onTapStart),et(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(et(e,"dragover",this),et(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),os.splice(os.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ri){if(ln("hideClone",this),Ge.eventCanceled)return;Le(wt,"display","none"),this.options.removeCloneOnHide&&wt.parentNode&&wt.parentNode.removeChild(wt),Ri=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Ri){if(ln("showClone",this),Ge.eventCanceled)return;me.parentNode==Bt&&!this.options.group.revertClone?Bt.insertBefore(wt,me):to?Bt.insertBefore(wt,to):Bt.appendChild(wt),this.options.group.revertClone&&this.animate(me,wt),Le(wt,"display",""),Ri=!1}}};function ek(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function gs(n,e,t,i,u,I,o,b){var y,w=n[En],M=w.options.onMove,N;return window.CustomEvent&&!pi&&!kr?y=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent("move",!0,!0)),y.to=e,y.from=n,y.dragged=t,y.draggedRect=i,y.related=u||e,y.relatedRect=I||xt(e),y.willInsertAfter=b,y.originalEvent=o,n.dispatchEvent(y),M&&(N=M.call(w,y,o)),N}function Hc(n){n.draggable=!1}function tk(){Pc=!1}function nk(n,e,t){var i=xt(Ho(t.el,0,t.options,!0)),u=10;return e?n.clientX<i.left-u||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-u||n.clientY<i.bottom&&n.clientX<i.left}function ik(n,e,t){var i=xt(Sc(t.el,t.options.draggable)),u=10;return e?n.clientX>i.right+u||n.clientX<=i.right&&n.clientY>i.bottom&&n.clientX>=i.left:n.clientX>i.right&&n.clientY>i.top||n.clientX<=i.right&&n.clientY>i.bottom+u}function ok(n,e,t,i,u,I,o,b){var y=i?n.clientY:n.clientX,w=i?t.height:t.width,M=i?t.top:t.left,N=i?t.bottom:t.right,P=!1;if(!o){if(b&&as<w*u){if(!Rr&&(Fr===1?y>M+w*I/2:y<N-w*I/2)&&(Rr=!0),Rr)P=!0;else if(Fr===1?y<M+as:y>N-as)return-Fr}else if(y>M+w*(1-u)/2&&y<N-w*(1-u)/2)return rk(e)}return P=P||o,P&&(y<M+w*I/2||y>N-w*I/2)?y>M+w/2?1:-1:0}function rk(n){return xn(me)<xn(n)?1:-1}function ak(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,t=e.length,i=0;t--;)i+=e.charCodeAt(t);return i.toString(36)}function sk(n){ss.length=0;for(var e=n.getElementsByTagName("input"),t=e.length;t--;){var i=e[t];i.checked&&ss.push(i)}}function us(n){return setTimeout(n,0)}function Kc(n){return clearTimeout(n)}ls&&it(document,"touchmove",function(n){(Ge.active||Uo)&&n.cancelable&&n.preventDefault()}),Ge.utils={on:it,off:et,css:Le,find:Vh,is:function(e,t){return!!Xn(e,t,e,!1)},extend:O1,throttle:tp,closest:Xn,toggleClass:mn,clone:ip,index:xn,nextTick:us,cancelNextTick:Kc,detectDirection:lp,getChild:Ho},Ge.get=function(n){return n[En]},Ge.mount=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(Ge.utils=qn(qn({},Ge.utils),i.utils)),xr.mount(i)})},Ge.create=function(n,e){return new Ge(n,e)},Ge.version=K1;var _t=[],Lr,Tc,Uc=!1,Yc,Oc,ds,Gr;function lk(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(t){var i=t.originalEvent;this.sortable.nativeDraggable?it(document,"dragover",this._handleAutoScroll):this.options.supportPointer?it(document,"pointermove",this._handleFallbackAutoScroll):i.touches?it(document,"touchmove",this._handleFallbackAutoScroll):it(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var i=t.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?et(document,"dragover",this._handleAutoScroll):(et(document,"pointermove",this._handleFallbackAutoScroll),et(document,"touchmove",this._handleFallbackAutoScroll),et(document,"mousemove",this._handleFallbackAutoScroll)),dp(),hs(),$1()},nulling:function(){ds=Tc=Lr=Uc=Gr=Yc=Oc=null,_t.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,i){var u=this,I=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,b=document.elementFromPoint(I,o);if(ds=t,i||this.options.forceAutoScrollFallback||kr||pi||_r){$c(t,this.options,b,i);var y=Fi(b,!0);Uc&&(!Gr||I!==Yc||o!==Oc)&&(Gr&&dp(),Gr=setInterval(function(){var w=Fi(document.elementFromPoint(I,o),!0);w!==y&&(y=w,hs()),$c(t,u.options,w,i)},10),Yc=I,Oc=o)}else{if(!this.options.bubbleScroll||Fi(b,!0)===Vn()){hs();return}$c(t,this.options,Fi(b,!1),!1)}}},di(n,{pluginName:"scroll",initializeByDefault:!0})}function hs(){_t.forEach(function(n){clearInterval(n.pid)}),_t=[]}function dp(){clearInterval(Gr)}var $c=tp(function(n,e,t,i){if(e.scroll){var u=(n.touches?n.touches[0]:n).clientX,I=(n.touches?n.touches[0]:n).clientY,o=e.scrollSensitivity,b=e.scrollSpeed,y=Vn(),w=!1,M;Tc!==t&&(Tc=t,hs(),Lr=e.scroll,M=e.scrollFn,Lr===!0&&(Lr=Fi(t,!0)));var N=0,P=Lr;do{var Y=P,G=xt(Y),K=G.top,D=G.bottom,E=G.left,L=G.right,_=G.width,v=G.height,B=void 0,p=void 0,d=Y.scrollWidth,l=Y.scrollHeight,g=Le(Y),s=Y.scrollLeft,h=Y.scrollTop;Y===y?(B=_<d&&(g.overflowX==="auto"||g.overflowX==="scroll"||g.overflowX==="visible"),p=v<l&&(g.overflowY==="auto"||g.overflowY==="scroll"||g.overflowY==="visible")):(B=_<d&&(g.overflowX==="auto"||g.overflowX==="scroll"),p=v<l&&(g.overflowY==="auto"||g.overflowY==="scroll"));var C=B&&(Math.abs(L-u)<=o&&s+_<d)-(Math.abs(E-u)<=o&&!!s),a=p&&(Math.abs(D-I)<=o&&h+v<l)-(Math.abs(K-I)<=o&&!!h);if(!_t[N])for(var r=0;r<=N;r++)_t[r]||(_t[r]={});(_t[N].vx!=C||_t[N].vy!=a||_t[N].el!==Y)&&(_t[N].el=Y,_t[N].vx=C,_t[N].vy=a,clearInterval(_t[N].pid),(C!=0||a!=0)&&(w=!0,_t[N].pid=setInterval((function(){i&&this.layer===0&&Ge.active._onTouchMove(ds);var m=_t[this.layer].vy?_t[this.layer].vy*b:0,Q=_t[this.layer].vx?_t[this.layer].vx*b:0;typeof M=="function"&&M.call(Ge.dragged.parentNode[En],Q,m,n,ds,_t[this.layer].el)!=="continue"||np(_t[this.layer].el,Q,m)}).bind({layer:N}),24))),N++}while(e.bubbleScroll&&P!==y&&(P=Fi(P,!1)));Uc=w}},30),hp=function(e){var t=e.originalEvent,i=e.putSortable,u=e.dragEl,I=e.activeSortable,o=e.dispatchSortableEvent,b=e.hideGhostForTarget,y=e.unhideGhostForTarget;if(t){var w=i||I;b();var M=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,N=document.elementFromPoint(M.clientX,M.clientY);y(),w&&!w.el.contains(N)&&(o("spill"),this.onSpill({dragEl:u,putSortable:i}))}};function zc(){}zc.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,i=e.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var u=Ho(this.sortable.el,this.startIndex,this.options);u?this.sortable.el.insertBefore(t,u):this.sortable.el.appendChild(t),this.sortable.animateAll(),i&&i.animateAll()},drop:hp},di(zc,{pluginName:"revertOnSpill"});function Jc(){}Jc.prototype={onSpill:function(e){var t=e.dragEl,i=e.putSortable,u=i||this.sortable;u.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),u.animateAll()},drop:hp},di(Jc,{pluginName:"removeOnSpill"}),Ge.mount(new lk),Ge.mount(Jc,zc);var ck=Object.defineProperty,gk=Object.defineProperties,uk=Object.getOwnPropertyDescriptors,pp=Object.getOwnPropertySymbols,dk=Object.prototype.hasOwnProperty,hk=Object.prototype.propertyIsEnumerable,Cp=(n,e,t)=>e in n?ck(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Gi=(n,e)=>{for(var t in e||(e={}))dk.call(e,t)&&Cp(n,t,e[t]);if(pp)for(var t of pp(e))hk.call(e,t)&&Cp(n,t,e[t]);return n},ps=(n,e)=>gk(n,uk(e));function Zc(n){n.parentElement!==null&&n.parentElement.removeChild(n)}function Bp(n,e,t){const i=t===0?n.children[0]:n.children[t-1].nextSibling;n.insertBefore(e,i)}function pk(){return typeof window<"u"?window.console:global.console}const Ck=pk();function Bk(n){const e=Object.create(null);return function(i){return e[i]||(e[i]=n(i))}}const mk=/-(\w)/g,Ek=Bk(n=>n.replace(mk,(e,t)=>t.toUpperCase())),mp=["Start","Add","Remove","Update","End"],Ep=["Choose","Unchoose","Sort","Filter","Clone"],Qp=["Move"],Qk=[Qp,mp,Ep].flatMap(n=>n).map(n=>`on${n}`),Wc={manage:Qp,manageAndEmit:mp,emit:Ep};function Ik(n){return Qk.indexOf(n)!==-1}const fk=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function wk(n){return fk.includes(n)}function bk(n){return["transition-group","TransitionGroup"].includes(n)}function Ip(n){return["id","class","role","style"].includes(n)||n.startsWith("data-")||n.startsWith("aria-")||n.startsWith("on")}function fp(n){return n.reduce((e,[t,i])=>(e[t]=i,e),{})}function yk({$attrs:n,componentData:e={}}){const t=fp(Object.entries(n).filter(([i,u])=>Ip(i)));return Gi(Gi({},t),e)}function Dk({$attrs:n,callBackBuilder:e}){const t=fp(wp(n));Object.entries(e).forEach(([u,I])=>{Wc[u].forEach(o=>{t[`on${o}`]=I(o)})});const i=`[data-draggable]${t.draggable||""}`;return ps(Gi({},t),{draggable:i})}function wp(n){return Object.entries(n).filter(([e,t])=>!Ip(e)).map(([e,t])=>[Ek(e),t]).filter(([e,t])=>!Ik(e))}const bp=n=>{const e=n.el||Array.isArray(n.children)&&n.children[0].el.parentNode;return e||console.error("使用 transition-group , 需要在slot中template内至少2层html标签"),e||{}},vk=(n,e)=>n.__draggable_context=e,yp=n=>n.__draggable_context;class kk{constructor({nodes:{header:e,default:t,footer:i},root:u,realList:I}){this.defaultNodes=t,this.children=[...e,...t,...i],this.externalComponent=u.externalComponent,this.rootTransition=u.transition,this.tag=u.tag,this.realList=I}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,t){const{tag:i,children:u,_isRootComponent:I}=this;return e(i,t,I?{default:()=>u}:u)}updated(){const{defaultNodes:e,realList:t}=this;e.forEach((i,u)=>{vk(bp(i),{element:t[u],index:u})})}getUnderlyingVm(e){return yp(e)}getVmIndexFromDomIndex(e,t){const{defaultNodes:i}=this,{length:u}=i,I=t.children,o=I.item(e);if(o===null)return u;const b=yp(o);if(b)return b.index;if(u===0)return 0;const y=bp(i[0]),w=[...I].findIndex(M=>M===y);return e<w?0:u}}function _k(n,e){const t=n[e];return t?t():[]}function Mk({$slots:n,realList:e,getKey:t}){const i=e||[],[u,I]=["header","footer"].map(y=>_k(n,y)),{item:o}=n;if(!o)throw new Error("draggable element must have an item slot");const b=i.flatMap((y,w)=>o({element:y,index:w}).map(M=>(M.key=t(y),M.props=ps(Gi({},M.props||{}),{"data-draggable":!0}),M)));if(b.length!==i.length)throw new Error("Item slot must have only one child");return{header:u,footer:I,default:b}}function xk(n){const e=bk(n),t=!wk(n)&&!e;return{transition:e,externalComponent:t,tag:t?A.resolveComponent(n):e?A.TransitionGroup:n}}function Sk({$slots:n,tag:e,realList:t,getKey:i}){const u=Mk({$slots:n,realList:t,getKey:i}),I=xk(e);return new kk({nodes:u,root:I,realList:t})}function Dp(n,e){A.nextTick(()=>this.$emit(n.toLowerCase(),e))}function vp(n){return(e,t)=>{if(this.realList!==null)return this[`onDrag${n}`](e,t)}}function Nk(n){const e=vp.call(this,n);return(t,i)=>{e.call(this,t,i),Dp.call(this,n,t)}}let jc=null;const Fk={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:n=>n},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Rk=["update:modelValue","change",...[...Wc.manageAndEmit,...Wc.emit].map(n=>n.toLowerCase())],kp=A.defineComponent({name:"draggable",inheritAttrs:!1,props:Fk,emits:Rk,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:n,$attrs:e,tag:t,componentData:i,realList:u,getKey:I}=this,o=Sk({$slots:n,tag:t,realList:u,getKey:I});this.componentStructure=o;const b=yk({$attrs:e,componentData:i});return o.render(A.h,b)}catch(n){return this.error=!0,A.h("pre",{style:{color:"red"}},n.stack)}},created(){this.list!==null&&this.modelValue!==null&&Ck.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:n,$el:e,componentStructure:t}=this;t.updated();const i=Dk({$attrs:n,callBackBuilder:{manageAndEmit:I=>Nk.call(this,I),emit:I=>Dp.bind(this,I),manage:I=>vp.call(this,I)}}),u=e.nodeType===1?e:e.parentElement;this._sortable=new Ge(u,i),this.targetDomElement=u,u.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:n}=this;return n||this.modelValue},getKey(){const{itemKey:n}=this;return typeof n=="function"?n:e=>e[n]}},watch:{$attrs:{handler(n){const{_sortable:e}=this;e&&wp(n).forEach(([t,i])=>{e.option(t,i)})},deep:!0}},methods:{getUnderlyingVm(n){return this.componentStructure.getUnderlyingVm(n)||null},getUnderlyingPotencialDraggableComponent(n){return n.__draggable_component__},emitChanges(n){A.nextTick(()=>this.$emit("change",n))},alterList(n){if(this.list){n(this.list);return}const e=[...this.modelValue];n(e),this.$emit("update:modelValue",e)},spliceList(){const n=e=>e.splice(...arguments);this.alterList(n)},updatePosition(n,e){const t=i=>i.splice(e,0,i.splice(n,1)[0]);this.alterList(t)},getRelatedContextFromMoveEvent({to:n,related:e}){const t=this.getUnderlyingPotencialDraggableComponent(n);if(!t)return{component:t};const i=t.realList,u={list:i,component:t};if(n!==e&&i){const I=t.getUnderlyingVm(e)||{};return Gi(Gi({},I),u)}return u},getVmIndexFromDomIndex(n){return this.componentStructure.getVmIndexFromDomIndex(n,this.targetDomElement)},onDragStart(n){this.context=this.getUnderlyingVm(n.item),n.item._underlying_vm_=this.clone(this.context.element),jc=n.item},onDragAdd(n){const e=n.item._underlying_vm_;if(e===void 0)return;Zc(n.item);const t=this.getVmIndexFromDomIndex(n.newIndex);this.spliceList(t,0,e);const i={element:e,newIndex:t};this.emitChanges({added:i})},onDragRemove(n){if(Bp(this.$el,n.item,n.oldIndex),n.pullMode==="clone"){Zc(n.clone);return}const{index:e,element:t}=this.context;this.spliceList(e,1);const i={element:t,oldIndex:e};this.emitChanges({removed:i})},onDragUpdate(n){Zc(n.item),Bp(n.from,n.item,n.oldIndex);const e=this.context.index,t=this.getVmIndexFromDomIndex(n.newIndex);this.updatePosition(e,t);const i={element:this.context.element,oldIndex:e,newIndex:t};this.emitChanges({moved:i})},computeFutureIndex(n,e){if(!n.element)return 0;const t=[...e.to.children].filter(o=>o.style.display!=="none"),i=t.indexOf(e.related),u=n.component.getVmIndexFromDomIndex(i);return t.indexOf(jc)!==-1||!e.willInsertAfter?u:u+1},onDragMove(n,e){const{move:t,realList:i}=this;if(!t||!i)return!0;const u=this.getRelatedContextFromMoveEvent(n),I=this.computeFutureIndex(u,n),o=ps(Gi({},this.context),{futureIndex:I}),b=ps(Gi({},n),{relatedContext:u,draggedContext:o});return t(b,e)},onDragEnd(){jc=null}}}),oo=A.defineComponent({__name:"FormItem",props:{label:{},name:{},component:{},required:{type:Boolean},props:{},initialValue:{},help:{},labelSuffix:{},children:{},hidden:{type:[Boolean,String]},hideLabel:{type:Boolean},designKey:{},rules:{},class:{},style:{},change:{},dialog:{type:Boolean},width:{}},setup(n){const e=n,t=It(),i=zo(),u=A.reactive({visible:!1,title:""}),I=()=>{u.visible=!0,u.title=e.label},o=A.computed({get(){return ma(t.formValues,e.name)},set(Y){const G=ko(t.formValues,e.name,Y);t.updateFormValues(G)}}),b=A.computed(()=>{const{rules:Y,required:G,component:K}=e,D=[];if(G&&D.push({required:!0,trigger:"blur",message:"Required"}),Y){const E=Y.map(L=>{const{type:_,message:v,trigger:B,customReg:p,templateExp:d}=L,l={message:v,trigger:B};return["email","url"].includes(_)?{...l,type:_}:_==="custom"&&p?{...l,pattern:fm(p)}:Im(_)?{...l,pattern:_}:_==="template"?{...l,validator:()=>d}:{}});return[...D,...E]}if(K==="VerifyCode"){const E={trigger:"blur",message:"验证码错误!",validator:()=>t.vCodePass};return[...D,E]}return D}),y=A.computed(()=>{const Y=i[e.component]||{};return Y.modelName||(Y.modelName="modelValue"),Y}),w=A.computed(()=>{const Y={name:e.name,...e.props};return e.children&&(Y.children=e.children),Y}),M=()=>{if(e.component!=="DragList")return[];const Y=w.value.gridlayout||[],G=w.value.children||[],K=w.value.rowHeight||30;return Y.map((D,E)=>{var L;return{...D,i:(L=G[E])==null?void 0:L.name,rowHeight:K}})},N=A.ref(M()),P=Y=>Y==null?void 0:Y.replace(/ /g," ");return A.onBeforeMount(()=>{if(o.value===void 0&&e.initialValue!==void 0&&!t.design){const Y=ko(t.initialValues,e.name,e.initialValue);t.updateInitialValues(Y),o.value=e.initialValue}}),A.watch(o,(Y,G)=>{const K=e.change,D=ut.isEqual(Y,G);if(!K||D)return;let E=ut.cloneDeep(t.formValues);K.forEach(({target:L,value:_,condition:v})=>{if(v!==!1){if(L.includes(".*.")){const B=L.split(".*."),p=B.pop(),d=B.join("."),l=ma(t.formValues,d);ut.isArray(l)&&(E=ko(E,d,l.map(g=>({...g,[p]:_}))));return}E=ko(E,L,_)}}),t.updateFormValues(E)},{immediate:!0}),(Y,G)=>{var _;const K=A.resolveComponent("el-tooltip"),D=A.resolveComponent("el-dialog"),E=A.resolveComponent("el-button"),L=A.resolveComponent("el-form-item");return A.unref(t).design||!Y.hidden?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[y.value.component==="DragList"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.mergeProps({key:0},w.value,{style:{minWidth:0},gridlayout:N.value,"onUpdate:gridlayout":G[0]||(G[0]=v=>N.value=v)}),null,16,["gridlayout"])):y.value.type==="layout"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.mergeProps({key:1},w.value,{style:{minWidth:0}}),null,16)):y.value.type==="assist"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.normalizeProps(A.mergeProps({key:2},w.value)),null,16)):(A.openBlock(),A.createBlock(L,{class:A.normalizeClass([A.unref(je)("form-item"),e.class,`${Y.component}-${Y.name}`,{readMode:((_=e.props)==null?void 0:_.read)||A.unref(t).schema.read}]),style:A.normalizeStyle(Y.style),key:Y.name,prop:Y.name,"label-width":Y.hideLabel?"0":A.unref(t).schema.labelWidth,rules:b.value},{label:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",{class:A.normalizeClass([A.unref(je)("form-item-label"),Y.label&&`${Y.name}-label`])},[A.createElementVNode("div",{style:A.normalizeStyle(A.unref(t).schema.labelBold&&"font-weight: bold")},A.toDisplayString(P(Y.label)),5),Y.help?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(A.unref(je)("form-item-label-ico"))},[A.createVNode(K,{effect:"dark",content:Y.help},{default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(A.unref(Ie),{name:"help"})])]),_:1},8,["content"])],2)):A.createCommentVNode("",!0),Y.labelSuffix?(A.openBlock(),A.createElementBlock("div",{key:1,class:A.normalizeClass(A.unref(je)("form-item-label-suffix"))},[Y.labelSuffix.component==="Popover"?(A.openBlock(),A.createBlock(mC,A.normalizeProps(A.mergeProps({key:0},A.unref(Rt)(Y.labelSuffix.props,A.unref(t).context))),null,16)):A.createCommentVNode("",!0)],2)):A.createCommentVNode("",!0)],2),[[A.vShow,!Y.hideLabel]])]),default:A.withCtx(()=>[Y.dialog?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[A.createVNode(D,{modelValue:u.visible,"onUpdate:modelValue":G[2]||(G[2]=v=>u.visible=v),title:u.title,width:"70%",center:"","destroy-on-close":""},{default:A.withCtx(()=>[(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.mergeProps({size:A.unref(t).schema.size},w.value,{disabled:A.unref(t).schema.disabled,[y.value.modelName]:o.value,["onUpdate:"+y.value.modelName]:G[1]||(G[1]=v=>o.value=v)}),null,16,["size","disabled"]))]),_:1},8,["modelValue","title"]),A.createVNode(E,{type:"primary",plain:"",onClick:I},{default:A.withCtx(()=>G[4]||(G[4]=[A.createTextVNode("配置")])),_:1})],64)):(A.openBlock(),A.createBlock(A.resolveDynamicComponent(y.value.render),A.mergeProps({key:1,size:A.unref(t).schema.size,disabled:A.unref(t).schema.disabled},A.unref(Rt)(w.value,A.unref(t).context),{[y.value.modelName]:o.value,["onUpdate:"+y.value.modelName]:G[3]||(G[3]=v=>o.value=v)}),null,16,["size","disabled"]))]),_:1},8,["class","style","prop","label-width","rules"]))],64)):A.createCommentVNode("",!0)}}}),Lk={key:0,class:"actions-lt"},Gk={class:"canvas-move",size:"small",type:"primary"},Pk={key:1,class:"hidden-ico"},Hk={key:2,class:"actions-rb"},Kk=["onClick"],Tk={key:3,class:"layout-title"},Uk=A.defineComponent({__name:"CanvasItem",props:{data:{}},setup(n){const e=n,t=Sn(),u=zo()[e.data.component],I=A.computed(()=>{var P;return{[je("canvas-item")]:!0,active:e.data.designKey===((P=t.current)==null?void 0:P.designKey),hover:e.data.designKey===t.hoverKey,mask:e.data.designKey===t.hoverKey&&!e.data.children,collapse:w.value}}),o=()=>{e.data.designKey&&t.updateHoverKey(e.data.designKey)},b=()=>{t.updateHoverKey("")},y=P=>{t.updateCurrent(P),t.rightTab="attr"},w=A.ref(!1),M=()=>{w.value=!w.value},N=[{icon:"copy",handle:P=>{const Y=Gd(t.list,P.designKey);t.updateList(Y)}},{icon:"delete",bg:"var(--el-color-danger)",handle:P=>{const Y=wu(t.list,G=>G.designKey!==P.designKey);t.updateList(Y)}}];return(P,Y)=>{var G,K;return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(I.value),onClick:Y[0]||(Y[0]=A.withModifiers(D=>y(P.data),["stop"])),onMousemove:A.withModifiers(o,["stop"]),onMouseleave:A.withModifiers(b,["stop"])},[P.data.designKey===((G=A.unref(t).current)==null?void 0:G.designKey)?(A.openBlock(),A.createElementBlock("div",Lk,[A.createElementVNode("div",Gk,[A.createVNode(A.unref(Ie),{name:"move"})]),A.createElementVNode("div",{class:"canvas-collapse",size:"small",type:"primary",onClick:M},[A.createVNode(A.unref(Ie),{name:"select"})])])):A.createCommentVNode("",!0),P.data.hidden?(A.openBlock(),A.createElementBlock("div",Pk,[A.createVNode(A.unref(Ie),{name:"hidden"})])):A.createCommentVNode("",!0),P.data.designKey===((K=A.unref(t).current)==null?void 0:K.designKey)?(A.openBlock(),A.createElementBlock("ul",Hk,[(A.openBlock(),A.createElementBlock(A.Fragment,null,A.renderList(N,({icon:D,handle:E,bg:L})=>A.createElementVNode("li",{class:"actions-rb-item",onClick:A.withModifiers(_=>E(P.data),["stop"]),key:D,style:A.normalizeStyle({backgroundColor:L})},[A.createVNode(A.unref(Ie),{name:D},null,8,["name"])],12,Kk)),64))])):A.createCommentVNode("",!0),A.unref(u).lbTitle?(A.openBlock(),A.createElementBlock("div",Tk,A.toDisplayString(A.unref(u).title),1)):A.createCommentVNode("",!0),A.createVNode(oo,A.mergeProps(P.data,{props:P.data.props}),null,16,["props"])],34)}}}),qc=A.defineComponent({__name:"CanvasGroup",props:{list:{},style:{},class:{},emptyText:{default:"请拖入子字段"},emptySize:{default:12}},setup(n){const e=n,t=Sn(),i=u=>{const I=u.item._underlying_vm_;t.updateCurrent(tc(t.list,I.designKey)),t.hoverKey=I.designKey,t.rightTab="attr",t.handleEmit("add",I)};return(u,I)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("canvas-group")),style:A.normalizeStyle({overflow:u.list.length?"auto":"hidden"})},[u.list.length?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(A.unref(je)("canvas-group-empty")),style:A.normalizeStyle({fontSize:u.emptySize+"px"})},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("canvas-group-empty-ico"))},[A.createVNode(A.unref(Ie),{name:"add"})],2),A.createElementVNode("p",null,A.toDisplayString(u.emptyText),1)],6)),A.createVNode(A.unref(kp),{list:u.list,group:"formDesign",itemKey:"name","ghost-class":A.unref(je)("canvas-group-ghost"),class:A.normalizeClass([A.unref(je)("canvas-group-draggable"),e.class]),style:A.normalizeStyle(u.style),animation:300,handle:".canvas-move","force-fallback":"",onAdd:i},{item:A.withCtx(({element:o})=>[o.designKey?(A.openBlock(),A.createBlock(Uk,{key:0,data:o},null,8,["data"])):A.createCommentVNode("",!0)]),_:1},8,["list","ghost-class","class","style"])],6))}}),Yk=typeof window<"u";var _p;Yk&&((_p=window==null?void 0:window.navigator)!=null&&_p.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function In(n){return n==null}function Mp(){}const Ok=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(Ok)));function $k(){const n=new Map;return{on(e,t){const i=n.get(e);i!=null&&i.add(t)||n.set(e,new Set([t]))},off(e,t){const i=n.get(e);i&&i.delete(t)},clear(e){const t=n.get(e);t&&t.clear()},clearAll(){n.clear()},emit(e,...t){const i=n.get(e);i&&i.forEach(u=>{u(...t)})}}}function xp(n,e=16){if(typeof n!="function")return Mp;const t=(...I)=>{n(...I)};if(e<=0)return Sp(t);let i=0,u;return function(...I){const o=Date.now(),b=o-i;clearTimeout(u),b>=e?(i=o,t(...I)):u=setTimeout(()=>{i=Date.now(),t(...I)},Math.max(0,e-b))}}function zk(n,e=100){if(typeof n!="function")return Mp;const t=(...u)=>{n(...u)};if(e<=0)return Sp(t);let i;return function(...u){clearTimeout(i),i=setTimeout(()=>{t(...u)},e)}}function Sp(n){if(typeof n!="function")return n;let e=!1,t,i;return function(...u){return t=u,e||(e=!0,i=Promise.resolve().then(()=>(e=!1,i=void 0,n(...t)))),i}}const Pr=new Set,Np=new WeakMap;function Jk(){Pr.forEach(n=>{n(...Np.get(n))}),Pr.clear()}function jt(n,...e){if(typeof n!="function")return n;Np.set(n,e),!Pr.has(n)&&(Pr.add(n),Pr.size===1&&Promise.resolve().then(Jk))}const Fp=Symbol("LAYOUT_KEY"),Rp=Symbol("EMITTER_KEY");function Zk(n){let e=0,t;for(let i=0,u=n.length;i<u;i++)t=n[i].y+n[i].h,t>e&&(e=t);return e}function Xc(n){const e=Array(n.length);for(let t=0,i=n.length;t<i;t++)e[t]=Wk(n[t]);return e}function Wk(n){return{...n}}function Lp(n,e){return!(n===e||n.x+n.w<=e.x||n.x>=e.x+e.w||n.y+n.h<=e.y||n.y>=e.y+e.h)}function Oo(n,e,t){const i=Hp(n),u=Tp(n),I=Array(n.length);for(let o=0,b=u.length;o<b;o++){let y=u[o];y.static||(y=jk(i,y,e,t),i.push(y)),I[n.findIndex(w=>w.i===y.i)]=y,y.moved=!1}return I}function jk(n,e,t,i){if(t)for(;e.y>0&&!Hr(n,e);)e.y--;else if(i){const I=i[e.i].y;for(;e.y>I&&!Hr(n,e);)e.y--}let u;for(;u=Hr(n,e);)e.y=u.y+u.h;return e}function qk(n,e){const t=Hp(n);for(let i=0,u=n.length;i<u;i++){const I=n[i];if(I.x+I.w>e.cols&&(I.x=e.cols-I.w),I.x<0&&(I.x=0,I.w=e.cols),!I.static)t.push(I);else for(;Hr(t,I);)I.y++}return n}function Gp(n,e){for(let t=0,i=n.length;t<i;t++)if(n[t].i===e)return n[t]}function Hr(n,e){for(let t=0,i=n.length;t<i;t++)if(Lp(n[t],e))return n[t]}function Pp(n,e){return n.filter(t=>Lp(t,e))}function Hp(n){return n.filter(e=>e.static)}function Vc(n,e,t,i,u=!1,I=!1){if(e.static)return n;const o=e.x,b=e.y,y=i&&e.y>i;typeof t=="number"&&(e.x=t),typeof i=="number"&&(e.y=i),e.moved=!0;let w=Tp(n);y&&(w=w.reverse());const M=Pp(w,e);if(I&&M.length)return e.x=o,e.y=b,e.moved=!1,n;for(let N=0,P=M.length;N<P;N++){const Y=M[N];Y.moved||e.y>Y.y&&e.y-Y.y>Y.h/4||(Y.static?n=Kp(n,Y,e,u):n=Kp(n,e,Y,u))}return n}function Kp(n,e,t,i){if(i){const u={x:t.x,y:t.y,w:t.w,h:t.h};if(u.y=Math.max(e.y-t.h,0),!Hr(n,u))return Vc(n,t,void 0,u.y,!1)}return Vc(n,t,void 0,t.y+1,!1)}function Xk(n,e,t,i){const u="translate3d("+e+"px,"+n+"px, 0)";return{transform:u,WebkitTransform:u,MozTransform:u,msTransform:u,OTransform:u,width:t+"px",height:i+"px",position:"absolute"}}function Vk(n,e,t,i){const u="translate3d("+e*-1+"px,"+n+"px, 0)";return{transform:u,WebkitTransform:u,MozTransform:u,msTransform:u,OTransform:u,width:t+"px",height:i+"px",position:"absolute"}}function A_(n,e,t,i){return{top:n+"px",left:e+"px",width:t+"px",height:i+"px",position:"absolute"}}function e_(n,e,t,i){return{top:n+"px",right:e+"px",width:t+"px",height:i+"px",position:"absolute"}}function Tp(n){return Array.from(n).sort(function(e,t){return e.y===t.y&&e.x===t.x?0:e.y>t.y||e.y===t.y&&e.x>t.x?1:-1})}function t_(n,e){e=e||"Layout";const t=["x","y","w","h"],i=[];if(!Array.isArray(n))throw new Error(e+" must be an array!");for(let u=0,I=n.length;u<I;u++){const o=n[u];for(let b=0;b<t.length;b++)if(typeof o[t[b]]!="number")throw new Error("VueGridLayout: "+e+"["+u+"]."+t[b]+" must be a number!");if(o.i===void 0||o.i===null)throw new Error("VueGridLayout: "+e+"["+u+"].i cannot be null!");if(typeof o.i!="number"&&typeof o.i!="string")throw new Error("VueGridLayout: "+e+"["+u+"].i must be a string or number!");if(i.indexOf(o.i)>=0)throw new Error("VueGridLayout: "+e+"["+u+"].i must be unique!");if(i.push(o.i),o.static!==void 0&&typeof o.static!="boolean")throw new Error("VueGridLayout: "+e+"["+u+"].static must be a boolean!")}}function n_(n,e="vgl"){const t=()=>`${e}-${n}`;return{b:t,be:i=>`${t()}__${i}`,bm:i=>`${t()}--${i}`,bem:(i,u)=>`${t()}__${i}--${u}`}}function Up(n){return i_(n)}function i_(n){var e;const t=((e=n.target)==null?void 0:e.offsetParent)||document.body,i=n.offsetParent===document.body?{left:0,top:0}:t.getBoundingClientRect(),u=n.clientX+t.scrollLeft-i.left,I=n.clientY+t.scrollTop-i.top;return{x:u,y:I}}function Yp(n,e,t,i){return o_(n)?{deltaX:t-n,deltaY:i-e,lastX:n,lastY:e,x:t,y:i}:{deltaX:0,deltaY:0,lastX:t,lastY:i,x:t,y:i}}function o_(n){return typeof n=="number"&&!Number.isNaN(n)}function r_(n,e){const t=$p(n);let i=t[0];for(let u=1,I=t.length;u<I;u++){const o=t[u];e>n[o]&&(i=o)}return i}function Op(n,e){if(!e[n])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+n+" is missing!");return e[n]}function a_(n,e,t,i,u,I,o){if(e[i])return Xc(e[i]);let b=n;const y=$p(t),w=y.slice(y.indexOf(i));for(let M=0,N=w.length;M<N;M++){const P=w[M];if(e[P]){b=e[P];break}}return b=Xc(b||[]),Oo(qk(b,{cols:I}),o)}function $p(n){return Object.keys(n).sort((e,t)=>n[e]-n[t])}let s_="auto";function l_(){return typeof document<"u"}function zp(){return l_()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):s_}var Cs={exports:{}};Cs.exports,function(n,e){(function(t,i){n.exports=i()})(vo,function(){function t(R,F){var Z=Object.keys(R);if(Object.getOwnPropertySymbols){var nA=Object.getOwnPropertySymbols(R);F&&(nA=nA.filter(function(lA){return Object.getOwnPropertyDescriptor(R,lA).enumerable})),Z.push.apply(Z,nA)}return Z}function i(R){for(var F=1;F<arguments.length;F++){var Z=arguments[F]!=null?arguments[F]:{};F%2?t(Object(Z),!0).forEach(function(nA){y(R,nA,Z[nA])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(Z)):t(Object(Z)).forEach(function(nA){Object.defineProperty(R,nA,Object.getOwnPropertyDescriptor(Z,nA))})}return R}function u(R){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},u(R)}function I(R,F){if(!(R instanceof F))throw new TypeError("Cannot call a class as a function")}function o(R,F){for(var Z=0;Z<F.length;Z++){var nA=F[Z];nA.enumerable=nA.enumerable||!1,nA.configurable=!0,"value"in nA&&(nA.writable=!0),Object.defineProperty(R,K(nA.key),nA)}}function b(R,F,Z){return F&&o(R.prototype,F),Object.defineProperty(R,"prototype",{writable:!1}),R}function y(R,F,Z){return(F=K(F))in R?Object.defineProperty(R,F,{value:Z,enumerable:!0,configurable:!0,writable:!0}):R[F]=Z,R}function w(R,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(F&&F.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),F&&N(R,F)}function M(R){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},M(R)}function N(R,F){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,nA){return Z.__proto__=nA,Z},N(R,F)}function P(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function Y(R){var F=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Z,nA=M(R);if(F){var lA=M(this).constructor;Z=Reflect.construct(nA,arguments,lA)}else Z=nA.apply(this,arguments);return function(hA,mA){if(mA&&(typeof mA=="object"||typeof mA=="function"))return mA;if(mA!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P(hA)}(this,Z)}}function G(){return G=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(R,F,Z){var nA=function(hA,mA){for(;!Object.prototype.hasOwnProperty.call(hA,mA)&&(hA=M(hA))!==null;);return hA}(R,F);if(nA){var lA=Object.getOwnPropertyDescriptor(nA,F);return lA.get?lA.get.call(arguments.length<3?R:Z):lA.value}},G.apply(this,arguments)}function K(R){var F=function(Z,nA){if(typeof Z!="object"||Z===null)return Z;var lA=Z[Symbol.toPrimitive];if(lA!==void 0){var hA=lA.call(Z,nA);if(typeof hA!="object")return hA;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}(R,"string");return typeof F=="symbol"?F:F+""}var D=function(R){return!(!R||!R.Window)&&R instanceof R.Window},E=void 0,L=void 0;function _(R){E=R;var F=R.document.createTextNode("");F.ownerDocument!==R.document&&typeof R.wrap=="function"&&R.wrap(F)===F&&(R=R.wrap(R)),L=R}function v(R){return D(R)?R:(R.ownerDocument||R).defaultView||L.window}typeof window<"u"&&window&&_(window);var B=function(R){return!!R&&u(R)==="object"},p=function(R){return typeof R=="function"},d={window:function(R){return R===L||D(R)},docFrag:function(R){return B(R)&&R.nodeType===11},object:B,func:p,number:function(R){return typeof R=="number"},bool:function(R){return typeof R=="boolean"},string:function(R){return typeof R=="string"},element:function(R){if(!R||u(R)!=="object")return!1;var F=v(R)||L;return/object|function/.test(typeof Element>"u"?"undefined":u(Element))?R instanceof Element||R instanceof F.Element:R.nodeType===1&&typeof R.nodeName=="string"},plainObject:function(R){return B(R)&&!!R.constructor&&/function Object\b/.test(R.constructor.toString())},array:function(R){return B(R)&&R.length!==void 0&&p(R.splice)}};function l(R){var F=R.interaction;if(F.prepared.name==="drag"){var Z=F.prepared.axis;Z==="x"?(F.coords.cur.page.y=F.coords.start.page.y,F.coords.cur.client.y=F.coords.start.client.y,F.coords.velocity.client.y=0,F.coords.velocity.page.y=0):Z==="y"&&(F.coords.cur.page.x=F.coords.start.page.x,F.coords.cur.client.x=F.coords.start.client.x,F.coords.velocity.client.x=0,F.coords.velocity.page.x=0)}}function g(R){var F=R.iEvent,Z=R.interaction;if(Z.prepared.name==="drag"){var nA=Z.prepared.axis;if(nA==="x"||nA==="y"){var lA=nA==="x"?"y":"x";F.page[lA]=Z.coords.start.page[lA],F.client[lA]=Z.coords.start.client[lA],F.delta[lA]=0}}}var s={id:"actions/drag",install:function(R){var F=R.actions,Z=R.Interactable,nA=R.defaults;Z.prototype.draggable=s.draggable,F.map.drag=s,F.methodDict.drag="draggable",nA.actions.drag=s.defaults},listeners:{"interactions:before-action-move":l,"interactions:action-resume":l,"interactions:action-move":g,"auto-start:check":function(R){var F=R.interaction,Z=R.interactable,nA=R.buttons,lA=Z.options.drag;if(lA&&lA.enabled&&(!F.pointerIsDown||!/mouse|pointer/.test(F.pointerType)||nA&Z.options.drag.mouseButtons))return R.action={name:"drag",axis:lA.lockAxis==="start"?lA.startAxis:lA.lockAxis},!1}},draggable:function(R){return d.object(R)?(this.options.drag.enabled=R.enabled!==!1,this.setPerAction("drag",R),this.setOnEvents("drag",R),/^(xy|x|y|start)$/.test(R.lockAxis)&&(this.options.drag.lockAxis=R.lockAxis),/^(xy|x|y)$/.test(R.startAxis)&&(this.options.drag.startAxis=R.startAxis),this):d.bool(R)?(this.options.drag.enabled=R,this):this.options.drag},beforeMove:l,move:g,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(R){return R.search("drag")===0}},h=s,C={init:function(R){var F=R;C.document=F.document,C.DocumentFragment=F.DocumentFragment||a,C.SVGElement=F.SVGElement||a,C.SVGSVGElement=F.SVGSVGElement||a,C.SVGElementInstance=F.SVGElementInstance||a,C.Element=F.Element||a,C.HTMLElement=F.HTMLElement||C.Element,C.Event=F.Event,C.Touch=F.Touch||a,C.PointerEvent=F.PointerEvent||F.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function a(){}var r=C,m={init:function(R){var F=r.Element,Z=R.navigator||{};m.supportsTouch="ontouchstart"in R||d.func(R.DocumentTouch)&&r.document instanceof R.DocumentTouch,m.supportsPointerEvent=Z.pointerEnabled!==!1&&!!r.PointerEvent,m.isIOS=/iP(hone|od|ad)/.test(Z.platform),m.isIOS7=/iP(hone|od|ad)/.test(Z.platform)&&/OS 7[^\d]/.test(Z.appVersion),m.isIe9=/MSIE 9/.test(Z.userAgent),m.isOperaMobile=Z.appName==="Opera"&&m.supportsTouch&&/Presto/.test(Z.userAgent),m.prefixedMatchesSelector="matches"in F.prototype?"matches":"webkitMatchesSelector"in F.prototype?"webkitMatchesSelector":"mozMatchesSelector"in F.prototype?"mozMatchesSelector":"oMatchesSelector"in F.prototype?"oMatchesSelector":"msMatchesSelector",m.pEventTypes=m.supportsPointerEvent?r.PointerEvent===R.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,m.wheelEvent=r.document&&"onmousewheel"in r.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Q=m;function x(R,F){if(R.contains)return R.contains(F);for(;F;){if(F===R)return!0;F=F.parentNode}return!1}function S(R,F){for(;d.element(R);){if($(R,F))return R;R=T(R)}return null}function T(R){var F=R.parentNode;if(d.docFrag(F)){for(;(F=F.host)&&d.docFrag(F););return F}return F}function $(R,F){return L!==E&&(F=F.replace(/\/deep\//g," ")),R[Q.prefixedMatchesSelector](F)}var eA=function(R){return R.parentNode||R.host};function W(R,F){for(var Z,nA=[],lA=R;(Z=eA(lA))&&lA!==F&&Z!==lA.ownerDocument;)nA.unshift(lA),lA=Z;return nA}function J(R,F,Z){for(;d.element(R);){if($(R,F))return!0;if((R=T(R))===Z)return $(R,F)}return!1}function O(R){return R.correspondingUseElement||R}function q(R){var F=R instanceof r.SVGElement?R.getBoundingClientRect():R.getClientRects()[0];return F&&{left:F.left,right:F.right,top:F.top,bottom:F.bottom,width:F.width||F.right-F.left,height:F.height||F.bottom-F.top}}function k(R){var F,Z=q(R);if(!Q.isIOS7&&Z){var nA={x:(F=(F=v(R))||L).scrollX||F.document.documentElement.scrollLeft,y:F.scrollY||F.document.documentElement.scrollTop};Z.left+=nA.x,Z.right+=nA.x,Z.top+=nA.y,Z.bottom+=nA.y}return Z}function V(R){for(var F=[];R;)F.push(R),R=T(R);return F}function H(R){return!!d.string(R)&&(r.document.querySelector(R),!0)}function AA(R,F){for(var Z in F)R[Z]=F[Z];return R}function sA(R,F,Z){return R==="parent"?T(Z):R==="self"?F.getRect(Z):S(Z,R)}function oA(R,F,Z,nA){var lA=R;return d.string(lA)?lA=sA(lA,F,Z):d.func(lA)&&(lA=lA.apply(void 0,nA)),d.element(lA)&&(lA=k(lA)),lA}function dA(R){return R&&{x:"x"in R?R.x:R.left,y:"y"in R?R.y:R.top}}function EA(R){return!R||"x"in R&&"y"in R||((R=AA({},R)).x=R.left||0,R.y=R.top||0,R.width=R.width||(R.right||0)-R.x,R.height=R.height||(R.bottom||0)-R.y),R}function uA(R,F,Z){R.left&&(F.left+=Z.x),R.right&&(F.right+=Z.x),R.top&&(F.top+=Z.y),R.bottom&&(F.bottom+=Z.y),F.width=F.right-F.left,F.height=F.bottom-F.top}function BA(R,F,Z){var nA=Z&&R.options[Z];return dA(oA(nA&&nA.origin||R.options.origin,R,F,[R&&F]))||{x:0,y:0}}function j(R,F){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(yA){return!0},nA=arguments.length>3?arguments[3]:void 0;if(nA=nA||{},d.string(R)&&R.search(" ")!==-1&&(R=tA(R)),d.array(R))return R.forEach(function(yA){return j(yA,F,Z,nA)}),nA;if(d.object(R)&&(F=R,R=""),d.func(F)&&Z(R))nA[R]=nA[R]||[],nA[R].push(F);else if(d.array(F))for(var lA=0,hA=F;lA<hA.length;lA++){var mA=hA[lA];j(R,mA,Z,nA)}else if(d.object(F))for(var IA in F)j(tA(IA).map(function(yA){return"".concat(R).concat(yA)}),F[IA],Z,nA);return nA}function tA(R){return R.trim().split(/ +/)}var rA=function(R,F){return Math.sqrt(R*R+F*F)},gA=["webkit","moz"];function z(R,F){R.__set||(R.__set={});var Z=function(lA){if(gA.some(function(hA){return lA.indexOf(hA)===0}))return 1;typeof R[lA]!="function"&&lA!=="__set"&&Object.defineProperty(R,lA,{get:function(){return lA in R.__set?R.__set[lA]:R.__set[lA]=F[lA]},set:function(hA){R.__set[lA]=hA},configurable:!0})};for(var nA in F)Z(nA);return R}function X(R,F){R.page=R.page||{},R.page.x=F.page.x,R.page.y=F.page.y,R.client=R.client||{},R.client.x=F.client.x,R.client.y=F.client.y,R.timeStamp=F.timeStamp}function iA(R){R.page.x=0,R.page.y=0,R.client.x=0,R.client.y=0}function cA(R){return R instanceof r.Event||R instanceof r.Touch}function CA(R,F,Z){return R=R||"page",(Z=Z||{}).x=F[R+"X"],Z.y=F[R+"Y"],Z}function vA(R,F){return F=F||{x:0,y:0},Q.isOperaMobile&&cA(R)?(CA("screen",R,F),F.x+=window.scrollX,F.y+=window.scrollY):CA("page",R,F),F}function GA(R){return d.number(R.pointerId)?R.pointerId:R.identifier}function JA(R,F,Z){var nA=F.length>1?WA(F):F[0];vA(nA,R.page),function(lA,hA){hA=hA||{},Q.isOperaMobile&&cA(lA)?CA("screen",lA,hA):CA("client",lA,hA)}(nA,R.client),R.timeStamp=Z}function qA(R){var F=[];return d.array(R)?(F[0]=R[0],F[1]=R[1]):R.type==="touchend"?R.touches.length===1?(F[0]=R.touches[0],F[1]=R.changedTouches[0]):R.touches.length===0&&(F[0]=R.changedTouches[0],F[1]=R.changedTouches[1]):(F[0]=R.touches[0],F[1]=R.touches[1]),F}function WA(R){for(var F={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},Z=0;Z<R.length;Z++){var nA=R[Z];for(var lA in F)F[lA]+=nA[lA]}for(var hA in F)F[hA]/=R.length;return F}function ue(R){if(!R.length)return null;var F=qA(R),Z=Math.min(F[0].pageX,F[1].pageX),nA=Math.min(F[0].pageY,F[1].pageY),lA=Math.max(F[0].pageX,F[1].pageX),hA=Math.max(F[0].pageY,F[1].pageY);return{x:Z,y:nA,left:Z,top:nA,right:lA,bottom:hA,width:lA-Z,height:hA-nA}}function te(R,F){var Z=F+"X",nA=F+"Y",lA=qA(R),hA=lA[0][Z]-lA[1][Z],mA=lA[0][nA]-lA[1][nA];return rA(hA,mA)}function LA(R,F){var Z=F+"X",nA=F+"Y",lA=qA(R),hA=lA[1][Z]-lA[0][Z],mA=lA[1][nA]-lA[0][nA];return 180*Math.atan2(mA,hA)/Math.PI}function SA(R){return d.string(R.pointerType)?R.pointerType:d.number(R.pointerType)?[void 0,void 0,"touch","pen","mouse"][R.pointerType]:/touch/.test(R.type||"")||R instanceof r.Touch?"touch":"mouse"}function ZA(R){var F=d.func(R.composedPath)?R.composedPath():R.path;return[O(F?F[0]:R.target),O(R.currentTarget)]}var Be=function(){function R(F){I(this,R),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=F}return b(R,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),R}();Object.defineProperty(Be.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var De=function(R,F){for(var Z=0;Z<F.length;Z++){var nA=F[Z];R.push(nA)}return R},Se=function(R){return De([],R)},YA=function(R,F){for(var Z=0;Z<R.length;Z++)if(F(R[Z],Z,R))return Z;return-1},$A=function(R,F){return R[YA(R,F)]},XA=function(R){w(Z,R);var F=Y(Z);function Z(nA,lA,hA){var mA;I(this,Z),(mA=F.call(this,lA._interaction)).dropzone=void 0,mA.dragEvent=void 0,mA.relatedTarget=void 0,mA.draggable=void 0,mA.propagationStopped=!1,mA.immediatePropagationStopped=!1;var IA=hA==="dragleave"?nA.prev:nA.cur,yA=IA.element,xA=IA.dropzone;return mA.type=hA,mA.target=yA,mA.currentTarget=yA,mA.dropzone=xA,mA.dragEvent=lA,mA.relatedTarget=lA.target,mA.draggable=lA.interactable,mA.timeStamp=lA.timeStamp,mA}return b(Z,[{key:"reject",value:function(){var nA=this,lA=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&lA.cur.dropzone===this.dropzone&&lA.cur.element===this.target)if(lA.prev.dropzone=this.dropzone,lA.prev.element=this.target,lA.rejected=!0,lA.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var hA=lA.activeDrops,mA=YA(hA,function(yA){var xA=yA.dropzone,DA=yA.element;return xA===nA.dropzone&&DA===nA.target});lA.activeDrops.splice(mA,1);var IA=new Z(lA,this.dragEvent,"dropdeactivate");IA.dropzone=this.dropzone,IA.target=this.target,this.dropzone.fire(IA)}else this.dropzone.fire(new Z(lA,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),Z}(Be);function he(R,F){for(var Z=0,nA=R.slice();Z<nA.length;Z++){var lA=nA[Z],hA=lA.dropzone,mA=lA.element;F.dropzone=hA,F.target=mA,hA.fire(F),F.propagationStopped=F.immediatePropagationStopped=!1}}function ce(R,F){for(var Z=function(hA,mA){for(var IA=[],yA=0,xA=hA.interactables.list;yA<xA.length;yA++){var DA=xA[yA];if(DA.options.drop.enabled){var PA=DA.options.drop.accept;if(!(d.element(PA)&&PA!==mA||d.string(PA)&&!$(mA,PA)||d.func(PA)&&!PA({dropzone:DA,draggableElement:mA})))for(var jA=0,le=DA.getAllElements();jA<le.length;jA++){var ae=le[jA];ae!==mA&&IA.push({dropzone:DA,element:ae,rect:DA.getRect(ae)})}}}return IA}(R,F),nA=0;nA<Z.length;nA++){var lA=Z[nA];lA.rect=lA.dropzone.getRect(lA.element)}return Z}function Ee(R,F,Z){for(var nA=R.dropState,lA=R.interactable,hA=R.element,mA=[],IA=0,yA=nA.activeDrops;IA<yA.length;IA++){var xA=yA[IA],DA=xA.dropzone,PA=xA.element,jA=xA.rect,le=DA.dropCheck(F,Z,lA,hA,PA,jA);mA.push(le?PA:null)}var ae=function(de){for(var ye,Qe,kA,UA=[],HA=0;HA<de.length;HA++){var VA=de[HA],Ce=de[ye];if(VA&&HA!==ye)if(Ce){var He=eA(VA),Ke=eA(Ce);if(He!==VA.ownerDocument)if(Ke!==VA.ownerDocument)if(He!==Ke){UA=UA.length?UA:W(Ce);var Oe=void 0;if(Ce instanceof r.HTMLElement&&VA instanceof r.SVGElement&&!(VA instanceof r.SVGSVGElement)){if(VA===Ke)continue;Oe=VA.ownerSVGElement}else Oe=VA;for(var on=W(Oe,Ce.ownerDocument),zn=0;on[zn]&&on[zn]===UA[zn];)zn++;var Ut=[on[zn-1],on[zn],UA[zn]];if(Ut[0])for(var ri=Ut[0].lastChild;ri;){if(ri===Ut[1]){ye=HA,UA=on;break}if(ri===Ut[2])break;ri=ri.previousSibling}}else kA=Ce,(parseInt(v(Qe=VA).getComputedStyle(Qe).zIndex,10)||0)>=(parseInt(v(kA).getComputedStyle(kA).zIndex,10)||0)&&(ye=HA);else ye=HA}else ye=HA}return ye}(mA);return nA.activeDrops[ae]||null}function ke(R,F,Z){var nA=R.dropState,lA={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return Z.type==="dragstart"&&(lA.activate=new XA(nA,Z,"dropactivate"),lA.activate.target=null,lA.activate.dropzone=null),Z.type==="dragend"&&(lA.deactivate=new XA(nA,Z,"dropdeactivate"),lA.deactivate.target=null,lA.deactivate.dropzone=null),nA.rejected||(nA.cur.element!==nA.prev.element&&(nA.prev.dropzone&&(lA.leave=new XA(nA,Z,"dragleave"),Z.dragLeave=lA.leave.target=nA.prev.element,Z.prevDropzone=lA.leave.dropzone=nA.prev.dropzone),nA.cur.dropzone&&(lA.enter=new XA(nA,Z,"dragenter"),Z.dragEnter=nA.cur.element,Z.dropzone=nA.cur.dropzone)),Z.type==="dragend"&&nA.cur.dropzone&&(lA.drop=new XA(nA,Z,"drop"),Z.dropzone=nA.cur.dropzone,Z.relatedTarget=nA.cur.element),Z.type==="dragmove"&&nA.cur.dropzone&&(lA.move=new XA(nA,Z,"dropmove"),Z.dropzone=nA.cur.dropzone)),lA}function wA(R,F){var Z=R.dropState,nA=Z.activeDrops,lA=Z.cur,hA=Z.prev;F.leave&&hA.dropzone.fire(F.leave),F.enter&&lA.dropzone.fire(F.enter),F.move&&lA.dropzone.fire(F.move),F.drop&&lA.dropzone.fire(F.drop),F.deactivate&&he(nA,F.deactivate),Z.prev.dropzone=lA.dropzone,Z.prev.element=lA.element}function NA(R,F){var Z=R.interaction,nA=R.iEvent,lA=R.event;if(nA.type==="dragmove"||nA.type==="dragend"){var hA=Z.dropState;F.dynamicDrop&&(hA.activeDrops=ce(F,Z.element));var mA=nA,IA=Ee(Z,mA,lA);hA.rejected=hA.rejected&&!!IA&&IA.dropzone===hA.cur.dropzone&&IA.element===hA.cur.element,hA.cur.dropzone=IA&&IA.dropzone,hA.cur.element=IA&&IA.element,hA.events=ke(Z,0,mA)}}var KA={id:"actions/drop",install:function(R){var F=R.actions,Z=R.interactStatic,nA=R.Interactable,lA=R.defaults;R.usePlugin(h),nA.prototype.dropzone=function(hA){return function(mA,IA){if(d.object(IA)){if(mA.options.drop.enabled=IA.enabled!==!1,IA.listeners){var yA=j(IA.listeners),xA=Object.keys(yA).reduce(function(PA,jA){return PA[/^(enter|leave)/.test(jA)?"drag".concat(jA):/^(activate|deactivate|move)/.test(jA)?"drop".concat(jA):jA]=yA[jA],PA},{}),DA=mA.options.drop.listeners;DA&&mA.off(DA),mA.on(xA),mA.options.drop.listeners=xA}return d.func(IA.ondrop)&&mA.on("drop",IA.ondrop),d.func(IA.ondropactivate)&&mA.on("dropactivate",IA.ondropactivate),d.func(IA.ondropdeactivate)&&mA.on("dropdeactivate",IA.ondropdeactivate),d.func(IA.ondragenter)&&mA.on("dragenter",IA.ondragenter),d.func(IA.ondragleave)&&mA.on("dragleave",IA.ondragleave),d.func(IA.ondropmove)&&mA.on("dropmove",IA.ondropmove),/^(pointer|center)$/.test(IA.overlap)?mA.options.drop.overlap=IA.overlap:d.number(IA.overlap)&&(mA.options.drop.overlap=Math.max(Math.min(1,IA.overlap),0)),"accept"in IA&&(mA.options.drop.accept=IA.accept),"checker"in IA&&(mA.options.drop.checker=IA.checker),mA}return d.bool(IA)?(mA.options.drop.enabled=IA,mA):mA.options.drop}(this,hA)},nA.prototype.dropCheck=function(hA,mA,IA,yA,xA,DA){return function(PA,jA,le,ae,de,ye,Qe){var kA=!1;if(!(Qe=Qe||PA.getRect(ye)))return!!PA.options.drop.checker&&PA.options.drop.checker(jA,le,kA,PA,ye,ae,de);var UA=PA.options.drop.overlap;if(UA==="pointer"){var HA=BA(ae,de,"drag"),VA=vA(jA);VA.x+=HA.x,VA.y+=HA.y;var Ce=VA.x>Qe.left&&VA.x<Qe.right,He=VA.y>Qe.top&&VA.y<Qe.bottom;kA=Ce&&He}var Ke=ae.getRect(de);if(Ke&&UA==="center"){var Oe=Ke.left+Ke.width/2,on=Ke.top+Ke.height/2;kA=Oe>=Qe.left&&Oe<=Qe.right&&on>=Qe.top&&on<=Qe.bottom}return Ke&&d.number(UA)&&(kA=Math.max(0,Math.min(Qe.right,Ke.right)-Math.max(Qe.left,Ke.left))*Math.max(0,Math.min(Qe.bottom,Ke.bottom)-Math.max(Qe.top,Ke.top))/(Ke.width*Ke.height)>=UA),PA.options.drop.checker&&(kA=PA.options.drop.checker(jA,le,kA,PA,ye,ae,de)),kA}(this,hA,mA,IA,yA,xA,DA)},Z.dynamicDrop=function(hA){return d.bool(hA)?(R.dynamicDrop=hA,Z):R.dynamicDrop},AA(F.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),F.methodDict.drop="dropzone",R.dynamicDrop=!1,lA.actions.drop=KA.defaults},listeners:{"interactions:before-action-start":function(R){var F=R.interaction;F.prepared.name==="drag"&&(F.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(R,F){var Z=R.interaction,nA=(R.event,R.iEvent);if(Z.prepared.name==="drag"){var lA=Z.dropState;lA.activeDrops=[],lA.events={},lA.activeDrops=ce(F,Z.element),lA.events=ke(Z,0,nA),lA.events.activate&&(he(lA.activeDrops,lA.events.activate),F.fire("actions/drop:start",{interaction:Z,dragEvent:nA}))}},"interactions:action-move":NA,"interactions:after-action-move":function(R,F){var Z=R.interaction,nA=R.iEvent;if(Z.prepared.name==="drag"){var lA=Z.dropState;wA(Z,lA.events),F.fire("actions/drop:move",{interaction:Z,dragEvent:nA}),lA.events={}}},"interactions:action-end":function(R,F){if(R.interaction.prepared.name==="drag"){var Z=R.interaction,nA=R.iEvent;NA(R,F),wA(Z,Z.dropState.events),F.fire("actions/drop:end",{interaction:Z,dragEvent:nA})}},"interactions:stop":function(R){var F=R.interaction;if(F.prepared.name==="drag"){var Z=F.dropState;Z&&(Z.activeDrops=null,Z.events=null,Z.cur.dropzone=null,Z.cur.element=null,Z.prev.dropzone=null,Z.prev.element=null,Z.rejected=!1)}}},getActiveDrops:ce,getDrop:Ee,getDropEvents:ke,fireDropEvents:wA,filterEventType:function(R){return R.search("drag")===0||R.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},oe=KA;function be(R){var F=R.interaction,Z=R.iEvent,nA=R.phase;if(F.prepared.name==="gesture"){var lA=F.pointers.map(function(xA){return xA.pointer}),hA=nA==="start",mA=nA==="end",IA=F.interactable.options.deltaSource;if(Z.touches=[lA[0],lA[1]],hA)Z.distance=te(lA,IA),Z.box=ue(lA),Z.scale=1,Z.ds=0,Z.angle=LA(lA,IA),Z.da=0,F.gesture.startDistance=Z.distance,F.gesture.startAngle=Z.angle;else if(mA||F.pointers.length<2){var yA=F.prevEvent;Z.distance=yA.distance,Z.box=yA.box,Z.scale=yA.scale,Z.ds=0,Z.angle=yA.angle,Z.da=0}else Z.distance=te(lA,IA),Z.box=ue(lA),Z.scale=Z.distance/F.gesture.startDistance,Z.angle=LA(lA,IA),Z.ds=Z.scale-F.gesture.scale,Z.da=Z.angle-F.gesture.angle;F.gesture.distance=Z.distance,F.gesture.angle=Z.angle,d.number(Z.scale)&&Z.scale!==1/0&&!isNaN(Z.scale)&&(F.gesture.scale=Z.scale)}}var re={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(R){var F=R.actions,Z=R.Interactable,nA=R.defaults;Z.prototype.gesturable=function(lA){return d.object(lA)?(this.options.gesture.enabled=lA.enabled!==!1,this.setPerAction("gesture",lA),this.setOnEvents("gesture",lA),this):d.bool(lA)?(this.options.gesture.enabled=lA,this):this.options.gesture},F.map.gesture=re,F.methodDict.gesture="gesturable",nA.actions.gesture=re.defaults},listeners:{"interactions:action-start":be,"interactions:action-move":be,"interactions:action-end":be,"interactions:new":function(R){R.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(R){if(!(R.interaction.pointers.length<2)){var F=R.interactable.options.gesture;if(F&&F.enabled)return R.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(R){return R.search("gesture")===0}},ge=re;function Me(R,F,Z,nA,lA,hA,mA){if(!F)return!1;if(F===!0){var IA=d.number(hA.width)?hA.width:hA.right-hA.left,yA=d.number(hA.height)?hA.height:hA.bottom-hA.top;if(mA=Math.min(mA,Math.abs((R==="left"||R==="right"?IA:yA)/2)),IA<0&&(R==="left"?R="right":R==="right"&&(R="left")),yA<0&&(R==="top"?R="bottom":R==="bottom"&&(R="top")),R==="left"){var xA=IA>=0?hA.left:hA.right;return Z.x<xA+mA}if(R==="top"){var DA=yA>=0?hA.top:hA.bottom;return Z.y<DA+mA}if(R==="right")return Z.x>(IA>=0?hA.right:hA.left)-mA;if(R==="bottom")return Z.y>(yA>=0?hA.bottom:hA.top)-mA}return!!d.element(nA)&&(d.element(F)?F===nA:J(nA,F,lA))}function tt(R){var F=R.iEvent,Z=R.interaction;if(Z.prepared.name==="resize"&&Z.resizeAxes){var nA=F;Z.interactable.options.resize.square?(Z.resizeAxes==="y"?nA.delta.x=nA.delta.y:nA.delta.y=nA.delta.x,nA.axes="xy"):(nA.axes=Z.resizeAxes,Z.resizeAxes==="x"?nA.delta.y=0:Z.resizeAxes==="y"&&(nA.delta.x=0))}}var lt,MA,bA={id:"actions/resize",before:["actions/drag"],install:function(R){var F=R.actions,Z=R.browser,nA=R.Interactable,lA=R.defaults;bA.cursors=function(hA){return hA.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(Z),bA.defaultMargin=Z.supportsTouch||Z.supportsPointerEvent?20:10,nA.prototype.resizable=function(hA){return function(mA,IA,yA){return d.object(IA)?(mA.options.resize.enabled=IA.enabled!==!1,mA.setPerAction("resize",IA),mA.setOnEvents("resize",IA),d.string(IA.axis)&&/^x$|^y$|^xy$/.test(IA.axis)?mA.options.resize.axis=IA.axis:IA.axis===null&&(mA.options.resize.axis=yA.defaults.actions.resize.axis),d.bool(IA.preserveAspectRatio)?mA.options.resize.preserveAspectRatio=IA.preserveAspectRatio:d.bool(IA.square)&&(mA.options.resize.square=IA.square),mA):d.bool(IA)?(mA.options.resize.enabled=IA,mA):mA.options.resize}(this,hA,R)},F.map.resize=bA,F.methodDict.resize="resizable",lA.actions.resize=bA.defaults},listeners:{"interactions:new":function(R){R.interaction.resizeAxes="xy"},"interactions:action-start":function(R){(function(F){var Z=F.iEvent,nA=F.interaction;if(nA.prepared.name==="resize"&&nA.prepared.edges){var lA=Z,hA=nA.rect;nA._rects={start:AA({},hA),corrected:AA({},hA),previous:AA({},hA),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},lA.edges=nA.prepared.edges,lA.rect=nA._rects.corrected,lA.deltaRect=nA._rects.delta}})(R),tt(R)},"interactions:action-move":function(R){(function(F){var Z=F.iEvent,nA=F.interaction;if(nA.prepared.name==="resize"&&nA.prepared.edges){var lA=Z,hA=nA.interactable.options.resize.invert,mA=hA==="reposition"||hA==="negate",IA=nA.rect,yA=nA._rects,xA=yA.start,DA=yA.corrected,PA=yA.delta,jA=yA.previous;if(AA(jA,DA),mA){if(AA(DA,IA),hA==="reposition"){if(DA.top>DA.bottom){var le=DA.top;DA.top=DA.bottom,DA.bottom=le}if(DA.left>DA.right){var ae=DA.left;DA.left=DA.right,DA.right=ae}}}else DA.top=Math.min(IA.top,xA.bottom),DA.bottom=Math.max(IA.bottom,xA.top),DA.left=Math.min(IA.left,xA.right),DA.right=Math.max(IA.right,xA.left);for(var de in DA.width=DA.right-DA.left,DA.height=DA.bottom-DA.top,DA)PA[de]=DA[de]-jA[de];lA.edges=nA.prepared.edges,lA.rect=DA,lA.deltaRect=PA}})(R),tt(R)},"interactions:action-end":function(R){var F=R.iEvent,Z=R.interaction;if(Z.prepared.name==="resize"&&Z.prepared.edges){var nA=F;nA.edges=Z.prepared.edges,nA.rect=Z._rects.corrected,nA.deltaRect=Z._rects.delta}},"auto-start:check":function(R){var F=R.interaction,Z=R.interactable,nA=R.element,lA=R.rect,hA=R.buttons;if(lA){var mA=AA({},F.coords.cur.page),IA=Z.options.resize;if(IA&&IA.enabled&&(!F.pointerIsDown||!/mouse|pointer/.test(F.pointerType)||hA&IA.mouseButtons)){if(d.object(IA.edges)){var yA={left:!1,right:!1,top:!1,bottom:!1};for(var xA in yA)yA[xA]=Me(xA,IA.edges[xA],mA,F._latestPointer.eventTarget,nA,lA,IA.margin||bA.defaultMargin);yA.left=yA.left&&!yA.right,yA.top=yA.top&&!yA.bottom,(yA.left||yA.right||yA.top||yA.bottom)&&(R.action={name:"resize",edges:yA})}else{var DA=IA.axis!=="y"&&mA.x>lA.right-bA.defaultMargin,PA=IA.axis!=="x"&&mA.y>lA.bottom-bA.defaultMargin;(DA||PA)&&(R.action={name:"resize",axes:(DA?"x":"")+(PA?"y":"")})}return!R.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(R){var F=R.edges,Z=R.axis,nA=R.name,lA=bA.cursors,hA=null;if(Z)hA=lA[nA+Z];else if(F){for(var mA="",IA=0,yA=["top","bottom","left","right"];IA<yA.length;IA++){var xA=yA[IA];F[xA]&&(mA+=xA)}hA=lA[mA]}return hA},filterEventType:function(R){return R.search("resize")===0},defaultMargin:null},RA=bA,zA={id:"actions",install:function(R){R.usePlugin(ge),R.usePlugin(RA),R.usePlugin(h),R.usePlugin(oe)}},OA=0,fe={request:function(R){return lt(R)},cancel:function(R){return MA(R)},init:function(R){if(lt=R.requestAnimationFrame,MA=R.cancelAnimationFrame,!lt)for(var F=["ms","moz","webkit","o"],Z=0;Z<F.length;Z++){var nA=F[Z];lt=R["".concat(nA,"RequestAnimationFrame")],MA=R["".concat(nA,"CancelAnimationFrame")]||R["".concat(nA,"CancelRequestAnimationFrame")]}lt=lt&<.bind(R),MA=MA&&MA.bind(R),lt||(lt=function(lA){var hA=Date.now(),mA=Math.max(0,16-(hA-OA)),IA=R.setTimeout(function(){lA(hA+mA)},mA);return OA=hA+mA,IA},MA=function(lA){return clearTimeout(lA)})}},ne={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(R){ne.isScrolling=!0,fe.cancel(ne.i),R.autoScroll=ne,ne.interaction=R,ne.prevTime=ne.now(),ne.i=fe.request(ne.scroll)},stop:function(){ne.isScrolling=!1,ne.interaction&&(ne.interaction.autoScroll=null),fe.cancel(ne.i)},scroll:function(){var R=ne.interaction,F=R.interactable,Z=R.element,nA=R.prepared.name,lA=F.options[nA].autoScroll,hA=_e(lA.container,F,Z),mA=ne.now(),IA=(mA-ne.prevTime)/1e3,yA=lA.speed*IA;if(yA>=1){var xA={x:ne.x*yA,y:ne.y*yA};if(xA.x||xA.y){var DA=qe(hA);d.window(hA)?hA.scrollBy(xA.x,xA.y):hA&&(hA.scrollLeft+=xA.x,hA.scrollTop+=xA.y);var PA=qe(hA),jA={x:PA.x-DA.x,y:PA.y-DA.y};(jA.x||jA.y)&&F.fire({type:"autoscroll",target:Z,interactable:F,delta:jA,interaction:R,container:hA})}ne.prevTime=mA}ne.isScrolling&&(fe.cancel(ne.i),ne.i=fe.request(ne.scroll))},check:function(R,F){var Z;return(Z=R.options[F].autoScroll)==null?void 0:Z.enabled},onInteractionMove:function(R){var F=R.interaction,Z=R.pointer;if(F.interacting()&&ne.check(F.interactable,F.prepared.name))if(F.simulation)ne.x=ne.y=0;else{var nA,lA,hA,mA,IA=F.interactable,yA=F.element,xA=F.prepared.name,DA=IA.options[xA].autoScroll,PA=_e(DA.container,IA,yA);if(d.window(PA))mA=Z.clientX<ne.margin,nA=Z.clientY<ne.margin,lA=Z.clientX>PA.innerWidth-ne.margin,hA=Z.clientY>PA.innerHeight-ne.margin;else{var jA=q(PA);mA=Z.clientX<jA.left+ne.margin,nA=Z.clientY<jA.top+ne.margin,lA=Z.clientX>jA.right-ne.margin,hA=Z.clientY>jA.bottom-ne.margin}ne.x=lA?1:mA?-1:0,ne.y=hA?1:nA?-1:0,ne.isScrolling||(ne.margin=DA.margin,ne.speed=DA.speed,ne.start(F))}}};function _e(R,F,Z){return(d.string(R)?sA(R,F,Z):R)||v(Z)}function qe(R){return d.window(R)&&(R=window.document.body),{x:R.scrollLeft,y:R.scrollTop}}var pt={id:"auto-scroll",install:function(R){var F=R.defaults,Z=R.actions;R.autoScroll=ne,ne.now=function(){return R.now()},Z.phaselessTypes.autoscroll=!0,F.perAction.autoScroll=ne.defaults},listeners:{"interactions:new":function(R){R.interaction.autoScroll=null},"interactions:destroy":function(R){R.interaction.autoScroll=null,ne.stop(),ne.interaction&&(ne.interaction=null)},"interactions:stop":ne.stop,"interactions:action-move":function(R){return ne.onInteractionMove(R)}}},ze=pt;function At(R,F){var Z=!1;return function(){return Z||(L.console.warn(F),Z=!0),R.apply(this,arguments)}}function gt(R,F){return R.name=F.name,R.axis=F.axis,R.edges=F.edges,R}function Pe(R){return d.bool(R)?(this.options.styleCursor=R,this):R===null?(delete this.options.styleCursor,this):this.options.styleCursor}function ot(R){return d.func(R)?(this.options.actionChecker=R,this):R===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Et={id:"auto-start/interactableMethods",install:function(R){var F=R.Interactable;F.prototype.getAction=function(Z,nA,lA,hA){var mA=function(IA,yA,xA,DA,PA){var jA=IA.getRect(DA),le=yA.buttons||{0:1,1:4,3:8,4:16}[yA.button],ae={action:null,interactable:IA,interaction:xA,element:DA,rect:jA,buttons:le};return PA.fire("auto-start:check",ae),ae.action}(this,nA,lA,hA,R);return this.options.actionChecker?this.options.actionChecker(Z,nA,mA,this,hA,lA):mA},F.prototype.ignoreFrom=At(function(Z){return this._backCompatOption("ignoreFrom",Z)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),F.prototype.allowFrom=At(function(Z){return this._backCompatOption("allowFrom",Z)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),F.prototype.actionChecker=ot,F.prototype.styleCursor=Pe}};function nt(R,F,Z,nA,lA){return F.testIgnoreAllow(F.options[R.name],Z,nA)&&F.options[R.name].enabled&&gn(F,Z,R,lA)?R:null}function Nn(R,F,Z,nA,lA,hA,mA){for(var IA=0,yA=nA.length;IA<yA;IA++){var xA=nA[IA],DA=lA[IA],PA=xA.getAction(F,Z,R,DA);if(PA){var jA=nt(PA,xA,DA,hA,mA);if(jA)return{action:jA,interactable:xA,element:DA}}}return{action:null,interactable:null,element:null}}function Xt(R,F,Z,nA,lA){var hA=[],mA=[],IA=nA;function yA(DA){hA.push(DA),mA.push(IA)}for(;d.element(IA);){hA=[],mA=[],lA.interactables.forEachMatch(IA,yA);var xA=Nn(R,F,Z,hA,mA,nA,lA);if(xA.action&&!xA.interactable.options[xA.action.name].manualStart)return xA;IA=T(IA)}return{action:null,interactable:null,element:null}}function Vt(R,F,Z){var nA=F.action,lA=F.interactable,hA=F.element;nA=nA||{name:null},R.interactable=lA,R.element=hA,gt(R.prepared,nA),R.rect=lA&&nA.name?lA.getRect(hA):null,An(R,Z),Z.fire("autoStart:prepared",{interaction:R})}function gn(R,F,Z,nA){var lA=R.options,hA=lA[Z.name].max,mA=lA[Z.name].maxPerElement,IA=nA.autoStart.maxInteractions,yA=0,xA=0,DA=0;if(!(hA&&mA&&IA))return!1;for(var PA=0,jA=nA.interactions.list;PA<jA.length;PA++){var le=jA[PA],ae=le.prepared.name;if(le.interacting()&&(++yA>=IA||le.interactable===R&&((xA+=ae===Z.name?1:0)>=hA||le.element===F&&(DA++,ae===Z.name&&DA>=mA))))return!1}return IA>0}function wn(R,F){return d.number(R)?(F.autoStart.maxInteractions=R,this):F.autoStart.maxInteractions}function St(R,F,Z){var nA=Z.autoStart.cursorElement;nA&&nA!==R&&(nA.style.cursor=""),R.ownerDocument.documentElement.style.cursor=F,R.style.cursor=F,Z.autoStart.cursorElement=F?R:null}function An(R,F){var Z=R.interactable,nA=R.element,lA=R.prepared;if(R.pointerType==="mouse"&&Z&&Z.options.styleCursor){var hA="";if(lA.name){var mA=Z.options[lA.name].cursorChecker;hA=d.func(mA)?mA(lA,Z,nA,R._interacting):F.actions.map[lA.name].getCursor(lA)}St(R.element,hA||"",F)}else F.autoStart.cursorElement&&St(F.autoStart.cursorElement,"",F)}var On={id:"auto-start/base",before:["actions"],install:function(R){var F=R.interactStatic,Z=R.defaults;R.usePlugin(Et),Z.base.actionChecker=null,Z.base.styleCursor=!0,AA(Z.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),F.maxInteractions=function(nA){return wn(nA,R)},R.autoStart={maxInteractions:1/0,withinInteractionLimit:gn,cursorElement:null}},listeners:{"interactions:down":function(R,F){var Z=R.interaction,nA=R.pointer,lA=R.event,hA=R.eventTarget;Z.interacting()||Vt(Z,Xt(Z,nA,lA,hA,F),F)},"interactions:move":function(R,F){(function(Z,nA){var lA=Z.interaction,hA=Z.pointer,mA=Z.event,IA=Z.eventTarget;lA.pointerType!=="mouse"||lA.pointerIsDown||lA.interacting()||Vt(lA,Xt(lA,hA,mA,IA,nA),nA)})(R,F),function(Z,nA){var lA=Z.interaction;if(lA.pointerIsDown&&!lA.interacting()&&lA.pointerWasMoved&&lA.prepared.name){nA.fire("autoStart:before-start",Z);var hA=lA.interactable,mA=lA.prepared.name;mA&&hA&&(hA.options[mA].manualStart||!gn(hA,lA.element,lA.prepared,nA)?lA.stop():(lA.start(lA.prepared,hA,lA.element),An(lA,nA)))}}(R,F)},"interactions:stop":function(R,F){var Z=R.interaction,nA=Z.interactable;nA&&nA.options.styleCursor&&St(Z.element,"",F)}},maxInteractions:wn,withinInteractionLimit:gn,validateAction:nt},en=On,Ci={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(R,F){var Z=R.interaction,nA=R.eventTarget,lA=R.dx,hA=R.dy;if(Z.prepared.name==="drag"){var mA=Math.abs(lA),IA=Math.abs(hA),yA=Z.interactable.options.drag,xA=yA.startAxis,DA=mA>IA?"x":mA<IA?"y":"xy";if(Z.prepared.axis=yA.lockAxis==="start"?DA[0]:yA.lockAxis,DA!=="xy"&&xA!=="xy"&&xA!==DA){Z.prepared.name=null;for(var PA=nA,jA=function(ae){if(ae!==Z.interactable){var de=Z.interactable.options.drag;if(!de.manualStart&&ae.testIgnoreAllow(de,PA,nA)){var ye=ae.getAction(Z.downPointer,Z.downEvent,Z,PA);if(ye&&ye.name==="drag"&&function(Qe,kA){if(!kA)return!1;var UA=kA.options.drag.startAxis;return Qe==="xy"||UA==="xy"||UA===Qe}(DA,ae)&&en.validateAction(ye,ae,PA,nA,F))return ae}}};d.element(PA);){var le=F.interactables.forEachMatch(PA,jA);if(le){Z.prepared.name="drag",Z.interactable=le,Z.element=PA;break}PA=T(PA)}}}}}};function Bi(R){var F=R.prepared&&R.prepared.name;if(!F)return null;var Z=R.interactable.options;return Z[F].hold||Z[F].delay}var co={id:"auto-start/hold",install:function(R){var F=R.defaults;R.usePlugin(en),F.perAction.hold=0,F.perAction.delay=0},listeners:{"interactions:new":function(R){R.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(R){var F=R.interaction,Z=Bi(F);Z>0&&(F.autoStartHoldTimer=setTimeout(function(){F.start(F.prepared,F.interactable,F.element)},Z))},"interactions:move":function(R){var F=R.interaction,Z=R.duplicate;F.autoStartHoldTimer&&F.pointerWasMoved&&!Z&&(clearTimeout(F.autoStartHoldTimer),F.autoStartHoldTimer=null)},"autoStart:before-start":function(R){var F=R.interaction;Bi(F)>0&&(F.prepared.name=null)}},getHoldDuration:Bi},mi=co,ti={id:"auto-start",install:function(R){R.usePlugin(en),R.usePlugin(mi),R.usePlugin(Ci)}},Pi=function(R){return/^(always|never|auto)$/.test(R)?(this.options.preventDefault=R,this):d.bool(R)?(this.options.preventDefault=R?"always":"never",this):this.options.preventDefault};function go(R){var F=R.interaction,Z=R.event;F.interactable&&F.interactable.checkAndPreventDefault(Z)}var ni={id:"core/interactablePreventDefault",install:function(R){var F=R.Interactable;F.prototype.preventDefault=Pi,F.prototype.checkAndPreventDefault=function(Z){return function(nA,lA,hA){var mA=nA.options.preventDefault;if(mA!=="never")if(mA!=="always"){if(lA.events.supportsPassive&&/^touch(start|move)$/.test(hA.type)){var IA=v(hA.target).document,yA=lA.getDocOptions(IA);if(!yA||!yA.events||yA.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(hA.type)||d.element(hA.target)&&$(hA.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||hA.preventDefault()}else hA.preventDefault()}(this,R,Z)},R.interactions.docEvents.push({type:"dragstart",listener:function(Z){for(var nA=0,lA=R.interactions.list;nA<lA.length;nA++){var hA=lA[nA];if(hA.element&&(hA.element===Z.target||x(hA.element,Z.target)))return void hA.interactable.checkAndPreventDefault(Z)}}})},listeners:["down","move","up","cancel"].reduce(function(R,F){return R["interactions:".concat(F)]=go,R},{})};function bn(R,F){if(F.phaselessTypes[R])return!0;for(var Z in F.map)if(R.indexOf(Z)===0&&R.substr(Z.length)in F.phases)return!0;return!1}function Hi(R){var F={};for(var Z in R){var nA=R[Z];d.plainObject(nA)?F[Z]=Hi(nA):d.array(nA)?F[Z]=Se(nA):F[Z]=nA}return F}var Jo=function(){function R(F){I(this,R),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=F,this.result=uo(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return b(R,[{key:"start",value:function(F,Z){var nA,lA,hA=F.phase,mA=this.interaction,IA=function(xA){var DA=xA.interactable.options[xA.prepared.name],PA=DA.modifiers;return PA&&PA.length?PA:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(jA){var le=DA[jA];return le&&le.enabled&&{options:le,methods:le._methods}}).filter(function(jA){return!!jA})}(mA);this.prepareStates(IA),this.startEdges=AA({},mA.edges),this.edges=AA({},this.startEdges),this.startOffset=(nA=mA.rect,lA=Z,nA?{left:lA.x-nA.left,top:lA.y-nA.top,right:nA.right-lA.x,bottom:nA.bottom-lA.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var yA=this.fillArg({phase:hA,pageCoords:Z,preEnd:!1});return this.result=uo(),this.startAll(yA),this.result=this.setAll(yA)}},{key:"fillArg",value:function(F){var Z=this.interaction;return F.interaction=Z,F.interactable=Z.interactable,F.element=Z.element,F.rect||(F.rect=Z.rect),F.edges||(F.edges=this.startEdges),F.startOffset=this.startOffset,F}},{key:"startAll",value:function(F){for(var Z=0,nA=this.states;Z<nA.length;Z++){var lA=nA[Z];lA.methods.start&&(F.state=lA,lA.methods.start(F))}}},{key:"setAll",value:function(F){var Z=F.phase,nA=F.preEnd,lA=F.skipModifiers,hA=F.rect,mA=F.edges;F.coords=AA({},F.pageCoords),F.rect=AA({},hA),F.edges=AA({},mA);for(var IA=lA?this.states.slice(lA):this.states,yA=uo(F.coords,F.rect),xA=0;xA<IA.length;xA++){var DA,PA=IA[xA],jA=PA.options,le=AA({},F.coords),ae=null;(DA=PA.methods)!=null&&DA.set&&this.shouldDo(jA,nA,Z)&&(F.state=PA,ae=PA.methods.set(F),uA(F.edges,F.rect,{x:F.coords.x-le.x,y:F.coords.y-le.y})),yA.eventProps.push(ae)}AA(this.edges,F.edges),yA.delta.x=F.coords.x-F.pageCoords.x,yA.delta.y=F.coords.y-F.pageCoords.y,yA.rectDelta.left=F.rect.left-hA.left,yA.rectDelta.right=F.rect.right-hA.right,yA.rectDelta.top=F.rect.top-hA.top,yA.rectDelta.bottom=F.rect.bottom-hA.bottom;var de=this.result.coords,ye=this.result.rect;if(de&&ye){var Qe=yA.rect.left!==ye.left||yA.rect.right!==ye.right||yA.rect.top!==ye.top||yA.rect.bottom!==ye.bottom;yA.changed=Qe||de.x!==yA.coords.x||de.y!==yA.coords.y}return yA}},{key:"applyToInteraction",value:function(F){var Z=this.interaction,nA=F.phase,lA=Z.coords.cur,hA=Z.coords.start,mA=this.result,IA=this.startDelta,yA=mA.delta;nA==="start"&&AA(this.startDelta,mA.delta);for(var xA=0,DA=[[hA,IA],[lA,yA]];xA<DA.length;xA++){var PA=DA[xA],jA=PA[0],le=PA[1];jA.page.x+=le.x,jA.page.y+=le.y,jA.client.x+=le.x,jA.client.y+=le.y}var ae=this.result.rectDelta,de=F.rect||Z.rect;de.left+=ae.left,de.right+=ae.right,de.top+=ae.top,de.bottom+=ae.bottom,de.width=de.right-de.left,de.height=de.bottom-de.top}},{key:"setAndApply",value:function(F){var Z=this.interaction,nA=F.phase,lA=F.preEnd,hA=F.skipModifiers,mA=this.setAll(this.fillArg({preEnd:lA,phase:nA,pageCoords:F.modifiedCoords||Z.coords.cur.page}));if(this.result=mA,!mA.changed&&(!hA||hA<this.states.length)&&Z.interacting())return!1;if(F.modifiedCoords){var IA=Z.coords.cur.page,yA={x:F.modifiedCoords.x-IA.x,y:F.modifiedCoords.y-IA.y};mA.coords.x+=yA.x,mA.coords.y+=yA.y,mA.delta.x+=yA.x,mA.delta.y+=yA.y}this.applyToInteraction(F)}},{key:"beforeEnd",value:function(F){var Z=F.interaction,nA=F.event,lA=this.states;if(lA&&lA.length){for(var hA=!1,mA=0;mA<lA.length;mA++){var IA=lA[mA];F.state=IA;var yA=IA.options,xA=IA.methods,DA=xA.beforeEnd&&xA.beforeEnd(F);if(DA)return this.endResult=DA,!1;hA=hA||!hA&&this.shouldDo(yA,!0,F.phase,!0)}hA&&Z.move({event:nA,preEnd:!0})}}},{key:"stop",value:function(F){var Z=F.interaction;if(this.states&&this.states.length){var nA=AA({states:this.states,interactable:Z.interactable,element:Z.element,rect:null},F);this.fillArg(nA);for(var lA=0,hA=this.states;lA<hA.length;lA++){var mA=hA[lA];nA.state=mA,mA.methods.stop&&mA.methods.stop(nA)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(F){this.states=[];for(var Z=0;Z<F.length;Z++){var nA=F[Z],lA=nA.options,hA=nA.methods,mA=nA.name;this.states.push({options:lA,methods:hA,index:Z,name:mA})}return this.states}},{key:"restoreInteractionCoords",value:function(F){var Z=F.interaction,nA=Z.coords,lA=Z.rect,hA=Z.modification;if(hA.result){for(var mA=hA.startDelta,IA=hA.result,yA=IA.delta,xA=IA.rectDelta,DA=0,PA=[[nA.start,mA],[nA.cur,yA]];DA<PA.length;DA++){var jA=PA[DA],le=jA[0],ae=jA[1];le.page.x-=ae.x,le.page.y-=ae.y,le.client.x-=ae.x,le.client.y-=ae.y}lA.left-=xA.left,lA.right-=xA.right,lA.top-=xA.top,lA.bottom-=xA.bottom}}},{key:"shouldDo",value:function(F,Z,nA,lA){return!(!F||F.enabled===!1||lA&&!F.endOnly||F.endOnly&&!Z||nA==="start"&&!F.setStart)}},{key:"copyFrom",value:function(F){this.startOffset=F.startOffset,this.startDelta=F.startDelta,this.startEdges=F.startEdges,this.edges=F.edges,this.states=F.states.map(function(Z){return Hi(Z)}),this.result=uo(AA({},F.result.coords),AA({},F.result.rect))}},{key:"destroy",value:function(){for(var F in this)this[F]=null}}]),R}();function uo(R,F){return{rect:F,coords:R,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Fn(R,F){var Z=R.defaults,nA={start:R.start,set:R.set,beforeEnd:R.beforeEnd,stop:R.stop},lA=function(hA){var mA=hA||{};for(var IA in mA.enabled=mA.enabled!==!1,Z)IA in mA||(mA[IA]=Z[IA]);var yA={options:mA,methods:nA,name:F,enable:function(){return mA.enabled=!0,yA},disable:function(){return mA.enabled=!1,yA}};return yA};return F&&typeof F=="string"&&(lA._defaults=Z,lA._methods=nA),lA}function ho(R){var F=R.iEvent,Z=R.interaction.modification.result;Z&&(F.modifiers=Z.eventProps)}var bs={id:"modifiers/base",before:["actions"],install:function(R){R.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(R){var F=R.interaction;F.modification=new Jo(F)},"interactions:before-action-start":function(R){var F=R.interaction,Z=R.interaction.modification;Z.start(R,F.coords.start.page),F.edges=Z.edges,Z.applyToInteraction(R)},"interactions:before-action-move":function(R){var F=R.interaction,Z=F.modification,nA=Z.setAndApply(R);return F.edges=Z.edges,nA},"interactions:before-action-end":function(R){var F=R.interaction,Z=F.modification,nA=Z.beforeEnd(R);return F.edges=Z.startEdges,nA},"interactions:action-start":ho,"interactions:action-move":ho,"interactions:action-end":ho,"interactions:after-action-start":function(R){return R.interaction.modification.restoreInteractionCoords(R)},"interactions:after-action-move":function(R){return R.interaction.modification.restoreInteractionCoords(R)},"interactions:stop":function(R){return R.interaction.modification.stop(R)}}},Zo=bs,Wo={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},ii=function(R){w(Z,R);var F=Y(Z);function Z(nA,lA,hA,mA,IA,yA,xA){var DA;I(this,Z),(DA=F.call(this,nA)).relatedTarget=null,DA.screenX=void 0,DA.screenY=void 0,DA.button=void 0,DA.buttons=void 0,DA.ctrlKey=void 0,DA.shiftKey=void 0,DA.altKey=void 0,DA.metaKey=void 0,DA.page=void 0,DA.client=void 0,DA.delta=void 0,DA.rect=void 0,DA.x0=void 0,DA.y0=void 0,DA.t0=void 0,DA.dt=void 0,DA.duration=void 0,DA.clientX0=void 0,DA.clientY0=void 0,DA.velocity=void 0,DA.speed=void 0,DA.swipe=void 0,DA.axes=void 0,DA.preEnd=void 0,IA=IA||nA.element;var PA=nA.interactable,jA=(PA&&PA.options||Wo).deltaSource,le=BA(PA,IA,hA),ae=mA==="start",de=mA==="end",ye=ae?P(DA):nA.prevEvent,Qe=ae?nA.coords.start:de?{page:ye.page,client:ye.client,timeStamp:nA.coords.cur.timeStamp}:nA.coords.cur;return DA.page=AA({},Qe.page),DA.client=AA({},Qe.client),DA.rect=AA({},nA.rect),DA.timeStamp=Qe.timeStamp,de||(DA.page.x-=le.x,DA.page.y-=le.y,DA.client.x-=le.x,DA.client.y-=le.y),DA.ctrlKey=lA.ctrlKey,DA.altKey=lA.altKey,DA.shiftKey=lA.shiftKey,DA.metaKey=lA.metaKey,DA.button=lA.button,DA.buttons=lA.buttons,DA.target=IA,DA.currentTarget=IA,DA.preEnd=yA,DA.type=xA||hA+(mA||""),DA.interactable=PA,DA.t0=ae?nA.pointers[nA.pointers.length-1].downTime:ye.t0,DA.x0=nA.coords.start.page.x-le.x,DA.y0=nA.coords.start.page.y-le.y,DA.clientX0=nA.coords.start.client.x-le.x,DA.clientY0=nA.coords.start.client.y-le.y,DA.delta=ae||de?{x:0,y:0}:{x:DA[jA].x-ye[jA].x,y:DA[jA].y-ye[jA].y},DA.dt=nA.coords.delta.timeStamp,DA.duration=DA.timeStamp-DA.t0,DA.velocity=AA({},nA.coords.velocity[jA]),DA.speed=rA(DA.velocity.x,DA.velocity.y),DA.swipe=de||mA==="inertiastart"?DA.getSwipe():null,DA}return b(Z,[{key:"getSwipe",value:function(){var nA=this._interaction;if(nA.prevEvent.speed<600||this.timeStamp-nA.prevEvent.timeStamp>150)return null;var lA=180*Math.atan2(nA.prevEvent.velocityY,nA.prevEvent.velocityX)/Math.PI;lA<0&&(lA+=360);var hA=112.5<=lA&&lA<247.5,mA=202.5<=lA&&lA<337.5;return{up:mA,down:!mA&&22.5<=lA&&lA<157.5,left:hA,right:!hA&&(292.5<=lA||lA<67.5),angle:lA,speed:nA.prevEvent.speed,velocity:{x:nA.prevEvent.velocityX,y:nA.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),Z}(Be);Object.defineProperties(ii.prototype,{pageX:{get:function(){return this.page.x},set:function(R){this.page.x=R}},pageY:{get:function(){return this.page.y},set:function(R){this.page.y=R}},clientX:{get:function(){return this.client.x},set:function(R){this.client.x=R}},clientY:{get:function(){return this.client.y},set:function(R){this.client.y=R}},dx:{get:function(){return this.delta.x},set:function(R){this.delta.x=R}},dy:{get:function(){return this.delta.y},set:function(R){this.delta.y=R}},velocityX:{get:function(){return this.velocity.x},set:function(R){this.velocity.x=R}},velocityY:{get:function(){return this.velocity.y},set:function(R){this.velocity.y=R}}});var ys=b(function R(F,Z,nA,lA,hA){I(this,R),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=F,this.pointer=Z,this.event=nA,this.downTime=lA,this.downTarget=hA}),Ds=function(R){return R.interactable="",R.element="",R.prepared="",R.pointerIsDown="",R.pointerWasMoved="",R._proxy="",R}({}),vs=function(R){return R.start="",R.move="",R.end="",R.stop="",R.interacting="",R}({}),ks=0,_s=function(){function R(F){var Z=this,nA=F.pointerType,lA=F.scopeFire;I(this,R),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=At(function(DA){this.move(DA)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=ks++,this._scopeFire=lA,this.pointerType=nA;var hA=this;this._proxy={};var mA=function(DA){Object.defineProperty(Z._proxy,DA,{get:function(){return hA[DA]}})};for(var IA in Ds)mA(IA);var yA=function(DA){Object.defineProperty(Z._proxy,DA,{value:function(){return hA[DA].apply(hA,arguments)}})};for(var xA in vs)yA(xA);this._scopeFire("interactions:new",{interaction:this})}return b(R,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(F,Z,nA){var lA=this.updatePointer(F,Z,nA,!0),hA=this.pointers[lA];this._scopeFire("interactions:down",{pointer:F,event:Z,eventTarget:nA,pointerIndex:lA,pointerInfo:hA,type:"down",interaction:this})}},{key:"start",value:function(F,Z,nA){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(F.name==="gesture"?2:1)||!Z.options[F.name].enabled)&&(gt(this.prepared,F),this.interactable=Z,this.element=nA,this.rect=Z.getRect(nA),this.edges=this.prepared.edges?AA({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(F,Z,nA){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(F,Z,nA,!1);var lA,hA,mA=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(lA=this.coords.cur.client.x-this.coords.start.client.x,hA=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=rA(lA,hA)>this.pointerMoveTolerance);var IA,yA,xA,DA=this.getPointerIndex(F),PA={pointer:F,pointerIndex:DA,pointerInfo:this.pointers[DA],event:Z,type:"move",eventTarget:nA,dx:lA,dy:hA,duplicate:mA,interaction:this};mA||(IA=this.coords.velocity,yA=this.coords.delta,xA=Math.max(yA.timeStamp/1e3,.001),IA.page.x=yA.page.x/xA,IA.page.y=yA.page.y/xA,IA.client.x=yA.client.x/xA,IA.client.y=yA.client.y/xA,IA.timeStamp=xA),this._scopeFire("interactions:move",PA),mA||this.simulation||(this.interacting()&&(PA.type=null,this.move(PA)),this.pointerWasMoved&&X(this.coords.prev,this.coords.cur))}},{key:"move",value:function(F){F&&F.event||iA(this.coords.delta),(F=AA({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},F||{})).phase="move",this._doPhase(F)}},{key:"pointerUp",value:function(F,Z,nA,lA){var hA=this.getPointerIndex(F);hA===-1&&(hA=this.updatePointer(F,Z,nA,!1));var mA=/cancel$/i.test(Z.type)?"cancel":"up";this._scopeFire("interactions:".concat(mA),{pointer:F,pointerIndex:hA,pointerInfo:this.pointers[hA],event:Z,eventTarget:nA,type:mA,curEventTarget:lA,interaction:this}),this.simulation||this.end(Z),this.removePointer(F,Z)}},{key:"documentBlur",value:function(F){this.end(F),this._scopeFire("interactions:blur",{event:F,type:"blur",interaction:this})}},{key:"end",value:function(F){var Z;this._ending=!0,F=F||this._latestPointer.event,this.interacting()&&(Z=this._doPhase({event:F,interaction:this,phase:"end"})),this._ending=!1,Z===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(F){var Z=GA(F);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:YA(this.pointers,function(nA){return nA.id===Z})}},{key:"getPointerInfo",value:function(F){return this.pointers[this.getPointerIndex(F)]}},{key:"updatePointer",value:function(F,Z,nA,lA){var hA,mA,IA,yA=GA(F),xA=this.getPointerIndex(F),DA=this.pointers[xA];return lA=lA!==!1&&(lA||/(down|start)$/i.test(Z.type)),DA?DA.pointer=F:(DA=new ys(yA,F,Z,null,null),xA=this.pointers.length,this.pointers.push(DA)),JA(this.coords.cur,this.pointers.map(function(PA){return PA.pointer}),this._now()),hA=this.coords.delta,mA=this.coords.prev,IA=this.coords.cur,hA.page.x=IA.page.x-mA.page.x,hA.page.y=IA.page.y-mA.page.y,hA.client.x=IA.client.x-mA.client.x,hA.client.y=IA.client.y-mA.client.y,hA.timeStamp=IA.timeStamp-mA.timeStamp,lA&&(this.pointerIsDown=!0,DA.downTime=this.coords.cur.timeStamp,DA.downTarget=nA,z(this.downPointer,F),this.interacting()||(X(this.coords.start,this.coords.cur),X(this.coords.prev,this.coords.cur),this.downEvent=Z,this.pointerWasMoved=!1)),this._updateLatestPointer(F,Z,nA),this._scopeFire("interactions:update-pointer",{pointer:F,event:Z,eventTarget:nA,down:lA,pointerInfo:DA,pointerIndex:xA,interaction:this}),xA}},{key:"removePointer",value:function(F,Z){var nA=this.getPointerIndex(F);if(nA!==-1){var lA=this.pointers[nA];this._scopeFire("interactions:remove-pointer",{pointer:F,event:Z,eventTarget:null,pointerIndex:nA,pointerInfo:lA,interaction:this}),this.pointers.splice(nA,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(F,Z,nA){this._latestPointer.pointer=F,this._latestPointer.event=Z,this._latestPointer.eventTarget=nA}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(F,Z,nA,lA){return new ii(this,F,this.prepared.name,Z,this.element,nA,lA)}},{key:"_fireEvent",value:function(F){var Z;(Z=this.interactable)==null||Z.fire(F),(!this.prevEvent||F.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=F)}},{key:"_doPhase",value:function(F){var Z=F.event,nA=F.phase,lA=F.preEnd,hA=F.type,mA=this.rect;if(mA&&nA==="move"&&(uA(this.edges,mA,this.coords.delta[this.interactable.options.deltaSource]),mA.width=mA.right-mA.left,mA.height=mA.bottom-mA.top),this._scopeFire("interactions:before-action-".concat(nA),F)===!1)return!1;var IA=F.iEvent=this._createPreparedEvent(Z,nA,lA,hA);return this._scopeFire("interactions:action-".concat(nA),F),nA==="start"&&(this.prevEvent=IA),this._fireEvent(IA),this._scopeFire("interactions:after-action-".concat(nA),F),!0}},{key:"_now",value:function(){return Date.now()}}]),R}();function Or(R){$r(R.interaction)}function $r(R){if(!function(Z){return!(!Z.offset.pending.x&&!Z.offset.pending.y)}(R))return!1;var F=R.offset.pending;return zr(R.coords.cur,F),zr(R.coords.delta,F),uA(R.edges,R.rect,F),F.x=0,F.y=0,!0}function sg(R){var F=R.x,Z=R.y;this.offset.pending.x+=F,this.offset.pending.y+=Z,this.offset.total.x+=F,this.offset.total.y+=Z}function zr(R,F){var Z=R.page,nA=R.client,lA=F.x,hA=F.y;Z.x+=lA,Z.y+=hA,nA.x+=lA,nA.y+=hA}vs.offsetBy="";var lg={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(R){R.Interaction.prototype.offsetBy=sg},listeners:{"interactions:new":function(R){R.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(R){return function(F){F.pointerIsDown&&(zr(F.coords.cur,F.offset.total),F.offset.pending.x=0,F.offset.pending.y=0)}(R.interaction)},"interactions:before-action-start":Or,"interactions:before-action-move":Or,"interactions:before-action-end":function(R){var F=R.interaction;if($r(F))return F.move({offset:!0}),F.end(),!1},"interactions:stop":function(R){var F=R.interaction;F.offset.total.x=0,F.offset.total.y=0,F.offset.pending.x=0,F.offset.pending.y=0}}},Jr=lg,cg=function(){function R(F){I(this,R),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=F}return b(R,[{key:"start",value:function(F){var Z=this.interaction,nA=jo(Z);if(!nA||!nA.enabled)return!1;var lA=Z.coords.velocity.client,hA=rA(lA.x,lA.y),mA=this.modification||(this.modification=new Jo(Z));if(mA.copyFrom(Z.modification),this.t0=Z._now(),this.allowResume=nA.allowResume,this.v0=hA,this.currentOffset={x:0,y:0},this.startCoords=Z.coords.cur.page,this.modifierArg=mA.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-Z.coords.cur.timeStamp<50&&hA>nA.minSpeed&&hA>nA.endSpeed)this.startInertia();else{if(mA.result=mA.setAll(this.modifierArg),!mA.result.changed)return!1;this.startSmoothEnd()}return Z.modification.result.rect=null,Z.offsetBy(this.targetOffset),Z._doPhase({interaction:Z,event:F,phase:"inertiastart"}),Z.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),Z.modification.result.rect=null,this.active=!0,Z.simulation=this,!0}},{key:"startInertia",value:function(){var F=this,Z=this.interaction.coords.velocity.client,nA=jo(this.interaction),lA=nA.resistance,hA=-Math.log(nA.endSpeed/this.v0)/lA;this.targetOffset={x:(Z.x-hA)/lA,y:(Z.y-hA)/lA},this.te=hA,this.lambda_v0=lA/this.v0,this.one_ve_v0=1-nA.endSpeed/this.v0;var mA=this.modification,IA=this.modifierArg;IA.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},mA.result=mA.setAll(IA),mA.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+mA.result.delta.x,y:this.targetOffset.y+mA.result.delta.y}),this.onNextFrame(function(){return F.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var F=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return F.smoothEndTick()})}},{key:"onNextFrame",value:function(F){var Z=this;this.timeout=fe.request(function(){Z.active&&F()})}},{key:"inertiaTick",value:function(){var F,Z,nA,lA,hA,mA,IA,yA=this,xA=this.interaction,DA=jo(xA).resistance,PA=(xA._now()-this.t0)/1e3;if(PA<this.te){var jA,le=1-(Math.exp(-DA*PA)-this.lambda_v0)/this.one_ve_v0;this.isModified?(F=0,Z=0,nA=this.targetOffset.x,lA=this.targetOffset.y,hA=this.modifiedOffset.x,mA=this.modifiedOffset.y,jA={x:Ms(IA=le,F,nA,hA),y:Ms(IA,Z,lA,mA)}):jA={x:this.targetOffset.x*le,y:this.targetOffset.y*le};var ae={x:jA.x-this.currentOffset.x,y:jA.y-this.currentOffset.y};this.currentOffset.x+=ae.x,this.currentOffset.y+=ae.y,xA.offsetBy(ae),xA.move(),this.onNextFrame(function(){return yA.inertiaTick()})}else xA.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var F=this,Z=this.interaction,nA=Z._now()-this.t0,lA=jo(Z).smoothEndDuration;if(nA<lA){var hA={x:qo(nA,0,this.targetOffset.x,lA),y:qo(nA,0,this.targetOffset.y,lA)},mA={x:hA.x-this.currentOffset.x,y:hA.y-this.currentOffset.y};this.currentOffset.x+=mA.x,this.currentOffset.y+=mA.y,Z.offsetBy(mA),Z.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return F.smoothEndTick()})}else Z.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(F){var Z=F.pointer,nA=F.event,lA=F.eventTarget,hA=this.interaction;hA.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),hA.updatePointer(Z,nA,lA,!0),hA._doPhase({interaction:hA,event:nA,phase:"resume"}),X(hA.coords.prev,hA.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,fe.cancel(this.timeout)}}]),R}();function jo(R){var F=R.interactable,Z=R.prepared;return F&&F.options&&Z.name&&F.options[Z.name].inertia}var gg={id:"inertia",before:["modifiers","actions"],install:function(R){var F=R.defaults;R.usePlugin(Jr),R.usePlugin(Zo),R.actions.phases.inertiastart=!0,R.actions.phases.resume=!0,F.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(R){var F=R.interaction;F.inertia=new cg(F)},"interactions:before-action-end":function(R){var F=R.interaction,Z=R.event;return(!F._interacting||F.simulation||!F.inertia.start(Z))&&null},"interactions:down":function(R){var F=R.interaction,Z=R.eventTarget,nA=F.inertia;if(nA.active)for(var lA=Z;d.element(lA);){if(lA===F.element){nA.resume(R);break}lA=T(lA)}},"interactions:stop":function(R){var F=R.interaction.inertia;F.active&&F.stop()},"interactions:before-action-resume":function(R){var F=R.interaction.modification;F.stop(R),F.start(R,R.interaction.coords.cur.page),F.applyToInteraction(R)},"interactions:before-action-inertiastart":function(R){return R.interaction.modification.setAndApply(R)},"interactions:action-resume":ho,"interactions:action-inertiastart":ho,"interactions:after-action-inertiastart":function(R){return R.interaction.modification.restoreInteractionCoords(R)},"interactions:after-action-resume":function(R){return R.interaction.modification.restoreInteractionCoords(R)}}};function Ms(R,F,Z,nA){var lA=1-R;return lA*lA*F+2*lA*R*Z+R*R*nA}function qo(R,F,Z,nA){return-Z*(R/=nA)*(R-2)+F}var ug=gg;function xs(R,F){for(var Z=0;Z<F.length;Z++){var nA=F[Z];if(R.immediatePropagationStopped)break;nA(R)}}var Ss=function(){function R(F){I(this,R),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=AA({},F||{})}return b(R,[{key:"fire",value:function(F){var Z,nA=this.global;(Z=this.types[F.type])&&xs(F,Z),!F.propagationStopped&&nA&&(Z=nA[F.type])&&xs(F,Z)}},{key:"on",value:function(F,Z){var nA=j(F,Z);for(F in nA)this.types[F]=De(this.types[F]||[],nA[F])}},{key:"off",value:function(F,Z){var nA=j(F,Z);for(F in nA){var lA=this.types[F];if(lA&&lA.length)for(var hA=0,mA=nA[F];hA<mA.length;hA++){var IA=mA[hA],yA=lA.indexOf(IA);yA!==-1&&lA.splice(yA,1)}}}},{key:"getRect",value:function(F){return null}}]),R}(),dg=function(){function R(F){I(this,R),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=F,z(this,F)}return b(R,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),R}();function po(R){return d.object(R)?{capture:!!R.capture,passive:!!R.passive}:{capture:!!R,passive:!1}}function rt(R,F){return R===F||(typeof R=="boolean"?!!F.capture===R&&!F.passive:!!R.capture==!!F.capture&&!!R.passive==!!F.passive)}var ct={id:"events",install:function(R){var F,Z=[],nA={},lA=[],hA={add:mA,remove:IA,addDelegate:function(DA,PA,jA,le,ae){var de=po(ae);if(!nA[jA]){nA[jA]=[];for(var ye=0;ye<lA.length;ye++){var Qe=lA[ye];mA(Qe,jA,yA),mA(Qe,jA,xA,!0)}}var kA=nA[jA],UA=$A(kA,function(HA){return HA.selector===DA&&HA.context===PA});UA||(UA={selector:DA,context:PA,listeners:[]},kA.push(UA)),UA.listeners.push({func:le,options:de})},removeDelegate:function(DA,PA,jA,le,ae){var de,ye=po(ae),Qe=nA[jA],kA=!1;if(Qe)for(de=Qe.length-1;de>=0;de--){var UA=Qe[de];if(UA.selector===DA&&UA.context===PA){for(var HA=UA.listeners,VA=HA.length-1;VA>=0;VA--){var Ce=HA[VA];if(Ce.func===le&&rt(Ce.options,ye)){HA.splice(VA,1),HA.length||(Qe.splice(de,1),IA(PA,jA,yA),IA(PA,jA,xA,!0)),kA=!0;break}}if(kA)break}}},delegateListener:yA,delegateUseCapture:xA,delegatedEvents:nA,documents:lA,targets:Z,supportsOptions:!1,supportsPassive:!1};function mA(DA,PA,jA,le){if(DA.addEventListener){var ae=po(le),de=$A(Z,function(ye){return ye.eventTarget===DA});de||(de={eventTarget:DA,events:{}},Z.push(de)),de.events[PA]||(de.events[PA]=[]),$A(de.events[PA],function(ye){return ye.func===jA&&rt(ye.options,ae)})||(DA.addEventListener(PA,jA,hA.supportsOptions?ae:ae.capture),de.events[PA].push({func:jA,options:ae}))}}function IA(DA,PA,jA,le){if(DA.addEventListener&&DA.removeEventListener){var ae=YA(Z,function(He){return He.eventTarget===DA}),de=Z[ae];if(de&&de.events)if(PA!=="all"){var ye=!1,Qe=de.events[PA];if(Qe){if(jA==="all"){for(var kA=Qe.length-1;kA>=0;kA--){var UA=Qe[kA];IA(DA,PA,UA.func,UA.options)}return}for(var HA=po(le),VA=0;VA<Qe.length;VA++){var Ce=Qe[VA];if(Ce.func===jA&&rt(Ce.options,HA)){DA.removeEventListener(PA,jA,hA.supportsOptions?HA:HA.capture),Qe.splice(VA,1),Qe.length===0&&(delete de.events[PA],ye=!0);break}}}ye&&!Object.keys(de.events).length&&Z.splice(ae,1)}else for(PA in de.events)de.events.hasOwnProperty(PA)&&IA(DA,PA,"all")}}function yA(DA,PA){for(var jA=po(PA),le=new dg(DA),ae=nA[DA.type],de=ZA(DA)[0],ye=de;d.element(ye);){for(var Qe=0;Qe<ae.length;Qe++){var kA=ae[Qe],UA=kA.selector,HA=kA.context;if($(ye,UA)&&x(HA,de)&&x(HA,ye)){var VA=kA.listeners;le.currentTarget=ye;for(var Ce=0;Ce<VA.length;Ce++){var He=VA[Ce];rt(He.options,jA)&&He.func(le)}}}ye=T(ye)}}function xA(DA){return yA(DA,!0)}return(F=R.document)==null||F.createElement("div").addEventListener("test",null,{get capture(){return hA.supportsOptions=!0},get passive(){return hA.supportsPassive=!0}}),R.events=hA,hA}},Zr={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(R){for(var F=0,Z=Zr.methodOrder;F<Z.length;F++){var nA=Z[F],lA=Zr[nA](R);if(lA)return lA}return null},simulationResume:function(R){var F=R.pointerType,Z=R.eventType,nA=R.eventTarget,lA=R.scope;if(!/down|start/i.test(Z))return null;for(var hA=0,mA=lA.interactions.list;hA<mA.length;hA++){var IA=mA[hA],yA=nA;if(IA.simulation&&IA.simulation.allowResume&&IA.pointerType===F)for(;yA;){if(yA===IA.element)return IA;yA=T(yA)}}return null},mouseOrPen:function(R){var F,Z=R.pointerId,nA=R.pointerType,lA=R.eventType,hA=R.scope;if(nA!=="mouse"&&nA!=="pen")return null;for(var mA=0,IA=hA.interactions.list;mA<IA.length;mA++){var yA=IA[mA];if(yA.pointerType===nA){if(yA.simulation&&!Ns(yA,Z))continue;if(yA.interacting())return yA;F||(F=yA)}}if(F)return F;for(var xA=0,DA=hA.interactions.list;xA<DA.length;xA++){var PA=DA[xA];if(!(PA.pointerType!==nA||/down/i.test(lA)&&PA.simulation))return PA}return null},hasPointer:function(R){for(var F=R.pointerId,Z=0,nA=R.scope.interactions.list;Z<nA.length;Z++){var lA=nA[Z];if(Ns(lA,F))return lA}return null},idle:function(R){for(var F=R.pointerType,Z=0,nA=R.scope.interactions.list;Z<nA.length;Z++){var lA=nA[Z];if(lA.pointers.length===1){var hA=lA.interactable;if(hA&&(!hA.options.gesture||!hA.options.gesture.enabled))continue}else if(lA.pointers.length>=2)continue;if(!lA.interacting()&&F===lA.pointerType)return lA}return null}};function Ns(R,F){return R.pointers.some(function(Z){return Z.id===F})}var hg=Zr,Wr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Fs(R,F){return function(Z){var nA=F.interactions.list,lA=SA(Z),hA=ZA(Z),mA=hA[0],IA=hA[1],yA=[];if(/^touch/.test(Z.type)){F.prevTouchTime=F.now();for(var xA=0,DA=Z.changedTouches;xA<DA.length;xA++){var PA=DA[xA],jA={pointer:PA,pointerId:GA(PA),pointerType:lA,eventType:Z.type,eventTarget:mA,curEventTarget:IA,scope:F},le=Rs(jA);yA.push([jA.pointer,jA.eventTarget,jA.curEventTarget,le])}}else{var ae=!1;if(!Q.supportsPointerEvent&&/mouse/.test(Z.type)){for(var de=0;de<nA.length&&!ae;de++)ae=nA[de].pointerType!=="mouse"&&nA[de].pointerIsDown;ae=ae||F.now()-F.prevTouchTime<500||Z.timeStamp===0}if(!ae){var ye={pointer:Z,pointerId:GA(Z),pointerType:lA,eventType:Z.type,curEventTarget:IA,eventTarget:mA,scope:F},Qe=Rs(ye);yA.push([ye.pointer,ye.eventTarget,ye.curEventTarget,Qe])}}for(var kA=0;kA<yA.length;kA++){var UA=yA[kA],HA=UA[0],VA=UA[1],Ce=UA[2];UA[3][R](HA,Z,VA,Ce)}}}function Rs(R){var F=R.pointerType,Z=R.scope,nA={interaction:hg.search(R),searchDetails:R};return Z.fire("interactions:find",nA),nA.interaction||Z.interactions.new({pointerType:F})}function Xo(R,F){var Z=R.doc,nA=R.scope,lA=R.options,hA=nA.interactions.docEvents,mA=nA.events,IA=mA[F];for(var yA in nA.browser.isIOS&&!lA.events&&(lA.events={passive:!1}),mA.delegatedEvents)IA(Z,yA,mA.delegateListener),IA(Z,yA,mA.delegateUseCapture,!0);for(var xA=lA&&lA.events,DA=0;DA<hA.length;DA++){var PA=hA[DA];IA(Z,PA.type,PA.listener,xA)}}var pg={id:"core/interactions",install:function(R){for(var F={},Z=0;Z<Wr.length;Z++){var nA=Wr[Z];F[nA]=Fs(nA,R)}var lA,hA=Q.pEventTypes;function mA(){for(var IA=0,yA=R.interactions.list;IA<yA.length;IA++){var xA=yA[IA];if(xA.pointerIsDown&&xA.pointerType==="touch"&&!xA._interacting)for(var DA=function(){var le=jA[PA];R.documents.some(function(ae){return x(ae.doc,le.downTarget)})||xA.removePointer(le.pointer,le.event)},PA=0,jA=xA.pointers;PA<jA.length;PA++)DA()}}(lA=r.PointerEvent?[{type:hA.down,listener:mA},{type:hA.down,listener:F.pointerDown},{type:hA.move,listener:F.pointerMove},{type:hA.up,listener:F.pointerUp},{type:hA.cancel,listener:F.pointerUp}]:[{type:"mousedown",listener:F.pointerDown},{type:"mousemove",listener:F.pointerMove},{type:"mouseup",listener:F.pointerUp},{type:"touchstart",listener:mA},{type:"touchstart",listener:F.pointerDown},{type:"touchmove",listener:F.pointerMove},{type:"touchend",listener:F.pointerUp},{type:"touchcancel",listener:F.pointerUp}]).push({type:"blur",listener:function(IA){for(var yA=0,xA=R.interactions.list;yA<xA.length;yA++)xA[yA].documentBlur(IA)}}),R.prevTouchTime=0,R.Interaction=function(IA){w(xA,IA);var yA=Y(xA);function xA(){return I(this,xA),yA.apply(this,arguments)}return b(xA,[{key:"pointerMoveTolerance",get:function(){return R.interactions.pointerMoveTolerance},set:function(DA){R.interactions.pointerMoveTolerance=DA}},{key:"_now",value:function(){return R.now()}}]),xA}(_s),R.interactions={list:[],new:function(IA){IA.scopeFire=function(xA,DA){return R.fire(xA,DA)};var yA=new R.Interaction(IA);return R.interactions.list.push(yA),yA},listeners:F,docEvents:lA,pointerMoveTolerance:1},R.usePlugin(ni)},listeners:{"scope:add-document":function(R){return Xo(R,"add")},"scope:remove-document":function(R){return Xo(R,"remove")},"interactable:unset":function(R,F){for(var Z=R.interactable,nA=F.interactions.list.length-1;nA>=0;nA--){var lA=F.interactions.list[nA];lA.interactable===Z&&(lA.stop(),F.fire("interactions:destroy",{interaction:lA}),lA.destroy(),F.interactions.list.length>2&&F.interactions.list.splice(nA,1))}}},onDocSignal:Xo,doOnInteractions:Fs,methodNames:Wr},Nt=pg,Rn=function(R){return R[R.On=0]="On",R[R.Off=1]="Off",R}(Rn||{}),Ei=function(){function R(F,Z,nA,lA){I(this,R),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Ss,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=Z.actions,this.target=F,this._context=Z.context||nA,this._win=v(H(F)?this._context:F),this._doc=this._win.document,this._scopeEvents=lA,this.set(Z)}return b(R,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(F,Z){return d.func(Z.onstart)&&this.on("".concat(F,"start"),Z.onstart),d.func(Z.onmove)&&this.on("".concat(F,"move"),Z.onmove),d.func(Z.onend)&&this.on("".concat(F,"end"),Z.onend),d.func(Z.oninertiastart)&&this.on("".concat(F,"inertiastart"),Z.oninertiastart),this}},{key:"updatePerActionListeners",value:function(F,Z,nA){var lA,hA=this,mA=(lA=this._actions.map[F])==null?void 0:lA.filterEventType,IA=function(yA){return(mA==null||mA(yA))&&bn(yA,hA._actions)};(d.array(Z)||d.object(Z))&&this._onOff(Rn.Off,F,Z,void 0,IA),(d.array(nA)||d.object(nA))&&this._onOff(Rn.On,F,nA,void 0,IA)}},{key:"setPerAction",value:function(F,Z){var nA=this._defaults;for(var lA in Z){var hA=lA,mA=this.options[F],IA=Z[hA];hA==="listeners"&&this.updatePerActionListeners(F,mA.listeners,IA),d.array(IA)?mA[hA]=Se(IA):d.plainObject(IA)?(mA[hA]=AA(mA[hA]||{},Hi(IA)),d.object(nA.perAction[hA])&&"enabled"in nA.perAction[hA]&&(mA[hA].enabled=IA.enabled!==!1)):d.bool(IA)&&d.object(nA.perAction[hA])?mA[hA].enabled=IA:mA[hA]=IA}}},{key:"getRect",value:function(F){return F=F||(d.element(this.target)?this.target:null),d.string(this.target)&&(F=F||this._context.querySelector(this.target)),k(F)}},{key:"rectChecker",value:function(F){var Z=this;return d.func(F)?(this.getRect=function(nA){var lA=AA({},F.apply(Z,nA));return"width"in lA||(lA.width=lA.right-lA.left,lA.height=lA.bottom-lA.top),lA},this):F===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(F,Z){if(H(Z)||d.object(Z)){for(var nA in this.options[F]=Z,this._actions.map)this.options[nA][F]=Z;return this}return this.options[F]}},{key:"origin",value:function(F){return this._backCompatOption("origin",F)}},{key:"deltaSource",value:function(F){return F==="page"||F==="client"?(this.options.deltaSource=F,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var F=this.target;return d.string(F)?Array.from(this._context.querySelectorAll(F)):d.func(F)&&F.getAllElements?F.getAllElements():d.element(F)?[F]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(F){return this._context===F.ownerDocument||x(this._context,F)}},{key:"testIgnoreAllow",value:function(F,Z,nA){return!this.testIgnore(F.ignoreFrom,Z,nA)&&this.testAllow(F.allowFrom,Z,nA)}},{key:"testAllow",value:function(F,Z,nA){return!F||!!d.element(nA)&&(d.string(F)?J(nA,F,Z):!!d.element(F)&&x(F,nA))}},{key:"testIgnore",value:function(F,Z,nA){return!(!F||!d.element(nA))&&(d.string(F)?J(nA,F,Z):!!d.element(F)&&x(F,nA))}},{key:"fire",value:function(F){return this.events.fire(F),this}},{key:"_onOff",value:function(F,Z,nA,lA,hA){d.object(Z)&&!d.array(Z)&&(lA=nA,nA=null);var mA=j(Z,nA,hA);for(var IA in mA){IA==="wheel"&&(IA=Q.wheelEvent);for(var yA=0,xA=mA[IA];yA<xA.length;yA++){var DA=xA[yA];bn(IA,this._actions)?this.events[F===Rn.On?"on":"off"](IA,DA):d.string(this.target)?this._scopeEvents[F===Rn.On?"addDelegate":"removeDelegate"](this.target,this._context,IA,DA,lA):this._scopeEvents[F===Rn.On?"add":"remove"](this.target,IA,DA,lA)}}return this}},{key:"on",value:function(F,Z,nA){return this._onOff(Rn.On,F,Z,nA)}},{key:"off",value:function(F,Z,nA){return this._onOff(Rn.Off,F,Z,nA)}},{key:"set",value:function(F){var Z=this._defaults;for(var nA in d.object(F)||(F={}),this.options=Hi(Z.base),this._actions.methodDict){var lA=nA,hA=this._actions.methodDict[lA];this.options[lA]={},this.setPerAction(lA,AA(AA({},Z.perAction),Z.actions[lA])),this[hA](F[lA])}for(var mA in F)mA!=="getRect"?d.func(this[mA])&&this[mA](F[mA]):this.rectChecker(F.getRect);return this}},{key:"unset",value:function(){if(d.string(this.target))for(var F in this._scopeEvents.delegatedEvents)for(var Z=this._scopeEvents.delegatedEvents[F],nA=Z.length-1;nA>=0;nA--){var lA=Z[nA],hA=lA.selector,mA=lA.context,IA=lA.listeners;hA===this.target&&mA===this._context&&Z.splice(nA,1);for(var yA=IA.length-1;yA>=0;yA--)this._scopeEvents.removeDelegate(this.target,this._context,F,IA[yA][0],IA[yA][1])}else this._scopeEvents.remove(this.target,"all")}}]),R}(),Ls=function(){function R(F){var Z=this;I(this,R),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=F,F.addListeners({"interactable:unset":function(nA){var lA=nA.interactable,hA=lA.target,mA=d.string(hA)?Z.selectorMap[hA]:hA[Z.scope.id],IA=YA(mA,function(yA){return yA===lA});mA.splice(IA,1)}})}return b(R,[{key:"new",value:function(F,Z){Z=AA(Z||{},{actions:this.scope.actions});var nA=new this.scope.Interactable(F,Z,this.scope.document,this.scope.events);return this.scope.addDocument(nA._doc),this.list.push(nA),d.string(F)?(this.selectorMap[F]||(this.selectorMap[F]=[]),this.selectorMap[F].push(nA)):(nA.target[this.scope.id]||Object.defineProperty(F,this.scope.id,{value:[],configurable:!0}),F[this.scope.id].push(nA)),this.scope.fire("interactable:new",{target:F,options:Z,interactable:nA,win:this.scope._win}),nA}},{key:"getExisting",value:function(F,Z){var nA=Z&&Z.context||this.scope.document,lA=d.string(F),hA=lA?this.selectorMap[F]:F[this.scope.id];if(hA)return $A(hA,function(mA){return mA._context===nA&&(lA||mA.inContext(F))})}},{key:"forEachMatch",value:function(F,Z){for(var nA=0,lA=this.list;nA<lA.length;nA++){var hA=lA[nA],mA=void 0;if((d.string(hA.target)?d.element(F)&&$(F,hA.target):F===hA.target)&&hA.inContext(F)&&(mA=Z(hA)),mA!==void 0)return mA}}}]),R}(),jr=function(){function R(){var F=this;I(this,R),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Q,this.defaults=Hi(Wo),this.Eventable=Ss,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(nA){var lA=function hA(mA,IA){var yA=nA.interactables.getExisting(mA,IA);return yA||((yA=nA.interactables.new(mA,IA)).events.global=hA.globalEvents),yA};return lA.getPointerAverage=WA,lA.getTouchBBox=ue,lA.getTouchDistance=te,lA.getTouchAngle=LA,lA.getElementRect=k,lA.getElementClientRect=q,lA.matchesSelector=$,lA.closest=S,lA.globalEvents={},lA.version="1.10.27",lA.scope=nA,lA.use=function(hA,mA){return this.scope.usePlugin(hA,mA),this},lA.isSet=function(hA,mA){return!!this.scope.interactables.get(hA,mA&&mA.context)},lA.on=At(function(hA,mA,IA){if(d.string(hA)&&hA.search(" ")!==-1&&(hA=hA.trim().split(/ +/)),d.array(hA)){for(var yA=0,xA=hA;yA<xA.length;yA++){var DA=xA[yA];this.on(DA,mA,IA)}return this}if(d.object(hA)){for(var PA in hA)this.on(PA,hA[PA],mA);return this}return bn(hA,this.scope.actions)?this.globalEvents[hA]?this.globalEvents[hA].push(mA):this.globalEvents[hA]=[mA]:this.scope.events.add(this.scope.document,hA,mA,{options:IA}),this},"The interact.on() method is being deprecated"),lA.off=At(function(hA,mA,IA){if(d.string(hA)&&hA.search(" ")!==-1&&(hA=hA.trim().split(/ +/)),d.array(hA)){for(var yA=0,xA=hA;yA<xA.length;yA++){var DA=xA[yA];this.off(DA,mA,IA)}return this}if(d.object(hA)){for(var PA in hA)this.off(PA,hA[PA],mA);return this}var jA;return bn(hA,this.scope.actions)?hA in this.globalEvents&&(jA=this.globalEvents[hA].indexOf(mA))!==-1&&this.globalEvents[hA].splice(jA,1):this.scope.events.remove(this.scope.document,hA,mA,IA),this},"The interact.off() method is being deprecated"),lA.debug=function(){return this.scope},lA.supportsTouch=function(){return Q.supportsTouch},lA.supportsPointerEvent=function(){return Q.supportsPointerEvent},lA.stop=function(){for(var hA=0,mA=this.scope.interactions.list;hA<mA.length;hA++)mA[hA].stop();return this},lA.pointerMoveTolerance=function(hA){return d.number(hA)?(this.scope.interactions.pointerMoveTolerance=hA,this):this.scope.interactions.pointerMoveTolerance},lA.addDocument=function(hA,mA){this.scope.addDocument(hA,mA)},lA.removeDocument=function(hA){this.scope.removeDocument(hA)},lA}(this),this.InteractEvent=ii,this.Interactable=void 0,this.interactables=new Ls(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(nA){return F.removeDocument(nA.target)};var Z=this;this.Interactable=function(nA){w(hA,nA);var lA=Y(hA);function hA(){return I(this,hA),lA.apply(this,arguments)}return b(hA,[{key:"_defaults",get:function(){return Z.defaults}},{key:"set",value:function(mA){return G(M(hA.prototype),"set",this).call(this,mA),Z.fire("interactable:set",{options:mA,interactable:this}),this}},{key:"unset",value:function(){G(M(hA.prototype),"unset",this).call(this);var mA=Z.interactables.list.indexOf(this);mA<0||(Z.interactables.list.splice(mA,1),Z.fire("interactable:unset",{interactable:this}))}}]),hA}(Ei)}return b(R,[{key:"addListeners",value:function(F,Z){this.listenerMaps.push({id:Z,map:F})}},{key:"fire",value:function(F,Z){for(var nA=0,lA=this.listenerMaps;nA<lA.length;nA++){var hA=lA[nA].map[F];if(hA&&hA(Z,this,F)===!1)return!1}}},{key:"init",value:function(F){return this.isInitialized?this:function(Z,nA){return Z.isInitialized=!0,d.window(nA)&&_(nA),r.init(nA),Q.init(nA),fe.init(nA),Z.window=nA,Z.document=nA.document,Z.usePlugin(Nt),Z.usePlugin(ct),Z}(this,F)}},{key:"pluginIsInstalled",value:function(F){var Z=F.id;return Z?!!this._plugins.map[Z]:this._plugins.list.indexOf(F)!==-1}},{key:"usePlugin",value:function(F,Z){if(!this.isInitialized)return this;if(this.pluginIsInstalled(F))return this;if(F.id&&(this._plugins.map[F.id]=F),this._plugins.list.push(F),F.install&&F.install(this,Z),F.listeners&&F.before){for(var nA=0,lA=this.listenerMaps.length,hA=F.before.reduce(function(IA,yA){return IA[yA]=!0,IA[tn(yA)]=!0,IA},{});nA<lA;nA++){var mA=this.listenerMaps[nA].id;if(mA&&(hA[mA]||hA[tn(mA)]))break}this.listenerMaps.splice(nA,0,{id:F.id,map:F.listeners})}else F.listeners&&this.listenerMaps.push({id:F.id,map:F.listeners});return this}},{key:"addDocument",value:function(F,Z){if(this.getDocIndex(F)!==-1)return!1;var nA=v(F);Z=Z?AA({},Z):{},this.documents.push({doc:F,options:Z}),this.events.documents.push(F),F!==this.document&&this.events.add(nA,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:F,window:nA,scope:this,options:Z})}},{key:"removeDocument",value:function(F){var Z=this.getDocIndex(F),nA=v(F),lA=this.documents[Z].options;this.events.remove(nA,"unload",this.onWindowUnload),this.documents.splice(Z,1),this.events.documents.splice(Z,1),this.fire("scope:remove-document",{doc:F,window:nA,scope:this,options:lA})}},{key:"getDocIndex",value:function(F){for(var Z=0;Z<this.documents.length;Z++)if(this.documents[Z].doc===F)return Z;return-1}},{key:"getDocOptions",value:function(F){var Z=this.getDocIndex(F);return Z===-1?null:this.documents[Z].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),R}();function tn(R){return R&&R.replace(/\/.*$/,"")}var qr=new jr,Gt=qr.interactStatic,Gs=typeof globalThis<"u"?globalThis:window;qr.init(Gs);var Ps=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(R){var F=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(nA){var lA=nA[0],hA=nA[1];return lA in R||hA in R}),Z=function(nA,lA){for(var hA=R.range,mA=R.limits,IA=mA===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:mA,yA=R.offset,xA=yA===void 0?{x:0,y:0}:yA,DA={range:hA,grid:R,x:null,y:null},PA=0;PA<F.length;PA++){var jA=F[PA],le=jA[0],ae=jA[1],de=Math.round((nA-xA.x)/R[le]),ye=Math.round((lA-xA.y)/R[ae]);DA[le]=Math.max(IA.left,Math.min(IA.right,de*R[le]+xA.x)),DA[ae]=Math.max(IA.top,Math.min(IA.bottom,ye*R[ae]+xA.y))}return DA};return Z.grid=R,Z.coordFields=F,Z}}),Hs={id:"snappers",install:function(R){var F=R.interactStatic;F.snappers=AA(F.snappers||{},Ps),F.createSnapGrid=F.snappers.grid}},Ks=Hs,nn={start:function(R){var F=R.state,Z=R.rect,nA=R.edges,lA=R.pageCoords,hA=F.options,mA=hA.ratio,IA=hA.enabled,yA=F.options,xA=yA.equalDelta,DA=yA.modifiers;mA==="preserve"&&(mA=Z.width/Z.height),F.startCoords=AA({},lA),F.startRect=AA({},Z),F.ratio=mA,F.equalDelta=xA;var PA=F.linkedEdges={top:nA.top||nA.left&&!nA.bottom,left:nA.left||nA.top&&!nA.right,bottom:nA.bottom||nA.right&&!nA.top,right:nA.right||nA.bottom&&!nA.left};if(F.xIsPrimaryAxis=!(!nA.left&&!nA.right),F.equalDelta){var jA=(PA.left?1:-1)*(PA.top?1:-1);F.edgeSign={x:jA,y:jA}}else F.edgeSign={x:PA.left?-1:1,y:PA.top?-1:1};if(IA!==!1&&AA(nA,PA),DA!=null&&DA.length){var le=new Jo(R.interaction);le.copyFrom(R.interaction.modification),le.prepareStates(DA),F.subModification=le,le.startAll(i({},R))}},set:function(R){var F=R.state,Z=R.rect,nA=R.coords,lA=F.linkedEdges,hA=AA({},nA),mA=F.equalDelta?Cg:un;if(AA(R.edges,lA),mA(F,F.xIsPrimaryAxis,nA,Z),!F.subModification)return null;var IA=AA({},Z);uA(lA,IA,{x:nA.x-hA.x,y:nA.y-hA.y});var yA=F.subModification.setAll(i(i({},R),{},{rect:IA,edges:lA,pageCoords:nA,prevCoords:nA,prevRect:IA})),xA=yA.delta;return yA.changed&&(mA(F,Math.abs(xA.x)>Math.abs(xA.y),yA.coords,yA.rect),AA(nA,yA.coords)),yA.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Cg(R,F,Z){var nA=R.startCoords,lA=R.edgeSign;F?Z.y=nA.y+(Z.x-nA.x)*lA.y:Z.x=nA.x+(Z.y-nA.y)*lA.x}function un(R,F,Z,nA){var lA=R.startRect,hA=R.startCoords,mA=R.ratio,IA=R.edgeSign;if(F){var yA=nA.width/mA;Z.y=hA.y+(yA-lA.height)*IA.y}else{var xA=nA.height*mA;Z.x=hA.x+(xA-lA.width)*IA.x}}var Bg=Fn(nn,"aspectRatio"),Xr=function(){};Xr._defaults={};var yn=Xr;function Ln(R,F,Z){return d.func(R)?oA(R,F.interactable,F.element,[Z.x,Z.y,F]):oA(R,F.interactable,F.element)}var Ki={start:function(R){var F=R.rect,Z=R.startOffset,nA=R.state,lA=R.interaction,hA=R.pageCoords,mA=nA.options,IA=mA.elementRect,yA=AA({left:0,top:0,right:0,bottom:0},mA.offset||{});if(F&&IA){var xA=Ln(mA.restriction,lA,hA);if(xA){var DA=xA.right-xA.left-F.width,PA=xA.bottom-xA.top-F.height;DA<0&&(yA.left+=DA,yA.right+=DA),PA<0&&(yA.top+=PA,yA.bottom+=PA)}yA.left+=Z.left-F.width*IA.left,yA.top+=Z.top-F.height*IA.top,yA.right+=Z.right-F.width*(1-IA.right),yA.bottom+=Z.bottom-F.height*(1-IA.bottom)}nA.offset=yA},set:function(R){var F=R.coords,Z=R.interaction,nA=R.state,lA=nA.options,hA=nA.offset,mA=Ln(lA.restriction,Z,F);if(mA){var IA=function(yA){return!yA||"left"in yA&&"top"in yA||((yA=AA({},yA)).left=yA.x||0,yA.top=yA.y||0,yA.right=yA.right||yA.left+yA.width,yA.bottom=yA.bottom||yA.top+yA.height),yA}(mA);F.x=Math.max(Math.min(IA.right-hA.right,F.x),IA.left+hA.left),F.y=Math.max(Math.min(IA.bottom-hA.bottom,F.y),IA.top+hA.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},ht=Fn(Ki,"restrict"),$n={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Vo={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Ts(R,F){for(var Z=0,nA=["top","left","bottom","right"];Z<nA.length;Z++){var lA=nA[Z];lA in R||(R[lA]=F[lA])}return R}var Qi={noInner:$n,noOuter:Vo,start:function(R){var F,Z=R.interaction,nA=R.startOffset,lA=R.state,hA=lA.options;hA&&(F=dA(Ln(hA.offset,Z,Z.coords.start.page))),F=F||{x:0,y:0},lA.offset={top:F.y+nA.top,left:F.x+nA.left,bottom:F.y-nA.bottom,right:F.x-nA.right}},set:function(R){var F=R.coords,Z=R.edges,nA=R.interaction,lA=R.state,hA=lA.offset,mA=lA.options;if(Z){var IA=AA({},F),yA=Ln(mA.inner,nA,IA)||{},xA=Ln(mA.outer,nA,IA)||{};Ts(yA,$n),Ts(xA,Vo),Z.top?F.y=Math.min(Math.max(xA.top+hA.top,IA.y),yA.top+hA.top):Z.bottom&&(F.y=Math.max(Math.min(xA.bottom+hA.bottom,IA.y),yA.bottom+hA.bottom)),Z.left?F.x=Math.min(Math.max(xA.left+hA.left,IA.x),yA.left+hA.left):Z.right&&(F.x=Math.max(Math.min(xA.right+hA.right,IA.x),yA.right+hA.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},mg=Fn(Qi,"restrictEdges"),Eg=AA({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(R){}},Ki.defaults),Qg=Fn({start:Ki.start,set:Ki.set,defaults:Eg},"restrictRect"),Us={width:-1/0,height:-1/0},Ar={width:1/0,height:1/0},Ti=Fn({start:function(R){return Qi.start(R)},set:function(R){var F=R.interaction,Z=R.state,nA=R.rect,lA=R.edges,hA=Z.options;if(lA){var mA=EA(Ln(hA.min,F,R.coords))||Us,IA=EA(Ln(hA.max,F,R.coords))||Ar;Z.options={endOnly:hA.endOnly,inner:AA({},Qi.noInner),outer:AA({},Qi.noOuter)},lA.top?(Z.options.inner.top=nA.bottom-mA.height,Z.options.outer.top=nA.bottom-IA.height):lA.bottom&&(Z.options.inner.bottom=nA.top+mA.height,Z.options.outer.bottom=nA.top+IA.height),lA.left?(Z.options.inner.left=nA.right-mA.width,Z.options.outer.left=nA.right-IA.width):lA.right&&(Z.options.inner.right=nA.left+mA.width,Z.options.outer.right=nA.left+IA.width),Qi.set(R),Z.options=hA}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Vr={start:function(R){var F,Z=R.interaction,nA=R.interactable,lA=R.element,hA=R.rect,mA=R.state,IA=R.startOffset,yA=mA.options,xA=yA.offsetWithOrigin?function(jA){var le=jA.interaction.element,ae=dA(oA(jA.state.options.origin,null,null,[le])),de=ae||BA(jA.interactable,le,jA.interaction.prepared.name);return de}(R):{x:0,y:0};if(yA.offset==="startCoords")F={x:Z.coords.start.page.x,y:Z.coords.start.page.y};else{var DA=oA(yA.offset,nA,lA,[Z]);(F=dA(DA)||{x:0,y:0}).x+=xA.x,F.y+=xA.y}var PA=yA.relativePoints;mA.offsets=hA&&PA&&PA.length?PA.map(function(jA,le){return{index:le,relativePoint:jA,x:IA.left-hA.width*jA.x+F.x,y:IA.top-hA.height*jA.y+F.y}}):[{index:0,relativePoint:null,x:F.x,y:F.y}]},set:function(R){var F=R.interaction,Z=R.coords,nA=R.state,lA=nA.options,hA=nA.offsets,mA=BA(F.interactable,F.element,F.prepared.name),IA=AA({},Z),yA=[];lA.offsetWithOrigin||(IA.x-=mA.x,IA.y-=mA.y);for(var xA=0,DA=hA;xA<DA.length;xA++)for(var PA=DA[xA],jA=IA.x-PA.x,le=IA.y-PA.y,ae=0,de=lA.targets.length;ae<de;ae++){var ye=lA.targets[ae],Qe=void 0;(Qe=d.func(ye)?ye(jA,le,F._proxy,PA,ae):ye)&&yA.push({x:(d.number(Qe.x)?Qe.x:jA)+PA.x,y:(d.number(Qe.y)?Qe.y:le)+PA.y,range:d.number(Qe.range)?Qe.range:lA.range,source:ye,index:ae,offset:PA})}for(var kA={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},UA=0;UA<yA.length;UA++){var HA=yA[UA],VA=HA.range,Ce=HA.x-IA.x,He=HA.y-IA.y,Ke=rA(Ce,He),Oe=Ke<=VA;VA===1/0&&kA.inRange&&kA.range!==1/0&&(Oe=!1),kA.target&&!(Oe?kA.inRange&&VA!==1/0?Ke/VA<kA.distance/kA.range:VA===1/0&&kA.range!==1/0||Ke<kA.distance:!kA.inRange&&Ke<kA.distance)||(kA.target=HA,kA.distance=Ke,kA.range=VA,kA.inRange=Oe,kA.delta.x=Ce,kA.delta.y=He)}return kA.inRange&&(Z.x=kA.target.x,Z.y=kA.target.y),nA.closest=kA,kA},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Ys=Fn(Vr,"snap"),Co={start:function(R){var F=R.state,Z=R.edges,nA=F.options;if(!Z)return null;R.state={options:{targets:null,relativePoints:[{x:Z.left?0:1,y:Z.top?0:1}],offset:nA.offset||"self",origin:{x:0,y:0},range:nA.range}},F.targetFields=F.targetFields||[["width","height"],["x","y"]],Vr.start(R),F.offsets=R.state.offsets,R.state=F},set:function(R){var F=R.interaction,Z=R.state,nA=R.coords,lA=Z.options,hA=Z.offsets,mA={x:nA.x-hA[0].x,y:nA.y-hA[0].y};Z.options=AA({},lA),Z.options.targets=[];for(var IA=0,yA=lA.targets||[];IA<yA.length;IA++){var xA=yA[IA],DA=void 0;if(DA=d.func(xA)?xA(mA.x,mA.y,F):xA){for(var PA=0,jA=Z.targetFields;PA<jA.length;PA++){var le=jA[PA],ae=le[0],de=le[1];if(ae in DA||de in DA){DA.x=DA[ae],DA.y=DA[de];break}}Z.options.targets.push(DA)}}var ye=Vr.set(R);return Z.options=lA,ye},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Aa=Fn(Co,"snapSize"),Bo={aspectRatio:Bg,restrictEdges:mg,restrict:ht,restrictRect:Qg,restrictSize:Ti,snapEdges:Fn({start:function(R){var F=R.edges;return F?(R.state.targetFields=R.state.targetFields||[[F.left?"left":"right",F.top?"top":"bottom"]],Co.start(R)):null},set:Co.set,defaults:AA(Hi(Co.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Ys,snapSize:Aa,spring:yn,avoid:yn,transform:yn,rubberband:yn},Os={id:"modifiers",install:function(R){var F=R.interactStatic;for(var Z in R.usePlugin(Zo),R.usePlugin(Ks),F.modifiers=Bo,Bo){var nA=Bo[Z],lA=nA._defaults,hA=nA._methods;lA._methods=hA,R.defaults.perAction[Z]=lA}}},Ig=Os,er=function(R){w(Z,R);var F=Y(Z);function Z(nA,lA,hA,mA,IA,yA){var xA;if(I(this,Z),z(P(xA=F.call(this,IA)),hA),hA!==lA&&z(P(xA),lA),xA.timeStamp=yA,xA.originalEvent=hA,xA.type=nA,xA.pointerId=GA(lA),xA.pointerType=SA(lA),xA.target=mA,xA.currentTarget=null,nA==="tap"){var DA=IA.getPointerIndex(lA);xA.dt=xA.timeStamp-IA.pointers[DA].downTime;var PA=xA.timeStamp-IA.tapTime;xA.double=!!IA.prevTap&&IA.prevTap.type!=="doubletap"&&IA.prevTap.target===xA.target&&PA<500}else nA==="doubletap"&&(xA.dt=lA.timeStamp-IA.tapTime,xA.double=!0);return xA}return b(Z,[{key:"_subtractOrigin",value:function(nA){var lA=nA.x,hA=nA.y;return this.pageX-=lA,this.pageY-=hA,this.clientX-=lA,this.clientY-=hA,this}},{key:"_addOrigin",value:function(nA){var lA=nA.x,hA=nA.y;return this.pageX+=lA,this.pageY+=hA,this.clientX+=lA,this.clientY+=hA,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),Z}(Be),Ii={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(R){R.pointerEvents=Ii,R.defaults.actions.pointerEvents=Ii.defaults,AA(R.actions.phaselessTypes,Ii.types)},listeners:{"interactions:new":function(R){var F=R.interaction;F.prevTap=null,F.tapTime=0},"interactions:update-pointer":function(R){var F=R.down,Z=R.pointerInfo;!F&&Z.hold||(Z.hold={duration:1/0,timeout:null})},"interactions:move":function(R,F){var Z=R.interaction,nA=R.pointer,lA=R.event,hA=R.eventTarget;R.duplicate||Z.pointerIsDown&&!Z.pointerWasMoved||(Z.pointerIsDown&&Tt(R),oi({interaction:Z,pointer:nA,event:lA,eventTarget:hA,type:"move"},F))},"interactions:down":function(R,F){(function(Z,nA){for(var lA=Z.interaction,hA=Z.pointer,mA=Z.event,IA=Z.eventTarget,yA=Z.pointerIndex,xA=lA.pointers[yA].hold,DA=V(IA),PA={interaction:lA,pointer:hA,event:mA,eventTarget:IA,type:"hold",targets:[],path:DA,node:null},jA=0;jA<DA.length;jA++){var le=DA[jA];PA.node=le,nA.fire("pointerEvents:collect-targets",PA)}if(PA.targets.length){for(var ae=1/0,de=0,ye=PA.targets;de<ye.length;de++){var Qe=ye[de].eventable.options.holdDuration;Qe<ae&&(ae=Qe)}xA.duration=ae,xA.timeout=setTimeout(function(){oi({interaction:lA,eventTarget:IA,pointer:hA,event:mA,type:"hold"},nA)},ae)}})(R,F),oi(R,F)},"interactions:up":function(R,F){Tt(R),oi(R,F),function(Z,nA){var lA=Z.interaction,hA=Z.pointer,mA=Z.event,IA=Z.eventTarget;lA.pointerWasMoved||oi({interaction:lA,eventTarget:IA,pointer:hA,event:mA,type:"tap"},nA)}(R,F)},"interactions:cancel":function(R,F){Tt(R),oi(R,F)}},PointerEvent:er,fire:oi,collectEventTargets:ea,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function oi(R,F){var Z=R.interaction,nA=R.pointer,lA=R.event,hA=R.eventTarget,mA=R.type,IA=R.targets,yA=IA===void 0?ea(R,F):IA,xA=new er(mA,nA,lA,hA,Z,F.now());F.fire("pointerEvents:new",{pointerEvent:xA});for(var DA={interaction:Z,pointer:nA,event:lA,eventTarget:hA,targets:yA,type:mA,pointerEvent:xA},PA=0;PA<yA.length;PA++){var jA=yA[PA];for(var le in jA.props||{})xA[le]=jA.props[le];var ae=BA(jA.eventable,jA.node);if(xA._subtractOrigin(ae),xA.eventable=jA.eventable,xA.currentTarget=jA.node,jA.eventable.fire(xA),xA._addOrigin(ae),xA.immediatePropagationStopped||xA.propagationStopped&&PA+1<yA.length&&yA[PA+1].node!==xA.currentTarget)break}if(F.fire("pointerEvents:fired",DA),mA==="tap"){var de=xA.double?oi({interaction:Z,pointer:nA,event:lA,eventTarget:hA,type:"doubletap"},F):xA;Z.prevTap=de,Z.tapTime=de.timeStamp}return xA}function ea(R,F){var Z=R.interaction,nA=R.pointer,lA=R.event,hA=R.eventTarget,mA=R.type,IA=Z.getPointerIndex(nA),yA=Z.pointers[IA];if(mA==="tap"&&(Z.pointerWasMoved||!yA||yA.downTarget!==hA))return[];for(var xA=V(hA),DA={interaction:Z,pointer:nA,event:lA,eventTarget:hA,type:mA,path:xA,targets:[],node:null},PA=0;PA<xA.length;PA++){var jA=xA[PA];DA.node=jA,F.fire("pointerEvents:collect-targets",DA)}return mA==="hold"&&(DA.targets=DA.targets.filter(function(le){var ae,de;return le.eventable.options.holdDuration===((ae=Z.pointers[IA])==null||(de=ae.hold)==null?void 0:de.duration)})),DA.targets}function Tt(R){var F=R.interaction,Z=R.pointerIndex,nA=F.pointers[Z].hold;nA&&nA.timeout&&(clearTimeout(nA.timeout),nA.timeout=null)}var ta=Object.freeze({__proto__:null,default:Ii});function mo(R){var F=R.interaction;F.holdIntervalHandle&&(clearInterval(F.holdIntervalHandle),F.holdIntervalHandle=null)}var $s={id:"pointer-events/holdRepeat",install:function(R){R.usePlugin(Ii);var F=R.pointerEvents;F.defaults.holdRepeatInterval=0,F.types.holdrepeat=R.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(R,F){return R["pointerEvents:".concat(F)]=mo,R},{"pointerEvents:new":function(R){var F=R.pointerEvent;F.type==="hold"&&(F.count=(F.count||0)+1)},"pointerEvents:fired":function(R,F){var Z=R.interaction,nA=R.pointerEvent,lA=R.eventTarget,hA=R.targets;if(nA.type==="hold"&&hA.length){var mA=hA[0].eventable.options.holdRepeatInterval;mA<=0||(Z.holdIntervalHandle=setTimeout(function(){F.pointerEvents.fire({interaction:Z,eventTarget:lA,type:"hold",pointer:nA,event:nA},F)},mA))}}})},zs=$s,fg={id:"pointer-events/interactableTargets",install:function(R){var F=R.Interactable;F.prototype.pointerEvents=function(nA){return AA(this.events.options,nA),this};var Z=F.prototype._backCompatOption;F.prototype._backCompatOption=function(nA,lA){var hA=Z.call(this,nA,lA);return hA===this&&(this.events.options[nA]=lA),hA}},listeners:{"pointerEvents:collect-targets":function(R,F){var Z=R.targets,nA=R.node,lA=R.type,hA=R.eventTarget;F.interactables.forEachMatch(nA,function(mA){var IA=mA.events,yA=IA.options;IA.types[lA]&&IA.types[lA].length&&mA.testIgnoreAllow(yA,nA,hA)&&Z.push({node:nA,eventable:IA,props:{interactable:mA}})})},"interactable:new":function(R){var F=R.interactable;F.events.getRect=function(Z){return F.getRect(Z)}},"interactable:set":function(R,F){var Z=R.interactable,nA=R.options;AA(Z.events.options,F.pointerEvents.defaults),AA(Z.events.options,nA.pointerEvents||{})}}},wg=fg,bg={id:"pointer-events",install:function(R){R.usePlugin(ta),R.usePlugin(zs),R.usePlugin(wg)}},yg=bg,Dg={id:"reflow",install:function(R){var F=R.Interactable;R.actions.phases.reflow=!0,F.prototype.reflow=function(Z){return function(nA,lA,hA){for(var mA=nA.getAllElements(),IA=hA.window.Promise,yA=IA?[]:null,xA=function(){var PA=mA[DA],jA=nA.getRect(PA);if(!jA)return 1;var le,ae=$A(hA.interactions.list,function(Qe){return Qe.interacting()&&Qe.interactable===nA&&Qe.element===PA&&Qe.prepared.name===lA.name});if(ae)ae.move(),yA&&(le=ae._reflowPromise||new IA(function(Qe){ae._reflowResolve=Qe}));else{var de=EA(jA),ye=function(Qe){return{coords:Qe,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:de.x,y:de.y},client:{x:de.x,y:de.y},timeStamp:hA.now()});le=function(Qe,kA,UA,HA,VA){var Ce=Qe.interactions.new({pointerType:"reflow"}),He={interaction:Ce,event:VA,pointer:VA,eventTarget:UA,phase:"reflow"};Ce.interactable=kA,Ce.element=UA,Ce.prevEvent=VA,Ce.updatePointer(VA,VA,UA,!0),iA(Ce.coords.delta),gt(Ce.prepared,HA),Ce._doPhase(He);var Ke=Qe.window,Oe=Ke.Promise,on=Oe?new Oe(function(zn){Ce._reflowResolve=zn}):void 0;return Ce._reflowPromise=on,Ce.start(HA,kA,UA),Ce._interacting?(Ce.move(He),Ce.end(VA)):(Ce.stop(),Ce._reflowResolve()),Ce.removePointer(VA,VA),on}(hA,nA,PA,lA,ye)}yA&&yA.push(le)},DA=0;DA<mA.length&&!xA();DA++);return yA&&IA.all(yA).then(function(){return nA})}(this,Z,R)}},listeners:{"interactions:stop":function(R,F){var Z=R.interaction;Z.pointerType==="reflow"&&(Z._reflowResolve&&Z._reflowResolve(),function(nA,lA){nA.splice(nA.indexOf(lA),1)}(F.interactions.list,Z))}}},Ui=Dg;if(Gt.use(ni),Gt.use(Jr),Gt.use(yg),Gt.use(ug),Gt.use(Ig),Gt.use(ti),Gt.use(zA),Gt.use(ze),Gt.use(Ui),Gt.default=Gt,u(n)==="object"&&n)try{n.exports=Gt}catch{}return Gt.default=Gt,Gt})}(Cs,Cs.exports);var c_=Cs.exports;const Jp=fu(c_),Ag=A.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(n,{expose:e,emit:t}){const i=n,u=t,I=A.inject(Fp),o=A.inject(Rp);if(!I)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const b=A.ref(null),y=A.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let w=!1,M=!1,N=NaN,P=NaN,Y=NaN,G=NaN,K=-1,D=-1,E=-1,L=-1,_=i.x,v=i.y,B=i.w,p=i.h;const d=A.ref(),l=A.reactive({i:A.toRef(i,"i"),state:y,wrapper:d,calcXY:oA});function g(cA){j(cA)}function s(){tA()}function h(cA){In(i.isDraggable)&&(y.draggable=cA)}function C(cA){In(i.isResizable)&&(y.resizable=cA)}function a(cA){In(i.isBounded)&&(y.bounded=cA)}function r(cA){y.transformScale=cA}function m(cA){y.rowHeight=cA}function Q(cA){y.maxRows=cA}function x(){y.rtl=zp()==="rtl",tA()}function S(cA){y.cols=Math.floor(cA)}I.increaseItem(l),A.onBeforeMount(()=>{y.rtl=zp()==="rtl"}),A.onMounted(()=>{I.responsive&&I.lastBreakpoint?y.cols=Op(I.lastBreakpoint,I.cols):y.cols=I.colNum,y.rowHeight=I.rowHeight,y.containerWidth=I.width!==null?I.width:100,y.margin=I.margin!==void 0?I.margin.map(Number):[10,10],y.maxRows=I.maxRows,In(i.isDraggable)?y.draggable=I.isDraggable:y.draggable=i.isDraggable,In(i.isResizable)?y.resizable=I.isResizable:y.resizable=i.isResizable,In(i.isBounded)?y.bounded=I.isBounded:y.bounded=i.isBounded,y.transformScale=I.transformScale,y.useCssTransforms=I.useCssTransforms,y.useStyleCursor=I.useStyleCursor,A.watchEffect(()=>{_=i.x,v=i.y,p=i.h,B=i.w,jt(k)}),o.on("updateWidth",g),o.on("compact",s),o.on("setDraggable",h),o.on("setResizable",C),o.on("setBounded",a),o.on("setTransformScale",r),o.on("setRowHeight",m),o.on("setMaxRows",Q),o.on("directionchange",x),o.on("setColNum",S)}),A.onBeforeUnmount(()=>{o.off("updateWidth",g),o.off("compact",s),o.off("setDraggable",h),o.off("setResizable",C),o.off("setBounded",a),o.off("setTransformScale",r),o.off("setRowHeight",m),o.off("setMaxRows",Q),o.off("directionchange",x),o.off("setColNum",S),b.value&&(b.value.unset(),b.value=null),I.decreaseItem(l)}),e({state:y,wrapper:d});const T=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,$=A.computed(()=>y.resizable&&!i.static),eA=A.computed(()=>I.isMirrored?!y.rtl:y.rtl),W=A.computed(()=>(y.draggable||y.resizable)&&!i.static),J=n_("item"),O=A.computed(()=>({[J.b()]:!0,[J.bm("resizable")]:$.value,[J.bm("static")]:i.static,[J.bm("resizing")]:y.isResizing,[J.bm("dragging")]:y.isDragging,[J.bm("transform")]:y.useCssTransforms,[J.bm("rtl")]:eA.value,[J.bm("no-touch")]:T&&W.value})),q=A.computed(()=>[J.be("resizer"),eA.value&&J.bem("resizer","rtl")].filter(Boolean));A.watch(()=>i.isDraggable,cA=>{y.draggable=cA}),A.watch(()=>i.static,()=>{jt(z),jt(iA)}),A.watch(()=>y.draggable,()=>{jt(z)}),A.watch(()=>i.isResizable,cA=>{y.resizable=cA}),A.watch(()=>i.isBounded,cA=>{y.bounded=cA}),A.watch(()=>y.resizable,()=>{jt(iA)}),A.watch(()=>y.rowHeight,()=>{jt(k),jt(V)}),A.watch([()=>y.cols,()=>y.containerWidth],()=>{jt(iA),jt(k),jt(V)}),A.watch([()=>i.minH,()=>i.maxH,()=>i.minW,()=>i.maxW],()=>{jt(iA)}),A.watch(eA,()=>{jt(iA),jt(k)}),A.watch([()=>I.margin,()=>I.margin[0],()=>I.margin[1]],()=>{const cA=I.margin;!cA||cA[0]===y.margin[0]&&cA[1]===y.margin[1]||(y.margin=cA.map(Number),jt(k),jt(V))});function k(){i.x+i.w>y.cols?(_=0,B=i.w>y.cols?y.cols:i.w):(_=i.x,B=i.w);const cA=sA(_,v,B,p);y.isDragging&&(cA.top=y.dragging.top,eA.value?cA.right=y.dragging.left:cA.left=y.dragging.left),y.isResizing&&(cA.width=y.resizing.width,cA.height=y.resizing.height);let CA;y.useCssTransforms?eA.value?CA=Vk(cA.top,cA.right,cA.width,cA.height):CA=Xk(cA.top,cA.left,cA.width,cA.height):eA.value?CA=e_(cA.top,cA.right,cA.width,cA.height):CA=A_(cA.top,cA.left,cA.width,cA.height),y.style=CA}function V(){const cA={};for(const CA of["width","height"]){const vA=y.style[CA].match(/^(\d+)px$/);if(!vA)return;cA[CA]=vA[1]}u("container-resized",i.i,i.h,i.w,cA.height,cA.width)}function H(cA){if(i.static)return;const CA=cA.type;if(CA==="resizestart"&&y.isResizing||CA!=="resizestart"&&!y.isResizing)return;const vA=Up(cA);if(In(vA))return;const{x:GA,y:JA}=vA,qA={width:0,height:0};let WA;switch(CA){case"resizestart":{iA(),K=B,D=p,WA=sA(_,v,B,p),qA.width=WA.width,qA.height=WA.height,y.resizing=qA,y.isResizing=!0;break}case"resizemove":{!cA.edges.right&&!cA.edges.left&&(Y=GA),!cA.edges.top&&!cA.edges.bottom&&(G=JA);const ue=Yp(Y,G,GA,JA);eA.value?qA.width=y.resizing.width-ue.deltaX/y.transformScale:qA.width=y.resizing.width+ue.deltaX/y.transformScale,qA.height=y.resizing.height+ue.deltaY/y.transformScale,y.resizing=qA;break}case"resizeend":{WA=sA(_,v,B,p),qA.width=WA.width,qA.height=WA.height,y.resizing={width:-1,height:-1},y.isResizing=!1;break}}WA=BA(qA.height,qA.width),WA.w<i.minW&&(WA.w=i.minW),WA.w>i.maxW&&(WA.w=i.maxW),WA.h<i.minH&&(WA.h=i.minH),WA.h>i.maxH&&(WA.h=i.maxH),WA.h<1&&(WA.h=1),WA.w<1&&(WA.w=1),Y=GA,G=JA,(B!==WA.w||p!==WA.h)&&u("resize",i.i,WA.h,WA.w,qA.height,qA.width),cA.type==="resizeend"&&(K!==B||D!==p)&&u("resized",i.i,WA.h,WA.w,qA.height,qA.width),o.emit("resizeEvent",cA.type,i.i,_,v,WA.h,WA.w)}function AA(cA){if(i.static||y.isResizing)return;const CA=cA.type;if(CA==="dragstart"&&y.isDragging||CA!=="dragstart"&&!y.isDragging)return;const vA=Up(cA);if(In(vA))return;const{x:GA,y:JA}=vA,qA=cA.target;if(!qA.offsetParent)return;const WA={top:0,left:0};switch(CA){case"dragstart":{E=_,L=v;const te=qA.offsetParent.getBoundingClientRect(),LA=qA.getBoundingClientRect(),SA=LA.left/y.transformScale,ZA=te.left/y.transformScale,Be=LA.right/y.transformScale,De=te.right/y.transformScale,Se=LA.top/y.transformScale,YA=te.top/y.transformScale;eA.value?WA.left=(Be-De)*-1:WA.left=SA-ZA,WA.top=Se-YA,y.dragging=WA,y.isDragging=!0;break}case"dragmove":{const te=Yp(N,P,GA,JA);if(eA.value?WA.left=y.dragging.left-te.deltaX/y.transformScale:WA.left=y.dragging.left+te.deltaX/y.transformScale,WA.top=y.dragging.top+te.deltaY/y.transformScale,y.bounded){const LA=qA.offsetParent.clientHeight-EA(i.h,y.rowHeight,y.margin[1]);WA.top=uA(WA.top,0,LA);const SA=dA(),ZA=y.containerWidth-EA(i.w,SA,y.margin[0]);WA.left=uA(WA.left,0,ZA)}y.dragging=WA;break}case"dragend":{const te=qA.offsetParent.getBoundingClientRect(),LA=qA.getBoundingClientRect(),SA=LA.left/y.transformScale,ZA=te.left/y.transformScale,Be=LA.right/y.transformScale,De=te.right/y.transformScale,Se=LA.top/y.transformScale,YA=te.top/y.transformScale;eA.value?WA.left=(Be-De)*-1:WA.left=SA-ZA,WA.top=Se-YA,y.dragging={top:-1,left:-1},y.isDragging=!1;break}}let ue;eA.value,ue=oA(WA.top,WA.left),N=GA,P=JA,(_!==ue.x||v!==ue.y)&&u("move",i.i,ue.x,ue.y),cA.type==="dragend"&&(E!==_||L!==v)&&u("moved",i.i,ue.x,ue.y),o.emit("dragEvent",cA.type,i.i,ue.x,ue.y,p,B)}function sA(cA,CA,vA,GA){const JA=dA();let qA;return eA.value?qA={right:Math.round(JA*cA+(cA+1)*y.margin[0]),top:Math.round(y.rowHeight*CA+(CA+1)*y.margin[1]),width:vA===1/0?vA:Math.round(JA*vA+Math.max(0,vA-1)*y.margin[0]),height:GA===1/0?GA:Math.round(y.rowHeight*GA+Math.max(0,GA-1)*y.margin[1])}:qA={left:Math.round(JA*cA+(cA+1)*y.margin[0]),top:Math.round(y.rowHeight*CA+(CA+1)*y.margin[1]),width:vA===1/0?vA:Math.round(JA*vA+Math.max(0,vA-1)*y.margin[0]),height:GA===1/0?GA:Math.round(y.rowHeight*GA+Math.max(0,GA-1)*y.margin[1])},qA}function oA(cA,CA){const vA=dA();let GA=Math.round((CA-y.margin[0])/(vA+y.margin[0])),JA=Math.round((cA-y.margin[1])/(y.rowHeight+y.margin[1]));return GA=Math.max(Math.min(GA,y.cols-B),0),JA=Math.max(Math.min(JA,y.maxRows-p),0),{x:GA,y:JA}}function dA(){return(y.containerWidth-y.margin[0]*(y.cols+1))/y.cols}function EA(cA,CA,vA){return Number.isFinite(cA)?Math.round(CA*cA+Math.max(0,cA-1)*vA):cA}function uA(cA,CA,vA){return Math.max(Math.min(cA,vA),CA)}function BA(cA,CA,vA=!1){const GA=dA();let JA=Math.round((CA+y.margin[0])/(GA+y.margin[0])),qA=0;return vA?qA=Math.ceil((cA+y.margin[1])/(y.rowHeight+y.margin[1])):qA=Math.round((cA+y.margin[1])/(y.rowHeight+y.margin[1])),JA=Math.max(Math.min(JA,y.cols-_),0),qA=Math.max(Math.min(qA,y.maxRows-v),0),{w:JA,h:qA}}function j(cA,CA){y.containerWidth=cA}function tA(){k()}function rA(){!b.value&&d.value&&(b.value=Jp(d.value),y.useStyleCursor||b.value.styleCursor(!1))}const gA=xp(AA);function z(){if(rA(),!!b.value)if(y.draggable&&!i.static){const cA={ignoreFrom:i.dragIgnoreFrom,allowFrom:i.dragAllowFrom,...i.dragOption};b.value.draggable(cA),w||(w=!0,b.value.on("dragstart dragmove dragend",CA=>{CA.type==="dragmove"?gA(CA):AA(CA)}))}else b.value.draggable({enabled:!1})}const X=xp(H);function iA(){if(rA(),!!b.value)if(y.resizable&&!i.static){const cA=sA(0,0,i.maxW,i.maxH),CA=sA(0,0,i.minW,i.minH),vA={edges:{left:eA.value?`.${q.value[0]}`:!1,right:eA.value?!1:`.${q.value[0]}`,bottom:`.${q.value[0]}`,top:!1},ignoreFrom:i.resizeIgnoreFrom,restrictSize:{min:{height:CA.height*y.transformScale,width:CA.width*y.transformScale},max:{height:cA.height*y.transformScale,width:cA.width*y.transformScale}},...i.resizeOption};i.preserveAspectRatio&&(vA.modifiers=[Jp.modifiers.aspectRatio({ratio:"preserve"})]),b.value.resizable(vA),M||(M=!0,b.value.on("resizestart resizemove resizeend",GA=>{GA.type==="resizemove"?X(GA):H(GA)}))}else b.value.resizable({enabled:!1})}return(cA,CA)=>(A.openBlock(),A.createElementBlock("section",{ref_key:"wrapper",ref:d,class:A.normalizeClass(O.value),style:A.normalizeStyle(y.style)},[A.renderSlot(cA.$slots,"default"),$.value?(A.openBlock(),A.createElementBlock("span",{key:0,class:A.normalizeClass(q.value)},null,2)):A.createCommentVNode("",!0)],6))}}),ro=typeof window<"u";var Zp;ro&&(Zp=window==null?void 0:window.navigator)!=null&&Zp.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Wp(n){return n!=null}function Kr(){}const g_=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(g_)));const u_=ro&&("ontouchstart"in window||h_()>0),d_=u_?"pointerdown":"click";function h_(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function p_(n,e,t=window.Event){const{type:i,bubbles:u=!1,cancelable:I=!1,...o}=e;if(!Wp(i)||i==="")return!1;let b;return Wp(t)?b=new t(i,{bubbles:u,cancelable:I}):(b=document.createEvent("HTMLEvents"),b.initEvent(i,u,I)),Object.assign(b,o),n.dispatchEvent(b)}const C_="clickoutside",B_=new Set;ro&&document.addEventListener(d_,n=>{const e=n.target,t=n.composedPath&&n.composedPath();B_.forEach(i=>{i!==e&&(t?!t.includes(i):!i.contains(e))&&(!i.__transferElement||i.__transferElement!==e&&!i.__transferElement.contains(e))&&p_(i,{type:C_})})},!0);const m_=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let Tr;if(ro){for(const n of m_)if(n[1]in document){Tr=n;break}}const E_=!!Tr;A.computed(()=>!1);const Q_=new Set,I_=new WeakMap;if(ro&&Tr){const n=Tr[2],e=Tr[4];document.addEventListener(e,()=>{if(Q_.forEach(t=>{t.value=!1}),document[n]){const t=I_.get(document[n]);t&&(t.value=!0)}},!1)}const jp=new Map;jp.set("x",0),jp.set("y",0);var ao=[],f_=function(){return ao.some(function(n){return n.activeTargets.length>0})},w_=function(){return ao.some(function(n){return n.skippedTargets.length>0})},qp="ResizeObserver loop completed with undelivered notifications.",b_=function(){var n;typeof ErrorEvent=="function"?n=new ErrorEvent("error",{message:qp}):(n=document.createEvent("Event"),n.initEvent("error",!1,!1),n.message=qp),window.dispatchEvent(n)},Ur;(function(n){n.BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ur||(Ur={}));var so=function(n){return Object.freeze(n)},y_=function(){function n(e,t){this.inlineSize=e,this.blockSize=t,so(this)}return n}(),Xp=function(){function n(e,t,i,u){return this.x=e,this.y=t,this.width=i,this.height=u,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,so(this)}return n.prototype.toJSON=function(){var e=this,t=e.x,i=e.y,u=e.top,I=e.right,o=e.bottom,b=e.left,y=e.width,w=e.height;return{x:t,y:i,top:u,right:I,bottom:o,left:b,width:y,height:w}},n.fromRect=function(e){return new n(e.x,e.y,e.width,e.height)},n}(),eg=function(n){return n instanceof SVGElement&&"getBBox"in n},Vp=function(n){if(eg(n)){var e=n.getBBox(),t=e.width,i=e.height;return!t&&!i}var u=n,I=u.offsetWidth,o=u.offsetHeight;return!(I||o||n.getClientRects().length)},AC=function(n){var e;if(n instanceof Element)return!0;var t=(e=n==null?void 0:n.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(t&&n instanceof t.Element)},D_=function(n){switch(n.tagName){case"INPUT":if(n.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Yr=typeof window<"u"?window:{},Bs=new WeakMap,eC=/auto|scroll/,v_=/^tb|vertical/,k_=/msie|trident/i.test(Yr.navigator&&Yr.navigator.userAgent),Ai=function(n){return parseFloat(n||"0")},$o=function(n,e,t){return n===void 0&&(n=0),e===void 0&&(e=0),t===void 0&&(t=!1),new y_((t?e:n)||0,(t?n:e)||0)},tC=so({devicePixelContentBoxSize:$o(),borderBoxSize:$o(),contentBoxSize:$o(),contentRect:new Xp(0,0,0,0)}),nC=function(n,e){if(e===void 0&&(e=!1),Bs.has(n)&&!e)return Bs.get(n);if(Vp(n))return Bs.set(n,tC),tC;var t=getComputedStyle(n),i=eg(n)&&n.ownerSVGElement&&n.getBBox(),u=!k_&&t.boxSizing==="border-box",I=v_.test(t.writingMode||""),o=!i&&eC.test(t.overflowY||""),b=!i&&eC.test(t.overflowX||""),y=i?0:Ai(t.paddingTop),w=i?0:Ai(t.paddingRight),M=i?0:Ai(t.paddingBottom),N=i?0:Ai(t.paddingLeft),P=i?0:Ai(t.borderTopWidth),Y=i?0:Ai(t.borderRightWidth),G=i?0:Ai(t.borderBottomWidth),K=i?0:Ai(t.borderLeftWidth),D=N+w,E=y+M,L=K+Y,_=P+G,v=b?n.offsetHeight-_-n.clientHeight:0,B=o?n.offsetWidth-L-n.clientWidth:0,p=u?D+L:0,d=u?E+_:0,l=i?i.width:Ai(t.width)-p-B,g=i?i.height:Ai(t.height)-d-v,s=l+D+B+L,h=g+E+v+_,C=so({devicePixelContentBoxSize:$o(Math.round(l*devicePixelRatio),Math.round(g*devicePixelRatio),I),borderBoxSize:$o(s,h,I),contentBoxSize:$o(l,g,I),contentRect:new Xp(N,y,l,g)});return Bs.set(n,C),C},iC=function(n,e,t){var i=nC(n,t),u=i.borderBoxSize,I=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case Ur.DEVICE_PIXEL_CONTENT_BOX:return o;case Ur.BORDER_BOX:return u;default:return I}},__=function(){function n(e){var t=nC(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=so([t.borderBoxSize]),this.contentBoxSize=so([t.contentBoxSize]),this.devicePixelContentBoxSize=so([t.devicePixelContentBoxSize])}return n}(),oC=function(n){if(Vp(n))return 1/0;for(var e=0,t=n.parentNode;t;)e+=1,t=t.parentNode;return e},M_=function(){var n=1/0,e=[];ao.forEach(function(I){if(I.activeTargets.length!==0){var o=[];I.activeTargets.forEach(function(b){var y=new __(b.target),w=oC(b.target);o.push(y),b.lastReportedSize=iC(b.target,b.observedBox),w<n&&(n=w)}),e.push(function(){I.callback.call(I.observer,o,I.observer)}),I.activeTargets.splice(0,I.activeTargets.length)}});for(var t=0,i=e;t<i.length;t++){var u=i[t];u()}return n},rC=function(n){ao.forEach(function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach(function(t){t.isActive()&&(oC(t.target)>n?e.activeTargets.push(t):e.skippedTargets.push(t))})})},x_=function(){var n=0;for(rC(n);f_();)n=M_(),rC(n);return w_()&&b_(),n>0},tg,aC=[],S_=function(){return aC.splice(0).forEach(function(n){return n()})},N_=function(n){if(!tg){var e=0,t=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return S_()}).observe(t,i),tg=function(){t.textContent="".concat(e?e--:e++)}}aC.push(n),tg()},F_=function(n){N_(function(){requestAnimationFrame(n)})},ms=0,R_=function(){return!!ms},L_=250,G_={attributes:!0,characterData:!0,childList:!0,subtree:!0},sC=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],lC=function(n){return n===void 0&&(n=0),Date.now()+n},ng=!1,P_=function(){function n(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return n.prototype.run=function(e){var t=this;if(e===void 0&&(e=L_),!ng){ng=!0;var i=lC(e);F_(function(){var u=!1;try{u=x_()}finally{if(ng=!1,e=i-lC(),!R_())return;u?t.run(1e3):e>0?t.run(e):t.start()}})}},n.prototype.schedule=function(){this.stop(),this.run()},n.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,G_)};document.body?t():Yr.addEventListener("DOMContentLoaded",t)},n.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),sC.forEach(function(t){return Yr.addEventListener(t,e.listener,!0)}))},n.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),sC.forEach(function(t){return Yr.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},n}(),ig=new P_,cC=function(n){!ms&&n>0&&ig.start(),ms+=n,!ms&&ig.stop()},H_=function(n){return!eg(n)&&!D_(n)&&getComputedStyle(n).display==="inline"},K_=function(){function n(e,t){this.target=e,this.observedBox=t||Ur.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var e=iC(this.target,this.observedBox,!0);return H_(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},n}(),T_=function(){function n(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return n}(),Es=new WeakMap,gC=function(n,e){for(var t=0;t<n.length;t+=1)if(n[t].target===e)return t;return-1},Qs=function(){function n(){}return n.connect=function(e,t){var i=new T_(e,t);Es.set(e,i)},n.observe=function(e,t,i){var u=Es.get(e),I=u.observationTargets.length===0;gC(u.observationTargets,t)<0&&(I&&ao.push(u),u.observationTargets.push(new K_(t,i&&i.box)),cC(1),ig.schedule())},n.unobserve=function(e,t){var i=Es.get(e),u=gC(i.observationTargets,t),I=i.observationTargets.length===1;u>=0&&(I&&ao.splice(ao.indexOf(i),1),i.observationTargets.splice(u,1),cC(-1))},n.disconnect=function(e){var t=this,i=Es.get(e);i.observationTargets.slice().forEach(function(u){return t.unobserve(e,u.target)}),i.activeTargets.splice(0,i.activeTargets.length)},n}(),U_=function(){function n(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Qs.connect(this,e)}return n.prototype.observe=function(e,t){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!AC(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Qs.observe(this,e,t)},n.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!AC(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Qs.unobserve(this,e)},n.prototype.disconnect=function(){Qs.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}();const Is=new WeakMap;function Y_(n){var e;for(let t=0,i=n.length;t<i;++t){const u=n[t],I=Is.get(u.target);if(typeof I=="function"){const{inlineSize:o,blockSize:b}=(e=u.borderBoxSize)==null?void 0:e[0],{offsetWidth:y,offsetHeight:w}=u.target;I(Object.assign(u,{offsetWidth:y,offsetHeight:w,width:o??y,height:b??w}))}}}const uC=new(ro&&window.ResizeObserver||U_)(Y_);function dC(n,e){Is.set(n,e),uC.observe(n)}function hC(n){Is.has(n)&&(uC.unobserve(n),Is.delete(n))}function O_(n={}){let e=Kr;const t=A.watch(()=>A.unref(n.target),u=>{e(),!(!u||typeof n.onResize!="function")&&(dC(u,n.onResize),e=()=>{hC(u),e=Kr})},{immediate:!0}),i=()=>{t(),e()};return A.getCurrentScope()&&A.onScopeDispose(i),{observeResize:dC,unobserveResize:hC,unobserve:i}}const $_=A.ref(!1);A.computed(()=>$_.value);const pC="__theme_style__",og="__theme_observer__",CC=A.reactive(new Map),BC=new Map;A.watch(CC,()=>{if(!ro)return;BC.clear();const n=document.head.querySelector(`#${pC}`);n&&document.head.removeChild(n);const e=document.createElement("style");let t=`.${og} { width: 1px }`,i=1;for(const[u,[I,o]]of CC.entries())t+=` html.${I} .${og}, .${o} .${og} { width: ${++i}px }`,BC.set(i,u);e.textContent=t,e.id=pC,document.head.appendChild(e)});const z_=A.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(n,{expose:e,emit:t}){const i=n,u=t,I=A.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),o=new Map,b=A.ref(i.layout),y=A.ref(),{observeResize:w,unobserveResize:M}=O_(),N=$k();N.on("resizeEvent",P),N.on("dragEvent",Y),A.onBeforeMount(()=>{u("layout-before-mount",b.value)}),A.onMounted(()=>{u("layout-mounted",b.value),A.nextTick(()=>{t_(b.value),I.originalLayout=b.value,A.nextTick(()=>{g(),y.value&&w(y.value,zk(_,16)),Oo(b.value,i.verticalCompact),u("layout-updated",b.value),L(),_()})})}),A.onBeforeUnmount(()=>{N.clearAll(),y.value&&M(y.value)});function P(h,C,a,r,m,Q){d(h,C,a,r,m,Q)}function Y(h,C,a,r,m,Q){p(h,C,a,r,m,Q)}A.watch(()=>I.width,(h,C)=>{A.nextTick(()=>{N.emit("updateWidth",h),C===-1&&A.nextTick(()=>{u("layout-ready",b.value)}),L()})}),A.watch(()=>[i.layout,i.layout.length],()=>{b.value=i.layout,E()}),A.watch(()=>i.colNum,h=>{N.emit("setColNum",h)}),A.watch(()=>i.rowHeight,h=>{N.emit("setRowHeight",h)}),A.watch(()=>i.isDraggable,h=>{N.emit("setDraggable",h)}),A.watch(()=>i.isResizable,h=>{N.emit("setResizable",h)}),A.watch(()=>i.isBounded,h=>{N.emit("setBounded",h)}),A.watch(()=>i.transformScale,h=>{N.emit("setTransformScale",h)}),A.watch(()=>i.responsive,h=>{h||(u("update:layout",I.originalLayout),N.emit("setColNum",i.colNum)),_()}),A.watch(()=>i.maxRows,h=>{N.emit("setMaxRows",h)}),A.watch([()=>i.margin,()=>i.margin[1]],L),A.provide(Fp,A.reactive({...A.toRefs(i),...A.toRefs(I),increaseItem:G,decreaseItem:K})),A.provide(Rp,N),e({state:I,getItem:D,resizeEvent:d,dragEvent:p,layoutUpdate:E});function G(h){o.set(h.i,h)}function K(h){o.delete(h.i)}function D(h){return o.get(h)}function E(){if(!In(b.value)&&!In(I.originalLayout)){if(b.value.length!==I.originalLayout.length){const h=s(b.value,I.originalLayout);if(h.length>0)if(b.value.length>I.originalLayout.length)I.originalLayout=I.originalLayout.concat(h);else{const C=new Set(h.map(a=>a.i));I.originalLayout=I.originalLayout.filter(a=>!C.has(a.i))}I.lastLayoutLength=b.value.length,g()}Oo(b.value,i.verticalCompact),N.emit("updateWidth",I.width),L(),u("layout-updated",b.value)}}function L(){I.mergedStyle={height:v()}}function _(){y.value&&(I.width=y.value.offsetWidth),N.emit("resizeEvent")}function v(){if(!i.autoSize)return;const h=parseFloat(i.margin[1]);return Zk(b.value)*(i.rowHeight+h)+h+"px"}let B;function p(h,C,a,r,m,Q){let x=Gp(b.value,C);In(x)&&(x={h:0,w:0,x:0,y:0,i:""}),h==="dragstart"&&!i.verticalCompact&&(B=b.value.reduce((S,{i:T,x:$,y:eA})=>({...S,[T]:{x:$,y:eA}}),{})),h==="dragmove"||h==="dragstart"?(I.placeholder.i=C,I.placeholder.x=x.x,I.placeholder.y=x.y,I.placeholder.w=Q,I.placeholder.h=m,A.nextTick(()=>{I.isDragging=!0}),N.emit("updateWidth",I.width)):A.nextTick(()=>{I.isDragging=!1}),b.value=Vc(b.value,x,a,r,!0,i.preventCollision),i.restoreOnDrag?(x.static=!0,Oo(b.value,i.verticalCompact,B),x.static=!1):Oo(b.value,i.verticalCompact),N.emit("compact"),L(),h==="dragend"&&(B=void 0,u("layout-updated",b.value))}function d(h,C,a,r,m,Q){let x=Gp(b.value,C);In(x)&&(x={h:0,w:0,x:0,y:0,i:""});let S;if(i.preventCollision){const T=Pp(b.value,{...x,w:Q,h:m}).filter($=>$.i!==x.i);if(S=T.length>0,S){let $=1/0,eA=1/0;T.forEach(W=>{W.x>x.x&&($=Math.min($,W.x)),W.y>x.y&&(eA=Math.min(eA,W.y))}),Number.isFinite($)&&(x.w=$-x.x),Number.isFinite(eA)&&(x.h=eA-x.y)}}S||(x.w=Q,x.h=m),h==="resizestart"||h==="resizemove"?(I.placeholder.i=C,I.placeholder.x=a,I.placeholder.y=r,I.placeholder.w=x.w,I.placeholder.h=x.h,A.nextTick(()=>{I.isDragging=!0}),N.emit("updateWidth",I.width)):h&&A.nextTick(()=>{I.isDragging=!1}),i.responsive&&l(),Oo(b.value,i.verticalCompact),N.emit("compact"),L(),h==="resizeend"&&u("layout-updated",b.value)}function l(){const h=r_(i.breakpoints,I.width);if(h===I.lastBreakpoint)return;const C=Op(h,i.cols);!In(I.lastBreakpoint)&&!I.layouts[I.lastBreakpoint]&&(I.layouts[I.lastBreakpoint]=Xc(b.value));const a=a_(I.originalLayout,I.layouts,i.breakpoints,h,I.lastBreakpoint,C,i.verticalCompact);I.layouts[h]=a,I.lastBreakpoint!==h&&u("breakpoint-changed",h,a),b.value=a,u("update:layout",a),I.lastBreakpoint=h,N.emit("setColNum",C)}function g(){I.layouts=Object.assign({},i.responsiveLayouts)}function s(h,C){const a=new Set(C.map(x=>x.i)),r=new Set(h.map(x=>x.i)),m=h.filter(x=>!a.has(x.i)),Q=C.filter(x=>!r.has(x.i));return m.concat(Q)}return(h,C)=>(A.openBlock(),A.createElementBlock("div",{ref_key:"wrapper",ref:y,class:"vgl-layout",style:A.normalizeStyle(I.mergedStyle)},[h.$slots.default?A.renderSlot(h.$slots,"default",{key:0}):(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:1},A.renderList(b.value,a=>(A.openBlock(),A.createBlock(Ag,A.mergeProps({key:a.i,ref_for:!0},a),{default:A.withCtx(()=>[A.renderSlot(h.$slots,"item",{item:a})]),_:2},1040))),128)),A.withDirectives(A.createVNode(Ag,{class:"vgl-item--placeholder",x:I.placeholder.x,y:I.placeholder.y,w:I.placeholder.w,h:I.placeholder.h,i:I.placeholder.i},null,8,["x","y","w","h","i"]),[[A.vShow,I.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var n=document.createElement("style");n.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(n)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const mt=A.defineComponent({__name:"FormItemGroup",props:A.mergeModels({list:{}},{gridData:{},gridDataModifiers:{}}),emits:A.mergeModels(["gridItemMoved"],["update:gridData"]),setup(n,{emit:e}){const t=A.useModel(n,"gridData"),i=gi(),u=It(),I=A.ref({});function o(N,P){N&&(I.value[P]=N)}let b=[];const y=()=>{if(!t.value)return;const N=new Map;for(const P of t.value)N.has(P.x)||N.set(P.x,[]),N.get(P.x).push(P);for(const P of N.values()){P.sort((G,K)=>G.y-K.y);let Y=0;for(const G of P)G.y=Y,Y+=G.h}t.value=[...t.value]},w=e,M=()=>{w("gridItemMoved")};return A.onMounted(()=>{Object.keys(I.value).forEach(N=>{const P=I.value[N];if(!P)return;const Y=new ResizeObserver(G=>{for(let K of G){const D=K.contentRect.height+28;if(t.value){const E=t.value[0].rowHeight||30,L=t.value.find(_=>_.i===N);L&&(L.contentHeight=Math.ceil((D+8)/(E+8)),L.h>0&&(L.h=Math.ceil((D+8)/(E+8))))}}y()});Y.observe(P),b.push(Y)})}),A.onBeforeUnmount(()=>{b.forEach(N=>N.disconnect()),b=[]}),(N,P)=>A.unref(u).design?(A.openBlock(),A.createBlock(qc,{key:0,list:N.list,"empty-text":A.unref(i).canvas.emptyTip,"empty-size":18},null,8,["list","empty-text"])):t.value?(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:1},A.renderList(t.value,(Y,G)=>(A.openBlock(),A.createBlock(A.unref(Ag),{onMoved:M,key:Y.i,x:Y.x,y:Y.y,w:Y.w,h:Y.h,i:Y.i,class:A.normalizeClass(Y.h===0?"noPadding":"defaultPadding")},{default:A.withCtx(()=>[A.createElementVNode("div",{ref_for:!0,ref:K=>o(K,Y.i)},[A.createVNode(oo,A.mergeProps({ref_for:!0},N.list[G]),null,16)],512)]),_:2},1032,["x","y","w","h","i","class"]))),128)):(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:2},A.renderList(N.list,Y=>(A.openBlock(),A.createBlock(oo,A.mergeProps({key:Y.name,ref_for:!0},Y),null,16))),128))}}),J_={key:0,class:"btn-render-wrapper"},lo=ie(A.defineComponent({__name:"ButtonRender",props:{btns:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref({}),u=async o=>{if(o.onClick&&e){try{i.value[o.key]=!0,await e[o.onClick](t,o)}catch(b){console.error(b+`
|
|
105
105
|
onClick: ${o.onClick}`)}i.value[o.key]=!1}},I=o=>({...o,name:o.key,component:"Popover"});return(o,b)=>{const y=A.resolveComponent("el-button"),w=A.resolveComponent("el-tooltip"),M=A.resolveComponent("el-button-group");return o.btns&&o.btns.length>0?(A.openBlock(),A.createElementBlock("div",J_,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(o.btns,N=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:N.key},[N.component==="Popover"?(A.openBlock(),A.createBlock(mt,{key:0,list:[I(N)]},null,8,["list"])):N.component==="BtnGroup"?(A.openBlock(),A.createBlock(M,{key:1},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(N.children,P=>(A.openBlock(),A.createBlock(w,{key:P.key,disabled:!P.tooltip,content:P.tooltip,placement:"top"},{default:A.withCtx(()=>[P.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(y,{key:P.key,onClick:Y=>u(P),disabled:P.disabled,type:P.type,text:P.isTextBtn,link:P.isLinkBtn,plain:P.isPlainBtn||P.type!=="primary"&&!P.orange,color:P.orange?"#FAA21E":P.color,loading:i.value[P.key],class:A.normalizeClass({orangeBtn:P.orange})},{default:A.withCtx(()=>[P.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:P.icon.name,color:P.icon.color,class:A.normalizeClass({"btn-icon":P.text||P.label})},null,8,["name","color","class"])):A.createCommentVNode("",!0),A.createTextVNode(" "+A.toDisplayString(P.text||P.label),1)]),_:2},1032,["onClick","disabled","type","text","link","plain","color","loading","class"]))]),_:2},1032,["disabled","content"]))),128))]),_:2},1024)):N.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(y,{key:2,onClick:P=>u(N),disabled:N.disabled,type:N.type,text:N.isTextBtn,link:N.isLinkBtn,plain:N.isPlainBtn||N.type!=="primary"&&!N.orange,color:N.orange?"#FAA21E":N.color,loading:i.value[N.key],size:N.size,style:A.normalizeStyle(N.style),class:A.normalizeClass({orangeBtn:N.orange})},{default:A.withCtx(()=>{var P;return[A.createElementVNode("div",{class:A.normalizeClass(["flex items-center gap-2 direction",{"flex-row-reverse":N.isReverse}])},[N.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:N.icon.name,color:N.icon.color,size:((P=N==null?void 0:N.icon)==null?void 0:P.size)||"small",class:A.normalizeClass({"btn-icon":N.text||N.label})},null,8,["name","color","size","class"])):A.createCommentVNode("",!0),A.createTextVNode(" "+A.toDisplayString(N.text||N.label),1)],2)]}),_:2},1032,["onClick","disabled","type","text","link","plain","color","loading","size","style","class"]))],64))),128))])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-49a497b9"]]),Z_={key:0,class:"dropdown-render-wrapper"},W_=ie(A.defineComponent({__name:"dropdownRender",props:{dropdowns:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=async(u,I)=>{if(I.onClick&&e)try{await e[I.onClick](t,u)}catch(o){console.error(o+`
|
|
106
|
-
onClick: ${I.onClick}`)}};return(u,I)=>{const o=A.resolveComponent("el-button"),b=A.resolveComponent("el-dropdown-item"),y=A.resolveComponent("el-dropdown-menu"),w=A.resolveComponent("el-dropdown");return u.dropdowns&&u.dropdowns.length>0?(A.openBlock(),A.createElementBlock("div",Z_,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.dropdowns,M=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:M.key},[M.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(w,{key:0,disabled:M.disabled},{dropdown:A.withCtx(()=>[A.createVNode(y,null,{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(M.options,N=>(A.openBlock(),A.createBlock(b,{key:N.value,command:N.value,onClick:P=>i(N,M)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(N.label),1)]),_:2},1032,["command","onClick"]))),128))]),_:2},1024)]),default:A.withCtx(()=>[A.createVNode(o,{plain:"",color:M.color},{default:A.withCtx(()=>{var N,P;return[M.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:(N=M.icon)==null?void 0:N.name,class:"left-icon",color:(P=M.icon)==null?void 0:P.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(M.text),1),A.createVNode(xe,{name:"icon-gongnengjixiajiantou",class:"right-icon"})]}),_:2},1032,["color"])]),_:2},1032,["disabled"]))],64))),128))])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-b9eeb69a"]]),mC=ie(A.defineComponent({__name:"Popover",props:{title:{},placement:{},reference:{},trigger:{},hoverStyle:{},ostyle:{},children:{},width:{},size:{},hoverColor:{},noPadding:{type:Boolean}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref(!1),u=n,I=async()=>{var
|
|
107
|
-
onClick: ${o}`)}};return(o,b)=>{const y=A.resolveComponent("el-popover");return A.openBlock(),A.createBlock(y,{trigger:u.trigger||"hover",width:u.width,"popper-class":u.noPadding?"no-padding":"",title:u.title,placement:u.placement},{reference:A.withCtx(()=>{var w,M,N,P,Y;return[A.createElementVNode("div",{style:A.normalizeStyle(u.ostyle+(i.value?u.hoverStyle:"")),onMouseenter:b[0]||(b[0]=G=>i.value=!0),onMouseleave:b[1]||(b[1]=G=>i.value=!1)},[((w=u.reference)==null?void 0:w.component)==="Icon"?(A.openBlock(),A.createBlock(xe,{key:0,name:(N=(M=u.reference)==null?void 0:M.props)==null?void 0:N.name,color:i.value&&u.hoverColor?u.hoverColor:(Y=(P=u.reference)==null?void 0:P.props)==null?void 0:Y.color,class:"btn-icon cursor-pointer",size:u.size||"normal",onClick:I},null,8,["name","color","size"])):u.reference?(A.openBlock(),A.createBlock(A.unref(mt),{key:1,list:[u.reference]},null,8,["list"])):A.createCommentVNode("",!0)],36)]}),default:A.withCtx(()=>[A.createElementVNode("div",null,[o.children?(A.openBlock(),A.createBlock(A.unref(mt),{key:0,list:o.children},null,8,["list"])):A.createCommentVNode("",!0)])]),_:1},8,["trigger","width","popper-class","title","placement"])}}}),[["__scopeId","data-v-61f66fa0"]]),j_={title:"气泡框",component:"Popover",render:mC,icon:A.h(Ie,{name:"password"}),type:"layout",order:9},q_=["innerHTML"],X_=A.defineComponent({__name:"HtmlRender",props:{data:{}},setup(n){return(e,t)=>(A.openBlock(),A.createElementBlock("div",{innerHTML:e.data,class:"html-render"},null,8,q_))}}),V_={title:"HTML",component:"HtmlRender",icon:A.h(Ie,{name:"button"}),type:"assist",order:19,render:X_},A2={title:"分页",component:"Pagination",icon:A.h(Ie,{name:"library"}),type:"assist",order:10,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>G8))},e2=ie(A.defineComponent({__name:"Menu",props:{mode:{default:"horizontal"},data:{default:()=>[]},onClickMenu:{},defaultActive:{default:""},refresh:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref(null),u=n,I=A.ref(!0),o=b=>{e&&e[u.onClickMenu||"onClickMenu"](t,b)};return A.watch(()=>u.data,()=>{I.value=!1,A.nextTick(()=>{I.value=!0})}),A.watch(()=>u.defaultActive,()=>{i.value.updateActiveIndex(u.defaultActive)}),(b,y)=>{var N;const w=A.resolveComponent("el-menu-item"),M=A.resolveComponent("el-menu");return((N=b.data)==null?void 0:N.length)>0&&I.value?(A.openBlock(),A.createBlock(M,{key:0,ref_key:"menuRef",ref:i,"popper-class":"sui-menu-popper",mode:b.mode,class:"sui-menu","default-active":b.defaultActive},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data,P=>(A.openBlock(),A.createBlock(w,{onClick:Y=>o(P),key:P.id,index:P.id},{default:A.withCtx(()=>[P.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:P.icon.name,size:"x-small",class:"sui-menu-icon"},null,8,["name"])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(P.name),1)]),_:2},1032,["onClick","index"]))),128))]),_:1},8,["mode","default-active"])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-ad592696"]]),t2={title:"Menu",component:"Menu",icon:A.h(Ie,{name:"button"}),type:"assist",order:19,render:e2},n2={title:"筛选搜索",component:"FilterSearch",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>U8)),icon:A.h(Ie,{name:"card"}),type:"layout",order:10},i2={title:"无限滚动",component:"InfiniteScroll",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>sS)),icon:A.h(Ie,{name:"card"}),type:"layout",order:10,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"}]}},o2={title:"文字提示",component:"Tooltip",render:A.defineComponent({__name:"Component",props:{children:{},content:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-tooltip");return A.openBlock(),A.createBlock(i,A.mergeProps(e.$attrs,{content:e.content}),{default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(A.unref(mt),{list:e.children},null,8,["list"])])]),_:1},16,["content"])}}}),icon:A.h(Ie,{name:"card"}),type:"layout",order:9,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"}]}},r2={title:"进度条",component:"NormalProgress",render:ie(A.defineComponent({__name:"NormalProgress",props:{percentage:{},width:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-progress");return A.openBlock(),A.createElementBlock("div",{class:"normal-progress",style:A.normalizeStyle({width:e.width})},[A.createVNode(i,A.mergeProps(e.$attrs,{percentage:e.percentage}),null,16,["percentage"])],4)}}}),[["__scopeId","data-v-2257060b"]]),icon:A.h(Ie,{name:"card"}),type:"assist",order:10},a2=ie(A.defineComponent({__name:"IconInForm",props:{iconName:{},color:{},size:{}},setup(n){return(e,t)=>(A.openBlock(),A.createBlock(xe,{name:e.iconName,color:e.color,size:e.size,class:"icon-in-form"},null,8,["name","color","size"]))}}),[["__scopeId","data-v-acc35cea"]]),s2={title:"字体图标",component:"IconInForm",icon:A.h(Ie,{name:"icon"}),type:"assist",order:9,render:a2},l2=Object.freeze(Object.defineProperty({__proto__:null,Alert:w0,Button:Fb,Card:b0,CardList:ry,Cascader:D0,Checkbox:M0,Collapse:Bb,ColorInput:F0,ColorPicker:S0,CurdCard:Hb,Custom:L0,DatePicker:P0,Divider:K0,DragList:cy,Esign:U0,FilterSearch:n2,FormList:z0,Grid:J0,HtmlRender:V_,IconInForm:s2,InfiniteScroll:i2,Inline:Z0,Input:p0,InputNumber:j0,JsonEdit:k0,LogList:ly,Menu:t2,NormalProgress:r2,ObjGroup:Eb,OfferDetails:ay,OrderProgress:sy,Pagination:A2,Password:V0,Popover:j_,Radio:O0,Rate:nb,SearchInput:_b,SearchSelect:xb,Select:eb,SelectInput:ob,Slider:rb,Switch:sb,Table:Pb,Tabs:mb,Tag:lb,Text:gb,TextArea:B0,Title:ub,Tooltip:o2,Transfer:Db,Tree:Lb,Upload:hb,VerifyCode:Cb,Wrapper:Kb},Symbol.toStringTag,{value:"Module"})),zo=()=>{const n=A.inject(jn),e={...l2};return n!=null&&n.extendElements&&Object.assign(e,n.extendElements),e},Sn=()=>A.inject(Nd),ei=()=>{const n=A.inject("ruleModule",void 0),e=A.inject("pageMethodMap",{});return{ruleModule:n,pageMethodMap:e}},c2=A.defineComponent({__name:"Footer",setup(n){const e=It(),t=A.computed(()=>({marginLeft:e.schema.labelWidth+"px"}));return(i,u)=>{const I=A.resolveComponent("el-button");return A.unref(e).footer?(A.openBlock(),A.createElementBlock("div",{key:0,style:A.normalizeStyle(t.value)},[A.createVNode(I,{type:"primary",onClick:A.unref(e).submit,name:"submit-btn"},{default:A.withCtx(()=>u[1]||(u[1]=[A.createTextVNode("提交")])),_:1},8,["onClick"]),A.createVNode(I,{onClick:u[0]||(u[0]=()=>A.unref(e).resetFields()),name:"reset-btn"},{default:A.withCtx(()=>u[2]||(u[2]=[A.createTextVNode("重置")])),_:1})],4)):A.createCommentVNode("",!0)}}}),EC=n=>{let e=[];const t=["Table","DragList","Pagination","FilterSearch"];for(const i of n)t.includes(i.component)&&i.name&&!i.hidden&&e.push(i.name),i.children&&Array.isArray(i.children)&&(e=e.concat(EC(i.children)));return e},QC=n=>{var t;if(!(n!=null&&n.content))return[];let e=[];for(const i of n.content)i.type==="form"&&((t=i.schema)!=null&&t.items)&&(e=e.concat(EC(i.schema.items)));return e},IC=Symbol("RefManager"),g2=()=>{const n=new Map,e=new Map;function t(i){const u=i.sort().join(","),I=e.get(u);I&&I.resolve&&i.every(b=>n.has(b))&&(I.resolve(),I.resolve=null)}return{register:(i,u)=>{n.set(i,u);for(const[I]of e)t(I.split(","))},unregister:i=>{n.delete(i)},findRef:i=>n.get(i),waitForKeys:i=>{if(i.every(b=>n.has(b)))return Promise.resolve();const u=i.sort().join(",");if(e.has(u))return e.get(u).promise;let I=null;const o=new Promise(b=>{I=b});return e.set(u,{promise:o,resolve:I}),t(i),o}}},u2=()=>{const n=g2();return A.provide(IC,n),n},fC=()=>{const n=A.inject(IC);if(!n)throw new Error("RefManager not provided. Make sure to call provideRefManager first.");return n},fs=(n,e)=>{const t=fC();return t.register(n,e),()=>{t.unregister(n)}},d2=["id"],fn=A.defineComponent({__name:"index",props:A.mergeModels({schema:{},schemaContext:{},design:{type:Boolean},footer:{type:Boolean},pageRulePath:{}},{modelValue:{default:{}},modelModifiers:{},realValues:{default:{}},realValuesModifiers:{},schema:{default:A.reactive({labelWidth:150,labelPosition:"right",scrollToError:!0,size:"default",items:[]})},schemaModifiers:{}}),emits:A.mergeModels(["finish","failed","reset"],["update:modelValue","update:realValues","update:schema"]),setup(n,{expose:e,emit:t}){const i=n,u=A.inject("ruleMap",{}),I=A.inject("pageMethodMap",{}),o=A.computed(()=>i.schema.rulePath&&u[i.schema.rulePath]?i.schema.rulePath:i.pageRulePath);o.value&&A.provide("ruleModule",u[o.value]);const b=t,y=A.ref(),w=A.useModel(n,"modelValue"),M=A.useModel(n,"realValues"),N=(W,J,O)=>{O===void 0?w.value[W]=J:(M.value[W]=J,w.value[W]=O)},P=W=>w.value[W],Y=(W,J)=>{let O=m(K.value.items,W);O&&O.props&&(O.props.disabled=!J)},G=(W,J)=>{let O=m(K.value.items,W);O&&(O.hidden=!J)},K=A.useModel(n,"schema");if(K.value.onValuesChange){const W=A.ref(JSON.stringify(w.value));A.watch(()=>w.value,J=>{W.value=JSON.stringify(J)},{deep:!0}),A.watch(()=>W.value,(J,O)=>{const q=JSON.parse(J),k=JSON.parse(O),V=Object.keys(q).filter(H=>JSON.stringify(q[H])!==JSON.stringify(k[H]));if(!(!o.value||!K.value.onValuesChange))try{u[o.value][K.value.onValuesChange](I,V,k,q)}catch(H){console.error(H)}})}const D=A.reactive({}),E=A.ref({}),L=A.ref(!1),_=gi(),v=A.computed(()=>({...i.schemaContext,$values:w.value,$selectData:D,$locale:_.value})),B=fC();A.onMounted(async()=>{var O,q;if((O=i.schema)!=null&&O.initialValues){const k=(q=i.schema)==null?void 0:q.initialValues;C(k),w.value=ut.mergeWith(k,w.value,(V,H)=>{if(Array.isArray(V))return H})}await A.nextTick();const W=QC({content:[{type:"form",schema:K.value}]});if(await B.waitForKeys(W),!K.value||!K.value.onMounted||!o.value)return;const J=K.value.onMounted;try{u[o.value][J](I)}catch(k){console.error(k)}}),A.onActivated(()=>{if(!K.value||!K.value.onActivated||!o.value)return;const W=K.value.onActivated;try{u[o.value][W](I)}catch(J){console.error(J)}});const p=()=>{var W;return(W=y.value)==null?void 0:W.validate()},d=W=>{const J=["Input","InputNumber","Select","DatePicker","TextArea","SearchInput","SearchSelect","Radio","SelectInput","Upload"],O=q=>{q.forEach(k=>{J.includes(k.component)?k.props&&(k.props.disabled=W):k.children&&O(k.children)})};O(K.value.items)},l=()=>{var W;(W=p())==null||W.then(()=>{b("finish",w.value)}).catch(J=>{b("failed",J)})},g=W=>{if(b("reset"),W){let J=ut.cloneDeep(w.value);W.forEach(O=>{J=ko(J,O,ma(E.value,O))}),w.value=J}else w.value=ut.cloneDeep(A.toRaw(E.value))},s=(W,J=!0)=>{J?Object.assign(w.value,W):w.value=W},h=(W,J)=>{D[W]=J},C=W=>{E.value={...W}},a=()=>E.value,r=W=>{L.value=W},m=(W,J)=>{for(const O of W){if(O.name===J)return O;if(O.children&&O.children.length>0){const q=m(O.children,J);if(q)return q}}return null},Q=W=>{const J=m(K.value.items,W);!J||J.component!=="Select"||(J.props&&J.props.mode==="static"&&(Array.isArray(J.props.options)&&J.props.options.findIndex(q=>{var k;return q[((k=J.props)==null?void 0:k.valueKey)||"value"]===w.value[W]})!==-1||(w.value[W]=J.props.options[0][J.props.valueKey||"value"])),J.props&&(J.props.refreshFlag=!0))},x=W=>{var q;const J=W.target;if(Array.from(((q=J.parentElement)==null?void 0:q.classList)||[]).includes("is-focus")&&K.value.onEnter&&o.value)try{u[o.value][K.value.onEnter](I)}catch(k){console.error(k)}},S=W=>{var J;(J=y.value)==null||J.clearValidate(W)},T=W=>{K.value.hidden=W},$=A.useTemplateRef("rootRef"),eA=A.reactive({...A.toRefs(i),formValues:w,formRealValues:M,selectData:D,initialValues:E,context:v,vCodePass:L,updateFormValues:s,updateSelectData:h,updateInitialValues:C,getInitialValues:a,updateVCodePass:r,validate:p,resetFields:g,submit:l,setDisabled:d,findItemByName:m,setFieldEditSts:Y,setFieldVisibleSts:G,setFieldValue:N,getFieldValue:P,refreshDynamicListBox:Q,setHidden:T,clearValidate:S,rootRef:$,type:"form"});return A.provide(Sd,eA),e(eA),(W,J)=>{const O=A.resolveComponent("el-form");return A.openBlock(),A.createElementBlock("div",{ref_key:"rootRef",ref:$,id:K.value.key},[K.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(O,A.mergeProps({key:0,model:w.value,"label-position":K.value.labelPosition,size:K.value.size,"hide-required-asterisk":K.value.hideRequiredAsterisk,"scroll-to-error":K.value.scrollToError,"scroll-into-view-options":{behavior:"smooth",block:"center"},"require-asterisk-position":"right",ref_key:"formRef",ref:y},W.$attrs,{onSubmit:J[0]||(J[0]=A.withModifiers(()=>{},["prevent"])),onKeyup:A.withKeys(x,["enter"])}),{default:A.withCtx(()=>[A.renderSlot(W.$slots,"default"),A.createVNode(A.unref(mt),{list:K.value.items},null,8,["list"]),A.createVNode(c2)]),_:3},16,["model","label-position","size","hide-required-asterisk","scroll-to-error"]))],8,d2)}}}),h2=({elements:n,lang:e,omits:t})=>{const i=o=>Object.values(n).filter(b=>b.type===o&&!t.includes(b.component)).sort((b,y)=>b.order-y.order).map(b=>({...b,title:e==="zh"?b.title:b.component})),u=Fd[e];return[{title:u.menus.basicTitle,children:i("basic")},{title:u.menus.highTitle,children:i("high")},{title:u.menus.layoutTitle,children:i("layout")},{title:u.menus.assistTitle,children:i("assist")}]},p2=A.defineComponent({__name:"index",setup(n){var M;const e=A.ref(!1),t=Sn(),i=zo(),u=gi(),I=nc(),o=(M=t.templates)!=null&&M.length?t.templates:PE,b=A.computed(()=>h2({elements:i,omits:t.omitMenus||[],lang:I.value})),y=N=>{t.updateSchema(N)},w=N=>{const P={component:N.component,designKey:`design-${xi(4)}`,name:`form-${xi(4)}`};return N.type==="layout"&&(P.children=[]),P};return(N,P)=>{const Y=A.resolveComponent("el-button"),G=A.resolveComponent("el-space"),K=A.resolveComponent("el-drawer");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("form-design-left")),style:A.normalizeStyle({overflow:e.value?"hidden":"auto"})},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("template"))},[A.createVNode(Y,{class:A.normalizeClass(A.unref(je)("template-button")),size:"small",onClick:P[0]||(P[0]=D=>e.value=!0)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(A.unref(u).menus.useTemplateBtn),1)]),_:1},8,["class"]),A.createVNode(K,{modelValue:e.value,"onUpdate:modelValue":P[1]||(P[1]=D=>e.value=D),title:"模板列表",size:"70%",class:A.normalizeClass(A.unref(je)("template-drawer")),"append-to-body":!1},{default:A.withCtx(()=>[A.createVNode(G,{wrap:"",direction:"vertical",alignment:"start"},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(A.unref(o),({name:D,schema:E})=>(A.openBlock(),A.createBlock(Y,{key:D,onClick:L=>y(E)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(D),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","class"])],2),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.value,({title:D,children:E})=>(A.openBlock(),A.createElementBlock("div",{key:D,class:A.normalizeClass(A.unref(je)("menu"))},[A.createElementVNode("h4",{class:A.normalizeClass(A.unref(je)("menu-title"))},A.toDisplayString(D),3),A.createVNode(A.unref(kp),{class:A.normalizeClass(A.unref(je)("menu-list")),list:E,group:{name:"formDesign",pull:"clone",put:!1},sort:!1,"ghost-class":A.unref(je)("menu-list-ghost"),"drag-class":A.unref(je)("menu-list-drag"),"fallback-class":A.unref(je)("menu-list-fallback"),"item-key":"designKey",clone:w},{item:A.withCtx(({element:L})=>[A.createElementVNode("li",{class:A.normalizeClass(A.unref(je)("menu-list-item"))},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("menu-list-item-ico"))},[(A.openBlock(),A.createBlock(A.resolveDynamicComponent(L.icon),{class:"ico-content"}))],2),A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("menu-list-item-name")),style:A.normalizeStyle({fontSize:A.unref(I)==="zh"?"12px":"10px"})},A.toDisplayString(L.title),7)],2)]),_:2},1032,["class","list","ghost-class","drag-class","fallback-class"])],2))),128))],6)}}}),C2=n=>`<template>
|
|
106
|
+
onClick: ${I.onClick}`)}};return(u,I)=>{const o=A.resolveComponent("el-button"),b=A.resolveComponent("el-dropdown-item"),y=A.resolveComponent("el-dropdown-menu"),w=A.resolveComponent("el-dropdown");return u.dropdowns&&u.dropdowns.length>0?(A.openBlock(),A.createElementBlock("div",Z_,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.dropdowns,M=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:M.key},[M.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(w,{key:0,disabled:M.disabled},{dropdown:A.withCtx(()=>[A.createVNode(y,null,{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(M.options,N=>(A.openBlock(),A.createBlock(b,{key:N.value,command:N.value,onClick:P=>i(N,M)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(N.label),1)]),_:2},1032,["command","onClick"]))),128))]),_:2},1024)]),default:A.withCtx(()=>[A.createVNode(o,{plain:"",color:M.color},{default:A.withCtx(()=>{var N,P;return[M.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:(N=M.icon)==null?void 0:N.name,class:"left-icon",color:(P=M.icon)==null?void 0:P.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(M.text),1),A.createVNode(xe,{name:"icon-gongnengjixiajiantou",class:"right-icon"})]}),_:2},1032,["color"])]),_:2},1032,["disabled"]))],64))),128))])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-b9eeb69a"]]),mC=ie(A.defineComponent({__name:"Popover",props:{title:{},placement:{},reference:{},trigger:{},hoverStyle:{},ostyle:{},children:{},width:{},size:{},hoverColor:{},noPadding:{type:Boolean},beforeEnter:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref(!1),u=n,I=async()=>{var y,w;const b=(w=(y=u.reference)==null?void 0:y.props)==null?void 0:w.onClick;if(b&&e)try{await e[b](t)}catch(M){console.error(M+`
|
|
107
|
+
onClick: ${b}`)}},o=async()=>{if(u.beforeEnter&&e)try{await e[u.beforeEnter](t)}catch(b){console.error(b+`
|
|
108
|
+
onClick: ${u.beforeEnter}`)}};return(b,y)=>{const w=A.resolveComponent("el-popover");return A.openBlock(),A.createBlock(w,{trigger:u.trigger||"hover",width:u.width,"popper-class":u.noPadding?"no-padding":"",title:u.title,placement:u.placement,onBeforeEnter:o,"popper-style":{overflow:"auto"}},{reference:A.withCtx(()=>{var M,N,P,Y,G;return[A.createElementVNode("div",{style:A.normalizeStyle(u.ostyle+(i.value?u.hoverStyle:"")),onMouseenter:y[0]||(y[0]=K=>i.value=!0),onMouseleave:y[1]||(y[1]=K=>i.value=!1)},[((M=u.reference)==null?void 0:M.component)==="Icon"?(A.openBlock(),A.createBlock(xe,{key:0,name:(P=(N=u.reference)==null?void 0:N.props)==null?void 0:P.name,color:i.value&&u.hoverColor?u.hoverColor:(G=(Y=u.reference)==null?void 0:Y.props)==null?void 0:G.color,class:"btn-icon cursor-pointer",size:u.size||"normal",onClick:I},null,8,["name","color","size"])):u.reference?(A.openBlock(),A.createBlock(A.unref(mt),{key:1,list:[u.reference]},null,8,["list"])):A.createCommentVNode("",!0)],36)]}),default:A.withCtx(()=>[A.createElementVNode("div",null,[b.children?(A.openBlock(),A.createBlock(A.unref(mt),{key:0,list:b.children},null,8,["list"])):A.createCommentVNode("",!0)])]),_:1},8,["trigger","width","popper-class","title","placement"])}}}),[["__scopeId","data-v-a2ca82fe"]]),j_={title:"气泡框",component:"Popover",render:mC,icon:A.h(Ie,{name:"password"}),type:"layout",order:9},q_=["innerHTML"],X_=A.defineComponent({__name:"HtmlRender",props:{data:{}},setup(n){return(e,t)=>(A.openBlock(),A.createElementBlock("div",{innerHTML:e.data,class:"html-render"},null,8,q_))}}),V_={title:"HTML",component:"HtmlRender",icon:A.h(Ie,{name:"button"}),type:"assist",order:19,render:X_},A2={title:"分页",component:"Pagination",icon:A.h(Ie,{name:"library"}),type:"assist",order:10,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>G8))},e2=ie(A.defineComponent({__name:"Menu",props:{mode:{default:"horizontal"},data:{default:()=>[]},onClickMenu:{},defaultActive:{default:""},refresh:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref(null),u=n,I=A.ref(!0),o=b=>{e&&e[u.onClickMenu||"onClickMenu"](t,b)};return A.watch(()=>u.data,()=>{I.value=!1,A.nextTick(()=>{I.value=!0})}),A.watch(()=>u.defaultActive,()=>{i.value.updateActiveIndex(u.defaultActive)}),(b,y)=>{var N;const w=A.resolveComponent("el-menu-item"),M=A.resolveComponent("el-menu");return((N=b.data)==null?void 0:N.length)>0&&I.value?(A.openBlock(),A.createBlock(M,{key:0,ref_key:"menuRef",ref:i,"popper-class":"sui-menu-popper",mode:b.mode,class:"sui-menu","default-active":b.defaultActive},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.data,P=>(A.openBlock(),A.createBlock(w,{onClick:Y=>o(P),key:P.id,index:P.id},{default:A.withCtx(()=>[P.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:P.icon.name,size:"x-small",class:"sui-menu-icon"},null,8,["name"])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(P.name),1)]),_:2},1032,["onClick","index"]))),128))]),_:1},8,["mode","default-active"])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-ad592696"]]),t2={title:"Menu",component:"Menu",icon:A.h(Ie,{name:"button"}),type:"assist",order:19,render:e2},n2={title:"筛选搜索",component:"FilterSearch",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>U8)),icon:A.h(Ie,{name:"card"}),type:"layout",order:10},i2={title:"无限滚动",component:"InfiniteScroll",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>sS)),icon:A.h(Ie,{name:"card"}),type:"layout",order:10,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"}]}},o2={title:"文字提示",component:"Tooltip",render:A.defineComponent({__name:"Component",props:{children:{},content:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-tooltip");return A.openBlock(),A.createBlock(i,A.mergeProps(e.$attrs,{content:e.content}),{default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(A.unref(mt),{list:e.children},null,8,["list"])])]),_:1},16,["content"])}}}),icon:A.h(Ie,{name:"card"}),type:"layout",order:9,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"}]}},r2={title:"进度条",component:"NormalProgress",render:ie(A.defineComponent({__name:"NormalProgress",props:{percentage:{},width:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-progress");return A.openBlock(),A.createElementBlock("div",{class:"normal-progress",style:A.normalizeStyle({width:e.width})},[A.createVNode(i,A.mergeProps(e.$attrs,{percentage:e.percentage}),null,16,["percentage"])],4)}}}),[["__scopeId","data-v-2257060b"]]),icon:A.h(Ie,{name:"card"}),type:"assist",order:10},a2=ie(A.defineComponent({__name:"IconInForm",props:{iconName:{},color:{},size:{}},setup(n){return(e,t)=>(A.openBlock(),A.createBlock(xe,{name:e.iconName,color:e.color,size:e.size,class:"icon-in-form"},null,8,["name","color","size"]))}}),[["__scopeId","data-v-acc35cea"]]),s2={title:"字体图标",component:"IconInForm",icon:A.h(Ie,{name:"icon"}),type:"assist",order:9,render:a2},l2=Object.freeze(Object.defineProperty({__proto__:null,Alert:w0,Button:Fb,Card:b0,CardList:ry,Cascader:D0,Checkbox:M0,Collapse:Bb,ColorInput:F0,ColorPicker:S0,CurdCard:Hb,Custom:L0,DatePicker:P0,Divider:K0,DragList:cy,Esign:U0,FilterSearch:n2,FormList:z0,Grid:J0,HtmlRender:V_,IconInForm:s2,InfiniteScroll:i2,Inline:Z0,Input:p0,InputNumber:j0,JsonEdit:k0,LogList:ly,Menu:t2,NormalProgress:r2,ObjGroup:Eb,OfferDetails:ay,OrderProgress:sy,Pagination:A2,Password:V0,Popover:j_,Radio:O0,Rate:nb,SearchInput:_b,SearchSelect:xb,Select:eb,SelectInput:ob,Slider:rb,Switch:sb,Table:Pb,Tabs:mb,Tag:lb,Text:gb,TextArea:B0,Title:ub,Tooltip:o2,Transfer:Db,Tree:Lb,Upload:hb,VerifyCode:Cb,Wrapper:Kb},Symbol.toStringTag,{value:"Module"})),zo=()=>{const n=A.inject(jn),e={...l2};return n!=null&&n.extendElements&&Object.assign(e,n.extendElements),e},Sn=()=>A.inject(Nd),ei=()=>{const n=A.inject("ruleModule",void 0),e=A.inject("pageMethodMap",{});return{ruleModule:n,pageMethodMap:e}},c2=A.defineComponent({__name:"Footer",setup(n){const e=It(),t=A.computed(()=>({marginLeft:e.schema.labelWidth+"px"}));return(i,u)=>{const I=A.resolveComponent("el-button");return A.unref(e).footer?(A.openBlock(),A.createElementBlock("div",{key:0,style:A.normalizeStyle(t.value)},[A.createVNode(I,{type:"primary",onClick:A.unref(e).submit,name:"submit-btn"},{default:A.withCtx(()=>u[1]||(u[1]=[A.createTextVNode("提交")])),_:1},8,["onClick"]),A.createVNode(I,{onClick:u[0]||(u[0]=()=>A.unref(e).resetFields()),name:"reset-btn"},{default:A.withCtx(()=>u[2]||(u[2]=[A.createTextVNode("重置")])),_:1})],4)):A.createCommentVNode("",!0)}}}),EC=n=>{let e=[];const t=["Table","DragList","Pagination","FilterSearch"];for(const i of n)t.includes(i.component)&&i.name&&!i.hidden&&e.push(i.name),i.children&&Array.isArray(i.children)&&(e=e.concat(EC(i.children)));return e},QC=n=>{var t;if(!(n!=null&&n.content))return[];let e=[];for(const i of n.content)i.type==="form"&&((t=i.schema)!=null&&t.items)&&(e=e.concat(EC(i.schema.items)));return e},IC=Symbol("RefManager"),g2=()=>{const n=new Map,e=new Map;function t(i){const u=i.sort().join(","),I=e.get(u);I&&I.resolve&&i.every(b=>n.has(b))&&(I.resolve(),I.resolve=null)}return{register:(i,u)=>{n.set(i,u);for(const[I]of e)t(I.split(","))},unregister:i=>{n.delete(i)},findRef:i=>n.get(i),waitForKeys:i=>{if(i.every(b=>n.has(b)))return Promise.resolve();const u=i.sort().join(",");if(e.has(u))return e.get(u).promise;let I=null;const o=new Promise(b=>{I=b});return e.set(u,{promise:o,resolve:I}),t(i),o}}},u2=()=>{const n=g2();return A.provide(IC,n),n},fC=()=>{const n=A.inject(IC);if(!n)throw new Error("RefManager not provided. Make sure to call provideRefManager first.");return n},fs=(n,e)=>{const t=fC();return t.register(n,e),()=>{t.unregister(n)}},d2=["id"],fn=A.defineComponent({__name:"index",props:A.mergeModels({schema:{},schemaContext:{},design:{type:Boolean},footer:{type:Boolean},pageRulePath:{}},{modelValue:{default:{}},modelModifiers:{},realValues:{default:{}},realValuesModifiers:{},schema:{default:A.reactive({labelWidth:150,labelPosition:"right",scrollToError:!0,size:"default",items:[]})},schemaModifiers:{}}),emits:A.mergeModels(["finish","failed","reset"],["update:modelValue","update:realValues","update:schema"]),setup(n,{expose:e,emit:t}){const i=n,u=A.inject("ruleMap",{}),I=A.inject("pageMethodMap",{}),o=A.computed(()=>i.schema.rulePath&&u[i.schema.rulePath]?i.schema.rulePath:i.pageRulePath);o.value&&A.provide("ruleModule",u[o.value]);const b=t,y=A.ref(),w=A.useModel(n,"modelValue"),M=A.useModel(n,"realValues"),N=(W,J,O)=>{O===void 0?w.value[W]=J:(M.value[W]=J,w.value[W]=O)},P=W=>w.value[W],Y=(W,J)=>{let O=m(K.value.items,W);O&&O.props&&(O.props.disabled=!J)},G=(W,J)=>{let O=m(K.value.items,W);O&&(O.hidden=!J)},K=A.useModel(n,"schema");if(K.value.onValuesChange){const W=A.ref(JSON.stringify(w.value));A.watch(()=>w.value,J=>{W.value=JSON.stringify(J)},{deep:!0}),A.watch(()=>W.value,(J,O)=>{const q=JSON.parse(J),k=JSON.parse(O),V=Object.keys(q).filter(H=>JSON.stringify(q[H])!==JSON.stringify(k[H]));if(!(!o.value||!K.value.onValuesChange))try{u[o.value][K.value.onValuesChange](I,V,k,q)}catch(H){console.error(H)}})}const D=A.reactive({}),E=A.ref({}),L=A.ref(!1),_=gi(),v=A.computed(()=>({...i.schemaContext,$values:w.value,$selectData:D,$locale:_.value})),B=fC();A.onMounted(async()=>{var O,q;if((O=i.schema)!=null&&O.initialValues){const k=(q=i.schema)==null?void 0:q.initialValues;C(k),w.value=ut.mergeWith(k,w.value,(V,H)=>{if(Array.isArray(V))return H})}await A.nextTick();const W=QC({content:[{type:"form",schema:K.value}]});if(await B.waitForKeys(W),!K.value||!K.value.onMounted||!o.value)return;const J=K.value.onMounted;try{u[o.value][J](I)}catch(k){console.error(k)}}),A.onActivated(()=>{if(!K.value||!K.value.onActivated||!o.value)return;const W=K.value.onActivated;try{u[o.value][W](I)}catch(J){console.error(J)}});const p=()=>{var W;return(W=y.value)==null?void 0:W.validate()},d=W=>{const J=["Input","InputNumber","Select","DatePicker","TextArea","SearchInput","SearchSelect","Radio","SelectInput","Upload"],O=q=>{q.forEach(k=>{J.includes(k.component)?k.props&&(k.props.disabled=W):k.children&&O(k.children)})};O(K.value.items)},l=()=>{var W;(W=p())==null||W.then(()=>{b("finish",w.value)}).catch(J=>{b("failed",J)})},g=W=>{if(b("reset"),W){let J=ut.cloneDeep(w.value);W.forEach(O=>{J=ko(J,O,ma(E.value,O))}),w.value=J}else w.value=ut.cloneDeep(A.toRaw(E.value))},s=(W,J=!0)=>{J?Object.assign(w.value,W):w.value=W},h=(W,J)=>{D[W]=J},C=W=>{E.value={...W}},a=()=>E.value,r=W=>{L.value=W},m=(W,J)=>{for(const O of W){if(O.name===J)return O;if(O.children&&O.children.length>0){const q=m(O.children,J);if(q)return q}}return null},Q=W=>{const J=m(K.value.items,W);!J||J.component!=="Select"||(J.props&&J.props.mode==="static"&&(Array.isArray(J.props.options)&&J.props.options.findIndex(q=>{var k;return q[((k=J.props)==null?void 0:k.valueKey)||"value"]===w.value[W]})!==-1||(w.value[W]=J.props.options[0][J.props.valueKey||"value"])),J.props&&(J.props.refreshFlag=!0))},x=W=>{var q;const J=W.target;if(Array.from(((q=J.parentElement)==null?void 0:q.classList)||[]).includes("is-focus")&&K.value.onEnter&&o.value)try{u[o.value][K.value.onEnter](I)}catch(k){console.error(k)}},S=W=>{var J;(J=y.value)==null||J.clearValidate(W)},T=W=>{K.value.hidden=W},$=A.useTemplateRef("rootRef"),eA=A.reactive({...A.toRefs(i),formValues:w,formRealValues:M,selectData:D,initialValues:E,context:v,vCodePass:L,updateFormValues:s,updateSelectData:h,updateInitialValues:C,getInitialValues:a,updateVCodePass:r,validate:p,resetFields:g,submit:l,setDisabled:d,findItemByName:m,setFieldEditSts:Y,setFieldVisibleSts:G,setFieldValue:N,getFieldValue:P,refreshDynamicListBox:Q,setHidden:T,clearValidate:S,rootRef:$,type:"form"});return A.provide(Sd,eA),e(eA),(W,J)=>{const O=A.resolveComponent("el-form");return A.openBlock(),A.createElementBlock("div",{ref_key:"rootRef",ref:$,id:K.value.key},[K.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(O,A.mergeProps({key:0,model:w.value,"label-position":K.value.labelPosition,size:K.value.size,"hide-required-asterisk":K.value.hideRequiredAsterisk,"scroll-to-error":K.value.scrollToError,"scroll-into-view-options":{behavior:"smooth",block:"center"},"require-asterisk-position":"right",ref_key:"formRef",ref:y},W.$attrs,{onSubmit:J[0]||(J[0]=A.withModifiers(()=>{},["prevent"])),onKeyup:A.withKeys(x,["enter"])}),{default:A.withCtx(()=>[A.renderSlot(W.$slots,"default"),A.createVNode(A.unref(mt),{list:K.value.items},null,8,["list"]),A.createVNode(c2)]),_:3},16,["model","label-position","size","hide-required-asterisk","scroll-to-error"]))],8,d2)}}}),h2=({elements:n,lang:e,omits:t})=>{const i=o=>Object.values(n).filter(b=>b.type===o&&!t.includes(b.component)).sort((b,y)=>b.order-y.order).map(b=>({...b,title:e==="zh"?b.title:b.component})),u=Fd[e];return[{title:u.menus.basicTitle,children:i("basic")},{title:u.menus.highTitle,children:i("high")},{title:u.menus.layoutTitle,children:i("layout")},{title:u.menus.assistTitle,children:i("assist")}]},p2=A.defineComponent({__name:"index",setup(n){var M;const e=A.ref(!1),t=Sn(),i=zo(),u=gi(),I=nc(),o=(M=t.templates)!=null&&M.length?t.templates:PE,b=A.computed(()=>h2({elements:i,omits:t.omitMenus||[],lang:I.value})),y=N=>{t.updateSchema(N)},w=N=>{const P={component:N.component,designKey:`design-${xi(4)}`,name:`form-${xi(4)}`};return N.type==="layout"&&(P.children=[]),P};return(N,P)=>{const Y=A.resolveComponent("el-button"),G=A.resolveComponent("el-space"),K=A.resolveComponent("el-drawer");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("form-design-left")),style:A.normalizeStyle({overflow:e.value?"hidden":"auto"})},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("template"))},[A.createVNode(Y,{class:A.normalizeClass(A.unref(je)("template-button")),size:"small",onClick:P[0]||(P[0]=D=>e.value=!0)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(A.unref(u).menus.useTemplateBtn),1)]),_:1},8,["class"]),A.createVNode(K,{modelValue:e.value,"onUpdate:modelValue":P[1]||(P[1]=D=>e.value=D),title:"模板列表",size:"70%",class:A.normalizeClass(A.unref(je)("template-drawer")),"append-to-body":!1},{default:A.withCtx(()=>[A.createVNode(G,{wrap:"",direction:"vertical",alignment:"start"},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(A.unref(o),({name:D,schema:E})=>(A.openBlock(),A.createBlock(Y,{key:D,onClick:L=>y(E)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(D),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","class"])],2),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.value,({title:D,children:E})=>(A.openBlock(),A.createElementBlock("div",{key:D,class:A.normalizeClass(A.unref(je)("menu"))},[A.createElementVNode("h4",{class:A.normalizeClass(A.unref(je)("menu-title"))},A.toDisplayString(D),3),A.createVNode(A.unref(kp),{class:A.normalizeClass(A.unref(je)("menu-list")),list:E,group:{name:"formDesign",pull:"clone",put:!1},sort:!1,"ghost-class":A.unref(je)("menu-list-ghost"),"drag-class":A.unref(je)("menu-list-drag"),"fallback-class":A.unref(je)("menu-list-fallback"),"item-key":"designKey",clone:w},{item:A.withCtx(({element:L})=>[A.createElementVNode("li",{class:A.normalizeClass(A.unref(je)("menu-list-item"))},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("menu-list-item-ico"))},[(A.openBlock(),A.createBlock(A.resolveDynamicComponent(L.icon),{class:"ico-content"}))],2),A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("menu-list-item-name")),style:A.normalizeStyle({fontSize:A.unref(I)==="zh"?"12px":"10px"})},A.toDisplayString(L.title),7)],2)]),_:2},1032,["class","list","ghost-class","drag-class","fallback-class"])],2))),128))],6)}}}),C2=n=>`<template>
|
|
108
109
|
<FormRender v-model="formValues" :schema="schema" ref="formRef" />
|
|
109
110
|
<el-button @click="handleSubmit">提交</el-button>
|
|
110
111
|
</template>
|
|
@@ -188,7 +189,7 @@ const handleSubmit = async () => {
|
|
|
188
189
|
]
|
|
189
190
|
}`,E2=n=>`import type { FormSchema } from "asiaint-lowcode";
|
|
190
191
|
|
|
191
|
-
export default ${JSON.stringify(n,null,2)} satisfies FormSchema`,Q2=n=>`export default ${JSON.stringify(n,null,2)}`,I2=A.defineComponent({__name:"JsonSchema",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){var w;const e=Sn(),t=gi(),u=(w=zo().JsonEdit)==null?void 0:w.render,I=A.computed({get(){return e.schema},set(M){M.items&&e.updateSchema(M)}}),o=A.ref({}),b=A.useModel(n,"modelValue"),y=M=>{e.updateSchema({...e.schema,items:Pd(e.schema.items)}),M.repair()};return(M,N)=>{const P=A.resolveComponent("el-tab-pane"),Y=A.resolveComponent("el-tabs"),G=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(G,{modelValue:b.value,"onUpdate:modelValue":N[1]||(N[1]=K=>b.value=K),title:A.unref(t).actions.previewJson,width:"70%",center:"","destroy-on-close":"",top:"10vh",onClose:N[2]||(N[2]=K=>o.value={})},{default:A.withCtx(()=>[A.createVNode(Y,{"model-value":"edit",class:"demo-tabs"},{default:A.withCtx(()=>[A.createVNode(P,{label:"在线编辑",name:"edit"},{default:A.withCtx(()=>[A.createVNode(A.unref(u),{modelValue:I.value,"onUpdate:modelValue":N[0]||(N[0]=K=>I.value=K),style:{height:"70vh"},onBlur:y},null,8,["modelValue"])]),_:1}),A.createVNode(P,{label:"生成ts文件",name:"ts"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},language:"ts",code:A.unref(E2)(I.value)},null,8,["code"])]),_:1}),A.createVNode(P,{label:"生成js文件",name:"js"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},language:"js",code:A.unref(Q2)(I.value)},null,8,["code"])]),_:1}),A.createVNode(P,{label:"帮助",name:"help"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},language:"json",code:A.unref(m2)},null,8,["code"])]),_:1})]),_:1})]),_:1},8,["modelValue","title"])}}}),f2=A.defineComponent({__name:"VueCode",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),t=gi(),i=A.useModel(n,"modelValue");return(u,I)=>{const o=A.resolveComponent("el-tab-pane"),b=A.resolveComponent("el-tabs"),y=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(y,{modelValue:i.value,"onUpdate:modelValue":I[0]||(I[0]=w=>i.value=w),title:A.unref(t).actions.previewVueCode,width:"70%",center:"","destroy-on-close":"",top:"10vh"},{default:A.withCtx(()=>[A.createVNode(b,{"model-value":"ts",class:"demo-tabs"},{default:A.withCtx(()=>[A.createVNode(o,{label:"Typescript",name:"ts"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},code:A.unref(C2)(A.unref(e).schema),language:"vue"},null,8,["code"])]),_:1}),A.createVNode(o,{label:"Javascript",name:"js"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},code:A.unref(B2)(A.unref(e).schema),language:"vue"},null,8,["code"])]),_:1})]),_:1})]),_:1},8,["modelValue","title"])}}}),w2=ie(A.defineComponent({__name:"Preview",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),{JsonEdit:t}=zo(),i=A.ref("edit"),u=A.ref(),I=A.ref({}),o=A.useModel(n,"modelValue"),b=A.computed(()=>{var w;return(w=u.value)==null?void 0:w.context}),y=gi();return(w,M)=>{const N=A.resolveComponent("el-tab-pane"),P=A.resolveComponent("el-tabs"),Y=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(Y,{modelValue:o.value,"onUpdate:modelValue":M[4]||(M[4]=G=>o.value=G),title:A.unref(y).actions.previewForm,width:"70%",center:"","destroy-on-close":"",top:"10vh",onClose:M[5]||(M[5]=G=>I.value={})},{default:A.withCtx(()=>[A.createVNode(P,{modelValue:i.value,"onUpdate:modelValue":M[3]||(M[3]=G=>i.value=G)},{default:A.withCtx(()=>[A.createVNode(N,{label:"编辑模式",name:"edit"},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:I.value,"onUpdate:modelValue":M[0]||(M[0]=G=>I.value=G),schema:A.unref(e).schema,ref_key:"formRef",ref:u,schemaContext:A.unref(e).schemaContext,style:{minHeight:"200px",padding:"20px"}},null,8,["modelValue","schema","schemaContext"])]),_:1}),A.createVNode(N,{label:"阅读模式",name:"read",lazy:""},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:I.value,"onUpdate:modelValue":M[1]||(M[1]=G=>I.value=G),schema:{...A.unref(e).schema},schemaContext:A.unref(e).schemaContext,style:{minHeight:"200px",padding:"20px"},read:""},null,8,["modelValue","schema","schemaContext"])]),_:1}),A.createVNode(N,{label:"联动变量",name:"context"},{default:A.withCtx(()=>[M[6]||(M[6]=A.createElementVNode("p",null,"实时预览的联动变量,在JsonSchema中可以通过双大括号模版语法使用,用于触发各种联动",-1)),(A.openBlock(),A.createBlock(A.unref(t).render,{modelValue:b.value,"onUpdate:modelValue":M[2]||(M[2]=G=>b.value=G),style:{height:"60vh"},key:i.value},null,8,["modelValue"]))]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-a9d66bb1"]]),b2=A.defineComponent({__name:"ChangeLang",setup(n){const e=A.inject("asiaint-lang");return(t,i)=>{const u=A.resolveComponent("el-option"),I=A.resolveComponent("el-select");return A.openBlock(),A.createBlock(I,{modelValue:A.unref(e),"onUpdate:modelValue":i[0]||(i[0]=o=>A.isRef(e)?e.value=o:null),size:"small"},{default:A.withCtx(()=>[A.createVNode(u,{label:"中文",value:"zh"}),A.createVNode(u,{label:"English",value:"en"})]),_:1},8,["modelValue"])}}}),y2=A.defineComponent({__name:"index",setup(n){const e=Sn(),t=gi(),i=A.ref(!1),u=A.ref(!1),I=A.ref(!1),o=A.computed(()=>[{label:t.value.actions.previewJson,btnType:"primary",icon:"script",onClick:()=>{i.value=!0}},{label:t.value.actions.previewVueCode,btnType:"default",icon:"vue",onClick:()=>{u.value=!0}},{label:t.value.actions.previewForm,btnType:"default",icon:"eye",onClick:()=>{I.value=!0}}]),b=A.computed(()=>[{label:t.value.actions.clear,btnType:"danger",icon:"trash",onClick:async()=>{await Ht.ElMessageBox.confirm("确认清空当前设计吗?"),e.updateSchema({...e.schema,items:[]})}},{label:t.value.actions.save,icon:"save",btnType:"primary",onClick:()=>{e.handleEmit("save"),e.handleEmit("onSave")}}]);return(y,w)=>{const M=A.resolveComponent("el-button");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("actions"))},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("actions-left"))},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(o.value,N=>(A.openBlock(),A.createBlock(M,{key:N.label,type:N.btnType,size:"small",onClick:N.onClick},A.createSlots({default:A.withCtx(()=>[A.createTextVNode(" "+A.toDisplayString(N.label),1)]),_:2},[N.icon?{name:"icon",fn:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:N.icon},null,8,["name"])]),key:"0"}:void 0]),1032,["type","onClick"]))),128)),A.createVNode(b2,{class:A.normalizeClass(A.unref(je)("actions-left-lang"))},null,8,["class"])],2),A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("actions-right"))},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.value,({label:N,btnType:P,icon:Y,onClick:G})=>(A.openBlock(),A.createBlock(M,{key:N,type:P,size:"small",onClick:G},A.createSlots({default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(N),1)]),_:2},[Y?{name:"icon",fn:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:Y},null,8,["name"])]),key:"0"}:void 0]),1032,["type","onClick"]))),128))],2),A.createVNode(I2,{modelValue:i.value,"onUpdate:modelValue":w[0]||(w[0]=N=>i.value=N)},null,8,["modelValue"]),A.createVNode(f2,{modelValue:u.value,"onUpdate:modelValue":w[1]||(w[1]=N=>u.value=N)},null,8,["modelValue"]),A.createVNode(w2,{modelValue:I.value,"onUpdate:modelValue":w[2]||(w[2]=N=>I.value=N),"schema-context":A.unref(e).schemaContext},null,8,["modelValue","schema-context"])],2)}}}),D2=A.defineComponent({__name:"index",setup(n){const e=Sn();return(t,i)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("form-design-center"))},[A.createVNode(y2),A.createVNode(A.unref(fn),{class:A.normalizeClass(A.unref(je)("canvas")),schema:A.unref(e).schema,"onUpdate:schema":i[0]||(i[0]=u=>A.unref(e).schema=u),design:""},null,8,["class","schema"])],2))}}),v2=()=>({labelWidth:100,labelPosition:"top",items:[{hideLabel:!0,name:"change",component:"FormList",children:[{label:"目标字段",name:"target",component:"Input",help:"如果是自增组件内部联动,直接输入子组件的name。如果是外部联动自增组件,就是formlist.*.key"},{label:"触发条件",name:"condition",component:"Input",help:"必须输入一个模板表达式,当表达式结果为true时才触发联动。如果不设置,默认会一直触发"},{label:"值",name:"value",component:"Input",help:"支持模板表达式"}],props:{mode:"card",title:"联动字段"}}]}),k2=A.defineComponent({__name:"Change",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),t=A.useModel(n,"modelValue");return(i,u)=>{const I=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(I,{"destroy-on-close":"",modelValue:t.value,"onUpdate:modelValue":u[1]||(u[1]=o=>t.value=o),top:"3vh",title:"值联动"},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:A.unref(e).current,"onUpdate:modelValue":u[0]||(u[0]=o=>A.unref(e).current=o),schema:A.unref(v2)()},null,8,["modelValue","schema"])]),_:1},8,["modelValue"])}}}),_2={labelWidth:100,labelPosition:"top",items:[{label:"手动配置",component:"JsonEdit",designKey:"design-A2bj",name:".",props:{style:{height:"70vh"}}}]},M2={class:"config-linkages"},x2=ie(A.defineComponent({__name:"Config",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),t=A.useModel(n,"modelValue");return A.ref({}),(i,u)=>{var o;const I=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(I,{"destroy-on-close":"",modelValue:t.value,"onUpdate:modelValue":u[1]||(u[1]=b=>t.value=b),top:"3vh",title:`${(o=A.unref(e).current)==null?void 0:o.label} - 配置级联动`,width:"70vw",center:""},{default:A.withCtx(()=>[A.createElementVNode("div",M2,[A.createVNode(A.unref(fn),{modelValue:A.unref(e).current,"onUpdate:modelValue":u[0]||(u[0]=b=>A.unref(e).current=b),schema:A.unref(_2),class:"edit"},null,8,["modelValue","schema"])])]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-e4ab3ef4"]]),S2=A.defineComponent({__name:"index",setup(n){const e=gi(),t=A.ref(!1),i=A.ref(!1),u=A.computed(()=>[{title:e.value.attr.tab1.linkage.action1,onClick:()=>{t.value=!0}},{title:e.value.attr.tab1.linkage.action2,onClick:()=>{i.value=!0}}]);return(I,o)=>{const b=A.resolveComponent("el-divider"),y=A.resolveComponent("el-button");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("linkageConfig"))},[A.createVNode(b,null,{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(A.unref(e).attr.tab1.linkage.text),1)]),_:1}),A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("linkageConfig-btns"))},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.value,({title:w,onClick:M})=>(A.openBlock(),A.createBlock(y,{key:w,type:"primary",plain:"",size:"small",onClick:M},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(w),1)]),_:2},1032,["onClick"]))),128))],2),A.createVNode(x2,{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=w=>t.value=w)},null,8,["modelValue"]),A.createVNode(k2,{modelValue:i.value,"onUpdate:modelValue":o[1]||(o[1]=w=>i.value=w)},null,8,["modelValue"])],2)}}}),N2={labelWidth:60,labelPosition:"right",size:"small",items:[{label:"class",component:"Input",props:{placeholder:""},designKey:"design-KUlI",name:"class"},{label:"宽度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"%",placeholder:"100",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vw",value:"vw"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi4",name:"style.width"},{label:"高度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"px",placeholder:"auto",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi44",name:"style.height"}]},F2={labelWidth:60,labelPosition:"top",size:"small",items:[{label:"ID",component:"Input",props:{placeholder:""},designKey:"form-0vQJ",name:"id"},{label:"class",component:"Input",props:{placeholder:""},designKey:"design-KUlI",name:"class"},{label:"宽度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"%",placeholder:"100",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vw",value:"vw"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi4",name:"style.width"},{label:"高度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"px",placeholder:"auto",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi44",name:"style.height"},{label:"背景色",component:"ColorInput",designKey:"form-YicU",name:"style.backgroundColor"},{label:"文字颜色",component:"ColorInput",designKey:"design-A2bj",name:"style.color"},{label:"缩放",component:"Slider",designKey:"design-A2sf",name:"style.transform",props:{min:50,max:150},initialValue:100,change:[{target:"style.transform",value:"{{ `scale(${$values.style.transform / 100 })` }}"}]},{children:[{label:"外间距",name:"margin",component:"TabsItem",children:[{props:{columns:2,columnGap:20,rowGap:20},component:"Grid",designKey:"design-QqeY",name:"form-3eBs",children:[{label:"上",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"design-F9CI",name:"style.marginTop"},{label:"下",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-XHJ7",name:"style.marginBottom"},{label:"左",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-Aeb5",name:"style.marginLeft"},{label:"右",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-g0Ss",name:"style.marginRight"}]}]},{label:"内间距",name:"padding",component:"TabsItem",children:[{props:{columns:2,columnGap:20,rowGap:20},component:"Grid",designKey:"design-QqeY",name:"form-3eBs",children:[{label:"上",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"design-F9CI",name:"style.paddingTop"},{label:"下",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-XHJ7",name:"style.paddingBottom"},{label:"左",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-Aeb5",name:"style.paddingLeft"},{label:"右",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-g0Ss",name:"style.paddingRight"}]}]}],props:{defaultKey:"margin",tabPosition:"top"},component:"Tabs",designKey:"design-WK8O",name:"form-e9YD"},{label:"自定义",component:"JsonEdit",designKey:"design-A2bj",name:"style"}]},R2={class:"more"},L2=A.defineComponent({__name:"index",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=A.ref(!1);return(i,u)=>{const I=A.resolveComponent("el-divider"),o=A.resolveComponent("el-button"),b=A.resolveComponent("el-drawer");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("style-config"))},[A.createVNode(I,null,{default:A.withCtx(()=>u[4]||(u[4]=[A.createTextVNode("组件样式")])),_:1}),A.createVNode(A.unref(fn),{modelValue:e.value,"onUpdate:modelValue":u[0]||(u[0]=y=>e.value=y),schema:A.unref(N2),ref:"formRef"},null,8,["modelValue","schema"]),A.createElementVNode("div",R2,[A.createVNode(o,{type:"primary",plain:"",size:"small",onClick:u[1]||(u[1]=y=>t.value=!0)},{default:A.withCtx(()=>u[5]||(u[5]=[A.createTextVNode("自定义更多样式")])),_:1})]),A.createVNode(b,{modelValue:t.value,"onUpdate:modelValue":u[3]||(u[3]=y=>t.value=y),title:"组件样式"},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:e.value,"onUpdate:modelValue":u[2]||(u[2]=y=>e.value=y),schema:A.unref(F2),ref:"formRef",style:{padding:"0 15px"}},null,8,["modelValue","schema"])]),_:1},8,["modelValue"])],2)}}}),G2=A.defineComponent({__name:"index",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=zo(),t=nc(),i=A.useModel(n,"modelValue"),u=A.computed(()=>{const o=e[i.value.component];if(o!=null&&o.attrSchema){const b=(w=[])=>w.map(M=>{const N=ma(i.value,M.name),P=ut.isString(N)&&/^{{\s*(.*?)\s*}}$/.test(N);return{...M,label:t.value==="zh"?M.label:M.name.split(".").pop(),component:P?"Input":M.component,dialog:P||M.dialog,children:M.children&&b(M.children)}}),y=b(o.attrSchema.items);return{...o.attrSchema,items:[{label:"组件类型",component:"Tag",name:"componentType",props:{text:o.title,style:{marginBottom:"10px"}}},...y]}}return{size:"small",labelPosition:"top",items:[]}}),I=A.computed({get(){var o;return((o=i.value)==null?void 0:o.props)||{}},set(o){i.value=ko(i.value,"props",o)}});return(o,b)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("attr"))},[(A.openBlock(),A.createBlock(A.unref(fn),{key:i.value.designKey,modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=y=>i.value=y),schema:u.value},null,8,["modelValue","schema"])),(A.openBlock(),A.createBlock(L2,{key:i.value.designKey,modelValue:I.value,"onUpdate:modelValue":b[1]||(b[1]=y=>I.value=y)},null,8,["modelValue"])),A.createVNode(S2,{modelValue:i.value,"onUpdate:modelValue":b[2]||(b[2]=y=>i.value=y)},null,8,["modelValue"])],2))}}),P2={size:"small",labelPosition:"top",items:[{label:"label宽度",component:"InputNumber",name:"labelWidth",props:{min:60,unit:"px",step:10},initialValue:150},{label:"label对齐方式",component:"Radio",name:"labelPosition",props:{mode:"static",options:[{label:"左对齐",value:"left"},{label:"居上",value:"top"},{label:"右对齐",value:"right"}]},initialValue:"right"},{label:"表单组件尺寸",component:"Radio",name:"size",props:{mode:"static",options:[{label:"默认",value:"default"},{label:"较小",value:"small"},{label:"较大",value:"large"}]},initialValue:"default"},{label:"禁用整个表单",component:"Switch",name:"disabled"},{label:"隐藏必填星号",component:"Switch",name:"hideRequiredAsterisk"},{label:"label加粗",component:"Switch",name:"labelBold"},{label:"自动滚动到校验失败的第一项",component:"Switch",name:"scrollToError"},{label:"规则文件路径",component:"Input",name:"rulePath"},{label:"表单编码",component:"Input",name:"key"},{label:"数据对象",component:"Input",name:"dataModel"}]},H2=A.defineComponent({__name:"FormEdit",setup(n){const e=Sn(),t=A.computed({get(){return e.schema},set(i){e.updateSchema(i)}});return(i,u)=>(A.openBlock(),A.createBlock(A.unref(fn),{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=I=>t.value=I),schema:A.unref(P2)},null,8,["modelValue","schema"]))}}),K2=A.defineComponent({__name:"index",setup(n){const e=gi(),t=Sn();return A.watch(()=>t.current,i=>{i||(t.rightTab="form")}),(i,u)=>{const I=A.resolveComponent("el-tab-pane"),o=A.resolveComponent("el-tabs");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("form-design-right"))},[A.createVNode(o,{modelValue:A.unref(t).rightTab,"onUpdate:modelValue":u[1]||(u[1]=b=>A.unref(t).rightTab=b)},{default:A.withCtx(()=>[A.unref(t).current?(A.openBlock(),A.createBlock(I,{key:0,label:A.unref(e).attr.tab1.title,name:"attr"},{default:A.withCtx(()=>[A.createVNode(G2,{modelValue:A.unref(t).current,"onUpdate:modelValue":u[0]||(u[0]=b=>A.unref(t).current=b)},null,8,["modelValue"])]),_:1},8,["label"])):A.createCommentVNode("",!0),A.createVNode(I,{label:A.unref(e).attr.tab2.title,name:"form"},{default:A.withCtx(()=>[A.createVNode(H2)]),_:1},8,["label"])]),_:1},8,["modelValue"])],2)}}}),wC=A.defineComponent({__name:"index",props:A.mergeModels({schemaContext:{default:()=>({})},templates:{default:()=>[]},omitMenus:{default:()=>[]}},{modelValue:{default:A.reactive({labelWidth:150,labelPosition:"right",scrollToError:!0,size:"default",items:[]})},modelModifiers:{}}),emits:A.mergeModels(["onSave","save","add"],["update:modelValue"]),setup(n,{emit:e}){const t=n,i=e,u=A.ref(""),I=A.useModel(n,"modelValue"),o=A.computed({get(){return I.value.items},set(w){I.value.items=w}}),b=A.computed({get(){return tc(o.value,u.value)},set(w){u.value=w.designKey,o.value=Rd(o.value,w)}}),y=A.reactive({...A.toRefs(t),currentKey:u,hoverKey:"",schema:I,current:b,list:o,rightTab:"form",updateCurrent(w){y.current=w},updateHoverKey(w){y.hoverKey=w},updateSchema:w=>{Object.assign(I.value,w)},updateList:w=>{o.value=w},handleEmit:(w,M)=>{i(w,M)}});return A.provide(Nd,y),(w,M)=>(A.openBlock(),A.createElementBlock("div",A.mergeProps({class:A.unref(je)("form-design")},w.$attrs),[A.createVNode(p2),A.createVNode(D2),A.createVNode(K2)],16))}}),T2={class:"card-header"},U2={class:"card-btns"},Y2={key:0,class:"switch-panel"},O2=ie(A.defineComponent({__name:"CardWrapper",props:{collapsible:{type:Boolean},header:{},btns:{},tableType:{default:"table"},typeSwitch:{type:Boolean,default:!1},switchTableType:{},shadowless:{type:Boolean}},setup(n){const e=n,t=A.ref(!1),i=A.computed(()=>e.btns?e.btns.map(u=>({isLinkBtn:!0,...u})):[]);return(u,I)=>{const o=A.resolveComponent("el-collapse-transition"),b=A.resolveComponent("ElCard");return A.openBlock(),A.createBlock(b,A.mergeProps(u.$attrs,{class:["crm-card",{collapsed:t.value,shadowless:u.shadowless}],shadow:"never"}),{header:A.withCtx(()=>[A.createElementVNode("div",T2,[u.collapsible?(A.openBlock(),A.createElementBlock("div",{key:0,class:"icon-wrapper",onClick:I[0]||(I[0]=y=>t.value=!t.value)},[A.createVNode(A.unref(Ie),{name:"dropdown",class:A.normalizeClass(["dropdown-icon",{"is-collapsed":t.value}])},null,8,["class"])])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(u.header),1),A.createElementVNode("div",U2,[u.typeSwitch?(A.openBlock(),A.createElementBlock("div",Y2,[A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:u.tableType==="card"}]),onClick:I[1]||(I[1]=y=>u.switchTableType("card"))},[A.createVNode(xe,{name:"icon-kapian"})],2),A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:u.tableType==="table"}]),onClick:I[2]||(I[2]=y=>u.switchTableType("table"))},[A.createVNode(xe,{name:"icon-biaoge"})],2)])):A.createCommentVNode("",!0),A.createElementVNode("div",null,[A.createVNode(A.unref(lo),{btns:i.value||[]},null,8,["btns"])])])])]),default:A.withCtx(()=>[A.createVNode(o,null,{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",null,[A.renderSlot(u.$slots,"default",{},void 0,!0)],512),[[A.vShow,!t.value]])]),_:3})]),_:3},16,["class"])}}}),[["__scopeId","data-v-d8e65e0c"]]),$2={class:"empty-content"},z2=["title"],J2=["title","onClick"],Z2={key:1,class:"icon-text-wrapper"},W2=["title"],j2=["title"],q2={class:"row-btn-wrapper"},bC=ie(A.defineComponent({__name:"TableContent",props:A.mergeModels({tableData:{},total:{},hasVisibleRowBtn:{type:Boolean},handleSizeChange:{type:Function},handlePageChange:{type:Function},handleRowClick:{type:Function},handleRowDblclick:{type:Function},handleSelectionChange:{type:Function},handleCurrentChange:{type:Function},getColText:{type:Function},getGlobalParams:{type:Function},handleClick:{type:Function},schema:{},selectable:{type:Function},getIconInfo:{type:Function}},{pagination:{required:!0},paginationModifiers:{}}),emits:["update:pagination"],setup(n,{expose:e}){const t=A.useModel(n,"pagination"),i=A.useTemplateRef("tableRef");return e({tableRef:i}),(u,I)=>{const o=A.resolveComponent("el-table-column"),b=A.resolveComponent("el-tooltip"),y=A.resolveComponent("el-button"),w=A.resolveComponent("FormItemGroup"),M=A.resolveComponent("el-popover"),N=A.resolveComponent("el-table"),P=A.resolveComponent("el-pagination");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(["table-render",{tableBorder:u.schema.displayType==="table",[u.schema.key]:!0}])},[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(N,{ref_key:"tableRef",ref:i,data:u.tableData,stripe:u.schema.stripe,"highlight-current-row":"","row-key":u.schema.rowKey,onRowClick:u.handleRowClick,onRowDblclick:u.handleRowDblclick,onSelectionChange:u.handleSelectionChange,onCurrentChange:u.handleCurrentChange,height:u.schema.height},{empty:A.withCtx(()=>[A.createElementVNode("div",$2,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),I[2]||(I[2]=A.createElementVNode("div",null,"No data available,please check",-1))])]),default:A.withCtx(()=>{var Y;return[u.schema.multipleSelection?(A.openBlock(),A.createBlock(o,{key:0,type:"selection",width:"55",selectable:u.selectable},null,8,["selectable"])):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.schema.columns,G=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:G.key},[G.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(o,{key:0,prop:G.key,"min-width":G.minWidth,fixed:G.fixed||!1},{header:A.withCtx(()=>[A.createElementVNode("div",{class:"text-ellipsis",title:G.label},A.toDisplayString(G.label),9,z2)]),default:A.withCtx(({row:K,$index:D})=>{var E,L,_,v;return[G.type==="link"?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["text-ellipsis link-style",{"click-style":G.onClick}]),title:u.getColText(G,K),onClick:B=>u.handleClick(G,K,D,B)},A.toDisplayString(u.getColText(G,K)),11,J2)):G.type==="iconText"?(A.openBlock(),A.createElementBlock("div",Z2,[G.iconPosition==="left"?(A.openBlock(),A.createBlock(xe,{key:0,name:(E=u.getIconInfo(G,K))==null?void 0:E.name,color:(L=u.getIconInfo(G,K))==null?void 0:L.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",{class:"text-ellipsis",title:u.getColText(G,K)},A.toDisplayString(u.getColText(G,K)),9,W2),G.iconPosition==="right"?(A.openBlock(),A.createBlock(xe,{key:1,name:(_=u.getIconInfo(G,K))==null?void 0:_.name,color:(v=u.getIconInfo(G,K))==null?void 0:v.color},null,8,["name","color"])):A.createCommentVNode("",!0)])):(A.openBlock(),A.createElementBlock("div",{key:2,class:A.normalizeClass({"text-ellipsis":!G.noEllipsis}),title:u.getColText(G,K)},A.toDisplayString(u.getColText(G,K)),11,j2))]}),_:2},1032,["prop","min-width","fixed"]))],64))),128)),u.hasVisibleRowBtn&&((Y=u.schema.rowBtns)!=null&&Y.length)?(A.openBlock(),A.createBlock(o,{key:1,label:u.schema.rowBtnsLabel||"Action",fixed:"right",align:"left",width:u.schema.rowBtnsWidth||(u.schema.rowBtns.length*34+12>100?u.schema.rowBtns.length*34+12:100)},{default:A.withCtx(({row:G,$index:K})=>[A.createElementVNode("div",q2,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.schema.rowBtns,D=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:D.key},[D.component==="Popover"?(A.openBlock(),A.createBlock(M,{key:0},{reference:A.withCtx(()=>[D.condition===void 0||D.condition===null||A.unref(Rt)(D.condition,{$row:G,$globalParams:u.getGlobalParams()})?(A.openBlock(),A.createBlock(y,{key:0,disabled:D.disabled,link:"",size:"small",type:D.type,onClick:E=>u.handleClick(D,G,K,E)},{default:A.withCtx(()=>[A.createVNode(b,{class:"box-item",effect:"dark",content:D.label,placement:"top","popper-class":"low-tsp","show-after":300},{default:A.withCtx(()=>[D.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:D.icon.name,color:D.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),D.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:D.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(D.buttonText.text,{$row:G,$globalParams:u.getGlobalParams()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)]),default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(w,{list:D.children},null,8,["list"])])]),_:2},1024)):(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[D.condition===void 0||D.condition===null||A.unref(Rt)(D.condition,{$row:G,$globalParams:u.getGlobalParams()})?(A.openBlock(),A.createBlock(y,{key:0,disabled:D.disabled,link:"",size:"small",type:D.type,onClick:E=>u.handleClick(D,G,K,E)},{default:A.withCtx(()=>[A.createVNode(b,{class:"box-item",effect:"dark",content:D.label,placement:"top","popper-class":"low-tsp","show-after":300},{default:A.withCtx(()=>[D.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:D.icon.name,color:D.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),D.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:D.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(D.buttonText.text,{$row:G,$globalParams:u.getGlobalParams()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)],64))],64))),128))])]),_:1},8,["label","width"])):A.createCommentVNode("",!0)]}),_:1},8,["data","stripe","row-key","onRowClick","onRowDblclick","onSelectionChange","onCurrentChange","height"])],512),[[A.vShow,u.schema.displayType==="table"]]),A.withDirectives(A.createVNode(ic,A.mergeProps(u.schema,{data:u.tableData,"get-col-text":u.getColText}),null,16,["data","get-col-text"]),[[A.vShow,u.schema.displayType==="card"]]),A.createElementVNode("div",{class:A.normalizeClass(["pagination-wrapper",{hidePagination:u.schema.hiddenPagination||u.tableData.length===0,cardlistPadding:u.schema.displayType==="card"}])},[A.createVNode(P,{layout:u.schema.paginationLayout||"total,sizes, prev, pager, next,jumper",total:u.total,"page-sizes":u.schema.pageSizes||[5,6,10,20,30,40],"default-page-size":u.schema.defaultPageSize,"current-page":t.value.pageNum,"onUpdate:currentPage":I[0]||(I[0]=Y=>t.value.pageNum=Y),"page-size":t.value.pageSize,"onUpdate:pageSize":I[1]||(I[1]=Y=>t.value.pageSize=Y),"pager-count":u.schema.pagerCount,onSizeChange:u.handleSizeChange,onCurrentChange:u.handlePageChange},null,8,["layout","total","page-sizes","default-page-size","current-page","page-size","pager-count","onSizeChange","onCurrentChange"])],2)],2)}}}),[["__scopeId","data-v-a36dc664"]]),X2=["id"],rg=A.defineComponent({__name:"index",props:A.mergeModels({design:{type:Boolean},read:{type:Boolean},pageRulePath:{},pageKey:{}},{schema:{required:!0},schemaModifiers:{},modelValue:{default:[]},modelModifiers:{}}),emits:["update:schema","update:modelValue"],setup(n,{expose:e}){const t=n,i=A.useModel(n,"schema"),u=A.computed(()=>i.value.rulePath&&I[i.value.rulePath]?i.value.rulePath:t.pageRulePath),I=A.inject("ruleMap",{}),o=A.inject("pageMethodMap",{}),b=A.inject("getGlobalParams",()=>{}),y=A.inject(jn),w=y?y.translateFn:null;u.value&&A.provide("ruleModule",I[u.value]);const M=A.useTemplateRef("tableContentRef"),N=A.useModel(n,"modelValue"),P=(BA,j)=>{const tA=i.value.columns.find(rA=>rA.key===BA);tA&&(tA.hidden=!j)},Y=(BA,j,tA,rA)=>{if(u.value)try{I[u.value][BA.onClick](o,j,tA),rA==null||rA.stopPropagation()}catch(gA){console.error(gA)}},G=BA=>{if(!(!i.value.rowClick||!u.value))try{I[u.value][i.value.rowClick](o,BA)}catch(j){console.error(j)}},K=BA=>{if(!(!i.value.rowDbClick||!u.value))try{I[u.value][i.value.rowDbClick](o,BA)}catch(j){console.error(j)}},D=A.ref([]),E=BA=>{D.value=BA},L=(BA,j)=>{if(!i.value.selectable||!u.value)return!0;try{return I[u.value][i.value.selectable](o,BA,j)}catch(tA){console.error(tA)}return!0},_=(BA,j,tA)=>{N.value[BA]&&(N.value[BA][j]=tA)},v=()=>{var BA,j;(j=(BA=M.value)==null?void 0:BA.tableRef)==null||j.clearSelection()},B=()=>N.value,p=A.ref(),d=BA=>{if(p.value=BA,!(!i.value.handleCurrentChange||!u.value))try{I[u.value][i.value.handleCurrentChange](o,BA)}catch(j){console.error(j)}},l=()=>p.value,g=()=>{var BA,j;return(j=(BA=M.value)==null?void 0:BA.tableRef)==null?void 0:j.getSelectionRows()},s=(BA={})=>{N.value.push(BA)},h=BA=>{BA>=0&&BA<N.value.length&&N.value.splice(BA,1)},C=async()=>{N.value=[...N.value]},a=async()=>!0,r=BA=>{N.value=BA},m=(BA,j)=>{var rA;const tA=(rA=i.value.topBtns)==null?void 0:rA.find(gA=>gA.key===BA);tA&&(tA.hidden=j)},Q=(BA,j)=>{var rA;const tA=(rA=i.value.rowBtns)==null?void 0:rA.find(gA=>gA.key===BA);tA&&(tA.condition=!j)},x=A.computed(()=>!i.value.rowBtns||i.value.rowBtns.length===0||!N.value||N.value.length===0?!1:N.value.some(BA=>{var j;return(j=i.value.rowBtns)==null?void 0:j.some(tA=>tA.condition===void 0||tA.condition===null?!0:Rt(tA.condition,{$row:BA,$globalParams:b()}))})),S=A.ref(0),T=BA=>{S.value=BA},$=A.ref({pageNum:1,pageSize:i.value.defaultPageSize||5}),eA=A.ref({pageNum:1,pageSize:i.value.defaultPageSize||5}),W=()=>$.value,J=BA=>{let j=!1;return BA.pageNum!==void 0&&BA.pageNum>-1&&($.value.pageNum!==BA.pageNum&&(j=!0),$.value.pageNum=BA.pageNum),BA.pageSize!==void 0&&BA.pageSize>-1&&($.value.pageSize!==BA.pageSize&&(j=!0),$.value.pageSize=BA.pageSize),{pagination:$.value,isChange:j}},O=async BA=>{var rA;if($.value.pageNum=1,$.value.pageSize=BA,!i.value.sizeChange||!u.value)return;const j=(rA=document.getElementById(t.pageKey))==null?void 0:rA.querySelector(`.${i.value.key}`),tA=Ht.ElLoading.service({target:j||`#${i.value.key}`,text:"Loading..."});try{await I[u.value][i.value.sizeChange](o,$.value),eA.value.pageNum=$.value.pageNum,eA.value.pageSize=$.value.pageSize}catch(gA){console.error(gA),$.value.pageNum=eA.value.pageNum,$.value.pageSize=eA.value.pageSize}finally{tA.close()}},q=async BA=>{var rA;if($.value.pageNum=BA,!i.value.pageChange||!u.value)return;const j=(rA=document.getElementById(t.pageKey))==null?void 0:rA.querySelector(`.${i.value.key}`),tA=Ht.ElLoading.service({target:j||`#${i.value.key}`,text:"Loading..."});try{await I[u.value][i.value.pageChange](o,$.value),eA.value.pageNum=$.value.pageNum,eA.value.pageSize=$.value.pageSize}catch(gA){console.error(gA),$.value.pageNum=eA.value.pageNum,$.value.pageSize=eA.value.pageSize}finally{tA.close()}},k=BA=>{var j,tA;(tA=(j=M.value)==null?void 0:j.tableRef)==null||tA.setCurrentRow(BA)},V=BA=>{var j,tA;(tA=(j=M.value)==null?void 0:j.tableRef)==null||tA.setCurrentRow(N.value[BA])},H=(BA,j,tA)=>{i.value.columns.forEach(rA=>{rA.key===BA&&rA[j]&&(rA[j]=tA)})},AA=BA=>{i.value.displayType=BA},sA=BA=>{i.value.shadowless=BA},oA=(BA,j)=>{const tA=w?w(BA.key,j):j[BA.key];if(!Rt(BA.encrypted,{$row:j,$col:BA})||!tA)return tA;const gA=`${tA}`;return gA.length<=4?"*".repeat(gA.length):gA.slice(0,-4)+"****"},dA=(BA,j)=>{if(!(!BA.getIconInfo||!u.value))try{return I[u.value][BA.getIconInfo](o,j,BA)}catch(tA){console.error(tA)}},EA=A.useTemplateRef("rootRef");i.value.displayType||(i.value.displayType=i.value.typeSwitch?"card":"table"),A.onMounted(async()=>{if(!i.value||!i.value.onMounted||!u.value)return;await A.nextTick();const BA=i.value.onMounted;try{I[u.value][BA](o)}catch(j){console.error(j)}}),A.onActivated(()=>{if(!i.value||!i.value.onActivated||!u.value)return;const BA=i.value.onActivated;try{I[u.value][BA](o)}catch(j){console.error(j)}});const uA=A.readonly({...A.toRefs(t),setCellData:_,clearSelection:v,getData:B,getCurrentRow:l,getSelectedRows:g,addRow:s,deleteRow:h,refresh:C,validate:a,setData:r,selectRow:k,selectRowNum:V,setTotal:T,getPagination:W,setPagination:J,setTopBtnHidden:m,setColVisible:P,setColumn:H,setRowsBtnHidden:Q,setShadowless:sA,rootRef:EA,type:"table"});return e(uA),(BA,j)=>i.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,ref_key:"rootRef",ref:EA,id:i.value.key},[i.value.cardless?(A.openBlock(),A.createBlock(bC,{key:1,ref_key:"tableContentRef",ref:M,tableData:N.value,total:S.value,hasVisibleRowBtn:x.value,handleSizeChange:O,handlePageChange:q,handleRowClick:G,handleRowDblclick:K,handleSelectionChange:E,handleCurrentChange:d,getColText:oA,getGlobalParams:A.unref(b),handleClick:Y,selectable:L,schema:i.value,getIconInfo:dA,pagination:$.value,"onUpdate:pagination":j[1]||(j[1]=tA=>$.value=tA)},null,8,["tableData","total","hasVisibleRowBtn","getGlobalParams","schema","pagination"])):(A.openBlock(),A.createBlock(O2,{key:0,header:i.value.title,btns:i.value.topBtns,collapsible:i.value.collapsible!==!1,switchTableType:AA,tableType:i.value.displayType,typeSwitch:i.value.typeSwitch,shadowless:i.value.shadowless},{default:A.withCtx(()=>[A.createVNode(bC,{ref_key:"tableContentRef",ref:M,tableData:N.value,total:S.value,hasVisibleRowBtn:x.value,handleSizeChange:O,handlePageChange:q,handleRowClick:G,handleRowDblclick:K,handleSelectionChange:E,handleCurrentChange:d,getColText:oA,getGlobalParams:A.unref(b),handleClick:Y,selectable:L,schema:i.value,getIconInfo:dA,pagination:$.value,"onUpdate:pagination":j[0]||(j[0]=tA=>$.value=tA)},null,8,["tableData","total","hasVisibleRowBtn","getGlobalParams","schema","pagination"])]),_:1},8,["header","btns","collapsible","tableType","typeSwitch","shadowless"]))],8,X2))}}),V2=["id"],A8={class:"tab-label"},e8={class:"tab-label-text"},t8={key:0,class:"divider"},n8=ie(A.defineComponent({__name:"index",props:A.mergeModels({ruleMap:{},pageParams:{},pageRulePath:{}},{schema:{required:!0},schemaModifiers:{}}),emits:A.mergeModels(["addPageParams"],["update:schema"]),setup(n,{expose:e,emit:t}){const i=A.useModel(n,"schema"),u=A.ref({}),I=t,o=A.ref({}),b=B=>p=>{p?o.value[B]=p:delete o.value[B]},y=n,w=A.computed(()=>{var B;return(B=i.value.content.find(p=>p.url===P.value))==null?void 0:B.mixMode}),M=B=>{i.value.content=B},N=B=>{Array.isArray(B)?i.value.content.push(...B):i.value.content.push(B)},P=A.ref(i.value.content[0].url),Y=B=>{u.value[B]=!0,A.nextTick(()=>{u.value[B]=!1})},G=A.useTemplateRef("rootRef"),K=B=>o.value[B],D=(B,p)=>{p&&I("addPageParams",p),A.nextTick(()=>{P.value=B,v(B)})},E=(B,p)=>{const d=i.value.content.find(l=>l.url===B);d&&(d.mixMode=p)},L=A.inject("pageMethodMap",{}),_=A.computed(()=>i.value.rulePath&&y.ruleMap[i.value.rulePath]?i.value.rulePath:y.pageRulePath),v=B=>{o.value[B]&&o.value[B].activate();const p=i.value.onChange;try{p&&y.ruleMap[_.value][p](L,B)}catch{}};return e(A.readonly({setTabContent:M,addTabContent:N,schema:i,rootRef:G,findRef:K,changeActiveTab:D,type:"tabs"})),(B,p)=>{var s,h,C;const d=A.resolveComponent("el-skeleton"),l=A.resolveComponent("el-tab-pane"),g=A.resolveComponent("el-tabs");return A.openBlock(),A.createElementBlock("div",{ref_key:"rootRef",ref:G,id:i.value.key},[i.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(g,A.mergeProps({key:0},i.value.tabProps,{modelValue:P.value,"onUpdate:modelValue":p[0]||(p[0]=a=>P.value=a),class:["crm-tabs",{mixmode:w.value}],style:{"--top":(s=i.value)!=null&&s.stickyTop?`${(h=i.value)==null?void 0:h.stickyTop}px`:"110px","--is-sticky":(C=i.value)!=null&&C.isSticky?"sticky":"static"},onTabChange:v}),{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(i.value.content,(a,r)=>(A.openBlock(),A.createBlock(l,{name:a.key||a.url,key:a.key||a.url,lazy:r!==0},{label:A.withCtx(()=>[A.createElementVNode("div",A8,[A.createElementVNode("span",e8,A.toDisplayString(a.label),1),r!==i.value.content.length-1?(A.openBlock(),A.createElementBlock("span",t8)):A.createCommentVNode("",!0)])]),default:A.withCtx(()=>[u.value[r]?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(ag,{key:0,pageUrl:a.url,"rule-map":B.ruleMap,"page-params":a.pageParams?{...B.pageParams,...a.pageParams}:B.pageParams,ref_for:!0,ref:b(a.url),onRefresh:m=>Y(r),onChangeTab:D,onChangeMixMode:E},{loading:A.withCtx(()=>[A.createVNode(d,{rows:5,animated:""})]),_:2},1032,["pageUrl","rule-map","page-params","onRefresh"]))]),_:2},1032,["name","lazy"]))),128))]),_:1},16,["modelValue","style","class"]))],8,V2)}}}),[["__scopeId","data-v-7ac2d7d6"]]),i8=["id"],o8={class:"info-card-header"},r8={class:"left-part"},a8={class:"title-part"},s8={class:"sub-title-container"},l8={class:"right-part"},c8={class:"info info-card-infos"},g8={class:"info-label"},u8={class:"ml-2"},d8={class:"info-card-detail"},h8={class:"info-card-detail-left"},p8={class:"label"},C8={key:0,class:"divider"},B8={key:0,class:"info-card-detail-right"},m8={key:0},E8={key:1,class:"detail-right-label"},Q8={key:2,class:"detail-right-value"},I8=ie(A.defineComponent({__name:"InfoCard",props:A.mergeModels({pageRulePath:{}},{schema:{required:!0},schemaModifiers:{}}),emits:["update:schema"],setup(n,{expose:e}){const t=A.useModel(n,"schema"),i=A.inject("ruleMap",{}),u=n,I=A.computed(()=>t.value.rulePath&&i[t.value.rulePath]?i[t.value.rulePath]:i[u.pageRulePath]);A.provide("ruleModule",I.value);const o=A.inject("pageMethodMap",{}),b=N=>{const P=document.createElement("textarea");P.value=N??"",P.style.position="absolute",P.style.opacity="0",document.body.appendChild(P),P.select(),document.execCommand("copy"),P.remove()},y=async()=>{try{await navigator.clipboard.writeText(t.value.header.subTitle)}catch(N){console.error("Clipboard API error:",N),b(t.value.header.subTitle)}Ht.ElMessage.success("Copy Successful")},w=N=>{var P;if(I.value[N||"clickTitleIcon"])try{I.value[N||"clickTitleIcon"](o,(P=t.value.header)==null?void 0:P.titleIcon)}catch(Y){console.error(Y+`
|
|
192
|
+
export default ${JSON.stringify(n,null,2)} satisfies FormSchema`,Q2=n=>`export default ${JSON.stringify(n,null,2)}`,I2=A.defineComponent({__name:"JsonSchema",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){var w;const e=Sn(),t=gi(),u=(w=zo().JsonEdit)==null?void 0:w.render,I=A.computed({get(){return e.schema},set(M){M.items&&e.updateSchema(M)}}),o=A.ref({}),b=A.useModel(n,"modelValue"),y=M=>{e.updateSchema({...e.schema,items:Pd(e.schema.items)}),M.repair()};return(M,N)=>{const P=A.resolveComponent("el-tab-pane"),Y=A.resolveComponent("el-tabs"),G=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(G,{modelValue:b.value,"onUpdate:modelValue":N[1]||(N[1]=K=>b.value=K),title:A.unref(t).actions.previewJson,width:"70%",center:"","destroy-on-close":"",top:"10vh",onClose:N[2]||(N[2]=K=>o.value={})},{default:A.withCtx(()=>[A.createVNode(Y,{"model-value":"edit",class:"demo-tabs"},{default:A.withCtx(()=>[A.createVNode(P,{label:"在线编辑",name:"edit"},{default:A.withCtx(()=>[A.createVNode(A.unref(u),{modelValue:I.value,"onUpdate:modelValue":N[0]||(N[0]=K=>I.value=K),style:{height:"70vh"},onBlur:y},null,8,["modelValue"])]),_:1}),A.createVNode(P,{label:"生成ts文件",name:"ts"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},language:"ts",code:A.unref(E2)(I.value)},null,8,["code"])]),_:1}),A.createVNode(P,{label:"生成js文件",name:"js"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},language:"js",code:A.unref(Q2)(I.value)},null,8,["code"])]),_:1}),A.createVNode(P,{label:"帮助",name:"help"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},language:"json",code:A.unref(m2)},null,8,["code"])]),_:1})]),_:1})]),_:1},8,["modelValue","title"])}}}),f2=A.defineComponent({__name:"VueCode",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),t=gi(),i=A.useModel(n,"modelValue");return(u,I)=>{const o=A.resolveComponent("el-tab-pane"),b=A.resolveComponent("el-tabs"),y=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(y,{modelValue:i.value,"onUpdate:modelValue":I[0]||(I[0]=w=>i.value=w),title:A.unref(t).actions.previewVueCode,width:"70%",center:"","destroy-on-close":"",top:"10vh"},{default:A.withCtx(()=>[A.createVNode(b,{"model-value":"ts",class:"demo-tabs"},{default:A.withCtx(()=>[A.createVNode(o,{label:"Typescript",name:"ts"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},code:A.unref(C2)(A.unref(e).schema),language:"vue"},null,8,["code"])]),_:1}),A.createVNode(o,{label:"Javascript",name:"js"},{default:A.withCtx(()=>[A.createVNode(A.unref(vr),{style:{height:"70vh"},code:A.unref(B2)(A.unref(e).schema),language:"vue"},null,8,["code"])]),_:1})]),_:1})]),_:1},8,["modelValue","title"])}}}),w2=ie(A.defineComponent({__name:"Preview",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),{JsonEdit:t}=zo(),i=A.ref("edit"),u=A.ref(),I=A.ref({}),o=A.useModel(n,"modelValue"),b=A.computed(()=>{var w;return(w=u.value)==null?void 0:w.context}),y=gi();return(w,M)=>{const N=A.resolveComponent("el-tab-pane"),P=A.resolveComponent("el-tabs"),Y=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(Y,{modelValue:o.value,"onUpdate:modelValue":M[4]||(M[4]=G=>o.value=G),title:A.unref(y).actions.previewForm,width:"70%",center:"","destroy-on-close":"",top:"10vh",onClose:M[5]||(M[5]=G=>I.value={})},{default:A.withCtx(()=>[A.createVNode(P,{modelValue:i.value,"onUpdate:modelValue":M[3]||(M[3]=G=>i.value=G)},{default:A.withCtx(()=>[A.createVNode(N,{label:"编辑模式",name:"edit"},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:I.value,"onUpdate:modelValue":M[0]||(M[0]=G=>I.value=G),schema:A.unref(e).schema,ref_key:"formRef",ref:u,schemaContext:A.unref(e).schemaContext,style:{minHeight:"200px",padding:"20px"}},null,8,["modelValue","schema","schemaContext"])]),_:1}),A.createVNode(N,{label:"阅读模式",name:"read",lazy:""},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:I.value,"onUpdate:modelValue":M[1]||(M[1]=G=>I.value=G),schema:{...A.unref(e).schema},schemaContext:A.unref(e).schemaContext,style:{minHeight:"200px",padding:"20px"},read:""},null,8,["modelValue","schema","schemaContext"])]),_:1}),A.createVNode(N,{label:"联动变量",name:"context"},{default:A.withCtx(()=>[M[6]||(M[6]=A.createElementVNode("p",null,"实时预览的联动变量,在JsonSchema中可以通过双大括号模版语法使用,用于触发各种联动",-1)),(A.openBlock(),A.createBlock(A.unref(t).render,{modelValue:b.value,"onUpdate:modelValue":M[2]||(M[2]=G=>b.value=G),style:{height:"60vh"},key:i.value},null,8,["modelValue"]))]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-a9d66bb1"]]),b2=A.defineComponent({__name:"ChangeLang",setup(n){const e=A.inject("asiaint-lang");return(t,i)=>{const u=A.resolveComponent("el-option"),I=A.resolveComponent("el-select");return A.openBlock(),A.createBlock(I,{modelValue:A.unref(e),"onUpdate:modelValue":i[0]||(i[0]=o=>A.isRef(e)?e.value=o:null),size:"small"},{default:A.withCtx(()=>[A.createVNode(u,{label:"中文",value:"zh"}),A.createVNode(u,{label:"English",value:"en"})]),_:1},8,["modelValue"])}}}),y2=A.defineComponent({__name:"index",setup(n){const e=Sn(),t=gi(),i=A.ref(!1),u=A.ref(!1),I=A.ref(!1),o=A.computed(()=>[{label:t.value.actions.previewJson,btnType:"primary",icon:"script",onClick:()=>{i.value=!0}},{label:t.value.actions.previewVueCode,btnType:"default",icon:"vue",onClick:()=>{u.value=!0}},{label:t.value.actions.previewForm,btnType:"default",icon:"eye",onClick:()=>{I.value=!0}}]),b=A.computed(()=>[{label:t.value.actions.clear,btnType:"danger",icon:"trash",onClick:async()=>{await Ht.ElMessageBox.confirm("确认清空当前设计吗?"),e.updateSchema({...e.schema,items:[]})}},{label:t.value.actions.save,icon:"save",btnType:"primary",onClick:()=>{e.handleEmit("save"),e.handleEmit("onSave")}}]);return(y,w)=>{const M=A.resolveComponent("el-button");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("actions"))},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("actions-left"))},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(o.value,N=>(A.openBlock(),A.createBlock(M,{key:N.label,type:N.btnType,size:"small",onClick:N.onClick},A.createSlots({default:A.withCtx(()=>[A.createTextVNode(" "+A.toDisplayString(N.label),1)]),_:2},[N.icon?{name:"icon",fn:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:N.icon},null,8,["name"])]),key:"0"}:void 0]),1032,["type","onClick"]))),128)),A.createVNode(b2,{class:A.normalizeClass(A.unref(je)("actions-left-lang"))},null,8,["class"])],2),A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("actions-right"))},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(b.value,({label:N,btnType:P,icon:Y,onClick:G})=>(A.openBlock(),A.createBlock(M,{key:N,type:P,size:"small",onClick:G},A.createSlots({default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(N),1)]),_:2},[Y?{name:"icon",fn:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:Y},null,8,["name"])]),key:"0"}:void 0]),1032,["type","onClick"]))),128))],2),A.createVNode(I2,{modelValue:i.value,"onUpdate:modelValue":w[0]||(w[0]=N=>i.value=N)},null,8,["modelValue"]),A.createVNode(f2,{modelValue:u.value,"onUpdate:modelValue":w[1]||(w[1]=N=>u.value=N)},null,8,["modelValue"]),A.createVNode(w2,{modelValue:I.value,"onUpdate:modelValue":w[2]||(w[2]=N=>I.value=N),"schema-context":A.unref(e).schemaContext},null,8,["modelValue","schema-context"])],2)}}}),D2=A.defineComponent({__name:"index",setup(n){const e=Sn();return(t,i)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("form-design-center"))},[A.createVNode(y2),A.createVNode(A.unref(fn),{class:A.normalizeClass(A.unref(je)("canvas")),schema:A.unref(e).schema,"onUpdate:schema":i[0]||(i[0]=u=>A.unref(e).schema=u),design:""},null,8,["class","schema"])],2))}}),v2=()=>({labelWidth:100,labelPosition:"top",items:[{hideLabel:!0,name:"change",component:"FormList",children:[{label:"目标字段",name:"target",component:"Input",help:"如果是自增组件内部联动,直接输入子组件的name。如果是外部联动自增组件,就是formlist.*.key"},{label:"触发条件",name:"condition",component:"Input",help:"必须输入一个模板表达式,当表达式结果为true时才触发联动。如果不设置,默认会一直触发"},{label:"值",name:"value",component:"Input",help:"支持模板表达式"}],props:{mode:"card",title:"联动字段"}}]}),k2=A.defineComponent({__name:"Change",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),t=A.useModel(n,"modelValue");return(i,u)=>{const I=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(I,{"destroy-on-close":"",modelValue:t.value,"onUpdate:modelValue":u[1]||(u[1]=o=>t.value=o),top:"3vh",title:"值联动"},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:A.unref(e).current,"onUpdate:modelValue":u[0]||(u[0]=o=>A.unref(e).current=o),schema:A.unref(v2)()},null,8,["modelValue","schema"])]),_:1},8,["modelValue"])}}}),_2={labelWidth:100,labelPosition:"top",items:[{label:"手动配置",component:"JsonEdit",designKey:"design-A2bj",name:".",props:{style:{height:"70vh"}}}]},M2={class:"config-linkages"},x2=ie(A.defineComponent({__name:"Config",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Sn(),t=A.useModel(n,"modelValue");return A.ref({}),(i,u)=>{var o;const I=A.resolveComponent("el-dialog");return A.openBlock(),A.createBlock(I,{"destroy-on-close":"",modelValue:t.value,"onUpdate:modelValue":u[1]||(u[1]=b=>t.value=b),top:"3vh",title:`${(o=A.unref(e).current)==null?void 0:o.label} - 配置级联动`,width:"70vw",center:""},{default:A.withCtx(()=>[A.createElementVNode("div",M2,[A.createVNode(A.unref(fn),{modelValue:A.unref(e).current,"onUpdate:modelValue":u[0]||(u[0]=b=>A.unref(e).current=b),schema:A.unref(_2),class:"edit"},null,8,["modelValue","schema"])])]),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-e4ab3ef4"]]),S2=A.defineComponent({__name:"index",setup(n){const e=gi(),t=A.ref(!1),i=A.ref(!1),u=A.computed(()=>[{title:e.value.attr.tab1.linkage.action1,onClick:()=>{t.value=!0}},{title:e.value.attr.tab1.linkage.action2,onClick:()=>{i.value=!0}}]);return(I,o)=>{const b=A.resolveComponent("el-divider"),y=A.resolveComponent("el-button");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("linkageConfig"))},[A.createVNode(b,null,{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(A.unref(e).attr.tab1.linkage.text),1)]),_:1}),A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("linkageConfig-btns"))},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.value,({title:w,onClick:M})=>(A.openBlock(),A.createBlock(y,{key:w,type:"primary",plain:"",size:"small",onClick:M},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(w),1)]),_:2},1032,["onClick"]))),128))],2),A.createVNode(x2,{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=w=>t.value=w)},null,8,["modelValue"]),A.createVNode(k2,{modelValue:i.value,"onUpdate:modelValue":o[1]||(o[1]=w=>i.value=w)},null,8,["modelValue"])],2)}}}),N2={labelWidth:60,labelPosition:"right",size:"small",items:[{label:"class",component:"Input",props:{placeholder:""},designKey:"design-KUlI",name:"class"},{label:"宽度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"%",placeholder:"100",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vw",value:"vw"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi4",name:"style.width"},{label:"高度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"px",placeholder:"auto",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi44",name:"style.height"}]},F2={labelWidth:60,labelPosition:"top",size:"small",items:[{label:"ID",component:"Input",props:{placeholder:""},designKey:"form-0vQJ",name:"id"},{label:"class",component:"Input",props:{placeholder:""},designKey:"design-KUlI",name:"class"},{label:"宽度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"%",placeholder:"100",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vw",value:"vw"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi4",name:"style.width"},{label:"高度",component:"SelectInput",props:{selectPosition:"append",selectWidth:50,selectInitialValue:"px",placeholder:"auto",options:[{label:"%",value:"%"},{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"rem",value:"rem"}],clearable:!0},designKey:"design-Bvi44",name:"style.height"},{label:"背景色",component:"ColorInput",designKey:"form-YicU",name:"style.backgroundColor"},{label:"文字颜色",component:"ColorInput",designKey:"design-A2bj",name:"style.color"},{label:"缩放",component:"Slider",designKey:"design-A2sf",name:"style.transform",props:{min:50,max:150},initialValue:100,change:[{target:"style.transform",value:"{{ `scale(${$values.style.transform / 100 })` }}"}]},{children:[{label:"外间距",name:"margin",component:"TabsItem",children:[{props:{columns:2,columnGap:20,rowGap:20},component:"Grid",designKey:"design-QqeY",name:"form-3eBs",children:[{label:"上",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"design-F9CI",name:"style.marginTop"},{label:"下",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-XHJ7",name:"style.marginBottom"},{label:"左",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-Aeb5",name:"style.marginLeft"},{label:"右",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-g0Ss",name:"style.marginRight"}]}]},{label:"内间距",name:"padding",component:"TabsItem",children:[{props:{columns:2,columnGap:20,rowGap:20},component:"Grid",designKey:"design-QqeY",name:"form-3eBs",children:[{label:"上",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"design-F9CI",name:"style.paddingTop"},{label:"下",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-XHJ7",name:"style.paddingBottom"},{label:"左",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-Aeb5",name:"style.paddingLeft"},{label:"右",props:{placeholder:"0",selectPosition:"append",selectWidth:60,selectInitialValue:"px",options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vw",value:"vw"},{label:"vh",value:"vh"}]},component:"SelectInput",designKey:"form-g0Ss",name:"style.paddingRight"}]}]}],props:{defaultKey:"margin",tabPosition:"top"},component:"Tabs",designKey:"design-WK8O",name:"form-e9YD"},{label:"自定义",component:"JsonEdit",designKey:"design-A2bj",name:"style"}]},R2={class:"more"},L2=A.defineComponent({__name:"index",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=A.ref(!1);return(i,u)=>{const I=A.resolveComponent("el-divider"),o=A.resolveComponent("el-button"),b=A.resolveComponent("el-drawer");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("style-config"))},[A.createVNode(I,null,{default:A.withCtx(()=>u[4]||(u[4]=[A.createTextVNode("组件样式")])),_:1}),A.createVNode(A.unref(fn),{modelValue:e.value,"onUpdate:modelValue":u[0]||(u[0]=y=>e.value=y),schema:A.unref(N2),ref:"formRef"},null,8,["modelValue","schema"]),A.createElementVNode("div",R2,[A.createVNode(o,{type:"primary",plain:"",size:"small",onClick:u[1]||(u[1]=y=>t.value=!0)},{default:A.withCtx(()=>u[5]||(u[5]=[A.createTextVNode("自定义更多样式")])),_:1})]),A.createVNode(b,{modelValue:t.value,"onUpdate:modelValue":u[3]||(u[3]=y=>t.value=y),title:"组件样式"},{default:A.withCtx(()=>[A.createVNode(A.unref(fn),{modelValue:e.value,"onUpdate:modelValue":u[2]||(u[2]=y=>e.value=y),schema:A.unref(F2),ref:"formRef",style:{padding:"0 15px"}},null,8,["modelValue","schema"])]),_:1},8,["modelValue"])],2)}}}),G2=A.defineComponent({__name:"index",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=zo(),t=nc(),i=A.useModel(n,"modelValue"),u=A.computed(()=>{const o=e[i.value.component];if(o!=null&&o.attrSchema){const b=(w=[])=>w.map(M=>{const N=ma(i.value,M.name),P=ut.isString(N)&&/^{{\s*(.*?)\s*}}$/.test(N);return{...M,label:t.value==="zh"?M.label:M.name.split(".").pop(),component:P?"Input":M.component,dialog:P||M.dialog,children:M.children&&b(M.children)}}),y=b(o.attrSchema.items);return{...o.attrSchema,items:[{label:"组件类型",component:"Tag",name:"componentType",props:{text:o.title,style:{marginBottom:"10px"}}},...y]}}return{size:"small",labelPosition:"top",items:[]}}),I=A.computed({get(){var o;return((o=i.value)==null?void 0:o.props)||{}},set(o){i.value=ko(i.value,"props",o)}});return(o,b)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("attr"))},[(A.openBlock(),A.createBlock(A.unref(fn),{key:i.value.designKey,modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=y=>i.value=y),schema:u.value},null,8,["modelValue","schema"])),(A.openBlock(),A.createBlock(L2,{key:i.value.designKey,modelValue:I.value,"onUpdate:modelValue":b[1]||(b[1]=y=>I.value=y)},null,8,["modelValue"])),A.createVNode(S2,{modelValue:i.value,"onUpdate:modelValue":b[2]||(b[2]=y=>i.value=y)},null,8,["modelValue"])],2))}}),P2={size:"small",labelPosition:"top",items:[{label:"label宽度",component:"InputNumber",name:"labelWidth",props:{min:60,unit:"px",step:10},initialValue:150},{label:"label对齐方式",component:"Radio",name:"labelPosition",props:{mode:"static",options:[{label:"左对齐",value:"left"},{label:"居上",value:"top"},{label:"右对齐",value:"right"}]},initialValue:"right"},{label:"表单组件尺寸",component:"Radio",name:"size",props:{mode:"static",options:[{label:"默认",value:"default"},{label:"较小",value:"small"},{label:"较大",value:"large"}]},initialValue:"default"},{label:"禁用整个表单",component:"Switch",name:"disabled"},{label:"隐藏必填星号",component:"Switch",name:"hideRequiredAsterisk"},{label:"label加粗",component:"Switch",name:"labelBold"},{label:"自动滚动到校验失败的第一项",component:"Switch",name:"scrollToError"},{label:"规则文件路径",component:"Input",name:"rulePath"},{label:"表单编码",component:"Input",name:"key"},{label:"数据对象",component:"Input",name:"dataModel"}]},H2=A.defineComponent({__name:"FormEdit",setup(n){const e=Sn(),t=A.computed({get(){return e.schema},set(i){e.updateSchema(i)}});return(i,u)=>(A.openBlock(),A.createBlock(A.unref(fn),{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=I=>t.value=I),schema:A.unref(P2)},null,8,["modelValue","schema"]))}}),K2=A.defineComponent({__name:"index",setup(n){const e=gi(),t=Sn();return A.watch(()=>t.current,i=>{i||(t.rightTab="form")}),(i,u)=>{const I=A.resolveComponent("el-tab-pane"),o=A.resolveComponent("el-tabs");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("form-design-right"))},[A.createVNode(o,{modelValue:A.unref(t).rightTab,"onUpdate:modelValue":u[1]||(u[1]=b=>A.unref(t).rightTab=b)},{default:A.withCtx(()=>[A.unref(t).current?(A.openBlock(),A.createBlock(I,{key:0,label:A.unref(e).attr.tab1.title,name:"attr"},{default:A.withCtx(()=>[A.createVNode(G2,{modelValue:A.unref(t).current,"onUpdate:modelValue":u[0]||(u[0]=b=>A.unref(t).current=b)},null,8,["modelValue"])]),_:1},8,["label"])):A.createCommentVNode("",!0),A.createVNode(I,{label:A.unref(e).attr.tab2.title,name:"form"},{default:A.withCtx(()=>[A.createVNode(H2)]),_:1},8,["label"])]),_:1},8,["modelValue"])],2)}}}),wC=A.defineComponent({__name:"index",props:A.mergeModels({schemaContext:{default:()=>({})},templates:{default:()=>[]},omitMenus:{default:()=>[]}},{modelValue:{default:A.reactive({labelWidth:150,labelPosition:"right",scrollToError:!0,size:"default",items:[]})},modelModifiers:{}}),emits:A.mergeModels(["onSave","save","add"],["update:modelValue"]),setup(n,{emit:e}){const t=n,i=e,u=A.ref(""),I=A.useModel(n,"modelValue"),o=A.computed({get(){return I.value.items},set(w){I.value.items=w}}),b=A.computed({get(){return tc(o.value,u.value)},set(w){u.value=w.designKey,o.value=Rd(o.value,w)}}),y=A.reactive({...A.toRefs(t),currentKey:u,hoverKey:"",schema:I,current:b,list:o,rightTab:"form",updateCurrent(w){y.current=w},updateHoverKey(w){y.hoverKey=w},updateSchema:w=>{Object.assign(I.value,w)},updateList:w=>{o.value=w},handleEmit:(w,M)=>{i(w,M)}});return A.provide(Nd,y),(w,M)=>(A.openBlock(),A.createElementBlock("div",A.mergeProps({class:A.unref(je)("form-design")},w.$attrs),[A.createVNode(p2),A.createVNode(D2),A.createVNode(K2)],16))}}),T2={class:"card-header"},U2={class:"card-btns"},Y2={key:0,class:"switch-panel"},O2=ie(A.defineComponent({__name:"CardWrapper",props:{collapsible:{type:Boolean},header:{},btns:{},tableType:{default:"table"},typeSwitch:{type:Boolean,default:!1},switchTableType:{},shadowless:{type:Boolean}},setup(n){const e=n,t=A.ref(!1),i=A.computed(()=>e.btns?e.btns.map(u=>({isLinkBtn:!0,...u})):[]);return(u,I)=>{const o=A.resolveComponent("el-collapse-transition"),b=A.resolveComponent("ElCard");return A.openBlock(),A.createBlock(b,A.mergeProps(u.$attrs,{class:["crm-card",{collapsed:t.value,shadowless:u.shadowless}],shadow:"never"}),{header:A.withCtx(()=>[A.createElementVNode("div",T2,[u.collapsible?(A.openBlock(),A.createElementBlock("div",{key:0,class:"icon-wrapper",onClick:I[0]||(I[0]=y=>t.value=!t.value)},[A.createVNode(A.unref(Ie),{name:"dropdown",class:A.normalizeClass(["dropdown-icon",{"is-collapsed":t.value}])},null,8,["class"])])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(u.header),1),A.createElementVNode("div",U2,[u.typeSwitch?(A.openBlock(),A.createElementBlock("div",Y2,[A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:u.tableType==="card"}]),onClick:I[1]||(I[1]=y=>u.switchTableType("card"))},[A.createVNode(xe,{name:"icon-kapian"})],2),A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:u.tableType==="table"}]),onClick:I[2]||(I[2]=y=>u.switchTableType("table"))},[A.createVNode(xe,{name:"icon-biaoge"})],2)])):A.createCommentVNode("",!0),A.createElementVNode("div",null,[A.createVNode(A.unref(lo),{btns:i.value||[]},null,8,["btns"])])])])]),default:A.withCtx(()=>[A.createVNode(o,null,{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",null,[A.renderSlot(u.$slots,"default",{},void 0,!0)],512),[[A.vShow,!t.value]])]),_:3})]),_:3},16,["class"])}}}),[["__scopeId","data-v-d8e65e0c"]]),$2={class:"empty-content"},z2=["title"],J2=["title","onClick"],Z2={key:1,class:"icon-text-wrapper"},W2=["title"],j2=["title"],q2={class:"row-btn-wrapper"},bC=ie(A.defineComponent({__name:"TableContent",props:A.mergeModels({tableData:{},total:{},hasVisibleRowBtn:{type:Boolean},handleSizeChange:{type:Function},handlePageChange:{type:Function},handleRowClick:{type:Function},handleRowDblclick:{type:Function},handleSelectionChange:{type:Function},handleCurrentChange:{type:Function},getColText:{type:Function},getGlobalParams:{type:Function},handleClick:{type:Function},schema:{},selectable:{type:Function},getIconInfo:{type:Function}},{pagination:{required:!0},paginationModifiers:{}}),emits:["update:pagination"],setup(n,{expose:e}){const t=A.useModel(n,"pagination"),i=A.useTemplateRef("tableRef");return e({tableRef:i}),(u,I)=>{const o=A.resolveComponent("el-table-column"),b=A.resolveComponent("el-tooltip"),y=A.resolveComponent("el-button"),w=A.resolveComponent("FormItemGroup"),M=A.resolveComponent("el-popover"),N=A.resolveComponent("el-table"),P=A.resolveComponent("el-pagination");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(["table-render",{tableBorder:u.schema.displayType==="table",[u.schema.key]:!0}])},[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(N,{ref_key:"tableRef",ref:i,data:u.tableData,stripe:u.schema.stripe,"highlight-current-row":"","row-key":u.schema.rowKey,onRowClick:u.handleRowClick,onRowDblclick:u.handleRowDblclick,onSelectionChange:u.handleSelectionChange,onCurrentChange:u.handleCurrentChange,height:u.schema.height},{empty:A.withCtx(()=>[A.createElementVNode("div",$2,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),I[2]||(I[2]=A.createElementVNode("div",null,"No data available,please check",-1))])]),default:A.withCtx(()=>{var Y;return[u.schema.multipleSelection?(A.openBlock(),A.createBlock(o,{key:0,type:"selection",width:"55",selectable:u.selectable},null,8,["selectable"])):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.schema.columns,G=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:G.key},[G.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(o,{key:0,prop:G.key,"min-width":G.minWidth,fixed:G.fixed||!1,sortable:G.sortable||u.schema.sortable||!0},{header:A.withCtx(()=>[A.createElementVNode("div",{class:"text-ellipsis",title:G.label},A.toDisplayString(G.label),9,z2)]),default:A.withCtx(({row:K,$index:D})=>{var E,L,_,v;return[G.type==="link"?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["text-ellipsis link-style",{"click-style":G.onClick}]),title:u.getColText(G,K),onClick:B=>u.handleClick(G,K,D,B)},A.toDisplayString(u.getColText(G,K)),11,J2)):G.type==="iconText"?(A.openBlock(),A.createElementBlock("div",Z2,[G.iconPosition==="left"?(A.openBlock(),A.createBlock(xe,{key:0,name:(E=u.getIconInfo(G,K))==null?void 0:E.name,color:(L=u.getIconInfo(G,K))==null?void 0:L.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",{class:"text-ellipsis",title:u.getColText(G,K)},A.toDisplayString(u.getColText(G,K)),9,W2),G.iconPosition==="right"?(A.openBlock(),A.createBlock(xe,{key:1,name:(_=u.getIconInfo(G,K))==null?void 0:_.name,color:(v=u.getIconInfo(G,K))==null?void 0:v.color},null,8,["name","color"])):A.createCommentVNode("",!0)])):(A.openBlock(),A.createElementBlock("div",{key:2,class:A.normalizeClass({"text-ellipsis":!G.noEllipsis}),title:u.getColText(G,K)},A.toDisplayString(u.getColText(G,K)),11,j2))]}),_:2},1032,["prop","min-width","fixed","sortable"]))],64))),128)),u.hasVisibleRowBtn&&((Y=u.schema.rowBtns)!=null&&Y.length)?(A.openBlock(),A.createBlock(o,{key:1,label:u.schema.rowBtnsLabel||"Action",fixed:"right",align:"left",width:u.schema.rowBtnsWidth||(u.schema.rowBtns.length*34+12>100?u.schema.rowBtns.length*34+12:100)},{default:A.withCtx(({row:G,$index:K})=>[A.createElementVNode("div",q2,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.schema.rowBtns,D=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:D.key},[D.component==="Popover"?(A.openBlock(),A.createBlock(M,{key:0},{reference:A.withCtx(()=>[D.condition===void 0||D.condition===null||A.unref(Rt)(D.condition,{$row:G,$globalParams:u.getGlobalParams()})?(A.openBlock(),A.createBlock(y,{key:0,disabled:D.disabled,link:"",size:"small",type:D.type,onClick:E=>u.handleClick(D,G,K,E)},{default:A.withCtx(()=>[A.createVNode(b,{class:"box-item",effect:"dark",content:D.label,placement:"top","popper-class":"low-tsp","show-after":300},{default:A.withCtx(()=>[D.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:D.icon.name,color:D.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),D.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:D.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(D.buttonText.text,{$row:G,$globalParams:u.getGlobalParams()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)]),default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(w,{list:D.children},null,8,["list"])])]),_:2},1024)):(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[D.condition===void 0||D.condition===null||A.unref(Rt)(D.condition,{$row:G,$globalParams:u.getGlobalParams()})?(A.openBlock(),A.createBlock(y,{key:0,disabled:D.disabled,link:"",size:"small",type:D.type,onClick:E=>u.handleClick(D,G,K,E)},{default:A.withCtx(()=>[A.createVNode(b,{class:"box-item",effect:"dark",content:D.label,placement:"top","popper-class":"low-tsp","show-after":300},{default:A.withCtx(()=>[D.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:D.icon.name,color:D.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),D.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:D.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(D.buttonText.text,{$row:G,$globalParams:u.getGlobalParams()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)],64))],64))),128))])]),_:1},8,["label","width"])):A.createCommentVNode("",!0)]}),_:1},8,["data","stripe","row-key","onRowClick","onRowDblclick","onSelectionChange","onCurrentChange","height"])],512),[[A.vShow,u.schema.displayType==="table"]]),A.withDirectives(A.createVNode(ic,A.mergeProps(u.schema,{data:u.tableData,"get-col-text":u.getColText}),null,16,["data","get-col-text"]),[[A.vShow,u.schema.displayType==="card"]]),A.createElementVNode("div",{class:A.normalizeClass(["pagination-wrapper",{hidePagination:u.schema.hiddenPagination||u.tableData.length===0,cardlistPadding:u.schema.displayType==="card"}])},[A.createVNode(P,{layout:u.schema.paginationLayout||"total,sizes, prev, pager, next,jumper",total:u.total,"page-sizes":u.schema.pageSizes||[5,6,10,20,30,40],"default-page-size":u.schema.defaultPageSize,"current-page":t.value.pageNum,"onUpdate:currentPage":I[0]||(I[0]=Y=>t.value.pageNum=Y),"page-size":t.value.pageSize,"onUpdate:pageSize":I[1]||(I[1]=Y=>t.value.pageSize=Y),"pager-count":u.schema.pagerCount,onSizeChange:u.handleSizeChange,onCurrentChange:u.handlePageChange},null,8,["layout","total","page-sizes","default-page-size","current-page","page-size","pager-count","onSizeChange","onCurrentChange"])],2)],2)}}}),[["__scopeId","data-v-548eb882"]]),X2=["id"],rg=A.defineComponent({__name:"index",props:A.mergeModels({design:{type:Boolean},read:{type:Boolean},pageRulePath:{},pageKey:{}},{schema:{required:!0},schemaModifiers:{},modelValue:{default:[]},modelModifiers:{}}),emits:["update:schema","update:modelValue"],setup(n,{expose:e}){const t=n,i=A.useModel(n,"schema"),u=A.computed(()=>i.value.rulePath&&I[i.value.rulePath]?i.value.rulePath:t.pageRulePath),I=A.inject("ruleMap",{}),o=A.inject("pageMethodMap",{}),b=A.inject("getGlobalParams",()=>{}),y=A.inject(jn),w=y?y.translateFn:null;u.value&&A.provide("ruleModule",I[u.value]);const M=A.useTemplateRef("tableContentRef"),N=A.useModel(n,"modelValue"),P=(BA,j)=>{const tA=i.value.columns.find(rA=>rA.key===BA);tA&&(tA.hidden=!j)},Y=(BA,j,tA,rA)=>{if(u.value)try{I[u.value][BA.onClick](o,j,tA),rA==null||rA.stopPropagation()}catch(gA){console.error(gA)}},G=BA=>{if(!(!i.value.rowClick||!u.value))try{I[u.value][i.value.rowClick](o,BA)}catch(j){console.error(j)}},K=BA=>{if(!(!i.value.rowDbClick||!u.value))try{I[u.value][i.value.rowDbClick](o,BA)}catch(j){console.error(j)}},D=A.ref([]),E=BA=>{D.value=BA},L=(BA,j)=>{if(!i.value.selectable||!u.value)return!0;try{return I[u.value][i.value.selectable](o,BA,j)}catch(tA){console.error(tA)}return!0},_=(BA,j,tA)=>{N.value[BA]&&(N.value[BA][j]=tA)},v=()=>{var BA,j;(j=(BA=M.value)==null?void 0:BA.tableRef)==null||j.clearSelection()},B=()=>N.value,p=A.ref(),d=BA=>{if(p.value=BA,!(!i.value.handleCurrentChange||!u.value))try{I[u.value][i.value.handleCurrentChange](o,BA)}catch(j){console.error(j)}},l=()=>p.value,g=()=>{var BA,j;return(j=(BA=M.value)==null?void 0:BA.tableRef)==null?void 0:j.getSelectionRows()},s=(BA={})=>{N.value.push(BA)},h=BA=>{BA>=0&&BA<N.value.length&&N.value.splice(BA,1)},C=async()=>{N.value=[...N.value]},a=async()=>!0,r=BA=>{N.value=BA},m=(BA,j)=>{var rA;const tA=(rA=i.value.topBtns)==null?void 0:rA.find(gA=>gA.key===BA);tA&&(tA.hidden=j)},Q=(BA,j)=>{var rA;const tA=(rA=i.value.rowBtns)==null?void 0:rA.find(gA=>gA.key===BA);tA&&(tA.condition=!j)},x=A.computed(()=>!i.value.rowBtns||i.value.rowBtns.length===0||!N.value||N.value.length===0?!1:N.value.some(BA=>{var j;return(j=i.value.rowBtns)==null?void 0:j.some(tA=>tA.condition===void 0||tA.condition===null?!0:Rt(tA.condition,{$row:BA,$globalParams:b()}))})),S=A.ref(0),T=BA=>{S.value=BA},$=A.ref({pageNum:1,pageSize:i.value.defaultPageSize||5}),eA=A.ref({pageNum:1,pageSize:i.value.defaultPageSize||5}),W=()=>$.value,J=BA=>{let j=!1;return BA.pageNum!==void 0&&BA.pageNum>-1&&($.value.pageNum!==BA.pageNum&&(j=!0),$.value.pageNum=BA.pageNum),BA.pageSize!==void 0&&BA.pageSize>-1&&($.value.pageSize!==BA.pageSize&&(j=!0),$.value.pageSize=BA.pageSize),{pagination:$.value,isChange:j}},O=async BA=>{var rA;if($.value.pageNum=1,$.value.pageSize=BA,!i.value.sizeChange||!u.value)return;const j=(rA=document.getElementById(t.pageKey))==null?void 0:rA.querySelector(`.${i.value.key}`),tA=Ht.ElLoading.service({target:j||`#${i.value.key}`,text:"Loading..."});try{await I[u.value][i.value.sizeChange](o,$.value),eA.value.pageNum=$.value.pageNum,eA.value.pageSize=$.value.pageSize}catch(gA){console.error(gA),$.value.pageNum=eA.value.pageNum,$.value.pageSize=eA.value.pageSize}finally{tA.close()}},q=async BA=>{var rA;if($.value.pageNum=BA,!i.value.pageChange||!u.value)return;const j=(rA=document.getElementById(t.pageKey))==null?void 0:rA.querySelector(`.${i.value.key}`),tA=Ht.ElLoading.service({target:j||`#${i.value.key}`,text:"Loading..."});try{await I[u.value][i.value.pageChange](o,$.value),eA.value.pageNum=$.value.pageNum,eA.value.pageSize=$.value.pageSize}catch(gA){console.error(gA),$.value.pageNum=eA.value.pageNum,$.value.pageSize=eA.value.pageSize}finally{tA.close()}},k=BA=>{var j,tA;(tA=(j=M.value)==null?void 0:j.tableRef)==null||tA.setCurrentRow(BA)},V=BA=>{var j,tA;(tA=(j=M.value)==null?void 0:j.tableRef)==null||tA.setCurrentRow(N.value[BA])},H=(BA,j,tA)=>{i.value.columns.forEach(rA=>{rA.key===BA&&rA[j]&&(rA[j]=tA)})},AA=BA=>{i.value.displayType=BA},sA=BA=>{i.value.shadowless=BA},oA=(BA,j)=>{const tA=w?w(BA.key,j):j[BA.key];if(!Rt(BA.encrypted,{$row:j,$col:BA})||!tA)return tA;const gA=`${tA}`;return gA.length<=4?"*".repeat(gA.length):gA.slice(0,-4)+"****"},dA=(BA,j)=>{if(!(!BA.getIconInfo||!u.value))try{return I[u.value][BA.getIconInfo](o,j,BA)}catch(tA){console.error(tA)}},EA=A.useTemplateRef("rootRef");i.value.displayType||(i.value.displayType=i.value.typeSwitch?"card":"table"),A.onMounted(async()=>{if(!i.value||!i.value.onMounted||!u.value)return;await A.nextTick();const BA=i.value.onMounted;try{I[u.value][BA](o)}catch(j){console.error(j)}}),A.onActivated(()=>{if(!i.value||!i.value.onActivated||!u.value)return;const BA=i.value.onActivated;try{I[u.value][BA](o)}catch(j){console.error(j)}});const uA=A.readonly({...A.toRefs(t),setCellData:_,clearSelection:v,getData:B,getCurrentRow:l,getSelectedRows:g,addRow:s,deleteRow:h,refresh:C,validate:a,setData:r,selectRow:k,selectRowNum:V,setTotal:T,getPagination:W,setPagination:J,setTopBtnHidden:m,setColVisible:P,setColumn:H,setRowsBtnHidden:Q,setShadowless:sA,rootRef:EA,type:"table"});return e(uA),(BA,j)=>i.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,ref_key:"rootRef",ref:EA,id:i.value.key},[i.value.cardless?(A.openBlock(),A.createBlock(bC,{key:1,ref_key:"tableContentRef",ref:M,tableData:N.value,total:S.value,hasVisibleRowBtn:x.value,handleSizeChange:O,handlePageChange:q,handleRowClick:G,handleRowDblclick:K,handleSelectionChange:E,handleCurrentChange:d,getColText:oA,getGlobalParams:A.unref(b),handleClick:Y,selectable:L,schema:i.value,getIconInfo:dA,pagination:$.value,"onUpdate:pagination":j[1]||(j[1]=tA=>$.value=tA)},null,8,["tableData","total","hasVisibleRowBtn","getGlobalParams","schema","pagination"])):(A.openBlock(),A.createBlock(O2,{key:0,header:i.value.title,btns:i.value.topBtns,collapsible:i.value.collapsible!==!1,switchTableType:AA,tableType:i.value.displayType,typeSwitch:i.value.typeSwitch,shadowless:i.value.shadowless},{default:A.withCtx(()=>[A.createVNode(bC,{ref_key:"tableContentRef",ref:M,tableData:N.value,total:S.value,hasVisibleRowBtn:x.value,handleSizeChange:O,handlePageChange:q,handleRowClick:G,handleRowDblclick:K,handleSelectionChange:E,handleCurrentChange:d,getColText:oA,getGlobalParams:A.unref(b),handleClick:Y,selectable:L,schema:i.value,getIconInfo:dA,pagination:$.value,"onUpdate:pagination":j[0]||(j[0]=tA=>$.value=tA)},null,8,["tableData","total","hasVisibleRowBtn","getGlobalParams","schema","pagination"])]),_:1},8,["header","btns","collapsible","tableType","typeSwitch","shadowless"]))],8,X2))}}),V2=["id"],A8={class:"tab-label"},e8={class:"tab-label-text"},t8={key:0,class:"divider"},n8=ie(A.defineComponent({__name:"index",props:A.mergeModels({ruleMap:{},pageParams:{},pageRulePath:{}},{schema:{required:!0},schemaModifiers:{}}),emits:A.mergeModels(["addPageParams"],["update:schema"]),setup(n,{expose:e,emit:t}){const i=A.useModel(n,"schema"),u=A.ref({}),I=t,o=A.ref({}),b=B=>p=>{p?o.value[B]=p:delete o.value[B]},y=n,w=A.computed(()=>{var B;return(B=i.value.content.find(p=>p.url===P.value))==null?void 0:B.mixMode}),M=B=>{i.value.content=B},N=B=>{Array.isArray(B)?i.value.content.push(...B):i.value.content.push(B)},P=A.ref(i.value.content[0].url),Y=B=>{u.value[B]=!0,A.nextTick(()=>{u.value[B]=!1})},G=A.useTemplateRef("rootRef"),K=B=>o.value[B],D=(B,p)=>{p&&I("addPageParams",p),A.nextTick(()=>{P.value=B,v(B)})},E=(B,p)=>{const d=i.value.content.find(l=>l.url===B);d&&(d.mixMode=p)},L=A.inject("pageMethodMap",{}),_=A.computed(()=>i.value.rulePath&&y.ruleMap[i.value.rulePath]?i.value.rulePath:y.pageRulePath),v=B=>{o.value[B]&&o.value[B].activate();const p=i.value.onChange;try{p&&y.ruleMap[_.value][p](L,B)}catch{}};return e(A.readonly({setTabContent:M,addTabContent:N,schema:i,rootRef:G,findRef:K,changeActiveTab:D,type:"tabs"})),(B,p)=>{var s,h,C;const d=A.resolveComponent("el-skeleton"),l=A.resolveComponent("el-tab-pane"),g=A.resolveComponent("el-tabs");return A.openBlock(),A.createElementBlock("div",{ref_key:"rootRef",ref:G,id:i.value.key},[i.value.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(g,A.mergeProps({key:0},i.value.tabProps,{modelValue:P.value,"onUpdate:modelValue":p[0]||(p[0]=a=>P.value=a),class:["crm-tabs",{mixmode:w.value}],style:{"--top":(s=i.value)!=null&&s.stickyTop?`${(h=i.value)==null?void 0:h.stickyTop}px`:"110px","--is-sticky":(C=i.value)!=null&&C.isSticky?"sticky":"static"},onTabChange:v}),{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(i.value.content,(a,r)=>(A.openBlock(),A.createBlock(l,{name:a.key||a.url,key:a.key||a.url,lazy:r!==0},{label:A.withCtx(()=>[A.createElementVNode("div",A8,[A.createElementVNode("span",e8,A.toDisplayString(a.label),1),r!==i.value.content.length-1?(A.openBlock(),A.createElementBlock("span",t8)):A.createCommentVNode("",!0)])]),default:A.withCtx(()=>[u.value[r]?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(ag,{key:0,pageUrl:a.url,"rule-map":B.ruleMap,"page-params":a.pageParams?{...B.pageParams,...a.pageParams}:B.pageParams,ref_for:!0,ref:b(a.url),onRefresh:m=>Y(r),onChangeTab:D,onChangeMixMode:E},{loading:A.withCtx(()=>[A.createVNode(d,{rows:5,animated:""})]),_:2},1032,["pageUrl","rule-map","page-params","onRefresh"]))]),_:2},1032,["name","lazy"]))),128))]),_:1},16,["modelValue","style","class"]))],8,V2)}}}),[["__scopeId","data-v-7ac2d7d6"]]),i8=["id"],o8={class:"info-card-header"},r8={class:"left-part"},a8={class:"title-part"},s8={class:"sub-title-container"},l8={class:"right-part"},c8={class:"info info-card-infos"},g8={class:"info-label"},u8={class:"ml-2"},d8={class:"info-card-detail"},h8={class:"info-card-detail-left"},p8={class:"label"},C8={key:0,class:"divider"},B8={key:0,class:"info-card-detail-right"},m8={key:0},E8={key:1,class:"detail-right-label"},Q8={key:2,class:"detail-right-value"},I8=ie(A.defineComponent({__name:"InfoCard",props:A.mergeModels({pageRulePath:{}},{schema:{required:!0},schemaModifiers:{}}),emits:["update:schema"],setup(n,{expose:e}){const t=A.useModel(n,"schema"),i=A.inject("ruleMap",{}),u=n,I=A.computed(()=>t.value.rulePath&&i[t.value.rulePath]?i[t.value.rulePath]:i[u.pageRulePath]);A.provide("ruleModule",I.value);const o=A.inject("pageMethodMap",{}),b=N=>{const P=document.createElement("textarea");P.value=N??"",P.style.position="absolute",P.style.opacity="0",document.body.appendChild(P),P.select(),document.execCommand("copy"),P.remove()},y=async()=>{try{await navigator.clipboard.writeText(t.value.header.subTitle)}catch(N){console.error("Clipboard API error:",N),b(t.value.header.subTitle)}Ht.ElMessage.success("Copy Successful")},w=N=>{var P;if(I.value[N||"clickTitleIcon"])try{I.value[N||"clickTitleIcon"](o,(P=t.value.header)==null?void 0:P.titleIcon)}catch(Y){console.error(Y+`
|
|
192
193
|
|
|
193
194
|
rulePath: ${t.value.rulePath}
|
|
194
195
|
|
|
@@ -1645,5 +1646,5 @@ onChange: ${e.onChange}`)}},b=()=>{if(e.onSearch&&u)try{u[e.onSearch](I)}catch(M
|
|
|
1645
1646
|
onSearch: ${e.onSearch}`)}},{currentOptions:y,loading:w}=Cr(e);return(M,N)=>{var D;const P=A.resolveComponent("el-option"),Y=A.resolveComponent("el-select"),G=A.resolveComponent("el-button"),K=A.resolveDirective("loading");return M.read?(A.openBlock(),A.createElementBlock("div",ax,[M.multiple?(A.openBlock(),A.createElementBlock("div",sx,A.toDisplayString(t.value&&t.value.map(E=>{var L;return(L=A.unref(y).find(_=>_[M.valueKey]===E))==null?void 0:L[M.labelKey]}).join("、")),1)):(A.openBlock(),A.createElementBlock("div",lx,A.toDisplayString(((D=A.unref(y).find(E=>E[M.valueKey]===t.value))==null?void 0:D[M.labelKey])||"--"),1))])):(A.openBlock(),A.createElementBlock("div",cx,[A.withDirectives((A.openBlock(),A.createBlock(Y,A.mergeProps({modelValue:t.value,"onUpdate:modelValue":N[0]||(N[0]=E=>t.value=E)},M.$attrs,{onChange:o,multiple:M.multiple,clearable:"",filterable:"",disabled:M.disabled}),{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(A.unref(y),E=>(A.openBlock(),A.createBlock(P,{key:E[M.valueKey],label:E[M.labelKey],value:E[M.valueKey],disabled:E[M.disabledKey]},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(E[M.labelKey]),1)]),_:2},1032,["label","value","disabled"]))),128))]),_:1},16,["modelValue","multiple","disabled"])),[[K,A.unref(w)]]),A.createVNode(G,{onClick:b,disabled:M.disabled,class:"search-btn"},{default:A.withCtx(()=>[A.createVNode(A.unref(Ie),{name:"search"})]),_:1},8,["disabled"])]))}}}),[["__scopeId","data-v-b14d9207"]])},Symbol.toStringTag,{value:"Module"})),ux={class:"custom-tree-node"},dx={class:"tree-node-text"},hx={class:"tree-node-label"},px={key:0,class:"tree-node-present"},Cx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Component",props:{onNodeClick:{},onLoad:{},btns:{},data:{},props:{},nodeKey:{}},setup(n){const e=n,t=A.inject("ruleModule",void 0),i=A.inject("pageMethodMap",{}),u=A.ref(),I=(M,N)=>{u.value=M[e.nodeKey]},o=(M,N,P)=>{if(M&&t)try{t[M](i,{node:N,data:P})}catch(Y){console.error(Y+`
|
|
1646
1647
|
onNodeClick: ${e.onNodeClick}`)}},b=(M,N)=>{if(e.onNodeClick&&t)try{t[e.onNodeClick](i,{node:M,data:N})}catch(P){console.error(P+`
|
|
1647
1648
|
onNodeClick: ${e.onNodeClick}`)}},y=(M,N,P)=>{if(e.onLoad&&t)try{t[e.onLoad](i,{node:M,resolve:N,reject:P})}catch(Y){console.error(Y+`
|
|
1648
|
-
onLoad: ${e.onLoad}`)}},w=A.ref([]);return A.watch(()=>e.data,()=>{if(!e.data||!Array.isArray(e.data)||e.data.length===0)return;const N=[e.data[0][e.nodeKey]];w.value=N},{immediate:!0}),(M,N)=>{const P=A.resolveComponent("el-tooltip"),Y=A.resolveComponent("el-button"),G=A.resolveComponent("el-tree");return A.openBlock(),A.createBlock(G,A.mergeProps(M.$attrs,{onNodeClick:b,load:y,ref:"treeRef",class:"crm-tree",indent:32,"current-node-key":u.value,onCurrentChange:I,"node-key":M.nodeKey,props:e.props,data:M.data,"default-expanded-keys":w.value}),{default:A.withCtx(({node:K,data:D})=>[A.createElementVNode("div",ux,[A.createElementVNode("div",dx,[A.createElementVNode("span",hx,A.toDisplayString(K.label),1),D[M.nodeKey]===u.value?(A.openBlock(),A.createElementBlock("div",px,"Present")):A.createCommentVNode("",!0)]),A.createElementVNode("div",null,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(M.btns,E=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:E.key},[A.unref(Rt)(E.hidden,{$node:K,$data:D})?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(Y,{key:0,link:"",onClick:A.withModifiers(L=>o(E.onClick||"",K,D),["stop"]),disabled:E.disabled,type:E.type},{default:A.withCtx(()=>[A.createVNode(P,{class:"box-item",effect:"dark",content:E.text,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[E.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:E.icon.name,color:E.icon.color,class:"btn-icon"},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"])]),_:2},1032,["onClick","disabled","type"]))],64))),128))])])]),_:1},16,["current-node-key","node-key","props","data","default-expanded-keys"])}}}),[["__scopeId","data-v-016a1506"]])},Symbol.toStringTag,{value:"Module"})),Bx=["id"],mx={class:"empty-content"},Ex=["title"],Qx=["title","onClick"],Ix={key:1,class:"icon-text-wrapper"},fx=["title","onClick"],wx={key:2},bx=["title"],yx={class:"row-btn-wrapper"},Dx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Table",props:{title:{},key:{},rulePath:{},rowKey:{},showDynamicSearch:{type:Boolean},multipleSelection:{type:Boolean},highlightCurrentRow:{type:Boolean},"highlight-current-row":{type:Boolean},stripe:{type:Boolean},rowClick:{},rowDbClick:{},sizeChange:{},pageChange:{},topBtns:{},rowBtns:{},rowBtnsLabel:{},rowBtnsWidth:{},columns:{},hidden:{type:Boolean},hiddenPagination:{type:Boolean},handleCurrentChange:{},selectable:{},pageSizes:{},pagerCount:{},paginationLayout:{},defaultPageSize:{},typeSwitch:{type:Boolean},displayType:{default:"table"},onMounted:{},onActivated:{},height:{},collapsible:{type:Boolean},name:{},gridColumns:{}},setup(n,{expose:e}){const t=n,i=A.computed(()=>t.displayType?t.displayType:t.typeSwitch?"card":"table"),u=A.inject("ruleModule",void 0),I=A.inject("ruleMap",void 0),o=A.computed(()=>t.rulePath&&I[t.rulePath]?I[t.rulePath]:u),b=A.inject("pageMethodMap",{}),y=A.inject("getGlobalParams",()=>{}),w=A.inject(jn),M=w?w.translateFn:null,N=A.ref(),P=(tA,rA,gA)=>{O.value[tA]&&(O.value[tA][rA]=gA)},Y=(tA,rA)=>{const gA=t.columns.find(z=>z.key===tA);gA&&(gA.hidden=!rA)},G=(tA,rA,gA,z)=>{try{o.value[tA.onClick](b,rA,gA,z),z==null||z.stopPropagation()}catch(X){console.error(X)}},K=tA=>{if(t.rowClick)try{o.value[t.rowClick](b,tA)}catch(rA){console.error(rA)}},D=tA=>{if(t.rowDbClick)try{o.value[t.rowDbClick](b,tA)}catch(rA){console.error(rA)}},E=A.ref([]),L=tA=>{E.value=tA},_=(tA,rA)=>{if(!t.selectable)return!0;try{return o.value[t.selectable](b,tA,rA)}catch(gA){console.error(gA)}return!0},v=()=>{var tA;(tA=N.value)==null||tA.clearSelection()},B=()=>O.value,p=A.ref(),d=tA=>{if(p.value=tA,!!t.handleCurrentChange)try{o.value[t.handleCurrentChange](b,tA)}catch(rA){console.error(rA)}},l=()=>p.value,g=()=>{var tA;return(tA=N.value)==null?void 0:tA.getSelectionRows()},s=async()=>!0,h=(tA,rA)=>{var z;const gA=(z=t.topBtns)==null?void 0:z.find(X=>X.key===tA);gA&&(gA.hidden=rA)},C=(tA,rA)=>{var z;const gA=(z=t.rowBtns)==null?void 0:z.find(X=>X.key===tA);gA&&(gA.condition=!rA)},a=A.ref(0),r=tA=>{a.value=tA},m=A.ref({pageNum:1,pageSize:t.defaultPageSize||5}),Q=A.ref({pageNum:1,pageSize:t.defaultPageSize||5}),x=()=>m.value,S=tA=>{let rA=!1;return tA.pageNum!==void 0&&tA.pageNum>-1&&(m.value.pageNum!==tA.pageNum&&(rA=!0),m.value.pageNum=tA.pageNum),tA.pageSize!==void 0&&tA.pageSize>-1&&(m.value.pageSize!==tA.pageSize&&(rA=!0),m.value.pageSize=tA.pageSize),{pagination:m.value,isChange:rA}},T=async()=>{if(m.value.pageNum=1,!t.sizeChange)return;const tA=Ht.ElLoading.service({target:`#${t.name}`,text:"Loading..."});try{await o.value[t.sizeChange](b,m.value),Q.value.pageNum=m.value.pageNum,Q.value.pageSize=m.value.pageSize}catch(rA){console.error(rA),m.value.pageNum=Q.value.pageNum,m.value.pageSize=Q.value.pageSize}finally{tA.close()}},$=async()=>{if(!t.pageChange)return;const tA=Ht.ElLoading.service({target:`#${t.name}`,text:"Loading..."});try{await o.value[t.pageChange](b,m.value),Q.value.pageNum=m.value.pageNum,Q.value.pageSize=m.value.pageSize}catch(rA){console.error(rA),m.value.pageNum=Q.value.pageNum,m.value.pageSize=Q.value.pageSize}finally{tA.close()}},eA=tA=>{var rA;(rA=N.value)==null||rA.setCurrentRow(tA)},W=tA=>{var rA;(rA=N.value)==null||rA.setCurrentRow(O.value[tA])},J=(tA,rA,gA)=>{t.columns.forEach(z=>{z.key===tA&&z[rA]&&(z[rA]=gA)})},O=A.ref([]),q=tA=>{O.value=tA},k=(tA={})=>{O.value.push(tA)},V=tA=>{tA>=0&&tA<O.value.length&&O.value.splice(tA,1)},H=async()=>{O.value=[...O.value]},AA=A.useTemplateRef("rootRef"),sA=A.readonly({...A.toRefs(t),setCellData:P,clearSelection:v,getData:B,getCurrentRow:l,getSelectedRows:g,addRow:k,deleteRow:V,refresh:H,validate:s,setData:q,selectRow:eA,selectRowNum:W,setTotal:r,getPagination:x,setPagination:S,setTopBtnHidden:h,setColVisible:Y,setColumn:J,setRowsBtnHidden:C,rootRef:AA,type:"table"}),oA=(tA,rA)=>{const gA=M?M(tA.key,rA):rA[tA.key];if(!tA.encrypted||!gA)return gA;const z=`${gA}`;return z.length<=4?"*".repeat(z.length):z.slice(0,-4)+"****"},dA=(tA,rA)=>{if(!tA.getTextStyle||!o.value)return{};try{return o.value[tA.getTextStyle](b,rA,tA)}catch(gA){console.error(gA)}},EA=(tA,rA)=>{if(!(!tA.getIconInfo||!o.value))try{return o.value[tA.getIconInfo](b,rA,tA)}catch(gA){console.error(gA)}},uA=(tA,rA)=>{if(!(!tA.getIconPopoverContent||!o.value))try{return o.value[tA.getIconPopoverContent](b,rA,tA)}catch(gA){console.error(gA)}},BA=(tA,rA)=>{if(!(!tA.getCustomContent||!o.value))try{return o.value[tA.getCustomContent](b,rA,tA)}catch(gA){console.error(gA)}},j=A.computed(()=>!t.rowBtns||t.rowBtns.length===0||!O.value||O.value.length===0?!1:O.value.some(tA=>{var rA;return(rA=t.rowBtns)==null?void 0:rA.some(gA=>gA.condition===void 0||gA.condition===null?!0:Rt(gA.condition,{$row:tA,$globalParams:y()}))}));if(A.onMounted(async()=>{if(!t.onMounted||!o.value)return;await A.nextTick();const tA=t.onMounted;try{o.value[tA](b)}catch(rA){console.error(rA)}}),A.onActivated(()=>{if(!t.onActivated||!o.value)return;const tA=t.onActivated;try{o.value[tA](b)}catch(rA){console.error(rA)}}),t.name){const tA=fs(t.name,sA);A.onUnmounted(()=>{tA()})}return e(sA),(tA,rA)=>{const gA=A.resolveComponent("el-table-column"),z=A.resolveComponent("el-popover"),X=A.resolveComponent("el-tooltip"),iA=A.resolveComponent("el-button"),cA=A.resolveComponent("el-pagination");return tA.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["table-render",{tableBorder:i.value==="table",[tA.name]:!0}]),ref_key:"rootRef",ref:AA,id:tA.name},[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(A.unref(Ht.ElTable),{ref_key:"tableRef",ref:N,data:O.value,"highlight-current-row":"","row-key":tA.rowKey,stripe:tA.stripe,onRowClick:K,onRowDblclick:D,onSelectionChange:L,onCurrentChange:d,height:tA.height},{empty:A.withCtx(()=>[A.createElementVNode("div",mx,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),rA[2]||(rA[2]=A.createElementVNode("div",null,"No data available,please check",-1))])]),default:A.withCtx(()=>[tA.multipleSelection?(A.openBlock(),A.createBlock(gA,{key:0,type:"selection",width:"55",selectable:_})):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(tA.columns,CA=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:CA.key},[CA.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(gA,{key:0,prop:CA.key,"min-width":CA.minWidth,fixed:CA.fixed||!1},{header:A.withCtx(()=>[A.createElementVNode("div",{class:"text-ellipsis",title:CA.label},A.toDisplayString(CA.label),9,Ex)]),default:A.withCtx(({row:vA,$index:GA})=>{var JA,qA,WA,ue;return[CA.type==="link"?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["text-ellipsis link-style",{"click-style":CA.onClick}]),title:oA(CA,vA),onClick:te=>G(CA,vA,GA,te)},A.toDisplayString(oA(CA,vA)),11,Qx)):CA.type==="iconText"?(A.openBlock(),A.createElementBlock("div",Ix,[CA.iconPosition==="left"?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[CA.iconPopover&&Array.isArray(uA(CA,vA))?(A.openBlock(),A.createBlock(z,{key:0},{reference:A.withCtx(()=>{var te,LA;return[A.createVNode(xe,{name:(te=EA(CA,vA))==null?void 0:te.name,color:(LA=EA(CA,vA))==null?void 0:LA.color},null,8,["name","color"])]}),default:A.withCtx(()=>[A.createVNode(A.unref(mt),{list:uA(CA,vA)||[]},null,8,["list"])]),_:2},1024)):(A.openBlock(),A.createBlock(xe,{key:1,name:(JA=EA(CA,vA))==null?void 0:JA.name,color:(qA=EA(CA,vA))==null?void 0:qA.color},null,8,["name","color"]))],64)):A.createCommentVNode("",!0),A.createElementVNode("span",{class:A.normalizeClass(["text-ellipsis",{"click-style":CA.onClick}]),title:oA(CA,vA),onClick:te=>G(CA,vA,GA,te)},A.toDisplayString(oA(CA,vA)),11,fx),CA.iconPosition==="right"?(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[CA.iconPopover&&Array.isArray(uA(CA,vA))?(A.openBlock(),A.createBlock(z,{key:0},{reference:A.withCtx(()=>{var te,LA;return[A.createVNode(xe,{name:(te=EA(CA,vA))==null?void 0:te.name,color:(LA=EA(CA,vA))==null?void 0:LA.color},null,8,["name","color"])]}),default:A.withCtx(()=>[A.createVNode(A.unref(mt),{list:uA(CA,vA)||[]},null,8,["list"])]),_:2},1024)):(A.openBlock(),A.createBlock(xe,{key:1,name:(WA=EA(CA,vA))==null?void 0:WA.name,color:(ue=EA(CA,vA))==null?void 0:ue.color},null,8,["name","color"]))],64)):A.createCommentVNode("",!0)])):CA.type==="customContent"?(A.openBlock(),A.createElementBlock("div",wx,[A.createVNode(A.unref(mt),{list:BA(CA,vA)||[]},null,8,["list"])])):(A.openBlock(),A.createElementBlock("div",{key:3,class:A.normalizeClass({"text-ellipsis":!CA.noEllipsis}),title:oA(CA,vA),style:A.normalizeStyle(dA(CA,vA))},A.toDisplayString(oA(CA,vA)),15,bx))]}),_:2},1032,["prop","min-width","fixed"]))],64))),128)),j.value&&tA.rowBtns&&tA.rowBtns.length>0?(A.openBlock(),A.createBlock(gA,{key:1,label:tA.rowBtnsLabel||"Action",fixed:"right",align:"left",width:tA.rowBtnsWidth||(tA.rowBtns.length*34+12>100?tA.rowBtns.length*34+12:100)},{default:A.withCtx(({row:CA,$index:vA})=>[A.createElementVNode("div",yx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(tA.rowBtns,GA=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:GA.key},[GA.component==="Popover"?(A.openBlock(),A.createBlock(z,{key:0,title:GA.label,trigger:"click","popper-class":"btn-popover",width:"400"},{reference:A.withCtx(()=>[GA.condition===void 0||GA.condition===null||A.unref(Rt)(GA.condition,{$row:CA,$globalParams:A.unref(y)()})?(A.openBlock(),A.createBlock(iA,{key:0,disabled:GA.disabled,link:"",size:"small",type:GA.type,onClick:A.withModifiers(JA=>G(GA,CA,vA,JA),["stop"])},{default:A.withCtx(()=>[A.createVNode(X,{class:"box-item",effect:"dark",content:GA.label,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[GA.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:GA.icon.name,color:GA.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),GA.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:GA.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(GA.buttonText.text,{$row:CA,$globalParams:A.unref(y)()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)]),default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(A.unref(mt),{list:GA.children},null,8,["list"])])]),_:2},1032,["title"])):(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[GA.condition===void 0||GA.condition===null||A.unref(Rt)(GA.condition,{$row:CA,$globalParams:A.unref(y)()})?(A.openBlock(),A.createBlock(iA,{key:0,disabled:GA.disabled,link:"",size:"small",type:GA.type,onClick:A.withModifiers(JA=>G(GA,CA,vA,JA),["stop"])},{default:A.withCtx(()=>[A.createVNode(X,{class:"box-item",effect:"dark",content:GA.label,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[GA.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:GA.icon.name,color:GA.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),GA.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:GA.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(GA.buttonText.text,{$row:CA,$globalParams:A.unref(y)()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)],64))],64))),128))])]),_:1},8,["label","width"])):A.createCommentVNode("",!0)]),_:1},8,["data","row-key","stripe","height"])],512),[[A.vShow,i.value==="table"]]),A.withDirectives(A.createVNode(ic,A.mergeProps({data:O.value},t,{getColText:oA}),null,16,["data"]),[[A.vShow,i.value==="card"]]),A.createElementVNode("div",{class:A.normalizeClass(["pagination-wrapper",{hidePagination:(tA.hiddenPagination||O.value.length===0)&&!tA.height,transparentPagination:(tA.hiddenPagination||O.value.length===0)&&tA.height,cardlistPadding:i.value==="card"}])},[A.createVNode(cA,{layout:tA.paginationLayout||"total,sizes, prev, pager, next,jumper",total:a.value,"page-sizes":tA.pageSizes||[5,6,10,20,30,40],"default-page-size":tA.defaultPageSize,"current-page":m.value.pageNum,"onUpdate:currentPage":rA[0]||(rA[0]=CA=>m.value.pageNum=CA),"page-size":m.value.pageSize,"onUpdate:pageSize":rA[1]||(rA[1]=CA=>m.value.pageSize=CA),"pager-count":Number(tA.pagerCount)||5,onSizeChange:T,onCurrentChange:$},null,8,["layout","total","page-sizes","default-page-size","current-page","page-size","pager-count"])],2)],10,Bx))}}}),[["__scopeId","data-v-b20e4c76"]])},Symbol.toStringTag,{value:"Module"})),vx=["id"],kx={class:"left-part"},_x={class:"title"},Mx={class:"right-part"},xx={key:0},Sx={key:1,class:"switch-panel"},Nx={key:3},Fx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"CurdCard",props:{name:{},children:{},defaultCollapse:{type:Boolean},collapsible:{type:Boolean},onCollapsed:{},typeSwitch:{type:Boolean},title:{},btns:{},type:{},mainIcon:{},extraIcons:{},displayType:{},radioList:{},onRadioChange:{},radioDefault:{},formSlots:{},style:{type:[Boolean,null,String,Object,Array]},hasSearchInput:{type:Boolean},searchPlaceholder:{},handleSearch:{},searchInputChange:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref(""),u=n,I=A.ref(u.radioDefault??"2"),o=K=>{if(K&&e)try{e[K](t)}catch(D){console.error(D+`
|
|
1649
|
-
funcName: ${K}`)}},b=K=>{u.onRadioChange&&e&&e[u.onRadioChange](t,K)},y=()=>{w.value=!w.value,u.onCollapsed&&e&&e[u.onCollapsed](t,w.value)},w=A.ref(u.defaultCollapse??!1);A.watch(()=>u.defaultCollapse,()=>{w.value=u.defaultCollapse??!1});const M=A.ref(u.displayType||(u.typeSwitch?"card":"table")),N=It(),P=K=>{M.value=K;const D=Si(N.schema.items,u.name),E=L=>{L.forEach(_=>{_.component==="Table"&&_.props&&(_.props.displayType=K),_.children&&_.children.length>0&&E(_.children)})};D&&D.children&&E(D.children)},Y=K=>{u.handleSearch&&e&&e[u.handleSearch](t,K)},G=K=>{u.searchInputChange&&e&&e[u.searchInputChange](t,K)};return P(M.value),(K,D)=>{const E=A.resolveComponent("el-radio"),L=A.resolveComponent("el-radio-group"),_=A.resolveComponent("el-tooltip"),v=A.resolveComponent("el-input"),B=A.resolveComponent("el-collapse-transition");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(["crm-curd-card",{gridItem:K.type==="gridItem"}]),style:A.normalizeStyle(K.style),id:K.name},[A.createElementVNode("div",{class:A.normalizeClass(["card-header",{inline:K.type==="inline",mix:K.type==="mix",default:K.type==="default",gridItem:K.type==="gridItem",collapsedPadding:w.value&&K.onCollapsed,"has-search-input":K.hasSearchInput}])},[A.createElementVNode("div",kx,[K.mainIcon?(A.openBlock(),A.createBlock(xe,{key:0,class:"title-icon",size:"large",name:K.mainIcon.name,color:K.mainIcon.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",_x,A.toDisplayString(K.title),1),K.radioList?(A.openBlock(),A.createBlock(L,{key:1,class:"ml-9",modelValue:I.value,"onUpdate:modelValue":D[0]||(D[0]=p=>I.value=p),onChange:D[1]||(D[1]=p=>b(I.value))},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(K.radioList,p=>(A.openBlock(),A.createBlock(E,{value:p.value,key:p.value},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(p.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(K.extraIcons,p=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:p.name},[p.tips?(A.openBlock(),A.createBlock(_,{key:0,content:p.tips,placement:"right"},{default:A.withCtx(()=>[A.createVNode(xe,{class:"extra-icon",name:p.name,color:p.color,onClick:d=>o(p.onClick)},null,8,["name","color","onClick"])]),_:2},1032,["content"])):(A.openBlock(),A.createBlock(xe,{key:1,class:"extra-icon",name:p.name,color:p.color,onClick:d=>o(p.onClick)},null,8,["name","color","onClick"]))],64))),128))]),K.hasSearchInput?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["card-search-input",{collapsedPadding:w.value&&K.onCollapsed}])},[A.createVNode(v,{modelValue:i.value,"onUpdate:modelValue":D[2]||(D[2]=p=>i.value=p),placeholder:K.searchPlaceholder,size:"large",onInput:G,onKeyup:A.withKeys(Y,["enter"])},{prefix:A.withCtx(()=>D[5]||(D[5]=[])),suffix:A.withCtx(()=>[A.createVNode(xe,{class:"cursor-pointer",name:"icon-lujing2",color:"#666666",size:"normal",onClick:Y})]),_:1},8,["modelValue","placeholder"])],2)):A.createCommentVNode("",!0),A.createElementVNode("div",Mx,[K.formSlots?(A.openBlock(),A.createElementBlock("div",xx,[A.createVNode(A.unref(mt),{list:K.formSlots},null,8,["list"])])):A.createCommentVNode("",!0),K.typeSwitch?(A.openBlock(),A.createElementBlock("div",Sx,[A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:M.value==="card"}]),onClick:D[3]||(D[3]=p=>P("card"))},[A.createVNode(xe,{name:"icon-kapian"})],2),A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:M.value==="table"}]),onClick:D[4]||(D[4]=p=>P("table"))},[A.createVNode(xe,{name:"icon-biaoge"})],2)])):A.createCommentVNode("",!0),K.collapsible?(A.openBlock(),A.createElementBlock("div",{key:2,class:A.normalizeClass(["collapse-icon-wrapper",{collapsed:w.value}]),onClick:y},[A.createVNode(xe,{name:"icon-shaixuan"})],2)):A.createCommentVNode("",!0),K.btns&&K.btns.length>0?(A.openBlock(),A.createElementBlock("div",Nx,[A.createVNode(A.unref(lo),{btns:K.btns||[]},null,8,["btns"])])):A.createCommentVNode("",!0)])],2),K.onCollapsed?(A.openBlock(),A.createBlock(A.unref(mt),{key:1,list:K.children},null,8,["list"])):(A.openBlock(),A.createBlock(B,{key:0},{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(A.unref(mt),{list:K.children},null,8,["list"])],512),[[A.vShow,!w.value]])]),_:1}))],14,vx)}}}),[["__scopeId","data-v-e9f5991b"]])},Symbol.toStringTag,{value:"Module"})),Rx={key:0,class:"dropdown-icon-wrapper"},Lx={key:1,class:"expansion-icon-wrapper"},Gx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Wrapper",props:{children:{},style:{type:[Boolean,null,String,Object,Array]},innerStyle:{type:[Boolean,null,String,Object,Array]},type:{},collapse:{type:Boolean},dropdown:{type:Boolean},expansion:{type:Boolean},expansionIconTop:{},onDropdownChange:{},onExpand:{}},setup(n){const e=n,{ruleModule:t,pageMethodMap:i}=ei(),u=A.ref(!1),I=()=>{if(e.onDropdownChange){u.value=!u.value;try{t[e.onDropdownChange](i,u.value)}catch(b){console.error(b)}}},o=()=>{if(e.onExpand)try{t[e.onExpand](i)}catch(b){console.error(b)}};return(b,y)=>{const w=A.resolveComponent("el-collapse-transition");return A.openBlock(),A.createElementBlock("div",{style:A.normalizeStyle(b.style)},[A.createVNode(w,null,{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",{class:A.normalizeClass({normal:b.type==="normal",onlytable:b.type==="onlytable",dropdownChildren:b.type==="dropdown-children",expansionWrapper:b.expansion}),style:A.normalizeStyle(b.innerStyle)},[A.createVNode(A.unref(mt),{list:b.children},null,8,["list"]),b.dropdown?(A.openBlock(),A.createElementBlock("div",Rx,[A.createVNode(xe,{name:"icon-xialaliebiao",color:"#666666",onClick:I,class:A.normalizeClass({reversed:u.value})},null,8,["class"])])):A.createCommentVNode("",!0),b.expansion?(A.openBlock(),A.createElementBlock("div",Lx,[A.createVNode(xe,{name:"icon-shuangxiangjiantou",color:"#666666",onClick:o})])):A.createCommentVNode("",!0)],6),[[A.vShow,!b.collapse]])]),_:1})],4)}}}),[["__scopeId","data-v-61efcb0f"]])},Symbol.toStringTag,{value:"Module"})),Px={class:"content"},Hx={class:"product-list"},Kx={class:"attribute-list"},Tx={key:0,class:"attribute-list-item"},Ux={class:"product-title attribute-title"},Yx={class:"attribute-item-list"},Ox={class:"attribute-label"},$x={class:"attribute-value"},zx=A.defineComponent({__name:"OfferDetailItem",props:{data:{},btns:{},index:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-popover");return A.openBlock(),A.createBlock(i,{"popper-class":"offer-detail",placement:"right"},{reference:A.withCtx(()=>[A.createVNode(Hd,{data:e.data,btns:e.btns,index:e.index},null,8,["data","btns","index"])]),default:A.withCtx(()=>[A.createElementVNode("div",Px,[t[0]||(t[0]=A.createElementVNode("div",{class:"product-title"},"Product",-1)),A.createElementVNode("div",Hx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.data.product,u=>(A.openBlock(),A.createElementBlock("div",{class:"product-item",key:u.label},A.toDisplayString(u.label),1))),128))]),A.createElementVNode("div",Kx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.data.product,u=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:u.label},[u.children.length>0?(A.openBlock(),A.createElementBlock("div",Tx,[A.createElementVNode("div",Ux,A.toDisplayString(u.label),1),A.createElementVNode("div",Yx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.children,I=>(A.openBlock(),A.createElementBlock("div",{class:"attribute-item",key:I.label},[A.createElementVNode("div",Ox,A.toDisplayString(I.label),1),A.createElementVNode("div",$x,A.toDisplayString(I.value||"--"),1)]))),128))])])):A.createCommentVNode("",!0)],64))),128))])])]),_:1})}}}),Jx={key:0,class:"empty-content"},Zx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"OfferDetails",props:{title:{},key:{},rulePath:{},rowKey:{},showDynamicSearch:{type:Boolean},multipleSelection:{type:Boolean},highlightCurrentRow:{type:Boolean},"highlight-current-row":{type:Boolean},stripe:{type:Boolean},rowClick:{},rowDbClick:{},sizeChange:{},pageChange:{},topBtns:{},rowBtns:{},rowBtnsLabel:{},rowBtnsWidth:{},hidden:{type:Boolean},hiddenPagination:{type:Boolean},handleCurrentChange:{},selectable:{},pageSizes:{},pagerCount:{},paginationLayout:{},defaultPageSize:{},typeSwitch:{type:Boolean},displayType:{},onMounted:{},onActivated:{},height:{},collapsible:{type:Boolean},gridColumns:{default:3},gap:{default:16},data:{},columns:{},getColText:{}},setup(n){var N,P;const e=n,t=A.ref(),i=A.ref([]),u=(N=e.columns.find(Y=>Y.position==="title"))==null?void 0:N.key,I=(P=e.columns.find(Y=>Y.position==="subTitle"))==null?void 0:P.key,o=e.columns.find(Y=>Y.position==="footer"),b=Y=>{const G=[];return Y.children&&Y.children.length>0&&Y.children.forEach(K=>{const D={label:K.PRODUCT_ITEM_NAME,children:[]};K.children&&K.children.length>0&&K.children.forEach(E=>{D.children.push({label:E.PRODUCT_ITEM_NAME,value:E.ACTION})}),G.push(D)}),G};function y(Y){const G={},K=[];return Y.forEach(D=>{G[D.PRODUCT_ITEM_ID]={...D,children:[]}}),Y.forEach(D=>{const E=G[D.PRODUCT_ITEM_ID],L=D.PARENT_PRODUCT_ITEM_ID;L===0||!G[L]?K.push(E):G[L].children.push(E)}),K}const w=A.inject(jn),M=w?w.translateFn:null;return A.watchEffect(()=>{if(e.data){const Y=y(e.data);t.value=Y.map(G=>{const K={content:[]};return u&&(K.title=M?M(u,G):G[u],K.titleColor="var(--el-color-primary)"),I&&(K.subTitle=M?M(I,G):G[I]),o&&(K.footer={icon:o.footerIcon||"icon-tishi",text:`${o.label}: ${M?M(o.key,G):G[o.key]}`}),G.children&&(K.product=b(G)),e.columns.forEach(D=>{D.position==="content"&&K.content.push({label:D.label,value:M?M(D.key,G):G[D.key]})}),K})}}),A.onMounted(()=>{var Y;i.value=(Y=e.rowBtns)==null?void 0:Y.map(G=>({icon:G.icon&&G.icon.name?G.icon.name:"icon-tishi",label:G.label,onClick:G.onClick}))}),(Y,G)=>(A.openBlock(),A.createElementBlock(A.Fragment,null,[A.createElementVNode("div",{class:"card-list",style:A.normalizeStyle({"--columns":Y.gridColumns,"--gap":Y.gap+"px"})},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(t.value,(K,D)=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item",key:D},[A.createVNode(zx,{data:K,btns:i.value,index:D},null,8,["data","btns","index"])]))),128))],4),!Y.data||Y.data.length===0?(A.openBlock(),A.createElementBlock("div",Jx,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),G[0]||(G[0]=A.createElementVNode("div",null,"No data available,please check",-1))])):A.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-43ded0ba"]])},Symbol.toStringTag,{value:"Module"})),Wx={class:"progress"},jx={class:"timeline-content"},qx={class:"timeline-content__title"},Xx={key:0,class:"empty-content"},Vx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Progress",props:{data:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-timeline-item"),u=A.resolveComponent("el-timeline");return A.openBlock(),A.createElementBlock("div",Wx,[A.createVNode(u,null,{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.data,(I,o)=>(A.openBlock(),A.createBlock(i,{key:o,size:"large"},{dot:A.withCtx(()=>[A.createVNode(xe,{name:I.iconName,size:"large"},null,8,["name"])]),default:A.withCtx(()=>[A.createElementVNode("div",jx,[A.createElementVNode("div",qx,[A.createElementVNode("span",null,A.toDisplayString(I.title),1),A.createElementVNode("span",null,A.toDisplayString(I.timestamp),1)]),A.createTextVNode(" "+A.toDisplayString(I.content),1)])]),_:2},1024))),128))]),_:1}),!e.data||e.data.length===0?(A.openBlock(),A.createElementBlock("div",Xx,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),t[0]||(t[0]=A.createElementVNode("div",null,"No data available,please check",-1))])):A.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-088a0692"]])},Symbol.toStringTag,{value:"Module"})),AS={class:"log-list"},eS={class:"title-part"},tS={class:"title"},nS={class:"sub-title"},iS={class:"content"},oS={key:0},rS=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"LogList",props:{content:{}},setup(n){return(e,t)=>(A.openBlock(),A.createElementBlock("div",AS,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.content,i=>{var u;return A.openBlock(),A.createElementBlock("div",{class:"log-list-item",key:i.id},[A.createElementVNode("div",{class:"left-bar",style:A.normalizeStyle({backgroundColor:i.color})},null,4),A.createElementVNode("div",eS,[A.createElementVNode("div",{class:"circle",style:A.normalizeStyle({backgroundColor:i.color})},A.toDisplayString((u=i.title)==null?void 0:u[0]),5),A.createElementVNode("div",tS,A.toDisplayString(i.title),1),A.createElementVNode("div",nS,A.toDisplayString(i.subTitle),1)]),A.createElementVNode("div",iS,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(i.content,(I,o)=>(A.openBlock(),A.createElementBlock("span",{key:o,class:A.normalizeClass({bold:I.style==="bold",normal:I.style==="normal"})},[A.createTextVNode(A.toDisplayString(I.text),1),o!==i.content.length-1?(A.openBlock(),A.createElementBlock("span",oS," ")):A.createCommentVNode("",!0)],2))),128))])])}),128))]))}}),[["__scopeId","data-v-646d4f4d"]])},Symbol.toStringTag,{value:"Module"})),aS=["infinite-scroll-disabled"],sS=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"InfiniteScroll",props:{children:{},load:{},disabled:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]}},setup(n){const{ruleModule:e,pageMethodMap:t}=ei(),i=n,u=async()=>{try{await e[i.load](t)}catch(I){console.error(I)}};return(I,o)=>{const b=A.resolveDirective("infinite-scroll");return A.withDirectives((A.openBlock(),A.createElementBlock("div",{"infinite-scroll-disabled":I.disabled,"infinite-scroll-immediate":!1,"infinite-scroll-distance":20,class:"infinite-scroll-wrapper",style:A.normalizeStyle(I.style)},[A.createVNode(A.unref(mt),{list:I.children},null,8,["list"])],12,aS)),[[b,u]])}}}),[["__scopeId","data-v-6746ff5d"]])},Symbol.toStringTag,{value:"Module"}));yt.$options=jn,yt.FormDesign=wC,yt.FormRender=fn,yt.PageRender=ag,yt.TableRender=rg,yt.default=O8,yt.useFormInstance=It,yt.useRuleContext=ei,Object.defineProperties(yt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1649
|
+
onLoad: ${e.onLoad}`)}},w=A.ref([]);return A.watch(()=>e.data,()=>{if(!e.data||!Array.isArray(e.data)||e.data.length===0)return;const N=[e.data[0][e.nodeKey]];w.value=N},{immediate:!0}),(M,N)=>{const P=A.resolveComponent("el-tooltip"),Y=A.resolveComponent("el-button"),G=A.resolveComponent("el-tree");return A.openBlock(),A.createBlock(G,A.mergeProps(M.$attrs,{onNodeClick:b,load:y,ref:"treeRef",class:"crm-tree",indent:32,"current-node-key":u.value,onCurrentChange:I,"node-key":M.nodeKey,props:e.props,data:M.data,"default-expanded-keys":w.value}),{default:A.withCtx(({node:K,data:D})=>[A.createElementVNode("div",ux,[A.createElementVNode("div",dx,[A.createElementVNode("span",hx,A.toDisplayString(K.label),1),D[M.nodeKey]===u.value?(A.openBlock(),A.createElementBlock("div",px,"Present")):A.createCommentVNode("",!0)]),A.createElementVNode("div",null,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(M.btns,E=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:E.key},[A.unref(Rt)(E.hidden,{$node:K,$data:D})?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(Y,{key:0,link:"",onClick:A.withModifiers(L=>o(E.onClick||"",K,D),["stop"]),disabled:E.disabled,type:E.type},{default:A.withCtx(()=>[A.createVNode(P,{class:"box-item",effect:"dark",content:E.text,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[E.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:E.icon.name,color:E.icon.color,class:"btn-icon"},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"])]),_:2},1032,["onClick","disabled","type"]))],64))),128))])])]),_:1},16,["current-node-key","node-key","props","data","default-expanded-keys"])}}}),[["__scopeId","data-v-016a1506"]])},Symbol.toStringTag,{value:"Module"})),Bx=["id"],mx={class:"empty-content"},Ex=["title"],Qx=["title","onClick"],Ix={key:1,class:"icon-text-wrapper"},fx=["title","onClick"],wx={key:2},bx=["title"],yx={class:"row-btn-wrapper"},Dx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Table",props:{title:{},key:{},rulePath:{},rowKey:{},showDynamicSearch:{type:Boolean},multipleSelection:{type:Boolean},highlightCurrentRow:{type:Boolean},"highlight-current-row":{type:Boolean},stripe:{type:Boolean},rowClick:{},rowDbClick:{},sizeChange:{},pageChange:{},topBtns:{},rowBtns:{},rowBtnsLabel:{},rowBtnsWidth:{},columns:{},hidden:{type:Boolean},hiddenPagination:{type:Boolean},handleCurrentChange:{},selectable:{},pageSizes:{},pagerCount:{},paginationLayout:{},defaultPageSize:{},typeSwitch:{type:Boolean},displayType:{default:"table"},onMounted:{},onActivated:{},height:{},collapsible:{type:Boolean},sortable:{type:Boolean},name:{},gridColumns:{}},setup(n,{expose:e}){const t=n,i=A.computed(()=>t.displayType?t.displayType:t.typeSwitch?"card":"table"),u=A.inject("ruleModule",void 0),I=A.inject("ruleMap",void 0),o=A.computed(()=>t.rulePath&&I[t.rulePath]?I[t.rulePath]:u),b=A.inject("pageMethodMap",{}),y=A.inject("getGlobalParams",()=>{}),w=A.inject(jn),M=w?w.translateFn:null,N=A.ref(),P=(tA,rA,gA)=>{O.value[tA]&&(O.value[tA][rA]=gA)},Y=(tA,rA)=>{const gA=t.columns.find(z=>z.key===tA);gA&&(gA.hidden=!rA)},G=(tA,rA,gA,z)=>{try{o.value[tA.onClick](b,rA,gA,z),z==null||z.stopPropagation()}catch(X){console.error(X)}},K=tA=>{if(t.rowClick)try{o.value[t.rowClick](b,tA)}catch(rA){console.error(rA)}},D=tA=>{if(t.rowDbClick)try{o.value[t.rowDbClick](b,tA)}catch(rA){console.error(rA)}},E=A.ref([]),L=tA=>{E.value=tA},_=(tA,rA)=>{if(!t.selectable)return!0;try{return o.value[t.selectable](b,tA,rA)}catch(gA){console.error(gA)}return!0},v=()=>{var tA;(tA=N.value)==null||tA.clearSelection()},B=()=>O.value,p=A.ref(),d=tA=>{if(p.value=tA,!!t.handleCurrentChange)try{o.value[t.handleCurrentChange](b,tA)}catch(rA){console.error(rA)}},l=()=>p.value,g=()=>{var tA;return(tA=N.value)==null?void 0:tA.getSelectionRows()},s=async()=>!0,h=(tA,rA)=>{var z;const gA=(z=t.topBtns)==null?void 0:z.find(X=>X.key===tA);gA&&(gA.hidden=rA)},C=(tA,rA)=>{var z;const gA=(z=t.rowBtns)==null?void 0:z.find(X=>X.key===tA);gA&&(gA.condition=!rA)},a=A.ref(0),r=tA=>{a.value=tA},m=A.ref({pageNum:1,pageSize:t.defaultPageSize||5}),Q=A.ref({pageNum:1,pageSize:t.defaultPageSize||5}),x=()=>m.value,S=tA=>{let rA=!1;return tA.pageNum!==void 0&&tA.pageNum>-1&&(m.value.pageNum!==tA.pageNum&&(rA=!0),m.value.pageNum=tA.pageNum),tA.pageSize!==void 0&&tA.pageSize>-1&&(m.value.pageSize!==tA.pageSize&&(rA=!0),m.value.pageSize=tA.pageSize),{pagination:m.value,isChange:rA}},T=async()=>{if(m.value.pageNum=1,!t.sizeChange)return;const tA=Ht.ElLoading.service({target:`#${t.name}`,text:"Loading..."});try{await o.value[t.sizeChange](b,m.value),Q.value.pageNum=m.value.pageNum,Q.value.pageSize=m.value.pageSize}catch(rA){console.error(rA),m.value.pageNum=Q.value.pageNum,m.value.pageSize=Q.value.pageSize}finally{tA.close()}},$=async()=>{if(!t.pageChange)return;const tA=Ht.ElLoading.service({target:`#${t.name}`,text:"Loading..."});try{await o.value[t.pageChange](b,m.value),Q.value.pageNum=m.value.pageNum,Q.value.pageSize=m.value.pageSize}catch(rA){console.error(rA),m.value.pageNum=Q.value.pageNum,m.value.pageSize=Q.value.pageSize}finally{tA.close()}},eA=tA=>{var rA;(rA=N.value)==null||rA.setCurrentRow(tA)},W=tA=>{var rA;(rA=N.value)==null||rA.setCurrentRow(O.value[tA])},J=(tA,rA,gA)=>{t.columns.forEach(z=>{z.key===tA&&z[rA]&&(z[rA]=gA)})},O=A.ref([]),q=tA=>{O.value=tA},k=(tA={})=>{O.value.push(tA)},V=tA=>{tA>=0&&tA<O.value.length&&O.value.splice(tA,1)},H=async()=>{O.value=[...O.value]},AA=A.useTemplateRef("rootRef"),sA=A.readonly({...A.toRefs(t),setCellData:P,clearSelection:v,getData:B,getCurrentRow:l,getSelectedRows:g,addRow:k,deleteRow:V,refresh:H,validate:s,setData:q,selectRow:eA,selectRowNum:W,setTotal:r,getPagination:x,setPagination:S,setTopBtnHidden:h,setColVisible:Y,setColumn:J,setRowsBtnHidden:C,rootRef:AA,type:"table"}),oA=(tA,rA)=>{const gA=M?M(tA.key,rA):rA[tA.key];if(!tA.encrypted||!gA)return gA;const z=`${gA}`;return z.length<=4?"*".repeat(z.length):z.slice(0,-4)+"****"},dA=(tA,rA)=>{if(!tA.getTextStyle||!o.value)return{};try{return o.value[tA.getTextStyle](b,rA,tA)}catch(gA){console.error(gA)}},EA=(tA,rA)=>{if(!(!tA.getIconInfo||!o.value))try{return o.value[tA.getIconInfo](b,rA,tA)}catch(gA){console.error(gA)}},uA=(tA,rA)=>{if(!(!tA.getIconPopoverContent||!o.value))try{return o.value[tA.getIconPopoverContent](b,rA,tA)}catch(gA){console.error(gA)}},BA=(tA,rA)=>{if(!(!tA.getCustomContent||!o.value))try{return o.value[tA.getCustomContent](b,rA,tA)}catch(gA){console.error(gA)}},j=A.computed(()=>!t.rowBtns||t.rowBtns.length===0||!O.value||O.value.length===0?!1:O.value.some(tA=>{var rA;return(rA=t.rowBtns)==null?void 0:rA.some(gA=>gA.condition===void 0||gA.condition===null?!0:Rt(gA.condition,{$row:tA,$globalParams:y()}))}));if(A.onMounted(async()=>{if(!t.onMounted||!o.value)return;await A.nextTick();const tA=t.onMounted;try{o.value[tA](b)}catch(rA){console.error(rA)}}),A.onActivated(()=>{if(!t.onActivated||!o.value)return;const tA=t.onActivated;try{o.value[tA](b)}catch(rA){console.error(rA)}}),t.name){const tA=fs(t.name,sA);A.onUnmounted(()=>{tA()})}return e(sA),(tA,rA)=>{const gA=A.resolveComponent("el-table-column"),z=A.resolveComponent("el-popover"),X=A.resolveComponent("el-tooltip"),iA=A.resolveComponent("el-button"),cA=A.resolveComponent("el-pagination");return tA.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["table-render",{tableBorder:i.value==="table",[tA.name]:!0}]),ref_key:"rootRef",ref:AA,id:tA.name},[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(A.unref(Ht.ElTable),{ref_key:"tableRef",ref:N,data:O.value,"highlight-current-row":"","row-key":tA.rowKey,stripe:tA.stripe,onRowClick:K,onRowDblclick:D,onSelectionChange:L,onCurrentChange:d,height:tA.height},{empty:A.withCtx(()=>[A.createElementVNode("div",mx,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),rA[2]||(rA[2]=A.createElementVNode("div",null,"No data available,please check",-1))])]),default:A.withCtx(()=>[tA.multipleSelection?(A.openBlock(),A.createBlock(gA,{key:0,type:"selection",width:"55",selectable:_})):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(tA.columns,CA=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:CA.key},[CA.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(gA,{key:0,prop:CA.key,"min-width":CA.minWidth,fixed:CA.fixed||!1,sortable:CA.sortable||tA.sortable||!0},{header:A.withCtx(()=>[A.createElementVNode("div",{class:"text-ellipsis",title:CA.label},A.toDisplayString(CA.label),9,Ex)]),default:A.withCtx(({row:vA,$index:GA})=>{var JA,qA,WA,ue;return[CA.type==="link"?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["text-ellipsis link-style",{"click-style":CA.onClick}]),title:oA(CA,vA),onClick:te=>G(CA,vA,GA,te)},A.toDisplayString(oA(CA,vA)),11,Qx)):CA.type==="iconText"?(A.openBlock(),A.createElementBlock("div",Ix,[CA.iconPosition==="left"?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[CA.iconPopover&&Array.isArray(uA(CA,vA))?(A.openBlock(),A.createBlock(z,{key:0},{reference:A.withCtx(()=>{var te,LA;return[A.createVNode(xe,{name:(te=EA(CA,vA))==null?void 0:te.name,color:(LA=EA(CA,vA))==null?void 0:LA.color},null,8,["name","color"])]}),default:A.withCtx(()=>[A.createVNode(A.unref(mt),{list:uA(CA,vA)||[]},null,8,["list"])]),_:2},1024)):(A.openBlock(),A.createBlock(xe,{key:1,name:(JA=EA(CA,vA))==null?void 0:JA.name,color:(qA=EA(CA,vA))==null?void 0:qA.color},null,8,["name","color"]))],64)):A.createCommentVNode("",!0),A.createElementVNode("span",{class:A.normalizeClass(["text-ellipsis",{"click-style":CA.onClick}]),title:oA(CA,vA),onClick:te=>G(CA,vA,GA,te)},A.toDisplayString(oA(CA,vA)),11,fx),CA.iconPosition==="right"?(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[CA.iconPopover&&Array.isArray(uA(CA,vA))?(A.openBlock(),A.createBlock(z,{key:0},{reference:A.withCtx(()=>{var te,LA;return[A.createVNode(xe,{name:(te=EA(CA,vA))==null?void 0:te.name,color:(LA=EA(CA,vA))==null?void 0:LA.color},null,8,["name","color"])]}),default:A.withCtx(()=>[A.createVNode(A.unref(mt),{list:uA(CA,vA)||[]},null,8,["list"])]),_:2},1024)):(A.openBlock(),A.createBlock(xe,{key:1,name:(WA=EA(CA,vA))==null?void 0:WA.name,color:(ue=EA(CA,vA))==null?void 0:ue.color},null,8,["name","color"]))],64)):A.createCommentVNode("",!0)])):CA.type==="customContent"?(A.openBlock(),A.createElementBlock("div",wx,[A.createVNode(A.unref(mt),{list:BA(CA,vA)||[]},null,8,["list"])])):(A.openBlock(),A.createElementBlock("div",{key:3,class:A.normalizeClass({"text-ellipsis":!CA.noEllipsis}),title:oA(CA,vA),style:A.normalizeStyle(dA(CA,vA))},A.toDisplayString(oA(CA,vA)),15,bx))]}),_:2},1032,["prop","min-width","fixed","sortable"]))],64))),128)),j.value&&tA.rowBtns&&tA.rowBtns.length>0?(A.openBlock(),A.createBlock(gA,{key:1,label:tA.rowBtnsLabel||"Action",fixed:"right",align:"left",width:tA.rowBtnsWidth||(tA.rowBtns.length*34+12>100?tA.rowBtns.length*34+12:100)},{default:A.withCtx(({row:CA,$index:vA})=>[A.createElementVNode("div",yx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(tA.rowBtns,GA=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:GA.key},[GA.component==="Popover"?(A.openBlock(),A.createBlock(z,{key:0,title:GA.label,trigger:"click","popper-class":"btn-popover",width:"400"},{reference:A.withCtx(()=>[GA.condition===void 0||GA.condition===null||A.unref(Rt)(GA.condition,{$row:CA,$globalParams:A.unref(y)()})?(A.openBlock(),A.createBlock(iA,{key:0,disabled:GA.disabled,link:"",size:"small",type:GA.type,onClick:A.withModifiers(JA=>G(GA,CA,vA,JA),["stop"])},{default:A.withCtx(()=>[A.createVNode(X,{class:"box-item",effect:"dark",content:GA.label,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[GA.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:GA.icon.name,color:GA.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),GA.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:GA.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(GA.buttonText.text,{$row:CA,$globalParams:A.unref(y)()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)]),default:A.withCtx(()=>[A.createElementVNode("div",null,[A.createVNode(A.unref(mt),{list:GA.children},null,8,["list"])])]),_:2},1032,["title"])):(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[GA.condition===void 0||GA.condition===null||A.unref(Rt)(GA.condition,{$row:CA,$globalParams:A.unref(y)()})?(A.openBlock(),A.createBlock(iA,{key:0,disabled:GA.disabled,link:"",size:"small",type:GA.type,onClick:A.withModifiers(JA=>G(GA,CA,vA,JA),["stop"])},{default:A.withCtx(()=>[A.createVNode(X,{class:"box-item",effect:"dark",content:GA.label,placement:"top","popper-class":"low-tsp"},{default:A.withCtx(()=>[GA.icon?(A.openBlock(),A.createBlock(xe,{key:0,name:GA.icon.name,color:GA.icon.color},null,8,["name","color"])):A.createCommentVNode("",!0)]),_:2},1032,["content"]),GA.buttonText?(A.openBlock(),A.createElementBlock("span",{key:0,style:A.normalizeStyle({color:GA.buttonText.color,fontSize:"14px"})},A.toDisplayString(A.unref(Rt)(GA.buttonText.text,{$row:CA,$globalParams:A.unref(y)()})),5)):A.createCommentVNode("",!0)]),_:2},1032,["disabled","type","onClick"])):A.createCommentVNode("",!0)],64))],64))),128))])]),_:1},8,["label","width"])):A.createCommentVNode("",!0)]),_:1},8,["data","row-key","stripe","height"])],512),[[A.vShow,i.value==="table"]]),A.withDirectives(A.createVNode(ic,A.mergeProps({data:O.value},t,{getColText:oA}),null,16,["data"]),[[A.vShow,i.value==="card"]]),A.createElementVNode("div",{class:A.normalizeClass(["pagination-wrapper",{hidePagination:(tA.hiddenPagination||O.value.length===0)&&!tA.height,transparentPagination:(tA.hiddenPagination||O.value.length===0)&&tA.height,cardlistPadding:i.value==="card"}])},[A.createVNode(cA,{layout:tA.paginationLayout||"total,sizes, prev, pager, next,jumper",total:a.value,"page-sizes":tA.pageSizes||[5,6,10,20,30,40],"default-page-size":tA.defaultPageSize,"current-page":m.value.pageNum,"onUpdate:currentPage":rA[0]||(rA[0]=CA=>m.value.pageNum=CA),"page-size":m.value.pageSize,"onUpdate:pageSize":rA[1]||(rA[1]=CA=>m.value.pageSize=CA),"pager-count":Number(tA.pagerCount)||5,onSizeChange:T,onCurrentChange:$},null,8,["layout","total","page-sizes","default-page-size","current-page","page-size","pager-count"])],2)],10,Bx))}}}),[["__scopeId","data-v-f1a1b583"]])},Symbol.toStringTag,{value:"Module"})),vx=["id"],kx={class:"left-part"},_x={class:"title"},Mx={class:"right-part"},xx={key:0},Sx={key:1,class:"switch-panel"},Nx={key:3},Fx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"CurdCard",props:{name:{},children:{},defaultCollapse:{type:Boolean},collapsible:{type:Boolean},onCollapsed:{},typeSwitch:{type:Boolean},title:{},btns:{},type:{},mainIcon:{},extraIcons:{},displayType:{},radioList:{},onRadioChange:{},radioDefault:{},formSlots:{},style:{type:[Boolean,null,String,Object,Array]},hasSearchInput:{type:Boolean},searchPlaceholder:{},handleSearch:{},searchInputChange:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref(""),u=n,I=A.ref(u.radioDefault??"2"),o=K=>{if(K&&e)try{e[K](t)}catch(D){console.error(D+`
|
|
1650
|
+
funcName: ${K}`)}},b=K=>{u.onRadioChange&&e&&e[u.onRadioChange](t,K)},y=()=>{w.value=!w.value,u.onCollapsed&&e&&e[u.onCollapsed](t,w.value)},w=A.ref(u.defaultCollapse??!1);A.watch(()=>u.defaultCollapse,()=>{w.value=u.defaultCollapse??!1});const M=A.ref(u.displayType||(u.typeSwitch?"card":"table")),N=It(),P=K=>{M.value=K;const D=Si(N.schema.items,u.name),E=L=>{L.forEach(_=>{_.component==="Table"&&_.props&&(_.props.displayType=K),_.children&&_.children.length>0&&E(_.children)})};D&&D.children&&E(D.children)},Y=K=>{u.handleSearch&&e&&e[u.handleSearch](t,K)},G=K=>{u.searchInputChange&&e&&e[u.searchInputChange](t,K)};return P(M.value),(K,D)=>{const E=A.resolveComponent("el-radio"),L=A.resolveComponent("el-radio-group"),_=A.resolveComponent("el-tooltip"),v=A.resolveComponent("el-input"),B=A.resolveComponent("el-collapse-transition");return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(["crm-curd-card",{gridItem:K.type==="gridItem"}]),style:A.normalizeStyle(K.style),id:K.name},[A.createElementVNode("div",{class:A.normalizeClass(["card-header",{inline:K.type==="inline",mix:K.type==="mix",default:K.type==="default",gridItem:K.type==="gridItem",collapsedPadding:w.value&&K.onCollapsed,"has-search-input":K.hasSearchInput}])},[A.createElementVNode("div",kx,[K.mainIcon?(A.openBlock(),A.createBlock(xe,{key:0,class:"title-icon",size:"large",name:K.mainIcon.name,color:K.mainIcon.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",_x,A.toDisplayString(K.title),1),K.radioList?(A.openBlock(),A.createBlock(L,{key:1,class:"ml-9",modelValue:I.value,"onUpdate:modelValue":D[0]||(D[0]=p=>I.value=p),onChange:D[1]||(D[1]=p=>b(I.value))},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(K.radioList,p=>(A.openBlock(),A.createBlock(E,{value:p.value,key:p.value},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(p.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])):A.createCommentVNode("",!0),(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(K.extraIcons,p=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:p.name},[p.tips?(A.openBlock(),A.createBlock(_,{key:0,content:p.tips,placement:"right"},{default:A.withCtx(()=>[A.createVNode(xe,{class:"extra-icon",name:p.name,color:p.color,onClick:d=>o(p.onClick)},null,8,["name","color","onClick"])]),_:2},1032,["content"])):(A.openBlock(),A.createBlock(xe,{key:1,class:"extra-icon",name:p.name,color:p.color,onClick:d=>o(p.onClick)},null,8,["name","color","onClick"]))],64))),128))]),K.hasSearchInput?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["card-search-input",{collapsedPadding:w.value&&K.onCollapsed}])},[A.createVNode(v,{modelValue:i.value,"onUpdate:modelValue":D[2]||(D[2]=p=>i.value=p),placeholder:K.searchPlaceholder,size:"large",onInput:G,onKeyup:A.withKeys(Y,["enter"])},{prefix:A.withCtx(()=>D[5]||(D[5]=[])),suffix:A.withCtx(()=>[A.createVNode(xe,{class:"cursor-pointer",name:"icon-lujing2",color:"#666666",size:"normal",onClick:Y})]),_:1},8,["modelValue","placeholder"])],2)):A.createCommentVNode("",!0),A.createElementVNode("div",Mx,[K.formSlots?(A.openBlock(),A.createElementBlock("div",xx,[A.createVNode(A.unref(mt),{list:K.formSlots},null,8,["list"])])):A.createCommentVNode("",!0),K.typeSwitch?(A.openBlock(),A.createElementBlock("div",Sx,[A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:M.value==="card"}]),onClick:D[3]||(D[3]=p=>P("card"))},[A.createVNode(xe,{name:"icon-kapian"})],2),A.createElementVNode("div",{class:A.normalizeClass(["switch-icon-wrapper",{active:M.value==="table"}]),onClick:D[4]||(D[4]=p=>P("table"))},[A.createVNode(xe,{name:"icon-biaoge"})],2)])):A.createCommentVNode("",!0),K.collapsible?(A.openBlock(),A.createElementBlock("div",{key:2,class:A.normalizeClass(["collapse-icon-wrapper",{collapsed:w.value}]),onClick:y},[A.createVNode(xe,{name:"icon-shaixuan"})],2)):A.createCommentVNode("",!0),K.btns&&K.btns.length>0?(A.openBlock(),A.createElementBlock("div",Nx,[A.createVNode(A.unref(lo),{btns:K.btns||[]},null,8,["btns"])])):A.createCommentVNode("",!0)])],2),K.onCollapsed?(A.openBlock(),A.createBlock(A.unref(mt),{key:1,list:K.children},null,8,["list"])):(A.openBlock(),A.createBlock(B,{key:0},{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",null,[A.createVNode(A.unref(mt),{list:K.children},null,8,["list"])],512),[[A.vShow,!w.value]])]),_:1}))],14,vx)}}}),[["__scopeId","data-v-e9f5991b"]])},Symbol.toStringTag,{value:"Module"})),Rx={key:0,class:"dropdown-icon-wrapper"},Lx={key:1,class:"expansion-icon-wrapper"},Gx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Wrapper",props:{children:{},style:{type:[Boolean,null,String,Object,Array]},innerStyle:{type:[Boolean,null,String,Object,Array]},type:{},collapse:{type:Boolean},dropdown:{type:Boolean},expansion:{type:Boolean},expansionIconTop:{},onDropdownChange:{},onExpand:{}},setup(n){const e=n,{ruleModule:t,pageMethodMap:i}=ei(),u=A.ref(!1),I=()=>{if(e.onDropdownChange){u.value=!u.value;try{t[e.onDropdownChange](i,u.value)}catch(b){console.error(b)}}},o=()=>{if(e.onExpand)try{t[e.onExpand](i)}catch(b){console.error(b)}};return(b,y)=>{const w=A.resolveComponent("el-collapse-transition");return A.openBlock(),A.createElementBlock("div",{style:A.normalizeStyle(b.style)},[A.createVNode(w,null,{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",{class:A.normalizeClass({normal:b.type==="normal",onlytable:b.type==="onlytable",dropdownChildren:b.type==="dropdown-children",expansionWrapper:b.expansion}),style:A.normalizeStyle(b.innerStyle)},[A.createVNode(A.unref(mt),{list:b.children},null,8,["list"]),b.dropdown?(A.openBlock(),A.createElementBlock("div",Rx,[A.createVNode(xe,{name:"icon-xialaliebiao",color:"#666666",onClick:I,class:A.normalizeClass({reversed:u.value})},null,8,["class"])])):A.createCommentVNode("",!0),b.expansion?(A.openBlock(),A.createElementBlock("div",Lx,[A.createVNode(xe,{name:"icon-shuangxiangjiantou",color:"#666666",onClick:o})])):A.createCommentVNode("",!0)],6),[[A.vShow,!b.collapse]])]),_:1})],4)}}}),[["__scopeId","data-v-61efcb0f"]])},Symbol.toStringTag,{value:"Module"})),Px={class:"content"},Hx={class:"product-list"},Kx={class:"attribute-list"},Tx={key:0,class:"attribute-list-item"},Ux={class:"product-title attribute-title"},Yx={class:"attribute-item-list"},Ox={class:"attribute-label"},$x={class:"attribute-value"},zx=A.defineComponent({__name:"OfferDetailItem",props:{data:{},btns:{},index:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-popover");return A.openBlock(),A.createBlock(i,{"popper-class":"offer-detail",placement:"right"},{reference:A.withCtx(()=>[A.createVNode(Hd,{data:e.data,btns:e.btns,index:e.index},null,8,["data","btns","index"])]),default:A.withCtx(()=>[A.createElementVNode("div",Px,[t[0]||(t[0]=A.createElementVNode("div",{class:"product-title"},"Product",-1)),A.createElementVNode("div",Hx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.data.product,u=>(A.openBlock(),A.createElementBlock("div",{class:"product-item",key:u.label},A.toDisplayString(u.label),1))),128))]),A.createElementVNode("div",Kx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.data.product,u=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:u.label},[u.children.length>0?(A.openBlock(),A.createElementBlock("div",Tx,[A.createElementVNode("div",Ux,A.toDisplayString(u.label),1),A.createElementVNode("div",Yx,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(u.children,I=>(A.openBlock(),A.createElementBlock("div",{class:"attribute-item",key:I.label},[A.createElementVNode("div",Ox,A.toDisplayString(I.label),1),A.createElementVNode("div",$x,A.toDisplayString(I.value||"--"),1)]))),128))])])):A.createCommentVNode("",!0)],64))),128))])])]),_:1})}}}),Jx={key:0,class:"empty-content"},Zx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"OfferDetails",props:{title:{},key:{},rulePath:{},rowKey:{},showDynamicSearch:{type:Boolean},multipleSelection:{type:Boolean},highlightCurrentRow:{type:Boolean},"highlight-current-row":{type:Boolean},stripe:{type:Boolean},rowClick:{},rowDbClick:{},sizeChange:{},pageChange:{},topBtns:{},rowBtns:{},rowBtnsLabel:{},rowBtnsWidth:{},hidden:{type:Boolean},hiddenPagination:{type:Boolean},handleCurrentChange:{},selectable:{},pageSizes:{},pagerCount:{},paginationLayout:{},defaultPageSize:{},typeSwitch:{type:Boolean},displayType:{},onMounted:{},onActivated:{},height:{},collapsible:{type:Boolean},sortable:{type:Boolean},gridColumns:{default:3},gap:{default:16},data:{},columns:{},getColText:{}},setup(n){var N,P;const e=n,t=A.ref(),i=A.ref([]),u=(N=e.columns.find(Y=>Y.position==="title"))==null?void 0:N.key,I=(P=e.columns.find(Y=>Y.position==="subTitle"))==null?void 0:P.key,o=e.columns.find(Y=>Y.position==="footer"),b=Y=>{const G=[];return Y.children&&Y.children.length>0&&Y.children.forEach(K=>{const D={label:K.PRODUCT_ITEM_NAME,children:[]};K.children&&K.children.length>0&&K.children.forEach(E=>{D.children.push({label:E.PRODUCT_ITEM_NAME,value:E.ACTION})}),G.push(D)}),G};function y(Y){const G={},K=[];return Y.forEach(D=>{G[D.PRODUCT_ITEM_ID]={...D,children:[]}}),Y.forEach(D=>{const E=G[D.PRODUCT_ITEM_ID],L=D.PARENT_PRODUCT_ITEM_ID;L===0||!G[L]?K.push(E):G[L].children.push(E)}),K}const w=A.inject(jn),M=w?w.translateFn:null;return A.watchEffect(()=>{if(e.data){const Y=y(e.data);t.value=Y.map(G=>{const K={content:[]};return u&&(K.title=M?M(u,G):G[u],K.titleColor="var(--el-color-primary)"),I&&(K.subTitle=M?M(I,G):G[I]),o&&(K.footer={icon:o.footerIcon||"icon-tishi",text:`${o.label}: ${M?M(o.key,G):G[o.key]}`}),G.children&&(K.product=b(G)),e.columns.forEach(D=>{D.position==="content"&&K.content.push({label:D.label,value:M?M(D.key,G):G[D.key]})}),K})}}),A.onMounted(()=>{var Y;i.value=(Y=e.rowBtns)==null?void 0:Y.map(G=>({icon:G.icon&&G.icon.name?G.icon.name:"icon-tishi",label:G.label,onClick:G.onClick}))}),(Y,G)=>(A.openBlock(),A.createElementBlock(A.Fragment,null,[A.createElementVNode("div",{class:"card-list",style:A.normalizeStyle({"--columns":Y.gridColumns,"--gap":Y.gap+"px"})},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(t.value,(K,D)=>(A.openBlock(),A.createElementBlock("div",{class:"card-list-item",key:D},[A.createVNode(zx,{data:K,btns:i.value,index:D},null,8,["data","btns","index"])]))),128))],4),!Y.data||Y.data.length===0?(A.openBlock(),A.createElementBlock("div",Jx,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),G[0]||(G[0]=A.createElementVNode("div",null,"No data available,please check",-1))])):A.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-43ded0ba"]])},Symbol.toStringTag,{value:"Module"})),Wx={class:"progress"},jx={class:"timeline-content"},qx={class:"timeline-content__title"},Xx={key:0,class:"empty-content"},Vx=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"Progress",props:{data:{}},setup(n){return(e,t)=>{const i=A.resolveComponent("el-timeline-item"),u=A.resolveComponent("el-timeline");return A.openBlock(),A.createElementBlock("div",Wx,[A.createVNode(u,null,{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.data,(I,o)=>(A.openBlock(),A.createBlock(i,{key:o,size:"large"},{dot:A.withCtx(()=>[A.createVNode(xe,{name:I.iconName,size:"large"},null,8,["name"])]),default:A.withCtx(()=>[A.createElementVNode("div",jx,[A.createElementVNode("div",qx,[A.createElementVNode("span",null,A.toDisplayString(I.title),1),A.createElementVNode("span",null,A.toDisplayString(I.timestamp),1)]),A.createTextVNode(" "+A.toDisplayString(I.content),1)])]),_:2},1024))),128))]),_:1}),!e.data||e.data.length===0?(A.openBlock(),A.createElementBlock("div",Xx,[A.createVNode(A.unref(Ie),{name:"tableEmpty",style:{width:56,height:56}}),t[0]||(t[0]=A.createElementVNode("div",null,"No data available,please check",-1))])):A.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-088a0692"]])},Symbol.toStringTag,{value:"Module"})),AS={class:"log-list"},eS={class:"title-part"},tS={class:"title"},nS={class:"sub-title"},iS={class:"content"},oS={key:0},rS=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"LogList",props:{content:{}},setup(n){return(e,t)=>(A.openBlock(),A.createElementBlock("div",AS,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(e.content,i=>{var u;return A.openBlock(),A.createElementBlock("div",{class:"log-list-item",key:i.id},[A.createElementVNode("div",{class:"left-bar",style:A.normalizeStyle({backgroundColor:i.color})},null,4),A.createElementVNode("div",eS,[A.createElementVNode("div",{class:"circle",style:A.normalizeStyle({backgroundColor:i.color})},A.toDisplayString((u=i.title)==null?void 0:u[0]),5),A.createElementVNode("div",tS,A.toDisplayString(i.title),1),A.createElementVNode("div",nS,A.toDisplayString(i.subTitle),1)]),A.createElementVNode("div",iS,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(i.content,(I,o)=>(A.openBlock(),A.createElementBlock("span",{key:o,class:A.normalizeClass({bold:I.style==="bold",normal:I.style==="normal"})},[A.createTextVNode(A.toDisplayString(I.text),1),o!==i.content.length-1?(A.openBlock(),A.createElementBlock("span",oS," ")):A.createCommentVNode("",!0)],2))),128))])])}),128))]))}}),[["__scopeId","data-v-646d4f4d"]])},Symbol.toStringTag,{value:"Module"})),aS=["infinite-scroll-disabled"],sS=Object.freeze(Object.defineProperty({__proto__:null,default:ie(A.defineComponent({__name:"InfiniteScroll",props:{children:{},load:{},disabled:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]}},setup(n){const{ruleModule:e,pageMethodMap:t}=ei(),i=n,u=async()=>{try{await e[i.load](t)}catch(I){console.error(I)}};return(I,o)=>{const b=A.resolveDirective("infinite-scroll");return A.withDirectives((A.openBlock(),A.createElementBlock("div",{"infinite-scroll-disabled":I.disabled,"infinite-scroll-immediate":!1,"infinite-scroll-distance":20,class:"infinite-scroll-wrapper",style:A.normalizeStyle(I.style)},[A.createVNode(A.unref(mt),{list:I.children},null,8,["list"])],12,aS)),[[b,u]])}}}),[["__scopeId","data-v-6746ff5d"]])},Symbol.toStringTag,{value:"Module"}));yt.$options=jn,yt.FormDesign=wC,yt.FormRender=fn,yt.PageRender=ag,yt.TableRender=rg,yt.default=O8,yt.useFormInstance=It,yt.useRuleContext=ei,Object.defineProperties(yt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|