asiaint-lowcode 3.1.101 → 3.1.102

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 +1 -1
  3. package/dist/lazy/{Card-BZDjHu_m.js → Card-BMdf2FOG.js} +1 -1
  4. package/dist/lazy/{Cascader-Dn1pjB5T.js → Cascader-BId-OuDH.js} +1 -1
  5. package/dist/lazy/{Checkbox-DI-6MNQ1.js → Checkbox-DbtOg0Qr.js} +2 -2
  6. package/dist/lazy/{Collapse-C3_QWAIH.js → Collapse-B9fI8DJf.js} +1 -1
  7. package/dist/lazy/{Component-DZi53-pE.js → Component-BxxBM5oM.js} +1 -1
  8. package/dist/lazy/{Component-B8xM0qor.js → Component-D3aSxEDt.js} +1 -1
  9. package/dist/lazy/{Component-DJTFvMsn.js → Component-DH_YYzNN.js} +1 -1
  10. package/dist/lazy/{Component-CFkVhgsW.js → Component-DbL-pqiK.js} +1 -1
  11. package/dist/lazy/{Component-B_Jap6qQ.js → Component-H4P0RXJB.js} +1 -1
  12. package/dist/lazy/{CurdCard-CPXW5f-S.js → CurdCard-BBhkAyrR.js} +1 -1
  13. package/dist/lazy/{Custom-PgN_xXcY.js → Custom-BGsAzJr8.js} +1 -1
  14. package/dist/lazy/{DatePicker-CTJjGRk8.js → DatePicker-CKvvfvuz.js} +1 -1
  15. package/dist/lazy/{DragList-Dg5HxV3x.js → DragList-DLmKHx1I.js} +1 -1
  16. package/dist/lazy/{FilterSearch-BOUE45nF.js → FilterSearch-BktC9qBi.js} +1 -1
  17. package/dist/lazy/{FloatCurd-B2uaBqsQ.js → FloatCurd-DV8EHSXb.js} +1 -1
  18. package/dist/lazy/{FormList-DzesZMda.js → FormList-D4L-vNfy.js} +1 -1
  19. package/dist/lazy/{Grid-CAQvKht-.js → Grid-b_aNKWbS.js} +1 -1
  20. package/dist/lazy/{InfiniteScroll-bgYxwbqK.js → InfiniteScroll-KwfQ-0RM.js} +1 -1
  21. package/dist/lazy/{Inline-Pv3N9pow.js → Inline-D4k6bs63.js} +1 -1
  22. package/dist/lazy/{JsonEdit-imz7C04M.js → JsonEdit-B72Ydk48.js} +1 -1
  23. package/dist/lazy/{LogList-rLWZkKEQ.js → LogList-D35IYkka.js} +1 -1
  24. package/dist/lazy/{ObjGroup-DQNR3Ie9.js → ObjGroup-B9LKgcZJ.js} +1 -1
  25. package/dist/lazy/{OfferDetails-4MJ5Cn68.js → OfferDetails-CRp6CLRU.js} +1 -1
  26. package/dist/lazy/{Pagination-B2LP1WNd.js → Pagination-CwYLwO1y.js} +1 -1
  27. package/dist/lazy/{Progress-Q79oISPT.js → Progress-iZgcZMPw.js} +1 -1
  28. package/dist/lazy/{Radio-ONGuXLrG.js → Radio-Dgq31pLQ.js} +2 -2
  29. package/dist/lazy/{SearchSelect-CVZ8-AOk.js → SearchSelect-COnEj31O.js} +2 -2
  30. package/dist/lazy/{Select-D9N9vDzF.js → Select-BLStykg2.js} +2 -2
  31. package/dist/lazy/{Table-Bd2LkjC3.js → Table-BzaqEiLr.js} +1 -1
  32. package/dist/lazy/{Tabs-tsNnUa-B.js → Tabs-CqQqNHbu.js} +1 -1
  33. package/dist/lazy/{TextArea-DNhsV3At.js → TextArea--8IuwvFN.js} +1 -1
  34. package/dist/lazy/{Wrapper-BBJ_Oilm.js → Wrapper-D5jKFO1a.js} +1 -1
  35. package/dist/lazy/{index-7i6sjAor.js → index-DLZItbcM.js} +300 -301
  36. package/dist/lazy/{useSelect-CJ87tEaw.js → useSelect-CGYFUsCu.js} +1 -1
  37. package/dist/style.css +1 -1
  38. package/package.json +1 -1
@@ -97,7 +97,7 @@ You passed in: '`+this.raw_options[i]+"'");return o},n.prototype._is_valid_selec
97
97
  onClick: ${w}`)}},o=async()=>{const w=g.onShow;if(w&&e)try{await e[w](t,g)}catch(I){console.error(I+`
98
98
  onShow: ${w}`)}},y=async()=>{if(g.beforeEnter&&e)try{await e[g.beforeEnter](t)}catch(w){console.error(w+`
99
99
  onClick: ${g.beforeEnter}`)}};return(w,I)=>{const S=A.resolveComponent("el-tooltip"),N=A.resolveComponent("el-popover");return A.openBlock(),A.createBlock(N,{trigger:g.trigger||"hover",width:g.width,offset:w.offset,"popper-class":g.noPadding?"no-padding":"",title:g.title,placement:g.placement,onBeforeEnter:y,"popper-style":{overflow:"auto"},disabled:g.disabled,onShow:o},{reference:A.withCtx(()=>{var T,O,H,P,v;return[A.createElementVNode("div",{style:A.normalizeStyle(g.ostyle+(i.value?g.hoverStyle:"")),onMouseenter:I[0]||(I[0]=E=>i.value=!0),onMouseleave:I[1]||(I[1]=E=>i.value=!1)},[((T=g.reference)==null?void 0:T.component)==="Icon"?(A.openBlock(),A.createBlock(S,{key:0,content:(H=(O=g.reference)==null?void 0:O.props)==null?void 0:H.tooltip,disabled:!((v=(P=g.reference)==null?void 0:P.props)!=null&&v.tooltip),placement:"top"},{default:A.withCtx(()=>{var E,F,k,_;return[A.createVNode(De,{name:(F=(E=g.reference)==null?void 0:E.props)==null?void 0:F.name,color:i.value&&g.hoverColor?g.hoverColor:(_=(k=g.reference)==null?void 0:k.props)==null?void 0:_.color,class:"btn-icon cursor-pointer",size:g.size||"normal",onClick:m},null,8,["name","color","size"])]}),_:1},8,["content","disabled"])):g.reference?(A.openBlock(),A.createBlock(A.unref(at),{key:1,list:[g.reference]},null,8,["list"])):A.createCommentVNode("",!0)],36)]}),default:A.withCtx(()=>[A.createElementVNode("div",null,[w.children?(A.openBlock(),A.createBlock(A.unref(at),{key:0,list:w.children},null,8,["list"])):A.createCommentVNode("",!0)])]),_:1},8,["trigger","width","offset","popper-class","title","placement","disabled"])}}}),[["__scopeId","data-v-acbb0782"]]),ao=oe(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=Qt(),i=jo(),g=A.reactive({visible:!1,title:""}),m=()=>{g.visible=!0,g.title=e.label},o=A.computed({get(){return va(t.formValues,e.name)},set(v){const E=So(t.formValues,e.name,v);t.updateFormValues(E)}}),y=A.computed(()=>{const{rules:v,required:E,component:F}=e,k=[];if(E&&k.push({required:!0,trigger:"blur",message:"Required"}),v){const _=v.map(B=>{const{type:p,message:u,trigger:l,customReg:d,templateExp:s}=B,h={message:u,trigger:l};return["email","url"].includes(p)?{...h,type:p}:p==="custom"&&d?{...h,pattern:dE(d)}:gE(p)?{...h,pattern:p}:p==="template"?{...h,validator:()=>s}:{}});return[...k,..._]}if(F==="VerifyCode"){const _={trigger:"blur",message:"验证码错误!",validator:()=>t.vCodePass};return[...k,_]}return k}),w=A.computed(()=>{const v=i[e.component]||{};return v.modelName||(v.modelName="modelValue"),v}),I=A.computed(()=>{const v={name:e.name,...e.props};return e.children&&(v.children=e.children),v}),S=()=>{if(e.component!=="DragList")return[];const v=I.value.gridlayout||[],E=I.value.children||[],F=I.value.rowHeight||30;return v.map((k,_)=>{var B;return{...k,i:(B=E[_])==null?void 0:B.name,rowHeight:F}})},N=A.ref(S()),T=v=>v==null?void 0:v.replace(/ /g," "),{ruleModule:O,pageMethodMap:H}=Fn(),P=async v=>{if(v&&O)try{await O[v](H)}catch(E){console.error(E+`
100
- onClick: ${v}`)}};return A.onBeforeMount(()=>{if(o.value===void 0&&e.initialValue!==void 0&&!t.design){const v=So(t.initialValues,e.name,e.initialValue);t.updateInitialValues(v),o.value=e.initialValue}}),A.watch(o,(v,E)=>{const F=e.change,k=ht.isEqual(v,E);if(!F||k)return;let _=ht.cloneDeep(t.formValues);F.forEach(({target:B,value:p,condition:u})=>{if(u!==!1){if(B.includes(".*.")){const l=B.split(".*."),d=l.pop(),s=l.join("."),h=va(t.formValues,s);ht.isArray(h)&&(_=So(_,s,h.map(C=>({...C,[d]:p}))));return}_=So(_,B,p)}}),t.updateFormValues(_)},{immediate:!0}),(v,E)=>{var p;const F=A.resolveComponent("el-tooltip"),k=A.resolveComponent("el-dialog"),_=A.resolveComponent("el-button"),B=A.resolveComponent("el-form-item");return A.unref(t).design||!v.hidden?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[A.createTextVNode(A.toDisplayString(v.nullFieldHidden)+"-"+A.toDisplayString(!v.nullFieldHidden||o.value||o.value===0)+" ",1),w.value.component==="DragList"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(w.value.render),A.mergeProps({key:0},I.value,{style:{minWidth:0},gridlayout:N.value,"onUpdate:gridlayout":E[0]||(E[0]=u=>N.value=u)}),null,16,["gridlayout"])):w.value.type==="layout"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(w.value.render),A.mergeProps({key:1},I.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},I.value)),null,16)):(A.openBlock(),A.createBlock(B,{class:A.normalizeClass([A.unref(je)("form-item"),e.class,`${v.component}-${v.name}`,{readMode:((p=e.props)==null?void 0:p.read)||A.unref(t).schema.read,hideLabel:v.hideLabel,wFullLabel:v.wFullLabel}]),style:A.normalizeStyle(v.style),key:v.name,prop:v.name,"label-width":v.hideLabel?"0":A.unref(t).schema.labelWidth,rules:y.value},{label:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",{class:A.normalizeClass([A.unref(je)("form-item-label"),v.label&&`${v.name}-label`])},[A.createElementVNode("div",{style:A.normalizeStyle(A.unref(t).schema.labelBold&&"font-weight: bold")},A.toDisplayString(T(v.label)),5),v.labelSuffixText?(A.openBlock(),A.createElementBlock("div",{key:0,style:A.normalizeStyle([v.labelSuffixStyle,{"margin-left":"4px"}])},A.toDisplayString(v.labelSuffixText),5)):A.createCommentVNode("",!0),v.help?(A.openBlock(),A.createElementBlock("div",{key:1,class:A.normalizeClass(A.unref(je)("form-item-label-ico"))},[A.createVNode(F,{effect:"dark",content:v.help,placement:"right"},{default:A.withCtx(()=>[A.createVNode(De,{name:"icon-a-lujing11",color:"#999999",style:{width:"14px",height:"14px"}})]),_:1},8,["content"])],2)):A.createCommentVNode("",!0),v.labelSuffix?(A.openBlock(),A.createElementBlock("div",{key:2,class:A.normalizeClass(A.unref(je)("form-item-label-suffix"))},[v.labelSuffix.component==="Popover"?(A.openBlock(),A.createBlock(Jp,A.normalizeProps(A.mergeProps({key:0},A.unref(Mt)(v.labelSuffix.props,A.unref(t).context))),null,16)):v.labelSuffix.component==="Icon"?(A.openBlock(),A.createBlock(F,{key:1,effect:"dark",content:v.labelSuffix.props.tooltip,placement:"right",disabled:!v.labelSuffix.props.tooltip},{default:A.withCtx(()=>[A.createVNode(De,{name:v.labelSuffix.props.name,color:v.labelSuffix.props.color,onClick:E[1]||(E[1]=u=>P(v.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,!v.hideLabel]])]),default:A.withCtx(()=>[v.dialog?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[A.createVNode(k,{modelValue:g.visible,"onUpdate:modelValue":E[3]||(E[3]=u=>g.visible=u),title:g.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},I.value,{disabled:A.unref(t).schema.disabled,[w.value.modelName]:o.value,["onUpdate:"+w.value.modelName]:E[2]||(E[2]=u=>o.value=u)}),null,16,["size","disabled"]))]),_:1},8,["modelValue","title"]),A.createVNode(_,{type:"primary",plain:"",onClick:m},{default:A.withCtx(()=>E[5]||(E[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(Mt)(I.value,A.unref(t).context),{[w.value.modelName]:o.value,["onUpdate:"+w.value.modelName]:E[4]||(E[4]=u=>o.value=u)}),null,16,["size","disabled"]))]),_:1},8,["class","style","prop","label-width","rules"]))],64)):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-35e88f70"]]),_1={key:0,class:"actions-lt"},M1={class:"canvas-move",size:"small",type:"primary"},x1={key:1,class:"hidden-ico"},S1={key:2,class:"actions-rb"},N1=["onClick"],F1={key:3,class:"layout-title"},R1=A.defineComponent({__name:"CanvasItem",props:{data:{}},setup(n){const e=n,t=Nn(),g=jo()[e.data.component],m=A.computed(()=>{var T;return{[je("canvas-item")]:!0,active:e.data.designKey===((T=t.current)==null?void 0:T.designKey),hover:e.data.designKey===t.hoverKey,mask:e.data.designKey===t.hoverKey&&!e.data.children,collapse:I.value}}),o=()=>{e.data.designKey&&t.updateHoverKey(e.data.designKey)},y=()=>{t.updateHoverKey("")},w=T=>{t.updateCurrent(T),t.rightTab="attr"},I=A.ref(!1),S=()=>{I.value=!I.value},N=[{icon:"copy",handle:T=>{const O=th(t.list,T.designKey);t.updateList(O)}},{icon:"delete",bg:"var(--el-color-danger)",handle:T=>{const O=Ud(t.list,H=>H.designKey!==T.designKey);t.updateList(O)}}];return(T,O)=>{var H,P;return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(m.value),onClick:O[0]||(O[0]=A.withModifiers(v=>w(T.data),["stop"])),onMousemove:A.withModifiers(o,["stop"]),onMouseleave:A.withModifiers(y,["stop"])},[T.data.designKey===((H=A.unref(t).current)==null?void 0:H.designKey)?(A.openBlock(),A.createElementBlock("div",_1,[A.createElementVNode("div",M1,[A.createVNode(A.unref(fe),{name:"move"})]),A.createElementVNode("div",{class:"canvas-collapse",size:"small",type:"primary",onClick:S},[A.createVNode(A.unref(fe),{name:"select"})])])):A.createCommentVNode("",!0),T.data.hidden?(A.openBlock(),A.createElementBlock("div",x1,[A.createVNode(A.unref(fe),{name:"hidden"})])):A.createCommentVNode("",!0),T.data.designKey===((P=A.unref(t).current)==null?void 0:P.designKey)?(A.openBlock(),A.createElementBlock("ul",S1,[(A.openBlock(),A.createElementBlock(A.Fragment,null,A.renderList(N,({icon:v,handle:E,bg:F})=>A.createElementVNode("li",{class:"actions-rb-item",onClick:A.withModifiers(k=>E(T.data),["stop"]),key:v,style:A.normalizeStyle({backgroundColor:F})},[A.createVNode(A.unref(fe),{name:v},null,8,["name"])],12,N1)),64))])):A.createCommentVNode("",!0),A.unref(g).lbTitle?(A.openBlock(),A.createElementBlock("div",F1,A.toDisplayString(A.unref(g).title),1)):A.createCommentVNode("",!0),A.createVNode(ao,A.mergeProps(T.data,{props:T.data.props}),null,16,["props"])],34)}}}),cg=A.defineComponent({__name:"CanvasGroup",props:{list:{},style:{},class:{},emptyText:{default:"请拖入子字段"},emptySize:{default:12}},setup(n){const e=n,t=Nn(),i=g=>{const m=g.item._underlying_vm_;t.updateCurrent(Cc(t.list,m.designKey)),t.hoverKey=m.designKey,t.rightTab="attr",t.handleEmit("add",m)};return(g,m)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("canvas-group")),style:A.normalizeStyle({overflow:g.list.length?"auto":"hidden"})},[g.list.length?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(A.unref(je)("canvas-group-empty")),style:A.normalizeStyle({fontSize:g.emptySize+"px"})},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("canvas-group-empty-ico"))},[A.createVNode(A.unref(fe),{name:"add"})],2),A.createElementVNode("p",null,A.toDisplayString(g.emptyText),1)],6)),A.createVNode(A.unref(zp),{list:g.list,group:"formDesign",itemKey:"name","ghost-class":A.unref(je)("canvas-group-ghost"),class:A.normalizeClass([A.unref(je)("canvas-group-draggable"),e.class]),style:A.normalizeStyle(g.style),animation:300,handle:".canvas-move","force-fallback":"",onAdd:i},{item:A.withCtx(({element:o})=>[o.designKey?(A.openBlock(),A.createBlock(R1,{key:0,data:o},null,8,["data"])):A.createCommentVNode("",!0)]),_:1},8,["list","ghost-class","class","style"])],6))}}),L1=typeof window<"u";var Zp;L1&&((Zp=window==null?void 0:window.navigator)!=null&&Zp.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function vt(n){return n==null}function Wp(){}const G1=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(G1)));function P1(){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(g=>{g(...t)})}}}function ys(n,e=16){if(typeof n!="function")return Wp;const t=(...m)=>{n(...m)};if(e<=0)return jp(t);let i=0,g;return function(...m){const o=Date.now(),y=o-i;clearTimeout(g),y>=e?(i=o,t(...m)):g=setTimeout(()=>{i=Date.now(),t(...m)},Math.max(0,e-y))}}function H1(n,e=100){if(typeof n!="function")return Wp;const t=(...g)=>{n(...g)};if(e<=0)return jp(t);let i;return function(...g){clearTimeout(i),i=setTimeout(()=>{t(...g)},e)}}function jp(n){if(typeof n!="function")return n;let e=!1,t,i;return function(...g){return t=g,e||(e=!0,i=Promise.resolve().then(()=>(e=!1,i=void 0,n(...t)))),i}}const Or=new Set,qp=new WeakMap;function K1(){Or.forEach(n=>{n(...qp.get(n))}),Or.clear()}function rt(n,...e){if(typeof n!="function")return n;qp.set(n,e),!Or.has(n)&&(Or.add(n),Or.size===1&&Promise.resolve().then(K1))}const T1=Symbol("LAYOUT_KEY"),U1=Symbol("EMITTER_KEY");function Y1(n,e,t,i){const g="translate3d("+e+"px,"+n+"px, 0)";return{transform:g,WebkitTransform:g,MozTransform:g,msTransform:g,OTransform:g,width:t+"px",height:i+"px",position:"absolute"}}function O1(n,e,t,i){const g="translate3d("+e*-1+"px,"+n+"px, 0)";return{transform:g,WebkitTransform:g,MozTransform:g,msTransform:g,OTransform:g,width:t+"px",height:i+"px",position:"absolute"}}function $1(n,e,t,i){return{top:n+"px",left:e+"px",width:t+"px",height:i+"px",position:"absolute"}}function z1(n,e,t,i){return{top:n+"px",right:e+"px",width:t+"px",height:i+"px",position:"absolute"}}function J1(n,e="vgl"){const t=()=>`${e}-${n}`;return{b:t,be:i=>`${t()}__${i}`,bm:i=>`${t()}--${i}`,bem:(i,g)=>`${t()}__${i}--${g}`}}function Xp(n){return Z1(n)}function Z1(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(),g=n.clientX+t.scrollLeft-i.left,m=n.clientY+t.scrollTop-i.top;return{x:g,y:m}}function Vp(n,e,t,i){return W1(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 W1(n){return typeof n=="number"&&!Number.isNaN(n)}function j1(n,e){if(!e[n])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+n+" is missing!");return e[n]}let q1="auto";function X1(){return typeof document<"u"}function AC(){return X1()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):q1}var Ds={exports:{}};Ds.exports,function(n,e){(function(t,i){n.exports=i()})(xo,function(){function t(L,R){var Z=Object.keys(L);if(Object.getOwnPropertySymbols){var iA=Object.getOwnPropertySymbols(L);R&&(iA=iA.filter(function(sA){return Object.getOwnPropertyDescriptor(L,sA).enumerable})),Z.push.apply(Z,iA)}return Z}function i(L){for(var R=1;R<arguments.length;R++){var Z=arguments[R]!=null?arguments[R]:{};R%2?t(Object(Z),!0).forEach(function(iA){w(L,iA,Z[iA])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(Z)):t(Object(Z)).forEach(function(iA){Object.defineProperty(L,iA,Object.getOwnPropertyDescriptor(Z,iA))})}return L}function g(L){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},g(L)}function m(L,R){if(!(L instanceof R))throw new TypeError("Cannot call a class as a function")}function o(L,R){for(var Z=0;Z<R.length;Z++){var iA=R[Z];iA.enumerable=iA.enumerable||!1,iA.configurable=!0,"value"in iA&&(iA.writable=!0),Object.defineProperty(L,P(iA.key),iA)}}function y(L,R,Z){return R&&o(L.prototype,R),Object.defineProperty(L,"prototype",{writable:!1}),L}function w(L,R,Z){return(R=P(R))in L?Object.defineProperty(L,R,{value:Z,enumerable:!0,configurable:!0,writable:!0}):L[R]=Z,L}function I(L,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(R&&R.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),R&&N(L,R)}function S(L){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)},S(L)}function N(L,R){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,iA){return Z.__proto__=iA,Z},N(L,R)}function T(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function O(L){var R=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,iA=S(L);if(R){var sA=S(this).constructor;Z=Reflect.construct(iA,arguments,sA)}else Z=iA.apply(this,arguments);return function(uA,BA){if(BA&&(typeof BA=="object"||typeof BA=="function"))return BA;if(BA!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(uA)}(this,Z)}}function H(){return H=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(L,R,Z){var iA=function(uA,BA){for(;!Object.prototype.hasOwnProperty.call(uA,BA)&&(uA=S(uA))!==null;);return uA}(L,R);if(iA){var sA=Object.getOwnPropertyDescriptor(iA,R);return sA.get?sA.get.call(arguments.length<3?L:Z):sA.value}},H.apply(this,arguments)}function P(L){var R=function(Z,iA){if(typeof Z!="object"||Z===null)return Z;var sA=Z[Symbol.toPrimitive];if(sA!==void 0){var uA=sA.call(Z,iA);if(typeof uA!="object")return uA;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}(L,"string");return typeof R=="symbol"?R:R+""}var v=function(L){return!(!L||!L.Window)&&L instanceof L.Window},E=void 0,F=void 0;function k(L){E=L;var R=L.document.createTextNode("");R.ownerDocument!==L.document&&typeof L.wrap=="function"&&L.wrap(R)===R&&(L=L.wrap(L)),F=L}function _(L){return v(L)?L:(L.ownerDocument||L).defaultView||F.window}typeof window<"u"&&window&&k(window);var B=function(L){return!!L&&g(L)==="object"},p=function(L){return typeof L=="function"},u={window:function(L){return L===F||v(L)},docFrag:function(L){return B(L)&&L.nodeType===11},object:B,func:p,number:function(L){return typeof L=="number"},bool:function(L){return typeof L=="boolean"},string:function(L){return typeof L=="string"},element:function(L){if(!L||g(L)!=="object")return!1;var R=_(L)||F;return/object|function/.test(typeof Element>"u"?"undefined":g(Element))?L instanceof Element||L instanceof R.Element:L.nodeType===1&&typeof L.nodeName=="string"},plainObject:function(L){return B(L)&&!!L.constructor&&/function Object\b/.test(L.constructor.toString())},array:function(L){return B(L)&&L.length!==void 0&&p(L.splice)}};function l(L){var R=L.interaction;if(R.prepared.name==="drag"){var Z=R.prepared.axis;Z==="x"?(R.coords.cur.page.y=R.coords.start.page.y,R.coords.cur.client.y=R.coords.start.client.y,R.coords.velocity.client.y=0,R.coords.velocity.page.y=0):Z==="y"&&(R.coords.cur.page.x=R.coords.start.page.x,R.coords.cur.client.x=R.coords.start.client.x,R.coords.velocity.client.x=0,R.coords.velocity.page.x=0)}}function d(L){var R=L.iEvent,Z=L.interaction;if(Z.prepared.name==="drag"){var iA=Z.prepared.axis;if(iA==="x"||iA==="y"){var sA=iA==="x"?"y":"x";R.page[sA]=Z.coords.start.page[sA],R.client[sA]=Z.coords.start.client[sA],R.delta[sA]=0}}}var s={id:"actions/drag",install:function(L){var R=L.actions,Z=L.Interactable,iA=L.defaults;Z.prototype.draggable=s.draggable,R.map.drag=s,R.methodDict.drag="draggable",iA.actions.drag=s.defaults},listeners:{"interactions:before-action-move":l,"interactions:action-resume":l,"interactions:action-move":d,"auto-start:check":function(L){var R=L.interaction,Z=L.interactable,iA=L.buttons,sA=Z.options.drag;if(sA&&sA.enabled&&(!R.pointerIsDown||!/mouse|pointer/.test(R.pointerType)||iA&Z.options.drag.mouseButtons))return L.action={name:"drag",axis:sA.lockAxis==="start"?sA.startAxis:sA.lockAxis},!1}},draggable:function(L){return u.object(L)?(this.options.drag.enabled=L.enabled!==!1,this.setPerAction("drag",L),this.setOnEvents("drag",L),/^(xy|x|y|start)$/.test(L.lockAxis)&&(this.options.drag.lockAxis=L.lockAxis),/^(xy|x|y)$/.test(L.startAxis)&&(this.options.drag.startAxis=L.startAxis),this):u.bool(L)?(this.options.drag.enabled=L,this):this.options.drag},beforeMove:l,move:d,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(L){return L.search("drag")===0}},h=s,C={init:function(L){var R=L;C.document=R.document,C.DocumentFragment=R.DocumentFragment||a,C.SVGElement=R.SVGElement||a,C.SVGSVGElement=R.SVGSVGElement||a,C.SVGElementInstance=R.SVGElementInstance||a,C.Element=R.Element||a,C.HTMLElement=R.HTMLElement||C.Element,C.Event=R.Event,C.Touch=R.Touch||a,C.PointerEvent=R.PointerEvent||R.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function a(){}var r=C,Q={init:function(L){var R=r.Element,Z=L.navigator||{};Q.supportsTouch="ontouchstart"in L||u.func(L.DocumentTouch)&&r.document instanceof L.DocumentTouch,Q.supportsPointerEvent=Z.pointerEnabled!==!1&&!!r.PointerEvent,Q.isIOS=/iP(hone|od|ad)/.test(Z.platform),Q.isIOS7=/iP(hone|od|ad)/.test(Z.platform)&&/OS 7[^\d]/.test(Z.appVersion),Q.isIe9=/MSIE 9/.test(Z.userAgent),Q.isOperaMobile=Z.appName==="Opera"&&Q.supportsTouch&&/Presto/.test(Z.userAgent),Q.prefixedMatchesSelector="matches"in R.prototype?"matches":"webkitMatchesSelector"in R.prototype?"webkitMatchesSelector":"mozMatchesSelector"in R.prototype?"mozMatchesSelector":"oMatchesSelector"in R.prototype?"oMatchesSelector":"msMatchesSelector",Q.pEventTypes=Q.supportsPointerEvent?r.PointerEvent===L.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,Q.wheelEvent=r.document&&"onmousewheel"in r.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},f=Q;function M(L,R){if(L.contains)return L.contains(R);for(;R;){if(R===L)return!0;R=R.parentNode}return!1}function x(L,R){for(;u.element(L);){if(z(L,R))return L;L=K(L)}return null}function K(L){var R=L.parentNode;if(u.docFrag(R)){for(;(R=R.host)&&u.docFrag(R););return R}return R}function z(L,R){return F!==E&&(R=R.replace(/\/deep\//g," ")),L[f.prefixedMatchesSelector](R)}var AA=function(L){return L.parentNode||L.host};function eA(L,R){for(var Z,iA=[],sA=L;(Z=AA(sA))&&sA!==R&&Z!==sA.ownerDocument;)iA.unshift(sA),sA=Z;return iA}function V(L,R,Z){for(;u.element(L);){if(z(L,R))return!0;if((L=K(L))===Z)return z(L,R)}return!1}function $(L){return L.correspondingUseElement||L}function J(L){var R=L instanceof r.SVGElement?L.getBoundingClientRect():L.getClientRects()[0];return R&&{left:R.left,right:R.right,top:R.top,bottom:R.bottom,width:R.width||R.right-R.left,height:R.height||R.bottom-R.top}}function D(L){var R,Z=J(L);if(!f.isIOS7&&Z){var iA={x:(R=(R=_(L))||F).scrollX||R.document.documentElement.scrollLeft,y:R.scrollY||R.document.documentElement.scrollTop};Z.left+=iA.x,Z.right+=iA.x,Z.top+=iA.y,Z.bottom+=iA.y}return Z}function j(L){for(var R=[];L;)R.push(L),L=K(L);return R}function G(L){return!!u.string(L)&&(r.document.querySelector(L),!0)}function q(L,R){for(var Z in R)L[Z]=R[Z];return L}function aA(L,R,Z){return L==="parent"?K(Z):L==="self"?R.getRect(Z):x(Z,L)}function oA(L,R,Z,iA){var sA=L;return u.string(sA)?sA=aA(sA,R,Z):u.func(sA)&&(sA=sA.apply(void 0,iA)),u.element(sA)&&(sA=D(sA)),sA}function dA(L){return L&&{x:"x"in L?L.x:L.left,y:"y"in L?L.y:L.top}}function mA(L){return!L||"x"in L&&"y"in L||((L=q({},L)).x=L.left||0,L.y=L.top||0,L.width=L.width||(L.right||0)-L.x,L.height=L.height||(L.bottom||0)-L.y),L}function gA(L,R,Z){L.left&&(R.left+=Z.x),L.right&&(R.right+=Z.x),L.top&&(R.top+=Z.y),L.bottom&&(R.bottom+=Z.y),R.width=R.right-R.left,R.height=R.bottom-R.top}function wA(L,R,Z){var iA=Z&&L.options[Z];return dA(oA(iA&&iA.origin||L.options.origin,L,R,[L&&R]))||{x:0,y:0}}function X(L,R){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(DA){return!0},iA=arguments.length>3?arguments[3]:void 0;if(iA=iA||{},u.string(L)&&L.search(" ")!==-1&&(L=lA(L)),u.array(L))return L.forEach(function(DA){return X(DA,R,Z,iA)}),iA;if(u.object(L)&&(R=L,L=""),u.func(R)&&Z(L))iA[L]=iA[L]||[],iA[L].push(R);else if(u.array(R))for(var sA=0,uA=R;sA<uA.length;sA++){var BA=uA[sA];X(L,BA,Z,iA)}else if(u.object(R))for(var QA in R)X(lA(QA).map(function(DA){return"".concat(L).concat(DA)}),R[QA],Z,iA);return iA}function lA(L){return L.trim().split(/ +/)}var cA=function(L,R){return Math.sqrt(L*L+R*R)},hA=["webkit","moz"];function U(L,R){L.__set||(L.__set={});var Z=function(sA){if(hA.some(function(uA){return sA.indexOf(uA)===0}))return 1;typeof L[sA]!="function"&&sA!=="__set"&&Object.defineProperty(L,sA,{get:function(){return sA in L.__set?L.__set[sA]:L.__set[sA]=R[sA]},set:function(uA){L.__set[sA]=uA},configurable:!0})};for(var iA in R)Z(iA);return L}function W(L,R){L.page=L.page||{},L.page.x=R.page.x,L.page.y=R.page.y,L.client=L.client||{},L.client.x=R.client.x,L.client.y=R.client.y,L.timeStamp=R.timeStamp}function tA(L){L.page.x=0,L.page.y=0,L.client.x=0,L.client.y=0}function nA(L){return L instanceof r.Event||L instanceof r.Touch}function pA(L,R,Z){return L=L||"page",(Z=Z||{}).x=R[L+"X"],Z.y=R[L+"Y"],Z}function kA(L,R){return R=R||{x:0,y:0},f.isOperaMobile&&nA(L)?(pA("screen",L,R),R.x+=window.scrollX,R.y+=window.scrollY):pA("page",L,R),R}function HA(L){return u.number(L.pointerId)?L.pointerId:L.identifier}function JA(L,R,Z){var iA=R.length>1?bA(R):R[0];kA(iA,L.page),function(sA,uA){uA=uA||{},f.isOperaMobile&&nA(sA)?pA("screen",sA,uA):pA("client",sA,uA)}(iA,L.client),L.timeStamp=Z}function WA(L){var R=[];return u.array(L)?(R[0]=L[0],R[1]=L[1]):L.type==="touchend"?L.touches.length===1?(R[0]=L.touches[0],R[1]=L.changedTouches[0]):L.touches.length===0&&(R[0]=L.changedTouches[0],R[1]=L.changedTouches[1]):(R[0]=L.touches[0],R[1]=L.touches[1]),R}function bA(L){for(var R={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},Z=0;Z<L.length;Z++){var iA=L[Z];for(var sA in R)R[sA]+=iA[sA]}for(var uA in R)R[uA]/=L.length;return R}function KA(L){if(!L.length)return null;var R=WA(L),Z=Math.min(R[0].pageX,R[1].pageX),iA=Math.min(R[0].pageY,R[1].pageY),sA=Math.max(R[0].pageX,R[1].pageX),uA=Math.max(R[0].pageY,R[1].pageY);return{x:Z,y:iA,left:Z,top:iA,right:sA,bottom:uA,width:sA-Z,height:uA-iA}}function qA(L,R){var Z=R+"X",iA=R+"Y",sA=WA(L),uA=sA[0][Z]-sA[1][Z],BA=sA[0][iA]-sA[1][iA];return cA(uA,BA)}function SA(L,R){var Z=R+"X",iA=R+"Y",sA=WA(L),uA=sA[1][Z]-sA[0][Z],BA=sA[1][iA]-sA[0][iA];return 180*Math.atan2(BA,uA)/Math.PI}function xA(L){return u.string(L.pointerType)?L.pointerType:u.number(L.pointerType)?[void 0,void 0,"touch","pen","mouse"][L.pointerType]:/touch/.test(L.type||"")||L instanceof r.Touch?"touch":"mouse"}function XA(L){var R=u.func(L.composedPath)?L.composedPath():L.path;return[$(R?R[0]:L.target),$(L.currentTarget)]}var he=function(){function L(R){m(this,L),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=R}return y(L,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),L}();Object.defineProperty(he.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Ie=function(L,R){for(var Z=0;Z<R.length;Z++){var iA=R[Z];L.push(iA)}return L},_e=function(L){return Ie([],L)},NA=function(L,R){for(var Z=0;Z<L.length;Z++)if(R(L[Z],Z,L))return Z;return-1},OA=function(L,R){return L[NA(L,R)]},ZA=function(L){I(Z,L);var R=O(Z);function Z(iA,sA,uA){var BA;m(this,Z),(BA=R.call(this,sA._interaction)).dropzone=void 0,BA.dragEvent=void 0,BA.relatedTarget=void 0,BA.draggable=void 0,BA.propagationStopped=!1,BA.immediatePropagationStopped=!1;var QA=uA==="dragleave"?iA.prev:iA.cur,DA=QA.element,RA=QA.dropzone;return BA.type=uA,BA.target=DA,BA.currentTarget=DA,BA.dropzone=RA,BA.dragEvent=sA,BA.relatedTarget=sA.target,BA.draggable=sA.interactable,BA.timeStamp=sA.timeStamp,BA}return y(Z,[{key:"reject",value:function(){var iA=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,BA=NA(uA,function(DA){var RA=DA.dropzone,vA=DA.element;return RA===iA.dropzone&&vA===iA.target});sA.activeDrops.splice(BA,1);var QA=new Z(sA,this.dragEvent,"dropdeactivate");QA.dropzone=this.dropzone,QA.target=this.target,this.dropzone.fire(QA)}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}(he);function de(L,R){for(var Z=0,iA=L.slice();Z<iA.length;Z++){var sA=iA[Z],uA=sA.dropzone,BA=sA.element;R.dropzone=uA,R.target=BA,uA.fire(R),R.propagationStopped=R.immediatePropagationStopped=!1}}function ae(L,R){for(var Z=function(uA,BA){for(var QA=[],DA=0,RA=uA.interactables.list;DA<RA.length;DA++){var vA=RA[DA];if(vA.options.drop.enabled){var TA=vA.options.drop.accept;if(!(u.element(TA)&&TA!==BA||u.string(TA)&&!z(BA,TA)||u.func(TA)&&!TA({dropzone:vA,draggableElement:BA})))for(var Ae=0,ge=vA.getAllElements();Ae<ge.length;Ae++){var le=ge[Ae];le!==BA&&QA.push({dropzone:vA,element:le,rect:vA.getRect(le)})}}}return QA}(L,R),iA=0;iA<Z.length;iA++){var sA=Z[iA];sA.rect=sA.dropzone.getRect(sA.element)}return Z}function Ee(L,R,Z){for(var iA=L.dropState,sA=L.interactable,uA=L.element,BA=[],QA=0,DA=iA.activeDrops;QA<DA.length;QA++){var RA=DA[QA],vA=RA.dropzone,TA=RA.element,Ae=RA.rect,ge=vA.dropCheck(R,Z,sA,uA,TA,Ae);BA.push(ge?TA:null)}var le=function(pe){for(var ve,Qe,_A,zA=[],UA=0;UA<pe.length;UA++){var ee=pe[UA],Be=pe[ve];if(ee&&UA!==ve)if(Be){var He=AA(ee),Ke=AA(Be);if(He!==ee.ownerDocument)if(Ke!==ee.ownerDocument)if(He!==Ke){zA=zA.length?zA:eA(Be);var Oe=void 0;if(Be instanceof r.HTMLElement&&ee instanceof r.SVGElement&&!(ee instanceof r.SVGSVGElement)){if(ee===Ke)continue;Oe=ee.ownerSVGElement}else Oe=ee;for(var rn=eA(Oe,Be.ownerDocument),Zn=0;rn[Zn]&&rn[Zn]===zA[Zn];)Zn++;var Ot=[rn[Zn-1],rn[Zn],zA[Zn]];if(Ot[0])for(var ci=Ot[0].lastChild;ci;){if(ci===Ot[1]){ve=UA,zA=rn;break}if(ci===Ot[2])break;ci=ci.previousSibling}}else _A=Be,(parseInt(_(Qe=ee).getComputedStyle(Qe).zIndex,10)||0)>=(parseInt(_(_A).getComputedStyle(_A).zIndex,10)||0)&&(ve=UA);else ve=UA}else ve=UA}return ve}(BA);return iA.activeDrops[le]||null}function ke(L,R,Z){var iA=L.dropState,sA={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return Z.type==="dragstart"&&(sA.activate=new ZA(iA,Z,"dropactivate"),sA.activate.target=null,sA.activate.dropzone=null),Z.type==="dragend"&&(sA.deactivate=new ZA(iA,Z,"dropdeactivate"),sA.deactivate.target=null,sA.deactivate.dropzone=null),iA.rejected||(iA.cur.element!==iA.prev.element&&(iA.prev.dropzone&&(sA.leave=new ZA(iA,Z,"dragleave"),Z.dragLeave=sA.leave.target=iA.prev.element,Z.prevDropzone=sA.leave.dropzone=iA.prev.dropzone),iA.cur.dropzone&&(sA.enter=new ZA(iA,Z,"dragenter"),Z.dragEnter=iA.cur.element,Z.dropzone=iA.cur.dropzone)),Z.type==="dragend"&&iA.cur.dropzone&&(sA.drop=new ZA(iA,Z,"drop"),Z.dropzone=iA.cur.dropzone,Z.relatedTarget=iA.cur.element),Z.type==="dragmove"&&iA.cur.dropzone&&(sA.move=new ZA(iA,Z,"dropmove"),Z.dropzone=iA.cur.dropzone)),sA}function IA(L,R){var Z=L.dropState,iA=Z.activeDrops,sA=Z.cur,uA=Z.prev;R.leave&&uA.dropzone.fire(R.leave),R.enter&&sA.dropzone.fire(R.enter),R.move&&sA.dropzone.fire(R.move),R.drop&&sA.dropzone.fire(R.drop),R.deactivate&&de(iA,R.deactivate),Z.prev.dropzone=sA.dropzone,Z.prev.element=sA.element}function LA(L,R){var Z=L.interaction,iA=L.iEvent,sA=L.event;if(iA.type==="dragmove"||iA.type==="dragend"){var uA=Z.dropState;R.dynamicDrop&&(uA.activeDrops=ae(R,Z.element));var BA=iA,QA=Ee(Z,BA,sA);uA.rejected=uA.rejected&&!!QA&&QA.dropzone===uA.cur.dropzone&&QA.element===uA.cur.element,uA.cur.dropzone=QA&&QA.dropzone,uA.cur.element=QA&&QA.element,uA.events=ke(Z,0,BA)}}var YA={id:"actions/drop",install:function(L){var R=L.actions,Z=L.interactStatic,iA=L.Interactable,sA=L.defaults;L.usePlugin(h),iA.prototype.dropzone=function(uA){return function(BA,QA){if(u.object(QA)){if(BA.options.drop.enabled=QA.enabled!==!1,QA.listeners){var DA=X(QA.listeners),RA=Object.keys(DA).reduce(function(TA,Ae){return TA[/^(enter|leave)/.test(Ae)?"drag".concat(Ae):/^(activate|deactivate|move)/.test(Ae)?"drop".concat(Ae):Ae]=DA[Ae],TA},{}),vA=BA.options.drop.listeners;vA&&BA.off(vA),BA.on(RA),BA.options.drop.listeners=RA}return u.func(QA.ondrop)&&BA.on("drop",QA.ondrop),u.func(QA.ondropactivate)&&BA.on("dropactivate",QA.ondropactivate),u.func(QA.ondropdeactivate)&&BA.on("dropdeactivate",QA.ondropdeactivate),u.func(QA.ondragenter)&&BA.on("dragenter",QA.ondragenter),u.func(QA.ondragleave)&&BA.on("dragleave",QA.ondragleave),u.func(QA.ondropmove)&&BA.on("dropmove",QA.ondropmove),/^(pointer|center)$/.test(QA.overlap)?BA.options.drop.overlap=QA.overlap:u.number(QA.overlap)&&(BA.options.drop.overlap=Math.max(Math.min(1,QA.overlap),0)),"accept"in QA&&(BA.options.drop.accept=QA.accept),"checker"in QA&&(BA.options.drop.checker=QA.checker),BA}return u.bool(QA)?(BA.options.drop.enabled=QA,BA):BA.options.drop}(this,uA)},iA.prototype.dropCheck=function(uA,BA,QA,DA,RA,vA){return function(TA,Ae,ge,le,pe,ve,Qe){var _A=!1;if(!(Qe=Qe||TA.getRect(ve)))return!!TA.options.drop.checker&&TA.options.drop.checker(Ae,ge,_A,TA,ve,le,pe);var zA=TA.options.drop.overlap;if(zA==="pointer"){var UA=wA(le,pe,"drag"),ee=kA(Ae);ee.x+=UA.x,ee.y+=UA.y;var Be=ee.x>Qe.left&&ee.x<Qe.right,He=ee.y>Qe.top&&ee.y<Qe.bottom;_A=Be&&He}var Ke=le.getRect(pe);if(Ke&&zA==="center"){var Oe=Ke.left+Ke.width/2,rn=Ke.top+Ke.height/2;_A=Oe>=Qe.left&&Oe<=Qe.right&&rn>=Qe.top&&rn<=Qe.bottom}return Ke&&u.number(zA)&&(_A=Math.max(0,Math.min(Qe.right,Ke.right)-Math.max(Qe.left,Ke.left))*Math.max(0,Math.min(Qe.bottom,Ke.bottom)-Math.max(Qe.top,Ke.top))/(Ke.width*Ke.height)>=zA),TA.options.drop.checker&&(_A=TA.options.drop.checker(Ae,ge,_A,TA,ve,le,pe)),_A}(this,uA,BA,QA,DA,RA,vA)},Z.dynamicDrop=function(uA){return u.bool(uA)?(L.dynamicDrop=uA,Z):L.dynamicDrop},q(R.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),R.methodDict.drop="dropzone",L.dynamicDrop=!1,sA.actions.drop=YA.defaults},listeners:{"interactions:before-action-start":function(L){var R=L.interaction;R.prepared.name==="drag"&&(R.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(L,R){var Z=L.interaction,iA=(L.event,L.iEvent);if(Z.prepared.name==="drag"){var sA=Z.dropState;sA.activeDrops=[],sA.events={},sA.activeDrops=ae(R,Z.element),sA.events=ke(Z,0,iA),sA.events.activate&&(de(sA.activeDrops,sA.events.activate),R.fire("actions/drop:start",{interaction:Z,dragEvent:iA}))}},"interactions:action-move":LA,"interactions:after-action-move":function(L,R){var Z=L.interaction,iA=L.iEvent;if(Z.prepared.name==="drag"){var sA=Z.dropState;IA(Z,sA.events),R.fire("actions/drop:move",{interaction:Z,dragEvent:iA}),sA.events={}}},"interactions:action-end":function(L,R){if(L.interaction.prepared.name==="drag"){var Z=L.interaction,iA=L.iEvent;LA(L,R),IA(Z,Z.dropState.events),R.fire("actions/drop:end",{interaction:Z,dragEvent:iA})}},"interactions:stop":function(L){var R=L.interaction;if(R.prepared.name==="drag"){var Z=R.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:ae,getDrop:Ee,getDropEvents:ke,fireDropEvents:IA,filterEventType:function(L){return L.search("drag")===0||L.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},re=YA;function ye(L){var R=L.interaction,Z=L.iEvent,iA=L.phase;if(R.prepared.name==="gesture"){var sA=R.pointers.map(function(RA){return RA.pointer}),uA=iA==="start",BA=iA==="end",QA=R.interactable.options.deltaSource;if(Z.touches=[sA[0],sA[1]],uA)Z.distance=qA(sA,QA),Z.box=KA(sA),Z.scale=1,Z.ds=0,Z.angle=SA(sA,QA),Z.da=0,R.gesture.startDistance=Z.distance,R.gesture.startAngle=Z.angle;else if(BA||R.pointers.length<2){var DA=R.prevEvent;Z.distance=DA.distance,Z.box=DA.box,Z.scale=DA.scale,Z.ds=0,Z.angle=DA.angle,Z.da=0}else Z.distance=qA(sA,QA),Z.box=KA(sA),Z.scale=Z.distance/R.gesture.startDistance,Z.angle=SA(sA,QA),Z.ds=Z.scale-R.gesture.scale,Z.da=Z.angle-R.gesture.angle;R.gesture.distance=Z.distance,R.gesture.angle=Z.angle,u.number(Z.scale)&&Z.scale!==1/0&&!isNaN(Z.scale)&&(R.gesture.scale=Z.scale)}}var se={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(L){var R=L.actions,Z=L.Interactable,iA=L.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},R.map.gesture=se,R.methodDict.gesture="gesturable",iA.actions.gesture=se.defaults},listeners:{"interactions:action-start":ye,"interactions:action-move":ye,"interactions:action-end":ye,"interactions:new":function(L){L.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(L){if(!(L.interaction.pointers.length<2)){var R=L.interactable.options.gesture;if(R&&R.enabled)return L.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(L){return L.search("gesture")===0}},ue=se;function Se(L,R,Z,iA,sA,uA,BA){if(!R)return!1;if(R===!0){var QA=u.number(uA.width)?uA.width:uA.right-uA.left,DA=u.number(uA.height)?uA.height:uA.bottom-uA.top;if(BA=Math.min(BA,Math.abs((L==="left"||L==="right"?QA:DA)/2)),QA<0&&(L==="left"?L="right":L==="right"&&(L="left")),DA<0&&(L==="top"?L="bottom":L==="bottom"&&(L="top")),L==="left"){var RA=QA>=0?uA.left:uA.right;return Z.x<RA+BA}if(L==="top"){var vA=DA>=0?uA.top:uA.bottom;return Z.y<vA+BA}if(L==="right")return Z.x>(QA>=0?uA.right:uA.left)-BA;if(L==="bottom")return Z.y>(DA>=0?uA.bottom:uA.top)-BA}return!!u.element(iA)&&(u.element(R)?R===iA:V(iA,R,sA))}function tt(L){var R=L.iEvent,Z=L.interaction;if(Z.prepared.name==="resize"&&Z.resizeAxes){var iA=R;Z.interactable.options.resize.square?(Z.resizeAxes==="y"?iA.delta.x=iA.delta.y:iA.delta.y=iA.delta.x,iA.axes="xy"):(iA.axes=Z.resizeAxes,Z.resizeAxes==="x"?iA.delta.y=0:Z.resizeAxes==="y"&&(iA.delta.x=0))}}var gt,FA,yA={id:"actions/resize",before:["actions/drag"],install:function(L){var R=L.actions,Z=L.browser,iA=L.Interactable,sA=L.defaults;yA.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),yA.defaultMargin=Z.supportsTouch||Z.supportsPointerEvent?20:10,iA.prototype.resizable=function(uA){return function(BA,QA,DA){return u.object(QA)?(BA.options.resize.enabled=QA.enabled!==!1,BA.setPerAction("resize",QA),BA.setOnEvents("resize",QA),u.string(QA.axis)&&/^x$|^y$|^xy$/.test(QA.axis)?BA.options.resize.axis=QA.axis:QA.axis===null&&(BA.options.resize.axis=DA.defaults.actions.resize.axis),u.bool(QA.preserveAspectRatio)?BA.options.resize.preserveAspectRatio=QA.preserveAspectRatio:u.bool(QA.square)&&(BA.options.resize.square=QA.square),BA):u.bool(QA)?(BA.options.resize.enabled=QA,BA):BA.options.resize}(this,uA,L)},R.map.resize=yA,R.methodDict.resize="resizable",sA.actions.resize=yA.defaults},listeners:{"interactions:new":function(L){L.interaction.resizeAxes="xy"},"interactions:action-start":function(L){(function(R){var Z=R.iEvent,iA=R.interaction;if(iA.prepared.name==="resize"&&iA.prepared.edges){var sA=Z,uA=iA.rect;iA._rects={start:q({},uA),corrected:q({},uA),previous:q({},uA),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},sA.edges=iA.prepared.edges,sA.rect=iA._rects.corrected,sA.deltaRect=iA._rects.delta}})(L),tt(L)},"interactions:action-move":function(L){(function(R){var Z=R.iEvent,iA=R.interaction;if(iA.prepared.name==="resize"&&iA.prepared.edges){var sA=Z,uA=iA.interactable.options.resize.invert,BA=uA==="reposition"||uA==="negate",QA=iA.rect,DA=iA._rects,RA=DA.start,vA=DA.corrected,TA=DA.delta,Ae=DA.previous;if(q(Ae,vA),BA){if(q(vA,QA),uA==="reposition"){if(vA.top>vA.bottom){var ge=vA.top;vA.top=vA.bottom,vA.bottom=ge}if(vA.left>vA.right){var le=vA.left;vA.left=vA.right,vA.right=le}}}else vA.top=Math.min(QA.top,RA.bottom),vA.bottom=Math.max(QA.bottom,RA.top),vA.left=Math.min(QA.left,RA.right),vA.right=Math.max(QA.right,RA.left);for(var pe in vA.width=vA.right-vA.left,vA.height=vA.bottom-vA.top,vA)TA[pe]=vA[pe]-Ae[pe];sA.edges=iA.prepared.edges,sA.rect=vA,sA.deltaRect=TA}})(L),tt(L)},"interactions:action-end":function(L){var R=L.iEvent,Z=L.interaction;if(Z.prepared.name==="resize"&&Z.prepared.edges){var iA=R;iA.edges=Z.prepared.edges,iA.rect=Z._rects.corrected,iA.deltaRect=Z._rects.delta}},"auto-start:check":function(L){var R=L.interaction,Z=L.interactable,iA=L.element,sA=L.rect,uA=L.buttons;if(sA){var BA=q({},R.coords.cur.page),QA=Z.options.resize;if(QA&&QA.enabled&&(!R.pointerIsDown||!/mouse|pointer/.test(R.pointerType)||uA&QA.mouseButtons)){if(u.object(QA.edges)){var DA={left:!1,right:!1,top:!1,bottom:!1};for(var RA in DA)DA[RA]=Se(RA,QA.edges[RA],BA,R._latestPointer.eventTarget,iA,sA,QA.margin||yA.defaultMargin);DA.left=DA.left&&!DA.right,DA.top=DA.top&&!DA.bottom,(DA.left||DA.right||DA.top||DA.bottom)&&(L.action={name:"resize",edges:DA})}else{var vA=QA.axis!=="y"&&BA.x>sA.right-yA.defaultMargin,TA=QA.axis!=="x"&&BA.y>sA.bottom-yA.defaultMargin;(vA||TA)&&(L.action={name:"resize",axes:(vA?"x":"")+(TA?"y":"")})}return!L.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(L){var R=L.edges,Z=L.axis,iA=L.name,sA=yA.cursors,uA=null;if(Z)uA=sA[iA+Z];else if(R){for(var BA="",QA=0,DA=["top","bottom","left","right"];QA<DA.length;QA++){var RA=DA[QA];R[RA]&&(BA+=RA)}uA=sA[BA]}return uA},filterEventType:function(L){return L.search("resize")===0},defaultMargin:null},PA=yA,VA={id:"actions",install:function(L){L.usePlugin(ue),L.usePlugin(PA),L.usePlugin(h),L.usePlugin(re)}},jA=0,we={request:function(L){return gt(L)},cancel:function(L){return FA(L)},init:function(L){if(gt=L.requestAnimationFrame,FA=L.cancelAnimationFrame,!gt)for(var R=["ms","moz","webkit","o"],Z=0;Z<R.length;Z++){var iA=R[Z];gt=L["".concat(iA,"RequestAnimationFrame")],FA=L["".concat(iA,"CancelAnimationFrame")]||L["".concat(iA,"CancelRequestAnimationFrame")]}gt=gt&&gt.bind(L),FA=FA&&FA.bind(L),gt||(gt=function(sA){var uA=Date.now(),BA=Math.max(0,16-(uA-jA)),QA=L.setTimeout(function(){sA(uA+BA)},BA);return jA=uA+BA,QA},FA=function(sA){return clearTimeout(sA)})}},ie={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(L){ie.isScrolling=!0,we.cancel(ie.i),L.autoScroll=ie,ie.interaction=L,ie.prevTime=ie.now(),ie.i=we.request(ie.scroll)},stop:function(){ie.isScrolling=!1,ie.interaction&&(ie.interaction.autoScroll=null),we.cancel(ie.i)},scroll:function(){var L=ie.interaction,R=L.interactable,Z=L.element,iA=L.prepared.name,sA=R.options[iA].autoScroll,uA=xe(sA.container,R,Z),BA=ie.now(),QA=(BA-ie.prevTime)/1e3,DA=sA.speed*QA;if(DA>=1){var RA={x:ie.x*DA,y:ie.y*DA};if(RA.x||RA.y){var vA=qe(uA);u.window(uA)?uA.scrollBy(RA.x,RA.y):uA&&(uA.scrollLeft+=RA.x,uA.scrollTop+=RA.y);var TA=qe(uA),Ae={x:TA.x-vA.x,y:TA.y-vA.y};(Ae.x||Ae.y)&&R.fire({type:"autoscroll",target:Z,interactable:R,delta:Ae,interaction:L,container:uA})}ie.prevTime=BA}ie.isScrolling&&(we.cancel(ie.i),ie.i=we.request(ie.scroll))},check:function(L,R){var Z;return(Z=L.options[R].autoScroll)==null?void 0:Z.enabled},onInteractionMove:function(L){var R=L.interaction,Z=L.pointer;if(R.interacting()&&ie.check(R.interactable,R.prepared.name))if(R.simulation)ie.x=ie.y=0;else{var iA,sA,uA,BA,QA=R.interactable,DA=R.element,RA=R.prepared.name,vA=QA.options[RA].autoScroll,TA=xe(vA.container,QA,DA);if(u.window(TA))BA=Z.clientX<ie.margin,iA=Z.clientY<ie.margin,sA=Z.clientX>TA.innerWidth-ie.margin,uA=Z.clientY>TA.innerHeight-ie.margin;else{var Ae=J(TA);BA=Z.clientX<Ae.left+ie.margin,iA=Z.clientY<Ae.top+ie.margin,sA=Z.clientX>Ae.right-ie.margin,uA=Z.clientY>Ae.bottom-ie.margin}ie.x=sA?1:BA?-1:0,ie.y=uA?1:iA?-1:0,ie.isScrolling||(ie.margin=vA.margin,ie.speed=vA.speed,ie.start(R))}}};function xe(L,R,Z){return(u.string(L)?aA(L,R,Z):L)||_(Z)}function qe(L){return u.window(L)&&(L=window.document.body),{x:L.scrollLeft,y:L.scrollTop}}var Bt={id:"auto-scroll",install:function(L){var R=L.defaults,Z=L.actions;L.autoScroll=ie,ie.now=function(){return L.now()},Z.phaselessTypes.autoscroll=!0,R.perAction.autoScroll=ie.defaults},listeners:{"interactions:new":function(L){L.interaction.autoScroll=null},"interactions:destroy":function(L){L.interaction.autoScroll=null,ie.stop(),ie.interaction&&(ie.interaction=null)},"interactions:stop":ie.stop,"interactions:action-move":function(L){return ie.onInteractionMove(L)}}},ze=Bt;function At(L,R){var Z=!1;return function(){return Z||(F.console.warn(R),Z=!0),L.apply(this,arguments)}}function ut(L,R){return L.name=R.name,L.axis=R.axis,L.edges=R.edges,L}function Pe(L){return u.bool(L)?(this.options.styleCursor=L,this):L===null?(delete this.options.styleCursor,this):this.options.styleCursor}function ot(L){return u.func(L)?(this.options.actionChecker=L,this):L===null?(delete this.options.actionChecker,this):this.options.actionChecker}var It={id:"auto-start/interactableMethods",install:function(L){var R=L.Interactable;R.prototype.getAction=function(Z,iA,sA,uA){var BA=function(QA,DA,RA,vA,TA){var Ae=QA.getRect(vA),ge=DA.buttons||{0:1,1:4,3:8,4:16}[DA.button],le={action:null,interactable:QA,interaction:RA,element:vA,rect:Ae,buttons:ge};return TA.fire("auto-start:check",le),le.action}(this,iA,sA,uA,L);return this.options.actionChecker?this.options.actionChecker(Z,iA,BA,this,uA,sA):BA},R.prototype.ignoreFrom=At(function(Z){return this._backCompatOption("ignoreFrom",Z)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),R.prototype.allowFrom=At(function(Z){return this._backCompatOption("allowFrom",Z)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),R.prototype.actionChecker=ot,R.prototype.styleCursor=Pe}};function nt(L,R,Z,iA,sA){return R.testIgnoreAllow(R.options[L.name],Z,iA)&&R.options[L.name].enabled&&un(R,Z,L,sA)?L:null}function Rn(L,R,Z,iA,sA,uA,BA){for(var QA=0,DA=iA.length;QA<DA;QA++){var RA=iA[QA],vA=sA[QA],TA=RA.getAction(R,Z,L,vA);if(TA){var Ae=nt(TA,RA,vA,uA,BA);if(Ae)return{action:Ae,interactable:RA,element:vA}}}return{action:null,interactable:null,element:null}}function Vt(L,R,Z,iA,sA){var uA=[],BA=[],QA=iA;function DA(vA){uA.push(vA),BA.push(QA)}for(;u.element(QA);){uA=[],BA=[],sA.interactables.forEachMatch(QA,DA);var RA=Rn(L,R,Z,uA,BA,iA,sA);if(RA.action&&!RA.interactable.options[RA.action.name].manualStart)return RA;QA=K(QA)}return{action:null,interactable:null,element:null}}function An(L,R,Z){var iA=R.action,sA=R.interactable,uA=R.element;iA=iA||{name:null},L.interactable=sA,L.element=uA,ut(L.prepared,iA),L.rect=sA&&iA.name?sA.getRect(uA):null,en(L,Z),Z.fire("autoStart:prepared",{interaction:L})}function un(L,R,Z,iA){var sA=L.options,uA=sA[Z.name].max,BA=sA[Z.name].maxPerElement,QA=iA.autoStart.maxInteractions,DA=0,RA=0,vA=0;if(!(uA&&BA&&QA))return!1;for(var TA=0,Ae=iA.interactions.list;TA<Ae.length;TA++){var ge=Ae[TA],le=ge.prepared.name;if(ge.interacting()&&(++DA>=QA||ge.interactable===L&&((RA+=le===Z.name?1:0)>=uA||ge.element===R&&(vA++,le===Z.name&&vA>=BA))))return!1}return QA>0}function bn(L,R){return u.number(L)?(R.autoStart.maxInteractions=L,this):R.autoStart.maxInteractions}function Lt(L,R,Z){var iA=Z.autoStart.cursorElement;iA&&iA!==L&&(iA.style.cursor=""),L.ownerDocument.documentElement.style.cursor=R,L.style.cursor=R,Z.autoStart.cursorElement=R?L:null}function en(L,R){var Z=L.interactable,iA=L.element,sA=L.prepared;if(L.pointerType==="mouse"&&Z&&Z.options.styleCursor){var uA="";if(sA.name){var BA=Z.options[sA.name].cursorChecker;uA=u.func(BA)?BA(sA,Z,iA,L._interacting):R.actions.map[sA.name].getCursor(sA)}Lt(L.element,uA||"",R)}else R.autoStart.cursorElement&&Lt(R.autoStart.cursorElement,"",R)}var zn={id:"auto-start/base",before:["actions"],install:function(L){var R=L.interactStatic,Z=L.defaults;L.usePlugin(It),Z.base.actionChecker=null,Z.base.styleCursor=!0,q(Z.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),R.maxInteractions=function(iA){return bn(iA,L)},L.autoStart={maxInteractions:1/0,withinInteractionLimit:un,cursorElement:null}},listeners:{"interactions:down":function(L,R){var Z=L.interaction,iA=L.pointer,sA=L.event,uA=L.eventTarget;Z.interacting()||An(Z,Vt(Z,iA,sA,uA,R),R)},"interactions:move":function(L,R){(function(Z,iA){var sA=Z.interaction,uA=Z.pointer,BA=Z.event,QA=Z.eventTarget;sA.pointerType!=="mouse"||sA.pointerIsDown||sA.interacting()||An(sA,Vt(sA,uA,BA,QA,iA),iA)})(L,R),function(Z,iA){var sA=Z.interaction;if(sA.pointerIsDown&&!sA.interacting()&&sA.pointerWasMoved&&sA.prepared.name){iA.fire("autoStart:before-start",Z);var uA=sA.interactable,BA=sA.prepared.name;BA&&uA&&(uA.options[BA].manualStart||!un(uA,sA.element,sA.prepared,iA)?sA.stop():(sA.start(sA.prepared,uA,sA.element),en(sA,iA)))}}(L,R)},"interactions:stop":function(L,R){var Z=L.interaction,iA=Z.interactable;iA&&iA.options.styleCursor&&Lt(Z.element,"",R)}},maxInteractions:bn,withinInteractionLimit:un,validateAction:nt},tn=zn,Ei={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(L,R){var Z=L.interaction,iA=L.eventTarget,sA=L.dx,uA=L.dy;if(Z.prepared.name==="drag"){var BA=Math.abs(sA),QA=Math.abs(uA),DA=Z.interactable.options.drag,RA=DA.startAxis,vA=BA>QA?"x":BA<QA?"y":"xy";if(Z.prepared.axis=DA.lockAxis==="start"?vA[0]:DA.lockAxis,vA!=="xy"&&RA!=="xy"&&RA!==vA){Z.prepared.name=null;for(var TA=iA,Ae=function(le){if(le!==Z.interactable){var pe=Z.interactable.options.drag;if(!pe.manualStart&&le.testIgnoreAllow(pe,TA,iA)){var ve=le.getAction(Z.downPointer,Z.downEvent,Z,TA);if(ve&&ve.name==="drag"&&function(Qe,_A){if(!_A)return!1;var zA=_A.options.drag.startAxis;return Qe==="xy"||zA==="xy"||zA===Qe}(vA,le)&&tn.validateAction(ve,le,TA,iA,R))return le}}};u.element(TA);){var ge=R.interactables.forEachMatch(TA,Ae);if(ge){Z.prepared.name="drag",Z.interactable=ge,Z.element=TA;break}TA=K(TA)}}}}}};function Qi(L){var R=L.prepared&&L.prepared.name;if(!R)return null;var Z=L.interactable.options;return Z[R].hold||Z[R].delay}var po={id:"auto-start/hold",install:function(L){var R=L.defaults;L.usePlugin(tn),R.perAction.hold=0,R.perAction.delay=0},listeners:{"interactions:new":function(L){L.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(L){var R=L.interaction,Z=Qi(R);Z>0&&(R.autoStartHoldTimer=setTimeout(function(){R.start(R.prepared,R.interactable,R.element)},Z))},"interactions:move":function(L){var R=L.interaction,Z=L.duplicate;R.autoStartHoldTimer&&R.pointerWasMoved&&!Z&&(clearTimeout(R.autoStartHoldTimer),R.autoStartHoldTimer=null)},"autoStart:before-start":function(L){var R=L.interaction;Qi(R)>0&&(R.prepared.name=null)}},getHoldDuration:Qi},fi=po,ri={id:"auto-start",install:function(L){L.usePlugin(tn),L.usePlugin(fi),L.usePlugin(Ei)}},Ki=function(L){return/^(always|never|auto)$/.test(L)?(this.options.preventDefault=L,this):u.bool(L)?(this.options.preventDefault=L?"always":"never",this):this.options.preventDefault};function Co(L){var R=L.interaction,Z=L.event;R.interactable&&R.interactable.checkAndPreventDefault(Z)}var ai={id:"core/interactablePreventDefault",install:function(L){var R=L.Interactable;R.prototype.preventDefault=Ki,R.prototype.checkAndPreventDefault=function(Z){return function(iA,sA,uA){var BA=iA.options.preventDefault;if(BA!=="never")if(BA!=="always"){if(sA.events.supportsPassive&&/^touch(start|move)$/.test(uA.type)){var QA=_(uA.target).document,DA=sA.getDocOptions(QA);if(!DA||!DA.events||DA.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(uA.type)||u.element(uA.target)&&z(uA.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||uA.preventDefault()}else uA.preventDefault()}(this,L,Z)},L.interactions.docEvents.push({type:"dragstart",listener:function(Z){for(var iA=0,sA=L.interactions.list;iA<sA.length;iA++){var uA=sA[iA];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(L,R){return L["interactions:".concat(R)]=Co,L},{})};function yn(L,R){if(R.phaselessTypes[L])return!0;for(var Z in R.map)if(L.indexOf(Z)===0&&L.substr(Z.length)in R.phases)return!0;return!1}function Ti(L){var R={};for(var Z in L){var iA=L[Z];u.plainObject(iA)?R[Z]=Ti(iA):u.array(iA)?R[Z]=_e(iA):R[Z]=iA}return R}var Vo=function(){function L(R){m(this,L),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=R,this.result=Bo(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return y(L,[{key:"start",value:function(R,Z){var iA,sA,uA=R.phase,BA=this.interaction,QA=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(Ae){var ge=vA[Ae];return ge&&ge.enabled&&{options:ge,methods:ge._methods}}).filter(function(Ae){return!!Ae})}(BA);this.prepareStates(QA),this.startEdges=q({},BA.edges),this.edges=q({},this.startEdges),this.startOffset=(iA=BA.rect,sA=Z,iA?{left:sA.x-iA.left,top:sA.y-iA.top,right:iA.right-sA.x,bottom:iA.bottom-sA.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var DA=this.fillArg({phase:uA,pageCoords:Z,preEnd:!1});return this.result=Bo(),this.startAll(DA),this.result=this.setAll(DA)}},{key:"fillArg",value:function(R){var Z=this.interaction;return R.interaction=Z,R.interactable=Z.interactable,R.element=Z.element,R.rect||(R.rect=Z.rect),R.edges||(R.edges=this.startEdges),R.startOffset=this.startOffset,R}},{key:"startAll",value:function(R){for(var Z=0,iA=this.states;Z<iA.length;Z++){var sA=iA[Z];sA.methods.start&&(R.state=sA,sA.methods.start(R))}}},{key:"setAll",value:function(R){var Z=R.phase,iA=R.preEnd,sA=R.skipModifiers,uA=R.rect,BA=R.edges;R.coords=q({},R.pageCoords),R.rect=q({},uA),R.edges=q({},BA);for(var QA=sA?this.states.slice(sA):this.states,DA=Bo(R.coords,R.rect),RA=0;RA<QA.length;RA++){var vA,TA=QA[RA],Ae=TA.options,ge=q({},R.coords),le=null;(vA=TA.methods)!=null&&vA.set&&this.shouldDo(Ae,iA,Z)&&(R.state=TA,le=TA.methods.set(R),gA(R.edges,R.rect,{x:R.coords.x-ge.x,y:R.coords.y-ge.y})),DA.eventProps.push(le)}q(this.edges,R.edges),DA.delta.x=R.coords.x-R.pageCoords.x,DA.delta.y=R.coords.y-R.pageCoords.y,DA.rectDelta.left=R.rect.left-uA.left,DA.rectDelta.right=R.rect.right-uA.right,DA.rectDelta.top=R.rect.top-uA.top,DA.rectDelta.bottom=R.rect.bottom-uA.bottom;var pe=this.result.coords,ve=this.result.rect;if(pe&&ve){var Qe=DA.rect.left!==ve.left||DA.rect.right!==ve.right||DA.rect.top!==ve.top||DA.rect.bottom!==ve.bottom;DA.changed=Qe||pe.x!==DA.coords.x||pe.y!==DA.coords.y}return DA}},{key:"applyToInteraction",value:function(R){var Z=this.interaction,iA=R.phase,sA=Z.coords.cur,uA=Z.coords.start,BA=this.result,QA=this.startDelta,DA=BA.delta;iA==="start"&&q(this.startDelta,BA.delta);for(var RA=0,vA=[[uA,QA],[sA,DA]];RA<vA.length;RA++){var TA=vA[RA],Ae=TA[0],ge=TA[1];Ae.page.x+=ge.x,Ae.page.y+=ge.y,Ae.client.x+=ge.x,Ae.client.y+=ge.y}var le=this.result.rectDelta,pe=R.rect||Z.rect;pe.left+=le.left,pe.right+=le.right,pe.top+=le.top,pe.bottom+=le.bottom,pe.width=pe.right-pe.left,pe.height=pe.bottom-pe.top}},{key:"setAndApply",value:function(R){var Z=this.interaction,iA=R.phase,sA=R.preEnd,uA=R.skipModifiers,BA=this.setAll(this.fillArg({preEnd:sA,phase:iA,pageCoords:R.modifiedCoords||Z.coords.cur.page}));if(this.result=BA,!BA.changed&&(!uA||uA<this.states.length)&&Z.interacting())return!1;if(R.modifiedCoords){var QA=Z.coords.cur.page,DA={x:R.modifiedCoords.x-QA.x,y:R.modifiedCoords.y-QA.y};BA.coords.x+=DA.x,BA.coords.y+=DA.y,BA.delta.x+=DA.x,BA.delta.y+=DA.y}this.applyToInteraction(R)}},{key:"beforeEnd",value:function(R){var Z=R.interaction,iA=R.event,sA=this.states;if(sA&&sA.length){for(var uA=!1,BA=0;BA<sA.length;BA++){var QA=sA[BA];R.state=QA;var DA=QA.options,RA=QA.methods,vA=RA.beforeEnd&&RA.beforeEnd(R);if(vA)return this.endResult=vA,!1;uA=uA||!uA&&this.shouldDo(DA,!0,R.phase,!0)}uA&&Z.move({event:iA,preEnd:!0})}}},{key:"stop",value:function(R){var Z=R.interaction;if(this.states&&this.states.length){var iA=q({states:this.states,interactable:Z.interactable,element:Z.element,rect:null},R);this.fillArg(iA);for(var sA=0,uA=this.states;sA<uA.length;sA++){var BA=uA[sA];iA.state=BA,BA.methods.stop&&BA.methods.stop(iA)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(R){this.states=[];for(var Z=0;Z<R.length;Z++){var iA=R[Z],sA=iA.options,uA=iA.methods,BA=iA.name;this.states.push({options:sA,methods:uA,index:Z,name:BA})}return this.states}},{key:"restoreInteractionCoords",value:function(R){var Z=R.interaction,iA=Z.coords,sA=Z.rect,uA=Z.modification;if(uA.result){for(var BA=uA.startDelta,QA=uA.result,DA=QA.delta,RA=QA.rectDelta,vA=0,TA=[[iA.start,BA],[iA.cur,DA]];vA<TA.length;vA++){var Ae=TA[vA],ge=Ae[0],le=Ae[1];ge.page.x-=le.x,ge.page.y-=le.y,ge.client.x-=le.x,ge.client.y-=le.y}sA.left-=RA.left,sA.right-=RA.right,sA.top-=RA.top,sA.bottom-=RA.bottom}}},{key:"shouldDo",value:function(R,Z,iA,sA){return!(!R||R.enabled===!1||sA&&!R.endOnly||R.endOnly&&!Z||iA==="start"&&!R.setStart)}},{key:"copyFrom",value:function(R){this.startOffset=R.startOffset,this.startDelta=R.startDelta,this.startEdges=R.startEdges,this.edges=R.edges,this.states=R.states.map(function(Z){return Ti(Z)}),this.result=Bo(q({},R.result.coords),q({},R.result.rect))}},{key:"destroy",value:function(){for(var R in this)this[R]=null}}]),L}();function Bo(L,R){return{rect:R,coords:L,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Ln(L,R){var Z=L.defaults,iA={start:L.start,set:L.set,beforeEnd:L.beforeEnd,stop:L.stop},sA=function(uA){var BA=uA||{};for(var QA in BA.enabled=BA.enabled!==!1,Z)QA in BA||(BA[QA]=Z[QA]);var DA={options:BA,methods:iA,name:R,enable:function(){return BA.enabled=!0,DA},disable:function(){return BA.enabled=!1,DA}};return DA};return R&&typeof R=="string"&&(sA._defaults=Z,sA._methods=iA),sA}function mo(L){var R=L.iEvent,Z=L.interaction.modification.result;Z&&(R.modifiers=Z.eventProps)}var Ps={id:"modifiers/base",before:["actions"],install:function(L){L.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(L){var R=L.interaction;R.modification=new Vo(R)},"interactions:before-action-start":function(L){var R=L.interaction,Z=L.interaction.modification;Z.start(L,R.coords.start.page),R.edges=Z.edges,Z.applyToInteraction(L)},"interactions:before-action-move":function(L){var R=L.interaction,Z=R.modification,iA=Z.setAndApply(L);return R.edges=Z.edges,iA},"interactions:before-action-end":function(L){var R=L.interaction,Z=R.modification,iA=Z.beforeEnd(L);return R.edges=Z.startEdges,iA},"interactions:action-start":mo,"interactions:action-move":mo,"interactions:action-end":mo,"interactions:after-action-start":function(L){return L.interaction.modification.restoreInteractionCoords(L)},"interactions:after-action-move":function(L){return L.interaction.modification.restoreInteractionCoords(L)},"interactions:stop":function(L){return L.interaction.modification.stop(L)}}},Ar=Ps,er={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},si=function(L){I(Z,L);var R=O(Z);function Z(iA,sA,uA,BA,QA,DA,RA){var vA;m(this,Z),(vA=R.call(this,iA)).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,QA=QA||iA.element;var TA=iA.interactable,Ae=(TA&&TA.options||er).deltaSource,ge=wA(TA,QA,uA),le=BA==="start",pe=BA==="end",ve=le?T(vA):iA.prevEvent,Qe=le?iA.coords.start:pe?{page:ve.page,client:ve.client,timeStamp:iA.coords.cur.timeStamp}:iA.coords.cur;return vA.page=q({},Qe.page),vA.client=q({},Qe.client),vA.rect=q({},iA.rect),vA.timeStamp=Qe.timeStamp,pe||(vA.page.x-=ge.x,vA.page.y-=ge.y,vA.client.x-=ge.x,vA.client.y-=ge.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=QA,vA.currentTarget=QA,vA.preEnd=DA,vA.type=RA||uA+(BA||""),vA.interactable=TA,vA.t0=le?iA.pointers[iA.pointers.length-1].downTime:ve.t0,vA.x0=iA.coords.start.page.x-ge.x,vA.y0=iA.coords.start.page.y-ge.y,vA.clientX0=iA.coords.start.client.x-ge.x,vA.clientY0=iA.coords.start.client.y-ge.y,vA.delta=le||pe?{x:0,y:0}:{x:vA[Ae].x-ve[Ae].x,y:vA[Ae].y-ve[Ae].y},vA.dt=iA.coords.delta.timeStamp,vA.duration=vA.timeStamp-vA.t0,vA.velocity=q({},iA.coords.velocity[Ae]),vA.speed=cA(vA.velocity.x,vA.velocity.y),vA.swipe=pe||BA==="inertiastart"?vA.getSwipe():null,vA}return y(Z,[{key:"getSwipe",value:function(){var iA=this._interaction;if(iA.prevEvent.speed<600||this.timeStamp-iA.prevEvent.timeStamp>150)return null;var sA=180*Math.atan2(iA.prevEvent.velocityY,iA.prevEvent.velocityX)/Math.PI;sA<0&&(sA+=360);var uA=112.5<=sA&&sA<247.5,BA=202.5<=sA&&sA<337.5;return{up:BA,down:!BA&&22.5<=sA&&sA<157.5,left:uA,right:!uA&&(292.5<=sA||sA<67.5),angle:sA,speed:iA.prevEvent.speed,velocity:{x:iA.prevEvent.velocityX,y:iA.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),Z}(he);Object.defineProperties(si.prototype,{pageX:{get:function(){return this.page.x},set:function(L){this.page.x=L}},pageY:{get:function(){return this.page.y},set:function(L){this.page.y=L}},clientX:{get:function(){return this.client.x},set:function(L){this.client.x=L}},clientY:{get:function(){return this.client.y},set:function(L){this.client.y=L}},dx:{get:function(){return this.delta.x},set:function(L){this.delta.x=L}},dy:{get:function(){return this.delta.y},set:function(L){this.delta.y=L}},velocityX:{get:function(){return this.velocity.x},set:function(L){this.velocity.x=L}},velocityY:{get:function(){return this.velocity.y},set:function(L){this.velocity.y=L}}});var Hs=y(function L(R,Z,iA,sA,uA){m(this,L),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=R,this.pointer=Z,this.event=iA,this.downTime=sA,this.downTarget=uA}),Ks=function(L){return L.interactable="",L.element="",L.prepared="",L.pointerIsDown="",L.pointerWasMoved="",L._proxy="",L}({}),Ts=function(L){return L.start="",L.move="",L.end="",L.stop="",L.interacting="",L}({}),Us=0,Ys=function(){function L(R){var Z=this,iA=R.pointerType,sA=R.scopeFire;m(this,L),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=At(function(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=Us++,this._scopeFire=sA,this.pointerType=iA;var uA=this;this._proxy={};var BA=function(vA){Object.defineProperty(Z._proxy,vA,{get:function(){return uA[vA]}})};for(var QA in Ks)BA(QA);var DA=function(vA){Object.defineProperty(Z._proxy,vA,{value:function(){return uA[vA].apply(uA,arguments)}})};for(var RA in Ts)DA(RA);this._scopeFire("interactions:new",{interaction:this})}return y(L,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(R,Z,iA){var sA=this.updatePointer(R,Z,iA,!0),uA=this.pointers[sA];this._scopeFire("interactions:down",{pointer:R,event:Z,eventTarget:iA,pointerIndex:sA,pointerInfo:uA,type:"down",interaction:this})}},{key:"start",value:function(R,Z,iA){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(R.name==="gesture"?2:1)||!Z.options[R.name].enabled)&&(ut(this.prepared,R),this.interactable=Z,this.element=iA,this.rect=Z.getRect(iA),this.edges=this.prepared.edges?q({},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(R,Z,iA){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(R,Z,iA,!1);var sA,uA,BA=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 QA,DA,RA,vA=this.getPointerIndex(R),TA={pointer:R,pointerIndex:vA,pointerInfo:this.pointers[vA],event:Z,type:"move",eventTarget:iA,dx:sA,dy:uA,duplicate:BA,interaction:this};BA||(QA=this.coords.velocity,DA=this.coords.delta,RA=Math.max(DA.timeStamp/1e3,.001),QA.page.x=DA.page.x/RA,QA.page.y=DA.page.y/RA,QA.client.x=DA.client.x/RA,QA.client.y=DA.client.y/RA,QA.timeStamp=RA),this._scopeFire("interactions:move",TA),BA||this.simulation||(this.interacting()&&(TA.type=null,this.move(TA)),this.pointerWasMoved&&W(this.coords.prev,this.coords.cur))}},{key:"move",value:function(R){R&&R.event||tA(this.coords.delta),(R=q({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},R||{})).phase="move",this._doPhase(R)}},{key:"pointerUp",value:function(R,Z,iA,sA){var uA=this.getPointerIndex(R);uA===-1&&(uA=this.updatePointer(R,Z,iA,!1));var BA=/cancel$/i.test(Z.type)?"cancel":"up";this._scopeFire("interactions:".concat(BA),{pointer:R,pointerIndex:uA,pointerInfo:this.pointers[uA],event:Z,eventTarget:iA,type:BA,curEventTarget:sA,interaction:this}),this.simulation||this.end(Z),this.removePointer(R,Z)}},{key:"documentBlur",value:function(R){this.end(R),this._scopeFire("interactions:blur",{event:R,type:"blur",interaction:this})}},{key:"end",value:function(R){var Z;this._ending=!0,R=R||this._latestPointer.event,this.interacting()&&(Z=this._doPhase({event:R,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(R){var Z=HA(R);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:NA(this.pointers,function(iA){return iA.id===Z})}},{key:"getPointerInfo",value:function(R){return this.pointers[this.getPointerIndex(R)]}},{key:"updatePointer",value:function(R,Z,iA,sA){var uA,BA,QA,DA=HA(R),RA=this.getPointerIndex(R),vA=this.pointers[RA];return sA=sA!==!1&&(sA||/(down|start)$/i.test(Z.type)),vA?vA.pointer=R:(vA=new Hs(DA,R,Z,null,null),RA=this.pointers.length,this.pointers.push(vA)),JA(this.coords.cur,this.pointers.map(function(TA){return TA.pointer}),this._now()),uA=this.coords.delta,BA=this.coords.prev,QA=this.coords.cur,uA.page.x=QA.page.x-BA.page.x,uA.page.y=QA.page.y-BA.page.y,uA.client.x=QA.client.x-BA.client.x,uA.client.y=QA.client.y-BA.client.y,uA.timeStamp=QA.timeStamp-BA.timeStamp,sA&&(this.pointerIsDown=!0,vA.downTime=this.coords.cur.timeStamp,vA.downTarget=iA,U(this.downPointer,R),this.interacting()||(W(this.coords.start,this.coords.cur),W(this.coords.prev,this.coords.cur),this.downEvent=Z,this.pointerWasMoved=!1)),this._updateLatestPointer(R,Z,iA),this._scopeFire("interactions:update-pointer",{pointer:R,event:Z,eventTarget:iA,down:sA,pointerInfo:vA,pointerIndex:RA,interaction:this}),RA}},{key:"removePointer",value:function(R,Z){var iA=this.getPointerIndex(R);if(iA!==-1){var sA=this.pointers[iA];this._scopeFire("interactions:remove-pointer",{pointer:R,event:Z,eventTarget:null,pointerIndex:iA,pointerInfo:sA,interaction:this}),this.pointers.splice(iA,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(R,Z,iA){this._latestPointer.pointer=R,this._latestPointer.event=Z,this._latestPointer.eventTarget=iA}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(R,Z,iA,sA){return new si(this,R,this.prepared.name,Z,this.element,iA,sA)}},{key:"_fireEvent",value:function(R){var Z;(Z=this.interactable)==null||Z.fire(R),(!this.prevEvent||R.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=R)}},{key:"_doPhase",value:function(R){var Z=R.event,iA=R.phase,sA=R.preEnd,uA=R.type,BA=this.rect;if(BA&&iA==="move"&&(gA(this.edges,BA,this.coords.delta[this.interactable.options.deltaSource]),BA.width=BA.right-BA.left,BA.height=BA.bottom-BA.top),this._scopeFire("interactions:before-action-".concat(iA),R)===!1)return!1;var QA=R.iEvent=this._createPreparedEvent(Z,iA,sA,uA);return this._scopeFire("interactions:action-".concat(iA),R),iA==="start"&&(this.prevEvent=QA),this._fireEvent(QA),this._scopeFire("interactions:after-action-".concat(iA),R),!0}},{key:"_now",value:function(){return Date.now()}}]),L}();function Vr(L){Aa(L.interaction)}function Aa(L){if(!function(Z){return!(!Z.offset.pending.x&&!Z.offset.pending.y)}(L))return!1;var R=L.offset.pending;return ea(L.coords.cur,R),ea(L.coords.delta,R),gA(L.edges,L.rect,R),R.x=0,R.y=0,!0}function vg(L){var R=L.x,Z=L.y;this.offset.pending.x+=R,this.offset.pending.y+=Z,this.offset.total.x+=R,this.offset.total.y+=Z}function ea(L,R){var Z=L.page,iA=L.client,sA=R.x,uA=R.y;Z.x+=sA,Z.y+=uA,iA.x+=sA,iA.y+=uA}Ts.offsetBy="";var kg={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(L){L.Interaction.prototype.offsetBy=vg},listeners:{"interactions:new":function(L){L.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(L){return function(R){R.pointerIsDown&&(ea(R.coords.cur,R.offset.total),R.offset.pending.x=0,R.offset.pending.y=0)}(L.interaction)},"interactions:before-action-start":Vr,"interactions:before-action-move":Vr,"interactions:before-action-end":function(L){var R=L.interaction;if(Aa(R))return R.move({offset:!0}),R.end(),!1},"interactions:stop":function(L){var R=L.interaction;R.offset.total.x=0,R.offset.total.y=0,R.offset.pending.x=0,R.offset.pending.y=0}}},ta=kg,_g=function(){function L(R){m(this,L),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=R}return y(L,[{key:"start",value:function(R){var Z=this.interaction,iA=tr(Z);if(!iA||!iA.enabled)return!1;var sA=Z.coords.velocity.client,uA=cA(sA.x,sA.y),BA=this.modification||(this.modification=new Vo(Z));if(BA.copyFrom(Z.modification),this.t0=Z._now(),this.allowResume=iA.allowResume,this.v0=uA,this.currentOffset={x:0,y:0},this.startCoords=Z.coords.cur.page,this.modifierArg=BA.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-Z.coords.cur.timeStamp<50&&uA>iA.minSpeed&&uA>iA.endSpeed)this.startInertia();else{if(BA.result=BA.setAll(this.modifierArg),!BA.result.changed)return!1;this.startSmoothEnd()}return Z.modification.result.rect=null,Z.offsetBy(this.targetOffset),Z._doPhase({interaction:Z,event:R,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 R=this,Z=this.interaction.coords.velocity.client,iA=tr(this.interaction),sA=iA.resistance,uA=-Math.log(iA.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-iA.endSpeed/this.v0;var BA=this.modification,QA=this.modifierArg;QA.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},BA.result=BA.setAll(QA),BA.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+BA.result.delta.x,y:this.targetOffset.y+BA.result.delta.y}),this.onNextFrame(function(){return R.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var R=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 R.smoothEndTick()})}},{key:"onNextFrame",value:function(R){var Z=this;this.timeout=we.request(function(){Z.active&&R()})}},{key:"inertiaTick",value:function(){var R,Z,iA,sA,uA,BA,QA,DA=this,RA=this.interaction,vA=tr(RA).resistance,TA=(RA._now()-this.t0)/1e3;if(TA<this.te){var Ae,ge=1-(Math.exp(-vA*TA)-this.lambda_v0)/this.one_ve_v0;this.isModified?(R=0,Z=0,iA=this.targetOffset.x,sA=this.targetOffset.y,uA=this.modifiedOffset.x,BA=this.modifiedOffset.y,Ae={x:Os(QA=ge,R,iA,uA),y:Os(QA,Z,sA,BA)}):Ae={x:this.targetOffset.x*ge,y:this.targetOffset.y*ge};var le={x:Ae.x-this.currentOffset.x,y:Ae.y-this.currentOffset.y};this.currentOffset.x+=le.x,this.currentOffset.y+=le.y,RA.offsetBy(le),RA.move(),this.onNextFrame(function(){return DA.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 R=this,Z=this.interaction,iA=Z._now()-this.t0,sA=tr(Z).smoothEndDuration;if(iA<sA){var uA={x:nr(iA,0,this.targetOffset.x,sA),y:nr(iA,0,this.targetOffset.y,sA)},BA={x:uA.x-this.currentOffset.x,y:uA.y-this.currentOffset.y};this.currentOffset.x+=BA.x,this.currentOffset.y+=BA.y,Z.offsetBy(BA),Z.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return R.smoothEndTick()})}else Z.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(R){var Z=R.pointer,iA=R.event,sA=R.eventTarget,uA=this.interaction;uA.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),uA.updatePointer(Z,iA,sA,!0),uA._doPhase({interaction:uA,event:iA,phase:"resume"}),W(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,we.cancel(this.timeout)}}]),L}();function tr(L){var R=L.interactable,Z=L.prepared;return R&&R.options&&Z.name&&R.options[Z.name].inertia}var Mg={id:"inertia",before:["modifiers","actions"],install:function(L){var R=L.defaults;L.usePlugin(ta),L.usePlugin(Ar),L.actions.phases.inertiastart=!0,L.actions.phases.resume=!0,R.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(L){var R=L.interaction;R.inertia=new _g(R)},"interactions:before-action-end":function(L){var R=L.interaction,Z=L.event;return(!R._interacting||R.simulation||!R.inertia.start(Z))&&null},"interactions:down":function(L){var R=L.interaction,Z=L.eventTarget,iA=R.inertia;if(iA.active)for(var sA=Z;u.element(sA);){if(sA===R.element){iA.resume(L);break}sA=K(sA)}},"interactions:stop":function(L){var R=L.interaction.inertia;R.active&&R.stop()},"interactions:before-action-resume":function(L){var R=L.interaction.modification;R.stop(L),R.start(L,L.interaction.coords.cur.page),R.applyToInteraction(L)},"interactions:before-action-inertiastart":function(L){return L.interaction.modification.setAndApply(L)},"interactions:action-resume":mo,"interactions:action-inertiastart":mo,"interactions:after-action-inertiastart":function(L){return L.interaction.modification.restoreInteractionCoords(L)},"interactions:after-action-resume":function(L){return L.interaction.modification.restoreInteractionCoords(L)}}};function Os(L,R,Z,iA){var sA=1-L;return sA*sA*R+2*sA*L*Z+L*L*iA}function nr(L,R,Z,iA){return-Z*(L/=iA)*(L-2)+R}var xg=Mg;function $s(L,R){for(var Z=0;Z<R.length;Z++){var iA=R[Z];if(L.immediatePropagationStopped)break;iA(L)}}var zs=function(){function L(R){m(this,L),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=q({},R||{})}return y(L,[{key:"fire",value:function(R){var Z,iA=this.global;(Z=this.types[R.type])&&$s(R,Z),!R.propagationStopped&&iA&&(Z=iA[R.type])&&$s(R,Z)}},{key:"on",value:function(R,Z){var iA=X(R,Z);for(R in iA)this.types[R]=Ie(this.types[R]||[],iA[R])}},{key:"off",value:function(R,Z){var iA=X(R,Z);for(R in iA){var sA=this.types[R];if(sA&&sA.length)for(var uA=0,BA=iA[R];uA<BA.length;uA++){var QA=BA[uA],DA=sA.indexOf(QA);DA!==-1&&sA.splice(DA,1)}}}},{key:"getRect",value:function(R){return null}}]),L}(),Sg=function(){function L(R){m(this,L),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=R,U(this,R)}return y(L,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),L}();function Eo(L){return u.object(L)?{capture:!!L.capture,passive:!!L.passive}:{capture:!!L,passive:!1}}function st(L,R){return L===R||(typeof L=="boolean"?!!R.capture===L&&!R.passive:!!L.capture==!!R.capture&&!!L.passive==!!R.passive)}var dt={id:"events",install:function(L){var R,Z=[],iA={},sA=[],uA={add:BA,remove:QA,addDelegate:function(vA,TA,Ae,ge,le){var pe=Eo(le);if(!iA[Ae]){iA[Ae]=[];for(var ve=0;ve<sA.length;ve++){var Qe=sA[ve];BA(Qe,Ae,DA),BA(Qe,Ae,RA,!0)}}var _A=iA[Ae],zA=OA(_A,function(UA){return UA.selector===vA&&UA.context===TA});zA||(zA={selector:vA,context:TA,listeners:[]},_A.push(zA)),zA.listeners.push({func:ge,options:pe})},removeDelegate:function(vA,TA,Ae,ge,le){var pe,ve=Eo(le),Qe=iA[Ae],_A=!1;if(Qe)for(pe=Qe.length-1;pe>=0;pe--){var zA=Qe[pe];if(zA.selector===vA&&zA.context===TA){for(var UA=zA.listeners,ee=UA.length-1;ee>=0;ee--){var Be=UA[ee];if(Be.func===ge&&st(Be.options,ve)){UA.splice(ee,1),UA.length||(Qe.splice(pe,1),QA(TA,Ae,DA),QA(TA,Ae,RA,!0)),_A=!0;break}}if(_A)break}}},delegateListener:DA,delegateUseCapture:RA,delegatedEvents:iA,documents:sA,targets:Z,supportsOptions:!1,supportsPassive:!1};function BA(vA,TA,Ae,ge){if(vA.addEventListener){var le=Eo(ge),pe=OA(Z,function(ve){return ve.eventTarget===vA});pe||(pe={eventTarget:vA,events:{}},Z.push(pe)),pe.events[TA]||(pe.events[TA]=[]),OA(pe.events[TA],function(ve){return ve.func===Ae&&st(ve.options,le)})||(vA.addEventListener(TA,Ae,uA.supportsOptions?le:le.capture),pe.events[TA].push({func:Ae,options:le}))}}function QA(vA,TA,Ae,ge){if(vA.addEventListener&&vA.removeEventListener){var le=NA(Z,function(He){return He.eventTarget===vA}),pe=Z[le];if(pe&&pe.events)if(TA!=="all"){var ve=!1,Qe=pe.events[TA];if(Qe){if(Ae==="all"){for(var _A=Qe.length-1;_A>=0;_A--){var zA=Qe[_A];QA(vA,TA,zA.func,zA.options)}return}for(var UA=Eo(ge),ee=0;ee<Qe.length;ee++){var Be=Qe[ee];if(Be.func===Ae&&st(Be.options,UA)){vA.removeEventListener(TA,Ae,uA.supportsOptions?UA:UA.capture),Qe.splice(ee,1),Qe.length===0&&(delete pe.events[TA],ve=!0);break}}}ve&&!Object.keys(pe.events).length&&Z.splice(le,1)}else for(TA in pe.events)pe.events.hasOwnProperty(TA)&&QA(vA,TA,"all")}}function DA(vA,TA){for(var Ae=Eo(TA),ge=new Sg(vA),le=iA[vA.type],pe=XA(vA)[0],ve=pe;u.element(ve);){for(var Qe=0;Qe<le.length;Qe++){var _A=le[Qe],zA=_A.selector,UA=_A.context;if(z(ve,zA)&&M(UA,pe)&&M(UA,ve)){var ee=_A.listeners;ge.currentTarget=ve;for(var Be=0;Be<ee.length;Be++){var He=ee[Be];st(He.options,Ae)&&He.func(ge)}}}ve=K(ve)}}function RA(vA){return DA(vA,!0)}return(R=L.document)==null||R.createElement("div").addEventListener("test",null,{get capture(){return uA.supportsOptions=!0},get passive(){return uA.supportsPassive=!0}}),L.events=uA,uA}},na={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(L){for(var R=0,Z=na.methodOrder;R<Z.length;R++){var iA=Z[R],sA=na[iA](L);if(sA)return sA}return null},simulationResume:function(L){var R=L.pointerType,Z=L.eventType,iA=L.eventTarget,sA=L.scope;if(!/down|start/i.test(Z))return null;for(var uA=0,BA=sA.interactions.list;uA<BA.length;uA++){var QA=BA[uA],DA=iA;if(QA.simulation&&QA.simulation.allowResume&&QA.pointerType===R)for(;DA;){if(DA===QA.element)return QA;DA=K(DA)}}return null},mouseOrPen:function(L){var R,Z=L.pointerId,iA=L.pointerType,sA=L.eventType,uA=L.scope;if(iA!=="mouse"&&iA!=="pen")return null;for(var BA=0,QA=uA.interactions.list;BA<QA.length;BA++){var DA=QA[BA];if(DA.pointerType===iA){if(DA.simulation&&!Js(DA,Z))continue;if(DA.interacting())return DA;R||(R=DA)}}if(R)return R;for(var RA=0,vA=uA.interactions.list;RA<vA.length;RA++){var TA=vA[RA];if(!(TA.pointerType!==iA||/down/i.test(sA)&&TA.simulation))return TA}return null},hasPointer:function(L){for(var R=L.pointerId,Z=0,iA=L.scope.interactions.list;Z<iA.length;Z++){var sA=iA[Z];if(Js(sA,R))return sA}return null},idle:function(L){for(var R=L.pointerType,Z=0,iA=L.scope.interactions.list;Z<iA.length;Z++){var sA=iA[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()&&R===sA.pointerType)return sA}return null}};function Js(L,R){return L.pointers.some(function(Z){return Z.id===R})}var Ng=na,ia=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Zs(L,R){return function(Z){var iA=R.interactions.list,sA=xA(Z),uA=XA(Z),BA=uA[0],QA=uA[1],DA=[];if(/^touch/.test(Z.type)){R.prevTouchTime=R.now();for(var RA=0,vA=Z.changedTouches;RA<vA.length;RA++){var TA=vA[RA],Ae={pointer:TA,pointerId:HA(TA),pointerType:sA,eventType:Z.type,eventTarget:BA,curEventTarget:QA,scope:R},ge=Ws(Ae);DA.push([Ae.pointer,Ae.eventTarget,Ae.curEventTarget,ge])}}else{var le=!1;if(!f.supportsPointerEvent&&/mouse/.test(Z.type)){for(var pe=0;pe<iA.length&&!le;pe++)le=iA[pe].pointerType!=="mouse"&&iA[pe].pointerIsDown;le=le||R.now()-R.prevTouchTime<500||Z.timeStamp===0}if(!le){var ve={pointer:Z,pointerId:HA(Z),pointerType:sA,eventType:Z.type,curEventTarget:QA,eventTarget:BA,scope:R},Qe=Ws(ve);DA.push([ve.pointer,ve.eventTarget,ve.curEventTarget,Qe])}}for(var _A=0;_A<DA.length;_A++){var zA=DA[_A],UA=zA[0],ee=zA[1],Be=zA[2];zA[3][L](UA,Z,ee,Be)}}}function Ws(L){var R=L.pointerType,Z=L.scope,iA={interaction:Ng.search(L),searchDetails:L};return Z.fire("interactions:find",iA),iA.interaction||Z.interactions.new({pointerType:R})}function ir(L,R){var Z=L.doc,iA=L.scope,sA=L.options,uA=iA.interactions.docEvents,BA=iA.events,QA=BA[R];for(var DA in iA.browser.isIOS&&!sA.events&&(sA.events={passive:!1}),BA.delegatedEvents)QA(Z,DA,BA.delegateListener),QA(Z,DA,BA.delegateUseCapture,!0);for(var RA=sA&&sA.events,vA=0;vA<uA.length;vA++){var TA=uA[vA];QA(Z,TA.type,TA.listener,RA)}}var Fg={id:"core/interactions",install:function(L){for(var R={},Z=0;Z<ia.length;Z++){var iA=ia[Z];R[iA]=Zs(iA,L)}var sA,uA=f.pEventTypes;function BA(){for(var QA=0,DA=L.interactions.list;QA<DA.length;QA++){var RA=DA[QA];if(RA.pointerIsDown&&RA.pointerType==="touch"&&!RA._interacting)for(var vA=function(){var ge=Ae[TA];L.documents.some(function(le){return M(le.doc,ge.downTarget)})||RA.removePointer(ge.pointer,ge.event)},TA=0,Ae=RA.pointers;TA<Ae.length;TA++)vA()}}(sA=r.PointerEvent?[{type:uA.down,listener:BA},{type:uA.down,listener:R.pointerDown},{type:uA.move,listener:R.pointerMove},{type:uA.up,listener:R.pointerUp},{type:uA.cancel,listener:R.pointerUp}]:[{type:"mousedown",listener:R.pointerDown},{type:"mousemove",listener:R.pointerMove},{type:"mouseup",listener:R.pointerUp},{type:"touchstart",listener:BA},{type:"touchstart",listener:R.pointerDown},{type:"touchmove",listener:R.pointerMove},{type:"touchend",listener:R.pointerUp},{type:"touchcancel",listener:R.pointerUp}]).push({type:"blur",listener:function(QA){for(var DA=0,RA=L.interactions.list;DA<RA.length;DA++)RA[DA].documentBlur(QA)}}),L.prevTouchTime=0,L.Interaction=function(QA){I(RA,QA);var DA=O(RA);function RA(){return m(this,RA),DA.apply(this,arguments)}return y(RA,[{key:"pointerMoveTolerance",get:function(){return L.interactions.pointerMoveTolerance},set:function(vA){L.interactions.pointerMoveTolerance=vA}},{key:"_now",value:function(){return L.now()}}]),RA}(Ys),L.interactions={list:[],new:function(QA){QA.scopeFire=function(RA,vA){return L.fire(RA,vA)};var DA=new L.Interaction(QA);return L.interactions.list.push(DA),DA},listeners:R,docEvents:sA,pointerMoveTolerance:1},L.usePlugin(ai)},listeners:{"scope:add-document":function(L){return ir(L,"add")},"scope:remove-document":function(L){return ir(L,"remove")},"interactable:unset":function(L,R){for(var Z=L.interactable,iA=R.interactions.list.length-1;iA>=0;iA--){var sA=R.interactions.list[iA];sA.interactable===Z&&(sA.stop(),R.fire("interactions:destroy",{interaction:sA}),sA.destroy(),R.interactions.list.length>2&&R.interactions.list.splice(iA,1))}}},onDocSignal:ir,doOnInteractions:Zs,methodNames:ia},Gt=Fg,Gn=function(L){return L[L.On=0]="On",L[L.Off=1]="Off",L}(Gn||{}),Ii=function(){function L(R,Z,iA,sA){m(this,L),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new zs,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=Z.actions,this.target=R,this._context=Z.context||iA,this._win=_(G(R)?this._context:R),this._doc=this._win.document,this._scopeEvents=sA,this.set(Z)}return y(L,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(R,Z){return u.func(Z.onstart)&&this.on("".concat(R,"start"),Z.onstart),u.func(Z.onmove)&&this.on("".concat(R,"move"),Z.onmove),u.func(Z.onend)&&this.on("".concat(R,"end"),Z.onend),u.func(Z.oninertiastart)&&this.on("".concat(R,"inertiastart"),Z.oninertiastart),this}},{key:"updatePerActionListeners",value:function(R,Z,iA){var sA,uA=this,BA=(sA=this._actions.map[R])==null?void 0:sA.filterEventType,QA=function(DA){return(BA==null||BA(DA))&&yn(DA,uA._actions)};(u.array(Z)||u.object(Z))&&this._onOff(Gn.Off,R,Z,void 0,QA),(u.array(iA)||u.object(iA))&&this._onOff(Gn.On,R,iA,void 0,QA)}},{key:"setPerAction",value:function(R,Z){var iA=this._defaults;for(var sA in Z){var uA=sA,BA=this.options[R],QA=Z[uA];uA==="listeners"&&this.updatePerActionListeners(R,BA.listeners,QA),u.array(QA)?BA[uA]=_e(QA):u.plainObject(QA)?(BA[uA]=q(BA[uA]||{},Ti(QA)),u.object(iA.perAction[uA])&&"enabled"in iA.perAction[uA]&&(BA[uA].enabled=QA.enabled!==!1)):u.bool(QA)&&u.object(iA.perAction[uA])?BA[uA].enabled=QA:BA[uA]=QA}}},{key:"getRect",value:function(R){return R=R||(u.element(this.target)?this.target:null),u.string(this.target)&&(R=R||this._context.querySelector(this.target)),D(R)}},{key:"rectChecker",value:function(R){var Z=this;return u.func(R)?(this.getRect=function(iA){var sA=q({},R.apply(Z,iA));return"width"in sA||(sA.width=sA.right-sA.left,sA.height=sA.bottom-sA.top),sA},this):R===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(R,Z){if(G(Z)||u.object(Z)){for(var iA in this.options[R]=Z,this._actions.map)this.options[iA][R]=Z;return this}return this.options[R]}},{key:"origin",value:function(R){return this._backCompatOption("origin",R)}},{key:"deltaSource",value:function(R){return R==="page"||R==="client"?(this.options.deltaSource=R,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var R=this.target;return u.string(R)?Array.from(this._context.querySelectorAll(R)):u.func(R)&&R.getAllElements?R.getAllElements():u.element(R)?[R]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(R){return this._context===R.ownerDocument||M(this._context,R)}},{key:"testIgnoreAllow",value:function(R,Z,iA){return!this.testIgnore(R.ignoreFrom,Z,iA)&&this.testAllow(R.allowFrom,Z,iA)}},{key:"testAllow",value:function(R,Z,iA){return!R||!!u.element(iA)&&(u.string(R)?V(iA,R,Z):!!u.element(R)&&M(R,iA))}},{key:"testIgnore",value:function(R,Z,iA){return!(!R||!u.element(iA))&&(u.string(R)?V(iA,R,Z):!!u.element(R)&&M(R,iA))}},{key:"fire",value:function(R){return this.events.fire(R),this}},{key:"_onOff",value:function(R,Z,iA,sA,uA){u.object(Z)&&!u.array(Z)&&(sA=iA,iA=null);var BA=X(Z,iA,uA);for(var QA in BA){QA==="wheel"&&(QA=f.wheelEvent);for(var DA=0,RA=BA[QA];DA<RA.length;DA++){var vA=RA[DA];yn(QA,this._actions)?this.events[R===Gn.On?"on":"off"](QA,vA):u.string(this.target)?this._scopeEvents[R===Gn.On?"addDelegate":"removeDelegate"](this.target,this._context,QA,vA,sA):this._scopeEvents[R===Gn.On?"add":"remove"](this.target,QA,vA,sA)}}return this}},{key:"on",value:function(R,Z,iA){return this._onOff(Gn.On,R,Z,iA)}},{key:"off",value:function(R,Z,iA){return this._onOff(Gn.Off,R,Z,iA)}},{key:"set",value:function(R){var Z=this._defaults;for(var iA in u.object(R)||(R={}),this.options=Ti(Z.base),this._actions.methodDict){var sA=iA,uA=this._actions.methodDict[sA];this.options[sA]={},this.setPerAction(sA,q(q({},Z.perAction),Z.actions[sA])),this[uA](R[sA])}for(var BA in R)BA!=="getRect"?u.func(this[BA])&&this[BA](R[BA]):this.rectChecker(R.getRect);return this}},{key:"unset",value:function(){if(u.string(this.target))for(var R in this._scopeEvents.delegatedEvents)for(var Z=this._scopeEvents.delegatedEvents[R],iA=Z.length-1;iA>=0;iA--){var sA=Z[iA],uA=sA.selector,BA=sA.context,QA=sA.listeners;uA===this.target&&BA===this._context&&Z.splice(iA,1);for(var DA=QA.length-1;DA>=0;DA--)this._scopeEvents.removeDelegate(this.target,this._context,R,QA[DA][0],QA[DA][1])}else this._scopeEvents.remove(this.target,"all")}}]),L}(),js=function(){function L(R){var Z=this;m(this,L),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=R,R.addListeners({"interactable:unset":function(iA){var sA=iA.interactable,uA=sA.target,BA=u.string(uA)?Z.selectorMap[uA]:uA[Z.scope.id],QA=NA(BA,function(DA){return DA===sA});BA.splice(QA,1)}})}return y(L,[{key:"new",value:function(R,Z){Z=q(Z||{},{actions:this.scope.actions});var iA=new this.scope.Interactable(R,Z,this.scope.document,this.scope.events);return this.scope.addDocument(iA._doc),this.list.push(iA),u.string(R)?(this.selectorMap[R]||(this.selectorMap[R]=[]),this.selectorMap[R].push(iA)):(iA.target[this.scope.id]||Object.defineProperty(R,this.scope.id,{value:[],configurable:!0}),R[this.scope.id].push(iA)),this.scope.fire("interactable:new",{target:R,options:Z,interactable:iA,win:this.scope._win}),iA}},{key:"getExisting",value:function(R,Z){var iA=Z&&Z.context||this.scope.document,sA=u.string(R),uA=sA?this.selectorMap[R]:R[this.scope.id];if(uA)return OA(uA,function(BA){return BA._context===iA&&(sA||BA.inContext(R))})}},{key:"forEachMatch",value:function(R,Z){for(var iA=0,sA=this.list;iA<sA.length;iA++){var uA=sA[iA],BA=void 0;if((u.string(uA.target)?u.element(R)&&z(R,uA.target):R===uA.target)&&uA.inContext(R)&&(BA=Z(uA)),BA!==void 0)return BA}}}]),L}(),oa=function(){function L(){var R=this;m(this,L),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=f,this.defaults=Ti(er),this.Eventable=zs,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(iA){var sA=function uA(BA,QA){var DA=iA.interactables.getExisting(BA,QA);return DA||((DA=iA.interactables.new(BA,QA)).events.global=uA.globalEvents),DA};return sA.getPointerAverage=bA,sA.getTouchBBox=KA,sA.getTouchDistance=qA,sA.getTouchAngle=SA,sA.getElementRect=D,sA.getElementClientRect=J,sA.matchesSelector=z,sA.closest=x,sA.globalEvents={},sA.version="1.10.27",sA.scope=iA,sA.use=function(uA,BA){return this.scope.usePlugin(uA,BA),this},sA.isSet=function(uA,BA){return!!this.scope.interactables.get(uA,BA&&BA.context)},sA.on=At(function(uA,BA,QA){if(u.string(uA)&&uA.search(" ")!==-1&&(uA=uA.trim().split(/ +/)),u.array(uA)){for(var DA=0,RA=uA;DA<RA.length;DA++){var vA=RA[DA];this.on(vA,BA,QA)}return this}if(u.object(uA)){for(var TA in uA)this.on(TA,uA[TA],BA);return this}return yn(uA,this.scope.actions)?this.globalEvents[uA]?this.globalEvents[uA].push(BA):this.globalEvents[uA]=[BA]:this.scope.events.add(this.scope.document,uA,BA,{options:QA}),this},"The interact.on() method is being deprecated"),sA.off=At(function(uA,BA,QA){if(u.string(uA)&&uA.search(" ")!==-1&&(uA=uA.trim().split(/ +/)),u.array(uA)){for(var DA=0,RA=uA;DA<RA.length;DA++){var vA=RA[DA];this.off(vA,BA,QA)}return this}if(u.object(uA)){for(var TA in uA)this.off(TA,uA[TA],BA);return this}var Ae;return yn(uA,this.scope.actions)?uA in this.globalEvents&&(Ae=this.globalEvents[uA].indexOf(BA))!==-1&&this.globalEvents[uA].splice(Ae,1):this.scope.events.remove(this.scope.document,uA,BA,QA),this},"The interact.off() method is being deprecated"),sA.debug=function(){return this.scope},sA.supportsTouch=function(){return f.supportsTouch},sA.supportsPointerEvent=function(){return f.supportsPointerEvent},sA.stop=function(){for(var uA=0,BA=this.scope.interactions.list;uA<BA.length;uA++)BA[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,BA){this.scope.addDocument(uA,BA)},sA.removeDocument=function(uA){this.scope.removeDocument(uA)},sA}(this),this.InteractEvent=si,this.Interactable=void 0,this.interactables=new js(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(iA){return R.removeDocument(iA.target)};var Z=this;this.Interactable=function(iA){I(uA,iA);var sA=O(uA);function uA(){return m(this,uA),sA.apply(this,arguments)}return y(uA,[{key:"_defaults",get:function(){return Z.defaults}},{key:"set",value:function(BA){return H(S(uA.prototype),"set",this).call(this,BA),Z.fire("interactable:set",{options:BA,interactable:this}),this}},{key:"unset",value:function(){H(S(uA.prototype),"unset",this).call(this);var BA=Z.interactables.list.indexOf(this);BA<0||(Z.interactables.list.splice(BA,1),Z.fire("interactable:unset",{interactable:this}))}}]),uA}(Ii)}return y(L,[{key:"addListeners",value:function(R,Z){this.listenerMaps.push({id:Z,map:R})}},{key:"fire",value:function(R,Z){for(var iA=0,sA=this.listenerMaps;iA<sA.length;iA++){var uA=sA[iA].map[R];if(uA&&uA(Z,this,R)===!1)return!1}}},{key:"init",value:function(R){return this.isInitialized?this:function(Z,iA){return Z.isInitialized=!0,u.window(iA)&&k(iA),r.init(iA),f.init(iA),we.init(iA),Z.window=iA,Z.document=iA.document,Z.usePlugin(Gt),Z.usePlugin(dt),Z}(this,R)}},{key:"pluginIsInstalled",value:function(R){var Z=R.id;return Z?!!this._plugins.map[Z]:this._plugins.list.indexOf(R)!==-1}},{key:"usePlugin",value:function(R,Z){if(!this.isInitialized)return this;if(this.pluginIsInstalled(R))return this;if(R.id&&(this._plugins.map[R.id]=R),this._plugins.list.push(R),R.install&&R.install(this,Z),R.listeners&&R.before){for(var iA=0,sA=this.listenerMaps.length,uA=R.before.reduce(function(QA,DA){return QA[DA]=!0,QA[nn(DA)]=!0,QA},{});iA<sA;iA++){var BA=this.listenerMaps[iA].id;if(BA&&(uA[BA]||uA[nn(BA)]))break}this.listenerMaps.splice(iA,0,{id:R.id,map:R.listeners})}else R.listeners&&this.listenerMaps.push({id:R.id,map:R.listeners});return this}},{key:"addDocument",value:function(R,Z){if(this.getDocIndex(R)!==-1)return!1;var iA=_(R);Z=Z?q({},Z):{},this.documents.push({doc:R,options:Z}),this.events.documents.push(R),R!==this.document&&this.events.add(iA,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:R,window:iA,scope:this,options:Z})}},{key:"removeDocument",value:function(R){var Z=this.getDocIndex(R),iA=_(R),sA=this.documents[Z].options;this.events.remove(iA,"unload",this.onWindowUnload),this.documents.splice(Z,1),this.events.documents.splice(Z,1),this.fire("scope:remove-document",{doc:R,window:iA,scope:this,options:sA})}},{key:"getDocIndex",value:function(R){for(var Z=0;Z<this.documents.length;Z++)if(this.documents[Z].doc===R)return Z;return-1}},{key:"getDocOptions",value:function(R){var Z=this.getDocIndex(R);return Z===-1?null:this.documents[Z].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),L}();function nn(L){return L&&L.replace(/\/.*$/,"")}var ra=new oa,Kt=ra.interactStatic,qs=typeof globalThis<"u"?globalThis:window;ra.init(qs);var Xs=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(L){var R=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(iA){var sA=iA[0],uA=iA[1];return sA in L||uA in L}),Z=function(iA,sA){for(var uA=L.range,BA=L.limits,QA=BA===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:BA,DA=L.offset,RA=DA===void 0?{x:0,y:0}:DA,vA={range:uA,grid:L,x:null,y:null},TA=0;TA<R.length;TA++){var Ae=R[TA],ge=Ae[0],le=Ae[1],pe=Math.round((iA-RA.x)/L[ge]),ve=Math.round((sA-RA.y)/L[le]);vA[ge]=Math.max(QA.left,Math.min(QA.right,pe*L[ge]+RA.x)),vA[le]=Math.max(QA.top,Math.min(QA.bottom,ve*L[le]+RA.y))}return vA};return Z.grid=L,Z.coordFields=R,Z}}),Vs={id:"snappers",install:function(L){var R=L.interactStatic;R.snappers=q(R.snappers||{},Xs),R.createSnapGrid=R.snappers.grid}},Al=Vs,on={start:function(L){var R=L.state,Z=L.rect,iA=L.edges,sA=L.pageCoords,uA=R.options,BA=uA.ratio,QA=uA.enabled,DA=R.options,RA=DA.equalDelta,vA=DA.modifiers;BA==="preserve"&&(BA=Z.width/Z.height),R.startCoords=q({},sA),R.startRect=q({},Z),R.ratio=BA,R.equalDelta=RA;var TA=R.linkedEdges={top:iA.top||iA.left&&!iA.bottom,left:iA.left||iA.top&&!iA.right,bottom:iA.bottom||iA.right&&!iA.top,right:iA.right||iA.bottom&&!iA.left};if(R.xIsPrimaryAxis=!(!iA.left&&!iA.right),R.equalDelta){var Ae=(TA.left?1:-1)*(TA.top?1:-1);R.edgeSign={x:Ae,y:Ae}}else R.edgeSign={x:TA.left?-1:1,y:TA.top?-1:1};if(QA!==!1&&q(iA,TA),vA!=null&&vA.length){var ge=new Vo(L.interaction);ge.copyFrom(L.interaction.modification),ge.prepareStates(vA),R.subModification=ge,ge.startAll(i({},L))}},set:function(L){var R=L.state,Z=L.rect,iA=L.coords,sA=R.linkedEdges,uA=q({},iA),BA=R.equalDelta?Rg:hn;if(q(L.edges,sA),BA(R,R.xIsPrimaryAxis,iA,Z),!R.subModification)return null;var QA=q({},Z);gA(sA,QA,{x:iA.x-uA.x,y:iA.y-uA.y});var DA=R.subModification.setAll(i(i({},L),{},{rect:QA,edges:sA,pageCoords:iA,prevCoords:iA,prevRect:QA})),RA=DA.delta;return DA.changed&&(BA(R,Math.abs(RA.x)>Math.abs(RA.y),DA.coords,DA.rect),q(iA,DA.coords)),DA.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Rg(L,R,Z){var iA=L.startCoords,sA=L.edgeSign;R?Z.y=iA.y+(Z.x-iA.x)*sA.y:Z.x=iA.x+(Z.y-iA.y)*sA.x}function hn(L,R,Z,iA){var sA=L.startRect,uA=L.startCoords,BA=L.ratio,QA=L.edgeSign;if(R){var DA=iA.width/BA;Z.y=uA.y+(DA-sA.height)*QA.y}else{var RA=iA.height*BA;Z.x=uA.x+(RA-sA.width)*QA.x}}var Lg=Ln(on,"aspectRatio"),aa=function(){};aa._defaults={};var Dn=aa;function Pn(L,R,Z){return u.func(L)?oA(L,R.interactable,R.element,[Z.x,Z.y,R]):oA(L,R.interactable,R.element)}var Ui={start:function(L){var R=L.rect,Z=L.startOffset,iA=L.state,sA=L.interaction,uA=L.pageCoords,BA=iA.options,QA=BA.elementRect,DA=q({left:0,top:0,right:0,bottom:0},BA.offset||{});if(R&&QA){var RA=Pn(BA.restriction,sA,uA);if(RA){var vA=RA.right-RA.left-R.width,TA=RA.bottom-RA.top-R.height;vA<0&&(DA.left+=vA,DA.right+=vA),TA<0&&(DA.top+=TA,DA.bottom+=TA)}DA.left+=Z.left-R.width*QA.left,DA.top+=Z.top-R.height*QA.top,DA.right+=Z.right-R.width*(1-QA.right),DA.bottom+=Z.bottom-R.height*(1-QA.bottom)}iA.offset=DA},set:function(L){var R=L.coords,Z=L.interaction,iA=L.state,sA=iA.options,uA=iA.offset,BA=Pn(sA.restriction,Z,R);if(BA){var QA=function(DA){return!DA||"left"in DA&&"top"in DA||((DA=q({},DA)).left=DA.x||0,DA.top=DA.y||0,DA.right=DA.right||DA.left+DA.width,DA.bottom=DA.bottom||DA.top+DA.height),DA}(BA);R.x=Math.max(Math.min(QA.right-uA.right,R.x),QA.left+uA.left),R.y=Math.max(Math.min(QA.bottom-uA.bottom,R.y),QA.top+uA.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Ct=Ln(Ui,"restrict"),Jn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},or={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function el(L,R){for(var Z=0,iA=["top","left","bottom","right"];Z<iA.length;Z++){var sA=iA[Z];sA in L||(L[sA]=R[sA])}return L}var wi={noInner:Jn,noOuter:or,start:function(L){var R,Z=L.interaction,iA=L.startOffset,sA=L.state,uA=sA.options;uA&&(R=dA(Pn(uA.offset,Z,Z.coords.start.page))),R=R||{x:0,y:0},sA.offset={top:R.y+iA.top,left:R.x+iA.left,bottom:R.y-iA.bottom,right:R.x-iA.right}},set:function(L){var R=L.coords,Z=L.edges,iA=L.interaction,sA=L.state,uA=sA.offset,BA=sA.options;if(Z){var QA=q({},R),DA=Pn(BA.inner,iA,QA)||{},RA=Pn(BA.outer,iA,QA)||{};el(DA,Jn),el(RA,or),Z.top?R.y=Math.min(Math.max(RA.top+uA.top,QA.y),DA.top+uA.top):Z.bottom&&(R.y=Math.max(Math.min(RA.bottom+uA.bottom,QA.y),DA.bottom+uA.bottom)),Z.left?R.x=Math.min(Math.max(RA.left+uA.left,QA.x),DA.left+uA.left):Z.right&&(R.x=Math.max(Math.min(RA.right+uA.right,QA.x),DA.right+uA.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Gg=Ln(wi,"restrictEdges"),Pg=q({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(L){}},Ui.defaults),Hg=Ln({start:Ui.start,set:Ui.set,defaults:Pg},"restrictRect"),tl={width:-1/0,height:-1/0},rr={width:1/0,height:1/0},Yi=Ln({start:function(L){return wi.start(L)},set:function(L){var R=L.interaction,Z=L.state,iA=L.rect,sA=L.edges,uA=Z.options;if(sA){var BA=mA(Pn(uA.min,R,L.coords))||tl,QA=mA(Pn(uA.max,R,L.coords))||rr;Z.options={endOnly:uA.endOnly,inner:q({},wi.noInner),outer:q({},wi.noOuter)},sA.top?(Z.options.inner.top=iA.bottom-BA.height,Z.options.outer.top=iA.bottom-QA.height):sA.bottom&&(Z.options.inner.bottom=iA.top+BA.height,Z.options.outer.bottom=iA.top+QA.height),sA.left?(Z.options.inner.left=iA.right-BA.width,Z.options.outer.left=iA.right-QA.width):sA.right&&(Z.options.inner.right=iA.left+BA.width,Z.options.outer.right=iA.left+QA.width),wi.set(L),Z.options=uA}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),sa={start:function(L){var R,Z=L.interaction,iA=L.interactable,sA=L.element,uA=L.rect,BA=L.state,QA=L.startOffset,DA=BA.options,RA=DA.offsetWithOrigin?function(Ae){var ge=Ae.interaction.element,le=dA(oA(Ae.state.options.origin,null,null,[ge])),pe=le||wA(Ae.interactable,ge,Ae.interaction.prepared.name);return pe}(L):{x:0,y:0};if(DA.offset==="startCoords")R={x:Z.coords.start.page.x,y:Z.coords.start.page.y};else{var vA=oA(DA.offset,iA,sA,[Z]);(R=dA(vA)||{x:0,y:0}).x+=RA.x,R.y+=RA.y}var TA=DA.relativePoints;BA.offsets=uA&&TA&&TA.length?TA.map(function(Ae,ge){return{index:ge,relativePoint:Ae,x:QA.left-uA.width*Ae.x+R.x,y:QA.top-uA.height*Ae.y+R.y}}):[{index:0,relativePoint:null,x:R.x,y:R.y}]},set:function(L){var R=L.interaction,Z=L.coords,iA=L.state,sA=iA.options,uA=iA.offsets,BA=wA(R.interactable,R.element,R.prepared.name),QA=q({},Z),DA=[];sA.offsetWithOrigin||(QA.x-=BA.x,QA.y-=BA.y);for(var RA=0,vA=uA;RA<vA.length;RA++)for(var TA=vA[RA],Ae=QA.x-TA.x,ge=QA.y-TA.y,le=0,pe=sA.targets.length;le<pe;le++){var ve=sA.targets[le],Qe=void 0;(Qe=u.func(ve)?ve(Ae,ge,R._proxy,TA,le):ve)&&DA.push({x:(u.number(Qe.x)?Qe.x:Ae)+TA.x,y:(u.number(Qe.y)?Qe.y:ge)+TA.y,range:u.number(Qe.range)?Qe.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}},zA=0;zA<DA.length;zA++){var UA=DA[zA],ee=UA.range,Be=UA.x-QA.x,He=UA.y-QA.y,Ke=cA(Be,He),Oe=Ke<=ee;ee===1/0&&_A.inRange&&_A.range!==1/0&&(Oe=!1),_A.target&&!(Oe?_A.inRange&&ee!==1/0?Ke/ee<_A.distance/_A.range:ee===1/0&&_A.range!==1/0||Ke<_A.distance:!_A.inRange&&Ke<_A.distance)||(_A.target=UA,_A.distance=Ke,_A.range=ee,_A.inRange=Oe,_A.delta.x=Be,_A.delta.y=He)}return _A.inRange&&(Z.x=_A.target.x,Z.y=_A.target.y),iA.closest=_A,_A},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},nl=Ln(sa,"snap"),Qo={start:function(L){var R=L.state,Z=L.edges,iA=R.options;if(!Z)return null;L.state={options:{targets:null,relativePoints:[{x:Z.left?0:1,y:Z.top?0:1}],offset:iA.offset||"self",origin:{x:0,y:0},range:iA.range}},R.targetFields=R.targetFields||[["width","height"],["x","y"]],sa.start(L),R.offsets=L.state.offsets,L.state=R},set:function(L){var R=L.interaction,Z=L.state,iA=L.coords,sA=Z.options,uA=Z.offsets,BA={x:iA.x-uA[0].x,y:iA.y-uA[0].y};Z.options=q({},sA),Z.options.targets=[];for(var QA=0,DA=sA.targets||[];QA<DA.length;QA++){var RA=DA[QA],vA=void 0;if(vA=u.func(RA)?RA(BA.x,BA.y,R):RA){for(var TA=0,Ae=Z.targetFields;TA<Ae.length;TA++){var ge=Ae[TA],le=ge[0],pe=ge[1];if(le in vA||pe in vA){vA.x=vA[le],vA.y=vA[pe];break}}Z.options.targets.push(vA)}}var ve=sa.set(L);return Z.options=sA,ve},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},la=Ln(Qo,"snapSize"),fo={aspectRatio:Lg,restrictEdges:Gg,restrict:Ct,restrictRect:Hg,restrictSize:Yi,snapEdges:Ln({start:function(L){var R=L.edges;return R?(L.state.targetFields=L.state.targetFields||[[R.left?"left":"right",R.top?"top":"bottom"]],Qo.start(L)):null},set:Qo.set,defaults:q(Ti(Qo.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:nl,snapSize:la,spring:Dn,avoid:Dn,transform:Dn,rubberband:Dn},il={id:"modifiers",install:function(L){var R=L.interactStatic;for(var Z in L.usePlugin(Ar),L.usePlugin(Al),R.modifiers=fo,fo){var iA=fo[Z],sA=iA._defaults,uA=iA._methods;sA._methods=uA,L.defaults.perAction[Z]=sA}}},Kg=il,ar=function(L){I(Z,L);var R=O(Z);function Z(iA,sA,uA,BA,QA,DA){var RA;if(m(this,Z),U(T(RA=R.call(this,QA)),uA),uA!==sA&&U(T(RA),sA),RA.timeStamp=DA,RA.originalEvent=uA,RA.type=iA,RA.pointerId=HA(sA),RA.pointerType=xA(sA),RA.target=BA,RA.currentTarget=null,iA==="tap"){var vA=QA.getPointerIndex(sA);RA.dt=RA.timeStamp-QA.pointers[vA].downTime;var TA=RA.timeStamp-QA.tapTime;RA.double=!!QA.prevTap&&QA.prevTap.type!=="doubletap"&&QA.prevTap.target===RA.target&&TA<500}else iA==="doubletap"&&(RA.dt=sA.timeStamp-QA.tapTime,RA.double=!0);return RA}return y(Z,[{key:"_subtractOrigin",value:function(iA){var sA=iA.x,uA=iA.y;return this.pageX-=sA,this.pageY-=uA,this.clientX-=sA,this.clientY-=uA,this}},{key:"_addOrigin",value:function(iA){var sA=iA.x,uA=iA.y;return this.pageX+=sA,this.pageY+=uA,this.clientX+=sA,this.clientY+=uA,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),Z}(he),bi={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(L){L.pointerEvents=bi,L.defaults.actions.pointerEvents=bi.defaults,q(L.actions.phaselessTypes,bi.types)},listeners:{"interactions:new":function(L){var R=L.interaction;R.prevTap=null,R.tapTime=0},"interactions:update-pointer":function(L){var R=L.down,Z=L.pointerInfo;!R&&Z.hold||(Z.hold={duration:1/0,timeout:null})},"interactions:move":function(L,R){var Z=L.interaction,iA=L.pointer,sA=L.event,uA=L.eventTarget;L.duplicate||Z.pointerIsDown&&!Z.pointerWasMoved||(Z.pointerIsDown&&Yt(L),li({interaction:Z,pointer:iA,event:sA,eventTarget:uA,type:"move"},R))},"interactions:down":function(L,R){(function(Z,iA){for(var sA=Z.interaction,uA=Z.pointer,BA=Z.event,QA=Z.eventTarget,DA=Z.pointerIndex,RA=sA.pointers[DA].hold,vA=j(QA),TA={interaction:sA,pointer:uA,event:BA,eventTarget:QA,type:"hold",targets:[],path:vA,node:null},Ae=0;Ae<vA.length;Ae++){var ge=vA[Ae];TA.node=ge,iA.fire("pointerEvents:collect-targets",TA)}if(TA.targets.length){for(var le=1/0,pe=0,ve=TA.targets;pe<ve.length;pe++){var Qe=ve[pe].eventable.options.holdDuration;Qe<le&&(le=Qe)}RA.duration=le,RA.timeout=setTimeout(function(){li({interaction:sA,eventTarget:QA,pointer:uA,event:BA,type:"hold"},iA)},le)}})(L,R),li(L,R)},"interactions:up":function(L,R){Yt(L),li(L,R),function(Z,iA){var sA=Z.interaction,uA=Z.pointer,BA=Z.event,QA=Z.eventTarget;sA.pointerWasMoved||li({interaction:sA,eventTarget:QA,pointer:uA,event:BA,type:"tap"},iA)}(L,R)},"interactions:cancel":function(L,R){Yt(L),li(L,R)}},PointerEvent:ar,fire:li,collectEventTargets:ca,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 li(L,R){var Z=L.interaction,iA=L.pointer,sA=L.event,uA=L.eventTarget,BA=L.type,QA=L.targets,DA=QA===void 0?ca(L,R):QA,RA=new ar(BA,iA,sA,uA,Z,R.now());R.fire("pointerEvents:new",{pointerEvent:RA});for(var vA={interaction:Z,pointer:iA,event:sA,eventTarget:uA,targets:DA,type:BA,pointerEvent:RA},TA=0;TA<DA.length;TA++){var Ae=DA[TA];for(var ge in Ae.props||{})RA[ge]=Ae.props[ge];var le=wA(Ae.eventable,Ae.node);if(RA._subtractOrigin(le),RA.eventable=Ae.eventable,RA.currentTarget=Ae.node,Ae.eventable.fire(RA),RA._addOrigin(le),RA.immediatePropagationStopped||RA.propagationStopped&&TA+1<DA.length&&DA[TA+1].node!==RA.currentTarget)break}if(R.fire("pointerEvents:fired",vA),BA==="tap"){var pe=RA.double?li({interaction:Z,pointer:iA,event:sA,eventTarget:uA,type:"doubletap"},R):RA;Z.prevTap=pe,Z.tapTime=pe.timeStamp}return RA}function ca(L,R){var Z=L.interaction,iA=L.pointer,sA=L.event,uA=L.eventTarget,BA=L.type,QA=Z.getPointerIndex(iA),DA=Z.pointers[QA];if(BA==="tap"&&(Z.pointerWasMoved||!DA||DA.downTarget!==uA))return[];for(var RA=j(uA),vA={interaction:Z,pointer:iA,event:sA,eventTarget:uA,type:BA,path:RA,targets:[],node:null},TA=0;TA<RA.length;TA++){var Ae=RA[TA];vA.node=Ae,R.fire("pointerEvents:collect-targets",vA)}return BA==="hold"&&(vA.targets=vA.targets.filter(function(ge){var le,pe;return ge.eventable.options.holdDuration===((le=Z.pointers[QA])==null||(pe=le.hold)==null?void 0:pe.duration)})),vA.targets}function Yt(L){var R=L.interaction,Z=L.pointerIndex,iA=R.pointers[Z].hold;iA&&iA.timeout&&(clearTimeout(iA.timeout),iA.timeout=null)}var ga=Object.freeze({__proto__:null,default:bi});function Io(L){var R=L.interaction;R.holdIntervalHandle&&(clearInterval(R.holdIntervalHandle),R.holdIntervalHandle=null)}var ol={id:"pointer-events/holdRepeat",install:function(L){L.usePlugin(bi);var R=L.pointerEvents;R.defaults.holdRepeatInterval=0,R.types.holdrepeat=L.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(L,R){return L["pointerEvents:".concat(R)]=Io,L},{"pointerEvents:new":function(L){var R=L.pointerEvent;R.type==="hold"&&(R.count=(R.count||0)+1)},"pointerEvents:fired":function(L,R){var Z=L.interaction,iA=L.pointerEvent,sA=L.eventTarget,uA=L.targets;if(iA.type==="hold"&&uA.length){var BA=uA[0].eventable.options.holdRepeatInterval;BA<=0||(Z.holdIntervalHandle=setTimeout(function(){R.pointerEvents.fire({interaction:Z,eventTarget:sA,type:"hold",pointer:iA,event:iA},R)},BA))}}})},rl=ol,Tg={id:"pointer-events/interactableTargets",install:function(L){var R=L.Interactable;R.prototype.pointerEvents=function(iA){return q(this.events.options,iA),this};var Z=R.prototype._backCompatOption;R.prototype._backCompatOption=function(iA,sA){var uA=Z.call(this,iA,sA);return uA===this&&(this.events.options[iA]=sA),uA}},listeners:{"pointerEvents:collect-targets":function(L,R){var Z=L.targets,iA=L.node,sA=L.type,uA=L.eventTarget;R.interactables.forEachMatch(iA,function(BA){var QA=BA.events,DA=QA.options;QA.types[sA]&&QA.types[sA].length&&BA.testIgnoreAllow(DA,iA,uA)&&Z.push({node:iA,eventable:QA,props:{interactable:BA}})})},"interactable:new":function(L){var R=L.interactable;R.events.getRect=function(Z){return R.getRect(Z)}},"interactable:set":function(L,R){var Z=L.interactable,iA=L.options;q(Z.events.options,R.pointerEvents.defaults),q(Z.events.options,iA.pointerEvents||{})}}},Ug=Tg,Yg={id:"pointer-events",install:function(L){L.usePlugin(ga),L.usePlugin(rl),L.usePlugin(Ug)}},Og=Yg,$g={id:"reflow",install:function(L){var R=L.Interactable;L.actions.phases.reflow=!0,R.prototype.reflow=function(Z){return function(iA,sA,uA){for(var BA=iA.getAllElements(),QA=uA.window.Promise,DA=QA?[]:null,RA=function(){var TA=BA[vA],Ae=iA.getRect(TA);if(!Ae)return 1;var ge,le=OA(uA.interactions.list,function(Qe){return Qe.interacting()&&Qe.interactable===iA&&Qe.element===TA&&Qe.prepared.name===sA.name});if(le)le.move(),DA&&(ge=le._reflowPromise||new QA(function(Qe){le._reflowResolve=Qe}));else{var pe=mA(Ae),ve=function(Qe){return{coords:Qe,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:pe.x,y:pe.y},client:{x:pe.x,y:pe.y},timeStamp:uA.now()});ge=function(Qe,_A,zA,UA,ee){var Be=Qe.interactions.new({pointerType:"reflow"}),He={interaction:Be,event:ee,pointer:ee,eventTarget:zA,phase:"reflow"};Be.interactable=_A,Be.element=zA,Be.prevEvent=ee,Be.updatePointer(ee,ee,zA,!0),tA(Be.coords.delta),ut(Be.prepared,UA),Be._doPhase(He);var Ke=Qe.window,Oe=Ke.Promise,rn=Oe?new Oe(function(Zn){Be._reflowResolve=Zn}):void 0;return Be._reflowPromise=rn,Be.start(UA,_A,zA),Be._interacting?(Be.move(He),Be.end(ee)):(Be.stop(),Be._reflowResolve()),Be.removePointer(ee,ee),rn}(uA,iA,TA,sA,ve)}DA&&DA.push(ge)},vA=0;vA<BA.length&&!RA();vA++);return DA&&QA.all(DA).then(function(){return iA})}(this,Z,L)}},listeners:{"interactions:stop":function(L,R){var Z=L.interaction;Z.pointerType==="reflow"&&(Z._reflowResolve&&Z._reflowResolve(),function(iA,sA){iA.splice(iA.indexOf(sA),1)}(R.interactions.list,Z))}}},Oi=$g;if(Kt.use(ai),Kt.use(ta),Kt.use(Og),Kt.use(xg),Kt.use(Kg),Kt.use(ri),Kt.use(VA),Kt.use(ze),Kt.use(Oi),Kt.default=Kt,g(n)==="object"&&n)try{n.exports=Kt}catch{}return Kt.default=Kt,Kt})}(Ds,Ds.exports);var V1=Ds.exports;const vs=Td(V1),Ak=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,g=t,m=A.inject(T1),o=A.inject(U1);if(!m)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const y=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 I=!1,S=!1,N=NaN,T=NaN,O=NaN,H=NaN,P=-1,v=-1,E=-1,F=-1,k=i.x,_=i.y,B=i.w,p=i.h;const u=A.ref(),l=A.reactive({i:A.toRef(i,"i"),state:w,wrapper:u,calcXY:oA});function d(nA){X(nA)}function s(){lA()}function h(nA){vt(i.isDraggable)&&(w.draggable=nA)}function C(nA){vt(i.isResizable)&&(w.resizable=nA)}function a(nA){vt(i.isBounded)&&(w.bounded=nA)}function r(nA){w.transformScale=nA}function Q(nA){w.rowHeight=nA}function f(nA){w.maxRows=nA}function M(){w.rtl=AC()==="rtl",lA()}function x(nA){w.cols=Math.floor(nA)}m.increaseItem(l),A.onBeforeMount(()=>{w.rtl=AC()==="rtl"}),A.onMounted(()=>{m.responsive&&m.lastBreakpoint?w.cols=j1(m.lastBreakpoint,m.cols):w.cols=m.colNum,w.rowHeight=m.rowHeight,w.containerWidth=m.width!==null?m.width:100,w.margin=m.margin!==void 0?m.margin.map(Number):[10,10],w.maxRows=m.maxRows,vt(i.isDraggable)?w.draggable=m.isDraggable:w.draggable=i.isDraggable,vt(i.isResizable)?w.resizable=m.isResizable:w.resizable=i.isResizable,vt(i.isBounded)?w.bounded=m.isBounded:w.bounded=i.isBounded,w.transformScale=m.transformScale,w.useCssTransforms=m.useCssTransforms,w.useStyleCursor=m.useStyleCursor,A.watchEffect(()=>{k=i.x,_=i.y,p=i.h,B=i.w,rt(D)}),o.on("updateWidth",d),o.on("compact",s),o.on("setDraggable",h),o.on("setResizable",C),o.on("setBounded",a),o.on("setTransformScale",r),o.on("setRowHeight",Q),o.on("setMaxRows",f),o.on("directionchange",M),o.on("setColNum",x)}),A.onBeforeUnmount(()=>{o.off("updateWidth",d),o.off("compact",s),o.off("setDraggable",h),o.off("setResizable",C),o.off("setBounded",a),o.off("setTransformScale",r),o.off("setRowHeight",Q),o.off("setMaxRows",f),o.off("directionchange",M),o.off("setColNum",x),y.value&&(y.value.unset(),y.value=null),m.decreaseItem(l)}),e({state:w,wrapper:u});const K=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,z=A.computed(()=>w.resizable&&!i.static),AA=A.computed(()=>m.isMirrored?!w.rtl:w.rtl),eA=A.computed(()=>(w.draggable||w.resizable)&&!i.static),V=J1("item"),$=A.computed(()=>({[V.b()]:!0,[V.bm("resizable")]:z.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")]:K&&eA.value})),J=A.computed(()=>[V.be("resizer"),AA.value&&V.bem("resizer","rtl")].filter(Boolean));A.watch(()=>i.isDraggable,nA=>{w.draggable=nA}),A.watch(()=>i.static,()=>{rt(U),rt(tA)}),A.watch(()=>w.draggable,()=>{rt(U)}),A.watch(()=>i.isResizable,nA=>{w.resizable=nA}),A.watch(()=>i.isBounded,nA=>{w.bounded=nA}),A.watch(()=>w.resizable,()=>{rt(tA)}),A.watch(()=>w.rowHeight,()=>{rt(D),rt(j)}),A.watch([()=>w.cols,()=>w.containerWidth],()=>{rt(tA),rt(D),rt(j)}),A.watch([()=>i.minH,()=>i.maxH,()=>i.minW,()=>i.maxW],()=>{rt(tA)}),A.watch(AA,()=>{rt(tA),rt(D)}),A.watch([()=>m.margin,()=>m.margin[0],()=>m.margin[1]],()=>{const nA=m.margin;!nA||nA[0]===w.margin[0]&&nA[1]===w.margin[1]||(w.margin=nA.map(Number),rt(D),rt(j))});function D(){i.x+i.w>w.cols?(k=0,B=i.w>w.cols?w.cols:i.w):(k=i.x,B=i.w);const nA=aA(k,_,B,p);w.isDragging&&(nA.top=w.dragging.top,AA.value?nA.right=w.dragging.left:nA.left=w.dragging.left),w.isResizing&&(nA.width=w.resizing.width,nA.height=w.resizing.height);let pA;w.useCssTransforms?AA.value?pA=O1(nA.top,nA.right,nA.width,nA.height):pA=Y1(nA.top,nA.left,nA.width,nA.height):AA.value?pA=z1(nA.top,nA.right,nA.width,nA.height):pA=$1(nA.top,nA.left,nA.width,nA.height),w.style=pA}function j(){const nA={};for(const pA of["width","height"]){const kA=w.style[pA].match(/^(\d+)px$/);if(!kA)return;nA[pA]=kA[1]}g("container-resized",i.i,i.h,i.w,nA.height,nA.width)}function G(nA){if(i.static)return;const pA=nA.type;if(pA==="resizestart"&&w.isResizing||pA!=="resizestart"&&!w.isResizing)return;const kA=Xp(nA);if(vt(kA))return;const{x:HA,y:JA}=kA,WA={width:0,height:0};let bA;switch(pA){case"resizestart":{tA(),P=B,v=p,bA=aA(k,_,B,p),WA.width=bA.width,WA.height=bA.height,w.resizing=WA,w.isResizing=!0;break}case"resizemove":{!nA.edges.right&&!nA.edges.left&&(O=HA),!nA.edges.top&&!nA.edges.bottom&&(H=JA);const KA=Vp(O,H,HA,JA);AA.value?WA.width=w.resizing.width-KA.deltaX/w.transformScale:WA.width=w.resizing.width+KA.deltaX/w.transformScale,WA.height=w.resizing.height+KA.deltaY/w.transformScale,w.resizing=WA;break}case"resizeend":{bA=aA(k,_,B,p),WA.width=bA.width,WA.height=bA.height,w.resizing={width:-1,height:-1},w.isResizing=!1;break}}bA=wA(WA.height,WA.width),bA.w<i.minW&&(bA.w=i.minW),bA.w>i.maxW&&(bA.w=i.maxW),bA.h<i.minH&&(bA.h=i.minH),bA.h>i.maxH&&(bA.h=i.maxH),bA.h<1&&(bA.h=1),bA.w<1&&(bA.w=1),O=HA,H=JA,(B!==bA.w||p!==bA.h)&&g("resize",i.i,bA.h,bA.w,WA.height,WA.width),nA.type==="resizeend"&&(P!==B||v!==p)&&g("resized",i.i,bA.h,bA.w,WA.height,WA.width),o.emit("resizeEvent",nA.type,i.i,k,_,bA.h,bA.w)}function q(nA){if(i.static||w.isResizing)return;const pA=nA.type;if(pA==="dragstart"&&w.isDragging||pA!=="dragstart"&&!w.isDragging)return;const kA=Xp(nA);if(vt(kA))return;const{x:HA,y:JA}=kA,WA=nA.target;if(!WA.offsetParent)return;const bA={top:0,left:0};switch(pA){case"dragstart":{E=k,F=_;const qA=WA.offsetParent.getBoundingClientRect(),SA=WA.getBoundingClientRect(),xA=SA.left/w.transformScale,XA=qA.left/w.transformScale,he=SA.right/w.transformScale,Ie=qA.right/w.transformScale,_e=SA.top/w.transformScale,NA=qA.top/w.transformScale;AA.value?bA.left=(he-Ie)*-1:bA.left=xA-XA,bA.top=_e-NA,w.dragging=bA,w.isDragging=!0;break}case"dragmove":{const qA=Vp(N,T,HA,JA);if(AA.value?bA.left=w.dragging.left-qA.deltaX/w.transformScale:bA.left=w.dragging.left+qA.deltaX/w.transformScale,bA.top=w.dragging.top+qA.deltaY/w.transformScale,w.bounded){const SA=WA.offsetParent.clientHeight-mA(i.h,w.rowHeight,w.margin[1]);bA.top=gA(bA.top,0,SA);const xA=dA(),XA=w.containerWidth-mA(i.w,xA,w.margin[0]);bA.left=gA(bA.left,0,XA)}w.dragging=bA;break}case"dragend":{const qA=WA.offsetParent.getBoundingClientRect(),SA=WA.getBoundingClientRect(),xA=SA.left/w.transformScale,XA=qA.left/w.transformScale,he=SA.right/w.transformScale,Ie=qA.right/w.transformScale,_e=SA.top/w.transformScale,NA=qA.top/w.transformScale;AA.value?bA.left=(he-Ie)*-1:bA.left=xA-XA,bA.top=_e-NA,w.dragging={top:-1,left:-1},w.isDragging=!1;break}}let KA;AA.value,KA=oA(bA.top,bA.left),N=HA,T=JA,(k!==KA.x||_!==KA.y)&&g("move",i.i,KA.x,KA.y),nA.type==="dragend"&&(E!==k||F!==_)&&g("moved",i.i,KA.x,KA.y),o.emit("dragEvent",nA.type,i.i,KA.x,KA.y,p,B)}function aA(nA,pA,kA,HA){const JA=dA();let WA;return AA.value?WA={right:Math.round(JA*nA+(nA+1)*w.margin[0]),top:Math.round(w.rowHeight*pA+(pA+1)*w.margin[1]),width:kA===1/0?kA:Math.round(JA*kA+Math.max(0,kA-1)*w.margin[0]),height:HA===1/0?HA:Math.round(w.rowHeight*HA+Math.max(0,HA-1)*w.margin[1])}:WA={left:Math.round(JA*nA+(nA+1)*w.margin[0]),top:Math.round(w.rowHeight*pA+(pA+1)*w.margin[1]),width:kA===1/0?kA:Math.round(JA*kA+Math.max(0,kA-1)*w.margin[0]),height:HA===1/0?HA:Math.round(w.rowHeight*HA+Math.max(0,HA-1)*w.margin[1])},WA}function oA(nA,pA){const kA=dA();let HA=Math.round((pA-w.margin[0])/(kA+w.margin[0])),JA=Math.round((nA-w.margin[1])/(w.rowHeight+w.margin[1]));return HA=Math.max(Math.min(HA,w.cols-B),0),JA=Math.max(Math.min(JA,w.maxRows-p),0),{x:HA,y:JA}}function dA(){return(w.containerWidth-w.margin[0]*(w.cols+1))/w.cols}function mA(nA,pA,kA){return Number.isFinite(nA)?Math.round(pA*nA+Math.max(0,nA-1)*kA):nA}function gA(nA,pA,kA){return Math.max(Math.min(nA,kA),pA)}function wA(nA,pA,kA=!1){const HA=dA();let JA=Math.round((pA+w.margin[0])/(HA+w.margin[0])),WA=0;return kA?WA=Math.ceil((nA+w.margin[1])/(w.rowHeight+w.margin[1])):WA=Math.round((nA+w.margin[1])/(w.rowHeight+w.margin[1])),JA=Math.max(Math.min(JA,w.cols-k),0),WA=Math.max(Math.min(WA,w.maxRows-_),0),{w:JA,h:WA}}function X(nA,pA){w.containerWidth=nA}function lA(){D()}function cA(){!y.value&&u.value&&(y.value=vs(u.value),w.useStyleCursor||y.value.styleCursor(!1))}const hA=ys(q);function U(){if(cA(),!!y.value)if(w.draggable&&!i.static){const nA={ignoreFrom:i.dragIgnoreFrom,allowFrom:i.dragAllowFrom,...i.dragOption};y.value.draggable(nA),I||(I=!0,y.value.on("dragstart dragmove dragend",pA=>{pA.type==="dragmove"?hA(pA):q(pA)}))}else y.value.draggable({enabled:!1})}const W=ys(G);function tA(){if(cA(),!!y.value)if(w.resizable&&!i.static){const nA=aA(0,0,i.maxW,i.maxH),pA=aA(0,0,i.minW,i.minH),kA={edges:{left:AA.value?`.${J.value[0]}`:!1,right:AA.value?!1:`.${J.value[0]}`,bottom:`.${J.value[0]}`,top:!1},ignoreFrom:i.resizeIgnoreFrom,restrictSize:{min:{height:pA.height*w.transformScale,width:pA.width*w.transformScale},max:{height:nA.height*w.transformScale,width:nA.width*w.transformScale}},...i.resizeOption};i.preserveAspectRatio&&(kA.modifiers=[vs.modifiers.aspectRatio({ratio:"preserve"})]),y.value.resizable(kA),S||(S=!0,y.value.on("resizestart resizemove resizeend",HA=>{HA.type==="resizemove"?W(HA):G(HA)}))}else y.value.resizable({enabled:!1})}return(nA,pA)=>(A.openBlock(),A.createElementBlock("section",{ref_key:"wrapper",ref:u,class:A.normalizeClass($.value),style:A.normalizeStyle(w.style)},[A.renderSlot(nA.$slots,"default"),z.value?(A.openBlock(),A.createElementBlock("span",{key:0,class:A.normalizeClass(J.value)},null,2)):A.createCommentVNode("",!0)],6))}}),so=typeof window<"u";var eC;so&&(eC=window==null?void 0:window.navigator)!=null&&eC.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function tC(n){return n!=null}function gg(){}const ek=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(ek)));const tk=so&&("ontouchstart"in window||ik()>0),nk=tk?"pointerdown":"click";function ik(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function ok(n,e,t=window.Event){const{type:i,bubbles:g=!1,cancelable:m=!1,...o}=e;if(!tC(i)||i==="")return!1;let y;return tC(t)?y=new t(i,{bubbles:g,cancelable:m}):(y=document.createEvent("HTMLEvents"),y.initEvent(i,g,m)),Object.assign(y,o),n.dispatchEvent(y)}const rk="clickoutside",ak=new Set;so&&document.addEventListener(nk,n=>{const e=n.target,t=n.composedPath&&n.composedPath();ak.forEach(i=>{i!==e&&(t?!t.includes(i):!i.contains(e))&&(!i.__transferElement||i.__transferElement!==e&&!i.__transferElement.contains(e))&&ok(i,{type:rk})})},!0);const sk=[["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 $r;if(so){for(const n of sk)if(n[1]in document){$r=n;break}}const lk=!!$r;A.computed(()=>!1);const ck=new Set,gk=new WeakMap;if(so&&$r){const n=$r[2],e=$r[4];document.addEventListener(e,()=>{if(ck.forEach(t=>{t.value=!1}),document[n]){const t=gk.get(document[n]);t&&(t.value=!0)}},!1)}const nC=new Map;nC.set("x",0),nC.set("y",0);var lo=[],dk=function(){return lo.some(function(n){return n.activeTargets.length>0})},uk=function(){return lo.some(function(n){return n.skippedTargets.length>0})},iC="ResizeObserver loop completed with undelivered notifications.",hk=function(){var n;typeof ErrorEvent=="function"?n=new ErrorEvent("error",{message:iC}):(n=document.createEvent("Event"),n.initEvent("error",!1,!1),n.message=iC),window.dispatchEvent(n)},zr;(function(n){n.BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(zr||(zr={}));var co=function(n){return Object.freeze(n)},pk=function(){function n(e,t){this.inlineSize=e,this.blockSize=t,co(this)}return n}(),oC=function(){function n(e,t,i,g){return this.x=e,this.y=t,this.width=i,this.height=g,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,g=e.top,m=e.right,o=e.bottom,y=e.left,w=e.width,I=e.height;return{x:t,y:i,top:g,right:m,bottom:o,left:y,width:w,height:I}},n.fromRect=function(e){return new n(e.x,e.y,e.width,e.height)},n}(),dg=function(n){return n instanceof SVGElement&&"getBBox"in n},rC=function(n){if(dg(n)){var e=n.getBBox(),t=e.width,i=e.height;return!t&&!i}var g=n,m=g.offsetWidth,o=g.offsetHeight;return!(m||o||n.getClientRects().length)},aC=function(n){var e;if(n instanceof Element)return!0;var t=(e=n==null?void 0:n.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(t&&n instanceof t.Element)},Ck=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},Jr=typeof window<"u"?window:{},ks=new WeakMap,sC=/auto|scroll/,Bk=/^tb|vertical/,mk=/msie|trident/i.test(Jr.navigator&&Jr.navigator.userAgent),ni=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 pk((t?e:n)||0,(t?n:e)||0)},lC=co({devicePixelContentBoxSize:Zo(),borderBoxSize:Zo(),contentBoxSize:Zo(),contentRect:new oC(0,0,0,0)}),cC=function(n,e){if(e===void 0&&(e=!1),ks.has(n)&&!e)return ks.get(n);if(rC(n))return ks.set(n,lC),lC;var t=getComputedStyle(n),i=dg(n)&&n.ownerSVGElement&&n.getBBox(),g=!mk&&t.boxSizing==="border-box",m=Bk.test(t.writingMode||""),o=!i&&sC.test(t.overflowY||""),y=!i&&sC.test(t.overflowX||""),w=i?0:ni(t.paddingTop),I=i?0:ni(t.paddingRight),S=i?0:ni(t.paddingBottom),N=i?0:ni(t.paddingLeft),T=i?0:ni(t.borderTopWidth),O=i?0:ni(t.borderRightWidth),H=i?0:ni(t.borderBottomWidth),P=i?0:ni(t.borderLeftWidth),v=N+I,E=w+S,F=P+O,k=T+H,_=y?n.offsetHeight-k-n.clientHeight:0,B=o?n.offsetWidth-F-n.clientWidth:0,p=g?v+F:0,u=g?E+k:0,l=i?i.width:ni(t.width)-p-B,d=i?i.height:ni(t.height)-u-_,s=l+v+B+F,h=d+E+_+k,C=co({devicePixelContentBoxSize:Zo(Math.round(l*devicePixelRatio),Math.round(d*devicePixelRatio),m),borderBoxSize:Zo(s,h,m),contentBoxSize:Zo(l,d,m),contentRect:new oC(N,w,l,d)});return ks.set(n,C),C},gC=function(n,e,t){var i=cC(n,t),g=i.borderBoxSize,m=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case zr.DEVICE_PIXEL_CONTENT_BOX:return o;case zr.BORDER_BOX:return g;default:return m}},Ek=function(){function n(e){var t=cC(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}(),dC=function(n){if(rC(n))return 1/0;for(var e=0,t=n.parentNode;t;)e+=1,t=t.parentNode;return e},Qk=function(){var n=1/0,e=[];lo.forEach(function(m){if(m.activeTargets.length!==0){var o=[];m.activeTargets.forEach(function(y){var w=new Ek(y.target),I=dC(y.target);o.push(w),y.lastReportedSize=gC(y.target,y.observedBox),I<n&&(n=I)}),e.push(function(){m.callback.call(m.observer,o,m.observer)}),m.activeTargets.splice(0,m.activeTargets.length)}});for(var t=0,i=e;t<i.length;t++){var g=i[t];g()}return n},uC=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()&&(dC(t.target)>n?e.activeTargets.push(t):e.skippedTargets.push(t))})})},fk=function(){var n=0;for(uC(n);dk();)n=Qk(),uC(n);return uk()&&hk(),n>0},ug,hC=[],Ik=function(){return hC.splice(0).forEach(function(n){return n()})},wk=function(n){if(!ug){var e=0,t=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return Ik()}).observe(t,i),ug=function(){t.textContent="".concat(e?e--:e++)}}hC.push(n),ug()},bk=function(n){wk(function(){requestAnimationFrame(n)})},_s=0,yk=function(){return!!_s},Dk=250,vk={attributes:!0,characterData:!0,childList:!0,subtree:!0},pC=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],CC=function(n){return n===void 0&&(n=0),Date.now()+n},hg=!1,kk=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=Dk),!hg){hg=!0;var i=CC(e);bk(function(){var g=!1;try{g=fk()}finally{if(hg=!1,e=i-CC(),!yk())return;g?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,vk)};document.body?t():Jr.addEventListener("DOMContentLoaded",t)},n.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),pC.forEach(function(t){return Jr.addEventListener(t,e.listener,!0)}))},n.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),pC.forEach(function(t){return Jr.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},n}(),pg=new kk,BC=function(n){!_s&&n>0&&pg.start(),_s+=n,!_s&&pg.stop()},_k=function(n){return!dg(n)&&!Ck(n)&&getComputedStyle(n).display==="inline"},Mk=function(){function n(e,t){this.target=e,this.observedBox=t||zr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var e=gC(this.target,this.observedBox,!0);return _k(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},n}(),xk=function(){function n(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return n}(),Ms=new WeakMap,mC=function(n,e){for(var t=0;t<n.length;t+=1)if(n[t].target===e)return t;return-1},xs=function(){function n(){}return n.connect=function(e,t){var i=new xk(e,t);Ms.set(e,i)},n.observe=function(e,t,i){var g=Ms.get(e),m=g.observationTargets.length===0;mC(g.observationTargets,t)<0&&(m&&lo.push(g),g.observationTargets.push(new Mk(t,i&&i.box)),BC(1),pg.schedule())},n.unobserve=function(e,t){var i=Ms.get(e),g=mC(i.observationTargets,t),m=i.observationTargets.length===1;g>=0&&(m&&lo.splice(lo.indexOf(i),1),i.observationTargets.splice(g,1),BC(-1))},n.disconnect=function(e){var t=this,i=Ms.get(e);i.observationTargets.slice().forEach(function(g){return t.unobserve(e,g.target)}),i.activeTargets.splice(0,i.activeTargets.length)},n}(),Sk=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.");xs.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");xs.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");xs.unobserve(this,e)},n.prototype.disconnect=function(){xs.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}();const Nk=new WeakMap;function Fk(n){var e;for(let t=0,i=n.length;t<i;++t){const g=n[t],m=Nk.get(g.target);if(typeof m=="function"){const{inlineSize:o,blockSize:y}=(e=g.borderBoxSize)==null?void 0:e[0],{offsetWidth:w,offsetHeight:I}=g.target;m(Object.assign(g,{offsetWidth:w,offsetHeight:I,width:o??w,height:y??I}))}}}new(so&&window.ResizeObserver||Sk)(Fk);const Rk=A.ref(!1);A.computed(()=>Rk.value);const EC="__theme_style__",Cg="__theme_observer__",QC=A.reactive(new Map),fC=new Map;A.watch(QC,()=>{if(!so)return;fC.clear();const n=document.head.querySelector(`#${EC}`);n&&document.head.removeChild(n);const e=document.createElement("style");let t=`.${Cg} { width: 1px }`,i=1;for(const[g,[m,o]]of QC.entries())t+=` html.${m} .${Cg}, .${o} .${Cg} { width: ${++i}px }`,fC.set(i,g);e.textContent=t,e.id=EC,document.head.appendChild(e)}),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 at=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=Vn(),g=Qt(),m=A.ref({});function o(N,T){N&&(m.value[T]=N)}let y=[];const w=()=>{if(!t.value)return;const N=new Map;for(const T of t.value)N.has(T.x)||N.set(T.x,[]),N.get(T.x).push(T);for(const T of N.values()){T.sort((H,P)=>H.y-P.y);let O=0;for(const H of T)H.y=O,O+=H.h}t.value=[...t.value]},I=e,S=()=>{I("gridItemMoved")};return A.onMounted(()=>{Object.keys(m.value).forEach(N=>{const T=m.value[N];if(!T)return;const O=new ResizeObserver(H=>{for(let P of H){const v=P.contentRect.height+28;if(t.value){const E=t.value[0].rowHeight||30,F=t.value.find(k=>k.i===N);F&&(F.contentHeight=Math.ceil((v+8)/(E+8)),F.h>0&&(F.h=Math.ceil((v+8)/(E+8))))}}w()});O.observe(T),y.push(O)})}),A.onBeforeUnmount(()=>{y.forEach(N=>N.disconnect()),y=[]}),(N,T)=>A.unref(g).design?(A.openBlock(),A.createBlock(cg,{key:0,list:N.list,"empty-text":A.unref(i).canvas.emptyTip,"empty-size":18},null,8,["list","empty-text"])):t.value?(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:1},A.renderList(t.value,(O,H)=>(A.openBlock(),A.createBlock(A.unref(Ak),{onMoved:S,key:O.i,x:O.x,y:O.y,w:O.w,h:O.h,i:O.i,class:A.normalizeClass(O.h===0?"noPadding":"defaultPadding")},{default:A.withCtx(()=>[A.createElementVNode("div",{ref_for:!0,ref:P=>o(P,O.i)},[A.createVNode(ao,A.mergeProps({ref_for:!0},N.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(N.list,O=>(A.openBlock(),A.createBlock(ao,A.mergeProps({key:O.name,ref_for:!0},O),null,16))),128))}}),Lk={key:0,class:"btn-render-wrapper"},ii=oe(A.defineComponent({__name:"ButtonRender",props:{btns:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref({}),g=async o=>{if(o.onClick&&e){try{(o.text||o.label)&&(i.value[o.key]=!0),await e[o.onClick](t,o)}catch(y){console.error(y+`
100
+ onClick: ${v}`)}};return A.onBeforeMount(()=>{if(o.value===void 0&&e.initialValue!==void 0&&!t.design){const v=So(t.initialValues,e.name,e.initialValue);t.updateInitialValues(v),o.value=e.initialValue}}),A.watch(o,(v,E)=>{const F=e.change,k=ht.isEqual(v,E);if(!F||k)return;let _=ht.cloneDeep(t.formValues);F.forEach(({target:B,value:p,condition:u})=>{if(u!==!1){if(B.includes(".*.")){const l=B.split(".*."),d=l.pop(),s=l.join("."),h=va(t.formValues,s);ht.isArray(h)&&(_=So(_,s,h.map(C=>({...C,[d]:p}))));return}_=So(_,B,p)}}),t.updateFormValues(_)},{immediate:!0}),(v,E)=>{var p;const F=A.resolveComponent("el-tooltip"),k=A.resolveComponent("el-dialog"),_=A.resolveComponent("el-button"),B=A.resolveComponent("el-form-item");return A.unref(t).design||!v.hidden?(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},I.value,{style:{minWidth:0},gridlayout:N.value,"onUpdate:gridlayout":E[0]||(E[0]=u=>N.value=u)}),null,16,["gridlayout"])):w.value.type==="layout"?(A.openBlock(),A.createBlock(A.resolveDynamicComponent(w.value.render),A.mergeProps({key:1},I.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},I.value)),null,16)):(A.openBlock(),A.createBlock(B,{class:A.normalizeClass([A.unref(je)("form-item"),e.class,`${v.component}-${v.name}`,{readMode:((p=e.props)==null?void 0:p.read)||A.unref(t).schema.read,hideLabel:v.hideLabel,wFullLabel:v.wFullLabel}]),style:A.normalizeStyle(v.style),key:v.name,prop:v.name,"label-width":v.hideLabel?"0":A.unref(t).schema.labelWidth,rules:y.value},{label:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",{class:A.normalizeClass([A.unref(je)("form-item-label"),v.label&&`${v.name}-label`])},[A.createElementVNode("div",{style:A.normalizeStyle(A.unref(t).schema.labelBold&&"font-weight: bold")},A.toDisplayString(T(v.label)),5),v.labelSuffixText?(A.openBlock(),A.createElementBlock("div",{key:0,style:A.normalizeStyle([v.labelSuffixStyle,{"margin-left":"4px"}])},A.toDisplayString(v.labelSuffixText),5)):A.createCommentVNode("",!0),v.help?(A.openBlock(),A.createElementBlock("div",{key:1,class:A.normalizeClass(A.unref(je)("form-item-label-ico"))},[A.createVNode(F,{effect:"dark",content:v.help,placement:"right"},{default:A.withCtx(()=>[A.createVNode(De,{name:"icon-a-lujing11",color:"#999999",style:{width:"14px",height:"14px"}})]),_:1},8,["content"])],2)):A.createCommentVNode("",!0),v.labelSuffix?(A.openBlock(),A.createElementBlock("div",{key:2,class:A.normalizeClass(A.unref(je)("form-item-label-suffix"))},[v.labelSuffix.component==="Popover"?(A.openBlock(),A.createBlock(Jp,A.normalizeProps(A.mergeProps({key:0},A.unref(Mt)(v.labelSuffix.props,A.unref(t).context))),null,16)):v.labelSuffix.component==="Icon"?(A.openBlock(),A.createBlock(F,{key:1,effect:"dark",content:v.labelSuffix.props.tooltip,placement:"right",disabled:!v.labelSuffix.props.tooltip},{default:A.withCtx(()=>[A.createVNode(De,{name:v.labelSuffix.props.name,color:v.labelSuffix.props.color,onClick:E[1]||(E[1]=u=>P(v.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,!v.hideLabel]])]),default:A.withCtx(()=>[v.dialog?(A.openBlock(),A.createElementBlock(A.Fragment,{key:0},[A.createVNode(k,{modelValue:g.visible,"onUpdate:modelValue":E[3]||(E[3]=u=>g.visible=u),title:g.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},I.value,{disabled:A.unref(t).schema.disabled,[w.value.modelName]:o.value,["onUpdate:"+w.value.modelName]:E[2]||(E[2]=u=>o.value=u)}),null,16,["size","disabled"]))]),_:1},8,["modelValue","title"]),A.createVNode(_,{type:"primary",plain:"",onClick:m},{default:A.withCtx(()=>E[5]||(E[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(Mt)(I.value,A.unref(t).context),{[w.value.modelName]:o.value,["onUpdate:"+w.value.modelName]:E[4]||(E[4]=u=>o.value=u)}),null,16,["size","disabled"]))]),_:1},8,["class","style","prop","label-width","rules"]))],64)):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-559210a6"]]),_1={key:0,class:"actions-lt"},M1={class:"canvas-move",size:"small",type:"primary"},x1={key:1,class:"hidden-ico"},S1={key:2,class:"actions-rb"},N1=["onClick"],F1={key:3,class:"layout-title"},R1=A.defineComponent({__name:"CanvasItem",props:{data:{}},setup(n){const e=n,t=Nn(),g=jo()[e.data.component],m=A.computed(()=>{var T;return{[je("canvas-item")]:!0,active:e.data.designKey===((T=t.current)==null?void 0:T.designKey),hover:e.data.designKey===t.hoverKey,mask:e.data.designKey===t.hoverKey&&!e.data.children,collapse:I.value}}),o=()=>{e.data.designKey&&t.updateHoverKey(e.data.designKey)},y=()=>{t.updateHoverKey("")},w=T=>{t.updateCurrent(T),t.rightTab="attr"},I=A.ref(!1),S=()=>{I.value=!I.value},N=[{icon:"copy",handle:T=>{const O=th(t.list,T.designKey);t.updateList(O)}},{icon:"delete",bg:"var(--el-color-danger)",handle:T=>{const O=Ud(t.list,H=>H.designKey!==T.designKey);t.updateList(O)}}];return(T,O)=>{var H,P;return A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(m.value),onClick:O[0]||(O[0]=A.withModifiers(v=>w(T.data),["stop"])),onMousemove:A.withModifiers(o,["stop"]),onMouseleave:A.withModifiers(y,["stop"])},[T.data.designKey===((H=A.unref(t).current)==null?void 0:H.designKey)?(A.openBlock(),A.createElementBlock("div",_1,[A.createElementVNode("div",M1,[A.createVNode(A.unref(fe),{name:"move"})]),A.createElementVNode("div",{class:"canvas-collapse",size:"small",type:"primary",onClick:S},[A.createVNode(A.unref(fe),{name:"select"})])])):A.createCommentVNode("",!0),T.data.hidden?(A.openBlock(),A.createElementBlock("div",x1,[A.createVNode(A.unref(fe),{name:"hidden"})])):A.createCommentVNode("",!0),T.data.designKey===((P=A.unref(t).current)==null?void 0:P.designKey)?(A.openBlock(),A.createElementBlock("ul",S1,[(A.openBlock(),A.createElementBlock(A.Fragment,null,A.renderList(N,({icon:v,handle:E,bg:F})=>A.createElementVNode("li",{class:"actions-rb-item",onClick:A.withModifiers(k=>E(T.data),["stop"]),key:v,style:A.normalizeStyle({backgroundColor:F})},[A.createVNode(A.unref(fe),{name:v},null,8,["name"])],12,N1)),64))])):A.createCommentVNode("",!0),A.unref(g).lbTitle?(A.openBlock(),A.createElementBlock("div",F1,A.toDisplayString(A.unref(g).title),1)):A.createCommentVNode("",!0),A.createVNode(ao,A.mergeProps(T.data,{props:T.data.props}),null,16,["props"])],34)}}}),cg=A.defineComponent({__name:"CanvasGroup",props:{list:{},style:{},class:{},emptyText:{default:"请拖入子字段"},emptySize:{default:12}},setup(n){const e=n,t=Nn(),i=g=>{const m=g.item._underlying_vm_;t.updateCurrent(Cc(t.list,m.designKey)),t.hoverKey=m.designKey,t.rightTab="attr",t.handleEmit("add",m)};return(g,m)=>(A.openBlock(),A.createElementBlock("div",{class:A.normalizeClass(A.unref(je)("canvas-group")),style:A.normalizeStyle({overflow:g.list.length?"auto":"hidden"})},[g.list.length?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(A.unref(je)("canvas-group-empty")),style:A.normalizeStyle({fontSize:g.emptySize+"px"})},[A.createElementVNode("div",{class:A.normalizeClass(A.unref(je)("canvas-group-empty-ico"))},[A.createVNode(A.unref(fe),{name:"add"})],2),A.createElementVNode("p",null,A.toDisplayString(g.emptyText),1)],6)),A.createVNode(A.unref(zp),{list:g.list,group:"formDesign",itemKey:"name","ghost-class":A.unref(je)("canvas-group-ghost"),class:A.normalizeClass([A.unref(je)("canvas-group-draggable"),e.class]),style:A.normalizeStyle(g.style),animation:300,handle:".canvas-move","force-fallback":"",onAdd:i},{item:A.withCtx(({element:o})=>[o.designKey?(A.openBlock(),A.createBlock(R1,{key:0,data:o},null,8,["data"])):A.createCommentVNode("",!0)]),_:1},8,["list","ghost-class","class","style"])],6))}}),L1=typeof window<"u";var Zp;L1&&((Zp=window==null?void 0:window.navigator)!=null&&Zp.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function vt(n){return n==null}function Wp(){}const G1=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(G1)));function P1(){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(g=>{g(...t)})}}}function ys(n,e=16){if(typeof n!="function")return Wp;const t=(...m)=>{n(...m)};if(e<=0)return jp(t);let i=0,g;return function(...m){const o=Date.now(),y=o-i;clearTimeout(g),y>=e?(i=o,t(...m)):g=setTimeout(()=>{i=Date.now(),t(...m)},Math.max(0,e-y))}}function H1(n,e=100){if(typeof n!="function")return Wp;const t=(...g)=>{n(...g)};if(e<=0)return jp(t);let i;return function(...g){clearTimeout(i),i=setTimeout(()=>{t(...g)},e)}}function jp(n){if(typeof n!="function")return n;let e=!1,t,i;return function(...g){return t=g,e||(e=!0,i=Promise.resolve().then(()=>(e=!1,i=void 0,n(...t)))),i}}const Or=new Set,qp=new WeakMap;function K1(){Or.forEach(n=>{n(...qp.get(n))}),Or.clear()}function rt(n,...e){if(typeof n!="function")return n;qp.set(n,e),!Or.has(n)&&(Or.add(n),Or.size===1&&Promise.resolve().then(K1))}const T1=Symbol("LAYOUT_KEY"),U1=Symbol("EMITTER_KEY");function Y1(n,e,t,i){const g="translate3d("+e+"px,"+n+"px, 0)";return{transform:g,WebkitTransform:g,MozTransform:g,msTransform:g,OTransform:g,width:t+"px",height:i+"px",position:"absolute"}}function O1(n,e,t,i){const g="translate3d("+e*-1+"px,"+n+"px, 0)";return{transform:g,WebkitTransform:g,MozTransform:g,msTransform:g,OTransform:g,width:t+"px",height:i+"px",position:"absolute"}}function $1(n,e,t,i){return{top:n+"px",left:e+"px",width:t+"px",height:i+"px",position:"absolute"}}function z1(n,e,t,i){return{top:n+"px",right:e+"px",width:t+"px",height:i+"px",position:"absolute"}}function J1(n,e="vgl"){const t=()=>`${e}-${n}`;return{b:t,be:i=>`${t()}__${i}`,bm:i=>`${t()}--${i}`,bem:(i,g)=>`${t()}__${i}--${g}`}}function Xp(n){return Z1(n)}function Z1(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(),g=n.clientX+t.scrollLeft-i.left,m=n.clientY+t.scrollTop-i.top;return{x:g,y:m}}function Vp(n,e,t,i){return W1(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 W1(n){return typeof n=="number"&&!Number.isNaN(n)}function j1(n,e){if(!e[n])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+n+" is missing!");return e[n]}let q1="auto";function X1(){return typeof document<"u"}function AC(){return X1()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):q1}var Ds={exports:{}};Ds.exports,function(n,e){(function(t,i){n.exports=i()})(xo,function(){function t(L,R){var Z=Object.keys(L);if(Object.getOwnPropertySymbols){var iA=Object.getOwnPropertySymbols(L);R&&(iA=iA.filter(function(sA){return Object.getOwnPropertyDescriptor(L,sA).enumerable})),Z.push.apply(Z,iA)}return Z}function i(L){for(var R=1;R<arguments.length;R++){var Z=arguments[R]!=null?arguments[R]:{};R%2?t(Object(Z),!0).forEach(function(iA){w(L,iA,Z[iA])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(Z)):t(Object(Z)).forEach(function(iA){Object.defineProperty(L,iA,Object.getOwnPropertyDescriptor(Z,iA))})}return L}function g(L){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},g(L)}function m(L,R){if(!(L instanceof R))throw new TypeError("Cannot call a class as a function")}function o(L,R){for(var Z=0;Z<R.length;Z++){var iA=R[Z];iA.enumerable=iA.enumerable||!1,iA.configurable=!0,"value"in iA&&(iA.writable=!0),Object.defineProperty(L,P(iA.key),iA)}}function y(L,R,Z){return R&&o(L.prototype,R),Object.defineProperty(L,"prototype",{writable:!1}),L}function w(L,R,Z){return(R=P(R))in L?Object.defineProperty(L,R,{value:Z,enumerable:!0,configurable:!0,writable:!0}):L[R]=Z,L}function I(L,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(R&&R.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),R&&N(L,R)}function S(L){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)},S(L)}function N(L,R){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,iA){return Z.__proto__=iA,Z},N(L,R)}function T(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function O(L){var R=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,iA=S(L);if(R){var sA=S(this).constructor;Z=Reflect.construct(iA,arguments,sA)}else Z=iA.apply(this,arguments);return function(uA,BA){if(BA&&(typeof BA=="object"||typeof BA=="function"))return BA;if(BA!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(uA)}(this,Z)}}function H(){return H=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(L,R,Z){var iA=function(uA,BA){for(;!Object.prototype.hasOwnProperty.call(uA,BA)&&(uA=S(uA))!==null;);return uA}(L,R);if(iA){var sA=Object.getOwnPropertyDescriptor(iA,R);return sA.get?sA.get.call(arguments.length<3?L:Z):sA.value}},H.apply(this,arguments)}function P(L){var R=function(Z,iA){if(typeof Z!="object"||Z===null)return Z;var sA=Z[Symbol.toPrimitive];if(sA!==void 0){var uA=sA.call(Z,iA);if(typeof uA!="object")return uA;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}(L,"string");return typeof R=="symbol"?R:R+""}var v=function(L){return!(!L||!L.Window)&&L instanceof L.Window},E=void 0,F=void 0;function k(L){E=L;var R=L.document.createTextNode("");R.ownerDocument!==L.document&&typeof L.wrap=="function"&&L.wrap(R)===R&&(L=L.wrap(L)),F=L}function _(L){return v(L)?L:(L.ownerDocument||L).defaultView||F.window}typeof window<"u"&&window&&k(window);var B=function(L){return!!L&&g(L)==="object"},p=function(L){return typeof L=="function"},u={window:function(L){return L===F||v(L)},docFrag:function(L){return B(L)&&L.nodeType===11},object:B,func:p,number:function(L){return typeof L=="number"},bool:function(L){return typeof L=="boolean"},string:function(L){return typeof L=="string"},element:function(L){if(!L||g(L)!=="object")return!1;var R=_(L)||F;return/object|function/.test(typeof Element>"u"?"undefined":g(Element))?L instanceof Element||L instanceof R.Element:L.nodeType===1&&typeof L.nodeName=="string"},plainObject:function(L){return B(L)&&!!L.constructor&&/function Object\b/.test(L.constructor.toString())},array:function(L){return B(L)&&L.length!==void 0&&p(L.splice)}};function l(L){var R=L.interaction;if(R.prepared.name==="drag"){var Z=R.prepared.axis;Z==="x"?(R.coords.cur.page.y=R.coords.start.page.y,R.coords.cur.client.y=R.coords.start.client.y,R.coords.velocity.client.y=0,R.coords.velocity.page.y=0):Z==="y"&&(R.coords.cur.page.x=R.coords.start.page.x,R.coords.cur.client.x=R.coords.start.client.x,R.coords.velocity.client.x=0,R.coords.velocity.page.x=0)}}function d(L){var R=L.iEvent,Z=L.interaction;if(Z.prepared.name==="drag"){var iA=Z.prepared.axis;if(iA==="x"||iA==="y"){var sA=iA==="x"?"y":"x";R.page[sA]=Z.coords.start.page[sA],R.client[sA]=Z.coords.start.client[sA],R.delta[sA]=0}}}var s={id:"actions/drag",install:function(L){var R=L.actions,Z=L.Interactable,iA=L.defaults;Z.prototype.draggable=s.draggable,R.map.drag=s,R.methodDict.drag="draggable",iA.actions.drag=s.defaults},listeners:{"interactions:before-action-move":l,"interactions:action-resume":l,"interactions:action-move":d,"auto-start:check":function(L){var R=L.interaction,Z=L.interactable,iA=L.buttons,sA=Z.options.drag;if(sA&&sA.enabled&&(!R.pointerIsDown||!/mouse|pointer/.test(R.pointerType)||iA&Z.options.drag.mouseButtons))return L.action={name:"drag",axis:sA.lockAxis==="start"?sA.startAxis:sA.lockAxis},!1}},draggable:function(L){return u.object(L)?(this.options.drag.enabled=L.enabled!==!1,this.setPerAction("drag",L),this.setOnEvents("drag",L),/^(xy|x|y|start)$/.test(L.lockAxis)&&(this.options.drag.lockAxis=L.lockAxis),/^(xy|x|y)$/.test(L.startAxis)&&(this.options.drag.startAxis=L.startAxis),this):u.bool(L)?(this.options.drag.enabled=L,this):this.options.drag},beforeMove:l,move:d,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(L){return L.search("drag")===0}},h=s,C={init:function(L){var R=L;C.document=R.document,C.DocumentFragment=R.DocumentFragment||a,C.SVGElement=R.SVGElement||a,C.SVGSVGElement=R.SVGSVGElement||a,C.SVGElementInstance=R.SVGElementInstance||a,C.Element=R.Element||a,C.HTMLElement=R.HTMLElement||C.Element,C.Event=R.Event,C.Touch=R.Touch||a,C.PointerEvent=R.PointerEvent||R.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function a(){}var r=C,Q={init:function(L){var R=r.Element,Z=L.navigator||{};Q.supportsTouch="ontouchstart"in L||u.func(L.DocumentTouch)&&r.document instanceof L.DocumentTouch,Q.supportsPointerEvent=Z.pointerEnabled!==!1&&!!r.PointerEvent,Q.isIOS=/iP(hone|od|ad)/.test(Z.platform),Q.isIOS7=/iP(hone|od|ad)/.test(Z.platform)&&/OS 7[^\d]/.test(Z.appVersion),Q.isIe9=/MSIE 9/.test(Z.userAgent),Q.isOperaMobile=Z.appName==="Opera"&&Q.supportsTouch&&/Presto/.test(Z.userAgent),Q.prefixedMatchesSelector="matches"in R.prototype?"matches":"webkitMatchesSelector"in R.prototype?"webkitMatchesSelector":"mozMatchesSelector"in R.prototype?"mozMatchesSelector":"oMatchesSelector"in R.prototype?"oMatchesSelector":"msMatchesSelector",Q.pEventTypes=Q.supportsPointerEvent?r.PointerEvent===L.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,Q.wheelEvent=r.document&&"onmousewheel"in r.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},f=Q;function M(L,R){if(L.contains)return L.contains(R);for(;R;){if(R===L)return!0;R=R.parentNode}return!1}function x(L,R){for(;u.element(L);){if(z(L,R))return L;L=K(L)}return null}function K(L){var R=L.parentNode;if(u.docFrag(R)){for(;(R=R.host)&&u.docFrag(R););return R}return R}function z(L,R){return F!==E&&(R=R.replace(/\/deep\//g," ")),L[f.prefixedMatchesSelector](R)}var AA=function(L){return L.parentNode||L.host};function eA(L,R){for(var Z,iA=[],sA=L;(Z=AA(sA))&&sA!==R&&Z!==sA.ownerDocument;)iA.unshift(sA),sA=Z;return iA}function V(L,R,Z){for(;u.element(L);){if(z(L,R))return!0;if((L=K(L))===Z)return z(L,R)}return!1}function $(L){return L.correspondingUseElement||L}function J(L){var R=L instanceof r.SVGElement?L.getBoundingClientRect():L.getClientRects()[0];return R&&{left:R.left,right:R.right,top:R.top,bottom:R.bottom,width:R.width||R.right-R.left,height:R.height||R.bottom-R.top}}function D(L){var R,Z=J(L);if(!f.isIOS7&&Z){var iA={x:(R=(R=_(L))||F).scrollX||R.document.documentElement.scrollLeft,y:R.scrollY||R.document.documentElement.scrollTop};Z.left+=iA.x,Z.right+=iA.x,Z.top+=iA.y,Z.bottom+=iA.y}return Z}function j(L){for(var R=[];L;)R.push(L),L=K(L);return R}function G(L){return!!u.string(L)&&(r.document.querySelector(L),!0)}function q(L,R){for(var Z in R)L[Z]=R[Z];return L}function aA(L,R,Z){return L==="parent"?K(Z):L==="self"?R.getRect(Z):x(Z,L)}function oA(L,R,Z,iA){var sA=L;return u.string(sA)?sA=aA(sA,R,Z):u.func(sA)&&(sA=sA.apply(void 0,iA)),u.element(sA)&&(sA=D(sA)),sA}function dA(L){return L&&{x:"x"in L?L.x:L.left,y:"y"in L?L.y:L.top}}function mA(L){return!L||"x"in L&&"y"in L||((L=q({},L)).x=L.left||0,L.y=L.top||0,L.width=L.width||(L.right||0)-L.x,L.height=L.height||(L.bottom||0)-L.y),L}function gA(L,R,Z){L.left&&(R.left+=Z.x),L.right&&(R.right+=Z.x),L.top&&(R.top+=Z.y),L.bottom&&(R.bottom+=Z.y),R.width=R.right-R.left,R.height=R.bottom-R.top}function wA(L,R,Z){var iA=Z&&L.options[Z];return dA(oA(iA&&iA.origin||L.options.origin,L,R,[L&&R]))||{x:0,y:0}}function X(L,R){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(DA){return!0},iA=arguments.length>3?arguments[3]:void 0;if(iA=iA||{},u.string(L)&&L.search(" ")!==-1&&(L=lA(L)),u.array(L))return L.forEach(function(DA){return X(DA,R,Z,iA)}),iA;if(u.object(L)&&(R=L,L=""),u.func(R)&&Z(L))iA[L]=iA[L]||[],iA[L].push(R);else if(u.array(R))for(var sA=0,uA=R;sA<uA.length;sA++){var BA=uA[sA];X(L,BA,Z,iA)}else if(u.object(R))for(var QA in R)X(lA(QA).map(function(DA){return"".concat(L).concat(DA)}),R[QA],Z,iA);return iA}function lA(L){return L.trim().split(/ +/)}var cA=function(L,R){return Math.sqrt(L*L+R*R)},hA=["webkit","moz"];function U(L,R){L.__set||(L.__set={});var Z=function(sA){if(hA.some(function(uA){return sA.indexOf(uA)===0}))return 1;typeof L[sA]!="function"&&sA!=="__set"&&Object.defineProperty(L,sA,{get:function(){return sA in L.__set?L.__set[sA]:L.__set[sA]=R[sA]},set:function(uA){L.__set[sA]=uA},configurable:!0})};for(var iA in R)Z(iA);return L}function W(L,R){L.page=L.page||{},L.page.x=R.page.x,L.page.y=R.page.y,L.client=L.client||{},L.client.x=R.client.x,L.client.y=R.client.y,L.timeStamp=R.timeStamp}function tA(L){L.page.x=0,L.page.y=0,L.client.x=0,L.client.y=0}function nA(L){return L instanceof r.Event||L instanceof r.Touch}function pA(L,R,Z){return L=L||"page",(Z=Z||{}).x=R[L+"X"],Z.y=R[L+"Y"],Z}function kA(L,R){return R=R||{x:0,y:0},f.isOperaMobile&&nA(L)?(pA("screen",L,R),R.x+=window.scrollX,R.y+=window.scrollY):pA("page",L,R),R}function HA(L){return u.number(L.pointerId)?L.pointerId:L.identifier}function JA(L,R,Z){var iA=R.length>1?bA(R):R[0];kA(iA,L.page),function(sA,uA){uA=uA||{},f.isOperaMobile&&nA(sA)?pA("screen",sA,uA):pA("client",sA,uA)}(iA,L.client),L.timeStamp=Z}function WA(L){var R=[];return u.array(L)?(R[0]=L[0],R[1]=L[1]):L.type==="touchend"?L.touches.length===1?(R[0]=L.touches[0],R[1]=L.changedTouches[0]):L.touches.length===0&&(R[0]=L.changedTouches[0],R[1]=L.changedTouches[1]):(R[0]=L.touches[0],R[1]=L.touches[1]),R}function bA(L){for(var R={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},Z=0;Z<L.length;Z++){var iA=L[Z];for(var sA in R)R[sA]+=iA[sA]}for(var uA in R)R[uA]/=L.length;return R}function KA(L){if(!L.length)return null;var R=WA(L),Z=Math.min(R[0].pageX,R[1].pageX),iA=Math.min(R[0].pageY,R[1].pageY),sA=Math.max(R[0].pageX,R[1].pageX),uA=Math.max(R[0].pageY,R[1].pageY);return{x:Z,y:iA,left:Z,top:iA,right:sA,bottom:uA,width:sA-Z,height:uA-iA}}function qA(L,R){var Z=R+"X",iA=R+"Y",sA=WA(L),uA=sA[0][Z]-sA[1][Z],BA=sA[0][iA]-sA[1][iA];return cA(uA,BA)}function SA(L,R){var Z=R+"X",iA=R+"Y",sA=WA(L),uA=sA[1][Z]-sA[0][Z],BA=sA[1][iA]-sA[0][iA];return 180*Math.atan2(BA,uA)/Math.PI}function xA(L){return u.string(L.pointerType)?L.pointerType:u.number(L.pointerType)?[void 0,void 0,"touch","pen","mouse"][L.pointerType]:/touch/.test(L.type||"")||L instanceof r.Touch?"touch":"mouse"}function XA(L){var R=u.func(L.composedPath)?L.composedPath():L.path;return[$(R?R[0]:L.target),$(L.currentTarget)]}var he=function(){function L(R){m(this,L),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=R}return y(L,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),L}();Object.defineProperty(he.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Ie=function(L,R){for(var Z=0;Z<R.length;Z++){var iA=R[Z];L.push(iA)}return L},_e=function(L){return Ie([],L)},NA=function(L,R){for(var Z=0;Z<L.length;Z++)if(R(L[Z],Z,L))return Z;return-1},OA=function(L,R){return L[NA(L,R)]},ZA=function(L){I(Z,L);var R=O(Z);function Z(iA,sA,uA){var BA;m(this,Z),(BA=R.call(this,sA._interaction)).dropzone=void 0,BA.dragEvent=void 0,BA.relatedTarget=void 0,BA.draggable=void 0,BA.propagationStopped=!1,BA.immediatePropagationStopped=!1;var QA=uA==="dragleave"?iA.prev:iA.cur,DA=QA.element,RA=QA.dropzone;return BA.type=uA,BA.target=DA,BA.currentTarget=DA,BA.dropzone=RA,BA.dragEvent=sA,BA.relatedTarget=sA.target,BA.draggable=sA.interactable,BA.timeStamp=sA.timeStamp,BA}return y(Z,[{key:"reject",value:function(){var iA=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,BA=NA(uA,function(DA){var RA=DA.dropzone,vA=DA.element;return RA===iA.dropzone&&vA===iA.target});sA.activeDrops.splice(BA,1);var QA=new Z(sA,this.dragEvent,"dropdeactivate");QA.dropzone=this.dropzone,QA.target=this.target,this.dropzone.fire(QA)}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}(he);function de(L,R){for(var Z=0,iA=L.slice();Z<iA.length;Z++){var sA=iA[Z],uA=sA.dropzone,BA=sA.element;R.dropzone=uA,R.target=BA,uA.fire(R),R.propagationStopped=R.immediatePropagationStopped=!1}}function ae(L,R){for(var Z=function(uA,BA){for(var QA=[],DA=0,RA=uA.interactables.list;DA<RA.length;DA++){var vA=RA[DA];if(vA.options.drop.enabled){var TA=vA.options.drop.accept;if(!(u.element(TA)&&TA!==BA||u.string(TA)&&!z(BA,TA)||u.func(TA)&&!TA({dropzone:vA,draggableElement:BA})))for(var Ae=0,ge=vA.getAllElements();Ae<ge.length;Ae++){var le=ge[Ae];le!==BA&&QA.push({dropzone:vA,element:le,rect:vA.getRect(le)})}}}return QA}(L,R),iA=0;iA<Z.length;iA++){var sA=Z[iA];sA.rect=sA.dropzone.getRect(sA.element)}return Z}function Ee(L,R,Z){for(var iA=L.dropState,sA=L.interactable,uA=L.element,BA=[],QA=0,DA=iA.activeDrops;QA<DA.length;QA++){var RA=DA[QA],vA=RA.dropzone,TA=RA.element,Ae=RA.rect,ge=vA.dropCheck(R,Z,sA,uA,TA,Ae);BA.push(ge?TA:null)}var le=function(pe){for(var ve,Qe,_A,zA=[],UA=0;UA<pe.length;UA++){var ee=pe[UA],Be=pe[ve];if(ee&&UA!==ve)if(Be){var He=AA(ee),Ke=AA(Be);if(He!==ee.ownerDocument)if(Ke!==ee.ownerDocument)if(He!==Ke){zA=zA.length?zA:eA(Be);var Oe=void 0;if(Be instanceof r.HTMLElement&&ee instanceof r.SVGElement&&!(ee instanceof r.SVGSVGElement)){if(ee===Ke)continue;Oe=ee.ownerSVGElement}else Oe=ee;for(var rn=eA(Oe,Be.ownerDocument),Zn=0;rn[Zn]&&rn[Zn]===zA[Zn];)Zn++;var Ot=[rn[Zn-1],rn[Zn],zA[Zn]];if(Ot[0])for(var ci=Ot[0].lastChild;ci;){if(ci===Ot[1]){ve=UA,zA=rn;break}if(ci===Ot[2])break;ci=ci.previousSibling}}else _A=Be,(parseInt(_(Qe=ee).getComputedStyle(Qe).zIndex,10)||0)>=(parseInt(_(_A).getComputedStyle(_A).zIndex,10)||0)&&(ve=UA);else ve=UA}else ve=UA}return ve}(BA);return iA.activeDrops[le]||null}function ke(L,R,Z){var iA=L.dropState,sA={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return Z.type==="dragstart"&&(sA.activate=new ZA(iA,Z,"dropactivate"),sA.activate.target=null,sA.activate.dropzone=null),Z.type==="dragend"&&(sA.deactivate=new ZA(iA,Z,"dropdeactivate"),sA.deactivate.target=null,sA.deactivate.dropzone=null),iA.rejected||(iA.cur.element!==iA.prev.element&&(iA.prev.dropzone&&(sA.leave=new ZA(iA,Z,"dragleave"),Z.dragLeave=sA.leave.target=iA.prev.element,Z.prevDropzone=sA.leave.dropzone=iA.prev.dropzone),iA.cur.dropzone&&(sA.enter=new ZA(iA,Z,"dragenter"),Z.dragEnter=iA.cur.element,Z.dropzone=iA.cur.dropzone)),Z.type==="dragend"&&iA.cur.dropzone&&(sA.drop=new ZA(iA,Z,"drop"),Z.dropzone=iA.cur.dropzone,Z.relatedTarget=iA.cur.element),Z.type==="dragmove"&&iA.cur.dropzone&&(sA.move=new ZA(iA,Z,"dropmove"),Z.dropzone=iA.cur.dropzone)),sA}function IA(L,R){var Z=L.dropState,iA=Z.activeDrops,sA=Z.cur,uA=Z.prev;R.leave&&uA.dropzone.fire(R.leave),R.enter&&sA.dropzone.fire(R.enter),R.move&&sA.dropzone.fire(R.move),R.drop&&sA.dropzone.fire(R.drop),R.deactivate&&de(iA,R.deactivate),Z.prev.dropzone=sA.dropzone,Z.prev.element=sA.element}function LA(L,R){var Z=L.interaction,iA=L.iEvent,sA=L.event;if(iA.type==="dragmove"||iA.type==="dragend"){var uA=Z.dropState;R.dynamicDrop&&(uA.activeDrops=ae(R,Z.element));var BA=iA,QA=Ee(Z,BA,sA);uA.rejected=uA.rejected&&!!QA&&QA.dropzone===uA.cur.dropzone&&QA.element===uA.cur.element,uA.cur.dropzone=QA&&QA.dropzone,uA.cur.element=QA&&QA.element,uA.events=ke(Z,0,BA)}}var YA={id:"actions/drop",install:function(L){var R=L.actions,Z=L.interactStatic,iA=L.Interactable,sA=L.defaults;L.usePlugin(h),iA.prototype.dropzone=function(uA){return function(BA,QA){if(u.object(QA)){if(BA.options.drop.enabled=QA.enabled!==!1,QA.listeners){var DA=X(QA.listeners),RA=Object.keys(DA).reduce(function(TA,Ae){return TA[/^(enter|leave)/.test(Ae)?"drag".concat(Ae):/^(activate|deactivate|move)/.test(Ae)?"drop".concat(Ae):Ae]=DA[Ae],TA},{}),vA=BA.options.drop.listeners;vA&&BA.off(vA),BA.on(RA),BA.options.drop.listeners=RA}return u.func(QA.ondrop)&&BA.on("drop",QA.ondrop),u.func(QA.ondropactivate)&&BA.on("dropactivate",QA.ondropactivate),u.func(QA.ondropdeactivate)&&BA.on("dropdeactivate",QA.ondropdeactivate),u.func(QA.ondragenter)&&BA.on("dragenter",QA.ondragenter),u.func(QA.ondragleave)&&BA.on("dragleave",QA.ondragleave),u.func(QA.ondropmove)&&BA.on("dropmove",QA.ondropmove),/^(pointer|center)$/.test(QA.overlap)?BA.options.drop.overlap=QA.overlap:u.number(QA.overlap)&&(BA.options.drop.overlap=Math.max(Math.min(1,QA.overlap),0)),"accept"in QA&&(BA.options.drop.accept=QA.accept),"checker"in QA&&(BA.options.drop.checker=QA.checker),BA}return u.bool(QA)?(BA.options.drop.enabled=QA,BA):BA.options.drop}(this,uA)},iA.prototype.dropCheck=function(uA,BA,QA,DA,RA,vA){return function(TA,Ae,ge,le,pe,ve,Qe){var _A=!1;if(!(Qe=Qe||TA.getRect(ve)))return!!TA.options.drop.checker&&TA.options.drop.checker(Ae,ge,_A,TA,ve,le,pe);var zA=TA.options.drop.overlap;if(zA==="pointer"){var UA=wA(le,pe,"drag"),ee=kA(Ae);ee.x+=UA.x,ee.y+=UA.y;var Be=ee.x>Qe.left&&ee.x<Qe.right,He=ee.y>Qe.top&&ee.y<Qe.bottom;_A=Be&&He}var Ke=le.getRect(pe);if(Ke&&zA==="center"){var Oe=Ke.left+Ke.width/2,rn=Ke.top+Ke.height/2;_A=Oe>=Qe.left&&Oe<=Qe.right&&rn>=Qe.top&&rn<=Qe.bottom}return Ke&&u.number(zA)&&(_A=Math.max(0,Math.min(Qe.right,Ke.right)-Math.max(Qe.left,Ke.left))*Math.max(0,Math.min(Qe.bottom,Ke.bottom)-Math.max(Qe.top,Ke.top))/(Ke.width*Ke.height)>=zA),TA.options.drop.checker&&(_A=TA.options.drop.checker(Ae,ge,_A,TA,ve,le,pe)),_A}(this,uA,BA,QA,DA,RA,vA)},Z.dynamicDrop=function(uA){return u.bool(uA)?(L.dynamicDrop=uA,Z):L.dynamicDrop},q(R.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),R.methodDict.drop="dropzone",L.dynamicDrop=!1,sA.actions.drop=YA.defaults},listeners:{"interactions:before-action-start":function(L){var R=L.interaction;R.prepared.name==="drag"&&(R.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(L,R){var Z=L.interaction,iA=(L.event,L.iEvent);if(Z.prepared.name==="drag"){var sA=Z.dropState;sA.activeDrops=[],sA.events={},sA.activeDrops=ae(R,Z.element),sA.events=ke(Z,0,iA),sA.events.activate&&(de(sA.activeDrops,sA.events.activate),R.fire("actions/drop:start",{interaction:Z,dragEvent:iA}))}},"interactions:action-move":LA,"interactions:after-action-move":function(L,R){var Z=L.interaction,iA=L.iEvent;if(Z.prepared.name==="drag"){var sA=Z.dropState;IA(Z,sA.events),R.fire("actions/drop:move",{interaction:Z,dragEvent:iA}),sA.events={}}},"interactions:action-end":function(L,R){if(L.interaction.prepared.name==="drag"){var Z=L.interaction,iA=L.iEvent;LA(L,R),IA(Z,Z.dropState.events),R.fire("actions/drop:end",{interaction:Z,dragEvent:iA})}},"interactions:stop":function(L){var R=L.interaction;if(R.prepared.name==="drag"){var Z=R.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:ae,getDrop:Ee,getDropEvents:ke,fireDropEvents:IA,filterEventType:function(L){return L.search("drag")===0||L.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},re=YA;function ye(L){var R=L.interaction,Z=L.iEvent,iA=L.phase;if(R.prepared.name==="gesture"){var sA=R.pointers.map(function(RA){return RA.pointer}),uA=iA==="start",BA=iA==="end",QA=R.interactable.options.deltaSource;if(Z.touches=[sA[0],sA[1]],uA)Z.distance=qA(sA,QA),Z.box=KA(sA),Z.scale=1,Z.ds=0,Z.angle=SA(sA,QA),Z.da=0,R.gesture.startDistance=Z.distance,R.gesture.startAngle=Z.angle;else if(BA||R.pointers.length<2){var DA=R.prevEvent;Z.distance=DA.distance,Z.box=DA.box,Z.scale=DA.scale,Z.ds=0,Z.angle=DA.angle,Z.da=0}else Z.distance=qA(sA,QA),Z.box=KA(sA),Z.scale=Z.distance/R.gesture.startDistance,Z.angle=SA(sA,QA),Z.ds=Z.scale-R.gesture.scale,Z.da=Z.angle-R.gesture.angle;R.gesture.distance=Z.distance,R.gesture.angle=Z.angle,u.number(Z.scale)&&Z.scale!==1/0&&!isNaN(Z.scale)&&(R.gesture.scale=Z.scale)}}var se={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(L){var R=L.actions,Z=L.Interactable,iA=L.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},R.map.gesture=se,R.methodDict.gesture="gesturable",iA.actions.gesture=se.defaults},listeners:{"interactions:action-start":ye,"interactions:action-move":ye,"interactions:action-end":ye,"interactions:new":function(L){L.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(L){if(!(L.interaction.pointers.length<2)){var R=L.interactable.options.gesture;if(R&&R.enabled)return L.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(L){return L.search("gesture")===0}},ue=se;function Se(L,R,Z,iA,sA,uA,BA){if(!R)return!1;if(R===!0){var QA=u.number(uA.width)?uA.width:uA.right-uA.left,DA=u.number(uA.height)?uA.height:uA.bottom-uA.top;if(BA=Math.min(BA,Math.abs((L==="left"||L==="right"?QA:DA)/2)),QA<0&&(L==="left"?L="right":L==="right"&&(L="left")),DA<0&&(L==="top"?L="bottom":L==="bottom"&&(L="top")),L==="left"){var RA=QA>=0?uA.left:uA.right;return Z.x<RA+BA}if(L==="top"){var vA=DA>=0?uA.top:uA.bottom;return Z.y<vA+BA}if(L==="right")return Z.x>(QA>=0?uA.right:uA.left)-BA;if(L==="bottom")return Z.y>(DA>=0?uA.bottom:uA.top)-BA}return!!u.element(iA)&&(u.element(R)?R===iA:V(iA,R,sA))}function tt(L){var R=L.iEvent,Z=L.interaction;if(Z.prepared.name==="resize"&&Z.resizeAxes){var iA=R;Z.interactable.options.resize.square?(Z.resizeAxes==="y"?iA.delta.x=iA.delta.y:iA.delta.y=iA.delta.x,iA.axes="xy"):(iA.axes=Z.resizeAxes,Z.resizeAxes==="x"?iA.delta.y=0:Z.resizeAxes==="y"&&(iA.delta.x=0))}}var gt,FA,yA={id:"actions/resize",before:["actions/drag"],install:function(L){var R=L.actions,Z=L.browser,iA=L.Interactable,sA=L.defaults;yA.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),yA.defaultMargin=Z.supportsTouch||Z.supportsPointerEvent?20:10,iA.prototype.resizable=function(uA){return function(BA,QA,DA){return u.object(QA)?(BA.options.resize.enabled=QA.enabled!==!1,BA.setPerAction("resize",QA),BA.setOnEvents("resize",QA),u.string(QA.axis)&&/^x$|^y$|^xy$/.test(QA.axis)?BA.options.resize.axis=QA.axis:QA.axis===null&&(BA.options.resize.axis=DA.defaults.actions.resize.axis),u.bool(QA.preserveAspectRatio)?BA.options.resize.preserveAspectRatio=QA.preserveAspectRatio:u.bool(QA.square)&&(BA.options.resize.square=QA.square),BA):u.bool(QA)?(BA.options.resize.enabled=QA,BA):BA.options.resize}(this,uA,L)},R.map.resize=yA,R.methodDict.resize="resizable",sA.actions.resize=yA.defaults},listeners:{"interactions:new":function(L){L.interaction.resizeAxes="xy"},"interactions:action-start":function(L){(function(R){var Z=R.iEvent,iA=R.interaction;if(iA.prepared.name==="resize"&&iA.prepared.edges){var sA=Z,uA=iA.rect;iA._rects={start:q({},uA),corrected:q({},uA),previous:q({},uA),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},sA.edges=iA.prepared.edges,sA.rect=iA._rects.corrected,sA.deltaRect=iA._rects.delta}})(L),tt(L)},"interactions:action-move":function(L){(function(R){var Z=R.iEvent,iA=R.interaction;if(iA.prepared.name==="resize"&&iA.prepared.edges){var sA=Z,uA=iA.interactable.options.resize.invert,BA=uA==="reposition"||uA==="negate",QA=iA.rect,DA=iA._rects,RA=DA.start,vA=DA.corrected,TA=DA.delta,Ae=DA.previous;if(q(Ae,vA),BA){if(q(vA,QA),uA==="reposition"){if(vA.top>vA.bottom){var ge=vA.top;vA.top=vA.bottom,vA.bottom=ge}if(vA.left>vA.right){var le=vA.left;vA.left=vA.right,vA.right=le}}}else vA.top=Math.min(QA.top,RA.bottom),vA.bottom=Math.max(QA.bottom,RA.top),vA.left=Math.min(QA.left,RA.right),vA.right=Math.max(QA.right,RA.left);for(var pe in vA.width=vA.right-vA.left,vA.height=vA.bottom-vA.top,vA)TA[pe]=vA[pe]-Ae[pe];sA.edges=iA.prepared.edges,sA.rect=vA,sA.deltaRect=TA}})(L),tt(L)},"interactions:action-end":function(L){var R=L.iEvent,Z=L.interaction;if(Z.prepared.name==="resize"&&Z.prepared.edges){var iA=R;iA.edges=Z.prepared.edges,iA.rect=Z._rects.corrected,iA.deltaRect=Z._rects.delta}},"auto-start:check":function(L){var R=L.interaction,Z=L.interactable,iA=L.element,sA=L.rect,uA=L.buttons;if(sA){var BA=q({},R.coords.cur.page),QA=Z.options.resize;if(QA&&QA.enabled&&(!R.pointerIsDown||!/mouse|pointer/.test(R.pointerType)||uA&QA.mouseButtons)){if(u.object(QA.edges)){var DA={left:!1,right:!1,top:!1,bottom:!1};for(var RA in DA)DA[RA]=Se(RA,QA.edges[RA],BA,R._latestPointer.eventTarget,iA,sA,QA.margin||yA.defaultMargin);DA.left=DA.left&&!DA.right,DA.top=DA.top&&!DA.bottom,(DA.left||DA.right||DA.top||DA.bottom)&&(L.action={name:"resize",edges:DA})}else{var vA=QA.axis!=="y"&&BA.x>sA.right-yA.defaultMargin,TA=QA.axis!=="x"&&BA.y>sA.bottom-yA.defaultMargin;(vA||TA)&&(L.action={name:"resize",axes:(vA?"x":"")+(TA?"y":"")})}return!L.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(L){var R=L.edges,Z=L.axis,iA=L.name,sA=yA.cursors,uA=null;if(Z)uA=sA[iA+Z];else if(R){for(var BA="",QA=0,DA=["top","bottom","left","right"];QA<DA.length;QA++){var RA=DA[QA];R[RA]&&(BA+=RA)}uA=sA[BA]}return uA},filterEventType:function(L){return L.search("resize")===0},defaultMargin:null},PA=yA,VA={id:"actions",install:function(L){L.usePlugin(ue),L.usePlugin(PA),L.usePlugin(h),L.usePlugin(re)}},jA=0,we={request:function(L){return gt(L)},cancel:function(L){return FA(L)},init:function(L){if(gt=L.requestAnimationFrame,FA=L.cancelAnimationFrame,!gt)for(var R=["ms","moz","webkit","o"],Z=0;Z<R.length;Z++){var iA=R[Z];gt=L["".concat(iA,"RequestAnimationFrame")],FA=L["".concat(iA,"CancelAnimationFrame")]||L["".concat(iA,"CancelRequestAnimationFrame")]}gt=gt&&gt.bind(L),FA=FA&&FA.bind(L),gt||(gt=function(sA){var uA=Date.now(),BA=Math.max(0,16-(uA-jA)),QA=L.setTimeout(function(){sA(uA+BA)},BA);return jA=uA+BA,QA},FA=function(sA){return clearTimeout(sA)})}},ie={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(L){ie.isScrolling=!0,we.cancel(ie.i),L.autoScroll=ie,ie.interaction=L,ie.prevTime=ie.now(),ie.i=we.request(ie.scroll)},stop:function(){ie.isScrolling=!1,ie.interaction&&(ie.interaction.autoScroll=null),we.cancel(ie.i)},scroll:function(){var L=ie.interaction,R=L.interactable,Z=L.element,iA=L.prepared.name,sA=R.options[iA].autoScroll,uA=xe(sA.container,R,Z),BA=ie.now(),QA=(BA-ie.prevTime)/1e3,DA=sA.speed*QA;if(DA>=1){var RA={x:ie.x*DA,y:ie.y*DA};if(RA.x||RA.y){var vA=qe(uA);u.window(uA)?uA.scrollBy(RA.x,RA.y):uA&&(uA.scrollLeft+=RA.x,uA.scrollTop+=RA.y);var TA=qe(uA),Ae={x:TA.x-vA.x,y:TA.y-vA.y};(Ae.x||Ae.y)&&R.fire({type:"autoscroll",target:Z,interactable:R,delta:Ae,interaction:L,container:uA})}ie.prevTime=BA}ie.isScrolling&&(we.cancel(ie.i),ie.i=we.request(ie.scroll))},check:function(L,R){var Z;return(Z=L.options[R].autoScroll)==null?void 0:Z.enabled},onInteractionMove:function(L){var R=L.interaction,Z=L.pointer;if(R.interacting()&&ie.check(R.interactable,R.prepared.name))if(R.simulation)ie.x=ie.y=0;else{var iA,sA,uA,BA,QA=R.interactable,DA=R.element,RA=R.prepared.name,vA=QA.options[RA].autoScroll,TA=xe(vA.container,QA,DA);if(u.window(TA))BA=Z.clientX<ie.margin,iA=Z.clientY<ie.margin,sA=Z.clientX>TA.innerWidth-ie.margin,uA=Z.clientY>TA.innerHeight-ie.margin;else{var Ae=J(TA);BA=Z.clientX<Ae.left+ie.margin,iA=Z.clientY<Ae.top+ie.margin,sA=Z.clientX>Ae.right-ie.margin,uA=Z.clientY>Ae.bottom-ie.margin}ie.x=sA?1:BA?-1:0,ie.y=uA?1:iA?-1:0,ie.isScrolling||(ie.margin=vA.margin,ie.speed=vA.speed,ie.start(R))}}};function xe(L,R,Z){return(u.string(L)?aA(L,R,Z):L)||_(Z)}function qe(L){return u.window(L)&&(L=window.document.body),{x:L.scrollLeft,y:L.scrollTop}}var Bt={id:"auto-scroll",install:function(L){var R=L.defaults,Z=L.actions;L.autoScroll=ie,ie.now=function(){return L.now()},Z.phaselessTypes.autoscroll=!0,R.perAction.autoScroll=ie.defaults},listeners:{"interactions:new":function(L){L.interaction.autoScroll=null},"interactions:destroy":function(L){L.interaction.autoScroll=null,ie.stop(),ie.interaction&&(ie.interaction=null)},"interactions:stop":ie.stop,"interactions:action-move":function(L){return ie.onInteractionMove(L)}}},ze=Bt;function At(L,R){var Z=!1;return function(){return Z||(F.console.warn(R),Z=!0),L.apply(this,arguments)}}function ut(L,R){return L.name=R.name,L.axis=R.axis,L.edges=R.edges,L}function Pe(L){return u.bool(L)?(this.options.styleCursor=L,this):L===null?(delete this.options.styleCursor,this):this.options.styleCursor}function ot(L){return u.func(L)?(this.options.actionChecker=L,this):L===null?(delete this.options.actionChecker,this):this.options.actionChecker}var It={id:"auto-start/interactableMethods",install:function(L){var R=L.Interactable;R.prototype.getAction=function(Z,iA,sA,uA){var BA=function(QA,DA,RA,vA,TA){var Ae=QA.getRect(vA),ge=DA.buttons||{0:1,1:4,3:8,4:16}[DA.button],le={action:null,interactable:QA,interaction:RA,element:vA,rect:Ae,buttons:ge};return TA.fire("auto-start:check",le),le.action}(this,iA,sA,uA,L);return this.options.actionChecker?this.options.actionChecker(Z,iA,BA,this,uA,sA):BA},R.prototype.ignoreFrom=At(function(Z){return this._backCompatOption("ignoreFrom",Z)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),R.prototype.allowFrom=At(function(Z){return this._backCompatOption("allowFrom",Z)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),R.prototype.actionChecker=ot,R.prototype.styleCursor=Pe}};function nt(L,R,Z,iA,sA){return R.testIgnoreAllow(R.options[L.name],Z,iA)&&R.options[L.name].enabled&&un(R,Z,L,sA)?L:null}function Rn(L,R,Z,iA,sA,uA,BA){for(var QA=0,DA=iA.length;QA<DA;QA++){var RA=iA[QA],vA=sA[QA],TA=RA.getAction(R,Z,L,vA);if(TA){var Ae=nt(TA,RA,vA,uA,BA);if(Ae)return{action:Ae,interactable:RA,element:vA}}}return{action:null,interactable:null,element:null}}function Vt(L,R,Z,iA,sA){var uA=[],BA=[],QA=iA;function DA(vA){uA.push(vA),BA.push(QA)}for(;u.element(QA);){uA=[],BA=[],sA.interactables.forEachMatch(QA,DA);var RA=Rn(L,R,Z,uA,BA,iA,sA);if(RA.action&&!RA.interactable.options[RA.action.name].manualStart)return RA;QA=K(QA)}return{action:null,interactable:null,element:null}}function An(L,R,Z){var iA=R.action,sA=R.interactable,uA=R.element;iA=iA||{name:null},L.interactable=sA,L.element=uA,ut(L.prepared,iA),L.rect=sA&&iA.name?sA.getRect(uA):null,en(L,Z),Z.fire("autoStart:prepared",{interaction:L})}function un(L,R,Z,iA){var sA=L.options,uA=sA[Z.name].max,BA=sA[Z.name].maxPerElement,QA=iA.autoStart.maxInteractions,DA=0,RA=0,vA=0;if(!(uA&&BA&&QA))return!1;for(var TA=0,Ae=iA.interactions.list;TA<Ae.length;TA++){var ge=Ae[TA],le=ge.prepared.name;if(ge.interacting()&&(++DA>=QA||ge.interactable===L&&((RA+=le===Z.name?1:0)>=uA||ge.element===R&&(vA++,le===Z.name&&vA>=BA))))return!1}return QA>0}function bn(L,R){return u.number(L)?(R.autoStart.maxInteractions=L,this):R.autoStart.maxInteractions}function Lt(L,R,Z){var iA=Z.autoStart.cursorElement;iA&&iA!==L&&(iA.style.cursor=""),L.ownerDocument.documentElement.style.cursor=R,L.style.cursor=R,Z.autoStart.cursorElement=R?L:null}function en(L,R){var Z=L.interactable,iA=L.element,sA=L.prepared;if(L.pointerType==="mouse"&&Z&&Z.options.styleCursor){var uA="";if(sA.name){var BA=Z.options[sA.name].cursorChecker;uA=u.func(BA)?BA(sA,Z,iA,L._interacting):R.actions.map[sA.name].getCursor(sA)}Lt(L.element,uA||"",R)}else R.autoStart.cursorElement&&Lt(R.autoStart.cursorElement,"",R)}var zn={id:"auto-start/base",before:["actions"],install:function(L){var R=L.interactStatic,Z=L.defaults;L.usePlugin(It),Z.base.actionChecker=null,Z.base.styleCursor=!0,q(Z.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),R.maxInteractions=function(iA){return bn(iA,L)},L.autoStart={maxInteractions:1/0,withinInteractionLimit:un,cursorElement:null}},listeners:{"interactions:down":function(L,R){var Z=L.interaction,iA=L.pointer,sA=L.event,uA=L.eventTarget;Z.interacting()||An(Z,Vt(Z,iA,sA,uA,R),R)},"interactions:move":function(L,R){(function(Z,iA){var sA=Z.interaction,uA=Z.pointer,BA=Z.event,QA=Z.eventTarget;sA.pointerType!=="mouse"||sA.pointerIsDown||sA.interacting()||An(sA,Vt(sA,uA,BA,QA,iA),iA)})(L,R),function(Z,iA){var sA=Z.interaction;if(sA.pointerIsDown&&!sA.interacting()&&sA.pointerWasMoved&&sA.prepared.name){iA.fire("autoStart:before-start",Z);var uA=sA.interactable,BA=sA.prepared.name;BA&&uA&&(uA.options[BA].manualStart||!un(uA,sA.element,sA.prepared,iA)?sA.stop():(sA.start(sA.prepared,uA,sA.element),en(sA,iA)))}}(L,R)},"interactions:stop":function(L,R){var Z=L.interaction,iA=Z.interactable;iA&&iA.options.styleCursor&&Lt(Z.element,"",R)}},maxInteractions:bn,withinInteractionLimit:un,validateAction:nt},tn=zn,Ei={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(L,R){var Z=L.interaction,iA=L.eventTarget,sA=L.dx,uA=L.dy;if(Z.prepared.name==="drag"){var BA=Math.abs(sA),QA=Math.abs(uA),DA=Z.interactable.options.drag,RA=DA.startAxis,vA=BA>QA?"x":BA<QA?"y":"xy";if(Z.prepared.axis=DA.lockAxis==="start"?vA[0]:DA.lockAxis,vA!=="xy"&&RA!=="xy"&&RA!==vA){Z.prepared.name=null;for(var TA=iA,Ae=function(le){if(le!==Z.interactable){var pe=Z.interactable.options.drag;if(!pe.manualStart&&le.testIgnoreAllow(pe,TA,iA)){var ve=le.getAction(Z.downPointer,Z.downEvent,Z,TA);if(ve&&ve.name==="drag"&&function(Qe,_A){if(!_A)return!1;var zA=_A.options.drag.startAxis;return Qe==="xy"||zA==="xy"||zA===Qe}(vA,le)&&tn.validateAction(ve,le,TA,iA,R))return le}}};u.element(TA);){var ge=R.interactables.forEachMatch(TA,Ae);if(ge){Z.prepared.name="drag",Z.interactable=ge,Z.element=TA;break}TA=K(TA)}}}}}};function Qi(L){var R=L.prepared&&L.prepared.name;if(!R)return null;var Z=L.interactable.options;return Z[R].hold||Z[R].delay}var po={id:"auto-start/hold",install:function(L){var R=L.defaults;L.usePlugin(tn),R.perAction.hold=0,R.perAction.delay=0},listeners:{"interactions:new":function(L){L.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(L){var R=L.interaction,Z=Qi(R);Z>0&&(R.autoStartHoldTimer=setTimeout(function(){R.start(R.prepared,R.interactable,R.element)},Z))},"interactions:move":function(L){var R=L.interaction,Z=L.duplicate;R.autoStartHoldTimer&&R.pointerWasMoved&&!Z&&(clearTimeout(R.autoStartHoldTimer),R.autoStartHoldTimer=null)},"autoStart:before-start":function(L){var R=L.interaction;Qi(R)>0&&(R.prepared.name=null)}},getHoldDuration:Qi},fi=po,ri={id:"auto-start",install:function(L){L.usePlugin(tn),L.usePlugin(fi),L.usePlugin(Ei)}},Ki=function(L){return/^(always|never|auto)$/.test(L)?(this.options.preventDefault=L,this):u.bool(L)?(this.options.preventDefault=L?"always":"never",this):this.options.preventDefault};function Co(L){var R=L.interaction,Z=L.event;R.interactable&&R.interactable.checkAndPreventDefault(Z)}var ai={id:"core/interactablePreventDefault",install:function(L){var R=L.Interactable;R.prototype.preventDefault=Ki,R.prototype.checkAndPreventDefault=function(Z){return function(iA,sA,uA){var BA=iA.options.preventDefault;if(BA!=="never")if(BA!=="always"){if(sA.events.supportsPassive&&/^touch(start|move)$/.test(uA.type)){var QA=_(uA.target).document,DA=sA.getDocOptions(QA);if(!DA||!DA.events||DA.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(uA.type)||u.element(uA.target)&&z(uA.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||uA.preventDefault()}else uA.preventDefault()}(this,L,Z)},L.interactions.docEvents.push({type:"dragstart",listener:function(Z){for(var iA=0,sA=L.interactions.list;iA<sA.length;iA++){var uA=sA[iA];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(L,R){return L["interactions:".concat(R)]=Co,L},{})};function yn(L,R){if(R.phaselessTypes[L])return!0;for(var Z in R.map)if(L.indexOf(Z)===0&&L.substr(Z.length)in R.phases)return!0;return!1}function Ti(L){var R={};for(var Z in L){var iA=L[Z];u.plainObject(iA)?R[Z]=Ti(iA):u.array(iA)?R[Z]=_e(iA):R[Z]=iA}return R}var Vo=function(){function L(R){m(this,L),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=R,this.result=Bo(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return y(L,[{key:"start",value:function(R,Z){var iA,sA,uA=R.phase,BA=this.interaction,QA=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(Ae){var ge=vA[Ae];return ge&&ge.enabled&&{options:ge,methods:ge._methods}}).filter(function(Ae){return!!Ae})}(BA);this.prepareStates(QA),this.startEdges=q({},BA.edges),this.edges=q({},this.startEdges),this.startOffset=(iA=BA.rect,sA=Z,iA?{left:sA.x-iA.left,top:sA.y-iA.top,right:iA.right-sA.x,bottom:iA.bottom-sA.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var DA=this.fillArg({phase:uA,pageCoords:Z,preEnd:!1});return this.result=Bo(),this.startAll(DA),this.result=this.setAll(DA)}},{key:"fillArg",value:function(R){var Z=this.interaction;return R.interaction=Z,R.interactable=Z.interactable,R.element=Z.element,R.rect||(R.rect=Z.rect),R.edges||(R.edges=this.startEdges),R.startOffset=this.startOffset,R}},{key:"startAll",value:function(R){for(var Z=0,iA=this.states;Z<iA.length;Z++){var sA=iA[Z];sA.methods.start&&(R.state=sA,sA.methods.start(R))}}},{key:"setAll",value:function(R){var Z=R.phase,iA=R.preEnd,sA=R.skipModifiers,uA=R.rect,BA=R.edges;R.coords=q({},R.pageCoords),R.rect=q({},uA),R.edges=q({},BA);for(var QA=sA?this.states.slice(sA):this.states,DA=Bo(R.coords,R.rect),RA=0;RA<QA.length;RA++){var vA,TA=QA[RA],Ae=TA.options,ge=q({},R.coords),le=null;(vA=TA.methods)!=null&&vA.set&&this.shouldDo(Ae,iA,Z)&&(R.state=TA,le=TA.methods.set(R),gA(R.edges,R.rect,{x:R.coords.x-ge.x,y:R.coords.y-ge.y})),DA.eventProps.push(le)}q(this.edges,R.edges),DA.delta.x=R.coords.x-R.pageCoords.x,DA.delta.y=R.coords.y-R.pageCoords.y,DA.rectDelta.left=R.rect.left-uA.left,DA.rectDelta.right=R.rect.right-uA.right,DA.rectDelta.top=R.rect.top-uA.top,DA.rectDelta.bottom=R.rect.bottom-uA.bottom;var pe=this.result.coords,ve=this.result.rect;if(pe&&ve){var Qe=DA.rect.left!==ve.left||DA.rect.right!==ve.right||DA.rect.top!==ve.top||DA.rect.bottom!==ve.bottom;DA.changed=Qe||pe.x!==DA.coords.x||pe.y!==DA.coords.y}return DA}},{key:"applyToInteraction",value:function(R){var Z=this.interaction,iA=R.phase,sA=Z.coords.cur,uA=Z.coords.start,BA=this.result,QA=this.startDelta,DA=BA.delta;iA==="start"&&q(this.startDelta,BA.delta);for(var RA=0,vA=[[uA,QA],[sA,DA]];RA<vA.length;RA++){var TA=vA[RA],Ae=TA[0],ge=TA[1];Ae.page.x+=ge.x,Ae.page.y+=ge.y,Ae.client.x+=ge.x,Ae.client.y+=ge.y}var le=this.result.rectDelta,pe=R.rect||Z.rect;pe.left+=le.left,pe.right+=le.right,pe.top+=le.top,pe.bottom+=le.bottom,pe.width=pe.right-pe.left,pe.height=pe.bottom-pe.top}},{key:"setAndApply",value:function(R){var Z=this.interaction,iA=R.phase,sA=R.preEnd,uA=R.skipModifiers,BA=this.setAll(this.fillArg({preEnd:sA,phase:iA,pageCoords:R.modifiedCoords||Z.coords.cur.page}));if(this.result=BA,!BA.changed&&(!uA||uA<this.states.length)&&Z.interacting())return!1;if(R.modifiedCoords){var QA=Z.coords.cur.page,DA={x:R.modifiedCoords.x-QA.x,y:R.modifiedCoords.y-QA.y};BA.coords.x+=DA.x,BA.coords.y+=DA.y,BA.delta.x+=DA.x,BA.delta.y+=DA.y}this.applyToInteraction(R)}},{key:"beforeEnd",value:function(R){var Z=R.interaction,iA=R.event,sA=this.states;if(sA&&sA.length){for(var uA=!1,BA=0;BA<sA.length;BA++){var QA=sA[BA];R.state=QA;var DA=QA.options,RA=QA.methods,vA=RA.beforeEnd&&RA.beforeEnd(R);if(vA)return this.endResult=vA,!1;uA=uA||!uA&&this.shouldDo(DA,!0,R.phase,!0)}uA&&Z.move({event:iA,preEnd:!0})}}},{key:"stop",value:function(R){var Z=R.interaction;if(this.states&&this.states.length){var iA=q({states:this.states,interactable:Z.interactable,element:Z.element,rect:null},R);this.fillArg(iA);for(var sA=0,uA=this.states;sA<uA.length;sA++){var BA=uA[sA];iA.state=BA,BA.methods.stop&&BA.methods.stop(iA)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(R){this.states=[];for(var Z=0;Z<R.length;Z++){var iA=R[Z],sA=iA.options,uA=iA.methods,BA=iA.name;this.states.push({options:sA,methods:uA,index:Z,name:BA})}return this.states}},{key:"restoreInteractionCoords",value:function(R){var Z=R.interaction,iA=Z.coords,sA=Z.rect,uA=Z.modification;if(uA.result){for(var BA=uA.startDelta,QA=uA.result,DA=QA.delta,RA=QA.rectDelta,vA=0,TA=[[iA.start,BA],[iA.cur,DA]];vA<TA.length;vA++){var Ae=TA[vA],ge=Ae[0],le=Ae[1];ge.page.x-=le.x,ge.page.y-=le.y,ge.client.x-=le.x,ge.client.y-=le.y}sA.left-=RA.left,sA.right-=RA.right,sA.top-=RA.top,sA.bottom-=RA.bottom}}},{key:"shouldDo",value:function(R,Z,iA,sA){return!(!R||R.enabled===!1||sA&&!R.endOnly||R.endOnly&&!Z||iA==="start"&&!R.setStart)}},{key:"copyFrom",value:function(R){this.startOffset=R.startOffset,this.startDelta=R.startDelta,this.startEdges=R.startEdges,this.edges=R.edges,this.states=R.states.map(function(Z){return Ti(Z)}),this.result=Bo(q({},R.result.coords),q({},R.result.rect))}},{key:"destroy",value:function(){for(var R in this)this[R]=null}}]),L}();function Bo(L,R){return{rect:R,coords:L,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Ln(L,R){var Z=L.defaults,iA={start:L.start,set:L.set,beforeEnd:L.beforeEnd,stop:L.stop},sA=function(uA){var BA=uA||{};for(var QA in BA.enabled=BA.enabled!==!1,Z)QA in BA||(BA[QA]=Z[QA]);var DA={options:BA,methods:iA,name:R,enable:function(){return BA.enabled=!0,DA},disable:function(){return BA.enabled=!1,DA}};return DA};return R&&typeof R=="string"&&(sA._defaults=Z,sA._methods=iA),sA}function mo(L){var R=L.iEvent,Z=L.interaction.modification.result;Z&&(R.modifiers=Z.eventProps)}var Ps={id:"modifiers/base",before:["actions"],install:function(L){L.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(L){var R=L.interaction;R.modification=new Vo(R)},"interactions:before-action-start":function(L){var R=L.interaction,Z=L.interaction.modification;Z.start(L,R.coords.start.page),R.edges=Z.edges,Z.applyToInteraction(L)},"interactions:before-action-move":function(L){var R=L.interaction,Z=R.modification,iA=Z.setAndApply(L);return R.edges=Z.edges,iA},"interactions:before-action-end":function(L){var R=L.interaction,Z=R.modification,iA=Z.beforeEnd(L);return R.edges=Z.startEdges,iA},"interactions:action-start":mo,"interactions:action-move":mo,"interactions:action-end":mo,"interactions:after-action-start":function(L){return L.interaction.modification.restoreInteractionCoords(L)},"interactions:after-action-move":function(L){return L.interaction.modification.restoreInteractionCoords(L)},"interactions:stop":function(L){return L.interaction.modification.stop(L)}}},Ar=Ps,er={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},si=function(L){I(Z,L);var R=O(Z);function Z(iA,sA,uA,BA,QA,DA,RA){var vA;m(this,Z),(vA=R.call(this,iA)).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,QA=QA||iA.element;var TA=iA.interactable,Ae=(TA&&TA.options||er).deltaSource,ge=wA(TA,QA,uA),le=BA==="start",pe=BA==="end",ve=le?T(vA):iA.prevEvent,Qe=le?iA.coords.start:pe?{page:ve.page,client:ve.client,timeStamp:iA.coords.cur.timeStamp}:iA.coords.cur;return vA.page=q({},Qe.page),vA.client=q({},Qe.client),vA.rect=q({},iA.rect),vA.timeStamp=Qe.timeStamp,pe||(vA.page.x-=ge.x,vA.page.y-=ge.y,vA.client.x-=ge.x,vA.client.y-=ge.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=QA,vA.currentTarget=QA,vA.preEnd=DA,vA.type=RA||uA+(BA||""),vA.interactable=TA,vA.t0=le?iA.pointers[iA.pointers.length-1].downTime:ve.t0,vA.x0=iA.coords.start.page.x-ge.x,vA.y0=iA.coords.start.page.y-ge.y,vA.clientX0=iA.coords.start.client.x-ge.x,vA.clientY0=iA.coords.start.client.y-ge.y,vA.delta=le||pe?{x:0,y:0}:{x:vA[Ae].x-ve[Ae].x,y:vA[Ae].y-ve[Ae].y},vA.dt=iA.coords.delta.timeStamp,vA.duration=vA.timeStamp-vA.t0,vA.velocity=q({},iA.coords.velocity[Ae]),vA.speed=cA(vA.velocity.x,vA.velocity.y),vA.swipe=pe||BA==="inertiastart"?vA.getSwipe():null,vA}return y(Z,[{key:"getSwipe",value:function(){var iA=this._interaction;if(iA.prevEvent.speed<600||this.timeStamp-iA.prevEvent.timeStamp>150)return null;var sA=180*Math.atan2(iA.prevEvent.velocityY,iA.prevEvent.velocityX)/Math.PI;sA<0&&(sA+=360);var uA=112.5<=sA&&sA<247.5,BA=202.5<=sA&&sA<337.5;return{up:BA,down:!BA&&22.5<=sA&&sA<157.5,left:uA,right:!uA&&(292.5<=sA||sA<67.5),angle:sA,speed:iA.prevEvent.speed,velocity:{x:iA.prevEvent.velocityX,y:iA.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),Z}(he);Object.defineProperties(si.prototype,{pageX:{get:function(){return this.page.x},set:function(L){this.page.x=L}},pageY:{get:function(){return this.page.y},set:function(L){this.page.y=L}},clientX:{get:function(){return this.client.x},set:function(L){this.client.x=L}},clientY:{get:function(){return this.client.y},set:function(L){this.client.y=L}},dx:{get:function(){return this.delta.x},set:function(L){this.delta.x=L}},dy:{get:function(){return this.delta.y},set:function(L){this.delta.y=L}},velocityX:{get:function(){return this.velocity.x},set:function(L){this.velocity.x=L}},velocityY:{get:function(){return this.velocity.y},set:function(L){this.velocity.y=L}}});var Hs=y(function L(R,Z,iA,sA,uA){m(this,L),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=R,this.pointer=Z,this.event=iA,this.downTime=sA,this.downTarget=uA}),Ks=function(L){return L.interactable="",L.element="",L.prepared="",L.pointerIsDown="",L.pointerWasMoved="",L._proxy="",L}({}),Ts=function(L){return L.start="",L.move="",L.end="",L.stop="",L.interacting="",L}({}),Us=0,Ys=function(){function L(R){var Z=this,iA=R.pointerType,sA=R.scopeFire;m(this,L),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=At(function(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=Us++,this._scopeFire=sA,this.pointerType=iA;var uA=this;this._proxy={};var BA=function(vA){Object.defineProperty(Z._proxy,vA,{get:function(){return uA[vA]}})};for(var QA in Ks)BA(QA);var DA=function(vA){Object.defineProperty(Z._proxy,vA,{value:function(){return uA[vA].apply(uA,arguments)}})};for(var RA in Ts)DA(RA);this._scopeFire("interactions:new",{interaction:this})}return y(L,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(R,Z,iA){var sA=this.updatePointer(R,Z,iA,!0),uA=this.pointers[sA];this._scopeFire("interactions:down",{pointer:R,event:Z,eventTarget:iA,pointerIndex:sA,pointerInfo:uA,type:"down",interaction:this})}},{key:"start",value:function(R,Z,iA){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(R.name==="gesture"?2:1)||!Z.options[R.name].enabled)&&(ut(this.prepared,R),this.interactable=Z,this.element=iA,this.rect=Z.getRect(iA),this.edges=this.prepared.edges?q({},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(R,Z,iA){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(R,Z,iA,!1);var sA,uA,BA=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 QA,DA,RA,vA=this.getPointerIndex(R),TA={pointer:R,pointerIndex:vA,pointerInfo:this.pointers[vA],event:Z,type:"move",eventTarget:iA,dx:sA,dy:uA,duplicate:BA,interaction:this};BA||(QA=this.coords.velocity,DA=this.coords.delta,RA=Math.max(DA.timeStamp/1e3,.001),QA.page.x=DA.page.x/RA,QA.page.y=DA.page.y/RA,QA.client.x=DA.client.x/RA,QA.client.y=DA.client.y/RA,QA.timeStamp=RA),this._scopeFire("interactions:move",TA),BA||this.simulation||(this.interacting()&&(TA.type=null,this.move(TA)),this.pointerWasMoved&&W(this.coords.prev,this.coords.cur))}},{key:"move",value:function(R){R&&R.event||tA(this.coords.delta),(R=q({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},R||{})).phase="move",this._doPhase(R)}},{key:"pointerUp",value:function(R,Z,iA,sA){var uA=this.getPointerIndex(R);uA===-1&&(uA=this.updatePointer(R,Z,iA,!1));var BA=/cancel$/i.test(Z.type)?"cancel":"up";this._scopeFire("interactions:".concat(BA),{pointer:R,pointerIndex:uA,pointerInfo:this.pointers[uA],event:Z,eventTarget:iA,type:BA,curEventTarget:sA,interaction:this}),this.simulation||this.end(Z),this.removePointer(R,Z)}},{key:"documentBlur",value:function(R){this.end(R),this._scopeFire("interactions:blur",{event:R,type:"blur",interaction:this})}},{key:"end",value:function(R){var Z;this._ending=!0,R=R||this._latestPointer.event,this.interacting()&&(Z=this._doPhase({event:R,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(R){var Z=HA(R);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:NA(this.pointers,function(iA){return iA.id===Z})}},{key:"getPointerInfo",value:function(R){return this.pointers[this.getPointerIndex(R)]}},{key:"updatePointer",value:function(R,Z,iA,sA){var uA,BA,QA,DA=HA(R),RA=this.getPointerIndex(R),vA=this.pointers[RA];return sA=sA!==!1&&(sA||/(down|start)$/i.test(Z.type)),vA?vA.pointer=R:(vA=new Hs(DA,R,Z,null,null),RA=this.pointers.length,this.pointers.push(vA)),JA(this.coords.cur,this.pointers.map(function(TA){return TA.pointer}),this._now()),uA=this.coords.delta,BA=this.coords.prev,QA=this.coords.cur,uA.page.x=QA.page.x-BA.page.x,uA.page.y=QA.page.y-BA.page.y,uA.client.x=QA.client.x-BA.client.x,uA.client.y=QA.client.y-BA.client.y,uA.timeStamp=QA.timeStamp-BA.timeStamp,sA&&(this.pointerIsDown=!0,vA.downTime=this.coords.cur.timeStamp,vA.downTarget=iA,U(this.downPointer,R),this.interacting()||(W(this.coords.start,this.coords.cur),W(this.coords.prev,this.coords.cur),this.downEvent=Z,this.pointerWasMoved=!1)),this._updateLatestPointer(R,Z,iA),this._scopeFire("interactions:update-pointer",{pointer:R,event:Z,eventTarget:iA,down:sA,pointerInfo:vA,pointerIndex:RA,interaction:this}),RA}},{key:"removePointer",value:function(R,Z){var iA=this.getPointerIndex(R);if(iA!==-1){var sA=this.pointers[iA];this._scopeFire("interactions:remove-pointer",{pointer:R,event:Z,eventTarget:null,pointerIndex:iA,pointerInfo:sA,interaction:this}),this.pointers.splice(iA,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(R,Z,iA){this._latestPointer.pointer=R,this._latestPointer.event=Z,this._latestPointer.eventTarget=iA}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(R,Z,iA,sA){return new si(this,R,this.prepared.name,Z,this.element,iA,sA)}},{key:"_fireEvent",value:function(R){var Z;(Z=this.interactable)==null||Z.fire(R),(!this.prevEvent||R.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=R)}},{key:"_doPhase",value:function(R){var Z=R.event,iA=R.phase,sA=R.preEnd,uA=R.type,BA=this.rect;if(BA&&iA==="move"&&(gA(this.edges,BA,this.coords.delta[this.interactable.options.deltaSource]),BA.width=BA.right-BA.left,BA.height=BA.bottom-BA.top),this._scopeFire("interactions:before-action-".concat(iA),R)===!1)return!1;var QA=R.iEvent=this._createPreparedEvent(Z,iA,sA,uA);return this._scopeFire("interactions:action-".concat(iA),R),iA==="start"&&(this.prevEvent=QA),this._fireEvent(QA),this._scopeFire("interactions:after-action-".concat(iA),R),!0}},{key:"_now",value:function(){return Date.now()}}]),L}();function Vr(L){Aa(L.interaction)}function Aa(L){if(!function(Z){return!(!Z.offset.pending.x&&!Z.offset.pending.y)}(L))return!1;var R=L.offset.pending;return ea(L.coords.cur,R),ea(L.coords.delta,R),gA(L.edges,L.rect,R),R.x=0,R.y=0,!0}function vg(L){var R=L.x,Z=L.y;this.offset.pending.x+=R,this.offset.pending.y+=Z,this.offset.total.x+=R,this.offset.total.y+=Z}function ea(L,R){var Z=L.page,iA=L.client,sA=R.x,uA=R.y;Z.x+=sA,Z.y+=uA,iA.x+=sA,iA.y+=uA}Ts.offsetBy="";var kg={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(L){L.Interaction.prototype.offsetBy=vg},listeners:{"interactions:new":function(L){L.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(L){return function(R){R.pointerIsDown&&(ea(R.coords.cur,R.offset.total),R.offset.pending.x=0,R.offset.pending.y=0)}(L.interaction)},"interactions:before-action-start":Vr,"interactions:before-action-move":Vr,"interactions:before-action-end":function(L){var R=L.interaction;if(Aa(R))return R.move({offset:!0}),R.end(),!1},"interactions:stop":function(L){var R=L.interaction;R.offset.total.x=0,R.offset.total.y=0,R.offset.pending.x=0,R.offset.pending.y=0}}},ta=kg,_g=function(){function L(R){m(this,L),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=R}return y(L,[{key:"start",value:function(R){var Z=this.interaction,iA=tr(Z);if(!iA||!iA.enabled)return!1;var sA=Z.coords.velocity.client,uA=cA(sA.x,sA.y),BA=this.modification||(this.modification=new Vo(Z));if(BA.copyFrom(Z.modification),this.t0=Z._now(),this.allowResume=iA.allowResume,this.v0=uA,this.currentOffset={x:0,y:0},this.startCoords=Z.coords.cur.page,this.modifierArg=BA.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-Z.coords.cur.timeStamp<50&&uA>iA.minSpeed&&uA>iA.endSpeed)this.startInertia();else{if(BA.result=BA.setAll(this.modifierArg),!BA.result.changed)return!1;this.startSmoothEnd()}return Z.modification.result.rect=null,Z.offsetBy(this.targetOffset),Z._doPhase({interaction:Z,event:R,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 R=this,Z=this.interaction.coords.velocity.client,iA=tr(this.interaction),sA=iA.resistance,uA=-Math.log(iA.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-iA.endSpeed/this.v0;var BA=this.modification,QA=this.modifierArg;QA.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},BA.result=BA.setAll(QA),BA.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+BA.result.delta.x,y:this.targetOffset.y+BA.result.delta.y}),this.onNextFrame(function(){return R.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var R=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 R.smoothEndTick()})}},{key:"onNextFrame",value:function(R){var Z=this;this.timeout=we.request(function(){Z.active&&R()})}},{key:"inertiaTick",value:function(){var R,Z,iA,sA,uA,BA,QA,DA=this,RA=this.interaction,vA=tr(RA).resistance,TA=(RA._now()-this.t0)/1e3;if(TA<this.te){var Ae,ge=1-(Math.exp(-vA*TA)-this.lambda_v0)/this.one_ve_v0;this.isModified?(R=0,Z=0,iA=this.targetOffset.x,sA=this.targetOffset.y,uA=this.modifiedOffset.x,BA=this.modifiedOffset.y,Ae={x:Os(QA=ge,R,iA,uA),y:Os(QA,Z,sA,BA)}):Ae={x:this.targetOffset.x*ge,y:this.targetOffset.y*ge};var le={x:Ae.x-this.currentOffset.x,y:Ae.y-this.currentOffset.y};this.currentOffset.x+=le.x,this.currentOffset.y+=le.y,RA.offsetBy(le),RA.move(),this.onNextFrame(function(){return DA.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 R=this,Z=this.interaction,iA=Z._now()-this.t0,sA=tr(Z).smoothEndDuration;if(iA<sA){var uA={x:nr(iA,0,this.targetOffset.x,sA),y:nr(iA,0,this.targetOffset.y,sA)},BA={x:uA.x-this.currentOffset.x,y:uA.y-this.currentOffset.y};this.currentOffset.x+=BA.x,this.currentOffset.y+=BA.y,Z.offsetBy(BA),Z.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return R.smoothEndTick()})}else Z.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(R){var Z=R.pointer,iA=R.event,sA=R.eventTarget,uA=this.interaction;uA.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),uA.updatePointer(Z,iA,sA,!0),uA._doPhase({interaction:uA,event:iA,phase:"resume"}),W(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,we.cancel(this.timeout)}}]),L}();function tr(L){var R=L.interactable,Z=L.prepared;return R&&R.options&&Z.name&&R.options[Z.name].inertia}var Mg={id:"inertia",before:["modifiers","actions"],install:function(L){var R=L.defaults;L.usePlugin(ta),L.usePlugin(Ar),L.actions.phases.inertiastart=!0,L.actions.phases.resume=!0,R.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(L){var R=L.interaction;R.inertia=new _g(R)},"interactions:before-action-end":function(L){var R=L.interaction,Z=L.event;return(!R._interacting||R.simulation||!R.inertia.start(Z))&&null},"interactions:down":function(L){var R=L.interaction,Z=L.eventTarget,iA=R.inertia;if(iA.active)for(var sA=Z;u.element(sA);){if(sA===R.element){iA.resume(L);break}sA=K(sA)}},"interactions:stop":function(L){var R=L.interaction.inertia;R.active&&R.stop()},"interactions:before-action-resume":function(L){var R=L.interaction.modification;R.stop(L),R.start(L,L.interaction.coords.cur.page),R.applyToInteraction(L)},"interactions:before-action-inertiastart":function(L){return L.interaction.modification.setAndApply(L)},"interactions:action-resume":mo,"interactions:action-inertiastart":mo,"interactions:after-action-inertiastart":function(L){return L.interaction.modification.restoreInteractionCoords(L)},"interactions:after-action-resume":function(L){return L.interaction.modification.restoreInteractionCoords(L)}}};function Os(L,R,Z,iA){var sA=1-L;return sA*sA*R+2*sA*L*Z+L*L*iA}function nr(L,R,Z,iA){return-Z*(L/=iA)*(L-2)+R}var xg=Mg;function $s(L,R){for(var Z=0;Z<R.length;Z++){var iA=R[Z];if(L.immediatePropagationStopped)break;iA(L)}}var zs=function(){function L(R){m(this,L),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=q({},R||{})}return y(L,[{key:"fire",value:function(R){var Z,iA=this.global;(Z=this.types[R.type])&&$s(R,Z),!R.propagationStopped&&iA&&(Z=iA[R.type])&&$s(R,Z)}},{key:"on",value:function(R,Z){var iA=X(R,Z);for(R in iA)this.types[R]=Ie(this.types[R]||[],iA[R])}},{key:"off",value:function(R,Z){var iA=X(R,Z);for(R in iA){var sA=this.types[R];if(sA&&sA.length)for(var uA=0,BA=iA[R];uA<BA.length;uA++){var QA=BA[uA],DA=sA.indexOf(QA);DA!==-1&&sA.splice(DA,1)}}}},{key:"getRect",value:function(R){return null}}]),L}(),Sg=function(){function L(R){m(this,L),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=R,U(this,R)}return y(L,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),L}();function Eo(L){return u.object(L)?{capture:!!L.capture,passive:!!L.passive}:{capture:!!L,passive:!1}}function st(L,R){return L===R||(typeof L=="boolean"?!!R.capture===L&&!R.passive:!!L.capture==!!R.capture&&!!L.passive==!!R.passive)}var dt={id:"events",install:function(L){var R,Z=[],iA={},sA=[],uA={add:BA,remove:QA,addDelegate:function(vA,TA,Ae,ge,le){var pe=Eo(le);if(!iA[Ae]){iA[Ae]=[];for(var ve=0;ve<sA.length;ve++){var Qe=sA[ve];BA(Qe,Ae,DA),BA(Qe,Ae,RA,!0)}}var _A=iA[Ae],zA=OA(_A,function(UA){return UA.selector===vA&&UA.context===TA});zA||(zA={selector:vA,context:TA,listeners:[]},_A.push(zA)),zA.listeners.push({func:ge,options:pe})},removeDelegate:function(vA,TA,Ae,ge,le){var pe,ve=Eo(le),Qe=iA[Ae],_A=!1;if(Qe)for(pe=Qe.length-1;pe>=0;pe--){var zA=Qe[pe];if(zA.selector===vA&&zA.context===TA){for(var UA=zA.listeners,ee=UA.length-1;ee>=0;ee--){var Be=UA[ee];if(Be.func===ge&&st(Be.options,ve)){UA.splice(ee,1),UA.length||(Qe.splice(pe,1),QA(TA,Ae,DA),QA(TA,Ae,RA,!0)),_A=!0;break}}if(_A)break}}},delegateListener:DA,delegateUseCapture:RA,delegatedEvents:iA,documents:sA,targets:Z,supportsOptions:!1,supportsPassive:!1};function BA(vA,TA,Ae,ge){if(vA.addEventListener){var le=Eo(ge),pe=OA(Z,function(ve){return ve.eventTarget===vA});pe||(pe={eventTarget:vA,events:{}},Z.push(pe)),pe.events[TA]||(pe.events[TA]=[]),OA(pe.events[TA],function(ve){return ve.func===Ae&&st(ve.options,le)})||(vA.addEventListener(TA,Ae,uA.supportsOptions?le:le.capture),pe.events[TA].push({func:Ae,options:le}))}}function QA(vA,TA,Ae,ge){if(vA.addEventListener&&vA.removeEventListener){var le=NA(Z,function(He){return He.eventTarget===vA}),pe=Z[le];if(pe&&pe.events)if(TA!=="all"){var ve=!1,Qe=pe.events[TA];if(Qe){if(Ae==="all"){for(var _A=Qe.length-1;_A>=0;_A--){var zA=Qe[_A];QA(vA,TA,zA.func,zA.options)}return}for(var UA=Eo(ge),ee=0;ee<Qe.length;ee++){var Be=Qe[ee];if(Be.func===Ae&&st(Be.options,UA)){vA.removeEventListener(TA,Ae,uA.supportsOptions?UA:UA.capture),Qe.splice(ee,1),Qe.length===0&&(delete pe.events[TA],ve=!0);break}}}ve&&!Object.keys(pe.events).length&&Z.splice(le,1)}else for(TA in pe.events)pe.events.hasOwnProperty(TA)&&QA(vA,TA,"all")}}function DA(vA,TA){for(var Ae=Eo(TA),ge=new Sg(vA),le=iA[vA.type],pe=XA(vA)[0],ve=pe;u.element(ve);){for(var Qe=0;Qe<le.length;Qe++){var _A=le[Qe],zA=_A.selector,UA=_A.context;if(z(ve,zA)&&M(UA,pe)&&M(UA,ve)){var ee=_A.listeners;ge.currentTarget=ve;for(var Be=0;Be<ee.length;Be++){var He=ee[Be];st(He.options,Ae)&&He.func(ge)}}}ve=K(ve)}}function RA(vA){return DA(vA,!0)}return(R=L.document)==null||R.createElement("div").addEventListener("test",null,{get capture(){return uA.supportsOptions=!0},get passive(){return uA.supportsPassive=!0}}),L.events=uA,uA}},na={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(L){for(var R=0,Z=na.methodOrder;R<Z.length;R++){var iA=Z[R],sA=na[iA](L);if(sA)return sA}return null},simulationResume:function(L){var R=L.pointerType,Z=L.eventType,iA=L.eventTarget,sA=L.scope;if(!/down|start/i.test(Z))return null;for(var uA=0,BA=sA.interactions.list;uA<BA.length;uA++){var QA=BA[uA],DA=iA;if(QA.simulation&&QA.simulation.allowResume&&QA.pointerType===R)for(;DA;){if(DA===QA.element)return QA;DA=K(DA)}}return null},mouseOrPen:function(L){var R,Z=L.pointerId,iA=L.pointerType,sA=L.eventType,uA=L.scope;if(iA!=="mouse"&&iA!=="pen")return null;for(var BA=0,QA=uA.interactions.list;BA<QA.length;BA++){var DA=QA[BA];if(DA.pointerType===iA){if(DA.simulation&&!Js(DA,Z))continue;if(DA.interacting())return DA;R||(R=DA)}}if(R)return R;for(var RA=0,vA=uA.interactions.list;RA<vA.length;RA++){var TA=vA[RA];if(!(TA.pointerType!==iA||/down/i.test(sA)&&TA.simulation))return TA}return null},hasPointer:function(L){for(var R=L.pointerId,Z=0,iA=L.scope.interactions.list;Z<iA.length;Z++){var sA=iA[Z];if(Js(sA,R))return sA}return null},idle:function(L){for(var R=L.pointerType,Z=0,iA=L.scope.interactions.list;Z<iA.length;Z++){var sA=iA[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()&&R===sA.pointerType)return sA}return null}};function Js(L,R){return L.pointers.some(function(Z){return Z.id===R})}var Ng=na,ia=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Zs(L,R){return function(Z){var iA=R.interactions.list,sA=xA(Z),uA=XA(Z),BA=uA[0],QA=uA[1],DA=[];if(/^touch/.test(Z.type)){R.prevTouchTime=R.now();for(var RA=0,vA=Z.changedTouches;RA<vA.length;RA++){var TA=vA[RA],Ae={pointer:TA,pointerId:HA(TA),pointerType:sA,eventType:Z.type,eventTarget:BA,curEventTarget:QA,scope:R},ge=Ws(Ae);DA.push([Ae.pointer,Ae.eventTarget,Ae.curEventTarget,ge])}}else{var le=!1;if(!f.supportsPointerEvent&&/mouse/.test(Z.type)){for(var pe=0;pe<iA.length&&!le;pe++)le=iA[pe].pointerType!=="mouse"&&iA[pe].pointerIsDown;le=le||R.now()-R.prevTouchTime<500||Z.timeStamp===0}if(!le){var ve={pointer:Z,pointerId:HA(Z),pointerType:sA,eventType:Z.type,curEventTarget:QA,eventTarget:BA,scope:R},Qe=Ws(ve);DA.push([ve.pointer,ve.eventTarget,ve.curEventTarget,Qe])}}for(var _A=0;_A<DA.length;_A++){var zA=DA[_A],UA=zA[0],ee=zA[1],Be=zA[2];zA[3][L](UA,Z,ee,Be)}}}function Ws(L){var R=L.pointerType,Z=L.scope,iA={interaction:Ng.search(L),searchDetails:L};return Z.fire("interactions:find",iA),iA.interaction||Z.interactions.new({pointerType:R})}function ir(L,R){var Z=L.doc,iA=L.scope,sA=L.options,uA=iA.interactions.docEvents,BA=iA.events,QA=BA[R];for(var DA in iA.browser.isIOS&&!sA.events&&(sA.events={passive:!1}),BA.delegatedEvents)QA(Z,DA,BA.delegateListener),QA(Z,DA,BA.delegateUseCapture,!0);for(var RA=sA&&sA.events,vA=0;vA<uA.length;vA++){var TA=uA[vA];QA(Z,TA.type,TA.listener,RA)}}var Fg={id:"core/interactions",install:function(L){for(var R={},Z=0;Z<ia.length;Z++){var iA=ia[Z];R[iA]=Zs(iA,L)}var sA,uA=f.pEventTypes;function BA(){for(var QA=0,DA=L.interactions.list;QA<DA.length;QA++){var RA=DA[QA];if(RA.pointerIsDown&&RA.pointerType==="touch"&&!RA._interacting)for(var vA=function(){var ge=Ae[TA];L.documents.some(function(le){return M(le.doc,ge.downTarget)})||RA.removePointer(ge.pointer,ge.event)},TA=0,Ae=RA.pointers;TA<Ae.length;TA++)vA()}}(sA=r.PointerEvent?[{type:uA.down,listener:BA},{type:uA.down,listener:R.pointerDown},{type:uA.move,listener:R.pointerMove},{type:uA.up,listener:R.pointerUp},{type:uA.cancel,listener:R.pointerUp}]:[{type:"mousedown",listener:R.pointerDown},{type:"mousemove",listener:R.pointerMove},{type:"mouseup",listener:R.pointerUp},{type:"touchstart",listener:BA},{type:"touchstart",listener:R.pointerDown},{type:"touchmove",listener:R.pointerMove},{type:"touchend",listener:R.pointerUp},{type:"touchcancel",listener:R.pointerUp}]).push({type:"blur",listener:function(QA){for(var DA=0,RA=L.interactions.list;DA<RA.length;DA++)RA[DA].documentBlur(QA)}}),L.prevTouchTime=0,L.Interaction=function(QA){I(RA,QA);var DA=O(RA);function RA(){return m(this,RA),DA.apply(this,arguments)}return y(RA,[{key:"pointerMoveTolerance",get:function(){return L.interactions.pointerMoveTolerance},set:function(vA){L.interactions.pointerMoveTolerance=vA}},{key:"_now",value:function(){return L.now()}}]),RA}(Ys),L.interactions={list:[],new:function(QA){QA.scopeFire=function(RA,vA){return L.fire(RA,vA)};var DA=new L.Interaction(QA);return L.interactions.list.push(DA),DA},listeners:R,docEvents:sA,pointerMoveTolerance:1},L.usePlugin(ai)},listeners:{"scope:add-document":function(L){return ir(L,"add")},"scope:remove-document":function(L){return ir(L,"remove")},"interactable:unset":function(L,R){for(var Z=L.interactable,iA=R.interactions.list.length-1;iA>=0;iA--){var sA=R.interactions.list[iA];sA.interactable===Z&&(sA.stop(),R.fire("interactions:destroy",{interaction:sA}),sA.destroy(),R.interactions.list.length>2&&R.interactions.list.splice(iA,1))}}},onDocSignal:ir,doOnInteractions:Zs,methodNames:ia},Gt=Fg,Gn=function(L){return L[L.On=0]="On",L[L.Off=1]="Off",L}(Gn||{}),Ii=function(){function L(R,Z,iA,sA){m(this,L),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new zs,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=Z.actions,this.target=R,this._context=Z.context||iA,this._win=_(G(R)?this._context:R),this._doc=this._win.document,this._scopeEvents=sA,this.set(Z)}return y(L,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(R,Z){return u.func(Z.onstart)&&this.on("".concat(R,"start"),Z.onstart),u.func(Z.onmove)&&this.on("".concat(R,"move"),Z.onmove),u.func(Z.onend)&&this.on("".concat(R,"end"),Z.onend),u.func(Z.oninertiastart)&&this.on("".concat(R,"inertiastart"),Z.oninertiastart),this}},{key:"updatePerActionListeners",value:function(R,Z,iA){var sA,uA=this,BA=(sA=this._actions.map[R])==null?void 0:sA.filterEventType,QA=function(DA){return(BA==null||BA(DA))&&yn(DA,uA._actions)};(u.array(Z)||u.object(Z))&&this._onOff(Gn.Off,R,Z,void 0,QA),(u.array(iA)||u.object(iA))&&this._onOff(Gn.On,R,iA,void 0,QA)}},{key:"setPerAction",value:function(R,Z){var iA=this._defaults;for(var sA in Z){var uA=sA,BA=this.options[R],QA=Z[uA];uA==="listeners"&&this.updatePerActionListeners(R,BA.listeners,QA),u.array(QA)?BA[uA]=_e(QA):u.plainObject(QA)?(BA[uA]=q(BA[uA]||{},Ti(QA)),u.object(iA.perAction[uA])&&"enabled"in iA.perAction[uA]&&(BA[uA].enabled=QA.enabled!==!1)):u.bool(QA)&&u.object(iA.perAction[uA])?BA[uA].enabled=QA:BA[uA]=QA}}},{key:"getRect",value:function(R){return R=R||(u.element(this.target)?this.target:null),u.string(this.target)&&(R=R||this._context.querySelector(this.target)),D(R)}},{key:"rectChecker",value:function(R){var Z=this;return u.func(R)?(this.getRect=function(iA){var sA=q({},R.apply(Z,iA));return"width"in sA||(sA.width=sA.right-sA.left,sA.height=sA.bottom-sA.top),sA},this):R===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(R,Z){if(G(Z)||u.object(Z)){for(var iA in this.options[R]=Z,this._actions.map)this.options[iA][R]=Z;return this}return this.options[R]}},{key:"origin",value:function(R){return this._backCompatOption("origin",R)}},{key:"deltaSource",value:function(R){return R==="page"||R==="client"?(this.options.deltaSource=R,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var R=this.target;return u.string(R)?Array.from(this._context.querySelectorAll(R)):u.func(R)&&R.getAllElements?R.getAllElements():u.element(R)?[R]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(R){return this._context===R.ownerDocument||M(this._context,R)}},{key:"testIgnoreAllow",value:function(R,Z,iA){return!this.testIgnore(R.ignoreFrom,Z,iA)&&this.testAllow(R.allowFrom,Z,iA)}},{key:"testAllow",value:function(R,Z,iA){return!R||!!u.element(iA)&&(u.string(R)?V(iA,R,Z):!!u.element(R)&&M(R,iA))}},{key:"testIgnore",value:function(R,Z,iA){return!(!R||!u.element(iA))&&(u.string(R)?V(iA,R,Z):!!u.element(R)&&M(R,iA))}},{key:"fire",value:function(R){return this.events.fire(R),this}},{key:"_onOff",value:function(R,Z,iA,sA,uA){u.object(Z)&&!u.array(Z)&&(sA=iA,iA=null);var BA=X(Z,iA,uA);for(var QA in BA){QA==="wheel"&&(QA=f.wheelEvent);for(var DA=0,RA=BA[QA];DA<RA.length;DA++){var vA=RA[DA];yn(QA,this._actions)?this.events[R===Gn.On?"on":"off"](QA,vA):u.string(this.target)?this._scopeEvents[R===Gn.On?"addDelegate":"removeDelegate"](this.target,this._context,QA,vA,sA):this._scopeEvents[R===Gn.On?"add":"remove"](this.target,QA,vA,sA)}}return this}},{key:"on",value:function(R,Z,iA){return this._onOff(Gn.On,R,Z,iA)}},{key:"off",value:function(R,Z,iA){return this._onOff(Gn.Off,R,Z,iA)}},{key:"set",value:function(R){var Z=this._defaults;for(var iA in u.object(R)||(R={}),this.options=Ti(Z.base),this._actions.methodDict){var sA=iA,uA=this._actions.methodDict[sA];this.options[sA]={},this.setPerAction(sA,q(q({},Z.perAction),Z.actions[sA])),this[uA](R[sA])}for(var BA in R)BA!=="getRect"?u.func(this[BA])&&this[BA](R[BA]):this.rectChecker(R.getRect);return this}},{key:"unset",value:function(){if(u.string(this.target))for(var R in this._scopeEvents.delegatedEvents)for(var Z=this._scopeEvents.delegatedEvents[R],iA=Z.length-1;iA>=0;iA--){var sA=Z[iA],uA=sA.selector,BA=sA.context,QA=sA.listeners;uA===this.target&&BA===this._context&&Z.splice(iA,1);for(var DA=QA.length-1;DA>=0;DA--)this._scopeEvents.removeDelegate(this.target,this._context,R,QA[DA][0],QA[DA][1])}else this._scopeEvents.remove(this.target,"all")}}]),L}(),js=function(){function L(R){var Z=this;m(this,L),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=R,R.addListeners({"interactable:unset":function(iA){var sA=iA.interactable,uA=sA.target,BA=u.string(uA)?Z.selectorMap[uA]:uA[Z.scope.id],QA=NA(BA,function(DA){return DA===sA});BA.splice(QA,1)}})}return y(L,[{key:"new",value:function(R,Z){Z=q(Z||{},{actions:this.scope.actions});var iA=new this.scope.Interactable(R,Z,this.scope.document,this.scope.events);return this.scope.addDocument(iA._doc),this.list.push(iA),u.string(R)?(this.selectorMap[R]||(this.selectorMap[R]=[]),this.selectorMap[R].push(iA)):(iA.target[this.scope.id]||Object.defineProperty(R,this.scope.id,{value:[],configurable:!0}),R[this.scope.id].push(iA)),this.scope.fire("interactable:new",{target:R,options:Z,interactable:iA,win:this.scope._win}),iA}},{key:"getExisting",value:function(R,Z){var iA=Z&&Z.context||this.scope.document,sA=u.string(R),uA=sA?this.selectorMap[R]:R[this.scope.id];if(uA)return OA(uA,function(BA){return BA._context===iA&&(sA||BA.inContext(R))})}},{key:"forEachMatch",value:function(R,Z){for(var iA=0,sA=this.list;iA<sA.length;iA++){var uA=sA[iA],BA=void 0;if((u.string(uA.target)?u.element(R)&&z(R,uA.target):R===uA.target)&&uA.inContext(R)&&(BA=Z(uA)),BA!==void 0)return BA}}}]),L}(),oa=function(){function L(){var R=this;m(this,L),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=f,this.defaults=Ti(er),this.Eventable=zs,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(iA){var sA=function uA(BA,QA){var DA=iA.interactables.getExisting(BA,QA);return DA||((DA=iA.interactables.new(BA,QA)).events.global=uA.globalEvents),DA};return sA.getPointerAverage=bA,sA.getTouchBBox=KA,sA.getTouchDistance=qA,sA.getTouchAngle=SA,sA.getElementRect=D,sA.getElementClientRect=J,sA.matchesSelector=z,sA.closest=x,sA.globalEvents={},sA.version="1.10.27",sA.scope=iA,sA.use=function(uA,BA){return this.scope.usePlugin(uA,BA),this},sA.isSet=function(uA,BA){return!!this.scope.interactables.get(uA,BA&&BA.context)},sA.on=At(function(uA,BA,QA){if(u.string(uA)&&uA.search(" ")!==-1&&(uA=uA.trim().split(/ +/)),u.array(uA)){for(var DA=0,RA=uA;DA<RA.length;DA++){var vA=RA[DA];this.on(vA,BA,QA)}return this}if(u.object(uA)){for(var TA in uA)this.on(TA,uA[TA],BA);return this}return yn(uA,this.scope.actions)?this.globalEvents[uA]?this.globalEvents[uA].push(BA):this.globalEvents[uA]=[BA]:this.scope.events.add(this.scope.document,uA,BA,{options:QA}),this},"The interact.on() method is being deprecated"),sA.off=At(function(uA,BA,QA){if(u.string(uA)&&uA.search(" ")!==-1&&(uA=uA.trim().split(/ +/)),u.array(uA)){for(var DA=0,RA=uA;DA<RA.length;DA++){var vA=RA[DA];this.off(vA,BA,QA)}return this}if(u.object(uA)){for(var TA in uA)this.off(TA,uA[TA],BA);return this}var Ae;return yn(uA,this.scope.actions)?uA in this.globalEvents&&(Ae=this.globalEvents[uA].indexOf(BA))!==-1&&this.globalEvents[uA].splice(Ae,1):this.scope.events.remove(this.scope.document,uA,BA,QA),this},"The interact.off() method is being deprecated"),sA.debug=function(){return this.scope},sA.supportsTouch=function(){return f.supportsTouch},sA.supportsPointerEvent=function(){return f.supportsPointerEvent},sA.stop=function(){for(var uA=0,BA=this.scope.interactions.list;uA<BA.length;uA++)BA[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,BA){this.scope.addDocument(uA,BA)},sA.removeDocument=function(uA){this.scope.removeDocument(uA)},sA}(this),this.InteractEvent=si,this.Interactable=void 0,this.interactables=new js(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(iA){return R.removeDocument(iA.target)};var Z=this;this.Interactable=function(iA){I(uA,iA);var sA=O(uA);function uA(){return m(this,uA),sA.apply(this,arguments)}return y(uA,[{key:"_defaults",get:function(){return Z.defaults}},{key:"set",value:function(BA){return H(S(uA.prototype),"set",this).call(this,BA),Z.fire("interactable:set",{options:BA,interactable:this}),this}},{key:"unset",value:function(){H(S(uA.prototype),"unset",this).call(this);var BA=Z.interactables.list.indexOf(this);BA<0||(Z.interactables.list.splice(BA,1),Z.fire("interactable:unset",{interactable:this}))}}]),uA}(Ii)}return y(L,[{key:"addListeners",value:function(R,Z){this.listenerMaps.push({id:Z,map:R})}},{key:"fire",value:function(R,Z){for(var iA=0,sA=this.listenerMaps;iA<sA.length;iA++){var uA=sA[iA].map[R];if(uA&&uA(Z,this,R)===!1)return!1}}},{key:"init",value:function(R){return this.isInitialized?this:function(Z,iA){return Z.isInitialized=!0,u.window(iA)&&k(iA),r.init(iA),f.init(iA),we.init(iA),Z.window=iA,Z.document=iA.document,Z.usePlugin(Gt),Z.usePlugin(dt),Z}(this,R)}},{key:"pluginIsInstalled",value:function(R){var Z=R.id;return Z?!!this._plugins.map[Z]:this._plugins.list.indexOf(R)!==-1}},{key:"usePlugin",value:function(R,Z){if(!this.isInitialized)return this;if(this.pluginIsInstalled(R))return this;if(R.id&&(this._plugins.map[R.id]=R),this._plugins.list.push(R),R.install&&R.install(this,Z),R.listeners&&R.before){for(var iA=0,sA=this.listenerMaps.length,uA=R.before.reduce(function(QA,DA){return QA[DA]=!0,QA[nn(DA)]=!0,QA},{});iA<sA;iA++){var BA=this.listenerMaps[iA].id;if(BA&&(uA[BA]||uA[nn(BA)]))break}this.listenerMaps.splice(iA,0,{id:R.id,map:R.listeners})}else R.listeners&&this.listenerMaps.push({id:R.id,map:R.listeners});return this}},{key:"addDocument",value:function(R,Z){if(this.getDocIndex(R)!==-1)return!1;var iA=_(R);Z=Z?q({},Z):{},this.documents.push({doc:R,options:Z}),this.events.documents.push(R),R!==this.document&&this.events.add(iA,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:R,window:iA,scope:this,options:Z})}},{key:"removeDocument",value:function(R){var Z=this.getDocIndex(R),iA=_(R),sA=this.documents[Z].options;this.events.remove(iA,"unload",this.onWindowUnload),this.documents.splice(Z,1),this.events.documents.splice(Z,1),this.fire("scope:remove-document",{doc:R,window:iA,scope:this,options:sA})}},{key:"getDocIndex",value:function(R){for(var Z=0;Z<this.documents.length;Z++)if(this.documents[Z].doc===R)return Z;return-1}},{key:"getDocOptions",value:function(R){var Z=this.getDocIndex(R);return Z===-1?null:this.documents[Z].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),L}();function nn(L){return L&&L.replace(/\/.*$/,"")}var ra=new oa,Kt=ra.interactStatic,qs=typeof globalThis<"u"?globalThis:window;ra.init(qs);var Xs=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(L){var R=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(iA){var sA=iA[0],uA=iA[1];return sA in L||uA in L}),Z=function(iA,sA){for(var uA=L.range,BA=L.limits,QA=BA===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:BA,DA=L.offset,RA=DA===void 0?{x:0,y:0}:DA,vA={range:uA,grid:L,x:null,y:null},TA=0;TA<R.length;TA++){var Ae=R[TA],ge=Ae[0],le=Ae[1],pe=Math.round((iA-RA.x)/L[ge]),ve=Math.round((sA-RA.y)/L[le]);vA[ge]=Math.max(QA.left,Math.min(QA.right,pe*L[ge]+RA.x)),vA[le]=Math.max(QA.top,Math.min(QA.bottom,ve*L[le]+RA.y))}return vA};return Z.grid=L,Z.coordFields=R,Z}}),Vs={id:"snappers",install:function(L){var R=L.interactStatic;R.snappers=q(R.snappers||{},Xs),R.createSnapGrid=R.snappers.grid}},Al=Vs,on={start:function(L){var R=L.state,Z=L.rect,iA=L.edges,sA=L.pageCoords,uA=R.options,BA=uA.ratio,QA=uA.enabled,DA=R.options,RA=DA.equalDelta,vA=DA.modifiers;BA==="preserve"&&(BA=Z.width/Z.height),R.startCoords=q({},sA),R.startRect=q({},Z),R.ratio=BA,R.equalDelta=RA;var TA=R.linkedEdges={top:iA.top||iA.left&&!iA.bottom,left:iA.left||iA.top&&!iA.right,bottom:iA.bottom||iA.right&&!iA.top,right:iA.right||iA.bottom&&!iA.left};if(R.xIsPrimaryAxis=!(!iA.left&&!iA.right),R.equalDelta){var Ae=(TA.left?1:-1)*(TA.top?1:-1);R.edgeSign={x:Ae,y:Ae}}else R.edgeSign={x:TA.left?-1:1,y:TA.top?-1:1};if(QA!==!1&&q(iA,TA),vA!=null&&vA.length){var ge=new Vo(L.interaction);ge.copyFrom(L.interaction.modification),ge.prepareStates(vA),R.subModification=ge,ge.startAll(i({},L))}},set:function(L){var R=L.state,Z=L.rect,iA=L.coords,sA=R.linkedEdges,uA=q({},iA),BA=R.equalDelta?Rg:hn;if(q(L.edges,sA),BA(R,R.xIsPrimaryAxis,iA,Z),!R.subModification)return null;var QA=q({},Z);gA(sA,QA,{x:iA.x-uA.x,y:iA.y-uA.y});var DA=R.subModification.setAll(i(i({},L),{},{rect:QA,edges:sA,pageCoords:iA,prevCoords:iA,prevRect:QA})),RA=DA.delta;return DA.changed&&(BA(R,Math.abs(RA.x)>Math.abs(RA.y),DA.coords,DA.rect),q(iA,DA.coords)),DA.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Rg(L,R,Z){var iA=L.startCoords,sA=L.edgeSign;R?Z.y=iA.y+(Z.x-iA.x)*sA.y:Z.x=iA.x+(Z.y-iA.y)*sA.x}function hn(L,R,Z,iA){var sA=L.startRect,uA=L.startCoords,BA=L.ratio,QA=L.edgeSign;if(R){var DA=iA.width/BA;Z.y=uA.y+(DA-sA.height)*QA.y}else{var RA=iA.height*BA;Z.x=uA.x+(RA-sA.width)*QA.x}}var Lg=Ln(on,"aspectRatio"),aa=function(){};aa._defaults={};var Dn=aa;function Pn(L,R,Z){return u.func(L)?oA(L,R.interactable,R.element,[Z.x,Z.y,R]):oA(L,R.interactable,R.element)}var Ui={start:function(L){var R=L.rect,Z=L.startOffset,iA=L.state,sA=L.interaction,uA=L.pageCoords,BA=iA.options,QA=BA.elementRect,DA=q({left:0,top:0,right:0,bottom:0},BA.offset||{});if(R&&QA){var RA=Pn(BA.restriction,sA,uA);if(RA){var vA=RA.right-RA.left-R.width,TA=RA.bottom-RA.top-R.height;vA<0&&(DA.left+=vA,DA.right+=vA),TA<0&&(DA.top+=TA,DA.bottom+=TA)}DA.left+=Z.left-R.width*QA.left,DA.top+=Z.top-R.height*QA.top,DA.right+=Z.right-R.width*(1-QA.right),DA.bottom+=Z.bottom-R.height*(1-QA.bottom)}iA.offset=DA},set:function(L){var R=L.coords,Z=L.interaction,iA=L.state,sA=iA.options,uA=iA.offset,BA=Pn(sA.restriction,Z,R);if(BA){var QA=function(DA){return!DA||"left"in DA&&"top"in DA||((DA=q({},DA)).left=DA.x||0,DA.top=DA.y||0,DA.right=DA.right||DA.left+DA.width,DA.bottom=DA.bottom||DA.top+DA.height),DA}(BA);R.x=Math.max(Math.min(QA.right-uA.right,R.x),QA.left+uA.left),R.y=Math.max(Math.min(QA.bottom-uA.bottom,R.y),QA.top+uA.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Ct=Ln(Ui,"restrict"),Jn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},or={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function el(L,R){for(var Z=0,iA=["top","left","bottom","right"];Z<iA.length;Z++){var sA=iA[Z];sA in L||(L[sA]=R[sA])}return L}var wi={noInner:Jn,noOuter:or,start:function(L){var R,Z=L.interaction,iA=L.startOffset,sA=L.state,uA=sA.options;uA&&(R=dA(Pn(uA.offset,Z,Z.coords.start.page))),R=R||{x:0,y:0},sA.offset={top:R.y+iA.top,left:R.x+iA.left,bottom:R.y-iA.bottom,right:R.x-iA.right}},set:function(L){var R=L.coords,Z=L.edges,iA=L.interaction,sA=L.state,uA=sA.offset,BA=sA.options;if(Z){var QA=q({},R),DA=Pn(BA.inner,iA,QA)||{},RA=Pn(BA.outer,iA,QA)||{};el(DA,Jn),el(RA,or),Z.top?R.y=Math.min(Math.max(RA.top+uA.top,QA.y),DA.top+uA.top):Z.bottom&&(R.y=Math.max(Math.min(RA.bottom+uA.bottom,QA.y),DA.bottom+uA.bottom)),Z.left?R.x=Math.min(Math.max(RA.left+uA.left,QA.x),DA.left+uA.left):Z.right&&(R.x=Math.max(Math.min(RA.right+uA.right,QA.x),DA.right+uA.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Gg=Ln(wi,"restrictEdges"),Pg=q({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(L){}},Ui.defaults),Hg=Ln({start:Ui.start,set:Ui.set,defaults:Pg},"restrictRect"),tl={width:-1/0,height:-1/0},rr={width:1/0,height:1/0},Yi=Ln({start:function(L){return wi.start(L)},set:function(L){var R=L.interaction,Z=L.state,iA=L.rect,sA=L.edges,uA=Z.options;if(sA){var BA=mA(Pn(uA.min,R,L.coords))||tl,QA=mA(Pn(uA.max,R,L.coords))||rr;Z.options={endOnly:uA.endOnly,inner:q({},wi.noInner),outer:q({},wi.noOuter)},sA.top?(Z.options.inner.top=iA.bottom-BA.height,Z.options.outer.top=iA.bottom-QA.height):sA.bottom&&(Z.options.inner.bottom=iA.top+BA.height,Z.options.outer.bottom=iA.top+QA.height),sA.left?(Z.options.inner.left=iA.right-BA.width,Z.options.outer.left=iA.right-QA.width):sA.right&&(Z.options.inner.right=iA.left+BA.width,Z.options.outer.right=iA.left+QA.width),wi.set(L),Z.options=uA}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),sa={start:function(L){var R,Z=L.interaction,iA=L.interactable,sA=L.element,uA=L.rect,BA=L.state,QA=L.startOffset,DA=BA.options,RA=DA.offsetWithOrigin?function(Ae){var ge=Ae.interaction.element,le=dA(oA(Ae.state.options.origin,null,null,[ge])),pe=le||wA(Ae.interactable,ge,Ae.interaction.prepared.name);return pe}(L):{x:0,y:0};if(DA.offset==="startCoords")R={x:Z.coords.start.page.x,y:Z.coords.start.page.y};else{var vA=oA(DA.offset,iA,sA,[Z]);(R=dA(vA)||{x:0,y:0}).x+=RA.x,R.y+=RA.y}var TA=DA.relativePoints;BA.offsets=uA&&TA&&TA.length?TA.map(function(Ae,ge){return{index:ge,relativePoint:Ae,x:QA.left-uA.width*Ae.x+R.x,y:QA.top-uA.height*Ae.y+R.y}}):[{index:0,relativePoint:null,x:R.x,y:R.y}]},set:function(L){var R=L.interaction,Z=L.coords,iA=L.state,sA=iA.options,uA=iA.offsets,BA=wA(R.interactable,R.element,R.prepared.name),QA=q({},Z),DA=[];sA.offsetWithOrigin||(QA.x-=BA.x,QA.y-=BA.y);for(var RA=0,vA=uA;RA<vA.length;RA++)for(var TA=vA[RA],Ae=QA.x-TA.x,ge=QA.y-TA.y,le=0,pe=sA.targets.length;le<pe;le++){var ve=sA.targets[le],Qe=void 0;(Qe=u.func(ve)?ve(Ae,ge,R._proxy,TA,le):ve)&&DA.push({x:(u.number(Qe.x)?Qe.x:Ae)+TA.x,y:(u.number(Qe.y)?Qe.y:ge)+TA.y,range:u.number(Qe.range)?Qe.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}},zA=0;zA<DA.length;zA++){var UA=DA[zA],ee=UA.range,Be=UA.x-QA.x,He=UA.y-QA.y,Ke=cA(Be,He),Oe=Ke<=ee;ee===1/0&&_A.inRange&&_A.range!==1/0&&(Oe=!1),_A.target&&!(Oe?_A.inRange&&ee!==1/0?Ke/ee<_A.distance/_A.range:ee===1/0&&_A.range!==1/0||Ke<_A.distance:!_A.inRange&&Ke<_A.distance)||(_A.target=UA,_A.distance=Ke,_A.range=ee,_A.inRange=Oe,_A.delta.x=Be,_A.delta.y=He)}return _A.inRange&&(Z.x=_A.target.x,Z.y=_A.target.y),iA.closest=_A,_A},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},nl=Ln(sa,"snap"),Qo={start:function(L){var R=L.state,Z=L.edges,iA=R.options;if(!Z)return null;L.state={options:{targets:null,relativePoints:[{x:Z.left?0:1,y:Z.top?0:1}],offset:iA.offset||"self",origin:{x:0,y:0},range:iA.range}},R.targetFields=R.targetFields||[["width","height"],["x","y"]],sa.start(L),R.offsets=L.state.offsets,L.state=R},set:function(L){var R=L.interaction,Z=L.state,iA=L.coords,sA=Z.options,uA=Z.offsets,BA={x:iA.x-uA[0].x,y:iA.y-uA[0].y};Z.options=q({},sA),Z.options.targets=[];for(var QA=0,DA=sA.targets||[];QA<DA.length;QA++){var RA=DA[QA],vA=void 0;if(vA=u.func(RA)?RA(BA.x,BA.y,R):RA){for(var TA=0,Ae=Z.targetFields;TA<Ae.length;TA++){var ge=Ae[TA],le=ge[0],pe=ge[1];if(le in vA||pe in vA){vA.x=vA[le],vA.y=vA[pe];break}}Z.options.targets.push(vA)}}var ve=sa.set(L);return Z.options=sA,ve},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},la=Ln(Qo,"snapSize"),fo={aspectRatio:Lg,restrictEdges:Gg,restrict:Ct,restrictRect:Hg,restrictSize:Yi,snapEdges:Ln({start:function(L){var R=L.edges;return R?(L.state.targetFields=L.state.targetFields||[[R.left?"left":"right",R.top?"top":"bottom"]],Qo.start(L)):null},set:Qo.set,defaults:q(Ti(Qo.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:nl,snapSize:la,spring:Dn,avoid:Dn,transform:Dn,rubberband:Dn},il={id:"modifiers",install:function(L){var R=L.interactStatic;for(var Z in L.usePlugin(Ar),L.usePlugin(Al),R.modifiers=fo,fo){var iA=fo[Z],sA=iA._defaults,uA=iA._methods;sA._methods=uA,L.defaults.perAction[Z]=sA}}},Kg=il,ar=function(L){I(Z,L);var R=O(Z);function Z(iA,sA,uA,BA,QA,DA){var RA;if(m(this,Z),U(T(RA=R.call(this,QA)),uA),uA!==sA&&U(T(RA),sA),RA.timeStamp=DA,RA.originalEvent=uA,RA.type=iA,RA.pointerId=HA(sA),RA.pointerType=xA(sA),RA.target=BA,RA.currentTarget=null,iA==="tap"){var vA=QA.getPointerIndex(sA);RA.dt=RA.timeStamp-QA.pointers[vA].downTime;var TA=RA.timeStamp-QA.tapTime;RA.double=!!QA.prevTap&&QA.prevTap.type!=="doubletap"&&QA.prevTap.target===RA.target&&TA<500}else iA==="doubletap"&&(RA.dt=sA.timeStamp-QA.tapTime,RA.double=!0);return RA}return y(Z,[{key:"_subtractOrigin",value:function(iA){var sA=iA.x,uA=iA.y;return this.pageX-=sA,this.pageY-=uA,this.clientX-=sA,this.clientY-=uA,this}},{key:"_addOrigin",value:function(iA){var sA=iA.x,uA=iA.y;return this.pageX+=sA,this.pageY+=uA,this.clientX+=sA,this.clientY+=uA,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),Z}(he),bi={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(L){L.pointerEvents=bi,L.defaults.actions.pointerEvents=bi.defaults,q(L.actions.phaselessTypes,bi.types)},listeners:{"interactions:new":function(L){var R=L.interaction;R.prevTap=null,R.tapTime=0},"interactions:update-pointer":function(L){var R=L.down,Z=L.pointerInfo;!R&&Z.hold||(Z.hold={duration:1/0,timeout:null})},"interactions:move":function(L,R){var Z=L.interaction,iA=L.pointer,sA=L.event,uA=L.eventTarget;L.duplicate||Z.pointerIsDown&&!Z.pointerWasMoved||(Z.pointerIsDown&&Yt(L),li({interaction:Z,pointer:iA,event:sA,eventTarget:uA,type:"move"},R))},"interactions:down":function(L,R){(function(Z,iA){for(var sA=Z.interaction,uA=Z.pointer,BA=Z.event,QA=Z.eventTarget,DA=Z.pointerIndex,RA=sA.pointers[DA].hold,vA=j(QA),TA={interaction:sA,pointer:uA,event:BA,eventTarget:QA,type:"hold",targets:[],path:vA,node:null},Ae=0;Ae<vA.length;Ae++){var ge=vA[Ae];TA.node=ge,iA.fire("pointerEvents:collect-targets",TA)}if(TA.targets.length){for(var le=1/0,pe=0,ve=TA.targets;pe<ve.length;pe++){var Qe=ve[pe].eventable.options.holdDuration;Qe<le&&(le=Qe)}RA.duration=le,RA.timeout=setTimeout(function(){li({interaction:sA,eventTarget:QA,pointer:uA,event:BA,type:"hold"},iA)},le)}})(L,R),li(L,R)},"interactions:up":function(L,R){Yt(L),li(L,R),function(Z,iA){var sA=Z.interaction,uA=Z.pointer,BA=Z.event,QA=Z.eventTarget;sA.pointerWasMoved||li({interaction:sA,eventTarget:QA,pointer:uA,event:BA,type:"tap"},iA)}(L,R)},"interactions:cancel":function(L,R){Yt(L),li(L,R)}},PointerEvent:ar,fire:li,collectEventTargets:ca,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 li(L,R){var Z=L.interaction,iA=L.pointer,sA=L.event,uA=L.eventTarget,BA=L.type,QA=L.targets,DA=QA===void 0?ca(L,R):QA,RA=new ar(BA,iA,sA,uA,Z,R.now());R.fire("pointerEvents:new",{pointerEvent:RA});for(var vA={interaction:Z,pointer:iA,event:sA,eventTarget:uA,targets:DA,type:BA,pointerEvent:RA},TA=0;TA<DA.length;TA++){var Ae=DA[TA];for(var ge in Ae.props||{})RA[ge]=Ae.props[ge];var le=wA(Ae.eventable,Ae.node);if(RA._subtractOrigin(le),RA.eventable=Ae.eventable,RA.currentTarget=Ae.node,Ae.eventable.fire(RA),RA._addOrigin(le),RA.immediatePropagationStopped||RA.propagationStopped&&TA+1<DA.length&&DA[TA+1].node!==RA.currentTarget)break}if(R.fire("pointerEvents:fired",vA),BA==="tap"){var pe=RA.double?li({interaction:Z,pointer:iA,event:sA,eventTarget:uA,type:"doubletap"},R):RA;Z.prevTap=pe,Z.tapTime=pe.timeStamp}return RA}function ca(L,R){var Z=L.interaction,iA=L.pointer,sA=L.event,uA=L.eventTarget,BA=L.type,QA=Z.getPointerIndex(iA),DA=Z.pointers[QA];if(BA==="tap"&&(Z.pointerWasMoved||!DA||DA.downTarget!==uA))return[];for(var RA=j(uA),vA={interaction:Z,pointer:iA,event:sA,eventTarget:uA,type:BA,path:RA,targets:[],node:null},TA=0;TA<RA.length;TA++){var Ae=RA[TA];vA.node=Ae,R.fire("pointerEvents:collect-targets",vA)}return BA==="hold"&&(vA.targets=vA.targets.filter(function(ge){var le,pe;return ge.eventable.options.holdDuration===((le=Z.pointers[QA])==null||(pe=le.hold)==null?void 0:pe.duration)})),vA.targets}function Yt(L){var R=L.interaction,Z=L.pointerIndex,iA=R.pointers[Z].hold;iA&&iA.timeout&&(clearTimeout(iA.timeout),iA.timeout=null)}var ga=Object.freeze({__proto__:null,default:bi});function Io(L){var R=L.interaction;R.holdIntervalHandle&&(clearInterval(R.holdIntervalHandle),R.holdIntervalHandle=null)}var ol={id:"pointer-events/holdRepeat",install:function(L){L.usePlugin(bi);var R=L.pointerEvents;R.defaults.holdRepeatInterval=0,R.types.holdrepeat=L.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(L,R){return L["pointerEvents:".concat(R)]=Io,L},{"pointerEvents:new":function(L){var R=L.pointerEvent;R.type==="hold"&&(R.count=(R.count||0)+1)},"pointerEvents:fired":function(L,R){var Z=L.interaction,iA=L.pointerEvent,sA=L.eventTarget,uA=L.targets;if(iA.type==="hold"&&uA.length){var BA=uA[0].eventable.options.holdRepeatInterval;BA<=0||(Z.holdIntervalHandle=setTimeout(function(){R.pointerEvents.fire({interaction:Z,eventTarget:sA,type:"hold",pointer:iA,event:iA},R)},BA))}}})},rl=ol,Tg={id:"pointer-events/interactableTargets",install:function(L){var R=L.Interactable;R.prototype.pointerEvents=function(iA){return q(this.events.options,iA),this};var Z=R.prototype._backCompatOption;R.prototype._backCompatOption=function(iA,sA){var uA=Z.call(this,iA,sA);return uA===this&&(this.events.options[iA]=sA),uA}},listeners:{"pointerEvents:collect-targets":function(L,R){var Z=L.targets,iA=L.node,sA=L.type,uA=L.eventTarget;R.interactables.forEachMatch(iA,function(BA){var QA=BA.events,DA=QA.options;QA.types[sA]&&QA.types[sA].length&&BA.testIgnoreAllow(DA,iA,uA)&&Z.push({node:iA,eventable:QA,props:{interactable:BA}})})},"interactable:new":function(L){var R=L.interactable;R.events.getRect=function(Z){return R.getRect(Z)}},"interactable:set":function(L,R){var Z=L.interactable,iA=L.options;q(Z.events.options,R.pointerEvents.defaults),q(Z.events.options,iA.pointerEvents||{})}}},Ug=Tg,Yg={id:"pointer-events",install:function(L){L.usePlugin(ga),L.usePlugin(rl),L.usePlugin(Ug)}},Og=Yg,$g={id:"reflow",install:function(L){var R=L.Interactable;L.actions.phases.reflow=!0,R.prototype.reflow=function(Z){return function(iA,sA,uA){for(var BA=iA.getAllElements(),QA=uA.window.Promise,DA=QA?[]:null,RA=function(){var TA=BA[vA],Ae=iA.getRect(TA);if(!Ae)return 1;var ge,le=OA(uA.interactions.list,function(Qe){return Qe.interacting()&&Qe.interactable===iA&&Qe.element===TA&&Qe.prepared.name===sA.name});if(le)le.move(),DA&&(ge=le._reflowPromise||new QA(function(Qe){le._reflowResolve=Qe}));else{var pe=mA(Ae),ve=function(Qe){return{coords:Qe,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:pe.x,y:pe.y},client:{x:pe.x,y:pe.y},timeStamp:uA.now()});ge=function(Qe,_A,zA,UA,ee){var Be=Qe.interactions.new({pointerType:"reflow"}),He={interaction:Be,event:ee,pointer:ee,eventTarget:zA,phase:"reflow"};Be.interactable=_A,Be.element=zA,Be.prevEvent=ee,Be.updatePointer(ee,ee,zA,!0),tA(Be.coords.delta),ut(Be.prepared,UA),Be._doPhase(He);var Ke=Qe.window,Oe=Ke.Promise,rn=Oe?new Oe(function(Zn){Be._reflowResolve=Zn}):void 0;return Be._reflowPromise=rn,Be.start(UA,_A,zA),Be._interacting?(Be.move(He),Be.end(ee)):(Be.stop(),Be._reflowResolve()),Be.removePointer(ee,ee),rn}(uA,iA,TA,sA,ve)}DA&&DA.push(ge)},vA=0;vA<BA.length&&!RA();vA++);return DA&&QA.all(DA).then(function(){return iA})}(this,Z,L)}},listeners:{"interactions:stop":function(L,R){var Z=L.interaction;Z.pointerType==="reflow"&&(Z._reflowResolve&&Z._reflowResolve(),function(iA,sA){iA.splice(iA.indexOf(sA),1)}(R.interactions.list,Z))}}},Oi=$g;if(Kt.use(ai),Kt.use(ta),Kt.use(Og),Kt.use(xg),Kt.use(Kg),Kt.use(ri),Kt.use(VA),Kt.use(ze),Kt.use(Oi),Kt.default=Kt,g(n)==="object"&&n)try{n.exports=Kt}catch{}return Kt.default=Kt,Kt})}(Ds,Ds.exports);var V1=Ds.exports;const vs=Td(V1),Ak=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,g=t,m=A.inject(T1),o=A.inject(U1);if(!m)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const y=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 I=!1,S=!1,N=NaN,T=NaN,O=NaN,H=NaN,P=-1,v=-1,E=-1,F=-1,k=i.x,_=i.y,B=i.w,p=i.h;const u=A.ref(),l=A.reactive({i:A.toRef(i,"i"),state:w,wrapper:u,calcXY:oA});function d(nA){X(nA)}function s(){lA()}function h(nA){vt(i.isDraggable)&&(w.draggable=nA)}function C(nA){vt(i.isResizable)&&(w.resizable=nA)}function a(nA){vt(i.isBounded)&&(w.bounded=nA)}function r(nA){w.transformScale=nA}function Q(nA){w.rowHeight=nA}function f(nA){w.maxRows=nA}function M(){w.rtl=AC()==="rtl",lA()}function x(nA){w.cols=Math.floor(nA)}m.increaseItem(l),A.onBeforeMount(()=>{w.rtl=AC()==="rtl"}),A.onMounted(()=>{m.responsive&&m.lastBreakpoint?w.cols=j1(m.lastBreakpoint,m.cols):w.cols=m.colNum,w.rowHeight=m.rowHeight,w.containerWidth=m.width!==null?m.width:100,w.margin=m.margin!==void 0?m.margin.map(Number):[10,10],w.maxRows=m.maxRows,vt(i.isDraggable)?w.draggable=m.isDraggable:w.draggable=i.isDraggable,vt(i.isResizable)?w.resizable=m.isResizable:w.resizable=i.isResizable,vt(i.isBounded)?w.bounded=m.isBounded:w.bounded=i.isBounded,w.transformScale=m.transformScale,w.useCssTransforms=m.useCssTransforms,w.useStyleCursor=m.useStyleCursor,A.watchEffect(()=>{k=i.x,_=i.y,p=i.h,B=i.w,rt(D)}),o.on("updateWidth",d),o.on("compact",s),o.on("setDraggable",h),o.on("setResizable",C),o.on("setBounded",a),o.on("setTransformScale",r),o.on("setRowHeight",Q),o.on("setMaxRows",f),o.on("directionchange",M),o.on("setColNum",x)}),A.onBeforeUnmount(()=>{o.off("updateWidth",d),o.off("compact",s),o.off("setDraggable",h),o.off("setResizable",C),o.off("setBounded",a),o.off("setTransformScale",r),o.off("setRowHeight",Q),o.off("setMaxRows",f),o.off("directionchange",M),o.off("setColNum",x),y.value&&(y.value.unset(),y.value=null),m.decreaseItem(l)}),e({state:w,wrapper:u});const K=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,z=A.computed(()=>w.resizable&&!i.static),AA=A.computed(()=>m.isMirrored?!w.rtl:w.rtl),eA=A.computed(()=>(w.draggable||w.resizable)&&!i.static),V=J1("item"),$=A.computed(()=>({[V.b()]:!0,[V.bm("resizable")]:z.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")]:K&&eA.value})),J=A.computed(()=>[V.be("resizer"),AA.value&&V.bem("resizer","rtl")].filter(Boolean));A.watch(()=>i.isDraggable,nA=>{w.draggable=nA}),A.watch(()=>i.static,()=>{rt(U),rt(tA)}),A.watch(()=>w.draggable,()=>{rt(U)}),A.watch(()=>i.isResizable,nA=>{w.resizable=nA}),A.watch(()=>i.isBounded,nA=>{w.bounded=nA}),A.watch(()=>w.resizable,()=>{rt(tA)}),A.watch(()=>w.rowHeight,()=>{rt(D),rt(j)}),A.watch([()=>w.cols,()=>w.containerWidth],()=>{rt(tA),rt(D),rt(j)}),A.watch([()=>i.minH,()=>i.maxH,()=>i.minW,()=>i.maxW],()=>{rt(tA)}),A.watch(AA,()=>{rt(tA),rt(D)}),A.watch([()=>m.margin,()=>m.margin[0],()=>m.margin[1]],()=>{const nA=m.margin;!nA||nA[0]===w.margin[0]&&nA[1]===w.margin[1]||(w.margin=nA.map(Number),rt(D),rt(j))});function D(){i.x+i.w>w.cols?(k=0,B=i.w>w.cols?w.cols:i.w):(k=i.x,B=i.w);const nA=aA(k,_,B,p);w.isDragging&&(nA.top=w.dragging.top,AA.value?nA.right=w.dragging.left:nA.left=w.dragging.left),w.isResizing&&(nA.width=w.resizing.width,nA.height=w.resizing.height);let pA;w.useCssTransforms?AA.value?pA=O1(nA.top,nA.right,nA.width,nA.height):pA=Y1(nA.top,nA.left,nA.width,nA.height):AA.value?pA=z1(nA.top,nA.right,nA.width,nA.height):pA=$1(nA.top,nA.left,nA.width,nA.height),w.style=pA}function j(){const nA={};for(const pA of["width","height"]){const kA=w.style[pA].match(/^(\d+)px$/);if(!kA)return;nA[pA]=kA[1]}g("container-resized",i.i,i.h,i.w,nA.height,nA.width)}function G(nA){if(i.static)return;const pA=nA.type;if(pA==="resizestart"&&w.isResizing||pA!=="resizestart"&&!w.isResizing)return;const kA=Xp(nA);if(vt(kA))return;const{x:HA,y:JA}=kA,WA={width:0,height:0};let bA;switch(pA){case"resizestart":{tA(),P=B,v=p,bA=aA(k,_,B,p),WA.width=bA.width,WA.height=bA.height,w.resizing=WA,w.isResizing=!0;break}case"resizemove":{!nA.edges.right&&!nA.edges.left&&(O=HA),!nA.edges.top&&!nA.edges.bottom&&(H=JA);const KA=Vp(O,H,HA,JA);AA.value?WA.width=w.resizing.width-KA.deltaX/w.transformScale:WA.width=w.resizing.width+KA.deltaX/w.transformScale,WA.height=w.resizing.height+KA.deltaY/w.transformScale,w.resizing=WA;break}case"resizeend":{bA=aA(k,_,B,p),WA.width=bA.width,WA.height=bA.height,w.resizing={width:-1,height:-1},w.isResizing=!1;break}}bA=wA(WA.height,WA.width),bA.w<i.minW&&(bA.w=i.minW),bA.w>i.maxW&&(bA.w=i.maxW),bA.h<i.minH&&(bA.h=i.minH),bA.h>i.maxH&&(bA.h=i.maxH),bA.h<1&&(bA.h=1),bA.w<1&&(bA.w=1),O=HA,H=JA,(B!==bA.w||p!==bA.h)&&g("resize",i.i,bA.h,bA.w,WA.height,WA.width),nA.type==="resizeend"&&(P!==B||v!==p)&&g("resized",i.i,bA.h,bA.w,WA.height,WA.width),o.emit("resizeEvent",nA.type,i.i,k,_,bA.h,bA.w)}function q(nA){if(i.static||w.isResizing)return;const pA=nA.type;if(pA==="dragstart"&&w.isDragging||pA!=="dragstart"&&!w.isDragging)return;const kA=Xp(nA);if(vt(kA))return;const{x:HA,y:JA}=kA,WA=nA.target;if(!WA.offsetParent)return;const bA={top:0,left:0};switch(pA){case"dragstart":{E=k,F=_;const qA=WA.offsetParent.getBoundingClientRect(),SA=WA.getBoundingClientRect(),xA=SA.left/w.transformScale,XA=qA.left/w.transformScale,he=SA.right/w.transformScale,Ie=qA.right/w.transformScale,_e=SA.top/w.transformScale,NA=qA.top/w.transformScale;AA.value?bA.left=(he-Ie)*-1:bA.left=xA-XA,bA.top=_e-NA,w.dragging=bA,w.isDragging=!0;break}case"dragmove":{const qA=Vp(N,T,HA,JA);if(AA.value?bA.left=w.dragging.left-qA.deltaX/w.transformScale:bA.left=w.dragging.left+qA.deltaX/w.transformScale,bA.top=w.dragging.top+qA.deltaY/w.transformScale,w.bounded){const SA=WA.offsetParent.clientHeight-mA(i.h,w.rowHeight,w.margin[1]);bA.top=gA(bA.top,0,SA);const xA=dA(),XA=w.containerWidth-mA(i.w,xA,w.margin[0]);bA.left=gA(bA.left,0,XA)}w.dragging=bA;break}case"dragend":{const qA=WA.offsetParent.getBoundingClientRect(),SA=WA.getBoundingClientRect(),xA=SA.left/w.transformScale,XA=qA.left/w.transformScale,he=SA.right/w.transformScale,Ie=qA.right/w.transformScale,_e=SA.top/w.transformScale,NA=qA.top/w.transformScale;AA.value?bA.left=(he-Ie)*-1:bA.left=xA-XA,bA.top=_e-NA,w.dragging={top:-1,left:-1},w.isDragging=!1;break}}let KA;AA.value,KA=oA(bA.top,bA.left),N=HA,T=JA,(k!==KA.x||_!==KA.y)&&g("move",i.i,KA.x,KA.y),nA.type==="dragend"&&(E!==k||F!==_)&&g("moved",i.i,KA.x,KA.y),o.emit("dragEvent",nA.type,i.i,KA.x,KA.y,p,B)}function aA(nA,pA,kA,HA){const JA=dA();let WA;return AA.value?WA={right:Math.round(JA*nA+(nA+1)*w.margin[0]),top:Math.round(w.rowHeight*pA+(pA+1)*w.margin[1]),width:kA===1/0?kA:Math.round(JA*kA+Math.max(0,kA-1)*w.margin[0]),height:HA===1/0?HA:Math.round(w.rowHeight*HA+Math.max(0,HA-1)*w.margin[1])}:WA={left:Math.round(JA*nA+(nA+1)*w.margin[0]),top:Math.round(w.rowHeight*pA+(pA+1)*w.margin[1]),width:kA===1/0?kA:Math.round(JA*kA+Math.max(0,kA-1)*w.margin[0]),height:HA===1/0?HA:Math.round(w.rowHeight*HA+Math.max(0,HA-1)*w.margin[1])},WA}function oA(nA,pA){const kA=dA();let HA=Math.round((pA-w.margin[0])/(kA+w.margin[0])),JA=Math.round((nA-w.margin[1])/(w.rowHeight+w.margin[1]));return HA=Math.max(Math.min(HA,w.cols-B),0),JA=Math.max(Math.min(JA,w.maxRows-p),0),{x:HA,y:JA}}function dA(){return(w.containerWidth-w.margin[0]*(w.cols+1))/w.cols}function mA(nA,pA,kA){return Number.isFinite(nA)?Math.round(pA*nA+Math.max(0,nA-1)*kA):nA}function gA(nA,pA,kA){return Math.max(Math.min(nA,kA),pA)}function wA(nA,pA,kA=!1){const HA=dA();let JA=Math.round((pA+w.margin[0])/(HA+w.margin[0])),WA=0;return kA?WA=Math.ceil((nA+w.margin[1])/(w.rowHeight+w.margin[1])):WA=Math.round((nA+w.margin[1])/(w.rowHeight+w.margin[1])),JA=Math.max(Math.min(JA,w.cols-k),0),WA=Math.max(Math.min(WA,w.maxRows-_),0),{w:JA,h:WA}}function X(nA,pA){w.containerWidth=nA}function lA(){D()}function cA(){!y.value&&u.value&&(y.value=vs(u.value),w.useStyleCursor||y.value.styleCursor(!1))}const hA=ys(q);function U(){if(cA(),!!y.value)if(w.draggable&&!i.static){const nA={ignoreFrom:i.dragIgnoreFrom,allowFrom:i.dragAllowFrom,...i.dragOption};y.value.draggable(nA),I||(I=!0,y.value.on("dragstart dragmove dragend",pA=>{pA.type==="dragmove"?hA(pA):q(pA)}))}else y.value.draggable({enabled:!1})}const W=ys(G);function tA(){if(cA(),!!y.value)if(w.resizable&&!i.static){const nA=aA(0,0,i.maxW,i.maxH),pA=aA(0,0,i.minW,i.minH),kA={edges:{left:AA.value?`.${J.value[0]}`:!1,right:AA.value?!1:`.${J.value[0]}`,bottom:`.${J.value[0]}`,top:!1},ignoreFrom:i.resizeIgnoreFrom,restrictSize:{min:{height:pA.height*w.transformScale,width:pA.width*w.transformScale},max:{height:nA.height*w.transformScale,width:nA.width*w.transformScale}},...i.resizeOption};i.preserveAspectRatio&&(kA.modifiers=[vs.modifiers.aspectRatio({ratio:"preserve"})]),y.value.resizable(kA),S||(S=!0,y.value.on("resizestart resizemove resizeend",HA=>{HA.type==="resizemove"?W(HA):G(HA)}))}else y.value.resizable({enabled:!1})}return(nA,pA)=>(A.openBlock(),A.createElementBlock("section",{ref_key:"wrapper",ref:u,class:A.normalizeClass($.value),style:A.normalizeStyle(w.style)},[A.renderSlot(nA.$slots,"default"),z.value?(A.openBlock(),A.createElementBlock("span",{key:0,class:A.normalizeClass(J.value)},null,2)):A.createCommentVNode("",!0)],6))}}),so=typeof window<"u";var eC;so&&(eC=window==null?void 0:window.navigator)!=null&&eC.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function tC(n){return n!=null}function gg(){}const ek=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(ek)));const tk=so&&("ontouchstart"in window||ik()>0),nk=tk?"pointerdown":"click";function ik(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function ok(n,e,t=window.Event){const{type:i,bubbles:g=!1,cancelable:m=!1,...o}=e;if(!tC(i)||i==="")return!1;let y;return tC(t)?y=new t(i,{bubbles:g,cancelable:m}):(y=document.createEvent("HTMLEvents"),y.initEvent(i,g,m)),Object.assign(y,o),n.dispatchEvent(y)}const rk="clickoutside",ak=new Set;so&&document.addEventListener(nk,n=>{const e=n.target,t=n.composedPath&&n.composedPath();ak.forEach(i=>{i!==e&&(t?!t.includes(i):!i.contains(e))&&(!i.__transferElement||i.__transferElement!==e&&!i.__transferElement.contains(e))&&ok(i,{type:rk})})},!0);const sk=[["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 $r;if(so){for(const n of sk)if(n[1]in document){$r=n;break}}const lk=!!$r;A.computed(()=>!1);const ck=new Set,gk=new WeakMap;if(so&&$r){const n=$r[2],e=$r[4];document.addEventListener(e,()=>{if(ck.forEach(t=>{t.value=!1}),document[n]){const t=gk.get(document[n]);t&&(t.value=!0)}},!1)}const nC=new Map;nC.set("x",0),nC.set("y",0);var lo=[],dk=function(){return lo.some(function(n){return n.activeTargets.length>0})},uk=function(){return lo.some(function(n){return n.skippedTargets.length>0})},iC="ResizeObserver loop completed with undelivered notifications.",hk=function(){var n;typeof ErrorEvent=="function"?n=new ErrorEvent("error",{message:iC}):(n=document.createEvent("Event"),n.initEvent("error",!1,!1),n.message=iC),window.dispatchEvent(n)},zr;(function(n){n.BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(zr||(zr={}));var co=function(n){return Object.freeze(n)},pk=function(){function n(e,t){this.inlineSize=e,this.blockSize=t,co(this)}return n}(),oC=function(){function n(e,t,i,g){return this.x=e,this.y=t,this.width=i,this.height=g,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,g=e.top,m=e.right,o=e.bottom,y=e.left,w=e.width,I=e.height;return{x:t,y:i,top:g,right:m,bottom:o,left:y,width:w,height:I}},n.fromRect=function(e){return new n(e.x,e.y,e.width,e.height)},n}(),dg=function(n){return n instanceof SVGElement&&"getBBox"in n},rC=function(n){if(dg(n)){var e=n.getBBox(),t=e.width,i=e.height;return!t&&!i}var g=n,m=g.offsetWidth,o=g.offsetHeight;return!(m||o||n.getClientRects().length)},aC=function(n){var e;if(n instanceof Element)return!0;var t=(e=n==null?void 0:n.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(t&&n instanceof t.Element)},Ck=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},Jr=typeof window<"u"?window:{},ks=new WeakMap,sC=/auto|scroll/,Bk=/^tb|vertical/,mk=/msie|trident/i.test(Jr.navigator&&Jr.navigator.userAgent),ni=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 pk((t?e:n)||0,(t?n:e)||0)},lC=co({devicePixelContentBoxSize:Zo(),borderBoxSize:Zo(),contentBoxSize:Zo(),contentRect:new oC(0,0,0,0)}),cC=function(n,e){if(e===void 0&&(e=!1),ks.has(n)&&!e)return ks.get(n);if(rC(n))return ks.set(n,lC),lC;var t=getComputedStyle(n),i=dg(n)&&n.ownerSVGElement&&n.getBBox(),g=!mk&&t.boxSizing==="border-box",m=Bk.test(t.writingMode||""),o=!i&&sC.test(t.overflowY||""),y=!i&&sC.test(t.overflowX||""),w=i?0:ni(t.paddingTop),I=i?0:ni(t.paddingRight),S=i?0:ni(t.paddingBottom),N=i?0:ni(t.paddingLeft),T=i?0:ni(t.borderTopWidth),O=i?0:ni(t.borderRightWidth),H=i?0:ni(t.borderBottomWidth),P=i?0:ni(t.borderLeftWidth),v=N+I,E=w+S,F=P+O,k=T+H,_=y?n.offsetHeight-k-n.clientHeight:0,B=o?n.offsetWidth-F-n.clientWidth:0,p=g?v+F:0,u=g?E+k:0,l=i?i.width:ni(t.width)-p-B,d=i?i.height:ni(t.height)-u-_,s=l+v+B+F,h=d+E+_+k,C=co({devicePixelContentBoxSize:Zo(Math.round(l*devicePixelRatio),Math.round(d*devicePixelRatio),m),borderBoxSize:Zo(s,h,m),contentBoxSize:Zo(l,d,m),contentRect:new oC(N,w,l,d)});return ks.set(n,C),C},gC=function(n,e,t){var i=cC(n,t),g=i.borderBoxSize,m=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case zr.DEVICE_PIXEL_CONTENT_BOX:return o;case zr.BORDER_BOX:return g;default:return m}},Ek=function(){function n(e){var t=cC(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}(),dC=function(n){if(rC(n))return 1/0;for(var e=0,t=n.parentNode;t;)e+=1,t=t.parentNode;return e},Qk=function(){var n=1/0,e=[];lo.forEach(function(m){if(m.activeTargets.length!==0){var o=[];m.activeTargets.forEach(function(y){var w=new Ek(y.target),I=dC(y.target);o.push(w),y.lastReportedSize=gC(y.target,y.observedBox),I<n&&(n=I)}),e.push(function(){m.callback.call(m.observer,o,m.observer)}),m.activeTargets.splice(0,m.activeTargets.length)}});for(var t=0,i=e;t<i.length;t++){var g=i[t];g()}return n},uC=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()&&(dC(t.target)>n?e.activeTargets.push(t):e.skippedTargets.push(t))})})},fk=function(){var n=0;for(uC(n);dk();)n=Qk(),uC(n);return uk()&&hk(),n>0},ug,hC=[],Ik=function(){return hC.splice(0).forEach(function(n){return n()})},wk=function(n){if(!ug){var e=0,t=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return Ik()}).observe(t,i),ug=function(){t.textContent="".concat(e?e--:e++)}}hC.push(n),ug()},bk=function(n){wk(function(){requestAnimationFrame(n)})},_s=0,yk=function(){return!!_s},Dk=250,vk={attributes:!0,characterData:!0,childList:!0,subtree:!0},pC=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],CC=function(n){return n===void 0&&(n=0),Date.now()+n},hg=!1,kk=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=Dk),!hg){hg=!0;var i=CC(e);bk(function(){var g=!1;try{g=fk()}finally{if(hg=!1,e=i-CC(),!yk())return;g?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,vk)};document.body?t():Jr.addEventListener("DOMContentLoaded",t)},n.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),pC.forEach(function(t){return Jr.addEventListener(t,e.listener,!0)}))},n.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),pC.forEach(function(t){return Jr.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},n}(),pg=new kk,BC=function(n){!_s&&n>0&&pg.start(),_s+=n,!_s&&pg.stop()},_k=function(n){return!dg(n)&&!Ck(n)&&getComputedStyle(n).display==="inline"},Mk=function(){function n(e,t){this.target=e,this.observedBox=t||zr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var e=gC(this.target,this.observedBox,!0);return _k(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},n}(),xk=function(){function n(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return n}(),Ms=new WeakMap,mC=function(n,e){for(var t=0;t<n.length;t+=1)if(n[t].target===e)return t;return-1},xs=function(){function n(){}return n.connect=function(e,t){var i=new xk(e,t);Ms.set(e,i)},n.observe=function(e,t,i){var g=Ms.get(e),m=g.observationTargets.length===0;mC(g.observationTargets,t)<0&&(m&&lo.push(g),g.observationTargets.push(new Mk(t,i&&i.box)),BC(1),pg.schedule())},n.unobserve=function(e,t){var i=Ms.get(e),g=mC(i.observationTargets,t),m=i.observationTargets.length===1;g>=0&&(m&&lo.splice(lo.indexOf(i),1),i.observationTargets.splice(g,1),BC(-1))},n.disconnect=function(e){var t=this,i=Ms.get(e);i.observationTargets.slice().forEach(function(g){return t.unobserve(e,g.target)}),i.activeTargets.splice(0,i.activeTargets.length)},n}(),Sk=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.");xs.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");xs.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");xs.unobserve(this,e)},n.prototype.disconnect=function(){xs.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}();const Nk=new WeakMap;function Fk(n){var e;for(let t=0,i=n.length;t<i;++t){const g=n[t],m=Nk.get(g.target);if(typeof m=="function"){const{inlineSize:o,blockSize:y}=(e=g.borderBoxSize)==null?void 0:e[0],{offsetWidth:w,offsetHeight:I}=g.target;m(Object.assign(g,{offsetWidth:w,offsetHeight:I,width:o??w,height:y??I}))}}}new(so&&window.ResizeObserver||Sk)(Fk);const Rk=A.ref(!1);A.computed(()=>Rk.value);const EC="__theme_style__",Cg="__theme_observer__",QC=A.reactive(new Map),fC=new Map;A.watch(QC,()=>{if(!so)return;fC.clear();const n=document.head.querySelector(`#${EC}`);n&&document.head.removeChild(n);const e=document.createElement("style");let t=`.${Cg} { width: 1px }`,i=1;for(const[g,[m,o]]of QC.entries())t+=` html.${m} .${Cg}, .${o} .${Cg} { width: ${++i}px }`,fC.set(i,g);e.textContent=t,e.id=EC,document.head.appendChild(e)}),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 at=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=Vn(),g=Qt(),m=A.ref({});function o(N,T){N&&(m.value[T]=N)}let y=[];const w=()=>{if(!t.value)return;const N=new Map;for(const T of t.value)N.has(T.x)||N.set(T.x,[]),N.get(T.x).push(T);for(const T of N.values()){T.sort((H,P)=>H.y-P.y);let O=0;for(const H of T)H.y=O,O+=H.h}t.value=[...t.value]},I=e,S=()=>{I("gridItemMoved")};return A.onMounted(()=>{Object.keys(m.value).forEach(N=>{const T=m.value[N];if(!T)return;const O=new ResizeObserver(H=>{for(let P of H){const v=P.contentRect.height+28;if(t.value){const E=t.value[0].rowHeight||30,F=t.value.find(k=>k.i===N);F&&(F.contentHeight=Math.ceil((v+8)/(E+8)),F.h>0&&(F.h=Math.ceil((v+8)/(E+8))))}}w()});O.observe(T),y.push(O)})}),A.onBeforeUnmount(()=>{y.forEach(N=>N.disconnect()),y=[]}),(N,T)=>A.unref(g).design?(A.openBlock(),A.createBlock(cg,{key:0,list:N.list,"empty-text":A.unref(i).canvas.emptyTip,"empty-size":18},null,8,["list","empty-text"])):t.value?(A.openBlock(!0),A.createElementBlock(A.Fragment,{key:1},A.renderList(t.value,(O,H)=>(A.openBlock(),A.createBlock(A.unref(Ak),{onMoved:S,key:O.i,x:O.x,y:O.y,w:O.w,h:O.h,i:O.i,class:A.normalizeClass(O.h===0?"noPadding":"defaultPadding")},{default:A.withCtx(()=>[A.createElementVNode("div",{ref_for:!0,ref:P=>o(P,O.i)},[A.createVNode(ao,A.mergeProps({ref_for:!0},N.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(N.list,O=>(A.openBlock(),A.createBlock(ao,A.mergeProps({key:O.name,ref_for:!0},O),null,16))),128))}}),Lk={key:0,class:"btn-render-wrapper"},ii=oe(A.defineComponent({__name:"ButtonRender",props:{btns:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=A.ref({}),g=async o=>{if(o.onClick&&e){try{(o.text||o.label)&&(i.value[o.key]=!0),await e[o.onClick](t,o)}catch(y){console.error(y+`
101
101
  onClick: ${o.onClick}`)}i.value[o.key]=!1}},m=o=>({...o,name:o.key,component:"Popover"});return(o,y)=>{const w=A.resolveComponent("el-button"),I=A.resolveComponent("el-tooltip"),S=A.resolveComponent("el-button-group");return o.btns&&o.btns.length>0?(A.openBlock(),A.createElementBlock("div",Lk,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(o.btns,N=>{var T,O;return A.openBlock(),A.createElementBlock(A.Fragment,{key:N.key},[N.component==="Popover"?(A.openBlock(),A.createBlock(at,{key:0,list:[m(N)]},null,8,["list"])):N.component==="BtnGroup"?(A.openBlock(),A.createBlock(S,{key:1},{default:A.withCtx(()=>[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(N.children,H=>(A.openBlock(),A.createBlock(I,{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:P=>g(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(De,{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)):N.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(I,{key:2,disabled:!((T=N==null?void 0:N.icon)!=null&&T.tooltip),content:(O=N==null?void 0:N.icon)==null?void 0:O.tooltip,placement:"top"},{default:A.withCtx(()=>[A.createVNode(w,{onClick:H=>g(N),disabled:N.disabled,type:N.type,text:N.isTextBtn,link:N.isLinkBtn,plain:N.isPlainBtn||N.type!=="primary"&&!N.orange,color:N.orange?"#FAA21E":N.color,loading:i.value[N.key],size:N.size,style:A.normalizeStyle(N.style),class:A.normalizeClass({orangeBtn:N.orange,"is-icon":N.icon&&!N.text&&!N.label}),id:N.key},{default:A.withCtx(()=>{var H;return[A.createElementVNode("div",{class:A.normalizeClass(["flex items-center gap-2 direction",{"flex-row-reverse":N.isReverse}])},[N.icon?(A.openBlock(),A.createBlock(De,{key:0,name:N.icon.name,color:N.icon.color,size:((H=N==null?void 0:N.icon)==null?void 0:H.size)||"mini",class:A.normalizeClass({"btn-icon":N.text||N.label})},null,8,["name","color","size","class"])):A.createCommentVNode("",!0),A.createTextVNode(" "+A.toDisplayString(N.text||N.label),1)],2)]}),_:2},1032,["onClick","disabled","type","text","link","plain","color","loading","size","style","class","id"])]),_:2},1032,["disabled","content"]))],64)}),128))])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-ecc9f604"]]),Gk={key:0,class:"dropdown-render-wrapper"},Pk=oe(A.defineComponent({__name:"dropdownRender",props:{dropdowns:{}},setup(n){const e=A.inject("ruleModule",void 0),t=A.inject("pageMethodMap",{}),i=async(g,m)=>{if(m.onClick&&e)try{await e[m.onClick](t,g)}catch(o){console.error(o+`
102
102
  onClick: ${m.onClick}`)}};return(g,m)=>{const o=A.resolveComponent("el-button"),y=A.resolveComponent("el-dropdown-item"),w=A.resolveComponent("el-dropdown-menu"),I=A.resolveComponent("el-dropdown");return g.dropdowns&&g.dropdowns.length>0?(A.openBlock(),A.createElementBlock("div",Gk,[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(g.dropdowns,S=>(A.openBlock(),A.createElementBlock(A.Fragment,{key:S.key},[S.hidden?A.createCommentVNode("",!0):(A.openBlock(),A.createBlock(I,{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,N=>(A.openBlock(),A.createBlock(y,{key:N.value,command:N.value,onClick:T=>i(N,S)},{default:A.withCtx(()=>[A.createTextVNode(A.toDisplayString(N.label),1)]),_:2},1032,["command","onClick"]))),128))]),_:2},1024)]),default:A.withCtx(()=>[A.createVNode(o,{plain:"",color:S.color},{default:A.withCtx(()=>{var N,T;return[S.icon?(A.openBlock(),A.createBlock(De,{key:0,name:(N=S.icon)==null?void 0:N.name,class:"left-icon",color:(T=S.icon)==null?void 0:T.color},null,8,["name","color"])):A.createCommentVNode("",!0),A.createElementVNode("span",null,A.toDisplayString(S.text),1),A.createVNode(De,{name:"icon-gongnengjixiajiantou",class:"right-icon"})]}),_:2},1032,["color"])]),_:2},1032,["disabled"]))],64))),128))])):A.createCommentVNode("",!0)}}}),[["__scopeId","data-v-a7966a5b"]]),Hk=["title"],Kk={class:"suffix-slots"},Tk=oe(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=Qt(),t=A.computed(()=>w.read||e.schema.read),i=A.useModel(n,"modelValue"),g=A.useAttrs(),m=A.computed(()=>g.inputColor?`--input-color: ${g.inputColor}`:"--input-color: var(--el-input-text-color)"),o=A.computed(()=>g.inputColor?`el-input--${g.styleType} el-input custom-input-color`:`el-input--${g.styleType} el-input`),y=()=>{i.value&&(i.value=i.value.trim())},w=n,I=A.inject("ruleModule",void 0),S=A.inject("pageMethodMap",{}),N=v=>{const E=["E","e","+","-"];g.type==="number"&&E.includes(v.key)&&v.preventDefault()},T=v=>{if(w.onInput&&I)try{I[w.onInput](S,v)}catch(E){console.error(E+`
103
103
  onInput: ${w.onInput}`)}},O=v=>{if(w.onEnter&&I)try{v.stopPropagation(),I[w.onEnter](S,v)}catch(E){console.error(E+`