iking-web-ui-pro 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKDetailPreviewFiles/ik.index.es.js +60 -61
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +23 -24
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +141 -141
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +257 -246
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +104 -104
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +646 -635
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
v-if="item[propsField.children]?.length && item.show"\r
|
|
32
32
|
@click="changeShow(item, index)"\r
|
|
33
33
|
class="ikapprove icon-a-putongjiantoushouqi"\r
|
|
34
|
-
></i> `),(Se=ye[c.propsField.children])!=null&&Se.length&&ye.show?(f.openBlock(),f.createBlock(f.unref(Jr),{key:1,class:"ikapprove",onClick:ie=>ae(ye,le),name:"iksvg_shouqi"},null,8,["onClick"])):f.createCommentVNode("v-if",!0)],14,_ne)]),f.createElementVNode("ul",{class:f.normalizeClass(L(le))},[f.createElementVNode("div",{id:`children${le}`},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(ye[c.propsField.children],(ie,Z)=>(f.openBlock(),f.createElementBlock("li",{class:f.normalizeClass(G(le,Z)),style:f.normalizeStyle(c.needClick?"cursor: pointer;":""),key:Z,onClick:we=>W(ie,le+1+"-"+(Z+1))},f.toDisplayString(ie.name),15,xne))),128))],8,Ene)],2)])}),128))]))}}),Q1e="",Tne=ha(Br(kne,[["__scopeId","data-v-240cff4f"]])),C$=c=>c%1===0?c.toString():c.toFixed(2),Ane=(c,i=2)=>{const u=c/1024;return u>1024?(u/1024).toFixed(i)+"MB":u.toFixed(i)+"KB"},w$=(c,i)=>i?i.startsWith("http")?i:`${c}${i}`:"",e0e="",S$=c=>(f.pushScopeId("data-v-dbe9649a"),c=c(),f.popScopeId(),c),Dne={class:"approveProcess",id:"approveProcess"},Nne=["id"],One={class:"topBlock"},Rne={class:"left"},Bne={class:"nodeBg"},Mne=["src"],Ine={class:"right"},Pne={class:"topInfo"},$ne={key:0},Fne={key:0,class:"main-text"},Lne={class:"name"},Vne={key:0},Hne={key:0},zne={key:1},Une=S$(()=>f.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}},"退回至",-1)),Wne={key:0},jne={key:0},Zne={key:1},Gne={key:1},qne=S$(()=>f.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),Yne={class:"name"},Kne={key:0},Xne={style:{color:"#000"}},Qne={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},Jne={key:1},eoe={key:0,class:"blue",style:{"font-size":"12px"}},toe={key:1},noe={key:0,class:"blue",style:{"font-size":"12px"}},ooe={key:1,class:"blue",style:{"font-size":"12px"}},soe={class:"time"},roe={key:0},aoe={key:1},ioe=["onClick"],loe=["onClick"],coe={key:0,class:"opinion"},uoe={key:0},doe={key:1},foe=S$(()=>f.createElementVNode("span",null,"添加审批人",-1)),moe={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},hoe={key:2,class:"annexImage"},goe={key:3,class:"approveList"},poe={class:"nodeBg-list"},boe=["src"],yoe={key:1},voe={key:2,class:"ikapprove ikapprove-duihao2 green read"},Coe=["title"],woe={name:"IkingApprovalProcessDetail"},Soe=f.defineComponent({...woe,props:{local:{type:Boolean,default:!1},defaultStatus:{type:Object,default:()=>({})},defaultNodeType:{type:Object,default:()=>({})},dataList:{type:Array,default:()=>[]},defaultFieldMap:{type:Object,default:()=>({})},returnNode:{type:Array,default:()=>[]},fileUrl:{type:String,default:""},kkUrl:{type:String,default:""}},emits:["preview"],setup(c,{emit:i}){const u=c,g=f.reactive({nodeType:{发起人节点:"1",审批节点:"2",办理节点:"3",抄送节点:"4",...u.defaultNodeType},statusOption:{发起:"1",等待:"2",同意:"3",拒绝:"4",转交:"5",加签:"6",退回:"7",撤销:"8",评论:"9",...u.defaultStatus},listData:[],defaultFile:{id:"id",nodeId:"nodeId",nodeType:"nodeType",nodeTypeName:"nodeTypeName",approveStatus:"approveStatus",approveStatusName:"approveStatusName",originator:"originator",operationTime:"operationTime",approveType:"approveType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approveOpinion:"approveOpinion",countersignPer:"countersignPer",backToRecordNodeName:"backToRecordNodeName",attachment:"attachment",attachmentParam:{id:"id",originName:"originName",url:"url",suffix:"suffix",size:"size"},attachmentImg:"attachmentImg",returnNode:"returnNode",returnNodeName:"returnNodeName",lineType:"lineType",allRead:"allRead",read:"read",approvePersonList:[{id:"id",name:"name",approveState:"approveState",approveTime:"approveTime",approveOpinion:"approveOpinion",userAvatar:"userAvatar",accomplish:"accomplish"}],...u.defaultFieldMap}});f.watch(()=>u.dataList,W=>{W&&(f.nextTick(()=>{g.listData=W}),setTimeout(()=>{u.returnNode.length&&C()},500))},{deep:!0}),f.onMounted(()=>{u.dataList.length&&(g.listData=u.dataList,setTimeout(()=>{u.returnNode.length&&C()},500))});const C=()=>{let W=null;if(u!=null&&u.returnNode)for(W of u==null?void 0:u.returnNode){if(isNaN(W[1]))return;let ae=Array.from(new Array(W[1]+1).keys()).slice(W[0]);f.nextTick(()=>{E(ae)})}},E=W=>{var Se,ie,Z;let ae=document.createElement("div"),ne=document.getElementById("approveProcess"),F=0,ye=(Se=document.getElementById(`${W[0]}`))==null?void 0:Se.offsetWidth,le=(ie=document.getElementById(`${W[0]}`))==null?void 0:ie.offsetLeft,te=(Z=document.getElementById(`${W[0]}`))==null?void 0:Z.offsetTop;W.forEach(we=>{let Bt=document.getElementById(`${we}`);F+=Bt.offsetHeight}),setTimeout(()=>{ae.style.width=ye+32+"px",ae.style.height=F+"px",ae.style.background="#f9f9f9",ae.style.position="absolute",ae.style.top=te-16+"px",ae.style.left=le-16+"px",ae.style.zIndex=-1,ne==null||ne.appendChild(ae)})},A=(W,ae)=>{var ye;let ne=(ye=g.listData)==null?void 0:ye.findIndex(le=>le.lineType=="dashed"),F="";switch(W){case g.statusOption.发起:F="ikapprove-duihao2 green";break;case g.statusOption.等待:F=ne==ae?"ikapprove-dengdai orange":"";break;case g.statusOption.同意:F="ikapprove-duihao2 green";break;case g.statusOption.拒绝:F="ikapprove-jujue red";break;case g.statusOption.转交:F="ikapprove-zhuanjiao blue";break;case g.statusOption.加签:F="ikapprove-tianjia blue";break;case g.statusOption.退回:F="ikapprove-s_fanhui2 red";break;case g.statusOption.评论:F="ikapprove-pinglun1 blue";break}return`ikapprove ${F}`},D=(W,ae)=>{let ne="";switch(W){case g.nodeType.发起人节点:ne="ikapprove-ziyuan";break;case g.nodeType.审批节点:ae&&ae.length==1?ne="ikapprove-ziyuan":ne="ikapprove-shenpi";break;case g.nodeType.办理节点:ne="ikapprove-bianji";break;case g.nodeType.抄送节点:ne="ikapprove-chaosong";break;default:ne="ikapprove-ziyuan"}return`ikapprove ${ne}`};f.reactive({show:!1,data:{}});const L=(W,ae)=>{W.show=!W.show;let ne=document.getElementById(`${W[g.defaultFile.nodeId]}`),F=Array.from(ne==null?void 0:ne.getElementsByClassName("approveList"));for(let ye of F)ye.style.display=ae},G=W=>w$(u.fileUrl,W);return(W,ae)=>{const ne=f.resolveComponent("el-image");return f.openBlock(),f.createElementBlock("div",Dne,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(g.listData,(F,ye)=>{var le,te,Se,ie,Z,we,Bt,We,Q,Be;return f.openBlock(),f.createElementBlock("div",{class:"approveBlock",id:F[g.defaultFile.nodeId],key:F[g.defaultFile.nodeId]},[f.createElementVNode("div",One,[f.createElementVNode("div",Rne,[f.createElementVNode("span",Bne,[f.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((le=F[g.defaultFile.approvePersonList])==null?void 0:le.length)==1&&F[g.defaultFile.approvePersonList][0].userAvatar?(f.openBlock(),f.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:G(F[g.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,Mne)):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 否则显示对应节点 "),f.createElementVNode("i",{class:f.normalizeClass(D(F[g.defaultFile.nodeType],F[g.defaultFile.approvePersonList]))},null,2)],2112)),f.createCommentVNode(" 审批状态图标 "),f.createElementVNode("i",{class:f.normalizeClass(A(F[g.defaultFile.approveStatus],ye))},null,2)])]),f.createElementVNode("div",Ine,[f.createElementVNode("div",Pne,[f.createElementVNode("div",null,[f.createCommentVNode(" 不是抄送节点 "),F[g.defaultFile.nodeType]!=g.nodeType.抄送节点?(f.openBlock(),f.createElementBlock("div",$ne,[f.createCommentVNode(" 撤销,评论不显示节点名称 "),F[g.defaultFile.approveStatus]!=g.statusOption.撤销&&F[g.defaultFile.approveStatus]!=g.statusOption.评论?(f.openBlock(),f.createElementBlock("div",Fne,f.toDisplayString(F[g.defaultFile.nodeTypeName]),1)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 名字+审批状态 "),f.createElementVNode("div",Lne,[f.createCommentVNode(" 已审批节点文本 "),F[g.defaultFile.lineType]=="solid"?(f.openBlock(),f.createElementBlock("div",Vne,[f.createElementVNode("span",{style:f.normalizeStyle({color:F[g.defaultFile.approveStatus]==g.statusOption.评论?"#000":""})},f.toDisplayString(F[g.defaultFile.originator]),5),f.createCommentVNode(" 发起,退回不显示状态 "),F[g.defaultFile.approveStatusName]&&F[g.defaultFile.approveStatus]!=g.statusOption.发起&&F[g.defaultFile.approveStatus]!=g.statusOption.退回?(f.openBlock(),f.createElementBlock("span",Hne,f.toDisplayString(F[g.defaultFile.approveStatus]==g.statusOption.评论?" 添加了评论":"("+F[g.defaultFile.approveStatusName]+")"),1)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 退回状态显示 "),F[g.defaultFile.approveStatus]==g.statusOption.退回?(f.openBlock(),f.createElementBlock("span",zne,[Une,f.createTextVNode(f.toDisplayString(F[g.defaultFile.backToRecordNodeName]),1)])):f.createCommentVNode("v-if",!0)])):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 待审批节点 "),f.createElementVNode("div",null,[((te=F[g.defaultFile.approvePersonList])==null?void 0:te.length)==1?(f.openBlock(),f.createElementBlock("span",Wne,[f.createTextVNode(f.toDisplayString(F[g.defaultFile.originator])+" ",1),F[g.defaultFile.approveStatus]==g.statusOption.等待?(f.openBlock(),f.createElementBlock("span",jne,f.toDisplayString(`(${F[g.defaultFile.approveStatusName]})`),1)):f.createCommentVNode("v-if",!0)])):(f.openBlock(),f.createElementBlock("span",Zne,f.toDisplayString(((Se=F[g.defaultFile.approvePersonList])==null?void 0:Se.length)+"人"+F[g.defaultFile.approveTypeName]),1))])],2112))])])):(f.openBlock(),f.createElementBlock("div",Gne,[qne,f.createElementVNode("div",Yne,[f.createCommentVNode(" 抄送一人时 "),((ie=F[g.defaultFile.approvePersonList])==null?void 0:ie.length)==1?(f.openBlock(),f.createElementBlock("span",Kne,[f.createElementVNode("span",null,[f.createTextVNode("已抄送给 "),f.createElementVNode("span",Xne,f.toDisplayString(F[g.defaultFile.approvePersonList][0].userName),1)]),f.createElementVNode("span",Qne,f.toDisplayString(F[g.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 抄送多人时 "),((Z=F[g.defaultFile.approvePersonList])==null?void 0:Z.length)>1?(f.openBlock(),f.createElementBlock("span",Jne,[f.createTextVNode(f.toDisplayString(`已抄送${(we=F[g.defaultFile.approvePersonList])==null?void 0:we.length}人`)+" ",1),F[g.defaultFile.allRead]?(f.openBlock(),f.createElementBlock("span",eoe," 全部已读 ")):(f.openBlock(),f.createElementBlock("span",toe,[F[g.defaultFile.read]?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock("span",noe," 全部未读 ")),F[g.defaultFile.read]?(f.openBlock(),f.createElementBlock("span",ooe,f.toDisplayString(F[g.defaultFile.read])+"人已读 ",1)):f.createCommentVNode("v-if",!0)]))])):f.createCommentVNode("v-if",!0)])]))]),f.createElementVNode("div",soe,[f.createCommentVNode(" 不是抄送节点,展示时间 "),F[g.defaultFile.nodeType]!=g.nodeType.抄送节点?(f.openBlock(),f.createElementBlock("span",roe,f.toDisplayString(F[g.defaultFile.operationTime]),1)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),F[g.defaultFile.nodeType]==g.nodeType.抄送节点&&((Bt=F[g.defaultFile.approvePersonList])==null?void 0:Bt.length)>1?(f.openBlock(),f.createElementBlock("span",aoe,[F!=null&&F.show?(f.openBlock(),f.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:Ae=>L(F,"grid")},null,8,ioe)):(f.openBlock(),f.createElementBlock("i",{key:1,onClick:Ae=>L(F,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,loe))])):f.createCommentVNode("v-if",!0)])])])]),f.createElementVNode("div",{class:"bottomBlock",style:f.normalizeStyle({borderLeft:ye==g.listData.length-1?"":`2px ${F[g.defaultFile.lineType]} var(--el-border-color)`})},[f.createCommentVNode(" 审批意见 "),F[g.defaultFile.approveOpinion]||F[g.defaultFile.approveStatus]==g.statusOption.加签?(f.openBlock(),f.createElementBlock("div",coe,[F[g.defaultFile.approveOpinion]?(f.openBlock(),f.createElementBlock("span",uoe,f.toDisplayString(F[g.defaultFile.approveOpinion]),1)):f.createCommentVNode("v-if",!0),F[g.defaultFile.approveStatus]==g.statusOption.加签?(f.openBlock(),f.createElementBlock("span",doe,[foe,(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(F[g.defaultFile.countersignPer],(Ae,Ke)=>(f.openBlock(),f.createElementBlock("span",moe,f.toDisplayString(Ae==null?void 0:Ae.userName)+f.toDisplayString(Ke<F[g.defaultFile.countersignPer].length-1?"、":""),1))),256))])):f.createCommentVNode("v-if",!0)])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 附件 "),(We=F[g.defaultFile.attachment])!=null&&We.length?(f.openBlock(),f.createBlock(f.unref(TJ),{key:1,"kk-url":c.kkUrl,"load-url":c.fileUrl,list:F[g.defaultFile.attachment]},null,8,["kk-url","load-url","list"])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 附件图片 "),(Q=F[g.defaultFile.attachmentImg])!=null&&Q.length?(f.openBlock(),f.createElementBlock("div",hoe,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(F[g.defaultFile.attachmentImg],(Ae,Ke)=>(f.openBlock(),f.createElementBlock("div",{class:"image",key:Ke},[f.createVNode(ne,{src:G(Ae),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:G(Ae)},null,8,["src","alt"])]))),128))])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(F[g.defaultFile.nodeType]==g.nodeType.抄送节点||F[g.defaultFile.approveStatus]==g.statusOption.等待)&&((Be=F[g.defaultFile.approvePersonList])==null?void 0:Be.length)>1?(f.openBlock(),f.createElementBlock("div",goe,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(F[g.defaultFile.approvePersonList],Ae=>(f.openBlock(),f.createElementBlock("div",{class:"perBlock",key:Ae.userName},[f.createElementVNode("span",poe,[Ae.userAvatar?(f.openBlock(),f.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:G(Ae.userAvatar),alt:""},null,8,boe)):(f.openBlock(),f.createElementBlock("span",yoe,f.toDisplayString(Ae.userName.slice(-2)),1)),Ae.status==="END"?(f.openBlock(),f.createElementBlock("i",voe)):f.createCommentVNode("v-if",!0)]),f.createElementVNode("div",{class:"main-text",title:Ae.userName},f.toDisplayString(Ae.userName),9,Coe)]))),128))])):f.createCommentVNode("v-if",!0)],4)],8,Nne)}),128))])}}}),t0e="",_oe=ha(Br(Soe,[["__scopeId","data-v-dbe9649a"]])),Eoe=c=>(f.pushScopeId("data-v-5b4e3e05"),c=c(),f.popScopeId(),c),xoe={class:"approveProcess",id:"approveProcess"},koe={class:"node"},Toe={class:"nodeBg"},Aoe={class:"info"},Doe={class:"explain"},Noe={key:0},Ooe={key:0},Roe={key:1},Boe={key:0},Moe={key:1},Ioe={class:"personlist"},Poe={style:{width:"58px"}},$oe={class:"avatar"},Foe=["src"],Loe={key:1,class:"nodeBg"},Voe=["onClick"],Hoe=["title"],zoe={key:0,class:"sign"},Uoe={key:0},Woe=["onClick"],joe={key:0,class:"required"},Zoe=Eoe(()=>f.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1)),Goe={name:"IkApprovalProcess"},qoe=f.defineComponent({...Goe,props:{pickerUrl:{type:String,default:""},loadUrl:{type:String,default:""},dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},setup(c,{expose:i}){const u=c,g=es.ikStore.local.getItem("token")||"Bearer iking",C=f.reactive({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",...u.defaultNodeType},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...u.statusWithoutApprover},defaultFile:{id:"id",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",...u.defaultFieldMap},multiple:!1,chooseType:[]}),E=async ae=>{var ne;if(ae.multiple=!ae[C.defaultFile.singleApproval]||ae[C.defaultFile.isShowAddCopy],ae.handList=ae[C.defaultFile.approvePersonList]?ae[C.defaultFile.approvePersonList]:[],ae[C.defaultFile.nodeType]===C.nodeType.抄送节点)ae.handList.forEach(F=>{F.elementName||(F.elementName=F.userName,F.elementId=F.userId,F.avatar=F.userAvatar),F.elementType="USER",F.disabled=!0}),ae.chooseType=["user"],ae.userList=[],ae.depList=[];else switch(ae[C.defaultFile.initiatorSpecifiedScopeType]){case"ALL":ae.chooseType=["dep_user"],ae.userList=[],ae.depList=[];break;default:ae.chooseType=["user"],ae.userList=ae.userList?ae.userList:(ne=ae[C.defaultFile.initiatorSpecifiedScope])==null?void 0:ne.map(F=>({...F,elementName:(F==null?void 0:F.executorName)||(F==null?void 0:F.userName),elementId:(F==null?void 0:F.executorId)||(F==null?void 0:F.userId),avatar:((F==null?void 0:F.executorAvatar)||(F==null?void 0:F.userAvatar))&&A((F==null?void 0:F.executorAvatar)||(F==null?void 0:F.userAvatar))||"",elementType:"USER"}))}f.nextTick(()=>{ae.isShow=!0})},A=ae=>{let ne="";return ae.includes("http")||ae.includes("https")?ne=ae:ne=u.loadUrl?`${u.loadUrl}${ae}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${ae}`,ne},D=ae=>{let ne="";switch(ae){case C.nodeType.审批节点:ne="ikapprove-shenpi";break;case C.nodeType.办理节点:ne="ikapprove-bianji";break;case C.nodeType.抄送节点:ne="ikapprove-chaosong";break;default:ne="ikapprove-ziyuan"}return`ikapprove ${ne}`},L=(ae,ne)=>{u.dataList[ne].handList=ae.list;let ye=(u.dataList[ne][C.defaultFile.approvePersonList]||[]).filter(te=>!te.canDele),le=ae.list.map(te=>({...te,userName:te.elementName,userAvatar:te.avatar,canDele:!0}));u.dataList[ne][C.defaultFile.approvePersonList]=ye.concat(le)},G=(ae,ne)=>{u.dataList[ae][C.defaultFile.approvePersonList].splice(ne,1),u.dataList[ae].handList=u.dataList[ae][C.defaultFile.approvePersonList]};return i({requiredVerification:()=>{let ae=!0;return u.dataList.forEach(ne=>{var F;ne.required=!1,ne[C.defaultFile.nodeType]==C.nodeType.审批节点&&ne[C.defaultFile.isShowAdd]&&((F=ne[C.defaultFile.approvePersonList])!=null&&F.length||(ae=!1,ne.required=!0))}),ae}}),(ae,ne)=>(f.openBlock(),f.createElementBlock("div",xoe,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(u.dataList,(F,ye)=>{var le,te,Se,ie;return f.openBlock(),f.createElementBlock("div",{class:"content",key:F.id},[f.createCommentVNode(" 审批节点类型 "),f.createElementVNode("div",koe,[f.createElementVNode("span",Toe,[f.createElementVNode("i",{class:f.normalizeClass(D(F[C.defaultFile.nodeType]))},null,2)]),f.createElementVNode("div",{class:"line",style:f.normalizeStyle({"border-left":ye===u.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),f.createElementVNode("div",Aoe,[f.createElementVNode("div",null,[f.createElementVNode("div",null,f.toDisplayString(F[C.defaultFile.nodeTypeName]),1),f.createElementVNode("div",Doe,[f.createCommentVNode(" 抄送节点 "),F[C.defaultFile.nodeType]==C.nodeType.抄送节点?(f.openBlock(),f.createElementBlock("span",Noe,[F[C.defaultFile.approvePersonList].length?(f.openBlock(),f.createElementBlock("span",Ooe,f.toDisplayString(`抄送${F[C.defaultFile.approvePersonList].length}人`),1)):f.createCommentVNode("v-if",!0),F[C.defaultFile.isShowAdd]?(f.openBlock(),f.createElementBlock("span",Roe,",可添加抄送人")):f.createCommentVNode("v-if",!0)])):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 审批节点 "),f.createElementVNode("span",null,[f.createCommentVNode(" 存在审批人时 "),(le=F[C.defaultFile.approvePersonList])!=null&&le.length?(f.openBlock(),f.createElementBlock("span",Boe,f.toDisplayString(((te=F[C.defaultFile.approvePersonList])==null?void 0:te.length)==1?"1人审批":`${(Se=F[C.defaultFile.approvePersonList])==null?void 0:Se.length}人${F[C.defaultFile.multiExecutorTypeName]}`),1)):[C.statusWithoutApprover.自动通过,C.statusWithoutApprover.自动拒绝].includes(F[C.defaultFile.approveType])?(f.openBlock(),f.createElementBlock("span",Moe,f.toDisplayString(F[C.defaultFile.approveTypeName]),1)):F[C.defaultFile.executorEmptyStrategy]&&F[C.defaultFile.executorEmpty]?(f.openBlock(),f.createElementBlock(f.Fragment,{key:2},[f.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),f.createElementVNode("span",null,[f.createTextVNode(" 未找到审批人,"),f.createElementVNode("span",null,f.toDisplayString(F[C.defaultFile.executorEmptyStrategy]==C.statusWithoutApprover.自动通过?"将自动通过":F[C.defaultFile.executorEmptyStrategy]==C.statusWithoutApprover.自动转交管理员?"自动转交给管理员":F[C.defaultFile.executorEmptyStrategy]==C.statusWithoutApprover.指定人员审批?`将自动转给指定成员${F[C.defaultFile.reserveExecutorUsers]&&F[C.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):(f.openBlock(),f.createElementBlock("span",{key:3,class:f.normalizeClass(F.required?"warn":"")},"请选择"+f.toDisplayString(F[C.defaultFile.nodeType]===C.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),f.createElementVNode("div",Ioe,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(F[C.defaultFile.approvePersonList],(Z,we)=>{var Bt;return f.openBlock(),f.createElementBlock("div",{class:"list",key:Z.userId},[f.createElementVNode("div",Poe,[f.createElementVNode("div",$oe,[Z.userAvatar?(f.openBlock(),f.createElementBlock("img",{key:0,src:A(Z.userAvatar),alt:""},null,8,Foe)):(f.openBlock(),f.createElementBlock("div",Loe,[f.createElementVNode("span",null,f.toDisplayString(Z.userName.slice(-2)),1)])),Z.canDele?(f.openBlock(),f.createElementBlock("i",{key:2,onClick:We=>G(ye,we),class:"ikapprove ikapprove-shanchu1"},null,8,Voe)):f.createCommentVNode("v-if",!0)]),f.createElementVNode("div",{class:"name",title:Z.userName},f.toDisplayString(Z.userName),9,Hoe)]),f.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),F[C.defaultFile.isShowAdd]&&!(F[C.defaultFile.singleApproval]&&((Bt=F[C.defaultFile.approvePersonList])==null?void 0:Bt.length)==1)?(f.openBlock(),f.createElementBlock("span",zoe,[f.createCommentVNode(" 抄送默认 "),F[C.defaultFile.nodeType]==C.nodeType.抄送节点?(f.openBlock(),f.createElementBlock("span",Uoe,"+")):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 审批 "),f.createElementVNode("span",null,f.toDisplayString(F[C.defaultFile.multiExecutorType]=="ANY"?"/":F[C.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):f.createCommentVNode("v-if",!0)])}),128)),f.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 "),F[C.defaultFile.isShowAdd]&&!(F[C.defaultFile.singleApproval]&&((ie=F[C.defaultFile.approvePersonList])==null?void 0:ie.length)==1)||F[C.defaultFile.isShowAddCopy]?(f.openBlock(),f.createElementBlock("span",{key:0,class:"addBg",onClick:Z=>E(F)},[F[C.defaultFile.nodeType]==C.nodeType.审批节点?(f.openBlock(),f.createElementBlock("span",joe)):f.createCommentVNode("v-if",!0),Zoe],8,Woe)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 添加人组件 "),f.createVNode(f.unref(rk),{modelValue:F.handList,"onUpdate:modelValue":Z=>F.handList=Z,show:F.isShow,"onUpdate:show":Z=>F.isShow=Z,onOk:Z=>L(Z,ye),multiple:F.multiple,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:c.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:f.unref(g)}},"dep-list":F.depList,"user-list":F.userList,"organization-list":F.organizationList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:F.chooseType},null,8,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","api","dep-list","user-list","organization-list","chooseType"])])])])}),128))]))}}),o0e="",Yoe=ha(Br(qoe,[["__scopeId","data-v-5b4e3e05"]]));var vK={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(c){return"另外 "+c+" 个"},noEventsText:"没有事件显示"},A8,ps,CK,wK,Qw,g2,SK,_K,EK,D8={},xK=[],Koe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Wb(c,i){for(var u in i)c[u]=i[u];return c}function kK(c){var i=c.parentNode;i&&i.removeChild(c)}function Qe(c,i,u){var g,C,E,A={};for(E in i)E=="key"?g=i[E]:E=="ref"?C=i[E]:A[E]=i[E];if(arguments.length>2&&(A.children=arguments.length>3?A8.call(arguments,2):u),typeof c=="function"&&c.defaultProps!=null)for(E in c.defaultProps)A[E]===void 0&&(A[E]=c.defaultProps[E]);return N8(c,A,g,C,null)}function N8(c,i,u,g,C){var E={type:c,props:i,key:u,ref:g,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:C??++CK};return C==null&&ps.vnode!=null&&ps.vnode(E),E}function Td(){return{current:null}}function tl(c){return c.children}function Xoe(c,i,u,g,C){var E;for(E in u)E==="children"||E==="key"||E in i||O8(c,E,null,u[E],g);for(E in i)C&&typeof i[E]!="function"||E==="children"||E==="key"||E==="value"||E==="checked"||u[E]===i[E]||O8(c,E,i[E],u[E],g)}function TK(c,i,u){i[0]==="-"?c.setProperty(i,u??""):c[i]=u==null?"":typeof u!="number"||Koe.test(i)?u:u+"px"}function O8(c,i,u,g,C){var E;e:if(i==="style")if(typeof u=="string")c.style.cssText=u;else{if(typeof g=="string"&&(c.style.cssText=g=""),g)for(i in g)u&&i in u||TK(c.style,i,"");if(u)for(i in u)g&&u[i]===g[i]||TK(c.style,i,u[i])}else if(i[0]==="o"&&i[1]==="n")E=i!==(i=i.replace(/Capture$/,"")),i=i.toLowerCase()in c?i.toLowerCase().slice(2):i.slice(2),c.l||(c.l={}),c.l[i+E]=u,u?g||c.addEventListener(i,E?DK:AK,E):c.removeEventListener(i,E?DK:AK,E);else if(i!=="dangerouslySetInnerHTML"){if(C)i=i.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(i!=="width"&&i!=="height"&&i!=="href"&&i!=="list"&&i!=="form"&&i!=="tabIndex"&&i!=="download"&&i in c)try{c[i]=u??"";break e}catch{}typeof u=="function"||(u==null||u===!1&&i.indexOf("-")==-1?c.removeAttribute(i):c.setAttribute(i,u))}}function AK(c){Qw=!0;try{return this.l[c.type+!1](ps.event?ps.event(c):c)}finally{Qw=!1}}function DK(c){Qw=!0;try{return this.l[c.type+!0](ps.event?ps.event(c):c)}finally{Qw=!1}}function hm(c,i){this.props=c,this.context=i}function W6(c,i){if(i==null)return c.__?W6(c.__,c.__.__k.indexOf(c)+1):null;for(var u;i<c.__k.length;i++)if((u=c.__k[i])!=null&&u.__e!=null)return u.__e;return typeof c.type=="function"?W6(c):null}function NK(c){var i,u;if((c=c.__)!=null&&c.__c!=null){for(c.__e=c.__c.base=null,i=0;i<c.__k.length;i++)if((u=c.__k[i])!=null&&u.__e!=null){c.__e=c.__c.base=u.__e;break}return NK(c)}}function Qoe(c){Qw?setTimeout(c):_K(c)}function _$(c){(!c.__d&&(c.__d=!0)&&g2.push(c)&&!R8.__r++||SK!==ps.debounceRendering)&&((SK=ps.debounceRendering)||Qoe)(R8)}function R8(){var c,i,u,g,C,E,A,D;for(g2.sort(function(L,G){return L.__v.__b-G.__v.__b});c=g2.shift();)c.__d&&(i=g2.length,g=void 0,C=void 0,A=(E=(u=c).__v).__e,(D=u.__P)&&(g=[],(C=Wb({},E)).__v=E.__v+1,E$(D,E,C,u.__n,D.ownerSVGElement!==void 0,E.__h!=null?[A]:null,g,A??W6(E),E.__h),IK(g,E),E.__e!=A&&NK(E)),g2.length>i&&g2.sort(function(L,G){return L.__v.__b-G.__v.__b}));R8.__r=0}function OK(c,i,u,g,C,E,A,D,L,G){var W,ae,ne,F,ye,le,te,Se=g&&g.__k||xK,ie=Se.length;for(u.__k=[],W=0;W<i.length;W++)if((F=u.__k[W]=(F=i[W])==null||typeof F=="boolean"?null:typeof F=="string"||typeof F=="number"||typeof F=="bigint"?N8(null,F,null,null,F):Array.isArray(F)?N8(tl,{children:F},null,null,null):F.__b>0?N8(F.type,F.props,F.key,F.ref?F.ref:null,F.__v):F)!=null){if(F.__=u,F.__b=u.__b+1,(ne=Se[W])===null||ne&&F.key==ne.key&&F.type===ne.type)Se[W]=void 0;else for(ae=0;ae<ie;ae++){if((ne=Se[ae])&&F.key==ne.key&&F.type===ne.type){Se[ae]=void 0;break}ne=null}E$(c,F,ne=ne||D8,C,E,A,D,L,G),ye=F.__e,(ae=F.ref)&&ne.ref!=ae&&(te||(te=[]),ne.ref&&te.push(ne.ref,null,F),te.push(ae,F.__c||ye,F)),ye!=null?(le==null&&(le=ye),typeof F.type=="function"&&F.__k===ne.__k?F.__d=L=RK(F,L,c):L=BK(c,F,ne,Se,ye,L),typeof u.type=="function"&&(u.__d=L)):L&&ne.__e==L&&L.parentNode!=c&&(L=W6(ne))}for(u.__e=le,W=ie;W--;)Se[W]!=null&&(typeof u.type=="function"&&Se[W].__e!=null&&Se[W].__e==u.__d&&(u.__d=MK(g).nextSibling),$K(Se[W],Se[W]));if(te)for(W=0;W<te.length;W++)PK(te[W],te[++W],te[++W])}function RK(c,i,u){for(var g,C=c.__k,E=0;C&&E<C.length;E++)(g=C[E])&&(g.__=c,i=typeof g.type=="function"?RK(g,i,u):BK(u,g,g,C,g.__e,i));return i}function B8(c,i){return i=i||[],c==null||typeof c=="boolean"||(Array.isArray(c)?c.some(function(u){B8(u,i)}):i.push(c)),i}function BK(c,i,u,g,C,E){var A,D,L;if(i.__d!==void 0)A=i.__d,i.__d=void 0;else if(u==null||C!=E||C.parentNode==null)e:if(E==null||E.parentNode!==c)c.appendChild(C),A=null;else{for(D=E,L=0;(D=D.nextSibling)&&L<g.length;L+=1)if(D==C)break e;c.insertBefore(C,E),A=E}return A!==void 0?A:C.nextSibling}function MK(c){var i,u,g;if(c.type==null||typeof c.type=="string")return c.__e;if(c.__k){for(i=c.__k.length-1;i>=0;i--)if((u=c.__k[i])&&(g=MK(u)))return g}return null}function E$(c,i,u,g,C,E,A,D,L){var G,W,ae,ne,F,ye,le,te,Se,ie,Z,we,Bt,We,Q,Be=i.type;if(i.constructor!==void 0)return null;u.__h!=null&&(L=u.__h,D=i.__e=u.__e,i.__h=null,E=[D]),(G=ps.__b)&&G(i);try{e:if(typeof Be=="function"){if(te=i.props,Se=(G=Be.contextType)&&g[G.__c],ie=G?Se?Se.props.value:G.__:g,u.__c?le=(W=i.__c=u.__c).__=W.__E:("prototype"in Be&&Be.prototype.render?i.__c=W=new Be(te,ie):(i.__c=W=new hm(te,ie),W.constructor=Be,W.render=ese),Se&&Se.sub(W),W.props=te,W.state||(W.state={}),W.context=ie,W.__n=g,ae=W.__d=!0,W.__h=[],W._sb=[]),W.__s==null&&(W.__s=W.state),Be.getDerivedStateFromProps!=null&&(W.__s==W.state&&(W.__s=Wb({},W.__s)),Wb(W.__s,Be.getDerivedStateFromProps(te,W.__s))),ne=W.props,F=W.state,W.__v=i,ae)Be.getDerivedStateFromProps==null&&W.componentWillMount!=null&&W.componentWillMount(),W.componentDidMount!=null&&W.__h.push(W.componentDidMount);else{if(Be.getDerivedStateFromProps==null&&te!==ne&&W.componentWillReceiveProps!=null&&W.componentWillReceiveProps(te,ie),!W.__e&&W.shouldComponentUpdate!=null&&W.shouldComponentUpdate(te,W.__s,ie)===!1||i.__v===u.__v){for(i.__v!==u.__v&&(W.props=te,W.state=W.__s,W.__d=!1),i.__e=u.__e,i.__k=u.__k,i.__k.forEach(function(Ae){Ae&&(Ae.__=i)}),Z=0;Z<W._sb.length;Z++)W.__h.push(W._sb[Z]);W._sb=[],W.__h.length&&A.push(W);break e}W.componentWillUpdate!=null&&W.componentWillUpdate(te,W.__s,ie),W.componentDidUpdate!=null&&W.__h.push(function(){W.componentDidUpdate(ne,F,ye)})}if(W.context=ie,W.props=te,W.__P=c,we=ps.__r,Bt=0,"prototype"in Be&&Be.prototype.render){for(W.state=W.__s,W.__d=!1,we&&we(i),G=W.render(W.props,W.state,W.context),We=0;We<W._sb.length;We++)W.__h.push(W._sb[We]);W._sb=[]}else do W.__d=!1,we&&we(i),G=W.render(W.props,W.state,W.context),W.state=W.__s;while(W.__d&&++Bt<25);W.state=W.__s,W.getChildContext!=null&&(g=Wb(Wb({},g),W.getChildContext())),ae||W.getSnapshotBeforeUpdate==null||(ye=W.getSnapshotBeforeUpdate(ne,F)),Q=G!=null&&G.type===tl&&G.key==null?G.props.children:G,OK(c,Array.isArray(Q)?Q:[Q],i,u,g,C,E,A,D,L),W.base=i.__e,i.__h=null,W.__h.length&&A.push(W),le&&(W.__E=W.__=null),W.__e=!1}else E==null&&i.__v===u.__v?(i.__k=u.__k,i.__e=u.__e):i.__e=Joe(u.__e,i,u,g,C,E,A,L);(G=ps.diffed)&&G(i)}catch(Ae){i.__v=null,(L||E!=null)&&(i.__e=D,i.__h=!!L,E[E.indexOf(D)]=null),ps.__e(Ae,i,u)}}function IK(c,i){ps.__c&&ps.__c(i,c),c.some(function(u){try{c=u.__h,u.__h=[],c.some(function(g){g.call(u)})}catch(g){ps.__e(g,u.__v)}})}function Joe(c,i,u,g,C,E,A,D){var L,G,W,ae=u.props,ne=i.props,F=i.type,ye=0;if(F==="svg"&&(C=!0),E!=null){for(;ye<E.length;ye++)if((L=E[ye])&&"setAttribute"in L==!!F&&(F?L.localName===F:L.nodeType===3)){c=L,E[ye]=null;break}}if(c==null){if(F===null)return document.createTextNode(ne);c=C?document.createElementNS("http://www.w3.org/2000/svg",F):document.createElement(F,ne.is&&ne),E=null,D=!1}if(F===null)ae===ne||D&&c.data===ne||(c.data=ne);else{if(E=E&&A8.call(c.childNodes),G=(ae=u.props||D8).dangerouslySetInnerHTML,W=ne.dangerouslySetInnerHTML,!D){if(E!=null)for(ae={},ye=0;ye<c.attributes.length;ye++)ae[c.attributes[ye].name]=c.attributes[ye].value;(W||G)&&(W&&(G&&W.__html==G.__html||W.__html===c.innerHTML)||(c.innerHTML=W&&W.__html||""))}if(Xoe(c,ne,ae,C,D),W)i.__k=[];else if(ye=i.props.children,OK(c,Array.isArray(ye)?ye:[ye],i,u,g,C&&F!=="foreignObject",E,A,E?E[0]:u.__k&&W6(u,0),D),E!=null)for(ye=E.length;ye--;)E[ye]!=null&&kK(E[ye]);D||("value"in ne&&(ye=ne.value)!==void 0&&(ye!==c.value||F==="progress"&&!ye||F==="option"&&ye!==ae.value)&&O8(c,"value",ye,ae.value,!1),"checked"in ne&&(ye=ne.checked)!==void 0&&ye!==c.checked&&O8(c,"checked",ye,ae.checked,!1))}return c}function PK(c,i,u){try{typeof c=="function"?c(i):c.current=i}catch(g){ps.__e(g,u)}}function $K(c,i,u){var g,C;if(ps.unmount&&ps.unmount(c),(g=c.ref)&&(g.current&&g.current!==c.__e||PK(g,null,i)),(g=c.__c)!=null){if(g.componentWillUnmount)try{g.componentWillUnmount()}catch(E){ps.__e(E,i)}g.base=g.__P=null,c.__c=void 0}if(g=c.__k)for(C=0;C<g.length;C++)g[C]&&$K(g[C],i,u||typeof c.type!="function");u||c.__e==null||kK(c.__e),c.__=c.__e=c.__d=void 0}function ese(c,i,u){return this.constructor(c,u)}function j6(c,i,u){var g,C,E;ps.__&&ps.__(c,i),C=(g=typeof u=="function")?null:u&&u.__k||i.__k,E=[],E$(i,c=(!g&&u||i).__k=Qe(tl,null,[c]),C||D8,D8,i.ownerSVGElement!==void 0,!g&&u?[u]:C?null:i.firstChild?A8.call(i.childNodes):null,E,!g&&u?u:C?C.__e:i.firstChild,g),IK(E,c)}function tse(c,i){var u={__c:i="__cC"+EK++,__:c,Consumer:function(g,C){return g.children(C)},Provider:function(g){var C,E;return this.getChildContext||(C=[],(E={})[i]=this,this.getChildContext=function(){return E},this.shouldComponentUpdate=function(A){this.props.value!==A.value&&C.some(function(D){D.__e=!0,_$(D)})},this.sub=function(A){C.push(A);var D=A.componentWillUnmount;A.componentWillUnmount=function(){C.splice(C.indexOf(A),1),D&&D.call(A)}}),g.children}};return u.Provider.__=u.Consumer.contextType=u}A8=xK.slice,ps={__e:function(c,i,u,g){for(var C,E,A;i=i.__;)if((C=i.__c)&&!C.__)try{if((E=C.constructor)&&E.getDerivedStateFromError!=null&&(C.setState(E.getDerivedStateFromError(c)),A=C.__d),C.componentDidCatch!=null&&(C.componentDidCatch(c,g||{}),A=C.__d),A)return C.__E=C}catch(D){c=D}throw c}},CK=0,wK=function(c){return c!=null&&c.constructor===void 0},Qw=!1,hm.prototype.setState=function(c,i){var u;u=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Wb({},this.state),typeof c=="function"&&(c=c(Wb({},u),this.props)),c&&Wb(u,c),c!=null&&this.__v&&(i&&this._sb.push(i),_$(this))},hm.prototype.forceUpdate=function(c){this.__v&&(this.__e=!0,c&&this.__h.push(c),_$(this))},hm.prototype.render=tl,g2=[],_K=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,R8.__r=0,EK=0;var dp,x$,FK,LK=[],k$=[],VK=ps.__b,HK=ps.__r,zK=ps.diffed,UK=ps.__c,WK=ps.unmount;function nse(){for(var c;c=LK.shift();)if(c.__P&&c.__H)try{c.__H.__h.forEach(M8),c.__H.__h.forEach(T$),c.__H.__h=[]}catch(i){c.__H.__h=[],ps.__e(i,c.__v)}}ps.__b=function(c){dp=null,VK&&VK(c)},ps.__r=function(c){HK&&HK(c);var i=(dp=c.__c).__H;i&&(x$===dp?(i.__h=[],dp.__h=[],i.__.forEach(function(u){u.__N&&(u.__=u.__N),u.__V=k$,u.__N=u.i=void 0})):(i.__h.forEach(M8),i.__h.forEach(T$),i.__h=[])),x$=dp},ps.diffed=function(c){zK&&zK(c);var i=c.__c;i&&i.__H&&(i.__H.__h.length&&(LK.push(i)!==1&&FK===ps.requestAnimationFrame||((FK=ps.requestAnimationFrame)||ose)(nse)),i.__H.__.forEach(function(u){u.i&&(u.__H=u.i),u.__V!==k$&&(u.__=u.__V),u.i=void 0,u.__V=k$})),x$=dp=null},ps.__c=function(c,i){i.some(function(u){try{u.__h.forEach(M8),u.__h=u.__h.filter(function(g){return!g.__||T$(g)})}catch(g){i.some(function(C){C.__h&&(C.__h=[])}),i=[],ps.__e(g,u.__v)}}),UK&&UK(c,i)},ps.unmount=function(c){WK&&WK(c);var i,u=c.__c;u&&u.__H&&(u.__H.__.forEach(function(g){try{M8(g)}catch(C){i=C}}),u.__H=void 0,i&&ps.__e(i,u.__v))};var jK=typeof requestAnimationFrame=="function";function ose(c){var i,u=function(){clearTimeout(g),jK&&cancelAnimationFrame(i),setTimeout(c)},g=setTimeout(u,100);jK&&(i=requestAnimationFrame(u))}function M8(c){var i=dp,u=c.__c;typeof u=="function"&&(c.__c=void 0,u()),dp=i}function T$(c){var i=dp;c.__c=c.__(),dp=i}function sse(c,i){for(var u in i)c[u]=i[u];return c}function ZK(c,i){for(var u in c)if(u!=="__source"&&!(u in i))return!0;for(var g in i)if(g!=="__source"&&c[g]!==i[g])return!0;return!1}function GK(c){this.props=c}(GK.prototype=new hm).isPureReactComponent=!0,GK.prototype.shouldComponentUpdate=function(c,i){return ZK(this.props,c)||ZK(this.state,i)};var qK=ps.__b;ps.__b=function(c){c.type&&c.type.__f&&c.ref&&(c.props.ref=c.ref,c.ref=null),qK&&qK(c)};var rse=ps.__e;ps.__e=function(c,i,u,g){if(c.then){for(var C,E=i;E=E.__;)if((C=E.__c)&&C.__c)return i.__e==null&&(i.__e=u.__e,i.__k=u.__k),C.__c(c,i)}rse(c,i,u,g)};var YK=ps.unmount;function KK(c,i,u){return c&&(c.__c&&c.__c.__H&&(c.__c.__H.__.forEach(function(g){typeof g.__c=="function"&&g.__c()}),c.__c.__H=null),(c=sse({},c)).__c!=null&&(c.__c.__P===u&&(c.__c.__P=i),c.__c=null),c.__k=c.__k&&c.__k.map(function(g){return KK(g,i,u)})),c}function XK(c,i,u){return c&&(c.__v=null,c.__k=c.__k&&c.__k.map(function(g){return XK(g,i,u)}),c.__c&&c.__c.__P===i&&(c.__e&&u.insertBefore(c.__e,c.__d),c.__c.__e=!0,c.__c.__P=u)),c}function A$(){this.__u=0,this.t=null,this.__b=null}function QK(c){var i=c.__.__c;return i&&i.__a&&i.__a(c)}function I8(){this.u=null,this.o=null}ps.unmount=function(c){var i=c.__c;i&&i.__R&&i.__R(),i&&c.__h===!0&&(c.type=null),YK&&YK(c)},(A$.prototype=new hm).__c=function(c,i){var u=i.__c,g=this;g.t==null&&(g.t=[]),g.t.push(u);var C=QK(g.__v),E=!1,A=function(){E||(E=!0,u.__R=null,C?C(D):D())};u.__R=A;var D=function(){if(!--g.__u){if(g.state.__a){var G=g.state.__a;g.__v.__k[0]=XK(G,G.__c.__P,G.__c.__O)}var W;for(g.setState({__a:g.__b=null});W=g.t.pop();)W.forceUpdate()}},L=i.__h===!0;g.__u++||L||g.setState({__a:g.__b=g.__v.__k[0]}),c.then(A,A)},A$.prototype.componentWillUnmount=function(){this.t=[]},A$.prototype.render=function(c,i){if(this.__b){if(this.__v.__k){var u=document.createElement("div"),g=this.__v.__k[0].__c;this.__v.__k[0]=KK(this.__b,u,g.__O=g.__P)}this.__b=null}var C=i.__a&&Qe(tl,null,c.fallback);return C&&(C.__h=null),[Qe(tl,null,i.__a?null:c.children),C]};var JK=function(c,i,u){if(++u[1]===u[0]&&c.o.delete(i),c.props.revealOrder&&(c.props.revealOrder[0]!=="t"||!c.o.size))for(u=c.u;u;){for(;u.length>3;)u.pop()();if(u[1]<u[0])break;c.u=u=u[2]}};function ase(c){return this.getChildContext=function(){return c.context},c.children}function ise(c){var i=this,u=c.i;i.componentWillUnmount=function(){j6(null,i.l),i.l=null,i.i=null},i.i&&i.i!==u&&i.componentWillUnmount(),c.__v?(i.l||(i.i=u,i.l={nodeType:1,parentNode:u,childNodes:[],appendChild:function(g){this.childNodes.push(g),i.i.appendChild(g)},insertBefore:function(g,C){this.childNodes.push(g),i.i.appendChild(g)},removeChild:function(g){this.childNodes.splice(this.childNodes.indexOf(g)>>>1,1),i.i.removeChild(g)}}),j6(Qe(ase,{context:i.context},c.__v),i.l)):i.l&&i.componentWillUnmount()}function lse(c,i){var u=Qe(ise,{__v:c,i});return u.containerInfo=i,u}(I8.prototype=new hm).__a=function(c){var i=this,u=QK(i.__v),g=i.o.get(c);return g[0]++,function(C){var E=function(){i.props.revealOrder?(g.push(C),JK(i,c,g)):C()};u?u(E):E()}},I8.prototype.render=function(c){this.u=null,this.o=new Map;var i=B8(c.children);c.revealOrder&&c.revealOrder[0]==="b"&&i.reverse();for(var u=i.length;u--;)this.o.set(i[u],this.u=[1,0,this.u]);return c.children},I8.prototype.componentDidUpdate=I8.prototype.componentDidMount=function(){var c=this;this.o.forEach(function(i,u){JK(c,u,i)})};var cse=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,use=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,dse=typeof document<"u",fse=function(c){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(c)};hm.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(c){Object.defineProperty(hm.prototype,c,{configurable:!0,get:function(){return this["UNSAFE_"+c]},set:function(i){Object.defineProperty(this,c,{configurable:!0,writable:!0,value:i})}})});var eX=ps.event;function mse(){}function hse(){return this.cancelBubble}function gse(){return this.defaultPrevented}ps.event=function(c){return eX&&(c=eX(c)),c.persist=mse,c.isPropagationStopped=hse,c.isDefaultPrevented=gse,c.nativeEvent=c};var tX={configurable:!0,get:function(){return this.class}},nX=ps.vnode;ps.vnode=function(c){var i=c.type,u=c.props,g=u;if(typeof i=="string"){var C=i.indexOf("-")===-1;for(var E in g={},u){var A=u[E];dse&&E==="children"&&i==="noscript"||E==="value"&&"defaultValue"in u&&A==null||(E==="defaultValue"&&"value"in u&&u.value==null?E="value":E==="download"&&A===!0?A="":/ondoubleclick/i.test(E)?E="ondblclick":/^onchange(textarea|input)/i.test(E+i)&&!fse(u.type)?E="oninput":/^onfocus$/i.test(E)?E="onfocusin":/^onblur$/i.test(E)?E="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(E)?E=E.toLowerCase():C&&use.test(E)?E=E.replace(/[A-Z0-9]/g,"-$&").toLowerCase():A===null&&(A=void 0),/^oninput$/i.test(E)&&(E=E.toLowerCase(),g[E]&&(E="oninputCapture")),g[E]=A)}i=="select"&&g.multiple&&Array.isArray(g.value)&&(g.value=B8(u.children).forEach(function(D){D.props.selected=g.value.indexOf(D.props.value)!=-1})),i=="select"&&g.defaultValue!=null&&(g.value=B8(u.children).forEach(function(D){D.props.selected=g.multiple?g.defaultValue.indexOf(D.props.value)!=-1:g.defaultValue==D.props.value})),c.props=g,u.class!=u.className&&(tX.enumerable="className"in u,u.className!=null&&(g.class=u.className),Object.defineProperty(g,"className",tX))}c.$$typeof=cse,nX&&nX(c)};var oX=ps.__r;ps.__r=function(c){oX&&oX(c),c.__c};const sX=[],D$=new Map;function N$(c){sX.push(c),D$.forEach(i=>{aX(i,c)})}function pse(c){c.isConnected&&rX(c.getRootNode())}function rX(c){let i=D$.get(c);if(!i||!i.isConnected){if(i=c.querySelector("style[data-fullcalendar]"),!i){i=document.createElement("style"),i.setAttribute("data-fullcalendar","");const u=yse();u&&(i.nonce=u);const g=c===document?document.head:c,C=c===document?g.querySelector("script,link[rel=stylesheet],link[as=style],style"):g.firstChild;g.insertBefore(i,C)}D$.set(c,i),bse(i)}}function bse(c){for(const i of sX)aX(c,i)}function aX(c,i){const{sheet:u}=c,g=u.cssRules.length;i.split("}").forEach((C,E)=>{C=C.trim(),C&&u.insertRule(C+"}",g+E)})}let O$;function yse(){return O$===void 0&&(O$=vse()),O$}function vse(){const c=document.querySelector('meta[name="csp-nonce"]');if(c&&c.hasAttribute("content"))return c.getAttribute("content");const i=document.querySelector("script[nonce]");return i&&i.nonce||""}typeof document<"u"&&rX(document);var Cse=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';N$(Cse);class R${constructor(i){this.drainedOption=i,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(i){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),i==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),i))}pause(i=""){let{pauseDepths:u}=this;u[i]=(u[i]||0)+1,this.clearTimeout()}resume(i="",u){let{pauseDepths:g}=this;i in g&&(u?delete g[i]:(g[i]-=1,g[i]<=0&&delete g[i]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function B$(c){c.parentNode&&c.parentNode.removeChild(c)}function Zu(c,i){if(c.closest)return c.closest(i);if(!document.documentElement.contains(c))return null;do{if(wse(c,i))return c;c=c.parentElement||c.parentNode}while(c!==null&&c.nodeType===1);return null}function wse(c,i){return(c.matches||c.matchesSelector||c.msMatchesSelector).call(c,i)}function Sse(c,i){let u=c instanceof HTMLElement?[c]:c,g=[];for(let C=0;C<u.length;C+=1){let E=u[C].querySelectorAll(i);for(let A=0;A<E.length;A+=1)g.push(E[A])}return g}const _se=/(top|left|right|bottom|width|height)$/i;function Z6(c,i){for(let u in i)iX(c,u,i[u])}function iX(c,i,u){u==null?c.style[i]="":typeof u=="number"&&_se.test(i)?c.style[i]=`${u}px`:c.style[i]=u}function lX(c){var i,u;return(u=(i=c.composedPath)===null||i===void 0?void 0:i.call(c)[0])!==null&&u!==void 0?u:c.target}let cX=0;function P8(){return cX+=1,"fc-dom-"+cX}function $8(c){c.preventDefault()}function Ese(c,i){return u=>{let g=Zu(u.target,c);g&&i.call(g,u,g)}}function uX(c,i,u,g){let C=Ese(u,g);return c.addEventListener(i,C),()=>{c.removeEventListener(i,C)}}function xse(c,i,u,g){let C;return uX(c,"mouseover",i,(E,A)=>{if(A!==C){C=A,u(E,A);let D=L=>{C=null,g(L,A),A.removeEventListener("mouseleave",D)};A.addEventListener("mouseleave",D)}})}const dX=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function kse(c,i){let u=g=>{i(g),dX.forEach(C=>{c.removeEventListener(C,u)})};dX.forEach(g=>{c.addEventListener(g,u)})}function fX(c){return Object.assign({onClick:c},mX(c))}function mX(c){return{tabIndex:0,onKeyDown(i){(i.key==="Enter"||i.key===" ")&&(c(i),i.preventDefault())}}}let hX=0;function p2(){return hX+=1,String(hX)}function M$(){document.body.classList.add("fc-not-allowed")}function I$(){document.body.classList.remove("fc-not-allowed")}function Tse(c){c.style.userSelect="none",c.style.webkitUserSelect="none",c.addEventListener("selectstart",$8)}function Ase(c){c.style.userSelect="",c.style.webkitUserSelect="",c.removeEventListener("selectstart",$8)}function Dse(c){c.addEventListener("contextmenu",$8)}function Nse(c){c.removeEventListener("contextmenu",$8)}function Ose(c){let i=[],u=[],g,C;for(typeof c=="string"?u=c.split(/\s*,\s*/):typeof c=="function"?u=[c]:Array.isArray(c)&&(u=c),g=0;g<u.length;g+=1)C=u[g],typeof C=="string"?i.push(C.charAt(0)==="-"?{field:C.substring(1),order:-1}:{field:C,order:1}):typeof C=="function"&&i.push({func:C});return i}function Rse(c,i,u){let g,C;for(g=0;g<u.length;g+=1)if(C=Bse(c,i,u[g]),C)return C;return 0}function Bse(c,i,u){return u.func?u.func(c,i):Mse(c[u.field],i[u.field])*(u.order||1)}function Mse(c,i){return!c&&!i?0:i==null?-1:c==null?1:typeof c=="string"||typeof i=="string"?String(c).localeCompare(String(i)):c-i}function Jw(c,i){let u=String(c);return"000".substr(0,i-u.length)+u}function G6(c,i,u){return typeof c=="function"?c(...i):typeof c=="string"?i.reduce((g,C,E)=>g.replace("$"+E,C||""),c):u}function Ise(c,i){return c-i}function F8(c){return c%1===0}function Pse(c){let i=c.querySelector(".fc-scrollgrid-shrink-frame"),u=c.querySelector(".fc-scrollgrid-shrink-cushion");if(!i)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!u)throw new Error("needs fc-scrollgrid-shrink-cushion className");return c.getBoundingClientRect().width-i.getBoundingClientRect().width+u.getBoundingClientRect().width}const gX=["years","months","days","milliseconds"],$se=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Zr(c,i){return typeof c=="string"?Fse(c):typeof c=="object"&&c?pX(c):typeof c=="number"?pX({[i||"milliseconds"]:c}):null}function Fse(c){let i=$se.exec(c);if(i){let u=i[1]?-1:1;return{years:0,months:0,days:u*(i[2]?parseInt(i[2],10):0),milliseconds:u*((i[3]?parseInt(i[3],10):0)*60*60*1e3+(i[4]?parseInt(i[4],10):0)*60*1e3+(i[5]?parseInt(i[5],10):0)*1e3+(i[6]?parseInt(i[6],10):0))}}return null}function pX(c){let i={years:c.years||c.year||0,months:c.months||c.month||0,days:c.days||c.day||0,milliseconds:(c.hours||c.hour||0)*60*60*1e3+(c.minutes||c.minute||0)*60*1e3+(c.seconds||c.second||0)*1e3+(c.milliseconds||c.millisecond||c.ms||0)},u=c.weeks||c.week;return u&&(i.days+=u*7,i.specifiedWeeks=!0),i}function Lse(c,i){return c.years===i.years&&c.months===i.months&&c.days===i.days&&c.milliseconds===i.milliseconds}function P$(c,i){return{years:c.years+i.years,months:c.months+i.months,days:c.days+i.days,milliseconds:c.milliseconds+i.milliseconds}}function Vse(c,i){return{years:c.years-i.years,months:c.months-i.months,days:c.days-i.days,milliseconds:c.milliseconds-i.milliseconds}}function Hse(c,i){return{years:c.years*i,months:c.months*i,days:c.days*i,milliseconds:c.milliseconds*i}}function zse(c){return eS(c)/365}function Use(c){return eS(c)/30}function eS(c){return tg(c)/864e5}function tg(c){return c.years*(365*864e5)+c.months*(30*864e5)+c.days*864e5+c.milliseconds}function $$(c,i){let u=null;for(let g=0;g<gX.length;g+=1){let C=gX[g];if(i[C]){let E=c[C]/i[C];if(!F8(E)||u!==null&&u!==E)return null;u=E}else if(c[C])return null}return u}function F$(c){let i=c.milliseconds;if(i){if(i%1e3!==0)return{unit:"millisecond",value:i};if(i%(1e3*60)!==0)return{unit:"second",value:i/1e3};if(i%(1e3*60*60)!==0)return{unit:"minute",value:i/(1e3*60)};if(i)return{unit:"hour",value:i/(1e3*60*60)}}return c.days?c.specifiedWeeks&&c.days%7===0?{unit:"week",value:c.days/7}:{unit:"day",value:c.days}:c.months?{unit:"month",value:c.months}:c.years?{unit:"year",value:c.years}:{unit:"millisecond",value:0}}function jb(c,i,u){if(c===i)return!0;let g=c.length,C;if(g!==i.length)return!1;for(C=0;C<g;C+=1)if(!(u?u(c[C],i[C]):c[C]===i[C]))return!1;return!0}const Wse=["sun","mon","tue","wed","thu","fri","sat"];function bX(c,i){let u=Gb(c);return u[2]+=i*7,mf(u)}function Gu(c,i){let u=Gb(c);return u[2]+=i,mf(u)}function Zb(c,i){let u=Gb(c);return u[6]+=i,mf(u)}function jse(c,i){return b2(c,i)/7}function b2(c,i){return(i.valueOf()-c.valueOf())/(1e3*60*60*24)}function Zse(c,i){return(i.valueOf()-c.valueOf())/(1e3*60*60)}function Gse(c,i){return(i.valueOf()-c.valueOf())/(1e3*60)}function qse(c,i){return(i.valueOf()-c.valueOf())/1e3}function Yse(c,i){let u=Ii(c),g=Ii(i);return{years:0,months:0,days:Math.round(b2(u,g)),milliseconds:i.valueOf()-g.valueOf()-(c.valueOf()-u.valueOf())}}function Kse(c,i){let u=L8(c,i);return u!==null&&u%7===0?u/7:null}function L8(c,i){return qb(c)===qb(i)?Math.round(b2(c,i)):null}function Ii(c){return mf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()])}function Xse(c){return mf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours()])}function Qse(c){return mf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes()])}function Jse(c){return mf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds()])}function ere(c,i,u){let g=c.getUTCFullYear(),C=L$(c,g,i,u);if(C<1)return L$(c,g-1,i,u);let E=L$(c,g+1,i,u);return E>=1?Math.min(C,E):C}function L$(c,i,u,g){let C=mf([i,0,1+tre(i,u,g)]),E=Ii(c),A=Math.round(b2(C,E));return Math.floor(A/7)+1}function tre(c,i,u){let g=7+i-u;return-((7+mf([c,0,g]).getUTCDay()-i)%7)+g-1}function yX(c){return[c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds()]}function vX(c){return new Date(c[0],c[1]||0,c[2]==null?1:c[2],c[3]||0,c[4]||0,c[5]||0)}function Gb(c){return[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()]}function mf(c){return c.length===1&&(c=c.concat([0])),new Date(Date.UTC(...c))}function CX(c){return!isNaN(c.valueOf())}function qb(c){return c.getUTCHours()*1e3*60*60+c.getUTCMinutes()*1e3*60+c.getUTCSeconds()*1e3+c.getUTCMilliseconds()}function wX(c,i,u=!1){let g=c.toISOString();return g=g.replace(".000",""),u&&(g=g.replace("T00:00:00Z","")),g.length>10&&(i==null?g=g.replace("Z",""):i!==0&&(g=g.replace("Z",H$(i,!0)))),g}function V$(c){return c.toISOString().replace(/T.*$/,"")}function nre(c){return c.toISOString().match(/^\d{4}-\d{2}/)[0]}function ore(c){return Jw(c.getUTCHours(),2)+":"+Jw(c.getUTCMinutes(),2)+":"+Jw(c.getUTCSeconds(),2)}function H$(c,i=!1){let u=c<0?"-":"+",g=Math.abs(c),C=Math.floor(g/60),E=Math.round(g%60);return i?`${u+Jw(C,2)}:${Jw(E,2)}`:`GMT${u}${C}${E?`:${Jw(E,2)}`:""}`}function Es(c,i,u){let g,C;return function(...E){if(!g)C=c.apply(this,E);else if(!jb(g,E)){u&&u(C);let A=c.apply(this,E);(!i||!i(A,C))&&(C=A)}return g=E,C}}function V8(c,i,u){let g,C;return E=>{if(!g)C=c.call(this,E);else if(!fp(g,E)){u&&u(C);let A=c.call(this,E);(!i||!i(A,C))&&(C=A)}return g=E,C}}const SX={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},H8={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},z8=/\s*([ap])\.?m\.?/i,sre=/,/g,rre=/\s+/g,are=/\u200e/g,ire=/UTC|GMT/;class lre{constructor(i){let u={},g={},C=0;for(let E in i)E in SX?(g[E]=i[E],C=Math.max(SX[E],C)):(u[E]=i[E],E in H8&&(C=Math.max(H8[E],C)));this.standardDateProps=u,this.extendedSettings=g,this.severity=C,this.buildFormattingFunc=Es(_X)}format(i,u){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,u)(i)}formatRange(i,u,g,C){let{standardDateProps:E,extendedSettings:A}=this,D=hre(i.marker,u.marker,g.calendarSystem);if(!D)return this.format(i,g);let L=D;L>1&&(E.year==="numeric"||E.year==="2-digit")&&(E.month==="numeric"||E.month==="2-digit")&&(E.day==="numeric"||E.day==="2-digit")&&(L=1);let G=this.format(i,g),W=this.format(u,g);if(G===W)return G;let ae=gre(E,L),ne=_X(ae,A,g),F=ne(i),ye=ne(u),le=pre(G,F,W,ye),te=A.separator||C||g.defaultSeparator||"";return le?le.before+F+te+ye+le.after:G+te+W}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function _X(c,i,u){let g=Object.keys(c).length;return g===1&&c.timeZoneName==="short"?C=>H$(C.timeZoneOffset):g===0&&i.week?C=>mre(u.computeWeekNumber(C.marker),u.weekText,u.weekTextLong,u.locale,i.week):cre(c,i,u)}function cre(c,i,u){c=Object.assign({},c),i=Object.assign({},i),ure(c,i),c.timeZone="UTC";let g=new Intl.DateTimeFormat(u.locale.codes,c),C;if(i.omitZeroMinute){let E=Object.assign({},c);delete E.minute,C=new Intl.DateTimeFormat(u.locale.codes,E)}return E=>{let{marker:A}=E,D;C&&!A.getUTCMinutes()?D=C:D=g;let L=D.format(A);return dre(L,E,c,i,u)}}function ure(c,i){c.timeZoneName&&(c.hour||(c.hour="2-digit"),c.minute||(c.minute="2-digit")),c.timeZoneName==="long"&&(c.timeZoneName="short"),i.omitZeroMinute&&(c.second||c.millisecond)&&delete i.omitZeroMinute}function dre(c,i,u,g,C){return c=c.replace(are,""),u.timeZoneName==="short"&&(c=fre(c,C.timeZone==="UTC"||i.timeZoneOffset==null?"UTC":H$(i.timeZoneOffset))),g.omitCommas&&(c=c.replace(sre,"").trim()),g.omitZeroMinute&&(c=c.replace(":00","")),g.meridiem===!1?c=c.replace(z8,"").trim():g.meridiem==="narrow"?c=c.replace(z8,(E,A)=>A.toLocaleLowerCase()):g.meridiem==="short"?c=c.replace(z8,(E,A)=>`${A.toLocaleLowerCase()}m`):g.meridiem==="lowercase"&&(c=c.replace(z8,E=>E.toLocaleLowerCase())),c=c.replace(rre," "),c=c.trim(),c}function fre(c,i){let u=!1;return c=c.replace(ire,()=>(u=!0,i)),u||(c+=` ${i}`),c}function mre(c,i,u,g,C){let E=[];return C==="long"?E.push(u):(C==="short"||C==="narrow")&&E.push(i),(C==="long"||C==="short")&&E.push(" "),E.push(g.simpleNumberFormat.format(c)),g.options.direction==="rtl"&&E.reverse(),E.join("")}function hre(c,i,u){return u.getMarkerYear(c)!==u.getMarkerYear(i)?5:u.getMarkerMonth(c)!==u.getMarkerMonth(i)?4:u.getMarkerDay(c)!==u.getMarkerDay(i)?2:qb(c)!==qb(i)?1:0}function gre(c,i){let u={};for(let g in c)(!(g in H8)||H8[g]<=i)&&(u[g]=c[g]);return u}function pre(c,i,u,g){let C=0;for(;C<c.length;){let E=c.indexOf(i,C);if(E===-1)break;let A=c.substr(0,E);C=E+i.length;let D=c.substr(C),L=0;for(;L<u.length;){let G=u.indexOf(g,L);if(G===-1)break;let W=u.substr(0,G);L=G+g.length;let ae=u.substr(L);if(A===W&&D===ae)return{before:A,after:D}}}return null}function EX(c,i){let u=i.markerToArray(c.marker);return{marker:c.marker,timeZoneOffset:c.timeZoneOffset,array:u,year:u[0],month:u[1],day:u[2],hour:u[3],minute:u[4],second:u[5],millisecond:u[6]}}function U8(c,i,u,g){let C=EX(c,u.calendarSystem),E=i?EX(i,u.calendarSystem):null;return{date:C,start:C,end:E,timeZone:u.timeZone,localeCodes:u.locale.codes,defaultSeparator:g||u.defaultSeparator}}class bre{constructor(i){this.cmdStr=i}format(i,u,g){return u.cmdFormatter(this.cmdStr,U8(i,null,u,g))}formatRange(i,u,g,C){return g.cmdFormatter(this.cmdStr,U8(i,u,g,C))}}class yre{constructor(i){this.func=i}format(i,u,g){return this.func(U8(i,null,u,g))}formatRange(i,u,g,C){return this.func(U8(i,u,g,C))}}function _l(c){return typeof c=="object"&&c?new lre(c):typeof c=="string"?new bre(c):typeof c=="function"?new yre(c):null}const xX={navLinkDayClick:Wt,navLinkWeekClick:Wt,duration:Zr,bootstrapFontAwesome:Wt,buttonIcons:Wt,customButtons:Wt,defaultAllDayEventDuration:Zr,defaultTimedEventDuration:Zr,nextDayThreshold:Zr,scrollTime:Zr,scrollTimeReset:Boolean,slotMinTime:Zr,slotMaxTime:Zr,dayPopoverFormat:_l,slotDuration:Zr,snapDuration:Zr,headerToolbar:Wt,footerToolbar:Wt,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:_l,dayHeaderClassNames:Wt,dayHeaderContent:Wt,dayHeaderDidMount:Wt,dayHeaderWillUnmount:Wt,dayCellClassNames:Wt,dayCellContent:Wt,dayCellDidMount:Wt,dayCellWillUnmount:Wt,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Wt,weekNumbers:Boolean,weekNumberClassNames:Wt,weekNumberContent:Wt,weekNumberDidMount:Wt,weekNumberWillUnmount:Wt,editable:Boolean,viewClassNames:Wt,viewDidMount:Wt,viewWillUnmount:Wt,nowIndicator:Boolean,nowIndicatorClassNames:Wt,nowIndicatorContent:Wt,nowIndicatorDidMount:Wt,nowIndicatorWillUnmount:Wt,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Wt,locale:Wt,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Wt,eventOrder:Ose,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Wt,contentHeight:Wt,direction:String,weekNumberFormat:_l,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:Wt,initialDate:Wt,now:Wt,eventDataTransform:Wt,stickyHeaderDates:Wt,stickyFooterScrollbar:Wt,viewHeight:Wt,defaultAllDay:Boolean,eventSourceFailure:Wt,eventSourceSuccess:Wt,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Wt,eventConstraint:Wt,eventAllow:Wt,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Wt,eventContent:Wt,eventDidMount:Wt,eventWillUnmount:Wt,selectConstraint:Wt,selectOverlap:Wt,selectAllow:Wt,droppable:Boolean,unselectCancel:String,slotLabelFormat:Wt,slotLaneClassNames:Wt,slotLaneContent:Wt,slotLaneDidMount:Wt,slotLaneWillUnmount:Wt,slotLabelClassNames:Wt,slotLabelContent:Wt,slotLabelDidMount:Wt,slotLabelWillUnmount:Wt,dayMaxEvents:Wt,dayMaxEventRows:Wt,dayMinWidth:Number,slotLabelInterval:Zr,allDayText:String,allDayClassNames:Wt,allDayContent:Wt,allDayDidMount:Wt,allDayWillUnmount:Wt,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:_l,rerenderDelay:Number,moreLinkText:Wt,moreLinkHint:Wt,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Wt,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Zr,hiddenDays:Wt,fixedWeekCount:Boolean,validRange:Wt,visibleRange:Wt,titleFormat:Wt,eventInteractive:Boolean,noEventsText:String,viewHint:Wt,navLinkHint:Wt,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:Wt,moreLinkClassNames:Wt,moreLinkContent:Wt,moreLinkDidMount:Wt,moreLinkWillUnmount:Wt,monthStartFormat:_l,handleCustomRendering:Wt,customRenderingMetaMap:Wt,customRenderingReplaces:Boolean},q6={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},kX={datesSet:Wt,eventsSet:Wt,eventAdd:Wt,eventChange:Wt,eventRemove:Wt,windowResize:Wt,eventClick:Wt,eventMouseEnter:Wt,eventMouseLeave:Wt,select:Wt,unselect:Wt,loading:Wt,_unmount:Wt,_beforeprint:Wt,_afterprint:Wt,_noEventDrop:Wt,_noEventResize:Wt,_resize:Wt,_scrollRequest:Wt},TX={buttonText:Wt,buttonHints:Wt,views:Wt,plugins:Wt,initialEvents:Wt,events:Wt,eventSources:Wt},y2={headerToolbar:v2,footerToolbar:v2,buttonText:v2,buttonHints:v2,buttonIcons:v2,dateIncrement:v2,plugins:W8,events:W8,eventSources:W8,resources:W8};function v2(c,i){return typeof c=="object"&&typeof i=="object"&&c&&i?fp(c,i):c===i}function W8(c,i){return Array.isArray(c)&&Array.isArray(i)?jb(c,i):c===i}const vre={type:String,component:Wt,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Wt,usesMinMaxTime:Boolean,classNames:Wt,content:Wt,didMount:Wt,willUnmount:Wt};function z$(c){return W$(c,y2)}function U$(c,i){let u={},g={};for(let C in i)C in c&&(u[C]=i[C](c[C]));for(let C in c)C in i||(g[C]=c[C]);return{refined:u,extra:g}}function Wt(c){return c}const{hasOwnProperty:j8}=Object.prototype;function W$(c,i){let u={};if(i){for(let g in i)if(i[g]===v2){let C=[];for(let E=c.length-1;E>=0;E-=1){let A=c[E][g];if(typeof A=="object"&&A)C.unshift(A);else if(A!==void 0){u[g]=A;break}}C.length&&(u[g]=W$(C))}}for(let g=c.length-1;g>=0;g-=1){let C=c[g];for(let E in C)E in u||(u[E]=C[E])}return u}function C2(c,i){let u={};for(let g in c)i(c[g],g)&&(u[g]=c[g]);return u}function R1(c,i){let u={};for(let g in c)u[g]=i(c[g],g);return u}function AX(c){let i={};for(let u of c)i[u]=!0;return i}function j$(c){let i=[];for(let u in c)i.push(c[u]);return i}function fp(c,i){if(c===i)return!0;for(let u in c)if(j8.call(c,u)&&!(u in i))return!1;for(let u in i)if(j8.call(i,u)&&c[u]!==i[u])return!1;return!0}const Cre=/^on[A-Z]/;function wre(c,i){const u=Z$(c,i);for(let g of u)if(!Cre.test(g))return!1;return!0}function Z$(c,i){let u=[];for(let g in c)j8.call(c,g)&&(g in i||u.push(g));for(let g in i)j8.call(i,g)&&c[g]!==i[g]&&u.push(g);return u}function G$(c,i,u={}){if(c===i)return!0;for(let g in i)if(!(g in c&&Sre(c[g],i[g],u[g])))return!1;for(let g in c)if(!(g in i))return!1;return!0}function Sre(c,i,u){return c===i||u===!0?!0:u?u(c,i):!1}function _re(c,i=0,u,g=1){let C=[];u==null&&(u=Object.keys(c).length);for(let E=i;E<u;E+=g){let A=c[E];A!==void 0&&C.push(A)}return C}let DX={};function Ere(c,i){DX[c]=i}function xre(c){return new DX[c]}class kre{getMarkerYear(i){return i.getUTCFullYear()}getMarkerMonth(i){return i.getUTCMonth()}getMarkerDay(i){return i.getUTCDate()}arrayToMarker(i){return mf(i)}markerToArray(i){return Gb(i)}}Ere("gregory",kre);const Tre=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Are(c){let i=Tre.exec(c);if(i){let u=new Date(Date.UTC(Number(i[1]),i[3]?Number(i[3])-1:0,Number(i[5]||1),Number(i[7]||0),Number(i[8]||0),Number(i[10]||0),i[12]?+`0.${i[12]}`*1e3:0));if(CX(u)){let g=null;return i[13]&&(g=(i[15]==="-"?-1:1)*(Number(i[16]||0)*60+Number(i[18]||0))),{marker:u,isTimeUnspecified:!i[6],timeZoneOffset:g}}}return null}class Dre{constructor(i){let u=this.timeZone=i.timeZone,g=u!=="local"&&u!=="UTC";i.namedTimeZoneImpl&&g&&(this.namedTimeZoneImpl=new i.namedTimeZoneImpl(u)),this.canComputeOffset=!!(!g||this.namedTimeZoneImpl),this.calendarSystem=xre(i.calendarSystem),this.locale=i.locale,this.weekDow=i.locale.week.dow,this.weekDoy=i.locale.week.doy,i.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof i.firstDay=="number"&&(this.weekDow=i.firstDay),typeof i.weekNumberCalculation=="function"&&(this.weekNumberFunc=i.weekNumberCalculation),this.weekText=i.weekText!=null?i.weekText:i.locale.options.weekText,this.weekTextLong=(i.weekTextLong!=null?i.weekTextLong:i.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=i.cmdFormatter,this.defaultSeparator=i.defaultSeparator}createMarker(i){let u=this.createMarkerMeta(i);return u===null?null:u.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):mf(yX(new Date))}createMarkerMeta(i){if(typeof i=="string")return this.parse(i);let u=null;return typeof i=="number"?u=this.timestampToMarker(i):i instanceof Date?(i=i.valueOf(),isNaN(i)||(u=this.timestampToMarker(i))):Array.isArray(i)&&(u=mf(i)),u===null||!CX(u)?null:{marker:u,isTimeUnspecified:!1,forcedTzo:null}}parse(i){let u=Are(i);if(u===null)return null;let{marker:g}=u,C=null;return u.timeZoneOffset!==null&&(this.canComputeOffset?g=this.timestampToMarker(g.valueOf()-u.timeZoneOffset*60*1e3):C=u.timeZoneOffset),{marker:g,isTimeUnspecified:u.isTimeUnspecified,forcedTzo:C}}getYear(i){return this.calendarSystem.getMarkerYear(i)}getMonth(i){return this.calendarSystem.getMarkerMonth(i)}getDay(i){return this.calendarSystem.getMarkerDay(i)}add(i,u){let g=this.calendarSystem.markerToArray(i);return g[0]+=u.years,g[1]+=u.months,g[2]+=u.days,g[6]+=u.milliseconds,this.calendarSystem.arrayToMarker(g)}subtract(i,u){let g=this.calendarSystem.markerToArray(i);return g[0]-=u.years,g[1]-=u.months,g[2]-=u.days,g[6]-=u.milliseconds,this.calendarSystem.arrayToMarker(g)}addYears(i,u){let g=this.calendarSystem.markerToArray(i);return g[0]+=u,this.calendarSystem.arrayToMarker(g)}addMonths(i,u){let g=this.calendarSystem.markerToArray(i);return g[1]+=u,this.calendarSystem.arrayToMarker(g)}diffWholeYears(i,u){let{calendarSystem:g}=this;return qb(i)===qb(u)&&g.getMarkerDay(i)===g.getMarkerDay(u)&&g.getMarkerMonth(i)===g.getMarkerMonth(u)?g.getMarkerYear(u)-g.getMarkerYear(i):null}diffWholeMonths(i,u){let{calendarSystem:g}=this;return qb(i)===qb(u)&&g.getMarkerDay(i)===g.getMarkerDay(u)?g.getMarkerMonth(u)-g.getMarkerMonth(i)+(g.getMarkerYear(u)-g.getMarkerYear(i))*12:null}greatestWholeUnit(i,u){let g=this.diffWholeYears(i,u);return g!==null?{unit:"year",value:g}:(g=this.diffWholeMonths(i,u),g!==null?{unit:"month",value:g}:(g=Kse(i,u),g!==null?{unit:"week",value:g}:(g=L8(i,u),g!==null?{unit:"day",value:g}:(g=Zse(i,u),F8(g)?{unit:"hour",value:g}:(g=Gse(i,u),F8(g)?{unit:"minute",value:g}:(g=qse(i,u),F8(g)?{unit:"second",value:g}:{unit:"millisecond",value:u.valueOf()-i.valueOf()}))))))}countDurationsBetween(i,u,g){let C;return g.years&&(C=this.diffWholeYears(i,u),C!==null)?C/zse(g):g.months&&(C=this.diffWholeMonths(i,u),C!==null)?C/Use(g):g.days&&(C=L8(i,u),C!==null)?C/eS(g):(u.valueOf()-i.valueOf())/tg(g)}startOf(i,u){return u==="year"?this.startOfYear(i):u==="month"?this.startOfMonth(i):u==="week"?this.startOfWeek(i):u==="day"?Ii(i):u==="hour"?Xse(i):u==="minute"?Qse(i):u==="second"?Jse(i):null}startOfYear(i){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(i)])}startOfMonth(i){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(i),this.calendarSystem.getMarkerMonth(i)])}startOfWeek(i){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(i),this.calendarSystem.getMarkerMonth(i),i.getUTCDate()-(i.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(i){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(i)):ere(i,this.weekDow,this.weekDoy)}format(i,u,g={}){return u.format({marker:i,timeZoneOffset:g.forcedTzo!=null?g.forcedTzo:this.offsetForMarker(i)},this)}formatRange(i,u,g,C={}){return C.isEndExclusive&&(u=Zb(u,-1)),g.formatRange({marker:i,timeZoneOffset:C.forcedStartTzo!=null?C.forcedStartTzo:this.offsetForMarker(i)},{marker:u,timeZoneOffset:C.forcedEndTzo!=null?C.forcedEndTzo:this.offsetForMarker(u)},this,C.defaultSeparator)}formatIso(i,u={}){let g=null;return u.omitTimeZoneOffset||(u.forcedTzo!=null?g=u.forcedTzo:g=this.offsetForMarker(i)),wX(i,g,u.omitTime)}timestampToMarker(i){return this.timeZone==="local"?mf(yX(new Date(i))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(i):mf(this.namedTimeZoneImpl.timestampToArray(i))}offsetForMarker(i){return this.timeZone==="local"?-vX(Gb(i)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Gb(i)):null}toDate(i,u){return this.timeZone==="local"?vX(Gb(i)):this.timeZone==="UTC"?new Date(i.valueOf()):this.namedTimeZoneImpl?new Date(i.valueOf()-this.namedTimeZoneImpl.offsetForArray(Gb(i))*1e3*60):new Date(i.valueOf()-(u||0))}}class Y6{constructor(i){this.iconOverrideOption&&this.setIconOverride(i[this.iconOverrideOption])}setIconOverride(i){let u,g;if(typeof i=="object"&&i){u=Object.assign({},this.iconClasses);for(g in i)u[g]=this.applyIconOverridePrefix(i[g]);this.iconClasses=u}else i===!1&&(this.iconClasses={})}applyIconOverridePrefix(i){let u=this.iconOverridePrefix;return u&&i.indexOf(u)!==0&&(i=u+i),i}getClass(i){return this.classes[i]||""}getIconClass(i,u){let g;return u&&this.rtlIconClasses?g=this.rtlIconClasses[i]||this.iconClasses[i]:g=this.iconClasses[i],g?`${this.baseIconClass} ${g}`:""}getCustomButtonIconClass(i){let u;return this.iconOverrideCustomButtonOption&&(u=i[this.iconOverrideCustomButtonOption],u)?`${this.baseIconClass} ${this.applyIconOverridePrefix(u)}`:""}}Y6.prototype.classes={},Y6.prototype.iconClasses={},Y6.prototype.baseIconClass="",Y6.prototype.iconOverridePrefix="";function NX(c){c();let i=ps.debounceRendering,u=[];function g(C){u.push(C)}for(ps.debounceRendering=g,j6(Qe(Nre,{}),document.createElement("div"));u.length;)u.shift()();ps.debounceRendering=i}class Nre extends hm{render(){return Qe("div",{})}componentDidMount(){this.setState({})}}function OX(c){let i=tse(c),u=i.Provider;return i.Provider=function(){let g=!this.getChildContext,C=u.apply(this,arguments);if(g){let E=[];this.shouldComponentUpdate=A=>{this.props.value!==A.value&&E.forEach(D=>{D.context=A.value,D.forceUpdate()})},this.sub=A=>{E.push(A);let D=A.componentWillUnmount;A.componentWillUnmount=()=>{E.splice(E.indexOf(A),1),D&&D.call(A)}}}return C},i}class Ore{constructor(i,u,g,C){this.execFunc=i,this.emitter=u,this.scrollTime=g,this.scrollTimeReset=C,this.handleScrollRequest=E=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},E),this.drain()},u.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(i){i&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const B1=OX({});function Rre(c,i,u,g,C,E,A,D,L,G,W,ae,ne){return{dateEnv:C,options:u,pluginHooks:A,emitter:G,dispatch:D,getCurrentData:L,calendarApi:W,viewSpec:c,viewApi:i,dateProfileGenerator:g,theme:E,isRtl:u.direction==="rtl",addResizeHandler(F){G.on("_resize",F)},removeResizeHandler(F){G.off("_resize",F)},createScrollResponder(F){return new Ore(F,G,Zr(u.scrollTime),u.scrollTimeReset)},registerInteractiveComponent:ae,unregisterInteractiveComponent:ne}}class w2 extends hm{shouldComponentUpdate(i,u){return this.debug&&console.log(Z$(i,this.props),Z$(u,this.state)),!G$(this.props,i,this.propEquality)||!G$(this.state,u,this.stateEquality)}safeSetState(i){G$(this.state,Object.assign(Object.assign({},this.state),i),this.stateEquality)||this.setState(i)}}w2.addPropsEquality=Bre,w2.addStateEquality=Mre,w2.contextType=B1,w2.prototype.propEquality={},w2.prototype.stateEquality={};class Ba extends w2{}Ba.contextType=B1;function Bre(c){let i=Object.create(this.prototype.propEquality);Object.assign(i,c),this.prototype.propEquality=i}function Mre(c){let i=Object.create(this.prototype.stateEquality);Object.assign(i,c),this.prototype.stateEquality=i}function M1(c,i){typeof c=="function"?c(i):c&&(c.current=i)}class q$ extends Ba{constructor(){super(...arguments),this.id=p2(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=i=>{const{options:u}=this.context,{generatorName:g}=this.props;(!u.customRenderingReplaces||!Y$(g,u))&&this.updateElRef(i)},this.updateElRef=i=>{this.props.elRef&&M1(this.props.elRef,i)}}render(){const{props:i,context:u}=this,{options:g}=u,{customGenerator:C,defaultGenerator:E,renderProps:A}=i,D=RX(i,[],this.handleEl);let L=!1,G,W=[],ae;if(C!=null){const ne=typeof C=="function"?C(A,Qe):C;if(ne===!0)L=!0;else{const F=ne&&typeof ne=="object";F&&"html"in ne?D.dangerouslySetInnerHTML={__html:ne.html}:F&&"domNodes"in ne?W=Array.prototype.slice.call(ne.domNodes):(F?wK(ne):typeof ne!="function")?G=ne:ae=ne}}else L=!Y$(i.generatorName,g);return L&&E&&(G=E(A)),this.queuedDomNodes=W,this.currentGeneratorMeta=ae,Qe(i.elTag,D,G)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(i){var u;const{props:g,context:C}=this,{handleCustomRendering:E,customRenderingMetaMap:A}=C.options;if(E){const D=(u=this.currentGeneratorMeta)!==null&&u!==void 0?u:A==null?void 0:A[g.generatorName];D&&E(Object.assign(Object.assign({id:this.id,isActive:i,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:D},g),{elClasses:(g.elClasses||[]).filter(Ire)}))}}applyQueueudDomNodes(){const{queuedDomNodes:i,currentDomNodes:u}=this,g=this.base;if(!jb(i,u)){u.forEach(B$);for(let C of i)g.appendChild(C);this.currentDomNodes=i}}}q$.addPropsEquality({elClasses:jb,elStyle:fp,elAttrs:wre,renderProps:fp});function Y$(c,i){var u;return!!(i.handleCustomRendering&&c&&(!((u=i.customRenderingMetaMap)===null||u===void 0)&&u[c]))}function RX(c,i,u){const g=Object.assign(Object.assign({},c.elAttrs),{ref:u});return(c.elClasses||i)&&(g.className=(c.elClasses||[]).concat(i||[]).concat(g.className||[]).filter(Boolean).join(" ")),c.elStyle&&(g.style=c.elStyle),g}function Ire(c){return!!c}const BX=OX(0);class gm extends hm{constructor(){super(...arguments),this.InnerContent=Pre.bind(void 0,this),this.handleEl=i=>{this.el=i,this.props.elRef&&(M1(this.props.elRef,i),i&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:i}=this,u=$re(i.classNameGenerator,i.renderProps);if(i.children){const g=RX(i,u,this.handleEl),C=i.children(this.InnerContent,i.renderProps,g);return i.elTag?Qe(i.elTag,g,C):C}else return Qe(q$,Object.assign(Object.assign({},i),{elRef:this.handleEl,elTag:i.elTag||"div",elClasses:(i.elClasses||[]).concat(u),renderId:this.context}))}componentDidMount(){var i,u;this.el?(u=(i=this.props).didMount)===null||u===void 0||u.call(i,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var i,u;(u=(i=this.props).willUnmount)===null||u===void 0||u.call(i,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}gm.contextType=BX;function Pre(c,i){const u=c.props;return Qe(q$,Object.assign({renderProps:u.renderProps,generatorName:u.generatorName,customGenerator:u.customGenerator,defaultGenerator:u.defaultGenerator,renderId:c.context},i))}function $re(c,i){const u=typeof c=="function"?c(i):c||[];return typeof u=="string"?[u]:u}class Z8 extends Ba{render(){let{props:i,context:u}=this,{options:g}=u,C={view:u.viewApi};return Qe(gm,Object.assign({},i,{elTag:i.elTag||"div",elClasses:[...MX(i.viewSpec),...i.elClasses||[]],renderProps:C,classNameGenerator:g.viewClassNames,generatorName:void 0,didMount:g.viewDidMount,willUnmount:g.viewWillUnmount}),()=>i.children)}}function MX(c){return[`fc-${c.type}-view`,"fc-view"]}function Fre(c,i){let u=null,g=null;return c.start&&(u=i.createMarker(c.start)),c.end&&(g=i.createMarker(c.end)),!u&&!g||u&&g&&g<u?null:{start:u,end:g}}function IX(c,i){let u=[],{start:g}=i,C,E;for(c.sort(Lre),C=0;C<c.length;C+=1)E=c[C],E.start>g&&u.push({start:g,end:E.start}),E.end>g&&(g=E.end);return g<i.end&&u.push({start:g,end:i.end}),u}function Lre(c,i){return c.start.valueOf()-i.start.valueOf()}function S2(c,i){let{start:u,end:g}=c,C=null;return i.start!==null&&(u===null?u=i.start:u=new Date(Math.max(u.valueOf(),i.start.valueOf()))),i.end!=null&&(g===null?g=i.end:g=new Date(Math.min(g.valueOf(),i.end.valueOf()))),(u===null||g===null||u<g)&&(C={start:u,end:g}),C}function Vre(c,i){return(c.start===null?null:c.start.valueOf())===(i.start===null?null:i.start.valueOf())&&(c.end===null?null:c.end.valueOf())===(i.end===null?null:i.end.valueOf())}function K$(c,i){return(c.end===null||i.start===null||c.end>i.start)&&(c.start===null||i.end===null||c.start<i.end)}function G8(c,i){return(c.start===null||i.start!==null&&i.start>=c.start)&&(c.end===null||i.end!==null&&i.end<=c.end)}function I1(c,i){return(c.start===null||i>=c.start)&&(c.end===null||i<c.end)}function Hre(c,i){return i.start!=null&&c<i.start?i.start:i.end!=null&&c>=i.end?new Date(i.end.valueOf()-1):c}function PX(c){let i=Math.floor(b2(c.start,c.end))||1,u=Ii(c.start),g=Gu(u,i);return{start:u,end:g}}function $X(c,i=Zr(0)){let u=null,g=null;if(c.end){g=Ii(c.end);let C=c.end.valueOf()-g.valueOf();C&&C>=tg(i)&&(g=Gu(g,1))}return c.start&&(u=Ii(c.start),g&&g<=u&&(g=Gu(u,1))),{start:u,end:g}}function tS(c,i,u,g){return g==="year"?Zr(u.diffWholeYears(c,i),"year"):g==="month"?Zr(u.diffWholeMonths(c,i),"month"):Yse(c,i)}function zre(c,i){switch(i.type){case"CHANGE_DATE":return i.dateMarker;default:return c}}function Ure(c,i){let u=c.initialDate;return u!=null?i.createMarker(u):K6(c.now,i)}function K6(c,i){return typeof c=="function"&&(c=c()),c==null?i.createNowMarker():i.createMarker(c)}class FX{constructor(i){this.props=i,this.nowDate=K6(i.nowInput,i.dateEnv),this.initHiddenDays()}buildPrev(i,u,g){let{dateEnv:C}=this.props,E=C.subtract(C.startOf(u,i.currentRangeUnit),i.dateIncrement);return this.build(E,-1,g)}buildNext(i,u,g){let{dateEnv:C}=this.props,E=C.add(C.startOf(u,i.currentRangeUnit),i.dateIncrement);return this.build(E,1,g)}build(i,u,g=!0){let{props:C}=this,E,A,D,L,G,W;return E=this.buildValidRange(),E=this.trimHiddenDays(E),g&&(i=Hre(i,E)),A=this.buildCurrentRangeInfo(i,u),D=/^(year|month|week|day)$/.test(A.unit),L=this.buildRenderRange(this.trimHiddenDays(A.range),A.unit,D),L=this.trimHiddenDays(L),G=L,C.showNonCurrentDates||(G=S2(G,A.range)),G=this.adjustActiveRange(G),G=S2(G,E),W=K$(A.range,E),I1(L,i)||(i=L.start),{currentDate:i,validRange:E,currentRange:A.range,currentRangeUnit:A.unit,isRangeAllDay:D,activeRange:G,renderRange:L,slotMinTime:C.slotMinTime,slotMaxTime:C.slotMaxTime,isValid:W,dateIncrement:this.buildDateIncrement(A.duration)}}buildValidRange(){let i=this.props.validRangeInput,u=typeof i=="function"?i.call(this.props.calendarApi,this.nowDate):i;return this.refineRange(u)||{start:null,end:null}}buildCurrentRangeInfo(i,u){let{props:g}=this,C=null,E=null,A=null,D;return g.duration?(C=g.duration,E=g.durationUnit,A=this.buildRangeFromDuration(i,u,C,E)):(D=this.props.dayCount)?(E="day",A=this.buildRangeFromDayCount(i,u,D)):(A=this.buildCustomVisibleRange(i))?E=g.dateEnv.greatestWholeUnit(A.start,A.end).unit:(C=this.getFallbackDuration(),E=F$(C).unit,A=this.buildRangeFromDuration(i,u,C,E)),{duration:C,unit:E,range:A}}getFallbackDuration(){return Zr({day:1})}adjustActiveRange(i){let{dateEnv:u,usesMinMaxTime:g,slotMinTime:C,slotMaxTime:E}=this.props,{start:A,end:D}=i;return g&&(eS(C)<0&&(A=Ii(A),A=u.add(A,C)),eS(E)>1&&(D=Ii(D),D=Gu(D,-1),D=u.add(D,E))),{start:A,end:D}}buildRangeFromDuration(i,u,g,C){let{dateEnv:E,dateAlignment:A}=this.props,D,L,G;if(!A){let{dateIncrement:ae}=this.props;ae&&tg(ae)<tg(g)?A=F$(ae).unit:A=C}eS(g)<=1&&this.isHiddenDay(D)&&(D=this.skipHiddenDays(D,u),D=Ii(D));function W(){D=E.startOf(i,A),L=E.add(D,g),G={start:D,end:L}}return W(),this.trimHiddenDays(G)||(i=this.skipHiddenDays(i,u),W()),G}buildRangeFromDayCount(i,u,g){let{dateEnv:C,dateAlignment:E}=this.props,A=0,D=i,L;E&&(D=C.startOf(D,E)),D=Ii(D),D=this.skipHiddenDays(D,u),L=D;do L=Gu(L,1),this.isHiddenDay(L)||(A+=1);while(A<g);return{start:D,end:L}}buildCustomVisibleRange(i){let{props:u}=this,g=u.visibleRangeInput,C=typeof g=="function"?g.call(u.calendarApi,u.dateEnv.toDate(i)):g,E=this.refineRange(C);return E&&(E.start==null||E.end==null)?null:E}buildRenderRange(i,u,g){return i}buildDateIncrement(i){let{dateIncrement:u}=this.props,g;return u||((g=this.props.dateAlignment)?Zr(1,g):i||Zr({days:1}))}refineRange(i){if(i){let u=Fre(i,this.props.dateEnv);return u&&(u=$X(u)),u}return null}initHiddenDays(){let i=this.props.hiddenDays||[],u=[],g=0,C;for(this.props.weekends===!1&&i.push(0,6),C=0;C<7;C+=1)(u[C]=i.indexOf(C)!==-1)||(g+=1);if(!g)throw new Error("invalid hiddenDays");this.isHiddenDayHash=u}trimHiddenDays(i){let{start:u,end:g}=i;return u&&(u=this.skipHiddenDays(u)),g&&(g=this.skipHiddenDays(g,-1,!0)),u==null||g==null||u<g?{start:u,end:g}:null}isHiddenDay(i){return i instanceof Date&&(i=i.getUTCDay()),this.isHiddenDayHash[i]}skipHiddenDays(i,u=1,g=!1){for(;this.isHiddenDayHash[(i.getUTCDay()+(g?u:0)+7)%7];)i=Gu(i,u);return i}}function X$(c,i,u,g){return{instanceId:p2(),defId:c,range:i,forcedStartTzo:u??null,forcedEndTzo:g??null}}function Wre(c,i,u,g){for(let C=0;C<g.length;C+=1){let E=g[C].parse(c,u);if(E){let{allDay:A}=c;return A==null&&(A=i,A==null&&(A=E.allDayGuess,A==null&&(A=!1))),{allDay:A,duration:E.duration,typeData:E.typeData,typeId:C}}}return null}function _2(c,i,u){let{dateEnv:g,pluginHooks:C,options:E}=u,{defs:A,instances:D}=c;D=C2(D,L=>!A[L.defId].recurringDef);for(let L in A){let G=A[L];if(G.recurringDef){let{duration:W}=G.recurringDef;W||(W=G.allDay?E.defaultAllDayEventDuration:E.defaultTimedEventDuration);let ae=jre(G,W,i,g,C.recurringTypes);for(let ne of ae){let F=X$(L,{start:ne,end:g.add(ne,W)});D[F.instanceId]=F}}}return{defs:A,instances:D}}function jre(c,i,u,g,C){let A=C[c.recurringDef.typeId].expand(c.recurringDef.typeData,{start:g.subtract(u.start,i),end:u.end},g);return c.allDay&&(A=A.map(Ii)),A}const q8={id:String,groupId:String,title:String,url:String,interactive:Boolean},LX={start:Wt,end:Wt,date:Wt,allDay:Boolean},Zre=Object.assign(Object.assign(Object.assign({},q8),LX),{extendedProps:Wt});function VX(c,i,u,g,C=Q$(u),E,A){let{refined:D,extra:L}=HX(c,u,C),G=qre(i,u),W=Wre(D,G,u.dateEnv,u.pluginHooks.recurringTypes);if(W){let ne=J$(D,L,i?i.sourceId:"",W.allDay,!!W.duration,u,E);return ne.recurringDef={typeId:W.typeId,typeData:W.typeData,duration:W.duration},{def:ne,instance:null}}let ae=Gre(D,G,u,g);if(ae){let ne=J$(D,L,i?i.sourceId:"",ae.allDay,ae.hasEnd,u,E),F=X$(ne.defId,ae.range,ae.forcedStartTzo,ae.forcedEndTzo);return A&&ne.publicId&&A[ne.publicId]&&(F.instanceId=A[ne.publicId]),{def:ne,instance:F}}return null}function HX(c,i,u=Q$(i)){return U$(c,u)}function Q$(c){return Object.assign(Object.assign(Object.assign({},K8),Zre),c.pluginHooks.eventRefiners)}function J$(c,i,u,g,C,E,A){let D={title:c.title||"",groupId:c.groupId||"",publicId:c.id||"",url:c.url||"",recurringDef:null,defId:(A&&c.id?A[c.id]:"")||p2(),sourceId:u,allDay:g,hasEnd:C,interactive:c.interactive,ui:X8(c,E),extendedProps:Object.assign(Object.assign({},c.extendedProps||{}),i)};for(let L of E.pluginHooks.eventDefMemberAdders)Object.assign(D,L(c));return Object.freeze(D.ui.classNames),Object.freeze(D.extendedProps),D}function Gre(c,i,u,g){let{allDay:C}=c,E,A=null,D=!1,L,G=null,W=c.start!=null?c.start:c.date;if(E=u.dateEnv.createMarkerMeta(W),E)A=E.marker;else if(!g)return null;return c.end!=null&&(L=u.dateEnv.createMarkerMeta(c.end)),C==null&&(i!=null?C=i:C=(!E||E.isTimeUnspecified)&&(!L||L.isTimeUnspecified)),C&&A&&(A=Ii(A)),L&&(G=L.marker,C&&(G=Ii(G)),A&&G<=A&&(G=null)),G?D=!0:g||(D=u.options.forceEventDuration||!1,G=u.dateEnv.add(A,C?u.options.defaultAllDayEventDuration:u.options.defaultTimedEventDuration)),{allDay:C,hasEnd:D,range:{start:A,end:G},forcedStartTzo:E?E.forcedTzo:null,forcedEndTzo:L?L.forcedTzo:null}}function qre(c,i){let u=null;return c&&(u=c.defaultAllDay),u==null&&(u=i.options.defaultAllDay),u}function X6(c,i,u,g,C,E){let A=pm(),D=Q$(u);for(let L of c){let G=VX(L,i,u,g,D,C,E);G&&eF(G,A)}return A}function eF(c,i=pm()){return i.defs[c.def.defId]=c.def,c.instance&&(i.instances[c.instance.instanceId]=c.instance),i}function tF(c,i){let u=c.instances[i];if(u){let g=c.defs[u.defId],C=Y8(c,E=>Yre(g,E));return C.defs[g.defId]=g,C.instances[u.instanceId]=u,C}return pm()}function Yre(c,i){return!!(c.groupId&&c.groupId===i.groupId)}function pm(){return{defs:{},instances:{}}}function nF(c,i){return{defs:Object.assign(Object.assign({},c.defs),i.defs),instances:Object.assign(Object.assign({},c.instances),i.instances)}}function Y8(c,i){let u=C2(c.defs,i),g=C2(c.instances,C=>u[C.defId]);return{defs:u,instances:g}}function Kre(c,i){let{defs:u,instances:g}=c,C={},E={};for(let A in u)i.defs[A]||(C[A]=u[A]);for(let A in g)!i.instances[A]&&C[g[A].defId]&&(E[A]=g[A]);return{defs:C,instances:E}}function Xre(c,i){return Array.isArray(c)?X6(c,null,i,!0):typeof c=="object"&&c?X6([c],null,i,!0):c!=null?String(c):null}function zX(c){return Array.isArray(c)?c:typeof c=="string"?c.split(/\s+/):[]}const K8={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Wt,overlap:Wt,allow:Wt,className:zX,classNames:zX,color:String,backgroundColor:String,borderColor:String,textColor:String},Qre={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function X8(c,i){let u=Xre(c.constraint,i);return{display:c.display||null,startEditable:c.startEditable!=null?c.startEditable:c.editable,durationEditable:c.durationEditable!=null?c.durationEditable:c.editable,constraints:u!=null?[u]:[],overlap:c.overlap!=null?c.overlap:null,allows:c.allow!=null?[c.allow]:[],backgroundColor:c.backgroundColor||c.color||"",borderColor:c.borderColor||c.color||"",textColor:c.textColor||"",classNames:(c.className||[]).concat(c.classNames||[])}}function UX(c){return c.reduce(Jre,Qre)}function Jre(c,i){return{display:i.display!=null?i.display:c.display,startEditable:i.startEditable!=null?i.startEditable:c.startEditable,durationEditable:i.durationEditable!=null?i.durationEditable:c.durationEditable,constraints:c.constraints.concat(i.constraints),overlap:typeof i.overlap=="boolean"?i.overlap:c.overlap,allows:c.allows.concat(i.allows),backgroundColor:i.backgroundColor||c.backgroundColor,borderColor:i.borderColor||c.borderColor,textColor:i.textColor||c.textColor,classNames:c.classNames.concat(i.classNames)}}const eae={id:String,defaultAllDay:Boolean,url:String,format:String,events:Wt,eventDataTransform:Wt,success:Wt,failure:Wt};function WX(c,i,u=jX(i)){let g;if(typeof c=="string"?g={url:c}:typeof c=="function"||Array.isArray(c)?g={events:c}:typeof c=="object"&&c&&(g=c),g){let{refined:C,extra:E}=U$(g,u),A=tae(C,i);if(A)return{_raw:c,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:C.defaultAllDay,eventDataTransform:C.eventDataTransform,success:C.success,failure:C.failure,publicId:C.id||"",sourceId:p2(),sourceDefId:A.sourceDefId,meta:A.meta,ui:X8(C,i),extendedProps:E}}return null}function jX(c){return Object.assign(Object.assign(Object.assign({},K8),eae),c.pluginHooks.eventSourceRefiners)}function tae(c,i){let u=i.pluginHooks.eventSourceDefs;for(let g=u.length-1;g>=0;g-=1){let E=u[g].parseMeta(c);if(E)return{sourceDefId:g,meta:E}}return null}function nae(c,i,u,g,C){switch(i.type){case"RECEIVE_EVENTS":return oae(c,u[i.sourceId],i.fetchId,i.fetchRange,i.rawEvents,C);case"RESET_RAW_EVENTS":return sae(c,u[i.sourceId],i.rawEvents,g.activeRange,C);case"ADD_EVENTS":return rae(c,i.eventStore,g?g.activeRange:null,C);case"RESET_EVENTS":return i.eventStore;case"MERGE_EVENTS":return nF(c,i.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return g?_2(c,g.activeRange,C):c;case"REMOVE_EVENTS":return Kre(c,i.eventStore);case"REMOVE_EVENT_SOURCE":return YX(c,i.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Y8(c,E=>!E.sourceId);case"REMOVE_ALL_EVENTS":return pm();default:return c}}function oae(c,i,u,g,C,E){if(i&&u===i.latestFetchId){let A=X6(ZX(C,i,E),i,E);return g&&(A=_2(A,g,E)),nF(YX(c,i.sourceId),A)}return c}function sae(c,i,u,g,C){const{defIdMap:E,instanceIdMap:A}=iae(c);let D=X6(ZX(u,i,C),i,C,!1,E,A);return _2(D,g,C)}function ZX(c,i,u){let g=u.options.eventDataTransform,C=i?i.eventDataTransform:null;return C&&(c=GX(c,C)),g&&(c=GX(c,g)),c}function GX(c,i){let u;if(!i)u=c;else{u=[];for(let g of c){let C=i(g);C?u.push(C):C==null&&u.push(g)}}return u}function rae(c,i,u,g){return u&&(i=_2(i,u,g)),nF(c,i)}function qX(c,i,u){let{defs:g}=c,C=R1(c.instances,E=>g[E.defId].allDay?E:Object.assign(Object.assign({},E),{range:{start:u.createMarker(i.toDate(E.range.start,E.forcedStartTzo)),end:u.createMarker(i.toDate(E.range.end,E.forcedEndTzo))},forcedStartTzo:u.canComputeOffset?null:E.forcedStartTzo,forcedEndTzo:u.canComputeOffset?null:E.forcedEndTzo}));return{defs:g,instances:C}}function YX(c,i){return Y8(c,u=>u.sourceId!==i)}function aae(c,i){return{defs:c.defs,instances:C2(c.instances,u=>!i[u.instanceId])}}function iae(c){const{defs:i,instances:u}=c,g={},C={};for(let E in i){const A=i[E],{publicId:D}=A;D&&(g[D]=E)}for(let E in u){const A=u[E],D=i[A.defId],{publicId:L}=D;L&&(C[L]=E)}return{defIdMap:g,instanceIdMap:C}}class Q8{constructor(){this.handlers={},this.thisContext=null}setThisContext(i){this.thisContext=i}setOptions(i){this.options=i}on(i,u){lae(this.handlers,i,u)}off(i,u){cae(this.handlers,i,u)}trigger(i,...u){let g=this.handlers[i]||[],C=this.options&&this.options[i],E=[].concat(C||[],g);for(let A of E)A.apply(this.thisContext,u)}hasHandlers(i){return!!(this.handlers[i]&&this.handlers[i].length||this.options&&this.options[i])}}function lae(c,i,u){(c[i]||(c[i]=[])).push(u)}function cae(c,i,u){u?c[i]&&(c[i]=c[i].filter(g=>g!==u)):delete c[i]}const uae={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function dae(c,i){return X6(fae(c),null,i)}function fae(c){let i;return c===!0?i=[{}]:Array.isArray(c)?i=c.filter(u=>u.daysOfWeek):typeof c=="object"&&c?i=[c]:i=[],i=i.map(u=>Object.assign(Object.assign({},uae),u)),i}function KX(c,i,u){u.emitter.trigger("select",Object.assign(Object.assign({},oF(c,u)),{jsEvent:i?i.origEvent:null,view:u.viewApi||u.calendarApi.view}))}function mae(c,i){i.emitter.trigger("unselect",{jsEvent:c?c.origEvent:null,view:i.viewApi||i.calendarApi.view})}function oF(c,i){let u={};for(let g of i.pluginHooks.dateSpanTransforms)Object.assign(u,g(c,i));return Object.assign(u,Tae(c,i.dateEnv)),u}function XX(c,i,u){let{dateEnv:g,options:C}=u,E=i;return c?(E=Ii(E),E=g.add(E,C.defaultAllDayEventDuration)):E=g.add(E,C.defaultTimedEventDuration),E}function sF(c,i,u,g){let C=J8(c.defs,i),E=pm();for(let A in c.defs){let D=c.defs[A];E.defs[A]=hae(D,C[A],u,g)}for(let A in c.instances){let D=c.instances[A],L=E.defs[D.defId];E.instances[A]=gae(D,L,C[D.defId],u,g)}return E}function hae(c,i,u,g){let C=u.standardProps||{};C.hasEnd==null&&i.durationEditable&&(u.startDelta||u.endDelta)&&(C.hasEnd=!0);let E=Object.assign(Object.assign(Object.assign({},c),C),{ui:Object.assign(Object.assign({},c.ui),C.ui)});u.extendedProps&&(E.extendedProps=Object.assign(Object.assign({},E.extendedProps),u.extendedProps));for(let A of g.pluginHooks.eventDefMutationAppliers)A(E,u,g);return!E.hasEnd&&g.options.forceEventDuration&&(E.hasEnd=!0),E}function gae(c,i,u,g,C){let{dateEnv:E}=C,A=g.standardProps&&g.standardProps.allDay===!0,D=g.standardProps&&g.standardProps.hasEnd===!1,L=Object.assign({},c);return A&&(L.range=PX(L.range)),g.datesDelta&&u.startEditable&&(L.range={start:E.add(L.range.start,g.datesDelta),end:E.add(L.range.end,g.datesDelta)}),g.startDelta&&u.durationEditable&&(L.range={start:E.add(L.range.start,g.startDelta),end:L.range.end}),g.endDelta&&u.durationEditable&&(L.range={start:L.range.start,end:E.add(L.range.end,g.endDelta)}),D&&(L.range={start:L.range.start,end:XX(i.allDay,L.range.start,C)}),i.allDay&&(L.range={start:Ii(L.range.start),end:Ii(L.range.end)}),L.range.end<L.range.start&&(L.range.end=XX(i.allDay,L.range.start,C)),L}class nS{constructor(i,u){this.context=i,this.internalEventSource=u}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class gl{constructor(i,u,g){this._context=i,this._def=u,this._instance=g||null}setProp(i,u){if(i in LX)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(i==="id")u=q8[i](u),this.mutate({standardProps:{publicId:u}});else if(i in q8)u=q8[i](u),this.mutate({standardProps:{[i]:u}});else if(i in K8){let g=K8[i](u);i==="color"?g={backgroundColor:u,borderColor:u}:i==="editable"?g={startEditable:u,durationEditable:u}:g={[i]:u},this.mutate({standardProps:{ui:g}})}else console.warn(`Could not set prop '${i}'. Use setExtendedProp instead.`)}setExtendedProp(i,u){this.mutate({extendedProps:{[i]:u}})}setStart(i,u={}){let{dateEnv:g}=this._context,C=g.createMarker(i);if(C&&this._instance){let E=this._instance.range,A=tS(E.start,C,g,u.granularity);u.maintainDuration?this.mutate({datesDelta:A}):this.mutate({startDelta:A})}}setEnd(i,u={}){let{dateEnv:g}=this._context,C;if(!(i!=null&&(C=g.createMarker(i),!C))&&this._instance)if(C){let E=tS(this._instance.range.end,C,g,u.granularity);this.mutate({endDelta:E})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(i,u,g={}){let{dateEnv:C}=this._context,E={allDay:g.allDay},A=C.createMarker(i),D;if(A&&!(u!=null&&(D=C.createMarker(u),!D))&&this._instance){let L=this._instance.range;g.allDay===!0&&(L=PX(L));let G=tS(L.start,A,C,g.granularity);if(D){let W=tS(L.end,D,C,g.granularity);Lse(G,W)?this.mutate({datesDelta:G,standardProps:E}):this.mutate({startDelta:G,endDelta:W,standardProps:E})}else E.hasEnd=!1,this.mutate({datesDelta:G,standardProps:E})}}moveStart(i){let u=Zr(i);u&&this.mutate({startDelta:u})}moveEnd(i){let u=Zr(i);u&&this.mutate({endDelta:u})}moveDates(i){let u=Zr(i);u&&this.mutate({datesDelta:u})}setAllDay(i,u={}){let g={allDay:i},{maintainDuration:C}=u;C==null&&(C=this._context.options.allDayMaintainDuration),this._def.allDay!==i&&(g.hasEnd=C),this.mutate({standardProps:g})}formatRange(i){let{dateEnv:u}=this._context,g=this._instance,C=_l(i);return this._def.hasEnd?u.formatRange(g.range.start,g.range.end,C,{forcedStartTzo:g.forcedStartTzo,forcedEndTzo:g.forcedEndTzo}):u.format(g.range.start,C,{forcedTzo:g.forcedStartTzo})}mutate(i){let u=this._instance;if(u){let g=this._def,C=this._context,{eventStore:E}=C.getCurrentData(),A=tF(E,u.instanceId);A=sF(A,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},i,C);let L=new gl(C,g,u);this._def=A.defs[g.defId],this._instance=A.instances[u.instanceId],C.dispatch({type:"MERGE_EVENTS",eventStore:A}),C.emitter.trigger("eventChange",{oldEvent:L,event:this,relatedEvents:E2(A,C,u),revert(){C.dispatch({type:"RESET_EVENTS",eventStore:E})}})}}remove(){let i=this._context,u=QX(this);i.dispatch({type:"REMOVE_EVENTS",eventStore:u}),i.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){i.dispatch({type:"MERGE_EVENTS",eventStore:u})}})}get source(){let{sourceId:i}=this._def;return i?new nS(this._context,this._context.getCurrentData().eventSources[i]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let i=this._instance;return i?this._context.dateEnv.formatIso(i.range.start,{omitTime:this._def.allDay,forcedTzo:i.forcedStartTzo}):""}get endStr(){let i=this._instance;return i&&this._def.hasEnd?this._context.dateEnv.formatIso(i.range.end,{omitTime:this._def.allDay,forcedTzo:i.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(i={}){let u=this._def,{ui:g}=u,{startStr:C,endStr:E}=this,A={allDay:u.allDay};return u.title&&(A.title=u.title),C&&(A.start=C),E&&(A.end=E),u.publicId&&(A.id=u.publicId),u.groupId&&(A.groupId=u.groupId),u.url&&(A.url=u.url),g.display&&g.display!=="auto"&&(A.display=g.display),i.collapseColor&&g.backgroundColor&&g.backgroundColor===g.borderColor?A.color=g.backgroundColor:(g.backgroundColor&&(A.backgroundColor=g.backgroundColor),g.borderColor&&(A.borderColor=g.borderColor)),g.textColor&&(A.textColor=g.textColor),g.classNames.length&&(A.classNames=g.classNames),Object.keys(u.extendedProps).length&&(i.collapseExtendedProps?Object.assign(A,u.extendedProps):A.extendedProps=u.extendedProps),A}toJSON(){return this.toPlainObject()}}function QX(c){let i=c._def,u=c._instance;return{defs:{[i.defId]:i},instances:u?{[u.instanceId]:u}:{}}}function E2(c,i,u){let{defs:g,instances:C}=c,E=[],A=u?u.instanceId:"";for(let D in C){let L=C[D],G=g[L.defId];L.instanceId!==A&&E.push(new gl(i,G,L))}return E}function JX(c,i,u,g){let C={},E={},A={},D=[],L=[],G=J8(c.defs,i);for(let W in c.defs){let ae=c.defs[W];G[ae.defId].display==="inverse-background"&&(ae.groupId?(C[ae.groupId]=[],A[ae.groupId]||(A[ae.groupId]=ae)):E[W]=[])}for(let W in c.instances){let ae=c.instances[W],ne=c.defs[ae.defId],F=G[ne.defId],ye=ae.range,le=!ne.allDay&&g?$X(ye,g):ye,te=S2(le,u);te&&(F.display==="inverse-background"?ne.groupId?C[ne.groupId].push(te):E[ae.defId].push(te):F.display!=="none"&&(F.display==="background"?D:L).push({def:ne,ui:F,instance:ae,range:te,isStart:le.start&&le.start.valueOf()===te.start.valueOf(),isEnd:le.end&&le.end.valueOf()===te.end.valueOf()}))}for(let W in C){let ae=C[W],ne=IX(ae,u);for(let F of ne){let ye=A[W],le=G[ye.defId];D.push({def:ye,ui:le,instance:null,range:F,isStart:!1,isEnd:!1})}}for(let W in E){let ae=E[W],ne=IX(ae,u);for(let F of ne)D.push({def:c.defs[W],ui:G[W],instance:null,range:F,isStart:!1,isEnd:!1})}return{bg:D,fg:L}}function pae(c){return c.ui.display==="background"||c.ui.display==="inverse-background"}function eQ(c,i){c.fcSeg=i}function oS(c){return c.fcSeg||c.parentNode.fcSeg||null}function J8(c,i){return R1(c,u=>tQ(u,i))}function tQ(c,i){let u=[];return i[""]&&u.push(i[""]),i[c.defId]&&u.push(i[c.defId]),u.push(c.ui),UX(u)}function nQ(c,i){let u=c.map(bae);return u.sort((g,C)=>Rse(g,C,i)),u.map(g=>g._seg)}function bae(c){let{eventRange:i}=c,u=i.def,g=i.instance?i.instance.range:i.range,C=g.start?g.start.valueOf():0,E=g.end?g.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},u.extendedProps),u),{id:u.publicId,start:C,end:E,duration:E-C,allDay:Number(u.allDay),_seg:c})}function yae(c,i){let{pluginHooks:u}=i,g=u.isDraggableTransformers,{def:C,ui:E}=c.eventRange,A=E.startEditable;for(let D of g)A=D(A,C,E,i);return A}function vae(c,i){return c.isStart&&c.eventRange.ui.durationEditable&&i.options.eventResizableFromStart}function Cae(c,i){return c.isEnd&&c.eventRange.ui.durationEditable}function oQ(c,i,u,g,C,E,A){let{dateEnv:D,options:L}=u,{displayEventTime:G,displayEventEnd:W}=L,ae=c.eventRange.def,ne=c.eventRange.instance;G==null&&(G=g!==!1),W==null&&(W=C!==!1);let F=ne.range.start,ye=ne.range.end,le=E||c.start||c.eventRange.range.start,te=A||c.end||c.eventRange.range.end,Se=Ii(F).valueOf()===Ii(le).valueOf(),ie=Ii(Zb(ye,-1)).valueOf()===Ii(Zb(te,-1)).valueOf();return G&&!ae.allDay&&(Se||ie)?(le=Se?F:le,te=ie?ye:te,W&&ae.hasEnd?D.formatRange(le,te,i,{forcedStartTzo:E?null:ne.forcedStartTzo,forcedEndTzo:A?null:ne.forcedEndTzo}):D.format(le,i,{forcedTzo:E?null:ne.forcedStartTzo})):""}function Yb(c,i,u){let g=c.eventRange.range;return{isPast:g.end<(u||i.start),isFuture:g.start>=(u||i.end),isToday:i&&I1(i,g.start)}}function wae(c){let i=["fc-event"];return c.isMirror&&i.push("fc-event-mirror"),c.isDraggable&&i.push("fc-event-draggable"),(c.isStartResizable||c.isEndResizable)&&i.push("fc-event-resizable"),c.isDragging&&i.push("fc-event-dragging"),c.isResizing&&i.push("fc-event-resizing"),c.isSelected&&i.push("fc-event-selected"),c.isStart&&i.push("fc-event-start"),c.isEnd&&i.push("fc-event-end"),c.isPast&&i.push("fc-event-past"),c.isToday&&i.push("fc-event-today"),c.isFuture&&i.push("fc-event-future"),i}function sQ(c){return c.instance?c.instance.instanceId:`${c.def.defId}:${c.range.start.toISOString()}`}function rQ(c,i){let{def:u,instance:g}=c.eventRange,{url:C}=u;if(C)return{href:C};let{emitter:E,options:A}=i,{eventInteractive:D}=A;return D==null&&(D=u.interactive,D==null&&(D=!!E.hasHandlers("eventClick"))),D?mX(L=>{E.trigger("eventClick",{el:L.target,event:new gl(i,u,g),jsEvent:L,view:i.viewApi})}):{}}const Sae={start:Wt,end:Wt,allDay:Boolean};function _ae(c,i,u){let g=Eae(c,i),{range:C}=g;if(!C.start)return null;if(!C.end){if(u==null)return null;C.end=i.add(C.start,u)}return g}function Eae(c,i){let{refined:u,extra:g}=U$(c,Sae),C=u.start?i.createMarkerMeta(u.start):null,E=u.end?i.createMarkerMeta(u.end):null,{allDay:A}=u;return A==null&&(A=C&&C.isTimeUnspecified&&(!E||E.isTimeUnspecified)),Object.assign({range:{start:C?C.marker:null,end:E?E.marker:null},allDay:A},g)}function xae(c,i){return Vre(c.range,i.range)&&c.allDay===i.allDay&&kae(c,i)}function kae(c,i){for(let u in i)if(u!=="range"&&u!=="allDay"&&c[u]!==i[u])return!1;for(let u in c)if(!(u in i))return!1;return!0}function Tae(c,i){return Object.assign(Object.assign({},iQ(c.range,i,c.allDay)),{allDay:c.allDay})}function aQ(c,i,u){return Object.assign(Object.assign({},iQ(c,i,u)),{timeZone:i.timeZone})}function iQ(c,i,u){return{start:i.toDate(c.start),end:i.toDate(c.end),startStr:i.formatIso(c.start,{omitTime:u}),endStr:i.formatIso(c.end,{omitTime:u})}}function Aae(c,i,u){let g=HX({editable:!1},u),C=J$(g.refined,g.extra,"",c.allDay,!0,u);return{def:C,ui:tQ(C,i),instance:X$(C.defId,c.range),range:c.range,isStart:!0,isEnd:!0}}function Dae(c,i,u){let g=!1,C=function(D){g||(g=!0,i(D))},E=function(D){g||(g=!0,u(D))},A=c(C,E);A&&typeof A.then=="function"&&A.then(C,E)}class lQ extends Error{constructor(i,u){super(i),this.response=u}}function Nae(c,i,u){c=c.toUpperCase();const g={method:c};return c==="GET"?i+=(i.indexOf("?")===-1?"?":"&")+new URLSearchParams(u):(g.body=new URLSearchParams(u),g.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(i,g).then(C=>{if(C.ok)return C.json().then(E=>[E,C],()=>{throw new lQ("Failure parsing JSON",C)});throw new lQ("Request failed",C)})}let rF;function cQ(){return rF==null&&(rF=Oae()),rF}function Oae(){if(typeof document>"u")return!0;let c=document.createElement("div");c.style.position="absolute",c.style.top="0px",c.style.left="0px",c.innerHTML="<table><tr><td><div></div></td></tr></table>",c.querySelector("table").style.height="100px",c.querySelector("div").style.height="100%",document.body.appendChild(c);let u=c.querySelector("div").offsetHeight>0;return document.body.removeChild(c),u}class Rae extends Ba{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:i}=this,{options:u}=i,{forPrint:g}=this.state,C=g||u.height==="auto"||u.contentHeight==="auto",E=!C&&u.height!=null?u.height:"",A=["fc",g?"fc-media-print":"fc-media-screen",`fc-direction-${u.direction}`,i.theme.getClass("root")];return cQ()||A.push("fc-liquid-hack"),i.children(A,E,C,g)}componentDidMount(){let{emitter:i}=this.props;i.on("_beforeprint",this.handleBeforePrint),i.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:i}=this.props;i.off("_beforeprint",this.handleBeforePrint),i.off("_afterprint",this.handleAfterPrint)}}class sS{constructor(i){this.component=i.component,this.isHitComboAllowed=i.isHitComboAllowed||null}destroy(){}}function Bae(c,i){return{component:c,el:i.el,useEventCenter:i.useEventCenter!=null?i.useEventCenter:!0,isHitComboAllowed:i.isHitComboAllowed||null}}function aF(c){return{[c.component.uid]:c}}const iF={};class Mae{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(i){this.currentDataManager.dispatch(i)}get view(){return this.getCurrentData().viewApi}batchRendering(i){i()}updateSize(){this.trigger("_resize",!0)}setOption(i,u){this.dispatch({type:"SET_OPTION",optionName:i,rawOptionValue:u})}getOption(i){return this.currentDataManager.currentCalendarOptionsInput[i]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(i,u){let{currentDataManager:g}=this;g.currentCalendarOptionsRefiners[i]?g.emitter.on(i,u):console.warn(`Unknown listener name '${i}'`)}off(i,u){this.currentDataManager.emitter.off(i,u)}trigger(i,...u){this.currentDataManager.emitter.trigger(i,...u)}changeView(i,u){this.batchRendering(()=>{if(this.unselect(),u)if(u.start&&u.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:u});else{let{dateEnv:g}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i,dateMarker:g.createMarker(u)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i})})}zoomTo(i,u){let g=this.getCurrentData(),C;u=u||"day",C=g.viewSpecs[u]||this.getUnitViewSpec(u),this.unselect(),C?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:C.type,dateMarker:i}):this.dispatch({type:"CHANGE_DATE",dateMarker:i})}getUnitViewSpec(i){let{viewSpecs:u,toolbarConfig:g}=this.getCurrentData(),C=[].concat(g.header?g.header.viewsWithButtons:[],g.footer?g.footer.viewsWithButtons:[]),E,A;for(let D in u)C.push(D);for(E=0;E<C.length;E+=1)if(A=u[C[E]],A&&A.singleUnit===i)return A;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let i=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:i.dateEnv.addYears(i.currentDate,-1)})}nextYear(){let i=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:i.dateEnv.addYears(i.currentDate,1)})}today(){let i=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:K6(i.calendarOptions.now,i.dateEnv)})}gotoDate(i){let u=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:u.dateEnv.createMarker(i)})}incrementDate(i){let u=this.getCurrentData(),g=Zr(i);g&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:u.dateEnv.add(u.currentDate,g)}))}getDate(){let i=this.getCurrentData();return i.dateEnv.toDate(i.currentDate)}formatDate(i,u){let{dateEnv:g}=this.getCurrentData();return g.format(g.createMarker(i),_l(u))}formatRange(i,u,g){let{dateEnv:C}=this.getCurrentData();return C.formatRange(C.createMarker(i),C.createMarker(u),_l(g),g)}formatIso(i,u){let{dateEnv:g}=this.getCurrentData();return g.formatIso(g.createMarker(i),{omitTime:u})}select(i,u){let g;u==null?i.start!=null?g=i:g={start:i,end:null}:g={start:i,end:u};let C=this.getCurrentData(),E=_ae(g,C.dateEnv,Zr({days:1}));E&&(this.dispatch({type:"SELECT_DATES",selection:E}),KX(E,null,C))}unselect(i){let u=this.getCurrentData();u.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),mae(i,u))}addEvent(i,u){if(i instanceof gl){let A=i._def,D=i._instance;return this.getCurrentData().eventStore.defs[A.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:eF({def:A,instance:D})}),this.triggerEventAdd(i)),i}let g=this.getCurrentData(),C;if(u instanceof nS)C=u.internalEventSource;else if(typeof u=="boolean")u&&([C]=j$(g.eventSources));else if(u!=null){let A=this.getEventSourceById(u);if(!A)return console.warn(`Could not find an event source with ID "${u}"`),null;C=A.internalEventSource}let E=VX(i,C,g,!1);if(E){let A=new gl(g,E.def,E.def.recurringDef?null:E.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:eF(E)}),this.triggerEventAdd(A),A}return null}triggerEventAdd(i){let{emitter:u}=this.getCurrentData();u.trigger("eventAdd",{event:i,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:QX(i)})}})}getEventById(i){let u=this.getCurrentData(),{defs:g,instances:C}=u.eventStore;i=String(i);for(let E in g){let A=g[E];if(A.publicId===i){if(A.recurringDef)return new gl(u,A,null);for(let D in C){let L=C[D];if(L.defId===A.defId)return new gl(u,A,L)}}}return null}getEvents(){let i=this.getCurrentData();return E2(i.eventStore,i)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let i=this.getCurrentData(),u=i.eventSources,g=[];for(let C in u)g.push(new nS(i,u[C]));return g}getEventSourceById(i){let u=this.getCurrentData(),g=u.eventSources;i=String(i);for(let C in g)if(g[C].publicId===i)return new nS(u,g[C]);return null}addEventSource(i){let u=this.getCurrentData();if(i instanceof nS)return u.eventSources[i.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[i.internalEventSource]}),i;let g=WX(i,u);return g?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[g]}),new nS(u,g)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(i){let u=Zr(i);u&&this.trigger("_scrollRequest",{time:u})}}function Iae(c,i){return c.left>=i.left&&c.left<i.right&&c.top>=i.top&&c.top<i.bottom}function uQ(c,i){let u={left:Math.max(c.left,i.left),right:Math.min(c.right,i.right),top:Math.max(c.top,i.top),bottom:Math.min(c.bottom,i.bottom)};return u.left<u.right&&u.top<u.bottom?u:!1}function Pae(c,i){return{left:Math.min(Math.max(c.left,i.left),i.right),top:Math.min(Math.max(c.top,i.top),i.bottom)}}function $ae(c){return{left:(c.left+c.right)/2,top:(c.top+c.bottom)/2}}function Fae(c,i){return{left:c.left-i.left,top:c.top-i.top}}const lF=pm();class Lae{constructor(){this.getKeysForEventDefs=Es(this._getKeysForEventDefs),this.splitDateSelection=Es(this._splitDateSpan),this.splitEventStore=Es(this._splitEventStore),this.splitIndividualUi=Es(this._splitIndividualUi),this.splitEventDrag=Es(this._splitInteraction),this.splitEventResize=Es(this._splitInteraction),this.eventUiBuilders={}}splitProps(i){let u=this.getKeyInfo(i),g=this.getKeysForEventDefs(i.eventStore),C=this.splitDateSelection(i.dateSelection),E=this.splitIndividualUi(i.eventUiBases,g),A=this.splitEventStore(i.eventStore,g),D=this.splitEventDrag(i.eventDrag),L=this.splitEventResize(i.eventResize),G={};this.eventUiBuilders=R1(u,(W,ae)=>this.eventUiBuilders[ae]||Es(Vae));for(let W in u){let ae=u[W],ne=A[W]||lF,F=this.eventUiBuilders[W];G[W]={businessHours:ae.businessHours||i.businessHours,dateSelection:C[W]||null,eventStore:ne,eventUiBases:F(i.eventUiBases[""],ae.ui,E[W]),eventSelection:ne.instances[i.eventSelection]?i.eventSelection:"",eventDrag:D[W]||null,eventResize:L[W]||null}}return G}_splitDateSpan(i){let u={};if(i){let g=this.getKeysForDateSpan(i);for(let C of g)u[C]=i}return u}_getKeysForEventDefs(i){return R1(i.defs,u=>this.getKeysForEventDef(u))}_splitEventStore(i,u){let{defs:g,instances:C}=i,E={};for(let A in g)for(let D of u[A])E[D]||(E[D]=pm()),E[D].defs[A]=g[A];for(let A in C){let D=C[A];for(let L of u[D.defId])E[L]&&(E[L].instances[A]=D)}return E}_splitIndividualUi(i,u){let g={};for(let C in i)if(C)for(let E of u[C])g[E]||(g[E]={}),g[E][C]=i[C];return g}_splitInteraction(i){let u={};if(i){let g=this._splitEventStore(i.affectedEvents,this._getKeysForEventDefs(i.affectedEvents)),C=this._getKeysForEventDefs(i.mutatedEvents),E=this._splitEventStore(i.mutatedEvents,C),A=D=>{u[D]||(u[D]={affectedEvents:g[D]||lF,mutatedEvents:E[D]||lF,isEvent:i.isEvent})};for(let D in g)A(D);for(let D in E)A(D)}return u}}function Vae(c,i,u){let g=[];c&&g.push(c),i&&g.push(i);let C={"":UX(g)};return u&&Object.assign(C,u),C}function dQ(c,i,u,g){return{dow:c.getUTCDay(),isDisabled:!!(g&&!I1(g.activeRange,c)),isOther:!!(g&&!I1(g.currentRange,c)),isToday:!!(i&&I1(i,c)),isPast:!!(u?c<u:i&&c<i.start),isFuture:!!(u?c>u:i&&c>=i.end)}}function cF(c,i){let u=["fc-day",`fc-day-${Wse[c.dow]}`];return c.isDisabled?u.push("fc-day-disabled"):(c.isToday&&(u.push("fc-day-today"),u.push(i.getClass("today"))),c.isPast&&u.push("fc-day-past"),c.isFuture&&u.push("fc-day-future"),c.isOther&&u.push("fc-day-other")),u}const Hae=_l({year:"numeric",month:"long",day:"numeric"}),zae=_l({week:"long"});function e7(c,i,u="day",g=!0){const{dateEnv:C,options:E,calendarApi:A}=c;let D=C.format(i,u==="week"?zae:Hae);if(E.navLinks){let L=C.toDate(i);const G=W=>{let ae=u==="day"?E.navLinkDayClick:u==="week"?E.navLinkWeekClick:null;typeof ae=="function"?ae.call(A,C.toDate(i),W):(typeof ae=="string"&&(u=ae),A.zoomTo(i,u))};return Object.assign({title:G6(E.navLinkHint,[D,L],D),"data-navlink":""},g?fX(G):{onClick:G})}return{"aria-label":D}}let uF=null;function Uae(){return uF===null&&(uF=Wae()),uF}function Wae(){let c=document.createElement("div");Z6(c,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),c.innerHTML="<div></div>",document.body.appendChild(c);let u=c.firstChild.getBoundingClientRect().left>c.getBoundingClientRect().left;return B$(c),u}let dF;function jae(){return dF||(dF=Zae()),dF}function Zae(){let c=document.createElement("div");c.style.overflow="scroll",c.style.position="absolute",c.style.top="-9999px",c.style.left="-9999px",document.body.appendChild(c);let i=fQ(c);return document.body.removeChild(c),i}function fQ(c){return{x:c.offsetHeight-c.clientHeight,y:c.offsetWidth-c.clientWidth}}function Gae(c,i=!1){let u=window.getComputedStyle(c),g=parseInt(u.borderLeftWidth,10)||0,C=parseInt(u.borderRightWidth,10)||0,E=parseInt(u.borderTopWidth,10)||0,A=parseInt(u.borderBottomWidth,10)||0,D=fQ(c),L=D.y-g-C,G=D.x-E-A,W={borderLeft:g,borderRight:C,borderTop:E,borderBottom:A,scrollbarBottom:G,scrollbarLeft:0,scrollbarRight:0};return Uae()&&u.direction==="rtl"?W.scrollbarLeft=L:W.scrollbarRight=L,i&&(W.paddingLeft=parseInt(u.paddingLeft,10)||0,W.paddingRight=parseInt(u.paddingRight,10)||0,W.paddingTop=parseInt(u.paddingTop,10)||0,W.paddingBottom=parseInt(u.paddingBottom,10)||0),W}function qae(c,i=!1,u){let g=u?c.getBoundingClientRect():fF(c),C=Gae(c,i),E={left:g.left+C.borderLeft+C.scrollbarLeft,right:g.right-C.borderRight-C.scrollbarRight,top:g.top+C.borderTop,bottom:g.bottom-C.borderBottom-C.scrollbarBottom};return i&&(E.left+=C.paddingLeft,E.right-=C.paddingRight,E.top+=C.paddingTop,E.bottom-=C.paddingBottom),E}function fF(c){let i=c.getBoundingClientRect();return{left:i.left+window.pageXOffset,top:i.top+window.pageYOffset,right:i.right+window.pageXOffset,bottom:i.bottom+window.pageYOffset}}function Yae(c){let i=mQ(c),u=c.getBoundingClientRect();for(let g of i){let C=uQ(u,g.getBoundingClientRect());if(C)u=C;else return null}return u}function mQ(c){let i=[];for(;c instanceof HTMLElement;){let u=window.getComputedStyle(c);if(u.position==="fixed")break;/(auto|scroll)/.test(u.overflow+u.overflowY+u.overflowX)&&i.push(c),c=c.parentNode}return i}class rS{constructor(i,u,g,C){this.els=u;let E=this.originClientRect=i.getBoundingClientRect();g&&this.buildElHorizontals(E.left),C&&this.buildElVerticals(E.top)}buildElHorizontals(i){let u=[],g=[];for(let C of this.els){let E=C.getBoundingClientRect();u.push(E.left-i),g.push(E.right-i)}this.lefts=u,this.rights=g}buildElVerticals(i){let u=[],g=[];for(let C of this.els){let E=C.getBoundingClientRect();u.push(E.top-i),g.push(E.bottom-i)}this.tops=u,this.bottoms=g}leftToIndex(i){let{lefts:u,rights:g}=this,C=u.length,E;for(E=0;E<C;E+=1)if(i>=u[E]&&i<g[E])return E}topToIndex(i){let{tops:u,bottoms:g}=this,C=u.length,E;for(E=0;E<C;E+=1)if(i>=u[E]&&i<g[E])return E}getWidth(i){return this.rights[i]-this.lefts[i]}getHeight(i){return this.bottoms[i]-this.tops[i]}similarTo(i){return t7(this.tops||[],i.tops||[])&&t7(this.bottoms||[],i.bottoms||[])&&t7(this.lefts||[],i.lefts||[])&&t7(this.rights||[],i.rights||[])}}function t7(c,i){const u=c.length;if(u!==i.length)return!1;for(let g=0;g<u;g++)if(Math.round(c[g])!==Math.round(i[g]))return!1;return!0}class mF{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class Kae extends mF{constructor(i){super(),this.el=i}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(i){this.el.scrollTop=i}setScrollLeft(i){this.el.scrollLeft=i}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Xae extends mF{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(i){window.scroll(window.pageXOffset,i)}setScrollLeft(i){window.scroll(i,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class mp extends Ba{constructor(){super(...arguments),this.uid=p2()}prepareHits(){}queryHit(i,u,g,C){return null}isValidSegDownEl(i){return!this.props.eventDrag&&!this.props.eventResize&&!Zu(i,".fc-event-mirror")}isValidDateDownEl(i){return!Zu(i,".fc-event:not(.fc-bg-event)")&&!Zu(i,".fc-more-link")&&!Zu(i,"a[data-navlink]")&&!Zu(i,".fc-popover")}}class hQ{constructor(i=u=>u.thickness){this.getEntryThickness=i,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(i){let u=[];for(let g of i)this.insertEntry(g,u);return u}insertEntry(i,u){let g=this.findInsertion(i);return this.isInsertionValid(g,i)?(this.insertEntryAt(i,g),1):this.handleInvalidInsertion(g,i,u)}isInsertionValid(i,u){return(this.maxCoord===-1||i.levelCoord+this.getEntryThickness(u)<=this.maxCoord)&&(this.maxStackCnt===-1||i.stackCnt<this.maxStackCnt)}handleInvalidInsertion(i,u,g){return this.allowReslicing&&i.touchingEntry?this.splitEntry(u,i.touchingEntry,g):(g.push(u),0)}splitEntry(i,u,g){let C=0,E=[],A=i.span,D=u.span;return A.start<D.start&&(C+=this.insertEntry({index:i.index,thickness:i.thickness,span:{start:A.start,end:D.start}},E)),A.end>D.end&&(C+=this.insertEntry({index:i.index,thickness:i.thickness,span:{start:D.end,end:A.end}},E)),C?(g.push({index:i.index,thickness:i.thickness,span:gF(D,A)},...E),C):(g.push(i),0)}insertEntryAt(i,u){let{entriesByLevel:g,levelCoords:C}=this;u.lateral===-1?(pF(C,u.level,u.levelCoord),pF(g,u.level,[i])):pF(g[u.level],u.lateral,i),this.stackCnts[x2(i)]=u.stackCnt}findInsertion(i){let{levelCoords:u,entriesByLevel:g,strictOrder:C,stackCnts:E}=this,A=u.length,D=0,L=-1,G=-1,W=null,ae=0;for(let ye=0;ye<A;ye+=1){let le=u[ye];if(!C&&le>=D+this.getEntryThickness(i))break;let te=g[ye],Se,ie=bF(te,i.span.start,hF),Z=ie[0]+ie[1];for(;(Se=te[Z])&&Se.span.start<i.span.end;){let we=le+this.getEntryThickness(Se);we>D&&(D=we,W=Se,L=ye,G=Z),we===D&&(ae=Math.max(ae,E[x2(Se)]+1)),Z+=1}}let ne=0;if(W)for(ne=L+1;ne<A&&u[ne]<D;)ne+=1;let F=-1;return ne<A&&u[ne]===D&&(F=bF(g[ne],i.span.end,hF)[0]),{touchingLevel:L,touchingLateral:G,touchingEntry:W,stackCnt:ae,levelCoord:D,level:ne,lateral:F}}toRects(){let{entriesByLevel:i,levelCoords:u}=this,g=i.length,C=[];for(let E=0;E<g;E+=1){let A=i[E],D=u[E];for(let L of A)C.push(Object.assign(Object.assign({},L),{thickness:this.getEntryThickness(L),levelCoord:D}))}return C}}function hF(c){return c.span.end}function x2(c){return c.index+":"+c.span.start}function Qae(c){let i=[];for(let u of c){let g=[],C={span:u.span,entries:[u]};for(let E of i)gF(E.span,C.span)?C={entries:E.entries.concat(C.entries),span:Jae(E.span,C.span)}:g.push(E);g.push(C),i=g}return i}function Jae(c,i){return{start:Math.min(c.start,i.start),end:Math.max(c.end,i.end)}}function gF(c,i){let u=Math.max(c.start,i.start),g=Math.min(c.end,i.end);return u<g?{start:u,end:g}:null}function pF(c,i,u){c.splice(i,0,u)}function bF(c,i,u){let g=0,C=c.length;if(!C||i<u(c[g]))return[0,0];if(i>u(c[C-1]))return[C,0];for(;g<C;){let E=Math.floor(g+(C-g)/2),A=u(c[E]);if(i<A)C=E;else if(i>A)g=E+1;else return[E,1]}return[g,0]}class eie{constructor(i,u){this.emitter=new Q8}destroy(){}setMirrorIsVisible(i){}setMirrorNeedsRevert(i){}setAutoScrollEnabled(i){}}const yF={};function tie(c,i){return!c||i>10?_l({weekday:"short"}):i>1?_l({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):_l({weekday:"long"})}const gQ="fc-col-header-cell";function pQ(c){return c.text}class nie extends Ba{render(){let{dateEnv:i,options:u,theme:g,viewApi:C}=this.context,{props:E}=this,{date:A,dateProfile:D}=E,L=dQ(A,E.todayRange,null,D),G=[gQ].concat(cF(L,g)),W=i.format(A,E.dayHeaderFormat),ae=!L.isDisabled&&E.colCnt>1?e7(this.context,A):{},ne=Object.assign(Object.assign(Object.assign({date:i.toDate(A),view:C},E.extraRenderProps),{text:W}),L);return Qe(gm,{elTag:"th",elClasses:G,elAttrs:Object.assign({role:"columnheader",colSpan:E.colSpan,"data-date":L.isDisabled?void 0:V$(A)},E.extraDataAttrs),renderProps:ne,generatorName:"dayHeaderContent",customGenerator:u.dayHeaderContent,defaultGenerator:pQ,classNameGenerator:u.dayHeaderClassNames,didMount:u.dayHeaderDidMount,willUnmount:u.dayHeaderWillUnmount},F=>Qe("div",{className:"fc-scrollgrid-sync-inner"},!L.isDisabled&&Qe(F,{elTag:"a",elAttrs:ae,elClasses:["fc-col-header-cell-cushion",E.isSticky&&"fc-sticky"]})))}}const oie=_l({weekday:"long"});class sie extends Ba{render(){let{props:i}=this,{dateEnv:u,theme:g,viewApi:C,options:E}=this.context,A=Gu(new Date(2592e5),i.dow),D={dow:i.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},L=u.format(A,i.dayHeaderFormat),G=Object.assign(Object.assign(Object.assign(Object.assign({date:A},D),{view:C}),i.extraRenderProps),{text:L});return Qe(gm,{elTag:"th",elClasses:[gQ,...cF(D,g),...i.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan},i.extraDataAttrs),renderProps:G,generatorName:"dayHeaderContent",customGenerator:E.dayHeaderContent,defaultGenerator:pQ,classNameGenerator:E.dayHeaderClassNames,didMount:E.dayHeaderDidMount,willUnmount:E.dayHeaderWillUnmount},W=>Qe("div",{className:"fc-scrollgrid-sync-inner"},Qe(W,{elTag:"a",elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"],elAttrs:{"aria-label":u.format(A,oie)}})))}}class Q6 extends hm{constructor(i,u){super(i,u),this.initialNowDate=K6(u.options.now,u.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:i,state:u}=this;return i.children(u.nowDate,u.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(i){i.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:i,context:u}=this,g=Zb(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),C=u.dateEnv.startOf(g,i.unit),E=u.dateEnv.add(C,Zr(1,i.unit)),A=E.valueOf()-g.valueOf();return A=Math.min(1e3*60*60*24,A),{currentState:{nowDate:C,todayRange:bQ(C)},nextState:{nowDate:E,todayRange:bQ(E)},waitMs:A}}setTimeout(){let{nextState:i,waitMs:u}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(i,()=>{this.setTimeout()})},u)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}Q6.contextType=B1;function bQ(c){let i=Ii(c),u=Gu(i,1);return{start:i,end:u}}class yQ extends Ba{constructor(){super(...arguments),this.createDayHeaderFormatter=Es(rie)}render(){let{context:i}=this,{dates:u,dateProfile:g,datesRepDistinctDays:C,renderIntro:E}=this.props,A=this.createDayHeaderFormatter(i.options.dayHeaderFormat,C,u.length);return Qe(Q6,{unit:"day"},(D,L)=>Qe("tr",{role:"row"},E&&E("day"),u.map(G=>C?Qe(nie,{key:G.toISOString(),date:G,dateProfile:g,todayRange:L,colCnt:u.length,dayHeaderFormat:A}):Qe(sie,{key:G.getUTCDay(),dow:G.getUTCDay(),dayHeaderFormat:A}))))}}function rie(c,i,u){return c||tie(i,u)}class vQ{constructor(i,u){let g=i.start,{end:C}=i,E=[],A=[],D=-1;for(;g<C;)u.isHiddenDay(g)?E.push(D+.5):(D+=1,E.push(D),A.push(g)),g=Gu(g,1);this.dates=A,this.indices=E,this.cnt=A.length}sliceRange(i){let u=this.getDateDayIndex(i.start),g=this.getDateDayIndex(Gu(i.end,-1)),C=Math.max(0,u),E=Math.min(this.cnt-1,g);return C=Math.ceil(C),E=Math.floor(E),C<=E?{firstIndex:C,lastIndex:E,isStart:u===C,isEnd:g===E}:null}getDateDayIndex(i){let{indices:u}=this,g=Math.floor(b2(this.dates[0],i));return g<0?u[0]-1:g>=u.length?u[u.length-1]+1:u[g]}}class CQ{constructor(i,u){let{dates:g}=i,C,E,A;if(u){for(E=g[0].getUTCDay(),C=1;C<g.length&&g[C].getUTCDay()!==E;C+=1);A=Math.ceil(g.length/C)}else A=1,C=g.length;this.rowCnt=A,this.colCnt=C,this.daySeries=i,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let i=[];for(let u=0;u<this.rowCnt;u+=1){let g=[];for(let C=0;C<this.colCnt;C+=1)g.push(this.buildCell(u,C));i.push(g)}return i}buildCell(i,u){let g=this.daySeries.dates[i*this.colCnt+u];return{key:g.toISOString(),date:g}}buildHeaderDates(){let i=[];for(let u=0;u<this.colCnt;u+=1)i.push(this.cells[0][u].date);return i}sliceRange(i){let{colCnt:u}=this,g=this.daySeries.sliceRange(i),C=[];if(g){let{firstIndex:E,lastIndex:A}=g,D=E;for(;D<=A;){let L=Math.floor(D/u),G=Math.min((L+1)*u,A+1);C.push({row:L,firstCol:D%u,lastCol:(G-1)%u,isStart:g.isStart&&D===E,isEnd:g.isEnd&&G-1===A}),D=G}}return C}}class wQ{constructor(){this.sliceBusinessHours=Es(this._sliceBusinessHours),this.sliceDateSelection=Es(this._sliceDateSpan),this.sliceEventStore=Es(this._sliceEventStore),this.sliceEventDrag=Es(this._sliceInteraction),this.sliceEventResize=Es(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(i,u,g,C,...E){let{eventUiBases:A}=i,D=this.sliceEventStore(i.eventStore,A,u,g,...E);return{dateSelectionSegs:this.sliceDateSelection(i.dateSelection,u,g,A,C,...E),businessHourSegs:this.sliceBusinessHours(i.businessHours,u,g,C,...E),fgEventSegs:D.fg,bgEventSegs:D.bg,eventDrag:this.sliceEventDrag(i.eventDrag,A,u,g,...E),eventResize:this.sliceEventResize(i.eventResize,A,u,g,...E),eventSelection:i.eventSelection}}sliceNowDate(i,u,g,C,...E){return this._sliceDateSpan({range:{start:i,end:Zb(i,1)},allDay:!1},u,g,{},C,...E)}_sliceBusinessHours(i,u,g,C,...E){return i?this._sliceEventStore(_2(i,n7(u,!!g),C),{},u,g,...E).bg:[]}_sliceEventStore(i,u,g,C,...E){if(i){let A=JX(i,u,n7(g,!!C),C);return{bg:this.sliceEventRanges(A.bg,E),fg:this.sliceEventRanges(A.fg,E)}}return{bg:[],fg:[]}}_sliceInteraction(i,u,g,C,...E){if(!i)return null;let A=JX(i.mutatedEvents,u,n7(g,!!C),C);return{segs:this.sliceEventRanges(A.fg,E),affectedInstances:i.affectedEvents.instances,isEvent:i.isEvent}}_sliceDateSpan(i,u,g,C,E,...A){if(!i)return[];let D=n7(u,!!g),L=S2(i.range,D);if(L){i=Object.assign(Object.assign({},i),{range:L});let G=Aae(i,C,E),W=this.sliceRange(i.range,...A);for(let ae of W)ae.eventRange=G;return W}return[]}sliceEventRanges(i,u){let g=[];for(let C of i)g.push(...this.sliceEventRange(C,u));return g}sliceEventRange(i,u){let g=i.range;this.forceDayIfListItem&&i.ui.display==="list-item"&&(g={start:g.start,end:Gu(g.start,1)});let C=this.sliceRange(g,...u);for(let E of C)E.eventRange=i,E.isStart=i.isStart&&E.isStart,E.isEnd=i.isEnd&&E.isEnd;return C}}function n7(c,i){let u=c.activeRange;return i?u:{start:Zb(u.start,c.slotMinTime.milliseconds),end:Zb(u.end,c.slotMaxTime.milliseconds-864e5)}}function SQ(c,i,u){let{instances:g}=c.mutatedEvents;for(let C in g)if(!G8(i.validRange,g[C].range))return!1;return _Q({eventDrag:c},u)}function aie(c,i,u){return G8(i.validRange,c.range)?_Q({dateSelection:c},u):!1}function _Q(c,i){let u=i.getCurrentData(),g=Object.assign({businessHours:u.businessHours,dateSelection:"",eventStore:u.eventStore,eventUiBases:u.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},c);return(i.pluginHooks.isPropsValid||iie)(g,i)}function iie(c,i,u={},g){return!(c.eventDrag&&!lie(c,i,u,g)||c.dateSelection&&!cie(c,i,u,g))}function lie(c,i,u,g){let C=i.getCurrentData(),E=c.eventDrag,A=E.mutatedEvents,D=A.defs,L=A.instances,G=J8(D,E.isEvent?c.eventUiBases:{"":C.selectionConfig});g&&(G=R1(G,g));let W=aae(c.eventStore,E.affectedEvents.instances),ae=W.defs,ne=W.instances,F=J8(ae,c.eventUiBases);for(let ye in L){let le=L[ye],te=le.range,Se=G[le.defId],ie=D[le.defId];if(!EQ(Se.constraints,te,W,c.businessHours,i))return!1;let{eventOverlap:Z}=i.options,we=typeof Z=="function"?Z:null;for(let We in ne){let Q=ne[We];if(K$(te,Q.range)&&(F[Q.defId].overlap===!1&&E.isEvent||Se.overlap===!1||we&&!we(new gl(i,ae[Q.defId],Q),new gl(i,ie,le))))return!1}let Bt=C.eventStore;for(let We of Se.allows){let Q=Object.assign(Object.assign({},u),{range:le.range,allDay:ie.allDay}),Be=Bt.defs[ie.defId],Ae=Bt.instances[ye],Ke;if(Be?Ke=new gl(i,Be,Ae):Ke=new gl(i,ie),!We(oF(Q,i),Ke))return!1}}return!0}function cie(c,i,u,g){let C=c.eventStore,E=C.defs,A=C.instances,D=c.dateSelection,L=D.range,{selectionConfig:G}=i.getCurrentData();if(g&&(G=g(G)),!EQ(G.constraints,L,C,c.businessHours,i))return!1;let{selectOverlap:W}=i.options,ae=typeof W=="function"?W:null;for(let ne in A){let F=A[ne];if(K$(L,F.range)&&(G.overlap===!1||ae&&!ae(new gl(i,E[F.defId],F),null)))return!1}for(let ne of G.allows){let F=Object.assign(Object.assign({},u),D);if(!ne(oF(F,i),null))return!1}return!0}function EQ(c,i,u,g,C){for(let E of c)if(!die(uie(E,i,u,g,C),i))return!1;return!0}function uie(c,i,u,g,C){return c==="businessHours"?vF(_2(g,i,C)):typeof c=="string"?vF(Y8(u,E=>E.groupId===c)):typeof c=="object"&&c?vF(_2(c,i,C)):[]}function vF(c){let{instances:i}=c,u=[];for(let g in i)u.push(i[g].range);return u}function die(c,i){for(let u of c)if(G8(u,i))return!0;return!1}const o7=/^(visible|hidden)$/;class fie extends Ba{constructor(){super(...arguments),this.handleEl=i=>{this.el=i,M1(this.props.elRef,i)}}render(){let{props:i}=this,{liquid:u,liquidIsAbsolute:g}=i,C=u&&g,E=["fc-scroller"];return u&&(g?E.push("fc-scroller-liquid-absolute"):E.push("fc-scroller-liquid")),Qe("div",{ref:this.handleEl,className:E.join(" "),style:{overflowX:i.overflowX,overflowY:i.overflowY,left:C&&-(i.overcomeLeft||0)||"",right:C&&-(i.overcomeRight||0)||"",bottom:C&&-(i.overcomeBottom||0)||"",marginLeft:!C&&-(i.overcomeLeft||0)||"",marginRight:!C&&-(i.overcomeRight||0)||"",marginBottom:!C&&-(i.overcomeBottom||0)||"",maxHeight:i.maxHeight||""}},i.children)}needsXScrolling(){if(o7.test(this.props.overflowX))return!1;let{el:i}=this,u=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:g}=i;for(let C=0;C<g.length;C+=1)if(g[C].getBoundingClientRect().width>u)return!0;return!1}needsYScrolling(){if(o7.test(this.props.overflowY))return!1;let{el:i}=this,u=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:g}=i;for(let C=0;C<g.length;C+=1)if(g[C].getBoundingClientRect().height>u)return!0;return!1}getXScrollbarWidth(){return o7.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return o7.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class P1{constructor(i){this.masterCallback=i,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(u,g)=>{let{depths:C,currentMap:E}=this,A=!1,D=!1;u!==null?(A=g in E,E[g]=u,C[g]=(C[g]||0)+1,D=!0):(C[g]-=1,C[g]||(delete E[g],delete this.callbackMap[g],A=!0)),this.masterCallback&&(A&&this.masterCallback(null,String(g)),D&&this.masterCallback(u,String(g)))}}createRef(i){let u=this.callbackMap[i];return u||(u=this.callbackMap[i]=g=>{this.handleValue(g,String(i))}),u}collect(i,u,g){return _re(this.currentMap,i,u,g)}getAll(){return j$(this.currentMap)}}function mie(c){let i=Sse(c,".fc-scrollgrid-shrink"),u=0;for(let g of i)u=Math.max(u,Pse(g));return Math.ceil(u)}function xQ(c,i){return c.liquid&&i.liquid}function hie(c,i){return i.maxHeight!=null||xQ(c,i)}function gie(c,i,u,g){let{expandRows:C}=u;return typeof i.content=="function"?i.content(u):Qe("table",{role:"presentation",className:[i.tableClassName,c.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:u.tableMinWidth,width:u.clientWidth,height:C?u.clientHeight:""}},u.tableColGroupNode,Qe(g?"thead":"tbody",{role:"presentation"},typeof i.rowContent=="function"?i.rowContent(u):i.rowContent))}function pie(c,i){return jb(c,i,fp)}function bie(c,i){let u=[];for(let g of c){let C=g.span||1;for(let E=0;E<C;E+=1)u.push(Qe("col",{style:{width:g.width==="shrink"?yie(i):g.width||"",minWidth:g.minWidth||""}}))}return Qe("colgroup",{},...u)}function yie(c){return c??4}function vie(c){for(let i of c)if(i.width==="shrink")return!0;return!1}function Cie(c,i){let u=["fc-scrollgrid",i.theme.getClass("table")];return c&&u.push("fc-scrollgrid-liquid"),u}function wie(c,i){let u=["fc-scrollgrid-section",`fc-scrollgrid-section-${c.type}`,c.className];return i&&c.liquid&&c.maxHeight==null&&u.push("fc-scrollgrid-section-liquid"),c.isSticky&&u.push("fc-scrollgrid-section-sticky"),u}function CF(c){return Qe("div",{className:"fc-scrollgrid-sticky-shim",style:{width:c.clientWidth,minWidth:c.tableMinWidth}})}function s7(c){let{stickyHeaderDates:i}=c;return(i==null||i==="auto")&&(i=c.height==="auto"||c.viewHeight==="auto"),i}function kQ(c){let{stickyFooterScrollbar:i}=c;return(i==null||i==="auto")&&(i=c.height==="auto"||c.viewHeight==="auto"),i}class wF extends Ba{constructor(){super(...arguments),this.processCols=Es(i=>i,pie),this.renderMicroColGroup=Es(bie),this.scrollerRefs=new P1,this.scrollerElRefs=new P1(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:i,state:u,context:g}=this,C=i.sections||[],E=this.processCols(i.cols),A=this.renderMicroColGroup(E,u.shrinkWidth),D=Cie(i.liquid,g);i.collapsibleWidth&&D.push("fc-scrollgrid-collapsible");let L=C.length,G=0,W,ae=[],ne=[],F=[];for(;G<L&&(W=C[G]).type==="header";)ae.push(this.renderSection(W,A,!0)),G+=1;for(;G<L&&(W=C[G]).type==="body";)ne.push(this.renderSection(W,A,!1)),G+=1;for(;G<L&&(W=C[G]).type==="footer";)F.push(this.renderSection(W,A,!0)),G+=1;let ye=!cQ();const le={role:"rowgroup"};return Qe("table",{role:"grid",className:D.join(" "),style:{height:i.height}},!!(!ye&&ae.length)&&Qe("thead",le,...ae),!!(!ye&&ne.length)&&Qe("tbody",le,...ne),!!(!ye&&F.length)&&Qe("tfoot",le,...F),ye&&Qe("tbody",le,...ae,...ne,...F))}renderSection(i,u,g){return"outerContent"in i?Qe(tl,{key:i.key},i.outerContent):Qe("tr",{key:i.key,role:"presentation",className:wie(i,this.props.liquid).join(" ")},this.renderChunkTd(i,u,i.chunk,g))}renderChunkTd(i,u,g,C){if("outerContent"in g)return g.outerContent;let{props:E}=this,{forceYScrollbars:A,scrollerClientWidths:D,scrollerClientHeights:L}=this.state,G=hie(E,i),W=xQ(E,i),ae=E.liquid?A?"scroll":G?"auto":"hidden":"visible",ne=i.key,F=gie(i,g,{tableColGroupNode:u,tableMinWidth:"",clientWidth:!E.collapsibleWidth&&D[ne]!==void 0?D[ne]:null,clientHeight:L[ne]!==void 0?L[ne]:null,expandRows:i.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},C);return Qe(C?"th":"td",{ref:g.elRef,role:"presentation"},Qe("div",{className:`fc-scroller-harness${W?" fc-scroller-harness-liquid":""}`},Qe(fie,{ref:this.scrollerRefs.createRef(ne),elRef:this.scrollerElRefs.createRef(ne),overflowY:ae,overflowX:E.liquid?"hidden":"visible",maxHeight:i.maxHeight,liquid:W,liquidIsAbsolute:!0},F)))}_handleScrollerEl(i,u){let g=Sie(this.props.sections,u);g&&M1(g.chunk.scrollerElRef,i)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return vie(this.props.cols)?mie(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let i=jae(),{scrollerRefs:u,scrollerElRefs:g}=this,C=!1,E={},A={};for(let D in u.currentMap){let L=u.currentMap[D];if(L&&L.needsYScrolling()){C=!0;break}}for(let D of this.props.sections){let L=D.key,G=g.currentMap[L];if(G){let W=G.parentNode;E[L]=Math.floor(W.getBoundingClientRect().width-(C?i.y:0)),A[L]=Math.floor(W.getBoundingClientRect().height)}}return{forceYScrollbars:C,scrollerClientWidths:E,scrollerClientHeights:A}}}wF.addStateEquality({scrollerClientWidths:fp,scrollerClientHeights:fp});function Sie(c,i){for(let u of c)if(u.key===i)return u;return null}class SF extends Ba{constructor(){super(...arguments),this.handleEl=i=>{this.el=i,i&&eQ(i,this.props.seg)}}render(){const{props:i,context:u}=this,{options:g}=u,{seg:C}=i,{eventRange:E}=C,{ui:A}=E,D={event:new gl(u,E.def,E.instance),view:u.viewApi,timeText:i.timeText,textColor:A.textColor,backgroundColor:A.backgroundColor,borderColor:A.borderColor,isDraggable:!i.disableDragging&&yae(C,u),isStartResizable:!i.disableResizing&&vae(C,u),isEndResizable:!i.disableResizing&&Cae(C),isMirror:!!(i.isDragging||i.isResizing||i.isDateSelecting),isStart:!!C.isStart,isEnd:!!C.isEnd,isPast:!!i.isPast,isFuture:!!i.isFuture,isToday:!!i.isToday,isSelected:!!i.isSelected,isDragging:!!i.isDragging,isResizing:!!i.isResizing};return Qe(gm,Object.assign({},i,{elRef:this.handleEl,elClasses:[...wae(D),...C.eventRange.ui.classNames,...i.elClasses||[]],renderProps:D,generatorName:"eventContent",customGenerator:g.eventContent,defaultGenerator:i.defaultGenerator,classNameGenerator:g.eventClassNames,didMount:g.eventDidMount,willUnmount:g.eventWillUnmount}))}componentDidUpdate(i){this.el&&this.props.seg!==i.seg&&eQ(this.el,this.props.seg)}}class TQ extends Ba{render(){let{props:i,context:u}=this,{options:g}=u,{seg:C}=i,{ui:E}=C.eventRange,A=g.eventTimeFormat||i.defaultTimeFormat,D=oQ(C,A,u,i.defaultDisplayEventTime,i.defaultDisplayEventEnd);return Qe(SF,Object.assign({},i,{elTag:"a",elStyle:{borderColor:E.borderColor,backgroundColor:E.backgroundColor},elAttrs:rQ(C,u),defaultGenerator:_ie,timeText:D}),(L,G)=>Qe(tl,null,Qe(L,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:G.textColor}}),!!G.isStartResizable&&Qe("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!G.isEndResizable&&Qe("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function _ie(c){return Qe("div",{className:"fc-event-main-frame"},c.timeText&&Qe("div",{className:"fc-event-time"},c.timeText),Qe("div",{className:"fc-event-title-container"},Qe("div",{className:"fc-event-title fc-sticky"},c.event.title||Qe(tl,null," "))))}const _F=c=>Qe(B1.Consumer,null,i=>{let{options:u}=i,g={isAxis:c.isAxis,date:i.dateEnv.toDate(c.date),view:i.viewApi};return Qe(gm,Object.assign({},c,{elTag:c.elTag||"div",renderProps:g,generatorName:"nowIndicatorContent",customGenerator:u.nowIndicatorContent,classNameGenerator:u.nowIndicatorClassNames,didMount:u.nowIndicatorDidMount,willUnmount:u.nowIndicatorWillUnmount}))}),Eie=_l({day:"numeric"});class EF extends Ba{constructor(){super(...arguments),this.refineRenderProps=V8(xie)}render(){let{props:i,context:u}=this,{options:g}=u,C=this.refineRenderProps({date:i.date,dateProfile:i.dateProfile,todayRange:i.todayRange,isMonthStart:i.isMonthStart||!1,showDayNumber:i.showDayNumber,extraRenderProps:i.extraRenderProps,viewApi:u.viewApi,dateEnv:u.dateEnv,monthStartFormat:g.monthStartFormat});return Qe(gm,Object.assign({},i,{elClasses:[...cF(C,u.theme),...i.elClasses||[]],elAttrs:Object.assign(Object.assign({},i.elAttrs),C.isDisabled?{}:{"data-date":V$(i.date)}),renderProps:C,generatorName:"dayCellContent",customGenerator:g.dayCellContent,defaultGenerator:i.defaultGenerator,classNameGenerator:C.isDisabled?void 0:g.dayCellClassNames,didMount:g.dayCellDidMount,willUnmount:g.dayCellWillUnmount}))}}function xF(c){return!!(c.dayCellContent||Y$("dayCellContent",c))}function xie(c){let{date:i,dateEnv:u,dateProfile:g,isMonthStart:C}=c,E=dQ(i,c.todayRange,null,g),A=c.showDayNumber?u.format(i,C?c.monthStartFormat:Eie):"";return Object.assign(Object.assign(Object.assign({date:u.toDate(i),view:c.viewApi},E),{isMonthStart:C,dayNumberText:A}),c.extraRenderProps)}class AQ extends Ba{render(){let{props:i}=this,{seg:u}=i;return Qe(SF,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:u.eventRange.ui.backgroundColor},defaultGenerator:kie,seg:u,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:i.isPast,isFuture:i.isFuture,isToday:i.isToday,disableDragging:!0,disableResizing:!0})}}function kie(c){let{title:i}=c.event;return i&&Qe("div",{className:"fc-event-title"},c.event.title)}function DQ(c){return Qe("div",{className:`fc-${c}`})}const NQ=c=>Qe(B1.Consumer,null,i=>{let{dateEnv:u,options:g}=i,{date:C}=c,E=g.weekNumberFormat||c.defaultFormat,A=u.computeWeekNumber(C),D=u.format(C,E);return Qe(gm,Object.assign({},c,{renderProps:{num:A,text:D,date:C},generatorName:"weekNumberContent",customGenerator:g.weekNumberContent,defaultGenerator:Tie,classNameGenerator:g.weekNumberClassNames,didMount:g.weekNumberDidMount,willUnmount:g.weekNumberWillUnmount}))});function Tie(c){return c.text}const kF=10;class Aie extends Ba{constructor(){super(...arguments),this.state={titleId:P8()},this.handleRootEl=i=>{this.rootEl=i,this.props.elRef&&M1(this.props.elRef,i)},this.handleDocumentMouseDown=i=>{const u=lX(i);this.rootEl.contains(u)||this.handleCloseClick()},this.handleDocumentKeyDown=i=>{i.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:i}=this.props;i&&i()}}render(){let{theme:i,options:u}=this.context,{props:g,state:C}=this,E=["fc-popover",i.getClass("popover")].concat(g.extraClassNames||[]);return lse(Qe("div",Object.assign({},g.extraAttrs,{id:g.id,className:E.join(" "),"aria-labelledby":C.titleId,ref:this.handleRootEl}),Qe("div",{className:"fc-popover-header "+i.getClass("popoverHeader")},Qe("span",{className:"fc-popover-title",id:C.titleId},g.title),Qe("span",{className:"fc-popover-close "+i.getIconClass("close"),title:u.closeHint,onClick:this.handleCloseClick})),Qe("div",{className:"fc-popover-body "+i.getClass("popoverContent")},g.children)),g.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:i}=this.context,{alignmentEl:u,alignGridTop:g}=this.props,{rootEl:C}=this,E=Yae(u);if(E){let A=C.getBoundingClientRect(),D=g?Zu(u,".fc-scrollgrid").getBoundingClientRect().top:E.top,L=i?E.right-A.width:E.left;D=Math.max(D,kF),L=Math.min(L,document.documentElement.clientWidth-kF-A.width),L=Math.max(L,kF);let G=C.offsetParent.getBoundingClientRect();Z6(C,{top:D-G.top,left:L-G.left})}}}class Die extends mp{constructor(){super(...arguments),this.handleRootEl=i=>{this.rootEl=i,i?this.context.registerInteractiveComponent(this,{el:i,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:i,dateEnv:u}=this.context,{props:g}=this,{startDate:C,todayRange:E,dateProfile:A}=g,D=u.format(C,i.dayPopoverFormat);return Qe(EF,{elRef:this.handleRootEl,date:C,dateProfile:A,todayRange:E},(L,G,W)=>Qe(Aie,{elRef:W.ref,id:g.id,title:D,extraClassNames:["fc-more-popover"].concat(W.className||[]),extraAttrs:W,parentEl:g.parentEl,alignmentEl:g.alignmentEl,alignGridTop:g.alignGridTop,onClose:g.onClose},xF(i)&&Qe(L,{elTag:"div",elClasses:["fc-more-popover-misc"]}),g.children))}queryHit(i,u,g,C){let{rootEl:E,props:A}=this;return i>=0&&i<g&&u>=0&&u<C?{dateProfile:A.dateProfile,dateSpan:Object.assign({allDay:!A.forceTimed,range:{start:A.startDate,end:A.endDate}},A.extraDateSpan),dayEl:E,rect:{left:0,top:0,right:g,bottom:C},layer:1}:null}}class OQ extends Ba{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:P8()},this.handleLinkEl=i=>{this.linkEl=i,this.props.elRef&&M1(this.props.elRef,i)},this.handleClick=i=>{let{props:u,context:g}=this,{moreLinkClick:C}=g.options,E=RQ(u).start;function A(D){let{def:L,instance:G,range:W}=D.eventRange;return{event:new gl(g,L,G),start:g.dateEnv.toDate(W.start),end:g.dateEnv.toDate(W.end),isStart:D.isStart,isEnd:D.isEnd}}typeof C=="function"&&(C=C({date:E,allDay:!!u.allDayDate,allSegs:u.allSegs.map(A),hiddenSegs:u.hiddenSegs.map(A),jsEvent:i,view:g.viewApi})),!C||C==="popover"?this.setState({isPopoverOpen:!0}):typeof C=="string"&&g.calendarApi.zoomTo(E,C)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:i,state:u}=this;return Qe(B1.Consumer,null,g=>{let{viewApi:C,options:E,calendarApi:A}=g,{moreLinkText:D}=E,{moreCnt:L}=i,G=RQ(i),W=typeof D=="function"?D.call(A,L):`+${L} ${D}`,ae=G6(E.moreLinkHint,[L],W),ne={num:L,shortText:`+${L}`,text:W,view:C};return Qe(tl,null,!!i.moreCnt&&Qe(gm,{elTag:i.elTag||"a",elRef:this.handleLinkEl,elClasses:[...i.elClasses||[],"fc-more-link"],elStyle:i.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},i.elAttrs),fX(this.handleClick)),{title:ae,"aria-expanded":u.isPopoverOpen,"aria-controls":u.isPopoverOpen?u.popoverId:""}),renderProps:ne,generatorName:"moreLinkContent",customGenerator:E.moreLinkContent,defaultGenerator:i.defaultGenerator||Nie,classNameGenerator:E.moreLinkClassNames,didMount:E.moreLinkDidMount,willUnmount:E.moreLinkWillUnmount},i.children),u.isPopoverOpen&&Qe(Die,{id:u.popoverId,startDate:G.start,endDate:G.end,dateProfile:i.dateProfile,todayRange:i.todayRange,extraDateSpan:i.extraDateSpan,parentEl:this.parentEl,alignmentEl:i.alignmentElRef?i.alignmentElRef.current:this.linkEl,alignGridTop:i.alignGridTop,forceTimed:i.forceTimed,onClose:this.handlePopoverClose},i.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Zu(this.linkEl,".fc-view-harness"))}}function Nie(c){return c.text}function RQ(c){if(c.allDayDate)return{start:c.allDayDate,end:Gu(c.allDayDate,1)};let{hiddenSegs:i}=c;return{start:BQ(i),end:Rie(i)}}function BQ(c){return c.reduce(Oie).eventRange.range.start}function Oie(c,i){return c.eventRange.range.start<i.eventRange.range.start?c:i}function Rie(c){return c.reduce(Bie).eventRange.range.end}function Bie(c,i){return c.eventRange.range.end>i.eventRange.range.end?c:i}class Mie{constructor(){this.handlers=[]}set(i){this.currentValue=i;for(let u of this.handlers)u(i)}subscribe(i){this.handlers.push(i),this.currentValue!==void 0&&i(this.currentValue)}}class Iie extends Mie{constructor(){super(...arguments),this.map=new Map}handle(i){const{map:u}=this;let g=!1;i.isActive?(u.set(i.id,i),g=!0):u.has(i.id)&&(u.delete(i.id),g=!0),g&&this.set(u)}}const Pie=[],MQ={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},IQ=Object.assign(Object.assign({},MQ),{buttonHints:{prev:"Previous $0",next:"Next $0",today(c,i){return i==="day"?"Today":`This ${c}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(c){return`Show ${c} more event${c===1?"":"s"}`}});function $ie(c){let i=c.length>0?c[0].code:"en",u=Pie.concat(c),g={en:IQ};for(let C of u)g[C.code]=C;return{map:g,defaultCode:i}}function PQ(c,i){return typeof c=="object"&&!Array.isArray(c)?$Q(c.code,[c.code],c):Fie(c,i)}function Fie(c,i){let u=[].concat(c||[]),g=Lie(u,i)||IQ;return $Q(c,u,g)}function Lie(c,i){for(let u=0;u<c.length;u+=1){let g=c[u].toLocaleLowerCase().split("-");for(let C=g.length;C>0;C-=1){let E=g.slice(0,C).join("-");if(i[E])return i[E]}}return null}function $Q(c,i,u){let g=W$([MQ,u],["buttonText"]);delete g.code;let{week:C}=g;return delete g.week,{codeArg:c,codes:i,week:C,simpleNumberFormat:new Intl.NumberFormat(c),options:g}}function $1(c){return{id:p2(),name:c.name,premiumReleaseDate:c.premiumReleaseDate?new Date(c.premiumReleaseDate):void 0,deps:c.deps||[],reducers:c.reducers||[],isLoadingFuncs:c.isLoadingFuncs||[],contextInit:[].concat(c.contextInit||[]),eventRefiners:c.eventRefiners||{},eventDefMemberAdders:c.eventDefMemberAdders||[],eventSourceRefiners:c.eventSourceRefiners||{},isDraggableTransformers:c.isDraggableTransformers||[],eventDragMutationMassagers:c.eventDragMutationMassagers||[],eventDefMutationAppliers:c.eventDefMutationAppliers||[],dateSelectionTransformers:c.dateSelectionTransformers||[],datePointTransforms:c.datePointTransforms||[],dateSpanTransforms:c.dateSpanTransforms||[],views:c.views||{},viewPropsTransformers:c.viewPropsTransformers||[],isPropsValid:c.isPropsValid||null,externalDefTransforms:c.externalDefTransforms||[],viewContainerAppends:c.viewContainerAppends||[],eventDropTransformers:c.eventDropTransformers||[],componentInteractions:c.componentInteractions||[],calendarInteractions:c.calendarInteractions||[],themeClasses:c.themeClasses||{},eventSourceDefs:c.eventSourceDefs||[],cmdFormatter:c.cmdFormatter,recurringTypes:c.recurringTypes||[],namedTimeZonedImpl:c.namedTimeZonedImpl,initialView:c.initialView||"",elementDraggingImpl:c.elementDraggingImpl,optionChangeHandlers:c.optionChangeHandlers||{},scrollGridImpl:c.scrollGridImpl||null,listenerRefiners:c.listenerRefiners||{},optionRefiners:c.optionRefiners||{},propSetHandlers:c.propSetHandlers||{}}}function Vie(c,i){let u={},g={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function C(E){for(let A of E){const D=A.name,L=u[D];L===void 0?(u[D]=A.id,C(A.deps),g=zie(g,A)):L!==A.id&&console.warn(`Duplicate plugin '${D}'`)}}return c&&C(c),C(i),g}function Hie(){let c=[],i=[],u;return(g,C)=>((!u||!jb(g,c)||!jb(C,i))&&(u=Vie(g,C)),c=g,i=C,u)}function zie(c,i){return{premiumReleaseDate:Uie(c.premiumReleaseDate,i.premiumReleaseDate),reducers:c.reducers.concat(i.reducers),isLoadingFuncs:c.isLoadingFuncs.concat(i.isLoadingFuncs),contextInit:c.contextInit.concat(i.contextInit),eventRefiners:Object.assign(Object.assign({},c.eventRefiners),i.eventRefiners),eventDefMemberAdders:c.eventDefMemberAdders.concat(i.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},c.eventSourceRefiners),i.eventSourceRefiners),isDraggableTransformers:c.isDraggableTransformers.concat(i.isDraggableTransformers),eventDragMutationMassagers:c.eventDragMutationMassagers.concat(i.eventDragMutationMassagers),eventDefMutationAppliers:c.eventDefMutationAppliers.concat(i.eventDefMutationAppliers),dateSelectionTransformers:c.dateSelectionTransformers.concat(i.dateSelectionTransformers),datePointTransforms:c.datePointTransforms.concat(i.datePointTransforms),dateSpanTransforms:c.dateSpanTransforms.concat(i.dateSpanTransforms),views:Object.assign(Object.assign({},c.views),i.views),viewPropsTransformers:c.viewPropsTransformers.concat(i.viewPropsTransformers),isPropsValid:i.isPropsValid||c.isPropsValid,externalDefTransforms:c.externalDefTransforms.concat(i.externalDefTransforms),viewContainerAppends:c.viewContainerAppends.concat(i.viewContainerAppends),eventDropTransformers:c.eventDropTransformers.concat(i.eventDropTransformers),calendarInteractions:c.calendarInteractions.concat(i.calendarInteractions),componentInteractions:c.componentInteractions.concat(i.componentInteractions),themeClasses:Object.assign(Object.assign({},c.themeClasses),i.themeClasses),eventSourceDefs:c.eventSourceDefs.concat(i.eventSourceDefs),cmdFormatter:i.cmdFormatter||c.cmdFormatter,recurringTypes:c.recurringTypes.concat(i.recurringTypes),namedTimeZonedImpl:i.namedTimeZonedImpl||c.namedTimeZonedImpl,initialView:c.initialView||i.initialView,elementDraggingImpl:c.elementDraggingImpl||i.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},c.optionChangeHandlers),i.optionChangeHandlers),scrollGridImpl:i.scrollGridImpl||c.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},c.listenerRefiners),i.listenerRefiners),optionRefiners:Object.assign(Object.assign({},c.optionRefiners),i.optionRefiners),propSetHandlers:Object.assign(Object.assign({},c.propSetHandlers),i.propSetHandlers)}}function Uie(c,i){return c===void 0?i:i===void 0?c:new Date(Math.max(c.valueOf(),i.valueOf()))}class Kb extends Y6{}Kb.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Kb.prototype.baseIconClass="fc-icon",Kb.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Kb.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Kb.prototype.iconOverrideOption="buttonIcons",Kb.prototype.iconOverrideCustomButtonOption="icon",Kb.prototype.iconOverridePrefix="fc-icon-";function Wie(c,i){let u={},g;for(g in c)TF(g,u,c,i);for(g in i)TF(g,u,c,i);return u}function TF(c,i,u,g){if(i[c])return i[c];let C=jie(c,i,u,g);return C&&(i[c]=C),C}function jie(c,i,u,g){let C=u[c],E=g[c],A=W=>C&&C[W]!==null?C[W]:E&&E[W]!==null?E[W]:null,D=A("component"),L=A("superType"),G=null;if(L){if(L===c)throw new Error("Can't have a custom view type that references itself");G=TF(L,i,u,g)}return!D&&G&&(D=G.component),D?{type:c,component:D,defaults:Object.assign(Object.assign({},G?G.defaults:{}),C?C.rawOptions:{}),overrides:Object.assign(Object.assign({},G?G.overrides:{}),E?E.rawOptions:{})}:null}function FQ(c){return R1(c,Zie)}function Zie(c){let i=typeof c=="function"?{component:c}:c,{component:u}=i;return i.content?u=LQ(i):u&&!(u.prototype instanceof Ba)&&(u=LQ(Object.assign(Object.assign({},i),{content:u}))),{superType:i.type,component:u,rawOptions:i}}function LQ(c){return i=>Qe(B1.Consumer,null,u=>Qe(gm,{elTag:"div",elClasses:MX(u.viewSpec),renderProps:Object.assign(Object.assign({},i),{nextDayThreshold:u.options.nextDayThreshold}),generatorName:void 0,customGenerator:c.content,classNameGenerator:c.classNames,didMount:c.didMount,willUnmount:c.willUnmount}))}function Gie(c,i,u,g){let C=FQ(c),E=FQ(i.views),A=Wie(C,E);return R1(A,D=>qie(D,E,i,u,g))}function qie(c,i,u,g,C){let E=c.overrides.duration||c.defaults.duration||g.duration||u.duration,A=null,D="",L="",G={};if(E&&(A=Yie(E),A)){let ne=F$(A);D=ne.unit,ne.value===1&&(L=D,G=i[D]?i[D].rawOptions:{})}let W=ne=>{let F=ne.buttonText||{},ye=c.defaults.buttonTextKey;return ye!=null&&F[ye]!=null?F[ye]:F[c.type]!=null?F[c.type]:F[L]!=null?F[L]:null},ae=ne=>{let F=ne.buttonHints||{},ye=c.defaults.buttonTextKey;return ye!=null&&F[ye]!=null?F[ye]:F[c.type]!=null?F[c.type]:F[L]!=null?F[L]:null};return{type:c.type,component:c.component,duration:A,durationUnit:D,singleUnit:L,optionDefaults:c.defaults,optionOverrides:Object.assign(Object.assign({},G),c.overrides),buttonTextOverride:W(g)||W(u)||c.overrides.buttonText,buttonTextDefault:W(C)||c.defaults.buttonText||W(q6)||c.type,buttonTitleOverride:ae(g)||ae(u)||c.overrides.buttonHint,buttonTitleDefault:ae(C)||c.defaults.buttonHint||ae(q6)}}let VQ={};function Yie(c){let i=JSON.stringify(c),u=VQ[i];return u===void 0&&(u=Zr(c),VQ[i]=u),u}function Kie(c,i){switch(i.type){case"CHANGE_VIEW_TYPE":c=i.viewType}return c}function Xie(c,i){switch(i.type){case"SET_OPTION":return Object.assign(Object.assign({},c),{[i.optionName]:i.rawOptionValue});default:return c}}function Qie(c,i,u,g){let C;switch(i.type){case"CHANGE_VIEW_TYPE":return g.build(i.dateMarker||u);case"CHANGE_DATE":return g.build(i.dateMarker);case"PREV":if(C=g.buildPrev(c,u),C.isValid)return C;break;case"NEXT":if(C=g.buildNext(c,u),C.isValid)return C;break}return c}function Jie(c,i,u){let g=i?i.activeRange:null;return zQ({},ale(c,u),g,u)}function ele(c,i,u,g){let C=u?u.activeRange:null;switch(i.type){case"ADD_EVENT_SOURCES":return zQ(c,i.sources,C,g);case"REMOVE_EVENT_SOURCE":return nle(c,i.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return u?UQ(c,C,g):c;case"FETCH_EVENT_SOURCES":return AF(c,i.sourceIds?AX(i.sourceIds):WQ(c,g),C,i.isRefetch||!1,g);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return rle(c,i.sourceId,i.fetchId,i.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return c}}function tle(c,i,u){let g=i?i.activeRange:null;return AF(c,WQ(c,u),g,!0,u)}function HQ(c){for(let i in c)if(c[i].isFetching)return!0;return!1}function zQ(c,i,u,g){let C={};for(let E of i)C[E.sourceId]=E;return u&&(C=UQ(C,u,g)),Object.assign(Object.assign({},c),C)}function nle(c,i){return C2(c,u=>u.sourceId!==i)}function UQ(c,i,u){return AF(c,C2(c,g=>ole(g,i,u)),i,!1,u)}function ole(c,i,u){return jQ(c,u)?!u.options.lazyFetching||!c.fetchRange||c.isFetching||i.start<c.fetchRange.start||i.end>c.fetchRange.end:!c.latestFetchId}function AF(c,i,u,g,C){let E={};for(let A in c){let D=c[A];i[A]?E[A]=sle(D,u,g,C):E[A]=D}return E}function sle(c,i,u,g){let{options:C,calendarApi:E}=g,A=g.pluginHooks.eventSourceDefs[c.sourceDefId],D=p2();return A.fetch({eventSource:c,range:i,isRefetch:u,context:g},L=>{let{rawEvents:G}=L;C.eventSourceSuccess&&(G=C.eventSourceSuccess.call(E,G,L.response)||G),c.success&&(G=c.success.call(E,G,L.response)||G),g.dispatch({type:"RECEIVE_EVENTS",sourceId:c.sourceId,fetchId:D,fetchRange:i,rawEvents:G})},L=>{let G=!1;C.eventSourceFailure&&(C.eventSourceFailure.call(E,L),G=!0),c.failure&&(c.failure(L),G=!0),G||console.warn(L.message,L),g.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:c.sourceId,fetchId:D,fetchRange:i,error:L})}),Object.assign(Object.assign({},c),{isFetching:!0,latestFetchId:D})}function rle(c,i,u,g){let C=c[i];return C&&u===C.latestFetchId?Object.assign(Object.assign({},c),{[i]:Object.assign(Object.assign({},C),{isFetching:!1,fetchRange:g})}):c}function WQ(c,i){return C2(c,u=>jQ(u,i))}function ale(c,i){let u=jX(i),g=[].concat(c.eventSources||[]),C=[];c.initialEvents&&g.unshift(c.initialEvents),c.events&&g.unshift(c.events);for(let E of g){let A=WX(E,i,u);A&&C.push(A)}return C}function jQ(c,i){return!i.pluginHooks.eventSourceDefs[c.sourceDefId].ignoreRange}function ile(c,i){switch(i.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return i.selection;default:return c}}function lle(c,i){switch(i.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return i.eventInstanceId;default:return c}}function cle(c,i){let u;switch(i.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return u=i.state,{affectedEvents:u.affectedEvents,mutatedEvents:u.mutatedEvents,isEvent:u.isEvent};default:return c}}function ule(c,i){let u;switch(i.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return u=i.state,{affectedEvents:u.affectedEvents,mutatedEvents:u.mutatedEvents,isEvent:u.isEvent};default:return c}}function dle(c,i,u,g,C){let E=c.headerToolbar?ZQ(c.headerToolbar,c,i,u,g,C):null,A=c.footerToolbar?ZQ(c.footerToolbar,c,i,u,g,C):null;return{header:E,footer:A}}function ZQ(c,i,u,g,C,E){let A={},D=[],L=!1;for(let G in c){let W=c[G],ae=fle(W,i,u,g,C,E);A[G]=ae.widgets,D.push(...ae.viewsWithButtons),L=L||ae.hasTitle}return{sectionWidgets:A,viewsWithButtons:D,hasTitle:L}}function fle(c,i,u,g,C,E){let A=i.direction==="rtl",D=i.customButtons||{},L=u.buttonText||{},G=i.buttonText||{},W=u.buttonHints||{},ae=i.buttonHints||{},ne=c?c.split(" "):[],F=[],ye=!1;return{widgets:ne.map(te=>te.split(",").map(Se=>{if(Se==="title")return ye=!0,{buttonName:Se};let ie,Z,we,Bt,We,Q;if(ie=D[Se])we=Be=>{ie.click&&ie.click.call(Be.target,Be,Be.target)},(Bt=g.getCustomButtonIconClass(ie))||(Bt=g.getIconClass(Se,A))||(We=ie.text),Q=ie.hint||ie.text;else if(Z=C[Se]){F.push(Se),we=()=>{E.changeView(Se)},(We=Z.buttonTextOverride)||(Bt=g.getIconClass(Se,A))||(We=Z.buttonTextDefault);let Be=Z.buttonTextOverride||Z.buttonTextDefault;Q=G6(Z.buttonTitleOverride||Z.buttonTitleDefault||i.viewHint,[Be,Se],Be)}else if(E[Se])if(we=()=>{E[Se]()},(We=L[Se])||(Bt=g.getIconClass(Se,A))||(We=G[Se]),Se==="prevYear"||Se==="nextYear"){let Be=Se==="prevYear"?"prev":"next";Q=G6(W[Be]||ae[Be],[G.year||"year","year"],G[Se])}else Q=Be=>G6(W[Se]||ae[Se],[G[Be]||Be,Be],G[Se]);return{buttonName:Se,buttonClick:we,buttonIcon:Bt,buttonText:We,buttonHint:Q}})),viewsWithButtons:F,hasTitle:ye}}class mle{constructor(i,u,g){this.type=i,this.getCurrentData=u,this.dateEnv=g}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(i){return this.getCurrentData().options[i]}}const hle=$1({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(c){return Array.isArray(c.events)?c.events:null},fetch(c,i){i({rawEvents:c.eventSource.meta})}}]}),gle=$1({name:"func-event-source",eventSourceDefs:[{parseMeta(c){return typeof c.events=="function"?c.events:null},fetch(c,i,u){const{dateEnv:g}=c.context,C=c.eventSource.meta;Dae(C.bind(null,aQ(c.range,g)),E=>i({rawEvents:E}),u)}}]}),ple=$1({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:Wt,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(c){return c.url&&(c.format==="json"||!c.format)?{url:c.url,format:"json",method:(c.method||"GET").toUpperCase(),extraParams:c.extraParams,startParam:c.startParam,endParam:c.endParam,timeZoneParam:c.timeZoneParam}:null},fetch(c,i,u){const{meta:g}=c.eventSource,C=ble(g,c.range,c.context);Nae(g.method,g.url,C).then(([E,A])=>{i({rawEvents:E,response:A})},u)}}]});function ble(c,i,u){let{dateEnv:g,options:C}=u,E,A,D,L,G={};return E=c.startParam,E==null&&(E=C.startParam),A=c.endParam,A==null&&(A=C.endParam),D=c.timeZoneParam,D==null&&(D=C.timeZoneParam),typeof c.extraParams=="function"?L=c.extraParams():L=c.extraParams||{},Object.assign(G,L),G[E]=g.formatIso(i.start),G[A]=g.formatIso(i.end),g.timeZone!=="local"&&(G[D]=g.timeZone),G}const yle=$1({name:"simple-recurring-event",recurringTypes:[{parse(c,i){if(c.daysOfWeek||c.startTime||c.endTime||c.startRecur||c.endRecur){let u={daysOfWeek:c.daysOfWeek||null,startTime:c.startTime||null,endTime:c.endTime||null,startRecur:c.startRecur?i.createMarker(c.startRecur):null,endRecur:c.endRecur?i.createMarker(c.endRecur):null},g;return c.duration&&(g=c.duration),!g&&c.startTime&&c.endTime&&(g=Vse(c.endTime,c.startTime)),{allDayGuess:!c.startTime&&!c.endTime,duration:g,typeData:u}}return null},expand(c,i,u){let g=S2(i,{start:c.startRecur,end:c.endRecur});return g?vle(c.daysOfWeek,c.startTime,g,u):[]}}],eventRefiners:{daysOfWeek:Wt,startTime:Zr,endTime:Zr,duration:Zr,startRecur:Wt,endRecur:Wt}});function vle(c,i,u,g){let C=c?AX(c):null,E=Ii(u.start),A=u.end,D=[];for(;E<A;){let L;(!C||C[E.getUTCDay()])&&(i?L=g.add(E,i):L=E,D.push(L)),E=Gu(E,1)}return D}const Cle=$1({name:"change-handler",optionChangeHandlers:{events(c,i){GQ([c],i)},eventSources:GQ}});function GQ(c,i){let u=j$(i.getCurrentData().eventSources);if(u.length===1&&c.length===1&&Array.isArray(u[0]._raw)&&Array.isArray(c[0])){i.dispatch({type:"RESET_RAW_EVENTS",sourceId:u[0].sourceId,rawEvents:c[0]});return}let g=[];for(let C of c){let E=!1;for(let A=0;A<u.length;A+=1)if(u[A]._raw===C){u.splice(A,1),E=!0;break}E||g.push(C)}for(let C of u)i.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:C.sourceId});for(let C of g)i.calendarApi.addEventSource(C)}function wle(c,i){i.emitter.trigger("datesSet",Object.assign(Object.assign({},aQ(c.activeRange,i.dateEnv)),{view:i.viewApi}))}function Sle(c,i){let{emitter:u}=i;u.hasHandlers("eventsSet")&&u.trigger("eventsSet",E2(c,i))}const _le=[hle,gle,ple,yle,Cle,$1({name:"misc",isLoadingFuncs:[c=>HQ(c.eventSources)],propSetHandlers:{dateProfile:wle,eventStore:Sle}})];class Ele{constructor(i,u){this.runTaskOption=i,this.drainedOption=u,this.queue=[],this.delayedRunner=new R$(this.drain.bind(this))}request(i,u){this.queue.push(i),this.delayedRunner.request(u)}pause(i){this.delayedRunner.pause(i)}resume(i,u){this.delayedRunner.resume(i,u)}drain(){let{queue:i}=this;for(;i.length;){let u=[],g;for(;g=i.shift();)this.runTask(g),u.push(g);this.drained(u)}}runTask(i){this.runTaskOption&&this.runTaskOption(i)}drained(i){this.drainedOption&&this.drainedOption(i)}}function xle(c,i,u){let g;return/^(year|month)$/.test(c.currentRangeUnit)?g=c.currentRange:g=c.activeRange,u.formatRange(g.start,g.end,_l(i.titleFormat||kle(c)),{isEndExclusive:c.isRangeAllDay,defaultSeparator:i.titleRangeSeparator})}function kle(c){let{currentRangeUnit:i}=c;if(i==="year")return{year:"numeric"};if(i==="month")return{year:"numeric",month:"long"};let u=L8(c.currentRange.start,c.currentRange.end);return u!==null&&u>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Tle{constructor(i){this.computeCurrentViewData=Es(this._computeCurrentViewData),this.organizeRawLocales=Es($ie),this.buildLocale=Es(PQ),this.buildPluginHooks=Hie(),this.buildDateEnv=Es(Ale),this.buildTheme=Es(Dle),this.parseToolbars=Es(dle),this.buildViewSpecs=Es(Gie),this.buildDateProfileGenerator=V8(Nle),this.buildViewApi=Es(Ole),this.buildViewUiProps=V8(Mle),this.buildEventUiBySource=Es(Rle,fp),this.buildEventUiBases=Es(Ble),this.parseContextBusinessHours=V8(Ile),this.buildTitle=Es(xle),this.emitter=new Q8,this.actionRunner=new Ele(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=ne=>{this.actionRunner.request(ne)},this.props=i,this.actionRunner.pause();let u={},g=this.computeOptionsData(i.optionOverrides,u,i.calendarApi),C=g.calendarOptions.initialView||g.pluginHooks.initialView,E=this.computeCurrentViewData(C,g,i.optionOverrides,u);i.calendarApi.currentDataManager=this,this.emitter.setThisContext(i.calendarApi),this.emitter.setOptions(E.options);let A=Ure(g.calendarOptions,g.dateEnv),D=E.dateProfileGenerator.build(A);I1(D.activeRange,A)||(A=D.currentRange.start);let L={dateEnv:g.dateEnv,options:g.calendarOptions,pluginHooks:g.pluginHooks,calendarApi:i.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let ne of g.pluginHooks.contextInit)ne(L);let G=Jie(g.calendarOptions,D,L),W={dynamicOptionOverrides:u,currentViewType:C,currentDate:A,dateProfile:D,businessHours:this.parseContextBusinessHours(L),eventSources:G,eventUiBases:{},eventStore:pm(),renderableEventStore:pm(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(L).selectionConfig},ae=Object.assign(Object.assign({},L),W);for(let ne of g.pluginHooks.reducers)Object.assign(W,ne(null,null,ae));DF(W,L)&&this.emitter.trigger("loading",!0),this.state=W,this.updateData(),this.actionRunner.resume()}resetOptions(i,u){let{props:g}=this;u===void 0?g.optionOverrides=i:(g.optionOverrides=Object.assign(Object.assign({},g.optionOverrides||{}),i),this.optionsForRefining.push(...u)),(u===void 0||u.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(i){let{props:u,state:g,emitter:C}=this,E=Xie(g.dynamicOptionOverrides,i),A=this.computeOptionsData(u.optionOverrides,E,u.calendarApi),D=Kie(g.currentViewType,i),L=this.computeCurrentViewData(D,A,u.optionOverrides,E);u.calendarApi.currentDataManager=this,C.setThisContext(u.calendarApi),C.setOptions(L.options);let G={dateEnv:A.dateEnv,options:A.calendarOptions,pluginHooks:A.pluginHooks,calendarApi:u.calendarApi,dispatch:this.dispatch,emitter:C,getCurrentData:this.getCurrentData},{currentDate:W,dateProfile:ae}=g;this.data&&this.data.dateProfileGenerator!==L.dateProfileGenerator&&(ae=L.dateProfileGenerator.build(W)),W=zre(W,i),ae=Qie(ae,i,W,L.dateProfileGenerator),(i.type==="PREV"||i.type==="NEXT"||!I1(ae.currentRange,W))&&(W=ae.currentRange.start);let ne=ele(g.eventSources,i,ae,G),F=nae(g.eventStore,i,ne,ae,G),le=HQ(ne)&&!L.options.progressiveEventRendering&&g.renderableEventStore||F,{eventUiSingleBase:te,selectionConfig:Se}=this.buildViewUiProps(G),ie=this.buildEventUiBySource(ne),Z=this.buildEventUiBases(le.defs,te,ie),we={dynamicOptionOverrides:E,currentViewType:D,currentDate:W,dateProfile:ae,eventSources:ne,eventStore:F,renderableEventStore:le,selectionConfig:Se,eventUiBases:Z,businessHours:this.parseContextBusinessHours(G),dateSelection:ile(g.dateSelection,i),eventSelection:lle(g.eventSelection,i),eventDrag:cle(g.eventDrag,i),eventResize:ule(g.eventResize,i)},Bt=Object.assign(Object.assign({},G),we);for(let Be of A.pluginHooks.reducers)Object.assign(we,Be(g,i,Bt));let We=DF(g,G),Q=DF(we,G);!We&&Q?C.trigger("loading",!0):We&&!Q&&C.trigger("loading",!1),this.state=we,u.onAction&&u.onAction(i)}updateData(){let{props:i,state:u}=this,g=this.data,C=this.computeOptionsData(i.optionOverrides,u.dynamicOptionOverrides,i.calendarApi),E=this.computeCurrentViewData(u.currentViewType,C,i.optionOverrides,u.dynamicOptionOverrides),A=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(u.dateProfile,E.options,C.dateEnv),calendarApi:i.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},C),E),u),D=C.pluginHooks.optionChangeHandlers,L=g&&g.calendarOptions,G=C.calendarOptions;if(L&&L!==G){L.timeZone!==G.timeZone&&(u.eventSources=A.eventSources=tle(A.eventSources,u.dateProfile,A),u.eventStore=A.eventStore=qX(A.eventStore,g.dateEnv,A.dateEnv),u.renderableEventStore=A.renderableEventStore=qX(A.renderableEventStore,g.dateEnv,A.dateEnv));for(let W in D)(this.optionsForHandling.indexOf(W)!==-1||L[W]!==G[W])&&D[W](G[W],A)}this.optionsForHandling=[],i.onData&&i.onData(A)}computeOptionsData(i,u,g){if(!this.optionsForRefining.length&&i===this.stableOptionOverrides&&u===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:C,pluginHooks:E,localeDefaults:A,availableLocaleData:D,extra:L}=this.processRawCalendarOptions(i,u);qQ(L);let G=this.buildDateEnv(C.timeZone,C.locale,C.weekNumberCalculation,C.firstDay,C.weekText,E,D,C.defaultRangeSeparator),W=this.buildViewSpecs(E.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,A),ae=this.buildTheme(C,E),ne=this.parseToolbars(C,this.stableOptionOverrides,ae,W,g);return this.stableCalendarOptionsData={calendarOptions:C,pluginHooks:E,dateEnv:G,viewSpecs:W,theme:ae,toolbarConfig:ne,localeDefaults:A,availableRawLocales:D.map}}processRawCalendarOptions(i,u){let{locales:g,locale:C}=z$([q6,i,u]),E=this.organizeRawLocales(g),A=E.map,D=this.buildLocale(C||E.defaultCode,A).options,L=this.buildPluginHooks(i.plugins||[],_le),G=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xX),kX),TX),L.listenerRefiners),L.optionRefiners),W={},ae=z$([q6,D,i,u]),ne={},F=this.currentCalendarOptionsInput,ye=this.currentCalendarOptionsRefined,le=!1;for(let te in ae)this.optionsForRefining.indexOf(te)===-1&&(ae[te]===F[te]||y2[te]&&te in F&&y2[te](F[te],ae[te]))?ne[te]=ye[te]:G[te]?(ne[te]=G[te](ae[te]),le=!0):W[te]=F[te];return le&&(this.currentCalendarOptionsInput=ae,this.currentCalendarOptionsRefined=ne,this.stableOptionOverrides=i,this.stableDynamicOptionOverrides=u),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:L,availableLocaleData:E,localeDefaults:D,extra:W}}_computeCurrentViewData(i,u,g,C){let E=u.viewSpecs[i];if(!E)throw new Error(`viewType "${i}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:A,extra:D}=this.processRawViewOptions(E,u.pluginHooks,u.localeDefaults,g,C);qQ(D);let L=this.buildDateProfileGenerator({dateProfileGeneratorClass:E.optionDefaults.dateProfileGeneratorClass,duration:E.duration,durationUnit:E.durationUnit,usesMinMaxTime:E.optionDefaults.usesMinMaxTime,dateEnv:u.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:A.slotMinTime,slotMaxTime:A.slotMaxTime,showNonCurrentDates:A.showNonCurrentDates,dayCount:A.dayCount,dateAlignment:A.dateAlignment,dateIncrement:A.dateIncrement,hiddenDays:A.hiddenDays,weekends:A.weekends,nowInput:A.now,validRangeInput:A.validRange,visibleRangeInput:A.visibleRange,fixedWeekCount:A.fixedWeekCount}),G=this.buildViewApi(i,this.getCurrentData,u.dateEnv);return{viewSpec:E,options:A,dateProfileGenerator:L,viewApi:G}}processRawViewOptions(i,u,g,C,E){let A=z$([q6,i.optionDefaults,g,C,i.optionOverrides,E]),D=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xX),kX),TX),vre),u.listenerRefiners),u.optionRefiners),L={},G=this.currentViewOptionsInput,W=this.currentViewOptionsRefined,ae=!1,ne={};for(let F in A)A[F]===G[F]||y2[F]&&y2[F](A[F],G[F])?L[F]=W[F]:(A[F]===this.currentCalendarOptionsInput[F]||y2[F]&&y2[F](A[F],this.currentCalendarOptionsInput[F])?F in this.currentCalendarOptionsRefined&&(L[F]=this.currentCalendarOptionsRefined[F]):D[F]?L[F]=D[F](A[F]):ne[F]=A[F],ae=!0);return ae&&(this.currentViewOptionsInput=A,this.currentViewOptionsRefined=L),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:ne}}}function Ale(c,i,u,g,C,E,A,D){let L=PQ(i||A.defaultCode,A.map);return new Dre({calendarSystem:"gregory",timeZone:c,namedTimeZoneImpl:E.namedTimeZonedImpl,locale:L,weekNumberCalculation:u,firstDay:g,weekText:C,cmdFormatter:E.cmdFormatter,defaultSeparator:D})}function Dle(c,i){let u=i.themeClasses[c.themeSystem]||Kb;return new u(c)}function Nle(c){let i=c.dateProfileGeneratorClass||FX;return new i(c)}function Ole(c,i,u){return new mle(c,i,u)}function Rle(c){return R1(c,i=>i.ui)}function Ble(c,i,u){let g={"":i};for(let C in c){let E=c[C];E.sourceId&&u[E.sourceId]&&(g[C]=u[E.sourceId])}return g}function Mle(c){let{options:i}=c;return{eventUiSingleBase:X8({display:i.eventDisplay,editable:i.editable,startEditable:i.eventStartEditable,durationEditable:i.eventDurationEditable,constraint:i.eventConstraint,overlap:typeof i.eventOverlap=="boolean"?i.eventOverlap:void 0,allow:i.eventAllow,backgroundColor:i.eventBackgroundColor,borderColor:i.eventBorderColor,textColor:i.eventTextColor,color:i.eventColor},c),selectionConfig:X8({constraint:i.selectConstraint,overlap:typeof i.selectOverlap=="boolean"?i.selectOverlap:void 0,allow:i.selectAllow},c)}}function DF(c,i){for(let u of i.pluginHooks.isLoadingFuncs)if(u(c))return!0;return!1}function Ile(c){return dae(c.options.businessHours,c)}function qQ(c,i){for(let u in c)console.warn(`Unknown option '${u}'`+(i?` for view '${i}'`:""))}class Ple extends Ba{render(){let i=this.props.widgetGroups.map(u=>this.renderWidgetGroup(u));return Qe("div",{className:"fc-toolbar-chunk"},...i)}renderWidgetGroup(i){let{props:u}=this,{theme:g}=this.context,C=[],E=!0;for(let A of i){let{buttonName:D,buttonClick:L,buttonText:G,buttonIcon:W,buttonHint:ae}=A;if(D==="title")E=!1,C.push(Qe("h2",{className:"fc-toolbar-title",id:u.titleId},u.title));else{let ne=D===u.activeButton,F=!u.isTodayEnabled&&D==="today"||!u.isPrevEnabled&&D==="prev"||!u.isNextEnabled&&D==="next",ye=[`fc-${D}-button`,g.getClass("button")];ne&&ye.push(g.getClass("buttonActive")),C.push(Qe("button",{type:"button",title:typeof ae=="function"?ae(u.navUnit):ae,disabled:F,"aria-pressed":ne,className:ye.join(" "),onClick:L},G||(W?Qe("span",{className:W,role:"img"}):"")))}}if(C.length>1){let A=E&&g.getClass("buttonGroup")||"";return Qe("div",{className:A},...C)}return C[0]}}class YQ extends Ba{render(){let{model:i,extraClassName:u}=this.props,g=!1,C,E,A=i.sectionWidgets,D=A.center;return A.left?(g=!0,C=A.left):C=A.start,A.right?(g=!0,E=A.right):E=A.end,Qe("div",{className:[u||"","fc-toolbar",g?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",C||[]),this.renderSection("center",D||[]),this.renderSection("end",E||[]))}renderSection(i,u){let{props:g}=this;return Qe(Ple,{key:i,widgetGroups:u,title:g.title,navUnit:g.navUnit,activeButton:g.activeButton,isTodayEnabled:g.isTodayEnabled,isPrevEnabled:g.isPrevEnabled,isNextEnabled:g.isNextEnabled,titleId:g.titleId})}}class $le extends Ba{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=i=>{this.el=i,M1(this.props.elRef,i),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:i,state:u}=this,{aspectRatio:g}=i,C=["fc-view-harness",g||i.liquid||i.height?"fc-view-harness-active":"fc-view-harness-passive"],E="",A="";return g?u.availableWidth!==null?E=u.availableWidth/g:A=`${1/g*100}%`:E=i.height||"",Qe("div",{"aria-labelledby":i.labeledById,ref:this.handleEl,className:C.join(" "),style:{height:E,paddingBottom:A}},i.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class Fle extends sS{constructor(i){super(i),this.handleSegClick=(u,g)=>{let{component:C}=this,{context:E}=C,A=oS(g);if(A&&C.isValidSegDownEl(u.target)){let D=Zu(u.target,".fc-event-forced-url"),L=D?D.querySelector("a[href]").href:"";E.emitter.trigger("eventClick",{el:g,event:new gl(C.context,A.eventRange.def,A.eventRange.instance),jsEvent:u,view:E.viewApi}),L&&!u.defaultPrevented&&(window.location.href=L)}},this.destroy=uX(i.el,"click",".fc-event",this.handleSegClick)}}class Lle extends sS{constructor(i){super(i),this.handleEventElRemove=u=>{u===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(u,g)=>{oS(g)&&(this.currentSegEl=g,this.triggerEvent("eventMouseEnter",u,g))},this.handleSegLeave=(u,g)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",u,g))},this.removeHoverListeners=xse(i.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(i,u,g){let{component:C}=this,{context:E}=C,A=oS(g);(!u||C.isValidSegDownEl(u.target))&&E.emitter.trigger(i,{el:g,event:new gl(E,A.eventRange.def,A.eventRange.instance),jsEvent:u,view:E.viewApi})}}class Vle extends w2{constructor(){super(...arguments),this.buildViewContext=Es(Rre),this.buildViewPropTransformers=Es(zle),this.buildToolbarProps=Es(Hle),this.headerRef=Td(),this.footerRef=Td(),this.interactionsStore={},this.state={viewLabelId:P8()},this.registerInteractiveComponent=(i,u)=>{let g=Bae(i,u),A=[Fle,Lle].concat(this.props.pluginHooks.componentInteractions).map(D=>new D(g));this.interactionsStore[i.uid]=A,iF[i.uid]=g},this.unregisterInteractiveComponent=i=>{let u=this.interactionsStore[i.uid];if(u){for(let g of u)g.destroy();delete this.interactionsStore[i.uid]}delete iF[i.uid]},this.resizeRunner=new R$(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=i=>{let{options:u}=this.props;u.handleWindowResize&&i.target===window&&this.resizeRunner.request(u.windowResizeDelay)}}render(){let{props:i}=this,{toolbarConfig:u,options:g}=i,C=this.buildToolbarProps(i.viewSpec,i.dateProfile,i.dateProfileGenerator,i.currentDate,K6(i.options.now,i.dateEnv),i.viewTitle),E=!1,A="",D;i.isHeightAuto||i.forPrint?A="":g.height!=null?E=!0:g.contentHeight!=null?A=g.contentHeight:D=Math.max(g.aspectRatio,.5);let L=this.buildViewContext(i.viewSpec,i.viewApi,i.options,i.dateProfileGenerator,i.dateEnv,i.theme,i.pluginHooks,i.dispatch,i.getCurrentData,i.emitter,i.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),G=u.header&&u.header.hasTitle?this.state.viewLabelId:"";return Qe(B1.Provider,{value:L},u.header&&Qe(YQ,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:u.header,titleId:G},C)),Qe($le,{liquid:E,height:A,aspectRatio:D,labeledById:G},this.renderView(i),this.buildAppendContent()),u.footer&&Qe(YQ,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:u.footer,titleId:""},C)))}componentDidMount(){let{props:i}=this;this.calendarInteractions=i.pluginHooks.calendarInteractions.map(g=>new g(i)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:u}=i.pluginHooks;for(let g in u)u[g](i[g],i)}componentDidUpdate(i){let{props:u}=this,{propSetHandlers:g}=u.pluginHooks;for(let C in g)u[C]!==i[C]&&g[C](u[C],u)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let i of this.calendarInteractions)i.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:i}=this,u=i.pluginHooks.viewContainerAppends.map(g=>g(i));return Qe(tl,{},...u)}renderView(i){let{pluginHooks:u}=i,{viewSpec:g}=i,C={dateProfile:i.dateProfile,businessHours:i.businessHours,eventStore:i.renderableEventStore,eventUiBases:i.eventUiBases,dateSelection:i.dateSelection,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,isHeightAuto:i.isHeightAuto,forPrint:i.forPrint},E=this.buildViewPropTransformers(u.viewPropsTransformers);for(let D of E)Object.assign(C,D.transform(C,i));let A=g.component;return Qe(A,Object.assign({},C))}}function Hle(c,i,u,g,C,E){let A=u.build(C,void 0,!1),D=u.buildPrev(i,g,!1),L=u.buildNext(i,g,!1);return{title:E,activeButton:c.type,navUnit:c.singleUnit,isTodayEnabled:A.isValid&&!I1(i.currentRange,C),isPrevEnabled:D.isValid,isNextEnabled:L.isValid}}function zle(c){return c.map(i=>new i)}let Ule=class extends Mae{constructor(i,u={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=g=>{switch(g.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=g=>{this.currentData=g,this.renderRunner.request(g.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:g}=this;NX(()=>{j6(Qe(Rae,{options:g.calendarOptions,theme:g.theme,emitter:g.emitter},(C,E,A,D)=>(this.setClassNames(C),this.setHeight(E),Qe(BX.Provider,{value:this.customContentRenderId},Qe(Vle,Object.assign({isHeightAuto:A,forPrint:D},g))))),this.el)})}else this.isRendered&&(this.isRendered=!1,j6(null,this.el),this.setClassNames([]),this.setHeight(""))},pse(i),this.el=i,this.renderRunner=new R$(this.handleRenderRequest),new Tle({optionOverrides:u,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let i=this.isRendering;i?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),i&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){NX(()=>{super.updateSize()})}batchRendering(i){this.renderRunner.pause("batchRendering"),i(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(i,u){this.currentDataManager.resetOptions(i,u)}setClassNames(i){if(!jb(i,this.currentClassNames)){let{classList:u}=this.el;for(let g of this.currentClassNames)u.remove(g);for(let g of i)u.add(g);this.currentClassNames=i}}setHeight(i){iX(this.el,"height",i)}};const Wle={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},KQ=f.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(c){return{...c,customRenderingMetaMap:Gle(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const c=[];for(const i of this.customRenderingMap.values())c.push(f.h(jle,{key:i.id,customRendering:i}));return f.h("div",{attrs:{"data-fc-render-id":this.renderId}},f.h(f.Fragment,c))},mounted(){const c=new Iie;this.handleCustomRendering=c.handle.bind(c);const i=this.buildOptions(this.options),u=new Ule(this.$el,i);this.calendar=u,u.render(),c.subscribe(g=>{this.customRenderingMap=g,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:Zle()}),jle=f.defineComponent({props:{customRendering:Object},render(){const c=this.customRendering,i=typeof c.generatorMeta=="function"?c.generatorMeta(c.renderProps):c.generatorMeta;return f.h(f.Teleport,{to:c.containerEl},i)}});function f0e(c){return c}function Zle(){let c={options:{deep:!0,handler(i){let u=this.getApi();u.pauseRendering();let g=this.buildOptions(i);u.resetOptions(g),this.renderId++}}};for(let i in Wle)c[`options.${i}`]={deep:!0,handler(u){if(u!==void 0){let g=this.getApi();g.pauseRendering(),g.resetOptions({[i]:u},[i]),this.renderId++}}};return c}function Gle(c){const i={};for(const u in c)i[qle(u)]=c[u];return i}function qle(c){return c.split("-").map((i,u)=>u?Yle(i):i).join("")}function Yle(c){return c.charAt(0).toUpperCase()+c.slice(1)}class Kle extends mp{constructor(){super(...arguments),this.headerElRef=Td()}renderSimpleLayout(i,u){let{props:g,context:C}=this,E=[],A=s7(C.options);return i&&E.push({type:"header",key:"header",isSticky:A,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:i}}),E.push({type:"body",key:"body",liquid:!0,chunk:{content:u}}),Qe(Z8,{elClasses:["fc-daygrid"],viewSpec:C.viewSpec},Qe(wF,{liquid:!g.isHeightAuto&&!g.forPrint,collapsibleWidth:g.forPrint,cols:[],sections:E}))}renderHScrollLayout(i,u,g,C){let E=this.context.pluginHooks.scrollGridImpl;if(!E)throw new Error("No ScrollGrid implementation");let{props:A,context:D}=this,L=!A.forPrint&&s7(D.options),G=!A.forPrint&&kQ(D.options),W=[];return i&&W.push({type:"header",key:"header",isSticky:L,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:i}]}),W.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:u}]}),G&&W.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:CF}]}),Qe(Z8,{elClasses:["fc-daygrid"],viewSpec:D.viewSpec},Qe(E,{liquid:!A.isHeightAuto&&!A.forPrint,forPrint:A.forPrint,collapsibleWidth:A.forPrint,colGroups:[{cols:[{span:g,minWidth:C}]}],sections:W}))}}function r7(c,i){let u=[];for(let g=0;g<i;g+=1)u[g]=[];for(let g of c)u[g.row].push(g);return u}function a7(c,i){let u=[];for(let g=0;g<i;g+=1)u[g]=[];for(let g of c)u[g.firstCol].push(g);return u}function XQ(c,i){let u=[];if(c){for(let g=0;g<i;g+=1)u[g]={affectedInstances:c.affectedInstances,isEvent:c.isEvent,segs:[]};for(let g of c.segs)u[g.row].segs.push(g)}else for(let g=0;g<i;g+=1)u[g]=null;return u}const QQ=_l({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function JQ(c){let{display:i}=c.eventRange.ui;return i==="list-item"||i==="auto"&&!c.eventRange.def.allDay&&c.firstCol===c.lastCol&&c.isStart&&c.isEnd}class eJ extends Ba{render(){let{props:i}=this;return Qe(TQ,Object.assign({},i,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:QQ,defaultDisplayEventEnd:i.defaultDisplayEventEnd,disableResizing:!i.seg.eventRange.def.allDay}))}}class tJ extends Ba{render(){let{props:i,context:u}=this,{options:g}=u,{seg:C}=i,E=g.eventTimeFormat||QQ,A=oQ(C,E,u,!0,i.defaultDisplayEventEnd);return Qe(SF,Object.assign({},i,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:rQ(i.seg,u),defaultGenerator:Xle,timeText:A,isResizing:!1,isDateSelecting:!1}))}}function Xle(c){return Qe(tl,null,Qe("div",{className:"fc-daygrid-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}}),c.timeText&&Qe("div",{className:"fc-event-time"},c.timeText),Qe("div",{className:"fc-event-title"},c.event.title||Qe(tl,null," ")))}class Qle extends Ba{constructor(){super(...arguments),this.compileSegs=Es(Jle)}render(){let{props:i}=this,{allSegs:u,invisibleSegs:g}=this.compileSegs(i.singlePlacements);return Qe(OQ,{elClasses:["fc-daygrid-more-link"],dateProfile:i.dateProfile,todayRange:i.todayRange,allDayDate:i.allDayDate,moreCnt:i.moreCnt,allSegs:u,hiddenSegs:g,alignmentElRef:i.alignmentElRef,alignGridTop:i.alignGridTop,extraDateSpan:i.extraDateSpan,popoverContent:()=>{let C=(i.eventDrag?i.eventDrag.affectedInstances:null)||(i.eventResize?i.eventResize.affectedInstances:null)||{};return Qe(tl,null,u.map(E=>{let A=E.eventRange.instance.instanceId;return Qe("div",{className:"fc-daygrid-event-harness",key:A,style:{visibility:C[A]?"hidden":""}},JQ(E)?Qe(tJ,Object.assign({seg:E,isDragging:!1,isSelected:A===i.eventSelection,defaultDisplayEventEnd:!1},Yb(E,i.todayRange))):Qe(eJ,Object.assign({seg:E,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:A===i.eventSelection,defaultDisplayEventEnd:!1},Yb(E,i.todayRange))))}))}})}}function Jle(c){let i=[],u=[];for(let g of c)i.push(g.seg),g.isVisible||u.push(g.seg);return{allSegs:i,invisibleSegs:u}}const ece=_l({week:"narrow"});class tce extends mp{constructor(){super(...arguments),this.rootElRef=Td(),this.state={dayNumberId:P8()},this.handleRootEl=i=>{M1(this.rootElRef,i),M1(this.props.elRef,i)}}render(){let{context:i,props:u,state:g,rootElRef:C}=this,{options:E,dateEnv:A}=i,{date:D,dateProfile:L}=u;const G=u.showDayNumber&&oce(D,L.currentRange,A);return Qe(EF,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...u.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},u.extraDataAttrs),u.showDayNumber?{"aria-labelledby":g.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:nce,date:D,dateProfile:L,todayRange:u.todayRange,showDayNumber:u.showDayNumber,isMonthStart:G,extraRenderProps:u.extraRenderProps},(W,ae)=>Qe("div",{ref:u.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:u.minHeight}},u.showWeekNumber&&Qe(NQ,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:e7(i,D,"week"),date:D,defaultFormat:ece}),!ae.isDisabled&&(u.showDayNumber||xF(E)||u.forceDayTop)?Qe("div",{className:"fc-daygrid-day-top"},Qe(W,{elTag:"a",elClasses:["fc-daygrid-day-number",G&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},e7(i,D)),{id:g.dayNumberId})})):u.showDayNumber?Qe("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},Qe("a",{className:"fc-daygrid-day-number"}," ")):void 0,Qe("div",{className:"fc-daygrid-day-events",ref:u.fgContentElRef},u.fgContent,Qe("div",{className:"fc-daygrid-day-bottom",style:{marginTop:u.moreMarginTop}},Qe(Qle,{allDayDate:D,singlePlacements:u.singlePlacements,moreCnt:u.moreCnt,alignmentElRef:C,alignGridTop:!u.showDayNumber,extraDateSpan:u.extraDateSpan,dateProfile:u.dateProfile,eventSelection:u.eventSelection,eventDrag:u.eventDrag,eventResize:u.eventResize,todayRange:u.todayRange}))),Qe("div",{className:"fc-daygrid-day-bg"},u.bgContent)))}}function nce(c){return c.dayNumberText||Qe(tl,null," ")}function oce(c,i,u){const{start:g,end:C}=i,E=Zb(C,-1),A=u.getYear(g),D=u.getMonth(g),L=u.getYear(E),G=u.getMonth(E);return!(A===L&&D===G)&&(c.valueOf()===g.valueOf()||u.getDay(c)===1&&c.valueOf()<C.valueOf())}function nJ(c){return c.eventRange.instance.instanceId+":"+c.firstCol}function oJ(c){return nJ(c)+":"+c.lastCol}function sce(c,i,u,g,C,E,A){let D=new ice(Se=>{let ie=c[Se.index].eventRange.instance.instanceId+":"+Se.span.start+":"+(Se.span.end-1);return C[ie]});D.allowReslicing=!0,D.strictOrder=g,i===!0||u===!0?(D.maxCoord=E,D.hiddenConsumes=!0):typeof i=="number"?D.maxStackCnt=i:typeof u=="number"&&(D.maxStackCnt=u,D.hiddenConsumes=!0);let L=[],G=[];for(let Se=0;Se<c.length;Se+=1){let ie=c[Se],Z=oJ(ie);C[Z]!=null?L.push({index:Se,span:{start:ie.firstCol,end:ie.lastCol+1}}):G.push(ie)}let W=D.addSegs(L),ae=D.toRects(),{singleColPlacements:ne,multiColPlacements:F,leftoverMargins:ye}=rce(ae,c,A),le=[],te=[];for(let Se of G){F[Se.firstCol].push({seg:Se,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let ie=Se.firstCol;ie<=Se.lastCol;ie+=1)ne[ie].push({seg:aS(Se,ie,ie+1,A),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let Se=0;Se<A.length;Se+=1)le.push(0);for(let Se of W){let ie=c[Se.index],Z=Se.span;F[Z.start].push({seg:aS(ie,Z.start,Z.end,A),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let we=Z.start;we<Z.end;we+=1)le[we]+=1,ne[we].push({seg:aS(ie,we,we+1,A),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let Se=0;Se<A.length;Se+=1)te.push(ye[Se]);return{singleColPlacements:ne,multiColPlacements:F,moreCnts:le,moreMarginTops:te}}function rce(c,i,u){let g=ace(c,u.length),C=[],E=[],A=[];for(let D=0;D<u.length;D+=1){let L=g[D],G=[],W=0,ae=0;for(let F of L){let ye=i[F.index];G.push({seg:aS(ye,D,D+1,u),isVisible:!0,isAbsolute:!1,absoluteTop:F.levelCoord,marginTop:F.levelCoord-W}),W=F.levelCoord+F.thickness}let ne=[];W=0,ae=0;for(let F of L){let ye=i[F.index],le=F.span.end-F.span.start>1,te=F.span.start===D;ae+=F.levelCoord-W,W=F.levelCoord+F.thickness,le?(ae+=F.thickness,te&&ne.push({seg:aS(ye,F.span.start,F.span.end,u),isVisible:!0,isAbsolute:!0,absoluteTop:F.levelCoord,marginTop:0})):te&&(ne.push({seg:aS(ye,F.span.start,F.span.end,u),isVisible:!0,isAbsolute:!1,absoluteTop:F.levelCoord,marginTop:ae}),ae=0)}C.push(G),E.push(ne),A.push(ae)}return{singleColPlacements:C,multiColPlacements:E,leftoverMargins:A}}function ace(c,i){let u=[];for(let g=0;g<i;g+=1)u.push([]);for(let g of c)for(let C=g.span.start;C<g.span.end;C+=1)u[C].push(g);return u}function aS(c,i,u,g){if(c.firstCol===i&&c.lastCol===u-1)return c;let C=c.eventRange,E=C.range,A=S2(E,{start:g[i].date,end:Gu(g[u-1].date,1)});return Object.assign(Object.assign({},c),{firstCol:i,lastCol:u-1,eventRange:{def:C.def,ui:Object.assign(Object.assign({},C.ui),{durationEditable:!1}),instance:C.instance,range:A},isStart:c.isStart&&A.start.valueOf()===E.start.valueOf(),isEnd:c.isEnd&&A.end.valueOf()===E.end.valueOf()})}class ice extends hQ{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(i){const u=super.addSegs(i),{entriesByLevel:g}=this,C=E=>!this.forceHidden[x2(E)];for(let E=0;E<g.length;E+=1)g[E]=g[E].filter(C);return u}handleInvalidInsertion(i,u,g){const{entriesByLevel:C,forceHidden:E}=this,{touchingEntry:A,touchingLevel:D,touchingLateral:L}=i;if(this.hiddenConsumes&&A){const G=x2(A);if(!E[G])if(this.allowReslicing){const W=Object.assign(Object.assign({},A),{span:gF(A.span,u.span)}),ae=x2(W);E[ae]=!0,C[D][L]=W,this.splitEntry(A,u,g)}else E[G]=!0,g.push(A)}return super.handleInvalidInsertion(i,u,g)}}class sJ extends mp{constructor(){super(...arguments),this.cellElRefs=new P1,this.frameElRefs=new P1,this.fgElRefs=new P1,this.segHarnessRefs=new P1,this.rootElRef=Td(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=i=>{i&&this.updateSizing(!0)}}render(){let{props:i,state:u,context:g}=this,{options:C}=g,E=i.cells.length,A=a7(i.businessHourSegs,E),D=a7(i.bgEventSegs,E),L=a7(this.getHighlightSegs(),E),G=a7(this.getMirrorSegs(),E),{singleColPlacements:W,multiColPlacements:ae,moreCnts:ne,moreMarginTops:F}=sce(nQ(i.fgEventSegs,C.eventOrder),i.dayMaxEvents,i.dayMaxEventRows,C.eventOrderStrict,u.segHeights,u.maxContentHeight,i.cells),ye=i.eventDrag&&i.eventDrag.affectedInstances||i.eventResize&&i.eventResize.affectedInstances||{};return Qe("tr",{ref:this.rootElRef,role:"row"},i.renderIntro&&i.renderIntro(),i.cells.map((le,te)=>{let Se=this.renderFgSegs(te,i.forPrint?W[te]:ae[te],i.todayRange,ye),ie=this.renderFgSegs(te,lce(G[te],ae),i.todayRange,{},!!i.eventDrag,!!i.eventResize,!1);return Qe(tce,{key:le.key,elRef:this.cellElRefs.createRef(le.key),innerElRef:this.frameElRefs.createRef(le.key),dateProfile:i.dateProfile,date:le.date,showDayNumber:i.showDayNumbers,showWeekNumber:i.showWeekNumbers&&te===0,forceDayTop:i.showWeekNumbers,todayRange:i.todayRange,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,extraRenderProps:le.extraRenderProps,extraDataAttrs:le.extraDataAttrs,extraClassNames:le.extraClassNames,extraDateSpan:le.extraDateSpan,moreCnt:ne[te],moreMarginTop:F[te],singlePlacements:W[te],fgContentElRef:this.fgElRefs.createRef(le.key),fgContent:Qe(tl,null,Qe(tl,null,Se),Qe(tl,null,ie)),bgContent:Qe(tl,null,this.renderFillSegs(L[te],"highlight"),this.renderFillSegs(A[te],"non-business"),this.renderFillSegs(D[te],"bg-event")),minHeight:i.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(i,u){let g=this.props;this.updateSizing(!fp(i,g))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:i}=this;return i.eventDrag&&i.eventDrag.segs.length?i.eventDrag.segs:i.eventResize&&i.eventResize.segs.length?i.eventResize.segs:i.dateSelectionSegs}getMirrorSegs(){let{props:i}=this;return i.eventResize&&i.eventResize.segs.length?i.eventResize.segs:[]}renderFgSegs(i,u,g,C,E,A,D){let{context:L}=this,{eventSelection:G}=this.props,{framePositions:W}=this.state,ae=this.props.cells.length===1,ne=E||A||D,F=[];if(W)for(let ye of u){let{seg:le}=ye,{instanceId:te}=le.eventRange.instance,Se=ye.isVisible&&!C[te],ie=ye.isAbsolute,Z="",we="";ie&&(L.isRtl?(we=0,Z=W.lefts[le.lastCol]-W.lefts[le.firstCol]):(Z=0,we=W.rights[le.firstCol]-W.rights[le.lastCol])),F.push(Qe("div",{className:"fc-daygrid-event-harness"+(ie?" fc-daygrid-event-harness-abs":""),key:nJ(le),ref:ne?null:this.segHarnessRefs.createRef(oJ(le)),style:{visibility:Se?"":"hidden",marginTop:ie?"":ye.marginTop,top:ie?ye.absoluteTop:"",left:Z,right:we}},JQ(le)?Qe(tJ,Object.assign({seg:le,isDragging:E,isSelected:te===G,defaultDisplayEventEnd:ae},Yb(le,g))):Qe(eJ,Object.assign({seg:le,isDragging:E,isResizing:A,isDateSelecting:D,isSelected:te===G,defaultDisplayEventEnd:ae},Yb(le,g)))))}return F}renderFillSegs(i,u){let{isRtl:g}=this.context,{todayRange:C}=this.props,{framePositions:E}=this.state,A=[];if(E)for(let D of i){let L=g?{right:0,left:E.lefts[D.lastCol]-E.lefts[D.firstCol]}:{left:0,right:E.rights[D.firstCol]-E.rights[D.lastCol]};A.push(Qe("div",{key:sQ(D.eventRange),className:"fc-daygrid-bg-harness",style:L},u==="bg-event"?Qe(AQ,Object.assign({seg:D},Yb(D,C))):DQ(u)))}return Qe(tl,{},...A)}updateSizing(i){let{props:u,state:g,frameElRefs:C}=this;if(!u.forPrint&&u.clientWidth!==null){if(i){let L=u.cells.map(G=>C.currentMap[G.key]);if(L.length){let G=this.rootElRef.current,W=new rS(G,L,!0,!1);(!g.framePositions||!g.framePositions.similarTo(W))&&this.setState({framePositions:new rS(G,L,!0,!1)})}}const E=this.state.segHeights,A=this.querySegHeights(),D=u.dayMaxEvents===!0||u.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},E),A),maxContentHeight:D?this.computeMaxContentHeight():null})}}querySegHeights(){let i=this.segHarnessRefs.currentMap,u={};for(let g in i){let C=Math.round(i[g].getBoundingClientRect().height);u[g]=Math.max(u[g]||0,C)}return u}computeMaxContentHeight(){let i=this.props.cells[0].key,u=this.cellElRefs.currentMap[i],g=this.fgElRefs.currentMap[i];return u.getBoundingClientRect().bottom-g.getBoundingClientRect().top}getCellEls(){let i=this.cellElRefs.currentMap;return this.props.cells.map(u=>i[u.key])}}sJ.addStateEquality({segHeights:fp});function lce(c,i){if(!c.length)return[];let u=cce(i);return c.map(g=>({seg:g,isVisible:!0,isAbsolute:!0,absoluteTop:u[g.eventRange.instance.instanceId],marginTop:0}))}function cce(c){let i={};for(let u of c)for(let g of u)i[g.seg.eventRange.instance.instanceId]=g.absoluteTop;return i}class uce extends mp{constructor(){super(...arguments),this.splitBusinessHourSegs=Es(r7),this.splitBgEventSegs=Es(r7),this.splitFgEventSegs=Es(r7),this.splitDateSelectionSegs=Es(r7),this.splitEventDrag=Es(XQ),this.splitEventResize=Es(XQ),this.rowRefs=new P1}render(){let{props:i,context:u}=this,g=i.cells.length,C=this.splitBusinessHourSegs(i.businessHourSegs,g),E=this.splitBgEventSegs(i.bgEventSegs,g),A=this.splitFgEventSegs(i.fgEventSegs,g),D=this.splitDateSelectionSegs(i.dateSelectionSegs,g),L=this.splitEventDrag(i.eventDrag,g),G=this.splitEventResize(i.eventResize,g),W=g>=7&&i.clientWidth?i.clientWidth/u.options.aspectRatio/6:null;return Qe(Q6,{unit:"day"},(ae,ne)=>Qe(tl,null,i.cells.map((F,ye)=>Qe(sJ,{ref:this.rowRefs.createRef(ye),key:F.length?F[0].date.toISOString():ye,showDayNumbers:g>1,showWeekNumbers:i.showWeekNumbers,todayRange:ne,dateProfile:i.dateProfile,cells:F,renderIntro:i.renderRowIntro,businessHourSegs:C[ye],eventSelection:i.eventSelection,bgEventSegs:E[ye].filter(dce),fgEventSegs:A[ye],dateSelectionSegs:D[ye],eventDrag:L[ye],eventResize:G[ye],dayMaxEvents:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,clientWidth:i.clientWidth,clientHeight:i.clientHeight,cellMinHeight:W,forPrint:i.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const i=this.rowRefs.currentMap[0].getCellEls()[0],u=i?i.closest(".fc-daygrid-body"):null;u&&(this.rootEl=u,this.context.registerInteractiveComponent(this,{el:u,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new rS(this.rootEl,this.rowRefs.collect().map(i=>i.getCellEls()[0]),!1,!0),this.colPositions=new rS(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(i,u){let{colPositions:g,rowPositions:C}=this,E=g.leftToIndex(i),A=C.topToIndex(u);if(A!=null&&E!=null){let D=this.props.cells[A][E];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(A,E),allDay:!0},D.extraDateSpan),dayEl:this.getCellEl(A,E),rect:{left:g.lefts[E],right:g.rights[E],top:C.tops[A],bottom:C.bottoms[A]},layer:0}}return null}getCellEl(i,u){return this.rowRefs.currentMap[i].getCellEls()[u]}getCellRange(i,u){let g=this.props.cells[i][u].date,C=Gu(g,1);return{start:g,end:C}}}function dce(c){return c.eventRange.def.allDay}class fce extends mp{constructor(){super(...arguments),this.elRef=Td(),this.needsScrollReset=!1}render(){let{props:i}=this,{dayMaxEventRows:u,dayMaxEvents:g,expandRows:C}=i,E=g===!0||u===!0;E&&!C&&(E=!1,u=null,g=null);let A=["fc-daygrid-body",E?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",C?"":"fc-daygrid-body-natural"];return Qe("div",{ref:this.elRef,className:A.join(" "),style:{width:i.clientWidth,minWidth:i.tableMinWidth}},Qe("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:i.clientWidth,minWidth:i.tableMinWidth,height:C?i.clientHeight:""}},i.colGroupNode,Qe("tbody",{role:"presentation"},Qe(uce,{dateProfile:i.dateProfile,cells:i.cells,renderRowIntro:i.renderRowIntro,showWeekNumbers:i.showWeekNumbers,clientWidth:i.clientWidth,clientHeight:i.clientHeight,businessHourSegs:i.businessHourSegs,bgEventSegs:i.bgEventSegs,fgEventSegs:i.fgEventSegs,dateSelectionSegs:i.dateSelectionSegs,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,dayMaxEvents:g,dayMaxEventRows:u,forPrint:i.forPrint,isHitComboAllowed:i.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(i){i.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const i=mce(this.elRef.current,this.props.dateProfile);if(i){const u=i.closest(".fc-daygrid-body"),g=u.closest(".fc-scroller"),C=i.getBoundingClientRect().top-u.getBoundingClientRect().top;g.scrollTop=C?C+1:0}this.needsScrollReset=!1}}}function mce(c,i){let u;return i.currentRangeUnit.match(/year|month/)&&(u=c.querySelector(`[data-date="${nre(i.currentDate)}-01"]`)),u||(u=c.querySelector(`[data-date="${V$(i.currentDate)}"]`)),u}class hce extends wQ{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(i,u){return u.sliceRange(i)}}class rJ extends mp{constructor(){super(...arguments),this.slicer=new hce,this.tableRef=Td()}render(){let{props:i,context:u}=this;return Qe(fce,Object.assign({ref:this.tableRef},this.slicer.sliceProps(i,i.dateProfile,i.nextDayThreshold,u,i.dayTableModel),{dateProfile:i.dateProfile,cells:i.dayTableModel.cells,colGroupNode:i.colGroupNode,tableMinWidth:i.tableMinWidth,renderRowIntro:i.renderRowIntro,dayMaxEvents:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,showWeekNumbers:i.showWeekNumbers,expandRows:i.expandRows,headerAlignElRef:i.headerAlignElRef,clientWidth:i.clientWidth,clientHeight:i.clientHeight,forPrint:i.forPrint}))}}class gce extends Kle{constructor(){super(...arguments),this.buildDayTableModel=Es(pce),this.headerRef=Td(),this.tableRef=Td()}render(){let{options:i,dateProfileGenerator:u}=this.context,{props:g}=this,C=this.buildDayTableModel(g.dateProfile,u),E=i.dayHeaders&&Qe(yQ,{ref:this.headerRef,dateProfile:g.dateProfile,dates:C.headerDates,datesRepDistinctDays:C.rowCnt===1}),A=D=>Qe(rJ,{ref:this.tableRef,dateProfile:g.dateProfile,dayTableModel:C,businessHours:g.businessHours,dateSelection:g.dateSelection,eventStore:g.eventStore,eventUiBases:g.eventUiBases,eventSelection:g.eventSelection,eventDrag:g.eventDrag,eventResize:g.eventResize,nextDayThreshold:i.nextDayThreshold,colGroupNode:D.tableColGroupNode,tableMinWidth:D.tableMinWidth,dayMaxEvents:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,showWeekNumbers:i.weekNumbers,expandRows:!g.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:D.clientWidth,clientHeight:D.clientHeight,forPrint:g.forPrint});return i.dayMinWidth?this.renderHScrollLayout(E,A,C.colCnt,i.dayMinWidth):this.renderSimpleLayout(E,A)}}function pce(c,i){let u=new vQ(c.renderRange,i);return new CQ(u,/year|month|week/.test(c.currentRangeUnit))}class bce extends FX{buildRenderRange(i,u,g){let C=super.buildRenderRange(i,u,g),{props:E}=this;return yce({currentRange:C,snapToWeek:/^(year|month)$/.test(u),fixedWeekCount:E.fixedWeekCount,dateEnv:E.dateEnv})}}function yce(c){let{dateEnv:i,currentRange:u}=c,{start:g,end:C}=u,E;if(c.snapToWeek&&(g=i.startOfWeek(g),E=i.startOfWeek(C),E.valueOf()!==C.valueOf()&&(C=bX(E,1))),c.fixedWeekCount){let A=i.startOfWeek(i.startOfMonth(Gu(u.end,-1))),D=Math.ceil(jse(A,C));C=bX(C,6-D)}return{start:g,end:C}}var vce=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';N$(vce);var aJ=$1({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:gce,dateProfileGeneratorClass:bce},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}}),Cce='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';N$(Cce);class wce extends Lae{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(i){return i.allDay?["allDay"]:["timed"]}getKeysForEventDef(i){return i.allDay?pae(i)?["timed","allDay"]:["allDay"]:["timed"]}}const Sce=_l({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function iJ(c){let i=["fc-timegrid-slot","fc-timegrid-slot-label",c.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Qe(B1.Consumer,null,u=>{if(!c.isLabeled)return Qe("td",{className:i.join(" "),"data-time":c.isoTimeStr});let{dateEnv:g,options:C,viewApi:E}=u,A=C.slotLabelFormat==null?Sce:Array.isArray(C.slotLabelFormat)?_l(C.slotLabelFormat[0]):_l(C.slotLabelFormat),D={level:0,time:c.time,date:g.toDate(c.date),view:E,text:g.format(c.date,A)};return Qe(gm,{elTag:"td",elClasses:i,elAttrs:{"data-time":c.isoTimeStr},renderProps:D,generatorName:"slotLabelContent",customGenerator:C.slotLabelContent,defaultGenerator:_ce,classNameGenerator:C.slotLabelClassNames,didMount:C.slotLabelDidMount,willUnmount:C.slotLabelWillUnmount},L=>Qe("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Qe(L,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function _ce(c){return c.text}class Ece extends Ba{render(){return this.props.slatMetas.map(i=>Qe("tr",{key:i.key},Qe(iJ,Object.assign({},i))))}}const xce=_l({week:"short"}),kce=5;class Tce extends mp{constructor(){super(...arguments),this.allDaySplitter=new wce,this.headerElRef=Td(),this.rootElRef=Td(),this.scrollerElRef=Td(),this.state={slatCoords:null},this.handleScrollTopRequest=i=>{let u=this.scrollerElRef.current;u&&(u.scrollTop=i)},this.renderHeadAxis=(i,u="")=>{let{options:g}=this.context,{dateProfile:C}=this.props,E=C.renderRange,D=b2(E.start,E.end)===1?e7(this.context,E.start,"week"):{};return g.weekNumbers&&i==="day"?Qe(NQ,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:E.start,defaultFormat:xce},L=>Qe("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:u}},Qe(L,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:D}))):Qe("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},Qe("div",{className:"fc-timegrid-axis-frame",style:{height:u}}))},this.renderTableRowAxis=i=>{let{options:u,viewApi:g}=this.context,C={text:u.allDayText,view:g};return Qe(gm,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:C,generatorName:"allDayContent",customGenerator:u.allDayContent,defaultGenerator:Ace,classNameGenerator:u.allDayClassNames,didMount:u.allDayDidMount,willUnmount:u.allDayWillUnmount},E=>Qe("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",i==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:i}},Qe(E,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=i=>{this.setState({slatCoords:i})}}renderSimpleLayout(i,u,g){let{context:C,props:E}=this,A=[],D=s7(C.options);return i&&A.push({type:"header",key:"header",isSticky:D,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:i}}),u&&(A.push({type:"body",key:"all-day",chunk:{content:u}}),A.push({type:"body",key:"all-day-divider",outerContent:Qe("tr",{role:"presentation",className:"fc-scrollgrid-section"},Qe("td",{className:"fc-timegrid-divider "+C.theme.getClass("tableCellShaded")}))})),A.push({type:"body",key:"body",liquid:!0,expandRows:!!C.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:g}}),Qe(Z8,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:C.viewSpec},Qe(wF,{liquid:!E.isHeightAuto&&!E.forPrint,collapsibleWidth:E.forPrint,cols:[{width:"shrink"}],sections:A}))}renderHScrollLayout(i,u,g,C,E,A,D){let L=this.context.pluginHooks.scrollGridImpl;if(!L)throw new Error("No ScrollGrid implementation");let{context:G,props:W}=this,ae=!W.forPrint&&s7(G.options),ne=!W.forPrint&&kQ(G.options),F=[];i&&F.push({type:"header",key:"header",isSticky:ae,syncRowHeights:!0,chunks:[{key:"axis",rowContent:le=>Qe("tr",{role:"presentation"},this.renderHeadAxis("day",le.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:i}]}),u&&(F.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:le=>Qe("tr",{role:"presentation"},this.renderTableRowAxis(le.rowSyncHeights[0]))},{key:"cols",content:u}]}),F.push({key:"all-day-divider",type:"body",outerContent:Qe("tr",{role:"presentation",className:"fc-scrollgrid-section"},Qe("td",{colSpan:2,className:"fc-timegrid-divider "+G.theme.getClass("tableCellShaded")}))}));let ye=G.options.nowIndicator;return F.push({type:"body",key:"body",liquid:!0,expandRows:!!G.options.expandRows,chunks:[{key:"axis",content:le=>Qe("div",{className:"fc-timegrid-axis-chunk"},Qe("table",{"aria-hidden":!0,style:{height:le.expandRows?le.clientHeight:""}},le.tableColGroupNode,Qe("tbody",null,Qe(Ece,{slatMetas:A}))),Qe("div",{className:"fc-timegrid-now-indicator-container"},Qe(Q6,{unit:ye?"minute":"day"},te=>{let Se=ye&&D&&D.safeComputeTop(te);return typeof Se=="number"?Qe(_F,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:Se},isAxis:!0,date:te}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:g}]}),ne&&F.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:CF},{key:"cols",content:CF}]}),Qe(Z8,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:G.viewSpec},Qe(L,{liquid:!W.isHeightAuto&&!W.forPrint,forPrint:W.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:C,minWidth:E}]}],sections:F}))}getAllDayMaxEventProps(){let{dayMaxEvents:i,dayMaxEventRows:u}=this.context.options;return(i===!0||u===!0)&&(i=void 0,u=kce),{dayMaxEvents:i,dayMaxEventRows:u}}}function Ace(c){return c.text}class Dce{constructor(i,u,g){this.positions=i,this.dateProfile=u,this.slotDuration=g}safeComputeTop(i){let{dateProfile:u}=this;if(I1(u.currentRange,i)){let g=Ii(i),C=i.valueOf()-g.valueOf();if(C>=tg(u.slotMinTime)&&C<tg(u.slotMaxTime))return this.computeTimeTop(Zr(C))}return null}computeDateTop(i,u){return u||(u=Ii(i)),this.computeTimeTop(Zr(i.valueOf()-u.valueOf()))}computeTimeTop(i){let{positions:u,dateProfile:g}=this,C=u.els.length,E=(i.milliseconds-tg(g.slotMinTime))/tg(this.slotDuration),A,D;return E=Math.max(0,E),E=Math.min(C,E),A=Math.floor(E),A=Math.min(A,C-1),D=E-A,u.tops[A]+u.getHeight(A)*D}}class Nce extends Ba{render(){let{props:i,context:u}=this,{options:g}=u,{slatElRefs:C}=i;return Qe("tbody",null,i.slatMetas.map((E,A)=>{let D={time:E.time,date:u.dateEnv.toDate(E.date),view:u.viewApi};return Qe("tr",{key:E.key,ref:C.createRef(E.key)},i.axis&&Qe(iJ,Object.assign({},E)),Qe(gm,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!E.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":E.isoTimeStr},renderProps:D,generatorName:"slotLaneContent",customGenerator:g.slotLaneContent,classNameGenerator:g.slotLaneClassNames,didMount:g.slotLaneDidMount,willUnmount:g.slotLaneWillUnmount}))}))}}class Oce extends Ba{constructor(){super(...arguments),this.rootElRef=Td(),this.slatElRefs=new P1}render(){let{props:i,context:u}=this;return Qe("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},Qe("table",{"aria-hidden":!0,className:u.theme.getClass("table"),style:{minWidth:i.tableMinWidth,width:i.clientWidth,height:i.minHeight}},i.tableColGroupNode,Qe(Nce,{slatElRefs:this.slatElRefs,axis:i.axis,slatMetas:i.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:i,props:u}=this;u.onCoords&&u.clientWidth!==null&&this.rootElRef.current.offsetHeight&&u.onCoords(new Dce(new rS(this.rootElRef.current,Rce(this.slatElRefs.currentMap,u.slatMetas),!1,!0),this.props.dateProfile,i.options.slotDuration))}}function Rce(c,i){return i.map(u=>c[u.key])}function J6(c,i){let u=[],g;for(g=0;g<i;g+=1)u.push([]);if(c)for(g=0;g<c.length;g+=1)u[c[g].col].push(c[g]);return u}function lJ(c,i){let u=[];if(c){for(let g=0;g<i;g+=1)u[g]={affectedInstances:c.affectedInstances,isEvent:c.isEvent,segs:[]};for(let g of c.segs)u[g.col].segs.push(g)}else for(let g=0;g<i;g+=1)u[g]=null;return u}class Bce extends Ba{render(){let{props:i}=this;return Qe(OQ,{elClasses:["fc-timegrid-more-link"],elStyle:{top:i.top,bottom:i.bottom},allDayDate:null,moreCnt:i.hiddenSegs.length,allSegs:i.hiddenSegs,hiddenSegs:i.hiddenSegs,extraDateSpan:i.extraDateSpan,dateProfile:i.dateProfile,todayRange:i.todayRange,popoverContent:()=>fJ(i.hiddenSegs,i),defaultGenerator:Mce,forceTimed:!0},u=>Qe(u,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Mce(c){return c.shortText}function Ice(c,i,u){let g=new hQ;i!=null&&(g.strictOrder=i),u!=null&&(g.maxStackCnt=u);let C=g.addSegs(c),E=Qae(C),A=Pce(g);return A=Vce(A,1),{segRects:Hce(A),hiddenGroups:E}}function Pce(c){const{entriesByLevel:i}=c,u=NF((g,C)=>g+":"+C,(g,C)=>{let E=Lce(c,g,C),A=cJ(E,u),D=i[g][C];return[Object.assign(Object.assign({},D),{nextLevelNodes:A[0]}),D.thickness+A[1]]});return cJ(i.length?{level:0,lateralStart:0,lateralEnd:i[0].length}:null,u)[0]}function cJ(c,i){if(!c)return[[],0];let{level:u,lateralStart:g,lateralEnd:C}=c,E=g,A=[];for(;E<C;)A.push(i(u,E)),E+=1;return A.sort($ce),[A.map(Fce),A[0][1]]}function $ce(c,i){return i[1]-c[1]}function Fce(c){return c[0]}function Lce(c,i,u){let{levelCoords:g,entriesByLevel:C}=c,E=C[i][u],A=g[i]+E.thickness,D=g.length,L=i;for(;L<D&&g[L]<A;L+=1);for(;L<D;L+=1){let G=C[L],W,ae=bF(G,E.span.start,hF),ne=ae[0]+ae[1],F=ne;for(;(W=G[F])&&W.span.start<E.span.end;)F+=1;if(ne<F)return{level:L,lateralStart:ne,lateralEnd:F}}return null}function Vce(c,i){const u=NF((g,C,E)=>x2(g),(g,C,E)=>{let{nextLevelNodes:A,thickness:D}=g,L=D+E,G=D/L,W,ae=[];if(!A.length)W=i;else for(let F of A)if(W===void 0){let ye=u(F,C,L);W=ye[0],ae.push(ye[1])}else{let ye=u(F,W,0);ae.push(ye[1])}let ne=(W-C)*G;return[W-ne,Object.assign(Object.assign({},g),{thickness:ne,nextLevelNodes:ae})]});return c.map(g=>u(g,0,0)[1])}function Hce(c){let i=[];const u=NF((C,E,A)=>x2(C),(C,E,A)=>{let D=Object.assign(Object.assign({},C),{levelCoord:E,stackDepth:A,stackForward:0});return i.push(D),D.stackForward=g(C.nextLevelNodes,E+C.thickness,A+1)+1});function g(C,E,A){let D=0;for(let L of C)D=Math.max(u(L,E,A),D);return D}return g(c,0,0),i}function NF(c,i){const u={};return(...g)=>{let C=c(...g);return C in u?u[C]:u[C]=i(...g)}}function uJ(c,i,u=null,g=0){let C=[];if(u)for(let E=0;E<c.length;E+=1){let A=c[E],D=u.computeDateTop(A.start,i),L=Math.max(D+(g||0),u.computeDateTop(A.end,i));C.push({start:Math.round(D),end:Math.round(L)})}return C}function zce(c,i,u,g){let C=[],E=[];for(let G=0;G<c.length;G+=1){let W=i[G];W?C.push({index:G,thickness:1,span:W}):E.push(c[G])}let{segRects:A,hiddenGroups:D}=Ice(C,u,g),L=[];for(let G of A)L.push({seg:c[G.index],rect:G});for(let G of E)L.push({seg:G,rect:null});return{segPlacements:L,hiddenGroups:D}}const Uce=_l({hour:"numeric",minute:"2-digit",meridiem:!1});class dJ extends Ba{render(){return Qe(TQ,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Uce}))}}class Wce extends Ba{constructor(){super(...arguments),this.sortEventSegs=Es(nQ)}render(){let{props:i,context:u}=this,{options:g}=u,C=g.selectMirror,E=i.eventDrag&&i.eventDrag.segs||i.eventResize&&i.eventResize.segs||C&&i.dateSelectionSegs||[],A=i.eventDrag&&i.eventDrag.affectedInstances||i.eventResize&&i.eventResize.affectedInstances||{},D=this.sortEventSegs(i.fgEventSegs,g.eventOrder);return Qe(EF,{elTag:"td",elRef:i.elRef,elClasses:["fc-timegrid-col",...i.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},i.extraDataAttrs),date:i.date,dateProfile:i.dateProfile,todayRange:i.todayRange,extraRenderProps:i.extraRenderProps},L=>Qe("div",{className:"fc-timegrid-col-frame"},Qe("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(i.businessHourSegs,"non-business"),this.renderFillSegs(i.bgEventSegs,"bg-event"),this.renderFillSegs(i.dateSelectionSegs,"highlight")),Qe("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(D,A,!1,!1,!1)),Qe("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(E,{},!!i.eventDrag,!!i.eventResize,!!C,"mirror")),Qe("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(i.nowIndicatorSegs)),xF(g)&&Qe(L,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(i,u,g,C,E,A){let{props:D}=this;return D.forPrint?fJ(i,D):this.renderPositionedFgSegs(i,u,g,C,E,A)}renderPositionedFgSegs(i,u,g,C,E,A){let{eventMaxStack:D,eventShortHeight:L,eventOrderStrict:G,eventMinHeight:W}=this.context.options,{date:ae,slatCoords:ne,eventSelection:F,todayRange:ye,nowDate:le}=this.props,te=g||C||E,Se=uJ(i,ae,ne,W),{segPlacements:ie,hiddenGroups:Z}=zce(i,Se,G,D);return Qe(tl,null,this.renderHiddenGroups(Z,i),ie.map(we=>{let{seg:Bt,rect:We}=we,Q=Bt.eventRange.instance.instanceId,Be=te||!!(!u[Q]&&We),Ae=OF(We&&We.span),Ke=!te&&We?this.computeSegHStyle(We):{left:0,right:0},$e=!!We&&We.stackForward>0,be=!!We&&We.span.end-We.span.start<L;return Qe("div",{className:"fc-timegrid-event-harness"+($e?" fc-timegrid-event-harness-inset":""),key:A||Q,style:Object.assign(Object.assign({visibility:Be?"":"hidden"},Ae),Ke)},Qe(dJ,Object.assign({seg:Bt,isDragging:g,isResizing:C,isDateSelecting:E,isSelected:Q===F,isShort:be},Yb(Bt,ye,le))))}))}renderHiddenGroups(i,u){let{extraDateSpan:g,dateProfile:C,todayRange:E,nowDate:A,eventSelection:D,eventDrag:L,eventResize:G}=this.props;return Qe(tl,null,i.map(W=>{let ae=OF(W.span),ne=jce(W.entries,u);return Qe(Bce,{key:wX(BQ(ne)),hiddenSegs:ne,top:ae.top,bottom:ae.bottom,extraDateSpan:g,dateProfile:C,todayRange:E,nowDate:A,eventSelection:D,eventDrag:L,eventResize:G})}))}renderFillSegs(i,u){let{props:g,context:C}=this,A=uJ(i,g.date,g.slatCoords,C.options.eventMinHeight).map((D,L)=>{let G=i[L];return Qe("div",{key:sQ(G.eventRange),className:"fc-timegrid-bg-harness",style:OF(D)},u==="bg-event"?Qe(AQ,Object.assign({seg:G},Yb(G,g.todayRange,g.nowDate))):DQ(u))});return Qe(tl,null,A)}renderNowIndicator(i){let{slatCoords:u,date:g}=this.props;return u?i.map((C,E)=>Qe(_F,{key:E,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:u.computeDateTop(C.start,g)},isAxis:!1,date:g})):null}computeSegHStyle(i){let{isRtl:u,options:g}=this.context,C=g.slotEventOverlap,E=i.levelCoord,A=i.levelCoord+i.thickness,D,L;C&&(A=Math.min(1,E+(A-E)*2)),u?(D=1-A,L=E):(D=E,L=1-A);let G={zIndex:i.stackDepth+1,left:D*100+"%",right:L*100+"%"};return C&&!i.stackForward&&(G[u?"marginLeft":"marginRight"]=10*2),G}}function fJ(c,{todayRange:i,nowDate:u,eventSelection:g,eventDrag:C,eventResize:E}){let A=(C?C.affectedInstances:null)||(E?E.affectedInstances:null)||{};return Qe(tl,null,c.map(D=>{let L=D.eventRange.instance.instanceId;return Qe("div",{key:L,style:{visibility:A[L]?"hidden":""}},Qe(dJ,Object.assign({seg:D,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:L===g,isShort:!1},Yb(D,i,u))))}))}function OF(c){return c?{top:c.start,bottom:-c.end}:{top:"",bottom:""}}function jce(c,i){return c.map(u=>i[u.index])}class Zce extends Ba{constructor(){super(...arguments),this.splitFgEventSegs=Es(J6),this.splitBgEventSegs=Es(J6),this.splitBusinessHourSegs=Es(J6),this.splitNowIndicatorSegs=Es(J6),this.splitDateSelectionSegs=Es(J6),this.splitEventDrag=Es(lJ),this.splitEventResize=Es(lJ),this.rootElRef=Td(),this.cellElRefs=new P1}render(){let{props:i,context:u}=this,g=u.options.nowIndicator&&i.slatCoords&&i.slatCoords.safeComputeTop(i.nowDate),C=i.cells.length,E=this.splitFgEventSegs(i.fgEventSegs,C),A=this.splitBgEventSegs(i.bgEventSegs,C),D=this.splitBusinessHourSegs(i.businessHourSegs,C),L=this.splitNowIndicatorSegs(i.nowIndicatorSegs,C),G=this.splitDateSelectionSegs(i.dateSelectionSegs,C),W=this.splitEventDrag(i.eventDrag,C),ae=this.splitEventResize(i.eventResize,C);return Qe("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Qe("table",{role:"presentation",style:{minWidth:i.tableMinWidth,width:i.clientWidth}},i.tableColGroupNode,Qe("tbody",{role:"presentation"},Qe("tr",{role:"row"},i.axis&&Qe("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},Qe("div",{className:"fc-timegrid-col-frame"},Qe("div",{className:"fc-timegrid-now-indicator-container"},typeof g=="number"&&Qe(_F,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:g},isAxis:!0,date:i.nowDate})))),i.cells.map((ne,F)=>Qe(Wce,{key:ne.key,elRef:this.cellElRefs.createRef(ne.key),dateProfile:i.dateProfile,date:ne.date,nowDate:i.nowDate,todayRange:i.todayRange,extraRenderProps:ne.extraRenderProps,extraDataAttrs:ne.extraDataAttrs,extraClassNames:ne.extraClassNames,extraDateSpan:ne.extraDateSpan,fgEventSegs:E[F],bgEventSegs:A[F],businessHourSegs:D[F],nowIndicatorSegs:L[F],dateSelectionSegs:G[F],eventDrag:W[F],eventResize:ae[F],slatCoords:i.slatCoords,eventSelection:i.eventSelection,forPrint:i.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:i}=this;i.onColCoords&&i.clientWidth!==null&&i.onColCoords(new rS(this.rootElRef.current,Gce(this.cellElRefs.currentMap,i.cells),!0,!1))}}function Gce(c,i){return i.map(u=>c[u.key])}class qce extends mp{constructor(){super(...arguments),this.processSlotOptions=Es(Yce),this.state={slatCoords:null},this.handleRootEl=i=>{i?this.context.registerInteractiveComponent(this,{el:i,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=i=>{let{onScrollTopRequest:u}=this.props,{slatCoords:g}=this.state;if(u&&g){if(i.time){let C=g.computeTimeTop(i.time);C=Math.ceil(C),C&&(C+=1),u(C)}return!0}return!1},this.handleColCoords=i=>{this.colCoords=i},this.handleSlatCoords=i=>{this.setState({slatCoords:i}),this.props.onSlatCoords&&this.props.onSlatCoords(i)}}render(){let{props:i,state:u}=this;return Qe("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:i.clientWidth,minWidth:i.tableMinWidth}},Qe(Oce,{axis:i.axis,dateProfile:i.dateProfile,slatMetas:i.slatMetas,clientWidth:i.clientWidth,minHeight:i.expandRows?i.clientHeight:"",tableMinWidth:i.tableMinWidth,tableColGroupNode:i.axis?i.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Qe(Zce,{cells:i.cells,axis:i.axis,dateProfile:i.dateProfile,businessHourSegs:i.businessHourSegs,bgEventSegs:i.bgEventSegs,fgEventSegs:i.fgEventSegs,dateSelectionSegs:i.dateSelectionSegs,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,todayRange:i.todayRange,nowDate:i.nowDate,nowIndicatorSegs:i.nowIndicatorSegs,clientWidth:i.clientWidth,tableMinWidth:i.tableMinWidth,tableColGroupNode:i.tableColGroupNode,slatCoords:u.slatCoords,onColCoords:this.handleColCoords,forPrint:i.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(i){this.scrollResponder.update(i.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(i,u){let{dateEnv:g,options:C}=this.context,{colCoords:E}=this,{dateProfile:A}=this.props,{slatCoords:D}=this.state,{snapDuration:L,snapsPerSlot:G}=this.processSlotOptions(this.props.slotDuration,C.snapDuration),W=E.leftToIndex(i),ae=D.positions.topToIndex(u);if(W!=null&&ae!=null){let ne=this.props.cells[W],F=D.positions.tops[ae],ye=D.positions.getHeight(ae),le=(u-F)/ye,te=Math.floor(le*G),Se=ae*G+te,ie=this.props.cells[W].date,Z=P$(A.slotMinTime,Hse(L,Se)),we=g.add(ie,Z),Bt=g.add(we,L);return{dateProfile:A,dateSpan:Object.assign({range:{start:we,end:Bt},allDay:!1},ne.extraDateSpan),dayEl:E.els[W],rect:{left:E.lefts[W],right:E.rights[W],top:F,bottom:F+ye},layer:0}}return null}}function Yce(c,i){let u=i||c,g=$$(c,u);return g===null&&(u=c,g=1),{snapDuration:u,snapsPerSlot:g}}class Kce extends wQ{sliceRange(i,u){let g=[];for(let C=0;C<u.length;C+=1){let E=S2(i,u[C]);E&&g.push({start:E.start,end:E.end,isStart:E.start.valueOf()===i.start.valueOf(),isEnd:E.end.valueOf()===i.end.valueOf(),col:C})}return g}}class Xce extends mp{constructor(){super(...arguments),this.buildDayRanges=Es(Qce),this.slicer=new Kce,this.timeColsRef=Td()}render(){let{props:i,context:u}=this,{dateProfile:g,dayTableModel:C}=i,{nowIndicator:E,nextDayThreshold:A}=u.options,D=this.buildDayRanges(C,g,u.dateEnv);return Qe(Q6,{unit:E?"minute":"day"},(L,G)=>Qe(qce,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(i,g,null,u,D),{forPrint:i.forPrint,axis:i.axis,dateProfile:g,slatMetas:i.slatMetas,slotDuration:i.slotDuration,cells:C.cells[0],tableColGroupNode:i.tableColGroupNode,tableMinWidth:i.tableMinWidth,clientWidth:i.clientWidth,clientHeight:i.clientHeight,expandRows:i.expandRows,nowDate:L,nowIndicatorSegs:E&&this.slicer.sliceNowDate(L,g,A,u,D),todayRange:G,onScrollTopRequest:i.onScrollTopRequest,onSlatCoords:i.onSlatCoords})))}}function Qce(c,i,u){let g=[];for(let C of c.headerDates)g.push({start:u.add(C,i.slotMinTime),end:u.add(C,i.slotMaxTime)});return g}const mJ=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Jce(c,i,u,g,C){let E=new Date(0),A=c,D=Zr(0),L=u||eue(g),G=[];for(;tg(A)<tg(i);){let W=C.add(E,A),ae=$$(D,L)!==null;G.push({date:W,time:A,key:W.toISOString(),isoTimeStr:ore(W),isLabeled:ae}),A=P$(A,g),D=P$(D,g)}return G}function eue(c){let i,u,g;for(i=mJ.length-1;i>=0;i-=1)if(u=Zr(mJ[i]),g=$$(u,c),g!==null&&g>1)return u;return c}class tue extends Tce{constructor(){super(...arguments),this.buildTimeColsModel=Es(nue),this.buildSlatMetas=Es(Jce)}render(){let{options:i,dateEnv:u,dateProfileGenerator:g}=this.context,{props:C}=this,{dateProfile:E}=C,A=this.buildTimeColsModel(E,g),D=this.allDaySplitter.splitProps(C),L=this.buildSlatMetas(E.slotMinTime,E.slotMaxTime,i.slotLabelInterval,i.slotDuration,u),{dayMinWidth:G}=i,W=!G,ae=G,ne=i.dayHeaders&&Qe(yQ,{dates:A.headerDates,dateProfile:E,datesRepDistinctDays:!0,renderIntro:W?this.renderHeadAxis:null}),F=i.allDaySlot!==!1&&(le=>Qe(rJ,Object.assign({},D.allDay,{dateProfile:E,dayTableModel:A,nextDayThreshold:i.nextDayThreshold,tableMinWidth:le.tableMinWidth,colGroupNode:le.tableColGroupNode,renderRowIntro:W?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:le.clientWidth,clientHeight:le.clientHeight,forPrint:C.forPrint},this.getAllDayMaxEventProps()))),ye=le=>Qe(Xce,Object.assign({},D.timed,{dayTableModel:A,dateProfile:E,axis:W,slotDuration:i.slotDuration,slatMetas:L,forPrint:C.forPrint,tableColGroupNode:le.tableColGroupNode,tableMinWidth:le.tableMinWidth,clientWidth:le.clientWidth,clientHeight:le.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:le.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return ae?this.renderHScrollLayout(ne,F,ye,A.colCnt,G,L,this.state.slatCoords):this.renderSimpleLayout(ne,F,ye)}}function nue(c,i){let u=new vQ(c.renderRange,i);return new CQ(u,!1)}var hJ=$1({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:tue,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});yF.touchMouseIgnoreWait=500;let RF=0,i7=0,BF=!1;class gJ{constructor(i){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=u=>{if(!this.shouldIgnoreMouse()&&oue(u)&&this.tryStart(u)){let g=this.createEventFromMouse(u,!0);this.emitter.trigger("pointerdown",g),this.initScrollWatch(g),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=u=>{let g=this.createEventFromMouse(u);this.recordCoords(g),this.emitter.trigger("pointermove",g)},this.handleMouseUp=u=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(u)),this.cleanup()},this.handleTouchStart=u=>{if(this.tryStart(u)){this.isTouchDragging=!0;let g=this.createEventFromTouch(u,!0);this.emitter.trigger("pointerdown",g),this.initScrollWatch(g);let C=u.target;this.shouldIgnoreMove||C.addEventListener("touchmove",this.handleTouchMove),C.addEventListener("touchend",this.handleTouchEnd),C.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=u=>{let g=this.createEventFromTouch(u);this.recordCoords(g),this.emitter.trigger("pointermove",g)},this.handleTouchEnd=u=>{if(this.isDragging){let g=u.target;g.removeEventListener("touchmove",this.handleTouchMove),g.removeEventListener("touchend",this.handleTouchEnd),g.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(u)),this.cleanup(),this.isTouchDragging=!1,sue()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=u=>{if(!this.shouldIgnoreMove){let g=window.pageXOffset-this.prevScrollX+this.prevPageX,C=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:u,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:g,pageY:C,deltaX:g-this.origPageX,deltaY:C-this.origPageY})}},this.containerEl=i,this.emitter=new Q8,i.addEventListener("mousedown",this.handleMouseDown),i.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),rue()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),aue()}tryStart(i){let u=this.querySubjectEl(i),g=i.target;return u&&(!this.handleSelector||Zu(g,this.handleSelector))?(this.subjectEl=u,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){BF=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(i){return this.selector?Zu(i.target,this.selector):this.containerEl}shouldIgnoreMouse(){return RF||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(BF=!0)}initScrollWatch(i){this.shouldWatchScroll&&(this.recordCoords(i),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(i){this.shouldWatchScroll&&(this.prevPageX=i.pageX,this.prevPageY=i.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(i,u){let g=0,C=0;return u?(this.origPageX=i.pageX,this.origPageY=i.pageY):(g=i.pageX-this.origPageX,C=i.pageY-this.origPageY),{origEvent:i,isTouch:!1,subjectEl:this.subjectEl,pageX:i.pageX,pageY:i.pageY,deltaX:g,deltaY:C}}createEventFromTouch(i,u){let g=i.touches,C,E,A=0,D=0;return g&&g.length?(C=g[0].pageX,E=g[0].pageY):(C=i.pageX,E=i.pageY),u?(this.origPageX=C,this.origPageY=E):(A=C-this.origPageX,D=E-this.origPageY),{origEvent:i,isTouch:!0,subjectEl:this.subjectEl,pageX:C,pageY:E,deltaX:A,deltaY:D}}}function oue(c){return c.button===0&&!c.ctrlKey}function sue(){RF+=1,setTimeout(()=>{RF-=1},yF.touchMouseIgnoreWait)}function rue(){i7+=1,i7===1&&window.addEventListener("touchmove",pJ,{passive:!1})}function aue(){i7-=1,i7||window.removeEventListener("touchmove",pJ,{passive:!1})}function pJ(c){BF&&c.preventDefault()}class iue{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(i,u,g){this.sourceEl=i,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=u-window.pageXOffset,this.origScreenY=g-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(i,u){this.deltaX=i-window.pageXOffset-this.origScreenX,this.deltaY=u-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(i){i?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=i,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=i)}stop(i,u){let g=()=>{this.cleanup(),u()};i&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(g,this.revertDuration):setTimeout(g,0)}doRevertAnimation(i,u){let g=this.mirrorEl,C=this.sourceEl.getBoundingClientRect();g.style.transition="top "+u+"ms,left "+u+"ms",Z6(g,{left:C.left,top:C.top}),kse(g,()=>{g.style.transition="",i()})}cleanup(){this.mirrorEl&&(B$(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&Z6(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let i=this.sourceElRect,u=this.mirrorEl;return u||(u=this.mirrorEl=this.sourceEl.cloneNode(!0),u.style.userSelect="none",u.style.webkitUserSelect="none",u.classList.add("fc-event-dragging"),Z6(u,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:i.right-i.left,height:i.bottom-i.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(u)),u}}class bJ extends mF{constructor(i,u){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=i,this.doesListening=u,this.scrollTop=this.origScrollTop=i.getScrollTop(),this.scrollLeft=this.origScrollLeft=i.getScrollLeft(),this.scrollWidth=i.getScrollWidth(),this.scrollHeight=i.getScrollHeight(),this.clientWidth=i.getClientWidth(),this.clientHeight=i.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(i){this.scrollController.setScrollTop(i),this.doesListening||(this.scrollTop=Math.max(Math.min(i,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(i){this.scrollController.setScrollLeft(i),this.doesListening||(this.scrollLeft=Math.max(Math.min(i,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class yJ extends bJ{constructor(i,u){super(new Kae(i),u)}getEventTarget(){return this.scrollController.el}computeClientRect(){return qae(this.scrollController.el)}}class lue extends bJ{constructor(i){super(new Xae,i)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const vJ=typeof performance=="function"?performance.now:Date.now;class cue{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let i=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(i){let u=vJ();this.handleSide(i,(u-this.msSinceRequest)/1e3),this.requestAnimation(u)}else this.isAnimating=!1}}}start(i,u,g){this.isEnabled&&(this.scrollCaches=this.buildCaches(g),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(i,u))}handleMove(i,u){if(this.isEnabled){let g=i-window.pageXOffset,C=u-window.pageYOffset,E=this.pointerScreenY===null?0:C-this.pointerScreenY,A=this.pointerScreenX===null?0:g-this.pointerScreenX;E<0?this.everMovedUp=!0:E>0&&(this.everMovedDown=!0),A<0?this.everMovedLeft=!0:A>0&&(this.everMovedRight=!0),this.pointerScreenX=g,this.pointerScreenY=C,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(vJ()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let i of this.scrollCaches)i.destroy();this.scrollCaches=null}}requestAnimation(i){this.msSinceRequest=i,requestAnimationFrame(this.animate)}handleSide(i,u){let{scrollCache:g}=i,{edgeThreshold:C}=this,E=C-i.distance,A=E*E/(C*C)*this.maxVelocity*u,D=1;switch(i.name){case"left":D=-1;case"right":g.setScrollLeft(g.getScrollLeft()+A*D);break;case"top":D=-1;case"bottom":g.setScrollTop(g.getScrollTop()+A*D);break}}computeBestEdge(i,u){let{edgeThreshold:g}=this,C=null,E=this.scrollCaches||[];for(let A of E){let D=A.clientRect,L=i-D.left,G=D.right-i,W=u-D.top,ae=D.bottom-u;L>=0&&G>=0&&W>=0&&ae>=0&&(W<=g&&this.everMovedUp&&A.canScrollUp()&&(!C||C.distance>W)&&(C={scrollCache:A,name:"top",distance:W}),ae<=g&&this.everMovedDown&&A.canScrollDown()&&(!C||C.distance>ae)&&(C={scrollCache:A,name:"bottom",distance:ae}),L<=g&&this.everMovedLeft&&A.canScrollLeft()&&(!C||C.distance>L)&&(C={scrollCache:A,name:"left",distance:L}),G<=g&&this.everMovedRight&&A.canScrollRight()&&(!C||C.distance>G)&&(C={scrollCache:A,name:"right",distance:G}))}return C}buildCaches(i){return this.queryScrollEls(i).map(u=>u===window?new lue(!1):new yJ(u,!1))}queryScrollEls(i){let u=[];for(let g of this.scrollQuery)typeof g=="object"?u.push(g):u.push(...Array.prototype.slice.call(i.getRootNode().querySelectorAll(g)));return u}}class ek extends eie{constructor(i,u){super(i),this.containerEl=i,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=C=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Tse(document.body),Dse(document.body),C.isTouch||C.origEvent.preventDefault(),this.emitter.trigger("pointerdown",C),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(C.subjectEl,C.pageX,C.pageY),this.startDelay(C),this.minDistance||this.handleDistanceSurpassed(C)))},this.onPointerMove=C=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",C),!this.isDistanceSurpassed){let E=this.minDistance,A,{deltaX:D,deltaY:L}=C;A=D*D+L*L,A>=E*E&&this.handleDistanceSurpassed(C)}this.isDragging&&(C.origEvent.type!=="scroll"&&(this.mirror.handleMove(C.pageX,C.pageY),this.autoScroller.handleMove(C.pageX,C.pageY)),this.emitter.trigger("dragmove",C))}},this.onPointerUp=C=>{this.isInteracting&&(this.isInteracting=!1,Ase(document.body),Nse(document.body),this.emitter.trigger("pointerup",C),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(C)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let g=this.pointer=new gJ(i);g.emitter.on("pointerdown",this.onPointerDown),g.emitter.on("pointermove",this.onPointerMove),g.emitter.on("pointerup",this.onPointerUp),u&&(g.selector=u),this.mirror=new iue,this.autoScroller=new cue}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(i){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(i)},this.delay):this.handleDelayEnd(i)}handleDelayEnd(i){this.isDelayEnded=!0,this.tryStartDrag(i)}handleDistanceSurpassed(i){this.isDistanceSurpassed=!0,this.tryStartDrag(i)}tryStartDrag(i){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(i.pageX,i.pageY,this.containerEl),this.emitter.trigger("dragstart",i),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(i){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,i))}stopDrag(i){this.isDragging=!1,this.emitter.trigger("dragend",i)}setIgnoreMove(i){this.pointer.shouldIgnoreMove=i}setMirrorIsVisible(i){this.mirror.setIsVisible(i)}setMirrorNeedsRevert(i){this.mirrorNeedsRevert=i}setAutoScrollEnabled(i){this.autoScroller.isEnabled=i}}class uue{constructor(i){this.origRect=fF(i),this.scrollCaches=mQ(i).map(u=>new yJ(u,!0))}destroy(){for(let i of this.scrollCaches)i.destroy()}computeLeft(){let i=this.origRect.left;for(let u of this.scrollCaches)i+=u.origScrollLeft-u.getScrollLeft();return i}computeTop(){let i=this.origRect.top;for(let u of this.scrollCaches)i+=u.origScrollTop-u.getScrollTop();return i}isWithinClipping(i,u){let g={left:i,top:u};for(let C of this.scrollCaches)if(!due(C.getEventTarget())&&!Iae(g,C.clientRect))return!1;return!0}}function due(c){let i=c.tagName;return i==="HTML"||i==="BODY"}class l7{constructor(i,u){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=g=>{let{dragging:C}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(g),this.initialHit||!this.requireInitial?(C.setIgnoreMove(!1),this.emitter.trigger("pointerdown",g)):C.setIgnoreMove(!0)},this.handleDragStart=g=>{this.emitter.trigger("dragstart",g),this.handleMove(g,!0)},this.handleDragMove=g=>{this.emitter.trigger("dragmove",g),this.handleMove(g)},this.handlePointerUp=g=>{this.releaseHits(),this.emitter.trigger("pointerup",g)},this.handleDragEnd=g=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,g),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",g)},this.droppableStore=u,i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("dragmove",this.handleDragMove),i.emitter.on("pointerup",this.handlePointerUp),i.emitter.on("dragend",this.handleDragEnd),this.dragging=i,this.emitter=new Q8}processFirstCoord(i){let u={left:i.pageX,top:i.pageY},g=u,C=i.subjectEl,E;C instanceof HTMLElement&&(E=fF(C),g=Pae(g,E));let A=this.initialHit=this.queryHitForOffset(g.left,g.top);if(A){if(this.useSubjectCenter&&E){let D=uQ(E,A.rect);D&&(g=$ae(D))}this.coordAdjust=Fae(g,u)}else this.coordAdjust={left:0,top:0}}handleMove(i,u){let g=this.queryHitForOffset(i.pageX+this.coordAdjust.left,i.pageY+this.coordAdjust.top);(u||!c7(this.movingHit,g))&&(this.movingHit=g,this.emitter.trigger("hitupdate",g,!1,i))}prepareHits(){this.offsetTrackers=R1(this.droppableStore,i=>(i.component.prepareHits(),new uue(i.el)))}releaseHits(){let{offsetTrackers:i}=this;for(let u in i)i[u].destroy();this.offsetTrackers={}}queryHitForOffset(i,u){let{droppableStore:g,offsetTrackers:C}=this,E=null;for(let A in g){let D=g[A].component,L=C[A];if(L&&L.isWithinClipping(i,u)){let G=L.computeLeft(),W=L.computeTop(),ae=i-G,ne=u-W,{origRect:F}=L,ye=F.right-F.left,le=F.bottom-F.top;if(ae>=0&&ae<ye&&ne>=0&&ne<le){let te=D.queryHit(ae,ne,ye,le);te&&G8(te.dateProfile.activeRange,te.dateSpan.range)&&(!E||te.layer>E.layer)&&(te.componentId=A,te.context=D.context,te.rect.left+=G,te.rect.right+=G,te.rect.top+=W,te.rect.bottom+=W,E=te)}}}return E}}function c7(c,i){return!c&&!i?!0:!!c!=!!i?!1:xae(c.dateSpan,i.dateSpan)}function CJ(c,i){let u={};for(let g of i.pluginHooks.datePointTransforms)Object.assign(u,g(c,i));return Object.assign(u,fue(c,i.dateEnv)),u}function fue(c,i){return{date:i.toDate(c.range.start),dateStr:i.formatIso(c.range.start,{omitTime:c.allDay}),allDay:c.allDay}}class mue extends sS{constructor(i){super(i),this.handlePointerDown=g=>{let{dragging:C}=this,E=g.origEvent.target;C.setIgnoreMove(!this.component.isValidDateDownEl(E))},this.handleDragEnd=g=>{let{component:C}=this,{pointer:E}=this.dragging;if(!E.wasTouchScroll){let{initialHit:A,finalHit:D}=this.hitDragging;if(A&&D&&c7(A,D)){let{context:L}=C,G=Object.assign(Object.assign({},CJ(A.dateSpan,L)),{dayEl:A.dayEl,jsEvent:g.origEvent,view:L.viewApi||L.calendarApi.view});L.emitter.trigger("dateClick",G)}}},this.dragging=new ek(i.el),this.dragging.autoScroller.isEnabled=!1;let u=this.hitDragging=new l7(this.dragging,aF(i));u.emitter.on("pointerdown",this.handlePointerDown),u.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class hue extends sS{constructor(i){super(i),this.dragSelection=null,this.handlePointerDown=A=>{let{component:D,dragging:L}=this,{options:G}=D.context,W=G.selectable&&D.isValidDateDownEl(A.origEvent.target);L.setIgnoreMove(!W),L.delay=A.isTouch?gue(D):null},this.handleDragStart=A=>{this.component.context.calendarApi.unselect(A)},this.handleHitUpdate=(A,D)=>{let{context:L}=this.component,G=null,W=!1;if(A){let ae=this.hitDragging.initialHit;A.componentId===ae.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(ae,A)||(G=pue(ae,A,L.pluginHooks.dateSelectionTransformers)),(!G||!aie(G,A.dateProfile,L))&&(W=!0,G=null)}G?L.dispatch({type:"SELECT_DATES",selection:G}):D||L.dispatch({type:"UNSELECT_DATES"}),W?M$():I$(),D||(this.dragSelection=G)},this.handlePointerUp=A=>{this.dragSelection&&(KX(this.dragSelection,A,this.component.context),this.dragSelection=null)};let{component:u}=i,{options:g}=u.context,C=this.dragging=new ek(i.el);C.touchScrollAllowed=!1,C.minDistance=g.selectMinDistance||0,C.autoScroller.isEnabled=g.dragScroll;let E=this.hitDragging=new l7(this.dragging,aF(i));E.emitter.on("pointerdown",this.handlePointerDown),E.emitter.on("dragstart",this.handleDragStart),E.emitter.on("hitupdate",this.handleHitUpdate),E.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function gue(c){let{options:i}=c.context,u=i.selectLongPressDelay;return u==null&&(u=i.longPressDelay),u}function pue(c,i,u){let g=c.dateSpan,C=i.dateSpan,E=[g.range.start,g.range.end,C.range.start,C.range.end];E.sort(Ise);let A={};for(let D of u){let L=D(c,i);if(L===!1)return null;L&&Object.assign(A,L)}return A.range={start:E[0],end:E[3]},A.allDay=g.allDay,A}class tk extends sS{constructor(i){super(i),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=A=>{let D=A.origEvent.target,{component:L,dragging:G}=this,{mirror:W}=G,{options:ae}=L.context,ne=L.context;this.subjectEl=A.subjectEl;let F=this.subjectSeg=oS(A.subjectEl),le=(this.eventRange=F.eventRange).instance.instanceId;this.relevantEvents=tF(ne.getCurrentData().eventStore,le),G.minDistance=A.isTouch?0:ae.eventDragMinDistance,G.delay=A.isTouch&&le!==L.props.eventSelection?yue(L):null,ae.fixedMirrorParent?W.parentNode=ae.fixedMirrorParent:W.parentNode=Zu(D,".fc"),W.revertDuration=ae.dragRevertDuration;let te=L.isValidSegDownEl(D)&&!Zu(D,".fc-event-resizer");G.setIgnoreMove(!te),this.isDragging=te&&A.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=A=>{let D=this.component.context,L=this.eventRange,G=L.instance.instanceId;A.isTouch?G!==this.component.props.eventSelection&&D.dispatch({type:"SELECT_EVENT",eventInstanceId:G}):D.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(D.calendarApi.unselect(A),D.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new gl(D,L.def,L.instance),jsEvent:A.origEvent,view:D.viewApi}))},this.handleHitUpdate=(A,D)=>{if(!this.isDragging)return;let L=this.relevantEvents,G=this.hitDragging.initialHit,W=this.component.context,ae=null,ne=null,F=null,ye=!1,le={affectedEvents:L,mutatedEvents:pm(),isEvent:!0};if(A){ae=A.context;let te=ae.options;W===ae||te.editable&&te.droppable?(ne=bue(G,A,ae.getCurrentData().pluginHooks.eventDragMutationMassagers),ne&&(F=sF(L,ae.getCurrentData().eventUiBases,ne,ae),le.mutatedEvents=F,SQ(le,A.dateProfile,ae)||(ye=!0,ne=null,F=null,le.mutatedEvents=pm()))):ae=null}this.displayDrag(ae,le),ye?M$():I$(),D||(W===ae&&c7(G,A)&&(ne=null),this.dragging.setMirrorNeedsRevert(!ne),this.dragging.setMirrorIsVisible(!A||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=ae,this.validMutation=ne,this.mutatedRelevantEvents=F)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=A=>{if(this.isDragging){let D=this.component.context,L=D.viewApi,{receivingContext:G,validMutation:W}=this,ae=this.eventRange.def,ne=this.eventRange.instance,F=new gl(D,ae,ne),ye=this.relevantEvents,le=this.mutatedRelevantEvents,{finalHit:te}=this.hitDragging;if(this.clearDrag(),D.emitter.trigger("eventDragStop",{el:this.subjectEl,event:F,jsEvent:A.origEvent,view:L}),W){if(G===D){let Se=new gl(D,le.defs[ae.defId],ne?le.instances[ne.instanceId]:null);D.dispatch({type:"MERGE_EVENTS",eventStore:le});let ie={oldEvent:F,event:Se,relatedEvents:E2(le,D,ne),revert(){D.dispatch({type:"MERGE_EVENTS",eventStore:ye})}},Z={};for(let we of D.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(Z,we(W,D));D.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},ie),Z),{el:A.subjectEl,delta:W.datesDelta,jsEvent:A.origEvent,view:L})),D.emitter.trigger("eventChange",ie)}else if(G){let Se={event:F,relatedEvents:E2(ye,D,ne),revert(){D.dispatch({type:"MERGE_EVENTS",eventStore:ye})}};D.emitter.trigger("eventLeave",Object.assign(Object.assign({},Se),{draggedEl:A.subjectEl,view:L})),D.dispatch({type:"REMOVE_EVENTS",eventStore:ye}),D.emitter.trigger("eventRemove",Se);let ie=le.defs[ae.defId],Z=le.instances[ne.instanceId],we=new gl(G,ie,Z);G.dispatch({type:"MERGE_EVENTS",eventStore:le});let Bt={event:we,relatedEvents:E2(le,G,Z),revert(){G.dispatch({type:"REMOVE_EVENTS",eventStore:le})}};G.emitter.trigger("eventAdd",Bt),A.isTouch&&G.dispatch({type:"SELECT_EVENT",eventInstanceId:ne.instanceId}),G.emitter.trigger("drop",Object.assign(Object.assign({},CJ(te.dateSpan,G)),{draggedEl:A.subjectEl,jsEvent:A.origEvent,view:te.context.viewApi})),G.emitter.trigger("eventReceive",Object.assign(Object.assign({},Bt),{draggedEl:A.subjectEl,view:te.context.viewApi}))}}else D.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:u}=this,{options:g}=u.context,C=this.dragging=new ek(i.el);C.pointer.selector=tk.SELECTOR,C.touchScrollAllowed=!1,C.autoScroller.isEnabled=g.dragScroll;let E=this.hitDragging=new l7(this.dragging,iF);E.useSubjectCenter=i.useEventCenter,E.emitter.on("pointerdown",this.handlePointerDown),E.emitter.on("dragstart",this.handleDragStart),E.emitter.on("hitupdate",this.handleHitUpdate),E.emitter.on("pointerup",this.handlePointerUp),E.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(i,u){let g=this.component.context,C=this.receivingContext;C&&C!==i&&(C===g?C.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:u.affectedEvents,mutatedEvents:pm(),isEvent:!0}}):C.dispatch({type:"UNSET_EVENT_DRAG"})),i&&i.dispatch({type:"SET_EVENT_DRAG",state:u})}clearDrag(){let i=this.component.context,{receivingContext:u}=this;u&&u.dispatch({type:"UNSET_EVENT_DRAG"}),i!==u&&i.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}tk.SELECTOR=".fc-event-draggable, .fc-event-resizable";function bue(c,i,u){let g=c.dateSpan,C=i.dateSpan,E=g.range.start,A=C.range.start,D={};g.allDay!==C.allDay&&(D.allDay=C.allDay,D.hasEnd=i.context.options.allDayMaintainDuration,C.allDay&&(E=Ii(E)));let L=tS(E,A,c.context.dateEnv,c.componentId===i.componentId?c.largeUnit:null);L.milliseconds&&(D.allDay=!1);let G={datesDelta:L,standardProps:D};for(let W of u)W(G,c,i);return G}function yue(c){let{options:i}=c.context,u=i.eventLongPressDelay;return u==null&&(u=i.longPressDelay),u}class vue extends sS{constructor(i){super(i),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=E=>{let{component:A}=this,D=this.querySegEl(E),L=oS(D),G=this.eventRange=L.eventRange;this.dragging.minDistance=A.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(E.origEvent.target)||E.isTouch&&this.component.props.eventSelection!==G.instance.instanceId)},this.handleDragStart=E=>{let{context:A}=this.component,D=this.eventRange;this.relevantEvents=tF(A.getCurrentData().eventStore,this.eventRange.instance.instanceId);let L=this.querySegEl(E);this.draggingSegEl=L,this.draggingSeg=oS(L),A.calendarApi.unselect(),A.emitter.trigger("eventResizeStart",{el:L,event:new gl(A,D.def,D.instance),jsEvent:E.origEvent,view:A.viewApi})},this.handleHitUpdate=(E,A,D)=>{let{context:L}=this.component,G=this.relevantEvents,W=this.hitDragging.initialHit,ae=this.eventRange.instance,ne=null,F=null,ye=!1,le={affectedEvents:G,mutatedEvents:pm(),isEvent:!0};E&&(E.componentId===W.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(W,E)||(ne=Cue(W,E,D.subjectEl.classList.contains("fc-event-resizer-start"),ae.range))),ne&&(F=sF(G,L.getCurrentData().eventUiBases,ne,L),le.mutatedEvents=F,SQ(le,E.dateProfile,L)||(ye=!0,ne=null,F=null,le.mutatedEvents=null)),F?L.dispatch({type:"SET_EVENT_RESIZE",state:le}):L.dispatch({type:"UNSET_EVENT_RESIZE"}),ye?M$():I$(),A||(ne&&c7(W,E)&&(ne=null),this.validMutation=ne,this.mutatedRelevantEvents=F)},this.handleDragEnd=E=>{let{context:A}=this.component,D=this.eventRange.def,L=this.eventRange.instance,G=new gl(A,D,L),W=this.relevantEvents,ae=this.mutatedRelevantEvents;if(A.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:G,jsEvent:E.origEvent,view:A.viewApi}),this.validMutation){let ne=new gl(A,ae.defs[D.defId],L?ae.instances[L.instanceId]:null);A.dispatch({type:"MERGE_EVENTS",eventStore:ae});let F={oldEvent:G,event:ne,relatedEvents:E2(ae,A,L),revert(){A.dispatch({type:"MERGE_EVENTS",eventStore:W})}};A.emitter.trigger("eventResize",Object.assign(Object.assign({},F),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||Zr(0),endDelta:this.validMutation.endDelta||Zr(0),jsEvent:E.origEvent,view:A.viewApi})),A.emitter.trigger("eventChange",F)}else A.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:u}=i,g=this.dragging=new ek(i.el);g.pointer.selector=".fc-event-resizer",g.touchScrollAllowed=!1,g.autoScroller.isEnabled=u.context.options.dragScroll;let C=this.hitDragging=new l7(this.dragging,aF(i));C.emitter.on("pointerdown",this.handlePointerDown),C.emitter.on("dragstart",this.handleDragStart),C.emitter.on("hitupdate",this.handleHitUpdate),C.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(i){return Zu(i.subjectEl,".fc-event")}}function Cue(c,i,u,g){let C=c.context.dateEnv,E=c.dateSpan.range.start,A=i.dateSpan.range.start,D=tS(E,A,C,c.largeUnit);if(u){if(C.add(g.start,D)<g.end)return{startDelta:D}}else if(C.add(g.end,D)>g.start)return{endDelta:D};return null}class wue{constructor(i){this.context=i,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=g=>{g.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=g=>{let C=this.context.options.unselectCancel,E=lX(g.origEvent);this.matchesCancel=!!Zu(E,C),this.matchesEvent=!!Zu(E,tk.SELECTOR)},this.onDocumentPointerUp=g=>{let{context:C}=this,{documentPointer:E}=this,A=C.getCurrentData();if(!E.wasTouchScroll){if(A.dateSelection&&!this.isRecentPointerDateSelect){let D=C.options.unselectAuto;D&&(!D||!this.matchesCancel)&&C.calendarApi.unselect(g)}A.eventSelection&&!this.matchesEvent&&C.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let u=this.documentPointer=new gJ(document);u.shouldIgnoreMove=!0,u.shouldWatchScroll=!1,u.emitter.on("pointerdown",this.onDocumentPointerDown),u.emitter.on("pointerup",this.onDocumentPointerUp),i.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const Sue={fixedMirrorParent:Wt},_ue={dateClick:Wt,eventDragStart:Wt,eventDragStop:Wt,eventDrop:Wt,eventResizeStart:Wt,eventResizeStop:Wt,eventResize:Wt,drop:Wt,eventReceive:Wt,eventLeave:Wt};yF.dataAttrPrefix="";var wJ=$1({name:"@fullcalendar/interaction",componentInteractions:[mue,hue,tk,vue],calendarInteractions:[wue],elementDraggingImpl:ek,optionRefiners:Sue,listenerRefiners:_ue});let Eue=0,xue=new Date().toISOString().replace(/T.*$/,"");const kue=[{id:Tue(),title:"All-day event",start:xue}];function Tue(){return String(Eue++)}const nk=c=>(f.pushScopeId("data-v-1fa0e0e1"),c=c(),f.popScopeId(),c),Aue={class:"demo-app"},Due={class:"demo-app-main"},Nue={class:"title-line"},Oue=["title","onClick"],Rue={key:0,style:{width:"90%"}},Bue=nk(()=>f.createElementVNode("span",{class:"to"},"至",-1)),Mue={key:1,style:{width:"90%"}},Iue=nk(()=>f.createElementVNode("span",{class:"to"},"至",-1)),Pue={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},$ue={key:0,style:{"margin-left":"2%"}},Fue=nk(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Lue={key:1},Vue=nk(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Hue={key:0,class:"placeholder"},zue={class:"info"},Uue=nk(()=>f.createElementVNode("img",{src:"https://img1.baidu.com/it/u=1960110688,1786190632&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281",alt:""},null,-1)),Wue={class:"dialog-footer"},jue={name:"IkApprovalProcess"},Zue=f.defineComponent({...jue,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(c,{emit:i}){const u=i,g=le=>{if(D.selectInfo=le,E(),le.view.type=="dayGridMonth"){let Se=le.end.getTime()-864e5;D.timeType="month",D.form.startDate=es.ikDate.toYMD(le.start),D.form.endDate=es.ikDate.toYMD(new Date(Se))}else le.view.type=="timeGridWeek"?(D.timeType="week",D.form.startDate=es.ikDate.toYMDHM(le.start),D.form.endDate=es.ikDate.toYMDHM(le.end)):le.view.type=="timeGridDay"&&(D.timeType="day",D.form.startDate=es.ikDate.toYMD(le.start),D.form.endDate=es.ikDate.toYMD(le.start),D.form.startTime=es.ikDate.toDateTime(le.start),D.form.endTime=es.ikDate.toDateTime(le.end));le.view.calendar.unselect(),f.nextTick(()=>{D.title="新建日程",D.dialogVisible=!0})},C=(le,te)=>{D.title="修改日程",D.dialogVisible=!0},E=le=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:le||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(ie=>{ie.json().then(Z=>{const{success:we,data:Bt}=Z;if(!we)return;const{departments:We,users:Q,roles:Be,posts:Ae}=Bt;D.depList=We,D.userList=Q,D.roleList=Be,D.postList=Ae})}).catch(ie=>{console.info("error: ",ie)})},A=le=>{D.currentEvents=le},D=f.reactive({allDay:!1,dialogVisible:!1,form:{title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},formRef:null,title:"新建日程",timeType:"month",handList:[],isShow:!1,depList:[],userList:[],roleList:[],postList:[],selectInfo:{},calendarOptions:{locale:vK,plugins:[aJ,hJ,wJ],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:kue,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:g,eventClick:le=>C(),eventsSet:A},currentEvents:[]}),L=()=>{var le;(le=D.formRef)==null||le.resetFields(),D.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},D.dialogVisible=!1},G=async()=>{var Se,ie,Z,we;let le=(ie=(Se=D.selectInfo)==null?void 0:Se.view)==null?void 0:ie.calendar,te={id:new Date().getTime(),title:D.form.title,start:(Z=D.selectInfo)==null?void 0:Z.startStr,end:(we=D.selectInfo)==null?void 0:we.endStr,allDay:D.allDay};await le.addEvent(te),u("success",te),L()},W=le=>{Kt.ElMessageBox.confirm(`你确定删除事件'${le.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{Kt.ElMessage({type:"success",message:"删除成功"}),le.event.remove(),u("delete",le.event)})},ae=le=>{D.handList=le.list,D.form.personList=le.list},ne=()=>{D.isShow=!0},F=le=>{E(le==null?void 0:le.elementId)},ye=le=>{D.form.personList.splice(le,1),D.handList=D.form.personList};return(le,te)=>{const Se=f.resolveComponent("el-checkbox");return f.openBlock(),f.createElementBlock("div",Aue,[f.createElementVNode("div",Due,[f.createVNode(f.unref(KQ),{class:"demo-app-calendar",options:D.calendarOptions},{eventContent:f.withCtx(ie=>[f.createElementVNode("div",Nue,[f.createElementVNode("span",{class:"title",title:ie.event.title,onClick:f.withModifiers(Z=>C(),["stop"])},f.toDisplayString(ie.event.title),9,Oue),f.createVNode(f.unref(Kt.ElIcon),{size:16,onClick:f.withModifiers(Z=>W(ie),["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(hK))]),_:2},1032,["onClick"])])]),_:1},8,["options"])]),f.createCommentVNode(" 新建日程 "),f.createVNode(f.unref(Kt.ElDialog),{modelValue:D.dialogVisible,"onUpdate:modelValue":te[12]||(te[12]=ie=>D.dialogVisible=ie),title:D.title,width:"30%",ref:"formRef",onClose:L},{footer:f.withCtx(()=>[f.createElementVNode("span",Wue,[f.createVNode(f.unref(Kt.ElButton),{onClick:L},{default:f.withCtx(()=>[f.createTextVNode("取消")]),_:1}),f.createVNode(f.unref(Kt.ElButton),{type:"primary",onClick:G},{default:f.withCtx(()=>[f.createTextVNode("确定")]),_:1})])]),default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElForm),{model:D.form},{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(dK))]),_:1}),f.createVNode(f.unref(Kt.ElInput),{modelValue:D.form.title,"onUpdate:modelValue":te[0]||(te[0]=ie=>D.form.title=ie),placeholder:`添加${D.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),f.createVNode(f.unref(Kt.ElSelect),{modelValue:D.form.type,"onUpdate:modelValue":te[1]||(te[1]=ie=>D.form.type=ie),style:{width:"20%"}},{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElOption),{label:"会议",value:1}),f.createVNode(f.unref(Kt.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),f.createVNode(f.unref(Kt.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(fK))]),_:1}),D.timeType=="month"?(f.openBlock(),f.createElementBlock("div",Rue,[f.createVNode(f.unref(Kt.ElDatePicker),{modelValue:D.form.startDate,"onUpdate:modelValue":te[2]||(te[2]=ie=>D.form.startDate=ie),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),Bue,f.createVNode(f.unref(Kt.ElDatePicker),{modelValue:D.form.endDate,"onUpdate:modelValue":te[3]||(te[3]=ie=>D.form.endDate=ie),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):f.createCommentVNode("v-if",!0),D.timeType=="week"?(f.openBlock(),f.createElementBlock("div",Mue,[f.createVNode(f.unref(Kt.ElDatePicker),{modelValue:D.form.startDate,"onUpdate:modelValue":te[4]||(te[4]=ie=>D.form.startDate=ie),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),Iue,f.createVNode(f.unref(Kt.ElDatePicker),{modelValue:D.form.endDate,"onUpdate:modelValue":te[5]||(te[5]=ie=>D.form.endDate=ie),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):f.createCommentVNode("v-if",!0),D.timeType=="day"?(f.openBlock(),f.createElementBlock("div",Pue,[f.createVNode(f.unref(Kt.ElDatePicker),{modelValue:D.form.startDate,"onUpdate:modelValue":te[6]||(te[6]=ie=>D.form.startDate=ie),type:"date",placeholder:"开始日期",style:f.normalizeStyle({width:D.allDay?"45%":"90%"})},null,8,["modelValue","style"]),D.allDay?(f.openBlock(),f.createElementBlock("div",Lue,[Vue,f.createVNode(f.unref(Kt.ElDatePicker),{modelValue:D.form.endDate,"onUpdate:modelValue":te[9]||(te[9]=ie=>D.form.endDate=ie),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(f.openBlock(),f.createElementBlock("div",$ue,[f.createVNode(f.unref(Kt.ElTimePicker),{modelValue:D.form.startTime,"onUpdate:modelValue":te[7]||(te[7]=ie=>D.form.startTime=ie),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),Fue,f.createVNode(f.unref(Kt.ElTimePicker),{modelValue:D.form.endTime,"onUpdate:modelValue":te[8]||(te[8]=ie=>D.form.endTime=ie),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),f.createVNode(Se,{modelValue:D.allDay,"onUpdate:modelValue":te[10]||(te[10]=ie=>D.allDay=ie),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):f.createCommentVNode("v-if",!0)]),_:1}),f.createVNode(f.unref(Kt.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(rne))]),_:1}),f.createElementVNode("div",{class:"personBlock",onClick:f.withModifiers(ne,["stop"])},[D.form.personList.length?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:1},f.renderList(D.form.personList,(ie,Z)=>(f.openBlock(),f.createElementBlock("div",{key:Z,class:"nameBlock"},[f.createElementVNode("div",zue,[Uue,f.createElementVNode("div",null,f.toDisplayString(ie.elementName),1)]),f.createVNode(f.unref(Kt.ElIcon),{class:"close",onClick:f.withModifiers(we=>ye(Z),["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(mK))]),_:2},1032,["onClick"])]))),128)):(f.openBlock(),f.createElementBlock("span",Hue,"添加参与人"))])]),_:1}),f.createVNode(f.unref(Kt.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(Gte))]),_:1}),f.createVNode(f.unref(Kt.ElInput),{modelValue:D.form.location,"onUpdate:modelValue":te[11]||(te[11]=ie=>D.form.location=ie),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),f.createCommentVNode(" 选人组件 "),f.createVNode(f.unref(rk),{modelValue:D.handList,"onUpdate:modelValue":te[13]||(te[13]=ie=>D.handList=ie),show:D.isShow,"onUpdate:show":te[14]||(te[14]=ie=>D.isShow=ie),onOk:ae,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":D.depList,"user-list":D.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:F},null,8,["modelValue","show","dep-list","user-list"])])}}}),h0e="",Gue=ha(Br(Zue,[["__scopeId","data-v-1fa0e0e1"]])),que={class:"ik-hor-step-content"},Yue={class:"flex"},Kue=["onClick"],Xue=["id","onClick"],Que=f.defineComponent({__name:"IKHorizontalStepBar",props:{spaceNum:{type:String,default:"58px"},active:{type:Number,default:null},activeColor:{type:String,default:""},needClick:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},propsField:{type:Object,default:()=>({title:"title",value:"value"})}},emits:["click","update:active"],setup(c,{emit:i}){const u=c,g=i,C=f.ref(!1),E=f.ref(),A=f.ref(),D=f.ref(!1);f.watch(()=>u.active,le=>{let te=document.getElementById("stepItemContent"),Se=document.getElementById(`stepItem${le}`),ie=document.getElementById("stepItem0");const Z=Se&&ie?(Se==null?void 0:Se.offsetLeft)-(ie==null?void 0:ie.offsetLeft):0;te&&Se&&(te.scrollLeft=Z>(te==null?void 0:te.clientWidth)?Z-(te==null?void 0:te.offsetLeft):0)}),f.onMounted(()=>{f.nextTick(()=>{let te=document.getElementById("stepItemContent"),Se=(te==null?void 0:te.scrollWidth)>(te==null?void 0:te.clientWidth);C.value=Se,window.addEventListener("resize",le,!0)});const le=()=>{let te=document.getElementById("stepItemContent"),Se=(te==null?void 0:te.scrollWidth)>(te==null?void 0:te.clientWidth);C.value=Se}});const L=(le,te)=>{if(!u.needClick)return;g("update:active",te),g("click",le);let Se=document.getElementById("stepItemContent"),ie=document.getElementById(`stepItem${te}`),Z=document.getElementById("stepItem0");const we=ie&&Z?(ie==null?void 0:ie.offsetLeft)-(Z==null?void 0:Z.offsetLeft):0;Se&&ie&&(Se.scrollLeft=we>(Se==null?void 0:Se.clientWidth)?we-(Se==null?void 0:Se.offsetLeft):0)},G=()=>{let le=document.getElementById("stepItemContent");le&&(le.scrollLeft=le.scrollLeft-20)},W=()=>{let le=document.getElementById("stepItemContent");le&&(le.scrollLeft=le.scrollLeft+20)},ae=()=>{clearInterval(A.value);let le=document.getElementById("stepItemContent");D.value=!1,A.value=setInterval(()=>{D.value=!0,le&&(le.scrollLeft=le.scrollLeft-20)},100)},ne=()=>{clearInterval(A.value),D.value||G()},F=()=>{clearInterval(E.value);let le=document.getElementById("stepItemContent");D.value=!1,E.value=setInterval(()=>{D.value=!0,le&&(le.scrollLeft=le.scrollLeft+20)},100)},ye=()=>{clearInterval(E.value),D.value||W()};return(le,te)=>{const Se=f.resolveComponent("el-icon");return f.openBlock(),f.createElementBlock("div",que,[f.createElementVNode("div",Yue,[C.value?(f.openBlock(),f.createElementBlock("div",{key:0,class:"icon-left",onMousedown:ae,onMouseup:ne,onClick:G},[f.createVNode(Se,{class:"operation-icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(cK),{size:"26px"})]),_:1})],32)):f.createCommentVNode("v-if",!0),f.createElementVNode("div",{class:"step-item-content",id:"stepItemContent",style:f.normalizeStyle({justifyContent:C.value?"flex-start":"center"})},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(c.list,(ie,Z)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(`step-item ${Z<=c.active?"step-item-active":""}`),key:Z},[Z!=0?(f.openBlock(),f.createElementBlock("span",{key:0,class:f.normalizeClass(`step-border ${Z<=c.active?"step-border-greater-than":""}`),style:f.normalizeStyle({width:`${c.spaceNum.indexOf("px")!=-1?c.spaceNum:`${c.spaceNum}px`}`})},null,6)):f.createCommentVNode("v-if",!0),f.createElementVNode("span",{class:f.normalizeClass(`step-num ${Z===c.active?"step-num-active":Z<c.active?"step-num-greater-than":""}`),onClick:we=>L(ie,Z),style:f.normalizeStyle({backgroundColor:Z===c.active&&c.activeColor?c.activeColor:"",cursor:ie&&ie.disabled?"not-allowed":c.needClick?"pointer":"context-menu"})},[f.renderSlot(le.$slots,"icon",{data:{item:ie,index:Z}},()=>[f.createTextVNode(f.toDisplayString(Z+1),1)],!0)],14,Kue),f.createElementVNode("span",{id:`stepItem${Z}`,class:f.normalizeClass(`step-label ${c.active===Z?"step-label-active":Z<c.active?"step-label-greater-than":""} step-item-${Z}`),style:f.normalizeStyle({color:Z===c.active&&c.activeColor?c.activeColor:"",cursor:ie&&ie.disabled?"not-allowed":c.needClick?"pointer":"context-menu"}),onClick:we=>L(ie,Z)},f.toDisplayString(ie[c.propsField.title]),15,Xue)],2))),128))],4),C.value?(f.openBlock(),f.createElementBlock("div",{key:1,class:"icon-right",onMousedown:F,onMouseup:ye,onClick:W},[f.createVNode(Se,{class:"operation-icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(uK))]),_:1})],32)):f.createCommentVNode("v-if",!0)])])}}}),p0e="",Jue=ha(Br(Que,[["__scopeId","data-v-f390d7ac"]])),ede=typeof btoa=="function",MF=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const SJ=typeof TextEncoder=="function"?new TextEncoder:void 0,tde="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ok=Array.prototype.slice.call(tde);(c=>{let i={};return c.forEach((u,g)=>i[u]=g),i})(ok);const hp=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const nde=c=>c.replace(/=/g,"").replace(/[+\/]/g,i=>i=="+"?"-":"_"),_J=ede?c=>btoa(c):MF?c=>Buffer.from(c,"binary").toString("base64"):c=>{let i,u,g,C,E="";const A=c.length%3;for(let D=0;D<c.length;){if((u=c.charCodeAt(D++))>255||(g=c.charCodeAt(D++))>255||(C=c.charCodeAt(D++))>255)throw new TypeError("invalid character found");i=u<<16|g<<8|C,E+=ok[i>>18&63]+ok[i>>12&63]+ok[i>>6&63]+ok[i&63]}return A?E.slice(0,A-3)+"===".substring(A):E},ode=MF?c=>Buffer.from(c).toString("base64"):c=>{let u=[];for(let g=0,C=c.length;g<C;g+=4096)u.push(hp.apply(null,c.subarray(g,g+4096)));return _J(u.join(""))},sde=c=>{if(c.length<2){var i=c.charCodeAt(0);return i<128?c:i<2048?hp(192|i>>>6)+hp(128|i&63):hp(224|i>>>12&15)+hp(128|i>>>6&63)+hp(128|i&63)}else{var i=65536+(c.charCodeAt(0)-55296)*1024+(c.charCodeAt(1)-56320);return hp(240|i>>>18&7)+hp(128|i>>>12&63)+hp(128|i>>>6&63)+hp(128|i&63)}},rde=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ade=c=>c.replace(rde,sde),EJ=MF?c=>Buffer.from(c,"utf8").toString("base64"):SJ?c=>ode(SJ.encode(c)):c=>_J(ade(c)),xJ=(c,i=!1)=>i?nde(EJ(c)):EJ(c),Oc=(c,i)=>{var C,E,A,D,L;const u=(C=c==null?void 0:c.response)!=null&&C.data?kJ((A=(E=c==null?void 0:c.response)==null?void 0:E.data)==null?void 0:A.suffix):((D=c.raw)==null?void 0:D.type)||kJ(c[i.suffix]),g=((L=c.raw)==null?void 0:L.name)||c[i.name];return u!=null&&u.includes("sheet")||u!=null&&u.includes("excel")?"excel":u!=null&&u.includes("zip")||u==="application/x-compressed"?"zip":u!=null&&u.includes("image")?"image":u!=null&&u.includes("video")?"video":u!=null&&u.includes("audio")?"audio":u!=null&&u.includes("pdf")?"pdf":u!=null&&u.includes("text")||u!=null&&u.includes("txt")?"txt":u!=null&&u.includes("word")?"word":g!=null&&g.includes("ppt")?"ppt":g!=null&&g.includes("exe")?"exe":g!=null&&g.includes("json")?"json":"unknow"},kJ=c=>{const i=c==null?void 0:c.toLocaleLowerCase();switch(i!=null&&i.startsWith(".")?i:`.${i}`){case".doc":case".docx":case".docxf":case".docm":case".dot":case".dotm":case".dotx":case".epub":case".fodt":case".htm":case".html":case".mht":case".odt":case".ott":case".rtf":case".txt":case".djvu":case".oxps":case".oform":case".fb2":case".xml":case".xps":return"word";case".csv":case".xls":case".xlsx":case".fods":case".ods":case".ots":case".xlsb":case".xlsm":case".xlt":case".xltm":case".xltx":return"excel";case".fodp":case".odp":case".otp":case".pot":case".potm":case".potx":case".pps":case".ppsm":case".ppsx":case".ppt":case".pptm":case".pptx":return"ppt";case".zip":case".rar":case".7z":case".apz":case".ar":case".bz":case".car":case".dar":case".cpgz":case".f":case".ha":case".hbc":case".hbc2":case".hbe":case".hpk":case".hyp":return"zip";case".png":case".jpg":case".jpeg":case".bmp":case".gif":case".webp":case".psd":case".svg":case".tiff":return"image";case".avi":case".wmv":case".mpeg":case".mp4":case".mpm4v":case".mov":case".asf":case".flv":case".f4v":case".rmvb":case".rm":case".3gp":case".vob":return"video";case"audio":return"audio";case".txt":return"txt";case".pdf":return"pdf";case c:case"":return"unknow"}},ide={key:0,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},lde=[f.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),f.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),f.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),f.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],cde={key:1,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},ude=[f.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],dde={key:2,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},fde=[f.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],mde={key:3,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},hde=[f.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],gde={key:4,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},pde=[f.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],bde={key:5,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},yde=[f.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],vde={key:6,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},Cde=[f.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],wde={key:7,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},Sde=[f.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],_de={key:8,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},Ede=[f.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),f.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),f.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],xde={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},kde=[f.createElementVNode("path",{d:"M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",fill:"#8199AF","p-id":"8002"},null,-1),f.createElementVNode("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",fill:"#617F9B","p-id":"8003"},null,-1),f.createElementVNode("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#FFFFFF",opacity:".5","p-id":"8004"},null,-1),f.createElementVNode("path",{d:"M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",fill:"#FFFFFF","p-id":"8005"},null,-1)],Tde={key:10,t:"1714099890925",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2271",width:"200",height:"200"},Ade=[f.createElementVNode("path",{d:"M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",fill:"#0DD59D","p-id":"2272"},null,-1),f.createElementVNode("path",{d:"M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",fill:"#FFFFFF","fill-opacity":".65","p-id":"2273"},null,-1),f.createElementVNode("path",{d:"M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",fill:"#FFFFFF","p-id":"2274"},null,-1)],Dde={key:11,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},Nde=[f.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),f.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),f.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],IF=f.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"},file:{type:Object,default:()=>null},fields:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})}},setup(c){const i=c,u=f.computed(()=>i.file?Oc(i.file,i.fields):i.type);return(g,C)=>u.value==="image"?(f.openBlock(),f.createElementBlock("svg",ide,lde)):u.value==="zip"?(f.openBlock(),f.createElementBlock("svg",cde,ude)):u.value==="ppt"?(f.openBlock(),f.createElementBlock("svg",dde,fde)):u.value==="word"?(f.openBlock(),f.createElementBlock("svg",mde,hde)):u.value==="pdf"?(f.openBlock(),f.createElementBlock("svg",gde,pde)):u.value==="txt"?(f.openBlock(),f.createElementBlock("svg",bde,yde)):u.value==="audio"?(f.openBlock(),f.createElementBlock("svg",vde,Cde)):u.value==="video"?(f.openBlock(),f.createElementBlock("svg",wde,Sde)):u.value==="excel"?(f.openBlock(),f.createElementBlock("svg",_de,Ede)):u.value==="exe"?(f.openBlock(),f.createElementBlock("svg",xde,kde)):u.value==="json"?(f.openBlock(),f.createElementBlock("svg",Tde,Ade)):(f.openBlock(),f.createElementBlock("svg",Dde,Nde))}}),Ode={key:0,class:"iking-privew-annex"},Rde=["onClick"],Bde={class:"text"},Mde={class:"fileName"},Ide={class:"size"},Pde={class:"operator"},$de=["src"],Fde=f.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({name:"attachmentName",url:"attachmentId",suffix:"attachmentSuffix",size:"attachmentSize"})}},setup(c){const i=c,u=f.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...i.field})),g=f.ref(null),C=f.computed(()=>{var G,W,ae;if(!i.kkUrl||!((G=E.data)!=null&&G[u.value.url]))return"";const L=i.loadUrl?i.loadUrl:location.href;return`${i.kkUrl}/onlinePreview?url=${encodeURIComponent(xJ(`${w$(L,(W=E.data)==null?void 0:W[u.value.url])}&fullfilename=${(ae=E.data)==null?void 0:ae[u.value.name]}`))}`}),E=f.reactive({show:!1,data:{}}),A=L=>{E.data=L,E.show=!0},D=L=>{window.open(w$(i.loadUrl,L[u.value.url]))};return(L,G)=>{var W;return f.openBlock(),f.createElementBlock(f.Fragment,null,[(W=c.list)!=null&&W.length?(f.openBlock(),f.createElementBlock("div",Ode,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(c.list,(ae,ne)=>(f.openBlock(),f.createElementBlock("div",{class:"file-card",key:ne,onClick:F=>A(ae)},[f.createVNode(IF,{file:ae,class:"ikui-w-50 ikui-h-50",field:{name:"attachmentName",url:"attachmentId",suffix:"attachmentSuffix"}},null,8,["file"]),f.createElementVNode("div",Bde,[f.createElementVNode("div",Mde,f.toDisplayString(ae[u.value.name]),1),f.createElementVNode("div",Ide,f.toDisplayString(f.unref(Ane)(ae[u.value.size])),1)]),f.createElementVNode("div",Pde,[f.createVNode(f.unref(Jr),{name:"iksvg_daochu",onClick:f.withModifiers(F=>D(ae),["stop"]),bg:"",size:"default"},null,8,["onClick"]),f.createVNode(f.unref(Jr),{name:"iksvg_yulan",bg:"",size:"default"})])],8,Rde))),128))])):f.createCommentVNode("v-if",!0),f.createVNode(f.unref(Kt.ElDialog),{fullscreen:"",modelValue:E.show,"onUpdate:modelValue":G[0]||(G[0]=ae=>E.show=ae),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:G[1]||(G[1]=ae=>L.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:f.withCtx(()=>[E.show?(f.openBlock(),f.createElementBlock("iframe",{key:0,ref_key:"freamRef",ref:g,"cross-origin":"",src:C.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,$de)):f.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])],64)}}}),K0e="",TJ=ha(Fde),Lde=["src"],Vde=f.defineComponent({__name:"IkPreviewFileDialog",props:{modelValue:{type:Boolean,default:!1},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},fileName:{type:String,default:""}},setup(c){const i=c,u=f.ref(null),g=f.computed(()=>{if(!i.kkUrl||!i.url)return"";const E=i.loadUrl?i.loadUrl:location.href;return`${i.kkUrl}/onlinePreview?url=${encodeURIComponent(xJ(`${E}${i.url}${i.fileName?`&fullfilename=${i.fileName}`:""}`))}`}),C=f.ref(i.modelValue);return f.watch(()=>i.modelValue,E=>{C.value=E}),(E,A)=>(f.openBlock(),f.createBlock(f.unref(Kt.ElDialog),{fullscreen:"",modelValue:C.value,"onUpdate:modelValue":A[0]||(A[0]=D=>C.value=D),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:A[1]||(A[1]=D=>E.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:f.withCtx(()=>[g.value?(f.openBlock(),f.createElementBlock("iframe",{key:0,ref_key:"freamRef",ref:u,"cross-origin":"",src:g.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,Lde)):f.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"]))}}),X0e="",AJ=ha(Vde),Hde={class:"ik-flie-list"},zde={class:"name"},Ude={key:1},Wde=["src"],jde={class:"file-icon"},Zde={class:"file-name-loading"},Gde={class:"file-name"},qde={key:0},Yde={key:0,class:"file-size"},Kde={class:"name"},Xde={class:"file-name-loading"},Qde={class:"file-name"},Jde={class:"file-size"},efe={class:"operate-btn"},tfe={class:"card"},nfe={class:"title"},ofe={class:"ik-flie-list"},sfe={class:"name"},rfe={key:1},afe=["src"],ife={class:"file-icon"},lfe={class:"file-name-loading"},cfe={class:"file-name"},ufe={key:0},dfe={key:0,class:"file-size"},ffe={key:0},mfe=f.defineComponent({__name:"index",props:f.mergeModels({title:{type:String,default:"上传文件"},action:{type:String,default:""},type:{type:String,default:"button"},headers:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},limit:{type:Number,default:1},size:{type:Number,default:50},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},limitText:{type:String,default:""},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},kkUrl:{type:String,default:""},disabled:{type:Boolean,default:!1}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:f.mergeModels(["delete","exceed","success","error","outSize"],["update:modelValue"]),setup(c,{emit:i}){const u=c,g=i,C=f.useModel(c,"modelValue"),A={...{name:"name",url:"url",suffix:"suffix",size:"size"},...u.defaultFileds},D=f.computed(()=>u.size),L=f.ref(null),G=f.ref(null),W=f.ref([]),ae=f.ref(!1),ne=f.ref(!1),F=f.ref(null),ye=Ae=>{const Ke=Ae.size/1024/1024;if(!(Ke<D.value)){g("outSize"),Kt.ElMessage({message:`上传文件大小(${Ke.toFixed(4)}MB)超出允许最大值(${u.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3});const be=C.value.findIndex(fn=>fn.uid===Ae.uid);return C.value.splice(be,1),!1}return!0},le=()=>!1,te=(Ae,Ke)=>{var $e,be;Ae.status="ready",Ke!==void 0&&W.value.splice(Ke,1),($e=L.value)==null||$e.handleStart(Ae.raw),(be=L.value)==null||be.submit()},Se=(Ae,Ke)=>{var gn,Vt;const $e=C.value.length,be=u.limit-$e;let fn=0;for(;fn<be&&fn<Ae.length;)(gn=L.value)==null||gn.handleStart(Ae[fn]),(Vt=L.value)==null||Vt.submit(),fn++;Kt.ElMessage({message:(u==null?void 0:u.limitText)||`最大可上传${u.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),g("exceed",Ae)},ie=(Ae,Ke,$e)=>{g("success",Ae,Ke,$e)},Z=(Ae,Ke,$e)=>{W.value.push(Ke),g("error",Ae,Ke,$e)},we=Ae=>{var Ke,$e;F.value={...Ae,name:Ae[A.name],url:Ae[A.url]||(($e=(Ke=Ae==null?void 0:Ae.response)==null?void 0:Ke.data)==null?void 0:$e.id)},Ae&&Oc(Ae,A)==="video"||Ae&&Oc(Ae,A)==="image"?ne.value=!0:ae.value=!0},Bt=Ae=>{es.ikFile.downloadByOnlineUrl(Ae[A.url],Ae[A.name])},We=(Ae,Ke=!1)=>{var $e;($e=L.value)==null||$e.abort(Ae)},Q=Ae=>{var Ke;Ae.status!=="success"&&We(Ae),(Ke=L.value)==null||Ke.handleRemove(Ae),C.value=C.value.filter($e=>$e.uid!==Ae.uid),g("delete",Ae)},Be=(Ae,Ke)=>{W.value.splice(Ke,1)};return(Ae,Ke)=>{var be,fn,gn,Vt;const $e=f.resolveComponent("el-image-viewer");return f.openBlock(),f.createElementBlock(f.Fragment,null,[c.preview?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[c.type==="button"?(f.openBlock(),f.createBlock(f.unref(Kt.ElUpload),f.mergeProps({key:0,"file-list":C.value,"onUpdate:fileList":Ke[0]||(Ke[0]=$=>C.value=$),class:"ik-file-upload"},Ae.$attrs,{accept:c.accept,action:c.action,ref_key:"refUpload",ref:L,"on-change":Ae.handleChange,"before-upload":ye,"before-remove":le,"on-exceed":Se,multiple:c.multiple,headers:c.headers,limit:c.limit,"on-success":ie,"on-error":Z}),{trigger:f.withCtx(()=>[Ae.$slots.trigger?f.renderSlot(Ae.$slots,"trigger",{key:0},void 0,!0):(f.openBlock(),f.createBlock(f.unref(Kt.ElButton),{key:1,type:"primary",disabled:C.value.length===c.limit,icon:f.unref(one)},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(c.title),1)]),_:1},8,["disabled","icon"]))]),file:f.withCtx(({file:$})=>[f.createElementVNode("div",Hde,[f.createElementVNode("div",zde,[!Ae.$slots.fileIcon&&(!c.customIconData[f.unref(Oc)($,A)]||!c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon])?(f.openBlock(),f.createBlock(IF,{key:0,type:f.unref(Oc)($,A)},null,8,["type"])):!Ae.$slots.fileIcon&&c.customIconData[f.unref(Oc)($,A)]&&c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon]?(f.openBlock(),f.createElementBlock("div",Ude,[c.customIconData[f.unref(Oc)($,A)][c.customIconFields.type]==="img"?(f.openBlock(),f.createElementBlock("img",{key:0,src:c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,Wde)):(f.openBlock(),f.createElementBlock("span",{key:1,class:f.normalizeClass([c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon],"file-icon-size"])},null,2))])):f.createCommentVNode("v-if",!0),f.createElementVNode("div",jde,[f.renderSlot(Ae.$slots,"fileIcon",{file:$},void 0,!0)]),f.createElementVNode("div",Zde,[f.createElementVNode("p",Gde,[f.createTextVNode(f.toDisplayString($[A.name]||$.name)+" ",1),$.percentage&&$.percentage!==100?(f.openBlock(),f.createElementBlock("span",qde,"("+f.toDisplayString($.percentage)+"%)",1)):f.createCommentVNode("v-if",!0)]),$.percentage===100?(f.openBlock(),f.createElementBlock("p",Yde,f.toDisplayString(f.unref(C$)($.size/1024/1024))+"MB ",1)):f.createCommentVNode("v-if",!0),$.percentage&&$.percentage!==100?(f.openBlock(),f.createBlock(f.unref(Kt.ElProgress),{key:1,"text-inside":"",percentage:$.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):f.createCommentVNode("v-if",!0)])]),f.createElementVNode("div",null,[$.status==="success"?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createVNode(f.unref(Jr),{onClick:Vn=>we($),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"]),f.createVNode(f.unref(Jr),{onClick:Vn=>Q($),warning:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(f.openBlock(),f.createBlock(f.unref(Jr),{key:1,onClick:Vn=>Q($),warning:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))])])]),default:f.withCtx(()=>{var $;return[!c.preview&&c.tip?(f.openBlock(),f.createBlock(f.unref(Kt.ElTooltip),{key:0,effect:"dark",content:u.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(Kte))]),_:1})]),_:1},8,["content"])):f.createCommentVNode("v-if",!0),($=W.value)!=null&&$.length?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:1},f.renderList(W.value,(Vn,Dt)=>(f.openBlock(),f.createElementBlock("div",{class:"ik-error-flie-list",key:Vn.uid},[f.createElementVNode("div",Kde,[f.createVNode(f.unref(Kt.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:f.withCtx(()=>[f.createVNode(f.unref(cne))]),_:1}),f.createElementVNode("div",Xde,[f.createElementVNode("p",Qde,f.toDisplayString(Vn[A.name]||Vn.name),1),f.createElementVNode("p",Jde,f.toDisplayString(f.unref(C$)(Vn.size/1024/1024))+"MB ",1)])]),f.withDirectives(f.createElementVNode("div",efe,[f.createVNode(f.unref(Kt.ElIcon),{style:{"vertical-align":"middle"},onClick:Mo=>te(Vn,Dt),title:"重新上传",class:"primary"},{default:f.withCtx(()=>[f.createVNode(f.unref(v$))]),_:2},1032,["onClick"]),f.createVNode(f.unref(Kt.ElIcon),{class:"error",onClick:Mo=>Be(Vn,Dt),title:"删除"},{default:f.withCtx(()=>[f.createVNode(f.unref(y$))]),_:2},1032,["onClick"])],512),[[f.vShow,(Vn==null?void 0:Vn.status)==="fail"]])]))),128)):f.createCommentVNode("v-if",!0)]}),_:3},16,["file-list","accept","action","on-change","multiple","headers","limit"])):(f.openBlock(),f.createBlock(f.unref(Kt.ElUpload),f.mergeProps({key:1,"file-list":C.value,"onUpdate:fileList":Ke[1]||(Ke[1]=$=>C.value=$),class:"ik-file-pload-card"},Ae.$attrs,{accept:c.accept,action:c.action,ref_key:"refUpload",ref:L,"on-change":Ae.handleChange,"before-upload":ye,"before-remove":le,"on-exceed":Se,multiple:c.multiple,headers:c.headers,limit:c.limit,"on-success":ie,"on-error":Z}),{file:f.withCtx(({file:$})=>[f.createElementVNode("div",ofe,[f.createElementVNode("div",sfe,[!Ae.$slots.fileIcon&&(!c.customIconData[f.unref(Oc)($,A)]||!c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon])?(f.openBlock(),f.createBlock(IF,{key:0,type:f.unref(Oc)($,A)},null,8,["type"])):!Ae.$slots.fileIcon&&c.customIconData[f.unref(Oc)($,A)]&&c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon]?(f.openBlock(),f.createElementBlock("div",rfe,[c.customIconData[f.unref(Oc)($,A)][c.customIconFields.type]==="img"?(f.openBlock(),f.createElementBlock("img",{key:0,src:c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,afe)):(f.openBlock(),f.createElementBlock("span",{key:1,class:f.normalizeClass([c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon],"file-icon-size"])},null,2))])):f.createCommentVNode("v-if",!0),f.createElementVNode("div",ife,[f.renderSlot(Ae.$slots,"fileIcon",{file:$},void 0,!0)]),f.createElementVNode("div",lfe,[f.createElementVNode("p",cfe,[f.createTextVNode(f.toDisplayString($[A.name]||$.name)+" ",1),$.percentage&&$.percentage!==100?(f.openBlock(),f.createElementBlock("span",ufe,"("+f.toDisplayString($.percentage)+"%)",1)):f.createCommentVNode("v-if",!0)]),$.percentage===100?(f.openBlock(),f.createElementBlock("p",dfe,f.toDisplayString(f.unref(C$)($.size/1024/1024))+"MB ",1)):f.createCommentVNode("v-if",!0),$.percentage&&$.percentage!==100?(f.openBlock(),f.createBlock(f.unref(Kt.ElProgress),{key:1,"text-inside":"",percentage:$.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):f.createCommentVNode("v-if",!0)])]),c.preview?(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[c.preview||$.percentage===100?(f.openBlock(),f.createBlock(f.unref(Kt.ElIcon),{key:0,title:"预览",class:"primary"},{default:f.withCtx(()=>[f.createVNode(f.unref(ine),{onClick:Vn=>we($)},null,8,["onClick"])]),_:2},1024)):f.createCommentVNode("v-if",!0),f.createVNode(f.unref(Kt.ElIcon),{title:"下载",class:"primary"},{default:f.withCtx(()=>[f.createVNode(f.unref(gK),{onClick:Vn=>Bt($)},null,8,["onClick"])]),_:2},1024)],64)):(f.openBlock(),f.createElementBlock("div",ffe,[$.status==="success"?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createVNode(f.unref(Jr),{onClick:Vn=>we($),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"]),f.createVNode(f.unref(Jr),{onClick:Vn=>Q($),warning:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(f.openBlock(),f.createBlock(f.unref(Jr),{key:1,onClick:Vn=>Q($),warning:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))]))])]),default:f.withCtx(()=>[f.createElementVNode("div",tfe,[f.createElementVNode("div",nfe,[f.createVNode(f.unref(Jr),{name:"iksvg_img_shangchuanhetongfujianbeifen",type:"primary",bg:"",size:40}),f.createElementVNode("span",null,f.toDisplayString(c.title),1)]),f.createVNode(f.unref(Jr),{name:"iksvg_daoru",bg:"",size:40,padding:"8px"})])]),_:3},16,["file-list","accept","action","on-change","multiple","headers","limit"]))],64)),f.createVNode(f.unref(AJ),{modelValue:ae.value,"onUpdate:modelValue":Ke[2]||(Ke[2]=$=>ae.value=$),"load-url":c.loadUrl,url:(be=F.value)==null?void 0:be.url,"kk-url":c.kkUrl,"file-name":(fn=F.value)==null?void 0:fn.name},null,8,["modelValue","load-url","url","kk-url","file-name"]),(gn=F.value)!=null&&gn.url&&ne.value?(f.openBlock(),f.createBlock($e,{key:1,onClose:Ke[3]||(Ke[3]=$=>(F.value=null,ne.value=!1)),ref_key:"previewImgRef",ref:G,"url-list":[(Vt=F.value)==null?void 0:Vt.url]},null,8,["url-list"])):f.createCommentVNode("v-if",!0)],64)}}}),Q0e="",J0e="",hfe=ha(Br(mfe,[["__scopeId","data-v-3f17754e"]])),gfe={},pfe={t:"1686214149488",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8490",width:"200",height:"200"},bfe=[f.createElementVNode("path",{d:"M369.569592 512.011256c0-14.328333-11.010775-25.945929-24.591071-25.945929L86.980515 486.065328c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.998005 0C358.55984 537.959232 369.569592 526.341636 369.569592 512.011256z","p-id":"8491"},null,-1),f.createElementVNode("path",{d:"M937.019485 486.064304 679.020456 486.064304c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.999029 0c13.580297 0 24.590048-11.618619 24.590048-25.947975C961.609533 497.682923 950.598758 486.064304 937.019485 486.064304z","p-id":"8492"},null,-1),f.createElementVNode("path",{d:"M512.011768 62.389956c-13.580297 0-24.590048 11.618619-24.590048 25.945929l0 257.170151c0 14.329357 11.010775 25.946952 24.590048 25.946952s24.591071-11.618619 24.591071-25.946952L536.602839 88.335884C536.602839 74.008574 525.591041 62.389956 512.011768 62.389956z","p-id":"8493"},null,-1),f.createElementVNode("path",{d:"M512.011768 652.544967c-13.580297 0-24.590048 11.618619-24.590048 25.946952l0 257.169127c0 14.33038 11.010775 25.947975 24.590048 25.947975s24.591071-11.618619 24.591071-25.947975L536.602839 678.491918C536.602839 664.162562 525.591041 652.544967 512.011768 652.544967z","p-id":"8494"},null,-1),f.createElementVNode("path",{d:"M377.001865 413.125085c4.744048 4.737908 10.818393 7.082302 16.882506 7.082302 6.519484 0 13.039991-2.724041 17.879206-8.134261 9.317203-10.414187 8.885368-26.834158-0.9967-36.678364L228.341057 193.559391c-9.832949-9.830903-25.406646-9.388834-34.760688 1.050935-9.317203 10.414187-8.885368 26.834158 0.9967 36.678364L377.001865 413.125085z","p-id":"8495"},null,-1),f.createElementVNode("path",{d:"M646.997112 610.873892c-9.846252-9.831926-25.419949-9.388834-34.761712 1.051959-9.317203 10.414187-8.885368 26.834158 0.997724 36.678364l182.41354 181.834348c4.743024 4.738931 10.818393 7.083326 16.881482 7.083326 6.520507 0 13.039991-2.723018 17.879206-8.134261 9.317203-10.41521 8.886391-26.834158-0.9967-36.678364L646.997112 610.873892z","p-id":"8496"},null,-1),f.createElementVNode("path",{d:"M630.114606 420.207387c6.064113 0 12.139481-2.344395 16.882506-7.082302l182.425819-181.836395c9.882068-9.844206 10.313903-26.264177 0.9967-36.678364-9.341762-10.43977-24.915459-10.882861-34.760688-1.050935L613.233124 375.394762c-9.882068 9.844206-10.314926 26.264177-0.997724 36.678364C617.074615 417.483346 623.595123 420.207387 630.114606 420.207387z","p-id":"8497"},null,-1),f.createElementVNode("path",{d:"M377.025401 610.873892 194.600605 792.710286c-9.881045 9.844206-10.313903 26.263154-0.9967 36.678364 4.839215 5.411243 11.358699 8.134261 17.879206 8.134261 6.064113 0 12.138458-2.344395 16.881482-7.083326l182.425819-181.834348c9.881045-9.844206 10.313903-26.264177 0.9967-36.678364C402.469909 601.485057 386.872676 601.041966 377.025401 610.873892z","p-id":"8498"},null,-1)];function yfe(c,i){return f.openBlock(),f.createElementBlock("svg",pfe,bfe)}const vfe=Br(gfe,[["render",yfe]]),DJ=c=>(f.pushScopeId("data-v-add26920"),c=c(),f.popScopeId(),c),Cfe={key:1,class:"upload-btn"},wfe={class:"tip"},Sfe={class:"loading-statu"},_fe={class:"operate-btn"},Efe={key:0},xfe={class:"el-upload-list el-upload-list--picture-card",style:{float:"left"}},kfe=["onClick"],Tfe=DJ(()=>f.createElementVNode("span",{class:"error"},"上传错误",-1)),Afe=DJ(()=>f.createElementVNode("p",null,"点击重新上传",-1)),Dfe=["src"],Nfe={class:"demo-image__preview"},Ofe=f.defineComponent({__name:"index",props:f.mergeModels({title:{type:String,default:"上传图片"},loadUrl:{type:String,default:""},action:{type:String,default:""},headers:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},limit:{type:Number,default:50},size:{type:Number,default:50},accept:{type:String,default:"image/*"},fit:{type:String,default:"contain"},preview:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:f.mergeModels(["delete","success"],["update:modelValue"]),setup(c,{emit:i}){const u=c,g=f.useModel(c,"modelValue"),C=Ae=>Array.isArray(Ae)?Ae.map(Ke=>{var be,fn;const $e=((be=Ke.url)==null?void 0:be.startsWith("http"))||((fn=Ke.url)==null?void 0:fn.startsWith("blob"));return{...Ke,__url:$e?Ke.url:`${u.loadUrl}${Ke.url}`}}):Ae?[{url:Ae,__url:Ae!=null&&Ae.startsWith("http")||Ae!=null&&Ae.startsWith("blob")?Ae:`${u.loadUrl}${Ae}`}]:[],E=i,A=f.computed(()=>u.size),D=f.ref(null),L=f.ref([]),G=f.ref(!1),W=f.ref(0),ae=f.computed(()=>u.tipText||`最多可上传${u.limit}张图片, 每张图片不能超过${u.size}MB`),ne=(Ae,Ke)=>{},F=Ae=>!(!(Ae.type==="image/jpeg"||Ae.type==="image/png")||!(Ae.size/1024/1024<A.value)),ye=()=>!1,le=(Ae,Ke)=>{var $e,be;Ae.status="ready",Ke!==void 0&&L.value.splice(Ke,1),($e=D.value)==null||$e.handleStart(Ae.raw),(be=D.value)==null||be.submit()},te=(Ae,Ke)=>{var gn,Vt;const $e=g.value.length,be=u.limit-$e;let fn=0;for(;fn<be&&fn<(Ae==null?void 0:Ae.length);)(gn=D.value)==null||gn.handleStart(Ae==null?void 0:Ae[fn]),(Vt=D.value)==null||Vt.submit(),fn++},Se=(Ae,Ke,$e)=>{E("success",Ae,Ke,$e)},ie=(Ae,Ke,$e)=>{L.value.push({...Ke,__url:Ke.url})},Z=Ae=>{G.value=!0,W.value=g.value.findIndex(Ke=>Ke.url===Ae.url)},we=Ae=>{es.ikFile.downloadByOnlineUrl(Ae.__url||Ae.url,Ae.name)},Bt=Ae=>{var Ke;(Ke=D.value)==null||Ke.abort(Ae)},We=Ae=>{Ae.status!=="success"&&Bt(Ae),g.value=g.value.filter(Ke=>Ke.uid!==Ae.uid),E("delete",Ae)},Q=(Ae,Ke)=>{L.value.splice(Ke,1)},Be=f.computed(()=>(console.log(g.value,L.value),u.multiple?g.value.length+L.value.length<u.limit:g.value.length+L.value.length===0));return(Ae,Ke)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createVNode(f.unref(Kt.ElUpload),{class:f.normalizeClass(["ik-image-upload",{preview:c.preview,"hide-upload":!Be.value}]),ref_key:"refUpload",ref:D,"list-type":"picture-card",accept:c.accept,action:c.action,headers:c.headers,data:c.data,"file-list":g.value,"onUpdate:fileList":Ke[0]||(Ke[0]=$e=>g.value=$e),multiple:c.multiple,limit:c.limit,"on-change":ne,"before-upload":F,"before-remove":ye,"on-exceed":te,"on-success":Se,"on-error":ie,drag:""},f.createSlots({trigger:f.withCtx(()=>[Ae.$slots.trigger?f.renderSlot(Ae.$slots,"trigger",{key:0},void 0,!0):(f.openBlock(),f.createElementBlock("div",Cfe,[f.createVNode(f.unref(Kt.ElIcon),{size:20},{default:f.withCtx(()=>[f.createVNode(f.unref(Jr),{name:"iksvg_guanbibeifen"})]),_:1}),f.createElementVNode("span",null,f.toDisplayString(c.title),1)]))]),file:f.withCtx(({file:$e})=>[f.createElementVNode("div",{class:f.normalizeClass(["load-list",{loading:$e.status==="uploading"}]),"element-loading-background":"var(--ik-upload-bg)"},[f.withDirectives(f.createElementVNode("div",Sfe,[f.createVNode(vfe),f.createTextVNode(" 上传"+f.toDisplayString($e.percentage)+"% ",1)],512),[[f.vShow,$e.status==="uploading"]]),f.createCommentVNode(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),f.createVNode(f.unref(Kt.ElImage),{style:{width:"100%",height:"100%"},src:$e.__url||$e.url,"zoom-rate":1.2,"initial-index":0,fit:"contain"},null,8,["src"]),f.createElementVNode("span",_fe,[f.createElementVNode("span",null,[f.createVNode(f.unref(Kt.ElIcon),{onClick:be=>Z($e)},{default:f.withCtx(()=>[f.createVNode(f.unref(dne))]),_:2},1032,["onClick"])]),f.createElementVNode("span",null,[f.createVNode(f.unref(Kt.ElIcon),{onClick:be=>we($e)},{default:f.withCtx(()=>[f.createVNode(f.unref(gK))]),_:2},1032,["onClick"])]),c.preview?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock("span",Efe,[f.createVNode(f.unref(Kt.ElIcon),{type:"warning",onClick:be=>We($e)},{default:f.withCtx(()=>[f.createVNode(f.unref(y$))]),_:2},1032,["onClick"])]))])],2)]),default:f.withCtx(()=>[f.createElementVNode("ul",xfe,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(L.value,($e,be)=>(f.openBlock(),f.createElementBlock("li",{class:"el-upload-list__item",key:$e.uid},[f.createElementVNode("span",null,[f.createVNode(f.unref(Kt.ElIcon),{onClick:fn=>Q($e,be)},{default:f.withCtx(()=>[f.createVNode(f.unref(mK))]),_:2},1032,["onClick"])]),f.createElementVNode("div",{class:f.normalizeClass(["load-list",{loading:$e.status==="uploading",fail:$e.status==="fail"}]),"element-loading-background":"var(--ik-upload-bg)"},[f.withDirectives(f.createElementVNode("div",{class:"loading-statu",onClick:fn=>le($e,be)},[f.createVNode(f.unref(Kt.ElIcon),{size:24},{default:f.withCtx(()=>[f.createVNode(f.unref(v$))]),_:1}),Tfe,Afe],8,kfe),[[f.vShow,$e.status==="fail"]]),f.createElementVNode("img",{src:$e.__url,alt:"",style:f.normalizeStyle({"object-fit":c.fit})},null,12,Dfe)],2)]))),128))])]),_:2},[c.tip?{name:"tip",fn:f.withCtx(()=>[f.createElementVNode("span",wfe,f.toDisplayString(ae.value),1)]),key:"0"}:void 0]),1032,["class","accept","action","headers","data","file-list","multiple","limit"]),f.createCommentVNode(" 文件预览 "),f.createElementVNode("div",Nfe,[G.value?(f.openBlock(),f.createBlock(f.unref(Kt.ElImageViewer),{key:0,"lock-scroll":"","hide-on-click-modal":"",onClose:Ke[1]||(Ke[1]=()=>{G.value=!1}),"url-list":C(Ae.fileList).map($e=>$e.__url),"initial-index":W.value},null,8,["url-list","initial-index"])):f.createCommentVNode("v-if",!0)])],64))}}),cbe="",Rfe=ha(Br(Ofe,[["__scopeId","data-v-add26920"]])),Bfe=["src"],Mfe={name:"IkPrintConfig"},Ife=f.defineComponent({...Mfe,props:{id:{},srcPrefix:{default:""},token:{}},emits:["created"],setup(c,{emit:i}){const u=c,g=i,C=f.computed(()=>!!u.id),E=f.reactive({currentId:u.id,loading:!0,src:""}),A=async()=>{fetch(`${u.srcPrefix??""}/jmreport/save`,{method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json",Authorization:u.token??""}}).then(L=>L.json()).then(({code:L,result:G})=>{if(L===200){const W=G.id;E.currentId=W,E.src=`${u.srcPrefix??""}/jmreport/index/${E.currentId}?token=${u.token}&menuType=printinfo`,g("created",E.currentId)}}).catch(L=>{console.error(L)})},D=()=>{if(!C.value){A();return}E.src=`${u.srcPrefix??""}/jmreport/index/${E.currentId}?token=${u.token}`};return f.onMounted(()=>{D()}),(L,G)=>E.src?(f.openBlock(),f.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:E.src,frameborder:"0"},null,8,Bfe)):f.createCommentVNode("v-if",!0)}}),Pfe=ha(Ife),$fe=["src"],Ffe={name:"IkPrintView"},Lfe=f.defineComponent({...Ffe,props:{modelValue:{type:Boolean,default:!1},templateId:{},dataId:{},srcPrefix:{default:""},token:{},idKey:{default:"id"},width:{default:"100%"},height:{default:"calc(100vh - 186px)"}},emits:["update:modelValue"],setup(c,{emit:i}){const u=c,g=i,C=f.computed({get:()=>u.modelValue,set:D=>{g("update:modelValue",D)}}),E=f.reactive({src:"",showIframe:!1}),A=()=>{E.showIframe=!1,E.src=`${u.srcPrefix}/jmreport/view/${u.templateId}?token=${u.token??""}&${u.idKey}=${u.dataId}`,setTimeout(()=>{E.showIframe=!0},300)};return f.watch(()=>C.value,D=>{D&&A()}),f.onMounted(()=>{C.value&&A()}),(D,L)=>{const G=f.resolveComponent("el-dialog");return f.openBlock(),f.createBlock(G,{modelValue:C.value,"onUpdate:modelValue":L[0]||(L[0]=W=>C.value=W),fullscreen:"",title:"预览"},{default:f.withCtx(()=>[f.createElementVNode("div",{style:f.normalizeStyle({width:u.width,height:u.height})},[E.showIframe?(f.openBlock(),f.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:E.src,frameborder:"0"},null,8,$fe)):f.createCommentVNode("v-if",!0)],4)]),_:1},8,["modelValue"])}}}),Vfe=ha(Lfe),Hfe={class:"ik-full-calendar"},zfe=["onClick"],Ufe={key:0,class:"event-title allday"},Wfe={key:0,class:"event-title-time"},jfe={key:1,class:"event-title no-allday"},Zfe={class:"event-title-time"},Gfe={class:"event-title-text"},qfe={name:"IkFullCalendar"},Yfe=f.defineComponent({...qfe,props:{options:{default:{}},removable:{type:Boolean,default:!0},modelValue:{default:[]},tooltipFieldName:{default:"remark"}},emits:["added","deleted","update:modelValue","eventClick","deleteClick","dateSelect"],setup(c,{expose:i,emit:u}){const g=c,C=f.computed({get:()=>g.modelValue,set:ie=>E("update:modelValue",ie)}),E=u,A=f.ref(null),D=ie=>{},L=f.ref("dayGridMonth"),G=ie=>{E("dateSelect",ie)},W=ie=>{E("eventClick",ie)},ae=ie=>{E("deleteClick",ie)},ne=()=>({locale:vK,plugins:[aJ,wJ,hJ],headerToolbar:{left:"dayGridMonth,timeGridWeek,timeGridDay prev,today,next",center:"title",right:""},firstDay:1,initialView:"dayGridMonth",weekends:!0,editable:!0,selectable:!0,selectMirror:!0,dateClick:D,select:G,...g.options,events:C.value}),F=f.reactive({timeType:"month",options:ne()}),ye=f.ref(null),le=()=>{var ie;F.options=ne(),(ie=A.value)==null||ie.buildOptions(F.options)};i({...{prev:()=>{var ie;(ie=ye.value)==null||ie.prev()},next:()=>{var ie;(ie=ye.value)==null||ie.next()},today:()=>{var ie;(ie=ye.value)==null||ie.today()},changeView:ie=>{var Z;(Z=ye.value)==null||Z.changeView(ie),L.value=ie},getDate:()=>{var ie;return(ie=ye.value)==null?void 0:ie.getDate()},getView:()=>{var ie;return(ie=ye.value)==null?void 0:ie.view},unselect:()=>{var ie;return(ie=ye.value)==null?void 0:ie.unselect()}}}),f.watch(()=>C.value,()=>{le()});const Se=()=>{var ie;ye.value=(ie=A.value)==null?void 0:ie.getApi()};return f.onMounted(()=>{Se()}),(ie,Z)=>{const we=f.resolveComponent("el-tooltip"),Bt=f.resolveComponent("el-icon");return f.openBlock(),f.createElementBlock("div",Hfe,[f.createVNode(f.unref(KQ),{ref_key:"_ref",ref:A,options:F.options,style:{height:"100%"}},{eventContent:f.withCtx(We=>[f.createElementVNode("div",{class:"title-line",onClick:Q=>W(We)},[f.createVNode(we,null,{content:f.withCtx(()=>{var Q,Be;return[f.createCommentVNode(" {{arg}} "),f.createTextVNode(" "+f.toDisplayString((Be=(Q=We.event)==null?void 0:Q.extendedProps)==null?void 0:Be[g.tooltipFieldName]),1)]}),default:f.withCtx(()=>[We.event.allDay?(f.openBlock(),f.createElementBlock("span",Ufe,[L.value==="dayGridMonth"?(f.openBlock(),f.createElementBlock("span",Wfe,f.toDisplayString("(全天)"))):f.createCommentVNode("v-if",!0),f.createElementVNode("span",null,f.toDisplayString(We.event.title),1)])):(f.openBlock(),f.createElementBlock("span",jfe,[f.createElementVNode("span",Zfe,f.toDisplayString(f.unref(es.ikDate).toDateTime(We.event.startStr,"HH:mm")),1),f.createElementVNode("span",Gfe,f.toDisplayString(We.event.title),1)]))]),_:2},1024),g.removable?(f.openBlock(),f.createBlock(Bt,{key:0,size:16,onClick:f.withModifiers(Q=>ae(We),["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(hK))]),_:2},1032,["onClick"])):f.createCommentVNode("v-if",!0)],8,zfe)]),_:1},8,["options"])])}}}),dbe="",Kfe=Br(Yfe,[["__scopeId","data-v-f0925ff8"]]);let Xfe=class{constructor(){Xw(this,"id",new Date().getTime());Xw(this,"title","");Xw(this,"start","");Xw(this,"end","");Xw(this,"allDay",!1);Xw(this,"extendedProps",{})}};const NJ=ha(Kfe),Qfe={class:"ik-svg-icon ik-icon inline-block inline-flex justify-center line-height-[0]"},Jfe={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},eme=["xlink:href"],tme=["src"],nme={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},ome=["xlink:href"],sme=["src"],Jr=ha(f.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},opacity:{default:.5},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},primary:{type:Boolean},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(c){const i=c,u=f.computed(()=>{var C,E;return/^http?:\/\//.test(i.name)?"img":/i-[^:]+:[^:]+/.test(i.name)?"unocss":(C=i.name)!=null&&C.startsWith("iksig")?"iksig":(E=i.name)!=null&&E.includes(":")?"iconify":"svg"}),g=f.computed(()=>{const C=[];if(i.flip)switch(i.flip){case"horizontal":C.push("rotateY(180deg)");break;case"vertical":C.push("rotateX(180deg)");break;case"both":C.push("rotateX(180deg)"),C.push("rotateY(180deg)");break}return i.rotate&&C.push(`rotate(${i.rotate%360}deg)`),{...i.color&&{color:i.color},...i.size&&{fontSize:typeof i.size=="number"?`${i.size}px`:i.size},...C.length&&{transform:C.join(" ")},padding:i.padding,...i.color&&u.value!=="iksig"?{"--ik-color-icon-dark":i.color,"--ik-color-icon-light":es.ikColor.setOpacity(i.color,i.opacity||.4)}:{},...i.type==="primary"||i.primary?{"--ik-color-icon-dark":"var(--ik-theme-color)","--ik-color-icon-light":"var(--ik-color-icon-light-hover)","--ik-color-bg-icon":"var(--ik-color-bg-button-secondary)"}:i.type==="warning"?{"--ik-color-icon-dark":"var(--ik-color-error)","--ik-color-icon-light":"var(--ik-color-icon-error-light)","--ik-color-bg-icon":"var(--ik-color-icon-error-bg)"}:{}}});return(C,E)=>{const A=f.resolveComponent("el-tooltip");return f.openBlock(),f.createElementBlock("span",Qfe,[C.notip||!C.title?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[C.name]:u.value==="unocss","show-bg":C.showBg||C.bg,default:C.size==="default",small:C.size==="small",big:C.size==="big",warning:C.warning,primary:C.primary,active:C.active,disabled:C.disabled}]),style:f.normalizeStyle(g.value)},[f.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),u.value==="iksig"?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(`iksig ${C.name}`),style:f.normalizeStyle(g.value)},null,6)):u.value==="svg"?(f.openBlock(),f.createElementBlock("svg",Jfe,[f.createElementVNode("use",{"xlink:href":`#${C.name}`},null,8,eme)])):u.value==="img"?(f.openBlock(),f.createElementBlock("img",{key:2,src:C.name,class:"h-[1em] w-[1em]"},null,8,tme)):f.createCommentVNode("v-if",!0)],6)):(f.openBlock(),f.createBlock(A,{key:1,content:C.title,placement:"right"},{default:f.withCtx(()=>[f.createElementVNode("i",{class:f.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[C.name]:u.value==="unocss","show-bg":C.showBg||C.bg,default:C.size==="default",primary:C.primary,small:C.size==="small",big:C.size==="big",warning:C.warning,active:C.active}]),style:f.normalizeStyle(g.value)},[u.value==="iksig"?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(`iksig ${C.name}`),style:f.normalizeStyle(g.value)},null,6)):u.value==="svg"?(f.openBlock(),f.createElementBlock("svg",nme,[f.createElementVNode("use",{"xlink:href":`#${C.name}`},null,8,ome)])):u.value==="img"?(f.openBlock(),f.createElementBlock("img",{key:2,src:C.name,class:"h-[1em] w-[1em]"},null,8,sme)):f.createCommentVNode("v-if",!0)],6)]),_:1},8,["content"]))])}}})),PF=c=>(f.pushScopeId("data-v-e308f501"),c=c(),f.popScopeId(),c),rme={class:"ik-schedule"},ame={class:"ik-schedule__left"},ime={class:"ik-schedule__header"},lme={class:"ik-schedule__title"},cme=PF(()=>f.createElementVNode("div",{class:"ik-schedule__header-right"},null,-1)),ume={class:"ik-schedule__body"},dme={style:{"font-size":"18px"}},fme={key:0},mme={style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},hme={key:0,style:{"margin-left":"2%"}},gme=PF(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),pme={key:1},bme=PF(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),yme={class:"dialog-footer"},vme={name:"IkSchedule"},Cme=f.defineComponent({...vme,props:{modelValue:{default:[]},options:{default:{initialView:"dayGridMonth"}},editVisible:{type:Boolean},removable:{type:Boolean,default:!0}},emits:["update:modelValue","added","updated","deleted","editOpen","submit","update:editVisible","submitAdd","submitUpdate","submitDelete"],setup(c,{expose:i,emit:u}){var Q;const g=c,C=u,E=!!f.useSlots().form,A=f.computed({get:()=>g.modelValue,set:Be=>{C("update:modelValue",Be)}}),D=f.computed(()=>({...g.options,headerToolbar:!1})),L=f.reactive({currentView:(Q=g.options)==null?void 0:Q.initialView,viewTitle:"",rightLabel:"今日",timeType:"month",currentDate:null}),G=f.ref(null),W=Be=>{var Ae;(Ae=G.value)==null||Ae.changeView(Be),L.currentView=Be,ae()},ae=()=>{var Ae;const Be=(Ae=G.value)==null?void 0:Ae.getView();L.viewTitle=Be==null?void 0:Be.title},ne=()=>{var Be;(Be=G.value)==null||Be.prev(),ae()},F=()=>{var Be;(Be=G.value)==null||Be.next(),ae()},ye=()=>{var Be;(Be=G.value)==null||Be.today(),ae()},le=Be=>L.currentView===Be,te=f.ref(null),Se={createDefaultForm:()=>({title:"",allDay:!1,type:1,startDate:"",endDate:"",startTime:"",endTime:"",location:"",remark:""}),close:()=>{Z.value=!1},customSubmit:Be=>{var Ke,$e;let Ae={...Be,id:void 0,allDay:ie.form.allDay,start:(Ke=ie.selectInfo)==null?void 0:Ke.startStr,end:($e=ie.selectInfo)==null?void 0:$e.endStr};Se.operation(Ae),Se.close()},operation:Be=>{var Ae;ie.operation==="add"?C("submitAdd",Be):(Be.id=(Ae=ie.editEvent)==null?void 0:Ae.id,C("submitUpdate",Be))},submit:async()=>{var Ae,Ke;if(E){C("submit");return}if(!ie.form.title){Kt.ElMessage.info("标题不能为空");return}if(!ie.form.allDay&&(!ie.form.startTime||!ie.form.endTime)){Kt.ElMessage.info("时间不能为空");return}let Be={id:void 0,title:ie.form.title,allDay:ie.form.allDay,start:(Ae=ie.selectInfo)==null?void 0:Ae.startStr,end:(Ke=ie.selectInfo)==null?void 0:Ke.endStr,extendedProps:{...ie.form}};if(Be.allDay)Be.start=es.ikDate.toDate(ie.form.startDate),Be.end=es.ikDate.toDate(ie.form.endDate);else{const $e=es.ikDate.toDate(ie.form.startDate),be=es.ikDate.toDateTime(ie.form.startTime).substring(10),fn=es.ikDate.toDateTime(ie.form.endTime).substring(10);Be.start=`${$e}${be}`,Be.end=`${$e}${fn}`,Be.extendedProps.startTime=Be.start,Be.extendedProps.endTime=Be.end}Se.operation(Be),Se.close()},reset:()=>{var Be;ie.form=Se.createDefaultForm(),(Be=te.value)==null||Be.clearValidate()},edit:()=>{ie.editable=!0,ie.title="编辑日程"},cancelEdit:()=>{ie.editable=!1,ie.title="日程信息"},del:()=>{We(ie.clickInfo)}},ie=f.reactive({operation:"update",selectInfo:{},editEvent:void 0,title:"",visible:!1,allDay:!1,form:Se.createDefaultForm(),editable:!1,clickInfo:null}),Z=f.computed({get:()=>ie.visible,set:Be=>{ie.visible=Be}}),we=Be=>{var Ae;if(ie.form.allDay=Be.allDay,ie.selectInfo=Be,Se.reset(),Be.view.type=="dayGridMonth"){let Ke=Be.end.getTime()-864e5;L.timeType="month",ie.form.startDate=es.ikDate.toYMD(Be.start),ie.form.endDate=es.ikDate.toYMD(new Date(Ke)),ie.form.allDay=!0}else Be.view.type=="timeGridWeek"?L.timeType="week":Be.view.type=="timeGridDay"&&(L.timeType="day"),ie.form.startDate=es.ikDate.toYMD(Be.start),ie.form.endDate=es.ikDate.toYMD(Be.start),ie.form.startTime=es.ikDate.toDateTime(Be.start),ie.form.endTime=es.ikDate.toDateTime(Be.end);(Ae=G.value)==null||Ae.unselect(),f.nextTick(()=>{ie.title="新建日程",ie.operation="add",ie.editable=!0,Z.value=!0,C("editOpen",JSON.parse(JSON.stringify(ie)))})},Bt=Be=>{ie.title="日程信息",ie.operation="update",ie.clickInfo=Be,ie.editEvent=Be.event;debugger;ie.editEvent.allDay?(ie.form.startDate=ie.editEvent.startStr,ie.form.endDate=ie.editEvent.startStr):(ie.form.startDate=ie.editEvent.startStr,ie.form.startTime=ie.editEvent.start,ie.form.endTime=ie.editEvent.end),ie.form.title=ie.editEvent.title,ie.form.allDay=ie.editEvent.allDay,Dte.copyValue(ie.form,ie.editEvent.extendedProps),Se.cancelEdit(),Z.value=!0,C("editOpen",JSON.parse(JSON.stringify(ie)))},We=Be=>{Kt.ElMessageBox.confirm(`你确定删除事件 ${Be.event.title} ?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Se.close(),C("submitDelete",Be.event.id)})};return i({customSubmit:Be=>Se.customSubmit(Be)}),f.onMounted(()=>{ae()}),(Be,Ae)=>{const Ke=f.resolveComponent("el-button"),$e=f.resolveComponent("el-button-group"),be=f.resolveComponent("el-icon"),fn=f.resolveComponent("el-space"),gn=f.resolveComponent("el-input"),Vt=f.resolveComponent("el-form-item"),$=f.resolveComponent("el-date-picker"),Vn=f.resolveComponent("el-time-picker"),Dt=f.resolveComponent("el-checkbox"),Mo=f.resolveComponent("el-form"),vn=f.resolveComponent("el-dialog");return f.openBlock(),f.createElementBlock("div",rme,[f.createElementVNode("div",ame,[f.createElementVNode("div",ime,[f.createVNode(fn,{style:{"flex-shrink":"0"},size:24},{default:f.withCtx(()=>[f.createVNode($e,null,{default:f.withCtx(()=>[f.createVNode(Ke,{onClick:Ae[0]||(Ae[0]=at=>W("dayGridMonth")),type:le("dayGridMonth")?"primary":""},{default:f.withCtx(()=>[f.createTextVNode("月")]),_:1},8,["type"]),f.createVNode(Ke,{onClick:Ae[1]||(Ae[1]=at=>W("timeGridWeek")),type:le("timeGridWeek")?"primary":""},{default:f.withCtx(()=>[f.createTextVNode("周")]),_:1},8,["type"]),f.createVNode(Ke,{onClick:Ae[2]||(Ae[2]=at=>W("timeGridDay")),type:le("timeGridDay")?"primary":""},{default:f.withCtx(()=>[f.createTextVNode("日")]),_:1},8,["type"])]),_:1}),f.createElementVNode("span",lme,f.toDisplayString(L.viewTitle),1),f.createVNode($e,{style:{"flex-shrink":"0"}},{default:f.withCtx(()=>[f.createVNode(Ke,{onClick:ne},{default:f.withCtx(()=>[f.createVNode(be,null,{default:f.withCtx(()=>[f.createVNode(f.unref(cK))]),_:1})]),_:1}),f.createVNode(Ke,{onClick:ye},{default:f.withCtx(()=>[f.createTextVNode("今天")]),_:1}),f.createVNode(Ke,{onClick:F},{default:f.withCtx(()=>[f.createVNode(be,null,{default:f.withCtx(()=>[f.createVNode(f.unref(uK))]),_:1})]),_:1})]),_:1})]),_:1}),cme]),f.createElementVNode("div",ume,[f.createVNode(f.unref(NJ),{removable:Be.removable,onDateSelect:we,onDeleteClick:We,onEventClick:Bt,ref_key:"_refCalendar",ref:G,options:D.value,modelValue:A.value,"onUpdate:modelValue":Ae[3]||(Ae[3]=at=>A.value=at)},null,8,["removable","options","modelValue"])])]),f.createCommentVNode(" 新建/修改对话框 "),f.createVNode(vn,{width:"700px",modelValue:Z.value,"onUpdate:modelValue":Ae[11]||(Ae[11]=at=>Z.value=at)},{header:f.withCtx(()=>[f.createElementVNode("div",null,[f.createElementVNode("span",dme,f.toDisplayString(ie.title),1),ie.operation==="update"?(f.openBlock(),f.createElementBlock("span",fme,[ie.editable?(f.openBlock(),f.createBlock(f.unref(Jr),{key:1,style:{"margin-left":"4px"},name:"iksvg_qiehuan-daohang",onClick:Se.cancelEdit},null,8,["onClick"])):(f.openBlock(),f.createBlock(f.unref(Jr),{key:0,style:{"margin-left":"4px"},name:"iksvg_xiugai",onClick:Se.edit},null,8,["onClick"]))])):f.createCommentVNode("v-if",!0)])]),footer:f.withCtx(()=>[f.createElementVNode("span",yme,[f.renderSlot(Be.$slots,"form-footer",{},()=>[f.createElementVNode("span",null,[f.createVNode(Ke,{onClick:Se.close},{default:f.withCtx(()=>[f.createTextVNode("取消")]),_:1},8,["onClick"]),f.createVNode(Ke,{onClick:Se.del},{default:f.withCtx(()=>[f.createTextVNode("删除")]),_:1},8,["onClick"]),f.createVNode(Ke,{type:"primary",onClick:Se.submit},{default:f.withCtx(()=>[f.createTextVNode("确定")]),_:1},8,["onClick"])])],!0)])]),default:f.withCtx(()=>[f.renderSlot(Be.$slots,"form",{},()=>[f.createVNode(Mo,{ref_key:"_editFormRef",ref:te,model:ie.form,disabled:!ie.editable},{default:f.withCtx(()=>[f.createVNode(Vt,null,{default:f.withCtx(()=>[f.createVNode(be,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(dK))]),_:1}),f.createVNode(gn,{modelValue:ie.form.title,"onUpdate:modelValue":Ae[4]||(Ae[4]=at=>ie.form.title=at),placeholder:"请输入标题",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1}),f.createVNode(Vt,null,{default:f.withCtx(()=>[f.createVNode(be,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(fK))]),_:1}),f.createElementVNode("div",mme,[f.createVNode($,{disabled:"",modelValue:ie.form.startDate,"onUpdate:modelValue":Ae[5]||(Ae[5]=at=>ie.form.startDate=at),type:"date",placeholder:"开始日期",style:f.normalizeStyle({width:ie.form.allDay?"45%":"90%"})},null,8,["modelValue","style"]),ie.form.allDay?(f.openBlock(),f.createElementBlock("div",pme,[bme,f.createVNode($,{disabled:"",modelValue:ie.form.endDate,"onUpdate:modelValue":Ae[8]||(Ae[8]=at=>ie.form.endDate=at),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(f.openBlock(),f.createElementBlock("div",hme,[f.createVNode(Vn,{modelValue:ie.form.startTime,"onUpdate:modelValue":Ae[6]||(Ae[6]=at=>ie.form.startTime=at),type:"datetime",placeholder:"开始时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),gme,f.createVNode(Vn,{modelValue:ie.form.endTime,"onUpdate:modelValue":Ae[7]||(Ae[7]=at=>ie.form.endTime=at),type:"datetime",placeholder:"结束时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),f.createVNode(Dt,{modelValue:ie.form.allDay,"onUpdate:modelValue":Ae[9]||(Ae[9]=at=>ie.form.allDay=at),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])]),_:1}),f.createVNode(Vt,null,{default:f.withCtx(()=>[f.createVNode(be,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(Wte))]),_:1}),f.createVNode(gn,{type:"textarea",modelValue:ie.form.remark,"onUpdate:modelValue":Ae[10]||(Ae[10]=at=>ie.form.remark=at),placeholder:"描述",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])],!0)]),_:3},8,["modelValue"])])}}}),mbe="",wme=ha(Br(Cme,[["__scopeId","data-v-e308f501"]])),Sme={key:0,class:"ik-tabs-split overflow-overlay gl-padding"},_me=f.defineComponent({__name:"IkPageTabs",props:f.mergeModels({tabs:{type:Array,default:()=>[]},defaultSlot:{type:Boolean,default:!0},lazyTab:{type:Boolean,default:!1},split:{type:Boolean,default:!1}},{modelValue:{type:String||Number,default:""},modelModifiers:{}}),emits:f.mergeModels(["tabClick","search"],["update:modelValue"]),setup(c,{emit:i}){const u=c,g=i,C=f.useModel(c,"modelValue"),E=f.ref(new Map);for(const D of u.tabs)E.value.set(D.id,u.lazyTab?D.id!==C.value:!1);const A=D=>{C.value=D.paneName,E.value.get(D.paneName)||g("tabClick",D.paneName,D),E.value.set(D.paneName,!1)};return(D,L)=>{const G=f.resolveComponent("el-tab-pane"),W=f.resolveComponent("el-tabs");return f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createCommentVNode(' <div class="flex-1 contents"> '),f.createVNode(W,{modelValue:C.value,"onUpdate:modelValue":L[0]||(L[0]=ae=>C.value=ae),class:f.normalizeClass(["ik-tabs",{"is-default":D.$slots.default,"split gl-padding gl-container":c.split}]),onTabClick:A},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(c.tabs,ae=>(f.openBlock(),f.createBlock(G,{key:ae.id,disabled:ae==null?void 0:ae.disabled,name:ae.id},{label:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(ae.label),1)]),default:f.withCtx(()=>[!D.$slots.default&&!E.value.get(ae.id)&&!c.split?f.renderSlot(D.$slots,ae.id,{key:0},void 0,!0):f.createCommentVNode("v-if",!0)]),_:2},1032,["disabled","name"]))),128)),f.createCommentVNode(" 当存在默认slot且需要展示默认slot时 "),D.$slots.default&&c.defaultSlot&&!c.split?f.renderSlot(D.$slots,"default",{key:0},void 0,!0):f.createCommentVNode("v-if",!0)]),_:3},8,["modelValue","class"]),c.split?(f.openBlock(),f.createElementBlock("div",Sme,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(c.tabs,ae=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[!D.$slots.default&&!E.value.get(ae.id)?f.renderSlot(D.$slots,ae.id,{key:0},void 0,!0):f.createCommentVNode("v-if",!0)],64))),256)),D.$slots.default&&c.defaultSlot?f.renderSlot(D.$slots,"default",{key:0},void 0,!0):f.createCommentVNode("v-if",!0)])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" </div> ")],64)}}}),gbe="",Eme=ha(Br(_me,[["__scopeId","data-v-e282a7f2"]]));var F1=(c=>(c.input="input",c.area="area",c.number="number",c.select="select",c.date="date",c.datetime="datetime",c.checkbox="checkbox",c.radio="radio",c.treeselect="treeselect",c.choosePerson="choosePerson",c))(F1||{}),k2=(c=>(c.year="year",c.month="month",c.date="date",c.dates="dates",c.datetime="datetime",c.week="week",c.datetimerange="datetimerange",c.daterange="daterange",c.monthrange="monthrange",c))(k2||{});function OJ(c){return typeof c=="function"||Object.prototype.toString.call(c)==="[object Object]"&&!f.isVNode(c)}const xme=f.defineComponent({name:"IkSearchAuto",props:{list:{required:!0,type:Array,default:()=>[]},shadow:{type:String,default:"never"},immediate:{type:Boolean,default:!0},tab:{type:String,default:""},search:{type:Function,default:null},loading:{type:Boolean,default:!1}},emits:["search","pickerChange"],setup(c,{emit:i,expose:u}){const g=f.ref(),C={},E=f.ref({}),A=f.ref([]),D=f.ref({...E.value});f.watch(A,(Rt,ao)=>{const ft=ao.filter(zt=>!Rt.includes(zt));if(ft.length){let zt=!1;ft.forEach(qe=>{D.value[qe]!==void 0&&(zt=!0),D.value[qe]=void 0}),zt&&i("search",D.value)}});const L=()=>{A.value=[],c.list.forEach(Rt=>{var ao,ft;E.value[Rt.key]=E.value[Rt.value],C[Rt.key]=C[Rt.value],A.value.push(Rt.key),(ao=D.value)[ft=Rt.key]??(ao[ft]=Rt.value||null)})};L(),f.watch(()=>c.list,()=>{L()});const G=f.computed(()=>A.value.map(Rt=>c.list.find(ao=>ao.key===Rt))),W=()=>{var Rt;D.value.page=1,(Rt=c.search)==null||Rt.call(c,D.value),i("search",D.value)};u({resetForm:()=>{var Rt,ao;(ao=(Rt=g.value)==null?void 0:Rt.resetFields)==null||ao.call(Rt),W()},reRequest:()=>{W()}});const F=()=>{var Rt;i("search",D.value),(Rt=c.search)==null||Rt.call(c,D.value)},ye=Rt=>{Rt.key==="Enter"&&W()},le=()=>{var Rt;(Rt=g.value)==null||Rt.resetFields(),W()};c.immediate&&W();const te=({maxlength:Rt,minlength:ao,key:ft,disabled:zt,placeholder:qe,formProp:lt={},value:K,label:fo})=>f.createVNode(Kt.ElInput,f.mergeProps({modelValue:D.value[ft],"onUpdate:modelValue":[An=>D.value[ft]=An,An=>D.value[ft]=An],clearable:!0,maxlength:Rt,minlength:ao,disabled:zt,onBlur:()=>F()},lt,{placeholder:(lt==null?void 0:lt.placeholder)||qe||`请输入${fo||""}`}),null),Se=({key:Rt,placeholder:ao,max:ft,min:zt,disabled:qe,precision:lt,step:K=1,label:fo,formProp:An={}})=>f.createVNode(Kt.ElInputNumber,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":wo=>D.value[Rt]=wo,clearable:!0,max:ft,min:zt,disabled:qe,precision:lt,step:K,onChange:()=>F()},An,{placeholder:(An==null?void 0:An.placeholder)||ao||`请输入${fo||""}`}),null),ie=({key:Rt,placeholder:ao,disabled:ft,options:zt,label:qe,multiple:lt=!1,filterable:K=!0,formProp:fo={}})=>f.createVNode(Kt.ElSelect,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":An=>D.value[Rt]=An,clearable:!0,disabled:ft,multiple:lt,filterable:K,onChange:()=>F()},fo,{placeholder:(fo==null?void 0:fo.placeholder)||ao||`请选择${qe||""}`}),{default:()=>[zt==null?void 0:zt.map(An=>f.createVNode(Kt.ElOption,{key:An.value,label:An.label,value:An.value},null))]}),Z=({key:Rt,disabled:ao,options:ft,formProp:zt={}})=>f.createVNode(Kt.ElRadioGroup,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":qe=>D.value[Rt]=qe,disabled:ao,onChange:()=>F()},zt),{default:()=>[ft==null?void 0:ft.map(qe=>(zt==null?void 0:zt.radioType)==="button"?f.createVNode(Kt.ElRadioButton,{key:qe.value,label:qe.value,name:qe.label},null):f.createVNode(Kt.ElRadio,{key:qe.value,label:qe.value,name:qe.label},null))]}),we=({key:Rt,disabled:ao,options:ft,min:zt,max:qe,formProp:lt={}})=>f.createVNode(Kt.ElCheckboxGroup,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":K=>D.value[Rt]=K,disabled:ao,max:qe,min:zt,onChange:()=>F()},lt),{default:()=>[ft==null?void 0:ft.map(K=>f.createVNode(Kt.ElCheckbox,{key:K.value,label:K.label,value:K.value},null))]}),Bt=({key:Rt,label:ao,formProp:ft={},placeholder:zt})=>f.createVNode(Kt.ElDatePicker,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":qe=>D.value[Rt]=qe,onChange:()=>F()},ft,{placeholder:(ft==null?void 0:ft.placeholder)||zt||`请选择${ao}时间`}),null),We=({key:Rt,disabled:ao,editable:ft=!0,startPlaceholder:zt="开始日期",endplaceholder:qe="结束日期",dateType:lt=k2.date,format:K,placeholder:fo="请选择日期",popperclass:An,rangeSeparator:wo="-",defaultValue:Oo,defaultTime:ea,valueFormat:mt,disabledDate:Gt=()=>!1,formProp:ct={}})=>{let Ve=K;if(Ve)switch(lt){case k2.date:case k2.dates:Ve="YYYY-MM-DD";break;case k2.year:Ve="YYYY";break;case k2.month:Ve="YYYY-MM";break;case k2.week:Ve="YYYY-MM-DD";break;default:Ve=""}return f.createVNode(Kt.ElDatePicker,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":xn=>D.value[Rt]=xn,onChange:()=>F(),disabled:ao,type:lt,editable:ft,startPlaceholder:zt,endPlaceholder:qe,rangeSeparator:wo,format:Ve,popperClass:An,defaultValue:Oo,defaultTime:ea,valueFormat:mt,disabledDate:Gt},ct,{placeholder:(ct==null?void 0:ct.placeholder)||fo||"请选择日期"}),null)},Q=({key:Rt,options:ao,multiple:ft=!1,filterable:zt=!0,nodeKey:qe="id",props:lt,highlightCurrent:K=!0,defaultExpandAll:fo=!1,expandOnClickNode:An=!1,placeholder:wo="全部",checkOnClickNode:Oo=!1,showCheckbox:ea=!1,checkStrictly:mt=!0,defaultCheckedKeys:Gt=[],currentNodeKey:ct="",accordion:Ve=!1,formProp:xn={},label:_t})=>f.createVNode(Kt.ElTreeSelect,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":vt=>D.value[Rt]=vt,data:ao,onChange:()=>F(),clearable:!0,multiple:ft,props:lt,placeholder:wo,filterable:zt,nodeKey:qe,highlightCurrent:K,defaultExpandAll:fo,expandOnClickNode:An,checkOnClickNode:Oo,showCheckbox:ea,checkStrictly:mt,defaultCheckedKeys:Gt,currentNodeKey:ct,accordion:Ve},xn,{placeholder:(xn==null?void 0:xn.placeholder)||wo||`请选择${_t||""}`}),null),Be=({key:Rt,selectKey:ao,placeholder:ft,disabled:zt,options:qe,multiple:lt=!1,filterable:K=!0,formProp:fo={}})=>f.createVNode(Kt.ElInput,f.mergeProps({disabled:zt,modelValue:D.value[Rt],"onUpdate:modelValue":An=>D.value[Rt]=An,onBlur:()=>F()},fo,{placeholder:(fo==null?void 0:fo.placeholder)||ft||"全部"}),{prepend:()=>f.createVNode(Kt.ElSelect,f.mergeProps({disabled:zt,multiple:lt,filterable:K,modelValue:D.value[ao],"onUpdate:modelValue":An=>D.value[ao]=An,onChange:()=>F()},fo),{default:()=>[qe==null?void 0:qe.map(An=>f.createVNode(Kt.ElOption,{key:An.value,label:An.label,value:An.value},null))]})}),Ae="",Ke="iking",$e=f.ref(null),be=f.ref([]),fn=f.ref(!1),gn=f.ref(""),Vt=new Map,$=Rt=>{fn.value=!0,be.value=Vt.has(Rt)?Vt.get(Rt):D.value[Rt],gn.value=Rt},Vn=()=>{Vt.set(gn.value,[]),gn.value="",F()},Dt=Rt=>{var ao,ft;D.value[gn.value]=(ao=Rt.list.map(zt=>zt.elementName))==null?void 0:ao.join(","),Vt.set(gn.value,Rt.list),i("search",D.value),i("pickerChange",Rt),(ft=c.search)==null||ft.call(c,D.value)},Mo=({key:Rt,placeholder:ao,typeOption:ft,_list:zt,maxlength:qe,minlength:lt,disabled:K,formProp:fo})=>f.createVNode(Kt.ElInput,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":An=>D.value[Rt]=An,clearable:!0,maxlength:qe,minlength:lt,disabled:K},fo,{onClick:()=>$(Rt),onClear:()=>Vn(),placeholder:(fo==null?void 0:fo.placeholder)||ao||`点击选择${label||"人员"}`}),null),vn=Rt=>{switch(Rt.type){case"":case void 0:case F1.input:case"el-input":return te(Rt);case F1.number:case"el-input-number":return Se(Rt);case F1.select:case"el-select":return ie(Rt);case F1.checkbox:case"el-checkbox":return we(Rt);case F1.radio:case"el-radio-group":case"el-radio":return Z(Rt);case F1.date:case"el-date-picker":return We(Rt);case"el-time-select":return Bt(Rt);case F1.treeselect:case"el-tree-select":return Q(Rt);case F1.choosePerson:return Mo(Rt);case"select-input":return Be(Rt);default:return f.createVNode(f.Fragment,null,null)}},at=f.computed(()=>{var ft;const Rt=[],ao=G.value.length-1;return(ft=G.value)==null||ft.forEach((zt,qe)=>{let lt,K;if(!zt)return[];const fo=zt.col||1;Rt.push(f.createVNode(Kt.ElCol,{xl:{span:fo*6},lg:{span:fo*6},md:{span:fo*12},sm:{span:fo*24}},{default:()=>[qe===ao?f.createVNode("div",{class:"last-form"},[f.createVNode(Kt.ElFormItem,{label:zt.type==="select-input"?"":zt.label,prop:zt.key},OJ(lt=vn(zt))?lt:{default:()=>[lt]}),f.createVNode(Jr,{name:"icon-sousuo1",pop:!0,title:"搜索",size:"big","show-bg":!0,width:40,onClick:()=>F()},null),f.createVNode(Jr,{name:"icon-zhongzhi",pop:!0,title:"重置并搜索",size:"big","show-bg":!0,width:40,onClick:()=>le()},null)]):f.createVNode(Kt.ElFormItem,{label:zt.type==="select-input"?"":zt.label,prop:zt.key},OJ(K=vn(zt))?K:{default:()=>[K]})]}))}),Rt});return()=>f.createVNode(f.Fragment,null,[f.createVNode(Kt.ElCard,{class:"gl-search-card",shadow:c.shadow},{default:()=>[f.createVNode(Kt.ElForm,{class:"auto-search-form",onKeyup:ye,ref:g,model:D.value},{default:()=>[f.createVNode(Kt.ElRow,{gutter:16},{default:()=>[at.value]})]})]}),f.createVNode(rk,{ref:$e.value,modelValue:be.value,"onUpdate:modelValue":Rt=>be.value=Rt,show:fn.value,"onUpdate:show":Rt=>fn.value=Rt,"append-to-body":!0,api:{methods:"post",url:`${Ae}/server/component/pick/mix`,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:Ke}},tabs:["group","role","post"],chooseType:["user"],typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},propOption:{name:"elementName",id:"elementId",type:"elementType"},onOk:Rt=>Dt(Rt)},null)])}}),kme={class:"header-left"},Tme={class:"title"},Ame={class:"flex items-center"},Dme=f.defineComponent({__name:"IkPageHead",props:f.mergeModels({headerTitle:{type:String,default:""},headerBorder:{type:Boolean,default:!1},fields:{required:!0,type:Array,default:()=>[]},search:{type:Function,default:null},loading:{type:Boolean,default:!1},tabId:{type:Number||String,default:0},exportBtn:{type:Boolean,default:!1},refreshBtn:{type:Boolean,default:!1},settingBtn:{type:Boolean,default:!0},defaultShow:{type:Boolean,default:!1},headerHeight:{type:Number,default:66}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(c){f.useCssVars(G=>({"59e2b6b4":L}));const i=c,u=f.useModel(c,"modelValue"),g=f.ref(i.defaultShow),C=()=>{g.value=!g.value},E=f.computed(()=>i.fields.filter(G=>!G.onlyForm)),A=f.computed(()=>{var G;return(G=i.fields)==null?void 0:G.filter(W=>W.search)}),D=f.computed(()=>A.value.length),L=`${i.headerHeight}px`;return(G,W)=>{const ae=f.resolveComponent("el-card");return f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["ik-page-header",{"show-search":g.value}])},[f.createElementVNode("div",{class:"header",style:f.normalizeStyle({borderColor:c.headerBorder?"var(--ik-border-color)":"transparent",marginBottom:c.headerBorder?"8px":"0"})},[f.createElementVNode("div",kme,[f.createCommentVNode(' 左侧标题、tab页或自定义内容 v-if="!$slots.headerLeft" '),f.createElementVNode("span",Tme,f.toDisplayString(c.headerTitle),1),f.renderSlot(G.$slots,"headerLeft",{},void 0,!0)]),f.createCommentVNode(" 默认按钮 "),f.createElementVNode("div",Ame,[f.createCommentVNode(" 右侧操作或自定义内容 "),f.renderSlot(G.$slots,"headerRight",{},void 0,!0),c.exportBtn?(f.openBlock(),f.createBlock(f.unref(Jr),{key:0,name:"iksvg_xiazai",type:"primary",title:"导出","show-bg":"",size:"default"})):f.createCommentVNode("v-if",!0),D.value?(f.openBlock(),f.createBlock(f.unref(Jr),{key:1,name:"iksvg_shaixuan1",size:"default",title:g.value?"收起筛选条件":"展开筛选条件","show-bg":"",onClick:C},null,8,["title"])):f.createCommentVNode("v-if",!0),c.refreshBtn?(f.openBlock(),f.createBlock(f.unref(Jr),{key:2,name:"iksvg_zhongzhi1",title:"保留搜索条件刷新","show-bg":"",size:"default",onClick:c.search},null,8,["onClick"])):f.createCommentVNode("v-if",!0),f.createCommentVNode(` <IkSvgIcon\r
|
|
34
|
+
></i> `),(Se=ye[c.propsField.children])!=null&&Se.length&&ye.show?(f.openBlock(),f.createBlock(f.unref(Jr),{key:1,class:"ikapprove",onClick:ie=>ae(ye,le),name:"iksvg_shouqi"},null,8,["onClick"])):f.createCommentVNode("v-if",!0)],14,_ne)]),f.createElementVNode("ul",{class:f.normalizeClass(L(le))},[f.createElementVNode("div",{id:`children${le}`},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(ye[c.propsField.children],(ie,Z)=>(f.openBlock(),f.createElementBlock("li",{class:f.normalizeClass(G(le,Z)),style:f.normalizeStyle(c.needClick?"cursor: pointer;":""),key:Z,onClick:we=>W(ie,le+1+"-"+(Z+1))},f.toDisplayString(ie.name),15,xne))),128))],8,Ene)],2)])}),128))]))}}),Q1e="",Tne=ha(Br(kne,[["__scopeId","data-v-240cff4f"]])),C$=c=>c%1===0?c.toString():c.toFixed(2),Ane=(c,i=2)=>{const u=c/1024;return u>1024?(u/1024).toFixed(i)+"MB":u.toFixed(i)+"KB"},w$=(c,i)=>i?i.startsWith("http")?i:`${c}${i}`:"",e0e="",S$=c=>(f.pushScopeId("data-v-429c4df6"),c=c(),f.popScopeId(),c),Dne={class:"approveProcess",id:"approveProcess"},Nne=["id"],One={class:"topBlock"},Rne={class:"left"},Bne={class:"nodeBg"},Mne=["src"],Ine={class:"right"},Pne={class:"topInfo"},$ne={key:0},Fne={key:0,class:"main-text"},Lne={class:"name"},Vne={key:0},Hne={key:0},zne={key:1},Une=S$(()=>f.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}},"退回至",-1)),Wne={key:0},jne={key:0},Zne={key:1},Gne={key:1},qne=S$(()=>f.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),Yne={class:"name"},Kne={key:0},Xne={style:{color:"#000"}},Qne={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},Jne={key:1},eoe={key:0,class:"blue",style:{"font-size":"12px"}},toe={key:1},noe={key:0,class:"blue",style:{"font-size":"12px"}},ooe={key:1,class:"blue",style:{"font-size":"12px"}},soe={class:"time"},roe={key:0},aoe={key:1},ioe=["onClick"],loe=["onClick"],coe={key:0,class:"opinion"},uoe={key:0},doe={key:1},foe=S$(()=>f.createElementVNode("span",null,"添加审批人",-1)),moe={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},hoe={key:2,class:"annexImage"},goe={key:3,class:"approveList"},poe={class:"nodeBg-list"},boe=["src"],yoe={key:1},voe={key:2,class:"ikapprove ikapprove-duihao2 green read"},Coe=["title"],woe={name:"IkingApprovalProcessDetail"},Soe=f.defineComponent({...woe,props:{local:{type:Boolean,default:!1},defaultStatus:{type:Object,default:()=>({})},defaultNodeType:{type:Object,default:()=>({})},dataList:{type:Array,default:()=>[]},defaultFieldMap:{type:Object,default:()=>({})},returnNode:{type:Array,default:()=>[]},fileUrl:{type:String,default:""},kkUrl:{type:String,default:""}},emits:["preview"],setup(c,{emit:i}){const u=c,g=f.reactive({nodeType:{发起人节点:"1",审批节点:"2",办理节点:"3",抄送节点:"4",...u.defaultNodeType},statusOption:{发起:"1",等待:"2",同意:"3",拒绝:"4",转交:"5",加签:"6",退回:"7",撤销:"8",评论:"9",...u.defaultStatus},listData:[],defaultFile:{id:"id",nodeId:"nodeId",nodeType:"nodeType",nodeTypeName:"nodeTypeName",approveStatus:"approveStatus",approveStatusName:"approveStatusName",originator:"originator",operationTime:"operationTime",approveType:"approveType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approveOpinion:"approveOpinion",countersignPer:"countersignPer",backToRecordNodeName:"backToRecordNodeName",attachment:"attachment",attachmentParam:{id:"id",originName:"originName",url:"url",suffix:"suffix",size:"size"},attachmentImg:"attachmentImg",returnNode:"returnNode",returnNodeName:"returnNodeName",lineType:"lineType",allRead:"allRead",read:"read",approvePersonList:[{id:"id",name:"name",approveState:"approveState",approveTime:"approveTime",approveOpinion:"approveOpinion",userAvatar:"userAvatar",accomplish:"accomplish"}],...u.defaultFieldMap}});f.watch(()=>u.dataList,W=>{W&&(f.nextTick(()=>{g.listData=W}),setTimeout(()=>{u.returnNode.length&&C()},500))},{deep:!0}),f.onMounted(()=>{u.dataList.length&&(g.listData=u.dataList,setTimeout(()=>{u.returnNode.length&&C()},500))});const C=()=>{let W=null;if(u!=null&&u.returnNode)for(W of u==null?void 0:u.returnNode){if(isNaN(W[1]))return;let ae=Array.from(new Array(W[1]+1).keys()).slice(W[0]);f.nextTick(()=>{E(ae)})}},E=W=>{var Se,ie,Z;let ae=document.createElement("div"),ne=document.getElementById("approveProcess"),F=0,ye=(Se=document.getElementById(`${W[0]}`))==null?void 0:Se.offsetWidth,le=(ie=document.getElementById(`${W[0]}`))==null?void 0:ie.offsetLeft,te=(Z=document.getElementById(`${W[0]}`))==null?void 0:Z.offsetTop;W.forEach(we=>{let Bt=document.getElementById(`${we}`);F+=Bt.offsetHeight}),setTimeout(()=>{ae.style.width=ye+32+"px",ae.style.height=F+"px",ae.style.background="#f9f9f9",ae.style.position="absolute",ae.style.top=te-16+"px",ae.style.left=le-16+"px",ae.style.zIndex=-1,ne==null||ne.appendChild(ae)})},A=(W,ae)=>{var ye;let ne=(ye=g.listData)==null?void 0:ye.findIndex(le=>le.lineType=="dashed"),F="";switch(W){case g.statusOption.发起:F="ikapprove-duihao2 green";break;case g.statusOption.等待:F=ne==ae?"ikapprove-dengdai orange":"";break;case g.statusOption.同意:F="ikapprove-duihao2 green";break;case g.statusOption.拒绝:F="ikapprove-jujue red";break;case g.statusOption.转交:F="ikapprove-zhuanjiao blue";break;case g.statusOption.加签:F="ikapprove-tianjia blue";break;case g.statusOption.退回:F="ikapprove-s_fanhui2 red";break;case g.statusOption.评论:F="ikapprove-pinglun1 blue";break}return`ikapprove ${F}`},D=(W,ae)=>{let ne="";switch(W){case g.nodeType.发起人节点:ne="ikapprove-ziyuan";break;case g.nodeType.审批节点:ae&&ae.length==1?ne="ikapprove-ziyuan":ne="ikapprove-shenpi";break;case g.nodeType.办理节点:ne="ikapprove-bianji";break;case g.nodeType.抄送节点:ne="ikapprove-chaosong";break;default:ne="ikapprove-ziyuan"}return`ikapprove ${ne}`};f.reactive({show:!1,data:{}});const L=(W,ae)=>{W.show=!W.show;let ne=document.getElementById(`${W[g.defaultFile.nodeId]}`),F=Array.from(ne==null?void 0:ne.getElementsByClassName("approveList"));for(let ye of F)ye.style.display=ae},G=W=>w$(u.fileUrl,W);return(W,ae)=>{const ne=f.resolveComponent("el-image");return f.openBlock(),f.createElementBlock("div",Dne,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(g.listData,(F,ye)=>{var le,te,Se,ie,Z,we,Bt,We,Q,Be;return f.openBlock(),f.createElementBlock("div",{class:"approveBlock",id:F[g.defaultFile.nodeId],key:F[g.defaultFile.nodeId]},[f.createElementVNode("div",One,[f.createElementVNode("div",Rne,[f.createElementVNode("span",Bne,[f.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((le=F[g.defaultFile.approvePersonList])==null?void 0:le.length)==1&&F[g.defaultFile.approvePersonList][0].userAvatar?(f.openBlock(),f.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:G(F[g.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,Mne)):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 否则显示对应节点 "),f.createElementVNode("i",{class:f.normalizeClass(D(F[g.defaultFile.nodeType],F[g.defaultFile.approvePersonList]))},null,2)],2112)),f.createCommentVNode(" 审批状态图标 "),f.createElementVNode("i",{class:f.normalizeClass(A(F[g.defaultFile.approveStatus],ye))},null,2)])]),f.createElementVNode("div",Ine,[f.createElementVNode("div",Pne,[f.createElementVNode("div",null,[f.createCommentVNode(" 不是抄送节点 "),F[g.defaultFile.nodeType]!=g.nodeType.抄送节点?(f.openBlock(),f.createElementBlock("div",$ne,[f.createCommentVNode(" 撤销,评论不显示节点名称 "),F[g.defaultFile.approveStatus]!=g.statusOption.撤销&&F[g.defaultFile.approveStatus]!=g.statusOption.评论?(f.openBlock(),f.createElementBlock("div",Fne,f.toDisplayString(F[g.defaultFile.nodeTypeName]),1)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 名字+审批状态 "),f.createElementVNode("div",Lne,[f.createCommentVNode(" 已审批节点文本 "),F[g.defaultFile.lineType]=="solid"?(f.openBlock(),f.createElementBlock("div",Vne,[f.createElementVNode("span",{style:f.normalizeStyle({color:F[g.defaultFile.approveStatus]==g.statusOption.评论?"#000":""})},f.toDisplayString(F[g.defaultFile.originator]),5),f.createCommentVNode(" 发起,退回不显示状态 "),F[g.defaultFile.approveStatusName]&&F[g.defaultFile.approveStatus]!=g.statusOption.发起&&F[g.defaultFile.approveStatus]!=g.statusOption.退回?(f.openBlock(),f.createElementBlock("span",Hne,f.toDisplayString(F[g.defaultFile.approveStatus]==g.statusOption.评论?" 添加了评论":"("+F[g.defaultFile.approveStatusName]+")"),1)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 退回状态显示 "),F[g.defaultFile.approveStatus]==g.statusOption.退回?(f.openBlock(),f.createElementBlock("span",zne,[Une,f.createTextVNode(f.toDisplayString(F[g.defaultFile.backToRecordNodeName]),1)])):f.createCommentVNode("v-if",!0)])):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 待审批节点 "),f.createElementVNode("div",null,[((te=F[g.defaultFile.approvePersonList])==null?void 0:te.length)==1?(f.openBlock(),f.createElementBlock("span",Wne,[f.createTextVNode(f.toDisplayString(F[g.defaultFile.originator])+" ",1),F[g.defaultFile.approveStatus]==g.statusOption.等待?(f.openBlock(),f.createElementBlock("span",jne,f.toDisplayString(`(${F[g.defaultFile.approveStatusName]})`),1)):f.createCommentVNode("v-if",!0)])):(f.openBlock(),f.createElementBlock("span",Zne,f.toDisplayString(((Se=F[g.defaultFile.approvePersonList])==null?void 0:Se.length)+"人"+F[g.defaultFile.approveTypeName]),1))])],2112))])])):(f.openBlock(),f.createElementBlock("div",Gne,[qne,f.createElementVNode("div",Yne,[f.createCommentVNode(" 抄送一人时 "),((ie=F[g.defaultFile.approvePersonList])==null?void 0:ie.length)==1?(f.openBlock(),f.createElementBlock("span",Kne,[f.createElementVNode("span",null,[f.createTextVNode("已抄送给 "),f.createElementVNode("span",Xne,f.toDisplayString(F[g.defaultFile.approvePersonList][0].userName),1)]),f.createElementVNode("span",Qne,f.toDisplayString(F[g.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 抄送多人时 "),((Z=F[g.defaultFile.approvePersonList])==null?void 0:Z.length)>1?(f.openBlock(),f.createElementBlock("span",Jne,[f.createTextVNode(f.toDisplayString(`已抄送${(we=F[g.defaultFile.approvePersonList])==null?void 0:we.length}人`)+" ",1),F[g.defaultFile.allRead]?(f.openBlock(),f.createElementBlock("span",eoe," 全部已读 ")):(f.openBlock(),f.createElementBlock("span",toe,[F[g.defaultFile.read]?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock("span",noe," 全部未读 ")),F[g.defaultFile.read]?(f.openBlock(),f.createElementBlock("span",ooe,f.toDisplayString(F[g.defaultFile.read])+"人已读 ",1)):f.createCommentVNode("v-if",!0)]))])):f.createCommentVNode("v-if",!0)])]))]),f.createElementVNode("div",soe,[f.createCommentVNode(" 不是抄送节点,展示时间 "),F[g.defaultFile.nodeType]!=g.nodeType.抄送节点?(f.openBlock(),f.createElementBlock("span",roe,f.toDisplayString(F[g.defaultFile.operationTime]),1)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),F[g.defaultFile.nodeType]==g.nodeType.抄送节点&&((Bt=F[g.defaultFile.approvePersonList])==null?void 0:Bt.length)>1?(f.openBlock(),f.createElementBlock("span",aoe,[F!=null&&F.show?(f.openBlock(),f.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:Ae=>L(F,"grid")},null,8,ioe)):(f.openBlock(),f.createElementBlock("i",{key:1,onClick:Ae=>L(F,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,loe))])):f.createCommentVNode("v-if",!0)])])])]),f.createElementVNode("div",{class:"bottomBlock",style:f.normalizeStyle({borderLeft:ye==g.listData.length-1?"":`2px ${F[g.defaultFile.lineType]} var(--el-border-color)`})},[f.createCommentVNode(" 审批意见 "),F[g.defaultFile.approveOpinion]||F[g.defaultFile.approveStatus]==g.statusOption.加签?(f.openBlock(),f.createElementBlock("div",coe,[F[g.defaultFile.approveOpinion]?(f.openBlock(),f.createElementBlock("span",uoe,f.toDisplayString(F[g.defaultFile.approveOpinion]),1)):f.createCommentVNode("v-if",!0),F[g.defaultFile.approveStatus]==g.statusOption.加签?(f.openBlock(),f.createElementBlock("span",doe,[foe,(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(F[g.defaultFile.countersignPer],(Ae,Ke)=>(f.openBlock(),f.createElementBlock("span",moe,f.toDisplayString(Ae==null?void 0:Ae.userName)+f.toDisplayString(Ke<F[g.defaultFile.countersignPer].length-1?"、":""),1))),256))])):f.createCommentVNode("v-if",!0)])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 附件 "),(We=F[g.defaultFile.attachment])!=null&&We.length?(f.openBlock(),f.createBlock(f.unref(TJ),{key:1,"kk-url":c.kkUrl,"load-url":c.fileUrl,list:F[g.defaultFile.attachment]},null,8,["kk-url","load-url","list"])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 附件图片 "),(Q=F[g.defaultFile.attachmentImg])!=null&&Q.length?(f.openBlock(),f.createElementBlock("div",hoe,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(F[g.defaultFile.attachmentImg],(Ae,Ke)=>(f.openBlock(),f.createElementBlock("div",{class:"image",key:Ke},[f.createVNode(ne,{src:G(Ae),"preview-src-list":F[g.defaultFile.attachmentImg].map($e=>G($e)),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:G(Ae)},null,8,["src","preview-src-list","alt"])]))),128))])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(F[g.defaultFile.nodeType]==g.nodeType.抄送节点||F[g.defaultFile.approveStatus]==g.statusOption.等待)&&((Be=F[g.defaultFile.approvePersonList])==null?void 0:Be.length)>1?(f.openBlock(),f.createElementBlock("div",goe,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(F[g.defaultFile.approvePersonList],Ae=>(f.openBlock(),f.createElementBlock("div",{class:"perBlock",key:Ae.userName},[f.createElementVNode("span",poe,[Ae.userAvatar?(f.openBlock(),f.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:G(Ae.userAvatar),alt:""},null,8,boe)):(f.openBlock(),f.createElementBlock("span",yoe,f.toDisplayString(Ae.userName.slice(-2)),1)),Ae.status==="END"?(f.openBlock(),f.createElementBlock("i",voe)):f.createCommentVNode("v-if",!0)]),f.createElementVNode("div",{class:"main-text",title:Ae.userName},f.toDisplayString(Ae.userName),9,Coe)]))),128))])):f.createCommentVNode("v-if",!0)],4)],8,Nne)}),128))])}}}),t0e="",_oe=ha(Br(Soe,[["__scopeId","data-v-429c4df6"]])),Eoe=c=>(f.pushScopeId("data-v-5b4e3e05"),c=c(),f.popScopeId(),c),xoe={class:"approveProcess",id:"approveProcess"},koe={class:"node"},Toe={class:"nodeBg"},Aoe={class:"info"},Doe={class:"explain"},Noe={key:0},Ooe={key:0},Roe={key:1},Boe={key:0},Moe={key:1},Ioe={class:"personlist"},Poe={style:{width:"58px"}},$oe={class:"avatar"},Foe=["src"],Loe={key:1,class:"nodeBg"},Voe=["onClick"],Hoe=["title"],zoe={key:0,class:"sign"},Uoe={key:0},Woe=["onClick"],joe={key:0,class:"required"},Zoe=Eoe(()=>f.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1)),Goe={name:"IkApprovalProcess"},qoe=f.defineComponent({...Goe,props:{pickerUrl:{type:String,default:""},loadUrl:{type:String,default:""},dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},setup(c,{expose:i}){const u=c,g=es.ikStore.local.getItem("token")||"Bearer iking",C=f.reactive({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",...u.defaultNodeType},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...u.statusWithoutApprover},defaultFile:{id:"id",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",...u.defaultFieldMap},multiple:!1,chooseType:[]}),E=async ae=>{var ne;if(ae.multiple=!ae[C.defaultFile.singleApproval]||ae[C.defaultFile.isShowAddCopy],ae.handList=ae[C.defaultFile.approvePersonList]?ae[C.defaultFile.approvePersonList]:[],ae[C.defaultFile.nodeType]===C.nodeType.抄送节点)ae.handList.forEach(F=>{F.elementName||(F.elementName=F.userName,F.elementId=F.userId,F.avatar=F.userAvatar),F.elementType="USER",F.disabled=!0}),ae.chooseType=["user"],ae.userList=[],ae.depList=[];else switch(ae[C.defaultFile.initiatorSpecifiedScopeType]){case"ALL":ae.chooseType=["dep_user"],ae.userList=[],ae.depList=[];break;default:ae.chooseType=["user"],ae.userList=ae.userList?ae.userList:(ne=ae[C.defaultFile.initiatorSpecifiedScope])==null?void 0:ne.map(F=>({...F,elementName:(F==null?void 0:F.executorName)||(F==null?void 0:F.userName),elementId:(F==null?void 0:F.executorId)||(F==null?void 0:F.userId),avatar:((F==null?void 0:F.executorAvatar)||(F==null?void 0:F.userAvatar))&&A((F==null?void 0:F.executorAvatar)||(F==null?void 0:F.userAvatar))||"",elementType:"USER"}))}f.nextTick(()=>{ae.isShow=!0})},A=ae=>{let ne="";return ae.includes("http")||ae.includes("https")?ne=ae:ne=u.loadUrl?`${u.loadUrl}${ae}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${ae}`,ne},D=ae=>{let ne="";switch(ae){case C.nodeType.审批节点:ne="ikapprove-shenpi";break;case C.nodeType.办理节点:ne="ikapprove-bianji";break;case C.nodeType.抄送节点:ne="ikapprove-chaosong";break;default:ne="ikapprove-ziyuan"}return`ikapprove ${ne}`},L=(ae,ne)=>{u.dataList[ne].handList=ae.list;let ye=(u.dataList[ne][C.defaultFile.approvePersonList]||[]).filter(te=>!te.canDele),le=ae.list.map(te=>({...te,userName:te.elementName,userAvatar:te.avatar,canDele:!0}));u.dataList[ne][C.defaultFile.approvePersonList]=ye.concat(le)},G=(ae,ne)=>{u.dataList[ae][C.defaultFile.approvePersonList].splice(ne,1),u.dataList[ae].handList=u.dataList[ae][C.defaultFile.approvePersonList]};return i({requiredVerification:()=>{let ae=!0;return u.dataList.forEach(ne=>{var F;ne.required=!1,ne[C.defaultFile.nodeType]==C.nodeType.审批节点&&ne[C.defaultFile.isShowAdd]&&((F=ne[C.defaultFile.approvePersonList])!=null&&F.length||(ae=!1,ne.required=!0))}),ae}}),(ae,ne)=>(f.openBlock(),f.createElementBlock("div",xoe,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(u.dataList,(F,ye)=>{var le,te,Se,ie;return f.openBlock(),f.createElementBlock("div",{class:"content",key:F.id},[f.createCommentVNode(" 审批节点类型 "),f.createElementVNode("div",koe,[f.createElementVNode("span",Toe,[f.createElementVNode("i",{class:f.normalizeClass(D(F[C.defaultFile.nodeType]))},null,2)]),f.createElementVNode("div",{class:"line",style:f.normalizeStyle({"border-left":ye===u.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),f.createElementVNode("div",Aoe,[f.createElementVNode("div",null,[f.createElementVNode("div",null,f.toDisplayString(F[C.defaultFile.nodeTypeName]),1),f.createElementVNode("div",Doe,[f.createCommentVNode(" 抄送节点 "),F[C.defaultFile.nodeType]==C.nodeType.抄送节点?(f.openBlock(),f.createElementBlock("span",Noe,[F[C.defaultFile.approvePersonList].length?(f.openBlock(),f.createElementBlock("span",Ooe,f.toDisplayString(`抄送${F[C.defaultFile.approvePersonList].length}人`),1)):f.createCommentVNode("v-if",!0),F[C.defaultFile.isShowAdd]?(f.openBlock(),f.createElementBlock("span",Roe,",可添加抄送人")):f.createCommentVNode("v-if",!0)])):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 审批节点 "),f.createElementVNode("span",null,[f.createCommentVNode(" 存在审批人时 "),(le=F[C.defaultFile.approvePersonList])!=null&&le.length?(f.openBlock(),f.createElementBlock("span",Boe,f.toDisplayString(((te=F[C.defaultFile.approvePersonList])==null?void 0:te.length)==1?"1人审批":`${(Se=F[C.defaultFile.approvePersonList])==null?void 0:Se.length}人${F[C.defaultFile.multiExecutorTypeName]}`),1)):[C.statusWithoutApprover.自动通过,C.statusWithoutApprover.自动拒绝].includes(F[C.defaultFile.approveType])?(f.openBlock(),f.createElementBlock("span",Moe,f.toDisplayString(F[C.defaultFile.approveTypeName]),1)):F[C.defaultFile.executorEmptyStrategy]&&F[C.defaultFile.executorEmpty]?(f.openBlock(),f.createElementBlock(f.Fragment,{key:2},[f.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),f.createElementVNode("span",null,[f.createTextVNode(" 未找到审批人,"),f.createElementVNode("span",null,f.toDisplayString(F[C.defaultFile.executorEmptyStrategy]==C.statusWithoutApprover.自动通过?"将自动通过":F[C.defaultFile.executorEmptyStrategy]==C.statusWithoutApprover.自动转交管理员?"自动转交给管理员":F[C.defaultFile.executorEmptyStrategy]==C.statusWithoutApprover.指定人员审批?`将自动转给指定成员${F[C.defaultFile.reserveExecutorUsers]&&F[C.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):(f.openBlock(),f.createElementBlock("span",{key:3,class:f.normalizeClass(F.required?"warn":"")},"请选择"+f.toDisplayString(F[C.defaultFile.nodeType]===C.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),f.createElementVNode("div",Ioe,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(F[C.defaultFile.approvePersonList],(Z,we)=>{var Bt;return f.openBlock(),f.createElementBlock("div",{class:"list",key:Z.userId},[f.createElementVNode("div",Poe,[f.createElementVNode("div",$oe,[Z.userAvatar?(f.openBlock(),f.createElementBlock("img",{key:0,src:A(Z.userAvatar),alt:""},null,8,Foe)):(f.openBlock(),f.createElementBlock("div",Loe,[f.createElementVNode("span",null,f.toDisplayString(Z.userName.slice(-2)),1)])),Z.canDele?(f.openBlock(),f.createElementBlock("i",{key:2,onClick:We=>G(ye,we),class:"ikapprove ikapprove-shanchu1"},null,8,Voe)):f.createCommentVNode("v-if",!0)]),f.createElementVNode("div",{class:"name",title:Z.userName},f.toDisplayString(Z.userName),9,Hoe)]),f.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),F[C.defaultFile.isShowAdd]&&!(F[C.defaultFile.singleApproval]&&((Bt=F[C.defaultFile.approvePersonList])==null?void 0:Bt.length)==1)?(f.openBlock(),f.createElementBlock("span",zoe,[f.createCommentVNode(" 抄送默认 "),F[C.defaultFile.nodeType]==C.nodeType.抄送节点?(f.openBlock(),f.createElementBlock("span",Uoe,"+")):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 审批 "),f.createElementVNode("span",null,f.toDisplayString(F[C.defaultFile.multiExecutorType]=="ANY"?"/":F[C.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):f.createCommentVNode("v-if",!0)])}),128)),f.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 "),F[C.defaultFile.isShowAdd]&&!(F[C.defaultFile.singleApproval]&&((ie=F[C.defaultFile.approvePersonList])==null?void 0:ie.length)==1)||F[C.defaultFile.isShowAddCopy]?(f.openBlock(),f.createElementBlock("span",{key:0,class:"addBg",onClick:Z=>E(F)},[F[C.defaultFile.nodeType]==C.nodeType.审批节点?(f.openBlock(),f.createElementBlock("span",joe)):f.createCommentVNode("v-if",!0),Zoe],8,Woe)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 添加人组件 "),f.createVNode(f.unref(rk),{modelValue:F.handList,"onUpdate:modelValue":Z=>F.handList=Z,show:F.isShow,"onUpdate:show":Z=>F.isShow=Z,onOk:Z=>L(Z,ye),multiple:F.multiple,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:c.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:f.unref(g)}},"dep-list":F.depList,"user-list":F.userList,"organization-list":F.organizationList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:F.chooseType},null,8,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","api","dep-list","user-list","organization-list","chooseType"])])])])}),128))]))}}),o0e="",Yoe=ha(Br(qoe,[["__scopeId","data-v-5b4e3e05"]]));var vK={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(c){return"另外 "+c+" 个"},noEventsText:"没有事件显示"},A8,ps,CK,wK,Qw,g2,SK,_K,EK,D8={},xK=[],Koe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Wb(c,i){for(var u in i)c[u]=i[u];return c}function kK(c){var i=c.parentNode;i&&i.removeChild(c)}function Qe(c,i,u){var g,C,E,A={};for(E in i)E=="key"?g=i[E]:E=="ref"?C=i[E]:A[E]=i[E];if(arguments.length>2&&(A.children=arguments.length>3?A8.call(arguments,2):u),typeof c=="function"&&c.defaultProps!=null)for(E in c.defaultProps)A[E]===void 0&&(A[E]=c.defaultProps[E]);return N8(c,A,g,C,null)}function N8(c,i,u,g,C){var E={type:c,props:i,key:u,ref:g,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:C??++CK};return C==null&&ps.vnode!=null&&ps.vnode(E),E}function Td(){return{current:null}}function tl(c){return c.children}function Xoe(c,i,u,g,C){var E;for(E in u)E==="children"||E==="key"||E in i||O8(c,E,null,u[E],g);for(E in i)C&&typeof i[E]!="function"||E==="children"||E==="key"||E==="value"||E==="checked"||u[E]===i[E]||O8(c,E,i[E],u[E],g)}function TK(c,i,u){i[0]==="-"?c.setProperty(i,u??""):c[i]=u==null?"":typeof u!="number"||Koe.test(i)?u:u+"px"}function O8(c,i,u,g,C){var E;e:if(i==="style")if(typeof u=="string")c.style.cssText=u;else{if(typeof g=="string"&&(c.style.cssText=g=""),g)for(i in g)u&&i in u||TK(c.style,i,"");if(u)for(i in u)g&&u[i]===g[i]||TK(c.style,i,u[i])}else if(i[0]==="o"&&i[1]==="n")E=i!==(i=i.replace(/Capture$/,"")),i=i.toLowerCase()in c?i.toLowerCase().slice(2):i.slice(2),c.l||(c.l={}),c.l[i+E]=u,u?g||c.addEventListener(i,E?DK:AK,E):c.removeEventListener(i,E?DK:AK,E);else if(i!=="dangerouslySetInnerHTML"){if(C)i=i.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(i!=="width"&&i!=="height"&&i!=="href"&&i!=="list"&&i!=="form"&&i!=="tabIndex"&&i!=="download"&&i in c)try{c[i]=u??"";break e}catch{}typeof u=="function"||(u==null||u===!1&&i.indexOf("-")==-1?c.removeAttribute(i):c.setAttribute(i,u))}}function AK(c){Qw=!0;try{return this.l[c.type+!1](ps.event?ps.event(c):c)}finally{Qw=!1}}function DK(c){Qw=!0;try{return this.l[c.type+!0](ps.event?ps.event(c):c)}finally{Qw=!1}}function hm(c,i){this.props=c,this.context=i}function W6(c,i){if(i==null)return c.__?W6(c.__,c.__.__k.indexOf(c)+1):null;for(var u;i<c.__k.length;i++)if((u=c.__k[i])!=null&&u.__e!=null)return u.__e;return typeof c.type=="function"?W6(c):null}function NK(c){var i,u;if((c=c.__)!=null&&c.__c!=null){for(c.__e=c.__c.base=null,i=0;i<c.__k.length;i++)if((u=c.__k[i])!=null&&u.__e!=null){c.__e=c.__c.base=u.__e;break}return NK(c)}}function Qoe(c){Qw?setTimeout(c):_K(c)}function _$(c){(!c.__d&&(c.__d=!0)&&g2.push(c)&&!R8.__r++||SK!==ps.debounceRendering)&&((SK=ps.debounceRendering)||Qoe)(R8)}function R8(){var c,i,u,g,C,E,A,D;for(g2.sort(function(L,G){return L.__v.__b-G.__v.__b});c=g2.shift();)c.__d&&(i=g2.length,g=void 0,C=void 0,A=(E=(u=c).__v).__e,(D=u.__P)&&(g=[],(C=Wb({},E)).__v=E.__v+1,E$(D,E,C,u.__n,D.ownerSVGElement!==void 0,E.__h!=null?[A]:null,g,A??W6(E),E.__h),IK(g,E),E.__e!=A&&NK(E)),g2.length>i&&g2.sort(function(L,G){return L.__v.__b-G.__v.__b}));R8.__r=0}function OK(c,i,u,g,C,E,A,D,L,G){var W,ae,ne,F,ye,le,te,Se=g&&g.__k||xK,ie=Se.length;for(u.__k=[],W=0;W<i.length;W++)if((F=u.__k[W]=(F=i[W])==null||typeof F=="boolean"?null:typeof F=="string"||typeof F=="number"||typeof F=="bigint"?N8(null,F,null,null,F):Array.isArray(F)?N8(tl,{children:F},null,null,null):F.__b>0?N8(F.type,F.props,F.key,F.ref?F.ref:null,F.__v):F)!=null){if(F.__=u,F.__b=u.__b+1,(ne=Se[W])===null||ne&&F.key==ne.key&&F.type===ne.type)Se[W]=void 0;else for(ae=0;ae<ie;ae++){if((ne=Se[ae])&&F.key==ne.key&&F.type===ne.type){Se[ae]=void 0;break}ne=null}E$(c,F,ne=ne||D8,C,E,A,D,L,G),ye=F.__e,(ae=F.ref)&&ne.ref!=ae&&(te||(te=[]),ne.ref&&te.push(ne.ref,null,F),te.push(ae,F.__c||ye,F)),ye!=null?(le==null&&(le=ye),typeof F.type=="function"&&F.__k===ne.__k?F.__d=L=RK(F,L,c):L=BK(c,F,ne,Se,ye,L),typeof u.type=="function"&&(u.__d=L)):L&&ne.__e==L&&L.parentNode!=c&&(L=W6(ne))}for(u.__e=le,W=ie;W--;)Se[W]!=null&&(typeof u.type=="function"&&Se[W].__e!=null&&Se[W].__e==u.__d&&(u.__d=MK(g).nextSibling),$K(Se[W],Se[W]));if(te)for(W=0;W<te.length;W++)PK(te[W],te[++W],te[++W])}function RK(c,i,u){for(var g,C=c.__k,E=0;C&&E<C.length;E++)(g=C[E])&&(g.__=c,i=typeof g.type=="function"?RK(g,i,u):BK(u,g,g,C,g.__e,i));return i}function B8(c,i){return i=i||[],c==null||typeof c=="boolean"||(Array.isArray(c)?c.some(function(u){B8(u,i)}):i.push(c)),i}function BK(c,i,u,g,C,E){var A,D,L;if(i.__d!==void 0)A=i.__d,i.__d=void 0;else if(u==null||C!=E||C.parentNode==null)e:if(E==null||E.parentNode!==c)c.appendChild(C),A=null;else{for(D=E,L=0;(D=D.nextSibling)&&L<g.length;L+=1)if(D==C)break e;c.insertBefore(C,E),A=E}return A!==void 0?A:C.nextSibling}function MK(c){var i,u,g;if(c.type==null||typeof c.type=="string")return c.__e;if(c.__k){for(i=c.__k.length-1;i>=0;i--)if((u=c.__k[i])&&(g=MK(u)))return g}return null}function E$(c,i,u,g,C,E,A,D,L){var G,W,ae,ne,F,ye,le,te,Se,ie,Z,we,Bt,We,Q,Be=i.type;if(i.constructor!==void 0)return null;u.__h!=null&&(L=u.__h,D=i.__e=u.__e,i.__h=null,E=[D]),(G=ps.__b)&&G(i);try{e:if(typeof Be=="function"){if(te=i.props,Se=(G=Be.contextType)&&g[G.__c],ie=G?Se?Se.props.value:G.__:g,u.__c?le=(W=i.__c=u.__c).__=W.__E:("prototype"in Be&&Be.prototype.render?i.__c=W=new Be(te,ie):(i.__c=W=new hm(te,ie),W.constructor=Be,W.render=ese),Se&&Se.sub(W),W.props=te,W.state||(W.state={}),W.context=ie,W.__n=g,ae=W.__d=!0,W.__h=[],W._sb=[]),W.__s==null&&(W.__s=W.state),Be.getDerivedStateFromProps!=null&&(W.__s==W.state&&(W.__s=Wb({},W.__s)),Wb(W.__s,Be.getDerivedStateFromProps(te,W.__s))),ne=W.props,F=W.state,W.__v=i,ae)Be.getDerivedStateFromProps==null&&W.componentWillMount!=null&&W.componentWillMount(),W.componentDidMount!=null&&W.__h.push(W.componentDidMount);else{if(Be.getDerivedStateFromProps==null&&te!==ne&&W.componentWillReceiveProps!=null&&W.componentWillReceiveProps(te,ie),!W.__e&&W.shouldComponentUpdate!=null&&W.shouldComponentUpdate(te,W.__s,ie)===!1||i.__v===u.__v){for(i.__v!==u.__v&&(W.props=te,W.state=W.__s,W.__d=!1),i.__e=u.__e,i.__k=u.__k,i.__k.forEach(function(Ae){Ae&&(Ae.__=i)}),Z=0;Z<W._sb.length;Z++)W.__h.push(W._sb[Z]);W._sb=[],W.__h.length&&A.push(W);break e}W.componentWillUpdate!=null&&W.componentWillUpdate(te,W.__s,ie),W.componentDidUpdate!=null&&W.__h.push(function(){W.componentDidUpdate(ne,F,ye)})}if(W.context=ie,W.props=te,W.__P=c,we=ps.__r,Bt=0,"prototype"in Be&&Be.prototype.render){for(W.state=W.__s,W.__d=!1,we&&we(i),G=W.render(W.props,W.state,W.context),We=0;We<W._sb.length;We++)W.__h.push(W._sb[We]);W._sb=[]}else do W.__d=!1,we&&we(i),G=W.render(W.props,W.state,W.context),W.state=W.__s;while(W.__d&&++Bt<25);W.state=W.__s,W.getChildContext!=null&&(g=Wb(Wb({},g),W.getChildContext())),ae||W.getSnapshotBeforeUpdate==null||(ye=W.getSnapshotBeforeUpdate(ne,F)),Q=G!=null&&G.type===tl&&G.key==null?G.props.children:G,OK(c,Array.isArray(Q)?Q:[Q],i,u,g,C,E,A,D,L),W.base=i.__e,i.__h=null,W.__h.length&&A.push(W),le&&(W.__E=W.__=null),W.__e=!1}else E==null&&i.__v===u.__v?(i.__k=u.__k,i.__e=u.__e):i.__e=Joe(u.__e,i,u,g,C,E,A,L);(G=ps.diffed)&&G(i)}catch(Ae){i.__v=null,(L||E!=null)&&(i.__e=D,i.__h=!!L,E[E.indexOf(D)]=null),ps.__e(Ae,i,u)}}function IK(c,i){ps.__c&&ps.__c(i,c),c.some(function(u){try{c=u.__h,u.__h=[],c.some(function(g){g.call(u)})}catch(g){ps.__e(g,u.__v)}})}function Joe(c,i,u,g,C,E,A,D){var L,G,W,ae=u.props,ne=i.props,F=i.type,ye=0;if(F==="svg"&&(C=!0),E!=null){for(;ye<E.length;ye++)if((L=E[ye])&&"setAttribute"in L==!!F&&(F?L.localName===F:L.nodeType===3)){c=L,E[ye]=null;break}}if(c==null){if(F===null)return document.createTextNode(ne);c=C?document.createElementNS("http://www.w3.org/2000/svg",F):document.createElement(F,ne.is&&ne),E=null,D=!1}if(F===null)ae===ne||D&&c.data===ne||(c.data=ne);else{if(E=E&&A8.call(c.childNodes),G=(ae=u.props||D8).dangerouslySetInnerHTML,W=ne.dangerouslySetInnerHTML,!D){if(E!=null)for(ae={},ye=0;ye<c.attributes.length;ye++)ae[c.attributes[ye].name]=c.attributes[ye].value;(W||G)&&(W&&(G&&W.__html==G.__html||W.__html===c.innerHTML)||(c.innerHTML=W&&W.__html||""))}if(Xoe(c,ne,ae,C,D),W)i.__k=[];else if(ye=i.props.children,OK(c,Array.isArray(ye)?ye:[ye],i,u,g,C&&F!=="foreignObject",E,A,E?E[0]:u.__k&&W6(u,0),D),E!=null)for(ye=E.length;ye--;)E[ye]!=null&&kK(E[ye]);D||("value"in ne&&(ye=ne.value)!==void 0&&(ye!==c.value||F==="progress"&&!ye||F==="option"&&ye!==ae.value)&&O8(c,"value",ye,ae.value,!1),"checked"in ne&&(ye=ne.checked)!==void 0&&ye!==c.checked&&O8(c,"checked",ye,ae.checked,!1))}return c}function PK(c,i,u){try{typeof c=="function"?c(i):c.current=i}catch(g){ps.__e(g,u)}}function $K(c,i,u){var g,C;if(ps.unmount&&ps.unmount(c),(g=c.ref)&&(g.current&&g.current!==c.__e||PK(g,null,i)),(g=c.__c)!=null){if(g.componentWillUnmount)try{g.componentWillUnmount()}catch(E){ps.__e(E,i)}g.base=g.__P=null,c.__c=void 0}if(g=c.__k)for(C=0;C<g.length;C++)g[C]&&$K(g[C],i,u||typeof c.type!="function");u||c.__e==null||kK(c.__e),c.__=c.__e=c.__d=void 0}function ese(c,i,u){return this.constructor(c,u)}function j6(c,i,u){var g,C,E;ps.__&&ps.__(c,i),C=(g=typeof u=="function")?null:u&&u.__k||i.__k,E=[],E$(i,c=(!g&&u||i).__k=Qe(tl,null,[c]),C||D8,D8,i.ownerSVGElement!==void 0,!g&&u?[u]:C?null:i.firstChild?A8.call(i.childNodes):null,E,!g&&u?u:C?C.__e:i.firstChild,g),IK(E,c)}function tse(c,i){var u={__c:i="__cC"+EK++,__:c,Consumer:function(g,C){return g.children(C)},Provider:function(g){var C,E;return this.getChildContext||(C=[],(E={})[i]=this,this.getChildContext=function(){return E},this.shouldComponentUpdate=function(A){this.props.value!==A.value&&C.some(function(D){D.__e=!0,_$(D)})},this.sub=function(A){C.push(A);var D=A.componentWillUnmount;A.componentWillUnmount=function(){C.splice(C.indexOf(A),1),D&&D.call(A)}}),g.children}};return u.Provider.__=u.Consumer.contextType=u}A8=xK.slice,ps={__e:function(c,i,u,g){for(var C,E,A;i=i.__;)if((C=i.__c)&&!C.__)try{if((E=C.constructor)&&E.getDerivedStateFromError!=null&&(C.setState(E.getDerivedStateFromError(c)),A=C.__d),C.componentDidCatch!=null&&(C.componentDidCatch(c,g||{}),A=C.__d),A)return C.__E=C}catch(D){c=D}throw c}},CK=0,wK=function(c){return c!=null&&c.constructor===void 0},Qw=!1,hm.prototype.setState=function(c,i){var u;u=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Wb({},this.state),typeof c=="function"&&(c=c(Wb({},u),this.props)),c&&Wb(u,c),c!=null&&this.__v&&(i&&this._sb.push(i),_$(this))},hm.prototype.forceUpdate=function(c){this.__v&&(this.__e=!0,c&&this.__h.push(c),_$(this))},hm.prototype.render=tl,g2=[],_K=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,R8.__r=0,EK=0;var dp,x$,FK,LK=[],k$=[],VK=ps.__b,HK=ps.__r,zK=ps.diffed,UK=ps.__c,WK=ps.unmount;function nse(){for(var c;c=LK.shift();)if(c.__P&&c.__H)try{c.__H.__h.forEach(M8),c.__H.__h.forEach(T$),c.__H.__h=[]}catch(i){c.__H.__h=[],ps.__e(i,c.__v)}}ps.__b=function(c){dp=null,VK&&VK(c)},ps.__r=function(c){HK&&HK(c);var i=(dp=c.__c).__H;i&&(x$===dp?(i.__h=[],dp.__h=[],i.__.forEach(function(u){u.__N&&(u.__=u.__N),u.__V=k$,u.__N=u.i=void 0})):(i.__h.forEach(M8),i.__h.forEach(T$),i.__h=[])),x$=dp},ps.diffed=function(c){zK&&zK(c);var i=c.__c;i&&i.__H&&(i.__H.__h.length&&(LK.push(i)!==1&&FK===ps.requestAnimationFrame||((FK=ps.requestAnimationFrame)||ose)(nse)),i.__H.__.forEach(function(u){u.i&&(u.__H=u.i),u.__V!==k$&&(u.__=u.__V),u.i=void 0,u.__V=k$})),x$=dp=null},ps.__c=function(c,i){i.some(function(u){try{u.__h.forEach(M8),u.__h=u.__h.filter(function(g){return!g.__||T$(g)})}catch(g){i.some(function(C){C.__h&&(C.__h=[])}),i=[],ps.__e(g,u.__v)}}),UK&&UK(c,i)},ps.unmount=function(c){WK&&WK(c);var i,u=c.__c;u&&u.__H&&(u.__H.__.forEach(function(g){try{M8(g)}catch(C){i=C}}),u.__H=void 0,i&&ps.__e(i,u.__v))};var jK=typeof requestAnimationFrame=="function";function ose(c){var i,u=function(){clearTimeout(g),jK&&cancelAnimationFrame(i),setTimeout(c)},g=setTimeout(u,100);jK&&(i=requestAnimationFrame(u))}function M8(c){var i=dp,u=c.__c;typeof u=="function"&&(c.__c=void 0,u()),dp=i}function T$(c){var i=dp;c.__c=c.__(),dp=i}function sse(c,i){for(var u in i)c[u]=i[u];return c}function ZK(c,i){for(var u in c)if(u!=="__source"&&!(u in i))return!0;for(var g in i)if(g!=="__source"&&c[g]!==i[g])return!0;return!1}function GK(c){this.props=c}(GK.prototype=new hm).isPureReactComponent=!0,GK.prototype.shouldComponentUpdate=function(c,i){return ZK(this.props,c)||ZK(this.state,i)};var qK=ps.__b;ps.__b=function(c){c.type&&c.type.__f&&c.ref&&(c.props.ref=c.ref,c.ref=null),qK&&qK(c)};var rse=ps.__e;ps.__e=function(c,i,u,g){if(c.then){for(var C,E=i;E=E.__;)if((C=E.__c)&&C.__c)return i.__e==null&&(i.__e=u.__e,i.__k=u.__k),C.__c(c,i)}rse(c,i,u,g)};var YK=ps.unmount;function KK(c,i,u){return c&&(c.__c&&c.__c.__H&&(c.__c.__H.__.forEach(function(g){typeof g.__c=="function"&&g.__c()}),c.__c.__H=null),(c=sse({},c)).__c!=null&&(c.__c.__P===u&&(c.__c.__P=i),c.__c=null),c.__k=c.__k&&c.__k.map(function(g){return KK(g,i,u)})),c}function XK(c,i,u){return c&&(c.__v=null,c.__k=c.__k&&c.__k.map(function(g){return XK(g,i,u)}),c.__c&&c.__c.__P===i&&(c.__e&&u.insertBefore(c.__e,c.__d),c.__c.__e=!0,c.__c.__P=u)),c}function A$(){this.__u=0,this.t=null,this.__b=null}function QK(c){var i=c.__.__c;return i&&i.__a&&i.__a(c)}function I8(){this.u=null,this.o=null}ps.unmount=function(c){var i=c.__c;i&&i.__R&&i.__R(),i&&c.__h===!0&&(c.type=null),YK&&YK(c)},(A$.prototype=new hm).__c=function(c,i){var u=i.__c,g=this;g.t==null&&(g.t=[]),g.t.push(u);var C=QK(g.__v),E=!1,A=function(){E||(E=!0,u.__R=null,C?C(D):D())};u.__R=A;var D=function(){if(!--g.__u){if(g.state.__a){var G=g.state.__a;g.__v.__k[0]=XK(G,G.__c.__P,G.__c.__O)}var W;for(g.setState({__a:g.__b=null});W=g.t.pop();)W.forceUpdate()}},L=i.__h===!0;g.__u++||L||g.setState({__a:g.__b=g.__v.__k[0]}),c.then(A,A)},A$.prototype.componentWillUnmount=function(){this.t=[]},A$.prototype.render=function(c,i){if(this.__b){if(this.__v.__k){var u=document.createElement("div"),g=this.__v.__k[0].__c;this.__v.__k[0]=KK(this.__b,u,g.__O=g.__P)}this.__b=null}var C=i.__a&&Qe(tl,null,c.fallback);return C&&(C.__h=null),[Qe(tl,null,i.__a?null:c.children),C]};var JK=function(c,i,u){if(++u[1]===u[0]&&c.o.delete(i),c.props.revealOrder&&(c.props.revealOrder[0]!=="t"||!c.o.size))for(u=c.u;u;){for(;u.length>3;)u.pop()();if(u[1]<u[0])break;c.u=u=u[2]}};function ase(c){return this.getChildContext=function(){return c.context},c.children}function ise(c){var i=this,u=c.i;i.componentWillUnmount=function(){j6(null,i.l),i.l=null,i.i=null},i.i&&i.i!==u&&i.componentWillUnmount(),c.__v?(i.l||(i.i=u,i.l={nodeType:1,parentNode:u,childNodes:[],appendChild:function(g){this.childNodes.push(g),i.i.appendChild(g)},insertBefore:function(g,C){this.childNodes.push(g),i.i.appendChild(g)},removeChild:function(g){this.childNodes.splice(this.childNodes.indexOf(g)>>>1,1),i.i.removeChild(g)}}),j6(Qe(ase,{context:i.context},c.__v),i.l)):i.l&&i.componentWillUnmount()}function lse(c,i){var u=Qe(ise,{__v:c,i});return u.containerInfo=i,u}(I8.prototype=new hm).__a=function(c){var i=this,u=QK(i.__v),g=i.o.get(c);return g[0]++,function(C){var E=function(){i.props.revealOrder?(g.push(C),JK(i,c,g)):C()};u?u(E):E()}},I8.prototype.render=function(c){this.u=null,this.o=new Map;var i=B8(c.children);c.revealOrder&&c.revealOrder[0]==="b"&&i.reverse();for(var u=i.length;u--;)this.o.set(i[u],this.u=[1,0,this.u]);return c.children},I8.prototype.componentDidUpdate=I8.prototype.componentDidMount=function(){var c=this;this.o.forEach(function(i,u){JK(c,u,i)})};var cse=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,use=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,dse=typeof document<"u",fse=function(c){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(c)};hm.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(c){Object.defineProperty(hm.prototype,c,{configurable:!0,get:function(){return this["UNSAFE_"+c]},set:function(i){Object.defineProperty(this,c,{configurable:!0,writable:!0,value:i})}})});var eX=ps.event;function mse(){}function hse(){return this.cancelBubble}function gse(){return this.defaultPrevented}ps.event=function(c){return eX&&(c=eX(c)),c.persist=mse,c.isPropagationStopped=hse,c.isDefaultPrevented=gse,c.nativeEvent=c};var tX={configurable:!0,get:function(){return this.class}},nX=ps.vnode;ps.vnode=function(c){var i=c.type,u=c.props,g=u;if(typeof i=="string"){var C=i.indexOf("-")===-1;for(var E in g={},u){var A=u[E];dse&&E==="children"&&i==="noscript"||E==="value"&&"defaultValue"in u&&A==null||(E==="defaultValue"&&"value"in u&&u.value==null?E="value":E==="download"&&A===!0?A="":/ondoubleclick/i.test(E)?E="ondblclick":/^onchange(textarea|input)/i.test(E+i)&&!fse(u.type)?E="oninput":/^onfocus$/i.test(E)?E="onfocusin":/^onblur$/i.test(E)?E="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(E)?E=E.toLowerCase():C&&use.test(E)?E=E.replace(/[A-Z0-9]/g,"-$&").toLowerCase():A===null&&(A=void 0),/^oninput$/i.test(E)&&(E=E.toLowerCase(),g[E]&&(E="oninputCapture")),g[E]=A)}i=="select"&&g.multiple&&Array.isArray(g.value)&&(g.value=B8(u.children).forEach(function(D){D.props.selected=g.value.indexOf(D.props.value)!=-1})),i=="select"&&g.defaultValue!=null&&(g.value=B8(u.children).forEach(function(D){D.props.selected=g.multiple?g.defaultValue.indexOf(D.props.value)!=-1:g.defaultValue==D.props.value})),c.props=g,u.class!=u.className&&(tX.enumerable="className"in u,u.className!=null&&(g.class=u.className),Object.defineProperty(g,"className",tX))}c.$$typeof=cse,nX&&nX(c)};var oX=ps.__r;ps.__r=function(c){oX&&oX(c),c.__c};const sX=[],D$=new Map;function N$(c){sX.push(c),D$.forEach(i=>{aX(i,c)})}function pse(c){c.isConnected&&rX(c.getRootNode())}function rX(c){let i=D$.get(c);if(!i||!i.isConnected){if(i=c.querySelector("style[data-fullcalendar]"),!i){i=document.createElement("style"),i.setAttribute("data-fullcalendar","");const u=yse();u&&(i.nonce=u);const g=c===document?document.head:c,C=c===document?g.querySelector("script,link[rel=stylesheet],link[as=style],style"):g.firstChild;g.insertBefore(i,C)}D$.set(c,i),bse(i)}}function bse(c){for(const i of sX)aX(c,i)}function aX(c,i){const{sheet:u}=c,g=u.cssRules.length;i.split("}").forEach((C,E)=>{C=C.trim(),C&&u.insertRule(C+"}",g+E)})}let O$;function yse(){return O$===void 0&&(O$=vse()),O$}function vse(){const c=document.querySelector('meta[name="csp-nonce"]');if(c&&c.hasAttribute("content"))return c.getAttribute("content");const i=document.querySelector("script[nonce]");return i&&i.nonce||""}typeof document<"u"&&rX(document);var Cse=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';N$(Cse);class R${constructor(i){this.drainedOption=i,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(i){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),i==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),i))}pause(i=""){let{pauseDepths:u}=this;u[i]=(u[i]||0)+1,this.clearTimeout()}resume(i="",u){let{pauseDepths:g}=this;i in g&&(u?delete g[i]:(g[i]-=1,g[i]<=0&&delete g[i]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function B$(c){c.parentNode&&c.parentNode.removeChild(c)}function Zu(c,i){if(c.closest)return c.closest(i);if(!document.documentElement.contains(c))return null;do{if(wse(c,i))return c;c=c.parentElement||c.parentNode}while(c!==null&&c.nodeType===1);return null}function wse(c,i){return(c.matches||c.matchesSelector||c.msMatchesSelector).call(c,i)}function Sse(c,i){let u=c instanceof HTMLElement?[c]:c,g=[];for(let C=0;C<u.length;C+=1){let E=u[C].querySelectorAll(i);for(let A=0;A<E.length;A+=1)g.push(E[A])}return g}const _se=/(top|left|right|bottom|width|height)$/i;function Z6(c,i){for(let u in i)iX(c,u,i[u])}function iX(c,i,u){u==null?c.style[i]="":typeof u=="number"&&_se.test(i)?c.style[i]=`${u}px`:c.style[i]=u}function lX(c){var i,u;return(u=(i=c.composedPath)===null||i===void 0?void 0:i.call(c)[0])!==null&&u!==void 0?u:c.target}let cX=0;function P8(){return cX+=1,"fc-dom-"+cX}function $8(c){c.preventDefault()}function Ese(c,i){return u=>{let g=Zu(u.target,c);g&&i.call(g,u,g)}}function uX(c,i,u,g){let C=Ese(u,g);return c.addEventListener(i,C),()=>{c.removeEventListener(i,C)}}function xse(c,i,u,g){let C;return uX(c,"mouseover",i,(E,A)=>{if(A!==C){C=A,u(E,A);let D=L=>{C=null,g(L,A),A.removeEventListener("mouseleave",D)};A.addEventListener("mouseleave",D)}})}const dX=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function kse(c,i){let u=g=>{i(g),dX.forEach(C=>{c.removeEventListener(C,u)})};dX.forEach(g=>{c.addEventListener(g,u)})}function fX(c){return Object.assign({onClick:c},mX(c))}function mX(c){return{tabIndex:0,onKeyDown(i){(i.key==="Enter"||i.key===" ")&&(c(i),i.preventDefault())}}}let hX=0;function p2(){return hX+=1,String(hX)}function M$(){document.body.classList.add("fc-not-allowed")}function I$(){document.body.classList.remove("fc-not-allowed")}function Tse(c){c.style.userSelect="none",c.style.webkitUserSelect="none",c.addEventListener("selectstart",$8)}function Ase(c){c.style.userSelect="",c.style.webkitUserSelect="",c.removeEventListener("selectstart",$8)}function Dse(c){c.addEventListener("contextmenu",$8)}function Nse(c){c.removeEventListener("contextmenu",$8)}function Ose(c){let i=[],u=[],g,C;for(typeof c=="string"?u=c.split(/\s*,\s*/):typeof c=="function"?u=[c]:Array.isArray(c)&&(u=c),g=0;g<u.length;g+=1)C=u[g],typeof C=="string"?i.push(C.charAt(0)==="-"?{field:C.substring(1),order:-1}:{field:C,order:1}):typeof C=="function"&&i.push({func:C});return i}function Rse(c,i,u){let g,C;for(g=0;g<u.length;g+=1)if(C=Bse(c,i,u[g]),C)return C;return 0}function Bse(c,i,u){return u.func?u.func(c,i):Mse(c[u.field],i[u.field])*(u.order||1)}function Mse(c,i){return!c&&!i?0:i==null?-1:c==null?1:typeof c=="string"||typeof i=="string"?String(c).localeCompare(String(i)):c-i}function Jw(c,i){let u=String(c);return"000".substr(0,i-u.length)+u}function G6(c,i,u){return typeof c=="function"?c(...i):typeof c=="string"?i.reduce((g,C,E)=>g.replace("$"+E,C||""),c):u}function Ise(c,i){return c-i}function F8(c){return c%1===0}function Pse(c){let i=c.querySelector(".fc-scrollgrid-shrink-frame"),u=c.querySelector(".fc-scrollgrid-shrink-cushion");if(!i)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!u)throw new Error("needs fc-scrollgrid-shrink-cushion className");return c.getBoundingClientRect().width-i.getBoundingClientRect().width+u.getBoundingClientRect().width}const gX=["years","months","days","milliseconds"],$se=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Zr(c,i){return typeof c=="string"?Fse(c):typeof c=="object"&&c?pX(c):typeof c=="number"?pX({[i||"milliseconds"]:c}):null}function Fse(c){let i=$se.exec(c);if(i){let u=i[1]?-1:1;return{years:0,months:0,days:u*(i[2]?parseInt(i[2],10):0),milliseconds:u*((i[3]?parseInt(i[3],10):0)*60*60*1e3+(i[4]?parseInt(i[4],10):0)*60*1e3+(i[5]?parseInt(i[5],10):0)*1e3+(i[6]?parseInt(i[6],10):0))}}return null}function pX(c){let i={years:c.years||c.year||0,months:c.months||c.month||0,days:c.days||c.day||0,milliseconds:(c.hours||c.hour||0)*60*60*1e3+(c.minutes||c.minute||0)*60*1e3+(c.seconds||c.second||0)*1e3+(c.milliseconds||c.millisecond||c.ms||0)},u=c.weeks||c.week;return u&&(i.days+=u*7,i.specifiedWeeks=!0),i}function Lse(c,i){return c.years===i.years&&c.months===i.months&&c.days===i.days&&c.milliseconds===i.milliseconds}function P$(c,i){return{years:c.years+i.years,months:c.months+i.months,days:c.days+i.days,milliseconds:c.milliseconds+i.milliseconds}}function Vse(c,i){return{years:c.years-i.years,months:c.months-i.months,days:c.days-i.days,milliseconds:c.milliseconds-i.milliseconds}}function Hse(c,i){return{years:c.years*i,months:c.months*i,days:c.days*i,milliseconds:c.milliseconds*i}}function zse(c){return eS(c)/365}function Use(c){return eS(c)/30}function eS(c){return tg(c)/864e5}function tg(c){return c.years*(365*864e5)+c.months*(30*864e5)+c.days*864e5+c.milliseconds}function $$(c,i){let u=null;for(let g=0;g<gX.length;g+=1){let C=gX[g];if(i[C]){let E=c[C]/i[C];if(!F8(E)||u!==null&&u!==E)return null;u=E}else if(c[C])return null}return u}function F$(c){let i=c.milliseconds;if(i){if(i%1e3!==0)return{unit:"millisecond",value:i};if(i%(1e3*60)!==0)return{unit:"second",value:i/1e3};if(i%(1e3*60*60)!==0)return{unit:"minute",value:i/(1e3*60)};if(i)return{unit:"hour",value:i/(1e3*60*60)}}return c.days?c.specifiedWeeks&&c.days%7===0?{unit:"week",value:c.days/7}:{unit:"day",value:c.days}:c.months?{unit:"month",value:c.months}:c.years?{unit:"year",value:c.years}:{unit:"millisecond",value:0}}function jb(c,i,u){if(c===i)return!0;let g=c.length,C;if(g!==i.length)return!1;for(C=0;C<g;C+=1)if(!(u?u(c[C],i[C]):c[C]===i[C]))return!1;return!0}const Wse=["sun","mon","tue","wed","thu","fri","sat"];function bX(c,i){let u=Gb(c);return u[2]+=i*7,mf(u)}function Gu(c,i){let u=Gb(c);return u[2]+=i,mf(u)}function Zb(c,i){let u=Gb(c);return u[6]+=i,mf(u)}function jse(c,i){return b2(c,i)/7}function b2(c,i){return(i.valueOf()-c.valueOf())/(1e3*60*60*24)}function Zse(c,i){return(i.valueOf()-c.valueOf())/(1e3*60*60)}function Gse(c,i){return(i.valueOf()-c.valueOf())/(1e3*60)}function qse(c,i){return(i.valueOf()-c.valueOf())/1e3}function Yse(c,i){let u=Ii(c),g=Ii(i);return{years:0,months:0,days:Math.round(b2(u,g)),milliseconds:i.valueOf()-g.valueOf()-(c.valueOf()-u.valueOf())}}function Kse(c,i){let u=L8(c,i);return u!==null&&u%7===0?u/7:null}function L8(c,i){return qb(c)===qb(i)?Math.round(b2(c,i)):null}function Ii(c){return mf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()])}function Xse(c){return mf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours()])}function Qse(c){return mf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes()])}function Jse(c){return mf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds()])}function ere(c,i,u){let g=c.getUTCFullYear(),C=L$(c,g,i,u);if(C<1)return L$(c,g-1,i,u);let E=L$(c,g+1,i,u);return E>=1?Math.min(C,E):C}function L$(c,i,u,g){let C=mf([i,0,1+tre(i,u,g)]),E=Ii(c),A=Math.round(b2(C,E));return Math.floor(A/7)+1}function tre(c,i,u){let g=7+i-u;return-((7+mf([c,0,g]).getUTCDay()-i)%7)+g-1}function yX(c){return[c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds()]}function vX(c){return new Date(c[0],c[1]||0,c[2]==null?1:c[2],c[3]||0,c[4]||0,c[5]||0)}function Gb(c){return[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()]}function mf(c){return c.length===1&&(c=c.concat([0])),new Date(Date.UTC(...c))}function CX(c){return!isNaN(c.valueOf())}function qb(c){return c.getUTCHours()*1e3*60*60+c.getUTCMinutes()*1e3*60+c.getUTCSeconds()*1e3+c.getUTCMilliseconds()}function wX(c,i,u=!1){let g=c.toISOString();return g=g.replace(".000",""),u&&(g=g.replace("T00:00:00Z","")),g.length>10&&(i==null?g=g.replace("Z",""):i!==0&&(g=g.replace("Z",H$(i,!0)))),g}function V$(c){return c.toISOString().replace(/T.*$/,"")}function nre(c){return c.toISOString().match(/^\d{4}-\d{2}/)[0]}function ore(c){return Jw(c.getUTCHours(),2)+":"+Jw(c.getUTCMinutes(),2)+":"+Jw(c.getUTCSeconds(),2)}function H$(c,i=!1){let u=c<0?"-":"+",g=Math.abs(c),C=Math.floor(g/60),E=Math.round(g%60);return i?`${u+Jw(C,2)}:${Jw(E,2)}`:`GMT${u}${C}${E?`:${Jw(E,2)}`:""}`}function Es(c,i,u){let g,C;return function(...E){if(!g)C=c.apply(this,E);else if(!jb(g,E)){u&&u(C);let A=c.apply(this,E);(!i||!i(A,C))&&(C=A)}return g=E,C}}function V8(c,i,u){let g,C;return E=>{if(!g)C=c.call(this,E);else if(!fp(g,E)){u&&u(C);let A=c.call(this,E);(!i||!i(A,C))&&(C=A)}return g=E,C}}const SX={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},H8={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},z8=/\s*([ap])\.?m\.?/i,sre=/,/g,rre=/\s+/g,are=/\u200e/g,ire=/UTC|GMT/;class lre{constructor(i){let u={},g={},C=0;for(let E in i)E in SX?(g[E]=i[E],C=Math.max(SX[E],C)):(u[E]=i[E],E in H8&&(C=Math.max(H8[E],C)));this.standardDateProps=u,this.extendedSettings=g,this.severity=C,this.buildFormattingFunc=Es(_X)}format(i,u){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,u)(i)}formatRange(i,u,g,C){let{standardDateProps:E,extendedSettings:A}=this,D=hre(i.marker,u.marker,g.calendarSystem);if(!D)return this.format(i,g);let L=D;L>1&&(E.year==="numeric"||E.year==="2-digit")&&(E.month==="numeric"||E.month==="2-digit")&&(E.day==="numeric"||E.day==="2-digit")&&(L=1);let G=this.format(i,g),W=this.format(u,g);if(G===W)return G;let ae=gre(E,L),ne=_X(ae,A,g),F=ne(i),ye=ne(u),le=pre(G,F,W,ye),te=A.separator||C||g.defaultSeparator||"";return le?le.before+F+te+ye+le.after:G+te+W}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function _X(c,i,u){let g=Object.keys(c).length;return g===1&&c.timeZoneName==="short"?C=>H$(C.timeZoneOffset):g===0&&i.week?C=>mre(u.computeWeekNumber(C.marker),u.weekText,u.weekTextLong,u.locale,i.week):cre(c,i,u)}function cre(c,i,u){c=Object.assign({},c),i=Object.assign({},i),ure(c,i),c.timeZone="UTC";let g=new Intl.DateTimeFormat(u.locale.codes,c),C;if(i.omitZeroMinute){let E=Object.assign({},c);delete E.minute,C=new Intl.DateTimeFormat(u.locale.codes,E)}return E=>{let{marker:A}=E,D;C&&!A.getUTCMinutes()?D=C:D=g;let L=D.format(A);return dre(L,E,c,i,u)}}function ure(c,i){c.timeZoneName&&(c.hour||(c.hour="2-digit"),c.minute||(c.minute="2-digit")),c.timeZoneName==="long"&&(c.timeZoneName="short"),i.omitZeroMinute&&(c.second||c.millisecond)&&delete i.omitZeroMinute}function dre(c,i,u,g,C){return c=c.replace(are,""),u.timeZoneName==="short"&&(c=fre(c,C.timeZone==="UTC"||i.timeZoneOffset==null?"UTC":H$(i.timeZoneOffset))),g.omitCommas&&(c=c.replace(sre,"").trim()),g.omitZeroMinute&&(c=c.replace(":00","")),g.meridiem===!1?c=c.replace(z8,"").trim():g.meridiem==="narrow"?c=c.replace(z8,(E,A)=>A.toLocaleLowerCase()):g.meridiem==="short"?c=c.replace(z8,(E,A)=>`${A.toLocaleLowerCase()}m`):g.meridiem==="lowercase"&&(c=c.replace(z8,E=>E.toLocaleLowerCase())),c=c.replace(rre," "),c=c.trim(),c}function fre(c,i){let u=!1;return c=c.replace(ire,()=>(u=!0,i)),u||(c+=` ${i}`),c}function mre(c,i,u,g,C){let E=[];return C==="long"?E.push(u):(C==="short"||C==="narrow")&&E.push(i),(C==="long"||C==="short")&&E.push(" "),E.push(g.simpleNumberFormat.format(c)),g.options.direction==="rtl"&&E.reverse(),E.join("")}function hre(c,i,u){return u.getMarkerYear(c)!==u.getMarkerYear(i)?5:u.getMarkerMonth(c)!==u.getMarkerMonth(i)?4:u.getMarkerDay(c)!==u.getMarkerDay(i)?2:qb(c)!==qb(i)?1:0}function gre(c,i){let u={};for(let g in c)(!(g in H8)||H8[g]<=i)&&(u[g]=c[g]);return u}function pre(c,i,u,g){let C=0;for(;C<c.length;){let E=c.indexOf(i,C);if(E===-1)break;let A=c.substr(0,E);C=E+i.length;let D=c.substr(C),L=0;for(;L<u.length;){let G=u.indexOf(g,L);if(G===-1)break;let W=u.substr(0,G);L=G+g.length;let ae=u.substr(L);if(A===W&&D===ae)return{before:A,after:D}}}return null}function EX(c,i){let u=i.markerToArray(c.marker);return{marker:c.marker,timeZoneOffset:c.timeZoneOffset,array:u,year:u[0],month:u[1],day:u[2],hour:u[3],minute:u[4],second:u[5],millisecond:u[6]}}function U8(c,i,u,g){let C=EX(c,u.calendarSystem),E=i?EX(i,u.calendarSystem):null;return{date:C,start:C,end:E,timeZone:u.timeZone,localeCodes:u.locale.codes,defaultSeparator:g||u.defaultSeparator}}class bre{constructor(i){this.cmdStr=i}format(i,u,g){return u.cmdFormatter(this.cmdStr,U8(i,null,u,g))}formatRange(i,u,g,C){return g.cmdFormatter(this.cmdStr,U8(i,u,g,C))}}class yre{constructor(i){this.func=i}format(i,u,g){return this.func(U8(i,null,u,g))}formatRange(i,u,g,C){return this.func(U8(i,u,g,C))}}function _l(c){return typeof c=="object"&&c?new lre(c):typeof c=="string"?new bre(c):typeof c=="function"?new yre(c):null}const xX={navLinkDayClick:Wt,navLinkWeekClick:Wt,duration:Zr,bootstrapFontAwesome:Wt,buttonIcons:Wt,customButtons:Wt,defaultAllDayEventDuration:Zr,defaultTimedEventDuration:Zr,nextDayThreshold:Zr,scrollTime:Zr,scrollTimeReset:Boolean,slotMinTime:Zr,slotMaxTime:Zr,dayPopoverFormat:_l,slotDuration:Zr,snapDuration:Zr,headerToolbar:Wt,footerToolbar:Wt,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:_l,dayHeaderClassNames:Wt,dayHeaderContent:Wt,dayHeaderDidMount:Wt,dayHeaderWillUnmount:Wt,dayCellClassNames:Wt,dayCellContent:Wt,dayCellDidMount:Wt,dayCellWillUnmount:Wt,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Wt,weekNumbers:Boolean,weekNumberClassNames:Wt,weekNumberContent:Wt,weekNumberDidMount:Wt,weekNumberWillUnmount:Wt,editable:Boolean,viewClassNames:Wt,viewDidMount:Wt,viewWillUnmount:Wt,nowIndicator:Boolean,nowIndicatorClassNames:Wt,nowIndicatorContent:Wt,nowIndicatorDidMount:Wt,nowIndicatorWillUnmount:Wt,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Wt,locale:Wt,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Wt,eventOrder:Ose,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Wt,contentHeight:Wt,direction:String,weekNumberFormat:_l,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:Wt,initialDate:Wt,now:Wt,eventDataTransform:Wt,stickyHeaderDates:Wt,stickyFooterScrollbar:Wt,viewHeight:Wt,defaultAllDay:Boolean,eventSourceFailure:Wt,eventSourceSuccess:Wt,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Wt,eventConstraint:Wt,eventAllow:Wt,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Wt,eventContent:Wt,eventDidMount:Wt,eventWillUnmount:Wt,selectConstraint:Wt,selectOverlap:Wt,selectAllow:Wt,droppable:Boolean,unselectCancel:String,slotLabelFormat:Wt,slotLaneClassNames:Wt,slotLaneContent:Wt,slotLaneDidMount:Wt,slotLaneWillUnmount:Wt,slotLabelClassNames:Wt,slotLabelContent:Wt,slotLabelDidMount:Wt,slotLabelWillUnmount:Wt,dayMaxEvents:Wt,dayMaxEventRows:Wt,dayMinWidth:Number,slotLabelInterval:Zr,allDayText:String,allDayClassNames:Wt,allDayContent:Wt,allDayDidMount:Wt,allDayWillUnmount:Wt,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:_l,rerenderDelay:Number,moreLinkText:Wt,moreLinkHint:Wt,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Wt,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Zr,hiddenDays:Wt,fixedWeekCount:Boolean,validRange:Wt,visibleRange:Wt,titleFormat:Wt,eventInteractive:Boolean,noEventsText:String,viewHint:Wt,navLinkHint:Wt,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:Wt,moreLinkClassNames:Wt,moreLinkContent:Wt,moreLinkDidMount:Wt,moreLinkWillUnmount:Wt,monthStartFormat:_l,handleCustomRendering:Wt,customRenderingMetaMap:Wt,customRenderingReplaces:Boolean},q6={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},kX={datesSet:Wt,eventsSet:Wt,eventAdd:Wt,eventChange:Wt,eventRemove:Wt,windowResize:Wt,eventClick:Wt,eventMouseEnter:Wt,eventMouseLeave:Wt,select:Wt,unselect:Wt,loading:Wt,_unmount:Wt,_beforeprint:Wt,_afterprint:Wt,_noEventDrop:Wt,_noEventResize:Wt,_resize:Wt,_scrollRequest:Wt},TX={buttonText:Wt,buttonHints:Wt,views:Wt,plugins:Wt,initialEvents:Wt,events:Wt,eventSources:Wt},y2={headerToolbar:v2,footerToolbar:v2,buttonText:v2,buttonHints:v2,buttonIcons:v2,dateIncrement:v2,plugins:W8,events:W8,eventSources:W8,resources:W8};function v2(c,i){return typeof c=="object"&&typeof i=="object"&&c&&i?fp(c,i):c===i}function W8(c,i){return Array.isArray(c)&&Array.isArray(i)?jb(c,i):c===i}const vre={type:String,component:Wt,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Wt,usesMinMaxTime:Boolean,classNames:Wt,content:Wt,didMount:Wt,willUnmount:Wt};function z$(c){return W$(c,y2)}function U$(c,i){let u={},g={};for(let C in i)C in c&&(u[C]=i[C](c[C]));for(let C in c)C in i||(g[C]=c[C]);return{refined:u,extra:g}}function Wt(c){return c}const{hasOwnProperty:j8}=Object.prototype;function W$(c,i){let u={};if(i){for(let g in i)if(i[g]===v2){let C=[];for(let E=c.length-1;E>=0;E-=1){let A=c[E][g];if(typeof A=="object"&&A)C.unshift(A);else if(A!==void 0){u[g]=A;break}}C.length&&(u[g]=W$(C))}}for(let g=c.length-1;g>=0;g-=1){let C=c[g];for(let E in C)E in u||(u[E]=C[E])}return u}function C2(c,i){let u={};for(let g in c)i(c[g],g)&&(u[g]=c[g]);return u}function R1(c,i){let u={};for(let g in c)u[g]=i(c[g],g);return u}function AX(c){let i={};for(let u of c)i[u]=!0;return i}function j$(c){let i=[];for(let u in c)i.push(c[u]);return i}function fp(c,i){if(c===i)return!0;for(let u in c)if(j8.call(c,u)&&!(u in i))return!1;for(let u in i)if(j8.call(i,u)&&c[u]!==i[u])return!1;return!0}const Cre=/^on[A-Z]/;function wre(c,i){const u=Z$(c,i);for(let g of u)if(!Cre.test(g))return!1;return!0}function Z$(c,i){let u=[];for(let g in c)j8.call(c,g)&&(g in i||u.push(g));for(let g in i)j8.call(i,g)&&c[g]!==i[g]&&u.push(g);return u}function G$(c,i,u={}){if(c===i)return!0;for(let g in i)if(!(g in c&&Sre(c[g],i[g],u[g])))return!1;for(let g in c)if(!(g in i))return!1;return!0}function Sre(c,i,u){return c===i||u===!0?!0:u?u(c,i):!1}function _re(c,i=0,u,g=1){let C=[];u==null&&(u=Object.keys(c).length);for(let E=i;E<u;E+=g){let A=c[E];A!==void 0&&C.push(A)}return C}let DX={};function Ere(c,i){DX[c]=i}function xre(c){return new DX[c]}class kre{getMarkerYear(i){return i.getUTCFullYear()}getMarkerMonth(i){return i.getUTCMonth()}getMarkerDay(i){return i.getUTCDate()}arrayToMarker(i){return mf(i)}markerToArray(i){return Gb(i)}}Ere("gregory",kre);const Tre=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Are(c){let i=Tre.exec(c);if(i){let u=new Date(Date.UTC(Number(i[1]),i[3]?Number(i[3])-1:0,Number(i[5]||1),Number(i[7]||0),Number(i[8]||0),Number(i[10]||0),i[12]?+`0.${i[12]}`*1e3:0));if(CX(u)){let g=null;return i[13]&&(g=(i[15]==="-"?-1:1)*(Number(i[16]||0)*60+Number(i[18]||0))),{marker:u,isTimeUnspecified:!i[6],timeZoneOffset:g}}}return null}class Dre{constructor(i){let u=this.timeZone=i.timeZone,g=u!=="local"&&u!=="UTC";i.namedTimeZoneImpl&&g&&(this.namedTimeZoneImpl=new i.namedTimeZoneImpl(u)),this.canComputeOffset=!!(!g||this.namedTimeZoneImpl),this.calendarSystem=xre(i.calendarSystem),this.locale=i.locale,this.weekDow=i.locale.week.dow,this.weekDoy=i.locale.week.doy,i.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof i.firstDay=="number"&&(this.weekDow=i.firstDay),typeof i.weekNumberCalculation=="function"&&(this.weekNumberFunc=i.weekNumberCalculation),this.weekText=i.weekText!=null?i.weekText:i.locale.options.weekText,this.weekTextLong=(i.weekTextLong!=null?i.weekTextLong:i.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=i.cmdFormatter,this.defaultSeparator=i.defaultSeparator}createMarker(i){let u=this.createMarkerMeta(i);return u===null?null:u.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):mf(yX(new Date))}createMarkerMeta(i){if(typeof i=="string")return this.parse(i);let u=null;return typeof i=="number"?u=this.timestampToMarker(i):i instanceof Date?(i=i.valueOf(),isNaN(i)||(u=this.timestampToMarker(i))):Array.isArray(i)&&(u=mf(i)),u===null||!CX(u)?null:{marker:u,isTimeUnspecified:!1,forcedTzo:null}}parse(i){let u=Are(i);if(u===null)return null;let{marker:g}=u,C=null;return u.timeZoneOffset!==null&&(this.canComputeOffset?g=this.timestampToMarker(g.valueOf()-u.timeZoneOffset*60*1e3):C=u.timeZoneOffset),{marker:g,isTimeUnspecified:u.isTimeUnspecified,forcedTzo:C}}getYear(i){return this.calendarSystem.getMarkerYear(i)}getMonth(i){return this.calendarSystem.getMarkerMonth(i)}getDay(i){return this.calendarSystem.getMarkerDay(i)}add(i,u){let g=this.calendarSystem.markerToArray(i);return g[0]+=u.years,g[1]+=u.months,g[2]+=u.days,g[6]+=u.milliseconds,this.calendarSystem.arrayToMarker(g)}subtract(i,u){let g=this.calendarSystem.markerToArray(i);return g[0]-=u.years,g[1]-=u.months,g[2]-=u.days,g[6]-=u.milliseconds,this.calendarSystem.arrayToMarker(g)}addYears(i,u){let g=this.calendarSystem.markerToArray(i);return g[0]+=u,this.calendarSystem.arrayToMarker(g)}addMonths(i,u){let g=this.calendarSystem.markerToArray(i);return g[1]+=u,this.calendarSystem.arrayToMarker(g)}diffWholeYears(i,u){let{calendarSystem:g}=this;return qb(i)===qb(u)&&g.getMarkerDay(i)===g.getMarkerDay(u)&&g.getMarkerMonth(i)===g.getMarkerMonth(u)?g.getMarkerYear(u)-g.getMarkerYear(i):null}diffWholeMonths(i,u){let{calendarSystem:g}=this;return qb(i)===qb(u)&&g.getMarkerDay(i)===g.getMarkerDay(u)?g.getMarkerMonth(u)-g.getMarkerMonth(i)+(g.getMarkerYear(u)-g.getMarkerYear(i))*12:null}greatestWholeUnit(i,u){let g=this.diffWholeYears(i,u);return g!==null?{unit:"year",value:g}:(g=this.diffWholeMonths(i,u),g!==null?{unit:"month",value:g}:(g=Kse(i,u),g!==null?{unit:"week",value:g}:(g=L8(i,u),g!==null?{unit:"day",value:g}:(g=Zse(i,u),F8(g)?{unit:"hour",value:g}:(g=Gse(i,u),F8(g)?{unit:"minute",value:g}:(g=qse(i,u),F8(g)?{unit:"second",value:g}:{unit:"millisecond",value:u.valueOf()-i.valueOf()}))))))}countDurationsBetween(i,u,g){let C;return g.years&&(C=this.diffWholeYears(i,u),C!==null)?C/zse(g):g.months&&(C=this.diffWholeMonths(i,u),C!==null)?C/Use(g):g.days&&(C=L8(i,u),C!==null)?C/eS(g):(u.valueOf()-i.valueOf())/tg(g)}startOf(i,u){return u==="year"?this.startOfYear(i):u==="month"?this.startOfMonth(i):u==="week"?this.startOfWeek(i):u==="day"?Ii(i):u==="hour"?Xse(i):u==="minute"?Qse(i):u==="second"?Jse(i):null}startOfYear(i){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(i)])}startOfMonth(i){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(i),this.calendarSystem.getMarkerMonth(i)])}startOfWeek(i){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(i),this.calendarSystem.getMarkerMonth(i),i.getUTCDate()-(i.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(i){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(i)):ere(i,this.weekDow,this.weekDoy)}format(i,u,g={}){return u.format({marker:i,timeZoneOffset:g.forcedTzo!=null?g.forcedTzo:this.offsetForMarker(i)},this)}formatRange(i,u,g,C={}){return C.isEndExclusive&&(u=Zb(u,-1)),g.formatRange({marker:i,timeZoneOffset:C.forcedStartTzo!=null?C.forcedStartTzo:this.offsetForMarker(i)},{marker:u,timeZoneOffset:C.forcedEndTzo!=null?C.forcedEndTzo:this.offsetForMarker(u)},this,C.defaultSeparator)}formatIso(i,u={}){let g=null;return u.omitTimeZoneOffset||(u.forcedTzo!=null?g=u.forcedTzo:g=this.offsetForMarker(i)),wX(i,g,u.omitTime)}timestampToMarker(i){return this.timeZone==="local"?mf(yX(new Date(i))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(i):mf(this.namedTimeZoneImpl.timestampToArray(i))}offsetForMarker(i){return this.timeZone==="local"?-vX(Gb(i)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Gb(i)):null}toDate(i,u){return this.timeZone==="local"?vX(Gb(i)):this.timeZone==="UTC"?new Date(i.valueOf()):this.namedTimeZoneImpl?new Date(i.valueOf()-this.namedTimeZoneImpl.offsetForArray(Gb(i))*1e3*60):new Date(i.valueOf()-(u||0))}}class Y6{constructor(i){this.iconOverrideOption&&this.setIconOverride(i[this.iconOverrideOption])}setIconOverride(i){let u,g;if(typeof i=="object"&&i){u=Object.assign({},this.iconClasses);for(g in i)u[g]=this.applyIconOverridePrefix(i[g]);this.iconClasses=u}else i===!1&&(this.iconClasses={})}applyIconOverridePrefix(i){let u=this.iconOverridePrefix;return u&&i.indexOf(u)!==0&&(i=u+i),i}getClass(i){return this.classes[i]||""}getIconClass(i,u){let g;return u&&this.rtlIconClasses?g=this.rtlIconClasses[i]||this.iconClasses[i]:g=this.iconClasses[i],g?`${this.baseIconClass} ${g}`:""}getCustomButtonIconClass(i){let u;return this.iconOverrideCustomButtonOption&&(u=i[this.iconOverrideCustomButtonOption],u)?`${this.baseIconClass} ${this.applyIconOverridePrefix(u)}`:""}}Y6.prototype.classes={},Y6.prototype.iconClasses={},Y6.prototype.baseIconClass="",Y6.prototype.iconOverridePrefix="";function NX(c){c();let i=ps.debounceRendering,u=[];function g(C){u.push(C)}for(ps.debounceRendering=g,j6(Qe(Nre,{}),document.createElement("div"));u.length;)u.shift()();ps.debounceRendering=i}class Nre extends hm{render(){return Qe("div",{})}componentDidMount(){this.setState({})}}function OX(c){let i=tse(c),u=i.Provider;return i.Provider=function(){let g=!this.getChildContext,C=u.apply(this,arguments);if(g){let E=[];this.shouldComponentUpdate=A=>{this.props.value!==A.value&&E.forEach(D=>{D.context=A.value,D.forceUpdate()})},this.sub=A=>{E.push(A);let D=A.componentWillUnmount;A.componentWillUnmount=()=>{E.splice(E.indexOf(A),1),D&&D.call(A)}}}return C},i}class Ore{constructor(i,u,g,C){this.execFunc=i,this.emitter=u,this.scrollTime=g,this.scrollTimeReset=C,this.handleScrollRequest=E=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},E),this.drain()},u.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(i){i&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const B1=OX({});function Rre(c,i,u,g,C,E,A,D,L,G,W,ae,ne){return{dateEnv:C,options:u,pluginHooks:A,emitter:G,dispatch:D,getCurrentData:L,calendarApi:W,viewSpec:c,viewApi:i,dateProfileGenerator:g,theme:E,isRtl:u.direction==="rtl",addResizeHandler(F){G.on("_resize",F)},removeResizeHandler(F){G.off("_resize",F)},createScrollResponder(F){return new Ore(F,G,Zr(u.scrollTime),u.scrollTimeReset)},registerInteractiveComponent:ae,unregisterInteractiveComponent:ne}}class w2 extends hm{shouldComponentUpdate(i,u){return this.debug&&console.log(Z$(i,this.props),Z$(u,this.state)),!G$(this.props,i,this.propEquality)||!G$(this.state,u,this.stateEquality)}safeSetState(i){G$(this.state,Object.assign(Object.assign({},this.state),i),this.stateEquality)||this.setState(i)}}w2.addPropsEquality=Bre,w2.addStateEquality=Mre,w2.contextType=B1,w2.prototype.propEquality={},w2.prototype.stateEquality={};class Ba extends w2{}Ba.contextType=B1;function Bre(c){let i=Object.create(this.prototype.propEquality);Object.assign(i,c),this.prototype.propEquality=i}function Mre(c){let i=Object.create(this.prototype.stateEquality);Object.assign(i,c),this.prototype.stateEquality=i}function M1(c,i){typeof c=="function"?c(i):c&&(c.current=i)}class q$ extends Ba{constructor(){super(...arguments),this.id=p2(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=i=>{const{options:u}=this.context,{generatorName:g}=this.props;(!u.customRenderingReplaces||!Y$(g,u))&&this.updateElRef(i)},this.updateElRef=i=>{this.props.elRef&&M1(this.props.elRef,i)}}render(){const{props:i,context:u}=this,{options:g}=u,{customGenerator:C,defaultGenerator:E,renderProps:A}=i,D=RX(i,[],this.handleEl);let L=!1,G,W=[],ae;if(C!=null){const ne=typeof C=="function"?C(A,Qe):C;if(ne===!0)L=!0;else{const F=ne&&typeof ne=="object";F&&"html"in ne?D.dangerouslySetInnerHTML={__html:ne.html}:F&&"domNodes"in ne?W=Array.prototype.slice.call(ne.domNodes):(F?wK(ne):typeof ne!="function")?G=ne:ae=ne}}else L=!Y$(i.generatorName,g);return L&&E&&(G=E(A)),this.queuedDomNodes=W,this.currentGeneratorMeta=ae,Qe(i.elTag,D,G)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(i){var u;const{props:g,context:C}=this,{handleCustomRendering:E,customRenderingMetaMap:A}=C.options;if(E){const D=(u=this.currentGeneratorMeta)!==null&&u!==void 0?u:A==null?void 0:A[g.generatorName];D&&E(Object.assign(Object.assign({id:this.id,isActive:i,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:D},g),{elClasses:(g.elClasses||[]).filter(Ire)}))}}applyQueueudDomNodes(){const{queuedDomNodes:i,currentDomNodes:u}=this,g=this.base;if(!jb(i,u)){u.forEach(B$);for(let C of i)g.appendChild(C);this.currentDomNodes=i}}}q$.addPropsEquality({elClasses:jb,elStyle:fp,elAttrs:wre,renderProps:fp});function Y$(c,i){var u;return!!(i.handleCustomRendering&&c&&(!((u=i.customRenderingMetaMap)===null||u===void 0)&&u[c]))}function RX(c,i,u){const g=Object.assign(Object.assign({},c.elAttrs),{ref:u});return(c.elClasses||i)&&(g.className=(c.elClasses||[]).concat(i||[]).concat(g.className||[]).filter(Boolean).join(" ")),c.elStyle&&(g.style=c.elStyle),g}function Ire(c){return!!c}const BX=OX(0);class gm extends hm{constructor(){super(...arguments),this.InnerContent=Pre.bind(void 0,this),this.handleEl=i=>{this.el=i,this.props.elRef&&(M1(this.props.elRef,i),i&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:i}=this,u=$re(i.classNameGenerator,i.renderProps);if(i.children){const g=RX(i,u,this.handleEl),C=i.children(this.InnerContent,i.renderProps,g);return i.elTag?Qe(i.elTag,g,C):C}else return Qe(q$,Object.assign(Object.assign({},i),{elRef:this.handleEl,elTag:i.elTag||"div",elClasses:(i.elClasses||[]).concat(u),renderId:this.context}))}componentDidMount(){var i,u;this.el?(u=(i=this.props).didMount)===null||u===void 0||u.call(i,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var i,u;(u=(i=this.props).willUnmount)===null||u===void 0||u.call(i,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}gm.contextType=BX;function Pre(c,i){const u=c.props;return Qe(q$,Object.assign({renderProps:u.renderProps,generatorName:u.generatorName,customGenerator:u.customGenerator,defaultGenerator:u.defaultGenerator,renderId:c.context},i))}function $re(c,i){const u=typeof c=="function"?c(i):c||[];return typeof u=="string"?[u]:u}class Z8 extends Ba{render(){let{props:i,context:u}=this,{options:g}=u,C={view:u.viewApi};return Qe(gm,Object.assign({},i,{elTag:i.elTag||"div",elClasses:[...MX(i.viewSpec),...i.elClasses||[]],renderProps:C,classNameGenerator:g.viewClassNames,generatorName:void 0,didMount:g.viewDidMount,willUnmount:g.viewWillUnmount}),()=>i.children)}}function MX(c){return[`fc-${c.type}-view`,"fc-view"]}function Fre(c,i){let u=null,g=null;return c.start&&(u=i.createMarker(c.start)),c.end&&(g=i.createMarker(c.end)),!u&&!g||u&&g&&g<u?null:{start:u,end:g}}function IX(c,i){let u=[],{start:g}=i,C,E;for(c.sort(Lre),C=0;C<c.length;C+=1)E=c[C],E.start>g&&u.push({start:g,end:E.start}),E.end>g&&(g=E.end);return g<i.end&&u.push({start:g,end:i.end}),u}function Lre(c,i){return c.start.valueOf()-i.start.valueOf()}function S2(c,i){let{start:u,end:g}=c,C=null;return i.start!==null&&(u===null?u=i.start:u=new Date(Math.max(u.valueOf(),i.start.valueOf()))),i.end!=null&&(g===null?g=i.end:g=new Date(Math.min(g.valueOf(),i.end.valueOf()))),(u===null||g===null||u<g)&&(C={start:u,end:g}),C}function Vre(c,i){return(c.start===null?null:c.start.valueOf())===(i.start===null?null:i.start.valueOf())&&(c.end===null?null:c.end.valueOf())===(i.end===null?null:i.end.valueOf())}function K$(c,i){return(c.end===null||i.start===null||c.end>i.start)&&(c.start===null||i.end===null||c.start<i.end)}function G8(c,i){return(c.start===null||i.start!==null&&i.start>=c.start)&&(c.end===null||i.end!==null&&i.end<=c.end)}function I1(c,i){return(c.start===null||i>=c.start)&&(c.end===null||i<c.end)}function Hre(c,i){return i.start!=null&&c<i.start?i.start:i.end!=null&&c>=i.end?new Date(i.end.valueOf()-1):c}function PX(c){let i=Math.floor(b2(c.start,c.end))||1,u=Ii(c.start),g=Gu(u,i);return{start:u,end:g}}function $X(c,i=Zr(0)){let u=null,g=null;if(c.end){g=Ii(c.end);let C=c.end.valueOf()-g.valueOf();C&&C>=tg(i)&&(g=Gu(g,1))}return c.start&&(u=Ii(c.start),g&&g<=u&&(g=Gu(u,1))),{start:u,end:g}}function tS(c,i,u,g){return g==="year"?Zr(u.diffWholeYears(c,i),"year"):g==="month"?Zr(u.diffWholeMonths(c,i),"month"):Yse(c,i)}function zre(c,i){switch(i.type){case"CHANGE_DATE":return i.dateMarker;default:return c}}function Ure(c,i){let u=c.initialDate;return u!=null?i.createMarker(u):K6(c.now,i)}function K6(c,i){return typeof c=="function"&&(c=c()),c==null?i.createNowMarker():i.createMarker(c)}class FX{constructor(i){this.props=i,this.nowDate=K6(i.nowInput,i.dateEnv),this.initHiddenDays()}buildPrev(i,u,g){let{dateEnv:C}=this.props,E=C.subtract(C.startOf(u,i.currentRangeUnit),i.dateIncrement);return this.build(E,-1,g)}buildNext(i,u,g){let{dateEnv:C}=this.props,E=C.add(C.startOf(u,i.currentRangeUnit),i.dateIncrement);return this.build(E,1,g)}build(i,u,g=!0){let{props:C}=this,E,A,D,L,G,W;return E=this.buildValidRange(),E=this.trimHiddenDays(E),g&&(i=Hre(i,E)),A=this.buildCurrentRangeInfo(i,u),D=/^(year|month|week|day)$/.test(A.unit),L=this.buildRenderRange(this.trimHiddenDays(A.range),A.unit,D),L=this.trimHiddenDays(L),G=L,C.showNonCurrentDates||(G=S2(G,A.range)),G=this.adjustActiveRange(G),G=S2(G,E),W=K$(A.range,E),I1(L,i)||(i=L.start),{currentDate:i,validRange:E,currentRange:A.range,currentRangeUnit:A.unit,isRangeAllDay:D,activeRange:G,renderRange:L,slotMinTime:C.slotMinTime,slotMaxTime:C.slotMaxTime,isValid:W,dateIncrement:this.buildDateIncrement(A.duration)}}buildValidRange(){let i=this.props.validRangeInput,u=typeof i=="function"?i.call(this.props.calendarApi,this.nowDate):i;return this.refineRange(u)||{start:null,end:null}}buildCurrentRangeInfo(i,u){let{props:g}=this,C=null,E=null,A=null,D;return g.duration?(C=g.duration,E=g.durationUnit,A=this.buildRangeFromDuration(i,u,C,E)):(D=this.props.dayCount)?(E="day",A=this.buildRangeFromDayCount(i,u,D)):(A=this.buildCustomVisibleRange(i))?E=g.dateEnv.greatestWholeUnit(A.start,A.end).unit:(C=this.getFallbackDuration(),E=F$(C).unit,A=this.buildRangeFromDuration(i,u,C,E)),{duration:C,unit:E,range:A}}getFallbackDuration(){return Zr({day:1})}adjustActiveRange(i){let{dateEnv:u,usesMinMaxTime:g,slotMinTime:C,slotMaxTime:E}=this.props,{start:A,end:D}=i;return g&&(eS(C)<0&&(A=Ii(A),A=u.add(A,C)),eS(E)>1&&(D=Ii(D),D=Gu(D,-1),D=u.add(D,E))),{start:A,end:D}}buildRangeFromDuration(i,u,g,C){let{dateEnv:E,dateAlignment:A}=this.props,D,L,G;if(!A){let{dateIncrement:ae}=this.props;ae&&tg(ae)<tg(g)?A=F$(ae).unit:A=C}eS(g)<=1&&this.isHiddenDay(D)&&(D=this.skipHiddenDays(D,u),D=Ii(D));function W(){D=E.startOf(i,A),L=E.add(D,g),G={start:D,end:L}}return W(),this.trimHiddenDays(G)||(i=this.skipHiddenDays(i,u),W()),G}buildRangeFromDayCount(i,u,g){let{dateEnv:C,dateAlignment:E}=this.props,A=0,D=i,L;E&&(D=C.startOf(D,E)),D=Ii(D),D=this.skipHiddenDays(D,u),L=D;do L=Gu(L,1),this.isHiddenDay(L)||(A+=1);while(A<g);return{start:D,end:L}}buildCustomVisibleRange(i){let{props:u}=this,g=u.visibleRangeInput,C=typeof g=="function"?g.call(u.calendarApi,u.dateEnv.toDate(i)):g,E=this.refineRange(C);return E&&(E.start==null||E.end==null)?null:E}buildRenderRange(i,u,g){return i}buildDateIncrement(i){let{dateIncrement:u}=this.props,g;return u||((g=this.props.dateAlignment)?Zr(1,g):i||Zr({days:1}))}refineRange(i){if(i){let u=Fre(i,this.props.dateEnv);return u&&(u=$X(u)),u}return null}initHiddenDays(){let i=this.props.hiddenDays||[],u=[],g=0,C;for(this.props.weekends===!1&&i.push(0,6),C=0;C<7;C+=1)(u[C]=i.indexOf(C)!==-1)||(g+=1);if(!g)throw new Error("invalid hiddenDays");this.isHiddenDayHash=u}trimHiddenDays(i){let{start:u,end:g}=i;return u&&(u=this.skipHiddenDays(u)),g&&(g=this.skipHiddenDays(g,-1,!0)),u==null||g==null||u<g?{start:u,end:g}:null}isHiddenDay(i){return i instanceof Date&&(i=i.getUTCDay()),this.isHiddenDayHash[i]}skipHiddenDays(i,u=1,g=!1){for(;this.isHiddenDayHash[(i.getUTCDay()+(g?u:0)+7)%7];)i=Gu(i,u);return i}}function X$(c,i,u,g){return{instanceId:p2(),defId:c,range:i,forcedStartTzo:u??null,forcedEndTzo:g??null}}function Wre(c,i,u,g){for(let C=0;C<g.length;C+=1){let E=g[C].parse(c,u);if(E){let{allDay:A}=c;return A==null&&(A=i,A==null&&(A=E.allDayGuess,A==null&&(A=!1))),{allDay:A,duration:E.duration,typeData:E.typeData,typeId:C}}}return null}function _2(c,i,u){let{dateEnv:g,pluginHooks:C,options:E}=u,{defs:A,instances:D}=c;D=C2(D,L=>!A[L.defId].recurringDef);for(let L in A){let G=A[L];if(G.recurringDef){let{duration:W}=G.recurringDef;W||(W=G.allDay?E.defaultAllDayEventDuration:E.defaultTimedEventDuration);let ae=jre(G,W,i,g,C.recurringTypes);for(let ne of ae){let F=X$(L,{start:ne,end:g.add(ne,W)});D[F.instanceId]=F}}}return{defs:A,instances:D}}function jre(c,i,u,g,C){let A=C[c.recurringDef.typeId].expand(c.recurringDef.typeData,{start:g.subtract(u.start,i),end:u.end},g);return c.allDay&&(A=A.map(Ii)),A}const q8={id:String,groupId:String,title:String,url:String,interactive:Boolean},LX={start:Wt,end:Wt,date:Wt,allDay:Boolean},Zre=Object.assign(Object.assign(Object.assign({},q8),LX),{extendedProps:Wt});function VX(c,i,u,g,C=Q$(u),E,A){let{refined:D,extra:L}=HX(c,u,C),G=qre(i,u),W=Wre(D,G,u.dateEnv,u.pluginHooks.recurringTypes);if(W){let ne=J$(D,L,i?i.sourceId:"",W.allDay,!!W.duration,u,E);return ne.recurringDef={typeId:W.typeId,typeData:W.typeData,duration:W.duration},{def:ne,instance:null}}let ae=Gre(D,G,u,g);if(ae){let ne=J$(D,L,i?i.sourceId:"",ae.allDay,ae.hasEnd,u,E),F=X$(ne.defId,ae.range,ae.forcedStartTzo,ae.forcedEndTzo);return A&&ne.publicId&&A[ne.publicId]&&(F.instanceId=A[ne.publicId]),{def:ne,instance:F}}return null}function HX(c,i,u=Q$(i)){return U$(c,u)}function Q$(c){return Object.assign(Object.assign(Object.assign({},K8),Zre),c.pluginHooks.eventRefiners)}function J$(c,i,u,g,C,E,A){let D={title:c.title||"",groupId:c.groupId||"",publicId:c.id||"",url:c.url||"",recurringDef:null,defId:(A&&c.id?A[c.id]:"")||p2(),sourceId:u,allDay:g,hasEnd:C,interactive:c.interactive,ui:X8(c,E),extendedProps:Object.assign(Object.assign({},c.extendedProps||{}),i)};for(let L of E.pluginHooks.eventDefMemberAdders)Object.assign(D,L(c));return Object.freeze(D.ui.classNames),Object.freeze(D.extendedProps),D}function Gre(c,i,u,g){let{allDay:C}=c,E,A=null,D=!1,L,G=null,W=c.start!=null?c.start:c.date;if(E=u.dateEnv.createMarkerMeta(W),E)A=E.marker;else if(!g)return null;return c.end!=null&&(L=u.dateEnv.createMarkerMeta(c.end)),C==null&&(i!=null?C=i:C=(!E||E.isTimeUnspecified)&&(!L||L.isTimeUnspecified)),C&&A&&(A=Ii(A)),L&&(G=L.marker,C&&(G=Ii(G)),A&&G<=A&&(G=null)),G?D=!0:g||(D=u.options.forceEventDuration||!1,G=u.dateEnv.add(A,C?u.options.defaultAllDayEventDuration:u.options.defaultTimedEventDuration)),{allDay:C,hasEnd:D,range:{start:A,end:G},forcedStartTzo:E?E.forcedTzo:null,forcedEndTzo:L?L.forcedTzo:null}}function qre(c,i){let u=null;return c&&(u=c.defaultAllDay),u==null&&(u=i.options.defaultAllDay),u}function X6(c,i,u,g,C,E){let A=pm(),D=Q$(u);for(let L of c){let G=VX(L,i,u,g,D,C,E);G&&eF(G,A)}return A}function eF(c,i=pm()){return i.defs[c.def.defId]=c.def,c.instance&&(i.instances[c.instance.instanceId]=c.instance),i}function tF(c,i){let u=c.instances[i];if(u){let g=c.defs[u.defId],C=Y8(c,E=>Yre(g,E));return C.defs[g.defId]=g,C.instances[u.instanceId]=u,C}return pm()}function Yre(c,i){return!!(c.groupId&&c.groupId===i.groupId)}function pm(){return{defs:{},instances:{}}}function nF(c,i){return{defs:Object.assign(Object.assign({},c.defs),i.defs),instances:Object.assign(Object.assign({},c.instances),i.instances)}}function Y8(c,i){let u=C2(c.defs,i),g=C2(c.instances,C=>u[C.defId]);return{defs:u,instances:g}}function Kre(c,i){let{defs:u,instances:g}=c,C={},E={};for(let A in u)i.defs[A]||(C[A]=u[A]);for(let A in g)!i.instances[A]&&C[g[A].defId]&&(E[A]=g[A]);return{defs:C,instances:E}}function Xre(c,i){return Array.isArray(c)?X6(c,null,i,!0):typeof c=="object"&&c?X6([c],null,i,!0):c!=null?String(c):null}function zX(c){return Array.isArray(c)?c:typeof c=="string"?c.split(/\s+/):[]}const K8={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Wt,overlap:Wt,allow:Wt,className:zX,classNames:zX,color:String,backgroundColor:String,borderColor:String,textColor:String},Qre={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function X8(c,i){let u=Xre(c.constraint,i);return{display:c.display||null,startEditable:c.startEditable!=null?c.startEditable:c.editable,durationEditable:c.durationEditable!=null?c.durationEditable:c.editable,constraints:u!=null?[u]:[],overlap:c.overlap!=null?c.overlap:null,allows:c.allow!=null?[c.allow]:[],backgroundColor:c.backgroundColor||c.color||"",borderColor:c.borderColor||c.color||"",textColor:c.textColor||"",classNames:(c.className||[]).concat(c.classNames||[])}}function UX(c){return c.reduce(Jre,Qre)}function Jre(c,i){return{display:i.display!=null?i.display:c.display,startEditable:i.startEditable!=null?i.startEditable:c.startEditable,durationEditable:i.durationEditable!=null?i.durationEditable:c.durationEditable,constraints:c.constraints.concat(i.constraints),overlap:typeof i.overlap=="boolean"?i.overlap:c.overlap,allows:c.allows.concat(i.allows),backgroundColor:i.backgroundColor||c.backgroundColor,borderColor:i.borderColor||c.borderColor,textColor:i.textColor||c.textColor,classNames:c.classNames.concat(i.classNames)}}const eae={id:String,defaultAllDay:Boolean,url:String,format:String,events:Wt,eventDataTransform:Wt,success:Wt,failure:Wt};function WX(c,i,u=jX(i)){let g;if(typeof c=="string"?g={url:c}:typeof c=="function"||Array.isArray(c)?g={events:c}:typeof c=="object"&&c&&(g=c),g){let{refined:C,extra:E}=U$(g,u),A=tae(C,i);if(A)return{_raw:c,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:C.defaultAllDay,eventDataTransform:C.eventDataTransform,success:C.success,failure:C.failure,publicId:C.id||"",sourceId:p2(),sourceDefId:A.sourceDefId,meta:A.meta,ui:X8(C,i),extendedProps:E}}return null}function jX(c){return Object.assign(Object.assign(Object.assign({},K8),eae),c.pluginHooks.eventSourceRefiners)}function tae(c,i){let u=i.pluginHooks.eventSourceDefs;for(let g=u.length-1;g>=0;g-=1){let E=u[g].parseMeta(c);if(E)return{sourceDefId:g,meta:E}}return null}function nae(c,i,u,g,C){switch(i.type){case"RECEIVE_EVENTS":return oae(c,u[i.sourceId],i.fetchId,i.fetchRange,i.rawEvents,C);case"RESET_RAW_EVENTS":return sae(c,u[i.sourceId],i.rawEvents,g.activeRange,C);case"ADD_EVENTS":return rae(c,i.eventStore,g?g.activeRange:null,C);case"RESET_EVENTS":return i.eventStore;case"MERGE_EVENTS":return nF(c,i.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return g?_2(c,g.activeRange,C):c;case"REMOVE_EVENTS":return Kre(c,i.eventStore);case"REMOVE_EVENT_SOURCE":return YX(c,i.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Y8(c,E=>!E.sourceId);case"REMOVE_ALL_EVENTS":return pm();default:return c}}function oae(c,i,u,g,C,E){if(i&&u===i.latestFetchId){let A=X6(ZX(C,i,E),i,E);return g&&(A=_2(A,g,E)),nF(YX(c,i.sourceId),A)}return c}function sae(c,i,u,g,C){const{defIdMap:E,instanceIdMap:A}=iae(c);let D=X6(ZX(u,i,C),i,C,!1,E,A);return _2(D,g,C)}function ZX(c,i,u){let g=u.options.eventDataTransform,C=i?i.eventDataTransform:null;return C&&(c=GX(c,C)),g&&(c=GX(c,g)),c}function GX(c,i){let u;if(!i)u=c;else{u=[];for(let g of c){let C=i(g);C?u.push(C):C==null&&u.push(g)}}return u}function rae(c,i,u,g){return u&&(i=_2(i,u,g)),nF(c,i)}function qX(c,i,u){let{defs:g}=c,C=R1(c.instances,E=>g[E.defId].allDay?E:Object.assign(Object.assign({},E),{range:{start:u.createMarker(i.toDate(E.range.start,E.forcedStartTzo)),end:u.createMarker(i.toDate(E.range.end,E.forcedEndTzo))},forcedStartTzo:u.canComputeOffset?null:E.forcedStartTzo,forcedEndTzo:u.canComputeOffset?null:E.forcedEndTzo}));return{defs:g,instances:C}}function YX(c,i){return Y8(c,u=>u.sourceId!==i)}function aae(c,i){return{defs:c.defs,instances:C2(c.instances,u=>!i[u.instanceId])}}function iae(c){const{defs:i,instances:u}=c,g={},C={};for(let E in i){const A=i[E],{publicId:D}=A;D&&(g[D]=E)}for(let E in u){const A=u[E],D=i[A.defId],{publicId:L}=D;L&&(C[L]=E)}return{defIdMap:g,instanceIdMap:C}}class Q8{constructor(){this.handlers={},this.thisContext=null}setThisContext(i){this.thisContext=i}setOptions(i){this.options=i}on(i,u){lae(this.handlers,i,u)}off(i,u){cae(this.handlers,i,u)}trigger(i,...u){let g=this.handlers[i]||[],C=this.options&&this.options[i],E=[].concat(C||[],g);for(let A of E)A.apply(this.thisContext,u)}hasHandlers(i){return!!(this.handlers[i]&&this.handlers[i].length||this.options&&this.options[i])}}function lae(c,i,u){(c[i]||(c[i]=[])).push(u)}function cae(c,i,u){u?c[i]&&(c[i]=c[i].filter(g=>g!==u)):delete c[i]}const uae={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function dae(c,i){return X6(fae(c),null,i)}function fae(c){let i;return c===!0?i=[{}]:Array.isArray(c)?i=c.filter(u=>u.daysOfWeek):typeof c=="object"&&c?i=[c]:i=[],i=i.map(u=>Object.assign(Object.assign({},uae),u)),i}function KX(c,i,u){u.emitter.trigger("select",Object.assign(Object.assign({},oF(c,u)),{jsEvent:i?i.origEvent:null,view:u.viewApi||u.calendarApi.view}))}function mae(c,i){i.emitter.trigger("unselect",{jsEvent:c?c.origEvent:null,view:i.viewApi||i.calendarApi.view})}function oF(c,i){let u={};for(let g of i.pluginHooks.dateSpanTransforms)Object.assign(u,g(c,i));return Object.assign(u,Tae(c,i.dateEnv)),u}function XX(c,i,u){let{dateEnv:g,options:C}=u,E=i;return c?(E=Ii(E),E=g.add(E,C.defaultAllDayEventDuration)):E=g.add(E,C.defaultTimedEventDuration),E}function sF(c,i,u,g){let C=J8(c.defs,i),E=pm();for(let A in c.defs){let D=c.defs[A];E.defs[A]=hae(D,C[A],u,g)}for(let A in c.instances){let D=c.instances[A],L=E.defs[D.defId];E.instances[A]=gae(D,L,C[D.defId],u,g)}return E}function hae(c,i,u,g){let C=u.standardProps||{};C.hasEnd==null&&i.durationEditable&&(u.startDelta||u.endDelta)&&(C.hasEnd=!0);let E=Object.assign(Object.assign(Object.assign({},c),C),{ui:Object.assign(Object.assign({},c.ui),C.ui)});u.extendedProps&&(E.extendedProps=Object.assign(Object.assign({},E.extendedProps),u.extendedProps));for(let A of g.pluginHooks.eventDefMutationAppliers)A(E,u,g);return!E.hasEnd&&g.options.forceEventDuration&&(E.hasEnd=!0),E}function gae(c,i,u,g,C){let{dateEnv:E}=C,A=g.standardProps&&g.standardProps.allDay===!0,D=g.standardProps&&g.standardProps.hasEnd===!1,L=Object.assign({},c);return A&&(L.range=PX(L.range)),g.datesDelta&&u.startEditable&&(L.range={start:E.add(L.range.start,g.datesDelta),end:E.add(L.range.end,g.datesDelta)}),g.startDelta&&u.durationEditable&&(L.range={start:E.add(L.range.start,g.startDelta),end:L.range.end}),g.endDelta&&u.durationEditable&&(L.range={start:L.range.start,end:E.add(L.range.end,g.endDelta)}),D&&(L.range={start:L.range.start,end:XX(i.allDay,L.range.start,C)}),i.allDay&&(L.range={start:Ii(L.range.start),end:Ii(L.range.end)}),L.range.end<L.range.start&&(L.range.end=XX(i.allDay,L.range.start,C)),L}class nS{constructor(i,u){this.context=i,this.internalEventSource=u}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class gl{constructor(i,u,g){this._context=i,this._def=u,this._instance=g||null}setProp(i,u){if(i in LX)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(i==="id")u=q8[i](u),this.mutate({standardProps:{publicId:u}});else if(i in q8)u=q8[i](u),this.mutate({standardProps:{[i]:u}});else if(i in K8){let g=K8[i](u);i==="color"?g={backgroundColor:u,borderColor:u}:i==="editable"?g={startEditable:u,durationEditable:u}:g={[i]:u},this.mutate({standardProps:{ui:g}})}else console.warn(`Could not set prop '${i}'. Use setExtendedProp instead.`)}setExtendedProp(i,u){this.mutate({extendedProps:{[i]:u}})}setStart(i,u={}){let{dateEnv:g}=this._context,C=g.createMarker(i);if(C&&this._instance){let E=this._instance.range,A=tS(E.start,C,g,u.granularity);u.maintainDuration?this.mutate({datesDelta:A}):this.mutate({startDelta:A})}}setEnd(i,u={}){let{dateEnv:g}=this._context,C;if(!(i!=null&&(C=g.createMarker(i),!C))&&this._instance)if(C){let E=tS(this._instance.range.end,C,g,u.granularity);this.mutate({endDelta:E})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(i,u,g={}){let{dateEnv:C}=this._context,E={allDay:g.allDay},A=C.createMarker(i),D;if(A&&!(u!=null&&(D=C.createMarker(u),!D))&&this._instance){let L=this._instance.range;g.allDay===!0&&(L=PX(L));let G=tS(L.start,A,C,g.granularity);if(D){let W=tS(L.end,D,C,g.granularity);Lse(G,W)?this.mutate({datesDelta:G,standardProps:E}):this.mutate({startDelta:G,endDelta:W,standardProps:E})}else E.hasEnd=!1,this.mutate({datesDelta:G,standardProps:E})}}moveStart(i){let u=Zr(i);u&&this.mutate({startDelta:u})}moveEnd(i){let u=Zr(i);u&&this.mutate({endDelta:u})}moveDates(i){let u=Zr(i);u&&this.mutate({datesDelta:u})}setAllDay(i,u={}){let g={allDay:i},{maintainDuration:C}=u;C==null&&(C=this._context.options.allDayMaintainDuration),this._def.allDay!==i&&(g.hasEnd=C),this.mutate({standardProps:g})}formatRange(i){let{dateEnv:u}=this._context,g=this._instance,C=_l(i);return this._def.hasEnd?u.formatRange(g.range.start,g.range.end,C,{forcedStartTzo:g.forcedStartTzo,forcedEndTzo:g.forcedEndTzo}):u.format(g.range.start,C,{forcedTzo:g.forcedStartTzo})}mutate(i){let u=this._instance;if(u){let g=this._def,C=this._context,{eventStore:E}=C.getCurrentData(),A=tF(E,u.instanceId);A=sF(A,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},i,C);let L=new gl(C,g,u);this._def=A.defs[g.defId],this._instance=A.instances[u.instanceId],C.dispatch({type:"MERGE_EVENTS",eventStore:A}),C.emitter.trigger("eventChange",{oldEvent:L,event:this,relatedEvents:E2(A,C,u),revert(){C.dispatch({type:"RESET_EVENTS",eventStore:E})}})}}remove(){let i=this._context,u=QX(this);i.dispatch({type:"REMOVE_EVENTS",eventStore:u}),i.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){i.dispatch({type:"MERGE_EVENTS",eventStore:u})}})}get source(){let{sourceId:i}=this._def;return i?new nS(this._context,this._context.getCurrentData().eventSources[i]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let i=this._instance;return i?this._context.dateEnv.formatIso(i.range.start,{omitTime:this._def.allDay,forcedTzo:i.forcedStartTzo}):""}get endStr(){let i=this._instance;return i&&this._def.hasEnd?this._context.dateEnv.formatIso(i.range.end,{omitTime:this._def.allDay,forcedTzo:i.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(i={}){let u=this._def,{ui:g}=u,{startStr:C,endStr:E}=this,A={allDay:u.allDay};return u.title&&(A.title=u.title),C&&(A.start=C),E&&(A.end=E),u.publicId&&(A.id=u.publicId),u.groupId&&(A.groupId=u.groupId),u.url&&(A.url=u.url),g.display&&g.display!=="auto"&&(A.display=g.display),i.collapseColor&&g.backgroundColor&&g.backgroundColor===g.borderColor?A.color=g.backgroundColor:(g.backgroundColor&&(A.backgroundColor=g.backgroundColor),g.borderColor&&(A.borderColor=g.borderColor)),g.textColor&&(A.textColor=g.textColor),g.classNames.length&&(A.classNames=g.classNames),Object.keys(u.extendedProps).length&&(i.collapseExtendedProps?Object.assign(A,u.extendedProps):A.extendedProps=u.extendedProps),A}toJSON(){return this.toPlainObject()}}function QX(c){let i=c._def,u=c._instance;return{defs:{[i.defId]:i},instances:u?{[u.instanceId]:u}:{}}}function E2(c,i,u){let{defs:g,instances:C}=c,E=[],A=u?u.instanceId:"";for(let D in C){let L=C[D],G=g[L.defId];L.instanceId!==A&&E.push(new gl(i,G,L))}return E}function JX(c,i,u,g){let C={},E={},A={},D=[],L=[],G=J8(c.defs,i);for(let W in c.defs){let ae=c.defs[W];G[ae.defId].display==="inverse-background"&&(ae.groupId?(C[ae.groupId]=[],A[ae.groupId]||(A[ae.groupId]=ae)):E[W]=[])}for(let W in c.instances){let ae=c.instances[W],ne=c.defs[ae.defId],F=G[ne.defId],ye=ae.range,le=!ne.allDay&&g?$X(ye,g):ye,te=S2(le,u);te&&(F.display==="inverse-background"?ne.groupId?C[ne.groupId].push(te):E[ae.defId].push(te):F.display!=="none"&&(F.display==="background"?D:L).push({def:ne,ui:F,instance:ae,range:te,isStart:le.start&&le.start.valueOf()===te.start.valueOf(),isEnd:le.end&&le.end.valueOf()===te.end.valueOf()}))}for(let W in C){let ae=C[W],ne=IX(ae,u);for(let F of ne){let ye=A[W],le=G[ye.defId];D.push({def:ye,ui:le,instance:null,range:F,isStart:!1,isEnd:!1})}}for(let W in E){let ae=E[W],ne=IX(ae,u);for(let F of ne)D.push({def:c.defs[W],ui:G[W],instance:null,range:F,isStart:!1,isEnd:!1})}return{bg:D,fg:L}}function pae(c){return c.ui.display==="background"||c.ui.display==="inverse-background"}function eQ(c,i){c.fcSeg=i}function oS(c){return c.fcSeg||c.parentNode.fcSeg||null}function J8(c,i){return R1(c,u=>tQ(u,i))}function tQ(c,i){let u=[];return i[""]&&u.push(i[""]),i[c.defId]&&u.push(i[c.defId]),u.push(c.ui),UX(u)}function nQ(c,i){let u=c.map(bae);return u.sort((g,C)=>Rse(g,C,i)),u.map(g=>g._seg)}function bae(c){let{eventRange:i}=c,u=i.def,g=i.instance?i.instance.range:i.range,C=g.start?g.start.valueOf():0,E=g.end?g.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},u.extendedProps),u),{id:u.publicId,start:C,end:E,duration:E-C,allDay:Number(u.allDay),_seg:c})}function yae(c,i){let{pluginHooks:u}=i,g=u.isDraggableTransformers,{def:C,ui:E}=c.eventRange,A=E.startEditable;for(let D of g)A=D(A,C,E,i);return A}function vae(c,i){return c.isStart&&c.eventRange.ui.durationEditable&&i.options.eventResizableFromStart}function Cae(c,i){return c.isEnd&&c.eventRange.ui.durationEditable}function oQ(c,i,u,g,C,E,A){let{dateEnv:D,options:L}=u,{displayEventTime:G,displayEventEnd:W}=L,ae=c.eventRange.def,ne=c.eventRange.instance;G==null&&(G=g!==!1),W==null&&(W=C!==!1);let F=ne.range.start,ye=ne.range.end,le=E||c.start||c.eventRange.range.start,te=A||c.end||c.eventRange.range.end,Se=Ii(F).valueOf()===Ii(le).valueOf(),ie=Ii(Zb(ye,-1)).valueOf()===Ii(Zb(te,-1)).valueOf();return G&&!ae.allDay&&(Se||ie)?(le=Se?F:le,te=ie?ye:te,W&&ae.hasEnd?D.formatRange(le,te,i,{forcedStartTzo:E?null:ne.forcedStartTzo,forcedEndTzo:A?null:ne.forcedEndTzo}):D.format(le,i,{forcedTzo:E?null:ne.forcedStartTzo})):""}function Yb(c,i,u){let g=c.eventRange.range;return{isPast:g.end<(u||i.start),isFuture:g.start>=(u||i.end),isToday:i&&I1(i,g.start)}}function wae(c){let i=["fc-event"];return c.isMirror&&i.push("fc-event-mirror"),c.isDraggable&&i.push("fc-event-draggable"),(c.isStartResizable||c.isEndResizable)&&i.push("fc-event-resizable"),c.isDragging&&i.push("fc-event-dragging"),c.isResizing&&i.push("fc-event-resizing"),c.isSelected&&i.push("fc-event-selected"),c.isStart&&i.push("fc-event-start"),c.isEnd&&i.push("fc-event-end"),c.isPast&&i.push("fc-event-past"),c.isToday&&i.push("fc-event-today"),c.isFuture&&i.push("fc-event-future"),i}function sQ(c){return c.instance?c.instance.instanceId:`${c.def.defId}:${c.range.start.toISOString()}`}function rQ(c,i){let{def:u,instance:g}=c.eventRange,{url:C}=u;if(C)return{href:C};let{emitter:E,options:A}=i,{eventInteractive:D}=A;return D==null&&(D=u.interactive,D==null&&(D=!!E.hasHandlers("eventClick"))),D?mX(L=>{E.trigger("eventClick",{el:L.target,event:new gl(i,u,g),jsEvent:L,view:i.viewApi})}):{}}const Sae={start:Wt,end:Wt,allDay:Boolean};function _ae(c,i,u){let g=Eae(c,i),{range:C}=g;if(!C.start)return null;if(!C.end){if(u==null)return null;C.end=i.add(C.start,u)}return g}function Eae(c,i){let{refined:u,extra:g}=U$(c,Sae),C=u.start?i.createMarkerMeta(u.start):null,E=u.end?i.createMarkerMeta(u.end):null,{allDay:A}=u;return A==null&&(A=C&&C.isTimeUnspecified&&(!E||E.isTimeUnspecified)),Object.assign({range:{start:C?C.marker:null,end:E?E.marker:null},allDay:A},g)}function xae(c,i){return Vre(c.range,i.range)&&c.allDay===i.allDay&&kae(c,i)}function kae(c,i){for(let u in i)if(u!=="range"&&u!=="allDay"&&c[u]!==i[u])return!1;for(let u in c)if(!(u in i))return!1;return!0}function Tae(c,i){return Object.assign(Object.assign({},iQ(c.range,i,c.allDay)),{allDay:c.allDay})}function aQ(c,i,u){return Object.assign(Object.assign({},iQ(c,i,u)),{timeZone:i.timeZone})}function iQ(c,i,u){return{start:i.toDate(c.start),end:i.toDate(c.end),startStr:i.formatIso(c.start,{omitTime:u}),endStr:i.formatIso(c.end,{omitTime:u})}}function Aae(c,i,u){let g=HX({editable:!1},u),C=J$(g.refined,g.extra,"",c.allDay,!0,u);return{def:C,ui:tQ(C,i),instance:X$(C.defId,c.range),range:c.range,isStart:!0,isEnd:!0}}function Dae(c,i,u){let g=!1,C=function(D){g||(g=!0,i(D))},E=function(D){g||(g=!0,u(D))},A=c(C,E);A&&typeof A.then=="function"&&A.then(C,E)}class lQ extends Error{constructor(i,u){super(i),this.response=u}}function Nae(c,i,u){c=c.toUpperCase();const g={method:c};return c==="GET"?i+=(i.indexOf("?")===-1?"?":"&")+new URLSearchParams(u):(g.body=new URLSearchParams(u),g.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(i,g).then(C=>{if(C.ok)return C.json().then(E=>[E,C],()=>{throw new lQ("Failure parsing JSON",C)});throw new lQ("Request failed",C)})}let rF;function cQ(){return rF==null&&(rF=Oae()),rF}function Oae(){if(typeof document>"u")return!0;let c=document.createElement("div");c.style.position="absolute",c.style.top="0px",c.style.left="0px",c.innerHTML="<table><tr><td><div></div></td></tr></table>",c.querySelector("table").style.height="100px",c.querySelector("div").style.height="100%",document.body.appendChild(c);let u=c.querySelector("div").offsetHeight>0;return document.body.removeChild(c),u}class Rae extends Ba{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:i}=this,{options:u}=i,{forPrint:g}=this.state,C=g||u.height==="auto"||u.contentHeight==="auto",E=!C&&u.height!=null?u.height:"",A=["fc",g?"fc-media-print":"fc-media-screen",`fc-direction-${u.direction}`,i.theme.getClass("root")];return cQ()||A.push("fc-liquid-hack"),i.children(A,E,C,g)}componentDidMount(){let{emitter:i}=this.props;i.on("_beforeprint",this.handleBeforePrint),i.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:i}=this.props;i.off("_beforeprint",this.handleBeforePrint),i.off("_afterprint",this.handleAfterPrint)}}class sS{constructor(i){this.component=i.component,this.isHitComboAllowed=i.isHitComboAllowed||null}destroy(){}}function Bae(c,i){return{component:c,el:i.el,useEventCenter:i.useEventCenter!=null?i.useEventCenter:!0,isHitComboAllowed:i.isHitComboAllowed||null}}function aF(c){return{[c.component.uid]:c}}const iF={};class Mae{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(i){this.currentDataManager.dispatch(i)}get view(){return this.getCurrentData().viewApi}batchRendering(i){i()}updateSize(){this.trigger("_resize",!0)}setOption(i,u){this.dispatch({type:"SET_OPTION",optionName:i,rawOptionValue:u})}getOption(i){return this.currentDataManager.currentCalendarOptionsInput[i]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(i,u){let{currentDataManager:g}=this;g.currentCalendarOptionsRefiners[i]?g.emitter.on(i,u):console.warn(`Unknown listener name '${i}'`)}off(i,u){this.currentDataManager.emitter.off(i,u)}trigger(i,...u){this.currentDataManager.emitter.trigger(i,...u)}changeView(i,u){this.batchRendering(()=>{if(this.unselect(),u)if(u.start&&u.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:u});else{let{dateEnv:g}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i,dateMarker:g.createMarker(u)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i})})}zoomTo(i,u){let g=this.getCurrentData(),C;u=u||"day",C=g.viewSpecs[u]||this.getUnitViewSpec(u),this.unselect(),C?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:C.type,dateMarker:i}):this.dispatch({type:"CHANGE_DATE",dateMarker:i})}getUnitViewSpec(i){let{viewSpecs:u,toolbarConfig:g}=this.getCurrentData(),C=[].concat(g.header?g.header.viewsWithButtons:[],g.footer?g.footer.viewsWithButtons:[]),E,A;for(let D in u)C.push(D);for(E=0;E<C.length;E+=1)if(A=u[C[E]],A&&A.singleUnit===i)return A;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let i=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:i.dateEnv.addYears(i.currentDate,-1)})}nextYear(){let i=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:i.dateEnv.addYears(i.currentDate,1)})}today(){let i=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:K6(i.calendarOptions.now,i.dateEnv)})}gotoDate(i){let u=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:u.dateEnv.createMarker(i)})}incrementDate(i){let u=this.getCurrentData(),g=Zr(i);g&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:u.dateEnv.add(u.currentDate,g)}))}getDate(){let i=this.getCurrentData();return i.dateEnv.toDate(i.currentDate)}formatDate(i,u){let{dateEnv:g}=this.getCurrentData();return g.format(g.createMarker(i),_l(u))}formatRange(i,u,g){let{dateEnv:C}=this.getCurrentData();return C.formatRange(C.createMarker(i),C.createMarker(u),_l(g),g)}formatIso(i,u){let{dateEnv:g}=this.getCurrentData();return g.formatIso(g.createMarker(i),{omitTime:u})}select(i,u){let g;u==null?i.start!=null?g=i:g={start:i,end:null}:g={start:i,end:u};let C=this.getCurrentData(),E=_ae(g,C.dateEnv,Zr({days:1}));E&&(this.dispatch({type:"SELECT_DATES",selection:E}),KX(E,null,C))}unselect(i){let u=this.getCurrentData();u.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),mae(i,u))}addEvent(i,u){if(i instanceof gl){let A=i._def,D=i._instance;return this.getCurrentData().eventStore.defs[A.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:eF({def:A,instance:D})}),this.triggerEventAdd(i)),i}let g=this.getCurrentData(),C;if(u instanceof nS)C=u.internalEventSource;else if(typeof u=="boolean")u&&([C]=j$(g.eventSources));else if(u!=null){let A=this.getEventSourceById(u);if(!A)return console.warn(`Could not find an event source with ID "${u}"`),null;C=A.internalEventSource}let E=VX(i,C,g,!1);if(E){let A=new gl(g,E.def,E.def.recurringDef?null:E.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:eF(E)}),this.triggerEventAdd(A),A}return null}triggerEventAdd(i){let{emitter:u}=this.getCurrentData();u.trigger("eventAdd",{event:i,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:QX(i)})}})}getEventById(i){let u=this.getCurrentData(),{defs:g,instances:C}=u.eventStore;i=String(i);for(let E in g){let A=g[E];if(A.publicId===i){if(A.recurringDef)return new gl(u,A,null);for(let D in C){let L=C[D];if(L.defId===A.defId)return new gl(u,A,L)}}}return null}getEvents(){let i=this.getCurrentData();return E2(i.eventStore,i)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let i=this.getCurrentData(),u=i.eventSources,g=[];for(let C in u)g.push(new nS(i,u[C]));return g}getEventSourceById(i){let u=this.getCurrentData(),g=u.eventSources;i=String(i);for(let C in g)if(g[C].publicId===i)return new nS(u,g[C]);return null}addEventSource(i){let u=this.getCurrentData();if(i instanceof nS)return u.eventSources[i.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[i.internalEventSource]}),i;let g=WX(i,u);return g?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[g]}),new nS(u,g)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(i){let u=Zr(i);u&&this.trigger("_scrollRequest",{time:u})}}function Iae(c,i){return c.left>=i.left&&c.left<i.right&&c.top>=i.top&&c.top<i.bottom}function uQ(c,i){let u={left:Math.max(c.left,i.left),right:Math.min(c.right,i.right),top:Math.max(c.top,i.top),bottom:Math.min(c.bottom,i.bottom)};return u.left<u.right&&u.top<u.bottom?u:!1}function Pae(c,i){return{left:Math.min(Math.max(c.left,i.left),i.right),top:Math.min(Math.max(c.top,i.top),i.bottom)}}function $ae(c){return{left:(c.left+c.right)/2,top:(c.top+c.bottom)/2}}function Fae(c,i){return{left:c.left-i.left,top:c.top-i.top}}const lF=pm();class Lae{constructor(){this.getKeysForEventDefs=Es(this._getKeysForEventDefs),this.splitDateSelection=Es(this._splitDateSpan),this.splitEventStore=Es(this._splitEventStore),this.splitIndividualUi=Es(this._splitIndividualUi),this.splitEventDrag=Es(this._splitInteraction),this.splitEventResize=Es(this._splitInteraction),this.eventUiBuilders={}}splitProps(i){let u=this.getKeyInfo(i),g=this.getKeysForEventDefs(i.eventStore),C=this.splitDateSelection(i.dateSelection),E=this.splitIndividualUi(i.eventUiBases,g),A=this.splitEventStore(i.eventStore,g),D=this.splitEventDrag(i.eventDrag),L=this.splitEventResize(i.eventResize),G={};this.eventUiBuilders=R1(u,(W,ae)=>this.eventUiBuilders[ae]||Es(Vae));for(let W in u){let ae=u[W],ne=A[W]||lF,F=this.eventUiBuilders[W];G[W]={businessHours:ae.businessHours||i.businessHours,dateSelection:C[W]||null,eventStore:ne,eventUiBases:F(i.eventUiBases[""],ae.ui,E[W]),eventSelection:ne.instances[i.eventSelection]?i.eventSelection:"",eventDrag:D[W]||null,eventResize:L[W]||null}}return G}_splitDateSpan(i){let u={};if(i){let g=this.getKeysForDateSpan(i);for(let C of g)u[C]=i}return u}_getKeysForEventDefs(i){return R1(i.defs,u=>this.getKeysForEventDef(u))}_splitEventStore(i,u){let{defs:g,instances:C}=i,E={};for(let A in g)for(let D of u[A])E[D]||(E[D]=pm()),E[D].defs[A]=g[A];for(let A in C){let D=C[A];for(let L of u[D.defId])E[L]&&(E[L].instances[A]=D)}return E}_splitIndividualUi(i,u){let g={};for(let C in i)if(C)for(let E of u[C])g[E]||(g[E]={}),g[E][C]=i[C];return g}_splitInteraction(i){let u={};if(i){let g=this._splitEventStore(i.affectedEvents,this._getKeysForEventDefs(i.affectedEvents)),C=this._getKeysForEventDefs(i.mutatedEvents),E=this._splitEventStore(i.mutatedEvents,C),A=D=>{u[D]||(u[D]={affectedEvents:g[D]||lF,mutatedEvents:E[D]||lF,isEvent:i.isEvent})};for(let D in g)A(D);for(let D in E)A(D)}return u}}function Vae(c,i,u){let g=[];c&&g.push(c),i&&g.push(i);let C={"":UX(g)};return u&&Object.assign(C,u),C}function dQ(c,i,u,g){return{dow:c.getUTCDay(),isDisabled:!!(g&&!I1(g.activeRange,c)),isOther:!!(g&&!I1(g.currentRange,c)),isToday:!!(i&&I1(i,c)),isPast:!!(u?c<u:i&&c<i.start),isFuture:!!(u?c>u:i&&c>=i.end)}}function cF(c,i){let u=["fc-day",`fc-day-${Wse[c.dow]}`];return c.isDisabled?u.push("fc-day-disabled"):(c.isToday&&(u.push("fc-day-today"),u.push(i.getClass("today"))),c.isPast&&u.push("fc-day-past"),c.isFuture&&u.push("fc-day-future"),c.isOther&&u.push("fc-day-other")),u}const Hae=_l({year:"numeric",month:"long",day:"numeric"}),zae=_l({week:"long"});function e7(c,i,u="day",g=!0){const{dateEnv:C,options:E,calendarApi:A}=c;let D=C.format(i,u==="week"?zae:Hae);if(E.navLinks){let L=C.toDate(i);const G=W=>{let ae=u==="day"?E.navLinkDayClick:u==="week"?E.navLinkWeekClick:null;typeof ae=="function"?ae.call(A,C.toDate(i),W):(typeof ae=="string"&&(u=ae),A.zoomTo(i,u))};return Object.assign({title:G6(E.navLinkHint,[D,L],D),"data-navlink":""},g?fX(G):{onClick:G})}return{"aria-label":D}}let uF=null;function Uae(){return uF===null&&(uF=Wae()),uF}function Wae(){let c=document.createElement("div");Z6(c,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),c.innerHTML="<div></div>",document.body.appendChild(c);let u=c.firstChild.getBoundingClientRect().left>c.getBoundingClientRect().left;return B$(c),u}let dF;function jae(){return dF||(dF=Zae()),dF}function Zae(){let c=document.createElement("div");c.style.overflow="scroll",c.style.position="absolute",c.style.top="-9999px",c.style.left="-9999px",document.body.appendChild(c);let i=fQ(c);return document.body.removeChild(c),i}function fQ(c){return{x:c.offsetHeight-c.clientHeight,y:c.offsetWidth-c.clientWidth}}function Gae(c,i=!1){let u=window.getComputedStyle(c),g=parseInt(u.borderLeftWidth,10)||0,C=parseInt(u.borderRightWidth,10)||0,E=parseInt(u.borderTopWidth,10)||0,A=parseInt(u.borderBottomWidth,10)||0,D=fQ(c),L=D.y-g-C,G=D.x-E-A,W={borderLeft:g,borderRight:C,borderTop:E,borderBottom:A,scrollbarBottom:G,scrollbarLeft:0,scrollbarRight:0};return Uae()&&u.direction==="rtl"?W.scrollbarLeft=L:W.scrollbarRight=L,i&&(W.paddingLeft=parseInt(u.paddingLeft,10)||0,W.paddingRight=parseInt(u.paddingRight,10)||0,W.paddingTop=parseInt(u.paddingTop,10)||0,W.paddingBottom=parseInt(u.paddingBottom,10)||0),W}function qae(c,i=!1,u){let g=u?c.getBoundingClientRect():fF(c),C=Gae(c,i),E={left:g.left+C.borderLeft+C.scrollbarLeft,right:g.right-C.borderRight-C.scrollbarRight,top:g.top+C.borderTop,bottom:g.bottom-C.borderBottom-C.scrollbarBottom};return i&&(E.left+=C.paddingLeft,E.right-=C.paddingRight,E.top+=C.paddingTop,E.bottom-=C.paddingBottom),E}function fF(c){let i=c.getBoundingClientRect();return{left:i.left+window.pageXOffset,top:i.top+window.pageYOffset,right:i.right+window.pageXOffset,bottom:i.bottom+window.pageYOffset}}function Yae(c){let i=mQ(c),u=c.getBoundingClientRect();for(let g of i){let C=uQ(u,g.getBoundingClientRect());if(C)u=C;else return null}return u}function mQ(c){let i=[];for(;c instanceof HTMLElement;){let u=window.getComputedStyle(c);if(u.position==="fixed")break;/(auto|scroll)/.test(u.overflow+u.overflowY+u.overflowX)&&i.push(c),c=c.parentNode}return i}class rS{constructor(i,u,g,C){this.els=u;let E=this.originClientRect=i.getBoundingClientRect();g&&this.buildElHorizontals(E.left),C&&this.buildElVerticals(E.top)}buildElHorizontals(i){let u=[],g=[];for(let C of this.els){let E=C.getBoundingClientRect();u.push(E.left-i),g.push(E.right-i)}this.lefts=u,this.rights=g}buildElVerticals(i){let u=[],g=[];for(let C of this.els){let E=C.getBoundingClientRect();u.push(E.top-i),g.push(E.bottom-i)}this.tops=u,this.bottoms=g}leftToIndex(i){let{lefts:u,rights:g}=this,C=u.length,E;for(E=0;E<C;E+=1)if(i>=u[E]&&i<g[E])return E}topToIndex(i){let{tops:u,bottoms:g}=this,C=u.length,E;for(E=0;E<C;E+=1)if(i>=u[E]&&i<g[E])return E}getWidth(i){return this.rights[i]-this.lefts[i]}getHeight(i){return this.bottoms[i]-this.tops[i]}similarTo(i){return t7(this.tops||[],i.tops||[])&&t7(this.bottoms||[],i.bottoms||[])&&t7(this.lefts||[],i.lefts||[])&&t7(this.rights||[],i.rights||[])}}function t7(c,i){const u=c.length;if(u!==i.length)return!1;for(let g=0;g<u;g++)if(Math.round(c[g])!==Math.round(i[g]))return!1;return!0}class mF{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class Kae extends mF{constructor(i){super(),this.el=i}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(i){this.el.scrollTop=i}setScrollLeft(i){this.el.scrollLeft=i}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Xae extends mF{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(i){window.scroll(window.pageXOffset,i)}setScrollLeft(i){window.scroll(i,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class mp extends Ba{constructor(){super(...arguments),this.uid=p2()}prepareHits(){}queryHit(i,u,g,C){return null}isValidSegDownEl(i){return!this.props.eventDrag&&!this.props.eventResize&&!Zu(i,".fc-event-mirror")}isValidDateDownEl(i){return!Zu(i,".fc-event:not(.fc-bg-event)")&&!Zu(i,".fc-more-link")&&!Zu(i,"a[data-navlink]")&&!Zu(i,".fc-popover")}}class hQ{constructor(i=u=>u.thickness){this.getEntryThickness=i,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(i){let u=[];for(let g of i)this.insertEntry(g,u);return u}insertEntry(i,u){let g=this.findInsertion(i);return this.isInsertionValid(g,i)?(this.insertEntryAt(i,g),1):this.handleInvalidInsertion(g,i,u)}isInsertionValid(i,u){return(this.maxCoord===-1||i.levelCoord+this.getEntryThickness(u)<=this.maxCoord)&&(this.maxStackCnt===-1||i.stackCnt<this.maxStackCnt)}handleInvalidInsertion(i,u,g){return this.allowReslicing&&i.touchingEntry?this.splitEntry(u,i.touchingEntry,g):(g.push(u),0)}splitEntry(i,u,g){let C=0,E=[],A=i.span,D=u.span;return A.start<D.start&&(C+=this.insertEntry({index:i.index,thickness:i.thickness,span:{start:A.start,end:D.start}},E)),A.end>D.end&&(C+=this.insertEntry({index:i.index,thickness:i.thickness,span:{start:D.end,end:A.end}},E)),C?(g.push({index:i.index,thickness:i.thickness,span:gF(D,A)},...E),C):(g.push(i),0)}insertEntryAt(i,u){let{entriesByLevel:g,levelCoords:C}=this;u.lateral===-1?(pF(C,u.level,u.levelCoord),pF(g,u.level,[i])):pF(g[u.level],u.lateral,i),this.stackCnts[x2(i)]=u.stackCnt}findInsertion(i){let{levelCoords:u,entriesByLevel:g,strictOrder:C,stackCnts:E}=this,A=u.length,D=0,L=-1,G=-1,W=null,ae=0;for(let ye=0;ye<A;ye+=1){let le=u[ye];if(!C&&le>=D+this.getEntryThickness(i))break;let te=g[ye],Se,ie=bF(te,i.span.start,hF),Z=ie[0]+ie[1];for(;(Se=te[Z])&&Se.span.start<i.span.end;){let we=le+this.getEntryThickness(Se);we>D&&(D=we,W=Se,L=ye,G=Z),we===D&&(ae=Math.max(ae,E[x2(Se)]+1)),Z+=1}}let ne=0;if(W)for(ne=L+1;ne<A&&u[ne]<D;)ne+=1;let F=-1;return ne<A&&u[ne]===D&&(F=bF(g[ne],i.span.end,hF)[0]),{touchingLevel:L,touchingLateral:G,touchingEntry:W,stackCnt:ae,levelCoord:D,level:ne,lateral:F}}toRects(){let{entriesByLevel:i,levelCoords:u}=this,g=i.length,C=[];for(let E=0;E<g;E+=1){let A=i[E],D=u[E];for(let L of A)C.push(Object.assign(Object.assign({},L),{thickness:this.getEntryThickness(L),levelCoord:D}))}return C}}function hF(c){return c.span.end}function x2(c){return c.index+":"+c.span.start}function Qae(c){let i=[];for(let u of c){let g=[],C={span:u.span,entries:[u]};for(let E of i)gF(E.span,C.span)?C={entries:E.entries.concat(C.entries),span:Jae(E.span,C.span)}:g.push(E);g.push(C),i=g}return i}function Jae(c,i){return{start:Math.min(c.start,i.start),end:Math.max(c.end,i.end)}}function gF(c,i){let u=Math.max(c.start,i.start),g=Math.min(c.end,i.end);return u<g?{start:u,end:g}:null}function pF(c,i,u){c.splice(i,0,u)}function bF(c,i,u){let g=0,C=c.length;if(!C||i<u(c[g]))return[0,0];if(i>u(c[C-1]))return[C,0];for(;g<C;){let E=Math.floor(g+(C-g)/2),A=u(c[E]);if(i<A)C=E;else if(i>A)g=E+1;else return[E,1]}return[g,0]}class eie{constructor(i,u){this.emitter=new Q8}destroy(){}setMirrorIsVisible(i){}setMirrorNeedsRevert(i){}setAutoScrollEnabled(i){}}const yF={};function tie(c,i){return!c||i>10?_l({weekday:"short"}):i>1?_l({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):_l({weekday:"long"})}const gQ="fc-col-header-cell";function pQ(c){return c.text}class nie extends Ba{render(){let{dateEnv:i,options:u,theme:g,viewApi:C}=this.context,{props:E}=this,{date:A,dateProfile:D}=E,L=dQ(A,E.todayRange,null,D),G=[gQ].concat(cF(L,g)),W=i.format(A,E.dayHeaderFormat),ae=!L.isDisabled&&E.colCnt>1?e7(this.context,A):{},ne=Object.assign(Object.assign(Object.assign({date:i.toDate(A),view:C},E.extraRenderProps),{text:W}),L);return Qe(gm,{elTag:"th",elClasses:G,elAttrs:Object.assign({role:"columnheader",colSpan:E.colSpan,"data-date":L.isDisabled?void 0:V$(A)},E.extraDataAttrs),renderProps:ne,generatorName:"dayHeaderContent",customGenerator:u.dayHeaderContent,defaultGenerator:pQ,classNameGenerator:u.dayHeaderClassNames,didMount:u.dayHeaderDidMount,willUnmount:u.dayHeaderWillUnmount},F=>Qe("div",{className:"fc-scrollgrid-sync-inner"},!L.isDisabled&&Qe(F,{elTag:"a",elAttrs:ae,elClasses:["fc-col-header-cell-cushion",E.isSticky&&"fc-sticky"]})))}}const oie=_l({weekday:"long"});class sie extends Ba{render(){let{props:i}=this,{dateEnv:u,theme:g,viewApi:C,options:E}=this.context,A=Gu(new Date(2592e5),i.dow),D={dow:i.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},L=u.format(A,i.dayHeaderFormat),G=Object.assign(Object.assign(Object.assign(Object.assign({date:A},D),{view:C}),i.extraRenderProps),{text:L});return Qe(gm,{elTag:"th",elClasses:[gQ,...cF(D,g),...i.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan},i.extraDataAttrs),renderProps:G,generatorName:"dayHeaderContent",customGenerator:E.dayHeaderContent,defaultGenerator:pQ,classNameGenerator:E.dayHeaderClassNames,didMount:E.dayHeaderDidMount,willUnmount:E.dayHeaderWillUnmount},W=>Qe("div",{className:"fc-scrollgrid-sync-inner"},Qe(W,{elTag:"a",elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"],elAttrs:{"aria-label":u.format(A,oie)}})))}}class Q6 extends hm{constructor(i,u){super(i,u),this.initialNowDate=K6(u.options.now,u.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:i,state:u}=this;return i.children(u.nowDate,u.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(i){i.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:i,context:u}=this,g=Zb(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),C=u.dateEnv.startOf(g,i.unit),E=u.dateEnv.add(C,Zr(1,i.unit)),A=E.valueOf()-g.valueOf();return A=Math.min(1e3*60*60*24,A),{currentState:{nowDate:C,todayRange:bQ(C)},nextState:{nowDate:E,todayRange:bQ(E)},waitMs:A}}setTimeout(){let{nextState:i,waitMs:u}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(i,()=>{this.setTimeout()})},u)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}Q6.contextType=B1;function bQ(c){let i=Ii(c),u=Gu(i,1);return{start:i,end:u}}class yQ extends Ba{constructor(){super(...arguments),this.createDayHeaderFormatter=Es(rie)}render(){let{context:i}=this,{dates:u,dateProfile:g,datesRepDistinctDays:C,renderIntro:E}=this.props,A=this.createDayHeaderFormatter(i.options.dayHeaderFormat,C,u.length);return Qe(Q6,{unit:"day"},(D,L)=>Qe("tr",{role:"row"},E&&E("day"),u.map(G=>C?Qe(nie,{key:G.toISOString(),date:G,dateProfile:g,todayRange:L,colCnt:u.length,dayHeaderFormat:A}):Qe(sie,{key:G.getUTCDay(),dow:G.getUTCDay(),dayHeaderFormat:A}))))}}function rie(c,i,u){return c||tie(i,u)}class vQ{constructor(i,u){let g=i.start,{end:C}=i,E=[],A=[],D=-1;for(;g<C;)u.isHiddenDay(g)?E.push(D+.5):(D+=1,E.push(D),A.push(g)),g=Gu(g,1);this.dates=A,this.indices=E,this.cnt=A.length}sliceRange(i){let u=this.getDateDayIndex(i.start),g=this.getDateDayIndex(Gu(i.end,-1)),C=Math.max(0,u),E=Math.min(this.cnt-1,g);return C=Math.ceil(C),E=Math.floor(E),C<=E?{firstIndex:C,lastIndex:E,isStart:u===C,isEnd:g===E}:null}getDateDayIndex(i){let{indices:u}=this,g=Math.floor(b2(this.dates[0],i));return g<0?u[0]-1:g>=u.length?u[u.length-1]+1:u[g]}}class CQ{constructor(i,u){let{dates:g}=i,C,E,A;if(u){for(E=g[0].getUTCDay(),C=1;C<g.length&&g[C].getUTCDay()!==E;C+=1);A=Math.ceil(g.length/C)}else A=1,C=g.length;this.rowCnt=A,this.colCnt=C,this.daySeries=i,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let i=[];for(let u=0;u<this.rowCnt;u+=1){let g=[];for(let C=0;C<this.colCnt;C+=1)g.push(this.buildCell(u,C));i.push(g)}return i}buildCell(i,u){let g=this.daySeries.dates[i*this.colCnt+u];return{key:g.toISOString(),date:g}}buildHeaderDates(){let i=[];for(let u=0;u<this.colCnt;u+=1)i.push(this.cells[0][u].date);return i}sliceRange(i){let{colCnt:u}=this,g=this.daySeries.sliceRange(i),C=[];if(g){let{firstIndex:E,lastIndex:A}=g,D=E;for(;D<=A;){let L=Math.floor(D/u),G=Math.min((L+1)*u,A+1);C.push({row:L,firstCol:D%u,lastCol:(G-1)%u,isStart:g.isStart&&D===E,isEnd:g.isEnd&&G-1===A}),D=G}}return C}}class wQ{constructor(){this.sliceBusinessHours=Es(this._sliceBusinessHours),this.sliceDateSelection=Es(this._sliceDateSpan),this.sliceEventStore=Es(this._sliceEventStore),this.sliceEventDrag=Es(this._sliceInteraction),this.sliceEventResize=Es(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(i,u,g,C,...E){let{eventUiBases:A}=i,D=this.sliceEventStore(i.eventStore,A,u,g,...E);return{dateSelectionSegs:this.sliceDateSelection(i.dateSelection,u,g,A,C,...E),businessHourSegs:this.sliceBusinessHours(i.businessHours,u,g,C,...E),fgEventSegs:D.fg,bgEventSegs:D.bg,eventDrag:this.sliceEventDrag(i.eventDrag,A,u,g,...E),eventResize:this.sliceEventResize(i.eventResize,A,u,g,...E),eventSelection:i.eventSelection}}sliceNowDate(i,u,g,C,...E){return this._sliceDateSpan({range:{start:i,end:Zb(i,1)},allDay:!1},u,g,{},C,...E)}_sliceBusinessHours(i,u,g,C,...E){return i?this._sliceEventStore(_2(i,n7(u,!!g),C),{},u,g,...E).bg:[]}_sliceEventStore(i,u,g,C,...E){if(i){let A=JX(i,u,n7(g,!!C),C);return{bg:this.sliceEventRanges(A.bg,E),fg:this.sliceEventRanges(A.fg,E)}}return{bg:[],fg:[]}}_sliceInteraction(i,u,g,C,...E){if(!i)return null;let A=JX(i.mutatedEvents,u,n7(g,!!C),C);return{segs:this.sliceEventRanges(A.fg,E),affectedInstances:i.affectedEvents.instances,isEvent:i.isEvent}}_sliceDateSpan(i,u,g,C,E,...A){if(!i)return[];let D=n7(u,!!g),L=S2(i.range,D);if(L){i=Object.assign(Object.assign({},i),{range:L});let G=Aae(i,C,E),W=this.sliceRange(i.range,...A);for(let ae of W)ae.eventRange=G;return W}return[]}sliceEventRanges(i,u){let g=[];for(let C of i)g.push(...this.sliceEventRange(C,u));return g}sliceEventRange(i,u){let g=i.range;this.forceDayIfListItem&&i.ui.display==="list-item"&&(g={start:g.start,end:Gu(g.start,1)});let C=this.sliceRange(g,...u);for(let E of C)E.eventRange=i,E.isStart=i.isStart&&E.isStart,E.isEnd=i.isEnd&&E.isEnd;return C}}function n7(c,i){let u=c.activeRange;return i?u:{start:Zb(u.start,c.slotMinTime.milliseconds),end:Zb(u.end,c.slotMaxTime.milliseconds-864e5)}}function SQ(c,i,u){let{instances:g}=c.mutatedEvents;for(let C in g)if(!G8(i.validRange,g[C].range))return!1;return _Q({eventDrag:c},u)}function aie(c,i,u){return G8(i.validRange,c.range)?_Q({dateSelection:c},u):!1}function _Q(c,i){let u=i.getCurrentData(),g=Object.assign({businessHours:u.businessHours,dateSelection:"",eventStore:u.eventStore,eventUiBases:u.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},c);return(i.pluginHooks.isPropsValid||iie)(g,i)}function iie(c,i,u={},g){return!(c.eventDrag&&!lie(c,i,u,g)||c.dateSelection&&!cie(c,i,u,g))}function lie(c,i,u,g){let C=i.getCurrentData(),E=c.eventDrag,A=E.mutatedEvents,D=A.defs,L=A.instances,G=J8(D,E.isEvent?c.eventUiBases:{"":C.selectionConfig});g&&(G=R1(G,g));let W=aae(c.eventStore,E.affectedEvents.instances),ae=W.defs,ne=W.instances,F=J8(ae,c.eventUiBases);for(let ye in L){let le=L[ye],te=le.range,Se=G[le.defId],ie=D[le.defId];if(!EQ(Se.constraints,te,W,c.businessHours,i))return!1;let{eventOverlap:Z}=i.options,we=typeof Z=="function"?Z:null;for(let We in ne){let Q=ne[We];if(K$(te,Q.range)&&(F[Q.defId].overlap===!1&&E.isEvent||Se.overlap===!1||we&&!we(new gl(i,ae[Q.defId],Q),new gl(i,ie,le))))return!1}let Bt=C.eventStore;for(let We of Se.allows){let Q=Object.assign(Object.assign({},u),{range:le.range,allDay:ie.allDay}),Be=Bt.defs[ie.defId],Ae=Bt.instances[ye],Ke;if(Be?Ke=new gl(i,Be,Ae):Ke=new gl(i,ie),!We(oF(Q,i),Ke))return!1}}return!0}function cie(c,i,u,g){let C=c.eventStore,E=C.defs,A=C.instances,D=c.dateSelection,L=D.range,{selectionConfig:G}=i.getCurrentData();if(g&&(G=g(G)),!EQ(G.constraints,L,C,c.businessHours,i))return!1;let{selectOverlap:W}=i.options,ae=typeof W=="function"?W:null;for(let ne in A){let F=A[ne];if(K$(L,F.range)&&(G.overlap===!1||ae&&!ae(new gl(i,E[F.defId],F),null)))return!1}for(let ne of G.allows){let F=Object.assign(Object.assign({},u),D);if(!ne(oF(F,i),null))return!1}return!0}function EQ(c,i,u,g,C){for(let E of c)if(!die(uie(E,i,u,g,C),i))return!1;return!0}function uie(c,i,u,g,C){return c==="businessHours"?vF(_2(g,i,C)):typeof c=="string"?vF(Y8(u,E=>E.groupId===c)):typeof c=="object"&&c?vF(_2(c,i,C)):[]}function vF(c){let{instances:i}=c,u=[];for(let g in i)u.push(i[g].range);return u}function die(c,i){for(let u of c)if(G8(u,i))return!0;return!1}const o7=/^(visible|hidden)$/;class fie extends Ba{constructor(){super(...arguments),this.handleEl=i=>{this.el=i,M1(this.props.elRef,i)}}render(){let{props:i}=this,{liquid:u,liquidIsAbsolute:g}=i,C=u&&g,E=["fc-scroller"];return u&&(g?E.push("fc-scroller-liquid-absolute"):E.push("fc-scroller-liquid")),Qe("div",{ref:this.handleEl,className:E.join(" "),style:{overflowX:i.overflowX,overflowY:i.overflowY,left:C&&-(i.overcomeLeft||0)||"",right:C&&-(i.overcomeRight||0)||"",bottom:C&&-(i.overcomeBottom||0)||"",marginLeft:!C&&-(i.overcomeLeft||0)||"",marginRight:!C&&-(i.overcomeRight||0)||"",marginBottom:!C&&-(i.overcomeBottom||0)||"",maxHeight:i.maxHeight||""}},i.children)}needsXScrolling(){if(o7.test(this.props.overflowX))return!1;let{el:i}=this,u=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:g}=i;for(let C=0;C<g.length;C+=1)if(g[C].getBoundingClientRect().width>u)return!0;return!1}needsYScrolling(){if(o7.test(this.props.overflowY))return!1;let{el:i}=this,u=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:g}=i;for(let C=0;C<g.length;C+=1)if(g[C].getBoundingClientRect().height>u)return!0;return!1}getXScrollbarWidth(){return o7.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return o7.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class P1{constructor(i){this.masterCallback=i,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(u,g)=>{let{depths:C,currentMap:E}=this,A=!1,D=!1;u!==null?(A=g in E,E[g]=u,C[g]=(C[g]||0)+1,D=!0):(C[g]-=1,C[g]||(delete E[g],delete this.callbackMap[g],A=!0)),this.masterCallback&&(A&&this.masterCallback(null,String(g)),D&&this.masterCallback(u,String(g)))}}createRef(i){let u=this.callbackMap[i];return u||(u=this.callbackMap[i]=g=>{this.handleValue(g,String(i))}),u}collect(i,u,g){return _re(this.currentMap,i,u,g)}getAll(){return j$(this.currentMap)}}function mie(c){let i=Sse(c,".fc-scrollgrid-shrink"),u=0;for(let g of i)u=Math.max(u,Pse(g));return Math.ceil(u)}function xQ(c,i){return c.liquid&&i.liquid}function hie(c,i){return i.maxHeight!=null||xQ(c,i)}function gie(c,i,u,g){let{expandRows:C}=u;return typeof i.content=="function"?i.content(u):Qe("table",{role:"presentation",className:[i.tableClassName,c.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:u.tableMinWidth,width:u.clientWidth,height:C?u.clientHeight:""}},u.tableColGroupNode,Qe(g?"thead":"tbody",{role:"presentation"},typeof i.rowContent=="function"?i.rowContent(u):i.rowContent))}function pie(c,i){return jb(c,i,fp)}function bie(c,i){let u=[];for(let g of c){let C=g.span||1;for(let E=0;E<C;E+=1)u.push(Qe("col",{style:{width:g.width==="shrink"?yie(i):g.width||"",minWidth:g.minWidth||""}}))}return Qe("colgroup",{},...u)}function yie(c){return c??4}function vie(c){for(let i of c)if(i.width==="shrink")return!0;return!1}function Cie(c,i){let u=["fc-scrollgrid",i.theme.getClass("table")];return c&&u.push("fc-scrollgrid-liquid"),u}function wie(c,i){let u=["fc-scrollgrid-section",`fc-scrollgrid-section-${c.type}`,c.className];return i&&c.liquid&&c.maxHeight==null&&u.push("fc-scrollgrid-section-liquid"),c.isSticky&&u.push("fc-scrollgrid-section-sticky"),u}function CF(c){return Qe("div",{className:"fc-scrollgrid-sticky-shim",style:{width:c.clientWidth,minWidth:c.tableMinWidth}})}function s7(c){let{stickyHeaderDates:i}=c;return(i==null||i==="auto")&&(i=c.height==="auto"||c.viewHeight==="auto"),i}function kQ(c){let{stickyFooterScrollbar:i}=c;return(i==null||i==="auto")&&(i=c.height==="auto"||c.viewHeight==="auto"),i}class wF extends Ba{constructor(){super(...arguments),this.processCols=Es(i=>i,pie),this.renderMicroColGroup=Es(bie),this.scrollerRefs=new P1,this.scrollerElRefs=new P1(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:i,state:u,context:g}=this,C=i.sections||[],E=this.processCols(i.cols),A=this.renderMicroColGroup(E,u.shrinkWidth),D=Cie(i.liquid,g);i.collapsibleWidth&&D.push("fc-scrollgrid-collapsible");let L=C.length,G=0,W,ae=[],ne=[],F=[];for(;G<L&&(W=C[G]).type==="header";)ae.push(this.renderSection(W,A,!0)),G+=1;for(;G<L&&(W=C[G]).type==="body";)ne.push(this.renderSection(W,A,!1)),G+=1;for(;G<L&&(W=C[G]).type==="footer";)F.push(this.renderSection(W,A,!0)),G+=1;let ye=!cQ();const le={role:"rowgroup"};return Qe("table",{role:"grid",className:D.join(" "),style:{height:i.height}},!!(!ye&&ae.length)&&Qe("thead",le,...ae),!!(!ye&&ne.length)&&Qe("tbody",le,...ne),!!(!ye&&F.length)&&Qe("tfoot",le,...F),ye&&Qe("tbody",le,...ae,...ne,...F))}renderSection(i,u,g){return"outerContent"in i?Qe(tl,{key:i.key},i.outerContent):Qe("tr",{key:i.key,role:"presentation",className:wie(i,this.props.liquid).join(" ")},this.renderChunkTd(i,u,i.chunk,g))}renderChunkTd(i,u,g,C){if("outerContent"in g)return g.outerContent;let{props:E}=this,{forceYScrollbars:A,scrollerClientWidths:D,scrollerClientHeights:L}=this.state,G=hie(E,i),W=xQ(E,i),ae=E.liquid?A?"scroll":G?"auto":"hidden":"visible",ne=i.key,F=gie(i,g,{tableColGroupNode:u,tableMinWidth:"",clientWidth:!E.collapsibleWidth&&D[ne]!==void 0?D[ne]:null,clientHeight:L[ne]!==void 0?L[ne]:null,expandRows:i.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},C);return Qe(C?"th":"td",{ref:g.elRef,role:"presentation"},Qe("div",{className:`fc-scroller-harness${W?" fc-scroller-harness-liquid":""}`},Qe(fie,{ref:this.scrollerRefs.createRef(ne),elRef:this.scrollerElRefs.createRef(ne),overflowY:ae,overflowX:E.liquid?"hidden":"visible",maxHeight:i.maxHeight,liquid:W,liquidIsAbsolute:!0},F)))}_handleScrollerEl(i,u){let g=Sie(this.props.sections,u);g&&M1(g.chunk.scrollerElRef,i)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return vie(this.props.cols)?mie(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let i=jae(),{scrollerRefs:u,scrollerElRefs:g}=this,C=!1,E={},A={};for(let D in u.currentMap){let L=u.currentMap[D];if(L&&L.needsYScrolling()){C=!0;break}}for(let D of this.props.sections){let L=D.key,G=g.currentMap[L];if(G){let W=G.parentNode;E[L]=Math.floor(W.getBoundingClientRect().width-(C?i.y:0)),A[L]=Math.floor(W.getBoundingClientRect().height)}}return{forceYScrollbars:C,scrollerClientWidths:E,scrollerClientHeights:A}}}wF.addStateEquality({scrollerClientWidths:fp,scrollerClientHeights:fp});function Sie(c,i){for(let u of c)if(u.key===i)return u;return null}class SF extends Ba{constructor(){super(...arguments),this.handleEl=i=>{this.el=i,i&&eQ(i,this.props.seg)}}render(){const{props:i,context:u}=this,{options:g}=u,{seg:C}=i,{eventRange:E}=C,{ui:A}=E,D={event:new gl(u,E.def,E.instance),view:u.viewApi,timeText:i.timeText,textColor:A.textColor,backgroundColor:A.backgroundColor,borderColor:A.borderColor,isDraggable:!i.disableDragging&&yae(C,u),isStartResizable:!i.disableResizing&&vae(C,u),isEndResizable:!i.disableResizing&&Cae(C),isMirror:!!(i.isDragging||i.isResizing||i.isDateSelecting),isStart:!!C.isStart,isEnd:!!C.isEnd,isPast:!!i.isPast,isFuture:!!i.isFuture,isToday:!!i.isToday,isSelected:!!i.isSelected,isDragging:!!i.isDragging,isResizing:!!i.isResizing};return Qe(gm,Object.assign({},i,{elRef:this.handleEl,elClasses:[...wae(D),...C.eventRange.ui.classNames,...i.elClasses||[]],renderProps:D,generatorName:"eventContent",customGenerator:g.eventContent,defaultGenerator:i.defaultGenerator,classNameGenerator:g.eventClassNames,didMount:g.eventDidMount,willUnmount:g.eventWillUnmount}))}componentDidUpdate(i){this.el&&this.props.seg!==i.seg&&eQ(this.el,this.props.seg)}}class TQ extends Ba{render(){let{props:i,context:u}=this,{options:g}=u,{seg:C}=i,{ui:E}=C.eventRange,A=g.eventTimeFormat||i.defaultTimeFormat,D=oQ(C,A,u,i.defaultDisplayEventTime,i.defaultDisplayEventEnd);return Qe(SF,Object.assign({},i,{elTag:"a",elStyle:{borderColor:E.borderColor,backgroundColor:E.backgroundColor},elAttrs:rQ(C,u),defaultGenerator:_ie,timeText:D}),(L,G)=>Qe(tl,null,Qe(L,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:G.textColor}}),!!G.isStartResizable&&Qe("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!G.isEndResizable&&Qe("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function _ie(c){return Qe("div",{className:"fc-event-main-frame"},c.timeText&&Qe("div",{className:"fc-event-time"},c.timeText),Qe("div",{className:"fc-event-title-container"},Qe("div",{className:"fc-event-title fc-sticky"},c.event.title||Qe(tl,null," "))))}const _F=c=>Qe(B1.Consumer,null,i=>{let{options:u}=i,g={isAxis:c.isAxis,date:i.dateEnv.toDate(c.date),view:i.viewApi};return Qe(gm,Object.assign({},c,{elTag:c.elTag||"div",renderProps:g,generatorName:"nowIndicatorContent",customGenerator:u.nowIndicatorContent,classNameGenerator:u.nowIndicatorClassNames,didMount:u.nowIndicatorDidMount,willUnmount:u.nowIndicatorWillUnmount}))}),Eie=_l({day:"numeric"});class EF extends Ba{constructor(){super(...arguments),this.refineRenderProps=V8(xie)}render(){let{props:i,context:u}=this,{options:g}=u,C=this.refineRenderProps({date:i.date,dateProfile:i.dateProfile,todayRange:i.todayRange,isMonthStart:i.isMonthStart||!1,showDayNumber:i.showDayNumber,extraRenderProps:i.extraRenderProps,viewApi:u.viewApi,dateEnv:u.dateEnv,monthStartFormat:g.monthStartFormat});return Qe(gm,Object.assign({},i,{elClasses:[...cF(C,u.theme),...i.elClasses||[]],elAttrs:Object.assign(Object.assign({},i.elAttrs),C.isDisabled?{}:{"data-date":V$(i.date)}),renderProps:C,generatorName:"dayCellContent",customGenerator:g.dayCellContent,defaultGenerator:i.defaultGenerator,classNameGenerator:C.isDisabled?void 0:g.dayCellClassNames,didMount:g.dayCellDidMount,willUnmount:g.dayCellWillUnmount}))}}function xF(c){return!!(c.dayCellContent||Y$("dayCellContent",c))}function xie(c){let{date:i,dateEnv:u,dateProfile:g,isMonthStart:C}=c,E=dQ(i,c.todayRange,null,g),A=c.showDayNumber?u.format(i,C?c.monthStartFormat:Eie):"";return Object.assign(Object.assign(Object.assign({date:u.toDate(i),view:c.viewApi},E),{isMonthStart:C,dayNumberText:A}),c.extraRenderProps)}class AQ extends Ba{render(){let{props:i}=this,{seg:u}=i;return Qe(SF,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:u.eventRange.ui.backgroundColor},defaultGenerator:kie,seg:u,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:i.isPast,isFuture:i.isFuture,isToday:i.isToday,disableDragging:!0,disableResizing:!0})}}function kie(c){let{title:i}=c.event;return i&&Qe("div",{className:"fc-event-title"},c.event.title)}function DQ(c){return Qe("div",{className:`fc-${c}`})}const NQ=c=>Qe(B1.Consumer,null,i=>{let{dateEnv:u,options:g}=i,{date:C}=c,E=g.weekNumberFormat||c.defaultFormat,A=u.computeWeekNumber(C),D=u.format(C,E);return Qe(gm,Object.assign({},c,{renderProps:{num:A,text:D,date:C},generatorName:"weekNumberContent",customGenerator:g.weekNumberContent,defaultGenerator:Tie,classNameGenerator:g.weekNumberClassNames,didMount:g.weekNumberDidMount,willUnmount:g.weekNumberWillUnmount}))});function Tie(c){return c.text}const kF=10;class Aie extends Ba{constructor(){super(...arguments),this.state={titleId:P8()},this.handleRootEl=i=>{this.rootEl=i,this.props.elRef&&M1(this.props.elRef,i)},this.handleDocumentMouseDown=i=>{const u=lX(i);this.rootEl.contains(u)||this.handleCloseClick()},this.handleDocumentKeyDown=i=>{i.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:i}=this.props;i&&i()}}render(){let{theme:i,options:u}=this.context,{props:g,state:C}=this,E=["fc-popover",i.getClass("popover")].concat(g.extraClassNames||[]);return lse(Qe("div",Object.assign({},g.extraAttrs,{id:g.id,className:E.join(" "),"aria-labelledby":C.titleId,ref:this.handleRootEl}),Qe("div",{className:"fc-popover-header "+i.getClass("popoverHeader")},Qe("span",{className:"fc-popover-title",id:C.titleId},g.title),Qe("span",{className:"fc-popover-close "+i.getIconClass("close"),title:u.closeHint,onClick:this.handleCloseClick})),Qe("div",{className:"fc-popover-body "+i.getClass("popoverContent")},g.children)),g.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:i}=this.context,{alignmentEl:u,alignGridTop:g}=this.props,{rootEl:C}=this,E=Yae(u);if(E){let A=C.getBoundingClientRect(),D=g?Zu(u,".fc-scrollgrid").getBoundingClientRect().top:E.top,L=i?E.right-A.width:E.left;D=Math.max(D,kF),L=Math.min(L,document.documentElement.clientWidth-kF-A.width),L=Math.max(L,kF);let G=C.offsetParent.getBoundingClientRect();Z6(C,{top:D-G.top,left:L-G.left})}}}class Die extends mp{constructor(){super(...arguments),this.handleRootEl=i=>{this.rootEl=i,i?this.context.registerInteractiveComponent(this,{el:i,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:i,dateEnv:u}=this.context,{props:g}=this,{startDate:C,todayRange:E,dateProfile:A}=g,D=u.format(C,i.dayPopoverFormat);return Qe(EF,{elRef:this.handleRootEl,date:C,dateProfile:A,todayRange:E},(L,G,W)=>Qe(Aie,{elRef:W.ref,id:g.id,title:D,extraClassNames:["fc-more-popover"].concat(W.className||[]),extraAttrs:W,parentEl:g.parentEl,alignmentEl:g.alignmentEl,alignGridTop:g.alignGridTop,onClose:g.onClose},xF(i)&&Qe(L,{elTag:"div",elClasses:["fc-more-popover-misc"]}),g.children))}queryHit(i,u,g,C){let{rootEl:E,props:A}=this;return i>=0&&i<g&&u>=0&&u<C?{dateProfile:A.dateProfile,dateSpan:Object.assign({allDay:!A.forceTimed,range:{start:A.startDate,end:A.endDate}},A.extraDateSpan),dayEl:E,rect:{left:0,top:0,right:g,bottom:C},layer:1}:null}}class OQ extends Ba{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:P8()},this.handleLinkEl=i=>{this.linkEl=i,this.props.elRef&&M1(this.props.elRef,i)},this.handleClick=i=>{let{props:u,context:g}=this,{moreLinkClick:C}=g.options,E=RQ(u).start;function A(D){let{def:L,instance:G,range:W}=D.eventRange;return{event:new gl(g,L,G),start:g.dateEnv.toDate(W.start),end:g.dateEnv.toDate(W.end),isStart:D.isStart,isEnd:D.isEnd}}typeof C=="function"&&(C=C({date:E,allDay:!!u.allDayDate,allSegs:u.allSegs.map(A),hiddenSegs:u.hiddenSegs.map(A),jsEvent:i,view:g.viewApi})),!C||C==="popover"?this.setState({isPopoverOpen:!0}):typeof C=="string"&&g.calendarApi.zoomTo(E,C)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:i,state:u}=this;return Qe(B1.Consumer,null,g=>{let{viewApi:C,options:E,calendarApi:A}=g,{moreLinkText:D}=E,{moreCnt:L}=i,G=RQ(i),W=typeof D=="function"?D.call(A,L):`+${L} ${D}`,ae=G6(E.moreLinkHint,[L],W),ne={num:L,shortText:`+${L}`,text:W,view:C};return Qe(tl,null,!!i.moreCnt&&Qe(gm,{elTag:i.elTag||"a",elRef:this.handleLinkEl,elClasses:[...i.elClasses||[],"fc-more-link"],elStyle:i.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},i.elAttrs),fX(this.handleClick)),{title:ae,"aria-expanded":u.isPopoverOpen,"aria-controls":u.isPopoverOpen?u.popoverId:""}),renderProps:ne,generatorName:"moreLinkContent",customGenerator:E.moreLinkContent,defaultGenerator:i.defaultGenerator||Nie,classNameGenerator:E.moreLinkClassNames,didMount:E.moreLinkDidMount,willUnmount:E.moreLinkWillUnmount},i.children),u.isPopoverOpen&&Qe(Die,{id:u.popoverId,startDate:G.start,endDate:G.end,dateProfile:i.dateProfile,todayRange:i.todayRange,extraDateSpan:i.extraDateSpan,parentEl:this.parentEl,alignmentEl:i.alignmentElRef?i.alignmentElRef.current:this.linkEl,alignGridTop:i.alignGridTop,forceTimed:i.forceTimed,onClose:this.handlePopoverClose},i.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Zu(this.linkEl,".fc-view-harness"))}}function Nie(c){return c.text}function RQ(c){if(c.allDayDate)return{start:c.allDayDate,end:Gu(c.allDayDate,1)};let{hiddenSegs:i}=c;return{start:BQ(i),end:Rie(i)}}function BQ(c){return c.reduce(Oie).eventRange.range.start}function Oie(c,i){return c.eventRange.range.start<i.eventRange.range.start?c:i}function Rie(c){return c.reduce(Bie).eventRange.range.end}function Bie(c,i){return c.eventRange.range.end>i.eventRange.range.end?c:i}class Mie{constructor(){this.handlers=[]}set(i){this.currentValue=i;for(let u of this.handlers)u(i)}subscribe(i){this.handlers.push(i),this.currentValue!==void 0&&i(this.currentValue)}}class Iie extends Mie{constructor(){super(...arguments),this.map=new Map}handle(i){const{map:u}=this;let g=!1;i.isActive?(u.set(i.id,i),g=!0):u.has(i.id)&&(u.delete(i.id),g=!0),g&&this.set(u)}}const Pie=[],MQ={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},IQ=Object.assign(Object.assign({},MQ),{buttonHints:{prev:"Previous $0",next:"Next $0",today(c,i){return i==="day"?"Today":`This ${c}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(c){return`Show ${c} more event${c===1?"":"s"}`}});function $ie(c){let i=c.length>0?c[0].code:"en",u=Pie.concat(c),g={en:IQ};for(let C of u)g[C.code]=C;return{map:g,defaultCode:i}}function PQ(c,i){return typeof c=="object"&&!Array.isArray(c)?$Q(c.code,[c.code],c):Fie(c,i)}function Fie(c,i){let u=[].concat(c||[]),g=Lie(u,i)||IQ;return $Q(c,u,g)}function Lie(c,i){for(let u=0;u<c.length;u+=1){let g=c[u].toLocaleLowerCase().split("-");for(let C=g.length;C>0;C-=1){let E=g.slice(0,C).join("-");if(i[E])return i[E]}}return null}function $Q(c,i,u){let g=W$([MQ,u],["buttonText"]);delete g.code;let{week:C}=g;return delete g.week,{codeArg:c,codes:i,week:C,simpleNumberFormat:new Intl.NumberFormat(c),options:g}}function $1(c){return{id:p2(),name:c.name,premiumReleaseDate:c.premiumReleaseDate?new Date(c.premiumReleaseDate):void 0,deps:c.deps||[],reducers:c.reducers||[],isLoadingFuncs:c.isLoadingFuncs||[],contextInit:[].concat(c.contextInit||[]),eventRefiners:c.eventRefiners||{},eventDefMemberAdders:c.eventDefMemberAdders||[],eventSourceRefiners:c.eventSourceRefiners||{},isDraggableTransformers:c.isDraggableTransformers||[],eventDragMutationMassagers:c.eventDragMutationMassagers||[],eventDefMutationAppliers:c.eventDefMutationAppliers||[],dateSelectionTransformers:c.dateSelectionTransformers||[],datePointTransforms:c.datePointTransforms||[],dateSpanTransforms:c.dateSpanTransforms||[],views:c.views||{},viewPropsTransformers:c.viewPropsTransformers||[],isPropsValid:c.isPropsValid||null,externalDefTransforms:c.externalDefTransforms||[],viewContainerAppends:c.viewContainerAppends||[],eventDropTransformers:c.eventDropTransformers||[],componentInteractions:c.componentInteractions||[],calendarInteractions:c.calendarInteractions||[],themeClasses:c.themeClasses||{},eventSourceDefs:c.eventSourceDefs||[],cmdFormatter:c.cmdFormatter,recurringTypes:c.recurringTypes||[],namedTimeZonedImpl:c.namedTimeZonedImpl,initialView:c.initialView||"",elementDraggingImpl:c.elementDraggingImpl,optionChangeHandlers:c.optionChangeHandlers||{},scrollGridImpl:c.scrollGridImpl||null,listenerRefiners:c.listenerRefiners||{},optionRefiners:c.optionRefiners||{},propSetHandlers:c.propSetHandlers||{}}}function Vie(c,i){let u={},g={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function C(E){for(let A of E){const D=A.name,L=u[D];L===void 0?(u[D]=A.id,C(A.deps),g=zie(g,A)):L!==A.id&&console.warn(`Duplicate plugin '${D}'`)}}return c&&C(c),C(i),g}function Hie(){let c=[],i=[],u;return(g,C)=>((!u||!jb(g,c)||!jb(C,i))&&(u=Vie(g,C)),c=g,i=C,u)}function zie(c,i){return{premiumReleaseDate:Uie(c.premiumReleaseDate,i.premiumReleaseDate),reducers:c.reducers.concat(i.reducers),isLoadingFuncs:c.isLoadingFuncs.concat(i.isLoadingFuncs),contextInit:c.contextInit.concat(i.contextInit),eventRefiners:Object.assign(Object.assign({},c.eventRefiners),i.eventRefiners),eventDefMemberAdders:c.eventDefMemberAdders.concat(i.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},c.eventSourceRefiners),i.eventSourceRefiners),isDraggableTransformers:c.isDraggableTransformers.concat(i.isDraggableTransformers),eventDragMutationMassagers:c.eventDragMutationMassagers.concat(i.eventDragMutationMassagers),eventDefMutationAppliers:c.eventDefMutationAppliers.concat(i.eventDefMutationAppliers),dateSelectionTransformers:c.dateSelectionTransformers.concat(i.dateSelectionTransformers),datePointTransforms:c.datePointTransforms.concat(i.datePointTransforms),dateSpanTransforms:c.dateSpanTransforms.concat(i.dateSpanTransforms),views:Object.assign(Object.assign({},c.views),i.views),viewPropsTransformers:c.viewPropsTransformers.concat(i.viewPropsTransformers),isPropsValid:i.isPropsValid||c.isPropsValid,externalDefTransforms:c.externalDefTransforms.concat(i.externalDefTransforms),viewContainerAppends:c.viewContainerAppends.concat(i.viewContainerAppends),eventDropTransformers:c.eventDropTransformers.concat(i.eventDropTransformers),calendarInteractions:c.calendarInteractions.concat(i.calendarInteractions),componentInteractions:c.componentInteractions.concat(i.componentInteractions),themeClasses:Object.assign(Object.assign({},c.themeClasses),i.themeClasses),eventSourceDefs:c.eventSourceDefs.concat(i.eventSourceDefs),cmdFormatter:i.cmdFormatter||c.cmdFormatter,recurringTypes:c.recurringTypes.concat(i.recurringTypes),namedTimeZonedImpl:i.namedTimeZonedImpl||c.namedTimeZonedImpl,initialView:c.initialView||i.initialView,elementDraggingImpl:c.elementDraggingImpl||i.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},c.optionChangeHandlers),i.optionChangeHandlers),scrollGridImpl:i.scrollGridImpl||c.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},c.listenerRefiners),i.listenerRefiners),optionRefiners:Object.assign(Object.assign({},c.optionRefiners),i.optionRefiners),propSetHandlers:Object.assign(Object.assign({},c.propSetHandlers),i.propSetHandlers)}}function Uie(c,i){return c===void 0?i:i===void 0?c:new Date(Math.max(c.valueOf(),i.valueOf()))}class Kb extends Y6{}Kb.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Kb.prototype.baseIconClass="fc-icon",Kb.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Kb.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Kb.prototype.iconOverrideOption="buttonIcons",Kb.prototype.iconOverrideCustomButtonOption="icon",Kb.prototype.iconOverridePrefix="fc-icon-";function Wie(c,i){let u={},g;for(g in c)TF(g,u,c,i);for(g in i)TF(g,u,c,i);return u}function TF(c,i,u,g){if(i[c])return i[c];let C=jie(c,i,u,g);return C&&(i[c]=C),C}function jie(c,i,u,g){let C=u[c],E=g[c],A=W=>C&&C[W]!==null?C[W]:E&&E[W]!==null?E[W]:null,D=A("component"),L=A("superType"),G=null;if(L){if(L===c)throw new Error("Can't have a custom view type that references itself");G=TF(L,i,u,g)}return!D&&G&&(D=G.component),D?{type:c,component:D,defaults:Object.assign(Object.assign({},G?G.defaults:{}),C?C.rawOptions:{}),overrides:Object.assign(Object.assign({},G?G.overrides:{}),E?E.rawOptions:{})}:null}function FQ(c){return R1(c,Zie)}function Zie(c){let i=typeof c=="function"?{component:c}:c,{component:u}=i;return i.content?u=LQ(i):u&&!(u.prototype instanceof Ba)&&(u=LQ(Object.assign(Object.assign({},i),{content:u}))),{superType:i.type,component:u,rawOptions:i}}function LQ(c){return i=>Qe(B1.Consumer,null,u=>Qe(gm,{elTag:"div",elClasses:MX(u.viewSpec),renderProps:Object.assign(Object.assign({},i),{nextDayThreshold:u.options.nextDayThreshold}),generatorName:void 0,customGenerator:c.content,classNameGenerator:c.classNames,didMount:c.didMount,willUnmount:c.willUnmount}))}function Gie(c,i,u,g){let C=FQ(c),E=FQ(i.views),A=Wie(C,E);return R1(A,D=>qie(D,E,i,u,g))}function qie(c,i,u,g,C){let E=c.overrides.duration||c.defaults.duration||g.duration||u.duration,A=null,D="",L="",G={};if(E&&(A=Yie(E),A)){let ne=F$(A);D=ne.unit,ne.value===1&&(L=D,G=i[D]?i[D].rawOptions:{})}let W=ne=>{let F=ne.buttonText||{},ye=c.defaults.buttonTextKey;return ye!=null&&F[ye]!=null?F[ye]:F[c.type]!=null?F[c.type]:F[L]!=null?F[L]:null},ae=ne=>{let F=ne.buttonHints||{},ye=c.defaults.buttonTextKey;return ye!=null&&F[ye]!=null?F[ye]:F[c.type]!=null?F[c.type]:F[L]!=null?F[L]:null};return{type:c.type,component:c.component,duration:A,durationUnit:D,singleUnit:L,optionDefaults:c.defaults,optionOverrides:Object.assign(Object.assign({},G),c.overrides),buttonTextOverride:W(g)||W(u)||c.overrides.buttonText,buttonTextDefault:W(C)||c.defaults.buttonText||W(q6)||c.type,buttonTitleOverride:ae(g)||ae(u)||c.overrides.buttonHint,buttonTitleDefault:ae(C)||c.defaults.buttonHint||ae(q6)}}let VQ={};function Yie(c){let i=JSON.stringify(c),u=VQ[i];return u===void 0&&(u=Zr(c),VQ[i]=u),u}function Kie(c,i){switch(i.type){case"CHANGE_VIEW_TYPE":c=i.viewType}return c}function Xie(c,i){switch(i.type){case"SET_OPTION":return Object.assign(Object.assign({},c),{[i.optionName]:i.rawOptionValue});default:return c}}function Qie(c,i,u,g){let C;switch(i.type){case"CHANGE_VIEW_TYPE":return g.build(i.dateMarker||u);case"CHANGE_DATE":return g.build(i.dateMarker);case"PREV":if(C=g.buildPrev(c,u),C.isValid)return C;break;case"NEXT":if(C=g.buildNext(c,u),C.isValid)return C;break}return c}function Jie(c,i,u){let g=i?i.activeRange:null;return zQ({},ale(c,u),g,u)}function ele(c,i,u,g){let C=u?u.activeRange:null;switch(i.type){case"ADD_EVENT_SOURCES":return zQ(c,i.sources,C,g);case"REMOVE_EVENT_SOURCE":return nle(c,i.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return u?UQ(c,C,g):c;case"FETCH_EVENT_SOURCES":return AF(c,i.sourceIds?AX(i.sourceIds):WQ(c,g),C,i.isRefetch||!1,g);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return rle(c,i.sourceId,i.fetchId,i.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return c}}function tle(c,i,u){let g=i?i.activeRange:null;return AF(c,WQ(c,u),g,!0,u)}function HQ(c){for(let i in c)if(c[i].isFetching)return!0;return!1}function zQ(c,i,u,g){let C={};for(let E of i)C[E.sourceId]=E;return u&&(C=UQ(C,u,g)),Object.assign(Object.assign({},c),C)}function nle(c,i){return C2(c,u=>u.sourceId!==i)}function UQ(c,i,u){return AF(c,C2(c,g=>ole(g,i,u)),i,!1,u)}function ole(c,i,u){return jQ(c,u)?!u.options.lazyFetching||!c.fetchRange||c.isFetching||i.start<c.fetchRange.start||i.end>c.fetchRange.end:!c.latestFetchId}function AF(c,i,u,g,C){let E={};for(let A in c){let D=c[A];i[A]?E[A]=sle(D,u,g,C):E[A]=D}return E}function sle(c,i,u,g){let{options:C,calendarApi:E}=g,A=g.pluginHooks.eventSourceDefs[c.sourceDefId],D=p2();return A.fetch({eventSource:c,range:i,isRefetch:u,context:g},L=>{let{rawEvents:G}=L;C.eventSourceSuccess&&(G=C.eventSourceSuccess.call(E,G,L.response)||G),c.success&&(G=c.success.call(E,G,L.response)||G),g.dispatch({type:"RECEIVE_EVENTS",sourceId:c.sourceId,fetchId:D,fetchRange:i,rawEvents:G})},L=>{let G=!1;C.eventSourceFailure&&(C.eventSourceFailure.call(E,L),G=!0),c.failure&&(c.failure(L),G=!0),G||console.warn(L.message,L),g.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:c.sourceId,fetchId:D,fetchRange:i,error:L})}),Object.assign(Object.assign({},c),{isFetching:!0,latestFetchId:D})}function rle(c,i,u,g){let C=c[i];return C&&u===C.latestFetchId?Object.assign(Object.assign({},c),{[i]:Object.assign(Object.assign({},C),{isFetching:!1,fetchRange:g})}):c}function WQ(c,i){return C2(c,u=>jQ(u,i))}function ale(c,i){let u=jX(i),g=[].concat(c.eventSources||[]),C=[];c.initialEvents&&g.unshift(c.initialEvents),c.events&&g.unshift(c.events);for(let E of g){let A=WX(E,i,u);A&&C.push(A)}return C}function jQ(c,i){return!i.pluginHooks.eventSourceDefs[c.sourceDefId].ignoreRange}function ile(c,i){switch(i.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return i.selection;default:return c}}function lle(c,i){switch(i.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return i.eventInstanceId;default:return c}}function cle(c,i){let u;switch(i.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return u=i.state,{affectedEvents:u.affectedEvents,mutatedEvents:u.mutatedEvents,isEvent:u.isEvent};default:return c}}function ule(c,i){let u;switch(i.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return u=i.state,{affectedEvents:u.affectedEvents,mutatedEvents:u.mutatedEvents,isEvent:u.isEvent};default:return c}}function dle(c,i,u,g,C){let E=c.headerToolbar?ZQ(c.headerToolbar,c,i,u,g,C):null,A=c.footerToolbar?ZQ(c.footerToolbar,c,i,u,g,C):null;return{header:E,footer:A}}function ZQ(c,i,u,g,C,E){let A={},D=[],L=!1;for(let G in c){let W=c[G],ae=fle(W,i,u,g,C,E);A[G]=ae.widgets,D.push(...ae.viewsWithButtons),L=L||ae.hasTitle}return{sectionWidgets:A,viewsWithButtons:D,hasTitle:L}}function fle(c,i,u,g,C,E){let A=i.direction==="rtl",D=i.customButtons||{},L=u.buttonText||{},G=i.buttonText||{},W=u.buttonHints||{},ae=i.buttonHints||{},ne=c?c.split(" "):[],F=[],ye=!1;return{widgets:ne.map(te=>te.split(",").map(Se=>{if(Se==="title")return ye=!0,{buttonName:Se};let ie,Z,we,Bt,We,Q;if(ie=D[Se])we=Be=>{ie.click&&ie.click.call(Be.target,Be,Be.target)},(Bt=g.getCustomButtonIconClass(ie))||(Bt=g.getIconClass(Se,A))||(We=ie.text),Q=ie.hint||ie.text;else if(Z=C[Se]){F.push(Se),we=()=>{E.changeView(Se)},(We=Z.buttonTextOverride)||(Bt=g.getIconClass(Se,A))||(We=Z.buttonTextDefault);let Be=Z.buttonTextOverride||Z.buttonTextDefault;Q=G6(Z.buttonTitleOverride||Z.buttonTitleDefault||i.viewHint,[Be,Se],Be)}else if(E[Se])if(we=()=>{E[Se]()},(We=L[Se])||(Bt=g.getIconClass(Se,A))||(We=G[Se]),Se==="prevYear"||Se==="nextYear"){let Be=Se==="prevYear"?"prev":"next";Q=G6(W[Be]||ae[Be],[G.year||"year","year"],G[Se])}else Q=Be=>G6(W[Se]||ae[Se],[G[Be]||Be,Be],G[Se]);return{buttonName:Se,buttonClick:we,buttonIcon:Bt,buttonText:We,buttonHint:Q}})),viewsWithButtons:F,hasTitle:ye}}class mle{constructor(i,u,g){this.type=i,this.getCurrentData=u,this.dateEnv=g}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(i){return this.getCurrentData().options[i]}}const hle=$1({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(c){return Array.isArray(c.events)?c.events:null},fetch(c,i){i({rawEvents:c.eventSource.meta})}}]}),gle=$1({name:"func-event-source",eventSourceDefs:[{parseMeta(c){return typeof c.events=="function"?c.events:null},fetch(c,i,u){const{dateEnv:g}=c.context,C=c.eventSource.meta;Dae(C.bind(null,aQ(c.range,g)),E=>i({rawEvents:E}),u)}}]}),ple=$1({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:Wt,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(c){return c.url&&(c.format==="json"||!c.format)?{url:c.url,format:"json",method:(c.method||"GET").toUpperCase(),extraParams:c.extraParams,startParam:c.startParam,endParam:c.endParam,timeZoneParam:c.timeZoneParam}:null},fetch(c,i,u){const{meta:g}=c.eventSource,C=ble(g,c.range,c.context);Nae(g.method,g.url,C).then(([E,A])=>{i({rawEvents:E,response:A})},u)}}]});function ble(c,i,u){let{dateEnv:g,options:C}=u,E,A,D,L,G={};return E=c.startParam,E==null&&(E=C.startParam),A=c.endParam,A==null&&(A=C.endParam),D=c.timeZoneParam,D==null&&(D=C.timeZoneParam),typeof c.extraParams=="function"?L=c.extraParams():L=c.extraParams||{},Object.assign(G,L),G[E]=g.formatIso(i.start),G[A]=g.formatIso(i.end),g.timeZone!=="local"&&(G[D]=g.timeZone),G}const yle=$1({name:"simple-recurring-event",recurringTypes:[{parse(c,i){if(c.daysOfWeek||c.startTime||c.endTime||c.startRecur||c.endRecur){let u={daysOfWeek:c.daysOfWeek||null,startTime:c.startTime||null,endTime:c.endTime||null,startRecur:c.startRecur?i.createMarker(c.startRecur):null,endRecur:c.endRecur?i.createMarker(c.endRecur):null},g;return c.duration&&(g=c.duration),!g&&c.startTime&&c.endTime&&(g=Vse(c.endTime,c.startTime)),{allDayGuess:!c.startTime&&!c.endTime,duration:g,typeData:u}}return null},expand(c,i,u){let g=S2(i,{start:c.startRecur,end:c.endRecur});return g?vle(c.daysOfWeek,c.startTime,g,u):[]}}],eventRefiners:{daysOfWeek:Wt,startTime:Zr,endTime:Zr,duration:Zr,startRecur:Wt,endRecur:Wt}});function vle(c,i,u,g){let C=c?AX(c):null,E=Ii(u.start),A=u.end,D=[];for(;E<A;){let L;(!C||C[E.getUTCDay()])&&(i?L=g.add(E,i):L=E,D.push(L)),E=Gu(E,1)}return D}const Cle=$1({name:"change-handler",optionChangeHandlers:{events(c,i){GQ([c],i)},eventSources:GQ}});function GQ(c,i){let u=j$(i.getCurrentData().eventSources);if(u.length===1&&c.length===1&&Array.isArray(u[0]._raw)&&Array.isArray(c[0])){i.dispatch({type:"RESET_RAW_EVENTS",sourceId:u[0].sourceId,rawEvents:c[0]});return}let g=[];for(let C of c){let E=!1;for(let A=0;A<u.length;A+=1)if(u[A]._raw===C){u.splice(A,1),E=!0;break}E||g.push(C)}for(let C of u)i.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:C.sourceId});for(let C of g)i.calendarApi.addEventSource(C)}function wle(c,i){i.emitter.trigger("datesSet",Object.assign(Object.assign({},aQ(c.activeRange,i.dateEnv)),{view:i.viewApi}))}function Sle(c,i){let{emitter:u}=i;u.hasHandlers("eventsSet")&&u.trigger("eventsSet",E2(c,i))}const _le=[hle,gle,ple,yle,Cle,$1({name:"misc",isLoadingFuncs:[c=>HQ(c.eventSources)],propSetHandlers:{dateProfile:wle,eventStore:Sle}})];class Ele{constructor(i,u){this.runTaskOption=i,this.drainedOption=u,this.queue=[],this.delayedRunner=new R$(this.drain.bind(this))}request(i,u){this.queue.push(i),this.delayedRunner.request(u)}pause(i){this.delayedRunner.pause(i)}resume(i,u){this.delayedRunner.resume(i,u)}drain(){let{queue:i}=this;for(;i.length;){let u=[],g;for(;g=i.shift();)this.runTask(g),u.push(g);this.drained(u)}}runTask(i){this.runTaskOption&&this.runTaskOption(i)}drained(i){this.drainedOption&&this.drainedOption(i)}}function xle(c,i,u){let g;return/^(year|month)$/.test(c.currentRangeUnit)?g=c.currentRange:g=c.activeRange,u.formatRange(g.start,g.end,_l(i.titleFormat||kle(c)),{isEndExclusive:c.isRangeAllDay,defaultSeparator:i.titleRangeSeparator})}function kle(c){let{currentRangeUnit:i}=c;if(i==="year")return{year:"numeric"};if(i==="month")return{year:"numeric",month:"long"};let u=L8(c.currentRange.start,c.currentRange.end);return u!==null&&u>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Tle{constructor(i){this.computeCurrentViewData=Es(this._computeCurrentViewData),this.organizeRawLocales=Es($ie),this.buildLocale=Es(PQ),this.buildPluginHooks=Hie(),this.buildDateEnv=Es(Ale),this.buildTheme=Es(Dle),this.parseToolbars=Es(dle),this.buildViewSpecs=Es(Gie),this.buildDateProfileGenerator=V8(Nle),this.buildViewApi=Es(Ole),this.buildViewUiProps=V8(Mle),this.buildEventUiBySource=Es(Rle,fp),this.buildEventUiBases=Es(Ble),this.parseContextBusinessHours=V8(Ile),this.buildTitle=Es(xle),this.emitter=new Q8,this.actionRunner=new Ele(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=ne=>{this.actionRunner.request(ne)},this.props=i,this.actionRunner.pause();let u={},g=this.computeOptionsData(i.optionOverrides,u,i.calendarApi),C=g.calendarOptions.initialView||g.pluginHooks.initialView,E=this.computeCurrentViewData(C,g,i.optionOverrides,u);i.calendarApi.currentDataManager=this,this.emitter.setThisContext(i.calendarApi),this.emitter.setOptions(E.options);let A=Ure(g.calendarOptions,g.dateEnv),D=E.dateProfileGenerator.build(A);I1(D.activeRange,A)||(A=D.currentRange.start);let L={dateEnv:g.dateEnv,options:g.calendarOptions,pluginHooks:g.pluginHooks,calendarApi:i.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let ne of g.pluginHooks.contextInit)ne(L);let G=Jie(g.calendarOptions,D,L),W={dynamicOptionOverrides:u,currentViewType:C,currentDate:A,dateProfile:D,businessHours:this.parseContextBusinessHours(L),eventSources:G,eventUiBases:{},eventStore:pm(),renderableEventStore:pm(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(L).selectionConfig},ae=Object.assign(Object.assign({},L),W);for(let ne of g.pluginHooks.reducers)Object.assign(W,ne(null,null,ae));DF(W,L)&&this.emitter.trigger("loading",!0),this.state=W,this.updateData(),this.actionRunner.resume()}resetOptions(i,u){let{props:g}=this;u===void 0?g.optionOverrides=i:(g.optionOverrides=Object.assign(Object.assign({},g.optionOverrides||{}),i),this.optionsForRefining.push(...u)),(u===void 0||u.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(i){let{props:u,state:g,emitter:C}=this,E=Xie(g.dynamicOptionOverrides,i),A=this.computeOptionsData(u.optionOverrides,E,u.calendarApi),D=Kie(g.currentViewType,i),L=this.computeCurrentViewData(D,A,u.optionOverrides,E);u.calendarApi.currentDataManager=this,C.setThisContext(u.calendarApi),C.setOptions(L.options);let G={dateEnv:A.dateEnv,options:A.calendarOptions,pluginHooks:A.pluginHooks,calendarApi:u.calendarApi,dispatch:this.dispatch,emitter:C,getCurrentData:this.getCurrentData},{currentDate:W,dateProfile:ae}=g;this.data&&this.data.dateProfileGenerator!==L.dateProfileGenerator&&(ae=L.dateProfileGenerator.build(W)),W=zre(W,i),ae=Qie(ae,i,W,L.dateProfileGenerator),(i.type==="PREV"||i.type==="NEXT"||!I1(ae.currentRange,W))&&(W=ae.currentRange.start);let ne=ele(g.eventSources,i,ae,G),F=nae(g.eventStore,i,ne,ae,G),le=HQ(ne)&&!L.options.progressiveEventRendering&&g.renderableEventStore||F,{eventUiSingleBase:te,selectionConfig:Se}=this.buildViewUiProps(G),ie=this.buildEventUiBySource(ne),Z=this.buildEventUiBases(le.defs,te,ie),we={dynamicOptionOverrides:E,currentViewType:D,currentDate:W,dateProfile:ae,eventSources:ne,eventStore:F,renderableEventStore:le,selectionConfig:Se,eventUiBases:Z,businessHours:this.parseContextBusinessHours(G),dateSelection:ile(g.dateSelection,i),eventSelection:lle(g.eventSelection,i),eventDrag:cle(g.eventDrag,i),eventResize:ule(g.eventResize,i)},Bt=Object.assign(Object.assign({},G),we);for(let Be of A.pluginHooks.reducers)Object.assign(we,Be(g,i,Bt));let We=DF(g,G),Q=DF(we,G);!We&&Q?C.trigger("loading",!0):We&&!Q&&C.trigger("loading",!1),this.state=we,u.onAction&&u.onAction(i)}updateData(){let{props:i,state:u}=this,g=this.data,C=this.computeOptionsData(i.optionOverrides,u.dynamicOptionOverrides,i.calendarApi),E=this.computeCurrentViewData(u.currentViewType,C,i.optionOverrides,u.dynamicOptionOverrides),A=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(u.dateProfile,E.options,C.dateEnv),calendarApi:i.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},C),E),u),D=C.pluginHooks.optionChangeHandlers,L=g&&g.calendarOptions,G=C.calendarOptions;if(L&&L!==G){L.timeZone!==G.timeZone&&(u.eventSources=A.eventSources=tle(A.eventSources,u.dateProfile,A),u.eventStore=A.eventStore=qX(A.eventStore,g.dateEnv,A.dateEnv),u.renderableEventStore=A.renderableEventStore=qX(A.renderableEventStore,g.dateEnv,A.dateEnv));for(let W in D)(this.optionsForHandling.indexOf(W)!==-1||L[W]!==G[W])&&D[W](G[W],A)}this.optionsForHandling=[],i.onData&&i.onData(A)}computeOptionsData(i,u,g){if(!this.optionsForRefining.length&&i===this.stableOptionOverrides&&u===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:C,pluginHooks:E,localeDefaults:A,availableLocaleData:D,extra:L}=this.processRawCalendarOptions(i,u);qQ(L);let G=this.buildDateEnv(C.timeZone,C.locale,C.weekNumberCalculation,C.firstDay,C.weekText,E,D,C.defaultRangeSeparator),W=this.buildViewSpecs(E.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,A),ae=this.buildTheme(C,E),ne=this.parseToolbars(C,this.stableOptionOverrides,ae,W,g);return this.stableCalendarOptionsData={calendarOptions:C,pluginHooks:E,dateEnv:G,viewSpecs:W,theme:ae,toolbarConfig:ne,localeDefaults:A,availableRawLocales:D.map}}processRawCalendarOptions(i,u){let{locales:g,locale:C}=z$([q6,i,u]),E=this.organizeRawLocales(g),A=E.map,D=this.buildLocale(C||E.defaultCode,A).options,L=this.buildPluginHooks(i.plugins||[],_le),G=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xX),kX),TX),L.listenerRefiners),L.optionRefiners),W={},ae=z$([q6,D,i,u]),ne={},F=this.currentCalendarOptionsInput,ye=this.currentCalendarOptionsRefined,le=!1;for(let te in ae)this.optionsForRefining.indexOf(te)===-1&&(ae[te]===F[te]||y2[te]&&te in F&&y2[te](F[te],ae[te]))?ne[te]=ye[te]:G[te]?(ne[te]=G[te](ae[te]),le=!0):W[te]=F[te];return le&&(this.currentCalendarOptionsInput=ae,this.currentCalendarOptionsRefined=ne,this.stableOptionOverrides=i,this.stableDynamicOptionOverrides=u),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:L,availableLocaleData:E,localeDefaults:D,extra:W}}_computeCurrentViewData(i,u,g,C){let E=u.viewSpecs[i];if(!E)throw new Error(`viewType "${i}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:A,extra:D}=this.processRawViewOptions(E,u.pluginHooks,u.localeDefaults,g,C);qQ(D);let L=this.buildDateProfileGenerator({dateProfileGeneratorClass:E.optionDefaults.dateProfileGeneratorClass,duration:E.duration,durationUnit:E.durationUnit,usesMinMaxTime:E.optionDefaults.usesMinMaxTime,dateEnv:u.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:A.slotMinTime,slotMaxTime:A.slotMaxTime,showNonCurrentDates:A.showNonCurrentDates,dayCount:A.dayCount,dateAlignment:A.dateAlignment,dateIncrement:A.dateIncrement,hiddenDays:A.hiddenDays,weekends:A.weekends,nowInput:A.now,validRangeInput:A.validRange,visibleRangeInput:A.visibleRange,fixedWeekCount:A.fixedWeekCount}),G=this.buildViewApi(i,this.getCurrentData,u.dateEnv);return{viewSpec:E,options:A,dateProfileGenerator:L,viewApi:G}}processRawViewOptions(i,u,g,C,E){let A=z$([q6,i.optionDefaults,g,C,i.optionOverrides,E]),D=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xX),kX),TX),vre),u.listenerRefiners),u.optionRefiners),L={},G=this.currentViewOptionsInput,W=this.currentViewOptionsRefined,ae=!1,ne={};for(let F in A)A[F]===G[F]||y2[F]&&y2[F](A[F],G[F])?L[F]=W[F]:(A[F]===this.currentCalendarOptionsInput[F]||y2[F]&&y2[F](A[F],this.currentCalendarOptionsInput[F])?F in this.currentCalendarOptionsRefined&&(L[F]=this.currentCalendarOptionsRefined[F]):D[F]?L[F]=D[F](A[F]):ne[F]=A[F],ae=!0);return ae&&(this.currentViewOptionsInput=A,this.currentViewOptionsRefined=L),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:ne}}}function Ale(c,i,u,g,C,E,A,D){let L=PQ(i||A.defaultCode,A.map);return new Dre({calendarSystem:"gregory",timeZone:c,namedTimeZoneImpl:E.namedTimeZonedImpl,locale:L,weekNumberCalculation:u,firstDay:g,weekText:C,cmdFormatter:E.cmdFormatter,defaultSeparator:D})}function Dle(c,i){let u=i.themeClasses[c.themeSystem]||Kb;return new u(c)}function Nle(c){let i=c.dateProfileGeneratorClass||FX;return new i(c)}function Ole(c,i,u){return new mle(c,i,u)}function Rle(c){return R1(c,i=>i.ui)}function Ble(c,i,u){let g={"":i};for(let C in c){let E=c[C];E.sourceId&&u[E.sourceId]&&(g[C]=u[E.sourceId])}return g}function Mle(c){let{options:i}=c;return{eventUiSingleBase:X8({display:i.eventDisplay,editable:i.editable,startEditable:i.eventStartEditable,durationEditable:i.eventDurationEditable,constraint:i.eventConstraint,overlap:typeof i.eventOverlap=="boolean"?i.eventOverlap:void 0,allow:i.eventAllow,backgroundColor:i.eventBackgroundColor,borderColor:i.eventBorderColor,textColor:i.eventTextColor,color:i.eventColor},c),selectionConfig:X8({constraint:i.selectConstraint,overlap:typeof i.selectOverlap=="boolean"?i.selectOverlap:void 0,allow:i.selectAllow},c)}}function DF(c,i){for(let u of i.pluginHooks.isLoadingFuncs)if(u(c))return!0;return!1}function Ile(c){return dae(c.options.businessHours,c)}function qQ(c,i){for(let u in c)console.warn(`Unknown option '${u}'`+(i?` for view '${i}'`:""))}class Ple extends Ba{render(){let i=this.props.widgetGroups.map(u=>this.renderWidgetGroup(u));return Qe("div",{className:"fc-toolbar-chunk"},...i)}renderWidgetGroup(i){let{props:u}=this,{theme:g}=this.context,C=[],E=!0;for(let A of i){let{buttonName:D,buttonClick:L,buttonText:G,buttonIcon:W,buttonHint:ae}=A;if(D==="title")E=!1,C.push(Qe("h2",{className:"fc-toolbar-title",id:u.titleId},u.title));else{let ne=D===u.activeButton,F=!u.isTodayEnabled&&D==="today"||!u.isPrevEnabled&&D==="prev"||!u.isNextEnabled&&D==="next",ye=[`fc-${D}-button`,g.getClass("button")];ne&&ye.push(g.getClass("buttonActive")),C.push(Qe("button",{type:"button",title:typeof ae=="function"?ae(u.navUnit):ae,disabled:F,"aria-pressed":ne,className:ye.join(" "),onClick:L},G||(W?Qe("span",{className:W,role:"img"}):"")))}}if(C.length>1){let A=E&&g.getClass("buttonGroup")||"";return Qe("div",{className:A},...C)}return C[0]}}class YQ extends Ba{render(){let{model:i,extraClassName:u}=this.props,g=!1,C,E,A=i.sectionWidgets,D=A.center;return A.left?(g=!0,C=A.left):C=A.start,A.right?(g=!0,E=A.right):E=A.end,Qe("div",{className:[u||"","fc-toolbar",g?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",C||[]),this.renderSection("center",D||[]),this.renderSection("end",E||[]))}renderSection(i,u){let{props:g}=this;return Qe(Ple,{key:i,widgetGroups:u,title:g.title,navUnit:g.navUnit,activeButton:g.activeButton,isTodayEnabled:g.isTodayEnabled,isPrevEnabled:g.isPrevEnabled,isNextEnabled:g.isNextEnabled,titleId:g.titleId})}}class $le extends Ba{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=i=>{this.el=i,M1(this.props.elRef,i),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:i,state:u}=this,{aspectRatio:g}=i,C=["fc-view-harness",g||i.liquid||i.height?"fc-view-harness-active":"fc-view-harness-passive"],E="",A="";return g?u.availableWidth!==null?E=u.availableWidth/g:A=`${1/g*100}%`:E=i.height||"",Qe("div",{"aria-labelledby":i.labeledById,ref:this.handleEl,className:C.join(" "),style:{height:E,paddingBottom:A}},i.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class Fle extends sS{constructor(i){super(i),this.handleSegClick=(u,g)=>{let{component:C}=this,{context:E}=C,A=oS(g);if(A&&C.isValidSegDownEl(u.target)){let D=Zu(u.target,".fc-event-forced-url"),L=D?D.querySelector("a[href]").href:"";E.emitter.trigger("eventClick",{el:g,event:new gl(C.context,A.eventRange.def,A.eventRange.instance),jsEvent:u,view:E.viewApi}),L&&!u.defaultPrevented&&(window.location.href=L)}},this.destroy=uX(i.el,"click",".fc-event",this.handleSegClick)}}class Lle extends sS{constructor(i){super(i),this.handleEventElRemove=u=>{u===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(u,g)=>{oS(g)&&(this.currentSegEl=g,this.triggerEvent("eventMouseEnter",u,g))},this.handleSegLeave=(u,g)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",u,g))},this.removeHoverListeners=xse(i.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(i,u,g){let{component:C}=this,{context:E}=C,A=oS(g);(!u||C.isValidSegDownEl(u.target))&&E.emitter.trigger(i,{el:g,event:new gl(E,A.eventRange.def,A.eventRange.instance),jsEvent:u,view:E.viewApi})}}class Vle extends w2{constructor(){super(...arguments),this.buildViewContext=Es(Rre),this.buildViewPropTransformers=Es(zle),this.buildToolbarProps=Es(Hle),this.headerRef=Td(),this.footerRef=Td(),this.interactionsStore={},this.state={viewLabelId:P8()},this.registerInteractiveComponent=(i,u)=>{let g=Bae(i,u),A=[Fle,Lle].concat(this.props.pluginHooks.componentInteractions).map(D=>new D(g));this.interactionsStore[i.uid]=A,iF[i.uid]=g},this.unregisterInteractiveComponent=i=>{let u=this.interactionsStore[i.uid];if(u){for(let g of u)g.destroy();delete this.interactionsStore[i.uid]}delete iF[i.uid]},this.resizeRunner=new R$(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=i=>{let{options:u}=this.props;u.handleWindowResize&&i.target===window&&this.resizeRunner.request(u.windowResizeDelay)}}render(){let{props:i}=this,{toolbarConfig:u,options:g}=i,C=this.buildToolbarProps(i.viewSpec,i.dateProfile,i.dateProfileGenerator,i.currentDate,K6(i.options.now,i.dateEnv),i.viewTitle),E=!1,A="",D;i.isHeightAuto||i.forPrint?A="":g.height!=null?E=!0:g.contentHeight!=null?A=g.contentHeight:D=Math.max(g.aspectRatio,.5);let L=this.buildViewContext(i.viewSpec,i.viewApi,i.options,i.dateProfileGenerator,i.dateEnv,i.theme,i.pluginHooks,i.dispatch,i.getCurrentData,i.emitter,i.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),G=u.header&&u.header.hasTitle?this.state.viewLabelId:"";return Qe(B1.Provider,{value:L},u.header&&Qe(YQ,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:u.header,titleId:G},C)),Qe($le,{liquid:E,height:A,aspectRatio:D,labeledById:G},this.renderView(i),this.buildAppendContent()),u.footer&&Qe(YQ,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:u.footer,titleId:""},C)))}componentDidMount(){let{props:i}=this;this.calendarInteractions=i.pluginHooks.calendarInteractions.map(g=>new g(i)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:u}=i.pluginHooks;for(let g in u)u[g](i[g],i)}componentDidUpdate(i){let{props:u}=this,{propSetHandlers:g}=u.pluginHooks;for(let C in g)u[C]!==i[C]&&g[C](u[C],u)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let i of this.calendarInteractions)i.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:i}=this,u=i.pluginHooks.viewContainerAppends.map(g=>g(i));return Qe(tl,{},...u)}renderView(i){let{pluginHooks:u}=i,{viewSpec:g}=i,C={dateProfile:i.dateProfile,businessHours:i.businessHours,eventStore:i.renderableEventStore,eventUiBases:i.eventUiBases,dateSelection:i.dateSelection,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,isHeightAuto:i.isHeightAuto,forPrint:i.forPrint},E=this.buildViewPropTransformers(u.viewPropsTransformers);for(let D of E)Object.assign(C,D.transform(C,i));let A=g.component;return Qe(A,Object.assign({},C))}}function Hle(c,i,u,g,C,E){let A=u.build(C,void 0,!1),D=u.buildPrev(i,g,!1),L=u.buildNext(i,g,!1);return{title:E,activeButton:c.type,navUnit:c.singleUnit,isTodayEnabled:A.isValid&&!I1(i.currentRange,C),isPrevEnabled:D.isValid,isNextEnabled:L.isValid}}function zle(c){return c.map(i=>new i)}let Ule=class extends Mae{constructor(i,u={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=g=>{switch(g.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=g=>{this.currentData=g,this.renderRunner.request(g.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:g}=this;NX(()=>{j6(Qe(Rae,{options:g.calendarOptions,theme:g.theme,emitter:g.emitter},(C,E,A,D)=>(this.setClassNames(C),this.setHeight(E),Qe(BX.Provider,{value:this.customContentRenderId},Qe(Vle,Object.assign({isHeightAuto:A,forPrint:D},g))))),this.el)})}else this.isRendered&&(this.isRendered=!1,j6(null,this.el),this.setClassNames([]),this.setHeight(""))},pse(i),this.el=i,this.renderRunner=new R$(this.handleRenderRequest),new Tle({optionOverrides:u,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let i=this.isRendering;i?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),i&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){NX(()=>{super.updateSize()})}batchRendering(i){this.renderRunner.pause("batchRendering"),i(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(i,u){this.currentDataManager.resetOptions(i,u)}setClassNames(i){if(!jb(i,this.currentClassNames)){let{classList:u}=this.el;for(let g of this.currentClassNames)u.remove(g);for(let g of i)u.add(g);this.currentClassNames=i}}setHeight(i){iX(this.el,"height",i)}};const Wle={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},KQ=f.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(c){return{...c,customRenderingMetaMap:Gle(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const c=[];for(const i of this.customRenderingMap.values())c.push(f.h(jle,{key:i.id,customRendering:i}));return f.h("div",{attrs:{"data-fc-render-id":this.renderId}},f.h(f.Fragment,c))},mounted(){const c=new Iie;this.handleCustomRendering=c.handle.bind(c);const i=this.buildOptions(this.options),u=new Ule(this.$el,i);this.calendar=u,u.render(),c.subscribe(g=>{this.customRenderingMap=g,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:Zle()}),jle=f.defineComponent({props:{customRendering:Object},render(){const c=this.customRendering,i=typeof c.generatorMeta=="function"?c.generatorMeta(c.renderProps):c.generatorMeta;return f.h(f.Teleport,{to:c.containerEl},i)}});function f0e(c){return c}function Zle(){let c={options:{deep:!0,handler(i){let u=this.getApi();u.pauseRendering();let g=this.buildOptions(i);u.resetOptions(g),this.renderId++}}};for(let i in Wle)c[`options.${i}`]={deep:!0,handler(u){if(u!==void 0){let g=this.getApi();g.pauseRendering(),g.resetOptions({[i]:u},[i]),this.renderId++}}};return c}function Gle(c){const i={};for(const u in c)i[qle(u)]=c[u];return i}function qle(c){return c.split("-").map((i,u)=>u?Yle(i):i).join("")}function Yle(c){return c.charAt(0).toUpperCase()+c.slice(1)}class Kle extends mp{constructor(){super(...arguments),this.headerElRef=Td()}renderSimpleLayout(i,u){let{props:g,context:C}=this,E=[],A=s7(C.options);return i&&E.push({type:"header",key:"header",isSticky:A,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:i}}),E.push({type:"body",key:"body",liquid:!0,chunk:{content:u}}),Qe(Z8,{elClasses:["fc-daygrid"],viewSpec:C.viewSpec},Qe(wF,{liquid:!g.isHeightAuto&&!g.forPrint,collapsibleWidth:g.forPrint,cols:[],sections:E}))}renderHScrollLayout(i,u,g,C){let E=this.context.pluginHooks.scrollGridImpl;if(!E)throw new Error("No ScrollGrid implementation");let{props:A,context:D}=this,L=!A.forPrint&&s7(D.options),G=!A.forPrint&&kQ(D.options),W=[];return i&&W.push({type:"header",key:"header",isSticky:L,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:i}]}),W.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:u}]}),G&&W.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:CF}]}),Qe(Z8,{elClasses:["fc-daygrid"],viewSpec:D.viewSpec},Qe(E,{liquid:!A.isHeightAuto&&!A.forPrint,forPrint:A.forPrint,collapsibleWidth:A.forPrint,colGroups:[{cols:[{span:g,minWidth:C}]}],sections:W}))}}function r7(c,i){let u=[];for(let g=0;g<i;g+=1)u[g]=[];for(let g of c)u[g.row].push(g);return u}function a7(c,i){let u=[];for(let g=0;g<i;g+=1)u[g]=[];for(let g of c)u[g.firstCol].push(g);return u}function XQ(c,i){let u=[];if(c){for(let g=0;g<i;g+=1)u[g]={affectedInstances:c.affectedInstances,isEvent:c.isEvent,segs:[]};for(let g of c.segs)u[g.row].segs.push(g)}else for(let g=0;g<i;g+=1)u[g]=null;return u}const QQ=_l({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function JQ(c){let{display:i}=c.eventRange.ui;return i==="list-item"||i==="auto"&&!c.eventRange.def.allDay&&c.firstCol===c.lastCol&&c.isStart&&c.isEnd}class eJ extends Ba{render(){let{props:i}=this;return Qe(TQ,Object.assign({},i,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:QQ,defaultDisplayEventEnd:i.defaultDisplayEventEnd,disableResizing:!i.seg.eventRange.def.allDay}))}}class tJ extends Ba{render(){let{props:i,context:u}=this,{options:g}=u,{seg:C}=i,E=g.eventTimeFormat||QQ,A=oQ(C,E,u,!0,i.defaultDisplayEventEnd);return Qe(SF,Object.assign({},i,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:rQ(i.seg,u),defaultGenerator:Xle,timeText:A,isResizing:!1,isDateSelecting:!1}))}}function Xle(c){return Qe(tl,null,Qe("div",{className:"fc-daygrid-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}}),c.timeText&&Qe("div",{className:"fc-event-time"},c.timeText),Qe("div",{className:"fc-event-title"},c.event.title||Qe(tl,null," ")))}class Qle extends Ba{constructor(){super(...arguments),this.compileSegs=Es(Jle)}render(){let{props:i}=this,{allSegs:u,invisibleSegs:g}=this.compileSegs(i.singlePlacements);return Qe(OQ,{elClasses:["fc-daygrid-more-link"],dateProfile:i.dateProfile,todayRange:i.todayRange,allDayDate:i.allDayDate,moreCnt:i.moreCnt,allSegs:u,hiddenSegs:g,alignmentElRef:i.alignmentElRef,alignGridTop:i.alignGridTop,extraDateSpan:i.extraDateSpan,popoverContent:()=>{let C=(i.eventDrag?i.eventDrag.affectedInstances:null)||(i.eventResize?i.eventResize.affectedInstances:null)||{};return Qe(tl,null,u.map(E=>{let A=E.eventRange.instance.instanceId;return Qe("div",{className:"fc-daygrid-event-harness",key:A,style:{visibility:C[A]?"hidden":""}},JQ(E)?Qe(tJ,Object.assign({seg:E,isDragging:!1,isSelected:A===i.eventSelection,defaultDisplayEventEnd:!1},Yb(E,i.todayRange))):Qe(eJ,Object.assign({seg:E,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:A===i.eventSelection,defaultDisplayEventEnd:!1},Yb(E,i.todayRange))))}))}})}}function Jle(c){let i=[],u=[];for(let g of c)i.push(g.seg),g.isVisible||u.push(g.seg);return{allSegs:i,invisibleSegs:u}}const ece=_l({week:"narrow"});class tce extends mp{constructor(){super(...arguments),this.rootElRef=Td(),this.state={dayNumberId:P8()},this.handleRootEl=i=>{M1(this.rootElRef,i),M1(this.props.elRef,i)}}render(){let{context:i,props:u,state:g,rootElRef:C}=this,{options:E,dateEnv:A}=i,{date:D,dateProfile:L}=u;const G=u.showDayNumber&&oce(D,L.currentRange,A);return Qe(EF,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...u.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},u.extraDataAttrs),u.showDayNumber?{"aria-labelledby":g.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:nce,date:D,dateProfile:L,todayRange:u.todayRange,showDayNumber:u.showDayNumber,isMonthStart:G,extraRenderProps:u.extraRenderProps},(W,ae)=>Qe("div",{ref:u.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:u.minHeight}},u.showWeekNumber&&Qe(NQ,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:e7(i,D,"week"),date:D,defaultFormat:ece}),!ae.isDisabled&&(u.showDayNumber||xF(E)||u.forceDayTop)?Qe("div",{className:"fc-daygrid-day-top"},Qe(W,{elTag:"a",elClasses:["fc-daygrid-day-number",G&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},e7(i,D)),{id:g.dayNumberId})})):u.showDayNumber?Qe("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},Qe("a",{className:"fc-daygrid-day-number"}," ")):void 0,Qe("div",{className:"fc-daygrid-day-events",ref:u.fgContentElRef},u.fgContent,Qe("div",{className:"fc-daygrid-day-bottom",style:{marginTop:u.moreMarginTop}},Qe(Qle,{allDayDate:D,singlePlacements:u.singlePlacements,moreCnt:u.moreCnt,alignmentElRef:C,alignGridTop:!u.showDayNumber,extraDateSpan:u.extraDateSpan,dateProfile:u.dateProfile,eventSelection:u.eventSelection,eventDrag:u.eventDrag,eventResize:u.eventResize,todayRange:u.todayRange}))),Qe("div",{className:"fc-daygrid-day-bg"},u.bgContent)))}}function nce(c){return c.dayNumberText||Qe(tl,null," ")}function oce(c,i,u){const{start:g,end:C}=i,E=Zb(C,-1),A=u.getYear(g),D=u.getMonth(g),L=u.getYear(E),G=u.getMonth(E);return!(A===L&&D===G)&&(c.valueOf()===g.valueOf()||u.getDay(c)===1&&c.valueOf()<C.valueOf())}function nJ(c){return c.eventRange.instance.instanceId+":"+c.firstCol}function oJ(c){return nJ(c)+":"+c.lastCol}function sce(c,i,u,g,C,E,A){let D=new ice(Se=>{let ie=c[Se.index].eventRange.instance.instanceId+":"+Se.span.start+":"+(Se.span.end-1);return C[ie]});D.allowReslicing=!0,D.strictOrder=g,i===!0||u===!0?(D.maxCoord=E,D.hiddenConsumes=!0):typeof i=="number"?D.maxStackCnt=i:typeof u=="number"&&(D.maxStackCnt=u,D.hiddenConsumes=!0);let L=[],G=[];for(let Se=0;Se<c.length;Se+=1){let ie=c[Se],Z=oJ(ie);C[Z]!=null?L.push({index:Se,span:{start:ie.firstCol,end:ie.lastCol+1}}):G.push(ie)}let W=D.addSegs(L),ae=D.toRects(),{singleColPlacements:ne,multiColPlacements:F,leftoverMargins:ye}=rce(ae,c,A),le=[],te=[];for(let Se of G){F[Se.firstCol].push({seg:Se,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let ie=Se.firstCol;ie<=Se.lastCol;ie+=1)ne[ie].push({seg:aS(Se,ie,ie+1,A),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let Se=0;Se<A.length;Se+=1)le.push(0);for(let Se of W){let ie=c[Se.index],Z=Se.span;F[Z.start].push({seg:aS(ie,Z.start,Z.end,A),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let we=Z.start;we<Z.end;we+=1)le[we]+=1,ne[we].push({seg:aS(ie,we,we+1,A),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let Se=0;Se<A.length;Se+=1)te.push(ye[Se]);return{singleColPlacements:ne,multiColPlacements:F,moreCnts:le,moreMarginTops:te}}function rce(c,i,u){let g=ace(c,u.length),C=[],E=[],A=[];for(let D=0;D<u.length;D+=1){let L=g[D],G=[],W=0,ae=0;for(let F of L){let ye=i[F.index];G.push({seg:aS(ye,D,D+1,u),isVisible:!0,isAbsolute:!1,absoluteTop:F.levelCoord,marginTop:F.levelCoord-W}),W=F.levelCoord+F.thickness}let ne=[];W=0,ae=0;for(let F of L){let ye=i[F.index],le=F.span.end-F.span.start>1,te=F.span.start===D;ae+=F.levelCoord-W,W=F.levelCoord+F.thickness,le?(ae+=F.thickness,te&&ne.push({seg:aS(ye,F.span.start,F.span.end,u),isVisible:!0,isAbsolute:!0,absoluteTop:F.levelCoord,marginTop:0})):te&&(ne.push({seg:aS(ye,F.span.start,F.span.end,u),isVisible:!0,isAbsolute:!1,absoluteTop:F.levelCoord,marginTop:ae}),ae=0)}C.push(G),E.push(ne),A.push(ae)}return{singleColPlacements:C,multiColPlacements:E,leftoverMargins:A}}function ace(c,i){let u=[];for(let g=0;g<i;g+=1)u.push([]);for(let g of c)for(let C=g.span.start;C<g.span.end;C+=1)u[C].push(g);return u}function aS(c,i,u,g){if(c.firstCol===i&&c.lastCol===u-1)return c;let C=c.eventRange,E=C.range,A=S2(E,{start:g[i].date,end:Gu(g[u-1].date,1)});return Object.assign(Object.assign({},c),{firstCol:i,lastCol:u-1,eventRange:{def:C.def,ui:Object.assign(Object.assign({},C.ui),{durationEditable:!1}),instance:C.instance,range:A},isStart:c.isStart&&A.start.valueOf()===E.start.valueOf(),isEnd:c.isEnd&&A.end.valueOf()===E.end.valueOf()})}class ice extends hQ{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(i){const u=super.addSegs(i),{entriesByLevel:g}=this,C=E=>!this.forceHidden[x2(E)];for(let E=0;E<g.length;E+=1)g[E]=g[E].filter(C);return u}handleInvalidInsertion(i,u,g){const{entriesByLevel:C,forceHidden:E}=this,{touchingEntry:A,touchingLevel:D,touchingLateral:L}=i;if(this.hiddenConsumes&&A){const G=x2(A);if(!E[G])if(this.allowReslicing){const W=Object.assign(Object.assign({},A),{span:gF(A.span,u.span)}),ae=x2(W);E[ae]=!0,C[D][L]=W,this.splitEntry(A,u,g)}else E[G]=!0,g.push(A)}return super.handleInvalidInsertion(i,u,g)}}class sJ extends mp{constructor(){super(...arguments),this.cellElRefs=new P1,this.frameElRefs=new P1,this.fgElRefs=new P1,this.segHarnessRefs=new P1,this.rootElRef=Td(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=i=>{i&&this.updateSizing(!0)}}render(){let{props:i,state:u,context:g}=this,{options:C}=g,E=i.cells.length,A=a7(i.businessHourSegs,E),D=a7(i.bgEventSegs,E),L=a7(this.getHighlightSegs(),E),G=a7(this.getMirrorSegs(),E),{singleColPlacements:W,multiColPlacements:ae,moreCnts:ne,moreMarginTops:F}=sce(nQ(i.fgEventSegs,C.eventOrder),i.dayMaxEvents,i.dayMaxEventRows,C.eventOrderStrict,u.segHeights,u.maxContentHeight,i.cells),ye=i.eventDrag&&i.eventDrag.affectedInstances||i.eventResize&&i.eventResize.affectedInstances||{};return Qe("tr",{ref:this.rootElRef,role:"row"},i.renderIntro&&i.renderIntro(),i.cells.map((le,te)=>{let Se=this.renderFgSegs(te,i.forPrint?W[te]:ae[te],i.todayRange,ye),ie=this.renderFgSegs(te,lce(G[te],ae),i.todayRange,{},!!i.eventDrag,!!i.eventResize,!1);return Qe(tce,{key:le.key,elRef:this.cellElRefs.createRef(le.key),innerElRef:this.frameElRefs.createRef(le.key),dateProfile:i.dateProfile,date:le.date,showDayNumber:i.showDayNumbers,showWeekNumber:i.showWeekNumbers&&te===0,forceDayTop:i.showWeekNumbers,todayRange:i.todayRange,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,extraRenderProps:le.extraRenderProps,extraDataAttrs:le.extraDataAttrs,extraClassNames:le.extraClassNames,extraDateSpan:le.extraDateSpan,moreCnt:ne[te],moreMarginTop:F[te],singlePlacements:W[te],fgContentElRef:this.fgElRefs.createRef(le.key),fgContent:Qe(tl,null,Qe(tl,null,Se),Qe(tl,null,ie)),bgContent:Qe(tl,null,this.renderFillSegs(L[te],"highlight"),this.renderFillSegs(A[te],"non-business"),this.renderFillSegs(D[te],"bg-event")),minHeight:i.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(i,u){let g=this.props;this.updateSizing(!fp(i,g))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:i}=this;return i.eventDrag&&i.eventDrag.segs.length?i.eventDrag.segs:i.eventResize&&i.eventResize.segs.length?i.eventResize.segs:i.dateSelectionSegs}getMirrorSegs(){let{props:i}=this;return i.eventResize&&i.eventResize.segs.length?i.eventResize.segs:[]}renderFgSegs(i,u,g,C,E,A,D){let{context:L}=this,{eventSelection:G}=this.props,{framePositions:W}=this.state,ae=this.props.cells.length===1,ne=E||A||D,F=[];if(W)for(let ye of u){let{seg:le}=ye,{instanceId:te}=le.eventRange.instance,Se=ye.isVisible&&!C[te],ie=ye.isAbsolute,Z="",we="";ie&&(L.isRtl?(we=0,Z=W.lefts[le.lastCol]-W.lefts[le.firstCol]):(Z=0,we=W.rights[le.firstCol]-W.rights[le.lastCol])),F.push(Qe("div",{className:"fc-daygrid-event-harness"+(ie?" fc-daygrid-event-harness-abs":""),key:nJ(le),ref:ne?null:this.segHarnessRefs.createRef(oJ(le)),style:{visibility:Se?"":"hidden",marginTop:ie?"":ye.marginTop,top:ie?ye.absoluteTop:"",left:Z,right:we}},JQ(le)?Qe(tJ,Object.assign({seg:le,isDragging:E,isSelected:te===G,defaultDisplayEventEnd:ae},Yb(le,g))):Qe(eJ,Object.assign({seg:le,isDragging:E,isResizing:A,isDateSelecting:D,isSelected:te===G,defaultDisplayEventEnd:ae},Yb(le,g)))))}return F}renderFillSegs(i,u){let{isRtl:g}=this.context,{todayRange:C}=this.props,{framePositions:E}=this.state,A=[];if(E)for(let D of i){let L=g?{right:0,left:E.lefts[D.lastCol]-E.lefts[D.firstCol]}:{left:0,right:E.rights[D.firstCol]-E.rights[D.lastCol]};A.push(Qe("div",{key:sQ(D.eventRange),className:"fc-daygrid-bg-harness",style:L},u==="bg-event"?Qe(AQ,Object.assign({seg:D},Yb(D,C))):DQ(u)))}return Qe(tl,{},...A)}updateSizing(i){let{props:u,state:g,frameElRefs:C}=this;if(!u.forPrint&&u.clientWidth!==null){if(i){let L=u.cells.map(G=>C.currentMap[G.key]);if(L.length){let G=this.rootElRef.current,W=new rS(G,L,!0,!1);(!g.framePositions||!g.framePositions.similarTo(W))&&this.setState({framePositions:new rS(G,L,!0,!1)})}}const E=this.state.segHeights,A=this.querySegHeights(),D=u.dayMaxEvents===!0||u.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},E),A),maxContentHeight:D?this.computeMaxContentHeight():null})}}querySegHeights(){let i=this.segHarnessRefs.currentMap,u={};for(let g in i){let C=Math.round(i[g].getBoundingClientRect().height);u[g]=Math.max(u[g]||0,C)}return u}computeMaxContentHeight(){let i=this.props.cells[0].key,u=this.cellElRefs.currentMap[i],g=this.fgElRefs.currentMap[i];return u.getBoundingClientRect().bottom-g.getBoundingClientRect().top}getCellEls(){let i=this.cellElRefs.currentMap;return this.props.cells.map(u=>i[u.key])}}sJ.addStateEquality({segHeights:fp});function lce(c,i){if(!c.length)return[];let u=cce(i);return c.map(g=>({seg:g,isVisible:!0,isAbsolute:!0,absoluteTop:u[g.eventRange.instance.instanceId],marginTop:0}))}function cce(c){let i={};for(let u of c)for(let g of u)i[g.seg.eventRange.instance.instanceId]=g.absoluteTop;return i}class uce extends mp{constructor(){super(...arguments),this.splitBusinessHourSegs=Es(r7),this.splitBgEventSegs=Es(r7),this.splitFgEventSegs=Es(r7),this.splitDateSelectionSegs=Es(r7),this.splitEventDrag=Es(XQ),this.splitEventResize=Es(XQ),this.rowRefs=new P1}render(){let{props:i,context:u}=this,g=i.cells.length,C=this.splitBusinessHourSegs(i.businessHourSegs,g),E=this.splitBgEventSegs(i.bgEventSegs,g),A=this.splitFgEventSegs(i.fgEventSegs,g),D=this.splitDateSelectionSegs(i.dateSelectionSegs,g),L=this.splitEventDrag(i.eventDrag,g),G=this.splitEventResize(i.eventResize,g),W=g>=7&&i.clientWidth?i.clientWidth/u.options.aspectRatio/6:null;return Qe(Q6,{unit:"day"},(ae,ne)=>Qe(tl,null,i.cells.map((F,ye)=>Qe(sJ,{ref:this.rowRefs.createRef(ye),key:F.length?F[0].date.toISOString():ye,showDayNumbers:g>1,showWeekNumbers:i.showWeekNumbers,todayRange:ne,dateProfile:i.dateProfile,cells:F,renderIntro:i.renderRowIntro,businessHourSegs:C[ye],eventSelection:i.eventSelection,bgEventSegs:E[ye].filter(dce),fgEventSegs:A[ye],dateSelectionSegs:D[ye],eventDrag:L[ye],eventResize:G[ye],dayMaxEvents:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,clientWidth:i.clientWidth,clientHeight:i.clientHeight,cellMinHeight:W,forPrint:i.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const i=this.rowRefs.currentMap[0].getCellEls()[0],u=i?i.closest(".fc-daygrid-body"):null;u&&(this.rootEl=u,this.context.registerInteractiveComponent(this,{el:u,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new rS(this.rootEl,this.rowRefs.collect().map(i=>i.getCellEls()[0]),!1,!0),this.colPositions=new rS(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(i,u){let{colPositions:g,rowPositions:C}=this,E=g.leftToIndex(i),A=C.topToIndex(u);if(A!=null&&E!=null){let D=this.props.cells[A][E];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(A,E),allDay:!0},D.extraDateSpan),dayEl:this.getCellEl(A,E),rect:{left:g.lefts[E],right:g.rights[E],top:C.tops[A],bottom:C.bottoms[A]},layer:0}}return null}getCellEl(i,u){return this.rowRefs.currentMap[i].getCellEls()[u]}getCellRange(i,u){let g=this.props.cells[i][u].date,C=Gu(g,1);return{start:g,end:C}}}function dce(c){return c.eventRange.def.allDay}class fce extends mp{constructor(){super(...arguments),this.elRef=Td(),this.needsScrollReset=!1}render(){let{props:i}=this,{dayMaxEventRows:u,dayMaxEvents:g,expandRows:C}=i,E=g===!0||u===!0;E&&!C&&(E=!1,u=null,g=null);let A=["fc-daygrid-body",E?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",C?"":"fc-daygrid-body-natural"];return Qe("div",{ref:this.elRef,className:A.join(" "),style:{width:i.clientWidth,minWidth:i.tableMinWidth}},Qe("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:i.clientWidth,minWidth:i.tableMinWidth,height:C?i.clientHeight:""}},i.colGroupNode,Qe("tbody",{role:"presentation"},Qe(uce,{dateProfile:i.dateProfile,cells:i.cells,renderRowIntro:i.renderRowIntro,showWeekNumbers:i.showWeekNumbers,clientWidth:i.clientWidth,clientHeight:i.clientHeight,businessHourSegs:i.businessHourSegs,bgEventSegs:i.bgEventSegs,fgEventSegs:i.fgEventSegs,dateSelectionSegs:i.dateSelectionSegs,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,dayMaxEvents:g,dayMaxEventRows:u,forPrint:i.forPrint,isHitComboAllowed:i.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(i){i.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const i=mce(this.elRef.current,this.props.dateProfile);if(i){const u=i.closest(".fc-daygrid-body"),g=u.closest(".fc-scroller"),C=i.getBoundingClientRect().top-u.getBoundingClientRect().top;g.scrollTop=C?C+1:0}this.needsScrollReset=!1}}}function mce(c,i){let u;return i.currentRangeUnit.match(/year|month/)&&(u=c.querySelector(`[data-date="${nre(i.currentDate)}-01"]`)),u||(u=c.querySelector(`[data-date="${V$(i.currentDate)}"]`)),u}class hce extends wQ{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(i,u){return u.sliceRange(i)}}class rJ extends mp{constructor(){super(...arguments),this.slicer=new hce,this.tableRef=Td()}render(){let{props:i,context:u}=this;return Qe(fce,Object.assign({ref:this.tableRef},this.slicer.sliceProps(i,i.dateProfile,i.nextDayThreshold,u,i.dayTableModel),{dateProfile:i.dateProfile,cells:i.dayTableModel.cells,colGroupNode:i.colGroupNode,tableMinWidth:i.tableMinWidth,renderRowIntro:i.renderRowIntro,dayMaxEvents:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,showWeekNumbers:i.showWeekNumbers,expandRows:i.expandRows,headerAlignElRef:i.headerAlignElRef,clientWidth:i.clientWidth,clientHeight:i.clientHeight,forPrint:i.forPrint}))}}class gce extends Kle{constructor(){super(...arguments),this.buildDayTableModel=Es(pce),this.headerRef=Td(),this.tableRef=Td()}render(){let{options:i,dateProfileGenerator:u}=this.context,{props:g}=this,C=this.buildDayTableModel(g.dateProfile,u),E=i.dayHeaders&&Qe(yQ,{ref:this.headerRef,dateProfile:g.dateProfile,dates:C.headerDates,datesRepDistinctDays:C.rowCnt===1}),A=D=>Qe(rJ,{ref:this.tableRef,dateProfile:g.dateProfile,dayTableModel:C,businessHours:g.businessHours,dateSelection:g.dateSelection,eventStore:g.eventStore,eventUiBases:g.eventUiBases,eventSelection:g.eventSelection,eventDrag:g.eventDrag,eventResize:g.eventResize,nextDayThreshold:i.nextDayThreshold,colGroupNode:D.tableColGroupNode,tableMinWidth:D.tableMinWidth,dayMaxEvents:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,showWeekNumbers:i.weekNumbers,expandRows:!g.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:D.clientWidth,clientHeight:D.clientHeight,forPrint:g.forPrint});return i.dayMinWidth?this.renderHScrollLayout(E,A,C.colCnt,i.dayMinWidth):this.renderSimpleLayout(E,A)}}function pce(c,i){let u=new vQ(c.renderRange,i);return new CQ(u,/year|month|week/.test(c.currentRangeUnit))}class bce extends FX{buildRenderRange(i,u,g){let C=super.buildRenderRange(i,u,g),{props:E}=this;return yce({currentRange:C,snapToWeek:/^(year|month)$/.test(u),fixedWeekCount:E.fixedWeekCount,dateEnv:E.dateEnv})}}function yce(c){let{dateEnv:i,currentRange:u}=c,{start:g,end:C}=u,E;if(c.snapToWeek&&(g=i.startOfWeek(g),E=i.startOfWeek(C),E.valueOf()!==C.valueOf()&&(C=bX(E,1))),c.fixedWeekCount){let A=i.startOfWeek(i.startOfMonth(Gu(u.end,-1))),D=Math.ceil(jse(A,C));C=bX(C,6-D)}return{start:g,end:C}}var vce=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';N$(vce);var aJ=$1({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:gce,dateProfileGeneratorClass:bce},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}}),Cce='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';N$(Cce);class wce extends Lae{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(i){return i.allDay?["allDay"]:["timed"]}getKeysForEventDef(i){return i.allDay?pae(i)?["timed","allDay"]:["allDay"]:["timed"]}}const Sce=_l({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function iJ(c){let i=["fc-timegrid-slot","fc-timegrid-slot-label",c.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Qe(B1.Consumer,null,u=>{if(!c.isLabeled)return Qe("td",{className:i.join(" "),"data-time":c.isoTimeStr});let{dateEnv:g,options:C,viewApi:E}=u,A=C.slotLabelFormat==null?Sce:Array.isArray(C.slotLabelFormat)?_l(C.slotLabelFormat[0]):_l(C.slotLabelFormat),D={level:0,time:c.time,date:g.toDate(c.date),view:E,text:g.format(c.date,A)};return Qe(gm,{elTag:"td",elClasses:i,elAttrs:{"data-time":c.isoTimeStr},renderProps:D,generatorName:"slotLabelContent",customGenerator:C.slotLabelContent,defaultGenerator:_ce,classNameGenerator:C.slotLabelClassNames,didMount:C.slotLabelDidMount,willUnmount:C.slotLabelWillUnmount},L=>Qe("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Qe(L,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function _ce(c){return c.text}class Ece extends Ba{render(){return this.props.slatMetas.map(i=>Qe("tr",{key:i.key},Qe(iJ,Object.assign({},i))))}}const xce=_l({week:"short"}),kce=5;class Tce extends mp{constructor(){super(...arguments),this.allDaySplitter=new wce,this.headerElRef=Td(),this.rootElRef=Td(),this.scrollerElRef=Td(),this.state={slatCoords:null},this.handleScrollTopRequest=i=>{let u=this.scrollerElRef.current;u&&(u.scrollTop=i)},this.renderHeadAxis=(i,u="")=>{let{options:g}=this.context,{dateProfile:C}=this.props,E=C.renderRange,D=b2(E.start,E.end)===1?e7(this.context,E.start,"week"):{};return g.weekNumbers&&i==="day"?Qe(NQ,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:E.start,defaultFormat:xce},L=>Qe("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:u}},Qe(L,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:D}))):Qe("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},Qe("div",{className:"fc-timegrid-axis-frame",style:{height:u}}))},this.renderTableRowAxis=i=>{let{options:u,viewApi:g}=this.context,C={text:u.allDayText,view:g};return Qe(gm,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:C,generatorName:"allDayContent",customGenerator:u.allDayContent,defaultGenerator:Ace,classNameGenerator:u.allDayClassNames,didMount:u.allDayDidMount,willUnmount:u.allDayWillUnmount},E=>Qe("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",i==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:i}},Qe(E,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=i=>{this.setState({slatCoords:i})}}renderSimpleLayout(i,u,g){let{context:C,props:E}=this,A=[],D=s7(C.options);return i&&A.push({type:"header",key:"header",isSticky:D,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:i}}),u&&(A.push({type:"body",key:"all-day",chunk:{content:u}}),A.push({type:"body",key:"all-day-divider",outerContent:Qe("tr",{role:"presentation",className:"fc-scrollgrid-section"},Qe("td",{className:"fc-timegrid-divider "+C.theme.getClass("tableCellShaded")}))})),A.push({type:"body",key:"body",liquid:!0,expandRows:!!C.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:g}}),Qe(Z8,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:C.viewSpec},Qe(wF,{liquid:!E.isHeightAuto&&!E.forPrint,collapsibleWidth:E.forPrint,cols:[{width:"shrink"}],sections:A}))}renderHScrollLayout(i,u,g,C,E,A,D){let L=this.context.pluginHooks.scrollGridImpl;if(!L)throw new Error("No ScrollGrid implementation");let{context:G,props:W}=this,ae=!W.forPrint&&s7(G.options),ne=!W.forPrint&&kQ(G.options),F=[];i&&F.push({type:"header",key:"header",isSticky:ae,syncRowHeights:!0,chunks:[{key:"axis",rowContent:le=>Qe("tr",{role:"presentation"},this.renderHeadAxis("day",le.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:i}]}),u&&(F.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:le=>Qe("tr",{role:"presentation"},this.renderTableRowAxis(le.rowSyncHeights[0]))},{key:"cols",content:u}]}),F.push({key:"all-day-divider",type:"body",outerContent:Qe("tr",{role:"presentation",className:"fc-scrollgrid-section"},Qe("td",{colSpan:2,className:"fc-timegrid-divider "+G.theme.getClass("tableCellShaded")}))}));let ye=G.options.nowIndicator;return F.push({type:"body",key:"body",liquid:!0,expandRows:!!G.options.expandRows,chunks:[{key:"axis",content:le=>Qe("div",{className:"fc-timegrid-axis-chunk"},Qe("table",{"aria-hidden":!0,style:{height:le.expandRows?le.clientHeight:""}},le.tableColGroupNode,Qe("tbody",null,Qe(Ece,{slatMetas:A}))),Qe("div",{className:"fc-timegrid-now-indicator-container"},Qe(Q6,{unit:ye?"minute":"day"},te=>{let Se=ye&&D&&D.safeComputeTop(te);return typeof Se=="number"?Qe(_F,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:Se},isAxis:!0,date:te}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:g}]}),ne&&F.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:CF},{key:"cols",content:CF}]}),Qe(Z8,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:G.viewSpec},Qe(L,{liquid:!W.isHeightAuto&&!W.forPrint,forPrint:W.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:C,minWidth:E}]}],sections:F}))}getAllDayMaxEventProps(){let{dayMaxEvents:i,dayMaxEventRows:u}=this.context.options;return(i===!0||u===!0)&&(i=void 0,u=kce),{dayMaxEvents:i,dayMaxEventRows:u}}}function Ace(c){return c.text}class Dce{constructor(i,u,g){this.positions=i,this.dateProfile=u,this.slotDuration=g}safeComputeTop(i){let{dateProfile:u}=this;if(I1(u.currentRange,i)){let g=Ii(i),C=i.valueOf()-g.valueOf();if(C>=tg(u.slotMinTime)&&C<tg(u.slotMaxTime))return this.computeTimeTop(Zr(C))}return null}computeDateTop(i,u){return u||(u=Ii(i)),this.computeTimeTop(Zr(i.valueOf()-u.valueOf()))}computeTimeTop(i){let{positions:u,dateProfile:g}=this,C=u.els.length,E=(i.milliseconds-tg(g.slotMinTime))/tg(this.slotDuration),A,D;return E=Math.max(0,E),E=Math.min(C,E),A=Math.floor(E),A=Math.min(A,C-1),D=E-A,u.tops[A]+u.getHeight(A)*D}}class Nce extends Ba{render(){let{props:i,context:u}=this,{options:g}=u,{slatElRefs:C}=i;return Qe("tbody",null,i.slatMetas.map((E,A)=>{let D={time:E.time,date:u.dateEnv.toDate(E.date),view:u.viewApi};return Qe("tr",{key:E.key,ref:C.createRef(E.key)},i.axis&&Qe(iJ,Object.assign({},E)),Qe(gm,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!E.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":E.isoTimeStr},renderProps:D,generatorName:"slotLaneContent",customGenerator:g.slotLaneContent,classNameGenerator:g.slotLaneClassNames,didMount:g.slotLaneDidMount,willUnmount:g.slotLaneWillUnmount}))}))}}class Oce extends Ba{constructor(){super(...arguments),this.rootElRef=Td(),this.slatElRefs=new P1}render(){let{props:i,context:u}=this;return Qe("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},Qe("table",{"aria-hidden":!0,className:u.theme.getClass("table"),style:{minWidth:i.tableMinWidth,width:i.clientWidth,height:i.minHeight}},i.tableColGroupNode,Qe(Nce,{slatElRefs:this.slatElRefs,axis:i.axis,slatMetas:i.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:i,props:u}=this;u.onCoords&&u.clientWidth!==null&&this.rootElRef.current.offsetHeight&&u.onCoords(new Dce(new rS(this.rootElRef.current,Rce(this.slatElRefs.currentMap,u.slatMetas),!1,!0),this.props.dateProfile,i.options.slotDuration))}}function Rce(c,i){return i.map(u=>c[u.key])}function J6(c,i){let u=[],g;for(g=0;g<i;g+=1)u.push([]);if(c)for(g=0;g<c.length;g+=1)u[c[g].col].push(c[g]);return u}function lJ(c,i){let u=[];if(c){for(let g=0;g<i;g+=1)u[g]={affectedInstances:c.affectedInstances,isEvent:c.isEvent,segs:[]};for(let g of c.segs)u[g.col].segs.push(g)}else for(let g=0;g<i;g+=1)u[g]=null;return u}class Bce extends Ba{render(){let{props:i}=this;return Qe(OQ,{elClasses:["fc-timegrid-more-link"],elStyle:{top:i.top,bottom:i.bottom},allDayDate:null,moreCnt:i.hiddenSegs.length,allSegs:i.hiddenSegs,hiddenSegs:i.hiddenSegs,extraDateSpan:i.extraDateSpan,dateProfile:i.dateProfile,todayRange:i.todayRange,popoverContent:()=>fJ(i.hiddenSegs,i),defaultGenerator:Mce,forceTimed:!0},u=>Qe(u,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Mce(c){return c.shortText}function Ice(c,i,u){let g=new hQ;i!=null&&(g.strictOrder=i),u!=null&&(g.maxStackCnt=u);let C=g.addSegs(c),E=Qae(C),A=Pce(g);return A=Vce(A,1),{segRects:Hce(A),hiddenGroups:E}}function Pce(c){const{entriesByLevel:i}=c,u=NF((g,C)=>g+":"+C,(g,C)=>{let E=Lce(c,g,C),A=cJ(E,u),D=i[g][C];return[Object.assign(Object.assign({},D),{nextLevelNodes:A[0]}),D.thickness+A[1]]});return cJ(i.length?{level:0,lateralStart:0,lateralEnd:i[0].length}:null,u)[0]}function cJ(c,i){if(!c)return[[],0];let{level:u,lateralStart:g,lateralEnd:C}=c,E=g,A=[];for(;E<C;)A.push(i(u,E)),E+=1;return A.sort($ce),[A.map(Fce),A[0][1]]}function $ce(c,i){return i[1]-c[1]}function Fce(c){return c[0]}function Lce(c,i,u){let{levelCoords:g,entriesByLevel:C}=c,E=C[i][u],A=g[i]+E.thickness,D=g.length,L=i;for(;L<D&&g[L]<A;L+=1);for(;L<D;L+=1){let G=C[L],W,ae=bF(G,E.span.start,hF),ne=ae[0]+ae[1],F=ne;for(;(W=G[F])&&W.span.start<E.span.end;)F+=1;if(ne<F)return{level:L,lateralStart:ne,lateralEnd:F}}return null}function Vce(c,i){const u=NF((g,C,E)=>x2(g),(g,C,E)=>{let{nextLevelNodes:A,thickness:D}=g,L=D+E,G=D/L,W,ae=[];if(!A.length)W=i;else for(let F of A)if(W===void 0){let ye=u(F,C,L);W=ye[0],ae.push(ye[1])}else{let ye=u(F,W,0);ae.push(ye[1])}let ne=(W-C)*G;return[W-ne,Object.assign(Object.assign({},g),{thickness:ne,nextLevelNodes:ae})]});return c.map(g=>u(g,0,0)[1])}function Hce(c){let i=[];const u=NF((C,E,A)=>x2(C),(C,E,A)=>{let D=Object.assign(Object.assign({},C),{levelCoord:E,stackDepth:A,stackForward:0});return i.push(D),D.stackForward=g(C.nextLevelNodes,E+C.thickness,A+1)+1});function g(C,E,A){let D=0;for(let L of C)D=Math.max(u(L,E,A),D);return D}return g(c,0,0),i}function NF(c,i){const u={};return(...g)=>{let C=c(...g);return C in u?u[C]:u[C]=i(...g)}}function uJ(c,i,u=null,g=0){let C=[];if(u)for(let E=0;E<c.length;E+=1){let A=c[E],D=u.computeDateTop(A.start,i),L=Math.max(D+(g||0),u.computeDateTop(A.end,i));C.push({start:Math.round(D),end:Math.round(L)})}return C}function zce(c,i,u,g){let C=[],E=[];for(let G=0;G<c.length;G+=1){let W=i[G];W?C.push({index:G,thickness:1,span:W}):E.push(c[G])}let{segRects:A,hiddenGroups:D}=Ice(C,u,g),L=[];for(let G of A)L.push({seg:c[G.index],rect:G});for(let G of E)L.push({seg:G,rect:null});return{segPlacements:L,hiddenGroups:D}}const Uce=_l({hour:"numeric",minute:"2-digit",meridiem:!1});class dJ extends Ba{render(){return Qe(TQ,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Uce}))}}class Wce extends Ba{constructor(){super(...arguments),this.sortEventSegs=Es(nQ)}render(){let{props:i,context:u}=this,{options:g}=u,C=g.selectMirror,E=i.eventDrag&&i.eventDrag.segs||i.eventResize&&i.eventResize.segs||C&&i.dateSelectionSegs||[],A=i.eventDrag&&i.eventDrag.affectedInstances||i.eventResize&&i.eventResize.affectedInstances||{},D=this.sortEventSegs(i.fgEventSegs,g.eventOrder);return Qe(EF,{elTag:"td",elRef:i.elRef,elClasses:["fc-timegrid-col",...i.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},i.extraDataAttrs),date:i.date,dateProfile:i.dateProfile,todayRange:i.todayRange,extraRenderProps:i.extraRenderProps},L=>Qe("div",{className:"fc-timegrid-col-frame"},Qe("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(i.businessHourSegs,"non-business"),this.renderFillSegs(i.bgEventSegs,"bg-event"),this.renderFillSegs(i.dateSelectionSegs,"highlight")),Qe("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(D,A,!1,!1,!1)),Qe("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(E,{},!!i.eventDrag,!!i.eventResize,!!C,"mirror")),Qe("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(i.nowIndicatorSegs)),xF(g)&&Qe(L,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(i,u,g,C,E,A){let{props:D}=this;return D.forPrint?fJ(i,D):this.renderPositionedFgSegs(i,u,g,C,E,A)}renderPositionedFgSegs(i,u,g,C,E,A){let{eventMaxStack:D,eventShortHeight:L,eventOrderStrict:G,eventMinHeight:W}=this.context.options,{date:ae,slatCoords:ne,eventSelection:F,todayRange:ye,nowDate:le}=this.props,te=g||C||E,Se=uJ(i,ae,ne,W),{segPlacements:ie,hiddenGroups:Z}=zce(i,Se,G,D);return Qe(tl,null,this.renderHiddenGroups(Z,i),ie.map(we=>{let{seg:Bt,rect:We}=we,Q=Bt.eventRange.instance.instanceId,Be=te||!!(!u[Q]&&We),Ae=OF(We&&We.span),Ke=!te&&We?this.computeSegHStyle(We):{left:0,right:0},$e=!!We&&We.stackForward>0,be=!!We&&We.span.end-We.span.start<L;return Qe("div",{className:"fc-timegrid-event-harness"+($e?" fc-timegrid-event-harness-inset":""),key:A||Q,style:Object.assign(Object.assign({visibility:Be?"":"hidden"},Ae),Ke)},Qe(dJ,Object.assign({seg:Bt,isDragging:g,isResizing:C,isDateSelecting:E,isSelected:Q===F,isShort:be},Yb(Bt,ye,le))))}))}renderHiddenGroups(i,u){let{extraDateSpan:g,dateProfile:C,todayRange:E,nowDate:A,eventSelection:D,eventDrag:L,eventResize:G}=this.props;return Qe(tl,null,i.map(W=>{let ae=OF(W.span),ne=jce(W.entries,u);return Qe(Bce,{key:wX(BQ(ne)),hiddenSegs:ne,top:ae.top,bottom:ae.bottom,extraDateSpan:g,dateProfile:C,todayRange:E,nowDate:A,eventSelection:D,eventDrag:L,eventResize:G})}))}renderFillSegs(i,u){let{props:g,context:C}=this,A=uJ(i,g.date,g.slatCoords,C.options.eventMinHeight).map((D,L)=>{let G=i[L];return Qe("div",{key:sQ(G.eventRange),className:"fc-timegrid-bg-harness",style:OF(D)},u==="bg-event"?Qe(AQ,Object.assign({seg:G},Yb(G,g.todayRange,g.nowDate))):DQ(u))});return Qe(tl,null,A)}renderNowIndicator(i){let{slatCoords:u,date:g}=this.props;return u?i.map((C,E)=>Qe(_F,{key:E,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:u.computeDateTop(C.start,g)},isAxis:!1,date:g})):null}computeSegHStyle(i){let{isRtl:u,options:g}=this.context,C=g.slotEventOverlap,E=i.levelCoord,A=i.levelCoord+i.thickness,D,L;C&&(A=Math.min(1,E+(A-E)*2)),u?(D=1-A,L=E):(D=E,L=1-A);let G={zIndex:i.stackDepth+1,left:D*100+"%",right:L*100+"%"};return C&&!i.stackForward&&(G[u?"marginLeft":"marginRight"]=10*2),G}}function fJ(c,{todayRange:i,nowDate:u,eventSelection:g,eventDrag:C,eventResize:E}){let A=(C?C.affectedInstances:null)||(E?E.affectedInstances:null)||{};return Qe(tl,null,c.map(D=>{let L=D.eventRange.instance.instanceId;return Qe("div",{key:L,style:{visibility:A[L]?"hidden":""}},Qe(dJ,Object.assign({seg:D,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:L===g,isShort:!1},Yb(D,i,u))))}))}function OF(c){return c?{top:c.start,bottom:-c.end}:{top:"",bottom:""}}function jce(c,i){return c.map(u=>i[u.index])}class Zce extends Ba{constructor(){super(...arguments),this.splitFgEventSegs=Es(J6),this.splitBgEventSegs=Es(J6),this.splitBusinessHourSegs=Es(J6),this.splitNowIndicatorSegs=Es(J6),this.splitDateSelectionSegs=Es(J6),this.splitEventDrag=Es(lJ),this.splitEventResize=Es(lJ),this.rootElRef=Td(),this.cellElRefs=new P1}render(){let{props:i,context:u}=this,g=u.options.nowIndicator&&i.slatCoords&&i.slatCoords.safeComputeTop(i.nowDate),C=i.cells.length,E=this.splitFgEventSegs(i.fgEventSegs,C),A=this.splitBgEventSegs(i.bgEventSegs,C),D=this.splitBusinessHourSegs(i.businessHourSegs,C),L=this.splitNowIndicatorSegs(i.nowIndicatorSegs,C),G=this.splitDateSelectionSegs(i.dateSelectionSegs,C),W=this.splitEventDrag(i.eventDrag,C),ae=this.splitEventResize(i.eventResize,C);return Qe("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Qe("table",{role:"presentation",style:{minWidth:i.tableMinWidth,width:i.clientWidth}},i.tableColGroupNode,Qe("tbody",{role:"presentation"},Qe("tr",{role:"row"},i.axis&&Qe("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},Qe("div",{className:"fc-timegrid-col-frame"},Qe("div",{className:"fc-timegrid-now-indicator-container"},typeof g=="number"&&Qe(_F,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:g},isAxis:!0,date:i.nowDate})))),i.cells.map((ne,F)=>Qe(Wce,{key:ne.key,elRef:this.cellElRefs.createRef(ne.key),dateProfile:i.dateProfile,date:ne.date,nowDate:i.nowDate,todayRange:i.todayRange,extraRenderProps:ne.extraRenderProps,extraDataAttrs:ne.extraDataAttrs,extraClassNames:ne.extraClassNames,extraDateSpan:ne.extraDateSpan,fgEventSegs:E[F],bgEventSegs:A[F],businessHourSegs:D[F],nowIndicatorSegs:L[F],dateSelectionSegs:G[F],eventDrag:W[F],eventResize:ae[F],slatCoords:i.slatCoords,eventSelection:i.eventSelection,forPrint:i.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:i}=this;i.onColCoords&&i.clientWidth!==null&&i.onColCoords(new rS(this.rootElRef.current,Gce(this.cellElRefs.currentMap,i.cells),!0,!1))}}function Gce(c,i){return i.map(u=>c[u.key])}class qce extends mp{constructor(){super(...arguments),this.processSlotOptions=Es(Yce),this.state={slatCoords:null},this.handleRootEl=i=>{i?this.context.registerInteractiveComponent(this,{el:i,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=i=>{let{onScrollTopRequest:u}=this.props,{slatCoords:g}=this.state;if(u&&g){if(i.time){let C=g.computeTimeTop(i.time);C=Math.ceil(C),C&&(C+=1),u(C)}return!0}return!1},this.handleColCoords=i=>{this.colCoords=i},this.handleSlatCoords=i=>{this.setState({slatCoords:i}),this.props.onSlatCoords&&this.props.onSlatCoords(i)}}render(){let{props:i,state:u}=this;return Qe("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:i.clientWidth,minWidth:i.tableMinWidth}},Qe(Oce,{axis:i.axis,dateProfile:i.dateProfile,slatMetas:i.slatMetas,clientWidth:i.clientWidth,minHeight:i.expandRows?i.clientHeight:"",tableMinWidth:i.tableMinWidth,tableColGroupNode:i.axis?i.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Qe(Zce,{cells:i.cells,axis:i.axis,dateProfile:i.dateProfile,businessHourSegs:i.businessHourSegs,bgEventSegs:i.bgEventSegs,fgEventSegs:i.fgEventSegs,dateSelectionSegs:i.dateSelectionSegs,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,todayRange:i.todayRange,nowDate:i.nowDate,nowIndicatorSegs:i.nowIndicatorSegs,clientWidth:i.clientWidth,tableMinWidth:i.tableMinWidth,tableColGroupNode:i.tableColGroupNode,slatCoords:u.slatCoords,onColCoords:this.handleColCoords,forPrint:i.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(i){this.scrollResponder.update(i.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(i,u){let{dateEnv:g,options:C}=this.context,{colCoords:E}=this,{dateProfile:A}=this.props,{slatCoords:D}=this.state,{snapDuration:L,snapsPerSlot:G}=this.processSlotOptions(this.props.slotDuration,C.snapDuration),W=E.leftToIndex(i),ae=D.positions.topToIndex(u);if(W!=null&&ae!=null){let ne=this.props.cells[W],F=D.positions.tops[ae],ye=D.positions.getHeight(ae),le=(u-F)/ye,te=Math.floor(le*G),Se=ae*G+te,ie=this.props.cells[W].date,Z=P$(A.slotMinTime,Hse(L,Se)),we=g.add(ie,Z),Bt=g.add(we,L);return{dateProfile:A,dateSpan:Object.assign({range:{start:we,end:Bt},allDay:!1},ne.extraDateSpan),dayEl:E.els[W],rect:{left:E.lefts[W],right:E.rights[W],top:F,bottom:F+ye},layer:0}}return null}}function Yce(c,i){let u=i||c,g=$$(c,u);return g===null&&(u=c,g=1),{snapDuration:u,snapsPerSlot:g}}class Kce extends wQ{sliceRange(i,u){let g=[];for(let C=0;C<u.length;C+=1){let E=S2(i,u[C]);E&&g.push({start:E.start,end:E.end,isStart:E.start.valueOf()===i.start.valueOf(),isEnd:E.end.valueOf()===i.end.valueOf(),col:C})}return g}}class Xce extends mp{constructor(){super(...arguments),this.buildDayRanges=Es(Qce),this.slicer=new Kce,this.timeColsRef=Td()}render(){let{props:i,context:u}=this,{dateProfile:g,dayTableModel:C}=i,{nowIndicator:E,nextDayThreshold:A}=u.options,D=this.buildDayRanges(C,g,u.dateEnv);return Qe(Q6,{unit:E?"minute":"day"},(L,G)=>Qe(qce,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(i,g,null,u,D),{forPrint:i.forPrint,axis:i.axis,dateProfile:g,slatMetas:i.slatMetas,slotDuration:i.slotDuration,cells:C.cells[0],tableColGroupNode:i.tableColGroupNode,tableMinWidth:i.tableMinWidth,clientWidth:i.clientWidth,clientHeight:i.clientHeight,expandRows:i.expandRows,nowDate:L,nowIndicatorSegs:E&&this.slicer.sliceNowDate(L,g,A,u,D),todayRange:G,onScrollTopRequest:i.onScrollTopRequest,onSlatCoords:i.onSlatCoords})))}}function Qce(c,i,u){let g=[];for(let C of c.headerDates)g.push({start:u.add(C,i.slotMinTime),end:u.add(C,i.slotMaxTime)});return g}const mJ=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Jce(c,i,u,g,C){let E=new Date(0),A=c,D=Zr(0),L=u||eue(g),G=[];for(;tg(A)<tg(i);){let W=C.add(E,A),ae=$$(D,L)!==null;G.push({date:W,time:A,key:W.toISOString(),isoTimeStr:ore(W),isLabeled:ae}),A=P$(A,g),D=P$(D,g)}return G}function eue(c){let i,u,g;for(i=mJ.length-1;i>=0;i-=1)if(u=Zr(mJ[i]),g=$$(u,c),g!==null&&g>1)return u;return c}class tue extends Tce{constructor(){super(...arguments),this.buildTimeColsModel=Es(nue),this.buildSlatMetas=Es(Jce)}render(){let{options:i,dateEnv:u,dateProfileGenerator:g}=this.context,{props:C}=this,{dateProfile:E}=C,A=this.buildTimeColsModel(E,g),D=this.allDaySplitter.splitProps(C),L=this.buildSlatMetas(E.slotMinTime,E.slotMaxTime,i.slotLabelInterval,i.slotDuration,u),{dayMinWidth:G}=i,W=!G,ae=G,ne=i.dayHeaders&&Qe(yQ,{dates:A.headerDates,dateProfile:E,datesRepDistinctDays:!0,renderIntro:W?this.renderHeadAxis:null}),F=i.allDaySlot!==!1&&(le=>Qe(rJ,Object.assign({},D.allDay,{dateProfile:E,dayTableModel:A,nextDayThreshold:i.nextDayThreshold,tableMinWidth:le.tableMinWidth,colGroupNode:le.tableColGroupNode,renderRowIntro:W?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:le.clientWidth,clientHeight:le.clientHeight,forPrint:C.forPrint},this.getAllDayMaxEventProps()))),ye=le=>Qe(Xce,Object.assign({},D.timed,{dayTableModel:A,dateProfile:E,axis:W,slotDuration:i.slotDuration,slatMetas:L,forPrint:C.forPrint,tableColGroupNode:le.tableColGroupNode,tableMinWidth:le.tableMinWidth,clientWidth:le.clientWidth,clientHeight:le.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:le.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return ae?this.renderHScrollLayout(ne,F,ye,A.colCnt,G,L,this.state.slatCoords):this.renderSimpleLayout(ne,F,ye)}}function nue(c,i){let u=new vQ(c.renderRange,i);return new CQ(u,!1)}var hJ=$1({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:tue,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});yF.touchMouseIgnoreWait=500;let RF=0,i7=0,BF=!1;class gJ{constructor(i){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=u=>{if(!this.shouldIgnoreMouse()&&oue(u)&&this.tryStart(u)){let g=this.createEventFromMouse(u,!0);this.emitter.trigger("pointerdown",g),this.initScrollWatch(g),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=u=>{let g=this.createEventFromMouse(u);this.recordCoords(g),this.emitter.trigger("pointermove",g)},this.handleMouseUp=u=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(u)),this.cleanup()},this.handleTouchStart=u=>{if(this.tryStart(u)){this.isTouchDragging=!0;let g=this.createEventFromTouch(u,!0);this.emitter.trigger("pointerdown",g),this.initScrollWatch(g);let C=u.target;this.shouldIgnoreMove||C.addEventListener("touchmove",this.handleTouchMove),C.addEventListener("touchend",this.handleTouchEnd),C.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=u=>{let g=this.createEventFromTouch(u);this.recordCoords(g),this.emitter.trigger("pointermove",g)},this.handleTouchEnd=u=>{if(this.isDragging){let g=u.target;g.removeEventListener("touchmove",this.handleTouchMove),g.removeEventListener("touchend",this.handleTouchEnd),g.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(u)),this.cleanup(),this.isTouchDragging=!1,sue()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=u=>{if(!this.shouldIgnoreMove){let g=window.pageXOffset-this.prevScrollX+this.prevPageX,C=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:u,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:g,pageY:C,deltaX:g-this.origPageX,deltaY:C-this.origPageY})}},this.containerEl=i,this.emitter=new Q8,i.addEventListener("mousedown",this.handleMouseDown),i.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),rue()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),aue()}tryStart(i){let u=this.querySubjectEl(i),g=i.target;return u&&(!this.handleSelector||Zu(g,this.handleSelector))?(this.subjectEl=u,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){BF=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(i){return this.selector?Zu(i.target,this.selector):this.containerEl}shouldIgnoreMouse(){return RF||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(BF=!0)}initScrollWatch(i){this.shouldWatchScroll&&(this.recordCoords(i),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(i){this.shouldWatchScroll&&(this.prevPageX=i.pageX,this.prevPageY=i.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(i,u){let g=0,C=0;return u?(this.origPageX=i.pageX,this.origPageY=i.pageY):(g=i.pageX-this.origPageX,C=i.pageY-this.origPageY),{origEvent:i,isTouch:!1,subjectEl:this.subjectEl,pageX:i.pageX,pageY:i.pageY,deltaX:g,deltaY:C}}createEventFromTouch(i,u){let g=i.touches,C,E,A=0,D=0;return g&&g.length?(C=g[0].pageX,E=g[0].pageY):(C=i.pageX,E=i.pageY),u?(this.origPageX=C,this.origPageY=E):(A=C-this.origPageX,D=E-this.origPageY),{origEvent:i,isTouch:!0,subjectEl:this.subjectEl,pageX:C,pageY:E,deltaX:A,deltaY:D}}}function oue(c){return c.button===0&&!c.ctrlKey}function sue(){RF+=1,setTimeout(()=>{RF-=1},yF.touchMouseIgnoreWait)}function rue(){i7+=1,i7===1&&window.addEventListener("touchmove",pJ,{passive:!1})}function aue(){i7-=1,i7||window.removeEventListener("touchmove",pJ,{passive:!1})}function pJ(c){BF&&c.preventDefault()}class iue{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(i,u,g){this.sourceEl=i,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=u-window.pageXOffset,this.origScreenY=g-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(i,u){this.deltaX=i-window.pageXOffset-this.origScreenX,this.deltaY=u-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(i){i?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=i,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=i)}stop(i,u){let g=()=>{this.cleanup(),u()};i&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(g,this.revertDuration):setTimeout(g,0)}doRevertAnimation(i,u){let g=this.mirrorEl,C=this.sourceEl.getBoundingClientRect();g.style.transition="top "+u+"ms,left "+u+"ms",Z6(g,{left:C.left,top:C.top}),kse(g,()=>{g.style.transition="",i()})}cleanup(){this.mirrorEl&&(B$(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&Z6(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let i=this.sourceElRect,u=this.mirrorEl;return u||(u=this.mirrorEl=this.sourceEl.cloneNode(!0),u.style.userSelect="none",u.style.webkitUserSelect="none",u.classList.add("fc-event-dragging"),Z6(u,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:i.right-i.left,height:i.bottom-i.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(u)),u}}class bJ extends mF{constructor(i,u){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=i,this.doesListening=u,this.scrollTop=this.origScrollTop=i.getScrollTop(),this.scrollLeft=this.origScrollLeft=i.getScrollLeft(),this.scrollWidth=i.getScrollWidth(),this.scrollHeight=i.getScrollHeight(),this.clientWidth=i.getClientWidth(),this.clientHeight=i.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(i){this.scrollController.setScrollTop(i),this.doesListening||(this.scrollTop=Math.max(Math.min(i,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(i){this.scrollController.setScrollLeft(i),this.doesListening||(this.scrollLeft=Math.max(Math.min(i,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class yJ extends bJ{constructor(i,u){super(new Kae(i),u)}getEventTarget(){return this.scrollController.el}computeClientRect(){return qae(this.scrollController.el)}}class lue extends bJ{constructor(i){super(new Xae,i)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const vJ=typeof performance=="function"?performance.now:Date.now;class cue{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let i=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(i){let u=vJ();this.handleSide(i,(u-this.msSinceRequest)/1e3),this.requestAnimation(u)}else this.isAnimating=!1}}}start(i,u,g){this.isEnabled&&(this.scrollCaches=this.buildCaches(g),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(i,u))}handleMove(i,u){if(this.isEnabled){let g=i-window.pageXOffset,C=u-window.pageYOffset,E=this.pointerScreenY===null?0:C-this.pointerScreenY,A=this.pointerScreenX===null?0:g-this.pointerScreenX;E<0?this.everMovedUp=!0:E>0&&(this.everMovedDown=!0),A<0?this.everMovedLeft=!0:A>0&&(this.everMovedRight=!0),this.pointerScreenX=g,this.pointerScreenY=C,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(vJ()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let i of this.scrollCaches)i.destroy();this.scrollCaches=null}}requestAnimation(i){this.msSinceRequest=i,requestAnimationFrame(this.animate)}handleSide(i,u){let{scrollCache:g}=i,{edgeThreshold:C}=this,E=C-i.distance,A=E*E/(C*C)*this.maxVelocity*u,D=1;switch(i.name){case"left":D=-1;case"right":g.setScrollLeft(g.getScrollLeft()+A*D);break;case"top":D=-1;case"bottom":g.setScrollTop(g.getScrollTop()+A*D);break}}computeBestEdge(i,u){let{edgeThreshold:g}=this,C=null,E=this.scrollCaches||[];for(let A of E){let D=A.clientRect,L=i-D.left,G=D.right-i,W=u-D.top,ae=D.bottom-u;L>=0&&G>=0&&W>=0&&ae>=0&&(W<=g&&this.everMovedUp&&A.canScrollUp()&&(!C||C.distance>W)&&(C={scrollCache:A,name:"top",distance:W}),ae<=g&&this.everMovedDown&&A.canScrollDown()&&(!C||C.distance>ae)&&(C={scrollCache:A,name:"bottom",distance:ae}),L<=g&&this.everMovedLeft&&A.canScrollLeft()&&(!C||C.distance>L)&&(C={scrollCache:A,name:"left",distance:L}),G<=g&&this.everMovedRight&&A.canScrollRight()&&(!C||C.distance>G)&&(C={scrollCache:A,name:"right",distance:G}))}return C}buildCaches(i){return this.queryScrollEls(i).map(u=>u===window?new lue(!1):new yJ(u,!1))}queryScrollEls(i){let u=[];for(let g of this.scrollQuery)typeof g=="object"?u.push(g):u.push(...Array.prototype.slice.call(i.getRootNode().querySelectorAll(g)));return u}}class ek extends eie{constructor(i,u){super(i),this.containerEl=i,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=C=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Tse(document.body),Dse(document.body),C.isTouch||C.origEvent.preventDefault(),this.emitter.trigger("pointerdown",C),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(C.subjectEl,C.pageX,C.pageY),this.startDelay(C),this.minDistance||this.handleDistanceSurpassed(C)))},this.onPointerMove=C=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",C),!this.isDistanceSurpassed){let E=this.minDistance,A,{deltaX:D,deltaY:L}=C;A=D*D+L*L,A>=E*E&&this.handleDistanceSurpassed(C)}this.isDragging&&(C.origEvent.type!=="scroll"&&(this.mirror.handleMove(C.pageX,C.pageY),this.autoScroller.handleMove(C.pageX,C.pageY)),this.emitter.trigger("dragmove",C))}},this.onPointerUp=C=>{this.isInteracting&&(this.isInteracting=!1,Ase(document.body),Nse(document.body),this.emitter.trigger("pointerup",C),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(C)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let g=this.pointer=new gJ(i);g.emitter.on("pointerdown",this.onPointerDown),g.emitter.on("pointermove",this.onPointerMove),g.emitter.on("pointerup",this.onPointerUp),u&&(g.selector=u),this.mirror=new iue,this.autoScroller=new cue}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(i){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(i)},this.delay):this.handleDelayEnd(i)}handleDelayEnd(i){this.isDelayEnded=!0,this.tryStartDrag(i)}handleDistanceSurpassed(i){this.isDistanceSurpassed=!0,this.tryStartDrag(i)}tryStartDrag(i){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(i.pageX,i.pageY,this.containerEl),this.emitter.trigger("dragstart",i),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(i){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,i))}stopDrag(i){this.isDragging=!1,this.emitter.trigger("dragend",i)}setIgnoreMove(i){this.pointer.shouldIgnoreMove=i}setMirrorIsVisible(i){this.mirror.setIsVisible(i)}setMirrorNeedsRevert(i){this.mirrorNeedsRevert=i}setAutoScrollEnabled(i){this.autoScroller.isEnabled=i}}class uue{constructor(i){this.origRect=fF(i),this.scrollCaches=mQ(i).map(u=>new yJ(u,!0))}destroy(){for(let i of this.scrollCaches)i.destroy()}computeLeft(){let i=this.origRect.left;for(let u of this.scrollCaches)i+=u.origScrollLeft-u.getScrollLeft();return i}computeTop(){let i=this.origRect.top;for(let u of this.scrollCaches)i+=u.origScrollTop-u.getScrollTop();return i}isWithinClipping(i,u){let g={left:i,top:u};for(let C of this.scrollCaches)if(!due(C.getEventTarget())&&!Iae(g,C.clientRect))return!1;return!0}}function due(c){let i=c.tagName;return i==="HTML"||i==="BODY"}class l7{constructor(i,u){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=g=>{let{dragging:C}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(g),this.initialHit||!this.requireInitial?(C.setIgnoreMove(!1),this.emitter.trigger("pointerdown",g)):C.setIgnoreMove(!0)},this.handleDragStart=g=>{this.emitter.trigger("dragstart",g),this.handleMove(g,!0)},this.handleDragMove=g=>{this.emitter.trigger("dragmove",g),this.handleMove(g)},this.handlePointerUp=g=>{this.releaseHits(),this.emitter.trigger("pointerup",g)},this.handleDragEnd=g=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,g),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",g)},this.droppableStore=u,i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("dragmove",this.handleDragMove),i.emitter.on("pointerup",this.handlePointerUp),i.emitter.on("dragend",this.handleDragEnd),this.dragging=i,this.emitter=new Q8}processFirstCoord(i){let u={left:i.pageX,top:i.pageY},g=u,C=i.subjectEl,E;C instanceof HTMLElement&&(E=fF(C),g=Pae(g,E));let A=this.initialHit=this.queryHitForOffset(g.left,g.top);if(A){if(this.useSubjectCenter&&E){let D=uQ(E,A.rect);D&&(g=$ae(D))}this.coordAdjust=Fae(g,u)}else this.coordAdjust={left:0,top:0}}handleMove(i,u){let g=this.queryHitForOffset(i.pageX+this.coordAdjust.left,i.pageY+this.coordAdjust.top);(u||!c7(this.movingHit,g))&&(this.movingHit=g,this.emitter.trigger("hitupdate",g,!1,i))}prepareHits(){this.offsetTrackers=R1(this.droppableStore,i=>(i.component.prepareHits(),new uue(i.el)))}releaseHits(){let{offsetTrackers:i}=this;for(let u in i)i[u].destroy();this.offsetTrackers={}}queryHitForOffset(i,u){let{droppableStore:g,offsetTrackers:C}=this,E=null;for(let A in g){let D=g[A].component,L=C[A];if(L&&L.isWithinClipping(i,u)){let G=L.computeLeft(),W=L.computeTop(),ae=i-G,ne=u-W,{origRect:F}=L,ye=F.right-F.left,le=F.bottom-F.top;if(ae>=0&&ae<ye&&ne>=0&&ne<le){let te=D.queryHit(ae,ne,ye,le);te&&G8(te.dateProfile.activeRange,te.dateSpan.range)&&(!E||te.layer>E.layer)&&(te.componentId=A,te.context=D.context,te.rect.left+=G,te.rect.right+=G,te.rect.top+=W,te.rect.bottom+=W,E=te)}}}return E}}function c7(c,i){return!c&&!i?!0:!!c!=!!i?!1:xae(c.dateSpan,i.dateSpan)}function CJ(c,i){let u={};for(let g of i.pluginHooks.datePointTransforms)Object.assign(u,g(c,i));return Object.assign(u,fue(c,i.dateEnv)),u}function fue(c,i){return{date:i.toDate(c.range.start),dateStr:i.formatIso(c.range.start,{omitTime:c.allDay}),allDay:c.allDay}}class mue extends sS{constructor(i){super(i),this.handlePointerDown=g=>{let{dragging:C}=this,E=g.origEvent.target;C.setIgnoreMove(!this.component.isValidDateDownEl(E))},this.handleDragEnd=g=>{let{component:C}=this,{pointer:E}=this.dragging;if(!E.wasTouchScroll){let{initialHit:A,finalHit:D}=this.hitDragging;if(A&&D&&c7(A,D)){let{context:L}=C,G=Object.assign(Object.assign({},CJ(A.dateSpan,L)),{dayEl:A.dayEl,jsEvent:g.origEvent,view:L.viewApi||L.calendarApi.view});L.emitter.trigger("dateClick",G)}}},this.dragging=new ek(i.el),this.dragging.autoScroller.isEnabled=!1;let u=this.hitDragging=new l7(this.dragging,aF(i));u.emitter.on("pointerdown",this.handlePointerDown),u.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class hue extends sS{constructor(i){super(i),this.dragSelection=null,this.handlePointerDown=A=>{let{component:D,dragging:L}=this,{options:G}=D.context,W=G.selectable&&D.isValidDateDownEl(A.origEvent.target);L.setIgnoreMove(!W),L.delay=A.isTouch?gue(D):null},this.handleDragStart=A=>{this.component.context.calendarApi.unselect(A)},this.handleHitUpdate=(A,D)=>{let{context:L}=this.component,G=null,W=!1;if(A){let ae=this.hitDragging.initialHit;A.componentId===ae.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(ae,A)||(G=pue(ae,A,L.pluginHooks.dateSelectionTransformers)),(!G||!aie(G,A.dateProfile,L))&&(W=!0,G=null)}G?L.dispatch({type:"SELECT_DATES",selection:G}):D||L.dispatch({type:"UNSELECT_DATES"}),W?M$():I$(),D||(this.dragSelection=G)},this.handlePointerUp=A=>{this.dragSelection&&(KX(this.dragSelection,A,this.component.context),this.dragSelection=null)};let{component:u}=i,{options:g}=u.context,C=this.dragging=new ek(i.el);C.touchScrollAllowed=!1,C.minDistance=g.selectMinDistance||0,C.autoScroller.isEnabled=g.dragScroll;let E=this.hitDragging=new l7(this.dragging,aF(i));E.emitter.on("pointerdown",this.handlePointerDown),E.emitter.on("dragstart",this.handleDragStart),E.emitter.on("hitupdate",this.handleHitUpdate),E.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function gue(c){let{options:i}=c.context,u=i.selectLongPressDelay;return u==null&&(u=i.longPressDelay),u}function pue(c,i,u){let g=c.dateSpan,C=i.dateSpan,E=[g.range.start,g.range.end,C.range.start,C.range.end];E.sort(Ise);let A={};for(let D of u){let L=D(c,i);if(L===!1)return null;L&&Object.assign(A,L)}return A.range={start:E[0],end:E[3]},A.allDay=g.allDay,A}class tk extends sS{constructor(i){super(i),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=A=>{let D=A.origEvent.target,{component:L,dragging:G}=this,{mirror:W}=G,{options:ae}=L.context,ne=L.context;this.subjectEl=A.subjectEl;let F=this.subjectSeg=oS(A.subjectEl),le=(this.eventRange=F.eventRange).instance.instanceId;this.relevantEvents=tF(ne.getCurrentData().eventStore,le),G.minDistance=A.isTouch?0:ae.eventDragMinDistance,G.delay=A.isTouch&&le!==L.props.eventSelection?yue(L):null,ae.fixedMirrorParent?W.parentNode=ae.fixedMirrorParent:W.parentNode=Zu(D,".fc"),W.revertDuration=ae.dragRevertDuration;let te=L.isValidSegDownEl(D)&&!Zu(D,".fc-event-resizer");G.setIgnoreMove(!te),this.isDragging=te&&A.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=A=>{let D=this.component.context,L=this.eventRange,G=L.instance.instanceId;A.isTouch?G!==this.component.props.eventSelection&&D.dispatch({type:"SELECT_EVENT",eventInstanceId:G}):D.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(D.calendarApi.unselect(A),D.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new gl(D,L.def,L.instance),jsEvent:A.origEvent,view:D.viewApi}))},this.handleHitUpdate=(A,D)=>{if(!this.isDragging)return;let L=this.relevantEvents,G=this.hitDragging.initialHit,W=this.component.context,ae=null,ne=null,F=null,ye=!1,le={affectedEvents:L,mutatedEvents:pm(),isEvent:!0};if(A){ae=A.context;let te=ae.options;W===ae||te.editable&&te.droppable?(ne=bue(G,A,ae.getCurrentData().pluginHooks.eventDragMutationMassagers),ne&&(F=sF(L,ae.getCurrentData().eventUiBases,ne,ae),le.mutatedEvents=F,SQ(le,A.dateProfile,ae)||(ye=!0,ne=null,F=null,le.mutatedEvents=pm()))):ae=null}this.displayDrag(ae,le),ye?M$():I$(),D||(W===ae&&c7(G,A)&&(ne=null),this.dragging.setMirrorNeedsRevert(!ne),this.dragging.setMirrorIsVisible(!A||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=ae,this.validMutation=ne,this.mutatedRelevantEvents=F)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=A=>{if(this.isDragging){let D=this.component.context,L=D.viewApi,{receivingContext:G,validMutation:W}=this,ae=this.eventRange.def,ne=this.eventRange.instance,F=new gl(D,ae,ne),ye=this.relevantEvents,le=this.mutatedRelevantEvents,{finalHit:te}=this.hitDragging;if(this.clearDrag(),D.emitter.trigger("eventDragStop",{el:this.subjectEl,event:F,jsEvent:A.origEvent,view:L}),W){if(G===D){let Se=new gl(D,le.defs[ae.defId],ne?le.instances[ne.instanceId]:null);D.dispatch({type:"MERGE_EVENTS",eventStore:le});let ie={oldEvent:F,event:Se,relatedEvents:E2(le,D,ne),revert(){D.dispatch({type:"MERGE_EVENTS",eventStore:ye})}},Z={};for(let we of D.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(Z,we(W,D));D.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},ie),Z),{el:A.subjectEl,delta:W.datesDelta,jsEvent:A.origEvent,view:L})),D.emitter.trigger("eventChange",ie)}else if(G){let Se={event:F,relatedEvents:E2(ye,D,ne),revert(){D.dispatch({type:"MERGE_EVENTS",eventStore:ye})}};D.emitter.trigger("eventLeave",Object.assign(Object.assign({},Se),{draggedEl:A.subjectEl,view:L})),D.dispatch({type:"REMOVE_EVENTS",eventStore:ye}),D.emitter.trigger("eventRemove",Se);let ie=le.defs[ae.defId],Z=le.instances[ne.instanceId],we=new gl(G,ie,Z);G.dispatch({type:"MERGE_EVENTS",eventStore:le});let Bt={event:we,relatedEvents:E2(le,G,Z),revert(){G.dispatch({type:"REMOVE_EVENTS",eventStore:le})}};G.emitter.trigger("eventAdd",Bt),A.isTouch&&G.dispatch({type:"SELECT_EVENT",eventInstanceId:ne.instanceId}),G.emitter.trigger("drop",Object.assign(Object.assign({},CJ(te.dateSpan,G)),{draggedEl:A.subjectEl,jsEvent:A.origEvent,view:te.context.viewApi})),G.emitter.trigger("eventReceive",Object.assign(Object.assign({},Bt),{draggedEl:A.subjectEl,view:te.context.viewApi}))}}else D.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:u}=this,{options:g}=u.context,C=this.dragging=new ek(i.el);C.pointer.selector=tk.SELECTOR,C.touchScrollAllowed=!1,C.autoScroller.isEnabled=g.dragScroll;let E=this.hitDragging=new l7(this.dragging,iF);E.useSubjectCenter=i.useEventCenter,E.emitter.on("pointerdown",this.handlePointerDown),E.emitter.on("dragstart",this.handleDragStart),E.emitter.on("hitupdate",this.handleHitUpdate),E.emitter.on("pointerup",this.handlePointerUp),E.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(i,u){let g=this.component.context,C=this.receivingContext;C&&C!==i&&(C===g?C.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:u.affectedEvents,mutatedEvents:pm(),isEvent:!0}}):C.dispatch({type:"UNSET_EVENT_DRAG"})),i&&i.dispatch({type:"SET_EVENT_DRAG",state:u})}clearDrag(){let i=this.component.context,{receivingContext:u}=this;u&&u.dispatch({type:"UNSET_EVENT_DRAG"}),i!==u&&i.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}tk.SELECTOR=".fc-event-draggable, .fc-event-resizable";function bue(c,i,u){let g=c.dateSpan,C=i.dateSpan,E=g.range.start,A=C.range.start,D={};g.allDay!==C.allDay&&(D.allDay=C.allDay,D.hasEnd=i.context.options.allDayMaintainDuration,C.allDay&&(E=Ii(E)));let L=tS(E,A,c.context.dateEnv,c.componentId===i.componentId?c.largeUnit:null);L.milliseconds&&(D.allDay=!1);let G={datesDelta:L,standardProps:D};for(let W of u)W(G,c,i);return G}function yue(c){let{options:i}=c.context,u=i.eventLongPressDelay;return u==null&&(u=i.longPressDelay),u}class vue extends sS{constructor(i){super(i),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=E=>{let{component:A}=this,D=this.querySegEl(E),L=oS(D),G=this.eventRange=L.eventRange;this.dragging.minDistance=A.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(E.origEvent.target)||E.isTouch&&this.component.props.eventSelection!==G.instance.instanceId)},this.handleDragStart=E=>{let{context:A}=this.component,D=this.eventRange;this.relevantEvents=tF(A.getCurrentData().eventStore,this.eventRange.instance.instanceId);let L=this.querySegEl(E);this.draggingSegEl=L,this.draggingSeg=oS(L),A.calendarApi.unselect(),A.emitter.trigger("eventResizeStart",{el:L,event:new gl(A,D.def,D.instance),jsEvent:E.origEvent,view:A.viewApi})},this.handleHitUpdate=(E,A,D)=>{let{context:L}=this.component,G=this.relevantEvents,W=this.hitDragging.initialHit,ae=this.eventRange.instance,ne=null,F=null,ye=!1,le={affectedEvents:G,mutatedEvents:pm(),isEvent:!0};E&&(E.componentId===W.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(W,E)||(ne=Cue(W,E,D.subjectEl.classList.contains("fc-event-resizer-start"),ae.range))),ne&&(F=sF(G,L.getCurrentData().eventUiBases,ne,L),le.mutatedEvents=F,SQ(le,E.dateProfile,L)||(ye=!0,ne=null,F=null,le.mutatedEvents=null)),F?L.dispatch({type:"SET_EVENT_RESIZE",state:le}):L.dispatch({type:"UNSET_EVENT_RESIZE"}),ye?M$():I$(),A||(ne&&c7(W,E)&&(ne=null),this.validMutation=ne,this.mutatedRelevantEvents=F)},this.handleDragEnd=E=>{let{context:A}=this.component,D=this.eventRange.def,L=this.eventRange.instance,G=new gl(A,D,L),W=this.relevantEvents,ae=this.mutatedRelevantEvents;if(A.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:G,jsEvent:E.origEvent,view:A.viewApi}),this.validMutation){let ne=new gl(A,ae.defs[D.defId],L?ae.instances[L.instanceId]:null);A.dispatch({type:"MERGE_EVENTS",eventStore:ae});let F={oldEvent:G,event:ne,relatedEvents:E2(ae,A,L),revert(){A.dispatch({type:"MERGE_EVENTS",eventStore:W})}};A.emitter.trigger("eventResize",Object.assign(Object.assign({},F),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||Zr(0),endDelta:this.validMutation.endDelta||Zr(0),jsEvent:E.origEvent,view:A.viewApi})),A.emitter.trigger("eventChange",F)}else A.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:u}=i,g=this.dragging=new ek(i.el);g.pointer.selector=".fc-event-resizer",g.touchScrollAllowed=!1,g.autoScroller.isEnabled=u.context.options.dragScroll;let C=this.hitDragging=new l7(this.dragging,aF(i));C.emitter.on("pointerdown",this.handlePointerDown),C.emitter.on("dragstart",this.handleDragStart),C.emitter.on("hitupdate",this.handleHitUpdate),C.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(i){return Zu(i.subjectEl,".fc-event")}}function Cue(c,i,u,g){let C=c.context.dateEnv,E=c.dateSpan.range.start,A=i.dateSpan.range.start,D=tS(E,A,C,c.largeUnit);if(u){if(C.add(g.start,D)<g.end)return{startDelta:D}}else if(C.add(g.end,D)>g.start)return{endDelta:D};return null}class wue{constructor(i){this.context=i,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=g=>{g.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=g=>{let C=this.context.options.unselectCancel,E=lX(g.origEvent);this.matchesCancel=!!Zu(E,C),this.matchesEvent=!!Zu(E,tk.SELECTOR)},this.onDocumentPointerUp=g=>{let{context:C}=this,{documentPointer:E}=this,A=C.getCurrentData();if(!E.wasTouchScroll){if(A.dateSelection&&!this.isRecentPointerDateSelect){let D=C.options.unselectAuto;D&&(!D||!this.matchesCancel)&&C.calendarApi.unselect(g)}A.eventSelection&&!this.matchesEvent&&C.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let u=this.documentPointer=new gJ(document);u.shouldIgnoreMove=!0,u.shouldWatchScroll=!1,u.emitter.on("pointerdown",this.onDocumentPointerDown),u.emitter.on("pointerup",this.onDocumentPointerUp),i.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const Sue={fixedMirrorParent:Wt},_ue={dateClick:Wt,eventDragStart:Wt,eventDragStop:Wt,eventDrop:Wt,eventResizeStart:Wt,eventResizeStop:Wt,eventResize:Wt,drop:Wt,eventReceive:Wt,eventLeave:Wt};yF.dataAttrPrefix="";var wJ=$1({name:"@fullcalendar/interaction",componentInteractions:[mue,hue,tk,vue],calendarInteractions:[wue],elementDraggingImpl:ek,optionRefiners:Sue,listenerRefiners:_ue});let Eue=0,xue=new Date().toISOString().replace(/T.*$/,"");const kue=[{id:Tue(),title:"All-day event",start:xue}];function Tue(){return String(Eue++)}const nk=c=>(f.pushScopeId("data-v-1fa0e0e1"),c=c(),f.popScopeId(),c),Aue={class:"demo-app"},Due={class:"demo-app-main"},Nue={class:"title-line"},Oue=["title","onClick"],Rue={key:0,style:{width:"90%"}},Bue=nk(()=>f.createElementVNode("span",{class:"to"},"至",-1)),Mue={key:1,style:{width:"90%"}},Iue=nk(()=>f.createElementVNode("span",{class:"to"},"至",-1)),Pue={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},$ue={key:0,style:{"margin-left":"2%"}},Fue=nk(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Lue={key:1},Vue=nk(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Hue={key:0,class:"placeholder"},zue={class:"info"},Uue=nk(()=>f.createElementVNode("img",{src:"https://img1.baidu.com/it/u=1960110688,1786190632&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281",alt:""},null,-1)),Wue={class:"dialog-footer"},jue={name:"IkApprovalProcess"},Zue=f.defineComponent({...jue,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(c,{emit:i}){const u=i,g=le=>{if(D.selectInfo=le,E(),le.view.type=="dayGridMonth"){let Se=le.end.getTime()-864e5;D.timeType="month",D.form.startDate=es.ikDate.toYMD(le.start),D.form.endDate=es.ikDate.toYMD(new Date(Se))}else le.view.type=="timeGridWeek"?(D.timeType="week",D.form.startDate=es.ikDate.toYMDHM(le.start),D.form.endDate=es.ikDate.toYMDHM(le.end)):le.view.type=="timeGridDay"&&(D.timeType="day",D.form.startDate=es.ikDate.toYMD(le.start),D.form.endDate=es.ikDate.toYMD(le.start),D.form.startTime=es.ikDate.toDateTime(le.start),D.form.endTime=es.ikDate.toDateTime(le.end));le.view.calendar.unselect(),f.nextTick(()=>{D.title="新建日程",D.dialogVisible=!0})},C=(le,te)=>{D.title="修改日程",D.dialogVisible=!0},E=le=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:le||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(ie=>{ie.json().then(Z=>{const{success:we,data:Bt}=Z;if(!we)return;const{departments:We,users:Q,roles:Be,posts:Ae}=Bt;D.depList=We,D.userList=Q,D.roleList=Be,D.postList=Ae})}).catch(ie=>{console.info("error: ",ie)})},A=le=>{D.currentEvents=le},D=f.reactive({allDay:!1,dialogVisible:!1,form:{title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},formRef:null,title:"新建日程",timeType:"month",handList:[],isShow:!1,depList:[],userList:[],roleList:[],postList:[],selectInfo:{},calendarOptions:{locale:vK,plugins:[aJ,hJ,wJ],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:kue,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:g,eventClick:le=>C(),eventsSet:A},currentEvents:[]}),L=()=>{var le;(le=D.formRef)==null||le.resetFields(),D.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},D.dialogVisible=!1},G=async()=>{var Se,ie,Z,we;let le=(ie=(Se=D.selectInfo)==null?void 0:Se.view)==null?void 0:ie.calendar,te={id:new Date().getTime(),title:D.form.title,start:(Z=D.selectInfo)==null?void 0:Z.startStr,end:(we=D.selectInfo)==null?void 0:we.endStr,allDay:D.allDay};await le.addEvent(te),u("success",te),L()},W=le=>{Kt.ElMessageBox.confirm(`你确定删除事件'${le.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{Kt.ElMessage({type:"success",message:"删除成功"}),le.event.remove(),u("delete",le.event)})},ae=le=>{D.handList=le.list,D.form.personList=le.list},ne=()=>{D.isShow=!0},F=le=>{E(le==null?void 0:le.elementId)},ye=le=>{D.form.personList.splice(le,1),D.handList=D.form.personList};return(le,te)=>{const Se=f.resolveComponent("el-checkbox");return f.openBlock(),f.createElementBlock("div",Aue,[f.createElementVNode("div",Due,[f.createVNode(f.unref(KQ),{class:"demo-app-calendar",options:D.calendarOptions},{eventContent:f.withCtx(ie=>[f.createElementVNode("div",Nue,[f.createElementVNode("span",{class:"title",title:ie.event.title,onClick:f.withModifiers(Z=>C(),["stop"])},f.toDisplayString(ie.event.title),9,Oue),f.createVNode(f.unref(Kt.ElIcon),{size:16,onClick:f.withModifiers(Z=>W(ie),["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(hK))]),_:2},1032,["onClick"])])]),_:1},8,["options"])]),f.createCommentVNode(" 新建日程 "),f.createVNode(f.unref(Kt.ElDialog),{modelValue:D.dialogVisible,"onUpdate:modelValue":te[12]||(te[12]=ie=>D.dialogVisible=ie),title:D.title,width:"30%",ref:"formRef",onClose:L},{footer:f.withCtx(()=>[f.createElementVNode("span",Wue,[f.createVNode(f.unref(Kt.ElButton),{onClick:L},{default:f.withCtx(()=>[f.createTextVNode("取消")]),_:1}),f.createVNode(f.unref(Kt.ElButton),{type:"primary",onClick:G},{default:f.withCtx(()=>[f.createTextVNode("确定")]),_:1})])]),default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElForm),{model:D.form},{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(dK))]),_:1}),f.createVNode(f.unref(Kt.ElInput),{modelValue:D.form.title,"onUpdate:modelValue":te[0]||(te[0]=ie=>D.form.title=ie),placeholder:`添加${D.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),f.createVNode(f.unref(Kt.ElSelect),{modelValue:D.form.type,"onUpdate:modelValue":te[1]||(te[1]=ie=>D.form.type=ie),style:{width:"20%"}},{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElOption),{label:"会议",value:1}),f.createVNode(f.unref(Kt.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),f.createVNode(f.unref(Kt.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(fK))]),_:1}),D.timeType=="month"?(f.openBlock(),f.createElementBlock("div",Rue,[f.createVNode(f.unref(Kt.ElDatePicker),{modelValue:D.form.startDate,"onUpdate:modelValue":te[2]||(te[2]=ie=>D.form.startDate=ie),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),Bue,f.createVNode(f.unref(Kt.ElDatePicker),{modelValue:D.form.endDate,"onUpdate:modelValue":te[3]||(te[3]=ie=>D.form.endDate=ie),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):f.createCommentVNode("v-if",!0),D.timeType=="week"?(f.openBlock(),f.createElementBlock("div",Mue,[f.createVNode(f.unref(Kt.ElDatePicker),{modelValue:D.form.startDate,"onUpdate:modelValue":te[4]||(te[4]=ie=>D.form.startDate=ie),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),Iue,f.createVNode(f.unref(Kt.ElDatePicker),{modelValue:D.form.endDate,"onUpdate:modelValue":te[5]||(te[5]=ie=>D.form.endDate=ie),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):f.createCommentVNode("v-if",!0),D.timeType=="day"?(f.openBlock(),f.createElementBlock("div",Pue,[f.createVNode(f.unref(Kt.ElDatePicker),{modelValue:D.form.startDate,"onUpdate:modelValue":te[6]||(te[6]=ie=>D.form.startDate=ie),type:"date",placeholder:"开始日期",style:f.normalizeStyle({width:D.allDay?"45%":"90%"})},null,8,["modelValue","style"]),D.allDay?(f.openBlock(),f.createElementBlock("div",Lue,[Vue,f.createVNode(f.unref(Kt.ElDatePicker),{modelValue:D.form.endDate,"onUpdate:modelValue":te[9]||(te[9]=ie=>D.form.endDate=ie),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(f.openBlock(),f.createElementBlock("div",$ue,[f.createVNode(f.unref(Kt.ElTimePicker),{modelValue:D.form.startTime,"onUpdate:modelValue":te[7]||(te[7]=ie=>D.form.startTime=ie),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),Fue,f.createVNode(f.unref(Kt.ElTimePicker),{modelValue:D.form.endTime,"onUpdate:modelValue":te[8]||(te[8]=ie=>D.form.endTime=ie),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),f.createVNode(Se,{modelValue:D.allDay,"onUpdate:modelValue":te[10]||(te[10]=ie=>D.allDay=ie),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):f.createCommentVNode("v-if",!0)]),_:1}),f.createVNode(f.unref(Kt.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(rne))]),_:1}),f.createElementVNode("div",{class:"personBlock",onClick:f.withModifiers(ne,["stop"])},[D.form.personList.length?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:1},f.renderList(D.form.personList,(ie,Z)=>(f.openBlock(),f.createElementBlock("div",{key:Z,class:"nameBlock"},[f.createElementVNode("div",zue,[Uue,f.createElementVNode("div",null,f.toDisplayString(ie.elementName),1)]),f.createVNode(f.unref(Kt.ElIcon),{class:"close",onClick:f.withModifiers(we=>ye(Z),["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(mK))]),_:2},1032,["onClick"])]))),128)):(f.openBlock(),f.createElementBlock("span",Hue,"添加参与人"))])]),_:1}),f.createVNode(f.unref(Kt.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(Gte))]),_:1}),f.createVNode(f.unref(Kt.ElInput),{modelValue:D.form.location,"onUpdate:modelValue":te[11]||(te[11]=ie=>D.form.location=ie),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),f.createCommentVNode(" 选人组件 "),f.createVNode(f.unref(rk),{modelValue:D.handList,"onUpdate:modelValue":te[13]||(te[13]=ie=>D.handList=ie),show:D.isShow,"onUpdate:show":te[14]||(te[14]=ie=>D.isShow=ie),onOk:ae,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":D.depList,"user-list":D.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:F},null,8,["modelValue","show","dep-list","user-list"])])}}}),h0e="",Gue=ha(Br(Zue,[["__scopeId","data-v-1fa0e0e1"]])),que={class:"ik-hor-step-content"},Yue={class:"flex"},Kue=["onClick"],Xue=["id","onClick"],Que=f.defineComponent({__name:"IKHorizontalStepBar",props:{spaceNum:{type:String,default:"58px"},active:{type:Number,default:null},activeColor:{type:String,default:""},needClick:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},propsField:{type:Object,default:()=>({title:"title",value:"value"})}},emits:["click","update:active"],setup(c,{emit:i}){const u=c,g=i,C=f.ref(!1),E=f.ref(),A=f.ref(),D=f.ref(!1);f.watch(()=>u.active,le=>{let te=document.getElementById("stepItemContent"),Se=document.getElementById(`stepItem${le}`),ie=document.getElementById("stepItem0");const Z=Se&&ie?(Se==null?void 0:Se.offsetLeft)-(ie==null?void 0:ie.offsetLeft):0;te&&Se&&(te.scrollLeft=Z>(te==null?void 0:te.clientWidth)?Z-(te==null?void 0:te.offsetLeft):0)}),f.onMounted(()=>{f.nextTick(()=>{let te=document.getElementById("stepItemContent"),Se=(te==null?void 0:te.scrollWidth)>(te==null?void 0:te.clientWidth);C.value=Se,window.addEventListener("resize",le,!0)});const le=()=>{let te=document.getElementById("stepItemContent"),Se=(te==null?void 0:te.scrollWidth)>(te==null?void 0:te.clientWidth);C.value=Se}});const L=(le,te)=>{if(!u.needClick)return;g("update:active",te),g("click",le);let Se=document.getElementById("stepItemContent"),ie=document.getElementById(`stepItem${te}`),Z=document.getElementById("stepItem0");const we=ie&&Z?(ie==null?void 0:ie.offsetLeft)-(Z==null?void 0:Z.offsetLeft):0;Se&&ie&&(Se.scrollLeft=we>(Se==null?void 0:Se.clientWidth)?we-(Se==null?void 0:Se.offsetLeft):0)},G=()=>{let le=document.getElementById("stepItemContent");le&&(le.scrollLeft=le.scrollLeft-20)},W=()=>{let le=document.getElementById("stepItemContent");le&&(le.scrollLeft=le.scrollLeft+20)},ae=()=>{clearInterval(A.value);let le=document.getElementById("stepItemContent");D.value=!1,A.value=setInterval(()=>{D.value=!0,le&&(le.scrollLeft=le.scrollLeft-20)},100)},ne=()=>{clearInterval(A.value),D.value||G()},F=()=>{clearInterval(E.value);let le=document.getElementById("stepItemContent");D.value=!1,E.value=setInterval(()=>{D.value=!0,le&&(le.scrollLeft=le.scrollLeft+20)},100)},ye=()=>{clearInterval(E.value),D.value||W()};return(le,te)=>{const Se=f.resolveComponent("el-icon");return f.openBlock(),f.createElementBlock("div",que,[f.createElementVNode("div",Yue,[C.value?(f.openBlock(),f.createElementBlock("div",{key:0,class:"icon-left",onMousedown:ae,onMouseup:ne,onClick:G},[f.createVNode(Se,{class:"operation-icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(cK),{size:"26px"})]),_:1})],32)):f.createCommentVNode("v-if",!0),f.createElementVNode("div",{class:"step-item-content",id:"stepItemContent",style:f.normalizeStyle({justifyContent:C.value?"flex-start":"center"})},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(c.list,(ie,Z)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(`step-item ${Z<=c.active?"step-item-active":""}`),key:Z},[Z!=0?(f.openBlock(),f.createElementBlock("span",{key:0,class:f.normalizeClass(`step-border ${Z<=c.active?"step-border-greater-than":""}`),style:f.normalizeStyle({width:`${c.spaceNum.indexOf("px")!=-1?c.spaceNum:`${c.spaceNum}px`}`})},null,6)):f.createCommentVNode("v-if",!0),f.createElementVNode("span",{class:f.normalizeClass(`step-num ${Z===c.active?"step-num-active":Z<c.active?"step-num-greater-than":""}`),onClick:we=>L(ie,Z),style:f.normalizeStyle({backgroundColor:Z===c.active&&c.activeColor?c.activeColor:"",cursor:ie&&ie.disabled?"not-allowed":c.needClick?"pointer":"context-menu"})},[f.renderSlot(le.$slots,"icon",{data:{item:ie,index:Z}},()=>[f.createTextVNode(f.toDisplayString(Z+1),1)],!0)],14,Kue),f.createElementVNode("span",{id:`stepItem${Z}`,class:f.normalizeClass(`step-label ${c.active===Z?"step-label-active":Z<c.active?"step-label-greater-than":""} step-item-${Z}`),style:f.normalizeStyle({color:Z===c.active&&c.activeColor?c.activeColor:"",cursor:ie&&ie.disabled?"not-allowed":c.needClick?"pointer":"context-menu"}),onClick:we=>L(ie,Z)},f.toDisplayString(ie[c.propsField.title]),15,Xue)],2))),128))],4),C.value?(f.openBlock(),f.createElementBlock("div",{key:1,class:"icon-right",onMousedown:F,onMouseup:ye,onClick:W},[f.createVNode(Se,{class:"operation-icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(uK))]),_:1})],32)):f.createCommentVNode("v-if",!0)])])}}}),p0e="",Jue=ha(Br(Que,[["__scopeId","data-v-f390d7ac"]])),ede=typeof btoa=="function",MF=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const SJ=typeof TextEncoder=="function"?new TextEncoder:void 0,tde="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ok=Array.prototype.slice.call(tde);(c=>{let i={};return c.forEach((u,g)=>i[u]=g),i})(ok);const hp=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const nde=c=>c.replace(/=/g,"").replace(/[+\/]/g,i=>i=="+"?"-":"_"),_J=ede?c=>btoa(c):MF?c=>Buffer.from(c,"binary").toString("base64"):c=>{let i,u,g,C,E="";const A=c.length%3;for(let D=0;D<c.length;){if((u=c.charCodeAt(D++))>255||(g=c.charCodeAt(D++))>255||(C=c.charCodeAt(D++))>255)throw new TypeError("invalid character found");i=u<<16|g<<8|C,E+=ok[i>>18&63]+ok[i>>12&63]+ok[i>>6&63]+ok[i&63]}return A?E.slice(0,A-3)+"===".substring(A):E},ode=MF?c=>Buffer.from(c).toString("base64"):c=>{let u=[];for(let g=0,C=c.length;g<C;g+=4096)u.push(hp.apply(null,c.subarray(g,g+4096)));return _J(u.join(""))},sde=c=>{if(c.length<2){var i=c.charCodeAt(0);return i<128?c:i<2048?hp(192|i>>>6)+hp(128|i&63):hp(224|i>>>12&15)+hp(128|i>>>6&63)+hp(128|i&63)}else{var i=65536+(c.charCodeAt(0)-55296)*1024+(c.charCodeAt(1)-56320);return hp(240|i>>>18&7)+hp(128|i>>>12&63)+hp(128|i>>>6&63)+hp(128|i&63)}},rde=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ade=c=>c.replace(rde,sde),EJ=MF?c=>Buffer.from(c,"utf8").toString("base64"):SJ?c=>ode(SJ.encode(c)):c=>_J(ade(c)),xJ=(c,i=!1)=>i?nde(EJ(c)):EJ(c),Oc=(c,i)=>{var C,E,A,D,L;const u=(C=c==null?void 0:c.response)!=null&&C.data?kJ((A=(E=c==null?void 0:c.response)==null?void 0:E.data)==null?void 0:A.suffix):((D=c.raw)==null?void 0:D.type)||kJ(c[i.suffix]),g=((L=c.raw)==null?void 0:L.name)||c[i.name];return u!=null&&u.includes("sheet")||u!=null&&u.includes("excel")?"excel":u!=null&&u.includes("zip")||u==="application/x-compressed"?"zip":u!=null&&u.includes("image")?"image":u!=null&&u.includes("video")?"video":u!=null&&u.includes("audio")?"audio":u!=null&&u.includes("pdf")?"pdf":u!=null&&u.includes("text")||u!=null&&u.includes("txt")?"txt":u!=null&&u.includes("word")?"word":g!=null&&g.includes("ppt")?"ppt":g!=null&&g.includes("exe")?"exe":g!=null&&g.includes("json")?"json":"unknow"},kJ=c=>{const i=c==null?void 0:c.toLocaleLowerCase();switch(i!=null&&i.startsWith(".")?i:`.${i}`){case".doc":case".docx":case".docxf":case".docm":case".dot":case".dotm":case".dotx":case".epub":case".fodt":case".htm":case".html":case".mht":case".odt":case".ott":case".rtf":case".txt":case".djvu":case".oxps":case".oform":case".fb2":case".xml":case".xps":return"word";case".csv":case".xls":case".xlsx":case".fods":case".ods":case".ots":case".xlsb":case".xlsm":case".xlt":case".xltm":case".xltx":return"excel";case".fodp":case".odp":case".otp":case".pot":case".potm":case".potx":case".pps":case".ppsm":case".ppsx":case".ppt":case".pptm":case".pptx":return"ppt";case".zip":case".rar":case".7z":case".apz":case".ar":case".bz":case".car":case".dar":case".cpgz":case".f":case".ha":case".hbc":case".hbc2":case".hbe":case".hpk":case".hyp":return"zip";case".png":case".jpg":case".jpeg":case".bmp":case".gif":case".webp":case".psd":case".svg":case".tiff":return"image";case".avi":case".wmv":case".mpeg":case".mp4":case".mpm4v":case".mov":case".asf":case".flv":case".f4v":case".rmvb":case".rm":case".3gp":case".vob":return"video";case"audio":return"audio";case".txt":return"txt";case".pdf":return"pdf";case c:case"":return"unknow"}},ide={key:0,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},lde=[f.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),f.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),f.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),f.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],cde={key:1,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},ude=[f.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],dde={key:2,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},fde=[f.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],mde={key:3,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},hde=[f.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],gde={key:4,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},pde=[f.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],bde={key:5,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},yde=[f.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],vde={key:6,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},Cde=[f.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],wde={key:7,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},Sde=[f.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),f.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],_de={key:8,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},Ede=[f.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),f.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),f.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],xde={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},kde=[f.createElementVNode("path",{d:"M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",fill:"#8199AF","p-id":"8002"},null,-1),f.createElementVNode("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",fill:"#617F9B","p-id":"8003"},null,-1),f.createElementVNode("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#FFFFFF",opacity:".5","p-id":"8004"},null,-1),f.createElementVNode("path",{d:"M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",fill:"#FFFFFF","p-id":"8005"},null,-1)],Tde={key:10,t:"1714099890925",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2271",width:"200",height:"200"},Ade=[f.createElementVNode("path",{d:"M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",fill:"#0DD59D","p-id":"2272"},null,-1),f.createElementVNode("path",{d:"M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",fill:"#FFFFFF","fill-opacity":".65","p-id":"2273"},null,-1),f.createElementVNode("path",{d:"M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",fill:"#FFFFFF","p-id":"2274"},null,-1)],Dde={key:11,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},Nde=[f.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),f.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),f.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],IF=f.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"},file:{type:Object,default:()=>null},fields:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})}},setup(c){const i=c,u=f.computed(()=>i.file?Oc(i.file,i.fields):i.type);return(g,C)=>u.value==="image"?(f.openBlock(),f.createElementBlock("svg",ide,lde)):u.value==="zip"?(f.openBlock(),f.createElementBlock("svg",cde,ude)):u.value==="ppt"?(f.openBlock(),f.createElementBlock("svg",dde,fde)):u.value==="word"?(f.openBlock(),f.createElementBlock("svg",mde,hde)):u.value==="pdf"?(f.openBlock(),f.createElementBlock("svg",gde,pde)):u.value==="txt"?(f.openBlock(),f.createElementBlock("svg",bde,yde)):u.value==="audio"?(f.openBlock(),f.createElementBlock("svg",vde,Cde)):u.value==="video"?(f.openBlock(),f.createElementBlock("svg",wde,Sde)):u.value==="excel"?(f.openBlock(),f.createElementBlock("svg",_de,Ede)):u.value==="exe"?(f.openBlock(),f.createElementBlock("svg",xde,kde)):u.value==="json"?(f.openBlock(),f.createElementBlock("svg",Tde,Ade)):(f.openBlock(),f.createElementBlock("svg",Dde,Nde))}}),Ode=["onClick"],Rde={class:"text"},Bde={class:"fileName"},Mde={class:"size"},Ide={class:"flex flex-center"},Pde=["src"],$de=f.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({name:"attachmentName",url:"attachmentId",suffix:"attachmentSuffix",size:"attachmentSize"})}},setup(c){const i=c,u=f.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...i.field})),g=f.ref(null),C=f.computed(()=>{var G,W,ae;if(!i.kkUrl||!((G=E.data)!=null&&G[u.value.url]))return"";const L=i.loadUrl?i.loadUrl:location.href;return`${i.kkUrl}/onlinePreview?url=${encodeURIComponent(xJ(`${w$(L,(W=E.data)==null?void 0:W[u.value.url])}&fullfilename=${(ae=E.data)==null?void 0:ae[u.value.name]}`))}`}),E=f.reactive({show:!1,data:{}}),A=L=>{E.data=L,E.show=!0},D=L=>{window.open(w$(i.loadUrl,L[u.value.url]))};return(L,G)=>{var W;return f.openBlock(),f.createElementBlock(f.Fragment,null,[(W=c.list)!=null&&W.length?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:0},f.renderList(c.list,(ae,ne)=>(f.openBlock(),f.createElementBlock("div",{class:"iking-privew-annex",key:ne},[f.createElementVNode("div",{class:"file-card",onClick:F=>A(ae)},[f.createVNode(IF,{file:ae,class:"ikui-w-50 ikui-h-50",fields:{name:"attachmentName",url:"attachmentId",suffix:"attachmentSuffix"}},null,8,["file"]),f.createElementVNode("div",Rde,[f.createElementVNode("div",Bde,f.toDisplayString(ae[u.value.name]),1),f.createElementVNode("div",Mde,f.toDisplayString(f.unref(Ane)(ae[u.value.size])),1)]),f.createElementVNode("div",Ide,[f.createVNode(f.unref(Jr),{name:"iksvg_daochu",onClick:f.withModifiers(F=>D(ae),["stop"]),bg:"",size:"default"},null,8,["onClick"]),f.createVNode(f.unref(Jr),{name:"iksvg_yulan",bg:"",size:"default"})])],8,Ode)]))),128)):f.createCommentVNode("v-if",!0),f.createVNode(f.unref(Kt.ElDialog),{fullscreen:"",modelValue:E.show,"onUpdate:modelValue":G[0]||(G[0]=ae=>E.show=ae),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:G[1]||(G[1]=ae=>L.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:f.withCtx(()=>[E.show?(f.openBlock(),f.createElementBlock("iframe",{key:0,ref_key:"freamRef",ref:g,"cross-origin":"",src:C.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,Pde)):f.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])],64)}}}),K0e="",TJ=ha($de),Fde=["src"],Lde=f.defineComponent({__name:"IkPreviewFileDialog",props:{modelValue:{type:Boolean,default:!1},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},fileName:{type:String,default:""}},setup(c){const i=c,u=f.ref(null),g=f.computed(()=>{if(!i.kkUrl||!i.url)return"";const E=i.loadUrl?i.loadUrl:location.href;return`${i.kkUrl}/onlinePreview?url=${encodeURIComponent(xJ(`${E}${i.url}${i.fileName?`&fullfilename=${i.fileName}`:""}`))}`}),C=f.ref(i.modelValue);return f.watch(()=>i.modelValue,E=>{C.value=E}),(E,A)=>(f.openBlock(),f.createBlock(f.unref(Kt.ElDialog),{fullscreen:"",modelValue:C.value,"onUpdate:modelValue":A[0]||(A[0]=D=>C.value=D),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:A[1]||(A[1]=D=>E.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:f.withCtx(()=>[g.value?(f.openBlock(),f.createElementBlock("iframe",{key:0,ref_key:"freamRef",ref:u,"cross-origin":"",src:g.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,Fde)):f.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"]))}}),X0e="",AJ=ha(Lde),Vde={class:"ik-flie-list"},Hde={class:"name"},zde={key:1},Ude=["src"],Wde={class:"file-icon"},jde={class:"file-name-loading"},Zde={class:"file-name"},Gde={key:0},qde={key:0,class:"file-size"},Yde={class:"name"},Kde={class:"file-name-loading"},Xde={class:"file-name"},Qde={class:"file-size"},Jde={class:"operate-btn"},efe={class:"card"},tfe={class:"title"},nfe={key:0,class:"tip"},ofe={class:"ik-flie-list"},sfe={class:"name"},rfe={key:1},afe=["src"],ife={class:"file-icon"},lfe={class:"file-name-loading"},cfe={class:"file-name"},ufe={key:0},dfe={key:0,class:"file-size"},ffe={key:0},mfe=f.defineComponent({__name:"index",props:f.mergeModels({title:{type:String,default:"上传文件"},action:{type:String,default:""},type:{type:String,default:"button"},headers:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},limit:{type:Number,default:1},size:{type:Number,default:50},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},limitText:{type:String,default:""},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},kkUrl:{type:String,default:""},disabled:{type:Boolean,default:!1}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:f.mergeModels(["delete","exceed","success","error","outSize"],["update:modelValue"]),setup(c,{emit:i}){const u=c,g=i,C=f.useModel(c,"modelValue"),A={...{name:"name",url:"url",suffix:"suffix",size:"size"},...u.defaultFileds},D=f.computed(()=>u.size),L=f.ref(null),G=f.ref(null),W=f.ref([]),ae=f.ref(!1),ne=f.ref(!1),F=f.ref(null),ye=Ae=>{const Ke=Ae.size/1024/1024;if(!(Ke<D.value)){g("outSize"),Kt.ElMessage({message:`上传文件大小(${Ke.toFixed(4)}MB)超出允许最大值(${u.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3});const be=C.value.findIndex(fn=>fn.uid===Ae.uid);return C.value.splice(be,1),!1}return!0},le=()=>!1,te=(Ae,Ke)=>{var $e,be;Ae.status="ready",Ke!==void 0&&W.value.splice(Ke,1),($e=L.value)==null||$e.handleStart(Ae.raw),(be=L.value)==null||be.submit()},Se=(Ae,Ke)=>{var gn,Vt;const $e=C.value.length,be=u.limit-$e;let fn=0;for(;fn<be&&fn<Ae.length;)(gn=L.value)==null||gn.handleStart(Ae[fn]),(Vt=L.value)==null||Vt.submit(),fn++;Kt.ElMessage({message:(u==null?void 0:u.limitText)||`最大可上传${u.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),g("exceed",Ae)},ie=(Ae,Ke,$e)=>{g("success",Ae,Ke,$e)},Z=(Ae,Ke,$e)=>{W.value.push(Ke),g("error",Ae,Ke,$e)},we=Ae=>{var Ke,$e;F.value={...Ae,name:Ae[A.name],url:Ae[A.url]||(($e=(Ke=Ae==null?void 0:Ae.response)==null?void 0:Ke.data)==null?void 0:$e.id)},Ae&&Oc(Ae,A)==="video"||Ae&&Oc(Ae,A)==="image"?ne.value=!0:ae.value=!0},Bt=Ae=>{es.ikFile.downloadByOnlineUrl(Ae[A.url],Ae[A.name])},We=(Ae,Ke=!1)=>{var $e;($e=L.value)==null||$e.abort(Ae)},Q=Ae=>{var Ke;Ae.status!=="success"&&We(Ae),(Ke=L.value)==null||Ke.handleRemove(Ae),C.value=C.value.filter($e=>$e.uid!==Ae.uid),g("delete",Ae)},Be=(Ae,Ke)=>{W.value.splice(Ke,1)};return(Ae,Ke)=>{var be,fn,gn,Vt;const $e=f.resolveComponent("el-image-viewer");return f.openBlock(),f.createElementBlock(f.Fragment,null,[c.preview?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[c.type==="button"?(f.openBlock(),f.createBlock(f.unref(Kt.ElUpload),f.mergeProps({key:0,"file-list":C.value,"onUpdate:fileList":Ke[0]||(Ke[0]=$=>C.value=$),class:"ik-file-upload"},Ae.$attrs,{accept:c.accept,action:c.action,ref_key:"refUpload",ref:L,"on-change":Ae.handleChange,"before-upload":ye,"before-remove":le,"on-exceed":Se,multiple:c.multiple,headers:c.headers,limit:c.limit,"on-success":ie,"on-error":Z}),{trigger:f.withCtx(()=>[Ae.$slots.trigger?f.renderSlot(Ae.$slots,"trigger",{key:0},void 0,!0):(f.openBlock(),f.createBlock(f.unref(Kt.ElButton),{key:1,type:"primary",disabled:C.value.length>=c.limit,icon:f.unref(one)},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(c.title),1)]),_:1},8,["disabled","icon"]))]),file:f.withCtx(({file:$})=>[f.createElementVNode("div",Vde,[f.createElementVNode("div",Hde,[!Ae.$slots.fileIcon&&(!c.customIconData[f.unref(Oc)($,A)]||!c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon])?(f.openBlock(),f.createBlock(IF,{key:0,type:f.unref(Oc)($,A)},null,8,["type"])):!Ae.$slots.fileIcon&&c.customIconData[f.unref(Oc)($,A)]&&c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon]?(f.openBlock(),f.createElementBlock("div",zde,[c.customIconData[f.unref(Oc)($,A)][c.customIconFields.type]==="img"?(f.openBlock(),f.createElementBlock("img",{key:0,src:c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,Ude)):(f.openBlock(),f.createElementBlock("span",{key:1,class:f.normalizeClass([c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon],"file-icon-size"])},null,2))])):f.createCommentVNode("v-if",!0),f.createElementVNode("div",Wde,[f.renderSlot(Ae.$slots,"fileIcon",{file:$},void 0,!0)]),f.createElementVNode("div",jde,[f.createElementVNode("p",Zde,[f.createTextVNode(f.toDisplayString($[A.name]||$.name)+" ",1),$.percentage&&$.percentage!==100?(f.openBlock(),f.createElementBlock("span",Gde,"("+f.toDisplayString($.percentage)+"%)",1)):f.createCommentVNode("v-if",!0)]),$.percentage===100?(f.openBlock(),f.createElementBlock("p",qde,f.toDisplayString(f.unref(C$)($.size/1024/1024))+"MB ",1)):f.createCommentVNode("v-if",!0),$.percentage&&$.percentage!==100?(f.openBlock(),f.createBlock(f.unref(Kt.ElProgress),{key:1,"text-inside":"",percentage:$.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):f.createCommentVNode("v-if",!0)])]),f.createElementVNode("div",null,[$.status==="success"?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createVNode(f.unref(Jr),{onClick:Vn=>we($),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"]),f.createVNode(f.unref(Jr),{onClick:Vn=>Q($),warning:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(f.openBlock(),f.createBlock(f.unref(Jr),{key:1,onClick:Vn=>Q($),warning:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))])])]),default:f.withCtx(()=>{var $;return[!c.preview&&c.tip?(f.openBlock(),f.createBlock(f.unref(Kt.ElTooltip),{key:0,effect:"dark",content:u.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:f.withCtx(()=>[f.createVNode(f.unref(Kt.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(Kte))]),_:1})]),_:1},8,["content"])):f.createCommentVNode("v-if",!0),($=W.value)!=null&&$.length?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:1},f.renderList(W.value,(Vn,Dt)=>(f.openBlock(),f.createElementBlock("div",{class:"ik-error-flie-list",key:Vn.uid},[f.createElementVNode("div",Yde,[f.createVNode(f.unref(Kt.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:f.withCtx(()=>[f.createVNode(f.unref(cne))]),_:1}),f.createElementVNode("div",Kde,[f.createElementVNode("p",Xde,f.toDisplayString(Vn[A.name]||Vn.name),1),f.createElementVNode("p",Qde,f.toDisplayString(f.unref(C$)(Vn.size/1024/1024))+"MB ",1)])]),f.withDirectives(f.createElementVNode("div",Jde,[f.createVNode(f.unref(Kt.ElIcon),{style:{"vertical-align":"middle"},onClick:Mo=>te(Vn,Dt),title:"重新上传",class:"primary"},{default:f.withCtx(()=>[f.createVNode(f.unref(v$))]),_:2},1032,["onClick"]),f.createVNode(f.unref(Kt.ElIcon),{class:"error",onClick:Mo=>Be(Vn,Dt),title:"删除"},{default:f.withCtx(()=>[f.createVNode(f.unref(y$))]),_:2},1032,["onClick"])],512),[[f.vShow,(Vn==null?void 0:Vn.status)==="fail"]])]))),128)):f.createCommentVNode("v-if",!0)]}),_:3},16,["file-list","accept","action","on-change","multiple","headers","limit"])):(f.openBlock(),f.createBlock(f.unref(Kt.ElUpload),f.mergeProps({key:1,"file-list":C.value,"onUpdate:fileList":Ke[1]||(Ke[1]=$=>C.value=$),class:"ik-file-pload-card"},Ae.$attrs,{accept:c.accept,action:c.action,disabled:C.value.length>=c.limit,ref_key:"refUpload",ref:L,"on-change":Ae.handleChange,"before-upload":ye,"before-remove":le,"on-exceed":Se,multiple:c.multiple,headers:c.headers,limit:c.limit,"on-success":ie,"on-error":Z}),{file:f.withCtx(({file:$})=>[f.createElementVNode("div",ofe,[f.createElementVNode("div",sfe,[!Ae.$slots.fileIcon&&(!c.customIconData[f.unref(Oc)($,A)]||!c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon])?(f.openBlock(),f.createBlock(IF,{key:0,type:f.unref(Oc)($,A)},null,8,["type"])):!Ae.$slots.fileIcon&&c.customIconData[f.unref(Oc)($,A)]&&c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon]?(f.openBlock(),f.createElementBlock("div",rfe,[c.customIconData[f.unref(Oc)($,A)][c.customIconFields.type]==="img"?(f.openBlock(),f.createElementBlock("img",{key:0,src:c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,afe)):(f.openBlock(),f.createElementBlock("span",{key:1,class:f.normalizeClass([c.customIconData[f.unref(Oc)($,A)][c.customIconFields.icon],"file-icon-size"])},null,2))])):f.createCommentVNode("v-if",!0),f.createElementVNode("div",ife,[f.renderSlot(Ae.$slots,"fileIcon",{file:$},void 0,!0)]),f.createElementVNode("div",lfe,[f.createElementVNode("p",cfe,[f.createTextVNode(f.toDisplayString($[A.name]||$.name)+" ",1),$.percentage&&$.percentage!==100?(f.openBlock(),f.createElementBlock("span",ufe,"("+f.toDisplayString($.percentage)+"%)",1)):f.createCommentVNode("v-if",!0)]),$.percentage===100?(f.openBlock(),f.createElementBlock("p",dfe,f.toDisplayString(f.unref(C$)($.size/1024/1024))+"MB ",1)):f.createCommentVNode("v-if",!0),$.percentage&&$.percentage!==100?(f.openBlock(),f.createBlock(f.unref(Kt.ElProgress),{key:1,"text-inside":"",percentage:$.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):f.createCommentVNode("v-if",!0)])]),c.preview?(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[c.preview||$.percentage===100?(f.openBlock(),f.createBlock(f.unref(Kt.ElIcon),{key:0,title:"预览",class:"primary"},{default:f.withCtx(()=>[f.createVNode(f.unref(ine),{onClick:Vn=>we($)},null,8,["onClick"])]),_:2},1024)):f.createCommentVNode("v-if",!0),f.createVNode(f.unref(Kt.ElIcon),{title:"下载",class:"primary"},{default:f.withCtx(()=>[f.createVNode(f.unref(gK),{onClick:Vn=>Bt($)},null,8,["onClick"])]),_:2},1024)],64)):(f.openBlock(),f.createElementBlock("div",ffe,[$.status==="success"?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createVNode(f.unref(Jr),{onClick:Vn=>we($),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"]),f.createVNode(f.unref(Jr),{onClick:Vn=>Q($),warning:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(f.openBlock(),f.createBlock(f.unref(Jr),{key:1,onClick:Vn=>Q($),warning:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))]))])]),default:f.withCtx(()=>[f.createElementVNode("div",efe,[f.createElementVNode("div",tfe,[f.createVNode(f.unref(Jr),{name:"iksvg_img_shangchuanhetongfujianbeifen",type:"primary",bg:"",size:40}),f.createElementVNode("span",null,[f.createTextVNode(f.toDisplayString(c.title)+" ",1),C.value.length>=c.limit?(f.openBlock(),f.createElementBlock("span",nfe,"已达到上传最大文件数量限制("+f.toDisplayString(c.limit)+"个)",1)):f.createCommentVNode("v-if",!0)])]),f.createVNode(f.unref(Jr),{name:"iksvg_daoru",bg:"",size:40,padding:"8px"})])]),_:3},16,["file-list","accept","action","disabled","on-change","multiple","headers","limit"]))],64)),f.createVNode(f.unref(AJ),{modelValue:ae.value,"onUpdate:modelValue":Ke[2]||(Ke[2]=$=>ae.value=$),"load-url":c.loadUrl,url:(be=F.value)==null?void 0:be.url,"kk-url":c.kkUrl,"file-name":(fn=F.value)==null?void 0:fn.name},null,8,["modelValue","load-url","url","kk-url","file-name"]),(gn=F.value)!=null&&gn.url&&ne.value?(f.openBlock(),f.createBlock($e,{key:1,onClose:Ke[3]||(Ke[3]=$=>(F.value=null,ne.value=!1)),ref_key:"previewImgRef",ref:G,"url-list":[(Vt=F.value)==null?void 0:Vt.url]},null,8,["url-list"])):f.createCommentVNode("v-if",!0)],64)}}}),Q0e="",J0e="",hfe=ha(Br(mfe,[["__scopeId","data-v-67b5cebe"]])),gfe={},pfe={t:"1686214149488",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8490",width:"200",height:"200"},bfe=[f.createElementVNode("path",{d:"M369.569592 512.011256c0-14.328333-11.010775-25.945929-24.591071-25.945929L86.980515 486.065328c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.998005 0C358.55984 537.959232 369.569592 526.341636 369.569592 512.011256z","p-id":"8491"},null,-1),f.createElementVNode("path",{d:"M937.019485 486.064304 679.020456 486.064304c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.999029 0c13.580297 0 24.590048-11.618619 24.590048-25.947975C961.609533 497.682923 950.598758 486.064304 937.019485 486.064304z","p-id":"8492"},null,-1),f.createElementVNode("path",{d:"M512.011768 62.389956c-13.580297 0-24.590048 11.618619-24.590048 25.945929l0 257.170151c0 14.329357 11.010775 25.946952 24.590048 25.946952s24.591071-11.618619 24.591071-25.946952L536.602839 88.335884C536.602839 74.008574 525.591041 62.389956 512.011768 62.389956z","p-id":"8493"},null,-1),f.createElementVNode("path",{d:"M512.011768 652.544967c-13.580297 0-24.590048 11.618619-24.590048 25.946952l0 257.169127c0 14.33038 11.010775 25.947975 24.590048 25.947975s24.591071-11.618619 24.591071-25.947975L536.602839 678.491918C536.602839 664.162562 525.591041 652.544967 512.011768 652.544967z","p-id":"8494"},null,-1),f.createElementVNode("path",{d:"M377.001865 413.125085c4.744048 4.737908 10.818393 7.082302 16.882506 7.082302 6.519484 0 13.039991-2.724041 17.879206-8.134261 9.317203-10.414187 8.885368-26.834158-0.9967-36.678364L228.341057 193.559391c-9.832949-9.830903-25.406646-9.388834-34.760688 1.050935-9.317203 10.414187-8.885368 26.834158 0.9967 36.678364L377.001865 413.125085z","p-id":"8495"},null,-1),f.createElementVNode("path",{d:"M646.997112 610.873892c-9.846252-9.831926-25.419949-9.388834-34.761712 1.051959-9.317203 10.414187-8.885368 26.834158 0.997724 36.678364l182.41354 181.834348c4.743024 4.738931 10.818393 7.083326 16.881482 7.083326 6.520507 0 13.039991-2.723018 17.879206-8.134261 9.317203-10.41521 8.886391-26.834158-0.9967-36.678364L646.997112 610.873892z","p-id":"8496"},null,-1),f.createElementVNode("path",{d:"M630.114606 420.207387c6.064113 0 12.139481-2.344395 16.882506-7.082302l182.425819-181.836395c9.882068-9.844206 10.313903-26.264177 0.9967-36.678364-9.341762-10.43977-24.915459-10.882861-34.760688-1.050935L613.233124 375.394762c-9.882068 9.844206-10.314926 26.264177-0.997724 36.678364C617.074615 417.483346 623.595123 420.207387 630.114606 420.207387z","p-id":"8497"},null,-1),f.createElementVNode("path",{d:"M377.025401 610.873892 194.600605 792.710286c-9.881045 9.844206-10.313903 26.263154-0.9967 36.678364 4.839215 5.411243 11.358699 8.134261 17.879206 8.134261 6.064113 0 12.138458-2.344395 16.881482-7.083326l182.425819-181.834348c9.881045-9.844206 10.313903-26.264177 0.9967-36.678364C402.469909 601.485057 386.872676 601.041966 377.025401 610.873892z","p-id":"8498"},null,-1)];function yfe(c,i){return f.openBlock(),f.createElementBlock("svg",pfe,bfe)}const vfe=Br(gfe,[["render",yfe]]),DJ=c=>(f.pushScopeId("data-v-038e6320"),c=c(),f.popScopeId(),c),Cfe={key:1,class:"upload-btn"},wfe={class:"tip"},Sfe={class:"loading-statu"},_fe={class:"operate-btn"},Efe={key:0},xfe={class:"el-upload-list el-upload-list--picture-card",style:{float:"left"}},kfe=["onClick"],Tfe=DJ(()=>f.createElementVNode("span",{class:"error"},"上传错误",-1)),Afe=DJ(()=>f.createElementVNode("p",null,"点击重新上传",-1)),Dfe=["src"],Nfe={class:"demo-image__preview"},Ofe=f.defineComponent({__name:"index",props:f.mergeModels({title:{type:String,default:"上传图片"},loadUrl:{type:String,default:""},action:{type:String,default:""},headers:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},limit:{type:Number,default:50},size:{type:Number,default:50},accept:{type:String,default:"image/*"},fit:{type:String,default:"contain"},preview:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:f.mergeModels(["delete","success"],["update:modelValue"]),setup(c,{emit:i}){const u=c,g=f.useModel(c,"modelValue"),C=Ae=>Array.isArray(Ae)?Ae.map(Ke=>{var be,fn;const $e=((be=Ke.url)==null?void 0:be.startsWith("http"))||((fn=Ke.url)==null?void 0:fn.startsWith("blob"));return{...Ke,__url:$e?Ke.url:`${u.loadUrl}${Ke.url}`}}):Ae?[{url:Ae,__url:Ae!=null&&Ae.startsWith("http")||Ae!=null&&Ae.startsWith("blob")?Ae:`${u.loadUrl}${Ae}`}]:[],E=i,A=f.computed(()=>u.size),D=f.ref(null),L=f.ref([]),G=f.ref(!1),W=f.ref(0),ae=f.computed(()=>u.tipText||`最多可上传${u.limit}张图片, 每张图片不能超过${u.size}MB`),ne=(Ae,Ke)=>{},F=Ae=>!(!(Ae.type==="image/jpeg"||Ae.type==="image/png")||!(Ae.size/1024/1024<A.value)),ye=()=>!1,le=(Ae,Ke)=>{var $e,be;Ae.status="ready",Ke!==void 0&&L.value.splice(Ke,1),($e=D.value)==null||$e.handleStart(Ae.raw),(be=D.value)==null||be.submit()},te=(Ae,Ke)=>{var gn,Vt;const $e=g.value.length,be=u.limit-$e;let fn=0;for(;fn<be&&fn<(Ae==null?void 0:Ae.length);)(gn=D.value)==null||gn.handleStart(Ae==null?void 0:Ae[fn]),(Vt=D.value)==null||Vt.submit(),fn++},Se=(Ae,Ke,$e)=>{E("success",Ae,Ke,$e)},ie=(Ae,Ke,$e)=>{L.value.push({...Ke,__url:Ke.url})},Z=Ae=>{G.value=!0,W.value=g.value.findIndex(Ke=>Ke.url===Ae.url)},we=Ae=>{es.ikFile.downloadByOnlineUrl(Ae.__url||Ae.url,Ae.name)},Bt=Ae=>{var Ke;(Ke=D.value)==null||Ke.abort(Ae)},We=Ae=>{Ae.status!=="success"&&Bt(Ae),g.value=g.value.filter(Ke=>Ke.uid!==Ae.uid),E("delete",Ae)},Q=(Ae,Ke)=>{L.value.splice(Ke,1)},Be=f.computed(()=>g.value.length+L.value.length<u.limit);return(Ae,Ke)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createVNode(f.unref(Kt.ElUpload),{class:f.normalizeClass(["ik-image-upload",{preview:c.preview,"hide-upload":!Be.value}]),ref_key:"refUpload",ref:D,"list-type":"picture-card",accept:c.accept,action:c.action,headers:c.headers,data:c.data,"file-list":g.value,"onUpdate:fileList":Ke[0]||(Ke[0]=$e=>g.value=$e),multiple:c.multiple,limit:c.limit,"on-change":ne,"before-upload":F,"before-remove":ye,"on-exceed":te,"on-success":Se,"on-error":ie,drag:""},f.createSlots({trigger:f.withCtx(()=>[Ae.$slots.trigger?f.renderSlot(Ae.$slots,"trigger",{key:0},void 0,!0):(f.openBlock(),f.createElementBlock("div",Cfe,[f.createVNode(f.unref(Kt.ElIcon),{size:20},{default:f.withCtx(()=>[f.createVNode(f.unref(Jr),{name:"iksvg_guanbibeifen"})]),_:1}),f.createElementVNode("span",null,f.toDisplayString(c.title),1)]))]),file:f.withCtx(({file:$e})=>[f.createElementVNode("div",{class:f.normalizeClass(["load-list",{loading:$e.status==="uploading"}]),"element-loading-background":"var(--ik-upload-bg)"},[f.withDirectives(f.createElementVNode("div",Sfe,[f.createVNode(vfe),f.createTextVNode(" 上传"+f.toDisplayString($e.percentage)+"% ",1)],512),[[f.vShow,$e.status==="uploading"]]),f.createCommentVNode(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),f.createVNode(f.unref(Kt.ElImage),{style:{width:"100%",height:"100%"},src:$e.__url||$e.url,"zoom-rate":1.2,"initial-index":0,fit:"contain"},null,8,["src"]),f.createElementVNode("span",_fe,[f.createElementVNode("span",null,[f.createVNode(f.unref(Kt.ElIcon),{onClick:be=>Z($e)},{default:f.withCtx(()=>[f.createVNode(f.unref(dne))]),_:2},1032,["onClick"])]),f.createElementVNode("span",null,[f.createVNode(f.unref(Kt.ElIcon),{onClick:be=>we($e)},{default:f.withCtx(()=>[f.createVNode(f.unref(gK))]),_:2},1032,["onClick"])]),c.preview?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock("span",Efe,[f.createVNode(f.unref(Kt.ElIcon),{type:"warning",onClick:be=>We($e)},{default:f.withCtx(()=>[f.createVNode(f.unref(y$))]),_:2},1032,["onClick"])]))])],2)]),default:f.withCtx(()=>[f.createElementVNode("ul",xfe,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(L.value,($e,be)=>(f.openBlock(),f.createElementBlock("li",{class:"el-upload-list__item",key:$e.uid},[f.createElementVNode("span",null,[f.createVNode(f.unref(Kt.ElIcon),{onClick:fn=>Q($e,be)},{default:f.withCtx(()=>[f.createVNode(f.unref(mK))]),_:2},1032,["onClick"])]),f.createElementVNode("div",{class:f.normalizeClass(["load-list",{loading:$e.status==="uploading",fail:$e.status==="fail"}]),"element-loading-background":"var(--ik-upload-bg)"},[f.withDirectives(f.createElementVNode("div",{class:"loading-statu",onClick:fn=>le($e,be)},[f.createVNode(f.unref(Kt.ElIcon),{size:24},{default:f.withCtx(()=>[f.createVNode(f.unref(v$))]),_:1}),Tfe,Afe],8,kfe),[[f.vShow,$e.status==="fail"]]),f.createElementVNode("img",{src:$e.__url,alt:"",style:f.normalizeStyle({"object-fit":c.fit})},null,12,Dfe)],2)]))),128))])]),_:2},[c.tip?{name:"tip",fn:f.withCtx(()=>[f.createElementVNode("span",wfe,f.toDisplayString(ae.value),1)]),key:"0"}:void 0]),1032,["class","accept","action","headers","data","file-list","multiple","limit"]),f.createCommentVNode(" 文件预览 "),f.createElementVNode("div",Nfe,[G.value?(f.openBlock(),f.createBlock(f.unref(Kt.ElImageViewer),{key:0,"lock-scroll":"","hide-on-click-modal":"",onClose:Ke[1]||(Ke[1]=()=>{G.value=!1}),"url-list":C(Ae.fileList).map($e=>$e.__url),"initial-index":W.value},null,8,["url-list","initial-index"])):f.createCommentVNode("v-if",!0)])],64))}}),cbe="",Rfe=ha(Br(Ofe,[["__scopeId","data-v-038e6320"]])),Bfe=["src"],Mfe={name:"IkPrintConfig"},Ife=f.defineComponent({...Mfe,props:{id:{},srcPrefix:{default:""},token:{}},emits:["created"],setup(c,{emit:i}){const u=c,g=i,C=f.computed(()=>!!u.id),E=f.reactive({currentId:u.id,loading:!0,src:""}),A=async()=>{fetch(`${u.srcPrefix??""}/jmreport/save`,{method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json",Authorization:u.token??""}}).then(L=>L.json()).then(({code:L,result:G})=>{if(L===200){const W=G.id;E.currentId=W,E.src=`${u.srcPrefix??""}/jmreport/index/${E.currentId}?token=${u.token}&menuType=printinfo`,g("created",E.currentId)}}).catch(L=>{console.error(L)})},D=()=>{if(!C.value){A();return}E.src=`${u.srcPrefix??""}/jmreport/index/${E.currentId}?token=${u.token}`};return f.onMounted(()=>{D()}),(L,G)=>E.src?(f.openBlock(),f.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:E.src,frameborder:"0"},null,8,Bfe)):f.createCommentVNode("v-if",!0)}}),Pfe=ha(Ife),$fe=["src"],Ffe={name:"IkPrintView"},Lfe=f.defineComponent({...Ffe,props:{modelValue:{type:Boolean,default:!1},templateId:{},dataId:{},srcPrefix:{default:""},token:{},idKey:{default:"id"},width:{default:"100%"},height:{default:"calc(100vh - 186px)"}},emits:["update:modelValue"],setup(c,{emit:i}){const u=c,g=i,C=f.computed({get:()=>u.modelValue,set:D=>{g("update:modelValue",D)}}),E=f.reactive({src:"",showIframe:!1}),A=()=>{E.showIframe=!1,E.src=`${u.srcPrefix}/jmreport/view/${u.templateId}?token=${u.token??""}&${u.idKey}=${u.dataId}`,setTimeout(()=>{E.showIframe=!0},300)};return f.watch(()=>C.value,D=>{D&&A()}),f.onMounted(()=>{C.value&&A()}),(D,L)=>{const G=f.resolveComponent("el-dialog");return f.openBlock(),f.createBlock(G,{modelValue:C.value,"onUpdate:modelValue":L[0]||(L[0]=W=>C.value=W),fullscreen:"",title:"预览"},{default:f.withCtx(()=>[f.createElementVNode("div",{style:f.normalizeStyle({width:u.width,height:u.height})},[E.showIframe?(f.openBlock(),f.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:E.src,frameborder:"0"},null,8,$fe)):f.createCommentVNode("v-if",!0)],4)]),_:1},8,["modelValue"])}}}),Vfe=ha(Lfe),Hfe={class:"ik-full-calendar"},zfe=["onClick"],Ufe={key:0,class:"event-title allday"},Wfe={key:0,class:"event-title-time"},jfe={key:1,class:"event-title no-allday"},Zfe={class:"event-title-time"},Gfe={class:"event-title-text"},qfe={name:"IkFullCalendar"},Yfe=f.defineComponent({...qfe,props:{options:{default:{}},removable:{type:Boolean,default:!0},modelValue:{default:[]},tooltipFieldName:{default:"remark"}},emits:["added","deleted","update:modelValue","eventClick","deleteClick","dateSelect"],setup(c,{expose:i,emit:u}){const g=c,C=f.computed({get:()=>g.modelValue,set:ie=>E("update:modelValue",ie)}),E=u,A=f.ref(null),D=ie=>{},L=f.ref("dayGridMonth"),G=ie=>{E("dateSelect",ie)},W=ie=>{E("eventClick",ie)},ae=ie=>{E("deleteClick",ie)},ne=()=>({locale:vK,plugins:[aJ,wJ,hJ],headerToolbar:{left:"dayGridMonth,timeGridWeek,timeGridDay prev,today,next",center:"title",right:""},firstDay:1,initialView:"dayGridMonth",weekends:!0,editable:!0,selectable:!0,selectMirror:!0,dateClick:D,select:G,...g.options,events:C.value}),F=f.reactive({timeType:"month",options:ne()}),ye=f.ref(null),le=()=>{var ie;F.options=ne(),(ie=A.value)==null||ie.buildOptions(F.options)};i({...{prev:()=>{var ie;(ie=ye.value)==null||ie.prev()},next:()=>{var ie;(ie=ye.value)==null||ie.next()},today:()=>{var ie;(ie=ye.value)==null||ie.today()},changeView:ie=>{var Z;(Z=ye.value)==null||Z.changeView(ie),L.value=ie},getDate:()=>{var ie;return(ie=ye.value)==null?void 0:ie.getDate()},getView:()=>{var ie;return(ie=ye.value)==null?void 0:ie.view},unselect:()=>{var ie;return(ie=ye.value)==null?void 0:ie.unselect()}}}),f.watch(()=>C.value,()=>{le()});const Se=()=>{var ie;ye.value=(ie=A.value)==null?void 0:ie.getApi()};return f.onMounted(()=>{Se()}),(ie,Z)=>{const we=f.resolveComponent("el-tooltip"),Bt=f.resolveComponent("el-icon");return f.openBlock(),f.createElementBlock("div",Hfe,[f.createVNode(f.unref(KQ),{ref_key:"_ref",ref:A,options:F.options,style:{height:"100%"}},{eventContent:f.withCtx(We=>[f.createElementVNode("div",{class:"title-line",onClick:Q=>W(We)},[f.createVNode(we,null,{content:f.withCtx(()=>{var Q,Be;return[f.createCommentVNode(" {{arg}} "),f.createTextVNode(" "+f.toDisplayString((Be=(Q=We.event)==null?void 0:Q.extendedProps)==null?void 0:Be[g.tooltipFieldName]),1)]}),default:f.withCtx(()=>[We.event.allDay?(f.openBlock(),f.createElementBlock("span",Ufe,[L.value==="dayGridMonth"?(f.openBlock(),f.createElementBlock("span",Wfe,f.toDisplayString("(全天)"))):f.createCommentVNode("v-if",!0),f.createElementVNode("span",null,f.toDisplayString(We.event.title),1)])):(f.openBlock(),f.createElementBlock("span",jfe,[f.createElementVNode("span",Zfe,f.toDisplayString(f.unref(es.ikDate).toDateTime(We.event.startStr,"HH:mm")),1),f.createElementVNode("span",Gfe,f.toDisplayString(We.event.title),1)]))]),_:2},1024),g.removable?(f.openBlock(),f.createBlock(Bt,{key:0,size:16,onClick:f.withModifiers(Q=>ae(We),["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(hK))]),_:2},1032,["onClick"])):f.createCommentVNode("v-if",!0)],8,zfe)]),_:1},8,["options"])])}}}),dbe="",Kfe=Br(Yfe,[["__scopeId","data-v-f0925ff8"]]);let Xfe=class{constructor(){Xw(this,"id",new Date().getTime());Xw(this,"title","");Xw(this,"start","");Xw(this,"end","");Xw(this,"allDay",!1);Xw(this,"extendedProps",{})}};const NJ=ha(Kfe),Qfe={class:"ik-svg-icon ik-icon inline-block inline-flex justify-center line-height-[0]"},Jfe={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},eme=["xlink:href"],tme=["src"],nme={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},ome=["xlink:href"],sme=["src"],Jr=ha(f.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},opacity:{default:.5},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},primary:{type:Boolean},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(c){const i=c,u=f.computed(()=>{var C,E;return/^http?:\/\//.test(i.name)?"img":/i-[^:]+:[^:]+/.test(i.name)?"unocss":(C=i.name)!=null&&C.startsWith("iksig")?"iksig":(E=i.name)!=null&&E.includes(":")?"iconify":"svg"}),g=f.computed(()=>{const C=[];if(i.flip)switch(i.flip){case"horizontal":C.push("rotateY(180deg)");break;case"vertical":C.push("rotateX(180deg)");break;case"both":C.push("rotateX(180deg)"),C.push("rotateY(180deg)");break}return i.rotate&&C.push(`rotate(${i.rotate%360}deg)`),{...i.color&&{color:i.color},...i.size&&{fontSize:typeof i.size=="number"?`${i.size}px`:i.size},...C.length&&{transform:C.join(" ")},padding:i.padding,...i.color&&u.value!=="iksig"?{"--ik-color-icon-dark":i.color,"--ik-color-icon-light":es.ikColor.setOpacity(i.color,i.opacity||.4)}:{},...i.type==="primary"||i.primary?{"--ik-color-icon-dark":"var(--ik-theme-color)","--ik-color-icon-light":"var(--ik-color-icon-light-hover)","--ik-color-bg-icon":"var(--ik-color-bg-button-secondary)"}:i.type==="warning"?{"--ik-color-icon-dark":"var(--ik-color-error)","--ik-color-icon-light":"var(--ik-color-icon-error-light)","--ik-color-bg-icon":"var(--ik-color-icon-error-bg)"}:{}}});return(C,E)=>{const A=f.resolveComponent("el-tooltip");return f.openBlock(),f.createElementBlock("span",Qfe,[C.notip||!C.title?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[C.name]:u.value==="unocss","show-bg":C.showBg||C.bg,default:C.size==="default",small:C.size==="small",big:C.size==="big",warning:C.warning,primary:C.primary,active:C.active,disabled:C.disabled}]),style:f.normalizeStyle(g.value)},[f.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),u.value==="iksig"?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(`iksig ${C.name}`),style:f.normalizeStyle(g.value)},null,6)):u.value==="svg"?(f.openBlock(),f.createElementBlock("svg",Jfe,[f.createElementVNode("use",{"xlink:href":`#${C.name}`},null,8,eme)])):u.value==="img"?(f.openBlock(),f.createElementBlock("img",{key:2,src:C.name,class:"h-[1em] w-[1em]"},null,8,tme)):f.createCommentVNode("v-if",!0)],6)):(f.openBlock(),f.createBlock(A,{key:1,content:C.title,placement:"right"},{default:f.withCtx(()=>[f.createElementVNode("i",{class:f.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[C.name]:u.value==="unocss","show-bg":C.showBg||C.bg,default:C.size==="default",primary:C.primary,small:C.size==="small",big:C.size==="big",warning:C.warning,active:C.active}]),style:f.normalizeStyle(g.value)},[u.value==="iksig"?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(`iksig ${C.name}`),style:f.normalizeStyle(g.value)},null,6)):u.value==="svg"?(f.openBlock(),f.createElementBlock("svg",nme,[f.createElementVNode("use",{"xlink:href":`#${C.name}`},null,8,ome)])):u.value==="img"?(f.openBlock(),f.createElementBlock("img",{key:2,src:C.name,class:"h-[1em] w-[1em]"},null,8,sme)):f.createCommentVNode("v-if",!0)],6)]),_:1},8,["content"]))])}}})),PF=c=>(f.pushScopeId("data-v-e308f501"),c=c(),f.popScopeId(),c),rme={class:"ik-schedule"},ame={class:"ik-schedule__left"},ime={class:"ik-schedule__header"},lme={class:"ik-schedule__title"},cme=PF(()=>f.createElementVNode("div",{class:"ik-schedule__header-right"},null,-1)),ume={class:"ik-schedule__body"},dme={style:{"font-size":"18px"}},fme={key:0},mme={style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},hme={key:0,style:{"margin-left":"2%"}},gme=PF(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),pme={key:1},bme=PF(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),yme={class:"dialog-footer"},vme={name:"IkSchedule"},Cme=f.defineComponent({...vme,props:{modelValue:{default:[]},options:{default:{initialView:"dayGridMonth"}},editVisible:{type:Boolean},removable:{type:Boolean,default:!0}},emits:["update:modelValue","added","updated","deleted","editOpen","submit","update:editVisible","submitAdd","submitUpdate","submitDelete"],setup(c,{expose:i,emit:u}){var Q;const g=c,C=u,E=!!f.useSlots().form,A=f.computed({get:()=>g.modelValue,set:Be=>{C("update:modelValue",Be)}}),D=f.computed(()=>({...g.options,headerToolbar:!1})),L=f.reactive({currentView:(Q=g.options)==null?void 0:Q.initialView,viewTitle:"",rightLabel:"今日",timeType:"month",currentDate:null}),G=f.ref(null),W=Be=>{var Ae;(Ae=G.value)==null||Ae.changeView(Be),L.currentView=Be,ae()},ae=()=>{var Ae;const Be=(Ae=G.value)==null?void 0:Ae.getView();L.viewTitle=Be==null?void 0:Be.title},ne=()=>{var Be;(Be=G.value)==null||Be.prev(),ae()},F=()=>{var Be;(Be=G.value)==null||Be.next(),ae()},ye=()=>{var Be;(Be=G.value)==null||Be.today(),ae()},le=Be=>L.currentView===Be,te=f.ref(null),Se={createDefaultForm:()=>({title:"",allDay:!1,type:1,startDate:"",endDate:"",startTime:"",endTime:"",location:"",remark:""}),close:()=>{Z.value=!1},customSubmit:Be=>{var Ke,$e;let Ae={...Be,id:void 0,allDay:ie.form.allDay,start:(Ke=ie.selectInfo)==null?void 0:Ke.startStr,end:($e=ie.selectInfo)==null?void 0:$e.endStr};Se.operation(Ae),Se.close()},operation:Be=>{var Ae;ie.operation==="add"?C("submitAdd",Be):(Be.id=(Ae=ie.editEvent)==null?void 0:Ae.id,C("submitUpdate",Be))},submit:async()=>{var Ae,Ke;if(E){C("submit");return}if(!ie.form.title){Kt.ElMessage.info("标题不能为空");return}if(!ie.form.allDay&&(!ie.form.startTime||!ie.form.endTime)){Kt.ElMessage.info("时间不能为空");return}let Be={id:void 0,title:ie.form.title,allDay:ie.form.allDay,start:(Ae=ie.selectInfo)==null?void 0:Ae.startStr,end:(Ke=ie.selectInfo)==null?void 0:Ke.endStr,extendedProps:{...ie.form}};if(Be.allDay)Be.start=es.ikDate.toDate(ie.form.startDate),Be.end=es.ikDate.toDate(ie.form.endDate);else{const $e=es.ikDate.toDate(ie.form.startDate),be=es.ikDate.toDateTime(ie.form.startTime).substring(10),fn=es.ikDate.toDateTime(ie.form.endTime).substring(10);Be.start=`${$e}${be}`,Be.end=`${$e}${fn}`,Be.extendedProps.startTime=Be.start,Be.extendedProps.endTime=Be.end}Se.operation(Be),Se.close()},reset:()=>{var Be;ie.form=Se.createDefaultForm(),(Be=te.value)==null||Be.clearValidate()},edit:()=>{ie.editable=!0,ie.title="编辑日程"},cancelEdit:()=>{ie.editable=!1,ie.title="日程信息"},del:()=>{We(ie.clickInfo)}},ie=f.reactive({operation:"update",selectInfo:{},editEvent:void 0,title:"",visible:!1,allDay:!1,form:Se.createDefaultForm(),editable:!1,clickInfo:null}),Z=f.computed({get:()=>ie.visible,set:Be=>{ie.visible=Be}}),we=Be=>{var Ae;if(ie.form.allDay=Be.allDay,ie.selectInfo=Be,Se.reset(),Be.view.type=="dayGridMonth"){let Ke=Be.end.getTime()-864e5;L.timeType="month",ie.form.startDate=es.ikDate.toYMD(Be.start),ie.form.endDate=es.ikDate.toYMD(new Date(Ke)),ie.form.allDay=!0}else Be.view.type=="timeGridWeek"?L.timeType="week":Be.view.type=="timeGridDay"&&(L.timeType="day"),ie.form.startDate=es.ikDate.toYMD(Be.start),ie.form.endDate=es.ikDate.toYMD(Be.start),ie.form.startTime=es.ikDate.toDateTime(Be.start),ie.form.endTime=es.ikDate.toDateTime(Be.end);(Ae=G.value)==null||Ae.unselect(),f.nextTick(()=>{ie.title="新建日程",ie.operation="add",ie.editable=!0,Z.value=!0,C("editOpen",JSON.parse(JSON.stringify(ie)))})},Bt=Be=>{ie.title="日程信息",ie.operation="update",ie.clickInfo=Be,ie.editEvent=Be.event;debugger;ie.editEvent.allDay?(ie.form.startDate=ie.editEvent.startStr,ie.form.endDate=ie.editEvent.startStr):(ie.form.startDate=ie.editEvent.startStr,ie.form.startTime=ie.editEvent.start,ie.form.endTime=ie.editEvent.end),ie.form.title=ie.editEvent.title,ie.form.allDay=ie.editEvent.allDay,Dte.copyValue(ie.form,ie.editEvent.extendedProps),Se.cancelEdit(),Z.value=!0,C("editOpen",JSON.parse(JSON.stringify(ie)))},We=Be=>{Kt.ElMessageBox.confirm(`你确定删除事件 ${Be.event.title} ?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Se.close(),C("submitDelete",Be.event.id)})};return i({customSubmit:Be=>Se.customSubmit(Be)}),f.onMounted(()=>{ae()}),(Be,Ae)=>{const Ke=f.resolveComponent("el-button"),$e=f.resolveComponent("el-button-group"),be=f.resolveComponent("el-icon"),fn=f.resolveComponent("el-space"),gn=f.resolveComponent("el-input"),Vt=f.resolveComponent("el-form-item"),$=f.resolveComponent("el-date-picker"),Vn=f.resolveComponent("el-time-picker"),Dt=f.resolveComponent("el-checkbox"),Mo=f.resolveComponent("el-form"),vn=f.resolveComponent("el-dialog");return f.openBlock(),f.createElementBlock("div",rme,[f.createElementVNode("div",ame,[f.createElementVNode("div",ime,[f.createVNode(fn,{style:{"flex-shrink":"0"},size:24},{default:f.withCtx(()=>[f.createVNode($e,null,{default:f.withCtx(()=>[f.createVNode(Ke,{onClick:Ae[0]||(Ae[0]=at=>W("dayGridMonth")),type:le("dayGridMonth")?"primary":""},{default:f.withCtx(()=>[f.createTextVNode("月")]),_:1},8,["type"]),f.createVNode(Ke,{onClick:Ae[1]||(Ae[1]=at=>W("timeGridWeek")),type:le("timeGridWeek")?"primary":""},{default:f.withCtx(()=>[f.createTextVNode("周")]),_:1},8,["type"]),f.createVNode(Ke,{onClick:Ae[2]||(Ae[2]=at=>W("timeGridDay")),type:le("timeGridDay")?"primary":""},{default:f.withCtx(()=>[f.createTextVNode("日")]),_:1},8,["type"])]),_:1}),f.createElementVNode("span",lme,f.toDisplayString(L.viewTitle),1),f.createVNode($e,{style:{"flex-shrink":"0"}},{default:f.withCtx(()=>[f.createVNode(Ke,{onClick:ne},{default:f.withCtx(()=>[f.createVNode(be,null,{default:f.withCtx(()=>[f.createVNode(f.unref(cK))]),_:1})]),_:1}),f.createVNode(Ke,{onClick:ye},{default:f.withCtx(()=>[f.createTextVNode("今天")]),_:1}),f.createVNode(Ke,{onClick:F},{default:f.withCtx(()=>[f.createVNode(be,null,{default:f.withCtx(()=>[f.createVNode(f.unref(uK))]),_:1})]),_:1})]),_:1})]),_:1}),cme]),f.createElementVNode("div",ume,[f.createVNode(f.unref(NJ),{removable:Be.removable,onDateSelect:we,onDeleteClick:We,onEventClick:Bt,ref_key:"_refCalendar",ref:G,options:D.value,modelValue:A.value,"onUpdate:modelValue":Ae[3]||(Ae[3]=at=>A.value=at)},null,8,["removable","options","modelValue"])])]),f.createCommentVNode(" 新建/修改对话框 "),f.createVNode(vn,{width:"700px",modelValue:Z.value,"onUpdate:modelValue":Ae[11]||(Ae[11]=at=>Z.value=at)},{header:f.withCtx(()=>[f.createElementVNode("div",null,[f.createElementVNode("span",dme,f.toDisplayString(ie.title),1),ie.operation==="update"?(f.openBlock(),f.createElementBlock("span",fme,[ie.editable?(f.openBlock(),f.createBlock(f.unref(Jr),{key:1,style:{"margin-left":"4px"},name:"iksvg_qiehuan-daohang",onClick:Se.cancelEdit},null,8,["onClick"])):(f.openBlock(),f.createBlock(f.unref(Jr),{key:0,style:{"margin-left":"4px"},name:"iksvg_xiugai",onClick:Se.edit},null,8,["onClick"]))])):f.createCommentVNode("v-if",!0)])]),footer:f.withCtx(()=>[f.createElementVNode("span",yme,[f.renderSlot(Be.$slots,"form-footer",{},()=>[f.createElementVNode("span",null,[f.createVNode(Ke,{onClick:Se.close},{default:f.withCtx(()=>[f.createTextVNode("取消")]),_:1},8,["onClick"]),f.createVNode(Ke,{onClick:Se.del},{default:f.withCtx(()=>[f.createTextVNode("删除")]),_:1},8,["onClick"]),f.createVNode(Ke,{type:"primary",onClick:Se.submit},{default:f.withCtx(()=>[f.createTextVNode("确定")]),_:1},8,["onClick"])])],!0)])]),default:f.withCtx(()=>[f.renderSlot(Be.$slots,"form",{},()=>[f.createVNode(Mo,{ref_key:"_editFormRef",ref:te,model:ie.form,disabled:!ie.editable},{default:f.withCtx(()=>[f.createVNode(Vt,null,{default:f.withCtx(()=>[f.createVNode(be,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(dK))]),_:1}),f.createVNode(gn,{modelValue:ie.form.title,"onUpdate:modelValue":Ae[4]||(Ae[4]=at=>ie.form.title=at),placeholder:"请输入标题",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1}),f.createVNode(Vt,null,{default:f.withCtx(()=>[f.createVNode(be,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(fK))]),_:1}),f.createElementVNode("div",mme,[f.createVNode($,{disabled:"",modelValue:ie.form.startDate,"onUpdate:modelValue":Ae[5]||(Ae[5]=at=>ie.form.startDate=at),type:"date",placeholder:"开始日期",style:f.normalizeStyle({width:ie.form.allDay?"45%":"90%"})},null,8,["modelValue","style"]),ie.form.allDay?(f.openBlock(),f.createElementBlock("div",pme,[bme,f.createVNode($,{disabled:"",modelValue:ie.form.endDate,"onUpdate:modelValue":Ae[8]||(Ae[8]=at=>ie.form.endDate=at),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(f.openBlock(),f.createElementBlock("div",hme,[f.createVNode(Vn,{modelValue:ie.form.startTime,"onUpdate:modelValue":Ae[6]||(Ae[6]=at=>ie.form.startTime=at),type:"datetime",placeholder:"开始时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),gme,f.createVNode(Vn,{modelValue:ie.form.endTime,"onUpdate:modelValue":Ae[7]||(Ae[7]=at=>ie.form.endTime=at),type:"datetime",placeholder:"结束时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),f.createVNode(Dt,{modelValue:ie.form.allDay,"onUpdate:modelValue":Ae[9]||(Ae[9]=at=>ie.form.allDay=at),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])]),_:1}),f.createVNode(Vt,null,{default:f.withCtx(()=>[f.createVNode(be,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(Wte))]),_:1}),f.createVNode(gn,{type:"textarea",modelValue:ie.form.remark,"onUpdate:modelValue":Ae[10]||(Ae[10]=at=>ie.form.remark=at),placeholder:"描述",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])],!0)]),_:3},8,["modelValue"])])}}}),mbe="",wme=ha(Br(Cme,[["__scopeId","data-v-e308f501"]])),Sme={key:0,class:"ik-tabs-split overflow-overlay gl-padding"},_me=f.defineComponent({__name:"IkPageTabs",props:f.mergeModels({tabs:{type:Array,default:()=>[]},defaultSlot:{type:Boolean,default:!0},lazyTab:{type:Boolean,default:!1},split:{type:Boolean,default:!1}},{modelValue:{type:String||Number,default:""},modelModifiers:{}}),emits:f.mergeModels(["tabClick","search"],["update:modelValue"]),setup(c,{emit:i}){const u=c,g=i,C=f.useModel(c,"modelValue"),E=f.ref(new Map);for(const D of u.tabs)E.value.set(D.id,u.lazyTab?D.id!==C.value:!1);const A=D=>{C.value=D.paneName,E.value.get(D.paneName)||g("tabClick",D.paneName,D),E.value.set(D.paneName,!1)};return(D,L)=>{const G=f.resolveComponent("el-tab-pane"),W=f.resolveComponent("el-tabs");return f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createCommentVNode(' <div class="flex-1 contents"> '),f.createVNode(W,{modelValue:C.value,"onUpdate:modelValue":L[0]||(L[0]=ae=>C.value=ae),class:f.normalizeClass(["ik-tabs",{"is-default":D.$slots.default,"split gl-padding gl-container":c.split}]),onTabClick:A},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(c.tabs,ae=>(f.openBlock(),f.createBlock(G,{key:ae.id,disabled:ae==null?void 0:ae.disabled,name:ae.id},{label:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(ae.label),1)]),default:f.withCtx(()=>[!D.$slots.default&&!E.value.get(ae.id)&&!c.split?f.renderSlot(D.$slots,ae.id,{key:0},void 0,!0):f.createCommentVNode("v-if",!0)]),_:2},1032,["disabled","name"]))),128)),f.createCommentVNode(" 当存在默认slot且需要展示默认slot时 "),D.$slots.default&&c.defaultSlot&&!c.split?f.renderSlot(D.$slots,"default",{key:0},void 0,!0):f.createCommentVNode("v-if",!0)]),_:3},8,["modelValue","class"]),c.split?(f.openBlock(),f.createElementBlock("div",Sme,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(c.tabs,ae=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[!D.$slots.default&&!E.value.get(ae.id)?f.renderSlot(D.$slots,ae.id,{key:0},void 0,!0):f.createCommentVNode("v-if",!0)],64))),256)),D.$slots.default&&c.defaultSlot?f.renderSlot(D.$slots,"default",{key:0},void 0,!0):f.createCommentVNode("v-if",!0)])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" </div> ")],64)}}}),gbe="",Eme=ha(Br(_me,[["__scopeId","data-v-e282a7f2"]]));var F1=(c=>(c.input="input",c.area="area",c.number="number",c.select="select",c.date="date",c.datetime="datetime",c.checkbox="checkbox",c.radio="radio",c.treeselect="treeselect",c.choosePerson="choosePerson",c))(F1||{}),k2=(c=>(c.year="year",c.month="month",c.date="date",c.dates="dates",c.datetime="datetime",c.week="week",c.datetimerange="datetimerange",c.daterange="daterange",c.monthrange="monthrange",c))(k2||{});function OJ(c){return typeof c=="function"||Object.prototype.toString.call(c)==="[object Object]"&&!f.isVNode(c)}const xme=f.defineComponent({name:"IkSearchAuto",props:{list:{required:!0,type:Array,default:()=>[]},shadow:{type:String,default:"never"},immediate:{type:Boolean,default:!0},tab:{type:String,default:""},search:{type:Function,default:null},loading:{type:Boolean,default:!1}},emits:["search","pickerChange"],setup(c,{emit:i,expose:u}){const g=f.ref(),C={},E=f.ref({}),A=f.ref([]),D=f.ref({...E.value});f.watch(A,(Rt,ao)=>{const ft=ao.filter(zt=>!Rt.includes(zt));if(ft.length){let zt=!1;ft.forEach(qe=>{D.value[qe]!==void 0&&(zt=!0),D.value[qe]=void 0}),zt&&i("search",D.value)}});const L=()=>{A.value=[],c.list.forEach(Rt=>{var ao,ft;E.value[Rt.key]=E.value[Rt.value],C[Rt.key]=C[Rt.value],A.value.push(Rt.key),(ao=D.value)[ft=Rt.key]??(ao[ft]=Rt.value||null)})};L(),f.watch(()=>c.list,()=>{L()});const G=f.computed(()=>A.value.map(Rt=>c.list.find(ao=>ao.key===Rt))),W=()=>{var Rt;D.value.page=1,(Rt=c.search)==null||Rt.call(c,D.value),i("search",D.value)};u({resetForm:()=>{var Rt,ao;(ao=(Rt=g.value)==null?void 0:Rt.resetFields)==null||ao.call(Rt),W()},reRequest:()=>{W()}});const F=()=>{var Rt;i("search",D.value),(Rt=c.search)==null||Rt.call(c,D.value)},ye=Rt=>{Rt.key==="Enter"&&W()},le=()=>{var Rt;(Rt=g.value)==null||Rt.resetFields(),W()};c.immediate&&W();const te=({maxlength:Rt,minlength:ao,key:ft,disabled:zt,placeholder:qe,formProp:lt={},value:K,label:fo})=>f.createVNode(Kt.ElInput,f.mergeProps({modelValue:D.value[ft],"onUpdate:modelValue":[An=>D.value[ft]=An,An=>D.value[ft]=An],clearable:!0,maxlength:Rt,minlength:ao,disabled:zt,onBlur:()=>F()},lt,{placeholder:(lt==null?void 0:lt.placeholder)||qe||`请输入${fo||""}`}),null),Se=({key:Rt,placeholder:ao,max:ft,min:zt,disabled:qe,precision:lt,step:K=1,label:fo,formProp:An={}})=>f.createVNode(Kt.ElInputNumber,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":wo=>D.value[Rt]=wo,clearable:!0,max:ft,min:zt,disabled:qe,precision:lt,step:K,onChange:()=>F()},An,{placeholder:(An==null?void 0:An.placeholder)||ao||`请输入${fo||""}`}),null),ie=({key:Rt,placeholder:ao,disabled:ft,options:zt,label:qe,multiple:lt=!1,filterable:K=!0,formProp:fo={}})=>f.createVNode(Kt.ElSelect,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":An=>D.value[Rt]=An,clearable:!0,disabled:ft,multiple:lt,filterable:K,onChange:()=>F()},fo,{placeholder:(fo==null?void 0:fo.placeholder)||ao||`请选择${qe||""}`}),{default:()=>[zt==null?void 0:zt.map(An=>f.createVNode(Kt.ElOption,{key:An.value,label:An.label,value:An.value},null))]}),Z=({key:Rt,disabled:ao,options:ft,formProp:zt={}})=>f.createVNode(Kt.ElRadioGroup,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":qe=>D.value[Rt]=qe,disabled:ao,onChange:()=>F()},zt),{default:()=>[ft==null?void 0:ft.map(qe=>(zt==null?void 0:zt.radioType)==="button"?f.createVNode(Kt.ElRadioButton,{key:qe.value,label:qe.value,name:qe.label},null):f.createVNode(Kt.ElRadio,{key:qe.value,label:qe.value,name:qe.label},null))]}),we=({key:Rt,disabled:ao,options:ft,min:zt,max:qe,formProp:lt={}})=>f.createVNode(Kt.ElCheckboxGroup,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":K=>D.value[Rt]=K,disabled:ao,max:qe,min:zt,onChange:()=>F()},lt),{default:()=>[ft==null?void 0:ft.map(K=>f.createVNode(Kt.ElCheckbox,{key:K.value,label:K.label,value:K.value},null))]}),Bt=({key:Rt,label:ao,formProp:ft={},placeholder:zt})=>f.createVNode(Kt.ElDatePicker,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":qe=>D.value[Rt]=qe,onChange:()=>F()},ft,{placeholder:(ft==null?void 0:ft.placeholder)||zt||`请选择${ao}时间`}),null),We=({key:Rt,disabled:ao,editable:ft=!0,startPlaceholder:zt="开始日期",endplaceholder:qe="结束日期",dateType:lt=k2.date,format:K,placeholder:fo="请选择日期",popperclass:An,rangeSeparator:wo="-",defaultValue:Oo,defaultTime:ea,valueFormat:mt,disabledDate:Gt=()=>!1,formProp:ct={}})=>{let Ve=K;if(Ve)switch(lt){case k2.date:case k2.dates:Ve="YYYY-MM-DD";break;case k2.year:Ve="YYYY";break;case k2.month:Ve="YYYY-MM";break;case k2.week:Ve="YYYY-MM-DD";break;default:Ve=""}return f.createVNode(Kt.ElDatePicker,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":xn=>D.value[Rt]=xn,onChange:()=>F(),disabled:ao,type:lt,editable:ft,startPlaceholder:zt,endPlaceholder:qe,rangeSeparator:wo,format:Ve,popperClass:An,defaultValue:Oo,defaultTime:ea,valueFormat:mt,disabledDate:Gt},ct,{placeholder:(ct==null?void 0:ct.placeholder)||fo||"请选择日期"}),null)},Q=({key:Rt,options:ao,multiple:ft=!1,filterable:zt=!0,nodeKey:qe="id",props:lt,highlightCurrent:K=!0,defaultExpandAll:fo=!1,expandOnClickNode:An=!1,placeholder:wo="全部",checkOnClickNode:Oo=!1,showCheckbox:ea=!1,checkStrictly:mt=!0,defaultCheckedKeys:Gt=[],currentNodeKey:ct="",accordion:Ve=!1,formProp:xn={},label:_t})=>f.createVNode(Kt.ElTreeSelect,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":vt=>D.value[Rt]=vt,data:ao,onChange:()=>F(),clearable:!0,multiple:ft,props:lt,placeholder:wo,filterable:zt,nodeKey:qe,highlightCurrent:K,defaultExpandAll:fo,expandOnClickNode:An,checkOnClickNode:Oo,showCheckbox:ea,checkStrictly:mt,defaultCheckedKeys:Gt,currentNodeKey:ct,accordion:Ve},xn,{placeholder:(xn==null?void 0:xn.placeholder)||wo||`请选择${_t||""}`}),null),Be=({key:Rt,selectKey:ao,placeholder:ft,disabled:zt,options:qe,multiple:lt=!1,filterable:K=!0,formProp:fo={}})=>f.createVNode(Kt.ElInput,f.mergeProps({disabled:zt,modelValue:D.value[Rt],"onUpdate:modelValue":An=>D.value[Rt]=An,onBlur:()=>F()},fo,{placeholder:(fo==null?void 0:fo.placeholder)||ft||"全部"}),{prepend:()=>f.createVNode(Kt.ElSelect,f.mergeProps({disabled:zt,multiple:lt,filterable:K,modelValue:D.value[ao],"onUpdate:modelValue":An=>D.value[ao]=An,onChange:()=>F()},fo),{default:()=>[qe==null?void 0:qe.map(An=>f.createVNode(Kt.ElOption,{key:An.value,label:An.label,value:An.value},null))]})}),Ae="",Ke="iking",$e=f.ref(null),be=f.ref([]),fn=f.ref(!1),gn=f.ref(""),Vt=new Map,$=Rt=>{fn.value=!0,be.value=Vt.has(Rt)?Vt.get(Rt):D.value[Rt],gn.value=Rt},Vn=()=>{Vt.set(gn.value,[]),gn.value="",F()},Dt=Rt=>{var ao,ft;D.value[gn.value]=(ao=Rt.list.map(zt=>zt.elementName))==null?void 0:ao.join(","),Vt.set(gn.value,Rt.list),i("search",D.value),i("pickerChange",Rt),(ft=c.search)==null||ft.call(c,D.value)},Mo=({key:Rt,placeholder:ao,typeOption:ft,_list:zt,maxlength:qe,minlength:lt,disabled:K,formProp:fo})=>f.createVNode(Kt.ElInput,f.mergeProps({modelValue:D.value[Rt],"onUpdate:modelValue":An=>D.value[Rt]=An,clearable:!0,maxlength:qe,minlength:lt,disabled:K},fo,{onClick:()=>$(Rt),onClear:()=>Vn(),placeholder:(fo==null?void 0:fo.placeholder)||ao||`点击选择${label||"人员"}`}),null),vn=Rt=>{switch(Rt.type){case"":case void 0:case F1.input:case"el-input":return te(Rt);case F1.number:case"el-input-number":return Se(Rt);case F1.select:case"el-select":return ie(Rt);case F1.checkbox:case"el-checkbox":return we(Rt);case F1.radio:case"el-radio-group":case"el-radio":return Z(Rt);case F1.date:case"el-date-picker":return We(Rt);case"el-time-select":return Bt(Rt);case F1.treeselect:case"el-tree-select":return Q(Rt);case F1.choosePerson:return Mo(Rt);case"select-input":return Be(Rt);default:return f.createVNode(f.Fragment,null,null)}},at=f.computed(()=>{var ft;const Rt=[],ao=G.value.length-1;return(ft=G.value)==null||ft.forEach((zt,qe)=>{let lt,K;if(!zt)return[];const fo=zt.col||1;Rt.push(f.createVNode(Kt.ElCol,{xl:{span:fo*6},lg:{span:fo*6},md:{span:fo*12},sm:{span:fo*24}},{default:()=>[qe===ao?f.createVNode("div",{class:"last-form"},[f.createVNode(Kt.ElFormItem,{label:zt.type==="select-input"?"":zt.label,prop:zt.key},OJ(lt=vn(zt))?lt:{default:()=>[lt]}),f.createVNode(Jr,{name:"icon-sousuo1",pop:!0,title:"搜索",size:"big","show-bg":!0,width:40,onClick:()=>F()},null),f.createVNode(Jr,{name:"icon-zhongzhi",pop:!0,title:"重置并搜索",size:"big","show-bg":!0,width:40,onClick:()=>le()},null)]):f.createVNode(Kt.ElFormItem,{label:zt.type==="select-input"?"":zt.label,prop:zt.key},OJ(K=vn(zt))?K:{default:()=>[K]})]}))}),Rt});return()=>f.createVNode(f.Fragment,null,[f.createVNode(Kt.ElCard,{class:"gl-search-card",shadow:c.shadow},{default:()=>[f.createVNode(Kt.ElForm,{class:"auto-search-form",onKeyup:ye,ref:g,model:D.value},{default:()=>[f.createVNode(Kt.ElRow,{gutter:16},{default:()=>[at.value]})]})]}),f.createVNode(rk,{ref:$e.value,modelValue:be.value,"onUpdate:modelValue":Rt=>be.value=Rt,show:fn.value,"onUpdate:show":Rt=>fn.value=Rt,"append-to-body":!0,api:{methods:"post",url:`${Ae}/server/component/pick/mix`,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:Ke}},tabs:["group","role","post"],chooseType:["user"],typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},propOption:{name:"elementName",id:"elementId",type:"elementType"},onOk:Rt=>Dt(Rt)},null)])}}),kme={class:"header-left"},Tme={class:"title"},Ame={class:"flex items-center"},Dme=f.defineComponent({__name:"IkPageHead",props:f.mergeModels({headerTitle:{type:String,default:""},headerBorder:{type:Boolean,default:!1},fields:{required:!0,type:Array,default:()=>[]},search:{type:Function,default:null},loading:{type:Boolean,default:!1},tabId:{type:Number||String,default:0},exportBtn:{type:Boolean,default:!1},refreshBtn:{type:Boolean,default:!1},settingBtn:{type:Boolean,default:!0},defaultShow:{type:Boolean,default:!1},headerHeight:{type:Number,default:66}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(c){f.useCssVars(G=>({"59e2b6b4":L}));const i=c,u=f.useModel(c,"modelValue"),g=f.ref(i.defaultShow),C=()=>{g.value=!g.value},E=f.computed(()=>i.fields.filter(G=>!G.onlyForm)),A=f.computed(()=>{var G;return(G=i.fields)==null?void 0:G.filter(W=>W.search)}),D=f.computed(()=>A.value.length),L=`${i.headerHeight}px`;return(G,W)=>{const ae=f.resolveComponent("el-card");return f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["ik-page-header",{"show-search":g.value}])},[f.createElementVNode("div",{class:"header",style:f.normalizeStyle({borderColor:c.headerBorder?"var(--ik-border-color)":"transparent",marginBottom:c.headerBorder?"8px":"0"})},[f.createElementVNode("div",kme,[f.createCommentVNode(' 左侧标题、tab页或自定义内容 v-if="!$slots.headerLeft" '),f.createElementVNode("span",Tme,f.toDisplayString(c.headerTitle),1),f.renderSlot(G.$slots,"headerLeft",{},void 0,!0)]),f.createCommentVNode(" 默认按钮 "),f.createElementVNode("div",Ame,[f.createCommentVNode(" 右侧操作或自定义内容 "),f.renderSlot(G.$slots,"headerRight",{},void 0,!0),c.exportBtn?(f.openBlock(),f.createBlock(f.unref(Jr),{key:0,name:"iksvg_xiazai",type:"primary",title:"导出","show-bg":"",size:"default"})):f.createCommentVNode("v-if",!0),D.value?(f.openBlock(),f.createBlock(f.unref(Jr),{key:1,name:"iksvg_shaixuan1",size:"default",title:g.value?"收起筛选条件":"展开筛选条件","show-bg":"",onClick:C},null,8,["title"])):f.createCommentVNode("v-if",!0),c.refreshBtn?(f.openBlock(),f.createBlock(f.unref(Jr),{key:2,name:"iksvg_zhongzhi1",title:"保留搜索条件刷新","show-bg":"",size:"default",onClick:c.search},null,8,["onClick"])):f.createCommentVNode("v-if",!0),f.createCommentVNode(` <IkSvgIcon\r
|
|
35
35
|
name="icon-shezhi"\r
|
|
36
36
|
show-bg\r
|
|
37
37
|
:width="40"\r
|