asiaint-lowcode 3.1.129 → 3.1.130

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.
Files changed (38) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +2 -2
  3. package/dist/lazy/{Card-dJwVmnB6.js → Card-BykE7iv_.js} +1 -1
  4. package/dist/lazy/{Cascader-B5KCa96S.js → Cascader-CPYldtEB.js} +1 -1
  5. package/dist/lazy/{Checkbox-BPwt3U0F.js → Checkbox-C6qKT_sU.js} +2 -2
  6. package/dist/lazy/{Collapse-Cz_noXfm.js → Collapse-DPNNTQ85.js} +1 -1
  7. package/dist/lazy/{Component-tRiDbs8V.js → Component-B4o_5tUc.js} +1 -1
  8. package/dist/lazy/{Component-DXMSVVEW.js → Component-BEj7Vj1z.js} +1 -1
  9. package/dist/lazy/{Component-BHM-0HD7.js → Component-BO1jtzFj.js} +1 -1
  10. package/dist/lazy/{Component-DN3BeMj2.js → Component-ByQl7qvt.js} +1 -1
  11. package/dist/lazy/{Component-DuuuUCf3.js → Component-CaOKpdIQ.js} +1 -1
  12. package/dist/lazy/{CurdCard-C3B510Rb.js → CurdCard-L7CeUBu8.js} +1 -1
  13. package/dist/lazy/{Custom-B_cdkBtC.js → Custom-BOu66r1s.js} +1 -1
  14. package/dist/lazy/{DatePicker-DoRsAnNc.js → DatePicker-CsFGbPqd.js} +1 -1
  15. package/dist/lazy/{DragList-DohjM_Z6.js → DragList-CrNu2H3L.js} +1 -1
  16. package/dist/lazy/{FilterSearch-Bcl2FD_U.js → FilterSearch-CtzCibeC.js} +1 -1
  17. package/dist/lazy/{FloatCurd-QCv0o3Xk.js → FloatCurd-BvJY7qC4.js} +1 -1
  18. package/dist/lazy/{FormList-DiBmPBLd.js → FormList-CtIbvTbf.js} +1 -1
  19. package/dist/lazy/{Grid-DSrr94ZD.js → Grid-BLJLGfnI.js} +1 -1
  20. package/dist/lazy/{InfiniteScroll-o77P2E43.js → InfiniteScroll-CiEMTZ5U.js} +1 -1
  21. package/dist/lazy/{Inline-qsE2RGxE.js → Inline-CloS4UVl.js} +1 -1
  22. package/dist/lazy/{JsonEdit-DnG09ykZ.js → JsonEdit-pKyGfFJE.js} +1 -1
  23. package/dist/lazy/{LogList-DCMAdDrM.js → LogList-BBqtI7jP.js} +1 -1
  24. package/dist/lazy/{ObjGroup-DToRJ5Bb.js → ObjGroup-cy_1znBM.js} +1 -1
  25. package/dist/lazy/{OfferDetails-DTOIU1eI.js → OfferDetails-BUcY6JmK.js} +1 -1
  26. package/dist/lazy/{Pagination-n0hjmANx.js → Pagination-ZVHp-Nv-.js} +1 -1
  27. package/dist/lazy/{Progress-Bbr9Jry8.js → Progress-CI6S2vqj.js} +1 -1
  28. package/dist/lazy/{Radio-CBDabM6L.js → Radio-CU4B41qv.js} +2 -2
  29. package/dist/lazy/{SearchSelect-mCCVqJPP.js → SearchSelect-BZDb3GgY.js} +2 -2
  30. package/dist/lazy/{Select-BwwEUw5P.js → Select-BQDroJSx.js} +2 -2
  31. package/dist/lazy/{Table-C-HXyyvt.js → Table-Dh97PH4w.js} +1 -1
  32. package/dist/lazy/{Tabs-Bmw7Ivk5.js → Tabs-yh9EUedA.js} +1 -1
  33. package/dist/lazy/{TextArea-KH25mOZd.js → TextArea-DAP_wk2H.js} +1 -1
  34. package/dist/lazy/{Wrapper-D2_m-So7.js → Wrapper-DdzMcCks.js} +1 -1
  35. package/dist/lazy/{index-B43MyFr4.js → index-DziIdPUv.js} +40 -36
  36. package/dist/lazy/{useSelect-B8L-c6In.js → useSelect-C4JEX5kR.js} +1 -1
  37. package/dist/style.css +1 -1
  38. package/package.json +1 -1
