iking-web-ui-pro 1.2.7 → 1.2.8

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/index.umd.js CHANGED
@@ -23,7 +23,7 @@
23
23
  </el-checkbox>
24
24
  </el-checkbox-group>
25
25
  </template>
26
- </el-popover> `)],64)):g.createCommentVNode("v-if",!0)],2)]),_:2},1032,["class"]))),128))]),_:3})]),_:3},8,["inline","model","status-icon","label-width"])]),_:2},[r.title?{name:"header",fn:g.withCtx(()=>[g.createElementVNode("h2",null,g.toDisplayString(r.title),1)]),key:"0"}:void 0]),1032,["class","shadow"]),g.createElementVNode("div",IDe,[g.createElementVNode("div",{class:"ik-pack-up",onClick:T},[g.createVNode(g.unref(mn.ElIcon),{size:"16"},{default:g.withCtx(()=>[g.withDirectives(g.createVNode(g.unref(MIe),null,null,512),[[g.vShow,!m.value]])]),_:1})])])]))}}),[["__scopeId","data-v-a386c9b3"]])),NDe=xi(Gge),ODe={class:"content"},RDe={class:"top"},PDe=["onClick"],LDe=["id"],MDe=["onClick"],UDe=xi(gi(g.defineComponent({__name:"IkVerticalStepBar",props:{active:{type:String,default:""},list:{type:Array,default:()=>[]},needClick:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({name:"name",children:"children"})}},emits:["click","update:active"],setup(r,{emit:e}){const t=r,n=e,s=g.computed(()=>Number(t.active.indexOf("-")>0?t.active.split("-")[0]:t.active)),l=g.computed(()=>t.active.indexOf("-")>0?Number(t.active.split("-")[1]):0),c=T=>{let _="",F=T+1;return F<s.value?_="before-bg":F===s.value?_="active-bg":F>s.value&&(_="after-bg"),`${_} index`},f=T=>{let _="",F=T+1;return F<s.value?_="before-text":F===s.value?_="active-text":F>s.value&&(_="after-text"),`${_} text`},h=T=>{let _="",F=T+1;return F<s.value?_="before-style":F<t.list.length&&(_="after-style"),`${_} bottom`},m=(T,_)=>{let F="",R=T+1,N=_+1;return R<s.value?F="before-text":R===s.value?N<l.value?F="before-text":N===l.value?F="active-text":N>l.value&&(F="after-text"):R>s.value&&(F="after-text"),`${F} child-text`},b=(T,_)=>{t.needClick&&(T[t.propsField.children]||(n("update:active",_+""),n("click",T)))},S=(T,_)=>{T.show=!T.show;let F=document.getElementById(`children${_}`);T.show?F.style.display="none":F.style.display="block"};return(T,_)=>(g.openBlock(),g.createElementBlock("div",ODe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(r.list,(F,R)=>{var N,L;return g.openBlock(),g.createElementBlock("div",{class:"line-block",key:R},[g.createElementVNode("div",RDe,[g.createElementVNode("div",{class:g.normalizeClass(c(R))},g.toDisplayString(R+1),3),g.createElementVNode("div",{class:g.normalizeClass(f(R)),style:g.normalizeStyle(r.needClick?"cursor: pointer;":""),onClick:V=>b(F,R+1)},[g.createTextVNode(g.toDisplayString(F[r.propsField.name])+" ",1),(N=F[r.propsField.children])!=null&&N.length&&!F.show?(g.openBlock(),g.createBlock(g.unref(Ls),{key:0,class:"ikapprove",onClick:g.withModifiers(V=>S(F,R),["stop"]),name:"iksvg_zhankai"},null,8,["onClick"])):g.createCommentVNode("v-if",!0),(L=F[r.propsField.children])!=null&&L.length&&F.show?(g.openBlock(),g.createBlock(g.unref(Ls),{key:1,class:"ikapprove",onClick:g.withModifiers(V=>S(F,R),["stop"]),name:"iksvg_shouqi"},null,8,["onClick"])):g.createCommentVNode("v-if",!0)],14,PDe)]),g.createElementVNode("ul",{class:g.normalizeClass(h(R))},[g.createElementVNode("div",{id:`children${R}`},[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(F[r.propsField.children],(V,P)=>(g.openBlock(),g.createElementBlock("li",{class:g.normalizeClass(m(R,P)),style:g.normalizeStyle(r.needClick?"cursor: pointer;":""),key:P,onClick:W=>b(V,R+1+"-"+(P+1))},g.toDisplayString(V.name),15,MDe))),128))],8,LDe)],2)])}),128))]))}}),[["__scopeId","data-v-d45a00d0"]])),g2=(r,e=2)=>{if(r===void 0)return"";if(r===0)return"0 B";const t=["B","KB","MB","GB","TB"],n=Math.floor(Math.log(r)/Math.log(1024));let s=r/Math.pow(1024,n);return(s%1===0?s.toFixed(e||0):s.toFixed(e))+" "+t[n]},oy=(r,e)=>{if(!e)return"";const t=/(\/api\/server\/oss\/download\?fileUrl=)(.*)(\/api\/server\/oss\/download\?fileUrl=)/;return e.startsWith("http")?e.replace(t,"$1$2"):`${r||location.origin}${e}`.replace(t,"$1$2")},Kge=r=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...r.defaultNodeType},defaultFile:{id:"id",parallelInstances:"parallelInstances",backToInstanceNodeName:"backToInstanceNodeName",backToRecordNodeName:"backToRecordNodeName",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveStatus:"status",approveStatusName:"statusName",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",originator:"username",...r.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...r.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"INITIATE",等待:"WAIT",同意:"PASS",撤销:"REVOKE",拒绝:"REJECT",转交:"TRANSFER",加签:"APPEND",退回:"BACK",评论:"COMMENT",待执行:"WAITING",执行中:"RUNNING",...r.defaultStatus},listData:[]}),Zge=(r,e,t)=>{let n="";switch(e){case r.nodeType.审批节点:t&&t.length==1?n="ikapprove-ziyuan":n="ikapprove-shenpi";break;case r.nodeType.办理节点:n="ikapprove-bianji";break;case r.nodeType.抄送节点:n="ikapprove-chaosong";break;case r.nodeType.并行分支:n="ikapprove-fenzhi";break;case r.nodeType.子流程:n="ikapprove-ziliucheng1";break;default:n="ikapprove-ziyuan"}return`ikapprove ${n}`},Yge=["csv","djvu","doc","docm","docx","docxf","dot","dotm","dotx","epub","fb2","fodp","fods","fodt","htm","html","mht","odp","ods","odt","oform","otp","ots","ott","oxps","pdf","pot","potm","potx","pps","ppsm","ppsx","ppt","pptm","pptx","rtf","txt","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xml","xps","png","jpeg","jpg","webp","video","mp4","flv","tls"],q1=r=>{const e=g.inject("loadUrl"),t=g.computed(()=>r.loadUrl||r.fileUrl||(e==null?void 0:e.value)),n=g.inject("uploadUrl"),s=g.computed(()=>r.action||r.uploadUrl||(n==null?void 0:n.value)),l=g.inject("token"),c=g.computed(()=>r.token||(l==null?void 0:l.value)),f=g.inject("header"),h=g.computed(()=>r.header||(f==null?void 0:f.value)||{Authorization:c.value}),m=g.inject("onlyofficeConfig"),b=g.computed(()=>r.onlyofficeConfig||(m==null?void 0:m.value)),S=g.inject("userInfo"),T=g.computed(()=>r.userInfo||(S==null?void 0:S.value)),_=[...Yge,...Yge.map(F=>F.toLocaleUpperCase())];return{cLoadUrl:t,cUploadUrl:s,cToken:c,cHeader:h,cOnlyofficeConfig:b,cUserInfo:T,cOnlyofficePreviewType:_}},HDe={class:"approveProcess",id:"approveProcess"},VDe=["id"],$De={class:"topBlock"},QDe={class:"left"},zDe={class:"nodeBg"},jDe=["src"],WDe={class:"right"},qDe={class:"topInfo"},GDe={key:0},KDe={key:0,class:"main-text"},ZDe={class:"name"},YDe={key:0},XDe={key:0},JDe={key:1},eNe={key:0},tNe={key:0},nNe={key:1},rNe={key:1},oNe={class:"name"},sNe={key:0},iNe={style:{color:"#000"}},aNe={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},lNe={key:1},cNe={key:0,class:"blue",style:{"font-size":"12px"}},uNe={key:1},dNe={key:0,class:"blue",style:{"font-size":"12px"}},fNe={key:1,class:"blue",style:{"font-size":"12px"}},ANe={class:"time"},hNe={key:0},pNe={key:1},gNe=["onClick"],mNe=["onClick"],vNe={key:0,class:"opinion"},yNe={key:0},bNe={key:1},wNe={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},CNe={key:2,class:"annexImage"},SNe={key:3,class:"approveList"},ENe={class:"nodeBg-list"},_Ne=["src"],BNe={key:1},xNe={key:2,class:"ikapprove ikapprove-duihao2 green read"},TNe=["title"],kNe={key:0,class:"branch"},FNe={class:"branch-card"},INe={class:"branch-name"},DNe={name:"IkingApprovalProcessDetail"},NNe=g.defineComponent({...DNe,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:""},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""}},emits:["preview"],setup(r,{emit:e}){const t=r,{cLoadUrl:n}=q1(t),s=g.reactive(Kge(t));g.watch(()=>t.dataList,b=>{b&&(g.nextTick(()=>{s.listData=b}),setTimeout(()=>{t.returnNode.length&&l()},500))},{deep:!0}),g.onMounted(()=>{t.dataList.length&&(s.listData=t.dataList,setTimeout(()=>{t.returnNode.length&&l()},500))});const l=()=>{let b=null;if(t!=null&&t.returnNode)for(b of t==null?void 0:t.returnNode){if(isNaN(b[1]))return;let S=Array.from(new Array(b[1]+1).keys()).slice(b[0]);g.nextTick(()=>{c(S)})}},c=b=>{var L,V,P;let S=document.createElement("div"),T=document.getElementById("approveProcess"),_=0,F=(L=document.getElementById(`${b[0]}`))==null?void 0:L.offsetWidth,R=(V=document.getElementById(`${b[0]}`))==null?void 0:V.offsetLeft,N=(P=document.getElementById(`${b[0]}`))==null?void 0:P.offsetTop;b.forEach(W=>{let le=document.getElementById(`${W}`);_+=le.offsetHeight}),setTimeout(()=>{S.style.width=F+32+"px",S.style.height=_+"px",S.style.background="#f9f9f9",S.style.position="absolute",S.style.top=N-16+"px",S.style.left=R-16+"px",S.style.zIndex=-1,T==null||T.appendChild(S)})},f=(b,S,T)=>{var R,N;let _=(R=s.listData)==null?void 0:R.findIndex(L=>L.lineType=="dashed"),F="";if(T&&((N=T[s.defaultFile.approvePersonList])==null?void 0:N.findIndex(V=>V[s.defaultFile.approveStatus]===s.statusOption.执行中))>-1)return"ikapprove ikapprove-dengdai orange";switch(b){case s.statusOption.发起:F="ikapprove-duihao2 green";break;case s.statusOption.执行中:F=_==S?"ikapprove-dengdai orange":"";break;case s.statusOption.同意:F="ikapprove-duihao2 green";break;case s.statusOption.拒绝:F="ikapprove-jujue red";break;case s.statusOption.转交:F="ikapprove-zhuanjiao blue";break;case s.statusOption.加签:F="ikapprove-tianjia blue";break;case s.statusOption.退回:F="ikapprove-s_fanhui2 red";break;case s.statusOption.评论:F="ikapprove-pinglun1 blue";break}return`ikapprove ${F}`},h=(b,S)=>{b.show=!b.show;let T=document.getElementById(`${b[s.defaultFile.nodeId]}`),_=Array.from(T==null?void 0:T.getElementsByClassName("approveList"));for(let F of _)F.style.display=S},m=b=>oy(n.value,b);return(b,S)=>{const T=g.resolveComponent("el-image"),_=g.resolveComponent("IkingApprovalProcessDetail");return g.openBlock(),g.createElementBlock("div",HDe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(s.listData,(F,R)=>{var N,L,V,P,W,le,J,q,ce,fe;return g.openBlock(),g.createElementBlock("div",{class:"approveBlock",id:F[s.defaultFile.nodeId],key:F[s.defaultFile.nodeId]},[g.createElementVNode("div",$De,[g.createElementVNode("div",QDe,[g.createElementVNode("span",zDe,[g.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((N=F[s.defaultFile.approvePersonList])==null?void 0:N.length)==1&&F[s.defaultFile.approvePersonList][0].userAvatar?(g.openBlock(),g.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"10px"},src:m(F[s.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,jDe)):(g.openBlock(),g.createElementBlock(g.Fragment,{key:1},[g.createCommentVNode(" 否则显示对应节点 "),g.createElementVNode("i",{class:g.normalizeClass(g.unref(Zge)(s,F[s.defaultFile.nodeType],F[s.defaultFile.approvePersonList]))},null,2)],2112)),g.createCommentVNode(" 审批状态图标 "),g.createElementVNode("i",{class:g.normalizeClass(f(F[s.defaultFile.approveStatus],R,F))},null,2)])]),g.createElementVNode("div",WDe,[g.createElementVNode("div",qDe,[g.createElementVNode("div",null,[g.createCommentVNode(" 不是抄送节点 "),s.nodeType.抄送节点!==F[s.defaultFile.nodeType]?(g.openBlock(),g.createElementBlock("div",GDe,[g.createCommentVNode(" 撤销,评论不显示节点名称 "),F[s.defaultFile.approveStatus]!=s.statusOption.撤销&&F[s.defaultFile.approveStatus]!=s.statusOption.评论&&F[s.defaultFile.nodeType]!==s.nodeType.并行分支?(g.openBlock(),g.createElementBlock("div",KDe,g.toDisplayString(F[s.defaultFile.nodeTypeName]),1)):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 名字+审批状态 "),g.createElementVNode("div",ZDe,[g.createCommentVNode(" 已审批节点文本 "),F[s.defaultFile.lineType]=="solid"?(g.openBlock(),g.createElementBlock("div",YDe,[g.createElementVNode("span",{style:g.normalizeStyle({color:F[s.defaultFile.approveStatus]==s.statusOption.评论?"#000":""})},g.toDisplayString(F[s.defaultFile.originator]),5),g.createCommentVNode(" 发起,退回不显示状态 "),F[s.defaultFile.approveStatusName]&&F[s.defaultFile.approveStatus]!=s.statusOption.发起&&F[s.defaultFile.approveStatus]!=s.statusOption.退回?(g.openBlock(),g.createElementBlock("span",XDe,g.toDisplayString(F[s.defaultFile.approveStatus]==s.statusOption.评论?" 添加了评论":F!=null&&F.nodeActionAliasName?`(已${F.nodeActionAliasName})`:`(${F[s.defaultFile.approveStatusName]})`),1)):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 退回状态显示 "),F[s.defaultFile.approveStatus]==s.statusOption.退回?(g.openBlock(),g.createElementBlock("span",JDe,[S[0]||(S[0]=g.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}}," 退回至",-1)),g.createTextVNode(" "+g.toDisplayString(F[s.defaultFile.backToInstanceNodeName]||F[s.defaultFile.backToRecordNodeName]),1)])):g.createCommentVNode("v-if",!0)])):(g.openBlock(),g.createElementBlock(g.Fragment,{key:1},[g.createCommentVNode(" 待审批节点 "),g.createElementVNode("div",null,[((L=F[s.defaultFile.approvePersonList])==null?void 0:L.length)==1?(g.openBlock(),g.createElementBlock("span",eNe,[g.createTextVNode(g.toDisplayString(F[s.defaultFile.originator])+" ",1),F[s.defaultFile.approveStatus]==s.statusOption.等待?(g.openBlock(),g.createElementBlock("span",tNe,g.toDisplayString(F!=null&&F.nodeActionAliasName?`(已${F.nodeActionAliasName})`:`(${F[s.defaultFile.approveStatusName]})`),1)):g.createCommentVNode("v-if",!0)])):F[s.defaultFile.approvePersonList]?(g.openBlock(),g.createElementBlock("span",nNe,g.toDisplayString(`${(V=F[s.defaultFile.approvePersonList])==null?void 0:V.length}人${F[s.defaultFile.approveTypeName]}`),1)):g.createCommentVNode("v-if",!0)])],2112))])])):(g.openBlock(),g.createElementBlock("div",rNe,[S[2]||(S[2]=g.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),g.createElementVNode("div",oNe,[g.createCommentVNode(" 抄送一人时 "),((P=F[s.defaultFile.approvePersonList])==null?void 0:P.length)==1?(g.openBlock(),g.createElementBlock("span",sNe,[g.createElementVNode("span",null,[S[1]||(S[1]=g.createTextVNode("已抄送给 ",-1)),g.createElementVNode("span",iNe,g.toDisplayString(F[s.defaultFile.approvePersonList][0].userName),1)]),g.createElementVNode("span",aNe,g.toDisplayString(F[s.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 抄送多人时 "),((W=F[s.defaultFile.approvePersonList])==null?void 0:W.length)>1?(g.openBlock(),g.createElementBlock("span",lNe,[g.createTextVNode(g.toDisplayString(`已抄送${(le=F[s.defaultFile.approvePersonList])==null?void 0:le.length}人`)+" ",1),F[s.defaultFile.allRead]?(g.openBlock(),g.createElementBlock("span",cNe," 全部已读 ")):(g.openBlock(),g.createElementBlock("span",uNe,[F[s.defaultFile.read]?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("span",dNe," 全部未读 ")),F[s.defaultFile.read]?(g.openBlock(),g.createElementBlock("span",fNe,g.toDisplayString(F[s.defaultFile.read])+"人已读 ",1)):g.createCommentVNode("v-if",!0)]))])):g.createCommentVNode("v-if",!0)])]))]),g.createElementVNode("div",ANe,[g.createCommentVNode(" 不是抄送节点,展示时间 "),F[s.defaultFile.nodeType]!=s.nodeType.抄送节点&&F[s.defaultFile.approveStatus]!==s.statusOption.等待?(g.openBlock(),g.createElementBlock("span",hNe,g.toDisplayString(g.unref(ts.ikDate).toDateTime(F[s.defaultFile.operationTime],"MM/DD HH:mm")),1)):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),F[s.defaultFile.nodeType]==s.nodeType.抄送节点&&((J=F[s.defaultFile.approvePersonList])==null?void 0:J.length)>1?(g.openBlock(),g.createElementBlock("span",pNe,[F!=null&&F.show?(g.openBlock(),g.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:Ce=>h(F,"grid")},null,8,gNe)):(g.openBlock(),g.createElementBlock("i",{key:1,onClick:Ce=>h(F,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,mNe))])):g.createCommentVNode("v-if",!0)])])])]),g.createElementVNode("div",{class:"bottomBlock",style:g.normalizeStyle({borderLeft:R==s.listData.length-1?"":`2px ${F[s.defaultFile.lineType]||"dashed"} var(--el-border-color)`})},[g.createCommentVNode(" 审批意见 "),F[s.defaultFile.approveOpinion]||F[s.defaultFile.approveStatus]==s.statusOption.加签?(g.openBlock(),g.createElementBlock("div",vNe,[F[s.defaultFile.approveOpinion]?(g.openBlock(),g.createElementBlock("span",yNe,g.toDisplayString(F[s.defaultFile.approveOpinion]),1)):g.createCommentVNode("v-if",!0),F[s.defaultFile.approveStatus]==s.statusOption.加签?(g.openBlock(),g.createElementBlock("span",bNe,[S[3]||(S[3]=g.createElementVNode("span",{class:"ik-text-primary"},"添加审批人",-1)),(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(F[s.defaultFile.countersignPer],(Ce,ie)=>(g.openBlock(),g.createElementBlock("span",wNe,g.toDisplayString(Ce==null?void 0:Ce.userName)+g.toDisplayString(ie<F[s.defaultFile.countersignPer].length-1?"、":""),1))),256))])):g.createCommentVNode("v-if",!0)])):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 附件 "),(q=F[s.defaultFile.attachment])!=null&&q.length?(g.openBlock(),g.createBlock(g.unref(nL),{key:1,list:F[s.defaultFile.attachment]},null,8,["list"])):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 附件图片 "),(ce=F[s.defaultFile.attachmentImg])!=null&&ce.length?(g.openBlock(),g.createElementBlock("div",CNe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(F[s.defaultFile.attachmentImg],(Ce,ie)=>(g.openBlock(),g.createElementBlock("div",{class:"image",key:ie},[g.createVNode(T,{src:m(Ce),"preview-src-list":F[s.defaultFile.attachmentImg].map(ne=>m(ne)),fit:"cover","z-index":"9999","zoom-rate":1.2,"preview-teleported":!0,alt:m(Ce)},null,8,["src","preview-src-list","alt"])]))),128))])):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(F[s.defaultFile.nodeType]==s.nodeType.抄送节点||F[s.defaultFile.approveStatus]==s.statusOption.等待)&&((fe=F[s.defaultFile.approvePersonList])==null?void 0:fe.length)>1?(g.openBlock(),g.createElementBlock("div",SNe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(F[s.defaultFile.approvePersonList],Ce=>{var ie;return g.openBlock(),g.createElementBlock("div",{class:"perBlock",key:Ce.userName},[g.createElementVNode("span",ENe,[Ce.userAvatar?(g.openBlock(),g.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:m(Ce.userAvatar),alt:""},null,8,_Ne)):(g.openBlock(),g.createElementBlock("span",BNe,g.toDisplayString((ie=Ce.userName)==null?void 0:ie.slice(-2)),1)),Ce.status==="END"?(g.openBlock(),g.createElementBlock("i",xNe)):g.createCommentVNode("v-if",!0)]),g.createElementVNode("div",{class:"main-text",title:Ce.userName},g.toDisplayString(Ce.userName),9,TNe)])}),128))])):g.createCommentVNode("v-if",!0)],4),F[s.defaultFile.nodeType]===s.nodeType.并行分支?(g.openBlock(),g.createElementBlock("div",kNe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(F[s.defaultFile.parallelInstances],Ce=>(g.openBlock(),g.createElementBlock("div",FNe,[g.createElementVNode("div",INe,g.toDisplayString(Ce.name),1),g.createVNode(_,g.mergeProps({ref_for:!0},t,{"data-list":(Ce==null?void 0:Ce.processInstanceNodes)||[]}),null,16,["data-list"])]))),256))])):g.createCommentVNode("v-if",!0)],8,VDe)}),128))])}}}),ONe=xi(gi(NNe,[["__scopeId","data-v-dbdbb339"]])),RNe={class:"approveProcess",id:"approveProcess"},PNe={class:"node"},LNe={class:"nodeBg"},MNe={key:0,class:"info"},UNe={class:"explain"},HNe={key:0},VNe={key:0},$Ne={key:1},QNe={key:0},zNe={key:1},jNe={class:"personlist"},WNe={style:{width:"58px"}},qNe={class:"avatar"},GNe=["src"],KNe={key:1,class:"nodeBg"},ZNe=["onClick"],YNe=["title"],XNe={key:0,class:"sign"},JNe={key:0},eOe=["onClick"],tOe={key:0,class:"required"},nOe={key:1,class:"node-branchs"},rOe={style:{flex:"1"}},oOe={class:"node-branch"},sOe={name:"IkApprovalProcess"},iOe=g.defineComponent({...sOe,props:{pickerUrl:{type:String,default:""},pickerConfig:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},setup(r,{expose:e}){const t=r,{cLoadUrl:n}=q1(t),s=ts.ikStore.local.getItem("token")||"Bearer iking",l=g.ref("sys");function c(V){try{const P=window.location.search;return new URLSearchParams(P).get(V)}catch{return""}}function f(){var V;try{const P=c("xTenant")||((V=ts.ikStore.local.getItem("tenant"))==null?void 0:V.code);P&&(l.value=P)}catch{}}f();const h=g.reactive(Kge(t)),m=async V=>{var P;if(V.multiple=!V[h.defaultFile.singleApproval]||V[h.defaultFile.isShowAddCopy],V.handList=V[h.defaultFile.approvePersonList]?V[h.defaultFile.approvePersonList]:[],V[h.defaultFile.nodeType]===h.nodeType.抄送节点)V.handList.forEach(W=>{W.elementName||(W.elementName=W.userName,W.elementId=W.userId,W.avatar=W.userAvatar),W.elementType="USER",W.disabled=!0}),V.chooseType=["user"],V.userList=[],V.depList=[];else switch(V[h.defaultFile.initiatorSpecifiedScopeType]){case"ALL":V.chooseType=["dep_user"],V.userList=[],V.depList=[];break;default:V.chooseType=["user"],V.userList=V.userList?V.userList:(P=V[h.defaultFile.initiatorSpecifiedScope])==null?void 0:P.map(W=>({...W,elementName:(W==null?void 0:W.executorName)||(W==null?void 0:W.userName),elementId:(W==null?void 0:W.executorId)||(W==null?void 0:W.userId),avatar:((W==null?void 0:W.executorAvatar)||(W==null?void 0:W.userAvatar))&&b((W==null?void 0:W.executorAvatar)||(W==null?void 0:W.userAvatar))||"",elementType:"USER"}))}g.nextTick(()=>{V.isShow=!0})},b=V=>{let P="";return V.includes("http")||V.includes("https")?P=V:P=n.value?`${V.includes(n.value)?"":n.value}${V}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${V}`,P},S=(V,P)=>{t.dataList[P].handList=V.list;let le=(t.dataList[P][h.defaultFile.approvePersonList]||[]).filter(q=>!q.canDele),J=V.list.map(q=>({...q,userName:q.elementName,userAvatar:q.avatar,canDele:!0}));t.dataList[P][h.defaultFile.approvePersonList]=le.concat(J)},T=(V,P)=>{t.dataList[V][h.defaultFile.approvePersonList].splice(P,1),t.dataList[V].handList=t.dataList[V][h.defaultFile.approvePersonList]},_=()=>{let V=!0;return t.dataList.forEach(P=>{var W;P.required=!1,P[h.defaultFile.nodeType]==h.nodeType.审批节点&&P[h.defaultFile.isShowAdd]&&((W=P[h.defaultFile.approvePersonList])!=null&&W.length||(V=!1,P.required=!0))}),V},F=g.computed(()=>{var V;return{propOption:{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:t.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:s,"X-Tenant":l.value},param:{rootDepartmentId:((V=ts.ikStore.local.getItem("now_shop"))==null?void 0:V.storeId)||"",rootDepartmentOnly:!1}},...t.pickerConfig}}),R=g.ref(null),N=V=>{R.value=V},L=V=>{const{oldIndex:P,newIndex:W}=V;R.value.splice(W,0,...R.value.splice(P,1))};return e({requiredVerification:_}),(V,P)=>{const W=g.resolveComponent("IkApprovalProcess",!0);return g.openBlock(),g.createElementBlock("div",RNe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(t.dataList,(le,J)=>{var q,ce,fe,Ce;return g.openBlock(),g.createElementBlock("div",{class:"content",key:le.id},[g.createCommentVNode(" 审批节点类型 "),g.createElementVNode("div",PNe,[g.createElementVNode("span",LNe,[g.createElementVNode("i",{class:g.normalizeClass(g.unref(Zge)(h,le[h.defaultFile.nodeType]))},null,2)]),g.createElementVNode("div",{class:"line",style:g.normalizeStyle({"border-left":J===t.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),le[h.defaultFile.nodeType]!==h.nodeType.并行分支?(g.openBlock(),g.createElementBlock("div",MNe,[g.createElementVNode("div",null,[g.createElementVNode("div",null,g.toDisplayString(le[h.defaultFile.nodeTypeName]),1),g.createElementVNode("div",UNe,[g.createCommentVNode(" 抄送节点 "),le[h.defaultFile.nodeType]==h.nodeType.抄送节点?(g.openBlock(),g.createElementBlock("span",HNe,[le[h.defaultFile.approvePersonList].length?(g.openBlock(),g.createElementBlock("span",VNe,g.toDisplayString(`抄送${le[h.defaultFile.approvePersonList].length}人`),1)):g.createCommentVNode("v-if",!0),le[h.defaultFile.isShowAdd]?(g.openBlock(),g.createElementBlock("span",$Ne,",可添加抄送人")):g.createCommentVNode("v-if",!0)])):(g.openBlock(),g.createElementBlock(g.Fragment,{key:1},[g.createCommentVNode(" 审批节点 "),g.createElementVNode("span",null,[g.createCommentVNode(" 存在审批人时 "),(q=le[h.defaultFile.approvePersonList])!=null&&q.length?(g.openBlock(),g.createElementBlock("span",QNe,g.toDisplayString(((ce=le[h.defaultFile.approvePersonList])==null?void 0:ce.length)==1?"1人审批":`${(fe=le[h.defaultFile.approvePersonList])==null?void 0:fe.length}人${le[h.defaultFile.multiExecutorTypeName]}`),1)):[h.statusWithoutApprover.自动通过,h.statusWithoutApprover.自动拒绝].includes(le[h.defaultFile.approveType])?(g.openBlock(),g.createElementBlock("span",zNe,g.toDisplayString(le[h.defaultFile.approveTypeName]),1)):le[h.defaultFile.executorEmptyStrategy]&&le[h.defaultFile.executorEmpty]?(g.openBlock(),g.createElementBlock(g.Fragment,{key:2},[g.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),g.createElementVNode("span",null,[P[0]||(P[0]=g.createTextVNode(" 未找到审批人,",-1)),g.createElementVNode("span",null,g.toDisplayString(le[h.defaultFile.executorEmptyStrategy]==h.statusWithoutApprover.自动通过?"将自动通过":le[h.defaultFile.executorEmptyStrategy]==h.statusWithoutApprover.自动转交管理员?"自动转交给管理员":le[h.defaultFile.executorEmptyStrategy]==h.statusWithoutApprover.指定人员审批?`将自动转给指定成员${le[h.defaultFile.reserveExecutorUsers]&&le[h.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):[h.nodeType.并行分支,h.nodeType.子流程].includes(le[h.defaultFile.nodeType])?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("span",{key:3,class:g.normalizeClass(le.required?"warn":"")}," 请选择"+g.toDisplayString(le[h.defaultFile.nodeType]===h.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),g.createElementVNode("div",jNe,[g.createVNode(g.unref(z6),{modelValue:le[h.defaultFile.approvePersonList],"onUpdate:modelValue":ie=>le[h.defaultFile.approvePersonList]=ie,group:{name:"people",pull:!1,put:!1},"item-key":"userId",handle:".draggable-item",animation:200,"ghost-class":"ghost-item","chosen-class":"chosen-item","drag-class":"drag-item",onStart:ie=>N(le[h.defaultFile.approvePersonList]),onEnd:L,class:"draggable-container"},{item:g.withCtx(({element:ie,index:ne})=>{var Ie,ke;return[(g.openBlock(),g.createElementBlock("div",{class:"list draggable-item",key:ie.userId},[g.createElementVNode("div",WNe,[g.createElementVNode("div",qNe,[ie.userAvatar?(g.openBlock(),g.createElementBlock("img",{key:0,src:b(ie.userAvatar),alt:""},null,8,GNe)):(g.openBlock(),g.createElementBlock("div",KNe,[g.createElementVNode("span",null,g.toDisplayString((Ie=ie.userName)==null?void 0:Ie.slice(-2)),1)])),ie.canDele?(g.openBlock(),g.createElementBlock("i",{key:2,onClick:Ge=>T(J,ne),class:"ikapprove ikapprove-shanchu1"},null,8,ZNe)):g.createCommentVNode("v-if",!0)]),g.createElementVNode("div",{class:"name",title:ie.userName},g.toDisplayString(ie.userName),9,YNe)]),g.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),le[h.defaultFile.isShowAdd]&&!(le[h.defaultFile.singleApproval]&&((ke=le[h.defaultFile.approvePersonList])==null?void 0:ke.length)==1)?(g.openBlock(),g.createElementBlock("span",XNe,[g.createCommentVNode(" 抄送默认 "),le[h.defaultFile.nodeType]==h.nodeType.抄送节点?(g.openBlock(),g.createElementBlock("span",JNe,"+")):(g.openBlock(),g.createElementBlock(g.Fragment,{key:1},[g.createCommentVNode(" 审批 "),g.createElementVNode("span",null,g.toDisplayString(le[h.defaultFile.multiExecutorType]=="ANY"?"/":le[h.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):g.createCommentVNode("v-if",!0)]))]}),_:2},1032,["modelValue","onUpdate:modelValue","onStart"]),g.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 (item[state.defaultFile.isShowAdd] && "),le[h.defaultFile.isShowAdd]&&!(le[h.defaultFile.singleApproval]&&((Ce=le[h.defaultFile.approvePersonList])==null?void 0:Ce.length)==1)||le[h.defaultFile.isShowAddCopy]?(g.openBlock(),g.createElementBlock("span",{key:0,class:"addBg",onClick:ie=>m(le)},[le[h.defaultFile.nodeType]==h.nodeType.审批节点?(g.openBlock(),g.createElementBlock("span",tOe)):g.createCommentVNode("v-if",!0),P[1]||(P[1]=g.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1))],8,eOe)):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 添加人组件 "),g.createVNode(g.unref(C8),g.mergeProps({modelValue:le.handList,"onUpdate:modelValue":ie=>le.handList=ie,show:le.isShow,"onUpdate:show":ie=>le.isShow=ie,onOk:ie=>S(ie,J),multiple:le.multiple,"dep-list":le.depList,"user-list":le.userList,"organization-list":le.organizationList},{ref_for:!0},F.value,{chooseType:le.chooseType}),null,16,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","dep-list","user-list","organization-list","chooseType"])])])):(g.openBlock(),g.createElementBlock("div",nOe,[P[2]||(P[2]=g.createElementVNode("div",{class:"branch-line"},null,-1)),g.createElementVNode("div",rOe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(le.parallelInstances,(ie,ne)=>(g.openBlock(),g.createElementBlock("div",{key:ne,class:g.normalizeClass(`branch branch-${ne}`)},[g.createElementVNode("div",oOe,g.toDisplayString(ie.name),1),g.createVNode(W,g.mergeProps({ref_for:!0},t,{dataList:ie.processInstanceNodes,style:{"margin-left":"20px"}}),null,16,["dataList"])],2))),128))])]))])}),128))])}}}),aOe=xi(gi(iOe,[["__scopeId","data-v-c0843ac1"]]));var lOe={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(r){return"另外 "+r+" 个"},noEventsText:"没有事件显示"},yP,si,Xge,Jge,G_,BS,eme,tme,nme,bP={},rme=[],cOe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function m2(r,e){for(var t in e)r[t]=e[t];return r}function ome(r){var e=r.parentNode;e&&e.removeChild(r)}function Qt(r,e,t){var n,s,l,c={};for(l in e)l=="key"?n=e[l]:l=="ref"?s=e[l]:c[l]=e[l];if(arguments.length>2&&(c.children=arguments.length>3?yP.call(arguments,2):t),typeof r=="function"&&r.defaultProps!=null)for(l in r.defaultProps)c[l]===void 0&&(c[l]=r.defaultProps[l]);return wP(r,c,n,s,null)}function wP(r,e,t,n,s){var l={type:r,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s??++Xge};return s==null&&si.vnode!=null&&si.vnode(l),l}function sh(){return{current:null}}function Vc(r){return r.children}function uOe(r,e,t,n,s){var l;for(l in t)l==="children"||l==="key"||l in e||CP(r,l,null,t[l],n);for(l in e)s&&typeof e[l]!="function"||l==="children"||l==="key"||l==="value"||l==="checked"||t[l]===e[l]||CP(r,l,e[l],t[l],n)}function sme(r,e,t){e[0]==="-"?r.setProperty(e,t??""):r[e]=t==null?"":typeof t!="number"||cOe.test(e)?t:t+"px"}function CP(r,e,t,n,s){var l;e:if(e==="style")if(typeof t=="string")r.style.cssText=t;else{if(typeof n=="string"&&(r.style.cssText=n=""),n)for(e in n)t&&e in t||sme(r.style,e,"");if(t)for(e in t)n&&t[e]===n[e]||sme(r.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")l=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in r?e.toLowerCase().slice(2):e.slice(2),r.l||(r.l={}),r.l[e+l]=t,t?n||r.addEventListener(e,l?ame:ime,l):r.removeEventListener(e,l?ame:ime,l);else if(e!=="dangerouslySetInnerHTML"){if(s)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in r)try{r[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e.indexOf("-")==-1?r.removeAttribute(e):r.setAttribute(e,t))}}function ime(r){G_=!0;try{return this.l[r.type+!1](si.event?si.event(r):r)}finally{G_=!1}}function ame(r){G_=!0;try{return this.l[r.type+!0](si.event?si.event(r):r)}finally{G_=!1}}function Qp(r,e){this.props=r,this.context=e}function j6(r,e){if(e==null)return r.__?j6(r.__,r.__.__k.indexOf(r)+1):null;for(var t;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null)return t.__e;return typeof r.type=="function"?j6(r):null}function lme(r){var e,t;if((r=r.__)!=null&&r.__c!=null){for(r.__e=r.__c.base=null,e=0;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null){r.__e=r.__c.base=t.__e;break}return lme(r)}}function dOe(r){G_?setTimeout(r):tme(r)}function tG(r){(!r.__d&&(r.__d=!0)&&BS.push(r)&&!SP.__r++||eme!==si.debounceRendering)&&((eme=si.debounceRendering)||dOe)(SP)}function SP(){var r,e,t,n,s,l,c,f;for(BS.sort(function(h,m){return h.__v.__b-m.__v.__b});r=BS.shift();)r.__d&&(e=BS.length,n=void 0,s=void 0,c=(l=(t=r).__v).__e,(f=t.__P)&&(n=[],(s=m2({},l)).__v=l.__v+1,nG(f,l,s,t.__n,f.ownerSVGElement!==void 0,l.__h!=null?[c]:null,n,c??j6(l),l.__h),Ame(n,l),l.__e!=c&&lme(l)),BS.length>e&&BS.sort(function(h,m){return h.__v.__b-m.__v.__b}));SP.__r=0}function cme(r,e,t,n,s,l,c,f,h,m){var b,S,T,_,F,R,N,L=n&&n.__k||rme,V=L.length;for(t.__k=[],b=0;b<e.length;b++)if((_=t.__k[b]=(_=e[b])==null||typeof _=="boolean"?null:typeof _=="string"||typeof _=="number"||typeof _=="bigint"?wP(null,_,null,null,_):Array.isArray(_)?wP(Vc,{children:_},null,null,null):_.__b>0?wP(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_)!=null){if(_.__=t,_.__b=t.__b+1,(T=L[b])===null||T&&_.key==T.key&&_.type===T.type)L[b]=void 0;else for(S=0;S<V;S++){if((T=L[S])&&_.key==T.key&&_.type===T.type){L[S]=void 0;break}T=null}nG(r,_,T=T||bP,s,l,c,f,h,m),F=_.__e,(S=_.ref)&&T.ref!=S&&(N||(N=[]),T.ref&&N.push(T.ref,null,_),N.push(S,_.__c||F,_)),F!=null?(R==null&&(R=F),typeof _.type=="function"&&_.__k===T.__k?_.__d=h=ume(_,h,r):h=dme(r,_,T,L,F,h),typeof t.type=="function"&&(t.__d=h)):h&&T.__e==h&&h.parentNode!=r&&(h=j6(T))}for(t.__e=R,b=V;b--;)L[b]!=null&&(typeof t.type=="function"&&L[b].__e!=null&&L[b].__e==t.__d&&(t.__d=fme(n).nextSibling),pme(L[b],L[b]));if(N)for(b=0;b<N.length;b++)hme(N[b],N[++b],N[++b])}function ume(r,e,t){for(var n,s=r.__k,l=0;s&&l<s.length;l++)(n=s[l])&&(n.__=r,e=typeof n.type=="function"?ume(n,e,t):dme(t,n,n,s,n.__e,e));return e}function EP(r,e){return e=e||[],r==null||typeof r=="boolean"||(Array.isArray(r)?r.some(function(t){EP(t,e)}):e.push(r)),e}function dme(r,e,t,n,s,l){var c,f,h;if(e.__d!==void 0)c=e.__d,e.__d=void 0;else if(t==null||s!=l||s.parentNode==null)e:if(l==null||l.parentNode!==r)r.appendChild(s),c=null;else{for(f=l,h=0;(f=f.nextSibling)&&h<n.length;h+=1)if(f==s)break e;r.insertBefore(s,l),c=l}return c!==void 0?c:s.nextSibling}function fme(r){var e,t,n;if(r.type==null||typeof r.type=="string")return r.__e;if(r.__k){for(e=r.__k.length-1;e>=0;e--)if((t=r.__k[e])&&(n=fme(t)))return n}return null}function nG(r,e,t,n,s,l,c,f,h){var m,b,S,T,_,F,R,N,L,V,P,W,le,J,q,ce=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(h=t.__h,f=e.__e=t.__e,e.__h=null,l=[f]),(m=si.__b)&&m(e);try{e:if(typeof ce=="function"){if(N=e.props,L=(m=ce.contextType)&&n[m.__c],V=m?L?L.props.value:m.__:n,t.__c?R=(b=e.__c=t.__c).__=b.__E:("prototype"in ce&&ce.prototype.render?e.__c=b=new ce(N,V):(e.__c=b=new Qp(N,V),b.constructor=ce,b.render=AOe),L&&L.sub(b),b.props=N,b.state||(b.state={}),b.context=V,b.__n=n,S=b.__d=!0,b.__h=[],b._sb=[]),b.__s==null&&(b.__s=b.state),ce.getDerivedStateFromProps!=null&&(b.__s==b.state&&(b.__s=m2({},b.__s)),m2(b.__s,ce.getDerivedStateFromProps(N,b.__s))),T=b.props,_=b.state,b.__v=e,S)ce.getDerivedStateFromProps==null&&b.componentWillMount!=null&&b.componentWillMount(),b.componentDidMount!=null&&b.__h.push(b.componentDidMount);else{if(ce.getDerivedStateFromProps==null&&N!==T&&b.componentWillReceiveProps!=null&&b.componentWillReceiveProps(N,V),!b.__e&&b.shouldComponentUpdate!=null&&b.shouldComponentUpdate(N,b.__s,V)===!1||e.__v===t.__v){for(e.__v!==t.__v&&(b.props=N,b.state=b.__s,b.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(fe){fe&&(fe.__=e)}),P=0;P<b._sb.length;P++)b.__h.push(b._sb[P]);b._sb=[],b.__h.length&&c.push(b);break e}b.componentWillUpdate!=null&&b.componentWillUpdate(N,b.__s,V),b.componentDidUpdate!=null&&b.__h.push(function(){b.componentDidUpdate(T,_,F)})}if(b.context=V,b.props=N,b.__P=r,W=si.__r,le=0,"prototype"in ce&&ce.prototype.render){for(b.state=b.__s,b.__d=!1,W&&W(e),m=b.render(b.props,b.state,b.context),J=0;J<b._sb.length;J++)b.__h.push(b._sb[J]);b._sb=[]}else do b.__d=!1,W&&W(e),m=b.render(b.props,b.state,b.context),b.state=b.__s;while(b.__d&&++le<25);b.state=b.__s,b.getChildContext!=null&&(n=m2(m2({},n),b.getChildContext())),S||b.getSnapshotBeforeUpdate==null||(F=b.getSnapshotBeforeUpdate(T,_)),q=m!=null&&m.type===Vc&&m.key==null?m.props.children:m,cme(r,Array.isArray(q)?q:[q],e,t,n,s,l,c,f,h),b.base=e.__e,e.__h=null,b.__h.length&&c.push(b),R&&(b.__E=b.__=null),b.__e=!1}else l==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=fOe(t.__e,e,t,n,s,l,c,h);(m=si.diffed)&&m(e)}catch(fe){e.__v=null,(h||l!=null)&&(e.__e=f,e.__h=!!h,l[l.indexOf(f)]=null),si.__e(fe,e,t)}}function Ame(r,e){si.__c&&si.__c(e,r),r.some(function(t){try{r=t.__h,t.__h=[],r.some(function(n){n.call(t)})}catch(n){si.__e(n,t.__v)}})}function fOe(r,e,t,n,s,l,c,f){var h,m,b,S=t.props,T=e.props,_=e.type,F=0;if(_==="svg"&&(s=!0),l!=null){for(;F<l.length;F++)if((h=l[F])&&"setAttribute"in h==!!_&&(_?h.localName===_:h.nodeType===3)){r=h,l[F]=null;break}}if(r==null){if(_===null)return document.createTextNode(T);r=s?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,T.is&&T),l=null,f=!1}if(_===null)S===T||f&&r.data===T||(r.data=T);else{if(l=l&&yP.call(r.childNodes),m=(S=t.props||bP).dangerouslySetInnerHTML,b=T.dangerouslySetInnerHTML,!f){if(l!=null)for(S={},F=0;F<r.attributes.length;F++)S[r.attributes[F].name]=r.attributes[F].value;(b||m)&&(b&&(m&&b.__html==m.__html||b.__html===r.innerHTML)||(r.innerHTML=b&&b.__html||""))}if(uOe(r,T,S,s,f),b)e.__k=[];else if(F=e.props.children,cme(r,Array.isArray(F)?F:[F],e,t,n,s&&_!=="foreignObject",l,c,l?l[0]:t.__k&&j6(t,0),f),l!=null)for(F=l.length;F--;)l[F]!=null&&ome(l[F]);f||("value"in T&&(F=T.value)!==void 0&&(F!==r.value||_==="progress"&&!F||_==="option"&&F!==S.value)&&CP(r,"value",F,S.value,!1),"checked"in T&&(F=T.checked)!==void 0&&F!==r.checked&&CP(r,"checked",F,S.checked,!1))}return r}function hme(r,e,t){try{typeof r=="function"?r(e):r.current=e}catch(n){si.__e(n,t)}}function pme(r,e,t){var n,s;if(si.unmount&&si.unmount(r),(n=r.ref)&&(n.current&&n.current!==r.__e||hme(n,null,e)),(n=r.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(l){si.__e(l,e)}n.base=n.__P=null,r.__c=void 0}if(n=r.__k)for(s=0;s<n.length;s++)n[s]&&pme(n[s],e,t||typeof r.type!="function");t||r.__e==null||ome(r.__e),r.__=r.__e=r.__d=void 0}function AOe(r,e,t){return this.constructor(r,t)}function W6(r,e,t){var n,s,l;si.__&&si.__(r,e),s=(n=!1)?null:e.__k,l=[],nG(e,r=e.__k=Qt(Vc,null,[r]),s||bP,bP,e.ownerSVGElement!==void 0,s?null:e.firstChild?yP.call(e.childNodes):null,l,s?s.__e:e.firstChild,n),Ame(l,r)}function hOe(r,e){var t={__c:e="__cC"+nme++,__:r,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,l;return this.getChildContext||(s=[],(l={})[e]=this,this.getChildContext=function(){return l},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&s.some(function(f){f.__e=!0,tG(f)})},this.sub=function(c){s.push(c);var f=c.componentWillUnmount;c.componentWillUnmount=function(){s.splice(s.indexOf(c),1),f&&f.call(c)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}yP=rme.slice,si={__e:function(r,e,t,n){for(var s,l,c;e=e.__;)if((s=e.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(r)),c=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(r,n||{}),c=s.__d),c)return s.__E=s}catch(f){r=f}throw r}},Xge=0,Jge=function(r){return r!=null&&r.constructor===void 0},G_=!1,Qp.prototype.setState=function(r,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=m2({},this.state),typeof r=="function"&&(r=r(m2({},t),this.props)),r&&m2(t,r),r!=null&&this.__v&&(e&&this._sb.push(e),tG(this))},Qp.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),tG(this))},Qp.prototype.render=Vc,BS=[],tme=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,SP.__r=0,nme=0;var G1,rG,gme,mme=[],oG=[],vme=si.__b,yme=si.__r,bme=si.diffed,wme=si.__c,Cme=si.unmount;function pOe(){for(var r;r=mme.shift();)if(r.__P&&r.__H)try{r.__H.__h.forEach(_P),r.__H.__h.forEach(sG),r.__H.__h=[]}catch(e){r.__H.__h=[],si.__e(e,r.__v)}}si.__b=function(r){G1=null,vme&&vme(r)},si.__r=function(r){yme&&yme(r);var e=(G1=r.__c).__H;e&&(rG===G1?(e.__h=[],G1.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=oG,t.__N=t.i=void 0})):(e.__h.forEach(_P),e.__h.forEach(sG),e.__h=[])),rG=G1},si.diffed=function(r){bme&&bme(r);var e=r.__c;e&&e.__H&&(e.__H.__h.length&&(mme.push(e)!==1&&gme===si.requestAnimationFrame||((gme=si.requestAnimationFrame)||gOe)(pOe)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==oG&&(t.__=t.__V),t.i=void 0,t.__V=oG})),rG=G1=null},si.__c=function(r,e){e.some(function(t){try{t.__h.forEach(_P),t.__h=t.__h.filter(function(n){return!n.__||sG(n)})}catch(n){e.some(function(s){s.__h&&(s.__h=[])}),e=[],si.__e(n,t.__v)}}),wme&&wme(r,e)},si.unmount=function(r){Cme&&Cme(r);var e,t=r.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{_P(n)}catch(s){e=s}}),t.__H=void 0,e&&si.__e(e,t.__v))};var Sme=typeof requestAnimationFrame=="function";function gOe(r){var e,t=function(){clearTimeout(n),Sme&&cancelAnimationFrame(e),setTimeout(r)},n=setTimeout(t,100);Sme&&(e=requestAnimationFrame(t))}function _P(r){var e=G1,t=r.__c;typeof t=="function"&&(r.__c=void 0,t()),G1=e}function sG(r){var e=G1;r.__c=r.__(),G1=e}function mOe(r,e){for(var t in e)r[t]=e[t];return r}function Eme(r,e){for(var t in r)if(t!=="__source"&&!(t in e))return!0;for(var n in e)if(n!=="__source"&&r[n]!==e[n])return!0;return!1}function _me(r){this.props=r}(_me.prototype=new Qp).isPureReactComponent=!0,_me.prototype.shouldComponentUpdate=function(r,e){return Eme(this.props,r)||Eme(this.state,e)};var Bme=si.__b;si.__b=function(r){r.type&&r.type.__f&&r.ref&&(r.props.ref=r.ref,r.ref=null),Bme&&Bme(r)};var vOe=si.__e;si.__e=function(r,e,t,n){if(r.then){for(var s,l=e;l=l.__;)if((s=l.__c)&&s.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),s.__c(r,e)}vOe(r,e,t,n)};var xme=si.unmount;function Tme(r,e,t){return r&&(r.__c&&r.__c.__H&&(r.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),r.__c.__H=null),(r=mOe({},r)).__c!=null&&(r.__c.__P===t&&(r.__c.__P=e),r.__c=null),r.__k=r.__k&&r.__k.map(function(n){return Tme(n,e,t)})),r}function kme(r,e,t){return r&&(r.__v=null,r.__k=r.__k&&r.__k.map(function(n){return kme(n,e,t)}),r.__c&&r.__c.__P===e&&(r.__e&&t.insertBefore(r.__e,r.__d),r.__c.__e=!0,r.__c.__P=t)),r}function iG(){this.__u=0,this.t=null,this.__b=null}function Fme(r){var e=r.__.__c;return e&&e.__a&&e.__a(r)}function BP(){this.u=null,this.o=null}si.unmount=function(r){var e=r.__c;e&&e.__R&&e.__R(),e&&r.__h===!0&&(r.type=null),xme&&xme(r)},(iG.prototype=new Qp).__c=function(r,e){var t=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(t);var s=Fme(n.__v),l=!1,c=function(){l||(l=!0,t.__R=null,s?s(f):f())};t.__R=c;var f=function(){if(!--n.__u){if(n.state.__a){var m=n.state.__a;n.__v.__k[0]=kme(m,m.__c.__P,m.__c.__O)}var b;for(n.setState({__a:n.__b=null});b=n.t.pop();)b.forceUpdate()}},h=e.__h===!0;n.__u++||h||n.setState({__a:n.__b=n.__v.__k[0]}),r.then(c,c)},iG.prototype.componentWillUnmount=function(){this.t=[]},iG.prototype.render=function(r,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Tme(this.__b,t,n.__O=n.__P)}this.__b=null}var s=e.__a&&Qt(Vc,null,r.fallback);return s&&(s.__h=null),[Qt(Vc,null,e.__a?null:r.children),s]};var Ime=function(r,e,t){if(++t[1]===t[0]&&r.o.delete(e),r.props.revealOrder&&(r.props.revealOrder[0]!=="t"||!r.o.size))for(t=r.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;r.u=t=t[2]}};function yOe(r){return this.getChildContext=function(){return r.context},r.children}function bOe(r){var e=this,t=r.i;e.componentWillUnmount=function(){W6(null,e.l),e.l=null,e.i=null},e.i&&e.i!==t&&e.componentWillUnmount(),r.__v?(e.l||(e.i=t,e.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,s){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),W6(Qt(yOe,{context:e.context},r.__v),e.l)):e.l&&e.componentWillUnmount()}function wOe(r,e){var t=Qt(bOe,{__v:r,i:e});return t.containerInfo=e,t}(BP.prototype=new Qp).__a=function(r){var e=this,t=Fme(e.__v),n=e.o.get(r);return n[0]++,function(s){var l=function(){e.props.revealOrder?(n.push(s),Ime(e,r,n)):s()};t?t(l):l()}},BP.prototype.render=function(r){this.u=null,this.o=new Map;var e=EP(r.children);r.revealOrder&&r.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return r.children},BP.prototype.componentDidUpdate=BP.prototype.componentDidMount=function(){var r=this;this.o.forEach(function(e,t){Ime(r,t,e)})};var COe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,SOe=/^(?: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]/,EOe=typeof document<"u",_Oe=function(r){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(r)};Qp.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(r){Object.defineProperty(Qp.prototype,r,{configurable:!0,get:function(){return this["UNSAFE_"+r]},set:function(e){Object.defineProperty(this,r,{configurable:!0,writable:!0,value:e})}})});var Dme=si.event;function BOe(){}function xOe(){return this.cancelBubble}function TOe(){return this.defaultPrevented}si.event=function(r){return Dme&&(r=Dme(r)),r.persist=BOe,r.isPropagationStopped=xOe,r.isDefaultPrevented=TOe,r.nativeEvent=r};var Nme={configurable:!0,get:function(){return this.class}},Ome=si.vnode;si.vnode=function(r){var e=r.type,t=r.props,n=t;if(typeof e=="string"){var s=e.indexOf("-")===-1;for(var l in n={},t){var c=t[l];EOe&&l==="children"&&e==="noscript"||l==="value"&&"defaultValue"in t&&c==null||(l==="defaultValue"&&"value"in t&&t.value==null?l="value":l==="download"&&c===!0?c="":/ondoubleclick/i.test(l)?l="ondblclick":/^onchange(textarea|input)/i.test(l+e)&&!_Oe(t.type)?l="oninput":/^onfocus$/i.test(l)?l="onfocusin":/^onblur$/i.test(l)?l="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(l)?l=l.toLowerCase():s&&SOe.test(l)?l=l.replace(/[A-Z0-9]/g,"-$&").toLowerCase():c===null&&(c=void 0),/^oninput$/i.test(l)&&(l=l.toLowerCase(),n[l]&&(l="oninputCapture")),n[l]=c)}e=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=EP(t.children).forEach(function(f){f.props.selected=n.value.indexOf(f.props.value)!=-1})),e=="select"&&n.defaultValue!=null&&(n.value=EP(t.children).forEach(function(f){f.props.selected=n.multiple?n.defaultValue.indexOf(f.props.value)!=-1:n.defaultValue==f.props.value})),r.props=n,t.class!=t.className&&(Nme.enumerable="className"in t,t.className!=null&&(n.class=t.className),Object.defineProperty(n,"className",Nme))}r.$$typeof=COe,Ome&&Ome(r)};var Rme=si.__r;si.__r=function(r){Rme&&Rme(r),r.__c};const Pme=[],aG=new Map;function lG(r){Pme.push(r),aG.forEach(e=>{Mme(e,r)})}function kOe(r){r.isConnected&&r.getRootNode&&Lme(r.getRootNode())}function Lme(r){let e=aG.get(r);if(!e||!e.isConnected){if(e=r.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const t=IOe();t&&(e.nonce=t);const n=r===document?document.head:r,s=r===document?n.querySelector("script,link[rel=stylesheet],link[as=style],style"):n.firstChild;n.insertBefore(e,s)}aG.set(r,e),FOe(e)}}function FOe(r){for(const e of Pme)Mme(r,e)}function Mme(r,e){const{sheet:t}=r,n=t.cssRules.length;e.split("}").forEach((s,l)=>{s=s.trim(),s&&t.insertRule(s+"}",n+l)})}let cG;function IOe(){return cG===void 0&&(cG=DOe()),cG}function DOe(){const r=document.querySelector('meta[name="csp-nonce"]');if(r&&r.hasAttribute("content"))return r.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&Lme(document);var NOe=':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)}';lG(NOe);class uG{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;e in n&&(t?delete n[e]:(n[e]-=1,n[e]<=0&&delete n[e]),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 dG(r){r.parentNode&&r.parentNode.removeChild(r)}function BA(r,e){if(r.closest)return r.closest(e);if(!document.documentElement.contains(r))return null;do{if(OOe(r,e))return r;r=r.parentElement||r.parentNode}while(r!==null&&r.nodeType===1);return null}function OOe(r,e){return(r.matches||r.matchesSelector||r.msMatchesSelector).call(r,e)}function ROe(r,e){let t=r instanceof HTMLElement?[r]:r,n=[];for(let s=0;s<t.length;s+=1){let l=t[s].querySelectorAll(e);for(let c=0;c<l.length;c+=1)n.push(l[c])}return n}const POe=/(top|left|right|bottom|width|height)$/i;function q6(r,e){for(let t in e)Ume(r,t,e[t])}function Ume(r,e,t){t==null?r.style[e]="":typeof t=="number"&&POe.test(e)?r.style[e]=`${t}px`:r.style[e]=t}function Hme(r){var e,t;return(t=(e=r.composedPath)===null||e===void 0?void 0:e.call(r)[0])!==null&&t!==void 0?t:r.target}let Vme=0;function xP(){return Vme+=1,"fc-dom-"+Vme}function TP(r){r.preventDefault()}function LOe(r,e){return t=>{let n=BA(t.target,r);n&&e.call(n,t,n)}}function $me(r,e,t,n){let s=LOe(t,n);return r.addEventListener(e,s),()=>{r.removeEventListener(e,s)}}function MOe(r,e,t,n){let s;return $me(r,"mouseover",e,(l,c)=>{if(c!==s){s=c,t(l,c);let f=h=>{s=null,n(h,c),c.removeEventListener("mouseleave",f)};c.addEventListener("mouseleave",f)}})}const Qme=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function UOe(r,e){let t=n=>{e(n),Qme.forEach(s=>{r.removeEventListener(s,t)})};Qme.forEach(n=>{r.addEventListener(n,t)})}function zme(r){return Object.assign({onClick:r},jme(r))}function jme(r){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(r(e),e.preventDefault())}}}let Wme=0;function xS(){return Wme+=1,String(Wme)}function fG(){document.body.classList.add("fc-not-allowed")}function AG(){document.body.classList.remove("fc-not-allowed")}function HOe(r){r.style.userSelect="none",r.style.webkitUserSelect="none",r.addEventListener("selectstart",TP)}function VOe(r){r.style.userSelect="",r.style.webkitUserSelect="",r.removeEventListener("selectstart",TP)}function $Oe(r){r.addEventListener("contextmenu",TP)}function QOe(r){r.removeEventListener("contextmenu",TP)}function zOe(r){let e=[],t=[],n,s;for(typeof r=="string"?t=r.split(/\s*,\s*/):typeof r=="function"?t=[r]:Array.isArray(r)&&(t=r),n=0;n<t.length;n+=1)s=t[n],typeof s=="string"?e.push(s.charAt(0)==="-"?{field:s.substring(1),order:-1}:{field:s,order:1}):typeof s=="function"&&e.push({func:s});return e}function jOe(r,e,t){let n,s;for(n=0;n<t.length;n+=1)if(s=WOe(r,e,t[n]),s)return s;return 0}function WOe(r,e,t){return t.func?t.func(r,e):qOe(r[t.field],e[t.field])*(t.order||1)}function qOe(r,e){return!r&&!e?0:e==null?-1:r==null?1:typeof r=="string"||typeof e=="string"?String(r).localeCompare(String(e)):r-e}function K_(r,e){let t=String(r);return"000".substr(0,e-t.length)+t}function G6(r,e,t){return typeof r=="function"?r(...e):typeof r=="string"?e.reduce((n,s,l)=>n.replace("$"+l,s||""),r):t}function GOe(r,e){return r-e}function kP(r){return r%1===0}function KOe(r){let e=r.querySelector(".fc-scrollgrid-shrink-frame"),t=r.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!t)throw new Error("needs fc-scrollgrid-shrink-cushion className");return r.getBoundingClientRect().width-e.getBoundingClientRect().width+t.getBoundingClientRect().width}const qme=["years","months","days","milliseconds"],ZOe=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Ya(r,e){return typeof r=="string"?YOe(r):typeof r=="object"&&r?Gme(r):typeof r=="number"?Gme({[e||"milliseconds"]:r}):null}function YOe(r){let e=ZOe.exec(r);if(e){let t=e[1]?-1:1;return{years:0,months:0,days:t*(e[2]?parseInt(e[2],10):0),milliseconds:t*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Gme(r){let e={years:r.years||r.year||0,months:r.months||r.month||0,days:r.days||r.day||0,milliseconds:(r.hours||r.hour||0)*60*60*1e3+(r.minutes||r.minute||0)*60*1e3+(r.seconds||r.second||0)*1e3+(r.milliseconds||r.millisecond||r.ms||0)},t=r.weeks||r.week;return t&&(e.days+=t*7,e.specifiedWeeks=!0),e}function XOe(r,e){return r.years===e.years&&r.months===e.months&&r.days===e.days&&r.milliseconds===e.milliseconds}function hG(r,e){return{years:r.years+e.years,months:r.months+e.months,days:r.days+e.days,milliseconds:r.milliseconds+e.milliseconds}}function JOe(r,e){return{years:r.years-e.years,months:r.months-e.months,days:r.days-e.days,milliseconds:r.milliseconds-e.milliseconds}}function eRe(r,e){return{years:r.years*e,months:r.months*e,days:r.days*e,milliseconds:r.milliseconds*e}}function tRe(r){return Z_(r)/365}function nRe(r){return Z_(r)/30}function Z_(r){return Pm(r)/864e5}function Pm(r){return r.years*(365*864e5)+r.months*(30*864e5)+r.days*864e5+r.milliseconds}function pG(r,e){let t=null;for(let n=0;n<qme.length;n+=1){let s=qme[n];if(e[s]){let l=r[s]/e[s];if(!kP(l)||t!==null&&t!==l)return null;t=l}else if(r[s])return null}return t}function gG(r){let e=r.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return r.days?r.specifiedWeeks&&r.days%7===0?{unit:"week",value:r.days/7}:{unit:"day",value:r.days}:r.months?{unit:"month",value:r.months}:r.years?{unit:"year",value:r.years}:{unit:"millisecond",value:0}}function v2(r,e,t){if(r===e)return!0;let n=r.length,s;if(n!==e.length)return!1;for(s=0;s<n;s+=1)if(!(t?t(r[s],e[s]):r[s]===e[s]))return!1;return!0}const rRe=["sun","mon","tue","wed","thu","fri","sat"];function Kme(r,e){let t=b2(r);return t[2]+=e*7,Wh(t)}function Bf(r,e){let t=b2(r);return t[2]+=e,Wh(t)}function y2(r,e){let t=b2(r);return t[6]+=e,Wh(t)}function oRe(r,e){return TS(r,e)/7}function TS(r,e){return(e.valueOf()-r.valueOf())/(1e3*60*60*24)}function sRe(r,e){return(e.valueOf()-r.valueOf())/(1e3*60*60)}function iRe(r,e){return(e.valueOf()-r.valueOf())/(1e3*60)}function aRe(r,e){return(e.valueOf()-r.valueOf())/1e3}function lRe(r,e){let t=$c(r),n=$c(e);return{years:0,months:0,days:Math.round(TS(t,n)),milliseconds:e.valueOf()-n.valueOf()-(r.valueOf()-t.valueOf())}}function cRe(r,e){let t=FP(r,e);return t!==null&&t%7===0?t/7:null}function FP(r,e){return w2(r)===w2(e)?Math.round(TS(r,e)):null}function $c(r){return Wh([r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()])}function uRe(r){return Wh([r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours()])}function dRe(r){return Wh([r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes()])}function fRe(r){return Wh([r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds()])}function ARe(r,e,t){let n=r.getUTCFullYear(),s=mG(r,n,e,t);if(s<1)return mG(r,n-1,e,t);let l=mG(r,n+1,e,t);return l>=1?Math.min(s,l):s}function mG(r,e,t,n){let s=Wh([e,0,1+hRe(e,t,n)]),l=$c(r),c=Math.round(TS(s,l));return Math.floor(c/7)+1}function hRe(r,e,t){let n=7+e-t;return-((7+Wh([r,0,n]).getUTCDay()-e)%7)+n-1}function Zme(r){return[r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()]}function Yme(r){return new Date(r[0],r[1]||0,r[2]==null?1:r[2],r[3]||0,r[4]||0,r[5]||0)}function b2(r){return[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()]}function Wh(r){return r.length===1&&(r=r.concat([0])),new Date(Date.UTC(...r))}function Xme(r){return!isNaN(r.valueOf())}function w2(r){return r.getUTCHours()*1e3*60*60+r.getUTCMinutes()*1e3*60+r.getUTCSeconds()*1e3+r.getUTCMilliseconds()}function Jme(r,e,t=!1){let n=r.toISOString();return n=n.replace(".000",""),t&&(n=n.replace("T00:00:00Z","")),n.length>10&&(e==null?n=n.replace("Z",""):e!==0&&(n=n.replace("Z",yG(e,!0)))),n}function vG(r){return r.toISOString().replace(/T.*$/,"")}function pRe(r){return r.toISOString().match(/^\d{4}-\d{2}/)[0]}function gRe(r){return K_(r.getUTCHours(),2)+":"+K_(r.getUTCMinutes(),2)+":"+K_(r.getUTCSeconds(),2)}function yG(r,e=!1){let t=r<0?"-":"+",n=Math.abs(r),s=Math.floor(n/60),l=Math.round(n%60);return e?`${t+K_(s,2)}:${K_(l,2)}`:`GMT${t}${s}${l?`:${K_(l,2)}`:""}`}function li(r,e,t){let n,s;return function(...l){if(!n)s=r.apply(this,l);else if(!v2(n,l)){let c=r.apply(this,l);(!e||!e(c,s))&&(s=c)}return n=l,s}}function IP(r,e,t){let n,s;return l=>(n?Lm(n,l)||(s=r.call(this,l)):s=r.call(this,l),n=l,s)}const bG={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},DP={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},NP=/\s*([ap])\.?m\.?/i,mRe=/,/g,vRe=/\s+/g,yRe=/\u200e/g,bRe=/UTC|GMT/;class wRe{constructor(e){let t={},n={},s=9;for(let l in e)l in bG?(n[l]=e[l],bG[l]<9&&(s=Math.min(bG[l],s))):(t[l]=e[l],l in DP&&(s=Math.min(DP[l],s)));this.standardDateProps=t,this.extendedSettings=n,this.smallestUnitNum=s,this.buildFormattingFunc=li(e1e)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,s){let{standardDateProps:l,extendedSettings:c}=this,f=xRe(e.marker,t.marker,n.calendarSystem);if(!f)return this.format(e,n);let h=f;h>1&&(l.year==="numeric"||l.year==="2-digit")&&(l.month==="numeric"||l.month==="2-digit")&&(l.day==="numeric"||l.day==="2-digit")&&(h=1);let m=this.format(e,n),b=this.format(t,n);if(m===b)return m;let S=TRe(l,h),T=e1e(S,c,n),_=T(e),F=T(t),R=kRe(m,_,b,F),N=c.separator||s||n.defaultSeparator||"";return R?R.before+_+N+F+R.after:m+N+b}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function e1e(r,e,t){let n=Object.keys(r).length;return n===1&&r.timeZoneName==="short"?s=>yG(s.timeZoneOffset):n===0&&e.week?s=>BRe(t.computeWeekNumber(s.marker),t.weekText,t.weekTextLong,t.locale,e.week):CRe(r,e,t)}function CRe(r,e,t){r=Object.assign({},r),e=Object.assign({},e),SRe(r,e),r.timeZone="UTC";let n=new Intl.DateTimeFormat(t.locale.codes,r),s;if(e.omitZeroMinute){let l=Object.assign({},r);delete l.minute,s=new Intl.DateTimeFormat(t.locale.codes,l)}return l=>{let{marker:c}=l,f;s&&!c.getUTCMinutes()?f=s:f=n;let h=f.format(c);return ERe(h,l,r,e,t)}}function SRe(r,e){r.timeZoneName&&(r.hour||(r.hour="2-digit"),r.minute||(r.minute="2-digit")),r.timeZoneName==="long"&&(r.timeZoneName="short"),e.omitZeroMinute&&(r.second||r.millisecond)&&delete e.omitZeroMinute}function ERe(r,e,t,n,s){return r=r.replace(yRe,""),t.timeZoneName==="short"&&(r=_Re(r,s.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":yG(e.timeZoneOffset))),n.omitCommas&&(r=r.replace(mRe,"").trim()),n.omitZeroMinute&&(r=r.replace(":00","")),n.meridiem===!1?r=r.replace(NP,"").trim():n.meridiem==="narrow"?r=r.replace(NP,(l,c)=>c.toLocaleLowerCase()):n.meridiem==="short"?r=r.replace(NP,(l,c)=>`${c.toLocaleLowerCase()}m`):n.meridiem==="lowercase"&&(r=r.replace(NP,l=>l.toLocaleLowerCase())),r=r.replace(vRe," "),r=r.trim(),r}function _Re(r,e){let t=!1;return r=r.replace(bRe,()=>(t=!0,e)),t||(r+=` ${e}`),r}function BRe(r,e,t,n,s){let l=[];return s==="long"?l.push(t):(s==="short"||s==="narrow")&&l.push(e),(s==="long"||s==="short")&&l.push(" "),l.push(n.simpleNumberFormat.format(r)),n.options.direction==="rtl"&&l.reverse(),l.join("")}function xRe(r,e,t){return t.getMarkerYear(r)!==t.getMarkerYear(e)?5:t.getMarkerMonth(r)!==t.getMarkerMonth(e)?4:t.getMarkerDay(r)!==t.getMarkerDay(e)?2:w2(r)!==w2(e)?1:0}function TRe(r,e){let t={};for(let n in r)(!(n in DP)||DP[n]<=e)&&(t[n]=r[n]);return t}function kRe(r,e,t,n){let s=0;for(;s<r.length;){let l=r.indexOf(e,s);if(l===-1)break;let c=r.substr(0,l);s=l+e.length;let f=r.substr(s),h=0;for(;h<t.length;){let m=t.indexOf(n,h);if(m===-1)break;let b=t.substr(0,m);h=m+n.length;let S=t.substr(h);if(c===b&&f===S)return{before:c,after:f}}}return null}function t1e(r,e){let t=e.markerToArray(r.marker);return{marker:r.marker,timeZoneOffset:r.timeZoneOffset,array:t,year:t[0],month:t[1],day:t[2],hour:t[3],minute:t[4],second:t[5],millisecond:t[6]}}function OP(r,e,t,n){let s=t1e(r,t.calendarSystem),l=e?t1e(e,t.calendarSystem):null;return{date:s,start:s,end:l,timeZone:t.timeZone,localeCodes:t.locale.codes,defaultSeparator:n||t.defaultSeparator}}class FRe{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,OP(e,null,t,n))}formatRange(e,t,n,s){return n.cmdFormatter(this.cmdStr,OP(e,t,n,s))}}class IRe{constructor(e){this.func=e}format(e,t,n){return this.func(OP(e,null,t,n))}formatRange(e,t,n,s){return this.func(OP(e,t,n,s))}}function Fu(r){return typeof r=="object"&&r?new wRe(r):typeof r=="string"?new FRe(r):typeof r=="function"?new IRe(r):null}const n1e={navLinkDayClick:Hn,navLinkWeekClick:Hn,duration:Ya,bootstrapFontAwesome:Hn,buttonIcons:Hn,customButtons:Hn,defaultAllDayEventDuration:Ya,defaultTimedEventDuration:Ya,nextDayThreshold:Ya,scrollTime:Ya,scrollTimeReset:Boolean,slotMinTime:Ya,slotMaxTime:Ya,dayPopoverFormat:Fu,slotDuration:Ya,snapDuration:Ya,headerToolbar:Hn,footerToolbar:Hn,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Fu,dayHeaderClassNames:Hn,dayHeaderContent:Hn,dayHeaderDidMount:Hn,dayHeaderWillUnmount:Hn,dayCellClassNames:Hn,dayCellContent:Hn,dayCellDidMount:Hn,dayCellWillUnmount:Hn,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Hn,weekNumbers:Boolean,weekNumberClassNames:Hn,weekNumberContent:Hn,weekNumberDidMount:Hn,weekNumberWillUnmount:Hn,editable:Boolean,viewClassNames:Hn,viewDidMount:Hn,viewWillUnmount:Hn,nowIndicator:Boolean,nowIndicatorSnap:Hn,nowIndicatorClassNames:Hn,nowIndicatorContent:Hn,nowIndicatorDidMount:Hn,nowIndicatorWillUnmount:Hn,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Hn,locale:Hn,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Hn,eventOrder:zOe,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Hn,contentHeight:Hn,direction:String,weekNumberFormat:Fu,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:Hn,initialDate:Hn,now:Hn,eventDataTransform:Hn,stickyHeaderDates:Hn,stickyFooterScrollbar:Hn,viewHeight:Hn,defaultAllDay:Boolean,eventSourceFailure:Hn,eventSourceSuccess:Hn,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Hn,eventConstraint:Hn,eventAllow:Hn,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Hn,eventContent:Hn,eventDidMount:Hn,eventWillUnmount:Hn,selectConstraint:Hn,selectOverlap:Hn,selectAllow:Hn,droppable:Boolean,unselectCancel:String,slotLabelFormat:Hn,slotLaneClassNames:Hn,slotLaneContent:Hn,slotLaneDidMount:Hn,slotLaneWillUnmount:Hn,slotLabelClassNames:Hn,slotLabelContent:Hn,slotLabelDidMount:Hn,slotLabelWillUnmount:Hn,dayMaxEvents:Hn,dayMaxEventRows:Hn,dayMinWidth:Number,slotLabelInterval:Ya,allDayText:String,allDayClassNames:Hn,allDayContent:Hn,allDayDidMount:Hn,allDayWillUnmount:Hn,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Fu,rerenderDelay:Number,moreLinkText:Hn,moreLinkHint:Hn,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Hn,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Ya,hiddenDays:Hn,fixedWeekCount:Boolean,validRange:Hn,visibleRange:Hn,titleFormat:Hn,eventInteractive:Boolean,noEventsText:String,viewHint:Hn,navLinkHint:Hn,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:Hn,moreLinkClassNames:Hn,moreLinkContent:Hn,moreLinkDidMount:Hn,moreLinkWillUnmount:Hn,monthStartFormat:Fu,handleCustomRendering:Hn,customRenderingMetaMap:Hn,customRenderingReplaces:Boolean},K6={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"},nowIndicatorSnap:"auto"},r1e={datesSet:Hn,eventsSet:Hn,eventAdd:Hn,eventChange:Hn,eventRemove:Hn,windowResize:Hn,eventClick:Hn,eventMouseEnter:Hn,eventMouseLeave:Hn,select:Hn,unselect:Hn,loading:Hn,_unmount:Hn,_beforeprint:Hn,_afterprint:Hn,_noEventDrop:Hn,_noEventResize:Hn,_resize:Hn,_scrollRequest:Hn},o1e={buttonText:Hn,buttonHints:Hn,views:Hn,plugins:Hn,initialEvents:Hn,events:Hn,eventSources:Hn},kS={headerToolbar:FS,footerToolbar:FS,buttonText:FS,buttonHints:FS,buttonIcons:FS,dateIncrement:FS,plugins:RP,events:RP,eventSources:RP,resources:RP};function FS(r,e){return typeof r=="object"&&typeof e=="object"&&r&&e?Lm(r,e):r===e}function RP(r,e){return Array.isArray(r)&&Array.isArray(e)?v2(r,e):r===e}const DRe={type:String,component:Hn,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Hn,usesMinMaxTime:Boolean,classNames:Hn,content:Hn,didMount:Hn,willUnmount:Hn};function wG(r){return SG(r,kS)}function CG(r,e){let t={},n={};for(let s in e)s in r&&(t[s]=e[s](r[s]));for(let s in r)s in e||(n[s]=r[s]);return{refined:t,extra:n}}function Hn(r){return r}const{hasOwnProperty:PP}=Object.prototype;function SG(r,e){let t={};if(e){for(let n in e)if(e[n]===FS){let s=[];for(let l=r.length-1;l>=0;l-=1){let c=r[l][n];if(typeof c=="object"&&c)s.unshift(c);else if(c!==void 0){t[n]=c;break}}s.length&&(t[n]=SG(s))}}for(let n=r.length-1;n>=0;n-=1){let s=r[n];for(let l in s)l in t||(t[l]=s[l])}return t}function IS(r,e){let t={};for(let n in r)e(r[n],n)&&(t[n]=r[n]);return t}function sy(r,e){let t={};for(let n in r)t[n]=e(r[n],n);return t}function s1e(r){let e={};for(let t of r)e[t]=!0;return e}function EG(r){let e=[];for(let t in r)e.push(r[t]);return e}function Lm(r,e){if(r===e)return!0;for(let t in r)if(PP.call(r,t)&&!(t in e))return!1;for(let t in e)if(PP.call(e,t)&&r[t]!==e[t])return!1;return!0}const NRe=/^on[A-Z]/;function ORe(r,e){const t=RRe(r,e);for(let n of t)if(!NRe.test(n))return!1;return!0}function RRe(r,e){let t=[];for(let n in r)PP.call(r,n)&&(n in e||t.push(n));for(let n in e)PP.call(e,n)&&r[n]!==e[n]&&t.push(n);return t}function _G(r,e,t={}){if(r===e)return!0;for(let n in e)if(!(n in r&&PRe(r[n],e[n],t[n])))return!1;for(let n in r)if(!(n in e))return!1;return!0}function PRe(r,e,t){return r===e||t===!0?!0:t?t(r,e):!1}function LRe(r,e=0,t,n=1){let s=[];t==null&&(t=Object.keys(r).length);for(let l=e;l<t;l+=n){let c=r[l];c!==void 0&&s.push(c)}return s}let i1e={};function MRe(r,e){i1e[r]=e}function URe(r){return new i1e[r]}class HRe{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Wh(e)}markerToArray(e){return b2(e)}}MRe("gregory",HRe);const VRe=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function $Re(r){let e=VRe.exec(r);if(e){let t=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(Xme(t)){let n=null;return e[13]&&(n=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:t,isTimeUnspecified:!e[6],timeZoneOffset:n}}}return null}class QRe{constructor(e){let t=this.timeZone=e.timeZone,n=t!=="local"&&t!=="UTC";e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=!!(!n||this.namedTimeZoneImpl),this.calendarSystem=URe(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return t===null?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Wh(Zme(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let t=null;return typeof e=="number"?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=Wh(e)),t===null||!Xme(t)?null:{marker:t,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let t=$Re(e);if(t===null)return null;let{marker:n}=t,s=null;return t.timeZoneOffset!==null&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-t.timeZoneOffset*60*1e3):s=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:s}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return w2(e)===w2(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return w2(e)===w2(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+(n.getMarkerYear(t)-n.getMarkerYear(e))*12:null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return n!==null?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),n!==null?{unit:"month",value:n}:(n=cRe(e,t),n!==null?{unit:"week",value:n}:(n=FP(e,t),n!==null?{unit:"day",value:n}:(n=sRe(e,t),kP(n)?{unit:"hour",value:n}:(n=iRe(e,t),kP(n)?{unit:"minute",value:n}:(n=aRe(e,t),kP(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let s;return n.years&&(s=this.diffWholeYears(e,t),s!==null)?s/tRe(n):n.months&&(s=this.diffWholeMonths(e,t),s!==null)?s/nRe(n):n.days&&(s=FP(e,t),s!==null)?s/Z_(n):(t.valueOf()-e.valueOf())/Pm(n)}startOf(e,t){return t==="year"?this.startOfYear(e):t==="month"?this.startOfMonth(e):t==="week"?this.startOfWeek(e):t==="day"?$c(e):t==="hour"?uRe(e):t==="minute"?dRe(e):t==="second"?fRe(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):ARe(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:n.forcedTzo!=null?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,s={}){return s.isEndExclusive&&(t=y2(t,-1)),n.formatRange({marker:e,timeZoneOffset:s.forcedStartTzo!=null?s.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:s.forcedEndTzo!=null?s.forcedEndTzo:this.offsetForMarker(t)},this,s.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(t.forcedTzo!=null?n=t.forcedTzo:n=this.offsetForMarker(e)),Jme(e,n,t.omitTime)}timestampToMarker(e){return this.timeZone==="local"?Wh(Zme(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):Wh(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Yme(b2(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(b2(e)):null}toDate(e,t){return this.timeZone==="local"?Yme(b2(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(b2(e))*1e3*60):new Date(e.valueOf()-(t||0))}}class Z6{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if(typeof e=="object"&&e){t=Object.assign({},this.iconClasses);for(n in e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&e.indexOf(t)!==0&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return t&&this.rtlIconClasses?n=this.rtlIconClasses[e]||this.iconClasses[e]:n=this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}Z6.prototype.classes={},Z6.prototype.iconClasses={},Z6.prototype.baseIconClass="",Z6.prototype.iconOverridePrefix="";function LP(r){r();let e=si.debounceRendering,t=[];function n(s){t.push(s)}for(si.debounceRendering=n,W6(Qt(zRe,{}),document.createElement("div"));t.length;)t.shift()();si.debounceRendering=e}class zRe extends Qp{render(){return Qt("div",{})}componentDidMount(){this.setState({})}}function a1e(r){let e=hOe(r),t=e.Provider;return e.Provider=function(){let n=!this.getChildContext,s=t.apply(this,arguments);if(n){let l=[];this.shouldComponentUpdate=c=>{this.props.value!==c.value&&l.forEach(f=>{f.context=c.value,f.forceUpdate()})},this.sub=c=>{l.push(c);let f=c.componentWillUnmount;c.componentWillUnmount=()=>{l.splice(l.indexOf(c),1),f&&f.call(c)}}}return s},e}class jRe{constructor(e,t,n,s){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=s,this.handleScrollRequest=l=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},l),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const iy=a1e({});function WRe(r,e,t,n,s,l,c,f,h,m,b,S,T,_){return{dateEnv:s,nowManager:l,options:t,pluginHooks:f,emitter:b,dispatch:h,getCurrentData:m,calendarApi:S,viewSpec:r,viewApi:e,dateProfileGenerator:n,theme:c,isRtl:t.direction==="rtl",addResizeHandler(F){b.on("_resize",F)},removeResizeHandler(F){b.off("_resize",F)},createScrollResponder(F){return new jRe(F,b,Ya(t.scrollTime),t.scrollTimeReset)},registerInteractiveComponent:T,unregisterInteractiveComponent:_}}class DS extends Qp{shouldComponentUpdate(e,t){return!_G(this.props,e,this.propEquality)||!_G(this.state,t,this.stateEquality)}safeSetState(e){_G(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}DS.addPropsEquality=qRe,DS.addStateEquality=GRe,DS.contextType=iy,DS.prototype.propEquality={},DS.prototype.stateEquality={};class ql extends DS{}ql.contextType=iy;function qRe(r){let e=Object.create(this.prototype.propEquality);Object.assign(e,r),this.prototype.propEquality=e}function GRe(r){let e=Object.create(this.prototype.stateEquality);Object.assign(e,r),this.prototype.stateEquality=e}function K1(r,e){typeof r=="function"?r(e):r&&(r.current=e)}class BG extends ql{constructor(){super(...arguments),this.id=xS(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;(!t.customRenderingReplaces||!xG(n,t))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&K1(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:s,defaultGenerator:l,renderProps:c}=e,f=l1e(e,[],this.handleEl);let h=!1,m,b=[],S;if(s!=null){const T=typeof s=="function"?s(c,Qt):s;if(T===!0)h=!0;else{const _=T&&typeof T=="object";_&&"html"in T?f.dangerouslySetInnerHTML={__html:T.html}:_&&"domNodes"in T?b=Array.prototype.slice.call(T.domNodes):(_?Jge(T):typeof T!="function")?m=T:S=T}}else h=!xG(e.generatorName,n);return h&&l&&(m=l(c)),this.queuedDomNodes=b,this.currentGeneratorMeta=S,Qt(e.elTag,f,m)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:s}=this,{handleCustomRendering:l,customRenderingMetaMap:c}=s.options;if(l){const f=(t=this.currentGeneratorMeta)!==null&&t!==void 0?t:c==null?void 0:c[n.generatorName];f&&l(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:f},n),{elClasses:(n.elClasses||[]).filter(KRe)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!v2(e,t)){t.forEach(dG);for(let s of e)n.appendChild(s);this.currentDomNodes=e}}}BG.addPropsEquality({elClasses:v2,elStyle:Lm,elAttrs:ORe,renderProps:Lm});function xG(r,e){var t;return!!(e.handleCustomRendering&&r&&(!((t=e.customRenderingMetaMap)===null||t===void 0)&&t[r]))}function l1e(r,e,t){const n=Object.assign(Object.assign({},r.elAttrs),{ref:t});return(r.elClasses||e)&&(n.className=(r.elClasses||[]).concat(e||[]).concat(n.className||[]).filter(Boolean).join(" ")),r.elStyle&&(n.style=r.elStyle),n}function KRe(r){return!!r}const c1e=a1e(0);class zp extends Qp{constructor(){super(...arguments),this.InnerContent=ZRe.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(K1(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=YRe(e.classNameGenerator,e.renderProps);if(e.children){const n=l1e(e,t,this.handleEl),s=e.children(this.InnerContent,e.renderProps,n);return e.elTag?Qt(e.elTag,n,s):s}else return Qt(BG,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;this.el?(t=(e=this.props).didMount)===null||t===void 0||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;(t=(e=this.props).willUnmount)===null||t===void 0||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}zp.contextType=c1e;function ZRe(r,e){const t=r.props;return Qt(BG,Object.assign({renderProps:t.renderProps,generatorName:t.generatorName,customGenerator:t.customGenerator,defaultGenerator:t.defaultGenerator,renderId:r.context},e))}function YRe(r,e){const t=typeof r=="function"?r(e):r||[];return typeof t=="string"?[t]:t}class MP extends ql{render(){let{props:e,context:t}=this,{options:n}=t,s={view:t.viewApi};return Qt(zp,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...u1e(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:s,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount},()=>e.children)}}function u1e(r){return[`fc-${r.type}-view`,"fc-view"]}function XRe(r,e){let t=null,n=null;return r.start&&(t=e.createMarker(r.start)),r.end&&(n=e.createMarker(r.end)),!t&&!n||t&&n&&n<t?null:{start:t,end:n}}function d1e(r,e){let t=[],{start:n}=e,s,l;for(r.sort(JRe),s=0;s<r.length;s+=1)l=r[s],l.start>n&&t.push({start:n,end:l.start}),l.end>n&&(n=l.end);return n<e.end&&t.push({start:n,end:e.end}),t}function JRe(r,e){return r.start.valueOf()-e.start.valueOf()}function NS(r,e){let{start:t,end:n}=r,s=null;return e.start!==null&&(t===null?t=e.start:t=new Date(Math.max(t.valueOf(),e.start.valueOf()))),e.end!=null&&(n===null?n=e.end:n=new Date(Math.min(n.valueOf(),e.end.valueOf()))),(t===null||n===null||t<n)&&(s={start:t,end:n}),s}function e7e(r,e){return(r.start===null?null:r.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(r.end===null?null:r.end.valueOf())===(e.end===null?null:e.end.valueOf())}function TG(r,e){return(r.end===null||e.start===null||r.end>e.start)&&(r.start===null||e.end===null||r.start<e.end)}function UP(r,e){return(r.start===null||e.start!==null&&e.start>=r.start)&&(r.end===null||e.end!==null&&e.end<=r.end)}function ay(r,e){return(r.start===null||e>=r.start)&&(r.end===null||e<r.end)}function t7e(r,e){return e.start!=null&&r<e.start?e.start:e.end!=null&&r>=e.end?new Date(e.end.valueOf()-1):r}function f1e(r){let e=Math.floor(TS(r.start,r.end))||1,t=$c(r.start),n=Bf(t,e);return{start:t,end:n}}function A1e(r,e=Ya(0)){let t=null,n=null;if(r.end){n=$c(r.end);let s=r.end.valueOf()-n.valueOf();s&&s>=Pm(e)&&(n=Bf(n,1))}return r.start&&(t=$c(r.start),n&&n<=t&&(n=Bf(t,1))),{start:t,end:n}}function Y_(r,e,t,n){return n==="year"?Ya(t.diffWholeYears(r,e),"year"):n==="month"?Ya(t.diffWholeMonths(r,e),"month"):lRe(r,e)}class h1e{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:s}=this.props,l=s.subtract(s.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(l,-1,n)}buildNext(e,t,n){let{dateEnv:s}=this.props,l=s.add(s.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(l,1,n)}build(e,t,n=!0){let{props:s}=this,l,c,f,h,m,b;return l=this.buildValidRange(),l=this.trimHiddenDays(l),n&&(e=t7e(e,l)),c=this.buildCurrentRangeInfo(e,t),f=/^(year|month|week|day)$/.test(c.unit),h=this.buildRenderRange(this.trimHiddenDays(c.range),c.unit,f),h=this.trimHiddenDays(h),m=h,s.showNonCurrentDates||(m=NS(m,c.range)),m=this.adjustActiveRange(m),m=NS(m,l),b=TG(c.range,l),ay(h,e)||(e=h.start),{currentDate:e,validRange:l,currentRange:c.range,currentRangeUnit:c.unit,isRangeAllDay:f,activeRange:m,renderRange:h,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,isValid:b,dateIncrement:this.buildDateIncrement(c.duration)}}buildValidRange(){let e=this.props.validRangeInput,t=typeof e=="function"?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let{props:n}=this,s=null,l=null,c=null,f;return n.duration?(s=n.duration,l=n.durationUnit,c=this.buildRangeFromDuration(e,t,s,l)):(f=this.props.dayCount)?(l="day",c=this.buildRangeFromDayCount(e,t,f)):(c=this.buildCustomVisibleRange(e))?l=n.dateEnv.greatestWholeUnit(c.start,c.end).unit:(s=this.getFallbackDuration(),l=gG(s).unit,c=this.buildRangeFromDuration(e,t,s,l)),{duration:s,unit:l,range:c}}getFallbackDuration(){return Ya({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:s,slotMaxTime:l}=this.props,{start:c,end:f}=e;return n&&(Z_(s)<0&&(c=$c(c),c=t.add(c,s)),Z_(l)>1&&(f=$c(f),f=Bf(f,-1),f=t.add(f,l))),{start:c,end:f}}buildRangeFromDuration(e,t,n,s){let{dateEnv:l,dateAlignment:c}=this.props,f,h,m;if(!c){let{dateIncrement:S}=this.props;S&&Pm(S)<Pm(n)?c=gG(S).unit:c=s}Z_(n)<=1&&this.isHiddenDay(f)&&(f=this.skipHiddenDays(f,t),f=$c(f));function b(){f=l.startOf(e,c),h=l.add(f,n),m={start:f,end:h}}return b(),this.trimHiddenDays(m)||(e=this.skipHiddenDays(e,t),b()),m}buildRangeFromDayCount(e,t,n){let{dateEnv:s,dateAlignment:l}=this.props,c=0,f=e,h;l&&(f=s.startOf(f,l)),f=$c(f),f=this.skipHiddenDays(f,t),h=f;do h=Bf(h,1),this.isHiddenDay(h)||(c+=1);while(c<n);return{start:f,end:h}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,s=typeof n=="function"?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,l=this.refineRange(s);return l&&(l.start==null||l.end==null)?null:l}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let{dateIncrement:t}=this.props,n;return t||((n=this.props.dateAlignment)?Ya(1,n):e||Ya({days:1}))}refineRange(e){if(e){let t=XRe(e,this.props.dateEnv);return t&&(t=A1e(t)),t}return null}initHiddenDays(){let e=this.props.hiddenDays||[],t=[],n=0,s;for(this.props.weekends===!1&&e.push(0,6),s=0;s<7;s+=1)(t[s]=e.indexOf(s)!==-1)||(n+=1);if(!n)throw new Error("invalid hiddenDays");this.isHiddenDayHash=t}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),t==null||n==null||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=Bf(e,t);return e}}function kG(r,e,t,n){return{instanceId:xS(),defId:r,range:e,forcedStartTzo:t??null,forcedEndTzo:n??null}}function n7e(r,e,t,n){for(let s=0;s<n.length;s+=1){let l=n[s].parse(r,t);if(l){let{allDay:c}=r;return c==null&&(c=e,c==null&&(c=l.allDayGuess,c==null&&(c=!1))),{allDay:c,duration:l.duration,typeData:l.typeData,typeId:s}}}return null}function OS(r,e,t){let{dateEnv:n,pluginHooks:s,options:l}=t,{defs:c,instances:f}=r;f=IS(f,h=>!c[h.defId].recurringDef);for(let h in c){let m=c[h];if(m.recurringDef){let{duration:b}=m.recurringDef;b||(b=m.allDay?l.defaultAllDayEventDuration:l.defaultTimedEventDuration);let S=r7e(m,b,e,n,s.recurringTypes);for(let T of S){let _=kG(h,{start:T,end:n.add(T,b)});f[_.instanceId]=_}}}return{defs:c,instances:f}}function r7e(r,e,t,n,s){let c=s[r.recurringDef.typeId].expand(r.recurringDef.typeData,{start:n.subtract(t.start,e),end:t.end},n);return r.allDay&&(c=c.map($c)),c}const HP={id:String,groupId:String,title:String,url:String,interactive:Boolean},p1e={start:Hn,end:Hn,date:Hn,allDay:Boolean},o7e=Object.assign(Object.assign(Object.assign({},HP),p1e),{extendedProps:Hn});function g1e(r,e,t,n,s=FG(t),l,c){let{refined:f,extra:h}=m1e(r,t,s),m=i7e(e,t),b=n7e(f,m,t.dateEnv,t.pluginHooks.recurringTypes);if(b){let T=IG(f,h,e?e.sourceId:"",b.allDay,!!b.duration,t,l);return T.recurringDef={typeId:b.typeId,typeData:b.typeData,duration:b.duration},{def:T,instance:null}}let S=s7e(f,m,t,n);if(S){let T=IG(f,h,e?e.sourceId:"",S.allDay,S.hasEnd,t,l),_=kG(T.defId,S.range,S.forcedStartTzo,S.forcedEndTzo);return c&&T.publicId&&c[T.publicId]&&(_.instanceId=c[T.publicId]),{def:T,instance:_}}return null}function m1e(r,e,t=FG(e)){return CG(r,t)}function FG(r){return Object.assign(Object.assign(Object.assign({},$P),o7e),r.pluginHooks.eventRefiners)}function IG(r,e,t,n,s,l,c){let f={title:r.title||"",groupId:r.groupId||"",publicId:r.id||"",url:r.url||"",recurringDef:null,defId:(c&&r.id?c[r.id]:"")||xS(),sourceId:t,allDay:n,hasEnd:s,interactive:r.interactive,ui:QP(r,l),extendedProps:Object.assign(Object.assign({},r.extendedProps||{}),e)};for(let h of l.pluginHooks.eventDefMemberAdders)Object.assign(f,h(r));return Object.freeze(f.ui.classNames),Object.freeze(f.extendedProps),f}function s7e(r,e,t,n){let{allDay:s}=r,l,c=null,f=!1,h,m=null,b=r.start!=null?r.start:r.date;if(l=t.dateEnv.createMarkerMeta(b),l)c=l.marker;else if(!n)return null;return r.end!=null&&(h=t.dateEnv.createMarkerMeta(r.end)),s==null&&(e!=null?s=e:s=(!l||l.isTimeUnspecified)&&(!h||h.isTimeUnspecified)),s&&c&&(c=$c(c)),h&&(m=h.marker,s&&(m=$c(m)),c&&m<=c&&(m=null)),m?f=!0:n||(f=t.options.forceEventDuration||!1,m=t.dateEnv.add(c,s?t.options.defaultAllDayEventDuration:t.options.defaultTimedEventDuration)),{allDay:s,hasEnd:f,range:{start:c,end:m},forcedStartTzo:l?l.forcedTzo:null,forcedEndTzo:h?h.forcedTzo:null}}function i7e(r,e){let t=null;return r&&(t=r.defaultAllDay),t==null&&(t=e.options.defaultAllDay),t}function Y6(r,e,t,n,s,l){let c=jp(),f=FG(t);for(let h of r){let m=g1e(h,e,t,n,f,s,l);m&&DG(m,c)}return c}function DG(r,e=jp()){return e.defs[r.def.defId]=r.def,r.instance&&(e.instances[r.instance.instanceId]=r.instance),e}function NG(r,e){let t=r.instances[e];if(t){let n=r.defs[t.defId],s=VP(r,l=>a7e(n,l));return s.defs[n.defId]=n,s.instances[t.instanceId]=t,s}return jp()}function a7e(r,e){return!!(r.groupId&&r.groupId===e.groupId)}function jp(){return{defs:{},instances:{}}}function OG(r,e){return{defs:Object.assign(Object.assign({},r.defs),e.defs),instances:Object.assign(Object.assign({},r.instances),e.instances)}}function VP(r,e){let t=IS(r.defs,e),n=IS(r.instances,s=>t[s.defId]);return{defs:t,instances:n}}function l7e(r,e){let{defs:t,instances:n}=r,s={},l={};for(let c in t)e.defs[c]||(s[c]=t[c]);for(let c in n)!e.instances[c]&&s[n[c].defId]&&(l[c]=n[c]);return{defs:s,instances:l}}function c7e(r,e){return Array.isArray(r)?Y6(r,null,e,!0):typeof r=="object"&&r?Y6([r],null,e,!0):r!=null?String(r):null}function v1e(r){return Array.isArray(r)?r:typeof r=="string"?r.split(/\s+/):[]}const $P={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Hn,overlap:Hn,allow:Hn,className:v1e,classNames:v1e,color:String,backgroundColor:String,borderColor:String,textColor:String},u7e={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function QP(r,e){let t=c7e(r.constraint,e);return{display:r.display||null,startEditable:r.startEditable!=null?r.startEditable:r.editable,durationEditable:r.durationEditable!=null?r.durationEditable:r.editable,constraints:t!=null?[t]:[],overlap:r.overlap!=null?r.overlap:null,allows:r.allow!=null?[r.allow]:[],backgroundColor:r.backgroundColor||r.color||"",borderColor:r.borderColor||r.color||"",textColor:r.textColor||"",classNames:(r.className||[]).concat(r.classNames||[])}}function y1e(r){return r.reduce(d7e,u7e)}function d7e(r,e){return{display:e.display!=null?e.display:r.display,startEditable:e.startEditable!=null?e.startEditable:r.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:r.durationEditable,constraints:r.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:r.overlap,allows:r.allows.concat(e.allows),backgroundColor:e.backgroundColor||r.backgroundColor,borderColor:e.borderColor||r.borderColor,textColor:e.textColor||r.textColor,classNames:r.classNames.concat(e.classNames)}}const f7e={id:String,defaultAllDay:Boolean,url:String,format:String,events:Hn,eventDataTransform:Hn,success:Hn,failure:Hn};function b1e(r,e,t=w1e(e)){let n;if(typeof r=="string"?n={url:r}:typeof r=="function"||Array.isArray(r)?n={events:r}:typeof r=="object"&&r&&(n=r),n){let{refined:s,extra:l}=CG(n,t),c=A7e(s,e);if(c)return{_raw:r,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:s.defaultAllDay,eventDataTransform:s.eventDataTransform,success:s.success,failure:s.failure,publicId:s.id||"",sourceId:xS(),sourceDefId:c.sourceDefId,meta:c.meta,ui:QP(s,e),extendedProps:l}}return null}function w1e(r){return Object.assign(Object.assign(Object.assign({},$P),f7e),r.pluginHooks.eventSourceRefiners)}function A7e(r,e){let t=e.pluginHooks.eventSourceDefs;for(let n=t.length-1;n>=0;n-=1){let l=t[n].parseMeta(r);if(l)return{sourceDefId:n,meta:l}}return null}function h7e(r,e,t,n,s){switch(e.type){case"RECEIVE_EVENTS":return p7e(r,t[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,s);case"RESET_RAW_EVENTS":return g7e(r,t[e.sourceId],e.rawEvents,n.activeRange,s);case"ADD_EVENTS":return m7e(r,e.eventStore,n?n.activeRange:null,s);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return OG(r,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?OS(r,n.activeRange,s):r;case"REMOVE_EVENTS":return l7e(r,e.eventStore);case"REMOVE_EVENT_SOURCE":return _1e(r,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return VP(r,l=>!l.sourceId);case"REMOVE_ALL_EVENTS":return jp();default:return r}}function p7e(r,e,t,n,s,l){if(e&&t===e.latestFetchId){let c=Y6(C1e(s,e,l),e,l);return n&&(c=OS(c,n,l)),OG(_1e(r,e.sourceId),c)}return r}function g7e(r,e,t,n,s){const{defIdMap:l,instanceIdMap:c}=y7e(r);let f=Y6(C1e(t,e,s),e,s,!1,l,c);return OS(f,n,s)}function C1e(r,e,t){let n=t.options.eventDataTransform,s=e?e.eventDataTransform:null;return s&&(r=S1e(r,s)),n&&(r=S1e(r,n)),r}function S1e(r,e){let t;if(!e)t=r;else{t=[];for(let n of r){let s=e(n);s?t.push(s):s==null&&t.push(n)}}return t}function m7e(r,e,t,n){return t&&(e=OS(e,t,n)),OG(r,e)}function E1e(r,e,t){let{defs:n}=r,s=sy(r.instances,l=>n[l.defId].allDay?l:Object.assign(Object.assign({},l),{range:{start:t.createMarker(e.toDate(l.range.start,l.forcedStartTzo)),end:t.createMarker(e.toDate(l.range.end,l.forcedEndTzo))},forcedStartTzo:t.canComputeOffset?null:l.forcedStartTzo,forcedEndTzo:t.canComputeOffset?null:l.forcedEndTzo}));return{defs:n,instances:s}}function _1e(r,e){return VP(r,t=>t.sourceId!==e)}function v7e(r,e){return{defs:r.defs,instances:IS(r.instances,t=>!e[t.instanceId])}}function y7e(r){const{defs:e,instances:t}=r,n={},s={};for(let l in e){const c=e[l],{publicId:f}=c;f&&(n[f]=l)}for(let l in t){const c=t[l],f=e[c.defId],{publicId:h}=f;h&&(s[h]=l)}return{defIdMap:n,instanceIdMap:s}}class zP{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){b7e(this.handlers,e,t)}off(e,t){w7e(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],s=this.options&&this.options[e],l=[].concat(s||[],n);for(let c of l)c.apply(this.thisContext,t)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function b7e(r,e,t){(r[e]||(r[e]=[])).push(t)}function w7e(r,e,t){t?r[e]&&(r[e]=r[e].filter(n=>n!==t)):delete r[e]}const C7e={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function S7e(r,e){return Y6(E7e(r),null,e)}function E7e(r){let e;return r===!0?e=[{}]:Array.isArray(r)?e=r.filter(t=>t.daysOfWeek):typeof r=="object"&&r?e=[r]:e=[],e=e.map(t=>Object.assign(Object.assign({},C7e),t)),e}function B1e(r,e,t){t.emitter.trigger("select",Object.assign(Object.assign({},RG(r,t)),{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view}))}function _7e(r,e){e.emitter.trigger("unselect",{jsEvent:r?r.origEvent:null,view:e.viewApi||e.calendarApi.view})}function RG(r,e){let t={};for(let n of e.pluginHooks.dateSpanTransforms)Object.assign(t,n(r,e));return Object.assign(t,U7e(r,e.dateEnv)),t}function x1e(r,e,t){let{dateEnv:n,options:s}=t,l=e;return r?(l=$c(l),l=n.add(l,s.defaultAllDayEventDuration)):l=n.add(l,s.defaultTimedEventDuration),l}function PG(r,e,t,n){let s=jP(r.defs,e),l=jp();for(let c in r.defs){let f=r.defs[c];l.defs[c]=B7e(f,s[c],t,n)}for(let c in r.instances){let f=r.instances[c],h=l.defs[f.defId];l.instances[c]=x7e(f,h,s[f.defId],t,n)}return l}function B7e(r,e,t,n){let s=t.standardProps||{};s.hasEnd==null&&e.durationEditable&&(t.startDelta||t.endDelta)&&(s.hasEnd=!0);let l=Object.assign(Object.assign(Object.assign({},r),s),{ui:Object.assign(Object.assign({},r.ui),s.ui)});t.extendedProps&&(l.extendedProps=Object.assign(Object.assign({},l.extendedProps),t.extendedProps));for(let c of n.pluginHooks.eventDefMutationAppliers)c(l,t,n);return!l.hasEnd&&n.options.forceEventDuration&&(l.hasEnd=!0),l}function x7e(r,e,t,n,s){let{dateEnv:l}=s,c=n.standardProps&&n.standardProps.allDay===!0,f=n.standardProps&&n.standardProps.hasEnd===!1,h=Object.assign({},r);return c&&(h.range=f1e(h.range)),n.datesDelta&&t.startEditable&&(h.range={start:l.add(h.range.start,n.datesDelta),end:l.add(h.range.end,n.datesDelta)}),n.startDelta&&t.durationEditable&&(h.range={start:l.add(h.range.start,n.startDelta),end:h.range.end}),n.endDelta&&t.durationEditable&&(h.range={start:h.range.start,end:l.add(h.range.end,n.endDelta)}),f&&(h.range={start:h.range.start,end:x1e(e.allDay,h.range.start,s)}),e.allDay&&(h.range={start:$c(h.range.start),end:$c(h.range.end)}),h.range.end<h.range.start&&(h.range.end=x1e(e.allDay,h.range.start,s)),h}class X_{constructor(e,t){this.context=e,this.internalEventSource=t}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 hu{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in p1e)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")t=HP[e](t),this.mutate({standardProps:{publicId:t}});else if(e in HP)t=HP[e](t),this.mutate({standardProps:{[e]:t}});else if(e in $P){let n=$P[e](t);e==="color"?n={backgroundColor:t,borderColor:t}:e==="editable"?n={startEditable:t,durationEditable:t}:n={[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,s=n.createMarker(e);if(s&&this._instance){let l=this._instance.range,c=Y_(l.start,s,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:c}):this.mutate({startDelta:c})}}setEnd(e,t={}){let{dateEnv:n}=this._context,s;if(!(e!=null&&(s=n.createMarker(e),!s))&&this._instance)if(s){let l=Y_(this._instance.range.end,s,n,t.granularity);this.mutate({endDelta:l})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let{dateEnv:s}=this._context,l={allDay:n.allDay},c=s.createMarker(e),f;if(c&&!(t!=null&&(f=s.createMarker(t),!f))&&this._instance){let h=this._instance.range;n.allDay===!0&&(h=f1e(h));let m=Y_(h.start,c,s,n.granularity);if(f){let b=Y_(h.end,f,s,n.granularity);XOe(m,b)?this.mutate({datesDelta:m,standardProps:l}):this.mutate({startDelta:m,endDelta:b,standardProps:l})}else l.hasEnd=!1,this.mutate({datesDelta:m,standardProps:l})}}moveStart(e){let t=Ya(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=Ya(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=Ya(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:s}=t;s==null&&(s=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=s),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,s=Fu(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,s,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,s,{forcedTzo:n.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let n=this._def,s=this._context,{eventStore:l}=s.getCurrentData(),c=NG(l,t.instanceId);c=PG(c,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,s);let h=new hu(s,n,t);this._def=c.defs[n.defId],this._instance=c.instances[t.instanceId],s.dispatch({type:"MERGE_EVENTS",eventStore:c}),s.emitter.trigger("eventChange",{oldEvent:h,event:this,relatedEvents:RS(c,s,t),revert(){s.dispatch({type:"RESET_EVENTS",eventStore:l})}})}}remove(){let e=this._context,t=T1e(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new X_(this._context,this._context.getCurrentData().eventSources[e]):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 e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.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(e={}){let t=this._def,{ui:n}=t,{startStr:s,endStr:l}=this,c={allDay:t.allDay};return t.title&&(c.title=t.title),s&&(c.start=s),l&&(c.end=l),t.publicId&&(c.id=t.publicId),t.groupId&&(c.groupId=t.groupId),t.url&&(c.url=t.url),n.display&&n.display!=="auto"&&(c.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?c.color=n.backgroundColor:(n.backgroundColor&&(c.backgroundColor=n.backgroundColor),n.borderColor&&(c.borderColor=n.borderColor)),n.textColor&&(c.textColor=n.textColor),n.classNames.length&&(c.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(c,t.extendedProps):c.extendedProps=t.extendedProps),c}toJSON(){return this.toPlainObject()}}function T1e(r){let e=r._def,t=r._instance;return{defs:{[e.defId]:e},instances:t?{[t.instanceId]:t}:{}}}function RS(r,e,t){let{defs:n,instances:s}=r,l=[],c=t?t.instanceId:"";for(let f in s){let h=s[f],m=n[h.defId];h.instanceId!==c&&l.push(new hu(e,m,h))}return l}function k1e(r,e,t,n){let s={},l={},c={},f=[],h=[],m=jP(r.defs,e);for(let b in r.defs){let S=r.defs[b];m[S.defId].display==="inverse-background"&&(S.groupId?(s[S.groupId]=[],c[S.groupId]||(c[S.groupId]=S)):l[b]=[])}for(let b in r.instances){let S=r.instances[b],T=r.defs[S.defId],_=m[T.defId],F=S.range,R=!T.allDay&&n?A1e(F,n):F,N=NS(R,t);N&&(_.display==="inverse-background"?T.groupId?s[T.groupId].push(N):l[S.defId].push(N):_.display!=="none"&&(_.display==="background"?f:h).push({def:T,ui:_,instance:S,range:N,isStart:R.start&&R.start.valueOf()===N.start.valueOf(),isEnd:R.end&&R.end.valueOf()===N.end.valueOf()}))}for(let b in s){let S=s[b],T=d1e(S,t);for(let _ of T){let F=c[b],R=m[F.defId];f.push({def:F,ui:R,instance:null,range:_,isStart:!1,isEnd:!1})}}for(let b in l){let S=l[b],T=d1e(S,t);for(let _ of T)f.push({def:r.defs[b],ui:m[b],instance:null,range:_,isStart:!1,isEnd:!1})}return{bg:f,fg:h}}function T7e(r){return r.ui.display==="background"||r.ui.display==="inverse-background"}function F1e(r,e){r.fcSeg=e}function J_(r){return r.fcSeg||r.parentNode.fcSeg||null}function jP(r,e){return sy(r,t=>I1e(t,e))}function I1e(r,e){let t=[];return e[""]&&t.push(e[""]),e[r.defId]&&t.push(e[r.defId]),t.push(r.ui),y1e(t)}function D1e(r,e){let t=r.map(k7e);return t.sort((n,s)=>jOe(n,s,e)),t.map(n=>n._seg)}function k7e(r){let{eventRange:e}=r,t=e.def,n=e.instance?e.instance.range:e.range,s=n.start?n.start.valueOf():0,l=n.end?n.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},t.extendedProps),t),{id:t.publicId,start:s,end:l,duration:l-s,allDay:Number(t.allDay),_seg:r})}function F7e(r,e){let{pluginHooks:t}=e,n=t.isDraggableTransformers,{def:s,ui:l}=r.eventRange,c=l.startEditable;for(let f of n)c=f(c,s,l,e);return c}function I7e(r,e){return r.isStart&&r.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function D7e(r,e){return r.isEnd&&r.eventRange.ui.durationEditable}function N1e(r,e,t,n,s,l,c){let{dateEnv:f,options:h}=t,{displayEventTime:m,displayEventEnd:b}=h,S=r.eventRange.def,T=r.eventRange.instance;m==null&&(m=n!==!1),b==null&&(b=s!==!1);let _=T.range.start,F=T.range.end,R=r.start||r.eventRange.range.start,N=r.end||r.eventRange.range.end,L=$c(_).valueOf()===$c(R).valueOf(),V=$c(y2(F,-1)).valueOf()===$c(y2(N,-1)).valueOf();return m&&!S.allDay&&(L||V)?(R=L?_:R,N=V?F:N,b&&S.hasEnd?f.formatRange(R,N,e,{forcedStartTzo:T.forcedStartTzo,forcedEndTzo:T.forcedEndTzo}):f.format(R,e,{forcedTzo:T.forcedStartTzo})):""}function C2(r,e,t){let n=r.eventRange.range;return{isPast:n.end<=(t||e.start),isFuture:n.start>=(t||e.end),isToday:e&&ay(e,n.start)}}function N7e(r){let e=["fc-event"];return r.isMirror&&e.push("fc-event-mirror"),r.isDraggable&&e.push("fc-event-draggable"),(r.isStartResizable||r.isEndResizable)&&e.push("fc-event-resizable"),r.isDragging&&e.push("fc-event-dragging"),r.isResizing&&e.push("fc-event-resizing"),r.isSelected&&e.push("fc-event-selected"),r.isStart&&e.push("fc-event-start"),r.isEnd&&e.push("fc-event-end"),r.isPast&&e.push("fc-event-past"),r.isToday&&e.push("fc-event-today"),r.isFuture&&e.push("fc-event-future"),e}function O1e(r){return r.instance?r.instance.instanceId:`${r.def.defId}:${r.range.start.toISOString()}`}function R1e(r,e){let{def:t,instance:n}=r.eventRange,{url:s}=t;if(s)return{href:s};let{emitter:l,options:c}=e,{eventInteractive:f}=c;return f==null&&(f=t.interactive,f==null&&(f=!!l.hasHandlers("eventClick"))),f?jme(h=>{l.trigger("eventClick",{el:h.target,event:new hu(e,t,n),jsEvent:h,view:e.viewApi})}):{}}const O7e={start:Hn,end:Hn,allDay:Boolean};function R7e(r,e,t){let n=P7e(r,e),{range:s}=n;if(!s.start)return null;if(!s.end){if(t==null)return null;s.end=e.add(s.start,t)}return n}function P7e(r,e){let{refined:t,extra:n}=CG(r,O7e),s=t.start?e.createMarkerMeta(t.start):null,l=t.end?e.createMarkerMeta(t.end):null,{allDay:c}=t;return c==null&&(c=s&&s.isTimeUnspecified&&(!l||l.isTimeUnspecified)),Object.assign({range:{start:s?s.marker:null,end:l?l.marker:null},allDay:c},n)}function L7e(r,e){return e7e(r.range,e.range)&&r.allDay===e.allDay&&M7e(r,e)}function M7e(r,e){for(let t in e)if(t!=="range"&&t!=="allDay"&&r[t]!==e[t])return!1;for(let t in r)if(!(t in e))return!1;return!0}function U7e(r,e){return Object.assign(Object.assign({},L1e(r.range,e,r.allDay)),{allDay:r.allDay})}function P1e(r,e,t){return Object.assign(Object.assign({},L1e(r,e,t)),{timeZone:e.timeZone})}function L1e(r,e,t){return{start:e.toDate(r.start),end:e.toDate(r.end),startStr:e.formatIso(r.start,{omitTime:t}),endStr:e.formatIso(r.end,{omitTime:t})}}function H7e(r,e,t){let n=m1e({editable:!1},t),s=IG(n.refined,n.extra,"",r.allDay,!0,t);return{def:s,ui:I1e(s,e),instance:kG(s.defId,r.range),range:r.range,isStart:!0,isEnd:!0}}function V7e(r,e,t){let n=!1,s=function(f){n||(n=!0,e(f))},l=function(f){n||(n=!0,t(f))},c=r(s,l);c&&typeof c.then=="function"&&c.then(s,l)}class M1e extends Error{constructor(e,t){super(e),this.response=t}}function $7e(r,e,t){r=r.toUpperCase();const n={method:r};return r==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(t):(n.body=new URLSearchParams(t),n.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,n).then(s=>{if(s.ok)return s.json().then(l=>[l,s],()=>{throw new M1e("Failure parsing JSON",s)});throw new M1e("Request failed",s)})}let LG;function U1e(){return LG==null&&(LG=Q7e()),LG}function Q7e(){if(typeof document>"u")return!0;let r=document.createElement("div");r.style.position="absolute",r.style.top="0px",r.style.left="0px",r.innerHTML="<table><tr><td><div></div></td></tr></table>",r.querySelector("table").style.height="100px",r.querySelector("div").style.height="100%",document.body.appendChild(r);let t=r.querySelector("div").offsetHeight>0;return document.body.removeChild(r),t}class z7e extends ql{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{LP(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{LP(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,s=n||t.height==="auto"||t.contentHeight==="auto",l=!s&&t.height!=null?t.height:"",c=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return U1e()||c.push("fc-liquid-hack"),e.children(c,l,s,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class eB{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function j7e(r,e){return{component:r,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function MG(r){return{[r.component.uid]:r}}const UG={};class tB extends Qp{constructor(e,t){super(e,t),this.handleRefresh=()=>{let n=this.computeTiming();n.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(n.state),this.clearTimeout(),this.setTimeout(n.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:e,context:t}=this,n=t.nowManager.getDateMarker(),{nowIndicatorSnap:s}=t.options;s==="auto"&&(s=/year|month|week|day/.test(e.unit)||(e.unitValue||1)===1);let l,c;return s?(l=t.dateEnv.startOf(n,e.unit),c=t.dateEnv.add(l,Ya(1,e.unit)).valueOf()-n.valueOf()):(l=n,c=1e3*60),c=Math.min(1e3*60*60*24,c),{state:{nowDate:l,todayRange:W7e(l)},waitMs:c}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{const t=this.computeTiming();this.setState(t.state,()=>{this.setTimeout(t.waitMs)})},e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}tB.contextType=iy;function W7e(r){let e=$c(r),t=Bf(e,1);return{start:e,end:t}}class q7e{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering(()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,t){let n=this.getCurrentData(),s;t=t||"day",s=n.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),s?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:s.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:t,toolbarConfig:n}=this.getCurrentData(),s=[].concat(n.header?n.header.viewsWithButtons:[],n.footer?n.footer.viewsWithButtons:[]),l,c;for(let f in t)s.push(f);for(l=0;l<s.length;l+=1)if(c=t[s[l]],c&&c.singleUnit===e)return c;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.nowManager.getDateMarker()})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=Ya(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),Fu(t))}formatRange(e,t,n){let{dateEnv:s}=this.getCurrentData();return s.formatRange(s.createMarker(e),s.createMarker(t),Fu(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;t==null?e.start!=null?n=e:n={start:e,end:null}:n={start:e,end:t};let s=this.getCurrentData(),l=R7e(n,s.dateEnv,Ya({days:1}));l&&(this.dispatch({type:"SELECT_DATES",selection:l}),B1e(l,null,s))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),_7e(e,t))}addEvent(e,t){if(e instanceof hu){let c=e._def,f=e._instance;return this.getCurrentData().eventStore.defs[c.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:DG({def:c,instance:f})}),this.triggerEventAdd(e)),e}let n=this.getCurrentData(),s;if(t instanceof X_)s=t.internalEventSource;else if(typeof t=="boolean")t&&([s]=EG(n.eventSources));else if(t!=null){let c=this.getEventSourceById(t);if(!c)return console.warn(`Could not find an event source with ID "${t}"`),null;s=c.internalEventSource}let l=g1e(e,s,n,!1);if(l){let c=new hu(n,l.def,l.def.recurringDef?null:l.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:DG(l)}),this.triggerEventAdd(c),c}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:T1e(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:s}=t.eventStore;e=String(e);for(let l in n){let c=n[l];if(c.publicId===e){if(c.recurringDef)return new hu(t,c,null);for(let f in s){let h=s[f];if(h.defId===c.defId)return new hu(t,c,h)}}}return null}getEvents(){let e=this.getCurrentData();return RS(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let s in t)n.push(new X_(e,t[s]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let s in n)if(n[s].publicId===e)return new X_(t,n[s]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof X_)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=b1e(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new X_(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=Ya(e);t&&this.trigger("_scrollRequest",{time:t})}}function G7e(r,e){return r.left>=e.left&&r.left<e.right&&r.top>=e.top&&r.top<e.bottom}function H1e(r,e){let t={left:Math.max(r.left,e.left),right:Math.min(r.right,e.right),top:Math.max(r.top,e.top),bottom:Math.min(r.bottom,e.bottom)};return t.left<t.right&&t.top<t.bottom?t:!1}function K7e(r,e){return{left:Math.min(Math.max(r.left,e.left),e.right),top:Math.min(Math.max(r.top,e.top),e.bottom)}}function Z7e(r){return{left:(r.left+r.right)/2,top:(r.top+r.bottom)/2}}function Y7e(r,e){return{left:r.left-e.left,top:r.top-e.top}}const HG=jp();class X7e{constructor(){this.getKeysForEventDefs=li(this._getKeysForEventDefs),this.splitDateSelection=li(this._splitDateSpan),this.splitEventStore=li(this._splitEventStore),this.splitIndividualUi=li(this._splitIndividualUi),this.splitEventDrag=li(this._splitInteraction),this.splitEventResize=li(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),s=this.splitDateSelection(e.dateSelection),l=this.splitIndividualUi(e.eventUiBases,n),c=this.splitEventStore(e.eventStore,n),f=this.splitEventDrag(e.eventDrag),h=this.splitEventResize(e.eventResize),m={};this.eventUiBuilders=sy(t,(b,S)=>this.eventUiBuilders[S]||li(J7e));for(let b in t){let S=t[b],T=c[b]||HG,_=this.eventUiBuilders[b];m[b]={businessHours:S.businessHours||e.businessHours,dateSelection:s[b]||null,eventStore:T,eventUiBases:_(e.eventUiBases[""],S.ui,l[b]),eventSelection:T.instances[e.eventSelection]?e.eventSelection:"",eventDrag:f[b]||null,eventResize:h[b]||null}}return m}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let s of n)t[s]=e}return t}_getKeysForEventDefs(e){return sy(e.defs,t=>this.getKeysForEventDef(t))}_splitEventStore(e,t){let{defs:n,instances:s}=e,l={};for(let c in n)for(let f of t[c])l[f]||(l[f]=jp()),l[f].defs[c]=n[c];for(let c in s){let f=s[c];for(let h of t[f.defId])l[h]&&(l[h].instances[c]=f)}return l}_splitIndividualUi(e,t){let n={};for(let s in e)if(s)for(let l of t[s])n[l]||(n[l]={}),n[l][s]=e[s];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),s=this._getKeysForEventDefs(e.mutatedEvents),l=this._splitEventStore(e.mutatedEvents,s),c=f=>{t[f]||(t[f]={affectedEvents:n[f]||HG,mutatedEvents:l[f]||HG,isEvent:e.isEvent})};for(let f in n)c(f);for(let f in l)c(f)}return t}}function J7e(r,e,t){let n=[];r&&n.push(r),e&&n.push(e);let s={"":y1e(n)};return t&&Object.assign(s,t),s}function V1e(r,e,t,n){return{dow:r.getUTCDay(),isDisabled:!!(n&&(!n.activeRange||!ay(n.activeRange,r))),isOther:!!(n&&!ay(n.currentRange,r)),isToday:!!(e&&ay(e,r)),isPast:!!(e&&r<e.start),isFuture:!!(e&&r>=e.end)}}function VG(r,e){let t=["fc-day",`fc-day-${rRe[r.dow]}`];return r.isDisabled?t.push("fc-day-disabled"):(r.isToday&&(t.push("fc-day-today"),t.push(e.getClass("today"))),r.isPast&&t.push("fc-day-past"),r.isFuture&&t.push("fc-day-future"),r.isOther&&t.push("fc-day-other")),t}const ePe=Fu({year:"numeric",month:"long",day:"numeric"}),tPe=Fu({week:"long"});function WP(r,e,t="day",n=!0){const{dateEnv:s,options:l,calendarApi:c}=r;let f=s.format(e,t==="week"?tPe:ePe);if(l.navLinks){let h=s.toDate(e);const m=b=>{let S=t==="day"?l.navLinkDayClick:t==="week"?l.navLinkWeekClick:null;typeof S=="function"?S.call(c,s.toDate(e),b):(typeof S=="string"&&(t=S),c.zoomTo(e,t))};return Object.assign({title:G6(l.navLinkHint,[f,h],f),"data-navlink":""},n?zme(m):{onClick:m})}return{"aria-label":f}}let $G=null;function nPe(){return $G===null&&($G=rPe()),$G}function rPe(){let r=document.createElement("div");q6(r,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),r.innerHTML="<div></div>",document.body.appendChild(r);let t=r.firstChild.getBoundingClientRect().left>r.getBoundingClientRect().left;return dG(r),t}let QG;function oPe(){return QG||(QG=sPe()),QG}function sPe(){let r=document.createElement("div");r.style.overflow="scroll",r.style.position="absolute",r.style.top="-9999px",r.style.left="-9999px",document.body.appendChild(r);let e=$1e(r);return document.body.removeChild(r),e}function $1e(r){return{x:r.offsetHeight-r.clientHeight,y:r.offsetWidth-r.clientWidth}}function iPe(r,e=!1){let t=window.getComputedStyle(r),n=parseInt(t.borderLeftWidth,10)||0,s=parseInt(t.borderRightWidth,10)||0,l=parseInt(t.borderTopWidth,10)||0,c=parseInt(t.borderBottomWidth,10)||0,f=$1e(r),h=f.y-n-s,m=f.x-l-c,b={borderLeft:n,borderRight:s,borderTop:l,borderBottom:c,scrollbarBottom:m,scrollbarLeft:0,scrollbarRight:0};return nPe()&&t.direction==="rtl"?b.scrollbarLeft=h:b.scrollbarRight=h,e&&(b.paddingLeft=parseInt(t.paddingLeft,10)||0,b.paddingRight=parseInt(t.paddingRight,10)||0,b.paddingTop=parseInt(t.paddingTop,10)||0,b.paddingBottom=parseInt(t.paddingBottom,10)||0),b}function aPe(r,e=!1,t){let n=zG(r),s=iPe(r,e),l={left:n.left+s.borderLeft+s.scrollbarLeft,right:n.right-s.borderRight-s.scrollbarRight,top:n.top+s.borderTop,bottom:n.bottom-s.borderBottom-s.scrollbarBottom};return e&&(l.left+=s.paddingLeft,l.right-=s.paddingRight,l.top+=s.paddingTop,l.bottom-=s.paddingBottom),l}function zG(r){let e=r.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function lPe(r){let e=Q1e(r),t=r.getBoundingClientRect();for(let n of e){let s=H1e(t,n.getBoundingClientRect());if(s)t=s;else return null}return t}function Q1e(r){let e=[];for(;r instanceof HTMLElement;){let t=window.getComputedStyle(r);if(t.position==="fixed")break;/(auto|scroll)/.test(t.overflow+t.overflowY+t.overflowX)&&e.push(r),r=r.parentNode}return e}class nB{constructor(e,t,n,s){this.els=t;let l=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(l.left),s&&this.buildElVerticals(l.top)}buildElHorizontals(e){let t=[],n=[];for(let s of this.els){let l=s.getBoundingClientRect();t.push(l.left-e),n.push(l.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let s of this.els){let l=s.getBoundingClientRect();t.push(l.top-e),n.push(l.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let{lefts:t,rights:n}=this,s=t.length,l;for(l=0;l<s;l+=1)if(e>=t[l]&&e<n[l])return l}topToIndex(e){let{tops:t,bottoms:n}=this,s=t.length,l;for(l=0;l<s;l+=1)if(e>=t[l]&&e<n[l])return l}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return qP(this.tops||[],e.tops||[])&&qP(this.bottoms||[],e.bottoms||[])&&qP(this.lefts||[],e.lefts||[])&&qP(this.rights||[],e.rights||[])}}function qP(r,e){const t=r.length;if(t!==e.length)return!1;for(let n=0;n<t;n++)if(Math.round(r[n])!==Math.round(e[n]))return!1;return!0}class jG{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 cPe extends jG{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class uPe extends jG{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Z1 extends ql{constructor(){super(...arguments),this.uid=xS()}prepareHits(){}queryHit(e,t,n,s){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!BA(e,".fc-event-mirror")}isValidDateDownEl(e){return!BA(e,".fc-event:not(.fc-bg-event)")&&!BA(e,".fc-more-link")&&!BA(e,"a[data-navlink]")&&!BA(e,".fc-popover")}}class z1e{constructor(e=t=>t.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){const s=Object.assign(Object.assign({},t),{span:qG(t.span,e.touchingEntry.span)});n.push(s),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}splitEntry(e,t,n){let s=e.span,l=t.span;s.start<l.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.start,end:l.start}},n),s.end>l.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:l.end,end:s.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:s}=this;t.lateral===-1?(GG(s,t.level,t.levelCoord),GG(n,t.level,[e])):GG(n[t.level],t.lateral,e),this.stackCnts[PS(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:s,stackCnts:l}=this,c=t.length,f=0,h=-1,m=-1,b=null,S=0;for(let F=0;F<c;F+=1){const R=t[F];if(!s&&R>=f+this.getEntryThickness(e))break;let N=n[F],L,V=KG(N,e.span.start,WG),P=V[0]+V[1];for(;(L=N[P])&&L.span.start<e.span.end;){let W=R+this.getEntryThickness(L);W>f&&(f=W,b=L,h=F,m=P),W===f&&(S=Math.max(S,l[PS(L)]+1)),P+=1}}let T=0;if(b)for(T=h+1;T<c&&t[T]<f;)T+=1;let _=-1;return T<c&&t[T]===f&&(_=KG(n[T],e.span.end,WG)[0]),{touchingLevel:h,touchingLateral:m,touchingEntry:b,stackCnt:S,levelCoord:f,level:T,lateral:_}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,s=[];for(let l=0;l<n;l+=1){let c=e[l],f=t[l];for(let h of c)s.push(Object.assign(Object.assign({},h),{thickness:this.getEntryThickness(h),levelCoord:f}))}return s}}function WG(r){return r.span.end}function PS(r){return r.index+":"+r.span.start}function dPe(r){let e=[];for(let t of r){let n=[],s={span:t.span,entries:[t]};for(let l of e)qG(l.span,s.span)?s={entries:l.entries.concat(s.entries),span:fPe(l.span,s.span)}:n.push(l);n.push(s),e=n}return e}function fPe(r,e){return{start:Math.min(r.start,e.start),end:Math.max(r.end,e.end)}}function qG(r,e){let t=Math.max(r.start,e.start),n=Math.min(r.end,e.end);return t<n?{start:t,end:n}:null}function GG(r,e,t){r.splice(e,0,t)}function KG(r,e,t){let n=0,s=r.length;if(!s||e<t(r[n]))return[0,0];if(e>t(r[s-1]))return[s,0];for(;n<s;){let l=Math.floor(n+(s-n)/2),c=t(r[l]);if(e<c)s=l;else if(e>c)n=l+1;else return[l,1]}return[n,0]}class APe{constructor(e,t){this.emitter=new zP}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const ZG={};function hPe(r,e){return!r||e>10?Fu({weekday:"short"}):e>1?Fu({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Fu({weekday:"long"})}const j1e="fc-col-header-cell";function W1e(r){return r.text}class pPe extends ql{render(){let{dateEnv:e,options:t,theme:n,viewApi:s}=this.context,{props:l}=this,{date:c,dateProfile:f}=l,h=V1e(c,l.todayRange,null,f),m=[j1e].concat(VG(h,n)),b=e.format(c,l.dayHeaderFormat),S=!h.isDisabled&&l.colCnt>1?WP(this.context,c):{},T=e.toDate(c);e.namedTimeZoneImpl&&(T=y2(T,36e5));let _=Object.assign(Object.assign(Object.assign({date:T,view:s},l.extraRenderProps),{text:b}),h);return Qt(zp,{elTag:"th",elClasses:m,elAttrs:Object.assign({role:"columnheader",colSpan:l.colSpan,"data-date":h.isDisabled?void 0:vG(c)},l.extraDataAttrs),renderProps:_,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:W1e,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},F=>Qt("div",{className:"fc-scrollgrid-sync-inner"},!h.isDisabled&&Qt(F,{elTag:"a",elAttrs:S,elClasses:["fc-col-header-cell-cushion",l.isSticky&&"fc-sticky"]})))}}const gPe=Fu({weekday:"long"});class mPe extends ql{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:s,options:l}=this.context,c=Bf(new Date(2592e5),e.dow),f={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},h=t.format(c,e.dayHeaderFormat),m=Object.assign(Object.assign(Object.assign(Object.assign({date:c},f),{view:s}),e.extraRenderProps),{text:h});return Qt(zp,{elTag:"th",elClasses:[j1e,...VG(f,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:m,generatorName:"dayHeaderContent",customGenerator:l.dayHeaderContent,defaultGenerator:W1e,classNameGenerator:l.dayHeaderClassNames,didMount:l.dayHeaderDidMount,willUnmount:l.dayHeaderWillUnmount},b=>Qt("div",{className:"fc-scrollgrid-sync-inner"},Qt(b,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(c,gPe)}})))}}class q1e extends ql{constructor(){super(...arguments),this.createDayHeaderFormatter=li(vPe)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:s,renderIntro:l}=this.props,c=this.createDayHeaderFormatter(e.options.dayHeaderFormat,s,t.length);return Qt(tB,{unit:"day"},(f,h)=>Qt("tr",{role:"row"},l&&l("day"),t.map(m=>s?Qt(pPe,{key:m.toISOString(),date:m,dateProfile:n,todayRange:h,colCnt:t.length,dayHeaderFormat:c}):Qt(mPe,{key:m.getUTCDay(),dow:m.getUTCDay(),dayHeaderFormat:c}))))}}function vPe(r,e,t){return r||hPe(e,t)}class G1e{constructor(e,t){let n=e.start,{end:s}=e,l=[],c=[],f=-1;for(;n<s;)t.isHiddenDay(n)?l.push(f+.5):(f+=1,l.push(f),c.push(n)),n=Bf(n,1);this.dates=c,this.indices=l,this.cnt=c.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(Bf(e.end,-1)),s=Math.max(0,t),l=Math.min(this.cnt-1,n);return s=Math.ceil(s),l=Math.floor(l),s<=l?{firstIndex:s,lastIndex:l,isStart:t===s,isEnd:n===l}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(TS(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}class K1e{constructor(e,t){let{dates:n}=e,s,l,c;if(t){for(l=n[0].getUTCDay(),s=1;s<n.length&&n[s].getUTCDay()!==l;s+=1);c=Math.ceil(n.length/s)}else c=1,s=n.length;this.rowCnt=c,this.colCnt=s,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let s=0;s<this.colCnt;s+=1)n.push(this.buildCell(t,s));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),s=[];if(n){let{firstIndex:l,lastIndex:c}=n,f=l;for(;f<=c;){let h=Math.floor(f/t),m=Math.min((h+1)*t,c+1);s.push({row:h,firstCol:f%t,lastCol:(m-1)%t,isStart:n.isStart&&f===l,isEnd:n.isEnd&&m-1===c}),f=m}}return s}}class Z1e{constructor(){this.sliceBusinessHours=li(this._sliceBusinessHours),this.sliceDateSelection=li(this._sliceDateSpan),this.sliceEventStore=li(this._sliceEventStore),this.sliceEventDrag=li(this._sliceInteraction),this.sliceEventResize=li(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,s,...l){let{eventUiBases:c}=e,f=this.sliceEventStore(e.eventStore,c,t,n,...l);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,c,s,...l),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,s,...l),fgEventSegs:f.fg,bgEventSegs:f.bg,eventDrag:this.sliceEventDrag(e.eventDrag,c,t,n,...l),eventResize:this.sliceEventResize(e.eventResize,c,t,n,...l),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,s,...l){return this._sliceDateSpan({range:{start:e,end:y2(e,1)},allDay:!1},t,n,{},s,...l)}_sliceBusinessHours(e,t,n,s,...l){return e?this._sliceEventStore(OS(e,GP(t,!!n),s),{},t,n,...l).bg:[]}_sliceEventStore(e,t,n,s,...l){if(e){let c=k1e(e,t,GP(n,!!s),s);return{bg:this.sliceEventRanges(c.bg,l),fg:this.sliceEventRanges(c.fg,l)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,s,...l){if(!e)return null;let c=k1e(e.mutatedEvents,t,GP(n,!!s),s);return{segs:this.sliceEventRanges(c.fg,l),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,s,l,...c){if(!e)return[];let f=GP(t,!!n),h=NS(e.range,f);if(h){e=Object.assign(Object.assign({},e),{range:h});let m=H7e(e,s,l),b=this.sliceRange(e.range,...c);for(let S of b)S.eventRange=m;return b}return[]}sliceEventRanges(e,t){let n=[];for(let s of e)n.push(...this.sliceEventRange(s,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(n={start:n.start,end:Bf(n.start,1)});let s=this.sliceRange(n,...t);for(let l of s)l.eventRange=e,l.isStart=e.isStart&&l.isStart,l.isEnd=e.isEnd&&l.isEnd;return s}}function GP(r,e){let t=r.activeRange;return e?t:{start:y2(t.start,r.slotMinTime.milliseconds),end:y2(t.end,r.slotMaxTime.milliseconds-864e5)}}function Y1e(r,e,t){let{instances:n}=r.mutatedEvents;for(let s in n)if(!UP(e.validRange,n[s].range))return!1;return X1e({eventDrag:r},t)}function yPe(r,e,t){return UP(e.validRange,r.range)?X1e({dateSelection:r},t):!1}function X1e(r,e){let t=e.getCurrentData(),n=Object.assign({businessHours:t.businessHours,dateSelection:"",eventStore:t.eventStore,eventUiBases:t.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},r);return(e.pluginHooks.isPropsValid||bPe)(n,e)}function bPe(r,e,t={},n){return!(r.eventDrag&&!wPe(r,e,t,n)||r.dateSelection&&!CPe(r,e,t,n))}function wPe(r,e,t,n){let s=e.getCurrentData(),l=r.eventDrag,c=l.mutatedEvents,f=c.defs,h=c.instances,m=jP(f,l.isEvent?r.eventUiBases:{"":s.selectionConfig});n&&(m=sy(m,n));let b=v7e(r.eventStore,l.affectedEvents.instances),S=b.defs,T=b.instances,_=jP(S,r.eventUiBases);for(let F in h){let R=h[F],N=R.range,L=m[R.defId],V=f[R.defId];if(!J1e(L.constraints,N,b,r.businessHours,e))return!1;let{eventOverlap:P}=e.options,W=typeof P=="function"?P:null;for(let J in T){let q=T[J];if(TG(N,q.range)&&(_[q.defId].overlap===!1&&l.isEvent||L.overlap===!1||W&&!W(new hu(e,S[q.defId],q),new hu(e,V,R))))return!1}let le=s.eventStore;for(let J of L.allows){let q=Object.assign(Object.assign({},t),{range:R.range,allDay:V.allDay}),ce=le.defs[V.defId],fe=le.instances[F],Ce;if(ce?Ce=new hu(e,ce,fe):Ce=new hu(e,V),!J(RG(q,e),Ce))return!1}}return!0}function CPe(r,e,t,n){let s=r.eventStore,l=s.defs,c=s.instances,f=r.dateSelection,h=f.range,{selectionConfig:m}=e.getCurrentData();if(n&&(m=n(m)),!J1e(m.constraints,h,s,r.businessHours,e))return!1;let{selectOverlap:b}=e.options,S=typeof b=="function"?b:null;for(let T in c){let _=c[T];if(TG(h,_.range)&&(m.overlap===!1||S&&!S(new hu(e,l[_.defId],_),null)))return!1}for(let T of m.allows){let _=Object.assign(Object.assign({},t),f);if(!T(RG(_,e),null))return!1}return!0}function J1e(r,e,t,n,s){for(let l of r)if(!EPe(SPe(l,e,t,n,s),e))return!1;return!0}function SPe(r,e,t,n,s){return r==="businessHours"?YG(OS(n,e,s)):typeof r=="string"?YG(VP(t,l=>l.groupId===r)):typeof r=="object"&&r?YG(OS(r,e,s)):[]}function YG(r){let{instances:e}=r,t=[];for(let n in e)t.push(e[n].range);return t}function EPe(r,e){for(let t of r)if(UP(t,e))return!0;return!1}const KP=/^(visible|hidden)$/;class _Pe extends ql{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,K1(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,s=t&&n,l=["fc-scroller"];return t&&(n?l.push("fc-scroller-liquid-absolute"):l.push("fc-scroller-liquid")),Qt("div",{ref:this.handleEl,className:l.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:s&&-(e.overcomeLeft||0)||"",right:s&&-(e.overcomeRight||0)||"",bottom:s&&-(e.overcomeBottom||0)||"",marginLeft:!s&&-(e.overcomeLeft||0)||"",marginRight:!s&&-(e.overcomeRight||0)||"",marginBottom:!s&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(KP.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let s=0;s<n.length;s+=1)if(n[s].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(KP.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let s=0;s<n.length;s+=1)if(n[s].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){return KP.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return KP.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class ly{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(t,n)=>{let{depths:s,currentMap:l}=this,c=!1,f=!1;t!==null?(c=n in l,l[n]=t,s[n]=(s[n]||0)+1,f=!0):(s[n]-=1,s[n]||(delete l[n],delete this.callbackMap[n],c=!0)),this.masterCallback&&(c&&this.masterCallback(null,String(n)),f&&this.masterCallback(t,String(n)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=n=>{this.handleValue(n,String(e))}),t}collect(e,t,n){return LRe(this.currentMap,e,t,n)}getAll(){return EG(this.currentMap)}}function BPe(r){let e=ROe(r,".fc-scrollgrid-shrink"),t=0;for(let n of e)t=Math.max(t,KOe(n));return Math.ceil(t)}function e0e(r,e){return r.liquid&&e.liquid}function xPe(r,e){return e.maxHeight!=null||e0e(r,e)}function TPe(r,e,t,n){let{expandRows:s}=t;return typeof e.content=="function"?e.content(t):Qt("table",{role:"presentation",className:[e.tableClassName,r.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:s?t.clientHeight:""}},t.tableColGroupNode,Qt(n?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(t):e.rowContent))}function kPe(r,e){return v2(r,e,Lm)}function FPe(r,e){let t=[];for(let n of r){let s=n.span||1;for(let l=0;l<s;l+=1)t.push(Qt("col",{style:{width:n.width==="shrink"?IPe(e):n.width||"",minWidth:n.minWidth||""}}))}return Qt("colgroup",{},...t)}function IPe(r){return r??4}function DPe(r){for(let e of r)if(e.width==="shrink")return!0;return!1}function NPe(r,e){let t=["fc-scrollgrid",e.theme.getClass("table")];return r&&t.push("fc-scrollgrid-liquid"),t}function OPe(r,e){let t=["fc-scrollgrid-section",`fc-scrollgrid-section-${r.type}`,r.className];return e&&r.liquid&&r.maxHeight==null&&t.push("fc-scrollgrid-section-liquid"),r.isSticky&&t.push("fc-scrollgrid-section-sticky"),t}function XG(r){return Qt("div",{className:"fc-scrollgrid-sticky-shim",style:{width:r.clientWidth,minWidth:r.tableMinWidth}})}function ZP(r){let{stickyHeaderDates:e}=r;return(e==null||e==="auto")&&(e=r.height==="auto"||r.viewHeight==="auto"),e}function t0e(r){let{stickyFooterScrollbar:e}=r;return(e==null||e==="auto")&&(e=r.height==="auto"||r.viewHeight==="auto"),e}class JG extends ql{constructor(){super(...arguments),this.processCols=li(e=>e,kPe),this.renderMicroColGroup=li(FPe),this.scrollerRefs=new ly,this.scrollerElRefs=new ly(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:e,state:t,context:n}=this,s=e.sections||[],l=this.processCols(e.cols),c=this.renderMicroColGroup(l,t.shrinkWidth),f=NPe(e.liquid,n);e.collapsibleWidth&&f.push("fc-scrollgrid-collapsible");let h=s.length,m=0,b,S=[],T=[],_=[];for(;m<h&&(b=s[m]).type==="header";)S.push(this.renderSection(b,c,!0)),m+=1;for(;m<h&&(b=s[m]).type==="body";)T.push(this.renderSection(b,c,!1)),m+=1;for(;m<h&&(b=s[m]).type==="footer";)_.push(this.renderSection(b,c,!0)),m+=1;let F=!U1e();const R={role:"rowgroup"};return Qt("table",{role:"grid",className:f.join(" "),style:{height:e.height}},!!(!F&&S.length)&&Qt("thead",R,...S),!!(!F&&T.length)&&Qt("tbody",R,...T),!!(!F&&_.length)&&Qt("tfoot",R,..._),F&&Qt("tbody",R,...S,...T,..._))}renderSection(e,t,n){return"outerContent"in e?Qt(Vc,{key:e.key},e.outerContent):Qt("tr",{key:e.key,role:"presentation",className:OPe(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,s){if("outerContent"in n)return n.outerContent;let{props:l}=this,{forceYScrollbars:c,scrollerClientWidths:f,scrollerClientHeights:h}=this.state,m=xPe(l,e),b=e0e(l,e),S=l.liquid?c?"scroll":m?"auto":"hidden":"visible",T=e.key,_=TPe(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:!l.collapsibleWidth&&f[T]!==void 0?f[T]:null,clientHeight:h[T]!==void 0?h[T]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},s);return Qt(s?"th":"td",{ref:n.elRef,role:"presentation"},Qt("div",{className:`fc-scroller-harness${b?" fc-scroller-harness-liquid":""}`},Qt(_Pe,{ref:this.scrollerRefs.createRef(T),elRef:this.scrollerElRefs.createRef(T),overflowY:S,overflowX:l.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:b,liquidIsAbsolute:!0},_)))}_handleScrollerEl(e,t){let n=RPe(this.props.sections,t);n&&K1(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return DPe(this.props.cols)?BPe(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=oPe(),{scrollerRefs:t,scrollerElRefs:n}=this,s=!1,l={},c={};for(let f in t.currentMap){let h=t.currentMap[f];if(h&&h.needsYScrolling()){s=!0;break}}for(let f of this.props.sections){let h=f.key,m=n.currentMap[h];if(m){let b=m.parentNode;l[h]=Math.floor(b.getBoundingClientRect().width-(s?e.y:0)),c[h]=Math.floor(b.getBoundingClientRect().height)}}return{forceYScrollbars:s,scrollerClientWidths:l,scrollerClientHeights:c}}}JG.addStateEquality({scrollerClientWidths:Lm,scrollerClientHeights:Lm});function RPe(r,e){for(let t of r)if(t.key===e)return t;return null}class eK extends ql{constructor(){super(...arguments),this.buildPublicEvent=li((e,t,n)=>new hu(e,t,n)),this.handleEl=e=>{this.el=e,K1(this.props.elRef,e),e&&F1e(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:s}=e,{eventRange:l}=s,{ui:c}=l,f={event:this.buildPublicEvent(t,l.def,l.instance),view:t.viewApi,timeText:e.timeText,textColor:c.textColor,backgroundColor:c.backgroundColor,borderColor:c.borderColor,isDraggable:!e.disableDragging&&F7e(s,t),isStartResizable:!e.disableResizing&&I7e(s,t),isEndResizable:!e.disableResizing&&D7e(s),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!s.isStart,isEnd:!!s.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return Qt(zp,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...N7e(f),...s.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:f,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&F1e(this.el,this.props.seg)}}class tK extends ql{render(){let{props:e,context:t}=this,{options:n}=t,{seg:s}=e,{ui:l}=s.eventRange,c=n.eventTimeFormat||e.defaultTimeFormat,f=N1e(s,c,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return Qt(eK,Object.assign({},e,{elTag:"a",elStyle:{borderColor:l.borderColor,backgroundColor:l.backgroundColor},elAttrs:R1e(s,t),defaultGenerator:PPe,timeText:f}),(h,m)=>Qt(Vc,null,Qt(h,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:m.textColor}}),!!m.isStartResizable&&Qt("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!m.isEndResizable&&Qt("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}tK.addPropsEquality({seg:Lm});function PPe(r){return Qt("div",{className:"fc-event-main-frame"},r.timeText&&Qt("div",{className:"fc-event-time"},r.timeText),Qt("div",{className:"fc-event-title-container"},Qt("div",{className:"fc-event-title fc-sticky"},r.event.title||Qt(Vc,null," "))))}const nK=r=>Qt(iy.Consumer,null,e=>{let{options:t}=e,n={isAxis:r.isAxis,date:e.dateEnv.toDate(r.date),view:e.viewApi};return Qt(zp,{elRef:r.elRef,elTag:r.elTag||"div",elAttrs:r.elAttrs,elClasses:r.elClasses,elStyle:r.elStyle,renderProps:n,generatorName:"nowIndicatorContent",customGenerator:t.nowIndicatorContent,classNameGenerator:t.nowIndicatorClassNames,didMount:t.nowIndicatorDidMount,willUnmount:t.nowIndicatorWillUnmount},r.children)}),LPe=Fu({day:"numeric"});class rK extends ql{constructor(){super(...arguments),this.refineRenderProps=IP(MPe)}render(){let{props:e,context:t}=this,{options:n}=t,s=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return Qt(zp,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),s.isDisabled?{}:{"data-date":vG(e.date)}),elClasses:[...VG(s,t.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:s,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:s.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount},e.children)}}function oK(r){return!!(r.dayCellContent||xG("dayCellContent",r))}function MPe(r){let{date:e,dateEnv:t,dateProfile:n,isMonthStart:s}=r,l=V1e(e,r.todayRange,null,n),c=r.showDayNumber?t.format(e,s?r.monthStartFormat:LPe):"";return Object.assign(Object.assign(Object.assign({date:t.toDate(e),view:r.viewApi},l),{isMonthStart:s,dayNumberText:c}),r.extraRenderProps)}class n0e extends ql{render(){let{props:e}=this,{seg:t}=e;return Qt(eK,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:UPe,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function UPe(r){let{title:e}=r.event;return e&&Qt("div",{className:"fc-event-title"},r.event.title)}function r0e(r){return Qt("div",{className:`fc-${r}`})}const o0e=r=>Qt(iy.Consumer,null,e=>{let{dateEnv:t,options:n}=e,{date:s}=r,l=n.weekNumberFormat||r.defaultFormat,c=t.computeWeekNumber(s),f=t.format(s,l),h={num:c,text:f,date:s};return Qt(zp,{elRef:r.elRef,elTag:r.elTag,elAttrs:r.elAttrs,elClasses:r.elClasses,elStyle:r.elStyle,renderProps:h,generatorName:"weekNumberContent",customGenerator:n.weekNumberContent,defaultGenerator:HPe,classNameGenerator:n.weekNumberClassNames,didMount:n.weekNumberDidMount,willUnmount:n.weekNumberWillUnmount},r.children)});function HPe(r){return r.text}const sK=10;class VPe extends ql{constructor(){super(...arguments),this.state={titleId:xP()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&K1(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=Hme(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:s}=this,l=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return wOe(Qt("div",Object.assign({},n.extraAttrs,{id:n.id,className:l.join(" "),"aria-labelledby":s.titleId,ref:this.handleRootEl}),Qt("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},Qt("span",{className:"fc-popover-title",id:s.titleId},n.title),Qt("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),Qt("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.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:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:s}=this,l=lPe(t);if(l){let c=s.getBoundingClientRect(),f=n?BA(t,".fc-scrollgrid").getBoundingClientRect().top:l.top,h=e?l.right-c.width:l.left;f=Math.max(f,sK),h=Math.min(h,document.documentElement.clientWidth-sK-c.width),h=Math.max(h,sK);let m=s.offsetParent.getBoundingClientRect();q6(s,{top:f-m.top,left:h-m.left})}}}class $Pe extends Z1{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:s,todayRange:l,dateProfile:c}=n,f=t.format(s,e.dayPopoverFormat);return Qt(rK,{elRef:this.handleRootEl,date:s,dateProfile:c,todayRange:l},(h,m,b)=>Qt(VPe,{elRef:b.ref,id:n.id,title:f,extraClassNames:["fc-more-popover"].concat(b.className||[]),extraAttrs:b,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},oK(e)&&Qt(h,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children))}queryHit(e,t,n,s){let{rootEl:l,props:c}=this;return e>=0&&e<n&&t>=0&&t<s?{dateProfile:c.dateProfile,dateSpan:Object.assign({allDay:!c.forceTimed,range:{start:c.startDate,end:c.endDate}},c.extraDateSpan),dayEl:l,rect:{left:0,top:0,right:n,bottom:s},layer:1}:null}}class s0e extends ql{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:xP()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&K1(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:s}=n.options,l=i0e(t).start;function c(f){let{def:h,instance:m,range:b}=f.eventRange;return{event:new hu(n,h,m),start:n.dateEnv.toDate(b.start),end:n.dateEnv.toDate(b.end),isStart:f.isStart,isEnd:f.isEnd}}typeof s=="function"&&(s=s({date:l,allDay:!!t.allDayDate,allSegs:t.allSegs.map(c),hiddenSegs:t.hiddenSegs.map(c),jsEvent:e,view:n.viewApi})),!s||s==="popover"?this.setState({isPopoverOpen:!0}):typeof s=="string"&&n.calendarApi.zoomTo(l,s)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return Qt(iy.Consumer,null,n=>{let{viewApi:s,options:l,calendarApi:c}=n,{moreLinkText:f}=l,{moreCnt:h}=e,m=i0e(e),b=typeof f=="function"?f.call(c,h):`+${h} ${f}`,S=G6(l.moreLinkHint,[h],b),T={num:h,shortText:`+${h}`,text:b,view:s};return Qt(Vc,null,!!e.moreCnt&&Qt(zp,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),zme(this.handleClick)),{title:S,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:T,generatorName:"moreLinkContent",customGenerator:l.moreLinkContent,defaultGenerator:e.defaultGenerator||QPe,classNameGenerator:l.moreLinkClassNames,didMount:l.moreLinkDidMount,willUnmount:l.moreLinkWillUnmount},e.children),t.isPopoverOpen&&Qt($Pe,{id:t.popoverId,startDate:m.start,endDate:m.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=BA(this.linkEl,".fc-view-harness"))}}function QPe(r){return r.text}function i0e(r){if(r.allDayDate)return{start:r.allDayDate,end:Bf(r.allDayDate,1)};let{hiddenSegs:e}=r;return{start:a0e(e),end:jPe(e)}}function a0e(r){return r.reduce(zPe).eventRange.range.start}function zPe(r,e){return r.eventRange.range.start<e.eventRange.range.start?r:e}function jPe(r){return r.reduce(WPe).eventRange.range.end}function WPe(r,e){return r.eventRange.range.end>e.eventRange.range.end?r:e}class qPe{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class GPe extends qPe{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}const KPe=[],l0e={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"},c0e=Object.assign(Object.assign({},l0e),{buttonHints:{prev:"Previous $0",next:"Next $0",today(r,e){return e==="day"?"Today":`This ${r}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(r){return`Show ${r} more event${r===1?"":"s"}`}});function ZPe(r){let e=r.length>0?r[0].code:"en",t=KPe.concat(r),n={en:c0e};for(let s of t)n[s.code]=s;return{map:n,defaultCode:e}}function u0e(r,e){return typeof r=="object"&&!Array.isArray(r)?d0e(r.code,[r.code],r):YPe(r,e)}function YPe(r,e){let t=[].concat(r||[]),n=XPe(t,e)||c0e;return d0e(r,t,n)}function XPe(r,e){for(let t=0;t<r.length;t+=1){let n=r[t].toLocaleLowerCase().split("-");for(let s=n.length;s>0;s-=1){let l=n.slice(0,s).join("-");if(e[l])return e[l]}}return null}function d0e(r,e,t){let n=SG([l0e,t],["buttonText"]);delete n.code;let{week:s}=n;return delete n.week,{codeArg:r,codes:e,week:s,simpleNumberFormat:new Intl.NumberFormat(r),options:n}}function cy(r){return{id:xS(),name:r.name,premiumReleaseDate:r.premiumReleaseDate?new Date(r.premiumReleaseDate):void 0,deps:r.deps||[],reducers:r.reducers||[],isLoadingFuncs:r.isLoadingFuncs||[],contextInit:[].concat(r.contextInit||[]),eventRefiners:r.eventRefiners||{},eventDefMemberAdders:r.eventDefMemberAdders||[],eventSourceRefiners:r.eventSourceRefiners||{},isDraggableTransformers:r.isDraggableTransformers||[],eventDragMutationMassagers:r.eventDragMutationMassagers||[],eventDefMutationAppliers:r.eventDefMutationAppliers||[],dateSelectionTransformers:r.dateSelectionTransformers||[],datePointTransforms:r.datePointTransforms||[],dateSpanTransforms:r.dateSpanTransforms||[],views:r.views||{},viewPropsTransformers:r.viewPropsTransformers||[],isPropsValid:r.isPropsValid||null,externalDefTransforms:r.externalDefTransforms||[],viewContainerAppends:r.viewContainerAppends||[],eventDropTransformers:r.eventDropTransformers||[],componentInteractions:r.componentInteractions||[],calendarInteractions:r.calendarInteractions||[],themeClasses:r.themeClasses||{},eventSourceDefs:r.eventSourceDefs||[],cmdFormatter:r.cmdFormatter,recurringTypes:r.recurringTypes||[],namedTimeZonedImpl:r.namedTimeZonedImpl,initialView:r.initialView||"",elementDraggingImpl:r.elementDraggingImpl,optionChangeHandlers:r.optionChangeHandlers||{},scrollGridImpl:r.scrollGridImpl||null,listenerRefiners:r.listenerRefiners||{},optionRefiners:r.optionRefiners||{},propSetHandlers:r.propSetHandlers||{}}}function JPe(r,e){let t={},n={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 s(l){for(let c of l){const f=c.name,h=t[f];h===void 0?(t[f]=c.id,s(c.deps),n=tLe(n,c)):h!==c.id&&console.warn(`Duplicate plugin '${f}'`)}}return r&&s(r),s(e),n}function eLe(){let r=[],e=[],t;return(n,s)=>((!t||!v2(n,r)||!v2(s,e))&&(t=JPe(n,s)),r=n,e=s,t)}function tLe(r,e){return{premiumReleaseDate:nLe(r.premiumReleaseDate,e.premiumReleaseDate),reducers:r.reducers.concat(e.reducers),isLoadingFuncs:r.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:r.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},r.eventRefiners),e.eventRefiners),eventDefMemberAdders:r.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},r.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:r.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:r.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:r.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:r.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:r.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:r.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},r.views),e.views),viewPropsTransformers:r.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||r.isPropsValid,externalDefTransforms:r.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:r.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:r.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:r.calendarInteractions.concat(e.calendarInteractions),componentInteractions:r.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},r.themeClasses),e.themeClasses),eventSourceDefs:r.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||r.cmdFormatter,recurringTypes:r.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||r.namedTimeZonedImpl,initialView:r.initialView||e.initialView,elementDraggingImpl:r.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},r.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||r.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},r.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},r.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},r.propSetHandlers),e.propSetHandlers)}}function nLe(r,e){return r===void 0?e:e===void 0?r:new Date(Math.max(r.valueOf(),e.valueOf()))}class S2 extends Z6{}S2.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},S2.prototype.baseIconClass="fc-icon",S2.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"},S2.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},S2.prototype.iconOverrideOption="buttonIcons",S2.prototype.iconOverrideCustomButtonOption="icon",S2.prototype.iconOverridePrefix="fc-icon-";function rLe(r,e){let t={},n;for(n in r)iK(n,t,r,e);for(n in e)iK(n,t,r,e);return t}function iK(r,e,t,n){if(e[r])return e[r];let s=oLe(r,e,t,n);return s&&(e[r]=s),s}function oLe(r,e,t,n){let s=t[r],l=n[r],c=b=>s&&s[b]!==null?s[b]:l&&l[b]!==null?l[b]:null,f=c("component"),h=c("superType"),m=null;if(h){if(h===r)throw new Error("Can't have a custom view type that references itself");m=iK(h,e,t,n)}return!f&&m&&(f=m.component),f?{type:r,component:f,defaults:Object.assign(Object.assign({},m?m.defaults:{}),s?s.rawOptions:{}),overrides:Object.assign(Object.assign({},m?m.overrides:{}),l?l.rawOptions:{})}:null}function f0e(r){return sy(r,sLe)}function sLe(r){let e=typeof r=="function"?{component:r}:r,{component:t}=e;return e.content?t=A0e(e):t&&!(t.prototype instanceof ql)&&(t=A0e(Object.assign(Object.assign({},e),{content:t}))),{superType:e.type,component:t,rawOptions:e}}function A0e(r){return e=>Qt(iy.Consumer,null,t=>Qt(zp,{elTag:"div",elClasses:u1e(t.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:t.options.nextDayThreshold}),generatorName:void 0,customGenerator:r.content,classNameGenerator:r.classNames,didMount:r.didMount,willUnmount:r.willUnmount}))}function iLe(r,e,t,n){let s=f0e(r),l=f0e(e.views),c=rLe(s,l);return sy(c,f=>aLe(f,l,e,t,n))}function aLe(r,e,t,n,s){let l=r.overrides.duration||r.defaults.duration||n.duration||t.duration,c=null,f="",h="",m={};if(l&&(c=lLe(l),c)){let T=gG(c);f=T.unit,T.value===1&&(h=f,m=e[f]?e[f].rawOptions:{})}let b=T=>{let _=T.buttonText||{},F=r.defaults.buttonTextKey;return F!=null&&_[F]!=null?_[F]:_[r.type]!=null?_[r.type]:_[h]!=null?_[h]:null},S=T=>{let _=T.buttonHints||{},F=r.defaults.buttonTextKey;return F!=null&&_[F]!=null?_[F]:_[r.type]!=null?_[r.type]:_[h]!=null?_[h]:null};return{type:r.type,component:r.component,duration:c,durationUnit:f,singleUnit:h,optionDefaults:r.defaults,optionOverrides:Object.assign(Object.assign({},m),r.overrides),buttonTextOverride:b(n)||b(t)||r.overrides.buttonText,buttonTextDefault:b(s)||r.defaults.buttonText||b(K6)||r.type,buttonTitleOverride:S(n)||S(t)||r.overrides.buttonHint,buttonTitleDefault:S(s)||r.defaults.buttonHint||S(K6)}}let h0e={};function lLe(r){let e=JSON.stringify(r),t=h0e[e];return t===void 0&&(t=Ya(r),h0e[e]=t),t}function cLe(r,e){switch(e.type){case"CHANGE_VIEW_TYPE":r=e.viewType}return r}function uLe(r,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return r}}function dLe(r,e,t){let n=r.initialDate;return n!=null?e.createMarker(n):t.getDateMarker()}function fLe(r,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},r),{[e.optionName]:e.rawOptionValue});default:return r}}function ALe(r,e,t,n){let s;switch(e.type){case"CHANGE_VIEW_TYPE":return n.build(e.dateMarker||t);case"CHANGE_DATE":return n.build(e.dateMarker);case"PREV":if(s=n.buildPrev(r,t),s.isValid)return s;break;case"NEXT":if(s=n.buildNext(r,t),s.isValid)return s;break}return r}function hLe(r,e,t){let n=e?e.activeRange:null;return g0e({},wLe(r,t),n,t)}function pLe(r,e,t,n){let s=t?t.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return g0e(r,e.sources,s,n);case"REMOVE_EVENT_SOURCE":return mLe(r,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return t?m0e(r,s,n):r;case"FETCH_EVENT_SOURCES":return aK(r,e.sourceIds?s1e(e.sourceIds):v0e(r,n),s,e.isRefetch||!1,n);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return bLe(r,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return r}}function gLe(r,e,t){let n=e?e.activeRange:null;return aK(r,v0e(r,t),n,!0,t)}function p0e(r){for(let e in r)if(r[e].isFetching)return!0;return!1}function g0e(r,e,t,n){let s={};for(let l of e)s[l.sourceId]=l;return t&&(s=m0e(s,t,n)),Object.assign(Object.assign({},r),s)}function mLe(r,e){return IS(r,t=>t.sourceId!==e)}function m0e(r,e,t){return aK(r,IS(r,n=>vLe(n,e,t)),e,!1,t)}function vLe(r,e,t){return y0e(r,t)?!t.options.lazyFetching||!r.fetchRange||r.isFetching||e.start<r.fetchRange.start||e.end>r.fetchRange.end:!r.latestFetchId}function aK(r,e,t,n,s){let l={};for(let c in r){let f=r[c];e[c]?l[c]=yLe(f,t,n,s):l[c]=f}return l}function yLe(r,e,t,n){let{options:s,calendarApi:l}=n,c=n.pluginHooks.eventSourceDefs[r.sourceDefId],f=xS();return c.fetch({eventSource:r,range:e,isRefetch:t,context:n},h=>{let{rawEvents:m}=h;s.eventSourceSuccess&&(m=s.eventSourceSuccess.call(l,m,h.response)||m),r.success&&(m=r.success.call(l,m,h.response)||m),n.dispatch({type:"RECEIVE_EVENTS",sourceId:r.sourceId,fetchId:f,fetchRange:e,rawEvents:m})},h=>{let m=!1;s.eventSourceFailure&&(s.eventSourceFailure.call(l,h),m=!0),r.failure&&(r.failure(h),m=!0),m||console.warn(h.message,h),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:r.sourceId,fetchId:f,fetchRange:e,error:h})}),Object.assign(Object.assign({},r),{isFetching:!0,latestFetchId:f})}function bLe(r,e,t,n){let s=r[e];return s&&t===s.latestFetchId?Object.assign(Object.assign({},r),{[e]:Object.assign(Object.assign({},s),{isFetching:!1,fetchRange:n})}):r}function v0e(r,e){return IS(r,t=>y0e(t,e))}function wLe(r,e){let t=w1e(e),n=[].concat(r.eventSources||[]),s=[];r.initialEvents&&n.unshift(r.initialEvents),r.events&&n.unshift(r.events);for(let l of n){let c=b1e(l,e,t);c&&s.push(c)}return s}function y0e(r,e){return!e.pluginHooks.eventSourceDefs[r.sourceDefId].ignoreRange}function CLe(r,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return r}}function SLe(r,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return r}}function ELe(r,e){let t;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return t=e.state,{affectedEvents:t.affectedEvents,mutatedEvents:t.mutatedEvents,isEvent:t.isEvent};default:return r}}function _Le(r,e){let t;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return t=e.state,{affectedEvents:t.affectedEvents,mutatedEvents:t.mutatedEvents,isEvent:t.isEvent};default:return r}}function BLe(r,e,t,n,s){let l=r.headerToolbar?b0e(r.headerToolbar,r,e,t,n,s):null,c=r.footerToolbar?b0e(r.footerToolbar,r,e,t,n,s):null;return{header:l,footer:c}}function b0e(r,e,t,n,s,l){let c={},f=[],h=!1;for(let m in r){let b=r[m],S=xLe(b,e,t,n,s,l);c[m]=S.widgets,f.push(...S.viewsWithButtons),h=h||S.hasTitle}return{sectionWidgets:c,viewsWithButtons:f,hasTitle:h}}function xLe(r,e,t,n,s,l){let c=e.direction==="rtl",f=e.customButtons||{},h=t.buttonText||{},m=e.buttonText||{},b=t.buttonHints||{},S=e.buttonHints||{},T=r?r.split(" "):[],_=[],F=!1;return{widgets:T.map(N=>N.split(",").map(L=>{if(L==="title")return F=!0,{buttonName:L};let V,P,W,le,J,q;if(V=f[L])W=ce=>{V.click&&V.click.call(ce.target,ce,ce.target)},(le=n.getCustomButtonIconClass(V))||(le=n.getIconClass(L,c))||(J=V.text),q=V.hint||V.text;else if(P=s[L]){_.push(L),W=()=>{l.changeView(L)},(J=P.buttonTextOverride)||(le=n.getIconClass(L,c))||(J=P.buttonTextDefault);let ce=P.buttonTextOverride||P.buttonTextDefault;q=G6(P.buttonTitleOverride||P.buttonTitleDefault||e.viewHint,[ce,L],ce)}else if(l[L])if(W=()=>{l[L]()},(J=h[L])||(le=n.getIconClass(L,c))||(J=m[L]),L==="prevYear"||L==="nextYear"){let ce=L==="prevYear"?"prev":"next";q=G6(b[ce]||S[ce],[m.year||"year","year"],m[L])}else q=ce=>G6(b[L]||S[L],[m[ce]||ce,ce],m[L]);return{buttonName:L,buttonClick:W,buttonIcon:le,buttonText:J,buttonHint:q}})),viewsWithButtons:_,hasTitle:F}}class TLe{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}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(e){return this.getCurrentData().options[e]}}const kLe=cy({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(r){return Array.isArray(r.events)?r.events:null},fetch(r,e){e({rawEvents:r.eventSource.meta})}}]}),FLe=cy({name:"func-event-source",eventSourceDefs:[{parseMeta(r){return typeof r.events=="function"?r.events:null},fetch(r,e,t){const{dateEnv:n}=r.context,s=r.eventSource.meta;V7e(s.bind(null,P1e(r.range,n)),l=>e({rawEvents:l}),t)}}]}),ILe=cy({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:Hn,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(r){return r.url&&(r.format==="json"||!r.format)?{url:r.url,format:"json",method:(r.method||"GET").toUpperCase(),extraParams:r.extraParams,startParam:r.startParam,endParam:r.endParam,timeZoneParam:r.timeZoneParam}:null},fetch(r,e,t){const{meta:n}=r.eventSource,s=DLe(n,r.range,r.context);$7e(n.method,n.url,s).then(([l,c])=>{e({rawEvents:l,response:c})},t)}}]});function DLe(r,e,t){let{dateEnv:n,options:s}=t,l,c,f,h,m={};return l=r.startParam,l==null&&(l=s.startParam),c=r.endParam,c==null&&(c=s.endParam),f=r.timeZoneParam,f==null&&(f=s.timeZoneParam),typeof r.extraParams=="function"?h=r.extraParams():h=r.extraParams||{},Object.assign(m,h),m[l]=n.formatIso(e.start),m[c]=n.formatIso(e.end),n.timeZone!=="local"&&(m[f]=n.timeZone),m}const NLe=cy({name:"simple-recurring-event",recurringTypes:[{parse(r,e){if(r.daysOfWeek||r.startTime||r.endTime||r.startRecur||r.endRecur){let t={daysOfWeek:r.daysOfWeek||null,startTime:r.startTime||null,endTime:r.endTime||null,startRecur:r.startRecur?e.createMarker(r.startRecur):null,endRecur:r.endRecur?e.createMarker(r.endRecur):null,dateEnv:e},n;return r.duration&&(n=r.duration),!n&&r.startTime&&r.endTime&&(n=JOe(r.endTime,r.startTime)),{allDayGuess:!r.startTime&&!r.endTime,duration:n,typeData:t}}return null},expand(r,e,t){let n=NS(e,{start:r.startRecur,end:r.endRecur});return n?OLe(r.daysOfWeek,r.startTime,r.dateEnv,t,n):[]}}],eventRefiners:{daysOfWeek:Hn,startTime:Ya,endTime:Ya,duration:Ya,startRecur:Hn,endRecur:Hn}});function OLe(r,e,t,n,s){let l=r?s1e(r):null,c=$c(s.start),f=s.end,h=[];for(e&&(e.milliseconds<0?f=Bf(f,1):e.milliseconds>=1e3*60*60*24&&(c=Bf(c,-1)));c<f;){let m;(!l||l[c.getUTCDay()])&&(e?m=n.add(c,e):m=c,h.push(n.createMarker(t.toDate(m)))),c=Bf(c,1)}return h}const RLe=cy({name:"change-handler",optionChangeHandlers:{events(r,e){w0e([r],e)},eventSources:w0e}});function w0e(r,e){let t=EG(e.getCurrentData().eventSources);if(t.length===1&&r.length===1&&Array.isArray(t[0]._raw)&&Array.isArray(r[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:t[0].sourceId,rawEvents:r[0]});return}let n=[];for(let s of r){let l=!1;for(let c=0;c<t.length;c+=1)if(t[c]._raw===s){t.splice(c,1),l=!0;break}l||n.push(s)}for(let s of t)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:s.sourceId});for(let s of n)e.calendarApi.addEventSource(s)}function PLe(r,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},P1e(r.activeRange,e.dateEnv)),{view:e.viewApi}))}function LLe(r,e){let{emitter:t}=e;t.hasHandlers("eventsSet")&&t.trigger("eventsSet",RS(r,e))}const MLe=[kLe,FLe,ILe,NLe,RLe,cy({name:"misc",isLoadingFuncs:[r=>p0e(r.eventSources)],propSetHandlers:{dateProfile:PLe,eventStore:LLe}})];class ULe{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new uG(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t=[],n;for(;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function HLe(r,e,t){let n;return/^(year|month)$/.test(r.currentRangeUnit)?n=r.currentRange:n=r.activeRange,t.formatRange(n.start,n.end,Fu(e.titleFormat||VLe(r)),{isEndExclusive:r.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function VLe(r){let{currentRangeUnit:e}=r;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let t=FP(r.currentRange.start,r.currentRange.end);return t!==null&&t>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class C0e{constructor(){this.resetListeners=new Set}handleInput(e,t){const n=this.dateEnv;if(e!==n&&(typeof t=="function"?this.nowFn=t:n||(this.nowAnchorDate=e.toDate(t?e.createMarker(t):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,n))for(const s of this.resetListeners.values())s()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}}class $Le{constructor(e){this.computeCurrentViewData=li(this._computeCurrentViewData),this.organizeRawLocales=li(ZPe),this.buildLocale=li(u0e),this.buildPluginHooks=eLe(),this.buildDateEnv=li(QLe),this.buildTheme=li(zLe),this.parseToolbars=li(BLe),this.buildViewSpecs=li(iLe),this.buildDateProfileGenerator=IP(jLe),this.buildViewApi=li(WLe),this.buildViewUiProps=IP(KLe),this.buildEventUiBySource=li(qLe,Lm),this.buildEventUiBases=li(GLe),this.parseContextBusinessHours=IP(ZLe),this.buildTitle=li(HLe),this.nowManager=new C0e,this.emitter=new zP,this.actionRunner=new ULe(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=T=>{this.actionRunner.request(T)},this.props=e,this.actionRunner.pause(),this.nowManager=new C0e;let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),s=n.calendarOptions.initialView||n.pluginHooks.initialView,l=this.computeCurrentViewData(s,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(l.options);let c={nowManager:this.nowManager,dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},f=dLe(n.calendarOptions,n.dateEnv,this.nowManager),h=l.dateProfileGenerator.build(f);ay(h.activeRange,f)||(f=h.currentRange.start);for(let T of n.pluginHooks.contextInit)T(c);let m=hLe(n.calendarOptions,h,c),b={dynamicOptionOverrides:t,currentViewType:s,currentDate:f,dateProfile:h,businessHours:this.parseContextBusinessHours(c),eventSources:m,eventUiBases:{},eventStore:jp(),renderableEventStore:jp(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(c).selectionConfig},S=Object.assign(Object.assign({},c),b);for(let T of n.pluginHooks.reducers)Object.assign(b,T(null,null,S));lK(b,c)&&this.emitter.trigger("loading",!0),this.state=b,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;t===void 0?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(t===void 0||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:s}=this,l=fLe(n.dynamicOptionOverrides,e),c=this.computeOptionsData(t.optionOverrides,l,t.calendarApi),f=cLe(n.currentViewType,e),h=this.computeCurrentViewData(f,c,t.optionOverrides,l);t.calendarApi.currentDataManager=this,s.setThisContext(t.calendarApi),s.setOptions(h.options);let m={nowManager:this.nowManager,dateEnv:c.dateEnv,options:c.calendarOptions,pluginHooks:c.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:s,getCurrentData:this.getCurrentData},{currentDate:b,dateProfile:S}=n;this.data&&this.data.dateProfileGenerator!==h.dateProfileGenerator&&(S=h.dateProfileGenerator.build(b)),b=uLe(b,e),S=ALe(S,e,b,h.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!ay(S.currentRange,b))&&(b=S.currentRange.start);let T=pLe(n.eventSources,e,S,m),_=h7e(n.eventStore,e,T,S,m),R=p0e(T)&&!h.options.progressiveEventRendering&&n.renderableEventStore||_,{eventUiSingleBase:N,selectionConfig:L}=this.buildViewUiProps(m),V=this.buildEventUiBySource(T),P=this.buildEventUiBases(R.defs,N,V),W={dynamicOptionOverrides:l,currentViewType:f,currentDate:b,dateProfile:S,eventSources:T,eventStore:_,renderableEventStore:R,selectionConfig:L,eventUiBases:P,businessHours:this.parseContextBusinessHours(m),dateSelection:CLe(n.dateSelection,e),eventSelection:SLe(n.eventSelection,e),eventDrag:ELe(n.eventDrag,e),eventResize:_Le(n.eventResize,e)},le=Object.assign(Object.assign({},m),W);for(let ce of c.pluginHooks.reducers)Object.assign(W,ce(n,e,le));let J=lK(n,m),q=lK(W,m);!J&&q?s.trigger("loading",!0):J&&!q&&s.trigger("loading",!1),this.state=W,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,s=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),l=this.computeCurrentViewData(t.currentViewType,s,e.optionOverrides,t.dynamicOptionOverrides),c=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(t.dateProfile,l.options,s.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},s),l),t),f=s.pluginHooks.optionChangeHandlers,h=n&&n.calendarOptions,m=s.calendarOptions;if(h&&h!==m){h.timeZone!==m.timeZone&&(t.eventSources=c.eventSources=gLe(c.eventSources,t.dateProfile,c),t.eventStore=c.eventStore=E1e(c.eventStore,n.dateEnv,c.dateEnv),t.renderableEventStore=c.renderableEventStore=E1e(c.renderableEventStore,n.dateEnv,c.dateEnv));for(let b in f)(this.optionsForHandling.indexOf(b)!==-1||h[b]!==m[b])&&f[b](m[b],c)}this.optionsForHandling=[],e.onData&&e.onData(c)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:s,pluginHooks:l,localeDefaults:c,availableLocaleData:f,extra:h}=this.processRawCalendarOptions(e,t);S0e(h);let m=this.buildDateEnv(s.timeZone,s.locale,s.weekNumberCalculation,s.firstDay,s.weekText,l,f,s.defaultRangeSeparator),b=this.buildViewSpecs(l.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,c),S=this.buildTheme(s,l),T=this.parseToolbars(s,this.stableOptionOverrides,S,b,n);return this.stableCalendarOptionsData={calendarOptions:s,pluginHooks:l,dateEnv:m,viewSpecs:b,theme:S,toolbarConfig:T,localeDefaults:c,availableRawLocales:f.map}}processRawCalendarOptions(e,t){let{locales:n,locale:s}=wG([K6,e,t]),l=this.organizeRawLocales(n),c=l.map,f=this.buildLocale(s||l.defaultCode,c).options,h=this.buildPluginHooks(e.plugins||[],MLe),m=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n1e),r1e),o1e),h.listenerRefiners),h.optionRefiners),b={},S=wG([K6,f,e,t]),T={},_=this.currentCalendarOptionsInput,F=this.currentCalendarOptionsRefined,R=!1;for(let N in S)this.optionsForRefining.indexOf(N)===-1&&(S[N]===_[N]||kS[N]&&N in _&&kS[N](_[N],S[N]))?T[N]=F[N]:m[N]?(T[N]=m[N](S[N]),R=!0):b[N]=_[N];return R&&(this.currentCalendarOptionsInput=S,this.currentCalendarOptionsRefined=T,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:h,availableLocaleData:l,localeDefaults:f,extra:b}}_computeCurrentViewData(e,t,n,s){let l=t.viewSpecs[e];if(!l)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:c,extra:f}=this.processRawViewOptions(l,t.pluginHooks,t.localeDefaults,n,s);S0e(f),this.nowManager.handleInput(t.dateEnv,c.now);let h=this.buildDateProfileGenerator({dateProfileGeneratorClass:l.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:l.duration,durationUnit:l.durationUnit,usesMinMaxTime:l.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,showNonCurrentDates:c.showNonCurrentDates,dayCount:c.dayCount,dateAlignment:c.dateAlignment,dateIncrement:c.dateIncrement,hiddenDays:c.hiddenDays,weekends:c.weekends,validRangeInput:c.validRange,visibleRangeInput:c.visibleRange,fixedWeekCount:c.fixedWeekCount}),m=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:l,options:c,dateProfileGenerator:h,viewApi:m}}processRawViewOptions(e,t,n,s,l){let c=wG([K6,e.optionDefaults,n,s,e.optionOverrides,l]),f=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n1e),r1e),o1e),DRe),t.listenerRefiners),t.optionRefiners),h={},m=this.currentViewOptionsInput,b=this.currentViewOptionsRefined,S=!1,T={};for(let _ in c)c[_]===m[_]||kS[_]&&kS[_](c[_],m[_])?h[_]=b[_]:(c[_]===this.currentCalendarOptionsInput[_]||kS[_]&&kS[_](c[_],this.currentCalendarOptionsInput[_])?_ in this.currentCalendarOptionsRefined&&(h[_]=this.currentCalendarOptionsRefined[_]):f[_]?h[_]=f[_](c[_]):T[_]=c[_],S=!0);return S&&(this.currentViewOptionsInput=c,this.currentViewOptionsRefined=h),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:T}}}function QLe(r,e,t,n,s,l,c,f){let h=u0e(e||c.defaultCode,c.map);return new QRe({calendarSystem:"gregory",timeZone:r,namedTimeZoneImpl:l.namedTimeZonedImpl,locale:h,weekNumberCalculation:t,firstDay:n,weekText:s,cmdFormatter:l.cmdFormatter,defaultSeparator:f})}function zLe(r,e){let t=e.themeClasses[r.themeSystem]||S2;return new t(r)}function jLe(r){let e=r.dateProfileGeneratorClass||h1e;return new e(r)}function WLe(r,e,t){return new TLe(r,e,t)}function qLe(r){return sy(r,e=>e.ui)}function GLe(r,e,t){let n={"":e};for(let s in r){let l=r[s];l.sourceId&&t[l.sourceId]&&(n[s]=t[l.sourceId])}return n}function KLe(r){let{options:e}=r;return{eventUiSingleBase:QP({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},r),selectionConfig:QP({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},r)}}function lK(r,e){for(let t of e.pluginHooks.isLoadingFuncs)if(t(r))return!0;return!1}function ZLe(r){return S7e(r.options.businessHours,r)}function S0e(r,e){for(let t in r)console.warn(`Unknown option '${t}'`)}class YLe extends ql{render(){let e=this.props.widgetGroups.map(t=>this.renderWidgetGroup(t));return Qt("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,s=[],l=!0;for(let c of e){let{buttonName:f,buttonClick:h,buttonText:m,buttonIcon:b,buttonHint:S}=c;if(f==="title")l=!1,s.push(Qt("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let T=f===t.activeButton,_=!t.isTodayEnabled&&f==="today"||!t.isPrevEnabled&&f==="prev"||!t.isNextEnabled&&f==="next",F=[`fc-${f}-button`,n.getClass("button")];T&&F.push(n.getClass("buttonActive")),s.push(Qt("button",{type:"button",title:typeof S=="function"?S(t.navUnit):S,disabled:_,"aria-pressed":T,className:F.join(" "),onClick:h},m||(b?Qt("span",{className:b,role:"img"}):"")))}}if(s.length>1){let c=l&&n.getClass("buttonGroup")||"";return Qt("div",{className:c},...s)}return s[0]}}class E0e extends ql{render(){let{model:e,extraClassName:t}=this.props,n=!1,s,l,c=e.sectionWidgets,f=c.center;return c.left?(n=!0,s=c.left):s=c.start,c.right?(n=!0,l=c.right):l=c.end,Qt("div",{className:[t||"","fc-toolbar",n?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",s||[]),this.renderSection("center",f||[]),this.renderSection("end",l||[]))}renderSection(e,t){let{props:n}=this;return Qt(YLe,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class XLe extends ql{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,K1(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,s=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],l="",c="";return n?t.availableWidth!==null?l=t.availableWidth/n:c=`${1/n*100}%`:l=e.height||"",Qt("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:s.join(" "),style:{height:l,paddingBottom:c}},e.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 JLe extends eB{constructor(e){super(e),this.handleSegClick=(t,n)=>{let{component:s}=this,{context:l}=s,c=J_(n);if(c&&s.isValidSegDownEl(t.target)){let f=BA(t.target,".fc-event-forced-url"),h=f?f.querySelector("a[href]").href:"";l.emitter.trigger("eventClick",{el:n,event:new hu(s.context,c.eventRange.def,c.eventRange.instance),jsEvent:t,view:l.viewApi}),h&&!t.defaultPrevented&&(window.location.href=h)}},this.destroy=$me(e.el,"click",".fc-event",this.handleSegClick)}}class eMe extends eB{constructor(e){super(e),this.handleEventElRemove=t=>{t===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(t,n)=>{J_(n)&&(this.currentSegEl=n,this.triggerEvent("eventMouseEnter",t,n))},this.handleSegLeave=(t,n)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",t,n))},this.removeHoverListeners=MOe(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:s}=this,{context:l}=s,c=J_(n);(!t||s.isValidSegDownEl(t.target))&&l.emitter.trigger(e,{el:n,event:new hu(l,c.eventRange.def,c.eventRange.instance),jsEvent:t,view:l.viewApi})}}class tMe extends DS{constructor(){super(...arguments),this.buildViewContext=li(WRe),this.buildViewPropTransformers=li(rMe),this.buildToolbarProps=li(nMe),this.headerRef=sh(),this.footerRef=sh(),this.interactionsStore={},this.state={viewLabelId:xP()},this.registerInteractiveComponent=(e,t)=>{let n=j7e(e,t),c=[JLe,eMe].concat(this.props.pluginHooks.componentInteractions).map(f=>new f(n));this.interactionsStore[e.uid]=c,UG[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let n of t)n.destroy();delete this.interactionsStore[e.uid]}delete UG[e.uid]},this.resizeRunner=new uG(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:t,options:n}=e,s=!1,l="",c;e.isHeightAuto||e.forPrint?l="":n.height!=null?s=!0:n.contentHeight!=null?l=n.contentHeight:c=Math.max(n.aspectRatio,.5);let f=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.nowManager,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),h=t.header&&t.header.hasTitle?this.state.viewLabelId:void 0;return Qt(iy.Provider,{value:f},Qt(tB,{unit:"day"},m=>{let b=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,m,e.viewTitle);return Qt(Vc,null,t.header&&Qt(E0e,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:t.header,titleId:h},b)),Qt(XLe,{liquid:s,height:l,aspectRatio:c,labeledById:h},this.renderView(e),this.buildAppendContent()),t.footer&&Qt(E0e,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:t.footer,titleId:""},b)))}))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(n=>new n(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let s in n)t[s]!==e[s]&&n[s](t[s],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,t=e.pluginHooks.viewContainerAppends.map(n=>n(e));return Qt(Vc,{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,s={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},l=this.buildViewPropTransformers(t.viewPropsTransformers);for(let f of l)Object.assign(s,f.transform(s,e));let c=n.component;return Qt(c,Object.assign({},s))}}function nMe(r,e,t,n,s,l){let c=t.build(s,void 0,!1),f=t.buildPrev(e,n,!1),h=t.buildNext(e,n,!1);return{title:l,activeButton:r.type,navUnit:r.singleUnit,isTodayEnabled:c.isValid&&!ay(e.currentRange,s),isPrevEnabled:f.isValid,isNextEnabled:h.isValid}}function rMe(r){return r.map(e=>new e)}let oMe=class extends q7e{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=n=>{switch(n.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=n=>{this.currentData=n,this.renderRunner.request(n.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:n}=this;LP(()=>{W6(Qt(z7e,{options:n.calendarOptions,theme:n.theme,emitter:n.emitter},(s,l,c,f)=>(this.setClassNames(s),this.setHeight(l),Qt(c1e.Provider,{value:this.customContentRenderId},Qt(tMe,Object.assign({isHeightAuto:c,forPrint:f},n))))),this.el)})}else this.isRendered&&(this.isRendered=!1,W6(null,this.el),this.setClassNames([]),this.setHeight(""))},kOe(e),this.el=e,this.renderRunner=new uG(this.handleRenderRequest),new $Le({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){LP(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!v2(e,this.currentClassNames)){let{classList:t}=this.el;for(let n of this.currentClassNames)t.remove(n);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){Ume(this.el,"height",e)}};const sMe={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},iMe=g.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(r){return{...r,customRenderingMetaMap:cMe(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const r=[];for(const e of this.customRenderingMap.values())r.push(g.h(aMe,{key:e.id,customRendering:e}));return g.h("div",{attrs:{"data-fc-render-id":this.renderId}},g.h(g.Fragment,r))},mounted(){const r=new GPe;this.handleCustomRendering=r.handle.bind(r);const e=this.buildOptions(this.options),t=new oMe(this.$el,e);this.calendar=t,t.render(),r.subscribe(n=>{this.customRenderingMap=n,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:lMe()}),aMe=g.defineComponent({props:{customRendering:Object},render(){const r=this.customRendering,e=typeof r.generatorMeta=="function"?r.generatorMeta(r.renderProps):r.generatorMeta;return g.h(g.Teleport,{to:r.containerEl},e)}});function jft(r){return r}function lMe(){let r={options:{deep:!0,handler(e){let t=this.getApi();t.pauseRendering();let n=this.buildOptions(e);t.resetOptions(n),this.renderId++}}};for(let e in sMe)r[`options.${e}`]={deep:!0,handler(t){if(t!==void 0){let n=this.getApi();n.pauseRendering(),n.resetOptions({[e]:t},[e]),this.renderId++}}};return r}function cMe(r){const e={};for(const t in r)e[uMe(t)]=r[t];return e}function uMe(r){return r.split("-").map((e,t)=>t?dMe(e):e).join("")}function dMe(r){return r.charAt(0).toUpperCase()+r.slice(1)}class fMe extends Z1{constructor(){super(...arguments),this.headerElRef=sh()}renderSimpleLayout(e,t){let{props:n,context:s}=this,l=[],c=ZP(s.options);return e&&l.push({type:"header",key:"header",isSticky:c,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),l.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),Qt(MP,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},Qt(JG,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:l}))}renderHScrollLayout(e,t,n,s){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{props:c,context:f}=this,h=!c.forPrint&&ZP(f.options),m=!c.forPrint&&t0e(f.options),b=[];return e&&b.push({type:"header",key:"header",isSticky:h,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),b.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),m&&b.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:XG}]}),Qt(MP,{elClasses:["fc-daygrid"],viewSpec:f.viewSpec},Qt(l,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:c.forPrint,colGroups:[{cols:[{span:n,minWidth:s}]}],sections:b}))}}function YP(r,e){let t=[];for(let n=0;n<e;n+=1)t[n]=[];for(let n of r)t[n.row].push(n);return t}function XP(r,e){let t=[];for(let n=0;n<e;n+=1)t[n]=[];for(let n of r)t[n.firstCol].push(n);return t}function _0e(r,e){let t=[];if(r){for(let n=0;n<e;n+=1)t[n]={affectedInstances:r.affectedInstances,isEvent:r.isEvent,segs:[]};for(let n of r.segs)t[n.row].segs.push(n)}else for(let n=0;n<e;n+=1)t[n]=null;return t}const B0e=Fu({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function x0e(r){let{display:e}=r.eventRange.ui;return e==="list-item"||e==="auto"&&!r.eventRange.def.allDay&&r.firstCol===r.lastCol&&r.isStart&&r.isEnd}class T0e extends ql{render(){let{props:e}=this;return Qt(tK,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:B0e,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class k0e extends ql{render(){let{props:e,context:t}=this,{options:n}=t,{seg:s}=e,l=n.eventTimeFormat||B0e,c=N1e(s,l,t,!0,e.defaultDisplayEventEnd);return Qt(eK,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:R1e(e.seg,t),defaultGenerator:AMe,timeText:c,isResizing:!1,isDateSelecting:!1}))}}function AMe(r){return Qt(Vc,null,Qt("div",{className:"fc-daygrid-event-dot",style:{borderColor:r.borderColor||r.backgroundColor}}),r.timeText&&Qt("div",{className:"fc-event-time"},r.timeText),Qt("div",{className:"fc-event-title"},r.event.title||Qt(Vc,null," ")))}class hMe extends ql{constructor(){super(...arguments),this.compileSegs=li(pMe)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return Qt(s0e,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let s=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return Qt(Vc,null,t.map(l=>{let c=l.eventRange.instance.instanceId;return Qt("div",{className:"fc-daygrid-event-harness",key:c,style:{visibility:s[c]?"hidden":""}},x0e(l)?Qt(k0e,Object.assign({seg:l,isDragging:!1,isSelected:c===e.eventSelection,defaultDisplayEventEnd:!1},C2(l,e.todayRange))):Qt(T0e,Object.assign({seg:l,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:c===e.eventSelection,defaultDisplayEventEnd:!1},C2(l,e.todayRange))))}))}})}}function pMe(r){let e=[],t=[];for(let n of r)e.push(n.seg),n.isVisible||t.push(n.seg);return{allSegs:e,invisibleSegs:t}}const gMe=Fu({week:"narrow"});class mMe extends Z1{constructor(){super(...arguments),this.rootElRef=sh(),this.state={dayNumberId:xP()},this.handleRootEl=e=>{K1(this.rootElRef,e),K1(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:s}=this,{options:l,dateEnv:c}=e,{date:f,dateProfile:h}=t;const m=t.showDayNumber&&yMe(f,h.currentRange,c);return Qt(rK,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:vMe,date:f,dateProfile:h,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:m,extraRenderProps:t.extraRenderProps},(b,S)=>Qt("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&Qt(o0e,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:WP(e,f,"week"),date:f,defaultFormat:gMe}),!S.isDisabled&&(t.showDayNumber||oK(l)||t.forceDayTop)?Qt("div",{className:"fc-daygrid-day-top"},Qt(b,{elTag:"a",elClasses:["fc-daygrid-day-number",m&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},WP(e,f)),{id:n.dayNumberId})})):t.showDayNumber?Qt("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},Qt("a",{className:"fc-daygrid-day-number"}," ")):void 0,Qt("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,Qt("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},Qt(hMe,{allDayDate:f,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:s,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),Qt("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}}function vMe(r){return r.dayNumberText||Qt(Vc,null," ")}function yMe(r,e,t){const{start:n,end:s}=e,l=y2(s,-1),c=t.getYear(n),f=t.getMonth(n),h=t.getYear(l),m=t.getMonth(l);return!(c===h&&f===m)&&(r.valueOf()===n.valueOf()||t.getDay(r)===1&&r.valueOf()<s.valueOf())}function F0e(r){return r.eventRange.instance.instanceId+":"+r.firstCol}function I0e(r){return F0e(r)+":"+r.lastCol}function bMe(r,e,t,n,s,l,c){let f=new SMe(L=>{let V=r[L.index].eventRange.instance.instanceId+":"+L.span.start+":"+(L.span.end-1);return s[V]||1});f.allowReslicing=!0,f.strictOrder=n,e===!0||t===!0?(f.maxCoord=l,f.hiddenConsumes=!0):typeof e=="number"?f.maxStackCnt=e:typeof t=="number"&&(f.maxStackCnt=t,f.hiddenConsumes=!0);let h=[],m=[];for(let L=0;L<r.length;L+=1){let V=r[L],P=I0e(V);s[P]!=null?h.push({index:L,span:{start:V.firstCol,end:V.lastCol+1}}):m.push(V)}let b=f.addSegs(h),S=f.toRects(),{singleColPlacements:T,multiColPlacements:_,leftoverMargins:F}=wMe(S,r,c),R=[],N=[];for(let L of m){_[L.firstCol].push({seg:L,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let V=L.firstCol;V<=L.lastCol;V+=1)T[V].push({seg:rB(L,V,V+1,c),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let L=0;L<c.length;L+=1)R.push(0);for(let L of b){let V=r[L.index],P=L.span;_[P.start].push({seg:rB(V,P.start,P.end,c),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let W=P.start;W<P.end;W+=1)R[W]+=1,T[W].push({seg:rB(V,W,W+1,c),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let L=0;L<c.length;L+=1)N.push(F[L]);return{singleColPlacements:T,multiColPlacements:_,moreCnts:R,moreMarginTops:N}}function wMe(r,e,t){let n=CMe(r,t.length),s=[],l=[],c=[];for(let f=0;f<t.length;f+=1){let h=n[f],m=[],b=0,S=0;for(let _ of h){let F=e[_.index];m.push({seg:rB(F,f,f+1,t),isVisible:!0,isAbsolute:!1,absoluteTop:_.levelCoord,marginTop:_.levelCoord-b}),b=_.levelCoord+_.thickness}let T=[];b=0,S=0;for(let _ of h){let F=e[_.index],R=_.span.end-_.span.start>1,N=_.span.start===f;S+=_.levelCoord-b,b=_.levelCoord+_.thickness,R?(S+=_.thickness,N&&T.push({seg:rB(F,_.span.start,_.span.end,t),isVisible:!0,isAbsolute:!0,absoluteTop:_.levelCoord,marginTop:0})):N&&(T.push({seg:rB(F,_.span.start,_.span.end,t),isVisible:!0,isAbsolute:!1,absoluteTop:_.levelCoord,marginTop:S}),S=0)}s.push(m),l.push(T),c.push(S)}return{singleColPlacements:s,multiColPlacements:l,leftoverMargins:c}}function CMe(r,e){let t=[];for(let n=0;n<e;n+=1)t.push([]);for(let n of r)for(let s=n.span.start;s<n.span.end;s+=1)t[s].push(n);return t}function rB(r,e,t,n){if(r.firstCol===e&&r.lastCol===t-1)return r;let s=r.eventRange,l=s.range,c=NS(l,{start:n[e].date,end:Bf(n[t-1].date,1)});return Object.assign(Object.assign({},r),{firstCol:e,lastCol:t-1,eventRange:{def:s.def,ui:Object.assign(Object.assign({},s.ui),{durationEditable:!1}),instance:s.instance,range:c},isStart:r.isStart&&c.start.valueOf()===l.start.valueOf(),isEnd:r.isEnd&&c.end.valueOf()===l.end.valueOf()})}class SMe extends z1e{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const t=super.addSegs(e),{entriesByLevel:n}=this,s=l=>!this.forceHidden[PS(l)];for(let l=0;l<n.length;l+=1)n[l]=n[l].filter(s);return t}handleInvalidInsertion(e,t,n){const{entriesByLevel:s,forceHidden:l}=this,{touchingEntry:c,touchingLevel:f,touchingLateral:h}=e;if(this.hiddenConsumes&&c){const m=PS(c);if(!l[m])if(this.allowReslicing){const b=Object.assign(Object.assign({},c),{span:qG(c.span,t.span)}),S=PS(b);l[S]=!0,s[f][h]=b,n.push(b),this.splitEntry(c,t,n)}else l[m]=!0,n.push(c)}super.handleInvalidInsertion(e,t,n)}}class D0e extends Z1{constructor(){super(...arguments),this.cellElRefs=new ly,this.frameElRefs=new ly,this.fgElRefs=new ly,this.segHarnessRefs=new ly,this.rootElRef=sh(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:s}=n,l=e.cells.length,c=XP(e.businessHourSegs,l),f=XP(e.bgEventSegs,l),h=XP(this.getHighlightSegs(),l),m=XP(this.getMirrorSegs(),l),{singleColPlacements:b,multiColPlacements:S,moreCnts:T,moreMarginTops:_}=bMe(D1e(e.fgEventSegs,s.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,s.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),F=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return Qt("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((R,N)=>{let L=this.renderFgSegs(N,e.forPrint?b[N]:S[N],e.todayRange,F),V=this.renderFgSegs(N,EMe(m[N],S),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return Qt(mMe,{key:R.key,elRef:this.cellElRefs.createRef(R.key),innerElRef:this.frameElRefs.createRef(R.key),dateProfile:e.dateProfile,date:R.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&N===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:R.extraRenderProps,extraDataAttrs:R.extraDataAttrs,extraClassNames:R.extraClassNames,extraDateSpan:R.extraDateSpan,moreCnt:T[N],moreMarginTop:_[N],singlePlacements:b[N],fgContentElRef:this.fgElRefs.createRef(R.key),fgContent:Qt(Vc,null,Qt(Vc,null,L),Qt(Vc,null,V)),bgContent:Qt(Vc,null,this.renderFillSegs(h[N],"highlight"),this.renderFillSegs(c[N],"non-business"),this.renderFillSegs(f[N],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!Lm(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,s,l,c,f){let{context:h}=this,{eventSelection:m}=this.props,{framePositions:b}=this.state,S=this.props.cells.length===1,T=l||c||f,_=[];if(b)for(let F of t){let{seg:R}=F,{instanceId:N}=R.eventRange.instance,L=F.isVisible&&!s[N],V=F.isAbsolute,P="",W="";V&&(h.isRtl?(W=0,P=b.lefts[R.lastCol]-b.lefts[R.firstCol]):(P=0,W=b.rights[R.firstCol]-b.rights[R.lastCol])),_.push(Qt("div",{className:"fc-daygrid-event-harness"+(V?" fc-daygrid-event-harness-abs":""),key:F0e(R),ref:T?null:this.segHarnessRefs.createRef(I0e(R)),style:{visibility:L?"":"hidden",marginTop:V?"":F.marginTop,top:V?F.absoluteTop:"",left:P,right:W}},x0e(R)?Qt(k0e,Object.assign({seg:R,isDragging:l,isSelected:N===m,defaultDisplayEventEnd:S},C2(R,n))):Qt(T0e,Object.assign({seg:R,isDragging:l,isResizing:c,isDateSelecting:f,isSelected:N===m,defaultDisplayEventEnd:S},C2(R,n)))))}return _}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:s}=this.props,{framePositions:l}=this.state,c=[];if(l)for(let f of e){let h=n?{right:0,left:l.lefts[f.lastCol]-l.lefts[f.firstCol]}:{left:0,right:l.rights[f.firstCol]-l.rights[f.lastCol]};c.push(Qt("div",{key:O1e(f.eventRange),className:"fc-daygrid-bg-harness",style:h},t==="bg-event"?Qt(n0e,Object.assign({seg:f},C2(f,s))):r0e(t)))}return Qt(Vc,{},...c)}updateSizing(e){let{props:t,state:n,frameElRefs:s}=this;if(!t.forPrint&&t.clientWidth!==null){if(e){let h=t.cells.map(m=>s.currentMap[m.key]);if(h.length){let m=this.rootElRef.current,b=new nB(m,h,!0,!1);(!n.framePositions||!n.framePositions.similarTo(b))&&this.setState({framePositions:new nB(m,h,!0,!1)})}}const l=this.state.segHeights,c=this.querySegHeights(),f=t.dayMaxEvents===!0||t.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},l),c),maxContentHeight:f?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let s=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,s)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(t=>e[t.key])}}D0e.addStateEquality({segHeights:Lm});function EMe(r,e){if(!r.length)return[];let t=_Me(e);return r.map(n=>({seg:n,isVisible:!0,isAbsolute:!0,absoluteTop:t[n.eventRange.instance.instanceId],marginTop:0}))}function _Me(r){let e={};for(let t of r)for(let n of t)e[n.seg.eventRange.instance.instanceId]=n.absoluteTop;return e}class BMe extends Z1{constructor(){super(...arguments),this.splitBusinessHourSegs=li(YP),this.splitBgEventSegs=li(xMe),this.splitFgEventSegs=li(YP),this.splitDateSelectionSegs=li(YP),this.splitEventDrag=li(_0e),this.splitEventResize=li(_0e),this.rowRefs=new ly}render(){let{props:e,context:t}=this,n=e.cells.length,s=this.splitBusinessHourSegs(e.businessHourSegs,n),l=this.splitBgEventSegs(e.bgEventSegs,n),c=this.splitFgEventSegs(e.fgEventSegs,n),f=this.splitDateSelectionSegs(e.dateSelectionSegs,n),h=this.splitEventDrag(e.eventDrag,n),m=this.splitEventResize(e.eventResize,n),b=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return Qt(tB,{unit:"day"},(S,T)=>Qt(Vc,null,e.cells.map((_,F)=>Qt(D0e,{ref:this.rowRefs.createRef(F),key:_.length?_[0].date.toISOString():F,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:T,dateProfile:e.dateProfile,cells:_,renderIntro:e.renderRowIntro,businessHourSegs:s[F],eventSelection:e.eventSelection,bgEventSegs:l[F],fgEventSegs:c[F],dateSelectionSegs:f[F],eventDrag:h[F],eventResize:m[F],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:b,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new nB(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new nB(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:s}=this,l=n.leftToIndex(e),c=s.topToIndex(t);if(c!=null&&l!=null){let f=this.props.cells[c][l];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(c,l),allDay:!0},f.extraDateSpan),dayEl:this.getCellEl(c,l),rect:{left:n.lefts[l],right:n.rights[l],top:s.tops[c],bottom:s.bottoms[c]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date,s=Bf(n,1);return{start:n,end:s}}}function xMe(r,e){return YP(r.filter(TMe),e)}function TMe(r){return r.eventRange.def.allDay}class kMe extends Z1{constructor(){super(...arguments),this.elRef=sh(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:s}=e,l=n===!0||t===!0;l&&!s&&(l=!1,t=null,n=null);let c=["fc-daygrid-body",l?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",s?"":"fc-daygrid-body-natural"];return Qt("div",{ref:this.elRef,className:c.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},Qt("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:s?e.clientHeight:""}},e.colGroupNode,Qt("tbody",{role:"presentation"},Qt(BMe,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=FMe(this.elRef.current,this.props.dateProfile);if(e){const t=e.closest(".fc-daygrid-body"),n=t.closest(".fc-scroller"),s=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=s?s+1:0}this.needsScrollReset=!1}}}function FMe(r,e){let t;return e.currentRangeUnit.match(/year|month/)&&(t=r.querySelector(`[data-date="${pRe(e.currentDate)}-01"]`)),t||(t=r.querySelector(`[data-date="${vG(e.currentDate)}"]`)),t}class IMe extends Z1e{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class N0e extends Z1{constructor(){super(...arguments),this.slicer=new IMe,this.tableRef=sh()}render(){let{props:e,context:t}=this;return Qt(kMe,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class DMe extends fMe{constructor(){super(...arguments),this.buildDayTableModel=li(NMe),this.headerRef=sh(),this.tableRef=sh()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,s=this.buildDayTableModel(n.dateProfile,t),l=e.dayHeaders&&Qt(q1e,{ref:this.headerRef,dateProfile:n.dateProfile,dates:s.headerDates,datesRepDistinctDays:s.rowCnt===1}),c=f=>Qt(N0e,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:s,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:f.tableColGroupNode,tableMinWidth:f.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:f.clientWidth,clientHeight:f.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(l,c,s.colCnt,e.dayMinWidth):this.renderSimpleLayout(l,c)}}function NMe(r,e){let t=new G1e(r.renderRange,e);return new K1e(t,/year|month|week/.test(r.currentRangeUnit))}class OMe extends h1e{buildRenderRange(e,t,n){let s=super.buildRenderRange(e,t,n),{props:l}=this;return RMe({currentRange:s,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:l.fixedWeekCount,dateEnv:l.dateEnv})}}function RMe(r){let{dateEnv:e,currentRange:t}=r,{start:n,end:s}=t,l;if(r.snapToWeek&&(n=e.startOfWeek(n),l=e.startOfWeek(s),l.valueOf()!==s.valueOf()&&(s=Kme(l,1))),r.fixedWeekCount){let c=e.startOfWeek(e.startOfMonth(Bf(t.end,-1))),f=Math.ceil(oRe(c,s));s=Kme(s,6-f)}return{start:n,end:s}}var PMe=':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}';lG(PMe);var LMe=cy({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:DMe,dateProfileGeneratorClass:OMe},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}}}});class MMe extends X7e{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?T7e(e)?["timed","allDay"]:["allDay"]:["timed"]}}const UMe=Fu({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function O0e(r){let e=["fc-timegrid-slot","fc-timegrid-slot-label",r.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Qt(iy.Consumer,null,t=>{if(!r.isLabeled)return Qt("td",{className:e.join(" "),"data-time":r.isoTimeStr});let{dateEnv:n,options:s,viewApi:l}=t,c=s.slotLabelFormat==null?UMe:Array.isArray(s.slotLabelFormat)?Fu(s.slotLabelFormat[0]):Fu(s.slotLabelFormat),f={level:0,time:r.time,date:n.toDate(r.date),view:l,text:n.format(r.date,c)};return Qt(zp,{elTag:"td",elClasses:e,elAttrs:{"data-time":r.isoTimeStr},renderProps:f,generatorName:"slotLabelContent",customGenerator:s.slotLabelContent,defaultGenerator:HMe,classNameGenerator:s.slotLabelClassNames,didMount:s.slotLabelDidMount,willUnmount:s.slotLabelWillUnmount},h=>Qt("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Qt(h,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function HMe(r){return r.text}class VMe extends ql{render(){return this.props.slatMetas.map(e=>Qt("tr",{key:e.key},Qt(O0e,Object.assign({},e))))}}const $Me=Fu({week:"short"}),QMe=5;class zMe extends Z1{constructor(){super(...arguments),this.allDaySplitter=new MMe,this.headerElRef=sh(),this.rootElRef=sh(),this.scrollerElRef=sh(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t="")=>{let{options:n}=this.context,{dateProfile:s}=this.props,l=s.renderRange,f=TS(l.start,l.end)===1?WP(this.context,l.start,"week"):{};return n.weekNumbers&&e==="day"?Qt(o0e,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:l.start,defaultFormat:$Me},h=>Qt("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:t}},Qt(h,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:f}))):Qt("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},Qt("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context,s={text:t.allDayText,view:n};return Qt(zp,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:s,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:jMe,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},l=>Qt("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},Qt(l,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:s,props:l}=this,c=[],f=ZP(s.options);return e&&c.push({type:"header",key:"header",isSticky:f,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(c.push({type:"body",key:"all-day",chunk:{content:t}}),c.push({type:"body",key:"all-day-divider",outerContent:Qt("tr",{role:"presentation",className:"fc-scrollgrid-section"},Qt("td",{className:"fc-timegrid-divider "+s.theme.getClass("tableCellShaded")}))})),c.push({type:"body",key:"body",liquid:!0,expandRows:!!s.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:n}}),Qt(MP,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:s.viewSpec},Qt(JG,{liquid:!l.isHeightAuto&&!l.forPrint,collapsibleWidth:l.forPrint,cols:[{width:"shrink"}],sections:c}))}renderHScrollLayout(e,t,n,s,l,c,f){let h=this.context.pluginHooks.scrollGridImpl;if(!h)throw new Error("No ScrollGrid implementation");let{context:m,props:b}=this,S=!b.forPrint&&ZP(m.options),T=!b.forPrint&&t0e(m.options),_=[];e&&_.push({type:"header",key:"header",isSticky:S,syncRowHeights:!0,chunks:[{key:"axis",rowContent:R=>Qt("tr",{role:"presentation"},this.renderHeadAxis("day",R.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(_.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:R=>Qt("tr",{role:"presentation"},this.renderTableRowAxis(R.rowSyncHeights[0]))},{key:"cols",content:t}]}),_.push({key:"all-day-divider",type:"body",outerContent:Qt("tr",{role:"presentation",className:"fc-scrollgrid-section"},Qt("td",{colSpan:2,className:"fc-timegrid-divider "+m.theme.getClass("tableCellShaded")}))}));let F=m.options.nowIndicator;return _.push({type:"body",key:"body",liquid:!0,expandRows:!!m.options.expandRows,chunks:[{key:"axis",content:R=>Qt("div",{className:"fc-timegrid-axis-chunk"},Qt("table",{"aria-hidden":!0,style:{height:R.expandRows?R.clientHeight:""}},R.tableColGroupNode,Qt("tbody",null,Qt(VMe,{slatMetas:c}))),Qt("div",{className:"fc-timegrid-now-indicator-container"},Qt(tB,{unit:F?"minute":"day"},N=>{let L=F&&f&&f.safeComputeTop(N);return typeof L=="number"?Qt(nK,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:L},isAxis:!0,date:N}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),T&&_.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:XG},{key:"cols",content:XG}]}),Qt(MP,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:m.viewSpec},Qt(h,{liquid:!b.isHeightAuto&&!b.forPrint,forPrint:b.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:s,minWidth:l}]}],sections:_}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return(e===!0||t===!0)&&(e=void 0,t=QMe),{dayMaxEvents:e,dayMaxEventRows:t}}}function jMe(r){return r.text}class WMe{constructor(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if(ay(t.currentRange,e)){let n=$c(e),s=e.valueOf()-n.valueOf();if(s>=Pm(t.slotMinTime)&&s<Pm(t.slotMaxTime))return this.computeTimeTop(Ya(s))}return null}computeDateTop(e,t){return t||(t=$c(e)),this.computeTimeTop(Ya(e.valueOf()-t.valueOf()))}computeTimeTop(e){let{positions:t,dateProfile:n}=this,s=t.els.length,l=(e.milliseconds-Pm(n.slotMinTime))/Pm(this.slotDuration),c,f;return l=Math.max(0,l),l=Math.min(s,l),c=Math.floor(l),c=Math.min(c,s-1),f=l-c,t.tops[c]+t.getHeight(c)*f}}class qMe extends ql{render(){let{props:e,context:t}=this,{options:n}=t,{slatElRefs:s}=e;return Qt("tbody",null,e.slatMetas.map((l,c)=>{let f={time:l.time,date:t.dateEnv.toDate(l.date),view:t.viewApi};return Qt("tr",{key:l.key,ref:s.createRef(l.key)},e.axis&&Qt(O0e,Object.assign({},l)),Qt(zp,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!l.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":l.isoTimeStr},renderProps:f,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))}))}}class GMe extends ql{constructor(){super(...arguments),this.rootElRef=sh(),this.slatElRefs=new ly}render(){let{props:e,context:t}=this;return Qt("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},Qt("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,Qt(qMe,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:t}=this;t.onCoords&&t.clientWidth!==null&&this.rootElRef.current.offsetHeight&&t.onCoords(new WMe(new nB(this.rootElRef.current,KMe(this.slatElRefs.currentMap,t.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function KMe(r,e){return e.map(t=>r[t.key])}function X6(r,e){let t=[],n;for(n=0;n<e;n+=1)t.push([]);if(r)for(n=0;n<r.length;n+=1)t[r[n].col].push(r[n]);return t}function R0e(r,e){let t=[];if(r){for(let n=0;n<e;n+=1)t[n]={affectedInstances:r.affectedInstances,isEvent:r.isEvent,segs:[]};for(let n of r.segs)t[n.col].segs.push(n)}else for(let n=0;n<e;n+=1)t[n]=null;return t}class ZMe extends ql{render(){let{props:e}=this;return Qt(s0e,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>U0e(e.hiddenSegs,e),defaultGenerator:YMe,forceTimed:!0},t=>Qt(t,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function YMe(r){return r.shortText}function XMe(r,e,t){let n=new z1e;e!=null&&(n.strictOrder=e),t!=null&&(n.maxStackCnt=t);let s=n.addSegs(r),l=dPe(s),c=JMe(n);return c=rUe(c,1),{segRects:oUe(c),hiddenGroups:l}}function JMe(r){const{entriesByLevel:e}=r,t=cK((n,s)=>n+":"+s,(n,s)=>{let l=nUe(r,n,s),c=P0e(l,t),f=e[n][s];return[Object.assign(Object.assign({},f),{nextLevelNodes:c[0]}),f.thickness+c[1]]});return P0e(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,t)[0]}function P0e(r,e){if(!r)return[[],0];let{level:t,lateralStart:n,lateralEnd:s}=r,l=n,c=[];for(;l<s;)c.push(e(t,l)),l+=1;return c.sort(eUe),[c.map(tUe),c[0][1]]}function eUe(r,e){return e[1]-r[1]}function tUe(r){return r[0]}function nUe(r,e,t){let{levelCoords:n,entriesByLevel:s}=r,l=s[e][t],c=n[e]+l.thickness,f=n.length,h=e;for(;h<f&&n[h]<c;h+=1);for(;h<f;h+=1){let m=s[h],b,S=KG(m,l.span.start,WG),T=S[0]+S[1],_=T;for(;(b=m[_])&&b.span.start<l.span.end;)_+=1;if(T<_)return{level:h,lateralStart:T,lateralEnd:_}}return null}function rUe(r,e){const t=cK((n,s,l)=>PS(n),(n,s,l)=>{let{nextLevelNodes:c,thickness:f}=n,h=f+l,m=f/h,b,S=[];if(!c.length)b=e;else for(let _ of c)if(b===void 0){let F=t(_,s,h);b=F[0],S.push(F[1])}else{let F=t(_,b,0);S.push(F[1])}let T=(b-s)*m;return[b-T,Object.assign(Object.assign({},n),{thickness:T,nextLevelNodes:S})]});return r.map(n=>t(n,0,0)[1])}function oUe(r){let e=[];const t=cK((s,l,c)=>PS(s),(s,l,c)=>{let f=Object.assign(Object.assign({},s),{levelCoord:l,stackDepth:c,stackForward:0});return e.push(f),f.stackForward=n(s.nextLevelNodes,l+s.thickness,c+1)+1});function n(s,l,c){let f=0;for(let h of s)f=Math.max(t(h,l,c),f);return f}return n(r,0,0),e}function cK(r,e){const t={};return(...n)=>{let s=r(...n);return s in t?t[s]:t[s]=e(...n)}}function L0e(r,e,t=null,n=0){let s=[];if(t)for(let l=0;l<r.length;l+=1){let c=r[l],f=t.computeDateTop(c.start,e),h=Math.max(f+(n||0),t.computeDateTop(c.end,e));s.push({start:Math.round(f),end:Math.round(h)})}return s}function sUe(r,e,t,n){let s=[],l=[];for(let m=0;m<r.length;m+=1){let b=e[m];b?s.push({index:m,thickness:1,span:b}):l.push(r[m])}let{segRects:c,hiddenGroups:f}=XMe(s,t,n),h=[];for(let m of c)h.push({seg:r[m.index],rect:m});for(let m of l)h.push({seg:m,rect:null});return{segPlacements:h,hiddenGroups:f}}const iUe=Fu({hour:"numeric",minute:"2-digit",meridiem:!1});class M0e extends ql{render(){return Qt(tK,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:iUe}))}}class aUe extends ql{constructor(){super(...arguments),this.sortEventSegs=li(D1e)}render(){let{props:e,context:t}=this,{options:n}=t,s=n.selectMirror,l=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||s&&e.dateSelectionSegs||[],c=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},f=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return Qt(rK,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},h=>Qt("div",{className:"fc-timegrid-col-frame"},Qt("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),Qt("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(f,c,!1,!1,!1)),Qt("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(l,{},!!e.eventDrag,!!e.eventResize,!!s,"mirror")),Qt("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),oK(n)&&Qt(h,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,t,n,s,l,c){let{props:f}=this;return f.forPrint?U0e(e,f):this.renderPositionedFgSegs(e,t,n,s,l,c)}renderPositionedFgSegs(e,t,n,s,l,c){let{eventMaxStack:f,eventShortHeight:h,eventOrderStrict:m,eventMinHeight:b}=this.context.options,{date:S,slatCoords:T,eventSelection:_,todayRange:F,nowDate:R}=this.props,N=n||s||l,L=L0e(e,S,T,b),{segPlacements:V,hiddenGroups:P}=sUe(e,L,m,f);return Qt(Vc,null,this.renderHiddenGroups(P,e),V.map(W=>{let{seg:le,rect:J}=W,q=le.eventRange.instance.instanceId,ce=N||!!(!t[q]&&J),fe=uK(J&&J.span),Ce=!N&&J?this.computeSegHStyle(J):{left:0,right:0},ie=!!J&&J.stackForward>0,ne=!!J&&J.span.end-J.span.start<h;return Qt("div",{className:"fc-timegrid-event-harness"+(ie?" fc-timegrid-event-harness-inset":""),key:c||q,style:Object.assign(Object.assign({visibility:ce?"":"hidden"},fe),Ce)},Qt(M0e,Object.assign({seg:le,isDragging:n,isResizing:s,isDateSelecting:l,isSelected:q===_,isShort:ne},C2(le,F,R))))}))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:s,todayRange:l,nowDate:c,eventSelection:f,eventDrag:h,eventResize:m}=this.props;return Qt(Vc,null,e.map(b=>{let S=uK(b.span),T=lUe(b.entries,t);return Qt(ZMe,{key:Jme(a0e(T)),hiddenSegs:T,top:S.top,bottom:S.bottom,extraDateSpan:n,dateProfile:s,todayRange:l,nowDate:c,eventSelection:f,eventDrag:h,eventResize:m})}))}renderFillSegs(e,t){let{props:n,context:s}=this,c=L0e(e,n.date,n.slatCoords,s.options.eventMinHeight).map((f,h)=>{let m=e[h];return Qt("div",{key:O1e(m.eventRange),className:"fc-timegrid-bg-harness",style:uK(f)},t==="bg-event"?Qt(n0e,Object.assign({seg:m},C2(m,n.todayRange,n.nowDate))):r0e(t))});return Qt(Vc,null,c)}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;return t?e.map((s,l)=>Qt(nK,{key:l,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(s.start,n)},isAxis:!1,date:n})):null}computeSegHStyle(e){let{isRtl:t,options:n}=this.context,s=n.slotEventOverlap,l=e.levelCoord,c=e.levelCoord+e.thickness,f,h;s&&(c=Math.min(1,l+(c-l)*2)),t?(f=1-c,h=l):(f=l,h=1-c);let m={zIndex:e.stackDepth+1,left:f*100+"%",right:h*100+"%"};return s&&!e.stackForward&&(m[t?"marginLeft":"marginRight"]=20),m}}function U0e(r,{todayRange:e,nowDate:t,eventSelection:n,eventDrag:s,eventResize:l}){let c=(s?s.affectedInstances:null)||(l?l.affectedInstances:null)||{};return Qt(Vc,null,r.map(f=>{let h=f.eventRange.instance.instanceId;return Qt("div",{key:h,style:{visibility:c[h]?"hidden":""}},Qt(M0e,Object.assign({seg:f,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:h===n,isShort:!1},C2(f,e,t))))}))}function uK(r){return r?{top:r.start,bottom:-r.end}:{top:"",bottom:""}}function lUe(r,e){return r.map(t=>e[t.index])}class cUe extends ql{constructor(){super(...arguments),this.splitFgEventSegs=li(X6),this.splitBgEventSegs=li(X6),this.splitBusinessHourSegs=li(X6),this.splitNowIndicatorSegs=li(X6),this.splitDateSelectionSegs=li(X6),this.splitEventDrag=li(R0e),this.splitEventResize=li(R0e),this.rootElRef=sh(),this.cellElRefs=new ly}render(){let{props:e,context:t}=this,n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),s=e.cells.length,l=this.splitFgEventSegs(e.fgEventSegs,s),c=this.splitBgEventSegs(e.bgEventSegs,s),f=this.splitBusinessHourSegs(e.businessHourSegs,s),h=this.splitNowIndicatorSegs(e.nowIndicatorSegs,s),m=this.splitDateSelectionSegs(e.dateSelectionSegs,s),b=this.splitEventDrag(e.eventDrag,s),S=this.splitEventResize(e.eventResize,s);return Qt("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Qt("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,Qt("tbody",{role:"presentation"},Qt("tr",{role:"row"},e.axis&&Qt("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},Qt("div",{className:"fc-timegrid-col-frame"},Qt("div",{className:"fc-timegrid-now-indicator-container"},typeof n=="number"&&Qt(nK,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:!0,date:e.nowDate})))),e.cells.map((T,_)=>Qt(aUe,{key:T.key,elRef:this.cellElRefs.createRef(T.key),dateProfile:e.dateProfile,date:T.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:T.extraRenderProps,extraDataAttrs:T.extraDataAttrs,extraClassNames:T.extraClassNames,extraDateSpan:T.extraDateSpan,fgEventSegs:l[_],bgEventSegs:c[_],businessHourSegs:f[_],nowIndicatorSegs:h[_],dateSelectionSegs:m[_],eventDrag:b[_],eventResize:S[_],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new nB(this.rootElRef.current,uUe(this.cellElRefs.currentMap,e.cells),!0,!1))}}function uUe(r,e){return e.map(t=>r[t.key])}class dUe extends Z1{constructor(){super(...arguments),this.processSlotOptions=li(fUe),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props,{slatCoords:n}=this.state;if(t&&n){if(e.time){let s=n.computeTimeTop(e.time);s=Math.ceil(s),s&&(s+=1),t(s)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return Qt("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},Qt(GMe,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Qt(cUe,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:n,options:s}=this.context,{colCoords:l}=this,{dateProfile:c}=this.props,{slatCoords:f}=this.state,{snapDuration:h,snapsPerSlot:m}=this.processSlotOptions(this.props.slotDuration,s.snapDuration),b=l.leftToIndex(e),S=f.positions.topToIndex(t);if(b!=null&&S!=null){let T=this.props.cells[b],_=f.positions.tops[S],F=f.positions.getHeight(S),R=(t-_)/F,N=Math.floor(R*m),L=S*m+N,V=this.props.cells[b].date,P=hG(c.slotMinTime,eRe(h,L)),W=n.add(V,P),le=n.add(W,h);return{dateProfile:c,dateSpan:Object.assign({range:{start:W,end:le},allDay:!1},T.extraDateSpan),dayEl:l.els[b],rect:{left:l.lefts[b],right:l.rights[b],top:_,bottom:_+F},layer:0}}return null}}function fUe(r,e){let t=e||r,n=pG(r,t);return n===null&&(t=r,n=1),{snapDuration:t,snapsPerSlot:n}}class AUe extends Z1e{sliceRange(e,t){let n=[];for(let s=0;s<t.length;s+=1){let l=NS(e,t[s]);l&&n.push({start:l.start,end:l.end,isStart:l.start.valueOf()===e.start.valueOf(),isEnd:l.end.valueOf()===e.end.valueOf(),col:s})}return n}}class hUe extends Z1{constructor(){super(...arguments),this.buildDayRanges=li(pUe),this.slicer=new AUe,this.timeColsRef=sh()}render(){let{props:e,context:t}=this,{dateProfile:n,dayTableModel:s}=e,{nowIndicator:l,nextDayThreshold:c}=t.options,f=this.buildDayRanges(s,n,t.dateEnv);return Qt(tB,{unit:l?"minute":"day"},(h,m)=>Qt(dUe,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,f),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:s.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:h,nowIndicatorSegs:l&&this.slicer.sliceNowDate(h,n,c,t,f),todayRange:m,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function pUe(r,e,t){let n=[];for(let s of r.headerDates)n.push({start:t.add(s,e.slotMinTime),end:t.add(s,e.slotMaxTime)});return n}const H0e=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function gUe(r,e,t,n,s){let l=new Date(0),c=r,f=Ya(0),h=t||mUe(n),m=[];for(;Pm(c)<Pm(e);){let b=s.add(l,c),S=pG(f,h)!==null;m.push({date:b,time:c,key:b.toISOString(),isoTimeStr:gRe(b),isLabeled:S}),c=hG(c,n),f=hG(f,n)}return m}function mUe(r){let e,t,n;for(e=H0e.length-1;e>=0;e-=1)if(t=Ya(H0e[e]),n=pG(t,r),n!==null&&n>1)return t;return r}class vUe extends zMe{constructor(){super(...arguments),this.buildTimeColsModel=li(yUe),this.buildSlatMetas=li(gUe)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context,{props:s}=this,{dateProfile:l}=s,c=this.buildTimeColsModel(l,n),f=this.allDaySplitter.splitProps(s),h=this.buildSlatMetas(l.slotMinTime,l.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:m}=e,b=!m,S=m,T=e.dayHeaders&&Qt(q1e,{dates:c.headerDates,dateProfile:l,datesRepDistinctDays:!0,renderIntro:b?this.renderHeadAxis:null}),_=e.allDaySlot!==!1&&(R=>Qt(N0e,Object.assign({},f.allDay,{dateProfile:l,dayTableModel:c,nextDayThreshold:e.nextDayThreshold,tableMinWidth:R.tableMinWidth,colGroupNode:R.tableColGroupNode,renderRowIntro:b?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:R.clientWidth,clientHeight:R.clientHeight,forPrint:s.forPrint},this.getAllDayMaxEventProps()))),F=R=>Qt(hUe,Object.assign({},f.timed,{dayTableModel:c,dateProfile:l,axis:b,slotDuration:e.slotDuration,slatMetas:h,forPrint:s.forPrint,tableColGroupNode:R.tableColGroupNode,tableMinWidth:R.tableMinWidth,clientWidth:R.clientWidth,clientHeight:R.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:R.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return S?this.renderHScrollLayout(T,_,F,c.colCnt,m,h,this.state.slatCoords):this.renderSimpleLayout(T,_,F)}}function yUe(r,e){let t=new G1e(r.renderRange,e);return new K1e(t,!1)}var bUe='.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-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.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}';lG(bUe);var wUe=cy({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:vUe,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});ZG.touchMouseIgnoreWait=500;let dK=0,JP=0,fK=!1;class V0e{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=t=>{if(!this.shouldIgnoreMouse()&&CUe(t)&&this.tryStart(t)){let n=this.createEventFromMouse(t,!0);this.emitter.trigger("pointerdown",n),this.initScrollWatch(n),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=t=>{let n=this.createEventFromMouse(t);this.recordCoords(n),this.emitter.trigger("pointermove",n)},this.handleMouseUp=t=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(t)),this.cleanup()},this.handleTouchStart=t=>{if(this.tryStart(t)){this.isTouchDragging=!0;let n=this.createEventFromTouch(t,!0);this.emitter.trigger("pointerdown",n),this.initScrollWatch(n);let s=t.target;this.shouldIgnoreMove||s.addEventListener("touchmove",this.handleTouchMove),s.addEventListener("touchend",this.handleTouchEnd),s.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=t=>{let n=this.createEventFromTouch(t);this.recordCoords(n),this.emitter.trigger("pointermove",n)},this.handleTouchEnd=t=>{if(this.isDragging){let n=t.target;n.removeEventListener("touchmove",this.handleTouchMove),n.removeEventListener("touchend",this.handleTouchEnd),n.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(t)),this.cleanup(),this.isTouchDragging=!1,SUe()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=t=>{if(!this.shouldIgnoreMove){let n=window.scrollX-this.prevScrollX+this.prevPageX,s=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:t,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:n,pageY:s,deltaX:n-this.origPageX,deltaY:s-this.origPageY})}},this.containerEl=e,this.emitter=new zP,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),EUe()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),_Ue()}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return t&&(!this.handleSelector||BA(n,this.handleSelector))?(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){fK=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?BA(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return dK||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(fK=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,s=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,s=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:s}}createEventFromTouch(e,t){let n=e.touches,s,l,c=0,f=0;return n&&n.length?(s=n[0].pageX,l=n[0].pageY):(s=e.pageX,l=e.pageY),t?(this.origPageX=s,this.origPageY=l):(c=s-this.origPageX,f=l-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:s,pageY:l,deltaX:c,deltaY:f}}}function CUe(r){return r.button===0&&!r.ctrlKey}function SUe(){dK+=1,setTimeout(()=>{dK-=1},ZG.touchMouseIgnoreWait)}function EUe(){JP+=1,JP===1&&window.addEventListener("touchmove",$0e,{passive:!1})}function _Ue(){JP-=1,JP||window.removeEventListener("touchmove",$0e,{passive:!1})}function $0e(r){fK&&r.preventDefault()}class BUe{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.scrollX,this.origScreenY=n-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=t-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,t){let n=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,s=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",q6(n,{left:s.left,top:s.top}),UOe(n,()=>{n.style.transition="",e()})}cleanup(){this.mirrorEl&&(dG(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&q6(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.pointerEvents="none",t.classList.add("fc-event-dragging"),q6(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t}}class Q0e extends jG{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.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(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class z0e extends Q0e{constructor(e,t){super(new cPe(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return aPe(this.scrollController.el)}}class xUe extends Q0e{constructor(e){super(new uPe,e)}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 j0e=typeof performance=="function"?performance.now:Date.now;class TUe{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 e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=j0e();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let n=e-window.scrollX,s=t-window.scrollY,l=this.pointerScreenY===null?0:s-this.pointerScreenY,c=this.pointerScreenX===null?0:n-this.pointerScreenX;l<0?this.everMovedUp=!0:l>0&&(this.everMovedDown=!0),c<0?this.everMovedLeft=!0:c>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=s,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(j0e()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e,{edgeThreshold:s}=this,l=s-e.distance,c=l*l/(s*s)*this.maxVelocity*t,f=1;switch(e.name){case"left":f=-1;case"right":n.setScrollLeft(n.getScrollLeft()+c*f);break;case"top":f=-1;case"bottom":n.setScrollTop(n.getScrollTop()+c*f);break}}computeBestEdge(e,t){let{edgeThreshold:n}=this,s=null,l=this.scrollCaches||[];for(let c of l){let f=c.clientRect,h=e-f.left,m=f.right-e,b=t-f.top,S=f.bottom-t;h>=0&&m>=0&&b>=0&&S>=0&&(b<=n&&this.everMovedUp&&c.canScrollUp()&&(!s||s.distance>b)&&(s={scrollCache:c,name:"top",distance:b}),S<=n&&this.everMovedDown&&c.canScrollDown()&&(!s||s.distance>S)&&(s={scrollCache:c,name:"bottom",distance:S}),h<=n&&this.everMovedLeft&&c.canScrollLeft()&&(!s||s.distance>h)&&(s={scrollCache:c,name:"left",distance:h}),m<=n&&this.everMovedRight&&c.canScrollRight()&&(!s||s.distance>m)&&(s={scrollCache:c,name:"right",distance:m}))}return s}buildCaches(e){return this.queryScrollEls(e).map(t=>t===window?new xUe(!1):new z0e(t,!1))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)typeof n=="object"?t.push(n):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}}class J6 extends APe{constructor(e,t){super(e),this.containerEl=e,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=s=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,HOe(document.body),$Oe(document.body),s.isTouch||s.origEvent.preventDefault(),this.emitter.trigger("pointerdown",s),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(s.subjectEl,s.pageX,s.pageY),this.startDelay(s),this.minDistance||this.handleDistanceSurpassed(s)))},this.onPointerMove=s=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",s),!this.isDistanceSurpassed){let l=this.minDistance,c,{deltaX:f,deltaY:h}=s;c=f*f+h*h,c>=l*l&&this.handleDistanceSurpassed(s)}this.isDragging&&(s.origEvent.type!=="scroll"&&(this.mirror.handleMove(s.pageX,s.pageY),this.autoScroller.handleMove(s.pageX,s.pageY)),this.emitter.trigger("dragmove",s))}},this.onPointerUp=s=>{this.isInteracting&&(this.isInteracting=!1,VOe(document.body),QOe(document.body),this.emitter.trigger("pointerup",s),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(s)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let n=this.pointer=new V0e(e);n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),t&&(n.selector=t),this.mirror=new BUe,this.autoScroller=new TUe}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class kUe{constructor(e){this.el=e,this.origRect=zG(e),this.scrollCaches=Q1e(e).map(t=>new z0e(t,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let n={left:e,top:t};for(let s of this.scrollCaches)if(!FUe(s.getEventTarget())&&!G7e(n,s.clientRect))return!1;return!0}}function FUe(r){let e=r.tagName;return e==="HTML"||e==="BODY"}class eL{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=n=>{let{dragging:s}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(n),this.initialHit||!this.requireInitial?(s.setIgnoreMove(!1),this.emitter.trigger("pointerdown",n)):s.setIgnoreMove(!0)},this.handleDragStart=n=>{this.emitter.trigger("dragstart",n),this.handleMove(n,!0)},this.handleDragMove=n=>{this.emitter.trigger("dragmove",n),this.handleMove(n)},this.handlePointerUp=n=>{this.releaseHits(),this.emitter.trigger("pointerup",n)},this.handleDragEnd=n=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,n),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",n)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new zP}processFirstCoord(e){let t={left:e.pageX,top:e.pageY},n=t,s=e.subjectEl,l;s instanceof HTMLElement&&(l=zG(s),n=K7e(n,l));let c=this.initialHit=this.queryHitForOffset(n.left,n.top);if(c){if(this.useSubjectCenter&&l){let f=H1e(l,c.rect);f&&(n=Z7e(f))}this.coordAdjust=Y7e(n,t)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(t||!tL(this.movingHit,n))&&(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=sy(this.droppableStore,e=>(e.component.prepareHits(),new kUe(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:s}=this,l=null;for(let c in n){let f=n[c].component,h=s[c];if(h&&h.isWithinClipping(e,t)){let m=h.computeLeft(),b=h.computeTop(),S=e-m,T=t-b,{origRect:_}=h,F=_.right-_.left,R=_.bottom-_.top;if(S>=0&&S<F&&T>=0&&T<R){let N=f.queryHit(S,T,F,R);N&&UP(N.dateProfile.activeRange,N.dateSpan.range)&&(this.disablePointCheck||h.el.contains(h.el.getRootNode().elementFromPoint(S+m-window.scrollX,T+b-window.scrollY)))&&(!l||N.layer>l.layer)&&(N.componentId=c,N.context=f.context,N.rect.left+=m,N.rect.right+=m,N.rect.top+=b,N.rect.bottom+=b,l=N)}}}return l}}function tL(r,e){return!r&&!e?!0:!!r!=!!e?!1:L7e(r.dateSpan,e.dateSpan)}function W0e(r,e){let t={};for(let n of e.pluginHooks.datePointTransforms)Object.assign(t,n(r,e));return Object.assign(t,IUe(r,e.dateEnv)),t}function IUe(r,e){return{date:e.toDate(r.range.start),dateStr:e.formatIso(r.range.start,{omitTime:r.allDay}),allDay:r.allDay}}class DUe extends eB{constructor(e){super(e),this.handlePointerDown=n=>{let{dragging:s}=this,l=n.origEvent.target;s.setIgnoreMove(!this.component.isValidDateDownEl(l))},this.handleDragEnd=n=>{let{component:s}=this,{pointer:l}=this.dragging;if(!l.wasTouchScroll){let{initialHit:c,finalHit:f}=this.hitDragging;if(c&&f&&tL(c,f)){let{context:h}=s,m=Object.assign(Object.assign({},W0e(c.dateSpan,h)),{dayEl:c.dayEl,jsEvent:n.origEvent,view:h.viewApi||h.calendarApi.view});h.emitter.trigger("dateClick",m)}}},this.dragging=new J6(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new eL(this.dragging,MG(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class NUe extends eB{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=c=>{let{component:f,dragging:h}=this,{options:m}=f.context,b=m.selectable&&f.isValidDateDownEl(c.origEvent.target);h.setIgnoreMove(!b),h.delay=c.isTouch?OUe(f):null},this.handleDragStart=c=>{this.component.context.calendarApi.unselect(c)},this.handleHitUpdate=(c,f)=>{let{context:h}=this.component,m=null,b=!1;if(c){let S=this.hitDragging.initialHit;c.componentId===S.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(S,c)||(m=RUe(S,c,h.pluginHooks.dateSelectionTransformers)),(!m||!yPe(m,c.dateProfile,h))&&(b=!0,m=null)}m?h.dispatch({type:"SELECT_DATES",selection:m}):f||h.dispatch({type:"UNSELECT_DATES"}),b?fG():AG(),f||(this.dragSelection=m)},this.handlePointerUp=c=>{this.dragSelection&&(B1e(this.dragSelection,c,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,s=this.dragging=new J6(e.el);s.touchScrollAllowed=!1,s.minDistance=n.selectMinDistance||0,s.autoScroller.isEnabled=n.dragScroll;let l=this.hitDragging=new eL(this.dragging,MG(e));l.emitter.on("pointerdown",this.handlePointerDown),l.emitter.on("dragstart",this.handleDragStart),l.emitter.on("hitupdate",this.handleHitUpdate),l.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function OUe(r){let{options:e}=r.context,t=e.selectLongPressDelay;return t==null&&(t=e.longPressDelay),t}function RUe(r,e,t){let n=r.dateSpan,s=e.dateSpan,l=[n.range.start,n.range.end,s.range.start,s.range.end];l.sort(GOe);let c={};for(let f of t){let h=f(r,e);if(h===!1)return null;h&&Object.assign(c,h)}return c.range={start:l[0],end:l[3]},c.allDay=n.allDay,c}class e8 extends eB{constructor(e){super(e),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=c=>{let f=c.origEvent.target,{component:h,dragging:m}=this,{mirror:b}=m,{options:S}=h.context,T=h.context;this.subjectEl=c.subjectEl;let _=this.subjectSeg=J_(c.subjectEl),R=(this.eventRange=_.eventRange).instance.instanceId;this.relevantEvents=NG(T.getCurrentData().eventStore,R),m.minDistance=c.isTouch?0:S.eventDragMinDistance,m.delay=c.isTouch&&R!==h.props.eventSelection?LUe(h):null,S.fixedMirrorParent?b.parentNode=S.fixedMirrorParent:b.parentNode=BA(f,".fc"),b.revertDuration=S.dragRevertDuration;let N=h.isValidSegDownEl(f)&&!BA(f,".fc-event-resizer");m.setIgnoreMove(!N),this.isDragging=N&&c.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=c=>{let f=this.component.context,h=this.eventRange,m=h.instance.instanceId;c.isTouch?m!==this.component.props.eventSelection&&f.dispatch({type:"SELECT_EVENT",eventInstanceId:m}):f.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(f.calendarApi.unselect(c),f.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new hu(f,h.def,h.instance),jsEvent:c.origEvent,view:f.viewApi}))},this.handleHitUpdate=(c,f)=>{if(!this.isDragging)return;let h=this.relevantEvents,m=this.hitDragging.initialHit,b=this.component.context,S=null,T=null,_=null,F=!1,R={affectedEvents:h,mutatedEvents:jp(),isEvent:!0};if(c){S=c.context;let N=S.options;b===S||N.editable&&N.droppable?(T=PUe(m,c,this.eventRange.instance.range.start,S.getCurrentData().pluginHooks.eventDragMutationMassagers),T&&(_=PG(h,S.getCurrentData().eventUiBases,T,S),R.mutatedEvents=_,Y1e(R,c.dateProfile,S)||(F=!0,T=null,_=null,R.mutatedEvents=jp()))):S=null}this.displayDrag(S,R),F?fG():AG(),f||(b===S&&tL(m,c)&&(T=null),this.dragging.setMirrorNeedsRevert(!T),this.dragging.setMirrorIsVisible(!c||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=S,this.validMutation=T,this.mutatedRelevantEvents=_)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=c=>{if(this.isDragging){let f=this.component.context,h=f.viewApi,{receivingContext:m,validMutation:b}=this,S=this.eventRange.def,T=this.eventRange.instance,_=new hu(f,S,T),F=this.relevantEvents,R=this.mutatedRelevantEvents,{finalHit:N}=this.hitDragging;if(this.clearDrag(),f.emitter.trigger("eventDragStop",{el:this.subjectEl,event:_,jsEvent:c.origEvent,view:h}),b){if(m===f){let L=new hu(f,R.defs[S.defId],T?R.instances[T.instanceId]:null);f.dispatch({type:"MERGE_EVENTS",eventStore:R});let V={oldEvent:_,event:L,relatedEvents:RS(R,f,T),revert(){f.dispatch({type:"MERGE_EVENTS",eventStore:F})}},P={};for(let W of f.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(P,W(b,f));f.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},V),P),{el:c.subjectEl,delta:b.datesDelta,jsEvent:c.origEvent,view:h})),f.emitter.trigger("eventChange",V)}else if(m){let L={event:_,relatedEvents:RS(F,f,T),revert(){f.dispatch({type:"MERGE_EVENTS",eventStore:F})}};f.emitter.trigger("eventLeave",Object.assign(Object.assign({},L),{draggedEl:c.subjectEl,view:h})),f.dispatch({type:"REMOVE_EVENTS",eventStore:F}),f.emitter.trigger("eventRemove",L);let V=R.defs[S.defId],P=R.instances[T.instanceId],W=new hu(m,V,P);m.dispatch({type:"MERGE_EVENTS",eventStore:R});let le={event:W,relatedEvents:RS(R,m,P),revert(){m.dispatch({type:"REMOVE_EVENTS",eventStore:R})}};m.emitter.trigger("eventAdd",le),c.isTouch&&m.dispatch({type:"SELECT_EVENT",eventInstanceId:T.instanceId}),m.emitter.trigger("drop",Object.assign(Object.assign({},W0e(N.dateSpan,m)),{draggedEl:c.subjectEl,jsEvent:c.origEvent,view:N.context.viewApi})),m.emitter.trigger("eventReceive",Object.assign(Object.assign({},le),{draggedEl:c.subjectEl,view:N.context.viewApi}))}}else f.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:n}=t.context,s=this.dragging=new J6(e.el);s.pointer.selector=e8.SELECTOR,s.touchScrollAllowed=!1,s.autoScroller.isEnabled=n.dragScroll;let l=this.hitDragging=new eL(this.dragging,UG);l.useSubjectCenter=e.useEventCenter,l.emitter.on("pointerdown",this.handlePointerDown),l.emitter.on("dragstart",this.handleDragStart),l.emitter.on("hitupdate",this.handleHitUpdate),l.emitter.on("pointerup",this.handlePointerUp),l.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,s=this.receivingContext;s&&s!==e&&(s===n?s.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:jp(),isEvent:!0}}):s.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.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}}e8.SELECTOR=".fc-event-draggable, .fc-event-resizable";function PUe(r,e,t,n){let s=r.dateSpan,l=e.dateSpan,c=s.range.start,f=l.range.start,h={};s.allDay!==l.allDay&&(h.allDay=l.allDay,h.hasEnd=e.context.options.allDayMaintainDuration,l.allDay?c=$c(t):c=t);let m=Y_(c,f,r.context.dateEnv,r.componentId===e.componentId?r.largeUnit:null);m.milliseconds&&(h.allDay=!1);let b={datesDelta:m,standardProps:h};for(let S of n)S(b,r,e);return b}function LUe(r){let{options:e}=r.context,t=e.eventLongPressDelay;return t==null&&(t=e.longPressDelay),t}class MUe extends eB{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=l=>{let{component:c}=this,f=this.querySegEl(l),h=J_(f),m=this.eventRange=h.eventRange;this.dragging.minDistance=c.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(l.origEvent.target)||l.isTouch&&this.component.props.eventSelection!==m.instance.instanceId)},this.handleDragStart=l=>{let{context:c}=this.component,f=this.eventRange;this.relevantEvents=NG(c.getCurrentData().eventStore,this.eventRange.instance.instanceId);let h=this.querySegEl(l);this.draggingSegEl=h,this.draggingSeg=J_(h),c.calendarApi.unselect(),c.emitter.trigger("eventResizeStart",{el:h,event:new hu(c,f.def,f.instance),jsEvent:l.origEvent,view:c.viewApi})},this.handleHitUpdate=(l,c,f)=>{let{context:h}=this.component,m=this.relevantEvents,b=this.hitDragging.initialHit,S=this.eventRange.instance,T=null,_=null,F=!1,R={affectedEvents:m,mutatedEvents:jp(),isEvent:!0};l&&(l.componentId===b.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(b,l)||(T=UUe(b,l,f.subjectEl.classList.contains("fc-event-resizer-start"),S.range))),T&&(_=PG(m,h.getCurrentData().eventUiBases,T,h),R.mutatedEvents=_,Y1e(R,l.dateProfile,h)||(F=!0,T=null,_=null,R.mutatedEvents=null)),_?h.dispatch({type:"SET_EVENT_RESIZE",state:R}):h.dispatch({type:"UNSET_EVENT_RESIZE"}),F?fG():AG(),c||(T&&tL(b,l)&&(T=null),this.validMutation=T,this.mutatedRelevantEvents=_)},this.handleDragEnd=l=>{let{context:c}=this.component,f=this.eventRange.def,h=this.eventRange.instance,m=new hu(c,f,h),b=this.relevantEvents,S=this.mutatedRelevantEvents;if(c.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:m,jsEvent:l.origEvent,view:c.viewApi}),this.validMutation){let T=new hu(c,S.defs[f.defId],h?S.instances[h.instanceId]:null);c.dispatch({type:"MERGE_EVENTS",eventStore:S});let _={oldEvent:m,event:T,relatedEvents:RS(S,c,h),revert(){c.dispatch({type:"MERGE_EVENTS",eventStore:b})}};c.emitter.trigger("eventResize",Object.assign(Object.assign({},_),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||Ya(0),endDelta:this.validMutation.endDelta||Ya(0),jsEvent:l.origEvent,view:c.viewApi})),c.emitter.trigger("eventChange",_)}else c.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new J6(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let s=this.hitDragging=new eL(this.dragging,MG(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return BA(e.subjectEl,".fc-event")}}function UUe(r,e,t,n){let s=r.context.dateEnv,l=r.dateSpan.range.start,c=e.dateSpan.range.start,f=Y_(l,c,s,r.largeUnit);if(t){if(s.add(n.start,f)<n.end)return{startDelta:f}}else if(s.add(n.end,f)>n.start)return{endDelta:f};return null}class HUe{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=n=>{n.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=n=>{let s=this.context.options.unselectCancel,l=Hme(n.origEvent);this.matchesCancel=!!BA(l,s),this.matchesEvent=!!BA(l,e8.SELECTOR)},this.onDocumentPointerUp=n=>{let{context:s}=this,{documentPointer:l}=this,c=s.getCurrentData();if(!l.wasTouchScroll){if(c.dateSelection&&!this.isRecentPointerDateSelect){let f=s.options.unselectAuto;f&&(!f||!this.matchesCancel)&&s.calendarApi.unselect(n)}c.eventSelection&&!this.matchesEvent&&s.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new V0e(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const VUe={fixedMirrorParent:Hn},$Ue={dateClick:Hn,eventDragStart:Hn,eventDragStop:Hn,eventDrop:Hn,eventResizeStart:Hn,eventResizeStop:Hn,eventResize:Hn,drop:Hn,eventReceive:Hn,eventLeave:Hn};ZG.dataAttrPrefix="";var QUe=cy({name:"@fullcalendar/interaction",componentInteractions:[DUe,NUe,e8,MUe],calendarInteractions:[HUe],elementDraggingImpl:J6,optionRefiners:VUe,listenerRefiners:$Ue});let zUe=0,jUe=new Date().toISOString().replace(/T.*$/,"");const WUe=[{id:qUe(),title:"All-day event",start:jUe}];function qUe(){return String(zUe++)}const GUe={class:"ik-calendar-com"},KUe={class:"ik-calendar-com-main"},ZUe={class:"title-line"},YUe=["title","onClick"],XUe={key:0,style:{width:"90%"}},JUe={key:1,style:{width:"90%"}},e9e={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},t9e={key:0,style:{"margin-left":"2%"}},n9e={key:1},r9e={key:0,class:"placeholder"},o9e={class:"info"},s9e={class:"dialog-footer"},i9e={name:"IkApprovalProcess"},a9e=g.defineComponent({...i9e,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(r,{emit:e}){const t=e,n=R=>{if(f.selectInfo=R,l(),R.view.type=="dayGridMonth"){let L=R.end.getTime()-864e5;f.timeType="month",f.form.startDate=ts.ikDate.toYMD(R.start),f.form.endDate=ts.ikDate.toYMD(new Date(L))}else R.view.type=="timeGridWeek"?(f.timeType="week",f.form.startDate=ts.ikDate.toYMDHM(R.start),f.form.endDate=ts.ikDate.toYMDHM(R.end)):R.view.type=="timeGridDay"&&(f.timeType="day",f.form.startDate=ts.ikDate.toYMD(R.start),f.form.endDate=ts.ikDate.toYMD(R.start),f.form.startTime=ts.ikDate.toDateTime(R.start),f.form.endTime=ts.ikDate.toDateTime(R.end));R.view.calendar.unselect(),g.nextTick(()=>{f.title="新建日程",f.dialogVisible=!0})},s=(R,N)=>{f.title="修改日程",f.dialogVisible=!0},l=R=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:R||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(V=>{V.json().then(P=>{const{success:W,data:le}=P;if(!W)return;const{departments:J,users:q,roles:ce,posts:fe}=le;f.depList=J,f.userList=q,f.roleList=ce,f.postList=fe})}).catch(V=>{console.info("error: ",V)})},c=R=>{f.currentEvents=R},f=g.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:lOe,plugins:[LMe,wUe,QUe],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:WUe,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:n,eventClick:R=>s(),eventsSet:c},currentEvents:[]}),h=()=>{var R;(R=f.formRef)==null||R.resetFields(),f.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},f.dialogVisible=!1},m=async()=>{var L,V,P,W;let R=(V=(L=f.selectInfo)==null?void 0:L.view)==null?void 0:V.calendar,N={id:new Date().getTime(),title:f.form.title,start:(P=f.selectInfo)==null?void 0:P.startStr,end:(W=f.selectInfo)==null?void 0:W.endStr,allDay:f.allDay};await R.addEvent(N),t("success",N),h()},b=R=>{mn.ElMessageBox.confirm(`你确定删除事件'${R.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{mn.ElMessage({type:"success",message:"删除成功"}),R.event.remove(),t("delete",R.event)})},S=R=>{f.handList=R.list,f.form.personList=R.list},T=()=>{f.isShow=!0},_=R=>{l(R==null?void 0:R.elementId)},F=R=>{f.form.personList.splice(R,1),f.handList=f.form.personList};return(R,N)=>{const L=g.resolveComponent("el-checkbox");return g.openBlock(),g.createElementBlock("div",GUe,[g.createElementVNode("div",KUe,[g.createVNode(g.unref(iMe),{class:"ik-calendar-com-calendar",options:f.calendarOptions},{eventContent:g.withCtx(V=>[g.createElementVNode("div",ZUe,[g.createElementVNode("span",{class:"title",title:V.event.title,onClick:g.withModifiers(P=>s(),["stop"])},g.toDisplayString(V.event.title),9,YUe),g.createVNode(g.unref(mn.ElIcon),{size:16,onClick:g.withModifiers(P=>b(V),["stop"])},{default:g.withCtx(()=>[g.createVNode(g.unref(KIe))]),_:1},8,["onClick"])])]),_:1},8,["options"])]),g.createCommentVNode(" 新建日程 "),g.createVNode(g.unref(mn.ElDialog),{modelValue:f.dialogVisible,"onUpdate:modelValue":N[12]||(N[12]=V=>f.dialogVisible=V),title:f.title,width:"30%",ref:"formRef",onClose:h},{footer:g.withCtx(()=>[g.createElementVNode("span",s9e,[g.createVNode(g.unref(mn.ElButton),{onClick:h},{default:g.withCtx(()=>[...N[20]||(N[20]=[g.createTextVNode("取消",-1)])]),_:1}),g.createVNode(g.unref(mn.ElButton),{type:"primary",onClick:m},{default:g.withCtx(()=>[...N[21]||(N[21]=[g.createTextVNode("确定",-1)])]),_:1})])]),default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElForm),{model:f.form},{default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElFormItem),null,{default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElIcon),{class:"icon"},{default:g.withCtx(()=>[g.createVNode(g.unref($Ie))]),_:1}),g.createVNode(g.unref(mn.ElInput),{modelValue:f.form.title,"onUpdate:modelValue":N[0]||(N[0]=V=>f.form.title=V),placeholder:`添加${f.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),g.createVNode(g.unref(mn.ElSelect),{modelValue:f.form.type,"onUpdate:modelValue":N[1]||(N[1]=V=>f.form.type=V),style:{width:"20%"}},{default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElOption),{label:"会议",value:1}),g.createVNode(g.unref(mn.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),g.createVNode(g.unref(mn.ElFormItem),null,{default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElIcon),{class:"icon"},{default:g.withCtx(()=>[g.createVNode(g.unref(zIe))]),_:1}),f.timeType=="month"?(g.openBlock(),g.createElementBlock("div",XUe,[g.createVNode(g.unref(mn.ElDatePicker),{modelValue:f.form.startDate,"onUpdate:modelValue":N[2]||(N[2]=V=>f.form.startDate=V),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),N[15]||(N[15]=g.createElementVNode("span",{class:"to"},"至",-1)),g.createVNode(g.unref(mn.ElDatePicker),{modelValue:f.form.endDate,"onUpdate:modelValue":N[3]||(N[3]=V=>f.form.endDate=V),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):g.createCommentVNode("v-if",!0),f.timeType=="week"?(g.openBlock(),g.createElementBlock("div",JUe,[g.createVNode(g.unref(mn.ElDatePicker),{modelValue:f.form.startDate,"onUpdate:modelValue":N[4]||(N[4]=V=>f.form.startDate=V),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),N[16]||(N[16]=g.createElementVNode("span",{class:"to"},"至",-1)),g.createVNode(g.unref(mn.ElDatePicker),{modelValue:f.form.endDate,"onUpdate:modelValue":N[5]||(N[5]=V=>f.form.endDate=V),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):g.createCommentVNode("v-if",!0),f.timeType=="day"?(g.openBlock(),g.createElementBlock("div",e9e,[g.createVNode(g.unref(mn.ElDatePicker),{modelValue:f.form.startDate,"onUpdate:modelValue":N[6]||(N[6]=V=>f.form.startDate=V),type:"date",placeholder:"开始日期",style:g.normalizeStyle({width:f.allDay?"45%":"90%"})},null,8,["modelValue","style"]),f.allDay?(g.openBlock(),g.createElementBlock("div",n9e,[N[18]||(N[18]=g.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),g.createVNode(g.unref(mn.ElDatePicker),{modelValue:f.form.endDate,"onUpdate:modelValue":N[9]||(N[9]=V=>f.form.endDate=V),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(g.openBlock(),g.createElementBlock("div",t9e,[g.createVNode(g.unref(mn.ElTimePicker),{modelValue:f.form.startTime,"onUpdate:modelValue":N[7]||(N[7]=V=>f.form.startTime=V),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),N[17]||(N[17]=g.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),g.createVNode(g.unref(mn.ElTimePicker),{modelValue:f.form.endTime,"onUpdate:modelValue":N[8]||(N[8]=V=>f.form.endTime=V),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),g.createVNode(L,{modelValue:f.allDay,"onUpdate:modelValue":N[10]||(N[10]=V=>f.allDay=V),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):g.createCommentVNode("v-if",!0)]),_:1}),g.createVNode(g.unref(mn.ElFormItem),null,{default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElIcon),{class:"icon"},{default:g.withCtx(()=>[g.createVNode(g.unref(yDe))]),_:1}),g.createElementVNode("div",{class:"personBlock",onClick:g.withModifiers(T,["stop"])},[f.form.personList.length?(g.openBlock(!0),g.createElementBlock(g.Fragment,{key:1},g.renderList(f.form.personList,(V,P)=>(g.openBlock(),g.createElementBlock("div",{key:P,class:"nameBlock"},[g.createElementVNode("div",o9e,[N[19]||(N[19]=g.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)),g.createElementVNode("div",null,g.toDisplayString(V.elementName),1)]),g.createVNode(g.unref(mn.ElIcon),{class:"close",onClick:g.withModifiers(W=>F(P),["stop"])},{default:g.withCtx(()=>[g.createVNode(g.unref(vP))]),_:1},8,["onClick"])]))),128)):(g.openBlock(),g.createElementBlock("span",r9e,"添加参与人"))])]),_:1}),g.createVNode(g.unref(mn.ElFormItem),null,{default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElIcon),{class:"icon"},{default:g.withCtx(()=>[g.createVNode(g.unref(rDe))]),_:1}),g.createVNode(g.unref(mn.ElInput),{modelValue:f.form.location,"onUpdate:modelValue":N[11]||(N[11]=V=>f.form.location=V),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),g.createCommentVNode(" 选人组件 "),g.createVNode(g.unref(C8),{modelValue:f.handList,"onUpdate:modelValue":N[13]||(N[13]=V=>f.handList=V),show:f.isShow,"onUpdate:show":N[14]||(N[14]=V=>f.isShow=V),onOk:S,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":f.depList,"user-list":f.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:_},null,8,["modelValue","show","dep-list","user-list"])])}}}),l9e=xi(gi(a9e,[["__scopeId","data-v-2e96123d"]])),c9e=["onClick"],u9e={class:"flex align-center",style:{width:"100%"}},d9e={class:"fileName simple"},f9e={key:0,class:"size",style:{"padding-right":"20px","white-space":"nowrap"}},A9e=["onClick"],h9e={class:"file-list"},p9e={class:"fileName simple"},g9e={key:0,class:"size",style:{"padding-right":"20px","white-space":"nowrap"}},m9e=["onClick"],v9e={class:"text"},y9e={class:"fileName"},b9e={class:"size"},nL=xi(g.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!0},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>null},jwtToken:{type:String,default:""},simple:{type:Boolean,default:!1},showType:{type:String,default:"default"},showDownloadBtn:{type:Boolean,default:!0},showPreviewBtn:{type:Boolean,default:!0},showFileSize:{type:Boolean,default:!1},customDownload:{type:Boolean,default:!1}},emits:["handPreview","download","close"],setup(r,{emit:e}){const t=r,n=g.computed(()=>t.simple?"simple":t.showType),{cLoadUrl:s,cOnlyofficeConfig:l,cOnlyofficePreviewType:c}=q1(t),f=e,h=g.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...t.field})),m=g.ref({}),b=g.ref(!1),S=N=>{var L,V;m.value={...N,name:N.name,url:oy(s.value,N[h.value.url]||((V=(L=N==null?void 0:N.response)==null?void 0:L.data)==null?void 0:V.id)||(N==null?void 0:N.id))},t.isOnlyOfficePreview&&(b.value=!0),f("handPreview",m.value)},T=N=>{t.customDownload?f("download",N):ts.ikFile.downloadFile(oy(s.value,N[h.value.url]||N.attachmentId||N.id),N[h.value.name]||N.attachmentName)},_=N=>{f("close",N)},F=g.computed(()=>ts.paramType.isNumber(t.width)?`${t.width}px`:t.width),R=g.computed(()=>t.list.map(N=>{var V;const L=N[h.value.name]||N.attachmentName;return{...N,name:L,size:N[h.value.size]||(N==null?void 0:N.fileSize)||(N==null?void 0:N.attachmentSize),suffix:N[h.value.suffix]||(N==null?void 0:N.attachmentSuffix)||((V=L.split("."))==null?void 0:V.at(-1))}}));return(N,L)=>{var V,P,W;return g.openBlock(),g.createElementBlock(g.Fragment,null,[(V=r.list)!=null&&V.length?(g.openBlock(),g.createElementBlock(g.Fragment,{key:0},[g.createCommentVNode(" 简单模式 "),n.value==="simple"?(g.openBlock(!0),g.createElementBlock(g.Fragment,{key:0},g.renderList(R.value,(le,J)=>(g.openBlock(),g.createElementBlock("div",{class:"iking-privew-annex simple",key:J,onClick:q=>S(le),style:g.normalizeStyle({width:F.value})},[g.createElementVNode("div",u9e,[g.createElementVNode("div",d9e,g.toDisplayString(le.name),1),r.showFileSize?(g.openBlock(),g.createElementBlock("div",f9e,g.toDisplayString(le.size?`(${g.unref(g2)(le.size)})`:""),1)):g.createCommentVNode("v-if",!0)]),g.createElementVNode("div",{class:g.normalizeClass(["flex flex-center",{"hover-show":r.iconHoverShow}])},[r.showDownloadBtn?(g.openBlock(),g.createBlock(g.unref(Ls),{key:0,name:"iksvg_daochu",onClick:g.withModifiers(q=>T(le),["stop"]),size:20},null,8,["onClick"])):g.createCommentVNode("v-if",!0),g.unref(c).includes(le.suffix)&&r.showPreviewBtn?(g.openBlock(),g.createBlock(g.unref(Ls),{key:1,name:"iksvg_yulan",size:20,onClick:g.withModifiers(q=>S(le),["stop"])},null,8,["onClick"])):g.createCommentVNode("v-if",!0),g.renderSlot(N.$slots,"operation",{data:{...le,findex:J}})],2)],12,c9e))),128)):n.value==="simple-icon"?(g.openBlock(),g.createElementBlock(g.Fragment,{key:1},[g.createCommentVNode(" 简单图标模式 "),(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(R.value,(le,J)=>(g.openBlock(),g.createElementBlock("div",{class:"iking-privew-annex simple-icon",key:J,onClick:q=>S(le),style:g.normalizeStyle({width:F.value})},[g.createElementVNode("div",h9e,[g.createCommentVNode(" 若为默认40,则simple-icon设置为20,否则设置为iconSize "),g.createVNode(g.unref(q_),{file:le,style:g.normalizeStyle({height:`${r.iconSize===40?20:r.iconSize}px`,marginRight:"10px"}),class:"ikui-w-auto",fields:h.value},null,8,["file","style","fields"]),g.createElementVNode("div",{class:"flex",style:g.normalizeStyle({width:`calc(100% - ${r.iconSize+10}px)`})},[g.createElementVNode("p",p9e,g.toDisplayString(le.name),1),r.showFileSize?(g.openBlock(),g.createElementBlock("p",g9e,g.toDisplayString(le.size?`(${g.unref(g2)(le.size)})`:""),1)):g.createCommentVNode("v-if",!0)],4)]),r.showDownloadBtn?(g.openBlock(),g.createBlock(g.unref(Ls),{key:0,name:"iksvg_daochu",size:20,title:"下载",onClick:g.withModifiers(q=>T(le),["stop"])},null,8,["onClick"])):g.createCommentVNode("v-if",!0),g.unref(c).includes(le.suffix)&&r.showPreviewBtn?(g.openBlock(),g.createBlock(g.unref(Ls),{key:1,name:"iksvg_yulan",size:20,onClick:g.withModifiers(q=>S(le),["stop"]),title:"预览"},null,8,["onClick"])):g.createCommentVNode("v-if",!0)],12,A9e))),128))],64)):(g.openBlock(),g.createElementBlock(g.Fragment,{key:2},[g.createCommentVNode(" 默认模式 "),(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(R.value,(le,J)=>{var q;return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["iking-privew-annex",{"is-bg":r.showBg}]),key:J,style:g.normalizeStyle({marginBottom:J==((q=r.list)==null?void 0:q.length)-1?"0":"10px",width:F.value})},[g.createElementVNode("div",{class:"file-card",onClick:ce=>S(le)},[g.createVNode(g.unref(q_),{file:le,style:g.normalizeStyle({height:`${r.iconSize}px`}),class:"ikui-w-auto",fields:h.value},null,8,["file","style","fields"]),g.createElementVNode("div",v9e,[g.createElementVNode("div",y9e,g.toDisplayString(le.name),1),g.createElementVNode("div",b9e,g.toDisplayString(g.unref(g2)(le.size)),1)]),g.createElementVNode("div",{class:g.normalizeClass(["flex flex-center",{"hover-show":r.iconHoverShow}])},[r.showDownloadBtn?(g.openBlock(),g.createBlock(g.unref(Ls),{key:0,name:"iksvg_daochu",onClick:g.withModifiers(ce=>T(le),["stop"]),bg:r.showBg,size:r.showBg?"default":20,title:"下载"},null,8,["onClick","bg","size"])):g.createCommentVNode("v-if",!0),g.unref(c).includes(le.suffix)&&r.showPreviewBtn?(g.openBlock(),g.createBlock(g.unref(Ls),{key:1,name:"iksvg_yulan",bg:r.showBg,size:r.showBg?"default":20,title:"预览",onClick:g.withModifiers(ce=>S(le),["stop"])},null,8,["bg","size","onClick"])):g.createCommentVNode("v-if",!0),g.renderSlot(N.$slots,"operation",{data:{...le,findex:J}})],2)],8,m9e)],6)}),128))],64))],64)):g.createCommentVNode("v-if",!0),g.createVNode(g.unref(AK),{onClose:_,show:b.value,"onUpdate:show":L[0]||(L[0]=le=>b.value=le),loadUrl:g.unref(s),file:m.value,onlyofficeServer:((P=g.unref(l))==null?void 0:P.serverUrl)||r.onlyofficeServer,onlyOfficeConfig:g.unref(l),onlyOfficeAccept:((W=g.unref(l))==null?void 0:W.accept)||r.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}})),w9e={class:"head-logo"},C9e=["src"],S9e={class:"text-preview-container"},E9e={class:"text-preview-header"},_9e={class:"file-name"},B9e={class:"text-preview-content"},AK=xi(g.defineComponent({__name:"IkPreviewFileDialog",props:g.mergeModels({file:{type:Object,default:()=>[]},loadUrl:{type:String,default:""},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},field:{type:Object,default:()=>({})}},{show:{default:!1},showModifiers:{}}),emits:g.mergeModels(["close"],["update:show"]),setup(r,{emit:e}){const t=r,n=e,s=g.useModel(r,"show"),l=g.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...t.field})),c=g.ref(null),f=g.ref(null),h=g.ref(""),m=g.reactive({image:!1,office:!1,video:!1,text:!1}),b=F=>{var R,N,L,V,P,W,le;try{const J=((R=F==null?void 0:F.response)==null?void 0:R.data)||F,q=J[l.value.url]||(J==null?void 0:J.id)||J.attachmentId,ce=(N=J[l.value.suffix]||J.attachmentSuffix)==null?void 0:N.toLowerCase(),fe=J[l.value.name]||(J==null?void 0:J.attachmentName)||(J==null?void 0:J.originName);if(f.value={...F,name:F[l.value.name],url:oy(t.loadUrl,q)},F&&hc(F,l.value)==="image"){m.image=!0;return}else if(F&&hc(F,l.value)==="video"){m.video=!0;return}else if(F&&hc(F,l.value)==="txt"){m.text=!0,S(f.value.url);return}else if((((L=t.onlyOfficeConfig)==null?void 0:L.accept)||t.onlyOfficeAccept).includes(ce)){m.office=!0,c.value={...t.onlyOfficeConfig,editorConfig:{...((V=t.onlyOfficeConfig)==null?void 0:V.editorConfig)||{},customization:{...((W=(P=t.onlyOfficeConfig)==null?void 0:P.editorConfig)==null?void 0:W.customization)||{},review:{reviewDisplay:"final"}}},document:{key:(F==null?void 0:F.key)||ts.buildUUID(),title:fe,url:oy(t.loadUrl,q),fileType:ce,...((le=t.onlyOfficeConfig)==null?void 0:le.document)||{}},documentType:CIe(ce)},console.log("config",c.value);return}}catch(J){console.info("预览错误: ",J)}};g.watch([s,t.file],([F,R])=>{F&&g.nextTick(()=>{b(t.file)})});const S=async F=>{try{const N=await(await fetch(F)).text();h.value=N}catch(R){console.error("获取文本内容失败:",R),h.value="无法加载文本内容"}},T=()=>{n("close",{file:(f==null?void 0:f.value)||null,config:(c==null?void 0:c.value)||null}),s.value=!1,m.office=!1,m.image=!1,m.video=!1,m.text=!1,f.value=null,h.value=""},_=()=>{var F,R;(R=(F=c.value.editorConfig.customization)==null?void 0:F.logo)!=null&&R.link&&window.open(c.value.editorConfig.customization.logo.link)};return(F,R)=>{var N,L,V;return s.value?(g.openBlock(),g.createElementBlock(g.Fragment,{key:0},[(N=f.value)!=null&&N.url&&m.image?(g.openBlock(),g.createBlock(g.unref(sJ),{key:0,onClose:R[0]||(R[0]=P=>T()),ref:"previewImgRef","url-list":[(L=f.value)==null?void 0:L.url],teleported:"","z-index":9999},null,8,["url-list"])):g.createCommentVNode("v-if",!0),g.createCommentVNode(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),g.createCommentVNode(" 文档类 "),g.createVNode(g.unref(u3e),{modelValue:m.video,"onUpdate:modelValue":R[1]||(R[1]=P=>m.video=P),url:(V=f.value)==null?void 0:V.url,onClose:T},null,8,["modelValue","url"]),g.createVNode(g.unref($Z),{modelValue:m.office,"onUpdate:modelValue":R[2]||(R[2]=P=>m.office=P),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:T,"modal-class":"ik-only-preview-dialog"},{default:g.withCtx(()=>{var P,W,le;return[g.createElementVNode("div",w9e,[g.createElementVNode("img",{src:(W=(P=c.value.editorConfig.customization)==null?void 0:P.logo)==null?void 0:W.image,onClick:_,alt:""},null,8,C9e)]),g.createVNode(g.unref(oJ),{"config-options":c.value,"document-server-url":((le=r.onlyOfficeConfig)==null?void 0:le.serverUrl)||r.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"]),g.createCommentVNode(" txt文件预览 "),g.createVNode(g.unref($Z),{modelValue:m.text,"onUpdate:modelValue":R[3]||(R[3]=P=>m.text=P),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:T,"modal-class":"ik-text-preview-dialog"},{default:g.withCtx(()=>{var P;return[g.createElementVNode("div",S9e,[g.createElementVNode("div",E9e,[g.createElementVNode("span",_9e,g.toDisplayString((P=f.value)==null?void 0:P.name),1)]),g.createElementVNode("pre",B9e,g.toDisplayString(h.value),1)])]}),_:1},8,["modelValue"])],64)):g.createCommentVNode("v-if",!0)}}})),x9e=["src"],T9e=xi(g.defineComponent({name:"IkPrintConfig",__name:"IkPrintConfig",props:{id:{},srcPrefix:{default:""},token:{}},emits:["created"],setup(r,{emit:e}){const t=r,n=e,s=g.computed(()=>!!t.id),l=g.reactive({currentId:t.id,loading:!0,src:""}),c=async()=>{fetch(`${t.srcPrefix??""}/jmreport/save`,{method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json",Authorization:t.token??""}}).then(h=>h.json()).then(({code:h,result:m})=>{if(h===200){const b=m.id;l.currentId=b,l.src=`${t.srcPrefix??""}/jmreport/index/${l.currentId}?token=${t.token}&menuType=printinfo`,n("created",l.currentId)}}).catch(h=>{console.error(h)})},f=()=>{if(!s.value){c();return}l.src=`${t.srcPrefix??""}/jmreport/index/${l.currentId}?token=${t.token}`};return g.onMounted(()=>{f()}),(h,m)=>l.src?(g.openBlock(),g.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:l.src,frameborder:"0"},null,8,x9e)):g.createCommentVNode("v-if",!0)}})),k9e=["src"],F9e={name:"IkPrintView"},I9e=g.defineComponent({...F9e,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(r,{emit:e}){const t=r,n=e,s=g.computed({get:()=>t.modelValue,set:f=>{n("update:modelValue",f)}}),l=g.reactive({src:"",showIframe:!1}),c=()=>{l.showIframe=!1,l.src=`${t.srcPrefix}/jmreport/view/${t.templateId}?token=${t.token??""}&${t.idKey}=${t.dataId}`,setTimeout(()=>{l.showIframe=!0},300)};return g.watch(()=>s.value,f=>{f&&c()}),g.onMounted(()=>{s.value&&c()}),(f,h)=>{const m=g.resolveComponent("el-dialog");return g.openBlock(),g.createBlock(m,{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=b=>s.value=b),fullscreen:"",title:"预览"},{default:g.withCtx(()=>[g.createElementVNode("div",{style:g.normalizeStyle({width:t.width,height:t.height})},[l.showIframe?(g.openBlock(),g.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:l.src,frameborder:"0"},null,8,k9e)):g.createCommentVNode("v-if",!0)],4)]),_:1},8,["modelValue"])}}}),D9e=xi(I9e),N9e={class:"ik-print"},O9e={key:0,class:"print-config-panel"},R9e={class:"config-header"},P9e={key:0,class:"print-header"},L9e={class:"print-main-content"},M9e={key:1,class:"print-footer"},U9e={key:1,class:"print-controls"},H9e=gi(g.defineComponent({__name:"IkPrint",props:{hideControls:{type:Boolean,default:!1},defaultConfig:{default:()=>({})}},emits:["beforePrint","afterPrint","configChange"],setup(r,{expose:e,emit:t}){const n=r,s=t,l=g.ref(!1),c=g.ref(!1),f=g.ref(!1),h=g.ref(),m=g.reactive({paperSize:"A4",orientation:"portrait",fontSize:14,fontFamily:"Microsoft YaHei, sans-serif",margin:{top:"20mm",right:"20mm",bottom:"20mm",left:"20mm"},showHeader:!1,showFooter:!1,headerText:"",footerText:"",customWidth:"210mm",customHeight:"297mm",...n.defaultConfig}),b={A4:{width:"210mm",height:"297mm"},A3:{width:"297mm",height:"420mm"},A5:{width:"148mm",height:"210mm"},Letter:{width:"8.5in",height:"11in"},Legal:{width:"8.5in",height:"14in"}},S=()=>{g.nextTick(()=>{const N="ik-print-styles";let L=document.getElementById(N);L||(L=document.createElement("style"),L.id=N,document.head.appendChild(L));const V=m.paperSize==="Custom"?{width:m.customWidth,height:m.customHeight}:b[m.paperSize],P=`
26
+ </el-popover> `)],64)):g.createCommentVNode("v-if",!0)],2)]),_:2},1032,["class"]))),128))]),_:3})]),_:3},8,["inline","model","status-icon","label-width"])]),_:2},[r.title?{name:"header",fn:g.withCtx(()=>[g.createElementVNode("h2",null,g.toDisplayString(r.title),1)]),key:"0"}:void 0]),1032,["class","shadow"]),g.createElementVNode("div",IDe,[g.createElementVNode("div",{class:"ik-pack-up",onClick:T},[g.createVNode(g.unref(mn.ElIcon),{size:"16"},{default:g.withCtx(()=>[g.withDirectives(g.createVNode(g.unref(MIe),null,null,512),[[g.vShow,!m.value]])]),_:1})])])]))}}),[["__scopeId","data-v-a386c9b3"]])),NDe=xi(Gge),ODe={class:"content"},RDe={class:"top"},PDe=["onClick"],LDe=["id"],MDe=["onClick"],UDe=xi(gi(g.defineComponent({__name:"IkVerticalStepBar",props:{active:{type:String,default:""},list:{type:Array,default:()=>[]},needClick:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({name:"name",children:"children"})}},emits:["click","update:active"],setup(r,{emit:e}){const t=r,n=e,s=g.computed(()=>Number(t.active.indexOf("-")>0?t.active.split("-")[0]:t.active)),l=g.computed(()=>t.active.indexOf("-")>0?Number(t.active.split("-")[1]):0),c=T=>{let _="",F=T+1;return F<s.value?_="before-bg":F===s.value?_="active-bg":F>s.value&&(_="after-bg"),`${_} index`},f=T=>{let _="",F=T+1;return F<s.value?_="before-text":F===s.value?_="active-text":F>s.value&&(_="after-text"),`${_} text`},h=T=>{let _="",F=T+1;return F<s.value?_="before-style":F<t.list.length&&(_="after-style"),`${_} bottom`},m=(T,_)=>{let F="",R=T+1,N=_+1;return R<s.value?F="before-text":R===s.value?N<l.value?F="before-text":N===l.value?F="active-text":N>l.value&&(F="after-text"):R>s.value&&(F="after-text"),`${F} child-text`},b=(T,_)=>{t.needClick&&(T[t.propsField.children]||(n("update:active",_+""),n("click",T)))},S=(T,_)=>{T.show=!T.show;let F=document.getElementById(`children${_}`);T.show?F.style.display="none":F.style.display="block"};return(T,_)=>(g.openBlock(),g.createElementBlock("div",ODe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(r.list,(F,R)=>{var N,L;return g.openBlock(),g.createElementBlock("div",{class:"line-block",key:R},[g.createElementVNode("div",RDe,[g.createElementVNode("div",{class:g.normalizeClass(c(R))},g.toDisplayString(R+1),3),g.createElementVNode("div",{class:g.normalizeClass(f(R)),style:g.normalizeStyle(r.needClick?"cursor: pointer;":""),onClick:V=>b(F,R+1)},[g.createTextVNode(g.toDisplayString(F[r.propsField.name])+" ",1),(N=F[r.propsField.children])!=null&&N.length&&!F.show?(g.openBlock(),g.createBlock(g.unref(Ls),{key:0,class:"ikapprove",onClick:g.withModifiers(V=>S(F,R),["stop"]),name:"iksvg_zhankai"},null,8,["onClick"])):g.createCommentVNode("v-if",!0),(L=F[r.propsField.children])!=null&&L.length&&F.show?(g.openBlock(),g.createBlock(g.unref(Ls),{key:1,class:"ikapprove",onClick:g.withModifiers(V=>S(F,R),["stop"]),name:"iksvg_shouqi"},null,8,["onClick"])):g.createCommentVNode("v-if",!0)],14,PDe)]),g.createElementVNode("ul",{class:g.normalizeClass(h(R))},[g.createElementVNode("div",{id:`children${R}`},[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(F[r.propsField.children],(V,P)=>(g.openBlock(),g.createElementBlock("li",{class:g.normalizeClass(m(R,P)),style:g.normalizeStyle(r.needClick?"cursor: pointer;":""),key:P,onClick:W=>b(V,R+1+"-"+(P+1))},g.toDisplayString(V.name),15,MDe))),128))],8,LDe)],2)])}),128))]))}}),[["__scopeId","data-v-d45a00d0"]])),g2=(r,e=2)=>{if(r===void 0)return"";if(r===0)return"0 B";const t=["B","KB","MB","GB","TB"],n=Math.floor(Math.log(r)/Math.log(1024));let s=r/Math.pow(1024,n);return(s%1===0?s.toFixed(e||0):s.toFixed(e))+" "+t[n]},oy=(r,e)=>{if(!e)return"";const t=/(\/api\/server\/oss\/download\?fileUrl=)(.*)(\/api\/server\/oss\/download\?fileUrl=)/;return e.startsWith("http")?e.replace(t,"$1$2"):`${r||location.origin}${e}`.replace(t,"$1$2")},Kge=r=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...r.defaultNodeType},defaultFile:{id:"id",parallelInstances:"parallelInstances",backToInstanceNodeName:"backToInstanceNodeName",backToRecordNodeName:"backToRecordNodeName",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveStatus:"status",approveStatusName:"statusName",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",originator:"username",...r.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...r.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"INITIATE",等待:"WAIT",同意:"PASS",撤销:"REVOKE",拒绝:"REJECT",转交:"TRANSFER",加签:"APPEND",退回:"BACK",评论:"COMMENT",待执行:"WAITING",执行中:"RUNNING",...r.defaultStatus},listData:[]}),Zge=(r,e,t)=>{let n="";switch(e){case r.nodeType.审批节点:t&&t.length==1?n="ikapprove-ziyuan":n="ikapprove-shenpi";break;case r.nodeType.办理节点:n="ikapprove-bianji";break;case r.nodeType.抄送节点:n="ikapprove-chaosong";break;case r.nodeType.并行分支:n="ikapprove-fenzhi";break;case r.nodeType.子流程:n="ikapprove-ziliucheng1";break;default:n="ikapprove-ziyuan"}return`ikapprove ${n}`},Yge=["csv","djvu","doc","docm","docx","docxf","dot","dotm","dotx","epub","fb2","fodp","fods","fodt","htm","html","mht","odp","ods","odt","oform","otp","ots","ott","oxps","pdf","pot","potm","potx","pps","ppsm","ppsx","ppt","pptm","pptx","rtf","txt","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xml","xps","png","jpeg","jpg","webp","video","mp4","flv","tls"],q1=r=>{const e=g.inject("loadUrl"),t=g.computed(()=>r.loadUrl||r.fileUrl||(e==null?void 0:e.value)),n=g.inject("uploadUrl"),s=g.computed(()=>r.action||r.uploadUrl||(n==null?void 0:n.value)),l=g.inject("token"),c=g.computed(()=>r.token||(l==null?void 0:l.value)),f=g.inject("header"),h=g.computed(()=>r.header||(f==null?void 0:f.value)||{Authorization:c.value}),m=g.inject("onlyofficeConfig"),b=g.computed(()=>r.onlyofficeConfig||(m==null?void 0:m.value)),S=g.inject("userInfo"),T=g.computed(()=>r.userInfo||(S==null?void 0:S.value)),_=[...Yge,...Yge.map(F=>F.toLocaleUpperCase())];return{cLoadUrl:t,cUploadUrl:s,cToken:c,cHeader:h,cOnlyofficeConfig:b,cUserInfo:T,cOnlyofficePreviewType:_}},HDe={class:"approveProcess",id:"approveProcess"},VDe=["id"],$De={class:"topBlock"},QDe={class:"left"},zDe={class:"nodeBg"},jDe=["src"],WDe={class:"right"},qDe={class:"topInfo"},GDe={key:0},KDe={key:0,class:"main-text"},ZDe={class:"name"},YDe={key:0},XDe={key:0},JDe={key:1},eNe={key:0},tNe={key:0},nNe={key:1},rNe={key:1},oNe={class:"name"},sNe={key:0},iNe={style:{color:"#000"}},aNe={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},lNe={key:1},cNe={key:0,class:"blue",style:{"font-size":"12px"}},uNe={key:1},dNe={key:0,class:"blue",style:{"font-size":"12px"}},fNe={key:1,class:"blue",style:{"font-size":"12px"}},ANe={class:"time"},hNe={key:0},pNe={key:1},gNe=["onClick"],mNe=["onClick"],vNe={key:0,class:"opinion"},yNe={key:0},bNe={key:1},wNe={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},CNe={key:2,class:"annexImage"},SNe={key:3,class:"approveList"},ENe={class:"nodeBg-list"},_Ne=["src"],BNe={key:1},xNe={key:2,class:"ikapprove ikapprove-duihao2 green read"},TNe=["title"],kNe={key:0,class:"branch"},FNe={class:"branch-card"},INe={class:"branch-name"},DNe={name:"IkingApprovalProcessDetail"},NNe=g.defineComponent({...DNe,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:""},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""}},emits:["preview"],setup(r,{emit:e}){const t=r,{cLoadUrl:n}=q1(t),s=g.reactive(Kge(t));g.watch(()=>t.dataList,b=>{b&&(g.nextTick(()=>{s.listData=b}),setTimeout(()=>{t.returnNode.length&&l()},500))},{deep:!0}),g.onMounted(()=>{t.dataList.length&&(s.listData=t.dataList,setTimeout(()=>{t.returnNode.length&&l()},500))});const l=()=>{let b=null;if(t!=null&&t.returnNode)for(b of t==null?void 0:t.returnNode){if(isNaN(b[1]))return;let S=Array.from(new Array(b[1]+1).keys()).slice(b[0]);g.nextTick(()=>{c(S)})}},c=b=>{var L,V,P;let S=document.createElement("div"),T=document.getElementById("approveProcess"),_=0,F=(L=document.getElementById(`${b[0]}`))==null?void 0:L.offsetWidth,R=(V=document.getElementById(`${b[0]}`))==null?void 0:V.offsetLeft,N=(P=document.getElementById(`${b[0]}`))==null?void 0:P.offsetTop;b.forEach(W=>{let le=document.getElementById(`${W}`);_+=le.offsetHeight}),setTimeout(()=>{S.style.width=F+32+"px",S.style.height=_+"px",S.style.background="#f9f9f9",S.style.position="absolute",S.style.top=N-16+"px",S.style.left=R-16+"px",S.style.zIndex=-1,T==null||T.appendChild(S)})},f=(b,S,T)=>{var R,N;let _=(R=s.listData)==null?void 0:R.findIndex(L=>L.lineType=="dashed"),F="";if(T&&((N=T[s.defaultFile.approvePersonList])==null?void 0:N.findIndex(V=>V[s.defaultFile.approveStatus]===s.statusOption.执行中))>-1)return"ikapprove ikapprove-dengdai orange";switch(b){case s.statusOption.发起:F="ikapprove-duihao2 green";break;case s.statusOption.执行中:F=_==S?"ikapprove-dengdai orange":"";break;case s.statusOption.同意:F="ikapprove-duihao2 green";break;case s.statusOption.拒绝:F="ikapprove-jujue red";break;case s.statusOption.转交:F="ikapprove-zhuanjiao blue";break;case s.statusOption.加签:F="ikapprove-tianjia blue";break;case s.statusOption.退回:F="ikapprove-s_fanhui2 red";break;case s.statusOption.评论:F="ikapprove-pinglun1 blue";break}return`ikapprove ${F}`},h=(b,S)=>{b.show=!b.show;let T=document.getElementById(`${b[s.defaultFile.nodeId]}`),_=Array.from(T==null?void 0:T.getElementsByClassName("approveList"));for(let F of _)F.style.display=S},m=b=>oy(n.value,b);return(b,S)=>{const T=g.resolveComponent("el-image"),_=g.resolveComponent("IkingApprovalProcessDetail");return g.openBlock(),g.createElementBlock("div",HDe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(s.listData,(F,R)=>{var N,L,V,P,W,le,J,q,ce,fe;return g.openBlock(),g.createElementBlock("div",{class:"approveBlock",id:F[s.defaultFile.nodeId],key:F[s.defaultFile.nodeId]},[g.createElementVNode("div",$De,[g.createElementVNode("div",QDe,[g.createElementVNode("span",zDe,[g.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((N=F[s.defaultFile.approvePersonList])==null?void 0:N.length)==1&&F[s.defaultFile.approvePersonList][0].userAvatar?(g.openBlock(),g.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"10px"},src:m(F[s.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,jDe)):(g.openBlock(),g.createElementBlock(g.Fragment,{key:1},[g.createCommentVNode(" 否则显示对应节点 "),g.createElementVNode("i",{class:g.normalizeClass(g.unref(Zge)(s,F[s.defaultFile.nodeType],F[s.defaultFile.approvePersonList]))},null,2)],2112)),g.createCommentVNode(" 审批状态图标 "),g.createElementVNode("i",{class:g.normalizeClass(f(F[s.defaultFile.approveStatus],R,F))},null,2)])]),g.createElementVNode("div",WDe,[g.createElementVNode("div",qDe,[g.createElementVNode("div",null,[g.createCommentVNode(" 不是抄送节点 "),s.nodeType.抄送节点!==F[s.defaultFile.nodeType]?(g.openBlock(),g.createElementBlock("div",GDe,[g.createCommentVNode(" 撤销,评论不显示节点名称 "),F[s.defaultFile.approveStatus]!=s.statusOption.撤销&&F[s.defaultFile.approveStatus]!=s.statusOption.评论&&F[s.defaultFile.nodeType]!==s.nodeType.并行分支?(g.openBlock(),g.createElementBlock("div",KDe,g.toDisplayString(F[s.defaultFile.nodeTypeName]),1)):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 名字+审批状态 "),g.createElementVNode("div",ZDe,[g.createCommentVNode(" 已审批节点文本 "),F[s.defaultFile.lineType]=="solid"?(g.openBlock(),g.createElementBlock("div",YDe,[g.createElementVNode("span",{style:g.normalizeStyle({color:F[s.defaultFile.approveStatus]==s.statusOption.评论?"#000":""})},g.toDisplayString(F[s.defaultFile.originator]),5),g.createCommentVNode(" 发起,退回不显示状态 "),F[s.defaultFile.approveStatusName]&&F[s.defaultFile.approveStatus]!=s.statusOption.发起&&F[s.defaultFile.approveStatus]!=s.statusOption.退回?(g.openBlock(),g.createElementBlock("span",XDe,g.toDisplayString(F[s.defaultFile.approveStatus]==s.statusOption.评论?" 添加了评论":F!=null&&F.nodeActionAliasName?`(已${F.nodeActionAliasName})`:`(${F[s.defaultFile.approveStatusName]})`),1)):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 退回状态显示 "),F[s.defaultFile.approveStatus]==s.statusOption.退回?(g.openBlock(),g.createElementBlock("span",JDe,[S[0]||(S[0]=g.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}}," 退回至",-1)),g.createTextVNode(" "+g.toDisplayString(F[s.defaultFile.backToInstanceNodeName]||F[s.defaultFile.backToRecordNodeName]),1)])):g.createCommentVNode("v-if",!0)])):(g.openBlock(),g.createElementBlock(g.Fragment,{key:1},[g.createCommentVNode(" 待审批节点 "),g.createElementVNode("div",null,[((L=F[s.defaultFile.approvePersonList])==null?void 0:L.length)==1?(g.openBlock(),g.createElementBlock("span",eNe,[g.createTextVNode(g.toDisplayString(F[s.defaultFile.originator])+" ",1),F[s.defaultFile.approveStatus]==s.statusOption.等待?(g.openBlock(),g.createElementBlock("span",tNe,g.toDisplayString(F!=null&&F.nodeActionAliasName?`(已${F.nodeActionAliasName})`:`(${F[s.defaultFile.approveStatusName]})`),1)):g.createCommentVNode("v-if",!0)])):F[s.defaultFile.approvePersonList]?(g.openBlock(),g.createElementBlock("span",nNe,g.toDisplayString(`${(V=F[s.defaultFile.approvePersonList])==null?void 0:V.length}人${F[s.defaultFile.approveTypeName]}`),1)):g.createCommentVNode("v-if",!0)])],2112))])])):(g.openBlock(),g.createElementBlock("div",rNe,[S[2]||(S[2]=g.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),g.createElementVNode("div",oNe,[g.createCommentVNode(" 抄送一人时 "),((P=F[s.defaultFile.approvePersonList])==null?void 0:P.length)==1?(g.openBlock(),g.createElementBlock("span",sNe,[g.createElementVNode("span",null,[S[1]||(S[1]=g.createTextVNode("已抄送给 ",-1)),g.createElementVNode("span",iNe,g.toDisplayString(F[s.defaultFile.approvePersonList][0].userName),1)]),g.createElementVNode("span",aNe,g.toDisplayString(F[s.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 抄送多人时 "),((W=F[s.defaultFile.approvePersonList])==null?void 0:W.length)>1?(g.openBlock(),g.createElementBlock("span",lNe,[g.createTextVNode(g.toDisplayString(`已抄送${(le=F[s.defaultFile.approvePersonList])==null?void 0:le.length}人`)+" ",1),F[s.defaultFile.allRead]?(g.openBlock(),g.createElementBlock("span",cNe," 全部已读 ")):(g.openBlock(),g.createElementBlock("span",uNe,[F[s.defaultFile.read]?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("span",dNe," 全部未读 ")),F[s.defaultFile.read]?(g.openBlock(),g.createElementBlock("span",fNe,g.toDisplayString(F[s.defaultFile.read])+"人已读 ",1)):g.createCommentVNode("v-if",!0)]))])):g.createCommentVNode("v-if",!0)])]))]),g.createElementVNode("div",ANe,[g.createCommentVNode(" 不是抄送节点,展示时间 "),F[s.defaultFile.nodeType]!=s.nodeType.抄送节点&&F[s.defaultFile.approveStatus]!==s.statusOption.等待?(g.openBlock(),g.createElementBlock("span",hNe,g.toDisplayString(g.unref(ts.ikDate).toDateTime(F[s.defaultFile.operationTime],"MM/DD HH:mm")),1)):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),F[s.defaultFile.nodeType]==s.nodeType.抄送节点&&((J=F[s.defaultFile.approvePersonList])==null?void 0:J.length)>1?(g.openBlock(),g.createElementBlock("span",pNe,[F!=null&&F.show?(g.openBlock(),g.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:Ce=>h(F,"grid")},null,8,gNe)):(g.openBlock(),g.createElementBlock("i",{key:1,onClick:Ce=>h(F,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,mNe))])):g.createCommentVNode("v-if",!0)])])])]),g.createElementVNode("div",{class:"bottomBlock",style:g.normalizeStyle({borderLeft:R==s.listData.length-1?"":`2px ${F[s.defaultFile.lineType]||"dashed"} var(--el-border-color)`})},[g.createCommentVNode(" 审批意见 "),F[s.defaultFile.approveOpinion]||F[s.defaultFile.approveStatus]==s.statusOption.加签?(g.openBlock(),g.createElementBlock("div",vNe,[F[s.defaultFile.approveOpinion]?(g.openBlock(),g.createElementBlock("span",yNe,g.toDisplayString(F[s.defaultFile.approveOpinion]),1)):g.createCommentVNode("v-if",!0),F[s.defaultFile.approveStatus]==s.statusOption.加签?(g.openBlock(),g.createElementBlock("span",bNe,[S[3]||(S[3]=g.createElementVNode("span",{class:"ik-text-primary"},"添加审批人",-1)),(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(F[s.defaultFile.countersignPer],(Ce,ie)=>(g.openBlock(),g.createElementBlock("span",wNe,g.toDisplayString(Ce==null?void 0:Ce.userName)+g.toDisplayString(ie<F[s.defaultFile.countersignPer].length-1?"、":""),1))),256))])):g.createCommentVNode("v-if",!0)])):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 附件 "),(q=F[s.defaultFile.attachment])!=null&&q.length?(g.openBlock(),g.createBlock(g.unref(nL),{key:1,list:F[s.defaultFile.attachment]},null,8,["list"])):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 附件图片 "),(ce=F[s.defaultFile.attachmentImg])!=null&&ce.length?(g.openBlock(),g.createElementBlock("div",CNe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(F[s.defaultFile.attachmentImg],(Ce,ie)=>(g.openBlock(),g.createElementBlock("div",{class:"image",key:ie},[g.createVNode(T,{src:m(Ce),"preview-src-list":F[s.defaultFile.attachmentImg].map(ne=>m(ne)),fit:"cover","z-index":"9999","zoom-rate":1.2,"preview-teleported":!0,alt:m(Ce)},null,8,["src","preview-src-list","alt"])]))),128))])):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(F[s.defaultFile.nodeType]==s.nodeType.抄送节点||F[s.defaultFile.approveStatus]==s.statusOption.等待)&&((fe=F[s.defaultFile.approvePersonList])==null?void 0:fe.length)>1?(g.openBlock(),g.createElementBlock("div",SNe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(F[s.defaultFile.approvePersonList],Ce=>{var ie;return g.openBlock(),g.createElementBlock("div",{class:"perBlock",key:Ce.userName},[g.createElementVNode("span",ENe,[Ce.userAvatar?(g.openBlock(),g.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:m(Ce.userAvatar),alt:""},null,8,_Ne)):(g.openBlock(),g.createElementBlock("span",BNe,g.toDisplayString((ie=Ce.userName)==null?void 0:ie.slice(-2)),1)),Ce.status==="END"?(g.openBlock(),g.createElementBlock("i",xNe)):g.createCommentVNode("v-if",!0)]),g.createElementVNode("div",{class:"main-text",title:Ce.userName},g.toDisplayString(Ce.userName),9,TNe)])}),128))])):g.createCommentVNode("v-if",!0)],4),F[s.defaultFile.nodeType]===s.nodeType.并行分支?(g.openBlock(),g.createElementBlock("div",kNe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(F[s.defaultFile.parallelInstances],Ce=>(g.openBlock(),g.createElementBlock("div",FNe,[g.createElementVNode("div",INe,g.toDisplayString(Ce.name),1),g.createVNode(_,g.mergeProps({ref_for:!0},t,{"data-list":(Ce==null?void 0:Ce.processInstanceNodes)||[]}),null,16,["data-list"])]))),256))])):g.createCommentVNode("v-if",!0)],8,VDe)}),128))])}}}),ONe=xi(gi(NNe,[["__scopeId","data-v-dbdbb339"]])),RNe={class:"approveProcess",id:"approveProcess"},PNe={class:"node"},LNe={class:"nodeBg"},MNe={key:0,class:"info"},UNe={class:"explain"},HNe={key:0},VNe={key:0},$Ne={key:1},QNe={key:0},zNe={key:1},jNe={class:"personlist"},WNe={style:{width:"58px"}},qNe={class:"avatar"},GNe=["src"],KNe={key:1,class:"nodeBg"},ZNe=["onClick"],YNe=["title"],XNe={key:0,class:"sign"},JNe={key:0},eOe=["onClick"],tOe={key:0,class:"required"},nOe={key:1,class:"node-branchs"},rOe={style:{flex:"1"}},oOe={class:"node-branch"},sOe={name:"IkApprovalProcess"},iOe=g.defineComponent({...sOe,props:{pickerUrl:{type:String,default:""},pickerConfig:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},setup(r,{expose:e}){const t=r,{cLoadUrl:n}=q1(t),s=ts.ikStore.local.getItem("token")||"Bearer iking",l=g.ref("sys");function c(V){try{const P=window.location.search;return new URLSearchParams(P).get(V)}catch{return""}}function f(){var V;try{const P=c("xTenant")||((V=ts.ikStore.local.getItem("tenant"))==null?void 0:V.code);P&&(l.value=P)}catch{}}f();const h=g.reactive(Kge(t)),m=async V=>{var P;if(V.multiple=!V[h.defaultFile.singleApproval]||V[h.defaultFile.isShowAddCopy],V.handList=V[h.defaultFile.approvePersonList]?V[h.defaultFile.approvePersonList]:[],V[h.defaultFile.nodeType]===h.nodeType.抄送节点)V.handList.forEach(W=>{W.elementName||(W.elementName=W.userName,W.elementId=W.userId,W.avatar=W.userAvatar),W.elementType="USER",W.disabled=!0}),V.chooseType=["user"],V.userList=[],V.depList=[];else switch(V[h.defaultFile.initiatorSpecifiedScopeType]){case"ALL":V.chooseType=["dep_user"],V.userList=[],V.depList=[];break;default:V.chooseType=["user"],V.userList=V.userList?V.userList:(P=V[h.defaultFile.initiatorSpecifiedScope])==null?void 0:P.map(W=>({...W,elementName:(W==null?void 0:W.executorName)||(W==null?void 0:W.userName),elementId:(W==null?void 0:W.executorId)||(W==null?void 0:W.userId),avatar:((W==null?void 0:W.executorAvatar)||(W==null?void 0:W.userAvatar))&&b((W==null?void 0:W.executorAvatar)||(W==null?void 0:W.userAvatar))||"",elementType:"USER"}))}g.nextTick(()=>{V.isShow=!0})},b=V=>{let P="";return V.includes("http")||V.includes("https")?P=V:P=n.value?`${V.includes(n.value)?"":n.value}${V}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${V}`,P},S=(V,P)=>{t.dataList[P].handList=V.list;let le=(t.dataList[P][h.defaultFile.approvePersonList]||[]).filter(q=>!q.canDele),J=V.list.map(q=>({...q,userName:q.elementName,userAvatar:q.avatar,canDele:!0}));t.dataList[P][h.defaultFile.approvePersonList]=le.concat(J)},T=(V,P)=>{t.dataList[V][h.defaultFile.approvePersonList].splice(P,1),t.dataList[V].handList=t.dataList[V][h.defaultFile.approvePersonList]},_=()=>{let V=!0;return t.dataList.forEach(P=>{var W;P.required=!1,P[h.defaultFile.nodeType]==h.nodeType.审批节点&&P[h.defaultFile.isShowAdd]&&((W=P[h.defaultFile.approvePersonList])!=null&&W.length||(V=!1,P.required=!0))}),V},F=g.computed(()=>{var V;return{propOption:{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:t.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:s,"X-Tenant":l.value},param:{rootDepartmentId:((V=ts.ikStore.local.getItem("now_shop"))==null?void 0:V.storeId)||"",rootDepartmentOnly:!1}},...t.pickerConfig}}),R=g.ref(null),N=V=>{R.value=V},L=V=>{const{oldIndex:P,newIndex:W}=V;R.value.splice(W,0,...R.value.splice(P,1))};return e({requiredVerification:_}),(V,P)=>{const W=g.resolveComponent("IkApprovalProcess",!0);return g.openBlock(),g.createElementBlock("div",RNe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(t.dataList,(le,J)=>{var q,ce,fe,Ce;return g.openBlock(),g.createElementBlock("div",{class:"content",key:le.id},[g.createCommentVNode(" 审批节点类型 "),g.createElementVNode("div",PNe,[g.createElementVNode("span",LNe,[g.createElementVNode("i",{class:g.normalizeClass(g.unref(Zge)(h,le[h.defaultFile.nodeType]))},null,2)]),g.createElementVNode("div",{class:"line",style:g.normalizeStyle({"border-left":J===t.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),le[h.defaultFile.nodeType]!==h.nodeType.并行分支?(g.openBlock(),g.createElementBlock("div",MNe,[g.createElementVNode("div",null,[g.createElementVNode("div",null,g.toDisplayString(le[h.defaultFile.nodeTypeName]),1),g.createElementVNode("div",UNe,[g.createCommentVNode(" 抄送节点 "),le[h.defaultFile.nodeType]==h.nodeType.抄送节点?(g.openBlock(),g.createElementBlock("span",HNe,[le[h.defaultFile.approvePersonList].length?(g.openBlock(),g.createElementBlock("span",VNe,g.toDisplayString(`抄送${le[h.defaultFile.approvePersonList].length}人`),1)):g.createCommentVNode("v-if",!0),le[h.defaultFile.isShowAdd]?(g.openBlock(),g.createElementBlock("span",$Ne,",可添加抄送人")):g.createCommentVNode("v-if",!0)])):(g.openBlock(),g.createElementBlock(g.Fragment,{key:1},[g.createCommentVNode(" 审批节点 "),g.createElementVNode("span",null,[g.createCommentVNode(" 存在审批人时 "),(q=le[h.defaultFile.approvePersonList])!=null&&q.length?(g.openBlock(),g.createElementBlock("span",QNe,g.toDisplayString(((ce=le[h.defaultFile.approvePersonList])==null?void 0:ce.length)==1?"1人审批":`${(fe=le[h.defaultFile.approvePersonList])==null?void 0:fe.length}人${le[h.defaultFile.multiExecutorTypeName]}`),1)):[h.statusWithoutApprover.自动通过,h.statusWithoutApprover.自动拒绝].includes(le[h.defaultFile.approveType])?(g.openBlock(),g.createElementBlock("span",zNe,g.toDisplayString(le[h.defaultFile.approveTypeName]),1)):le[h.defaultFile.executorEmptyStrategy]&&le[h.defaultFile.executorEmpty]?(g.openBlock(),g.createElementBlock(g.Fragment,{key:2},[g.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),g.createElementVNode("span",null,[P[0]||(P[0]=g.createTextVNode(" 未找到审批人,",-1)),g.createElementVNode("span",null,g.toDisplayString(le[h.defaultFile.executorEmptyStrategy]==h.statusWithoutApprover.自动通过?"将自动通过":le[h.defaultFile.executorEmptyStrategy]==h.statusWithoutApprover.自动转交管理员?"自动转交给管理员":le[h.defaultFile.executorEmptyStrategy]==h.statusWithoutApprover.指定人员审批?`将自动转给指定成员${le[h.defaultFile.reserveExecutorUsers]&&le[h.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):[h.nodeType.并行分支,h.nodeType.子流程].includes(le[h.defaultFile.nodeType])?g.createCommentVNode("v-if",!0):(g.openBlock(),g.createElementBlock("span",{key:3,class:g.normalizeClass(le.required?"warn":"")}," 请选择"+g.toDisplayString(le[h.defaultFile.nodeType]===h.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),g.createElementVNode("div",jNe,[g.createVNode(g.unref(z6),{modelValue:le[h.defaultFile.approvePersonList],"onUpdate:modelValue":ie=>le[h.defaultFile.approvePersonList]=ie,group:{name:"people",pull:!1,put:!1},"item-key":"userId",handle:".draggable-item",animation:200,"ghost-class":"ghost-item","chosen-class":"chosen-item","drag-class":"drag-item",onStart:ie=>N(le[h.defaultFile.approvePersonList]),onEnd:L,class:"draggable-container"},{item:g.withCtx(({element:ie,index:ne})=>{var Ie,ke;return[(g.openBlock(),g.createElementBlock("div",{class:"list draggable-item",key:ie.userId},[g.createElementVNode("div",WNe,[g.createElementVNode("div",qNe,[ie.userAvatar?(g.openBlock(),g.createElementBlock("img",{key:0,src:b(ie.userAvatar),alt:""},null,8,GNe)):(g.openBlock(),g.createElementBlock("div",KNe,[g.createElementVNode("span",null,g.toDisplayString((Ie=ie.userName)==null?void 0:Ie.slice(-2)),1)])),ie.canDele?(g.openBlock(),g.createElementBlock("i",{key:2,onClick:Ge=>T(J,ne),class:"ikapprove ikapprove-shanchu1"},null,8,ZNe)):g.createCommentVNode("v-if",!0)]),g.createElementVNode("div",{class:"name",title:ie.userName},g.toDisplayString(ie.userName),9,YNe)]),g.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),le[h.defaultFile.isShowAdd]&&!(le[h.defaultFile.singleApproval]&&((ke=le[h.defaultFile.approvePersonList])==null?void 0:ke.length)==1)?(g.openBlock(),g.createElementBlock("span",XNe,[g.createCommentVNode(" 抄送默认 "),le[h.defaultFile.nodeType]==h.nodeType.抄送节点?(g.openBlock(),g.createElementBlock("span",JNe,"+")):(g.openBlock(),g.createElementBlock(g.Fragment,{key:1},[g.createCommentVNode(" 审批 "),g.createElementVNode("span",null,g.toDisplayString(le[h.defaultFile.multiExecutorType]=="ANY"?"/":le[h.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):g.createCommentVNode("v-if",!0)]))]}),_:2},1032,["modelValue","onUpdate:modelValue","onStart"]),g.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 (item[state.defaultFile.isShowAdd] && "),le[h.defaultFile.isShowAdd]&&!(le[h.defaultFile.singleApproval]&&((Ce=le[h.defaultFile.approvePersonList])==null?void 0:Ce.length)==1)||le[h.defaultFile.isShowAddCopy]?(g.openBlock(),g.createElementBlock("span",{key:0,class:"addBg",onClick:ie=>m(le)},[le[h.defaultFile.nodeType]==h.nodeType.审批节点?(g.openBlock(),g.createElementBlock("span",tOe)):g.createCommentVNode("v-if",!0),P[1]||(P[1]=g.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1))],8,eOe)):g.createCommentVNode("v-if",!0),g.createCommentVNode(" 添加人组件 "),g.createVNode(g.unref(C8),g.mergeProps({modelValue:le.handList,"onUpdate:modelValue":ie=>le.handList=ie,show:le.isShow,"onUpdate:show":ie=>le.isShow=ie,onOk:ie=>S(ie,J),multiple:le.multiple,"dep-list":le.depList,"user-list":le.userList,"organization-list":le.organizationList},{ref_for:!0},F.value,{chooseType:le.chooseType}),null,16,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","dep-list","user-list","organization-list","chooseType"])])])):(g.openBlock(),g.createElementBlock("div",nOe,[P[2]||(P[2]=g.createElementVNode("div",{class:"branch-line"},null,-1)),g.createElementVNode("div",rOe,[(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(le.parallelInstances,(ie,ne)=>(g.openBlock(),g.createElementBlock("div",{key:ne,class:g.normalizeClass(`branch branch-${ne}`)},[g.createElementVNode("div",oOe,g.toDisplayString(ie.name),1),g.createVNode(W,g.mergeProps({ref_for:!0},t,{dataList:ie.processInstanceNodes,style:{"margin-left":"20px"}}),null,16,["dataList"])],2))),128))])]))])}),128))])}}}),aOe=xi(gi(iOe,[["__scopeId","data-v-c0843ac1"]]));var lOe={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(r){return"另外 "+r+" 个"},noEventsText:"没有事件显示"},yP,si,Xge,Jge,G_,BS,eme,tme,nme,bP={},rme=[],cOe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function m2(r,e){for(var t in e)r[t]=e[t];return r}function ome(r){var e=r.parentNode;e&&e.removeChild(r)}function Qt(r,e,t){var n,s,l,c={};for(l in e)l=="key"?n=e[l]:l=="ref"?s=e[l]:c[l]=e[l];if(arguments.length>2&&(c.children=arguments.length>3?yP.call(arguments,2):t),typeof r=="function"&&r.defaultProps!=null)for(l in r.defaultProps)c[l]===void 0&&(c[l]=r.defaultProps[l]);return wP(r,c,n,s,null)}function wP(r,e,t,n,s){var l={type:r,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s??++Xge};return s==null&&si.vnode!=null&&si.vnode(l),l}function sh(){return{current:null}}function Vc(r){return r.children}function uOe(r,e,t,n,s){var l;for(l in t)l==="children"||l==="key"||l in e||CP(r,l,null,t[l],n);for(l in e)s&&typeof e[l]!="function"||l==="children"||l==="key"||l==="value"||l==="checked"||t[l]===e[l]||CP(r,l,e[l],t[l],n)}function sme(r,e,t){e[0]==="-"?r.setProperty(e,t??""):r[e]=t==null?"":typeof t!="number"||cOe.test(e)?t:t+"px"}function CP(r,e,t,n,s){var l;e:if(e==="style")if(typeof t=="string")r.style.cssText=t;else{if(typeof n=="string"&&(r.style.cssText=n=""),n)for(e in n)t&&e in t||sme(r.style,e,"");if(t)for(e in t)n&&t[e]===n[e]||sme(r.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")l=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in r?e.toLowerCase().slice(2):e.slice(2),r.l||(r.l={}),r.l[e+l]=t,t?n||r.addEventListener(e,l?ame:ime,l):r.removeEventListener(e,l?ame:ime,l);else if(e!=="dangerouslySetInnerHTML"){if(s)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in r)try{r[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e.indexOf("-")==-1?r.removeAttribute(e):r.setAttribute(e,t))}}function ime(r){G_=!0;try{return this.l[r.type+!1](si.event?si.event(r):r)}finally{G_=!1}}function ame(r){G_=!0;try{return this.l[r.type+!0](si.event?si.event(r):r)}finally{G_=!1}}function Qp(r,e){this.props=r,this.context=e}function j6(r,e){if(e==null)return r.__?j6(r.__,r.__.__k.indexOf(r)+1):null;for(var t;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null)return t.__e;return typeof r.type=="function"?j6(r):null}function lme(r){var e,t;if((r=r.__)!=null&&r.__c!=null){for(r.__e=r.__c.base=null,e=0;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null){r.__e=r.__c.base=t.__e;break}return lme(r)}}function dOe(r){G_?setTimeout(r):tme(r)}function tG(r){(!r.__d&&(r.__d=!0)&&BS.push(r)&&!SP.__r++||eme!==si.debounceRendering)&&((eme=si.debounceRendering)||dOe)(SP)}function SP(){var r,e,t,n,s,l,c,f;for(BS.sort(function(h,m){return h.__v.__b-m.__v.__b});r=BS.shift();)r.__d&&(e=BS.length,n=void 0,s=void 0,c=(l=(t=r).__v).__e,(f=t.__P)&&(n=[],(s=m2({},l)).__v=l.__v+1,nG(f,l,s,t.__n,f.ownerSVGElement!==void 0,l.__h!=null?[c]:null,n,c??j6(l),l.__h),Ame(n,l),l.__e!=c&&lme(l)),BS.length>e&&BS.sort(function(h,m){return h.__v.__b-m.__v.__b}));SP.__r=0}function cme(r,e,t,n,s,l,c,f,h,m){var b,S,T,_,F,R,N,L=n&&n.__k||rme,V=L.length;for(t.__k=[],b=0;b<e.length;b++)if((_=t.__k[b]=(_=e[b])==null||typeof _=="boolean"?null:typeof _=="string"||typeof _=="number"||typeof _=="bigint"?wP(null,_,null,null,_):Array.isArray(_)?wP(Vc,{children:_},null,null,null):_.__b>0?wP(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_)!=null){if(_.__=t,_.__b=t.__b+1,(T=L[b])===null||T&&_.key==T.key&&_.type===T.type)L[b]=void 0;else for(S=0;S<V;S++){if((T=L[S])&&_.key==T.key&&_.type===T.type){L[S]=void 0;break}T=null}nG(r,_,T=T||bP,s,l,c,f,h,m),F=_.__e,(S=_.ref)&&T.ref!=S&&(N||(N=[]),T.ref&&N.push(T.ref,null,_),N.push(S,_.__c||F,_)),F!=null?(R==null&&(R=F),typeof _.type=="function"&&_.__k===T.__k?_.__d=h=ume(_,h,r):h=dme(r,_,T,L,F,h),typeof t.type=="function"&&(t.__d=h)):h&&T.__e==h&&h.parentNode!=r&&(h=j6(T))}for(t.__e=R,b=V;b--;)L[b]!=null&&(typeof t.type=="function"&&L[b].__e!=null&&L[b].__e==t.__d&&(t.__d=fme(n).nextSibling),pme(L[b],L[b]));if(N)for(b=0;b<N.length;b++)hme(N[b],N[++b],N[++b])}function ume(r,e,t){for(var n,s=r.__k,l=0;s&&l<s.length;l++)(n=s[l])&&(n.__=r,e=typeof n.type=="function"?ume(n,e,t):dme(t,n,n,s,n.__e,e));return e}function EP(r,e){return e=e||[],r==null||typeof r=="boolean"||(Array.isArray(r)?r.some(function(t){EP(t,e)}):e.push(r)),e}function dme(r,e,t,n,s,l){var c,f,h;if(e.__d!==void 0)c=e.__d,e.__d=void 0;else if(t==null||s!=l||s.parentNode==null)e:if(l==null||l.parentNode!==r)r.appendChild(s),c=null;else{for(f=l,h=0;(f=f.nextSibling)&&h<n.length;h+=1)if(f==s)break e;r.insertBefore(s,l),c=l}return c!==void 0?c:s.nextSibling}function fme(r){var e,t,n;if(r.type==null||typeof r.type=="string")return r.__e;if(r.__k){for(e=r.__k.length-1;e>=0;e--)if((t=r.__k[e])&&(n=fme(t)))return n}return null}function nG(r,e,t,n,s,l,c,f,h){var m,b,S,T,_,F,R,N,L,V,P,W,le,J,q,ce=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(h=t.__h,f=e.__e=t.__e,e.__h=null,l=[f]),(m=si.__b)&&m(e);try{e:if(typeof ce=="function"){if(N=e.props,L=(m=ce.contextType)&&n[m.__c],V=m?L?L.props.value:m.__:n,t.__c?R=(b=e.__c=t.__c).__=b.__E:("prototype"in ce&&ce.prototype.render?e.__c=b=new ce(N,V):(e.__c=b=new Qp(N,V),b.constructor=ce,b.render=AOe),L&&L.sub(b),b.props=N,b.state||(b.state={}),b.context=V,b.__n=n,S=b.__d=!0,b.__h=[],b._sb=[]),b.__s==null&&(b.__s=b.state),ce.getDerivedStateFromProps!=null&&(b.__s==b.state&&(b.__s=m2({},b.__s)),m2(b.__s,ce.getDerivedStateFromProps(N,b.__s))),T=b.props,_=b.state,b.__v=e,S)ce.getDerivedStateFromProps==null&&b.componentWillMount!=null&&b.componentWillMount(),b.componentDidMount!=null&&b.__h.push(b.componentDidMount);else{if(ce.getDerivedStateFromProps==null&&N!==T&&b.componentWillReceiveProps!=null&&b.componentWillReceiveProps(N,V),!b.__e&&b.shouldComponentUpdate!=null&&b.shouldComponentUpdate(N,b.__s,V)===!1||e.__v===t.__v){for(e.__v!==t.__v&&(b.props=N,b.state=b.__s,b.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(fe){fe&&(fe.__=e)}),P=0;P<b._sb.length;P++)b.__h.push(b._sb[P]);b._sb=[],b.__h.length&&c.push(b);break e}b.componentWillUpdate!=null&&b.componentWillUpdate(N,b.__s,V),b.componentDidUpdate!=null&&b.__h.push(function(){b.componentDidUpdate(T,_,F)})}if(b.context=V,b.props=N,b.__P=r,W=si.__r,le=0,"prototype"in ce&&ce.prototype.render){for(b.state=b.__s,b.__d=!1,W&&W(e),m=b.render(b.props,b.state,b.context),J=0;J<b._sb.length;J++)b.__h.push(b._sb[J]);b._sb=[]}else do b.__d=!1,W&&W(e),m=b.render(b.props,b.state,b.context),b.state=b.__s;while(b.__d&&++le<25);b.state=b.__s,b.getChildContext!=null&&(n=m2(m2({},n),b.getChildContext())),S||b.getSnapshotBeforeUpdate==null||(F=b.getSnapshotBeforeUpdate(T,_)),q=m!=null&&m.type===Vc&&m.key==null?m.props.children:m,cme(r,Array.isArray(q)?q:[q],e,t,n,s,l,c,f,h),b.base=e.__e,e.__h=null,b.__h.length&&c.push(b),R&&(b.__E=b.__=null),b.__e=!1}else l==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=fOe(t.__e,e,t,n,s,l,c,h);(m=si.diffed)&&m(e)}catch(fe){e.__v=null,(h||l!=null)&&(e.__e=f,e.__h=!!h,l[l.indexOf(f)]=null),si.__e(fe,e,t)}}function Ame(r,e){si.__c&&si.__c(e,r),r.some(function(t){try{r=t.__h,t.__h=[],r.some(function(n){n.call(t)})}catch(n){si.__e(n,t.__v)}})}function fOe(r,e,t,n,s,l,c,f){var h,m,b,S=t.props,T=e.props,_=e.type,F=0;if(_==="svg"&&(s=!0),l!=null){for(;F<l.length;F++)if((h=l[F])&&"setAttribute"in h==!!_&&(_?h.localName===_:h.nodeType===3)){r=h,l[F]=null;break}}if(r==null){if(_===null)return document.createTextNode(T);r=s?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,T.is&&T),l=null,f=!1}if(_===null)S===T||f&&r.data===T||(r.data=T);else{if(l=l&&yP.call(r.childNodes),m=(S=t.props||bP).dangerouslySetInnerHTML,b=T.dangerouslySetInnerHTML,!f){if(l!=null)for(S={},F=0;F<r.attributes.length;F++)S[r.attributes[F].name]=r.attributes[F].value;(b||m)&&(b&&(m&&b.__html==m.__html||b.__html===r.innerHTML)||(r.innerHTML=b&&b.__html||""))}if(uOe(r,T,S,s,f),b)e.__k=[];else if(F=e.props.children,cme(r,Array.isArray(F)?F:[F],e,t,n,s&&_!=="foreignObject",l,c,l?l[0]:t.__k&&j6(t,0),f),l!=null)for(F=l.length;F--;)l[F]!=null&&ome(l[F]);f||("value"in T&&(F=T.value)!==void 0&&(F!==r.value||_==="progress"&&!F||_==="option"&&F!==S.value)&&CP(r,"value",F,S.value,!1),"checked"in T&&(F=T.checked)!==void 0&&F!==r.checked&&CP(r,"checked",F,S.checked,!1))}return r}function hme(r,e,t){try{typeof r=="function"?r(e):r.current=e}catch(n){si.__e(n,t)}}function pme(r,e,t){var n,s;if(si.unmount&&si.unmount(r),(n=r.ref)&&(n.current&&n.current!==r.__e||hme(n,null,e)),(n=r.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(l){si.__e(l,e)}n.base=n.__P=null,r.__c=void 0}if(n=r.__k)for(s=0;s<n.length;s++)n[s]&&pme(n[s],e,t||typeof r.type!="function");t||r.__e==null||ome(r.__e),r.__=r.__e=r.__d=void 0}function AOe(r,e,t){return this.constructor(r,t)}function W6(r,e,t){var n,s,l;si.__&&si.__(r,e),s=(n=!1)?null:e.__k,l=[],nG(e,r=e.__k=Qt(Vc,null,[r]),s||bP,bP,e.ownerSVGElement!==void 0,s?null:e.firstChild?yP.call(e.childNodes):null,l,s?s.__e:e.firstChild,n),Ame(l,r)}function hOe(r,e){var t={__c:e="__cC"+nme++,__:r,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,l;return this.getChildContext||(s=[],(l={})[e]=this,this.getChildContext=function(){return l},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&s.some(function(f){f.__e=!0,tG(f)})},this.sub=function(c){s.push(c);var f=c.componentWillUnmount;c.componentWillUnmount=function(){s.splice(s.indexOf(c),1),f&&f.call(c)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}yP=rme.slice,si={__e:function(r,e,t,n){for(var s,l,c;e=e.__;)if((s=e.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(r)),c=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(r,n||{}),c=s.__d),c)return s.__E=s}catch(f){r=f}throw r}},Xge=0,Jge=function(r){return r!=null&&r.constructor===void 0},G_=!1,Qp.prototype.setState=function(r,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=m2({},this.state),typeof r=="function"&&(r=r(m2({},t),this.props)),r&&m2(t,r),r!=null&&this.__v&&(e&&this._sb.push(e),tG(this))},Qp.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),tG(this))},Qp.prototype.render=Vc,BS=[],tme=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,SP.__r=0,nme=0;var G1,rG,gme,mme=[],oG=[],vme=si.__b,yme=si.__r,bme=si.diffed,wme=si.__c,Cme=si.unmount;function pOe(){for(var r;r=mme.shift();)if(r.__P&&r.__H)try{r.__H.__h.forEach(_P),r.__H.__h.forEach(sG),r.__H.__h=[]}catch(e){r.__H.__h=[],si.__e(e,r.__v)}}si.__b=function(r){G1=null,vme&&vme(r)},si.__r=function(r){yme&&yme(r);var e=(G1=r.__c).__H;e&&(rG===G1?(e.__h=[],G1.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=oG,t.__N=t.i=void 0})):(e.__h.forEach(_P),e.__h.forEach(sG),e.__h=[])),rG=G1},si.diffed=function(r){bme&&bme(r);var e=r.__c;e&&e.__H&&(e.__H.__h.length&&(mme.push(e)!==1&&gme===si.requestAnimationFrame||((gme=si.requestAnimationFrame)||gOe)(pOe)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==oG&&(t.__=t.__V),t.i=void 0,t.__V=oG})),rG=G1=null},si.__c=function(r,e){e.some(function(t){try{t.__h.forEach(_P),t.__h=t.__h.filter(function(n){return!n.__||sG(n)})}catch(n){e.some(function(s){s.__h&&(s.__h=[])}),e=[],si.__e(n,t.__v)}}),wme&&wme(r,e)},si.unmount=function(r){Cme&&Cme(r);var e,t=r.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{_P(n)}catch(s){e=s}}),t.__H=void 0,e&&si.__e(e,t.__v))};var Sme=typeof requestAnimationFrame=="function";function gOe(r){var e,t=function(){clearTimeout(n),Sme&&cancelAnimationFrame(e),setTimeout(r)},n=setTimeout(t,100);Sme&&(e=requestAnimationFrame(t))}function _P(r){var e=G1,t=r.__c;typeof t=="function"&&(r.__c=void 0,t()),G1=e}function sG(r){var e=G1;r.__c=r.__(),G1=e}function mOe(r,e){for(var t in e)r[t]=e[t];return r}function Eme(r,e){for(var t in r)if(t!=="__source"&&!(t in e))return!0;for(var n in e)if(n!=="__source"&&r[n]!==e[n])return!0;return!1}function _me(r){this.props=r}(_me.prototype=new Qp).isPureReactComponent=!0,_me.prototype.shouldComponentUpdate=function(r,e){return Eme(this.props,r)||Eme(this.state,e)};var Bme=si.__b;si.__b=function(r){r.type&&r.type.__f&&r.ref&&(r.props.ref=r.ref,r.ref=null),Bme&&Bme(r)};var vOe=si.__e;si.__e=function(r,e,t,n){if(r.then){for(var s,l=e;l=l.__;)if((s=l.__c)&&s.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),s.__c(r,e)}vOe(r,e,t,n)};var xme=si.unmount;function Tme(r,e,t){return r&&(r.__c&&r.__c.__H&&(r.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),r.__c.__H=null),(r=mOe({},r)).__c!=null&&(r.__c.__P===t&&(r.__c.__P=e),r.__c=null),r.__k=r.__k&&r.__k.map(function(n){return Tme(n,e,t)})),r}function kme(r,e,t){return r&&(r.__v=null,r.__k=r.__k&&r.__k.map(function(n){return kme(n,e,t)}),r.__c&&r.__c.__P===e&&(r.__e&&t.insertBefore(r.__e,r.__d),r.__c.__e=!0,r.__c.__P=t)),r}function iG(){this.__u=0,this.t=null,this.__b=null}function Fme(r){var e=r.__.__c;return e&&e.__a&&e.__a(r)}function BP(){this.u=null,this.o=null}si.unmount=function(r){var e=r.__c;e&&e.__R&&e.__R(),e&&r.__h===!0&&(r.type=null),xme&&xme(r)},(iG.prototype=new Qp).__c=function(r,e){var t=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(t);var s=Fme(n.__v),l=!1,c=function(){l||(l=!0,t.__R=null,s?s(f):f())};t.__R=c;var f=function(){if(!--n.__u){if(n.state.__a){var m=n.state.__a;n.__v.__k[0]=kme(m,m.__c.__P,m.__c.__O)}var b;for(n.setState({__a:n.__b=null});b=n.t.pop();)b.forceUpdate()}},h=e.__h===!0;n.__u++||h||n.setState({__a:n.__b=n.__v.__k[0]}),r.then(c,c)},iG.prototype.componentWillUnmount=function(){this.t=[]},iG.prototype.render=function(r,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Tme(this.__b,t,n.__O=n.__P)}this.__b=null}var s=e.__a&&Qt(Vc,null,r.fallback);return s&&(s.__h=null),[Qt(Vc,null,e.__a?null:r.children),s]};var Ime=function(r,e,t){if(++t[1]===t[0]&&r.o.delete(e),r.props.revealOrder&&(r.props.revealOrder[0]!=="t"||!r.o.size))for(t=r.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;r.u=t=t[2]}};function yOe(r){return this.getChildContext=function(){return r.context},r.children}function bOe(r){var e=this,t=r.i;e.componentWillUnmount=function(){W6(null,e.l),e.l=null,e.i=null},e.i&&e.i!==t&&e.componentWillUnmount(),r.__v?(e.l||(e.i=t,e.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,s){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),W6(Qt(yOe,{context:e.context},r.__v),e.l)):e.l&&e.componentWillUnmount()}function wOe(r,e){var t=Qt(bOe,{__v:r,i:e});return t.containerInfo=e,t}(BP.prototype=new Qp).__a=function(r){var e=this,t=Fme(e.__v),n=e.o.get(r);return n[0]++,function(s){var l=function(){e.props.revealOrder?(n.push(s),Ime(e,r,n)):s()};t?t(l):l()}},BP.prototype.render=function(r){this.u=null,this.o=new Map;var e=EP(r.children);r.revealOrder&&r.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return r.children},BP.prototype.componentDidUpdate=BP.prototype.componentDidMount=function(){var r=this;this.o.forEach(function(e,t){Ime(r,t,e)})};var COe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,SOe=/^(?: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]/,EOe=typeof document<"u",_Oe=function(r){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(r)};Qp.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(r){Object.defineProperty(Qp.prototype,r,{configurable:!0,get:function(){return this["UNSAFE_"+r]},set:function(e){Object.defineProperty(this,r,{configurable:!0,writable:!0,value:e})}})});var Dme=si.event;function BOe(){}function xOe(){return this.cancelBubble}function TOe(){return this.defaultPrevented}si.event=function(r){return Dme&&(r=Dme(r)),r.persist=BOe,r.isPropagationStopped=xOe,r.isDefaultPrevented=TOe,r.nativeEvent=r};var Nme={configurable:!0,get:function(){return this.class}},Ome=si.vnode;si.vnode=function(r){var e=r.type,t=r.props,n=t;if(typeof e=="string"){var s=e.indexOf("-")===-1;for(var l in n={},t){var c=t[l];EOe&&l==="children"&&e==="noscript"||l==="value"&&"defaultValue"in t&&c==null||(l==="defaultValue"&&"value"in t&&t.value==null?l="value":l==="download"&&c===!0?c="":/ondoubleclick/i.test(l)?l="ondblclick":/^onchange(textarea|input)/i.test(l+e)&&!_Oe(t.type)?l="oninput":/^onfocus$/i.test(l)?l="onfocusin":/^onblur$/i.test(l)?l="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(l)?l=l.toLowerCase():s&&SOe.test(l)?l=l.replace(/[A-Z0-9]/g,"-$&").toLowerCase():c===null&&(c=void 0),/^oninput$/i.test(l)&&(l=l.toLowerCase(),n[l]&&(l="oninputCapture")),n[l]=c)}e=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=EP(t.children).forEach(function(f){f.props.selected=n.value.indexOf(f.props.value)!=-1})),e=="select"&&n.defaultValue!=null&&(n.value=EP(t.children).forEach(function(f){f.props.selected=n.multiple?n.defaultValue.indexOf(f.props.value)!=-1:n.defaultValue==f.props.value})),r.props=n,t.class!=t.className&&(Nme.enumerable="className"in t,t.className!=null&&(n.class=t.className),Object.defineProperty(n,"className",Nme))}r.$$typeof=COe,Ome&&Ome(r)};var Rme=si.__r;si.__r=function(r){Rme&&Rme(r),r.__c};const Pme=[],aG=new Map;function lG(r){Pme.push(r),aG.forEach(e=>{Mme(e,r)})}function kOe(r){r.isConnected&&r.getRootNode&&Lme(r.getRootNode())}function Lme(r){let e=aG.get(r);if(!e||!e.isConnected){if(e=r.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const t=IOe();t&&(e.nonce=t);const n=r===document?document.head:r,s=r===document?n.querySelector("script,link[rel=stylesheet],link[as=style],style"):n.firstChild;n.insertBefore(e,s)}aG.set(r,e),FOe(e)}}function FOe(r){for(const e of Pme)Mme(r,e)}function Mme(r,e){const{sheet:t}=r,n=t.cssRules.length;e.split("}").forEach((s,l)=>{s=s.trim(),s&&t.insertRule(s+"}",n+l)})}let cG;function IOe(){return cG===void 0&&(cG=DOe()),cG}function DOe(){const r=document.querySelector('meta[name="csp-nonce"]');if(r&&r.hasAttribute("content"))return r.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&Lme(document);var NOe=':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)}';lG(NOe);class uG{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;e in n&&(t?delete n[e]:(n[e]-=1,n[e]<=0&&delete n[e]),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 dG(r){r.parentNode&&r.parentNode.removeChild(r)}function BA(r,e){if(r.closest)return r.closest(e);if(!document.documentElement.contains(r))return null;do{if(OOe(r,e))return r;r=r.parentElement||r.parentNode}while(r!==null&&r.nodeType===1);return null}function OOe(r,e){return(r.matches||r.matchesSelector||r.msMatchesSelector).call(r,e)}function ROe(r,e){let t=r instanceof HTMLElement?[r]:r,n=[];for(let s=0;s<t.length;s+=1){let l=t[s].querySelectorAll(e);for(let c=0;c<l.length;c+=1)n.push(l[c])}return n}const POe=/(top|left|right|bottom|width|height)$/i;function q6(r,e){for(let t in e)Ume(r,t,e[t])}function Ume(r,e,t){t==null?r.style[e]="":typeof t=="number"&&POe.test(e)?r.style[e]=`${t}px`:r.style[e]=t}function Hme(r){var e,t;return(t=(e=r.composedPath)===null||e===void 0?void 0:e.call(r)[0])!==null&&t!==void 0?t:r.target}let Vme=0;function xP(){return Vme+=1,"fc-dom-"+Vme}function TP(r){r.preventDefault()}function LOe(r,e){return t=>{let n=BA(t.target,r);n&&e.call(n,t,n)}}function $me(r,e,t,n){let s=LOe(t,n);return r.addEventListener(e,s),()=>{r.removeEventListener(e,s)}}function MOe(r,e,t,n){let s;return $me(r,"mouseover",e,(l,c)=>{if(c!==s){s=c,t(l,c);let f=h=>{s=null,n(h,c),c.removeEventListener("mouseleave",f)};c.addEventListener("mouseleave",f)}})}const Qme=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function UOe(r,e){let t=n=>{e(n),Qme.forEach(s=>{r.removeEventListener(s,t)})};Qme.forEach(n=>{r.addEventListener(n,t)})}function zme(r){return Object.assign({onClick:r},jme(r))}function jme(r){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(r(e),e.preventDefault())}}}let Wme=0;function xS(){return Wme+=1,String(Wme)}function fG(){document.body.classList.add("fc-not-allowed")}function AG(){document.body.classList.remove("fc-not-allowed")}function HOe(r){r.style.userSelect="none",r.style.webkitUserSelect="none",r.addEventListener("selectstart",TP)}function VOe(r){r.style.userSelect="",r.style.webkitUserSelect="",r.removeEventListener("selectstart",TP)}function $Oe(r){r.addEventListener("contextmenu",TP)}function QOe(r){r.removeEventListener("contextmenu",TP)}function zOe(r){let e=[],t=[],n,s;for(typeof r=="string"?t=r.split(/\s*,\s*/):typeof r=="function"?t=[r]:Array.isArray(r)&&(t=r),n=0;n<t.length;n+=1)s=t[n],typeof s=="string"?e.push(s.charAt(0)==="-"?{field:s.substring(1),order:-1}:{field:s,order:1}):typeof s=="function"&&e.push({func:s});return e}function jOe(r,e,t){let n,s;for(n=0;n<t.length;n+=1)if(s=WOe(r,e,t[n]),s)return s;return 0}function WOe(r,e,t){return t.func?t.func(r,e):qOe(r[t.field],e[t.field])*(t.order||1)}function qOe(r,e){return!r&&!e?0:e==null?-1:r==null?1:typeof r=="string"||typeof e=="string"?String(r).localeCompare(String(e)):r-e}function K_(r,e){let t=String(r);return"000".substr(0,e-t.length)+t}function G6(r,e,t){return typeof r=="function"?r(...e):typeof r=="string"?e.reduce((n,s,l)=>n.replace("$"+l,s||""),r):t}function GOe(r,e){return r-e}function kP(r){return r%1===0}function KOe(r){let e=r.querySelector(".fc-scrollgrid-shrink-frame"),t=r.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!t)throw new Error("needs fc-scrollgrid-shrink-cushion className");return r.getBoundingClientRect().width-e.getBoundingClientRect().width+t.getBoundingClientRect().width}const qme=["years","months","days","milliseconds"],ZOe=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Ya(r,e){return typeof r=="string"?YOe(r):typeof r=="object"&&r?Gme(r):typeof r=="number"?Gme({[e||"milliseconds"]:r}):null}function YOe(r){let e=ZOe.exec(r);if(e){let t=e[1]?-1:1;return{years:0,months:0,days:t*(e[2]?parseInt(e[2],10):0),milliseconds:t*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Gme(r){let e={years:r.years||r.year||0,months:r.months||r.month||0,days:r.days||r.day||0,milliseconds:(r.hours||r.hour||0)*60*60*1e3+(r.minutes||r.minute||0)*60*1e3+(r.seconds||r.second||0)*1e3+(r.milliseconds||r.millisecond||r.ms||0)},t=r.weeks||r.week;return t&&(e.days+=t*7,e.specifiedWeeks=!0),e}function XOe(r,e){return r.years===e.years&&r.months===e.months&&r.days===e.days&&r.milliseconds===e.milliseconds}function hG(r,e){return{years:r.years+e.years,months:r.months+e.months,days:r.days+e.days,milliseconds:r.milliseconds+e.milliseconds}}function JOe(r,e){return{years:r.years-e.years,months:r.months-e.months,days:r.days-e.days,milliseconds:r.milliseconds-e.milliseconds}}function eRe(r,e){return{years:r.years*e,months:r.months*e,days:r.days*e,milliseconds:r.milliseconds*e}}function tRe(r){return Z_(r)/365}function nRe(r){return Z_(r)/30}function Z_(r){return Pm(r)/864e5}function Pm(r){return r.years*(365*864e5)+r.months*(30*864e5)+r.days*864e5+r.milliseconds}function pG(r,e){let t=null;for(let n=0;n<qme.length;n+=1){let s=qme[n];if(e[s]){let l=r[s]/e[s];if(!kP(l)||t!==null&&t!==l)return null;t=l}else if(r[s])return null}return t}function gG(r){let e=r.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return r.days?r.specifiedWeeks&&r.days%7===0?{unit:"week",value:r.days/7}:{unit:"day",value:r.days}:r.months?{unit:"month",value:r.months}:r.years?{unit:"year",value:r.years}:{unit:"millisecond",value:0}}function v2(r,e,t){if(r===e)return!0;let n=r.length,s;if(n!==e.length)return!1;for(s=0;s<n;s+=1)if(!(t?t(r[s],e[s]):r[s]===e[s]))return!1;return!0}const rRe=["sun","mon","tue","wed","thu","fri","sat"];function Kme(r,e){let t=b2(r);return t[2]+=e*7,Wh(t)}function Bf(r,e){let t=b2(r);return t[2]+=e,Wh(t)}function y2(r,e){let t=b2(r);return t[6]+=e,Wh(t)}function oRe(r,e){return TS(r,e)/7}function TS(r,e){return(e.valueOf()-r.valueOf())/(1e3*60*60*24)}function sRe(r,e){return(e.valueOf()-r.valueOf())/(1e3*60*60)}function iRe(r,e){return(e.valueOf()-r.valueOf())/(1e3*60)}function aRe(r,e){return(e.valueOf()-r.valueOf())/1e3}function lRe(r,e){let t=$c(r),n=$c(e);return{years:0,months:0,days:Math.round(TS(t,n)),milliseconds:e.valueOf()-n.valueOf()-(r.valueOf()-t.valueOf())}}function cRe(r,e){let t=FP(r,e);return t!==null&&t%7===0?t/7:null}function FP(r,e){return w2(r)===w2(e)?Math.round(TS(r,e)):null}function $c(r){return Wh([r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()])}function uRe(r){return Wh([r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours()])}function dRe(r){return Wh([r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes()])}function fRe(r){return Wh([r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds()])}function ARe(r,e,t){let n=r.getUTCFullYear(),s=mG(r,n,e,t);if(s<1)return mG(r,n-1,e,t);let l=mG(r,n+1,e,t);return l>=1?Math.min(s,l):s}function mG(r,e,t,n){let s=Wh([e,0,1+hRe(e,t,n)]),l=$c(r),c=Math.round(TS(s,l));return Math.floor(c/7)+1}function hRe(r,e,t){let n=7+e-t;return-((7+Wh([r,0,n]).getUTCDay()-e)%7)+n-1}function Zme(r){return[r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()]}function Yme(r){return new Date(r[0],r[1]||0,r[2]==null?1:r[2],r[3]||0,r[4]||0,r[5]||0)}function b2(r){return[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()]}function Wh(r){return r.length===1&&(r=r.concat([0])),new Date(Date.UTC(...r))}function Xme(r){return!isNaN(r.valueOf())}function w2(r){return r.getUTCHours()*1e3*60*60+r.getUTCMinutes()*1e3*60+r.getUTCSeconds()*1e3+r.getUTCMilliseconds()}function Jme(r,e,t=!1){let n=r.toISOString();return n=n.replace(".000",""),t&&(n=n.replace("T00:00:00Z","")),n.length>10&&(e==null?n=n.replace("Z",""):e!==0&&(n=n.replace("Z",yG(e,!0)))),n}function vG(r){return r.toISOString().replace(/T.*$/,"")}function pRe(r){return r.toISOString().match(/^\d{4}-\d{2}/)[0]}function gRe(r){return K_(r.getUTCHours(),2)+":"+K_(r.getUTCMinutes(),2)+":"+K_(r.getUTCSeconds(),2)}function yG(r,e=!1){let t=r<0?"-":"+",n=Math.abs(r),s=Math.floor(n/60),l=Math.round(n%60);return e?`${t+K_(s,2)}:${K_(l,2)}`:`GMT${t}${s}${l?`:${K_(l,2)}`:""}`}function li(r,e,t){let n,s;return function(...l){if(!n)s=r.apply(this,l);else if(!v2(n,l)){let c=r.apply(this,l);(!e||!e(c,s))&&(s=c)}return n=l,s}}function IP(r,e,t){let n,s;return l=>(n?Lm(n,l)||(s=r.call(this,l)):s=r.call(this,l),n=l,s)}const bG={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},DP={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},NP=/\s*([ap])\.?m\.?/i,mRe=/,/g,vRe=/\s+/g,yRe=/\u200e/g,bRe=/UTC|GMT/;class wRe{constructor(e){let t={},n={},s=9;for(let l in e)l in bG?(n[l]=e[l],bG[l]<9&&(s=Math.min(bG[l],s))):(t[l]=e[l],l in DP&&(s=Math.min(DP[l],s)));this.standardDateProps=t,this.extendedSettings=n,this.smallestUnitNum=s,this.buildFormattingFunc=li(e1e)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,s){let{standardDateProps:l,extendedSettings:c}=this,f=xRe(e.marker,t.marker,n.calendarSystem);if(!f)return this.format(e,n);let h=f;h>1&&(l.year==="numeric"||l.year==="2-digit")&&(l.month==="numeric"||l.month==="2-digit")&&(l.day==="numeric"||l.day==="2-digit")&&(h=1);let m=this.format(e,n),b=this.format(t,n);if(m===b)return m;let S=TRe(l,h),T=e1e(S,c,n),_=T(e),F=T(t),R=kRe(m,_,b,F),N=c.separator||s||n.defaultSeparator||"";return R?R.before+_+N+F+R.after:m+N+b}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function e1e(r,e,t){let n=Object.keys(r).length;return n===1&&r.timeZoneName==="short"?s=>yG(s.timeZoneOffset):n===0&&e.week?s=>BRe(t.computeWeekNumber(s.marker),t.weekText,t.weekTextLong,t.locale,e.week):CRe(r,e,t)}function CRe(r,e,t){r=Object.assign({},r),e=Object.assign({},e),SRe(r,e),r.timeZone="UTC";let n=new Intl.DateTimeFormat(t.locale.codes,r),s;if(e.omitZeroMinute){let l=Object.assign({},r);delete l.minute,s=new Intl.DateTimeFormat(t.locale.codes,l)}return l=>{let{marker:c}=l,f;s&&!c.getUTCMinutes()?f=s:f=n;let h=f.format(c);return ERe(h,l,r,e,t)}}function SRe(r,e){r.timeZoneName&&(r.hour||(r.hour="2-digit"),r.minute||(r.minute="2-digit")),r.timeZoneName==="long"&&(r.timeZoneName="short"),e.omitZeroMinute&&(r.second||r.millisecond)&&delete e.omitZeroMinute}function ERe(r,e,t,n,s){return r=r.replace(yRe,""),t.timeZoneName==="short"&&(r=_Re(r,s.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":yG(e.timeZoneOffset))),n.omitCommas&&(r=r.replace(mRe,"").trim()),n.omitZeroMinute&&(r=r.replace(":00","")),n.meridiem===!1?r=r.replace(NP,"").trim():n.meridiem==="narrow"?r=r.replace(NP,(l,c)=>c.toLocaleLowerCase()):n.meridiem==="short"?r=r.replace(NP,(l,c)=>`${c.toLocaleLowerCase()}m`):n.meridiem==="lowercase"&&(r=r.replace(NP,l=>l.toLocaleLowerCase())),r=r.replace(vRe," "),r=r.trim(),r}function _Re(r,e){let t=!1;return r=r.replace(bRe,()=>(t=!0,e)),t||(r+=` ${e}`),r}function BRe(r,e,t,n,s){let l=[];return s==="long"?l.push(t):(s==="short"||s==="narrow")&&l.push(e),(s==="long"||s==="short")&&l.push(" "),l.push(n.simpleNumberFormat.format(r)),n.options.direction==="rtl"&&l.reverse(),l.join("")}function xRe(r,e,t){return t.getMarkerYear(r)!==t.getMarkerYear(e)?5:t.getMarkerMonth(r)!==t.getMarkerMonth(e)?4:t.getMarkerDay(r)!==t.getMarkerDay(e)?2:w2(r)!==w2(e)?1:0}function TRe(r,e){let t={};for(let n in r)(!(n in DP)||DP[n]<=e)&&(t[n]=r[n]);return t}function kRe(r,e,t,n){let s=0;for(;s<r.length;){let l=r.indexOf(e,s);if(l===-1)break;let c=r.substr(0,l);s=l+e.length;let f=r.substr(s),h=0;for(;h<t.length;){let m=t.indexOf(n,h);if(m===-1)break;let b=t.substr(0,m);h=m+n.length;let S=t.substr(h);if(c===b&&f===S)return{before:c,after:f}}}return null}function t1e(r,e){let t=e.markerToArray(r.marker);return{marker:r.marker,timeZoneOffset:r.timeZoneOffset,array:t,year:t[0],month:t[1],day:t[2],hour:t[3],minute:t[4],second:t[5],millisecond:t[6]}}function OP(r,e,t,n){let s=t1e(r,t.calendarSystem),l=e?t1e(e,t.calendarSystem):null;return{date:s,start:s,end:l,timeZone:t.timeZone,localeCodes:t.locale.codes,defaultSeparator:n||t.defaultSeparator}}class FRe{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,OP(e,null,t,n))}formatRange(e,t,n,s){return n.cmdFormatter(this.cmdStr,OP(e,t,n,s))}}class IRe{constructor(e){this.func=e}format(e,t,n){return this.func(OP(e,null,t,n))}formatRange(e,t,n,s){return this.func(OP(e,t,n,s))}}function Fu(r){return typeof r=="object"&&r?new wRe(r):typeof r=="string"?new FRe(r):typeof r=="function"?new IRe(r):null}const n1e={navLinkDayClick:Hn,navLinkWeekClick:Hn,duration:Ya,bootstrapFontAwesome:Hn,buttonIcons:Hn,customButtons:Hn,defaultAllDayEventDuration:Ya,defaultTimedEventDuration:Ya,nextDayThreshold:Ya,scrollTime:Ya,scrollTimeReset:Boolean,slotMinTime:Ya,slotMaxTime:Ya,dayPopoverFormat:Fu,slotDuration:Ya,snapDuration:Ya,headerToolbar:Hn,footerToolbar:Hn,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Fu,dayHeaderClassNames:Hn,dayHeaderContent:Hn,dayHeaderDidMount:Hn,dayHeaderWillUnmount:Hn,dayCellClassNames:Hn,dayCellContent:Hn,dayCellDidMount:Hn,dayCellWillUnmount:Hn,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Hn,weekNumbers:Boolean,weekNumberClassNames:Hn,weekNumberContent:Hn,weekNumberDidMount:Hn,weekNumberWillUnmount:Hn,editable:Boolean,viewClassNames:Hn,viewDidMount:Hn,viewWillUnmount:Hn,nowIndicator:Boolean,nowIndicatorSnap:Hn,nowIndicatorClassNames:Hn,nowIndicatorContent:Hn,nowIndicatorDidMount:Hn,nowIndicatorWillUnmount:Hn,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Hn,locale:Hn,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Hn,eventOrder:zOe,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Hn,contentHeight:Hn,direction:String,weekNumberFormat:Fu,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:Hn,initialDate:Hn,now:Hn,eventDataTransform:Hn,stickyHeaderDates:Hn,stickyFooterScrollbar:Hn,viewHeight:Hn,defaultAllDay:Boolean,eventSourceFailure:Hn,eventSourceSuccess:Hn,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Hn,eventConstraint:Hn,eventAllow:Hn,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:Hn,eventContent:Hn,eventDidMount:Hn,eventWillUnmount:Hn,selectConstraint:Hn,selectOverlap:Hn,selectAllow:Hn,droppable:Boolean,unselectCancel:String,slotLabelFormat:Hn,slotLaneClassNames:Hn,slotLaneContent:Hn,slotLaneDidMount:Hn,slotLaneWillUnmount:Hn,slotLabelClassNames:Hn,slotLabelContent:Hn,slotLabelDidMount:Hn,slotLabelWillUnmount:Hn,dayMaxEvents:Hn,dayMaxEventRows:Hn,dayMinWidth:Number,slotLabelInterval:Ya,allDayText:String,allDayClassNames:Hn,allDayContent:Hn,allDayDidMount:Hn,allDayWillUnmount:Hn,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Fu,rerenderDelay:Number,moreLinkText:Hn,moreLinkHint:Hn,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Hn,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Ya,hiddenDays:Hn,fixedWeekCount:Boolean,validRange:Hn,visibleRange:Hn,titleFormat:Hn,eventInteractive:Boolean,noEventsText:String,viewHint:Hn,navLinkHint:Hn,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:Hn,moreLinkClassNames:Hn,moreLinkContent:Hn,moreLinkDidMount:Hn,moreLinkWillUnmount:Hn,monthStartFormat:Fu,handleCustomRendering:Hn,customRenderingMetaMap:Hn,customRenderingReplaces:Boolean},K6={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"},nowIndicatorSnap:"auto"},r1e={datesSet:Hn,eventsSet:Hn,eventAdd:Hn,eventChange:Hn,eventRemove:Hn,windowResize:Hn,eventClick:Hn,eventMouseEnter:Hn,eventMouseLeave:Hn,select:Hn,unselect:Hn,loading:Hn,_unmount:Hn,_beforeprint:Hn,_afterprint:Hn,_noEventDrop:Hn,_noEventResize:Hn,_resize:Hn,_scrollRequest:Hn},o1e={buttonText:Hn,buttonHints:Hn,views:Hn,plugins:Hn,initialEvents:Hn,events:Hn,eventSources:Hn},kS={headerToolbar:FS,footerToolbar:FS,buttonText:FS,buttonHints:FS,buttonIcons:FS,dateIncrement:FS,plugins:RP,events:RP,eventSources:RP,resources:RP};function FS(r,e){return typeof r=="object"&&typeof e=="object"&&r&&e?Lm(r,e):r===e}function RP(r,e){return Array.isArray(r)&&Array.isArray(e)?v2(r,e):r===e}const DRe={type:String,component:Hn,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:Hn,usesMinMaxTime:Boolean,classNames:Hn,content:Hn,didMount:Hn,willUnmount:Hn};function wG(r){return SG(r,kS)}function CG(r,e){let t={},n={};for(let s in e)s in r&&(t[s]=e[s](r[s]));for(let s in r)s in e||(n[s]=r[s]);return{refined:t,extra:n}}function Hn(r){return r}const{hasOwnProperty:PP}=Object.prototype;function SG(r,e){let t={};if(e){for(let n in e)if(e[n]===FS){let s=[];for(let l=r.length-1;l>=0;l-=1){let c=r[l][n];if(typeof c=="object"&&c)s.unshift(c);else if(c!==void 0){t[n]=c;break}}s.length&&(t[n]=SG(s))}}for(let n=r.length-1;n>=0;n-=1){let s=r[n];for(let l in s)l in t||(t[l]=s[l])}return t}function IS(r,e){let t={};for(let n in r)e(r[n],n)&&(t[n]=r[n]);return t}function sy(r,e){let t={};for(let n in r)t[n]=e(r[n],n);return t}function s1e(r){let e={};for(let t of r)e[t]=!0;return e}function EG(r){let e=[];for(let t in r)e.push(r[t]);return e}function Lm(r,e){if(r===e)return!0;for(let t in r)if(PP.call(r,t)&&!(t in e))return!1;for(let t in e)if(PP.call(e,t)&&r[t]!==e[t])return!1;return!0}const NRe=/^on[A-Z]/;function ORe(r,e){const t=RRe(r,e);for(let n of t)if(!NRe.test(n))return!1;return!0}function RRe(r,e){let t=[];for(let n in r)PP.call(r,n)&&(n in e||t.push(n));for(let n in e)PP.call(e,n)&&r[n]!==e[n]&&t.push(n);return t}function _G(r,e,t={}){if(r===e)return!0;for(let n in e)if(!(n in r&&PRe(r[n],e[n],t[n])))return!1;for(let n in r)if(!(n in e))return!1;return!0}function PRe(r,e,t){return r===e||t===!0?!0:t?t(r,e):!1}function LRe(r,e=0,t,n=1){let s=[];t==null&&(t=Object.keys(r).length);for(let l=e;l<t;l+=n){let c=r[l];c!==void 0&&s.push(c)}return s}let i1e={};function MRe(r,e){i1e[r]=e}function URe(r){return new i1e[r]}class HRe{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Wh(e)}markerToArray(e){return b2(e)}}MRe("gregory",HRe);const VRe=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function $Re(r){let e=VRe.exec(r);if(e){let t=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(Xme(t)){let n=null;return e[13]&&(n=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:t,isTimeUnspecified:!e[6],timeZoneOffset:n}}}return null}class QRe{constructor(e){let t=this.timeZone=e.timeZone,n=t!=="local"&&t!=="UTC";e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=!!(!n||this.namedTimeZoneImpl),this.calendarSystem=URe(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return t===null?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Wh(Zme(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let t=null;return typeof e=="number"?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=Wh(e)),t===null||!Xme(t)?null:{marker:t,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let t=$Re(e);if(t===null)return null;let{marker:n}=t,s=null;return t.timeZoneOffset!==null&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-t.timeZoneOffset*60*1e3):s=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:s}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)}subtract(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return w2(e)===w2(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return w2(e)===w2(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+(n.getMarkerYear(t)-n.getMarkerYear(e))*12:null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return n!==null?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),n!==null?{unit:"month",value:n}:(n=cRe(e,t),n!==null?{unit:"week",value:n}:(n=FP(e,t),n!==null?{unit:"day",value:n}:(n=sRe(e,t),kP(n)?{unit:"hour",value:n}:(n=iRe(e,t),kP(n)?{unit:"minute",value:n}:(n=aRe(e,t),kP(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let s;return n.years&&(s=this.diffWholeYears(e,t),s!==null)?s/tRe(n):n.months&&(s=this.diffWholeMonths(e,t),s!==null)?s/nRe(n):n.days&&(s=FP(e,t),s!==null)?s/Z_(n):(t.valueOf()-e.valueOf())/Pm(n)}startOf(e,t){return t==="year"?this.startOfYear(e):t==="month"?this.startOfMonth(e):t==="week"?this.startOfWeek(e):t==="day"?$c(e):t==="hour"?uRe(e):t==="minute"?dRe(e):t==="second"?fRe(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):ARe(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:n.forcedTzo!=null?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,s={}){return s.isEndExclusive&&(t=y2(t,-1)),n.formatRange({marker:e,timeZoneOffset:s.forcedStartTzo!=null?s.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:s.forcedEndTzo!=null?s.forcedEndTzo:this.offsetForMarker(t)},this,s.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(t.forcedTzo!=null?n=t.forcedTzo:n=this.offsetForMarker(e)),Jme(e,n,t.omitTime)}timestampToMarker(e){return this.timeZone==="local"?Wh(Zme(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):Wh(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Yme(b2(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(b2(e)):null}toDate(e,t){return this.timeZone==="local"?Yme(b2(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(b2(e))*1e3*60):new Date(e.valueOf()-(t||0))}}class Z6{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if(typeof e=="object"&&e){t=Object.assign({},this.iconClasses);for(n in e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&e.indexOf(t)!==0&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return t&&this.rtlIconClasses?n=this.rtlIconClasses[e]||this.iconClasses[e]:n=this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}Z6.prototype.classes={},Z6.prototype.iconClasses={},Z6.prototype.baseIconClass="",Z6.prototype.iconOverridePrefix="";function LP(r){r();let e=si.debounceRendering,t=[];function n(s){t.push(s)}for(si.debounceRendering=n,W6(Qt(zRe,{}),document.createElement("div"));t.length;)t.shift()();si.debounceRendering=e}class zRe extends Qp{render(){return Qt("div",{})}componentDidMount(){this.setState({})}}function a1e(r){let e=hOe(r),t=e.Provider;return e.Provider=function(){let n=!this.getChildContext,s=t.apply(this,arguments);if(n){let l=[];this.shouldComponentUpdate=c=>{this.props.value!==c.value&&l.forEach(f=>{f.context=c.value,f.forceUpdate()})},this.sub=c=>{l.push(c);let f=c.componentWillUnmount;c.componentWillUnmount=()=>{l.splice(l.indexOf(c),1),f&&f.call(c)}}}return s},e}class jRe{constructor(e,t,n,s){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=s,this.handleScrollRequest=l=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},l),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const iy=a1e({});function WRe(r,e,t,n,s,l,c,f,h,m,b,S,T,_){return{dateEnv:s,nowManager:l,options:t,pluginHooks:f,emitter:b,dispatch:h,getCurrentData:m,calendarApi:S,viewSpec:r,viewApi:e,dateProfileGenerator:n,theme:c,isRtl:t.direction==="rtl",addResizeHandler(F){b.on("_resize",F)},removeResizeHandler(F){b.off("_resize",F)},createScrollResponder(F){return new jRe(F,b,Ya(t.scrollTime),t.scrollTimeReset)},registerInteractiveComponent:T,unregisterInteractiveComponent:_}}class DS extends Qp{shouldComponentUpdate(e,t){return!_G(this.props,e,this.propEquality)||!_G(this.state,t,this.stateEquality)}safeSetState(e){_G(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}DS.addPropsEquality=qRe,DS.addStateEquality=GRe,DS.contextType=iy,DS.prototype.propEquality={},DS.prototype.stateEquality={};class ql extends DS{}ql.contextType=iy;function qRe(r){let e=Object.create(this.prototype.propEquality);Object.assign(e,r),this.prototype.propEquality=e}function GRe(r){let e=Object.create(this.prototype.stateEquality);Object.assign(e,r),this.prototype.stateEquality=e}function K1(r,e){typeof r=="function"?r(e):r&&(r.current=e)}class BG extends ql{constructor(){super(...arguments),this.id=xS(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;(!t.customRenderingReplaces||!xG(n,t))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&K1(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:s,defaultGenerator:l,renderProps:c}=e,f=l1e(e,[],this.handleEl);let h=!1,m,b=[],S;if(s!=null){const T=typeof s=="function"?s(c,Qt):s;if(T===!0)h=!0;else{const _=T&&typeof T=="object";_&&"html"in T?f.dangerouslySetInnerHTML={__html:T.html}:_&&"domNodes"in T?b=Array.prototype.slice.call(T.domNodes):(_?Jge(T):typeof T!="function")?m=T:S=T}}else h=!xG(e.generatorName,n);return h&&l&&(m=l(c)),this.queuedDomNodes=b,this.currentGeneratorMeta=S,Qt(e.elTag,f,m)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:s}=this,{handleCustomRendering:l,customRenderingMetaMap:c}=s.options;if(l){const f=(t=this.currentGeneratorMeta)!==null&&t!==void 0?t:c==null?void 0:c[n.generatorName];f&&l(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:f},n),{elClasses:(n.elClasses||[]).filter(KRe)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!v2(e,t)){t.forEach(dG);for(let s of e)n.appendChild(s);this.currentDomNodes=e}}}BG.addPropsEquality({elClasses:v2,elStyle:Lm,elAttrs:ORe,renderProps:Lm});function xG(r,e){var t;return!!(e.handleCustomRendering&&r&&(!((t=e.customRenderingMetaMap)===null||t===void 0)&&t[r]))}function l1e(r,e,t){const n=Object.assign(Object.assign({},r.elAttrs),{ref:t});return(r.elClasses||e)&&(n.className=(r.elClasses||[]).concat(e||[]).concat(n.className||[]).filter(Boolean).join(" ")),r.elStyle&&(n.style=r.elStyle),n}function KRe(r){return!!r}const c1e=a1e(0);class zp extends Qp{constructor(){super(...arguments),this.InnerContent=ZRe.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(K1(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=YRe(e.classNameGenerator,e.renderProps);if(e.children){const n=l1e(e,t,this.handleEl),s=e.children(this.InnerContent,e.renderProps,n);return e.elTag?Qt(e.elTag,n,s):s}else return Qt(BG,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;this.el?(t=(e=this.props).didMount)===null||t===void 0||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;(t=(e=this.props).willUnmount)===null||t===void 0||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}zp.contextType=c1e;function ZRe(r,e){const t=r.props;return Qt(BG,Object.assign({renderProps:t.renderProps,generatorName:t.generatorName,customGenerator:t.customGenerator,defaultGenerator:t.defaultGenerator,renderId:r.context},e))}function YRe(r,e){const t=typeof r=="function"?r(e):r||[];return typeof t=="string"?[t]:t}class MP extends ql{render(){let{props:e,context:t}=this,{options:n}=t,s={view:t.viewApi};return Qt(zp,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...u1e(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:s,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount},()=>e.children)}}function u1e(r){return[`fc-${r.type}-view`,"fc-view"]}function XRe(r,e){let t=null,n=null;return r.start&&(t=e.createMarker(r.start)),r.end&&(n=e.createMarker(r.end)),!t&&!n||t&&n&&n<t?null:{start:t,end:n}}function d1e(r,e){let t=[],{start:n}=e,s,l;for(r.sort(JRe),s=0;s<r.length;s+=1)l=r[s],l.start>n&&t.push({start:n,end:l.start}),l.end>n&&(n=l.end);return n<e.end&&t.push({start:n,end:e.end}),t}function JRe(r,e){return r.start.valueOf()-e.start.valueOf()}function NS(r,e){let{start:t,end:n}=r,s=null;return e.start!==null&&(t===null?t=e.start:t=new Date(Math.max(t.valueOf(),e.start.valueOf()))),e.end!=null&&(n===null?n=e.end:n=new Date(Math.min(n.valueOf(),e.end.valueOf()))),(t===null||n===null||t<n)&&(s={start:t,end:n}),s}function e7e(r,e){return(r.start===null?null:r.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(r.end===null?null:r.end.valueOf())===(e.end===null?null:e.end.valueOf())}function TG(r,e){return(r.end===null||e.start===null||r.end>e.start)&&(r.start===null||e.end===null||r.start<e.end)}function UP(r,e){return(r.start===null||e.start!==null&&e.start>=r.start)&&(r.end===null||e.end!==null&&e.end<=r.end)}function ay(r,e){return(r.start===null||e>=r.start)&&(r.end===null||e<r.end)}function t7e(r,e){return e.start!=null&&r<e.start?e.start:e.end!=null&&r>=e.end?new Date(e.end.valueOf()-1):r}function f1e(r){let e=Math.floor(TS(r.start,r.end))||1,t=$c(r.start),n=Bf(t,e);return{start:t,end:n}}function A1e(r,e=Ya(0)){let t=null,n=null;if(r.end){n=$c(r.end);let s=r.end.valueOf()-n.valueOf();s&&s>=Pm(e)&&(n=Bf(n,1))}return r.start&&(t=$c(r.start),n&&n<=t&&(n=Bf(t,1))),{start:t,end:n}}function Y_(r,e,t,n){return n==="year"?Ya(t.diffWholeYears(r,e),"year"):n==="month"?Ya(t.diffWholeMonths(r,e),"month"):lRe(r,e)}class h1e{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:s}=this.props,l=s.subtract(s.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(l,-1,n)}buildNext(e,t,n){let{dateEnv:s}=this.props,l=s.add(s.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(l,1,n)}build(e,t,n=!0){let{props:s}=this,l,c,f,h,m,b;return l=this.buildValidRange(),l=this.trimHiddenDays(l),n&&(e=t7e(e,l)),c=this.buildCurrentRangeInfo(e,t),f=/^(year|month|week|day)$/.test(c.unit),h=this.buildRenderRange(this.trimHiddenDays(c.range),c.unit,f),h=this.trimHiddenDays(h),m=h,s.showNonCurrentDates||(m=NS(m,c.range)),m=this.adjustActiveRange(m),m=NS(m,l),b=TG(c.range,l),ay(h,e)||(e=h.start),{currentDate:e,validRange:l,currentRange:c.range,currentRangeUnit:c.unit,isRangeAllDay:f,activeRange:m,renderRange:h,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,isValid:b,dateIncrement:this.buildDateIncrement(c.duration)}}buildValidRange(){let e=this.props.validRangeInput,t=typeof e=="function"?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let{props:n}=this,s=null,l=null,c=null,f;return n.duration?(s=n.duration,l=n.durationUnit,c=this.buildRangeFromDuration(e,t,s,l)):(f=this.props.dayCount)?(l="day",c=this.buildRangeFromDayCount(e,t,f)):(c=this.buildCustomVisibleRange(e))?l=n.dateEnv.greatestWholeUnit(c.start,c.end).unit:(s=this.getFallbackDuration(),l=gG(s).unit,c=this.buildRangeFromDuration(e,t,s,l)),{duration:s,unit:l,range:c}}getFallbackDuration(){return Ya({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:s,slotMaxTime:l}=this.props,{start:c,end:f}=e;return n&&(Z_(s)<0&&(c=$c(c),c=t.add(c,s)),Z_(l)>1&&(f=$c(f),f=Bf(f,-1),f=t.add(f,l))),{start:c,end:f}}buildRangeFromDuration(e,t,n,s){let{dateEnv:l,dateAlignment:c}=this.props,f,h,m;if(!c){let{dateIncrement:S}=this.props;S&&Pm(S)<Pm(n)?c=gG(S).unit:c=s}Z_(n)<=1&&this.isHiddenDay(f)&&(f=this.skipHiddenDays(f,t),f=$c(f));function b(){f=l.startOf(e,c),h=l.add(f,n),m={start:f,end:h}}return b(),this.trimHiddenDays(m)||(e=this.skipHiddenDays(e,t),b()),m}buildRangeFromDayCount(e,t,n){let{dateEnv:s,dateAlignment:l}=this.props,c=0,f=e,h;l&&(f=s.startOf(f,l)),f=$c(f),f=this.skipHiddenDays(f,t),h=f;do h=Bf(h,1),this.isHiddenDay(h)||(c+=1);while(c<n);return{start:f,end:h}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,s=typeof n=="function"?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,l=this.refineRange(s);return l&&(l.start==null||l.end==null)?null:l}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let{dateIncrement:t}=this.props,n;return t||((n=this.props.dateAlignment)?Ya(1,n):e||Ya({days:1}))}refineRange(e){if(e){let t=XRe(e,this.props.dateEnv);return t&&(t=A1e(t)),t}return null}initHiddenDays(){let e=this.props.hiddenDays||[],t=[],n=0,s;for(this.props.weekends===!1&&e.push(0,6),s=0;s<7;s+=1)(t[s]=e.indexOf(s)!==-1)||(n+=1);if(!n)throw new Error("invalid hiddenDays");this.isHiddenDayHash=t}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),t==null||n==null||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=Bf(e,t);return e}}function kG(r,e,t,n){return{instanceId:xS(),defId:r,range:e,forcedStartTzo:t??null,forcedEndTzo:n??null}}function n7e(r,e,t,n){for(let s=0;s<n.length;s+=1){let l=n[s].parse(r,t);if(l){let{allDay:c}=r;return c==null&&(c=e,c==null&&(c=l.allDayGuess,c==null&&(c=!1))),{allDay:c,duration:l.duration,typeData:l.typeData,typeId:s}}}return null}function OS(r,e,t){let{dateEnv:n,pluginHooks:s,options:l}=t,{defs:c,instances:f}=r;f=IS(f,h=>!c[h.defId].recurringDef);for(let h in c){let m=c[h];if(m.recurringDef){let{duration:b}=m.recurringDef;b||(b=m.allDay?l.defaultAllDayEventDuration:l.defaultTimedEventDuration);let S=r7e(m,b,e,n,s.recurringTypes);for(let T of S){let _=kG(h,{start:T,end:n.add(T,b)});f[_.instanceId]=_}}}return{defs:c,instances:f}}function r7e(r,e,t,n,s){let c=s[r.recurringDef.typeId].expand(r.recurringDef.typeData,{start:n.subtract(t.start,e),end:t.end},n);return r.allDay&&(c=c.map($c)),c}const HP={id:String,groupId:String,title:String,url:String,interactive:Boolean},p1e={start:Hn,end:Hn,date:Hn,allDay:Boolean},o7e=Object.assign(Object.assign(Object.assign({},HP),p1e),{extendedProps:Hn});function g1e(r,e,t,n,s=FG(t),l,c){let{refined:f,extra:h}=m1e(r,t,s),m=i7e(e,t),b=n7e(f,m,t.dateEnv,t.pluginHooks.recurringTypes);if(b){let T=IG(f,h,e?e.sourceId:"",b.allDay,!!b.duration,t,l);return T.recurringDef={typeId:b.typeId,typeData:b.typeData,duration:b.duration},{def:T,instance:null}}let S=s7e(f,m,t,n);if(S){let T=IG(f,h,e?e.sourceId:"",S.allDay,S.hasEnd,t,l),_=kG(T.defId,S.range,S.forcedStartTzo,S.forcedEndTzo);return c&&T.publicId&&c[T.publicId]&&(_.instanceId=c[T.publicId]),{def:T,instance:_}}return null}function m1e(r,e,t=FG(e)){return CG(r,t)}function FG(r){return Object.assign(Object.assign(Object.assign({},$P),o7e),r.pluginHooks.eventRefiners)}function IG(r,e,t,n,s,l,c){let f={title:r.title||"",groupId:r.groupId||"",publicId:r.id||"",url:r.url||"",recurringDef:null,defId:(c&&r.id?c[r.id]:"")||xS(),sourceId:t,allDay:n,hasEnd:s,interactive:r.interactive,ui:QP(r,l),extendedProps:Object.assign(Object.assign({},r.extendedProps||{}),e)};for(let h of l.pluginHooks.eventDefMemberAdders)Object.assign(f,h(r));return Object.freeze(f.ui.classNames),Object.freeze(f.extendedProps),f}function s7e(r,e,t,n){let{allDay:s}=r,l,c=null,f=!1,h,m=null,b=r.start!=null?r.start:r.date;if(l=t.dateEnv.createMarkerMeta(b),l)c=l.marker;else if(!n)return null;return r.end!=null&&(h=t.dateEnv.createMarkerMeta(r.end)),s==null&&(e!=null?s=e:s=(!l||l.isTimeUnspecified)&&(!h||h.isTimeUnspecified)),s&&c&&(c=$c(c)),h&&(m=h.marker,s&&(m=$c(m)),c&&m<=c&&(m=null)),m?f=!0:n||(f=t.options.forceEventDuration||!1,m=t.dateEnv.add(c,s?t.options.defaultAllDayEventDuration:t.options.defaultTimedEventDuration)),{allDay:s,hasEnd:f,range:{start:c,end:m},forcedStartTzo:l?l.forcedTzo:null,forcedEndTzo:h?h.forcedTzo:null}}function i7e(r,e){let t=null;return r&&(t=r.defaultAllDay),t==null&&(t=e.options.defaultAllDay),t}function Y6(r,e,t,n,s,l){let c=jp(),f=FG(t);for(let h of r){let m=g1e(h,e,t,n,f,s,l);m&&DG(m,c)}return c}function DG(r,e=jp()){return e.defs[r.def.defId]=r.def,r.instance&&(e.instances[r.instance.instanceId]=r.instance),e}function NG(r,e){let t=r.instances[e];if(t){let n=r.defs[t.defId],s=VP(r,l=>a7e(n,l));return s.defs[n.defId]=n,s.instances[t.instanceId]=t,s}return jp()}function a7e(r,e){return!!(r.groupId&&r.groupId===e.groupId)}function jp(){return{defs:{},instances:{}}}function OG(r,e){return{defs:Object.assign(Object.assign({},r.defs),e.defs),instances:Object.assign(Object.assign({},r.instances),e.instances)}}function VP(r,e){let t=IS(r.defs,e),n=IS(r.instances,s=>t[s.defId]);return{defs:t,instances:n}}function l7e(r,e){let{defs:t,instances:n}=r,s={},l={};for(let c in t)e.defs[c]||(s[c]=t[c]);for(let c in n)!e.instances[c]&&s[n[c].defId]&&(l[c]=n[c]);return{defs:s,instances:l}}function c7e(r,e){return Array.isArray(r)?Y6(r,null,e,!0):typeof r=="object"&&r?Y6([r],null,e,!0):r!=null?String(r):null}function v1e(r){return Array.isArray(r)?r:typeof r=="string"?r.split(/\s+/):[]}const $P={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Hn,overlap:Hn,allow:Hn,className:v1e,classNames:v1e,color:String,backgroundColor:String,borderColor:String,textColor:String},u7e={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function QP(r,e){let t=c7e(r.constraint,e);return{display:r.display||null,startEditable:r.startEditable!=null?r.startEditable:r.editable,durationEditable:r.durationEditable!=null?r.durationEditable:r.editable,constraints:t!=null?[t]:[],overlap:r.overlap!=null?r.overlap:null,allows:r.allow!=null?[r.allow]:[],backgroundColor:r.backgroundColor||r.color||"",borderColor:r.borderColor||r.color||"",textColor:r.textColor||"",classNames:(r.className||[]).concat(r.classNames||[])}}function y1e(r){return r.reduce(d7e,u7e)}function d7e(r,e){return{display:e.display!=null?e.display:r.display,startEditable:e.startEditable!=null?e.startEditable:r.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:r.durationEditable,constraints:r.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:r.overlap,allows:r.allows.concat(e.allows),backgroundColor:e.backgroundColor||r.backgroundColor,borderColor:e.borderColor||r.borderColor,textColor:e.textColor||r.textColor,classNames:r.classNames.concat(e.classNames)}}const f7e={id:String,defaultAllDay:Boolean,url:String,format:String,events:Hn,eventDataTransform:Hn,success:Hn,failure:Hn};function b1e(r,e,t=w1e(e)){let n;if(typeof r=="string"?n={url:r}:typeof r=="function"||Array.isArray(r)?n={events:r}:typeof r=="object"&&r&&(n=r),n){let{refined:s,extra:l}=CG(n,t),c=A7e(s,e);if(c)return{_raw:r,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:s.defaultAllDay,eventDataTransform:s.eventDataTransform,success:s.success,failure:s.failure,publicId:s.id||"",sourceId:xS(),sourceDefId:c.sourceDefId,meta:c.meta,ui:QP(s,e),extendedProps:l}}return null}function w1e(r){return Object.assign(Object.assign(Object.assign({},$P),f7e),r.pluginHooks.eventSourceRefiners)}function A7e(r,e){let t=e.pluginHooks.eventSourceDefs;for(let n=t.length-1;n>=0;n-=1){let l=t[n].parseMeta(r);if(l)return{sourceDefId:n,meta:l}}return null}function h7e(r,e,t,n,s){switch(e.type){case"RECEIVE_EVENTS":return p7e(r,t[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,s);case"RESET_RAW_EVENTS":return g7e(r,t[e.sourceId],e.rawEvents,n.activeRange,s);case"ADD_EVENTS":return m7e(r,e.eventStore,n?n.activeRange:null,s);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return OG(r,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?OS(r,n.activeRange,s):r;case"REMOVE_EVENTS":return l7e(r,e.eventStore);case"REMOVE_EVENT_SOURCE":return _1e(r,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return VP(r,l=>!l.sourceId);case"REMOVE_ALL_EVENTS":return jp();default:return r}}function p7e(r,e,t,n,s,l){if(e&&t===e.latestFetchId){let c=Y6(C1e(s,e,l),e,l);return n&&(c=OS(c,n,l)),OG(_1e(r,e.sourceId),c)}return r}function g7e(r,e,t,n,s){const{defIdMap:l,instanceIdMap:c}=y7e(r);let f=Y6(C1e(t,e,s),e,s,!1,l,c);return OS(f,n,s)}function C1e(r,e,t){let n=t.options.eventDataTransform,s=e?e.eventDataTransform:null;return s&&(r=S1e(r,s)),n&&(r=S1e(r,n)),r}function S1e(r,e){let t;if(!e)t=r;else{t=[];for(let n of r){let s=e(n);s?t.push(s):s==null&&t.push(n)}}return t}function m7e(r,e,t,n){return t&&(e=OS(e,t,n)),OG(r,e)}function E1e(r,e,t){let{defs:n}=r,s=sy(r.instances,l=>n[l.defId].allDay?l:Object.assign(Object.assign({},l),{range:{start:t.createMarker(e.toDate(l.range.start,l.forcedStartTzo)),end:t.createMarker(e.toDate(l.range.end,l.forcedEndTzo))},forcedStartTzo:t.canComputeOffset?null:l.forcedStartTzo,forcedEndTzo:t.canComputeOffset?null:l.forcedEndTzo}));return{defs:n,instances:s}}function _1e(r,e){return VP(r,t=>t.sourceId!==e)}function v7e(r,e){return{defs:r.defs,instances:IS(r.instances,t=>!e[t.instanceId])}}function y7e(r){const{defs:e,instances:t}=r,n={},s={};for(let l in e){const c=e[l],{publicId:f}=c;f&&(n[f]=l)}for(let l in t){const c=t[l],f=e[c.defId],{publicId:h}=f;h&&(s[h]=l)}return{defIdMap:n,instanceIdMap:s}}class zP{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){b7e(this.handlers,e,t)}off(e,t){w7e(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],s=this.options&&this.options[e],l=[].concat(s||[],n);for(let c of l)c.apply(this.thisContext,t)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function b7e(r,e,t){(r[e]||(r[e]=[])).push(t)}function w7e(r,e,t){t?r[e]&&(r[e]=r[e].filter(n=>n!==t)):delete r[e]}const C7e={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function S7e(r,e){return Y6(E7e(r),null,e)}function E7e(r){let e;return r===!0?e=[{}]:Array.isArray(r)?e=r.filter(t=>t.daysOfWeek):typeof r=="object"&&r?e=[r]:e=[],e=e.map(t=>Object.assign(Object.assign({},C7e),t)),e}function B1e(r,e,t){t.emitter.trigger("select",Object.assign(Object.assign({},RG(r,t)),{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view}))}function _7e(r,e){e.emitter.trigger("unselect",{jsEvent:r?r.origEvent:null,view:e.viewApi||e.calendarApi.view})}function RG(r,e){let t={};for(let n of e.pluginHooks.dateSpanTransforms)Object.assign(t,n(r,e));return Object.assign(t,U7e(r,e.dateEnv)),t}function x1e(r,e,t){let{dateEnv:n,options:s}=t,l=e;return r?(l=$c(l),l=n.add(l,s.defaultAllDayEventDuration)):l=n.add(l,s.defaultTimedEventDuration),l}function PG(r,e,t,n){let s=jP(r.defs,e),l=jp();for(let c in r.defs){let f=r.defs[c];l.defs[c]=B7e(f,s[c],t,n)}for(let c in r.instances){let f=r.instances[c],h=l.defs[f.defId];l.instances[c]=x7e(f,h,s[f.defId],t,n)}return l}function B7e(r,e,t,n){let s=t.standardProps||{};s.hasEnd==null&&e.durationEditable&&(t.startDelta||t.endDelta)&&(s.hasEnd=!0);let l=Object.assign(Object.assign(Object.assign({},r),s),{ui:Object.assign(Object.assign({},r.ui),s.ui)});t.extendedProps&&(l.extendedProps=Object.assign(Object.assign({},l.extendedProps),t.extendedProps));for(let c of n.pluginHooks.eventDefMutationAppliers)c(l,t,n);return!l.hasEnd&&n.options.forceEventDuration&&(l.hasEnd=!0),l}function x7e(r,e,t,n,s){let{dateEnv:l}=s,c=n.standardProps&&n.standardProps.allDay===!0,f=n.standardProps&&n.standardProps.hasEnd===!1,h=Object.assign({},r);return c&&(h.range=f1e(h.range)),n.datesDelta&&t.startEditable&&(h.range={start:l.add(h.range.start,n.datesDelta),end:l.add(h.range.end,n.datesDelta)}),n.startDelta&&t.durationEditable&&(h.range={start:l.add(h.range.start,n.startDelta),end:h.range.end}),n.endDelta&&t.durationEditable&&(h.range={start:h.range.start,end:l.add(h.range.end,n.endDelta)}),f&&(h.range={start:h.range.start,end:x1e(e.allDay,h.range.start,s)}),e.allDay&&(h.range={start:$c(h.range.start),end:$c(h.range.end)}),h.range.end<h.range.start&&(h.range.end=x1e(e.allDay,h.range.start,s)),h}class X_{constructor(e,t){this.context=e,this.internalEventSource=t}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 hu{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in p1e)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")t=HP[e](t),this.mutate({standardProps:{publicId:t}});else if(e in HP)t=HP[e](t),this.mutate({standardProps:{[e]:t}});else if(e in $P){let n=$P[e](t);e==="color"?n={backgroundColor:t,borderColor:t}:e==="editable"?n={startEditable:t,durationEditable:t}:n={[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,s=n.createMarker(e);if(s&&this._instance){let l=this._instance.range,c=Y_(l.start,s,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:c}):this.mutate({startDelta:c})}}setEnd(e,t={}){let{dateEnv:n}=this._context,s;if(!(e!=null&&(s=n.createMarker(e),!s))&&this._instance)if(s){let l=Y_(this._instance.range.end,s,n,t.granularity);this.mutate({endDelta:l})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let{dateEnv:s}=this._context,l={allDay:n.allDay},c=s.createMarker(e),f;if(c&&!(t!=null&&(f=s.createMarker(t),!f))&&this._instance){let h=this._instance.range;n.allDay===!0&&(h=f1e(h));let m=Y_(h.start,c,s,n.granularity);if(f){let b=Y_(h.end,f,s,n.granularity);XOe(m,b)?this.mutate({datesDelta:m,standardProps:l}):this.mutate({startDelta:m,endDelta:b,standardProps:l})}else l.hasEnd=!1,this.mutate({datesDelta:m,standardProps:l})}}moveStart(e){let t=Ya(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=Ya(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=Ya(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:s}=t;s==null&&(s=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=s),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,s=Fu(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,s,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,s,{forcedTzo:n.forcedStartTzo})}mutate(e){let t=this._instance;if(t){let n=this._def,s=this._context,{eventStore:l}=s.getCurrentData(),c=NG(l,t.instanceId);c=PG(c,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,s);let h=new hu(s,n,t);this._def=c.defs[n.defId],this._instance=c.instances[t.instanceId],s.dispatch({type:"MERGE_EVENTS",eventStore:c}),s.emitter.trigger("eventChange",{oldEvent:h,event:this,relatedEvents:RS(c,s,t),revert(){s.dispatch({type:"RESET_EVENTS",eventStore:l})}})}}remove(){let e=this._context,t=T1e(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new X_(this._context,this._context.getCurrentData().eventSources[e]):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 e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.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(e={}){let t=this._def,{ui:n}=t,{startStr:s,endStr:l}=this,c={allDay:t.allDay};return t.title&&(c.title=t.title),s&&(c.start=s),l&&(c.end=l),t.publicId&&(c.id=t.publicId),t.groupId&&(c.groupId=t.groupId),t.url&&(c.url=t.url),n.display&&n.display!=="auto"&&(c.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?c.color=n.backgroundColor:(n.backgroundColor&&(c.backgroundColor=n.backgroundColor),n.borderColor&&(c.borderColor=n.borderColor)),n.textColor&&(c.textColor=n.textColor),n.classNames.length&&(c.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(c,t.extendedProps):c.extendedProps=t.extendedProps),c}toJSON(){return this.toPlainObject()}}function T1e(r){let e=r._def,t=r._instance;return{defs:{[e.defId]:e},instances:t?{[t.instanceId]:t}:{}}}function RS(r,e,t){let{defs:n,instances:s}=r,l=[],c=t?t.instanceId:"";for(let f in s){let h=s[f],m=n[h.defId];h.instanceId!==c&&l.push(new hu(e,m,h))}return l}function k1e(r,e,t,n){let s={},l={},c={},f=[],h=[],m=jP(r.defs,e);for(let b in r.defs){let S=r.defs[b];m[S.defId].display==="inverse-background"&&(S.groupId?(s[S.groupId]=[],c[S.groupId]||(c[S.groupId]=S)):l[b]=[])}for(let b in r.instances){let S=r.instances[b],T=r.defs[S.defId],_=m[T.defId],F=S.range,R=!T.allDay&&n?A1e(F,n):F,N=NS(R,t);N&&(_.display==="inverse-background"?T.groupId?s[T.groupId].push(N):l[S.defId].push(N):_.display!=="none"&&(_.display==="background"?f:h).push({def:T,ui:_,instance:S,range:N,isStart:R.start&&R.start.valueOf()===N.start.valueOf(),isEnd:R.end&&R.end.valueOf()===N.end.valueOf()}))}for(let b in s){let S=s[b],T=d1e(S,t);for(let _ of T){let F=c[b],R=m[F.defId];f.push({def:F,ui:R,instance:null,range:_,isStart:!1,isEnd:!1})}}for(let b in l){let S=l[b],T=d1e(S,t);for(let _ of T)f.push({def:r.defs[b],ui:m[b],instance:null,range:_,isStart:!1,isEnd:!1})}return{bg:f,fg:h}}function T7e(r){return r.ui.display==="background"||r.ui.display==="inverse-background"}function F1e(r,e){r.fcSeg=e}function J_(r){return r.fcSeg||r.parentNode.fcSeg||null}function jP(r,e){return sy(r,t=>I1e(t,e))}function I1e(r,e){let t=[];return e[""]&&t.push(e[""]),e[r.defId]&&t.push(e[r.defId]),t.push(r.ui),y1e(t)}function D1e(r,e){let t=r.map(k7e);return t.sort((n,s)=>jOe(n,s,e)),t.map(n=>n._seg)}function k7e(r){let{eventRange:e}=r,t=e.def,n=e.instance?e.instance.range:e.range,s=n.start?n.start.valueOf():0,l=n.end?n.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},t.extendedProps),t),{id:t.publicId,start:s,end:l,duration:l-s,allDay:Number(t.allDay),_seg:r})}function F7e(r,e){let{pluginHooks:t}=e,n=t.isDraggableTransformers,{def:s,ui:l}=r.eventRange,c=l.startEditable;for(let f of n)c=f(c,s,l,e);return c}function I7e(r,e){return r.isStart&&r.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function D7e(r,e){return r.isEnd&&r.eventRange.ui.durationEditable}function N1e(r,e,t,n,s,l,c){let{dateEnv:f,options:h}=t,{displayEventTime:m,displayEventEnd:b}=h,S=r.eventRange.def,T=r.eventRange.instance;m==null&&(m=n!==!1),b==null&&(b=s!==!1);let _=T.range.start,F=T.range.end,R=r.start||r.eventRange.range.start,N=r.end||r.eventRange.range.end,L=$c(_).valueOf()===$c(R).valueOf(),V=$c(y2(F,-1)).valueOf()===$c(y2(N,-1)).valueOf();return m&&!S.allDay&&(L||V)?(R=L?_:R,N=V?F:N,b&&S.hasEnd?f.formatRange(R,N,e,{forcedStartTzo:T.forcedStartTzo,forcedEndTzo:T.forcedEndTzo}):f.format(R,e,{forcedTzo:T.forcedStartTzo})):""}function C2(r,e,t){let n=r.eventRange.range;return{isPast:n.end<=(t||e.start),isFuture:n.start>=(t||e.end),isToday:e&&ay(e,n.start)}}function N7e(r){let e=["fc-event"];return r.isMirror&&e.push("fc-event-mirror"),r.isDraggable&&e.push("fc-event-draggable"),(r.isStartResizable||r.isEndResizable)&&e.push("fc-event-resizable"),r.isDragging&&e.push("fc-event-dragging"),r.isResizing&&e.push("fc-event-resizing"),r.isSelected&&e.push("fc-event-selected"),r.isStart&&e.push("fc-event-start"),r.isEnd&&e.push("fc-event-end"),r.isPast&&e.push("fc-event-past"),r.isToday&&e.push("fc-event-today"),r.isFuture&&e.push("fc-event-future"),e}function O1e(r){return r.instance?r.instance.instanceId:`${r.def.defId}:${r.range.start.toISOString()}`}function R1e(r,e){let{def:t,instance:n}=r.eventRange,{url:s}=t;if(s)return{href:s};let{emitter:l,options:c}=e,{eventInteractive:f}=c;return f==null&&(f=t.interactive,f==null&&(f=!!l.hasHandlers("eventClick"))),f?jme(h=>{l.trigger("eventClick",{el:h.target,event:new hu(e,t,n),jsEvent:h,view:e.viewApi})}):{}}const O7e={start:Hn,end:Hn,allDay:Boolean};function R7e(r,e,t){let n=P7e(r,e),{range:s}=n;if(!s.start)return null;if(!s.end){if(t==null)return null;s.end=e.add(s.start,t)}return n}function P7e(r,e){let{refined:t,extra:n}=CG(r,O7e),s=t.start?e.createMarkerMeta(t.start):null,l=t.end?e.createMarkerMeta(t.end):null,{allDay:c}=t;return c==null&&(c=s&&s.isTimeUnspecified&&(!l||l.isTimeUnspecified)),Object.assign({range:{start:s?s.marker:null,end:l?l.marker:null},allDay:c},n)}function L7e(r,e){return e7e(r.range,e.range)&&r.allDay===e.allDay&&M7e(r,e)}function M7e(r,e){for(let t in e)if(t!=="range"&&t!=="allDay"&&r[t]!==e[t])return!1;for(let t in r)if(!(t in e))return!1;return!0}function U7e(r,e){return Object.assign(Object.assign({},L1e(r.range,e,r.allDay)),{allDay:r.allDay})}function P1e(r,e,t){return Object.assign(Object.assign({},L1e(r,e,t)),{timeZone:e.timeZone})}function L1e(r,e,t){return{start:e.toDate(r.start),end:e.toDate(r.end),startStr:e.formatIso(r.start,{omitTime:t}),endStr:e.formatIso(r.end,{omitTime:t})}}function H7e(r,e,t){let n=m1e({editable:!1},t),s=IG(n.refined,n.extra,"",r.allDay,!0,t);return{def:s,ui:I1e(s,e),instance:kG(s.defId,r.range),range:r.range,isStart:!0,isEnd:!0}}function V7e(r,e,t){let n=!1,s=function(f){n||(n=!0,e(f))},l=function(f){n||(n=!0,t(f))},c=r(s,l);c&&typeof c.then=="function"&&c.then(s,l)}class M1e extends Error{constructor(e,t){super(e),this.response=t}}function $7e(r,e,t){r=r.toUpperCase();const n={method:r};return r==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(t):(n.body=new URLSearchParams(t),n.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,n).then(s=>{if(s.ok)return s.json().then(l=>[l,s],()=>{throw new M1e("Failure parsing JSON",s)});throw new M1e("Request failed",s)})}let LG;function U1e(){return LG==null&&(LG=Q7e()),LG}function Q7e(){if(typeof document>"u")return!0;let r=document.createElement("div");r.style.position="absolute",r.style.top="0px",r.style.left="0px",r.innerHTML="<table><tr><td><div></div></td></tr></table>",r.querySelector("table").style.height="100px",r.querySelector("div").style.height="100%",document.body.appendChild(r);let t=r.querySelector("div").offsetHeight>0;return document.body.removeChild(r),t}class z7e extends ql{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{LP(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{LP(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,s=n||t.height==="auto"||t.contentHeight==="auto",l=!s&&t.height!=null?t.height:"",c=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return U1e()||c.push("fc-liquid-hack"),e.children(c,l,s,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class eB{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function j7e(r,e){return{component:r,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function MG(r){return{[r.component.uid]:r}}const UG={};class tB extends Qp{constructor(e,t){super(e,t),this.handleRefresh=()=>{let n=this.computeTiming();n.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(n.state),this.clearTimeout(),this.setTimeout(n.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:e,context:t}=this,n=t.nowManager.getDateMarker(),{nowIndicatorSnap:s}=t.options;s==="auto"&&(s=/year|month|week|day/.test(e.unit)||(e.unitValue||1)===1);let l,c;return s?(l=t.dateEnv.startOf(n,e.unit),c=t.dateEnv.add(l,Ya(1,e.unit)).valueOf()-n.valueOf()):(l=n,c=1e3*60),c=Math.min(1e3*60*60*24,c),{state:{nowDate:l,todayRange:W7e(l)},waitMs:c}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{const t=this.computeTiming();this.setState(t.state,()=>{this.setTimeout(t.waitMs)})},e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}tB.contextType=iy;function W7e(r){let e=$c(r),t=Bf(e,1);return{start:e,end:t}}class q7e{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering(()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,t){let n=this.getCurrentData(),s;t=t||"day",s=n.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),s?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:s.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:t,toolbarConfig:n}=this.getCurrentData(),s=[].concat(n.header?n.header.viewsWithButtons:[],n.footer?n.footer.viewsWithButtons:[]),l,c;for(let f in t)s.push(f);for(l=0;l<s.length;l+=1)if(c=t[s[l]],c&&c.singleUnit===e)return c;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.nowManager.getDateMarker()})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=Ya(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),Fu(t))}formatRange(e,t,n){let{dateEnv:s}=this.getCurrentData();return s.formatRange(s.createMarker(e),s.createMarker(t),Fu(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;t==null?e.start!=null?n=e:n={start:e,end:null}:n={start:e,end:t};let s=this.getCurrentData(),l=R7e(n,s.dateEnv,Ya({days:1}));l&&(this.dispatch({type:"SELECT_DATES",selection:l}),B1e(l,null,s))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),_7e(e,t))}addEvent(e,t){if(e instanceof hu){let c=e._def,f=e._instance;return this.getCurrentData().eventStore.defs[c.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:DG({def:c,instance:f})}),this.triggerEventAdd(e)),e}let n=this.getCurrentData(),s;if(t instanceof X_)s=t.internalEventSource;else if(typeof t=="boolean")t&&([s]=EG(n.eventSources));else if(t!=null){let c=this.getEventSourceById(t);if(!c)return console.warn(`Could not find an event source with ID "${t}"`),null;s=c.internalEventSource}let l=g1e(e,s,n,!1);if(l){let c=new hu(n,l.def,l.def.recurringDef?null:l.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:DG(l)}),this.triggerEventAdd(c),c}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:T1e(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:s}=t.eventStore;e=String(e);for(let l in n){let c=n[l];if(c.publicId===e){if(c.recurringDef)return new hu(t,c,null);for(let f in s){let h=s[f];if(h.defId===c.defId)return new hu(t,c,h)}}}return null}getEvents(){let e=this.getCurrentData();return RS(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let s in t)n.push(new X_(e,t[s]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let s in n)if(n[s].publicId===e)return new X_(t,n[s]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof X_)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=b1e(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new X_(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=Ya(e);t&&this.trigger("_scrollRequest",{time:t})}}function G7e(r,e){return r.left>=e.left&&r.left<e.right&&r.top>=e.top&&r.top<e.bottom}function H1e(r,e){let t={left:Math.max(r.left,e.left),right:Math.min(r.right,e.right),top:Math.max(r.top,e.top),bottom:Math.min(r.bottom,e.bottom)};return t.left<t.right&&t.top<t.bottom?t:!1}function K7e(r,e){return{left:Math.min(Math.max(r.left,e.left),e.right),top:Math.min(Math.max(r.top,e.top),e.bottom)}}function Z7e(r){return{left:(r.left+r.right)/2,top:(r.top+r.bottom)/2}}function Y7e(r,e){return{left:r.left-e.left,top:r.top-e.top}}const HG=jp();class X7e{constructor(){this.getKeysForEventDefs=li(this._getKeysForEventDefs),this.splitDateSelection=li(this._splitDateSpan),this.splitEventStore=li(this._splitEventStore),this.splitIndividualUi=li(this._splitIndividualUi),this.splitEventDrag=li(this._splitInteraction),this.splitEventResize=li(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),s=this.splitDateSelection(e.dateSelection),l=this.splitIndividualUi(e.eventUiBases,n),c=this.splitEventStore(e.eventStore,n),f=this.splitEventDrag(e.eventDrag),h=this.splitEventResize(e.eventResize),m={};this.eventUiBuilders=sy(t,(b,S)=>this.eventUiBuilders[S]||li(J7e));for(let b in t){let S=t[b],T=c[b]||HG,_=this.eventUiBuilders[b];m[b]={businessHours:S.businessHours||e.businessHours,dateSelection:s[b]||null,eventStore:T,eventUiBases:_(e.eventUiBases[""],S.ui,l[b]),eventSelection:T.instances[e.eventSelection]?e.eventSelection:"",eventDrag:f[b]||null,eventResize:h[b]||null}}return m}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let s of n)t[s]=e}return t}_getKeysForEventDefs(e){return sy(e.defs,t=>this.getKeysForEventDef(t))}_splitEventStore(e,t){let{defs:n,instances:s}=e,l={};for(let c in n)for(let f of t[c])l[f]||(l[f]=jp()),l[f].defs[c]=n[c];for(let c in s){let f=s[c];for(let h of t[f.defId])l[h]&&(l[h].instances[c]=f)}return l}_splitIndividualUi(e,t){let n={};for(let s in e)if(s)for(let l of t[s])n[l]||(n[l]={}),n[l][s]=e[s];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),s=this._getKeysForEventDefs(e.mutatedEvents),l=this._splitEventStore(e.mutatedEvents,s),c=f=>{t[f]||(t[f]={affectedEvents:n[f]||HG,mutatedEvents:l[f]||HG,isEvent:e.isEvent})};for(let f in n)c(f);for(let f in l)c(f)}return t}}function J7e(r,e,t){let n=[];r&&n.push(r),e&&n.push(e);let s={"":y1e(n)};return t&&Object.assign(s,t),s}function V1e(r,e,t,n){return{dow:r.getUTCDay(),isDisabled:!!(n&&(!n.activeRange||!ay(n.activeRange,r))),isOther:!!(n&&!ay(n.currentRange,r)),isToday:!!(e&&ay(e,r)),isPast:!!(e&&r<e.start),isFuture:!!(e&&r>=e.end)}}function VG(r,e){let t=["fc-day",`fc-day-${rRe[r.dow]}`];return r.isDisabled?t.push("fc-day-disabled"):(r.isToday&&(t.push("fc-day-today"),t.push(e.getClass("today"))),r.isPast&&t.push("fc-day-past"),r.isFuture&&t.push("fc-day-future"),r.isOther&&t.push("fc-day-other")),t}const ePe=Fu({year:"numeric",month:"long",day:"numeric"}),tPe=Fu({week:"long"});function WP(r,e,t="day",n=!0){const{dateEnv:s,options:l,calendarApi:c}=r;let f=s.format(e,t==="week"?tPe:ePe);if(l.navLinks){let h=s.toDate(e);const m=b=>{let S=t==="day"?l.navLinkDayClick:t==="week"?l.navLinkWeekClick:null;typeof S=="function"?S.call(c,s.toDate(e),b):(typeof S=="string"&&(t=S),c.zoomTo(e,t))};return Object.assign({title:G6(l.navLinkHint,[f,h],f),"data-navlink":""},n?zme(m):{onClick:m})}return{"aria-label":f}}let $G=null;function nPe(){return $G===null&&($G=rPe()),$G}function rPe(){let r=document.createElement("div");q6(r,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),r.innerHTML="<div></div>",document.body.appendChild(r);let t=r.firstChild.getBoundingClientRect().left>r.getBoundingClientRect().left;return dG(r),t}let QG;function oPe(){return QG||(QG=sPe()),QG}function sPe(){let r=document.createElement("div");r.style.overflow="scroll",r.style.position="absolute",r.style.top="-9999px",r.style.left="-9999px",document.body.appendChild(r);let e=$1e(r);return document.body.removeChild(r),e}function $1e(r){return{x:r.offsetHeight-r.clientHeight,y:r.offsetWidth-r.clientWidth}}function iPe(r,e=!1){let t=window.getComputedStyle(r),n=parseInt(t.borderLeftWidth,10)||0,s=parseInt(t.borderRightWidth,10)||0,l=parseInt(t.borderTopWidth,10)||0,c=parseInt(t.borderBottomWidth,10)||0,f=$1e(r),h=f.y-n-s,m=f.x-l-c,b={borderLeft:n,borderRight:s,borderTop:l,borderBottom:c,scrollbarBottom:m,scrollbarLeft:0,scrollbarRight:0};return nPe()&&t.direction==="rtl"?b.scrollbarLeft=h:b.scrollbarRight=h,e&&(b.paddingLeft=parseInt(t.paddingLeft,10)||0,b.paddingRight=parseInt(t.paddingRight,10)||0,b.paddingTop=parseInt(t.paddingTop,10)||0,b.paddingBottom=parseInt(t.paddingBottom,10)||0),b}function aPe(r,e=!1,t){let n=zG(r),s=iPe(r,e),l={left:n.left+s.borderLeft+s.scrollbarLeft,right:n.right-s.borderRight-s.scrollbarRight,top:n.top+s.borderTop,bottom:n.bottom-s.borderBottom-s.scrollbarBottom};return e&&(l.left+=s.paddingLeft,l.right-=s.paddingRight,l.top+=s.paddingTop,l.bottom-=s.paddingBottom),l}function zG(r){let e=r.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function lPe(r){let e=Q1e(r),t=r.getBoundingClientRect();for(let n of e){let s=H1e(t,n.getBoundingClientRect());if(s)t=s;else return null}return t}function Q1e(r){let e=[];for(;r instanceof HTMLElement;){let t=window.getComputedStyle(r);if(t.position==="fixed")break;/(auto|scroll)/.test(t.overflow+t.overflowY+t.overflowX)&&e.push(r),r=r.parentNode}return e}class nB{constructor(e,t,n,s){this.els=t;let l=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(l.left),s&&this.buildElVerticals(l.top)}buildElHorizontals(e){let t=[],n=[];for(let s of this.els){let l=s.getBoundingClientRect();t.push(l.left-e),n.push(l.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let s of this.els){let l=s.getBoundingClientRect();t.push(l.top-e),n.push(l.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let{lefts:t,rights:n}=this,s=t.length,l;for(l=0;l<s;l+=1)if(e>=t[l]&&e<n[l])return l}topToIndex(e){let{tops:t,bottoms:n}=this,s=t.length,l;for(l=0;l<s;l+=1)if(e>=t[l]&&e<n[l])return l}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return qP(this.tops||[],e.tops||[])&&qP(this.bottoms||[],e.bottoms||[])&&qP(this.lefts||[],e.lefts||[])&&qP(this.rights||[],e.rights||[])}}function qP(r,e){const t=r.length;if(t!==e.length)return!1;for(let n=0;n<t;n++)if(Math.round(r[n])!==Math.round(e[n]))return!1;return!0}class jG{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 cPe extends jG{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class uPe extends jG{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Z1 extends ql{constructor(){super(...arguments),this.uid=xS()}prepareHits(){}queryHit(e,t,n,s){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!BA(e,".fc-event-mirror")}isValidDateDownEl(e){return!BA(e,".fc-event:not(.fc-bg-event)")&&!BA(e,".fc-more-link")&&!BA(e,"a[data-navlink]")&&!BA(e,".fc-popover")}}class z1e{constructor(e=t=>t.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){const s=Object.assign(Object.assign({},t),{span:qG(t.span,e.touchingEntry.span)});n.push(s),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}splitEntry(e,t,n){let s=e.span,l=t.span;s.start<l.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.start,end:l.start}},n),s.end>l.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:l.end,end:s.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:s}=this;t.lateral===-1?(GG(s,t.level,t.levelCoord),GG(n,t.level,[e])):GG(n[t.level],t.lateral,e),this.stackCnts[PS(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:s,stackCnts:l}=this,c=t.length,f=0,h=-1,m=-1,b=null,S=0;for(let F=0;F<c;F+=1){const R=t[F];if(!s&&R>=f+this.getEntryThickness(e))break;let N=n[F],L,V=KG(N,e.span.start,WG),P=V[0]+V[1];for(;(L=N[P])&&L.span.start<e.span.end;){let W=R+this.getEntryThickness(L);W>f&&(f=W,b=L,h=F,m=P),W===f&&(S=Math.max(S,l[PS(L)]+1)),P+=1}}let T=0;if(b)for(T=h+1;T<c&&t[T]<f;)T+=1;let _=-1;return T<c&&t[T]===f&&(_=KG(n[T],e.span.end,WG)[0]),{touchingLevel:h,touchingLateral:m,touchingEntry:b,stackCnt:S,levelCoord:f,level:T,lateral:_}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,s=[];for(let l=0;l<n;l+=1){let c=e[l],f=t[l];for(let h of c)s.push(Object.assign(Object.assign({},h),{thickness:this.getEntryThickness(h),levelCoord:f}))}return s}}function WG(r){return r.span.end}function PS(r){return r.index+":"+r.span.start}function dPe(r){let e=[];for(let t of r){let n=[],s={span:t.span,entries:[t]};for(let l of e)qG(l.span,s.span)?s={entries:l.entries.concat(s.entries),span:fPe(l.span,s.span)}:n.push(l);n.push(s),e=n}return e}function fPe(r,e){return{start:Math.min(r.start,e.start),end:Math.max(r.end,e.end)}}function qG(r,e){let t=Math.max(r.start,e.start),n=Math.min(r.end,e.end);return t<n?{start:t,end:n}:null}function GG(r,e,t){r.splice(e,0,t)}function KG(r,e,t){let n=0,s=r.length;if(!s||e<t(r[n]))return[0,0];if(e>t(r[s-1]))return[s,0];for(;n<s;){let l=Math.floor(n+(s-n)/2),c=t(r[l]);if(e<c)s=l;else if(e>c)n=l+1;else return[l,1]}return[n,0]}class APe{constructor(e,t){this.emitter=new zP}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const ZG={};function hPe(r,e){return!r||e>10?Fu({weekday:"short"}):e>1?Fu({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Fu({weekday:"long"})}const j1e="fc-col-header-cell";function W1e(r){return r.text}class pPe extends ql{render(){let{dateEnv:e,options:t,theme:n,viewApi:s}=this.context,{props:l}=this,{date:c,dateProfile:f}=l,h=V1e(c,l.todayRange,null,f),m=[j1e].concat(VG(h,n)),b=e.format(c,l.dayHeaderFormat),S=!h.isDisabled&&l.colCnt>1?WP(this.context,c):{},T=e.toDate(c);e.namedTimeZoneImpl&&(T=y2(T,36e5));let _=Object.assign(Object.assign(Object.assign({date:T,view:s},l.extraRenderProps),{text:b}),h);return Qt(zp,{elTag:"th",elClasses:m,elAttrs:Object.assign({role:"columnheader",colSpan:l.colSpan,"data-date":h.isDisabled?void 0:vG(c)},l.extraDataAttrs),renderProps:_,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:W1e,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},F=>Qt("div",{className:"fc-scrollgrid-sync-inner"},!h.isDisabled&&Qt(F,{elTag:"a",elAttrs:S,elClasses:["fc-col-header-cell-cushion",l.isSticky&&"fc-sticky"]})))}}const gPe=Fu({weekday:"long"});class mPe extends ql{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:s,options:l}=this.context,c=Bf(new Date(2592e5),e.dow),f={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},h=t.format(c,e.dayHeaderFormat),m=Object.assign(Object.assign(Object.assign(Object.assign({date:c},f),{view:s}),e.extraRenderProps),{text:h});return Qt(zp,{elTag:"th",elClasses:[j1e,...VG(f,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:m,generatorName:"dayHeaderContent",customGenerator:l.dayHeaderContent,defaultGenerator:W1e,classNameGenerator:l.dayHeaderClassNames,didMount:l.dayHeaderDidMount,willUnmount:l.dayHeaderWillUnmount},b=>Qt("div",{className:"fc-scrollgrid-sync-inner"},Qt(b,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(c,gPe)}})))}}class q1e extends ql{constructor(){super(...arguments),this.createDayHeaderFormatter=li(vPe)}render(){let{context:e}=this,{dates:t,dateProfile:n,datesRepDistinctDays:s,renderIntro:l}=this.props,c=this.createDayHeaderFormatter(e.options.dayHeaderFormat,s,t.length);return Qt(tB,{unit:"day"},(f,h)=>Qt("tr",{role:"row"},l&&l("day"),t.map(m=>s?Qt(pPe,{key:m.toISOString(),date:m,dateProfile:n,todayRange:h,colCnt:t.length,dayHeaderFormat:c}):Qt(mPe,{key:m.getUTCDay(),dow:m.getUTCDay(),dayHeaderFormat:c}))))}}function vPe(r,e,t){return r||hPe(e,t)}class G1e{constructor(e,t){let n=e.start,{end:s}=e,l=[],c=[],f=-1;for(;n<s;)t.isHiddenDay(n)?l.push(f+.5):(f+=1,l.push(f),c.push(n)),n=Bf(n,1);this.dates=c,this.indices=l,this.cnt=c.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(Bf(e.end,-1)),s=Math.max(0,t),l=Math.min(this.cnt-1,n);return s=Math.ceil(s),l=Math.floor(l),s<=l?{firstIndex:s,lastIndex:l,isStart:t===s,isEnd:n===l}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(TS(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}class K1e{constructor(e,t){let{dates:n}=e,s,l,c;if(t){for(l=n[0].getUTCDay(),s=1;s<n.length&&n[s].getUTCDay()!==l;s+=1);c=Math.ceil(n.length/s)}else c=1,s=n.length;this.rowCnt=c,this.colCnt=s,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let s=0;s<this.colCnt;s+=1)n.push(this.buildCell(t,s));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),s=[];if(n){let{firstIndex:l,lastIndex:c}=n,f=l;for(;f<=c;){let h=Math.floor(f/t),m=Math.min((h+1)*t,c+1);s.push({row:h,firstCol:f%t,lastCol:(m-1)%t,isStart:n.isStart&&f===l,isEnd:n.isEnd&&m-1===c}),f=m}}return s}}class Z1e{constructor(){this.sliceBusinessHours=li(this._sliceBusinessHours),this.sliceDateSelection=li(this._sliceDateSpan),this.sliceEventStore=li(this._sliceEventStore),this.sliceEventDrag=li(this._sliceInteraction),this.sliceEventResize=li(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,s,...l){let{eventUiBases:c}=e,f=this.sliceEventStore(e.eventStore,c,t,n,...l);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,c,s,...l),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,s,...l),fgEventSegs:f.fg,bgEventSegs:f.bg,eventDrag:this.sliceEventDrag(e.eventDrag,c,t,n,...l),eventResize:this.sliceEventResize(e.eventResize,c,t,n,...l),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,s,...l){return this._sliceDateSpan({range:{start:e,end:y2(e,1)},allDay:!1},t,n,{},s,...l)}_sliceBusinessHours(e,t,n,s,...l){return e?this._sliceEventStore(OS(e,GP(t,!!n),s),{},t,n,...l).bg:[]}_sliceEventStore(e,t,n,s,...l){if(e){let c=k1e(e,t,GP(n,!!s),s);return{bg:this.sliceEventRanges(c.bg,l),fg:this.sliceEventRanges(c.fg,l)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,s,...l){if(!e)return null;let c=k1e(e.mutatedEvents,t,GP(n,!!s),s);return{segs:this.sliceEventRanges(c.fg,l),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,s,l,...c){if(!e)return[];let f=GP(t,!!n),h=NS(e.range,f);if(h){e=Object.assign(Object.assign({},e),{range:h});let m=H7e(e,s,l),b=this.sliceRange(e.range,...c);for(let S of b)S.eventRange=m;return b}return[]}sliceEventRanges(e,t){let n=[];for(let s of e)n.push(...this.sliceEventRange(s,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(n={start:n.start,end:Bf(n.start,1)});let s=this.sliceRange(n,...t);for(let l of s)l.eventRange=e,l.isStart=e.isStart&&l.isStart,l.isEnd=e.isEnd&&l.isEnd;return s}}function GP(r,e){let t=r.activeRange;return e?t:{start:y2(t.start,r.slotMinTime.milliseconds),end:y2(t.end,r.slotMaxTime.milliseconds-864e5)}}function Y1e(r,e,t){let{instances:n}=r.mutatedEvents;for(let s in n)if(!UP(e.validRange,n[s].range))return!1;return X1e({eventDrag:r},t)}function yPe(r,e,t){return UP(e.validRange,r.range)?X1e({dateSelection:r},t):!1}function X1e(r,e){let t=e.getCurrentData(),n=Object.assign({businessHours:t.businessHours,dateSelection:"",eventStore:t.eventStore,eventUiBases:t.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},r);return(e.pluginHooks.isPropsValid||bPe)(n,e)}function bPe(r,e,t={},n){return!(r.eventDrag&&!wPe(r,e,t,n)||r.dateSelection&&!CPe(r,e,t,n))}function wPe(r,e,t,n){let s=e.getCurrentData(),l=r.eventDrag,c=l.mutatedEvents,f=c.defs,h=c.instances,m=jP(f,l.isEvent?r.eventUiBases:{"":s.selectionConfig});n&&(m=sy(m,n));let b=v7e(r.eventStore,l.affectedEvents.instances),S=b.defs,T=b.instances,_=jP(S,r.eventUiBases);for(let F in h){let R=h[F],N=R.range,L=m[R.defId],V=f[R.defId];if(!J1e(L.constraints,N,b,r.businessHours,e))return!1;let{eventOverlap:P}=e.options,W=typeof P=="function"?P:null;for(let J in T){let q=T[J];if(TG(N,q.range)&&(_[q.defId].overlap===!1&&l.isEvent||L.overlap===!1||W&&!W(new hu(e,S[q.defId],q),new hu(e,V,R))))return!1}let le=s.eventStore;for(let J of L.allows){let q=Object.assign(Object.assign({},t),{range:R.range,allDay:V.allDay}),ce=le.defs[V.defId],fe=le.instances[F],Ce;if(ce?Ce=new hu(e,ce,fe):Ce=new hu(e,V),!J(RG(q,e),Ce))return!1}}return!0}function CPe(r,e,t,n){let s=r.eventStore,l=s.defs,c=s.instances,f=r.dateSelection,h=f.range,{selectionConfig:m}=e.getCurrentData();if(n&&(m=n(m)),!J1e(m.constraints,h,s,r.businessHours,e))return!1;let{selectOverlap:b}=e.options,S=typeof b=="function"?b:null;for(let T in c){let _=c[T];if(TG(h,_.range)&&(m.overlap===!1||S&&!S(new hu(e,l[_.defId],_),null)))return!1}for(let T of m.allows){let _=Object.assign(Object.assign({},t),f);if(!T(RG(_,e),null))return!1}return!0}function J1e(r,e,t,n,s){for(let l of r)if(!EPe(SPe(l,e,t,n,s),e))return!1;return!0}function SPe(r,e,t,n,s){return r==="businessHours"?YG(OS(n,e,s)):typeof r=="string"?YG(VP(t,l=>l.groupId===r)):typeof r=="object"&&r?YG(OS(r,e,s)):[]}function YG(r){let{instances:e}=r,t=[];for(let n in e)t.push(e[n].range);return t}function EPe(r,e){for(let t of r)if(UP(t,e))return!0;return!1}const KP=/^(visible|hidden)$/;class _Pe extends ql{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,K1(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,s=t&&n,l=["fc-scroller"];return t&&(n?l.push("fc-scroller-liquid-absolute"):l.push("fc-scroller-liquid")),Qt("div",{ref:this.handleEl,className:l.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:s&&-(e.overcomeLeft||0)||"",right:s&&-(e.overcomeRight||0)||"",bottom:s&&-(e.overcomeBottom||0)||"",marginLeft:!s&&-(e.overcomeLeft||0)||"",marginRight:!s&&-(e.overcomeRight||0)||"",marginBottom:!s&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(KP.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let s=0;s<n.length;s+=1)if(n[s].getBoundingClientRect().width>t)return!0;return!1}needsYScrolling(){if(KP.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let s=0;s<n.length;s+=1)if(n[s].getBoundingClientRect().height>t)return!0;return!1}getXScrollbarWidth(){return KP.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return KP.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class ly{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(t,n)=>{let{depths:s,currentMap:l}=this,c=!1,f=!1;t!==null?(c=n in l,l[n]=t,s[n]=(s[n]||0)+1,f=!0):(s[n]-=1,s[n]||(delete l[n],delete this.callbackMap[n],c=!0)),this.masterCallback&&(c&&this.masterCallback(null,String(n)),f&&this.masterCallback(t,String(n)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=n=>{this.handleValue(n,String(e))}),t}collect(e,t,n){return LRe(this.currentMap,e,t,n)}getAll(){return EG(this.currentMap)}}function BPe(r){let e=ROe(r,".fc-scrollgrid-shrink"),t=0;for(let n of e)t=Math.max(t,KOe(n));return Math.ceil(t)}function e0e(r,e){return r.liquid&&e.liquid}function xPe(r,e){return e.maxHeight!=null||e0e(r,e)}function TPe(r,e,t,n){let{expandRows:s}=t;return typeof e.content=="function"?e.content(t):Qt("table",{role:"presentation",className:[e.tableClassName,r.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:s?t.clientHeight:""}},t.tableColGroupNode,Qt(n?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(t):e.rowContent))}function kPe(r,e){return v2(r,e,Lm)}function FPe(r,e){let t=[];for(let n of r){let s=n.span||1;for(let l=0;l<s;l+=1)t.push(Qt("col",{style:{width:n.width==="shrink"?IPe(e):n.width||"",minWidth:n.minWidth||""}}))}return Qt("colgroup",{},...t)}function IPe(r){return r??4}function DPe(r){for(let e of r)if(e.width==="shrink")return!0;return!1}function NPe(r,e){let t=["fc-scrollgrid",e.theme.getClass("table")];return r&&t.push("fc-scrollgrid-liquid"),t}function OPe(r,e){let t=["fc-scrollgrid-section",`fc-scrollgrid-section-${r.type}`,r.className];return e&&r.liquid&&r.maxHeight==null&&t.push("fc-scrollgrid-section-liquid"),r.isSticky&&t.push("fc-scrollgrid-section-sticky"),t}function XG(r){return Qt("div",{className:"fc-scrollgrid-sticky-shim",style:{width:r.clientWidth,minWidth:r.tableMinWidth}})}function ZP(r){let{stickyHeaderDates:e}=r;return(e==null||e==="auto")&&(e=r.height==="auto"||r.viewHeight==="auto"),e}function t0e(r){let{stickyFooterScrollbar:e}=r;return(e==null||e==="auto")&&(e=r.height==="auto"||r.viewHeight==="auto"),e}class JG extends ql{constructor(){super(...arguments),this.processCols=li(e=>e,kPe),this.renderMicroColGroup=li(FPe),this.scrollerRefs=new ly,this.scrollerElRefs=new ly(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:e,state:t,context:n}=this,s=e.sections||[],l=this.processCols(e.cols),c=this.renderMicroColGroup(l,t.shrinkWidth),f=NPe(e.liquid,n);e.collapsibleWidth&&f.push("fc-scrollgrid-collapsible");let h=s.length,m=0,b,S=[],T=[],_=[];for(;m<h&&(b=s[m]).type==="header";)S.push(this.renderSection(b,c,!0)),m+=1;for(;m<h&&(b=s[m]).type==="body";)T.push(this.renderSection(b,c,!1)),m+=1;for(;m<h&&(b=s[m]).type==="footer";)_.push(this.renderSection(b,c,!0)),m+=1;let F=!U1e();const R={role:"rowgroup"};return Qt("table",{role:"grid",className:f.join(" "),style:{height:e.height}},!!(!F&&S.length)&&Qt("thead",R,...S),!!(!F&&T.length)&&Qt("tbody",R,...T),!!(!F&&_.length)&&Qt("tfoot",R,..._),F&&Qt("tbody",R,...S,...T,..._))}renderSection(e,t,n){return"outerContent"in e?Qt(Vc,{key:e.key},e.outerContent):Qt("tr",{key:e.key,role:"presentation",className:OPe(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,s){if("outerContent"in n)return n.outerContent;let{props:l}=this,{forceYScrollbars:c,scrollerClientWidths:f,scrollerClientHeights:h}=this.state,m=xPe(l,e),b=e0e(l,e),S=l.liquid?c?"scroll":m?"auto":"hidden":"visible",T=e.key,_=TPe(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:!l.collapsibleWidth&&f[T]!==void 0?f[T]:null,clientHeight:h[T]!==void 0?h[T]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},s);return Qt(s?"th":"td",{ref:n.elRef,role:"presentation"},Qt("div",{className:`fc-scroller-harness${b?" fc-scroller-harness-liquid":""}`},Qt(_Pe,{ref:this.scrollerRefs.createRef(T),elRef:this.scrollerElRefs.createRef(T),overflowY:S,overflowX:l.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:b,liquidIsAbsolute:!0},_)))}_handleScrollerEl(e,t){let n=RPe(this.props.sections,t);n&&K1(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return DPe(this.props.cols)?BPe(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=oPe(),{scrollerRefs:t,scrollerElRefs:n}=this,s=!1,l={},c={};for(let f in t.currentMap){let h=t.currentMap[f];if(h&&h.needsYScrolling()){s=!0;break}}for(let f of this.props.sections){let h=f.key,m=n.currentMap[h];if(m){let b=m.parentNode;l[h]=Math.floor(b.getBoundingClientRect().width-(s?e.y:0)),c[h]=Math.floor(b.getBoundingClientRect().height)}}return{forceYScrollbars:s,scrollerClientWidths:l,scrollerClientHeights:c}}}JG.addStateEquality({scrollerClientWidths:Lm,scrollerClientHeights:Lm});function RPe(r,e){for(let t of r)if(t.key===e)return t;return null}class eK extends ql{constructor(){super(...arguments),this.buildPublicEvent=li((e,t,n)=>new hu(e,t,n)),this.handleEl=e=>{this.el=e,K1(this.props.elRef,e),e&&F1e(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:s}=e,{eventRange:l}=s,{ui:c}=l,f={event:this.buildPublicEvent(t,l.def,l.instance),view:t.viewApi,timeText:e.timeText,textColor:c.textColor,backgroundColor:c.backgroundColor,borderColor:c.borderColor,isDraggable:!e.disableDragging&&F7e(s,t),isStartResizable:!e.disableResizing&&I7e(s,t),isEndResizable:!e.disableResizing&&D7e(s),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!s.isStart,isEnd:!!s.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return Qt(zp,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...N7e(f),...s.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:f,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&F1e(this.el,this.props.seg)}}class tK extends ql{render(){let{props:e,context:t}=this,{options:n}=t,{seg:s}=e,{ui:l}=s.eventRange,c=n.eventTimeFormat||e.defaultTimeFormat,f=N1e(s,c,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return Qt(eK,Object.assign({},e,{elTag:"a",elStyle:{borderColor:l.borderColor,backgroundColor:l.backgroundColor},elAttrs:R1e(s,t),defaultGenerator:PPe,timeText:f}),(h,m)=>Qt(Vc,null,Qt(h,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:m.textColor}}),!!m.isStartResizable&&Qt("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!m.isEndResizable&&Qt("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}tK.addPropsEquality({seg:Lm});function PPe(r){return Qt("div",{className:"fc-event-main-frame"},r.timeText&&Qt("div",{className:"fc-event-time"},r.timeText),Qt("div",{className:"fc-event-title-container"},Qt("div",{className:"fc-event-title fc-sticky"},r.event.title||Qt(Vc,null," "))))}const nK=r=>Qt(iy.Consumer,null,e=>{let{options:t}=e,n={isAxis:r.isAxis,date:e.dateEnv.toDate(r.date),view:e.viewApi};return Qt(zp,{elRef:r.elRef,elTag:r.elTag||"div",elAttrs:r.elAttrs,elClasses:r.elClasses,elStyle:r.elStyle,renderProps:n,generatorName:"nowIndicatorContent",customGenerator:t.nowIndicatorContent,classNameGenerator:t.nowIndicatorClassNames,didMount:t.nowIndicatorDidMount,willUnmount:t.nowIndicatorWillUnmount},r.children)}),LPe=Fu({day:"numeric"});class rK extends ql{constructor(){super(...arguments),this.refineRenderProps=IP(MPe)}render(){let{props:e,context:t}=this,{options:n}=t,s=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return Qt(zp,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),s.isDisabled?{}:{"data-date":vG(e.date)}),elClasses:[...VG(s,t.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:s,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:s.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount},e.children)}}function oK(r){return!!(r.dayCellContent||xG("dayCellContent",r))}function MPe(r){let{date:e,dateEnv:t,dateProfile:n,isMonthStart:s}=r,l=V1e(e,r.todayRange,null,n),c=r.showDayNumber?t.format(e,s?r.monthStartFormat:LPe):"";return Object.assign(Object.assign(Object.assign({date:t.toDate(e),view:r.viewApi},l),{isMonthStart:s,dayNumberText:c}),r.extraRenderProps)}class n0e extends ql{render(){let{props:e}=this,{seg:t}=e;return Qt(eK,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:UPe,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function UPe(r){let{title:e}=r.event;return e&&Qt("div",{className:"fc-event-title"},r.event.title)}function r0e(r){return Qt("div",{className:`fc-${r}`})}const o0e=r=>Qt(iy.Consumer,null,e=>{let{dateEnv:t,options:n}=e,{date:s}=r,l=n.weekNumberFormat||r.defaultFormat,c=t.computeWeekNumber(s),f=t.format(s,l),h={num:c,text:f,date:s};return Qt(zp,{elRef:r.elRef,elTag:r.elTag,elAttrs:r.elAttrs,elClasses:r.elClasses,elStyle:r.elStyle,renderProps:h,generatorName:"weekNumberContent",customGenerator:n.weekNumberContent,defaultGenerator:HPe,classNameGenerator:n.weekNumberClassNames,didMount:n.weekNumberDidMount,willUnmount:n.weekNumberWillUnmount},r.children)});function HPe(r){return r.text}const sK=10;class VPe extends ql{constructor(){super(...arguments),this.state={titleId:xP()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&K1(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=Hme(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:s}=this,l=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return wOe(Qt("div",Object.assign({},n.extraAttrs,{id:n.id,className:l.join(" "),"aria-labelledby":s.titleId,ref:this.handleRootEl}),Qt("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},Qt("span",{className:"fc-popover-title",id:s.titleId},n.title),Qt("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),Qt("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.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:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:s}=this,l=lPe(t);if(l){let c=s.getBoundingClientRect(),f=n?BA(t,".fc-scrollgrid").getBoundingClientRect().top:l.top,h=e?l.right-c.width:l.left;f=Math.max(f,sK),h=Math.min(h,document.documentElement.clientWidth-sK-c.width),h=Math.max(h,sK);let m=s.offsetParent.getBoundingClientRect();q6(s,{top:f-m.top,left:h-m.left})}}}class $Pe extends Z1{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:s,todayRange:l,dateProfile:c}=n,f=t.format(s,e.dayPopoverFormat);return Qt(rK,{elRef:this.handleRootEl,date:s,dateProfile:c,todayRange:l},(h,m,b)=>Qt(VPe,{elRef:b.ref,id:n.id,title:f,extraClassNames:["fc-more-popover"].concat(b.className||[]),extraAttrs:b,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},oK(e)&&Qt(h,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children))}queryHit(e,t,n,s){let{rootEl:l,props:c}=this;return e>=0&&e<n&&t>=0&&t<s?{dateProfile:c.dateProfile,dateSpan:Object.assign({allDay:!c.forceTimed,range:{start:c.startDate,end:c.endDate}},c.extraDateSpan),dayEl:l,rect:{left:0,top:0,right:n,bottom:s},layer:1}:null}}class s0e extends ql{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:xP()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&K1(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:s}=n.options,l=i0e(t).start;function c(f){let{def:h,instance:m,range:b}=f.eventRange;return{event:new hu(n,h,m),start:n.dateEnv.toDate(b.start),end:n.dateEnv.toDate(b.end),isStart:f.isStart,isEnd:f.isEnd}}typeof s=="function"&&(s=s({date:l,allDay:!!t.allDayDate,allSegs:t.allSegs.map(c),hiddenSegs:t.hiddenSegs.map(c),jsEvent:e,view:n.viewApi})),!s||s==="popover"?this.setState({isPopoverOpen:!0}):typeof s=="string"&&n.calendarApi.zoomTo(l,s)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return Qt(iy.Consumer,null,n=>{let{viewApi:s,options:l,calendarApi:c}=n,{moreLinkText:f}=l,{moreCnt:h}=e,m=i0e(e),b=typeof f=="function"?f.call(c,h):`+${h} ${f}`,S=G6(l.moreLinkHint,[h],b),T={num:h,shortText:`+${h}`,text:b,view:s};return Qt(Vc,null,!!e.moreCnt&&Qt(zp,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),zme(this.handleClick)),{title:S,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:T,generatorName:"moreLinkContent",customGenerator:l.moreLinkContent,defaultGenerator:e.defaultGenerator||QPe,classNameGenerator:l.moreLinkClassNames,didMount:l.moreLinkDidMount,willUnmount:l.moreLinkWillUnmount},e.children),t.isPopoverOpen&&Qt($Pe,{id:t.popoverId,startDate:m.start,endDate:m.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=BA(this.linkEl,".fc-view-harness"))}}function QPe(r){return r.text}function i0e(r){if(r.allDayDate)return{start:r.allDayDate,end:Bf(r.allDayDate,1)};let{hiddenSegs:e}=r;return{start:a0e(e),end:jPe(e)}}function a0e(r){return r.reduce(zPe).eventRange.range.start}function zPe(r,e){return r.eventRange.range.start<e.eventRange.range.start?r:e}function jPe(r){return r.reduce(WPe).eventRange.range.end}function WPe(r,e){return r.eventRange.range.end>e.eventRange.range.end?r:e}class qPe{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class GPe extends qPe{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}const KPe=[],l0e={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"},c0e=Object.assign(Object.assign({},l0e),{buttonHints:{prev:"Previous $0",next:"Next $0",today(r,e){return e==="day"?"Today":`This ${r}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(r){return`Show ${r} more event${r===1?"":"s"}`}});function ZPe(r){let e=r.length>0?r[0].code:"en",t=KPe.concat(r),n={en:c0e};for(let s of t)n[s.code]=s;return{map:n,defaultCode:e}}function u0e(r,e){return typeof r=="object"&&!Array.isArray(r)?d0e(r.code,[r.code],r):YPe(r,e)}function YPe(r,e){let t=[].concat(r||[]),n=XPe(t,e)||c0e;return d0e(r,t,n)}function XPe(r,e){for(let t=0;t<r.length;t+=1){let n=r[t].toLocaleLowerCase().split("-");for(let s=n.length;s>0;s-=1){let l=n.slice(0,s).join("-");if(e[l])return e[l]}}return null}function d0e(r,e,t){let n=SG([l0e,t],["buttonText"]);delete n.code;let{week:s}=n;return delete n.week,{codeArg:r,codes:e,week:s,simpleNumberFormat:new Intl.NumberFormat(r),options:n}}function cy(r){return{id:xS(),name:r.name,premiumReleaseDate:r.premiumReleaseDate?new Date(r.premiumReleaseDate):void 0,deps:r.deps||[],reducers:r.reducers||[],isLoadingFuncs:r.isLoadingFuncs||[],contextInit:[].concat(r.contextInit||[]),eventRefiners:r.eventRefiners||{},eventDefMemberAdders:r.eventDefMemberAdders||[],eventSourceRefiners:r.eventSourceRefiners||{},isDraggableTransformers:r.isDraggableTransformers||[],eventDragMutationMassagers:r.eventDragMutationMassagers||[],eventDefMutationAppliers:r.eventDefMutationAppliers||[],dateSelectionTransformers:r.dateSelectionTransformers||[],datePointTransforms:r.datePointTransforms||[],dateSpanTransforms:r.dateSpanTransforms||[],views:r.views||{},viewPropsTransformers:r.viewPropsTransformers||[],isPropsValid:r.isPropsValid||null,externalDefTransforms:r.externalDefTransforms||[],viewContainerAppends:r.viewContainerAppends||[],eventDropTransformers:r.eventDropTransformers||[],componentInteractions:r.componentInteractions||[],calendarInteractions:r.calendarInteractions||[],themeClasses:r.themeClasses||{},eventSourceDefs:r.eventSourceDefs||[],cmdFormatter:r.cmdFormatter,recurringTypes:r.recurringTypes||[],namedTimeZonedImpl:r.namedTimeZonedImpl,initialView:r.initialView||"",elementDraggingImpl:r.elementDraggingImpl,optionChangeHandlers:r.optionChangeHandlers||{},scrollGridImpl:r.scrollGridImpl||null,listenerRefiners:r.listenerRefiners||{},optionRefiners:r.optionRefiners||{},propSetHandlers:r.propSetHandlers||{}}}function JPe(r,e){let t={},n={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 s(l){for(let c of l){const f=c.name,h=t[f];h===void 0?(t[f]=c.id,s(c.deps),n=tLe(n,c)):h!==c.id&&console.warn(`Duplicate plugin '${f}'`)}}return r&&s(r),s(e),n}function eLe(){let r=[],e=[],t;return(n,s)=>((!t||!v2(n,r)||!v2(s,e))&&(t=JPe(n,s)),r=n,e=s,t)}function tLe(r,e){return{premiumReleaseDate:nLe(r.premiumReleaseDate,e.premiumReleaseDate),reducers:r.reducers.concat(e.reducers),isLoadingFuncs:r.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:r.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},r.eventRefiners),e.eventRefiners),eventDefMemberAdders:r.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},r.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:r.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:r.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:r.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:r.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:r.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:r.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},r.views),e.views),viewPropsTransformers:r.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||r.isPropsValid,externalDefTransforms:r.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:r.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:r.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:r.calendarInteractions.concat(e.calendarInteractions),componentInteractions:r.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},r.themeClasses),e.themeClasses),eventSourceDefs:r.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||r.cmdFormatter,recurringTypes:r.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||r.namedTimeZonedImpl,initialView:r.initialView||e.initialView,elementDraggingImpl:r.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},r.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||r.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},r.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},r.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},r.propSetHandlers),e.propSetHandlers)}}function nLe(r,e){return r===void 0?e:e===void 0?r:new Date(Math.max(r.valueOf(),e.valueOf()))}class S2 extends Z6{}S2.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},S2.prototype.baseIconClass="fc-icon",S2.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"},S2.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},S2.prototype.iconOverrideOption="buttonIcons",S2.prototype.iconOverrideCustomButtonOption="icon",S2.prototype.iconOverridePrefix="fc-icon-";function rLe(r,e){let t={},n;for(n in r)iK(n,t,r,e);for(n in e)iK(n,t,r,e);return t}function iK(r,e,t,n){if(e[r])return e[r];let s=oLe(r,e,t,n);return s&&(e[r]=s),s}function oLe(r,e,t,n){let s=t[r],l=n[r],c=b=>s&&s[b]!==null?s[b]:l&&l[b]!==null?l[b]:null,f=c("component"),h=c("superType"),m=null;if(h){if(h===r)throw new Error("Can't have a custom view type that references itself");m=iK(h,e,t,n)}return!f&&m&&(f=m.component),f?{type:r,component:f,defaults:Object.assign(Object.assign({},m?m.defaults:{}),s?s.rawOptions:{}),overrides:Object.assign(Object.assign({},m?m.overrides:{}),l?l.rawOptions:{})}:null}function f0e(r){return sy(r,sLe)}function sLe(r){let e=typeof r=="function"?{component:r}:r,{component:t}=e;return e.content?t=A0e(e):t&&!(t.prototype instanceof ql)&&(t=A0e(Object.assign(Object.assign({},e),{content:t}))),{superType:e.type,component:t,rawOptions:e}}function A0e(r){return e=>Qt(iy.Consumer,null,t=>Qt(zp,{elTag:"div",elClasses:u1e(t.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:t.options.nextDayThreshold}),generatorName:void 0,customGenerator:r.content,classNameGenerator:r.classNames,didMount:r.didMount,willUnmount:r.willUnmount}))}function iLe(r,e,t,n){let s=f0e(r),l=f0e(e.views),c=rLe(s,l);return sy(c,f=>aLe(f,l,e,t,n))}function aLe(r,e,t,n,s){let l=r.overrides.duration||r.defaults.duration||n.duration||t.duration,c=null,f="",h="",m={};if(l&&(c=lLe(l),c)){let T=gG(c);f=T.unit,T.value===1&&(h=f,m=e[f]?e[f].rawOptions:{})}let b=T=>{let _=T.buttonText||{},F=r.defaults.buttonTextKey;return F!=null&&_[F]!=null?_[F]:_[r.type]!=null?_[r.type]:_[h]!=null?_[h]:null},S=T=>{let _=T.buttonHints||{},F=r.defaults.buttonTextKey;return F!=null&&_[F]!=null?_[F]:_[r.type]!=null?_[r.type]:_[h]!=null?_[h]:null};return{type:r.type,component:r.component,duration:c,durationUnit:f,singleUnit:h,optionDefaults:r.defaults,optionOverrides:Object.assign(Object.assign({},m),r.overrides),buttonTextOverride:b(n)||b(t)||r.overrides.buttonText,buttonTextDefault:b(s)||r.defaults.buttonText||b(K6)||r.type,buttonTitleOverride:S(n)||S(t)||r.overrides.buttonHint,buttonTitleDefault:S(s)||r.defaults.buttonHint||S(K6)}}let h0e={};function lLe(r){let e=JSON.stringify(r),t=h0e[e];return t===void 0&&(t=Ya(r),h0e[e]=t),t}function cLe(r,e){switch(e.type){case"CHANGE_VIEW_TYPE":r=e.viewType}return r}function uLe(r,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return r}}function dLe(r,e,t){let n=r.initialDate;return n!=null?e.createMarker(n):t.getDateMarker()}function fLe(r,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},r),{[e.optionName]:e.rawOptionValue});default:return r}}function ALe(r,e,t,n){let s;switch(e.type){case"CHANGE_VIEW_TYPE":return n.build(e.dateMarker||t);case"CHANGE_DATE":return n.build(e.dateMarker);case"PREV":if(s=n.buildPrev(r,t),s.isValid)return s;break;case"NEXT":if(s=n.buildNext(r,t),s.isValid)return s;break}return r}function hLe(r,e,t){let n=e?e.activeRange:null;return g0e({},wLe(r,t),n,t)}function pLe(r,e,t,n){let s=t?t.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return g0e(r,e.sources,s,n);case"REMOVE_EVENT_SOURCE":return mLe(r,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return t?m0e(r,s,n):r;case"FETCH_EVENT_SOURCES":return aK(r,e.sourceIds?s1e(e.sourceIds):v0e(r,n),s,e.isRefetch||!1,n);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return bLe(r,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return r}}function gLe(r,e,t){let n=e?e.activeRange:null;return aK(r,v0e(r,t),n,!0,t)}function p0e(r){for(let e in r)if(r[e].isFetching)return!0;return!1}function g0e(r,e,t,n){let s={};for(let l of e)s[l.sourceId]=l;return t&&(s=m0e(s,t,n)),Object.assign(Object.assign({},r),s)}function mLe(r,e){return IS(r,t=>t.sourceId!==e)}function m0e(r,e,t){return aK(r,IS(r,n=>vLe(n,e,t)),e,!1,t)}function vLe(r,e,t){return y0e(r,t)?!t.options.lazyFetching||!r.fetchRange||r.isFetching||e.start<r.fetchRange.start||e.end>r.fetchRange.end:!r.latestFetchId}function aK(r,e,t,n,s){let l={};for(let c in r){let f=r[c];e[c]?l[c]=yLe(f,t,n,s):l[c]=f}return l}function yLe(r,e,t,n){let{options:s,calendarApi:l}=n,c=n.pluginHooks.eventSourceDefs[r.sourceDefId],f=xS();return c.fetch({eventSource:r,range:e,isRefetch:t,context:n},h=>{let{rawEvents:m}=h;s.eventSourceSuccess&&(m=s.eventSourceSuccess.call(l,m,h.response)||m),r.success&&(m=r.success.call(l,m,h.response)||m),n.dispatch({type:"RECEIVE_EVENTS",sourceId:r.sourceId,fetchId:f,fetchRange:e,rawEvents:m})},h=>{let m=!1;s.eventSourceFailure&&(s.eventSourceFailure.call(l,h),m=!0),r.failure&&(r.failure(h),m=!0),m||console.warn(h.message,h),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:r.sourceId,fetchId:f,fetchRange:e,error:h})}),Object.assign(Object.assign({},r),{isFetching:!0,latestFetchId:f})}function bLe(r,e,t,n){let s=r[e];return s&&t===s.latestFetchId?Object.assign(Object.assign({},r),{[e]:Object.assign(Object.assign({},s),{isFetching:!1,fetchRange:n})}):r}function v0e(r,e){return IS(r,t=>y0e(t,e))}function wLe(r,e){let t=w1e(e),n=[].concat(r.eventSources||[]),s=[];r.initialEvents&&n.unshift(r.initialEvents),r.events&&n.unshift(r.events);for(let l of n){let c=b1e(l,e,t);c&&s.push(c)}return s}function y0e(r,e){return!e.pluginHooks.eventSourceDefs[r.sourceDefId].ignoreRange}function CLe(r,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return r}}function SLe(r,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return r}}function ELe(r,e){let t;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return t=e.state,{affectedEvents:t.affectedEvents,mutatedEvents:t.mutatedEvents,isEvent:t.isEvent};default:return r}}function _Le(r,e){let t;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return t=e.state,{affectedEvents:t.affectedEvents,mutatedEvents:t.mutatedEvents,isEvent:t.isEvent};default:return r}}function BLe(r,e,t,n,s){let l=r.headerToolbar?b0e(r.headerToolbar,r,e,t,n,s):null,c=r.footerToolbar?b0e(r.footerToolbar,r,e,t,n,s):null;return{header:l,footer:c}}function b0e(r,e,t,n,s,l){let c={},f=[],h=!1;for(let m in r){let b=r[m],S=xLe(b,e,t,n,s,l);c[m]=S.widgets,f.push(...S.viewsWithButtons),h=h||S.hasTitle}return{sectionWidgets:c,viewsWithButtons:f,hasTitle:h}}function xLe(r,e,t,n,s,l){let c=e.direction==="rtl",f=e.customButtons||{},h=t.buttonText||{},m=e.buttonText||{},b=t.buttonHints||{},S=e.buttonHints||{},T=r?r.split(" "):[],_=[],F=!1;return{widgets:T.map(N=>N.split(",").map(L=>{if(L==="title")return F=!0,{buttonName:L};let V,P,W,le,J,q;if(V=f[L])W=ce=>{V.click&&V.click.call(ce.target,ce,ce.target)},(le=n.getCustomButtonIconClass(V))||(le=n.getIconClass(L,c))||(J=V.text),q=V.hint||V.text;else if(P=s[L]){_.push(L),W=()=>{l.changeView(L)},(J=P.buttonTextOverride)||(le=n.getIconClass(L,c))||(J=P.buttonTextDefault);let ce=P.buttonTextOverride||P.buttonTextDefault;q=G6(P.buttonTitleOverride||P.buttonTitleDefault||e.viewHint,[ce,L],ce)}else if(l[L])if(W=()=>{l[L]()},(J=h[L])||(le=n.getIconClass(L,c))||(J=m[L]),L==="prevYear"||L==="nextYear"){let ce=L==="prevYear"?"prev":"next";q=G6(b[ce]||S[ce],[m.year||"year","year"],m[L])}else q=ce=>G6(b[L]||S[L],[m[ce]||ce,ce],m[L]);return{buttonName:L,buttonClick:W,buttonIcon:le,buttonText:J,buttonHint:q}})),viewsWithButtons:_,hasTitle:F}}class TLe{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}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(e){return this.getCurrentData().options[e]}}const kLe=cy({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(r){return Array.isArray(r.events)?r.events:null},fetch(r,e){e({rawEvents:r.eventSource.meta})}}]}),FLe=cy({name:"func-event-source",eventSourceDefs:[{parseMeta(r){return typeof r.events=="function"?r.events:null},fetch(r,e,t){const{dateEnv:n}=r.context,s=r.eventSource.meta;V7e(s.bind(null,P1e(r.range,n)),l=>e({rawEvents:l}),t)}}]}),ILe=cy({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:Hn,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(r){return r.url&&(r.format==="json"||!r.format)?{url:r.url,format:"json",method:(r.method||"GET").toUpperCase(),extraParams:r.extraParams,startParam:r.startParam,endParam:r.endParam,timeZoneParam:r.timeZoneParam}:null},fetch(r,e,t){const{meta:n}=r.eventSource,s=DLe(n,r.range,r.context);$7e(n.method,n.url,s).then(([l,c])=>{e({rawEvents:l,response:c})},t)}}]});function DLe(r,e,t){let{dateEnv:n,options:s}=t,l,c,f,h,m={};return l=r.startParam,l==null&&(l=s.startParam),c=r.endParam,c==null&&(c=s.endParam),f=r.timeZoneParam,f==null&&(f=s.timeZoneParam),typeof r.extraParams=="function"?h=r.extraParams():h=r.extraParams||{},Object.assign(m,h),m[l]=n.formatIso(e.start),m[c]=n.formatIso(e.end),n.timeZone!=="local"&&(m[f]=n.timeZone),m}const NLe=cy({name:"simple-recurring-event",recurringTypes:[{parse(r,e){if(r.daysOfWeek||r.startTime||r.endTime||r.startRecur||r.endRecur){let t={daysOfWeek:r.daysOfWeek||null,startTime:r.startTime||null,endTime:r.endTime||null,startRecur:r.startRecur?e.createMarker(r.startRecur):null,endRecur:r.endRecur?e.createMarker(r.endRecur):null,dateEnv:e},n;return r.duration&&(n=r.duration),!n&&r.startTime&&r.endTime&&(n=JOe(r.endTime,r.startTime)),{allDayGuess:!r.startTime&&!r.endTime,duration:n,typeData:t}}return null},expand(r,e,t){let n=NS(e,{start:r.startRecur,end:r.endRecur});return n?OLe(r.daysOfWeek,r.startTime,r.dateEnv,t,n):[]}}],eventRefiners:{daysOfWeek:Hn,startTime:Ya,endTime:Ya,duration:Ya,startRecur:Hn,endRecur:Hn}});function OLe(r,e,t,n,s){let l=r?s1e(r):null,c=$c(s.start),f=s.end,h=[];for(e&&(e.milliseconds<0?f=Bf(f,1):e.milliseconds>=1e3*60*60*24&&(c=Bf(c,-1)));c<f;){let m;(!l||l[c.getUTCDay()])&&(e?m=n.add(c,e):m=c,h.push(n.createMarker(t.toDate(m)))),c=Bf(c,1)}return h}const RLe=cy({name:"change-handler",optionChangeHandlers:{events(r,e){w0e([r],e)},eventSources:w0e}});function w0e(r,e){let t=EG(e.getCurrentData().eventSources);if(t.length===1&&r.length===1&&Array.isArray(t[0]._raw)&&Array.isArray(r[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:t[0].sourceId,rawEvents:r[0]});return}let n=[];for(let s of r){let l=!1;for(let c=0;c<t.length;c+=1)if(t[c]._raw===s){t.splice(c,1),l=!0;break}l||n.push(s)}for(let s of t)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:s.sourceId});for(let s of n)e.calendarApi.addEventSource(s)}function PLe(r,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},P1e(r.activeRange,e.dateEnv)),{view:e.viewApi}))}function LLe(r,e){let{emitter:t}=e;t.hasHandlers("eventsSet")&&t.trigger("eventsSet",RS(r,e))}const MLe=[kLe,FLe,ILe,NLe,RLe,cy({name:"misc",isLoadingFuncs:[r=>p0e(r.eventSources)],propSetHandlers:{dateProfile:PLe,eventStore:LLe}})];class ULe{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new uG(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t=[],n;for(;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function HLe(r,e,t){let n;return/^(year|month)$/.test(r.currentRangeUnit)?n=r.currentRange:n=r.activeRange,t.formatRange(n.start,n.end,Fu(e.titleFormat||VLe(r)),{isEndExclusive:r.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function VLe(r){let{currentRangeUnit:e}=r;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let t=FP(r.currentRange.start,r.currentRange.end);return t!==null&&t>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class C0e{constructor(){this.resetListeners=new Set}handleInput(e,t){const n=this.dateEnv;if(e!==n&&(typeof t=="function"?this.nowFn=t:n||(this.nowAnchorDate=e.toDate(t?e.createMarker(t):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,n))for(const s of this.resetListeners.values())s()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}}class $Le{constructor(e){this.computeCurrentViewData=li(this._computeCurrentViewData),this.organizeRawLocales=li(ZPe),this.buildLocale=li(u0e),this.buildPluginHooks=eLe(),this.buildDateEnv=li(QLe),this.buildTheme=li(zLe),this.parseToolbars=li(BLe),this.buildViewSpecs=li(iLe),this.buildDateProfileGenerator=IP(jLe),this.buildViewApi=li(WLe),this.buildViewUiProps=IP(KLe),this.buildEventUiBySource=li(qLe,Lm),this.buildEventUiBases=li(GLe),this.parseContextBusinessHours=IP(ZLe),this.buildTitle=li(HLe),this.nowManager=new C0e,this.emitter=new zP,this.actionRunner=new ULe(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=T=>{this.actionRunner.request(T)},this.props=e,this.actionRunner.pause(),this.nowManager=new C0e;let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),s=n.calendarOptions.initialView||n.pluginHooks.initialView,l=this.computeCurrentViewData(s,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(l.options);let c={nowManager:this.nowManager,dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},f=dLe(n.calendarOptions,n.dateEnv,this.nowManager),h=l.dateProfileGenerator.build(f);ay(h.activeRange,f)||(f=h.currentRange.start);for(let T of n.pluginHooks.contextInit)T(c);let m=hLe(n.calendarOptions,h,c),b={dynamicOptionOverrides:t,currentViewType:s,currentDate:f,dateProfile:h,businessHours:this.parseContextBusinessHours(c),eventSources:m,eventUiBases:{},eventStore:jp(),renderableEventStore:jp(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(c).selectionConfig},S=Object.assign(Object.assign({},c),b);for(let T of n.pluginHooks.reducers)Object.assign(b,T(null,null,S));lK(b,c)&&this.emitter.trigger("loading",!0),this.state=b,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;t===void 0?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(t===void 0||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:s}=this,l=fLe(n.dynamicOptionOverrides,e),c=this.computeOptionsData(t.optionOverrides,l,t.calendarApi),f=cLe(n.currentViewType,e),h=this.computeCurrentViewData(f,c,t.optionOverrides,l);t.calendarApi.currentDataManager=this,s.setThisContext(t.calendarApi),s.setOptions(h.options);let m={nowManager:this.nowManager,dateEnv:c.dateEnv,options:c.calendarOptions,pluginHooks:c.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:s,getCurrentData:this.getCurrentData},{currentDate:b,dateProfile:S}=n;this.data&&this.data.dateProfileGenerator!==h.dateProfileGenerator&&(S=h.dateProfileGenerator.build(b)),b=uLe(b,e),S=ALe(S,e,b,h.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!ay(S.currentRange,b))&&(b=S.currentRange.start);let T=pLe(n.eventSources,e,S,m),_=h7e(n.eventStore,e,T,S,m),R=p0e(T)&&!h.options.progressiveEventRendering&&n.renderableEventStore||_,{eventUiSingleBase:N,selectionConfig:L}=this.buildViewUiProps(m),V=this.buildEventUiBySource(T),P=this.buildEventUiBases(R.defs,N,V),W={dynamicOptionOverrides:l,currentViewType:f,currentDate:b,dateProfile:S,eventSources:T,eventStore:_,renderableEventStore:R,selectionConfig:L,eventUiBases:P,businessHours:this.parseContextBusinessHours(m),dateSelection:CLe(n.dateSelection,e),eventSelection:SLe(n.eventSelection,e),eventDrag:ELe(n.eventDrag,e),eventResize:_Le(n.eventResize,e)},le=Object.assign(Object.assign({},m),W);for(let ce of c.pluginHooks.reducers)Object.assign(W,ce(n,e,le));let J=lK(n,m),q=lK(W,m);!J&&q?s.trigger("loading",!0):J&&!q&&s.trigger("loading",!1),this.state=W,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,s=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),l=this.computeCurrentViewData(t.currentViewType,s,e.optionOverrides,t.dynamicOptionOverrides),c=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(t.dateProfile,l.options,s.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},s),l),t),f=s.pluginHooks.optionChangeHandlers,h=n&&n.calendarOptions,m=s.calendarOptions;if(h&&h!==m){h.timeZone!==m.timeZone&&(t.eventSources=c.eventSources=gLe(c.eventSources,t.dateProfile,c),t.eventStore=c.eventStore=E1e(c.eventStore,n.dateEnv,c.dateEnv),t.renderableEventStore=c.renderableEventStore=E1e(c.renderableEventStore,n.dateEnv,c.dateEnv));for(let b in f)(this.optionsForHandling.indexOf(b)!==-1||h[b]!==m[b])&&f[b](m[b],c)}this.optionsForHandling=[],e.onData&&e.onData(c)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:s,pluginHooks:l,localeDefaults:c,availableLocaleData:f,extra:h}=this.processRawCalendarOptions(e,t);S0e(h);let m=this.buildDateEnv(s.timeZone,s.locale,s.weekNumberCalculation,s.firstDay,s.weekText,l,f,s.defaultRangeSeparator),b=this.buildViewSpecs(l.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,c),S=this.buildTheme(s,l),T=this.parseToolbars(s,this.stableOptionOverrides,S,b,n);return this.stableCalendarOptionsData={calendarOptions:s,pluginHooks:l,dateEnv:m,viewSpecs:b,theme:S,toolbarConfig:T,localeDefaults:c,availableRawLocales:f.map}}processRawCalendarOptions(e,t){let{locales:n,locale:s}=wG([K6,e,t]),l=this.organizeRawLocales(n),c=l.map,f=this.buildLocale(s||l.defaultCode,c).options,h=this.buildPluginHooks(e.plugins||[],MLe),m=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n1e),r1e),o1e),h.listenerRefiners),h.optionRefiners),b={},S=wG([K6,f,e,t]),T={},_=this.currentCalendarOptionsInput,F=this.currentCalendarOptionsRefined,R=!1;for(let N in S)this.optionsForRefining.indexOf(N)===-1&&(S[N]===_[N]||kS[N]&&N in _&&kS[N](_[N],S[N]))?T[N]=F[N]:m[N]?(T[N]=m[N](S[N]),R=!0):b[N]=_[N];return R&&(this.currentCalendarOptionsInput=S,this.currentCalendarOptionsRefined=T,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:h,availableLocaleData:l,localeDefaults:f,extra:b}}_computeCurrentViewData(e,t,n,s){let l=t.viewSpecs[e];if(!l)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:c,extra:f}=this.processRawViewOptions(l,t.pluginHooks,t.localeDefaults,n,s);S0e(f),this.nowManager.handleInput(t.dateEnv,c.now);let h=this.buildDateProfileGenerator({dateProfileGeneratorClass:l.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:l.duration,durationUnit:l.durationUnit,usesMinMaxTime:l.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,showNonCurrentDates:c.showNonCurrentDates,dayCount:c.dayCount,dateAlignment:c.dateAlignment,dateIncrement:c.dateIncrement,hiddenDays:c.hiddenDays,weekends:c.weekends,validRangeInput:c.validRange,visibleRangeInput:c.visibleRange,fixedWeekCount:c.fixedWeekCount}),m=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:l,options:c,dateProfileGenerator:h,viewApi:m}}processRawViewOptions(e,t,n,s,l){let c=wG([K6,e.optionDefaults,n,s,e.optionOverrides,l]),f=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n1e),r1e),o1e),DRe),t.listenerRefiners),t.optionRefiners),h={},m=this.currentViewOptionsInput,b=this.currentViewOptionsRefined,S=!1,T={};for(let _ in c)c[_]===m[_]||kS[_]&&kS[_](c[_],m[_])?h[_]=b[_]:(c[_]===this.currentCalendarOptionsInput[_]||kS[_]&&kS[_](c[_],this.currentCalendarOptionsInput[_])?_ in this.currentCalendarOptionsRefined&&(h[_]=this.currentCalendarOptionsRefined[_]):f[_]?h[_]=f[_](c[_]):T[_]=c[_],S=!0);return S&&(this.currentViewOptionsInput=c,this.currentViewOptionsRefined=h),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:T}}}function QLe(r,e,t,n,s,l,c,f){let h=u0e(e||c.defaultCode,c.map);return new QRe({calendarSystem:"gregory",timeZone:r,namedTimeZoneImpl:l.namedTimeZonedImpl,locale:h,weekNumberCalculation:t,firstDay:n,weekText:s,cmdFormatter:l.cmdFormatter,defaultSeparator:f})}function zLe(r,e){let t=e.themeClasses[r.themeSystem]||S2;return new t(r)}function jLe(r){let e=r.dateProfileGeneratorClass||h1e;return new e(r)}function WLe(r,e,t){return new TLe(r,e,t)}function qLe(r){return sy(r,e=>e.ui)}function GLe(r,e,t){let n={"":e};for(let s in r){let l=r[s];l.sourceId&&t[l.sourceId]&&(n[s]=t[l.sourceId])}return n}function KLe(r){let{options:e}=r;return{eventUiSingleBase:QP({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},r),selectionConfig:QP({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},r)}}function lK(r,e){for(let t of e.pluginHooks.isLoadingFuncs)if(t(r))return!0;return!1}function ZLe(r){return S7e(r.options.businessHours,r)}function S0e(r,e){for(let t in r)console.warn(`Unknown option '${t}'`)}class YLe extends ql{render(){let e=this.props.widgetGroups.map(t=>this.renderWidgetGroup(t));return Qt("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,s=[],l=!0;for(let c of e){let{buttonName:f,buttonClick:h,buttonText:m,buttonIcon:b,buttonHint:S}=c;if(f==="title")l=!1,s.push(Qt("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let T=f===t.activeButton,_=!t.isTodayEnabled&&f==="today"||!t.isPrevEnabled&&f==="prev"||!t.isNextEnabled&&f==="next",F=[`fc-${f}-button`,n.getClass("button")];T&&F.push(n.getClass("buttonActive")),s.push(Qt("button",{type:"button",title:typeof S=="function"?S(t.navUnit):S,disabled:_,"aria-pressed":T,className:F.join(" "),onClick:h},m||(b?Qt("span",{className:b,role:"img"}):"")))}}if(s.length>1){let c=l&&n.getClass("buttonGroup")||"";return Qt("div",{className:c},...s)}return s[0]}}class E0e extends ql{render(){let{model:e,extraClassName:t}=this.props,n=!1,s,l,c=e.sectionWidgets,f=c.center;return c.left?(n=!0,s=c.left):s=c.start,c.right?(n=!0,l=c.right):l=c.end,Qt("div",{className:[t||"","fc-toolbar",n?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",s||[]),this.renderSection("center",f||[]),this.renderSection("end",l||[]))}renderSection(e,t){let{props:n}=this;return Qt(YLe,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class XLe extends ql{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,K1(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,s=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],l="",c="";return n?t.availableWidth!==null?l=t.availableWidth/n:c=`${1/n*100}%`:l=e.height||"",Qt("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:s.join(" "),style:{height:l,paddingBottom:c}},e.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 JLe extends eB{constructor(e){super(e),this.handleSegClick=(t,n)=>{let{component:s}=this,{context:l}=s,c=J_(n);if(c&&s.isValidSegDownEl(t.target)){let f=BA(t.target,".fc-event-forced-url"),h=f?f.querySelector("a[href]").href:"";l.emitter.trigger("eventClick",{el:n,event:new hu(s.context,c.eventRange.def,c.eventRange.instance),jsEvent:t,view:l.viewApi}),h&&!t.defaultPrevented&&(window.location.href=h)}},this.destroy=$me(e.el,"click",".fc-event",this.handleSegClick)}}class eMe extends eB{constructor(e){super(e),this.handleEventElRemove=t=>{t===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(t,n)=>{J_(n)&&(this.currentSegEl=n,this.triggerEvent("eventMouseEnter",t,n))},this.handleSegLeave=(t,n)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",t,n))},this.removeHoverListeners=MOe(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:s}=this,{context:l}=s,c=J_(n);(!t||s.isValidSegDownEl(t.target))&&l.emitter.trigger(e,{el:n,event:new hu(l,c.eventRange.def,c.eventRange.instance),jsEvent:t,view:l.viewApi})}}class tMe extends DS{constructor(){super(...arguments),this.buildViewContext=li(WRe),this.buildViewPropTransformers=li(rMe),this.buildToolbarProps=li(nMe),this.headerRef=sh(),this.footerRef=sh(),this.interactionsStore={},this.state={viewLabelId:xP()},this.registerInteractiveComponent=(e,t)=>{let n=j7e(e,t),c=[JLe,eMe].concat(this.props.pluginHooks.componentInteractions).map(f=>new f(n));this.interactionsStore[e.uid]=c,UG[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let n of t)n.destroy();delete this.interactionsStore[e.uid]}delete UG[e.uid]},this.resizeRunner=new uG(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:t,options:n}=e,s=!1,l="",c;e.isHeightAuto||e.forPrint?l="":n.height!=null?s=!0:n.contentHeight!=null?l=n.contentHeight:c=Math.max(n.aspectRatio,.5);let f=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.nowManager,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),h=t.header&&t.header.hasTitle?this.state.viewLabelId:void 0;return Qt(iy.Provider,{value:f},Qt(tB,{unit:"day"},m=>{let b=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,m,e.viewTitle);return Qt(Vc,null,t.header&&Qt(E0e,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:t.header,titleId:h},b)),Qt(XLe,{liquid:s,height:l,aspectRatio:c,labeledById:h},this.renderView(e),this.buildAppendContent()),t.footer&&Qt(E0e,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:t.footer,titleId:""},b)))}))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(n=>new n(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let s in n)t[s]!==e[s]&&n[s](t[s],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,t=e.pluginHooks.viewContainerAppends.map(n=>n(e));return Qt(Vc,{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,s={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},l=this.buildViewPropTransformers(t.viewPropsTransformers);for(let f of l)Object.assign(s,f.transform(s,e));let c=n.component;return Qt(c,Object.assign({},s))}}function nMe(r,e,t,n,s,l){let c=t.build(s,void 0,!1),f=t.buildPrev(e,n,!1),h=t.buildNext(e,n,!1);return{title:l,activeButton:r.type,navUnit:r.singleUnit,isTodayEnabled:c.isValid&&!ay(e.currentRange,s),isPrevEnabled:f.isValid,isNextEnabled:h.isValid}}function rMe(r){return r.map(e=>new e)}let oMe=class extends q7e{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=n=>{switch(n.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=n=>{this.currentData=n,this.renderRunner.request(n.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:n}=this;LP(()=>{W6(Qt(z7e,{options:n.calendarOptions,theme:n.theme,emitter:n.emitter},(s,l,c,f)=>(this.setClassNames(s),this.setHeight(l),Qt(c1e.Provider,{value:this.customContentRenderId},Qt(tMe,Object.assign({isHeightAuto:c,forPrint:f},n))))),this.el)})}else this.isRendered&&(this.isRendered=!1,W6(null,this.el),this.setClassNames([]),this.setHeight(""))},kOe(e),this.el=e,this.renderRunner=new uG(this.handleRenderRequest),new $Le({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){LP(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!v2(e,this.currentClassNames)){let{classList:t}=this.el;for(let n of this.currentClassNames)t.remove(n);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){Ume(this.el,"height",e)}};const sMe={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},iMe=g.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(r){return{...r,customRenderingMetaMap:cMe(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const r=[];for(const e of this.customRenderingMap.values())r.push(g.h(aMe,{key:e.id,customRendering:e}));return g.h("div",{attrs:{"data-fc-render-id":this.renderId}},g.h(g.Fragment,r))},mounted(){const r=new GPe;this.handleCustomRendering=r.handle.bind(r);const e=this.buildOptions(this.options),t=new oMe(this.$el,e);this.calendar=t,t.render(),r.subscribe(n=>{this.customRenderingMap=n,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:lMe()}),aMe=g.defineComponent({props:{customRendering:Object},render(){const r=this.customRendering,e=typeof r.generatorMeta=="function"?r.generatorMeta(r.renderProps):r.generatorMeta;return g.h(g.Teleport,{to:r.containerEl},e)}});function jft(r){return r}function lMe(){let r={options:{deep:!0,handler(e){let t=this.getApi();t.pauseRendering();let n=this.buildOptions(e);t.resetOptions(n),this.renderId++}}};for(let e in sMe)r[`options.${e}`]={deep:!0,handler(t){if(t!==void 0){let n=this.getApi();n.pauseRendering(),n.resetOptions({[e]:t},[e]),this.renderId++}}};return r}function cMe(r){const e={};for(const t in r)e[uMe(t)]=r[t];return e}function uMe(r){return r.split("-").map((e,t)=>t?dMe(e):e).join("")}function dMe(r){return r.charAt(0).toUpperCase()+r.slice(1)}class fMe extends Z1{constructor(){super(...arguments),this.headerElRef=sh()}renderSimpleLayout(e,t){let{props:n,context:s}=this,l=[],c=ZP(s.options);return e&&l.push({type:"header",key:"header",isSticky:c,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),l.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),Qt(MP,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},Qt(JG,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:l}))}renderHScrollLayout(e,t,n,s){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{props:c,context:f}=this,h=!c.forPrint&&ZP(f.options),m=!c.forPrint&&t0e(f.options),b=[];return e&&b.push({type:"header",key:"header",isSticky:h,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),b.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),m&&b.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:XG}]}),Qt(MP,{elClasses:["fc-daygrid"],viewSpec:f.viewSpec},Qt(l,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:c.forPrint,colGroups:[{cols:[{span:n,minWidth:s}]}],sections:b}))}}function YP(r,e){let t=[];for(let n=0;n<e;n+=1)t[n]=[];for(let n of r)t[n.row].push(n);return t}function XP(r,e){let t=[];for(let n=0;n<e;n+=1)t[n]=[];for(let n of r)t[n.firstCol].push(n);return t}function _0e(r,e){let t=[];if(r){for(let n=0;n<e;n+=1)t[n]={affectedInstances:r.affectedInstances,isEvent:r.isEvent,segs:[]};for(let n of r.segs)t[n.row].segs.push(n)}else for(let n=0;n<e;n+=1)t[n]=null;return t}const B0e=Fu({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function x0e(r){let{display:e}=r.eventRange.ui;return e==="list-item"||e==="auto"&&!r.eventRange.def.allDay&&r.firstCol===r.lastCol&&r.isStart&&r.isEnd}class T0e extends ql{render(){let{props:e}=this;return Qt(tK,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:B0e,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class k0e extends ql{render(){let{props:e,context:t}=this,{options:n}=t,{seg:s}=e,l=n.eventTimeFormat||B0e,c=N1e(s,l,t,!0,e.defaultDisplayEventEnd);return Qt(eK,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:R1e(e.seg,t),defaultGenerator:AMe,timeText:c,isResizing:!1,isDateSelecting:!1}))}}function AMe(r){return Qt(Vc,null,Qt("div",{className:"fc-daygrid-event-dot",style:{borderColor:r.borderColor||r.backgroundColor}}),r.timeText&&Qt("div",{className:"fc-event-time"},r.timeText),Qt("div",{className:"fc-event-title"},r.event.title||Qt(Vc,null," ")))}class hMe extends ql{constructor(){super(...arguments),this.compileSegs=li(pMe)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return Qt(s0e,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let s=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return Qt(Vc,null,t.map(l=>{let c=l.eventRange.instance.instanceId;return Qt("div",{className:"fc-daygrid-event-harness",key:c,style:{visibility:s[c]?"hidden":""}},x0e(l)?Qt(k0e,Object.assign({seg:l,isDragging:!1,isSelected:c===e.eventSelection,defaultDisplayEventEnd:!1},C2(l,e.todayRange))):Qt(T0e,Object.assign({seg:l,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:c===e.eventSelection,defaultDisplayEventEnd:!1},C2(l,e.todayRange))))}))}})}}function pMe(r){let e=[],t=[];for(let n of r)e.push(n.seg),n.isVisible||t.push(n.seg);return{allSegs:e,invisibleSegs:t}}const gMe=Fu({week:"narrow"});class mMe extends Z1{constructor(){super(...arguments),this.rootElRef=sh(),this.state={dayNumberId:xP()},this.handleRootEl=e=>{K1(this.rootElRef,e),K1(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:s}=this,{options:l,dateEnv:c}=e,{date:f,dateProfile:h}=t;const m=t.showDayNumber&&yMe(f,h.currentRange,c);return Qt(rK,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:vMe,date:f,dateProfile:h,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:m,extraRenderProps:t.extraRenderProps},(b,S)=>Qt("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&Qt(o0e,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:WP(e,f,"week"),date:f,defaultFormat:gMe}),!S.isDisabled&&(t.showDayNumber||oK(l)||t.forceDayTop)?Qt("div",{className:"fc-daygrid-day-top"},Qt(b,{elTag:"a",elClasses:["fc-daygrid-day-number",m&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},WP(e,f)),{id:n.dayNumberId})})):t.showDayNumber?Qt("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},Qt("a",{className:"fc-daygrid-day-number"}," ")):void 0,Qt("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,Qt("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},Qt(hMe,{allDayDate:f,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:s,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),Qt("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}}function vMe(r){return r.dayNumberText||Qt(Vc,null," ")}function yMe(r,e,t){const{start:n,end:s}=e,l=y2(s,-1),c=t.getYear(n),f=t.getMonth(n),h=t.getYear(l),m=t.getMonth(l);return!(c===h&&f===m)&&(r.valueOf()===n.valueOf()||t.getDay(r)===1&&r.valueOf()<s.valueOf())}function F0e(r){return r.eventRange.instance.instanceId+":"+r.firstCol}function I0e(r){return F0e(r)+":"+r.lastCol}function bMe(r,e,t,n,s,l,c){let f=new SMe(L=>{let V=r[L.index].eventRange.instance.instanceId+":"+L.span.start+":"+(L.span.end-1);return s[V]||1});f.allowReslicing=!0,f.strictOrder=n,e===!0||t===!0?(f.maxCoord=l,f.hiddenConsumes=!0):typeof e=="number"?f.maxStackCnt=e:typeof t=="number"&&(f.maxStackCnt=t,f.hiddenConsumes=!0);let h=[],m=[];for(let L=0;L<r.length;L+=1){let V=r[L],P=I0e(V);s[P]!=null?h.push({index:L,span:{start:V.firstCol,end:V.lastCol+1}}):m.push(V)}let b=f.addSegs(h),S=f.toRects(),{singleColPlacements:T,multiColPlacements:_,leftoverMargins:F}=wMe(S,r,c),R=[],N=[];for(let L of m){_[L.firstCol].push({seg:L,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let V=L.firstCol;V<=L.lastCol;V+=1)T[V].push({seg:rB(L,V,V+1,c),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let L=0;L<c.length;L+=1)R.push(0);for(let L of b){let V=r[L.index],P=L.span;_[P.start].push({seg:rB(V,P.start,P.end,c),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let W=P.start;W<P.end;W+=1)R[W]+=1,T[W].push({seg:rB(V,W,W+1,c),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let L=0;L<c.length;L+=1)N.push(F[L]);return{singleColPlacements:T,multiColPlacements:_,moreCnts:R,moreMarginTops:N}}function wMe(r,e,t){let n=CMe(r,t.length),s=[],l=[],c=[];for(let f=0;f<t.length;f+=1){let h=n[f],m=[],b=0,S=0;for(let _ of h){let F=e[_.index];m.push({seg:rB(F,f,f+1,t),isVisible:!0,isAbsolute:!1,absoluteTop:_.levelCoord,marginTop:_.levelCoord-b}),b=_.levelCoord+_.thickness}let T=[];b=0,S=0;for(let _ of h){let F=e[_.index],R=_.span.end-_.span.start>1,N=_.span.start===f;S+=_.levelCoord-b,b=_.levelCoord+_.thickness,R?(S+=_.thickness,N&&T.push({seg:rB(F,_.span.start,_.span.end,t),isVisible:!0,isAbsolute:!0,absoluteTop:_.levelCoord,marginTop:0})):N&&(T.push({seg:rB(F,_.span.start,_.span.end,t),isVisible:!0,isAbsolute:!1,absoluteTop:_.levelCoord,marginTop:S}),S=0)}s.push(m),l.push(T),c.push(S)}return{singleColPlacements:s,multiColPlacements:l,leftoverMargins:c}}function CMe(r,e){let t=[];for(let n=0;n<e;n+=1)t.push([]);for(let n of r)for(let s=n.span.start;s<n.span.end;s+=1)t[s].push(n);return t}function rB(r,e,t,n){if(r.firstCol===e&&r.lastCol===t-1)return r;let s=r.eventRange,l=s.range,c=NS(l,{start:n[e].date,end:Bf(n[t-1].date,1)});return Object.assign(Object.assign({},r),{firstCol:e,lastCol:t-1,eventRange:{def:s.def,ui:Object.assign(Object.assign({},s.ui),{durationEditable:!1}),instance:s.instance,range:c},isStart:r.isStart&&c.start.valueOf()===l.start.valueOf(),isEnd:r.isEnd&&c.end.valueOf()===l.end.valueOf()})}class SMe extends z1e{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const t=super.addSegs(e),{entriesByLevel:n}=this,s=l=>!this.forceHidden[PS(l)];for(let l=0;l<n.length;l+=1)n[l]=n[l].filter(s);return t}handleInvalidInsertion(e,t,n){const{entriesByLevel:s,forceHidden:l}=this,{touchingEntry:c,touchingLevel:f,touchingLateral:h}=e;if(this.hiddenConsumes&&c){const m=PS(c);if(!l[m])if(this.allowReslicing){const b=Object.assign(Object.assign({},c),{span:qG(c.span,t.span)}),S=PS(b);l[S]=!0,s[f][h]=b,n.push(b),this.splitEntry(c,t,n)}else l[m]=!0,n.push(c)}super.handleInvalidInsertion(e,t,n)}}class D0e extends Z1{constructor(){super(...arguments),this.cellElRefs=new ly,this.frameElRefs=new ly,this.fgElRefs=new ly,this.segHarnessRefs=new ly,this.rootElRef=sh(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:s}=n,l=e.cells.length,c=XP(e.businessHourSegs,l),f=XP(e.bgEventSegs,l),h=XP(this.getHighlightSegs(),l),m=XP(this.getMirrorSegs(),l),{singleColPlacements:b,multiColPlacements:S,moreCnts:T,moreMarginTops:_}=bMe(D1e(e.fgEventSegs,s.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,s.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),F=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return Qt("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((R,N)=>{let L=this.renderFgSegs(N,e.forPrint?b[N]:S[N],e.todayRange,F),V=this.renderFgSegs(N,EMe(m[N],S),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return Qt(mMe,{key:R.key,elRef:this.cellElRefs.createRef(R.key),innerElRef:this.frameElRefs.createRef(R.key),dateProfile:e.dateProfile,date:R.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&N===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:R.extraRenderProps,extraDataAttrs:R.extraDataAttrs,extraClassNames:R.extraClassNames,extraDateSpan:R.extraDateSpan,moreCnt:T[N],moreMarginTop:_[N],singlePlacements:b[N],fgContentElRef:this.fgElRefs.createRef(R.key),fgContent:Qt(Vc,null,Qt(Vc,null,L),Qt(Vc,null,V)),bgContent:Qt(Vc,null,this.renderFillSegs(h[N],"highlight"),this.renderFillSegs(c[N],"non-business"),this.renderFillSegs(f[N],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!Lm(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,s,l,c,f){let{context:h}=this,{eventSelection:m}=this.props,{framePositions:b}=this.state,S=this.props.cells.length===1,T=l||c||f,_=[];if(b)for(let F of t){let{seg:R}=F,{instanceId:N}=R.eventRange.instance,L=F.isVisible&&!s[N],V=F.isAbsolute,P="",W="";V&&(h.isRtl?(W=0,P=b.lefts[R.lastCol]-b.lefts[R.firstCol]):(P=0,W=b.rights[R.firstCol]-b.rights[R.lastCol])),_.push(Qt("div",{className:"fc-daygrid-event-harness"+(V?" fc-daygrid-event-harness-abs":""),key:F0e(R),ref:T?null:this.segHarnessRefs.createRef(I0e(R)),style:{visibility:L?"":"hidden",marginTop:V?"":F.marginTop,top:V?F.absoluteTop:"",left:P,right:W}},x0e(R)?Qt(k0e,Object.assign({seg:R,isDragging:l,isSelected:N===m,defaultDisplayEventEnd:S},C2(R,n))):Qt(T0e,Object.assign({seg:R,isDragging:l,isResizing:c,isDateSelecting:f,isSelected:N===m,defaultDisplayEventEnd:S},C2(R,n)))))}return _}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:s}=this.props,{framePositions:l}=this.state,c=[];if(l)for(let f of e){let h=n?{right:0,left:l.lefts[f.lastCol]-l.lefts[f.firstCol]}:{left:0,right:l.rights[f.firstCol]-l.rights[f.lastCol]};c.push(Qt("div",{key:O1e(f.eventRange),className:"fc-daygrid-bg-harness",style:h},t==="bg-event"?Qt(n0e,Object.assign({seg:f},C2(f,s))):r0e(t)))}return Qt(Vc,{},...c)}updateSizing(e){let{props:t,state:n,frameElRefs:s}=this;if(!t.forPrint&&t.clientWidth!==null){if(e){let h=t.cells.map(m=>s.currentMap[m.key]);if(h.length){let m=this.rootElRef.current,b=new nB(m,h,!0,!1);(!n.framePositions||!n.framePositions.similarTo(b))&&this.setState({framePositions:new nB(m,h,!0,!1)})}}const l=this.state.segHeights,c=this.querySegHeights(),f=t.dayMaxEvents===!0||t.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},l),c),maxContentHeight:f?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let s=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,s)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(t=>e[t.key])}}D0e.addStateEquality({segHeights:Lm});function EMe(r,e){if(!r.length)return[];let t=_Me(e);return r.map(n=>({seg:n,isVisible:!0,isAbsolute:!0,absoluteTop:t[n.eventRange.instance.instanceId],marginTop:0}))}function _Me(r){let e={};for(let t of r)for(let n of t)e[n.seg.eventRange.instance.instanceId]=n.absoluteTop;return e}class BMe extends Z1{constructor(){super(...arguments),this.splitBusinessHourSegs=li(YP),this.splitBgEventSegs=li(xMe),this.splitFgEventSegs=li(YP),this.splitDateSelectionSegs=li(YP),this.splitEventDrag=li(_0e),this.splitEventResize=li(_0e),this.rowRefs=new ly}render(){let{props:e,context:t}=this,n=e.cells.length,s=this.splitBusinessHourSegs(e.businessHourSegs,n),l=this.splitBgEventSegs(e.bgEventSegs,n),c=this.splitFgEventSegs(e.fgEventSegs,n),f=this.splitDateSelectionSegs(e.dateSelectionSegs,n),h=this.splitEventDrag(e.eventDrag,n),m=this.splitEventResize(e.eventResize,n),b=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return Qt(tB,{unit:"day"},(S,T)=>Qt(Vc,null,e.cells.map((_,F)=>Qt(D0e,{ref:this.rowRefs.createRef(F),key:_.length?_[0].date.toISOString():F,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:T,dateProfile:e.dateProfile,cells:_,renderIntro:e.renderRowIntro,businessHourSegs:s[F],eventSelection:e.eventSelection,bgEventSegs:l[F],fgEventSegs:c[F],dateSelectionSegs:f[F],eventDrag:h[F],eventResize:m[F],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:b,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new nB(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new nB(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:s}=this,l=n.leftToIndex(e),c=s.topToIndex(t);if(c!=null&&l!=null){let f=this.props.cells[c][l];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(c,l),allDay:!0},f.extraDateSpan),dayEl:this.getCellEl(c,l),rect:{left:n.lefts[l],right:n.rights[l],top:s.tops[c],bottom:s.bottoms[c]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date,s=Bf(n,1);return{start:n,end:s}}}function xMe(r,e){return YP(r.filter(TMe),e)}function TMe(r){return r.eventRange.def.allDay}class kMe extends Z1{constructor(){super(...arguments),this.elRef=sh(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:s}=e,l=n===!0||t===!0;l&&!s&&(l=!1,t=null,n=null);let c=["fc-daygrid-body",l?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",s?"":"fc-daygrid-body-natural"];return Qt("div",{ref:this.elRef,className:c.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},Qt("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:s?e.clientHeight:""}},e.colGroupNode,Qt("tbody",{role:"presentation"},Qt(BMe,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=FMe(this.elRef.current,this.props.dateProfile);if(e){const t=e.closest(".fc-daygrid-body"),n=t.closest(".fc-scroller"),s=e.getBoundingClientRect().top-t.getBoundingClientRect().top;n.scrollTop=s?s+1:0}this.needsScrollReset=!1}}}function FMe(r,e){let t;return e.currentRangeUnit.match(/year|month/)&&(t=r.querySelector(`[data-date="${pRe(e.currentDate)}-01"]`)),t||(t=r.querySelector(`[data-date="${vG(e.currentDate)}"]`)),t}class IMe extends Z1e{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class N0e extends Z1{constructor(){super(...arguments),this.slicer=new IMe,this.tableRef=sh()}render(){let{props:e,context:t}=this;return Qt(kMe,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class DMe extends fMe{constructor(){super(...arguments),this.buildDayTableModel=li(NMe),this.headerRef=sh(),this.tableRef=sh()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,s=this.buildDayTableModel(n.dateProfile,t),l=e.dayHeaders&&Qt(q1e,{ref:this.headerRef,dateProfile:n.dateProfile,dates:s.headerDates,datesRepDistinctDays:s.rowCnt===1}),c=f=>Qt(N0e,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:s,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:f.tableColGroupNode,tableMinWidth:f.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:f.clientWidth,clientHeight:f.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(l,c,s.colCnt,e.dayMinWidth):this.renderSimpleLayout(l,c)}}function NMe(r,e){let t=new G1e(r.renderRange,e);return new K1e(t,/year|month|week/.test(r.currentRangeUnit))}class OMe extends h1e{buildRenderRange(e,t,n){let s=super.buildRenderRange(e,t,n),{props:l}=this;return RMe({currentRange:s,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:l.fixedWeekCount,dateEnv:l.dateEnv})}}function RMe(r){let{dateEnv:e,currentRange:t}=r,{start:n,end:s}=t,l;if(r.snapToWeek&&(n=e.startOfWeek(n),l=e.startOfWeek(s),l.valueOf()!==s.valueOf()&&(s=Kme(l,1))),r.fixedWeekCount){let c=e.startOfWeek(e.startOfMonth(Bf(t.end,-1))),f=Math.ceil(oRe(c,s));s=Kme(s,6-f)}return{start:n,end:s}}var PMe=':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}';lG(PMe);var LMe=cy({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:DMe,dateProfileGeneratorClass:OMe},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}}}});class MMe extends X7e{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?T7e(e)?["timed","allDay"]:["allDay"]:["timed"]}}const UMe=Fu({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function O0e(r){let e=["fc-timegrid-slot","fc-timegrid-slot-label",r.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Qt(iy.Consumer,null,t=>{if(!r.isLabeled)return Qt("td",{className:e.join(" "),"data-time":r.isoTimeStr});let{dateEnv:n,options:s,viewApi:l}=t,c=s.slotLabelFormat==null?UMe:Array.isArray(s.slotLabelFormat)?Fu(s.slotLabelFormat[0]):Fu(s.slotLabelFormat),f={level:0,time:r.time,date:n.toDate(r.date),view:l,text:n.format(r.date,c)};return Qt(zp,{elTag:"td",elClasses:e,elAttrs:{"data-time":r.isoTimeStr},renderProps:f,generatorName:"slotLabelContent",customGenerator:s.slotLabelContent,defaultGenerator:HMe,classNameGenerator:s.slotLabelClassNames,didMount:s.slotLabelDidMount,willUnmount:s.slotLabelWillUnmount},h=>Qt("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Qt(h,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function HMe(r){return r.text}class VMe extends ql{render(){return this.props.slatMetas.map(e=>Qt("tr",{key:e.key},Qt(O0e,Object.assign({},e))))}}const $Me=Fu({week:"short"}),QMe=5;class zMe extends Z1{constructor(){super(...arguments),this.allDaySplitter=new MMe,this.headerElRef=sh(),this.rootElRef=sh(),this.scrollerElRef=sh(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t="")=>{let{options:n}=this.context,{dateProfile:s}=this.props,l=s.renderRange,f=TS(l.start,l.end)===1?WP(this.context,l.start,"week"):{};return n.weekNumbers&&e==="day"?Qt(o0e,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:l.start,defaultFormat:$Me},h=>Qt("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:t}},Qt(h,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:f}))):Qt("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},Qt("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context,s={text:t.allDayText,view:n};return Qt(zp,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:s,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:jMe,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},l=>Qt("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},Qt(l,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:s,props:l}=this,c=[],f=ZP(s.options);return e&&c.push({type:"header",key:"header",isSticky:f,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(c.push({type:"body",key:"all-day",chunk:{content:t}}),c.push({type:"body",key:"all-day-divider",outerContent:Qt("tr",{role:"presentation",className:"fc-scrollgrid-section"},Qt("td",{className:"fc-timegrid-divider "+s.theme.getClass("tableCellShaded")}))})),c.push({type:"body",key:"body",liquid:!0,expandRows:!!s.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:n}}),Qt(MP,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:s.viewSpec},Qt(JG,{liquid:!l.isHeightAuto&&!l.forPrint,collapsibleWidth:l.forPrint,cols:[{width:"shrink"}],sections:c}))}renderHScrollLayout(e,t,n,s,l,c,f){let h=this.context.pluginHooks.scrollGridImpl;if(!h)throw new Error("No ScrollGrid implementation");let{context:m,props:b}=this,S=!b.forPrint&&ZP(m.options),T=!b.forPrint&&t0e(m.options),_=[];e&&_.push({type:"header",key:"header",isSticky:S,syncRowHeights:!0,chunks:[{key:"axis",rowContent:R=>Qt("tr",{role:"presentation"},this.renderHeadAxis("day",R.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(_.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:R=>Qt("tr",{role:"presentation"},this.renderTableRowAxis(R.rowSyncHeights[0]))},{key:"cols",content:t}]}),_.push({key:"all-day-divider",type:"body",outerContent:Qt("tr",{role:"presentation",className:"fc-scrollgrid-section"},Qt("td",{colSpan:2,className:"fc-timegrid-divider "+m.theme.getClass("tableCellShaded")}))}));let F=m.options.nowIndicator;return _.push({type:"body",key:"body",liquid:!0,expandRows:!!m.options.expandRows,chunks:[{key:"axis",content:R=>Qt("div",{className:"fc-timegrid-axis-chunk"},Qt("table",{"aria-hidden":!0,style:{height:R.expandRows?R.clientHeight:""}},R.tableColGroupNode,Qt("tbody",null,Qt(VMe,{slatMetas:c}))),Qt("div",{className:"fc-timegrid-now-indicator-container"},Qt(tB,{unit:F?"minute":"day"},N=>{let L=F&&f&&f.safeComputeTop(N);return typeof L=="number"?Qt(nK,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:L},isAxis:!0,date:N}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),T&&_.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:XG},{key:"cols",content:XG}]}),Qt(MP,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:m.viewSpec},Qt(h,{liquid:!b.isHeightAuto&&!b.forPrint,forPrint:b.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:s,minWidth:l}]}],sections:_}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return(e===!0||t===!0)&&(e=void 0,t=QMe),{dayMaxEvents:e,dayMaxEventRows:t}}}function jMe(r){return r.text}class WMe{constructor(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if(ay(t.currentRange,e)){let n=$c(e),s=e.valueOf()-n.valueOf();if(s>=Pm(t.slotMinTime)&&s<Pm(t.slotMaxTime))return this.computeTimeTop(Ya(s))}return null}computeDateTop(e,t){return t||(t=$c(e)),this.computeTimeTop(Ya(e.valueOf()-t.valueOf()))}computeTimeTop(e){let{positions:t,dateProfile:n}=this,s=t.els.length,l=(e.milliseconds-Pm(n.slotMinTime))/Pm(this.slotDuration),c,f;return l=Math.max(0,l),l=Math.min(s,l),c=Math.floor(l),c=Math.min(c,s-1),f=l-c,t.tops[c]+t.getHeight(c)*f}}class qMe extends ql{render(){let{props:e,context:t}=this,{options:n}=t,{slatElRefs:s}=e;return Qt("tbody",null,e.slatMetas.map((l,c)=>{let f={time:l.time,date:t.dateEnv.toDate(l.date),view:t.viewApi};return Qt("tr",{key:l.key,ref:s.createRef(l.key)},e.axis&&Qt(O0e,Object.assign({},l)),Qt(zp,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!l.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":l.isoTimeStr},renderProps:f,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))}))}}class GMe extends ql{constructor(){super(...arguments),this.rootElRef=sh(),this.slatElRefs=new ly}render(){let{props:e,context:t}=this;return Qt("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},Qt("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,Qt(qMe,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:t}=this;t.onCoords&&t.clientWidth!==null&&this.rootElRef.current.offsetHeight&&t.onCoords(new WMe(new nB(this.rootElRef.current,KMe(this.slatElRefs.currentMap,t.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function KMe(r,e){return e.map(t=>r[t.key])}function X6(r,e){let t=[],n;for(n=0;n<e;n+=1)t.push([]);if(r)for(n=0;n<r.length;n+=1)t[r[n].col].push(r[n]);return t}function R0e(r,e){let t=[];if(r){for(let n=0;n<e;n+=1)t[n]={affectedInstances:r.affectedInstances,isEvent:r.isEvent,segs:[]};for(let n of r.segs)t[n.col].segs.push(n)}else for(let n=0;n<e;n+=1)t[n]=null;return t}class ZMe extends ql{render(){let{props:e}=this;return Qt(s0e,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>U0e(e.hiddenSegs,e),defaultGenerator:YMe,forceTimed:!0},t=>Qt(t,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function YMe(r){return r.shortText}function XMe(r,e,t){let n=new z1e;e!=null&&(n.strictOrder=e),t!=null&&(n.maxStackCnt=t);let s=n.addSegs(r),l=dPe(s),c=JMe(n);return c=rUe(c,1),{segRects:oUe(c),hiddenGroups:l}}function JMe(r){const{entriesByLevel:e}=r,t=cK((n,s)=>n+":"+s,(n,s)=>{let l=nUe(r,n,s),c=P0e(l,t),f=e[n][s];return[Object.assign(Object.assign({},f),{nextLevelNodes:c[0]}),f.thickness+c[1]]});return P0e(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,t)[0]}function P0e(r,e){if(!r)return[[],0];let{level:t,lateralStart:n,lateralEnd:s}=r,l=n,c=[];for(;l<s;)c.push(e(t,l)),l+=1;return c.sort(eUe),[c.map(tUe),c[0][1]]}function eUe(r,e){return e[1]-r[1]}function tUe(r){return r[0]}function nUe(r,e,t){let{levelCoords:n,entriesByLevel:s}=r,l=s[e][t],c=n[e]+l.thickness,f=n.length,h=e;for(;h<f&&n[h]<c;h+=1);for(;h<f;h+=1){let m=s[h],b,S=KG(m,l.span.start,WG),T=S[0]+S[1],_=T;for(;(b=m[_])&&b.span.start<l.span.end;)_+=1;if(T<_)return{level:h,lateralStart:T,lateralEnd:_}}return null}function rUe(r,e){const t=cK((n,s,l)=>PS(n),(n,s,l)=>{let{nextLevelNodes:c,thickness:f}=n,h=f+l,m=f/h,b,S=[];if(!c.length)b=e;else for(let _ of c)if(b===void 0){let F=t(_,s,h);b=F[0],S.push(F[1])}else{let F=t(_,b,0);S.push(F[1])}let T=(b-s)*m;return[b-T,Object.assign(Object.assign({},n),{thickness:T,nextLevelNodes:S})]});return r.map(n=>t(n,0,0)[1])}function oUe(r){let e=[];const t=cK((s,l,c)=>PS(s),(s,l,c)=>{let f=Object.assign(Object.assign({},s),{levelCoord:l,stackDepth:c,stackForward:0});return e.push(f),f.stackForward=n(s.nextLevelNodes,l+s.thickness,c+1)+1});function n(s,l,c){let f=0;for(let h of s)f=Math.max(t(h,l,c),f);return f}return n(r,0,0),e}function cK(r,e){const t={};return(...n)=>{let s=r(...n);return s in t?t[s]:t[s]=e(...n)}}function L0e(r,e,t=null,n=0){let s=[];if(t)for(let l=0;l<r.length;l+=1){let c=r[l],f=t.computeDateTop(c.start,e),h=Math.max(f+(n||0),t.computeDateTop(c.end,e));s.push({start:Math.round(f),end:Math.round(h)})}return s}function sUe(r,e,t,n){let s=[],l=[];for(let m=0;m<r.length;m+=1){let b=e[m];b?s.push({index:m,thickness:1,span:b}):l.push(r[m])}let{segRects:c,hiddenGroups:f}=XMe(s,t,n),h=[];for(let m of c)h.push({seg:r[m.index],rect:m});for(let m of l)h.push({seg:m,rect:null});return{segPlacements:h,hiddenGroups:f}}const iUe=Fu({hour:"numeric",minute:"2-digit",meridiem:!1});class M0e extends ql{render(){return Qt(tK,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:iUe}))}}class aUe extends ql{constructor(){super(...arguments),this.sortEventSegs=li(D1e)}render(){let{props:e,context:t}=this,{options:n}=t,s=n.selectMirror,l=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||s&&e.dateSelectionSegs||[],c=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},f=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return Qt(rK,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},h=>Qt("div",{className:"fc-timegrid-col-frame"},Qt("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),Qt("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(f,c,!1,!1,!1)),Qt("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(l,{},!!e.eventDrag,!!e.eventResize,!!s,"mirror")),Qt("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),oK(n)&&Qt(h,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,t,n,s,l,c){let{props:f}=this;return f.forPrint?U0e(e,f):this.renderPositionedFgSegs(e,t,n,s,l,c)}renderPositionedFgSegs(e,t,n,s,l,c){let{eventMaxStack:f,eventShortHeight:h,eventOrderStrict:m,eventMinHeight:b}=this.context.options,{date:S,slatCoords:T,eventSelection:_,todayRange:F,nowDate:R}=this.props,N=n||s||l,L=L0e(e,S,T,b),{segPlacements:V,hiddenGroups:P}=sUe(e,L,m,f);return Qt(Vc,null,this.renderHiddenGroups(P,e),V.map(W=>{let{seg:le,rect:J}=W,q=le.eventRange.instance.instanceId,ce=N||!!(!t[q]&&J),fe=uK(J&&J.span),Ce=!N&&J?this.computeSegHStyle(J):{left:0,right:0},ie=!!J&&J.stackForward>0,ne=!!J&&J.span.end-J.span.start<h;return Qt("div",{className:"fc-timegrid-event-harness"+(ie?" fc-timegrid-event-harness-inset":""),key:c||q,style:Object.assign(Object.assign({visibility:ce?"":"hidden"},fe),Ce)},Qt(M0e,Object.assign({seg:le,isDragging:n,isResizing:s,isDateSelecting:l,isSelected:q===_,isShort:ne},C2(le,F,R))))}))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:s,todayRange:l,nowDate:c,eventSelection:f,eventDrag:h,eventResize:m}=this.props;return Qt(Vc,null,e.map(b=>{let S=uK(b.span),T=lUe(b.entries,t);return Qt(ZMe,{key:Jme(a0e(T)),hiddenSegs:T,top:S.top,bottom:S.bottom,extraDateSpan:n,dateProfile:s,todayRange:l,nowDate:c,eventSelection:f,eventDrag:h,eventResize:m})}))}renderFillSegs(e,t){let{props:n,context:s}=this,c=L0e(e,n.date,n.slatCoords,s.options.eventMinHeight).map((f,h)=>{let m=e[h];return Qt("div",{key:O1e(m.eventRange),className:"fc-timegrid-bg-harness",style:uK(f)},t==="bg-event"?Qt(n0e,Object.assign({seg:m},C2(m,n.todayRange,n.nowDate))):r0e(t))});return Qt(Vc,null,c)}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;return t?e.map((s,l)=>Qt(nK,{key:l,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(s.start,n)},isAxis:!1,date:n})):null}computeSegHStyle(e){let{isRtl:t,options:n}=this.context,s=n.slotEventOverlap,l=e.levelCoord,c=e.levelCoord+e.thickness,f,h;s&&(c=Math.min(1,l+(c-l)*2)),t?(f=1-c,h=l):(f=l,h=1-c);let m={zIndex:e.stackDepth+1,left:f*100+"%",right:h*100+"%"};return s&&!e.stackForward&&(m[t?"marginLeft":"marginRight"]=20),m}}function U0e(r,{todayRange:e,nowDate:t,eventSelection:n,eventDrag:s,eventResize:l}){let c=(s?s.affectedInstances:null)||(l?l.affectedInstances:null)||{};return Qt(Vc,null,r.map(f=>{let h=f.eventRange.instance.instanceId;return Qt("div",{key:h,style:{visibility:c[h]?"hidden":""}},Qt(M0e,Object.assign({seg:f,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:h===n,isShort:!1},C2(f,e,t))))}))}function uK(r){return r?{top:r.start,bottom:-r.end}:{top:"",bottom:""}}function lUe(r,e){return r.map(t=>e[t.index])}class cUe extends ql{constructor(){super(...arguments),this.splitFgEventSegs=li(X6),this.splitBgEventSegs=li(X6),this.splitBusinessHourSegs=li(X6),this.splitNowIndicatorSegs=li(X6),this.splitDateSelectionSegs=li(X6),this.splitEventDrag=li(R0e),this.splitEventResize=li(R0e),this.rootElRef=sh(),this.cellElRefs=new ly}render(){let{props:e,context:t}=this,n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),s=e.cells.length,l=this.splitFgEventSegs(e.fgEventSegs,s),c=this.splitBgEventSegs(e.bgEventSegs,s),f=this.splitBusinessHourSegs(e.businessHourSegs,s),h=this.splitNowIndicatorSegs(e.nowIndicatorSegs,s),m=this.splitDateSelectionSegs(e.dateSelectionSegs,s),b=this.splitEventDrag(e.eventDrag,s),S=this.splitEventResize(e.eventResize,s);return Qt("div",{className:"fc-timegrid-cols",ref:this.rootElRef},Qt("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,Qt("tbody",{role:"presentation"},Qt("tr",{role:"row"},e.axis&&Qt("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},Qt("div",{className:"fc-timegrid-col-frame"},Qt("div",{className:"fc-timegrid-now-indicator-container"},typeof n=="number"&&Qt(nK,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:n},isAxis:!0,date:e.nowDate})))),e.cells.map((T,_)=>Qt(aUe,{key:T.key,elRef:this.cellElRefs.createRef(T.key),dateProfile:e.dateProfile,date:T.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:T.extraRenderProps,extraDataAttrs:T.extraDataAttrs,extraClassNames:T.extraClassNames,extraDateSpan:T.extraDateSpan,fgEventSegs:l[_],bgEventSegs:c[_],businessHourSegs:f[_],nowIndicatorSegs:h[_],dateSelectionSegs:m[_],eventDrag:b[_],eventResize:S[_],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new nB(this.rootElRef.current,uUe(this.cellElRefs.currentMap,e.cells),!0,!1))}}function uUe(r,e){return e.map(t=>r[t.key])}class dUe extends Z1{constructor(){super(...arguments),this.processSlotOptions=li(fUe),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props,{slatCoords:n}=this.state;if(t&&n){if(e.time){let s=n.computeTimeTop(e.time);s=Math.ceil(s),s&&(s+=1),t(s)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return Qt("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},Qt(GMe,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),Qt(cUe,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:n,options:s}=this.context,{colCoords:l}=this,{dateProfile:c}=this.props,{slatCoords:f}=this.state,{snapDuration:h,snapsPerSlot:m}=this.processSlotOptions(this.props.slotDuration,s.snapDuration),b=l.leftToIndex(e),S=f.positions.topToIndex(t);if(b!=null&&S!=null){let T=this.props.cells[b],_=f.positions.tops[S],F=f.positions.getHeight(S),R=(t-_)/F,N=Math.floor(R*m),L=S*m+N,V=this.props.cells[b].date,P=hG(c.slotMinTime,eRe(h,L)),W=n.add(V,P),le=n.add(W,h);return{dateProfile:c,dateSpan:Object.assign({range:{start:W,end:le},allDay:!1},T.extraDateSpan),dayEl:l.els[b],rect:{left:l.lefts[b],right:l.rights[b],top:_,bottom:_+F},layer:0}}return null}}function fUe(r,e){let t=e||r,n=pG(r,t);return n===null&&(t=r,n=1),{snapDuration:t,snapsPerSlot:n}}class AUe extends Z1e{sliceRange(e,t){let n=[];for(let s=0;s<t.length;s+=1){let l=NS(e,t[s]);l&&n.push({start:l.start,end:l.end,isStart:l.start.valueOf()===e.start.valueOf(),isEnd:l.end.valueOf()===e.end.valueOf(),col:s})}return n}}class hUe extends Z1{constructor(){super(...arguments),this.buildDayRanges=li(pUe),this.slicer=new AUe,this.timeColsRef=sh()}render(){let{props:e,context:t}=this,{dateProfile:n,dayTableModel:s}=e,{nowIndicator:l,nextDayThreshold:c}=t.options,f=this.buildDayRanges(s,n,t.dateEnv);return Qt(tB,{unit:l?"minute":"day"},(h,m)=>Qt(dUe,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,f),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:s.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:h,nowIndicatorSegs:l&&this.slicer.sliceNowDate(h,n,c,t,f),todayRange:m,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function pUe(r,e,t){let n=[];for(let s of r.headerDates)n.push({start:t.add(s,e.slotMinTime),end:t.add(s,e.slotMaxTime)});return n}const H0e=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function gUe(r,e,t,n,s){let l=new Date(0),c=r,f=Ya(0),h=t||mUe(n),m=[];for(;Pm(c)<Pm(e);){let b=s.add(l,c),S=pG(f,h)!==null;m.push({date:b,time:c,key:b.toISOString(),isoTimeStr:gRe(b),isLabeled:S}),c=hG(c,n),f=hG(f,n)}return m}function mUe(r){let e,t,n;for(e=H0e.length-1;e>=0;e-=1)if(t=Ya(H0e[e]),n=pG(t,r),n!==null&&n>1)return t;return r}class vUe extends zMe{constructor(){super(...arguments),this.buildTimeColsModel=li(yUe),this.buildSlatMetas=li(gUe)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context,{props:s}=this,{dateProfile:l}=s,c=this.buildTimeColsModel(l,n),f=this.allDaySplitter.splitProps(s),h=this.buildSlatMetas(l.slotMinTime,l.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:m}=e,b=!m,S=m,T=e.dayHeaders&&Qt(q1e,{dates:c.headerDates,dateProfile:l,datesRepDistinctDays:!0,renderIntro:b?this.renderHeadAxis:null}),_=e.allDaySlot!==!1&&(R=>Qt(N0e,Object.assign({},f.allDay,{dateProfile:l,dayTableModel:c,nextDayThreshold:e.nextDayThreshold,tableMinWidth:R.tableMinWidth,colGroupNode:R.tableColGroupNode,renderRowIntro:b?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:R.clientWidth,clientHeight:R.clientHeight,forPrint:s.forPrint},this.getAllDayMaxEventProps()))),F=R=>Qt(hUe,Object.assign({},f.timed,{dayTableModel:c,dateProfile:l,axis:b,slotDuration:e.slotDuration,slatMetas:h,forPrint:s.forPrint,tableColGroupNode:R.tableColGroupNode,tableMinWidth:R.tableMinWidth,clientWidth:R.clientWidth,clientHeight:R.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:R.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return S?this.renderHScrollLayout(T,_,F,c.colCnt,m,h,this.state.slatCoords):this.renderSimpleLayout(T,_,F)}}function yUe(r,e){let t=new G1e(r.renderRange,e);return new K1e(t,!1)}var bUe='.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-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.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}';lG(bUe);var wUe=cy({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:vUe,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});ZG.touchMouseIgnoreWait=500;let dK=0,JP=0,fK=!1;class V0e{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=t=>{if(!this.shouldIgnoreMouse()&&CUe(t)&&this.tryStart(t)){let n=this.createEventFromMouse(t,!0);this.emitter.trigger("pointerdown",n),this.initScrollWatch(n),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=t=>{let n=this.createEventFromMouse(t);this.recordCoords(n),this.emitter.trigger("pointermove",n)},this.handleMouseUp=t=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(t)),this.cleanup()},this.handleTouchStart=t=>{if(this.tryStart(t)){this.isTouchDragging=!0;let n=this.createEventFromTouch(t,!0);this.emitter.trigger("pointerdown",n),this.initScrollWatch(n);let s=t.target;this.shouldIgnoreMove||s.addEventListener("touchmove",this.handleTouchMove),s.addEventListener("touchend",this.handleTouchEnd),s.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=t=>{let n=this.createEventFromTouch(t);this.recordCoords(n),this.emitter.trigger("pointermove",n)},this.handleTouchEnd=t=>{if(this.isDragging){let n=t.target;n.removeEventListener("touchmove",this.handleTouchMove),n.removeEventListener("touchend",this.handleTouchEnd),n.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(t)),this.cleanup(),this.isTouchDragging=!1,SUe()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=t=>{if(!this.shouldIgnoreMove){let n=window.scrollX-this.prevScrollX+this.prevPageX,s=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:t,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:n,pageY:s,deltaX:n-this.origPageX,deltaY:s-this.origPageY})}},this.containerEl=e,this.emitter=new zP,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),EUe()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),_Ue()}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return t&&(!this.handleSelector||BA(n,this.handleSelector))?(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){fK=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?BA(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return dK||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(fK=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,s=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,s=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:s}}createEventFromTouch(e,t){let n=e.touches,s,l,c=0,f=0;return n&&n.length?(s=n[0].pageX,l=n[0].pageY):(s=e.pageX,l=e.pageY),t?(this.origPageX=s,this.origPageY=l):(c=s-this.origPageX,f=l-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:s,pageY:l,deltaX:c,deltaY:f}}}function CUe(r){return r.button===0&&!r.ctrlKey}function SUe(){dK+=1,setTimeout(()=>{dK-=1},ZG.touchMouseIgnoreWait)}function EUe(){JP+=1,JP===1&&window.addEventListener("touchmove",$0e,{passive:!1})}function _Ue(){JP-=1,JP||window.removeEventListener("touchmove",$0e,{passive:!1})}function $0e(r){fK&&r.preventDefault()}class BUe{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.scrollX,this.origScreenY=n-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=t-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,t){let n=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,s=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",q6(n,{left:s.left,top:s.top}),UOe(n,()=>{n.style.transition="",e()})}cleanup(){this.mirrorEl&&(dG(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&q6(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.style.userSelect="none",t.style.webkitUserSelect="none",t.style.pointerEvents="none",t.classList.add("fc-event-dragging"),q6(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t}}class Q0e extends jG{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.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(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class z0e extends Q0e{constructor(e,t){super(new cPe(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return aPe(this.scrollController.el)}}class xUe extends Q0e{constructor(e){super(new uPe,e)}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 j0e=typeof performance=="function"?performance.now:Date.now;class TUe{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 e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=j0e();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let n=e-window.scrollX,s=t-window.scrollY,l=this.pointerScreenY===null?0:s-this.pointerScreenY,c=this.pointerScreenX===null?0:n-this.pointerScreenX;l<0?this.everMovedUp=!0:l>0&&(this.everMovedDown=!0),c<0?this.everMovedLeft=!0:c>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=s,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(j0e()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e,{edgeThreshold:s}=this,l=s-e.distance,c=l*l/(s*s)*this.maxVelocity*t,f=1;switch(e.name){case"left":f=-1;case"right":n.setScrollLeft(n.getScrollLeft()+c*f);break;case"top":f=-1;case"bottom":n.setScrollTop(n.getScrollTop()+c*f);break}}computeBestEdge(e,t){let{edgeThreshold:n}=this,s=null,l=this.scrollCaches||[];for(let c of l){let f=c.clientRect,h=e-f.left,m=f.right-e,b=t-f.top,S=f.bottom-t;h>=0&&m>=0&&b>=0&&S>=0&&(b<=n&&this.everMovedUp&&c.canScrollUp()&&(!s||s.distance>b)&&(s={scrollCache:c,name:"top",distance:b}),S<=n&&this.everMovedDown&&c.canScrollDown()&&(!s||s.distance>S)&&(s={scrollCache:c,name:"bottom",distance:S}),h<=n&&this.everMovedLeft&&c.canScrollLeft()&&(!s||s.distance>h)&&(s={scrollCache:c,name:"left",distance:h}),m<=n&&this.everMovedRight&&c.canScrollRight()&&(!s||s.distance>m)&&(s={scrollCache:c,name:"right",distance:m}))}return s}buildCaches(e){return this.queryScrollEls(e).map(t=>t===window?new xUe(!1):new z0e(t,!1))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)typeof n=="object"?t.push(n):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}}class J6 extends APe{constructor(e,t){super(e),this.containerEl=e,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=s=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,HOe(document.body),$Oe(document.body),s.isTouch||s.origEvent.preventDefault(),this.emitter.trigger("pointerdown",s),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(s.subjectEl,s.pageX,s.pageY),this.startDelay(s),this.minDistance||this.handleDistanceSurpassed(s)))},this.onPointerMove=s=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",s),!this.isDistanceSurpassed){let l=this.minDistance,c,{deltaX:f,deltaY:h}=s;c=f*f+h*h,c>=l*l&&this.handleDistanceSurpassed(s)}this.isDragging&&(s.origEvent.type!=="scroll"&&(this.mirror.handleMove(s.pageX,s.pageY),this.autoScroller.handleMove(s.pageX,s.pageY)),this.emitter.trigger("dragmove",s))}},this.onPointerUp=s=>{this.isInteracting&&(this.isInteracting=!1,VOe(document.body),QOe(document.body),this.emitter.trigger("pointerup",s),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(s)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let n=this.pointer=new V0e(e);n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),t&&(n.selector=t),this.mirror=new BUe,this.autoScroller=new TUe}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class kUe{constructor(e){this.el=e,this.origRect=zG(e),this.scrollCaches=Q1e(e).map(t=>new z0e(t,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let n={left:e,top:t};for(let s of this.scrollCaches)if(!FUe(s.getEventTarget())&&!G7e(n,s.clientRect))return!1;return!0}}function FUe(r){let e=r.tagName;return e==="HTML"||e==="BODY"}class eL{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=n=>{let{dragging:s}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(n),this.initialHit||!this.requireInitial?(s.setIgnoreMove(!1),this.emitter.trigger("pointerdown",n)):s.setIgnoreMove(!0)},this.handleDragStart=n=>{this.emitter.trigger("dragstart",n),this.handleMove(n,!0)},this.handleDragMove=n=>{this.emitter.trigger("dragmove",n),this.handleMove(n)},this.handlePointerUp=n=>{this.releaseHits(),this.emitter.trigger("pointerup",n)},this.handleDragEnd=n=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,n),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",n)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new zP}processFirstCoord(e){let t={left:e.pageX,top:e.pageY},n=t,s=e.subjectEl,l;s instanceof HTMLElement&&(l=zG(s),n=K7e(n,l));let c=this.initialHit=this.queryHitForOffset(n.left,n.top);if(c){if(this.useSubjectCenter&&l){let f=H1e(l,c.rect);f&&(n=Z7e(f))}this.coordAdjust=Y7e(n,t)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(t||!tL(this.movingHit,n))&&(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=sy(this.droppableStore,e=>(e.component.prepareHits(),new kUe(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:s}=this,l=null;for(let c in n){let f=n[c].component,h=s[c];if(h&&h.isWithinClipping(e,t)){let m=h.computeLeft(),b=h.computeTop(),S=e-m,T=t-b,{origRect:_}=h,F=_.right-_.left,R=_.bottom-_.top;if(S>=0&&S<F&&T>=0&&T<R){let N=f.queryHit(S,T,F,R);N&&UP(N.dateProfile.activeRange,N.dateSpan.range)&&(this.disablePointCheck||h.el.contains(h.el.getRootNode().elementFromPoint(S+m-window.scrollX,T+b-window.scrollY)))&&(!l||N.layer>l.layer)&&(N.componentId=c,N.context=f.context,N.rect.left+=m,N.rect.right+=m,N.rect.top+=b,N.rect.bottom+=b,l=N)}}}return l}}function tL(r,e){return!r&&!e?!0:!!r!=!!e?!1:L7e(r.dateSpan,e.dateSpan)}function W0e(r,e){let t={};for(let n of e.pluginHooks.datePointTransforms)Object.assign(t,n(r,e));return Object.assign(t,IUe(r,e.dateEnv)),t}function IUe(r,e){return{date:e.toDate(r.range.start),dateStr:e.formatIso(r.range.start,{omitTime:r.allDay}),allDay:r.allDay}}class DUe extends eB{constructor(e){super(e),this.handlePointerDown=n=>{let{dragging:s}=this,l=n.origEvent.target;s.setIgnoreMove(!this.component.isValidDateDownEl(l))},this.handleDragEnd=n=>{let{component:s}=this,{pointer:l}=this.dragging;if(!l.wasTouchScroll){let{initialHit:c,finalHit:f}=this.hitDragging;if(c&&f&&tL(c,f)){let{context:h}=s,m=Object.assign(Object.assign({},W0e(c.dateSpan,h)),{dayEl:c.dayEl,jsEvent:n.origEvent,view:h.viewApi||h.calendarApi.view});h.emitter.trigger("dateClick",m)}}},this.dragging=new J6(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new eL(this.dragging,MG(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class NUe extends eB{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=c=>{let{component:f,dragging:h}=this,{options:m}=f.context,b=m.selectable&&f.isValidDateDownEl(c.origEvent.target);h.setIgnoreMove(!b),h.delay=c.isTouch?OUe(f):null},this.handleDragStart=c=>{this.component.context.calendarApi.unselect(c)},this.handleHitUpdate=(c,f)=>{let{context:h}=this.component,m=null,b=!1;if(c){let S=this.hitDragging.initialHit;c.componentId===S.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(S,c)||(m=RUe(S,c,h.pluginHooks.dateSelectionTransformers)),(!m||!yPe(m,c.dateProfile,h))&&(b=!0,m=null)}m?h.dispatch({type:"SELECT_DATES",selection:m}):f||h.dispatch({type:"UNSELECT_DATES"}),b?fG():AG(),f||(this.dragSelection=m)},this.handlePointerUp=c=>{this.dragSelection&&(B1e(this.dragSelection,c,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,s=this.dragging=new J6(e.el);s.touchScrollAllowed=!1,s.minDistance=n.selectMinDistance||0,s.autoScroller.isEnabled=n.dragScroll;let l=this.hitDragging=new eL(this.dragging,MG(e));l.emitter.on("pointerdown",this.handlePointerDown),l.emitter.on("dragstart",this.handleDragStart),l.emitter.on("hitupdate",this.handleHitUpdate),l.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function OUe(r){let{options:e}=r.context,t=e.selectLongPressDelay;return t==null&&(t=e.longPressDelay),t}function RUe(r,e,t){let n=r.dateSpan,s=e.dateSpan,l=[n.range.start,n.range.end,s.range.start,s.range.end];l.sort(GOe);let c={};for(let f of t){let h=f(r,e);if(h===!1)return null;h&&Object.assign(c,h)}return c.range={start:l[0],end:l[3]},c.allDay=n.allDay,c}class e8 extends eB{constructor(e){super(e),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=c=>{let f=c.origEvent.target,{component:h,dragging:m}=this,{mirror:b}=m,{options:S}=h.context,T=h.context;this.subjectEl=c.subjectEl;let _=this.subjectSeg=J_(c.subjectEl),R=(this.eventRange=_.eventRange).instance.instanceId;this.relevantEvents=NG(T.getCurrentData().eventStore,R),m.minDistance=c.isTouch?0:S.eventDragMinDistance,m.delay=c.isTouch&&R!==h.props.eventSelection?LUe(h):null,S.fixedMirrorParent?b.parentNode=S.fixedMirrorParent:b.parentNode=BA(f,".fc"),b.revertDuration=S.dragRevertDuration;let N=h.isValidSegDownEl(f)&&!BA(f,".fc-event-resizer");m.setIgnoreMove(!N),this.isDragging=N&&c.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=c=>{let f=this.component.context,h=this.eventRange,m=h.instance.instanceId;c.isTouch?m!==this.component.props.eventSelection&&f.dispatch({type:"SELECT_EVENT",eventInstanceId:m}):f.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(f.calendarApi.unselect(c),f.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new hu(f,h.def,h.instance),jsEvent:c.origEvent,view:f.viewApi}))},this.handleHitUpdate=(c,f)=>{if(!this.isDragging)return;let h=this.relevantEvents,m=this.hitDragging.initialHit,b=this.component.context,S=null,T=null,_=null,F=!1,R={affectedEvents:h,mutatedEvents:jp(),isEvent:!0};if(c){S=c.context;let N=S.options;b===S||N.editable&&N.droppable?(T=PUe(m,c,this.eventRange.instance.range.start,S.getCurrentData().pluginHooks.eventDragMutationMassagers),T&&(_=PG(h,S.getCurrentData().eventUiBases,T,S),R.mutatedEvents=_,Y1e(R,c.dateProfile,S)||(F=!0,T=null,_=null,R.mutatedEvents=jp()))):S=null}this.displayDrag(S,R),F?fG():AG(),f||(b===S&&tL(m,c)&&(T=null),this.dragging.setMirrorNeedsRevert(!T),this.dragging.setMirrorIsVisible(!c||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=S,this.validMutation=T,this.mutatedRelevantEvents=_)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=c=>{if(this.isDragging){let f=this.component.context,h=f.viewApi,{receivingContext:m,validMutation:b}=this,S=this.eventRange.def,T=this.eventRange.instance,_=new hu(f,S,T),F=this.relevantEvents,R=this.mutatedRelevantEvents,{finalHit:N}=this.hitDragging;if(this.clearDrag(),f.emitter.trigger("eventDragStop",{el:this.subjectEl,event:_,jsEvent:c.origEvent,view:h}),b){if(m===f){let L=new hu(f,R.defs[S.defId],T?R.instances[T.instanceId]:null);f.dispatch({type:"MERGE_EVENTS",eventStore:R});let V={oldEvent:_,event:L,relatedEvents:RS(R,f,T),revert(){f.dispatch({type:"MERGE_EVENTS",eventStore:F})}},P={};for(let W of f.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(P,W(b,f));f.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},V),P),{el:c.subjectEl,delta:b.datesDelta,jsEvent:c.origEvent,view:h})),f.emitter.trigger("eventChange",V)}else if(m){let L={event:_,relatedEvents:RS(F,f,T),revert(){f.dispatch({type:"MERGE_EVENTS",eventStore:F})}};f.emitter.trigger("eventLeave",Object.assign(Object.assign({},L),{draggedEl:c.subjectEl,view:h})),f.dispatch({type:"REMOVE_EVENTS",eventStore:F}),f.emitter.trigger("eventRemove",L);let V=R.defs[S.defId],P=R.instances[T.instanceId],W=new hu(m,V,P);m.dispatch({type:"MERGE_EVENTS",eventStore:R});let le={event:W,relatedEvents:RS(R,m,P),revert(){m.dispatch({type:"REMOVE_EVENTS",eventStore:R})}};m.emitter.trigger("eventAdd",le),c.isTouch&&m.dispatch({type:"SELECT_EVENT",eventInstanceId:T.instanceId}),m.emitter.trigger("drop",Object.assign(Object.assign({},W0e(N.dateSpan,m)),{draggedEl:c.subjectEl,jsEvent:c.origEvent,view:N.context.viewApi})),m.emitter.trigger("eventReceive",Object.assign(Object.assign({},le),{draggedEl:c.subjectEl,view:N.context.viewApi}))}}else f.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:n}=t.context,s=this.dragging=new J6(e.el);s.pointer.selector=e8.SELECTOR,s.touchScrollAllowed=!1,s.autoScroller.isEnabled=n.dragScroll;let l=this.hitDragging=new eL(this.dragging,UG);l.useSubjectCenter=e.useEventCenter,l.emitter.on("pointerdown",this.handlePointerDown),l.emitter.on("dragstart",this.handleDragStart),l.emitter.on("hitupdate",this.handleHitUpdate),l.emitter.on("pointerup",this.handlePointerUp),l.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,s=this.receivingContext;s&&s!==e&&(s===n?s.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:jp(),isEvent:!0}}):s.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.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}}e8.SELECTOR=".fc-event-draggable, .fc-event-resizable";function PUe(r,e,t,n){let s=r.dateSpan,l=e.dateSpan,c=s.range.start,f=l.range.start,h={};s.allDay!==l.allDay&&(h.allDay=l.allDay,h.hasEnd=e.context.options.allDayMaintainDuration,l.allDay?c=$c(t):c=t);let m=Y_(c,f,r.context.dateEnv,r.componentId===e.componentId?r.largeUnit:null);m.milliseconds&&(h.allDay=!1);let b={datesDelta:m,standardProps:h};for(let S of n)S(b,r,e);return b}function LUe(r){let{options:e}=r.context,t=e.eventLongPressDelay;return t==null&&(t=e.longPressDelay),t}class MUe extends eB{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=l=>{let{component:c}=this,f=this.querySegEl(l),h=J_(f),m=this.eventRange=h.eventRange;this.dragging.minDistance=c.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(l.origEvent.target)||l.isTouch&&this.component.props.eventSelection!==m.instance.instanceId)},this.handleDragStart=l=>{let{context:c}=this.component,f=this.eventRange;this.relevantEvents=NG(c.getCurrentData().eventStore,this.eventRange.instance.instanceId);let h=this.querySegEl(l);this.draggingSegEl=h,this.draggingSeg=J_(h),c.calendarApi.unselect(),c.emitter.trigger("eventResizeStart",{el:h,event:new hu(c,f.def,f.instance),jsEvent:l.origEvent,view:c.viewApi})},this.handleHitUpdate=(l,c,f)=>{let{context:h}=this.component,m=this.relevantEvents,b=this.hitDragging.initialHit,S=this.eventRange.instance,T=null,_=null,F=!1,R={affectedEvents:m,mutatedEvents:jp(),isEvent:!0};l&&(l.componentId===b.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(b,l)||(T=UUe(b,l,f.subjectEl.classList.contains("fc-event-resizer-start"),S.range))),T&&(_=PG(m,h.getCurrentData().eventUiBases,T,h),R.mutatedEvents=_,Y1e(R,l.dateProfile,h)||(F=!0,T=null,_=null,R.mutatedEvents=null)),_?h.dispatch({type:"SET_EVENT_RESIZE",state:R}):h.dispatch({type:"UNSET_EVENT_RESIZE"}),F?fG():AG(),c||(T&&tL(b,l)&&(T=null),this.validMutation=T,this.mutatedRelevantEvents=_)},this.handleDragEnd=l=>{let{context:c}=this.component,f=this.eventRange.def,h=this.eventRange.instance,m=new hu(c,f,h),b=this.relevantEvents,S=this.mutatedRelevantEvents;if(c.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:m,jsEvent:l.origEvent,view:c.viewApi}),this.validMutation){let T=new hu(c,S.defs[f.defId],h?S.instances[h.instanceId]:null);c.dispatch({type:"MERGE_EVENTS",eventStore:S});let _={oldEvent:m,event:T,relatedEvents:RS(S,c,h),revert(){c.dispatch({type:"MERGE_EVENTS",eventStore:b})}};c.emitter.trigger("eventResize",Object.assign(Object.assign({},_),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||Ya(0),endDelta:this.validMutation.endDelta||Ya(0),jsEvent:l.origEvent,view:c.viewApi})),c.emitter.trigger("eventChange",_)}else c.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new J6(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let s=this.hitDragging=new eL(this.dragging,MG(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return BA(e.subjectEl,".fc-event")}}function UUe(r,e,t,n){let s=r.context.dateEnv,l=r.dateSpan.range.start,c=e.dateSpan.range.start,f=Y_(l,c,s,r.largeUnit);if(t){if(s.add(n.start,f)<n.end)return{startDelta:f}}else if(s.add(n.end,f)>n.start)return{endDelta:f};return null}class HUe{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=n=>{n.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=n=>{let s=this.context.options.unselectCancel,l=Hme(n.origEvent);this.matchesCancel=!!BA(l,s),this.matchesEvent=!!BA(l,e8.SELECTOR)},this.onDocumentPointerUp=n=>{let{context:s}=this,{documentPointer:l}=this,c=s.getCurrentData();if(!l.wasTouchScroll){if(c.dateSelection&&!this.isRecentPointerDateSelect){let f=s.options.unselectAuto;f&&(!f||!this.matchesCancel)&&s.calendarApi.unselect(n)}c.eventSelection&&!this.matchesEvent&&s.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new V0e(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const VUe={fixedMirrorParent:Hn},$Ue={dateClick:Hn,eventDragStart:Hn,eventDragStop:Hn,eventDrop:Hn,eventResizeStart:Hn,eventResizeStop:Hn,eventResize:Hn,drop:Hn,eventReceive:Hn,eventLeave:Hn};ZG.dataAttrPrefix="";var QUe=cy({name:"@fullcalendar/interaction",componentInteractions:[DUe,NUe,e8,MUe],calendarInteractions:[HUe],elementDraggingImpl:J6,optionRefiners:VUe,listenerRefiners:$Ue});let zUe=0,jUe=new Date().toISOString().replace(/T.*$/,"");const WUe=[{id:qUe(),title:"All-day event",start:jUe}];function qUe(){return String(zUe++)}const GUe={class:"ik-calendar-com"},KUe={class:"ik-calendar-com-main"},ZUe={class:"title-line"},YUe=["title","onClick"],XUe={key:0,style:{width:"90%"}},JUe={key:1,style:{width:"90%"}},e9e={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},t9e={key:0,style:{"margin-left":"2%"}},n9e={key:1},r9e={key:0,class:"placeholder"},o9e={class:"info"},s9e={class:"dialog-footer"},i9e={name:"IkApprovalProcess"},a9e=g.defineComponent({...i9e,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(r,{emit:e}){const t=e,n=R=>{if(f.selectInfo=R,l(),R.view.type=="dayGridMonth"){let L=R.end.getTime()-864e5;f.timeType="month",f.form.startDate=ts.ikDate.toYMD(R.start),f.form.endDate=ts.ikDate.toYMD(new Date(L))}else R.view.type=="timeGridWeek"?(f.timeType="week",f.form.startDate=ts.ikDate.toYMDHM(R.start),f.form.endDate=ts.ikDate.toYMDHM(R.end)):R.view.type=="timeGridDay"&&(f.timeType="day",f.form.startDate=ts.ikDate.toYMD(R.start),f.form.endDate=ts.ikDate.toYMD(R.start),f.form.startTime=ts.ikDate.toDateTime(R.start),f.form.endTime=ts.ikDate.toDateTime(R.end));R.view.calendar.unselect(),g.nextTick(()=>{f.title="新建日程",f.dialogVisible=!0})},s=(R,N)=>{f.title="修改日程",f.dialogVisible=!0},l=R=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:R||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(V=>{V.json().then(P=>{const{success:W,data:le}=P;if(!W)return;const{departments:J,users:q,roles:ce,posts:fe}=le;f.depList=J,f.userList=q,f.roleList=ce,f.postList=fe})}).catch(V=>{console.info("error: ",V)})},c=R=>{f.currentEvents=R},f=g.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:lOe,plugins:[LMe,wUe,QUe],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:WUe,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:n,eventClick:R=>s(),eventsSet:c},currentEvents:[]}),h=()=>{var R;(R=f.formRef)==null||R.resetFields(),f.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},f.dialogVisible=!1},m=async()=>{var L,V,P,W;let R=(V=(L=f.selectInfo)==null?void 0:L.view)==null?void 0:V.calendar,N={id:new Date().getTime(),title:f.form.title,start:(P=f.selectInfo)==null?void 0:P.startStr,end:(W=f.selectInfo)==null?void 0:W.endStr,allDay:f.allDay};await R.addEvent(N),t("success",N),h()},b=R=>{mn.ElMessageBox.confirm(`你确定删除事件'${R.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{mn.ElMessage({type:"success",message:"删除成功"}),R.event.remove(),t("delete",R.event)})},S=R=>{f.handList=R.list,f.form.personList=R.list},T=()=>{f.isShow=!0},_=R=>{l(R==null?void 0:R.elementId)},F=R=>{f.form.personList.splice(R,1),f.handList=f.form.personList};return(R,N)=>{const L=g.resolveComponent("el-checkbox");return g.openBlock(),g.createElementBlock("div",GUe,[g.createElementVNode("div",KUe,[g.createVNode(g.unref(iMe),{class:"ik-calendar-com-calendar",options:f.calendarOptions},{eventContent:g.withCtx(V=>[g.createElementVNode("div",ZUe,[g.createElementVNode("span",{class:"title",title:V.event.title,onClick:g.withModifiers(P=>s(),["stop"])},g.toDisplayString(V.event.title),9,YUe),g.createVNode(g.unref(mn.ElIcon),{size:16,onClick:g.withModifiers(P=>b(V),["stop"])},{default:g.withCtx(()=>[g.createVNode(g.unref(KIe))]),_:1},8,["onClick"])])]),_:1},8,["options"])]),g.createCommentVNode(" 新建日程 "),g.createVNode(g.unref(mn.ElDialog),{modelValue:f.dialogVisible,"onUpdate:modelValue":N[12]||(N[12]=V=>f.dialogVisible=V),title:f.title,width:"30%",ref:"formRef",onClose:h},{footer:g.withCtx(()=>[g.createElementVNode("span",s9e,[g.createVNode(g.unref(mn.ElButton),{onClick:h},{default:g.withCtx(()=>[...N[20]||(N[20]=[g.createTextVNode("取消",-1)])]),_:1}),g.createVNode(g.unref(mn.ElButton),{type:"primary",onClick:m},{default:g.withCtx(()=>[...N[21]||(N[21]=[g.createTextVNode("确定",-1)])]),_:1})])]),default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElForm),{model:f.form},{default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElFormItem),null,{default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElIcon),{class:"icon"},{default:g.withCtx(()=>[g.createVNode(g.unref($Ie))]),_:1}),g.createVNode(g.unref(mn.ElInput),{modelValue:f.form.title,"onUpdate:modelValue":N[0]||(N[0]=V=>f.form.title=V),placeholder:`添加${f.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),g.createVNode(g.unref(mn.ElSelect),{modelValue:f.form.type,"onUpdate:modelValue":N[1]||(N[1]=V=>f.form.type=V),style:{width:"20%"}},{default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElOption),{label:"会议",value:1}),g.createVNode(g.unref(mn.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),g.createVNode(g.unref(mn.ElFormItem),null,{default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElIcon),{class:"icon"},{default:g.withCtx(()=>[g.createVNode(g.unref(zIe))]),_:1}),f.timeType=="month"?(g.openBlock(),g.createElementBlock("div",XUe,[g.createVNode(g.unref(mn.ElDatePicker),{modelValue:f.form.startDate,"onUpdate:modelValue":N[2]||(N[2]=V=>f.form.startDate=V),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),N[15]||(N[15]=g.createElementVNode("span",{class:"to"},"至",-1)),g.createVNode(g.unref(mn.ElDatePicker),{modelValue:f.form.endDate,"onUpdate:modelValue":N[3]||(N[3]=V=>f.form.endDate=V),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):g.createCommentVNode("v-if",!0),f.timeType=="week"?(g.openBlock(),g.createElementBlock("div",JUe,[g.createVNode(g.unref(mn.ElDatePicker),{modelValue:f.form.startDate,"onUpdate:modelValue":N[4]||(N[4]=V=>f.form.startDate=V),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),N[16]||(N[16]=g.createElementVNode("span",{class:"to"},"至",-1)),g.createVNode(g.unref(mn.ElDatePicker),{modelValue:f.form.endDate,"onUpdate:modelValue":N[5]||(N[5]=V=>f.form.endDate=V),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):g.createCommentVNode("v-if",!0),f.timeType=="day"?(g.openBlock(),g.createElementBlock("div",e9e,[g.createVNode(g.unref(mn.ElDatePicker),{modelValue:f.form.startDate,"onUpdate:modelValue":N[6]||(N[6]=V=>f.form.startDate=V),type:"date",placeholder:"开始日期",style:g.normalizeStyle({width:f.allDay?"45%":"90%"})},null,8,["modelValue","style"]),f.allDay?(g.openBlock(),g.createElementBlock("div",n9e,[N[18]||(N[18]=g.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),g.createVNode(g.unref(mn.ElDatePicker),{modelValue:f.form.endDate,"onUpdate:modelValue":N[9]||(N[9]=V=>f.form.endDate=V),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(g.openBlock(),g.createElementBlock("div",t9e,[g.createVNode(g.unref(mn.ElTimePicker),{modelValue:f.form.startTime,"onUpdate:modelValue":N[7]||(N[7]=V=>f.form.startTime=V),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),N[17]||(N[17]=g.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),g.createVNode(g.unref(mn.ElTimePicker),{modelValue:f.form.endTime,"onUpdate:modelValue":N[8]||(N[8]=V=>f.form.endTime=V),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),g.createVNode(L,{modelValue:f.allDay,"onUpdate:modelValue":N[10]||(N[10]=V=>f.allDay=V),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):g.createCommentVNode("v-if",!0)]),_:1}),g.createVNode(g.unref(mn.ElFormItem),null,{default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElIcon),{class:"icon"},{default:g.withCtx(()=>[g.createVNode(g.unref(yDe))]),_:1}),g.createElementVNode("div",{class:"personBlock",onClick:g.withModifiers(T,["stop"])},[f.form.personList.length?(g.openBlock(!0),g.createElementBlock(g.Fragment,{key:1},g.renderList(f.form.personList,(V,P)=>(g.openBlock(),g.createElementBlock("div",{key:P,class:"nameBlock"},[g.createElementVNode("div",o9e,[N[19]||(N[19]=g.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)),g.createElementVNode("div",null,g.toDisplayString(V.elementName),1)]),g.createVNode(g.unref(mn.ElIcon),{class:"close",onClick:g.withModifiers(W=>F(P),["stop"])},{default:g.withCtx(()=>[g.createVNode(g.unref(vP))]),_:1},8,["onClick"])]))),128)):(g.openBlock(),g.createElementBlock("span",r9e,"添加参与人"))])]),_:1}),g.createVNode(g.unref(mn.ElFormItem),null,{default:g.withCtx(()=>[g.createVNode(g.unref(mn.ElIcon),{class:"icon"},{default:g.withCtx(()=>[g.createVNode(g.unref(rDe))]),_:1}),g.createVNode(g.unref(mn.ElInput),{modelValue:f.form.location,"onUpdate:modelValue":N[11]||(N[11]=V=>f.form.location=V),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),g.createCommentVNode(" 选人组件 "),g.createVNode(g.unref(C8),{modelValue:f.handList,"onUpdate:modelValue":N[13]||(N[13]=V=>f.handList=V),show:f.isShow,"onUpdate:show":N[14]||(N[14]=V=>f.isShow=V),onOk:S,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":f.depList,"user-list":f.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:_},null,8,["modelValue","show","dep-list","user-list"])])}}}),l9e=xi(gi(a9e,[["__scopeId","data-v-2e96123d"]])),c9e=["onClick"],u9e={class:"flex align-center",style:{width:"100%"}},d9e=["title"],f9e={key:0,class:"size",style:{"padding-right":"20px","white-space":"nowrap"}},A9e=["onClick"],h9e={class:"file-list"},p9e=["title"],g9e={key:0,class:"size",style:{"padding-right":"20px","white-space":"nowrap"}},m9e=["onClick"],v9e={class:"text"},y9e=["title"],b9e={class:"size"},nL=xi(g.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!0},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>null},jwtToken:{type:String,default:""},simple:{type:Boolean,default:!1},showType:{type:String,default:"default"},showDownloadBtn:{type:Boolean,default:!0},showPreviewBtn:{type:Boolean,default:!0},showFileSize:{type:Boolean,default:!1},customDownload:{type:Boolean,default:!1}},emits:["handPreview","download","close"],setup(r,{emit:e}){const t=r,n=g.computed(()=>t.simple?"simple":t.showType),{cLoadUrl:s,cOnlyofficeConfig:l,cOnlyofficePreviewType:c}=q1(t),f=e,h=g.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...t.field})),m=g.ref({}),b=g.ref(!1),S=N=>{var L,V;m.value={...N,name:N.name,url:oy(s.value,N[h.value.url]||((V=(L=N==null?void 0:N.response)==null?void 0:L.data)==null?void 0:V.id)||(N==null?void 0:N.id))},t.isOnlyOfficePreview&&(b.value=!0),f("handPreview",m.value)},T=N=>{t.customDownload?f("download",N):ts.ikFile.downloadFile(oy(s.value,N[h.value.url]||N.attachmentId||N.id),N[h.value.name]||N.attachmentName)},_=N=>{f("close",N)},F=g.computed(()=>ts.paramType.isNumber(t.width)?`${t.width}px`:t.width),R=g.computed(()=>t.list.map(N=>{var V;const L=N[h.value.name]||N.attachmentName;return{...N,name:L,size:N[h.value.size]||(N==null?void 0:N.fileSize)||(N==null?void 0:N.attachmentSize),suffix:N[h.value.suffix]||(N==null?void 0:N.attachmentSuffix)||((V=L.split("."))==null?void 0:V.at(-1))}}));return(N,L)=>{var V,P,W;return g.openBlock(),g.createElementBlock(g.Fragment,null,[(V=r.list)!=null&&V.length?(g.openBlock(),g.createElementBlock(g.Fragment,{key:0},[g.createCommentVNode(" 简单模式 "),n.value==="simple"?(g.openBlock(!0),g.createElementBlock(g.Fragment,{key:0},g.renderList(R.value,(le,J)=>(g.openBlock(),g.createElementBlock("div",{class:"iking-privew-annex simple",key:J,onClick:q=>S(le),style:g.normalizeStyle({width:F.value})},[g.createElementVNode("div",u9e,[g.createElementVNode("div",{class:"fileName simple",title:le.name},g.toDisplayString(le.name),9,d9e),r.showFileSize?(g.openBlock(),g.createElementBlock("div",f9e,g.toDisplayString(le.size?`(${g.unref(g2)(le.size)})`:""),1)):g.createCommentVNode("v-if",!0)]),g.createElementVNode("div",{class:g.normalizeClass(["flex flex-center",{"hover-show":r.iconHoverShow}])},[r.showDownloadBtn?(g.openBlock(),g.createBlock(g.unref(Ls),{key:0,name:"iksvg_daochu",onClick:g.withModifiers(q=>T(le),["stop"]),size:20},null,8,["onClick"])):g.createCommentVNode("v-if",!0),g.unref(c).includes(le.suffix)&&r.showPreviewBtn?(g.openBlock(),g.createBlock(g.unref(Ls),{key:1,name:"iksvg_yulan",size:20,onClick:g.withModifiers(q=>S(le),["stop"])},null,8,["onClick"])):g.createCommentVNode("v-if",!0),g.renderSlot(N.$slots,"operation",{data:{...le,findex:J}})],2)],12,c9e))),128)):n.value==="simple-icon"?(g.openBlock(),g.createElementBlock(g.Fragment,{key:1},[g.createCommentVNode(" 简单图标模式 "),(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(R.value,(le,J)=>(g.openBlock(),g.createElementBlock("div",{class:"iking-privew-annex simple-icon",key:J,onClick:q=>S(le),style:g.normalizeStyle({width:F.value})},[g.createElementVNode("div",h9e,[g.createCommentVNode(" 若为默认40,则simple-icon设置为20,否则设置为iconSize "),g.createVNode(g.unref(q_),{file:le,style:g.normalizeStyle({height:`${r.iconSize===40?20:r.iconSize}px`,marginRight:"10px"}),class:"ikui-w-auto",fields:h.value},null,8,["file","style","fields"]),g.createElementVNode("div",{class:"flex",style:g.normalizeStyle({width:`calc(100% - ${r.iconSize+10}px)`})},[g.createElementVNode("p",{class:"fileName simple",title:le.name},g.toDisplayString(le.name),9,p9e),r.showFileSize?(g.openBlock(),g.createElementBlock("p",g9e,g.toDisplayString(le.size?`(${g.unref(g2)(le.size)})`:""),1)):g.createCommentVNode("v-if",!0)],4)]),r.showDownloadBtn?(g.openBlock(),g.createBlock(g.unref(Ls),{key:0,name:"iksvg_daochu",size:20,title:"下载",onClick:g.withModifiers(q=>T(le),["stop"])},null,8,["onClick"])):g.createCommentVNode("v-if",!0),g.unref(c).includes(le.suffix)&&r.showPreviewBtn?(g.openBlock(),g.createBlock(g.unref(Ls),{key:1,name:"iksvg_yulan",size:20,onClick:g.withModifiers(q=>S(le),["stop"]),title:"预览"},null,8,["onClick"])):g.createCommentVNode("v-if",!0)],12,A9e))),128))],64)):(g.openBlock(),g.createElementBlock(g.Fragment,{key:2},[g.createCommentVNode(" 默认模式 "),(g.openBlock(!0),g.createElementBlock(g.Fragment,null,g.renderList(R.value,(le,J)=>{var q;return g.openBlock(),g.createElementBlock("div",{class:g.normalizeClass(["iking-privew-annex",{"is-bg":r.showBg}]),key:J,style:g.normalizeStyle({marginBottom:J==((q=r.list)==null?void 0:q.length)-1?"0":"10px",width:F.value})},[g.createElementVNode("div",{class:"file-card",onClick:ce=>S(le)},[g.createVNode(g.unref(q_),{file:le,style:g.normalizeStyle({height:`${r.iconSize}px`}),class:"ikui-w-auto",fields:h.value},null,8,["file","style","fields"]),g.createElementVNode("div",v9e,[g.createElementVNode("div",{class:"fileName",title:le.name},g.toDisplayString(le.name),9,y9e),g.createElementVNode("div",b9e,g.toDisplayString(g.unref(g2)(le.size)),1)]),g.createElementVNode("div",{class:g.normalizeClass(["flex flex-center",{"hover-show":r.iconHoverShow}])},[r.showDownloadBtn?(g.openBlock(),g.createBlock(g.unref(Ls),{key:0,name:"iksvg_daochu",onClick:g.withModifiers(ce=>T(le),["stop"]),bg:r.showBg,size:r.showBg?"default":20,title:"下载"},null,8,["onClick","bg","size"])):g.createCommentVNode("v-if",!0),g.unref(c).includes(le.suffix)&&r.showPreviewBtn?(g.openBlock(),g.createBlock(g.unref(Ls),{key:1,name:"iksvg_yulan",bg:r.showBg,size:r.showBg?"default":20,title:"预览",onClick:g.withModifiers(ce=>S(le),["stop"])},null,8,["bg","size","onClick"])):g.createCommentVNode("v-if",!0),g.renderSlot(N.$slots,"operation",{data:{...le,findex:J}})],2)],8,m9e)],6)}),128))],64))],64)):g.createCommentVNode("v-if",!0),g.createVNode(g.unref(AK),{onClose:_,show:b.value,"onUpdate:show":L[0]||(L[0]=le=>b.value=le),loadUrl:g.unref(s),file:m.value,onlyofficeServer:((P=g.unref(l))==null?void 0:P.serverUrl)||r.onlyofficeServer,onlyOfficeConfig:g.unref(l),onlyOfficeAccept:((W=g.unref(l))==null?void 0:W.accept)||r.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}})),w9e={class:"head-logo"},C9e=["src"],S9e={class:"text-preview-container"},E9e={class:"text-preview-header"},_9e={class:"file-name"},B9e={class:"text-preview-content"},AK=xi(g.defineComponent({__name:"IkPreviewFileDialog",props:g.mergeModels({file:{type:Object,default:()=>[]},loadUrl:{type:String,default:""},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},field:{type:Object,default:()=>({})}},{show:{default:!1},showModifiers:{}}),emits:g.mergeModels(["close"],["update:show"]),setup(r,{emit:e}){const t=r,n=e,s=g.useModel(r,"show"),l=g.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...t.field})),c=g.ref(null),f=g.ref(null),h=g.ref(""),m=g.reactive({image:!1,office:!1,video:!1,text:!1}),b=F=>{var R,N,L,V,P,W,le;try{const J=((R=F==null?void 0:F.response)==null?void 0:R.data)||F,q=J[l.value.url]||(J==null?void 0:J.id)||J.attachmentId,ce=(N=J[l.value.suffix]||J.attachmentSuffix)==null?void 0:N.toLowerCase(),fe=J[l.value.name]||(J==null?void 0:J.attachmentName)||(J==null?void 0:J.originName);if(f.value={...F,name:F[l.value.name],url:oy(t.loadUrl,q)},F&&hc(F,l.value)==="image"){m.image=!0;return}else if(F&&hc(F,l.value)==="video"){m.video=!0;return}else if(F&&hc(F,l.value)==="txt"){m.text=!0,S(f.value.url);return}else if((((L=t.onlyOfficeConfig)==null?void 0:L.accept)||t.onlyOfficeAccept).includes(ce)){m.office=!0,c.value={...t.onlyOfficeConfig,editorConfig:{...((V=t.onlyOfficeConfig)==null?void 0:V.editorConfig)||{},customization:{...((W=(P=t.onlyOfficeConfig)==null?void 0:P.editorConfig)==null?void 0:W.customization)||{},review:{reviewDisplay:"final"}}},document:{key:(F==null?void 0:F.key)||ts.buildUUID(),title:fe,url:oy(t.loadUrl,q),fileType:ce,...((le=t.onlyOfficeConfig)==null?void 0:le.document)||{}},documentType:CIe(ce)},console.log("config",c.value);return}}catch(J){console.info("预览错误: ",J)}};g.watch([s,t.file],([F,R])=>{F&&g.nextTick(()=>{b(t.file)})});const S=async F=>{try{const N=await(await fetch(F)).text();h.value=N}catch(R){console.error("获取文本内容失败:",R),h.value="无法加载文本内容"}},T=()=>{n("close",{file:(f==null?void 0:f.value)||null,config:(c==null?void 0:c.value)||null}),s.value=!1,m.office=!1,m.image=!1,m.video=!1,m.text=!1,f.value=null,h.value=""},_=()=>{var F,R;(R=(F=c.value.editorConfig.customization)==null?void 0:F.logo)!=null&&R.link&&window.open(c.value.editorConfig.customization.logo.link)};return(F,R)=>{var N,L,V;return s.value?(g.openBlock(),g.createElementBlock(g.Fragment,{key:0},[(N=f.value)!=null&&N.url&&m.image?(g.openBlock(),g.createBlock(g.unref(sJ),{key:0,onClose:R[0]||(R[0]=P=>T()),ref:"previewImgRef","url-list":[(L=f.value)==null?void 0:L.url],teleported:"","z-index":9999},null,8,["url-list"])):g.createCommentVNode("v-if",!0),g.createCommentVNode(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),g.createCommentVNode(" 文档类 "),g.createVNode(g.unref(u3e),{modelValue:m.video,"onUpdate:modelValue":R[1]||(R[1]=P=>m.video=P),url:(V=f.value)==null?void 0:V.url,onClose:T},null,8,["modelValue","url"]),g.createVNode(g.unref($Z),{modelValue:m.office,"onUpdate:modelValue":R[2]||(R[2]=P=>m.office=P),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:T,"modal-class":"ik-only-preview-dialog"},{default:g.withCtx(()=>{var P,W,le;return[g.createElementVNode("div",w9e,[g.createElementVNode("img",{src:(W=(P=c.value.editorConfig.customization)==null?void 0:P.logo)==null?void 0:W.image,onClick:_,alt:""},null,8,C9e)]),g.createVNode(g.unref(oJ),{"config-options":c.value,"document-server-url":((le=r.onlyOfficeConfig)==null?void 0:le.serverUrl)||r.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"]),g.createCommentVNode(" txt文件预览 "),g.createVNode(g.unref($Z),{modelValue:m.text,"onUpdate:modelValue":R[3]||(R[3]=P=>m.text=P),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:T,"modal-class":"ik-text-preview-dialog"},{default:g.withCtx(()=>{var P;return[g.createElementVNode("div",S9e,[g.createElementVNode("div",E9e,[g.createElementVNode("span",_9e,g.toDisplayString((P=f.value)==null?void 0:P.name),1)]),g.createElementVNode("pre",B9e,g.toDisplayString(h.value),1)])]}),_:1},8,["modelValue"])],64)):g.createCommentVNode("v-if",!0)}}})),x9e=["src"],T9e=xi(g.defineComponent({name:"IkPrintConfig",__name:"IkPrintConfig",props:{id:{},srcPrefix:{default:""},token:{}},emits:["created"],setup(r,{emit:e}){const t=r,n=e,s=g.computed(()=>!!t.id),l=g.reactive({currentId:t.id,loading:!0,src:""}),c=async()=>{fetch(`${t.srcPrefix??""}/jmreport/save`,{method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json",Authorization:t.token??""}}).then(h=>h.json()).then(({code:h,result:m})=>{if(h===200){const b=m.id;l.currentId=b,l.src=`${t.srcPrefix??""}/jmreport/index/${l.currentId}?token=${t.token}&menuType=printinfo`,n("created",l.currentId)}}).catch(h=>{console.error(h)})},f=()=>{if(!s.value){c();return}l.src=`${t.srcPrefix??""}/jmreport/index/${l.currentId}?token=${t.token}`};return g.onMounted(()=>{f()}),(h,m)=>l.src?(g.openBlock(),g.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:l.src,frameborder:"0"},null,8,x9e)):g.createCommentVNode("v-if",!0)}})),k9e=["src"],F9e={name:"IkPrintView"},I9e=g.defineComponent({...F9e,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(r,{emit:e}){const t=r,n=e,s=g.computed({get:()=>t.modelValue,set:f=>{n("update:modelValue",f)}}),l=g.reactive({src:"",showIframe:!1}),c=()=>{l.showIframe=!1,l.src=`${t.srcPrefix}/jmreport/view/${t.templateId}?token=${t.token??""}&${t.idKey}=${t.dataId}`,setTimeout(()=>{l.showIframe=!0},300)};return g.watch(()=>s.value,f=>{f&&c()}),g.onMounted(()=>{s.value&&c()}),(f,h)=>{const m=g.resolveComponent("el-dialog");return g.openBlock(),g.createBlock(m,{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=b=>s.value=b),fullscreen:"",title:"预览"},{default:g.withCtx(()=>[g.createElementVNode("div",{style:g.normalizeStyle({width:t.width,height:t.height})},[l.showIframe?(g.openBlock(),g.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:l.src,frameborder:"0"},null,8,k9e)):g.createCommentVNode("v-if",!0)],4)]),_:1},8,["modelValue"])}}}),D9e=xi(I9e),N9e={class:"ik-print"},O9e={key:0,class:"print-config-panel"},R9e={class:"config-header"},P9e={key:0,class:"print-header"},L9e={class:"print-main-content"},M9e={key:1,class:"print-footer"},U9e={key:1,class:"print-controls"},H9e=gi(g.defineComponent({__name:"IkPrint",props:{hideControls:{type:Boolean,default:!1},defaultConfig:{default:()=>({})}},emits:["beforePrint","afterPrint","configChange"],setup(r,{expose:e,emit:t}){const n=r,s=t,l=g.ref(!1),c=g.ref(!1),f=g.ref(!1),h=g.ref(),m=g.reactive({paperSize:"A4",orientation:"portrait",fontSize:14,fontFamily:"Microsoft YaHei, sans-serif",margin:{top:"20mm",right:"20mm",bottom:"20mm",left:"20mm"},showHeader:!1,showFooter:!1,headerText:"",footerText:"",customWidth:"210mm",customHeight:"297mm",...n.defaultConfig}),b={A4:{width:"210mm",height:"297mm"},A3:{width:"297mm",height:"420mm"},A5:{width:"148mm",height:"210mm"},Letter:{width:"8.5in",height:"11in"},Legal:{width:"8.5in",height:"14in"}},S=()=>{g.nextTick(()=>{const N="ik-print-styles";let L=document.getElementById(N);L||(L=document.createElement("style"),L.id=N,document.head.appendChild(L));const V=m.paperSize==="Custom"?{width:m.customWidth,height:m.customHeight}:b[m.paperSize],P=`
27
27
  @media print {
28
28
  @page {
29
29
  size: ${m.orientation==="landscape"?`${V.height} ${V.width}`:`${V.width} ${V.height}`};