@@ -99,11 +99,11 @@ onClick: ${w}`)}},r=async()=>{const w=h.onShow;if(w&&e)try{await e[w](t,h)}catch
99
99
  onClick: ${h.beforeEnter}`)}};return(w,f)=>{const S=A.resolveComponent("el-tooltip"),F=A.resolveComponent("el-popover");return A.openBlock(),A.createBlock(F,{trigger:h.trigger||"hover",width:h.width,offset:w.offset,"popper-class":h.noPadding?"no-padding":h.popperClass||"",title:h.title,placement:h.placement,onBeforeEnter:D,"popper-style":{overflow:"auto"},disabled:h.disabled,onShow:r},{reference:A.withCtx(()=>{var G,$,H,K,y;return[A.createElementVNode("div",{style:A.normalizeStyle(h.ostyle+(i.value?h.hoverStyle:"")),onMouseenter:f[0]||(f[0]=B=>i.value=!0),onMouseleave:f[1]||(f[1]=B=>i.value=!1)},[((G=h.reference)==null?void 0:G.component)==="Icon"?(A.openBlock(),A.createBlock(S,{key:0,content:(H=($=h.reference)==null?void 0:$.props)==null?void 0:H.tooltip,disabled:!((y=(K=h.reference)==null?void 0:K.props)!=null&&y.tooltip),placement:"top"},{default:A.withCtx(()=>{var B,N,v,k;return[A.createVNode(ke,{name:(N=(B=h.reference)==null?void 0:B.props)==null?void 0:N.name,color:i.value&&h.hoverColor?h.hoverColor:(k=(v=h.reference)==null?void 0:v.props)==null?void 0:k.color,class:"btn-icon cursor-pointer",size:h.size||"normal",onClick:Q},null,8,["name","color","size"])]}),_:1},8,["content","disabled"])):h.reference?(A.openBlock(),A.createBlock(A.unref(rt),{key:1,list:[h.reference]},null,8,["list"])):A.createCommentVNode("",!0)],36)]}),default:A.withCtx(()=>[A.createElementVNode("div",null,[w.children?(A.openBlock(),A.createBlock(A.unref(rt),{key:0,list:w.children},null,8,["list"])):A.createCommentVNode("",!0)])]),_:1},8,["trigger","width","offset","popper-class","title","placement","disabled"])}}}),[["__scopeId","data-v-71d117e8"]]),ao=ae(A.defineComponent({__name:"FormItem",props:{label:{},labelSuffixText:{},labelSuffixStyle:{type:[Boolean,null,String,Object,Array]},name:{},component:{},required:{type:Boolean},props:{},initialValue:{},help:{},labelSuffix:{},children:{},hidden:{type:[Boolean,String]},nullFieldHidden:{type:[Boolean,String]},hideLabel:{type:Boolean},wFullLabel:{type:Boolean},designKey:{},rules:{},class:{},style:{},change:{},dialog:{type:Boolean},width:{}},setup(n){const e=n,t=Ct(),i=Jo(),h=A.reactive({visible:!1,title:""}),Q=()=>{h.visible=!0,h.title=e.label},r=A.computed({get(){return Ea(t.formValues,e.name)},set(y){const B=_o(t.formValues,e.name,y);t.updateFormValues(B)}}),D=A.computed(()=>{const{rules:y,required:B,component:N}=e,v=[];if(B&&v.push({required:!0,trigger:"blur",message:"Required"}),y){const k=y.map(m=>{const{type:p,message:u,trigger:s,customReg:g,templateExp:l}=m,d={message:u,trigger:s};return["email","url"].includes(p)?{...d,type:p}:p==="custom"&&g?{...d,pattern:bm(g)}:wm(p)?{...d,pattern:p}:p==="template"?{...d,validator:()=>l}:{}});return[...v,...k]}if(N==="VerifyCode"){const k={trigger:"blur",message:"验证码错误!",validator:()=>t.vCodePass};return[...v,k]}return v}),w=A.computed(()=>{const y=i[e.component]||{};return y.modelName||(y.modelName="modelValue"),y}),f=A.computed(()=>{const y={name:e.name,...e.props};return e.children&&(y.children=e.children),y}),S=()=>{if(e.component!=="DragList")return[];const y=f.value.gridlayout||[],B=f.value.children||[],N=f.value.rowHeight||30;return y.map((v,k)=>{var m;return{...v,i:(m=B[k])==null?void 0:m.name,rowHeight:N}})},F=A.ref(S()),G=y=>y==null?void 0:y.replace(/ /g," "),{ruleModule:$,pageMethodMap:H}=wn(),K=async y=>{if(y&&$)try{await $[y](H)}catch(B){console.error(B+`
100
100
  onClick: ${y}`)}};return A.onBeforeMount(()=>{if(r.value===void 0&&e.initialValue!==void 0&&!t.design){const y=_o(t.initialValues,e.name,e.initialValue);t.updateInitialValues(y),r.value=e.initialValue}}),A.watch(r,(y,B)=>{const N=e.change,v=ut.isEqual(y,B);if(!N||v)return;let k=ut.cloneDeep(t.formValues);N.forEach(({target:m,value:p,condition:u})=>{if(u!==!1){if(m.includes(".*.")){const s=m.split(".*."),g=s.pop(),l=s.join("."),d=Ea(t.formValues,l);ut.isArray(d)&&(k=_o(k,l,d.map(C=>({...C,[g]:p}))));return}k=_o(k,m,p)}}),t.updateFormValues(k)},{immediate:!0}),(y,B)=>{var p;const N=A.resolveComponent("el-tooltip"),v=A.resolveComponent("el-dialog"),k=A.resolveComponent("el-button"),m=A.resolveComponent("el-form-item");return A.unref(t).design||!y.hidden&&(!y.nullFieldHidden||r.value||r.value===0)?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[w.value.component==="DragList"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(w.value.render),A.mergeProps({key:0},f.value,{style:{minWidth:0},gridlayout:F.value,"onUpdate:gridlayout":B[0]||(B[0]=u=>F.value=u)}),null,16,["gridlayout"])):w.value.type==="layout"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(w.value.render),A.mergeProps({key:1},f.value,{style:{minWidth:0}}),null,16)):w.value.type==="assist"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(w.value.render),A.normalizeProps(A.mergeProps({key:2},f.value)),null,16)):(A.openBlock(),A.createBlock(m,{class:A.normalizeClass([A.unref(qe)("form-item"),e.class,`${y.component}-${y.name}`,{readMode:((p=e.props)==null?void 0:p.read)||A.unref(t).schema.read,hideLabel:y.hideLabel,wFullLabel:y.wFullLabel}]),style:A.normalizeStyle(y.style),key:y.name,prop:y.name,"label-width":y.hideLabel?"0":A.unref(t).schema.labelWidth,rules:D.value},{label:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",{class:A.normalizeClass([A.unref(qe)("form-item-label"),y.label&&`${y.name}-label`])},[A.createElementVNode("div",{style:A.normalizeStyle(A.unref(t).schema.labelBold&&"font-weight: bold")},A.toDisplayString(G(y.label)),5),y.labelSuffixText?(A.openBlock(),A.createElementBlock("div",{key:0,style:A.normalizeStyle([y.labelSuffixStyle,{"margin-left":"4px"}])},A.toDisplayString(y.labelSuffixText),5)):A.createCommentVNode("",!0),y.help?(A.openBlock(),A.createElementBlock("div",{key:1,class:A.normalizeClass(A.unref(qe)("form-item-label-ico"))},[A.createVNode(N,{effect:"dark",content:y.help,placement:"right"},{default:A.withCtx(()=>[A.createVNode(ke,{name:"icon-a-lujing11",color:"#999999",style:{width:"14px",height:"14px"}})]),_:1},8,["content"])],2)):A.createCommentVNode("",!0),y.labelSuffix?(A.openBlock(),A.createElementBlock("div",{key:2,class:A.normalizeClass(A.unref(qe)("form-item-label-suffix"))},[y.labelSuffix.component==="Popover"?(A.openBlock(),A.createBlock(kp,A.normalizeProps(A.mergeProps({key:0},A.unref(Lt)(y.labelSuffix.props,A.unref(t).context))),null,16)):y.labelSuffix.component==="Icon"?(A.openBlock(),A.createBlock(N,{key:1,effect:"dark",content:y.labelSuffix.props.tooltip,placement:"right",disabled:!y.labelSuffix.props.tooltip},{default:A.withCtx(()=>[A.createVNode(ke,{name:y.labelSuffix.props.name,color:y.labelSuffix.props.color,onClick:B[1]||(B[1]=u=>K(y.labelSuffix.props.onClick)),style:{width:"14px",height:"14px",cursor:"pointer"}},null,8,["name","color"])]),_:1},8,["content","disabled"])):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(v,{modelValue:h.visible,"onUpdate:modelValue":B[3]||(B[3]=u=>h.visible=u),title:h.title,width:"70%",center:"","destroy-on-close":""},{default:A.withCtx(()=>[(A.openBlock(),A.createBlock(A.resolveDynamicComponent(w.value.render),A.mergeProps({size:A.unref(t).schema.size},f.value,{disabled:A.unref(t).schema.disabled,[w.value.modelName]:r.value,["onUpdate:"+w.value.modelName]:B[2]||(B[2]=u=>r.value=u)}),null,16,["size","disabled"]))]),_:1},8,["modelValue","title"]),A.createVNode(k,{type:"primary",plain:"",onClick:Q},{default:A.withCtx(()=>B[5]||(B[5]=[A.createTextVNode("配置")])),_:1})],64)):(A.openBlock(),A.createBlock(A.resolveDynamicComponent(w.value.render),A.mergeProps({key:1,size:A.unref(t).schema.size,disabled:A.unref(t).schema.disabled},A.unref(Lt)(f.value,A.unref(t).context),{[w.value.modelName]:r.value,["onUpdate:"+w.value.modelName]:B[4]||(B[4]=u=>r.value=u)}),null,16,["size","disabled"]))]),_:1},8,["class","style","prop","label-width","rules"]))],64)):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-70b6ca6f"]]),Tv={key:0,class:"actions-lt"},Uv={class:"canvas-move",size:"small",type:"primary"},Yv={key:1,class:"hidden-ico"},Ov={key:2,class:"actions-rb"},$v=["onClick"],zv={key:3,class:"layout-title"},Jv=A.defineComponent({__name:"CanvasItem",props:{data:{}},setup(n){const e=n,t=Rn(),h=Jo()[e.data.component],Q=A.computed(()=>{var G;return{[qe("canvas-item")]:!0,active:e.data.designKey===((G=t.current)==null?void 0:G.designKey),hover:e.data.designKey===t.hoverKey,mask:e.data.designKey===t.hoverKey&&!e.data.children,collapse:f.value}}),r=()=>{e.data.designKey&&t.updateHoverKey(e.data.designKey)},D=()=>{t.updateHoverKey("")},w=G=>{t.updateCurrent(G),t.rightTab="attr"},f=A.ref(!1),S=()=>{f.value=!f.value},F=[{icon:"copy",handle:G=>{const $=Gu(t.list,G.designKey);t.updateList($)}},{icon:"delete",bg:"var(--el-color-danger)",handle:G=>{const $=wd(t.list,H=>H.designKey!==G.designKey);t.updateList($)}}];return(G,$)=>{var H,K;return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(Q.value),onClick:$[0]||($[0]=A.withModifiers(y=>w(G.data),["stop"])),onMousemove:A.withModifiers(r,["stop"]),onMouseleave:A.withModifiers(D,["stop"])},[G.data.designKey===((H=A.unref(t).current)==null?void 0:H.designKey)?(A.openBlock(),A.createElementBlock("div",Tv,[A.createElementVNode("div",Uv,[A.createVNode(A.unref(we),{name:"move"})]),A.createElementVNode("div",{class:"canvas-collapse",size:"small",type:"primary",onClick:S},[A.createVNode(A.unref(we),{name:"select"})])])):A.createCommentVNode("",!0),G.data.hidden?(A.openBlock(),A.createElementBlock("div",Yv,[A.createVNode(A.unref(we),{name:"hidden"})])):A.createCommentVNode("",!0),G.data.designKey===((K=A.unref(t).current)==null?void 0:K.designKey)?(A.openBlock(),A.createElementBlock("ul",Ov,[(A.openBlock(),A.createElementBlock(A.Fragment,null,A.renderList(F,({icon:y,handle:B,bg:N})=>A.createElementVNode("li",{class:"actions-rb-item",onClick:A.withModifiers(v=>B(G.data),["stop"]),key:y,style:A.normalizeStyle({backgroundColor:N})},[A.createVNode(A.unref(we),{name:y},null,8,["name"])],12,$v)),64))])):A.createCommentVNode("",!0),A.unref(h).lbTitle?(A.openBlock(),A.createElementBlock("div",zv,A.toDisplayString(A.unref(h).title),1)):A.createCommentVNode("",!0),A.createVNode(ao,A.mergeProps(G.data,{props:G.data.props}),null,16,["props"])],34)}}}),jc=A.defineComponent({__name:"CanvasGroup",props:{list:{},style:{},class:{},emptyText:{default:"请拖入子字段"},emptySize:{default:12}},setup(n){const e=n,t=Rn(),i=h=>{const Q=h.item._underlying_vm_;t.updateCurrent(tc(t.list,Q.designKey)),t.hoverKey=Q.designKey,t.rightTab="attr",t.handleEmit("add",Q)};return(h,Q)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(qe)("canvas-group")),style:A.normalizeStyle({overflow:h.list.length?"auto":"hidden"})},[h.list.length?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(A.unref(qe)("canvas-group-empty")),style:A.normalizeStyle({fontSize:h.emptySize+"px"})},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(qe)("canvas-group-empty-ico"))},[A.createVNode(A.unref(we),{name:"add"})],2),A.createElementVNode("p",null,A.toDisplayString(h.emptyText),1)],6)),A.createVNode(A.unref(vp),{list:h.list,group:"formDesign",itemKey:"name","ghost-class":A.unref(qe)("canvas-group-ghost"),class:A.normalizeClass([A.unref(qe)("canvas-group-draggable"),e.class]),style:A.normalizeStyle(h.style),animation:300,handle:".canvas-move","force-fallback":"",onAdd:i},{item:A.withCtx(({element:r})=>[r.designKey?(A.openBlock(),A.createBlock(Jv,{key:0,data:r},null,8,["data"])):A.createCommentVNode("",!0)]),_:1},8,["list","ghost-class","class","style"])],6))}}),Zv=typeof window<"u";var _p;Zv&&((_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 Wv=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(Wv)));function jv(){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(h=>{h(...t)})}}}function Sp(n,e=16){if(typeof n!="function")return Mp;const t=(...Q)=>{n(...Q)};if(e<=0)return xp(t);let i=0,h;return function(...Q){const r=Date.now(),D=r-i;clearTimeout(h),D>=e?(i=r,t(...Q)):h=setTimeout(()=>{i=Date.now(),t(...Q)},Math.max(0,e-D))}}function qv(n,e=100){if(typeof n!="function")return Mp;const t=(...h)=>{n(...h)};if(e<=0)return xp(t);let i;return function(...h){clearTimeout(i),i=setTimeout(()=>{t(...h)},e)}}function xp(n){if(typeof n!="function")return n;let e=!1,t,i;return function(...h){return t=h,e||(e=!0,i=Promise.resolve().then(()=>(e=!1,i=void 0,n(...t)))),i}}const Hr=new Set,Np=new WeakMap;function Xv(){Hr.forEach(n=>{n(...Np.get(n))}),Hr.clear()}function qt(n,...e){if(typeof n!="function")return n;Np.set(n,e),!Hr.has(n)&&(Hr.add(n),Hr.size===1&&Promise.resolve().then(Xv))}const Fp=Symbol("LAYOUT_KEY"),Rp=Symbol("EMITTER_KEY");function Vv(n){let e=0,t;for(let i=0,h=n.length;i<h;i++)t=n[i].y+n[i].h,t>e&&(e=t);return e}function qc(n){const e=Array(n.length);for(let t=0,i=n.length;t<i;t++)e[t]=A1(n[t]);return e}function A1(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 $o(n,e,t){const i=Hp(n),h=Tp(n),Q=Array(n.length);for(let r=0,D=h.length;r<D;r++){let w=h[r];w.static||(w=e1(i,w,e,t),i.push(w)),Q[n.findIndex(f=>f.i===w.i)]=w,w.moved=!1}return Q}function e1(n,e,t,i){if(t)for(;e.y>0&&!Kr(n,e);)e.y--;else if(i){const Q=i[e.i].y;for(;e.y>Q&&!Kr(n,e);)e.y--}let h;for(;h=Kr(n,e);)e.y=h.y+h.h;return e}function t1(n,e){const t=Hp(n);for(let i=0,h=n.length;i<h;i++){const Q=n[i];if(Q.x+Q.w>e.cols&&(Q.x=e.cols-Q.w),Q.x<0&&(Q.x=0,Q.w=e.cols),!Q.static)t.push(Q);else for(;Kr(t,Q);)Q.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 Kr(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 Xc(n,e,t,i,h=!1,Q=!1){if(e.static)return n;const r=e.x,D=e.y,w=i&&e.y>i;typeof t=="number"&&(e.x=t),typeof i=="number"&&(e.y=i),e.moved=!0;let f=Tp(n);w&&(f=f.reverse());const S=Pp(f,e);if(Q&&S.length)return e.x=r,e.y=D,e.moved=!1,n;for(let F=0,G=S.length;F<G;F++){const $=S[F];$.moved||e.y>$.y&&e.y-$.y>$.h/4||($.static?n=Kp(n,$,e,h):n=Kp(n,e,$,h))}return n}function Kp(n,e,t,i){if(i){const h={x:t.x,y:t.y,w:t.w,h:t.h};if(h.y=Math.max(e.y-t.h,0),!Kr(n,h))return Xc(n,t,void 0,h.y,!1)}return Xc(n,t,void 0,t.y+1,!1)}function n1(n,e,t,i){const h="translate3d("+e+"px,"+n+"px, 0)";return{transform:h,WebkitTransform:h,MozTransform:h,msTransform:h,OTransform:h,width:t+"px",height:i+"px",position:"absolute"}}function i1(n,e,t,i){const h="translate3d("+e*-1+"px,"+n+"px, 0)";return{transform:h,WebkitTransform:h,MozTransform:h,msTransform:h,OTransform:h,width:t+"px",height:i+"px",position:"absolute"}}function o1(n,e,t,i){return{top:n+"px",left:e+"px",width:t+"px",height:i+"px",position:"absolute"}}function r1(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 a1(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 h=0,Q=n.length;h<Q;h++){const r=n[h];for(let D=0;D<t.length;D++)if(typeof r[t[D]]!="number")throw new Error("VueGridLayout: "+e+"["+h+"]."+t[D]+" must be a number!");if(r.i===void 0||r.i===null)throw new Error("VueGridLayout: "+e+"["+h+"].i cannot be null!");if(typeof r.i!="number"&&typeof r.i!="string")throw new Error("VueGridLayout: "+e+"["+h+"].i must be a string or number!");if(i.indexOf(r.i)>=0)throw new Error("VueGridLayout: "+e+"["+h+"].i must be unique!");if(i.push(r.i),r.static!==void 0&&typeof r.static!="boolean")throw new Error("VueGridLayout: "+e+"["+h+"].static must be a boolean!")}}function s1(n,e="vgl"){const t=()=>`${e}-${n}`;return{b:t,be:i=>`${t()}__${i}`,bm:i=>`${t()}--${i}`,bem:(i,h)=>`${t()}__${i}--${h}`}}function Up(n){return l1(n)}function l1(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(),h=n.clientX+t.scrollLeft-i.left,Q=n.clientY+t.scrollTop-i.top;return{x:h,y:Q}}function Yp(n,e,t,i){return c1(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 c1(n){return typeof n=="number"&&!Number.isNaN(n)}function g1(n,e){const t=$p(n);let i=t[0];for(let h=1,Q=t.length;h<Q;h++){const r=t[h];e>n[r]&&(i=r)}return i}function Op(n,e){if(!e[n])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+n+" is missing!");return e[n]}function d1(n,e,t,i,h,Q,r){if(e[i])return qc(e[i]);let D=n;const w=$p(t),f=w.slice(w.indexOf(i));for(let S=0,F=f.length;S<F;S++){const G=f[S];if(e[G]){D=e[G];break}}return D=qc(D||[]),$o(t1(D,{cols:Q}),r)}function $p(n){return Object.keys(n).sort((e,t)=>n[e]-n[t])}let u1="auto";function h1(){return typeof document<"u"}function zp(){return h1()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):u1}var Bs={exports:{}};Bs.exports,function(n,e){(function(t,i){n.exports=i()})(ko,function(){function t(P,L){var Z=Object.keys(P);if(Object.getOwnPropertySymbols){var tA=Object.getOwnPropertySymbols(P);L&&(tA=tA.filter(function(sA){return Object.getOwnPropertyDescriptor(P,sA).enumerable})),Z.push.apply(Z,tA)}return Z}function i(P){for(var L=1;L<arguments.length;L++){var Z=arguments[L]!=null?arguments[L]:{};L%2?t(Object(Z),!0).forEach(function(tA){w(P,tA,Z[tA])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(Z)):t(Object(Z)).forEach(function(tA){Object.defineProperty(P,tA,Object.getOwnPropertyDescriptor(Z,tA))})}return P}function h(P){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},h(P)}function Q(P,L){if(!(P instanceof L))throw new TypeError("Cannot call a class as a function")}function r(P,L){for(var Z=0;Z<L.length;Z++){var tA=L[Z];tA.enumerable=tA.enumerable||!1,tA.configurable=!0,"value"in tA&&(tA.writable=!0),Object.defineProperty(P,K(tA.key),tA)}}function D(P,L,Z){return L&&r(P.prototype,L),Object.defineProperty(P,"prototype",{writable:!1}),P}function w(P,L,Z){return(L=K(L))in P?Object.defineProperty(P,L,{value:Z,enumerable:!0,configurable:!0,writable:!0}):P[L]=Z,P}function f(P,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(L&&L.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),L&&F(P,L)}function S(P){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)},S(P)}function F(P,L){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,tA){return Z.__proto__=tA,Z},F(P,L)}function G(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function $(P){var L=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,tA=S(P);if(L){var sA=S(this).constructor;Z=Reflect.construct(tA,arguments,sA)}else Z=tA.apply(this,arguments);return function(uA,CA){if(CA&&(typeof CA=="object"||typeof CA=="function"))return CA;if(CA!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G(uA)}(this,Z)}}function H(){return H=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(P,L,Z){var tA=function(uA,CA){for(;!Object.prototype.hasOwnProperty.call(uA,CA)&&(uA=S(uA))!==null;);return uA}(P,L);if(tA){var sA=Object.getOwnPropertyDescriptor(tA,L);return sA.get?sA.get.call(arguments.length<3?P:Z):sA.value}},H.apply(this,arguments)}function K(P){var L=function(Z,tA){if(typeof Z!="object"||Z===null)return Z;var sA=Z[Symbol.toPrimitive];if(sA!==void 0){var uA=sA.call(Z,tA);if(typeof uA!="object")return uA;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}(P,"string");return typeof L=="symbol"?L:L+""}var y=function(P){return!(!P||!P.Window)&&P instanceof P.Window},B=void 0,N=void 0;function v(P){B=P;var L=P.document.createTextNode("");L.ownerDocument!==P.document&&typeof P.wrap=="function"&&P.wrap(L)===L&&(P=P.wrap(P)),N=P}function k(P){return y(P)?P:(P.ownerDocument||P).defaultView||N.window}typeof window<"u"&&window&&v(window);var m=function(P){return!!P&&h(P)==="object"},p=function(P){return typeof P=="function"},u={window:function(P){return P===N||y(P)},docFrag:function(P){return m(P)&&P.nodeType===11},object:m,func:p,number:function(P){return typeof P=="number"},bool:function(P){return typeof P=="boolean"},string:function(P){return typeof P=="string"},element:function(P){if(!P||h(P)!=="object")return!1;var L=k(P)||N;return/object|function/.test(typeof Element>"u"?"undefined":h(Element))?P instanceof Element||P instanceof L.Element:P.nodeType===1&&typeof P.nodeName=="string"},plainObject:function(P){return m(P)&&!!P.constructor&&/function Object\b/.test(P.constructor.toString())},array:function(P){return m(P)&&P.length!==void 0&&p(P.splice)}};function s(P){var L=P.interaction;if(L.prepared.name==="drag"){var Z=L.prepared.axis;Z==="x"?(L.coords.cur.page.y=L.coords.start.page.y,L.coords.cur.client.y=L.coords.start.client.y,L.coords.velocity.client.y=0,L.coords.velocity.page.y=0):Z==="y"&&(L.coords.cur.page.x=L.coords.start.page.x,L.coords.cur.client.x=L.coords.start.client.x,L.coords.velocity.client.x=0,L.coords.velocity.page.x=0)}}function g(P){var L=P.iEvent,Z=P.interaction;if(Z.prepared.name==="drag"){var tA=Z.prepared.axis;if(tA==="x"||tA==="y"){var sA=tA==="x"?"y":"x";L.page[sA]=Z.coords.start.page[sA],L.client[sA]=Z.coords.start.client[sA],L.delta[sA]=0}}}var l={id:"actions/drag",install:function(P){var L=P.actions,Z=P.Interactable,tA=P.defaults;Z.prototype.draggable=l.draggable,L.map.drag=l,L.methodDict.drag="draggable",tA.actions.drag=l.defaults},listeners:{"interactions:before-action-move":s,"interactions:action-resume":s,"interactions:action-move":g,"auto-start:check":function(P){var L=P.interaction,Z=P.interactable,tA=P.buttons,sA=Z.options.drag;if(sA&&sA.enabled&&(!L.pointerIsDown||!/mouse|pointer/.test(L.pointerType)||tA&Z.options.drag.mouseButtons))return P.action={name:"drag",axis:sA.lockAxis==="start"?sA.startAxis:sA.lockAxis},!1}},draggable:function(P){return u.object(P)?(this.options.drag.enabled=P.enabled!==!1,this.setPerAction("drag",P),this.setOnEvents("drag",P),/^(xy|x|y|start)$/.test(P.lockAxis)&&(this.options.drag.lockAxis=P.lockAxis),/^(xy|x|y)$/.test(P.startAxis)&&(this.options.drag.startAxis=P.startAxis),this):u.bool(P)?(this.options.drag.enabled=P,this):this.options.drag},beforeMove:s,move:g,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(P){return P.search("drag")===0}},d=l,C={init:function(P){var L=P;C.document=L.document,C.DocumentFragment=L.DocumentFragment||o,C.SVGElement=L.SVGElement||o,C.SVGSVGElement=L.SVGSVGElement||o,C.SVGElementInstance=L.SVGElementInstance||o,C.Element=L.Element||o,C.HTMLElement=L.HTMLElement||C.Element,C.Event=L.Event,C.Touch=L.Touch||o,C.PointerEvent=L.PointerEvent||L.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function o(){}var a=C,E={init:function(P){var L=a.Element,Z=P.navigator||{};E.supportsTouch="ontouchstart"in P||u.func(P.DocumentTouch)&&a.document instanceof P.DocumentTouch,E.supportsPointerEvent=Z.pointerEnabled!==!1&&!!a.PointerEvent,E.isIOS=/iP(hone|od|ad)/.test(Z.platform),E.isIOS7=/iP(hone|od|ad)/.test(Z.platform)&&/OS 7[^\d]/.test(Z.appVersion),E.isIe9=/MSIE 9/.test(Z.userAgent),E.isOperaMobile=Z.appName==="Opera"&&E.supportsTouch&&/Presto/.test(Z.userAgent),E.prefixedMatchesSelector="matches"in L.prototype?"matches":"webkitMatchesSelector"in L.prototype?"webkitMatchesSelector":"mozMatchesSelector"in L.prototype?"mozMatchesSelector":"oMatchesSelector"in L.prototype?"oMatchesSelector":"msMatchesSelector",E.pEventTypes=E.supportsPointerEvent?a.PointerEvent===P.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,E.wheelEvent=a.document&&"onmousewheel"in a.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},I=E;function M(P,L){if(P.contains)return P.contains(L);for(;L;){if(L===P)return!0;L=L.parentNode}return!1}function x(P,L){for(;u.element(P);){if(Y(P,L))return P;P=T(P)}return null}function T(P){var L=P.parentNode;if(u.docFrag(L)){for(;(L=L.host)&&u.docFrag(L););return L}return L}function Y(P,L){return N!==B&&(L=L.replace(/\/deep\//g," ")),P[I.prefixedMatchesSelector](L)}var AA=function(P){return P.parentNode||P.host};function eA(P,L){for(var Z,tA=[],sA=P;(Z=AA(sA))&&sA!==L&&Z!==sA.ownerDocument;)tA.unshift(sA),sA=Z;return tA}function V(P,L,Z){for(;u.element(P);){if(Y(P,L))return!0;if((P=T(P))===Z)return Y(P,L)}return!1}function O(P){return P.correspondingUseElement||P}function W(P){var L=P instanceof a.SVGElement?P.getBoundingClientRect():P.getClientRects()[0];return L&&{left:L.left,right:L.right,top:L.top,bottom:L.bottom,width:L.width||L.right-L.left,height:L.height||L.bottom-L.top}}function _(P){var L,Z=W(P);if(!I.isIOS7&&Z){var tA={x:(L=(L=k(P))||N).scrollX||L.document.documentElement.scrollLeft,y:L.scrollY||L.document.documentElement.scrollTop};Z.left+=tA.x,Z.right+=tA.x,Z.top+=tA.y,Z.bottom+=tA.y}return Z}function J(P){for(var L=[];P;)L.push(P),P=T(P);return L}function R(P){return!!u.string(P)&&(a.document.querySelector(P),!0)}function j(P,L){for(var Z in L)P[Z]=L[Z];return P}function oA(P,L,Z){return P==="parent"?T(Z):P==="self"?L.getRect(Z):x(Z,P)}function iA(P,L,Z,tA){var sA=P;return u.string(sA)?sA=oA(sA,L,Z):u.func(sA)&&(sA=sA.apply(void 0,tA)),u.element(sA)&&(sA=_(sA)),sA}function dA(P){return P&&{x:"x"in P?P.x:P.left,y:"y"in P?P.y:P.top}}function EA(P){return!P||"x"in P&&"y"in P||((P=j({},P)).x=P.left||0,P.y=P.top||0,P.width=P.width||(P.right||0)-P.x,P.height=P.height||(P.bottom||0)-P.y),P}function gA(P,L,Z){P.left&&(L.left+=Z.x),P.right&&(L.right+=Z.x),P.top&&(L.top+=Z.y),P.bottom&&(L.bottom+=Z.y),L.width=L.right-L.left,L.height=L.bottom-L.top}function wA(P,L,Z){var tA=Z&&P.options[Z];return dA(iA(tA&&tA.origin||P.options.origin,P,L,[P&&L]))||{x:0,y:0}}function X(P,L){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(yA){return!0},tA=arguments.length>3?arguments[3]:void 0;if(tA=tA||{},u.string(P)&&P.search(" ")!==-1&&(P=aA(P)),u.array(P))return P.forEach(function(yA){return X(yA,L,Z,tA)}),tA;if(u.object(P)&&(L=P,P=""),u.func(L)&&Z(P))tA[P]=tA[P]||[],tA[P].push(L);else if(u.array(L))for(var sA=0,uA=L;sA<uA.length;sA++){var CA=uA[sA];X(P,CA,Z,tA)}else if(u.object(L))for(var fA in L)X(aA(fA).map(function(yA){return"".concat(P).concat(yA)}),L[fA],Z,tA);return tA}function aA(P){return P.trim().split(/ +/)}var cA=function(P,L){return Math.sqrt(P*P+L*L)},hA=["webkit","moz"];function z(P,L){P.__set||(P.__set={});var Z=function(sA){if(hA.some(function(uA){return sA.indexOf(uA)===0}))return 1;typeof P[sA]!="function"&&sA!=="__set"&&Object.defineProperty(P,sA,{get:function(){return sA in P.__set?P.__set[sA]:P.__set[sA]=L[sA]},set:function(uA){P.__set[sA]=uA},configurable:!0})};for(var tA in L)Z(tA);return P}function q(P,L){P.page=P.page||{},P.page.x=L.page.x,P.page.y=L.page.y,P.client=P.client||{},P.client.x=L.client.x,P.client.y=L.client.y,P.timeStamp=L.timeStamp}function nA(P){P.page.x=0,P.page.y=0,P.client.x=0,P.client.y=0}function lA(P){return P instanceof a.Event||P instanceof a.Touch}function BA(P,L,Z){return P=P||"page",(Z=Z||{}).x=L[P+"X"],Z.y=L[P+"Y"],Z}function NA(P,L){return L=L||{x:0,y:0},I.isOperaMobile&&lA(P)?(BA("screen",P,L),L.x+=window.scrollX,L.y+=window.scrollY):BA("page",P,L),L}function zA(P){return u.number(P.pointerId)?P.pointerId:P.identifier}function qA(P,L,Z){var tA=L.length>1?XA(L):L[0];NA(tA,P.page),function(sA,uA){uA=uA||{},I.isOperaMobile&&lA(sA)?BA("screen",sA,uA):BA("client",sA,uA)}(tA,P.client),P.timeStamp=Z}function ee(P){var L=[];return u.array(P)?(L[0]=P[0],L[1]=P[1]):P.type==="touchend"?P.touches.length===1?(L[0]=P.touches[0],L[1]=P.changedTouches[0]):P.touches.length===0&&(L[0]=P.changedTouches[0],L[1]=P.changedTouches[1]):(L[0]=P.touches[0],L[1]=P.touches[1]),L}function XA(P){for(var L={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},Z=0;Z<P.length;Z++){var tA=P[Z];for(var sA in L)L[sA]+=tA[sA]}for(var uA in L)L[uA]/=P.length;return L}function pe(P){if(!P.length)return null;var L=ee(P),Z=Math.min(L[0].pageX,L[1].pageX),tA=Math.min(L[0].pageY,L[1].pageY),sA=Math.max(L[0].pageX,L[1].pageX),uA=Math.max(L[0].pageY,L[1].pageY);return{x:Z,y:tA,left:Z,top:tA,right:sA,bottom:uA,width:sA-Z,height:uA-tA}}function HA(P,L){var Z=L+"X",tA=L+"Y",sA=ee(P),uA=sA[0][Z]-sA[1][Z],CA=sA[0][tA]-sA[1][tA];return cA(uA,CA)}function DA(P,L){var Z=L+"X",tA=L+"Y",sA=ee(P),uA=sA[1][Z]-sA[0][Z],CA=sA[1][tA]-sA[0][tA];return 180*Math.atan2(CA,uA)/Math.PI}function kA(P){return u.string(P.pointerType)?P.pointerType:u.number(P.pointerType)?[void 0,void 0,"touch","pen","mouse"][P.pointerType]:/touch/.test(P.type||"")||P instanceof a.Touch?"touch":"mouse"}function OA(P){var L=u.func(P.composedPath)?P.composedPath():P.path;return[O(L?L[0]:P.target),O(P.currentTarget)]}var SA=function(){function P(L){Q(this,P),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=L}return D(P,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),P}();Object.defineProperty(SA.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var WA=function(P,L){for(var Z=0;Z<L.length;Z++){var tA=L[Z];P.push(tA)}return P},he=function(P){return WA([],P)},KA=function(P,L){for(var Z=0;Z<P.length;Z++)if(L(P[Z],Z,P))return Z;return-1},JA=function(P,L){return P[KA(P,L)]},Ae=function(P){f(Z,P);var L=$(Z);function Z(tA,sA,uA){var CA;Q(this,Z),(CA=L.call(this,sA._interaction)).dropzone=void 0,CA.dragEvent=void 0,CA.relatedTarget=void 0,CA.draggable=void 0,CA.propagationStopped=!1,CA.immediatePropagationStopped=!1;var fA=uA==="dragleave"?tA.prev:tA.cur,yA=fA.element,RA=fA.dropzone;return CA.type=uA,CA.target=yA,CA.currentTarget=yA,CA.dropzone=RA,CA.dragEvent=sA,CA.relatedTarget=sA.target,CA.draggable=sA.interactable,CA.timeStamp=sA.timeStamp,CA}return D(Z,[{key:"reject",value:function(){var tA=this,sA=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&sA.cur.dropzone===this.dropzone&&sA.cur.element===this.target)if(sA.prev.dropzone=this.dropzone,sA.prev.element=this.target,sA.rejected=!0,sA.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var uA=sA.activeDrops,CA=KA(uA,function(yA){var RA=yA.dropzone,vA=yA.element;return RA===tA.dropzone&&vA===tA.target});sA.activeDrops.splice(CA,1);var fA=new Z(sA,this.dragEvent,"dropdeactivate");fA.dropzone=this.dropzone,fA.target=this.target,this.dropzone.fire(fA)}else this.dropzone.fire(new Z(sA,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),Z}(SA);function Ce(P,L){for(var Z=0,tA=P.slice();Z<tA.length;Z++){var sA=tA[Z],uA=sA.dropzone,CA=sA.element;L.dropzone=uA,L.target=CA,uA.fire(L),L.propagationStopped=L.immediatePropagationStopped=!1}}function ge(P,L){for(var Z=function(uA,CA){for(var fA=[],yA=0,RA=uA.interactables.list;yA<RA.length;yA++){var vA=RA[yA];if(vA.options.drop.enabled){var TA=vA.options.drop.accept;if(!(u.element(TA)&&TA!==CA||u.string(TA)&&!Y(CA,TA)||u.func(TA)&&!TA({dropzone:vA,draggableElement:CA})))for(var VA=0,ue=vA.getAllElements();VA<ue.length;VA++){var le=ue[VA];le!==CA&&fA.push({dropzone:vA,element:le,rect:vA.getRect(le)})}}}return fA}(P,L),tA=0;tA<Z.length;tA++){var sA=Z[tA];sA.rect=sA.dropzone.getRect(sA.element)}return Z}function fe(P,L,Z){for(var tA=P.dropState,sA=P.interactable,uA=P.element,CA=[],fA=0,yA=tA.activeDrops;fA<yA.length;fA++){var RA=yA[fA],vA=RA.dropzone,TA=RA.element,VA=RA.rect,ue=vA.dropCheck(L,Z,sA,uA,TA,VA);CA.push(ue?TA:null)}var le=function(Be){for(var ve,be,_A,$A=[],UA=0;UA<Be.length;UA++){var te=Be[UA],Ee=Be[ve];if(te&&UA!==ve)if(Ee){var He=AA(te),Ke=AA(Ee);if(He!==te.ownerDocument)if(Ke!==te.ownerDocument)if(He!==Ke){$A=$A.length?$A:eA(Ee);var Oe=void 0;if(Ee instanceof a.HTMLElement&&te instanceof a.SVGElement&&!(te instanceof a.SVGSVGElement)){if(te===Ke)continue;Oe=te.ownerSVGElement}else Oe=te;for(var rn=eA(Oe,Ee.ownerDocument),Wn=0;rn[Wn]&&rn[Wn]===$A[Wn];)Wn++;var Ut=[rn[Wn-1],rn[Wn],$A[Wn]];if(Ut[0])for(var li=Ut[0].lastChild;li;){if(li===Ut[1]){ve=UA,$A=rn;break}if(li===Ut[2])break;li=li.previousSibling}}else _A=Ee,(parseInt(k(be=te).getComputedStyle(be).zIndex,10)||0)>=(parseInt(k(_A).getComputedStyle(_A).zIndex,10)||0)&&(ve=UA);else ve=UA}else ve=UA}return ve}(CA);return tA.activeDrops[le]||null}function Me(P,L,Z){var tA=P.dropState,sA={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return Z.type==="dragstart"&&(sA.activate=new Ae(tA,Z,"dropactivate"),sA.activate.target=null,sA.activate.dropzone=null),Z.type==="dragend"&&(sA.deactivate=new Ae(tA,Z,"dropdeactivate"),sA.deactivate.target=null,sA.deactivate.dropzone=null),tA.rejected||(tA.cur.element!==tA.prev.element&&(tA.prev.dropzone&&(sA.leave=new Ae(tA,Z,"dragleave"),Z.dragLeave=sA.leave.target=tA.prev.element,Z.prevDropzone=sA.leave.dropzone=tA.prev.dropzone),tA.cur.dropzone&&(sA.enter=new Ae(tA,Z,"dragenter"),Z.dragEnter=tA.cur.element,Z.dropzone=tA.cur.dropzone)),Z.type==="dragend"&&tA.cur.dropzone&&(sA.drop=new Ae(tA,Z,"drop"),Z.dropzone=tA.cur.dropzone,Z.relatedTarget=tA.cur.element),Z.type==="dragmove"&&tA.cur.dropzone&&(sA.move=new Ae(tA,Z,"dropmove"),Z.dropzone=tA.cur.dropzone)),sA}function mA(P,L){var Z=P.dropState,tA=Z.activeDrops,sA=Z.cur,uA=Z.prev;L.leave&&uA.dropzone.fire(L.leave),L.enter&&sA.dropzone.fire(L.enter),L.move&&sA.dropzone.fire(L.move),L.drop&&sA.dropzone.fire(L.drop),L.deactivate&&Ce(tA,L.deactivate),Z.prev.dropzone=sA.dropzone,Z.prev.element=sA.element}function xA(P,L){var Z=P.interaction,tA=P.iEvent,sA=P.event;if(tA.type==="dragmove"||tA.type==="dragend"){var uA=Z.dropState;L.dynamicDrop&&(uA.activeDrops=ge(L,Z.element));var CA=tA,fA=fe(Z,CA,sA);uA.rejected=uA.rejected&&!!fA&&fA.dropzone===uA.cur.dropzone&&fA.element===uA.cur.element,uA.cur.dropzone=fA&&fA.dropzone,uA.cur.element=fA&&fA.element,uA.events=Me(Z,0,CA)}}var LA={id:"actions/drop",install:function(P){var L=P.actions,Z=P.interactStatic,tA=P.Interactable,sA=P.defaults;P.usePlugin(d),tA.prototype.dropzone=function(uA){return function(CA,fA){if(u.object(fA)){if(CA.options.drop.enabled=fA.enabled!==!1,fA.listeners){var yA=X(fA.listeners),RA=Object.keys(yA).reduce(function(TA,VA){return TA[/^(enter|leave)/.test(VA)?"drag".concat(VA):/^(activate|deactivate|move)/.test(VA)?"drop".concat(VA):VA]=yA[VA],TA},{}),vA=CA.options.drop.listeners;vA&&CA.off(vA),CA.on(RA),CA.options.drop.listeners=RA}return u.func(fA.ondrop)&&CA.on("drop",fA.ondrop),u.func(fA.ondropactivate)&&CA.on("dropactivate",fA.ondropactivate),u.func(fA.ondropdeactivate)&&CA.on("dropdeactivate",fA.ondropdeactivate),u.func(fA.ondragenter)&&CA.on("dragenter",fA.ondragenter),u.func(fA.ondragleave)&&CA.on("dragleave",fA.ondragleave),u.func(fA.ondropmove)&&CA.on("dropmove",fA.ondropmove),/^(pointer|center)$/.test(fA.overlap)?CA.options.drop.overlap=fA.overlap:u.number(fA.overlap)&&(CA.options.drop.overlap=Math.max(Math.min(1,fA.overlap),0)),"accept"in fA&&(CA.options.drop.accept=fA.accept),"checker"in fA&&(CA.options.drop.checker=fA.checker),CA}return u.bool(fA)?(CA.options.drop.enabled=fA,CA):CA.options.drop}(this,uA)},tA.prototype.dropCheck=function(uA,CA,fA,yA,RA,vA){return function(TA,VA,ue,le,Be,ve,be){var _A=!1;if(!(be=be||TA.getRect(ve)))return!!TA.options.drop.checker&&TA.options.drop.checker(VA,ue,_A,TA,ve,le,Be);var $A=TA.options.drop.overlap;if($A==="pointer"){var UA=wA(le,Be,"drag"),te=NA(VA);te.x+=UA.x,te.y+=UA.y;var Ee=te.x>be.left&&te.x<be.right,He=te.y>be.top&&te.y<be.bottom;_A=Ee&&He}var Ke=le.getRect(Be);if(Ke&&$A==="center"){var Oe=Ke.left+Ke.width/2,rn=Ke.top+Ke.height/2;_A=Oe>=be.left&&Oe<=be.right&&rn>=be.top&&rn<=be.bottom}return Ke&&u.number($A)&&(_A=Math.max(0,Math.min(be.right,Ke.right)-Math.max(be.left,Ke.left))*Math.max(0,Math.min(be.bottom,Ke.bottom)-Math.max(be.top,Ke.top))/(Ke.width*Ke.height)>=$A),TA.options.drop.checker&&(_A=TA.options.drop.checker(VA,ue,_A,TA,ve,le,Be)),_A}(this,uA,CA,fA,yA,RA,vA)},Z.dynamicDrop=function(uA){return u.bool(uA)?(P.dynamicDrop=uA,Z):P.dynamicDrop},j(L.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),L.methodDict.drop="dropzone",P.dynamicDrop=!1,sA.actions.drop=LA.defaults},listeners:{"interactions:before-action-start":function(P){var L=P.interaction;L.prepared.name==="drag"&&(L.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(P,L){var Z=P.interaction,tA=(P.event,P.iEvent);if(Z.prepared.name==="drag"){var sA=Z.dropState;sA.activeDrops=[],sA.events={},sA.activeDrops=ge(L,Z.element),sA.events=Me(Z,0,tA),sA.events.activate&&(Ce(sA.activeDrops,sA.events.activate),L.fire("actions/drop:start",{interaction:Z,dragEvent:tA}))}},"interactions:action-move":xA,"interactions:after-action-move":function(P,L){var Z=P.interaction,tA=P.iEvent;if(Z.prepared.name==="drag"){var sA=Z.dropState;mA(Z,sA.events),L.fire("actions/drop:move",{interaction:Z,dragEvent:tA}),sA.events={}}},"interactions:action-end":function(P,L){if(P.interaction.prepared.name==="drag"){var Z=P.interaction,tA=P.iEvent;xA(P,L),mA(Z,Z.dropState.events),L.fire("actions/drop:end",{interaction:Z,dragEvent:tA})}},"interactions:stop":function(P){var L=P.interaction;if(L.prepared.name==="drag"){var Z=L.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:ge,getDrop:fe,getDropEvents:Me,fireDropEvents:mA,filterEventType:function(P){return P.search("drag")===0||P.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},oe=LA;function Ie(P){var L=P.interaction,Z=P.iEvent,tA=P.phase;if(L.prepared.name==="gesture"){var sA=L.pointers.map(function(RA){return RA.pointer}),uA=tA==="start",CA=tA==="end",fA=L.interactable.options.deltaSource;if(Z.touches=[sA[0],sA[1]],uA)Z.distance=HA(sA,fA),Z.box=pe(sA),Z.scale=1,Z.ds=0,Z.angle=DA(sA,fA),Z.da=0,L.gesture.startDistance=Z.distance,L.gesture.startAngle=Z.angle;else if(CA||L.pointers.length<2){var yA=L.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=HA(sA,fA),Z.box=pe(sA),Z.scale=Z.distance/L.gesture.startDistance,Z.angle=DA(sA,fA),Z.ds=Z.scale-L.gesture.scale,Z.da=Z.angle-L.gesture.angle;L.gesture.distance=Z.distance,L.gesture.angle=Z.angle,u.number(Z.scale)&&Z.scale!==1/0&&!isNaN(Z.scale)&&(L.gesture.scale=Z.scale)}}var se={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(P){var L=P.actions,Z=P.Interactable,tA=P.defaults;Z.prototype.gesturable=function(sA){return u.object(sA)?(this.options.gesture.enabled=sA.enabled!==!1,this.setPerAction("gesture",sA),this.setOnEvents("gesture",sA),this):u.bool(sA)?(this.options.gesture.enabled=sA,this):this.options.gesture},L.map.gesture=se,L.methodDict.gesture="gesturable",tA.actions.gesture=se.defaults},listeners:{"interactions:action-start":Ie,"interactions:action-move":Ie,"interactions:action-end":Ie,"interactions:new":function(P){P.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(P){if(!(P.interaction.pointers.length<2)){var L=P.interactable.options.gesture;if(L&&L.enabled)return P.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(P){return P.search("gesture")===0}},de=se;function _e(P,L,Z,tA,sA,uA,CA){if(!L)return!1;if(L===!0){var fA=u.number(uA.width)?uA.width:uA.right-uA.left,yA=u.number(uA.height)?uA.height:uA.bottom-uA.top;if(CA=Math.min(CA,Math.abs((P==="left"||P==="right"?fA:yA)/2)),fA<0&&(P==="left"?P="right":P==="right"&&(P="left")),yA<0&&(P==="top"?P="bottom":P==="bottom"&&(P="top")),P==="left"){var RA=fA>=0?uA.left:uA.right;return Z.x<RA+CA}if(P==="top"){var vA=yA>=0?uA.top:uA.bottom;return Z.y<vA+CA}if(P==="right")return Z.x>(fA>=0?uA.right:uA.left)-CA;if(P==="bottom")return Z.y>(yA>=0?uA.bottom:uA.top)-CA}return!!u.element(tA)&&(u.element(L)?L===tA:V(tA,L,sA))}function We(P){var L=P.iEvent,Z=P.interaction;if(Z.prepared.name==="resize"&&Z.resizeAxes){var tA=L;Z.interactable.options.resize.square?(Z.resizeAxes==="y"?tA.delta.x=tA.delta.y:tA.delta.y=tA.delta.x,tA.axes="xy"):(tA.axes=Z.resizeAxes,Z.resizeAxes==="x"?tA.delta.y=0:Z.resizeAxes==="y"&&(tA.delta.x=0))}}var ct,FA,bA={id:"actions/resize",before:["actions/drag"],install:function(P){var L=P.actions,Z=P.browser,tA=P.Interactable,sA=P.defaults;bA.cursors=function(uA){return uA.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,tA.prototype.resizable=function(uA){return function(CA,fA,yA){return u.object(fA)?(CA.options.resize.enabled=fA.enabled!==!1,CA.setPerAction("resize",fA),CA.setOnEvents("resize",fA),u.string(fA.axis)&&/^x$|^y$|^xy$/.test(fA.axis)?CA.options.resize.axis=fA.axis:fA.axis===null&&(CA.options.resize.axis=yA.defaults.actions.resize.axis),u.bool(fA.preserveAspectRatio)?CA.options.resize.preserveAspectRatio=fA.preserveAspectRatio:u.bool(fA.square)&&(CA.options.resize.square=fA.square),CA):u.bool(fA)?(CA.options.resize.enabled=fA,CA):CA.options.resize}(this,uA,P)},L.map.resize=bA,L.methodDict.resize="resizable",sA.actions.resize=bA.defaults},listeners:{"interactions:new":function(P){P.interaction.resizeAxes="xy"},"interactions:action-start":function(P){(function(L){var Z=L.iEvent,tA=L.interaction;if(tA.prepared.name==="resize"&&tA.prepared.edges){var sA=Z,uA=tA.rect;tA._rects={start:j({},uA),corrected:j({},uA),previous:j({},uA),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},sA.edges=tA.prepared.edges,sA.rect=tA._rects.corrected,sA.deltaRect=tA._rects.delta}})(P),We(P)},"interactions:action-move":function(P){(function(L){var Z=L.iEvent,tA=L.interaction;if(tA.prepared.name==="resize"&&tA.prepared.edges){var sA=Z,uA=tA.interactable.options.resize.invert,CA=uA==="reposition"||uA==="negate",fA=tA.rect,yA=tA._rects,RA=yA.start,vA=yA.corrected,TA=yA.delta,VA=yA.previous;if(j(VA,vA),CA){if(j(vA,fA),uA==="reposition"){if(vA.top>vA.bottom){var ue=vA.top;vA.top=vA.bottom,vA.bottom=ue}if(vA.left>vA.right){var le=vA.left;vA.left=vA.right,vA.right=le}}}else vA.top=Math.min(fA.top,RA.bottom),vA.bottom=Math.max(fA.bottom,RA.top),vA.left=Math.min(fA.left,RA.right),vA.right=Math.max(fA.right,RA.left);for(var Be in vA.width=vA.right-vA.left,vA.height=vA.bottom-vA.top,vA)TA[Be]=vA[Be]-VA[Be];sA.edges=tA.prepared.edges,sA.rect=vA,sA.deltaRect=TA}})(P),We(P)},"interactions:action-end":function(P){var L=P.iEvent,Z=P.interaction;if(Z.prepared.name==="resize"&&Z.prepared.edges){var tA=L;tA.edges=Z.prepared.edges,tA.rect=Z._rects.corrected,tA.deltaRect=Z._rects.delta}},"auto-start:check":function(P){var L=P.interaction,Z=P.interactable,tA=P.element,sA=P.rect,uA=P.buttons;if(sA){var CA=j({},L.coords.cur.page),fA=Z.options.resize;if(fA&&fA.enabled&&(!L.pointerIsDown||!/mouse|pointer/.test(L.pointerType)||uA&fA.mouseButtons)){if(u.object(fA.edges)){var yA={left:!1,right:!1,top:!1,bottom:!1};for(var RA in yA)yA[RA]=_e(RA,fA.edges[RA],CA,L._latestPointer.eventTarget,tA,sA,fA.margin||bA.defaultMargin);yA.left=yA.left&&!yA.right,yA.top=yA.top&&!yA.bottom,(yA.left||yA.right||yA.top||yA.bottom)&&(P.action={name:"resize",edges:yA})}else{var vA=fA.axis!=="y"&&CA.x>sA.right-bA.defaultMargin,TA=fA.axis!=="x"&&CA.y>sA.bottom-bA.defaultMargin;(vA||TA)&&(P.action={name:"resize",axes:(vA?"x":"")+(TA?"y":"")})}return!P.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(P){var L=P.edges,Z=P.axis,tA=P.name,sA=bA.cursors,uA=null;if(Z)uA=sA[tA+Z];else if(L){for(var CA="",fA=0,yA=["top","bottom","left","right"];fA<yA.length;fA++){var RA=yA[fA];L[RA]&&(CA+=RA)}uA=sA[CA]}return uA},filterEventType:function(P){return P.search("resize")===0},defaultMargin:null},PA=bA,jA={id:"actions",install:function(P){P.usePlugin(de),P.usePlugin(PA),P.usePlugin(d),P.usePlugin(oe)}},ZA=0,ye={request:function(P){return ct(P)},cancel:function(P){return FA(P)},init:function(P){if(ct=P.requestAnimationFrame,FA=P.cancelAnimationFrame,!ct)for(var L=["ms","moz","webkit","o"],Z=0;Z<L.length;Z++){var tA=L[Z];ct=P["".concat(tA,"RequestAnimationFrame")],FA=P["".concat(tA,"CancelAnimationFrame")]||P["".concat(tA,"CancelRequestAnimationFrame")]}ct=ct&&ct.bind(P),FA=FA&&FA.bind(P),ct||(ct=function(sA){var uA=Date.now(),CA=Math.max(0,16-(uA-ZA)),fA=P.setTimeout(function(){sA(uA+CA)},CA);return ZA=uA+CA,fA},FA=function(sA){return clearTimeout(sA)})}},re={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(P){re.isScrolling=!0,ye.cancel(re.i),P.autoScroll=re,re.interaction=P,re.prevTime=re.now(),re.i=ye.request(re.scroll)},stop:function(){re.isScrolling=!1,re.interaction&&(re.interaction.autoScroll=null),ye.cancel(re.i)},scroll:function(){var P=re.interaction,L=P.interactable,Z=P.element,tA=P.prepared.name,sA=L.options[tA].autoScroll,uA=xe(sA.container,L,Z),CA=re.now(),fA=(CA-re.prevTime)/1e3,yA=sA.speed*fA;if(yA>=1){var RA={x:re.x*yA,y:re.y*yA};if(RA.x||RA.y){var vA=Xe(uA);u.window(uA)?uA.scrollBy(RA.x,RA.y):uA&&(uA.scrollLeft+=RA.x,uA.scrollTop+=RA.y);var TA=Xe(uA),VA={x:TA.x-vA.x,y:TA.y-vA.y};(VA.x||VA.y)&&L.fire({type:"autoscroll",target:Z,interactable:L,delta:VA,interaction:P,container:uA})}re.prevTime=CA}re.isScrolling&&(ye.cancel(re.i),re.i=ye.request(re.scroll))},check:function(P,L){var Z;return(Z=P.options[L].autoScroll)==null?void 0:Z.enabled},onInteractionMove:function(P){var L=P.interaction,Z=P.pointer;if(L.interacting()&&re.check(L.interactable,L.prepared.name))if(L.simulation)re.x=re.y=0;else{var tA,sA,uA,CA,fA=L.interactable,yA=L.element,RA=L.prepared.name,vA=fA.options[RA].autoScroll,TA=xe(vA.container,fA,yA);if(u.window(TA))CA=Z.clientX<re.margin,tA=Z.clientY<re.margin,sA=Z.clientX>TA.innerWidth-re.margin,uA=Z.clientY>TA.innerHeight-re.margin;else{var VA=W(TA);CA=Z.clientX<VA.left+re.margin,tA=Z.clientY<VA.top+re.margin,sA=Z.clientX>VA.right-re.margin,uA=Z.clientY>VA.bottom-re.margin}re.x=sA?1:CA?-1:0,re.y=uA?1:tA?-1:0,re.isScrolling||(re.margin=vA.margin,re.speed=vA.speed,re.start(L))}}};function xe(P,L,Z){return(u.string(P)?oA(P,L,Z):P)||k(Z)}function Xe(P){return u.window(P)&&(P=window.document.body),{x:P.scrollLeft,y:P.scrollTop}}var Bt={id:"auto-scroll",install:function(P){var L=P.defaults,Z=P.actions;P.autoScroll=re,re.now=function(){return P.now()},Z.phaselessTypes.autoscroll=!0,L.perAction.autoScroll=re.defaults},listeners:{"interactions:new":function(P){P.interaction.autoScroll=null},"interactions:destroy":function(P){P.interaction.autoScroll=null,re.stop(),re.interaction&&(re.interaction=null)},"interactions:stop":re.stop,"interactions:action-move":function(P){return re.onInteractionMove(P)}}},ze=Bt;function et(P,L){var Z=!1;return function(){return Z||(N.console.warn(L),Z=!0),P.apply(this,arguments)}}function dt(P,L){return P.name=L.name,P.axis=L.axis,P.edges=L.edges,P}function Pe(P){return u.bool(P)?(this.options.styleCursor=P,this):P===null?(delete this.options.styleCursor,this):this.options.styleCursor}function ot(P){return u.func(P)?(this.options.actionChecker=P,this):P===null?(delete this.options.actionChecker,this):this.options.actionChecker}var ft={id:"auto-start/interactableMethods",install:function(P){var L=P.Interactable;L.prototype.getAction=function(Z,tA,sA,uA){var CA=function(fA,yA,RA,vA,TA){var VA=fA.getRect(vA),ue=yA.buttons||{0:1,1:4,3:8,4:16}[yA.button],le={action:null,interactable:fA,interaction:RA,element:vA,rect:VA,buttons:ue};return TA.fire("auto-start:check",le),le.action}(this,tA,sA,uA,P);return this.options.actionChecker?this.options.actionChecker(Z,tA,CA,this,uA,sA):CA},L.prototype.ignoreFrom=et(function(Z){return this._backCompatOption("ignoreFrom",Z)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),L.prototype.allowFrom=et(function(Z){return this._backCompatOption("allowFrom",Z)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),L.prototype.actionChecker=ot,L.prototype.styleCursor=Pe}};function nt(P,L,Z,tA,sA){return L.testIgnoreAllow(L.options[P.name],Z,tA)&&L.options[P.name].enabled&&dn(L,Z,P,sA)?P:null}function Ln(P,L,Z,tA,sA,uA,CA){for(var fA=0,yA=tA.length;fA<yA;fA++){var RA=tA[fA],vA=sA[fA],TA=RA.getAction(L,Z,P,vA);if(TA){var VA=nt(TA,RA,vA,uA,CA);if(VA)return{action:VA,interactable:RA,element:vA}}}return{action:null,interactable:null,element:null}}function Vt(P,L,Z,tA,sA){var uA=[],CA=[],fA=tA;function yA(vA){uA.push(vA),CA.push(fA)}for(;u.element(fA);){uA=[],CA=[],sA.interactables.forEachMatch(fA,yA);var RA=Ln(P,L,Z,uA,CA,tA,sA);if(RA.action&&!RA.interactable.options[RA.action.name].manualStart)return RA;fA=T(fA)}return{action:null,interactable:null,element:null}}function An(P,L,Z){var tA=L.action,sA=L.interactable,uA=L.element;tA=tA||{name:null},P.interactable=sA,P.element=uA,dt(P.prepared,tA),P.rect=sA&&tA.name?sA.getRect(uA):null,en(P,Z),Z.fire("autoStart:prepared",{interaction:P})}function dn(P,L,Z,tA){var sA=P.options,uA=sA[Z.name].max,CA=sA[Z.name].maxPerElement,fA=tA.autoStart.maxInteractions,yA=0,RA=0,vA=0;if(!(uA&&CA&&fA))return!1;for(var TA=0,VA=tA.interactions.list;TA<VA.length;TA++){var ue=VA[TA],le=ue.prepared.name;if(ue.interacting()&&(++yA>=fA||ue.interactable===P&&((RA+=le===Z.name?1:0)>=uA||ue.element===L&&(vA++,le===Z.name&&vA>=CA))))return!1}return fA>0}function yn(P,L){return u.number(P)?(L.autoStart.maxInteractions=P,this):L.autoStart.maxInteractions}function Nt(P,L,Z){var tA=Z.autoStart.cursorElement;tA&&tA!==P&&(tA.style.cursor=""),P.ownerDocument.documentElement.style.cursor=L,P.style.cursor=L,Z.autoStart.cursorElement=L?P:null}function en(P,L){var Z=P.interactable,tA=P.element,sA=P.prepared;if(P.pointerType==="mouse"&&Z&&Z.options.styleCursor){var uA="";if(sA.name){var CA=Z.options[sA.name].cursorChecker;uA=u.func(CA)?CA(sA,Z,tA,P._interacting):L.actions.map[sA.name].getCursor(sA)}Nt(P.element,uA||"",L)}else L.autoStart.cursorElement&&Nt(L.autoStart.cursorElement,"",L)}var Jn={id:"auto-start/base",before:["actions"],install:function(P){var L=P.interactStatic,Z=P.defaults;P.usePlugin(ft),Z.base.actionChecker=null,Z.base.styleCursor=!0,j(Z.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),L.maxInteractions=function(tA){return yn(tA,P)},P.autoStart={maxInteractions:1/0,withinInteractionLimit:dn,cursorElement:null}},listeners:{"interactions:down":function(P,L){var Z=P.interaction,tA=P.pointer,sA=P.event,uA=P.eventTarget;Z.interacting()||An(Z,Vt(Z,tA,sA,uA,L),L)},"interactions:move":function(P,L){(function(Z,tA){var sA=Z.interaction,uA=Z.pointer,CA=Z.event,fA=Z.eventTarget;sA.pointerType!=="mouse"||sA.pointerIsDown||sA.interacting()||An(sA,Vt(sA,uA,CA,fA,tA),tA)})(P,L),function(Z,tA){var sA=Z.interaction;if(sA.pointerIsDown&&!sA.interacting()&&sA.pointerWasMoved&&sA.prepared.name){tA.fire("autoStart:before-start",Z);var uA=sA.interactable,CA=sA.prepared.name;CA&&uA&&(uA.options[CA].manualStart||!dn(uA,sA.element,sA.prepared,tA)?sA.stop():(sA.start(sA.prepared,uA,sA.element),en(sA,tA)))}}(P,L)},"interactions:stop":function(P,L){var Z=P.interaction,tA=Z.interactable;tA&&tA.options.styleCursor&&Nt(Z.element,"",L)}},maxInteractions:yn,withinInteractionLimit:dn,validateAction:nt},tn=Jn,Ei={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(P,L){var Z=P.interaction,tA=P.eventTarget,sA=P.dx,uA=P.dy;if(Z.prepared.name==="drag"){var CA=Math.abs(sA),fA=Math.abs(uA),yA=Z.interactable.options.drag,RA=yA.startAxis,vA=CA>fA?"x":CA<fA?"y":"xy";if(Z.prepared.axis=yA.lockAxis==="start"?vA[0]:yA.lockAxis,vA!=="xy"&&RA!=="xy"&&RA!==vA){Z.prepared.name=null;for(var TA=tA,VA=function(le){if(le!==Z.interactable){var Be=Z.interactable.options.drag;if(!Be.manualStart&&le.testIgnoreAllow(Be,TA,tA)){var ve=le.getAction(Z.downPointer,Z.downEvent,Z,TA);if(ve&&ve.name==="drag"&&function(be,_A){if(!_A)return!1;var $A=_A.options.drag.startAxis;return be==="xy"||$A==="xy"||$A===be}(vA,le)&&tn.validateAction(ve,le,TA,tA,L))return le}}};u.element(TA);){var ue=L.interactables.forEachMatch(TA,VA);if(ue){Z.prepared.name="drag",Z.interactable=ue,Z.element=TA;break}TA=T(TA)}}}}}};function Qi(P){var L=P.prepared&&P.prepared.name;if(!L)return null;var Z=P.interactable.options;return Z[L].hold||Z[L].delay}var go={id:"auto-start/hold",install:function(P){var L=P.defaults;P.usePlugin(tn),L.perAction.hold=0,L.perAction.delay=0},listeners:{"interactions:new":function(P){P.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(P){var L=P.interaction,Z=Qi(L);Z>0&&(L.autoStartHoldTimer=setTimeout(function(){L.start(L.prepared,L.interactable,L.element)},Z))},"interactions:move":function(P){var L=P.interaction,Z=P.duplicate;L.autoStartHoldTimer&&L.pointerWasMoved&&!Z&&(clearTimeout(L.autoStartHoldTimer),L.autoStartHoldTimer=null)},"autoStart:before-start":function(P){var L=P.interaction;Qi(L)>0&&(L.prepared.name=null)}},getHoldDuration:Qi},fi=go,oi={id:"auto-start",install:function(P){P.usePlugin(tn),P.usePlugin(fi),P.usePlugin(Ei)}},Ki=function(P){return/^(always|never|auto)$/.test(P)?(this.options.preventDefault=P,this):u.bool(P)?(this.options.preventDefault=P?"always":"never",this):this.options.preventDefault};function uo(P){var L=P.interaction,Z=P.event;L.interactable&&L.interactable.checkAndPreventDefault(Z)}var ri={id:"core/interactablePreventDefault",install:function(P){var L=P.Interactable;L.prototype.preventDefault=Ki,L.prototype.checkAndPreventDefault=function(Z){return function(tA,sA,uA){var CA=tA.options.preventDefault;if(CA!=="never")if(CA!=="always"){if(sA.events.supportsPassive&&/^touch(start|move)$/.test(uA.type)){var fA=k(uA.target).document,yA=sA.getDocOptions(fA);if(!yA||!yA.events||yA.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(uA.type)||u.element(uA.target)&&Y(uA.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||uA.preventDefault()}else uA.preventDefault()}(this,P,Z)},P.interactions.docEvents.push({type:"dragstart",listener:function(Z){for(var tA=0,sA=P.interactions.list;tA<sA.length;tA++){var uA=sA[tA];if(uA.element&&(uA.element===Z.target||M(uA.element,Z.target)))return void uA.interactable.checkAndPreventDefault(Z)}}})},listeners:["down","move","up","cancel"].reduce(function(P,L){return P["interactions:".concat(L)]=uo,P},{})};function Dn(P,L){if(L.phaselessTypes[P])return!0;for(var Z in L.map)if(P.indexOf(Z)===0&&P.substr(Z.length)in L.phases)return!0;return!1}function Ti(P){var L={};for(var Z in P){var tA=P[Z];u.plainObject(tA)?L[Z]=Ti(tA):u.array(tA)?L[Z]=he(tA):L[Z]=tA}return L}var Zo=function(){function P(L){Q(this,P),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=L,this.result=ho(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return D(P,[{key:"start",value:function(L,Z){var tA,sA,uA=L.phase,CA=this.interaction,fA=function(RA){var vA=RA.interactable.options[RA.prepared.name],TA=vA.modifiers;return TA&&TA.length?TA:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(VA){var ue=vA[VA];return ue&&ue.enabled&&{options:ue,methods:ue._methods}}).filter(function(VA){return!!VA})}(CA);this.prepareStates(fA),this.startEdges=j({},CA.edges),this.edges=j({},this.startEdges),this.startOffset=(tA=CA.rect,sA=Z,tA?{left:sA.x-tA.left,top:sA.y-tA.top,right:tA.right-sA.x,bottom:tA.bottom-sA.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var yA=this.fillArg({phase:uA,pageCoords:Z,preEnd:!1});return this.result=ho(),this.startAll(yA),this.result=this.setAll(yA)}},{key:"fillArg",value:function(L){var Z=this.interaction;return L.interaction=Z,L.interactable=Z.interactable,L.element=Z.element,L.rect||(L.rect=Z.rect),L.edges||(L.edges=this.startEdges),L.startOffset=this.startOffset,L}},{key:"startAll",value:function(L){for(var Z=0,tA=this.states;Z<tA.length;Z++){var sA=tA[Z];sA.methods.start&&(L.state=sA,sA.methods.start(L))}}},{key:"setAll",value:function(L){var Z=L.phase,tA=L.preEnd,sA=L.skipModifiers,uA=L.rect,CA=L.edges;L.coords=j({},L.pageCoords),L.rect=j({},uA),L.edges=j({},CA);for(var fA=sA?this.states.slice(sA):this.states,yA=ho(L.coords,L.rect),RA=0;RA<fA.length;RA++){var vA,TA=fA[RA],VA=TA.options,ue=j({},L.coords),le=null;(vA=TA.methods)!=null&&vA.set&&this.shouldDo(VA,tA,Z)&&(L.state=TA,le=TA.methods.set(L),gA(L.edges,L.rect,{x:L.coords.x-ue.x,y:L.coords.y-ue.y})),yA.eventProps.push(le)}j(this.edges,L.edges),yA.delta.x=L.coords.x-L.pageCoords.x,yA.delta.y=L.coords.y-L.pageCoords.y,yA.rectDelta.left=L.rect.left-uA.left,yA.rectDelta.right=L.rect.right-uA.right,yA.rectDelta.top=L.rect.top-uA.top,yA.rectDelta.bottom=L.rect.bottom-uA.bottom;var Be=this.result.coords,ve=this.result.rect;if(Be&&ve){var be=yA.rect.left!==ve.left||yA.rect.right!==ve.right||yA.rect.top!==ve.top||yA.rect.bottom!==ve.bottom;yA.changed=be||Be.x!==yA.coords.x||Be.y!==yA.coords.y}return yA}},{key:"applyToInteraction",value:function(L){var Z=this.interaction,tA=L.phase,sA=Z.coords.cur,uA=Z.coords.start,CA=this.result,fA=this.startDelta,yA=CA.delta;tA==="start"&&j(this.startDelta,CA.delta);for(var RA=0,vA=[[uA,fA],[sA,yA]];RA<vA.length;RA++){var TA=vA[RA],VA=TA[0],ue=TA[1];VA.page.x+=ue.x,VA.page.y+=ue.y,VA.client.x+=ue.x,VA.client.y+=ue.y}var le=this.result.rectDelta,Be=L.rect||Z.rect;Be.left+=le.left,Be.right+=le.right,Be.top+=le.top,Be.bottom+=le.bottom,Be.width=Be.right-Be.left,Be.height=Be.bottom-Be.top}},{key:"setAndApply",value:function(L){var Z=this.interaction,tA=L.phase,sA=L.preEnd,uA=L.skipModifiers,CA=this.setAll(this.fillArg({preEnd:sA,phase:tA,pageCoords:L.modifiedCoords||Z.coords.cur.page}));if(this.result=CA,!CA.changed&&(!uA||uA<this.states.length)&&Z.interacting())return!1;if(L.modifiedCoords){var fA=Z.coords.cur.page,yA={x:L.modifiedCoords.x-fA.x,y:L.modifiedCoords.y-fA.y};CA.coords.x+=yA.x,CA.coords.y+=yA.y,CA.delta.x+=yA.x,CA.delta.y+=yA.y}this.applyToInteraction(L)}},{key:"beforeEnd",value:function(L){var Z=L.interaction,tA=L.event,sA=this.states;if(sA&&sA.length){for(var uA=!1,CA=0;CA<sA.length;CA++){var fA=sA[CA];L.state=fA;var yA=fA.options,RA=fA.methods,vA=RA.beforeEnd&&RA.beforeEnd(L);if(vA)return this.endResult=vA,!1;uA=uA||!uA&&this.shouldDo(yA,!0,L.phase,!0)}uA&&Z.move({event:tA,preEnd:!0})}}},{key:"stop",value:function(L){var Z=L.interaction;if(this.states&&this.states.length){var tA=j({states:this.states,interactable:Z.interactable,element:Z.element,rect:null},L);this.fillArg(tA);for(var sA=0,uA=this.states;sA<uA.length;sA++){var CA=uA[sA];tA.state=CA,CA.methods.stop&&CA.methods.stop(tA)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(L){this.states=[];for(var Z=0;Z<L.length;Z++){var tA=L[Z],sA=tA.options,uA=tA.methods,CA=tA.name;this.states.push({options:sA,methods:uA,index:Z,name:CA})}return this.states}},{key:"restoreInteractionCoords",value:function(L){var Z=L.interaction,tA=Z.coords,sA=Z.rect,uA=Z.modification;if(uA.result){for(var CA=uA.startDelta,fA=uA.result,yA=fA.delta,RA=fA.rectDelta,vA=0,TA=[[tA.start,CA],[tA.cur,yA]];vA<TA.length;vA++){var VA=TA[vA],ue=VA[0],le=VA[1];ue.page.x-=le.x,ue.page.y-=le.y,ue.client.x-=le.x,ue.client.y-=le.y}sA.left-=RA.left,sA.right-=RA.right,sA.top-=RA.top,sA.bottom-=RA.bottom}}},{key:"shouldDo",value:function(L,Z,tA,sA){return!(!L||L.enabled===!1||sA&&!L.endOnly||L.endOnly&&!Z||tA==="start"&&!L.setStart)}},{key:"copyFrom",value:function(L){this.startOffset=L.startOffset,this.startDelta=L.startDelta,this.startEdges=L.startEdges,this.edges=L.edges,this.states=L.states.map(function(Z){return Ti(Z)}),this.result=ho(j({},L.result.coords),j({},L.result.rect))}},{key:"destroy",value:function(){for(var L in this)this[L]=null}}]),P}();function ho(P,L){return{rect:L,coords:P,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Gn(P,L){var Z=P.defaults,tA={start:P.start,set:P.set,beforeEnd:P.beforeEnd,stop:P.stop},sA=function(uA){var CA=uA||{};for(var fA in CA.enabled=CA.enabled!==!1,Z)fA in CA||(CA[fA]=Z[fA]);var yA={options:CA,methods:tA,name:L,enable:function(){return CA.enabled=!0,yA},disable:function(){return CA.enabled=!1,yA}};return yA};return L&&typeof L=="string"&&(sA._defaults=Z,sA._methods=tA),sA}function po(P){var L=P.iEvent,Z=P.interaction.modification.result;Z&&(L.modifiers=Z.eventProps)}var bs={id:"modifiers/base",before:["actions"],install:function(P){P.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(P){var L=P.interaction;L.modification=new Zo(L)},"interactions:before-action-start":function(P){var L=P.interaction,Z=P.interaction.modification;Z.start(P,L.coords.start.page),L.edges=Z.edges,Z.applyToInteraction(P)},"interactions:before-action-move":function(P){var L=P.interaction,Z=L.modification,tA=Z.setAndApply(P);return L.edges=Z.edges,tA},"interactions:before-action-end":function(P){var L=P.interaction,Z=L.modification,tA=Z.beforeEnd(P);return L.edges=Z.startEdges,tA},"interactions:action-start":po,"interactions:action-move":po,"interactions:action-end":po,"interactions:after-action-start":function(P){return P.interaction.modification.restoreInteractionCoords(P)},"interactions:after-action-move":function(P){return P.interaction.modification.restoreInteractionCoords(P)},"interactions:stop":function(P){return P.interaction.modification.stop(P)}}},Wo=bs,jo={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},ai=function(P){f(Z,P);var L=$(Z);function Z(tA,sA,uA,CA,fA,yA,RA){var vA;Q(this,Z),(vA=L.call(this,tA)).relatedTarget=null,vA.screenX=void 0,vA.screenY=void 0,vA.button=void 0,vA.buttons=void 0,vA.ctrlKey=void 0,vA.shiftKey=void 0,vA.altKey=void 0,vA.metaKey=void 0,vA.page=void 0,vA.client=void 0,vA.delta=void 0,vA.rect=void 0,vA.x0=void 0,vA.y0=void 0,vA.t0=void 0,vA.dt=void 0,vA.duration=void 0,vA.clientX0=void 0,vA.clientY0=void 0,vA.velocity=void 0,vA.speed=void 0,vA.swipe=void 0,vA.axes=void 0,vA.preEnd=void 0,fA=fA||tA.element;var TA=tA.interactable,VA=(TA&&TA.options||jo).deltaSource,ue=wA(TA,fA,uA),le=CA==="start",Be=CA==="end",ve=le?G(vA):tA.prevEvent,be=le?tA.coords.start:Be?{page:ve.page,client:ve.client,timeStamp:tA.coords.cur.timeStamp}:tA.coords.cur;return vA.page=j({},be.page),vA.client=j({},be.client),vA.rect=j({},tA.rect),vA.timeStamp=be.timeStamp,Be||(vA.page.x-=ue.x,vA.page.y-=ue.y,vA.client.x-=ue.x,vA.client.y-=ue.y),vA.ctrlKey=sA.ctrlKey,vA.altKey=sA.altKey,vA.shiftKey=sA.shiftKey,vA.metaKey=sA.metaKey,vA.button=sA.button,vA.buttons=sA.buttons,vA.target=fA,vA.currentTarget=fA,vA.preEnd=yA,vA.type=RA||uA+(CA||""),vA.interactable=TA,vA.t0=le?tA.pointers[tA.pointers.length-1].downTime:ve.t0,vA.x0=tA.coords.start.page.x-ue.x,vA.y0=tA.coords.start.page.y-ue.y,vA.clientX0=tA.coords.start.client.x-ue.x,vA.clientY0=tA.coords.start.client.y-ue.y,vA.delta=le||Be?{x:0,y:0}:{x:vA[VA].x-ve[VA].x,y:vA[VA].y-ve[VA].y},vA.dt=tA.coords.delta.timeStamp,vA.duration=vA.timeStamp-vA.t0,vA.velocity=j({},tA.coords.velocity[VA]),vA.speed=cA(vA.velocity.x,vA.velocity.y),vA.swipe=Be||CA==="inertiastart"?vA.getSwipe():null,vA}return D(Z,[{key:"getSwipe",value:function(){var tA=this._interaction;if(tA.prevEvent.speed<600||this.timeStamp-tA.prevEvent.timeStamp>150)return null;var sA=180*Math.atan2(tA.prevEvent.velocityY,tA.prevEvent.velocityX)/Math.PI;sA<0&&(sA+=360);var uA=112.5<=sA&&sA<247.5,CA=202.5<=sA&&sA<337.5;return{up:CA,down:!CA&&22.5<=sA&&sA<157.5,left:uA,right:!uA&&(292.5<=sA||sA<67.5),angle:sA,speed:tA.prevEvent.speed,velocity:{x:tA.prevEvent.velocityX,y:tA.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),Z}(SA);Object.defineProperties(ai.prototype,{pageX:{get:function(){return this.page.x},set:function(P){this.page.x=P}},pageY:{get:function(){return this.page.y},set:function(P){this.page.y=P}},clientX:{get:function(){return this.client.x},set:function(P){this.client.x=P}},clientY:{get:function(){return this.client.y},set:function(P){this.client.y=P}},dx:{get:function(){return this.delta.x},set:function(P){this.delta.x=P}},dy:{get:function(){return this.delta.y},set:function(P){this.delta.y=P}},velocityX:{get:function(){return this.velocity.x},set:function(P){this.velocity.x=P}},velocityY:{get:function(){return this.velocity.y},set:function(P){this.velocity.y=P}}});var ys=D(function P(L,Z,tA,sA,uA){Q(this,P),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=L,this.pointer=Z,this.event=tA,this.downTime=sA,this.downTarget=uA}),Ds=function(P){return P.interactable="",P.element="",P.prepared="",P.pointerIsDown="",P.pointerWasMoved="",P._proxy="",P}({}),vs=function(P){return P.start="",P.move="",P.end="",P.stop="",P.interacting="",P}({}),ks=0,_s=function(){function P(L){var Z=this,tA=L.pointerType,sA=L.scopeFire;Q(this,P),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=et(function(vA){this.move(vA)},"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=sA,this.pointerType=tA;var uA=this;this._proxy={};var CA=function(vA){Object.defineProperty(Z._proxy,vA,{get:function(){return uA[vA]}})};for(var fA in Ds)CA(fA);var yA=function(vA){Object.defineProperty(Z._proxy,vA,{value:function(){return uA[vA].apply(uA,arguments)}})};for(var RA in vs)yA(RA);this._scopeFire("interactions:new",{interaction:this})}return D(P,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(L,Z,tA){var sA=this.updatePointer(L,Z,tA,!0),uA=this.pointers[sA];this._scopeFire("interactions:down",{pointer:L,event:Z,eventTarget:tA,pointerIndex:sA,pointerInfo:uA,type:"down",interaction:this})}},{key:"start",value:function(L,Z,tA){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(L.name==="gesture"?2:1)||!Z.options[L.name].enabled)&&(dt(this.prepared,L),this.interactable=Z,this.element=tA,this.rect=Z.getRect(tA),this.edges=this.prepared.edges?j({},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(L,Z,tA){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(L,Z,tA,!1);var sA,uA,CA=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&&(sA=this.coords.cur.client.x-this.coords.start.client.x,uA=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=cA(sA,uA)>this.pointerMoveTolerance);var fA,yA,RA,vA=this.getPointerIndex(L),TA={pointer:L,pointerIndex:vA,pointerInfo:this.pointers[vA],event:Z,type:"move",eventTarget:tA,dx:sA,dy:uA,duplicate:CA,interaction:this};CA||(fA=this.coords.velocity,yA=this.coords.delta,RA=Math.max(yA.timeStamp/1e3,.001),fA.page.x=yA.page.x/RA,fA.page.y=yA.page.y/RA,fA.client.x=yA.client.x/RA,fA.client.y=yA.client.y/RA,fA.timeStamp=RA),this._scopeFire("interactions:move",TA),CA||this.simulation||(this.interacting()&&(TA.type=null,this.move(TA)),this.pointerWasMoved&&q(this.coords.prev,this.coords.cur))}},{key:"move",value:function(L){L&&L.event||nA(this.coords.delta),(L=j({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},L||{})).phase="move",this._doPhase(L)}},{key:"pointerUp",value:function(L,Z,tA,sA){var uA=this.getPointerIndex(L);uA===-1&&(uA=this.updatePointer(L,Z,tA,!1));var CA=/cancel$/i.test(Z.type)?"cancel":"up";this._scopeFire("interactions:".concat(CA),{pointer:L,pointerIndex:uA,pointerInfo:this.pointers[uA],event:Z,eventTarget:tA,type:CA,curEventTarget:sA,interaction:this}),this.simulation||this.end(Z),this.removePointer(L,Z)}},{key:"documentBlur",value:function(L){this.end(L),this._scopeFire("interactions:blur",{event:L,type:"blur",interaction:this})}},{key:"end",value:function(L){var Z;this._ending=!0,L=L||this._latestPointer.event,this.interacting()&&(Z=this._doPhase({event:L,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(L){var Z=zA(L);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:KA(this.pointers,function(tA){return tA.id===Z})}},{key:"getPointerInfo",value:function(L){return this.pointers[this.getPointerIndex(L)]}},{key:"updatePointer",value:function(L,Z,tA,sA){var uA,CA,fA,yA=zA(L),RA=this.getPointerIndex(L),vA=this.pointers[RA];return sA=sA!==!1&&(sA||/(down|start)$/i.test(Z.type)),vA?vA.pointer=L:(vA=new ys(yA,L,Z,null,null),RA=this.pointers.length,this.pointers.push(vA)),qA(this.coords.cur,this.pointers.map(function(TA){return TA.pointer}),this._now()),uA=this.coords.delta,CA=this.coords.prev,fA=this.coords.cur,uA.page.x=fA.page.x-CA.page.x,uA.page.y=fA.page.y-CA.page.y,uA.client.x=fA.client.x-CA.client.x,uA.client.y=fA.client.y-CA.client.y,uA.timeStamp=fA.timeStamp-CA.timeStamp,sA&&(this.pointerIsDown=!0,vA.downTime=this.coords.cur.timeStamp,vA.downTarget=tA,z(this.downPointer,L),this.interacting()||(q(this.coords.start,this.coords.cur),q(this.coords.prev,this.coords.cur),this.downEvent=Z,this.pointerWasMoved=!1)),this._updateLatestPointer(L,Z,tA),this._scopeFire("interactions:update-pointer",{pointer:L,event:Z,eventTarget:tA,down:sA,pointerInfo:vA,pointerIndex:RA,interaction:this}),RA}},{key:"removePointer",value:function(L,Z){var tA=this.getPointerIndex(L);if(tA!==-1){var sA=this.pointers[tA];this._scopeFire("interactions:remove-pointer",{pointer:L,event:Z,eventTarget:null,pointerIndex:tA,pointerInfo:sA,interaction:this}),this.pointers.splice(tA,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(L,Z,tA){this._latestPointer.pointer=L,this._latestPointer.event=Z,this._latestPointer.eventTarget=tA}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(L,Z,tA,sA){return new ai(this,L,this.prepared.name,Z,this.element,tA,sA)}},{key:"_fireEvent",value:function(L){var Z;(Z=this.interactable)==null||Z.fire(L),(!this.prevEvent||L.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=L)}},{key:"_doPhase",value:function(L){var Z=L.event,tA=L.phase,sA=L.preEnd,uA=L.type,CA=this.rect;if(CA&&tA==="move"&&(gA(this.edges,CA,this.coords.delta[this.interactable.options.deltaSource]),CA.width=CA.right-CA.left,CA.height=CA.bottom-CA.top),this._scopeFire("interactions:before-action-".concat(tA),L)===!1)return!1;var fA=L.iEvent=this._createPreparedEvent(Z,tA,sA,uA);return this._scopeFire("interactions:action-".concat(tA),L),tA==="start"&&(this.prevEvent=fA),this._fireEvent(fA),this._scopeFire("interactions:after-action-".concat(tA),L),!0}},{key:"_now",value:function(){return Date.now()}}]),P}();function $r(P){zr(P.interaction)}function zr(P){if(!function(Z){return!(!Z.offset.pending.x&&!Z.offset.pending.y)}(P))return!1;var L=P.offset.pending;return Jr(P.coords.cur,L),Jr(P.coords.delta,L),gA(P.edges,P.rect,L),L.x=0,L.y=0,!0}function sg(P){var L=P.x,Z=P.y;this.offset.pending.x+=L,this.offset.pending.y+=Z,this.offset.total.x+=L,this.offset.total.y+=Z}function Jr(P,L){var Z=P.page,tA=P.client,sA=L.x,uA=L.y;Z.x+=sA,Z.y+=uA,tA.x+=sA,tA.y+=uA}vs.offsetBy="";var lg={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(P){P.Interaction.prototype.offsetBy=sg},listeners:{"interactions:new":function(P){P.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(P){return function(L){L.pointerIsDown&&(Jr(L.coords.cur,L.offset.total),L.offset.pending.x=0,L.offset.pending.y=0)}(P.interaction)},"interactions:before-action-start":$r,"interactions:before-action-move":$r,"interactions:before-action-end":function(P){var L=P.interaction;if(zr(L))return L.move({offset:!0}),L.end(),!1},"interactions:stop":function(P){var L=P.interaction;L.offset.total.x=0,L.offset.total.y=0,L.offset.pending.x=0,L.offset.pending.y=0}}},Zr=lg,cg=function(){function P(L){Q(this,P),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=L}return D(P,[{key:"start",value:function(L){var Z=this.interaction,tA=qo(Z);if(!tA||!tA.enabled)return!1;var sA=Z.coords.velocity.client,uA=cA(sA.x,sA.y),CA=this.modification||(this.modification=new Zo(Z));if(CA.copyFrom(Z.modification),this.t0=Z._now(),this.allowResume=tA.allowResume,this.v0=uA,this.currentOffset={x:0,y:0},this.startCoords=Z.coords.cur.page,this.modifierArg=CA.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-Z.coords.cur.timeStamp<50&&uA>tA.minSpeed&&uA>tA.endSpeed)this.startInertia();else{if(CA.result=CA.setAll(this.modifierArg),!CA.result.changed)return!1;this.startSmoothEnd()}return Z.modification.result.rect=null,Z.offsetBy(this.targetOffset),Z._doPhase({interaction:Z,event:L,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 L=this,Z=this.interaction.coords.velocity.client,tA=qo(this.interaction),sA=tA.resistance,uA=-Math.log(tA.endSpeed/this.v0)/sA;this.targetOffset={x:(Z.x-uA)/sA,y:(Z.y-uA)/sA},this.te=uA,this.lambda_v0=sA/this.v0,this.one_ve_v0=1-tA.endSpeed/this.v0;var CA=this.modification,fA=this.modifierArg;fA.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},CA.result=CA.setAll(fA),CA.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+CA.result.delta.x,y:this.targetOffset.y+CA.result.delta.y}),this.onNextFrame(function(){return L.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var L=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 L.smoothEndTick()})}},{key:"onNextFrame",value:function(L){var Z=this;this.timeout=ye.request(function(){Z.active&&L()})}},{key:"inertiaTick",value:function(){var L,Z,tA,sA,uA,CA,fA,yA=this,RA=this.interaction,vA=qo(RA).resistance,TA=(RA._now()-this.t0)/1e3;if(TA<this.te){var VA,ue=1-(Math.exp(-vA*TA)-this.lambda_v0)/this.one_ve_v0;this.isModified?(L=0,Z=0,tA=this.targetOffset.x,sA=this.targetOffset.y,uA=this.modifiedOffset.x,CA=this.modifiedOffset.y,VA={x:Ms(fA=ue,L,tA,uA),y:Ms(fA,Z,sA,CA)}):VA={x:this.targetOffset.x*ue,y:this.targetOffset.y*ue};var le={x:VA.x-this.currentOffset.x,y:VA.y-this.currentOffset.y};this.currentOffset.x+=le.x,this.currentOffset.y+=le.y,RA.offsetBy(le),RA.move(),this.onNextFrame(function(){return yA.inertiaTick()})}else RA.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var L=this,Z=this.interaction,tA=Z._now()-this.t0,sA=qo(Z).smoothEndDuration;if(tA<sA){var uA={x:Xo(tA,0,this.targetOffset.x,sA),y:Xo(tA,0,this.targetOffset.y,sA)},CA={x:uA.x-this.currentOffset.x,y:uA.y-this.currentOffset.y};this.currentOffset.x+=CA.x,this.currentOffset.y+=CA.y,Z.offsetBy(CA),Z.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return L.smoothEndTick()})}else Z.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(L){var Z=L.pointer,tA=L.event,sA=L.eventTarget,uA=this.interaction;uA.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),uA.updatePointer(Z,tA,sA,!0),uA._doPhase({interaction:uA,event:tA,phase:"resume"}),q(uA.coords.prev,uA.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,ye.cancel(this.timeout)}}]),P}();function qo(P){var L=P.interactable,Z=P.prepared;return L&&L.options&&Z.name&&L.options[Z.name].inertia}var gg={id:"inertia",before:["modifiers","actions"],install:function(P){var L=P.defaults;P.usePlugin(Zr),P.usePlugin(Wo),P.actions.phases.inertiastart=!0,P.actions.phases.resume=!0,L.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(P){var L=P.interaction;L.inertia=new cg(L)},"interactions:before-action-end":function(P){var L=P.interaction,Z=P.event;return(!L._interacting||L.simulation||!L.inertia.start(Z))&&null},"interactions:down":function(P){var L=P.interaction,Z=P.eventTarget,tA=L.inertia;if(tA.active)for(var sA=Z;u.element(sA);){if(sA===L.element){tA.resume(P);break}sA=T(sA)}},"interactions:stop":function(P){var L=P.interaction.inertia;L.active&&L.stop()},"interactions:before-action-resume":function(P){var L=P.interaction.modification;L.stop(P),L.start(P,P.interaction.coords.cur.page),L.applyToInteraction(P)},"interactions:before-action-inertiastart":function(P){return P.interaction.modification.setAndApply(P)},"interactions:action-resume":po,"interactions:action-inertiastart":po,"interactions:after-action-inertiastart":function(P){return P.interaction.modification.restoreInteractionCoords(P)},"interactions:after-action-resume":function(P){return P.interaction.modification.restoreInteractionCoords(P)}}};function Ms(P,L,Z,tA){var sA=1-P;return sA*sA*L+2*sA*P*Z+P*P*tA}function Xo(P,L,Z,tA){return-Z*(P/=tA)*(P-2)+L}var dg=gg;function Ss(P,L){for(var Z=0;Z<L.length;Z++){var tA=L[Z];if(P.immediatePropagationStopped)break;tA(P)}}var xs=function(){function P(L){Q(this,P),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=j({},L||{})}return D(P,[{key:"fire",value:function(L){var Z,tA=this.global;(Z=this.types[L.type])&&Ss(L,Z),!L.propagationStopped&&tA&&(Z=tA[L.type])&&Ss(L,Z)}},{key:"on",value:function(L,Z){var tA=X(L,Z);for(L in tA)this.types[L]=WA(this.types[L]||[],tA[L])}},{key:"off",value:function(L,Z){var tA=X(L,Z);for(L in tA){var sA=this.types[L];if(sA&&sA.length)for(var uA=0,CA=tA[L];uA<CA.length;uA++){var fA=CA[uA],yA=sA.indexOf(fA);yA!==-1&&sA.splice(yA,1)}}}},{key:"getRect",value:function(L){return null}}]),P}(),ug=function(){function P(L){Q(this,P),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=L,z(this,L)}return D(P,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),P}();function Co(P){return u.object(P)?{capture:!!P.capture,passive:!!P.passive}:{capture:!!P,passive:!1}}function at(P,L){return P===L||(typeof P=="boolean"?!!L.capture===P&&!L.passive:!!P.capture==!!L.capture&&!!P.passive==!!L.passive)}var gt={id:"events",install:function(P){var L,Z=[],tA={},sA=[],uA={add:CA,remove:fA,addDelegate:function(vA,TA,VA,ue,le){var Be=Co(le);if(!tA[VA]){tA[VA]=[];for(var ve=0;ve<sA.length;ve++){var be=sA[ve];CA(be,VA,yA),CA(be,VA,RA,!0)}}var _A=tA[VA],$A=JA(_A,function(UA){return UA.selector===vA&&UA.context===TA});$A||($A={selector:vA,context:TA,listeners:[]},_A.push($A)),$A.listeners.push({func:ue,options:Be})},removeDelegate:function(vA,TA,VA,ue,le){var Be,ve=Co(le),be=tA[VA],_A=!1;if(be)for(Be=be.length-1;Be>=0;Be--){var $A=be[Be];if($A.selector===vA&&$A.context===TA){for(var UA=$A.listeners,te=UA.length-1;te>=0;te--){var Ee=UA[te];if(Ee.func===ue&&at(Ee.options,ve)){UA.splice(te,1),UA.length||(be.splice(Be,1),fA(TA,VA,yA),fA(TA,VA,RA,!0)),_A=!0;break}}if(_A)break}}},delegateListener:yA,delegateUseCapture:RA,delegatedEvents:tA,documents:sA,targets:Z,supportsOptions:!1,supportsPassive:!1};function CA(vA,TA,VA,ue){if(vA.addEventListener){var le=Co(ue),Be=JA(Z,function(ve){return ve.eventTarget===vA});Be||(Be={eventTarget:vA,events:{}},Z.push(Be)),Be.events[TA]||(Be.events[TA]=[]),JA(Be.events[TA],function(ve){return ve.func===VA&&at(ve.options,le)})||(vA.addEventListener(TA,VA,uA.supportsOptions?le:le.capture),Be.events[TA].push({func:VA,options:le}))}}function fA(vA,TA,VA,ue){if(vA.addEventListener&&vA.removeEventListener){var le=KA(Z,function(He){return He.eventTarget===vA}),Be=Z[le];if(Be&&Be.events)if(TA!=="all"){var ve=!1,be=Be.events[TA];if(be){if(VA==="all"){for(var _A=be.length-1;_A>=0;_A--){var $A=be[_A];fA(vA,TA,$A.func,$A.options)}return}for(var UA=Co(ue),te=0;te<be.length;te++){var Ee=be[te];if(Ee.func===VA&&at(Ee.options,UA)){vA.removeEventListener(TA,VA,uA.supportsOptions?UA:UA.capture),be.splice(te,1),be.length===0&&(delete Be.events[TA],ve=!0);break}}}ve&&!Object.keys(Be.events).length&&Z.splice(le,1)}else for(TA in Be.events)Be.events.hasOwnProperty(TA)&&fA(vA,TA,"all")}}function yA(vA,TA){for(var VA=Co(TA),ue=new ug(vA),le=tA[vA.type],Be=OA(vA)[0],ve=Be;u.element(ve);){for(var be=0;be<le.length;be++){var _A=le[be],$A=_A.selector,UA=_A.context;if(Y(ve,$A)&&M(UA,Be)&&M(UA,ve)){var te=_A.listeners;ue.currentTarget=ve;for(var Ee=0;Ee<te.length;Ee++){var He=te[Ee];at(He.options,VA)&&He.func(ue)}}}ve=T(ve)}}function RA(vA){return yA(vA,!0)}return(L=P.document)==null||L.createElement("div").addEventListener("test",null,{get capture(){return uA.supportsOptions=!0},get passive(){return uA.supportsPassive=!0}}),P.events=uA,uA}},Wr={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(P){for(var L=0,Z=Wr.methodOrder;L<Z.length;L++){var tA=Z[L],sA=Wr[tA](P);if(sA)return sA}return null},simulationResume:function(P){var L=P.pointerType,Z=P.eventType,tA=P.eventTarget,sA=P.scope;if(!/down|start/i.test(Z))return null;for(var uA=0,CA=sA.interactions.list;uA<CA.length;uA++){var fA=CA[uA],yA=tA;if(fA.simulation&&fA.simulation.allowResume&&fA.pointerType===L)for(;yA;){if(yA===fA.element)return fA;yA=T(yA)}}return null},mouseOrPen:function(P){var L,Z=P.pointerId,tA=P.pointerType,sA=P.eventType,uA=P.scope;if(tA!=="mouse"&&tA!=="pen")return null;for(var CA=0,fA=uA.interactions.list;CA<fA.length;CA++){var yA=fA[CA];if(yA.pointerType===tA){if(yA.simulation&&!Ns(yA,Z))continue;if(yA.interacting())return yA;L||(L=yA)}}if(L)return L;for(var RA=0,vA=uA.interactions.list;RA<vA.length;RA++){var TA=vA[RA];if(!(TA.pointerType!==tA||/down/i.test(sA)&&TA.simulation))return TA}return null},hasPointer:function(P){for(var L=P.pointerId,Z=0,tA=P.scope.interactions.list;Z<tA.length;Z++){var sA=tA[Z];if(Ns(sA,L))return sA}return null},idle:function(P){for(var L=P.pointerType,Z=0,tA=P.scope.interactions.list;Z<tA.length;Z++){var sA=tA[Z];if(sA.pointers.length===1){var uA=sA.interactable;if(uA&&(!uA.options.gesture||!uA.options.gesture.enabled))continue}else if(sA.pointers.length>=2)continue;if(!sA.interacting()&&L===sA.pointerType)return sA}return null}};function Ns(P,L){return P.pointers.some(function(Z){return Z.id===L})}var hg=Wr,jr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Fs(P,L){return function(Z){var tA=L.interactions.list,sA=kA(Z),uA=OA(Z),CA=uA[0],fA=uA[1],yA=[];if(/^touch/.test(Z.type)){L.prevTouchTime=L.now();for(var RA=0,vA=Z.changedTouches;RA<vA.length;RA++){var TA=vA[RA],VA={pointer:TA,pointerId:zA(TA),pointerType:sA,eventType:Z.type,eventTarget:CA,curEventTarget:fA,scope:L},ue=Rs(VA);yA.push([VA.pointer,VA.eventTarget,VA.curEventTarget,ue])}}else{var le=!1;if(!I.supportsPointerEvent&&/mouse/.test(Z.type)){for(var Be=0;Be<tA.length&&!le;Be++)le=tA[Be].pointerType!=="mouse"&&tA[Be].pointerIsDown;le=le||L.now()-L.prevTouchTime<500||Z.timeStamp===0}if(!le){var ve={pointer:Z,pointerId:zA(Z),pointerType:sA,eventType:Z.type,curEventTarget:fA,eventTarget:CA,scope:L},be=Rs(ve);yA.push([ve.pointer,ve.eventTarget,ve.curEventTarget,be])}}for(var _A=0;_A<yA.length;_A++){var $A=yA[_A],UA=$A[0],te=$A[1],Ee=$A[2];$A[3][P](UA,Z,te,Ee)}}}function Rs(P){var L=P.pointerType,Z=P.scope,tA={interaction:hg.search(P),searchDetails:P};return Z.fire("interactions:find",tA),tA.interaction||Z.interactions.new({pointerType:L})}function Vo(P,L){var Z=P.doc,tA=P.scope,sA=P.options,uA=tA.interactions.docEvents,CA=tA.events,fA=CA[L];for(var yA in tA.browser.isIOS&&!sA.events&&(sA.events={passive:!1}),CA.delegatedEvents)fA(Z,yA,CA.delegateListener),fA(Z,yA,CA.delegateUseCapture,!0);for(var RA=sA&&sA.events,vA=0;vA<uA.length;vA++){var TA=uA[vA];fA(Z,TA.type,TA.listener,RA)}}var pg={id:"core/interactions",install:function(P){for(var L={},Z=0;Z<jr.length;Z++){var tA=jr[Z];L[tA]=Fs(tA,P)}var sA,uA=I.pEventTypes;function CA(){for(var fA=0,yA=P.interactions.list;fA<yA.length;fA++){var RA=yA[fA];if(RA.pointerIsDown&&RA.pointerType==="touch"&&!RA._interacting)for(var vA=function(){var ue=VA[TA];P.documents.some(function(le){return M(le.doc,ue.downTarget)})||RA.removePointer(ue.pointer,ue.event)},TA=0,VA=RA.pointers;TA<VA.length;TA++)vA()}}(sA=a.PointerEvent?[{type:uA.down,listener:CA},{type:uA.down,listener:L.pointerDown},{type:uA.move,listener:L.pointerMove},{type:uA.up,listener:L.pointerUp},{type:uA.cancel,listener:L.pointerUp}]:[{type:"mousedown",listener:L.pointerDown},{type:"mousemove",listener:L.pointerMove},{type:"mouseup",listener:L.pointerUp},{type:"touchstart",listener:CA},{type:"touchstart",listener:L.pointerDown},{type:"touchmove",listener:L.pointerMove},{type:"touchend",listener:L.pointerUp},{type:"touchcancel",listener:L.pointerUp}]).push({type:"blur",listener:function(fA){for(var yA=0,RA=P.interactions.list;yA<RA.length;yA++)RA[yA].documentBlur(fA)}}),P.prevTouchTime=0,P.Interaction=function(fA){f(RA,fA);var yA=$(RA);function RA(){return Q(this,RA),yA.apply(this,arguments)}return D(RA,[{key:"pointerMoveTolerance",get:function(){return P.interactions.pointerMoveTolerance},set:function(vA){P.interactions.pointerMoveTolerance=vA}},{key:"_now",value:function(){return P.now()}}]),RA}(_s),P.interactions={list:[],new:function(fA){fA.scopeFire=function(RA,vA){return P.fire(RA,vA)};var yA=new P.Interaction(fA);return P.interactions.list.push(yA),yA},listeners:L,docEvents:sA,pointerMoveTolerance:1},P.usePlugin(ri)},listeners:{"scope:add-document":function(P){return Vo(P,"add")},"scope:remove-document":function(P){return Vo(P,"remove")},"interactable:unset":function(P,L){for(var Z=P.interactable,tA=L.interactions.list.length-1;tA>=0;tA--){var sA=L.interactions.list[tA];sA.interactable===Z&&(sA.stop(),L.fire("interactions:destroy",{interaction:sA}),sA.destroy(),L.interactions.list.length>2&&L.interactions.list.splice(tA,1))}}},onDocSignal:Vo,doOnInteractions:Fs,methodNames:jr},Ft=pg,Pn=function(P){return P[P.On=0]="On",P[P.Off=1]="Off",P}(Pn||{}),Ii=function(){function P(L,Z,tA,sA){Q(this,P),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new xs,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=Z.actions,this.target=L,this._context=Z.context||tA,this._win=k(R(L)?this._context:L),this._doc=this._win.document,this._scopeEvents=sA,this.set(Z)}return D(P,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(L,Z){return u.func(Z.onstart)&&this.on("".concat(L,"start"),Z.onstart),u.func(Z.onmove)&&this.on("".concat(L,"move"),Z.onmove),u.func(Z.onend)&&this.on("".concat(L,"end"),Z.onend),u.func(Z.oninertiastart)&&this.on("".concat(L,"inertiastart"),Z.oninertiastart),this}},{key:"updatePerActionListeners",value:function(L,Z,tA){var sA,uA=this,CA=(sA=this._actions.map[L])==null?void 0:sA.filterEventType,fA=function(yA){return(CA==null||CA(yA))&&Dn(yA,uA._actions)};(u.array(Z)||u.object(Z))&&this._onOff(Pn.Off,L,Z,void 0,fA),(u.array(tA)||u.object(tA))&&this._onOff(Pn.On,L,tA,void 0,fA)}},{key:"setPerAction",value:function(L,Z){var tA=this._defaults;for(var sA in Z){var uA=sA,CA=this.options[L],fA=Z[uA];uA==="listeners"&&this.updatePerActionListeners(L,CA.listeners,fA),u.array(fA)?CA[uA]=he(fA):u.plainObject(fA)?(CA[uA]=j(CA[uA]||{},Ti(fA)),u.object(tA.perAction[uA])&&"enabled"in tA.perAction[uA]&&(CA[uA].enabled=fA.enabled!==!1)):u.bool(fA)&&u.object(tA.perAction[uA])?CA[uA].enabled=fA:CA[uA]=fA}}},{key:"getRect",value:function(L){return L=L||(u.element(this.target)?this.target:null),u.string(this.target)&&(L=L||this._context.querySelector(this.target)),_(L)}},{key:"rectChecker",value:function(L){var Z=this;return u.func(L)?(this.getRect=function(tA){var sA=j({},L.apply(Z,tA));return"width"in sA||(sA.width=sA.right-sA.left,sA.height=sA.bottom-sA.top),sA},this):L===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(L,Z){if(R(Z)||u.object(Z)){for(var tA in this.options[L]=Z,this._actions.map)this.options[tA][L]=Z;return this}return this.options[L]}},{key:"origin",value:function(L){return this._backCompatOption("origin",L)}},{key:"deltaSource",value:function(L){return L==="page"||L==="client"?(this.options.deltaSource=L,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var L=this.target;return u.string(L)?Array.from(this._context.querySelectorAll(L)):u.func(L)&&L.getAllElements?L.getAllElements():u.element(L)?[L]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(L){return this._context===L.ownerDocument||M(this._context,L)}},{key:"testIgnoreAllow",value:function(L,Z,tA){return!this.testIgnore(L.ignoreFrom,Z,tA)&&this.testAllow(L.allowFrom,Z,tA)}},{key:"testAllow",value:function(L,Z,tA){return!L||!!u.element(tA)&&(u.string(L)?V(tA,L,Z):!!u.element(L)&&M(L,tA))}},{key:"testIgnore",value:function(L,Z,tA){return!(!L||!u.element(tA))&&(u.string(L)?V(tA,L,Z):!!u.element(L)&&M(L,tA))}},{key:"fire",value:function(L){return this.events.fire(L),this}},{key:"_onOff",value:function(L,Z,tA,sA,uA){u.object(Z)&&!u.array(Z)&&(sA=tA,tA=null);var CA=X(Z,tA,uA);for(var fA in CA){fA==="wheel"&&(fA=I.wheelEvent);for(var yA=0,RA=CA[fA];yA<RA.length;yA++){var vA=RA[yA];Dn(fA,this._actions)?this.events[L===Pn.On?"on":"off"](fA,vA):u.string(this.target)?this._scopeEvents[L===Pn.On?"addDelegate":"removeDelegate"](this.target,this._context,fA,vA,sA):this._scopeEvents[L===Pn.On?"add":"remove"](this.target,fA,vA,sA)}}return this}},{key:"on",value:function(L,Z,tA){return this._onOff(Pn.On,L,Z,tA)}},{key:"off",value:function(L,Z,tA){return this._onOff(Pn.Off,L,Z,tA)}},{key:"set",value:function(L){var Z=this._defaults;for(var tA in u.object(L)||(L={}),this.options=Ti(Z.base),this._actions.methodDict){var sA=tA,uA=this._actions.methodDict[sA];this.options[sA]={},this.setPerAction(sA,j(j({},Z.perAction),Z.actions[sA])),this[uA](L[sA])}for(var CA in L)CA!=="getRect"?u.func(this[CA])&&this[CA](L[CA]):this.rectChecker(L.getRect);return this}},{key:"unset",value:function(){if(u.string(this.target))for(var L in this._scopeEvents.delegatedEvents)for(var Z=this._scopeEvents.delegatedEvents[L],tA=Z.length-1;tA>=0;tA--){var sA=Z[tA],uA=sA.selector,CA=sA.context,fA=sA.listeners;uA===this.target&&CA===this._context&&Z.splice(tA,1);for(var yA=fA.length-1;yA>=0;yA--)this._scopeEvents.removeDelegate(this.target,this._context,L,fA[yA][0],fA[yA][1])}else this._scopeEvents.remove(this.target,"all")}}]),P}(),Ls=function(){function P(L){var Z=this;Q(this,P),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=L,L.addListeners({"interactable:unset":function(tA){var sA=tA.interactable,uA=sA.target,CA=u.string(uA)?Z.selectorMap[uA]:uA[Z.scope.id],fA=KA(CA,function(yA){return yA===sA});CA.splice(fA,1)}})}return D(P,[{key:"new",value:function(L,Z){Z=j(Z||{},{actions:this.scope.actions});var tA=new this.scope.Interactable(L,Z,this.scope.document,this.scope.events);return this.scope.addDocument(tA._doc),this.list.push(tA),u.string(L)?(this.selectorMap[L]||(this.selectorMap[L]=[]),this.selectorMap[L].push(tA)):(tA.target[this.scope.id]||Object.defineProperty(L,this.scope.id,{value:[],configurable:!0}),L[this.scope.id].push(tA)),this.scope.fire("interactable:new",{target:L,options:Z,interactable:tA,win:this.scope._win}),tA}},{key:"getExisting",value:function(L,Z){var tA=Z&&Z.context||this.scope.document,sA=u.string(L),uA=sA?this.selectorMap[L]:L[this.scope.id];if(uA)return JA(uA,function(CA){return CA._context===tA&&(sA||CA.inContext(L))})}},{key:"forEachMatch",value:function(L,Z){for(var tA=0,sA=this.list;tA<sA.length;tA++){var uA=sA[tA],CA=void 0;if((u.string(uA.target)?u.element(L)&&Y(L,uA.target):L===uA.target)&&uA.inContext(L)&&(CA=Z(uA)),CA!==void 0)return CA}}}]),P}(),qr=function(){function P(){var L=this;Q(this,P),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=I,this.defaults=Ti(jo),this.Eventable=xs,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(tA){var sA=function uA(CA,fA){var yA=tA.interactables.getExisting(CA,fA);return yA||((yA=tA.interactables.new(CA,fA)).events.global=uA.globalEvents),yA};return sA.getPointerAverage=XA,sA.getTouchBBox=pe,sA.getTouchDistance=HA,sA.getTouchAngle=DA,sA.getElementRect=_,sA.getElementClientRect=W,sA.matchesSelector=Y,sA.closest=x,sA.globalEvents={},sA.version="1.10.27",sA.scope=tA,sA.use=function(uA,CA){return this.scope.usePlugin(uA,CA),this},sA.isSet=function(uA,CA){return!!this.scope.interactables.get(uA,CA&&CA.context)},sA.on=et(function(uA,CA,fA){if(u.string(uA)&&uA.search(" ")!==-1&&(uA=uA.trim().split(/ +/)),u.array(uA)){for(var yA=0,RA=uA;yA<RA.length;yA++){var vA=RA[yA];this.on(vA,CA,fA)}return this}if(u.object(uA)){for(var TA in uA)this.on(TA,uA[TA],CA);return this}return Dn(uA,this.scope.actions)?this.globalEvents[uA]?this.globalEvents[uA].push(CA):this.globalEvents[uA]=[CA]:this.scope.events.add(this.scope.document,uA,CA,{options:fA}),this},"The interact.on() method is being deprecated"),sA.off=et(function(uA,CA,fA){if(u.string(uA)&&uA.search(" ")!==-1&&(uA=uA.trim().split(/ +/)),u.array(uA)){for(var yA=0,RA=uA;yA<RA.length;yA++){var vA=RA[yA];this.off(vA,CA,fA)}return this}if(u.object(uA)){for(var TA in uA)this.off(TA,uA[TA],CA);return this}var VA;return Dn(uA,this.scope.actions)?uA in this.globalEvents&&(VA=this.globalEvents[uA].indexOf(CA))!==-1&&this.globalEvents[uA].splice(VA,1):this.scope.events.remove(this.scope.document,uA,CA,fA),this},"The interact.off() method is being deprecated"),sA.debug=function(){return this.scope},sA.supportsTouch=function(){return I.supportsTouch},sA.supportsPointerEvent=function(){return I.supportsPointerEvent},sA.stop=function(){for(var uA=0,CA=this.scope.interactions.list;uA<CA.length;uA++)CA[uA].stop();return this},sA.pointerMoveTolerance=function(uA){return u.number(uA)?(this.scope.interactions.pointerMoveTolerance=uA,this):this.scope.interactions.pointerMoveTolerance},sA.addDocument=function(uA,CA){this.scope.addDocument(uA,CA)},sA.removeDocument=function(uA){this.scope.removeDocument(uA)},sA}(this),this.InteractEvent=ai,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(tA){return L.removeDocument(tA.target)};var Z=this;this.Interactable=function(tA){f(uA,tA);var sA=$(uA);function uA(){return Q(this,uA),sA.apply(this,arguments)}return D(uA,[{key:"_defaults",get:function(){return Z.defaults}},{key:"set",value:function(CA){return H(S(uA.prototype),"set",this).call(this,CA),Z.fire("interactable:set",{options:CA,interactable:this}),this}},{key:"unset",value:function(){H(S(uA.prototype),"unset",this).call(this);var CA=Z.interactables.list.indexOf(this);CA<0||(Z.interactables.list.splice(CA,1),Z.fire("interactable:unset",{interactable:this}))}}]),uA}(Ii)}return D(P,[{key:"addListeners",value:function(L,Z){this.listenerMaps.push({id:Z,map:L})}},{key:"fire",value:function(L,Z){for(var tA=0,sA=this.listenerMaps;tA<sA.length;tA++){var uA=sA[tA].map[L];if(uA&&uA(Z,this,L)===!1)return!1}}},{key:"init",value:function(L){return this.isInitialized?this:function(Z,tA){return Z.isInitialized=!0,u.window(tA)&&v(tA),a.init(tA),I.init(tA),ye.init(tA),Z.window=tA,Z.document=tA.document,Z.usePlugin(Ft),Z.usePlugin(gt),Z}(this,L)}},{key:"pluginIsInstalled",value:function(L){var Z=L.id;return Z?!!this._plugins.map[Z]:this._plugins.list.indexOf(L)!==-1}},{key:"usePlugin",value:function(L,Z){if(!this.isInitialized)return this;if(this.pluginIsInstalled(L))return this;if(L.id&&(this._plugins.map[L.id]=L),this._plugins.list.push(L),L.install&&L.install(this,Z),L.listeners&&L.before){for(var tA=0,sA=this.listenerMaps.length,uA=L.before.reduce(function(fA,yA){return fA[yA]=!0,fA[nn(yA)]=!0,fA},{});tA<sA;tA++){var CA=this.listenerMaps[tA].id;if(CA&&(uA[CA]||uA[nn(CA)]))break}this.listenerMaps.splice(tA,0,{id:L.id,map:L.listeners})}else L.listeners&&this.listenerMaps.push({id:L.id,map:L.listeners});return this}},{key:"addDocument",value:function(L,Z){if(this.getDocIndex(L)!==-1)return!1;var tA=k(L);Z=Z?j({},Z):{},this.documents.push({doc:L,options:Z}),this.events.documents.push(L),L!==this.document&&this.events.add(tA,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:L,window:tA,scope:this,options:Z})}},{key:"removeDocument",value:function(L){var Z=this.getDocIndex(L),tA=k(L),sA=this.documents[Z].options;this.events.remove(tA,"unload",this.onWindowUnload),this.documents.splice(Z,1),this.events.documents.splice(Z,1),this.fire("scope:remove-document",{doc:L,window:tA,scope:this,options:sA})}},{key:"getDocIndex",value:function(L){for(var Z=0;Z<this.documents.length;Z++)if(this.documents[Z].doc===L)return Z;return-1}},{key:"getDocOptions",value:function(L){var Z=this.getDocIndex(L);return Z===-1?null:this.documents[Z].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),P}();function nn(P){return P&&P.replace(/\/.*$/,"")}var Xr=new qr,Pt=Xr.interactStatic,Gs=typeof globalThis<"u"?globalThis:window;Xr.init(Gs);var Ps=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(P){var L=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(tA){var sA=tA[0],uA=tA[1];return sA in P||uA in P}),Z=function(tA,sA){for(var uA=P.range,CA=P.limits,fA=CA===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:CA,yA=P.offset,RA=yA===void 0?{x:0,y:0}:yA,vA={range:uA,grid:P,x:null,y:null},TA=0;TA<L.length;TA++){var VA=L[TA],ue=VA[0],le=VA[1],Be=Math.round((tA-RA.x)/P[ue]),ve=Math.round((sA-RA.y)/P[le]);vA[ue]=Math.max(fA.left,Math.min(fA.right,Be*P[ue]+RA.x)),vA[le]=Math.max(fA.top,Math.min(fA.bottom,ve*P[le]+RA.y))}return vA};return Z.grid=P,Z.coordFields=L,Z}}),Hs={id:"snappers",install:function(P){var L=P.interactStatic;L.snappers=j(L.snappers||{},Ps),L.createSnapGrid=L.snappers.grid}},Ks=Hs,on={start:function(P){var L=P.state,Z=P.rect,tA=P.edges,sA=P.pageCoords,uA=L.options,CA=uA.ratio,fA=uA.enabled,yA=L.options,RA=yA.equalDelta,vA=yA.modifiers;CA==="preserve"&&(CA=Z.width/Z.height),L.startCoords=j({},sA),L.startRect=j({},Z),L.ratio=CA,L.equalDelta=RA;var TA=L.linkedEdges={top:tA.top||tA.left&&!tA.bottom,left:tA.left||tA.top&&!tA.right,bottom:tA.bottom||tA.right&&!tA.top,right:tA.right||tA.bottom&&!tA.left};if(L.xIsPrimaryAxis=!(!tA.left&&!tA.right),L.equalDelta){var VA=(TA.left?1:-1)*(TA.top?1:-1);L.edgeSign={x:VA,y:VA}}else L.edgeSign={x:TA.left?-1:1,y:TA.top?-1:1};if(fA!==!1&&j(tA,TA),vA!=null&&vA.length){var ue=new Zo(P.interaction);ue.copyFrom(P.interaction.modification),ue.prepareStates(vA),L.subModification=ue,ue.startAll(i({},P))}},set:function(P){var L=P.state,Z=P.rect,tA=P.coords,sA=L.linkedEdges,uA=j({},tA),CA=L.equalDelta?Cg:un;if(j(P.edges,sA),CA(L,L.xIsPrimaryAxis,tA,Z),!L.subModification)return null;var fA=j({},Z);gA(sA,fA,{x:tA.x-uA.x,y:tA.y-uA.y});var yA=L.subModification.setAll(i(i({},P),{},{rect:fA,edges:sA,pageCoords:tA,prevCoords:tA,prevRect:fA})),RA=yA.delta;return yA.changed&&(CA(L,Math.abs(RA.x)>Math.abs(RA.y),yA.coords,yA.rect),j(tA,yA.coords)),yA.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Cg(P,L,Z){var tA=P.startCoords,sA=P.edgeSign;L?Z.y=tA.y+(Z.x-tA.x)*sA.y:Z.x=tA.x+(Z.y-tA.y)*sA.x}function un(P,L,Z,tA){var sA=P.startRect,uA=P.startCoords,CA=P.ratio,fA=P.edgeSign;if(L){var yA=tA.width/CA;Z.y=uA.y+(yA-sA.height)*fA.y}else{var RA=tA.height*CA;Z.x=uA.x+(RA-sA.width)*fA.x}}var Bg=Gn(on,"aspectRatio"),Vr=function(){};Vr._defaults={};var vn=Vr;function Hn(P,L,Z){return u.func(P)?iA(P,L.interactable,L.element,[Z.x,Z.y,L]):iA(P,L.interactable,L.element)}var Ui={start:function(P){var L=P.rect,Z=P.startOffset,tA=P.state,sA=P.interaction,uA=P.pageCoords,CA=tA.options,fA=CA.elementRect,yA=j({left:0,top:0,right:0,bottom:0},CA.offset||{});if(L&&fA){var RA=Hn(CA.restriction,sA,uA);if(RA){var vA=RA.right-RA.left-L.width,TA=RA.bottom-RA.top-L.height;vA<0&&(yA.left+=vA,yA.right+=vA),TA<0&&(yA.top+=TA,yA.bottom+=TA)}yA.left+=Z.left-L.width*fA.left,yA.top+=Z.top-L.height*fA.top,yA.right+=Z.right-L.width*(1-fA.right),yA.bottom+=Z.bottom-L.height*(1-fA.bottom)}tA.offset=yA},set:function(P){var L=P.coords,Z=P.interaction,tA=P.state,sA=tA.options,uA=tA.offset,CA=Hn(sA.restriction,Z,L);if(CA){var fA=function(yA){return!yA||"left"in yA&&"top"in yA||((yA=j({},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}(CA);L.x=Math.max(Math.min(fA.right-uA.right,L.x),fA.left+uA.left),L.y=Math.max(Math.min(fA.bottom-uA.bottom,L.y),fA.top+uA.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},pt=Gn(Ui,"restrict"),Zn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Ar={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Ts(P,L){for(var Z=0,tA=["top","left","bottom","right"];Z<tA.length;Z++){var sA=tA[Z];sA in P||(P[sA]=L[sA])}return P}var wi={noInner:Zn,noOuter:Ar,start:function(P){var L,Z=P.interaction,tA=P.startOffset,sA=P.state,uA=sA.options;uA&&(L=dA(Hn(uA.offset,Z,Z.coords.start.page))),L=L||{x:0,y:0},sA.offset={top:L.y+tA.top,left:L.x+tA.left,bottom:L.y-tA.bottom,right:L.x-tA.right}},set:function(P){var L=P.coords,Z=P.edges,tA=P.interaction,sA=P.state,uA=sA.offset,CA=sA.options;if(Z){var fA=j({},L),yA=Hn(CA.inner,tA,fA)||{},RA=Hn(CA.outer,tA,fA)||{};Ts(yA,Zn),Ts(RA,Ar),Z.top?L.y=Math.min(Math.max(RA.top+uA.top,fA.y),yA.top+uA.top):Z.bottom&&(L.y=Math.max(Math.min(RA.bottom+uA.bottom,fA.y),yA.bottom+uA.bottom)),Z.left?L.x=Math.min(Math.max(RA.left+uA.left,fA.x),yA.left+uA.left):Z.right&&(L.x=Math.max(Math.min(RA.right+uA.right,fA.x),yA.right+uA.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},mg=Gn(wi,"restrictEdges"),Eg=j({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(P){}},Ui.defaults),Qg=Gn({start:Ui.start,set:Ui.set,defaults:Eg},"restrictRect"),Us={width:-1/0,height:-1/0},er={width:1/0,height:1/0},Yi=Gn({start:function(P){return wi.start(P)},set:function(P){var L=P.interaction,Z=P.state,tA=P.rect,sA=P.edges,uA=Z.options;if(sA){var CA=EA(Hn(uA.min,L,P.coords))||Us,fA=EA(Hn(uA.max,L,P.coords))||er;Z.options={endOnly:uA.endOnly,inner:j({},wi.noInner),outer:j({},wi.noOuter)},sA.top?(Z.options.inner.top=tA.bottom-CA.height,Z.options.outer.top=tA.bottom-fA.height):sA.bottom&&(Z.options.inner.bottom=tA.top+CA.height,Z.options.outer.bottom=tA.top+fA.height),sA.left?(Z.options.inner.left=tA.right-CA.width,Z.options.outer.left=tA.right-fA.width):sA.right&&(Z.options.inner.right=tA.left+CA.width,Z.options.outer.right=tA.left+fA.width),wi.set(P),Z.options=uA}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Aa={start:function(P){var L,Z=P.interaction,tA=P.interactable,sA=P.element,uA=P.rect,CA=P.state,fA=P.startOffset,yA=CA.options,RA=yA.offsetWithOrigin?function(VA){var ue=VA.interaction.element,le=dA(iA(VA.state.options.origin,null,null,[ue])),Be=le||wA(VA.interactable,ue,VA.interaction.prepared.name);return Be}(P):{x:0,y:0};if(yA.offset==="startCoords")L={x:Z.coords.start.page.x,y:Z.coords.start.page.y};else{var vA=iA(yA.offset,tA,sA,[Z]);(L=dA(vA)||{x:0,y:0}).x+=RA.x,L.y+=RA.y}var TA=yA.relativePoints;CA.offsets=uA&&TA&&TA.length?TA.map(function(VA,ue){return{index:ue,relativePoint:VA,x:fA.left-uA.width*VA.x+L.x,y:fA.top-uA.height*VA.y+L.y}}):[{index:0,relativePoint:null,x:L.x,y:L.y}]},set:function(P){var L=P.interaction,Z=P.coords,tA=P.state,sA=tA.options,uA=tA.offsets,CA=wA(L.interactable,L.element,L.prepared.name),fA=j({},Z),yA=[];sA.offsetWithOrigin||(fA.x-=CA.x,fA.y-=CA.y);for(var RA=0,vA=uA;RA<vA.length;RA++)for(var TA=vA[RA],VA=fA.x-TA.x,ue=fA.y-TA.y,le=0,Be=sA.targets.length;le<Be;le++){var ve=sA.targets[le],be=void 0;(be=u.func(ve)?ve(VA,ue,L._proxy,TA,le):ve)&&yA.push({x:(u.number(be.x)?be.x:VA)+TA.x,y:(u.number(be.y)?be.y:ue)+TA.y,range:u.number(be.range)?be.range:sA.range,source:ve,index:le,offset:TA})}for(var _A={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},$A=0;$A<yA.length;$A++){var UA=yA[$A],te=UA.range,Ee=UA.x-fA.x,He=UA.y-fA.y,Ke=cA(Ee,He),Oe=Ke<=te;te===1/0&&_A.inRange&&_A.range!==1/0&&(Oe=!1),_A.target&&!(Oe?_A.inRange&&te!==1/0?Ke/te<_A.distance/_A.range:te===1/0&&_A.range!==1/0||Ke<_A.distance:!_A.inRange&&Ke<_A.distance)||(_A.target=UA,_A.distance=Ke,_A.range=te,_A.inRange=Oe,_A.delta.x=Ee,_A.delta.y=He)}return _A.inRange&&(Z.x=_A.target.x,Z.y=_A.target.y),tA.closest=_A,_A},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Ys=Gn(Aa,"snap"),Bo={start:function(P){var L=P.state,Z=P.edges,tA=L.options;if(!Z)return null;P.state={options:{targets:null,relativePoints:[{x:Z.left?0:1,y:Z.top?0:1}],offset:tA.offset||"self",origin:{x:0,y:0},range:tA.range}},L.targetFields=L.targetFields||[["width","height"],["x","y"]],Aa.start(P),L.offsets=P.state.offsets,P.state=L},set:function(P){var L=P.interaction,Z=P.state,tA=P.coords,sA=Z.options,uA=Z.offsets,CA={x:tA.x-uA[0].x,y:tA.y-uA[0].y};Z.options=j({},sA),Z.options.targets=[];for(var fA=0,yA=sA.targets||[];fA<yA.length;fA++){var RA=yA[fA],vA=void 0;if(vA=u.func(RA)?RA(CA.x,CA.y,L):RA){for(var TA=0,VA=Z.targetFields;TA<VA.length;TA++){var ue=VA[TA],le=ue[0],Be=ue[1];if(le in vA||Be in vA){vA.x=vA[le],vA.y=vA[Be];break}}Z.options.targets.push(vA)}}var ve=Aa.set(P);return Z.options=sA,ve},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},ea=Gn(Bo,"snapSize"),mo={aspectRatio:Bg,restrictEdges:mg,restrict:pt,restrictRect:Qg,restrictSize:Yi,snapEdges:Gn({start:function(P){var L=P.edges;return L?(P.state.targetFields=P.state.targetFields||[[L.left?"left":"right",L.top?"top":"bottom"]],Bo.start(P)):null},set:Bo.set,defaults:j(Ti(Bo.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Ys,snapSize:ea,spring:vn,avoid:vn,transform:vn,rubberband:vn},Os={id:"modifiers",install:function(P){var L=P.interactStatic;for(var Z in P.usePlugin(Wo),P.usePlugin(Ks),L.modifiers=mo,mo){var tA=mo[Z],sA=tA._defaults,uA=tA._methods;sA._methods=uA,P.defaults.perAction[Z]=sA}}},fg=Os,tr=function(P){f(Z,P);var L=$(Z);function Z(tA,sA,uA,CA,fA,yA){var RA;if(Q(this,Z),z(G(RA=L.call(this,fA)),uA),uA!==sA&&z(G(RA),sA),RA.timeStamp=yA,RA.originalEvent=uA,RA.type=tA,RA.pointerId=zA(sA),RA.pointerType=kA(sA),RA.target=CA,RA.currentTarget=null,tA==="tap"){var vA=fA.getPointerIndex(sA);RA.dt=RA.timeStamp-fA.pointers[vA].downTime;var TA=RA.timeStamp-fA.tapTime;RA.double=!!fA.prevTap&&fA.prevTap.type!=="doubletap"&&fA.prevTap.target===RA.target&&TA<500}else tA==="doubletap"&&(RA.dt=sA.timeStamp-fA.tapTime,RA.double=!0);return RA}return D(Z,[{key:"_subtractOrigin",value:function(tA){var sA=tA.x,uA=tA.y;return this.pageX-=sA,this.pageY-=uA,this.clientX-=sA,this.clientY-=uA,this}},{key:"_addOrigin",value:function(tA){var sA=tA.x,uA=tA.y;return this.pageX+=sA,this.pageY+=uA,this.clientX+=sA,this.clientY+=uA,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),Z}(SA),bi={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(P){P.pointerEvents=bi,P.defaults.actions.pointerEvents=bi.defaults,j(P.actions.phaselessTypes,bi.types)},listeners:{"interactions:new":function(P){var L=P.interaction;L.prevTap=null,L.tapTime=0},"interactions:update-pointer":function(P){var L=P.down,Z=P.pointerInfo;!L&&Z.hold||(Z.hold={duration:1/0,timeout:null})},"interactions:move":function(P,L){var Z=P.interaction,tA=P.pointer,sA=P.event,uA=P.eventTarget;P.duplicate||Z.pointerIsDown&&!Z.pointerWasMoved||(Z.pointerIsDown&&Tt(P),si({interaction:Z,pointer:tA,event:sA,eventTarget:uA,type:"move"},L))},"interactions:down":function(P,L){(function(Z,tA){for(var sA=Z.interaction,uA=Z.pointer,CA=Z.event,fA=Z.eventTarget,yA=Z.pointerIndex,RA=sA.pointers[yA].hold,vA=J(fA),TA={interaction:sA,pointer:uA,event:CA,eventTarget:fA,type:"hold",targets:[],path:vA,node:null},VA=0;VA<vA.length;VA++){var ue=vA[VA];TA.node=ue,tA.fire("pointerEvents:collect-targets",TA)}if(TA.targets.length){for(var le=1/0,Be=0,ve=TA.targets;Be<ve.length;Be++){var be=ve[Be].eventable.options.holdDuration;be<le&&(le=be)}RA.duration=le,RA.timeout=setTimeout(function(){si({interaction:sA,eventTarget:fA,pointer:uA,event:CA,type:"hold"},tA)},le)}})(P,L),si(P,L)},"interactions:up":function(P,L){Tt(P),si(P,L),function(Z,tA){var sA=Z.interaction,uA=Z.pointer,CA=Z.event,fA=Z.eventTarget;sA.pointerWasMoved||si({interaction:sA,eventTarget:fA,pointer:uA,event:CA,type:"tap"},tA)}(P,L)},"interactions:cancel":function(P,L){Tt(P),si(P,L)}},PointerEvent:tr,fire:si,collectEventTargets:ta,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 si(P,L){var Z=P.interaction,tA=P.pointer,sA=P.event,uA=P.eventTarget,CA=P.type,fA=P.targets,yA=fA===void 0?ta(P,L):fA,RA=new tr(CA,tA,sA,uA,Z,L.now());L.fire("pointerEvents:new",{pointerEvent:RA});for(var vA={interaction:Z,pointer:tA,event:sA,eventTarget:uA,targets:yA,type:CA,pointerEvent:RA},TA=0;TA<yA.length;TA++){var VA=yA[TA];for(var ue in VA.props||{})RA[ue]=VA.props[ue];var le=wA(VA.eventable,VA.node);if(RA._subtractOrigin(le),RA.eventable=VA.eventable,RA.currentTarget=VA.node,VA.eventable.fire(RA),RA._addOrigin(le),RA.immediatePropagationStopped||RA.propagationStopped&&TA+1<yA.length&&yA[TA+1].node!==RA.currentTarget)break}if(L.fire("pointerEvents:fired",vA),CA==="tap"){var Be=RA.double?si({interaction:Z,pointer:tA,event:sA,eventTarget:uA,type:"doubletap"},L):RA;Z.prevTap=Be,Z.tapTime=Be.timeStamp}return RA}function ta(P,L){var Z=P.interaction,tA=P.pointer,sA=P.event,uA=P.eventTarget,CA=P.type,fA=Z.getPointerIndex(tA),yA=Z.pointers[fA];if(CA==="tap"&&(Z.pointerWasMoved||!yA||yA.downTarget!==uA))return[];for(var RA=J(uA),vA={interaction:Z,pointer:tA,event:sA,eventTarget:uA,type:CA,path:RA,targets:[],node:null},TA=0;TA<RA.length;TA++){var VA=RA[TA];vA.node=VA,L.fire("pointerEvents:collect-targets",vA)}return CA==="hold"&&(vA.targets=vA.targets.filter(function(ue){var le,Be;return ue.eventable.options.holdDuration===((le=Z.pointers[fA])==null||(Be=le.hold)==null?void 0:Be.duration)})),vA.targets}function Tt(P){var L=P.interaction,Z=P.pointerIndex,tA=L.pointers[Z].hold;tA&&tA.timeout&&(clearTimeout(tA.timeout),tA.timeout=null)}var na=Object.freeze({__proto__:null,default:bi});function Eo(P){var L=P.interaction;L.holdIntervalHandle&&(clearInterval(L.holdIntervalHandle),L.holdIntervalHandle=null)}var $s={id:"pointer-events/holdRepeat",install:function(P){P.usePlugin(bi);var L=P.pointerEvents;L.defaults.holdRepeatInterval=0,L.types.holdrepeat=P.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(P,L){return P["pointerEvents:".concat(L)]=Eo,P},{"pointerEvents:new":function(P){var L=P.pointerEvent;L.type==="hold"&&(L.count=(L.count||0)+1)},"pointerEvents:fired":function(P,L){var Z=P.interaction,tA=P.pointerEvent,sA=P.eventTarget,uA=P.targets;if(tA.type==="hold"&&uA.length){var CA=uA[0].eventable.options.holdRepeatInterval;CA<=0||(Z.holdIntervalHandle=setTimeout(function(){L.pointerEvents.fire({interaction:Z,eventTarget:sA,type:"hold",pointer:tA,event:tA},L)},CA))}}})},zs=$s,Ig={id:"pointer-events/interactableTargets",install:function(P){var L=P.Interactable;L.prototype.pointerEvents=function(tA){return j(this.events.options,tA),this};var Z=L.prototype._backCompatOption;L.prototype._backCompatOption=function(tA,sA){var uA=Z.call(this,tA,sA);return uA===this&&(this.events.options[tA]=sA),uA}},listeners:{"pointerEvents:collect-targets":function(P,L){var Z=P.targets,tA=P.node,sA=P.type,uA=P.eventTarget;L.interactables.forEachMatch(tA,function(CA){var fA=CA.events,yA=fA.options;fA.types[sA]&&fA.types[sA].length&&CA.testIgnoreAllow(yA,tA,uA)&&Z.push({node:tA,eventable:fA,props:{interactable:CA}})})},"interactable:new":function(P){var L=P.interactable;L.events.getRect=function(Z){return L.getRect(Z)}},"interactable:set":function(P,L){var Z=P.interactable,tA=P.options;j(Z.events.options,L.pointerEvents.defaults),j(Z.events.options,tA.pointerEvents||{})}}},wg=Ig,bg={id:"pointer-events",install:function(P){P.usePlugin(na),P.usePlugin(zs),P.usePlugin(wg)}},yg=bg,Dg={id:"reflow",install:function(P){var L=P.Interactable;P.actions.phases.reflow=!0,L.prototype.reflow=function(Z){return function(tA,sA,uA){for(var CA=tA.getAllElements(),fA=uA.window.Promise,yA=fA?[]:null,RA=function(){var TA=CA[vA],VA=tA.getRect(TA);if(!VA)return 1;var ue,le=JA(uA.interactions.list,function(be){return be.interacting()&&be.interactable===tA&&be.element===TA&&be.prepared.name===sA.name});if(le)le.move(),yA&&(ue=le._reflowPromise||new fA(function(be){le._reflowResolve=be}));else{var Be=EA(VA),ve=function(be){return{coords:be,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:Be.x,y:Be.y},client:{x:Be.x,y:Be.y},timeStamp:uA.now()});ue=function(be,_A,$A,UA,te){var Ee=be.interactions.new({pointerType:"reflow"}),He={interaction:Ee,event:te,pointer:te,eventTarget:$A,phase:"reflow"};Ee.interactable=_A,Ee.element=$A,Ee.prevEvent=te,Ee.updatePointer(te,te,$A,!0),nA(Ee.coords.delta),dt(Ee.prepared,UA),Ee._doPhase(He);var Ke=be.window,Oe=Ke.Promise,rn=Oe?new Oe(function(Wn){Ee._reflowResolve=Wn}):void 0;return Ee._reflowPromise=rn,Ee.start(UA,_A,$A),Ee._interacting?(Ee.move(He),Ee.end(te)):(Ee.stop(),Ee._reflowResolve()),Ee.removePointer(te,te),rn}(uA,tA,TA,sA,ve)}yA&&yA.push(ue)},vA=0;vA<CA.length&&!RA();vA++);return yA&&fA.all(yA).then(function(){return tA})}(this,Z,P)}},listeners:{"interactions:stop":function(P,L){var Z=P.interaction;Z.pointerType==="reflow"&&(Z._reflowResolve&&Z._reflowResolve(),function(tA,sA){tA.splice(tA.indexOf(sA),1)}(L.interactions.list,Z))}}},Oi=Dg;if(Pt.use(ri),Pt.use(Zr),Pt.use(yg),Pt.use(dg),Pt.use(fg),Pt.use(oi),Pt.use(jA),Pt.use(ze),Pt.use(Oi),Pt.default=Pt,h(n)==="object"&&n)try{n.exports=Pt}catch{}return Pt.default=Pt,Pt})}(Bs,Bs.exports);var p1=Bs.exports;const Jp=Id(p1),Vc=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,h=t,Q=A.inject(Fp),r=A.inject(Rp);if(!Q)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const D=A.ref(null),w=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 f=!1,S=!1,F=NaN,G=NaN,$=NaN,H=NaN,K=-1,y=-1,B=-1,N=-1,v=i.x,k=i.y,m=i.w,p=i.h;const u=A.ref(),s=A.reactive({i:A.toRef(i,"i"),state:w,wrapper:u,calcXY:iA});function g(lA){X(lA)}function l(){aA()}function d(lA){In(i.isDraggable)&&(w.draggable=lA)}function C(lA){In(i.isResizable)&&(w.resizable=lA)}function o(lA){In(i.isBounded)&&(w.bounded=lA)}function a(lA){w.transformScale=lA}function E(lA){w.rowHeight=lA}function I(lA){w.maxRows=lA}function M(){w.rtl=zp()==="rtl",aA()}function x(lA){w.cols=Math.floor(lA)}Q.increaseItem(s),A.onBeforeMount(()=>{w.rtl=zp()==="rtl"}),A.onMounted(()=>{Q.responsive&&Q.lastBreakpoint?w.cols=Op(Q.lastBreakpoint,Q.cols):w.cols=Q.colNum,w.rowHeight=Q.rowHeight,w.containerWidth=Q.width!==null?Q.width:100,w.margin=Q.margin!==void 0?Q.margin.map(Number):[10,10],w.maxRows=Q.maxRows,In(i.isDraggable)?w.draggable=Q.isDraggable:w.draggable=i.isDraggable,In(i.isResizable)?w.resizable=Q.isResizable:w.resizable=i.isResizable,In(i.isBounded)?w.bounded=Q.isBounded:w.bounded=i.isBounded,w.transformScale=Q.transformScale,w.useCssTransforms=Q.useCssTransforms,w.useStyleCursor=Q.useStyleCursor,A.watchEffect(()=>{v=i.x,k=i.y,p=i.h,m=i.w,qt(_)}),r.on("updateWidth",g),r.on("compact",l),r.on("setDraggable",d),r.on("setResizable",C),r.on("setBounded",o),r.on("setTransformScale",a),r.on("setRowHeight",E),r.on("setMaxRows",I),r.on("directionchange",M),r.on("setColNum",x)}),A.onBeforeUnmount(()=>{r.off("updateWidth",g),r.off("compact",l),r.off("setDraggable",d),r.off("setResizable",C),r.off("setBounded",o),r.off("setTransformScale",a),r.off("setRowHeight",E),r.off("setMaxRows",I),r.off("directionchange",M),r.off("setColNum",x),D.value&&(D.value.unset(),D.value=null),Q.decreaseItem(s)}),e({state:w,wrapper:u});const T=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,Y=A.computed(()=>w.resizable&&!i.static),AA=A.computed(()=>Q.isMirrored?!w.rtl:w.rtl),eA=A.computed(()=>(w.draggable||w.resizable)&&!i.static),V=s1("item"),O=A.computed(()=>({[V.b()]:!0,[V.bm("resizable")]:Y.value,[V.bm("static")]:i.static,[V.bm("resizing")]:w.isResizing,[V.bm("dragging")]:w.isDragging,[V.bm("transform")]:w.useCssTransforms,[V.bm("rtl")]:AA.value,[V.bm("no-touch")]:T&&eA.value})),W=A.computed(()=>[V.be("resizer"),AA.value&&V.bem("resizer","rtl")].filter(Boolean));A.watch(()=>i.isDraggable,lA=>{w.draggable=lA}),A.watch(()=>i.static,()=>{qt(z),qt(nA)}),A.watch(()=>w.draggable,()=>{qt(z)}),A.watch(()=>i.isResizable,lA=>{w.resizable=lA}),A.watch(()=>i.isBounded,lA=>{w.bounded=lA}),A.watch(()=>w.resizable,()=>{qt(nA)}),A.watch(()=>w.rowHeight,()=>{qt(_),qt(J)}),A.watch([()=>w.cols,()=>w.containerWidth],()=>{qt(nA),qt(_),qt(J)}),A.watch([()=>i.minH,()=>i.maxH,()=>i.minW,()=>i.maxW],()=>{qt(nA)}),A.watch(AA,()=>{qt(nA),qt(_)}),A.watch([()=>Q.margin,()=>Q.margin[0],()=>Q.margin[1]],()=>{const lA=Q.margin;!lA||lA[0]===w.margin[0]&&lA[1]===w.margin[1]||(w.margin=lA.map(Number),qt(_),qt(J))});function _(){i.x+i.w>w.cols?(v=0,m=i.w>w.cols?w.cols:i.w):(v=i.x,m=i.w);const lA=oA(v,k,m,p);w.isDragging&&(lA.top=w.dragging.top,AA.value?lA.right=w.dragging.left:lA.left=w.dragging.left),w.isResizing&&(lA.width=w.resizing.width,lA.height=w.resizing.height);let BA;w.useCssTransforms?AA.value?BA=i1(lA.top,lA.right,lA.width,lA.height):BA=n1(lA.top,lA.left,lA.width,lA.height):AA.value?BA=r1(lA.top,lA.right,lA.width,lA.height):BA=o1(lA.top,lA.left,lA.width,lA.height),w.style=BA}function J(){const lA={};for(const BA of["width","height"]){const NA=w.style[BA].match(/^(\d+)px$/);if(!NA)return;lA[BA]=NA[1]}h("container-resized",i.i,i.h,i.w,lA.height,lA.width)}function R(lA){if(i.static)return;const BA=lA.type;if(BA==="resizestart"&&w.isResizing||BA!=="resizestart"&&!w.isResizing)return;const NA=Up(lA);if(In(NA))return;const{x:zA,y:qA}=NA,ee={width:0,height:0};let XA;switch(BA){case"resizestart":{nA(),K=m,y=p,XA=oA(v,k,m,p),ee.width=XA.width,ee.height=XA.height,w.resizing=ee,w.isResizing=!0;break}case"resizemove":{!lA.edges.right&&!lA.edges.left&&($=zA),!lA.edges.top&&!lA.edges.bottom&&(H=qA);const pe=Yp($,H,zA,qA);AA.value?ee.width=w.resizing.width-pe.deltaX/w.transformScale:ee.width=w.resizing.width+pe.deltaX/w.transformScale,ee.height=w.resizing.height+pe.deltaY/w.transformScale,w.resizing=ee;break}case"resizeend":{XA=oA(v,k,m,p),ee.width=XA.width,ee.height=XA.height,w.resizing={width:-1,height:-1},w.isResizing=!1;break}}XA=wA(ee.height,ee.width),XA.w<i.minW&&(XA.w=i.minW),XA.w>i.maxW&&(XA.w=i.maxW),XA.h<i.minH&&(XA.h=i.minH),XA.h>i.maxH&&(XA.h=i.maxH),XA.h<1&&(XA.h=1),XA.w<1&&(XA.w=1),$=zA,H=qA,(m!==XA.w||p!==XA.h)&&h("resize",i.i,XA.h,XA.w,ee.height,ee.width),lA.type==="resizeend"&&(K!==m||y!==p)&&h("resized",i.i,XA.h,XA.w,ee.height,ee.width),r.emit("resizeEvent",lA.type,i.i,v,k,XA.h,XA.w)}function j(lA){if(i.static||w.isResizing)return;const BA=lA.type;if(BA==="dragstart"&&w.isDragging||BA!=="dragstart"&&!w.isDragging)return;const NA=Up(lA);if(In(NA))return;const{x:zA,y:qA}=NA,ee=lA.target;if(!ee.offsetParent)return;const XA={top:0,left:0};switch(BA){case"dragstart":{B=v,N=k;const HA=ee.offsetParent.getBoundingClientRect(),DA=ee.getBoundingClientRect(),kA=DA.left/w.transformScale,OA=HA.left/w.transformScale,SA=DA.right/w.transformScale,WA=HA.right/w.transformScale,he=DA.top/w.transformScale,KA=HA.top/w.transformScale;AA.value?XA.left=(SA-WA)*-1:XA.left=kA-OA,XA.top=he-KA,w.dragging=XA,w.isDragging=!0;break}case"dragmove":{const HA=Yp(F,G,zA,qA);if(AA.value?XA.left=w.dragging.left-HA.deltaX/w.transformScale:XA.left=w.dragging.left+HA.deltaX/w.transformScale,XA.top=w.dragging.top+HA.deltaY/w.transformScale,w.bounded){const DA=ee.offsetParent.clientHeight-EA(i.h,w.rowHeight,w.margin[1]);XA.top=gA(XA.top,0,DA);const kA=dA(),OA=w.containerWidth-EA(i.w,kA,w.margin[0]);XA.left=gA(XA.left,0,OA)}w.dragging=XA;break}case"dragend":{const HA=ee.offsetParent.getBoundingClientRect(),DA=ee.getBoundingClientRect(),kA=DA.left/w.transformScale,OA=HA.left/w.transformScale,SA=DA.right/w.transformScale,WA=HA.right/w.transformScale,he=DA.top/w.transformScale,KA=HA.top/w.transformScale;AA.value?XA.left=(SA-WA)*-1:XA.left=kA-OA,XA.top=he-KA,w.dragging={top:-1,left:-1},w.isDragging=!1;break}}let pe;AA.value,pe=iA(XA.top,XA.left),F=zA,G=qA,(v!==pe.x||k!==pe.y)&&h("move",i.i,pe.x,pe.y),lA.type==="dragend"&&(B!==v||N!==k)&&h("moved",i.i,pe.x,pe.y),r.emit("dragEvent",lA.type,i.i,pe.x,pe.y,p,m)}function oA(lA,BA,NA,zA){const qA=dA();let ee;return AA.value?ee={right:Math.round(qA*lA+(lA+1)*w.margin[0]),top:Math.round(w.rowHeight*BA+(BA+1)*w.margin[1]),width:NA===1/0?NA:Math.round(qA*NA+Math.max(0,NA-1)*w.margin[0]),height:zA===1/0?zA:Math.round(w.rowHeight*zA+Math.max(0,zA-1)*w.margin[1])}:ee={left:Math.round(qA*lA+(lA+1)*w.margin[0]),top:Math.round(w.rowHeight*BA+(BA+1)*w.margin[1]),width:NA===1/0?NA:Math.round(qA*NA+Math.max(0,NA-1)*w.margin[0]),height:zA===1/0?zA:Math.round(w.rowHeight*zA+Math.max(0,zA-1)*w.margin[1])},ee}function iA(lA,BA){const NA=dA();let zA=Math.round((BA-w.margin[0])/(NA+w.margin[0])),qA=Math.round((lA-w.margin[1])/(w.rowHeight+w.margin[1]));return zA=Math.max(Math.min(zA,w.cols-m),0),qA=Math.max(Math.min(qA,w.maxRows-p),0),{x:zA,y:qA}}function dA(){return(w.containerWidth-w.margin[0]*(w.cols+1))/w.cols}function EA(lA,BA,NA){return Number.isFinite(lA)?Math.round(BA*lA+Math.max(0,lA-1)*NA):lA}function gA(lA,BA,NA){return Math.max(Math.min(lA,NA),BA)}function wA(lA,BA,NA=!1){const zA=dA();let qA=Math.round((BA+w.margin[0])/(zA+w.margin[0])),ee=0;return NA?ee=Math.ceil((lA+w.margin[1])/(w.rowHeight+w.margin[1])):ee=Math.round((lA+w.margin[1])/(w.rowHeight+w.margin[1])),qA=Math.max(Math.min(qA,w.cols-v),0),ee=Math.max(Math.min(ee,w.maxRows-k),0),{w:qA,h:ee}}function X(lA,BA){w.containerWidth=lA}function aA(){_()}function cA(){!D.value&&u.value&&(D.value=Jp(u.value),w.useStyleCursor||D.value.styleCursor(!1))}const hA=Sp(j);function z(){if(cA(),!!D.value)if(w.draggable&&!i.static){const lA={ignoreFrom:i.dragIgnoreFrom,allowFrom:i.dragAllowFrom,...i.dragOption};D.value.draggable(lA),f||(f=!0,D.value.on("dragstart dragmove dragend",BA=>{BA.type==="dragmove"?hA(BA):j(BA)}))}else D.value.draggable({enabled:!1})}const q=Sp(R);function nA(){if(cA(),!!D.value)if(w.resizable&&!i.static){const lA=oA(0,0,i.maxW,i.maxH),BA=oA(0,0,i.minW,i.minH),NA={edges:{left:AA.value?`.${W.value[0]}`:!1,right:AA.value?!1:`.${W.value[0]}`,bottom:`.${W.value[0]}`,top:!1},ignoreFrom:i.resizeIgnoreFrom,restrictSize:{min:{height:BA.height*w.transformScale,width:BA.width*w.transformScale},max:{height:lA.height*w.transformScale,width:lA.width*w.transformScale}},...i.resizeOption};i.preserveAspectRatio&&(NA.modifiers=[Jp.modifiers.aspectRatio({ratio:"preserve"})]),D.value.resizable(NA),S||(S=!0,D.value.on("resizestart resizemove resizeend",zA=>{zA.type==="resizemove"?q(zA):R(zA)}))}else D.value.resizable({enabled:!1})}return(lA,BA)=>(A.openBlock(),A.createElementBlock("section",{ref_key:"wrapper",ref:u,class:A.normalizeClass(O.value),style:A.normalizeStyle(w.style)},[A.renderSlot(lA.$slots,"default"),Y.value?(A.openBlock(),A.createElementBlock("span",{key:0,class:A.normalizeClass(W.value)},null,2)):A.createCommentVNode("",!0)],6))}}),so=typeof window<"u";var Zp;so&&(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 Tr(){}const C1=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(C1)));const B1=so&&("ontouchstart"in window||E1()>0),m1=B1?"pointerdown":"click";function E1(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function Q1(n,e,t=window.Event){const{type:i,bubbles:h=!1,cancelable:Q=!1,...r}=e;if(!Wp(i)||i==="")return!1;let D;return Wp(t)?D=new t(i,{bubbles:h,cancelable:Q}):(D=document.createEvent("HTMLEvents"),D.initEvent(i,h,Q)),Object.assign(D,r),n.dispatchEvent(D)}const f1="clickoutside",I1=new Set;so&&document.addEventListener(m1,n=>{const e=n.target,t=n.composedPath&&n.composedPath();I1.forEach(i=>{i!==e&&(t?!t.includes(i):!i.contains(e))&&(!i.__transferElement||i.__transferElement!==e&&!i.__transferElement.contains(e))&&Q1(i,{type:f1})})},!0);const w1=[["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 Ur;if(so){for(const n of w1)if(n[1]in document){Ur=n;break}}const b1=!!Ur;A.computed(()=>!1);const y1=new Set,D1=new WeakMap;if(so&&Ur){const n=Ur[2],e=Ur[4];document.addEventListener(e,()=>{if(y1.forEach(t=>{t.value=!1}),document[n]){const t=D1.get(document[n]);t&&(t.value=!0)}},!1)}const jp=new Map;jp.set("x",0),jp.set("y",0);var lo=[],v1=function(){return lo.some(function(n){return n.activeTargets.length>0})},k1=function(){return lo.some(function(n){return n.skippedTargets.length>0})},qp="ResizeObserver loop completed with undelivered notifications.",_1=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)},Yr;(function(n){n.BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Yr||(Yr={}));var co=function(n){return Object.freeze(n)},M1=function(){function n(e,t){this.inlineSize=e,this.blockSize=t,co(this)}return n}(),Xp=function(){function n(e,t,i,h){return this.x=e,this.y=t,this.width=i,this.height=h,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,co(this)}return n.prototype.toJSON=function(){var e=this,t=e.x,i=e.y,h=e.top,Q=e.right,r=e.bottom,D=e.left,w=e.width,f=e.height;return{x:t,y:i,top:h,right:Q,bottom:r,left:D,width:w,height:f}},n.fromRect=function(e){return new n(e.x,e.y,e.width,e.height)},n}(),Ag=function(n){return n instanceof SVGElement&&"getBBox"in n},Vp=function(n){if(Ag(n)){var e=n.getBBox(),t=e.width,i=e.height;return!t&&!i}var h=n,Q=h.offsetWidth,r=h.offsetHeight;return!(Q||r||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)},S1=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},Or=typeof window<"u"?window:{},ms=new WeakMap,eC=/auto|scroll/,x1=/^tb|vertical/,N1=/msie|trident/i.test(Or.navigator&&Or.navigator.userAgent),ii=function(n){return parseFloat(n||"0")},zo=function(n,e,t){return n===void 0&&(n=0),e===void 0&&(e=0),t===void 0&&(t=!1),new M1((t?e:n)||0,(t?n:e)||0)},tC=co({devicePixelContentBoxSize:zo(),borderBoxSize:zo(),contentBoxSize:zo(),contentRect:new Xp(0,0,0,0)}),nC=function(n,e){if(e===void 0&&(e=!1),ms.has(n)&&!e)return ms.get(n);if(Vp(n))return ms.set(n,tC),tC;var t=getComputedStyle(n),i=Ag(n)&&n.ownerSVGElement&&n.getBBox(),h=!N1&&t.boxSizing==="border-box",Q=x1.test(t.writingMode||""),r=!i&&eC.test(t.overflowY||""),D=!i&&eC.test(t.overflowX||""),w=i?0:ii(t.paddingTop),f=i?0:ii(t.paddingRight),S=i?0:ii(t.paddingBottom),F=i?0:ii(t.paddingLeft),G=i?0:ii(t.borderTopWidth),$=i?0:ii(t.borderRightWidth),H=i?0:ii(t.borderBottomWidth),K=i?0:ii(t.borderLeftWidth),y=F+f,B=w+S,N=K+$,v=G+H,k=D?n.offsetHeight-v-n.clientHeight:0,m=r?n.offsetWidth-N-n.clientWidth:0,p=h?y+N:0,u=h?B+v:0,s=i?i.width:ii(t.width)-p-m,g=i?i.height:ii(t.height)-u-k,l=s+y+m+N,d=g+B+k+v,C=co({devicePixelContentBoxSize:zo(Math.round(s*devicePixelRatio),Math.round(g*devicePixelRatio),Q),borderBoxSize:zo(l,d,Q),contentBoxSize:zo(s,g,Q),contentRect:new Xp(F,w,s,g)});return ms.set(n,C),C},iC=function(n,e,t){var i=nC(n,t),h=i.borderBoxSize,Q=i.contentBoxSize,r=i.devicePixelContentBoxSize;switch(e){case Yr.DEVICE_PIXEL_CONTENT_BOX:return r;case Yr.BORDER_BOX:return h;default:return Q}},F1=function(){function n(e){var t=nC(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=co([t.borderBoxSize]),this.contentBoxSize=co([t.contentBoxSize]),this.devicePixelContentBoxSize=co([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},R1=function(){var n=1/0,e=[];lo.forEach(function(Q){if(Q.activeTargets.length!==0){var r=[];Q.activeTargets.forEach(function(D){var w=new F1(D.target),f=oC(D.target);r.push(w),D.lastReportedSize=iC(D.target,D.observedBox),f<n&&(n=f)}),e.push(function(){Q.callback.call(Q.observer,r,Q.observer)}),Q.activeTargets.splice(0,Q.activeTargets.length)}});for(var t=0,i=e;t<i.length;t++){var h=i[t];h()}return n},rC=function(n){lo.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))})})},L1=function(){var n=0;for(rC(n);v1();)n=R1(),rC(n);return k1()&&_1(),n>0},eg,aC=[],G1=function(){return aC.splice(0).forEach(function(n){return n()})},P1=function(n){if(!eg){var e=0,t=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return G1()}).observe(t,i),eg=function(){t.textContent="".concat(e?e--:e++)}}aC.push(n),eg()},H1=function(n){P1(function(){requestAnimationFrame(n)})},Es=0,K1=function(){return!!Es},T1=250,U1={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},tg=!1,Y1=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=T1),!tg){tg=!0;var i=lC(e);H1(function(){var h=!1;try{h=L1()}finally{if(tg=!1,e=i-lC(),!K1())return;h?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,U1)};document.body?t():Or.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 Or.addEventListener(t,e.listener,!0)}))},n.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),sC.forEach(function(t){return Or.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},n}(),ng=new Y1,cC=function(n){!Es&&n>0&&ng.start(),Es+=n,!Es&&ng.stop()},O1=function(n){return!Ag(n)&&!S1(n)&&getComputedStyle(n).display==="inline"},$1=function(){function n(e,t){this.target=e,this.observedBox=t||Yr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var e=iC(this.target,this.observedBox,!0);return O1(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},n}(),z1=function(){function n(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return n}(),Qs=new WeakMap,gC=function(n,e){for(var t=0;t<n.length;t+=1)if(n[t].target===e)return t;return-1},fs=function(){function n(){}return n.connect=function(e,t){var i=new z1(e,t);Qs.set(e,i)},n.observe=function(e,t,i){var h=Qs.get(e),Q=h.observationTargets.length===0;gC(h.observationTargets,t)<0&&(Q&&lo.push(h),h.observationTargets.push(new $1(t,i&&i.box)),cC(1),ng.schedule())},n.unobserve=function(e,t){var i=Qs.get(e),h=gC(i.observationTargets,t),Q=i.observationTargets.length===1;h>=0&&(Q&&lo.splice(lo.indexOf(i),1),i.observationTargets.splice(h,1),cC(-1))},n.disconnect=function(e){var t=this,i=Qs.get(e);i.observationTargets.slice().forEach(function(h){return t.unobserve(e,h.target)}),i.activeTargets.splice(0,i.activeTargets.length)},n}(),J1=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.");fs.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");fs.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");fs.unobserve(this,e)},n.prototype.disconnect=function(){fs.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}();const Is=new WeakMap;function Z1(n){var e;for(let t=0,i=n.length;t<i;++t){const h=n[t],Q=Is.get(h.target);if(typeof Q=="function"){const{inlineSize:r,blockSize:D}=(e=h.borderBoxSize)==null?void 0:e[0],{offsetWidth:w,offsetHeight:f}=h.target;Q(Object.assign(h,{offsetWidth:w,offsetHeight:f,width:r??w,height:D??f}))}}}const dC=new(so&&window.ResizeObserver||J1)(Z1);function uC(n,e){Is.set(n,e),dC.observe(n)}function hC(n){Is.has(n)&&(dC.unobserve(n),Is.delete(n))}function W1(n={}){let e=Tr;const t=A.watch(()=>A.unref(n.target),h=>{e(),!(!h||typeof n.onResize!="function")&&(uC(h,n.onResize),e=()=>{hC(h),e=Tr})},{immediate:!0}),i=()=>{t(),e()};return A.getCurrentScope()&&A.onScopeDispose(i),{observeResize:uC,unobserveResize:hC,unobserve:i}}const j1=A.ref(!1);A.computed(()=>j1.value);const pC="__theme_style__",ig="__theme_observer__",CC=A.reactive(new Map),BC=new Map;A.watch(CC,()=>{if(!so)return;BC.clear();const n=document.head.querySelector(`#${pC}`);n&&document.head.removeChild(n);const e=document.createElement("style");let t=`.${ig} { width: 1px }`,i=1;for(const[h,[Q,r]]of CC.entries())t+=` html.${Q} .${ig}, .${r} .${ig} { width: ${++i}px }`,BC.set(i,h);e.textContent=t,e.id=pC,document.head.appendChild(e)});const q1=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,h=t,Q=A.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),r=new Map,D=A.ref(i.layout),w=A.ref(),{observeResize:f,unobserveResize:S}=W1(),F=jv();F.on("resizeEvent",G),F.on("dragEvent",$),A.onBeforeMount(()=>{h("layout-before-mount",D.value)}),A.onMounted(()=>{h("layout-mounted",D.value),A.nextTick(()=>{a1(D.value),Q.originalLayout=D.value,A.nextTick(()=>{g(),w.value&&f(w.value,qv(v,16)),$o(D.value,i.verticalCompact),h("layout-updated",D.value),N(),v()})})}),A.onBeforeUnmount(()=>{F.clearAll(),w.value&&S(w.value)});function G(d,C,o,a,E,I){u(d,C,o,a,E,I)}function $(d,C,o,a,E,I){p(d,C,o,a,E,I)}A.watch(()=>Q.width,(d,C)=>{A.nextTick(()=>{F.emit("updateWidth",d),C===-1&&A.nextTick(()=>{h("layout-ready",D.value)}),N()})}),A.watch(()=>[i.layout,i.layout.length],()=>{D.value=i.layout,B()}),A.watch(()=>i.colNum,d=>{F.emit("setColNum",d)}),A.watch(()=>i.rowHeight,d=>{F.emit("setRowHeight",d)}),A.watch(()=>i.isDraggable,d=>{F.emit("setDraggable",d)}),A.watch(()=>i.isResizable,d=>{F.emit("setResizable",d)}),A.watch(()=>i.isBounded,d=>{F.emit("setBounded",d)}),A.watch(()=>i.transformScale,d=>{F.emit("setTransformScale",d)}),A.watch(()=>i.responsive,d=>{d||(h("update:layout",Q.originalLayout),F.emit("setColNum",i.colNum)),v()}),A.watch(()=>i.maxRows,d=>{F.emit("setMaxRows",d)}),A.watch([()=>i.margin,()=>i.margin[1]],N),A.provide(Fp,A.reactive({...A.toRefs(i),...A.toRefs(Q),increaseItem:H,decreaseItem:K})),A.provide(Rp,F),e({state:Q,getItem:y,resizeEvent:u,dragEvent:p,layoutUpdate:B});function H(d){r.set(d.i,d)}function K(d){r.delete(d.i)}function y(d){return r.get(d)}function B(){if(!In(D.value)&&!In(Q.originalLayout)){if(D.value.length!==Q.originalLayout.length){const d=l(D.value,Q.originalLayout);if(d.length>0)if(D.value.length>Q.originalLayout.length)Q.originalLayout=Q.originalLayout.concat(d);else{const C=new Set(d.map(o=>o.i));Q.originalLayout=Q.originalLayout.filter(o=>!C.has(o.i))}Q.lastLayoutLength=D.value.length,g()}$o(D.value,i.verticalCompact),F.emit("updateWidth",Q.width),N(),h("layout-updated",D.value)}}function N(){Q.mergedStyle={height:k()}}function v(){w.value&&(Q.width=w.value.offsetWidth),F.emit("resizeEvent")}function k(){if(!i.autoSize)return;const d=parseFloat(i.margin[1]);return Vv(D.value)*(i.rowHeight+d)+d+"px"}let m;function p(d,C,o,a,E,I){let M=Gp(D.value,C);In(M)&&(M={h:0,w:0,x:0,y:0,i:""}),d==="dragstart"&&!i.verticalCompact&&(m=D.value.reduce((x,{i:T,x:Y,y:AA})=>({...x,[T]:{x:Y,y:AA}}),{})),d==="dragmove"||d==="dragstart"?(Q.placeholder.i=C,Q.placeholder.x=M.x,Q.placeholder.y=M.y,Q.placeholder.w=I,Q.placeholder.h=E,A.nextTick(()=>{Q.isDragging=!0}),F.emit("updateWidth",Q.width)):A.nextTick(()=>{Q.isDragging=!1}),D.value=Xc(D.value,M,o,a,!0,i.preventCollision),i.restoreOnDrag?(M.static=!0,$o(D.value,i.verticalCompact,m),M.static=!1):$o(D.value,i.verticalCompact),F.emit("compact"),N(),d==="dragend"&&(m=void 0,h("layout-updated",D.value))}function u(d,C,o,a,E,I){let M=Gp(D.value,C);In(M)&&(M={h:0,w:0,x:0,y:0,i:""});let x;if(i.preventCollision){const T=Pp(D.value,{...M,w:I,h:E}).filter(Y=>Y.i!==M.i);if(x=T.length>0,x){let Y=1/0,AA=1/0;T.forEach(eA=>{eA.x>M.x&&(Y=Math.min(Y,eA.x)),eA.y>M.y&&(AA=Math.min(AA,eA.y))}),Number.isFinite(Y)&&(M.w=Y-M.x),Number.isFinite(AA)&&(M.h=AA-M.y)}}x||(M.w=I,M.h=E),d==="resizestart"||d==="resizemove"?(Q.placeholder.i=C,Q.placeholder.x=o,Q.placeholder.y=a,Q.placeholder.w=M.w,Q.placeholder.h=M.h,A.nextTick(()=>{Q.isDragging=!0}),F.emit("updateWidth",Q.width)):d&&A.nextTick(()=>{Q.isDragging=!1}),i.responsive&&s(),$o(D.value,i.verticalCompact),F.emit("compact"),N(),d==="resizeend"&&h("layout-updated",D.value)}function s(){const d=g1(i.breakpoints,Q.width);if(d===Q.lastBreakpoint)return;const C=Op(d,i.cols);!In(Q.lastBreakpoint)&&!Q.layouts[Q.lastBreakpoint]&&(Q.layouts[Q.lastBreakpoint]=qc(D.value));const o=d1(Q.originalLayout,Q.layouts,i.breakpoints,d,Q.lastBreakpoint,C,i.verticalCompact);Q.layouts[d]=o,Q.lastBreakpoint!==d&&h("breakpoint-changed",d,o),D.value=o,h("update:layout",o),Q.lastBreakpoint=d,F.emit("setColNum",C)}function g(){Q.layouts=Object.assign({},i.responsiveLayouts)}function l(d,C){const o=new Set(C.map(M=>M.i)),a=new Set(d.map(M=>M.i)),E=d.filter(M=>!o.has(M.i)),I=C.filter(M=>!a.has(M.i));return E.concat(I)}return(d,C)=>(A.openBlock(),A.createElementBlock("div",{ref_key:"wrapper",ref:w,class:"vgl-layout",style:A.normalizeStyle(Q.mergedStyle)},[d.$slots.default?A.renderSlot(d.$slots,"default",{key:0}):(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:1},A.renderList(D.value,o=>(A.openBlock(),A.createBlock(Vc,A.mergeProps({key:o.i,ref_for:!0},o),{default:A.withCtx(()=>[A.renderSlot(d.$slots,"item",{item:o})]),_:2},1040))),128)),A.withDirectives(A.createVNode(Vc,{class:"vgl-item--placeholder",x:Q.placeholder.x,y:Q.placeholder.y,w:Q.placeholder.w,h:Q.placeholder.h,i:Q.placeholder.i},null,8,["x","y","w","h","i"]),[[A.vShow,Q.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 rt=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=Ai(),h=Ct(),Q=A.ref({});function r(F,G){F&&(Q.value[G]=F)}let D=[];const w=()=>{if(!t.value)return;const F=new Map;for(const G of t.value)F.has(G.x)||F.set(G.x,[]),F.get(G.x).push(G);for(const G of F.values()){G.sort((H,K)=>H.y-K.y);let $=0;for(const H of G)H.y=$,$+=H.h}t.value=[...t.value]},f=e,S=()=>{f("gridItemMoved")};return A.onMounted(()=>{Object.keys(Q.value).forEach(F=>{const G=Q.value[F];if(!G)return;const $=new ResizeObserver(H=>{for(let K of H){const y=K.contentRect.height+28;if(t.value){const B=t.value[0].rowHeight||30,N=t.value.find(v=>v.i===F);N&&(N.contentHeight=Math.ceil((y+8)/(B+8)),N.h>0&&(N.h=Math.ceil((y+8)/(B+8))))}}w()});$.observe(G),D.push($)})}),A.onBeforeUnmount(()=>{D.forEach(F=>F.disconnect()),D=[]}),(F,G)=>A.unref(h).design?(A.openBlock(),A.createBlock(jc,{key:0,list:F.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,($,H)=>(A.openBlock(),A.createBlock(A.unref(Vc),{onMoved:S,key:$.i,x:$.x,y:$.y,w:$.w,h:$.h,i:$.i,class:A.normalizeClass($.h===0?"noPadding":"defaultPadding")},{default:A.withCtx(()=>[A.createElementVNode("div",{ref_for:!0,ref:K=>r(K,$.i)},[A.createVNode(ao,A.mergeProps({ref_for:!0},F.list[H]),null,16)],512)]),_:2},1032,["x","y","w","h","i","class"]))),128)):(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:2},A.renderList(F.list,$=>(A.openBlock(),A.createBlock(ao,A.mergeProps({key:$.name,ref_for:!0},$),null,16))),128))}}),X1={key:0,class:"btn-render-wrapper"},Fn=ae(A.defineComponent({__name:"ButtonRender",props:{btns:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref({}),h=async r=>{if(r.onClick&&e){try{(r.text||r.label)&&(i.value[r.key]=!0),await e[r.onClick](t,r)}catch(D){console.error(D+`
101
101
  onClick: ${r.onClick}`)}i.value[r.key]=!1}},Q=r=>({...r,name:r.key,component:"Popover"});return(r,D)=>{const w=A.resolveComponent("el-button"),f=A.resolveComponent("el-tooltip"),S=A.resolveComponent("el-button-group");return r.btns&&r.btns.length>0?(A.openBlock(),A.createElementBlock("div",X1,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(r.btns,F=>{var G,$;return A.openBlock(),A.createElementBlock(A.Fragment,{key:F.key},[F.component==="Popover"?(A.openBlock(),A.createBlock(rt,{key:0,list:[Q(F)]},null,8,["list"])):F.component==="BtnGroup"?(A.openBlock(),A.createBlock(S,{key:1},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(F.children,H=>(A.openBlock(),A.createBlock(f,{key:H.key,disabled:!H.tooltip,content:H.tooltip,placement:"top"},{default:A.withCtx(()=>[H.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(w,{key:H.key,onClick:K=>h(H),disabled:H.disabled,type:H.type,text:H.isTextBtn,link:H.isLinkBtn,plain:H.isPlainBtn||H.type!=="primary"&&!H.orange,color:H.orange?"#FAA21E":H.color,loading:i.value[H.key],class:A.normalizeClass({orangeBtn:H.orange})},{default:A.withCtx(()=>[H.icon?(A.openBlock(),A.createBlock(ke,{key:0,name:H.icon.name,color:H.icon.color,class:A.normalizeClass({"btn-icon":H.text||H.label})},null,8,["name","color","class"])):A.createCommentVNode("",!0),A.createTextVNode(" "+A.toDisplayString(H.text||H.label),1)]),_:2},1032,["onClick","disabled","type","text","link","plain","color","loading","class"]))]),_:2},1032,["disabled","content"]))),128))]),_:2},1024)):F.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(f,{key:2,disabled:!((G=F==null?void 0:F.icon)!=null&&G.tooltip),content:($=F==null?void 0:F.icon)==null?void 0:$.tooltip,placement:"top"},{default:A.withCtx(()=>[A.createVNode(w,{onClick:H=>h(F),disabled:F.disabled,type:F.type,text:F.isTextBtn,link:F.isLinkBtn,plain:F.isPlainBtn||F.type!=="primary"&&!F.orange,color:F.orange?"#FAA21E":F.color,loading:i.value[F.key],size:F.size,style:A.normalizeStyle(F.style),class:A.normalizeClass({orangeBtn:F.orange,"is-icon":F.icon&&!F.text&&!F.label,"has-border":F.hasBorder}),id:F.key},{default:A.withCtx(()=>{var H;return[A.createElementVNode("div",{class:A.normalizeClass(["flex items-center gap-2 direction",{"flex-row-reverse":F.isReverse}])},[F.icon?(A.openBlock(),A.createBlock(ke,{key:0,name:F.icon.name,color:F.icon.color,size:((H=F==null?void 0:F.icon)==null?void 0:H.size)||"mini",class:A.normalizeClass({"btn-icon":F.text||F.label})},null,8,["name","color","size","class"])):A.createCommentVNode("",!0),A.createTextVNode(" "+A.toDisplayString(F.text||F.label),1)],2)]}),_:2},1032,["onClick","disabled","type","text","link","plain","color","loading","size","style","class","id"])]),_:2},1032,["disabled","content"]))],64)}),128))])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-e9b83f17"]]),V1={key:0,class:"dropdown-render-wrapper"},Ak=ae(A.defineComponent({__name:"dropdownRender",props:{dropdowns:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=async(h,Q)=>{if(Q.onClick&&e)try{await e[Q.onClick](t,h)}catch(r){console.error(r+`
102
- onClick: ${Q.onClick}`)}};return(h,Q)=>{const r=A.resolveComponent("el-button"),D=A.resolveComponent("el-dropdown-item"),w=A.resolveComponent("el-dropdown-menu"),f=A.resolveComponent("el-dropdown");return h.dropdowns&&h.dropdowns.length>0?(A.openBlock(),A.createElementBlock("div",V1,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(h.dropdowns,S=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:S.key},[S.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(f,{key:0,disabled:S.disabled},{dropdown:A.withCtx(()=>[A.createVNode(w,null,{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(S.options,F=>(A.openBlock(),A.createBlock(D,{key:F.value,command:F.value,onClick:G=>i(F,S)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(F.label),1)]),_:2},1032,["command","onClick"]))),128))]),_:2},1024)]),default:A.withCtx(()=>[A.createVNode(r,{plain:"",color:S.color},{default:A.withCtx(()=>{var F,G;return[S.icon?(A.openBlock(),A.createBlock(ke,{key:0,name:(F=S.icon)==null?void 0:F.name,class:"left-icon",color:(G=S.icon)==null?void 0:G.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(S.text),1),A.createVNode(ke,{name:"icon-gongnengjixiajiantou",class:"right-icon"})]}),_:2},1032,["color"])]),_:2},1032,["disabled"]))],64))),128))])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-b9eeb69a"]]),ek=["title"],tk={class:"suffix-slots"},nk=ae(A.defineComponent({__name:"Input",props:A.mergeModels({onChange:{},onInput:{},onEnter:{},rulePath:{},read:{type:Boolean},readTextColor:{},onClick:{},suffixSlots:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=Ct(),t=A.computed(()=>w.read||e.schema.read),i=A.useModel(n,"modelValue"),h=A.useAttrs(),Q=A.computed(()=>h.inputColor?`--input-color: ${h.inputColor}`:"--input-color: var(--el-input-text-color)"),r=A.computed(()=>h.inputColor?`el-input--${h.styleType} el-input custom-input-color`:`el-input--${h.styleType} el-input`),D=()=>{i.value&&(i.value=i.value.trim())},w=n,f=A.inject("ruleModule",void 0),S=A.inject("pageMethodMap",{}),F=y=>{const B=["E","e","+","-"];h.type==="number"&&B.includes(y.key)&&y.preventDefault()},G=y=>{if(w.onInput&&f)try{f[w.onInput](S,y)}catch(B){console.error(B+`
102
+ onClick: ${Q.onClick}`)}};return(h,Q)=>{const r=A.resolveComponent("el-button"),D=A.resolveComponent("el-dropdown-item"),w=A.resolveComponent("el-dropdown-menu"),f=A.resolveComponent("el-dropdown");return h.dropdowns&&h.dropdowns.length>0?(A.openBlock(),A.createElementBlock("div",V1,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(h.dropdowns,S=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:S.key},[S.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(f,{key:0,disabled:S.disabled},{dropdown:A.withCtx(()=>[A.createVNode(w,null,{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(S.options,F=>(A.openBlock(),A.createBlock(D,{key:F.value,command:F.value,onClick:G=>i(F,S)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(F.label),1)]),_:2},1032,["command","onClick"]))),128))]),_:2},1024)]),default:A.withCtx(()=>[A.createVNode(r,{plain:"",color:S.color},{default:A.withCtx(()=>{var F,G;return[S.icon?(A.openBlock(),A.createBlock(ke,{key:0,name:(F=S.icon)==null?void 0:F.name,class:"left-icon",color:(G=S.icon)==null?void 0:G.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(S.text),1),A.createVNode(ke,{name:"icon-gongnengjixiajiantou",class:"right-icon"})]}),_:2},1032,["color"])]),_:2},1032,["disabled"]))],64))),128))])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-b9eeb69a"]]),ek=["title"],tk={class:"suffix-slots"},nk=ae(A.defineComponent({__name:"Input",props:A.mergeModels({onChange:{},onInput:{},onEnter:{},rulePath:{},read:{type:Boolean},readTextColor:{},onClick:{},suffixSlots:{},type:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=Ct(),t=A.computed(()=>w.read||e.schema.read),i=A.useModel(n,"modelValue"),h=A.useAttrs(),Q=A.computed(()=>h.inputColor?`--input-color: ${h.inputColor}`:"--input-color: var(--el-input-text-color)"),r=A.computed(()=>h.inputColor?`el-input--${h.styleType} el-input custom-input-color`:`el-input--${h.styleType} el-input`),D=()=>{i.value&&(i.value=i.value.trim())},w=n,f=A.inject("ruleModule",void 0),S=A.inject("pageMethodMap",{}),F=y=>{const B=y;if(!(w.type!=="number"||B.ctrlKey||B.metaKey||["Backspace","Delete","ArrowLeft","ArrowRight","Tab"].includes(B.key))&&!/[0-9]/.test(B.key)){y.preventDefault();return}},G=y=>{if(w.onInput&&f)try{f[w.onInput](S,y)}catch(B){console.error(B+`
103
103
  onInput: ${w.onInput}`)}},$=y=>{if(w.onEnter&&f)try{y.stopPropagation(),f[w.onEnter](S,y)}catch(B){console.error(B+`
104
104
  onEnter: ${w.onEnter}`)}},H=y=>{if(w.onChange&&f)try{f[w.onChange](S,y)}catch(B){console.error(B+`
105
105
  onChange: ${w.onChange}`)}},K=()=>{if(w.onClick&&f)try{f[w.onClick](S,i.value)}catch(y){console.error(y+`
106
- onClick: ${w.onClick}`)}};return(y,B)=>{const N=A.resolveComponent("el-input");return t.value?(A.openBlock(),A.createElementBlock("span",{key:0,title:i.value||"--",style:A.normalizeStyle({color:i.value?y.readTextColor:void 0,overflow:"hidden",textOverflow:"ellipsis"}),class:A.normalizeClass(y.onClick?"cursor-pointer":""),onClick:K},A.toDisplayString(i.value||"--"),15,ek)):(A.openBlock(),A.createBlock(N,A.mergeProps({key:1},y.$attrs,{class:r.value,style:Q.value,modelValue:i.value,"onUpdate:modelValue":B[0]||(B[0]=v=>i.value=v),onInput:G,onChange:H,onKeydown:F,onKeyup:A.withKeys($,["enter"]),onBlur:D,onClick:K}),A.createSlots({_:2},[y.suffixSlots&&y.suffixSlots.length>0?{name:"suffix",fn:A.withCtx(()=>[A.createElementVNode("div",tk,[A.createVNode(A.unref(rt),{list:y.suffixSlots},null,8,["list"])])]),key:"0"}:void 0]),1040,["class","style","modelValue"]))}}}),[["__scopeId","data-v-62a993ef"]]),ik={title:"单行文本",component:"Input",icon:A.h(we,{name:"input"}),type:"basic",order:1,attrSchema:h0,render:nk},ok={size:"small",labelPosition:"top",items:[{label:"标签",component:"Input",name:"label",initialValue:"多行文本"},{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",initialValue:"请输入..."},{label:"初始值",component:"Input",name:"initialValue"},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否只读",component:"Switch",name:"props.readonly"},{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.clearable"},{label:"最长字数",component:"InputNumber",name:"props.maxlength"},{label:"最小行数",component:"InputNumber",name:"props.autosize.minRows",initialValue:4},{label:"最大行数",component:"InputNumber",name:"props.autosize.maxRows",initialValue:999}]},rk={title:"多行文本",component:"TextArea",icon:A.h(we,{name:"textarea"}),type:"basic",order:2,attrSchema:ok,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>BM))},ak={size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"隐藏标签",component:"Switch",name:"hideLabel",initialValue:!0},{label:"标题",component:"Input",name:"props.title",initialValue:"提示信息"},{label:"描述",component:"TextArea",name:"props.description",initialValue:"这是一个描述"},{label:"是否可关闭",component:"Switch",name:"props.closable",initialValue:!0},{label:"显示图标",component:"Switch",name:"props.show-icon",initialValue:!0},{label:"类型",component:"Radio",name:"props.type",props:{mode:"static",options:[{label:"成功",value:"success"},{label:"信息",value:"info"},{label:"警告",value:"warning"},{label:"错误",value:"error"}]},initialValue:"info"},{label:"主题",component:"Radio",name:"props.effect",props:{mode:"static",options:[{label:"浅色",value:"light"},{label:"深色",value:"dark"}]},initialValue:"light"}]},sk=["onClick"],lk={key:1,class:"bold-style"},ck=ae(A.defineComponent({__name:"Alert",props:{description:{},values:{},type:{},icon:{},closable:{type:Boolean,default:!1}},setup(n){const e=n,{ruleModule:t,pageMethodMap:i}=wn(),h=(D,w,f)=>{console.log(D,w,f);try{t[D](i,w,f)}catch(S){console.error(S)}},Q=A.computed(()=>{const D=/\{(\d+)\}/g,w=[];let f=0,S;for(;(S=D.exec(e.description))!==null;)S.index>f&&w.push({type:"text",value:e.description.slice(f,S.index)}),w.push({type:"value",index:Number(S[1])}),f=D.lastIndex;return f<e.description.length&&w.push({type:"text",value:e.description.slice(f)}),w}),r=A.computed(()=>e.icon?e.icon:e.type?{primary:{name:"icon-tishitubiao",color:"var(--el-color-primary)"},success:{name:"icon-successtubiao",color:"var(--el-color-primary)"},warning:{name:"icon-gaojingtongzhitishi",color:"#FF0D00"},info:{name:"icon-tishitubiao",color:"#999999"},error:{name:"icon-tishitubiao",color:"#FF0D00"}}[e.type]:{name:"icon-tishitubiao",color:"#999999"});return(D,w)=>{const f=A.resolveComponent("el-alert");return D.description?(A.openBlock(),A.createBlock(f,A.mergeProps({key:0},D.$attrs,{type:D.type,class:"alert-container",closable:D.closable}),{icon:A.withCtx(()=>[A.createVNode(ke,{name:r.value.name,color:r.value.color},null,8,["name","color"])]),default:A.withCtx(()=>[A.createElementVNode("div",null,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(Q.value,(S,F)=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:F},[S.type==="text"?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[A.createTextVNode(A.toDisplayString(S.value),1)],64)):(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[typeof S.index=="number"&&e.values&&e.values[S.index]&&typeof e.values[S.index].onClick=="string"?(A.openBlock(),A.createElementBlock("span",{key:0,class:"link-style",onClick:G=>h(e.values[S.index].onClick,e.values[S.index].text,e.values[S.index])},A.toDisplayString(typeof S.index=="number"&&e.values&&e.values[S.index]?e.values[S.index].text:""),9,sk)):(A.openBlock(),A.createElementBlock("span",lk,A.toDisplayString(typeof S.index=="number"&&e.values&&e.values[S.index]?e.values[S.index].text:""),1))],64))],64))),128))])]),_:1},16,["type","closable"])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-5ca945a3"]]),gk={title:"提示框",component:"Alert",icon:A.h(we,{name:"alert"}),type:"assist",order:2,attrSchema:ak,render:ck},dk={title:"卡片",component:"Card",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>fM)),icon:A.h(we,{name:"card"}),type:"layout",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"卡片标题",component:"Input",name:"props.header",initialValue:"卡片"},{label:"支持折叠",component:"Switch",name:"props.collapsible"}]}},uk={size:"small",labelPosition:"top",initialValues:{label:"级联选择器",props:{placeholder:"请选择...",mode:"static",options:[{label:"选项1",value:"value1",children:[{label:"选项1-1",value:"value1-1"},{label:"选项1-2",value:"value1-2"},{label:"选项1-3",value:"value1-2"}]},{label:"选项2",value:"value2",children:[{label:"选项2-1",value:"value2-1"},{label:"选项2-2",value:"value2-2"},{label:"选项2-3",value:"value2-2"}]},{label:"选项3",value:"value3"}],labelKey:"label",valueKey:"value"}},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"},{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:"Switch",name:"props.showAllLevels",initialValue:!0},{component:"Divider",props:{title:"选项设置",contentPosition:"center"},designKey:"design-gSnX",name:"form-xDEe",style:{marginTop:"40px"}},{label:"标签key",component:"Input",name:"props.labelKey",designKey:"form-X6hs"},{label:"值Key",component:"Input",name:"props.valueKey",designKey:"form-STkl"},{label:"数据模式",component:"Radio",name:"props.mode",props:{mode:"static",options:[{label:"静态",value:"static"},{label:"远程",value:"remote"}],optionType:"button",space:0},initialValue:"static",designKey:"form-PLpj"},{label:"静态选项",name:"props.options",component:"JsonEdit",dialog:!0},{component:"Card",props:{},designKey:"id-pGeN",name:"form-6vzT",hidden:'{{$values.props.mode==="static"}}',children:[{label:"url",component:"Input",name:"props.api.url",initialValue:"/current/query/article",designKey:"form-UrE8"},{label:"请求方式",component:"Radio",name:"props.api.method",props:{mode:"static",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"DELETE",value:"DELETE"}]},designKey:"form-nOpD"},{label:"请求参数",component:"JsonEdit",name:"props.api.params",initialValue:{},dialog:!0},{label:"数据路径",component:"Input",name:"props.api.dataPath",initialValue:"data",designKey:"form-UrE8"}]}]},hk={title:"级联选择器",icon:A.h(we,{name:"cascader"}),type:"basic",component:"Cascader",attrSchema:uk,order:7,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>IM))},pk={size:"small",labelPosition:"top",items:[{label:"标签",component:"Input",name:"label",initialValue:"JSON编辑器"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否只读",component:"Switch",name:"props.readonly"},{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:"JsonEdit",name:"initialValue",dialog:!0}]},Ck={title:"JSON编辑",component:"JsonEdit",icon:A.h(we,{name:"jsonEdit"}),type:"basic",order:14,attrSchema:pk,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>_M))},Bk={size:"small",labelPosition:"top",initialValues:{label:"多选框组",component:"Checkbox",props:{mode:"static",options:[{label:"选项1",value:"value1"},{label:"选项2",value:"value2"},{label:"选项3",value:"value3"}],labelKey:"label",valueKey:"value",optionType:"circle",direction:"horizontal",space:20}},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:!0}},{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:"Radio",name:"props.optionType",props:{mode:"static",options:[{label:"无边框",value:"circle"},{label:"边框",value:"border"},{label:"按钮",value:"button"}]}},{label:"选项排列方向",component:"Radio",name:"props.direction",props:{mode:"static",options:[{label:"水平排列",value:"horizontal"},{label:"垂直排列",value:"vertical"}]}},{label:"选项间距(px)",component:"InputNumber",name:"props.space"},...Fa]},mk={title:"多选框组",icon:A.h(we,{name:"checkbox"}),type:"basic",component:"Checkbox",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>xM)),order:4,attrSchema:Bk},Ek={size:"small",labelPosition:"top",initialValues:{label:"颜色选择器",component:"ColorPicker"},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:"ColorPicker",name:"initialValue"},{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"}]},Qk={title:"颜色选择器",component:"ColorPicker",render:"ElColorPicker",icon:A.h(we,{name:"colorPicker"}),type:"basic",order:9,attrSchema:Ek},fk={size:"small",labelPosition:"top",initialValues:{label:"颜色输入框",component:"ColorInput"},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:"ColorPicker",name:"initialValue"},{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"}]},Ik={title:"颜色输入框",component:"ColorInput",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>FM)),icon:A.h(we,{name:"colorPicker"}),type:"high",order:2,attrSchema:fk},wk={size:"small",labelPosition:"top",initialValues:{label:"自定义组件"},items:[{label:"自定义组件名称",component:"Input",name:"props.componentName",props:{placeholder:"全局组件名称"}},{label:"props",component:"JsonEdit",name:"props",dialog:!0},{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:"initialValue"},{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"}]},bk={title:"自定义组件",component:"Custom",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>LM)),icon:A.h(we,{name:"custom"}),type:"high",order:99,attrSchema:wk},yk={size:"small",labelPosition:"top",initialValues:{label:"日期选择器",props:{type:"datetime",placeholder:"请选择日期",clearable:!1}},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"},{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:"Radio",name:"props.type",props:{mode:"static",options:[{label:"日期时间",value:"datetime"},{label:"日期",value:"date"},{label:"年月",value:"month"},{label:"日期范围",value:"daterange"},{label:"日期时间范围",value:"datetimerange"}]}}]},Dk={title:"日期选择器",component:"DatePicker",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>PM)),icon:A.h(we,{name:"datePicker"}),type:"basic",order:9,attrSchema:yk},vk={size:"small",labelPosition:"top",initialValues:{props:{title:"分割线"}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"标题",component:"Input",name:"props.title"},{label:"标题位置",component:"Radio",name:"props.contentPosition",props:{mode:"static",options:[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}]},initialValue:"center",designKey:"form-PLpj"}]},kk={title:"分割线",component:"Divider",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>HM)),icon:A.h(we,{name:"divider"}),type:"assist",order:6,attrSchema:vk},_k={size:"small",labelPosition:"top",initialValues:{label:"电子签名",props:{width:700,height:300,lineWidth:6,lineColor:"#000000",bgColor:"#eeeeee",format:"image/png"}},items:[{label:"标签",component:"Input",name:"label"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{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:"画板宽度(px)",component:"InputNumber",name:"props.width"},{label:"画板高度(px)",component:"InputNumber",name:"props.height"},{label:"画笔粗细-初始",component:"InputNumber",name:"props.lineWidth"},{label:"画笔颜色-初始",component:"ColorPicker",name:"props.lineColor"},{label:"画板背景色-初始",component:"ColorPicker",name:"props.bgColor"},{label:"生成图片格式",component:"Radio",name:"props.format",props:{mode:"static",options:[{label:"PNG",value:"image/png"},{label:"JPG",value:"image/jpg"},{label:"JPEG",value:"image/jpeg"},{label:"WEBP",value:"image/webp"}]},designKey:"form-PLpj"}]},Mk={title:"电子签名",component:"Esign",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>JM)),icon:A.h(we,{name:"esign"}),type:"basic",order:11,attrSchema:_k},Sk={size:"small",labelPosition:"top",initialValues:{label:"单选框组",props:{mode:"static",options:[{label:"选项1",value:"value1"},{label:"选项2",value:"value2"},{label:"选项3",value:"value3"}],labelKey:"label",valueKey:"value",optionType:"circle",direction:"horizontal",space:20}},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}}"}},{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:"Radio",name:"props.optionType",props:{mode:"static",options:[{label:"无边框",value:"circle"},{label:"边框",value:"border"},{label:"按钮",value:"button"}]}},{label:"选项排列方向",component:"Radio",name:"props.direction",props:{mode:"static",options:[{label:"水平排列",value:"horizontal"},{label:"垂直排列",value:"vertical"}]}},{label:"选项间距(px)",component:"InputNumber",name:"props.space"},...Fa]},xk={title:"单选框组",icon:A.h(we,{name:"radio"}),type:"basic",component:"Radio",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>WM)),order:3.5,attrSchema:Sk},Nk={size:"small",labelPosition:"top",initialValues:{label:"自增容器",children:[],props:{mode:"table",title:"数据",minLines:0,maxLines:999,allowAdd:!0,allowReduce:!0}},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"},{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:"Radio",name:"props.mode",props:{mode:"static",options:[{label:"表格",value:"table"},{label:"卡片",value:"card"},{label:"行内",value:"inline"}]}},{label:"自增前缀",component:"Input",name:"props.title"},{label:"最小行数",component:"InputNumber",props:{min:0},name:"props.minLines"},{label:"最大行数",component:"InputNumber",props:{min:0},name:"props.maxLines"},{label:"允许新增行",component:"Switch",name:"props.allowAdd"},{label:"允许删除行",component:"Switch",name:"props.allowReduce"}]},Fk={title:"自增容器",component:"FormList",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>eS)),icon:A.h(we,{name:"formList"}),type:"high",order:20,attrSchema:Nk},Rk={title:"栅格布局",type:"layout",icon:A.h(we,{name:"grid"}),component:"Grid",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>tS)),order:3,lbTitle:!0,attrSchema:{size:"small",labelPosition:"top",initialValues:{props:{columns:2}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"列数",component:"InputNumber",name:"props.columns",initialValue:2},{label:"列间距",component:"InputNumber",name:"props.columnGap",props:{unit:"px"}},{label:"行间距",component:"InputNumber",name:"props.rowGap",props:{unit:"px"}},{label:"列对齐方式",component:"Select",name:"props.alignItems",props:{mode:"static",options:[{label:"stretch",value:"stretch"},{label:"center",value:"center"},{label:"start",value:"start"},{label:"end",value:"end"}]}}]}},Lk={title:"行内布局",icon:A.h(we,{name:"inline"}),type:"layout",component:"Inline",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>nS)),order:2,lbTitle:!0,attrSchema:{size:"small",labelPosition:"top",initialValues:{props:{align:"left",gap:20}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"对齐方式",component:"Radio",name:"props.align",props:{mode:"static",options:[{label:"左对齐",value:"left"},{label:"居中",value:"center"},{label:"右对齐",value:"right"},{label:"两端对齐",value:"space-between"},{label:"环绕对齐",value:"space-around"},{label:"均匀对齐",value:"space-evenly"}]},initialValue:"left"},{label:"间距大小",component:"InputNumber",name:"props.gap",props:{unit:"px"}},{label:"自动换行",component:"Switch",name:"props.autoWrap"}]}},Gk={size:"small",labelPosition:"top",initialValues:{label:"计数器",props:{min:1,max:999,step:1,controlsPosition:""}},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"},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否只读",component:"Switch",name:"props.readonly"},{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:"InputNumber",name:"initialValue"},{label:"按钮位置",component:"Radio",name:"props.controlsPosition",props:{mode:"static",options:[{label:"两侧",value:""},{label:"内部",value:"right"}]},initialValue:""},{label:"最小值",component:"InputNumber",name:"props.min"},{label:"最大值",component:"InputNumber",name:"props.max"},{label:"步长",component:"InputNumber",name:"props.step"}]},Pk={title:"计数器",icon:A.h(we,{name:"inputNumber"}),type:"basic",order:5,component:"InputNumber",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>oS)),attrSchema:Gk},Hk={size:"small",labelPosition:"top",initialValues:{label:"密码输入框",props:{placeholder:"请输入密码"}},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"},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否只读",component:"Switch",name:"props.readonly"},{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:"FormList",name:"rules",dialog:!0,children:[{label:"类型",component:"Select",props:{mode:"static",options:[{label:"不少于8位,由字母+数字组成",value:"^(?=.*[a-zA-Z])(?=.*\\d)[a-zA-Z\\d]{8,}$"},{label:"不少于8位,至少包含一个大写字母、一个小写字母和一个数字",value:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[A-Za-z\\d]{8,}$"},{label:"不包含空格",value:"^\\S*$"},{label:"自定义正则",value:"custom"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P",name:"type"},{label:"自定义正则",component:"Input",props:{placeholder:"请输入正则表达式"},designKey:"form-Wdb2Reg",name:"customReg",hidden:'{{$item.type!=="custom"}}'},{label:"提示语",component:"Input",props:{placeholder:"请输入..."},designKey:"form-Wdb2",name:"message"},{label:"校验时机",component:"Checkbox",props:{mode:"static",options:[{label:"失去焦点时",value:"blur"},{label:"输入时",value:"change"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P6666",name:"trigger"}],designKey:"form-89tI",props:{mode:"card"}},{label:"显示清除按钮",component:"Switch",name:"props.clearable"}]},Kk={key:0},Tk={title:"密码输入框",component:"Password",render:A.defineComponent({__name:"Password",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=Ct();return(i,h)=>{var r;const Q=A.resolveComponent("el-input");return A.unref(t).schema.read?(A.openBlock(),A.createElementBlock("span",Kk,A.toDisplayString((r=e.value)==null?void 0:r.replace(/./g,"*")),1)):(A.openBlock(),A.createBlock(Q,A.mergeProps({key:1},i.$attrs,{modelValue:e.value,"onUpdate:modelValue":h[0]||(h[0]=D=>e.value=D),type:"password"}),null,16,["modelValue"]))}}}),icon:A.h(we,{name:"password"}),type:"basic",order:3,attrSchema:Hk},Uk={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"},...Fa]},Yk={title:"下拉选择框",type:"basic",icon:A.h(we,{name:"select"}),component:"Select",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>aS)),order:3,attrSchema:Uk},Ok={size:"small",labelPosition:"top",items:[{label:"标签",component:"Input",name:"label",initialValue:"评分"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{label:"初始值",component:"InputNumber",name:"initialValue"},{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:"InputNumber",name:"props.max",initialValue:5},{label:"是否允许半选",component:"Switch",name:"props.allow-half"}]},$k={title:"评分",component:"Rate",render:"ElRate",icon:A.h(we,{name:"rate"}),type:"basic",order:12,attrSchema:Ok},zk={size:"small",labelPosition:"top",initialValues:{label:"选择框+输入框",props:{placeholder:"",selectPosition:"append",selectWidth:70}},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:"Input",name:"initialValue"},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否只读",component:"Switch",name:"props.readonly"},{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:"FormList",name:"rules",dialog:!0,children:[{label:"类型",component:"Select",props:{mode:"static",options:[{label:"邮箱",value:"email"},{label:"字母+数字",value:"^(?=.*[a-zA-Z])(?=.*\\d)[a-zA-Z\\d]+$"},{label:"手机号码",value:"^1[3456789]\\d{9}$"},{label:"网址",value:"url"},{label:"自定义正则",value:"custom"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P",name:"type"},{label:"自定义正则",component:"Input",props:{placeholder:"请输入正则表达式"},designKey:"form-Wdb2Reg",name:"customReg",hidden:'{{$item.type!=="custom"}}'},{label:"提示语",component:"Input",props:{placeholder:"请输入..."},designKey:"form-Wdb2",name:"message"},{label:"校验时机",component:"Checkbox",props:{mode:"static",options:[{label:"失去焦点时",value:"blur"},{label:"输入时",value:"change"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P6666",name:"trigger"}],designKey:"form-89tI",props:{mode:"card",title:"校验规则"}},{label:"显示清除按钮",component:"Switch",name:"props.clearable"},{label:"最长字数",component:"InputNumber",name:"props.maxlength"},{label:"选择框位置",component:"Radio",name:"props.selectPosition",props:{mode:"static",options:[{label:"前置",value:"prepend"},{label:"后置",value:"append"}]}},{label:"选择框宽度(px)",component:"InputNumber",name:"props.selectWidth"},{label:"选择框默认值",component:"Input",name:"props.selectInitialValue"},{label:"选项",name:"props.options",component:"FormList",dialog:!0,children:[{label:"选项名",name:"label",component:"Input",props:{placeholder:"请输入..."},designKey:"form-LnGh"},{label:"选项值",name:"value",component:"Input",props:{},designKey:"form-HYtW"},{label:"是否禁用",name:"disabled",component:"Switch",props:{},designKey:"form-HYtW2"}],designKey:"form-Iwpd",props:{mode:"table"}}]},Jk={title:"选择+输入",component:"SelectInput",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>lS)),icon:A.h(we,{name:"input"}),type:"high",order:1,attrSchema:zk},Zk={title:"滑块",render:"ElSlider",component:"Slider",icon:A.h(we,{name:"slider"}),type:"basic",order:12,attrSchema:{size:"small",labelPosition:"top",initialValues:{label:"滑块"},items:[{label:"标签",component:"Input",name:"label"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{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",style:{marginBottom:0}},{label:"初始值",component:"InputNumber",name:"initialValue"},{label:"开启选择范围",component:"Switch",name:"props.range"},{label:"步长",component:"InputNumber",name:"props.step",initialValue:1},{label:"最小值",component:"InputNumber",name:"props.min",initialValue:0}]}},Wk={size:"small",labelPosition:"top",initialValues:{label:"开关",props:{"inline-prompt":!1}},items:[{label:"标签",component:"Input",name:"label"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{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:"initialValue"},{label:"打开时描述",component:"Input",name:"props.active-text"},{label:"关闭时描述",component:"Input",name:"props.inactive-text"},{label:"描述显示位置",component:"Radio",name:"props.inline-prompt",props:{mode:"static",options:[{label:"外部",value:!1},{label:"内部",value:!0}]}}]},jk={title:"开关",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>cS)),component:"Switch",icon:A.h(we,{name:"switch"}),type:"basic",order:8,attrSchema:Wk},qk={title:"标签",component:"Tag",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>gS)),icon:A.h(we,{name:"tag"}),type:"assist",order:4,attrSchema:{size:"small",labelPosition:"top",initialValues:{props:{text:"Tag",type:"primary"},hideLabel:!0},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"隐藏标签",component:"Switch",name:"hideLabel"},{label:"内容",component:"Input",name:"props.text"},{label:"类型",component:"Radio",name:"props.type",props:{mode:"static",options:[{label:"主题色",value:"primary"},{label:"成功",value:"success"},{label:"信息",value:"info"},{label:"警告",value:"warning"},{label:"危险",value:"danger"}]}}]}},Xk={size:"small",labelPosition:"top",initialValues:{label:"文本",props:{text:"这是一段文本"}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"隐藏标签",component:"Switch",name:"hideLabel"},{label:"文本内容",component:"Input",name:"props.text"}]},Vk={title:"文本",component:"Text",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>uS)),icon:A.h(we,{name:"text"}),type:"assist",order:1,attrSchema:Xk},A_={title:"标题",component:"Title",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>hS)),icon:A.h(we,{name:"title"}),type:"assist",order:3,attrSchema:{size:"small",labelPosition:"top",initialValues:{props:{title:"标题",type:"h3"},hideLabel:!0},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"隐藏标签",component:"Switch",name:"hideLabel"},{label:"标题内容",component:"Input",name:"props.title"},{label:"类型",component:"Radio",name:"props.type",props:{mode:"static",options:[{label:"一级标题",value:"h1"},{label:"二级标题",value:"h2"},{label:"三级标题",value:"h3"},{label:"四级标题",value:"h4"},{label:"五级标题",value:"h5"}]}},{label:"字体倾斜",component:"Switch",name:"props.italic"}]}},e_={size:"small",labelPosition:"top",initialValues:{label:"上传",props:{action:"https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",name:"file",multiple:!0,btnText:"点击上传",limit:3,showFileList:!0,withCredentials:!0,listType:"text"}},items:[{label:"标签",component:"Input",name:"label"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{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:"Input",name:"props.action"},{label:"上传的文件字段名",component:"Input",name:"props.name"},{label:"上传时的请求头",component:"JsonEdit",name:"props.headers",dialog:!0},{label:"上传时的额外数据",component:"JsonEdit",name:"props.data",dialog:!0},{label:"上传时携带cookie",component:"Switch",name:"props.withCredentials"},{label:"支持多选文件",component:"Switch",name:"props.multiple"},{label:"上传按钮文本",component:"Input",name:"props.btnText"},{label:"上传提示",component:"Input",name:"props.tip"},{label:"最大上传数量",component:"InputNumber",name:"props.limit"},{label:"开启拖拽上传",component:"Switch",name:"props.drag"},{label:"是否显示已上传文件列表",component:"Switch",name:"props.showFileList"},{label:"上传文件列表类型",component:"Radio",name:"props.listType",props:{mode:"static",options:[{label:"文本",value:"text"},{label:"图片墙",value:"picture-card"}]}}]},t_={title:"上传",component:"Upload",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>IS)),icon:A.h(we,{name:"upload"}),type:"basic",order:10,attrSchema:e_},n_={size:"small",labelPosition:"top",initialValues:{label:"验证码",required:!0,props:{placeholder:"请输入验证码"}},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:"Switch",name:"hidden"},{label:"隐藏标签",component:"Switch",name:"hideLabel"}]},i_={title:"图形验证码",component:"VerifyCode",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>DS)),icon:A.h(we,{name:"verifyCode"}),type:"high",order:18,attrSchema:n_},o_={title:"折叠面板",component:"Collapse",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>vS)),icon:A.h(we,{name:"collapse"}),type:"layout",order:4,attrSchema:{size:"small",labelPosition:"top",initialValues:{children:[{title:"面板1",name:"name1",children:[]}]},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"子面板设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},designKey:"id-l8cI",name:"title",initialValue:'{{ "面板" + ($index + 1) }}'},{label:"唯一标识",component:"Input",props:{placeholder:"请输入唯一标识"},designKey:"form-YE6U",name:"name",initialValue:'{{ "name" + ($index + 1) }}'},{label:"默认展开",component:"Switch",designKey:"form-YE6U",name:"checked"}],props:{mode:"card",title:"面板"},designKey:"id-RQ1a",name:"children"}]}},r_={title:"选项卡",component:"Tabs",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>xS)),icon:A.h(we,{name:"tabs"}),type:"layout",order:4,attrSchema:{size:"small",labelPosition:"top",initialValues:{children:[{label:"选项卡1",name:"name1",children:[]},{label:"选项卡2",name:"name2",children:[]}],props:{defaultKey:"name1",tabPosition:"top"}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"默认选项卡",component:"Select",name:"props.defaultKey",props:{mode:"static",options:"{{$values.children}}",labelKey:"label",valueKey:"name"}},{label:"选项卡风格",component:"Radio",name:"props.type",props:{mode:"static",options:[{label:"普通",value:""},{label:"卡片",value:"card"},{label:"带边框的卡片",value:"border-card"}]}},{label:"选项卡所在位置",component:"Radio",name:"props.tabPosition",props:{mode:"static",optionType:"button",space:0,options:[{label:"上",value:"top"},{label:"右",value:"right"},{label:"下",value:"bottom"},{label:"左",value:"left"}]}},{label:"子选项卡配置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},designKey:"id-l8cI",name:"label",initialValue:'{{ "选项卡" + ($index + 1) }}'},{label:"唯一标识",component:"Input",props:{placeholder:"请输入唯一标识"},designKey:"form-YE6U",name:"name",initialValue:'{{ "name" + ($index + 1) }}'},{label:"禁用",component:"Switch",props:{"inline-prompt":!1},designKey:"design-fPOI1",name:"disabled"},{label:"懒加载",component:"Switch",props:{"inline-prompt":!1},designKey:"design-fPOI11",name:"lazy"}],props:{mode:"card",title:"选项卡"},designKey:"id-RQ1a",name:"children"}]}},a_={title:"对象容器",icon:A.h(we,{name:"itemGroup"}),type:"high",component:"ObjGroup",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>RS)),order:2,lbTitle:!0,attrSchema:{size:"small",labelPosition:"top",initialValues:{props:{align:"left",gap:20},children:[],hideLabel:!0},items:[{label:"唯一标识",component:"Input",name:"name"}]}},s_={},l_={t:"1727251512891",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3914",width:"20",height:"20"};function c_(n,e){return A.openBlock(),A.createElementBlock("svg",l_,e[0]||(e[0]=[A.createElementVNode("path",{d:"M320 128H128c-35.2 0-64 28.8-64 64v640c0 35.2 28.8 64 64 64h192c35.2 0 64-28.8 64-64V192c0-35.2-28.8-64-64-64z m0 672c0 16-16 32-32 32H160c-16 0-32-16-32-32V224c0-16 16-32 32-32h128c16 0 32 16 32 32v576z m256-544h-64c-19.2 0-32 12.8-32 32s16 32 32 32h64c19.2 0 32-12.8 32-32s-16-32-32-32z m-64 448h-64c-19.2 0-32 12.8-32 32s16 32 32 32h64c19.2 0 32-12.8 32-32s-16-32-32-32z m384-576H704c-35.2 0-64 28.8-64 64v640c0 35.2 28.8 64 64 64h192c35.2 0 64-28.8 64-64V192c0-35.2-28.8-64-64-64z m0 672c0 16-16 32-32 32H736c-16 0-32-16-32-32V224c0-16 16-32 32-32h128c16 0 32 16 32 32v576z",fill:"#333333","p-id":"3915"},null,-1)]))}const g_=ae(s_,[["render",c_]]),d_={size:"small",labelPosition:"top",initialValues:{label:"穿梭框",props:{data:[{label:"选项一",key:"value1"},{label:"选项二",key:"value2"},{label:"选项三",key:"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:"Input",name:"initialValue"},{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"},{component:"Divider",props:{title:"选项设置",contentPosition:"center"},designKey:"design-gSnX",name:"form-xDEe",style:{marginTop:"40px"}},{label:"静态选项",name:"props.data",component:"FormList",children:[{label:"选项名",name:"label",component:"Input",props:{placeholder:"请输入..."},designKey:"form-LnGh",initialValue:'{{ "选项" + ($index + 1) }}'},{label:"选项值",name:"key",component:"Input",designKey:"form-HYtW",initialValue:'{{ "value" + ($index + 1) }}'}],designKey:"form-Iwpd",props:{mode:"table"}}]},u_={key:0},h_={title:"穿梭框",component:"Transfer",render:A.defineComponent({__name:"Transfer",props:A.mergeModels({name:{},data:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=Ct(),i=A.useModel(n,"modelValue"),h=Q=>{const r=Q.map(D=>e.data.find(w=>w.key===D));t.updateSelectData(e.name,r)};return(Q,r)=>{var w;const D=A.resolveComponent("el-transfer");return A.unref(t).read?(A.openBlock(),A.createElementBlock("div",u_,A.toDisplayString((w=i.value)==null?void 0:w.map(f=>{var S;return(S=Q.data.find(F=>F.key===f))==null?void 0:S.label}).join("、")),1)):(A.openBlock(),A.createBlock(D,A.mergeProps({key:1},Q.$attrs,{data:Q.data,onChange:h,modelValue:i.value,"onUpdate:modelValue":r[0]||(r[0]=f=>i.value=f)}),null,16,["data","modelValue"]))}}}),icon:g_,type:"basic",order:12,attrSchema:d_},p_={size:"small",labelPosition:"top",items:[{label:"标签",component:"Input",name:"label",initialValue:"单行文本"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help",designKey:"form-ekRL1"},{label:"占位提示",component:"Input",name:"props.placeholder",designKey:"form-ekRL"},{label:"初始值",component:"Input",name:"initialValue"},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否只读",component:"Switch",name:"props.readonly"},{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:"FormList",name:"rules",dialog:!0,children:[{label:"类型",component:"Select",props:{mode:"static",options:[{label:"邮箱",value:"email"},{label:"字母+数字",value:"^(?=.*[a-zA-Z])(?=.*\\d)[a-zA-Z\\d]+$"},{label:"手机号码",value:"^1[3456789]\\d{9}$"},{label:"网址",value:"url"},{label:"自定义正则",value:"custom"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P",name:"type"},{label:"自定义正则",component:"Input",props:{placeholder:"请输入正则表达式"},designKey:"form-Wdb2Reg",name:"customReg",hidden:'{{$item.type!=="custom"}}'},{label:"提示语",component:"Input",props:{placeholder:"请输入..."},designKey:"form-Wdb2",name:"message"},{label:"校验时机",component:"Checkbox",props:{mode:"static",options:[{label:"失去焦点时",value:"blur"},{label:"输入时",value:"change"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P6666",name:"trigger"}],designKey:"form-89tI",props:{mode:"card",title:"校验规则"}},{label:"显示清除按钮",component:"Switch",name:"props.clearable"},{label:"change事件函数名",component:"Input",name:"props.onChange"},{label:"最长字数",component:"InputNumber",name:"props.maxlength"},{label:"是否展示弹窗",component:"Switch",name:"props.withDialog"}]},C_=["title"],B_=ae(A.defineComponent({__name:"SearchInput",props:A.mergeModels({onInput:{},onSearch:{},onClick:{},onClear:{},disabled:{type:Boolean},readonly:{type:Boolean},read:{type:Boolean},readTextColor:{},clearable:{type:Boolean},round:{type:Boolean},name:{},width:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=n,i=A.inject("ruleModule",void 0),h=A.inject("pageMethodMap",{}),Q=Ct(),r=A.computed(()=>t.read||Q.schema.read);A.watch(e,F=>{F&&Q.clearValidate(t.name)});const D=F=>{if(t.onInput&&i)try{i[t.onInput](h,F)}catch(G){console.error(G+`
106
+ onClick: ${w.onClick}`)}};return(y,B)=>{const N=A.resolveComponent("el-input");return t.value?(A.openBlock(),A.createElementBlock("span",{key:0,title:i.value||"--",style:A.normalizeStyle({color:i.value?y.readTextColor:void 0,overflow:"hidden",textOverflow:"ellipsis"}),class:A.normalizeClass(y.onClick?"cursor-pointer":""),onClick:K},A.toDisplayString(i.value||"--"),15,ek)):(A.openBlock(),A.createBlock(N,A.mergeProps({key:1},y.$attrs,{class:r.value,style:Q.value,modelValue:i.value,"onUpdate:modelValue":B[0]||(B[0]=v=>i.value=v),onInput:G,onChange:H,onKeydown:F,onKeyup:A.withKeys($,["enter"]),onBlur:D,onClick:K}),A.createSlots({_:2},[y.suffixSlots&&y.suffixSlots.length>0?{name:"suffix",fn:A.withCtx(()=>[A.createElementVNode("div",tk,[A.createVNode(A.unref(rt),{list:y.suffixSlots},null,8,["list"])])]),key:"0"}:void 0]),1040,["class","style","modelValue"]))}}}),[["__scopeId","data-v-0d3f2301"]]),ik={title:"单行文本",component:"Input",icon:A.h(we,{name:"input"}),type:"basic",order:1,attrSchema:h0,render:nk},ok={size:"small",labelPosition:"top",items:[{label:"标签",component:"Input",name:"label",initialValue:"多行文本"},{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",initialValue:"请输入..."},{label:"初始值",component:"Input",name:"initialValue"},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否只读",component:"Switch",name:"props.readonly"},{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.clearable"},{label:"最长字数",component:"InputNumber",name:"props.maxlength"},{label:"最小行数",component:"InputNumber",name:"props.autosize.minRows",initialValue:4},{label:"最大行数",component:"InputNumber",name:"props.autosize.maxRows",initialValue:999}]},rk={title:"多行文本",component:"TextArea",icon:A.h(we,{name:"textarea"}),type:"basic",order:2,attrSchema:ok,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>BM))},ak={size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"隐藏标签",component:"Switch",name:"hideLabel",initialValue:!0},{label:"标题",component:"Input",name:"props.title",initialValue:"提示信息"},{label:"描述",component:"TextArea",name:"props.description",initialValue:"这是一个描述"},{label:"是否可关闭",component:"Switch",name:"props.closable",initialValue:!0},{label:"显示图标",component:"Switch",name:"props.show-icon",initialValue:!0},{label:"类型",component:"Radio",name:"props.type",props:{mode:"static",options:[{label:"成功",value:"success"},{label:"信息",value:"info"},{label:"警告",value:"warning"},{label:"错误",value:"error"}]},initialValue:"info"},{label:"主题",component:"Radio",name:"props.effect",props:{mode:"static",options:[{label:"浅色",value:"light"},{label:"深色",value:"dark"}]},initialValue:"light"}]},sk=["onClick"],lk={key:1,class:"bold-style"},ck=ae(A.defineComponent({__name:"Alert",props:{description:{},values:{},type:{},icon:{},closable:{type:Boolean,default:!1}},setup(n){const e=n,{ruleModule:t,pageMethodMap:i}=wn(),h=(D,w,f)=>{console.log(D,w,f);try{t[D](i,w,f)}catch(S){console.error(S)}},Q=A.computed(()=>{const D=/\{(\d+)\}/g,w=[];let f=0,S;for(;(S=D.exec(e.description))!==null;)S.index>f&&w.push({type:"text",value:e.description.slice(f,S.index)}),w.push({type:"value",index:Number(S[1])}),f=D.lastIndex;return f<e.description.length&&w.push({type:"text",value:e.description.slice(f)}),w}),r=A.computed(()=>e.icon?e.icon:e.type?{primary:{name:"icon-tishitubiao",color:"var(--el-color-primary)"},success:{name:"icon-successtubiao",color:"var(--el-color-primary)"},warning:{name:"icon-gaojingtongzhitishi",color:"#FF0D00"},info:{name:"icon-tishitubiao",color:"#999999"},error:{name:"icon-tishitubiao",color:"#FF0D00"}}[e.type]:{name:"icon-tishitubiao",color:"#999999"});return(D,w)=>{const f=A.resolveComponent("el-alert");return D.description?(A.openBlock(),A.createBlock(f,A.mergeProps({key:0},D.$attrs,{type:D.type,class:"alert-container",closable:D.closable}),{icon:A.withCtx(()=>[A.createVNode(ke,{name:r.value.name,color:r.value.color},null,8,["name","color"])]),default:A.withCtx(()=>[A.createElementVNode("div",null,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(Q.value,(S,F)=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:F},[S.type==="text"?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[A.createTextVNode(A.toDisplayString(S.value),1)],64)):(A.openBlock(),A.createElementBlock(A.Fragment,{key:1},[typeof S.index=="number"&&e.values&&e.values[S.index]&&typeof e.values[S.index].onClick=="string"?(A.openBlock(),A.createElementBlock("span",{key:0,class:"link-style",onClick:G=>h(e.values[S.index].onClick,e.values[S.index].text,e.values[S.index])},A.toDisplayString(typeof S.index=="number"&&e.values&&e.values[S.index]?e.values[S.index].text:""),9,sk)):(A.openBlock(),A.createElementBlock("span",lk,A.toDisplayString(typeof S.index=="number"&&e.values&&e.values[S.index]?e.values[S.index].text:""),1))],64))],64))),128))])]),_:1},16,["type","closable"])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-5ca945a3"]]),gk={title:"提示框",component:"Alert",icon:A.h(we,{name:"alert"}),type:"assist",order:2,attrSchema:ak,render:ck},dk={title:"卡片",component:"Card",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>fM)),icon:A.h(we,{name:"card"}),type:"layout",order:1,attrSchema:{size:"small",labelPosition:"top",items:[{label:"唯一标识",component:"Input",name:"name"},{label:"卡片标题",component:"Input",name:"props.header",initialValue:"卡片"},{label:"支持折叠",component:"Switch",name:"props.collapsible"}]}},uk={size:"small",labelPosition:"top",initialValues:{label:"级联选择器",props:{placeholder:"请选择...",mode:"static",options:[{label:"选项1",value:"value1",children:[{label:"选项1-1",value:"value1-1"},{label:"选项1-2",value:"value1-2"},{label:"选项1-3",value:"value1-2"}]},{label:"选项2",value:"value2",children:[{label:"选项2-1",value:"value2-1"},{label:"选项2-2",value:"value2-2"},{label:"选项2-3",value:"value2-2"}]},{label:"选项3",value:"value3"}],labelKey:"label",valueKey:"value"}},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"},{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:"Switch",name:"props.showAllLevels",initialValue:!0},{component:"Divider",props:{title:"选项设置",contentPosition:"center"},designKey:"design-gSnX",name:"form-xDEe",style:{marginTop:"40px"}},{label:"标签key",component:"Input",name:"props.labelKey",designKey:"form-X6hs"},{label:"值Key",component:"Input",name:"props.valueKey",designKey:"form-STkl"},{label:"数据模式",component:"Radio",name:"props.mode",props:{mode:"static",options:[{label:"静态",value:"static"},{label:"远程",value:"remote"}],optionType:"button",space:0},initialValue:"static",designKey:"form-PLpj"},{label:"静态选项",name:"props.options",component:"JsonEdit",dialog:!0},{component:"Card",props:{},designKey:"id-pGeN",name:"form-6vzT",hidden:'{{$values.props.mode==="static"}}',children:[{label:"url",component:"Input",name:"props.api.url",initialValue:"/current/query/article",designKey:"form-UrE8"},{label:"请求方式",component:"Radio",name:"props.api.method",props:{mode:"static",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"DELETE",value:"DELETE"}]},designKey:"form-nOpD"},{label:"请求参数",component:"JsonEdit",name:"props.api.params",initialValue:{},dialog:!0},{label:"数据路径",component:"Input",name:"props.api.dataPath",initialValue:"data",designKey:"form-UrE8"}]}]},hk={title:"级联选择器",icon:A.h(we,{name:"cascader"}),type:"basic",component:"Cascader",attrSchema:uk,order:7,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>IM))},pk={size:"small",labelPosition:"top",items:[{label:"标签",component:"Input",name:"label",initialValue:"JSON编辑器"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否只读",component:"Switch",name:"props.readonly"},{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:"JsonEdit",name:"initialValue",dialog:!0}]},Ck={title:"JSON编辑",component:"JsonEdit",icon:A.h(we,{name:"jsonEdit"}),type:"basic",order:14,attrSchema:pk,render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>_M))},Bk={size:"small",labelPosition:"top",initialValues:{label:"多选框组",component:"Checkbox",props:{mode:"static",options:[{label:"选项1",value:"value1"},{label:"选项2",value:"value2"},{label:"选项3",value:"value3"}],labelKey:"label",valueKey:"value",optionType:"circle",direction:"horizontal",space:20}},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:!0}},{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:"Radio",name:"props.optionType",props:{mode:"static",options:[{label:"无边框",value:"circle"},{label:"边框",value:"border"},{label:"按钮",value:"button"}]}},{label:"选项排列方向",component:"Radio",name:"props.direction",props:{mode:"static",options:[{label:"水平排列",value:"horizontal"},{label:"垂直排列",value:"vertical"}]}},{label:"选项间距(px)",component:"InputNumber",name:"props.space"},...Fa]},mk={title:"多选框组",icon:A.h(we,{name:"checkbox"}),type:"basic",component:"Checkbox",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>xM)),order:4,attrSchema:Bk},Ek={size:"small",labelPosition:"top",initialValues:{label:"颜色选择器",component:"ColorPicker"},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:"ColorPicker",name:"initialValue"},{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"}]},Qk={title:"颜色选择器",component:"ColorPicker",render:"ElColorPicker",icon:A.h(we,{name:"colorPicker"}),type:"basic",order:9,attrSchema:Ek},fk={size:"small",labelPosition:"top",initialValues:{label:"颜色输入框",component:"ColorInput"},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:"ColorPicker",name:"initialValue"},{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"}]},Ik={title:"颜色输入框",component:"ColorInput",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>FM)),icon:A.h(we,{name:"colorPicker"}),type:"high",order:2,attrSchema:fk},wk={size:"small",labelPosition:"top",initialValues:{label:"自定义组件"},items:[{label:"自定义组件名称",component:"Input",name:"props.componentName",props:{placeholder:"全局组件名称"}},{label:"props",component:"JsonEdit",name:"props",dialog:!0},{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:"initialValue"},{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"}]},bk={title:"自定义组件",component:"Custom",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>LM)),icon:A.h(we,{name:"custom"}),type:"high",order:99,attrSchema:wk},yk={size:"small",labelPosition:"top",initialValues:{label:"日期选择器",props:{type:"datetime",placeholder:"请选择日期",clearable:!1}},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"},{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:"Radio",name:"props.type",props:{mode:"static",options:[{label:"日期时间",value:"datetime"},{label:"日期",value:"date"},{label:"年月",value:"month"},{label:"日期范围",value:"daterange"},{label:"日期时间范围",value:"datetimerange"}]}}]},Dk={title:"日期选择器",component:"DatePicker",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>PM)),icon:A.h(we,{name:"datePicker"}),type:"basic",order:9,attrSchema:yk},vk={size:"small",labelPosition:"top",initialValues:{props:{title:"分割线"}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"标题",component:"Input",name:"props.title"},{label:"标题位置",component:"Radio",name:"props.contentPosition",props:{mode:"static",options:[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}]},initialValue:"center",designKey:"form-PLpj"}]},kk={title:"分割线",component:"Divider",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>HM)),icon:A.h(we,{name:"divider"}),type:"assist",order:6,attrSchema:vk},_k={size:"small",labelPosition:"top",initialValues:{label:"电子签名",props:{width:700,height:300,lineWidth:6,lineColor:"#000000",bgColor:"#eeeeee",format:"image/png"}},items:[{label:"标签",component:"Input",name:"label"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{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:"画板宽度(px)",component:"InputNumber",name:"props.width"},{label:"画板高度(px)",component:"InputNumber",name:"props.height"},{label:"画笔粗细-初始",component:"InputNumber",name:"props.lineWidth"},{label:"画笔颜色-初始",component:"ColorPicker",name:"props.lineColor"},{label:"画板背景色-初始",component:"ColorPicker",name:"props.bgColor"},{label:"生成图片格式",component:"Radio",name:"props.format",props:{mode:"static",options:[{label:"PNG",value:"image/png"},{label:"JPG",value:"image/jpg"},{label:"JPEG",value:"image/jpeg"},{label:"WEBP",value:"image/webp"}]},designKey:"form-PLpj"}]},Mk={title:"电子签名",component:"Esign",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>JM)),icon:A.h(we,{name:"esign"}),type:"basic",order:11,attrSchema:_k},Sk={size:"small",labelPosition:"top",initialValues:{label:"单选框组",props:{mode:"static",options:[{label:"选项1",value:"value1"},{label:"选项2",value:"value2"},{label:"选项3",value:"value3"}],labelKey:"label",valueKey:"value",optionType:"circle",direction:"horizontal",space:20}},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}}"}},{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:"Radio",name:"props.optionType",props:{mode:"static",options:[{label:"无边框",value:"circle"},{label:"边框",value:"border"},{label:"按钮",value:"button"}]}},{label:"选项排列方向",component:"Radio",name:"props.direction",props:{mode:"static",options:[{label:"水平排列",value:"horizontal"},{label:"垂直排列",value:"vertical"}]}},{label:"选项间距(px)",component:"InputNumber",name:"props.space"},...Fa]},xk={title:"单选框组",icon:A.h(we,{name:"radio"}),type:"basic",component:"Radio",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>WM)),order:3.5,attrSchema:Sk},Nk={size:"small",labelPosition:"top",initialValues:{label:"自增容器",children:[],props:{mode:"table",title:"数据",minLines:0,maxLines:999,allowAdd:!0,allowReduce:!0}},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"},{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:"Radio",name:"props.mode",props:{mode:"static",options:[{label:"表格",value:"table"},{label:"卡片",value:"card"},{label:"行内",value:"inline"}]}},{label:"自增前缀",component:"Input",name:"props.title"},{label:"最小行数",component:"InputNumber",props:{min:0},name:"props.minLines"},{label:"最大行数",component:"InputNumber",props:{min:0},name:"props.maxLines"},{label:"允许新增行",component:"Switch",name:"props.allowAdd"},{label:"允许删除行",component:"Switch",name:"props.allowReduce"}]},Fk={title:"自增容器",component:"FormList",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>eS)),icon:A.h(we,{name:"formList"}),type:"high",order:20,attrSchema:Nk},Rk={title:"栅格布局",type:"layout",icon:A.h(we,{name:"grid"}),component:"Grid",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>tS)),order:3,lbTitle:!0,attrSchema:{size:"small",labelPosition:"top",initialValues:{props:{columns:2}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"列数",component:"InputNumber",name:"props.columns",initialValue:2},{label:"列间距",component:"InputNumber",name:"props.columnGap",props:{unit:"px"}},{label:"行间距",component:"InputNumber",name:"props.rowGap",props:{unit:"px"}},{label:"列对齐方式",component:"Select",name:"props.alignItems",props:{mode:"static",options:[{label:"stretch",value:"stretch"},{label:"center",value:"center"},{label:"start",value:"start"},{label:"end",value:"end"}]}}]}},Lk={title:"行内布局",icon:A.h(we,{name:"inline"}),type:"layout",component:"Inline",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>nS)),order:2,lbTitle:!0,attrSchema:{size:"small",labelPosition:"top",initialValues:{props:{align:"left",gap:20}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"对齐方式",component:"Radio",name:"props.align",props:{mode:"static",options:[{label:"左对齐",value:"left"},{label:"居中",value:"center"},{label:"右对齐",value:"right"},{label:"两端对齐",value:"space-between"},{label:"环绕对齐",value:"space-around"},{label:"均匀对齐",value:"space-evenly"}]},initialValue:"left"},{label:"间距大小",component:"InputNumber",name:"props.gap",props:{unit:"px"}},{label:"自动换行",component:"Switch",name:"props.autoWrap"}]}},Gk={size:"small",labelPosition:"top",initialValues:{label:"计数器",props:{min:1,max:999,step:1,controlsPosition:""}},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"},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否只读",component:"Switch",name:"props.readonly"},{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:"InputNumber",name:"initialValue"},{label:"按钮位置",component:"Radio",name:"props.controlsPosition",props:{mode:"static",options:[{label:"两侧",value:""},{label:"内部",value:"right"}]},initialValue:""},{label:"最小值",component:"InputNumber",name:"props.min"},{label:"最大值",component:"InputNumber",name:"props.max"},{label:"步长",component:"InputNumber",name:"props.step"}]},Pk={title:"计数器",icon:A.h(we,{name:"inputNumber"}),type:"basic",order:5,component:"InputNumber",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>oS)),attrSchema:Gk},Hk={size:"small",labelPosition:"top",initialValues:{label:"密码输入框",props:{placeholder:"请输入密码"}},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"},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否只读",component:"Switch",name:"props.readonly"},{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:"FormList",name:"rules",dialog:!0,children:[{label:"类型",component:"Select",props:{mode:"static",options:[{label:"不少于8位,由字母+数字组成",value:"^(?=.*[a-zA-Z])(?=.*\\d)[a-zA-Z\\d]{8,}$"},{label:"不少于8位,至少包含一个大写字母、一个小写字母和一个数字",value:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[A-Za-z\\d]{8,}$"},{label:"不包含空格",value:"^\\S*$"},{label:"自定义正则",value:"custom"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P",name:"type"},{label:"自定义正则",component:"Input",props:{placeholder:"请输入正则表达式"},designKey:"form-Wdb2Reg",name:"customReg",hidden:'{{$item.type!=="custom"}}'},{label:"提示语",component:"Input",props:{placeholder:"请输入..."},designKey:"form-Wdb2",name:"message"},{label:"校验时机",component:"Checkbox",props:{mode:"static",options:[{label:"失去焦点时",value:"blur"},{label:"输入时",value:"change"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P6666",name:"trigger"}],designKey:"form-89tI",props:{mode:"card"}},{label:"显示清除按钮",component:"Switch",name:"props.clearable"}]},Kk={key:0},Tk={title:"密码输入框",component:"Password",render:A.defineComponent({__name:"Password",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=Ct();return(i,h)=>{var r;const Q=A.resolveComponent("el-input");return A.unref(t).schema.read?(A.openBlock(),A.createElementBlock("span",Kk,A.toDisplayString((r=e.value)==null?void 0:r.replace(/./g,"*")),1)):(A.openBlock(),A.createBlock(Q,A.mergeProps({key:1},i.$attrs,{modelValue:e.value,"onUpdate:modelValue":h[0]||(h[0]=D=>e.value=D),type:"password"}),null,16,["modelValue"]))}}}),icon:A.h(we,{name:"password"}),type:"basic",order:3,attrSchema:Hk},Uk={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"},...Fa]},Yk={title:"下拉选择框",type:"basic",icon:A.h(we,{name:"select"}),component:"Select",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>aS)),order:3,attrSchema:Uk},Ok={size:"small",labelPosition:"top",items:[{label:"标签",component:"Input",name:"label",initialValue:"评分"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{label:"初始值",component:"InputNumber",name:"initialValue"},{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:"InputNumber",name:"props.max",initialValue:5},{label:"是否允许半选",component:"Switch",name:"props.allow-half"}]},$k={title:"评分",component:"Rate",render:"ElRate",icon:A.h(we,{name:"rate"}),type:"basic",order:12,attrSchema:Ok},zk={size:"small",labelPosition:"top",initialValues:{label:"选择框+输入框",props:{placeholder:"",selectPosition:"append",selectWidth:70}},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:"Input",name:"initialValue"},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否只读",component:"Switch",name:"props.readonly"},{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:"FormList",name:"rules",dialog:!0,children:[{label:"类型",component:"Select",props:{mode:"static",options:[{label:"邮箱",value:"email"},{label:"字母+数字",value:"^(?=.*[a-zA-Z])(?=.*\\d)[a-zA-Z\\d]+$"},{label:"手机号码",value:"^1[3456789]\\d{9}$"},{label:"网址",value:"url"},{label:"自定义正则",value:"custom"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P",name:"type"},{label:"自定义正则",component:"Input",props:{placeholder:"请输入正则表达式"},designKey:"form-Wdb2Reg",name:"customReg",hidden:'{{$item.type!=="custom"}}'},{label:"提示语",component:"Input",props:{placeholder:"请输入..."},designKey:"form-Wdb2",name:"message"},{label:"校验时机",component:"Checkbox",props:{mode:"static",options:[{label:"失去焦点时",value:"blur"},{label:"输入时",value:"change"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P6666",name:"trigger"}],designKey:"form-89tI",props:{mode:"card",title:"校验规则"}},{label:"显示清除按钮",component:"Switch",name:"props.clearable"},{label:"最长字数",component:"InputNumber",name:"props.maxlength"},{label:"选择框位置",component:"Radio",name:"props.selectPosition",props:{mode:"static",options:[{label:"前置",value:"prepend"},{label:"后置",value:"append"}]}},{label:"选择框宽度(px)",component:"InputNumber",name:"props.selectWidth"},{label:"选择框默认值",component:"Input",name:"props.selectInitialValue"},{label:"选项",name:"props.options",component:"FormList",dialog:!0,children:[{label:"选项名",name:"label",component:"Input",props:{placeholder:"请输入..."},designKey:"form-LnGh"},{label:"选项值",name:"value",component:"Input",props:{},designKey:"form-HYtW"},{label:"是否禁用",name:"disabled",component:"Switch",props:{},designKey:"form-HYtW2"}],designKey:"form-Iwpd",props:{mode:"table"}}]},Jk={title:"选择+输入",component:"SelectInput",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>lS)),icon:A.h(we,{name:"input"}),type:"high",order:1,attrSchema:zk},Zk={title:"滑块",render:"ElSlider",component:"Slider",icon:A.h(we,{name:"slider"}),type:"basic",order:12,attrSchema:{size:"small",labelPosition:"top",initialValues:{label:"滑块"},items:[{label:"标签",component:"Input",name:"label"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{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",style:{marginBottom:0}},{label:"初始值",component:"InputNumber",name:"initialValue"},{label:"开启选择范围",component:"Switch",name:"props.range"},{label:"步长",component:"InputNumber",name:"props.step",initialValue:1},{label:"最小值",component:"InputNumber",name:"props.min",initialValue:0}]}},Wk={size:"small",labelPosition:"top",initialValues:{label:"开关",props:{"inline-prompt":!1}},items:[{label:"标签",component:"Input",name:"label"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{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:"initialValue"},{label:"打开时描述",component:"Input",name:"props.active-text"},{label:"关闭时描述",component:"Input",name:"props.inactive-text"},{label:"描述显示位置",component:"Radio",name:"props.inline-prompt",props:{mode:"static",options:[{label:"外部",value:!1},{label:"内部",value:!0}]}}]},jk={title:"开关",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>cS)),component:"Switch",icon:A.h(we,{name:"switch"}),type:"basic",order:8,attrSchema:Wk},qk={title:"标签",component:"Tag",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>gS)),icon:A.h(we,{name:"tag"}),type:"assist",order:4,attrSchema:{size:"small",labelPosition:"top",initialValues:{props:{text:"Tag",type:"primary"},hideLabel:!0},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"隐藏标签",component:"Switch",name:"hideLabel"},{label:"内容",component:"Input",name:"props.text"},{label:"类型",component:"Radio",name:"props.type",props:{mode:"static",options:[{label:"主题色",value:"primary"},{label:"成功",value:"success"},{label:"信息",value:"info"},{label:"警告",value:"warning"},{label:"危险",value:"danger"}]}}]}},Xk={size:"small",labelPosition:"top",initialValues:{label:"文本",props:{text:"这是一段文本"}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"隐藏标签",component:"Switch",name:"hideLabel"},{label:"文本内容",component:"Input",name:"props.text"}]},Vk={title:"文本",component:"Text",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>uS)),icon:A.h(we,{name:"text"}),type:"assist",order:1,attrSchema:Xk},A_={title:"标题",component:"Title",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>hS)),icon:A.h(we,{name:"title"}),type:"assist",order:3,attrSchema:{size:"small",labelPosition:"top",initialValues:{props:{title:"标题",type:"h3"},hideLabel:!0},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"隐藏字段",component:"Switch",name:"hidden"},{label:"隐藏标签",component:"Switch",name:"hideLabel"},{label:"标题内容",component:"Input",name:"props.title"},{label:"类型",component:"Radio",name:"props.type",props:{mode:"static",options:[{label:"一级标题",value:"h1"},{label:"二级标题",value:"h2"},{label:"三级标题",value:"h3"},{label:"四级标题",value:"h4"},{label:"五级标题",value:"h5"}]}},{label:"字体倾斜",component:"Switch",name:"props.italic"}]}},e_={size:"small",labelPosition:"top",initialValues:{label:"上传",props:{action:"https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",name:"file",multiple:!0,btnText:"点击上传",limit:3,showFileList:!0,withCredentials:!0,listType:"text"}},items:[{label:"标签",component:"Input",name:"label"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help"},{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:"Input",name:"props.action"},{label:"上传的文件字段名",component:"Input",name:"props.name"},{label:"上传时的请求头",component:"JsonEdit",name:"props.headers",dialog:!0},{label:"上传时的额外数据",component:"JsonEdit",name:"props.data",dialog:!0},{label:"上传时携带cookie",component:"Switch",name:"props.withCredentials"},{label:"支持多选文件",component:"Switch",name:"props.multiple"},{label:"上传按钮文本",component:"Input",name:"props.btnText"},{label:"上传提示",component:"Input",name:"props.tip"},{label:"最大上传数量",component:"InputNumber",name:"props.limit"},{label:"开启拖拽上传",component:"Switch",name:"props.drag"},{label:"是否显示已上传文件列表",component:"Switch",name:"props.showFileList"},{label:"上传文件列表类型",component:"Radio",name:"props.listType",props:{mode:"static",options:[{label:"文本",value:"text"},{label:"图片墙",value:"picture-card"}]}}]},t_={title:"上传",component:"Upload",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>IS)),icon:A.h(we,{name:"upload"}),type:"basic",order:10,attrSchema:e_},n_={size:"small",labelPosition:"top",initialValues:{label:"验证码",required:!0,props:{placeholder:"请输入验证码"}},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:"Switch",name:"hidden"},{label:"隐藏标签",component:"Switch",name:"hideLabel"}]},i_={title:"图形验证码",component:"VerifyCode",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>DS)),icon:A.h(we,{name:"verifyCode"}),type:"high",order:18,attrSchema:n_},o_={title:"折叠面板",component:"Collapse",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>vS)),icon:A.h(we,{name:"collapse"}),type:"layout",order:4,attrSchema:{size:"small",labelPosition:"top",initialValues:{children:[{title:"面板1",name:"name1",children:[]}]},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"子面板设置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},designKey:"id-l8cI",name:"title",initialValue:'{{ "面板" + ($index + 1) }}'},{label:"唯一标识",component:"Input",props:{placeholder:"请输入唯一标识"},designKey:"form-YE6U",name:"name",initialValue:'{{ "name" + ($index + 1) }}'},{label:"默认展开",component:"Switch",designKey:"form-YE6U",name:"checked"}],props:{mode:"card",title:"面板"},designKey:"id-RQ1a",name:"children"}]}},r_={title:"选项卡",component:"Tabs",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>xS)),icon:A.h(we,{name:"tabs"}),type:"layout",order:4,attrSchema:{size:"small",labelPosition:"top",initialValues:{children:[{label:"选项卡1",name:"name1",children:[]},{label:"选项卡2",name:"name2",children:[]}],props:{defaultKey:"name1",tabPosition:"top"}},items:[{label:"唯一标识",component:"Input",name:"name"},{label:"默认选项卡",component:"Select",name:"props.defaultKey",props:{mode:"static",options:"{{$values.children}}",labelKey:"label",valueKey:"name"}},{label:"选项卡风格",component:"Radio",name:"props.type",props:{mode:"static",options:[{label:"普通",value:""},{label:"卡片",value:"card"},{label:"带边框的卡片",value:"border-card"}]}},{label:"选项卡所在位置",component:"Radio",name:"props.tabPosition",props:{mode:"static",optionType:"button",space:0,options:[{label:"上",value:"top"},{label:"右",value:"right"},{label:"下",value:"bottom"},{label:"左",value:"left"}]}},{label:"子选项卡配置",component:"FormList",children:[{label:"标题",component:"Input",props:{placeholder:"请输入标题"},designKey:"id-l8cI",name:"label",initialValue:'{{ "选项卡" + ($index + 1) }}'},{label:"唯一标识",component:"Input",props:{placeholder:"请输入唯一标识"},designKey:"form-YE6U",name:"name",initialValue:'{{ "name" + ($index + 1) }}'},{label:"禁用",component:"Switch",props:{"inline-prompt":!1},designKey:"design-fPOI1",name:"disabled"},{label:"懒加载",component:"Switch",props:{"inline-prompt":!1},designKey:"design-fPOI11",name:"lazy"}],props:{mode:"card",title:"选项卡"},designKey:"id-RQ1a",name:"children"}]}},a_={title:"对象容器",icon:A.h(we,{name:"itemGroup"}),type:"high",component:"ObjGroup",render:A.defineAsyncComponent(()=>Promise.resolve().then(()=>RS)),order:2,lbTitle:!0,attrSchema:{size:"small",labelPosition:"top",initialValues:{props:{align:"left",gap:20},children:[],hideLabel:!0},items:[{label:"唯一标识",component:"Input",name:"name"}]}},s_={},l_={t:"1727251512891",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3914",width:"20",height:"20"};function c_(n,e){return A.openBlock(),A.createElementBlock("svg",l_,e[0]||(e[0]=[A.createElementVNode("path",{d:"M320 128H128c-35.2 0-64 28.8-64 64v640c0 35.2 28.8 64 64 64h192c35.2 0 64-28.8 64-64V192c0-35.2-28.8-64-64-64z m0 672c0 16-16 32-32 32H160c-16 0-32-16-32-32V224c0-16 16-32 32-32h128c16 0 32 16 32 32v576z m256-544h-64c-19.2 0-32 12.8-32 32s16 32 32 32h64c19.2 0 32-12.8 32-32s-16-32-32-32z m-64 448h-64c-19.2 0-32 12.8-32 32s16 32 32 32h64c19.2 0 32-12.8 32-32s-16-32-32-32z m384-576H704c-35.2 0-64 28.8-64 64v640c0 35.2 28.8 64 64 64h192c35.2 0 64-28.8 64-64V192c0-35.2-28.8-64-64-64z m0 672c0 16-16 32-32 32H736c-16 0-32-16-32-32V224c0-16 16-32 32-32h128c16 0 32 16 32 32v576z",fill:"#333333","p-id":"3915"},null,-1)]))}const g_=ae(s_,[["render",c_]]),d_={size:"small",labelPosition:"top",initialValues:{label:"穿梭框",props:{data:[{label:"选项一",key:"value1"},{label:"选项二",key:"value2"},{label:"选项三",key:"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:"Input",name:"initialValue"},{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"},{component:"Divider",props:{title:"选项设置",contentPosition:"center"},designKey:"design-gSnX",name:"form-xDEe",style:{marginTop:"40px"}},{label:"静态选项",name:"props.data",component:"FormList",children:[{label:"选项名",name:"label",component:"Input",props:{placeholder:"请输入..."},designKey:"form-LnGh",initialValue:'{{ "选项" + ($index + 1) }}'},{label:"选项值",name:"key",component:"Input",designKey:"form-HYtW",initialValue:'{{ "value" + ($index + 1) }}'}],designKey:"form-Iwpd",props:{mode:"table"}}]},u_={key:0},h_={title:"穿梭框",component:"Transfer",render:A.defineComponent({__name:"Transfer",props:A.mergeModels({name:{},data:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=n,t=Ct(),i=A.useModel(n,"modelValue"),h=Q=>{const r=Q.map(D=>e.data.find(w=>w.key===D));t.updateSelectData(e.name,r)};return(Q,r)=>{var w;const D=A.resolveComponent("el-transfer");return A.unref(t).read?(A.openBlock(),A.createElementBlock("div",u_,A.toDisplayString((w=i.value)==null?void 0:w.map(f=>{var S;return(S=Q.data.find(F=>F.key===f))==null?void 0:S.label}).join("、")),1)):(A.openBlock(),A.createBlock(D,A.mergeProps({key:1},Q.$attrs,{data:Q.data,onChange:h,modelValue:i.value,"onUpdate:modelValue":r[0]||(r[0]=f=>i.value=f)}),null,16,["data","modelValue"]))}}}),icon:g_,type:"basic",order:12,attrSchema:d_},p_={size:"small",labelPosition:"top",items:[{label:"标签",component:"Input",name:"label",initialValue:"单行文本"},{label:"唯一标识",component:"Input",name:"name",help:"既是唯一标识,也是数据路径。比如输入【props.name】,数据就会保存为 { props: { name:'xxx' } }"},{label:"字段说明",component:"TextArea",name:"help",designKey:"form-ekRL1"},{label:"占位提示",component:"Input",name:"props.placeholder",designKey:"form-ekRL"},{label:"初始值",component:"Input",name:"initialValue"},{component:"Grid",children:[{label:"是否必填",component:"Switch",name:"required"},{label:"是否只读",component:"Switch",name:"props.readonly"},{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:"FormList",name:"rules",dialog:!0,children:[{label:"类型",component:"Select",props:{mode:"static",options:[{label:"邮箱",value:"email"},{label:"字母+数字",value:"^(?=.*[a-zA-Z])(?=.*\\d)[a-zA-Z\\d]+$"},{label:"手机号码",value:"^1[3456789]\\d{9}$"},{label:"网址",value:"url"},{label:"自定义正则",value:"custom"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P",name:"type"},{label:"自定义正则",component:"Input",props:{placeholder:"请输入正则表达式"},designKey:"form-Wdb2Reg",name:"customReg",hidden:'{{$item.type!=="custom"}}'},{label:"提示语",component:"Input",props:{placeholder:"请输入..."},designKey:"form-Wdb2",name:"message"},{label:"校验时机",component:"Checkbox",props:{mode:"static",options:[{label:"失去焦点时",value:"blur"},{label:"输入时",value:"change"}],placeholder:"请选择...",labelKey:"label",valueKey:"value"},designKey:"form-3L0P6666",name:"trigger"}],designKey:"form-89tI",props:{mode:"card",title:"校验规则"}},{label:"显示清除按钮",component:"Switch",name:"props.clearable"},{label:"change事件函数名",component:"Input",name:"props.onChange"},{label:"最长字数",component:"InputNumber",name:"props.maxlength"},{label:"是否展示弹窗",component:"Switch",name:"props.withDialog"}]},C_=["title"],B_=ae(A.defineComponent({__name:"SearchInput",props:A.mergeModels({onInput:{},onSearch:{},onClick:{},onClear:{},disabled:{type:Boolean},readonly:{type:Boolean},read:{type:Boolean},readTextColor:{},clearable:{type:Boolean},round:{type:Boolean},name:{},width:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=A.useModel(n,"modelValue"),t=n,i=A.inject("ruleModule",void 0),h=A.inject("pageMethodMap",{}),Q=Ct(),r=A.computed(()=>t.read||Q.schema.read);A.watch(e,F=>{F&&Q.clearValidate(t.name)});const D=F=>{if(t.onInput&&i)try{i[t.onInput](h,F)}catch(G){console.error(G+`
107
107
  onInput: ${t.onInput}`)}},w=()=>{if(t.onClick&&i)try{i[t.onClick](h,e.value)}catch(F){console.error(F+`
108
108
  onClick: ${t.onClick}`)}},f=()=>{if(t.onSearch&&i)try{i[t.onSearch](h,t.name)}catch(F){console.error(F+`
109
109
  onSearch: ${t.onSearch}`)}},S=()=>{if(t.onClear&&i&&i[t.onClear])try{i[t.onClear](h,t.name)}catch(F){console.error(F+`